import{P as Jl,d as ei,h as Ze,Q as pt,R as Ht,S as Ft,T as Qi,U as Ql,V as Ba,W as Lr,X as zr,Y as ec,z as Gt,Z as os,F as ft,$ as eo,a0 as Mi,a1 as tc,a2 as Ns,a3 as rc,a4 as ic,a5 as ac,a6 as sc,a7 as nc,b as ze,a8 as oc,a9 as lc,aa as Vr,I as fr,ab as to,ac as cc,_ as ti,ad as js,ae as Us,af as Hs,ag as Ws,ah as zs,ai as fi,A as zi,aj as hc,ak as Jt,al as fc,am as sr,an as nr,o as Ve,c as it,a as We,ao as dc,ap as uc,aq as pc,n as bt,r as qe,y as Ti,e as ls,t as yt,f as Te,w as ke,q as ki,l as Aa,p as Qt,i as Re,g as He,B as Et,ar as Gi,j as At,as as Ea,v as ur,x as or,J as ro,at as gc,G as xc,O as Ca,m as mc,au as vc,s as Gs}from"./index-bb1600c6.js";import{r as yc,_ as Tc,a as kc}from"./vue.runtime.esm-bundler-fa263698.js";import{_ as cs,a as bc}from"./Certificate-e8c83fb1.js";import{e as _c}from"./Task-1669c287.js";import{b as Xs,c as io,d as wc,f as ao,h as Sc,g as Ac,T as Ec,i as Cc,j as Mc,k as Dc,a as Oc}from"./TaskData-ccc03cdb.js";import{_ as so,a as no,b as Pc,c as Fc}from"./Tabs-3a1ee667.js";import{_ as bi}from"./DatePicker-fecabd38.js";import{_ as Lc,a as Ic,b as Rc,c as Bc}from"./RadioGroup-3051618a.js";import{_ as Ma}from"./Space-6807f258.js";import{a as oo,b as Nc,u as jc}from"./index-c989a1ed.js";import{_ as lo,a as Uc,b as co,p as Hc,g as Wc,c as ho,d as zc,e as Gc}from"./VerifyTemplateMapData-6648ebab.js";import{_ as hs}from"./Popconfirm-868a37b3.js";import{A as Xc}from"./Add-fb29f5f4.js";import{_ as Vc}from"./PageHeader-30187700.js";import"./get-slot-1efb97e5.js";import"./Tooltip-f0032eab.js";let Vs=!1;function Yc(){if(Jl&&window.CSS&&!Vs&&(Vs=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"<color>",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"<color>",inherits:!1,initialValue:"#0000"})}catch{}}const $c=ei({name:"Remove",render(){return Ze("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Ze("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:`
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 32px;
      `}))}}),Kc=pt("input-group",`
 display: inline-flex;
 width: 100%;
 flex-wrap: nowrap;
 vertical-align: bottom;
`,[Ht(">",[pt("input",[Ht("&:not(:last-child)",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),Ht("&:not(:first-child)",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 margin-left: -1px!important;
 `)]),pt("button",[Ht("&:not(:last-child)",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `,[Ft("state-border, border",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `)]),Ht("&:not(:first-child)",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `,[Ft("state-border, border",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `)])]),Ht("*",[Ht("&:not(:last-child)",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `,[Ht(">",[pt("input",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),pt("base-selection",[pt("base-selection-label",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),pt("base-selection-tags",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `),Ft("box-shadow, border, state-border",`
 border-top-right-radius: 0!important;
 border-bottom-right-radius: 0!important;
 `)])])]),Ht("&:not(:first-child)",`
 margin-left: -1px!important;
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `,[Ht(">",[pt("input",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `),pt("base-selection",[pt("base-selection-label",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `),pt("base-selection-tags",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `),Ft("box-shadow, border, state-border",`
 border-top-left-radius: 0!important;
 border-bottom-left-radius: 0!important;
 `)])])])])])]),qc={},Zc=ei({name:"InputGroup",props:qc,setup(e){const{mergedClsPrefixRef:r}=Qi(e);return Ql("-input-group",Kc,r),{mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return Ze("div",{class:`${e}-input-group`},this.$slots)}}),Jc=pt("divider",`
 position: relative;
 display: flex;
 width: 100%;
 box-sizing: border-box;
 font-size: 16px;
 color: var(--n-text-color);
 transition:
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier);
`,[Ba("vertical",`
 margin-top: 24px;
 margin-bottom: 24px;
 `,[Ba("no-title",`
 display: flex;
 align-items: center;
 `)]),Ft("title",`
 display: flex;
 align-items: center;
 margin-left: 12px;
 margin-right: 12px;
 white-space: nowrap;
 font-weight: var(--n-font-weight);
 `),Lr("title-position-left",[Ft("line",[Lr("left",{width:"28px"})])]),Lr("title-position-right",[Ft("line",[Lr("right",{width:"28px"})])]),Lr("dashed",[Ft("line",`
 background-color: #0000;
 height: 0px;
 width: 100%;
 border-style: dashed;
 border-width: 1px 0 0;
 `)]),Lr("vertical",`
 display: inline-block;
 height: 1em;
 margin: 0 8px;
 vertical-align: middle;
 width: 1px;
 `),Ft("line",`
 border: none;
 transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier);
 height: 1px;
 width: 100%;
 margin: 0;
 `),Ba("dashed",[Ft("line",{backgroundColor:"var(--n-color)"})]),Lr("dashed",[Ft("line",{borderColor:"var(--n-color)"})]),Lr("vertical",{backgroundColor:"var(--n-color)"})]),Qc=Object.assign(Object.assign({},zr.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),eh=ei({name:"Divider",props:Qc,setup(e){const{mergedClsPrefixRef:r,inlineThemeDisabled:t}=Qi(e),a=zr("Divider","-divider",Jc,ec,e,r),i=Gt(()=>{const{common:{cubicBezierEaseInOut:o},self:{color:c,textColor:u,fontWeight:w}}=a.value;return{"--n-bezier":o,"--n-color":c,"--n-text-color":u,"--n-font-weight":w}}),s=t?os("divider",void 0,i,e):void 0;return{mergedClsPrefix:r,cssVars:t?void 0:i,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{$slots:r,titlePlacement:t,vertical:a,dashed:i,cssVars:s,mergedClsPrefix:o}=this;return(e=this.onRender)===null||e===void 0||e.call(this),Ze("div",{role:"separator",class:[`${o}-divider`,this.themeClass,{[`${o}-divider--vertical`]:a,[`${o}-divider--no-title`]:!r.default,[`${o}-divider--dashed`]:i,[`${o}-divider--title-position-${t}`]:r.default&&t}],style:s},a?null:Ze("div",{class:`${o}-divider__line ${o}-divider__line--left`}),!a&&r.default?Ze(ft,null,Ze("div",{class:`${o}-divider__title`},this.$slots),Ze("div",{class:`${o}-divider__line ${o}-divider__line--right`})):null)}}),th=e=>{const{primaryColor:r,successColor:t,warningColor:a,errorColor:i,infoColor:s,fontWeightStrong:o}=e;return{fontWeight:o,rotate:"252deg",colorStartPrimary:Mi(r,{alpha:.6}),colorEndPrimary:r,colorStartInfo:Mi(s,{alpha:.6}),colorEndInfo:s,colorStartWarning:Mi(a,{alpha:.6}),colorEndWarning:a,colorStartError:Mi(i,{alpha:.6}),colorEndError:i,colorStartSuccess:Mi(t,{alpha:.6}),colorEndSuccess:t}},rh={name:"GradientText",common:eo,self:th},ih=rh,ah=pt("gradient-text",`
 display: inline-block;
 font-weight: var(--n-font-weight);
 -webkit-background-clip: text;
 background-clip: text;
 color: #0000;
 white-space: nowrap;
 background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%);
 transition:
 --n-color-start .3s var(--n-bezier),
 --n-color-end .3s var(--n-bezier);
`),sh=Object.assign(Object.assign({},zr.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),nh=ei({name:"GradientText",props:sh,setup(e){Yc();const{mergedClsPrefixRef:r,inlineThemeDisabled:t}=Qi(e),a=Gt(()=>{const{type:w}=e;return w==="danger"?"error":w}),i=Gt(()=>{let w=e.size||e.fontSize;return w&&(w=tc(w)),w||void 0}),s=Gt(()=>{const w=e.color||e.gradient;if(typeof w=="string")return w;if(w){const y=w.deg||0,L=w.from,N=w.to;return`linear-gradient(${y}deg, ${L} 0%, ${N} 100%)`}}),o=zr("GradientText","-gradient-text",ah,ih,e,r),c=Gt(()=>{const{value:w}=a,{common:{cubicBezierEaseInOut:y},self:{rotate:L,[Ns("colorStart",w)]:N,[Ns("colorEnd",w)]:A,fontWeight:p}}=o.value;return{"--n-bezier":y,"--n-rotate":L,"--n-color-start":N,"--n-color-end":A,"--n-font-weight":p}}),u=t?os("gradient-text",Gt(()=>a.value[0]),c,e):void 0;return{mergedClsPrefix:r,compatibleType:a,styleFontSize:i,styleBgImage:s,cssVars:t?void 0:c,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){const{mergedClsPrefix:e,onRender:r}=this;return r==null||r(),Ze("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),oh=e=>{const{textColorDisabled:r}=e;return{iconColorDisabled:r}},lh=rc({name:"InputNumber",common:eo,peers:{Button:ic,Input:ac},self:oh}),ch=lh;function hh(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function fh(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function Na(e){return e==null?!0:!Number.isNaN(e)}function Ys(e,r){return e==null?"":r===void 0?String(e):e.toFixed(r)}function ja(e){if(e===null)return null;if(typeof e=="number")return e;{const r=Number(e);return Number.isNaN(r)?null:r}}const dh=Ht([pt("input-number-suffix",`
 display: inline-block;
 margin-right: 10px;
 `),pt("input-number-prefix",`
 display: inline-block;
 margin-left: 10px;
 `)]),$s=800,Ks=100,uh=Object.assign(Object.assign({},zr.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),Da=ei({name:"InputNumber",props:uh,setup(e){const{mergedBorderedRef:r,mergedClsPrefixRef:t,mergedRtlRef:a}=Qi(e),i=zr("InputNumber","-input-number",dh,ch,e,t),{localeRef:s}=sc("InputNumber"),o=nc(e),{mergedSizeRef:c,mergedDisabledRef:u,mergedStatusRef:w}=o,y=ze(null),L=ze(null),N=ze(null),A=ze(e.defaultValue),p=oc(e,"value"),g=lc(p,A),O=ze(""),M=K=>{const ne=String(K).split(".")[1];return ne?ne.length:0},_=K=>{const ne=[e.min,e.max,e.step,K].map(oe=>oe===void 0?0:M(oe));return Math.max(...ne)},j=Vr(()=>{const{placeholder:K}=e;return K!==void 0?K:s.value.placeholder}),C=Vr(()=>{const K=ja(e.step);return K!==null?K===0?1:Math.abs(K):1}),k=Vr(()=>{const K=ja(e.min);return K!==null?K:null}),F=Vr(()=>{const K=ja(e.max);return K!==null?K:null}),P=K=>{const{value:ne}=g;if(K===ne){m();return}const{"onUpdate:value":oe,onUpdateValue:le,onChange:ye}=e,{nTriggerFormInput:te,nTriggerFormChange:re}=o;ye&&fi(ye,K),le&&fi(le,K),oe&&fi(oe,K),A.value=K,te(),re()},I=({offset:K,doUpdateIfValid:ne,fixPrecision:oe,isInputing:le})=>{const{value:ye}=O;if(le&&fh(ye))return!1;const te=(e.parse||hh)(ye);if(te===null)return ne&&P(null),null;if(Na(te)){const re=M(te),{precision:Z}=e;if(Z!==void 0&&Z<re&&!oe)return!1;let ie=parseFloat((te+K).toFixed(Z??_(te)));if(Na(ie)){const{value:ae}=F,{value:he}=k;if(ae!==null&&ie>ae){if(!ne||le)return!1;ie=ae}if(he!==null&&ie<he){if(!ne||le)return!1;ie=he}return e.validator&&!e.validator(ie)?!1:(ne&&P(ie),ie)}}return!1},m=()=>{const{value:K}=g;if(Na(K)){const{format:ne,precision:oe}=e;ne?O.value=ne(K):K===null||oe===void 0||M(K)>oe?O.value=Ys(K,void 0):O.value=Ys(K,oe)}else O.value=String(K)};m();const B=Vr(()=>I({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),T=Vr(()=>{const{value:K}=g;if(e.validator&&K===null)return!1;const{value:ne}=C;return I({offset:-ne,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),S=Vr(()=>{const{value:K}=g;if(e.validator&&K===null)return!1;const{value:ne}=C;return I({offset:+ne,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function x(K){const{onFocus:ne}=e,{nTriggerFormFocus:oe}=o;ne&&fi(ne,K),oe()}function h(K){var ne,oe;if(K.target===((ne=y.value)===null||ne===void 0?void 0:ne.wrapperElRef))return;const le=I({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(le!==!1){const re=(oe=y.value)===null||oe===void 0?void 0:oe.inputElRef;re&&(re.value=String(le||"")),g.value===le&&m()}else m();const{onBlur:ye}=e,{nTriggerFormBlur:te}=o;ye&&fi(ye,K),te(),zi(()=>{m()})}function n(K){const{onClear:ne}=e;ne&&fi(ne,K)}function l(){const{value:K}=S;if(!K){R();return}const{value:ne}=g;if(ne===null)e.validator||P(G());else{const{value:oe}=C;I({offset:oe,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function f(){const{value:K}=T;if(!K){d();return}const{value:ne}=g;if(ne===null)e.validator||P(G());else{const{value:oe}=C;I({offset:-oe,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const b=x,v=h;function G(){if(e.validator)return null;const{value:K}=k,{value:ne}=F;return K!==null?Math.max(0,K):ne!==null?Math.min(0,ne):0}function U(K){n(K),P(null)}function D(K){var ne,oe,le;!((ne=N.value)===null||ne===void 0)&&ne.$el.contains(K.target)&&K.preventDefault(),!((oe=L.value)===null||oe===void 0)&&oe.$el.contains(K.target)&&K.preventDefault(),(le=y.value)===null||le===void 0||le.activate()}let H=null,z=null,W=null;function d(){W&&(window.clearTimeout(W),W=null),H&&(window.clearInterval(H),H=null)}function R(){J&&(window.clearTimeout(J),J=null),z&&(window.clearInterval(z),z=null)}function q(){d(),W=window.setTimeout(()=>{H=window.setInterval(()=>{f()},Ks)},$s),Us("mouseup",document,d,{once:!0})}let J=null;function Y(){R(),J=window.setTimeout(()=>{z=window.setInterval(()=>{l()},Ks)},$s),Us("mouseup",document,R,{once:!0})}const ee=()=>{z||l()},E=()=>{H||f()};function V(K){var ne,oe;if(K.key==="Enter"){if(K.target===((ne=y.value)===null||ne===void 0?void 0:ne.wrapperElRef))return;I({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((oe=y.value)===null||oe===void 0||oe.deactivate())}else if(K.key==="ArrowUp"){if(!S.value||e.keyboard.ArrowUp===!1)return;K.preventDefault(),I({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&l()}else if(K.key==="ArrowDown"){if(!T.value||e.keyboard.ArrowDown===!1)return;K.preventDefault(),I({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&f()}}function X(K){O.value=K,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&I({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}fr(g,()=>{m()});const Q={focus:()=>{var K;return(K=y.value)===null||K===void 0?void 0:K.focus()},blur:()=>{var K;return(K=y.value)===null||K===void 0?void 0:K.blur()}},se=to("InputNumber",a,t);return Object.assign(Object.assign({},Q),{rtlEnabled:se,inputInstRef:y,minusButtonInstRef:L,addButtonInstRef:N,mergedClsPrefix:t,mergedBordered:r,uncontrolledValue:A,mergedValue:g,mergedPlaceholder:j,displayedValueInvalid:B,mergedSize:c,mergedDisabled:u,displayedValue:O,addable:S,minusable:T,mergedStatus:w,handleFocus:b,handleBlur:v,handleClear:U,handleMouseDown:D,handleAddClick:ee,handleMinusClick:E,handleAddMousedown:Y,handleMinusMousedown:q,handleKeyDown:V,handleUpdateDisplayedValue:X,mergedTheme:i,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:Gt(()=>{const{self:{iconColorDisabled:K}}=i.value,[ne,oe,le,ye]=cc(K);return{textColorTextDisabled:`rgb(${ne}, ${oe}, ${le})`,opacityDisabled:`${ye}`}})})},render(){const{mergedClsPrefix:e,$slots:r}=this,t=()=>Ze(zs,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>Hs(r["minus-icon"],()=>[Ze(Ws,{clsPrefix:e},{default:()=>Ze($c,null)})])}),a=()=>Ze(zs,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>Hs(r["add-icon"],()=>[Ze(Ws,{clsPrefix:e},{default:()=>Ze(Xc,null)})])});return Ze("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},Ze(ti,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,internalLoadingBeforeSuffix:!0},{prefix:()=>{var i;return this.showButton&&this.buttonPlacement==="both"?[t(),js(r.prefix,s=>s?Ze("span",{class:`${e}-input-number-prefix`},s):null)]:(i=r.prefix)===null||i===void 0?void 0:i.call(r)},suffix:()=>{var i;return this.showButton?[js(r.suffix,s=>s?Ze("span",{class:`${e}-input-number-suffix`},s):null),this.buttonPlacement==="right"?t():null,a()]:(i=r.suffix)===null||i===void 0?void 0:i.call(r)}}))}}),ph=pt("thing",`
 display: flex;
 transition: color .3s var(--n-bezier);
 font-size: var(--n-font-size);
 color: var(--n-text-color);
`,[pt("thing-avatar",`
 margin-right: 12px;
 margin-top: 2px;
 `),pt("thing-avatar-header-wrapper",`
 display: flex;
 flex-wrap: nowrap;
 `,[pt("thing-header-wrapper",`
 flex: 1;
 `)]),pt("thing-main",`
 flex-grow: 1;
 `,[pt("thing-header",`
 display: flex;
 margin-bottom: 4px;
 justify-content: space-between;
 align-items: center;
 `,[Ft("title",`
 font-size: 16px;
 font-weight: var(--n-title-font-weight);
 transition: color .3s var(--n-bezier);
 color: var(--n-title-text-color);
 `)]),Ft("description",[Ht("&:not(:last-child)",`
 margin-bottom: 4px;
 `)]),Ft("content",[Ht("&:not(:first-child)",`
 margin-top: 12px;
 `)]),Ft("footer",[Ht("&:not(:first-child)",`
 margin-top: 12px;
 `)]),Ft("action",[Ht("&:not(:first-child)",`
 margin-top: 12px;
 `)])])]),gh=Object.assign(Object.assign({},zr.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),xh=ei({name:"Thing",props:gh,setup(e,{slots:r}){const{mergedClsPrefixRef:t,inlineThemeDisabled:a,mergedRtlRef:i}=Qi(e),s=zr("Thing","-thing",ph,hc,e,t),o=to("Thing",i,t),c=Gt(()=>{const{self:{titleTextColor:w,textColor:y,titleFontWeight:L,fontSize:N},common:{cubicBezierEaseInOut:A}}=s.value;return{"--n-bezier":A,"--n-font-size":N,"--n-text-color":y,"--n-title-font-weight":L,"--n-title-text-color":w}}),u=a?os("thing",void 0,c,e):void 0;return()=>{var w;const{value:y}=t,L=o?o.value:!1;return(w=u==null?void 0:u.onRender)===null||w===void 0||w.call(u),Ze("div",{class:[`${y}-thing`,u==null?void 0:u.themeClass,L&&`${y}-thing--rtl`],style:a?void 0:c.value},r.avatar&&e.contentIndented?Ze("div",{class:`${y}-thing-avatar`},r.avatar()):null,Ze("div",{class:`${y}-thing-main`},!e.contentIndented&&(r.header||e.title||r["header-extra"]||e.titleExtra||r.avatar)?Ze("div",{class:`${y}-thing-avatar-header-wrapper`},r.avatar?Ze("div",{class:`${y}-thing-avatar`},r.avatar()):null,r.header||e.title||r["header-extra"]||e.titleExtra?Ze("div",{class:`${y}-thing-header-wrapper`},Ze("div",{class:`${y}-thing-header`},r.header||e.title?Ze("div",{class:`${y}-thing-header__title`},r.header?r.header():e.title):null,r["header-extra"]||e.titleExtra?Ze("div",{class:`${y}-thing-header__extra`},r["header-extra"]?r["header-extra"]():e.titleExtra):null),r.description||e.description?Ze("div",{class:`${y}-thing-main__description`,style:e.descriptionStyle},r.description?r.description():e.description):null):null):Ze(ft,null,r.header||e.title||r["header-extra"]||e.titleExtra?Ze("div",{class:`${y}-thing-header`},r.header||e.title?Ze("div",{class:`${y}-thing-header__title`},r.header?r.header():e.title):null,r["header-extra"]||e.titleExtra?Ze("div",{class:`${y}-thing-header__extra`},r["header-extra"]?r["header-extra"]():e.titleExtra):null):null,r.description||e.description?Ze("div",{class:`${y}-thing-main__description`,style:e.descriptionStyle},r.description?r.description():e.description):null),r.default||e.content?Ze("div",{class:`${y}-thing-main__content`,style:e.contentStyle},r.default?r.default():e.content):null,r.footer?Ze("div",{class:`${y}-thing-main__footer`},r.footer()):null,r.action?Ze("div",{class:`${y}-thing-main__action`},r.action()):null))}}}),mh=e=>Jt.request({method:"POST",url:"/v3/Data/List",data:e,baseURL:fc}),vh=e=>Jt.request({method:"POST",url:"/TaskDataCopy/Recover",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),yh=e=>Jt.request({method:"POST",url:"/TaskDataCopy/Del",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Th=e=>Jt.request({method:"POST",url:"/TaskDataCopy/Add",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),kh=e=>Jt.request({method:"POST",url:"/TaskDataCopy/List",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),bh=e=>Jt.request({method:"POST",url:"/TaskData/DataGeometricScale",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),_h=e=>Jt.request({method:"POST",url:"/TaskData/CopyFromPositionSN",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),wh=e=>Jt.request({method:"POST",url:"/TaskData/CopyFromPositionAverageSN",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Sh=e=>Jt.request({method:"POST",url:"/TaskData/RepairSensorData",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Ah=e=>Jt.request({method:"POST",url:"/TaskData/DataSensorDataTrend",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Eh=e=>Jt.request({method:"POST",url:"/TaskData/UpdateRand",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Ch=e=>Jt.request({method:"POST",url:"/TaskData/DataSkewingInterval",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Mh=e=>Jt.request({method:"POST",url:"/TaskData/UpdateFix",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Dh=e=>Jt.request({method:"POST",url:"/TaskData/DataSensorDataSmooth",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Oh={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ph=We("path",{d:"M296 64h-80a7.91 7.91 0 0 0-8 8v24h96V72a7.91 7.91 0 0 0-8-8z",fill:"none"},null,-1),Fh=We("path",{d:"M432 96h-96V72a40 40 0 0 0-40-40h-80a40 40 0 0 0-40 40v24H80a16 16 0 0 0 0 32h17l19 304.92c1.42 26.85 22 47.08 48 47.08h184c26.13 0 46.3-19.78 48-47l19-305h17a16 16 0 0 0 0-32zM192.57 416H192a16 16 0 0 1-16-15.43l-8-224a16 16 0 1 1 32-1.14l8 224A16 16 0 0 1 192.57 416zM272 400a16 16 0 0 1-32 0V176a16 16 0 0 1 32 0zm32-304h-96V72a7.91 7.91 0 0 1 8-8h80a7.91 7.91 0 0 1 8 8zm32 304.57A16 16 0 0 1 320 416h-.58A16 16 0 0 1 304 399.43l8-224a16 16 0 1 1 32 1.14z",fill:"currentColor"},null,-1),Lh=[Ph,Fh],Ih=ei({name:"Trash",render:function(r,t){return Ve(),it("svg",Oh,Lh)}});var Rh={exports:{}};(function(e,r){(function(t,a){e.exports=a(dc,yc)})(window,function(t,a){return s=[function(c,u){c.exports=t},function(c,u){c.exports=a},function(c,y,w){w.r(y),w.d(y,"Chart",function(){return k}),w.d(y,"default",function(){return F});var y=w(0),L=w.n(y);function N(P,I){return function m(B,T,S){function x(h,n){!L.a.isObject(h,!S)||L.a.isClass(h)||L.a.isDOMElement(h)?B[n]=T[n]:B[n]=m(B[n]||L.a.isArray(h)?[]:{},h,S)}return L.a.isArray(T)?T.forEach(x):L.a.objectEach(T,x),B}({},P,I)}var A=w(1);function p(P){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I})(P)}function g(P){return function(I){if(Array.isArray(I))return O(I)}(P)||function(I){if(typeof Symbol<"u"&&I[Symbol.iterator]!=null||I["@@iterator"]!=null)return Array.from(I)}(P)||function(I,m){var B;if(I)return typeof I=="string"?O(I,m):(B=(B=Object.prototype.toString.call(I).slice(8,-1))==="Object"&&I.constructor?I.constructor.name:B)==="Map"||B==="Set"?Array.from(I):B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?O(I,m):void 0}(P)||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 O(P,I){(I==null||I>P.length)&&(I=P.length);for(var m=0,B=new Array(I);m<I;m++)B[m]=P[m];return B}function M(P,I){var m,B=Object.keys(P);return Object.getOwnPropertySymbols&&(m=Object.getOwnPropertySymbols(P),I&&(m=m.filter(function(T){return Object.getOwnPropertyDescriptor(P,T).enumerable})),B.push.apply(B,m)),B}function _(P){for(var I=1;I<arguments.length;I++){var m=arguments[I]!=null?arguments[I]:{};I%2?M(Object(m),!0).forEach(function(B){var T,S;T=P,S=m[B=B],(B=function(x){return x=function(h,n){if(p(h)!=="object"||h===null)return h;var l=h[Symbol.toPrimitive];if(l===void 0)return(n==="string"?String:Number)(h);if(l=l.call(h,n||"default"),p(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}(x,"string"),p(x)==="symbol"?x:String(x)}(B))in T?Object.defineProperty(T,B,{value:S,enumerable:!0,configurable:!0,writable:!0}):T[B]=S}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(m)):M(Object(m)).forEach(function(B){Object.defineProperty(P,B,Object.getOwnPropertyDescriptor(m,B))})}return P}var j={template:'<div ref="chart"></div>',props:{constructorType:{type:String,default:"chart"},options:{type:Object,required:!0},callback:Function,updateArgs:{type:Array,default:function(){return[!0,!0]}},highcharts:{type:Object},deepCopyOnUpdate:{type:Boolean,default:!0}}},C=function(P,I){return I.split(".")[0]<3?_(_({},j),{},{render:function(m){return m("div",{ref:"chart"})},beforeDestroy:function(){this.chart&&this.chart.destroy()},watch:{options:{handler:function(m){var B;(B=this.chart).update.apply(B,[N(m,this.deepCopyOnUpdate)].concat(g(this.updateArgs)))},deep:!0}},mounted:function(){var m=this.highcharts||P;this.options&&m[this.constructorType]?this.chart=m[this.constructorType](this.$refs.chart,N(this.options,!0),this.callback||null):this.options?console.warn("'".concat(this.constructorType,"' constructor-type is incorrect. Sometimes this error is caused by the fact, that the corresponding module wasn't imported.")):console.warn('The "options" parameter was not passed.')}}):_(_({},j),{},{render:function(){return Object(A.h)("div",{ref:"chartContainer"})},setup:function(m){var B=Object(A.ref)(null),T=Object(A.ref)({});return Object(A.onMounted)(function(){var S=m.highcharts||P;m.options&&S[m.constructorType]?T.value=S[m.constructorType](B.value,N(m.options,!0),m.callback||null):m.options?console.warn("'".concat(m.constructorType,"' constructor-type is incorrect. Sometimes this error is caused by the fact, that the corresponding module wasn't imported.")):console.warn('The "options" parameter was not passed.')}),Object(A.watch)(function(){return m.options},function(S,x){var h;(h=T.value).update.apply(h,[N(S,m.deepCopyOnUpdate)].concat(g(m.updateArgs)))},{deep:!0}),Object(A.onBeforeUnmount)(function(){T.value&&T.value.destroy()}),{chart:T,chartContainer:B,props:m}}})},k=C(L.a,A.version||w.n(A).a.version);function F(P){var I=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};P.component(I.tagName||"highcharts",C(I.highcharts||L.a,P.version))}}],o={},i.m=s,i.c=o,i.d=function(c,u,w){i.o(c,u)||Object.defineProperty(c,u,{enumerable:!0,get:w})},i.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},i.t=function(c,u){if(1&u&&(c=i(c)),8&u||4&u&&typeof c=="object"&&c&&c.__esModule)return c;var w=Object.create(null);if(i.r(w),Object.defineProperty(w,"default",{enumerable:!0,value:c}),2&u&&typeof c!="string")for(var y in c)i.d(w,y,function(L){return c[L]}.bind(null,y));return w},i.n=function(c){var u=c&&c.__esModule?function(){return c.default}:function(){return c};return i.d(u,"a",u),u},i.o=function(c,u){return Object.prototype.hasOwnProperty.call(c,u)},i.p="",i(i.s=2);function i(c){var u;return(o[c]||(u=o[c]={i:c,l:!1,exports:{}},s[c].call(u.exports,u,u.exports,i),u.l=!0,u)).exports}var s,o})})(Rh);var fo={exports:{}};/**
 * @license Highstock JS v11.1.0 (2023-06-05)
 *
 * (c) 2009-2021 Torstein Honsi
 *
 * License: www.highcharts.com/license
 */(function(e){(function(r,t){e.exports?(t.default=t,e.exports=r.document?t(r):t):(r.Highcharts&&r.Highcharts.error(16,!0),r.Highcharts=t(r))})(typeof window<"u"?window:uc,function(r){var t={};function a(i,s,o,c){i.hasOwnProperty(s)||(i[s]=c.apply(null,o),typeof CustomEvent=="function"&&r.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}return a(t,"Core/Globals.js",[],function(){var i;return function(s){s.SVG_NS="http://www.w3.org/2000/svg",s.product="Highcharts",s.version="11.1.0",s.win=typeof r<"u"?r:{},s.doc=s.win.document,s.svg=s.doc&&s.doc.createElementNS&&!!s.doc.createElementNS(s.SVG_NS,"svg").createSVGRect,s.userAgent=s.win.navigator&&s.win.navigator.userAgent||"",s.isChrome=s.userAgent.indexOf("Chrome")!==-1,s.isFirefox=s.userAgent.indexOf("Firefox")!==-1,s.isMS=/(edge|msie|trident)/i.test(s.userAgent)&&!s.win.opera,s.isSafari=!s.isChrome&&s.userAgent.indexOf("Safari")!==-1,s.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(s.userAgent),s.isWebKit=s.userAgent.indexOf("AppleWebKit")!==-1,s.deg2rad=Math.PI*2/360,s.hasBidiBug=s.isFirefox&&parseInt(s.userAgent.split("Firefox/")[1],10)<4,s.hasTouch=!!s.win.TouchEvent,s.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],s.noop=function(){},s.supportsPassiveEvents=function(){let o=!1;if(!s.isMS){const c=Object.defineProperty({},"passive",{get:function(){o=!0}});s.win.addEventListener&&s.win.removeEventListener&&(s.win.addEventListener("testPassive",s.noop,c),s.win.removeEventListener("testPassive",s.noop,c))}return o}(),s.charts=[],s.dateFormats={},s.seriesTypes={},s.symbolSizes={},s.chartCount=0}(i||(i={})),i}),a(t,"Core/Utilities.js",[t["Core/Globals.js"]],function(i){const{charts:s,doc:o,win:c}=i;function u(Z,ie,ae,he){const fe=ie?"Highcharts error":"Highcharts warning";Z===32&&(Z=`${fe}: Deprecated member`);const ve=_(Z);let ge=ve?`${fe} #${Z}: www.highcharts.com/errors/${Z}/`:Z.toString();const _e=function(){if(ie)throw new Error(ge);c.console&&u.messages.indexOf(ge)===-1&&console.warn(ge)};if(typeof he<"u"){let be="";ve&&(ge+="?"),Q(he,function(Ce,De){be+=`
 - ${De}: ${Ce}`,ve&&(ge+=encodeURI(De)+"="+encodeURI(Ce))}),ge+=be}ne(i,"displayError",{chart:ae,code:Z,message:ge,params:he},_e),u.messages.push(ge)}(function(Z){Z.messages=[]})(u||(u={}));function w(){let Z,ie=arguments,ae={};const he=function(ve,ge){return typeof ve!="object"&&(ve={}),Q(ge,function(_e,be){be==="__proto__"||be==="constructor"||(g(_e,!0)&&!M(_e)&&!O(_e)?ve[be]=he(ve[be]||{},_e):ve[be]=ge[be])}),ve};ie[0]===!0&&(ae=ie[1],ie=Array.prototype.slice.call(ie,2));const fe=ie.length;for(Z=0;Z<fe;Z++)ae=he(ae,ie[Z]);return ae}function y(Z,ie,ae){return Z>ie?Z<ae?Z:ae:ie}function L(Z,ie,ae,he){const fe={};function ve(ge,_e,be,Ce){const De=ae?_e:ge;Q(ge,function(Be,Le){if(!Ce&&he&&he.indexOf(Le)>-1&&_e[Le]){Be=I(Be),be[Le]=[];for(let Pe=0;Pe<Math.max(Be.length,_e[Le].length);Pe++)_e[Le][Pe]&&(Be[Pe]===void 0?be[Le][Pe]=_e[Le][Pe]:(be[Le][Pe]={},ve(Be[Pe],_e[Le][Pe],be[Le][Pe],Ce+1)))}else g(Be,!0)&&!Be.nodeType?(be[Le]=p(Be)?[]:{},ve(Be,_e[Le]||{},be[Le],Ce+1),Object.keys(be[Le]).length===0&&!(Le==="colorAxis"&&Ce===0)&&delete be[Le]):(ge[Le]!==_e[Le]||Le in ge&&!(Le in _e))&&(be[Le]=De[Le])})}return ve(Z,ie,fe,0),fe}function N(Z,ie){return parseInt(Z,ie||10)}function A(Z){return typeof Z=="string"}function p(Z){const ie=Object.prototype.toString.call(Z);return ie==="[object Array]"||ie==="[object Array Iterator]"}function g(Z,ie){return!!Z&&typeof Z=="object"&&(!ie||!p(Z))}function O(Z){return g(Z)&&typeof Z.nodeType=="number"}function M(Z){const ie=Z&&Z.constructor;return!!(g(Z,!0)&&!O(Z)&&ie&&ie.name&&ie.name!=="Object")}function _(Z){return typeof Z=="number"&&!isNaN(Z)&&Z<1/0&&Z>-1/0}function j(Z,ie){let ae=Z.length;for(;ae--;)if(Z[ae]===ie){Z.splice(ae,1);break}}function C(Z,ie){const ae=Z.options.index,he=ie.length;let fe;for(fe=Z.options.isInternal?he:0;fe<he+1;fe++)if(!ie[fe]||_(ae)&&ae<S(ie[fe].options.index,ie[fe]._i)||ie[fe].options.isInternal){ie.splice(fe,0,Z);break}return fe}function k(Z,ie){return Z.indexOf(ie)<0&&!!Z.push(ie)}function F(Z){return typeof Z<"u"&&Z!==null}function P(Z,ie,ae){const he=A(ie)&&!F(ae);let fe;const ve=(ge,_e)=>{F(ge)?Z.setAttribute(_e,ge):he?(fe=Z.getAttribute(_e),!fe&&_e==="class"&&(fe=Z.getAttribute(_e+"Name"))):Z.removeAttribute(_e)};return A(ie)?ve(ae,ie):Q(ie,ve),fe}function I(Z){return p(Z)?Z:[Z]}function m(Z,ie,ae){return ie>0?setTimeout(Z,ie,ae):(Z.call(0,ae),-1)}function B(Z){F(Z)&&clearTimeout(Z)}function T(Z,ie){let ae;Z||(Z={});for(ae in ie)Z[ae]=ie[ae];return Z}function S(){const Z=arguments,ie=Z.length;for(let ae=0;ae<ie;ae++){const he=Z[ae];if(typeof he<"u"&&he!==null)return he}}function x(Z,ie){i.isMS&&!i.svg&&ie&&F(ie.opacity)&&(ie.filter=`alpha(opacity=${ie.opacity*100})`),T(Z.style,ie)}function h(Z,ie,ae,he,fe){const ve=o.createElement(Z);return ie&&T(ve,ie),fe&&x(ve,{padding:"0",border:"none",margin:"0"}),ae&&x(ve,ae),he&&he.appendChild(ve),ve}function n(Z,ie){const ae=function(){};return ae.prototype=new Z,T(ae.prototype,ie),ae}function l(Z,ie,ae){return new Array((ie||2)+1-String(Z).replace("-","").length).join(ae||"0")+Z}function f(Z,ie,ae){return/%$/.test(Z)?ie*parseFloat(Z)/100+(ae||0):parseFloat(Z)}function b(Z,ie,ae){const he=Z[ie];Z[ie]=function(){const fe=arguments,ve=this;return ae.apply(this,[function(){return he.apply(ve,arguments.length?arguments:fe)}].concat([].slice.call(arguments)))}}function v(Z){return Math.pow(10,Math.floor(Math.log(Z)/Math.LN10))}function G(Z,ie,ae,he,fe){let ve,ge=Z;ae=S(ae,v(Z));const _e=Z/ae;for(ie||(ie=fe?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],he===!1&&(ae===1?ie=ie.filter(function(be){return be%1===0}):ae<=.1&&(ie=[1/ae]))),ve=0;ve<ie.length&&(ge=ie[ve],!(fe&&ge*ae>=Z||!fe&&_e<=(ie[ve]+(ie[ve+1]||ie[ve]))/2));ve++);return ge=d(ge*ae,-Math.round(Math.log(.001)/Math.LN10)),ge}function U(Z,ie){const ae=Z.length;let he,fe;for(fe=0;fe<ae;fe++)Z[fe].safeI=fe;for(Z.sort(function(ve,ge){return he=ie(ve,ge),he===0?ve.safeI-ge.safeI:he}),fe=0;fe<ae;fe++)delete Z[fe].safeI}function D(Z){let ie=Z.length,ae=Z[0];for(;ie--;)Z[ie]<ae&&(ae=Z[ie]);return ae}function H(Z){let ie=Z.length,ae=Z[0];for(;ie--;)Z[ie]>ae&&(ae=Z[ie]);return ae}function z(Z,ie){Q(Z,function(ae,he){ae&&ae!==ie&&ae.destroy&&ae.destroy(),delete Z[he]})}function W(Z){Z&&Z.parentElement&&Z.parentElement.removeChild(Z)}function d(Z,ie){return Z>1e14?Z:parseFloat(Z.toPrecision(ie||14))}const R={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:24*36e5,week:7*24*36e5,month:28*24*36e5,year:364*24*36e5};Math.easeInOutSine=function(Z){return-.5*(Math.cos(Math.PI*Z)-1)};function q(Z,ie){const ae=!ie;let he,fe,ve,ge;return Z.forEach(_e=>{if(_e.length>1)for(fe=_e.length-1,ge=fe;ge>0;ge--)ve=_e[ge]-_e[ge-1],ve<0&&!ae?(ie==null||ie(),ie=void 0):ve&&(typeof he>"u"||ve<he)&&(he=ve)}),he}function J(Z,ie){const ae=Z.split(".");for(;ae.length&&F(ie);){const he=ae.shift();if(typeof he>"u"||he==="__proto__")return;if(he==="this"){let ve;return g(ie)&&(ve=ie["@this"]),ve??ie}const fe=ie[he];if(!F(fe)||typeof fe=="function"||typeof fe.nodeType=="number"||fe===c)return;ie=fe}return ie}function Y(Z,ie,ae){let he;if(ie==="width"){let ve=Math.min(Z.offsetWidth,Z.scrollWidth);const ge=Z.getBoundingClientRect&&Z.getBoundingClientRect().width;return ge<ve&&ge>=ve-1&&(ve=Math.floor(ge)),Math.max(0,ve-(Y(Z,"padding-left",!0)||0)-(Y(Z,"padding-right",!0)||0))}if(ie==="height")return Math.max(0,Math.min(Z.offsetHeight,Z.scrollHeight)-(Y(Z,"padding-top",!0)||0)-(Y(Z,"padding-bottom",!0)||0));const fe=c.getComputedStyle(Z,void 0);return fe&&(he=fe.getPropertyValue(ie),S(ae,ie!=="opacity")&&(he=N(he))),he}function ee(Z,ie,ae){return u(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),ie.indexOf(Z,ae)}const E=Array.prototype.find?function(Z,ie){return Z.find(ie)}:function(Z,ie){let ae;const he=Z.length;for(ae=0;ae<he;ae++)if(ie(Z[ae],ae))return Z[ae]};function V(Z){return u(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(Z)}function X(Z){const ie=o.documentElement,ae=Z.parentElement||Z.parentNode?Z.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:ae.top+(c.pageYOffset||ie.scrollTop)-(ie.clientTop||0),left:ae.left+(c.pageXOffset||ie.scrollLeft)-(ie.clientLeft||0),width:ae.width,height:ae.height}}function Q(Z,ie,ae){for(const he in Z)Object.hasOwnProperty.call(Z,he)&&ie.call(ae||Z[he],Z[he],he,Z)}Q({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(Z,ie){i[ie]=function(ae){return u(32,!1,void 0,{[`Highcharts.${ie}`]:`use Array.${Z}`}),Array.prototype[Z].apply(ae,[].slice.call(arguments,1))}});function se(Z,ie,ae,he={}){const fe=typeof Z=="function"&&Z.prototype||Z;Object.hasOwnProperty.call(fe,"hcEvents")||(fe.hcEvents={});const ve=fe.hcEvents;i.Point&&Z instanceof i.Point&&Z.series&&Z.series.chart&&(Z.series.chart.runTrackerClick=!0);const ge=Z.addEventListener;ge&&ge.call(Z,ie,ae,i.supportsPassiveEvents?{passive:he.passive===void 0?ie.indexOf("touch")!==-1:he.passive,capture:!1}:!1),ve[ie]||(ve[ie]=[]);const _e={fn:ae,order:typeof he.order=="number"?he.order:1/0};return ve[ie].push(_e),ve[ie].sort((be,Ce)=>be.order-Ce.order),function(){K(Z,ie,ae)}}function K(Z,ie,ae){function he(ge,_e){const be=Z.removeEventListener;be&&be.call(Z,ge,_e,!1)}function fe(ge){let _e,be;Z.nodeName&&(ie?(_e={},_e[ie]=!0):_e=ge,Q(_e,function(Ce,De){if(ge[De])for(be=ge[De].length;be--;)he(De,ge[De][be].fn)}))}const ve=typeof Z=="function"&&Z.prototype||Z;if(Object.hasOwnProperty.call(ve,"hcEvents")){const ge=ve.hcEvents;if(ie){const _e=ge[ie]||[];ae?(ge[ie]=_e.filter(function(be){return ae!==be.fn}),he(ie,ae)):(fe(ge),ge[ie]=[])}else fe(ge),delete ve.hcEvents}}function ne(Z,ie,ae,he){let fe;if(ae=ae||{},o.createEvent&&(Z.dispatchEvent||Z.fireEvent&&Z!==i))fe=o.createEvent("Events"),fe.initEvent(ie,!0,!0),ae=T(fe,ae),Z.dispatchEvent?Z.dispatchEvent(ae):Z.fireEvent(ie,ae);else if(Z.hcEvents){ae.target||T(ae,{preventDefault:function(){ae.defaultPrevented=!0},target:Z,type:ie});const ve=[];let ge=Z,_e=!1;for(;ge.hcEvents;)Object.hasOwnProperty.call(ge,"hcEvents")&&ge.hcEvents[ie]&&(ve.length&&(_e=!0),ve.unshift.apply(ve,ge.hcEvents[ie])),ge=Object.getPrototypeOf(ge);_e&&ve.sort((be,Ce)=>be.order-Ce.order),ve.forEach(be=>{be.fn.call(Z,ae)===!1&&ae.preventDefault()})}he&&!ae.defaultPrevented&&he.call(Z,ae)}let oe;const le=function(){const Z=Math.random().toString(36).substring(2,9)+"-";let ie=0;return function(){return"highcharts-"+(oe?"":Z)+ie++}}();function ye(Z){return oe=S(Z,oe)}function te(Z){return typeof Z=="function"}return c.jQuery&&(c.jQuery.fn.highcharts=function(){const Z=[].slice.call(arguments);if(this[0])return Z[0]?(new i[A(Z[0])?Z.shift():"Chart"](this[0],Z[0],Z[1]),this):s[P(this[0],"data-highcharts-chart")]}),{addEvent:se,arrayMax:H,arrayMin:D,attr:P,clamp:y,clearTimeout:B,correctFloat:d,createElement:h,css:x,defined:F,destroyObjectProperties:z,diffObjects:L,discardElement:W,erase:j,error:u,extend:T,extendClass:n,find:E,fireEvent:ne,getClosestDistance:q,getMagnitude:v,getNestedProperty:J,getStyle:Y,inArray:ee,insertItem:C,isArray:p,isClass:M,isDOMElement:O,isFunction:te,isNumber:_,isObject:g,isString:A,keys:V,merge:w,normalizeTickInterval:G,objectEach:Q,offset:X,pad:l,pick:S,pInt:N,pushUnique:k,relativeLength:f,removeEvent:K,splat:I,stableSort:U,syncTimeout:m,timeUnits:R,uniqueKey:le,useSerialIds:ye,wrap:b}}),a(t,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),a(t,"Core/Color/Color.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){const{isNumber:o,merge:c,pInt:u}=s;class w{static parse(L){return L?new w(L):w.None}constructor(L){this.rgba=[NaN,NaN,NaN,NaN],this.input=L;const N=i.Color;if(N&&N!==w)return new N(L);this.init(L)}init(L){let N,A,p,g;if(typeof L=="object"&&typeof L.stops<"u")this.stops=L.stops.map(O=>new w(O[1]));else if(typeof L=="string"){if(this.input=L=w.names[L.toLowerCase()]||L,L.charAt(0)==="#"){const O=L.length,M=parseInt(L.substr(1),16);O===7?A=[(M&16711680)>>16,(M&65280)>>8,M&255,1]:O===4&&(A=[(M&3840)>>4|(M&3840)>>8,(M&240)>>4|M&240,(M&15)<<4|M&15,1])}if(!A)for(p=w.parsers.length;p--&&!A;)g=w.parsers[p],N=g.regex.exec(L),N&&(A=g.parse(N))}A&&(this.rgba=A)}get(L){const N=this.input,A=this.rgba;if(typeof N=="object"&&typeof this.stops<"u"){const p=c(N);return p.stops=[].slice.call(p.stops),this.stops.forEach((g,O)=>{p.stops[O]=[p.stops[O][0],g.get(L)]}),p}return A&&o(A[0])?L==="rgb"||!L&&A[3]===1?"rgb("+A[0]+","+A[1]+","+A[2]+")":L==="a"?`${A[3]}`:"rgba("+A.join(",")+")":N}brighten(L){const N=this.rgba;if(this.stops)this.stops.forEach(function(A){A.brighten(L)});else if(o(L)&&L!==0)for(let A=0;A<3;A++)N[A]+=u(L*255),N[A]<0&&(N[A]=0),N[A]>255&&(N[A]=255);return this}setOpacity(L){return this.rgba[3]=L,this}tweenTo(L,N){const A=this.rgba,p=L.rgba;if(!o(A[0])||!o(p[0]))return L.input||"none";const g=p[3]!==1||A[3]!==1;return(g?"rgba(":"rgb(")+Math.round(p[0]+(A[0]-p[0])*(1-N))+","+Math.round(p[1]+(A[1]-p[1])*(1-N))+","+Math.round(p[2]+(A[2]-p[2])*(1-N))+(g?","+(p[3]+(A[3]-p[3])*(1-N)):"")+")"}}return w.names={white:"#ffffff",black:"#000000"},w.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(y){return[u(y[1]),u(y[2]),u(y[3]),parseFloat(y[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(y){return[u(y[1]),u(y[2]),u(y[3]),1]}}],w.None=new w(""),w}),a(t,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),a(t,"Core/Time.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){const{win:o}=i,{defined:c,error:u,extend:w,isObject:y,merge:L,objectEach:N,pad:A,pick:p,splat:g,timeUnits:O}=s,M=i.isSafari&&o.Intl&&o.Intl.DateTimeFormat.prototype.formatRange,_=i.isSafari&&o.Intl&&!o.Intl.DateTimeFormat.prototype.formatRange;class j{constructor(k){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=o.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(k)}get(k,F){if(this.variableTimezone||this.timezoneOffset){const P=F.getTime(),I=P-this.getTimezoneOffset(F);F.setTime(I);const m=F["getUTC"+k]();return F.setTime(P),m}return this.useUTC?F["getUTC"+k]():F["get"+k]()}set(k,F,P){if(this.variableTimezone||this.timezoneOffset){if(k==="Milliseconds"||k==="Seconds"||k==="Minutes"&&this.getTimezoneOffset(F)%36e5===0)return F["setUTC"+k](P);const I=this.getTimezoneOffset(F);let m=F.getTime()-I;F.setTime(m),F["setUTC"+k](P);const B=this.getTimezoneOffset(F);return m=F.getTime()+B,F.setTime(m)}return this.useUTC||M&&k==="FullYear"?F["setUTC"+k](P):F["set"+k](P)}update(k={}){const F=p(k.useUTC,!0);this.options=k=L(!0,this.options,k),this.Date=k.Date||o.Date||Date,this.useUTC=F,this.timezoneOffset=F&&k.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=F&&!!(k.getTimezoneOffset||k.timezone)}makeTime(k,F,P,I,m,B){let T,S,x;return this.useUTC?(T=this.Date.UTC.apply(0,arguments),S=this.getTimezoneOffset(T),T+=S,x=this.getTimezoneOffset(T),S!==x?T+=x-S:S-36e5===this.getTimezoneOffset(T-36e5)&&!_&&(T-=36e5)):T=new this.Date(k,F,p(P,1),p(I,0),p(m,0),p(B,0)).getTime(),T}timezoneOffsetFunction(){const k=this,F=this.options,P=F.getTimezoneOffset,I=F.moment||o.moment;if(!this.useUTC)return function(m){return new Date(m.toString()).getTimezoneOffset()*6e4};if(F.timezone)if(!I)u(25);else return function(m){return-I.tz(m,F.timezone).utcOffset()*6e4};return this.useUTC&&P?function(m){return P(m.valueOf())*6e4}:function(){return(k.timezoneOffset||0)*6e4}}dateFormat(k,F,P){if(!c(F)||isNaN(F))return i.defaultOptions.lang&&i.defaultOptions.lang.invalidDate||"";k=p(k,"%Y-%m-%d %H:%M:%S");const I=this,m=new this.Date(F),B=this.get("Hours",m),T=this.get("Day",m),S=this.get("Date",m),x=this.get("Month",m),h=this.get("FullYear",m),n=i.defaultOptions.lang,l=n&&n.weekdays,f=n&&n.shortWeekdays,b=w({a:f?f[T]:l[T].substr(0,3),A:l[T],d:A(S),e:A(S,2," "),w:T,b:n.shortMonths[x],B:n.months[x],m:A(x+1),o:x+1,y:h.toString().substr(2,2),Y:h,H:A(B),k:B,I:A(B%12||12),l:B%12||12,M:A(this.get("Minutes",m)),p:B<12?"AM":"PM",P:B<12?"am":"pm",S:A(m.getSeconds()),L:A(Math.floor(F%1e3),3)},i.dateFormats);return N(b,function(v,G){for(;k.indexOf("%"+G)!==-1;)k=k.replace("%"+G,typeof v=="function"?v.call(I,F):v)}),P?k.substr(0,1).toUpperCase()+k.substr(1):k}resolveDTLFormat(k){return y(k,!0)?k:(k=g(k),{main:k[0],from:k[1],to:k[2]})}getTimeTicks(k,F,P,I){const m=this,B=m.Date,T=[],S={},x=new B(F),h=k.unitRange,n=k.count||1;let l,f,b,v;if(I=p(I,1),c(F)){m.set("Milliseconds",x,h>=O.second?0:n*Math.floor(m.get("Milliseconds",x)/n)),h>=O.second&&m.set("Seconds",x,h>=O.minute?0:n*Math.floor(m.get("Seconds",x)/n)),h>=O.minute&&m.set("Minutes",x,h>=O.hour?0:n*Math.floor(m.get("Minutes",x)/n)),h>=O.hour&&m.set("Hours",x,h>=O.day?0:n*Math.floor(m.get("Hours",x)/n)),h>=O.day&&m.set("Date",x,h>=O.month?1:Math.max(1,n*Math.floor(m.get("Date",x)/n))),h>=O.month&&(m.set("Month",x,h>=O.year?0:n*Math.floor(m.get("Month",x)/n)),f=m.get("FullYear",x)),h>=O.year&&(f-=f%n,m.set("FullYear",x,f)),h===O.week&&(v=m.get("Day",x),m.set("Date",x,m.get("Date",x)-v+I+(v<I?-7:0))),f=m.get("FullYear",x);const G=m.get("Month",x),U=m.get("Date",x),D=m.get("Hours",x);F=x.getTime(),(m.variableTimezone||!m.useUTC)&&c(P)&&(b=P-F>4*O.month||m.getTimezoneOffset(F)!==m.getTimezoneOffset(P));let H=x.getTime();for(l=1;H<P;)T.push(H),h===O.year?H=m.makeTime(f+l*n,0):h===O.month?H=m.makeTime(f,G+l*n):b&&(h===O.day||h===O.week)?H=m.makeTime(f,G,U+l*n*(h===O.day?1:7)):b&&h===O.hour&&n>1?H=m.makeTime(f,G,U,D+l*n):H+=h*n,l++;T.push(H),h<=O.hour&&T.length<1e4&&T.forEach(function(z){z%18e5===0&&m.dateFormat("%H%M%S%L",z)==="000000000"&&(S[z]="day")})}return T.info=w(k,{higherRanks:S,totalRange:h*n}),T}getDateFormat(k,F,P,I){const m=this.dateFormat("%m-%d %H:%M:%S.%L",F),B="01-01 00:00:00.000",T={millisecond:15,second:12,minute:9,hour:6,day:3};let S="millisecond",x=S;for(S in O){if(k===O.week&&+this.dateFormat("%w",F)===P&&m.substr(6)===B.substr(6)){S="week";break}if(O[S]>k){S=x;break}if(T[S]&&m.substr(T[S])!==B.substr(T[S]))break;S!=="week"&&(x=S)}return this.resolveDTLFormat(I[S]).main}}return j}),a(t,"Core/Defaults.js",[t["Core/Chart/ChartDefaults.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Color/Palettes.js"],t["Core/Time.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w){const{isTouchDevice:y,svg:L}=o,{merge:N}=w,A={colors:c.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",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"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:i,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:L,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:y?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};A.chart.styledMode=!1;const p=new u(A.time);function g(){return A}function O(_){return N(!0,A,_),(_.time||_.global)&&(o.time?o.time.update(N(A.global,A.time,_.global,_.time)):o.time=p),A}return{defaultOptions:A,defaultTime:p,getOptions:g,setOptions:O}}),a(t,"Core/Animation/Fx.js",[t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,o){const{parse:c}=i,{win:u}=s,{isNumber:w,objectEach:y}=o;class L{constructor(A,p,g){this.pos=NaN,this.options=p,this.elem=A,this.prop=g}dSetter(){const A=this.paths,p=A&&A[0],g=A&&A[1],O=this.now||0;let M=[];if(O===1||!p||!g)M=this.toD||[];else if(p.length===g.length&&O<1)for(let _=0;_<g.length;_++){const j=p[_],C=g[_],k=[];for(let F=0;F<C.length;F++){const P=j[F],I=C[F];w(P)&&w(I)&&!(C[0]==="A"&&(F===4||F===5))?k[F]=P+O*(I-P):k[F]=I}M.push(k)}else M=g;this.elem.attr("d",M,void 0,!0)}update(){const A=this.elem,p=this.prop,g=this.now,O=this.options.step;this[p+"Setter"]?this[p+"Setter"]():A.attr?A.element&&A.attr(p,g,null,!0):A.style[p]=g+this.unit,O&&O.call(A,g,this)}run(A,p,g){const O=this,M=O.options,_=function(k){return _.stopped?!1:O.step(k)},j=u.requestAnimationFrame||function(k){setTimeout(k,13)},C=function(){for(let k=0;k<L.timers.length;k++)L.timers[k]()||L.timers.splice(k--,1);L.timers.length&&j(C)};A===p&&!this.elem["forceAnimate:"+this.prop]?(delete M.curAnim[this.prop],M.complete&&Object.keys(M.curAnim).length===0&&M.complete.call(this.elem)):(this.startTime=+new Date,this.start=A,this.end=p,this.unit=g,this.now=this.start,this.pos=0,_.elem=this.elem,_.prop=this.prop,_()&&L.timers.push(_)===1&&j(C))}step(A){const p=+new Date,g=this.options,O=this.elem,M=g.complete,_=g.duration,j=g.curAnim;let C,k;return O.attr&&!O.element?C=!1:A||p>=_+this.startTime?(this.now=this.end,this.pos=1,this.update(),j[this.prop]=!0,k=!0,y(j,function(F){F!==!0&&(k=!1)}),k&&M&&M.call(O),C=!1):(this.pos=g.easing((p-this.startTime)/_),this.now=this.start+(this.end-this.start)*this.pos,this.update(),C=!0),C}initPath(A,p,g){const O=A.startX,M=A.endX,_=g.slice(),j=A.isArea,C=j?2:1;let k,F,P,I,m=p&&p.slice();if(!m)return[_,_];function B(S,x){for(;S.length<F;){const h=S[0],n=x[F-S.length];if(n&&h[0]==="M"&&(n[0]==="C"?S[0]=["C",h[1],h[2],h[1],h[2],h[1],h[2]]:S[0]=["L",h[1],h[2]]),S.unshift(h),j){const l=S.pop();S.push(S[S.length-1],l)}}}function T(S,x){for(;S.length<F;){const h=S[Math.floor(S.length/C)-1].slice();if(h[0]==="C"&&(h[1]=h[5],h[2]=h[6]),!j)S.push(h);else{const n=S[Math.floor(S.length/C)].slice();S.splice(S.length/2,0,h,n)}}}if(O&&M&&M.length){for(P=0;P<O.length;P++)if(O[P]===M[0]){k=P;break}else if(O[0]===M[M.length-O.length+P]){k=P,I=!0;break}else if(O[O.length-1]===M[M.length-O.length+P]){k=O.length-P;break}typeof k>"u"&&(m=[])}return m.length&&w(k)&&(F=_.length+k*C,I?(B(m,_),T(_)):(B(_,m),T(m))),[m,_]}fillSetter(){L.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,c(this.start).tweenTo(c(this.end),this.pos),void 0,!0)}}return L.timers=[],L}),a(t,"Core/Animation/AnimationUtilities.js",[t["Core/Animation/Fx.js"],t["Core/Utilities.js"]],function(i,s){const{defined:o,getStyle:c,isArray:u,isNumber:w,isObject:y,merge:L,objectEach:N,pick:A}=s;function p(C,k){k.renderer.globalAnimation=A(C,k.options.chart.animation,!0)}function g(C){return y(C)?L({duration:500,defer:0},C):{duration:C?500:0,defer:0}}function O(C,k,F){const P=g(k),I=F?[F]:C.series;let m=0,B=0;return I.forEach(S=>{const x=g(S.options.animation);m=k&&o(k.defer)?P.defer:Math.max(m,x.duration+x.defer),B=Math.min(P.duration,x.duration)}),C.renderer.forExport&&(m=0),{defer:Math.max(0,m-B),duration:Math.min(m,B)}}function M(C,k,F){let P,I="",m,B,T;y(F)||(T=arguments,F={duration:T[2],easing:T[3],complete:T[4]}),w(F.duration)||(F.duration=400),F.easing=typeof F.easing=="function"?F.easing:Math[F.easing]||Math.easeInOutSine,F.curAnim=L(k),N(k,function(S,x){_(C,x),B=new i(C,F,x),m=void 0,x==="d"&&u(k.d)?(B.paths=B.initPath(C,C.pathArray,k.d),B.toD=k.d,P=0,m=1):C.attr?P=C.attr(x):(P=parseFloat(c(C,x))||0,x!=="opacity"&&(I="px")),m||(m=S),typeof m=="string"&&m.match("px")&&(m=m.replace(/px/g,"")),B.run(P,m,I)})}function _(C,k){let F=i.timers.length;for(;F--;)i.timers[F].elem===C&&(!k||k===i.timers[F].prop)&&(i.timers[F].stopped=!0)}return{animate:M,animObject:g,getDeferredAnimation:O,setAnimation:p,stop:_}}),a(t,"Core/Renderer/HTML/AST.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){const{SVG_NS:o,win:c}=i,{attr:u,createElement:w,css:y,error:L,isFunction:N,isString:A,objectEach:p,splat:g}=s,{trustedTypes:O}=c,M=O&&N(O.createPolicy)&&O.createPolicy("highcharts",{createHTML:k=>k}),_=M?M.createHTML(""):"",j=function(){try{return!!new DOMParser().parseFromString(_,"text/html")}catch{return!1}}();class C{static filterUserAttributes(F){return p(F,(P,I)=>{let m=!0;C.allowedAttributes.indexOf(I)===-1&&(m=!1),["background","dynsrc","href","lowsrc","src"].indexOf(I)!==-1&&(m=A(P)&&C.allowedReferences.some(B=>P.indexOf(B)===0)),m||(L(33,!1,void 0,{"Invalid attribute in config":`${I}`}),delete F[I]),A(P)&&F[I]&&(F[I]=P.replace(/</g,"&lt;"))}),F}static parseStyle(F){return F.split(";").reduce((P,I)=>{const m=I.split(":").map(T=>T.trim()),B=m.shift();return B&&m.length&&(P[B.replace(/-([a-z])/g,T=>T[1].toUpperCase())]=m.join(":")),P},{})}static setElementHTML(F,P){F.innerHTML=C.emptyHTML,P&&new C(P).addToDOM(F)}constructor(F){this.nodes=typeof F=="string"?this.parseMarkup(F):F}addToDOM(F){function P(I,m){let B;return g(I).forEach(function(T){const S=T.tagName,x=T.textContent?i.doc.createTextNode(T.textContent):void 0,h=C.bypassHTMLFiltering;let n;if(S)if(S==="#text")n=x;else if(C.allowedTags.indexOf(S)!==-1||h){const l=S==="svg"?o:m.namespaceURI||o,f=i.doc.createElementNS(l,S),b=T.attributes||{};p(T,function(v,G){G!=="tagName"&&G!=="attributes"&&G!=="children"&&G!=="style"&&G!=="textContent"&&(b[G]=v)}),u(f,h?b:C.filterUserAttributes(b)),T.style&&y(f,T.style),x&&f.appendChild(x),P(T.children||[],f),n=f}else L(33,!1,void 0,{"Invalid tagName in config":S});n&&m.appendChild(n),B=n}),B}return P(this.nodes,F)}parseMarkup(F){const P=[];F=F.trim().replace(/ style=(["'])/g," data-style=$1");let I;if(j)I=new DOMParser().parseFromString(M?M.createHTML(F):F,"text/html");else{const B=w("div");B.innerHTML=F,I={body:B}}const m=(B,T)=>{const S=B.nodeName.toLowerCase(),x={tagName:S};S==="#text"&&(x.textContent=B.textContent||"");const h=B.attributes;if(h){const n={};[].forEach.call(h,l=>{l.name==="data-style"?x.style=C.parseStyle(l.value):n[l.name]=l.value}),x.attributes=n}if(B.childNodes.length){const n=[];[].forEach.call(B.childNodes,l=>{m(l,n)}),n.length&&(x.children=n)}T.push(x)};return[].forEach.call(I.body.childNodes,B=>m(B,P)),P}}return C.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","flood-color","flood-opacity","height","href","id","in","markerHeight","markerWidth","offset","opacity","orient","padding","paddingLeft","paddingRight","patternUnits","r","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],C.allowedReferences=["https://","http://","mailto:","/","../","./","#"],C.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feDropShadow","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],C.emptyHTML=_,C.bypassHTMLFiltering=!1,C}),a(t,"Core/Templating.js",[t["Core/Defaults.js"],t["Core/Utilities.js"]],function(i,s){const{defaultOptions:o,defaultTime:c}=i,{extend:u,getNestedProperty:w,isArray:y,isNumber:L,isObject:N,isString:A,pick:p,pInt:g}=s,O={add:(k,F)=>k+F,divide:(k,F)=>F!==0?k/F:"",eq:(k,F)=>k==F,each:function(k){const F=arguments[arguments.length-1];return y(k)?k.map((P,I)=>_(F.body,u(N(P)?P:{"@this":P},{"@index":I,"@first":I===0,"@last":I===k.length-1}))).join(""):!1},ge:(k,F)=>k>=F,gt:(k,F)=>k>F,if:k=>!!k,le:(k,F)=>k<=F,lt:(k,F)=>k<F,multiply:(k,F)=>k*F,ne:(k,F)=>k!=F,subtract:(k,F)=>k-F,unless:k=>!k};function M(k,F,P){return c.dateFormat(k,F,P)}function _(k="",F,P){const I=/\{([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= #\(\)]+)\}/g,m=/\(([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= ]+)\)/g,B=[],T=/f$/,S=/\.([0-9])/,x=o.lang,h=P&&P.time||c,n=P&&P.numberFormatter||j,l=(U="")=>{let D;return U==="true"?!0:U==="false"?!1:(D=Number(U)).toString()===U?D:w(U,F)};let f,b,v=0,G;for(;(f=I.exec(k))!==null;){const U=m.exec(f[1]);U&&(f=U,G=!0),(!b||!b.isBlock)&&(b={ctx:F,expression:f[1],find:f[0],isBlock:f[1].charAt(0)==="#",start:f.index,startInner:f.index+f[0].length,length:f[0].length});const D=f[1].split(" ")[0].replace("#","");O[D]&&(b.isBlock&&D===b.fn&&v++,b.fn||(b.fn=D));const H=f[1]==="else";if(b.isBlock&&b.fn&&(f[1]===`/${b.fn}`||H))if(v)H||v--;else{const z=b.startInner,W=k.substr(z,f.index-z);b.body===void 0?(b.body=W,b.startInner=f.index+f[0].length):b.elseBody=W,b.find+=W+f[0],H||(B.push(b),b=void 0)}else b.isBlock||B.push(b);if(U&&!(b!=null&&b.isBlock))break}return B.forEach(U=>{const{body:D,elseBody:H,expression:z,fn:W}=U;let d,R;if(W){const q=[U],J=z.split(" ");for(R=O[W].length;R--;)q.unshift(l(J[R+1]));d=O[W].apply(F,q),U.isBlock&&typeof d=="boolean"&&(d=_(d?D:H,F))}else{const q=z.split(":");if(d=l(q.shift()||""),q.length&&typeof d=="number"){const J=q.join(":");if(T.test(J)){const Y=parseInt((J.match(S)||["","-1"])[1],10);d!==null&&(d=n(d,Y,x.decimalPoint,J.indexOf(",")>-1?x.thousandsSep:""))}else d=h.dateFormat(J,d)}}k=k.replace(U.find,p(d,""))}),G?_(k,F,P):k}function j(k,F,P,I){k=+k||0,F=+F;let m,B;const T=o.lang,S=(k.toString().split(".")[1]||"").split("e")[0].length,x=k.toString().split("e"),h=F;F===-1?F=Math.min(S,20):L(F)?F&&x[1]&&x[1]<0&&(B=F+ +x[1],B>=0?(x[0]=(+x[0]).toExponential(B).split("e")[0],F=B):(x[0]=x[0].split(".")[0]||0,F<20?k=(x[0]*Math.pow(10,x[1])).toFixed(F):k=0,x[1]=0)):F=2;const n=(Math.abs(x[1]?x[0]:k)+Math.pow(10,-Math.max(F,S)-1)).toFixed(F),l=String(g(n)),f=l.length>3?l.length%3:0;return P=p(P,T.decimalPoint),I=p(I,T.thousandsSep),m=k<0?"-":"",m+=f?l.substr(0,f)+I:"",+x[1]<0&&!h?m="0":m+=l.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+I),F&&(m+=P+n.slice(-F)),x[1]&&+m!=0&&(m+="e"+x[1]),m}return{dateFormat:M,format:_,helpers:O,numberFormat:j}}),a(t,"Core/Renderer/RendererUtilities.js",[t["Core/Utilities.js"]],function(i){const{clamp:s,pick:o,stableSort:c}=i;var u;return function(w){function y(L,N,A){const p=L,g=p.reducedLen||N,O=(I,m)=>(m.rank||0)-(I.rank||0),M=(I,m)=>I.target-m.target;let _,j=!0,C=[],k,F,P=0;for(_=L.length;_--;)P+=L[_].size;if(P>g){for(c(L,O),_=0,P=0;P<=g;)P+=L[_].size,_++;C=L.splice(_-1,L.length)}for(c(L,M),L=L.map(I=>({size:I.size,targets:[I.target],align:o(I.align,.5)}));j;){for(_=L.length;_--;)k=L[_],F=(Math.min.apply(0,k.targets)+Math.max.apply(0,k.targets))/2,k.pos=s(F-k.size*k.align,0,N-k.size);for(_=L.length,j=!1;_--;)_>0&&L[_-1].pos+L[_-1].size>L[_].pos&&(L[_-1].size+=L[_].size,L[_-1].targets=L[_-1].targets.concat(L[_].targets),L[_-1].align=.5,L[_-1].pos+L[_-1].size>N&&(L[_-1].pos=N-L[_-1].size),L.splice(_,1),j=!0)}return p.push.apply(p,C),_=0,L.some(I=>{let m=0;return(I.targets||[]).some(()=>(p[_].pos=I.pos+m,typeof A<"u"&&Math.abs(p[_].pos-p[_].target)>A?(p.slice(0,_+1).forEach(B=>delete B.pos),p.reducedLen=(p.reducedLen||N)-N*.1,p.reducedLen>N*.1&&y(p,N,A),!0):(m+=p[_].size,_++,!1)))}),c(p,M),p}w.distribute=y}(u||(u={})),u}),a(t,"Core/Renderer/SVG/SVGElement.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,o,c){const{animate:u,animObject:w,stop:y}=i,{deg2rad:L,doc:N,noop:A,svg:p,SVG_NS:g,win:O}=o,{addEvent:M,attr:_,createElement:j,css:C,defined:k,erase:F,extend:P,fireEvent:I,isArray:m,isFunction:B,isObject:T,isString:S,merge:x,objectEach:h,pick:n,pInt:l,syncTimeout:f,uniqueKey:b}=c;class v{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=g}_defaultGetter(U){let D=n(this[U+"Value"],this[U],this.element?this.element.getAttribute(U):null,0);return/^[\-0-9\.]+$/.test(D)&&(D=parseFloat(D)),D}_defaultSetter(U,D,H){H.setAttribute(D,U)}add(U){const D=this.renderer,H=this.element;let z;return U&&(this.parentGroup=U),typeof this.textStr<"u"&&this.element.nodeName==="text"&&D.buildText(this),this.added=!0,(!U||U.handleZ||this.zIndex)&&(z=this.zIndexSetter()),z||(U?U.element:D.box).appendChild(H),this.onAdd&&this.onAdd(),this}addClass(U,D){const H=D?"":this.attr("class")||"";return U=(U||"").split(/ /g).reduce(function(z,W){return H.indexOf(W)===-1&&z.push(W),z},H?[H]:[]).join(" "),U!==H&&this.attr("class",U),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(U,D,H){const z={},W=this.renderer,d=W.alignedObjects;let R,q,J,Y,ee;U?(this.alignOptions=U,this.alignByTranslate=D,(!H||S(H))&&(this.alignTo=J=H||"renderer",F(d,this),d.push(this),H=void 0)):(U=this.alignOptions,D=this.alignByTranslate,J=this.alignTo),H=n(H,W[J],J==="scrollablePlotBox"?W.plotBox:void 0,W);const E=U.align,V=U.verticalAlign;return R=(H.x||0)+(U.x||0),q=(H.y||0)+(U.y||0),E==="right"?Y=1:E==="center"&&(Y=2),Y&&(R+=(H.width-(U.width||0))/Y),z[D?"translateX":"x"]=Math.round(R),V==="bottom"?ee=1:V==="middle"&&(ee=2),ee&&(q+=(H.height-(U.height||0))/ee),z[D?"translateY":"y"]=Math.round(q),this[this.placed?"animate":"attr"](z),this.placed=!0,this.alignAttr=z,this}alignSetter(U){const D={left:"start",center:"middle",right:"end"};D[U]&&(this.alignValue=U,this.element.setAttribute("text-anchor",D[U]))}animate(U,D,H){const z=w(n(D,this.renderer.globalAnimation,!0)),W=z.defer;return N.hidden&&(z.duration=0),z.duration!==0?(H&&(z.complete=H),f(()=>{this.element&&u(this,U,z)},W)):(this.attr(U,void 0,H||z.complete),h(U,function(d,R){z.step&&z.step.call(this,d,{prop:R,pos:1,elem:this})},this)),this}applyTextOutline(U){const D=this.element;U.indexOf("contrast")!==-1&&(U=U.replace(/contrast/g,this.renderer.getContrast(D.style.fill)));const z=U.split(" "),W=z[z.length-1];let d=z[0];if(d&&d!=="none"&&o.svg){this.fakeTS=!0,d=d.replace(/(^[\d\.]+)(.*?)$/g,function(ee,E,V){return 2*Number(E)+V}),this.removeTextOutline();const R=N.createElementNS(g,"tspan");_(R,{class:"highcharts-text-outline",fill:W,stroke:W,"stroke-width":d,"stroke-linejoin":"round"});const q=D.querySelector("textPath")||D;[].forEach.call(q.childNodes,ee=>{const E=ee.cloneNode(!0);E.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(V=>E.removeAttribute(V)),R.appendChild(E)});let J=0;[].forEach.call(q.querySelectorAll("text tspan"),ee=>{J+=Number(ee.getAttribute("dy"))});const Y=N.createElementNS(g,"tspan");Y.textContent="​",_(Y,{x:Number(D.getAttribute("x")),dy:-J}),R.appendChild(Y),q.insertBefore(R,q.firstChild)}}attr(U,D,H,z){const W=this.element,d=v.symbolCustomAttribs;let R,q,J=this,Y,ee;return typeof U=="string"&&typeof D<"u"&&(R=U,U={},U[R]=D),typeof U=="string"?J=(this[U+"Getter"]||this._defaultGetter).call(this,U,W):(h(U,function(V,X){Y=!1,z||y(this,X),this.symbolName&&d.indexOf(X)!==-1&&(q||(this.symbolAttr(U),q=!0),Y=!0),this.rotation&&(X==="x"||X==="y")&&(this.doTransform=!0),Y||(ee=this[X+"Setter"]||this._defaultSetter,ee.call(this,V,X,W))},this),this.afterSetters()),H&&H.call(this),J}clip(U){return this.attr("clip-path",U?"url("+this.renderer.url+"#"+U.id+")":"none")}crisp(U,D){const H=this;D=D||U.strokeWidth||0;const z=Math.round(D)%2/2;return U.x=Math.floor(U.x||H.x||0)+z,U.y=Math.floor(U.y||H.y||0)+z,U.width=Math.floor((U.width||H.width||0)-2*z),U.height=Math.floor((U.height||H.height||0)-2*z),k(U.strokeWidth)&&(U.strokeWidth=D),U}complexColor(U,D,H){const z=this.renderer;let W,d,R,q,J,Y,ee,E,V,X,Q=[],se;I(this.renderer,"complexColor",{args:arguments},function(){if(U.radialGradient?d="radialGradient":U.linearGradient&&(d="linearGradient"),d){if(R=U[d],J=z.gradients,Y=U.stops,V=H.radialReference,m(R)&&(U[d]=R={x1:R[0],y1:R[1],x2:R[2],y2:R[3],gradientUnits:"userSpaceOnUse"}),d==="radialGradient"&&V&&!k(R.gradientUnits)&&(q=R,R=x(R,z.getRadialAttr(V,q),{gradientUnits:"userSpaceOnUse"})),h(R,function(K,ne){ne!=="id"&&Q.push(ne,K)}),h(Y,function(K){Q.push(K)}),Q=Q.join(","),J[Q])X=J[Q].attr("id");else{R.id=X=b();const K=J[Q]=z.createElement(d).attr(R).add(z.defs);K.radAttr=q,K.stops=[],Y.forEach(function(ne){ne[1].indexOf("rgba")===0?(W=s.parse(ne[1]),ee=W.get("rgb"),E=W.get("a")):(ee=ne[1],E=1);const oe=z.createElement("stop").attr({offset:ne[0],"stop-color":ee,"stop-opacity":E}).add(K);K.stops.push(oe)})}se="url("+z.url+"#"+X+")",H.setAttribute(D,se),H.gradient=Q,U.toString=function(){return se}}})}css(U){const D=this.styles,H={},z=this.element;let W,d=!D;if(D&&h(U,function(R,q){D&&D[q]!==R&&(H[q]=R,d=!0)}),d){D&&(U=P(D,H)),U.width===null||U.width==="auto"?delete this.textWidth:z.nodeName.toLowerCase()==="text"&&U.width&&(W=this.textWidth=l(U.width)),this.styles=U,W&&!p&&this.renderer.forExport&&delete U.width;const R=x(U);z.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(q=>R&&delete R[q]),R.color&&(R.fill=R.color)),C(z,R)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),U.textOutline&&this.applyTextOutline(U.textOutline)),this}dashstyleSetter(U){let D,H=this["stroke-width"];if(H==="inherit"&&(H=1),U=U&&U.toLowerCase(),U){const z=U.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(D=z.length;D--;)z[D]=""+l(z[D])*n(H,NaN);U=z.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",U)}}destroy(){const U=this,D=U.element||{},H=U.renderer,z=D.ownerSVGElement;let W=D.nodeName==="SPAN"&&U.parentGroup||void 0,d,R;if(D.onclick=D.onmouseout=D.onmouseover=D.onmousemove=D.point=null,y(U),U.clipPath&&z){const q=U.clipPath;[].forEach.call(z.querySelectorAll("[clip-path],[CLIP-PATH]"),function(J){J.getAttribute("clip-path").indexOf(q.element.id)>-1&&J.removeAttribute("clip-path")}),U.clipPath=q.destroy()}if(U.stops){for(R=0;R<U.stops.length;R++)U.stops[R].destroy();U.stops.length=0,U.stops=void 0}for(U.safeRemoveChild(D);W&&W.div&&W.div.childNodes.length===0;)d=W.parentGroup,U.safeRemoveChild(W.div),delete W.div,W=d;U.alignTo&&F(H.alignedObjects,U),h(U,function(q,J){U[J]&&U[J].parentGroup===U&&U[J].destroy&&U[J].destroy(),delete U[J]})}dSetter(U,D,H){m(U)&&(typeof U[0]=="string"&&(U=this.renderer.pathToSegments(U)),this.pathArray=U,U=U.reduce((z,W,d)=>!W||!W.join?(W||"").toString():(d?z+" ":"")+W.join(" "),"")),/(NaN| {2}|^$)/.test(U)&&(U="M 0 0"),this[D]!==U&&(H.setAttribute(D,U),this[D]=U)}fadeOut(U){const D=this;D.animate({opacity:0},{duration:n(U,150),complete:function(){D.hide()}})}fillSetter(U,D,H){typeof U=="string"?H.setAttribute(D,U):U&&this.complexColor(U,D,H)}getBBox(U,D){const H=this,{alignValue:z,element:W,renderer:d,styles:R,textStr:q}=H,{cache:J,cacheKeys:Y}=d,ee=W.namespaceURI===H.SVG_NS,E=n(D,H.rotation,0),V=d.styledMode?W&&v.prototype.getStyle.call(W,"font-size"):R&&R.fontSize;let X,Q,se,K,ne;if(k(q)&&(ne=q.toString(),ne.indexOf("<")===-1&&(ne=ne.replace(/[0-9]/g,"0")),ne+=["",d.rootFontSize,V,E,H.textWidth,z,R&&R.textOverflow,R&&R.fontWeight].join(",")),ne&&!U&&(X=J[ne]),!X){if(ee||d.forExport){try{K=this.fakeTS&&function(oe){const le=W.querySelector(".highcharts-text-outline");le&&C(le,{display:oe})},B(K)&&K("none"),X=W.getBBox?P({},W.getBBox()):{width:W.offsetWidth,height:W.offsetHeight,x:0,y:0},B(K)&&K("")}catch{}(!X||X.width<0)&&(X={x:0,y:0,width:0,height:0})}else X=H.htmlGetBBox();if(Q=X.width,se=X.height,ee&&(X.height=se={"11px,17":14,"13px,20":16}[`${V||""},${Math.round(se)}`]||se),E){const oe=Number(W.getAttribute("y")||0)-X.y,le={right:1,center:.5}[z||0]||0,ye=E*L,te=(E-90)*L,re=Q*Math.cos(ye),Z=Q*Math.sin(ye),ie=Math.cos(te),ae=Math.sin(te),he=X.x+le*(Q-re),fe=X.y+oe-le*Z,ve=he+oe*ie,ge=ve+re,_e=ge-se*ie,be=_e-re,Ce=fe+oe*ae,De=Ce+Z,Be=De-se*ae,Le=Be-Z;X.x=Math.min(ve,ge,_e,be),X.y=Math.min(Ce,De,Be,Le),X.width=Math.max(ve,ge,_e,be)-X.x,X.height=Math.max(Ce,De,Be,Le)-X.y}}if(ne&&(q===""||X.height>0)){for(;Y.length>250;)delete J[Y.shift()];J[ne]||Y.push(ne),J[ne]=X}return X}getStyle(U){return O.getComputedStyle(this.element||this,"").getPropertyValue(U)}hasClass(U){return(""+this.attr("class")).split(" ").indexOf(U)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}init(U,D){this.element=D==="span"?j(D):N.createElementNS(this.SVG_NS,D),this.renderer=U,I(this,"afterInit")}on(U,D){const{onEvents:H}=this;return H[U]&&H[U](),H[U]=M(this.element,U,D),this}opacitySetter(U,D,H){const z=Number(Number(U).toFixed(3));this.opacity=z,H.setAttribute(D,z)}removeClass(U){return this.attr("class",(""+this.attr("class")).replace(S(U)?new RegExp(`(^| )${U}( |$)`):U," ").replace(/ +/g," ").trim())}removeTextOutline(){const U=this.element.querySelector("tspan.highcharts-text-outline");U&&this.safeRemoveChild(U)}safeRemoveChild(U){const D=U.parentNode;D&&D.removeChild(U)}setRadialReference(U){const D=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=U,D&&D.radAttr&&D.animate(this.renderer.getRadialAttr(U,D.radAttr)),this}setTextPath(U,D){D=x(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},D);const H=this.renderer.url,z=this.text||this,W=z.textPath,{attributes:d,enabled:R}=D;if(U=U||W&&W.path,W&&W.undo(),U&&R){const q=M(z,"afterModifyTree",J=>{if(U&&R){let Y=U.attr("id");Y||U.attr("id",Y=b());const ee={x:0,y:0};k(d.dx)&&(ee.dx=d.dx,delete d.dx),k(d.dy)&&(ee.dy=d.dy,delete d.dy),z.attr(ee),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());const E=J.nodes.slice(0);J.nodes.length=0,J.nodes[0]={tagName:"textPath",attributes:P(d,{"text-anchor":d.textAnchor,href:`${H}#${Y}`}),children:E}}});z.textPath={path:U,undo:q}}else z.attr({dx:0,dy:0}),delete z.textPath;return this.added&&(z.textCache="",this.renderer.buildText(z)),this}shadow(U){var D;const{renderer:H}=this,z=x(((D=this.parentGroup)===null||D===void 0?void 0:D.rotation)===90?{offsetX:-1,offsetY:-1}:{},T(U)?U:{}),W=H.shadowDefinition(z);return this.attr({filter:U?`url(${H.url}#${W})`:"none"})}show(U=!0){return this.attr({visibility:U?"inherit":"visible"})}"stroke-widthSetter"(U,D,H){this[D]=U,H.setAttribute(D,U)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;const U=this.getStyle("stroke-width");let D=0,H;return U.indexOf("px")===U.length-2?D=l(U):U!==""&&(H=N.createElementNS(g,"rect"),_(H,{width:U,"stroke-width":0}),this.element.parentNode.appendChild(H),D=H.getBBox().width,H.parentNode.removeChild(H)),D}symbolAttr(U){const D=this;v.symbolCustomAttribs.forEach(function(H){D[H]=n(U[H],D[H])}),D.attr({d:D.renderer.symbols[D.symbolName](D.x,D.y,D.width,D.height,D)})}textSetter(U){U!==this.textStr&&(delete this.textPxLength,this.textStr=U,this.added&&this.renderer.buildText(this))}titleSetter(U){const D=this.element,H=D.getElementsByTagName("title")[0]||N.createElementNS(this.SVG_NS,"title");D.insertBefore?D.insertBefore(H,D.firstChild):D.appendChild(H),H.textContent=String(n(U,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")}toFront(){const U=this.element;return U.parentNode.appendChild(U),this}translate(U,D){return this.attr({translateX:U,translateY:D})}updateTransform(){const{element:U,matrix:D,rotation:H=0,scaleX:z,scaleY:W,translateX:d=0,translateY:R=0}=this,q=["translate("+d+","+R+")"];k(D)&&q.push("matrix("+D.join(",")+")"),H&&q.push("rotate("+H+" "+n(this.rotationOriginX,U.getAttribute("x"),0)+" "+n(this.rotationOriginY,U.getAttribute("y")||0)+")"),(k(z)||k(W))&&q.push("scale("+n(z,1)+" "+n(W,1)+")"),q.length&&!(this.text||this).textPath&&U.setAttribute("transform",q.join(" "))}visibilitySetter(U,D,H){U==="inherit"?H.removeAttribute(D):this[D]!==U&&H.setAttribute(D,U),this[D]=U}xGetter(U){return this.element.nodeName==="circle"&&(U==="x"?U="cx":U==="y"&&(U="cy")),this._defaultGetter(U)}zIndexSetter(U,D){const H=this.renderer,z=this.parentGroup,W=z||H,d=W.element||H.box,R=this.element,q=d===H.box;let J,Y,ee,E=!1,V,X=this.added,Q;if(k(U)?(R.setAttribute("data-z-index",U),U=+U,this[D]===U&&(X=!1)):k(this[D])&&R.removeAttribute("data-z-index"),this[D]=U,X){for(U=this.zIndex,U&&z&&(z.handleZ=!0),J=d.childNodes,Q=J.length-1;Q>=0&&!E;Q--)Y=J[Q],ee=Y.getAttribute("data-z-index"),V=!k(ee),Y!==R&&(U<0&&V&&!q&&!Q?(d.insertBefore(R,J[Q]),E=!0):(l(ee)<=U||V&&(!k(U)||U>=0))&&(d.insertBefore(R,J[Q+1]),E=!0));E||(d.insertBefore(R,J[q?3:0]),E=!0)}return E}}return v.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],v.prototype.strokeSetter=v.prototype.fillSetter,v.prototype.yGetter=v.prototype.xGetter,v.prototype.matrixSetter=v.prototype.rotationOriginXSetter=v.prototype.rotationOriginYSetter=v.prototype.rotationSetter=v.prototype.scaleXSetter=v.prototype.scaleYSetter=v.prototype.translateXSetter=v.prototype.translateYSetter=v.prototype.verticalAlignSetter=function(G,U){this[U]=G,this.doTransform=!0},v}),a(t,"Core/Renderer/RendererRegistry.js",[t["Core/Globals.js"]],function(i){var s;return function(o){o.rendererTypes={};let c;function u(y=c){return o.rendererTypes[y]||o.rendererTypes[c]}o.getRendererType=u;function w(y,L,N){o.rendererTypes[y]=L,(!c||N)&&(c=y,i.Renderer=L)}o.registerRendererType=w}(s||(s={})),s}),a(t,"Core/Renderer/SVG/SVGLabel.js",[t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(i,s){const{defined:o,extend:c,isNumber:u,merge:w,pick:y,removeEvent:L}=s;class N extends i{constructor(p,g,O,M,_,j,C,k,F,P){super(),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.init(p,"g"),this.textStr=g,this.x=O,this.y=M,this.anchorX=j,this.anchorY=C,this.baseline=F,this.className=P,this.addClass(P==="button"?"highcharts-no-tooltip":"highcharts-label"),P&&this.addClass("highcharts-"+P),this.text=p.text(void 0,0,0,k).attr({zIndex:1});let I;typeof _=="string"&&(I=/^url\((.*?)\)$/.test(_),(I||this.renderer.symbols[_])&&(this.symbolKey=_)),this.bBox=N.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=p.styledMode||I,this.deferredAttr={},this.alignFactor=0}alignSetter(p){const g={left:0,center:.5,right:1}[p];g!==this.alignFactor&&(this.alignFactor=g,this.bBox&&u(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(p,g){this.anchorX=p,this.boxAttr(g,Math.round(p)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(p,g){this.anchorY=p,this.boxAttr(g,p-this.ySetting)}boxAttr(p,g){this.box?this.box.attr(p,g):this.deferredAttr[p]=g}css(p){if(p){const g={};p=w(p),N.textProps.forEach(O=>{typeof p[O]<"u"&&(g[O]=p[O],delete p[O])}),this.text.css(g),"fontSize"in g||"fontWeight"in g?this.updateTextPadding():("width"in g||"textOverflow"in g)&&this.updateBoxSize()}return i.prototype.css.call(this,p)}destroy(){L(this.element,"mouseenter"),L(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),i.prototype.destroy.call(this)}fillSetter(p,g){p&&(this.needsBox=!0),this.fill=p,this.boxAttr(g,p)}getBBox(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();const p=this.padding,g=y(this.paddingLeft,p);return{width:this.width,height:this.height,x:this.bBox.x-g,y:this.bBox.y-p}}getCrispAdjust(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(p){this.heightSetting=p}onAdd(){this.text.add(this),this.attr({text:y(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&o(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(p,g){u(p)?p!==this[g]&&(this[g]=p,this.updateTextPadding()):this[g]=void 0}rSetter(p,g){this.boxAttr(g,p)}strokeSetter(p,g){this.stroke=p,this.boxAttr(g,p)}"stroke-widthSetter"(p,g){p&&(this.needsBox=!0),this["stroke-width"]=p,this.boxAttr(g,p)}"text-alignSetter"(p){this.textAlign=p}textSetter(p){typeof p<"u"&&this.text.attr({text:p}),this.updateTextPadding()}updateBoxSize(){const p=this.text,g={},O=this.padding,M=this.bBox=(!u(this.widthSetting)||!u(this.heightSetting)||this.textAlign)&&o(p.textStr)?p.getBBox():N.emptyBBox;let _;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||M.height||0)+2*O;const j=this.renderer.fontMetrics(p);if(this.baselineOffset=O+Math.min((this.text.firstLineMetrics||j).b,M.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-j.h)/2),this.needsBox&&!p.textPath){if(!this.box){const C=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();C.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),C.add(this)}_=this.getCrispAdjust(),g.x=_,g.y=(this.baseline?-this.baselineOffset:0)+_,g.width=Math.round(this.width),g.height=Math.round(this.height),this.box.attr(c(g,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){const p=this.text;if(!p.textPath){this.updateBoxSize();const g=this.baseline?0:this.baselineOffset;let O=y(this.paddingLeft,this.padding);o(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(O+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(O!==p.x||g!==p.y)&&(p.attr("x",O),p.hasBoxWidthChanged&&(this.bBox=p.getBBox(!0)),typeof g<"u"&&p.attr("y",g)),p.x=O,p.y=g}}widthSetter(p){this.widthSetting=u(p)?p:void 0}getPaddedWidth(){const p=this.padding,g=y(this.paddingLeft,p),O=y(this.paddingRight,p);return(this.widthSetting||this.bBox.width||0)+g+O}xSetter(p){this.x=p,this.alignFactor&&(p-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(p),this.attr("translateX",this.xSetting)}ySetter(p){this.ySetting=this.y=Math.round(p),this.attr("translateY",this.ySetting)}}return N.emptyBBox={width:0,height:0,x:0,y:0},N.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],N}),a(t,"Core/Renderer/SVG/Symbols.js",[t["Core/Utilities.js"]],function(i){const{defined:s,isNumber:o,pick:c}=i;function u(M,_,j,C,k){const F=[];if(k){const P=k.start||0,I=c(k.r,j),m=c(k.r,C||j),B=.001,T=Math.abs((k.end||0)-P-2*Math.PI)<B,S=(k.end||0)-B,x=k.innerR,h=c(k.open,T),n=Math.cos(P),l=Math.sin(P),f=Math.cos(S),b=Math.sin(S),v=c(k.longArc,S-P-Math.PI<B?0:1);let G=["A",I,m,0,v,c(k.clockwise,1),M+I*f,_+m*b];G.params={start:P,end:S,cx:M,cy:_},F.push(["M",M+I*n,_+m*l],G),s(x)&&(G=["A",x,x,0,v,s(k.clockwise)?1-k.clockwise:0,M+x*n,_+x*l],G.params={start:S,end:P,cx:M,cy:_},F.push(h?["M",M+x*f,_+x*b]:["L",M+x*f,_+x*b],G)),h||F.push(["Z"])}return F}function w(M,_,j,C,k){const I=Math.min(k&&k.r||0,j,C),m=I+6,B=k&&k.anchorX,T=k&&k.anchorY||0,S=A(M,_,j,C,{r:I});return o(B)&&(M+B>=j?T>_+m&&T<_+C-m?S.splice(3,1,["L",M+j,T-6],["L",M+j+6,T],["L",M+j,T+6],["L",M+j,_+C-I]):S.splice(3,1,["L",M+j,C/2],["L",B,T],["L",M+j,C/2],["L",M+j,_+C-I]):M+B<=0?T>_+m&&T<_+C-m?S.splice(7,1,["L",M,T+6],["L",M-6,T],["L",M,T-6],["L",M,_+I]):S.splice(7,1,["L",M,C/2],["L",B,T],["L",M,C/2],["L",M,_+I]):T&&T>C&&B>M+m&&B<M+j-m?S.splice(5,1,["L",B+6,_+C],["L",B,_+C+6],["L",B-6,_+C],["L",M+I,_+C]):T&&T<0&&B>M+m&&B<M+j-m&&S.splice(1,1,["L",B-6,_],["L",B,_-6],["L",B+6,_],["L",j-I,_])),S}function y(M,_,j,C){return u(M+j/2,_+C/2,j/2,C/2,{start:Math.PI*.5,end:Math.PI*2.5,open:!1})}function L(M,_,j,C){return[["M",M+j/2,_],["L",M+j,_+C/2],["L",M+j/2,_+C],["L",M,_+C/2],["Z"]]}function N(M,_,j,C,k){return k&&k.r?A(M,_,j,C,k):[["M",M,_],["L",M+j,_],["L",M+j,_+C],["L",M,_+C],["Z"]]}function A(M,_,j,C,k){const F=(k==null?void 0:k.r)||0;return[["M",M+F,_],["L",M+j-F,_],["A",F,F,0,0,1,M+j,_+F],["L",M+j,_+C-F],["A",F,F,0,0,1,M+j-F,_+C],["L",M+F,_+C],["A",F,F,0,0,1,M,_+C-F],["L",M,_+F],["A",F,F,0,0,1,M+F,_],["Z"]]}function p(M,_,j,C){return[["M",M+j/2,_],["L",M+j,_+C],["L",M,_+C],["Z"]]}function g(M,_,j,C){return[["M",M,_],["L",M+j,_],["L",M+j/2,_+C],["Z"]]}return{arc:u,callout:w,circle:y,diamond:L,rect:N,roundedRect:A,square:N,triangle:p,"triangle-down":g}}),a(t,"Core/Renderer/SVG/TextBuilder.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,o){const{doc:c,SVG_NS:u,win:w}=s,{attr:y,extend:L,fireEvent:N,isString:A,objectEach:p,pick:g}=o;class O{constructor(_){const j=_.styles;this.renderer=_.renderer,this.svgElement=_,this.width=_.textWidth,this.textLineHeight=j&&j.lineHeight,this.textOutline=j&&j.textOutline,this.ellipsis=!!(j&&j.textOverflow==="ellipsis"),this.noWrap=!!(j&&j.whiteSpace==="nowrap")}buildSVG(){const _=this.svgElement,j=_.element,C=_.renderer,k=g(_.textStr,"").toString(),F=k.indexOf("<")!==-1,P=j.childNodes,I=!_.added&&C.box,m=/<br.*?>/g,B=[k,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,_.getStyle("font-size"),this.width].join(",");if(B!==_.textCache){_.textCache=B,delete _.actualWidth;for(let T=P.length;T--;)j.removeChild(P[T]);if(!F&&!this.ellipsis&&!this.width&&!_.textPath&&(k.indexOf(" ")===-1||this.noWrap&&!m.test(k)))j.appendChild(c.createTextNode(this.unescapeEntities(k)));else if(k!==""){I&&I.appendChild(j);const T=new i(k);this.modifyTree(T.nodes),T.addToDOM(j),this.modifyDOM(),this.ellipsis&&(j.textContent||"").indexOf("…")!==-1&&_.attr("title",this.unescapeEntities(_.textStr||"",["&lt;","&gt;"])),I&&I.removeChild(j)}A(this.textOutline)&&_.applyTextOutline&&_.applyTextOutline(this.textOutline)}}modifyDOM(){const _=this.svgElement,j=y(_.element,"x");_.firstLineMetrics=void 0;let C;for(;(C=_.element.firstChild)&&/^[\s\u200B]*$/.test(C.textContent||" ");)_.element.removeChild(C);[].forEach.call(_.element.querySelectorAll("tspan.highcharts-br"),(I,m)=>{I.nextSibling&&I.previousSibling&&(m===0&&I.previousSibling.nodeType===1&&(_.firstLineMetrics=_.renderer.fontMetrics(I.previousSibling)),y(I,{dy:this.getLineHeight(I.nextSibling),x:j}))});const k=this.width||0;if(!k)return;const F=(I,m)=>{const B=I.textContent||"",T=B.replace(/([^\^])-/g,"$1- ").split(" "),S=!this.noWrap&&(T.length>1||_.element.childNodes.length>1),x=this.getLineHeight(m);let h=0,n=_.actualWidth;if(this.ellipsis)B&&this.truncate(I,B,void 0,0,Math.max(0,k-.8*x),(l,f)=>l.substring(0,f)+"…");else if(S){const l=[],f=[];for(;m.firstChild&&m.firstChild!==I;)f.push(m.firstChild),m.removeChild(m.firstChild);for(;T.length;)T.length&&!this.noWrap&&h>0&&(l.push(I.textContent||""),I.textContent=T.join(" ").replace(/- /g,"-")),this.truncate(I,void 0,T,h===0&&n||0,k,(b,v)=>T.slice(0,v).join(" ").replace(/- /g,"-")),n=_.actualWidth,h++;f.forEach(b=>{m.insertBefore(b,I)}),l.forEach(b=>{m.insertBefore(c.createTextNode(b),I);const v=c.createElementNS(u,"tspan");v.textContent="​",y(v,{dy:x,x:j}),m.insertBefore(v,I)})}},P=I=>{[].slice.call(I.childNodes).forEach(B=>{B.nodeType===w.Node.TEXT_NODE?F(B,I):(B.className.baseVal.indexOf("highcharts-br")!==-1&&(_.actualWidth=0),P(B))})};P(_.element)}getLineHeight(_){const j=_.nodeType===w.Node.TEXT_NODE?_.parentElement:_;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(j||this.svgElement.element).h}modifyTree(_){const j=(C,k)=>{const{attributes:F={},children:P,style:I={},tagName:m}=C,B=this.renderer.styledMode;if(m==="b"||m==="strong"?B?F.class="highcharts-strong":I.fontWeight="bold":(m==="i"||m==="em")&&(B?F.class="highcharts-emphasized":I.fontStyle="italic"),I&&I.color&&(I.fill=I.color),m==="br"){F.class="highcharts-br",C.textContent="​";const T=_[k+1];T&&T.textContent&&(T.textContent=T.textContent.replace(/^ +/gm,""))}else m==="a"&&P&&P.some(T=>T.tagName==="#text")&&(C.children=[{children:P,tagName:"tspan"}]);m!=="#text"&&m!=="a"&&(C.tagName="tspan"),L(C,{attributes:F,style:I}),P&&P.filter(T=>T.tagName!=="#text").forEach(j)};_.forEach(j),N(this.svgElement,"afterModifyTree",{nodes:_})}truncate(_,j,C,k,F,P){const I=this.svgElement,{renderer:m,rotation:B}=I,T=[];let S=C?1:0,x=(j||C||"").length,h=x,n,l;const f=function(b,v){const G=v||b,U=_.parentNode;if(U&&typeof T[G]>"u"&&U.getSubStringLength)try{T[G]=k+U.getSubStringLength(0,C?G+1:G)}catch{}return T[G]};if(I.rotation=0,l=f(_.textContent.length),k+l>F){for(;S<=x;)h=Math.ceil((S+x)/2),C&&(n=P(C,h)),l=f(h,n&&n.length-1),S===x?S=x+1:l>F?x=h-1:S=h;x===0?_.textContent="":j&&x===j.length-1||(_.textContent=n||P(j||C,h))}C&&C.splice(0,h),I.actualWidth=l,I.rotation=B}unescapeEntities(_,j){return p(this.renderer.escapes,function(C,k){(!j||j.indexOf(C)===-1)&&(_=_.toString().replace(new RegExp(C,"g"),k))}),_}}return O}),a(t,"Core/Renderer/SVG/SVGRenderer.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Renderer/SVG/SVGLabel.js"],t["Core/Renderer/SVG/Symbols.js"],t["Core/Renderer/SVG/TextBuilder.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w,y,L,N){const{charts:A,deg2rad:p,doc:g,isFirefox:O,isMS:M,isWebKit:_,noop:j,SVG_NS:C,symbolSizes:k,win:F}=o,{addEvent:P,attr:I,createElement:m,css:B,defined:T,destroyObjectProperties:S,extend:x,isArray:h,isNumber:n,isObject:l,isString:f,merge:b,pick:v,pInt:G,uniqueKey:U}=N;let D;class H{constructor(W,d,R,q,J,Y,ee){this.alignedObjects=void 0,this.box=void 0,this.boxWrapper=void 0,this.cache=void 0,this.cacheKeys=void 0,this.chartIndex=void 0,this.defs=void 0,this.globalAnimation=void 0,this.gradients=void 0,this.height=void 0,this.imgCount=void 0,this.style=void 0,this.url=void 0,this.width=void 0,this.init(W,d,R,q,J,Y,ee)}init(W,d,R,q,J,Y,ee){const E=this,V=E.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),X=V.element;ee||V.css(this.getStyle(q)),W.appendChild(X),I(W,"dir","ltr"),W.innerHTML.indexOf("xmlns")===-1&&I(X,"xmlns",this.SVG_NS),this.box=X,this.boxWrapper=V,E.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(g.createTextNode("Created with Highcharts 11.1.0")),E.defs=this.createElement("defs").add(),E.allowHTML=Y,E.forExport=J,E.styledMode=ee,E.gradients={},E.cache={},E.cacheKeys=[],E.imgCount=0,E.rootFontSize=V.getStyle("font-size"),E.setSize(d,R,!1);let se,K;O&&W.getBoundingClientRect&&(se=function(){B(W,{left:0,top:0}),K=W.getBoundingClientRect(),B(W,{left:Math.ceil(K.left)-K.left+"px",top:Math.ceil(K.top)-K.top+"px"})},se(),E.unSubPixelFix=P(F,"resize",se))}definition(W){return new i([W]).addToDOM(this.defs.element)}getReferenceURL(){if((O||_)&&g.getElementsByTagName("base").length){if(!T(D)){const W=U(),R=new i([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:W},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${W})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(g.body);B(R,{position:"fixed",top:0,left:0,zIndex:9e5});const q=g.elementFromPoint(6,6);D=(q&&q.id)==="hitme",g.body.removeChild(R)}if(D)return F.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}getStyle(W){return this.style=x({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},W),this.style}setStyle(W){this.boxWrapper.css(this.getStyle(W))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){const W=this,d=W.defs;return W.box=null,W.boxWrapper=W.boxWrapper.destroy(),S(W.gradients||{}),W.gradients=null,W.defs=d.destroy(),W.unSubPixelFix&&W.unSubPixelFix(),W.alignedObjects=null,null}createElement(W){const d=new this.Element;return d.init(this,W),d}getRadialAttr(W,d){return{cx:W[0]-W[2]/2+(d.cx||0)*W[2],cy:W[1]-W[2]/2+(d.cy||0)*W[2],r:(d.r||0)*W[2]}}shadowDefinition(W){const d=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(W).map(q=>W[q])].join("-").replace(/[^a-z0-9\-]/g,""),R=b({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},W);return this.defs.element.querySelector(`#${d}`)||this.definition({tagName:"filter",attributes:{id:d},children:[{tagName:"feDropShadow",attributes:{dx:R.offsetX,dy:R.offsetY,"flood-color":R.color,"flood-opacity":Math.min(R.opacity*5,1),stdDeviation:R.width/2}}]}),d}buildText(W){new L(W).buildSVG()}getContrast(W){const d=s.parse(W).rgba.map(q=>{const J=q/255;return J<=.03928?J/12.92:Math.pow((J+.055)/1.055,2.4)}),R=.2126*d[0]+.7152*d[1]+.0722*d[2];return 1.05/(R+.05)>(R+.05)/.05?"#FFFFFF":"#000000"}button(W,d,R,q,J={},Y,ee,E,V,X){const Q=this.label(W,d,R,V,void 0,void 0,X,void 0,"button"),se=this.styledMode,K=J.states||{};let ne=0;J=b(J),delete J.states;const oe=b({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},J.style);delete J.style;let le=i.filterUserAttributes(J);Q.attr(b({padding:8,r:2},le));let ye,te,re;return se||(le=b({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},le),Y=b(le,{fill:"#e6e6e6"},i.filterUserAttributes(Y||K.hover||{})),ye=Y.style,delete Y.style,ee=b(le,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},i.filterUserAttributes(ee||K.select||{})),te=ee.style,delete ee.style,E=b(le,{style:{color:"#cccccc"}},i.filterUserAttributes(E||K.disabled||{})),re=E.style,delete E.style),P(Q.element,M?"mouseover":"mouseenter",function(){ne!==3&&Q.setState(1)}),P(Q.element,M?"mouseout":"mouseleave",function(){ne!==3&&Q.setState(ne)}),Q.setState=function(Z){if(Z!==1&&(Q.state=ne=Z),Q.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][Z||0]),!se){Q.attr([le,Y,ee,E][Z||0]);const ie=[oe,ye,te,re][Z||0];l(ie)&&Q.css(ie)}},se||(Q.attr(le).css(x({cursor:"default"},oe)),X&&Q.text.css({pointerEvents:"none"})),Q.on("touchstart",Z=>Z.stopPropagation()).on("click",function(Z){ne!==3&&q.call(Q,Z)})}crispLine(W,d,R="round"){const q=W[0],J=W[1];return T(q[1])&&q[1]===J[1]&&(q[1]=J[1]=Math[R](q[1])-d%2/2),T(q[2])&&q[2]===J[2]&&(q[2]=J[2]=Math[R](q[2])+d%2/2),W}path(W){const d=this.styledMode?{}:{fill:"none"};return h(W)?d.d=W:l(W)&&x(d,W),this.createElement("path").attr(d)}circle(W,d,R){const q=l(W)?W:typeof W>"u"?{}:{x:W,y:d,r:R},J=this.createElement("circle");return J.xSetter=J.ySetter=function(Y,ee,E){E.setAttribute("c"+ee,Y)},J.attr(q)}arc(W,d,R,q,J,Y){let ee;l(W)?(ee=W,d=ee.y,R=ee.r,q=ee.innerR,J=ee.start,Y=ee.end,W=ee.x):ee={innerR:q,start:J,end:Y};const E=this.symbol("arc",W,d,R,R,ee);return E.r=R,E}rect(W,d,R,q,J,Y){const ee=l(W)?W:typeof W>"u"?{}:{x:W,y:d,r:J,width:Math.max(R||0,0),height:Math.max(q||0,0)},E=this.createElement("rect");return this.styledMode||(typeof Y<"u"&&(ee["stroke-width"]=Y,x(ee,E.crisp(ee))),ee.fill="none"),E.rSetter=function(V,X,Q){E.r=V,I(Q,{rx:V,ry:V})},E.rGetter=function(){return E.r||0},E.attr(ee)}roundedRect(W){return this.symbol("roundedRect").attr(W)}setSize(W,d,R){const q=this;q.width=W,q.height=d,q.boxWrapper.animate({width:W,height:d},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:v(R,!0)?void 0:0}),q.alignElements()}g(W){const d=this.createElement("g");return W?d.attr({class:"highcharts-"+W}):d}image(W,d,R,q,J,Y){const ee={preserveAspectRatio:"none"};n(d)&&(ee.x=d),n(R)&&(ee.y=R),n(q)&&(ee.width=q),n(J)&&(ee.height=J);const E=this.createElement("image").attr(ee),V=function(X){E.attr({href:W}),Y.call(E,X)};if(Y){E.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});const X=new F.Image;P(X,"load",V),X.src=W,X.complete&&V({})}else E.attr({href:W});return E}symbol(W,d,R,q,J,Y){const ee=this,E=/^url\((.*?)\)$/,V=E.test(W),X=!V&&(this.symbols[W]?W:"circle"),Q=X&&this.symbols[X];let se,K,ne,oe;if(Q)typeof d=="number"&&(K=Q.call(this.symbols,Math.round(d||0),Math.round(R||0),q||0,J||0,Y)),se=this.path(K),ee.styledMode||se.attr("fill","none"),x(se,{symbolName:X||void 0,x:d,y:R,width:q,height:J}),Y&&x(se,Y);else if(V){ne=W.match(E)[1];const le=se=this.image(ne);le.imgwidth=v(Y&&Y.width,k[ne]&&k[ne].width),le.imgheight=v(Y&&Y.height,k[ne]&&k[ne].height),oe=ye=>ye.attr({width:ye.width,height:ye.height}),["width","height"].forEach(function(ye){le[ye+"Setter"]=function(te,re){this[re]=te;const{alignByTranslate:Z,element:ie,width:ae,height:he,imgwidth:fe,imgheight:ve}=this;let ge=this["img"+re];if(T(ge)){let _e=1;Y&&Y.backgroundSize==="within"&&ae&&he?(_e=Math.min(ae/fe,he/ve),ge=Math.round(ge*_e),I(ie,{width:Math.round(fe*_e),height:Math.round(ve*_e)})):ie&&ie.setAttribute(re,ge),Z||this.translate(((ae||0)-fe*_e)/2,((he||0)-ve*_e)/2)}}}),T(d)&&le.attr({x:d,y:R}),le.isImg=!0,T(le.imgwidth)&&T(le.imgheight)?oe(le):(le.attr({width:0,height:0}),m("img",{onload:function(){const ye=A[ee.chartIndex];this.width===0&&(B(this,{position:"absolute",top:"-999em"}),g.body.appendChild(this)),k[ne]={width:this.width,height:this.height},le.imgwidth=this.width,le.imgheight=this.height,le.element&&oe(le),this.parentNode&&this.parentNode.removeChild(this),ee.imgCount--,!ee.imgCount&&ye&&!ye.hasLoaded&&ye.onload()},src:ne}),this.imgCount++)}return se}clipRect(W,d,R,q){const J=U()+"-",Y=this.createElement("clipPath").attr({id:J}).add(this.defs),ee=this.rect(W,d,R,q,0).add(Y);return ee.id=J,ee.clipPath=Y,ee.count=0,ee}text(W,d,R,q){const J=this,Y={};if(q&&(J.allowHTML||!J.forExport))return J.html(W,d,R);Y.x=Math.round(d||0),R&&(Y.y=Math.round(R)),T(W)&&(Y.text=W);const ee=J.createElement("text").attr(Y);return(!q||J.forExport&&!J.allowHTML)&&(ee.xSetter=function(E,V,X){const Q=X.getElementsByTagName("tspan"),se=X.getAttribute(V);for(let K=0,ne;K<Q.length;K++)ne=Q[K],ne.getAttribute(V)===se&&ne.setAttribute(V,E);X.setAttribute(V,E)}),ee}fontMetrics(W){const d=G(u.prototype.getStyle.call(W,"font-size")||0),R=d<24?d+3:Math.round(d*1.2),q=Math.round(R*.8);return{h:R,b:q,f:d}}rotCorr(W,d,R){let q=W;return d&&R&&(q=Math.max(q*Math.cos(d*p),4)),{x:-W/3*Math.sin(d*p),y:q}}pathToSegments(W){const d=[],R=[],q={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let J=0;J<W.length;J++)f(R[0])&&n(W[J])&&R.length===q[R[0].toUpperCase()]&&W.splice(J,0,R[0].replace("M","L").replace("m","l")),typeof W[J]=="string"&&(R.length&&d.push(R.slice(0)),R.length=0),R.push(W[J]);return d.push(R.slice(0)),d}label(W,d,R,q,J,Y,ee,E,V){return new w(this,W,d,R,q,J,Y,ee,E,V)}alignElements(){this.alignedObjects.forEach(W=>W.align())}}return x(H.prototype,{Element:u,SVG_NS:C,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:y,draw:j}),c.registerRendererType("svg",H,!0),H}),a(t,"Core/Renderer/HTML/HTMLElement.js",[t["Core/Globals.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(i,s,o){const{isFirefox:c,isMS:u,isWebKit:w,win:y}=i,{css:L,defined:N,extend:A,pick:p,pInt:g}=o,O=[];class M extends s{static compose(j){if(o.pushUnique(O,j)){const C=M.prototype,k=j.prototype;k.getSpanCorrection=C.getSpanCorrection,k.htmlCss=C.htmlCss,k.htmlGetBBox=C.htmlGetBBox,k.htmlUpdateTransform=C.htmlUpdateTransform,k.setSpanRotation=C.setSpanRotation}return j}getSpanCorrection(j,C,k){this.xCorr=-j*k,this.yCorr=-C}htmlCss(j){const C=this,k=C.element,F=k.tagName==="SPAN"&&j&&"width"in j,P=p(F&&j.width,void 0);let I;return F&&(delete j.width,C.textWidth=P,I=!0),j&&j.textOverflow==="ellipsis"&&(j.whiteSpace="nowrap",j.overflow="hidden"),C.styles=A(C.styles,j),L(C.element,j),I&&C.htmlUpdateTransform(),C}htmlGetBBox(){const j=this,C=j.element;return{x:C.offsetLeft,y:C.offsetTop,width:C.offsetWidth,height:C.offsetHeight}}htmlUpdateTransform(){if(!this.added){this.alignOnAdd=!0;return}const j=this,C=j.renderer,k=j.element,F=j.translateX||0,P=j.translateY||0,I=j.x||0,m=j.y||0,B=j.textAlign||"left",T={left:0,center:.5,right:1}[B],S=j.styles,x=S&&S.whiteSpace;function h(){return j.textPxLength?j.textPxLength:(L(k,{width:"",whiteSpace:x||"nowrap"}),k.offsetWidth)}if(L(k,{marginLeft:F,marginTop:P}),k.tagName==="SPAN"){const n=j.rotation,l=j.textWidth&&g(j.textWidth),f=[n,B,k.innerHTML,j.textWidth,j.textAlign].join(",");let b,v=!1;if(l!==j.oldTextWidth){const G=h();(l>j.oldTextWidth||G>l)&&(/[ \-]/.test(k.textContent||k.innerText)||k.style.textOverflow==="ellipsis")&&(L(k,{width:G>l||n?l+"px":"auto",display:"block",whiteSpace:x||"normal"}),j.oldTextWidth=l,v=!0)}j.hasBoxWidthChanged=v,f!==j.cTT&&(b=C.fontMetrics(k).b,N(n)&&(n!==(j.oldRotation||0)||B!==j.oldAlign)&&j.setSpanRotation(n,T,b),j.getSpanCorrection(!N(n)&&j.textPxLength||k.offsetWidth,b,T,n,B)),L(k,{left:I+(j.xCorr||0)+"px",top:m+(j.yCorr||0)+"px"}),j.cTT=f,j.oldRotation=n,j.oldAlign=B}}setSpanRotation(j,C,k){const F=()=>u&&!/Edge/.test(y.navigator.userAgent)?"-ms-transform":w?"-webkit-transform":c?"MozTransform":y.opera?"-o-transform":void 0,P={},I=F();I&&(P[I]=P.transform="rotate("+j+"deg)",P[I+(c?"Origin":"-origin")]=P.transformOrigin=C*100+"% "+k+"px",L(this.element,P))}}return M}),a(t,"Core/Renderer/HTML/HTMLRenderer.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],function(i,s,o,c){const{attr:u,createElement:w,extend:y,pick:L}=c,N=[];class A extends o{static compose(g){if(c.pushUnique(N,g)){const O=A.prototype,M=g.prototype;M.html=O.html}return g}html(g,O,M){const _=this.createElement("span"),j=_.element,C=_.renderer,k=function(F,P){["opacity","visibility"].forEach(function(I){F[I+"Setter"]=function(m,B,T){const S=F.div?F.div.style:P;s.prototype[I+"Setter"].call(this,m,B,T),S&&(S[B]=m)}}),F.addedSetters=!0};return _.textSetter=function(F){F!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,i.setElementHTML(this.element,L(F,"")),this.textStr=F,_.doTransform=!0)},k(_,_.element.style),_.xSetter=_.ySetter=_.alignSetter=_.rotationSetter=function(F,P){P==="align"?_.alignValue=_.textAlign=F:_[P]=F,_.doTransform=!0},_.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},_.attr({text:g,x:Math.round(O),y:Math.round(M)}).css({position:"absolute"}),C.styledMode||_.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),j.style.whiteSpace="nowrap",_.css=_.htmlCss,_.add=function(F){const P=C.box.parentNode,I=[];let m,B;if(this.parentGroup=F,F){if(m=F.div,!m){for(B=F;B;)I.push(B),B=B.parentGroup;I.reverse().forEach(function(T){const S=u(T.element,"class");function x(l,f){T[f]=l,f==="translateX"?n.left=l+"px":n.top=l+"px",T.doTransform=!0}const h=T.styles||{};m=T.div=T.div||w("div",S?{className:S}:void 0,{position:"absolute",left:(T.translateX||0)+"px",top:(T.translateY||0)+"px",display:T.display,opacity:T.opacity,visibility:T.visibility},m||P);const n=m.style;y(T,{classSetter:function(l){return function(f){this.element.setAttribute("class",f),l.className=f}}(m),css:function(l){return _.css.call(T,l),["cursor","pointerEvents"].forEach(f=>{l[f]&&(n[f]=l[f])}),T},on:function(){return I[0].div&&_.on.apply({element:I[0].div,onEvents:T.onEvents},arguments),T},translateXSetter:x,translateYSetter:x}),T.addedSetters||k(T),T.css(h)})}}else m=P;return m.appendChild(j),_.added=!0,_.alignOnAdd&&_.htmlUpdateTransform(),_},_}}return A}),a(t,"Core/Axis/AxisDefaults.js",[],function(){var i;return function(s){s.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},s.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){const{numberFormatter:o}=this.axis.chart;return o(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},s.defaultLeftAxisOptions={title:{rotation:270}},s.defaultRightAxisOptions={title:{rotation:90}},s.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},s.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}}}(i||(i={})),i}),a(t,"Core/Foundation.js",[t["Core/Utilities.js"]],function(i){const{addEvent:s,isFunction:o,objectEach:c,removeEvent:u}=i;var w;return function(y){function L(N,A){N.eventOptions=N.eventOptions||{},c(A.events,function(p,g){N.eventOptions[g]!==p&&(N.eventOptions[g]&&(u(N,g,N.eventOptions[g]),delete N.eventOptions[g]),o(p)&&(N.eventOptions[g]=p,s(N,g,p,{order:0})))})}y.registerEventOptions=L}(w||(w={})),w}),a(t,"Core/Axis/Tick.js",[t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,o){const{deg2rad:c}=s,{clamp:u,correctFloat:w,defined:y,destroyObjectProperties:L,extend:N,fireEvent:A,isNumber:p,merge:g,objectEach:O,pick:M}=o;class _{constructor(C,k,F,P,I){this.isNew=!0,this.isNewLabel=!0,this.axis=C,this.pos=k,this.type=F||"",this.parameters=I||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,A(this,"init"),!F&&!P&&this.addLabel()}addLabel(){const C=this,k=C.axis,F=k.options,P=k.chart,I=k.categories,m=k.logarithmic,B=k.names,T=C.pos,S=M(C.options&&C.options.labels,F.labels),x=k.tickPositions,h=T===x[0],n=T===x[x.length-1],l=(!S.step||S.step===1)&&k.tickInterval===1,f=x.info;let b=C.label,v,G,U,D=this.parameters.category||(I?M(I[T],B[T],T):T);m&&p(D)&&(D=w(m.lin2log(D))),k.dateTime&&(f?(G=P.time.resolveDTLFormat(F.dateTimeLabelFormats[!F.grid&&f.higherRanks[T]||f.unitName]),v=G.main):p(D)&&(v=k.dateTime.getXDateFormat(D,F.dateTimeLabelFormats||{}))),C.isFirst=h,C.isLast=n;const H={axis:k,chart:P,dateTimeLabelFormat:v,isFirst:h,isLast:n,pos:T,tick:C,tickPositionInfo:f,value:D};A(this,"labelFormat",H);const z=R=>S.formatter?S.formatter.call(R,R):S.format?(R.text=k.defaultLabelFormatter.call(R,R),i.format(S.format,R,P)):k.defaultLabelFormatter.call(R,R),W=z.call(H,H),d=G&&G.list;d?C.shortenLabel=function(){for(U=0;U<d.length;U++)if(N(H,{dateTimeLabelFormat:d[U]}),b.attr({text:z.call(H,H)}),b.getBBox().width<k.getSlotWidth(C)-2*S.padding)return;b.attr({text:""})}:C.shortenLabel=void 0,l&&k._addedPlotLB&&C.moveLabel(W,S),!y(b)&&!C.movedLabel?(C.label=b=C.createLabel({x:0,y:0},W,S),C.rotation=0):b&&b.textStr!==W&&!l&&(b.textWidth&&!S.style.width&&!b.styles.width&&b.css({width:null}),b.attr({text:W}),b.textPxLength=b.getBBox().width)}createLabel(C,k,F){const P=this.axis,I=P.chart,m=y(k)&&F.enabled?I.renderer.text(k,C.x,C.y,F.useHTML).add(P.labelGroup):null;return m&&(I.styledMode||m.css(g(F.style)),m.textPxLength=m.getBBox().width),m}destroy(){L(this,this.axis)}getPosition(C,k,F,P){const I=this.axis,m=I.chart,B=P&&m.oldChartHeight||m.chartHeight,T={x:C?w(I.translate(k+F,void 0,void 0,P)+I.transB):I.left+I.offset+(I.opposite?(P&&m.oldChartWidth||m.chartWidth)-I.right-I.left:0),y:C?B-I.bottom+I.offset-(I.opposite?I.height:0):w(B-I.translate(k+F,void 0,void 0,P)-I.transB)};return T.y=u(T.y,-1e5,1e5),A(this,"afterGetPosition",{pos:T}),T}getLabelPosition(C,k,F,P,I,m,B,T){const S=this.axis,x=S.transA,h=S.isLinked&&S.linkedParent?S.linkedParent.reversed:S.reversed,n=S.staggerLines,l=S.tickRotCorr||{x:0,y:0},f=!P&&!S.reserveSpaceDefault?-S.labelOffset*(S.labelAlign==="center"?.5:1):0,b=I.distance,v={};let G,U;return S.side===0?G=F.rotation?-b:-F.getBBox().height:S.side===2?G=l.y+b:G=Math.cos(F.rotation*c)*(l.y-F.getBBox(!1,0).height/2),y(I.y)&&(G=S.side===0&&S.horiz?I.y+G:I.y),C=C+M(I.x,[0,1,0,-1][S.side]*b)+f+l.x-(m&&P?m*x*(h?-1:1):0),k=k+G-(m&&!P?m*x*(h?1:-1):0),n&&(U=B/(T||1)%n,S.opposite&&(U=n-U-1),k+=U*(S.labelOffset/n)),v.x=C,v.y=Math.round(k),A(this,"afterGetLabelPosition",{pos:v,tickmarkOffset:m,index:B}),v}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(C,k,F,P,I,m){return m.crispLine([["M",C,k],["L",C+(I?0:-F),k+(I?F:0)]],P)}handleOverflow(C){const k=this,F=this.axis,P=F.options.labels,I=C.x,m=F.chart.chartWidth,B=F.chart.spacing,T=M(F.labelLeft,Math.min(F.pos,B[3])),S=M(F.labelRight,Math.max(F.isRadial?0:F.pos+F.len,m-B[1])),x=this.label,h=this.rotation,n={left:0,center:.5,right:1}[F.labelAlign||x.attr("align")],l=x.getBBox().width,f=F.getSlotWidth(k),b=n,v={};let G=f,U=1,D,H,z;!h&&P.overflow==="justify"?(D=I-n*l,H=I+(1-n)*l,D<T?G=C.x+G*(1-n)-T:H>S&&(G=S-C.x+G*n,U=-1),G=Math.min(f,G),G<f&&F.labelAlign==="center"&&(C.x+=U*(f-G-b*(f-Math.min(l,G)))),(l>G||F.autoRotation&&(x.styles||{}).width)&&(z=G)):h<0&&I-n*l<T?z=Math.round(I/Math.cos(h*c)-T):h>0&&I+n*l>S&&(z=Math.round((m-I)/Math.cos(h*c))),z&&(k.shortenLabel?k.shortenLabel():(v.width=Math.floor(z)+"px",(P.style||{}).textOverflow||(v.textOverflow="ellipsis"),x.css(v)))}moveLabel(C,k){const F=this,P=F.label,I=F.axis;let m=!1,B;P&&P.textStr===C?(F.movedLabel=P,m=!0,delete F.label):O(I.ticks,function(T){!m&&!T.isNew&&T!==F&&T.label&&T.label.textStr===C&&(F.movedLabel=T.label,m=!0,T.labelPos=F.movedLabel.xy,delete T.label)}),!m&&(F.labelPos||P)&&(B=F.labelPos||P.xy,F.movedLabel=F.createLabel(B,C,k),F.movedLabel&&F.movedLabel.attr({opacity:0}))}render(C,k,F){const P=this,I=P.axis,m=I.horiz,B=P.pos,T=M(P.tickmarkOffset,I.tickmarkOffset),S=P.getPosition(m,B,T,k),x=S.x,h=S.y,n=m&&x===I.pos+I.len||!m&&h===I.pos?-1:1,l=M(F,P.label&&P.label.newOpacity,1);F=M(F,1),this.isActive=!0,this.renderGridLine(k,F,n),this.renderMark(S,F,n),this.renderLabel(S,k,l,C),P.isNew=!1,A(this,"afterRender")}renderGridLine(C,k,F){const P=this,I=P.axis,m=I.options,B={},T=P.pos,S=P.type,x=M(P.tickmarkOffset,I.tickmarkOffset),h=I.chart.renderer;let n=P.gridLine,l,f=m.gridLineWidth,b=m.gridLineColor,v=m.gridLineDashStyle;P.type==="minor"&&(f=m.minorGridLineWidth,b=m.minorGridLineColor,v=m.minorGridLineDashStyle),n||(I.chart.styledMode||(B.stroke=b,B["stroke-width"]=f||0,B.dashstyle=v),S||(B.zIndex=1),C&&(k=0),P.gridLine=n=h.path().attr(B).addClass("highcharts-"+(S?S+"-":"")+"grid-line").add(I.gridGroup)),n&&(l=I.getPlotLinePath({value:T+x,lineWidth:n.strokeWidth()*F,force:"pass",old:C,acrossPanes:!1}),l&&n[C||P.isNew?"attr":"animate"]({d:l,opacity:k}))}renderMark(C,k,F){const P=this,I=P.axis,m=I.options,B=I.chart.renderer,T=P.type,S=I.tickSize(T?T+"Tick":"tick"),x=C.x,h=C.y,n=M(m[T!=="minor"?"tickWidth":"minorTickWidth"],!T&&I.isXAxis?1:0),l=m[T!=="minor"?"tickColor":"minorTickColor"];let f=P.mark;const b=!f;S&&(I.opposite&&(S[0]=-S[0]),f||(P.mark=f=B.path().addClass("highcharts-"+(T?T+"-":"")+"tick").add(I.axisGroup),I.chart.styledMode||f.attr({stroke:l,"stroke-width":n})),f[b?"attr":"animate"]({d:P.getMarkPath(x,h,S[0],f.strokeWidth()*F,I.horiz,B),opacity:k}))}renderLabel(C,k,F,P){const I=this,m=I.axis,B=m.horiz,T=m.options,S=I.label,x=T.labels,h=x.step,n=M(I.tickmarkOffset,m.tickmarkOffset),l=C.x,f=C.y;let b=!0;S&&p(l)&&(S.xy=C=I.getLabelPosition(l,f,S,B,x,n,P,h),I.isFirst&&!I.isLast&&!T.showFirstLabel||I.isLast&&!I.isFirst&&!T.showLastLabel?b=!1:B&&!x.step&&!x.rotation&&!k&&F!==0&&I.handleOverflow(C),h&&P%h&&(b=!1),b&&p(C.y)?(C.opacity=F,S[I.isNewLabel?"attr":"animate"](C).show(!0),I.isNewLabel=!1):(S.hide(),I.isNewLabel=!0))}replaceMovedLabel(){const C=this,k=C.label,F=C.axis;k&&!C.isNew&&(k.animate({opacity:0},void 0,k.destroy),delete C.label),F.isDirty=!0,C.label=C.movedLabel,delete C.movedLabel}}return _}),a(t,"Core/Axis/Axis.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/AxisDefaults.js"],t["Core/Color/Color.js"],t["Core/Defaults.js"],t["Core/Foundation.js"],t["Core/Globals.js"],t["Core/Axis/Tick.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w,y,L){const{animObject:N}=i,{defaultOptions:A}=c,{registerEventOptions:p}=u,{deg2rad:g}=w,{arrayMax:O,arrayMin:M,clamp:_,correctFloat:j,defined:C,destroyObjectProperties:k,erase:F,error:P,extend:I,fireEvent:m,getClosestDistance:B,insertItem:T,isArray:S,isNumber:x,isString:h,merge:n,normalizeTickInterval:l,objectEach:f,pick:b,relativeLength:v,removeEvent:G,splat:U,syncTimeout:D}=L,H=(W,d)=>l(d,void 0,void 0,b(W.options.allowDecimals,d<.5||W.tickAmount!==void 0),!!W.tickAmount);class z{constructor(d,R,q){this.alternateBands=void 0,this.bottom=void 0,this.chart=void 0,this.closestPointRange=void 0,this.coll=void 0,this.eventOptions=void 0,this.hasNames=void 0,this.hasVisibleSeries=void 0,this.height=void 0,this.index=void 0,this.isLinked=void 0,this.labelEdge=void 0,this.labelFormatter=void 0,this.left=void 0,this.len=void 0,this.max=void 0,this.maxLabelLength=void 0,this.min=void 0,this.minorTickInterval=void 0,this.minorTicks=void 0,this.minPixelPadding=void 0,this.names=void 0,this.offset=void 0,this.options=void 0,this.overlap=void 0,this.paddedTicks=void 0,this.plotLinesAndBands=void 0,this.plotLinesAndBandsGroups=void 0,this.pointRange=void 0,this.pointRangePadding=void 0,this.pos=void 0,this.positiveValuesOnly=void 0,this.right=void 0,this.series=void 0,this.side=void 0,this.tickAmount=void 0,this.tickInterval=void 0,this.tickmarkOffset=void 0,this.tickPositions=void 0,this.tickRotCorr=void 0,this.ticks=void 0,this.top=void 0,this.transA=void 0,this.transB=void 0,this.translationSlope=void 0,this.userOptions=void 0,this.visible=void 0,this.width=void 0,this.zoomEnabled=void 0,this.init(d,R,q)}init(d,R,q=this.coll){const J=q==="xAxis",Y=this;Y.chart=d,Y.horiz=Y.isZAxis||(d.inverted?!J:J),Y.isXAxis=J,Y.coll=q,m(this,"init",{userOptions:R}),Y.opposite=b(R.opposite,Y.opposite),Y.side=b(R.side,Y.side,Y.horiz?Y.opposite?0:2:Y.opposite?1:3),Y.setOptions(R);const ee=this.options,E=ee.labels,V=ee.type;Y.userOptions=R,Y.minPixelPadding=0,Y.reversed=b(ee.reversed,Y.reversed),Y.visible=ee.visible,Y.zoomEnabled=ee.zoomEnabled,Y.hasNames=V==="category"||ee.categories===!0,Y.categories=ee.categories||(Y.hasNames?[]:void 0),Y.names||(Y.names=[],Y.names.keys={}),Y.plotLinesAndBandsGroups={},Y.positiveValuesOnly=!!Y.logarithmic,Y.isLinked=C(ee.linkedTo),Y.ticks={},Y.labelEdge=[],Y.minorTicks={},Y.plotLinesAndBands=[],Y.alternateBands={},Y.len=0,Y.minRange=Y.userMinRange=ee.minRange||ee.maxZoom,Y.range=ee.range,Y.offset=ee.offset||0,Y.max=null,Y.min=null;const X=b(ee.crosshair,U(d.options.tooltip.crosshairs)[J?0:1]);Y.crosshair=X===!0?{}:X,d.axes.indexOf(Y)===-1&&(J?d.axes.splice(d.xAxis.length,0,Y):d.axes.push(Y),T(this,d[this.coll])),d.orderItems(Y.coll),Y.series=Y.series||[],d.inverted&&!Y.isZAxis&&J&&typeof Y.reversed>"u"&&(Y.reversed=!0),Y.labelRotation=x(E.rotation)?E.rotation:void 0,p(Y,ee),m(this,"afterInit")}setOptions(d){this.options=n(s.defaultXAxisOptions,this.coll==="yAxis"&&s.defaultYAxisOptions,[s.defaultTopAxisOptions,s.defaultRightAxisOptions,s.defaultBottomAxisOptions,s.defaultLeftAxisOptions][this.side],n(A[this.coll],d)),m(this,"afterSetOptions",{userOptions:d})}defaultLabelFormatter(d){const R=this.axis,q=this.chart,{numberFormatter:J}=q,Y=x(this.value)?this.value:NaN,ee=R.chart.time,E=R.categories,V=this.dateTimeLabelFormat,X=A.lang,Q=X.numericSymbols,se=X.numericSymbolMagnitude||1e3,K=R.logarithmic?Math.abs(Y):R.tickInterval;let ne=Q&&Q.length,oe,le;if(E)le=`${this.value}`;else if(V)le=ee.dateFormat(V,Y);else if(ne&&K>=1e3)for(;ne--&&typeof le>"u";)oe=Math.pow(se,ne+1),K>=oe&&Y*10%oe===0&&Q[ne]!==null&&Y!==0&&(le=J(Y/oe,-1)+Q[ne]);return typeof le>"u"&&(Math.abs(Y)>=1e4?le=J(Y,-1):le=J(Y,-1,void 0,"")),le}getSeriesExtremes(){const d=this,R=d.chart;let q;m(this,"getSeriesExtremes",null,function(){d.hasVisibleSeries=!1,d.dataMin=d.dataMax=d.threshold=null,d.softThreshold=!d.isXAxis,d.series.forEach(function(J){if(J.visible||!R.options.chart.ignoreHiddenSeries){const Y=J.options;let ee,E=Y.threshold,V,X;if(d.hasVisibleSeries=!0,d.positiveValuesOnly&&E<=0&&(E=null),d.isXAxis)ee=J.xData,ee&&ee.length&&(ee=d.logarithmic?ee.filter(Q=>Q>0):ee,q=J.getXExtremes(ee),V=q.min,X=q.max,!x(V)&&!(V instanceof Date)&&(ee=ee.filter(x),q=J.getXExtremes(ee),V=q.min,X=q.max),ee.length&&(d.dataMin=Math.min(b(d.dataMin,V),V),d.dataMax=Math.max(b(d.dataMax,X),X)));else{const Q=J.applyExtremes();x(Q.dataMin)&&(V=Q.dataMin,d.dataMin=Math.min(b(d.dataMin,V),V)),x(Q.dataMax)&&(X=Q.dataMax,d.dataMax=Math.max(b(d.dataMax,X),X)),C(E)&&(d.threshold=E),(!Y.softThreshold||d.positiveValuesOnly)&&(d.softThreshold=!1)}}})}),m(this,"afterGetSeriesExtremes")}translate(d,R,q,J,Y,ee){const E=this.linkedParent||this,V=J&&E.old?E.old.min:E.min;if(!x(V))return NaN;const X=E.minPixelPadding,Q=(E.isOrdinal||E.brokenAxis&&E.brokenAxis.hasBreaks||E.logarithmic&&Y)&&E.lin2val;let se=1,K=0,ne=J&&E.old?E.old.transA:E.transA,oe=0;if(ne||(ne=E.transA),q&&(se*=-1,K=E.len),E.reversed&&(se*=-1,K-=se*(E.sector||E.len)),R)d=d*se+K,d-=X,oe=d/ne+V,Q&&(oe=E.lin2val(oe));else{Q&&(d=E.val2lin(d));const le=se*(d-V)*ne;oe=(E.isRadial?le:j(le))+K+se*X+(x(ee)?ne*ee:0)}return oe}toPixels(d,R){return this.translate(d,!1,!this.horiz,void 0,!0)+(R?0:this.pos)}toValue(d,R){return this.translate(d-(R?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(d){const R=this,q=R.chart,J=R.left,Y=R.top,ee=d.old,E=d.value,V=d.lineWidth,X=ee&&q.oldChartHeight||q.chartHeight,Q=ee&&q.oldChartWidth||q.chartWidth,se=R.transB;let K=d.translatedValue,ne=d.force,oe,le,ye,te,re;function Z(ae,he,fe){return ne!=="pass"&&(ae<he||ae>fe)&&(ne?ae=_(ae,he,fe):re=!0),ae}const ie={value:E,lineWidth:V,old:ee,force:ne,acrossPanes:d.acrossPanes,translatedValue:K};return m(this,"getPlotLinePath",ie,function(ae){K=b(K,R.translate(E,void 0,void 0,ee)),K=_(K,-1e5,1e5),oe=ye=Math.round(K+se),le=te=Math.round(X-K-se),x(K)?R.horiz?(le=Y,te=X-R.bottom,oe=ye=Z(oe,J,J+R.width)):(oe=J,ye=Q-R.right,le=te=Z(le,Y,Y+R.height)):(re=!0,ne=!1),ae.path=re&&!ne?null:q.renderer.crispLine([["M",oe,le],["L",ye,te]],V||1)}),ie.path}getLinearTickPositions(d,R,q){const J=j(Math.floor(R/d)*d),Y=j(Math.ceil(q/d)*d),ee=[];let E,V,X;if(j(J+d)===J&&(X=20),this.single)return[R];for(E=J;E<=Y&&(ee.push(E),E=j(E+d,X),E!==V);)V=E;return ee}getMinorTickInterval(){const d=this.options;return d.minorTicks===!0?b(d.minorTickInterval,"auto"):d.minorTicks===!1?null:d.minorTickInterval}getMinorTickPositions(){const d=this,R=d.options,q=d.tickPositions,J=d.minorTickInterval,Y=d.pointRangePadding||0,ee=d.min-Y,E=d.max+Y,V=E-ee;let X=[],Q;if(V&&V/J<d.len/3){const se=d.logarithmic;if(se)this.paddedTicks.forEach(function(K,ne,oe){ne&&X.push.apply(X,se.getLogTickPositions(J,oe[ne-1],oe[ne],!0))});else if(d.dateTime&&this.getMinorTickInterval()==="auto")X=X.concat(d.getTimeTicks(d.dateTime.normalizeTimeTickInterval(J),ee,E,R.startOfWeek));else for(Q=ee+(q[0]-ee)%J;Q<=E&&Q!==X[0];Q+=J)X.push(Q)}return X.length!==0&&d.trimTicks(X),X}adjustForMinRange(){const d=this,R=d.options,q=d.logarithmic;let J=d.min,Y=d.max,ee,E,V,X,Q,se;d.isXAxis&&typeof d.minRange>"u"&&!q&&(C(R.min)||C(R.max)||C(R.floor)||C(R.ceiling)?d.minRange=null:(V=B(d.series.map(K=>{var ne;return(K.xIncrement?(ne=K.xData)===null||ne===void 0?void 0:ne.slice(0,2):K.xData)||[]}))||0,d.minRange=Math.min(V*5,d.dataMax-d.dataMin))),Y-J<d.minRange&&(E=d.dataMax-d.dataMin>=d.minRange,se=d.minRange,ee=(se-Y+J)/2,X=[J-ee,b(R.min,J-ee)],E&&(X[2]=q?q.log2lin(d.dataMin):d.dataMin),J=O(X),Q=[J+se,b(R.max,J+se)],E&&(Q[2]=q?q.log2lin(d.dataMax):d.dataMax),Y=M(Q),Y-J<se&&(X[0]=Y-se,X[1]=b(R.min,Y-se),J=O(X))),d.min=J,d.max=Y}getClosest(){let d,R;if(this.categories)R=1;else{const q=[];this.series.forEach(function(J){var Y;const ee=J.closestPointRange,E=J.visible||!J.chart.options.chart.ignoreHiddenSeries;((Y=J.xData)===null||Y===void 0?void 0:Y.length)===1?q.push(J.xData[0]):!J.noSharedTooltip&&C(ee)&&E&&(R=C(R)?Math.min(R,ee):ee)}),q.length&&(q.sort((J,Y)=>J-Y),d=B([q]))}return d&&R?Math.min(d,R):d||R}nameToX(d){const R=S(this.options.categories),q=R?this.categories:this.names;let J=d.options.x,Y;return d.series.requireSorting=!1,C(J)||(J=this.options.uniqueNames&&q?R?q.indexOf(d.name):b(q.keys[d.name],-1):d.series.autoIncrement()),J===-1?!R&&q&&(Y=q.length):Y=J,typeof Y<"u"?(this.names[Y]=d.name,this.names.keys[d.name]=Y):d.x&&(Y=d.x),Y}updateNames(){const d=this,R=this.names;R.length>0&&(Object.keys(R.keys).forEach(function(J){delete R.keys[J]}),R.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(J){J.xIncrement=null,(!J.points||J.isDirtyData)&&(d.max=Math.max(d.max,J.xData.length-1),J.processData(),J.generatePoints()),J.data.forEach(function(Y,ee){let E;Y&&Y.options&&typeof Y.name<"u"&&(E=d.nameToX(Y),typeof E<"u"&&E!==Y.x&&(Y.x=E,J.xData[ee]=E))})}))}setAxisTranslation(){const d=this,R=d.max-d.min,q=d.linkedParent,J=!!d.categories,Y=d.isXAxis;let ee=d.axisPointRange||0,E,V=0,X=0,Q,se=d.transA;(Y||J||ee)&&(E=d.getClosest(),q?(V=q.minPointOffset,X=q.pointRangePadding):d.series.forEach(function(K){const ne=J?1:Y?b(K.options.pointRange,E,0):d.axisPointRange||0,oe=K.options.pointPlacement;if(ee=Math.max(ee,ne),!d.single||J){const le=K.is("xrange")?!Y:Y;V=Math.max(V,le&&h(oe)?0:ne/2),X=Math.max(X,le&&oe==="on"?0:ne)}}),Q=d.ordinal&&d.ordinal.slope&&E?d.ordinal.slope/E:1,d.minPointOffset=V=V*Q,d.pointRangePadding=X=X*Q,d.pointRange=Math.min(ee,d.single&&J?1:R),Y&&E&&(d.closestPointRange=E)),d.translationSlope=d.transA=se=d.staticScale||d.len/(R+X||1),d.transB=d.horiz?d.left:d.bottom,d.minPixelPadding=se*V,m(this,"afterSetAxisTranslation")}minFromRange(){const d=this;return d.max-d.range}setTickInterval(d){const R=this,q=R.chart,J=R.logarithmic,Y=R.options,ee=R.isXAxis,E=R.isLinked,V=Y.tickPixelInterval,X=R.categories,Q=R.softThreshold;let se=Y.maxPadding,K=Y.minPadding,ne,oe,le=x(Y.tickInterval)&&Y.tickInterval>=0?Y.tickInterval:void 0,ye=x(R.threshold)?R.threshold:null,te,re,Z,ie;if(!R.dateTime&&!X&&!E&&this.getTickAmount(),Z=b(R.userMin,Y.min),ie=b(R.userMax,Y.max),E?(R.linkedParent=q[R.coll][Y.linkedTo],oe=R.linkedParent.getExtremes(),R.min=b(oe.min,oe.dataMin),R.max=b(oe.max,oe.dataMax),Y.type!==R.linkedParent.options.type&&P(11,1,q)):(Q&&C(ye)&&(R.dataMin>=ye?(te=ye,K=0):R.dataMax<=ye&&(re=ye,se=0)),R.min=b(Z,te,R.dataMin),R.max=b(ie,re,R.dataMax)),J&&(R.positiveValuesOnly&&!d&&Math.min(R.min,b(R.dataMin,R.min))<=0&&P(10,1,q),R.min=j(J.log2lin(R.min),16),R.max=j(J.log2lin(R.max),16)),R.range&&C(R.max)&&(R.userMin=R.min=Z=Math.max(R.dataMin,R.minFromRange()),R.userMax=ie=R.max,R.range=null),m(R,"foundExtremes"),R.beforePadding&&R.beforePadding(),R.adjustForMinRange(),x(R.userMin)||x(Y.softMin)&&Y.softMin<R.min&&(R.min=Z=Y.softMin),x(R.userMax)||x(Y.softMax)&&Y.softMax>R.max&&(R.max=ie=Y.softMax),!X&&!R.axisPointRange&&!(R.stacking&&R.stacking.usePercentage)&&!E&&C(R.min)&&C(R.max)&&(ne=R.max-R.min,ne&&(!C(Z)&&K&&(R.min-=ne*K),!C(ie)&&se&&(R.max+=ne*se))),!x(R.userMin)&&x(Y.floor)&&(R.min=Math.max(R.min,Y.floor)),!x(R.userMax)&&x(Y.ceiling)&&(R.max=Math.min(R.max,Y.ceiling)),Q&&C(R.dataMin)&&(ye=ye||0,!C(Z)&&R.min<ye&&R.dataMin>=ye?R.min=R.options.minRange?Math.min(ye,R.max-R.minRange):ye:!C(ie)&&R.max>ye&&R.dataMax<=ye&&(R.max=R.options.minRange?Math.max(ye,R.min+R.minRange):ye)),x(R.min)&&x(R.max)&&!this.chart.polar&&R.min>R.max&&(C(R.options.min)?R.max=R.min:C(R.options.max)&&(R.min=R.max)),R.min===R.max||typeof R.min>"u"||typeof R.max>"u"?R.tickInterval=1:E&&R.linkedParent&&!le&&V===R.linkedParent.options.tickPixelInterval?R.tickInterval=le=R.linkedParent.tickInterval:R.tickInterval=b(le,this.tickAmount?(R.max-R.min)/Math.max(this.tickAmount-1,1):void 0,X?1:(R.max-R.min)*V/Math.max(R.len,V)),ee&&!d){const he=R.min!==(R.old&&R.old.min)||R.max!==(R.old&&R.old.max);R.series.forEach(function(fe){fe.forceCrop=fe.forceCropping&&fe.forceCropping(),fe.processData(he)}),m(this,"postProcessData",{hasExtremesChanged:he})}R.setAxisTranslation(),m(this,"initialAxisTranslation"),R.pointRange&&!le&&(R.tickInterval=Math.max(R.pointRange,R.tickInterval));const ae=b(Y.minTickInterval,R.dateTime&&!R.series.some(he=>he.noSharedTooltip)?R.closestPointRange:0);!le&&R.tickInterval<ae&&(R.tickInterval=ae),!R.dateTime&&!R.logarithmic&&!le&&(R.tickInterval=H(R,R.tickInterval)),this.tickAmount||(R.tickInterval=R.unsquish()),this.setTickPositions()}setTickPositions(){const d=this,R=this.options,q=R.tickPositions,J=R.tickPositioner,Y=this.getMinorTickInterval(),ee=this.hasVerticalPanning(),E=this.coll==="colorAxis",V=(E||!ee)&&R.startOnTick,X=(E||!ee)&&R.endOnTick;let Q=[],se;if(this.tickmarkOffset=this.categories&&R.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=Y==="auto"&&this.tickInterval?this.tickInterval/R.minorTicksPerMajor:Y,this.single=this.min===this.max&&C(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||R.allowDecimals!==!1),q)Q=q.slice();else if(x(this.min)&&x(this.max)){if((!d.ordinal||!d.ordinal.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))Q=[this.min,this.max],P(19,!1,this.chart);else if(d.dateTime)Q=d.getTimeTicks(d.dateTime.normalizeTimeTickInterval(this.tickInterval,R.units),this.min,this.max,R.startOfWeek,d.ordinal&&d.ordinal.positions,this.closestPointRange,!0);else if(d.logarithmic)Q=d.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{const K=this.tickInterval;let ne=K;for(;ne<=K*2&&(Q=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&Q.length>this.tickAmount);)this.tickInterval=H(this,ne*=1.1)}Q.length>this.len&&(Q=[Q[0],Q[Q.length-1]],Q[0]===Q[1]&&(Q.length=1)),J&&(this.tickPositions=Q,se=J.apply(d,[this.min,this.max]),se&&(Q=se))}this.tickPositions=Q,this.paddedTicks=Q.slice(0),this.trimTicks(Q,V,X),!this.isLinked&&x(this.min)&&x(this.max)&&(this.single&&Q.length<2&&!this.categories&&!this.series.some(K=>K.is("heatmap")&&K.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),!q&&!se&&this.adjustTickAmount()),m(this,"afterSetTickPositions")}trimTicks(d,R,q){const J=d[0],Y=d[d.length-1],ee=!this.isOrdinal&&this.minPointOffset||0;if(m(this,"trimTicks"),!this.isLinked){if(R&&J!==-1/0)this.min=J;else for(;this.min-ee>d[0];)d.shift();if(q)this.max=Y;else for(;this.max+ee<d[d.length-1];)d.pop();d.length===0&&C(J)&&!this.options.tickPositions&&d.push((Y+J)/2)}}alignToOthers(){const d=this,R=[this],q=d.options,J=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,Y=[];let ee;if(d.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&q.alignTicks||J)&&q.startOnTick!==!1&&q.endOnTick!==!1&&!d.logarithmic){const E=X=>{const{horiz:Q,options:se}=X;return[Q?se.left:se.top,se.width,se.height,se.pane].join(",")},V=E(this);this.chart[this.coll].forEach(function(X){const{series:Q}=X;Q.length&&Q.some(se=>se.visible)&&X!==d&&E(X)===V&&(ee=!0,R.push(X))})}if(ee&&J){R.forEach(V=>{const X=V.getThresholdAlignment(d);x(X)&&Y.push(X)});const E=Y.length>1?Y.reduce((V,X)=>V+=X,0)/Y.length:void 0;R.forEach(V=>{V.thresholdAlignment=E})}return ee}getThresholdAlignment(d){if((!x(this.dataMin)||this!==d&&this.series.some(R=>R.isDirty||R.isDirtyData))&&this.getSeriesExtremes(),x(this.threshold)){let R=_((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(R=1-R),R}}getTickAmount(){const d=this,R=this.options,q=R.tickPixelInterval;let J=R.tickAmount;!C(R.tickInterval)&&!J&&this.len<q&&!this.isRadial&&!d.logarithmic&&R.startOnTick&&R.endOnTick&&(J=2),!J&&this.alignToOthers()&&(J=Math.ceil(this.len/q)+1),J<4&&(this.finalTickAmt=J,J=5),this.tickAmount=J}adjustTickAmount(){const d=this,{finalTickAmt:R,max:q,min:J,options:Y,tickPositions:ee,tickAmount:E,thresholdAlignment:V}=d,X=ee&&ee.length,Q=b(d.threshold,d.softThreshold?0:null);let se,K,ne=d.tickInterval,oe;const le=()=>ee.push(j(ee[ee.length-1]+ne)),ye=()=>ee.unshift(j(ee[0]-ne));if(x(V)&&(oe=V<.5?Math.ceil(V*(E-1)):Math.floor(V*(E-1)),Y.reversed&&(oe=E-1-oe)),d.hasData()&&x(J)&&x(q)){const te=()=>{d.transA*=(X-1)/(E-1),d.min=Y.startOnTick?ee[0]:Math.min(J,ee[0]),d.max=Y.endOnTick?ee[ee.length-1]:Math.max(q,ee[ee.length-1])};if(x(oe)&&x(d.threshold)){for(;ee[oe]!==Q||ee.length!==E||ee[0]>J||ee[ee.length-1]<q;){for(ee.length=0,ee.push(d.threshold);ee.length<E;)ee[oe]===void 0||ee[oe]>d.threshold?ye():le();if(ne>d.tickInterval*8)break;ne*=2}te()}else if(X<E){for(;ee.length<E;)ee.length%2||J===Q?le():ye();te()}if(C(R)){for(K=se=ee.length;K--;)(R===3&&K%2===1||R<=2&&K>0&&K<se-1)&&ee.splice(K,1);d.finalTickAmt=void 0}}}setScale(){const d=this;let R=!1,q=!1;d.series.forEach(function(Y){R=R||Y.isDirtyData||Y.isDirty,q=q||Y.xAxis&&Y.xAxis.isDirty||!1}),d.setAxisSize();const J=d.len!==(d.old&&d.old.len);J||R||q||d.isLinked||d.forceRedraw||d.userMin!==(d.old&&d.old.userMin)||d.userMax!==(d.old&&d.old.userMax)||d.alignToOthers()?(d.stacking&&(d.stacking.resetStacks(),d.stacking.buildStacks()),d.forceRedraw=!1,d.userMinRange||(d.minRange=void 0),d.getSeriesExtremes(),d.setTickInterval(),d.isDirty||(d.isDirty=J||d.min!==(d.old&&d.old.min)||d.max!==(d.old&&d.old.max))):d.stacking&&d.stacking.cleanStacks(),R&&d.panningState&&(d.panningState.isDirty=!0),m(this,"afterSetScale")}setExtremes(d,R,q,J,Y){const ee=this,E=ee.chart;q=b(q,!0),ee.series.forEach(function(V){delete V.kdTree}),Y=I(Y,{min:d,max:R}),m(ee,"setExtremes",Y,function(){ee.userMin=d,ee.userMax=R,ee.eventArgs=Y,q&&E.redraw(J)})}zoom(d,R){const q=this,J=this.dataMin,Y=this.dataMax,ee=this.options,E=Math.min(J,b(ee.min,J)),V=Math.max(Y,b(ee.max,Y)),X={newMin:d,newMax:R};return m(this,"zoom",X,function(Q){let se=Q.newMin,K=Q.newMax;(se!==q.min||K!==q.max)&&(q.allowZoomOutside||(C(J)&&(se<E&&(se=E),se>V&&(se=V)),C(Y)&&(K<E&&(K=E),K>V&&(K=V))),q.displayBtn=typeof se<"u"||typeof K<"u",q.setExtremes(se,K,!1,void 0,{trigger:"zoom"})),Q.zoomed=!0}),X.zoomed}setAxisSize(){const d=this.chart,R=this.options,q=R.offsets||[0,0,0,0],J=this.horiz,Y=this.width=Math.round(v(b(R.width,d.plotWidth-q[3]+q[1]),d.plotWidth)),ee=this.height=Math.round(v(b(R.height,d.plotHeight-q[0]+q[2]),d.plotHeight)),E=this.top=Math.round(v(b(R.top,d.plotTop+q[0]),d.plotHeight,d.plotTop)),V=this.left=Math.round(v(b(R.left,d.plotLeft+q[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-ee-E,this.right=d.chartWidth-Y-V,this.len=Math.max(J?Y:ee,0),this.pos=J?V:E}getExtremes(){const d=this,R=d.logarithmic;return{min:R?j(R.lin2log(d.min)):d.min,max:R?j(R.lin2log(d.max)):d.max,dataMin:d.dataMin,dataMax:d.dataMax,userMin:d.userMin,userMax:d.userMax}}getThreshold(d){const R=this,q=R.logarithmic,J=q?q.lin2log(R.min):R.min,Y=q?q.lin2log(R.max):R.max;return d===null||d===-1/0?d=J:d===1/0?d=Y:J>d?d=J:Y<d&&(d=Y),R.translate(d,0,1,0,1)}autoLabelAlign(d){const R=(b(d,0)-this.side*90+720)%360,q={align:"center"};return m(this,"autoLabelAlign",q,function(J){R>15&&R<165?J.align="right":R>195&&R<345&&(J.align="left")}),q.align}tickSize(d){const R=this.options,q=b(R[d==="tick"?"tickWidth":"minorTickWidth"],d==="tick"&&this.isXAxis&&!this.categories?1:0);let J=R[d==="tick"?"tickLength":"minorTickLength"],Y;q&&J&&(R[d+"Position"]==="inside"&&(J=-J),Y=[J,q]);const ee={tickSize:Y};return m(this,"afterTickSize",ee),ee.tickSize}labelMetrics(){const d=this.chart.renderer,R=this.ticks,q=R[Object.keys(R)[0]]||{};return this.chart.renderer.fontMetrics(q.label||q.movedLabel||d.box)}unsquish(){const d=this.options.labels,R=this.horiz,q=this.tickInterval,J=this.len/(((this.categories?1:0)+this.max-this.min)/q),Y=d.rotation,ee=this.labelMetrics().h*.75,E=Math.max(this.max-this.min,0),V=function(ne){let oe=ne/(J||1);return oe=oe>1?Math.ceil(oe):1,oe*q>E&&ne!==1/0&&J!==1/0&&E&&(oe=Math.ceil(E/q)),j(oe*q)};let X=q,Q,se=Number.MAX_VALUE,K;if(R){if(d.staggerLines||(x(Y)?K=[Y]:J<d.autoRotationLimit&&(K=d.autoRotation)),K){let ne,oe;for(const le of K)(le===Y||le&&le>=-90&&le<=90)&&(ne=V(Math.abs(ee/Math.sin(g*le))),oe=ne+Math.abs(le/360),oe<se&&(se=oe,Q=le,X=ne))}}else X=V(ee);return this.autoRotation=K,this.labelRotation=b(Q,x(Y)?Y:0),d.step?q:X}getSlotWidth(d){const R=this.chart,q=this.horiz,J=this.options.labels,Y=Math.max(this.tickPositions.length-(this.categories?0:1),1),ee=R.margin[3];if(d&&x(d.slotWidth))return d.slotWidth;if(q&&J.step<2)return J.rotation?0:(this.staggerLines||1)*this.len/Y;if(!q){const E=J.style.width;if(E!==void 0)return parseInt(String(E),10);if(ee)return ee-R.spacing[3]}return R.chartWidth*.33}renderUnsquish(){const d=this.chart,R=d.renderer,q=this.tickPositions,J=this.ticks,Y=this.options.labels,ee=Y.style,E=this.horiz,V=this.getSlotWidth(),X=Math.max(1,Math.round(V-2*Y.padding)),Q={},se=this.labelMetrics(),K=ee.textOverflow;let ne,oe,le=0,ye,te,re;if(h(Y.rotation)||(Q.rotation=Y.rotation||0),q.forEach(function(Z){const ie=J[Z];ie.movedLabel&&ie.replaceMovedLabel(),ie&&ie.label&&ie.label.textPxLength>le&&(le=ie.label.textPxLength)}),this.maxLabelLength=le,this.autoRotation)le>X&&le>se.h?Q.rotation=this.labelRotation:this.labelRotation=0;else if(V&&(ne=X,!K))for(oe="clip",te=q.length;!E&&te--;)re=q[te],ye=J[re].label,ye&&(ye.styles&&ye.styles.textOverflow==="ellipsis"?ye.css({textOverflow:"clip"}):ye.textPxLength>V&&ye.css({width:V+"px"}),ye.getBBox().height>this.len/q.length-(se.h-se.f)&&(ye.specificTextOverflow="ellipsis"));Q.rotation&&(ne=le>d.chartHeight*.5?d.chartHeight*.33:le,K||(oe="ellipsis")),this.labelAlign=Y.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(Q.align=this.labelAlign),q.forEach(function(Z){const ie=J[Z],ae=ie&&ie.label,he=ee.width,fe={};ae&&(ae.attr(Q),ie.shortenLabel?ie.shortenLabel():ne&&!he&&ee.whiteSpace!=="nowrap"&&(ne<ae.textPxLength||ae.element.tagName==="SPAN")?(fe.width=ne+"px",K||(fe.textOverflow=ae.specificTextOverflow||oe),ae.css(fe)):ae.styles&&ae.styles.width&&!fe.width&&!he&&ae.css({width:null}),delete ae.specificTextOverflow,ie.rotation=Q.rotation)},this),this.tickRotCorr=R.rotCorr(se.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(d){return d.hasData()})||this.options.showEmpty&&C(this.min)&&C(this.max)}addTitle(d){const R=this,q=R.chart.renderer,J=R.horiz,Y=R.opposite,ee=R.options,E=ee.title,V=R.chart.styledMode;let X;R.axisTitle||(X=E.textAlign,X||(X=(J?{low:"left",middle:"center",high:"right"}:{low:Y?"right":"left",middle:"center",high:Y?"left":"right"})[E.align]),R.axisTitle=q.text(E.text||"",0,0,E.useHTML).attr({zIndex:7,rotation:E.rotation,align:X}).addClass("highcharts-axis-title"),V||R.axisTitle.css(n(E.style)),R.axisTitle.add(R.axisGroup),R.axisTitle.isNew=!0),!V&&!E.style.width&&!R.isRadial&&R.axisTitle.css({width:R.len+"px"}),R.axisTitle[d?"show":"hide"](d)}generateTick(d){const R=this,q=R.ticks;q[d]?q[d].addLabel():q[d]=new y(R,d)}getOffset(){const d=this,{chart:R,horiz:q,options:J,side:Y,ticks:ee,tickPositions:E,coll:V,axisParent:X}=d,Q=R.renderer,se=R.inverted&&!d.isZAxis?[1,0,3,2][Y]:Y,K=d.hasData(),ne=J.title,oe=J.labels,le=x(J.crossing),ye=R.axisOffset,te=R.clipOffset,re=[-1,1,1,-1][Y],Z=J.className;let ie,ae=0,he,fe=0,ve=0,ge,_e;if(d.showAxis=ie=K||J.showEmpty,d.staggerLines=d.horiz&&oe.staggerLines||void 0,!d.axisGroup){const be=(Ce,De,Be)=>Q.g(Ce).attr({zIndex:Be}).addClass(`highcharts-${V.toLowerCase()}${De} `+(this.isRadial?`highcharts-radial-axis${De} `:"")+(Z||"")).add(X);d.gridGroup=be("grid","-grid",J.gridZIndex),d.axisGroup=be("axis","",J.zIndex),d.labelGroup=be("axis-labels","-labels",oe.zIndex)}if(K||d.isLinked?(E.forEach(function(be){d.generateTick(be)}),d.renderUnsquish(),d.reserveSpaceDefault=Y===0||Y===2||{1:"left",3:"right"}[Y]===d.labelAlign,b(oe.reserveSpace,le?!1:null,d.labelAlign==="center"?!0:null,d.reserveSpaceDefault)&&E.forEach(function(be){ve=Math.max(ee[be].getLabelSize(),ve)}),d.staggerLines&&(ve*=d.staggerLines),d.labelOffset=ve*(d.opposite?-1:1)):f(ee,function(be,Ce){be.destroy(),delete ee[Ce]}),ne&&ne.text&&ne.enabled!==!1&&(d.addTitle(ie),ie&&!le&&ne.reserveSpace!==!1&&(d.titleOffset=ae=d.axisTitle.getBBox()[q?"height":"width"],he=ne.offset,fe=C(he)?0:b(ne.margin,q?5:10))),d.renderLine(),d.offset=re*b(J.offset,ye[Y]?ye[Y]+(J.margin||0):0),d.tickRotCorr=d.tickRotCorr||{x:0,y:0},Y===0?_e=-d.labelMetrics().h:Y===2?_e=d.tickRotCorr.y:_e=0,ge=Math.abs(ve)+fe,ve&&(ge-=_e,ge+=re*(q?b(oe.y,d.tickRotCorr.y+re*oe.distance):b(oe.x,re*oe.distance))),d.axisTitleMargin=b(he,ge),d.getMaxLabelDimensions&&(d.maxLabelDimensions=d.getMaxLabelDimensions(ee,E)),V!=="colorAxis"){const be=this.tickSize("tick");ye[Y]=Math.max(ye[Y],(d.axisTitleMargin||0)+ae+re*d.offset,ge,E&&E.length&&be?be[0]+re*d.offset:0);const Ce=!d.axisLine||J.offset?0:Math.floor(d.axisLine.strokeWidth()/2)*2;te[se]=Math.max(te[se],Ce)}m(this,"afterGetOffset")}getLinePath(d){const R=this.chart,q=this.opposite,J=this.offset,Y=this.horiz,ee=this.left+(q?this.width:0)+J,E=R.chartHeight-this.bottom-(q?this.height:0)+J;return q&&(d*=-1),R.renderer.crispLine([["M",Y?this.left:ee,Y?E:this.top],["L",Y?R.chartWidth-this.right:ee,Y?E:R.chartHeight-this.bottom]],d)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(d){const R=this.horiz,q=this.left,J=this.top,Y=this.len,ee=this.options.title,E=R?q:J,V=this.opposite,X=this.offset,Q=ee.x,se=ee.y,K=this.chart.renderer.fontMetrics(d),ne=d?Math.max(d.getBBox(!1,0).height-K.h-1,0):0,oe={low:E+(R?0:Y),middle:E+Y/2,high:E+(R?Y:0)}[ee.align],le=(R?J+this.height:q)+(R?1:-1)*(V?-1:1)*(this.axisTitleMargin||0)+[-ne,ne,K.f,-ne][this.side],ye={x:R?oe+Q:le+(V?this.width:0)+X+Q,y:R?le+se-(V?this.height:0)+X:oe+se};return m(this,"afterGetTitlePosition",{titlePosition:ye}),ye}renderMinorTick(d,R){const q=this,J=q.minorTicks;J[d]||(J[d]=new y(q,d,"minor")),R&&J[d].isNew&&J[d].render(null,!0),J[d].render(null,!1,1)}renderTick(d,R,q){const J=this,Y=J.isLinked,ee=J.ticks;(!Y||d>=J.min&&d<=J.max||J.grid&&J.grid.isColumn)&&(ee[d]||(ee[d]=new y(J,d)),q&&ee[d].isNew&&ee[d].render(R,!0,-1),ee[d].render(R))}render(){const d=this,R=d.chart,q=d.logarithmic,J=R.renderer,Y=d.options,ee=d.isLinked,E=d.tickPositions,V=d.axisTitle,X=d.ticks,Q=d.minorTicks,se=d.alternateBands,K=Y.stackLabels,ne=Y.alternateGridColor,oe=Y.crossing,le=d.tickmarkOffset,ye=d.axisLine,te=d.showAxis,re=N(J.globalAnimation);let Z,ie;if(d.labelEdge.length=0,d.overlap=!1,[X,Q,se].forEach(function(ae){f(ae,function(he){he.isActive=!1})}),x(oe)){const ae=this.isXAxis?R.yAxis[0]:R.xAxis[0],he=[1,-1,-1,1][this.side];if(ae){let fe=ae.toPixels(oe,!0);d.horiz&&(fe=ae.len-fe),d.offset=he*fe}}if(d.hasData()||ee){const ae=d.chart.hasRendered&&d.old&&x(d.old.min);d.minorTickInterval&&!d.categories&&d.getMinorTickPositions().forEach(function(he){d.renderMinorTick(he,ae)}),E.length&&(E.forEach(function(he,fe){d.renderTick(he,fe,ae)}),le&&(d.min===0||d.single)&&(X[-1]||(X[-1]=new y(d,-1,null,!0)),X[-1].render(-1))),ne&&E.forEach(function(he,fe){ie=typeof E[fe+1]<"u"?E[fe+1]+le:d.max-le,fe%2===0&&he<d.max&&ie<=d.max+(R.polar?-le:le)&&(se[he]||(se[he]=new w.PlotLineOrBand(d)),Z=he+le,se[he].options={from:q?q.lin2log(Z):Z,to:q?q.lin2log(ie):ie,color:ne,className:"highcharts-alternate-grid"},se[he].render(),se[he].isActive=!0)}),d._addedPlotLB||(d._addedPlotLB=!0,(Y.plotLines||[]).concat(Y.plotBands||[]).forEach(function(he){d.addPlotBandOrLine(he)}))}[X,Q,se].forEach(function(ae){const he=[],fe=re.duration,ve=function(){let ge=he.length;for(;ge--;)ae[he[ge]]&&!ae[he[ge]].isActive&&(ae[he[ge]].destroy(),delete ae[he[ge]])};f(ae,function(ge,_e){ge.isActive||(ge.render(_e,!1,0),ge.isActive=!1,he.push(_e))}),D(ve,ae===se||!R.hasRendered||!fe?0:fe)}),ye&&(ye[ye.isPlaced?"animate":"attr"]({d:this.getLinePath(ye.strokeWidth())}),ye.isPlaced=!0,ye[te?"show":"hide"](te)),V&&te&&(V[V.isNew?"attr":"animate"](d.getTitlePosition(V)),V.isNew=!1),K&&K.enabled&&d.stacking&&d.stacking.renderStackTotals(),d.old={len:d.len,max:d.max,min:d.min,transA:d.transA,userMax:d.userMax,userMin:d.userMin},d.isDirty=!1,m(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(d){d.render()})),this.series.forEach(function(d){d.isDirty=!0})}getKeepProps(){return this.keepProps||z.keepProps}destroy(d){const R=this,q=R.plotLinesAndBands,J=this.eventOptions;if(m(this,"destroy",{keepEvents:d}),d||G(R),[R.ticks,R.minorTicks,R.alternateBands].forEach(function(Y){k(Y)}),q){let Y=q.length;for(;Y--;)q[Y].destroy()}["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(Y){R[Y]&&(R[Y]=R[Y].destroy())});for(const Y in R.plotLinesAndBandsGroups)R.plotLinesAndBandsGroups[Y]=R.plotLinesAndBandsGroups[Y].destroy();f(R,function(Y,ee){R.getKeepProps().indexOf(ee)===-1&&delete R[ee]}),this.eventOptions=J}drawCrosshair(d,R){const q=this.crosshair,J=b(q&&q.snap,!0),Y=this.chart;let ee,E,V,X=this.cross,Q;if(m(this,"drawCrosshair",{e:d,point:R}),d||(d=this.cross&&this.cross.e),!q||(C(R)||!J)===!1)this.hideCrosshair();else{if(J?C(R)&&(E=b(this.coll!=="colorAxis"?R.crosshairPos:null,this.isXAxis?R.plotX:this.len-R.plotY)):E=d&&(this.horiz?d.chartX-this.pos:this.len-d.chartY+this.pos),C(E)&&(Q={value:R&&(this.isXAxis?R.x:b(R.stackY,R.y)),translatedValue:E},Y.polar&&I(Q,{isCrosshair:!0,chartX:d&&d.chartX,chartY:d&&d.chartY,point:R}),ee=this.getPlotLinePath(Q)||null),!C(ee)){this.hideCrosshair();return}V=this.categories&&!this.isRadial,X||(this.cross=X=Y.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(V?"category ":"thin ")+(q.className||"")).attr({zIndex:b(q.zIndex,2)}).add(),Y.styledMode||(X.attr({stroke:q.color||(V?o.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":b(q.width,1)}).css({"pointer-events":"none"}),q.dashStyle&&X.attr({dashstyle:q.dashStyle}))),X.show().attr({d:ee}),V&&!q.width&&X.attr({"stroke-width":this.transA}),this.cross.e=d}m(this,"afterDrawCrosshair",{e:d,point:R})}hideCrosshair(){this.cross&&this.cross.hide(),m(this,"afterHideCrosshair")}hasVerticalPanning(){const d=this.chart.options.chart.panning;return!!(d&&d.enabled&&/y/.test(d.type))}update(d,R){const q=this.chart;d=n(this.userOptions,d),this.destroy(!0),this.init(q,d),q.isDirtyBox=!0,b(R,!0)&&q.redraw()}remove(d){const R=this.chart,q=this.coll,J=this.series;let Y=J.length;for(;Y--;)J[Y]&&J[Y].remove(!1);F(R.axes,this),F(R[q]||[],this),R.orderItems(q),this.destroy(),R.isDirtyBox=!0,b(d,!0)&&R.redraw()}setTitle(d,R){this.update({title:d},R)}setCategories(d,R){this.update({categories:d},R)}}return z.defaultOptions=s.defaultXAxisOptions,z.keepProps=["coll","extKey","hcEvents","names","series","userMax","userMin"],z}),a(t,"Core/Axis/DateTimeAxis.js",[t["Core/Utilities.js"]],function(i){const{addEvent:s,getMagnitude:o,normalizeTickInterval:c,timeUnits:u}=i;var w;return function(y){const L=[];function N(O){if(i.pushUnique(L,O)){O.keepProps.push("dateTime");const M=O.prototype;M.getTimeTicks=A,s(O,"init",p)}return O}y.compose=N;function A(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function p(O){const M=this;if(O.userOptions.type!=="datetime"){M.dateTime=void 0;return}M.dateTime||(M.dateTime=new g(M))}class g{constructor(M){this.axis=M}normalizeTimeTickInterval(M,_){const j=_||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];let C=j[j.length-1],k=u[C[0]],F=C[1],P;for(P=0;P<j.length;P++)if(C=j[P],k=u[C[0]],F=C[1],j[P+1]){const m=(k*F[F.length-1]+u[j[P+1][0]])/2;if(M<=m)break}k===u.year&&M<5*k&&(F=[1,2,5]);const I=c(M/k,F,C[0]==="year"?Math.max(o(M/k),1):1);return{unitRange:k,count:I,unitName:C[0]}}getXDateFormat(M,_){const{axis:j}=this,C=j.chart.time;return j.closestPointRange?C.getDateFormat(j.closestPointRange,M,j.options.startOfWeek,_)||C.resolveDTLFormat(_.year).main:C.resolveDTLFormat(_.day).main}}y.Additions=g}(w||(w={})),w}),a(t,"Core/Axis/LogarithmicAxis.js",[t["Core/Utilities.js"]],function(i){const{addEvent:s,normalizeTickInterval:o,pick:c}=i;var u;return function(w){const y=[];function L(g){return i.pushUnique(y,g)&&(g.keepProps.push("logarithmic"),s(g,"init",N),s(g,"afterInit",A)),g}w.compose=L;function N(g){const O=this,M=g.userOptions;let _=O.logarithmic;M.type!=="logarithmic"?O.logarithmic=void 0:_||(_=O.logarithmic=new p(O))}function A(){const g=this,O=g.logarithmic;O&&(g.lin2val=function(M){return O.lin2log(M)},g.val2lin=function(M){return O.log2lin(M)})}class p{constructor(O){this.axis=O}getLogTickPositions(O,M,_,j){const C=this,k=C.axis,F=k.len,P=k.options;let I=[];if(j||(C.minorAutoInterval=void 0),O>=.5)O=Math.round(O),I=k.getLinearTickPositions(O,M,_);else if(O>=.08){const m=Math.floor(M);let B,T,S,x,h,n,l;for(O>.3?B=[1,2,4]:O>.15?B=[1,2,4,6,8]:B=[1,2,3,4,5,6,7,8,9],T=m;T<_+1&&!l;T++)for(x=B.length,S=0;S<x&&!l;S++)h=C.log2lin(C.lin2log(T)*B[S]),h>M&&(!j||n<=_)&&typeof n<"u"&&I.push(n),n>_&&(l=!0),n=h}else{const m=C.lin2log(M),B=C.lin2log(_),T=j?k.getMinorTickInterval():P.tickInterval,S=T==="auto"?null:T,x=P.tickPixelInterval/(j?5:1),h=j?F/k.tickPositions.length:F;O=c(S,C.minorAutoInterval,(B-m)*x/(h||1)),O=o(O),I=k.getLinearTickPositions(O,m,B).map(C.log2lin),j||(C.minorAutoInterval=O/5)}return j||(k.tickInterval=O),I}lin2log(O){return Math.pow(10,O)}log2lin(O){return Math.log(O)/Math.LN10}}w.Additions=p}(u||(u={})),u}),a(t,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[t["Core/Utilities.js"]],function(i){const{erase:s,extend:o,isNumber:c}=i;var u;return function(w){const y=[];let L;function N(C){return this.addPlotBandOrLine(C,"plotBands")}function A(C,k){const F=this.userOptions;let P=new L(this,C);if(this.visible&&(P=P.render()),P){if(this._addedPlotLB||(this._addedPlotLB=!0,(F.plotLines||[]).concat(F.plotBands||[]).forEach(I=>{this.addPlotBandOrLine(I)})),k){const I=F[k]||[];I.push(C),F[k]=I}this.plotLinesAndBands.push(P)}return P}function p(C){return this.addPlotBandOrLine(C,"plotLines")}function g(C,k){return L||(L=C),i.pushUnique(y,k)&&o(k.prototype,{addPlotBand:N,addPlotLine:p,addPlotBandOrLine:A,getPlotBandPath:O,removePlotBand:M,removePlotLine:j,removePlotBandOrLine:_}),k}w.compose=g;function O(C,k,F=this.options){const P=this.getPlotLinePath({value:k,force:!0,acrossPanes:F.acrossPanes}),I=[],m=this.horiz,B=!c(this.min)||!c(this.max)||C<this.min&&k<this.min||C>this.max&&k>this.max;let T=this.getPlotLinePath({value:C,force:!0,acrossPanes:F.acrossPanes}),S,x=1,h;if(T&&P)for(B&&(h=T.toString()===P.toString(),x=0),S=0;S<T.length;S+=2){const n=T[S],l=T[S+1],f=P[S],b=P[S+1];(n[0]==="M"||n[0]==="L")&&(l[0]==="M"||l[0]==="L")&&(f[0]==="M"||f[0]==="L")&&(b[0]==="M"||b[0]==="L")&&(m&&f[1]===n[1]?(f[1]+=x,b[1]+=x):!m&&f[2]===n[2]&&(f[2]+=x,b[2]+=x),I.push(["M",n[1],n[2]],["L",l[1],l[2]],["L",b[1],b[2]],["L",f[1],f[2]],["Z"])),I.isFlat=h}else T=null;return I}function M(C){this.removePlotBandOrLine(C)}function _(C){const k=this.plotLinesAndBands,F=this.options,P=this.userOptions;if(k){let I=k.length;for(;I--;)k[I].id===C&&k[I].destroy();[F.plotLines||[],P.plotLines||[],F.plotBands||[],P.plotBands||[]].forEach(function(m){for(I=m.length;I--;)(m[I]||{}).id===C&&s(m,m[I])})}}function j(C){this.removePlotBandOrLine(C)}}(u||(u={})),u}),a(t,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[t["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],t["Core/Utilities.js"]],function(i,s){const{arrayMax:o,arrayMin:c,defined:u,destroyObjectProperties:w,erase:y,fireEvent:L,merge:N,objectEach:A,pick:p}=s;class g{static compose(M){return i.compose(g,M)}constructor(M,_){this.axis=M,_&&(this.options=_,this.id=_.id)}render(){L(this,"render");const M=this,_=M.axis,j=_.horiz,C=_.logarithmic,k=M.options,F=k.color,P=p(k.zIndex,0),I=k.events,m={},B=_.chart.renderer;let T=k.label,S=M.label,x=k.to,h=k.from,n=k.value,l=M.svgElem,f=[],b;const v=u(h)&&u(x),G=u(n),U=!l,D={class:"highcharts-plot-"+(v?"band ":"line ")+(k.className||"")};let H=v?"bands":"lines";if(C&&(h=C.log2lin(h),x=C.log2lin(x),n=C.log2lin(n)),_.chart.styledMode||(G?(D.stroke=F||"#999999",D["stroke-width"]=p(k.width,1),k.dashStyle&&(D.dashstyle=k.dashStyle)):v&&(D.fill=F||"#e6e9ff",k.borderWidth&&(D.stroke=k.borderColor,D["stroke-width"]=k.borderWidth))),m.zIndex=P,H+="-"+P,b=_.plotLinesAndBandsGroups[H],b||(_.plotLinesAndBandsGroups[H]=b=B.g("plot-"+H).attr(m).add()),U&&(M.svgElem=l=B.path().attr(D).add(b)),G)f=_.getPlotLinePath({value:n,lineWidth:l.strokeWidth(),acrossPanes:k.acrossPanes});else if(v)f=_.getPlotBandPath(h,x,k);else return;return!M.eventsAdded&&I&&(A(I,function(z,W){l.on(W,function(d){I[W].apply(M,[d])})}),M.eventsAdded=!0),(U||!l.d)&&f&&f.length?l.attr({d:f}):l&&(f?(l.show(),l.animate({d:f})):l.d&&(l.hide(),S&&(M.label=S=S.destroy()))),T&&(u(T.text)||u(T.formatter))&&f&&f.length&&_.width>0&&_.height>0&&!f.isFlat?(T=N({align:j&&v&&"center",x:j?!v&&4:10,verticalAlign:!j&&v&&"middle",y:j?v?16:10:v?6:-4,rotation:j&&!v&&90},T),this.renderLabel(T,f,v,P)):S&&S.hide(),M}renderLabel(M,_,j,C){const k=this,F=k.axis,P=F.chart.renderer;let I=k.label;I||(k.label=I=P.text(this.getLabelText(M),0,0,M.useHTML).attr({align:M.textAlign||M.align,rotation:M.rotation,class:"highcharts-plot-"+(j?"band":"line")+"-label "+(M.className||""),zIndex:C}).add(),F.chart.styledMode||I.css(N({fontSize:"0.8em",textOverflow:"ellipsis"},M.style)));const m=_.xBounds||[_[0][1],_[1][1],j?_[2][1]:_[0][1]],B=_.yBounds||[_[0][2],_[1][2],j?_[2][2]:_[0][2]],T=c(m),S=c(B);if(I.align(M,!1,{x:T,y:S,width:o(m)-T,height:o(B)-S}),!I.alignValue||I.alignValue==="left"){const x=M.clip?F.width:F.chart.chartWidth;I.css({width:(I.rotation===90?F.height-(I.alignAttr.y-F.top):x-(I.alignAttr.x-F.left))+"px"})}I.show(!0)}getLabelText(M){return u(M.formatter)?M.formatter.call(this):M.text}destroy(){y(this.axis.plotLinesAndBands,this),delete this.axis,w(this)}}return g}),a(t,"Core/Tooltip.js",[t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],function(i,s,o,c,u){const{format:w}=i,{doc:y,isSafari:L}=s,{distribute:N}=o,{addEvent:A,clamp:p,css:g,discardElement:O,extend:M,fireEvent:_,isArray:j,isNumber:C,isString:k,merge:F,pick:P,splat:I,syncTimeout:m}=u;class B{constructor(S,x){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=S,this.init(S,x)}bodyFormatter(S){return S.map(function(x){const h=x.series.tooltipOptions;return(h[(x.point.formatPrefix||"point")+"Formatter"]||x.point.tooltipFormatter).call(x.point,h[(x.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(S){this.chart.series.forEach(function(x){const h=x&&x.tt;h&&(!h.isActive||S?x.tt=h.destroy():h.isActive=!1)})}defaultFormatter(S){const x=this.points||I(this);let h;return h=[S.tooltipFooterHeaderFormatter(x[0])],h=h.concat(S.bodyFormatter(x)),h.push(S.tooltipFooterHeaderFormatter(x[0],!0)),h}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),O(this.container)),u.clearTimeout(this.hideTimer),u.clearTimeout(this.tooltipTimeout)}getAnchor(S,x){const h=this.chart,n=h.pointer,l=h.inverted,f=h.plotTop,b=h.plotLeft;let v;if(S=I(S),S[0].series&&S[0].series.yAxis&&!S[0].series.yAxis.options.reversedStacks&&(S=S.slice().reverse()),this.followPointer&&x)typeof x.chartX>"u"&&(x=n.normalize(x)),v=[x.chartX-b,x.chartY-f];else if(S[0].tooltipPos)v=S[0].tooltipPos;else{let G=0,U=0;S.forEach(function(D){const H=D.pos(!0);H&&(G+=H[0],U+=H[1])}),G/=S.length,U/=S.length,this.shared&&S.length>1&&x&&(l?G=x.chartX:U=x.chartY),v=[G-b,U-f]}return v.map(Math.round)}getClassName(S,x,h){const n=this.options,l=S.series,f=l.options;return[n.className,"highcharts-label",h&&"highcharts-tooltip-header",x?"highcharts-tooltip-box":"highcharts-tooltip",!h&&"highcharts-color-"+P(S.colorIndex,l.colorIndex),f&&f.className].filter(k).join(" ")}getLabel(){const S=this,x=this.chart.styledMode,h=this.options,n=this.split&&this.allowShared,l=h.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none");let f,b=this.chart.renderer;if(this.label){const v=!this.label.hasClass("highcharts-label");(!n&&v||n&&!v)&&this.destroy()}if(!this.label){if(this.outside){const v=this.chart.options.chart.style,G=c.getRendererType();this.container=f=s.doc.createElement("div"),f.className="highcharts-tooltip-container",g(f,{position:"absolute",top:"1px",pointerEvents:l,zIndex:Math.max(this.options.style.zIndex||0,(v&&v.zIndex||0)+3)}),s.doc.body.appendChild(f),this.renderer=b=new G(f,0,0,v,void 0,void 0,b.styledMode)}if(n?this.label=b.g("tooltip"):(this.label=b.label("",0,0,h.shape,void 0,void 0,h.useHTML,void 0,"tooltip").attr({padding:h.padding,r:h.borderRadius}),x||this.label.attr({fill:h.backgroundColor,"stroke-width":h.borderWidth||0}).css(h.style).css({pointerEvents:l})),S.outside){const v=this.label,{xSetter:G,ySetter:U}=v;v.xSetter=function(D){G.call(v,S.distance),f.style.left=D+"px"},v.ySetter=function(D){U.call(v,S.distance),f.style.top=D+"px"}}this.label.attr({zIndex:8}).shadow(h.shadow).add()}return this.label}getPlayingField(){const{body:S,documentElement:x}=y,{chart:h,distance:n,outside:l}=this;return{width:l?Math.max(S.scrollWidth,x.scrollWidth,S.offsetWidth,x.offsetWidth,x.clientWidth)-2*n:h.chartWidth,height:l?Math.max(S.scrollHeight,x.scrollHeight,S.offsetHeight,x.offsetHeight,x.clientHeight):h.chartHeight}}getPosition(S,x,h){const n=this.chart,l=this.distance,f={},b=n.inverted&&h.h||0,v=this.outside,G=this.getPlayingField(),U=G.width,D=G.height,H=n.pointer.getChartPosition(),z=se=>se*H.scaleX,W=se=>se*H.scaleY,d=se=>{const K=se==="x";return[se,K?U:D,K?S:x].concat(v?[K?z(S):W(x),K?H.left-l+z(h.plotX+n.plotLeft):H.top-l+W(h.plotY+n.plotTop),0,K?U:D]:[K?S:x,K?h.plotX+n.plotLeft:h.plotY+n.plotTop,K?n.plotLeft:n.plotTop,K?n.plotLeft+n.plotWidth:n.plotTop+n.plotHeight])};let R=d("y"),q=d("x"),J,Y=!!h.negative;!n.polar&&n.hoverSeries&&n.hoverSeries.yAxis&&n.hoverSeries.yAxis.reversed&&(Y=!Y);const ee=!this.followPointer&&P(h.ttBelow,!n.inverted===Y),E=function(se,K,ne,oe,le,ye,te){const re=v?se==="y"?W(l):z(l):l,Z=(ne-oe)/2,ie=oe<le-l,ae=le+l+oe<K,he=le-re-ne+Z,fe=le+re-Z;if(ee&&ae)f[se]=fe;else if(!ee&&ie)f[se]=he;else if(ie)f[se]=Math.min(te-oe,he-b<0?he:he-b);else if(ae)f[se]=Math.max(ye,fe+b+ne>K?fe:fe+b);else return!1},V=function(se,K,ne,oe,le){let ye;return le<l||le>K-l?ye=!1:le<ne/2?f[se]=1:le>K-oe/2?f[se]=K-oe-2:f[se]=le-ne/2,ye},X=function(se){const K=R;R=q,q=K,J=se},Q=function(){E.apply(0,R)!==!1?V.apply(0,q)===!1&&!J&&(X(!0),Q()):J?f.x=f.y=0:(X(!0),Q())};return(n.inverted||this.len>1)&&X(),Q(),f}hide(S){const x=this;u.clearTimeout(this.hideTimer),S=P(S,this.options.hideDelay),this.isHidden||(this.hideTimer=m(function(){x.getLabel().fadeOut(S&&void 0),x.isHidden=!0},S))}init(S,x){this.chart=S,this.options=x,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=x.split&&!S.inverted&&!S.polar,this.shared=x.shared||this.split,this.outside=P(x.outside,!!(S.scrollablePixelsX||S.scrollablePixelsY))}shouldStickOnContact(S){return!!(!this.followPointer&&this.options.stickOnContact&&(!S||this.chart.pointer.inClass(S.target,"highcharts-tooltip")))}move(S,x,h,n){const l=this,f=l.now,b=l.options.animation!==!1&&!l.isHidden&&(Math.abs(S-f.x)>1||Math.abs(x-f.y)>1),v=l.followPointer||l.len>1;M(f,{x:b?(2*f.x+S)/3:S,y:b?(f.y+x)/2:x,anchorX:v?void 0:b?(2*f.anchorX+h)/3:h,anchorY:v?void 0:b?(f.anchorY+n)/2:n}),l.getLabel().attr(f),l.drawTracker(),b&&(u.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){l&&l.move(S,x,h,n)},32))}refresh(S,x){const h=this,n=this.chart,l=h.options,f=n.pointer,b=I(S),v=b[0],G=[],U=l.format,D=l.formatter||h.defaultFormatter,H=h.shared,z=n.styledMode;let W={};if(!l.enabled||!v.series)return;u.clearTimeout(this.hideTimer),h.allowShared=!(!j(S)&&S.series&&S.series.noSharedTooltip),h.followPointer=!h.split&&v.series.tooltipOptions.followPointer;const d=h.getAnchor(S,x),R=d[0],q=d[1];H&&h.allowShared?(f.applyInactiveState(b),b.forEach(function(ee){ee.setState("hover"),G.push(ee.getLabelConfig())}),W=v.getLabelConfig(),W.points=G):W=v.getLabelConfig(),this.len=G.length;const J=k(U)?w(U,W,n):D.call(W,h),Y=v.series;if(this.distance=P(Y.tooltipOptions.distance,16),J===!1)this.hide();else{if(h.split&&h.allowShared)this.renderSplit(J,b);else{let ee=R,E=q;if(x&&f.isDirectTouch&&(ee=x.chartX-n.plotLeft,E=x.chartY-n.plotTop),n.polar||Y.options.clip===!1||b.some(V=>f.isDirectTouch||V.series.shouldShowTooltip(ee,E))){const V=h.getLabel();(!l.style.width||z)&&V.css({width:(this.outside?this.getPlayingField():n.spacingBox).width+"px"}),V.attr({text:J&&J.join?J.join(""):J}),V.addClass(h.getClassName(v),!0),z||V.attr({stroke:l.borderColor||v.color||Y.color||"#666666"}),h.updatePosition({plotX:R,plotY:q,negative:v.negative,ttBelow:v.ttBelow,h:d[2]||0})}else{h.hide();return}}h.isHidden&&h.label&&h.label.attr({opacity:1}).show(),h.isHidden=!1}_(this,"refresh")}renderSplit(S,x){const h=this,{chart:n,chart:{chartWidth:l,chartHeight:f,plotHeight:b,plotLeft:v,plotTop:G,pointer:U,scrollablePixelsY:D=0,scrollablePixelsX:H,scrollingContainer:{scrollLeft:z,scrollTop:W}={scrollLeft:0,scrollTop:0},styledMode:d},distance:R,options:q,options:{positioner:J}}=h,Y=h.outside&&typeof H!="number"?y.documentElement.getBoundingClientRect():{left:z,right:z+l,top:W,bottom:W+f},ee=h.getLabel(),E=this.renderer||n.renderer,V=!!(n.xAxis[0]&&n.xAxis[0].opposite),{left:X,top:Q}=U.getChartPosition();let se=G+W,K=0,ne=b-D;function oe(he){const{isHeader:fe,plotX:ve=0,plotY:ge=0,series:_e}=he;let be,Ce;if(fe)be=v+ve,Ce=G+b/2;else{const{xAxis:De,yAxis:Be}=_e;be=De.pos+p(ve,-R,De.len+R),_e.shouldShowTooltip(0,Be.pos-G+ge,{ignoreX:!0})&&(Ce=Be.pos+ge)}return be=p(be,Y.left-R,Y.right+R),{anchorX:be,anchorY:Ce}}function le(he,fe,ve,ge,_e=!0){let be,Ce;return ve?(be=V?0:ne,Ce=p(he-ge/2,Y.left,Y.right-ge-(h.outside?X:0))):(be=fe-se,Ce=_e?he-ge-R:he+R,Ce=p(Ce,_e?Ce:Y.left,Y.right)),{x:Ce,y:be}}function ye(he,fe,ve){var ge;let _e=he;const{isHeader:be,series:Ce}=fe;if(!_e){const De={padding:q.padding,r:q.borderRadius};d||(De.fill=q.backgroundColor,De["stroke-width"]=(ge=q.borderWidth)!==null&&ge!==void 0?ge:1),_e=E.label("",0,0,q[be?"headerShape":"shape"],void 0,void 0,q.useHTML).addClass(h.getClassName(fe,!0,be)).attr(De).add(ee)}return _e.isActive=!0,_e.attr({text:ve}),d||_e.css(q.style).attr({stroke:q.borderColor||fe.color||Ce.color||"#333333"}),_e}k(S)&&(S=[!1,S]);let te=S.slice(0,x.length+1).reduce(function(he,fe,ve){if(fe!==!1&&fe!==""){const ge=x[ve-1]||{isHeader:!0,plotX:x[0].plotX,plotY:b,series:{}},_e=ge.isHeader,be=_e?h:ge.series,Ce=be.tt=ye(be.tt,ge,fe.toString()),De=Ce.getBBox(),Be=De.width+Ce.strokeWidth();_e&&(K=De.height,ne+=K,V&&(se-=K));const{anchorX:Le,anchorY:Pe}=oe(ge);if(typeof Pe=="number"){const Ue=De.height+1,Je=J?J.call(h,Be,Ue,ge):le(Le,Pe,_e,Be);he.push({align:J?0:void 0,anchorX:Le,anchorY:Pe,boxWidth:Be,point:ge,rank:P(Je.rank,_e?1:0),size:Ue,target:Je.y,tt:Ce,x:Je.x})}else Ce.isActive=!1}return he},[]);!J&&te.some(he=>{const{outside:fe}=h,ve=(fe?X:0)+he.anchorX;return ve<Y.left&&ve+he.boxWidth<Y.right?!0:ve<X-Y.left+he.boxWidth&&Y.right-ve>ve})&&(te=te.map(he=>{const{x:fe,y:ve}=le(he.anchorX,he.anchorY,he.point.isHeader,he.boxWidth,!1);return M(he,{target:ve,x:fe})})),h.cleanSplit(),N(te,ne);const re={left:X,right:X};te.forEach(function(he){const{x:fe,boxWidth:ve,isHeader:ge}=he;ge||(h.outside&&X+fe<re.left&&(re.left=X+fe),!ge&&h.outside&&re.left+ve>re.right&&(re.right=X+fe))}),te.forEach(function(he){const{x:fe,anchorX:ve,anchorY:ge,pos:_e,point:{isHeader:be}}=he,Ce={visibility:typeof _e>"u"?"hidden":"inherit",x:fe,y:(_e||0)+se,anchorX:ve,anchorY:ge};if(h.outside&&fe<ve){const De=X-re.left;De>0&&(be||(Ce.x=fe+De,Ce.anchorX=ve+De),be&&(Ce.x=(re.right-re.left)/2,Ce.anchorX=ve+De))}he.tt.attr(Ce)});const{container:Z,outside:ie,renderer:ae}=h;if(ie&&Z&&ae){const{width:he,height:fe,x:ve,y:ge}=ee.getBBox();ae.setSize(he+ve,fe+ge,!1),Z.style.left=re.left+"px",Z.style.top=Q+"px"}L&&ee.attr({opacity:ee.opacity===1?.999:1})}drawTracker(){const S=this;if(!this.shouldStickOnContact()){S.tracker&&(S.tracker=S.tracker.destroy());return}const x=S.chart,h=S.label,n=S.shared?x.hoverPoints:x.hoverPoint;if(!h||!n)return;const l={x:0,y:0,width:0,height:0},f=this.getAnchor(n),b=h.getBBox();f[0]+=x.plotLeft-h.translateX,f[1]+=x.plotTop-h.translateY,l.x=Math.min(0,f[0]),l.y=Math.min(0,f[1]),l.width=f[0]<0?Math.max(Math.abs(f[0]),b.width-f[0]):Math.max(Math.abs(f[0]),b.width),l.height=f[1]<0?Math.max(Math.abs(f[1]),b.height-Math.abs(f[1])):Math.max(Math.abs(f[1]),b.height),S.tracker?S.tracker.attr(l):(S.tracker=h.renderer.rect(l).addClass("highcharts-tracker").add(h),x.styledMode||S.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(S){return S.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(S,x){const h=S.series,n=h.tooltipOptions,l=h.xAxis,f=l&&l.dateTime,b={isFooter:x,labelConfig:S};let v=n.xDateFormat,G=n[x?"footerFormat":"headerFormat"];return _(this,"headerFormatter",b,function(U){f&&!v&&C(S.key)&&(v=f.getXDateFormat(S.key,n.dateTimeLabelFormats)),f&&v&&(S.point&&S.point.tooltipDateKeys||["key"]).forEach(function(D){G=G.replace("{point."+D+"}","{point."+D+":"+v+"}")}),h.chart.styledMode&&(G=this.styledModeFormat(G)),U.text=w(G,{point:S,series:h},this.chart)}),b.text}update(S){this.destroy(),this.init(this.chart,F(!0,this.options,S))}updatePosition(S){const{chart:x,distance:h,options:n}=this,l=x.pointer,f=this.getLabel(),{left:b,top:v,scaleX:G,scaleY:U}=l.getChartPosition(),D=(n.positioner||this.getPosition).call(this,f.width,f.height,S);let H=(S.plotX||0)+x.plotLeft,z=(S.plotY||0)+x.plotTop,W;this.outside&&(n.positioner&&(D.x+=b-h,D.y+=v-h),W=(n.borderWidth||0)+2*h,this.renderer.setSize(f.width+W,f.height+W,!1),(G!==1||U!==1)&&(g(this.container,{transform:`scale(${G}, ${U})`}),H*=G,z*=U),H+=b-D.x,z+=v-D.y),this.move(Math.round(D.x),Math.round(D.y||0),H,z)}}return function(T){const S=[];function x(h){u.pushUnique(S,h)&&A(h,"afterInit",function(){const n=this.chart;n.options.tooltip&&(n.tooltip=new T(n,n.options.tooltip))})}T.compose=x}(B||(B={})),B}),a(t,"Core/Series/Point.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Animation/AnimationUtilities.js"],t["Core/Defaults.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],function(i,s,o,c,u){const{animObject:w}=s,{defaultOptions:y}=o,{format:L}=c,{addEvent:N,defined:A,erase:p,extend:g,fireEvent:O,getNestedProperty:M,isArray:_,isFunction:j,isNumber:C,isObject:k,merge:F,objectEach:P,pick:I,syncTimeout:m,removeEvent:B,uniqueKey:T}=u;class S{constructor(){this.category=void 0,this.destroyed=!1,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.name=void 0,this.options=void 0,this.percentage=void 0,this.selected=!1,this.series=void 0,this.shapeArgs=void 0,this.total=void 0,this.visible=!0,this.x=void 0}animateBeforeDestroy(){const h=this,n={x:h.startXPos,opacity:0},l=h.getGraphicalProps();l.singular.forEach(function(f){const b=f==="dataLabel";h[f]=h[f].animate(b?{x:h[f].startXPos,y:h[f].startYPos,opacity:0}:n)}),l.plural.forEach(function(f){h[f].forEach(function(b){b.element&&b.animate(g({x:h.startXPos},b.startYPos?{x:b.startXPos,y:b.startYPos}:{}))})})}applyOptions(h,n){const l=this,f=l.series,b=f.options.pointValKey||f.pointValKey;return h=S.prototype.optionsToObject.call(this,h),g(l,h),l.options=l.options?g(l.options,h):h,h.group&&delete l.group,h.dataLabels&&delete l.dataLabels,b&&(l.y=S.prototype.getNestedProperty.call(l,b)),l.isNull=this.isValid&&!this.isValid(),l.formatPrefix=l.isNull?"null":"point",l.selected&&(l.state="select"),"name"in l&&typeof n>"u"&&f.xAxis&&f.xAxis.hasNames&&(l.x=f.xAxis.nameToX(l)),typeof l.x>"u"&&f?typeof n>"u"?l.x=f.autoIncrement():l.x=n:C(h.x)&&f.options.relativeXValue&&(l.x=f.autoIncrement(h.x)),l}destroy(){if(!this.destroyed){const h=this,n=h.series,l=n.chart,f=n.options.dataSorting,b=l.hoverPoints,v=h.series.chart.renderer.globalAnimation,G=w(v),U=()=>{(h.graphic||h.graphics||h.dataLabel||h.dataLabels)&&(B(h),h.destroyElements());for(const D in h)delete h[D]};h.legendItem&&l.legend.destroyItem(h),b&&(h.setState(),p(b,h),b.length||(l.hoverPoints=null)),h===l.hoverPoint&&h.onMouseOut(),!f||!f.enabled?U():(this.animateBeforeDestroy(),m(U,G.duration)),l.pointCount--}this.destroyed=!0}destroyElements(h){const n=this,l=n.getGraphicalProps(h);l.singular.forEach(function(f){n[f]=n[f].destroy()}),l.plural.forEach(function(f){n[f].forEach(function(b){b&&b.element&&b.destroy()}),delete n[f]})}firePointEvent(h,n,l){const f=this,b=this.series,v=b.options;(v.point.events[h]||f.options&&f.options.events&&f.options.events[h])&&f.importEvents(),h==="click"&&v.allowPointSelect&&(l=function(G){f.select&&f.select(null,G.ctrlKey||G.metaKey||G.shiftKey)}),O(f,h,n,l)}getClassName(){const h=this;return"highcharts-point"+(h.selected?" highcharts-point-select":"")+(h.negative?" highcharts-negative":"")+(h.isNull?" highcharts-null-point":"")+(typeof h.colorIndex<"u"?" highcharts-color-"+h.colorIndex:"")+(h.options.className?" "+h.options.className:"")+(h.zone&&h.zone.className?" "+h.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(h){const n=this,l=[],f={singular:[],plural:[]};let b,v;for(h=h||{graphic:1,dataLabel:1},h.graphic&&l.push("graphic"),h.dataLabel&&l.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),v=l.length;v--;)b=l[v],n[b]&&f.singular.push(b);return["graphic","dataLabel","connector"].forEach(function(G){const U=G+"s";h[G]&&n[U]&&f.plural.push(U)}),f}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(h){if(h)return h.indexOf("custom.")===0?M(h,this.options):this[h]}getZone(){const h=this.series,n=h.zones,l=h.zoneAxis||"y";let f,b=0;for(f=n[b];this[l]>=f.value;)f=n[++b];return this.nonZonedColor||(this.nonZonedColor=this.color),f&&f.color&&!this.options.color?this.color=f.color:this.color=this.nonZonedColor,f}hasNewShapeType(){const h=this;return(h.graphic&&(h.graphic.symbolName||h.graphic.element.nodeName))!==this.shapeType}init(h,n,l){return this.series=h,this.applyOptions(n,l),this.id=A(this.id)?this.id:T(),this.resolveColor(),h.chart.pointCount++,O(this,"afterInit"),this}isValid(){return this.x!==null&&C(this.y)}optionsToObject(h){const n=this.series,l=n.options.keys,f=l||n.pointArrayMap||["y"],b=f.length;let v={},G,U=0,D=0;if(C(h)||h===null)v[f[0]]=h;else if(_(h))for(!l&&h.length>b&&(G=typeof h[0],G==="string"?v.name=h[0]:G==="number"&&(v.x=h[0]),U++);D<b;)(!l||typeof h[U]<"u")&&(f[D].indexOf(".")>0?S.prototype.setNestedProperty(v,h[U],f[D]):v[f[D]]=h[U]),U++,D++;else typeof h=="object"&&(v=h,h.dataLabels&&(n._hasPointLabels=!0),h.marker&&(n._hasPointMarkers=!0));return v}pos(h,n=this.plotY){if(!this.destroyed){const{plotX:l,series:f}=this,{chart:b,xAxis:v,yAxis:G}=f;let U=0,D=0;if(C(l)&&C(n))return h&&(U=v?v.pos:b.plotLeft,D=G?G.pos:b.plotTop),b.inverted&&v&&G?[G.len-n+D,v.len-l+U]:[l+U,n+D]}}resolveColor(){const h=this.series,n=h.chart.options.chart,l=h.chart.styledMode;let f,b,v=n.colorCount,G;delete this.nonZonedColor,h.options.colorByPoint?(l||(b=h.options.colors||h.chart.options.colors,f=b[h.colorCounter],v=b.length),G=h.colorCounter,h.colorCounter++,h.colorCounter===v&&(h.colorCounter=0)):(l||(f=h.color),G=h.colorIndex),this.colorIndex=I(this.options.colorIndex,G),this.color=I(this.options.color,f)}setNestedProperty(h,n,l){return l.split(".").reduce(function(b,v,G,U){const D=U.length-1===G;return b[v]=D?n:k(b[v],!0)?b[v]:{},b[v]},h),h}shouldDraw(){return!this.isNull}tooltipFormatter(h){const n=this.series,l=n.tooltipOptions,f=I(l.valueDecimals,""),b=l.valuePrefix||"",v=l.valueSuffix||"";return n.chart.styledMode&&(h=n.chart.tooltip.styledModeFormat(h)),(n.pointArrayMap||["y"]).forEach(function(G){G="{point."+G,(b||v)&&(h=h.replace(RegExp(G+"}","g"),b+G+"}"+v)),h=h.replace(RegExp(G+"}","g"),G+":,."+f+"f}")}),L(h,{point:this,series:this.series},n.chart)}update(h,n,l,f){const b=this,v=b.series,G=b.graphic,U=v.chart,D=v.options;let H;n=I(n,!0);function z(){b.applyOptions(h);const W=G&&b.hasMockGraphic,d=b.y===null?!W:W;G&&d&&(b.graphic=G.destroy(),delete b.hasMockGraphic),k(h,!0)&&(G&&G.element&&h&&h.marker&&typeof h.marker.symbol<"u"&&(b.graphic=G.destroy()),h&&h.dataLabels&&b.dataLabel&&(b.dataLabel=b.dataLabel.destroy()),b.connector&&(b.connector=b.connector.destroy())),H=b.index,v.updateParallelArrays(b,H),D.data[H]=k(D.data[H],!0)||k(h,!0)?b.options:I(h,D.data[H]),v.isDirty=v.isDirtyData=!0,!v.fixedBox&&v.hasCartesianSeries&&(U.isDirtyBox=!0),D.legendType==="point"&&(U.isDirtyLegend=!0),n&&U.redraw(l)}f===!1?z():b.firePointEvent("update",{options:h},z)}remove(h,n){this.series.removePoint(this.series.data.indexOf(this),h,n)}select(h,n){const l=this,f=l.series,b=f.chart;h=I(h,!l.selected),this.selectedStaging=h,l.firePointEvent(h?"select":"unselect",{accumulate:n},function(){l.selected=l.options.selected=h,f.options.data[f.data.indexOf(l)]=l.options,l.setState(h&&"select"),n||b.getSelectedPoints().forEach(function(v){const G=v.series;v.selected&&v!==l&&(v.selected=v.options.selected=!1,G.options.data[G.data.indexOf(v)]=v.options,v.setState(b.hoverPoints&&G.options.inactiveOtherPoints?"inactive":""),v.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(h){const n=this,l=n.series,f=l.chart,b=f.pointer;h=h?b.normalize(h):b.getChartCoordinatesFromPoint(n,f.inverted),b.runPointActions(h,n)}onMouseOut(){const h=this,n=h.series.chart;h.firePointEvent("mouseOut"),h.series.options.inactiveOtherPoints||(n.hoverPoints||[]).forEach(function(l){l.setState()}),n.hoverPoints=n.hoverPoint=null}importEvents(){if(!this.hasImportedEvents){const h=this,n=F(h.series.options.point,h.options),l=n.events;h.events=l,P(l,function(f,b){j(f)&&N(h,b,f)}),this.hasImportedEvents=!0}}setState(h,n){const l=this,f=l.series,b=l.state,v=f.options.states[h||"normal"]||{},G=y.plotOptions[f.type].marker&&f.options.marker,U=G&&G.enabled===!1,D=G&&G.states&&G.states[h||"normal"]||{},H=D.enabled===!1,z=l.marker||{},W=f.chart,d=G&&f.markerAttribs;let R=f.halo,q,J,Y,ee=f.stateMarkerGraphic,E;if(h=h||"",h===l.state&&!n||l.selected&&h!=="select"||v.enabled===!1||h&&(H||U&&D.enabled===!1)||h&&z.states&&z.states[h]&&z.states[h].enabled===!1)return;if(l.state=h,d&&(q=f.markerAttribs(l,h)),l.graphic&&!l.hasMockGraphic){if(b&&l.graphic.removeClass("highcharts-point-"+b),h&&l.graphic.addClass("highcharts-point-"+h),!W.styledMode){J=f.pointAttribs(l,h),Y=I(W.options.chart.animation,v.animation);const se=J.opacity;f.options.inactiveOtherPoints&&C(se)&&((l.dataLabels||[]).forEach(function(K){K&&!K.hasClass("highcharts-data-label-hidden")&&K.animate({opacity:se},Y)}),l.connector&&l.connector.animate({opacity:se},Y)),l.graphic.animate(J,Y)}q&&l.graphic.animate(q,I(W.options.chart.animation,D.animation,G.animation)),ee&&ee.hide()}else h&&D&&(E=z.symbol||f.symbol,ee&&ee.currentSymbol!==E&&(ee=ee.destroy()),q&&(ee?ee[n?"animate":"attr"]({x:q.x,y:q.y}):E&&(f.stateMarkerGraphic=ee=W.renderer.symbol(E,q.x,q.y,q.width,q.height).add(f.markerGroup),ee.currentSymbol=E)),!W.styledMode&&ee&&l.state!=="inactive"&&ee.attr(f.pointAttribs(l,h))),ee&&(ee[h&&l.isInside?"show":"hide"](),ee.element.point=l,ee.addClass(l.getClassName(),!0));const V=v.halo,X=l.graphic||ee,Q=X&&X.visibility||"inherit";V&&V.size&&X&&Q!=="hidden"&&!l.isCluster?(R||(f.halo=R=W.renderer.path().add(X.parentGroup)),R.show()[n?"animate":"attr"]({d:l.haloPath(V.size)}),R.attr({class:"highcharts-halo highcharts-color-"+I(l.colorIndex,f.colorIndex)+(l.className?" "+l.className:""),visibility:Q,zIndex:-1}),R.point=l,W.styledMode||R.attr(g({fill:l.color||f.color,"fill-opacity":V.opacity},i.filterUserAttributes(V.attributes||{})))):R&&R.point&&R.point.haloPath&&R.animate({d:R.point.haloPath(0)},null,R.hide),O(l,"afterSetState",{state:h})}haloPath(h){const n=this.pos();return n?this.series.chart.renderer.symbols.circle(Math.floor(n[0])-h,n[1]-h,h*2,h*2):[]}}return S}),a(t,"Core/Pointer.js",[t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,o){const{parse:c}=i,{charts:u,noop:w}=s,{addEvent:y,attr:L,css:N,defined:A,extend:p,find:g,fireEvent:O,isNumber:M,isObject:_,objectEach:j,offset:C,pick:k,splat:F}=o;class P{constructor(m,B){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=m,this.hasDragged=!1,this.options=B,this.init(m,B)}applyInactiveState(m){let B=[],T;(m||[]).forEach(function(S){T=S.series,B.push(T),T.linkedParent&&B.push(T.linkedParent),T.linkedSeries&&(B=B.concat(T.linkedSeries)),T.navigatorSeries&&B.push(T.navigatorSeries)}),this.chart.series.forEach(function(S){B.indexOf(S)===-1?S.setState("inactive",!0):S.options.inactiveOtherPoints&&S.setAllPointsToState("inactive")})}destroy(){const m=this;this.eventsToUnbind.forEach(B=>B()),this.eventsToUnbind=[],s.chartCount||(P.unbindDocumentMouseUp&&(P.unbindDocumentMouseUp=P.unbindDocumentMouseUp()),P.unbindDocumentTouchEnd&&(P.unbindDocumentTouchEnd=P.unbindDocumentTouchEnd())),clearInterval(m.tooltipTimeout),j(m,function(B,T){m[T]=void 0})}getSelectionMarkerAttrs(m,B){const T={args:{chartX:m,chartY:B},attrs:{},shapeType:"rect"};return O(this,"getSelectionMarkerAttrs",T,S=>{const{chart:x,mouseDownX:h=0,mouseDownY:n=0,zoomHor:l,zoomVert:f}=this,b=S.attrs;let v;b.x=x.plotLeft,b.y=x.plotTop,b.width=l?1:x.plotWidth,b.height=f?1:x.plotHeight,l&&(v=m-h,b.width=Math.abs(v),b.x=(v>0?0:v)+h),f&&(v=B-n,b.height=Math.abs(v),b.y=(v>0?0:v)+n)}),T}drag(m){const B=this.chart,T=B.options.chart,S=B.plotLeft,x=B.plotTop,h=B.plotWidth,n=B.plotHeight,l=this.mouseDownX||0,f=this.mouseDownY||0,b=_(T.panning)?T.panning&&T.panning.enabled:T.panning,v=T.panKey&&m[T.panKey+"Key"];let G=m.chartX,U=m.chartY,D,H=this.selectionMarker;if(!(H&&H.touch)&&(G<S?G=S:G>S+h&&(G=S+h),U<x?U=x:U>x+n&&(U=x+n),this.hasDragged=Math.sqrt(Math.pow(l-G,2)+Math.pow(f-U,2)),this.hasDragged>10)){D=B.isInsidePlot(l-S,f-x,{visiblePlotOnly:!0});const{shapeType:z,attrs:W}=this.getSelectionMarkerAttrs(G,U);(B.hasCartesianSeries||B.mapView)&&(this.zoomX||this.zoomY)&&D&&!v&&(H||(this.selectionMarker=H=B.renderer[z](),H.attr({class:"highcharts-selection-marker",zIndex:7}).add(),B.styledMode||H.attr({fill:T.selectionMarkerFill||c("#334eff").setOpacity(.25).get()}))),H&&H.attr(W),D&&!H&&b&&B.pan(m,T.panning)}}dragStart(m){const B=this.chart;B.mouseIsDown=m.type,B.cancelClick=!1,B.mouseDownX=this.mouseDownX=m.chartX,B.mouseDownY=this.mouseDownY=m.chartY}getSelectionBox(m){const B={args:{marker:m},result:{}};return O(this,"getSelectionBox",B,T=>{T.result={x:m.attr?+m.attr("x"):m.x,y:m.attr?+m.attr("y"):m.y,width:m.attr?m.attr("width"):m.width,height:m.attr?m.attr("height"):m.height}}),B.result}drop(m){const B=this,T=this.chart,S=this.hasPinched;if(this.selectionMarker){const{x,y:h,width:n,height:l}=this.getSelectionBox(this.selectionMarker),f={originalEvent:m,xAxis:[],yAxis:[],x,y:h,width:n,height:l};T.mapView,(this.hasDragged||S)&&(T.axes.forEach(function(b){if(b.zoomEnabled&&A(b.min)&&(S||B[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])&&M(x)&&M(h)&&M(n)&&M(l)){const v=b.horiz,G=m.type==="touchend"?b.minPixelPadding:0,U=b.toValue((v?x:h)+G),D=b.toValue((v?x+n:h+l)-G);f[b.coll].push({axis:b,min:Math.min(U,D),max:Math.max(U,D)})}}),console.log("放大",T,f),T.zoomBool==!1||T.zoomBool==null?O(T,"selection",f,function(b){T.zoom(p(b,S?{animation:!1}:null))}):O(T,"selection",f)),M(T.index)&&(this.selectionMarker=this.selectionMarker.destroy()),S&&this.scaleGroups()}T&&M(T.index)&&(N(T.container,{cursor:T._cursor}),T.cancelClick=this.hasDragged>10,T.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}findNearestKDPoint(m,B,T){let S;function x(h,n){const l=h.distX-n.distX,f=h.dist-n.dist,b=(n.series.group&&n.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);let v;return l!==0&&B?v=l:f!==0?v=f:b!==0?v=b:v=h.series.index>n.series.index?-1:1,v}return m.forEach(function(h){const n=h.noSharedTooltip&&B,l=!n&&h.options.findNearestPointBy.indexOf("y")<0,f=h.searchPoint(T,l);_(f,!0)&&f.series&&(!_(S,!0)||x(S,f)>0)&&(S=f)}),S}getChartCoordinatesFromPoint(m,B){const T=m.series,S=T.xAxis,x=T.yAxis,h=m.shapeArgs;if(S&&x){let n=k(m.clientX,m.plotX),l=m.plotY||0;return m.isNode&&h&&M(h.x)&&M(h.y)&&(n=h.x,l=h.y),B?{chartX:x.len+x.pos-l,chartY:S.len+S.pos-n}:{chartX:n+S.pos,chartY:l+x.pos}}if(h&&h.x&&h.y)return{chartX:h.x,chartY:h.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;const{container:m}=this.chart,B=C(m);this.chartPosition={left:B.left,top:B.top,scaleX:1,scaleY:1};const T=m.offsetWidth,S=m.offsetHeight;return T>2&&S>2&&(this.chartPosition.scaleX=B.width/T,this.chartPosition.scaleY=B.height/S),this.chartPosition}getCoordinates(m){const B={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(T){B[T.isXAxis?"xAxis":"yAxis"].push({axis:T,value:T.toValue(m[T.horiz?"chartX":"chartY"])})}),B}getHoverData(m,B,T,S,x,h){const n=[],l=!!(S&&m),f=function(H){return H.visible&&!(!x&&H.directTouch)&&k(H.options.enableMouseTracking,!0)};let b=B,v,G={chartX:h?h.chartX:void 0,chartY:h?h.chartY:void 0,shared:x};O(this,"beforeGetHoverData",G),v=b&&!b.stickyTracking?[b]:T.filter(H=>H.stickyTracking&&(G.filter||f)(H));const D=l||!h?m:this.findNearestKDPoint(v,x,h);return b=D&&D.series,D&&(x&&!b.noSharedTooltip?(v=T.filter(function(H){return G.filter?G.filter(H):f(H)&&!H.noSharedTooltip}),v.forEach(function(H){let z=g(H.points,function(W){return W.x===D.x&&!W.isNull});_(z)&&(H.boosted&&H.boost&&(z=H.boost.getPoint(z)),n.push(z))})):n.push(D)),G={hoverPoint:D},O(this,"afterGetHoverData",G),{hoverPoint:G.hoverPoint,hoverSeries:b,hoverPoints:n}}getPointFromEvent(m){let B=m.target,T;for(;B&&!T;)T=B.point,B=B.parentNode;return T}onTrackerMouseOut(m){const B=this.chart,T=m.relatedTarget,S=B.hoverSeries;this.isDirectTouch=!1,S&&T&&!S.stickyTracking&&!this.inClass(T,"highcharts-tooltip")&&(!this.inClass(T,"highcharts-series-"+S.index)||!this.inClass(T,"highcharts-tracker"))&&S.onMouseOut()}inClass(m,B){let T=m,S;for(;T;){if(S=L(T,"class"),S){if(S.indexOf(B)!==-1)return!0;if(S.indexOf("highcharts-container")!==-1)return!1}T=T.parentElement}}init(m,B){this.options=B,this.chart=m,this.runChartClick=!!(B.chart.events&&B.chart.events.click),this.pinchDown=[],this.lastValidTouch={},this.setDOMEvents(),O(this,"afterInit")}normalize(m,B){const T=m.touches,S=T?T.length?T.item(0):k(T.changedTouches,m.changedTouches)[0]:m;B||(B=this.getChartPosition());let x=S.pageX-B.left,h=S.pageY-B.top;return x/=B.scaleX,h/=B.scaleY,p(m,{chartX:Math.round(x),chartY:Math.round(h)})}onContainerClick(m){const B=this.chart,T=B.hoverPoint,S=this.normalize(m),x=B.plotLeft,h=B.plotTop;B.cancelClick||(T&&this.inClass(S.target,"highcharts-tracker")?(O(T.series,"click",p(S,{point:T})),B.hoverPoint&&T.firePointEvent("click",S)):(p(S,this.getCoordinates(S)),B.isInsidePlot(S.chartX-x,S.chartY-h,{visiblePlotOnly:!0})&&O(B,"click",S)))}onContainerMouseDown(m){const B=((m.buttons||m.button)&1)===1;m=this.normalize(m),s.isFirefox&&m.button!==0&&this.onContainerMouseMove(m),(typeof m.button>"u"||B)&&(this.zoomOption(m),B&&m.preventDefault&&m.preventDefault(),this.dragStart(m))}onContainerMouseLeave(m){const B=u[k(P.hoverChartIndex,-1)];m=this.normalize(m),B&&m.relatedTarget&&!this.inClass(m.relatedTarget,"highcharts-tooltip")&&(B.pointer.reset(),B.pointer.chartPosition=void 0)}onContainerMouseEnter(m){delete this.chartPosition}onContainerMouseMove(m){const B=this.chart,T=B.tooltip,S=this.normalize(m);this.setHoverChartIndex(),(B.mouseIsDown==="mousedown"||this.touchSelect(S))&&this.drag(S),!B.openMenu&&(this.inClass(S.target,"highcharts-tracker")||B.isInsidePlot(S.chartX-B.plotLeft,S.chartY-B.plotTop,{visiblePlotOnly:!0}))&&!(T&&T.shouldStickOnContact(S))&&(this.inClass(S.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(S))}onDocumentTouchEnd(m){const B=u[k(P.hoverChartIndex,-1)];B&&B.pointer.drop(m)}onContainerTouchMove(m){this.touchSelect(m)?this.onContainerMouseMove(m):this.touch(m)}onContainerTouchStart(m){this.touchSelect(m)?this.onContainerMouseDown(m):(this.zoomOption(m),this.touch(m,!0))}onDocumentMouseMove(m){const B=this.chart,T=B.tooltip,S=this.chartPosition,x=this.normalize(m,S);S&&!B.isInsidePlot(x.chartX-B.plotLeft,x.chartY-B.plotTop,{visiblePlotOnly:!0})&&!(T&&T.shouldStickOnContact(x))&&!this.inClass(x.target,"highcharts-tracker")&&this.reset()}onDocumentMouseUp(m){const B=u[k(P.hoverChartIndex,-1)];B&&B.pointer.drop(m)}pinch(m){const B=this,T=B.chart,S=B.pinchDown,x=m.touches||[],h=x.length,n=B.lastValidTouch,l=B.hasZoom,f={},b=h===1&&(B.inClass(m.target,"highcharts-tracker")&&T.runTrackerClick||B.runChartClick),v={},G=B.chart.tooltip,U=h===1&&k(G&&G.options.followTouchMove,!0);let D=B.selectionMarker;h>1?B.initiated=!0:U&&(B.initiated=!1),l&&B.initiated&&!b&&m.cancelable!==!1&&m.preventDefault(),[].map.call(x,function(H){return B.normalize(H)}),m.type==="touchstart"?([].forEach.call(x,function(H,z){S[z]={chartX:H.chartX,chartY:H.chartY}}),n.x=[S[0].chartX,S[1]&&S[1].chartX],n.y=[S[0].chartY,S[1]&&S[1].chartY],T.axes.forEach(function(H){if(H.zoomEnabled){const z=T.bounds[H.horiz?"h":"v"],W=H.minPixelPadding,d=H.toPixels(Math.min(k(H.options.min,H.dataMin),H.dataMin)),R=H.toPixels(Math.max(k(H.options.max,H.dataMax),H.dataMax)),q=Math.min(d,R),J=Math.max(d,R);z.min=Math.min(H.pos,q-W),z.max=Math.max(H.pos+H.len,J+W)}}),B.res=!0):U?this.runPointActions(B.normalize(m)):S.length&&(O(T,"touchpan",{originalEvent:m},()=>{D||(B.selectionMarker=D=p({destroy:w,touch:!0},T.plotBox)),B.pinchTranslate(S,x,f,D,v,n),B.hasPinched=l,B.scaleGroups(f,v)}),B.res&&(B.res=!1,this.reset(!1,0)))}pinchTranslate(m,B,T,S,x,h){this.zoomHor&&this.pinchTranslateDirection(!0,m,B,T,S,x,h),this.zoomVert&&this.pinchTranslateDirection(!1,m,B,T,S,x,h)}pinchTranslateDirection(m,B,T,S,x,h,n,l){const f=this.chart,b=m?"x":"y",v=m?"X":"Y",G="chart"+v,U=m?"width":"height",D=f["plot"+(m?"Left":"Top")],H=f.inverted,z=f.bounds[m?"h":"v"],W=B.length===1,d=B[0][G],R=!W&&B[1][G],q=function(){typeof X=="number"&&Math.abs(d-R)>20&&(E=l||Math.abs(V-X)/Math.abs(d-R)),ee=(D-V)/E+d,J=f["plot"+(m?"Width":"Height")]/E};let J,Y,ee,E=l||1,V=T[0][G],X=!W&&T[1][G],Q;q(),Y=ee,Y<z.min?(Y=z.min,Q=!0):Y+J>z.max&&(Y=z.max-J,Q=!0),Q?(V-=.8*(V-n[b][0]),typeof X=="number"&&(X-=.8*(X-n[b][1])),q()):n[b]=[V,X],H||(h[b]=ee-D,h[U]=J);const se=H?m?"scaleY":"scaleX":"scale"+v,K=H?1/E:E;x[U]=J,x[b]=Y,S[se]=E,S["translate"+v]=K*D+(V-K*d)}reset(m,B){const T=this,S=T.chart,x=S.hoverSeries,h=S.hoverPoint,n=S.hoverPoints,l=S.tooltip,f=l&&l.shared?n:h;m&&f&&F(f).forEach(function(b){b.series.isCartesian&&typeof b.plotX>"u"&&(m=!1)}),m?l&&f&&F(f).length&&(l.refresh(f),l.shared&&n?n.forEach(function(b){b.setState(b.state,!0),b.series.isCartesian&&(b.series.xAxis.crosshair&&b.series.xAxis.drawCrosshair(null,b),b.series.yAxis.crosshair&&b.series.yAxis.drawCrosshair(null,b))}):h&&(h.setState(h.state,!0),S.axes.forEach(function(b){b.crosshair&&h.series[b.coll]===b&&b.drawCrosshair(null,h)}))):(h&&h.onMouseOut(),n&&n.forEach(function(b){b.setState()}),x&&x.onMouseOut(),l&&l.hide(B),T.unDocMouseMove&&(T.unDocMouseMove=T.unDocMouseMove()),S.axes.forEach(function(b){b.hideCrosshair()}),T.hoverX=S.hoverPoints=S.hoverPoint=null)}runPointActions(m,B,T){const S=this,x=S.chart,h=x.series,n=x.tooltip&&x.tooltip.options.enabled?x.tooltip:void 0,l=n?n.shared:!1;let f=B||x.hoverPoint,b=f&&f.series||x.hoverSeries;const v=(!m||m.type!=="touchmove")&&(!!B||b&&b.directTouch&&S.isDirectTouch),G=this.getHoverData(f,b,h,v,l,m);f=G.hoverPoint,b=G.hoverSeries;const U=G.hoverPoints,D=b&&b.tooltipOptions.followPointer&&!b.tooltipOptions.split,H=l&&b&&!b.noSharedTooltip;if(f&&(T||f!==x.hoverPoint||n&&n.isHidden)){if((x.hoverPoints||[]).forEach(function(z){U.indexOf(z)===-1&&z.setState()}),x.hoverSeries!==b&&b.onMouseOver(),S.applyInactiveState(U),(U||[]).forEach(function(z){z.setState("hover")}),x.hoverPoint&&x.hoverPoint.firePointEvent("mouseOut"),!f.series)return;x.hoverPoints=U,x.hoverPoint=f,f.firePointEvent("mouseOver",void 0,()=>{n&&f&&n.refresh(H?U:f,m)})}else if(D&&n&&!n.isHidden){const z=n.getAnchor([{}],m);x.isInsidePlot(z[0],z[1],{visiblePlotOnly:!0})&&n.updatePosition({plotX:z[0],plotY:z[1]})}S.unDocMouseMove||(S.unDocMouseMove=y(x.container.ownerDocument,"mousemove",function(z){const W=u[P.hoverChartIndex];W&&W.pointer.onDocumentMouseMove(z)}),S.eventsToUnbind.push(S.unDocMouseMove)),x.axes.forEach(function(W){const d=k((W.crosshair||{}).snap,!0);let R;d&&(R=x.hoverPoint,(!R||R.series[W.coll]!==W)&&(R=g(U,q=>q.series&&q.series[W.coll]===W))),R||!d?W.drawCrosshair(m,R):W.hideCrosshair()})}scaleGroups(m,B){const T=this.chart;T.series.forEach(function(S){const x=m||S.getPlotBox();S.group&&(S.xAxis&&S.xAxis.zoomEnabled||T.mapView)&&(S.group.attr(x),S.markerGroup&&(S.markerGroup.attr(x),S.markerGroup.clip(B?T.clipRect:null)),S.dataLabelsGroup&&S.dataLabelsGroup.attr(x))}),T.clipRect.attr(B||T.clipBox)}setDOMEvents(){const m=this.chart.container,B=m.ownerDocument;m.onmousedown=this.onContainerMouseDown.bind(this),m.onmousemove=this.onContainerMouseMove.bind(this),m.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(y(m,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(y(m,"mouseleave",this.onContainerMouseLeave.bind(this))),P.unbindDocumentMouseUp||(P.unbindDocumentMouseUp=y(B,"mouseup",this.onDocumentMouseUp.bind(this)));let T=this.chart.renderTo.parentElement;for(;T&&T.tagName!=="BODY";)this.eventsToUnbind.push(y(T,"scroll",()=>{delete this.chartPosition})),T=T.parentElement;s.hasTouch&&(this.eventsToUnbind.push(y(m,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(y(m,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),P.unbindDocumentTouchEnd||(P.unbindDocumentTouchEnd=y(B,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(){const m=this.chart,B=s.charts[k(P.hoverChartIndex,-1)];B&&B!==m&&B.pointer.onContainerMouseLeave({relatedTarget:m.container}),(!B||!B.mouseIsDown)&&(P.hoverChartIndex=m.index)}touch(m,B){const T=this.chart;let S,x,h;this.setHoverChartIndex(),m.touches.length===1?(m=this.normalize(m),h=T.isInsidePlot(m.chartX-T.plotLeft,m.chartY-T.plotTop,{visiblePlotOnly:!0}),h&&!T.openMenu?(B&&this.runPointActions(m),m.type==="touchmove"&&(x=this.pinchDown,S=x[0]?Math.sqrt(Math.pow(x[0].chartX-m.chartX,2)+Math.pow(x[0].chartY-m.chartY,2))>=4:!1),k(S,!0)&&this.pinch(m)):B&&this.reset()):m.touches.length===2&&this.pinch(m)}touchSelect(m){return!!(this.chart.zooming.singleTouch&&m.touches&&m.touches.length===1)}zoomOption(m){const B=this.chart;B.options.chart;const T=B.inverted;let S=B.zooming.type||"",x,h;/touch/.test(m.type)&&(S=k(B.zooming.pinchType,S)),this.zoomX=x=/x/.test(S),this.zoomY=h=/y/.test(S),this.zoomHor=x&&!T||h&&T,this.zoomVert=h&&!T||x&&T,this.hasZoom=x||h}}return function(I){const m=[],B=[];function T(x){o.pushUnique(B,x)&&y(x,"beforeRender",function(){this.pointer=new I(this,this.options)})}I.compose=T;function S(){for(let x=0,h=m.length;x<h;++x)m[x]();m.length=0}I.dissolve=S}(P||(P={})),P}),a(t,"Core/Legend/Legend.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Series/Point.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w){const{animObject:y,setAnimation:L}=i,{format:N}=s,{marginNames:A}=o,{distribute:p}=u,{addEvent:g,createElement:O,css:M,defined:_,discardElement:j,find:C,fireEvent:k,isNumber:F,merge:P,pick:I,relativeLength:m,stableSort:B,syncTimeout:T}=w;class S{constructor(h,n){this.allItems=[],this.box=void 0,this.contentGroup=void 0,this.display=!1,this.group=void 0,this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=h,this.init(h,n)}init(h,n){this.chart=h,this.setOptions(n),n.enabled&&(this.render(),g(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),g(this.chart,"render",()=>{this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(h){const n=I(h.padding,8);this.options=h,this.chart.styledMode||(this.itemStyle=h.itemStyle,this.itemHiddenStyle=P(this.itemStyle,h.itemHiddenStyle)),this.itemMarginTop=h.itemMarginTop,this.itemMarginBottom=h.itemMarginBottom,this.padding=n,this.initialItemY=n-5,this.symbolWidth=I(h.symbolWidth,16),this.pages=[],this.proximate=h.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(h,n){const l=this.chart;this.setOptions(P(!0,this.options,h)),this.destroy(),l.isDirtyLegend=l.isDirtyBox=!0,I(n,!0)&&l.redraw(),k(this,"afterUpdate")}colorizeItem(h,n){const{group:l,label:f,line:b,symbol:v}=h.legendItem||{};if(l&&l[n?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){const{itemHiddenStyle:G}=this,U=G.color,D=n&&h.color||U,H=h.options&&h.options.marker;let z={fill:D};f==null||f.css(P(n?this.itemStyle:G)),b==null||b.attr({stroke:D}),v&&(H&&v.isMarker&&(z=h.pointAttribs(),n||(z.stroke=z.fill=U)),v.attr(z))}k(this,"afterColorizeItem",{item:h,visible:n})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(h){const n=this,{group:l,x:f=0,y:b=0}=h.legendItem||{},v=n.options,G=v.symbolPadding,U=!v.rtl,D=h.checkbox;if(l&&l.element){const H={translateX:U?f:n.legendWidth-f-2*G-4,translateY:b},z=()=>{k(this,"afterPositionItem",{item:h})};l[_(l.translateY)?"animate":"attr"](H,void 0,z)}D&&(D.x=f,D.y=b)}destroyItem(h){const n=h.checkbox,l=h.legendItem||{};for(const f of["group","label","line","symbol"])l[f]&&(l[f]=l[f].destroy());n&&j(n),h.legendItem=void 0}destroy(){const h=this;for(const n of this.getAllItems())this.destroyItem(n);for(const n of["clipRect","up","down","pager","nav","box","title","group"])h[n]&&(h[n]=h[n].destroy());this.display=null}positionCheckboxes(){const h=this.group&&this.group.alignAttr,n=this.clipHeight||this.legendHeight,l=this.titleHeight;let f;h&&(f=h.translateY,this.allItems.forEach(function(b){const v=b.checkbox;let G;v&&(G=f+l+v.y+(this.scrollOffset||0)+3,M(v,{left:h.translateX+b.checkboxOffset+v.x-20+"px",top:G+"px",display:this.proximate||G>f-6&&G<f+n-6?"":"none"}))},this))}renderTitle(){const h=this.options,n=this.padding,l=h.title;let f,b=0;l.text&&(this.title||(this.title=this.chart.renderer.label(l.text,n-3,n-4,void 0,void 0,void 0,h.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(l.style),this.title.add(this.group)),l.width||this.title.css({width:this.maxLegendWidth+"px"}),f=this.title.getBBox(),b=f.height,this.offsetWidth=f.width,this.contentGroup.attr({translateY:b})),this.titleHeight=b}setText(h){const n=this.options;h.legendItem.label.attr({text:n.labelFormat?N(n.labelFormat,h,this.chart):n.labelFormatter.call(h)})}renderItem(h){const n=this,l=h.legendItem=h.legendItem||{},f=n.chart,b=f.renderer,v=n.options,G=v.layout==="horizontal",U=n.symbolWidth,D=v.symbolPadding||0,H=n.itemStyle,z=n.itemHiddenStyle,W=G?I(v.itemDistance,20):0,d=!v.rtl,R=!h.series,q=!R&&h.series.drawLegendSymbol?h.series:h,J=q.options,Y=n.createCheckboxForItem&&J&&J.showCheckbox,ee=v.useHTML,E=h.options.className;let V=l.label,X=U+D+W+(Y?20:0);V||(l.group=b.g("legend-item").addClass("highcharts-"+q.type+"-series highcharts-color-"+h.colorIndex+(E?" "+E:"")+(R?" highcharts-series-"+h.index:"")).attr({zIndex:1}).add(n.scrollGroup),l.label=V=b.text("",d?U+D:-D,n.baseline||0,ee),f.styledMode||V.css(P(h.visible?H:z)),V.attr({align:d?"left":"right",zIndex:2}).add(l.group),n.baseline||(n.fontMetrics=b.fontMetrics(V),n.baseline=n.fontMetrics.f+3+n.itemMarginTop,V.attr("y",n.baseline),n.symbolHeight=I(v.symbolHeight,n.fontMetrics.f),v.squareSymbol&&(n.symbolWidth=I(v.symbolWidth,Math.max(n.symbolHeight,16)),X=n.symbolWidth+D+W+(Y?20:0),d&&V.attr("x",n.symbolWidth+D))),q.drawLegendSymbol(n,h),n.setItemEvents&&n.setItemEvents(h,V,ee)),Y&&!h.checkbox&&n.createCheckboxForItem&&n.createCheckboxForItem(h),n.colorizeItem(h,h.visible),(f.styledMode||!H.width)&&V.css({width:(v.itemWidth||n.widthOption||f.spacingBox.width)-X+"px"}),n.setText(h);const Q=V.getBBox(),se=n.fontMetrics&&n.fontMetrics.h||0;h.itemWidth=h.checkboxOffset=v.itemWidth||l.labelWidth||Q.width+X,n.maxItemWidth=Math.max(n.maxItemWidth,h.itemWidth),n.totalItemWidth+=h.itemWidth,n.itemHeight=h.itemHeight=Math.round(l.labelHeight||(Q.height>se*1.5?Q.height:se))}layoutItem(h){const n=this.options,l=this.padding,f=n.layout==="horizontal",b=h.itemHeight,v=this.itemMarginBottom,G=this.itemMarginTop,U=f?I(n.itemDistance,20):0,D=this.maxLegendWidth,H=n.alignColumns&&this.totalItemWidth>D?this.maxItemWidth:h.itemWidth,z=h.legendItem||{};f&&this.itemX-l+H>D&&(this.itemX=l,this.lastLineHeight&&(this.itemY+=G+this.lastLineHeight+v),this.lastLineHeight=0),this.lastItemY=G+this.itemY+v,this.lastLineHeight=Math.max(b,this.lastLineHeight),z.x=this.itemX,z.y=this.itemY,f?this.itemX+=H:(this.itemY+=G+b+v,this.lastLineHeight=b),this.offsetWidth=this.widthOption||Math.max((f?this.itemX-l-(h.checkbox?0:U):H)+l,this.offsetWidth)}getAllItems(){let h=[];return this.chart.series.forEach(function(n){const l=n&&n.options;n&&I(l.showInLegend,_(l.linkedTo)?!1:void 0,!0)&&(h=h.concat((n.legendItem||{}).labels||(l.legendType==="point"?n.data:n)))}),k(this,"afterGetAllItems",{allItems:h}),h}getAlignment(){const h=this.options;return this.proximate?h.align.charAt(0)+"tv":h.floating?"":h.align.charAt(0)+h.verticalAlign.charAt(0)+h.layout.charAt(0)}adjustMargins(h,n){const l=this.chart,f=this.options,b=this.getAlignment();b&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(v,G){v.test(b)&&!_(h[G])&&(l[A[G]]=Math.max(l[A[G]],l.legend[(G+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][G]*f[G%2?"x":"y"]+I(f.margin,12)+n[G]+(l.titleOffset[G]||0)))})}proximatePositions(){const h=this.chart,n=[],l=this.options.align==="left";this.allItems.forEach(function(b){let v,G,U=l,D,H;b.yAxis&&(b.xAxis.options.reversed&&(U=!U),b.points&&(v=C(U?b.points:b.points.slice(0).reverse(),function(z){return F(z.plotY)})),G=this.itemMarginTop+b.legendItem.label.getBBox().height+this.itemMarginBottom,H=b.yAxis.top-h.plotTop,b.visible?(D=v?v.plotY:b.yAxis.height,D+=H-.3*G):D=H+b.yAxis.height,n.push({target:D,size:G,item:b}))},this);let f;for(const b of p(n,h.plotHeight))f=b.item.legendItem||{},F(b.pos)&&(f.y=h.plotTop-h.spacing[0]+b.pos)}render(){const h=this,n=h.chart,l=n.renderer,f=h.options,b=h.padding,v=h.getAllItems();let G,U,D,H=h.group,z,W=h.box;h.itemX=b,h.itemY=h.initialItemY,h.offsetWidth=0,h.lastItemY=0,h.widthOption=m(f.width,n.spacingBox.width-b),z=n.spacingBox.width-2*b-f.x,["rm","lm"].indexOf(h.getAlignment().substring(0,2))>-1&&(z/=2),h.maxLegendWidth=h.widthOption||z,H||(h.group=H=l.g("legend").addClass(f.className||"").attr({zIndex:7}).add(),h.contentGroup=l.g().attr({zIndex:1}).add(H),h.scrollGroup=l.g().add(h.contentGroup)),h.renderTitle(),B(v,(d,R)=>(d.options&&d.options.legendIndex||0)-(R.options&&R.options.legendIndex||0)),f.reversed&&v.reverse(),h.allItems=v,h.display=G=!!v.length,h.lastLineHeight=0,h.maxItemWidth=0,h.totalItemWidth=0,h.itemHeight=0,v.forEach(h.renderItem,h),v.forEach(h.layoutItem,h),U=(h.widthOption||h.offsetWidth)+b,D=h.lastItemY+h.lastLineHeight+h.titleHeight,D=h.handleOverflow(D),D+=b,W||(h.box=W=l.rect().addClass("highcharts-legend-box").attr({r:f.borderRadius}).add(H)),n.styledMode||W.attr({stroke:f.borderColor,"stroke-width":f.borderWidth||0,fill:f.backgroundColor||"none"}).shadow(f.shadow),U>0&&D>0&&W[W.placed?"animate":"attr"](W.crisp.call({},{x:0,y:0,width:U,height:D},W.strokeWidth())),H[G?"show":"hide"](),n.styledMode&&H.getStyle("display")==="none"&&(U=D=0),h.legendWidth=U,h.legendHeight=D,G&&h.align(),this.proximate||this.positionItems(),k(this,"afterRender")}align(h=this.chart.spacingBox){const n=this.chart,l=this.options;let f=h.y;/(lth|ct|rth)/.test(this.getAlignment())&&n.titleOffset[0]>0?f+=n.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&n.titleOffset[2]>0&&(f-=n.titleOffset[2]),f!==h.y&&(h=P(h,{y:f})),n.hasRendered||(this.group.placed=!1),this.group.align(P(l,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":l.verticalAlign}),!0,h)}handleOverflow(h){const n=this,l=this.chart,f=l.renderer,b=this.options,v=b.y,G=b.verticalAlign==="top",U=this.padding,D=b.maxHeight,H=b.navigation,z=I(H.animation,!0),W=H.arrowSize||12,d=this.pages,R=this.allItems,q=function(se){typeof se=="number"?Q.attr({height:se}):Q&&(n.clipRect=Q.destroy(),n.contentGroup.clip()),n.contentGroup.div&&(n.contentGroup.div.style.clip=se?"rect("+U+"px,9999px,"+(U+se)+"px,0)":"auto")},J=function(se){return n[se]=f.circle(0,0,W*1.3).translate(W/2,W/2).add(X),l.styledMode||n[se].attr("fill","rgba(0,0,0,0.0001)"),n[se]};let Y,ee,E,V=l.spacingBox.height+(G?-v:v)-U,X=this.nav,Q=this.clipRect;return b.layout==="horizontal"&&b.verticalAlign!=="middle"&&!b.floating&&(V/=2),D&&(V=Math.min(V,D)),d.length=0,h&&V>0&&h>V&&H.enabled!==!1?(this.clipHeight=Y=Math.max(V-20-this.titleHeight-U,0),this.currentPage=I(this.currentPage,1),this.fullHeight=h,R.forEach((se,K)=>{E=se.legendItem||{};const ne=E.y||0,oe=Math.round(E.label.getBBox().height);let le=d.length;(!le||ne-d[le-1]>Y&&(ee||ne)!==d[le-1])&&(d.push(ee||ne),le++),E.pageIx=le-1,ee&&((R[K-1].legendItem||{}).pageIx=le-1),K===R.length-1&&ne+oe-d[le-1]>Y&&ne>d[le-1]&&(d.push(ne),E.pageIx=le),ne!==ee&&(ee=ne)}),Q||(Q=n.clipRect=f.clipRect(0,U-2,9999,0),n.contentGroup.clip(Q)),q(Y),X||(this.nav=X=f.g().attr({zIndex:1}).add(this.group),this.up=f.symbol("triangle",0,0,W,W).add(X),J("upTracker").on("click",function(){n.scroll(-1,z)}),this.pager=f.text("",15,10).addClass("highcharts-legend-navigation"),!l.styledMode&&H.style&&this.pager.css(H.style),this.pager.add(X),this.down=f.symbol("triangle-down",0,0,W,W).add(X),J("downTracker").on("click",function(){n.scroll(1,z)})),n.scroll(0),h=V):X&&(q(),this.nav=X.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),h}scroll(h,n){const l=this.chart,f=this.pages,b=f.length,v=this.clipHeight,G=this.options.navigation,U=this.pager,D=this.padding;let H=this.currentPage+h;if(H>b&&(H=b),H>0){typeof n<"u"&&L(n,l),this.nav.attr({translateX:D,translateY:v+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(W){W.attr({class:H===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),U.attr({text:H+"/"+b}),[this.down,this.downTracker].forEach(function(W){W.attr({x:18+this.pager.getBBox().width,class:H===b?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),l.styledMode||(this.up.attr({fill:H===1?G.inactiveColor:G.activeColor}),this.upTracker.css({cursor:H===1?"default":"pointer"}),this.down.attr({fill:H===b?G.inactiveColor:G.activeColor}),this.downTracker.css({cursor:H===b?"default":"pointer"})),this.scrollOffset=-f[H-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=H,this.positionCheckboxes();const z=y(I(n,l.renderer.globalAnimation,!0));T(()=>{k(this,"afterScroll",{currentPage:H})},z.duration)}}setItemEvents(h,n,l){const f=this,b=h.legendItem||{},v=f.chart.renderer.boxWrapper,G=h instanceof c,U="highcharts-legend-"+(G?"point":"series")+"-active",D=f.chart.styledMode,H=l?[n,b.symbol]:[b.group],z=W=>{f.allItems.forEach(d=>{h!==d&&[d].concat(d.linkedSeries||[]).forEach(R=>{R.setState(W,!G)})})};for(const W of H)W&&W.on("mouseover",function(){h.visible&&z("inactive"),h.setState("hover"),h.visible&&v.addClass(U),D||n.css(f.options.itemHoverStyle)}).on("mouseout",function(){f.chart.styledMode||n.css(P(h.visible?f.itemStyle:f.itemHiddenStyle)),z(""),v.removeClass(U),h.setState()}).on("click",function(d){const R="legendItemClick",q=function(){h.setVisible&&h.setVisible(),z(h.visible?"inactive":"")};v.removeClass(U),d={browserEvent:d},h.firePointEvent?h.firePointEvent(R,d,q):k(h,R,d,q)})}createCheckboxForItem(h){const n=this;h.checkbox=O("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:h.selected,defaultChecked:h.selected},n.options.itemCheckboxStyle,n.chart.container),g(h.checkbox,"click",function(l){const f=l.target;k(h.series||h,"checkboxClick",{checked:f.checked,item:h},function(){h.select()})})}}return function(x){const h=[];function n(l){w.pushUnique(h,l)&&g(l,"beforeMargins",function(){this.legend=new x(this,this.options.legend)})}x.compose=n}(S||(S={})),S}),a(t,"Core/Legend/LegendSymbol.js",[t["Core/Utilities.js"]],function(i){const{extend:s,merge:o,pick:c}=i;var u;return function(w){function y(N,A){const p=this.legendItem=this.legendItem||{},g=this.options,O=N.symbolWidth,M=N.symbolHeight,_=M/2,j=this.chart.renderer,C=p.group,k=N.baseline-Math.round(N.fontMetrics.b*.3);let F={},P,I=g.marker,m=0;if(this.chart.styledMode||(F={"stroke-width":Math.min(g.lineWidth||0,24)},g.dashStyle?F.dashstyle=g.dashStyle:g.linecap!=="square"&&(F["stroke-linecap"]="round")),p.line=j.path().addClass("highcharts-graph").attr(F).add(C),F["stroke-linecap"]&&(m=Math.min(p.line.strokeWidth(),O)/2),O&&p.line.attr({d:[["M",m,k],["L",O-m,k]]}),I&&I.enabled!==!1&&O){let B=Math.min(c(I.radius,_),_);this.symbol.indexOf("url")===0&&(I=o(I,{width:M,height:M}),B=0),p.symbol=P=j.symbol(this.symbol,O/2-B,k-B,2*B,2*B,s({context:"legend"},I)).addClass("highcharts-point").add(C),P.isMarker=!0}}w.lineMarker=y;function L(N,A){const p=A.legendItem||{},g=N.options,O=N.symbolHeight,M=g.squareSymbol,_=M?O:N.symbolWidth;p.symbol=this.chart.renderer.rect(M?(N.symbolWidth-O)/2:0,N.baseline-O+1,_,O,c(N.options.symbolRadius,O/2)).addClass("highcharts-point").attr({zIndex:3}).add(p.group)}w.rectangle=L}(u||(u={})),u}),a(t,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:1,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){const{numberFormatter:s}=this.series.chart;return typeof this.y!="number"?"":s(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),a(t,"Core/Series/SeriesRegistry.js",[t["Core/Globals.js"],t["Core/Defaults.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],function(i,s,o,c){const{defaultOptions:u}=s,{extendClass:w,merge:y}=c;var L;return function(N){N.seriesTypes=i.seriesTypes;function A(g,O){const M=u.plotOptions||{},_=O.defaultOptions,j=O.prototype;j.type=g,j.pointClass||(j.pointClass=o),_&&(M[g]=_),N.seriesTypes[g]=O}N.registerSeriesType=A;function p(g,O,M,_,j){const C=u.plotOptions||{};return O=O||"",C[g]=y(C[O],M),A(g,w(N.seriesTypes[O]||function(){},_)),N.seriesTypes[g].prototype.type=g,j&&(N.seriesTypes[g].prototype.pointClass=w(o,j)),N.seriesTypes[g]}N.seriesType=p}(L||(L={})),L}),a(t,"Core/Series/Series.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Defaults.js"],t["Core/Foundation.js"],t["Core/Globals.js"],t["Core/Legend/LegendSymbol.js"],t["Core/Series/Point.js"],t["Core/Series/SeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w,y,L,N,A){const{animObject:p,setAnimation:g}=i,{defaultOptions:O}=s,{registerEventOptions:M}=o,{hasTouch:_,svg:j,win:C}=c,{seriesTypes:k}=L,{addEvent:F,arrayMax:P,arrayMin:I,clamp:m,correctFloat:B,defined:T,diffObjects:S,erase:x,error:h,extend:n,find:l,fireEvent:f,getClosestDistance:b,getNestedProperty:v,insertItem:G,isArray:U,isNumber:D,isString:H,merge:z,objectEach:W,pick:d,removeEvent:R,splat:q,syncTimeout:J}=A;class Y{constructor(){this._i=void 0,this.chart=void 0,this.data=void 0,this.eventOptions=void 0,this.eventsToUnbind=void 0,this.index=void 0,this.linkedSeries=void 0,this.options=void 0,this.points=void 0,this.processedXData=void 0,this.processedYData=void 0,this.tooltipOptions=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zones=void 0}init(E,V){f(this,"init",{options:V});const X=this,Q=E.series;this.eventsToUnbind=[],X.chart=E,X.options=X.setOptions(V);const se=X.options;X.linkedSeries=[],X.bindAxes(),n(X,{name:se.name,state:"",visible:se.visible!==!1,selected:se.selected===!0}),M(this,se);const K=se.events;(K&&K.click||se.point&&se.point.events&&se.point.events.click||se.allowPointSelect)&&(E.runTrackerClick=!0),X.getColor(),X.getSymbol(),X.parallelArrays.forEach(function(oe){X[oe+"Data"]||(X[oe+"Data"]=[])}),X.isCartesian&&(E.hasCartesianSeries=!0);let ne;Q.length&&(ne=Q[Q.length-1]),X._i=d(ne&&ne._i,-1)+1,X.opacity=X.options.opacity,E.orderItems("series",G(this,Q)),se.dataSorting&&se.dataSorting.enabled?X.setDataSortingOptions():!X.points&&!X.data&&X.setData(se.data,!1),f(this,"afterInit")}is(E){return k[E]&&this instanceof k[E]}bindAxes(){const E=this,V=E.options,X=E.chart;let Q;f(this,"bindAxes",null,function(){(E.axisTypes||[]).forEach(function(se){X[se].forEach(function(K){Q=K.options,(d(V[se],0)===K.index||typeof V[se]<"u"&&V[se]===Q.id)&&(G(E,K.series),E[se]=K,K.isDirty=!0)}),!E[se]&&E.optionalAxis!==se&&h(18,!0,X)})}),f(this,"afterBindAxes")}updateParallelArrays(E,V,X){const Q=E.series,se=D(V)?function(K){const ne=K==="y"&&Q.toYData?Q.toYData(E):E[K];Q[K+"Data"][V]=ne}:function(K){Array.prototype[V].apply(Q[K+"Data"],X)};Q.parallelArrays.forEach(se)}hasData(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&this.yData.length>0}autoIncrement(E){const V=this.options,X=V.pointIntervalUnit,Q=V.relativeXValue,se=this.chart.time;let K=this.xIncrement,ne,oe;return K=d(K,V.pointStart,0),this.pointInterval=oe=d(this.pointInterval,V.pointInterval,1),Q&&D(E)&&(oe*=E),X&&(ne=new se.Date(K),X==="day"?se.set("Date",ne,se.get("Date",ne)+oe):X==="month"?se.set("Month",ne,se.get("Month",ne)+oe):X==="year"&&se.set("FullYear",ne,se.get("FullYear",ne)+oe),oe=ne.getTime()-K),Q&&D(E)?K+oe:(this.xIncrement=K+oe,K)}setDataSortingOptions(){const E=this.options;n(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),T(E.pointRange)||(E.pointRange=1)}setOptions(E){var V,X;const Q=this.chart,se=Q.options,K=se.plotOptions,ne=Q.userOptions||{},oe=z(E),le=Q.styledMode,ye={plotOptions:K,userOptions:oe};let te;f(this,"setOptions",ye);const re=ye.plotOptions[this.type],Z=ne.plotOptions||{},ie=Z.series||{},ae=O.plotOptions[this.type]||{},he=Z[this.type]||{};this.userOptions=ye.userOptions;const fe=z(re,K.series,he,oe);this.tooltipOptions=z(O.tooltip,(V=O.plotOptions.series)===null||V===void 0?void 0:V.tooltip,ae==null?void 0:ae.tooltip,Q.userOptions.tooltip,(X=Z.series)===null||X===void 0?void 0:X.tooltip,he.tooltip,oe.tooltip),this.stickyTracking=d(oe.stickyTracking,he.stickyTracking,ie.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:fe.stickyTracking),re.marker===null&&delete fe.marker,this.zoneAxis=fe.zoneAxis;const ve=this.zones=(fe.zones||[]).slice();return(fe.negativeColor||fe.negativeFillColor)&&!fe.zones&&(te={value:fe[this.zoneAxis+"Threshold"]||fe.threshold||0,className:"highcharts-negative"},le||(te.color=fe.negativeColor,te.fillColor=fe.negativeFillColor),ve.push(te)),ve.length&&T(ve[ve.length-1].value)&&ve.push(le?{}:{color:this.color,fillColor:this.fillColor}),f(this,"afterSetOptions",{options:fe}),fe}getName(){return d(this.options.name,"Series "+(this.index+1))}getCyclic(E,V,X){const Q=this.chart,se=`${E}Index`,K=`${E}Counter`,ne=(X==null?void 0:X.length)||Q.options.chart.colorCount;let oe,le;V||(le=d(E==="color"?this.options.colorIndex:void 0,this[se]),T(le)?oe=le:(Q.series.length||(Q[K]=0),oe=Q[K]%ne,Q[K]+=1),X&&(V=X[oe])),typeof oe<"u"&&(this[se]=oe),this[E]=V}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||O.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){const E=this.options.marker;this.getCyclic("symbol",E.symbol,this.chart.options.symbols)}findPointIndex(E,V){const X=E.id,Q=E.x,se=this.points,K=this.options.dataSorting;let ne,oe,le;if(X){const ye=this.chart.get(X);ye instanceof w&&(ne=ye)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let ye=te=>!te.touched&&te.index===E.index;if(K&&K.matchByName?ye=te=>!te.touched&&te.name===E.name:this.options.relativeXValue&&(ye=te=>!te.touched&&te.options.x===E.x),ne=l(se,ye),!ne)return}return ne&&(le=ne&&ne.index,typeof le<"u"&&(oe=!0)),typeof le>"u"&&D(Q)&&(le=this.xData.indexOf(Q,V)),le!==-1&&typeof le<"u"&&this.cropped&&(le=le>=this.cropStart?le-this.cropStart:le),!oe&&D(le)&&se[le]&&se[le].touched&&(le=void 0),le}updateData(E,V){const X=this.options,Q=X.dataSorting,se=this.points,K=[],ne=this.requireSorting,oe=E.length===se.length;let le,ye,te,re,Z=!0;if(this.xIncrement=null,E.forEach(function(ie,ae){const he=T(ie)&&this.pointClass.prototype.optionsToObject.call({series:this},ie)||{};let fe;const ve=he.x;he.id||D(ve)?(fe=this.findPointIndex(he,re),fe===-1||typeof fe>"u"?K.push(ie):se[fe]&&ie!==X.data[fe]?(se[fe].update(ie,!1,null,!1),se[fe].touched=!0,ne&&(re=fe+1)):se[fe]&&(se[fe].touched=!0),(!oe||ae!==fe||Q&&Q.enabled||this.hasDerivedData)&&(le=!0)):K.push(ie)},this),le)for(ye=se.length;ye--;)te=se[ye],te&&!te.touched&&te.remove&&te.remove(!1,V);else oe&&(!Q||!Q.enabled)?(E.forEach(function(ie,ae){ie!==se[ae].y&&!se[ae].destroyed&&se[ae].update(ie,!1,null,!1)}),K.length=0):Z=!1;return se.forEach(function(ie){ie&&(ie.touched=!1)}),Z?(K.forEach(function(ie){this.addPoint(ie,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=P(this.xData),this.autoIncrement()),!0):!1}setData(E,V=!0,X,Q){var se;const K=this,ne=K.points,oe=ne&&ne.length||0,le=K.options,ye=K.chart,te=le.dataSorting,re=K.xAxis,Z=le.turboThreshold,ie=this.xData,ae=this.yData,he=K.pointArrayMap,fe=he&&he.length,ve=le.keys;let ge,_e,be,Ce=0,De=1,Be=null,Le;ye.options.chart.allowMutatingData||(le.data&&delete K.options.data,K.userOptions.data&&delete K.userOptions.data,Le=z(!0,E)),E=Le||E||[];const Pe=E.length;if(te&&te.enabled&&(E=this.sortData(E)),ye.options.chart.allowMutatingData&&Q!==!1&&Pe&&oe&&!K.cropped&&!K.hasGroupedData&&K.visible&&!K.boosted&&(be=this.updateData(E,X)),!be){if(K.xIncrement=null,K.colorCounter=0,this.parallelArrays.forEach(function(Ue){K[Ue+"Data"].length=0}),Z&&Pe>Z)if(Be=K.getFirstValidPoint(E),D(Be))for(ge=0;ge<Pe;ge++)ie[ge]=this.autoIncrement(),ae[ge]=E[ge];else if(U(Be))if(fe)if(Be.length===fe)for(ge=0;ge<Pe;ge++)ie[ge]=this.autoIncrement(),ae[ge]=E[ge];else for(ge=0;ge<Pe;ge++)_e=E[ge],ie[ge]=_e[0],ae[ge]=_e.slice(1,fe+1);else if(ve&&(Ce=ve.indexOf("x"),De=ve.indexOf("y"),Ce=Ce>=0?Ce:0,De=De>=0?De:1),Be.length===1&&(De=0),Ce===De)for(ge=0;ge<Pe;ge++)ie[ge]=this.autoIncrement(),ae[ge]=E[ge][De];else for(ge=0;ge<Pe;ge++)_e=E[ge],ie[ge]=_e[Ce],ae[ge]=_e[De];else h(12,!1,ye);else for(ge=0;ge<Pe;ge++)_e={series:K},K.pointClass.prototype.applyOptions.apply(_e,[E[ge]]),K.updateParallelArrays(_e,ge);for(ae&&H(ae[0])&&h(14,!0,ye),K.data=[],K.options.data=K.userOptions.data=E,ge=oe;ge--;)(se=ne[ge])===null||se===void 0||se.destroy();re&&(re.minRange=re.userMinRange),K.isDirty=ye.isDirtyBox=!0,K.isDirtyData=!!ne,X=!1}le.legendType==="point"&&(this.processData(),this.generatePoints()),V&&ye.redraw(X)}sortData(E){const V=this,X=V.options,Q=X.dataSorting,se=Q.sortKey||"y",K=function(oe,le){return T(le)&&oe.pointClass.prototype.optionsToObject.call({series:oe},le)||{}};return E.forEach(function(oe,le){E[le]=K(V,oe),E[le].index=le},this),E.concat().sort((oe,le)=>{const ye=v(se,oe),te=v(se,le);return te<ye?-1:te>ye?1:0}).forEach(function(oe,le){oe.x=le},this),V.linkedSeries&&V.linkedSeries.forEach(function(oe){const le=oe.options,ye=le.data;(!le.dataSorting||!le.dataSorting.enabled)&&ye&&(ye.forEach(function(te,re){ye[re]=K(oe,te),E[re]&&(ye[re].x=E[re].x,ye[re].index=re)}),oe.setData(ye,!1))}),E}getProcessedData(E){const V=this,X=V.xAxis,Q=V.options,se=Q.cropThreshold,K=E||V.getExtremesFromAll||Q.getExtremesFromAll,ne=X==null?void 0:X.logarithmic,oe=V.isCartesian;let le,ye,te=0,re,Z,ie,ae=V.xData,he=V.yData,fe=!1;const ve=ae.length;X&&(re=X.getExtremes(),Z=re.min,ie=re.max,fe=!!(X.categories&&!X.names.length)),oe&&V.sorted&&!K&&(!se||ve>se||V.forceCrop)&&(ae[ve-1]<Z||ae[0]>ie?(ae=[],he=[]):V.yData&&(ae[0]<Z||ae[ve-1]>ie)&&(le=this.cropData(V.xData,V.yData,Z,ie),ae=le.xData,he=le.yData,te=le.start,ye=!0));const ge=b([ne?ae.map(ne.log2lin):ae],()=>V.requireSorting&&!fe&&h(15,!1,V.chart));return{xData:ae,yData:he,cropped:ye,cropStart:te,closestPointRange:ge}}processData(E){const V=this,X=V.xAxis;if(V.isCartesian&&!V.isDirty&&!X.isDirty&&!V.yAxis.isDirty&&!E)return!1;const Q=V.getProcessedData();V.cropped=Q.cropped,V.cropStart=Q.cropStart,V.processedXData=Q.xData,V.processedYData=Q.yData,V.closestPointRange=V.basePointRange=Q.closestPointRange,f(V,"afterProcessData")}cropData(E,V,X,Q,se){const K=E.length;let ne,oe,le=0,ye=K;for(se=d(se,this.cropShoulder),ne=0;ne<K;ne++)if(E[ne]>=X){le=Math.max(0,ne-se);break}for(oe=ne;oe<K;oe++)if(E[oe]>Q){ye=oe+se;break}return{xData:E.slice(le,ye),yData:V.slice(le,ye),start:le,end:ye}}generatePoints(){const E=this,V=E.options,X=E.processedData||V.data,Q=E.processedXData,se=E.processedYData,K=E.pointClass,ne=Q.length,oe=E.cropStart||0,le=E.hasGroupedData,ye=V.keys,te=[],re=V.dataGrouping&&V.dataGrouping.groupAll?oe:0;let Z,ie,ae,he,fe=E.data;if(!fe&&!le){const ve=[];ve.length=X.length,fe=E.data=ve}for(ye&&le&&(E.options.keys=!1),he=0;he<ne;he++)ie=oe+he,le?(ae=new K().init(E,[Q[he]].concat(q(se[he]))),ae.dataGroup=E.groupMap[re+he],ae.dataGroup.options&&(ae.options=ae.dataGroup.options,n(ae,ae.dataGroup.options),delete ae.dataLabels)):(ae=fe[ie],!ae&&typeof X[ie]<"u"&&(fe[ie]=ae=new K().init(E,X[ie],Q[he]))),ae&&(ae.index=le?re+he:ie,te[he]=ae);if(E.options.keys=ye,fe&&(ne!==(Z=fe.length)||le))for(he=0;he<Z;he++)he===oe&&!le&&(he+=ne),fe[he]&&(fe[he].destroyElements(),fe[he].plotX=void 0);E.data=fe,E.points=te,f(this,"afterGeneratePoints")}getXExtremes(E){return{min:I(E),max:P(E)}}getExtremes(E,V){const X=this.xAxis,Q=this.yAxis,se=this.processedXData||this.xData,K=[],ne=this.requireSorting?this.cropShoulder:0,oe=Q?Q.positiveValuesOnly:!1;let le,ye,te,re,Z,ie,ae,he=0,fe=0,ve=0;E=E||this.stackedYData||this.processedYData||[];const ge=E.length;for(X&&(le=X.getExtremes(),he=le.min,fe=le.max),ie=0;ie<ge;ie++)if(re=se[ie],Z=E[ie],ye=(D(Z)||U(Z))&&(Z.length||Z>0||!oe),te=V||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!X||(se[ie+ne]||re)>=he&&(se[ie-ne]||re)<=fe,ye&&te)if(ae=Z.length,ae)for(;ae--;)D(Z[ae])&&(K[ve++]=Z[ae]);else K[ve++]=Z;const _e={activeYData:K,dataMin:I(K),dataMax:P(K)};return f(this,"afterGetExtremes",{dataExtremes:_e}),_e}applyExtremes(){const E=this.getExtremes();return this.dataMin=E.dataMin,this.dataMax=E.dataMax,E}getFirstValidPoint(E){const V=E.length;let X=0,Q=null;for(;Q===null&&X<V;)Q=E[X],X++;return Q}translate(){var E;this.processedXData||this.processData(),this.generatePoints();const V=this,X=V.options,Q=X.stacking,se=V.xAxis,K=se.categories,ne=V.enabledDataSorting,oe=V.yAxis,le=V.points,ye=le.length,te=V.pointPlacementToXValue(),re=!!te,Z=X.threshold,ie=X.startFromThreshold?Z:0;let ae,he,fe,ve,ge=Number.MAX_VALUE;function _e(be){return m(be,-1e5,1e5)}for(ae=0;ae<ye;ae++){const be=le[ae],Ce=be.x;let De,Be,Le=be.y,Pe=be.low;const Ue=Q&&((E=oe.stacking)===null||E===void 0?void 0:E.stacks[(V.negStacks&&Le<(ie?0:Z)?"-":"")+V.stackKey]);he=se.translate(Ce,!1,!1,!1,!0,te),be.plotX=D(he)?B(_e(he)):void 0,Q&&V.visible&&Ue&&Ue[Ce]&&(ve=V.getStackIndicator(ve,Ce,V.index),!be.isNull&&ve.key&&(De=Ue[Ce],Be=De.points[ve.key]),De&&U(Be)&&(Pe=Be[0],Le=Be[1],Pe===ie&&ve.key===Ue[Ce].base&&(Pe=d(D(Z)?Z:oe.min)),oe.positiveValuesOnly&&T(Pe)&&Pe<=0&&(Pe=void 0),be.total=be.stackTotal=d(De.total),be.percentage=T(be.y)&&De.total?be.y/De.total*100:void 0,be.stackY=Le,V.irregularWidths||De.setOffset(V.pointXOffset||0,V.barW||0,void 0,void 0,void 0,V.xAxis))),be.yBottom=T(Pe)?_e(oe.translate(Pe,!1,!0,!1,!0)):void 0,V.dataModify&&(Le=V.dataModify.modifyValue(Le,ae));let Je;D(Le)&&be.plotX!==void 0&&(Je=oe.translate(Le,!1,!0,!1,!0),Je=D(Je)?_e(Je):void 0),be.plotY=Je,be.isInside=this.isPointInside(be),be.clientX=re?B(se.translate(Ce,!1,!1,!1,!0,te)):he,be.negative=(be.y||0)<(Z||0),be.category=d(K&&K[be.x],be.x),!be.isNull&&be.visible!==!1&&(typeof fe<"u"&&(ge=Math.min(ge,Math.abs(he-fe))),fe=he),be.zone=this.zones.length?be.getZone():void 0,!be.graphic&&V.group&&ne&&(be.isNew=!0)}V.closestPointRangePx=ge,f(this,"afterTranslate")}getValidPoints(E,V,X){const Q=this.chart;return(E||this.points||[]).filter(function(se){const{plotX:K,plotY:ne}=se;return!X&&(se.isNull||!D(ne))||V&&!Q.isInsidePlot(K,ne,{inverted:Q.inverted})?!1:se.visible!==!1})}getClipBox(){const{chart:E,xAxis:V,yAxis:X}=this,Q=z(E.clipBox);return V&&V.len!==E.plotSizeX&&(Q.width=V.len),X&&X.len!==E.plotSizeY&&(Q.height=X.len),Q}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){const{chart:E,group:V,markerGroup:X}=this,Q=E.sharedClips,se=E.renderer,K=this.getClipBox(),ne=this.getSharedClipKey();let oe=Q[ne];oe?oe.animate(K):Q[ne]=oe=se.clipRect(K),V&&V.clip(this.options.clip===!1?void 0:oe),X&&X.clip()}animate(E){const{chart:V,group:X,markerGroup:Q}=this,se=V.inverted,K=p(this.options.animation),ne=[this.getSharedClipKey(),K.duration,K.easing,K.defer].join(",");let oe=V.sharedClips[ne],le=V.sharedClips[ne+"m"];if(E&&X){const ye=this.getClipBox();if(oe)oe.attr("height",ye.height);else{ye.width=0,se&&(ye.x=V.plotHeight),oe=V.renderer.clipRect(ye),V.sharedClips[ne]=oe;const te={x:-99,y:-99,width:se?V.plotWidth+199:99,height:se?99:V.plotHeight+199};le=V.renderer.clipRect(te),V.sharedClips[ne+"m"]=le}X.clip(oe),Q&&Q.clip(le)}else if(oe&&!oe.hasClass("highcharts-animating")){const ye=this.getClipBox(),te=K.step;Q&&Q.element.childNodes.length&&(K.step=function(re,Z){te&&te.apply(Z,arguments),Z.prop==="width"&&le&&le.element&&le.attr(se?"height":"width",re+99)}),oe.addClass("highcharts-animating").animate(ye,K)}}afterAnimate(){this.setClip(),W(this.chart.sharedClips,(E,V,X)=>{E&&!this.chart.container.querySelector(`[clip-path="url(#${E.id})"]`)&&(E.destroy(),delete X[V])}),this.finishedAnimating=!0,f(this,"afterAnimate")}drawPoints(E=this.points){const V=this,X=V.chart,Q=X.styledMode,{colorAxis:se,options:K}=V,ne=K.marker,oe=V[V.specialGroup||"markerGroup"],le=V.xAxis,ye=d(ne.enabled,!le||le.isRadial?!0:null,V.closestPointRangePx>=ne.enabledThreshold*ne.radius);let te,re,Z,ie,ae,he,fe;if(ne.enabled!==!1||V._hasPointMarkers)for(te=0;te<E.length;te++)if(re=E[te],Z=re.graphic,ie=Z?"animate":"attr",ae=re.marker||{},he=!!re.marker,(ye&&typeof ae.enabled>"u"||ae.enabled)&&!re.isNull&&re.visible!==!1){const ge=d(ae.symbol,V.symbol,"rect");fe=V.markerAttribs(re,re.selected&&"select"),V.enabledDataSorting&&(re.startXPos=le.reversed?-(fe.width||0):le.width);const _e=re.isInside!==!1;if(!Z&&_e&&((fe.width||0)>0||re.hasImage)&&(re.graphic=Z=X.renderer.symbol(ge,fe.x,fe.y,fe.width,fe.height,he?ae:ne).add(oe),V.enabledDataSorting&&X.hasRendered&&(Z.attr({x:re.startXPos}),ie="animate")),Z&&ie==="animate"&&Z[_e?"show":"hide"](_e).animate(fe),Z){const be=V.pointAttribs(re,Q||!re.selected?void 0:"select");Q?se&&Z.css({fill:be.fill}):Z[ie](be)}Z&&Z.addClass(re.getClassName(),!0)}else Z&&(re.graphic=Z.destroy())}markerAttribs(E,V){const X=this.options,Q=X.marker,se=E.marker||{},K=se.symbol||Q.symbol,ne={};let oe,le,ye=d(se.radius,Q&&Q.radius);V&&(oe=Q.states[V],le=se.states&&se.states[V],ye=d(le&&le.radius,oe&&oe.radius,ye&&ye+(oe&&oe.radiusPlus||0))),E.hasImage=K&&K.indexOf("url")===0,E.hasImage&&(ye=0);const te=E.pos();return D(ye)&&te&&(ne.x=te[0]-ye,ne.y=te[1]-ye,X.crisp&&(ne.x=Math.floor(ne.x))),ye&&(ne.width=ne.height=2*ye),ne}pointAttribs(E,V){const X=this.options.marker,Q=E&&E.options,se=Q&&Q.marker||{},K=Q&&Q.color,ne=E&&E.color,oe=E&&E.zone&&E.zone.color;let le,ye,te=this.color,re,Z,ie=d(se.lineWidth,X.lineWidth),ae=1;return te=K||oe||ne||te,re=se.fillColor||X.fillColor||te,Z=se.lineColor||X.lineColor||te,V=V||"normal",V&&(le=X.states[V]||{},ye=se.states&&se.states[V]||{},ie=d(ye.lineWidth,le.lineWidth,ie+d(ye.lineWidthPlus,le.lineWidthPlus,0)),re=ye.fillColor||le.fillColor||re,Z=ye.lineColor||le.lineColor||Z,ae=d(ye.opacity,le.opacity,ae)),{stroke:Z,"stroke-width":ie,fill:re,opacity:ae}}destroy(E){const V=this,X=V.chart,Q=/AppleWebKit\/533/.test(C.navigator.userAgent),se=V.data||[];let K,ne,oe,le;for(f(V,"destroy",{keepEventsForUpdate:E}),this.removeEvents(E),(V.axisTypes||[]).forEach(function(ye){le=V[ye],le&&le.series&&(x(le.series,V),le.isDirty=le.forceRedraw=!0)}),V.legendItem&&V.chart.legend.destroyItem(V),ne=se.length;ne--;)oe=se[ne],oe&&oe.destroy&&oe.destroy();V.clips&&V.clips.forEach(ye=>ye.destroy()),A.clearTimeout(V.animationTimeout),W(V,function(ye,te){ye instanceof N&&!ye.survive&&(K=Q&&te==="group"?"hide":"destroy",ye[K]())}),X.hoverSeries===V&&(X.hoverSeries=void 0),x(X.series,V),X.orderItems("series"),W(V,function(ye,te){(!E||te!=="hcEvents")&&delete V[te]})}applyZones(){const E=this,V=this.chart,X=V.renderer,Q=this.zones,se=this.clips||[],K=this.graph,ne=this.area,oe=Math.max(V.plotWidth,V.plotHeight),le=this[(this.zoneAxis||"y")+"Axis"],ye=V.inverted;let te,re,Z,ie,ae,he,fe,ve,ge,_e,be,Ce=!1;Q.length&&(K||ne)&&le&&typeof le.min<"u"?(ae=le.reversed,he=le.horiz,K&&!this.showLine&&K.hide(),ne&&ne.hide(),ie=le.getExtremes(),Q.forEach(function(De,Be){te=ae?he?V.plotWidth:0:he?0:le.toPixels(ie.min)||0,te=m(d(re,te),0,oe),re=m(Math.round(le.toPixels(d(De.value,ie.max),!0)||0),0,oe),Ce&&(te=re=le.toPixels(ie.max)),fe=Math.abs(te-re),ve=Math.min(te,re),ge=Math.max(te,re),le.isXAxis?(Z={x:ye?ge:ve,y:0,width:fe,height:oe},he||(Z.x=V.plotHeight-Z.x)):(Z={x:0,y:ye?ge:ve,width:oe,height:fe},he&&(Z.y=V.plotWidth-Z.y)),se[Be]?se[Be].animate(Z):se[Be]=X.clipRect(Z),_e=E["zone-area-"+Be],be=E["zone-graph-"+Be],K&&be&&be.clip(se[Be]),ne&&_e&&_e.clip(se[Be]),Ce=De.value>ie.max,E.resetZones&&re===0&&(re=void 0)}),this.clips=se):E.visible&&(K&&K.show(),ne&&ne.show())}plotGroup(E,V,X,Q,se){let K=this[E];const ne=!K,oe={visibility:X,zIndex:Q||.1};return typeof this.opacity<"u"&&!this.chart.styledMode&&this.state!=="inactive"&&(oe.opacity=this.opacity),ne&&(this[E]=K=this.chart.renderer.g().add(se)),K.addClass("highcharts-"+V+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(T(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(K.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),K.attr(oe)[ne?"attr":"animate"](this.getPlotBox(V)),K}getPlotBox(E){let V=this.xAxis,X=this.yAxis;const Q=this.chart,se=Q.inverted&&!Q.polar&&V&&this.invertible!==!1&&E==="series";return Q.inverted&&(V=X,X=this.xAxis),{translateX:V?V.left:Q.plotLeft,translateY:X?X.top:Q.plotTop,rotation:se?90:0,rotationOriginX:se?(V.len-X.len)/2:0,rotationOriginY:se?(V.len+X.len)/2:0,scaleX:se?-1:1,scaleY:1}}removeEvents(E){const V=this;E||R(V),V.eventsToUnbind.length&&(V.eventsToUnbind.forEach(function(X){X()}),V.eventsToUnbind.length=0)}render(){const E=this,V=E.chart,X=E.options,Q=p(X.animation),se=E.visible?"inherit":"hidden",K=X.zIndex,ne=E.hasRendered,oe=V.seriesGroup;V.inverted;let le=E.finishedAnimating?0:Q.duration;f(this,"render"),E.plotGroup("group","series",se,K,oe),E.markerGroup=E.plotGroup("markerGroup","markers",se,K,oe),X.clip!==!1&&E.setClip(),E.animate&&le&&E.animate(!0),E.drawGraph&&(E.drawGraph(),E.applyZones()),E.visible&&E.drawPoints(),E.drawDataLabels&&E.drawDataLabels(),E.redrawPoints&&E.redrawPoints(),E.drawTracker&&X.enableMouseTracking&&E.drawTracker(),E.animate&&le&&E.animate(),ne||(le&&Q.defer&&(le+=Q.defer),E.animationTimeout=J(function(){E.afterAnimate()},le||0)),E.isDirty=!1,E.hasRendered=!0,f(E,"afterRender")}redraw(){const E=this.isDirty||this.isDirtyData;this.translate(),this.render(),E&&delete this.kdTree}searchPoint(E,V){const X=this,Q=X.xAxis,se=X.yAxis,K=X.chart.inverted;return this.searchKDTree({clientX:K?Q.len-E.chartY+Q.pos:E.chartX-Q.pos,plotY:K?se.len-E.chartX+se.pos:E.chartY-se.pos},V,E)}buildKDTree(E){this.buildingKdTree=!0;const V=this,X=V.options.findNearestPointBy.indexOf("y")>-1?2:1;function Q(K,ne,oe){const le=K&&K.length;let ye,te;if(le)return ye=V.kdAxisArray[ne%oe],K.sort(function(re,Z){return re[ye]-Z[ye]}),te=Math.floor(le/2),{point:K[te],left:Q(K.slice(0,te),ne+1,oe),right:Q(K.slice(te+1),ne+1,oe)}}function se(){V.kdTree=Q(V.getValidPoints(null,!V.directTouch),X,X),V.buildingKdTree=!1}delete V.kdTree,J(se,V.options.kdNow||E&&E.type==="touchstart"?0:1)}searchKDTree(E,V,X){const Q=this,se=this.kdAxisArray[0],K=this.kdAxisArray[1],ne=V?"distX":"dist",oe=Q.options.findNearestPointBy.indexOf("y")>-1?2:1;function le(te,re){const Z=T(te[se])&&T(re[se])?Math.pow(te[se]-re[se],2):null,ie=T(te[K])&&T(re[K])?Math.pow(te[K]-re[K],2):null,ae=(Z||0)+(ie||0);re.dist=T(ae)?Math.sqrt(ae):Number.MAX_VALUE,re.distX=T(Z)?Math.sqrt(Z):Number.MAX_VALUE}function ye(te,re,Z,ie){const ae=re.point,he=Q.kdAxisArray[Z%ie];let fe,ve,ge=ae;le(te,ae);const _e=te[he]-ae[he],be=_e<0?"left":"right",Ce=_e<0?"right":"left";return re[be]&&(fe=ye(te,re[be],Z+1,ie),ge=fe[ne]<ge[ne]?fe:ae),re[Ce]&&Math.sqrt(_e*_e)<ge[ne]&&(ve=ye(te,re[Ce],Z+1,ie),ge=ve[ne]<ge[ne]?ve:ge),ge}if(!this.kdTree&&!this.buildingKdTree&&this.buildKDTree(X),this.kdTree)return ye(E,this.kdTree,oe,oe)}pointPlacementToXValue(){const{options:{pointPlacement:E,pointRange:V},xAxis:X}=this;let Q=E;return Q==="between"&&(Q=X.reversed?-.5:.5),D(Q)?Q*(V||X.pointRange):0}isPointInside(E){const{chart:V,xAxis:X,yAxis:Q}=this;return typeof E.plotY<"u"&&typeof E.plotX<"u"&&E.plotY>=0&&E.plotY<=(Q?Q.len:V.plotHeight)&&E.plotX>=0&&E.plotX<=(X?X.len:V.plotWidth)}drawTracker(){const E=this,V=E.options,X=V.trackByArea,Q=[].concat(X?E.areaPath:E.graphPath),se=E.chart,K=se.pointer,ne=se.renderer,oe=se.options.tooltip.snap,le=E.tracker,ye=function(re){V.enableMouseTracking&&se.hoverSeries!==E&&E.onMouseOver()},te="rgba(192,192,192,"+(j?1e-4:.002)+")";le?le.attr({d:Q}):E.graph&&(E.tracker=ne.path(Q).attr({visibility:E.visible?"inherit":"hidden",zIndex:2}).addClass(X?"highcharts-tracker-area":"highcharts-tracker-line").add(E.group),se.styledMode||E.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:te,fill:X?te:"none","stroke-width":E.graph.strokeWidth()+(X?0:2*oe)}),[E.tracker,E.markerGroup,E.dataLabelsGroup].forEach(function(re){re&&(re.addClass("highcharts-tracker").on("mouseover",ye).on("mouseout",function(Z){K.onTrackerMouseOut(Z)}),V.cursor&&!se.styledMode&&re.css({cursor:V.cursor}),_&&re.on("touchstart",ye))})),f(this,"afterDrawTracker")}addPoint(E,V,X,Q,se){const K=this,ne=K.options,oe=K.data,le=K.chart,ye=K.xAxis,te=ye&&ye.hasNames&&ye.names,re=ne.data,Z=K.xData;let ie,ae;V=d(V,!0);const he={series:K};K.pointClass.prototype.applyOptions.apply(he,[E]);const fe=he.x;if(ae=Z.length,K.requireSorting&&fe<Z[ae-1])for(ie=!0;ae&&Z[ae-1]>fe;)ae--;K.updateParallelArrays(he,"splice",[ae,0,0]),K.updateParallelArrays(he,ae),te&&he.name&&(te[fe]=he.name),re.splice(ae,0,E),(ie||K.processedData)&&(K.data.splice(ae,0,null),K.processData()),ne.legendType==="point"&&K.generatePoints(),X&&(oe[0]&&oe[0].remove?oe[0].remove(!1):(oe.shift(),K.updateParallelArrays(he,"shift"),re.shift())),se!==!1&&f(K,"addPoint",{point:he}),K.isDirty=!0,K.isDirtyData=!0,V&&le.redraw(Q)}removePoint(E,V,X){const Q=this,se=Q.data,K=se[E],ne=Q.points,oe=Q.chart,le=function(){ne&&ne.length===se.length&&ne.splice(E,1),se.splice(E,1),Q.options.data.splice(E,1),Q.updateParallelArrays(K||{series:Q},"splice",[E,1]),K&&K.destroy(),Q.isDirty=!0,Q.isDirtyData=!0,V&&oe.redraw()};g(X,oe),V=d(V,!0),K?K.firePointEvent("remove",null,le):le()}remove(E,V,X,Q){const se=this,K=se.chart;function ne(){se.destroy(Q),K.isDirtyLegend=K.isDirtyBox=!0,K.linkSeries(Q),d(E,!0)&&K.redraw(V)}X!==!1?f(se,"remove",null,ne):ne()}update(E,V){E=S(E,this.userOptions),f(this,"update",{options:E});const X=this,Q=X.chart,se=X.userOptions,K=X.initialType||X.type,ne=Q.options.plotOptions,oe=k[K].prototype,le=["group","markerGroup","dataLabelsGroup","transformGroup"],ye=X.finishedAnimating&&{animation:!1},te={};let re,Z,ie=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],ae=E.type||se.type||Q.options.chart.type;const he=!(this.hasDerivedData||ae&&ae!==this.type||typeof E.pointStart<"u"||typeof E.pointInterval<"u"||typeof E.relativeXValue<"u"||E.joinBy||E.mapData||X.hasOptionChanged("dataGrouping")||X.hasOptionChanged("pointStart")||X.hasOptionChanged("pointInterval")||X.hasOptionChanged("pointIntervalUnit")||X.hasOptionChanged("keys"));ae=ae||K,he&&(ie.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),E.visible!==!1&&ie.push("area","graph"),X.parallelArrays.forEach(function(ve){ie.push(ve+"Data")}),E.data&&(E.dataSorting&&n(X.options.dataSorting,E.dataSorting),this.setData(E.data,!1))),E=z(se,ye,{index:typeof se.index>"u"?X.index:se.index,pointStart:d(ne&&ne.series&&ne.series.pointStart,se.pointStart,X.xData[0])},!he&&{data:X.options.data},E),he&&E.data&&(E.data=X.options.data),ie=le.concat(ie),ie.forEach(function(ve){ie[ve]=X[ve],delete X[ve]});let fe=!1;if(k[ae]){if(fe=ae!==X.type,X.remove(!1,!1,!1,!0),fe)if(Object.setPrototypeOf)Object.setPrototypeOf(X,k[ae].prototype);else{const ve=Object.hasOwnProperty.call(X,"hcEvents")&&X.hcEvents;for(Z in oe)X[Z]=void 0;n(X,k[ae].prototype),ve?X.hcEvents=ve:delete X.hcEvents}}else h(17,!0,Q,{missingModuleFor:ae});if(ie.forEach(function(ve){X[ve]=ie[ve]}),X.init(Q,E),he&&this.points){if(re=X.options,re.visible===!1)te.graphic=1,te.dataLabel=1;else if(!X._hasPointLabels){const{marker:ve,dataLabels:ge}=re,_e=se.marker||{};ve&&(ve.enabled===!1||_e.symbol!==ve.symbol||_e.height!==ve.height||_e.width!==ve.width)&&(te.graphic=1),ge&&ge.enabled===!1&&(te.dataLabel=1)}for(const ve of this.points)ve&&ve.series&&(ve.resolveColor(),Object.keys(te).length&&ve.destroyElements(te),re.showInLegend===!1&&ve.legendItem&&Q.legend.destroyItem(ve))}X.initialType=K,Q.linkSeries(),fe&&X.linkedSeries.length&&(X.isDirtyData=!0),f(this,"afterUpdate"),d(V,!0)&&Q.redraw(he?void 0:!1)}setName(E){this.name=this.options.name=this.userOptions.name=E,this.chart.isDirtyLegend=!0}hasOptionChanged(E){const V=this.chart,X=this.options[E],Q=V.options.plotOptions,se=this.userOptions[E];return se?X!==se:X!==d(Q&&Q[this.type]&&Q[this.type][E],Q&&Q.series&&Q.series[E],X)}onMouseOver(){const E=this,V=E.chart,X=V.hoverSeries;V.pointer.setHoverChartIndex(),X&&X!==E&&X.onMouseOut(),E.options.events.mouseOver&&f(E,"mouseOver"),E.setState("hover"),V.hoverSeries=E}onMouseOut(){const E=this,V=E.options,X=E.chart,Q=X.tooltip,se=X.hoverPoint;X.hoverSeries=null,se&&se.onMouseOut(),E&&V.events.mouseOut&&f(E,"mouseOut"),Q&&!E.stickyTracking&&(!Q.shared||E.noSharedTooltip)&&Q.hide(),X.series.forEach(function(K){K.setState("",!0)})}setState(E,V){const X=this,Q=X.options,se=X.graph,K=Q.inactiveOtherPoints,ne=Q.states,oe=d(ne[E||"normal"]&&ne[E||"normal"].animation,X.chart.options.chart.animation);let le,ye=Q.lineWidth,te=0,re=Q.opacity;if(E=E||"",X.state!==E&&([X.group,X.markerGroup,X.dataLabelsGroup].forEach(function(Z){Z&&(X.state&&Z.removeClass("highcharts-series-"+X.state),E&&Z.addClass("highcharts-series-"+E))}),X.state=E,!X.chart.styledMode)){if(ne[E]&&ne[E].enabled===!1)return;if(E&&(ye=ne[E].lineWidth||ye+(ne[E].lineWidthPlus||0),re=d(ne[E].opacity,re)),se&&!se.dashstyle&&D(ye))for(le={"stroke-width":ye},se.animate(le,oe);X["zone-graph-"+te];)X["zone-graph-"+te].animate(le,oe),te=te+1;K||[X.group,X.markerGroup,X.dataLabelsGroup,X.labelBySeries].forEach(function(Z){Z&&Z.animate({opacity:re},oe)})}V&&K&&X.points&&X.setAllPointsToState(E||void 0)}setAllPointsToState(E){this.points.forEach(function(V){V.setState&&V.setState(E)})}setVisible(E,V){const X=this,Q=X.chart,se=Q.options.chart.ignoreHiddenSeries,K=X.visible;X.visible=E=X.options.visible=X.userOptions.visible=typeof E>"u"?!K:E;const ne=E?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(oe){X[oe]&&X[oe][ne]()}),(Q.hoverSeries===X||(Q.hoverPoint&&Q.hoverPoint.series)===X)&&X.onMouseOut(),X.legendItem&&Q.legend.colorizeItem(X,E),X.isDirty=!0,X.options.stacking&&Q.series.forEach(function(oe){oe.options.stacking&&oe.visible&&(oe.isDirty=!0)}),X.linkedSeries.forEach(function(oe){oe.setVisible(E,!1)}),se&&(Q.isDirtyBox=!0),f(X,ne),V!==!1&&Q.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(E){const V=this;V.selected=E=this.options.selected=typeof E>"u"?!V.selected:E,V.checkbox&&(V.checkbox.checked=E),f(V,E?"select":"unselect")}shouldShowTooltip(E,V,X={}){return X.series=this,X.visiblePlotOnly=!0,this.chart.isInsidePlot(E,V,X)}drawLegendSymbol(E,V){var X;(X=u[this.options.legendSymbol||"rectangle"])===null||X===void 0||X.call(this,E,V)}}return Y.defaultOptions=y,Y.types=L.seriesTypes,Y.registerType=L.registerSeriesType,n(Y.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:w,requireSorting:!0,sorted:!0}),L.series=Y,Y}),a(t,"Core/Chart/Chart.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Templating.js"],t["Core/Foundation.js"],t["Core/Globals.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Time.js"],t["Core/Utilities.js"],t["Core/Renderer/HTML/AST.js"]],function(i,s,o,c,u,w,y,L,N,A,p,g,O){const{animate:M,animObject:_,setAnimation:j}=i,{defaultOptions:C,defaultTime:k}=o,{numberFormat:F}=c,{registerEventOptions:P}=u,{charts:I,doc:m,marginNames:B,svg:T,win:S}=w,{seriesTypes:x}=N,{addEvent:h,attr:n,createElement:l,css:f,defined:b,diffObjects:v,discardElement:G,erase:U,error:D,extend:H,find:z,fireEvent:W,getStyle:d,isArray:R,isNumber:q,isObject:J,isString:Y,merge:ee,objectEach:E,pick:V,pInt:X,relativeLength:Q,removeEvent:se,splat:K,syncTimeout:ne,uniqueKey:oe}=g;class le{static chart(te,re,Z){return new le(te,re,Z)}constructor(te,re,Z){this.axes=void 0,this.axisOffset=void 0,this.zoomBool=void 0,this.bounds=void 0,this.chartHeight=void 0,this.chartWidth=void 0,this.clipBox=void 0,this.colorCounter=void 0,this.container=void 0,this.eventOptions=void 0,this.index=void 0,this.isResizing=void 0,this.labelCollectors=void 0,this.margin=void 0,this.numberFormatter=void 0,this.options=void 0,this.plotBox=void 0,this.plotHeight=void 0,this.plotLeft=void 0,this.plotTop=void 0,this.plotWidth=void 0,this.pointCount=void 0,this.pointer=void 0,this.renderer=void 0,this.renderTo=void 0,this.series=void 0,this.sharedClips={},this.spacing=void 0,this.spacingBox=void 0,this.symbolCounter=void 0,this.time=void 0,this.titleOffset=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zooming=void 0,this.getArgs(te,re,Z)}getArgs(te,re,Z){Y(te)||te.nodeName?(this.renderTo=te,this.init(re,Z)):this.init(te,re)}setZoomOptions(){console.log("setZoomOptions");const te=this,re=te.options.chart,Z=re.zooming;te.zooming=Object.assign(Object.assign({},Z),{type:V(re.zoomType,Z.type),key:V(re.zoomKey,Z.key),pinchType:V(re.pinchType,Z.pinchType),singleTouch:V(re.zoomBySingleTouch,Z.singleTouch,!1),resetButton:ee(Z.resetButton,re.resetZoomButton)})}init(te,re){W(this,"init",{args:arguments},function(){const Z=ee(C,te),ie=Z.chart;this.userOptions=H({},te),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=re,this.isResizing=0,this.options=Z,this.axes=[],this.series=[],this.time=te.time&&Object.keys(te.time).length?new p(te.time):w.time,this.numberFormatter=ie.numberFormatter||F,this.styledMode=ie.styledMode,this.hasCartesianSeries=ie.showAxes;const ae=this;ae.index=I.length,I.push(ae),w.chartCount++,P(this,ie),ae.xAxis=[],ae.yAxis=[],ae.pointCount=ae.colorCounter=ae.symbolCounter=0,this.setZoomOptions(),W(ae,"afterInit"),ae.firstRender()})}initSeries(te){const re=this,Z=re.options.chart,ie=te.type||Z.type,ae=x[ie];ae||D(17,!0,re,{missingModuleFor:ie});const he=new ae;return typeof he.init=="function"&&he.init(re,te),he}setSeriesData(){this.getSeriesOrderByLinks().forEach(function(te){!te.points&&!te.data&&te.enabledDataSorting&&te.setData(te.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(te,re){return te.linkedSeries.length||re.linkedSeries.length?re.linkedSeries.length-te.linkedSeries.length:0})}orderItems(te,re=0){const Z=this[te],ie=this.options[te]=K(this.options[te]).slice(),ae=this.userOptions[te]=this.userOptions[te]?K(this.userOptions[te]).slice():[];if(this.hasRendered&&(ie.splice(re),ae.splice(re)),Z)for(let he=re,fe=Z.length;he<fe;++he){const ve=Z[he];ve&&(ve.index=he,ve instanceof L&&(ve.name=ve.getName()),ve.options.isInternal||(ie[he]=ve.options,ae[he]=ve.userOptions))}}isInsidePlot(te,re,Z={}){const{inverted:ie,plotBox:ae,plotLeft:he,plotTop:fe,scrollablePlotBox:ve}=this;let ge=0,_e=0;Z.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:ge,scrollTop:_e}=this.scrollingContainer);const be=Z.series,Ce=Z.visiblePlotOnly&&ve||ae,De=Z.inverted?re:te,Be=Z.inverted?te:re,Le={x:De,y:Be,isInsidePlot:!0,options:Z};if(!Z.ignoreX){const Pe=be&&(ie&&!this.polar?be.yAxis:be.xAxis)||{pos:he,len:1/0},Ue=Z.paneCoordinates?Pe.pos+De:he+De;Ue>=Math.max(ge+he,Pe.pos)&&Ue<=Math.min(ge+he+Ce.width,Pe.pos+Pe.len)||(Le.isInsidePlot=!1)}if(!Z.ignoreY&&Le.isInsidePlot){const Pe=!ie&&Z.axis&&!Z.axis.isXAxis&&Z.axis||be&&(ie?be.xAxis:be.yAxis)||{pos:fe,len:1/0},Ue=Z.paneCoordinates?Pe.pos+Be:fe+Be;Ue>=Math.max(_e+fe,Pe.pos)&&Ue<=Math.min(_e+fe+Ce.height,Pe.pos+Pe.len)||(Le.isInsidePlot=!1)}return W(this,"afterIsInsidePlot",Le),Le.isInsidePlot}redraw(te){W(this,"beforeRedraw");const re=this,Z=re.hasCartesianSeries?re.axes:re.colorAxis||[],ie=re.series,ae=re.pointer,he=re.legend,fe=re.userOptions.legend,ve=re.renderer,ge=ve.isHidden(),_e=[];let be,Ce,De,Be=re.isDirtyBox,Le=re.isDirtyLegend,Pe;for(ve.rootFontSize=ve.boxWrapper.getStyle("font-size"),re.setResponsive&&re.setResponsive(!1),j(re.hasRendered?te:!1,re),ge&&re.temporaryDisplay(),re.layOutTitles(!1),De=ie.length;De--;)if(Pe=ie[De],(Pe.options.stacking||Pe.options.centerInCategory)&&(Ce=!0,Pe.isDirty)){be=!0;break}if(be)for(De=ie.length;De--;)Pe=ie[De],Pe.options.stacking&&(Pe.isDirty=!0);ie.forEach(function(Ue){Ue.isDirty&&(Ue.options.legendType==="point"?(typeof Ue.updateTotals=="function"&&Ue.updateTotals(),Le=!0):fe&&(fe.labelFormatter||fe.labelFormat)&&(Le=!0)),Ue.isDirtyData&&W(Ue,"updatedData")}),Le&&he&&he.options.enabled&&(he.render(),re.isDirtyLegend=!1),Ce&&re.getStacks(),Z.forEach(function(Ue){Ue.updateNames(),Ue.setScale()}),re.getMargins(),Z.forEach(function(Ue){Ue.isDirty&&(Be=!0)}),Z.forEach(function(Ue){const Je=Ue.min+","+Ue.max;Ue.extKey!==Je&&(Ue.extKey=Je,_e.push(function(){W(Ue,"afterSetExtremes",H(Ue.eventArgs,Ue.getExtremes())),delete Ue.eventArgs})),(Be||Ce)&&Ue.redraw()}),Be&&re.drawChartBox(),W(re,"predraw"),ie.forEach(function(Ue){(Be||Ue.isDirty)&&Ue.visible&&Ue.redraw(),Ue.isDirtyData=!1}),ae&&ae.reset(!0),ve.draw(),W(re,"redraw"),W(re,"render"),ge&&re.temporaryDisplay(!0),_e.forEach(function(Ue){Ue.call()})}get(te){const re=this.series;function Z(ae){return ae.id===te||ae.options&&ae.options.id===te}let ie=z(this.axes,Z)||z(this.series,Z);for(let ae=0;!ie&&ae<re.length;ae++)ie=z(re[ae].points||[],Z);return ie}getAxes(){const te=this.options;W(this,"getAxes");for(const re of["xAxis","yAxis"]){const Z=te[re]=K(te[re]||{});for(const ie of Z)new s(this,ie,re)}W(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((te,re)=>(re.getPointsCollection().forEach(Z=>{V(Z.selectedStaging,Z.selected)&&te.push(Z)}),te),[])}getSelectedSeries(){return this.series.filter(function(te){return te.selected})}setTitle(te,re,Z){this.applyDescription("title",te),this.applyDescription("subtitle",re),this.applyDescription("caption",void 0),this.layOutTitles(Z)}applyDescription(te,re){const Z=this,ie=this.options[te]=ee(this.options[te],re);let ae=this[te];ae&&re&&(this[te]=ae=ae.destroy()),ie&&!ae&&(ae=this.renderer.text(ie.text,0,0,ie.useHTML).attr({align:ie.align,class:"highcharts-"+te,zIndex:ie.zIndex||4}).add(),ae.update=function(he,fe){Z.applyDescription(te,he),Z.layOutTitles(fe)},this.styledMode||ae.css(H(te==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},ie.style)),this[te]=ae)}layOutTitles(te=!0){const re=[0,0,0],Z=this.renderer,ie=this.spacingBox;["title","subtitle","caption"].forEach(function(he){const fe=this[he],ve=this.options[he],ge=ve.verticalAlign||"top",_e=he==="title"?ge==="top"?-3:0:ge==="top"?re[0]+2:0;if(fe){fe.css({width:(ve.width||ie.width+(ve.widthAdjust||0))+"px"});const be=Z.fontMetrics(fe).b,Ce=Math.round(fe.getBBox(ve.useHTML).height);fe.align(H({y:ge==="bottom"?be:_e+be,height:Ce},ve),!1,"spacingBox"),ve.floating||(ge==="top"?re[0]=Math.ceil(re[0]+Ce):ge==="bottom"&&(re[2]=Math.ceil(re[2]+Ce)))}},this),re[0]&&(this.options.title.verticalAlign||"top")==="top"&&(re[0]+=this.options.title.margin),re[2]&&this.options.caption.verticalAlign==="bottom"&&(re[2]+=this.options.caption.margin);const ae=!this.titleOffset||this.titleOffset.join(",")!==re.join(",");this.titleOffset=re,W(this,"afterLayOutTitles"),!this.isDirtyBox&&ae&&(this.isDirtyBox=this.isDirtyLegend=ae,this.hasRendered&&te&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:d(this.renderTo,"width",!0)||0,height:d(this.renderTo,"height",!0)||0}}getChartSize(){const te=this,re=te.options.chart,Z=re.width,ie=re.height,ae=te.getContainerBox();te.chartWidth=Math.max(0,Z||ae.width||600),te.chartHeight=Math.max(0,Q(ie,te.chartWidth)||(ae.height>1?ae.height:400)),te.containerBox=ae}temporaryDisplay(te){let re=this.renderTo,Z;if(te)for(;re&&re.style;)re.hcOrigStyle&&(f(re,re.hcOrigStyle),delete re.hcOrigStyle),re.hcOrigDetached&&(m.body.removeChild(re),re.hcOrigDetached=!1),re=re.parentNode;else for(;re&&re.style&&(!m.body.contains(re)&&!re.parentNode&&(re.hcOrigDetached=!0,m.body.appendChild(re)),(d(re,"display",!1)==="none"||re.hcOricDetached)&&(re.hcOrigStyle={display:re.style.display,height:re.style.height,overflow:re.style.overflow},Z={display:"block",overflow:"hidden"},re!==this.renderTo&&(Z.height=0),f(re,Z),re.offsetWidth||re.style.setProperty("display","block","important")),re=re.parentNode,re!==m.body););}setClassName(te){this.container.className="highcharts-container "+(te||"")}getContainer(){const te=this,re=te.options,Z=re.chart,ie="data-highcharts-chart",ae=oe();let he,fe=te.renderTo;fe||(te.renderTo=fe=Z.renderTo),Y(fe)&&(te.renderTo=fe=m.getElementById(fe)),fe||D(13,!0,te);const ve=X(n(fe,ie));q(ve)&&I[ve]&&I[ve].hasRendered&&I[ve].destroy(),n(fe,ie,te.index),fe.innerHTML=O.emptyHTML,!Z.skipClone&&!fe.offsetWidth&&te.temporaryDisplay(),te.getChartSize();const ge=te.chartWidth,_e=te.chartHeight;f(fe,{overflow:"hidden"}),te.styledMode||(he=H({position:"relative",overflow:"hidden",width:ge+"px",height:_e+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},Z.style||{}));const be=l("div",{id:ae},he,fe);te.container=be,te._cursor=be.style.cursor;const Ce=Z.renderer||!T?y.getRendererType(Z.renderer):A;if(te.renderer=new Ce(be,ge,_e,void 0,Z.forExport,re.exporting&&re.exporting.allowHTML,te.styledMode),te.containerBox=te.getContainerBox(),j(void 0,te),te.setClassName(Z.className),!te.styledMode)te.renderer.setStyle(Z.style);else for(const De in re.defs)this.renderer.definition(re.defs[De]);te.renderer.chartIndex=te.index,W(this,"afterGetContainer")}getMargins(te){const{spacing:re,margin:Z,titleOffset:ie}=this;this.resetMargins(),ie[0]&&!b(Z[0])&&(this.plotTop=Math.max(this.plotTop,ie[0]+re[0])),ie[2]&&!b(Z[2])&&(this.marginBottom=Math.max(this.marginBottom,ie[2]+re[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Z,re),W(this,"getMargins"),te||this.getAxisMargins()}getAxisMargins(){const te=this,re=te.axisOffset=[0,0,0,0],Z=te.colorAxis,ie=te.margin,ae=function(he){he.forEach(function(fe){fe.visible&&fe.getOffset()})};te.hasCartesianSeries?ae(te.axes):Z&&Z.length&&ae(Z),B.forEach(function(he,fe){b(ie[fe])||(te[he]+=re[fe])}),te.setChartSize()}getOptions(){return v(this.userOptions,C)}reflow(te){const re=this,Z=re.options.chart,ie=b(Z.width)&&b(Z.height),ae=re.containerBox,he=re.getContainerBox();delete re.pointer.chartPosition,!ie&&!re.isPrinting&&ae&&he.width&&((he.width!==ae.width||he.height!==ae.height)&&(g.clearTimeout(re.reflowTimeout),re.reflowTimeout=ne(function(){re.container&&re.setSize(void 0,void 0,!1)},te?100:0)),re.containerBox=he)}setReflow(){const te=this,re=Z=>{var ie;!((ie=te.options)===null||ie===void 0)&&ie.chart.reflow&&te.hasLoaded&&te.reflow(Z)};if(typeof ResizeObserver=="function")new ResizeObserver(re).observe(te.renderTo);else{const Z=h(S,"resize",re);h(this,"destroy",Z)}}setSize(te,re,Z){const ie=this,ae=ie.renderer;ie.isResizing+=1,j(Z,ie);const he=ae.globalAnimation;ie.oldChartHeight=ie.chartHeight,ie.oldChartWidth=ie.chartWidth,typeof te<"u"&&(ie.options.chart.width=te),typeof re<"u"&&(ie.options.chart.height=re),ie.getChartSize(),ie.styledMode||(he?M:f)(ie.container,{width:ie.chartWidth+"px",height:ie.chartHeight+"px"},he),ie.setChartSize(!0),ae.setSize(ie.chartWidth,ie.chartHeight,he),ie.axes.forEach(function(fe){fe.isDirty=!0,fe.setScale()}),ie.isDirtyLegend=!0,ie.isDirtyBox=!0,ie.layOutTitles(),ie.getMargins(),ie.redraw(he),ie.oldChartHeight=null,W(ie,"resize"),ne(function(){ie&&W(ie,"endResize",null,function(){ie.isResizing-=1})},_(he).duration)}setChartSize(te){const re=this,Z=re.inverted,ie=re.renderer,ae=re.chartWidth,he=re.chartHeight,fe=re.options.chart,ve=re.spacing,ge=re.clipOffset;let _e,be,Ce,De;re.plotLeft=_e=Math.round(re.plotLeft),re.plotTop=be=Math.round(re.plotTop),re.plotWidth=Ce=Math.max(0,Math.round(ae-_e-re.marginRight)),re.plotHeight=De=Math.max(0,Math.round(he-be-re.marginBottom)),re.plotSizeX=Z?De:Ce,re.plotSizeY=Z?Ce:De,re.plotBorderWidth=fe.plotBorderWidth||0,re.spacingBox=ie.spacingBox={x:ve[3],y:ve[0],width:ae-ve[3]-ve[1],height:he-ve[0]-ve[2]},re.plotBox=ie.plotBox={x:_e,y:be,width:Ce,height:De};const Be=2*Math.floor(re.plotBorderWidth/2),Le=Math.ceil(Math.max(Be,ge[3])/2),Pe=Math.ceil(Math.max(Be,ge[0])/2);re.clipBox={x:Le,y:Pe,width:Math.floor(re.plotSizeX-Math.max(Be,ge[1])/2-Le),height:Math.max(0,Math.floor(re.plotSizeY-Math.max(Be,ge[2])/2-Pe))},te||(re.axes.forEach(function(Ue){Ue.setAxisSize(),Ue.setAxisTranslation()}),ie.alignElements()),W(re,"afterSetChartSize",{skipAxes:te})}resetMargins(){W(this,"resetMargins");const te=this,re=te.options.chart;["margin","spacing"].forEach(function(ie){const ae=re[ie],he=J(ae)?ae:[ae,ae,ae,ae];["Top","Right","Bottom","Left"].forEach(function(fe,ve){te[ie][ve]=V(re[ie+fe],he[ve])})}),B.forEach(function(Z,ie){te[Z]=V(te.margin[ie],te.spacing[ie])}),te.axisOffset=[0,0,0,0],te.clipOffset=[0,0,0,0]}drawChartBox(){const te=this,re=te.options.chart,Z=te.renderer,ie=te.chartWidth,ae=te.chartHeight,he=te.styledMode,fe=te.plotBGImage,ve=re.backgroundColor,ge=re.plotBackgroundColor,_e=re.plotBackgroundImage,be=te.plotLeft,Ce=te.plotTop,De=te.plotWidth,Be=te.plotHeight,Le=te.plotBox,Pe=te.clipRect,Ue=te.clipBox;let Je=te.chartBackground,at=te.plotBackground,Ge=te.plotBorder,er,tr,Kt,_t="animate";Je||(te.chartBackground=Je=Z.rect().addClass("highcharts-background").add(),_t="attr"),he?er=tr=Je.strokeWidth():(er=re.borderWidth||0,tr=er+(re.shadow?8:0),Kt={fill:ve||"none"},(er||Je["stroke-width"])&&(Kt.stroke=re.borderColor,Kt["stroke-width"]=er),Je.attr(Kt).shadow(re.shadow)),Je[_t]({x:tr/2,y:tr/2,width:ie-tr-er%2,height:ae-tr-er%2,r:re.borderRadius}),_t="animate",at||(_t="attr",te.plotBackground=at=Z.rect().addClass("highcharts-plot-background").add()),at[_t](Le),he||(at.attr({fill:ge||"none"}).shadow(re.plotShadow),_e&&(fe?(_e!==fe.attr("href")&&fe.attr("href",_e),fe.animate(Le)):te.plotBGImage=Z.image(_e,be,Ce,De,Be).add())),Pe?Pe.animate({width:Ue.width,height:Ue.height}):te.clipRect=Z.clipRect(Ue),_t="animate",Ge||(_t="attr",te.plotBorder=Ge=Z.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),he||Ge.attr({stroke:re.plotBorderColor,"stroke-width":re.plotBorderWidth||0,fill:"none"}),Ge[_t](Ge.crisp({x:be,y:Ce,width:De,height:Be},-Ge.strokeWidth())),te.isDirtyBox=!1,W(this,"afterDrawChartBox")}propFromSeries(){const te=this,re=te.options.chart,Z=te.options.series;let ie,ae,he;["inverted","angular","polar"].forEach(function(fe){for(ae=x[re.type],he=re[fe]||ae&&ae.prototype[fe],ie=Z&&Z.length;!he&&ie--;)ae=x[Z[ie].type],ae&&ae.prototype[fe]&&(he=!0);te[fe]=he})}linkSeries(te){const re=this,Z=re.series;Z.forEach(function(ie){ie.linkedSeries.length=0}),Z.forEach(function(ie){let ae=ie.options.linkedTo;Y(ae)&&(ae===":previous"?ae=re.series[ie.index-1]:ae=re.get(ae),ae&&ae.linkedParent!==ie&&(ae.linkedSeries.push(ie),ie.linkedParent=ae,ae.enabledDataSorting&&ie.setDataSortingOptions(),ie.visible=V(ie.options.visible,ae.options.visible,ie.visible)))}),W(this,"afterLinkSeries",{isUpdating:te})}renderSeries(){this.series.forEach(function(te){te.translate(),te.render()})}render(){const te=this,re=te.axes,Z=te.colorAxis,ie=te.renderer,ae=function(be){be.forEach(function(Ce){Ce.visible&&Ce.render()})};let he=0;te.setTitle(),W(te,"beforeMargins"),te.getStacks&&te.getStacks(),te.getMargins(!0),te.setChartSize();const fe=te.plotWidth;re.some(function(be){if(be.horiz&&be.visible&&be.options.labels.enabled&&be.series.length)return he=21,!0}),te.plotHeight=Math.max(te.plotHeight-he,0);const ve=te.plotHeight;re.forEach(function(be){be.setScale()}),te.getAxisMargins();const ge=fe/te.plotWidth>1.1,_e=ve/te.plotHeight>1.05;(ge||_e)&&(re.forEach(function(be){(be.horiz&&ge||!be.horiz&&_e)&&be.setTickInterval(!0)}),te.getMargins()),te.drawChartBox(),te.hasCartesianSeries?ae(re):Z&&Z.length&&ae(Z),te.seriesGroup||(te.seriesGroup=ie.g("series-group").attr({zIndex:3}).shadow(te.options.chart.seriesGroupShadow).add()),te.renderSeries(),te.addCredits(),te.setResponsive&&te.setResponsive(),te.hasRendered=!0}addCredits(te){const re=this,Z=ee(!0,this.options.credits,te);Z.enabled&&!this.credits&&(this.credits=this.renderer.text(Z.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){Z.href&&(S.location.href=Z.href)}).attr({align:Z.position.align,zIndex:8}),re.styledMode||this.credits.css(Z.style),this.credits.add().align(Z.position),this.credits.update=function(ie){re.credits=re.credits.destroy(),re.addCredits(ie)})}destroy(){const te=this,re=te.axes,Z=te.series,ie=te.container,ae=ie&&ie.parentNode;let he;for(W(te,"destroy"),te.renderer.forExport?U(I,te):I[te.index]=void 0,w.chartCount--,te.renderTo.removeAttribute("data-highcharts-chart"),se(te),he=re.length;he--;)re[he]=re[he].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),he=Z.length;he--;)Z[he]=Z[he].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(fe){const ve=te[fe];ve&&ve.destroy&&(te[fe]=ve.destroy())}),ie&&(ie.innerHTML=O.emptyHTML,se(ie),ae&&G(ie)),E(te,function(fe,ve){delete te[ve]})}firstRender(){const te=this,re=te.options;te.getContainer(),te.resetMargins(),te.setChartSize(),te.propFromSeries(),te.getAxes();const Z=R(re.series)?re.series:[];re.series=[],Z.forEach(function(ie){te.initSeries(ie)}),te.linkSeries(),te.setSeriesData(),W(te,"beforeRender"),te.render(),te.pointer.getChartPosition(),!te.renderer.imgCount&&!te.hasLoaded&&te.onload(),te.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(te){te&&typeof this.index<"u"&&te.apply(this,[this])},this),W(this,"load"),W(this,"render"),b(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){const{options:te,title:re}=this;te&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(re&&re.element.textContent||"").replace(/</g,"&lt;")}),te.accessibility&&te.accessibility.enabled===!1||D('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}addSeries(te,re,Z){const ie=this;let ae;return te&&(re=V(re,!0),W(ie,"addSeries",{options:te},function(){ae=ie.initSeries(te),ie.isDirtyLegend=!0,ie.linkSeries(),ae.enabledDataSorting&&ae.setData(te.data,!1),W(ie,"afterAddSeries",{series:ae}),re&&ie.redraw(Z)})),ae}addAxis(te,re,Z,ie){return this.createAxis(re?"xAxis":"yAxis",{axis:te,redraw:Z,animation:ie})}addColorAxis(te,re,Z){return this.createAxis("colorAxis",{axis:te,redraw:re,animation:Z})}createAxis(te,re){const Z=new s(this,re.axis,te);return V(re.redraw,!0)&&this.redraw(re.animation),Z}showLoading(te){const re=this,Z=re.options,ie=Z.loading,ae=function(){he&&f(he,{left:re.plotLeft+"px",top:re.plotTop+"px",width:re.plotWidth+"px",height:re.plotHeight+"px"})};let he=re.loadingDiv,fe=re.loadingSpan;he||(re.loadingDiv=he=l("div",{className:"highcharts-loading highcharts-loading-hidden"},null,re.container)),fe||(re.loadingSpan=fe=l("span",{className:"highcharts-loading-inner"},null,he),h(re,"redraw",ae)),he.className="highcharts-loading",O.setElementHTML(fe,V(te,Z.lang.loading,"")),re.styledMode||(f(he,H(ie.style,{zIndex:10})),f(fe,ie.labelStyle),re.loadingShown||(f(he,{opacity:0,display:""}),M(he,{opacity:ie.style.opacity||.5},{duration:ie.showDuration||0}))),re.loadingShown=!0,ae()}hideLoading(){const te=this.options,re=this.loadingDiv;re&&(re.className="highcharts-loading highcharts-loading-hidden",this.styledMode||M(re,{opacity:0},{duration:te.loading.hideDuration||100,complete:function(){f(re,{display:"none"})}})),this.loadingShown=!1}update(te,re,Z,ie){const ae=this,he={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},fe=te.isResponsiveOptions,ve=[];let ge,_e,be;W(ae,"update",{options:te}),fe||ae.setResponsive(!1,!0),te=v(te,ae.options),ae.userOptions=ee(ae.userOptions,te);const Ce=te.chart;Ce&&(ee(!0,ae.options.chart,Ce),this.setZoomOptions(),"className"in Ce&&ae.setClassName(Ce.className),("inverted"in Ce||"polar"in Ce||"type"in Ce)&&(ae.propFromSeries(),ge=!0),"alignTicks"in Ce&&(ge=!0),"events"in Ce&&P(this,Ce),E(Ce,function(Le,Pe){ae.propsRequireUpdateSeries.indexOf("chart."+Pe)!==-1&&(_e=!0),ae.propsRequireDirtyBox.indexOf(Pe)!==-1&&(ae.isDirtyBox=!0),ae.propsRequireReflow.indexOf(Pe)!==-1&&(fe?ae.isDirtyBox=!0:be=!0)}),!ae.styledMode&&Ce.style&&ae.renderer.setStyle(ae.options.chart.style||{})),!ae.styledMode&&te.colors&&(this.options.colors=te.colors),te.time&&(this.time===k&&(this.time=new p(te.time)),ee(!0,ae.options.time,te.time)),E(te,function(Le,Pe){ae[Pe]&&typeof ae[Pe].update=="function"?ae[Pe].update(Le,!1):typeof ae[he[Pe]]=="function"?ae[he[Pe]](Le):Pe!=="colors"&&ae.collectionsWithUpdate.indexOf(Pe)===-1&&ee(!0,ae.options[Pe],te[Pe]),Pe!=="chart"&&ae.propsRequireUpdateSeries.indexOf(Pe)!==-1&&(_e=!0)}),this.collectionsWithUpdate.forEach(function(Le){te[Le]&&(K(te[Le]).forEach(function(Pe,Ue){const Je=b(Pe.id);let at;Je&&(at=ae.get(Pe.id)),!at&&ae[Le]&&(at=ae[Le][V(Pe.index,Ue)],at&&(Je&&b(at.options.id)||at.options.isInternal)&&(at=void 0)),at&&at.coll===Le&&(at.update(Pe,!1),Z&&(at.touched=!0)),!at&&Z&&ae.collectionsWithInit[Le]&&(ae.collectionsWithInit[Le][0].apply(ae,[Pe].concat(ae.collectionsWithInit[Le][1]||[]).concat([!1])).touched=!0)}),Z&&ae[Le].forEach(function(Pe){!Pe.touched&&!Pe.options.isInternal?ve.push(Pe):delete Pe.touched}))}),ve.forEach(function(Le){Le.chart&&Le.remove&&Le.remove(!1)}),ge&&ae.axes.forEach(function(Le){Le.update({},!1)}),_e&&ae.getSeriesOrderByLinks().forEach(function(Le){Le.chart&&Le.update({},!1)},this);const De=Ce&&Ce.width,Be=Ce&&(Y(Ce.height)?Q(Ce.height,De||ae.chartWidth):Ce.height);be||q(De)&&De!==ae.chartWidth||q(Be)&&Be!==ae.chartHeight?ae.setSize(De,Be,ie):V(re,!0)&&ae.redraw(ie),W(ae,"afterUpdate",{options:te,redraw:re,animation:ie})}setSubtitle(te,re){this.applyDescription("subtitle",te),this.layOutTitles(re)}setCaption(te,re){this.applyDescription("caption",te),this.layOutTitles(re)}showResetZoom(){const te=this,re=C.lang,Z=te.zooming.resetButton,ie=Z.theme,ae=Z.relativeTo==="chart"||Z.relativeTo==="spacingBox"?null:"scrollablePlotBox";function he(){te.zoomOut()}W(this,"beforeShowResetZoom",null,function(){te.resetZoomButton=te.renderer.button(re.resetZoom,null,null,he,ie).attr({align:Z.position.align,title:re.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(Z.position,!1,ae)}),W(this,"afterShowResetZoom")}zoomOut(){W(this,"selection",{resetSelection:!0},this.zoom)}zoom(te){const re=this,Z=re.pointer;let ie=!1,ae;!te||te.resetSelection?(re.axes.forEach(function(fe){ae=fe.zoom()}),Z.initiated=!1):te.xAxis.concat(te.yAxis).forEach(function(fe){const ve=fe.axis,ge=ve.isXAxis;(Z[ge?"zoomX":"zoomY"]&&b(Z.mouseDownX)&&b(Z.mouseDownY)&&re.isInsidePlot(Z.mouseDownX-re.plotLeft,Z.mouseDownY-re.plotTop,{axis:ve})||!b(re.inverted?Z.mouseDownX:Z.mouseDownY))&&(ae=ve.zoom(fe.min,fe.max),ve.displayBtn&&(ie=!0))});const he=re.resetZoomButton;ie&&!he?re.showResetZoom():!ie&&J(he)&&(re.resetZoomButton=he.destroy()),ae&&re.redraw(V(re.options.chart.animation,te&&te.animation,re.pointCount<100))}pan(te,re){const Z=this,ie=Z.hoverPoints,ae=typeof re=="object"?re:{enabled:re,type:"x"},he=Z.options.chart;he&&he.panning&&(he.panning=ae);const fe=ae.type;let ve;W(this,"pan",{originalEvent:te},function(){ie&&ie.forEach(function(be){be.setState()});let ge=Z.xAxis;fe==="xy"?ge=ge.concat(Z.yAxis):fe==="y"&&(ge=Z.yAxis);const _e={};ge.forEach(function(be){if(!be.options.panningEnabled||be.options.isInternal)return;const Ce=be.horiz,De=te[Ce?"chartX":"chartY"],Be=Ce?"mouseDownX":"mouseDownY",Le=Z[Be],Pe=be.minPointOffset||0,Ue=be.reversed&&!Z.inverted||!be.reversed&&Z.inverted?-1:1,Je=be.getExtremes(),at=be.toValue(Le-De,!0)+Pe*Ue,Ge=be.toValue(Le+be.len-De,!0)-(Pe*Ue||be.isXAxis&&be.pointRangePadding||0),er=Ge<at,tr=be.hasVerticalPanning();let Kt=er?Ge:at,_t=er?at:Ge,Ut=be.panningState,Pr;tr&&!be.isXAxis&&(!Ut||Ut.isDirty)&&be.series.forEach(function(hi){const Ia=hi.getProcessedData(!0),Fr=hi.getExtremes(Ia.yData,!0);Ut||(Ut={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),q(Fr.dataMin)&&q(Fr.dataMax)&&(Ut.startMin=Math.min(V(hi.options.threshold,1/0),Fr.dataMin,Ut.startMin),Ut.startMax=Math.max(V(hi.options.threshold,-1/0),Fr.dataMax,Ut.startMax))});const li=Math.min(V(Ut&&Ut.startMin,Je.dataMin),Pe?Je.min:be.toValue(be.toPixels(Je.min)-be.minPixelPadding)),ci=Math.max(V(Ut&&Ut.startMax,Je.dataMax),Pe?Je.max:be.toValue(be.toPixels(Je.max)+be.minPixelPadding));be.panningState=Ut,be.isOrdinal||(Pr=li-Kt,Pr>0&&(_t+=Pr,Kt=li),Pr=_t-ci,Pr>0&&(_t=ci,Kt-=Pr),be.series.length&&Kt!==Je.min&&_t!==Je.max&&Kt>=li&&_t<=ci&&(be.setExtremes(Kt,_t,!1,!1,{trigger:"pan"}),!Z.resetZoomButton&&Kt!==li&&_t!==ci&&fe.match("y")&&(Z.showResetZoom(),be.displayBtn=!1),ve=!0),_e[Be]=De)}),E(_e,(be,Ce)=>{Z[Ce]=be}),ve&&Z.redraw(!1),f(Z.container,{cursor:"move"})})}}return H(le.prototype,{callbacks:[],collectionsWithInit:{xAxis:[le.prototype.addAxis,[!0]],yAxis:[le.prototype.addAxis,[!1]],series:[le.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),le}),a(t,"Extensions/ScrollablePlotArea.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/Axis.js"],t["Core/Chart/Chart.js"],t["Core/Series/Series.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w){const{stop:y}=i,{addEvent:L,createElement:N,defined:A,merge:p,pick:g}=w;L(o,"afterSetChartSize",function(O){let M=this.options.chart.scrollablePlotArea,_=M&&M.minWidth,j=M&&M.minHeight,C,k,F;this.renderer.forExport||(_?(this.scrollablePixelsX=C=Math.max(0,_-this.chartWidth),C&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=p(this.plotBox),this.plotBox.width=this.plotWidth+=C,this.inverted?this.clipBox.height+=C:this.clipBox.width+=C,F={1:{name:"right",value:C}})):j&&(this.scrollablePixelsY=k=Math.max(0,j-this.chartHeight),A(k)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=p(this.plotBox),this.plotBox.height=this.plotHeight+=k,this.inverted?this.clipBox.width+=k:this.clipBox.height+=k,F={2:{name:"bottom",value:k}})),F&&!O.skipAxes&&this.axes.forEach(function(P){F[P.side]?P.getPlotLinePath=function(){let I=F[P.side].name,m=F[P.side].value,B=this[I],T;return this[I]=B-m,T=s.prototype.getPlotLinePath.apply(this,arguments),this[I]=B,T}:(P.setAxisSize(),P.setAxisTranslation())}))}),L(o,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),o.prototype.setUpScrolling=function(){const O={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(O.overflowX="auto"),this.scrollablePixelsY&&(O.overflowY="auto"),this.scrollingParent=N("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=N("div",{className:"highcharts-scrolling"},O,this.scrollingParent);let M;L(this.scrollingContainer,"scroll",()=>{this.pointer&&(delete this.pointer.chartPosition,this.hoverPoint&&(M=this.hoverPoint),this.pointer.runPointActions(void 0,M,!0))}),this.innerContainer=N("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},o.prototype.moveFixedElements=function(){let O=this.container,M=this.fixedRenderer,_=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-credits",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-reset-zoom",".highcharts-drillup-button",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],j;this.scrollablePixelsX&&!this.inverted?j=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?j=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(j=".highcharts-yaxis"),j&&_.push(`${j}:not(.highcharts-radial-axis)`,`${j}-labels:not(.highcharts-radial-axis-labels)`),_.forEach(function(C){[].forEach.call(O.querySelectorAll(C),function(k){(k.namespaceURI===M.SVG_NS?M.box:M.box.parentNode).appendChild(k),k.style.pointerEvents="auto"})})},o.prototype.applyFixed=function(){const O=!this.fixedDiv,M=this.options.chart,_=M.scrollablePlotArea,j=u.getRendererType();let C,k,F;O?(this.fixedDiv=N("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(M.style&&M.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=C=new j(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=C.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":g(_.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),L(this,"afterShowResetZoom",this.moveFixedElements),L(this,"afterApplyDrilldown",this.moveFixedElements),L(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||O)&&(this.scrollableDirty=!1,this.moveFixedElements()),k=this.chartWidth+(this.scrollablePixelsX||0),F=this.chartHeight+(this.scrollablePixelsY||0),y(this.container),this.container.style.width=k+"px",this.container.style.height=F+"px",this.renderer.boxWrapper.attr({width:k,height:F,viewBox:[0,0,k,F].join(" ")}),this.chartBackground.attr({width:k,height:F}),this.scrollingContainer.style.height=this.chartHeight+"px",O&&(_.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*_.scrollPositionX),_.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*_.scrollPositionY));let P=this.axisOffset,I=this.plotTop-P[0]-1,m=this.plotLeft-P[3]-1,B=this.plotTop+this.plotHeight+P[2]+1,T=this.plotLeft+this.plotWidth+P[1]+1,S=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),x=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0),h;this.scrollablePixelsX?h=[["M",0,I],["L",this.plotLeft-1,I],["L",this.plotLeft-1,B],["L",0,B],["Z"],["M",S,I],["L",this.chartWidth,I],["L",this.chartWidth,B],["L",S,B],["Z"]]:this.scrollablePixelsY?h=[["M",m,0],["L",m,this.plotTop-1],["L",T,this.plotTop-1],["L",T,0],["Z"],["M",m,x],["L",m,this.chartHeight],["L",T,this.chartHeight],["L",T,x],["Z"]]:h=[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:h})},L(s,"afterInit",function(){this.chart.scrollableDirty=!0}),L(c,"show",function(){this.chart.scrollableDirty=!0})}),a(t,"Core/Axis/Stacking/StackItem.js",[t["Core/Templating.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o){const{format:c}=i,{series:u}=s,{destroyObjectProperties:w,fireEvent:y,isNumber:L,merge:N,pick:A}=o;class p{constructor(O,M,_,j,C){const k=O.chart.inverted,F=O.reversed;this.axis=O;const P=this.isNegative=!!_!=!!F;this.options=M=M||{},this.x=j,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=C,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:M.align||(k?P?"left":"right":"center"),verticalAlign:M.verticalAlign||(k?"middle":P?"bottom":"top"),y:M.y,x:M.x},this.textAlign=M.textAlign||(k?P?"right":"left":"center")}destroy(){w(this,this.axis)}render(O){const M=this.axis.chart,_=this.options,j=_.format,C=j?c(j,this,M):_.formatter.call(this);if(this.label)this.label.attr({text:C,visibility:"hidden"});else{this.label=M.renderer.label(C,null,void 0,_.shape,void 0,void 0,_.useHTML,!1,"stack-labels");const k={r:_.borderRadius||0,text:C,padding:A(_.padding,5),visibility:"hidden"};M.styledMode||(k.fill=_.backgroundColor,k.stroke=_.borderColor,k["stroke-width"]=_.borderWidth,this.label.css(_.style||{})),this.label.attr(k),this.label.added||this.label.add(O)}this.label.labelrank=M.plotSizeY,y(this,"afterRender")}setOffset(O,M,_,j,C,k){const{alignOptions:F,axis:P,label:I,options:m,textAlign:B}=this,T=P.chart,S=this.getStackBox({xOffset:O,width:M,boxBottom:_,boxTop:j,defaultX:C,xAxis:k}),{verticalAlign:x}=F;if(I&&S){const h=I.getBBox(),n=I.padding;let l=A(m.overflow,"justify")==="justify",f;F.x=m.x||0,F.y=m.y||0;const{x:b,y:v}=this.adjustStackPosition({labelBox:h,verticalAlign:x,textAlign:B});S.x-=b,S.y-=v,I.align(F,!1,S),f=T.isInsidePlot(I.alignAttr.x+F.x+b,I.alignAttr.y+F.y+v),f||(l=!1),l&&u.prototype.justifyDataLabel.call(P,I,F,I.alignAttr,h,S),I.attr({x:I.alignAttr.x,y:I.alignAttr.y,rotation:m.rotation,rotationOriginX:h.width/2,rotationOriginY:h.height/2}),A(!l&&m.crop,!0)&&(f=L(I.x)&&L(I.y)&&T.isInsidePlot(I.x-n+I.width,I.y)&&T.isInsidePlot(I.x+n,I.y)),I[f?"show":"hide"]()}y(this,"afterSetOffset",{xOffset:O,width:M})}adjustStackPosition({labelBox:O,verticalAlign:M,textAlign:_}){const j={bottom:0,middle:1,top:2,right:1,center:0,left:-1},C=j[M],k=j[_];return{x:O.width/2+O.width/2*k,y:O.height/2*C}}getStackBox(O){const M=this,_=this.axis,j=_.chart,{boxTop:C,defaultX:k,xOffset:F,width:P,boxBottom:I}=O,m=_.stacking.usePercentage?100:A(C,this.total,0),B=_.toPixels(m),T=O.xAxis||j.xAxis[0],S=A(k,T.translate(this.x))+F,x=_.toPixels(I||L(_.min)&&_.logarithmic&&_.logarithmic.lin2log(_.min)||0),h=Math.abs(B-x),n=j.inverted,l=M.isNegative;return n?{x:(l?B:B-h)-j.plotLeft,y:T.height-S-P,width:h,height:P}:{x:S+T.transB-j.plotLeft,y:(l?B-h:B)-j.plotTop,width:P,height:h}}}return p}),a(t,"Core/Axis/Stacking/StackingAxis.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/Axis.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(i,s,o,c,u){const{getDeferredAnimation:w}=i,{series:{prototype:y}}=o,{addEvent:L,correctFloat:N,defined:A,destroyObjectProperties:p,fireEvent:g,isArray:O,isNumber:M,objectEach:_,pick:j}=u;function C(){const h=this,n=h.inverted;h.yAxis.forEach(l=>{l.stacking&&l.stacking.stacks&&l.hasVisibleSeries&&(l.stacking.oldStacks=l.stacking.stacks)}),h.series.forEach(l=>{const f=l.xAxis&&l.xAxis.options||{};l.options.stacking&&(l.visible===!0||h.options.chart.ignoreHiddenSeries===!1)&&(l.stackKey=[l.type,j(l.options.stack,""),n?f.top:f.left,n?f.height:f.width].join(","))})}function k(){const h=this.stacking;if(!h)return;const n=h.stacks;_(n,function(l,f){p(l),n[f]=null}),h&&h.stackTotalGroup&&h.stackTotalGroup.destroy()}function F(){this.coll==="yAxis"&&!this.stacking&&(this.stacking=new S(this))}function P(h,n,l,f){return!A(h)||h.x!==n||f&&h.stackKey!==f?h={x:n,index:0,key:f,stackKey:f}:h.index++,h.key=[l,n,h.index].join(","),h}function I(){const h=this,n=h.yAxis,l=h.stackKey,f=n.stacking.stacks,b=h.processedXData,v=h.options.stacking,G=h[v+"Stacker"];let U;G&&[l,"-"+l].forEach(D=>{let H=b.length,z,W,d;for(;H--;)z=b[H],U=h.getStackIndicator(U,z,h.index,D),W=f[D]&&f[D][z],d=W&&W.points[U.key],d&&G.call(h,d,W,H)})}function m(h,n,l){const f=n.total?100/n.total:0;h[0]=N(h[0]*f),h[1]=N(h[1]*f),this.stackedYData[l]=h[1]}function B(){const h=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&this.chart.series.length>1?y.setStackedPoints.call(this,"group"):h&&_(h.stacks,(n,l)=>{l.slice(-5)==="group"&&(_(n,f=>f.destroy()),delete h.stacks[l])})}function T(h){const n=this.chart,l=h||this.options.stacking;if(!l||this.visible!==!0&&n.options.chart.ignoreHiddenSeries!==!1)return;const f=this,b=f.processedXData,v=f.processedYData,G=[],U=v.length,D=f.options,H=D.threshold,z=j(D.startFromThreshold&&H,0),W=D.stack,d=h?`${f.type},${l}`:f.stackKey,R="-"+d,q=f.negStacks,J=l==="group"?n.yAxis[0]:f.yAxis,Y=J.stacking.stacks,ee=J.stacking.oldStacks;let E,V,X,Q,se,K,ne,oe,le;for(J.stacking.stacksTouched+=1,ne=0;ne<U;ne++)oe=b[ne],le=v[ne],E=f.getStackIndicator(E,oe,f.index),K=E.key,V=q&&le<(z?0:H),se=V?R:d,Y[se]||(Y[se]={}),Y[se][oe]||(ee[se]&&ee[se][oe]?(Y[se][oe]=ee[se][oe],Y[se][oe].total=null):Y[se][oe]=new c(J,J.options.stackLabels,!!V,oe,W)),X=Y[se][oe],le!==null?(X.points[K]=X.points[f.index]=[j(X.cumulative,z)],A(X.cumulative)||(X.base=K),X.touched=J.stacking.stacksTouched,E.index>0&&f.singleStacks===!1&&(X.points[K][0]=X.points[f.index+","+oe+",0"][0])):X.points[K]=X.points[f.index]=null,l==="percent"?(Q=V?d:R,q&&Y[Q]&&Y[Q][oe]?(Q=Y[Q][oe],X.total=Q.total=Math.max(Q.total,X.total)+Math.abs(le)||0):X.total=N(X.total+(Math.abs(le)||0))):l==="group"?(O(le)&&(le=le[0]),le!==null&&(X.total=(X.total||0)+1)):X.total=N(X.total+(le||0)),l==="group"?X.cumulative=(X.total||1)-1:X.cumulative=N(j(X.cumulative,z)+(le||0)),le!==null&&(X.points[K].push(X.cumulative),G[ne]=X.cumulative,X.hasValidPoints=!0);l==="percent"&&(J.stacking.usePercentage=!0),l!=="group"&&(this.stackedYData=G),J.stacking.oldStacks={}}class S{constructor(n){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=n}buildStacks(){const n=this,l=n.axis,f=l.series,b=l.options.reversedStacks,v=f.length;let G,U;for(n.usePercentage=!1,U=v;U--;)G=f[b?U:v-U-1],G.setStackedPoints(),G.setGroupedPoints();for(U=0;U<v;U++)f[U].modifyStacks();g(l,"afterBuildStacks")}cleanStacks(){const n=this;let l;n.oldStacks&&(l=n.stacks=n.oldStacks),_(l,function(f){_(f,function(b){b.cumulative=b.total})})}resetStacks(){_(this.stacks,n=>{_(n,(l,f)=>{M(l.touched)&&l.touched<this.stacksTouched?(l.destroy(),delete n[f]):(l.total=null,l.cumulative=null)})})}renderStackTotals(){const n=this,l=n.axis,f=l.chart,b=f.renderer,v=n.stacks,G=l.options.stackLabels&&l.options.stackLabels.animation,U=w(f,G||!1),D=n.stackTotalGroup=n.stackTotalGroup||b.g("stack-labels").attr({zIndex:6,opacity:0}).add();D.translate(f.plotLeft,f.plotTop),_(v,function(H){_(H,function(z){z.render(D)})}),D.animate({opacity:1},U)}}var x;return function(h){const n=[];function l(f,b,v){if(u.pushUnique(n,f)&&(L(f,"init",F),L(f,"destroy",k)),u.pushUnique(n,b)){const G=b.prototype;G.getStacks=C}if(u.pushUnique(n,v)){const G=v.prototype;G.getStackIndicator=P,G.modifyStacks=I,G.percentStacker=m,G.setGroupedPoints=B,G.setStackedPoints=T}}h.compose=l}(x||(x={})),x}),a(t,"Series/Line/LineSeries.js",[t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o){const{defined:c,merge:u}=o;class w extends i{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}drawGraph(){const L=this,N=this.options,A=(this.gappedPath||this.getGraphPath).call(this),p=this.chart.styledMode;let g=[["graph","highcharts-graph"]];p||g[0].push(N.lineColor||this.color||"#cccccc",N.dashStyle),g=L.getZonesGraphs(g),g.forEach(function(O,M){const _=O[0];let j,C=L[_];const k=C?"animate":"attr";C?(C.endX=L.preventGraphAnimation?null:A.xMap,C.animate({d:A})):A.length&&(L[_]=C=L.chart.renderer.path(A).addClass(O[1]).attr({zIndex:1}).add(L.group)),C&&!p&&(j={stroke:O[2],"stroke-width":N.lineWidth||0,fill:L.fillGraph&&L.color||"none"},O[3]?j.dashstyle=O[3]:N.linecap!=="square"&&(j["stroke-linecap"]=j["stroke-linejoin"]="round"),C[k](j).shadow(M<2&&N.shadow)),C&&(C.startX=A.xMap,C.isArea=A.isArea)})}getGraphPath(L,N,A){const p=this,g=p.options,O=[],M=[];let _,j=g.step;L=L||p.points;const C=L.reversed;return C&&L.reverse(),j={right:1,center:2}[j]||j&&3,j&&C&&(j=4-j),L=this.getValidPoints(L,!1,!(g.connectNulls&&!N&&!A)),L.forEach(function(k,F){const P=k.plotX,I=k.plotY,m=L[F-1],B=k.isNull||typeof I!="number";let T;(k.leftCliff||m&&m.rightCliff)&&!A&&(_=!0),B&&!c(N)&&F>0?_=!g.connectNulls:B&&!N?_=!0:(F===0||_?T=[["M",k.plotX,k.plotY]]:p.getPointSpline?T=[p.getPointSpline(L,k,F)]:j?(j===1?T=[["L",m.plotX,I]]:j===2?T=[["L",(m.plotX+P)/2,m.plotY],["L",(m.plotX+P)/2,I]]:T=[["L",P,m.plotY]],T.push(["L",P,I])):T=[["L",P,I]],M.push(k.x),j&&(M.push(k.x),j===2&&M.push(k.x)),O.push.apply(O,T),_=!1)}),O.xMap=M,p.graphPath=O,O}getZonesGraphs(L){return this.zones.forEach(function(N,A){const p=["zone-graph-"+A,"highcharts-graph highcharts-zone-graph-"+A+" "+(N.className||"")];this.chart.styledMode||p.push(N.color||this.color,N.dashStyle||this.options.dashStyle),L.push(p)},this),L}}return w.defaultOptions=u(i.defaultOptions,{legendSymbol:"lineMarker"}),s.registerSeriesType("line",w),w}),a(t,"Series/Area/AreaSeries.js",[t["Core/Color/Color.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o){const{seriesTypes:{line:c}}=s,{extend:u,merge:w,objectEach:y,pick:L}=o;class N extends c{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}drawGraph(){this.areaPath=[],super.drawGraph.apply(this);const p=this,g=this.areaPath,O=this.options,M=this.zones,_=[["area","highcharts-area",this.color,O.fillColor]];M.forEach(function(j,C){_.push(["zone-area-"+C,"highcharts-area highcharts-zone-area-"+C+" "+j.className,j.color||p.color,j.fillColor||O.fillColor])}),_.forEach(function(j){const C=j[0],k={};let F=p[C];const P=F?"animate":"attr";F?(F.endX=p.preventGraphAnimation?null:g.xMap,F.animate({d:g})):(k.zIndex=0,F=p[C]=p.chart.renderer.path(g).addClass(j[1]).add(p.group),F.isArea=!0),p.chart.styledMode||(j[3]?k.fill=j[3]:(k.fill=j[2],k["fill-opacity"]=L(O.fillOpacity,.75))),F[P](k),F.startX=g.xMap,F.shiftUnit=O.step?2:1})}getGraphPath(p){const g=c.prototype.getGraphPath,O=this.options,M=O.stacking,_=this.yAxis,j=[],C=[],k=this.index,F=_.stacking.stacks[this.stackKey],P=O.threshold,I=Math.round(_.getThreshold(O.threshold)),m=L(O.connectNulls,M==="percent"),B=function(v,G,U){const D=p[v],H=M&&F[D.x].points[k],z=D[U+"Null"]||0,W=D[U+"Cliff"]||0;let d,R,q=!0;W||z?(d=(z?H[0]:H[1])+W,R=H[0]+W,q=!!z):!M&&p[G]&&p[G].isNull&&(d=R=P),typeof d<"u"&&(C.push({plotX:T,plotY:d===null?I:_.getThreshold(d),isNull:q,isCliff:!0}),j.push({plotX:T,plotY:R===null?I:_.getThreshold(R),doCurve:!1}))};let T,S,x;p=p||this.points,M&&(p=this.getStackPoints(p));for(let v=0,G=p.length;v<G;++v)M||(p[v].leftCliff=p[v].rightCliff=p[v].leftNull=p[v].rightNull=void 0),S=p[v].isNull,T=L(p[v].rectPlotX,p[v].plotX),x=M?L(p[v].yBottom,I):I,(!S||m)&&(m||B(v,v-1,"left"),S&&!M&&m||(C.push(p[v]),j.push({x:v,plotX:T,plotY:x})),m||B(v,v+1,"right"));const h=g.call(this,C,!0,!0);j.reversed=!0;const n=g.call(this,j,!0,!0),l=n[0];l&&l[0]==="M"&&(n[0]=["L",l[1],l[2]]);const f=h.concat(n);f.length&&f.push(["Z"]);const b=g.call(this,C,!1,m);return f.xMap=h.xMap,this.areaPath=f,b}getStackPoints(p){const g=this,O=[],M=[],_=this.xAxis,j=this.yAxis,C=j.stacking.stacks[this.stackKey],k={},F=j.series,P=F.length,I=j.options.reversedStacks?1:-1,m=F.indexOf(g);if(p=p||this.points,this.options.stacking){for(let T=0;T<p.length;T++)p[T].leftNull=p[T].rightNull=void 0,k[p[T].x]=p[T];y(C,function(T,S){T.total!==null&&M.push(S)}),M.sort(function(T,S){return T-S});const B=F.map(T=>T.visible);M.forEach(function(T,S){let x=0,h,n;if(k[T]&&!k[T].isNull)O.push(k[T]),[-1,1].forEach(function(l){const f=l===1?"rightNull":"leftNull",b=l===1?"rightCliff":"leftCliff",v=C[M[S+l]];let G=0;if(v){let U=m;for(;U>=0&&U<P;){const D=F[U].index;h=v.points[D],h||(D===g.index?k[T][f]=!0:B[U]&&(n=C[T].points[D],n&&(G-=n[1]-n[0]))),U+=I}}k[T][b]=G});else{let l=m;for(;l>=0&&l<P;){const f=F[l].index;if(h=C[T].points[f],h){x=h[1];break}l+=I}x=L(x,0),x=j.translate(x,0,1,0,1),O.push({isNull:!0,plotX:_.translate(T,0,0,0,1),x:T,plotY:x,yBottom:x})}})}return O}}return N.defaultOptions=w(c.defaultOptions,{threshold:0,legendSymbol:"rectangle"}),u(N.prototype,{singleStacks:!1}),s.registerSeriesType("area",N),N}),a(t,"Series/Spline/SplineSeries.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s){const{line:o}=i.seriesTypes,{merge:c,pick:u}=s;class w extends o{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}getPointSpline(L,N,A){const O=N.plotX||0,M=N.plotY||0,_=L[A-1],j=L[A+1];let C,k,F,P;function I(B){return B&&!B.isNull&&B.doCurve!==!1&&!N.isCliff}if(I(_)&&I(j)){const B=_.plotX||0,T=_.plotY||0,S=j.plotX||0,x=j.plotY||0;let h=0;C=(1.5*O+B)/2.5,k=(1.5*M+T)/2.5,F=(1.5*O+S)/2.5,P=(1.5*M+x)/2.5,F!==C&&(h=(P-k)*(F-O)/(F-C)+M-P),k+=h,P+=h,k>T&&k>M?(k=Math.max(T,M),P=2*M-k):k<T&&k<M&&(k=Math.min(T,M),P=2*M-k),P>x&&P>M?(P=Math.max(x,M),k=2*M-P):P<x&&P<M&&(P=Math.min(x,M),k=2*M-P),N.rightContX=F,N.rightContY=P}const m=["C",u(_.rightContX,_.plotX,0),u(_.rightContY,_.plotY,0),u(C,O,0),u(k,M,0),O,M];return _.rightContX=_.rightContY=void 0,m}}return w.defaultOptions=c(o.defaultOptions),i.registerSeriesType("spline",w),w}),a(t,"Series/AreaSpline/AreaSplineSeries.js",[t["Series/Spline/SplineSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o){const{area:c,area:{prototype:u}}=s.seriesTypes,{extend:w,merge:y}=o;class L extends i{constructor(){super(...arguments),this.data=void 0,this.points=void 0,this.options=void 0}}return L.defaultOptions=y(i.defaultOptions,c.defaultOptions),w(L.prototype,{getGraphPath:u.getGraphPath,getStackPoints:u.getStackPoints,drawGraph:u.drawGraph}),s.registerSeriesType("areaspline",L),L}),a(t,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}}),a(t,"Series/Column/ColumnSeries.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Color/Color.js"],t["Series/Column/ColumnSeriesDefaults.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w,y){const{animObject:L}=i,{parse:N}=s,{hasTouch:A,noop:p}=c,{clamp:g,defined:O,extend:M,fireEvent:_,isArray:j,isNumber:C,merge:k,pick:F,objectEach:P,relativeLength:I}=y;class m extends u{constructor(){super(...arguments),this.borderWidth=void 0,this.data=void 0,this.group=void 0,this.options=void 0,this.points=void 0}animate(T){const S=this,x=this.yAxis,h=x.pos,n=S.options,l=this.chart.inverted,f={},b=l?"translateX":"translateY";let v,G;T?(f.scaleY=.001,G=g(x.toPixels(n.threshold),h,h+x.len),l?f.translateX=G-x.len:f.translateY=G,S.clipBox&&S.setClip(),S.group.attr(f)):(v=Number(S.group.attr(b)),S.group.animate({scaleY:1},M(L(S.options.animation),{step:function(U,D){S.group&&(f[b]=v+D.pos*(h-v),S.group.attr(f))}})))}init(T,S){super.init.apply(this,arguments);const x=this;T=x.chart,T.hasRendered&&T.series.forEach(function(h){h.type===x.type&&(h.isDirty=!0)})}getColumnMetrics(){const T=this,S=T.options,x=T.xAxis,h=T.yAxis,n=x.options.reversedStacks,l=x.reversed&&!n||!x.reversed&&n,f={};let b,v=0;S.grouping===!1?v=1:T.chart.series.forEach(function(q){const J=q.yAxis,Y=q.options;let ee;q.type===T.type&&(q.visible||!T.chart.options.chart.ignoreHiddenSeries)&&h.len===J.len&&h.pos===J.pos&&(Y.stacking&&Y.stacking!=="group"?(b=q.stackKey,typeof f[b]>"u"&&(f[b]=v++),ee=f[b]):Y.grouping!==!1&&(ee=v++),q.columnIndex=ee)});const G=Math.min(Math.abs(x.transA)*(x.ordinal&&x.ordinal.slope||S.pointRange||x.closestPointRange||x.tickInterval||1),x.len),U=G*S.groupPadding,D=G-2*U,H=D/(v||1),z=Math.min(S.maxPointWidth||x.len,F(S.pointWidth,H*(1-2*S.pointPadding))),W=(H-z)/2,d=(T.columnIndex||0)+(l?1:0),R=W+(U+d*H-G/2)*(l?-1:1);return T.columnMetrics={width:z,offset:R,paddedWidth:H,columnCount:v},T.columnMetrics}crispCol(T,S,x,h){this.chart;const n=this.borderWidth,l=-(n%2?.5:0);let f,b=n%2?.5:1;this.options.crisp&&(f=Math.round(T+x)+l,T=Math.round(T)+l,x=f-T);const v=Math.round(S+h)+b,G=Math.abs(S)<=.5&&v>.5;return S=Math.round(S)+b,h=v-S,G&&h&&(S-=1,h+=1),{x:T,y:S,width:x,height:h}}adjustForMissingColumns(T,S,x,h){const n=this.options.stacking;if(!x.isNull&&h.columnCount>1){const l=this.yAxis.options.reversedStacks;let f=0,b=l?0:-h.columnCount;P(this.yAxis.stacking&&this.yAxis.stacking.stacks,G=>{if(typeof x.x=="number"){const U=G[x.x.toString()];if(U){const D=U.points[this.index];if(n)D&&(f=b),U.hasValidPoints&&(l?b++:b--);else if(j(D)){let H=Object.keys(U.points).filter(z=>!z.match(",")&&U.points[z]&&U.points[z].length>1).map(parseFloat).sort((z,W)=>W-z);f=H.indexOf(this.index),b=H.length}}}});const v=(b-1)*h.paddedWidth+S;T=(x.plotX||0)+v/2-S-f*h.paddedWidth}return T}translate(){const T=this,S=T.chart,x=T.options,h=T.dense=T.closestPointRange*T.xAxis.transA<2,n=T.borderWidth=F(x.borderWidth,h?0:1),l=T.xAxis,f=T.yAxis,b=x.threshold,v=F(x.minPointLength,5),G=T.getColumnMetrics(),U=G.width,D=T.pointXOffset=G.offset,H=T.dataMin,z=T.dataMax;let W=T.barW=Math.max(U,1+2*n),d=T.translatedThreshold=f.getThreshold(b);S.inverted&&(d-=.5),x.pointPadding&&(W=Math.ceil(W)),u.prototype.translate.apply(T),T.points.forEach(function(R){const q=F(R.yBottom,d),J=999+Math.abs(q),Y=R.plotX||0,ee=g(R.plotY,-J,f.len+J);R.stackBox;let E,V=Math.min(ee,q),X=Math.max(ee,q)-V,Q=U,se=Y+D,K=W;v&&Math.abs(X)<v&&(X=v,E=!f.reversed&&!R.negative||f.reversed&&R.negative,C(b)&&C(z)&&R.y===b&&z<=b&&(f.min||0)<b&&(H!==z||(f.max||0)<=b)&&(E=!E,R.negative=!R.negative),V=Math.abs(V-d)>v?q-v:d-(E?v:0)),O(R.options.pointWidth)&&(Q=K=Math.ceil(R.options.pointWidth),se-=Math.round((Q-U)/2)),x.centerInCategory&&(se=T.adjustForMissingColumns(se,Q,R,G)),R.barX=se,R.pointWidth=Q,R.tooltipPos=S.inverted?[g(f.len+f.pos-S.plotLeft-ee,f.pos-S.plotLeft,f.len+f.pos-S.plotLeft),l.len+l.pos-S.plotTop-se-K/2,X]:[l.left-S.plotLeft+se+K/2,g(ee+f.pos-S.plotTop,f.pos-S.plotTop,f.len+f.pos-S.plotTop),X],R.shapeType=T.pointClass.prototype.shapeType||"roundedRect",R.shapeArgs=T.crispCol(se,R.isNull?d:V,K,R.isNull?0:X)}),_(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(T,S){const x=this.options,h=this.pointAttrToOptions||{},n=h.stroke||"borderColor",l=h["stroke-width"]||"borderWidth";let f,b,v,G=T&&T.color||this.color,U=T&&T[n]||x[n]||G,D=T&&T.options.dashStyle||x.dashStyle,H=T&&T[l]||x[l]||this[l]||0,z=F(T&&T.opacity,x.opacity,1);T&&this.zones.length&&(b=T.getZone(),G=T.options.color||b&&(b.color||T.nonZonedColor)||this.color,b&&(U=b.borderColor||U,D=b.dashStyle||D,H=b.borderWidth||H)),S&&T&&(f=k(x.states[S],T.options.states&&T.options.states[S]||{}),v=f.brightness,G=f.color||typeof v<"u"&&N(G).brighten(f.brightness).get()||G,U=f[n]||U,H=f[l]||H,D=f.dashStyle||D,z=F(f.opacity,z));const W={fill:G,stroke:U,"stroke-width":H,opacity:z};return D&&(W.dashstyle=D),W}drawPoints(T=this.points){const S=this,x=this.chart,h=S.options,n=x.renderer,l=h.animationLimit||250;let f;T.forEach(function(b){const v=b.plotY;let G=b.graphic,U=!!G,D=G&&x.pointCount<l?"animate":"attr";C(v)&&b.y!==null?(f=b.shapeArgs,G&&b.hasNewShapeType()&&(G=G.destroy()),S.enabledDataSorting&&(b.startXPos=S.xAxis.reversed?-(f&&f.width||0):S.xAxis.width),G||(b.graphic=G=n[b.shapeType](f).add(b.group||S.group),G&&S.enabledDataSorting&&x.hasRendered&&x.pointCount<l&&(G.attr({x:b.startXPos}),U=!0,D="animate")),G&&U&&G[D](k(f)),x.styledMode||G[D](S.pointAttribs(b,b.selected&&"select")).shadow(b.allowShadow!==!1&&h.shadow),G&&(G.addClass(b.getClassName(),!0),G.attr({visibility:b.visible?"inherit":"hidden"}))):G&&(b.graphic=G.destroy())})}drawTracker(T=this.points){const S=this,x=S.chart,h=x.pointer,n=function(f){const b=h.getPointFromEvent(f);typeof b<"u"&&S.options.enableMouseTracking&&(h.isDirectTouch=!0,b.onMouseOver(f))};let l;T.forEach(function(f){l=j(f.dataLabels)?f.dataLabels:f.dataLabel?[f.dataLabel]:[],f.graphic&&(f.graphic.element.point=f),l.forEach(function(b){b.div?b.div.point=f:b.element.point=f})}),S._hasTracking||(S.trackerGroups.forEach(function(f){S[f]&&(S[f].addClass("highcharts-tracker").on("mouseover",n).on("mouseout",function(b){h.onTrackerMouseOut(b)}),A&&S[f].on("touchstart",n),!x.styledMode&&S.options.cursor&&S[f].css({cursor:S.options.cursor}))}),S._hasTracking=!0),_(this,"afterDrawTracker")}remove(){const T=this,S=T.chart;S.hasRendered&&S.series.forEach(function(x){x.type===T.type&&(x.isDirty=!0)}),u.prototype.remove.apply(T,arguments)}}return m.defaultOptions=k(u.defaultOptions,o),M(m.prototype,{cropShoulder:0,directTouch:!0,getSymbol:p,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),w.registerSeriesType("column",m),m}),a(t,"Core/Series/DataLabel.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],function(i,s,o){const{getDeferredAnimation:c}=i,{format:u}=s,{defined:w,extend:y,fireEvent:L,isArray:N,isString:A,merge:p,objectEach:g,pick:O,splat:M}=o;var _;return function(j){const C=[];function k(h,n,l,f,b){const v=this,G=this.chart,U=this.isCartesian&&G.inverted,D=this.enabledDataSorting,H=h.plotX,z=h.plotY,W=l.rotation,d=l.align,R=w(H)&&w(z)&&G.isInsidePlot(H,Math.round(z),{inverted:U,paneCoordinates:!0,series:v}),q=Q=>{D&&v.xAxis&&!E&&v.setDataLabelStartPos(h,n,b,R,Q)};let J,Y,ee,E=O(l.overflow,D?"none":"justify")==="justify",V=this.visible&&h.visible!==!1&&w(H)&&(h.series.forceDL||D&&!E||R||O(l.inside,!!this.options.stacking)&&f&&G.isInsidePlot(H,U?f.x+1:f.y+f.height-1,{inverted:U,paneCoordinates:!0,series:v}));const X=h.pos();if(V&&X){W&&n.attr({align:d});let Q=n.getBBox(!0),se=[0,0];if(J=G.renderer.fontMetrics(n).b,f=y({x:X[0],y:Math.round(X[1]),width:0,height:0},f),y(l,{width:Q.width,height:Q.height}),W?(E=!1,Y=G.renderer.rotCorr(J,W),ee={x:f.x+(l.x||0)+f.width/2+Y.x,y:f.y+(l.y||0)+{top:0,middle:.5,bottom:1}[l.verticalAlign]*f.height},se=[Q.x-Number(n.attr("x")),Q.y-Number(n.attr("y"))],q(ee),n[b?"attr":"animate"](ee)):(q(f),n.align(l,void 0,f),ee=n.alignAttr),E&&f.height>=0)this.justifyDataLabel(n,l,ee,Q,f,b);else if(O(l.crop,!0)){let{x:K,y:ne}=ee;K+=se[0],ne+=se[1],V=G.isInsidePlot(K,ne,{paneCoordinates:!0,series:v})&&G.isInsidePlot(K+Q.width,ne+Q.height,{paneCoordinates:!0,series:v})}l.shape&&!W&&n[b?"attr":"animate"]({anchorX:X[0],anchorY:X[1]})}b&&D&&(n.placed=!1),!V&&(!D||E)?(n.hide(),n.placed=!1):n.show()}function F(h,n){const l=n.filter;if(l){const f=l.operator,b=h[l.property],v=l.value;return f===">"&&b>v||f==="<"&&b<v||f===">="&&b>=v||f==="<="&&b<=v||f==="=="&&b==v||f==="==="&&b===v}return!0}function P(h){if(o.pushUnique(C,h)){const n=h.prototype;n.initDataLabelsGroup=I,n.initDataLabels=m,n.alignDataLabel=k,n.drawDataLabels=B,n.justifyDataLabel=T,n.setDataLabelStartPos=x}}j.compose=P;function I(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function m(h){const n=this,l=n.hasRendered||0,f=this.initDataLabelsGroup().attr({opacity:+l});return!l&&f&&(n.visible&&f.show(),n.options.animation?f.animate({opacity:1},h):f.attr({opacity:1})),f}function B(h=this.points){var n,l;const f=this,b=f.chart,v=f.options,G=b.renderer,{backgroundColor:U,plotBackgroundColor:D}=b.options.chart,H=b.options.plotOptions,z=G.getContrast(A(D)&&D||A(U)&&U||"#000000");let W=v.dataLabels,d,R;const q=M(W)[0],J=q.animation,Y=q.defer?c(b,J,f):{defer:0,duration:0};W=S(S((n=H==null?void 0:H.series)===null||n===void 0?void 0:n.dataLabels,(l=H==null?void 0:H[f.type])===null||l===void 0?void 0:l.dataLabels),W),L(this,"drawDataLabels"),(N(W)||W.enabled||f._hasPointLabels)&&(R=this.initDataLabels(Y),h.forEach(ee=>{var E;const V=ee.dataLabels||[];d=M(S(W,ee.dlOptions||((E=ee.options)===null||E===void 0?void 0:E.dataLabels))),d.forEach((Q,se)=>{var K;const ne=Q.enabled&&(!ee.isNull||ee.dataLabelOnNull)&&F(ee,Q),oe=ee.connectors?ee.connectors[se]:ee.connector,le=Q.style||{};let ye,te,re,Z,ie={},ae=V[se],he=!ae;const fe=O(Q.distance,ee.labelDistance);if(ne){if(te=O(Q[ee.formatPrefix+"Format"],Q.format),ye=ee.getLabelConfig(),re=w(te)?u(te,ye,b):(Q[ee.formatPrefix+"Formatter"]||Q.formatter).call(ye,Q),Z=Q.rotation,b.styledMode||(le.color=O(Q.color,le.color,A(f.color)?f.color:void 0,"#000000"),le.color==="contrast"?(ee.contrastColor=G.getContrast(ee.color||f.color),le.color=!w(fe)&&Q.inside||(fe||0)<0||v.stacking?ee.contrastColor:z):delete ee.contrastColor,v.cursor&&(le.cursor=v.cursor)),ie={r:Q.borderRadius||0,rotation:Z,padding:Q.padding,zIndex:1},!b.styledMode){const{backgroundColor:ve,borderColor:ge}=Q;ie.fill=ve==="auto"?ee.color:ve,ie.stroke=ge==="auto"?ee.color:ge,ie["stroke-width"]=Q.borderWidth}g(ie,(ve,ge)=>{typeof ve>"u"&&delete ie[ge]})}if(ae&&(!ne||!w(re)||!!ae.div!=!!Q.useHTML||(!ae.rotation||!Q.rotation)&&ae.rotation!==Q.rotation)&&(ae=void 0,he=!0,oe&&ee.connector&&(ee.connector=ee.connector.destroy(),ee.connectors&&(ee.connectors.length===1?delete ee.connectors:delete ee.connectors[se]))),ne&&w(re)&&(ae?ie.text=re:(ae=Z?G.text(re,0,0,Q.useHTML).addClass("highcharts-data-label"):G.label(re,0,0,Q.shape,void 0,void 0,Q.useHTML,void 0,"data-label"),ae&&ae.addClass(" highcharts-data-label-color-"+ee.colorIndex+" "+(Q.className||"")+(Q.useHTML?" highcharts-tracker":""))),ae)){ae.options=Q,ae.attr(ie),b.styledMode||ae.css(le).shadow(Q.shadow);const ve=Q[ee.formatPrefix+"TextPath"]||Q.textPath;ve&&!Q.useHTML&&(ae.setTextPath(((K=ee.getDataLabelPath)===null||K===void 0?void 0:K.call(ee,ae))||ee.graphic,ve),ee.dataLabelPath&&!ve.enabled&&(ee.dataLabelPath=ee.dataLabelPath.destroy())),ae.added||ae.add(R),f.alignDataLabel(ee,ae,Q,void 0,he),ae.isActive=!0,V[se]&&V[se]!==ae&&V[se].destroy(),V[se]=ae}});let X=V.length;for(;X--;)V[X].isActive?V[X].isActive=!1:(V[X].destroy(),V.splice(X,1));ee.dataLabel=V[0],ee.dataLabels=V})),L(this,"afterDrawDataLabels")}function T(h,n,l,f,b,v){const G=this.chart,U=n.align,D=n.verticalAlign,H=h.box?0:h.padding||0;let{x:z=0,y:W=0}=n,d,R;return d=(l.x||0)+H,d<0&&(U==="right"&&z>=0?(n.align="left",n.inside=!0):z-=d,R=!0),d=(l.x||0)+f.width-H,d>G.plotWidth&&(U==="left"&&z<=0?(n.align="right",n.inside=!0):z+=G.plotWidth-d,R=!0),d=l.y+H,d<0&&(D==="bottom"&&W>=0?(n.verticalAlign="top",n.inside=!0):W-=d,R=!0),d=(l.y||0)+f.height-H,d>G.plotHeight&&(D==="top"&&W<=0?(n.verticalAlign="bottom",n.inside=!0):W+=G.plotHeight-d,R=!0),R&&(n.x=z,n.y=W,h.placed=!v,h.align(n,void 0,b)),R}function S(h,n){let l=[],f;if(N(h)&&!N(n))l=h.map(function(b){return p(b,n)});else if(N(n)&&!N(h))l=n.map(function(b){return p(h,b)});else if(!N(h)&&!N(n))l=p(h,n);else if(N(h)&&N(n))for(f=Math.max(h.length,n.length);f--;)l[f]=p(h[f],n[f]);return l}function x(h,n,l,f,b){const v=this.chart,G=v.inverted,U=this.xAxis,D=U.reversed,H=G?n.height/2:n.width/2,z=h.pointWidth,W=z?z/2:0;n.startXPos=G?b.x:D?-H-W:U.width-H+W,n.startYPos=G?D?this.yAxis.height-H+W:-H-W:b.y,f?n.visibility==="hidden"&&(n.show(),n.attr({opacity:0}).animate({opacity:1})):n.attr({opacity:1}).animate({opacity:0},void 0,n.hide),v.hasRendered&&(l&&n.attr({x:n.startXPos,y:n.startYPos}),n.placed=!0)}}(_||(_={})),_}),a(t,"Series/Column/ColumnDataLabel.js",[t["Core/Series/DataLabel.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o){const{series:c}=s,{merge:u,pick:w}=o;var y;return function(L){const N=[];function A(g,O,M,_,j){let C=this.chart.inverted,k=g.series,F=(k.xAxis?k.xAxis.len:this.chart.plotSizeX)||0,P=(k.yAxis?k.yAxis.len:this.chart.plotSizeY)||0,I=g.dlBox||g.shapeArgs,m=w(g.below,g.plotY>w(this.translatedThreshold,P)),B=w(M.inside,!!this.options.stacking),T;I&&(_=u(I),_.y<0&&(_.height+=_.y,_.y=0),T=_.y+_.height-P,T>0&&T<_.height&&(_.height-=T),C&&(_={x:P-_.y-_.height,y:F-_.x-_.width,width:_.height,height:_.width}),B||(C?(_.x+=m?0:_.width,_.width=0):(_.y+=m?_.height:0,_.height=0))),M.align=w(M.align,!C||B?"center":m?"right":"left"),M.verticalAlign=w(M.verticalAlign,C||B?"middle":m?"top":"bottom"),c.prototype.alignDataLabel.call(this,g,O,M,_,j),M.inside&&g.contrastColor&&O.css({color:g.contrastColor})}function p(g){i.compose(c),o.pushUnique(N,g)&&(g.prototype.alignDataLabel=A)}L.compose=p}(y||(y={})),y}),a(t,"Series/Bar/BarSeries.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o){const{extend:c,merge:u}=o;class w extends i{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}}return w.defaultOptions=u(i.defaultOptions,{}),c(w.prototype,{inverted:!0}),s.registerSeriesType("bar",w),w}),a(t,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),a(t,"Series/Scatter/ScatterSeries.js",[t["Series/Scatter/ScatterSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o){const{column:c,line:u}=s.seriesTypes,{addEvent:w,extend:y,merge:L}=o;class N extends u{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}applyJitter(){const p=this,g=this.options.jitter,O=this.points.length;function M(_){const j=Math.sin(_)*1e4;return j-Math.floor(j)}g&&this.points.forEach(function(_,j){["x","y"].forEach(function(C,k){let F,P="plot"+C.toUpperCase(),I,m,B;g[C]&&!_.isNull&&(F=p[C+"Axis"],B=g[C]*F.transA,F&&!F.isLog&&(I=Math.max(0,_[P]-B),m=Math.min(F.len,_[P]+B),_[P]=I+(m-I)*M(j+k*O),C==="x"&&(_.clientX=_.plotX)))})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return N.defaultOptions=L(u.defaultOptions,i),y(N.prototype,{drawTracker:c.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),w(N,"afterTranslate",function(){this.applyJitter()}),s.registerSeriesType("scatter",N),N}),a(t,"Series/CenteredUtilities.js",[t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,s,o){const{deg2rad:c}=i,{fireEvent:u,isNumber:w,pick:y,relativeLength:L}=o;var N;return function(A){function p(){const O=this.options,M=this.chart,_=2*(O.slicedOffset||0),j=M.plotWidth-2*_,C=M.plotHeight-2*_,k=O.center,F=Math.min(j,C),P=O.thickness;let I,m=O.size,B=O.innerSize||0,T,S;typeof m=="string"&&(m=parseFloat(m)),typeof B=="string"&&(B=parseFloat(B));const x=[y(k[0],"50%"),y(k[1],"50%"),y(m&&m<0?void 0:O.size,"100%"),y(B&&B<0?void 0:O.innerSize||0,"0%")];for(M.angular&&!(this instanceof s)&&(x[3]=0),T=0;T<4;++T)S=x[T],I=T<2||T===2&&/%$/.test(S),x[T]=L(S,[j,C,F,x[2]][T])+(I?_:0);return x[3]>x[2]&&(x[3]=x[2]),w(P)&&P*2<x[2]&&P>0&&(x[3]=x[2]-P*2),u(this,"afterGetCenter",{positions:x}),x}A.getCenter=p;function g(O,M){const _=w(O)?O:0,j=w(M)&&M>_&&M-_<360?M:_+360,C=-90;return{start:c*(_+C),end:c*(j+C)}}A.getStartAndEndRadians=g}(N||(N={})),N}),a(t,"Series/Pie/PiePoint.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],function(i,s,o){const{setAnimation:c}=i,{addEvent:u,defined:w,extend:y,isNumber:L,pick:N,relativeLength:A}=o;class p extends s{constructor(){super(...arguments),this.labelDistance=void 0,this.options=void 0,this.series=void 0}getConnectorPath(){const O=this.labelPosition,M=this.series.options.dataLabels,_=this.connectorShapes;let j=M.connectorShape;return _[j]&&(j=_[j]),j.call(this,{x:O.computed.x,y:O.computed.y,alignment:O.alignment},O.connectorPosition,M)}getTranslate(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}haloPath(O){const M=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(M.x,M.y,M.r+O,M.r+O,{innerR:M.r-1,start:M.start,end:M.end,borderRadius:M.borderRadius})}init(){super.init.apply(this,arguments),this.name=N(this.name,"Slice");const O=M=>{this.slice(M.type==="select")};return u(this,"select",O),u(this,"unselect",O),this}isValid(){return L(this.y)&&this.y>=0}setVisible(O,M){const _=this.series,j=_.chart,C=_.options.ignoreHiddenPoint;M=N(M,C),O!==this.visible&&(this.visible=this.options.visible=O=typeof O>"u"?!this.visible:O,_.options.data[_.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach(k=>{this[k]&&this[k][O?"show":"hide"](O)}),this.legendItem&&j.legend.colorizeItem(this,O),!O&&this.state==="hover"&&this.setState(""),C&&(_.isDirty=!0),M&&j.redraw())}slice(O,M,_){const j=this.series,C=j.chart;c(_,C),M=N(M,!0),this.sliced=this.options.sliced=O=w(O)?O:!this.sliced,j.options.data[j.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return y(p.prototype,{connectorShapes:{fixedOffset:function(g,O,M){const _=O.breakAt,j=O.touchingSliceAt,C=M.softConnector?["C",g.x+(g.alignment==="left"?-5:5),g.y,2*_.x-j.x,2*_.y-j.y,_.x,_.y]:["L",_.x,_.y];return[["M",g.x,g.y],C,["L",j.x,j.y]]},straight:function(g,O){const M=O.touchingSliceAt;return[["M",g.x,g.y],["L",M.x,M.y]]},crookedLine:function(g,O,M){const{breakAt:_,touchingSliceAt:j}=O,{series:C}=this,[k,F,P]=C.center,I=P/2,m=C.chart.plotWidth,B=C.chart.plotLeft,T=g.alignment==="left",{x:S,y:x}=g;let h=_.x;if(M.crookDistance){const l=A(M.crookDistance,1);h=T?k+I+(m+B-k-I)*(1-l):B+(k-I)*l}else h=k+(F-x)*Math.tan((this.angle||0)-Math.PI/2);const n=[["M",S,x]];return(T?h<=S&&h>=_.x:h>=S&&h<=_.x)&&n.push(["L",h,x]),n.push(["L",_.x,_.y],["L",j.x,j.y]),n}}}),p}),a(t,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),a(t,"Series/Pie/PieSeries.js",[t["Series/CenteredUtilities.js"],t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Series/Pie/PiePoint.js"],t["Series/Pie/PieSeriesDefaults.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/Symbols.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w,y,L,N){const{getStartAndEndRadians:A}=i,{noop:p}=o,{clamp:g,extend:O,fireEvent:M,merge:_,pick:j,relativeLength:C}=N;class k extends w{constructor(){super(...arguments),this.center=void 0,this.data=void 0,this.maxLabelDistance=void 0,this.options=void 0,this.points=void 0}animate(P){const I=this,m=I.points,B=I.startAngleRad;P||m.forEach(function(T){const S=T.graphic,x=T.shapeArgs;S&&x&&(S.attr({r:j(T.startR,I.center&&I.center[3]/2),start:B,end:B}),S.animate({r:x.r,start:x.start,end:x.end},I.options.animation))})}drawEmpty(){const P=this.startAngleRad,I=this.endAngleRad,m=this.options;let B,T;this.total===0&&this.center?(B=this.center[0],T=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(B,T,this.center[1]/2,0,P,I).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:L.arc(B,T,this.center[2]/2,0,{start:P,end:I,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":m.borderWidth,fill:m.fillColor||"none",stroke:m.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){const P=this.chart.renderer;this.points.forEach(function(I){I.graphic&&I.hasNewShapeType()&&(I.graphic=I.graphic.destroy()),I.graphic||(I.graphic=P[I.shapeType](I.shapeArgs).add(I.series.group),I.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(P,I,m){const B=this.center,T=this.radii?this.radii[m.index]||0:B[2]/2,S=Math.asin(g((P-B[1])/(T+m.labelDistance),-1,1));return B[0]+(I?-1:1)*(Math.cos(S)*(T+m.labelDistance))+(m.labelDistance>0?(I?-1:1)*this.options.dataLabels.padding:0)}hasData(){return!!this.processedXData.length}redrawPoints(){const P=this,I=P.chart;let m,B,T,S;this.drawEmpty(),P.group&&!I.styledMode&&P.group.shadow(P.options.shadow),P.points.forEach(function(x){const h={};B=x.graphic,!x.isNull&&B?(S=x.shapeArgs,m=x.getTranslate(),I.styledMode||(T=P.pointAttribs(x,x.selected&&"select")),x.delayedRendering?(B.setRadialReference(P.center).attr(S).attr(m),I.styledMode||B.attr(T).attr({"stroke-linejoin":"round"}),x.delayedRendering=!1):(B.setRadialReference(P.center),I.styledMode||_(!0,h,T),_(!0,h,S,m),B.animate(h)),B.attr({visibility:x.visible?"inherit":"hidden"}),B.addClass(x.getClassName(),!0)):B&&(x.graphic=B.destroy())})}sortByAngle(P,I){P.sort(function(m,B){return typeof m.angle<"u"&&(B.angle-m.angle)*I})}translate(P){M(this,"translate"),this.generatePoints();const I=this,m=1e3,B=I.options,T=B.slicedOffset,S=T+(B.borderWidth||0),x=A(B.startAngle,B.endAngle),h=I.startAngleRad=x.start,n=I.endAngleRad=x.end,l=n-h,f=I.points,b=B.dataLabels.distance,v=B.ignoreHiddenPoint,G=f.length;let U,D,H,z,W,d,R,q,J=0;for(P||(I.center=P=I.getCenter()),R=0;R<G;R++){q=f[R],D=h+J*l,q.isValid()&&(!v||q.visible)&&(J+=q.percentage/100),H=h+J*l;const Y={x:P[0],y:P[1],r:P[2]/2,innerR:P[3]/2,start:Math.round(D*m)/m,end:Math.round(H*m)/m};q.shapeType="arc",q.shapeArgs=Y,q.labelDistance=j(q.options.dataLabels&&q.options.dataLabels.distance,b),q.labelDistance=C(q.labelDistance,Y.r),I.maxLabelDistance=Math.max(I.maxLabelDistance||0,q.labelDistance),z=(H+D)/2,z>1.5*Math.PI?z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI),q.slicedTranslation={translateX:Math.round(Math.cos(z)*T),translateY:Math.round(Math.sin(z)*T)},W=Math.cos(z)*P[2]/2,d=Math.sin(z)*P[2]/2,q.tooltipPos=[P[0]+W*.7,P[1]+d*.7],q.half=z<-Math.PI/2||z>Math.PI/2?1:0,q.angle=z,U=Math.min(S,q.labelDistance/5),q.labelPosition={natural:{x:P[0]+W+Math.cos(z)*q.labelDistance,y:P[1]+d+Math.sin(z)*q.labelDistance},computed:{},alignment:q.labelDistance<0?"center":q.half?"right":"left",connectorPosition:{breakAt:{x:P[0]+W+Math.cos(z)*U,y:P[1]+d+Math.sin(z)*U},touchingSliceAt:{x:P[0]+W,y:P[1]+d}}}}M(I,"afterTranslate")}updateTotals(){const P=this.points,I=P.length,m=this.options.ignoreHiddenPoint;let B,T,S=0;for(B=0;B<I;B++)T=P[B],T.isValid()&&(!m||T.visible)&&(S+=T.y);for(this.total=S,B=0;B<I;B++)T=P[B],T.percentage=S>0&&(T.visible||!m)?T.y/S*100:0,T.total=S}}return k.defaultOptions=_(w.defaultOptions,u),O(k.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:s.prototype.drawTracker,getCenter:i.getCenter,getSymbol:p,isCartesian:!1,noSharedTooltip:!0,pointAttribs:s.prototype.pointAttribs,pointClass:c,requireSorting:!1,searchPoint:p,trackerGroups:["group","dataLabelsGroup"]}),y.registerSeriesType("pie",k),k}),a(t,"Series/Pie/PieDataLabel.js",[t["Core/Series/DataLabel.js"],t["Core/Globals.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o,c,u){const{noop:w}=s,{distribute:y}=o,{series:L}=c,{arrayMax:N,clamp:A,defined:p,merge:g,pick:O,relativeLength:M}=u;var _;return function(j){const C=[],k={radialDistributionY:function(B){return B.top+B.distributeBox.pos},radialDistributionX:function(B,T,S,x){return B.getX(S<T.top+2||S>T.bottom-2?x:S,T.half,T)},justify:function(B,T,S){return S[0]+(B.half?-1:1)*(T+B.labelDistance)},alignToPlotEdges:function(B,T,S,x){const h=B.getBBox().width;return T?h+x:S-h-x},alignToConnectors:function(B,T,S,x){let h=0,n;return B.forEach(function(l){n=l.dataLabel.getBBox().width,n>h&&(h=n)}),T?h+x:S-h-x}};function F(B){if(i.compose(L),u.pushUnique(C,B)){const T=B.prototype;T.dataLabelPositioners=k,T.alignDataLabel=w,T.drawDataLabels=P,T.placeDataLabels=I,T.verifyDataLabelOverflow=m}}j.compose=F;function P(){const B=this,T=B.data,S=B.chart,x=B.options.dataLabels||{},h=x.connectorPadding,n=S.plotWidth,l=S.plotHeight,f=S.plotLeft,b=Math.round(S.chartWidth/3),v=B.center,G=v[2]/2,U=v[1],D=[[],[]],H=[0,0,0,0],z=B.dataLabelPositioners;let W,d,R,q,J,Y,ee,E,V,X,Q,se;!B.visible||!x.enabled&&!B._hasPointLabels||(T.forEach(function(K){K.dataLabel&&K.visible&&K.dataLabel.shortened&&(K.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),K.dataLabel.shortened=!1)}),L.prototype.drawDataLabels.apply(B),T.forEach(function(K){K.dataLabel&&(K.visible?(D[K.half].push(K),K.dataLabel._pos=null,!p(x.style.width)&&!p(K.options.dataLabels&&K.options.dataLabels.style&&K.options.dataLabels.style.width)&&K.dataLabel.getBBox().width>b&&(K.dataLabel.css({width:Math.round(b*.7)+"px"}),K.dataLabel.shortened=!0)):(K.dataLabel=K.dataLabel.destroy(),K.dataLabels&&K.dataLabels.length===1&&delete K.dataLabels))}),D.forEach((K,ne)=>{const oe=K.length,le=[];let ye,te,re,Z,ie=0,ae;if(oe)for(B.sortByAngle(K,ne-.5),B.maxLabelDistance>0&&(ye=Math.max(0,U-G-B.maxLabelDistance),te=Math.min(U+G+B.maxLabelDistance,S.plotHeight),K.forEach(function(he){he.labelDistance>0&&he.dataLabel&&(he.top=Math.max(0,U-G-he.labelDistance),he.bottom=Math.min(U+G+he.labelDistance,S.plotHeight),ie=he.dataLabel.getBBox().height||21,he.distributeBox={target:he.labelPosition.natural.y-he.top+ie/2,size:ie,rank:he.y},le.push(he.distributeBox))}),ae=te+ie-ye,y(le,ae,ae/5)),Q=0;Q<oe;Q++){if(W=K[Q],Y=W.labelPosition,q=W.dataLabel,X=W.visible===!1?"hidden":"inherit",re=Y.natural.y,V=re,le&&p(W.distributeBox)&&(typeof W.distributeBox.pos>"u"?X="hidden":(ee=W.distributeBox.size,V=z.radialDistributionY(W))),delete W.positionIndex,x.justify)E=z.justify(W,G,v);else switch(x.alignTo){case"connectors":E=z.alignToConnectors(K,ne,n,f);break;case"plotEdges":E=z.alignToPlotEdges(q,ne,n,f);break;default:E=z.radialDistributionX(B,W,V,re)}q._attr={visibility:X,align:Y.alignment},se=W.options.dataLabels||{},q._pos={x:E+O(se.x,x.x)+({left:h,right:-h}[Y.alignment]||0),y:V+O(se.y,x.y)-q.getBBox().height/2},Y&&(Y.computed.x=E,Y.computed.y=V),O(x.crop,!0)&&(J=q.getBBox().width,Z=null,E-J<h&&ne===1?(Z=Math.round(J-E+h),H[3]=Math.max(Z,H[3])):E+J>n-h&&ne===0&&(Z=Math.round(E+J-n+h),H[1]=Math.max(Z,H[1])),V-ee/2<0?H[0]=Math.max(Math.round(-V+ee/2),H[0]):V+ee/2>l&&(H[2]=Math.max(Math.round(V+ee/2-l),H[2])),q.sideOverflow=Z)}}),(N(H)===0||this.verifyDataLabelOverflow(H))&&(this.placeDataLabels(),this.points.forEach(function(K){if(se=g(x,K.options.dataLabels),d=O(se.connectorWidth,1),d){let ne;R=K.connector,q=K.dataLabel,q&&q._pos&&K.visible&&K.labelDistance>0?(X=q._attr.visibility,ne=!R,ne&&(K.connector=R=S.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+K.colorIndex+(K.className?" "+K.className:"")).add(B.dataLabelsGroup),S.styledMode||R.attr({"stroke-width":d,stroke:se.connectorColor||K.color||"#666666"})),R[ne?"attr":"animate"]({d:K.getConnectorPath()}),R.attr("visibility",X)):R&&(K.connector=R.destroy())}})))}function I(){this.points.forEach(function(B){let T=B.dataLabel,S;T&&B.visible&&(S=T._pos,S?(T.sideOverflow&&(T._attr.width=Math.max(T.getBBox().width-T.sideOverflow,0),T.css({width:T._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),T.shortened=!0),T.attr(T._attr),T[T.moved?"animate":"attr"](S),T.moved=!0):T&&T.attr({y:-9999})),delete B.distributeBox},this)}function m(B){let T=this.center,S=this.options,x=S.center,h=S.minSize||80,n=h,l=S.size!==null;return l||(x[0]!==null?n=Math.max(T[2]-Math.max(B[1],B[3]),h):(n=Math.max(T[2]-B[1]-B[3],h),T[0]+=(B[3]-B[1])/2),x[1]!==null?n=A(n,h,T[2]-Math.max(B[0],B[2])):(n=A(n,h,T[2]-B[0]-B[2]),T[1]+=(B[0]-B[2])/2),n<T[2]?(T[2]=n,T[3]=Math.min(S.thickness?Math.max(0,n-S.thickness*2):Math.max(0,M(S.innerSize||0,n)),n),this.translate(T),this.drawDataLabels&&this.drawDataLabels()):l=!0),l}}(_||(_={})),_}),a(t,"Extensions/OverlappingDataLabels.js",[t["Core/Chart/Chart.js"],t["Core/Utilities.js"]],function(i,s){const{addEvent:o,fireEvent:c,isArray:u,isNumber:w,objectEach:y,pick:L}=s;o(i,"render",function(){let p=this,g=[];(this.labelCollectors||[]).forEach(function(O){g=g.concat(O())}),(this.yAxis||[]).forEach(function(O){O.stacking&&O.options.stackLabels&&!O.options.stackLabels.allowOverlap&&y(O.stacking.stacks,function(M){y(M,function(_){_.label&&g.push(_.label)})})}),(this.series||[]).forEach(function(O){const M=O.options.dataLabels;if(O.visible&&!(M.enabled===!1&&!O._hasPointLabels)){const _=j=>j.forEach(C=>{C.visible&&(u(C.dataLabels)?C.dataLabels:C.dataLabel?[C.dataLabel]:[]).forEach(function(F){const P=F.options;F.labelrank=L(P.labelrank,C.labelrank,C.shapeArgs&&C.shapeArgs.height),P.allowOverlap?(F.oldOpacity=F.opacity,F.newOpacity=1,N(F,p)):g.push(F)})});_(O.nodes||[]),_(O.points)}}),this.hideOverlappingLabels(g)}),i.prototype.hideOverlappingLabels=function(A){let p=this,g=A.length,O=p.renderer,M,_,j,C,k,F,P,I=!1,m=function(T,S){return!(S.x>=T.x+T.width||S.x+S.width<=T.x||S.y>=T.y+T.height||S.y+S.height<=T.y)},B=function(T){let S,x,h,n=T.box?0:T.padding||0,l=0,f=0,b,v;if(T&&(!T.alignAttr||T.placed))return S=T.alignAttr||{x:T.attr("x"),y:T.attr("y")},x=T.parentGroup,T.width||(h=T.getBBox(),T.width=h.width,T.height=h.height,l=O.fontMetrics(T.element).h),b=T.width-2*n,v={left:"0",center:"0.5",right:"1"}[T.alignValue],v?f=+v*b:w(T.x)&&Math.round(T.x)!==T.translateX&&(f=T.x-T.translateX),{x:S.x+(x.translateX||0)+n-(f||0),y:S.y+(x.translateY||0)+n-l,width:T.width-2*n,height:T.height-2*n}};for(_=0;_<g;_++)M=A[_],M&&(M.oldOpacity=M.opacity,M.newOpacity=1,M.absoluteBox=B(M));for(A.sort(function(T,S){return(S.labelrank||0)-(T.labelrank||0)}),_=0;_<g;_++)for(C=A[_],F=C&&C.absoluteBox,j=_+1;j<g;++j)k=A[j],P=k&&k.absoluteBox,F&&P&&C!==k&&C.newOpacity!==0&&k.newOpacity!==0&&C.visibility!=="hidden"&&k.visibility!=="hidden"&&m(F,P)&&((C.labelrank<k.labelrank?C:k).newOpacity=0);A.forEach(function(T){N(T,p)&&(I=!0)}),I&&c(p,"afterHideAllOverlappingLabels")};function N(A,p){let g,O,M=!1;return A&&(O=A.newOpacity,A.oldOpacity!==O&&(A.alignAttr&&A.placed?(A[O?"removeClass":"addClass"]("highcharts-data-label-hidden"),g=function(){p.styledMode||A.css({pointerEvents:O?"auto":"none"})},M=!0,A.alignAttr.opacity=O,A[A.isOld?"animate":"attr"](A.alignAttr,null,g),c(p,"afterHideOverlappingLabel")):A.attr({opacity:O})),A.isOld=!0),M}}),a(t,"Extensions/BorderRadius.js",[t["Core/Defaults.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w){const{defaultOptions:y}=i,{seriesTypes:L}=o,{addEvent:N,extend:A,isObject:p,merge:g,relativeLength:O}=w,M={radius:0,scope:"stack",where:void 0},_=(k,F)=>(p(k)||(k={radius:k||0}),g(M,F,k)),j=(k,F,P)=>{const I=k[F];let m=k[F+1];m[0]==="Z"&&(m=k[0]);let B,T,S;if((I[0]==="M"||I[0]==="L")&&m[0]==="A"?(B=I,T=m,S=!0):I[0]==="A"&&(m[0]==="M"||m[0]==="L")&&(B=m,T=I),B&&T&&T.params){const x=T[1],h=T[5],n=T.params,{start:l,end:f,cx:b,cy:v}=n,G=h?x-P:x+P,U=G?Math.asin(P/G):0,D=h?U:-U,H=Math.cos(U)*G;S?(n.start=l+D,B[1]=b+H*Math.cos(l),B[2]=v+H*Math.sin(l),k.splice(F+1,0,["A",P,P,0,0,1,b+x*Math.cos(n.start),v+x*Math.sin(n.start)])):(n.end=f-D,T[6]=b+x*Math.cos(n.end),T[7]=v+x*Math.sin(n.end),k.splice(F+1,0,["A",P,P,0,0,1,b+H*Math.cos(f),v+H*Math.sin(f)])),T[4]=Math.abs(n.end-n.start)<Math.PI?0:1}};if(c.symbolCustomAttribs.indexOf("borderRadius")===-1){c.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY");const k=u.prototype.symbols.arc;u.prototype.symbols.arc=function(P,I,m,B,T={}){const S=k(P,I,m,B,T),{innerR:x=0,r:h=m,start:n=0,end:l=0}=T;if(T.open||!T.borderRadius)return S;const f=l-n,b=Math.sin(f/2),v=Math.max(Math.min(O(T.borderRadius||0,h-x),(h-x)/2,h*b/(1+b)),0),G=Math.min(v,2*(f/Math.PI)*x);let U=S.length-1;for(;U--;)j(S,U,U>1?G:v);return S};const F=u.prototype.symbols.roundedRect;u.prototype.symbols.roundedRect=function(P,I,m,B,T={}){const S=F(P,I,m,B,T),{r:x=0,brBoxHeight:h=B,brBoxY:n=I}=T,l=I-n,f=n+h-(I+B),b=l-x>-.1?0:x,v=f-x>-.1?0:x,G=Math.max(b&&l,0),U=Math.max(v&&f,0),D=[P+b,I],H=[P+m-b,I],z=[P+m,I+b],W=[P+m,I+B-v],d=[P+m-v,I+B],R=[P+v,I+B],q=[P,I+B-v],J=[P,I+b],Y=(ee,E)=>Math.sqrt(Math.pow(ee,2)-Math.pow(E,2));if(G){const ee=Y(b,b-G);D[0]-=ee,H[0]+=ee,z[1]=J[1]=I+b-G}if(B<b-G){const ee=Y(b,b-G-B);z[0]=W[0]=P+m-b+ee,d[0]=Math.min(z[0],d[0]),R[0]=Math.max(W[0],R[0]),q[0]=J[0]=P+b-ee,z[1]=J[1]=I+B}if(U){const ee=Y(v,v-U);d[0]+=ee,R[0]-=ee,W[1]=q[1]=I+B-v+U}if(B<v-U){const ee=Y(v,v-U-B);z[0]=W[0]=P+m-v+ee,H[0]=Math.min(z[0],H[0]),D[0]=Math.max(W[0],D[0]),q[0]=J[0]=P+v-ee,W[1]=q[1]=I}return S.length=0,S.push(["M",...D],["L",...H],["A",b,b,0,0,1,...z],["L",...W],["A",v,v,0,0,1,...d],["L",...R],["A",v,v,0,0,1,...q],["L",...J],["A",b,b,0,0,1,...D],["Z"]),S},N(L.pie,"afterTranslate",function(){const P=_(this.options.borderRadius);for(const I of this.points){const m=I.shapeArgs;m&&(m.borderRadius=O(P.radius,(m.r||0)-(m.innerR||0)))}}),N(s,"afterColumnTranslate",function(){var P,I;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){const{options:m,yAxis:B}=this,T=m.stacking==="percent",S=(I=(P=y.plotOptions)===null||P===void 0?void 0:P[this.type])===null||I===void 0?void 0:I.borderRadius,x=_(m.borderRadius,p(S)?S:{}),h=B.options.reversed;for(const n of this.points){const{shapeArgs:l}=n;if(n.shapeType==="roundedRect"&&l){const{width:f=0,height:b=0,y:v=0}=l;let G=v,U=b;if(x.scope==="stack"&&n.stackTotal){const W=B.translate(T?100:n.stackTotal,!1,!0,!1,!0),d=B.translate(m.threshold||0,!1,!0,!1,!0),R=this.crispCol(0,Math.min(W,d),0,Math.abs(W-d));G=R.y,U=R.height}const D=(n.negative?-1:1)*(h?-1:1)===-1;let H=x.where;!H&&this.is("waterfall")&&Math.abs((n.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(H="all"),H||(H="end");const z=Math.min(O(x.radius,f),f/2,H==="all"?b/2:1/0)||0;H==="end"&&(D&&(G-=z),U+=z),A(l,{brBoxHeight:U,brBoxY:G,r:z})}}}},{order:9})}return{optionsToObject:_}}),a(t,"Core/Responsive.js",[t["Core/Utilities.js"]],function(i){const{diffObjects:s,extend:o,find:c,isArray:u,isObject:w,merge:y,objectEach:L,pick:N,splat:A,uniqueKey:p}=i;var g;return function(O){const M=[];function _(k){return i.pushUnique(M,k)&&o(k.prototype,{matchResponsiveRule:j,setResponsive:C}),k}O.compose=_;function j(k,F){const P=k.condition;(P.callback||function(){return this.chartWidth<=N(P.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=N(P.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=N(P.minWidth,0)&&this.chartHeight>=N(P.minHeight,0)}).call(this)&&F.push(k._id)}function C(k,F){const P=this.options.responsive,I=this.currentResponsive;let m=[],B;!F&&P&&P.rules&&P.rules.forEach(x=>{typeof x._id>"u"&&(x._id=p()),this.matchResponsiveRule(x,m)},this);const T=y(...m.map(x=>c((P||{}).rules||[],h=>h._id===x)).map(x=>x&&x.chartOptions));T.isResponsiveOptions=!0,m=m.toString()||void 0;const S=I&&I.ruleIds;m!==S&&(I&&this.update(I.undoOptions,k,!0),m?(B=s(T,this.options,!0,this.collectionsWithUpdate),B.isResponsiveOptions=!0,this.currentResponsive={ruleIds:m,mergedOptions:T,undoOptions:B},this.update(T,k,!0)):this.currentResponsive=void 0)}}(g||(g={})),g}),a(t,"masters/highcharts.src.js",[t["Core/Globals.js"],t["Core/Utilities.js"],t["Core/Defaults.js"],t["Core/Animation/Fx.js"],t["Core/Animation/AnimationUtilities.js"],t["Core/Renderer/HTML/AST.js"],t["Core/Templating.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Renderer/HTML/HTMLElement.js"],t["Core/Renderer/HTML/HTMLRenderer.js"],t["Core/Axis/Axis.js"],t["Core/Axis/DateTimeAxis.js"],t["Core/Axis/LogarithmicAxis.js"],t["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],t["Core/Axis/Tick.js"],t["Core/Tooltip.js"],t["Core/Series/Point.js"],t["Core/Pointer.js"],t["Core/Legend/Legend.js"],t["Core/Chart/Chart.js"],t["Core/Axis/Stacking/StackingAxis.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Series/Column/ColumnSeries.js"],t["Series/Column/ColumnDataLabel.js"],t["Series/Pie/PieSeries.js"],t["Series/Pie/PieDataLabel.js"],t["Core/Series/DataLabel.js"],t["Core/Responsive.js"],t["Core/Color/Color.js"],t["Core/Time.js"]],function(i,s,o,c,u,w,y,L,N,A,p,g,O,M,_,j,C,k,F,P,I,m,B,T,S,x,h,n,l,f,b,v,G,U){const D=i;return D.animate=u.animate,D.animObject=u.animObject,D.getDeferredAnimation=u.getDeferredAnimation,D.setAnimation=u.setAnimation,D.stop=u.stop,D.timers=c.timers,D.AST=w,D.Axis=O,D.Chart=m,D.chart=m.chart,D.Fx=c,D.Legend=I,D.PlotLineOrBand=j,D.Point=F,D.Pointer=P,D.Series=S,D.StackItem=T,D.SVGElement=N,D.SVGRenderer=A,D.Templating=y,D.Tick=C,D.Time=U,D.Tooltip=k,D.Color=G,D.color=G.parse,g.compose(A),p.compose(N),P.compose(m),I.compose(m),D.defaultOptions=o.defaultOptions,D.getOptions=o.getOptions,D.time=o.defaultTime,D.setOptions=o.setOptions,D.dateFormat=y.dateFormat,D.format=y.format,D.numberFormat=y.numberFormat,D.addEvent=s.addEvent,D.arrayMax=s.arrayMax,D.arrayMin=s.arrayMin,D.attr=s.attr,D.clearTimeout=s.clearTimeout,D.correctFloat=s.correctFloat,D.createElement=s.createElement,D.css=s.css,D.defined=s.defined,D.destroyObjectProperties=s.destroyObjectProperties,D.discardElement=s.discardElement,D.distribute=L.distribute,D.erase=s.erase,D.error=s.error,D.extend=s.extend,D.extendClass=s.extendClass,D.find=s.find,D.fireEvent=s.fireEvent,D.getMagnitude=s.getMagnitude,D.getStyle=s.getStyle,D.inArray=s.inArray,D.isArray=s.isArray,D.isClass=s.isClass,D.isDOMElement=s.isDOMElement,D.isFunction=s.isFunction,D.isNumber=s.isNumber,D.isObject=s.isObject,D.isString=s.isString,D.keys=s.keys,D.merge=s.merge,D.normalizeTickInterval=s.normalizeTickInterval,D.objectEach=s.objectEach,D.offset=s.offset,D.pad=s.pad,D.pick=s.pick,D.pInt=s.pInt,D.relativeLength=s.relativeLength,D.removeEvent=s.removeEvent,D.seriesType=x.seriesType,D.splat=s.splat,D.stableSort=s.stableSort,D.syncTimeout=s.syncTimeout,D.timeUnits=s.timeUnits,D.uniqueKey=s.uniqueKey,D.useSerialIds=s.useSerialIds,D.wrap=s.wrap,n.compose(h),b.compose(S),M.compose(O),_.compose(O),f.compose(l),j.compose(O),v.compose(m),B.compose(O,m,S),k.compose(P),D}),a(t,"Core/Axis/BrokenAxis.js",[t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(i,s){const{addEvent:o,find:c,fireEvent:u,isArray:w,isNumber:y,pick:L}=s;var N;return function(A){const p=[];function g(m,B){if(s.pushUnique(p,m)&&(m.keepProps.push("brokenAxis"),o(m,"init",j),o(m,"afterInit",O),o(m,"afterSetTickPositions",_),o(m,"afterSetOptions",M)),s.pushUnique(p,B)){const T=B.prototype;T.drawBreaks=F,T.gappedPath=P,o(B,"afterGeneratePoints",C),o(B,"afterRender",k)}return m}A.compose=g;function O(){typeof this.brokenAxis<"u"&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function M(){const m=this;m.brokenAxis&&m.brokenAxis.hasBreaks&&(m.options.ordinal=!1)}function _(){const m=this,B=m.brokenAxis;if(B&&B.hasBreaks){const T=m.tickPositions,S=m.tickPositions.info,x=[];for(let h=0;h<T.length;h++)B.isInAnyBreak(T[h])||x.push(T[h]);m.tickPositions=x,m.tickPositions.info=S}}function j(){const m=this;m.brokenAxis||(m.brokenAxis=new I(m))}function C(){const{isDirty:m,options:{connectNulls:B},points:T,xAxis:S,yAxis:x}=this;if(m){let h=T.length;for(;h--;){const n=T[h],f=!(n.y===null&&B===!1)&&(S&&S.brokenAxis&&S.brokenAxis.isInAnyBreak(n.x,!0)||x&&x.brokenAxis&&x.brokenAxis.isInAnyBreak(n.y,!0));n.visible=f?!1:n.options.visible!==!1}}}function k(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,L(this.pointArrayMap,["y"]))}function F(m,B){const T=this,S=T.points;let x,h,n,l;if(m&&m.brokenAxis&&m.brokenAxis.hasBreaks){const f=m.brokenAxis;B.forEach(function(b){x=f&&f.breakArray||[],h=m.isXAxis?m.min:L(T.options.threshold,m.min),S.forEach(function(v){l=L(v["stack"+b.toUpperCase()],v[b]),x.forEach(function(G){y(h)&&y(l)&&(n=!1,h<G.from&&l>G.to||h>G.from&&l<G.from?n="pointBreak":(h<G.from&&l>G.from&&l<G.to||h>G.from&&l>G.to&&l<G.from)&&(n="pointInBreak"),n&&u(m,n,{point:v,brk:G}))})})})}}function P(){const m=this.currentDataGrouping,B=m&&m.gapSize,T=this.points.slice(),S=this.yAxis;let x=this.options.gapSize,h=T.length-1,n;if(x&&h>0){this.options.gapUnit!=="value"&&(x*=this.basePointRange),B&&B>x&&B>=this.basePointRange&&(x=B);let l,f;for(;h--;)if(f&&f.visible!==!1||(f=T[h+1]),l=T[h],!(f.visible===!1||l.visible===!1)){if(f.x-l.x>x){const b=(l.x+f.x)/2;T.splice(h+1,0,{isNull:!0,x:b}),S.stacking&&this.options.stacking&&(n=S.stacking.stacks[this.stackKey][b]=new i(S,S.options.stackLabels,!1,b,this.stack),n.total=0)}f=l}}return this.getGraphPath(T)}class I{static isInBreak(B,T){const S=B.repeat||1/0,x=B.from,h=B.to-B.from,n=T>=x?(T-x)%S:S-(x-T)%S;let l;return B.inclusive?l=n<=h:l=n<h&&n!==0,l}static lin2Val(B){const S=this.brokenAxis,x=S&&S.breakArray;if(!x||!y(B))return B;let h=B,n,l;for(l=0;l<x.length&&(n=x[l],!(n.from>=h));l++)(n.to<h||I.isInBreak(n,h))&&(h+=n.len);return h}static val2Lin(B){const S=this.brokenAxis,x=S&&S.breakArray;if(!x||!y(B))return B;let h=B,n,l;for(l=0;l<x.length;l++)if(n=x[l],n.to<=B)h-=n.len;else{if(n.from>=B)break;if(I.isInBreak(n,B)){h-=B-n.from;break}}return h}constructor(B){this.hasBreaks=!1,this.axis=B}findBreakAt(B,T){return c(T,function(S){return S.from<B&&B<S.to})}isInAnyBreak(B,T){const S=this,x=S.axis,h=x.options.breaks||[];let n=h.length,l,f,b;if(n&&y(B)){for(;n--;)I.isInBreak(h[n],B)&&(l=!0,f||(f=L(h[n].showPoints,!x.isXAxis)));l&&T?b=l&&!f:b=l}return b}setBreaks(B,T){const S=this,x=S.axis,h=w(B)&&!!B.length;x.isDirty=S.hasBreaks!==h,S.hasBreaks=h,B!==x.options.breaks&&(x.options.breaks=x.userOptions.breaks=B),x.forceRedraw=!0,x.series.forEach(function(n){n.isDirty=!0}),!h&&x.val2lin===I.val2Lin&&(delete x.val2lin,delete x.lin2val),h&&(x.userOptions.ordinal=!1,x.lin2val=I.lin2Val,x.val2lin=I.val2Lin,x.setExtremes=function(n,l,f,b,v){if(S.hasBreaks){const G=this.options.breaks||[];let U;for(;U=S.findBreakAt(n,G);)n=U.to;for(;U=S.findBreakAt(l,G);)l=U.from;l<n&&(l=n)}x.constructor.prototype.setExtremes.call(this,n,l,f,b,v)},x.setAxisTranslation=function(){if(x.constructor.prototype.setAxisTranslation.call(this),S.unitLength=void 0,S.hasBreaks){const n=x.options.breaks||[],l=[],f=[],b=L(x.pointRangePadding,0);let v=0,G,U,D=x.userMin||x.min,H=x.userMax||x.max,z,W;n.forEach(function(d){U=d.repeat||1/0,y(D)&&y(H)&&(I.isInBreak(d,D)&&(D+=d.to%U-D%U),I.isInBreak(d,H)&&(H-=H%U-d.from%U))}),n.forEach(function(d){if(z=d.from,U=d.repeat||1/0,y(D)&&y(H)){for(;z-U>D;)z-=U;for(;z<D;)z+=U;for(W=z;W<H;W+=U)l.push({value:W,move:"in"}),l.push({value:W+d.to-d.from,move:"out",size:d.breakSize})}}),l.sort(function(d,R){return d.value===R.value?(d.move==="in"?0:1)-(R.move==="in"?0:1):d.value-R.value}),G=0,z=D,l.forEach(function(d){G+=d.move==="in"?1:-1,G===1&&d.move==="in"&&(z=d.value),G===0&&y(z)&&(f.push({from:z,to:d.value,len:d.value-z-(d.size||0)}),v+=d.value-z-(d.size||0))}),S.breakArray=f,y(D)&&y(H)&&y(x.min)&&(S.unitLength=H-D-v+b,u(x,"afterBreaks"),x.staticScale?x.transA=x.staticScale:S.unitLength&&(x.transA*=(H-x.min+b)/S.unitLength),b&&(x.minPixelPadding=x.transA*(x.minPointOffset||0)),x.min=D,x.max=H)}}),L(T,!0)&&x.chart.redraw()}}A.Additions=I}(N||(N={})),N}),a(t,"masters/modules/broken-axis.src.js",[t["Core/Globals.js"],t["Core/Axis/BrokenAxis.js"]],function(i,s){const o=i;s.compose(o.Axis,o.Series)}),a(t,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}}),a(t,"Extensions/DataGrouping/ApproximationDefaults.js",[t["Extensions/DataGrouping/ApproximationRegistry.js"],t["Core/Utilities.js"]],function(i,s){const{arrayMax:o,arrayMin:c,correctFloat:u,extend:w,isNumber:y}=s;function L(F){const P=F.length;let I=C(F);return y(I)&&P&&(I=u(I/P)),I}function N(){const F=[];return[].forEach.call(arguments,function(P){F.push(L(P))}),typeof F[0]>"u"?void 0:F}function A(F){return F.length?F[F.length-1]:F.hasNulls?null:void 0}function p(F){return F.length?o(F):F.hasNulls?null:void 0}function g(F,P,I){if(F=i.high(F),P=i.low(P),I=i.close(I),y(F)||y(P)||y(I))return[F,P,I]}function O(F){return F.length?c(F):F.hasNulls?null:void 0}function M(F,P,I,m){if(F=i.open(F),P=i.high(P),I=i.low(I),m=i.close(m),y(F)||y(P)||y(I)||y(m))return[F,P,I,m]}function _(F){return F.length?F[0]:F.hasNulls?null:void 0}function j(F,P){if(F=i.low(F),P=i.high(P),y(F)||y(P))return[F,P];if(F===null&&P===null)return null}function C(F){let P=F.length,I;if(!P&&F.hasNulls)I=null;else if(P)for(I=0;P--;)I+=F[P];return I}const k={average:L,averages:N,close:A,high:p,hlc:g,low:O,ohlc:M,open:_,range:j,sum:C};return w(i,k),k}),a(t,"Extensions/DataGrouping/DataGroupingDefaults.js",[],function(){return{common:{groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %e %b, %H:%M:%S.%L","%A, %e %b, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %e %b, %H:%M:%S","%A, %e %b, %H:%M:%S","-%H:%M:%S"],minute:["%A, %e %b, %H:%M","%A, %e %b, %H:%M","-%H:%M"],hour:["%A, %e %b, %H:%M","%A, %e %b, %H:%M","-%H:%M"],day:["%A, %e %b %Y","%A, %e %b","-%A, %e %b %Y"],week:["Week from %A, %e %b %Y","%A, %e %b","-%A, %e %b %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},seriesSpecific:{line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},hlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]]}}),a(t,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[t["Extensions/DataGrouping/DataGroupingDefaults.js"],t["Core/Utilities.js"]],function(i,s){const{addEvent:o,extend:c,merge:u,pick:w}=s,y=[];let L;function N(_){const j=this,C=j.series;C.forEach(function(k){k.groupPixelWidth=void 0}),C.forEach(function(k){k.groupPixelWidth=j.getGroupPixelWidth&&j.getGroupPixelWidth(),k.groupPixelWidth&&(k.hasProcessed=!0),k.applyGrouping(!!_.hasExtremesChanged)})}function A(_){L=_,s.pushUnique(y,_)&&(o(_,"afterSetScale",g),o(_,"postProcessData",N),c(_.prototype,{applyGrouping:N,getGroupPixelWidth:p,setDataGrouping:O}))}function p(){const _=this.series;let j=_.length,C=0,k=!1,F,P;for(;j--;)P=_[j].options.dataGrouping,P&&(C=Math.max(C,w(P.groupPixelWidth,i.common.groupPixelWidth)),F=(_[j].processedXData||_[j].data).length,(_[j].groupPixelWidth||F>this.chart.plotSizeX/C||F&&P.forced)&&(k=!0));return k?C:0}function g(){this.series.forEach(function(_){_.hasProcessed=!1})}function O(_,j){const C=this;let k;if(j=w(j,!0),_||(_={forced:!1,units:null}),this instanceof L)for(k=this.series.length;k--;)this.series[k].update({dataGrouping:_},!1);else this.chart.options.series.forEach(function(F){F.dataGrouping=typeof _=="boolean"?_:u(_,F.dataGrouping)});C.ordinal&&(C.ordinal.slope=void 0),j&&this.chart.redraw()}return{compose:A}}),a(t,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[t["Extensions/DataGrouping/ApproximationRegistry.js"],t["Extensions/DataGrouping/DataGroupingDefaults.js"],t["Core/Axis/DateTimeAxis.js"],t["Core/Defaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w){const{series:{prototype:y}}=u,{addEvent:L,defined:N,error:A,extend:p,isNumber:g,merge:O,pick:M}=w,_=y.generatePoints,j=[];function C(n,l){N(l[0])&&g(n.min)&&g(n.dataMin)&&l[0]<n.min&&((!N(n.options.min)&&n.min<=n.dataMin||n.min===n.dataMin)&&(n.min=Math.min(l[0],n.min)),n.dataMin=Math.min(l[0],n.dataMin)),N(l[l.length-1])&&g(n.max)&&g(n.dataMax)&&l[l.length-1]>n.max&&((!N(n.options.max)&&g(n.dataMax)&&n.max>=n.dataMax||n.max===n.dataMax)&&(n.max=Math.max(l[l.length-1],n.max)),n.dataMax=Math.max(l[l.length-1],n.dataMax))}function k(n,l,f){const b=n.options,v=b.dataGrouping,G=n.currentDataGrouping&&n.currentDataGrouping.gapSize;let U;if(v&&n.xData&&G&&n.groupMap){const D=l.length-1,H=v.anchor,z=M(v.firstAnchor,H),W=M(v.lastAnchor,H);if(H&&H!=="start"){const d=G*{middle:.5,end:1}[H];for(U=l.length-1;U--&&U>0;)l[U]+=d}if(z&&z!=="start"&&n.xData[0]>=l[0]){const d=n.groupMap[0].start,R=n.groupMap[0].length;let q;g(d)&&g(R)&&(q=d+(R-1)),l[0]={middle:l[0]+.5*G,end:l[0]+G,firstPoint:n.xData[0],lastPoint:q&&n.xData[q]}[z]}if(W&&W!=="start"&&G&&l[D]>=f-G){const d=n.groupMap[n.groupMap.length-1].start;l[D]={middle:l[D]+.5*G,end:l[D]+G,firstPoint:d&&n.xData[d],lastPoint:n.xData[n.xData.length-1]}[W]}}}function F(n){const l=this,f=l.chart,b=l.options,v=b.dataGrouping,G=l.allowDG!==!1&&v&&M(v.enabled,f.options.isStock),U=l.visible||!f.options.chart.ignoreHiddenSeries,D=this.currentDataGrouping;let H,z,W=!1;G&&!l.requireSorting&&(l.requireSorting=W=!0);const d=x(l,n)===!1||!G;if(W&&(l.requireSorting=!1),!d){l.destroyGroupedData();const R=v.groupAll?l.xData:l.processedXData,q=v.groupAll?l.yData:l.processedYData,J=f.plotSizeX,Y=l.xAxis,ee=Y.options.ordinal,E=l.groupPixelWidth;let V,X;if(E&&R&&R.length&&J){X=!0,l.isDirty=!0,l.points=null;const Q=Y.getExtremes(),se=Q.min,K=Q.max,ne=ee&&Y.ordinal&&Y.ordinal.getGroupIntervalFactor(se,K,l)||1,oe=E*(K-se)/J*ne,le=Y.getTimeTicks(o.Additions.prototype.normalizeTimeTickInterval(oe,v.units||s.units),Math.min(se,R[0]),Math.max(K,R[R.length-1]),Y.options.startOfWeek,R,l.closestPointRange),ye=y.groupData.apply(l,[R,q,le,v.approximation]);let te=ye.groupedXData,re=ye.groupedYData,Z=0;for(v&&v.smoothed&&te.length&&(v.firstAnchor="firstPoint",v.anchor="middle",v.lastAnchor="lastPoint",A(32,!1,f,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),k(l,te,K),V=1;V<le.length;V++)(!le.info.segmentStarts||le.info.segmentStarts.indexOf(V)===-1)&&(Z=Math.max(le[V]-le[V-1],Z));H=le.info,H.gapSize=Z,l.closestPointRange=le.info.totalRange,l.groupMap=ye.groupMap,U&&C(Y,te),v.groupAll&&(l.allGroupedData=re,z=l.cropData(te,re,Y.min,Y.max,1),te=z.xData,re=z.yData,l.cropStart=z.start),l.processedXData=te,l.processedYData=re}else l.groupMap=null;l.hasGroupedData=X,l.currentDataGrouping=H,l.preventGraphAnimation=(D&&D.totalRange)!==(H&&H.totalRange)}}function P(n){const l=n.prototype.pointClass;w.pushUnique(j,l)&&L(l,"update",function(){if(this.dataGroup)return A(24,!1,this.series.chart),!1}),w.pushUnique(j,n)&&(L(n,"afterSetOptions",S),L(n,"destroy",I),p(n.prototype,{applyGrouping:F,destroyGroupedData:I,generatePoints:m,getDGApproximation:B,groupData:T}))}function I(){this.groupedData&&(this.groupedData.forEach(function(n,l){n&&(this.groupedData[l]=n.destroy?n.destroy():null)},this),this.groupedData.length=0)}function m(){_.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function B(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")||this.options.cumulative?"sum":"average"}function T(n,l,f,b){const v=this,G=v.data,U=v.options&&v.options.data,D=[],H=[],z=[],W=n.length,d=!!l,R=[],q=v.pointArrayMap,J=q&&q.length,Y=["x"].concat(q||["y"]),ee=this.options.dataGrouping&&this.options.dataGrouping.groupAll;let E,V,X,Q=0,se=0;const K=typeof b=="function"?b:b&&i[b]?i[b]:i[v.getDGApproximation&&v.getDGApproximation()||"average"];if(J){let oe=q.length;for(;oe--;)R.push([])}else R.push([]);const ne=J||1;for(let oe=0;oe<=W;oe++)if(!(n[oe]<f[0])){for(;typeof f[Q+1]<"u"&&n[oe]>=f[Q+1]||oe===W;){E=f[Q],v.dataGroupInfo={start:ee?se:v.cropStart+se,length:R[0].length},X=K.apply(v,R),v.pointClass&&!N(v.dataGroupInfo.options)&&(v.dataGroupInfo.options=O(v.pointClass.prototype.optionsToObject.call({series:v},v.options.data[v.cropStart+se])),Y.forEach(function(le){delete v.dataGroupInfo.options[le]})),typeof X<"u"&&(D.push(E),H.push(X),z.push(v.dataGroupInfo)),se=oe;for(let le=0;le<ne;le++)R[le].length=0,R[le].hasNulls=!1;if(Q+=1,oe===W)break}if(oe===W)break;if(q){const le=v.options.dataGrouping&&v.options.dataGrouping.groupAll?oe:v.cropStart+oe,ye=G&&G[le]||v.pointClass.prototype.applyOptions.apply({series:v},[U[le]]);let te;for(let re=0;re<J;re++)te=ye[q[re]],g(te)?R[re].push(te):te===null&&(R[re].hasNulls=!0)}else V=d?l[oe]:null,g(V)?R[0].push(V):V===null&&(R[0].hasNulls=!0)}return{groupedXData:D,groupedYData:H,groupMap:z}}function S(n){const l=n.options,f=this.type,b=this.chart.options.plotOptions,v=this.useCommonDataGrouping&&s.common,G=s.seriesSpecific;let U=c.defaultOptions.plotOptions[f].dataGrouping;if(b&&(G[f]||v)){const D=this.chart.rangeSelector;U||(U=O(s.common,G[f])),l.dataGrouping=O(v,U,b.series&&b.series.dataGrouping,b[f].dataGrouping,this.userOptions.dataGrouping,!l.isInternal&&D&&g(D.selected)&&D.buttonOptions[D.selected].dataGrouping)}}function x(n,l){return!(n.isCartesian&&!n.isDirty&&!n.xAxis.isDirty&&!n.yAxis.isDirty&&!l)}return{compose:P,groupData:T}}),a(t,"Extensions/DataGrouping/DataGrouping.js",[t["Extensions/DataGrouping/DataGroupingAxisComposition.js"],t["Extensions/DataGrouping/DataGroupingDefaults.js"],t["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],function(i,s,o,c,u){const{format:w}=c,{addEvent:y,extend:L,isNumber:N}=u,A=[];function p(M,_,j){i.compose(M),o.compose(_),j&&u.pushUnique(A,j)&&y(j,"headerFormatter",g)}function g(M){const _=this.chart,j=_.time,C=M.labelConfig,k=C.series,F=k.options,P=k.tooltipOptions,I=F.dataGrouping,m=k.xAxis;let B=P.xDateFormat,T,S,x,h,n,l=P[M.isFooter?"footerFormat":"headerFormat"];m&&m.options.type==="datetime"&&I&&N(C.key)&&(S=k.currentDataGrouping,x=I.dateTimeLabelFormats||s.common.dateTimeLabelFormats,S?(h=x[S.unitName],S.count===1?B=h[0]:(B=h[1],T=h[2])):!B&&x&&m.dateTime&&(B=m.dateTime.getXDateFormat(C.x,P.dateTimeLabelFormats)),n=j.dateFormat(B,C.key),T&&(n+=j.dateFormat(T,C.key+S.totalRange-1)),k.chart.styledMode&&(l=this.styledModeFormat(l)),M.text=w(l,{point:L(C.point,{key:n}),series:k},_),M.preventDefault())}return{compose:p,groupData:o.groupData}}),a(t,"masters/modules/datagrouping.src.js",[t["Core/Globals.js"],t["Extensions/DataGrouping/ApproximationDefaults.js"],t["Extensions/DataGrouping/ApproximationRegistry.js"],t["Extensions/DataGrouping/DataGrouping.js"]],function(i,s,o,c){const u=i;u.dataGrouping={approximationDefaults:s,approximations:o},c.compose(u.Axis,u.Series,u.Tooltip)}),a(t,"Extensions/MouseWheelZoom/MouseWheelZoom.js",[t["Core/Utilities.js"]],function(i){const{addEvent:s,isObject:o,pick:c,defined:u,merge:w}=i,y=[],L={enabled:!0,sensitivity:1.1},N=C=>o(C)?w(L,C):w(L,{enabled:u(C)?C:!0}),A=function(C,k){return C.x+C.width>k.x+k.width&&(C.width>k.width?(C.width=k.width,C.x=k.x):C.x=k.x+k.width-C.width),C.width>k.width&&(C.width=k.width),C.x<k.x&&(C.x=k.x),C.y+C.height>k.y+k.height&&(C.height>k.height?(C.height=k.height,C.y=k.y):C.y=k.y+k.height-C.height),C.height>k.height&&(C.height=k.height),C.y<k.y&&(C.y=k.y),C};let p,g;const O=function(C,k,F,P,I,m,B){const T=C.xAxis[0],S=C.yAxis[0],x=c(B.type,C.options.chart.zooming.type,"x"),h=/x/.test(x),n=/y/.test(x);if(u(T.max)&&u(T.min)&&u(S.max)&&u(S.min)&&u(T.dataMax)&&u(T.dataMin)&&u(S.dataMax)&&u(S.dataMin)){if(n){u(p)&&clearTimeout(p);const{startOnTick:X,endOnTick:Q}=S.options;g||(g={startOnTick:X,endOnTick:Q}),(X||Q)&&S.setOptions({startOnTick:!1,endOnTick:!1}),p=setTimeout(()=>{if(g){S.setOptions(g);const{min:se,max:K}=S.getExtremes();S.forceRedraw=!0,S.setExtremes(se,K),g=void 0}},400)}if(C.inverted){const X=S.pos+S.len;F=T.toValue(m),P=S.toValue(I);const Q=I;I=m,m=X-Q+S.pos}let l=I?(I-T.pos)/T.len:.5;(T.reversed&&!C.inverted||C.inverted&&!T.reversed)&&(l=1-l);let f=1-(m?(m-S.pos)/S.len:.5);S.reversed&&(f=1-f);const b=T.max-T.min,v=c(F,T.min+b/2),G=b*k,U=S.max-S.min,D=c(P,S.min+U/2),H=U*k,z=v-G*l,W=D-H*f,d=T.dataMax-T.dataMin,R=S.dataMax-S.dataMin,q=T.dataMin-d*T.options.minPadding,J=d+d*T.options.minPadding+d*T.options.maxPadding,Y=S.dataMin-R*S.options.minPadding,ee=R+R*S.options.minPadding+R*S.options.maxPadding,E=A({x:z,y:W,width:G,height:H},{x:q,y:Y,width:J,height:ee}),V=E.x<=q&&E.width>=J&&E.y<=Y&&E.height>=ee;u(k)&&!V?(h&&T.setExtremes(E.x,E.x+E.width,!1),n&&S.setExtremes(E.y,E.y+E.height,!1)):(h&&T.setExtremes(void 0,void 0,!1),n&&S.setExtremes(void 0,void 0,!1)),C.redraw(!1)}};function M(){const C=this,k=N(C.options.chart.zooming.mouseWheel);k.enabled&&s(this.container,"wheel",F=>{if(F=this.pointer.normalize(F),C.isInsidePlot(F.chartX-C.plotLeft,F.chartY-C.plotTop)){const P=c(k.sensitivity,1.1),I=F.detail||(F.deltaY||0)/120;O(C,Math.pow(P,I),C.xAxis[0].toValue(F.chartX),C.yAxis[0].toValue(F.chartY),F.chartX,F.chartY,k)}F.preventDefault&&F.preventDefault()})}function _(C){y.indexOf(C)===-1&&(y.push(C),s(C,"afterGetContainer",M))}return{compose:_}}),a(t,"masters/modules/mouse-wheel-zoom.src.js",[t["Core/Globals.js"],t["Extensions/MouseWheelZoom/MouseWheelZoom.js"]],function(i,s){const o=i;s.compose(o.Chart)}),a(t,"Series/DataModifyComposition.js",[t["Core/Axis/Axis.js"],t["Core/Series/Point.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,s,o,c){const{prototype:{tooltipFormatter:u}}=s,{addEvent:w,arrayMax:y,arrayMin:L,correctFloat:N,defined:A,isArray:p,isNumber:g,isString:O,pick:M}=c;var _;return function(j){const C=[];function k(l,f,b){if(c.pushUnique(C,l)){const v=l.prototype;v.setCompare=B,v.setCumulative=x,w(l,"afterInit",I),w(l,"afterGetExtremes",m),w(l,"afterProcessData",T)}if(c.pushUnique(C,f)){const v=f.prototype;v.setCompare=S,v.setModifier=F,v.setCumulative=h}if(c.pushUnique(C,b)){const v=b.prototype;v.tooltipFormatter=P}return l}j.compose=k;function F(l,f,b){this.isXAxis||(this.series.forEach(function(v){l==="compare"&&typeof f!="boolean"?v.setCompare(f,!1):l==="cumulative"&&!O(f)&&v.setCumulative(f,!1)}),M(b,!0)&&this.chart.redraw())}function P(l){const f=this,{numberFormatter:b}=f.series.chart,v=function(G){l=l.replace("{point."+G+"}",(f[G]>0&&G==="change"?"+":"")+b(f[G],M(f.series.tooltipOptions.changeDecimals,2)))};return A(f.change)&&v("change"),A(f.cumulativeSum)&&v("cumulativeSum"),u.apply(this,[l])}function I(){const l=this.options.compare;let f;(l==="percent"||l==="value"||this.options.cumulative)&&(f=new n(this),l==="percent"||l==="value"?f.initCompare(l):f.initCumulative()),this.dataModify=f}function m(l){const f=l.dataExtremes,b=f.activeYData;if(this.dataModify&&f){let v;this.options.compare?v=[this.dataModify.modifyValue(f.dataMin),this.dataModify.modifyValue(f.dataMax)]:this.options.cumulative&&p(b)&&b.length>=2&&(v=n.getCumulativeExtremes(b)),v&&(f.dataMin=L(v),f.dataMax=y(v))}}function B(l,f){this.options.compare=this.userOptions.compare=l,this.update({},M(f,!0)),this.dataModify&&(l==="value"||l==="percent")?this.dataModify.initCompare(l):this.points.forEach(b=>{delete b.change})}function T(){const l=this;if(l.xAxis&&l.processedYData&&l.dataModify){const f=l.processedXData,b=l.processedYData,v=b.length,G=l.options.compareStart===!0?0:1;let U=-1,D;for(l.pointArrayMap&&(U=l.pointArrayMap.indexOf(l.options.pointValKey||l.pointValKey||"y")),D=0;D<v-G;D++){const H=b[D]&&U>-1?b[D][U]:b[D];if(g(H)&&H!==0&&f[D+G]>=(l.xAxis.min||0)){l.dataModify.compareValue=H;break}}}}function S(l,f){this.setModifier("compare",l,f)}function x(l,f){l=M(l,!1),this.options.cumulative=this.userOptions.cumulative=l,this.update({},M(f,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(b=>{delete b.cumulativeSum})}function h(l,f){this.setModifier("cumulative",l,f)}class n{constructor(f){this.series=f}modifyValue(){return 0}static getCumulativeExtremes(f){let b=1/0,v=-1/0;return f.reduce((G,U)=>{const D=G+U;return b=Math.min(b,D,G),v=Math.max(v,D,G),D}),[b,v]}initCompare(f){this.modifyValue=function(b,v){b===null&&(b=0);const G=this.compareValue;if(typeof b<"u"&&typeof G<"u"){if(f==="value")b-=G;else{const U=this.series.options.compareBase;b=100*(b/G)-(U===100?0:100)}if(typeof v<"u"){const U=this.series.points[v];U&&(U.change=b)}return b}return 0}}initCumulative(){this.modifyValue=function(f,b){if(f===null&&(f=0),f!==void 0&&b!==void 0){const v=b>0?this.series.points[b-1]:null;v&&v.cumulativeSum&&(f=N(v.cumulativeSum+f));const G=this.series.points[b];return G&&(G.cumulativeSum=f),f}return 0}}}j.Additions=n}(_||(_={})),_}),a(t,"Core/Axis/NavigatorAxisComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){const{isTouchDevice:o}=i,{addEvent:c,correctFloat:u,defined:w,isNumber:y,pick:L}=s,N=[];function A(){const O=this;O.navigatorAxis||(O.navigatorAxis=new g(O))}function p(O){console.log("onAxisZoom");const M=this,_=M.chart,j=_.options,C=j.navigator,k=M.navigatorAxis,F=_.zooming.pinchType,P=j.rangeSelector,I=_.zooming.type;if(M.isXAxis&&(C&&C.enabled||P&&P.enabled)){if(I==="y")O.zoomed=!1;else if((!o&&I==="xy"||o&&F==="xy")&&M.options.range){const m=k.previousZoom;w(O.newMin)?k.previousZoom=[M.min,M.max]:m&&(O.newMin=m[0],O.newMax=m[1],k.previousZoom=void 0)}}typeof O.zoomed<"u"&&O.preventDefault()}class g{static compose(M){s.pushUnique(N,M)&&(M.keepProps.push("navigatorAxis"),c(M,"init",A),c(M,"zoom",p))}constructor(M){this.axis=M}destroy(){this.axis=void 0}toFixedRange(M,_,j,C){const k=this.axis,F=k.chart;let P=L(j,k.translate(M,!0,!k.horiz)),I=L(C,k.translate(_,!0,!k.horiz));const m=F&&F.fixedRange,B=(k.pointRange||0)/2;return w(j)||(P=u(P+B)),w(C)||(I=u(I-B)),m&&k.dataMin&&k.dataMax&&(I>=k.dataMax&&(P=u(k.dataMax-m)),P<=k.dataMin&&(I=u(k.dataMin+m))),(!y(P)||!y(I))&&(P=I=void 0),{min:P,max:I}}}return g}),a(t,"Stock/Navigator/NavigatorDefaults.js",[t["Core/Color/Color.js"],t["Core/Series/SeriesRegistry.js"]],function(i,s){const{parse:o}=i,{seriesTypes:c}=s;return{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:o("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:typeof c.areaspline>"u"?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),a(t,"Stock/Navigator/NavigatorSymbols.js",[],function(){function i(o,c,u,w,y={}){const L=y.width?y.width/2:u,N=Math.round(L/3)+.5;return w=y.height||w,[["M",-L-1,.5],["L",L,.5],["L",L,w+.5],["L",-L-1,w+.5],["L",-L-1,.5],["M",-N,4],["L",-N,w-3],["M",N-1,4],["L",N-1,w-3]]}return{"navigator-handle":i}}),a(t,"Stock/Navigator/NavigatorComposition.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/NavigatorAxisComposition.js"],t["Stock/Navigator/NavigatorDefaults.js"],t["Stock/Navigator/NavigatorSymbols.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w,y){const{defaultOptions:L,setOptions:N}=i,{isTouchDevice:A}=s,{getRendererType:p}=w,{addEvent:g,extend:O,merge:M,pick:_}=y,j=[];let C;function k(n,l,f,b){o.compose(n),C=f,y.pushUnique(j,l)&&(l.prototype.callbacks.push(T),g(l,"afterAddSeries",F),g(l,"afterSetChartSize",P),g(l,"afterUpdate",I),g(l,"beforeRender",m),g(l,"beforeShowResetZoom",B),g(l,"update",S)),y.pushUnique(j,b)&&g(b,"afterUpdate",x),y.pushUnique(j,p)&&O(p().prototype.symbols,u),y.pushUnique(j,N)&&O(L,{navigator:c})}function F(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function P(){var n;const l=this.legend,f=this.navigator;let b,v,G;if(f){b=l&&l.options,v=f.xAxis,G=f.yAxis;const{scrollbarHeight:U,scrollButtonSize:D}=f;this.inverted?(f.left=f.opposite?this.chartWidth-U-f.height:this.spacing[3]+U,f.top=this.plotTop+D):(f.left=_(v.left,this.plotLeft+D),f.top=f.navigatorOptions.top||this.chartHeight-f.height-U-(((n=this.scrollbar)===null||n===void 0?void 0:n.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(b&&b.verticalAlign==="bottom"&&b.layout!=="proximate"&&b.enabled&&!b.floating?l.legendHeight+_(b.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),v&&G&&(this.inverted?v.options.left=G.options.left=f.left:v.options.top=G.options.top=f.top,v.setAxisSize(),G.setAxisSize())}}function I(n){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new C(this),_(n.redraw,!0)&&this.redraw(n.animation))}function m(){const n=this.options;(n.navigator.enabled||n.scrollbar.enabled)&&(this.scroller=this.navigator=new C(this))}function B(){const n=this.options,l=n.navigator,f=n.rangeSelector;if((l&&l.enabled||f&&f.enabled)&&(!A&&this.zooming.type==="x"||A&&this.zooming.pinchType==="x"))return!1}function T(n){const l=n.navigator;if(l&&n.xAxis[0]){const f=n.xAxis[0].getExtremes();l.render(f.min,f.max)}}function S(n){const l=n.options.navigator||{},f=n.options.scrollbar||{};!this.navigator&&!this.scroller&&(l.enabled||f.enabled)&&(M(!0,this.options.navigator,l),M(!0,this.options.scrollbar,f),delete n.options.navigator,delete n.options.scrollbar)}function x(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:k}}),a(t,"Core/Axis/ScrollbarAxis.js",[t["Core/Utilities.js"]],function(i){const{addEvent:s,defined:o,pick:c}=i,u=[];class w{static compose(L,N){if(!i.pushUnique(u,L))return L;const A=p=>{const g=c(p.options&&p.options.min,p.min),O=c(p.options&&p.options.max,p.max);return{axisMin:g,axisMax:O,scrollMin:o(p.dataMin)?Math.min(g,p.min,p.dataMin,c(p.threshold,1/0)):g,scrollMax:o(p.dataMax)?Math.max(O,p.max,p.dataMax,c(p.threshold,-1/0)):O}};return s(L,"afterInit",function(){const p=this;p.options&&p.options.scrollbar&&p.options.scrollbar.enabled&&(p.options.scrollbar.vertical=!p.horiz,p.options.startOnTick=p.options.endOnTick=!1,p.scrollbar=new N(p.chart.renderer,p.options.scrollbar,p.chart),s(p.scrollbar,"changed",function(g){let{axisMin:O,axisMax:M,scrollMin:_,scrollMax:j}=A(p),C=j-_,k,F;if(!(!o(O)||!o(M)))if(p.horiz&&!p.reversed||!p.horiz&&p.reversed?(k=_+C*this.to,F=_+C*this.from):(k=_+C*(1-this.from),F=_+C*(1-this.to)),this.shouldUpdateExtremes(g.DOMType)){const P=g.DOMType==="mousemove"||g.DOMType==="touchmove"?!1:void 0;p.setExtremes(F,k,!0,P,g)}else this.setRange(this.from,this.to)}))}),s(L,"afterRender",function(){let p=this,{scrollMin:g,scrollMax:O}=A(p),M=p.scrollbar,_=p.axisTitleMargin+(p.titleOffset||0),j=p.chart.scrollbarsOffsets,C=p.options.margin||0,k,F,P;if(M){if(p.horiz)p.opposite||(j[1]+=_),M.position(p.left,p.top+p.height+2+j[1]-(p.opposite?C:0),p.width,p.height),p.opposite||(j[1]+=C),k=1;else{p.opposite&&(j[0]+=_);let I;M.options.opposite?I=p.left+p.width+2+j[0]-(p.opposite?0:C):I=p.opposite?0:C,M.position(I,p.top,p.width,p.height),p.opposite&&(j[0]+=C),k=0}j[k]+=M.size+(M.options.margin||0),isNaN(g)||isNaN(O)||!o(p.min)||!o(p.max)||p.min===p.max?M.setRange(0,1):(F=(p.min-g)/(O-g),P=(p.max-g)/(O-g),p.horiz&&!p.reversed||!p.horiz&&p.reversed?M.setRange(F,P):M.setRange(1-P,1-F))}}),s(L,"afterGetOffset",function(){const p=this,g=p.scrollbar,O=g&&!g.options.opposite,M=p.horiz?2:O?3:1;g&&(p.chart.scrollbarsOffsets=[0,0],p.chart.axisOffset[M]+=g.size+(g.options.margin||0))}),L}}return w}),a(t,"Stock/Scrollbar/ScrollbarDefaults.js",[t["Core/Globals.js"]],function(i){return{height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1}}),a(t,"Stock/Scrollbar/Scrollbar.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/ScrollbarAxis.js"],t["Stock/Scrollbar/ScrollbarDefaults.js"],t["Core/Utilities.js"]],function(i,s,o,c,u){const{defaultOptions:w}=i,{addEvent:y,correctFloat:L,defined:N,destroyObjectProperties:A,fireEvent:p,merge:g,pick:O,removeEvent:M}=u;class _{static compose(C){o.compose(C,_)}static swapXY(C,k){return k&&C.forEach(F=>{const P=F.length;let I;for(let m=0;m<P;m+=2)I=F[m+1],typeof I=="number"&&(F[m+1]=F[m+2],F[m+2]=I)}),C}constructor(C,k,F){this._events=[],this.chart=void 0,this.chartX=0,this.chartY=0,this.from=0,this.group=void 0,this.options=void 0,this.renderer=void 0,this.scrollbar=void 0,this.scrollbarButtons=[],this.scrollbarGroup=void 0,this.scrollbarLeft=0,this.scrollbarRifles=void 0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.track=void 0,this.trackBorderWidth=1,this.userOptions=void 0,this.x=0,this.y=0,this.init(C,k,F)}addEvents(){const C=this.options.inverted?[1,0]:[0,1],k=this.scrollbarButtons,F=this.scrollbarGroup.element,P=this.track.element,I=this.mouseDownHandler.bind(this),m=this.mouseMoveHandler.bind(this),B=this.mouseUpHandler.bind(this),T=[[k[C[0]].element,"click",this.buttonToMinClick.bind(this)],[k[C[1]].element,"click",this.buttonToMaxClick.bind(this)],[P,"click",this.trackClick.bind(this)],[F,"mousedown",I],[F.ownerDocument,"mousemove",m],[F.ownerDocument,"mouseup",B]];s.hasTouch&&T.push([F,"touchstart",I],[F.ownerDocument,"touchmove",m],[F.ownerDocument,"touchend",B]),T.forEach(function(S){y.apply(null,S)}),this._events=T}buttonToMaxClick(C){const k=this,F=(k.to-k.from)*O(k.options.step,.2);k.updatePosition(k.from+F,k.to+F),p(k,"changed",{from:k.from,to:k.to,trigger:"scrollbar",DOMEvent:C})}buttonToMinClick(C){const k=this,F=L(k.to-k.from)*O(k.options.step,.2);k.updatePosition(L(k.from-F),L(k.to-F)),p(k,"changed",{from:k.from,to:k.to,trigger:"scrollbar",DOMEvent:C})}cursorToScrollbarPosition(C){const k=this,F=k.options,P=F.minWidth>k.calculatedWidth?F.minWidth:0;return{chartX:(C.chartX-k.x-k.xOffset)/(k.barWidth-P),chartY:(C.chartY-k.y-k.yOffset)/(k.barWidth-P)}}destroy(){const C=this,k=C.chart.scroller;C.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(F){C[F]&&C[F].destroy&&(C[F]=C[F].destroy())}),k&&C===k.scrollbar&&(k.scrollbar=null,A(k.scrollbarButtons))}drawScrollbarButton(C){const k=this,F=k.renderer,P=k.scrollbarButtons,I=k.options,m=k.size,B=F.g().add(k.group);if(P.push(B),I.buttonsEnabled){const T=F.rect().addClass("highcharts-scrollbar-button").add(B);k.chart.styledMode||T.attr({stroke:I.buttonBorderColor,"stroke-width":I.buttonBorderWidth,fill:I.buttonBackgroundColor}),T.attr(T.crisp({x:-.5,y:-.5,width:m+1,height:m+1,r:I.buttonBorderRadius},T.strokeWidth()));const S=F.path(_.swapXY([["M",m/2+(C?-1:1),m/2-3],["L",m/2+(C?-1:1),m/2+3],["L",m/2+(C?2:-2),m/2]],I.vertical)).addClass("highcharts-scrollbar-arrow").add(P[C]);k.chart.styledMode||S.attr({fill:I.buttonArrowColor})}}init(C,k,F){const P=this;P.scrollbarButtons=[],P.renderer=C,P.userOptions=k,P.options=g(c,w.scrollbar,k),P.options.margin=O(P.options.margin,10),P.chart=F,P.size=O(P.options.size,P.options.height),k.enabled&&(P.render(),P.addEvents())}mouseDownHandler(C){const k=this,F=k.chart.pointer.normalize(C),P=k.cursorToScrollbarPosition(F);k.chartX=P.chartX,k.chartY=P.chartY,k.initPositions=[k.from,k.to],k.grabbedCenter=!0}mouseMoveHandler(C){const k=this,F=k.chart.pointer.normalize(C),P=k.options,I=P.vertical?"chartY":"chartX",m=k.initPositions||[];let B,T,S;k.grabbedCenter&&(!C.touches||C.touches[0][I]!==0)&&(T=k.cursorToScrollbarPosition(F)[I],B=k[I],S=T-B,k.hasDragged=!0,k.updatePosition(m[0]+S,m[1]+S),k.hasDragged&&p(k,"changed",{from:k.from,to:k.to,trigger:"scrollbar",DOMType:C.type,DOMEvent:C}))}mouseUpHandler(C){const k=this;k.hasDragged&&p(k,"changed",{from:k.from,to:k.to,trigger:"scrollbar",DOMType:C.type,DOMEvent:C}),k.grabbedCenter=k.hasDragged=k.chartX=k.chartY=null}position(C,k,F,P){const I=this,m=I.options,{buttonsEnabled:B,margin:T=0,vertical:S}=m,x=I.rendered?"animate":"attr";let h=P,n=0;I.group.show(),I.x=C,I.y=k+this.trackBorderWidth,I.width=F,I.height=P,I.xOffset=h,I.yOffset=n,S?(I.width=I.yOffset=F=n=I.size,I.xOffset=h=0,I.yOffset=n=B?I.size:0,I.barWidth=P-(B?F*2:0),I.x=C=C+T):(I.height=P=I.size,I.xOffset=h=B?I.size:0,I.barWidth=F-(B?P*2:0),I.y=I.y+T),I.group[x]({translateX:C,translateY:I.y}),I.track[x]({width:F,height:P}),I.scrollbarButtons[1][x]({translateX:S?0:F-h,translateY:S?P-n:0})}removeEvents(){this._events.forEach(function(C){M.apply(null,C)}),this._events.length=0}render(){const C=this,k=C.renderer,F=C.options,P=C.size,I=C.chart.styledMode,m=k.g("scrollbar").attr({zIndex:F.zIndex}).hide().add();C.group=m,C.track=k.rect().addClass("highcharts-scrollbar-track").attr({r:F.trackBorderRadius||0,height:P,width:P}).add(m),I||C.track.attr({fill:F.trackBackgroundColor,stroke:F.trackBorderColor,"stroke-width":F.trackBorderWidth});const B=C.trackBorderWidth=C.track.strokeWidth();C.track.attr({x:-B%2/2,y:-B%2/2}),C.scrollbarGroup=k.g().add(m),C.scrollbar=k.rect().addClass("highcharts-scrollbar-thumb").attr({height:P-B,width:P-B,r:F.barBorderRadius||0}).add(C.scrollbarGroup),C.scrollbarRifles=k.path(_.swapXY([["M",-3,P/4],["L",-3,2*P/3],["M",0,P/4],["L",0,2*P/3],["M",3,P/4],["L",3,2*P/3]],F.vertical)).addClass("highcharts-scrollbar-rifles").add(C.scrollbarGroup),I||(C.scrollbar.attr({fill:F.barBackgroundColor,stroke:F.barBorderColor,"stroke-width":F.barBorderWidth}),C.scrollbarRifles.attr({stroke:F.rifleColor,"stroke-width":1})),C.scrollbarStrokeWidth=C.scrollbar.strokeWidth(),C.scrollbarGroup.translate(-C.scrollbarStrokeWidth%2/2,-C.scrollbarStrokeWidth%2/2),C.drawScrollbarButton(0),C.drawScrollbarButton(1)}setRange(C,k){const F=this,P=F.options,I=P.vertical,m=P.minWidth,B=F.barWidth,T=this.rendered&&!this.hasDragged&&!(this.chart.navigator&&this.chart.navigator.hasDragged)?"animate":"attr";if(!N(B))return;const S=B*Math.min(k,1);let x,h;C=Math.max(C,0),x=Math.ceil(B*C),F.calculatedWidth=h=L(S-x),h<m&&(x=(B-m+h)*C,h=m);const n=Math.floor(x+F.xOffset+F.yOffset),l=h/2-.5;F.from=C,F.to=k,I?(F.scrollbarGroup[T]({translateY:n}),F.scrollbar[T]({height:h}),F.scrollbarRifles[T]({translateY:l}),F.scrollbarTop=n,F.scrollbarLeft=0):(F.scrollbarGroup[T]({translateX:n}),F.scrollbar[T]({width:h}),F.scrollbarRifles[T]({translateX:l}),F.scrollbarLeft=n,F.scrollbarTop=0),h<=12?F.scrollbarRifles.hide():F.scrollbarRifles.show(),P.showFull===!1&&(C<=0&&k>=1?F.group.hide():F.group.show()),F.rendered=!0}shouldUpdateExtremes(C){return O(this.options.liveRedraw,s.svg&&!s.isTouchDevice&&!this.chart.boosted)||C==="mouseup"||C==="touchend"||!N(C)}trackClick(C){const k=this,F=k.chart.pointer.normalize(C),P=k.to-k.from,I=k.y+k.scrollbarTop,m=k.x+k.scrollbarLeft;k.options.vertical&&F.chartY>I||!k.options.vertical&&F.chartX>m?k.updatePosition(k.from+P,k.to+P):k.updatePosition(k.from-P,k.to-P),p(k,"changed",{from:k.from,to:k.to,trigger:"scrollbar",DOMEvent:C})}update(C){this.destroy(),this.init(this.chart.renderer,g(!0,this.options,C),this.chart)}updatePosition(C,k){k>1&&(C=L(1-L(k-C)),k=1),C<0&&(k=L(k-C),C=0),this.from=C,this.to=k}}return _.defaultOptions=c,w.scrollbar=g(!0,_.defaultOptions,w.scrollbar),_}),a(t,"Stock/Navigator/Navigator.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/NavigatorAxisComposition.js"],t["Stock/Navigator/NavigatorComposition.js"],t["Stock/Scrollbar/Scrollbar.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w,y){const{defaultOptions:L}=s,{hasTouch:N,isTouchDevice:A}=o,{addEvent:p,clamp:g,correctFloat:O,defined:M,destroyObjectProperties:_,erase:j,extend:C,find:k,isArray:F,isNumber:P,merge:I,pick:m,removeEvent:B,splat:T}=y;function S(h,...n){const l=[].filter.call(n,P);if(l.length)return Math[h].apply(0,l)}class x{static compose(n,l,f){u.compose(n,l,x,f)}constructor(n){this.baseSeries=void 0,this.chart=void 0,this.handles=void 0,this.height=void 0,this.left=void 0,this.navigatorEnabled=void 0,this.navigatorGroup=void 0,this.navigatorOptions=void 0,this.navigatorSeries=void 0,this.navigatorSize=void 0,this.opposite=void 0,this.outline=void 0,this.range=void 0,this.rendered=void 0,this.scrollbarHeight=0,this.scrollButtonSize=void 0,this.shades=void 0,this.size=void 0,this.top=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zoomedMax=void 0,this.zoomedMin=void 0,this.init(n)}drawHandle(n,l,f,b){const v=this,G=v.navigatorOptions.handles.height;v.handles[l][b](f?{translateX:Math.round(v.left+v.height/2),translateY:Math.round(v.top+parseInt(n,10)+.5-G)}:{translateX:Math.round(v.left+parseInt(n,10)),translateY:Math.round(v.top+v.height/2-G/2-1)})}drawOutline(n,l,f,b){const v=this,G=v.navigatorOptions.maskInside,U=v.outline.strokeWidth(),D=U/2,H=U%2/2,z=v.scrollButtonSize,W=v.size,d=v.top,R=v.height,q=d-D,J=d+R;let Y=v.left,ee,E;f?(ee=d+l+H,l=d+n+H,E=[["M",Y+R,d-z-H],["L",Y+R,ee],["L",Y,ee],["M",Y,l],["L",Y+R,l],["L",Y+R,d+W+z]],G&&E.push(["M",Y+R,ee-D],["L",Y+R,l+D])):(Y-=z,n+=Y+z-H,l+=Y+z-H,E=[["M",Y,q],["L",n,q],["L",n,J],["M",l,J],["L",l,q],["L",Y+W+z*2,d+D]],G&&E.push(["M",n-D,q],["L",l+D,q])),v.outline[b]({d:E})}drawMasks(n,l,f,b){const v=this,G=v.left,U=v.top,D=v.height;let H,z,W,d;f?(W=[G,G,G],d=[U,U+n,U+l],z=[D,D,D],H=[n,l-n,v.size-l]):(W=[G,G+n,G+l],d=[U,U,U],z=[n,l-n,v.size-l],H=[D,D,D]),v.shades.forEach((R,q)=>{R[b]({x:W[q],y:d[q],width:z[q],height:H[q]})})}renderElements(){const n=this,l=n.navigatorOptions,f=l.maskInside,b=n.chart,v=b.inverted,G=b.renderer,U={cursor:v?"ns-resize":"ew-resize"},D=n.navigatorGroup=G.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!f,f,!f].forEach((H,z)=>{const W=G.rect().addClass("highcharts-navigator-mask"+(z===1?"-inside":"-outside")).add(D);b.styledMode||(W.attr({fill:H?l.maskFill:"rgba(0,0,0,0)"}),z===1&&W.css(U)),n.shades[z]=W}),n.outline=G.path().addClass("highcharts-navigator-outline").add(D),b.styledMode||n.outline.attr({"stroke-width":l.outlineWidth,stroke:l.outlineColor}),l.handles&&l.handles.enabled){const H=l.handles,{height:z,width:W}=H;[0,1].forEach(d=>{n.handles[d]=G.symbol(H.symbols[d],-W/2-1,0,W,z,H),b.inverted&&n.handles[d].attr({rotation:90,rotationOriginX:Math.floor(-W/2),rotationOriginY:(z+W)/2}),n.handles[d].attr({zIndex:7-d}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][d]).add(D),b.styledMode||n.handles[d].attr({fill:H.backgroundColor,stroke:H.borderColor,"stroke-width":H.lineWidth}).css(U)})}}update(n){(this.series||[]).forEach(f=>{f.baseSeries&&delete f.baseSeries.navigatorSeries}),this.destroy();const l=this.chart.options;I(!0,l.navigator,n),this.init(this.chart)}render(n,l,f,b){const v=this,G=v.chart,U=v.xAxis,D=U.pointRange||0,H=U.navigatorAxis.fake?G.xAxis[0]:U,z=v.navigatorEnabled,W=v.rendered,d=G.inverted,R=G.xAxis[0].minRange,q=G.xAxis[0].options.maxRange,J=v.scrollButtonSize;let Y,ee,E,V=v.scrollbarHeight,X,Q;if(this.hasDragged&&!M(f))return;if(n=O(n-D/2),l=O(l+D/2),!P(n)||!P(l))if(W)f=0,b=m(U.width,H.width);else return;v.left=m(U.left,G.plotLeft+J+(d?G.plotWidth:0));let se=v.size=X=m(U.len,(d?G.plotHeight:G.plotWidth)-2*J);d?Y=V:Y=X+2*J,f=m(f,U.toPixels(n,!0)),b=m(b,U.toPixels(l,!0)),(!P(f)||Math.abs(f)===1/0)&&(f=0,b=Y);const K=U.toValue(f,!0),ne=U.toValue(b,!0),oe=Math.abs(O(ne-K));oe<R?this.grabbedLeft?f=U.toPixels(ne-R-D,!0):this.grabbedRight&&(b=U.toPixels(K+R+D,!0)):M(q)&&O(oe-D)>q&&(this.grabbedLeft?f=U.toPixels(ne-q-D,!0):this.grabbedRight&&(b=U.toPixels(K+q+D,!0))),v.zoomedMax=g(Math.max(f,b),0,se),v.zoomedMin=g(v.fixedWidth?v.zoomedMax-v.fixedWidth:Math.min(f,b),0,se),v.range=v.zoomedMax-v.zoomedMin,se=Math.round(v.zoomedMax);const le=Math.round(v.zoomedMin);z&&(v.navigatorGroup.attr({visibility:"inherit"}),Q=W&&!v.hasDragged?"animate":"attr",v.drawMasks(le,se,d,Q),v.drawOutline(le,se,d,Q),v.navigatorOptions.handles.enabled&&(v.drawHandle(le,0,d,Q),v.drawHandle(se,1,d,Q))),v.scrollbar&&(d?(E=v.top-J,ee=v.left-V+(z||!H.opposite?0:(H.titleOffset||0)+H.axisTitleMargin),V=X+2*J):(E=v.top+(z?v.height:-V),ee=v.left-J),v.scrollbar.position(ee,E,Y,V),v.scrollbar.setRange(v.zoomedMin/(X||1),v.zoomedMax/(X||1))),v.rendered=!0}addMouseEvents(){const n=this,l=n.chart,f=l.container;let b=[],v,G;n.mouseMoveHandler=v=function(U){n.onMouseMove(U)},n.mouseUpHandler=G=function(U){n.onMouseUp(U)},b=n.getPartsEvents("mousedown"),b.push(p(l.renderTo,"mousemove",v),p(f.ownerDocument,"mouseup",G)),N&&(b.push(p(l.renderTo,"touchmove",v),p(f.ownerDocument,"touchend",G)),b.concat(n.getPartsEvents("touchstart"))),n.eventsToUnbind=b,n.series&&n.series[0]&&b.push(p(n.series[0].xAxis,"foundExtremes",function(){l.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(n){const l=this,f=[];return["shades","handles"].forEach(function(b){l[b].forEach(function(v,G){f.push(p(v.element,n,function(U){l[b+"Mousedown"](U,G)}))})}),f}shadesMousedown(n,l){n=this.chart.pointer.normalize(n);const f=this,b=f.chart,v=f.xAxis,G=f.zoomedMin,U=f.size,D=f.range;let H=f.left,z=n.chartX,W,d,R,q;b.inverted&&(z=n.chartY,H=f.top),l===1?(f.grabbedCenter=z,f.fixedWidth=D,f.dragOffset=z-G):(q=z-H-D/2,l===0?q=Math.max(0,q):l===2&&q+D>=U&&(q=U-D,f.reversedExtremes?(q-=D,d=f.getUnionExtremes().dataMin):W=f.getUnionExtremes().dataMax),q!==G&&(f.fixedWidth=D,R=v.navigatorAxis.toFixedRange(q,q+D,d,W),M(R.min)&&b.xAxis[0].setExtremes(Math.min(R.min,R.max),Math.max(R.min,R.max),!0,null,{trigger:"navigator"})))}handlesMousedown(n,l){n=this.chart.pointer.normalize(n);const f=this,b=f.chart,v=b.xAxis[0],G=f.reversedExtremes;l===0?(f.grabbedLeft=!0,f.otherHandlePos=f.zoomedMax,f.fixedExtreme=G?v.min:v.max):(f.grabbedRight=!0,f.otherHandlePos=f.zoomedMin,f.fixedExtreme=G?v.max:v.min),b.fixedRange=null}onMouseMove(n){const l=this,f=l.chart,b=l.navigatorSize,v=l.range,G=l.dragOffset,U=f.inverted;let D=l.left,H;(!n.touches||n.touches[0].pageX!==0)&&(n=f.pointer.normalize(n),H=n.chartX,U&&(D=l.top,H=n.chartY),l.grabbedLeft?(l.hasDragged=!0,l.render(0,0,H-D,l.otherHandlePos)):l.grabbedRight?(l.hasDragged=!0,l.render(0,0,l.otherHandlePos,H-D)):l.grabbedCenter&&(l.hasDragged=!0,H<G?H=G:H>b+G-v&&(H=b+G-v),l.render(0,0,H-G,H-G+v)),l.hasDragged&&l.scrollbar&&m(l.scrollbar.options.liveRedraw,!A&&!this.chart.boosted)&&(n.DOMType=n.type,setTimeout(function(){l.onMouseUp(n)},0)))}onMouseUp(n){const l=this,f=l.chart,b=l.xAxis,v=l.scrollbar,G=n.DOMEvent||n,U=f.inverted,D=l.rendered&&!l.hasDragged?"animate":"attr";let H,z,W,d,R,q;(l.hasDragged&&(!v||!v.hasDragged)||n.trigger==="scrollbar")&&(W=l.getUnionExtremes(),l.zoomedMin===l.otherHandlePos?d=l.fixedExtreme:l.zoomedMax===l.otherHandlePos&&(R=l.fixedExtreme),l.zoomedMax===l.size&&(R=l.reversedExtremes?W.dataMin:W.dataMax),l.zoomedMin===0&&(d=l.reversedExtremes?W.dataMax:W.dataMin),q=b.navigatorAxis.toFixedRange(l.zoomedMin,l.zoomedMax,d,R),M(q.min)&&f.xAxis[0].setExtremes(Math.min(q.min,q.max),Math.max(q.min,q.max),!0,l.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:G})),n.DOMType!=="mousemove"&&n.DOMType!=="touchmove"&&(l.grabbedLeft=l.grabbedRight=l.grabbedCenter=l.fixedWidth=l.fixedExtreme=l.otherHandlePos=l.hasDragged=l.dragOffset=null),l.navigatorEnabled&&P(l.zoomedMin)&&P(l.zoomedMax)&&(z=Math.round(l.zoomedMin),H=Math.round(l.zoomedMax),l.shades&&l.drawMasks(z,H,U,D),l.outline&&l.drawOutline(z,H,U,D),l.navigatorOptions.handles.enabled&&Object.keys(l.handles).length===l.handles.length&&(l.drawHandle(z,0,U,D),l.drawHandle(H,1,U,D)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(n){n()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){const n=this.baseSeries||[];this.navigatorEnabled&&n[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&n.forEach(function(l){B(l,"updatedData",this.updatedDataHandler)},this),n[0].xAxis&&B(n[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}init(n){const l=n.options,f=l.navigator||{},b=f.enabled,v=l.scrollbar||{},G=v.enabled,U=b&&f.height||0,D=G&&v.height||0,H=v.buttonsEnabled&&D||0;this.handles=[],this.shades=[],this.chart=n,this.setBaseSeries(),this.height=U,this.scrollbarHeight=D,this.scrollButtonSize=H,this.scrollbarEnabled=G,this.navigatorEnabled=b,this.navigatorOptions=f,this.scrollbarOptions=v,this.opposite=m(f.opposite,!!(!b&&n.inverted));const z=this,W=z.baseSeries,d=n.xAxis.length,R=n.yAxis.length,q=W&&W[0]&&W[0].xAxis||n.xAxis[0]||{options:{}};if(n.isDirtyBox=!0,z.navigatorEnabled?(z.xAxis=new i(n,I({breaks:q.options.breaks,ordinal:q.options.ordinal},f.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",type:"datetime",index:d,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},n.inverted?{offsets:[H,0,-H,0],width:U}:{offsets:[0,-H,0,H],height:U}),"xAxis"),z.yAxis=new i(n,I(f.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:R,isInternal:!0,reversed:m(f.yAxis&&f.yAxis.reversed,n.yAxis[0]&&n.yAxis[0].reversed,!1),zoomEnabled:!1},n.inverted?{width:U}:{height:U}),"yAxis"),W||f.series.data?z.updateNavigatorSeries(!1):n.series.length===0&&(z.unbindRedraw=p(n,"beforeRedraw",function(){n.series.length>0&&!z.series&&(z.setBaseSeries(),z.unbindRedraw())})),z.reversedExtremes=n.inverted&&!z.xAxis.reversed||!n.inverted&&z.xAxis.reversed,z.renderElements(),z.addMouseEvents()):(z.xAxis={chart:n,navigatorAxis:{fake:!0},translate:function(J,Y){const ee=n.xAxis[0],E=ee.getExtremes(),V=ee.len-2*H,X=S("min",ee.options.min,E.dataMin),Q=S("max",ee.options.max,E.dataMax)-X;return Y?J*Q/V+X:V*(J-X)/Q},toPixels:function(J){return this.translate(J)},toValue:function(J){return this.translate(J,!0)}},z.xAxis.navigatorAxis.axis=z.xAxis,z.xAxis.navigatorAxis.toFixedRange=c.prototype.toFixedRange.bind(z.xAxis.navigatorAxis)),n.options.scrollbar.enabled){const J=I(n.options.scrollbar,{vertical:n.inverted});!P(J.margin)&&z.navigatorEnabled&&(J.margin=n.inverted?-3:3),n.scrollbar=z.scrollbar=new w(n.renderer,J,n),p(z.scrollbar,"changed",function(Y){const ee=z.size,E=ee*this.to,V=ee*this.from;z.hasDragged=z.scrollbar.hasDragged,z.render(0,0,V,E),this.shouldUpdateExtremes(Y.DOMType)&&setTimeout(function(){z.onMouseUp(Y)})})}z.addBaseSeriesEvents(),z.addChartEvents()}getUnionExtremes(n){const l=this.chart.xAxis[0],f=this.xAxis,b=f.options,v=l.options;let G;return(!n||l.dataMin!==null)&&(G={dataMin:m(b&&b.min,S("min",v.min,l.dataMin,f.dataMin,f.min)),dataMax:m(b&&b.max,S("max",v.max,l.dataMax,f.dataMax,f.max))}),G}setBaseSeries(n,l){const f=this.chart,b=this.baseSeries=[];n=n||f.options&&f.options.navigator.baseSeries||(f.series.length?k(f.series,v=>!v.options.isInternal).index:0),(f.series||[]).forEach((v,G)=>{!v.options.isInternal&&(v.options.showInNavigator||(G===n||v.options.id===n)&&v.options.showInNavigator!==!1)&&b.push(v)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,l)}updateNavigatorSeries(n,l){const f=this,b=f.chart,v=f.baseSeries,G={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},U=f.series=(f.series||[]).filter(d=>{const R=d.baseSeries;return v.indexOf(R)<0?(R&&(B(R,"updatedData",f.updatedDataHandler),delete R.navigatorSeries),d.chart&&d.destroy(),!1):!0});let D,H,z=f.navigatorOptions.series,W;v&&v.length&&v.forEach(d=>{const R=d.navigatorSeries,q=C({color:d.color,visible:d.visible},F(z)?L.navigator.series:z);if(R&&f.navigatorOptions.adaptToUpdatedData===!1)return;G.name="Navigator "+v.length,D=d.options||{},W=D.navigatorOptions||{},q.dataLabels=T(q.dataLabels),H=I(D,G,q,W),H.pointRange=m(q.pointRange,W.pointRange,L.plotOptions[H.type||"line"].pointRange);const J=W.data||q.data;f.hasNavigatorData=f.hasNavigatorData||!!J,H.data=J||D.data&&D.data.slice(0),R&&R.options?R.update(H,l):(d.navigatorSeries=b.initSeries(H),d.navigatorSeries.baseSeries=d,U.push(d.navigatorSeries))}),(z.data&&!(v&&v.length)||F(z))&&(f.hasNavigatorData=!1,z=T(z),z.forEach((d,R)=>{G.name="Navigator "+(U.length+1),H=I(L.navigator.series,{color:b.series[R]&&!b.series[R].options.isInternal&&b.series[R].color||b.options.colors[R]||b.options.colors[0]},G,d),H.data=d.data,H.data&&(f.hasNavigatorData=!0,U.push(b.initSeries(H)))})),n&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){const n=this,l=n.baseSeries||[];l[0]&&l[0].xAxis&&l[0].eventsToUnbind.push(p(l[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),l.forEach(f=>{f.eventsToUnbind.push(p(f,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),f.eventsToUnbind.push(p(f,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),this.navigatorOptions.adaptToUpdatedData!==!1&&f.xAxis&&f.eventsToUnbind.push(p(f,"updatedData",this.updatedDataHandler)),f.eventsToUnbind.push(p(f,"remove",function(){this.navigatorSeries&&(j(n.series,this.navigatorSeries),M(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(n){return this.baseSeries.reduce(function(l,f){return Math.min(l,f.xData&&f.xData.length?f.xData[0]:l)},n)}modifyNavigatorAxisExtremes(){const n=this.xAxis;if(typeof n.getExtremes<"u"){const l=this.getUnionExtremes(!0);l&&(l.dataMin!==n.min||l.dataMax!==n.max)&&(n.min=l.dataMin,n.max=l.dataMax)}}modifyBaseAxisExtremes(){const n=this,l=n.chart.navigator,f=n.getExtremes(),b=f.min,v=f.max,G=f.dataMin,U=f.dataMax,D=v-b,H=l.stickToMin,z=l.stickToMax,W=m(n.options.overscroll,0),d=l.series&&l.series[0],R=!!n.setExtremes,q=n.eventArgs&&n.eventArgs.trigger==="rangeSelectorButton";let J,Y;q||(H&&(Y=G,J=Y+D),z&&(J=U+W,H||(Y=Math.max(G,J-D,l.getBaseSeriesMin(d&&d.xData?d.xData[0]:-Number.MAX_VALUE)))),R&&(H||z)&&P(Y)&&(n.min=n.userMin=Y,n.max=n.userMax=J)),l.stickToMin=l.stickToMax=null}updatedDataHandler(){const n=this.chart.navigator,l=this,f=this.navigatorSeries,b=n.reversedExtremes?Math.round(n.zoomedMin)===0:Math.round(n.zoomedMax)>=Math.round(n.size);n.stickToMax=m(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,b),n.stickToMin=n.shouldStickToMin(l,n),f&&!n.hasNavigatorData&&(f.options.pointStart=l.xData[0],f.setData(l.options.data,!1,null,!1))}shouldStickToMin(n,l){const f=l.getBaseSeriesMin(n.xData[0]),b=n.xAxis,v=b.max,G=b.min,U=b.options.range;let D=!0;return P(v)&&P(G)?U&&v-f>0?D=v-f<U:D=G<=f:D=!1,D}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(p(this.chart,"redraw",function(){const n=this.navigator,l=n&&(n.baseSeries&&n.baseSeries[0]&&n.baseSeries[0].xAxis||this.xAxis[0]);l&&n.render(l.min,l.max)}),p(this.chart,"getMargins",function(){let n=this,l=n.navigator,f=l.opposite?"plotTop":"marginBottom";n.inverted&&(f=l.opposite?"marginRight":"plotLeft"),n[f]=(n[f]||0)+(l.navigatorEnabled||!n.inverted?l.height+l.scrollbarHeight:0)+l.navigatorOptions.margin}))}destroy(){this.removeEvents(),this.xAxis&&(j(this.chart.xAxis,this.xAxis),j(this.chart.axes,this.xAxis)),this.yAxis&&(j(this.chart.yAxis,this.yAxis),j(this.chart.axes,this.yAxis)),(this.series||[]).forEach(n=>{n.destroy&&n.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(n=>{this[n]&&this[n].destroy&&this[n].destroy(),this[n]=null}),[this.handles].forEach(n=>{_(n)})}}return x}),a(t,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%e %b %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#334eff",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"#666666",fontSize:"0.8em"}}}}),a(t,"Stock/RangeSelector/RangeSelectorComposition.js",[t["Core/Defaults.js"],t["Stock/RangeSelector/RangeSelectorDefaults.js"],t["Core/Utilities.js"]],function(i,s,o){const{defaultOptions:c,setOptions:u}=i,{addEvent:w,defined:y,extend:L,find:N,isNumber:A,merge:p,pick:g}=o,O=[],M=[];let _;function j(){const x=this.range,h=x.type,n=this.max,l=this.chart.time,f=function(U,D){const H=h==="year"?"FullYear":"Month",z=new l.Date(U),W=l.get(H,z);return l.set(H,z,W+D),W===l.get(H,z)&&l.set("Date",z,0),z.getTime()-U};let b,v;A(x)?(b=n-x,v=x):x&&(b=n+f(n,-(x.count||1)),this.chart&&(this.chart.fixedRange=n-b));const G=g(this.dataMin,Number.MIN_VALUE);return A(b)||(b=G),b<=G&&(b=G,typeof v>"u"&&(v=f(b,x.count)),this.newMax=Math.min(b+v,g(this.dataMax,Number.MAX_VALUE))),A(n)?!A(x)&&x&&x._offsetMin&&(b+=x._offsetMin):b=void 0,b}function C(x,h,n){_=n,o.pushUnique(M,x)&&(x.prototype.minFromRange=j),o.pushUnique(M,h)&&(w(h,"afterGetContainer",k),w(h,"beforeRender",F),w(h,"destroy",I),w(h,"getMargins",m),w(h,"render",B),w(h,"update",T),h.prototype.callbacks.push(P)),o.pushUnique(M,u)&&(L(c,{rangeSelector:s.rangeSelector}),L(c.lang,s.lang))}function k(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new _(this))}function F(){const x=this,h=x.axes,n=x.rangeSelector;if(n){A(n.deferredYTDClick)&&(n.clickButton(n.deferredYTDClick),delete n.deferredYTDClick),h.forEach(f=>{f.updateNames(),f.setScale()}),x.getAxisMargins(),n.render();const l=n.options.verticalAlign;n.options.floating||(l==="bottom"?this.extraBottomMargin=!0:l!=="middle"&&(this.extraTopMargin=!0))}}function P(x){let h,n,l,f;const b=x.rangeSelector,v=()=>{b&&(h=x.xAxis[0].getExtremes(),n=x.legend,f=b&&b.options.verticalAlign,A(h.min)&&b.render(h.min,h.max),n.display&&f==="top"&&f===n.options.verticalAlign&&(l=p(x.spacingBox),n.options.layout==="vertical"?l.y=x.plotTop:l.y+=b.getHeight(),n.group.placed=!1,n.align(l)))};b&&(N(O,U=>U[0]===x)||O.push([x,[w(x.xAxis[0],"afterSetExtremes",function(U){b&&b.render(U.min,U.max)}),w(x,"redraw",v)]]),v())}function I(){for(let x=0,h=O.length;x<h;++x){const n=O[x];if(n[0]===this){n[1].forEach(l=>l()),O.splice(x,1);return}}}function m(){const x=this.rangeSelector;if(x){const h=x.getHeight();this.extraTopMargin&&(this.plotTop+=h),this.extraBottomMargin&&(this.marginBottom+=h)}}function B(){const x=this,h=x.rangeSelector;if(h&&!h.options.floating){h.render();const n=h.options.verticalAlign;n==="bottom"?this.extraBottomMargin=!0:n!=="middle"&&(this.extraTopMargin=!0)}}function T(x){const h=this,n=x.options,l=n.rangeSelector,f=this.extraBottomMargin,b=this.extraTopMargin;let v=h.rangeSelector;if(l&&l.enabled&&!y(v)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=v=new _(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,v){P(this);const G=l&&l.verticalAlign||v.options&&v.options.verticalAlign;v.options.floating||(G==="bottom"?this.extraBottomMargin=!0:G!=="middle"&&(this.extraTopMargin=!0)),(this.extraBottomMargin!==f||this.extraTopMargin!==b)&&(this.isDirtyBox=!0)}}return{compose:C}}),a(t,"Stock/RangeSelector/RangeSelector.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Stock/RangeSelector/RangeSelectorComposition.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w){const{defaultOptions:y}=s,{addEvent:L,createElement:N,css:A,defined:p,destroyObjectProperties:g,discardElement:O,extend:M,fireEvent:_,isNumber:j,merge:C,objectEach:k,pad:F,pick:P,pInt:I,splat:m}=w;function B(S){if(S.indexOf("%L")!==-1)return"text";const h=["a","A","d","e","w","b","B","m","o","y","Y"].some(l=>S.indexOf("%"+l)!==-1),n=["H","k","I","l","M","S"].some(l=>S.indexOf("%"+l)!==-1);return h&&n?"datetime-local":h?"date":n?"time":"text"}class T{static compose(x,h){c.compose(x,h,T)}constructor(x){this.buttons=void 0,this.buttonOptions=T.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=x,this.init(x)}clickButton(x,h){const n=this,l=n.chart,f=n.buttonOptions[x],b=l.xAxis[0],v=l.scroller&&l.scroller.getUnionExtremes()||b||{},G=f.type,U=f.dataGrouping;let D=v.dataMin,H=v.dataMax,z,W=b&&Math.round(Math.min(b.max,P(H,b.max))),d,R=f._range,q,J,Y,ee,E,V=!0;if(!(D===null||H===null)){if(l.fixedRange=R,n.setSelected(x),U&&(this.forcedDataGrouping=!0,i.prototype.setDataGrouping.call(b||{chart:this.chart},U,!1),this.frozenStates=f.preserveDataGrouping),G==="month"||G==="year")b?(ee={range:f,max:W,chart:l,dataMin:D,dataMax:H},z=b.minFromRange.call(ee),j(ee.newMax)&&(W=ee.newMax),V=!1):R=f;else if(R)z=Math.max(W-R,D),W=Math.min(z+R,H),V=!1;else if(G==="ytd")if(b)(typeof H>"u"||typeof D>"u")&&(D=Number.MAX_VALUE,H=Number.MIN_VALUE,l.series.forEach(X=>{const Q=X.xData;Q&&(D=Math.min(Q[0],D),H=Math.max(Q[Q.length-1],H))}),h=!1),E=n.getYTDExtremes(H,D,l.time.useUTC),z=q=E.min,W=E.max;else{n.deferredYTDClick=x;return}else G==="all"&&b&&(l.navigator&&l.navigator.baseSeries[0]&&(l.navigator.baseSeries[0].xAxis.options.range=void 0),z=D,W=H);V&&f._offsetMin&&p(z)&&(z+=f._offsetMin),f._offsetMax&&p(W)&&(W+=f._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=x+1),b?b.setExtremes(z,W,P(h,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:f}):(d=m(l.options.xAxis)[0],Y=d.range,d.range=R,J=d.min,d.min=q,L(l,"load",function(){d.range=Y,d.min=J})),_(this,"afterBtnClick")}}setSelected(x){this.selected=this.options.selected=x}init(x){const h=this,n=x.options.rangeSelector,l=n.buttons||h.defaultButtons.slice(),f=n.selected,b=function(){const v=h.minInput,G=h.maxInput;v&&v.blur&&_(v,"blur"),G&&G.blur&&_(G,"blur")};h.chart=x,h.options=n,h.buttons=[],h.buttonOptions=l,this.eventsToUnbind=[],this.eventsToUnbind.push(L(x.container,"mousedown",b)),this.eventsToUnbind.push(L(x,"resize",b)),l.forEach(h.computeButtonRange),typeof f<"u"&&l[f]&&this.clickButton(f,!1),this.eventsToUnbind.push(L(x,"load",function(){x.xAxis&&x.xAxis[0]&&L(x.xAxis[0],"setExtremes",function(v){this.max-this.min!==x.fixedRange&&v.trigger!=="rangeSelectorButton"&&v.trigger!=="updatedData"&&h.forcedDataGrouping&&!h.frozenStates&&this.setDataGrouping(!1,!1)})}))}updateButtonStates(){const x=this,h=this.chart,n=this.dropdown,l=h.xAxis[0],f=Math.round(l.max-l.min),b=!l.hasVisibleSeries,v=24*36e5,G=h.scroller&&h.scroller.getUnionExtremes()||l,U=G.dataMin,D=G.dataMax,H=x.getYTDExtremes(D,U,h.time.useUTC),z=H.min,W=H.max,d=x.selected,R=x.options.allButtonsEnabled,q=x.buttons;let J=j(d);x.buttonOptions.forEach((Y,ee)=>{const E=Y._range,V=Y.type,X=Y.count||1,Q=q[ee],se=Y._offsetMax-Y._offsetMin,K=ee===d,ne=E>D-U,oe=E<l.minRange;let le=0,ye=!1,te=!1,re=E===f;(V==="month"||V==="year")&&f+36e5>={month:28,year:365}[V]*v*X-se&&f-36e5<={month:31,year:366}[V]*v*X+se?re=!0:V==="ytd"?(re=W-z+se===f,ye=!K):V==="all"&&(re=l.max-l.min>=D-U,te=!K&&J&&re);const Z=!R&&(ne||oe||te||b),ie=K&&re||re&&!J&&!ye||K&&x.frozenStates;Z?le=3:ie&&(J=!0,le=2),Q.state!==le&&(Q.setState(le),n&&(n.options[ee+1].disabled=Z,le===2&&(n.selectedIndex=ee+1)),le===0&&d===ee&&x.setSelected())})}computeButtonRange(x){const h=x.type,n=x.count||1,l={millisecond:1,second:1e3,minute:60*1e3,hour:3600*1e3,day:24*3600*1e3,week:7*24*3600*1e3};l[h]?x._range=l[h]*n:(h==="month"||h==="year")&&(x._range={month:30,year:365}[h]*24*36e5*n),x._offsetMin=P(x.offsetMin,0),x._offsetMax=P(x.offsetMax,0),x._range+=x._offsetMax-x._offsetMin}getInputValue(x){const h=x==="min"?this.minInput:this.maxInput,n=this.chart.options.rangeSelector,l=this.chart.time;return h?(h.type==="text"&&n.inputDateParser||this.defaultInputDateParser)(h.value,l.useUTC,l):0}setInputValue(x,h){const n=this.options,l=this.chart.time,f=x==="min"?this.minInput:this.maxInput,b=x==="min"?this.minDateBox:this.maxDateBox;if(f){const v=f.getAttribute("data-hc-time");let G=p(v)?Number(v):void 0;if(p(h)){const U=G;p(U)&&f.setAttribute("data-hc-time-previous",U),f.setAttribute("data-hc-time",h),G=h}f.value=l.dateFormat(this.inputTypeFormats[f.type]||n.inputEditDateFormat,G),b&&b.attr({text:l.dateFormat(n.inputDateFormat,G)})}}setInputExtremes(x,h,n){const l=x==="min"?this.minInput:this.maxInput;if(l){const f=this.inputTypeFormats[l.type],b=this.chart.time;if(f){const v=b.dateFormat(f,h);l.min!==v&&(l.min=v);const G=b.dateFormat(f,n);l.max!==G&&(l.max=G)}}}showInput(x){const h=x==="min"?this.minDateBox:this.maxDateBox,n=x==="min"?this.minInput:this.maxInput;if(n&&h&&this.inputGroup){const l=n.type==="text",{translateX:f,translateY:b}=this.inputGroup,{inputBoxWidth:v}=this.options;A(n,{width:l?h.width+(v?-2:20)+"px":"auto",height:h.height-2+"px",border:"2px solid silver"}),l&&v?A(n,{left:f+h.x+"px",top:b+"px"}):A(n,{left:Math.min(Math.round(h.x+f-(n.offsetWidth-h.width)/2),this.chart.chartWidth-n.offsetWidth)+"px",top:b-(n.offsetHeight-h.height)/2+"px"})}}hideInput(x){const h=x==="min"?this.minInput:this.maxInput;h&&A(h,{top:"-9999em",border:0,width:"1px",height:"1px"})}defaultInputDateParser(x,h,n){const l=v=>v.length>6&&(v.lastIndexOf("-")===v.length-6||v.lastIndexOf("+")===v.length-6);let f=x.split("/").join("-").split(" ").join("T");if(f.indexOf("T")===-1&&(f+="T00:00"),h)f+="Z";else if(o.isSafari&&!l(f)){const v=new Date(f).getTimezoneOffset()/60;f+=v<=0?`+${F(-v)}:00`:`-${F(v)}:00`}let b=Date.parse(f);if(!j(b)){const v=x.split("-");b=Date.UTC(I(v[0]),I(v[1])-1,I(v[2]))}return n&&h&&j(b)&&(b+=n.getTimezoneOffset(b)),b}drawInput(x){const{chart:h,div:n,inputGroup:l}=this,f=this,b=h.renderer.style||{},v=h.renderer,G=h.options.rangeSelector,U=y.lang,D=x==="min";function H(){const{maxInput:J,minInput:Y}=f,ee=h.xAxis[0],E=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:ee,V=E.dataMin,X=E.dataMax;let Q=f.getInputValue(x);Q!==Number(R.getAttribute("data-hc-time-previous"))&&j(Q)&&(R.setAttribute("data-hc-time-previous",Q),D&&J&&j(V)?Q>Number(J.getAttribute("data-hc-time"))?Q=void 0:Q<V&&(Q=V):Y&&j(X)&&(Q<Number(Y.getAttribute("data-hc-time"))?Q=void 0:Q>X&&(Q=X)),typeof Q<"u"&&ee.setExtremes(D?Q:ee.min,D?ee.max:Q,void 0,void 0,{trigger:"rangeSelectorInput"}))}const z=U[D?"rangeSelectorFrom":"rangeSelectorTo"]||"",W=v.label(z,0).addClass("highcharts-range-label").attr({padding:z?2:0,height:z?G.inputBoxHeight:0}).add(l),d=v.label("",0).addClass("highcharts-range-input").attr({padding:2,width:G.inputBoxWidth,height:G.inputBoxHeight,"text-align":"center"}).on("click",function(){f.showInput(x),f[x+"Input"].focus()});h.styledMode||d.attr({stroke:G.inputBoxBorderColor,"stroke-width":1}),d.add(l);const R=N("input",{name:x,className:"highcharts-range-selector"},void 0,n);R.setAttribute("type",B(G.inputDateFormat||"%e %b %Y")),h.styledMode||(W.css(C(b,G.labelStyle)),d.css(C({color:"#333333"},b,G.inputStyle)),A(R,M({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:b.fontSize,fontFamily:b.fontFamily,top:"-9999em"},G.inputStyle))),R.onfocus=()=>{f.showInput(x)},R.onblur=()=>{R===o.doc.activeElement&&H(),f.hideInput(x),f.setInputValue(x),R.blur()};let q=!1;return R.onchange=()=>{q||(H(),f.hideInput(x),R.blur())},R.onkeypress=J=>{J.keyCode===13&&H()},R.onkeydown=J=>{q=!0,(J.keyCode===38||J.keyCode===40)&&H()},R.onkeyup=()=>{q=!1},{dateBox:d,input:R,label:W}}getPosition(){const x=this.chart,h=x.options.rangeSelector,n=h.verticalAlign==="top"?x.plotTop-x.axisOffset[0]:0;return{buttonTop:n+h.buttonPosition.y,inputTop:n+h.inputPosition.y-10}}getYTDExtremes(x,h,n){const l=this.chart.time,f=new l.Date(x),b=l.get("FullYear",f),v=n?l.Date.UTC(b,0,1):+new l.Date(b,0,1),G=Math.max(h,v),U=f.getTime();return{max:Math.min(x||U,U),min:G}}render(x,h){const n=this.chart,l=n.renderer,f=n.container,b=n.options,v=b.rangeSelector,G=P(b.chart.style&&b.chart.style.zIndex,0)+1,U=v.inputEnabled,D=this.rendered;if(v.enabled!==!1){if(!D&&(this.group=l.g("range-selector-group").attr({zIndex:7}).add(),this.div=N("div",void 0,{position:"relative",height:0,zIndex:G}),this.buttonOptions.length&&this.renderButtons(),f.parentNode&&f.parentNode.insertBefore(this.div,f),U)){this.inputGroup=l.g("input-group").add(this.group);const H=this.drawInput("min");this.minDateBox=H.dateBox,this.minLabel=H.label,this.minInput=H.input;const z=this.drawInput("max");this.maxDateBox=z.dateBox,this.maxLabel=z.label,this.maxInput=z.input}if(U){this.setInputValue("min",x),this.setInputValue("max",h);const H=n.scroller&&n.scroller.getUnionExtremes()||n.xAxis[0]||{};if(p(H.dataMin)&&p(H.dataMax)){const z=n.xAxis[0].minRange||0;this.setInputExtremes("min",H.dataMin,Math.min(H.dataMax,this.getInputValue("max"))-z),this.setInputExtremes("max",Math.max(H.dataMin,this.getInputValue("min"))+z,H.dataMax)}if(this.inputGroup){let z=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(W=>{if(W){const{width:d}=W.getBBox();d&&(W.attr({x:z}),z+=d+v.inputSpacing)}})}}this.alignElements(),this.rendered=!0}}renderButtons(){const{buttons:x,chart:h,options:n}=this,l=y.lang,f=h.renderer,b=C(n.buttonTheme),v=b&&b.states,G=b.width||28;delete b.width,delete b.states,this.buttonGroup=f.g("range-selector-buttons").add(this.group);const U=this.dropdown=N("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);L(U,"touchstart",()=>{U.style.fontSize="16px"}),[[o.isMS?"mouseover":"mouseenter"],[o.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(([D,H])=>{L(U,D,()=>{const z=x[this.currentButtonIndex()];z&&_(z.element,H||D)})}),this.zoomText=f.label(l&&l.rangeSelectorZoom||"",0).attr({padding:n.buttonTheme.padding,height:n.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(n.labelStyle),b["stroke-width"]=P(b["stroke-width"],0)),N("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,U),this.buttonOptions.forEach((D,H)=>{N("option",{textContent:D.title||D.text},void 0,U),x[H]=f.button(D.text,0,0,z=>{const W=D.events&&D.events.click;let d;W&&(d=W.call(D,z)),d!==!1&&this.clickButton(H),this.isActive=!0},b,v&&v.hover,v&&v.select,v&&v.disabled).attr({"text-align":"center",width:G}).add(this.buttonGroup),D.title&&x[H].attr("title",D.title)})}alignElements(){const{buttonGroup:x,buttons:h,chart:n,group:l,inputGroup:f,options:b,zoomText:v}=this,G=n.options,U=G.exporting&&G.exporting.enabled!==!1&&G.navigation&&G.navigation.buttonOptions,{buttonPosition:D,inputPosition:H,verticalAlign:z}=b,W=(R,q)=>U&&this.titleCollision(n)&&z==="top"&&q.align==="right"&&q.y-R.getBBox().height-12<(U.y||0)+(U.height||0)+n.spacing[0]?-40:0;let d=n.plotLeft;if(l&&D&&H){let R=D.x-n.spacing[3];if(x){if(this.positionButtons(),!this.initialButtonGroupWidth){let se=0;v&&(se+=v.getBBox().width+5),h.forEach((K,ne)=>{se+=K.width,ne!==h.length-1&&(se+=b.buttonSpacing)}),this.initialButtonGroupWidth=se}d-=n.spacing[3],this.updateButtonStates();const Q=W(x,D);this.alignButtonGroup(Q),l.placed=x.placed=n.hasLoaded}let q=0;f&&(q=W(f,H),H.align==="left"?R=d:H.align==="right"&&(R=-Math.max(n.axisOffset[1],-q)),f.align({y:H.y,width:f.getBBox().width,align:H.align,x:H.x+R-2},!0,n.spacingBox),f.placed=n.hasLoaded),this.handleCollision(q),l.align({verticalAlign:z},!0,n.spacingBox);const J=l.alignAttr.translateY;let Y=l.getBBox().height+20,ee=0;if(z==="bottom"){const Q=n.legend&&n.legend.options,se=Q&&Q.verticalAlign==="bottom"&&Q.enabled&&!Q.floating?n.legend.legendHeight+P(Q.margin,10):0;Y=Y+se-20,ee=J-Y-(b.floating?0:b.y)-(n.titleOffset?n.titleOffset[2]:0)-10}z==="top"?(b.floating&&(ee=0),n.titleOffset&&n.titleOffset[0]&&(ee=n.titleOffset[0]),ee+=n.margin[0]-n.spacing[0]||0):z==="middle"&&(H.y===D.y?ee=J:(H.y||D.y)&&(H.y<0||D.y<0?ee-=Math.min(H.y,D.y):ee=J-Y)),l.translate(b.x,b.y+Math.floor(ee));const{minInput:E,maxInput:V,dropdown:X}=this;b.inputEnabled&&E&&V&&(E.style.marginTop=l.translateY+"px",V.style.marginTop=l.translateY+"px"),X&&(X.style.marginTop=l.translateY+"px")}}alignButtonGroup(x,h){const{chart:n,options:l,buttonGroup:f,buttons:b}=this,{buttonPosition:v}=l,G=n.plotLeft-n.spacing[3];let U=v.x-n.spacing[3];v.align==="right"?U+=x-G:v.align==="center"&&(U-=G/2),f&&f.align({y:v.y,width:P(h,this.initialButtonGroupWidth),align:v.align,x:U},!0,n.spacingBox)}positionButtons(){const{buttons:x,chart:h,options:n,zoomText:l}=this,f=h.hasLoaded?"animate":"attr",{buttonPosition:b}=n,v=h.plotLeft;let G=v;l&&l.visibility!=="hidden"&&(l[f]({x:P(v+b.x,v)}),G+=b.x+l.getBBox().width+5);for(let U=0,D=this.buttonOptions.length;U<D;++U)x[U].visibility!=="hidden"?(x[U][f]({x:G}),G+=x[U].width+n.buttonSpacing):x[U][f]({x:v})}handleCollision(x){const{chart:h,buttonGroup:n,inputGroup:l}=this,{buttonPosition:f,dropdown:b,inputPosition:v}=this.options,G=()=>{let H=0;return this.buttons.forEach(z=>{const W=z.getBBox();W.width>H&&(H=W.width)}),H},U=H=>{if(l&&n){const z=l.alignAttr.translateX+l.alignOptions.x-x+l.getBBox().x+2,W=l.alignOptions.width,d=n.alignAttr.translateX+n.getBBox().x;return d+H>z&&z+W>d&&f.y<v.y+l.getBBox().height}return!1},D=()=>{l&&n&&l.attr({translateX:l.alignAttr.translateX+(h.axisOffset[1]>=-x?0:-x),translateY:l.alignAttr.translateY+n.getBBox().height+10})};if(n){if(b==="always"){this.collapseButtons(x),U(G())&&D();return}b==="never"&&this.expandButtons()}l&&n?v.align===f.align||U(this.initialButtonGroupWidth+20)?b==="responsive"?(this.collapseButtons(x),U(G())&&D()):D():b==="responsive"&&this.expandButtons():n&&b==="responsive"&&(this.initialButtonGroupWidth>h.plotWidth?this.collapseButtons(x):this.expandButtons())}collapseButtons(x){const{buttons:h,buttonOptions:n,chart:l,dropdown:f,options:b,zoomText:v}=this,G=l.userOptions.rangeSelector&&l.userOptions.rangeSelector.buttonTheme||{},U=z=>({text:z?`${z} ▾`:"▾",width:"auto",paddingLeft:P(b.buttonTheme.paddingLeft,G.padding,8),paddingRight:P(b.buttonTheme.paddingRight,G.padding,8)});v&&v.hide();let D=!1;n.forEach((z,W)=>{const d=h[W];d.state!==2?d.hide():(d.show(),d.attr(U(z.text)),D=!0)}),D||(f&&(f.selectedIndex=0),h[0].show(),h[0].attr(U(this.zoomText&&this.zoomText.textStr)));const{align:H}=b.buttonPosition;this.positionButtons(),(H==="right"||H==="center")&&this.alignButtonGroup(x,h[this.currentButtonIndex()].getBBox().width),this.showDropdown()}expandButtons(){const{buttons:x,buttonOptions:h,options:n,zoomText:l}=this;this.hideDropdown(),l&&l.show(),h.forEach((f,b)=>{const v=x[b];v.show(),v.attr({text:f.text,width:n.buttonTheme.width||28,paddingLeft:P(n.buttonTheme.paddingLeft,"unset"),paddingRight:P(n.buttonTheme.paddingRight,"unset")}),v.state<2&&v.setState(0)}),this.positionButtons()}currentButtonIndex(){const{dropdown:x}=this;return x&&x.selectedIndex>0?x.selectedIndex-1:0}showDropdown(){const{buttonGroup:x,buttons:h,chart:n,dropdown:l}=this;if(x&&l){const{translateX:f,translateY:b}=x,v=h[this.currentButtonIndex()].getBBox();A(l,{left:n.plotLeft+f+"px",top:b+.5+"px",width:v.width+"px",height:v.height+"px"}),this.hasVisibleDropdown=!0}}hideDropdown(){const{dropdown:x}=this;x&&(A(x,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)}getHeight(){const x=this,h=x.options,n=x.group,l=h.inputPosition,f=h.buttonPosition,b=h.y,v=f.y,G=l.y;let U=0;if(h.height)return h.height;this.alignElements(),U=n?n.getBBox(!0).height+13+b:0;const D=Math.min(G,v);return(G<0&&v<0||G>0&&v>0)&&(U+=Math.abs(D)),U}titleCollision(x){return!(x.options.title.text||x.options.subtitle.text)}update(x){const h=this.chart;C(!0,h.options.rangeSelector,x),this.destroy(),this.init(h),this.render()}destroy(){const x=this,h=x.minInput,n=x.maxInput;x.eventsToUnbind&&(x.eventsToUnbind.forEach(l=>l()),x.eventsToUnbind=void 0),g(x.buttons),h&&(h.onfocus=h.onblur=h.onchange=null),n&&(n.onfocus=n.onblur=n.onchange=null),k(x,function(l,f){l&&f!=="chart"&&(l instanceof u?l.destroy():l instanceof r.HTMLElement&&O(l)),l!==T.prototype[f]&&(x[f]=null)},this)}}return M(T.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),T}),a(t,"Core/Axis/OrdinalAxis.js",[t["Core/Axis/Axis.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,s,o,c){const{addEvent:u,correctFloat:w,css:y,defined:L,error:N,pick:A,timeUnits:p}=c,g=[];var O;return function(M){function _(n,l,f){if(c.pushUnique(g,n)){const b=n.prototype;b.getTimeTicks=j,b.index2val=C,b.lin2val=k,b.val2lin=x,b.ordinal2lin=b.val2lin,u(n,"afterInit",P),u(n,"foundExtremes",I),u(n,"afterSetScale",m),u(n,"initialAxisTranslation",B)}return c.pushUnique(g,f)&&u(f,"pan",T),c.pushUnique(g,l)&&u(l,"updatedData",S),n}M.compose=_;function j(n,l,f,b,v=[],G=0,U){const D={},H=this.options.tickPixelInterval,z=this.chart.time,W=[];let d,R,q,J,Y,ee=0,E=[],V=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!v||v.length<3||typeof l>"u")return z.getTimeTicks.apply(z,arguments);const X=v.length;for(d=0;d<X;d++){if(Y=d&&v[d-1]>f,v[d]<l&&(ee=d),d===X-1||v[d+1]-v[d]>G*5||Y){if(v[d]>V){for(R=z.getTimeTicks(n,v[ee],v[d],b);R.length&&R[0]<=V;)R.shift();R.length&&(V=R[R.length-1]),W.push(E.length),E=E.concat(R)}ee=d+1}if(Y)break}if(R){if(J=R.info,U&&J.unitRange<=p.hour){for(d=E.length-1,ee=1;ee<d;ee++)z.dateFormat("%d",E[ee])!==z.dateFormat("%d",E[ee-1])&&(D[E[ee]]="day",q=!0);q&&(D[E[0]]="day"),J.higherRanks=D}J.segmentStarts=W,E.info=J}else N(12,!1,this.chart);if(U&&L(H)){const Q=E.length,se=[],K=[];let ne,oe,le,ye,te,re=Q;for(;re--;)oe=this.translate(E[re]),le&&(K[re]=le-oe),se[re]=le=oe;for(K.sort(),ye=K[Math.floor(K.length/2)],ye<H*.6&&(ye=null),re=E[Q-1]>f?Q-1:Q,le=void 0;re--;)oe=se[re],te=Math.abs(le-oe),le&&te<H*.8&&(ye===null||te<ye*.8)?(D[E[re]]&&!D[E[re+1]]?(ne=re+1,le=oe):ne=re,E.splice(ne,1)):le=oe}return E}function C(n){const l=this,f=l.ordinal,b=f.positions;if(!b)return n;let v=b.length-1,G;return n<0?n=b[0]:n>v?n=b[v]:(v=Math.floor(n),G=n-v),typeof G<"u"&&typeof b[v]<"u"?b[v]+(G?G*(b[v+1]-b[v]):0):n}function k(n){const l=this,f=l.ordinal,b=l.old?l.old.min:l.min,v=l.old?l.old.transA:l.transA;let G=f.positions;if(!G)return n;const U=w((n-b)*v+l.minPixelPadding);if(n>=G[0]&&n<=G[G.length-1]||(f.extendedOrdinalPositions||(f.extendedOrdinalPositions=f.getExtendedPositions()),G=f.extendedOrdinalPositions),G&&G.length){const H=G.indexOf(n),z=H!==-1?H:w(f.getIndexOfPoint(U,G)),W=w(z%1);if(z>=0&&z<=G.length-1){const Y=G[Math.floor(z)],ee=G[Math.ceil(z)],E=ee-Y;return G[Math.floor(z)]+W*E}const d=G.length,R=G[0],q=G[d-1],J=(q-R)/(d-1);return z<0?R+J*z:q+J*(z-d)}return n}function F(n,l){const f=M.Additions.findIndexOf(n,l,!0);if(n[f]===l)return f;const b=(l-n[f])/(n[f+1]-n[f]);return f+b}function P(){const n=this;n.ordinal||(n.ordinal=new M.Additions(n))}function I(){const n=this;n.isXAxis&&L(n.options.overscroll)&&n.max===n.dataMax&&(!n.chart.mouseIsDown||n.isInternal)&&(!n.eventArgs||n.eventArgs&&n.eventArgs.trigger!=="navigator")&&(n.max+=n.options.overscroll,!n.isInternal&&L(n.userMin)&&(n.min+=n.options.overscroll))}function m(){const n=this;n.horiz&&!n.isDirty&&(n.isDirty=n.isOrdinal&&n.chart.navigator&&!n.chart.navigator.adaptToUpdatedData)}function B(){const n=this;n.ordinal&&(n.ordinal.beforeSetTickPositions(),n.tickInterval=n.ordinal.postProcessTickInterval(n.tickInterval))}function T(n){const l=this,f=l.xAxis[0],b=f.options.overscroll,v=n.originalEvent.chartX,G=l.options.chart.panning;let U=!1;if(G&&G.type!=="y"&&f.options.ordinal&&f.series.length){const D=l.mouseDownX,H=f.getExtremes(),z=H.dataMax,W=H.min,d=H.max,R=l.hoverPoints,q=f.closestPointRange||f.ordinal&&f.ordinal.overscrollPointsRange,J=f.translationSlope*(f.ordinal.slope||q),Y=Math.round((D-v)/J),ee=f.ordinal.getExtendedPositions(),E={ordinal:{positions:ee,extendedOrdinalPositions:ee}},V=f.index2val,X=f.val2lin;let Q,se,K,ne;E.ordinal.positions?Math.abs(Y)>1&&(R&&R.forEach(function(oe){oe.setState()}),Y<0?(K=E,ne=f.ordinal.positions?f:E):(K=f.ordinal.positions?f:E,ne=E),se=ne.ordinal.positions,z>se[se.length-1]&&se.push(z),l.fixedRange=d-W,Q=f.navigatorAxis.toFixedRange(void 0,void 0,V.apply(K,[X.apply(K,[W,!0])+Y]),V.apply(ne,[X.apply(ne,[d,!0])+Y])),Q.min>=Math.min(H.dataMin,W)&&Q.max<=Math.max(z,d)+b&&f.setExtremes(Q.min,Q.max,!0,!1,{trigger:"pan"}),l.mouseDownX=v,y(l.container,{cursor:"move"})):U=!0}else U=!0;U||G&&/y/.test(G.type)?b&&(f.max=f.dataMax+b):n.preventDefault()}function S(){const n=this.xAxis;n&&n.options.ordinal&&(delete n.ordinal.index,delete n.ordinal.extendedOrdinalPositions)}function x(n,l){const f=this,b=f.ordinal,v=b.positions;let G=b.slope,U=b.extendedOrdinalPositions;if(!v)return n;const D=v.length;let H;if(v[0]<=n&&v[D-1]>=n)H=F(v,n);else{if(U||(U=b.getExtendedPositions&&b.getExtendedPositions(),b.extendedOrdinalPositions=U),!(U&&U.length))return n;const z=U.length;G||(G=(U[z-1]-U[0])/z);const W=F(U,v[0]);if(n>=U[0]&&n<=U[z-1])H=F(U,n)-W;else if(n<U[0]){const d=U[0]-n,R=d/G;H=-W-R}else H=(n-U[z-1])/G+z-W}return l?H:G*(H||0)+b.offset}class h{constructor(l){this.index={},this.axis=l}beforeSetTickPositions(){const l=this.axis,f=l.ordinal,b=l.getExtremes(),v=b.min,G=b.max,U=l.isXAxis&&!!l.options.breaks,D=l.options.ordinal,H=l.chart.options.chart.ignoreHiddenSeries;let z,W,d,R,q,J,Y,ee=[],E=Number.MAX_VALUE,V=!1,X=!1,Q=!1;if(D||U){let se=0;if(l.series.forEach(function(K,ne){if(W=[],ne>0&&K.options.id!=="highcharts-navigator-series"&&K.processedXData.length>1&&(X=se!==K.processedXData[1]-K.processedXData[0]),se=K.processedXData[1]-K.processedXData[0],K.boosted&&(Q=K.boosted),(!H||K.visible!==!1)&&(K.takeOrdinalPosition!==!1||U)&&(ee=ee.concat(K.processedXData),z=ee.length,ee.sort(function(oe,le){return oe-le}),E=Math.min(E,A(K.closestPointRange,E)),z)){for(ne=0;ne<z-1;)ee[ne]!==ee[ne+1]&&W.push(ee[ne+1]),ne++;W[0]!==ee[0]&&W.unshift(ee[0]),ee=W}}),X&&Q&&(ee.pop(),ee.shift()),z=ee.length,z>2){for(d=ee[1]-ee[0],Y=z-1;Y--&&!V;)ee[Y+1]-ee[Y]!==d&&(V=!0);!l.options.keepOrdinalPadding&&(ee[0]-v>d||G-ee[ee.length-1]>d)&&(V=!0)}else l.options.overscroll&&(z===2?E=ee[1]-ee[0]:z===1?(E=l.options.overscroll,ee=[ee[0],ee[0]+E]):E=f.overscrollPointsRange);V||l.forceOrdinal?(l.options.overscroll&&(f.overscrollPointsRange=E,ee=ee.concat(f.getOverscrollPositions())),f.positions=ee,R=l.ordinal2lin(Math.max(v,ee[0]),!0),q=Math.max(l.ordinal2lin(Math.min(G,ee[ee.length-1]),!0),1),f.slope=J=(G-v)/(q-R),f.offset=v-R*J):(f.overscrollPointsRange=A(l.closestPointRange,f.overscrollPointsRange),f.positions=l.ordinal.slope=f.offset=void 0)}l.isOrdinal=D&&V,f.groupIntervalFactor=null}static findIndexOf(l,f,b){let v=0,G=l.length-1,U;for(;v<G;)U=Math.ceil((v+G)/2),l[U]<=f?v=U:G=U-1;return l[v]===f||b?v:-1}getExtendedPositions(){const l=this,f=l.axis,b=f.constructor.prototype,v=f.chart,G=f.series[0].currentDataGrouping,U=G?G.count+G.unitName:"raw",D=f.options.overscroll,H=f.getExtremes();let z,W,d=l.index;return d||(d=l.index={}),d[U]||(z={series:[],chart:v,forceOrdinal:!1,getExtremes:function(){return{min:H.dataMin,max:H.dataMax+D}},getGroupPixelWidth:b.getGroupPixelWidth,getTimeTicks:b.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:b.ordinal2lin,getIndexOfPoint:b.getIndexOfPoint,val2lin:b.val2lin},z.ordinal.axis=z,f.series.forEach(function(R){W={xAxis:z,xData:R.xData.slice(),chart:v,destroyGroupedData:s.noop,getProcessedData:o.prototype.getProcessedData,applyGrouping:o.prototype.applyGrouping},W.xData=W.xData.concat(l.getOverscrollPositions()),W.options={dataGrouping:G?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[G.unitName,[G.count]]]}:{enabled:!1}},z.series.push(W),R.processData.apply(W)}),W.closestPointRange!==W.basePointRange&&W.currentDataGrouping&&(z.forceOrdinal=!0),f.ordinal.beforeSetTickPositions.apply({axis:z}),d[U]=z.ordinal.positions),d[U]}getGroupIntervalFactor(l,f,b){const v=this;v.axis;const G=b.processedXData,U=G.length,D=[];let H,z,W=v.groupIntervalFactor;if(!W){for(z=0;z<U-1;z++)D[z]=G[z+1]-G[z];D.sort(function(d,R){return d-R}),H=D[Math.floor(U/2)],l=Math.max(l,G[0]),f=Math.min(f,G[U-1]),v.groupIntervalFactor=W=U*H/(f-l)}return W}getIndexOfPoint(l,f){const b=this,v=b.axis,G=b.positions?b.positions[0]:0,U=function(W){return W.points.some(d=>!!d.isInside)};let D;v.series.forEach(W=>{var d;const R=(d=W.points)===null||d===void 0?void 0:d[0];L(R==null?void 0:R.plotX)&&(R.plotX<D||!L(D))&&U(W)&&(D=R.plotX)}),D??(D=v.minPixelPadding);const H=v.translationSlope*(b.slope||v.closestPointRange||b.overscrollPointsRange),z=w((l-D)/H);return h.findIndexOf(f,G,!0)+z}getOverscrollPositions(){const l=this,f=l.axis,b=f.options.overscroll,v=l.overscrollPointsRange,G=[];let U=f.dataMax;if(L(v))for(;U<=f.dataMax+b;)U+=v,G.push(U);return G}postProcessTickInterval(l){const f=this,b=f.axis,v=f.slope;let G;return v?b.options.breaks?G=b.closestPointRange||l:G=l/(v/b.closestPointRange):G=l,G}}M.Additions=h}(O||(O={})),O}),a(t,"Series/HLC/HLCPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(i){const{column:{prototype:{pointClass:s}}}=i.seriesTypes;class o extends s{constructor(){super(...arguments),this.close=void 0,this.high=void 0,this.low=void 0,this.options=void 0,this.plotClose=void 0,this.series=void 0}}return o}),a(t,"Series/HLC/HLCSeriesDefaults.js",[],function(){return{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),a(t,"Series/HLC/HLCSeries.js",[t["Series/HLC/HLCPoint.js"],t["Series/HLC/HLCSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o,c){const{column:u}=o.seriesTypes,{extend:w,merge:y}=c;class L extends u{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0,this.yData=void 0}extendStem(A,p,g){const O=A[0],M=A[1];typeof O[2]=="number"&&(O[2]=Math.max(g+p,O[2])),typeof M[2]=="number"&&(M[2]=Math.min(g-p,M[2]))}getPointPath(A,p){const g=p.strokeWidth(),O=A.series,M=g%2/2,_=Math.round(A.plotX)-M,j=Math.round(A.shapeArgs.width/2);let C=A.plotClose;const k=[["M",_,Math.round(A.yBottom)],["L",_,Math.round(A.plotHigh)]];return A.close!==null&&(C=Math.round(A.plotClose)+M,k.push(["M",_,C],["L",_+j,C]),O.extendStem(k,g/2,C)),k}drawSinglePoint(A){const p=A.series,g=p.chart;let O,M=A.graphic;typeof A.plotY<"u"&&(M||(A.graphic=M=g.renderer.path().add(p.group)),g.styledMode||M.attr(p.pointAttribs(A,A.selected&&"select")),O=p.getPointPath(A,M),M[M?"animate":"attr"]({d:O}).addClass(A.getClassName(),!0))}drawPoints(){this.points.forEach(this.drawSinglePoint)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}pointAttribs(A,p){const g=super.pointAttribs.call(this,A,p);return delete g.fill,g}toYData(A){return[A.high,A.low,A.close]}translate(){const A=this,p=A.yAxis,g=this.pointArrayMap&&this.pointArrayMap.slice()||[],O=g.map(M=>`plot${M.charAt(0).toUpperCase()+M.slice(1)}`);O.push("yBottom"),g.push("low"),super.translate.apply(A),A.points.forEach(function(M){g.forEach(function(_,j){let C=M[_];C!==null&&(A.dataModify&&(C=A.dataModify.modifyValue(C)),M[O[j]]=p.toPixels(C,!0))}),M.tooltipPos[1]=M.plotHigh+p.pos-A.chart.plotTop})}}return L.defaultOptions=y(u.defaultOptions,s),w(L.prototype,{pointClass:i,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),o.registerSeriesType("hlc",L),L}),a(t,"Series/OHLC/OHLCPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(i){const{seriesTypes:{hlc:s}}=i;class o extends s.prototype.pointClass{constructor(){super(...arguments),this.open=void 0,this.options=void 0,this.plotOpen=void 0,this.series=void 0}getClassName(){return super.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")}resolveUpColor(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)}resolveColor(){super.resolveColor(),this.resolveUpColor()}getZone(){const u=super.getZone();return this.resolveUpColor(),u}applyOptions(){return super.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this}}return o}),a(t,"Series/OHLC/OHLCSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'}}}),a(t,"Series/OHLC/OHLCSeries.js",[t["Series/OHLC/OHLCPoint.js"],t["Series/OHLC/OHLCSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o,c){const{seriesTypes:{hlc:u}}=o,{addEvent:w,extend:y,merge:L}=c,N=[];function A(O){const M=O.options,_=M.dataGrouping;_&&M.useOhlcData&&M.id!=="highcharts-navigator-series"&&(_.approximation="ohlc")}function p(O){const M=this,_=O.options;_.useOhlcData&&_.id!=="highcharts-navigator-series"&&y(M,{pointValKey:g.prototype.pointValKey,pointArrayMap:g.prototype.pointArrayMap,toYData:g.prototype.toYData})}class g extends u{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}static compose(M,..._){c.pushUnique(N,M)&&(w(M,"afterSetOptions",A),w(M,"init",p))}getPointPath(M,_){const j=super.getPointPath(M,_),C=_.strokeWidth(),k=C%2/2,F=Math.round(M.plotX)-k,P=Math.round(M.shapeArgs.width/2);let I=M.plotOpen;return M.open!==null&&(I=Math.round(M.plotOpen)+k,j.push(["M",F,I],["L",F-P,I]),super.extendStem(j,C/2,I)),j}pointAttribs(M,_){const j=super.pointAttribs.call(this,M,_),C=this.options;return delete j.fill,!M.options.color&&C.upColor&&M.open<M.close&&(j.stroke=C.upColor),j}toYData(M){return[M.open,M.high,M.low,M.close]}}return g.defaultOptions=L(u.defaultOptions,s),y(g.prototype,{pointClass:i,pointArrayMap:["open","high","low","close"]}),o.registerSeriesType("ohlc",g),g}),a(t,"Series/Candlestick/CandlestickSeriesDefaults.js",[t["Core/Defaults.js"],t["Core/Utilities.js"]],function(i,s){return{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}}),a(t,"Series/Candlestick/CandlestickSeries.js",[t["Series/Candlestick/CandlestickSeriesDefaults.js"],t["Core/Defaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o,c){const{defaultOptions:u}=s,{column:w,ohlc:y}=o.seriesTypes,{merge:L}=c;class N extends y{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}pointAttribs(p,g){const O=w.prototype.pointAttribs.call(this,p,g),M=this.options,_=p.open<p.close,j=M.lineColor||this.color,C=p.color||this.color;if(O["stroke-width"]=M.lineWidth,O.fill=p.options.color||_&&M.upColor||C,O.stroke=p.options.lineColor||_&&M.upLineColor||j,g){const k=M.states[g];O.fill=k.color||O.fill,O.stroke=k.lineColor||O.stroke,O["stroke-width"]=k.lineWidth||O["stroke-width"]}return O}drawPoints(){const p=this,g=p.points,O=p.chart,M=p.yAxis.reversed;for(const _ of g){let j=_.graphic,C,k,F,P,I,m,B,T,S,x;const h=!j;typeof _.plotY<"u"&&(j||(_.graphic=j=O.renderer.path().add(p.group)),p.chart.styledMode||j.attr(p.pointAttribs(_,_.selected&&"select")).shadow(p.options.shadow),B=j.strokeWidth()%2/2,T=Math.round(_.plotX)-B,C=_.plotOpen,k=_.plotClose,F=Math.min(C,k),P=Math.max(C,k),x=Math.round(_.shapeArgs.width/2),I=M?P!==_.yBottom:Math.round(F)!==Math.round(_.plotHigh),m=M?Math.round(F)!==Math.round(_.plotHigh):P!==_.yBottom,F=Math.round(F)+B,P=Math.round(P)+B,S=[],S.push(["M",T-x,P],["L",T-x,F],["L",T+x,F],["L",T+x,P],["Z"],["M",T,F],["L",T,I?Math.round(M?_.yBottom:_.plotHigh):F],["M",T,P],["L",T,m?Math.round(M?_.plotHigh:_.yBottom):P]),j[h?"attr":"animate"]({d:S}).addClass(_.getClassName(),!0))}}}return N.defaultOptions=L(y.defaultOptions,u.plotOptions,{tooltip:y.defaultOptions.tooltip},i),o.registerSeriesType("candlestick",N),N}),a(t,"Series/Flags/FlagsPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s){const{column:{prototype:{pointClass:o}}}=i.seriesTypes,{isNumber:c}=s;class u extends o{constructor(){super(...arguments),this.options=void 0,this.series=void 0,this.ttBelow=!1}isValid(){return c(this.y)||typeof this.y>"u"}hasNewShapeType(){const y=this.options.shape||this.series.options.shape;return this.graphic&&y&&y!==this.graphic.symbolKey}}return u}),a(t,"Series/Flags/FlagsSeriesDefaults.js",[],function(){return{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd3ff"}},style:{fontSize:"0.7em",fontWeight:"bold"}}}),a(t,"Series/Flags/FlagsSymbols.js",[t["Core/Renderer/RendererRegistry.js"]],function(i){var s;return function(o){const c=[];function u(L){if(c.indexOf(L)===-1){c.push(L);const A=L.prototype.symbols;A.flag=w,y(A,"circle"),y(A,"square")}const N=i.getRendererType();c.indexOf(N)&&c.push(N)}o.compose=u;function w(L,N,A,p,g){const O=g&&g.anchorX||L,M=g&&g.anchorY||N,_=this.circle(O-1,M-1,2,2);return _.push(["M",O,M],["L",L,N+p],["L",L,N],["L",L+A,N],["L",L+A,N+p],["L",L,N+p],["Z"]),_}function y(L,N){L[N+"pin"]=function(A,p,g,O,M){const _=M&&M.anchorX,j=M&&M.anchorY;let C;if(N==="circle"&&O>g&&(A-=Math.round((O-g)/2),g=O),C=L[N](A,p,g,O),_&&j){let k=_;if(N==="circle")k=A+g/2;else{const P=C[0],I=C[1];P[0]==="M"&&I[0]==="L"&&(k=(P[1]+I[1])/2)}const F=p>j?p:p+O;C.push(["M",k,F],["L",_,j]),C=C.concat(L.circle(_-1,j-1,2,2))}return C}}}(s||(s={})),s}),a(t,"Series/OnSeriesComposition.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,s,o){const{prototype:c}=i,{prototype:u}=s,{defined:w,stableSort:y}=o;var L;return function(N){const A=[];function p(M){if(o.pushUnique(A,M)){const _=M.prototype;_.getPlotBox=g,_.translate=O}return M}N.compose=p;function g(M){return u.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,M)}N.getPlotBox=g;function O(){c.translate.apply(this);const M=this,_=M.options,j=M.chart,C=M.points,k=_.onSeries,F=k&&j.get(k),P=F&&F.options.step,I=F&&F.points,m=j.inverted,B=M.xAxis,T=M.yAxis;let S=C.length-1,x,h,n=_.onKey||"y",l=I&&I.length,f=0,b,v,G,U,D;if(F&&F.visible&&l)for(f=(F.pointXOffset||0)+(F.barW||0)/2,U=F.currentDataGrouping,v=I[l-1].x+(U?U.totalRange:0),y(C,(H,z)=>H.x-z.x),n="plot"+n[0].toUpperCase()+n.substr(1);l--&&C[S]&&(b=I[l],x=C[S],x.y=b.y,!(b.x<=x.x&&typeof b[n]<"u"&&(x.x<=v&&(x.plotY=b[n],b.x<x.x&&!P&&(G=I[l+1],G&&typeof G[n]<"u"&&(D=(x.x-b.x)/(G.x-b.x),x.plotY+=D*(G[n]-b[n]),x.y+=D*(G.y-b.y)))),S--,l++,S<0))););C.forEach((H,z)=>{let W;H.plotX+=f,(typeof H.plotY>"u"||m)&&(H.plotX>=0&&H.plotX<=B.len?m?(H.plotY=B.translate(H.x,0,1,0,1),H.plotX=w(H.y)?T.translate(H.y,0,0,0,1):0):H.plotY=(B.opposite?0:M.yAxis.len)+B.offset:H.shapeArgs={}),h=C[z-1],h&&h.plotX===H.plotX&&(typeof h.stackIndex>"u"&&(h.stackIndex=0),W=h.stackIndex+1),H.stackIndex=W}),this.onSeries=F}N.translate=O}(L||(L={})),L}),a(t,"Series/Flags/FlagsSeries.js",[t["Series/Flags/FlagsPoint.js"],t["Series/Flags/FlagsSeriesDefaults.js"],t["Series/Flags/FlagsSymbols.js"],t["Core/Globals.js"],t["Series/OnSeriesComposition.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w,y,L,N){const{noop:A}=c,{distribute:p}=w,{series:g,seriesTypes:{column:O}}=y,{addEvent:M,defined:_,extend:j,merge:C,objectEach:k,wrap:F}=N;class P extends O{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}animate(m){m&&this.setClip()}drawPoints(){const m=this,B=m.points,T=m.chart,S=T.renderer,x=T.inverted,h=m.options,n=h.y,l=m.yAxis,f={},b=[];let v,G,U,D,H,z,W,d,R,q,J;for(D=B.length;D--;)H=B[D],q=(x?H.plotY:H.plotX)>m.xAxis.len,v=H.plotX,W=H.stackIndex,U=H.options.shape||h.shape,G=H.plotY,typeof G<"u"&&(G=H.plotY+n-(typeof W<"u"&&W*h.stackDistance)),H.anchorX=W?void 0:H.plotX,d=W?void 0:H.plotY,J=U!=="flag",z=H.graphic,typeof G<"u"&&v>=0&&!q?(z&&H.hasNewShapeType()&&(z=z.destroy()),z||(z=H.graphic=S.label("",null,null,U,null,null,h.useHTML).addClass("highcharts-point").add(m.markerGroup),H.graphic.div&&(H.graphic.div.point=H),z.isNew=!0),z.attr({align:J?"center":"left",width:h.width,height:h.height,"text-align":h.textAlign}),T.styledMode||z.attr(m.pointAttribs(H)).css(C(h.style,H.style)).shadow(h.shadow),v>0&&(v-=z.strokeWidth()%2),R={y:G,anchorY:d},h.allowOverlapX&&(R.x=v,R.anchorX=H.anchorX),z.attr({text:H.options.title||h.title||"A"})[z.isNew?"attr":"animate"](R),h.allowOverlapX||(f[H.plotX]?f[H.plotX].size=Math.max(f[H.plotX].size,z.width):f[H.plotX]={align:J?.5:0,size:z.width,target:v,anchorX:v}),H.tooltipPos=[v,G+l.pos-T.plotTop]):z&&(H.graphic=z.destroy());if(!h.allowOverlapX){let Y=100;k(f,function(ee){ee.plotX=ee.anchorX,b.push(ee),Y=Math.max(ee.size,Y)}),p(b,x?l.len:this.xAxis.len,Y);for(const ee of B){const E=ee.plotX,V=ee.graphic,X=V&&f[E];X&&V&&(_(X.pos)?V[V.isNew?"attr":"animate"]({x:X.pos+(X.align||0)*X.size,anchorX:ee.anchorX}).show().isNew=!1:V.hide().isNew=!0)}}h.useHTML&&m.markerGroup&&F(m.markerGroup,"on",function(Y){return L.prototype.on.apply(Y.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})}drawTracker(){const m=this,B=m.points;super.drawTracker();for(const T of B){const S=T.graphic;S&&(T.unbindMouseOver&&T.unbindMouseOver(),T.unbindMouseOver=M(S.element,"mouseover",function(){T.stackIndex>0&&!T.raised&&(T._y=S.y,S.attr({y:T._y-8}),T.raised=!0);for(const x of B)x!==T&&x.raised&&x.graphic&&(x.graphic.attr({y:x._y}),x.raised=!1)}))}}pointAttribs(m,B){const T=this.options,S=m&&m.color||this.color;let x=T.lineColor,h=m&&m.lineWidth,n=m&&m.fillColor||T.fillColor;return B&&(n=T.states[B].fillColor,x=T.states[B].lineColor,h=T.states[B].lineWidth),{fill:n||S,stroke:x||S,"stroke-width":h||T.lineWidth||0}}setClip(){g.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}}return P.compose=o.compose,P.defaultOptions=C(O.defaultOptions,s),u.compose(P),j(P.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:i,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:A,init:g.prototype.init}),y.registerSeriesType("flags",P),P}),a(t,"Core/Chart/StockChart.js",[t["Core/Axis/Axis.js"],t["Core/Chart/Chart.js"],t["Core/Templating.js"],t["Core/Defaults.js"],t["Stock/Navigator/NavigatorDefaults.js"],t["Stock/RangeSelector/RangeSelectorDefaults.js"],t["Stock/Scrollbar/ScrollbarDefaults.js"],t["Core/Series/Series.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,w,y,L,N,A){const{format:p}=o,{getOptions:g}=c,{addEvent:O,clamp:M,defined:_,extend:j,find:C,isNumber:k,isString:F,merge:P,pick:I,splat:m}=A;class B extends s{init(h,n){const l=g(),f=h.xAxis,b=h.yAxis,v=I(h.navigator&&h.navigator.enabled,u.enabled,!0);h.xAxis=h.yAxis=void 0;const G=P({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x"}},navigator:{enabled:v},scrollbar:{enabled:I(y.enabled,!0)},rangeSelector:{enabled:I(w.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:I(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},h,{isStock:!0});h.xAxis=f,h.yAxis=b,G.xAxis=m(h.xAxis||{}).map(function(U,D){return P(T("xAxis",U),l.xAxis,l.xAxis&&l.xAxis[D],U,S("xAxis",h))}),G.yAxis=m(h.yAxis||{}).map(function(U,D){return P(T("yAxis",U),l.yAxis,l.yAxis&&l.yAxis[D],U)}),super.init(G,n)}createAxis(h,n){return n.axis=P(T(h,n.axis),n.axis,S(h,this.userOptions)),super.createAxis(h,n)}}(function(x){function h(n,l,f){return new x(n,l,f)}x.stockChart=h})(B||(B={}));function T(x,h){return x==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:x==="yAxis"?{labels:{y:-2},opposite:I(h.opposite,!0),showLastLabel:!!(h.categories||h.type==="category"),title:{text:null}}:{}}function S(x,h){if(x==="xAxis"){const n=I(h.navigator&&h.navigator.enabled,u.enabled,!0),l={type:"datetime",categories:void 0};return n&&(l.startOnTick=!1,l.endOnTick=!1),l}return{}}return O(L,"setOptions",function(x){let h;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?h={borderWidth:0,shadow:!1}:!this.is("scatter")&&!this.is("sma")&&(h={marker:{enabled:!1,radius:2}}),h&&(x.plotOptions[this.type]=P(x.plotOptions[this.type],h)))}),O(i,"autoLabelAlign",function(x){const{chart:h,options:n}=this,l=h._labelPanes=h._labelPanes||{},f=n.labels;if(h.options.isStock&&this.coll==="yAxis"){const b=n.top+","+n.height;!l[b]&&f.enabled&&(f.distance===15&&this.side===1&&(f.distance=0),typeof f.align>"u"&&(f.align="right"),l[b]=this,x.align="right",x.preventDefault())}}),O(i,"destroy",function(){const x=this.chart,h=this.options&&this.options.top+","+this.options.height;h&&x._labelPanes&&x._labelPanes[h]===this&&delete x._labelPanes[h]}),O(i,"getPlotLinePath",function(x){let h=this,n=this.isLinked&&!this.series?this.linkedParent.series:this.series,l=h.chart,f=l.renderer,b=h.left,v=h.top,G,U,D,H,z=[],W=[],d,R,q=x.translatedValue,J=x.value,Y=x.force,ee;function E(V){const X=V==="xAxis"?"yAxis":"xAxis",Q=h.options[X];return k(Q)?[l[X][Q]]:F(Q)?[l.get(Q)]:n.map(function(se){return se[X]})}(l.options.isStock&&x.acrossPanes!==!1&&h.coll==="xAxis"||h.coll==="yAxis")&&(x.preventDefault(),W=E(h.coll),d=h.isXAxis?l.yAxis:l.xAxis,d.forEach(function(V){if(!_(V.options.id)||V.options.id.indexOf("navigator")===-1){const X=V.isXAxis?"yAxis":"xAxis",Q=_(V.options[X])?l[X][V.options[X]]:l[X][0];h===Q&&W.push(V)}}),R=W.length?[]:[h.isXAxis?l.yAxis[0]:l.xAxis[0]],W.forEach(function(V){R.indexOf(V)===-1&&!C(R,function(X){return X.pos===V.pos&&X.len===V.len})&&R.push(V)}),ee=I(q,h.translate(J,void 0,void 0,x.old)),k(ee)&&(h.horiz?R.forEach(function(V){let X;U=V.pos,H=U+V.len,G=D=Math.round(ee+h.transB),Y!=="pass"&&(G<b||G>b+h.width)&&(Y?G=D=M(G,b,b+h.width):X=!0),X||z.push(["M",G,U],["L",D,H])}):R.forEach(function(V){let X;G=V.pos,D=G+V.len,U=H=Math.round(v+h.height-ee),Y!=="pass"&&(U<v||U>v+h.height)&&(Y?U=H=M(U,v,v+h.height):X=!0),X||z.push(["M",G,U],["L",D,H])})),x.path=z.length>0?f.crispPolyLine(z,x.lineWidth||1):null)}),N.prototype.crispPolyLine=function(x,h){for(let n=0;n<x.length;n=n+2){const l=x[n],f=x[n+1];l[1]===f[1]&&(l[1]=f[1]=Math.round(l[1])-h%2/2),l[2]===f[2]&&(l[2]=f[2]=Math.round(l[2])+h%2/2)}return x},O(i,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}),O(i,"afterDrawCrosshair",function(x){if(!this.crosshair||!this.crosshair.label||!this.crosshair.label.enabled||!this.cross||!k(this.min)||!k(this.max))return;let h=this.chart,n=this.logarithmic,l=this.crosshair.label,f=this.horiz,b=this.opposite,v=this.left,G=this.top,U=this.width,D=this.crossLabel,H,z,W,d=l.format,R="",q,J,Y=this.options.tickPosition==="inside",ee=this.crosshair.snap!==!1,E=0,V=x.e||this.cross&&this.cross.e,X=x.point,Q=this.min,se=this.max;n&&(Q=n.lin2log(Q),se=n.lin2log(se)),J=f?"center":b?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center",D||(D=this.crossLabel=h.renderer.label("",0,void 0,l.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(X&&X.series?X.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:l.align||J,padding:I(l.padding,8),r:I(l.borderRadius,3),zIndex:2}).add(this.labelGroup),h.styledMode||D.attr({fill:l.backgroundColor||X&&X.series&&X.series.color||"#666666",stroke:l.borderColor||"","stroke-width":l.borderWidth||0}).css(j({color:"#ffffff",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},l.style||{}))),f?(H=ee?(X.plotX||0)+v:V.chartX,z=G+(b?0:this.height)):(H=v+this.offset+(b?U:0),z=ee?(X.plotY||0)+G:V.chartY),!d&&!l.formatter&&(this.dateTime&&(R="%b %d, %Y"),d="{value"+(R?":"+R:"")+"}");const K=ee?this.isXAxis?X.x:X.y:this.toValue(f?V.chartX:V.chartY),ne=X&&X.series?X.series.isPointInside(X):k(K)&&K>Q&&K<se;let oe="";d?oe=p(d,{value:K},h):l.formatter&&k(K)&&(oe=l.formatter.call(this,K)),D.attr({text:oe,x:H,y:z,visibility:ne?"inherit":"hidden"}),W=D.getBBox(),k(D.x)&&!f&&!b&&(H=D.x-W.width/2),k(D.y)&&(f?(Y&&!b||!Y&&b)&&(z=D.y-W.height):z=D.y-W.height/2),f?q={left:v-W.x,right:v+this.width-W.x}:q={left:this.labelAlign==="left"?v:0,right:this.labelAlign==="right"?v+this.width:h.chartWidth},D.translateX<q.left&&(E=q.left-D.translateX),D.translateX+W.width>=q.right&&(E=-(D.translateX+W.width-q.right)),D.attr({x:H+E,y:z,anchorX:f?H:this.opposite?0:h.chartWidth,anchorY:f?this.opposite?h.chartHeight:0:z+W.height/2})}),L.prototype.forceCropping=function(){const x=this.chart,h=this.options,n=h.dataGrouping;return this.allowDG!==!1&&n&&I(n.enabled,x.options.isStock)},O(s,"update",function(x){const h=x.options;"scrollbar"in h&&this.navigator&&(P(!0,this.options.scrollbar,h.scrollbar),this.navigator.update({}),delete h.scrollbar)}),B}),a(t,"masters/modules/stock.src.js",[t["Core/Globals.js"],t["Series/DataModifyComposition.js"],t["Stock/Navigator/Navigator.js"],t["Stock/RangeSelector/RangeSelector.js"],t["Stock/Scrollbar/Scrollbar.js"],t["Core/Axis/OrdinalAxis.js"],t["Series/OHLC/OHLCSeries.js"],t["Series/Flags/FlagsSeries.js"],t["Core/Chart/StockChart.js"]],function(i,s,o,c,u,w,y,L,N){const A=i;A.Navigator=o,A.RangeSelector=c,A.Scrollbar=u,A.StockChart=A.stockChart=N.stockChart,s.compose(A.Series,A.Axis,A.Point),L.compose(A.Renderer),o.compose(A.Axis,A.Chart,A.Series),y.compose(A.Series),w.compose(A.Axis,A.Series,A.Chart),c.compose(A.Axis,A.Chart),u.compose(A.Axis)}),a(t,"masters/highstock.src.js",[t["masters/highcharts.src.js"]],function(i){return i.product="Highstock",i}),t["masters/highstock.src.js"]._modules=t,t["masters/highstock.src.js"]})})(fo);var Bh=fo.exports;const uo=pc(Bh);function Nh(e){return{all:e=e||new Map,on:function(r,t){var a=e.get(r);a?a.push(t):e.set(r,[t])},off:function(r,t){var a=e.get(r);a&&(t?a.splice(a.indexOf(t)>>>0,1):e.set(r,[]))},emit:function(r,t){var a=e.get(r);a&&a.slice().map(function(i){i(t)}),(a=e.get("*"))&&a.slice().map(function(i){i(r,t)})}}}const Zt=Nh();function Xt(e){if(e){var r=new Date(e);let t=r.getFullYear(),a=(r.getMonth()+1).toString().padStart(2,"0"),i=r.getDate().toString().padStart(2,"0"),s=r.getHours().toString().padStart(2,"0"),o=r.getMinutes().toString().padStart(2,"0"),c=r.getSeconds().toString().padStart(2,"0");return t+"-"+a+"-"+i+" "+s+":"+o+":"+c}else return"0000-00-00  00-00-00"}function ot(e){if(e){var r=new Date(e);let t=r.getFullYear(),a=(r.getMonth()+1).toString().padStart(2,"0"),i=r.getDate().toString().padStart(2,"0"),s=r.getHours().toString().padStart(2,"0"),o=r.getMinutes().toString().padStart(2,"0");return r.getSeconds().toString().padStart(2,"0"),t+"-"+a+"-"+i+" "+s+":"+o}else return"0000-00-00  00-00"}const jh={style:{height:"100%"}},Uh=We("div",{id:"container",style:{"min-height":"500px"}},null,-1),Hh={style:{"text-align":"center","margin-top":"20px"}},Wh=We("thead",null,[We("tr",null,[We("th",null,"编号"),We("th",null,"时间"),We("th",null,"备注")])],-1),zh={__name:"highcharts-t",props:{dataList:{type:Array,default:()=>[]}},emits:["setTimeFun"],setup(e,{emit:r}){const t=e,a=bt(),i=ze(!1),s=qe({tBottom:2,tTop:8}),o=Ti();Gt(()=>o.state.plotLineList);const c=qe({chartOptions:null,data:[]}),u=()=>{c.chartOptions=new uo.stockChart("container",{chart:{zoomType:"x",events:{selection(A){console.log("框选",A),A.xAxis&&(Zt.emit("onSelectionTime",A.xAxis),r("setTimeFun",A.xAxis))}},panning:this,pinchType:"",panKey:"shift"},xAxis:{type:"datetime"},time:{useUTC:!1},boost:{useGPUTranslations:!0},tooltip:{formatter:function(){var A=Xt(this.points[0].x)+"<br/>";this.points.sort((p,g)=>g.y-p.y);for(let p in this.points)A+=`<br/><div style='color:${this.points[p].series.color}'>`+this.points[p].series.name+": "+this.points[p].y.toFixed(1)+"°C</div>";return A},shared:!1},yAxis:{opposite:!1,title:{},plotLines:[{color:"#FF1D00",dashStyle:"DashDot",value:s.tTop,width:2,label:{text:`上限（${s.tTop}°C`,align:"right"}},{color:"#FF1D00",dashStyle:"DashDot",value:s.tBottom,width:2,label:{text:`下限（${s.tBottom}°C`,align:"right"}}]},plotOptions:{series:{turboThreshold:0,marker:{enabled:!0,radius:3}}},legend:{enabled:!0},accessibility:{enabled:!1},rangeSelector:{buttons:[],selected:1,inputEnabled:!1},boost:{useGPUTranslations:!0,seriesThreshold:5},scrollbar:{enabled:!1},exporting:{enabled:!1},credits:{enabled:!1},series:c.data})};Zt.on("onFormData",A=>{console.log("打印11111：",A)}),Zt.on("onMessage",A=>{console.log("初值1111",A,t.dataList),s.tTop=A.tTop!=""?A.tTop:null,s.tBottom=A.tBottom!=""?A.tBottom:null,y(),zi(()=>{u()})});const w=ze([]),y=()=>{w.value=[];for(const p of t.dataList)if(s.tBottom==null&&s.tTop!=null){const g=p.data.find(O=>s.tTop<=O[1]);if(g!=null){var A={ids:g[4],times:Xt(g[0]),t:g[1]};w.value.push(A)}w.value.length!=0&&(i.value=!0)}else if(s.tBottom!=null&&s.tTop==null){const g=p.data.find(O=>s.tBottom>=O[1]);if(g!=null){var A={ids:g[4],times:Xt(g[0]),t:g[1]};w.value.push(A)}w.value.length!=0&&(i.value=!0)}else if(s.tBottom!=null&&s.tTop!=null){const g=p.data.find(O=>s.tBottom>=O[1]||s.tTop<=O[1]);if(g!=null){var A={ids:g[4],times:Xt(g[0]),t:g[1]};w.value.push(A)}w.value.length!=0&&(i.value=!0)}else i.value=!1};ls(()=>{Zt.off("onMessage")}),ze(null);const L=Gt(()=>t.dataList.length!=0?N():""),N=()=>{let A=t.dataList,p=[];for(const j of A)for(let C=0;C<j.data.length;C++)p.push(j.data[C][1]);if(p.length==0){a.error("哎呀，没有可展示的数据哦");return}let g=p.reduce((j,C)=>j+C),O=Math.max(...p),M=Math.min(...p),_=(g/p.length).toFixed(1);return`最大值${O}，最小值${M}，平均值${_}`};return fr(()=>o.state.focuDatas,A=>{A!=null?c.chartOptions.zoomBool=!0:c.chartOptions.zoomBool=!1}),fr(()=>t.dataList,A=>{console.log("123456",A),c.data=A,zi(()=>{console.log("89",c.chartOptions),u()})},{deep:!0,immediate:!1}),qe({xAxis:{type:"datetime"},time:{useUTC:!1},boost:{useGPUTranslations:!0},tooltip:{formatter:function(){var A=Xt(this.points[0].x)+"<br/>";for(let p in this.points)A+=`<br/><div style='color:${this.points[p].series.color}'>`+this.points[p].series.name+": "+this.points[p].y.toFixed(1)+"°C</div>";return A},shared:!1},yAxis:{opposite:!1,title:{},plotLines:[{color:"#FF1D00",dashStyle:"DashDot",value:s.hTop,width:2,label:{text:`上限（${s.hTop}Rh）`,align:"right"}},{color:"#FF1D00",dashStyle:"DashDot",value:s.hBottom,width:2,label:{text:`下限（${s.hBottom}Rh）`,align:"right"}}]},plotOptions:{series:{turboThreshold:0,marker:{enabled:!0,radius:3}}},legend:{enabled:!0},accessibility:{enabled:!1},rangeSelector:{buttons:[],selected:1,inputEnabled:!1},boost:{useGPUTranslations:!0,seriesThreshold:5},scrollbar:{enabled:!1},exporting:{enabled:!1},credits:{enabled:!1},chart:{zoomType:"x",panKey:"shift",events:{selection(A){A.xAxis&&(Zt.emit("onSelectionTime",A.xAxis),r("setTimeFun",A.xAxis))}}},series:[]}),(A,p)=>{const g=cs,O=Aa,M=Qt;return Ve(),it("div",jh,[We("input",{type:"text",onFocus:p[0]||(p[0]=(..._)=>A.focusFun&&A.focusFun(..._)),onBlur:p[1]||(p[1]=(..._)=>A.blurFun&&A.blurFun(..._))},null,32),Uh,We("div",Hh,yt(L.value),1),Te(M,{show:i.value,"onUpdate:show":p[3]||(p[3]=_=>i.value=_)},{default:ke(()=>[Te(O,{style:{width:"600px"},title:"超标数据"},{"header-extra":ke(()=>[We("div",{style:{cursor:"pointer"},onClick:p[2]||(p[2]=_=>i.value=!1)},"关闭")]),default:ke(()=>[Te(g,{bordered:!1,"single-line":!1},{default:ke(()=>[Wh,We("tbody",null,[(Ve(!0),it(ft,null,ki(w.value,(_,j)=>(Ve(),it("tr",{key:j},[We("td",null,yt(_.ids),1),We("td",null,yt(_.times),1),We("td",null,"当前温度："+yt(_.t),1)]))),128))])]),_:1})]),_:1})]),_:1},8,["show"])])}}},Gh={style:{height:"100%"}},Xh=We("div",{id:"container",style:{"min-height":"500px"}},null,-1),Vh={style:{"text-align":"center","margin-top":"20px"}},Yh=We("thead",null,[We("tr",null,[We("th",null,"编号"),We("th",null,"时间"),We("th",null,"备注")])],-1),$h={__name:"highcharts-h",props:{dataList:{type:Array,default:()=>[]}},emits:["setTimeFun"],setup(e,{emit:r}){const t=e,a=bt(),i=qe({hBottom:null,hTop:null}),s=Ti();Gt(()=>s.state.plotLineList);const o=qe({chartOptions:null,data:[]}),c=ze(!1),u=()=>{o.chartOptions=new uo.stockChart("container",{chart:{zoomType:"x",events:{selection(A){console.log("框选",A),A.xAxis&&(Zt.emit("onSelectionTime",A.xAxis),r("setTimeFun",A.xAxis))}},panning:this,pinchType:"",panKey:"shift"},xAxis:{type:"datetime"},time:{useUTC:!1},boost:{useGPUTranslations:!0},tooltip:{formatter:function(){var A=Xt(this.points[0].x)+"<br/>";for(let p in this.points)A+=`<br/><div style='color:${this.points[p].series.color}'>`+this.points[p].series.name+": "+this.points[p].y.toFixed(1)+"Rh</div>";return A},shared:!1},yAxis:{opposite:!1,title:{},plotLines:[{color:"#FF1D00",dashStyle:"DashDot",value:i.hTop,width:2,label:{text:`上限（${i.hTop}Rh`,align:"right"}},{color:"#FF1D00",dashStyle:"DashDot",value:i.hBottom,width:2,label:{text:`下限（${i.hBottom}Rh`,align:"right"}}]},plotOptions:{series:{turboThreshold:0,marker:{enabled:!0,radius:3}}},legend:{enabled:!0},accessibility:{enabled:!1},rangeSelector:{buttons:[],selected:1,inputEnabled:!1},boost:{useGPUTranslations:!0,seriesThreshold:5},scrollbar:{enabled:!1},exporting:{enabled:!1},credits:{enabled:!1},series:o.data})};Zt.on("onFormData",A=>{console.log("打印11111：",A)}),Zt.on("onMessage",A=>{console.log("触发155"),i.hTop=A.hTop!=""?A.hTop:null,i.hBottom=A.hBottom!=""?A.hBottom:null,y(),zi(()=>{u()})});const w=ze([]),y=()=>{w.value=[];for(const p of t.dataList)if(console.log("******",p),i.hBottom==null&&i.hTop!=null){const g=p.data.find(O=>i.hTop<=O[1]);if(g!=null){var A={ids:g[4],times:Xt(g[0]),t:g[1]};w.value.push(A)}console.log("设置了上限",w.value),w.value.length!=0&&(c.value=!0)}else if(i.hBottom!=null&&i.hTop==null){const g=p.data.find(O=>i.hBottom>=O[1]);if(g!=null){var A={ids:g[4],times:Xt(g[0]),t:g[1]};w.value.push(A)}w.value.length!=0&&(c.value=!0)}else if(i.hBottom!=null&&i.hTop!=null){const g=p.data.find(O=>i.hBottom>=O[1]||i.hTop<=O[1]);if(g!=null){var A={ids:g[4],times:Xt(g[0]),t:g[1]};w.value.push(A)}w.value.length!=0&&(c.value=!0),console.log("====",g)}else c.value=!1};ls(()=>{Zt.off("onMessage")}),ze(null);const L=Gt(()=>t.dataList.length!=0?N():""),N=()=>{let A=t.dataList,p=[];for(const j of A)for(let C=0;C<j.data.length;C++)p.push(j.data[C][1]);if(p.length==0){a.error("哎呀，没有可展示的数据哦");return}let g=p.reduce((j,C)=>j+C),O=Math.max(...p),M=Math.min(...p),_=(g/p.length).toFixed(1);return`最大值${O}，最小值${M}，平均值${_}`};return fr(()=>s.state.focuDatas,A=>{A!=null?o.chartOptions.zoomBool=!0:o.chartOptions.zoomBool=!1}),fr(()=>t.dataList,A=>{o.data=A,zi(()=>{u()})},{deep:!0,immediate:!1}),qe({xAxis:{type:"datetime"},time:{useUTC:!1},boost:{useGPUTranslations:!0},tooltip:{formatter:function(){var A=Xt(this.points[0].x)+"<br/>";this.points.sort((p,g)=>g.y-p.y);for(let p in this.points)A+=`<br/><div style='color:${this.points[p].series.color}'>`+this.points[p].series.name+": "+this.points[p].y.toFixed(1)+"Rh</div>";return A},shared:!1},yAxis:{opposite:!1,title:{},plotLines:[{color:"#FF1D00",dashStyle:"DashDot",value:i.hTop,width:2,label:{text:`上限（${i.hTop}Rh）`,align:"right"}},{color:"#FF1D00",dashStyle:"DashDot",value:i.hBottom,width:2,label:{text:`下限（${i.hBottom}Rh）`,align:"right"}}]},plotOptions:{series:{turboThreshold:0,marker:{enabled:!0,radius:3}}},legend:{enabled:!0},accessibility:{enabled:!1},rangeSelector:{buttons:[],selected:1,inputEnabled:!1},boost:{useGPUTranslations:!0,seriesThreshold:5},scrollbar:{enabled:!1},exporting:{enabled:!1},credits:{enabled:!1},chart:{zoomType:"x",panKey:"shift",events:{selection(A){A.xAxis&&(Zt.emit("onSelectionTime",A.xAxis),r("setTimeFun",A.xAxis))}}},series:[]}),(A,p)=>{const g=cs,O=Aa,M=Qt;return Ve(),it("div",Gh,[We("input",{type:"text",onFocus:p[0]||(p[0]=(..._)=>A.focusFun&&A.focusFun(..._)),onBlur:p[1]||(p[1]=(..._)=>A.blurFun&&A.blurFun(..._))},null,32),Xh,We("div",Vh,yt(L.value),1),Te(M,{show:c.value,"onUpdate:show":p[3]||(p[3]=_=>c.value=_)},{default:ke(()=>[Te(O,{style:{width:"600px"},title:"超标数据"},{"header-extra":ke(()=>[We("div",{style:{cursor:"pointer"},onClick:p[2]||(p[2]=_=>c.value=!1)},"关闭")]),default:ke(()=>[Te(g,{bordered:!1,"single-line":!1},{default:ke(()=>[Yh,We("tbody",null,[(Ve(!0),it(ft,null,ki(w.value,(_,j)=>(Ve(),it("tr",{key:j},[We("td",null,yt(_.ids),1),We("td",null,yt(_.times),1),We("td",null,"当前湿度："+yt(_.t),1)]))),128))])]),_:1})]),_:1})]),_:1},8,["show"])])}}},Kh={style:{height:"350px","overflow-y":"auto"}},qh={style:{"margin-top":"20px"}},Zh={__name:"AddVue",props:{task:{required:!0,default:{}},classList:{required:!0,default:[]}},emits:["addFuns"],setup(e,{emit:r}){const t=e,a=ze("oasis"),i=qe({cities:null,radioValue:null,chechboxVal:[]}),s=bt(),o=M=>{a.value=M},c=()=>{bc({page:1,page_z:999,T_task_id:t.task.T_task_id}).then(M=>{M.data.Code==200&&(i.chechboxVal=M.data.Data.List),console.log("111",M)})},u=async()=>{if(!i.radioValue){s.error("编号不能为空");return}const M=Xt(new Date),{data:_}=await Xs({T_task_id:t.task.T_task_id,T_sn:i.cities,T_id:i.radioValue,T_t:0,T_rh:0,T_time:M});_.Code==200&&(s.success("添加成功"),y.value=!1)},w=ze(!1),y=ze(!1),L=()=>{console.log("1",i.cities),y.value=!0,i.radioValue=null},N=qe({T_sn:null,T_id:null,T_t:null,T_rh:null,T_time:null}),A=(M,_)=>{N.T_id=_.T_id,N.T_sn=_.T_sn},p=()=>{w.value=!0,i.cities=null,c(),Object.keys(N).forEach(M=>N[M]=null)},g=async()=>{const M=await O(N);if(console.log("999",N),M){Object.keys(N).forEach(j=>N[j]+="");const{data:_}=await Xs({T_task_id:t.task.T_task_id,...N});_.Code===200&&(w.value=!1,s.success(_.Msg))}else{s.error("所有选项都为必填哦");return}},O=M=>new Promise(_=>{const j=Object.keys(M).every(C=>M[C]!=null);_(j)});return(M,_)=>{const j=At,C=Ea,k=ur,F=ti,P=bi,I=or,m=so,B=Lc,T=Ma,S=Ic,x=no,h=Qt;return Ve(),it(ft,null,[Te(j,{type:"primary",onClick:p},{default:ke(()=>[Re("添加数据")]),_:1}),Te(h,{show:He(w),"onUpdate:show":_[9]||(_[9]=n=>Gi(w)?w.value=n:null),"show-icon":!1,preset:"dialog",title:"添加",style:{height:"550px"}},{default:ke(()=>[Te(x,{type:"line",animated:"","default-value":He(a),"on-update:value":o},{default:ke(()=>[Te(m,{name:"oasis",tab:"添加数据"},{default:ke(()=>[Te(I,{model:He(N),"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(k,{label:"测点",path:"T_id"},{default:ke(()=>[Te(C,{value:He(N).T_id,"onUpdate:value":[_[0]||(_[0]=n=>He(N).T_id=n),A],"label-field":"T_id","value-field":"T_id",options:e.classList},null,8,["value","options"])]),_:1}),Te(k,{label:"温度",path:"T_t"},{default:ke(()=>[Te(F,{value:He(N).T_t,"onUpdate:value":_[1]||(_[1]=n=>He(N).T_t=n)},{suffix:ke(()=>[Re(" ℃ ")]),_:1},8,["value"])]),_:1}),Te(k,{label:"湿度",path:"T_rh"},{default:ke(()=>[Te(F,{value:He(N).T_rh,"onUpdate:value":_[2]||(_[2]=n=>He(N).T_rh=n)},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),Te(k,{label:"时间",path:"T_time"},{default:ke(()=>[Te(P,{"formatted-value":He(N).T_time,"onUpdate:formattedValue":_[3]||(_[3]=n=>He(N).T_time=n),"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",clearable:"",class:"w-full"},null,8,["formatted-value"])]),_:1}),Te(k,null,{default:ke(()=>[Te(j,{type:"primary",style:{"margin-right":"20px"},onClick:g},{default:ke(()=>[Re(" 立即提交 ")]),_:1}),Te(j,{onClick:_[4]||(_[4]=n=>w.value=!1)},{default:ke(()=>[Re("取消")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),Te(m,{name:"jaychou",tab:"添加终端"},{default:ke(()=>[We("div",Kh,[Te(S,{value:He(i).cities,"onUpdate:value":_[5]||(_[5]=n=>He(i).cities=n),name:"radiogroup"},{default:ke(()=>[Te(T,{style:{display:"flex","flex-direction":"column"}},{default:ke(()=>[(Ve(!0),it(ft,null,ki(He(i).chechboxVal,n=>(Ve(),Et(B,{key:n.Id,value:n.T_sn,onChange:L},{default:ke(()=>[Re(yt(n.T_sn),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["value"])])]),_:1})]),_:1},8,["default-value"]),Te(h,{show:He(y),"onUpdate:show":_[8]||(_[8]=n=>Gi(y)?y.value=n:null),"show-icon":!1,preset:"dialog",title:"",style:{height:"auto"}},{default:ke(()=>[Te(I,{"show-require-mark":""},{default:ke(()=>[Te(k,{label:"填写编号"},{default:ke(()=>[Te(F,{value:He(i).radioValue,"onUpdate:value":_[6]||(_[6]=n=>He(i).radioValue=n)},null,8,["value"])]),_:1})]),_:1}),We("div",qh,[Te(j,{type:"primary",style:{"margin-right":"20px"},onClick:u},{default:ke(()=>[Re(" 立即提交 ")]),_:1}),Te(j,{onClick:_[7]||(_[7]=n=>y.value=!1)},{default:ke(()=>[Re("取消")]),_:1})])]),_:1},8,["show"])]),_:1},8,["show"])],64)}}};/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var po=1252,Jh=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],fs={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},ds=function(e){Jh.indexOf(e)!=-1&&(po=fs[0]=e)};function Qh(){ds(1252)}var vr=function(e){ds(e)};function go(){vr(1200),Qh()}function qs(e){for(var r=[],t=0,a=e.length;t<a;++t)r[t]=e.charCodeAt(t);return r}function ef(e){for(var r=[],t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t)+(e.charCodeAt(2*t+1)<<8));return r.join("")}function xo(e){for(var r=[],t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var Di=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);return r==255&&t==254?ef(e.slice(2)):r==254&&t==255?xo(e.slice(2)):r==65279?e.slice(1):e},na=function(r){return String.fromCharCode(r)},Zs=function(r){return String.fromCharCode(r)},Rr,Nr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Js(e){for(var r="",t=0,a=0,i=0,s=0,o=0,c=0,u=0,w=0;w<e.length;)t=e.charCodeAt(w++),s=t>>2,a=e.charCodeAt(w++),o=(t&3)<<4|a>>4,i=e.charCodeAt(w++),c=(a&15)<<2|i>>6,u=i&63,isNaN(a)?c=u=64:isNaN(i)&&(u=64),r+=Nr.charAt(s)+Nr.charAt(o)+Nr.charAt(c)+Nr.charAt(u);return r}function ar(e){var r="",t=0,a=0,i=0,s=0,o=0,c=0,u=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var w=0;w<e.length;)s=Nr.indexOf(e.charAt(w++)),o=Nr.indexOf(e.charAt(w++)),t=s<<2|o>>4,r+=String.fromCharCode(t),c=Nr.indexOf(e.charAt(w++)),a=(o&15)<<4|c>>2,c!==64&&(r+=String.fromCharCode(a)),u=Nr.indexOf(e.charAt(w++)),i=(c&3)<<6|u,u!==64&&(r+=String.fromCharCode(i));return r}var Qe=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),ri=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(r,t){return t?new Buffer(r,t):new Buffer(r)}:Buffer.from.bind(Buffer)}return function(){}}();function Hr(e){return Qe?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Qs(e){return Qe?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var mr=function(r){return Qe?ri(r,"binary"):r.split("").map(function(t){return t.charCodeAt(0)&255})};function ii(e){if(Array.isArray(e))return e.map(function(a){return String.fromCharCode(a)}).join("");for(var r=[],t=0;t<e.length;++t)r[t]=String.fromCharCode(e[t]);return r.join("")}function us(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return us(new Uint8Array(e));for(var r=new Array(e.length),t=0;t<e.length;++t)r[t]=e[t];return r}var Br=Qe?function(e){return Buffer.concat(e.map(function(r){return Buffer.isBuffer(r)?r:ri(r)}))}:function(e){if(typeof Uint8Array<"u"){var r=0,t=0;for(r=0;r<e.length;++r)t+=e[r].length;var a=new Uint8Array(t),i=0;for(r=0,t=0;r<e.length;t+=i,++r)if(i=e[r].length,e[r]instanceof Uint8Array)a.set(e[r],t);else{if(typeof e[r]=="string")throw"wtf";a.set(new Uint8Array(e[r]),t)}return a}return[].concat.apply([],e.map(function(s){return Array.isArray(s)?s:[].slice.call(s)}))};function tf(e){for(var r=[],t=0,a=e.length+250,i=Hr(e.length+255),s=0;s<e.length;++s){var o=e.charCodeAt(s);if(o<128)i[t++]=o;else if(o<2048)i[t++]=192|o>>6&31,i[t++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var c=e.charCodeAt(++s)&1023;i[t++]=240|o>>8&7,i[t++]=128|o>>2&63,i[t++]=128|c>>6&15|(o&3)<<4,i[t++]=128|c&63}else i[t++]=224|o>>12&15,i[t++]=128|o>>6&63,i[t++]=128|o&63;t>a&&(r.push(i.slice(0,t)),t=0,i=Hr(65535),a=65530)}return r.push(i.slice(0,t)),Br(r)}var Yt=/\u0000/g,Oi=/[\u0001-\u0006]/g;function gi(e){for(var r="",t=e.length-1;t>=0;)r+=e.charAt(t--);return r}function yr(e,r){var t=""+e;return t.length>=r?t:ht("0",r-t.length)+t}function ps(e,r){var t=""+e;return t.length>=r?t:ht(" ",r-t.length)+t}function ga(e,r){var t=""+e;return t.length>=r?t:t+ht(" ",r-t.length)}function rf(e,r){var t=""+Math.round(e);return t.length>=r?t:ht("0",r-t.length)+t}function af(e,r){var t=""+e;return t.length>=r?t:ht("0",r-t.length)+t}var en=Math.pow(2,32);function di(e,r){if(e>en||e<-en)return rf(e,r);var t=Math.round(e);return af(t,r)}function xa(e,r){return r=r||0,e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var tn=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Ua=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function sf(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Ke={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},rn={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},nf={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function ma(e,r,t){for(var a=e<0?-1:1,i=e*a,s=0,o=1,c=0,u=1,w=0,y=0,L=Math.floor(i);w<r&&(L=Math.floor(i),c=L*o+s,y=L*w+u,!(i-L<5e-8));)i=1/(i-L),s=o,o=c,u=w,w=y;if(y>r&&(w>r?(y=u,c=s):(y=w,c=o)),!t)return[0,a*c,y];var N=Math.floor(a*c/y);return[N,a*c-N*y,y]}function $r(e,r,t){if(e>2958465||e<0)return null;var a=e|0,i=Math.floor(86400*(e-a)),s=0,o=[],c={D:a,T:i,u:86400*(e-a)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(c.u)<1e-6&&(c.u=0),r&&r.date1904&&(a+=1462),c.u>.9999&&(c.u=0,++i==86400&&(c.T=i=0,++a,++c.D)),a===60)o=t?[1317,10,29]:[1900,2,29],s=3;else if(a===0)o=t?[1317,8,29]:[1900,1,0],s=6;else{a>60&&--a;var u=new Date(1900,0,1);u.setDate(u.getDate()+a-1),o=[u.getFullYear(),u.getMonth()+1,u.getDate()],s=u.getDay(),a<60&&(s=(s+6)%7),t&&(s=df(u,o))}return c.y=o[0],c.m=o[1],c.d=o[2],c.S=i%60,i=Math.floor(i/60),c.M=i%60,i=Math.floor(i/60),c.H=i,c.q=s,c}var mo=new Date(1899,11,31,0,0,0),of=mo.getTime(),lf=new Date(1900,2,1,0,0,0);function vo(e,r){var t=e.getTime();return r?t-=1461*24*60*60*1e3:e>=lf&&(t+=24*60*60*1e3),(t-(of+(e.getTimezoneOffset()-mo.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function gs(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function cf(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function hf(e){var r=e<0?12:11,t=gs(e.toFixed(12));return t.length<=r||(t=e.toPrecision(10),t.length<=r)?t:e.toExponential(5)}function ff(e){var r=gs(e.toFixed(11));return r.length>(e<0?12:11)||r==="0"||r==="-0"?e.toPrecision(6):r}function Xi(e){var r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),t;return r>=-4&&r<=-1?t=e.toPrecision(10+r):Math.abs(r)<=9?t=hf(e):r===10?t=e.toFixed(10).substr(0,12):t=ff(e),gs(cf(t.toUpperCase()))}function Zr(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Xi(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return dr(14,vo(e,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+e)}function df(e,r){r[0]-=581;var t=e.getDay();return e<60&&(t=(t+6)%7),t}function uf(e,r,t,a){var i="",s=0,o=0,c=t.y,u,w=0;switch(e){case 98:c=t.y+543;case 121:switch(r.length){case 1:case 2:u=c%100,w=2;break;default:u=c%1e4,w=4;break}break;case 109:switch(r.length){case 1:case 2:u=t.m,w=r.length;break;case 3:return Ua[t.m-1][1];case 5:return Ua[t.m-1][0];default:return Ua[t.m-1][2]}break;case 100:switch(r.length){case 1:case 2:u=t.d,w=r.length;break;case 3:return tn[t.q][0];default:return tn[t.q][1]}break;case 104:switch(r.length){case 1:case 2:u=1+(t.H+11)%12,w=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:u=t.H,w=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:u=t.M,w=r.length;break;default:throw"bad minute format: "+r}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;return t.u===0&&(r=="s"||r=="ss")?yr(t.S,r.length):(a>=2?o=a===3?1e3:100:o=a===1?10:1,s=Math.round(o*(t.S+t.u)),s>=60*o&&(s=0),r==="s"?s===0?"0":""+s/o:(i=yr(s,2+a),r==="ss"?i.substr(0,2):"."+i.substr(2,r.length-1)));case 90:switch(r){case"[h]":case"[hh]":u=t.D*24+t.H;break;case"[m]":case"[mm]":u=(t.D*24+t.H)*60+t.M;break;case"[s]":case"[ss]":u=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r}w=r.length===3?1:2;break;case 101:u=c,w=1;break}var y=w>0?yr(u,w):"";return y}function jr(e){var r=3;if(e.length<=r)return e;for(var t=e.length%r,a=e.substr(0,t);t!=e.length;t+=r)a+=(a.length>0?",":"")+e.substr(t,r);return a}var yo=/%/g;function pf(e,r,t){var a=r.replace(yo,""),i=r.length-a.length;return Cr(e,a,t*Math.pow(10,2*i))+ht("%",i)}function gf(e,r,t){for(var a=r.length-1;r.charCodeAt(a-1)===44;)--a;return Cr(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}function To(e,r){var t,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+To(e,-r);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var s=Math.floor(Math.log(r)*Math.LOG10E)%i;if(s<0&&(s+=i),t=(r/Math.pow(10,s)).toPrecision(a+1+(i+s)%i),t.indexOf("e")===-1){var o=Math.floor(Math.log(r)*Math.LOG10E);for(t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(o-t.length+s):t+="E+"+(o-s);t.substr(0,2)==="0.";)t=t.charAt(0)+t.substr(2,i)+"."+t.substr(2+i),t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(c,u,w,y){return u+w+y.substr(0,(i+s)%i)+"."+y.substr(s)+"E"})}else t=r.toExponential(a);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}var ko=/# (\?+)( ?)\/( ?)(\d+)/;function xf(e,r,t){var a=parseInt(e[4],10),i=Math.round(r*a),s=Math.floor(i/a),o=i-s*a,c=a;return t+(s===0?"":""+s)+" "+(o===0?ht(" ",e[1].length+1+e[4].length):ps(o,e[1].length)+e[2]+"/"+e[3]+yr(c,e[4].length))}function mf(e,r,t){return t+(r===0?"":""+r)+ht(" ",e[1].length+2+e[4].length)}var bo=/^#*0*\.([0#]+)/,_o=/\).*[0#]/,wo=/\(###\) ###\\?-####/;function Wt(e){for(var r="",t,a=0;a!=e.length;++a)switch(t=e.charCodeAt(a)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function an(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function sn(e,r){var t=e-Math.floor(e),a=Math.pow(10,r);return r<(""+Math.round(t*a)).length?0:Math.round(t*a)}function vf(e,r){return r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length?1:0}function yf(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function cr(e,r,t){if(e.charCodeAt(0)===40&&!r.match(_o)){var a=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?cr("n",a,t):"("+cr("n",a,-t)+")"}if(r.charCodeAt(r.length-1)===44)return gf(e,r,t);if(r.indexOf("%")!==-1)return pf(e,r,t);if(r.indexOf("E")!==-1)return To(r,t);if(r.charCodeAt(0)===36)return"$"+cr(e,r.substr(r.charAt(1)==" "?2:1),t);var i,s,o,c,u=Math.abs(t),w=t<0?"-":"";if(r.match(/^00+$/))return w+di(u,r.length);if(r.match(/^[#?]+$/))return i=di(t,0),i==="0"&&(i=""),i.length>r.length?i:Wt(r.substr(0,r.length-i.length))+i;if(s=r.match(ko))return xf(s,u,w);if(r.match(/^#+0+$/))return w+di(u,r.length-r.indexOf("0"));if(s=r.match(bo))return i=an(t,s[1].length).replace(/^([^\.]+)$/,"$1."+Wt(s[1])).replace(/\.$/,"."+Wt(s[1])).replace(/\.(\d*)$/,function(p,g){return"."+g+ht("0",Wt(s[1]).length-g.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),s=r.match(/^(0*)\.(#*)$/))return w+an(u,s[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=r.match(/^#{1,3},##0(\.?)$/))return w+jr(di(u,0));if(s=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+cr(e,r,-t):jr(""+(Math.floor(t)+vf(t,s[1].length)))+"."+yr(sn(t,s[1].length),s[1].length);if(s=r.match(/^#,#*,#0/))return cr(e,r.replace(/^#,#*,/,""),t);if(s=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=gi(cr(e,r.replace(/[\\-]/g,""),t)),o=0,gi(gi(r.replace(/\\/g,"")).replace(/[0#]/g,function(p){return o<i.length?i.charAt(o++):p==="0"?"0":""}));if(r.match(wo))return i=cr(e,"##########",t),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var y="";if(s=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(s[4].length,7),c=ma(u,Math.pow(10,o)-1,!1),i=""+w,y=Cr("n",s[1],c[1]),y.charAt(y.length-1)==" "&&(y=y.substr(0,y.length-1)+"0"),i+=y+s[2]+"/"+s[3],y=ga(c[2],o),y.length<s[4].length&&(y=Wt(s[4].substr(s[4].length-y.length))+y),i+=y,i;if(s=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(s[1].length,s[4].length),7),c=ma(u,Math.pow(10,o)-1,!0),w+(c[0]||(c[1]?"":"0"))+" "+(c[1]?ps(c[1],o)+s[2]+"/"+s[3]+ga(c[2],o):ht(" ",2*o+1+s[2].length+s[3].length));if(s=r.match(/^[#0?]+$/))return i=di(t,0),r.length<=i.length?i:Wt(r.substr(0,r.length-i.length))+i;if(s=r.match(/^([#0?]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var L=r.indexOf(".")-o,N=r.length-i.length-L;return Wt(r.substr(0,L)+i+r.substr(r.length-N))}if(s=r.match(/^00,000\.([#0]*0)$/))return o=sn(t,s[1].length),t<0?"-"+cr(e,r,-t):jr(yf(t)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(p){return"00,"+(p.length<3?yr(0,3-p.length):"")+p})+"."+yr(o,s[1].length);switch(r){case"###,##0.00":return cr(e,"#,##0.00",t);case"###,###":case"##,###":case"#,###":var A=jr(di(u,0));return A!=="0"?w+A:"";case"###,###.00":return cr(e,"###,##0.00",t).replace(/^0\./,".");case"#,###.00":return cr(e,"#,##0.00",t).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function Tf(e,r,t){for(var a=r.length-1;r.charCodeAt(a-1)===44;)--a;return Cr(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}function kf(e,r,t){var a=r.replace(yo,""),i=r.length-a.length;return Cr(e,a,t*Math.pow(10,2*i))+ht("%",i)}function So(e,r){var t,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+So(e,-r);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var s=Math.floor(Math.log(r)*Math.LOG10E)%i;if(s<0&&(s+=i),t=(r/Math.pow(10,s)).toPrecision(a+1+(i+s)%i),!t.match(/[Ee]/)){var o=Math.floor(Math.log(r)*Math.LOG10E);t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(o-t.length+s):t+="E+"+(o-s),t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(c,u,w,y){return u+w+y.substr(0,(i+s)%i)+"."+y.substr(s)+"E"})}else t=r.toExponential(a);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}function br(e,r,t){if(e.charCodeAt(0)===40&&!r.match(_o)){var a=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?br("n",a,t):"("+br("n",a,-t)+")"}if(r.charCodeAt(r.length-1)===44)return Tf(e,r,t);if(r.indexOf("%")!==-1)return kf(e,r,t);if(r.indexOf("E")!==-1)return So(r,t);if(r.charCodeAt(0)===36)return"$"+br(e,r.substr(r.charAt(1)==" "?2:1),t);var i,s,o,c,u=Math.abs(t),w=t<0?"-":"";if(r.match(/^00+$/))return w+yr(u,r.length);if(r.match(/^[#?]+$/))return i=""+t,t===0&&(i=""),i.length>r.length?i:Wt(r.substr(0,r.length-i.length))+i;if(s=r.match(ko))return mf(s,u,w);if(r.match(/^#+0+$/))return w+yr(u,r.length-r.indexOf("0"));if(s=r.match(bo))return i=(""+t).replace(/^([^\.]+)$/,"$1."+Wt(s[1])).replace(/\.$/,"."+Wt(s[1])),i=i.replace(/\.(\d*)$/,function(p,g){return"."+g+ht("0",Wt(s[1]).length-g.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),s=r.match(/^(0*)\.(#*)$/))return w+(""+u).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=r.match(/^#{1,3},##0(\.?)$/))return w+jr(""+u);if(s=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+br(e,r,-t):jr(""+t)+"."+ht("0",s[1].length);if(s=r.match(/^#,#*,#0/))return br(e,r.replace(/^#,#*,/,""),t);if(s=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=gi(br(e,r.replace(/[\\-]/g,""),t)),o=0,gi(gi(r.replace(/\\/g,"")).replace(/[0#]/g,function(p){return o<i.length?i.charAt(o++):p==="0"?"0":""}));if(r.match(wo))return i=br(e,"##########",t),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var y="";if(s=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(s[4].length,7),c=ma(u,Math.pow(10,o)-1,!1),i=""+w,y=Cr("n",s[1],c[1]),y.charAt(y.length-1)==" "&&(y=y.substr(0,y.length-1)+"0"),i+=y+s[2]+"/"+s[3],y=ga(c[2],o),y.length<s[4].length&&(y=Wt(s[4].substr(s[4].length-y.length))+y),i+=y,i;if(s=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(s[1].length,s[4].length),7),c=ma(u,Math.pow(10,o)-1,!0),w+(c[0]||(c[1]?"":"0"))+" "+(c[1]?ps(c[1],o)+s[2]+"/"+s[3]+ga(c[2],o):ht(" ",2*o+1+s[2].length+s[3].length));if(s=r.match(/^[#0?]+$/))return i=""+t,r.length<=i.length?i:Wt(r.substr(0,r.length-i.length))+i;if(s=r.match(/^([#0]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var L=r.indexOf(".")-o,N=r.length-i.length-L;return Wt(r.substr(0,L)+i+r.substr(r.length-N))}if(s=r.match(/^00,000\.([#0]*0)$/))return t<0?"-"+br(e,r,-t):jr(""+t).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(p){return"00,"+(p.length<3?yr(0,3-p.length):"")+p})+"."+yr(0,s[1].length);switch(r){case"###,###":case"##,###":case"#,###":var A=jr(""+u);return A!=="0"?w+A:"";default:if(r.match(/\.[0#?]*$/))return br(e,r.slice(0,r.lastIndexOf(".")),t)+Wt(r.slice(r.lastIndexOf(".")))}throw new Error("unsupported format |"+r+"|")}function Cr(e,r,t){return(t|0)===t?br(e,r,t):cr(e,r,t)}function bf(e){for(var r=[],t=!1,a=0,i=0;a<e.length;++a)switch(e.charCodeAt(a)){case 34:t=!t;break;case 95:case 42:case 92:++a;break;case 59:r[r.length]=e.substr(i,a-i),i=a+1}if(r[r.length]=e.substr(i),t===!0)throw new Error("Format |"+e+"| unterminated string ");return r}var Ao=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function _i(e){for(var r=0,t="",a="";r<e.length;)switch(t=e.charAt(r)){case"G":xa(e,r)&&(r+=6),r++;break;case'"':for(;e.charCodeAt(++r)!==34&&r<e.length;);++r;break;case"\\":r+=2;break;case"_":r+=2;break;case"@":++r;break;case"B":case"b":if(e.charAt(r+1)==="1"||e.charAt(r+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(r,3).toUpperCase()==="A/P"||e.substr(r,5).toUpperCase()==="AM/PM"||e.substr(r,5).toUpperCase()==="上午/下午")return!0;++r;break;case"[":for(a=t;e.charAt(r++)!=="]"&&r<e.length;)a+=e.charAt(r);if(a.match(Ao))return!0;break;case".":case"0":case"#":for(;r<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++r))>-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1););break;case"?":for(;e.charAt(++r)===t;);break;case"*":++r,(e.charAt(r)==" "||e.charAt(r)=="*")&&++r;break;case"(":case")":++r;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;r<e.length&&"0123456789".indexOf(e.charAt(++r))>-1;);break;case" ":++r;break;default:++r;break}return!1}function _f(e,r,t,a){for(var i=[],s="",o=0,c="",u="t",w,y,L,N="H";o<e.length;)switch(c=e.charAt(o)){case"G":if(!xa(e,o))throw new Error("unrecognized character "+c+" in "+e);i[i.length]={t:"G",v:"General"},o+=7;break;case'"':for(s="";(L=e.charCodeAt(++o))!==34&&o<e.length;)s+=String.fromCharCode(L);i[i.length]={t:"t",v:s},++o;break;case"\\":var A=e.charAt(++o),p=A==="("||A===")"?A:"t";i[i.length]={t:p,v:A},++o;break;case"_":i[i.length]={t:"t",v:" "},o+=2;break;case"@":i[i.length]={t:"T",v:r},++o;break;case"B":case"b":if(e.charAt(o+1)==="1"||e.charAt(o+1)==="2"){if(w==null&&(w=$r(r,t,e.charAt(o+1)==="2"),w==null))return"";i[i.length]={t:"X",v:e.substr(o,2)},u=c,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":c=c.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(r<0||w==null&&(w=$r(r,t),w==null))return"";for(s=c;++o<e.length&&e.charAt(o).toLowerCase()===c;)s+=c;c==="m"&&u.toLowerCase()==="h"&&(c="M"),c==="h"&&(c=N),i[i.length]={t:c,v:s},u=c;break;case"A":case"a":case"上":var g={t:c,v:c};if(w==null&&(w=$r(r,t)),e.substr(o,3).toUpperCase()==="A/P"?(w!=null&&(g.v=w.H>=12?"P":"A"),g.t="T",N="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(w!=null&&(g.v=w.H>=12?"PM":"AM"),g.t="T",o+=5,N="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(w!=null&&(g.v=w.H>=12?"下午":"上午"),g.t="T",o+=5,N="h"):(g.t="t",++o),w==null&&g.t==="T")return"";i[i.length]=g,u=c;break;case"[":for(s=c;e.charAt(o++)!=="]"&&o<e.length;)s+=e.charAt(o);if(s.slice(-1)!=="]")throw'unterminated "[" block: |'+s+"|";if(s.match(Ao)){if(w==null&&(w=$r(r,t),w==null))return"";i[i.length]={t:"Z",v:s.toLowerCase()},u=s.charAt(1)}else s.indexOf("$")>-1&&(s=(s.match(/\$([^-\[\]]*)/)||[])[1]||"$",_i(e)||(i[i.length]={t:"t",v:s}));break;case".":if(w!=null){for(s=c;++o<e.length&&(c=e.charAt(o))==="0";)s+=c;i[i.length]={t:"s",v:s};break}case"0":case"#":for(s=c;++o<e.length&&"0#?.,E+-%".indexOf(c=e.charAt(o))>-1;)s+=c;i[i.length]={t:"n",v:s};break;case"?":for(s=c;e.charAt(++o)===c;)s+=c;i[i.length]={t:c,v:s},u=c;break;case"*":++o,(e.charAt(o)==" "||e.charAt(o)=="*")&&++o;break;case"(":case")":i[i.length]={t:a===1?"t":c,v:c},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(s=c;o<e.length&&"0123456789".indexOf(e.charAt(++o))>-1;)s+=e.charAt(o);i[i.length]={t:"D",v:s};break;case" ":i[i.length]={t:c,v:c},++o;break;case"$":i[i.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(c)===-1)throw new Error("unrecognized character "+c+" in "+e);i[i.length]={t:"t",v:c},++o;break}var O=0,M=0,_;for(o=i.length-1,u="t";o>=0;--o)switch(i[o].t){case"h":case"H":i[o].t=N,u="h",O<1&&(O=1);break;case"s":(_=i[o].v.match(/\.0+$/))&&(M=Math.max(M,_[0].length-1)),O<3&&(O=3);case"d":case"y":case"M":case"e":u=i[o].t;break;case"m":u==="s"&&(i[o].t="M",O<2&&(O=2));break;case"X":break;case"Z":O<1&&i[o].v.match(/[Hh]/)&&(O=1),O<2&&i[o].v.match(/[Mm]/)&&(O=2),O<3&&i[o].v.match(/[Ss]/)&&(O=3)}switch(O){case 0:break;case 1:w.u>=.5&&(w.u=0,++w.S),w.S>=60&&(w.S=0,++w.M),w.M>=60&&(w.M=0,++w.H);break;case 2:w.u>=.5&&(w.u=0,++w.S),w.S>=60&&(w.S=0,++w.M);break}var j="",C;for(o=0;o<i.length;++o)switch(i[o].t){case"t":case"T":case" ":case"D":break;case"X":i[o].v="",i[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[o].v=uf(i[o].t.charCodeAt(0),i[o].v,w,M),i[o].t="t";break;case"n":case"?":for(C=o+1;i[C]!=null&&((c=i[C].t)==="?"||c==="D"||(c===" "||c==="t")&&i[C+1]!=null&&(i[C+1].t==="?"||i[C+1].t==="t"&&i[C+1].v==="/")||i[o].t==="("&&(c===" "||c==="n"||c===")")||c==="t"&&(i[C].v==="/"||i[C].v===" "&&i[C+1]!=null&&i[C+1].t=="?"));)i[o].v+=i[C].v,i[C]={v:"",t:";"},++C;j+=i[o].v,o=C-1;break;case"G":i[o].t="t",i[o].v=Zr(r,t);break}var k="",F,P;if(j.length>0){j.charCodeAt(0)==40?(F=r<0&&j.charCodeAt(0)===45?-r:r,P=Cr("n",j,F)):(F=r<0&&a>1?-r:r,P=Cr("n",j,F),F<0&&i[0]&&i[0].t=="t"&&(P=P.substr(1),i[0].v="-"+i[0].v)),C=P.length-1;var I=i.length;for(o=0;o<i.length;++o)if(i[o]!=null&&i[o].t!="t"&&i[o].v.indexOf(".")>-1){I=o;break}var m=i.length;if(I===i.length&&P.indexOf("E")===-1){for(o=i.length-1;o>=0;--o)i[o]==null||"n?".indexOf(i[o].t)===-1||(C>=i[o].v.length-1?(C-=i[o].v.length,i[o].v=P.substr(C+1,i[o].v.length)):C<0?i[o].v="":(i[o].v=P.substr(0,C+1),C=-1),i[o].t="t",m=o);C>=0&&m<i.length&&(i[m].v=P.substr(0,C+1)+i[m].v)}else if(I!==i.length&&P.indexOf("E")===-1){for(C=P.indexOf(".")-1,o=I;o>=0;--o)if(!(i[o]==null||"n?".indexOf(i[o].t)===-1)){for(y=i[o].v.indexOf(".")>-1&&o===I?i[o].v.indexOf(".")-1:i[o].v.length-1,k=i[o].v.substr(y+1);y>=0;--y)C>=0&&(i[o].v.charAt(y)==="0"||i[o].v.charAt(y)==="#")&&(k=P.charAt(C--)+k);i[o].v=k,i[o].t="t",m=o}for(C>=0&&m<i.length&&(i[m].v=P.substr(0,C+1)+i[m].v),C=P.indexOf(".")+1,o=I;o<i.length;++o)if(!(i[o]==null||"n?(".indexOf(i[o].t)===-1&&o!==I)){for(y=i[o].v.indexOf(".")>-1&&o===I?i[o].v.indexOf(".")+1:0,k=i[o].v.substr(0,y);y<i[o].v.length;++y)C<P.length&&(k+=P.charAt(C++));i[o].v=k,i[o].t="t",m=o}}}for(o=0;o<i.length;++o)i[o]!=null&&"n?".indexOf(i[o].t)>-1&&(F=a>1&&r<0&&o>0&&i[o-1].v==="-"?-r:r,i[o].v=Cr(i[o].t,i[o].v,F),i[o].t="t");var B="";for(o=0;o!==i.length;++o)i[o]!=null&&(B+=i[o].v);return B}var nn=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function on(e,r){if(r==null)return!1;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return!0;break;case">":if(e>t)return!0;break;case"<":if(e<t)return!0;break;case"<>":if(e!=t)return!0;break;case">=":if(e>=t)return!0;break;case"<=":if(e<=t)return!0;break}return!1}function wf(e,r){var t=bf(e),a=t.length,i=t[a-1].indexOf("@");if(a<4&&i>-1&&--a,t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof r!="number")return[4,t.length===4||i>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=i>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=i>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=i>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break}var s=r>0?t[0]:r<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[a,s];if(t[0].match(/\[[=<>]/)!=null||t[1].match(/\[[=<>]/)!=null){var o=t[0].match(nn),c=t[1].match(nn);return on(r,o)?[a,t[0]]:on(r,c)?[a,t[1]]:[a,t[o!=null&&c!=null?2:1]]}return[a,s]}function dr(e,r,t){t==null&&(t={});var a="";switch(typeof e){case"string":e=="m/d/yy"&&t.dateNF?a=t.dateNF:a=e;break;case"number":e==14&&t.dateNF?a=t.dateNF:a=(t.table!=null?t.table:Ke)[e],a==null&&(a=t.table&&t.table[rn[e]]||Ke[rn[e]]),a==null&&(a=nf[e]||"General");break}if(xa(a,0))return Zr(r,t);r instanceof Date&&(r=vo(r,t.date1904));var i=wf(a,r);if(xa(i[1]))return Zr(r,t);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return _f(i[1],r,t,i[0])}function Kr(e,r){if(typeof r!="number"){r=+r||-1;for(var t=0;t<392;++t){if(Ke[t]==null){r<0&&(r=t);continue}if(Ke[t]==e){r=t;break}}r<0&&(r=391)}return Ke[r]=e,r}function Eo(){Ke=sf()}var Sf={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Co=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Af(e){var r=typeof e=="number"?Ke[e]:e;return r=r.replace(Co,"(\\d+)"),new RegExp("^"+r+"$")}function Ef(e,r,t){var a=-1,i=-1,s=-1,o=-1,c=-1,u=-1;(r.match(Co)||[]).forEach(function(L,N){var A=parseInt(t[N+1],10);switch(L.toLowerCase().charAt(0)){case"y":a=A;break;case"d":s=A;break;case"h":o=A;break;case"s":u=A;break;case"m":o>=0?c=A:i=A;break}}),u>=0&&c==-1&&i>=0&&(c=i,i=-1);var w=(""+(a>=0?a:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);w.length==7&&(w="0"+w),w.length==8&&(w="20"+w);var y=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2)+":"+("00"+(u>=0?u:0)).slice(-2);return o==-1&&c==-1&&u==-1?w:a==-1&&i==-1&&s==-1?y:w+"T"+y}var Cf=function(){var e={};e.version="1.2.0";function r(){for(var P=0,I=new Array(256),m=0;m!=256;++m)P=m,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,I[m]=P;return typeof Int32Array<"u"?new Int32Array(I):I}var t=r();function a(P){var I=0,m=0,B=0,T=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(B=0;B!=256;++B)T[B]=P[B];for(B=0;B!=256;++B)for(m=P[B],I=256+B;I<4096;I+=256)m=T[I]=m>>>8^P[m&255];var S=[];for(B=1;B!=16;++B)S[B-1]=typeof Int32Array<"u"?T.subarray(B*256,B*256+256):T.slice(B*256,B*256+256);return S}var i=a(t),s=i[0],o=i[1],c=i[2],u=i[3],w=i[4],y=i[5],L=i[6],N=i[7],A=i[8],p=i[9],g=i[10],O=i[11],M=i[12],_=i[13],j=i[14];function C(P,I){for(var m=I^-1,B=0,T=P.length;B<T;)m=m>>>8^t[(m^P.charCodeAt(B++))&255];return~m}function k(P,I){for(var m=I^-1,B=P.length-15,T=0;T<B;)m=j[P[T++]^m&255]^_[P[T++]^m>>8&255]^M[P[T++]^m>>16&255]^O[P[T++]^m>>>24]^g[P[T++]]^p[P[T++]]^A[P[T++]]^N[P[T++]]^L[P[T++]]^y[P[T++]]^w[P[T++]]^u[P[T++]]^c[P[T++]]^o[P[T++]]^s[P[T++]]^t[P[T++]];for(B+=15;T<B;)m=m>>>8^t[(m^P[T++])&255];return~m}function F(P,I){for(var m=I^-1,B=0,T=P.length,S=0,x=0;B<T;)S=P.charCodeAt(B++),S<128?m=m>>>8^t[(m^S)&255]:S<2048?(m=m>>>8^t[(m^(192|S>>6&31))&255],m=m>>>8^t[(m^(128|S&63))&255]):S>=55296&&S<57344?(S=(S&1023)+64,x=P.charCodeAt(B++)&1023,m=m>>>8^t[(m^(240|S>>8&7))&255],m=m>>>8^t[(m^(128|S>>2&63))&255],m=m>>>8^t[(m^(128|x>>6&15|(S&3)<<4))&255],m=m>>>8^t[(m^(128|x&63))&255]):(m=m>>>8^t[(m^(224|S>>12&15))&255],m=m>>>8^t[(m^(128|S>>6&63))&255],m=m>>>8^t[(m^(128|S&63))&255]);return~m}return e.table=t,e.bstr=C,e.buf=k,e.str=F,e}(),et=function(){var r={};r.version="1.2.1";function t(ce,pe){for(var de=ce.split("/"),ue=pe.split("/"),xe=0,me=0,Se=Math.min(de.length,ue.length);xe<Se;++xe){if(me=de[xe].length-ue[xe].length)return me;if(de[xe]!=ue[xe])return de[xe]<ue[xe]?-1:1}return de.length-ue.length}function a(ce){if(ce.charAt(ce.length-1)=="/")return ce.slice(0,-1).indexOf("/")===-1?ce:a(ce.slice(0,-1));var pe=ce.lastIndexOf("/");return pe===-1?ce:ce.slice(0,pe+1)}function i(ce){if(ce.charAt(ce.length-1)=="/")return i(ce.slice(0,-1));var pe=ce.lastIndexOf("/");return pe===-1?ce:ce.slice(pe+1)}function s(ce,pe){typeof pe=="string"&&(pe=new Date(pe));var de=pe.getHours();de=de<<6|pe.getMinutes(),de=de<<5|pe.getSeconds()>>>1,ce.write_shift(2,de);var ue=pe.getFullYear()-1980;ue=ue<<4|pe.getMonth()+1,ue=ue<<5|pe.getDate(),ce.write_shift(2,ue)}function o(ce){var pe=ce.read_shift(2)&65535,de=ce.read_shift(2)&65535,ue=new Date,xe=de&31;de>>>=5;var me=de&15;de>>>=4,ue.setMilliseconds(0),ue.setFullYear(de+1980),ue.setMonth(me-1),ue.setDate(xe);var Se=pe&31;pe>>>=5;var Me=pe&63;return pe>>>=6,ue.setHours(pe),ue.setMinutes(Me),ue.setSeconds(Se<<1),ue}function c(ce){Ct(ce,0);for(var pe={},de=0;ce.l<=ce.length-4;){var ue=ce.read_shift(2),xe=ce.read_shift(2),me=ce.l+xe,Se={};switch(ue){case 21589:de=ce.read_shift(1),de&1&&(Se.mtime=ce.read_shift(4)),xe>5&&(de&2&&(Se.atime=ce.read_shift(4)),de&4&&(Se.ctime=ce.read_shift(4))),Se.mtime&&(Se.mt=new Date(Se.mtime*1e3));break}ce.l=me,pe[ue]=Se}return pe}var u;function w(){return u||(u={})}function y(ce,pe){if(ce[0]==80&&ce[1]==75)return at(ce,pe);if((ce[0]|32)==109&&(ce[1]|32)==105)return ci(ce,pe);if(ce.length<512)throw new Error("CFB file size "+ce.length+" < 512");var de=3,ue=512,xe=0,me=0,Se=0,Me=0,we=0,Ae=[],Ee=ce.slice(0,512);Ct(Ee,0);var Oe=L(Ee);switch(de=Oe[0],de){case 3:ue=512;break;case 4:ue=4096;break;case 0:if(Oe[1]==0)return at(ce,pe);default:throw new Error("Major Version: Expected 3 or 4 saw "+de)}ue!==512&&(Ee=ce.slice(0,ue),Ct(Ee,28));var Ie=ce.slice(0,ue);N(Ee,de);var je=Ee.read_shift(4,"i");if(de===3&&je!==0)throw new Error("# Directory Sectors: Expected 0 saw "+je);Ee.l+=4,Se=Ee.read_shift(4,"i"),Ee.l+=4,Ee.chk("00100000","Mini Stream Cutoff Size: "),Me=Ee.read_shift(4,"i"),xe=Ee.read_shift(4,"i"),we=Ee.read_shift(4,"i"),me=Ee.read_shift(4,"i");for(var Fe=-1,Ne=0;Ne<109&&(Fe=Ee.read_shift(4,"i"),!(Fe<0));++Ne)Ae[Ne]=Fe;var $e=A(ce,ue);O(we,me,$e,ue,Ae);var lt=_($e,Se,Ae,ue);lt[Se].name="!Directory",xe>0&&Me!==x&&(lt[Me].name="!MiniFAT"),lt[Ae[0]].name="!FAT",lt.fat_addrs=Ae,lt.ssz=ue;var ct={},Ot=[],Ai=[],Ei=[];j(Se,lt,$e,Ot,xe,ct,Ai,Me),p(Ai,Ei,Ot),Ot.shift();var Ci={FileIndex:Ai,FullPaths:Ei};return pe&&pe.raw&&(Ci.raw={header:Ie,sectors:$e}),Ci}function L(ce){if(ce[ce.l]==80&&ce[ce.l+1]==75)return[0,0];ce.chk(h,"Header Signature: "),ce.l+=16;var pe=ce.read_shift(2,"u");return[ce.read_shift(2,"u"),pe]}function N(ce,pe){var de=9;switch(ce.l+=2,de=ce.read_shift(2)){case 9:if(pe!=3)throw new Error("Sector Shift: Expected 9 saw "+de);break;case 12:if(pe!=4)throw new Error("Sector Shift: Expected 12 saw "+de);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+de)}ce.chk("0600","Mini Sector Shift: "),ce.chk("000000000000","Reserved: ")}function A(ce,pe){for(var de=Math.ceil(ce.length/pe)-1,ue=[],xe=1;xe<de;++xe)ue[xe-1]=ce.slice(xe*pe,(xe+1)*pe);return ue[de-1]=ce.slice(de*pe),ue}function p(ce,pe,de){for(var ue=0,xe=0,me=0,Se=0,Me=0,we=de.length,Ae=[],Ee=[];ue<we;++ue)Ae[ue]=Ee[ue]=ue,pe[ue]=de[ue];for(;Me<Ee.length;++Me)ue=Ee[Me],xe=ce[ue].L,me=ce[ue].R,Se=ce[ue].C,Ae[ue]===ue&&(xe!==-1&&Ae[xe]!==xe&&(Ae[ue]=Ae[xe]),me!==-1&&Ae[me]!==me&&(Ae[ue]=Ae[me])),Se!==-1&&(Ae[Se]=ue),xe!==-1&&ue!=Ae[ue]&&(Ae[xe]=Ae[ue],Ee.lastIndexOf(xe)<Me&&Ee.push(xe)),me!==-1&&ue!=Ae[ue]&&(Ae[me]=Ae[ue],Ee.lastIndexOf(me)<Me&&Ee.push(me));for(ue=1;ue<we;++ue)Ae[ue]===ue&&(me!==-1&&Ae[me]!==me?Ae[ue]=Ae[me]:xe!==-1&&Ae[xe]!==xe&&(Ae[ue]=Ae[xe]));for(ue=1;ue<we;++ue)if(ce[ue].type!==0){if(Me=ue,Me!=Ae[Me])do Me=Ae[Me],pe[ue]=pe[Me]+"/"+pe[ue];while(Me!==0&&Ae[Me]!==-1&&Me!=Ae[Me]);Ae[ue]=-1}for(pe[0]+="/",ue=1;ue<we;++ue)ce[ue].type!==2&&(pe[ue]+="/")}function g(ce,pe,de){for(var ue=ce.start,xe=ce.size,me=[],Se=ue;de&&xe>0&&Se>=0;)me.push(pe.slice(Se*S,Se*S+S)),xe-=S,Se=Yr(de,Se*4);return me.length===0?vt(0):Br(me).slice(0,ce.size)}function O(ce,pe,de,ue,xe){var me=x;if(ce===x){if(pe!==0)throw new Error("DIFAT chain shorter than expected")}else if(ce!==-1){var Se=de[ce],Me=(ue>>>2)-1;if(!Se)return;for(var we=0;we<Me&&(me=Yr(Se,we*4))!==x;++we)xe.push(me);O(Yr(Se,ue-4),pe-1,de,ue,xe)}}function M(ce,pe,de,ue,xe){var me=[],Se=[];xe||(xe=[]);var Me=ue-1,we=0,Ae=0;for(we=pe;we>=0;){xe[we]=!0,me[me.length]=we,Se.push(ce[we]);var Ee=de[Math.floor(we*4/ue)];if(Ae=we*4&Me,ue<4+Ae)throw new Error("FAT boundary crossed: "+we+" 4 "+ue);if(!ce[Ee])break;we=Yr(ce[Ee],Ae)}return{nodes:me,data:mn([Se])}}function _(ce,pe,de,ue){var xe=ce.length,me=[],Se=[],Me=[],we=[],Ae=ue-1,Ee=0,Oe=0,Ie=0,je=0;for(Ee=0;Ee<xe;++Ee)if(Me=[],Ie=Ee+pe,Ie>=xe&&(Ie-=xe),!Se[Ie]){we=[];var Fe=[];for(Oe=Ie;Oe>=0;){Fe[Oe]=!0,Se[Oe]=!0,Me[Me.length]=Oe,we.push(ce[Oe]);var Ne=de[Math.floor(Oe*4/ue)];if(je=Oe*4&Ae,ue<4+je)throw new Error("FAT boundary crossed: "+Oe+" 4 "+ue);if(!ce[Ne]||(Oe=Yr(ce[Ne],je),Fe[Oe]))break}me[Ie]={nodes:Me,data:mn([we])}}return me}function j(ce,pe,de,ue,xe,me,Se,Me){for(var we=0,Ae=ue.length?2:0,Ee=pe[ce].data,Oe=0,Ie=0,je;Oe<Ee.length;Oe+=128){var Fe=Ee.slice(Oe,Oe+128);Ct(Fe,64),Ie=Fe.read_shift(2),je=Ts(Fe,0,Ie-Ae),ue.push(je);var Ne={name:je,type:Fe.read_shift(1),color:Fe.read_shift(1),L:Fe.read_shift(4,"i"),R:Fe.read_shift(4,"i"),C:Fe.read_shift(4,"i"),clsid:Fe.read_shift(16),state:Fe.read_shift(4,"i"),start:0,size:0},$e=Fe.read_shift(2)+Fe.read_shift(2)+Fe.read_shift(2)+Fe.read_shift(2);$e!==0&&(Ne.ct=C(Fe,Fe.l-8));var lt=Fe.read_shift(2)+Fe.read_shift(2)+Fe.read_shift(2)+Fe.read_shift(2);lt!==0&&(Ne.mt=C(Fe,Fe.l-8)),Ne.start=Fe.read_shift(4,"i"),Ne.size=Fe.read_shift(4,"i"),Ne.size<0&&Ne.start<0&&(Ne.size=Ne.type=0,Ne.start=x,Ne.name=""),Ne.type===5?(we=Ne.start,xe>0&&we!==x&&(pe[we].name="!StreamData")):Ne.size>=4096?(Ne.storage="fat",pe[Ne.start]===void 0&&(pe[Ne.start]=M(de,Ne.start,pe.fat_addrs,pe.ssz)),pe[Ne.start].name=Ne.name,Ne.content=pe[Ne.start].data.slice(0,Ne.size)):(Ne.storage="minifat",Ne.size<0?Ne.size=0:we!==x&&Ne.start!==x&&pe[we]&&(Ne.content=g(Ne,pe[we].data,(pe[Me]||{}).data))),Ne.content&&Ct(Ne.content,0),me[je]=Ne,Se.push(Ne)}}function C(ce,pe){return new Date((rr(ce,pe+4)/1e7*Math.pow(2,32)+rr(ce,pe)/1e7-11644473600)*1e3)}function k(ce,pe){return w(),y(u.readFileSync(ce),pe)}function F(ce,pe){var de=pe&&pe.type;switch(de||Qe&&Buffer.isBuffer(ce)&&(de="buffer"),de||"base64"){case"file":return k(ce,pe);case"base64":return y(mr(ar(ce)),pe);case"binary":return y(mr(ce),pe)}return y(ce,pe)}function P(ce,pe){var de=pe||{},ue=de.root||"Root Entry";if(ce.FullPaths||(ce.FullPaths=[]),ce.FileIndex||(ce.FileIndex=[]),ce.FullPaths.length!==ce.FileIndex.length)throw new Error("inconsistent CFB structure");ce.FullPaths.length===0&&(ce.FullPaths[0]=ue+"/",ce.FileIndex[0]={name:ue,type:5}),de.CLSID&&(ce.FileIndex[0].clsid=de.CLSID),I(ce)}function I(ce){var pe="Sh33tJ5";if(!et.find(ce,"/"+pe)){var de=vt(4);de[0]=55,de[1]=de[3]=50,de[2]=54,ce.FileIndex.push({name:pe,type:2,content:de,size:4,L:69,R:69,C:69}),ce.FullPaths.push(ce.FullPaths[0]+pe),m(ce)}}function m(ce,pe){P(ce);for(var de=!1,ue=!1,xe=ce.FullPaths.length-1;xe>=0;--xe){var me=ce.FileIndex[xe];switch(me.type){case 0:ue?de=!0:(ce.FileIndex.pop(),ce.FullPaths.pop());break;case 1:case 2:case 5:ue=!0,isNaN(me.R*me.L*me.C)&&(de=!0),me.R>-1&&me.L>-1&&me.R==me.L&&(de=!0);break;default:de=!0;break}}if(!(!de&&!pe)){var Se=new Date(1987,1,19),Me=0,we=Object.create?Object.create(null):{},Ae=[];for(xe=0;xe<ce.FullPaths.length;++xe)we[ce.FullPaths[xe]]=!0,ce.FileIndex[xe].type!==0&&Ae.push([ce.FullPaths[xe],ce.FileIndex[xe]]);for(xe=0;xe<Ae.length;++xe){var Ee=a(Ae[xe][0]);ue=we[Ee],ue||(Ae.push([Ee,{name:i(Ee).replace("/",""),type:1,clsid:l,ct:Se,mt:Se,content:null}]),we[Ee]=!0)}for(Ae.sort(function(je,Fe){return t(je[0],Fe[0])}),ce.FullPaths=[],ce.FileIndex=[],xe=0;xe<Ae.length;++xe)ce.FullPaths[xe]=Ae[xe][0],ce.FileIndex[xe]=Ae[xe][1];for(xe=0;xe<Ae.length;++xe){var Oe=ce.FileIndex[xe],Ie=ce.FullPaths[xe];if(Oe.name=i(Ie).replace("/",""),Oe.L=Oe.R=Oe.C=-(Oe.color=1),Oe.size=Oe.content?Oe.content.length:0,Oe.start=0,Oe.clsid=Oe.clsid||l,xe===0)Oe.C=Ae.length>1?1:-1,Oe.size=0,Oe.type=5;else if(Ie.slice(-1)=="/"){for(Me=xe+1;Me<Ae.length&&a(ce.FullPaths[Me])!=Ie;++Me);for(Oe.C=Me>=Ae.length?-1:Me,Me=xe+1;Me<Ae.length&&a(ce.FullPaths[Me])!=a(Ie);++Me);Oe.R=Me>=Ae.length?-1:Me,Oe.type=1}else a(ce.FullPaths[xe+1]||"")==a(Ie)&&(Oe.R=xe+1),Oe.type=2}}}function B(ce,pe){var de=pe||{};if(de.fileType=="mad")return hi(ce,de);switch(m(ce),de.fileType){case"zip":return er(ce,de)}var ue=function(je){for(var Fe=0,Ne=0,$e=0;$e<je.FileIndex.length;++$e){var lt=je.FileIndex[$e];if(lt.content){var ct=lt.content.length;ct>0&&(ct<4096?Fe+=ct+63>>6:Ne+=ct+511>>9)}}for(var Ot=je.FullPaths.length+3>>2,Ai=Fe+7>>3,Ei=Fe+127>>7,Ci=Ai+Ne+Ot+Ei,Xr=Ci+127>>7,Ra=Xr<=109?0:Math.ceil((Xr-109)/127);Ci+Xr+Ra+127>>7>Xr;)Ra=++Xr<=109?0:Math.ceil((Xr-109)/127);var Ar=[1,Ra,Xr,Ei,Ot,Ne,Fe,0];return je.FileIndex[0].size=Fe<<6,Ar[7]=(je.FileIndex[0].start=Ar[0]+Ar[1]+Ar[2]+Ar[3]+Ar[4]+Ar[5])+(Ar[6]+7>>3),Ar}(ce),xe=vt(ue[7]<<9),me=0,Se=0;{for(me=0;me<8;++me)xe.write_shift(1,n[me]);for(me=0;me<8;++me)xe.write_shift(2,0);for(xe.write_shift(2,62),xe.write_shift(2,3),xe.write_shift(2,65534),xe.write_shift(2,9),xe.write_shift(2,6),me=0;me<3;++me)xe.write_shift(2,0);for(xe.write_shift(4,0),xe.write_shift(4,ue[2]),xe.write_shift(4,ue[0]+ue[1]+ue[2]+ue[3]-1),xe.write_shift(4,0),xe.write_shift(4,4096),xe.write_shift(4,ue[3]?ue[0]+ue[1]+ue[2]-1:x),xe.write_shift(4,ue[3]),xe.write_shift(-4,ue[1]?ue[0]-1:x),xe.write_shift(4,ue[1]),me=0;me<109;++me)xe.write_shift(-4,me<ue[2]?ue[1]+me:-1)}if(ue[1])for(Se=0;Se<ue[1];++Se){for(;me<236+Se*127;++me)xe.write_shift(-4,me<ue[2]?ue[1]+me:-1);xe.write_shift(-4,Se===ue[1]-1?x:Se+1)}var Me=function(je){for(Se+=je;me<Se-1;++me)xe.write_shift(-4,me+1);je&&(++me,xe.write_shift(-4,x))};for(Se=me=0,Se+=ue[1];me<Se;++me)xe.write_shift(-4,f.DIFSECT);for(Se+=ue[2];me<Se;++me)xe.write_shift(-4,f.FATSECT);Me(ue[3]),Me(ue[4]);for(var we=0,Ae=0,Ee=ce.FileIndex[0];we<ce.FileIndex.length;++we)Ee=ce.FileIndex[we],Ee.content&&(Ae=Ee.content.length,!(Ae<4096)&&(Ee.start=Se,Me(Ae+511>>9)));for(Me(ue[6]+7>>3);xe.l&511;)xe.write_shift(-4,f.ENDOFCHAIN);for(Se=me=0,we=0;we<ce.FileIndex.length;++we)Ee=ce.FileIndex[we],Ee.content&&(Ae=Ee.content.length,!(!Ae||Ae>=4096)&&(Ee.start=Se,Me(Ae+63>>6)));for(;xe.l&511;)xe.write_shift(-4,f.ENDOFCHAIN);for(me=0;me<ue[4]<<2;++me){var Oe=ce.FullPaths[me];if(!Oe||Oe.length===0){for(we=0;we<17;++we)xe.write_shift(4,0);for(we=0;we<3;++we)xe.write_shift(4,-1);for(we=0;we<12;++we)xe.write_shift(4,0);continue}Ee=ce.FileIndex[me],me===0&&(Ee.start=Ee.size?Ee.start-1:x);var Ie=me===0&&de.root||Ee.name;if(Ae=2*(Ie.length+1),xe.write_shift(64,Ie,"utf16le"),xe.write_shift(2,Ae),xe.write_shift(1,Ee.type),xe.write_shift(1,Ee.color),xe.write_shift(-4,Ee.L),xe.write_shift(-4,Ee.R),xe.write_shift(-4,Ee.C),Ee.clsid)xe.write_shift(16,Ee.clsid,"hex");else for(we=0;we<4;++we)xe.write_shift(4,0);xe.write_shift(4,Ee.state||0),xe.write_shift(4,0),xe.write_shift(4,0),xe.write_shift(4,0),xe.write_shift(4,0),xe.write_shift(4,Ee.start),xe.write_shift(4,Ee.size),xe.write_shift(4,0)}for(me=1;me<ce.FileIndex.length;++me)if(Ee=ce.FileIndex[me],Ee.size>=4096)if(xe.l=Ee.start+1<<9,Qe&&Buffer.isBuffer(Ee.content))Ee.content.copy(xe,xe.l,0,Ee.size),xe.l+=Ee.size+511&-512;else{for(we=0;we<Ee.size;++we)xe.write_shift(1,Ee.content[we]);for(;we&511;++we)xe.write_shift(1,0)}for(me=1;me<ce.FileIndex.length;++me)if(Ee=ce.FileIndex[me],Ee.size>0&&Ee.size<4096)if(Qe&&Buffer.isBuffer(Ee.content))Ee.content.copy(xe,xe.l,0,Ee.size),xe.l+=Ee.size+63&-64;else{for(we=0;we<Ee.size;++we)xe.write_shift(1,Ee.content[we]);for(;we&63;++we)xe.write_shift(1,0)}if(Qe)xe.l=xe.length;else for(;xe.l<xe.length;)xe.write_shift(1,0);return xe}function T(ce,pe){var de=ce.FullPaths.map(function(we){return we.toUpperCase()}),ue=de.map(function(we){var Ae=we.split("/");return Ae[Ae.length-(we.slice(-1)=="/"?2:1)]}),xe=!1;pe.charCodeAt(0)===47?(xe=!0,pe=de[0].slice(0,-1)+pe):xe=pe.indexOf("/")!==-1;var me=pe.toUpperCase(),Se=xe===!0?de.indexOf(me):ue.indexOf(me);if(Se!==-1)return ce.FileIndex[Se];var Me=!me.match(Oi);for(me=me.replace(Yt,""),Me&&(me=me.replace(Oi,"!")),Se=0;Se<de.length;++Se)if((Me?de[Se].replace(Oi,"!"):de[Se]).replace(Yt,"")==me||(Me?ue[Se].replace(Oi,"!"):ue[Se]).replace(Yt,"")==me)return ce.FileIndex[Se];return null}var S=64,x=-2,h="d0cf11e0a1b11ae1",n=[208,207,17,224,161,177,26,225],l="00000000000000000000000000000000",f={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:x,FREESECT:-1,HEADER_SIGNATURE:h,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:l,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function b(ce,pe,de){w();var ue=B(ce,de);u.writeFileSync(pe,ue)}function v(ce){for(var pe=new Array(ce.length),de=0;de<ce.length;++de)pe[de]=String.fromCharCode(ce[de]);return pe.join("")}function G(ce,pe){var de=B(ce,pe);switch(pe&&pe.type||"buffer"){case"file":return w(),u.writeFileSync(pe.filename,de),de;case"binary":return typeof de=="string"?de:v(de);case"base64":return Js(typeof de=="string"?de:v(de));case"buffer":if(Qe)return Buffer.isBuffer(de)?de:ri(de);case"array":return typeof de=="string"?mr(de):de}return de}var U;function D(ce){try{var pe=ce.InflateRaw,de=new pe;if(de._processChunk(new Uint8Array([3,0]),de._finishFlushFlag),de.bytesRead)U=ce;else throw new Error("zlib does not expose bytesRead")}catch(ue){console.error("cannot use native zlib: "+(ue.message||ue))}}function H(ce,pe){if(!U)return Ue(ce,pe);var de=U.InflateRaw,ue=new de,xe=ue._processChunk(ce.slice(ce.l),ue._finishFlushFlag);return ce.l+=ue.bytesRead,xe}function z(ce){return U?U.deflateRawSync(ce):ge(ce)}var W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],R=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function q(ce){var pe=(ce<<1|ce<<11)&139536|(ce<<5|ce<<15)&558144;return(pe>>16|pe>>8|pe)&255}for(var J=typeof Uint8Array<"u",Y=J?new Uint8Array(256):[],ee=0;ee<256;++ee)Y[ee]=q(ee);function E(ce,pe){var de=Y[ce&255];return pe<=8?de>>>8-pe:(de=de<<8|Y[ce>>8&255],pe<=16?de>>>16-pe:(de=de<<8|Y[ce>>16&255],de>>>24-pe))}function V(ce,pe){var de=pe&7,ue=pe>>>3;return(ce[ue]|(de<=6?0:ce[ue+1]<<8))>>>de&3}function X(ce,pe){var de=pe&7,ue=pe>>>3;return(ce[ue]|(de<=5?0:ce[ue+1]<<8))>>>de&7}function Q(ce,pe){var de=pe&7,ue=pe>>>3;return(ce[ue]|(de<=4?0:ce[ue+1]<<8))>>>de&15}function se(ce,pe){var de=pe&7,ue=pe>>>3;return(ce[ue]|(de<=3?0:ce[ue+1]<<8))>>>de&31}function K(ce,pe){var de=pe&7,ue=pe>>>3;return(ce[ue]|(de<=1?0:ce[ue+1]<<8))>>>de&127}function ne(ce,pe,de){var ue=pe&7,xe=pe>>>3,me=(1<<de)-1,Se=ce[xe]>>>ue;return de<8-ue||(Se|=ce[xe+1]<<8-ue,de<16-ue)||(Se|=ce[xe+2]<<16-ue,de<24-ue)||(Se|=ce[xe+3]<<24-ue),Se&me}function oe(ce,pe,de){var ue=pe&7,xe=pe>>>3;return ue<=5?ce[xe]|=(de&7)<<ue:(ce[xe]|=de<<ue&255,ce[xe+1]=(de&7)>>8-ue),pe+3}function le(ce,pe,de){var ue=pe&7,xe=pe>>>3;return de=(de&1)<<ue,ce[xe]|=de,pe+1}function ye(ce,pe,de){var ue=pe&7,xe=pe>>>3;return de<<=ue,ce[xe]|=de&255,de>>>=8,ce[xe+1]=de,pe+8}function te(ce,pe,de){var ue=pe&7,xe=pe>>>3;return de<<=ue,ce[xe]|=de&255,de>>>=8,ce[xe+1]=de&255,ce[xe+2]=de>>>8,pe+16}function re(ce,pe){var de=ce.length,ue=2*de>pe?2*de:pe+5,xe=0;if(de>=pe)return ce;if(Qe){var me=Qs(ue);if(ce.copy)ce.copy(me);else for(;xe<ce.length;++xe)me[xe]=ce[xe];return me}else if(J){var Se=new Uint8Array(ue);if(Se.set)Se.set(ce);else for(;xe<de;++xe)Se[xe]=ce[xe];return Se}return ce.length=ue,ce}function Z(ce){for(var pe=new Array(ce),de=0;de<ce;++de)pe[de]=0;return pe}function ie(ce,pe,de){var ue=1,xe=0,me=0,Se=0,Me=0,we=ce.length,Ae=J?new Uint16Array(32):Z(32);for(me=0;me<32;++me)Ae[me]=0;for(me=we;me<de;++me)ce[me]=0;we=ce.length;var Ee=J?new Uint16Array(we):Z(we);for(me=0;me<we;++me)Ae[xe=ce[me]]++,ue<xe&&(ue=xe),Ee[me]=0;for(Ae[0]=0,me=1;me<=ue;++me)Ae[me+16]=Me=Me+Ae[me-1]<<1;for(me=0;me<we;++me)Me=ce[me],Me!=0&&(Ee[me]=Ae[Me+16]++);var Oe=0;for(me=0;me<we;++me)if(Oe=ce[me],Oe!=0)for(Me=E(Ee[me],ue)>>ue-Oe,Se=(1<<ue+4-Oe)-1;Se>=0;--Se)pe[Me|Se<<Oe]=Oe&15|me<<4;return ue}var ae=J?new Uint16Array(512):Z(512),he=J?new Uint16Array(32):Z(32);if(!J){for(var fe=0;fe<512;++fe)ae[fe]=0;for(fe=0;fe<32;++fe)he[fe]=0}(function(){for(var ce=[],pe=0;pe<32;pe++)ce.push(5);ie(ce,he,32);var de=[];for(pe=0;pe<=143;pe++)de.push(8);for(;pe<=255;pe++)de.push(9);for(;pe<=279;pe++)de.push(7);for(;pe<=287;pe++)de.push(8);ie(de,ae,288)})();var ve=function(){for(var pe=J?new Uint8Array(32768):[],de=0,ue=0;de<R.length-1;++de)for(;ue<R[de+1];++ue)pe[ue]=de;for(;ue<32768;++ue)pe[ue]=29;var xe=J?new Uint8Array(259):[];for(de=0,ue=0;de<d.length-1;++de)for(;ue<d[de+1];++ue)xe[ue]=de;function me(Me,we){for(var Ae=0;Ae<Me.length;){var Ee=Math.min(65535,Me.length-Ae),Oe=Ae+Ee==Me.length;for(we.write_shift(1,+Oe),we.write_shift(2,Ee),we.write_shift(2,~Ee&65535);Ee-- >0;)we[we.l++]=Me[Ae++]}return we.l}function Se(Me,we){for(var Ae=0,Ee=0,Oe=J?new Uint16Array(32768):[];Ee<Me.length;){var Ie=Math.min(65535,Me.length-Ee);if(Ie<10){for(Ae=oe(we,Ae,+(Ee+Ie==Me.length)),Ae&7&&(Ae+=8-(Ae&7)),we.l=Ae/8|0,we.write_shift(2,Ie),we.write_shift(2,~Ie&65535);Ie-- >0;)we[we.l++]=Me[Ee++];Ae=we.l*8;continue}Ae=oe(we,Ae,+(Ee+Ie==Me.length)+2);for(var je=0;Ie-- >0;){var Fe=Me[Ee];je=(je<<5^Fe)&32767;var Ne=-1,$e=0;if((Ne=Oe[je])&&(Ne|=Ee&-32768,Ne>Ee&&(Ne-=32768),Ne<Ee))for(;Me[Ne+$e]==Me[Ee+$e]&&$e<250;)++$e;if($e>2){Fe=xe[$e],Fe<=22?Ae=ye(we,Ae,Y[Fe+1]>>1)-1:(ye(we,Ae,3),Ae+=5,ye(we,Ae,Y[Fe-23]>>5),Ae+=3);var lt=Fe<8?0:Fe-4>>2;lt>0&&(te(we,Ae,$e-d[Fe]),Ae+=lt),Fe=pe[Ee-Ne],Ae=ye(we,Ae,Y[Fe]>>3),Ae-=3;var ct=Fe<4?0:Fe-2>>1;ct>0&&(te(we,Ae,Ee-Ne-R[Fe]),Ae+=ct);for(var Ot=0;Ot<$e;++Ot)Oe[je]=Ee&32767,je=(je<<5^Me[Ee])&32767,++Ee;Ie-=$e-1}else Fe<=143?Fe=Fe+48:Ae=le(we,Ae,1),Ae=ye(we,Ae,Y[Fe]),Oe[je]=Ee&32767,++Ee}Ae=ye(we,Ae,0)-1}return we.l=(Ae+7)/8|0,we.l}return function(we,Ae){return we.length<8?me(we,Ae):Se(we,Ae)}}();function ge(ce){var pe=vt(50+Math.floor(ce.length*1.1)),de=ve(ce,pe);return pe.slice(0,de)}var _e=J?new Uint16Array(32768):Z(32768),be=J?new Uint16Array(32768):Z(32768),Ce=J?new Uint16Array(128):Z(128),De=1,Be=1;function Le(ce,pe){var de=se(ce,pe)+257;pe+=5;var ue=se(ce,pe)+1;pe+=5;var xe=Q(ce,pe)+4;pe+=4;for(var me=0,Se=J?new Uint8Array(19):Z(19),Me=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],we=1,Ae=J?new Uint8Array(8):Z(8),Ee=J?new Uint8Array(8):Z(8),Oe=Se.length,Ie=0;Ie<xe;++Ie)Se[W[Ie]]=me=X(ce,pe),we<me&&(we=me),Ae[me]++,pe+=3;var je=0;for(Ae[0]=0,Ie=1;Ie<=we;++Ie)Ee[Ie]=je=je+Ae[Ie-1]<<1;for(Ie=0;Ie<Oe;++Ie)(je=Se[Ie])!=0&&(Me[Ie]=Ee[je]++);var Fe=0;for(Ie=0;Ie<Oe;++Ie)if(Fe=Se[Ie],Fe!=0){je=Y[Me[Ie]]>>8-Fe;for(var Ne=(1<<7-Fe)-1;Ne>=0;--Ne)Ce[je|Ne<<Fe]=Fe&7|Ie<<3}var $e=[];for(we=1;$e.length<de+ue;)switch(je=Ce[K(ce,pe)],pe+=je&7,je>>>=3){case 16:for(me=3+V(ce,pe),pe+=2,je=$e[$e.length-1];me-- >0;)$e.push(je);break;case 17:for(me=3+X(ce,pe),pe+=3;me-- >0;)$e.push(0);break;case 18:for(me=11+K(ce,pe),pe+=7;me-- >0;)$e.push(0);break;default:$e.push(je),we<je&&(we=je);break}var lt=$e.slice(0,de),ct=$e.slice(de);for(Ie=de;Ie<286;++Ie)lt[Ie]=0;for(Ie=ue;Ie<30;++Ie)ct[Ie]=0;return De=ie(lt,_e,286),Be=ie(ct,be,30),pe}function Pe(ce,pe){if(ce[0]==3&&!(ce[1]&3))return[Hr(pe),2];for(var de=0,ue=0,xe=Qs(pe||1<<18),me=0,Se=xe.length>>>0,Me=0,we=0;!(ue&1);){if(ue=X(ce,de),de+=3,ue>>>1)ue>>1==1?(Me=9,we=5):(de=Le(ce,de),Me=De,we=Be);else{de&7&&(de+=8-(de&7));var Ae=ce[de>>>3]|ce[(de>>>3)+1]<<8;if(de+=32,Ae>0)for(!pe&&Se<me+Ae&&(xe=re(xe,me+Ae),Se=xe.length);Ae-- >0;)xe[me++]=ce[de>>>3],de+=8;continue}for(;;){!pe&&Se<me+32767&&(xe=re(xe,me+32767),Se=xe.length);var Ee=ne(ce,de,Me),Oe=ue>>>1==1?ae[Ee]:_e[Ee];if(de+=Oe&15,Oe>>>=4,!(Oe>>>8&255))xe[me++]=Oe;else{if(Oe==256)break;Oe-=257;var Ie=Oe<8?0:Oe-4>>2;Ie>5&&(Ie=0);var je=me+d[Oe];Ie>0&&(je+=ne(ce,de,Ie),de+=Ie),Ee=ne(ce,de,we),Oe=ue>>>1==1?he[Ee]:be[Ee],de+=Oe&15,Oe>>>=4;var Fe=Oe<4?0:Oe-2>>1,Ne=R[Oe];for(Fe>0&&(Ne+=ne(ce,de,Fe),de+=Fe),!pe&&Se<je&&(xe=re(xe,je+100),Se=xe.length);me<je;)xe[me]=xe[me-Ne],++me}}}return pe?[xe,de+7>>>3]:[xe.slice(0,me),de+7>>>3]}function Ue(ce,pe){var de=ce.slice(ce.l||0),ue=Pe(de,pe);return ce.l+=ue[1],ue[0]}function Je(ce,pe){if(ce)typeof console<"u"&&console.error(pe);else throw new Error(pe)}function at(ce,pe){var de=ce;Ct(de,0);var ue=[],xe=[],me={FileIndex:ue,FullPaths:xe};P(me,{root:pe.root});for(var Se=de.length-4;(de[Se]!=80||de[Se+1]!=75||de[Se+2]!=5||de[Se+3]!=6)&&Se>=0;)--Se;de.l=Se+4,de.l+=4;var Me=de.read_shift(2);de.l+=6;var we=de.read_shift(4);for(de.l=we,Se=0;Se<Me;++Se){de.l+=20;var Ae=de.read_shift(4),Ee=de.read_shift(4),Oe=de.read_shift(2),Ie=de.read_shift(2),je=de.read_shift(2);de.l+=8;var Fe=de.read_shift(4),Ne=c(de.slice(de.l+Oe,de.l+Oe+Ie));de.l+=Oe+Ie+je;var $e=de.l;de.l=Fe+4,Ge(de,Ae,Ee,me,Ne),de.l=$e}return me}function Ge(ce,pe,de,ue,xe){ce.l+=2;var me=ce.read_shift(2),Se=ce.read_shift(2),Me=o(ce);if(me&8257)throw new Error("Unsupported ZIP encryption");for(var we=ce.read_shift(4),Ae=ce.read_shift(4),Ee=ce.read_shift(4),Oe=ce.read_shift(2),Ie=ce.read_shift(2),je="",Fe=0;Fe<Oe;++Fe)je+=String.fromCharCode(ce[ce.l++]);if(Ie){var Ne=c(ce.slice(ce.l,ce.l+Ie));(Ne[21589]||{}).mt&&(Me=Ne[21589].mt),((xe||{})[21589]||{}).mt&&(Me=xe[21589].mt)}ce.l+=Ie;var $e=ce.slice(ce.l,ce.l+Ae);switch(Se){case 8:$e=H(ce,Ee);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Se)}var lt=!1;me&8&&(we=ce.read_shift(4),we==134695760&&(we=ce.read_shift(4),lt=!0),Ae=ce.read_shift(4),Ee=ce.read_shift(4)),Ae!=pe&&Je(lt,"Bad compressed size: "+pe+" != "+Ae),Ee!=de&&Je(lt,"Bad uncompressed size: "+de+" != "+Ee),Fr(ue,je,$e,{unsafe:!0,mt:Me})}function er(ce,pe){var de=pe||{},ue=[],xe=[],me=vt(1),Se=de.compression?8:0,Me=0,we=0,Ae=0,Ee=0,Oe=0,Ie=ce.FullPaths[0],je=Ie,Fe=ce.FileIndex[0],Ne=[],$e=0;for(we=1;we<ce.FullPaths.length;++we)if(je=ce.FullPaths[we].slice(Ie.length),Fe=ce.FileIndex[we],!(!Fe.size||!Fe.content||je=="Sh33tJ5")){var lt=Ee,ct=vt(je.length);for(Ae=0;Ae<je.length;++Ae)ct.write_shift(1,je.charCodeAt(Ae)&127);ct=ct.slice(0,ct.l),Ne[Oe]=Cf.buf(Fe.content,0);var Ot=Fe.content;Se==8&&(Ot=z(Ot)),me=vt(30),me.write_shift(4,67324752),me.write_shift(2,20),me.write_shift(2,Me),me.write_shift(2,Se),Fe.mt?s(me,Fe.mt):me.write_shift(4,0),me.write_shift(-4,Ne[Oe]),me.write_shift(4,Ot.length),me.write_shift(4,Fe.content.length),me.write_shift(2,ct.length),me.write_shift(2,0),Ee+=me.length,ue.push(me),Ee+=ct.length,ue.push(ct),Ee+=Ot.length,ue.push(Ot),me=vt(46),me.write_shift(4,33639248),me.write_shift(2,0),me.write_shift(2,20),me.write_shift(2,Me),me.write_shift(2,Se),me.write_shift(4,0),me.write_shift(-4,Ne[Oe]),me.write_shift(4,Ot.length),me.write_shift(4,Fe.content.length),me.write_shift(2,ct.length),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(4,0),me.write_shift(4,lt),$e+=me.l,xe.push(me),$e+=ct.length,xe.push(ct),++Oe}return me=vt(22),me.write_shift(4,101010256),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(2,Oe),me.write_shift(2,Oe),me.write_shift(4,$e),me.write_shift(4,Ee),me.write_shift(2,0),Br([Br(ue),Br(xe),me])}var tr={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Kt(ce,pe){if(ce.ctype)return ce.ctype;var de=ce.name||"",ue=de.match(/\.([^\.]+)$/);return ue&&tr[ue[1]]||pe&&(ue=(de=pe).match(/[\.\\]([^\.\\])+$/),ue&&tr[ue[1]])?tr[ue[1]]:"application/octet-stream"}function _t(ce){for(var pe=Js(ce),de=[],ue=0;ue<pe.length;ue+=76)de.push(pe.slice(ue,ue+76));return de.join(`\r
`)+`\r
`}function Ut(ce){var pe=ce.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Ae){var Ee=Ae.charCodeAt(0).toString(16).toUpperCase();return"="+(Ee.length==1?"0"+Ee:Ee)});pe=pe.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),pe.charAt(0)==`
`&&(pe="=0D"+pe.slice(1)),pe=pe.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var de=[],ue=pe.split(`\r
`),xe=0;xe<ue.length;++xe){var me=ue[xe];if(me.length==0){de.push("");continue}for(var Se=0;Se<me.length;){var Me=76,we=me.slice(Se,Se+Me);we.charAt(Me-1)=="="?Me--:we.charAt(Me-2)=="="?Me-=2:we.charAt(Me-3)=="="&&(Me-=3),we=me.slice(Se,Se+Me),Se+=Me,Se<me.length&&(we+="="),de.push(we)}}return de.join(`\r
`)}function Pr(ce){for(var pe=[],de=0;de<ce.length;++de){for(var ue=ce[de];de<=ce.length&&ue.charAt(ue.length-1)=="=";)ue=ue.slice(0,ue.length-1)+ce[++de];pe.push(ue)}for(var xe=0;xe<pe.length;++xe)pe[xe]=pe[xe].replace(/[=][0-9A-Fa-f]{2}/g,function(me){return String.fromCharCode(parseInt(me.slice(1),16))});return mr(pe.join(`\r
`))}function li(ce,pe,de){for(var ue="",xe="",me="",Se,Me=0;Me<10;++Me){var we=pe[Me];if(!we||we.match(/^\s*$/))break;var Ae=we.match(/^(.*?):\s*([^\s].*)$/);if(Ae)switch(Ae[1].toLowerCase()){case"content-location":ue=Ae[2].trim();break;case"content-type":me=Ae[2].trim();break;case"content-transfer-encoding":xe=Ae[2].trim();break}}switch(++Me,xe.toLowerCase()){case"base64":Se=mr(ar(pe.slice(Me).join("")));break;case"quoted-printable":Se=Pr(pe.slice(Me));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+xe)}var Ee=Fr(ce,ue.slice(de.length),Se,{unsafe:!0});me&&(Ee.ctype=me)}function ci(ce,pe){if(v(ce.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var de=pe&&pe.root||"",ue=(Qe&&Buffer.isBuffer(ce)?ce.toString("binary"):v(ce)).split(`\r
`),xe=0,me="";for(xe=0;xe<ue.length;++xe)if(me=ue[xe],!!/^Content-Location:/i.test(me)&&(me=me.slice(me.indexOf("file")),de||(de=me.slice(0,me.lastIndexOf("/")+1)),me.slice(0,de.length)!=de))for(;de.length>0&&(de=de.slice(0,de.length-1),de=de.slice(0,de.lastIndexOf("/")+1),me.slice(0,de.length)!=de););var Se=(ue[1]||"").match(/boundary="(.*?)"/);if(!Se)throw new Error("MAD cannot find boundary");var Me="--"+(Se[1]||""),we=[],Ae=[],Ee={FileIndex:we,FullPaths:Ae};P(Ee);var Oe,Ie=0;for(xe=0;xe<ue.length;++xe){var je=ue[xe];je!==Me&&je!==Me+"--"||(Ie++&&li(Ee,ue.slice(Oe,xe),de),Oe=xe)}return Ee}function hi(ce,pe){var de=pe||{},ue=de.boundary||"SheetJS";ue="------="+ue;for(var xe=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+ue.slice(2)+'"',"","",""],me=ce.FullPaths[0],Se=me,Me=ce.FileIndex[0],we=1;we<ce.FullPaths.length;++we)if(Se=ce.FullPaths[we].slice(me.length),Me=ce.FileIndex[we],!(!Me.size||!Me.content||Se=="Sh33tJ5")){Se=Se.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function($e){return"_x"+$e.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function($e){return"_u"+$e.charCodeAt(0).toString(16)+"_"});for(var Ae=Me.content,Ee=Qe&&Buffer.isBuffer(Ae)?Ae.toString("binary"):v(Ae),Oe=0,Ie=Math.min(1024,Ee.length),je=0,Fe=0;Fe<=Ie;++Fe)(je=Ee.charCodeAt(Fe))>=32&&je<128&&++Oe;var Ne=Oe>=Ie*4/5;xe.push(ue),xe.push("Content-Location: "+(de.root||"file:///C:/SheetJS/")+Se),xe.push("Content-Transfer-Encoding: "+(Ne?"quoted-printable":"base64")),xe.push("Content-Type: "+Kt(Me,Se)),xe.push(""),xe.push(Ne?Ut(Ee):_t(Ee))}return xe.push(ue+`--\r
`),xe.join(`\r
`)}function Ia(ce){var pe={};return P(pe,ce),pe}function Fr(ce,pe,de,ue){var xe=ue&&ue.unsafe;xe||P(ce);var me=!xe&&et.find(ce,pe);if(!me){var Se=ce.FullPaths[0];pe.slice(0,Se.length)==Se?Se=pe:(Se.slice(-1)!="/"&&(Se+="/"),Se=(Se+pe).replace("//","/")),me={name:i(pe),type:2},ce.FileIndex.push(me),ce.FullPaths.push(Se),xe||et.utils.cfb_gc(ce)}return me.content=de,me.size=de?de.length:0,ue&&(ue.CLSID&&(me.clsid=ue.CLSID),ue.mt&&(me.mt=ue.mt),ue.ct&&(me.ct=ue.ct)),me}function Kl(ce,pe){P(ce);var de=et.find(ce,pe);if(de){for(var ue=0;ue<ce.FileIndex.length;++ue)if(ce.FileIndex[ue]==de)return ce.FileIndex.splice(ue,1),ce.FullPaths.splice(ue,1),!0}return!1}function ql(ce,pe,de){P(ce);var ue=et.find(ce,pe);if(ue){for(var xe=0;xe<ce.FileIndex.length;++xe)if(ce.FileIndex[xe]==ue)return ce.FileIndex[xe].name=i(de),ce.FullPaths[xe]=de,!0}return!1}function Zl(ce){m(ce,!0)}return r.find=T,r.read=F,r.parse=y,r.write=G,r.writeFile=b,r.utils={cfb_new:Ia,cfb_add:Fr,cfb_del:Kl,cfb_mov:ql,cfb_gc:Zl,ReadShift:Li,CheckField:Zo,prep_blob:Ct,bconcat:Br,use_zlib:D,_deflateRaw:ge,_inflateRaw:Ue,consts:f},r}();function Mf(e){if(typeof Deno<"u")return Deno.readFileSync(e);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var r=File(e);r.open("r"),r.encoding="binary";var t=r.read();return r.close(),t}catch(a){if(!a.message||!a.message.match(/onstruct/))throw a}throw new Error("Cannot access file "+e)}function _r(e){for(var r=Object.keys(e),t=[],a=0;a<r.length;++a)Object.prototype.hasOwnProperty.call(e,r[a])&&t.push(r[a]);return t}function xs(e){for(var r=[],t=_r(e),a=0;a!==t.length;++a)r[e[t[a]]]=t[a];return r}var va=new Date(1899,11,30,0,0,0);function $t(e,r){var t=e.getTime();r&&(t-=1462*24*60*60*1e3);var a=va.getTime()+(e.getTimezoneOffset()-va.getTimezoneOffset())*6e4;return(t-a)/(24*60*60*1e3)}var Mo=new Date,Df=va.getTime()+(Mo.getTimezoneOffset()-va.getTimezoneOffset())*6e4,ln=Mo.getTimezoneOffset();function Oa(e){var r=new Date;return r.setTime(e*24*60*60*1e3+Df),r.getTimezoneOffset()!==ln&&r.setTime(r.getTime()+(r.getTimezoneOffset()-ln)*6e4),r}function Of(e){var r=0,t=0,a=!1,i=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!i)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var s=1;s!=i.length;++s)if(i[s]){switch(t=1,s>3&&(a=!0),i[s].slice(i[s].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[s].slice(i[s].length-1));case"D":t*=24;case"H":t*=60;case"M":if(a)t*=60;else throw new Error("Unsupported ISO Duration Field: M")}r+=t*parseInt(i[s],10)}return r}var cn=new Date("2017-02-19T19:06:09.000Z"),Do=isNaN(cn.getFullYear())?new Date("2/19/17"):cn,Pf=Do.getFullYear()==2017;function St(e,r){var t=new Date(e);if(Pf)return r>0?t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3):r<0&&t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3),t;if(e instanceof Date)return e;if(Do.getFullYear()==1917&&!isNaN(t.getFullYear())){var a=t.getFullYear();return e.indexOf(""+a)>-1||t.setFullYear(t.getFullYear()+100),t}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],s=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(s=new Date(s.getTime()-s.getTimezoneOffset()*60*1e3)),s}function Jr(e,r){if(Qe&&Buffer.isBuffer(e)){if(r){if(e[0]==255&&e[1]==254)return Fi(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Fi(xo(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(r){if(e[0]==255&&e[1]==254)return Fi(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Fi(new TextDecoder("utf-16be").decode(e.slice(2)))}var t={"€":"","‚":"",ƒ:"","„":"","…":"","†":"","‡":"","ˆ":"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(s){return t[s]||s})}catch{}for(var a=[],i=0;i!=e.length;++i)a.push(String.fromCharCode(e[i]));return a.join("")}function Mt(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=Mt(e[t]));return r}function ht(e,r){for(var t="";t.length<r;)t+=e;return t}function Tr(e){var r=Number(e);if(!isNaN(r))return isFinite(r)?r:NaN;if(!/\d/.test(e))return r;var t=1,a=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return t*=100,""});return!isNaN(r=Number(a))||(a=a.replace(/[(](.*)[)]/,function(i,s){return t=-t,s}),!isNaN(r=Number(a)))?r/t:r}var Ff=["january","february","march","april","may","june","july","august","september","october","november","december"];function vi(e){var r=new Date(e),t=new Date(NaN),a=r.getYear(),i=r.getMonth(),s=r.getDate();if(isNaN(s))return t;var o=e.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&Ff.indexOf(o)==-1)return t}else if(o.match(/[a-z]/))return t;return a<0||a>8099?t:(i>0||s>1)&&a!=101?r:e.match(/[^-0-9:,\/\\]/)?t:r}var Lf=function(){var e="abacaba".split(/(:?b)/i).length==5;return function(t,a,i){if(e||typeof a=="string")return t.split(a);for(var s=t.split(a),o=[s[0]],c=1;c<s.length;++c)o.push(i),o.push(s[c]);return o}}();function Oo(e){return e?e.content&&e.type?Jr(e.content,!0):e.data?Di(e.data):e.asNodeBuffer&&Qe?Di(e.asNodeBuffer().toString("binary")):e.asBinary?Di(e.asBinary()):e._data&&e._data.getContent?Di(Jr(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function Po(e){if(!e)return null;if(e.data)return qs(e.data);if(e.asNodeBuffer&&Qe)return e.asNodeBuffer();if(e._data&&e._data.getContent){var r=e._data.getContent();return typeof r=="string"?qs(r):Array.prototype.slice.call(r)}return e.content&&e.type?e.content:null}function If(e){return e&&e.name.slice(-4)===".bin"?Po(e):Oo(e)}function hr(e,r){for(var t=e.FullPaths||_r(e.files),a=r.toLowerCase().replace(/[\/]/g,"\\"),i=a.replace(/\\/g,"/"),s=0;s<t.length;++s){var o=t[s].replace(/^Root Entry[\/]/,"").toLowerCase();if(a==o||i==o)return e.files?e.files[t[s]]:e.FileIndex[s]}return null}function ms(e,r){var t=hr(e,r);if(t==null)throw new Error("Cannot find file "+r+" in zip");return t}function xt(e,r,t){if(!t)return If(ms(e,r));if(!r)return null;try{return xt(e,r)}catch{return null}}function ir(e,r,t){if(!t)return Oo(ms(e,r));if(!r)return null;try{return ir(e,r)}catch{return null}}function Fo(e,r,t){if(!t)return Po(ms(e,r));if(!r)return null;try{return Fo(e,r)}catch{return null}}function hn(e){for(var r=e.FullPaths||_r(e.files),t=[],a=0;a<r.length;++a)r[a].slice(-1)!="/"&&t.push(r[a].replace(/^Root Entry[\/]/,""));return t.sort()}function Rf(e,r,t){if(e.FullPaths){if(typeof t=="string"){var a;return Qe?a=ri(t):a=tf(t),et.utils.cfb_add(e,r,a)}et.utils.cfb_add(e,r,t)}else e.file(r,t)}function Lo(e,r){switch(r.type){case"base64":return et.read(e,{type:"base64"});case"binary":return et.read(e,{type:"binary"});case"buffer":case"array":return et.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+r.type)}function Pi(e,r){if(e.charAt(0)=="/")return e.slice(1);var t=r.split("/");r.slice(-1)!="/"&&t.pop();for(var a=e.split("/");a.length!==0;){var i=a.shift();i===".."?t.pop():i!=="."&&t.push(i)}return t.join("/")}var Io=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
`,Bf=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,fn=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,Nf=/<[^>]*>/g,jt=Io.match(fn)?fn:Nf,jf=/<\w*:/,Uf=/<(\/?)\w+:/;function Xe(e,r,t){for(var a={},i=0,s=0;i!==e.length&&!((s=e.charCodeAt(i))===32||s===10||s===13);++i);if(r||(a[0]=e.slice(0,i)),i===e.length)return a;var o=e.match(Bf),c=0,u="",w=0,y="",L="",N=1;if(o)for(w=0;w!=o.length;++w){for(L=o[w],s=0;s!=L.length&&L.charCodeAt(s)!==61;++s);for(y=L.slice(0,s).trim();L.charCodeAt(s+1)==32;)++s;for(N=(i=L.charCodeAt(s+1))==34||i==39?1:0,u=L.slice(s+1+N,L.length-N),c=0;c!=y.length&&y.charCodeAt(c)!==58;++c);if(c===y.length)y.indexOf("_")>0&&(y=y.slice(0,y.indexOf("_"))),a[y]=u,t||(a[y.toLowerCase()]=u);else{var A=(c===5&&y.slice(0,5)==="xmlns"?"xmlns":"")+y.slice(c+1);if(a[A]&&y.slice(c-3,c)=="ext")continue;a[A]=u,t||(a[A.toLowerCase()]=u)}}return a}function wr(e){return e.replace(Uf,"<$1")}var Ro={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},Hf=xs(Ro),rt=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,r=/_x([\da-fA-F]{4})_/ig;return function t(a){var i=a+"",s=i.indexOf("<![CDATA[");if(s==-1)return i.replace(e,function(c,u){return Ro[c]||String.fromCharCode(parseInt(u,c.indexOf("x")>-1?16:10))||c}).replace(r,function(c,u){return String.fromCharCode(parseInt(u,16))});var o=i.indexOf("]]>");return t(i.slice(0,s))+i.slice(s+9,o)+t(i.slice(o+3))}}(),Wf=/[&<>'"]/g,zf=/[\u0000-\u001f]/g;function vs(e){var r=e+"";return r.replace(Wf,function(t){return Hf[t]}).replace(/\n/g,"<br/>").replace(zf,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}var dn=function(){var e=/&#(\d+);/g;function r(t,a){return String.fromCharCode(parseInt(a,10))}return function(a){return a.replace(e,r)}}();function nt(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Ha(e){for(var r="",t=0,a=0,i=0,s=0,o=0,c=0;t<e.length;){if(a=e.charCodeAt(t++),a<128){r+=String.fromCharCode(a);continue}if(i=e.charCodeAt(t++),a>191&&a<224){o=(a&31)<<6,o|=i&63,r+=String.fromCharCode(o);continue}if(s=e.charCodeAt(t++),a<240){r+=String.fromCharCode((a&15)<<12|(i&63)<<6|s&63);continue}o=e.charCodeAt(t++),c=((a&7)<<18|(i&63)<<12|(s&63)<<6|o&63)-65536,r+=String.fromCharCode(55296+(c>>>10&1023)),r+=String.fromCharCode(56320+(c&1023))}return r}function un(e){var r=Hr(2*e.length),t,a,i=1,s=0,o=0,c;for(a=0;a<e.length;a+=i)i=1,(c=e.charCodeAt(a))<128?t=c:c<224?(t=(c&31)*64+(e.charCodeAt(a+1)&63),i=2):c<240?(t=(c&15)*4096+(e.charCodeAt(a+1)&63)*64+(e.charCodeAt(a+2)&63),i=3):(i=4,t=(c&7)*262144+(e.charCodeAt(a+1)&63)*4096+(e.charCodeAt(a+2)&63)*64+(e.charCodeAt(a+3)&63),t-=65536,o=55296+(t>>>10&1023),t=56320+(t&1023)),o!==0&&(r[s++]=o&255,r[s++]=o>>>8,o=0),r[s++]=t%256,r[s++]=t>>>8;return r.slice(0,s).toString("ucs2")}function pn(e){return ri(e,"binary").toString("utf8")}var oa="foo bar bazâð£",st=Qe&&(pn(oa)==Ha(oa)&&pn||un(oa)==Ha(oa)&&un)||Ha,Fi=Qe?function(e){return ri(e,"utf8").toString("binary")}:function(e){for(var r=[],t=0,a=0,i=0;t<e.length;)switch(a=e.charCodeAt(t++),!0){case a<128:r.push(String.fromCharCode(a));break;case a<2048:r.push(String.fromCharCode(192+(a>>6))),r.push(String.fromCharCode(128+(a&63)));break;case(a>=55296&&a<57344):a-=55296,i=e.charCodeAt(t++)-56320+(a<<10),r.push(String.fromCharCode(240+(i>>18&7))),r.push(String.fromCharCode(144+(i>>12&63))),r.push(String.fromCharCode(128+(i>>6&63))),r.push(String.fromCharCode(128+(i&63)));break;default:r.push(String.fromCharCode(224+(a>>12))),r.push(String.fromCharCode(128+(a>>6&63))),r.push(String.fromCharCode(128+(a&63)))}return r.join("")},Vi=function(){var e={};return function(t,a){var i=t+"|"+(a||"");return e[i]?e[i]:e[i]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",a||"")}}(),Bo=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(t){for(var a=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
`).replace(/<[^>]*>/g,""),i=0;i<e.length;++i)a=a.replace(e[i][0],e[i][1]);return a}}(),Gf=function(){var e={};return function(t){return e[t]!==void 0?e[t]:e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}(),Xf=/<\/?(?:vt:)?variant>/g,Vf=/<(?:vt:)([^>]*)>([\s\S]*)</;function gn(e,r){var t=Xe(e),a=e.match(Gf(t.baseType))||[],i=[];if(a.length!=t.size){if(r.WTF)throw new Error("unexpected vector length "+a.length+" != "+t.size);return i}return a.forEach(function(s){var o=s.replace(Xf,"").match(Vf);o&&i.push({v:st(o[2]),t:o[1]})}),i}var Yf=/(^\s|\s$|\n)/;function $f(e){return _r(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function Kf(e,r,t){return"<"+e+(t!=null?$f(t):"")+(r!=null?(r.match(Yf)?' xml:space="preserve"':"")+">"+r+"</"+e:"/")+">"}function ys(e){if(Qe&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return st(ii(us(e)));throw new Error("Bad input format: expected Buffer or string")}var Yi=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,qf={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Zf=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];function Jf(e,r){for(var t=1-2*(e[r+7]>>>7),a=((e[r+7]&127)<<4)+(e[r+6]>>>4&15),i=e[r+6]&15,s=5;s>=0;--s)i=i*256+e[r+s];return a==2047?i==0?t*(1/0):NaN:(a==0?a=-1022:(a-=1023,i+=Math.pow(2,52)),t*Math.pow(2,a-52)*i)}function Qf(e,r,t){var a=(r<0||1/r==-1/0?1:0)<<7,i=0,s=0,o=a?-r:r;isFinite(o)?o==0?i=s=0:(i=Math.floor(Math.log(o)/Math.LN2),s=o*Math.pow(2,52-i),i<=-1023&&(!isFinite(s)||s<Math.pow(2,52))?i=-1022:(s-=Math.pow(2,52),i+=1023)):(i=2047,s=isNaN(r)?26985:0);for(var c=0;c<=5;++c,s/=256)e[t+c]=s&255;e[t+6]=(i&15)<<4|s&15,e[t+7]=i>>4|a}var xn=function(e){for(var r=[],t=10240,a=0;a<e[0].length;++a)if(e[0][a])for(var i=0,s=e[0][a].length;i<s;i+=t)r.push.apply(r,e[0][a].slice(i,i+t));return r},mn=Qe?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(r){return Buffer.isBuffer(r)?r:ri(r)})):xn(e)}:xn,vn=function(e,r,t){for(var a=[],i=r;i<t;i+=2)a.push(String.fromCharCode(Er(e,i)));return a.join("").replace(Yt,"")},Ts=Qe?function(e,r,t){return Buffer.isBuffer(e)?e.toString("utf16le",r,t).replace(Yt,""):vn(e,r,t)}:vn,yn=function(e,r,t){for(var a=[],i=r;i<r+t;++i)a.push(("0"+e[i].toString(16)).slice(-2));return a.join("")},No=Qe?function(e,r,t){return Buffer.isBuffer(e)?e.toString("hex",r,r+t):yn(e,r,t)}:yn,Tn=function(e,r,t){for(var a=[],i=r;i<t;i++)a.push(String.fromCharCode(ui(e,i)));return a.join("")},ea=Qe?function(r,t,a){return Buffer.isBuffer(r)?r.toString("utf8",t,a):Tn(r,t,a)}:Tn,jo=function(e,r){var t=rr(e,r);return t>0?ea(e,r+4,r+4+t-1):""},Uo=jo,Ho=function(e,r){var t=rr(e,r);return t>0?ea(e,r+4,r+4+t-1):""},Wo=Ho,zo=function(e,r){var t=2*rr(e,r);return t>0?ea(e,r+4,r+4+t-1):""},Go=zo,Xo=function(r,t){var a=rr(r,t);return a>0?Ts(r,t+4,t+4+a):""},Vo=Xo,Yo=function(e,r){var t=rr(e,r);return t>0?ea(e,r+4,r+4+t):""},$o=Yo,Ko=function(e,r){return Jf(e,r)},ya=Ko,qo=function(r){return Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array};Qe&&(Uo=function(r,t){if(!Buffer.isBuffer(r))return jo(r,t);var a=r.readUInt32LE(t);return a>0?r.toString("utf8",t+4,t+4+a-1):""},Wo=function(r,t){if(!Buffer.isBuffer(r))return Ho(r,t);var a=r.readUInt32LE(t);return a>0?r.toString("utf8",t+4,t+4+a-1):""},Go=function(r,t){if(!Buffer.isBuffer(r))return zo(r,t);var a=2*r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+a-1)},Vo=function(r,t){if(!Buffer.isBuffer(r))return Xo(r,t);var a=r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+a)},$o=function(r,t){if(!Buffer.isBuffer(r))return Yo(r,t);var a=r.readUInt32LE(t);return r.toString("utf8",t+4,t+4+a)},ya=function(r,t){return Buffer.isBuffer(r)?r.readDoubleLE(t):Ko(r,t)},qo=function(r){return Buffer.isBuffer(r)||Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array});var ui=function(e,r){return e[r]},Er=function(e,r){return e[r+1]*256+e[r]},e0=function(e,r){var t=e[r+1]*256+e[r];return t<32768?t:(65535-t+1)*-1},rr=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]},Yr=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]},t0=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function Li(e,r){var t="",a,i,s=[],o,c,u,w;switch(r){case"dbcs":if(w=this.l,Qe&&Buffer.isBuffer(this))t=this.slice(this.l,this.l+2*e).toString("utf16le");else for(u=0;u<e;++u)t+=String.fromCharCode(Er(this,w)),w+=2;e*=2;break;case"utf8":t=ea(this,this.l,this.l+e);break;case"utf16le":e*=2,t=Ts(this,this.l,this.l+e);break;case"wstr":return Li.call(this,e,"dbcs");case"lpstr-ansi":t=Uo(this,this.l),e=4+rr(this,this.l);break;case"lpstr-cp":t=Wo(this,this.l),e=4+rr(this,this.l);break;case"lpwstr":t=Go(this,this.l),e=4+2*rr(this,this.l);break;case"lpp4":e=4+rr(this,this.l),t=Vo(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+rr(this,this.l),t=$o(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,t="";(o=ui(this,this.l+e++))!==0;)s.push(na(o));t=s.join("");break;case"_wstr":for(e=0,t="";(o=Er(this,this.l+e))!==0;)s.push(na(o)),e+=2;e+=2,t=s.join("");break;case"dbcs-cont":for(t="",w=this.l,u=0;u<e;++u){if(this.lens&&this.lens.indexOf(w)!==-1)return o=ui(this,w),this.l=w+1,c=Li.call(this,e-u,o?"dbcs-cont":"sbcs-cont"),s.join("")+c;s.push(na(Er(this,w))),w+=2}t=s.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(t="",w=this.l,u=0;u!=e;++u){if(this.lens&&this.lens.indexOf(w)!==-1)return o=ui(this,w),this.l=w+1,c=Li.call(this,e-u,o?"dbcs-cont":"sbcs-cont"),s.join("")+c;s.push(na(ui(this,w))),w+=1}t=s.join("");break;default:switch(e){case 1:return a=ui(this,this.l),this.l++,a;case 2:return a=(r==="i"?e0:Er)(this,this.l),this.l+=2,a;case 4:case-4:return r==="i"||!(this[this.l+3]&128)?(a=(e>0?Yr:t0)(this,this.l),this.l+=4,a):(i=rr(this,this.l),this.l+=4,i);case 8:case-8:if(r==="f")return e==8?i=ya(this,this.l):i=ya([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:t=No(this,this.l,e);break}}return this.l+=e,t}var r0=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24&255},i0=function(e,r,t){e[t]=r&255,e[t+1]=r>>8&255,e[t+2]=r>>16&255,e[t+3]=r>>24&255},a0=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255};function s0(e,r,t){var a=0,i=0;if(t==="dbcs"){for(i=0;i!=r.length;++i)a0(this,r.charCodeAt(i),this.l+2*i);a=2*r.length}else if(t==="sbcs"){for(r=r.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=r.length;++i)this[this.l+i]=r.charCodeAt(i)&255;a=r.length}else if(t==="hex"){for(;i<e;++i)this[this.l++]=parseInt(r.slice(2*i,2*i+2),16)||0;return this}else if(t==="utf16le"){var s=Math.min(this.l+e,this.length);for(i=0;i<Math.min(r.length,e);++i){var o=r.charCodeAt(i);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<s;)this[this.l++]=0;return this}else switch(e){case 1:a=1,this[this.l]=r&255;break;case 2:a=2,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255;break;case 3:a=3,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255,r>>>=8,this[this.l+2]=r&255;break;case 4:a=4,r0(this,r,this.l);break;case 8:if(a=8,t==="f"){Qf(this,r,this.l);break}case 16:break;case-4:a=4,i0(this,r,this.l);break}return this.l+=a,this}function Zo(e,r){var t=No(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function Ct(e,r){e.l=r,e.read_shift=Li,e.chk=Zo,e.write_shift=s0}function Nt(e,r){e.l+=r}function vt(e){var r=Hr(e);return Ct(r,0),r}function Or(e,r,t){if(e){var a,i,s;Ct(e,e.l||0);for(var o=e.length,c=0,u=0;e.l<o;){c=e.read_shift(1),c&128&&(c=(c&127)+((e.read_shift(1)&127)<<7));var w=Sa[c]||Sa[65535];for(a=e.read_shift(1),s=a&127,i=1;i<4&&a&128;++i)s+=((a=e.read_shift(1))&127)<<7*i;u=e.l+s;var y=w.f&&w.f(e,s,t);if(e.l=u,r(y,w,c))return}}}function qa(){var e=[],r=Qe?256:2048,t=function(w){var y=vt(w);return Ct(y,0),y},a=t(r),i=function(){a&&(a.length>a.l&&(a=a.slice(0,a.l),a.l=a.length),a.length>0&&e.push(a),a=null)},s=function(w){return a&&w<a.length-a.l?a:(i(),a=t(Math.max(w+1,r)))},o=function(){return i(),Br(e)},c=function(w){i(),a=w,a.l==null&&(a.l=a.length),s(r)};return{next:s,push:c,end:o,_bufs:e}}function Ii(e,r,t){var a=Mt(e);if(r.s?(a.cRel&&(a.c+=r.s.c),a.rRel&&(a.r+=r.s.r)):(a.cRel&&(a.c+=r.c),a.rRel&&(a.r+=r.r)),!t||t.biff<12){for(;a.c>=256;)a.c-=256;for(;a.r>=65536;)a.r-=65536}return a}function kn(e,r,t){var a=Mt(e);return a.s=Ii(a.s,r.s,t),a.e=Ii(a.e,r.s,t),a}function Ri(e,r){if(e.cRel&&e.c<0)for(e=Mt(e);e.c<0;)e.c+=r>8?16384:256;if(e.rRel&&e.r<0)for(e=Mt(e);e.r<0;)e.r+=r>8?1048576:r>5?65536:16384;var t=Ye(e);return!e.cRel&&e.cRel!=null&&(t=l0(t)),!e.rRel&&e.rRel!=null&&(t=n0(t)),t}function Wa(e,r){return e.s.r==0&&!e.s.rRel&&e.e.r==(r.biff>=12?1048575:r.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Tt(e.s.c)+":"+(e.e.cRel?"":"$")+Tt(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(r.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Dt(e.s.r)+":"+(e.e.rRel?"":"$")+Dt(e.e.r):Ri(e.s,r.biff)+":"+Ri(e.e,r.biff)}function ks(e){return parseInt(o0(e),10)-1}function Dt(e){return""+(e+1)}function n0(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function o0(e){return e.replace(/\$(\d+)$/,"$1")}function bs(e){for(var r=c0(e),t=0,a=0;a!==r.length;++a)t=26*t+r.charCodeAt(a)-64;return t-1}function Tt(e){if(e<0)throw new Error("invalid column "+e);var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function l0(e){return e.replace(/^([A-Z])/,"$$$1")}function c0(e){return e.replace(/^\$([A-Z])/,"$1")}function h0(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Vt(e){for(var r=0,t=0,a=0;a<e.length;++a){var i=e.charCodeAt(a);i>=48&&i<=57?r=10*r+(i-48):i>=65&&i<=90&&(t=26*t+(i-64))}return{c:t-1,r:r-1}}function Ye(e){for(var r=e.c+1,t="";r;r=(r-1)/26|0)t=String.fromCharCode((r-1)%26+65)+t;return t+(e.r+1)}function wi(e){var r=e.indexOf(":");return r==-1?{s:Vt(e),e:Vt(e)}:{s:Vt(e.slice(0,r)),e:Vt(e.slice(r+1))}}function tt(e,r){return typeof r>"u"||typeof r=="number"?tt(e.s,e.e):(typeof e!="string"&&(e=Ye(e)),typeof r!="string"&&(r=Ye(r)),e==r?e:e+":"+r)}function dt(e){var r={s:{c:0,r:0},e:{c:0,r:0}},t=0,a=0,i=0,s=e.length;for(t=0;a<s&&!((i=e.charCodeAt(a)-64)<1||i>26);++a)t=26*t+i;for(r.s.c=--t,t=0;a<s&&!((i=e.charCodeAt(a)-48)<0||i>9);++a)t=10*t+i;if(r.s.r=--t,a===s||i!=10)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++a,t=0;a!=s&&!((i=e.charCodeAt(a)-64)<1||i>26);++a)t=26*t+i;for(r.e.c=--t,t=0;a!=s&&!((i=e.charCodeAt(a)-48)<0||i>9);++a)t=10*t+i;return r.e.r=--t,r}function bn(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=dr(e.z,t?$t(r):r)}catch{}try{return e.w=dr((e.XF||{}).numFmtId||(t?14:0),t?$t(r):r)}catch{return""+r}}function Dr(e,r,t){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&t&&t.dateNF&&(e.z=t.dateNF),e.t=="e"?ni[e.v]||e.v:r==null?bn(e,e.v):bn(e,r))}function Gr(e,r){var t=r&&r.sheet?r.sheet:"Sheet1",a={};return a[t]=e,{SheetNames:[t],Sheets:a}}function Jo(e,r,t){var a=t||{},i=e?Array.isArray(e):a.dense,s=e||(i?[]:{}),o=0,c=0;if(s&&a.origin!=null){if(typeof a.origin=="number")o=a.origin;else{var u=typeof a.origin=="string"?Vt(a.origin):a.origin;o=u.r,c=u.c}s["!ref"]||(s["!ref"]="A1:A1")}var w={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var y=dt(s["!ref"]);w.s.c=y.s.c,w.s.r=y.s.r,w.e.c=Math.max(w.e.c,y.e.c),w.e.r=Math.max(w.e.r,y.e.r),o==-1&&(w.e.r=o=y.e.r+1)}for(var L=0;L!=r.length;++L)if(r[L]){if(!Array.isArray(r[L]))throw new Error("aoa_to_sheet expects an array of arrays");for(var N=0;N!=r[L].length;++N)if(!(typeof r[L][N]>"u")){var A={v:r[L][N]},p=o+L,g=c+N;if(w.s.r>p&&(w.s.r=p),w.s.c>g&&(w.s.c=g),w.e.r<p&&(w.e.r=p),w.e.c<g&&(w.e.c=g),r[L][N]&&typeof r[L][N]=="object"&&!Array.isArray(r[L][N])&&!(r[L][N]instanceof Date))A=r[L][N];else if(Array.isArray(A.v)&&(A.f=r[L][N][1],A.v=A.v[0]),A.v===null)if(A.f)A.t="n";else if(a.nullError)A.t="e",A.v=0;else if(a.sheetStubs)A.t="z";else continue;else typeof A.v=="number"?A.t="n":typeof A.v=="boolean"?A.t="b":A.v instanceof Date?(A.z=a.dateNF||Ke[14],a.cellDates?(A.t="d",A.w=dr(A.z,$t(A.v))):(A.t="n",A.v=$t(A.v),A.w=dr(A.z,A.v))):A.t="s";if(i)s[p]||(s[p]=[]),s[p][g]&&s[p][g].z&&(A.z=s[p][g].z),s[p][g]=A;else{var O=Ye({c:g,r:p});s[O]&&s[O].z&&(A.z=s[O].z),s[O]=A}}}return w.s.c<1e7&&(s["!ref"]=tt(w)),s}function Si(e,r){return Jo(null,e,r)}function f0(e){return e.read_shift(4,"i")}function Bt(e){var r=e.read_shift(4);return r===0?"":e.read_shift(r,"dbcs")}function d0(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function _s(e,r){var t=e.l,a=e.read_shift(1),i=Bt(e),s=[],o={t:i,h:i};if(a&1){for(var c=e.read_shift(4),u=0;u!=c;++u)s.push(d0(e));o.r=s}else o.r=[{ich:0,ifnt:0}];return e.l=t+r,o}var u0=_s;function pr(e){var r=e.read_shift(4),t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:r,iStyleRef:t}}function ai(e){var r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:r}}var p0=Bt;function ws(e){var r=e.read_shift(4);return r===0||r===4294967295?"":e.read_shift(r,"dbcs")}var g0=Bt,Za=ws;function Ss(e){var r=e.slice(e.l,e.l+4),t=r[0]&1,a=r[0]&2;e.l+=4;var i=a===0?ya([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):Yr(r,0)>>2;return t?i/100:i}function Qo(e){var r={s:{},e:{}};return r.s.r=e.read_shift(4),r.e.r=e.read_shift(4),r.s.c=e.read_shift(4),r.e.c=e.read_shift(4),r}var si=Qo;function It(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function x0(e){var r={},t=e.read_shift(1),a=t>>>1,i=e.read_shift(1),s=e.read_shift(2,"i"),o=e.read_shift(1),c=e.read_shift(1),u=e.read_shift(1);switch(e.l++,a){case 0:r.auto=1;break;case 1:r.index=i;var w=qr[i];w&&(r.rgb=Ki(w));break;case 2:r.rgb=Ki([o,c,u]);break;case 3:r.theme=i;break}return s!=0&&(r.tint=s>0?s/32767:s/32768),r}function m0(e){var r=e.read_shift(1);e.l++;var t={fBold:r&1,fItalic:r&2,fUnderline:r&4,fStrikeout:r&8,fOutline:r&16,fShadow:r&32,fCondense:r&64,fExtend:r&128};return t}function el(e,r){var t={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},a=e.read_shift(4);switch(a){case 0:return"";case 4294967295:case 4294967294:return t[e.read_shift(4)]||""}if(a>400)throw new Error("Unsupported Clipboard: "+a.toString(16));return e.l-=4,e.read_shift(0,r==1?"lpstr":"lpwstr")}function v0(e){return el(e,1)}function y0(e){return el(e,2)}var As=2,qt=3,la=11,_n=12,Ta=19,ca=64,T0=65,k0=71,b0=4108,_0=4126,wt=80,tl=81,w0=[wt,tl],S0={1:{n:"CodePage",t:As},2:{n:"Category",t:wt},3:{n:"PresentationFormat",t:wt},4:{n:"ByteCount",t:qt},5:{n:"LineCount",t:qt},6:{n:"ParagraphCount",t:qt},7:{n:"SlideCount",t:qt},8:{n:"NoteCount",t:qt},9:{n:"HiddenCount",t:qt},10:{n:"MultimediaClipCount",t:qt},11:{n:"ScaleCrop",t:la},12:{n:"HeadingPairs",t:b0},13:{n:"TitlesOfParts",t:_0},14:{n:"Manager",t:wt},15:{n:"Company",t:wt},16:{n:"LinksUpToDate",t:la},17:{n:"CharacterCount",t:qt},19:{n:"SharedDoc",t:la},22:{n:"HyperlinksChanged",t:la},23:{n:"AppVersion",t:qt,p:"version"},24:{n:"DigSig",t:T0},26:{n:"ContentType",t:wt},27:{n:"ContentStatus",t:wt},28:{n:"Language",t:wt},29:{n:"Version",t:wt},255:{},2147483648:{n:"Locale",t:Ta},2147483651:{n:"Behavior",t:Ta},1919054434:{}},A0={1:{n:"CodePage",t:As},2:{n:"Title",t:wt},3:{n:"Subject",t:wt},4:{n:"Author",t:wt},5:{n:"Keywords",t:wt},6:{n:"Comments",t:wt},7:{n:"Template",t:wt},8:{n:"LastAuthor",t:wt},9:{n:"RevNumber",t:wt},10:{n:"EditTime",t:ca},11:{n:"LastPrinted",t:ca},12:{n:"CreatedDate",t:ca},13:{n:"ModifiedDate",t:ca},14:{n:"PageCount",t:qt},15:{n:"WordCount",t:qt},16:{n:"CharCount",t:qt},17:{n:"Thumbnail",t:k0},18:{n:"Application",t:wt},19:{n:"DocSecurity",t:qt},255:{},2147483648:{n:"Locale",t:Ta},2147483651:{n:"Behavior",t:Ta},1919054434:{}},wn={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},E0=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function C0(e){return e.map(function(r){return[r>>16&255,r>>8&255,r&255]})}var M0=C0([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),qr=Mt(M0),ni={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},rl={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Sn={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};function D0(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function O0(e){var r=D0();if(!e||!e.match)return r;var t={};if((e.match(jt)||[]).forEach(function(a){var i=Xe(a);switch(i[0].replace(jf,"<")){case"<?xml":break;case"<Types":r.xmlns=i["xmlns"+(i[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":t[i.Extension]=i.ContentType;break;case"<Override":r[Sn[i.ContentType]]!==void 0&&r[Sn[i.ContentType]].push(i.PartName);break}}),r.xmlns!==qf.CT)throw new Error("Unknown Namespace: "+r.xmlns);return r.calcchain=r.calcchains.length>0?r.calcchains[0]:"",r.sst=r.strs.length>0?r.strs[0]:"",r.style=r.styles.length>0?r.styles[0]:"",r.defaults=t,delete r.calcchains,r}var pi={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Ja(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function Bi(e,r){var t={"!id":{}};if(!e)return t;r.charAt(0)!=="/"&&(r="/"+r);var a={};return(e.match(jt)||[]).forEach(function(i){var s=Xe(i);if(s[0]==="<Relationship"){var o={};o.Type=s.Type,o.Target=s.Target,o.Id=s.Id,s.TargetMode&&(o.TargetMode=s.TargetMode);var c=s.TargetMode==="External"?s.Target:Pi(s.Target,r);t[c]=o,a[s.Id]=o}}),t["!id"]=a,t}var P0="application/vnd.oasis.opendocument.spreadsheet";function F0(e,r){for(var t=ys(e),a,i;a=Yi.exec(t);)switch(a[3]){case"manifest":break;case"file-entry":if(i=Xe(a[0],!1),i.path=="/"&&i.type!==P0)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(r&&r.WTF)throw a}}var Ni=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],L0=function(){for(var e=new Array(Ni.length),r=0;r<Ni.length;++r){var t=Ni[r],a="(?:"+t[0].slice(0,t[0].indexOf(":"))+":)"+t[0].slice(t[0].indexOf(":")+1);e[r]=new RegExp("<"+a+"[^>]*>([\\s\\S]*?)</"+a+">")}return e}();function il(e){var r={};e=st(e);for(var t=0;t<Ni.length;++t){var a=Ni[t],i=e.match(L0[t]);i!=null&&i.length>0&&(r[a[1]]=rt(i[1])),a[2]==="date"&&r[a[1]]&&(r[a[1]]=St(r[a[1]]))}return r}var I0=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function al(e,r,t,a){var i=[];if(typeof e=="string")i=gn(e,a);else for(var s=0;s<e.length;++s)i=i.concat(e[s].map(function(y){return{v:y}}));var o=typeof r=="string"?gn(r,a).map(function(y){return y.v}):r,c=0,u=0;if(o.length>0)for(var w=0;w!==i.length;w+=2){switch(u=+i[w+1].v,i[w].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":t.Worksheets=u,t.SheetNames=o.slice(c,c+u);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":t.NamedRanges=u,t.DefinedNames=o.slice(c,c+u);break;case"Charts":case"Diagramme":t.Chartsheets=u,t.ChartNames=o.slice(c,c+u);break}c+=u}}function R0(e,r,t){var a={};return r||(r={}),e=st(e),I0.forEach(function(i){var s=(e.match(Vi(i[0]))||[])[1];switch(i[2]){case"string":s&&(r[i[1]]=rt(s));break;case"bool":r[i[1]]=s==="true";break;case"raw":var o=e.match(new RegExp("<"+i[0]+"[^>]*>([\\s\\S]*?)</"+i[0]+">"));o&&o.length>0&&(a[i[1]]=o[1]);break}}),a.HeadingPairs&&a.TitlesOfParts&&al(a.HeadingPairs,a.TitlesOfParts,r,t),r}var B0=/<[^>]+>[^<]*/g;function N0(e,r){var t={},a="",i=e.match(B0);if(i)for(var s=0;s!=i.length;++s){var o=i[s],c=Xe(o);switch(c[0]){case"<?xml":break;case"<Properties":break;case"<property":a=rt(c.name);break;case"</property>":a=null;break;default:if(o.indexOf("<vt:")===0){var u=o.split(">"),w=u[0].slice(4),y=u[1];switch(w){case"lpstr":case"bstr":case"lpwstr":t[a]=rt(y);break;case"bool":t[a]=nt(y);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":t[a]=parseInt(y,10);break;case"r4":case"r8":case"decimal":t[a]=parseFloat(y);break;case"filetime":case"date":t[a]=St(y);break;case"cy":case"error":t[a]=rt(y);break;default:if(w.slice(-1)=="/")break;r.WTF&&typeof console<"u"&&console.warn("Unexpected",o,w,u)}}else if(o.slice(0,2)!=="</"){if(r.WTF)throw new Error(o)}}}return t}var j0={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"},za;function U0(e,r,t){za||(za=xs(j0)),r=za[r]||r,e[r]=t}function Es(e){var r=e.read_shift(4),t=e.read_shift(4);return new Date((t/1e7*Math.pow(2,32)+r/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function sl(e,r,t){var a=e.l,i=e.read_shift(0,"lpstr-cp");if(t)for(;e.l-a&3;)++e.l;return i}function nl(e,r,t){var a=e.read_shift(0,"lpwstr");return t&&(e.l+=4-(a.length+1&3)&3),a}function ol(e,r,t){return r===31?nl(e):sl(e,r,t)}function Qa(e,r,t){return ol(e,r,t===!1?0:4)}function H0(e,r){if(!r)throw new Error("VtUnalignedString must have positive length");return ol(e,r,0)}function W0(e){for(var r=e.read_shift(4),t=[],a=0;a!=r;++a){var i=e.l;t[a]=e.read_shift(0,"lpwstr").replace(Yt,""),e.l-i&2&&(e.l+=2)}return t}function z0(e){for(var r=e.read_shift(4),t=[],a=0;a!=r;++a)t[a]=e.read_shift(0,"lpstr-cp").replace(Yt,"");return t}function G0(e){var r=e.l,t=ka(e,tl);e[e.l]==0&&e[e.l+1]==0&&e.l-r&2&&(e.l+=2);var a=ka(e,qt);return[t,a]}function X0(e){for(var r=e.read_shift(4),t=[],a=0;a<r/2;++a)t.push(G0(e));return t}function An(e,r){for(var t=e.read_shift(4),a={},i=0;i!=t;++i){var s=e.read_shift(4),o=e.read_shift(4);a[s]=e.read_shift(o,r===1200?"utf16le":"utf8").replace(Yt,"").replace(Oi,"!"),r===1200&&o%2&&(e.l+=2)}return e.l&3&&(e.l=e.l>>2+1<<2),a}function ll(e){var r=e.read_shift(4),t=e.slice(e.l,e.l+r);return e.l+=r,(r&3)>0&&(e.l+=4-(r&3)&3),t}function V0(e){var r={};return r.Size=e.read_shift(4),e.l+=r.Size+3-(r.Size-1)%4,r}function ka(e,r,t){var a=e.read_shift(2),i,s=t||{};if(e.l+=2,r!==_n&&a!==r&&w0.indexOf(r)===-1&&!((r&65534)==4126&&(a&65534)==4126))throw new Error("Expected type "+r+" saw "+a);switch(r===_n?a:r){case 2:return i=e.read_shift(2,"i"),s.raw||(e.l+=2),i;case 3:return i=e.read_shift(4,"i"),i;case 11:return e.read_shift(4)!==0;case 19:return i=e.read_shift(4),i;case 30:return sl(e,a,4).replace(Yt,"");case 31:return nl(e);case 64:return Es(e);case 65:return ll(e);case 71:return V0(e);case 80:return Qa(e,a,!s.raw).replace(Yt,"");case 81:return H0(e,a).replace(Yt,"");case 4108:return X0(e);case 4126:case 4127:return a==4127?W0(e):z0(e);default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+a)}}function En(e,r){var t=e.l,a=e.read_shift(4),i=e.read_shift(4),s=[],o=0,c=0,u=-1,w={};for(o=0;o!=i;++o){var y=e.read_shift(4),L=e.read_shift(4);s[o]=[y,L+t]}s.sort(function(_,j){return _[1]-j[1]});var N={};for(o=0;o!=i;++o){if(e.l!==s[o][1]){var A=!0;if(o>0&&r)switch(r[s[o-1][0]].t){case 2:e.l+2===s[o][1]&&(e.l+=2,A=!1);break;case 80:e.l<=s[o][1]&&(e.l=s[o][1],A=!1);break;case 4108:e.l<=s[o][1]&&(e.l=s[o][1],A=!1);break}if((!r||o==0)&&e.l<=s[o][1]&&(A=!1,e.l=s[o][1]),A)throw new Error("Read Error: Expected address "+s[o][1]+" at "+e.l+" :"+o)}if(r){var p=r[s[o][0]];if(N[p.n]=ka(e,p.t,{raw:!0}),p.p==="version"&&(N[p.n]=String(N[p.n]>>16)+"."+("0000"+String(N[p.n]&65535)).slice(-4)),p.n=="CodePage")switch(N[p.n]){case 0:N[p.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:vr(c=N[p.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+N[p.n])}}else if(s[o][0]===1){if(c=N.CodePage=ka(e,As),vr(c),u!==-1){var g=e.l;e.l=s[u][1],w=An(e,c),e.l=g}}else if(s[o][0]===0){if(c===0){u=o,e.l=s[o+1][1];continue}w=An(e,c)}else{var O=w[s[o][0]],M;switch(e[e.l]){case 65:e.l+=4,M=ll(e);break;case 30:e.l+=4,M=Qa(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,M=Qa(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,M=e.read_shift(4,"i");break;case 19:e.l+=4,M=e.read_shift(4);break;case 5:e.l+=4,M=e.read_shift(8,"f");break;case 11:e.l+=4,M=ut(e,4);break;case 64:e.l+=4,M=St(Es(e));break;default:throw new Error("unparsed value: "+e[e.l])}N[O]=M}}return e.l=t+a,N}function Cn(e,r,t){var a=e.content;if(!a)return{};Ct(a,0);var i,s,o,c,u=0;a.chk("feff","Byte Order: "),a.read_shift(2);var w=a.read_shift(4),y=a.read_shift(16);if(y!==et.utils.consts.HEADER_CLSID&&y!==t)throw new Error("Bad PropertySet CLSID "+y);if(i=a.read_shift(4),i!==1&&i!==2)throw new Error("Unrecognized #Sets: "+i);if(s=a.read_shift(16),c=a.read_shift(4),i===1&&c!==a.l)throw new Error("Length mismatch: "+c+" !== "+a.l);i===2&&(o=a.read_shift(16),u=a.read_shift(4));var L=En(a,r),N={SystemIdentifier:w};for(var A in L)N[A]=L[A];if(N.FMTID=s,i===1)return N;if(u-a.l==2&&(a.l+=2),a.l!==u)throw new Error("Length mismatch 2: "+a.l+" !== "+u);var p;try{p=En(a,null)}catch{}for(A in p)N[A]=p[A];return N.FMTID=[s,o],N}function Ir(e,r){return e.read_shift(r),null}function Y0(e,r,t){for(var a=[],i=e.l+r;e.l<i;)a.push(t(e,i-e.l));if(i!==e.l)throw new Error("Slurp error");return a}function ut(e,r){return e.read_shift(r)===1}function mt(e){return e.read_shift(2,"u")}function cl(e,r){return Y0(e,r,mt)}function $0(e){var r=e.read_shift(1),t=e.read_shift(1);return t===1?r:r===1}function ta(e,r,t){var a=e.read_shift(t&&t.biff>=12?2:1),i="sbcs-cont";if(t&&t.biff>=8,!t||t.biff==8){var s=e.read_shift(1);s&&(i="dbcs-cont")}else t.biff==12&&(i="wstr");t.biff>=2&&t.biff<=5&&(i="cpstr");var o=a?e.read_shift(a,i):"";return o}function K0(e){var r=e.read_shift(2),t=e.read_shift(1),a=t&4,i=t&8,s=1+(t&1),o=0,c,u={};i&&(o=e.read_shift(2)),a&&(c=e.read_shift(4));var w=s==2?"dbcs-cont":"sbcs-cont",y=r===0?"":e.read_shift(r,w);return i&&(e.l+=4*o),a&&(e.l+=c),u.t=y,i||(u.raw="<t>"+u.t+"</t>",u.r=u.t),u}function Qr(e,r,t){var a;if(t){if(t.biff>=2&&t.biff<=5)return e.read_shift(r,"cpstr");if(t.biff>=12)return e.read_shift(r,"dbcs-cont")}var i=e.read_shift(1);return i===0?a=e.read_shift(r,"sbcs-cont"):a=e.read_shift(r,"dbcs-cont"),a}function ra(e,r,t){var a=e.read_shift(t&&t.biff==2?1:2);return a===0?(e.l++,""):Qr(e,a,t)}function oi(e,r,t){if(t.biff>5)return ra(e,r,t);var a=e.read_shift(1);return a===0?(e.l++,""):e.read_shift(a,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function q0(e){var r=e.read_shift(1);e.l++;var t=e.read_shift(2);return e.l+=2,[r,t]}function Z0(e){var r=e.read_shift(4),t=e.l,a=!1;r>24&&(e.l+=r-24,e.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(a=!0),e.l=t);var i=e.read_shift((a?r-24:r)>>1,"utf16le").replace(Yt,"");return a&&(e.l+=24),i}function J0(e){for(var r=e.read_shift(2),t="";r-- >0;)t+="../";var a=e.read_shift(0,"lpstr-ansi");if(e.l+=2,e.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var i=e.read_shift(4);if(i===0)return t+a.replace(/\\/g,"/");var s=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var o=e.read_shift(s>>1,"utf16le").replace(Yt,"");return t+o}function Q0(e,r){var t=e.read_shift(16);switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return Z0(e);case"0303000000000000c000000000000046":return J0(e);default:throw new Error("Unsupported Moniker "+t)}}function ha(e){var r=e.read_shift(4),t=r>0?e.read_shift(r,"utf16le").replace(Yt,""):"";return t}function ed(e,r){var t=e.l+r,a=e.read_shift(4);if(a!==2)throw new Error("Unrecognized streamVersion: "+a);var i=e.read_shift(2);e.l+=2;var s,o,c,u,w="",y,L;i&16&&(s=ha(e,t-e.l)),i&128&&(o=ha(e,t-e.l)),(i&257)===257&&(c=ha(e,t-e.l)),(i&257)===1&&(u=Q0(e,t-e.l)),i&8&&(w=ha(e,t-e.l)),i&32&&(y=e.read_shift(16)),i&64&&(L=Es(e)),e.l=t;var N=o||c||u||"";N&&w&&(N+="#"+w),N||(N="#"+w),i&2&&N.charAt(0)=="/"&&N.charAt(1)!="/"&&(N="file://"+N);var A={Target:N};return y&&(A.guid=y),L&&(A.time=L),s&&(A.Tooltip=s),A}function hl(e){var r=e.read_shift(1),t=e.read_shift(1),a=e.read_shift(1),i=e.read_shift(1);return[r,t,a,i]}function fl(e,r){var t=hl(e);return t[3]=0,t}function Sr(e){var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(2);return{r,c:t,ixfe:a}}function td(e){var r=e.read_shift(2),t=e.read_shift(2);return e.l+=8,{type:r,flags:t}}function rd(e,r,t){return r===0?"":oi(e,r,t)}function id(e,r,t){var a=t.biff>8?4:2,i=e.read_shift(a),s=e.read_shift(a,"i"),o=e.read_shift(a,"i");return[i,s,o]}function dl(e){var r=e.read_shift(2),t=Ss(e);return[r,t]}function ad(e,r,t){e.l+=4,r-=4;var a=e.l+r,i=ta(e,r,t),s=e.read_shift(2);if(a-=e.l,s!==a)throw new Error("Malformed AddinUdf: padding = "+a+" != "+s);return e.l+=s,i}function Pa(e){var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2);return{s:{c:a,r},e:{c:i,r:t}}}function ul(e){var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(1),i=e.read_shift(1);return{s:{c:a,r},e:{c:i,r:t}}}var sd=ul;function pl(e){e.l+=4;var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(2);return e.l+=12,[t,r,a]}function nd(e){var r={};return e.l+=4,e.l+=16,r.fSharedNote=e.read_shift(2),e.l+=4,r}function od(e){var r={};return e.l+=4,e.cf=e.read_shift(2),r}function Pt(e){e.l+=2,e.l+=e.read_shift(2)}var ld={0:Pt,4:Pt,5:Pt,6:Pt,7:od,8:Pt,9:Pt,10:Pt,11:Pt,12:Pt,13:nd,14:Pt,15:Pt,16:Pt,17:Pt,18:Pt,19:Pt,20:Pt,21:pl};function cd(e,r){for(var t=e.l+r,a=[];e.l<t;){var i=e.read_shift(2);e.l-=2;try{a.push(ld[i](e,t-e.l))}catch{return e.l=t,a}}return e.l!=t&&(e.l=t),a}function fa(e,r){var t={BIFFVer:0,dt:0};switch(t.BIFFVer=e.read_shift(2),r-=2,r>=2&&(t.dt=e.read_shift(2),e.l-=2),t.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(r>6)throw new Error("Unexpected BIFF Ver "+t.BIFFVer)}return e.read_shift(r),t}function hd(e,r){return r===0||e.read_shift(2),1200}function fd(e,r,t){if(t.enc)return e.l+=r,"";var a=e.l,i=oi(e,0,t);return e.read_shift(r+a-e.l),i}function dd(e,r,t){var a=t&&t.biff==8||r==2?e.read_shift(2):(e.l+=r,0);return{fDialog:a&16,fBelow:a&64,fRight:a&128}}function ud(e,r,t){var a=e.read_shift(4),i=e.read_shift(1)&3,s=e.read_shift(1);switch(s){case 0:s="Worksheet";break;case 1:s="Macrosheet";break;case 2:s="Chartsheet";break;case 6:s="VBAModule";break}var o=ta(e,0,t);return o.length===0&&(o="Sheet1"),{pos:a,hs:i,dt:s,name:o}}function pd(e,r){for(var t=e.l+r,a=e.read_shift(4),i=e.read_shift(4),s=[],o=0;o!=i&&e.l<t;++o)s.push(K0(e));return s.Count=a,s.Unique=i,s}function gd(e,r){var t={};return t.dsst=e.read_shift(2),e.l+=r-2,t}function xd(e){var r={};r.r=e.read_shift(2),r.c=e.read_shift(2),r.cnt=e.read_shift(2)-r.c;var t=e.read_shift(2);e.l+=4;var a=e.read_shift(1);return e.l+=3,a&7&&(r.level=a&7),a&32&&(r.hidden=!0),a&64&&(r.hpt=t/20),r}function md(e){var r=td(e);if(r.type!=2211)throw new Error("Invalid Future Record "+r.type);var t=e.read_shift(4);return t!==0}function vd(e){return e.read_shift(2),e.read_shift(4)}function Mn(e,r,t){var a=0;t&&t.biff==2||(a=e.read_shift(2));var i=e.read_shift(2);t&&t.biff==2&&(a=1-(i>>15),i&=32767);var s={Unsynced:a&1,DyZero:(a&2)>>1,ExAsc:(a&4)>>2,ExDsc:(a&8)>>3};return[s,i]}function yd(e){var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2),s=e.read_shift(2),o=e.read_shift(2),c=e.read_shift(2),u=e.read_shift(2),w=e.read_shift(2);return{Pos:[r,t],Dim:[a,i],Flags:s,CurTab:o,FirstTab:c,Selected:u,TabRatio:w}}function Td(e,r,t){if(t&&t.biff>=2&&t.biff<5)return{};var a=e.read_shift(2);return{RTL:a&64}}function kd(){}function bd(e,r,t){var a={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(t&&t.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return a.name=ta(e,0,t),a}function _d(e){var r=Sr(e);return r.isst=e.read_shift(4),r}function wd(e,r,t){t.biffguess&&t.biff==2&&(t.biff=5);var a=e.l+r,i=Sr(e);t.biff==2&&e.l++;var s=ra(e,a-e.l,t);return i.val=s,i}function Sd(e,r,t){var a=e.read_shift(2),i=oi(e,0,t);return[a,i]}var Ad=oi;function Dn(e,r,t){var a=e.l+r,i=t.biff==8||!t.biff?4:2,s=e.read_shift(i),o=e.read_shift(i),c=e.read_shift(2),u=e.read_shift(2);return e.l=a,{s:{r:s,c},e:{r:o,c:u}}}function Ed(e){var r=e.read_shift(2),t=e.read_shift(2),a=dl(e);return{r,c:t,ixfe:a[0],rknum:a[1]}}function Cd(e,r){for(var t=e.l+r-2,a=e.read_shift(2),i=e.read_shift(2),s=[];e.l<t;)s.push(dl(e));if(e.l!==t)throw new Error("MulRK read error");var o=e.read_shift(2);if(s.length!=o-i+1)throw new Error("MulRK length mismatch");return{r:a,c:i,C:o,rkrec:s}}function Md(e,r){for(var t=e.l+r-2,a=e.read_shift(2),i=e.read_shift(2),s=[];e.l<t;)s.push(e.read_shift(2));if(e.l!==t)throw new Error("MulBlank read error");var o=e.read_shift(2);if(s.length!=o-i+1)throw new Error("MulBlank length mismatch");return{r:a,c:i,C:o,ixfe:s}}function Dd(e,r,t,a){var i={},s=e.read_shift(4),o=e.read_shift(4),c=e.read_shift(4),u=e.read_shift(2);return i.patternType=E0[c>>26],a.cellStyles&&(i.alc=s&7,i.fWrap=s>>3&1,i.alcV=s>>4&7,i.fJustLast=s>>7&1,i.trot=s>>8&255,i.cIndent=s>>16&15,i.fShrinkToFit=s>>20&1,i.iReadOrder=s>>22&2,i.fAtrNum=s>>26&1,i.fAtrFnt=s>>27&1,i.fAtrAlc=s>>28&1,i.fAtrBdr=s>>29&1,i.fAtrPat=s>>30&1,i.fAtrProt=s>>31&1,i.dgLeft=o&15,i.dgRight=o>>4&15,i.dgTop=o>>8&15,i.dgBottom=o>>12&15,i.icvLeft=o>>16&127,i.icvRight=o>>23&127,i.grbitDiag=o>>30&3,i.icvTop=c&127,i.icvBottom=c>>7&127,i.icvDiag=c>>14&127,i.dgDiag=c>>21&15,i.icvFore=u&127,i.icvBack=u>>7&127,i.fsxButton=u>>14&1),i}function Od(e,r,t){var a={};return a.ifnt=e.read_shift(2),a.numFmtId=e.read_shift(2),a.flags=e.read_shift(2),a.fStyle=a.flags>>2&1,r-=6,a.data=Dd(e,r,a.fStyle,t),a}function Pd(e){e.l+=4;var r=[e.read_shift(2),e.read_shift(2)];if(r[0]!==0&&r[0]--,r[1]!==0&&r[1]--,r[0]>7||r[1]>7)throw new Error("Bad Gutters: "+r.join("|"));return r}function On(e,r,t){var a=Sr(e);(t.biff==2||r==9)&&++e.l;var i=$0(e);return a.val=i,a.t=i===!0||i===!1?"b":"e",a}function Fd(e,r,t){t.biffguess&&t.biff==2&&(t.biff=5);var a=Sr(e),i=It(e);return a.val=i,a}var Pn=rd;function Ld(e,r,t){var a=e.l+r,i=e.read_shift(2),s=e.read_shift(2);if(t.sbcch=s,s==1025||s==14849)return[s,i];if(s<1||s>255)throw new Error("Unexpected SupBook type: "+s);for(var o=Qr(e,s),c=[];a>e.l;)c.push(ra(e));return[s,i,o,c]}function Fn(e,r,t){var a=e.read_shift(2),i,s={fBuiltIn:a&1,fWantAdvise:a>>>1&1,fWantPict:a>>>2&1,fOle:a>>>3&1,fOleLink:a>>>4&1,cf:a>>>5&1023,fIcon:a>>>15&1};return t.sbcch===14849&&(i=ad(e,r-2,t)),s.body=i||e.read_shift(r-2),typeof i=="string"&&(s.Name=i),s}var Id=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Ln(e,r,t){var a=e.l+r,i=e.read_shift(2),s=e.read_shift(1),o=e.read_shift(1),c=e.read_shift(t&&t.biff==2?1:2),u=0;(!t||t.biff>=5)&&(t.biff!=5&&(e.l+=2),u=e.read_shift(2),t.biff==5&&(e.l+=2),e.l+=4);var w=Qr(e,o,t);i&32&&(w=Id[w.charCodeAt(0)]);var y=a-e.l;t&&t.biff==2&&--y;var L=a==e.l||c===0||!(y>0)?[]:xx(e,y,t,c);return{chKey:s,Name:w,itab:u,rgce:L}}function gl(e,r,t){if(t.biff<8)return Rd(e,r,t);for(var a=[],i=e.l+r,s=e.read_shift(t.biff>8?4:2);s--!==0;)a.push(id(e,t.biff>8?12:6,t));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return a}function Rd(e,r,t){e[e.l+1]==3&&e[e.l]++;var a=ta(e,r,t);return a.charCodeAt(0)==3?a.slice(1):a}function Bd(e,r,t){if(t.biff<8){e.l+=r;return}var a=e.read_shift(2),i=e.read_shift(2),s=Qr(e,a,t),o=Qr(e,i,t);return[s,o]}function Nd(e,r,t){var a=ul(e);e.l++;var i=e.read_shift(1);return r-=8,[mx(e,r,t),i,a]}function In(e,r,t){var a=sd(e);switch(t.biff){case 2:e.l++,r-=7;break;case 3:case 4:e.l+=2,r-=8;break;default:e.l+=6,r-=12}return[a,px(e,r,t)]}function jd(e){var r=e.read_shift(4)!==0,t=e.read_shift(4)!==0,a=e.read_shift(4);return[r,t,a]}function Ud(e,r,t){if(!(t.biff<8)){var a=e.read_shift(2),i=e.read_shift(2),s=e.read_shift(2),o=e.read_shift(2),c=oi(e,0,t);return t.biff<8&&e.read_shift(1),[{r:a,c:i},c,o,s]}}function Hd(e,r,t){return Ud(e,r,t)}function Wd(e,r){for(var t=[],a=e.read_shift(2);a--;)t.push(Pa(e));return t}function zd(e,r,t){if(t&&t.biff<8)return Xd(e,r,t);var a=pl(e),i=cd(e,r-22,a[1]);return{cmo:a,ft:i}}var Gd={8:function(e,r){var t=e.l+r;e.l+=10;var a=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var i=e.read_shift(1);return e.l+=i,e.l=t,{fmt:a}}};function Xd(e,r,t){e.l+=4;var a=e.read_shift(2),i=e.read_shift(2),s=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,r-=36;var o=[];return o.push((Gd[a]||Nt)(e,r,t)),{cmo:[i,a,s],ft:o}}function Vd(e,r,t){var a=e.l,i="";try{e.l+=4;var s=(t.lastobj||{cmo:[0,0]}).cmo[1],o;[0,5,7,11,12,14].indexOf(s)==-1?e.l+=6:o=q0(e,6,t);var c=e.read_shift(2);e.read_shift(2),mt(e,2);var u=e.read_shift(2);e.l+=u;for(var w=1;w<e.lens.length-1;++w){if(e.l-a!=e.lens[w])throw new Error("TxO: bad continue record");var y=e[e.l],L=Qr(e,e.lens[w+1]-e.lens[w]-1);if(i+=L,i.length>=(y?c:2*c))break}if(i.length!==c&&i.length!==c*2)throw new Error("cchText: "+c+" != "+i.length);return e.l=a+r,{t:i}}catch{return e.l=a+r,{t:i}}}function Yd(e,r){var t=Pa(e);e.l+=16;var a=ed(e,r-24);return[t,a]}function $d(e,r){e.read_shift(2);var t=Pa(e),a=e.read_shift((r-10)/2,"dbcs-cont");return a=a.replace(Yt,""),[t,a]}function Kd(e){var r=[0,0],t;return t=e.read_shift(2),r[0]=wn[t]||t,t=e.read_shift(2),r[1]=wn[t]||t,r}function qd(e){for(var r=e.read_shift(2),t=[];r-- >0;)t.push(fl(e));return t}function Zd(e){for(var r=e.read_shift(2),t=[];r-- >0;)t.push(fl(e));return t}function Jd(e){e.l+=2;var r={cxfs:0,crc:0};return r.cxfs=e.read_shift(2),r.crc=e.read_shift(4),r}function xl(e,r,t){if(!t.cellStyles)return Nt(e,r);var a=t&&t.biff>=12?4:2,i=e.read_shift(a),s=e.read_shift(a),o=e.read_shift(a),c=e.read_shift(a),u=e.read_shift(2);a==2&&(e.l+=2);var w={s:i,e:s,w:o,ixfe:c,flags:u};return(t.biff>=5||!t.biff)&&(w.level=u>>8&7),w}function Qd(e,r){var t={};return r<32||(e.l+=16,t.header=It(e),t.footer=It(e),e.l+=2),t}function eu(e,r,t){var a={area:!1};if(t.biff!=5)return e.l+=r,a;var i=e.read_shift(1);return e.l+=3,i&16&&(a.area=!0),a}var tu=Sr,ru=cl,iu=ra;function au(e){var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(4),i={fmt:r,env:t,len:a,data:e.slice(e.l,e.l+a)};return e.l+=a,i}function su(e,r,t){t.biffguess&&t.biff==5&&(t.biff=2);var a=Sr(e);++e.l;var i=oi(e,r-7,t);return a.t="str",a.val=i,a}function nu(e){var r=Sr(e);++e.l;var t=It(e);return r.t="n",r.val=t,r}function ou(e){var r=Sr(e);++e.l;var t=e.read_shift(2);return r.t="n",r.val=t,r}function lu(e){var r=e.read_shift(1);return r===0?(e.l++,""):e.read_shift(r,"sbcs-cont")}function cu(e,r){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=r-13}function hu(e,r,t){var a=e.l+r,i=Sr(e),s=e.read_shift(2),o=Qr(e,s,t);return e.l=a,i.t="str",i.val=o,i}var fu=[2,3,48,49,131,139,140,245],Rn=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},r=xs({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function t(c,u){var w=[],y=Hr(1);switch(u.type){case"base64":y=mr(ar(c));break;case"binary":y=mr(c);break;case"buffer":case"array":y=c;break}Ct(y,0);var L=y.read_shift(1),N=!!(L&136),A=!1,p=!1;switch(L){case 2:break;case 3:break;case 48:A=!0,N=!0;break;case 49:A=!0,N=!0;break;case 131:break;case 139:break;case 140:p=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+L.toString(16))}var g=0,O=521;L==2&&(g=y.read_shift(2)),y.l+=3,L!=2&&(g=y.read_shift(4)),g>1048576&&(g=1e6),L!=2&&(O=y.read_shift(2));var M=y.read_shift(2),_=u.codepage||1252;L!=2&&(y.l+=16,y.read_shift(1),y[y.l]!==0&&(_=e[y[y.l]]),y.l+=1,y.l+=2),p&&(y.l+=36);for(var j=[],C={},k=Math.min(y.length,L==2?521:O-10-(A?264:0)),F=p?32:11;y.l<k&&y[y.l]!=13;)switch(C={},C.name=Rr.utils.decode(_,y.slice(y.l,y.l+F)).replace(/[\u0000\r\n].*$/g,""),y.l+=F,C.type=String.fromCharCode(y.read_shift(1)),L!=2&&!p&&(C.offset=y.read_shift(4)),C.len=y.read_shift(1),L==2&&(C.offset=y.read_shift(2)),C.dec=y.read_shift(1),C.name.length&&j.push(C),L!=2&&(y.l+=p?13:14),C.type){case"B":(!A||C.len!=8)&&u.WTF&&console.log("Skipping "+C.name+":"+C.type);break;case"G":case"P":u.WTF&&console.log("Skipping "+C.name+":"+C.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+C.type)}if(y[y.l]!==13&&(y.l=O-1),y.read_shift(1)!==13)throw new Error("DBF Terminator not found "+y.l+" "+y[y.l]);y.l=O;var P=0,I=0;for(w[0]=[],I=0;I!=j.length;++I)w[0][I]=j[I].name;for(;g-- >0;){if(y[y.l]===42){y.l+=M;continue}for(++y.l,w[++P]=[],I=0,I=0;I!=j.length;++I){var m=y.slice(y.l,y.l+j[I].len);y.l+=j[I].len,Ct(m,0);var B=Rr.utils.decode(_,m);switch(j[I].type){case"C":B.trim().length&&(w[P][I]=B.replace(/\s+$/,""));break;case"D":B.length===8?w[P][I]=new Date(+B.slice(0,4),+B.slice(4,6)-1,+B.slice(6,8)):w[P][I]=B;break;case"F":w[P][I]=parseFloat(B.trim());break;case"+":case"I":w[P][I]=p?m.read_shift(-4,"i")^2147483648:m.read_shift(4,"i");break;case"L":switch(B.trim().toUpperCase()){case"Y":case"T":w[P][I]=!0;break;case"N":case"F":w[P][I]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+B+"|")}break;case"M":if(!N)throw new Error("DBF Unexpected MEMO for type "+L.toString(16));w[P][I]="##MEMO##"+(p?parseInt(B.trim(),10):m.read_shift(4));break;case"N":B=B.replace(/\u0000/g,"").trim(),B&&B!="."&&(w[P][I]=+B||0);break;case"@":w[P][I]=new Date(m.read_shift(-8,"f")-621356832e5);break;case"T":w[P][I]=new Date((m.read_shift(4)-2440588)*864e5+m.read_shift(4));break;case"Y":w[P][I]=m.read_shift(4,"i")/1e4+m.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":w[P][I]=-m.read_shift(-8,"f");break;case"B":if(A&&j[I].len==8){w[P][I]=m.read_shift(8,"f");break}case"G":case"P":m.l+=j[I].len;break;case"0":if(j[I].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+j[I].type)}}}if(L!=2&&y.l<y.length&&y[y.l++]!=26)throw new Error("DBF EOF Marker missing "+(y.l-1)+" of "+y.length+" "+y[y.l-1].toString(16));return u&&u.sheetRows&&(w=w.slice(0,u.sheetRows)),u.DBF=j,w}function a(c,u){var w=u||{};w.dateNF||(w.dateNF="yyyymmdd");var y=Si(t(c,w),w);return y["!cols"]=w.DBF.map(function(L){return{wch:L.len,DBF:L}}),delete w.DBF,y}function i(c,u){try{return Gr(a(c,u),u)}catch(w){if(u&&u.WTF)throw w}return{SheetNames:[],Sheets:{}}}var s={B:8,C:250,L:1,D:8,"?":0,"":0};function o(c,u){var w=u||{};if(+w.codepage>=0&&vr(+w.codepage),w.type=="string")throw new Error("Cannot write DBF to JS string");var y=qa(),L=ns(c,{header:1,raw:!0,cellDates:!0}),N=L[0],A=L.slice(1),p=c["!cols"]||[],g=0,O=0,M=0,_=1;for(g=0;g<N.length;++g){if(((p[g]||{}).DBF||{}).name){N[g]=p[g].DBF.name,++M;continue}if(N[g]!=null){if(++M,typeof N[g]=="number"&&(N[g]=N[g].toString(10)),typeof N[g]!="string")throw new Error("DBF Invalid column name "+N[g]+" |"+typeof N[g]+"|");if(N.indexOf(N[g])!==g){for(O=0;O<1024;++O)if(N.indexOf(N[g]+"_"+O)==-1){N[g]+="_"+O;break}}}}var j=dt(c["!ref"]),C=[],k=[],F=[];for(g=0;g<=j.e.c-j.s.c;++g){var P="",I="",m=0,B=[];for(O=0;O<A.length;++O)A[O][g]!=null&&B.push(A[O][g]);if(B.length==0||N[g]==null){C[g]="?";continue}for(O=0;O<B.length;++O){switch(typeof B[O]){case"number":I="B";break;case"string":I="C";break;case"boolean":I="L";break;case"object":I=B[O]instanceof Date?"D":"C";break;default:I="C"}m=Math.max(m,String(B[O]).length),P=P&&P!=I?"C":I}m>250&&(m=250),I=((p[g]||{}).DBF||{}).type,I=="C"&&p[g].DBF.len>m&&(m=p[g].DBF.len),P=="B"&&I=="N"&&(P="N",F[g]=p[g].DBF.dec,m=p[g].DBF.len),k[g]=P=="C"||I=="N"?m:s[P]||0,_+=k[g],C[g]=P}var T=y.next(32);for(T.write_shift(4,318902576),T.write_shift(4,A.length),T.write_shift(2,296+32*M),T.write_shift(2,_),g=0;g<4;++g)T.write_shift(4,0);for(T.write_shift(4,0|(+r[po]||3)<<8),g=0,O=0;g<N.length;++g)if(N[g]!=null){var S=y.next(32),x=(N[g].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);S.write_shift(1,x,"sbcs"),S.write_shift(1,C[g]=="?"?"C":C[g],"sbcs"),S.write_shift(4,O),S.write_shift(1,k[g]||s[C[g]]||0),S.write_shift(1,F[g]||0),S.write_shift(1,2),S.write_shift(4,0),S.write_shift(1,0),S.write_shift(4,0),S.write_shift(4,0),O+=k[g]||s[C[g]]||0}var h=y.next(264);for(h.write_shift(4,13),g=0;g<65;++g)h.write_shift(4,0);for(g=0;g<A.length;++g){var n=y.next(_);for(n.write_shift(1,0),O=0;O<N.length;++O)if(N[O]!=null)switch(C[O]){case"L":n.write_shift(1,A[g][O]==null?63:A[g][O]?84:70);break;case"B":n.write_shift(8,A[g][O]||0,"f");break;case"N":var l="0";for(typeof A[g][O]=="number"&&(l=A[g][O].toFixed(F[O]||0)),M=0;M<k[O]-l.length;++M)n.write_shift(1,32);n.write_shift(1,l,"sbcs");break;case"D":A[g][O]?(n.write_shift(4,("0000"+A[g][O].getFullYear()).slice(-4),"sbcs"),n.write_shift(2,("00"+(A[g][O].getMonth()+1)).slice(-2),"sbcs"),n.write_shift(2,("00"+A[g][O].getDate()).slice(-2),"sbcs")):n.write_shift(8,"00000000","sbcs");break;case"C":var f=String(A[g][O]!=null?A[g][O]:"").slice(0,k[O]);for(n.write_shift(1,f,"sbcs"),M=0;M<k[O]-f.length;++M)n.write_shift(1,32);break}}return y.next(1).write_shift(1,26),y.end()}return{to_workbook:i,to_sheet:a,from_sheet:o}}(),du=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},r=new RegExp("\x1BN("+_r(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(N,A){var p=e[A];return typeof p=="number"?Zs(p):p},a=function(N,A,p){var g=A.charCodeAt(0)-32<<4|p.charCodeAt(0)-48;return g==59?N:Zs(g)};e["|"]=254;function i(N,A){switch(A.type){case"base64":return s(ar(N),A);case"binary":return s(N,A);case"buffer":return s(Qe&&Buffer.isBuffer(N)?N.toString("binary"):ii(N),A);case"array":return s(Jr(N),A)}throw new Error("Unrecognized type "+A.type)}function s(N,A){var p=N.split(/[\n\r]+/),g=-1,O=-1,M=0,_=0,j=[],C=[],k=null,F={},P=[],I=[],m=[],B=0,T;for(+A.codepage>=0&&vr(+A.codepage);M!==p.length;++M){B=0;var S=p[M].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(r,t),x=S.replace(/;;/g,"\0").split(";").map(function(W){return W.replace(/\u0000/g,";")}),h=x[0],n;if(S.length>0)switch(h){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":x[1].charAt(0)=="P"&&C.push(S.slice(3).replace(/;;/g,";"));break;case"C":var l=!1,f=!1,b=!1,v=!1,G=-1,U=-1;for(_=1;_<x.length;++_)switch(x[_].charAt(0)){case"A":break;case"X":O=parseInt(x[_].slice(1))-1,f=!0;break;case"Y":for(g=parseInt(x[_].slice(1))-1,f||(O=0),T=j.length;T<=g;++T)j[T]=[];break;case"K":n=x[_].slice(1),n.charAt(0)==='"'?n=n.slice(1,n.length-1):n==="TRUE"?n=!0:n==="FALSE"?n=!1:isNaN(Tr(n))?isNaN(vi(n).getDate())||(n=St(n)):(n=Tr(n),k!==null&&_i(k)&&(n=Oa(n))),l=!0;break;case"E":v=!0;var D=xi(x[_].slice(1),{r:g,c:O});j[g][O]=[j[g][O],D];break;case"S":b=!0,j[g][O]=[j[g][O],"S5S"];break;case"G":break;case"R":G=parseInt(x[_].slice(1))-1;break;case"C":U=parseInt(x[_].slice(1))-1;break;default:if(A&&A.WTF)throw new Error("SYLK bad record "+S)}if(l&&(j[g][O]&&j[g][O].length==2?j[g][O][0]=n:j[g][O]=n,k=null),b){if(v)throw new Error("SYLK shared formula cannot have own formula");var H=G>-1&&j[G][U];if(!H||!H[1])throw new Error("SYLK shared formula cannot find base");j[g][O][1]=Al(H[1],{r:g-G,c:O-U})}break;case"F":var z=0;for(_=1;_<x.length;++_)switch(x[_].charAt(0)){case"X":O=parseInt(x[_].slice(1))-1,++z;break;case"Y":for(g=parseInt(x[_].slice(1))-1,T=j.length;T<=g;++T)j[T]=[];break;case"M":B=parseInt(x[_].slice(1))/20;break;case"F":break;case"G":break;case"P":k=C[parseInt(x[_].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(m=x[_].slice(1).split(" "),T=parseInt(m[0],10);T<=parseInt(m[1],10);++T)B=parseInt(m[2],10),I[T-1]=B===0?{hidden:!0}:{wch:B},yi(I[T-1]);break;case"C":O=parseInt(x[_].slice(1))-1,I[O]||(I[O]={});break;case"R":g=parseInt(x[_].slice(1))-1,P[g]||(P[g]={}),B>0?(P[g].hpt=B,P[g].hpx=qi(B)):B===0&&(P[g].hidden=!0);break;default:if(A&&A.WTF)throw new Error("SYLK bad record "+S)}z<1&&(k=null);break;default:if(A&&A.WTF)throw new Error("SYLK bad record "+S)}}return P.length>0&&(F["!rows"]=P),I.length>0&&(F["!cols"]=I),A&&A.sheetRows&&(j=j.slice(0,A.sheetRows)),[j,F]}function o(N,A){var p=i(N,A),g=p[0],O=p[1],M=Si(g,A);return _r(O).forEach(function(_){M[_]=O[_]}),M}function c(N,A){return Gr(o(N,A),A)}function u(N,A,p,g){var O="C;Y"+(p+1)+";X"+(g+1)+";K";switch(N.t){case"n":O+=N.v||0,N.f&&!N.F&&(O+=";E"+Jp(N.f,{r:p,c:g}));break;case"b":O+=N.v?"TRUE":"FALSE";break;case"e":O+=N.w||N.v;break;case"d":O+='"'+(N.w||N.v)+'"';break;case"s":O+='"'+N.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return O}function w(N,A){A.forEach(function(p,g){var O="F;W"+(g+1)+" "+(g+1)+" ";p.hidden?O+="0":(typeof p.width=="number"&&!p.wpx&&(p.wpx=_a(p.width)),typeof p.wpx=="number"&&!p.wch&&(p.wch=wa(p.wpx)),typeof p.wch=="number"&&(O+=Math.round(p.wch))),O.charAt(O.length-1)!=" "&&N.push(O)})}function y(N,A){A.forEach(function(p,g){var O="F;";p.hidden?O+="M0;":p.hpt?O+="M"+20*p.hpt+";":p.hpx&&(O+="M"+20*_l(p.hpx)+";"),O.length>2&&N.push(O+"R"+(g+1))})}function L(N,A){var p=["ID;PWXL;N;E"],g=[],O=dt(N["!ref"]),M,_=Array.isArray(N),j=`\r
`;p.push("P;PGeneral"),p.push("F;P0;DG0G8;M255"),N["!cols"]&&w(p,N["!cols"]),N["!rows"]&&y(p,N["!rows"]),p.push("B;Y"+(O.e.r-O.s.r+1)+";X"+(O.e.c-O.s.c+1)+";D"+[O.s.c,O.s.r,O.e.c,O.e.r].join(" "));for(var C=O.s.r;C<=O.e.r;++C)for(var k=O.s.c;k<=O.e.c;++k){var F=Ye({r:C,c:k});M=_?(N[C]||[])[k]:N[F],!(!M||M.v==null&&(!M.f||M.F))&&g.push(u(M,N,C,k))}return p.join(j)+j+g.join(j)+j+"E"+j}return{to_workbook:c,to_sheet:o,from_sheet:L}}(),uu=function(){function e(s,o){switch(o.type){case"base64":return r(ar(s),o);case"binary":return r(s,o);case"buffer":return r(Qe&&Buffer.isBuffer(s)?s.toString("binary"):ii(s),o);case"array":return r(Jr(s),o)}throw new Error("Unrecognized type "+o.type)}function r(s,o){for(var c=s.split(`
`),u=-1,w=-1,y=0,L=[];y!==c.length;++y){if(c[y].trim()==="BOT"){L[++u]=[],w=0;continue}if(!(u<0)){var N=c[y].trim().split(","),A=N[0],p=N[1];++y;for(var g=c[y]||"";(g.match(/["]/g)||[]).length&1&&y<c.length-1;)g+=`
`+c[++y];switch(g=g.trim(),+A){case-1:if(g==="BOT"){L[++u]=[],w=0;continue}else if(g!=="EOD")throw new Error("Unrecognized DIF special command "+g);break;case 0:g==="TRUE"?L[u][w]=!0:g==="FALSE"?L[u][w]=!1:isNaN(Tr(p))?isNaN(vi(p).getDate())?L[u][w]=p:L[u][w]=St(p):L[u][w]=Tr(p),++w;break;case 1:g=g.slice(1,g.length-1),g=g.replace(/""/g,'"'),g&&g.match(/^=".*"$/)&&(g=g.slice(2,-1)),L[u][w++]=g!==""?g:null;break}if(g==="EOD")break}}return o&&o.sheetRows&&(L=L.slice(0,o.sheetRows)),L}function t(s,o){return Si(e(s,o),o)}function a(s,o){return Gr(t(s,o),o)}var i=function(){var s=function(u,w,y,L,N){u.push(w),u.push(y+","+L),u.push('"'+N.replace(/"/g,'""')+'"')},o=function(u,w,y,L){u.push(w+","+y),u.push(w==1?'"'+L.replace(/"/g,'""')+'"':L)};return function(u){var w=[],y=dt(u["!ref"]),L,N=Array.isArray(u);s(w,"TABLE",0,1,"sheetjs"),s(w,"VECTORS",0,y.e.r-y.s.r+1,""),s(w,"TUPLES",0,y.e.c-y.s.c+1,""),s(w,"DATA",0,0,"");for(var A=y.s.r;A<=y.e.r;++A){o(w,-1,0,"BOT");for(var p=y.s.c;p<=y.e.c;++p){var g=Ye({r:A,c:p});if(L=N?(u[A]||[])[p]:u[g],!L){o(w,1,0,"");continue}switch(L.t){case"n":var O=L.w;!O&&L.v!=null&&(O=L.v),O==null?L.f&&!L.F?o(w,1,0,"="+L.f):o(w,1,0,""):o(w,0,O,"V");break;case"b":o(w,0,L.v?1:0,L.v?"TRUE":"FALSE");break;case"s":o(w,1,0,isNaN(L.v)?L.v:'="'+L.v+'"');break;case"d":L.w||(L.w=dr(L.z||Ke[14],$t(St(L.v)))),o(w,0,L.w,"V");break;default:o(w,1,0,"")}}}o(w,-1,0,"EOD");var M=`\r
`,_=w.join(M);return _}}();return{to_workbook:a,to_sheet:t,from_sheet:i}}(),pu=function(){function e(L){return L.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function r(L){return L.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(L,N){for(var A=L.split(`
`),p=-1,g=-1,O=0,M=[];O!==A.length;++O){var _=A[O].trim().split(":");if(_[0]==="cell"){var j=Vt(_[1]);if(M.length<=j.r)for(p=M.length;p<=j.r;++p)M[p]||(M[p]=[]);switch(p=j.r,g=j.c,_[2]){case"t":M[p][g]=e(_[3]);break;case"v":M[p][g]=+_[3];break;case"vtf":var C=_[_.length-1];case"vtc":switch(_[3]){case"nl":M[p][g]=!!+_[4];break;default:M[p][g]=+_[4];break}_[2]=="vtf"&&(M[p][g]=[M[p][g],C])}}}return N&&N.sheetRows&&(M=M.slice(0,N.sheetRows)),M}function a(L,N){return Si(t(L,N),N)}function i(L,N){return Gr(a(L,N),N)}var s=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,c=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),u="--SocialCalcSpreadsheetControlSave--";function w(L){if(!L||!L["!ref"])return"";for(var N=[],A=[],p,g="",O=wi(L["!ref"]),M=Array.isArray(L),_=O.s.r;_<=O.e.r;++_)for(var j=O.s.c;j<=O.e.c;++j)if(g=Ye({r:_,c:j}),p=M?(L[_]||[])[j]:L[g],!(!p||p.v==null||p.t==="z")){switch(A=["cell",g,"t"],p.t){case"s":case"str":A.push(r(p.v));break;case"n":p.f?(A[2]="vtf",A[3]="n",A[4]=p.v,A[5]=r(p.f)):(A[2]="v",A[3]=p.v);break;case"b":A[2]="vt"+(p.f?"f":"c"),A[3]="nl",A[4]=p.v?"1":"0",A[5]=r(p.f||(p.v?"TRUE":"FALSE"));break;case"d":var C=$t(St(p.v));A[2]="vtc",A[3]="nd",A[4]=""+C,A[5]=p.w||dr(p.z||Ke[14],C);break;case"e":continue}N.push(A.join(":"))}return N.push("sheet:c:"+(O.e.c-O.s.c+1)+":r:"+(O.e.r-O.s.r+1)+":tvf:1"),N.push("valueformat:1:text-wiki"),N.join(`
`)}function y(L){return[s,o,c,o,w(L),u].join(`
`)}return{to_workbook:i,to_sheet:a,from_sheet:y}}(),$i=function(){function e(y,L,N,A,p){p.raw?L[N][A]=y:y===""||(y==="TRUE"?L[N][A]=!0:y==="FALSE"?L[N][A]=!1:isNaN(Tr(y))?isNaN(vi(y).getDate())?L[N][A]=y:L[N][A]=St(y):L[N][A]=Tr(y))}function r(y,L){var N=L||{},A=[];if(!y||y.length===0)return A;for(var p=y.split(/[\r\n]/),g=p.length-1;g>=0&&p[g].length===0;)--g;for(var O=10,M=0,_=0;_<=g;++_)M=p[_].indexOf(" "),M==-1?M=p[_].length:M++,O=Math.max(O,M);for(_=0;_<=g;++_){A[_]=[];var j=0;for(e(p[_].slice(0,O).trim(),A,_,j,N),j=1;j<=(p[_].length-O)/10+1;++j)e(p[_].slice(O+(j-1)*10,O+j*10).trim(),A,_,j,N)}return N.sheetRows&&(A=A.slice(0,N.sheetRows)),A}var t={44:",",9:"	",59:";",124:"|"},a={44:3,9:2,59:1,124:0};function i(y){for(var L={},N=!1,A=0,p=0;A<y.length;++A)(p=y.charCodeAt(A))==34?N=!N:!N&&p in t&&(L[p]=(L[p]||0)+1);p=[];for(A in L)Object.prototype.hasOwnProperty.call(L,A)&&p.push([L[A],A]);if(!p.length){L=a;for(A in L)Object.prototype.hasOwnProperty.call(L,A)&&p.push([L[A],A])}return p.sort(function(g,O){return g[0]-O[0]||a[g[1]]-a[O[1]]}),t[p.pop()[1]]||44}function s(y,L){var N=L||{},A="",p=N.dense?[]:{},g={s:{c:0,r:0},e:{c:0,r:0}};y.slice(0,4)=="sep="?y.charCodeAt(5)==13&&y.charCodeAt(6)==10?(A=y.charAt(4),y=y.slice(7)):y.charCodeAt(5)==13||y.charCodeAt(5)==10?(A=y.charAt(4),y=y.slice(6)):A=i(y.slice(0,1024)):N&&N.FS?A=N.FS:A=i(y.slice(0,1024));var O=0,M=0,_=0,j=0,C=0,k=A.charCodeAt(0),F=!1,P=0,I=y.charCodeAt(0);y=y.replace(/\r\n/mg,`
`);var m=N.dateNF!=null?Af(N.dateNF):null;function B(){var T=y.slice(j,C),S={};if(T.charAt(0)=='"'&&T.charAt(T.length-1)=='"'&&(T=T.slice(1,-1).replace(/""/g,'"')),T.length===0)S.t="z";else if(N.raw)S.t="s",S.v=T;else if(T.trim().length===0)S.t="s",S.v=T;else if(T.charCodeAt(0)==61)T.charCodeAt(1)==34&&T.charCodeAt(T.length-1)==34?(S.t="s",S.v=T.slice(2,-1).replace(/""/g,'"')):eg(T)?(S.t="n",S.f=T.slice(1)):(S.t="s",S.v=T);else if(T=="TRUE")S.t="b",S.v=!0;else if(T=="FALSE")S.t="b",S.v=!1;else if(!isNaN(_=Tr(T)))S.t="n",N.cellText!==!1&&(S.w=T),S.v=_;else if(!isNaN(vi(T).getDate())||m&&T.match(m)){S.z=N.dateNF||Ke[14];var x=0;m&&T.match(m)&&(T=Ef(T,N.dateNF,T.match(m)||[]),x=1),N.cellDates?(S.t="d",S.v=St(T,x)):(S.t="n",S.v=$t(St(T,x))),N.cellText!==!1&&(S.w=dr(S.z,S.v instanceof Date?$t(S.v):S.v)),N.cellNF||delete S.z}else S.t="s",S.v=T;if(S.t=="z"||(N.dense?(p[O]||(p[O]=[]),p[O][M]=S):p[Ye({c:M,r:O})]=S),j=C+1,I=y.charCodeAt(j),g.e.c<M&&(g.e.c=M),g.e.r<O&&(g.e.r=O),P==k)++M;else if(M=0,++O,N.sheetRows&&N.sheetRows<=O)return!0}e:for(;C<y.length;++C)switch(P=y.charCodeAt(C)){case 34:I===34&&(F=!F);break;case k:case 10:case 13:if(!F&&B())break e;break}return C-j>0&&B(),p["!ref"]=tt(g),p}function o(y,L){return!(L&&L.PRN)||L.FS||y.slice(0,4)=="sep="||y.indexOf("	")>=0||y.indexOf(",")>=0||y.indexOf(";")>=0?s(y,L):Si(r(y,L),L)}function c(y,L){var N="",A=L.type=="string"?[0,0,0,0]:Is(y,L);switch(L.type){case"base64":N=ar(y);break;case"binary":N=y;break;case"buffer":L.codepage==65001?N=y.toString("utf8"):L.codepage&&typeof Rr<"u"?N=Rr.utils.decode(L.codepage,y):N=Qe&&Buffer.isBuffer(y)?y.toString("binary"):ii(y);break;case"array":N=Jr(y);break;case"string":N=y;break;default:throw new Error("Unrecognized type "+L.type)}return A[0]==239&&A[1]==187&&A[2]==191?N=st(N.slice(3)):L.type!="string"&&L.type!="buffer"&&L.codepage==65001?N=st(N):L.type=="binary"&&typeof Rr<"u"&&L.codepage&&(N=Rr.utils.decode(L.codepage,Rr.utils.encode(28591,N))),N.slice(0,19)=="socialcalc:version:"?pu.to_sheet(L.type=="string"?N:st(N),L):o(N,L)}function u(y,L){return Gr(c(y,L),L)}function w(y){for(var L=[],N=dt(y["!ref"]),A,p=Array.isArray(y),g=N.s.r;g<=N.e.r;++g){for(var O=[],M=N.s.c;M<=N.e.c;++M){var _=Ye({r:g,c:M});if(A=p?(y[g]||[])[M]:y[_],!A||A.v==null){O.push("          ");continue}for(var j=(A.w||(Dr(A),A.w)||"").slice(0,10);j.length<10;)j+=" ";O.push(j+(M===0?" ":""))}L.push(O.join(""))}return L.join(`
`)}return{to_workbook:u,to_sheet:c,from_sheet:w}}();function gu(e,r){var t=r||{},a=!!t.WTF;t.WTF=!0;try{var i=du.to_workbook(e,t);return t.WTF=a,i}catch(s){if(t.WTF=a,!s.message.match(/SYLK bad record ID/)&&a)throw s;return $i.to_workbook(e,r)}}var ji=function(){function e(D,H,z){if(D){Ct(D,D.l||0);for(var W=z.Enum||G;D.l<D.length;){var d=D.read_shift(2),R=W[d]||W[65535],q=D.read_shift(2),J=D.l+q,Y=R.f&&R.f(D,q,z);if(D.l=J,H(Y,R,d))return}}}function r(D,H){switch(H.type){case"base64":return t(mr(ar(D)),H);case"binary":return t(mr(D),H);case"buffer":case"array":return t(D,H)}throw"Unsupported type "+H.type}function t(D,H){if(!D)return D;var z=H||{},W=z.dense?[]:{},d="Sheet1",R="",q=0,J={},Y=[],ee=[],E={s:{r:0,c:0},e:{r:0,c:0}},V=z.sheetRows||0;if(D[2]==0&&(D[3]==8||D[3]==9)&&D.length>=16&&D[14]==5&&D[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(D[2]==2)z.Enum=G,e(D,function(K,ne,oe){switch(oe){case 0:z.vers=K,K>=4096&&(z.qpro=!0);break;case 6:E=K;break;case 204:K&&(R=K);break;case 222:R=K;break;case 15:case 51:z.qpro||(K[1].v=K[1].v.slice(1));case 13:case 14:case 16:oe==14&&(K[2]&112)==112&&(K[2]&15)>1&&(K[2]&15)<15&&(K[1].z=z.dateNF||Ke[14],z.cellDates&&(K[1].t="d",K[1].v=Oa(K[1].v))),z.qpro&&K[3]>q&&(W["!ref"]=tt(E),J[d]=W,Y.push(d),W=z.dense?[]:{},E={s:{r:0,c:0},e:{r:0,c:0}},q=K[3],d=R||"Sheet"+(q+1),R="");var le=z.dense?(W[K[0].r]||[])[K[0].c]:W[Ye(K[0])];if(le){le.t=K[1].t,le.v=K[1].v,K[1].z!=null&&(le.z=K[1].z),K[1].f!=null&&(le.f=K[1].f);break}z.dense?(W[K[0].r]||(W[K[0].r]=[]),W[K[0].r][K[0].c]=K[1]):W[Ye(K[0])]=K[1];break}},z);else if(D[2]==26||D[2]==14)z.Enum=U,D[2]==14&&(z.qpro=!0,D.l=0),e(D,function(K,ne,oe){switch(oe){case 204:d=K;break;case 22:K[1].v=K[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(K[3]>q&&(W["!ref"]=tt(E),J[d]=W,Y.push(d),W=z.dense?[]:{},E={s:{r:0,c:0},e:{r:0,c:0}},q=K[3],d="Sheet"+(q+1)),V>0&&K[0].r>=V)break;z.dense?(W[K[0].r]||(W[K[0].r]=[]),W[K[0].r][K[0].c]=K[1]):W[Ye(K[0])]=K[1],E.e.c<K[0].c&&(E.e.c=K[0].c),E.e.r<K[0].r&&(E.e.r=K[0].r);break;case 27:K[14e3]&&(ee[K[14e3][0]]=K[14e3][1]);break;case 1537:ee[K[0]]=K[1],K[0]==q&&(d=K[1]);break}},z);else throw new Error("Unrecognized LOTUS BOF "+D[2]);if(W["!ref"]=tt(E),J[R||d]=W,Y.push(R||d),!ee.length)return{SheetNames:Y,Sheets:J};for(var X={},Q=[],se=0;se<ee.length;++se)J[Y[se]]?(Q.push(ee[se]||Y[se]),X[ee[se]]=J[ee[se]]||J[Y[se]]):(Q.push(ee[se]),X[ee[se]]={"!ref":"A1"});return{SheetNames:Q,Sheets:X}}function a(D,H){var z=H||{};if(+z.codepage>=0&&vr(+z.codepage),z.type=="string")throw new Error("Cannot write WK1 to JS string");var W=qa(),d=dt(D["!ref"]),R=Array.isArray(D),q=[];xr(W,0,s(1030)),xr(W,6,u(d));for(var J=Math.min(d.e.r,8191),Y=d.s.r;Y<=J;++Y)for(var ee=Dt(Y),E=d.s.c;E<=d.e.c;++E){Y===d.s.r&&(q[E]=Tt(E));var V=q[E]+ee,X=R?(D[Y]||[])[E]:D[V];if(!(!X||X.t=="z"))if(X.t=="n")(X.v|0)==X.v&&X.v>=-32768&&X.v<=32767?xr(W,13,A(Y,E,X.v)):xr(W,14,g(Y,E,X.v));else{var Q=Dr(X);xr(W,15,L(Y,E,Q.slice(0,239)))}}return xr(W,1),W.end()}function i(D,H){var z=H||{};if(+z.codepage>=0&&vr(+z.codepage),z.type=="string")throw new Error("Cannot write WK3 to JS string");var W=qa();xr(W,0,o(D));for(var d=0,R=0;d<D.SheetNames.length;++d)(D.Sheets[D.SheetNames[d]]||{})["!ref"]&&xr(W,27,v(D.SheetNames[d],R++));var q=0;for(d=0;d<D.SheetNames.length;++d){var J=D.Sheets[D.SheetNames[d]];if(!(!J||!J["!ref"])){for(var Y=dt(J["!ref"]),ee=Array.isArray(J),E=[],V=Math.min(Y.e.r,8191),X=Y.s.r;X<=V;++X)for(var Q=Dt(X),se=Y.s.c;se<=Y.e.c;++se){X===Y.s.r&&(E[se]=Tt(se));var K=E[se]+Q,ne=ee?(J[X]||[])[se]:J[K];if(!(!ne||ne.t=="z"))if(ne.t=="n")xr(W,23,B(X,se,q,ne.v));else{var oe=Dr(ne);xr(W,22,P(X,se,q,oe.slice(0,239)))}}++q}}return xr(W,1),W.end()}function s(D){var H=vt(2);return H.write_shift(2,D),H}function o(D){var H=vt(26);H.write_shift(2,4096),H.write_shift(2,4),H.write_shift(4,0);for(var z=0,W=0,d=0,R=0;R<D.SheetNames.length;++R){var q=D.SheetNames[R],J=D.Sheets[q];if(!(!J||!J["!ref"])){++d;var Y=wi(J["!ref"]);z<Y.e.r&&(z=Y.e.r),W<Y.e.c&&(W=Y.e.c)}}return z>8191&&(z=8191),H.write_shift(2,z),H.write_shift(1,d),H.write_shift(1,W),H.write_shift(2,0),H.write_shift(2,0),H.write_shift(1,1),H.write_shift(1,2),H.write_shift(4,0),H.write_shift(4,0),H}function c(D,H,z){var W={s:{c:0,r:0},e:{c:0,r:0}};return H==8&&z.qpro?(W.s.c=D.read_shift(1),D.l++,W.s.r=D.read_shift(2),W.e.c=D.read_shift(1),D.l++,W.e.r=D.read_shift(2),W):(W.s.c=D.read_shift(2),W.s.r=D.read_shift(2),H==12&&z.qpro&&(D.l+=2),W.e.c=D.read_shift(2),W.e.r=D.read_shift(2),H==12&&z.qpro&&(D.l+=2),W.s.c==65535&&(W.s.c=W.e.c=W.s.r=W.e.r=0),W)}function u(D){var H=vt(8);return H.write_shift(2,D.s.c),H.write_shift(2,D.s.r),H.write_shift(2,D.e.c),H.write_shift(2,D.e.r),H}function w(D,H,z){var W=[{c:0,r:0},{t:"n",v:0},0,0];return z.qpro&&z.vers!=20768?(W[0].c=D.read_shift(1),W[3]=D.read_shift(1),W[0].r=D.read_shift(2),D.l+=2):(W[2]=D.read_shift(1),W[0].c=D.read_shift(2),W[0].r=D.read_shift(2)),W}function y(D,H,z){var W=D.l+H,d=w(D,H,z);if(d[1].t="s",z.vers==20768){D.l++;var R=D.read_shift(1);return d[1].v=D.read_shift(R,"utf8"),d}return z.qpro&&D.l++,d[1].v=D.read_shift(W-D.l,"cstr"),d}function L(D,H,z){var W=vt(7+z.length);W.write_shift(1,255),W.write_shift(2,H),W.write_shift(2,D),W.write_shift(1,39);for(var d=0;d<W.length;++d){var R=z.charCodeAt(d);W.write_shift(1,R>=128?95:R)}return W.write_shift(1,0),W}function N(D,H,z){var W=w(D,H,z);return W[1].v=D.read_shift(2,"i"),W}function A(D,H,z){var W=vt(7);return W.write_shift(1,255),W.write_shift(2,H),W.write_shift(2,D),W.write_shift(2,z,"i"),W}function p(D,H,z){var W=w(D,H,z);return W[1].v=D.read_shift(8,"f"),W}function g(D,H,z){var W=vt(13);return W.write_shift(1,255),W.write_shift(2,H),W.write_shift(2,D),W.write_shift(8,z,"f"),W}function O(D,H,z){var W=D.l+H,d=w(D,H,z);if(d[1].v=D.read_shift(8,"f"),z.qpro)D.l=W;else{var R=D.read_shift(2);C(D.slice(D.l,D.l+R),d),D.l+=R}return d}function M(D,H,z){var W=H&32768;return H&=-32769,H=(W?D:0)+(H>=8192?H-16384:H),(W?"":"$")+(z?Tt(H):Dt(H))}var _={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},j=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function C(D,H){Ct(D,0);for(var z=[],W=0,d="",R="",q="",J="";D.l<D.length;){var Y=D[D.l++];switch(Y){case 0:z.push(D.read_shift(8,"f"));break;case 1:R=M(H[0].c,D.read_shift(2),!0),d=M(H[0].r,D.read_shift(2),!1),z.push(R+d);break;case 2:{var ee=M(H[0].c,D.read_shift(2),!0),E=M(H[0].r,D.read_shift(2),!1);R=M(H[0].c,D.read_shift(2),!0),d=M(H[0].r,D.read_shift(2),!1),z.push(ee+E+":"+R+d)}break;case 3:if(D.l<D.length){console.error("WK1 premature formula end");return}break;case 4:z.push("("+z.pop()+")");break;case 5:z.push(D.read_shift(2));break;case 6:{for(var V="";Y=D[D.l++];)V+=String.fromCharCode(Y);z.push('"'+V.replace(/"/g,'""')+'"')}break;case 8:z.push("-"+z.pop());break;case 23:z.push("+"+z.pop());break;case 22:z.push("NOT("+z.pop()+")");break;case 20:case 21:J=z.pop(),q=z.pop(),z.push(["AND","OR"][Y-20]+"("+q+","+J+")");break;default:if(Y<32&&j[Y])J=z.pop(),q=z.pop(),z.push(q+j[Y]+J);else if(_[Y]){if(W=_[Y][1],W==69&&(W=D[D.l++]),W>z.length){console.error("WK1 bad formula parse 0x"+Y.toString(16)+":|"+z.join("|")+"|");return}var X=z.slice(-W);z.length-=W,z.push(_[Y][0]+"("+X.join(",")+")")}else return Y<=7?console.error("WK1 invalid opcode "+Y.toString(16)):Y<=24?console.error("WK1 unsupported op "+Y.toString(16)):Y<=30?console.error("WK1 invalid opcode "+Y.toString(16)):Y<=115?console.error("WK1 unsupported function opcode "+Y.toString(16)):console.error("WK1 unrecognized opcode "+Y.toString(16))}}z.length==1?H[1].f=""+z[0]:console.error("WK1 bad formula parse |"+z.join("|")+"|")}function k(D){var H=[{c:0,r:0},{t:"n",v:0},0];return H[0].r=D.read_shift(2),H[3]=D[D.l++],H[0].c=D[D.l++],H}function F(D,H){var z=k(D);return z[1].t="s",z[1].v=D.read_shift(H-4,"cstr"),z}function P(D,H,z,W){var d=vt(6+W.length);d.write_shift(2,D),d.write_shift(1,z),d.write_shift(1,H),d.write_shift(1,39);for(var R=0;R<W.length;++R){var q=W.charCodeAt(R);d.write_shift(1,q>=128?95:q)}return d.write_shift(1,0),d}function I(D,H){var z=k(D);z[1].v=D.read_shift(2);var W=z[1].v>>1;if(z[1].v&1)switch(W&7){case 0:W=(W>>3)*5e3;break;case 1:W=(W>>3)*500;break;case 2:W=(W>>3)/20;break;case 3:W=(W>>3)/200;break;case 4:W=(W>>3)/2e3;break;case 5:W=(W>>3)/2e4;break;case 6:W=(W>>3)/16;break;case 7:W=(W>>3)/64;break}return z[1].v=W,z}function m(D,H){var z=k(D),W=D.read_shift(4),d=D.read_shift(4),R=D.read_shift(2);if(R==65535)return W===0&&d===3221225472?(z[1].t="e",z[1].v=15):W===0&&d===3489660928?(z[1].t="e",z[1].v=42):z[1].v=0,z;var q=R&32768;return R=(R&32767)-16446,z[1].v=(1-q*2)*(d*Math.pow(2,R+32)+W*Math.pow(2,R)),z}function B(D,H,z,W){var d=vt(14);if(d.write_shift(2,D),d.write_shift(1,z),d.write_shift(1,H),W==0)return d.write_shift(4,0),d.write_shift(4,0),d.write_shift(2,65535),d;var R=0,q=0,J=0,Y=0;return W<0&&(R=1,W=-W),q=Math.log2(W)|0,W/=Math.pow(2,q-31),Y=W>>>0,Y&2147483648||(W/=2,++q,Y=W>>>0),W-=Y,Y|=2147483648,Y>>>=0,W*=Math.pow(2,32),J=W>>>0,d.write_shift(4,J),d.write_shift(4,Y),q+=16383+(R?32768:0),d.write_shift(2,q),d}function T(D,H){var z=m(D);return D.l+=H-14,z}function S(D,H){var z=k(D),W=D.read_shift(4);return z[1].v=W>>6,z}function x(D,H){var z=k(D),W=D.read_shift(8,"f");return z[1].v=W,z}function h(D,H){var z=x(D);return D.l+=H-10,z}function n(D,H){return D[D.l+H-1]==0?D.read_shift(H,"cstr"):""}function l(D,H){var z=D[D.l++];z>H-1&&(z=H-1);for(var W="";W.length<z;)W+=String.fromCharCode(D[D.l++]);return W}function f(D,H,z){if(!(!z.qpro||H<21)){var W=D.read_shift(1);D.l+=17,D.l+=1,D.l+=2;var d=D.read_shift(H-21,"cstr");return[W,d]}}function b(D,H){for(var z={},W=D.l+H;D.l<W;){var d=D.read_shift(2);if(d==14e3){for(z[d]=[0,""],z[d][0]=D.read_shift(2);D[D.l];)z[d][1]+=String.fromCharCode(D[D.l]),D.l++;D.l++}}return z}function v(D,H){var z=vt(5+D.length);z.write_shift(2,14e3),z.write_shift(2,H);for(var W=0;W<D.length;++W){var d=D.charCodeAt(W);z[z.l++]=d>127?95:d}return z[z.l++]=0,z}var G={0:{n:"BOF",f:mt},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:c},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:N},14:{n:"NUMBER",f:p},15:{n:"LABEL",f:y},16:{n:"FORMULA",f:O},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:y},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:n},222:{n:"SHEETNAMELP",f:l},65535:{n:""}},U={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:F},23:{n:"NUMBER17",f:m},24:{n:"NUMBER18",f:I},25:{n:"FORMULA19",f:T},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:b},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:S},38:{n:"??"},39:{n:"NUMBER27",f:x},40:{n:"FORMULA28",f:h},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:n},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:a,book_to_wk3:i,to_workbook:r}}();function xu(e){var r={},t=e.match(jt),a=0,i=!1;if(t)for(;a!=t.length;++a){var s=Xe(t[a]);switch(s[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!s.val)break;case"<shadow>":case"<shadow/>":r.shadow=1;break;case"</shadow>":break;case"<charset":if(s.val=="1")break;r.cp=fs[parseInt(s.val,10)];break;case"<outline":if(!s.val)break;case"<outline>":case"<outline/>":r.outline=1;break;case"</outline>":break;case"<rFont":r.name=s.val;break;case"<sz":r.sz=s.val;break;case"<strike":if(!s.val)break;case"<strike>":case"<strike/>":r.strike=1;break;case"</strike>":break;case"<u":if(!s.val)break;switch(s.val){case"double":r.uval="double";break;case"singleAccounting":r.uval="single-accounting";break;case"doubleAccounting":r.uval="double-accounting";break}case"<u>":case"<u/>":r.u=1;break;case"</u>":break;case"<b":if(s.val=="0")break;case"<b>":case"<b/>":r.b=1;break;case"</b>":break;case"<i":if(s.val=="0")break;case"<i>":case"<i/>":r.i=1;break;case"</i>":break;case"<color":s.rgb&&(r.color=s.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":r.family=s.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":r.valign=s.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":break;case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(s[0].charCodeAt(1)!==47&&!i)throw new Error("Unrecognized rich format "+s[0])}}return r}var mu=function(){var e=Vi("t"),r=Vi("rPr");function t(s){var o=s.match(e);if(!o)return{t:"s",v:""};var c={t:"s",v:rt(o[1])},u=s.match(r);return u&&(c.s=xu(u[1])),c}var a=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(o){return o.replace(a,"").split(i).map(t).filter(function(c){return c.v})}}(),vu=function(){var r=/(\r\n|\n)/g;function t(i,s,o){var c=[];i.u&&c.push("text-decoration: underline;"),i.uval&&c.push("text-underline-style:"+i.uval+";"),i.sz&&c.push("font-size:"+i.sz+"pt;"),i.outline&&c.push("text-effect: outline;"),i.shadow&&c.push("text-shadow: auto;"),s.push('<span style="'+c.join("")+'">'),i.b&&(s.push("<b>"),o.push("</b>")),i.i&&(s.push("<i>"),o.push("</i>")),i.strike&&(s.push("<s>"),o.push("</s>"));var u=i.valign||"";return u=="superscript"||u=="super"?u="sup":u=="subscript"&&(u="sub"),u!=""&&(s.push("<"+u+">"),o.push("</"+u+">")),o.push("</span>"),i}function a(i){var s=[[],i.v,[]];return i.v?(i.s&&t(i.s,s[0],s[2]),s[0].join("")+s[1].replace(r,"<br/>")+s[2].join("")):""}return function(s){return s.map(a).join("")}}(),yu=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Tu=/<(?:\w+:)?r>/,ku=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Cs(e,r){var t=r?r.cellHTML:!0,a={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(a.t=rt(st(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),a.r=st(e),t&&(a.h=vs(a.t))):e.match(Tu)&&(a.r=st(e),a.t=rt(st((e.replace(ku,"").match(yu)||[]).join("").replace(jt,""))),t&&(a.h=vu(mu(a.r)))),a):{t:""}}var bu=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,_u=/<(?:\w+:)?(?:si|sstItem)>/g,wu=/<\/(?:\w+:)?(?:si|sstItem)>/;function Su(e,r){var t=[],a="";if(!e)return t;var i=e.match(bu);if(i){a=i[2].replace(_u,"").split(wu);for(var s=0;s!=a.length;++s){var o=Cs(a[s].trim(),r);o!=null&&(t[t.length]=o)}i=Xe(i[1]),t.Count=i.count,t.Unique=i.uniqueCount}return t}function Au(e){return[e.read_shift(4),e.read_shift(4)]}function Eu(e,r){var t=[],a=!1;return Or(e,function(s,o,c){switch(c){case 159:t.Count=s[0],t.Unique=s[1];break;case 19:t.push(s);break;case 160:return!0;case 35:a=!0;break;case 36:a=!1;break;default:if(o.T,!a||r.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}),t}function ml(e){for(var r=[],t=e.split(""),a=0;a<t.length;++a)r[a]=t[a].charCodeAt(0);return r}function Mr(e,r){var t={};return t.Major=e.read_shift(2),t.Minor=e.read_shift(2),r>=4&&(e.l+=r-4),t}function Cu(e){var r={};return r.id=e.read_shift(0,"lpp4"),r.R=Mr(e,4),r.U=Mr(e,4),r.W=Mr(e,4),r}function Mu(e){for(var r=e.read_shift(4),t=e.l+r-4,a={},i=e.read_shift(4),s=[];i-- >0;)s.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(a.name=e.read_shift(0,"lpp4"),a.comps=s,e.l!=t)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+t);return a}function Du(e){var r=[];e.l+=4;for(var t=e.read_shift(4);t-- >0;)r.push(Mu(e));return r}function Ou(e){var r=[];e.l+=4;for(var t=e.read_shift(4);t-- >0;)r.push(e.read_shift(0,"lpp4"));return r}function Pu(e){var r={};return e.read_shift(4),e.l+=4,r.id=e.read_shift(0,"lpp4"),r.name=e.read_shift(0,"lpp4"),r.R=Mr(e,4),r.U=Mr(e,4),r.W=Mr(e,4),r}function Fu(e){var r=Pu(e);if(r.ename=e.read_shift(0,"8lpp4"),r.blksz=e.read_shift(4),r.cmode=e.read_shift(4),e.read_shift(4)!=4)throw new Error("Bad !Primary record");return r}function vl(e,r){var t=e.l+r,a={};a.Flags=e.read_shift(4)&63,e.l+=4,a.AlgID=e.read_shift(4);var i=!1;switch(a.AlgID){case 26126:case 26127:case 26128:i=a.Flags==36;break;case 26625:i=a.Flags==4;break;case 0:i=a.Flags==16||a.Flags==4||a.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return a.AlgIDHash=e.read_shift(4),a.KeySize=e.read_shift(4),a.ProviderType=e.read_shift(4),e.l+=8,a.CSPName=e.read_shift(t-e.l>>1,"utf16le"),e.l=t,a}function yl(e,r){var t={},a=e.l+r;return e.l+=4,t.Salt=e.slice(e.l,e.l+16),e.l+=16,t.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),t.VerifierHash=e.slice(e.l,a),e.l=a,t}function Lu(e){var r=Mr(e);switch(r.Minor){case 2:return[r.Minor,Iu(e)];case 3:return[r.Minor,Ru()];case 4:return[r.Minor,Bu(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+r.Minor)}function Iu(e){var r=e.read_shift(4);if((r&63)!=36)throw new Error("EncryptionInfo mismatch");var t=e.read_shift(4),a=vl(e,t),i=yl(e,e.length-e.l);return{t:"Std",h:a,v:i}}function Ru(){throw new Error("File is password-protected: ECMA-376 Extensible")}function Bu(e){var r=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var t=e.read_shift(e.length-e.l,"utf8"),a={};return t.replace(jt,function(s){var o=Xe(s);switch(wr(o[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":r.forEach(function(c){a[c]=o[c]});break;case"<dataIntegrity":a.encryptedHmacKey=o.encryptedHmacKey,a.encryptedHmacValue=o.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":a.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":a.uri=o.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":a.encs.push(o);break;default:throw o[0]}}),a}function Nu(e,r){var t={},a=t.EncryptionVersionInfo=Mr(e,4);if(r-=4,a.Minor!=2)throw new Error("unrecognized minor version code: "+a.Minor);if(a.Major>4||a.Major<2)throw new Error("unrecognized major version code: "+a.Major);t.Flags=e.read_shift(4),r-=4;var i=e.read_shift(4);return r-=4,t.EncryptionHeader=vl(e,i),r-=i,t.EncryptionVerifier=yl(e,r),t}function ju(e){var r={},t=r.EncryptionVersionInfo=Mr(e,4);if(t.Major!=1||t.Minor!=1)throw"unrecognized version code "+t.Major+" : "+t.Minor;return r.Salt=e.read_shift(16),r.EncryptedVerifier=e.read_shift(16),r.EncryptedVerifierHash=e.read_shift(16),r}function Uu(e){var r=0,t,a=ml(e),i=a.length+1,s,o,c,u,w;for(t=Hr(i),t[0]=a.length,s=1;s!=i;++s)t[s]=a[s-1];for(s=i-1;s>=0;--s)o=t[s],c=r&16384?1:0,u=r<<1&32767,w=c|u,r=w^o;return r^52811}var Tl=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],r=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],t=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],a=function(o){return(o/2|o*128)&255},i=function(o,c){return a(o^c)},s=function(o){for(var c=r[o.length-1],u=104,w=o.length-1;w>=0;--w)for(var y=o[w],L=0;L!=7;++L)y&64&&(c^=t[u]),y*=2,--u;return c};return function(o){for(var c=ml(o),u=s(c),w=c.length,y=Hr(16),L=0;L!=16;++L)y[L]=0;var N,A,p;for((w&1)===1&&(N=u>>8,y[w]=i(e[0],N),--w,N=u&255,A=c[c.length-1],y[w]=i(A,N));w>0;)--w,N=u>>8,y[w]=i(c[w],N),--w,N=u&255,y[w]=i(c[w],N);for(w=15,p=15-c.length;p>0;)N=u>>8,y[w]=i(e[p],N),--w,--p,N=u&255,y[w]=i(c[w],N),--w,--p;return y}}(),Hu=function(e,r,t,a,i){i||(i=r),a||(a=Tl(e));var s,o;for(s=0;s!=r.length;++s)o=r[s],o^=a[t],o=(o>>5|o<<3)&255,i[s]=o,++t;return[i,t,a]},Wu=function(e){var r=0,t=Tl(e);return function(a){var i=Hu("",a,r,t);return r=i[1],i[0]}};function zu(e,r,t,a){var i={key:mt(e),verificationBytes:mt(e)};return t.password&&(i.verifier=Uu(t.password)),a.valid=i.verificationBytes===i.verifier,a.valid&&(a.insitu=Wu(t.password)),i}function Gu(e,r,t){var a=t||{};return a.Info=e.read_shift(2),e.l-=2,a.Info===1?a.Data=ju(e):a.Data=Nu(e,r),a}function Xu(e,r,t){var a={Type:t.biff>=8?e.read_shift(2):0};return a.Type?Gu(e,r-2,a):zu(e,t.biff>=8?r:r-2,t,a),a}var Vu=function(){function e(i,s){switch(s.type){case"base64":return r(ar(i),s);case"binary":return r(i,s);case"buffer":return r(Qe&&Buffer.isBuffer(i)?i.toString("binary"):ii(i),s);case"array":return r(Jr(i),s)}throw new Error("Unrecognized type "+s.type)}function r(i,s){var o=s||{},c=o.dense?[]:{},u=i.match(/\\trowd.*?\\row\b/g);if(!u.length)throw new Error("RTF missing table");var w={s:{c:0,r:0},e:{c:0,r:u.length-1}};return u.forEach(function(y,L){Array.isArray(c)&&(c[L]=[]);for(var N=/\\\w+\b/g,A=0,p,g=-1;p=N.exec(y);){switch(p[0]){case"\\cell":var O=y.slice(A,N.lastIndex-p[0].length);if(O[0]==" "&&(O=O.slice(1)),++g,O.length){var M={v:O,t:"s"};Array.isArray(c)?c[L][g]=M:c[Ye({r:L,c:g})]=M}break}A=N.lastIndex}g>w.e.c&&(w.e.c=g)}),c["!ref"]=tt(w),c}function t(i,s){return Gr(e(i,s),s)}function a(i){for(var s=["{\\rtf1\\ansi"],o=dt(i["!ref"]),c,u=Array.isArray(i),w=o.s.r;w<=o.e.r;++w){s.push("\\trowd\\trautofit1");for(var y=o.s.c;y<=o.e.c;++y)s.push("\\cellx"+(y+1));for(s.push("\\pard\\intbl"),y=o.s.c;y<=o.e.c;++y){var L=Ye({r:w,c:y});c=u?(i[w]||[])[y]:i[L],!(!c||c.v==null&&(!c.f||c.F))&&(s.push(" "+(c.w||(Dr(c),c.w))),s.push("\\cell"))}s.push("\\pard\\intbl\\row")}return s.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:a}}();function Yu(e){var r=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}function Ki(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().slice(1)}function $u(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255,i=Math.max(r,t,a),s=Math.min(r,t,a),o=i-s;if(o===0)return[0,0,r];var c=0,u=0,w=i+s;switch(u=o/(w>1?2-w:w),i){case r:c=((t-a)/o+6)%6;break;case t:c=(a-r)/o+2;break;case a:c=(r-t)/o+4;break}return[c/6,u,w/2]}function Ku(e){var r=e[0],t=e[1],a=e[2],i=t*2*(a<.5?a:1-a),s=a-i/2,o=[s,s,s],c=6*r,u;if(t!==0)switch(c|0){case 0:case 6:u=i*c,o[0]+=i,o[1]+=u;break;case 1:u=i*(2-c),o[0]+=u,o[1]+=i;break;case 2:u=i*(c-2),o[1]+=i,o[2]+=u;break;case 3:u=i*(4-c),o[1]+=u,o[2]+=i;break;case 4:u=i*(c-4),o[2]+=i,o[0]+=u;break;case 5:u=i*(6-c),o[2]+=u,o[0]+=i;break}for(var w=0;w!=3;++w)o[w]=Math.round(o[w]*255);return o}function ba(e,r){if(r===0)return e;var t=$u(Yu(e));return r<0?t[2]=t[2]*(1+r):t[2]=1-(1-t[2])*(1-r),Ki(Ku(t))}var kl=6,qu=15,Zu=1,zt=kl;function _a(e){return Math.floor((e+Math.round(128/zt)/256)*zt)}function wa(e){return Math.floor((e-5)/zt*100+.5)/100}function es(e){return Math.round((e*zt+5)/zt*256)/256}function Ga(e){return es(wa(_a(e)))}function Ms(e){var r=Math.abs(e-Ga(e)),t=zt;if(r>.005)for(zt=Zu;zt<qu;++zt)Math.abs(e-Ga(e))<=r&&(r=Math.abs(e-Ga(e)),t=zt);zt=t}function yi(e){e.width?(e.wpx=_a(e.width),e.wch=wa(e.wpx),e.MDW=zt):e.wpx?(e.wch=wa(e.wpx),e.width=es(e.wch),e.MDW=zt):typeof e.wch=="number"&&(e.width=es(e.wch),e.wpx=_a(e.width),e.MDW=zt),e.customWidth&&delete e.customWidth}var Ju=96,bl=Ju;function _l(e){return e*96/bl}function qi(e){return e*bl/96}var Qu={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function ep(e,r,t,a){r.Borders=[];var i={},s=!1;(e[0].match(jt)||[]).forEach(function(o){var c=Xe(o);switch(wr(c[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":i={},c.diagonalUp&&(i.diagonalUp=nt(c.diagonalUp)),c.diagonalDown&&(i.diagonalDown=nt(c.diagonalDown)),r.Borders.push(i);break;case"</border>":break;case"<left/>":break;case"<left":case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":case"<bottom>":break;case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":break;case"</vertical>":break;case"<start":case"<start>":case"<start/>":break;case"</start>":break;case"<end":case"<end>":case"<end/>":break;case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":s=!0;break;case"</ext>":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+c[0]+" in borders")}})}function tp(e,r,t,a){r.Fills=[];var i={},s=!1;(e[0].match(jt)||[]).forEach(function(o){var c=Xe(o);switch(wr(c[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":i={},r.Fills.push(i);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":r.Fills.push(i),i={};break;case"<patternFill":case"<patternFill>":c.patternType&&(i.patternType=c.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":i.bgColor||(i.bgColor={}),c.indexed&&(i.bgColor.indexed=parseInt(c.indexed,10)),c.theme&&(i.bgColor.theme=parseInt(c.theme,10)),c.tint&&(i.bgColor.tint=parseFloat(c.tint)),c.rgb&&(i.bgColor.rgb=c.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":i.fgColor||(i.fgColor={}),c.theme&&(i.fgColor.theme=parseInt(c.theme,10)),c.tint&&(i.fgColor.tint=parseFloat(c.tint)),c.rgb!=null&&(i.fgColor.rgb=c.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":break;case"</stop>":break;case"<color":case"<color/>":break;case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":s=!0;break;case"</ext>":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+c[0]+" in fills")}})}function rp(e,r,t,a){r.Fonts=[];var i={},s=!1;(e[0].match(jt)||[]).forEach(function(o){var c=Xe(o);switch(wr(c[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":r.Fonts.push(i),i={};break;case"<name":c.val&&(i.name=st(c.val));break;case"<name/>":case"</name>":break;case"<b":i.bold=c.val?nt(c.val):1;break;case"<b/>":i.bold=1;break;case"<i":i.italic=c.val?nt(c.val):1;break;case"<i/>":i.italic=1;break;case"<u":switch(c.val){case"none":i.underline=0;break;case"single":i.underline=1;break;case"double":i.underline=2;break;case"singleAccounting":i.underline=33;break;case"doubleAccounting":i.underline=34;break}break;case"<u/>":i.underline=1;break;case"<strike":i.strike=c.val?nt(c.val):1;break;case"<strike/>":i.strike=1;break;case"<outline":i.outline=c.val?nt(c.val):1;break;case"<outline/>":i.outline=1;break;case"<shadow":i.shadow=c.val?nt(c.val):1;break;case"<shadow/>":i.shadow=1;break;case"<condense":i.condense=c.val?nt(c.val):1;break;case"<condense/>":i.condense=1;break;case"<extend":i.extend=c.val?nt(c.val):1;break;case"<extend/>":i.extend=1;break;case"<sz":c.val&&(i.sz=+c.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":c.val&&(i.vertAlign=c.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":c.val&&(i.family=parseInt(c.val,10));break;case"<family/>":case"</family>":break;case"<scheme":c.val&&(i.scheme=c.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(c.val=="1")break;c.codepage=fs[parseInt(c.val,10)];break;case"<color":if(i.color||(i.color={}),c.auto&&(i.color.auto=nt(c.auto)),c.rgb)i.color.rgb=c.rgb.slice(-6);else if(c.indexed){i.color.index=parseInt(c.indexed,10);var u=qr[i.color.index];i.color.index==81&&(u=qr[1]),u||(u=qr[1]),i.color.rgb=u[0].toString(16)+u[1].toString(16)+u[2].toString(16)}else c.theme&&(i.color.theme=parseInt(c.theme,10),c.tint&&(i.color.tint=parseFloat(c.tint)),c.theme&&t.themeElements&&t.themeElements.clrScheme&&(i.color.rgb=ba(t.themeElements.clrScheme[i.color.theme].rgb,i.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":s=!0;break;case"</AlternateContent>":s=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":s=!0;break;case"</ext>":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+c[0]+" in fonts")}})}function ip(e,r,t){r.NumberFmt=[];for(var a=_r(Ke),i=0;i<a.length;++i)r.NumberFmt[a[i]]=Ke[a[i]];var s=e[0].match(jt);if(s)for(i=0;i<s.length;++i){var o=Xe(s[i]);switch(wr(o[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var c=rt(st(o.formatCode)),u=parseInt(o.numFmtId,10);if(r.NumberFmt[u]=c,u>0){if(u>392){for(u=392;u>60&&r.NumberFmt[u]!=null;--u);r.NumberFmt[u]=c}Kr(c,u)}}break;case"</numFmt>":break;default:if(t.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}var da=["numFmtId","fillId","fontId","borderId","xfId"],ua=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function ap(e,r,t){r.CellXf=[];var a,i=!1;(e[0].match(jt)||[]).forEach(function(s){var o=Xe(s),c=0;switch(wr(o[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(a=o,delete a[0],c=0;c<da.length;++c)a[da[c]]&&(a[da[c]]=parseInt(a[da[c]],10));for(c=0;c<ua.length;++c)a[ua[c]]&&(a[ua[c]]=nt(a[ua[c]]));if(r.NumberFmt&&a.numFmtId>392){for(c=392;c>60;--c)if(r.NumberFmt[a.numFmtId]==r.NumberFmt[c]){a.numFmtId=c;break}}r.CellXf.push(a);break;case"</xf>":break;case"<alignment":case"<alignment/>":var u={};o.vertical&&(u.vertical=o.vertical),o.horizontal&&(u.horizontal=o.horizontal),o.textRotation!=null&&(u.textRotation=o.textRotation),o.indent&&(u.indent=o.indent),o.wrapText&&(u.wrapText=nt(o.wrapText)),a.alignment=u;break;case"</alignment>":break;case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":i=!0;break;case"</AlternateContent>":i=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(t&&t.WTF&&!i)throw new Error("unrecognized "+o[0]+" in cellXfs")}})}var sp=function(){var r=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,a=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,i=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,s=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(c,u,w){var y={};if(!c)return y;c=c.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");var L;return(L=c.match(r))&&ip(L,y,w),(L=c.match(i))&&rp(L,y,u,w),(L=c.match(a))&&tp(L,y,u,w),(L=c.match(s))&&ep(L,y,u,w),(L=c.match(t))&&ap(L,y,w),y}}();function np(e,r){var t=e.read_shift(2),a=Bt(e);return[t,a]}function op(e,r,t){var a={};a.sz=e.read_shift(2)/20;var i=m0(e);i.fItalic&&(a.italic=1),i.fCondense&&(a.condense=1),i.fExtend&&(a.extend=1),i.fShadow&&(a.shadow=1),i.fOutline&&(a.outline=1),i.fStrikeout&&(a.strike=1);var s=e.read_shift(2);switch(s===700&&(a.bold=1),e.read_shift(2)){case 1:a.vertAlign="superscript";break;case 2:a.vertAlign="subscript";break}var o=e.read_shift(1);o!=0&&(a.underline=o);var c=e.read_shift(1);c>0&&(a.family=c);var u=e.read_shift(1);switch(u>0&&(a.charset=u),e.l++,a.color=x0(e),e.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor";break}return a.name=Bt(e),a}var lp=Nt;function cp(e,r){var t=e.l+r,a=e.read_shift(2),i=e.read_shift(2);return e.l=t,{ixfe:a,numFmtId:i}}var hp=Nt;function fp(e,r,t){var a={};a.NumberFmt=[];for(var i in Ke)a.NumberFmt[i]=Ke[i];a.CellXf=[],a.Fonts=[];var s=[],o=!1;return Or(e,function(u,w,y){switch(y){case 44:a.NumberFmt[u[0]]=u[1],Kr(u[1],u[0]);break;case 43:a.Fonts.push(u),u.color.theme!=null&&r&&r.themeElements&&r.themeElements.clrScheme&&(u.color.rgb=ba(r.themeElements.clrScheme[u.color.theme].rgb,u.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:s[s.length-1]==617&&a.CellXf.push(u);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:s.push(y),o=!0;break;case 38:s.pop(),o=!1;break;default:if(w.T>0)s.push(y);else if(w.T<0)s.pop();else if(!o||t.WTF&&s[s.length-1]!=37)throw new Error("Unexpected record 0x"+y.toString(16))}}),a}var dp=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function up(e,r,t){r.themeElements.clrScheme=[];var a={};(e[0].match(jt)||[]).forEach(function(i){var s=Xe(i);switch(s[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":a.rgb=s.val;break;case"<a:sysClr":a.rgb=s.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":s[0].charAt(1)==="/"?(r.themeElements.clrScheme[dp.indexOf(s[0])]=a,a={}):a.name=s[0].slice(3,s[0].length-1);break;default:if(t&&t.WTF)throw new Error("Unrecognized "+s[0]+" in clrScheme")}})}function pp(){}function gp(){}var xp=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,mp=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,vp=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function yp(e,r,t){r.themeElements={};var a;[["clrScheme",xp,up],["fontScheme",mp,pp],["fmtScheme",vp,gp]].forEach(function(i){if(!(a=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](a,r,t)})}var Tp=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function wl(e,r){(!e||e.length===0)&&(e=kp());var t,a={};if(!(t=e.match(Tp)))throw new Error("themeElements not found in theme");return yp(t[0],a,r),a.raw=e,a}function kp(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var t=[Io];return t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',t[t.length]="<a:themeElements>",t[t.length]='<a:clrScheme name="Office">',t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',t[t.length]="</a:clrScheme>",t[t.length]='<a:fontScheme name="Office">',t[t.length]="<a:majorFont>",t[t.length]='<a:latin typeface="Cambria"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>',t[t.length]='<a:font script="Hans" typeface="宋体"/>',t[t.length]='<a:font script="Hant" typeface="新細明體"/>',t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>',t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Times New Roman"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:majorFont>",t[t.length]="<a:minorFont>",t[t.length]='<a:latin typeface="Calibri"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>',t[t.length]='<a:font script="Hans" typeface="宋体"/>',t[t.length]='<a:font script="Hant" typeface="新細明體"/>',t[t.length]='<a:font script="Arab" typeface="Arial"/>',t[t.length]='<a:font script="Hebr" typeface="Arial"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="DaunPenh"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Arial"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:minorFont>",t[t.length]="</a:fontScheme>",t[t.length]='<a:fmtScheme name="Office">',t[t.length]="<a:fillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="1"/>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="0"/>',t[t.length]="</a:gradFill>",t[t.length]="</a:fillStyleLst>",t[t.length]="<a:lnStyleLst>",t[t.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]="</a:lnStyleLst>",t[t.length]="<a:effectStyleLst>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',t[t.length]="</a:effectStyle>",t[t.length]="</a:effectStyleLst>",t[t.length]="<a:bgFillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]="</a:bgFillStyleLst>",t[t.length]="</a:fmtScheme>",t[t.length]="</a:themeElements>",t[t.length]="<a:objectDefaults>",t[t.length]="<a:spDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',t[t.length]="</a:spDef>",t[t.length]="<a:lnDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',t[t.length]="</a:lnDef>",t[t.length]="</a:objectDefaults>",t[t.length]="<a:extraClrSchemeLst/>",t[t.length]="</a:theme>",t.join("")}function bp(e,r,t){var a=e.l+r,i=e.read_shift(4);if(i!==124226){if(!t.cellStyles){e.l=a;return}var s=e.slice(e.l);e.l=a;var o;try{o=Lo(s,{type:"array"})}catch{return}var c=ir(o,"theme/theme/theme1.xml",!0);if(c)return wl(c,t)}}function _p(e){return e.read_shift(4)}function wp(e){var r={};switch(r.xclrType=e.read_shift(2),r.nTintShade=e.read_shift(2),r.xclrType){case 0:e.l+=4;break;case 1:r.xclrValue=Sp(e,4);break;case 2:r.xclrValue=hl(e);break;case 3:r.xclrValue=_p(e);break;case 4:e.l+=4;break}return e.l+=8,r}function Sp(e,r){return Nt(e,r)}function Ap(e,r){return Nt(e,r)}function Ep(e){var r=e.read_shift(2),t=e.read_shift(2)-4,a=[r];switch(r){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:a[1]=wp(e);break;case 6:a[1]=Ap(e,t);break;case 14:case 15:a[1]=e.read_shift(t===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+r+" "+t)}return a}function Cp(e,r){var t=e.l+r;e.l+=2;var a=e.read_shift(2);e.l+=2;for(var i=e.read_shift(2),s=[];i-- >0;)s.push(Ep(e,t-e.l));return{ixfe:a,ext:s}}function Mp(e,r){r.forEach(function(t){switch(t[0]){}})}function Dp(e,r){return{flags:e.read_shift(4),version:e.read_shift(4),name:Bt(e)}}function Op(e){for(var r=[],t=e.read_shift(4);t-- >0;)r.push([e.read_shift(4),e.read_shift(4)]);return r}function Pp(e){return e.l+=4,e.read_shift(4)!=0}function Fp(e,r,t){var a={Types:[],Cell:[],Value:[]},i=t||{},s=[],o=!1,c=2;return Or(e,function(u,w,y){switch(y){case 335:a.Types.push({name:u.name});break;case 51:u.forEach(function(L){c==1?a.Cell.push({type:a.Types[L[0]-1].name,index:L[1]}):c==0&&a.Value.push({type:a.Types[L[0]-1].name,index:L[1]})});break;case 337:c=u?1:0;break;case 338:c=2;break;case 35:s.push(y),o=!0;break;case 36:s.pop(),o=!1;break;default:if(!w.T){if(!o||i.WTF&&s[s.length-1]!=35)throw new Error("Unexpected record 0x"+y.toString(16))}}}),a}function Lp(e,r,t){var a={Types:[],Cell:[],Value:[]};if(!e)return a;var i=!1,s=2,o;return e.replace(jt,function(c){var u=Xe(c);switch(wr(u[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":a.Types.push({name:u.name});break;case"</metadataType>":break;case"<futureMetadata":for(var w=0;w<a.Types.length;++w)a.Types[w].name==u.name&&(o=a.Types[w]);break;case"</futureMetadata>":break;case"<bk>":break;case"</bk>":break;case"<rc":s==1?a.Cell.push({type:a.Types[u.t-1].name,index:+u.v}):s==0&&a.Value.push({type:a.Types[u.t-1].name,index:+u.v});break;case"</rc>":break;case"<cellMetadata":s=1;break;case"</cellMetadata>":s=2;break;case"<valueMetadata":s=0;break;case"</valueMetadata>":s=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;case"<rvb":if(!o)break;o.offsets||(o.offsets=[]),o.offsets.push(+u.i);break;default:if(!i&&t.WTF)throw new Error("unrecognized "+u[0]+" in metadata")}return c}),a}function Ip(e){var r=[];if(!e)return r;var t=1;return(e.match(jt)||[]).forEach(function(a){var i=Xe(a);switch(i[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete i[0],i.i?t=i.i:i.i=t,r.push(i);break}}),r}function Rp(e){var r={};r.i=e.read_shift(4);var t={};t.r=e.read_shift(4),t.c=e.read_shift(4),r.r=Ye(t);var a=e.read_shift(1);return a&2&&(r.l="1"),a&8&&(r.a="1"),r}function Bp(e,r,t){var a=[];return Or(e,function(s,o,c){switch(c){case 63:a.push(s);break;default:if(!o.T)throw new Error("Unexpected record 0x"+c.toString(16))}}),a}function Np(e,r,t,a){if(!e)return e;var i=a||{},s=!1;Or(e,function(c,u,w){switch(w){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:s=!0;break;case 36:s=!1;break;default:if(!u.T){if(!s||i.WTF)throw new Error("Unexpected record 0x"+w.toString(16))}}},i)}function jp(e,r){if(!e)return"??";var t=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return r["!id"][t].Target}function Bn(e,r,t,a){var i=Array.isArray(e),s;r.forEach(function(o){var c=Vt(o.ref);if(i?(e[c.r]||(e[c.r]=[]),s=e[c.r][c.c]):s=e[o.ref],!s){s={t:"z"},i?e[c.r][c.c]=s:e[o.ref]=s;var u=dt(e["!ref"]||"BDWGO1000001:A1");u.s.r>c.r&&(u.s.r=c.r),u.e.r<c.r&&(u.e.r=c.r),u.s.c>c.c&&(u.s.c=c.c),u.e.c<c.c&&(u.e.c=c.c);var w=tt(u);w!==e["!ref"]&&(e["!ref"]=w)}s.c||(s.c=[]);var y={a:o.author,t:o.t,r:o.r,T:t};o.h&&(y.h=o.h);for(var L=s.c.length-1;L>=0;--L){if(!t&&s.c[L].T)return;t&&!s.c[L].T&&s.c.splice(L,1)}if(t&&a){for(L=0;L<a.length;++L)if(y.a==a[L].id){y.a=a[L].name||y.a;break}}s.c.push(y)})}function Up(e,r){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var t=[],a=[],i=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach(function(o){if(!(o===""||o.trim()==="")){var c=o.match(/<(?:\w+:)?author[^>]*>(.*)/);c&&t.push(c[1])}});var s=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return s&&s[1]&&s[1].split(/<\/\w*:?comment>/).forEach(function(o){if(!(o===""||o.trim()==="")){var c=o.match(/<(?:\w+:)?comment[^>]*>/);if(c){var u=Xe(c[0]),w={author:u.authorId&&t[u.authorId]||"sheetjsghost",ref:u.ref,guid:u.guid},y=Vt(u.ref);if(!(r.sheetRows&&r.sheetRows<=y.r)){var L=o.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),N=!!L&&!!L[1]&&Cs(L[1])||{r:"",t:"",h:""};w.r=N.r,N.r=="<t></t>"&&(N.t=N.h=""),w.t=(N.t||"").replace(/\r\n/g,`
`).replace(/\r/g,`
`),r.cellHTML&&(w.h=N.h),a.push(w)}}}}),a}function Hp(e,r){var t=[],a=!1,i={},s=0;return e.replace(jt,function(c,u){var w=Xe(c);switch(wr(w[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":i={author:w.personId,guid:w.id,ref:w.ref,T:1};break;case"</threadedComment>":i.t!=null&&t.push(i);break;case"<text>":case"<text":s=u+c.length;break;case"</text>":i.t=e.slice(s,u).replace(/\r\n/g,`
`).replace(/\r/g,`
`);break;case"<mentions":case"<mentions>":a=!0;break;case"</mentions>":a=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(!a&&r.WTF)throw new Error("unrecognized "+w[0]+" in threaded comments")}return c}),t}function Wp(e,r){var t=[],a=!1;return e.replace(jt,function(s){var o=Xe(s);switch(wr(o[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":t.push({name:o.displayname,id:o.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(!a&&r.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return s}),t}function zp(e){var r={};r.iauthor=e.read_shift(4);var t=si(e);return r.rfx=t.s,r.ref=Ye(t.s),e.l+=16,r}var Gp=Bt;function Xp(e,r){var t=[],a=[],i={},s=!1;return Or(e,function(c,u,w){switch(w){case 632:a.push(c);break;case 635:i=c;break;case 637:i.t=c.t,i.h=c.h,i.r=c.r;break;case 636:if(i.author=a[i.iauthor],delete i.iauthor,r.sheetRows&&i.rfx&&r.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,t.push(i);break;case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:break;case 38:break;default:if(!u.T){if(!s||r.WTF)throw new Error("Unexpected record 0x"+w.toString(16))}}}),t}var Vp="application/vnd.ms-office.vbaProject";function Yp(e){var r=et.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(t,a){if(!(t.slice(-1)==="/"||!t.match(/_VBA_PROJECT_CUR/))){var i=t.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");et.utils.cfb_add(r,i,e.FileIndex[a].content)}}),et.write(r)}function $p(){return{"!type":"dialog"}}function Kp(){return{"!type":"dialog"}}function qp(){return{"!type":"macro"}}function Zp(){return{"!type":"macro"}}var xi=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,r={r:0,c:0};function t(a,i,s,o){var c=!1,u=!1;s.length==0?u=!0:s.charAt(0)=="["&&(u=!0,s=s.slice(1,-1)),o.length==0?c=!0:o.charAt(0)=="["&&(c=!0,o=o.slice(1,-1));var w=s.length>0?parseInt(s,10)|0:0,y=o.length>0?parseInt(o,10)|0:0;return c?y+=r.c:--y,u?w+=r.r:--w,i+(c?"":"$")+Tt(y)+(u?"":"$")+Dt(w)}return function(i,s){return r=s,i.replace(e,t)}}(),Sl=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Jp=function(){return function(r,t){return r.replace(Sl,function(a,i,s,o,c,u){var w=bs(o)-(s?0:t.c),y=ks(u)-(c?0:t.r),L=y==0?"":c?y+1:"["+y+"]",N=w==0?"":s?w+1:"["+w+"]";return i+"R"+L+"C"+N})}}();function Al(e,r){return e.replace(Sl,function(t,a,i,s,o,c){return a+(i=="$"?i+s:Tt(bs(s)+r.c))+(o=="$"?o+c:Dt(ks(c)+r.r))})}function Qp(e,r,t){var a=wi(r),i=a.s,s=Vt(t),o={r:s.r-i.r,c:s.c-i.c};return Al(e,o)}function eg(e){return e.length!=1}function Nn(e){return e.replace(/_xlfn\./g,"")}function gt(e){e.l+=1}function Wr(e,r){var t=e.read_shift(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function El(e,r,t){var a=2;if(t){if(t.biff>=2&&t.biff<=5)return Cl(e);t.biff==12&&(a=4)}var i=e.read_shift(a),s=e.read_shift(a),o=Wr(e,2),c=Wr(e,2);return{s:{r:i,c:o[0],cRel:o[1],rRel:o[2]},e:{r:s,c:c[0],cRel:c[1],rRel:c[2]}}}function Cl(e){var r=Wr(e,2),t=Wr(e,2),a=e.read_shift(1),i=e.read_shift(1);return{s:{r:r[0],c:a,cRel:r[1],rRel:r[2]},e:{r:t[0],c:i,cRel:t[1],rRel:t[2]}}}function tg(e,r,t){if(t.biff<8)return Cl(e);var a=e.read_shift(t.biff==12?4:2),i=e.read_shift(t.biff==12?4:2),s=Wr(e,2),o=Wr(e,2);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}function Ml(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return rg(e);var a=e.read_shift(t&&t.biff==12?4:2),i=Wr(e,2);return{r:a,c:i[0],cRel:i[1],rRel:i[2]}}function rg(e){var r=Wr(e,2),t=e.read_shift(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function ig(e){var r=e.read_shift(2),t=e.read_shift(2);return{r,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}function ag(e,r,t){var a=t&&t.biff?t.biff:8;if(a>=2&&a<=5)return sg(e);var i=e.read_shift(a>=12?4:2),s=e.read_shift(2),o=(s&16384)>>14,c=(s&32768)>>15;if(s&=16383,c==1)for(;i>524287;)i-=1048576;if(o==1)for(;s>8191;)s=s-16384;return{r:i,c:s,cRel:o,rRel:c}}function sg(e){var r=e.read_shift(2),t=e.read_shift(1),a=(r&32768)>>15,i=(r&16384)>>14;return r&=16383,a==1&&r>=8192&&(r=r-16384),i==1&&t>=128&&(t=t-256),{r,c:t,cRel:i,rRel:a}}function ng(e,r,t){var a=(e[e.l++]&96)>>5,i=El(e,t.biff>=2&&t.biff<=5?6:8,t);return[a,i]}function og(e,r,t){var a=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),s=8;if(t)switch(t.biff){case 5:e.l+=12,s=6;break;case 12:s=12;break}var o=El(e,s,t);return[a,i,o]}function lg(e,r,t){var a=(e[e.l++]&96)>>5;return e.l+=t&&t.biff>8?12:t.biff<8?6:8,[a]}function cg(e,r,t){var a=(e[e.l++]&96)>>5,i=e.read_shift(2),s=8;if(t)switch(t.biff){case 5:e.l+=12,s=6;break;case 12:s=12;break}return e.l+=s,[a,i]}function hg(e,r,t){var a=(e[e.l++]&96)>>5,i=tg(e,r-1,t);return[a,i]}function fg(e,r,t){var a=(e[e.l++]&96)>>5;return e.l+=t.biff==2?6:t.biff==12?14:7,[a]}function jn(e){var r=e[e.l+1]&1,t=1;return e.l+=4,[r,t]}function dg(e,r,t){e.l+=2;for(var a=e.read_shift(t&&t.biff==2?1:2),i=[],s=0;s<=a;++s)i.push(e.read_shift(t&&t.biff==2?1:2));return i}function ug(e,r,t){var a=e[e.l+1]&255?1:0;return e.l+=2,[a,e.read_shift(t&&t.biff==2?1:2)]}function pg(e,r,t){var a=e[e.l+1]&255?1:0;return e.l+=2,[a,e.read_shift(t&&t.biff==2?1:2)]}function gg(e){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(2)]}function xg(e,r,t){var a=e[e.l+1]&255?1:0;return e.l+=t&&t.biff==2?3:4,[a]}function Dl(e){var r=e.read_shift(1),t=e.read_shift(1);return[r,t]}function mg(e){return e.read_shift(2),Dl(e)}function vg(e){return e.read_shift(2),Dl(e)}function yg(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var i=Ml(e,0,t);return[a,i]}function Tg(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var i=ag(e,0,t);return[a,i]}function kg(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);t&&t.biff==5&&(e.l+=12);var s=Ml(e,0,t);return[a,i,s]}function bg(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(t&&t.biff<=3?1:2);return[_x[i],Fl[i],a]}function _g(e,r,t){var a=e[e.l++],i=e.read_shift(1),s=t&&t.biff<=3?[a==88?-1:0,e.read_shift(1)]:wg(e);return[i,(s[0]===0?Fl:bx)[s[1]]]}function wg(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function Sg(e,r,t){e.l+=t&&t.biff==2?3:4}function Ag(e,r,t){if(e.l++,t&&t.biff==12)return[e.read_shift(4,"i"),0];var a=e.read_shift(2),i=e.read_shift(t&&t.biff==2?1:2);return[a,i]}function Eg(e){return e.l++,ni[e.read_shift(1)]}function Cg(e){return e.l++,e.read_shift(2)}function Mg(e){return e.l++,e.read_shift(1)!==0}function Dg(e){return e.l++,It(e)}function Og(e,r,t){return e.l++,ta(e,r-1,t)}function Pg(e,r){var t=[e.read_shift(1)];if(r==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break}switch(t[0]){case 4:t[1]=ut(e,1)?"TRUE":"FALSE",r!=12&&(e.l+=7);break;case 37:case 16:t[1]=ni[e[e.l]],e.l+=r==12?4:8;break;case 0:e.l+=8;break;case 1:t[1]=It(e);break;case 2:t[1]=oi(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function Fg(e,r,t){for(var a=e.read_shift(t.biff==12?4:2),i=[],s=0;s!=a;++s)i.push((t.biff==12?si:Pa)(e));return i}function Lg(e,r,t){var a=0,i=0;t.biff==12?(a=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),a=1+e.read_shift(2)),t.biff>=2&&t.biff<8&&(--a,--i==0&&(i=256));for(var s=0,o=[];s!=a&&(o[s]=[]);++s)for(var c=0;c!=i;++c)o[s][c]=Pg(e,t.biff);return o}function Ig(e,r,t){var a=e.read_shift(1)>>>5&3,i=!t||t.biff>=8?4:2,s=e.read_shift(i);switch(t.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[a,0,s]}function Rg(e,r,t){if(t.biff==5)return Bg(e);var a=e.read_shift(1)>>>5&3,i=e.read_shift(2),s=e.read_shift(4);return[a,i,s]}function Bg(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2,"i");e.l+=8;var a=e.read_shift(2);return e.l+=12,[r,t,a]}function Ng(e,r,t){var a=e.read_shift(1)>>>5&3;e.l+=t&&t.biff==2?3:4;var i=e.read_shift(t&&t.biff==2?1:2);return[a,i]}function jg(e,r,t){var a=e.read_shift(1)>>>5&3,i=e.read_shift(t&&t.biff==2?1:2);return[a,i]}function Ug(e,r,t){var a=e.read_shift(1)>>>5&3;return e.l+=4,t.biff<8&&e.l--,t.biff==12&&(e.l+=2),[a]}function Hg(e,r,t){var a=(e[e.l++]&96)>>5,i=e.read_shift(2),s=4;if(t)switch(t.biff){case 5:s=15;break;case 12:s=6;break}return e.l+=s,[a,i]}var Wg=Nt,zg=Nt,Gg=Nt;function ia(e,r,t){return e.l+=2,[ig(e)]}function Ds(e){return e.l+=6,[]}var Xg=ia,Vg=Ds,Yg=Ds,$g=ia;function Ol(e){return e.l+=2,[mt(e),e.read_shift(2)&1]}var Kg=ia,qg=Ol,Zg=Ds,Jg=ia,Qg=ia,ex=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function tx(e){e.l+=2;var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(4),i=e.read_shift(2),s=e.read_shift(2),o=ex[t>>2&31];return{ixti:r,coltype:t&3,rt:o,idx:a,c:i,C:s}}function rx(e){return e.l+=2,[e.read_shift(4)]}function ix(e,r,t){return e.l+=5,e.l+=2,e.l+=t.biff==2?1:4,["PTGSHEET"]}function ax(e,r,t){return e.l+=t.biff==2?4:5,["PTGENDSHEET"]}function sx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function nx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function ox(e){return e.l+=4,[0,0]}var Un={1:{n:"PtgExp",f:Ag},2:{n:"PtgTbl",f:Gg},3:{n:"PtgAdd",f:gt},4:{n:"PtgSub",f:gt},5:{n:"PtgMul",f:gt},6:{n:"PtgDiv",f:gt},7:{n:"PtgPower",f:gt},8:{n:"PtgConcat",f:gt},9:{n:"PtgLt",f:gt},10:{n:"PtgLe",f:gt},11:{n:"PtgEq",f:gt},12:{n:"PtgGe",f:gt},13:{n:"PtgGt",f:gt},14:{n:"PtgNe",f:gt},15:{n:"PtgIsect",f:gt},16:{n:"PtgUnion",f:gt},17:{n:"PtgRange",f:gt},18:{n:"PtgUplus",f:gt},19:{n:"PtgUminus",f:gt},20:{n:"PtgPercent",f:gt},21:{n:"PtgParen",f:gt},22:{n:"PtgMissArg",f:gt},23:{n:"PtgStr",f:Og},26:{n:"PtgSheet",f:ix},27:{n:"PtgEndSheet",f:ax},28:{n:"PtgErr",f:Eg},29:{n:"PtgBool",f:Mg},30:{n:"PtgInt",f:Cg},31:{n:"PtgNum",f:Dg},32:{n:"PtgArray",f:fg},33:{n:"PtgFunc",f:bg},34:{n:"PtgFuncVar",f:_g},35:{n:"PtgName",f:Ig},36:{n:"PtgRef",f:yg},37:{n:"PtgArea",f:ng},38:{n:"PtgMemArea",f:Ng},39:{n:"PtgMemErr",f:Wg},40:{n:"PtgMemNoMem",f:zg},41:{n:"PtgMemFunc",f:jg},42:{n:"PtgRefErr",f:Ug},43:{n:"PtgAreaErr",f:lg},44:{n:"PtgRefN",f:Tg},45:{n:"PtgAreaN",f:hg},46:{n:"PtgMemAreaN",f:sx},47:{n:"PtgMemNoMemN",f:nx},57:{n:"PtgNameX",f:Rg},58:{n:"PtgRef3d",f:kg},59:{n:"PtgArea3d",f:og},60:{n:"PtgRefErr3d",f:Hg},61:{n:"PtgAreaErr3d",f:cg},255:{}},lx={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},cx={1:{n:"PtgElfLel",f:Ol},2:{n:"PtgElfRw",f:Jg},3:{n:"PtgElfCol",f:Xg},6:{n:"PtgElfRwV",f:Qg},7:{n:"PtgElfColV",f:$g},10:{n:"PtgElfRadical",f:Kg},11:{n:"PtgElfRadicalS",f:Zg},13:{n:"PtgElfColS",f:Vg},15:{n:"PtgElfColSV",f:Yg},16:{n:"PtgElfRadicalLel",f:qg},25:{n:"PtgList",f:tx},29:{n:"PtgSxName",f:rx},255:{}},hx={0:{n:"PtgAttrNoop",f:ox},1:{n:"PtgAttrSemi",f:xg},2:{n:"PtgAttrIf",f:pg},4:{n:"PtgAttrChoose",f:dg},8:{n:"PtgAttrGoto",f:ug},16:{n:"PtgAttrSum",f:Sg},32:{n:"PtgAttrBaxcel",f:jn},33:{n:"PtgAttrBaxcel",f:jn},64:{n:"PtgAttrSpace",f:mg},65:{n:"PtgAttrSpaceSemi",f:vg},128:{n:"PtgAttrIfError",f:gg},255:{}};function aa(e,r,t,a){if(a.biff<8)return Nt(e,r);for(var i=e.l+r,s=[],o=0;o!==t.length;++o)switch(t[o][0]){case"PtgArray":t[o][1]=Lg(e,0,a),s.push(t[o][1]);break;case"PtgMemArea":t[o][2]=Fg(e,t[o][1],a),s.push(t[o][2]);break;case"PtgExp":a&&a.biff==12&&(t[o][1][1]=e.read_shift(4),s.push(t[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+t[o][0]}return r=i-e.l,r!==0&&s.push(Nt(e,r)),s}function sa(e,r,t){for(var a=e.l+r,i,s,o=[];a!=e.l;)r=a-e.l,s=e[e.l],i=Un[s]||Un[lx[s]],(s===24||s===25)&&(i=(s===24?cx:hx)[e[e.l+1]]),!i||!i.f?Nt(e,r):o.push([i.n,i.f(e,r,t)]);return o}function fx(e){for(var r=[],t=0;t<e.length;++t){for(var a=e[t],i=[],s=0;s<a.length;++s){var o=a[s];if(o)switch(o[0]){case 2:i.push('"'+o[1].replace(/"/g,'""')+'"');break;default:i.push(o[1])}else i.push("")}r.push(i.join(","))}return r.join(";")}var dx={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function ux(e,r){if(!e&&!(r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function Pl(e,r,t){if(!e)return"SH33TJSERR0";if(t.biff>8&&(!e.XTI||!e.XTI[r]))return e.SheetNames[r];if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[r];if(t.biff<8)return r>1e4&&(r-=65536),r<0&&(r=-r),r==0?"":e.XTI[r-1];if(!a)return"SH33TJSERR1";var i="";if(t.biff>8)switch(e[a[0]][0]){case 357:return i=a[1]==-1?"#REF":e.SheetNames[a[1]],a[1]==a[2]?i:i+":"+e.SheetNames[a[2]];case 358:return t.SID!=null?e.SheetNames[t.SID]:"SH33TJSSAME"+e[a[0]][0];case 355:default:return"SH33TJSSRC"+e[a[0]][0]}switch(e[a[0]][0][0]){case 1025:return i=a[1]==-1?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3",a[1]==a[2]?i:i+":"+e.SheetNames[a[2]];case 14849:return e[a[0]].slice(1).map(function(s){return s.Name}).join(";;");default:return e[a[0]][0][3]?(i=a[1]==-1?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4",a[1]==a[2]?i:i+":"+e[a[0]][0][3][a[2]]):"SH33TJSERR2"}}function Hn(e,r,t){var a=Pl(e,r,t);return a=="#REF"?a:ux(a,t)}function Lt(e,r,t,a,i){var s=i&&i.biff||8,o={s:{c:0,r:0},e:{c:0,r:0}},c=[],u,w,y,L=0,N=0,A,p="";if(!e[0]||!e[0][0])return"";for(var g=-1,O="",M=0,_=e[0].length;M<_;++M){var j=e[0][M];switch(j[0]){case"PtgUminus":c.push("-"+c.pop());break;case"PtgUplus":c.push("+"+c.pop());break;case"PtgPercent":c.push(c.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(u=c.pop(),w=c.pop(),g>=0){switch(e[0][g][1][0]){case 0:O=ht(" ",e[0][g][1][1]);break;case 1:O=ht("\r",e[0][g][1][1]);break;default:if(O="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][g][1][0])}w=w+O,g=-1}c.push(w+dx[j[0]]+u);break;case"PtgIsect":u=c.pop(),w=c.pop(),c.push(w+" "+u);break;case"PtgUnion":u=c.pop(),w=c.pop(),c.push(w+","+u);break;case"PtgRange":u=c.pop(),w=c.pop(),c.push(w+":"+u);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":y=Ii(j[1][1],o,i),c.push(Ri(y,s));break;case"PtgRefN":y=t?Ii(j[1][1],t,i):j[1][1],c.push(Ri(y,s));break;case"PtgRef3d":L=j[1][1],y=Ii(j[1][2],o,i),p=Hn(a,L,i),c.push(p+"!"+Ri(y,s));break;case"PtgFunc":case"PtgFuncVar":var C=j[1][0],k=j[1][1];C||(C=0),C&=127;var F=C==0?[]:c.slice(-C);c.length-=C,k==="User"&&(k=F.shift()),c.push(k+"("+F.join(",")+")");break;case"PtgBool":c.push(j[1]?"TRUE":"FALSE");break;case"PtgInt":c.push(j[1]);break;case"PtgNum":c.push(String(j[1]));break;case"PtgStr":c.push('"'+j[1].replace(/"/g,'""')+'"');break;case"PtgErr":c.push(j[1]);break;case"PtgAreaN":A=kn(j[1][1],t?{s:t}:o,i),c.push(Wa(A,i));break;case"PtgArea":A=kn(j[1][1],o,i),c.push(Wa(A,i));break;case"PtgArea3d":L=j[1][1],A=j[1][2],p=Hn(a,L,i),c.push(p+"!"+Wa(A,i));break;case"PtgAttrSum":c.push("SUM("+c.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":N=j[1][2];var P=(a.names||[])[N-1]||(a[0]||[])[N],I=P?P.Name:"SH33TJSNAME"+String(N);I&&I.slice(0,6)=="_xlfn."&&!i.xlfn&&(I=I.slice(6)),c.push(I);break;case"PtgNameX":var m=j[1][1];N=j[1][2];var B;if(i.biff<=5)m<0&&(m=-m),a[m]&&(B=a[m][N]);else{var T="";if(((a[m]||[])[0]||[])[0]==14849||(((a[m]||[])[0]||[])[0]==1025?a[m][N]&&a[m][N].itab>0&&(T=a.SheetNames[a[m][N].itab-1]+"!"):T=a.SheetNames[N-1]+"!"),a[m]&&a[m][N])T+=a[m][N].Name;else if(a[0]&&a[0][N])T+=a[0][N].Name;else{var S=(Pl(a,m,i)||"").split(";;");S[N-1]?T=S[N-1]:T+="SH33TJSERRX"}c.push(T);break}B||(B={Name:"SH33TJSERRY"}),c.push(B.Name);break;case"PtgParen":var x="(",h=")";if(g>=0){switch(O="",e[0][g][1][0]){case 2:x=ht(" ",e[0][g][1][1])+x;break;case 3:x=ht("\r",e[0][g][1][1])+x;break;case 4:h=ht(" ",e[0][g][1][1])+h;break;case 5:h=ht("\r",e[0][g][1][1])+h;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][g][1][0])}g=-1}c.push(x+c.pop()+h);break;case"PtgRefErr":c.push("#REF!");break;case"PtgRefErr3d":c.push("#REF!");break;case"PtgExp":y={c:j[1][1],r:j[1][0]};var n={c:t.c,r:t.r};if(a.sharedf[Ye(y)]){var l=a.sharedf[Ye(y)];c.push(Lt(l,o,n,a,i))}else{var f=!1;for(u=0;u!=a.arrayf.length;++u)if(w=a.arrayf[u],!(y.c<w[0].s.c||y.c>w[0].e.c)&&!(y.r<w[0].s.r||y.r>w[0].e.r)){c.push(Lt(w[1],o,n,a,i)),f=!0;break}f||c.push(j[1])}break;case"PtgArray":c.push("{"+fx(j[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=M;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":c.push("");break;case"PtgAreaErr":c.push("#REF!");break;case"PtgAreaErr3d":c.push("#REF!");break;case"PtgList":c.push("Table"+j[1].idx+"[#"+j[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(j));default:throw new Error("Unrecognized Formula Token: "+String(j))}var b=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&g>=0&&b.indexOf(e[0][M][0])==-1){j=e[0][g];var v=!0;switch(j[1][0]){case 4:v=!1;case 0:O=ht(" ",j[1][1]);break;case 5:v=!1;case 1:O=ht("\r",j[1][1]);break;default:if(O="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+j[1][0])}c.push((v?O:"")+c.pop()+(v?"":O)),g=-1}}if(c.length>1&&i.WTF)throw new Error("bad formula stack");return c[0]}function px(e,r,t){var a=e.l+r,i=t.biff==2?1:2,s,o=e.read_shift(i);if(o==65535)return[[],Nt(e,r-2)];var c=sa(e,o,t);return r!==o+i&&(s=aa(e,r-o-i,c,t)),e.l=a,[c,s]}function gx(e,r,t){var a=e.l+r,i=t.biff==2?1:2,s,o=e.read_shift(i);if(o==65535)return[[],Nt(e,r-2)];var c=sa(e,o,t);return r!==o+i&&(s=aa(e,r-o-i,c,t)),e.l=a,[c,s]}function xx(e,r,t,a){var i=e.l+r,s=sa(e,a,t),o;return i!==e.l&&(o=aa(e,i-e.l,s,t)),[s,o]}function mx(e,r,t){var a=e.l+r,i,s=e.read_shift(2),o=sa(e,s,t);return s==65535?[[],Nt(e,r-2)]:(r!==s+2&&(i=aa(e,a-s-2,o,t)),[o,i])}function vx(e){var r;if(Er(e,e.l+6)!==65535)return[It(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return r=e[e.l+2]===1,e.l+=8,[r,"b"];case 2:return r=e[e.l+2],e.l+=8,[r,"e"];case 3:return e.l+=8,["","s"]}return[]}function Xa(e,r,t){var a=e.l+r,i=Sr(e);t.biff==2&&++e.l;var s=vx(e),o=e.read_shift(1);t.biff!=2&&(e.read_shift(1),t.biff>=5&&e.read_shift(4));var c=gx(e,a-e.l,t);return{cell:i,val:s[0],formula:c,shared:o>>3&1,tt:s[1]}}function Fa(e,r,t){var a=e.read_shift(4),i=sa(e,a,t),s=e.read_shift(4),o=s>0?aa(e,s,i,t):null;return[i,o]}var yx=Fa,La=Fa,Tx=Fa,kx=Fa,bx={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Fl={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},_x={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Wn(e){return e.slice(0,3)=="of:"&&(e=e.slice(3)),e.charCodeAt(0)==61&&(e=e.slice(1),e.charCodeAt(0)==61&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(r,t){return t.replace(/\./g,"")}),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function Va(e){var r=e.split(":"),t=r[0].split(".")[0];return[t,r[0].split(".")[1]+(r.length>1?":"+(r[1].split(".")[1]||r[1].split(".")[0]):"")]}var Ui={},mi={};function Hi(e,r){if(e){var t=[.7,.7,.75,.75,.3,.3];r=="xlml"&&(t=[1,1,1,1,.5,.5]),e.left==null&&(e.left=t[0]),e.right==null&&(e.right=t[1]),e.top==null&&(e.top=t[2]),e.bottom==null&&(e.bottom=t[3]),e.header==null&&(e.header=t[4]),e.footer==null&&(e.footer=t[5])}}function Ll(e,r,t,a,i,s){try{a.cellNF&&(e.z=Ke[r])}catch(c){if(a.WTF)throw c}if(!(e.t==="z"&&!a.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=St(e.v)),(!a||a.cellText!==!1)&&e.t!=="z")try{if(Ke[r]==null&&Kr(Sf[r]||"General",r),e.t==="e")e.w=e.w||ni[e.v];else if(r===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Xi(e.v);else if(e.t==="d"){var o=$t(e.v);(o|0)===o?e.w=o.toString(10):e.w=Xi(o)}else{if(e.v===void 0)return"";e.w=Zr(e.v,mi)}else e.t==="d"?e.w=dr(r,$t(e.v),mi):e.w=dr(r,e.v,mi)}catch(c){if(a.WTF)throw c}if(a.cellStyles&&t!=null)try{e.s=s.Fills[t],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=ba(i.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),a.WTF&&(e.s.fgColor.raw_rgb=i.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=ba(i.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),a.WTF&&(e.s.bgColor.raw_rgb=i.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(c){if(a.WTF&&s.Fills)throw c}}}function wx(e,r){var t=dt(r);t.s.r<=t.e.r&&t.s.c<=t.e.c&&t.s.r>=0&&t.s.c>=0&&(e["!ref"]=tt(t))}var Sx=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,Ax=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Ex=/<(?:\w:)?hyperlink [^>]*>/mg,Cx=/"(\w*:\w*)"/,Mx=/<(?:\w:)?col\b[^>]*[\/]?>/g,Dx=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,Ox=/<(?:\w:)?pageMargins[^>]*\/>/g,Il=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Px=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Fx=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Lx(e,r,t,a,i,s,o){if(!e)return e;a||(a={"!id":{}});var c=r.dense?[]:{},u={s:{r:2e6,c:2e6},e:{r:0,c:0}},w="",y="",L=e.match(Ax);L?(w=e.slice(0,L.index),y=e.slice(L.index+L[0].length)):w=y=e;var N=w.match(Il);N?Os(N[0],c,i,t):(N=w.match(Px))&&Ix(N[0],N[1]||"",c,i,t);var A=(w.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(A>0){var p=w.slice(A,A+50).match(Cx);p&&wx(c,p[1])}var g=w.match(Fx);g&&g[1]&&Hx(g[1],i);var O=[];if(r.cellStyles){var M=w.match(Mx);M&&Nx(O,M)}L&&Wx(L[1],c,r,u,s,o);var _=y.match(Dx);_&&(c["!autofilter"]=jx(_[0]));var j=[],C=y.match(Sx);if(C)for(A=0;A!=C.length;++A)j[A]=dt(C[A].slice(C[A].indexOf('"')+1));var k=y.match(Ex);k&&Rx(c,k,a);var F=y.match(Ox);if(F&&(c["!margins"]=Bx(Xe(F[0]))),!c["!ref"]&&u.e.c>=u.s.c&&u.e.r>=u.s.r&&(c["!ref"]=tt(u)),r.sheetRows>0&&c["!ref"]){var P=dt(c["!ref"]);r.sheetRows<=+P.e.r&&(P.e.r=r.sheetRows-1,P.e.r>u.e.r&&(P.e.r=u.e.r),P.e.r<P.s.r&&(P.s.r=P.e.r),P.e.c>u.e.c&&(P.e.c=u.e.c),P.e.c<P.s.c&&(P.s.c=P.e.c),c["!fullref"]=c["!ref"],c["!ref"]=tt(P))}return O.length>0&&(c["!cols"]=O),j.length>0&&(c["!merges"]=j),c}function Os(e,r,t,a){var i=Xe(e);t.Sheets[a]||(t.Sheets[a]={}),i.codeName&&(t.Sheets[a].CodeName=rt(st(i.codeName)))}function Ix(e,r,t,a,i){Os(e.slice(0,e.indexOf(">")),t,a,i)}function Rx(e,r,t){for(var a=Array.isArray(e),i=0;i!=r.length;++i){var s=Xe(st(r[i]),!0);if(!s.ref)return;var o=((t||{})["!id"]||[])[s.id];o?(s.Target=o.Target,s.location&&(s.Target+="#"+rt(s.location))):(s.Target="#"+rt(s.location),o={Target:s.Target,TargetMode:"Internal"}),s.Rel=o,s.tooltip&&(s.Tooltip=s.tooltip,delete s.tooltip);for(var c=dt(s.ref),u=c.s.r;u<=c.e.r;++u)for(var w=c.s.c;w<=c.e.c;++w){var y=Ye({c:w,r:u});a?(e[u]||(e[u]=[]),e[u][w]||(e[u][w]={t:"z",v:void 0}),e[u][w].l=s):(e[y]||(e[y]={t:"z",v:void 0}),e[y].l=s)}}}function Bx(e){var r={};return["left","right","top","bottom","header","footer"].forEach(function(t){e[t]&&(r[t]=parseFloat(e[t]))}),r}function Nx(e,r){for(var t=!1,a=0;a!=r.length;++a){var i=Xe(r[a],!0);i.hidden&&(i.hidden=nt(i.hidden));var s=parseInt(i.min,10)-1,o=parseInt(i.max,10)-1;for(i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!t&&i.width&&(t=!0,Ms(i.width)),yi(i);s<=o;)e[s++]=Mt(i)}}function jx(e){var r={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return r}var Ux=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function Hx(e,r){r.Views||(r.Views=[{}]),(e.match(Ux)||[]).forEach(function(t,a){var i=Xe(t);r.Views[a]||(r.Views[a]={}),+i.zoomScale&&(r.Views[a].zoom=+i.zoomScale),nt(i.rightToLeft)&&(r.Views[a].RTL=!0)})}var Wx=function(){var e=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/,t=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,s=Vi("v"),o=Vi("f");return function(u,w,y,L,N,A){for(var p=0,g="",O=[],M=[],_=0,j=0,C=0,k="",F,P,I=0,m=0,B,T,S=0,x=0,h=Array.isArray(A.CellXf),n,l=[],f=[],b=Array.isArray(w),v=[],G={},U=!1,D=!!y.sheetStubs,H=u.split(r),z=0,W=H.length;z!=W;++z){g=H[z].trim();var d=g.length;if(d!==0){var R=0;e:for(p=0;p<d;++p)switch(g[p]){case">":if(g[p-1]!="/"){++p;break e}if(y&&y.cellStyles){if(P=Xe(g.slice(R,p),!0),I=P.r!=null?parseInt(P.r,10):I+1,m=-1,y.sheetRows&&y.sheetRows<I)continue;G={},U=!1,P.ht&&(U=!0,G.hpt=parseFloat(P.ht),G.hpx=qi(G.hpt)),P.hidden=="1"&&(U=!0,G.hidden=!0),P.outlineLevel!=null&&(U=!0,G.level=+P.outlineLevel),U&&(v[I-1]=G)}break;case"<":R=p;break}if(R>=p)break;if(P=Xe(g.slice(R,p),!0),I=P.r!=null?parseInt(P.r,10):I+1,m=-1,!(y.sheetRows&&y.sheetRows<I)){L.s.r>I-1&&(L.s.r=I-1),L.e.r<I-1&&(L.e.r=I-1),y&&y.cellStyles&&(G={},U=!1,P.ht&&(U=!0,G.hpt=parseFloat(P.ht),G.hpx=qi(G.hpt)),P.hidden=="1"&&(U=!0,G.hidden=!0),P.outlineLevel!=null&&(U=!0,G.level=+P.outlineLevel),U&&(v[I-1]=G)),O=g.slice(p).split(e);for(var q=0;q!=O.length&&O[q].trim().charAt(0)=="<";++q);for(O=O.slice(q),p=0;p!=O.length;++p)if(g=O[p].trim(),g.length!==0){if(M=g.match(t),_=p,j=0,C=0,g="<c "+(g.slice(0,1)=="<"?">":"")+g,M!=null&&M.length===2){for(_=0,k=M[1],j=0;j!=k.length&&!((C=k.charCodeAt(j)-64)<1||C>26);++j)_=26*_+C;--_,m=_}else++m;for(j=0;j!=g.length&&g.charCodeAt(j)!==62;++j);if(++j,P=Xe(g.slice(0,j),!0),P.r||(P.r=Ye({r:I-1,c:m})),k=g.slice(j),F={t:""},(M=k.match(s))!=null&&M[1]!==""&&(F.v=rt(M[1])),y.cellFormula){if((M=k.match(o))!=null&&M[1]!==""){if(F.f=rt(st(M[1])).replace(/\r\n/g,`
`),y.xlfn||(F.f=Nn(F.f)),M[0].indexOf('t="array"')>-1)F.F=(k.match(i)||[])[1],F.F.indexOf(":")>-1&&l.push([dt(F.F),F.F]);else if(M[0].indexOf('t="shared"')>-1){T=Xe(M[0]);var J=rt(st(M[1]));y.xlfn||(J=Nn(J)),f[parseInt(T.si,10)]=[T,J,P.r]}}else(M=k.match(/<f[^>]*\/>/))&&(T=Xe(M[0]),f[T.si]&&(F.f=Qp(f[T.si][1],f[T.si][2],P.r)));var Y=Vt(P.r);for(j=0;j<l.length;++j)Y.r>=l[j][0].s.r&&Y.r<=l[j][0].e.r&&Y.c>=l[j][0].s.c&&Y.c<=l[j][0].e.c&&(F.F=l[j][1])}if(P.t==null&&F.v===void 0)if(F.f||F.F)F.v=0,F.t="n";else if(D)F.t="z";else continue;else F.t=P.t||"n";switch(L.s.c>m&&(L.s.c=m),L.e.c<m&&(L.e.c=m),F.t){case"n":if(F.v==""||F.v==null){if(!D)continue;F.t="z"}else F.v=parseFloat(F.v);break;case"s":if(typeof F.v>"u"){if(!D)continue;F.t="z"}else B=Ui[parseInt(F.v,10)],F.v=B.t,F.r=B.r,y.cellHTML&&(F.h=B.h);break;case"str":F.t="s",F.v=F.v!=null?st(F.v):"",y.cellHTML&&(F.h=vs(F.v));break;case"inlineStr":M=k.match(a),F.t="s",M!=null&&(B=Cs(M[1]))?(F.v=B.t,y.cellHTML&&(F.h=B.h)):F.v="";break;case"b":F.v=nt(F.v);break;case"d":y.cellDates?F.v=St(F.v,1):(F.v=$t(St(F.v,1)),F.t="n");break;case"e":(!y||y.cellText!==!1)&&(F.w=F.v),F.v=rl[F.v];break}if(S=x=0,n=null,h&&P.s!==void 0&&(n=A.CellXf[P.s],n!=null&&(n.numFmtId!=null&&(S=n.numFmtId),y.cellStyles&&n.fillId!=null&&(x=n.fillId))),Ll(F,S,x,y,N,A),y.cellDates&&h&&F.t=="n"&&_i(Ke[S])&&(F.t="d",F.v=Oa(F.v)),P.cm&&y.xlmeta){var ee=(y.xlmeta.Cell||[])[+P.cm-1];ee&&ee.type=="XLDAPR"&&(F.D=!0)}if(b){var E=Vt(P.r);w[E.r]||(w[E.r]=[]),w[E.r][E.c]=F}else w[P.r]=F}}}}v.length>0&&(w["!rows"]=v)}}();function zx(e,r){var t={},a=e.l+r;t.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var s=e.read_shift(1);return e.l=a,s&7&&(t.level=s&7),s&16&&(t.hidden=!0),s&32&&(t.hpt=i/20),t}var Gx=si;function Xx(){}function Vx(e,r){var t={},a=e[e.l];return++e.l,t.above=!(a&64),t.left=!(a&128),e.l+=18,t.name=p0(e),t}function Yx(e){var r=pr(e);return[r]}function $x(e){var r=ai(e);return[r]}function Kx(e){var r=pr(e),t=e.read_shift(1);return[r,t,"b"]}function qx(e){var r=ai(e),t=e.read_shift(1);return[r,t,"b"]}function Zx(e){var r=pr(e),t=e.read_shift(1);return[r,t,"e"]}function Jx(e){var r=ai(e),t=e.read_shift(1);return[r,t,"e"]}function Qx(e){var r=pr(e),t=e.read_shift(4);return[r,t,"s"]}function em(e){var r=ai(e),t=e.read_shift(4);return[r,t,"s"]}function tm(e){var r=pr(e),t=It(e);return[r,t,"n"]}function Rl(e){var r=ai(e),t=It(e);return[r,t,"n"]}function rm(e){var r=pr(e),t=Ss(e);return[r,t,"n"]}function im(e){var r=ai(e),t=Ss(e);return[r,t,"n"]}function am(e){var r=pr(e),t=_s(e);return[r,t,"is"]}function sm(e){var r=pr(e),t=Bt(e);return[r,t,"str"]}function nm(e){var r=ai(e),t=Bt(e);return[r,t,"str"]}function om(e,r,t){var a=e.l+r,i=pr(e);i.r=t["!row"];var s=e.read_shift(1),o=[i,s,"b"];if(t.cellFormula){e.l+=2;var c=La(e,a-e.l,t);o[3]=Lt(c,null,i,t.supbooks,t)}else e.l=a;return o}function lm(e,r,t){var a=e.l+r,i=pr(e);i.r=t["!row"];var s=e.read_shift(1),o=[i,s,"e"];if(t.cellFormula){e.l+=2;var c=La(e,a-e.l,t);o[3]=Lt(c,null,i,t.supbooks,t)}else e.l=a;return o}function cm(e,r,t){var a=e.l+r,i=pr(e);i.r=t["!row"];var s=It(e),o=[i,s,"n"];if(t.cellFormula){e.l+=2;var c=La(e,a-e.l,t);o[3]=Lt(c,null,i,t.supbooks,t)}else e.l=a;return o}function hm(e,r,t){var a=e.l+r,i=pr(e);i.r=t["!row"];var s=Bt(e),o=[i,s,"str"];if(t.cellFormula){e.l+=2;var c=La(e,a-e.l,t);o[3]=Lt(c,null,i,t.supbooks,t)}else e.l=a;return o}var fm=si;function dm(e,r){var t=e.l+r,a=si(e),i=ws(e),s=Bt(e),o=Bt(e),c=Bt(e);e.l=t;var u={rfx:a,relId:i,loc:s,display:c};return o&&(u.Tooltip=o),u}function um(){}function pm(e,r,t){var a=e.l+r,i=Qo(e),s=e.read_shift(1),o=[i];if(o[2]=s,t.cellFormula){var c=yx(e,a-e.l,t);o[1]=c}else e.l=a;return o}function gm(e,r,t){var a=e.l+r,i=si(e),s=[i];if(t.cellFormula){var o=kx(e,a-e.l,t);s[1]=o,e.l=a}else e.l=a;return s}var xm=["left","right","top","bottom","header","footer"];function mm(e){var r={};return xm.forEach(function(t){r[t]=It(e)}),r}function vm(e){var r=e.read_shift(2);return e.l+=28,{RTL:r&32}}function ym(){}function Tm(){}function km(e,r,t,a,i,s,o){if(!e)return e;var c=r||{};a||(a={"!id":{}});var u=c.dense?[]:{},w,y={s:{r:2e6,c:2e6},e:{r:0,c:0}},L=!1,N=!1,A,p,g,O,M,_,j,C,k,F=[];c.biff=12,c["!row"]=0;var P=0,I=!1,m=[],B={},T=c.supbooks||i.supbooks||[[]];if(T.sharedf=B,T.arrayf=m,T.SheetNames=i.SheetNames||i.Sheets.map(function(b){return b.name}),!c.supbooks&&(c.supbooks=T,i.Names))for(var S=0;S<i.Names.length;++S)T[0][S+1]=i.Names[S];var x=[],h=[],n=!1;Sa[16]={n:"BrtShortReal",f:Rl};var l;if(Or(e,function(v,G,U){if(!N)switch(U){case 148:w=v;break;case 0:A=v,c.sheetRows&&c.sheetRows<=A.r&&(N=!0),C=Dt(O=A.r),c["!row"]=A.r,(v.hidden||v.hpt||v.level!=null)&&(v.hpt&&(v.hpx=qi(v.hpt)),h[v.r]=v);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(p={t:v[2]},v[2]){case"n":p.v=v[1];break;case"s":j=Ui[v[1]],p.v=j.t,p.r=j.r;break;case"b":p.v=!!v[1];break;case"e":p.v=v[1],c.cellText!==!1&&(p.w=ni[p.v]);break;case"str":p.t="s",p.v=v[1];break;case"is":p.t="s",p.v=v[1].t;break}if((g=o.CellXf[v[0].iStyleRef])&&Ll(p,g.numFmtId,null,c,s,o),M=v[0].c==-1?M+1:v[0].c,c.dense?(u[O]||(u[O]=[]),u[O][M]=p):u[Tt(M)+C]=p,c.cellFormula){for(I=!1,P=0;P<m.length;++P){var D=m[P];A.r>=D[0].s.r&&A.r<=D[0].e.r&&M>=D[0].s.c&&M<=D[0].e.c&&(p.F=tt(D[0]),I=!0)}!I&&v.length>3&&(p.f=v[3])}if(y.s.r>A.r&&(y.s.r=A.r),y.s.c>M&&(y.s.c=M),y.e.r<A.r&&(y.e.r=A.r),y.e.c<M&&(y.e.c=M),c.cellDates&&g&&p.t=="n"&&_i(Ke[g.numFmtId])){var H=$r(p.v);H&&(p.t="d",p.v=new Date(H.y,H.m-1,H.d,H.H,H.M,H.S,H.u))}l&&(l.type=="XLDAPR"&&(p.D=!0),l=void 0);break;case 1:case 12:if(!c.sheetStubs||L)break;p={t:"z",v:void 0},M=v[0].c==-1?M+1:v[0].c,c.dense?(u[O]||(u[O]=[]),u[O][M]=p):u[Tt(M)+C]=p,y.s.r>A.r&&(y.s.r=A.r),y.s.c>M&&(y.s.c=M),y.e.r<A.r&&(y.e.r=A.r),y.e.c<M&&(y.e.c=M),l&&(l.type=="XLDAPR"&&(p.D=!0),l=void 0);break;case 176:F.push(v);break;case 49:l=((c.xlmeta||{}).Cell||[])[v-1];break;case 494:var z=a["!id"][v.relId];for(z?(v.Target=z.Target,v.loc&&(v.Target+="#"+v.loc),v.Rel=z):v.relId==""&&(v.Target="#"+v.loc),O=v.rfx.s.r;O<=v.rfx.e.r;++O)for(M=v.rfx.s.c;M<=v.rfx.e.c;++M)c.dense?(u[O]||(u[O]=[]),u[O][M]||(u[O][M]={t:"z",v:void 0}),u[O][M].l=v):(_=Ye({c:M,r:O}),u[_]||(u[_]={t:"z",v:void 0}),u[_].l=v);break;case 426:if(!c.cellFormula)break;m.push(v),k=c.dense?u[O][M]:u[Tt(M)+C],k.f=Lt(v[1],y,{r:A.r,c:M},T,c),k.F=tt(v[0]);break;case 427:if(!c.cellFormula)break;B[Ye(v[0].s)]=v[1],k=c.dense?u[O][M]:u[Tt(M)+C],k.f=Lt(v[1],y,{r:A.r,c:M},T,c);break;case 60:if(!c.cellStyles)break;for(;v.e>=v.s;)x[v.e--]={width:v.w/256,hidden:!!(v.flags&1),level:v.level},n||(n=!0,Ms(v.w/256)),yi(x[v.e+1]);break;case 161:u["!autofilter"]={ref:tt(v)};break;case 476:u["!margins"]=v;break;case 147:i.Sheets[t]||(i.Sheets[t]={}),v.name&&(i.Sheets[t].CodeName=v.name),(v.above||v.left)&&(u["!outline"]={above:v.above,left:v.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),v.RTL&&(i.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:L=!0;break;case 36:L=!1;break;case 37:L=!0;break;case 38:L=!1;break;default:if(!G.T){if(!L||c.WTF)throw new Error("Unexpected record 0x"+U.toString(16))}}},c),delete c.supbooks,delete c["!row"],!u["!ref"]&&(y.s.r<2e6||w&&(w.e.r>0||w.e.c>0||w.s.r>0||w.s.c>0))&&(u["!ref"]=tt(w||y)),c.sheetRows&&u["!ref"]){var f=dt(u["!ref"]);c.sheetRows<=+f.e.r&&(f.e.r=c.sheetRows-1,f.e.r>y.e.r&&(f.e.r=y.e.r),f.e.r<f.s.r&&(f.s.r=f.e.r),f.e.c>y.e.c&&(f.e.c=y.e.c),f.e.c<f.s.c&&(f.s.c=f.e.c),u["!fullref"]=u["!ref"],u["!ref"]=tt(f))}return F.length>0&&(u["!merges"]=F),x.length>0&&(u["!cols"]=x),h.length>0&&(u["!rows"]=h),u}function bm(e){var r=[],t=e.match(/^<c:numCache>/),a;(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/mg)||[]).forEach(function(s){var o=s.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);o&&(r[+o[1]]=t?+o[2]:o[2])});var i=rt((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/mg)||[]).forEach(function(s){a=s.replace(/<.*?>/g,"")}),[r,i,a]}function _m(e,r,t,a,i,s){var o=s||{"!type":"chart"};if(!e)return s;var c=0,u=0,w="A",y={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(L){var N=bm(L);y.s.r=y.s.c=0,y.e.c=c,w=Tt(c),N[0].forEach(function(A,p){o[w+Dt(p)]={t:"n",v:A,z:N[1]},u=p}),y.e.r<u&&(y.e.r=u),++c}),c>0&&(o["!ref"]=tt(y)),o}function wm(e,r,t,a,i){if(!e)return e;a||(a={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},o,c=e.match(Il);return c&&Os(c[0],s,i,t),(o=e.match(/drawing r:id="(.*?)"/))&&(s["!rel"]=o[1]),a["!id"][s["!rel"]]&&(s["!drawel"]=a["!id"][s["!rel"]]),s}function Sm(e,r){e.l+=10;var t=Bt(e);return{name:t}}function Am(e,r,t,a,i){if(!e)return e;a||(a={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},o=!1;return Or(e,function(u,w,y){switch(y){case 550:s["!rel"]=u;break;case 651:i.Sheets[t]||(i.Sheets[t]={}),u.name&&(i.Sheets[t].CodeName=u.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if(!(w.T>0)){if(!(w.T<0)){if(!o||r.WTF)throw new Error("Unexpected record 0x"+y.toString(16))}}}},r),a["!id"][s["!rel"]]&&(s["!drawel"]=a["!id"][s["!rel"]]),s}var Bl=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],Em=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],Cm=[],Mm=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function zn(e,r){for(var t=0;t!=e.length;++t)for(var a=e[t],i=0;i!=r.length;++i){var s=r[i];if(a[s[0]]==null)a[s[0]]=s[1];else switch(s[2]){case"bool":typeof a[s[0]]=="string"&&(a[s[0]]=nt(a[s[0]]));break;case"int":typeof a[s[0]]=="string"&&(a[s[0]]=parseInt(a[s[0]],10));break}}}function Gn(e,r){for(var t=0;t!=r.length;++t){var a=r[t];if(e[a[0]]==null)e[a[0]]=a[1];else switch(a[2]){case"bool":typeof e[a[0]]=="string"&&(e[a[0]]=nt(e[a[0]]));break;case"int":typeof e[a[0]]=="string"&&(e[a[0]]=parseInt(e[a[0]],10));break}}}function Nl(e){Gn(e.WBProps,Bl),Gn(e.CalcPr,Mm),zn(e.WBView,Em),zn(e.Sheets,Cm),mi.date1904=nt(e.WBProps.date1904)}var Dm="][*?/\\".split("");function Om(e,r){if(e.length>31){if(r)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var t=!0;return Dm.forEach(function(a){if(e.indexOf(a)!=-1){if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=!1}}),t}var Pm=/<\w+:workbook/;function Fm(e,r){if(!e)throw new Error("Could not find file");var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},a=!1,i="xmlns",s={},o=0;if(e.replace(jt,function(u,w){var y=Xe(u);switch(wr(y[0])){case"<?xml":break;case"<workbook":u.match(Pm)&&(i="xmlns"+u.match(/<(\w+):/)[1]),t.xmlns=y[i];break;case"</workbook>":break;case"<fileVersion":delete y[0],t.AppVersion=y;break;case"<fileVersion/>":case"</fileVersion>":break;case"<fileSharing":break;case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":Bl.forEach(function(L){if(y[L[0]]!=null)switch(L[2]){case"bool":t.WBProps[L[0]]=nt(y[L[0]]);break;case"int":t.WBProps[L[0]]=parseInt(y[L[0]],10);break;default:t.WBProps[L[0]]=y[L[0]]}}),y.codeName&&(t.WBProps.CodeName=st(y.codeName));break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete y[0],t.WBView.push(y);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(y.state){case"hidden":y.Hidden=1;break;case"veryHidden":y.Hidden=2;break;default:y.Hidden=0}delete y.state,y.name=rt(st(y.name)),delete y[0],t.Sheets.push(y);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":case"<definedNames":a=!0;break;case"</definedNames>":a=!1;break;case"<definedName":s={},s.Name=st(y.name),y.comment&&(s.Comment=y.comment),y.localSheetId&&(s.Sheet=+y.localSheetId),nt(y.hidden||"0")&&(s.Hidden=!0),o=w+u.length;break;case"</definedName>":s.Ref=rt(st(e.slice(o,w))),t.Names.push(s);break;case"<definedName/>":break;case"<calcPr":delete y[0],t.CalcPr=y;break;case"<calcPr/>":delete y[0],t.CalcPr=y;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":a=!0;break;case"</AlternateContent>":a=!1;break;case"<revisionPtr":break;default:if(!a&&r.WTF)throw new Error("unrecognized "+y[0]+" in workbook")}return u}),Zf.indexOf(t.xmlns)===-1)throw new Error("Unknown Namespace: "+t.xmlns);return Nl(t),t}function Lm(e,r){var t={};return t.Hidden=e.read_shift(4),t.iTabID=e.read_shift(4),t.strRelID=Za(e),t.name=Bt(e),t}function Im(e,r){var t={},a=e.read_shift(4);t.defaultThemeVersion=e.read_shift(4);var i=r>8?Bt(e):"";return i.length>0&&(t.CodeName=i),t.autoCompressPictures=!!(a&65536),t.backupFile=!!(a&64),t.checkCompatibility=!!(a&4096),t.date1904=!!(a&1),t.filterPrivacy=!!(a&8),t.hidePivotFieldList=!!(a&1024),t.promptedSolutions=!!(a&16),t.publishItems=!!(a&2048),t.refreshAllConnections=!!(a&262144),t.saveExternalLinkValues=!!(a&128),t.showBorderUnselectedTables=!!(a&4),t.showInkAnnotation=!!(a&32),t.showObjects=["all","placeholders","none"][a>>13&3],t.showPivotChartFilter=!!(a&32768),t.updateLinks=["userSet","never","always"][a>>8&3],t}function Rm(e,r){var t={};return e.read_shift(4),t.ArchID=e.read_shift(4),e.l+=r-8,t}function Bm(e,r,t){var a=e.l+r;e.l+=4,e.l+=1;var i=e.read_shift(4),s=g0(e),o=Tx(e,0,t),c=ws(e);e.l=a;var u={Name:s,Ptg:o};return i<268435455&&(u.Sheet=i),c&&(u.Comment=c),u}function Nm(e,r){var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},a=[],i=!1;r||(r={}),r.biff=12;var s=[],o=[[]];return o.SheetNames=[],o.XTI=[],Sa[16]={n:"BrtFRTArchID$",f:Rm},Or(e,function(u,w,y){switch(y){case 156:o.SheetNames.push(u.name),t.Sheets.push(u);break;case 153:t.WBProps=u;break;case 39:u.Sheet!=null&&(r.SID=u.Sheet),u.Ref=Lt(u.Ptg,null,null,o,r),delete r.SID,delete u.Ptg,s.push(u);break;case 1036:break;case 357:case 358:case 355:case 667:o[0].length?o.push([y,u]):o[0]=[y,u],o[o.length-1].XTI=[];break;case 362:o.length===0&&(o[0]=[],o[0].XTI=[]),o[o.length-1].XTI=o[o.length-1].XTI.concat(u),o.XTI=o.XTI.concat(u);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:a.push(y),i=!0;break;case 36:a.pop(),i=!1;break;case 37:a.push(y),i=!0;break;case 38:a.pop(),i=!1;break;case 16:break;default:if(!w.T){if(!i||r.WTF&&a[a.length-1]!=37&&a[a.length-1]!=35)throw new Error("Unexpected record 0x"+y.toString(16))}}},r),Nl(t),t.Names=s,t.supbooks=o,t}function jm(e,r,t){return r.slice(-4)===".bin"?Nm(e,t):Fm(e,t)}function Um(e,r,t,a,i,s,o,c){return r.slice(-4)===".bin"?km(e,a,t,i,s,o,c):Lx(e,a,t,i,s,o,c)}function Hm(e,r,t,a,i,s,o,c){return r.slice(-4)===".bin"?Am(e,a,t,i,s):wm(e,a,t,i,s)}function Wm(e,r,t,a,i,s,o,c){return r.slice(-4)===".bin"?qp():Zp()}function zm(e,r,t,a,i,s,o,c){return r.slice(-4)===".bin"?$p():Kp()}function Gm(e,r,t,a){return r.slice(-4)===".bin"?fp(e,t,a):sp(e,t,a)}function Xm(e,r,t){return wl(e,t)}function Vm(e,r,t){return r.slice(-4)===".bin"?Eu(e,t):Su(e,t)}function Ym(e,r,t){return r.slice(-4)===".bin"?Xp(e,t):Up(e,t)}function $m(e,r,t){return r.slice(-4)===".bin"?Bp(e):Ip(e)}function Km(e,r,t,a){return t.slice(-4)===".bin"?Np(e,r,t,a):void 0}function qm(e,r,t){return r.slice(-4)===".bin"?Fp(e,r,t):Lp(e,r,t)}var jl=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Ul=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function gr(e,r){var t=e.split(/\s+/),a=[];if(r||(a[0]=t[0]),t.length===1)return a;var i=e.match(jl),s,o,c,u;if(i)for(u=0;u!=i.length;++u)s=i[u].match(Ul),(o=s[1].indexOf(":"))===-1?a[s[1]]=s[2].slice(1,s[2].length-1):(s[1].slice(0,6)==="xmlns:"?c="xmlns"+s[1].slice(6):c=s[1].slice(o+1),a[c]=s[2].slice(1,s[2].length-1));return a}function Zm(e){var r=e.split(/\s+/),t={};if(r.length===1)return t;var a=e.match(jl),i,s,o,c;if(a)for(c=0;c!=a.length;++c)i=a[c].match(Ul),(s=i[1].indexOf(":"))===-1?t[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?o="xmlns"+i[1].slice(6):o=i[1].slice(s+1),t[o]=i[2].slice(1,i[2].length-1));return t}var Wi;function Jm(e,r){var t=Wi[e]||rt(e);return t==="General"?Zr(r):dr(t,r)}function Qm(e,r,t,a){var i=a;switch((t[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=nt(a);break;case"i2":case"int":i=parseInt(a,10);break;case"r4":case"float":i=parseFloat(a);break;case"date":case"dateTime.tz":i=St(a);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+t[0])}e[rt(r)]=i}function e1(e,r,t){if(e.t!=="z"){if(!t||t.cellText!==!1)try{e.t==="e"?e.w=e.w||ni[e.v]:r==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Xi(e.v):e.w=Zr(e.v):e.w=Jm(r||"General",e.v)}catch(s){if(t.WTF)throw s}try{var a=Wi[r]||r||"General";if(t.cellNF&&(e.z=a),t.cellDates&&e.t=="n"&&_i(a)){var i=$r(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}catch(s){if(t.WTF)throw s}}}function t1(e,r,t){if(t.cellStyles&&r.Interior){var a=r.Interior;a.Pattern&&(a.patternType=Qu[a.Pattern]||a.Pattern)}e[r.ID]=r}function r1(e,r,t,a,i,s,o,c,u,w){var y="General",L=a.StyleID,N={};w=w||{};var A=[],p=0;for(L===void 0&&c&&(L=c.StyleID),L===void 0&&o&&(L=o.StyleID);s[L]!==void 0&&(s[L].nf&&(y=s[L].nf),s[L].Interior&&A.push(s[L].Interior),!!s[L].Parent);)L=s[L].Parent;switch(t.Type){case"Boolean":a.t="b",a.v=nt(e);break;case"String":a.t="s",a.r=dn(rt(e)),a.v=e.indexOf("<")>-1?rt(r||e).replace(/<.*?>/g,""):a.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),a.v=(St(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),a.v!==a.v?a.v=rt(e):a.v<60&&(a.v=a.v-1),(!y||y=="General")&&(y="yyyy-mm-dd");case"Number":a.v===void 0&&(a.v=+e),a.t||(a.t="n");break;case"Error":a.t="e",a.v=rl[e],w.cellText!==!1&&(a.w=e);break;default:e==""&&r==""?a.t="z":(a.t="s",a.v=dn(r||e));break}if(e1(a,y,w),w.cellFormula!==!1)if(a.Formula){var g=rt(a.Formula);g.charCodeAt(0)==61&&(g=g.slice(1)),a.f=xi(g,i),delete a.Formula,a.ArrayRange=="RC"?a.F=xi("RC:RC",i):a.ArrayRange&&(a.F=xi(a.ArrayRange,i),u.push([dt(a.F),a.F]))}else for(p=0;p<u.length;++p)i.r>=u[p][0].s.r&&i.r<=u[p][0].e.r&&i.c>=u[p][0].s.c&&i.c<=u[p][0].e.c&&(a.F=u[p][1]);w.cellStyles&&(A.forEach(function(O){!N.patternType&&O.patternType&&(N.patternType=O.patternType)}),a.s=N),a.StyleID!==void 0&&(a.ixfe=a.StyleID)}function i1(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,`
`).replace(/\r/g,`
`),e.v=e.w=e.ixfe=void 0}function Ya(e,r){var t=r||{};Eo();var a=Di(ys(e));(t.type=="binary"||t.type=="array"||t.type=="base64")&&(a=st(a));var i=a.slice(0,1024).toLowerCase(),s=!1;if(i=i.replace(/".*?"/g,""),(i.indexOf(">")&1023)>Math.min(i.indexOf(",")&1023,i.indexOf(";")&1023)){var o=Mt(t);return o.type="string",$i.to_workbook(a,o)}if(i.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(ne){i.indexOf("<"+ne)>=0&&(s=!0)}),s)return d1(a,t);Wi={"General Number":"General","General Date":Ke[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Ke[15],"Short Date":Ke[14],"Long Time":Ke[19],"Medium Time":Ke[18],"Short Time":Ke[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Ke[2],Standard:Ke[4],Percent:Ke[10],Scientific:Ke[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var c,u=[],w,y={},L=[],N=t.dense?[]:{},A="",p={},g={},O=gr('<Data ss:Type="String">'),M=0,_=0,j=0,C={s:{r:2e6,c:2e6},e:{r:0,c:0}},k={},F={},P="",I=0,m=[],B={},T={},S=0,x=[],h=[],n={},l=[],f,b=!1,v=[],G=[],U={},D=0,H=0,z={Sheets:[],WBProps:{date1904:!1}},W={};Yi.lastIndex=0,a=a.replace(/<!--([\s\S]*?)-->/mg,"");for(var d="";c=Yi.exec(a);)switch(c[3]=(d=c[3]).toLowerCase()){case"data":if(d=="data"){if(c[1]==="/"){if((w=u.pop())[0]!==c[3])throw new Error("Bad state: "+w.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&u.push([c[3],!0]);break}if(u[u.length-1][1])break;c[1]==="/"?r1(a.slice(M,c.index),P,O,u[u.length-1][0]=="comment"?n:p,{c:_,r:j},k,l[_],g,v,t):(P="",O=gr(c[0]),M=c.index+c[0].length);break;case"cell":if(c[1]==="/")if(h.length>0&&(p.c=h),(!t.sheetRows||t.sheetRows>j)&&p.v!==void 0&&(t.dense?(N[j]||(N[j]=[]),N[j][_]=p):N[Tt(_)+Dt(j)]=p),p.HRef&&(p.l={Target:rt(p.HRef)},p.HRefScreenTip&&(p.l.Tooltip=p.HRefScreenTip),delete p.HRef,delete p.HRefScreenTip),(p.MergeAcross||p.MergeDown)&&(D=_+(parseInt(p.MergeAcross,10)|0),H=j+(parseInt(p.MergeDown,10)|0),m.push({s:{c:_,r:j},e:{c:D,r:H}})),!t.sheetStubs)p.MergeAcross?_=D+1:++_;else if(p.MergeAcross||p.MergeDown){for(var R=_;R<=D;++R)for(var q=j;q<=H;++q)(R>_||q>j)&&(t.dense?(N[q]||(N[q]=[]),N[q][R]={t:"z"}):N[Tt(R)+Dt(q)]={t:"z"});_=D+1}else++_;else p=Zm(c[0]),p.Index&&(_=+p.Index-1),_<C.s.c&&(C.s.c=_),_>C.e.c&&(C.e.c=_),c[0].slice(-2)==="/>"&&++_,h=[];break;case"row":c[1]==="/"||c[0].slice(-2)==="/>"?(j<C.s.r&&(C.s.r=j),j>C.e.r&&(C.e.r=j),c[0].slice(-2)==="/>"&&(g=gr(c[0]),g.Index&&(j=+g.Index-1)),_=0,++j):(g=gr(c[0]),g.Index&&(j=+g.Index-1),U={},(g.AutoFitHeight=="0"||g.Height)&&(U.hpx=parseInt(g.Height,10),U.hpt=_l(U.hpx),G[j]=U),g.Hidden=="1"&&(U.hidden=!0,G[j]=U));break;case"worksheet":if(c[1]==="/"){if((w=u.pop())[0]!==c[3])throw new Error("Bad state: "+w.join("|"));L.push(A),C.s.r<=C.e.r&&C.s.c<=C.e.c&&(N["!ref"]=tt(C),t.sheetRows&&t.sheetRows<=C.e.r&&(N["!fullref"]=N["!ref"],C.e.r=t.sheetRows-1,N["!ref"]=tt(C))),m.length&&(N["!merges"]=m),l.length>0&&(N["!cols"]=l),G.length>0&&(N["!rows"]=G),y[A]=N}else C={s:{r:2e6,c:2e6},e:{r:0,c:0}},j=_=0,u.push([c[3],!1]),w=gr(c[0]),A=rt(w.Name),N=t.dense?[]:{},m=[],v=[],G=[],W={name:A,Hidden:0},z.Sheets.push(W);break;case"table":if(c[1]==="/"){if((w=u.pop())[0]!==c[3])throw new Error("Bad state: "+w.join("|"))}else{if(c[0].slice(-2)=="/>")break;u.push([c[3],!1]),l=[],b=!1}break;case"style":c[1]==="/"?t1(k,F,t):F=gr(c[0]);break;case"numberformat":F.nf=rt(gr(c[0]).Format||"General"),Wi[F.nf]&&(F.nf=Wi[F.nf]);for(var J=0;J!=392&&Ke[J]!=F.nf;++J);if(J==392){for(J=57;J!=392;++J)if(Ke[J]==null){Kr(F.nf,J);break}}break;case"column":if(u[u.length-1][0]!=="table")break;if(f=gr(c[0]),f.Hidden&&(f.hidden=!0,delete f.Hidden),f.Width&&(f.wpx=parseInt(f.Width,10)),!b&&f.wpx>10){b=!0,zt=kl;for(var Y=0;Y<l.length;++Y)l[Y]&&yi(l[Y])}b&&yi(f),l[f.Index-1||l.length]=f;for(var ee=0;ee<+f.Span;++ee)l[l.length]=Mt(f);break;case"namedrange":if(c[1]==="/")break;z.Names||(z.Names=[]);var E=Xe(c[0]),V={Name:E.Name,Ref:xi(E.RefersTo.slice(1),{r:0,c:0})};z.Sheets.length>0&&(V.Sheet=z.Sheets.length-1),z.Names.push(V);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(c[0].slice(-2)==="/>")break;c[1]==="/"?P+=a.slice(I,c.index):I=c.index+c[0].length;break;case"interior":if(!t.cellStyles)break;F.Interior=gr(c[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(c[0].slice(-2)==="/>")break;c[1]==="/"?U0(B,d,a.slice(S,c.index)):S=c.index+c[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(c[1]==="/"){if((w=u.pop())[0]!==c[3])throw new Error("Bad state: "+w.join("|"))}else u.push([c[3],!1]);break;case"comment":if(c[1]==="/"){if((w=u.pop())[0]!==c[3])throw new Error("Bad state: "+w.join("|"));i1(n),h.push(n)}else u.push([c[3],!1]),w=gr(c[0]),n={a:w.Author};break;case"autofilter":if(c[1]==="/"){if((w=u.pop())[0]!==c[3])throw new Error("Bad state: "+w.join("|"))}else if(c[0].charAt(c[0].length-2)!=="/"){var X=gr(c[0]);N["!autofilter"]={ref:xi(X.Range).replace(/\$/g,"")},u.push([c[3],!0])}break;case"name":break;case"datavalidation":if(c[1]==="/"){if((w=u.pop())[0]!==c[3])throw new Error("Bad state: "+w.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&u.push([c[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(c[1]==="/"){if((w=u.pop())[0]!==c[3])throw new Error("Bad state: "+w.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&u.push([c[3],!0]);break;case"null":break;default:if(u.length==0&&c[3]=="document"||u.length==0&&c[3]=="uof")return qn(a,t);var Q=!0;switch(u[u.length-1][0]){case"officedocumentsettings":switch(c[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:Q=!1}break;case"componentoptions":switch(c[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:Q=!1}break;case"excelworkbook":switch(c[3]){case"date1904":z.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:Q=!1}break;case"workbookoptions":switch(c[3]){case"owcversion":break;case"height":break;case"width":break;default:Q=!1}break;case"worksheetoptions":switch(c[3]){case"visible":if(c[0].slice(-2)!=="/>")if(c[1]==="/")switch(a.slice(S,c.index)){case"SheetHidden":W.Hidden=1;break;case"SheetVeryHidden":W.Hidden=2;break}else S=c.index+c[0].length;break;case"header":N["!margins"]||Hi(N["!margins"]={},"xlml"),isNaN(+Xe(c[0]).Margin)||(N["!margins"].header=+Xe(c[0]).Margin);break;case"footer":N["!margins"]||Hi(N["!margins"]={},"xlml"),isNaN(+Xe(c[0]).Margin)||(N["!margins"].footer=+Xe(c[0]).Margin);break;case"pagemargins":var se=Xe(c[0]);N["!margins"]||Hi(N["!margins"]={},"xlml"),isNaN(+se.Top)||(N["!margins"].top=+se.Top),isNaN(+se.Left)||(N["!margins"].left=+se.Left),isNaN(+se.Right)||(N["!margins"].right=+se.Right),isNaN(+se.Bottom)||(N["!margins"].bottom=+se.Bottom);break;case"displayrighttoleft":z.Views||(z.Views=[]),z.Views[0]||(z.Views[0]={}),z.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":N["!outline"]||(N["!outline"]={}),N["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":N["!outline"]||(N["!outline"]={}),N["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:Q=!1}break;case"pivottable":case"pivotcache":switch(c[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:Q=!1}break;case"pagebreaks":switch(c[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:Q=!1}break;case"autofilter":switch(c[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:Q=!1}break;case"querytable":switch(c[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:Q=!1}break;case"datavalidation":switch(c[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:Q=!1}break;case"sorting":case"conditionalformatting":switch(c[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:Q=!1}break;case"mapinfo":case"schema":case"data":switch(c[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:Q=!1}break;case"smarttags":break;default:Q=!1;break}if(Q||c[3].match(/!\[CDATA/))break;if(!u[u.length-1][1])throw"Unrecognized tag: "+c[3]+"|"+u.join("|");if(u[u.length-1][0]==="customdocumentproperties"){if(c[0].slice(-2)==="/>")break;c[1]==="/"?Qm(T,d,x,a.slice(S,c.index)):(x=c,S=c.index+c[0].length);break}if(t.WTF)throw"Unrecognized tag: "+c[3]+"|"+u.join("|")}var K={};return!t.bookSheets&&!t.bookProps&&(K.Sheets=y),K.SheetNames=L,K.Workbook=z,K.SSF=Mt(Ke),K.Props=B,K.Custprops=T,K}function ts(e,r){switch(Ls(r=r||{}),r.type||"base64"){case"base64":return Ya(ar(e),r);case"binary":case"buffer":case"file":return Ya(e,r);case"array":return Ya(ii(e),r)}}function a1(e){var r={},t=e.content;if(t.l=28,r.AnsiUserType=t.read_shift(0,"lpstr-ansi"),r.AnsiClipboardFormat=v0(t),t.length-t.l<=4)return r;var a=t.read_shift(4);if(a==0||a>40||(t.l-=4,r.Reserved1=t.read_shift(0,"lpstr-ansi"),t.length-t.l<=4)||(a=t.read_shift(4),a!==1907505652)||(r.UnicodeClipboardFormat=y0(t),a=t.read_shift(4),a==0||a>40))return r;t.l-=4,r.Reserved2=t.read_shift(0,"lpwstr")}var s1=[60,1084,2066,2165,2175];function n1(e,r,t,a,i){var s=a,o=[],c=t.slice(t.l,t.l+s);if(i&&i.enc&&i.enc.insitu&&c.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:i.enc.insitu(c)}o.push(c),t.l+=s;for(var u=Er(t,t.l),w=rs[u],y=0;w!=null&&s1.indexOf(u)>-1;)s=Er(t,t.l+2),y=t.l+4,u==2066?y+=4:(u==2165||u==2175)&&(y+=12),c=t.slice(y,t.l+4+s),o.push(c),t.l+=4+s,w=rs[u=Er(t,t.l)];var L=Br(o);Ct(L,0);var N=0;L.lens=[];for(var A=0;A<o.length;++A)L.lens.push(N),N+=o[A].length;if(L.length<a)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+L.length+" < "+a;return r.f(L,L.length,i)}function kr(e,r,t){if(e.t!=="z"&&e.XF){var a=0;try{a=e.z||e.XF.numFmtId||0,r.cellNF&&(e.z=Ke[a])}catch(s){if(r.WTF)throw s}if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||ni[e.v]:a===0||a=="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Xi(e.v):e.w=Zr(e.v):e.w=dr(a,e.v,{date1904:!!t,dateNF:r&&r.dateNF})}catch(s){if(r.WTF)throw s}if(r.cellDates&&a&&e.t=="n"&&_i(Ke[a]||String(a))){var i=$r(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}}function pa(e,r,t){return{v:e,ixfe:r,t}}function o1(e,r){var t={opts:{}},a={},i=r.dense?[]:{},s={},o={},c=null,u=[],w="",y={},L,N="",A,p,g,O,M={},_=[],j,C,k=[],F=[],P={Sheets:[],WBProps:{date1904:!1},Views:[{}]},I={},m=function(ge){return ge<8?qr[ge]:ge<64&&F[ge-8]||qr[ge]},B=function(ge,_e,be){var Ce=_e.XF.data;if(!(!Ce||!Ce.patternType||!be||!be.cellStyles)){_e.s={},_e.s.patternType=Ce.patternType;var De;(De=Ki(m(Ce.icvFore)))&&(_e.s.fgColor={rgb:De}),(De=Ki(m(Ce.icvBack)))&&(_e.s.bgColor={rgb:De})}},T=function(ge,_e,be){if(!(U>1)&&!(be.sheetRows&&ge.r>=be.sheetRows)){if(be.cellStyles&&_e.XF&&_e.XF.data&&B(ge,_e,be),delete _e.ixfe,delete _e.XF,L=ge,N=Ye(ge),(!o||!o.s||!o.e)&&(o={s:{r:0,c:0},e:{r:0,c:0}}),ge.r<o.s.r&&(o.s.r=ge.r),ge.c<o.s.c&&(o.s.c=ge.c),ge.r+1>o.e.r&&(o.e.r=ge.r+1),ge.c+1>o.e.c&&(o.e.c=ge.c+1),be.cellFormula&&_e.f){for(var Ce=0;Ce<_.length;++Ce)if(!(_[Ce][0].s.c>ge.c||_[Ce][0].s.r>ge.r)&&!(_[Ce][0].e.c<ge.c||_[Ce][0].e.r<ge.r)){_e.F=tt(_[Ce][0]),(_[Ce][0].s.c!=ge.c||_[Ce][0].s.r!=ge.r)&&delete _e.f,_e.f&&(_e.f=""+Lt(_[Ce][1],o,ge,v,S));break}}be.dense?(i[ge.r]||(i[ge.r]=[]),i[ge.r][ge.c]=_e):i[N]=_e}},S={enc:!1,sbcch:0,snames:[],sharedf:M,arrayf:_,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!r&&!!r.cellStyles,WTF:!!r&&!!r.wtf};r.password&&(S.password=r.password);var x,h=[],n=[],l=[],f=[],b=!1,v=[];v.SheetNames=S.snames,v.sharedf=S.sharedf,v.arrayf=S.arrayf,v.names=[],v.XTI=[];var G=0,U=0,D=0,H=[],z=[],W;S.codepage=1200,vr(1200);for(var d=!1;e.l<e.length-1;){var R=e.l,q=e.read_shift(2);if(q===0&&G===10)break;var J=e.l===e.length?0:e.read_shift(2),Y=rs[q];if(Y&&Y.f){if(r.bookSheets&&G===133&&q!==133)break;if(G=q,Y.r===2||Y.r==12){var ee=e.read_shift(2);if(J-=2,!S.enc&&ee!==q&&((ee&255)<<8|ee>>8)!==q)throw new Error("rt mismatch: "+ee+"!="+q);Y.r==12&&(e.l+=10,J-=10)}var E={};if(q===10?E=Y.f(e,J,S):E=n1(q,Y,e,J,S),U==0&&[9,521,1033,2057].indexOf(G)===-1)continue;switch(q){case 34:t.opts.Date1904=P.WBProps.date1904=E;break;case 134:t.opts.WriteProtect=!0;break;case 47:if(S.enc||(e.l=0),S.enc=E,!r.password)throw new Error("File is password-protected");if(E.valid==null)throw new Error("Encryption scheme unsupported");if(!E.valid)throw new Error("Password is incorrect");break;case 92:S.lastuser=E;break;case 66:var V=Number(E);switch(V){case 21010:V=1200;break;case 32768:V=1e4;break;case 32769:V=1252;break}vr(S.codepage=V),d=!0;break;case 317:S.rrtabid=E;break;case 25:S.winlocked=E;break;case 439:t.opts.RefreshAll=E;break;case 12:t.opts.CalcCount=E;break;case 16:t.opts.CalcDelta=E;break;case 17:t.opts.CalcIter=E;break;case 13:t.opts.CalcMode=E;break;case 14:t.opts.CalcPrecision=E;break;case 95:t.opts.CalcSaveRecalc=E;break;case 15:S.CalcRefMode=E;break;case 2211:t.opts.FullCalc=E;break;case 129:E.fDialog&&(i["!type"]="dialog"),E.fBelow||((i["!outline"]||(i["!outline"]={})).above=!0),E.fRight||((i["!outline"]||(i["!outline"]={})).left=!0);break;case 224:k.push(E);break;case 430:v.push([E]),v[v.length-1].XTI=[];break;case 35:case 547:v[v.length-1].push(E);break;case 24:case 536:W={Name:E.Name,Ref:Lt(E.rgce,o,null,v,S)},E.itab>0&&(W.Sheet=E.itab-1),v.names.push(W),v[0]||(v[0]=[],v[0].XTI=[]),v[v.length-1].push(E),E.Name=="_xlnm._FilterDatabase"&&E.itab>0&&E.rgce&&E.rgce[0]&&E.rgce[0][0]&&E.rgce[0][0][0]=="PtgArea3d"&&(z[E.itab-1]={ref:tt(E.rgce[0][0][1][2])});break;case 22:S.ExternCount=E;break;case 23:v.length==0&&(v[0]=[],v[0].XTI=[]),v[v.length-1].XTI=v[v.length-1].XTI.concat(E),v.XTI=v.XTI.concat(E);break;case 2196:if(S.biff<8)break;W!=null&&(W.Comment=E[1]);break;case 18:i["!protect"]=E;break;case 19:E!==0&&S.WTF&&console.error("Password verifier: "+E);break;case 133:s[E.pos]=E,S.snames.push(E.name);break;case 10:{if(--U)break;if(o.e){if(o.e.r>0&&o.e.c>0){if(o.e.r--,o.e.c--,i["!ref"]=tt(o),r.sheetRows&&r.sheetRows<=o.e.r){var X=o.e.r;o.e.r=r.sheetRows-1,i["!fullref"]=i["!ref"],i["!ref"]=tt(o),o.e.r=X}o.e.r++,o.e.c++}h.length>0&&(i["!merges"]=h),n.length>0&&(i["!objects"]=n),l.length>0&&(i["!cols"]=l),f.length>0&&(i["!rows"]=f),P.Sheets.push(I)}w===""?y=i:a[w]=i,i=r.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(S.biff===8&&(S.biff={9:2,521:3,1033:4}[q]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[E.BIFFVer]||8),S.biffguess=E.BIFFVer==0,E.BIFFVer==0&&E.dt==4096&&(S.biff=5,d=!0,vr(S.codepage=28591)),S.biff==8&&E.BIFFVer==0&&E.dt==16&&(S.biff=2),U++)break;if(i=r.dense?[]:{},S.biff<8&&!d&&(d=!0,vr(S.codepage=r.codepage||1252)),S.biff<5||E.BIFFVer==0&&E.dt==4096){w===""&&(w="Sheet1"),o={s:{r:0,c:0},e:{r:0,c:0}};var Q={pos:e.l-J,name:w};s[Q.pos]=Q,S.snames.push(w)}else w=(s[R]||{name:""}).name;E.dt==32&&(i["!type"]="chart"),E.dt==64&&(i["!type"]="macro"),h=[],n=[],S.arrayf=_=[],l=[],f=[],b=!1,I={Hidden:(s[R]||{hs:0}).hs,name:w}}break;case 515:case 3:case 2:i["!type"]=="chart"&&(r.dense?(i[E.r]||[])[E.c]:i[Ye({c:E.c,r:E.r})])&&++E.c,j={ixfe:E.ixfe,XF:k[E.ixfe]||{},v:E.val,t:"n"},D>0&&(j.z=H[j.ixfe>>8&63]),kr(j,r,t.opts.Date1904),T({c:E.c,r:E.r},j,r);break;case 5:case 517:j={ixfe:E.ixfe,XF:k[E.ixfe],v:E.val,t:E.t},D>0&&(j.z=H[j.ixfe>>8&63]),kr(j,r,t.opts.Date1904),T({c:E.c,r:E.r},j,r);break;case 638:j={ixfe:E.ixfe,XF:k[E.ixfe],v:E.rknum,t:"n"},D>0&&(j.z=H[j.ixfe>>8&63]),kr(j,r,t.opts.Date1904),T({c:E.c,r:E.r},j,r);break;case 189:for(var se=E.c;se<=E.C;++se){var K=E.rkrec[se-E.c][0];j={ixfe:K,XF:k[K],v:E.rkrec[se-E.c][1],t:"n"},D>0&&(j.z=H[j.ixfe>>8&63]),kr(j,r,t.opts.Date1904),T({c:se,r:E.r},j,r)}break;case 6:case 518:case 1030:{if(E.val=="String"){c=E;break}if(j=pa(E.val,E.cell.ixfe,E.tt),j.XF=k[j.ixfe],r.cellFormula){var ne=E.formula;if(ne&&ne[0]&&ne[0][0]&&ne[0][0][0]=="PtgExp"){var oe=ne[0][0][1][0],le=ne[0][0][1][1],ye=Ye({r:oe,c:le});M[ye]?j.f=""+Lt(E.formula,o,E.cell,v,S):j.F=((r.dense?(i[oe]||[])[le]:i[ye])||{}).F}else j.f=""+Lt(E.formula,o,E.cell,v,S)}D>0&&(j.z=H[j.ixfe>>8&63]),kr(j,r,t.opts.Date1904),T(E.cell,j,r),c=E}break;case 7:case 519:if(c)c.val=E,j=pa(E,c.cell.ixfe,"s"),j.XF=k[j.ixfe],r.cellFormula&&(j.f=""+Lt(c.formula,o,c.cell,v,S)),D>0&&(j.z=H[j.ixfe>>8&63]),kr(j,r,t.opts.Date1904),T(c.cell,j,r),c=null;else throw new Error("String record expects Formula");break;case 33:case 545:{_.push(E);var te=Ye(E[0].s);if(A=r.dense?(i[E[0].s.r]||[])[E[0].s.c]:i[te],r.cellFormula&&A){if(!c||!te||!A)break;A.f=""+Lt(E[1],o,E[0],v,S),A.F=tt(E[0])}}break;case 1212:{if(!r.cellFormula)break;if(N){if(!c)break;M[Ye(c.cell)]=E[0],A=r.dense?(i[c.cell.r]||[])[c.cell.c]:i[Ye(c.cell)],(A||{}).f=""+Lt(E[0],o,L,v,S)}}break;case 253:j=pa(u[E.isst].t,E.ixfe,"s"),u[E.isst].h&&(j.h=u[E.isst].h),j.XF=k[j.ixfe],D>0&&(j.z=H[j.ixfe>>8&63]),kr(j,r,t.opts.Date1904),T({c:E.c,r:E.r},j,r);break;case 513:r.sheetStubs&&(j={ixfe:E.ixfe,XF:k[E.ixfe],t:"z"},D>0&&(j.z=H[j.ixfe>>8&63]),kr(j,r,t.opts.Date1904),T({c:E.c,r:E.r},j,r));break;case 190:if(r.sheetStubs)for(var re=E.c;re<=E.C;++re){var Z=E.ixfe[re-E.c];j={ixfe:Z,XF:k[Z],t:"z"},D>0&&(j.z=H[j.ixfe>>8&63]),kr(j,r,t.opts.Date1904),T({c:re,r:E.r},j,r)}break;case 214:case 516:case 4:j=pa(E.val,E.ixfe,"s"),j.XF=k[j.ixfe],D>0&&(j.z=H[j.ixfe>>8&63]),kr(j,r,t.opts.Date1904),T({c:E.c,r:E.r},j,r);break;case 0:case 512:U===1&&(o=E);break;case 252:u=E;break;case 1054:if(S.biff==4){H[D++]=E[1];for(var ie=0;ie<D+163&&Ke[ie]!=E[1];++ie);ie>=163&&Kr(E[1],D+163)}else Kr(E[1],E[0]);break;case 30:{H[D++]=E;for(var ae=0;ae<D+163&&Ke[ae]!=E;++ae);ae>=163&&Kr(E,D+163)}break;case 229:h=h.concat(E);break;case 93:n[E.cmo[0]]=S.lastobj=E;break;case 438:S.lastobj.TxO=E;break;case 127:S.lastobj.ImData=E;break;case 440:for(O=E[0].s.r;O<=E[0].e.r;++O)for(g=E[0].s.c;g<=E[0].e.c;++g)A=r.dense?(i[O]||[])[g]:i[Ye({c:g,r:O})],A&&(A.l=E[1]);break;case 2048:for(O=E[0].s.r;O<=E[0].e.r;++O)for(g=E[0].s.c;g<=E[0].e.c;++g)A=r.dense?(i[O]||[])[g]:i[Ye({c:g,r:O})],A&&A.l&&(A.l.Tooltip=E[1]);break;case 28:{if(S.biff<=5&&S.biff>=2)break;A=r.dense?(i[E[0].r]||[])[E[0].c]:i[Ye(E[0])];var he=n[E[2]];A||(r.dense?(i[E[0].r]||(i[E[0].r]=[]),A=i[E[0].r][E[0].c]={t:"z"}):A=i[Ye(E[0])]={t:"z"},o.e.r=Math.max(o.e.r,E[0].r),o.s.r=Math.min(o.s.r,E[0].r),o.e.c=Math.max(o.e.c,E[0].c),o.s.c=Math.min(o.s.c,E[0].c)),A.c||(A.c=[]),p={a:E[1],t:he.TxO.t},A.c.push(p)}break;case 2173:Mp(k[E.ixfe],E.ext);break;case 125:{if(!S.cellStyles)break;for(;E.e>=E.s;)l[E.e--]={width:E.w/256,level:E.level||0,hidden:!!(E.flags&1)},b||(b=!0,Ms(E.w/256)),yi(l[E.e+1])}break;case 520:{var fe={};E.level!=null&&(f[E.r]=fe,fe.level=E.level),E.hidden&&(f[E.r]=fe,fe.hidden=!0),E.hpt&&(f[E.r]=fe,fe.hpt=E.hpt,fe.hpx=qi(E.hpt))}break;case 38:case 39:case 40:case 41:i["!margins"]||Hi(i["!margins"]={}),i["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[q]]=E;break;case 161:i["!margins"]||Hi(i["!margins"]={}),i["!margins"].header=E.header,i["!margins"].footer=E.footer;break;case 574:E.RTL&&(P.Views[0].RTL=!0);break;case 146:F=E;break;case 2198:x=E;break;case 140:C=E;break;case 442:w?I.CodeName=E||I.name:P.WBProps.CodeName=E||"ThisWorkbook";break}}else Y||console.error("Missing Info for XLS Record 0x"+q.toString(16)),e.l+=J}return t.SheetNames=_r(s).sort(function(ve,ge){return Number(ve)-Number(ge)}).map(function(ve){return s[ve].name}),r.bookSheets||(t.Sheets=a),!t.SheetNames.length&&y["!ref"]?(t.SheetNames.push("Sheet1"),t.Sheets&&(t.Sheets.Sheet1=y)):t.Preamble=y,t.Sheets&&z.forEach(function(ve,ge){t.Sheets[t.SheetNames[ge]]["!autofilter"]=ve}),t.Strings=u,t.SSF=Mt(Ke),S.enc&&(t.Encryption=S.enc),x&&(t.Themes=x),t.Metadata={},C!==void 0&&(t.Metadata.Country=C),v.names.length>0&&(P.Names=v.names),t.Workbook=P,t}var Xn={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function l1(e,r,t){var a=et.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var i=Cn(a,S0,Xn.DSI);for(var s in i)r[s]=i[s]}catch(w){if(t.WTF)throw w}var o=et.find(e,"/!SummaryInformation");if(o&&o.size>0)try{var c=Cn(o,A0,Xn.SI);for(var u in c)r[u]==null&&(r[u]=c[u])}catch(w){if(t.WTF)throw w}r.HeadingPairs&&r.TitlesOfParts&&(al(r.HeadingPairs,r.TitlesOfParts,r,t),delete r.HeadingPairs,delete r.TitlesOfParts)}function Hl(e,r){r||(r={}),Ls(r),go(),r.codepage&&ds(r.codepage);var t,a;if(e.FullPaths){if(et.find(e,"/encryption"))throw new Error("File is password-protected");t=et.find(e,"!CompObj"),a=et.find(e,"/Workbook")||et.find(e,"/Book")}else{switch(r.type){case"base64":e=mr(ar(e));break;case"binary":e=mr(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}Ct(e,0),a={content:e}}var i,s;if(t&&a1(t),r.bookProps&&!r.bookSheets)i={};else{var o=Qe?"buffer":"array";if(a&&a.content)i=o1(a.content,r);else if((s=et.find(e,"PerfectOffice_MAIN"))&&s.content)i=ji.to_workbook(s.content,(r.type=o,r));else if((s=et.find(e,"NativeContent_MAIN"))&&s.content)i=ji.to_workbook(s.content,(r.type=o,r));else throw(s=et.find(e,"MN0"))&&s.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");r.bookVBA&&e.FullPaths&&et.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=Yp(e))}var c={};return e.FullPaths&&l1(e,c,r),i.Props=i.Custprops=c,r.bookFiles&&(i.cfb=e),i}var Sa={0:{f:zx},1:{f:Yx},2:{f:rm},3:{f:Zx},4:{f:Kx},5:{f:tm},6:{f:sm},7:{f:Qx},8:{f:hm},9:{f:cm},10:{f:om},11:{f:lm},12:{f:$x},13:{f:im},14:{f:Jx},15:{f:qx},16:{f:Rl},17:{f:nm},18:{f:em},19:{f:_s},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:Bm},40:{},42:{},43:{f:op},44:{f:np},45:{f:lp},46:{f:hp},47:{f:cp},48:{},49:{f:f0},50:{},51:{f:Op},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:xl},62:{f:am},63:{f:Rp},64:{f:ym},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Nt,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:vm},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Vx},148:{f:Gx,p:16},151:{f:um},152:{},153:{f:Im},154:{},155:{},156:{f:Lm},157:{},158:{},159:{T:1,f:Au},160:{T:-1},161:{T:1,f:si},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:fm},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Dp},336:{T:-1},337:{f:Pp,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Za},357:{},358:{},359:{},360:{T:1},361:{},362:{f:gl},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:pm},427:{f:gm},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:mm},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Xx},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:dm},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Za},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Gp},633:{T:1},634:{T:-1},635:{T:1,f:zp},636:{T:-1},637:{f:u0},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:Sm},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:Tm},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},rs={6:{f:Xa},10:{f:Ir},12:{f:mt},13:{f:mt},14:{f:ut},15:{f:ut},16:{f:It},17:{f:ut},18:{f:ut},19:{f:mt},20:{f:Pn},21:{f:Pn},23:{f:gl},24:{f:Ln},25:{f:ut},26:{},27:{},28:{f:Hd},29:{},34:{f:ut},35:{f:Fn},38:{f:It},39:{f:It},40:{f:It},41:{f:It},42:{f:ut},43:{f:ut},47:{f:Xu},49:{f:bd},51:{f:mt},60:{},61:{f:yd},64:{f:ut},65:{f:kd},66:{f:mt},77:{},80:{},81:{},82:{},85:{f:mt},89:{},90:{},91:{},92:{f:fd},93:{f:zd},94:{},95:{f:ut},96:{},97:{},99:{f:ut},125:{f:xl},128:{f:Pd},129:{f:dd},130:{f:mt},131:{f:ut},132:{f:ut},133:{f:ud},134:{},140:{f:Kd},141:{f:mt},144:{},146:{f:Zd},151:{},152:{},153:{},154:{},155:{},156:{f:mt},157:{},158:{},160:{f:ru},161:{f:Qd},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:Cd},190:{f:Md},193:{f:Ir},197:{},198:{},199:{},200:{},201:{},202:{f:ut},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:mt},220:{},221:{f:ut},222:{},224:{f:Od},225:{f:hd},226:{f:Ir},227:{},229:{f:Wd},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:pd},253:{f:_d},255:{f:gd},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:cl},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:ut},353:{f:Ir},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:Ld},431:{f:ut},432:{},433:{},434:{},437:{},438:{f:Vd},439:{f:ut},440:{f:Yd},441:{},442:{f:ra},443:{},444:{f:mt},445:{},446:{},448:{f:Ir},449:{f:vd,r:2},450:{f:Ir},512:{f:Dn},513:{f:tu},515:{f:Fd},516:{f:wd},517:{f:On},519:{f:iu},520:{f:xd},523:{},545:{f:In},549:{f:Mn},566:{},574:{f:Td},638:{f:Ed},659:{},1048:{},1054:{f:Sd},1084:{},1212:{f:Nd},2048:{f:$d},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:fa},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Ir},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:Jd,r:12},2173:{f:Cp,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:ut,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:Bd,r:12},2197:{},2198:{f:bp,r:12},2199:{},2200:{},2201:{},2202:{f:jd,r:12},2203:{f:Ir},2204:{},2205:{},2206:{},2207:{},2211:{f:md},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:mt},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:eu},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:qd},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Dn},1:{},2:{f:ou},3:{f:nu},4:{f:su},5:{f:On},7:{f:lu},8:{},9:{f:fa},11:{},22:{f:mt},30:{f:Ad},31:{},32:{},33:{f:In},36:{},37:{f:Mn},50:{f:cu},62:{},52:{},67:{},68:{f:mt},69:{},86:{},126:{},127:{f:au},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:hu},223:{},234:{},354:{},421:{},518:{f:Xa},521:{f:fa},536:{f:Ln},547:{f:Fn},561:{},579:{},1030:{f:Xa},1033:{f:fa},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function xr(e,r,t,a){var i=r;if(!isNaN(i)){var s=a||(t||[]).length||0,o=e.next(4);o.write_shift(2,i),o.write_shift(2,s),s>0&&qo(t)&&e.push(t)}}function Vn(e,r){var t=r||{},a=t.dense?[]:{};e=e.replace(/<!--.*?-->/g,"");var i=e.match(/<table/i);if(!i)throw new Error("Invalid HTML: could not find <table>");var s=e.match(/<\/table/i),o=i.index,c=s&&s.index||e.length,u=Lf(e.slice(o,c),/(:?<tr[^>]*>)/i,"<tr>"),w=-1,y=0,L=0,N=0,A={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(o=0;o<u.length;++o){var g=u[o].trim(),O=g.slice(0,3).toLowerCase();if(O=="<tr"){if(++w,t.sheetRows&&t.sheetRows<=w){--w;break}y=0;continue}if(!(O!="<td"&&O!="<th")){var M=g.split(/<\/t[dh]>/i);for(c=0;c<M.length;++c){var _=M[c].trim();if(_.match(/<t[dh]/i)){for(var j=_,C=0;j.charAt(0)=="<"&&(C=j.indexOf(">"))>-1;)j=j.slice(C+1);for(var k=0;k<p.length;++k){var F=p[k];F.s.c==y&&F.s.r<w&&w<=F.e.r&&(y=F.e.c+1,k=-1)}var P=Xe(_.slice(0,_.indexOf(">")));N=P.colspan?+P.colspan:1,((L=+P.rowspan)>1||N>1)&&p.push({s:{r:w,c:y},e:{r:w+(L||1)-1,c:y+N-1}});var I=P.t||P["data-t"]||"";if(!j.length){y+=N;continue}if(j=Bo(j),A.s.r>w&&(A.s.r=w),A.e.r<w&&(A.e.r=w),A.s.c>y&&(A.s.c=y),A.e.c<y&&(A.e.c=y),!j.length){y+=N;continue}var m={t:"s",v:j};t.raw||!j.trim().length||I=="s"||(j==="TRUE"?m={t:"b",v:!0}:j==="FALSE"?m={t:"b",v:!1}:isNaN(Tr(j))?isNaN(vi(j).getDate())||(m={t:"d",v:St(j)},t.cellDates||(m={t:"n",v:$t(m.v)}),m.z=t.dateNF||Ke[14]):m={t:"n",v:Tr(j)}),t.dense?(a[w]||(a[w]=[]),a[w][y]=m):a[Ye({r:w,c:y})]=m,y+=N}}}}return a["!ref"]=tt(A),p.length&&(a["!merges"]=p),a}function c1(e,r,t,a){for(var i=e["!merges"]||[],s=[],o=r.s.c;o<=r.e.c;++o){for(var c=0,u=0,w=0;w<i.length;++w)if(!(i[w].s.r>t||i[w].s.c>o)&&!(i[w].e.r<t||i[w].e.c<o)){if(i[w].s.r<t||i[w].s.c<o){c=-1;break}c=i[w].e.r-i[w].s.r+1,u=i[w].e.c-i[w].s.c+1;break}if(!(c<0)){var y=Ye({r:t,c:o}),L=a.dense?(e[t]||[])[o]:e[y],N=L&&L.v!=null&&(L.h||vs(L.w||(Dr(L),L.w)||""))||"",A={};c>1&&(A.rowspan=c),u>1&&(A.colspan=u),a.editable?N='<span contenteditable="true">'+N+"</span>":L&&(A["data-t"]=L&&L.t||"z",L.v!=null&&(A["data-v"]=L.v),L.z!=null&&(A["data-z"]=L.z),L.l&&(L.l.Target||"#").charAt(0)!="#"&&(N='<a href="'+L.l.Target+'">'+N+"</a>")),A.id=(a.id||"sjs")+"-"+y,s.push(Kf("td",N,A))}}var p="<tr>";return p+s.join("")+"</tr>"}var h1='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',f1="</body></html>";function d1(e,r){var t=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!t||t.length==0)throw new Error("Invalid HTML: could not find <table>");if(t.length==1)return Gr(Vn(t[0],r),r);var a=Rs();return t.forEach(function(i,s){Bs(a,Vn(i,r),"Sheet"+(s+1))}),a}function u1(e,r,t){var a=[];return a.join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}function p1(e,r){var t=r||{},a=t.header!=null?t.header:h1,i=t.footer!=null?t.footer:f1,s=[a],o=wi(e["!ref"]);t.dense=Array.isArray(e),s.push(u1(e,o,t));for(var c=o.s.r;c<=o.e.r;++c)s.push(c1(e,o,c,t));return s.push("</table>"+i),s.join("")}function Wl(e,r,t){var a=t||{},i=0,s=0;if(a.origin!=null)if(typeof a.origin=="number")i=a.origin;else{var o=typeof a.origin=="string"?Vt(a.origin):a.origin;i=o.r,s=o.c}var c=r.getElementsByTagName("tr"),u=Math.min(a.sheetRows||1e7,c.length),w={s:{r:0,c:0},e:{r:i,c:s}};if(e["!ref"]){var y=wi(e["!ref"]);w.s.r=Math.min(w.s.r,y.s.r),w.s.c=Math.min(w.s.c,y.s.c),w.e.r=Math.max(w.e.r,y.e.r),w.e.c=Math.max(w.e.c,y.e.c),i==-1&&(w.e.r=i=y.e.r+1)}var L=[],N=0,A=e["!rows"]||(e["!rows"]=[]),p=0,g=0,O=0,M=0,_=0,j=0;for(e["!cols"]||(e["!cols"]=[]);p<c.length&&g<u;++p){var C=c[p];if(Yn(C)){if(a.display)continue;A[g]={hidden:!0}}var k=C.children;for(O=M=0;O<k.length;++O){var F=k[O];if(!(a.display&&Yn(F))){var P=F.hasAttribute("data-v")?F.getAttribute("data-v"):F.hasAttribute("v")?F.getAttribute("v"):Bo(F.innerHTML),I=F.getAttribute("data-z")||F.getAttribute("z");for(N=0;N<L.length;++N){var m=L[N];m.s.c==M+s&&m.s.r<g+i&&g+i<=m.e.r&&(M=m.e.c+1-s,N=-1)}j=+F.getAttribute("colspan")||1,((_=+F.getAttribute("rowspan")||1)>1||j>1)&&L.push({s:{r:g+i,c:M+s},e:{r:g+i+(_||1)-1,c:M+s+(j||1)-1}});var B={t:"s",v:P},T=F.getAttribute("data-t")||F.getAttribute("t")||"";P!=null&&(P.length==0?B.t=T||"z":a.raw||P.trim().length==0||T=="s"||(P==="TRUE"?B={t:"b",v:!0}:P==="FALSE"?B={t:"b",v:!1}:isNaN(Tr(P))?isNaN(vi(P).getDate())||(B={t:"d",v:St(P)},a.cellDates||(B={t:"n",v:$t(B.v)}),B.z=a.dateNF||Ke[14]):B={t:"n",v:Tr(P)})),B.z===void 0&&I!=null&&(B.z=I);var S="",x=F.getElementsByTagName("A");if(x&&x.length)for(var h=0;h<x.length&&!(x[h].hasAttribute("href")&&(S=x[h].getAttribute("href"),S.charAt(0)!="#"));++h);S&&S.charAt(0)!="#"&&(B.l={Target:S}),a.dense?(e[g+i]||(e[g+i]=[]),e[g+i][M+s]=B):e[Ye({c:M+s,r:g+i})]=B,w.e.c<M+s&&(w.e.c=M+s),M+=j}}++g}return L.length&&(e["!merges"]=(e["!merges"]||[]).concat(L)),w.e.r=Math.max(w.e.r,g-1+i),e["!ref"]=tt(w),g>=u&&(e["!fullref"]=tt((w.e.r=c.length-p+g-1+i,w))),e}function zl(e,r){var t=r||{},a=t.dense?[]:{};return Wl(a,e,r)}function g1(e,r){return Gr(zl(e,r),r)}function Yn(e){var r="",t=x1(e);return t&&(r=t(e).getPropertyValue("display")),r||(r=e.style&&e.style.display),r==="none"}function x1(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function m1(e){var r=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(a,i){return Array(parseInt(i,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g,"	").replace(/<text:line-break\/>/g,`
`),t=rt(r.replace(/<[^>]*>/g,""));return[t]}var $n={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function Gl(e,r){var t=r||{},a=ys(e),i=[],s,o,c={name:""},u="",w=0,y,L,N={},A=[],p=t.dense?[]:{},g,O,M={value:""},_="",j=0,C=[],k=-1,F=-1,P={s:{r:1e6,c:1e7},e:{r:0,c:0}},I=0,m={},B=[],T={},S=0,x=0,h=[],n=1,l=1,f=[],b={Names:[]},v={},G=["",""],U=[],D={},H="",z=0,W=!1,d=!1,R=0;for(Yi.lastIndex=0,a=a.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");g=Yi.exec(a);)switch(g[3]=g[3].replace(/_.*$/,"")){case"table":case"工作表":g[1]==="/"?(P.e.c>=P.s.c&&P.e.r>=P.s.r?p["!ref"]=tt(P):p["!ref"]="A1:A1",t.sheetRows>0&&t.sheetRows<=P.e.r&&(p["!fullref"]=p["!ref"],P.e.r=t.sheetRows-1,p["!ref"]=tt(P)),B.length&&(p["!merges"]=B),h.length&&(p["!rows"]=h),y.name=y.名称||y.name,typeof JSON<"u"&&JSON.stringify(y),A.push(y.name),N[y.name]=p,d=!1):g[0].charAt(g[0].length-2)!=="/"&&(y=Xe(g[0],!1),k=F=-1,P.s.r=P.s.c=1e7,P.e.r=P.e.c=0,p=t.dense?[]:{},B=[],h=[],d=!0);break;case"table-row-group":g[1]==="/"?--I:++I;break;case"table-row":case"行":if(g[1]==="/"){k+=n,n=1;break}if(L=Xe(g[0],!1),L.行号?k=L.行号-1:k==-1&&(k=0),n=+L["number-rows-repeated"]||1,n<10)for(R=0;R<n;++R)I>0&&(h[k+R]={level:I});F=-1;break;case"covered-table-cell":g[1]!=="/"&&++F,t.sheetStubs&&(t.dense?(p[k]||(p[k]=[]),p[k][F]={t:"z"}):p[Ye({r:k,c:F})]={t:"z"}),_="",C=[];break;case"table-cell":case"数据":if(g[0].charAt(g[0].length-2)==="/")++F,M=Xe(g[0],!1),l=parseInt(M["number-columns-repeated"]||"1",10),O={t:"z",v:null},M.formula&&t.cellFormula!=!1&&(O.f=Wn(rt(M.formula))),(M.数据类型||M["value-type"])=="string"&&(O.t="s",O.v=rt(M["string-value"]||""),t.dense?(p[k]||(p[k]=[]),p[k][F]=O):p[Ye({r:k,c:F})]=O),F+=l-1;else if(g[1]!=="/"){++F,_="",j=0,C=[],l=1;var q=n?k+n-1:k;if(F>P.e.c&&(P.e.c=F),F<P.s.c&&(P.s.c=F),k<P.s.r&&(P.s.r=k),q>P.e.r&&(P.e.r=q),M=Xe(g[0],!1),U=[],D={},O={t:M.数据类型||M["value-type"],v:null},t.cellFormula)if(M.formula&&(M.formula=rt(M.formula)),M["number-matrix-columns-spanned"]&&M["number-matrix-rows-spanned"]&&(S=parseInt(M["number-matrix-rows-spanned"],10)||0,x=parseInt(M["number-matrix-columns-spanned"],10)||0,T={s:{r:k,c:F},e:{r:k+S-1,c:F+x-1}},O.F=tt(T),f.push([T,O.F])),M.formula)O.f=Wn(M.formula);else for(R=0;R<f.length;++R)k>=f[R][0].s.r&&k<=f[R][0].e.r&&F>=f[R][0].s.c&&F<=f[R][0].e.c&&(O.F=f[R][1]);switch((M["number-columns-spanned"]||M["number-rows-spanned"])&&(S=parseInt(M["number-rows-spanned"],10)||0,x=parseInt(M["number-columns-spanned"],10)||0,T={s:{r:k,c:F},e:{r:k+S-1,c:F+x-1}},B.push(T)),M["number-columns-repeated"]&&(l=parseInt(M["number-columns-repeated"],10)),O.t){case"boolean":O.t="b",O.v=nt(M["boolean-value"]);break;case"float":O.t="n",O.v=parseFloat(M.value);break;case"percentage":O.t="n",O.v=parseFloat(M.value);break;case"currency":O.t="n",O.v=parseFloat(M.value);break;case"date":O.t="d",O.v=St(M["date-value"]),t.cellDates||(O.t="n",O.v=$t(O.v)),O.z="m/d/yy";break;case"time":O.t="n",O.v=Of(M["time-value"])/86400,t.cellDates&&(O.t="d",O.v=Oa(O.v)),O.z="HH:MM:SS";break;case"number":O.t="n",O.v=parseFloat(M.数据数值);break;default:if(O.t==="string"||O.t==="text"||!O.t)O.t="s",M["string-value"]!=null&&(_=rt(M["string-value"]),C=[]);else throw new Error("Unsupported value type "+O.t)}}else{if(W=!1,O.t==="s"&&(O.v=_||"",C.length&&(O.R=C),W=j==0),v.Target&&(O.l=v),U.length>0&&(O.c=U,U=[]),_&&t.cellText!==!1&&(O.w=_),W&&(O.t="z",delete O.v),(!W||t.sheetStubs)&&!(t.sheetRows&&t.sheetRows<=k))for(var J=0;J<n;++J){if(l=parseInt(M["number-columns-repeated"]||"1",10),t.dense)for(p[k+J]||(p[k+J]=[]),p[k+J][F]=J==0?O:Mt(O);--l>0;)p[k+J][F+l]=Mt(O);else for(p[Ye({r:k+J,c:F})]=O;--l>0;)p[Ye({r:k+J,c:F+l})]=Mt(O);P.e.c<=F&&(P.e.c=F)}l=parseInt(M["number-columns-repeated"]||"1",10),F+=l-1,l=0,O={},_="",C=[]}v={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(g[1]==="/"){if((s=i.pop())[0]!==g[3])throw"Bad state: "+s}else g[0].charAt(g[0].length-2)!=="/"&&i.push([g[3],!0]);break;case"annotation":if(g[1]==="/"){if((s=i.pop())[0]!==g[3])throw"Bad state: "+s;D.t=_,C.length&&(D.R=C),D.a=H,U.push(D)}else g[0].charAt(g[0].length-2)!=="/"&&i.push([g[3],!1]);H="",z=0,_="",j=0,C=[];break;case"creator":g[1]==="/"?H=a.slice(z,g.index):z=g.index+g[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(g[1]==="/"){if((s=i.pop())[0]!==g[3])throw"Bad state: "+s}else g[0].charAt(g[0].length-2)!=="/"&&i.push([g[3],!1]);_="",j=0,C=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(g[1]==="/"){if(m[c.name]=u,(s=i.pop())[0]!==g[3])throw"Bad state: "+s}else g[0].charAt(g[0].length-2)!=="/"&&(u="",c=Xe(g[0],!1),i.push([g[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(i[i.length-1][0]){case"time-style":case"date-style":o=Xe(g[0],!1),u+=$n[g[3]][o.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(i[i.length-1][0]){case"time-style":case"date-style":o=Xe(g[0],!1),u+=$n[g[3]][o.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(g[0].slice(-2)==="/>")break;if(g[1]==="/")switch(i[i.length-1][0]){case"number-style":case"date-style":case"time-style":u+=a.slice(w,g.index);break}else w=g.index+g[0].length;break;case"named-range":o=Xe(g[0],!1),G=Va(o["cell-range-address"]);var Y={Name:o.name,Ref:G[0]+"!"+G[1]};d&&(Y.Sheet=A.length),b.Names.push(Y);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(i[i.length-1][0])>-1)break;if(g[1]==="/"&&(!M||!M["string-value"])){var ee=m1(a.slice(j,g.index));_=(_.length>0?_+`
`:"")+ee[0]}else Xe(g[0],!1),j=g.index+g[0].length;break;case"s":break;case"database-range":if(g[1]==="/")break;try{G=Va(Xe(g[0])["target-range-address"]),N[G[0]]["!autofilter"]={ref:G[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(g[1]!=="/"){if(v=Xe(g[0],!1),!v.href)break;v.Target=rt(v.href),delete v.href,v.Target.charAt(0)=="#"&&v.Target.indexOf(".")>-1?(G=Va(v.Target.slice(1)),v.Target="#"+G[0]+"!"+G[1]):v.Target.match(/^\.\.[\\\/]/)&&(v.Target=v.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(g[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(t.WTF)throw new Error(g)}}var E={Sheets:N,SheetNames:A,Workbook:b};return t.bookSheets&&delete E.Sheets,E}function Kn(e,r){r=r||{},hr(e,"META-INF/manifest.xml")&&F0(xt(e,"META-INF/manifest.xml"),r);var t=ir(e,"content.xml");if(!t)throw new Error("Missing content.xml in ODS / UOF file");var a=Gl(st(t),r);return hr(e,"meta.xml")&&(a.Props=il(xt(e,"meta.xml"))),a}function qn(e,r){return Gl(e,r)}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Ps(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function is(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):st(ii(e))}function as(e){var r=e.reduce(function(i,s){return i+s.length},0),t=new Uint8Array(r),a=0;return e.forEach(function(i){t.set(i,a),a+=i.length}),t}function Zn(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function v1(e,r){for(var t=(e[r+15]&127)<<7|e[r+14]>>1,a=e[r+14]&1,i=r+13;i>=r;--i)a=a*256+e[i];return(e[r+15]&128?-a:a)*Math.pow(10,t-6176)}function Zi(e,r){var t=r?r[0]:0,a=e[t]&127;e:if(e[t++]>=128&&(a|=(e[t]&127)<<7,e[t++]<128||(a|=(e[t]&127)<<14,e[t++]<128)||(a|=(e[t]&127)<<21,e[t++]<128)||(a+=(e[t]&127)*Math.pow(2,28),++t,e[t++]<128)||(a+=(e[t]&127)*Math.pow(2,35),++t,e[t++]<128)||(a+=(e[t]&127)*Math.pow(2,42),++t,e[t++]<128)))break e;return r&&(r[0]=t),a}function kt(e){var r=0,t=e[r]&127;e:if(e[r++]>=128){if(t|=(e[r]&127)<<7,e[r++]<128||(t|=(e[r]&127)<<14,e[r++]<128)||(t|=(e[r]&127)<<21,e[r++]<128))break e;t|=(e[r]&127)<<28}return t}function Rt(e){for(var r=[],t=[0];t[0]<e.length;){var a=t[0],i=Zi(e,t),s=i&7;i=Math.floor(i/8);var o=0,c;if(i==0)break;switch(s){case 0:{for(var u=t[0];e[t[0]++]>=128;);c=e.slice(u,t[0])}break;case 5:o=4,c=e.slice(t[0],t[0]+o),t[0]+=o;break;case 1:o=8,c=e.slice(t[0],t[0]+o),t[0]+=o;break;case 2:o=Zi(e,t),c=e.slice(t[0],t[0]+o),t[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(s," for Field ").concat(i," at offset ").concat(a))}var w={data:c,type:s};r[i]==null?r[i]=[w]:r[i].push(w)}return r}function Fs(e,r){return(e==null?void 0:e.map(function(t){return r(t.data)}))||[]}function y1(e){for(var r,t=[],a=[0];a[0]<e.length;){var i=Zi(e,a),s=Rt(e.slice(a[0],a[0]+i));a[0]+=i;var o={id:kt(s[1][0].data),messages:[]};s[2].forEach(function(c){var u=Rt(c.data),w=kt(u[3][0].data);o.messages.push({meta:u,data:e.slice(a[0],a[0]+w)}),a[0]+=w}),(r=s[3])!=null&&r[0]&&(o.merge=kt(s[3][0].data)>>>0>0),t.push(o)}return t}function T1(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],a=Zi(r,t),i=[];t[0]<r.length;){var s=r[t[0]]&3;if(s==0){var o=r[t[0]++]>>2;if(o<60)++o;else{var c=o-59;o=r[t[0]],c>1&&(o|=r[t[0]+1]<<8),c>2&&(o|=r[t[0]+2]<<16),c>3&&(o|=r[t[0]+3]<<24),o>>>=0,o++,t[0]+=c}i.push(r.slice(t[0],t[0]+o)),t[0]+=o;continue}else{var u=0,w=0;if(s==1?(w=(r[t[0]]>>2&7)+4,u=(r[t[0]++]&224)<<3,u|=r[t[0]++]):(w=(r[t[0]++]>>2)+1,s==2?(u=r[t[0]]|r[t[0]+1]<<8,t[0]+=2):(u=(r[t[0]]|r[t[0]+1]<<8|r[t[0]+2]<<16|r[t[0]+3]<<24)>>>0,t[0]+=4)),i=[as(i)],u==0)throw new Error("Invalid offset 0");if(u>i[0].length)throw new Error("Invalid offset beyond length");if(w>=u)for(i.push(i[0].slice(-u)),w-=u;w>=i[i.length-1].length;)i.push(i[i.length-1]),w-=i[i.length-1].length;i.push(i[0].slice(-u,-u+w))}}var y=as(i);if(y.length!=a)throw new Error("Unexpected length: ".concat(y.length," != ").concat(a));return y}function k1(e){for(var r=[],t=0;t<e.length;){var a=e[t++],i=e[t]|e[t+1]<<8|e[t+2]<<16;t+=3,r.push(T1(a,e.slice(t,t+i))),t+=i}if(t!==e.length)throw new Error("data is not a valid framed stream!");return as(r)}function b1(e,r,t,a){var i=Ps(e),s=i.getUint32(4,!0),o=(a>1?12:8)+Zn(s&(a>1?3470:398))*4,c=-1,u=-1,w=NaN,y=new Date(2001,0,1);s&512&&(c=i.getUint32(o,!0),o+=4),o+=Zn(s&(a>1?12288:4096))*4,s&16&&(u=i.getUint32(o,!0),o+=4),s&32&&(w=i.getFloat64(o,!0),o+=8),s&64&&(y.setTime(y.getTime()+i.getFloat64(o,!0)*1e3),o+=8);var L;switch(e[2]){case 0:break;case 2:L={t:"n",v:w};break;case 3:L={t:"s",v:r[u]};break;case 5:L={t:"d",v:y};break;case 6:L={t:"b",v:w>0};break;case 7:L={t:"n",v:w/86400};break;case 8:L={t:"e",v:0};break;case 9:if(c>-1)L={t:"s",v:t[c]};else if(u>-1)L={t:"s",v:r[u]};else if(!isNaN(w))L={t:"n",v:w};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return L}function _1(e,r,t){var a=Ps(e),i=a.getUint32(8,!0),s=12,o=-1,c=-1,u=NaN,w=NaN,y=new Date(2001,0,1);i&1&&(u=v1(e,s),s+=16),i&2&&(w=a.getFloat64(s,!0),s+=8),i&4&&(y.setTime(y.getTime()+a.getFloat64(s,!0)*1e3),s+=8),i&8&&(c=a.getUint32(s,!0),s+=4),i&16&&(o=a.getUint32(s,!0),s+=4);var L;switch(e[1]){case 0:break;case 2:L={t:"n",v:u};break;case 3:L={t:"s",v:r[c]};break;case 5:L={t:"d",v:y};break;case 6:L={t:"b",v:w>0};break;case 7:L={t:"n",v:w/86400};break;case 8:L={t:"e",v:0};break;case 9:if(o>-1)L={t:"s",v:t[o]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e.slice(0,4)));break;case 10:L={t:"n",v:u};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e.slice(0,4)))}return L}function w1(e,r,t){switch(e[0]){case 0:case 1:case 2:case 3:return b1(e,r,t,e[0]);case 5:return _1(e,r,t);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Ur(e){var r=Rt(e);return Zi(r[1][0].data)}function Jn(e,r){var t=Rt(r.data),a=kt(t[1][0].data),i=t[3],s=[];return(i||[]).forEach(function(o){var c=Rt(o.data),u=kt(c[1][0].data)>>>0;switch(a){case 1:s[u]=is(c[3][0].data);break;case 8:{var w=e[Ur(c[9][0].data)][0],y=Rt(w.data),L=e[Ur(y[1][0].data)][0],N=kt(L.meta[1][0].data);if(N!=2001)throw new Error("2000 unexpected reference to ".concat(N));var A=Rt(L.data);s[u]=A[3].map(function(p){return is(p.data)}).join("")}break}}),s}function S1(e,r){var t,a,i,s,o,c,u,w,y,L,N,A,p,g,O=Rt(e),M=kt(O[1][0].data)>>>0,_=kt(O[2][0].data)>>>0,j=((a=(t=O[8])==null?void 0:t[0])==null?void 0:a.data)&&kt(O[8][0].data)>0||!1,C,k;if((s=(i=O[7])==null?void 0:i[0])!=null&&s.data&&r!=0)C=(c=(o=O[7])==null?void 0:o[0])==null?void 0:c.data,k=(w=(u=O[6])==null?void 0:u[0])==null?void 0:w.data;else if((L=(y=O[4])==null?void 0:y[0])!=null&&L.data&&r!=1)C=(A=(N=O[4])==null?void 0:N[0])==null?void 0:A.data,k=(g=(p=O[3])==null?void 0:p[0])==null?void 0:g.data;else throw"NUMBERS Tile missing ".concat(r," cell storage");for(var F=j?4:1,P=Ps(C),I=[],m=0;m<C.length/2;++m){var B=P.getUint16(m*2,!0);B<65535&&I.push([m,B])}if(I.length!=_)throw"Expected ".concat(_," cells, found ").concat(I.length);var T=[];for(m=0;m<I.length-1;++m)T[I[m][0]]=k.subarray(I[m][1]*F,I[m+1][1]*F);return I.length>=1&&(T[I[I.length-1][0]]=k.subarray(I[I.length-1][1]*F)),{R:M,cells:T}}function A1(e,r){var t,a=Rt(r.data),i=(t=a==null?void 0:a[7])!=null&&t[0]?kt(a[7][0].data)>>>0>0?1:0:-1,s=Fs(a[5],function(o){return S1(o,i)});return{nrows:kt(a[4][0].data)>>>0,data:s.reduce(function(o,c){return o[c.R]||(o[c.R]=[]),c.cells.forEach(function(u,w){if(o[c.R][w])throw new Error("Duplicate cell r=".concat(c.R," c=").concat(w));o[c.R][w]=u}),o},[])}}function E1(e,r,t){var a,i=Rt(r.data),s={s:{r:0,c:0},e:{r:0,c:0}};if(s.e.r=(kt(i[6][0].data)>>>0)-1,s.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(s.e.c=(kt(i[7][0].data)>>>0)-1,s.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));t["!ref"]=tt(s);var o=Rt(i[4][0].data),c=Jn(e,e[Ur(o[4][0].data)][0]),u=(a=o[17])!=null&&a[0]?Jn(e,e[Ur(o[17][0].data)][0]):[],w=Rt(o[3][0].data),y=0;w[1].forEach(function(L){var N=Rt(L.data),A=e[Ur(N[2][0].data)][0],p=kt(A.meta[1][0].data);if(p!=6002)throw new Error("6001 unexpected reference to ".concat(p));var g=A1(e,A);g.data.forEach(function(O,M){O.forEach(function(_,j){var C=Ye({r:y+M,c:j}),k=w1(_,c,u);k&&(t[C]=k)})}),y+=g.nrows})}function C1(e,r){var t=Rt(r.data),a={"!ref":"A1"},i=e[Ur(t[2][0].data)],s=kt(i[0].meta[1][0].data);if(s!=6001)throw new Error("6000 unexpected reference to ".concat(s));return E1(e,i[0],a),a}function M1(e,r){var t,a=Rt(r.data),i={name:(t=a[1])!=null&&t[0]?is(a[1][0].data):"",sheets:[]},s=Fs(a[2],Ur);return s.forEach(function(o){e[o].forEach(function(c){var u=kt(c.meta[1][0].data);u==6e3&&i.sheets.push(C1(e,c))})}),i}function D1(e,r){var t=Rs(),a=Rt(r.data),i=Fs(a[1],Ur);if(i.forEach(function(s){e[s].forEach(function(o){var c=kt(o.meta[1][0].data);if(c==2){var u=M1(e,o);u.sheets.forEach(function(w,y){Bs(t,w,y==0?u.name:u.name+"_"+y,!0)})}})}),t.SheetNames.length==0)throw new Error("Empty NUMBERS file");return t}function $a(e){var r,t,a,i,s={},o=[];if(e.FullPaths.forEach(function(u){if(u.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(u){if(u.name.match(/\.iwa$/)){var w;try{w=k1(u.content)}catch(L){return console.log("?? "+u.content.length+" "+(L.message||L))}var y;try{y=y1(w)}catch(L){return console.log("## "+(L.message||L))}y.forEach(function(L){s[L.id]=L.messages,o.push(L.id)})}}),!o.length)throw new Error("File has no messages");var c=((i=(a=(t=(r=s==null?void 0:s[1])==null?void 0:r[0])==null?void 0:t.meta)==null?void 0:a[1])==null?void 0:i[0].data)&&kt(s[1][0].meta[1][0].data)==1&&s[1][0];if(c||o.forEach(function(u){s[u].forEach(function(w){var y=kt(w.meta[1][0].data)>>>0;if(y==1)if(!c)c=w;else throw new Error("Document has multiple roots")})}),!c)throw new Error("Cannot find Document root");return D1(s,c)}function O1(e){return function(t){for(var a=0;a!=e.length;++a){var i=e[a];t[i[0]]===void 0&&(t[i[0]]=i[1]),i[2]==="n"&&(t[i[0]]=Number(t[i[0]]))}}}function Ls(e){O1([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function P1(e){return pi.WS.indexOf(e)>-1?"sheet":e==pi.CS?"chart":e==pi.DS?"dialog":e==pi.MS?"macro":e&&e.length?e:"sheet"}function F1(e,r){if(!e)return 0;try{e=r.map(function(a){return a.id||(a.id=a.strRelID),[a.name,e["!id"][a.id].Target,P1(e["!id"][a.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function L1(e,r,t,a,i,s,o,c,u,w,y,L){try{s[a]=Bi(ir(e,t,!0),r);var N=xt(e,r),A;switch(c){case"sheet":A=Um(N,r,i,u,s[a],w,y,L);break;case"chart":if(A=Hm(N,r,i,u,s[a],w,y,L),!A||!A["!drawel"])break;var p=Pi(A["!drawel"].Target,r),g=Ja(p),O=jp(ir(e,p,!0),Bi(ir(e,g,!0),p)),M=Pi(O,p),_=Ja(M);A=_m(ir(e,M,!0),M,u,Bi(ir(e,_,!0),M),w,A);break;case"macro":A=Wm(N,r,i,u,s[a],w,y,L);break;case"dialog":A=zm(N,r,i,u,s[a],w,y,L);break;default:throw new Error("Unrecognized sheet type "+c)}o[a]=A;var j=[];s&&s[a]&&_r(s[a]).forEach(function(C){var k="";if(s[a][C].Type==pi.CMNT){k=Pi(s[a][C].Target,r);var F=Ym(xt(e,k,!0),k,u);if(!F||!F.length)return;Bn(A,F,!1)}s[a][C].Type==pi.TCMNT&&(k=Pi(s[a][C].Target,r),j=j.concat(Hp(xt(e,k,!0),u)))}),j&&j.length&&Bn(A,j,!0,u.people||[])}catch(C){if(u.WTF)throw C}}function lr(e){return e.charAt(0)=="/"?e.slice(1):e}function I1(e,r){if(Eo(),r=r||{},Ls(r),hr(e,"META-INF/manifest.xml")||hr(e,"objectdata.xml"))return Kn(e,r);if(hr(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof $a<"u"){if(e.FileIndex)return $a(e);var t=et.utils.cfb_new();return hn(e).forEach(function(h){Rf(t,h,Fo(e,h))}),$a(t)}throw new Error("Unsupported NUMBERS file")}if(!hr(e,"[Content_Types].xml"))throw hr(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):hr(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var a=hn(e),i=O0(ir(e,"[Content_Types].xml")),s=!1,o,c;if(i.workbooks.length===0&&(c="xl/workbook.xml",xt(e,c,!0)&&i.workbooks.push(c)),i.workbooks.length===0){if(c="xl/workbook.bin",!xt(e,c,!0))throw new Error("Could not find workbook");i.workbooks.push(c),s=!0}i.workbooks[0].slice(-3)=="bin"&&(s=!0);var u={},w={};if(!r.bookSheets&&!r.bookProps){if(Ui=[],i.sst)try{Ui=Vm(xt(e,lr(i.sst)),i.sst,r)}catch(h){if(r.WTF)throw h}r.cellStyles&&i.themes.length&&(u=Xm(ir(e,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],r)),i.style&&(w=Gm(xt(e,lr(i.style)),i.style,u,r))}i.links.map(function(h){try{var n=Bi(ir(e,Ja(lr(h))),h);return Km(xt(e,lr(h)),n,h,r)}catch{}});var y=jm(xt(e,lr(i.workbooks[0])),i.workbooks[0],r),L={},N="";i.coreprops.length&&(N=xt(e,lr(i.coreprops[0]),!0),N&&(L=il(N)),i.extprops.length!==0&&(N=xt(e,lr(i.extprops[0]),!0),N&&R0(N,L,r)));var A={};(!r.bookSheets||r.bookProps)&&i.custprops.length!==0&&(N=ir(e,lr(i.custprops[0]),!0),N&&(A=N0(N,r)));var p={};if((r.bookSheets||r.bookProps)&&(y.Sheets?o=y.Sheets.map(function(n){return n.name}):L.Worksheets&&L.SheetNames.length>0&&(o=L.SheetNames),r.bookProps&&(p.Props=L,p.Custprops=A),r.bookSheets&&typeof o<"u"&&(p.SheetNames=o),r.bookSheets?p.SheetNames:r.bookProps))return p;o={};var g={};r.bookDeps&&i.calcchain&&(g=$m(xt(e,lr(i.calcchain)),i.calcchain));var O=0,M={},_,j;{var C=y.Sheets;L.Worksheets=C.length,L.SheetNames=[];for(var k=0;k!=C.length;++k)L.SheetNames[k]=C[k].name}var F=s?"bin":"xml",P=i.workbooks[0].lastIndexOf("/"),I=(i.workbooks[0].slice(0,P+1)+"_rels/"+i.workbooks[0].slice(P+1)+".rels").replace(/^\//,"");hr(e,I)||(I="xl/_rels/workbook."+F+".rels");var m=Bi(ir(e,I,!0),I.replace(/_rels.*/,"s5s"));(i.metadata||[]).length>=1&&(r.xlmeta=qm(xt(e,lr(i.metadata[0])),i.metadata[0],r)),(i.people||[]).length>=1&&(r.people=Wp(xt(e,lr(i.people[0])),r)),m&&(m=F1(m,y.Sheets));var B=xt(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(O=0;O!=L.Worksheets;++O){var T="sheet";if(m&&m[O]?(_="xl/"+m[O][1].replace(/[\/]?xl\//,""),hr(e,_)||(_=m[O][1]),hr(e,_)||(_=I.replace(/_rels\/.*$/,"")+m[O][1]),T=m[O][2]):(_="xl/worksheets/sheet"+(O+1-B)+"."+F,_=_.replace(/sheet0\./,"sheet.")),j=_.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),r&&r.sheets!=null)switch(typeof r.sheets){case"number":if(O!=r.sheets)continue e;break;case"string":if(L.SheetNames[O].toLowerCase()!=r.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(r.sheets)){for(var S=!1,x=0;x!=r.sheets.length;++x)typeof r.sheets[x]=="number"&&r.sheets[x]==O&&(S=1),typeof r.sheets[x]=="string"&&r.sheets[x].toLowerCase()==L.SheetNames[O].toLowerCase()&&(S=1);if(!S)continue e}}L1(e,_,j,L.SheetNames[O],O,M,o,T,r,y,u,w)}return p={Directory:i,Workbook:y,Props:L,Custprops:A,Deps:g,Sheets:o,SheetNames:L.SheetNames,Strings:Ui,Styles:w,Themes:u,SSF:Mt(Ke)},r&&r.bookFiles&&(e.files?(p.keys=a,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach(function(h,n){h=h.replace(/^Root Entry[\/]/,""),p.keys.push(h),p.files[h]=e.FileIndex[n]}))),r&&r.bookVBA&&(i.vba.length>0?p.vbaraw=xt(e,lr(i.vba[0]),!0):i.defaults&&i.defaults.bin===Vp&&(p.vbaraw=xt(e,"xl/vbaProject.bin",!0))),p}function R1(e,r){var t=r||{},a="Workbook",i=et.find(e,a);try{if(a="/!DataSpaces/Version",i=et.find(e,a),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(Cu(i.content),a="/!DataSpaces/DataSpaceMap",i=et.find(e,a),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=Du(i.content);if(s.length!==1||s[0].comps.length!==1||s[0].comps[0].t!==0||s[0].name!=="StrongEncryptionDataSpace"||s[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",i=et.find(e,a),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+a);var o=Ou(i.content);if(o.length!=1||o[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",i=et.find(e,a),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+a);Fu(i.content)}catch{}if(a="/EncryptionInfo",i=et.find(e,a),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+a);var c=Lu(i.content);if(a="/EncryptedPackage",i=et.find(e,a),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(c[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(c[1],i.content,t.password||"",t);if(c[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(c[1],i.content,t.password||"",t);throw new Error("File is password-protected")}function Is(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=ar(e.slice(0,12));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function B1(e,r){return et.find(e,"EncryptedPackage")?R1(e,r):Hl(e,r)}function N1(e,r){var t,a=e,i=r||{};return i.type||(i.type=Qe&&Buffer.isBuffer(e)?"buffer":"base64"),t=Lo(a,i),I1(t,i)}function Xl(e,r){var t=0;e:for(;t<e.length;)switch(e.charCodeAt(t)){case 10:case 13:case 32:++t;break;case 60:return ts(e.slice(t),r);default:break e}return $i.to_workbook(e,r)}function j1(e,r){var t="",a=Is(e,r);switch(r.type){case"base64":t=ar(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=Jr(e);break;default:throw new Error("Unrecognized type "+r.type)}return a[0]==239&&a[1]==187&&a[2]==191&&(t=st(t)),r.type="binary",Xl(t,r)}function U1(e,r){var t=e;return r.type=="base64"&&(t=ar(t)),t=Rr.utils.decode(1200,t.slice(2),"str"),r.type="binary",Xl(t,r)}function H1(e){return e.match(/[^\x00-\x7F]/)?Fi(e):e}function Ka(e,r,t,a){return a?(t.type="string",$i.to_workbook(e,t)):$i.to_workbook(r,t)}function ss(e,r){go();var t=r||{};if(typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer)return ss(new Uint8Array(e),(t=Mt(t),t.type="array",t));typeof Uint8Array<"u"&&e instanceof Uint8Array&&!t.type&&(t.type=typeof Deno<"u"?"buffer":"array");var a=e,i=[0,0,0,0],s=!1;if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),mi={},t.dateNF&&(mi.dateNF=t.dateNF),t.type||(t.type=Qe&&Buffer.isBuffer(e)?"buffer":"base64"),t.type=="file"&&(t.type=Qe?"buffer":"binary",a=Mf(e),typeof Uint8Array<"u"&&!Qe&&(t.type="array")),t.type=="string"&&(s=!0,t.type="binary",t.codepage=65001,a=H1(e)),t.type=="array"&&typeof Uint8Array<"u"&&e instanceof Uint8Array&&typeof ArrayBuffer<"u"){var o=new ArrayBuffer(3),c=new Uint8Array(o);if(c.foo="bar",!c.foo)return t=Mt(t),t.type="array",ss(us(a),t)}switch((i=Is(a,t))[0]){case 208:if(i[1]===207&&i[2]===17&&i[3]===224&&i[4]===161&&i[5]===177&&i[6]===26&&i[7]===225)return B1(et.read(a,t),t);break;case 9:if(i[1]<=8)return Hl(a,t);break;case 60:return ts(a,t);case 73:if(i[1]===73&&i[2]===42&&i[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(i[1]===68)return gu(a,t);break;case 84:if(i[1]===65&&i[2]===66&&i[3]===76)return uu.to_workbook(a,t);break;case 80:return i[1]===75&&i[2]<9&&i[3]<9?N1(a,t):Ka(e,a,t,s);case 239:return i[3]===60?ts(a,t):Ka(e,a,t,s);case 255:if(i[1]===254)return U1(a,t);if(i[1]===0&&i[2]===2&&i[3]===0)return ji.to_workbook(a,t);break;case 0:if(i[1]===0&&(i[2]>=2&&i[3]===0||i[2]===0&&(i[3]===8||i[3]===9)))return ji.to_workbook(a,t);break;case 3:case 131:case 139:case 140:return Rn.to_workbook(a,t);case 123:if(i[1]===92&&i[2]===114&&i[3]===116)return Vu.to_workbook(a,t);break;case 10:case 13:case 32:return j1(a,t);case 137:if(i[1]===80&&i[2]===78&&i[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return fu.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31?Rn.to_workbook(a,t):Ka(e,a,t,s)}function W1(e,r,t,a,i,s,o,c){var u=Dt(t),w=c.defval,y=c.raw||!Object.prototype.hasOwnProperty.call(c,"raw"),L=!0,N=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(N,"__rowNum__",{value:t,enumerable:!1})}catch{N.__rowNum__=t}else N.__rowNum__=t;if(!o||e[t])for(var A=r.s.c;A<=r.e.c;++A){var p=o?e[t][A]:e[a[A]+u];if(p===void 0||p.t===void 0){if(w===void 0)continue;s[A]!=null&&(N[s[A]]=w);continue}var g=p.v;switch(p.t){case"z":if(g==null)break;continue;case"e":g=g==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(s[A]!=null){if(g==null)if(p.t=="e"&&g===null)N[s[A]]=null;else if(w!==void 0)N[s[A]]=w;else if(y&&g===null)N[s[A]]=null;else continue;else N[s[A]]=y&&(p.t!=="n"||p.t==="n"&&c.rawNumbers!==!1)?g:Dr(p,g,c);g!=null&&(L=!1)}}return{row:N,isempty:L}}function ns(e,r){if(e==null||e["!ref"]==null)return[];var t={t:"n",v:0},a=0,i=1,s=[],o=0,c="",u={s:{r:0,c:0},e:{r:0,c:0}},w=r||{},y=w.range!=null?w.range:e["!ref"];switch(w.header===1?a=1:w.header==="A"?a=2:Array.isArray(w.header)?a=3:w.header==null&&(a=0),typeof y){case"string":u=dt(y);break;case"number":u=dt(e["!ref"]),u.s.r=y;break;default:u=y}a>0&&(i=0);var L=Dt(u.s.r),N=[],A=[],p=0,g=0,O=Array.isArray(e),M=u.s.r,_=0,j={};O&&!e[M]&&(e[M]=[]);var C=w.skipHidden&&e["!cols"]||[],k=w.skipHidden&&e["!rows"]||[];for(_=u.s.c;_<=u.e.c;++_)if(!(C[_]||{}).hidden)switch(N[_]=Tt(_),t=O?e[M][_]:e[N[_]+L],a){case 1:s[_]=_-u.s.c;break;case 2:s[_]=N[_];break;case 3:s[_]=w.header[_-u.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),c=o=Dr(t,null,w),g=j[o]||0,!g)j[o]=1;else{do c=o+"_"+g++;while(j[c]);j[o]=g,j[c]=1}s[_]=c}for(M=u.s.r+i;M<=u.e.r;++M)if(!(k[M]||{}).hidden){var F=W1(e,u,M,N,a,s,O,w);(F.isempty===!1||(a===1?w.blankrows!==!1:w.blankrows))&&(A[p++]=F.row)}return A.length=p,A}var Qn=/"/g;function z1(e,r,t,a,i,s,o,c){for(var u=!0,w=[],y="",L=Dt(t),N=r.s.c;N<=r.e.c;++N)if(a[N]){var A=c.dense?(e[t]||[])[N]:e[a[N]+L];if(A==null)y="";else if(A.v!=null){u=!1,y=""+(c.rawNumbers&&A.t=="n"?A.v:Dr(A,null,c));for(var p=0,g=0;p!==y.length;++p)if((g=y.charCodeAt(p))===i||g===s||g===34||c.forceQuotes){y='"'+y.replace(Qn,'""')+'"';break}y=="ID"&&(y='"ID"')}else A.f!=null&&!A.F?(u=!1,y="="+A.f,y.indexOf(",")>=0&&(y='"'+y.replace(Qn,'""')+'"')):y="";w.push(y)}return c.blankrows===!1&&u?null:w.join(o)}function Vl(e,r){var t=[],a=r??{};if(e==null||e["!ref"]==null)return"";var i=dt(e["!ref"]),s=a.FS!==void 0?a.FS:",",o=s.charCodeAt(0),c=a.RS!==void 0?a.RS:`
`,u=c.charCodeAt(0),w=new RegExp((s=="|"?"\\|":s)+"+$"),y="",L=[];a.dense=Array.isArray(e);for(var N=a.skipHidden&&e["!cols"]||[],A=a.skipHidden&&e["!rows"]||[],p=i.s.c;p<=i.e.c;++p)(N[p]||{}).hidden||(L[p]=Tt(p));for(var g=0,O=i.s.r;O<=i.e.r;++O)(A[O]||{}).hidden||(y=z1(e,i,O,L,o,u,s,a),y!=null&&(a.strip&&(y=y.replace(w,"")),(y||a.blankrows!==!1)&&t.push((g++?c:"")+y)));return delete a.dense,t.join("")}function G1(e,r){r||(r={}),r.FS="	",r.RS=`
`;var t=Vl(e,r);return t}function X1(e){var r="",t,a="";if(e==null||e["!ref"]==null)return[];var i=dt(e["!ref"]),s="",o=[],c,u=[],w=Array.isArray(e);for(c=i.s.c;c<=i.e.c;++c)o[c]=Tt(c);for(var y=i.s.r;y<=i.e.r;++y)for(s=Dt(y),c=i.s.c;c<=i.e.c;++c)if(r=o[c]+s,t=w?(e[y]||[])[c]:e[r],a="",t!==void 0){if(t.F!=null){if(r=t.F,!t.f)continue;a=t.f,r.indexOf(":")==-1&&(r=r+":"+r)}if(t.f!=null)a=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)a=""+t.v;else if(t.t=="b")a=t.v?"TRUE":"FALSE";else if(t.w!==void 0)a="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?a="'"+t.v:a=""+t.v}}u[u.length]=r+"="+a}return u}function Yl(e,r,t){var a=t||{},i=+!a.skipHeader,s=e||{},o=0,c=0;if(s&&a.origin!=null)if(typeof a.origin=="number")o=a.origin;else{var u=typeof a.origin=="string"?Vt(a.origin):a.origin;o=u.r,c=u.c}var w,y={s:{c:0,r:0},e:{c,r:o+r.length-1+i}};if(s["!ref"]){var L=dt(s["!ref"]);y.e.c=Math.max(y.e.c,L.e.c),y.e.r=Math.max(y.e.r,L.e.r),o==-1&&(o=L.e.r+1,y.e.r=o+r.length-1+i)}else o==-1&&(o=0,y.e.r=r.length-1+i);var N=a.header||[],A=0;r.forEach(function(g,O){_r(g).forEach(function(M){(A=N.indexOf(M))==-1&&(N[A=N.length]=M);var _=g[M],j="z",C="",k=Ye({c:c+A,r:o+O+i});w=Ji(s,k),_&&typeof _=="object"&&!(_ instanceof Date)?s[k]=_:(typeof _=="number"?j="n":typeof _=="boolean"?j="b":typeof _=="string"?j="s":_ instanceof Date?(j="d",a.cellDates||(j="n",_=$t(_)),C=a.dateNF||Ke[14]):_===null&&a.nullError&&(j="e",_=0),w?(w.t=j,w.v=_,delete w.w,delete w.R,C&&(w.z=C)):s[k]=w={t:j,v:_},C&&(w.z=C))})}),y.e.c=Math.max(y.e.c,c+N.length-1);var p=Dt(o);if(i)for(A=0;A<N.length;++A)s[Tt(A+c)+p]={t:"s",v:N[A]};return s["!ref"]=tt(y),s}function V1(e,r){return Yl(null,e,r)}function Ji(e,r,t){if(typeof r=="string"){if(Array.isArray(e)){var a=Vt(r);return e[a.r]||(e[a.r]=[]),e[a.r][a.c]||(e[a.r][a.c]={t:"z"})}return e[r]||(e[r]={t:"z"})}return typeof r!="number"?Ji(e,Ye(r)):Ji(e,Ye({r,c:t||0}))}function Y1(e,r){if(typeof r=="number"){if(r>=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}function Rs(){return{SheetNames:[],Sheets:{}}}function Bs(e,r,t,a){var i=1;if(!t)for(;i<=65535&&e.SheetNames.indexOf(t="Sheet"+i)!=-1;++i,t=void 0);if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(a&&e.SheetNames.indexOf(t)>=0){var s=t.match(/(^.*?)(\d+)$/);i=s&&+s[2]||0;var o=s&&s[1]||t;for(++i;i<=65535&&e.SheetNames.indexOf(t=o+i)!=-1;++i);}if(Om(t),e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return e.SheetNames.push(t),e.Sheets[t]=r,t}function $1(e,r,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var a=Y1(e,r);switch(e.Workbook.Sheets[a]||(e.Workbook.Sheets[a]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}e.Workbook.Sheets[a].Hidden=t}function K1(e,r){return e.z=r,e}function $l(e,r,t){return r?(e.l={Target:r},t&&(e.l.Tooltip=t)):delete e.l,e}function q1(e,r,t){return $l(e,"#"+r,t)}function Z1(e,r,t){e.c||(e.c=[]),e.c.push({t:r,a:t||"SheetJS"})}function J1(e,r,t,a){for(var i=typeof r!="string"?r:dt(r),s=typeof r=="string"?r:tt(r),o=i.s.r;o<=i.e.r;++o)for(var c=i.s.c;c<=i.e.c;++c){var u=Ji(e,o,c);u.t="n",u.F=s,delete u.v,o==i.s.r&&c==i.s.c&&(u.f=t,a&&(u.D=!0))}return e}var Q1={encode_col:Tt,encode_row:Dt,encode_cell:Ye,encode_range:tt,decode_col:bs,decode_row:ks,split_cell:h0,decode_cell:Vt,decode_range:wi,format_cell:Dr,sheet_add_aoa:Jo,sheet_add_json:Yl,sheet_add_dom:Wl,aoa_to_sheet:Si,json_to_sheet:V1,table_to_sheet:zl,table_to_book:g1,sheet_to_csv:Vl,sheet_to_txt:G1,sheet_to_json:ns,sheet_to_html:p1,sheet_to_formulae:X1,sheet_to_row_object_array:ns,sheet_get_cell:Ji,book_new:Rs,book_append_sheet:Bs,book_set_sheet_visibility:$1,cell_set_number_format:K1,cell_set_hyperlink:$l,cell_set_internal_link:q1,cell_add_comment:Z1,sheet_set_array_formula:J1,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const ev={style:{display:"flex","align-items":"center"}},tv={style:{"margin-left":"20px",color:"#2d8cf0"}},rv={style:{float:"right"}},iv={__name:"ImportVue",props:{task:{required:!0,default:{}}},emits:["importFiles"],setup(e,{emit:r}){const t=e,a=ze(!1),i=bt(),s=ze(0),o=ze(!1),c=ze([]),u=g=>new Promise(O=>{const M=new FileReader;M.readAsBinaryString(g),M.onload=_=>{O(_.target.result)}}),w=async({file:g})=>{const O=await u(g.file),M=ss(O,{type:"binary",cellDates:!0}),_=M.Sheets[M.SheetNames[0]];c.value=Q1.sheet_to_json(_),console.log("导入",c.value),c.value.forEach(j=>{j.记录时间=oo(j.记录时间,"YYYY-MM-DD HH:mm:ss").value})},y=qe({Time_start:null,Time_end:null,T_sn:"",T_id:"",page:1,page_z:9999}),L=()=>{s.value=0,o.value=!0,a.value=!1};fr(o,g=>{g||(s.value=0,c.value=[])});const N=async()=>{if(s.value=0,c.value.length==0){i.error("没有可导入数据哦，检查文件是否为空数据");return}else{a.value=!0;let g=100;for(let O=0;O<c.value.length;O+=g){let M=await A(c.value.slice(O,O+g));const _=await p(M);s.value+=Number(_.data.Data),s.value==c.value.length&&(i.success("数据导入完成"),r("importFiles"))}}},A=g=>new Promise(O=>{const M=g.map(_=>_.SN+"|"+_.编号+"|"+_["温度℃"]+"|"+_["湿度%"]+"|"+_.记录时间);setTimeout(()=>{O(M.join("?"))},100)}),p=async g=>new Promise(O=>{setTimeout(()=>{const M=io({T_task_id:t.task.T_task_id,T_Data:g});O(M)},100)});return(g,O)=>{const M=At,_=lo,j=ur,C=or,k=Qt;return Ve(),it(ft,null,[Te(M,{type:"primary",onClick:L},{default:ke(()=>[Re("导入数据")]),_:1}),Te(k,{show:o.value,"onUpdate:show":O[1]||(O[1]=F=>o.value=F),"show-icon":!1,preset:"dialog",title:"导入","mask-closable":!1},{default:ke(()=>[Te(C,{model:He(y),"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(j,{label:"数据"},{default:ke(()=>[Te(_,{"default-upload":!1,max:1,onChange:w},{default:ke(()=>[We("div",ev,[Te(M,null,{default:ke(()=>[Re("上传文件")]),_:1}),We("div",tv,"进度："+yt(s.value)+"/"+yt(c.value.length),1)])]),_:1})]),_:1})]),_:1},8,["model"]),We("div",rv,[Te(M,{onClick:O[0]||(O[0]=F=>o.value=!1)},{default:ke(()=>[Re(" 取消 ")]),_:1}),Te(M,{type:"primary",onClick:N,disabled:a.value,style:{"margin-left":"20px"}},{default:ke(()=>[Re(" 确认 ")]),_:1},8,["disabled"])])]),_:1},8,["show"])],64)}}},av={class:"flex justify-end"},sv={class:"text-center font-bold"},nv={class:"flex justify-end"},ov={__name:"ImportPlatform",props:{task:{required:!0,default:{}}},setup(e){const r=e,t=bt();ro();const a=ze(!1),i=ze(!1),s=ze(!1),o=ze([]),c=ze(0),u=qe({Time_start:null,Time_end:null,T_sn:null,T_id:null,page:1,page_z:9999}),w=ze(0),y=()=>{i.value=!0,u.Time_start=null,u.Time_end=null,u.T_sn=null,u.T_id=null,a.value=!1,c.value=0,w.value=0},L=async()=>{if(o.value.length===0)return t.info("无数据");a.value=!0;let O=o.value,M=100;for(let _=0;_<O.length;_+=M){let j=await N(O.slice(_,_+M));const C=await A(j);console.log("已经处理",C),w.value+=Number(C.data.Data),w.value==c.value&&t.success("数据导入完成")}},N=O=>new Promise(M=>{const _=O.map(j=>j.T_sn+"-"+j.T_id+"|"+j.T_id+"|"+j.T_t+"|"+j.T_rh+"|"+j.T_time);M(_.join("?"))}),A=async O=>new Promise(M=>{setTimeout(()=>{const _=io({T_task_id:r.task.T_task_id,T_Data:O});M(_)},100)}),p=async()=>{console.log("查询1",u);const O=await g(u);if(console.log("查询2",u),O){const{data:M}=await mh({Time_start:u.Time_start+"",Time_end:u.Time_end+"",T_snid:`${u.T_sn},${u.T_id}|`,page:1,page_z:9999});o.value=M.Data.Data||[],c.value=M.Data.Num||0}else t.error("搜索条件全部必填哦")},g=O=>new Promise(M=>{O.Time_start!=null&&O.Time_end!=null&&O.T_sn!=null&&O.T_id!=null?M(!0):M(!1)});return(O,M)=>{const _=At,j=bi,C=ur,k=ti,F=or,P=Aa,I=Uc,m=co,B=Tc,T=kc,S=hs,x=Ma,h=Qt;return Ve(),it(ft,null,[Te(_,{type:"primary",onClick:y},{default:ke(()=>[Re("导入数据（冷链平台）")]),_:1}),Te(h,{style:{width:"30%"},show:He(i),"onUpdate:show":M[3]||(M[3]=n=>Gi(i)?i.value=n:null),"show-icon":!1,preset:"dialog",title:"导入"},{default:ke(()=>[Te(x,{vertical:""},{default:ke(()=>[Te(P,null,{action:ke(()=>[We("div",av,[Te(_,{type:"primary",onClick:p},{default:ke(()=>[Re("查询")]),_:1})])]),default:ke(()=>[Te(F,{model:He(u),"label-placement":"left","label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(C,{label:"起止时间"},{default:ke(()=>[Te(j,{"value-format":"yyyy.MM.dd HH:mm:ss",type:"datetimerange","onUpdate:formattedValue":M[0]||(M[0]=n=>{He(u).Time_start=n[0],He(u).Time_end=n[1]})})]),_:1}),Te(C,{label:"SN",path:"T_sn"},{default:ke(()=>[Te(k,{value:He(u).T_sn,"onUpdate:value":M[1]||(M[1]=n=>He(u).T_sn=n)},null,8,["value"])]),_:1}),Te(C,{label:"探头编号",path:"T_id"},{default:ke(()=>[Te(k,{value:He(u).T_id,"onUpdate:value":M[2]||(M[2]=n=>He(u).T_id=n)},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}),Te(P,{title:"数据总量"},{"header-extra":ke(()=>[Te(m,{show:He(s)},{default:ke(()=>[Te(I,{type:"dashboard","gap-position":"bottom",percentage:100},{default:ke(()=>[We("span",sv,yt(He(w))+"/"+yt(He(c)),1)]),_:1})]),_:1},8,["show"])]),action:ke(()=>[We("div",nv,[Te(S,{onPositiveClick:L},{trigger:ke(()=>[Te(_,{type:"primary",disabled:He(a)},{default:ke(()=>[Re("导入")]),_:1},8,["disabled"])]),default:ke(()=>[Re(" 是否确认导入？ ")]),_:1})])]),default:ke(()=>[Te(T,{bordered:"",class:"mt-auto"},{default:ke(()=>[Te(B,{label:"SN"},{default:ke(()=>[Re(yt(He(u).T_sn),1)]),_:1}),Te(B,{label:"探头编号"},{default:ke(()=>[Re(yt(He(u).T_id),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["show"])],64)}}},lv={__name:"SetVue",emits:["submit"],setup(e,{emit:r}){const t=Ti(),a=()=>{Zt.emit("onMessage",s),t.commit("setplotData",s)},i=ze(!1),s=qe({tTop:null,tBottom:null,hTop:null,hBottom:null}),o=()=>{i.value=!0};return(c,u)=>{const w=At,y=eh,L=ti,N=ur,A=or,p=Qt;return Ve(),it(ft,null,[Te(w,{type:"primary",onClick:o},{default:ke(()=>[Re("温湿度上下限设置")]),_:1}),Te(p,{show:He(i),"onUpdate:show":u[4]||(u[4]=g=>Gi(i)?i.value=g:null),"show-icon":!1,preset:"dialog",title:"温湿度上下限设置","positive-text":"确认","negative-text":"取消",onPositiveClick:a},{default:ke(()=>[Te(A,{model:He(s),"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(y,{"title-placement":"center"},{default:ke(()=>[Re(" 温度 ")]),_:1}),Te(N,{label:"上限",path:"value"},{default:ke(()=>[Te(L,{value:He(s).tTop,"onUpdate:value":u[0]||(u[0]=g=>He(s).tTop=g)},null,8,["value"])]),_:1}),Te(N,{label:"下限",path:"value"},{default:ke(()=>[Te(L,{value:He(s).tBottom,"onUpdate:value":u[1]||(u[1]=g=>He(s).tBottom=g)},null,8,["value"])]),_:1}),Te(y,{"title-placement":"center"},{default:ke(()=>[Re(" 湿度 ")]),_:1}),Te(N,{label:"上限",path:"value"},{default:ke(()=>[Te(L,{value:He(s).hTop,"onUpdate:value":u[2]||(u[2]=g=>He(s).hTop=g)},null,8,["value"])]),_:1}),Te(N,{label:"下限",path:"value"},{default:ke(()=>[Te(L,{value:He(s).hBottom,"onUpdate:value":u[3]||(u[3]=g=>He(s).hBottom=g)},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["show"])],64)}}},cv={__name:"ExportVue",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=bt();Gt(()=>r.classList);const a=qe({T_task_id:"",T_sn_list:[],Time_start:null,Time_end:null}),i=async()=>{if(console.log("sds",r.pickleveTime),r.checkData==null||r.checkData.length==0){t.error("请选择需要导出的设备");return}else a.T_task_id=r.queryObj.T_task_id,a.Time_start=r.pickleveTime==null?"":ot(r.pickleveTime[0]),a.Time_end=r.pickleveTime==null?"":ot(r.pickleveTime[1]),a.T_sn_list=s(r.checkData),wc(a).then(o=>{console.log("请求完成",o),o.data.Code===200&&(location.href=o.data.Data)})},s=o=>o.map(u=>u.T_sn).join(",");return(o,c)=>{const u=At;return Ve(),Et(u,{type:"primary",onClick:i},{default:ke(()=>[Re("导出数据")]),_:1})}}},hv={__name:"FormList",props:{task:{type:Object,default:()=>({})},classList:{type:Array,default:()=>[]},time:{type:String,default:null},temporalInterval:{type:Array,default:()=>[]}},setup(e){const r=e,t=Ti(),a=qe({fNum:null,obj:{}});fr(()=>a.fNum,N=>{console.log("开始存",N),t.commit("setfocuFun",N)},{deep:!0,immediate:!0}),gc(()=>{t.commit("setfocuFun",null)});const i=qe({formList:[]});Zt.emit("onFormData",a);const s=()=>{console.log("失去------------------------"),a.fNum=null},o=(N,A)=>{console.log("获得++++++++++++++++++++++++"),a.fNum=A,a.obj=N};fr(()=>r.time,N=>{console.log("单击",ot(N),a.fNum),a.fNum!=null&&(console.log("继续单击",N,a.fNum,a.obj),a.obj.T_label===7&&(i.formList[a.fNum].T_value=ot(N)),a.obj.T_label===12&&(i.formList[a.fNum].T_value[0]=ot(N)),a.fNum=null)}),Zt.on("onSelectionTime",N=>{console.log("读取",N,parseInt(N[0].min),parseInt(N[0].max));let A=ot(parseInt(N[0].min)),p=ot(parseInt(N[0].max));a.fNum!=null&&(a.obj.T_label===9&&(i.formList[a.fNum].T_value=[A,p]),a.obj.T_label===13&&(i.formList[a.fNum].T_value[0]=[A,p]))}),ls(()=>{Zt.off("onSelectionTime")}),fr(()=>i.formList,async(N,A)=>{if(console.log("最新",N,A),A.length!=0){const p=await c(),g=xc();Hc({User_tokey:g,T_source:u.T_source,T_task_id:u.T_task_id,T_VerifyTemplate_id:u.T_VerifyTemplate_id,VerifyTemplateMapData:p}),console.log("修改值",p)}},{deep:!0});const c=()=>{let N=[];return new Promise(A=>{i.formList.forEach(p=>{let g={...p};g.T_label==3||g.T_label==9?g.T_value!=null?g.T_value=g.T_value.join("|"):g.T_value=null:g.T_label==12?g.T_value=g.T_value.join("/"):g.T_label==13&&(g.T_value[0]!=null&&g.T_value[1]!=null?g.T_value=g.T_value[0].join("|")+"/"+g.T_value[1]:g.T_value[0]==null&&g.T_value[1]!=null?g.T_value="/"+g.T_value[1]:g.T_value[0]!=null&&g.T_value[1]==null?g.T_value=g.T_value[0].join("|")+"/":g.T_value=""),N.push(g)}),A(N)})},u=qe({T_source:3,T_task_id:r.task.T_task_id,T_VerifyTemplate_id:r.task.T_VerifyTemplate_id}),w=N=>{if(i.formList[N].T_value.length!==0)return i.formList[N].T_value=[];i.formList[N].T_value=r.classList.map(A=>A.T_sn)},y=N=>{const A=r.classList.map(p=>p.T_sn);i.formList[N].T_value=A.filter(p=>!i.formList[N].T_value.includes(p))};return(async()=>{try{const{data:N}=await Wc(u);i.formList=N.Data||[],i.formList.forEach(A=>{A.T_label===3?A.T_value==""||A.T_value==null?A.T_value=[]:A.T_value=A.T_value.split("|"):A.T_label==9?A.T_value==""||A.T_value==null?A.T_value=null:A.T_value=A.T_value.split("|"):A.T_label===12?A.T_value==""||A.T_value==null?A.T_value=[null,null]:A.T_value.split("/")[0]==""?A.T_value=[null,A.T_value.split("/")[1]]:A.T_value=[A.T_value.split("/")[0],A.T_value.split("/")[1]]:A.T_label===13?A.T_value==""||A.T_value==null||A.T_value=="null"?A.T_value=[null,null]:A.T_value.split("/")[0]==""?A.T_value=[null,A.T_value.split("/")[1]]:A.T_value=[A.T_value.split("/")[0].split("|"),A.T_value.split("/")[1]]:A.T_value=A.T_value?A.T_value:null})}catch(N){console.log(N)}})(),(N,A)=>{const p=At,g=Ma,O=Ea,M=bi,_=ho,j=lo,C=ti,k=zc,F=Gc,P=or;return Ve(),Et(P,{"label-width":"auto"},{default:ke(()=>[Te(F,{cols:12,"x-gap":12},{default:ke(()=>[(Ve(!0),it(ft,null,ki(He(i).formList,(I,m)=>(Ve(),Et(k,{key:I.T_VerifyTemplateMap_id,span:12,label:I.T_name},{default:ke(()=>[I.T_label===3?(Ve(),Et(O,{key:0,value:I.T_value,"onUpdate:value":B=>I.T_value=B,multiple:"","label-field":"T_id","value-field":"T_sn","max-tag-count":"responsive",options:e.classList},{action:ke(()=>[Te(g,null,{default:ke(()=>[Te(p,{class:"underline",text:"",onClick:B=>w(m)},{default:ke(()=>[Re("全选")]),_:2},1032,["onClick"]),Te(p,{class:"underline",text:"",onClick:B=>y(m)},{default:ke(()=>[Re("反选")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1032,["value","onUpdate:value","options"])):I.T_label===4?(Ve(),Et(O,{key:1,value:I.T_value,"onUpdate:value":B=>I.T_value=B,"label-field":"T_id","value-field":"T_sn",options:e.classList},null,8,["value","onUpdate:value","options"])):I.T_label===7?(Ve(),Et(M,{key:2,onFocus:B=>o(I,m),onBlur:s,"formatted-value":I.T_value,"onUpdate:formattedValue":B=>I.T_value=B,"value-format":"yyyy-MM-dd HH:mm",type:"datetime",clearable:"",class:"w-full"},null,8,["onFocus","formatted-value","onUpdate:formattedValue"])):I.T_label===9?(Ve(),Et(M,{key:3,onFocus:B=>o(I,m),onBlur:s,"formatted-value":I.T_value,"onUpdate:formattedValue":B=>I.T_value=B,"value-format":"yyyy-MM-dd HH:mm",type:"datetimerange",clearable:"",class:"w-full"},null,8,["onFocus","formatted-value","onUpdate:formattedValue"])):I.T_label===10?(Ve(),it(ft,{key:4},[Te(_,{class:"mr-5",width:"100",src:I.T_value},null,8,["src"]),Te(j,{"list-type":"image-card",onChange:B=>N.handleChangeByIndex(B,m),"default-upload":!1,max:1},{default:ke(()=>[Re(" 点击上传 ")]),_:2},1032,["onChange"])],64)):I.T_label===11?(Ve(),it(ft,{key:5},[Te(_,{class:"mr-5",width:"100",src:I.T_value},null,8,["src"]),Te(g,null,{default:ke(()=>[Te(p,{onClick:()=>N.handleEdit(I)},{default:ke(()=>[Re("编辑")]),_:2},1032,["onClick"]),Te(p,{onClick:()=>N.handleRefresh(m)},{default:ke(()=>[Re("刷新")]),_:2},1032,["onClick"])]),_:2},1024)],64)):I.T_label===12?(Ve(),Et(g,{key:6,vertical:"",class:"w-full"},{default:ke(()=>[Te(M,{onFocus:B=>o(I,m),onBlur:s,"formatted-value":I.T_value[0],"onUpdate:formattedValue":B=>I.T_value[0]=B,format:"yyyy-MM-dd HH:mm","time-picker-props":{format:"HH:mm"},type:"datetime",clearable:""},null,8,["onFocus","formatted-value","onUpdate:formattedValue"]),Te(C,{value:I.T_value[1],"onUpdate:value":B=>I.T_value[1]=B,type:"text"},null,8,["value","onUpdate:value"])]),_:2},1024)):I.T_label===13?(Ve(),Et(g,{key:7,vertical:"",class:"w-full"},{default:ke(()=>[Te(M,{onFocus:B=>o(I,m),onBlur:s,"formatted-value":I.T_value[0],"onUpdate:formattedValue":B=>I.T_value[0]=B,format:"yyyy-MM-dd HH:mm","time-picker-props":{format:"HH:mm"},type:"datetimerange",clearable:""},null,8,["onFocus","formatted-value","onUpdate:formattedValue"]),Te(C,{value:I.T_value[1],"onUpdate:value":B=>I.T_value[1]=B,type:"text"},null,8,["value","onUpdate:value"])]),_:2},1024)):(Ve(),Et(C,{key:8,value:I.T_value,"onUpdate:value":B=>I.T_value=B},null,8,["value","onUpdate:value"]))]),_:2},1032,["label"]))),128))]),_:1})]),_:1})}}},fv={__name:"ratioZoom",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},emits:["ratioZoomFun"],setup(e,{emit:r}){const t=e,a=bt();Ti();const i=async()=>{var y=/^([1-9]\d*(\.\d*[1-9][0-9])?)|(0\.\d*[1-9][0-9])|(0\.\d*[1-9])$/;if(!y.test(u.Temperature)){a.error("温度比列格式为大于0【必填】");return}if(!y.test(u.Humidity)){a.error("湿度比列格式为大于0【必填】");return}await o(),s(),console.log("sss",u)},s=async()=>{bh(u).then(y=>{y.data.Code==200&&(a.success(y.data.Msg),c.value=!1,r("ratioZoomFun"))})},o=()=>new Promise(y=>{u.StartTime=Xt(u.StartTime),u.EndTime=Xt(u.EndTime);const N=[...t.checkData].map(A=>A.T_sn+","+A.T_id);u.SN_List=N.join("|")+"|",y()}),c=ze(!1),u=qe({Temperature:1,Humidity:1,T_task_id:"",SN_List:"",StartTime:null,EndTime:null}),w=()=>{if(t.checkData==null||t.checkData.length==0){a.error("请选择需要设置等比缩放的设备");return}else if(t.pickleveTime==null){a.error("请选择等比缩放时间");return}else u.T_task_id=t.queryObj.T_task_id,u.StartTime=new Date(t.pickleveTime[0]).getTime(),u.EndTime=new Date(t.pickleveTime[1]).getTime(),c.value=!0};return(y,L)=>{const N=At,A=ti,p=ur,g=or,O=Qt;return Ve(),it(ft,null,[Te(N,{type:"primary",onClick:w},{default:ke(()=>[Re("等比缩放")]),_:1}),Te(O,{show:He(c),"onUpdate:show":L[3]||(L[3]=M=>Gi(c)?c.value=M:null),style:{width:"400px"},"show-icon":!1,preset:"card",title:"等比缩放"},{footer:ke(()=>[Te(N,{type:"primary",onClick:i},{default:ke(()=>[Re(" 立即提交 ")]),_:1}),Te(N,{onClick:L[2]||(L[2]=M=>c.value=!1),style:{"margin-left":"10px"}},{default:ke(()=>[Re("取消")]),_:1})]),default:ke(()=>[Te(g,{model:He(u),"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(p,{label:"温度比列",path:"value"},{default:ke(()=>[Te(A,{value:He(u).Temperature,"onUpdate:value":L[0]||(L[0]=M=>He(u).Temperature=M)},null,8,["value"])]),_:1}),Te(p,{label:"湿度比列",path:"value"},{default:ke(()=>[Te(A,{value:He(u).Humidity,"onUpdate:value":L[1]||(L[1]=M=>He(u).Humidity=M)},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["show"])],64)}}},dv={style:{overflow:"hidden",display:"flex","flex-direction":"column"}},uv={style:{flex:"1","overflow-y":"auto"}},pv=We("thead",null,[We("tr",null,[We("th",null,"时间"),We("th",null,"操作")])],-1),gv={style:{display:"flex","align-items":"center"}},xv={__name:"OnFile",props:{task:{type:Object,default:()=>({})}},setup(e){const r=e,t=bt(),a=Ca(),i=qe({list:[]}),s=async w=>{const{data:y}=await vh({T_task_id:r.task.T_task_id,T_copy_id:w.T_copy_id});console.log("存档返回",y),y.Code==200&&y.Msg=="ok!"&&(t.success("恢复成功"),u())},o=w=>{a.warning({title:"提示",content:"删除存档，是否继续？",positiveText:"删除",negativeText:"取消",onPositiveClick:async()=>{const{data:y}=await yh({T_copy_id:w.T_copy_id});console.log("存档返回",y),y.Code==200&&(t.success("删除存档成功"),u())},onNegativeClick:()=>{t.warning("已取消删除存档")}})},c=async()=>{const{data:w}=await Th({T_task_id:r.task.T_task_id});console.log("存档返回",w),w.Code==200&&w.Msg=="ok!"&&(t.success("存档成功"),u())},u=async()=>{const{data:w}=await kh({T_task_id:r.task.T_task_id,page:1,page_z:9999});w.Code==200&&(i.list=w.Data.List),console.log("返回",w)};return fr(()=>r.task,w=>{u()},{deep:!0,immediate:!0}),(w,y)=>{const L=At,N=cs;return Ve(),it("div",dv,[Te(L,{type:"primary",style:{"margin-bottom":"10px",width:"120px"},onClick:c},{default:ke(()=>[Re("备份存档")]),_:1}),We("div",uv,[Te(N,{bordered:!1,"single-line":!1,"max-height":250},{default:ke(()=>[pv,We("tbody",null,[(Ve(!0),it(ft,null,ki(He(i).list,(A,p)=>(Ve(),it("tr",{key:p},[We("td",null,yt(A.T_time),1),We("td",gv,[Te(L,{style:{"margin-right":"10px"},onClick:g=>s(A)},{default:ke(()=>[Re("恢复")]),_:2},1032,["onClick"]),Te(L,{type:"error",onClick:g=>o(A)},{default:ke(()=>[Re("删除")]),_:2},1032,["onClick"])])]))),128))])]),_:1})])])}}},mv={style:{display:"flex","justify-content":"flex-end"}},vv={__name:"editCopy",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]},classList:{type:Array,default:()=>[]}},setup(e){const r=e,t=bt(),a=Gt(()=>{let p=[...r.classList];return p.forEach(g=>{g.T_snid=g.T_sn+","+g.T_id}),p}),i=qe({CopySN:"",CopyID:"",T_saveT:60,T_task_id:"",SN_List:""}),s=ze(null),o=qe({StartTime:null,EndTime:null,CopyTime:null});fr(()=>s.value,p=>{p!=null?c.selectSn.required=!1:c.selectSn.required=!0});const c=qe({CopyTime:{type:"number",required:!0,trigger:["blur","change"],message:"请选择结束时间"},selectSn:{required:!0,trigger:"blur",message:"请选择复制设备"}}),u=ze(!1),w=()=>{if(console.log("sdsd",r.pickleveTime,r.queryObj),Object.keys(o).forEach(p=>{o[p]=null}),r.checkData==null||r.checkData.length==0){t.error("请选择需要复制的设备");return}else if(r.checkData.length!=1){t.error("复制只能选择一项哦");return}else if(r.pickleveTime==null){t.error("请选择复制时间");return}else i.T_task_id=r.queryObj.T_task_id,o.StartTime=new Date(r.pickleveTime[0]).getTime(),o.EndTime=new Date(r.pickleveTime[1]).getTime(),c.selectSn.required=!0,s.value=null,u.value=!0},y=ze(null),L=()=>{var p;(p=y.value)==null||p.validate(g=>{g||N()})},N=async()=>{let p=await A();_h(p).then(g=>{g.data.Code==200&&(t.success(g.data.Msg),u.value=!1)})},A=()=>new Promise(p=>{i.CopySN=s.value.split(",")[0],i.CopyID=s.value.split(",")[1];let g={...o},O=[...r.checkData];Object.keys(g).forEach(_=>{g[_]=ot(g[_])+":00"});const M=O.map(_=>_.T_sn+","+_.T_id);i.SN_List=M.join("|")+"|",console.log(i,g),p({...i,...g})});return(p,g)=>{const O=At,M=bi,_=ur,j=Ea,C=or,k=Qt;return Ve(),it(ft,null,[Te(O,{onClick:w},{default:ke(()=>[Re("复制到")]),_:1}),Te(k,{style:{width:"40%"},show:u.value,"onUpdate:show":g[5]||(g[5]=F=>u.value=F),title:"复制到：","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(C,{ref_key:"formRef",ref:y,model:o,rules:c,"label-placement":"left","require-mark-placement":"left","label-width":"100"},{default:ke(()=>[Te(_,{label:"开始时间"},{default:ke(()=>[Te(M,{value:o.StartTime,"onUpdate:value":g[0]||(g[0]=F=>o.StartTime=F),format:"yyyy-MM-dd HH:mm",disabled:"",type:"datetime",style:{width:"100%"}},null,8,["value"])]),_:1}),Te(_,{label:"结束时间"},{default:ke(()=>[Te(M,{value:o.EndTime,"onUpdate:value":g[1]||(g[1]=F=>o.EndTime=F),format:"yyyy-MM-dd HH:mm",disabled:"",type:"datetime",style:{width:"100%"}},null,8,["value"])]),_:1}),Te(_,{label:"复制到时间",path:"CopyTime"},{default:ke(()=>[Te(M,{value:o.CopyTime,"onUpdate:value":g[2]||(g[2]=F=>o.CopyTime=F),format:"yyyy-MM-dd HH:mm",type:"datetime",style:{width:"100%"}},null,8,["value"])]),_:1}),Te(_,{label:"复制到设备",path:"selectSn"},{default:ke(()=>[Te(j,{value:s.value,"onUpdate:value":g[3]||(g[3]=F=>s.value=F),"label-field":"T_id","value-field":"T_snid",options:He(a)},null,8,["value","options"])]),_:1}),We("div",mv,[Te(O,{onClick:g[4]||(g[4]=F=>u.value=!1),style:{"margin-right":"10px"}},{default:ke(()=>[Re("取消")]),_:1}),Te(O,{type:"primary",onClick:L},{default:ke(()=>[Re("立即提交")]),_:1})])]),_:1},8,["model","rules"])]),_:1},8,["show"])],64)}}},yv={style:{display:"flex","justify-content":"flex-end"}},Tv={__name:"AverageCopy",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]},classList:{type:Array,default:()=>[]}},setup(e){const r=e,t=bt(),a=Gt(()=>{let p=[...r.classList];return p.forEach(g=>{g.T_snid=g.T_sn+","+g.T_id}),p}),i=qe({CopySN:"",CopyID:"",T_saveT:60,T_task_id:"",SN_List:""}),s=ze(null),o=qe({StartTime:null,EndTime:null,CopyTime:null});fr(()=>s.value,p=>{p!=null?c.selectSn.required=!1:c.selectSn.required=!0});const c=qe({CopyTime:{type:"number",required:!0,trigger:["blur","change"],message:"请选择结束时间"},selectSn:{required:!0,trigger:"blur",message:"请选择复制设备"}}),u=ze(!1),w=()=>{if(Object.keys(o).forEach(p=>{console.log(p),o[p]=null}),r.checkData==null||r.checkData.length==0){t.error("请选择需要复制的设备");return}else if(r.checkData.length!=2){t.error("平均复制到需要选择2项哦");return}else if(r.pickleveTime==null){t.error("请选择复制时间");return}else i.T_task_id=r.queryObj.T_task_id,o.StartTime=new Date(r.pickleveTime[0]).getTime(),o.EndTime=new Date(r.pickleveTime[1]).getTime(),console.log(o,r.queryObj,r.checkData),c.selectSn.required=!0,s.value=null,u.value=!0},y=ze(null),L=()=>{var p;(p=y.value)==null||p.validate(g=>{g||N()})},N=async()=>{let p=await A();wh(p).then(g=>{g.data.Code==200&&(t.success(g.data.Msg),u.value=!1)})},A=()=>new Promise(p=>{i.CopySN=s.value.split(",")[0],i.CopyID=s.value.split(",")[1];let g={...o},O=[...r.checkData];Object.keys(g).forEach(_=>{g[_]=ot(g[_])+":00"});const M=O.map(_=>_.T_sn+","+_.T_id);i.SN_List=M.join("|")+"|",console.log(i,g),p({...i,...g})});return(p,g)=>{const O=At,M=bi,_=ur,j=Ea,C=or,k=Qt;return Ve(),it(ft,null,[Te(O,{onClick:w},{default:ke(()=>[Re("平均复制到")]),_:1}),Te(k,{style:{width:"40%"},show:u.value,"onUpdate:show":g[5]||(g[5]=F=>u.value=F),title:"平均复制到：","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(C,{ref_key:"formRef",ref:y,model:o,rules:c,"label-placement":"left","require-mark-placement":"left","label-width":"100"},{default:ke(()=>[Te(_,{label:"开始时间"},{default:ke(()=>[Te(M,{value:o.StartTime,"onUpdate:value":g[0]||(g[0]=F=>o.StartTime=F),format:"yyyy-MM-dd HH:mm",disabled:"",type:"datetime",style:{width:"100%"}},null,8,["value"])]),_:1}),Te(_,{label:"结束时间"},{default:ke(()=>[Te(M,{value:o.EndTime,"onUpdate:value":g[1]||(g[1]=F=>o.EndTime=F),format:"yyyy-MM-dd HH:mm",disabled:"",type:"datetime",style:{width:"100%"}},null,8,["value"])]),_:1}),Te(_,{label:"复制到时间",path:"CopyTime"},{default:ke(()=>[Te(M,{value:o.CopyTime,"onUpdate:value":g[2]||(g[2]=F=>o.CopyTime=F),format:"yyyy-MM-dd HH:mm",type:"datetime",style:{width:"100%"}},null,8,["value"])]),_:1}),Te(_,{label:"复制到设备",path:"selectSn"},{default:ke(()=>[Te(j,{value:s.value,"onUpdate:value":g[3]||(g[3]=F=>s.value=F),"label-field":"T_id","value-field":"T_snid",options:He(a)},null,8,["value","options"])]),_:1}),We("div",yv,[Te(O,{onClick:g[4]||(g[4]=F=>u.value=!1),style:{"margin-right":"10px"}},{default:ke(()=>[Re("取消")]),_:1}),Te(O,{type:"primary",onClick:L},{default:ke(()=>[Re("立即提交")]),_:1})])]),_:1},8,["model","rules"])]),_:1},8,["show"])],64)}}},kv={__name:"editLeak",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=bt(),a=qe({T_saveT:60,T_task_id:"",SN_List:""}),i=qe({StartTime:null,EndTime:null}),s=Ca(),o=()=>{if(r.checkData==null||r.checkData.length==0){t.error("请选择需要补漏的设备");return}else if(r.pickleveTime==null){t.error("请选择补漏的时间");return}else a.T_task_id=r.queryObj.T_task_id,i.StartTime=new Date(r.pickleveTime[0]).getTime(),i.EndTime=new Date(r.pickleveTime[1]).getTime(),s.warning({title:"提示",content:`确定对${ot(i.StartTime)}至${ot(i.EndTime)}进行数据补漏吗？`,positiveText:"立即补漏",negativeText:"取消",onPositiveClick:()=>{c()},onNegativeClick:()=>{t.error("已取消补漏")}})},c=async()=>{let w=await u();Sh(w).then(y=>{y.data.Code==200&&t.success(y.data.Msg)})},u=()=>new Promise(w=>{let y={...i},L=[...r.checkData];Object.keys(y).forEach(A=>{y[A]=ot(y[A])+":00"});const N=L.map(A=>A.T_sn+","+A.T_id);a.SN_List=N.join("|")+"|",console.log(a,y),w({...a,...y})});return(w,y)=>{const L=At;return Ve(),Et(L,{onClick:o},{default:ke(()=>[Re("补漏")]),_:1})}}},bv={__name:"editTendency",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=bt(),a=qe({T_saveT:60,T_task_id:"",SN_List:""}),i=qe({StartTime:null,EndTime:null}),s=Ca(),o=()=>{if(r.checkData==null||r.checkData.length==0){t.error("请选择需要趋势的设备");return}else if(r.pickleveTime==null){t.error("请选择趋势的时间");return}else a.T_task_id=r.queryObj.T_task_id,i.StartTime=new Date(r.pickleveTime[0]).getTime(),i.EndTime=new Date(r.pickleveTime[1]).getTime(),s.warning({title:"提示",content:`确定对${r.queryObj.Time_start}至${r.queryObj.Time_end}进行趋势吗？`,positiveText:"立即提交",negativeText:"取消",onPositiveClick:()=>{c()},onNegativeClick:()=>{t.error("已取消趋势")}})},c=async()=>{let w=await u();Ah(w).then(y=>{y.data.Code==200&&t.success(y.data.Msg)})},u=()=>new Promise(w=>{let y={...i},L=[...r.checkData];Object.keys(y).forEach(A=>{y[A]=ot(y[A])+":00"});const N=L.map(A=>A.T_sn+","+A.T_id);a.SN_List=N.join("|")+"|",console.log(a,y),w({...a,...y})});return(w,y)=>{const L=At;return Ve(),Et(L,{onClick:o},{default:ke(()=>[Re("趋势")]),_:1})}}},_v={style:{display:"flex","justify-content":"flex-end"}},wv={__name:"editMath",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=bt();ze(0);const a=qe({TemperatureMin:0,TemperatureMax:0,HumidityMin:0,HumidityMax:0,T_task_id:"",SN_List:""}),i=qe({StartTime:null,EndTime:null}),s=ze(!1),o=()=>{if(Object.keys(i).forEach(y=>{console.log(y),i[y]=null}),r.checkData==null||r.checkData.length==0){t.error("请选择需要设置随机偏移的设备");return}else if(r.pickleveTime==null){t.error("请选择随机偏移时间");return}else a.T_task_id=r.queryObj.T_task_id,i.StartTime=new Date(r.pickleveTime[0]).getTime(),i.EndTime=new Date(r.pickleveTime[1]).getTime(),s.value=!0},c=()=>{u()},u=async()=>{let y=await w();Eh(y).then(L=>{L.data.Code==200&&(t.success(L.data.Msg),s.value=!1)})},w=()=>new Promise(y=>{let L={...i},N=[...r.checkData],A={...a};Object.keys(L).forEach(g=>{L[g]=ot(L[g])+":00"});const p=N.map(g=>g.T_sn+","+g.T_id);a.SN_List=p.join("|")+"|",A.TemperatureMin=A.TemperatureMin*100,A.TemperatureMax=A.TemperatureMax*100,A.HumidityMin=A.HumidityMin*100,A.HumidityMax=A.HumidityMax*100,y({...A,...L})});return(y,L)=>{const N=At,A=Da,p=ur,g=or,O=Qt;return Ve(),it(ft,null,[Te(N,{onClick:o},{default:ke(()=>[Re("偏移（随机）")]),_:1}),Te(O,{show:s.value,"onUpdate:show":L[5]||(L[5]=M=>s.value=M),title:"偏移（随机）","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(g,{"label-placement":"left","label-width":"auto",style:{"margin-top":"20px"}},{default:ke(()=>[Te(p,{label:"最大温度"},{default:ke(()=>[Te(A,{value:a.TemperatureMax,"onUpdate:value":L[0]||(L[0]=M=>a.TemperatureMax=M),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"最小温度"},{default:ke(()=>[Te(A,{value:a.TemperatureMin,"onUpdate:value":L[1]||(L[1]=M=>a.TemperatureMin=M),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"最大湿度"},{default:ke(()=>[Te(A,{value:a.HumidityMax,"onUpdate:value":L[2]||(L[2]=M=>a.HumidityMax=M),style:{width:"100%"}},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"最小湿度"},{default:ke(()=>[Te(A,{value:a.HumidityMin,"onUpdate:value":L[3]||(L[3]=M=>a.HumidityMin=M),style:{width:"100%"}},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),We("div",_v,[Te(N,{onClick:L[4]||(L[4]=M=>s.value=!1),style:{"margin-right":"10px"}},{default:ke(()=>[Re("取消")]),_:1}),Te(N,{type:"primary",onClick:c},{default:ke(()=>[Re("立即提交")]),_:1})])]),_:1})]),_:1},8,["show"])],64)}}},Sv={style:{display:"flex","justify-content":"flex-end"}},Av={__name:"editFixation",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=bt();ze(0);const a=qe({FixTemperature:0,FixHumidity:0,T_task_id:"",SN_List:""}),i=qe({StartTime:null,EndTime:null}),s=ze(!1),o=()=>{if(Object.keys(i).forEach(y=>{console.log(y),i[y]=null}),r.checkData==null||r.checkData.length==0){t.error("请选择需要设置固定偏移的设备");return}else if(r.pickleveTime==null){t.error("请选择固定偏移时间");return}else a.T_task_id=r.queryObj.T_task_id,i.StartTime=new Date(r.pickleveTime[0]).getTime(),i.EndTime=new Date(r.pickleveTime[1]).getTime(),s.value=!0},c=()=>{u()},u=async()=>{let y=await w();Mh(y).then(L=>{L.data.Code==200&&(t.success(L.data.Msg),s.value=!1)})},w=()=>new Promise(y=>{let L={...i},N=[...r.checkData];Object.keys(L).forEach(p=>{L[p]=ot(L[p])+":00"});const A=N.map(p=>p.T_sn+","+p.T_id);a.SN_List=A.join("|")+"|",y({...a,...L})});return(y,L)=>{const N=At,A=Da,p=ur,g=or,O=Qt;return Ve(),it(ft,null,[Te(N,{onClick:o},{default:ke(()=>[Re("偏移（固定）")]),_:1}),Te(O,{show:s.value,"onUpdate:show":L[3]||(L[3]=M=>s.value=M),title:"偏移（固定）","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(g,{"label-placement":"left","label-width":"auto",style:{"margin-top":"20px"}},{default:ke(()=>[Te(p,{label:"温度"},{default:ke(()=>[Te(A,{value:a.FixTemperature,"onUpdate:value":L[0]||(L[0]=M=>a.FixTemperature=M),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"湿度"},{default:ke(()=>[Te(A,{value:a.FixHumidity,"onUpdate:value":L[1]||(L[1]=M=>a.FixHumidity=M),style:{width:"100%"}},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),We("div",Sv,[Te(N,{onClick:L[2]||(L[2]=M=>s.value=!1),style:{"margin-right":"10px"}},{default:ke(()=>[Re("取消")]),_:1}),Te(N,{type:"primary",onClick:c},{default:ke(()=>[Re("立即提交")]),_:1})])]),_:1})]),_:1},8,["show"])],64)}}},Ev={style:{display:"flex","justify-content":"flex-end"}},Cv={__name:"skewSection",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=bt();ze(0);const a=qe({TemperatureMin:0,TemperatureMax:0,T_task_id:"",SN_List:""}),i=qe({StartTime:null,EndTime:null}),s=ze(!1),o=()=>{if(Object.keys(i).forEach(y=>{console.log(y),i[y]=null}),r.checkData==null||r.checkData.length==0){t.error("请选择需要设置区间偏移的设备");return}else if(r.pickleveTime==null){t.error("请选择区间偏移时间");return}else a.T_task_id=r.queryObj.T_task_id,i.StartTime=new Date(r.pickleveTime[0]).getTime(),i.EndTime=new Date(r.pickleveTime[1]).getTime(),s.value=!0},c=()=>{u()},u=async()=>{let y=await w();Ch(y).then(L=>{L.data.Code==200&&(t.success(L.data.Msg),s.value=!1)})},w=()=>new Promise(y=>{let L={...i},N=[...r.checkData];Object.keys(L).forEach(p=>{L[p]=ot(L[p])+":00"});const A=N.map(p=>p.T_sn+","+p.T_id);a.SN_List=A.join("|")+"|",y({...a,...L})});return(y,L)=>{const N=At,A=Da,p=ur,g=or,O=Qt;return Ve(),it(ft,null,[Te(N,{onClick:o},{default:ke(()=>[Re("偏移（区间）")]),_:1}),Te(O,{show:s.value,"onUpdate:show":L[3]||(L[3]=M=>s.value=M),title:"偏移（区间）","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(g,{"label-placement":"left","label-width":"auto",style:{"margin-top":"20px"}},{default:ke(()=>[Te(p,{label:"最小温度"},{default:ke(()=>[Te(A,{value:a.TemperatureMin,"onUpdate:value":L[0]||(L[0]=M=>a.TemperatureMin=M),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"最大温度"},{default:ke(()=>[Te(A,{value:a.TemperatureMax,"onUpdate:value":L[1]||(L[1]=M=>a.TemperatureMax=M),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),We("div",Ev,[Te(N,{onClick:L[2]||(L[2]=M=>s.value=!1),style:{"margin-right":"10px"}},{default:ke(()=>[Re("取消")]),_:1}),Te(N,{type:"primary",onClick:c},{default:ke(()=>[Re("立即提交")]),_:1})])]),_:1})]),_:1},8,["show"])],64)}}},Mv={style:{display:"flex","justify-content":"flex-end"}},Dv={__name:"editSmooth",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=bt();ze(0);const a=qe({tRange:0,hRange:0,T_task_id:"",SN_List:""}),i=qe({StartTime:null,EndTime:null}),s=ze(!1),o=()=>{if(Object.keys(i).forEach(y=>{console.log(y),i[y]=null}),console.log("1111",r.checkData),r.checkData==null||r.checkData.length==0){t.error("请选择需要设置平滑的设备");return}else if(r.queryObj.Time_start==""&&r.queryObj.Time_end==""){t.error("请选择平滑时间");return}else a.T_task_id=r.queryObj.T_task_id,i.StartTime=new Date(r.pickleveTime[0]).getTime(),i.EndTime=new Date(r.pickleveTime[1]).getTime(),s.value=!0},c=()=>{u()},u=async()=>{let y=await w();Dh(y).then(L=>{L.data.Code==200&&(t.success(L.data.Msg),s.value=!1)})},w=()=>new Promise(y=>{let L={...i},N=[...r.checkData];Object.keys(L).forEach(p=>{L[p]=ot(L[p])+":00"});const A=N.map(p=>p.T_sn+","+p.T_id);a.SN_List=A.join("|")+"|",y({...a,...L})});return(y,L)=>{const N=At,A=Da,p=ur,g=or,O=Qt;return Ve(),it(ft,null,[Te(N,{onClick:o},{default:ke(()=>[Re("平滑")]),_:1}),Te(O,{show:s.value,"onUpdate:show":L[3]||(L[3]=M=>s.value=M),title:"平滑","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(g,{"label-placement":"left","label-width":"auto",style:{"margin-top":"20px"}},{default:ke(()=>[Te(p,{label:"温度"},{default:ke(()=>[Te(A,{value:a.tRange,"onUpdate:value":L[0]||(L[0]=M=>a.tRange=M),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"湿度"},{default:ke(()=>[Te(A,{value:a.hRange,"onUpdate:value":L[1]||(L[1]=M=>a.hRange=M),style:{width:"100%"}},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),We("div",Mv,[Te(N,{onClick:L[2]||(L[2]=M=>s.value=!1),style:{"margin-right":"10px"}},{default:ke(()=>[Re("取消")]),_:1}),Te(N,{type:"primary",onClick:c},{default:ke(()=>[Re("立即提交")]),_:1})])]),_:1})]),_:1},8,["show"])],64)}}},Ov={__name:"BesselCurve",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=bt(),a=()=>{if(console.log(r.queryObj),console.log(r.pickleveTime),console.log(r.classList),console.log(r.checkData),r.checkData==null){t.error("请选择需要生成的设备");return}else if(r.checkData.length!=1){t.error("请选择一项进行曲线生成");return}else if(r.pickleveTime==null){t.error("请选择曲线生成时间");return}else{let i=ot(r.pickleveTime[0]),s=ot(r.pickleveTime[1]),o=r.queryObj.T_task_id,c=r.checkData[0].T_sn,u=r.checkData[0].T_id;window.open(`http://coldverifylocal.coldbaozhida.com/CurveEditing/index.html?a_time=${i}&b_time=${s}&T_task_id=${o}&T_sn=${c}&T_id=${u}`,"_blank")}};return(i,s)=>{const o=At;return Ve(),it("div",null,[Te(o,{onClick:a},{default:ke(()=>[Re("曲线生成")]),_:1})])}}},Pv={__name:"DeleteTaskClass",props:{task:{type:Object,default:()=>({})},taskClass:{type:Object,default:()=>({})},getClassList:{type:Function,default:()=>{}}},setup(e){const r=e,t=bt(),a=async()=>{try{const{data:i}=await ao({T_task_id:r.task.T_task_id,T_sn:r.taskClass.T_sn});i.Code===200&&(t.success(i.Msg),r.getClassList())}catch(i){console.log(i)}};return(i,s)=>{const o=mc,c=hs;return Ve(),Et(c,{onPositiveClick:a},{trigger:ke(()=>[Te(o,{size:"20",style:{cursor:"pointer"}},{default:ke(()=>[Te(He(Ih))]),_:1})]),default:ke(()=>[Re(" 删除操作，是否继续。 ")]),_:1})}}},Fv={class:"h-full flex flex-col gap-y-3"},Lv={class:"flex-1 grid grid-cols-4 gap-x-3",style:{display:"flex"}},Iv={style:{}},Rv={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"10px"}},Bv={style:{display:"flex","align-items":"center","justify-content":"space-between"}},Nv=["onDblclick"],jv={class:"h-full flex flex-col gap-y-3"},Uv={style:{"padding-top":"20px"}},iy={__name:"index",setup(e){const r=Ti(),t=oo(Nc(),"YYYY-MM-DD HH:mm:ss"),a=ro(),{height:i}=jc(),s=ze(null),o=bt(),c=ze({T_task_id:null,SN_List:null,StartTime:null,EndTime:null,TemperatureMin:"2",TemperatureMax:"8"}),u=ze(!1),w=ze(!0),y=ze(""),L=()=>{if(y.value="",c.value.T_task_id=f.T_task_id,X.value==null){o.error("请选择设备");return}else if(X.value.length==0){o.error("请选择设备");return}else{const ne=[];X.value.forEach(oe=>{ne.push(oe.T_sn+","+oe.T_id)}),c.value.SN_List=ne.join("|")+"|"}if(v.pickleveTime==null){o.error("请选择查询时间");return}else c.value.StartTime=Xt(v.pickleveTime[0]),c.value.EndTime=Xt(v.pickleveTime[1]);N()},N=async()=>{u.value=!0,w.value=!0,(await Ec(c.value)).data.Code==200&&A()},A=async()=>{const ne=await Cc({T_task_id:c.value.T_task_id});if(ne.data.Data.state==1)setTimeout(()=>{A()},500);else if(ne.data.Data.state==2)w.value=!1,y.value=ne.data.Data.url;else{o.error(ne.data.Data.msg);return}},p=()=>{X.value=[],B.value=[],b()},g=window.sessionStorage.getItem("task")?JSON.parse(window.sessionStorage.getItem("task")):{},O=ze(null),M=ne=>{ne==null?(f.Time_start="",f.Time_end=""):(f.Time_start=ne[0],f.Time_end=ne[1])},_=()=>{X.value=[],B.value=[],b()},j=ne=>{console.log("父亲",ne),b()},C=()=>{console.log("失去焦点"),O.value=null},k=ne=>{console.log("获取焦点",ne),O.value=ne},F=qe({showModal:!1,title:""}),P=Ca(),I=()=>{if(console.log("checkValues.value",X.value),X.value)if(X.value.length)P.warning({title:"提示",content:"批量删除操作，是否继续？",positiveText:"确认",negativeText:"取消",onPositiveClick:()=>{m()},onNegativeClick:()=>{o.warning("已取消批量删除")}});else{o.error("请选择至少一项在进行批量操作");return}else{o.error("请选择至少一项在进行批量操作");return}},m=async()=>{var ne=0;for(const oe of X.value)await ao({T_task_id:f.T_task_id,T_sn:oe.T_sn}),ne+=1,ne==X.value.length&&(b(),o.success("批量删除完成"))},B=ze([]),T=async()=>{const{data:ne}=await _c({T_task_id:f.T_task_id,T_collection_state:4});ne.Code==200&&ne.Msg=="ok!"?o.success("完成编辑"):o.error("编辑失败")},S=qe({T_sn:"",T_id:""}),x=ze(!1),h=ne=>{console.log("双击",ne),S.T_sn=ne.T_sn,S.T_id=ne.T_id,x.value=!0},n=async()=>{try{X.value=[];const{data:ne}=await Sc({T_task_id:f.T_task_id,T_sn:S.T_sn,T_id:S.T_id});ne.Code===200&&(o.success(ne.Msg),B.value=[],b())}catch(ne){console.log(ne)}},l=qe({T_t:null,T_rh:null}),f=qe({T_task_id:g.T_task_id,T_sn:"",T_id:"",Time_start:"",Time_end:"",page:1,page_z:9999}),b=async()=>{const{data:ne}=await Ac({T_task_id:f.T_task_id});V.value=ne.Data||[]};b();const v=qe({picktmSta:null,pickleveTime:null}),G=ne=>{O.value==1?v.picktmSta=[parseInt(ne[0].min),parseInt(ne[0].max)]:O.value==2?v.pickleveTime=[parseInt(ne[0].min),parseInt(ne[0].max)]:(f.Time_start="",f.Time_end="")},U=ze(),D=async ne=>{if(X.value==null){o.error("哎呀，请选择设备在查询哟");return}console.log("ee",v.picktmSta,v.pickleveTime),ne==1&&v.picktmSta!=null?(f.Time_start=ot(parseInt(v.picktmSta[0])),f.Time_end=ot(parseInt(v.picktmSta[1]))):ne==2&&v.pickleveTime!=null?(f.Time_start=ot(parseInt(v.pickleveTime[0])),f.Time_end=ot(parseInt(v.pickleveTime[1]))):(f.Time_start="",f.Time_end="");let oe=[];for(let le=0;le<X.value.length;le++){f.T_id=X.value[le].T_id,f.T_sn=X.value[le].T_sn;const ye=await J();U.value=ye,oe.push(q(ye.data.Data.List))}B.value=oe},H=ze("温度"),z=ze(""),W=ze({}),d=async()=>{const{data:ne}=await Mc({T_task_id:f.T_task_id,Id:W.value[5]});ne.Code===200&&(F.showModal=!1,o.success(`${ne.Msg},点击渲染或搜索更新数据`))},R=async()=>{console.log("88",H.value,W.value,l.T_t,l.T_rh);const{data:ne}=await Dc({T_task_id:f.T_task_id,Id:W.value[5],T_t:H.value=="温度"?l.T_t:W.value[2],T_rh:H.value=="湿度"?l.T_rh:W.value[2],T_time:ot(W.value[0])});ne.Code===200&&(F.showModal=!1,o.success(`${ne.Msg},点击渲染或搜索更新数据`))},q=ne=>{let oe={name:"",data:[],events:{click(le){z.value=le.point.x,Q.value=="温度"?l.T_t=le.point.y:l.T_rh=le.point.y,r.state.focuDatas==null&&(F.showModal=!0),f.T_id=le.point.series.name,F.title=Q.value=="温度"?"温度":"湿度";let ye=le.point.series.name;const te=B.value.find(re=>re.name==ye);console.log("点击",te,te.data[le.point.index]),W.value=te.data[le.point.index],console.log("点击",le)}}};if(ne!=null){let le=ne.reverse();oe.name=le[0].T_id,le.forEach(ye=>{oe.data.push([new Date(ye.T_time).getTime(),Q.value=="温度"?ye.T_t:ye.T_rh,Q.value=="温度"?ye.T_rh:ye.T_t,ye.T_sn,ye.T_id,ye.ID])})}else oe.data=[];return oe},J=()=>new Promise(ne=>{const oe=Oc(f);setTimeout(()=>{ne(oe)},500)}),Y=ze(!1),ee=async()=>{Y.value?X.value=V.value:X.value=[]},E=()=>{X.value.length!=V.value.length?Y.value=!1:Y.value=!0},V=ze([]),X=ze(null),Q=ze("温度"),se=ne=>{H.value=ne,D()},K=ze("");return vc(()=>{g.T_collection_state===0?a.info({closable:!1,title:"未完成",meta:`当前时间：${t.value}`,duration:2500,keepAliveOnHover:!0}):g.T_collection_state===1?a.info({closable:!1,title:"已完成",meta:`当前时间：${t.value}`,duration:2500,keepAliveOnHover:!0}):g.T_collection_state===2?a.info({closable:!1,title:"处理中",meta:`当前时间：${t.value}`,duration:2500,keepAliveOnHover:!0}):g.T_collection_state===3&&a.info({closable:!1,title:"已采集-无数据",meta:`当前时间：${t.value}`,duration:2500,keepAliveOnHover:!0})}),(ne,oe)=>{const le=At,ye=Vc,te=bi,re=Rc,Z=Ma,ie=xh,ae=Fc,he=Bc,fe=nh,ve=Pc,ge=so,_e=no,be=Aa,Ce=ti,De=ur,Be=or,Le=hs,Pe=Zc,Ue=Qt,Je=ho,at=co;return Ve(),it(ft,null,[We("div",Fv,[Te(ye,{onBack:ne.$router.back},{title:ke(()=>[Re(" 数据编辑 ")]),extra:ke(()=>[Te(le,{type:"primary",onClick:T},{default:ke(()=>[Re("完成编辑")]),_:1})]),_:1},8,["onBack"]),We("div",Lv,[Te(be,{style:{width:"370px","flex-shrink":"0"}},{default:ke(()=>[Te(_e,{"display-directive":"show"},{default:ke(()=>[Te(ge,{name:"1",tab:"设备"},{default:ke(()=>[Te(ve,null,{header:ke(()=>[We("div",Iv,[We("div",Rv,[Te(te,{format:"yyyy-MM-dd HH:mm",value:v.picktmSta,"onUpdate:value":oe[0]||(oe[0]=Ge=>v.picktmSta=Ge),"time-picker-props":{format:"HH:mm"},"onUpdate:formattedValue":M,onFocus:oe[1]||(oe[1]=Ge=>k(1)),onBlur:C,type:"datetimerange",clearable:""},null,8,["value"]),Te(le,{type:"primary",onClick:oe[2]||(oe[2]=Ge=>D(1)),style:{"margin-left":"10px"}},{default:ke(()=>[Re("渲染")]),_:1})]),We("div",Bv,[Te(re,{checked:Y.value,"onUpdate:checked":[oe[3]||(oe[3]=Ge=>Y.value=Ge),ee],style:{"flex-shrink":"0"}},{default:ke(()=>[Re(" 全选 ")]),_:1},8,["checked"]),We("div",{onClick:I,style:{"text-decoration":"underline",color:"#2d8cf0",cursor:"pointer"}},"批量删除 ")])])]),footer:ke(()=>[Te(fe,{type:"info"},{default:ke(()=>[Re(" 传感器总数："+yt(V.value.length),1)]),_:1})]),default:ke(()=>[We("div",{style:Gs([{height:He(i)-400+"px"},{"overflow-y":"auto"}])},[Te(he,{value:X.value,"onUpdate:value":[oe[4]||(oe[4]=Ge=>X.value=Ge),E]},{default:ke(()=>[(Ve(!0),it(ft,null,ki(V.value,Ge=>(Ve(),Et(ae,{key:Ge.T_id,class:"mr-5"},{prefix:ke(()=>[Te(re,{value:Ge},null,8,["value"])]),suffix:ke(()=>[Te(Z,{wrap:!1},{default:ke(()=>[Te(Pv,{task:He(g),taskClass:Ge,getClassList:_},null,8,["task","taskClass"])]),_:2},1024)]),default:ke(()=>[Te(ie,null,{header:ke(()=>[We("div",{onDblclick:er=>h(Ge)},yt(Ge.T_id),41,Nv)]),description:ke(()=>[Re(yt(Ge.T_sn),1)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["value"])],4)]),_:1})]),_:1}),Te(ge,{name:"2",tab:"表单"},{default:ke(()=>[Te(hv,{task:He(g),ref_key:"formRef",ref:s,"class-list":V.value,time:z.value,"temporal-interval":K.value},null,8,["task","class-list","time","temporal-interval"])]),_:1}),Te(ge,{name:"3",tab:"存档"},{default:ke(()=>[We("div",{style:Gs({height:He(i)-300+"px"})},[Te(xv,{task:He(g)},null,8,["task"])],4)]),_:1})]),_:1})]),_:1}),Te(be,{style:{flex:"1"}},{default:ke(()=>[We("div",jv,[Te(Z,{justify:"space-between"},{default:ke(()=>[Te(Pe,null,{default:ke(()=>[Te(te,{format:"yyyy-MM-dd HH:mm",value:v.pickleveTime,"onUpdate:value":oe[5]||(oe[5]=Ge=>v.pickleveTime=Ge),"time-picker-props":{format:"HH:mm"},onFocus:oe[6]||(oe[6]=Ge=>k(2)),onBlur:C,"onUpdate:formattedValue":M,type:"datetimerange",clearable:""},null,8,["value"]),Te(le,{type:"primary",onClick:oe[7]||(oe[7]=Ge=>D(2)),style:{"margin-right":"20px"}},{default:ke(()=>[Re("渲染")]),_:1}),Te(Le,{onPositiveClick:L,"show-icon":!1},{trigger:ke(()=>[Te(le,{type:"primary"},{default:ke(()=>[Re("概况图")]),_:1})]),default:ke(()=>[We("div",Uv,[Te(Be,{model:c.value,"label-width":"auto","label-placement":"left"},{default:ke(()=>[Te(De,{label:"下限",path:"value"},{default:ke(()=>[Te(Ce,{value:c.value.TemperatureMin,"onUpdate:value":oe[8]||(oe[8]=Ge=>c.value.TemperatureMin=Ge)},null,8,["value"])]),_:1}),Te(De,{label:"上限",path:"value"},{default:ke(()=>[Te(Ce,{value:c.value.TemperatureMax,"onUpdate:value":oe[9]||(oe[9]=Ge=>c.value.TemperatureMax=Ge)},null,8,["value"])]),_:1})]),_:1},8,["model"])])]),_:1})]),_:1}),Te(Z,null,{default:ke(()=>[Te(cv,{queryObj:f,pickleveTime:v.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(iv,{onImportFiles:p,task:He(g)},null,8,["task"]),Te(ov,{task:He(g)},null,8,["task"]),Te(Zh,{"class-list":V.value,onAddFuns:j,task:He(g)},null,8,["class-list","task"]),Te(lv),Te(fv,{onRatioZoomFun:oe[10]||(oe[10]=Ge=>D(1)),queryObj:f,pickleveTime:v.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(vv,{queryObj:f,pickleveTime:v.pickleveTime,checkData:X.value,classList:V.value},null,8,["queryObj","pickleveTime","checkData","classList"]),Te(Tv,{queryObj:f,pickleveTime:v.pickleveTime,checkData:X.value,classList:V.value},null,8,["queryObj","pickleveTime","checkData","classList"]),Te(kv,{queryObj:f,pickleveTime:v.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(bv,{queryObj:f,pickleveTime:v.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(wv,{queryObj:f,pickleveTime:v.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(Av,{queryObj:f,pickleveTime:v.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(Cv,{queryObj:f,pickleveTime:v.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(Dv,{queryObj:f,pickleveTime:v.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(Ov,{queryObj:f,pickleveTime:v.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"])]),_:1})]),_:1}),Te(_e,{type:"segment",animated:"",value:Q.value,"onUpdate:value":[oe[11]||(oe[11]=Ge=>Q.value=Ge),se]},{default:ke(()=>[Te(ge,{name:"温度",tab:"温度"},{default:ke(()=>[Te(zh,{dataList:B.value,onSetTimeFun:G},null,8,["dataList"])]),_:1}),Te(ge,{name:"湿度",tab:"湿度"},{default:ke(()=>[Te($h,{dataList:B.value,onSetTimeFun:G},null,8,["dataList"])]),_:1})]),_:1},8,["value"])])]),_:1})])]),Te(Ue,{show:F.showModal,"onUpdate:show":oe[14]||(oe[14]=Ge=>F.showModal=Ge),title:F.title,"show-icon":!1,preset:"dialog"},{default:ke(()=>[F.title==="温度"?(Ve(),Et(De,{key:0,"show-require-mark":""},{default:ke(()=>[Te(Ce,{value:l.T_t,"onUpdate:value":oe[12]||(oe[12]=Ge=>l.T_t=Ge)},null,8,["value"])]),_:1})):(Ve(),Et(De,{key:1,"show-require-mark":""},{default:ke(()=>[Te(Ce,{value:l.T_rh,"onUpdate:value":oe[13]||(oe[13]=Ge=>l.T_rh=Ge)},null,8,["value"])]),_:1})),Te(Z,{justify:"end"},{default:ke(()=>[Te(Le,{onPositiveClick:d},{trigger:ke(()=>[Te(le,{type:"error"},{default:ke(()=>[Re("删除该点")]),_:1})]),default:ke(()=>[Re(" 是否确认删除？ ")]),_:1}),Te(le,{type:"primary",onClick:R},{default:ke(()=>[Re("确定")]),_:1})]),_:1})]),_:1},8,["show","title"]),Te(Ue,{show:x.value,"onUpdate:show":oe[17]||(oe[17]=Ge=>x.value=Ge),preset:"dialog","positive-text":"确认","negative-text":"取消","show-icon":!1,onPositiveClick:n},{default:ke(()=>[Te(Be,{model:S,"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(De,{label:"编号",path:"T_id"},{default:ke(()=>[Te(Ce,{value:S.T_id,"onUpdate:value":oe[15]||(oe[15]=Ge=>S.T_id=Ge)},null,8,["value"])]),_:1}),Te(De,{label:"SN",path:"T_sn"},{default:ke(()=>[Te(Ce,{value:S.T_sn,"onUpdate:value":oe[16]||(oe[16]=Ge=>S.T_sn=Ge),disabled:"false"},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["show"]),Te(Ue,{show:u.value,"onUpdate:show":oe[18]||(oe[18]=Ge=>u.value=Ge),title:"概况图",preset:"card",style:{"min-width":"500px","max-width":"600px","min-height":"300px"}},{default:ke(()=>[Te(at,{show:w.value},{description:ke(()=>[Re(" 加载中，请稍后... ")]),default:ke(()=>[Te(Je,{width:"500",src:y.value,style:{border:"1px solid #ccc","min-height":"200px"}},null,8,["src"])]),_:1},8,["show"])]),_:1},8,["show"])],64)}}};export{iy as default};
