123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- import{Q as Ql,d as ti,h as Ze,R as gt,S as Wt,T as Ft,U as ea,V as ec,W as Na,X as Ir,Y as Gr,Z as tc,z as Xt,$ as ls,F as dt,a0 as to,a1 as Di,a2 as rc,a3 as js,a4 as ic,a5 as ac,a6 as sc,a7 as nc,a8 as oc,b as ze,a9 as lc,aa as cc,ab as Yr,I as fr,ac as ro,ad as hc,_ as ri,ae as Us,af as Hs,ag as Ws,ah as zs,ai as Gs,aj as di,A as Gi,ak as fc,al as er,am as dc,an as sr,ao as nr,o as Ge,c as at,a as We,ap as uc,aq as pc,ar as gc,n as _t,r as qe,y as ki,e as cs,t as Tt,f as Te,w as ke,q as bi,l as Ea,p as tr,i as Re,g as He,B as st,K as Xi,j as Et,as as Ca,v as ur,x as or,J as io,at as xc,G as mc,P as Ma,m as vc,au as yc,s as Xs,L as kr}from"./index-9831710d.js";import{r as Tc,_ as kc,a as bc}from"./vue.runtime.esm-bundler-ed4e85e3.js";import{_ as hs,a as _c}from"./Certificate-fb98150b.js";import{e as wc}from"./Task-8824c2f2.js";import{a as Vs,b as ao,c as Sc,d as so,f as Ac,h as Ec,T as Cc,i as Mc,j as Dc,k as Oc,g as Pc}from"./TaskData-461bc405.js";import{_ as no,a as oo,b as Fc,c as Lc}from"./Tabs-c9c25eb6.js";import{_ as _i}from"./DatePicker-8cdb9ca3.js";import{_ as Ic,a as Rc,b as Bc,c as Nc}from"./RadioGroup-980b9a9f.js";import{_ as Da}from"./Space-5fa90cb4.js";import{a as lo,b as jc,u as Uc}from"./index-72da5a86.js";import{_ as co,a as Hc,b as ho,p as Wc,g as zc,c as fo,d as Gc,e as Xc}from"./VerifyTemplateMapData-a4bc9632.js";import{_ as fs}from"./Popconfirm-5dceb53b.js";import{A as Vc}from"./Add-a79e26e3.js";import{_ as Yc}from"./PageHeader-6fa47d6a.js";import"./get-slot-1efb97e5.js";import"./Tooltip-875bac08.js";let Ys=!1;function $c(){if(Ql&&window.CSS&&!Ys&&(Ys=!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 Kc=ti({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;
- `}))}}),qc=gt("input-group",`
- display: inline-flex;
- width: 100%;
- flex-wrap: nowrap;
- vertical-align: bottom;
- `,[Wt(">",[gt("input",[Wt("&:not(:last-child)",`
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `),Wt("&:not(:first-child)",`
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- margin-left: -1px!important;
- `)]),gt("button",[Wt("&: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;
- `)]),Wt("&: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;
- `)])]),Wt("*",[Wt("&:not(:last-child)",`
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `,[Wt(">",[gt("input",`
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `),gt("base-selection",[gt("base-selection-label",`
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `),gt("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;
- `)])])]),Wt("&:not(:first-child)",`
- margin-left: -1px!important;
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `,[Wt(">",[gt("input",`
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `),gt("base-selection",[gt("base-selection-label",`
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `),gt("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;
- `)])])])])])]),Zc={},Jc=ti({name:"InputGroup",props:Zc,setup(e){const{mergedClsPrefixRef:r}=ea(e);return ec("-input-group",qc,r),{mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return Ze("div",{class:`${e}-input-group`},this.$slots)}}),Qc=gt("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);
- `,[Na("vertical",`
- margin-top: 24px;
- margin-bottom: 24px;
- `,[Na("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);
- `),Ir("title-position-left",[Ft("line",[Ir("left",{width:"28px"})])]),Ir("title-position-right",[Ft("line",[Ir("right",{width:"28px"})])]),Ir("dashed",[Ft("line",`
- background-color: #0000;
- height: 0px;
- width: 100%;
- border-style: dashed;
- border-width: 1px 0 0;
- `)]),Ir("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;
- `),Na("dashed",[Ft("line",{backgroundColor:"var(--n-color)"})]),Ir("dashed",[Ft("line",{borderColor:"var(--n-color)"})]),Ir("vertical",{backgroundColor:"var(--n-color)"})]),eh=Object.assign(Object.assign({},Gr.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),th=ti({name:"Divider",props:eh,setup(e){const{mergedClsPrefixRef:r,inlineThemeDisabled:t}=ea(e),a=Gr("Divider","-divider",Qc,tc,e,r),i=Xt(()=>{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?ls("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(dt,null,Ze("div",{class:`${o}-divider__title`},this.$slots),Ze("div",{class:`${o}-divider__line ${o}-divider__line--right`})):null)}}),rh=e=>{const{primaryColor:r,successColor:t,warningColor:a,errorColor:i,infoColor:s,fontWeightStrong:o}=e;return{fontWeight:o,rotate:"252deg",colorStartPrimary:Di(r,{alpha:.6}),colorEndPrimary:r,colorStartInfo:Di(s,{alpha:.6}),colorEndInfo:s,colorStartWarning:Di(a,{alpha:.6}),colorEndWarning:a,colorStartError:Di(i,{alpha:.6}),colorEndError:i,colorStartSuccess:Di(t,{alpha:.6}),colorEndSuccess:t}},ih={name:"GradientText",common:to,self:rh},ah=ih,sh=gt("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);
- `),nh=Object.assign(Object.assign({},Gr.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),oh=ti({name:"GradientText",props:nh,setup(e){$c();const{mergedClsPrefixRef:r,inlineThemeDisabled:t}=ea(e),a=Xt(()=>{const{type:w}=e;return w==="danger"?"error":w}),i=Xt(()=>{let w=e.size||e.fontSize;return w&&(w=rc(w)),w||void 0}),s=Xt(()=>{const w=e.color||e.gradient;if(typeof w=="string")return w;if(w){const y=w.deg||0,I=w.from,j=w.to;return`linear-gradient(${y}deg, ${I} 0%, ${j} 100%)`}}),o=Gr("GradientText","-gradient-text",sh,ah,e,r),c=Xt(()=>{const{value:w}=a,{common:{cubicBezierEaseInOut:y},self:{rotate:I,[js("colorStart",w)]:j,[js("colorEnd",w)]:C,fontWeight:p}}=o.value;return{"--n-bezier":y,"--n-rotate":I,"--n-color-start":j,"--n-color-end":C,"--n-font-weight":p}}),u=t?ls("gradient-text",Xt(()=>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)}}),lh=e=>{const{textColorDisabled:r}=e;return{iconColorDisabled:r}},ch=ic({name:"InputNumber",common:to,peers:{Button:ac,Input:sc},self:lh}),hh=ch;function fh(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function dh(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function ja(e){return e==null?!0:!Number.isNaN(e)}function $s(e,r){return e==null?"":r===void 0?String(e):e.toFixed(r)}function Ua(e){if(e===null)return null;if(typeof e=="number")return e;{const r=Number(e);return Number.isNaN(r)?null:r}}const uh=Wt([gt("input-number-suffix",`
- display: inline-block;
- margin-right: 10px;
- `),gt("input-number-prefix",`
- display: inline-block;
- margin-left: 10px;
- `)]),Ks=800,qs=100,ph=Object.assign(Object.assign({},Gr.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]}),Oa=ti({name:"InputNumber",props:ph,setup(e){const{mergedBorderedRef:r,mergedClsPrefixRef:t,mergedRtlRef:a}=ea(e),i=Gr("InputNumber","-input-number",uh,hh,e,t),{localeRef:s}=nc("InputNumber"),o=oc(e),{mergedSizeRef:c,mergedDisabledRef:u,mergedStatusRef:w}=o,y=ze(null),I=ze(null),j=ze(null),C=ze(e.defaultValue),p=lc(e,"value"),x=cc(p,C),O=ze(""),S=K=>{const oe=String(K).split(".")[1];return oe?oe.length:0},_=K=>{const oe=[e.min,e.max,e.step,K].map(ce=>ce===void 0?0:S(ce));return Math.max(...oe)},N=Yr(()=>{const{placeholder:K}=e;return K!==void 0?K:s.value.placeholder}),M=Yr(()=>{const K=Ua(e.step);return K!==null?K===0?1:Math.abs(K):1}),b=Yr(()=>{const K=Ua(e.min);return K!==null?K:null}),F=Yr(()=>{const K=Ua(e.max);return K!==null?K:null}),P=K=>{const{value:oe}=x;if(K===oe){m();return}const{"onUpdate:value":ce,onUpdateValue:ne,onChange:pe}=e,{nTriggerFormInput:te,nTriggerFormChange:re}=o;pe&&di(pe,K),ne&&di(ne,K),ce&&di(ce,K),C.value=K,te(),re()},L=({offset:K,doUpdateIfValid:oe,fixPrecision:ce,isInputing:ne})=>{const{value:pe}=O;if(ne&&dh(pe))return!1;const te=(e.parse||fh)(pe);if(te===null)return oe&&P(null),null;if(ja(te)){const re=S(te),{precision:q}=e;if(q!==void 0&&q<re&&!ce)return!1;let ae=parseFloat((te+K).toFixed(q??_(te)));if(ja(ae)){const{value:se}=F,{value:he}=b;if(se!==null&&ae>se){if(!oe||ne)return!1;ae=se}if(he!==null&&ae<he){if(!oe||ne)return!1;ae=he}return e.validator&&!e.validator(ae)?!1:(oe&&P(ae),ae)}}return!1},m=()=>{const{value:K}=x;if(ja(K)){const{format:oe,precision:ce}=e;oe?O.value=oe(K):K===null||ce===void 0||S(K)>ce?O.value=$s(K,void 0):O.value=$s(K,ce)}else O.value=String(K)};m();const B=Yr(()=>L({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),T=Yr(()=>{const{value:K}=x;if(e.validator&&K===null)return!1;const{value:oe}=M;return L({offset:-oe,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),A=Yr(()=>{const{value:K}=x;if(e.validator&&K===null)return!1;const{value:oe}=M;return L({offset:+oe,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function g(K){const{onFocus:oe}=e,{nTriggerFormFocus:ce}=o;oe&&di(oe,K),ce()}function h(K){var oe,ce;if(K.target===((oe=y.value)===null||oe===void 0?void 0:oe.wrapperElRef))return;const ne=L({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(ne!==!1){const re=(ce=y.value)===null||ce===void 0?void 0:ce.inputElRef;re&&(re.value=String(ne||"")),x.value===ne&&m()}else m();const{onBlur:pe}=e,{nTriggerFormBlur:te}=o;pe&&di(pe,K),te(),Gi(()=>{m()})}function n(K){const{onClear:oe}=e;oe&&di(oe,K)}function l(){const{value:K}=A;if(!K){R();return}const{value:oe}=x;if(oe===null)e.validator||P(G());else{const{value:ce}=M;L({offset:ce,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function f(){const{value:K}=T;if(!K){d();return}const{value:oe}=x;if(oe===null)e.validator||P(G());else{const{value:ce}=M;L({offset:-ce,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const k=g,v=h;function G(){if(e.validator)return null;const{value:K}=b,{value:oe}=F;return K!==null?Math.max(0,K):oe!==null?Math.min(0,oe):0}function U(K){n(K),P(null)}function D(K){var oe,ce,ne;!((oe=j.value)===null||oe===void 0)&&oe.$el.contains(K.target)&&K.preventDefault(),!((ce=I.value)===null||ce===void 0)&&ce.$el.contains(K.target)&&K.preventDefault(),(ne=y.value)===null||ne===void 0||ne.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 Z(){d(),W=window.setTimeout(()=>{H=window.setInterval(()=>{f()},qs)},Ks),Hs("mouseup",document,d,{once:!0})}let J=null;function Y(){R(),J=window.setTimeout(()=>{z=window.setInterval(()=>{l()},qs)},Ks),Hs("mouseup",document,R,{once:!0})}const ee=()=>{z||l()},E=()=>{H||f()};function V(K){var oe,ce;if(K.key==="Enter"){if(K.target===((oe=y.value)===null||oe===void 0?void 0:oe.wrapperElRef))return;L({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ce=y.value)===null||ce===void 0||ce.deactivate())}else if(K.key==="ArrowUp"){if(!A.value||e.keyboard.ArrowUp===!1)return;K.preventDefault(),L({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(),L({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&&L({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}fr(x,()=>{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()}},ie=ro("InputNumber",a,t);return Object.assign(Object.assign({},Q),{rtlEnabled:ie,inputInstRef:y,minusButtonInstRef:I,addButtonInstRef:j,mergedClsPrefix:t,mergedBordered:r,uncontrolledValue:C,mergedValue:x,mergedPlaceholder:N,displayedValueInvalid:B,mergedSize:c,mergedDisabled:u,displayedValue:O,addable:A,minusable:T,mergedStatus:w,handleFocus:k,handleBlur:v,handleClear:U,handleMouseDown:D,handleAddClick:ee,handleMinusClick:E,handleAddMousedown:Y,handleMinusMousedown:Z,handleKeyDown:V,handleUpdateDisplayedValue:X,mergedTheme:i,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:Xt(()=>{const{self:{iconColorDisabled:K}}=i.value,[oe,ce,ne,pe]=hc(K);return{textColorTextDisabled:`rgb(${oe}, ${ce}, ${ne})`,opacityDisabled:`${pe}`}})})},render(){const{mergedClsPrefix:e,$slots:r}=this,t=()=>Ze(Gs,{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:()=>Ws(r["minus-icon"],()=>[Ze(zs,{clsPrefix:e},{default:()=>Ze(Kc,null)})])}),a=()=>Ze(Gs,{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:()=>Ws(r["add-icon"],()=>[Ze(zs,{clsPrefix:e},{default:()=>Ze(Vc,null)})])});return Ze("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},Ze(ri,{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(),Us(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?[Us(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)}}))}}),gh=gt("thing",`
- display: flex;
- transition: color .3s var(--n-bezier);
- font-size: var(--n-font-size);
- color: var(--n-text-color);
- `,[gt("thing-avatar",`
- margin-right: 12px;
- margin-top: 2px;
- `),gt("thing-avatar-header-wrapper",`
- display: flex;
- flex-wrap: nowrap;
- `,[gt("thing-header-wrapper",`
- flex: 1;
- `)]),gt("thing-main",`
- flex-grow: 1;
- `,[gt("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",[Wt("&:not(:last-child)",`
- margin-bottom: 4px;
- `)]),Ft("content",[Wt("&:not(:first-child)",`
- margin-top: 12px;
- `)]),Ft("footer",[Wt("&:not(:first-child)",`
- margin-top: 12px;
- `)]),Ft("action",[Wt("&:not(:first-child)",`
- margin-top: 12px;
- `)])])]),xh=Object.assign(Object.assign({},Gr.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),mh=ti({name:"Thing",props:xh,setup(e,{slots:r}){const{mergedClsPrefixRef:t,inlineThemeDisabled:a,mergedRtlRef:i}=ea(e),s=Gr("Thing","-thing",gh,fc,e,t),o=ro("Thing",i,t),c=Xt(()=>{const{self:{titleTextColor:w,textColor:y,titleFontWeight:I,fontSize:j},common:{cubicBezierEaseInOut:C}}=s.value;return{"--n-bezier":C,"--n-font-size":j,"--n-text-color":y,"--n-title-font-weight":I,"--n-title-text-color":w}}),u=a?ls("thing",void 0,c,e):void 0;return()=>{var w;const{value:y}=t,I=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,I&&`${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(dt,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))}}}),vh=e=>er.request({method:"POST",url:"/v3/Data/List",data:e,baseURL:dc}),yh=e=>er.request({method:"POST",url:"/TaskDataCopy/Recover",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Th=e=>er.request({method:"POST",url:"/TaskDataCopy/Del",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),kh=e=>er.request({method:"POST",url:"/TaskDataCopy/Add",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),bh=e=>er.request({method:"POST",url:"/TaskDataCopy/List",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),_h=e=>er.request({method:"POST",url:"/TaskData/DataGeometricScale",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),wh=e=>er.request({method:"POST",url:"/TaskData/CopyFromPositionSN",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Sh=e=>er.request({method:"POST",url:"/TaskData/CopyFromPositionAverageSN",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Ah=e=>er.request({method:"POST",url:"/TaskData/RepairSensorData",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Eh=e=>er.request({method:"POST",url:"/TaskData/DataSensorDataTrend",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Ch=e=>er.request({method:"POST",url:"/TaskData/UpdateRand",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Mh=e=>er.request({method:"POST",url:"/TaskData/DataSkewingInterval",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Dh=e=>er.request({method:"POST",url:"/TaskData/UpdateFix",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Oh=e=>er.request({method:"POST",url:"/TaskData/DataSensorDataSmooth",data:e,baseURL:localStorage.getItem("ping")?sr:nr}),Ph={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Fh=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),Lh=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),Ih=[Fh,Lh],Rh=ti({name:"Trash",render:function(r,t){return Ge(),at("svg",Ph,Ih)}});var Bh={exports:{}};(function(e,r){(function(t,a){e.exports=a(uc,Tc)})(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 b}),w.d(y,"default",function(){return F});var y=w(0),I=w.n(y);function j(P,L){return function m(B,T,A){function g(h,n){!I.a.isObject(h,!A)||I.a.isClass(h)||I.a.isDOMElement(h)?B[n]=T[n]:B[n]=m(B[n]||I.a.isArray(h)?[]:{},h,A)}return I.a.isArray(T)?T.forEach(g):I.a.objectEach(T,g),B}({},P,L)}var C=w(1);function p(P){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(P)}function x(P){return function(L){if(Array.isArray(L))return O(L)}(P)||function(L){if(typeof Symbol<"u"&&L[Symbol.iterator]!=null||L["@@iterator"]!=null)return Array.from(L)}(P)||function(L,m){var B;if(L)return typeof L=="string"?O(L,m):(B=(B=Object.prototype.toString.call(L).slice(8,-1))==="Object"&&L.constructor?L.constructor.name:B)==="Map"||B==="Set"?Array.from(L):B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?O(L,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,L){(L==null||L>P.length)&&(L=P.length);for(var m=0,B=new Array(L);m<L;m++)B[m]=P[m];return B}function S(P,L){var m,B=Object.keys(P);return Object.getOwnPropertySymbols&&(m=Object.getOwnPropertySymbols(P),L&&(m=m.filter(function(T){return Object.getOwnPropertyDescriptor(P,T).enumerable})),B.push.apply(B,m)),B}function _(P){for(var L=1;L<arguments.length;L++){var m=arguments[L]!=null?arguments[L]:{};L%2?S(Object(m),!0).forEach(function(B){var T,A;T=P,A=m[B=B],(B=function(g){return g=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.")}(g,"string"),p(g)==="symbol"?g:String(g)}(B))in T?Object.defineProperty(T,B,{value:A,enumerable:!0,configurable:!0,writable:!0}):T[B]=A}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(m)):S(Object(m)).forEach(function(B){Object.defineProperty(P,B,Object.getOwnPropertyDescriptor(m,B))})}return P}var N={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}}},M=function(P,L){return L.split(".")[0]<3?_(_({},N),{},{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,[j(m,this.deepCopyOnUpdate)].concat(x(this.updateArgs)))},deep:!0}},mounted:function(){var m=this.highcharts||P;this.options&&m[this.constructorType]?this.chart=m[this.constructorType](this.$refs.chart,j(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.')}}):_(_({},N),{},{render:function(){return Object(C.h)("div",{ref:"chartContainer"})},setup:function(m){var B=Object(C.ref)(null),T=Object(C.ref)({});return Object(C.onMounted)(function(){var A=m.highcharts||P;m.options&&A[m.constructorType]?T.value=A[m.constructorType](B.value,j(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(C.watch)(function(){return m.options},function(A,g){var h;(h=T.value).update.apply(h,[j(A,m.deepCopyOnUpdate)].concat(x(m.updateArgs)))},{deep:!0}),Object(C.onBeforeUnmount)(function(){T.value&&T.value.destroy()}),{chart:T,chartContainer:B,props:m}}})},b=M(I.a,C.version||w.n(C).a.version);function F(P){var L=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};P.component(L.tagName||"highcharts",M(L.highcharts||I.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(I){return c[I]}.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})})(Bh);var uo={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:pc,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(q,ae,se,he){const fe=ae?"Highcharts error":"Highcharts warning";q===32&&(q=`${fe}: Deprecated member`);const ye=_(q);let me=ye?`${fe} #${q}: www.highcharts.com/errors/${q}/`:q.toString();const _e=function(){if(ae)throw new Error(me);c.console&&u.messages.indexOf(me)===-1&&console.warn(me)};if(typeof he<"u"){let be="";ye&&(me+="?"),Q(he,function(Ce,De){be+=`
- - ${De}: ${Ce}`,ye&&(me+=encodeURI(De)+"="+encodeURI(Ce))}),me+=be}oe(i,"displayError",{chart:se,code:q,message:me,params:he},_e),u.messages.push(me)}(function(q){q.messages=[]})(u||(u={}));function w(){let q,ae=arguments,se={};const he=function(ye,me){return typeof ye!="object"&&(ye={}),Q(me,function(_e,be){be==="__proto__"||be==="constructor"||(x(_e,!0)&&!S(_e)&&!O(_e)?ye[be]=he(ye[be]||{},_e):ye[be]=me[be])}),ye};ae[0]===!0&&(se=ae[1],ae=Array.prototype.slice.call(ae,2));const fe=ae.length;for(q=0;q<fe;q++)se=he(se,ae[q]);return se}function y(q,ae,se){return q>ae?q<se?q:se:ae}function I(q,ae,se,he){const fe={};function ye(me,_e,be,Ce){const De=se?_e:me;Q(me,function(Be,Fe){if(!Ce&&he&&he.indexOf(Fe)>-1&&_e[Fe]){Be=L(Be),be[Fe]=[];for(let Oe=0;Oe<Math.max(Be.length,_e[Fe].length);Oe++)_e[Fe][Oe]&&(Be[Oe]===void 0?be[Fe][Oe]=_e[Fe][Oe]:(be[Fe][Oe]={},ye(Be[Oe],_e[Fe][Oe],be[Fe][Oe],Ce+1)))}else x(Be,!0)&&!Be.nodeType?(be[Fe]=p(Be)?[]:{},ye(Be,_e[Fe]||{},be[Fe],Ce+1),Object.keys(be[Fe]).length===0&&!(Fe==="colorAxis"&&Ce===0)&&delete be[Fe]):(me[Fe]!==_e[Fe]||Fe in me&&!(Fe in _e))&&(be[Fe]=De[Fe])})}return ye(q,ae,fe,0),fe}function j(q,ae){return parseInt(q,ae||10)}function C(q){return typeof q=="string"}function p(q){const ae=Object.prototype.toString.call(q);return ae==="[object Array]"||ae==="[object Array Iterator]"}function x(q,ae){return!!q&&typeof q=="object"&&(!ae||!p(q))}function O(q){return x(q)&&typeof q.nodeType=="number"}function S(q){const ae=q&&q.constructor;return!!(x(q,!0)&&!O(q)&&ae&&ae.name&&ae.name!=="Object")}function _(q){return typeof q=="number"&&!isNaN(q)&&q<1/0&&q>-1/0}function N(q,ae){let se=q.length;for(;se--;)if(q[se]===ae){q.splice(se,1);break}}function M(q,ae){const se=q.options.index,he=ae.length;let fe;for(fe=q.options.isInternal?he:0;fe<he+1;fe++)if(!ae[fe]||_(se)&&se<A(ae[fe].options.index,ae[fe]._i)||ae[fe].options.isInternal){ae.splice(fe,0,q);break}return fe}function b(q,ae){return q.indexOf(ae)<0&&!!q.push(ae)}function F(q){return typeof q<"u"&&q!==null}function P(q,ae,se){const he=C(ae)&&!F(se);let fe;const ye=(me,_e)=>{F(me)?q.setAttribute(_e,me):he?(fe=q.getAttribute(_e),!fe&&_e==="class"&&(fe=q.getAttribute(_e+"Name"))):q.removeAttribute(_e)};return C(ae)?ye(se,ae):Q(ae,ye),fe}function L(q){return p(q)?q:[q]}function m(q,ae,se){return ae>0?setTimeout(q,ae,se):(q.call(0,se),-1)}function B(q){F(q)&&clearTimeout(q)}function T(q,ae){let se;q||(q={});for(se in ae)q[se]=ae[se];return q}function A(){const q=arguments,ae=q.length;for(let se=0;se<ae;se++){const he=q[se];if(typeof he<"u"&&he!==null)return he}}function g(q,ae){i.isMS&&!i.svg&&ae&&F(ae.opacity)&&(ae.filter=`alpha(opacity=${ae.opacity*100})`),T(q.style,ae)}function h(q,ae,se,he,fe){const ye=o.createElement(q);return ae&&T(ye,ae),fe&&g(ye,{padding:"0",border:"none",margin:"0"}),se&&g(ye,se),he&&he.appendChild(ye),ye}function n(q,ae){const se=function(){};return se.prototype=new q,T(se.prototype,ae),se}function l(q,ae,se){return new Array((ae||2)+1-String(q).replace("-","").length).join(se||"0")+q}function f(q,ae,se){return/%$/.test(q)?ae*parseFloat(q)/100+(se||0):parseFloat(q)}function k(q,ae,se){const he=q[ae];q[ae]=function(){const fe=arguments,ye=this;return se.apply(this,[function(){return he.apply(ye,arguments.length?arguments:fe)}].concat([].slice.call(arguments)))}}function v(q){return Math.pow(10,Math.floor(Math.log(q)/Math.LN10))}function G(q,ae,se,he,fe){let ye,me=q;se=A(se,v(q));const _e=q/se;for(ae||(ae=fe?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],he===!1&&(se===1?ae=ae.filter(function(be){return be%1===0}):se<=.1&&(ae=[1/se]))),ye=0;ye<ae.length&&(me=ae[ye],!(fe&&me*se>=q||!fe&&_e<=(ae[ye]+(ae[ye+1]||ae[ye]))/2));ye++);return me=d(me*se,-Math.round(Math.log(.001)/Math.LN10)),me}function U(q,ae){const se=q.length;let he,fe;for(fe=0;fe<se;fe++)q[fe].safeI=fe;for(q.sort(function(ye,me){return he=ae(ye,me),he===0?ye.safeI-me.safeI:he}),fe=0;fe<se;fe++)delete q[fe].safeI}function D(q){let ae=q.length,se=q[0];for(;ae--;)q[ae]<se&&(se=q[ae]);return se}function H(q){let ae=q.length,se=q[0];for(;ae--;)q[ae]>se&&(se=q[ae]);return se}function z(q,ae){Q(q,function(se,he){se&&se!==ae&&se.destroy&&se.destroy(),delete q[he]})}function W(q){q&&q.parentElement&&q.parentElement.removeChild(q)}function d(q,ae){return q>1e14?q:parseFloat(q.toPrecision(ae||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(q){return-.5*(Math.cos(Math.PI*q)-1)};function Z(q,ae){const se=!ae;let he,fe,ye,me;return q.forEach(_e=>{if(_e.length>1)for(fe=_e.length-1,me=fe;me>0;me--)ye=_e[me]-_e[me-1],ye<0&&!se?(ae==null||ae(),ae=void 0):ye&&(typeof he>"u"||ye<he)&&(he=ye)}),he}function J(q,ae){const se=q.split(".");for(;se.length&&F(ae);){const he=se.shift();if(typeof he>"u"||he==="__proto__")return;if(he==="this"){let ye;return x(ae)&&(ye=ae["@this"]),ye??ae}const fe=ae[he];if(!F(fe)||typeof fe=="function"||typeof fe.nodeType=="number"||fe===c)return;ae=fe}return ae}function Y(q,ae,se){let he;if(ae==="width"){let ye=Math.min(q.offsetWidth,q.scrollWidth);const me=q.getBoundingClientRect&&q.getBoundingClientRect().width;return me<ye&&me>=ye-1&&(ye=Math.floor(me)),Math.max(0,ye-(Y(q,"padding-left",!0)||0)-(Y(q,"padding-right",!0)||0))}if(ae==="height")return Math.max(0,Math.min(q.offsetHeight,q.scrollHeight)-(Y(q,"padding-top",!0)||0)-(Y(q,"padding-bottom",!0)||0));const fe=c.getComputedStyle(q,void 0);return fe&&(he=fe.getPropertyValue(ae),A(se,ae!=="opacity")&&(he=j(he))),he}function ee(q,ae,se){return u(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),ae.indexOf(q,se)}const E=Array.prototype.find?function(q,ae){return q.find(ae)}:function(q,ae){let se;const he=q.length;for(se=0;se<he;se++)if(ae(q[se],se))return q[se]};function V(q){return u(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(q)}function X(q){const ae=o.documentElement,se=q.parentElement||q.parentNode?q.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:se.top+(c.pageYOffset||ae.scrollTop)-(ae.clientTop||0),left:se.left+(c.pageXOffset||ae.scrollLeft)-(ae.clientLeft||0),width:se.width,height:se.height}}function Q(q,ae,se){for(const he in q)Object.hasOwnProperty.call(q,he)&&ae.call(se||q[he],q[he],he,q)}Q({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(q,ae){i[ae]=function(se){return u(32,!1,void 0,{[`Highcharts.${ae}`]:`use Array.${q}`}),Array.prototype[q].apply(se,[].slice.call(arguments,1))}});function ie(q,ae,se,he={}){const fe=typeof q=="function"&&q.prototype||q;Object.hasOwnProperty.call(fe,"hcEvents")||(fe.hcEvents={});const ye=fe.hcEvents;i.Point&&q instanceof i.Point&&q.series&&q.series.chart&&(q.series.chart.runTrackerClick=!0);const me=q.addEventListener;me&&me.call(q,ae,se,i.supportsPassiveEvents?{passive:he.passive===void 0?ae.indexOf("touch")!==-1:he.passive,capture:!1}:!1),ye[ae]||(ye[ae]=[]);const _e={fn:se,order:typeof he.order=="number"?he.order:1/0};return ye[ae].push(_e),ye[ae].sort((be,Ce)=>be.order-Ce.order),function(){K(q,ae,se)}}function K(q,ae,se){function he(me,_e){const be=q.removeEventListener;be&&be.call(q,me,_e,!1)}function fe(me){let _e,be;q.nodeName&&(ae?(_e={},_e[ae]=!0):_e=me,Q(_e,function(Ce,De){if(me[De])for(be=me[De].length;be--;)he(De,me[De][be].fn)}))}const ye=typeof q=="function"&&q.prototype||q;if(Object.hasOwnProperty.call(ye,"hcEvents")){const me=ye.hcEvents;if(ae){const _e=me[ae]||[];se?(me[ae]=_e.filter(function(be){return se!==be.fn}),he(ae,se)):(fe(me),me[ae]=[])}else fe(me),delete ye.hcEvents}}function oe(q,ae,se,he){let fe;if(se=se||{},o.createEvent&&(q.dispatchEvent||q.fireEvent&&q!==i))fe=o.createEvent("Events"),fe.initEvent(ae,!0,!0),se=T(fe,se),q.dispatchEvent?q.dispatchEvent(se):q.fireEvent(ae,se);else if(q.hcEvents){se.target||T(se,{preventDefault:function(){se.defaultPrevented=!0},target:q,type:ae});const ye=[];let me=q,_e=!1;for(;me.hcEvents;)Object.hasOwnProperty.call(me,"hcEvents")&&me.hcEvents[ae]&&(ye.length&&(_e=!0),ye.unshift.apply(ye,me.hcEvents[ae])),me=Object.getPrototypeOf(me);_e&&ye.sort((be,Ce)=>be.order-Ce.order),ye.forEach(be=>{be.fn.call(q,se)===!1&&se.preventDefault()})}he&&!se.defaultPrevented&&he.call(q,se)}let ce;const ne=function(){const q=Math.random().toString(36).substring(2,9)+"-";let ae=0;return function(){return"highcharts-"+(ce?"":q)+ae++}}();function pe(q){return ce=A(q,ce)}function te(q){return typeof q=="function"}return c.jQuery&&(c.jQuery.fn.highcharts=function(){const q=[].slice.call(arguments);if(this[0])return q[0]?(new i[C(q[0])?q.shift():"Chart"](this[0],q[0],q[1]),this):s[P(this[0],"data-highcharts-chart")]}),{addEvent:ie,arrayMax:H,arrayMin:D,attr:P,clamp:y,clearTimeout:B,correctFloat:d,createElement:h,css:g,defined:F,destroyObjectProperties:z,diffObjects:I,discardElement:W,erase:N,error:u,extend:T,extendClass:n,find:E,fireEvent:oe,getClosestDistance:Z,getMagnitude:v,getNestedProperty:J,getStyle:Y,inArray:ee,insertItem:M,isArray:p,isClass:S,isDOMElement:O,isFunction:te,isNumber:_,isObject:x,isString:C,keys:V,merge:w,normalizeTickInterval:G,objectEach:Q,offset:X,pad:l,pick:A,pInt:j,pushUnique:b,relativeLength:f,removeEvent:K,splat:L,stableSort:U,syncTimeout:m,timeUnits:R,uniqueKey:ne,useSerialIds:pe,wrap:k}}),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(I){return I?new w(I):w.None}constructor(I){this.rgba=[NaN,NaN,NaN,NaN],this.input=I;const j=i.Color;if(j&&j!==w)return new j(I);this.init(I)}init(I){let j,C,p,x;if(typeof I=="object"&&typeof I.stops<"u")this.stops=I.stops.map(O=>new w(O[1]));else if(typeof I=="string"){if(this.input=I=w.names[I.toLowerCase()]||I,I.charAt(0)==="#"){const O=I.length,S=parseInt(I.substr(1),16);O===7?C=[(S&16711680)>>16,(S&65280)>>8,S&255,1]:O===4&&(C=[(S&3840)>>4|(S&3840)>>8,(S&240)>>4|S&240,(S&15)<<4|S&15,1])}if(!C)for(p=w.parsers.length;p--&&!C;)x=w.parsers[p],j=x.regex.exec(I),j&&(C=x.parse(j))}C&&(this.rgba=C)}get(I){const j=this.input,C=this.rgba;if(typeof j=="object"&&typeof this.stops<"u"){const p=c(j);return p.stops=[].slice.call(p.stops),this.stops.forEach((x,O)=>{p.stops[O]=[p.stops[O][0],x.get(I)]}),p}return C&&o(C[0])?I==="rgb"||!I&&C[3]===1?"rgb("+C[0]+","+C[1]+","+C[2]+")":I==="a"?`${C[3]}`:"rgba("+C.join(",")+")":j}brighten(I){const j=this.rgba;if(this.stops)this.stops.forEach(function(C){C.brighten(I)});else if(o(I)&&I!==0)for(let C=0;C<3;C++)j[C]+=u(I*255),j[C]<0&&(j[C]=0),j[C]>255&&(j[C]=255);return this}setOpacity(I){return this.rgba[3]=I,this}tweenTo(I,j){const C=this.rgba,p=I.rgba;if(!o(C[0])||!o(p[0]))return I.input||"none";const x=p[3]!==1||C[3]!==1;return(x?"rgba(":"rgb(")+Math.round(p[0]+(C[0]-p[0])*(1-j))+","+Math.round(p[1]+(C[1]-p[1])*(1-j))+","+Math.round(p[2]+(C[2]-p[2])*(1-j))+(x?","+(p[3]+(C[3]-p[3])*(1-j)):"")+")"}}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:I,objectEach:j,pad:C,pick:p,splat:x,timeUnits:O}=s,S=i.isSafari&&o.Intl&&o.Intl.DateTimeFormat.prototype.formatRange,_=i.isSafari&&o.Intl&&!o.Intl.DateTimeFormat.prototype.formatRange;class N{constructor(b){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=o.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(b)}get(b,F){if(this.variableTimezone||this.timezoneOffset){const P=F.getTime(),L=P-this.getTimezoneOffset(F);F.setTime(L);const m=F["getUTC"+b]();return F.setTime(P),m}return this.useUTC?F["getUTC"+b]():F["get"+b]()}set(b,F,P){if(this.variableTimezone||this.timezoneOffset){if(b==="Milliseconds"||b==="Seconds"||b==="Minutes"&&this.getTimezoneOffset(F)%36e5===0)return F["setUTC"+b](P);const L=this.getTimezoneOffset(F);let m=F.getTime()-L;F.setTime(m),F["setUTC"+b](P);const B=this.getTimezoneOffset(F);return m=F.getTime()+B,F.setTime(m)}return this.useUTC||S&&b==="FullYear"?F["setUTC"+b](P):F["set"+b](P)}update(b={}){const F=p(b.useUTC,!0);this.options=b=I(!0,this.options,b),this.Date=b.Date||o.Date||Date,this.useUTC=F,this.timezoneOffset=F&&b.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=F&&!!(b.getTimezoneOffset||b.timezone)}makeTime(b,F,P,L,m,B){let T,A,g;return this.useUTC?(T=this.Date.UTC.apply(0,arguments),A=this.getTimezoneOffset(T),T+=A,g=this.getTimezoneOffset(T),A!==g?T+=g-A:A-36e5===this.getTimezoneOffset(T-36e5)&&!_&&(T-=36e5)):T=new this.Date(b,F,p(P,1),p(L,0),p(m,0),p(B,0)).getTime(),T}timezoneOffsetFunction(){const b=this,F=this.options,P=F.getTimezoneOffset,L=F.moment||o.moment;if(!this.useUTC)return function(m){return new Date(m.toString()).getTimezoneOffset()*6e4};if(F.timezone)if(!L)u(25);else return function(m){return-L.tz(m,F.timezone).utcOffset()*6e4};return this.useUTC&&P?function(m){return P(m.valueOf())*6e4}:function(){return(b.timezoneOffset||0)*6e4}}dateFormat(b,F,P){if(!c(F)||isNaN(F))return i.defaultOptions.lang&&i.defaultOptions.lang.invalidDate||"";b=p(b,"%Y-%m-%d %H:%M:%S");const L=this,m=new this.Date(F),B=this.get("Hours",m),T=this.get("Day",m),A=this.get("Date",m),g=this.get("Month",m),h=this.get("FullYear",m),n=i.defaultOptions.lang,l=n&&n.weekdays,f=n&&n.shortWeekdays,k=w({a:f?f[T]:l[T].substr(0,3),A:l[T],d:C(A),e:C(A,2," "),w:T,b:n.shortMonths[g],B:n.months[g],m:C(g+1),o:g+1,y:h.toString().substr(2,2),Y:h,H:C(B),k:B,I:C(B%12||12),l:B%12||12,M:C(this.get("Minutes",m)),p:B<12?"AM":"PM",P:B<12?"am":"pm",S:C(m.getSeconds()),L:C(Math.floor(F%1e3),3)},i.dateFormats);return j(k,function(v,G){for(;b.indexOf("%"+G)!==-1;)b=b.replace("%"+G,typeof v=="function"?v.call(L,F):v)}),P?b.substr(0,1).toUpperCase()+b.substr(1):b}resolveDTLFormat(b){return y(b,!0)?b:(b=x(b),{main:b[0],from:b[1],to:b[2]})}getTimeTicks(b,F,P,L){const m=this,B=m.Date,T=[],A={},g=new B(F),h=b.unitRange,n=b.count||1;let l,f,k,v;if(L=p(L,1),c(F)){m.set("Milliseconds",g,h>=O.second?0:n*Math.floor(m.get("Milliseconds",g)/n)),h>=O.second&&m.set("Seconds",g,h>=O.minute?0:n*Math.floor(m.get("Seconds",g)/n)),h>=O.minute&&m.set("Minutes",g,h>=O.hour?0:n*Math.floor(m.get("Minutes",g)/n)),h>=O.hour&&m.set("Hours",g,h>=O.day?0:n*Math.floor(m.get("Hours",g)/n)),h>=O.day&&m.set("Date",g,h>=O.month?1:Math.max(1,n*Math.floor(m.get("Date",g)/n))),h>=O.month&&(m.set("Month",g,h>=O.year?0:n*Math.floor(m.get("Month",g)/n)),f=m.get("FullYear",g)),h>=O.year&&(f-=f%n,m.set("FullYear",g,f)),h===O.week&&(v=m.get("Day",g),m.set("Date",g,m.get("Date",g)-v+L+(v<L?-7:0))),f=m.get("FullYear",g);const G=m.get("Month",g),U=m.get("Date",g),D=m.get("Hours",g);F=g.getTime(),(m.variableTimezone||!m.useUTC)&&c(P)&&(k=P-F>4*O.month||m.getTimezoneOffset(F)!==m.getTimezoneOffset(P));let H=g.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):k&&(h===O.day||h===O.week)?H=m.makeTime(f,G,U+l*n*(h===O.day?1:7)):k&&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"&&(A[z]="day")})}return T.info=w(b,{higherRanks:A,totalRange:h*n}),T}getDateFormat(b,F,P,L){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 A="millisecond",g=A;for(A in O){if(b===O.week&&+this.dateFormat("%w",F)===P&&m.substr(6)===B.substr(6)){A="week";break}if(O[A]>b){A=g;break}if(T[A]&&m.substr(T[A])!==B.substr(T[A]))break;A!=="week"&&(g=A)}return this.resolveDTLFormat(L[A]).main}}return N}),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:I}=o,{merge:j}=w,C={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:I,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"}};C.chart.styledMode=!1;const p=new u(C.time);function x(){return C}function O(_){return j(!0,C,_),(_.time||_.global)&&(o.time?o.time.update(j(C.global,C.time,_.global,_.time)):o.time=p),C}return{defaultOptions:C,defaultTime:p,getOptions:x,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 I{constructor(C,p,x){this.pos=NaN,this.options=p,this.elem=C,this.prop=x}dSetter(){const C=this.paths,p=C&&C[0],x=C&&C[1],O=this.now||0;let S=[];if(O===1||!p||!x)S=this.toD||[];else if(p.length===x.length&&O<1)for(let _=0;_<x.length;_++){const N=p[_],M=x[_],b=[];for(let F=0;F<M.length;F++){const P=N[F],L=M[F];w(P)&&w(L)&&!(M[0]==="A"&&(F===4||F===5))?b[F]=P+O*(L-P):b[F]=L}S.push(b)}else S=x;this.elem.attr("d",S,void 0,!0)}update(){const C=this.elem,p=this.prop,x=this.now,O=this.options.step;this[p+"Setter"]?this[p+"Setter"]():C.attr?C.element&&C.attr(p,x,null,!0):C.style[p]=x+this.unit,O&&O.call(C,x,this)}run(C,p,x){const O=this,S=O.options,_=function(b){return _.stopped?!1:O.step(b)},N=u.requestAnimationFrame||function(b){setTimeout(b,13)},M=function(){for(let b=0;b<I.timers.length;b++)I.timers[b]()||I.timers.splice(b--,1);I.timers.length&&N(M)};C===p&&!this.elem["forceAnimate:"+this.prop]?(delete S.curAnim[this.prop],S.complete&&Object.keys(S.curAnim).length===0&&S.complete.call(this.elem)):(this.startTime=+new Date,this.start=C,this.end=p,this.unit=x,this.now=this.start,this.pos=0,_.elem=this.elem,_.prop=this.prop,_()&&I.timers.push(_)===1&&N(M))}step(C){const p=+new Date,x=this.options,O=this.elem,S=x.complete,_=x.duration,N=x.curAnim;let M,b;return O.attr&&!O.element?M=!1:C||p>=_+this.startTime?(this.now=this.end,this.pos=1,this.update(),N[this.prop]=!0,b=!0,y(N,function(F){F!==!0&&(b=!1)}),b&&S&&S.call(O),M=!1):(this.pos=x.easing((p-this.startTime)/_),this.now=this.start+(this.end-this.start)*this.pos,this.update(),M=!0),M}initPath(C,p,x){const O=C.startX,S=C.endX,_=x.slice(),N=C.isArea,M=N?2:1;let b,F,P,L,m=p&&p.slice();if(!m)return[_,_];function B(A,g){for(;A.length<F;){const h=A[0],n=g[F-A.length];if(n&&h[0]==="M"&&(n[0]==="C"?A[0]=["C",h[1],h[2],h[1],h[2],h[1],h[2]]:A[0]=["L",h[1],h[2]]),A.unshift(h),N){const l=A.pop();A.push(A[A.length-1],l)}}}function T(A,g){for(;A.length<F;){const h=A[Math.floor(A.length/M)-1].slice();if(h[0]==="C"&&(h[1]=h[5],h[2]=h[6]),!N)A.push(h);else{const n=A[Math.floor(A.length/M)].slice();A.splice(A.length/2,0,h,n)}}}if(O&&S&&S.length){for(P=0;P<O.length;P++)if(O[P]===S[0]){b=P;break}else if(O[0]===S[S.length-O.length+P]){b=P,L=!0;break}else if(O[O.length-1]===S[S.length-O.length+P]){b=O.length-P;break}typeof b>"u"&&(m=[])}return m.length&&w(b)&&(F=_.length+b*M,L?(B(m,_),T(_)):(B(_,m),T(m))),[m,_]}fillSetter(){I.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,c(this.start).tweenTo(c(this.end),this.pos),void 0,!0)}}return I.timers=[],I}),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:I,objectEach:j,pick:C}=s;function p(M,b){b.renderer.globalAnimation=C(M,b.options.chart.animation,!0)}function x(M){return y(M)?I({duration:500,defer:0},M):{duration:M?500:0,defer:0}}function O(M,b,F){const P=x(b),L=F?[F]:M.series;let m=0,B=0;return L.forEach(A=>{const g=x(A.options.animation);m=b&&o(b.defer)?P.defer:Math.max(m,g.duration+g.defer),B=Math.min(P.duration,g.duration)}),M.renderer.forExport&&(m=0),{defer:Math.max(0,m-B),duration:Math.min(m,B)}}function S(M,b,F){let P,L="",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=I(b),j(b,function(A,g){_(M,g),B=new i(M,F,g),m=void 0,g==="d"&&u(b.d)?(B.paths=B.initPath(M,M.pathArray,b.d),B.toD=b.d,P=0,m=1):M.attr?P=M.attr(g):(P=parseFloat(c(M,g))||0,g!=="opacity"&&(L="px")),m||(m=A),typeof m=="string"&&m.match("px")&&(m=m.replace(/px/g,"")),B.run(P,m,L)})}function _(M,b){let F=i.timers.length;for(;F--;)i.timers[F].elem===M&&(!b||b===i.timers[F].prop)&&(i.timers[F].stopped=!0)}return{animate:S,animObject:x,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:I,isFunction:j,isString:C,objectEach:p,splat:x}=s,{trustedTypes:O}=c,S=O&&j(O.createPolicy)&&O.createPolicy("highcharts",{createHTML:b=>b}),_=S?S.createHTML(""):"",N=function(){try{return!!new DOMParser().parseFromString(_,"text/html")}catch{return!1}}();class M{static filterUserAttributes(F){return p(F,(P,L)=>{let m=!0;M.allowedAttributes.indexOf(L)===-1&&(m=!1),["background","dynsrc","href","lowsrc","src"].indexOf(L)!==-1&&(m=C(P)&&M.allowedReferences.some(B=>P.indexOf(B)===0)),m||(I(33,!1,void 0,{"Invalid attribute in config":`${L}`}),delete F[L]),C(P)&&F[L]&&(F[L]=P.replace(/</g,"<"))}),F}static parseStyle(F){return F.split(";").reduce((P,L)=>{const m=L.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=M.emptyHTML,P&&new M(P).addToDOM(F)}constructor(F){this.nodes=typeof F=="string"?this.parseMarkup(F):F}addToDOM(F){function P(L,m){let B;return x(L).forEach(function(T){const A=T.tagName,g=T.textContent?i.doc.createTextNode(T.textContent):void 0,h=M.bypassHTMLFiltering;let n;if(A)if(A==="#text")n=g;else if(M.allowedTags.indexOf(A)!==-1||h){const l=A==="svg"?o:m.namespaceURI||o,f=i.doc.createElementNS(l,A),k=T.attributes||{};p(T,function(v,G){G!=="tagName"&&G!=="attributes"&&G!=="children"&&G!=="style"&&G!=="textContent"&&(k[G]=v)}),u(f,h?k:M.filterUserAttributes(k)),T.style&&y(f,T.style),g&&f.appendChild(g),P(T.children||[],f),n=f}else I(33,!1,void 0,{"Invalid tagName in config":A});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 L;if(N)L=new DOMParser().parseFromString(S?S.createHTML(F):F,"text/html");else{const B=w("div");B.innerHTML=F,L={body:B}}const m=(B,T)=>{const A=B.nodeName.toLowerCase(),g={tagName:A};A==="#text"&&(g.textContent=B.textContent||"");const h=B.attributes;if(h){const n={};[].forEach.call(h,l=>{l.name==="data-style"?g.style=M.parseStyle(l.value):n[l.name]=l.value}),g.attributes=n}if(B.childNodes.length){const n=[];[].forEach.call(B.childNodes,l=>{m(l,n)}),n.length&&(g.children=n)}T.push(g)};return[].forEach.call(L.body.childNodes,B=>m(B,P)),P}}return M.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"],M.allowedReferences=["https://","http://","mailto:","/","../","./","#"],M.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"],M.emptyHTML=_,M.bypassHTMLFiltering=!1,M}),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:I,isObject:j,isString:C,pick:p,pInt:x}=s,O={add:(b,F)=>b+F,divide:(b,F)=>F!==0?b/F:"",eq:(b,F)=>b==F,each:function(b){const F=arguments[arguments.length-1];return y(b)?b.map((P,L)=>_(F.body,u(j(P)?P:{"@this":P},{"@index":L,"@first":L===0,"@last":L===b.length-1}))).join(""):!1},ge:(b,F)=>b>=F,gt:(b,F)=>b>F,if:b=>!!b,le:(b,F)=>b<=F,lt:(b,F)=>b<F,multiply:(b,F)=>b*F,ne:(b,F)=>b!=F,subtract:(b,F)=>b-F,unless:b=>!b};function S(b,F,P){return c.dateFormat(b,F,P)}function _(b="",F,P){const L=/\{([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= #\(\)]+)\}/g,m=/\(([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= ]+)\)/g,B=[],T=/f$/,A=/\.([0-9])/,g=o.lang,h=P&&P.time||c,n=P&&P.numberFormatter||N,l=(U="")=>{let D;return U==="true"?!0:U==="false"?!1:(D=Number(U)).toString()===U?D:w(U,F)};let f,k,v=0,G;for(;(f=L.exec(b))!==null;){const U=m.exec(f[1]);U&&(f=U,G=!0),(!k||!k.isBlock)&&(k={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]&&(k.isBlock&&D===k.fn&&v++,k.fn||(k.fn=D));const H=f[1]==="else";if(k.isBlock&&k.fn&&(f[1]===`/${k.fn}`||H))if(v)H||v--;else{const z=k.startInner,W=b.substr(z,f.index-z);k.body===void 0?(k.body=W,k.startInner=f.index+f[0].length):k.elseBody=W,k.find+=W+f[0],H||(B.push(k),k=void 0)}else k.isBlock||B.push(k);if(U&&!(k!=null&&k.isBlock))break}return B.forEach(U=>{const{body:D,elseBody:H,expression:z,fn:W}=U;let d,R;if(W){const Z=[U],J=z.split(" ");for(R=O[W].length;R--;)Z.unshift(l(J[R+1]));d=O[W].apply(F,Z),U.isBlock&&typeof d=="boolean"&&(d=_(d?D:H,F))}else{const Z=z.split(":");if(d=l(Z.shift()||""),Z.length&&typeof d=="number"){const J=Z.join(":");if(T.test(J)){const Y=parseInt((J.match(A)||["","-1"])[1],10);d!==null&&(d=n(d,Y,g.decimalPoint,J.indexOf(",")>-1?g.thousandsSep:""))}else d=h.dateFormat(J,d)}}b=b.replace(U.find,p(d,""))}),G?_(b,F,P):b}function N(b,F,P,L){b=+b||0,F=+F;let m,B;const T=o.lang,A=(b.toString().split(".")[1]||"").split("e")[0].length,g=b.toString().split("e"),h=F;F===-1?F=Math.min(A,20):I(F)?F&&g[1]&&g[1]<0&&(B=F+ +g[1],B>=0?(g[0]=(+g[0]).toExponential(B).split("e")[0],F=B):(g[0]=g[0].split(".")[0]||0,F<20?b=(g[0]*Math.pow(10,g[1])).toFixed(F):b=0,g[1]=0)):F=2;const n=(Math.abs(g[1]?g[0]:b)+Math.pow(10,-Math.max(F,A)-1)).toFixed(F),l=String(x(n)),f=l.length>3?l.length%3:0;return P=p(P,T.decimalPoint),L=p(L,T.thousandsSep),m=b<0?"-":"",m+=f?l.substr(0,f)+L:"",+g[1]<0&&!h?m="0":m+=l.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+L),F&&(m+=P+n.slice(-F)),g[1]&&+m!=0&&(m+="e"+g[1]),m}return{dateFormat:S,format:_,helpers:O,numberFormat:N}}),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(I,j,C){const p=I,x=p.reducedLen||j,O=(L,m)=>(m.rank||0)-(L.rank||0),S=(L,m)=>L.target-m.target;let _,N=!0,M=[],b,F,P=0;for(_=I.length;_--;)P+=I[_].size;if(P>x){for(c(I,O),_=0,P=0;P<=x;)P+=I[_].size,_++;M=I.splice(_-1,I.length)}for(c(I,S),I=I.map(L=>({size:L.size,targets:[L.target],align:o(L.align,.5)}));N;){for(_=I.length;_--;)b=I[_],F=(Math.min.apply(0,b.targets)+Math.max.apply(0,b.targets))/2,b.pos=s(F-b.size*b.align,0,j-b.size);for(_=I.length,N=!1;_--;)_>0&&I[_-1].pos+I[_-1].size>I[_].pos&&(I[_-1].size+=I[_].size,I[_-1].targets=I[_-1].targets.concat(I[_].targets),I[_-1].align=.5,I[_-1].pos+I[_-1].size>j&&(I[_-1].pos=j-I[_-1].size),I.splice(_,1),N=!0)}return p.push.apply(p,M),_=0,I.some(L=>{let m=0;return(L.targets||[]).some(()=>(p[_].pos=L.pos+m,typeof C<"u"&&Math.abs(p[_].pos-p[_].target)>C?(p.slice(0,_+1).forEach(B=>delete B.pos),p.reducedLen=(p.reducedLen||j)-j*.1,p.reducedLen>j*.1&&y(p,j,C),!0):(m+=p[_].size,_++,!1)))}),c(p,S),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:I,doc:j,noop:C,svg:p,SVG_NS:x,win:O}=o,{addEvent:S,attr:_,createElement:N,css:M,defined:b,erase:F,extend:P,fireEvent:L,isArray:m,isFunction:B,isObject:T,isString:A,merge:g,objectEach:h,pick:n,pInt:l,syncTimeout:f,uniqueKey:k}=c;class v{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=x}_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,Z,J,Y,ee;U?(this.alignOptions=U,this.alignByTranslate=D,(!H||A(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),Z=(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&&(Z+=(H.height-(U.height||0))/ee),z[D?"translateY":"y"]=Math.round(Z),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 j.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=j.createElementNS(x,"tspan");_(R,{class:"highcharts-text-outline",fill:W,stroke:W,"stroke-width":d,"stroke-linejoin":"round"});const Z=D.querySelector("textPath")||D;[].forEach.call(Z.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(Z.querySelectorAll("text tspan"),ee=>{J+=Number(ee.getAttribute("dy"))});const Y=j.createElementNS(x,"tspan");Y.textContent="",_(Y,{x:Number(D.getAttribute("x")),dy:-J}),R.appendChild(Y),Z.insertBefore(R,Z.firstChild)}}attr(U,D,H,z){const W=this.element,d=v.symbolCustomAttribs;let R,Z,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&&(Z||(this.symbolAttr(U),Z=!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),b(U.strokeWidth)&&(U.strokeWidth=D),U}complexColor(U,D,H){const z=this.renderer;let W,d,R,Z,J,Y,ee,E,V,X,Q=[],ie;L(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&&!b(R.gradientUnits)&&(Z=R,R=g(R,z.getRadialAttr(V,Z),{gradientUnits:"userSpaceOnUse"})),h(R,function(K,oe){oe!=="id"&&Q.push(oe,K)}),h(Y,function(K){Q.push(K)}),Q=Q.join(","),J[Q])X=J[Q].attr("id");else{R.id=X=k();const K=J[Q]=z.createElement(d).attr(R).add(z.defs);K.radAttr=Z,K.stops=[],Y.forEach(function(oe){oe[1].indexOf("rgba")===0?(W=s.parse(oe[1]),ee=W.get("rgb"),E=W.get("a")):(ee=oe[1],E=1);const ce=z.createElement("stop").attr({offset:oe[0],"stop-color":ee,"stop-opacity":E}).add(K);K.stops.push(ce)})}ie="url("+z.url+"#"+X+")",H.setAttribute(D,ie),H.gradient=Q,U.toString=function(){return ie}}})}css(U){const D=this.styles,H={},z=this.element;let W,d=!D;if(D&&h(U,function(R,Z){D&&D[Z]!==R&&(H[Z]=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=g(U);z.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(Z=>R&&delete R[Z]),R.color&&(R.fill=R.color)),M(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 Z=U.clipPath;[].forEach.call(z.querySelectorAll("[clip-path],[CLIP-PATH]"),function(J){J.getAttribute("clip-path").indexOf(Z.element.id)>-1&&J.removeAttribute("clip-path")}),U.clipPath=Z.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(Z,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:Z}=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,ie,K,oe;if(b(Z)&&(oe=Z.toString(),oe.indexOf("<")===-1&&(oe=oe.replace(/[0-9]/g,"0")),oe+=["",d.rootFontSize,V,E,H.textWidth,z,R&&R.textOverflow,R&&R.fontWeight].join(",")),oe&&!U&&(X=J[oe]),!X){if(ee||d.forExport){try{K=this.fakeTS&&function(ce){const ne=W.querySelector(".highcharts-text-outline");ne&&M(ne,{display:ce})},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,ie=X.height,ee&&(X.height=ie={"11px,17":14,"13px,20":16}[`${V||""},${Math.round(ie)}`]||ie),E){const ce=Number(W.getAttribute("y")||0)-X.y,ne={right:1,center:.5}[z||0]||0,pe=E*I,te=(E-90)*I,re=Q*Math.cos(pe),q=Q*Math.sin(pe),ae=Math.cos(te),se=Math.sin(te),he=X.x+ne*(Q-re),fe=X.y+ce-ne*q,ye=he+ce*ae,me=ye+re,_e=me-ie*ae,be=_e-re,Ce=fe+ce*se,De=Ce+q,Be=De-ie*se,Fe=Be-q;X.x=Math.min(ye,me,_e,be),X.y=Math.min(Ce,De,Be,Fe),X.width=Math.max(ye,me,_e,be)-X.x,X.height=Math.max(Ce,De,Be,Fe)-X.y}}if(oe&&(Z===""||X.height>0)){for(;Y.length>250;)delete J[Y.shift()];J[oe]||Y.push(oe),J[oe]=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"?N(D):j.createElementNS(this.SVG_NS,D),this.renderer=U,L(this,"afterInit")}on(U,D){const{onEvents:H}=this;return H[U]&&H[U](),H[U]=S(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(A(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=g(!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 Z=S(z,"afterModifyTree",J=>{if(U&&R){let Y=U.attr("id");Y||U.attr("id",Y=k());const ee={x:0,y:0};b(d.dx)&&(ee.dx=d.dx,delete d.dx),b(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:Z}}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=g(((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=j.createElementNS(x,"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]||j.createElementNS(this.SVG_NS,"title");D.insertBefore?D.insertBefore(H,D.firstChild):D.appendChild(H),H.textContent=String(n(U,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/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,Z=["translate("+d+","+R+")"];b(D)&&Z.push("matrix("+D.join(",")+")"),H&&Z.push("rotate("+H+" "+n(this.rotationOriginX,U.getAttribute("x"),0)+" "+n(this.rotationOriginY,U.getAttribute("y")||0)+")"),(b(z)||b(W))&&Z.push("scale("+n(z,1)+" "+n(W,1)+")"),Z.length&&!(this.text||this).textPath&&U.setAttribute("transform",Z.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,Z=d===H.box;let J,Y,ee,E=!1,V,X=this.added,Q;if(b(U)?(R.setAttribute("data-z-index",U),U=+U,this[D]===U&&(X=!1)):b(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=!b(ee),Y!==R&&(U<0&&V&&!Z&&!Q?(d.insertBefore(R,J[Q]),E=!0):(l(ee)<=U||V&&(!b(U)||U>=0))&&(d.insertBefore(R,J[Q+1]),E=!0));E||(d.insertBefore(R,J[Z?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,I,j){o.rendererTypes[y]=I,(!c||j)&&(c=y,i.Renderer=I)}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:I}=s;class j extends i{constructor(p,x,O,S,_,N,M,b,F,P){super(),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.init(p,"g"),this.textStr=x,this.x=O,this.y=S,this.anchorX=N,this.anchorY=M,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,b).attr({zIndex:1});let L;typeof _=="string"&&(L=/^url\((.*?)\)$/.test(_),(L||this.renderer.symbols[_])&&(this.symbolKey=_)),this.bBox=j.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=p.styledMode||L,this.deferredAttr={},this.alignFactor=0}alignSetter(p){const x={left:0,center:.5,right:1}[p];x!==this.alignFactor&&(this.alignFactor=x,this.bBox&&u(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(p,x){this.anchorX=p,this.boxAttr(x,Math.round(p)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(p,x){this.anchorY=p,this.boxAttr(x,p-this.ySetting)}boxAttr(p,x){this.box?this.box.attr(p,x):this.deferredAttr[p]=x}css(p){if(p){const x={};p=w(p),j.textProps.forEach(O=>{typeof p[O]<"u"&&(x[O]=p[O],delete p[O])}),this.text.css(x),"fontSize"in x||"fontWeight"in x?this.updateTextPadding():("width"in x||"textOverflow"in x)&&this.updateBoxSize()}return i.prototype.css.call(this,p)}destroy(){I(this.element,"mouseenter"),I(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),i.prototype.destroy.call(this)}fillSetter(p,x){p&&(this.needsBox=!0),this.fill=p,this.boxAttr(x,p)}getBBox(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();const p=this.padding,x=y(this.paddingLeft,p);return{width:this.width,height:this.height,x:this.bBox.x-x,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,x){u(p)?p!==this[x]&&(this[x]=p,this.updateTextPadding()):this[x]=void 0}rSetter(p,x){this.boxAttr(x,p)}strokeSetter(p,x){this.stroke=p,this.boxAttr(x,p)}"stroke-widthSetter"(p,x){p&&(this.needsBox=!0),this["stroke-width"]=p,this.boxAttr(x,p)}"text-alignSetter"(p){this.textAlign=p}textSetter(p){typeof p<"u"&&this.text.attr({text:p}),this.updateTextPadding()}updateBoxSize(){const p=this.text,x={},O=this.padding,S=this.bBox=(!u(this.widthSetting)||!u(this.heightSetting)||this.textAlign)&&o(p.textStr)?p.getBBox():j.emptyBBox;let _;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||S.height||0)+2*O;const N=this.renderer.fontMetrics(p);if(this.baselineOffset=O+Math.min((this.text.firstLineMetrics||N).b,S.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-N.h)/2),this.needsBox&&!p.textPath){if(!this.box){const M=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();M.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),M.add(this)}_=this.getCrispAdjust(),x.x=_,x.y=(this.baseline?-this.baselineOffset:0)+_,x.width=Math.round(this.width),x.height=Math.round(this.height),this.box.attr(c(x,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){const p=this.text;if(!p.textPath){this.updateBoxSize();const x=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||x!==p.y)&&(p.attr("x",O),p.hasBoxWidthChanged&&(this.bBox=p.getBBox(!0)),typeof x<"u"&&p.attr("y",x)),p.x=O,p.y=x}}widthSetter(p){this.widthSetting=u(p)?p:void 0}getPaddedWidth(){const p=this.padding,x=y(this.paddingLeft,p),O=y(this.paddingRight,p);return(this.widthSetting||this.bBox.width||0)+x+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 j.emptyBBox={width:0,height:0,x:0,y:0},j.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],j}),a(t,"Core/Renderer/SVG/Symbols.js",[t["Core/Utilities.js"]],function(i){const{defined:s,isNumber:o,pick:c}=i;function u(S,_,N,M,b){const F=[];if(b){const P=b.start||0,L=c(b.r,N),m=c(b.r,M||N),B=.001,T=Math.abs((b.end||0)-P-2*Math.PI)<B,A=(b.end||0)-B,g=b.innerR,h=c(b.open,T),n=Math.cos(P),l=Math.sin(P),f=Math.cos(A),k=Math.sin(A),v=c(b.longArc,A-P-Math.PI<B?0:1);let G=["A",L,m,0,v,c(b.clockwise,1),S+L*f,_+m*k];G.params={start:P,end:A,cx:S,cy:_},F.push(["M",S+L*n,_+m*l],G),s(g)&&(G=["A",g,g,0,v,s(b.clockwise)?1-b.clockwise:0,S+g*n,_+g*l],G.params={start:A,end:P,cx:S,cy:_},F.push(h?["M",S+g*f,_+g*k]:["L",S+g*f,_+g*k],G)),h||F.push(["Z"])}return F}function w(S,_,N,M,b){const L=Math.min(b&&b.r||0,N,M),m=L+6,B=b&&b.anchorX,T=b&&b.anchorY||0,A=C(S,_,N,M,{r:L});return o(B)&&(S+B>=N?T>_+m&&T<_+M-m?A.splice(3,1,["L",S+N,T-6],["L",S+N+6,T],["L",S+N,T+6],["L",S+N,_+M-L]):A.splice(3,1,["L",S+N,M/2],["L",B,T],["L",S+N,M/2],["L",S+N,_+M-L]):S+B<=0?T>_+m&&T<_+M-m?A.splice(7,1,["L",S,T+6],["L",S-6,T],["L",S,T-6],["L",S,_+L]):A.splice(7,1,["L",S,M/2],["L",B,T],["L",S,M/2],["L",S,_+L]):T&&T>M&&B>S+m&&B<S+N-m?A.splice(5,1,["L",B+6,_+M],["L",B,_+M+6],["L",B-6,_+M],["L",S+L,_+M]):T&&T<0&&B>S+m&&B<S+N-m&&A.splice(1,1,["L",B-6,_],["L",B,_-6],["L",B+6,_],["L",N-L,_])),A}function y(S,_,N,M){return u(S+N/2,_+M/2,N/2,M/2,{start:Math.PI*.5,end:Math.PI*2.5,open:!1})}function I(S,_,N,M){return[["M",S+N/2,_],["L",S+N,_+M/2],["L",S+N/2,_+M],["L",S,_+M/2],["Z"]]}function j(S,_,N,M,b){return b&&b.r?C(S,_,N,M,b):[["M",S,_],["L",S+N,_],["L",S+N,_+M],["L",S,_+M],["Z"]]}function C(S,_,N,M,b){const F=(b==null?void 0:b.r)||0;return[["M",S+F,_],["L",S+N-F,_],["A",F,F,0,0,1,S+N,_+F],["L",S+N,_+M-F],["A",F,F,0,0,1,S+N-F,_+M],["L",S+F,_+M],["A",F,F,0,0,1,S,_+M-F],["L",S,_+F],["A",F,F,0,0,1,S+F,_],["Z"]]}function p(S,_,N,M){return[["M",S+N/2,_],["L",S+N,_+M],["L",S,_+M],["Z"]]}function x(S,_,N,M){return[["M",S,_],["L",S+N,_],["L",S+N/2,_+M],["Z"]]}return{arc:u,callout:w,circle:y,diamond:I,rect:j,roundedRect:C,square:j,triangle:p,"triangle-down":x}}),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:I,fireEvent:j,isString:C,objectEach:p,pick:x}=o;class O{constructor(_){const N=_.styles;this.renderer=_.renderer,this.svgElement=_,this.width=_.textWidth,this.textLineHeight=N&&N.lineHeight,this.textOutline=N&&N.textOutline,this.ellipsis=!!(N&&N.textOverflow==="ellipsis"),this.noWrap=!!(N&&N.whiteSpace==="nowrap")}buildSVG(){const _=this.svgElement,N=_.element,M=_.renderer,b=x(_.textStr,"").toString(),F=b.indexOf("<")!==-1,P=N.childNodes,L=!_.added&&M.box,m=/<br.*?>/g,B=[b,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--;)N.removeChild(P[T]);if(!F&&!this.ellipsis&&!this.width&&!_.textPath&&(b.indexOf(" ")===-1||this.noWrap&&!m.test(b)))N.appendChild(c.createTextNode(this.unescapeEntities(b)));else if(b!==""){L&&L.appendChild(N);const T=new i(b);this.modifyTree(T.nodes),T.addToDOM(N),this.modifyDOM(),this.ellipsis&&(N.textContent||"").indexOf("…")!==-1&&_.attr("title",this.unescapeEntities(_.textStr||"",["<",">"])),L&&L.removeChild(N)}C(this.textOutline)&&_.applyTextOutline&&_.applyTextOutline(this.textOutline)}}modifyDOM(){const _=this.svgElement,N=y(_.element,"x");_.firstLineMetrics=void 0;let M;for(;(M=_.element.firstChild)&&/^[\s\u200B]*$/.test(M.textContent||" ");)_.element.removeChild(M);[].forEach.call(_.element.querySelectorAll("tspan.highcharts-br"),(L,m)=>{L.nextSibling&&L.previousSibling&&(m===0&&L.previousSibling.nodeType===1&&(_.firstLineMetrics=_.renderer.fontMetrics(L.previousSibling)),y(L,{dy:this.getLineHeight(L.nextSibling),x:N}))});const b=this.width||0;if(!b)return;const F=(L,m)=>{const B=L.textContent||"",T=B.replace(/([^\^])-/g,"$1- ").split(" "),A=!this.noWrap&&(T.length>1||_.element.childNodes.length>1),g=this.getLineHeight(m);let h=0,n=_.actualWidth;if(this.ellipsis)B&&this.truncate(L,B,void 0,0,Math.max(0,b-.8*g),(l,f)=>l.substring(0,f)+"…");else if(A){const l=[],f=[];for(;m.firstChild&&m.firstChild!==L;)f.push(m.firstChild),m.removeChild(m.firstChild);for(;T.length;)T.length&&!this.noWrap&&h>0&&(l.push(L.textContent||""),L.textContent=T.join(" ").replace(/- /g,"-")),this.truncate(L,void 0,T,h===0&&n||0,b,(k,v)=>T.slice(0,v).join(" ").replace(/- /g,"-")),n=_.actualWidth,h++;f.forEach(k=>{m.insertBefore(k,L)}),l.forEach(k=>{m.insertBefore(c.createTextNode(k),L);const v=c.createElementNS(u,"tspan");v.textContent="",y(v,{dy:g,x:N}),m.insertBefore(v,L)})}},P=L=>{[].slice.call(L.childNodes).forEach(B=>{B.nodeType===w.Node.TEXT_NODE?F(B,L):(B.className.baseVal.indexOf("highcharts-br")!==-1&&(_.actualWidth=0),P(B))})};P(_.element)}getLineHeight(_){const N=_.nodeType===w.Node.TEXT_NODE?_.parentElement:_;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(N||this.svgElement.element).h}modifyTree(_){const N=(M,b)=>{const{attributes:F={},children:P,style:L={},tagName:m}=M,B=this.renderer.styledMode;if(m==="b"||m==="strong"?B?F.class="highcharts-strong":L.fontWeight="bold":(m==="i"||m==="em")&&(B?F.class="highcharts-emphasized":L.fontStyle="italic"),L&&L.color&&(L.fill=L.color),m==="br"){F.class="highcharts-br",M.textContent="";const T=_[b+1];T&&T.textContent&&(T.textContent=T.textContent.replace(/^ +/gm,""))}else m==="a"&&P&&P.some(T=>T.tagName==="#text")&&(M.children=[{children:P,tagName:"tspan"}]);m!=="#text"&&m!=="a"&&(M.tagName="tspan"),I(M,{attributes:F,style:L}),P&&P.filter(T=>T.tagName!=="#text").forEach(N)};_.forEach(N),j(this.svgElement,"afterModifyTree",{nodes:_})}truncate(_,N,M,b,F,P){const L=this.svgElement,{renderer:m,rotation:B}=L,T=[];let A=M?1:0,g=(N||M||"").length,h=g,n,l;const f=function(k,v){const G=v||k,U=_.parentNode;if(U&&typeof T[G]>"u"&&U.getSubStringLength)try{T[G]=b+U.getSubStringLength(0,M?G+1:G)}catch{}return T[G]};if(L.rotation=0,l=f(_.textContent.length),b+l>F){for(;A<=g;)h=Math.ceil((A+g)/2),M&&(n=P(M,h)),l=f(h,n&&n.length-1),A===g?A=g+1:l>F?g=h-1:A=h;g===0?_.textContent="":N&&g===N.length-1||(_.textContent=n||P(N||M,h))}M&&M.splice(0,h),L.actualWidth=l,L.rotation=B}unescapeEntities(_,N){return p(this.renderer.escapes,function(M,b){(!N||N.indexOf(M)===-1)&&(_=_.toString().replace(new RegExp(M,"g"),b))}),_}}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,I,j){const{charts:C,deg2rad:p,doc:x,isFirefox:O,isMS:S,isWebKit:_,noop:N,SVG_NS:M,symbolSizes:b,win:F}=o,{addEvent:P,attr:L,createElement:m,css:B,defined:T,destroyObjectProperties:A,extend:g,isArray:h,isNumber:n,isObject:l,isString:f,merge:k,pick:v,pInt:G,uniqueKey:U}=j;let D;class H{constructor(W,d,R,Z,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,Z,J,Y,ee)}init(W,d,R,Z,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(Z)),W.appendChild(X),L(W,"dir","ltr"),W.innerHTML.indexOf("xmlns")===-1&&L(X,"xmlns",this.SVG_NS),this.box=X,this.boxWrapper=V,E.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(x.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 ie,K;O&&W.getBoundingClientRect&&(ie=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"})},ie(),E.unSubPixelFix=P(F,"resize",ie))}definition(W){return new i([W]).addToDOM(this.defs.element)}getReferenceURL(){if((O||_)&&x.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(x.body);B(R,{position:"fixed",top:0,left:0,zIndex:9e5});const Z=x.elementFromPoint(6,6);D=(Z&&Z.id)==="hitme",x.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=g({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(),A(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(Z=>W[Z])].join("-").replace(/[^a-z0-9\-]/g,""),R=k({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 I(W).buildSVG()}getContrast(W){const d=s.parse(W).rgba.map(Z=>{const J=Z/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,Z,J={},Y,ee,E,V,X){const Q=this.label(W,d,R,V,void 0,void 0,X,void 0,"button"),ie=this.styledMode,K=J.states||{};let oe=0;J=k(J),delete J.states;const ce=k({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},J.style);delete J.style;let ne=i.filterUserAttributes(J);Q.attr(k({padding:8,r:2},ne));let pe,te,re;return ie||(ne=k({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},ne),Y=k(ne,{fill:"#e6e6e6"},i.filterUserAttributes(Y||K.hover||{})),pe=Y.style,delete Y.style,ee=k(ne,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},i.filterUserAttributes(ee||K.select||{})),te=ee.style,delete ee.style,E=k(ne,{style:{color:"#cccccc"}},i.filterUserAttributes(E||K.disabled||{})),re=E.style,delete E.style),P(Q.element,S?"mouseover":"mouseenter",function(){oe!==3&&Q.setState(1)}),P(Q.element,S?"mouseout":"mouseleave",function(){oe!==3&&Q.setState(oe)}),Q.setState=function(q){if(q!==1&&(Q.state=oe=q),Q.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][q||0]),!ie){Q.attr([ne,Y,ee,E][q||0]);const ae=[ce,pe,te,re][q||0];l(ae)&&Q.css(ae)}},ie||(Q.attr(ne).css(g({cursor:"default"},ce)),X&&Q.text.css({pointerEvents:"none"})),Q.on("touchstart",q=>q.stopPropagation()).on("click",function(q){oe!==3&&Z.call(Q,q)})}crispLine(W,d,R="round"){const Z=W[0],J=W[1];return T(Z[1])&&Z[1]===J[1]&&(Z[1]=J[1]=Math[R](Z[1])-d%2/2),T(Z[2])&&Z[2]===J[2]&&(Z[2]=J[2]=Math[R](Z[2])+d%2/2),W}path(W){const d=this.styledMode?{}:{fill:"none"};return h(W)?d.d=W:l(W)&&g(d,W),this.createElement("path").attr(d)}circle(W,d,R){const Z=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(Z)}arc(W,d,R,Z,J,Y){let ee;l(W)?(ee=W,d=ee.y,R=ee.r,Z=ee.innerR,J=ee.start,Y=ee.end,W=ee.x):ee={innerR:Z,start:J,end:Y};const E=this.symbol("arc",W,d,R,R,ee);return E.r=R,E}rect(W,d,R,Z,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(Z||0,0)},E=this.createElement("rect");return this.styledMode||(typeof Y<"u"&&(ee["stroke-width"]=Y,g(ee,E.crisp(ee))),ee.fill="none"),E.rSetter=function(V,X,Q){E.r=V,L(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 Z=this;Z.width=W,Z.height=d,Z.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}),Z.alignElements()}g(W){const d=this.createElement("g");return W?d.attr({class:"highcharts-"+W}):d}image(W,d,R,Z,J,Y){const ee={preserveAspectRatio:"none"};n(d)&&(ee.x=d),n(R)&&(ee.y=R),n(Z)&&(ee.width=Z),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,Z,J,Y){const ee=this,E=/^url\((.*?)\)$/,V=E.test(W),X=!V&&(this.symbols[W]?W:"circle"),Q=X&&this.symbols[X];let ie,K,oe,ce;if(Q)typeof d=="number"&&(K=Q.call(this.symbols,Math.round(d||0),Math.round(R||0),Z||0,J||0,Y)),ie=this.path(K),ee.styledMode||ie.attr("fill","none"),g(ie,{symbolName:X||void 0,x:d,y:R,width:Z,height:J}),Y&&g(ie,Y);else if(V){oe=W.match(E)[1];const ne=ie=this.image(oe);ne.imgwidth=v(Y&&Y.width,b[oe]&&b[oe].width),ne.imgheight=v(Y&&Y.height,b[oe]&&b[oe].height),ce=pe=>pe.attr({width:pe.width,height:pe.height}),["width","height"].forEach(function(pe){ne[pe+"Setter"]=function(te,re){this[re]=te;const{alignByTranslate:q,element:ae,width:se,height:he,imgwidth:fe,imgheight:ye}=this;let me=this["img"+re];if(T(me)){let _e=1;Y&&Y.backgroundSize==="within"&&se&&he?(_e=Math.min(se/fe,he/ye),me=Math.round(me*_e),L(ae,{width:Math.round(fe*_e),height:Math.round(ye*_e)})):ae&&ae.setAttribute(re,me),q||this.translate(((se||0)-fe*_e)/2,((he||0)-ye*_e)/2)}}}),T(d)&&ne.attr({x:d,y:R}),ne.isImg=!0,T(ne.imgwidth)&&T(ne.imgheight)?ce(ne):(ne.attr({width:0,height:0}),m("img",{onload:function(){const pe=C[ee.chartIndex];this.width===0&&(B(this,{position:"absolute",top:"-999em"}),x.body.appendChild(this)),b[oe]={width:this.width,height:this.height},ne.imgwidth=this.width,ne.imgheight=this.height,ne.element&&ce(ne),this.parentNode&&this.parentNode.removeChild(this),ee.imgCount--,!ee.imgCount&&pe&&!pe.hasLoaded&&pe.onload()},src:oe}),this.imgCount++)}return ie}clipRect(W,d,R,Z){const J=U()+"-",Y=this.createElement("clipPath").attr({id:J}).add(this.defs),ee=this.rect(W,d,R,Z,0).add(Y);return ee.id=J,ee.clipPath=Y,ee.count=0,ee}text(W,d,R,Z){const J=this,Y={};if(Z&&(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(!Z||J.forExport&&!J.allowHTML)&&(ee.xSetter=function(E,V,X){const Q=X.getElementsByTagName("tspan"),ie=X.getAttribute(V);for(let K=0,oe;K<Q.length;K++)oe=Q[K],oe.getAttribute(V)===ie&&oe.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),Z=Math.round(R*.8);return{h:R,b:Z,f:d}}rotCorr(W,d,R){let Z=W;return d&&R&&(Z=Math.max(Z*Math.cos(d*p),4)),{x:-W/3*Math.sin(d*p),y:Z}}pathToSegments(W){const d=[],R=[],Z={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===Z[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,Z,J,Y,ee,E,V){return new w(this,W,d,R,Z,J,Y,ee,E,V)}alignElements(){this.alignedObjects.forEach(W=>W.align())}}return g(H.prototype,{Element:u,SVG_NS:M,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:y,draw:N}),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:I,defined:j,extend:C,pick:p,pInt:x}=o,O=[];class S extends s{static compose(N){if(o.pushUnique(O,N)){const M=S.prototype,b=N.prototype;b.getSpanCorrection=M.getSpanCorrection,b.htmlCss=M.htmlCss,b.htmlGetBBox=M.htmlGetBBox,b.htmlUpdateTransform=M.htmlUpdateTransform,b.setSpanRotation=M.setSpanRotation}return N}getSpanCorrection(N,M,b){this.xCorr=-N*b,this.yCorr=-M}htmlCss(N){const M=this,b=M.element,F=b.tagName==="SPAN"&&N&&"width"in N,P=p(F&&N.width,void 0);let L;return F&&(delete N.width,M.textWidth=P,L=!0),N&&N.textOverflow==="ellipsis"&&(N.whiteSpace="nowrap",N.overflow="hidden"),M.styles=C(M.styles,N),I(M.element,N),L&&M.htmlUpdateTransform(),M}htmlGetBBox(){const N=this,M=N.element;return{x:M.offsetLeft,y:M.offsetTop,width:M.offsetWidth,height:M.offsetHeight}}htmlUpdateTransform(){if(!this.added){this.alignOnAdd=!0;return}const N=this,M=N.renderer,b=N.element,F=N.translateX||0,P=N.translateY||0,L=N.x||0,m=N.y||0,B=N.textAlign||"left",T={left:0,center:.5,right:1}[B],A=N.styles,g=A&&A.whiteSpace;function h(){return N.textPxLength?N.textPxLength:(I(b,{width:"",whiteSpace:g||"nowrap"}),b.offsetWidth)}if(I(b,{marginLeft:F,marginTop:P}),b.tagName==="SPAN"){const n=N.rotation,l=N.textWidth&&x(N.textWidth),f=[n,B,b.innerHTML,N.textWidth,N.textAlign].join(",");let k,v=!1;if(l!==N.oldTextWidth){const G=h();(l>N.oldTextWidth||G>l)&&(/[ \-]/.test(b.textContent||b.innerText)||b.style.textOverflow==="ellipsis")&&(I(b,{width:G>l||n?l+"px":"auto",display:"block",whiteSpace:g||"normal"}),N.oldTextWidth=l,v=!0)}N.hasBoxWidthChanged=v,f!==N.cTT&&(k=M.fontMetrics(b).b,j(n)&&(n!==(N.oldRotation||0)||B!==N.oldAlign)&&N.setSpanRotation(n,T,k),N.getSpanCorrection(!j(n)&&N.textPxLength||b.offsetWidth,k,T,n,B)),I(b,{left:L+(N.xCorr||0)+"px",top:m+(N.yCorr||0)+"px"}),N.cTT=f,N.oldRotation=n,N.oldAlign=B}}setSpanRotation(N,M,b){const F=()=>u&&!/Edge/.test(y.navigator.userAgent)?"-ms-transform":w?"-webkit-transform":c?"MozTransform":y.opera?"-o-transform":void 0,P={},L=F();L&&(P[L]=P.transform="rotate("+N+"deg)",P[L+(c?"Origin":"-origin")]=P.transformOrigin=M*100+"% "+b+"px",I(this.element,P))}}return S}),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:I}=c,j=[];class C extends o{static compose(x){if(c.pushUnique(j,x)){const O=C.prototype,S=x.prototype;S.html=O.html}return x}html(x,O,S){const _=this.createElement("span"),N=_.element,M=_.renderer,b=function(F,P){["opacity","visibility"].forEach(function(L){F[L+"Setter"]=function(m,B,T){const A=F.div?F.div.style:P;s.prototype[L+"Setter"].call(this,m,B,T),A&&(A[B]=m)}}),F.addedSetters=!0};return _.textSetter=function(F){F!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,i.setElementHTML(this.element,I(F,"")),this.textStr=F,_.doTransform=!0)},b(_,_.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:x,x:Math.round(O),y:Math.round(S)}).css({position:"absolute"}),M.styledMode||_.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),N.style.whiteSpace="nowrap",_.css=_.htmlCss,_.add=function(F){const P=M.box.parentNode,L=[];let m,B;if(this.parentGroup=F,F){if(m=F.div,!m){for(B=F;B;)L.push(B),B=B.parentGroup;L.reverse().forEach(function(T){const A=u(T.element,"class");function g(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",A?{className:A}: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 L[0].div&&_.on.apply({element:L[0].div,onEvents:T.onEvents},arguments),T},translateXSetter:g,translateYSetter:g}),T.addedSetters||b(T),T.css(h)})}}else m=P;return m.appendChild(N),_.added=!0,_.alignOnAdd&&_.htmlUpdateTransform(),_},_}}return C}),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 I(j,C){j.eventOptions=j.eventOptions||{},c(C.events,function(p,x){j.eventOptions[x]!==p&&(j.eventOptions[x]&&(u(j,x,j.eventOptions[x]),delete j.eventOptions[x]),o(p)&&(j.eventOptions[x]=p,s(j,x,p,{order:0})))})}y.registerEventOptions=I}(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:I,extend:j,fireEvent:C,isNumber:p,merge:x,objectEach:O,pick:S}=o;class _{constructor(M,b,F,P,L){this.isNew=!0,this.isNewLabel=!0,this.axis=M,this.pos=b,this.type=F||"",this.parameters=L||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,C(this,"init"),!F&&!P&&this.addLabel()}addLabel(){const M=this,b=M.axis,F=b.options,P=b.chart,L=b.categories,m=b.logarithmic,B=b.names,T=M.pos,A=S(M.options&&M.options.labels,F.labels),g=b.tickPositions,h=T===g[0],n=T===g[g.length-1],l=(!A.step||A.step===1)&&b.tickInterval===1,f=g.info;let k=M.label,v,G,U,D=this.parameters.category||(L?S(L[T],B[T],T):T);m&&p(D)&&(D=w(m.lin2log(D))),b.dateTime&&(f?(G=P.time.resolveDTLFormat(F.dateTimeLabelFormats[!F.grid&&f.higherRanks[T]||f.unitName]),v=G.main):p(D)&&(v=b.dateTime.getXDateFormat(D,F.dateTimeLabelFormats||{}))),M.isFirst=h,M.isLast=n;const H={axis:b,chart:P,dateTimeLabelFormat:v,isFirst:h,isLast:n,pos:T,tick:M,tickPositionInfo:f,value:D};C(this,"labelFormat",H);const z=R=>A.formatter?A.formatter.call(R,R):A.format?(R.text=b.defaultLabelFormatter.call(R,R),i.format(A.format,R,P)):b.defaultLabelFormatter.call(R,R),W=z.call(H,H),d=G&&G.list;d?M.shortenLabel=function(){for(U=0;U<d.length;U++)if(j(H,{dateTimeLabelFormat:d[U]}),k.attr({text:z.call(H,H)}),k.getBBox().width<b.getSlotWidth(M)-2*A.padding)return;k.attr({text:""})}:M.shortenLabel=void 0,l&&b._addedPlotLB&&M.moveLabel(W,A),!y(k)&&!M.movedLabel?(M.label=k=M.createLabel({x:0,y:0},W,A),M.rotation=0):k&&k.textStr!==W&&!l&&(k.textWidth&&!A.style.width&&!k.styles.width&&k.css({width:null}),k.attr({text:W}),k.textPxLength=k.getBBox().width)}createLabel(M,b,F){const P=this.axis,L=P.chart,m=y(b)&&F.enabled?L.renderer.text(b,M.x,M.y,F.useHTML).add(P.labelGroup):null;return m&&(L.styledMode||m.css(x(F.style)),m.textPxLength=m.getBBox().width),m}destroy(){I(this,this.axis)}getPosition(M,b,F,P){const L=this.axis,m=L.chart,B=P&&m.oldChartHeight||m.chartHeight,T={x:M?w(L.translate(b+F,void 0,void 0,P)+L.transB):L.left+L.offset+(L.opposite?(P&&m.oldChartWidth||m.chartWidth)-L.right-L.left:0),y:M?B-L.bottom+L.offset-(L.opposite?L.height:0):w(B-L.translate(b+F,void 0,void 0,P)-L.transB)};return T.y=u(T.y,-1e5,1e5),C(this,"afterGetPosition",{pos:T}),T}getLabelPosition(M,b,F,P,L,m,B,T){const A=this.axis,g=A.transA,h=A.isLinked&&A.linkedParent?A.linkedParent.reversed:A.reversed,n=A.staggerLines,l=A.tickRotCorr||{x:0,y:0},f=!P&&!A.reserveSpaceDefault?-A.labelOffset*(A.labelAlign==="center"?.5:1):0,k=L.distance,v={};let G,U;return A.side===0?G=F.rotation?-k:-F.getBBox().height:A.side===2?G=l.y+k:G=Math.cos(F.rotation*c)*(l.y-F.getBBox(!1,0).height/2),y(L.y)&&(G=A.side===0&&A.horiz?L.y+G:L.y),M=M+S(L.x,[0,1,0,-1][A.side]*k)+f+l.x-(m&&P?m*g*(h?-1:1):0),b=b+G-(m&&!P?m*g*(h?1:-1):0),n&&(U=B/(T||1)%n,A.opposite&&(U=n-U-1),b+=U*(A.labelOffset/n)),v.x=M,v.y=Math.round(b),C(this,"afterGetLabelPosition",{pos:v,tickmarkOffset:m,index:B}),v}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(M,b,F,P,L,m){return m.crispLine([["M",M,b],["L",M+(L?0:-F),b+(L?F:0)]],P)}handleOverflow(M){const b=this,F=this.axis,P=F.options.labels,L=M.x,m=F.chart.chartWidth,B=F.chart.spacing,T=S(F.labelLeft,Math.min(F.pos,B[3])),A=S(F.labelRight,Math.max(F.isRadial?0:F.pos+F.len,m-B[1])),g=this.label,h=this.rotation,n={left:0,center:.5,right:1}[F.labelAlign||g.attr("align")],l=g.getBBox().width,f=F.getSlotWidth(b),k=n,v={};let G=f,U=1,D,H,z;!h&&P.overflow==="justify"?(D=L-n*l,H=L+(1-n)*l,D<T?G=M.x+G*(1-n)-T:H>A&&(G=A-M.x+G*n,U=-1),G=Math.min(f,G),G<f&&F.labelAlign==="center"&&(M.x+=U*(f-G-k*(f-Math.min(l,G)))),(l>G||F.autoRotation&&(g.styles||{}).width)&&(z=G)):h<0&&L-n*l<T?z=Math.round(L/Math.cos(h*c)-T):h>0&&L+n*l>A&&(z=Math.round((m-L)/Math.cos(h*c))),z&&(b.shortenLabel?b.shortenLabel():(v.width=Math.floor(z)+"px",(P.style||{}).textOverflow||(v.textOverflow="ellipsis"),g.css(v)))}moveLabel(M,b){const F=this,P=F.label,L=F.axis;let m=!1,B;P&&P.textStr===M?(F.movedLabel=P,m=!0,delete F.label):O(L.ticks,function(T){!m&&!T.isNew&&T!==F&&T.label&&T.label.textStr===M&&(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,M,b),F.movedLabel&&F.movedLabel.attr({opacity:0}))}render(M,b,F){const P=this,L=P.axis,m=L.horiz,B=P.pos,T=S(P.tickmarkOffset,L.tickmarkOffset),A=P.getPosition(m,B,T,b),g=A.x,h=A.y,n=m&&g===L.pos+L.len||!m&&h===L.pos?-1:1,l=S(F,P.label&&P.label.newOpacity,1);F=S(F,1),this.isActive=!0,this.renderGridLine(b,F,n),this.renderMark(A,F,n),this.renderLabel(A,b,l,M),P.isNew=!1,C(this,"afterRender")}renderGridLine(M,b,F){const P=this,L=P.axis,m=L.options,B={},T=P.pos,A=P.type,g=S(P.tickmarkOffset,L.tickmarkOffset),h=L.chart.renderer;let n=P.gridLine,l,f=m.gridLineWidth,k=m.gridLineColor,v=m.gridLineDashStyle;P.type==="minor"&&(f=m.minorGridLineWidth,k=m.minorGridLineColor,v=m.minorGridLineDashStyle),n||(L.chart.styledMode||(B.stroke=k,B["stroke-width"]=f||0,B.dashstyle=v),A||(B.zIndex=1),M&&(b=0),P.gridLine=n=h.path().attr(B).addClass("highcharts-"+(A?A+"-":"")+"grid-line").add(L.gridGroup)),n&&(l=L.getPlotLinePath({value:T+g,lineWidth:n.strokeWidth()*F,force:"pass",old:M,acrossPanes:!1}),l&&n[M||P.isNew?"attr":"animate"]({d:l,opacity:b}))}renderMark(M,b,F){const P=this,L=P.axis,m=L.options,B=L.chart.renderer,T=P.type,A=L.tickSize(T?T+"Tick":"tick"),g=M.x,h=M.y,n=S(m[T!=="minor"?"tickWidth":"minorTickWidth"],!T&&L.isXAxis?1:0),l=m[T!=="minor"?"tickColor":"minorTickColor"];let f=P.mark;const k=!f;A&&(L.opposite&&(A[0]=-A[0]),f||(P.mark=f=B.path().addClass("highcharts-"+(T?T+"-":"")+"tick").add(L.axisGroup),L.chart.styledMode||f.attr({stroke:l,"stroke-width":n})),f[k?"attr":"animate"]({d:P.getMarkPath(g,h,A[0],f.strokeWidth()*F,L.horiz,B),opacity:b}))}renderLabel(M,b,F,P){const L=this,m=L.axis,B=m.horiz,T=m.options,A=L.label,g=T.labels,h=g.step,n=S(L.tickmarkOffset,m.tickmarkOffset),l=M.x,f=M.y;let k=!0;A&&p(l)&&(A.xy=M=L.getLabelPosition(l,f,A,B,g,n,P,h),L.isFirst&&!L.isLast&&!T.showFirstLabel||L.isLast&&!L.isFirst&&!T.showLastLabel?k=!1:B&&!g.step&&!g.rotation&&!b&&F!==0&&L.handleOverflow(M),h&&P%h&&(k=!1),k&&p(M.y)?(M.opacity=F,A[L.isNewLabel?"attr":"animate"](M).show(!0),L.isNewLabel=!1):(A.hide(),L.isNewLabel=!0))}replaceMovedLabel(){const M=this,b=M.label,F=M.axis;b&&!M.isNew&&(b.animate({opacity:0},void 0,b.destroy),delete M.label),F.isDirty=!0,M.label=M.movedLabel,delete M.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,I){const{animObject:j}=i,{defaultOptions:C}=c,{registerEventOptions:p}=u,{deg2rad:x}=w,{arrayMax:O,arrayMin:S,clamp:_,correctFloat:N,defined:M,destroyObjectProperties:b,erase:F,error:P,extend:L,fireEvent:m,getClosestDistance:B,insertItem:T,isArray:A,isNumber:g,isString:h,merge:n,normalizeTickInterval:l,objectEach:f,pick:k,relativeLength:v,removeEvent:G,splat:U,syncTimeout:D}=I,H=(W,d)=>l(d,void 0,void 0,k(W.options.allowDecimals,d<.5||W.tickAmount!==void 0),!!W.tickAmount);class z{constructor(d,R,Z){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,Z)}init(d,R,Z=this.coll){const J=Z==="xAxis",Y=this;Y.chart=d,Y.horiz=Y.isZAxis||(d.inverted?!J:J),Y.isXAxis=J,Y.coll=Z,m(this,"init",{userOptions:R}),Y.opposite=k(R.opposite,Y.opposite),Y.side=k(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=k(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=M(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=k(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=g(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(C[this.coll],d)),m(this,"afterSetOptions",{userOptions:d})}defaultLabelFormatter(d){const R=this.axis,Z=this.chart,{numberFormatter:J}=Z,Y=g(this.value)?this.value:NaN,ee=R.chart.time,E=R.categories,V=this.dateTimeLabelFormat,X=C.lang,Q=X.numericSymbols,ie=X.numericSymbolMagnitude||1e3,K=R.logarithmic?Math.abs(Y):R.tickInterval;let oe=Q&&Q.length,ce,ne;if(E)ne=`${this.value}`;else if(V)ne=ee.dateFormat(V,Y);else if(oe&&K>=1e3)for(;oe--&&typeof ne>"u";)ce=Math.pow(ie,oe+1),K>=ce&&Y*10%ce===0&&Q[oe]!==null&&Y!==0&&(ne=J(Y/ce,-1)+Q[oe]);return typeof ne>"u"&&(Math.abs(Y)>=1e4?ne=J(Y,-1):ne=J(Y,-1,void 0,"")),ne}getSeriesExtremes(){const d=this,R=d.chart;let Z;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,Z=J.getXExtremes(ee),V=Z.min,X=Z.max,!g(V)&&!(V instanceof Date)&&(ee=ee.filter(g),Z=J.getXExtremes(ee),V=Z.min,X=Z.max),ee.length&&(d.dataMin=Math.min(k(d.dataMin,V),V),d.dataMax=Math.max(k(d.dataMax,X),X)));else{const Q=J.applyExtremes();g(Q.dataMin)&&(V=Q.dataMin,d.dataMin=Math.min(k(d.dataMin,V),V)),g(Q.dataMax)&&(X=Q.dataMax,d.dataMax=Math.max(k(d.dataMax,X),X)),M(E)&&(d.threshold=E),(!Y.softThreshold||d.positiveValuesOnly)&&(d.softThreshold=!1)}}})}),m(this,"afterGetSeriesExtremes")}translate(d,R,Z,J,Y,ee){const E=this.linkedParent||this,V=J&&E.old?E.old.min:E.min;if(!g(V))return NaN;const X=E.minPixelPadding,Q=(E.isOrdinal||E.brokenAxis&&E.brokenAxis.hasBreaks||E.logarithmic&&Y)&&E.lin2val;let ie=1,K=0,oe=J&&E.old?E.old.transA:E.transA,ce=0;if(oe||(oe=E.transA),Z&&(ie*=-1,K=E.len),E.reversed&&(ie*=-1,K-=ie*(E.sector||E.len)),R)d=d*ie+K,d-=X,ce=d/oe+V,Q&&(ce=E.lin2val(ce));else{Q&&(d=E.val2lin(d));const ne=ie*(d-V)*oe;ce=(E.isRadial?ne:N(ne))+K+ie*X+(g(ee)?oe*ee:0)}return ce}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,Z=R.chart,J=R.left,Y=R.top,ee=d.old,E=d.value,V=d.lineWidth,X=ee&&Z.oldChartHeight||Z.chartHeight,Q=ee&&Z.oldChartWidth||Z.chartWidth,ie=R.transB;let K=d.translatedValue,oe=d.force,ce,ne,pe,te,re;function q(se,he,fe){return oe!=="pass"&&(se<he||se>fe)&&(oe?se=_(se,he,fe):re=!0),se}const ae={value:E,lineWidth:V,old:ee,force:oe,acrossPanes:d.acrossPanes,translatedValue:K};return m(this,"getPlotLinePath",ae,function(se){K=k(K,R.translate(E,void 0,void 0,ee)),K=_(K,-1e5,1e5),ce=pe=Math.round(K+ie),ne=te=Math.round(X-K-ie),g(K)?R.horiz?(ne=Y,te=X-R.bottom,ce=pe=q(ce,J,J+R.width)):(ce=J,pe=Q-R.right,ne=te=q(ne,Y,Y+R.height)):(re=!0,oe=!1),se.path=re&&!oe?null:Z.renderer.crispLine([["M",ce,ne],["L",pe,te]],V||1)}),ae.path}getLinearTickPositions(d,R,Z){const J=N(Math.floor(R/d)*d),Y=N(Math.ceil(Z/d)*d),ee=[];let E,V,X;if(N(J+d)===J&&(X=20),this.single)return[R];for(E=J;E<=Y&&(ee.push(E),E=N(E+d,X),E!==V);)V=E;return ee}getMinorTickInterval(){const d=this.options;return d.minorTicks===!0?k(d.minorTickInterval,"auto"):d.minorTicks===!1?null:d.minorTickInterval}getMinorTickPositions(){const d=this,R=d.options,Z=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 ie=d.logarithmic;if(ie)this.paddedTicks.forEach(function(K,oe,ce){oe&&X.push.apply(X,ie.getLogTickPositions(J,ce[oe-1],ce[oe],!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+(Z[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,Z=d.logarithmic;let J=d.min,Y=d.max,ee,E,V,X,Q,ie;d.isXAxis&&typeof d.minRange>"u"&&!Z&&(M(R.min)||M(R.max)||M(R.floor)||M(R.ceiling)?d.minRange=null:(V=B(d.series.map(K=>{var oe;return(K.xIncrement?(oe=K.xData)===null||oe===void 0?void 0:oe.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,ie=d.minRange,ee=(ie-Y+J)/2,X=[J-ee,k(R.min,J-ee)],E&&(X[2]=Z?Z.log2lin(d.dataMin):d.dataMin),J=O(X),Q=[J+ie,k(R.max,J+ie)],E&&(Q[2]=Z?Z.log2lin(d.dataMax):d.dataMax),Y=S(Q),Y-J<ie&&(X[0]=Y-ie,X[1]=k(R.min,Y-ie),J=O(X))),d.min=J,d.max=Y}getClosest(){let d,R;if(this.categories)R=1;else{const Z=[];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?Z.push(J.xData[0]):!J.noSharedTooltip&&M(ee)&&E&&(R=M(R)?Math.min(R,ee):ee)}),Z.length&&(Z.sort((J,Y)=>J-Y),d=B([Z]))}return d&&R?Math.min(d,R):d||R}nameToX(d){const R=A(this.options.categories),Z=R?this.categories:this.names;let J=d.options.x,Y;return d.series.requireSorting=!1,M(J)||(J=this.options.uniqueNames&&Z?R?Z.indexOf(d.name):k(Z.keys[d.name],-1):d.series.autoIncrement()),J===-1?!R&&Z&&(Y=Z.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,Z=d.linkedParent,J=!!d.categories,Y=d.isXAxis;let ee=d.axisPointRange||0,E,V=0,X=0,Q,ie=d.transA;(Y||J||ee)&&(E=d.getClosest(),Z?(V=Z.minPointOffset,X=Z.pointRangePadding):d.series.forEach(function(K){const oe=J?1:Y?k(K.options.pointRange,E,0):d.axisPointRange||0,ce=K.options.pointPlacement;if(ee=Math.max(ee,oe),!d.single||J){const ne=K.is("xrange")?!Y:Y;V=Math.max(V,ne&&h(ce)?0:oe/2),X=Math.max(X,ne&&ce==="on"?0:oe)}}),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=ie=d.staticScale||d.len/(R+X||1),d.transB=d.horiz?d.left:d.bottom,d.minPixelPadding=ie*V,m(this,"afterSetAxisTranslation")}minFromRange(){const d=this;return d.max-d.range}setTickInterval(d){const R=this,Z=R.chart,J=R.logarithmic,Y=R.options,ee=R.isXAxis,E=R.isLinked,V=Y.tickPixelInterval,X=R.categories,Q=R.softThreshold;let ie=Y.maxPadding,K=Y.minPadding,oe,ce,ne=g(Y.tickInterval)&&Y.tickInterval>=0?Y.tickInterval:void 0,pe=g(R.threshold)?R.threshold:null,te,re,q,ae;if(!R.dateTime&&!X&&!E&&this.getTickAmount(),q=k(R.userMin,Y.min),ae=k(R.userMax,Y.max),E?(R.linkedParent=Z[R.coll][Y.linkedTo],ce=R.linkedParent.getExtremes(),R.min=k(ce.min,ce.dataMin),R.max=k(ce.max,ce.dataMax),Y.type!==R.linkedParent.options.type&&P(11,1,Z)):(Q&&M(pe)&&(R.dataMin>=pe?(te=pe,K=0):R.dataMax<=pe&&(re=pe,ie=0)),R.min=k(q,te,R.dataMin),R.max=k(ae,re,R.dataMax)),J&&(R.positiveValuesOnly&&!d&&Math.min(R.min,k(R.dataMin,R.min))<=0&&P(10,1,Z),R.min=N(J.log2lin(R.min),16),R.max=N(J.log2lin(R.max),16)),R.range&&M(R.max)&&(R.userMin=R.min=q=Math.max(R.dataMin,R.minFromRange()),R.userMax=ae=R.max,R.range=null),m(R,"foundExtremes"),R.beforePadding&&R.beforePadding(),R.adjustForMinRange(),g(R.userMin)||g(Y.softMin)&&Y.softMin<R.min&&(R.min=q=Y.softMin),g(R.userMax)||g(Y.softMax)&&Y.softMax>R.max&&(R.max=ae=Y.softMax),!X&&!R.axisPointRange&&!(R.stacking&&R.stacking.usePercentage)&&!E&&M(R.min)&&M(R.max)&&(oe=R.max-R.min,oe&&(!M(q)&&K&&(R.min-=oe*K),!M(ae)&&ie&&(R.max+=oe*ie))),!g(R.userMin)&&g(Y.floor)&&(R.min=Math.max(R.min,Y.floor)),!g(R.userMax)&&g(Y.ceiling)&&(R.max=Math.min(R.max,Y.ceiling)),Q&&M(R.dataMin)&&(pe=pe||0,!M(q)&&R.min<pe&&R.dataMin>=pe?R.min=R.options.minRange?Math.min(pe,R.max-R.minRange):pe:!M(ae)&&R.max>pe&&R.dataMax<=pe&&(R.max=R.options.minRange?Math.max(pe,R.min+R.minRange):pe)),g(R.min)&&g(R.max)&&!this.chart.polar&&R.min>R.max&&(M(R.options.min)?R.max=R.min:M(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&&!ne&&V===R.linkedParent.options.tickPixelInterval?R.tickInterval=ne=R.linkedParent.tickInterval:R.tickInterval=k(ne,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&&!ne&&(R.tickInterval=Math.max(R.pointRange,R.tickInterval));const se=k(Y.minTickInterval,R.dateTime&&!R.series.some(he=>he.noSharedTooltip)?R.closestPointRange:0);!ne&&R.tickInterval<se&&(R.tickInterval=se),!R.dateTime&&!R.logarithmic&&!ne&&(R.tickInterval=H(R,R.tickInterval)),this.tickAmount||(R.tickInterval=R.unsquish()),this.setTickPositions()}setTickPositions(){const d=this,R=this.options,Z=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=[],ie;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&&M(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||R.allowDecimals!==!1),Z)Q=Z.slice();else if(g(this.min)&&g(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 oe=K;for(;oe<=K*2&&(Q=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&Q.length>this.tickAmount);)this.tickInterval=H(this,oe*=1.1)}Q.length>this.len&&(Q=[Q[0],Q[Q.length-1]],Q[0]===Q[1]&&(Q.length=1)),J&&(this.tickPositions=Q,ie=J.apply(d,[this.min,this.max]),ie&&(Q=ie))}this.tickPositions=Q,this.paddedTicks=Q.slice(0),this.trimTicks(Q,V,X),!this.isLinked&&g(this.min)&&g(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),!Z&&!ie&&this.adjustTickAmount()),m(this,"afterSetTickPositions")}trimTicks(d,R,Z){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(Z)this.max=Y;else for(;this.max+ee<d[d.length-1];)d.pop();d.length===0&&M(J)&&!this.options.tickPositions&&d.push((Y+J)/2)}}alignToOthers(){const d=this,R=[this],Z=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&&Z.alignTicks||J)&&Z.startOnTick!==!1&&Z.endOnTick!==!1&&!d.logarithmic){const E=X=>{const{horiz:Q,options:ie}=X;return[Q?ie.left:ie.top,ie.width,ie.height,ie.pane].join(",")},V=E(this);this.chart[this.coll].forEach(function(X){const{series:Q}=X;Q.length&&Q.some(ie=>ie.visible)&&X!==d&&E(X)===V&&(ee=!0,R.push(X))})}if(ee&&J){R.forEach(V=>{const X=V.getThresholdAlignment(d);g(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((!g(this.dataMin)||this!==d&&this.series.some(R=>R.isDirty||R.isDirtyData))&&this.getSeriesExtremes(),g(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,Z=R.tickPixelInterval;let J=R.tickAmount;!M(R.tickInterval)&&!J&&this.len<Z&&!this.isRadial&&!d.logarithmic&&R.startOnTick&&R.endOnTick&&(J=2),!J&&this.alignToOthers()&&(J=Math.ceil(this.len/Z)+1),J<4&&(this.finalTickAmt=J,J=5),this.tickAmount=J}adjustTickAmount(){const d=this,{finalTickAmt:R,max:Z,min:J,options:Y,tickPositions:ee,tickAmount:E,thresholdAlignment:V}=d,X=ee&&ee.length,Q=k(d.threshold,d.softThreshold?0:null);let ie,K,oe=d.tickInterval,ce;const ne=()=>ee.push(N(ee[ee.length-1]+oe)),pe=()=>ee.unshift(N(ee[0]-oe));if(g(V)&&(ce=V<.5?Math.ceil(V*(E-1)):Math.floor(V*(E-1)),Y.reversed&&(ce=E-1-ce)),d.hasData()&&g(J)&&g(Z)){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(Z,ee[ee.length-1])};if(g(ce)&&g(d.threshold)){for(;ee[ce]!==Q||ee.length!==E||ee[0]>J||ee[ee.length-1]<Z;){for(ee.length=0,ee.push(d.threshold);ee.length<E;)ee[ce]===void 0||ee[ce]>d.threshold?pe():ne();if(oe>d.tickInterval*8)break;oe*=2}te()}else if(X<E){for(;ee.length<E;)ee.length%2||J===Q?ne():pe();te()}if(M(R)){for(K=ie=ee.length;K--;)(R===3&&K%2===1||R<=2&&K>0&&K<ie-1)&&ee.splice(K,1);d.finalTickAmt=void 0}}}setScale(){const d=this;let R=!1,Z=!1;d.series.forEach(function(Y){R=R||Y.isDirtyData||Y.isDirty,Z=Z||Y.xAxis&&Y.xAxis.isDirty||!1}),d.setAxisSize();const J=d.len!==(d.old&&d.old.len);J||R||Z||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,Z,J,Y){const ee=this,E=ee.chart;Z=k(Z,!0),ee.series.forEach(function(V){delete V.kdTree}),Y=L(Y,{min:d,max:R}),m(ee,"setExtremes",Y,function(){ee.userMin=d,ee.userMax=R,ee.eventArgs=Y,Z&&E.redraw(J)})}zoom(d,R){const Z=this,J=this.dataMin,Y=this.dataMax,ee=this.options,E=Math.min(J,k(ee.min,J)),V=Math.max(Y,k(ee.max,Y)),X={newMin:d,newMax:R};return m(this,"zoom",X,function(Q){let ie=Q.newMin,K=Q.newMax;(ie!==Z.min||K!==Z.max)&&(Z.allowZoomOutside||(M(J)&&(ie<E&&(ie=E),ie>V&&(ie=V)),M(Y)&&(K<E&&(K=E),K>V&&(K=V))),Z.displayBtn=typeof ie<"u"||typeof K<"u",Z.setExtremes(ie,K,!1,void 0,{trigger:"zoom"})),Q.zoomed=!0}),X.zoomed}setAxisSize(){const d=this.chart,R=this.options,Z=R.offsets||[0,0,0,0],J=this.horiz,Y=this.width=Math.round(v(k(R.width,d.plotWidth-Z[3]+Z[1]),d.plotWidth)),ee=this.height=Math.round(v(k(R.height,d.plotHeight-Z[0]+Z[2]),d.plotHeight)),E=this.top=Math.round(v(k(R.top,d.plotTop+Z[0]),d.plotHeight,d.plotTop)),V=this.left=Math.round(v(k(R.left,d.plotLeft+Z[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?N(R.lin2log(d.min)):d.min,max:R?N(R.lin2log(d.max)):d.max,dataMin:d.dataMin,dataMax:d.dataMax,userMin:d.userMin,userMax:d.userMax}}getThreshold(d){const R=this,Z=R.logarithmic,J=Z?Z.lin2log(R.min):R.min,Y=Z?Z.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=(k(d,0)-this.side*90+720)%360,Z={align:"center"};return m(this,"autoLabelAlign",Z,function(J){R>15&&R<165?J.align="right":R>195&&R<345&&(J.align="left")}),Z.align}tickSize(d){const R=this.options,Z=k(R[d==="tick"?"tickWidth":"minorTickWidth"],d==="tick"&&this.isXAxis&&!this.categories?1:0);let J=R[d==="tick"?"tickLength":"minorTickLength"],Y;Z&&J&&(R[d+"Position"]==="inside"&&(J=-J),Y=[J,Z]);const ee={tickSize:Y};return m(this,"afterTickSize",ee),ee.tickSize}labelMetrics(){const d=this.chart.renderer,R=this.ticks,Z=R[Object.keys(R)[0]]||{};return this.chart.renderer.fontMetrics(Z.label||Z.movedLabel||d.box)}unsquish(){const d=this.options.labels,R=this.horiz,Z=this.tickInterval,J=this.len/(((this.categories?1:0)+this.max-this.min)/Z),Y=d.rotation,ee=this.labelMetrics().h*.75,E=Math.max(this.max-this.min,0),V=function(oe){let ce=oe/(J||1);return ce=ce>1?Math.ceil(ce):1,ce*Z>E&&oe!==1/0&&J!==1/0&&E&&(ce=Math.ceil(E/Z)),N(ce*Z)};let X=Z,Q,ie=Number.MAX_VALUE,K;if(R){if(d.staggerLines||(g(Y)?K=[Y]:J<d.autoRotationLimit&&(K=d.autoRotation)),K){let oe,ce;for(const ne of K)(ne===Y||ne&&ne>=-90&&ne<=90)&&(oe=V(Math.abs(ee/Math.sin(x*ne))),ce=oe+Math.abs(ne/360),ce<ie&&(ie=ce,Q=ne,X=oe))}}else X=V(ee);return this.autoRotation=K,this.labelRotation=k(Q,g(Y)?Y:0),d.step?Z:X}getSlotWidth(d){const R=this.chart,Z=this.horiz,J=this.options.labels,Y=Math.max(this.tickPositions.length-(this.categories?0:1),1),ee=R.margin[3];if(d&&g(d.slotWidth))return d.slotWidth;if(Z&&J.step<2)return J.rotation?0:(this.staggerLines||1)*this.len/Y;if(!Z){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,Z=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={},ie=this.labelMetrics(),K=ee.textOverflow;let oe,ce,ne=0,pe,te,re;if(h(Y.rotation)||(Q.rotation=Y.rotation||0),Z.forEach(function(q){const ae=J[q];ae.movedLabel&&ae.replaceMovedLabel(),ae&&ae.label&&ae.label.textPxLength>ne&&(ne=ae.label.textPxLength)}),this.maxLabelLength=ne,this.autoRotation)ne>X&&ne>ie.h?Q.rotation=this.labelRotation:this.labelRotation=0;else if(V&&(oe=X,!K))for(ce="clip",te=Z.length;!E&&te--;)re=Z[te],pe=J[re].label,pe&&(pe.styles&&pe.styles.textOverflow==="ellipsis"?pe.css({textOverflow:"clip"}):pe.textPxLength>V&&pe.css({width:V+"px"}),pe.getBBox().height>this.len/Z.length-(ie.h-ie.f)&&(pe.specificTextOverflow="ellipsis"));Q.rotation&&(oe=ne>d.chartHeight*.5?d.chartHeight*.33:ne,K||(ce="ellipsis")),this.labelAlign=Y.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(Q.align=this.labelAlign),Z.forEach(function(q){const ae=J[q],se=ae&&ae.label,he=ee.width,fe={};se&&(se.attr(Q),ae.shortenLabel?ae.shortenLabel():oe&&!he&&ee.whiteSpace!=="nowrap"&&(oe<se.textPxLength||se.element.tagName==="SPAN")?(fe.width=oe+"px",K||(fe.textOverflow=se.specificTextOverflow||ce),se.css(fe)):se.styles&&se.styles.width&&!fe.width&&!he&&se.css({width:null}),delete se.specificTextOverflow,ae.rotation=Q.rotation)},this),this.tickRotCorr=R.rotCorr(ie.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(d){return d.hasData()})||this.options.showEmpty&&M(this.min)&&M(this.max)}addTitle(d){const R=this,Z=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=Z.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,Z=R.ticks;Z[d]?Z[d].addLabel():Z[d]=new y(R,d)}getOffset(){const d=this,{chart:R,horiz:Z,options:J,side:Y,ticks:ee,tickPositions:E,coll:V,axisParent:X}=d,Q=R.renderer,ie=R.inverted&&!d.isZAxis?[1,0,3,2][Y]:Y,K=d.hasData(),oe=J.title,ce=J.labels,ne=g(J.crossing),pe=R.axisOffset,te=R.clipOffset,re=[-1,1,1,-1][Y],q=J.className;let ae,se=0,he,fe=0,ye=0,me,_e;if(d.showAxis=ae=K||J.showEmpty,d.staggerLines=d.horiz&&ce.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} `:"")+(q||"")).add(X);d.gridGroup=be("grid","-grid",J.gridZIndex),d.axisGroup=be("axis","",J.zIndex),d.labelGroup=be("axis-labels","-labels",ce.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,k(ce.reserveSpace,ne?!1:null,d.labelAlign==="center"?!0:null,d.reserveSpaceDefault)&&E.forEach(function(be){ye=Math.max(ee[be].getLabelSize(),ye)}),d.staggerLines&&(ye*=d.staggerLines),d.labelOffset=ye*(d.opposite?-1:1)):f(ee,function(be,Ce){be.destroy(),delete ee[Ce]}),oe&&oe.text&&oe.enabled!==!1&&(d.addTitle(ae),ae&&!ne&&oe.reserveSpace!==!1&&(d.titleOffset=se=d.axisTitle.getBBox()[Z?"height":"width"],he=oe.offset,fe=M(he)?0:k(oe.margin,Z?5:10))),d.renderLine(),d.offset=re*k(J.offset,pe[Y]?pe[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,me=Math.abs(ye)+fe,ye&&(me-=_e,me+=re*(Z?k(ce.y,d.tickRotCorr.y+re*ce.distance):k(ce.x,re*ce.distance))),d.axisTitleMargin=k(he,me),d.getMaxLabelDimensions&&(d.maxLabelDimensions=d.getMaxLabelDimensions(ee,E)),V!=="colorAxis"){const be=this.tickSize("tick");pe[Y]=Math.max(pe[Y],(d.axisTitleMargin||0)+se+re*d.offset,me,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[ie]=Math.max(te[ie],Ce)}m(this,"afterGetOffset")}getLinePath(d){const R=this.chart,Z=this.opposite,J=this.offset,Y=this.horiz,ee=this.left+(Z?this.width:0)+J,E=R.chartHeight-this.bottom-(Z?this.height:0)+J;return Z&&(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,Z=this.left,J=this.top,Y=this.len,ee=this.options.title,E=R?Z:J,V=this.opposite,X=this.offset,Q=ee.x,ie=ee.y,K=this.chart.renderer.fontMetrics(d),oe=d?Math.max(d.getBBox(!1,0).height-K.h-1,0):0,ce={low:E+(R?0:Y),middle:E+Y/2,high:E+(R?Y:0)}[ee.align],ne=(R?J+this.height:Z)+(R?1:-1)*(V?-1:1)*(this.axisTitleMargin||0)+[-oe,oe,K.f,-oe][this.side],pe={x:R?ce+Q:ne+(V?this.width:0)+X+Q,y:R?ne+ie-(V?this.height:0)+X:ce+ie};return m(this,"afterGetTitlePosition",{titlePosition:pe}),pe}renderMinorTick(d,R){const Z=this,J=Z.minorTicks;J[d]||(J[d]=new y(Z,d,"minor")),R&&J[d].isNew&&J[d].render(null,!0),J[d].render(null,!1,1)}renderTick(d,R,Z){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)),Z&&ee[d].isNew&&ee[d].render(R,!0,-1),ee[d].render(R))}render(){const d=this,R=d.chart,Z=d.logarithmic,J=R.renderer,Y=d.options,ee=d.isLinked,E=d.tickPositions,V=d.axisTitle,X=d.ticks,Q=d.minorTicks,ie=d.alternateBands,K=Y.stackLabels,oe=Y.alternateGridColor,ce=Y.crossing,ne=d.tickmarkOffset,pe=d.axisLine,te=d.showAxis,re=j(J.globalAnimation);let q,ae;if(d.labelEdge.length=0,d.overlap=!1,[X,Q,ie].forEach(function(se){f(se,function(he){he.isActive=!1})}),g(ce)){const se=this.isXAxis?R.yAxis[0]:R.xAxis[0],he=[1,-1,-1,1][this.side];if(se){let fe=se.toPixels(ce,!0);d.horiz&&(fe=se.len-fe),d.offset=he*fe}}if(d.hasData()||ee){const se=d.chart.hasRendered&&d.old&&g(d.old.min);d.minorTickInterval&&!d.categories&&d.getMinorTickPositions().forEach(function(he){d.renderMinorTick(he,se)}),E.length&&(E.forEach(function(he,fe){d.renderTick(he,fe,se)}),ne&&(d.min===0||d.single)&&(X[-1]||(X[-1]=new y(d,-1,null,!0)),X[-1].render(-1))),oe&&E.forEach(function(he,fe){ae=typeof E[fe+1]<"u"?E[fe+1]+ne:d.max-ne,fe%2===0&&he<d.max&&ae<=d.max+(R.polar?-ne:ne)&&(ie[he]||(ie[he]=new w.PlotLineOrBand(d)),q=he+ne,ie[he].options={from:Z?Z.lin2log(q):q,to:Z?Z.lin2log(ae):ae,color:oe,className:"highcharts-alternate-grid"},ie[he].render(),ie[he].isActive=!0)}),d._addedPlotLB||(d._addedPlotLB=!0,(Y.plotLines||[]).concat(Y.plotBands||[]).forEach(function(he){d.addPlotBandOrLine(he)}))}[X,Q,ie].forEach(function(se){const he=[],fe=re.duration,ye=function(){let me=he.length;for(;me--;)se[he[me]]&&!se[he[me]].isActive&&(se[he[me]].destroy(),delete se[he[me]])};f(se,function(me,_e){me.isActive||(me.render(_e,!1,0),me.isActive=!1,he.push(_e))}),D(ye,se===ie||!R.hasRendered||!fe?0:fe)}),pe&&(pe[pe.isPlaced?"animate":"attr"]({d:this.getLinePath(pe.strokeWidth())}),pe.isPlaced=!0,pe[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,Z=R.plotLinesAndBands,J=this.eventOptions;if(m(this,"destroy",{keepEvents:d}),d||G(R),[R.ticks,R.minorTicks,R.alternateBands].forEach(function(Y){b(Y)}),Z){let Y=Z.length;for(;Y--;)Z[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 Z=this.crosshair,J=k(Z&&Z.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),!Z||(M(R)||!J)===!1)this.hideCrosshair();else{if(J?M(R)&&(E=k(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),M(E)&&(Q={value:R&&(this.isXAxis?R.x:k(R.stackY,R.y)),translatedValue:E},Y.polar&&L(Q,{isCrosshair:!0,chartX:d&&d.chartX,chartY:d&&d.chartY,point:R}),ee=this.getPlotLinePath(Q)||null),!M(ee)){this.hideCrosshair();return}V=this.categories&&!this.isRadial,X||(this.cross=X=Y.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(V?"category ":"thin ")+(Z.className||"")).attr({zIndex:k(Z.zIndex,2)}).add(),Y.styledMode||(X.attr({stroke:Z.color||(V?o.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":k(Z.width,1)}).css({"pointer-events":"none"}),Z.dashStyle&&X.attr({dashstyle:Z.dashStyle}))),X.show().attr({d:ee}),V&&!Z.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 Z=this.chart;d=n(this.userOptions,d),this.destroy(!0),this.init(Z,d),Z.isDirtyBox=!0,k(R,!0)&&Z.redraw()}remove(d){const R=this.chart,Z=this.coll,J=this.series;let Y=J.length;for(;Y--;)J[Y]&&J[Y].remove(!1);F(R.axes,this),F(R[Z]||[],this),R.orderItems(Z),this.destroy(),R.isDirtyBox=!0,k(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 I=[];function j(O){if(i.pushUnique(I,O)){O.keepProps.push("dateTime");const S=O.prototype;S.getTimeTicks=C,s(O,"init",p)}return O}y.compose=j;function C(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function p(O){const S=this;if(O.userOptions.type!=="datetime"){S.dateTime=void 0;return}S.dateTime||(S.dateTime=new x(S))}class x{constructor(S){this.axis=S}normalizeTimeTickInterval(S,_){const N=_||[["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 M=N[N.length-1],b=u[M[0]],F=M[1],P;for(P=0;P<N.length;P++)if(M=N[P],b=u[M[0]],F=M[1],N[P+1]){const m=(b*F[F.length-1]+u[N[P+1][0]])/2;if(S<=m)break}b===u.year&&S<5*b&&(F=[1,2,5]);const L=c(S/b,F,M[0]==="year"?Math.max(o(S/b),1):1);return{unitRange:b,count:L,unitName:M[0]}}getXDateFormat(S,_){const{axis:N}=this,M=N.chart.time;return N.closestPointRange?M.getDateFormat(N.closestPointRange,S,N.options.startOfWeek,_)||M.resolveDTLFormat(_.year).main:M.resolveDTLFormat(_.day).main}}y.Additions=x}(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 I(x){return i.pushUnique(y,x)&&(x.keepProps.push("logarithmic"),s(x,"init",j),s(x,"afterInit",C)),x}w.compose=I;function j(x){const O=this,S=x.userOptions;let _=O.logarithmic;S.type!=="logarithmic"?O.logarithmic=void 0:_||(_=O.logarithmic=new p(O))}function C(){const x=this,O=x.logarithmic;O&&(x.lin2val=function(S){return O.lin2log(S)},x.val2lin=function(S){return O.log2lin(S)})}class p{constructor(O){this.axis=O}getLogTickPositions(O,S,_,N){const M=this,b=M.axis,F=b.len,P=b.options;let L=[];if(N||(M.minorAutoInterval=void 0),O>=.5)O=Math.round(O),L=b.getLinearTickPositions(O,S,_);else if(O>=.08){const m=Math.floor(S);let B,T,A,g,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(g=B.length,A=0;A<g&&!l;A++)h=M.log2lin(M.lin2log(T)*B[A]),h>S&&(!N||n<=_)&&typeof n<"u"&&L.push(n),n>_&&(l=!0),n=h}else{const m=M.lin2log(S),B=M.lin2log(_),T=N?b.getMinorTickInterval():P.tickInterval,A=T==="auto"?null:T,g=P.tickPixelInterval/(N?5:1),h=N?F/b.tickPositions.length:F;O=c(A,M.minorAutoInterval,(B-m)*g/(h||1)),O=o(O),L=b.getLinearTickPositions(O,m,B).map(M.log2lin),N||(M.minorAutoInterval=O/5)}return N||(b.tickInterval=O),L}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 I;function j(M){return this.addPlotBandOrLine(M,"plotBands")}function C(M,b){const F=this.userOptions;let P=new I(this,M);if(this.visible&&(P=P.render()),P){if(this._addedPlotLB||(this._addedPlotLB=!0,(F.plotLines||[]).concat(F.plotBands||[]).forEach(L=>{this.addPlotBandOrLine(L)})),b){const L=F[b]||[];L.push(M),F[b]=L}this.plotLinesAndBands.push(P)}return P}function p(M){return this.addPlotBandOrLine(M,"plotLines")}function x(M,b){return I||(I=M),i.pushUnique(y,b)&&o(b.prototype,{addPlotBand:j,addPlotLine:p,addPlotBandOrLine:C,getPlotBandPath:O,removePlotBand:S,removePlotLine:N,removePlotBandOrLine:_}),b}w.compose=x;function O(M,b,F=this.options){const P=this.getPlotLinePath({value:b,force:!0,acrossPanes:F.acrossPanes}),L=[],m=this.horiz,B=!c(this.min)||!c(this.max)||M<this.min&&b<this.min||M>this.max&&b>this.max;let T=this.getPlotLinePath({value:M,force:!0,acrossPanes:F.acrossPanes}),A,g=1,h;if(T&&P)for(B&&(h=T.toString()===P.toString(),g=0),A=0;A<T.length;A+=2){const n=T[A],l=T[A+1],f=P[A],k=P[A+1];(n[0]==="M"||n[0]==="L")&&(l[0]==="M"||l[0]==="L")&&(f[0]==="M"||f[0]==="L")&&(k[0]==="M"||k[0]==="L")&&(m&&f[1]===n[1]?(f[1]+=g,k[1]+=g):!m&&f[2]===n[2]&&(f[2]+=g,k[2]+=g),L.push(["M",n[1],n[2]],["L",l[1],l[2]],["L",k[1],k[2]],["L",f[1],f[2]],["Z"])),L.isFlat=h}else T=null;return L}function S(M){this.removePlotBandOrLine(M)}function _(M){const b=this.plotLinesAndBands,F=this.options,P=this.userOptions;if(b){let L=b.length;for(;L--;)b[L].id===M&&b[L].destroy();[F.plotLines||[],P.plotLines||[],F.plotBands||[],P.plotBands||[]].forEach(function(m){for(L=m.length;L--;)(m[L]||{}).id===M&&s(m,m[L])})}}function N(M){this.removePlotBandOrLine(M)}}(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:I,merge:j,objectEach:C,pick:p}=s;class x{static compose(S){return i.compose(x,S)}constructor(S,_){this.axis=S,_&&(this.options=_,this.id=_.id)}render(){I(this,"render");const S=this,_=S.axis,N=_.horiz,M=_.logarithmic,b=S.options,F=b.color,P=p(b.zIndex,0),L=b.events,m={},B=_.chart.renderer;let T=b.label,A=S.label,g=b.to,h=b.from,n=b.value,l=S.svgElem,f=[],k;const v=u(h)&&u(g),G=u(n),U=!l,D={class:"highcharts-plot-"+(v?"band ":"line ")+(b.className||"")};let H=v?"bands":"lines";if(M&&(h=M.log2lin(h),g=M.log2lin(g),n=M.log2lin(n)),_.chart.styledMode||(G?(D.stroke=F||"#999999",D["stroke-width"]=p(b.width,1),b.dashStyle&&(D.dashstyle=b.dashStyle)):v&&(D.fill=F||"#e6e9ff",b.borderWidth&&(D.stroke=b.borderColor,D["stroke-width"]=b.borderWidth))),m.zIndex=P,H+="-"+P,k=_.plotLinesAndBandsGroups[H],k||(_.plotLinesAndBandsGroups[H]=k=B.g("plot-"+H).attr(m).add()),U&&(S.svgElem=l=B.path().attr(D).add(k)),G)f=_.getPlotLinePath({value:n,lineWidth:l.strokeWidth(),acrossPanes:b.acrossPanes});else if(v)f=_.getPlotBandPath(h,g,b);else return;return!S.eventsAdded&&L&&(C(L,function(z,W){l.on(W,function(d){L[W].apply(S,[d])})}),S.eventsAdded=!0),(U||!l.d)&&f&&f.length?l.attr({d:f}):l&&(f?(l.show(),l.animate({d:f})):l.d&&(l.hide(),A&&(S.label=A=A.destroy()))),T&&(u(T.text)||u(T.formatter))&&f&&f.length&&_.width>0&&_.height>0&&!f.isFlat?(T=j({align:N&&v&&"center",x:N?!v&&4:10,verticalAlign:!N&&v&&"middle",y:N?v?16:10:v?6:-4,rotation:N&&!v&&90},T),this.renderLabel(T,f,v,P)):A&&A.hide(),S}renderLabel(S,_,N,M){const b=this,F=b.axis,P=F.chart.renderer;let L=b.label;L||(b.label=L=P.text(this.getLabelText(S),0,0,S.useHTML).attr({align:S.textAlign||S.align,rotation:S.rotation,class:"highcharts-plot-"+(N?"band":"line")+"-label "+(S.className||""),zIndex:M}).add(),F.chart.styledMode||L.css(j({fontSize:"0.8em",textOverflow:"ellipsis"},S.style)));const m=_.xBounds||[_[0][1],_[1][1],N?_[2][1]:_[0][1]],B=_.yBounds||[_[0][2],_[1][2],N?_[2][2]:_[0][2]],T=c(m),A=c(B);if(L.align(S,!1,{x:T,y:A,width:o(m)-T,height:o(B)-A}),!L.alignValue||L.alignValue==="left"){const g=S.clip?F.width:F.chart.chartWidth;L.css({width:(L.rotation===90?F.height-(L.alignAttr.y-F.top):g-(L.alignAttr.x-F.left))+"px"})}L.show(!0)}getLabelText(S){return u(S.formatter)?S.formatter.call(this):S.text}destroy(){y(this.axis.plotLinesAndBands,this),delete this.axis,w(this)}}return x}),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:I}=s,{distribute:j}=o,{addEvent:C,clamp:p,css:x,discardElement:O,extend:S,fireEvent:_,isArray:N,isNumber:M,isString:b,merge:F,pick:P,splat:L,syncTimeout:m}=u;class B{constructor(A,g){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=A,this.init(A,g)}bodyFormatter(A){return A.map(function(g){const h=g.series.tooltipOptions;return(h[(g.point.formatPrefix||"point")+"Formatter"]||g.point.tooltipFormatter).call(g.point,h[(g.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(A){this.chart.series.forEach(function(g){const h=g&&g.tt;h&&(!h.isActive||A?g.tt=h.destroy():h.isActive=!1)})}defaultFormatter(A){const g=this.points||L(this);let h;return h=[A.tooltipFooterHeaderFormatter(g[0])],h=h.concat(A.bodyFormatter(g)),h.push(A.tooltipFooterHeaderFormatter(g[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(A,g){const h=this.chart,n=h.pointer,l=h.inverted,f=h.plotTop,k=h.plotLeft;let v;if(A=L(A),A[0].series&&A[0].series.yAxis&&!A[0].series.yAxis.options.reversedStacks&&(A=A.slice().reverse()),this.followPointer&&g)typeof g.chartX>"u"&&(g=n.normalize(g)),v=[g.chartX-k,g.chartY-f];else if(A[0].tooltipPos)v=A[0].tooltipPos;else{let G=0,U=0;A.forEach(function(D){const H=D.pos(!0);H&&(G+=H[0],U+=H[1])}),G/=A.length,U/=A.length,this.shared&&A.length>1&&g&&(l?G=g.chartX:U=g.chartY),v=[G-k,U-f]}return v.map(Math.round)}getClassName(A,g,h){const n=this.options,l=A.series,f=l.options;return[n.className,"highcharts-label",h&&"highcharts-tooltip-header",g?"highcharts-tooltip-box":"highcharts-tooltip",!h&&"highcharts-color-"+P(A.colorIndex,l.colorIndex),f&&f.className].filter(b).join(" ")}getLabel(){const A=this,g=this.chart.styledMode,h=this.options,n=this.split&&this.allowShared,l=h.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none");let f,k=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",x(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=k=new G(f,0,0,v,void 0,void 0,k.styledMode)}if(n?this.label=k.g("tooltip"):(this.label=k.label("",0,0,h.shape,void 0,void 0,h.useHTML,void 0,"tooltip").attr({padding:h.padding,r:h.borderRadius}),g||this.label.attr({fill:h.backgroundColor,"stroke-width":h.borderWidth||0}).css(h.style).css({pointerEvents:l})),A.outside){const v=this.label,{xSetter:G,ySetter:U}=v;v.xSetter=function(D){G.call(v,A.distance),f.style.left=D+"px"},v.ySetter=function(D){U.call(v,A.distance),f.style.top=D+"px"}}this.label.attr({zIndex:8}).shadow(h.shadow).add()}return this.label}getPlayingField(){const{body:A,documentElement:g}=y,{chart:h,distance:n,outside:l}=this;return{width:l?Math.max(A.scrollWidth,g.scrollWidth,A.offsetWidth,g.offsetWidth,g.clientWidth)-2*n:h.chartWidth,height:l?Math.max(A.scrollHeight,g.scrollHeight,A.offsetHeight,g.offsetHeight,g.clientHeight):h.chartHeight}}getPosition(A,g,h){const n=this.chart,l=this.distance,f={},k=n.inverted&&h.h||0,v=this.outside,G=this.getPlayingField(),U=G.width,D=G.height,H=n.pointer.getChartPosition(),z=ie=>ie*H.scaleX,W=ie=>ie*H.scaleY,d=ie=>{const K=ie==="x";return[ie,K?U:D,K?A:g].concat(v?[K?z(A):W(g),K?H.left-l+z(h.plotX+n.plotLeft):H.top-l+W(h.plotY+n.plotTop),0,K?U:D]:[K?A:g,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"),Z=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(ie,K,oe,ce,ne,pe,te){const re=v?ie==="y"?W(l):z(l):l,q=(oe-ce)/2,ae=ce<ne-l,se=ne+l+ce<K,he=ne-re-oe+q,fe=ne+re-q;if(ee&&se)f[ie]=fe;else if(!ee&&ae)f[ie]=he;else if(ae)f[ie]=Math.min(te-ce,he-k<0?he:he-k);else if(se)f[ie]=Math.max(pe,fe+k+oe>K?fe:fe+k);else return!1},V=function(ie,K,oe,ce,ne){let pe;return ne<l||ne>K-l?pe=!1:ne<oe/2?f[ie]=1:ne>K-ce/2?f[ie]=K-ce-2:f[ie]=ne-oe/2,pe},X=function(ie){const K=R;R=Z,Z=K,J=ie},Q=function(){E.apply(0,R)!==!1?V.apply(0,Z)===!1&&!J&&(X(!0),Q()):J?f.x=f.y=0:(X(!0),Q())};return(n.inverted||this.len>1)&&X(),Q(),f}hide(A){const g=this;u.clearTimeout(this.hideTimer),A=P(A,this.options.hideDelay),this.isHidden||(this.hideTimer=m(function(){g.getLabel().fadeOut(A&&void 0),g.isHidden=!0},A))}init(A,g){this.chart=A,this.options=g,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=g.split&&!A.inverted&&!A.polar,this.shared=g.shared||this.split,this.outside=P(g.outside,!!(A.scrollablePixelsX||A.scrollablePixelsY))}shouldStickOnContact(A){return!!(!this.followPointer&&this.options.stickOnContact&&(!A||this.chart.pointer.inClass(A.target,"highcharts-tooltip")))}move(A,g,h,n){const l=this,f=l.now,k=l.options.animation!==!1&&!l.isHidden&&(Math.abs(A-f.x)>1||Math.abs(g-f.y)>1),v=l.followPointer||l.len>1;S(f,{x:k?(2*f.x+A)/3:A,y:k?(f.y+g)/2:g,anchorX:v?void 0:k?(2*f.anchorX+h)/3:h,anchorY:v?void 0:k?(f.anchorY+n)/2:n}),l.getLabel().attr(f),l.drawTracker(),k&&(u.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){l&&l.move(A,g,h,n)},32))}refresh(A,g){const h=this,n=this.chart,l=h.options,f=n.pointer,k=L(A),v=k[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=!(!N(A)&&A.series&&A.series.noSharedTooltip),h.followPointer=!h.split&&v.series.tooltipOptions.followPointer;const d=h.getAnchor(A,g),R=d[0],Z=d[1];H&&h.allowShared?(f.applyInactiveState(k),k.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=b(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,k);else{let ee=R,E=Z;if(g&&f.isDirectTouch&&(ee=g.chartX-n.plotLeft,E=g.chartY-n.plotTop),n.polar||Y.options.clip===!1||k.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:Z,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(A,g){const h=this,{chart:n,chart:{chartWidth:l,chartHeight:f,plotHeight:k,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:Z,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 ie=G+W,K=0,oe=k-D;function ce(he){const{isHeader:fe,plotX:ye=0,plotY:me=0,series:_e}=he;let be,Ce;if(fe)be=v+ye,Ce=G+k/2;else{const{xAxis:De,yAxis:Be}=_e;be=De.pos+p(ye,-R,De.len+R),_e.shouldShowTooltip(0,Be.pos-G+me,{ignoreX:!0})&&(Ce=Be.pos+me)}return be=p(be,Y.left-R,Y.right+R),{anchorX:be,anchorY:Ce}}function ne(he,fe,ye,me,_e=!0){let be,Ce;return ye?(be=V?0:oe,Ce=p(he-me/2,Y.left,Y.right-me-(h.outside?X:0))):(be=fe-ie,Ce=_e?he-me-R:he+R,Ce=p(Ce,_e?Ce:Y.left,Y.right)),{x:Ce,y:be}}function pe(he,fe,ye){var me;let _e=he;const{isHeader:be,series:Ce}=fe;if(!_e){const De={padding:Z.padding,r:Z.borderRadius};d||(De.fill=Z.backgroundColor,De["stroke-width"]=(me=Z.borderWidth)!==null&&me!==void 0?me:1),_e=E.label("",0,0,Z[be?"headerShape":"shape"],void 0,void 0,Z.useHTML).addClass(h.getClassName(fe,!0,be)).attr(De).add(ee)}return _e.isActive=!0,_e.attr({text:ye}),d||_e.css(Z.style).attr({stroke:Z.borderColor||fe.color||Ce.color||"#333333"}),_e}b(A)&&(A=[!1,A]);let te=A.slice(0,g.length+1).reduce(function(he,fe,ye){if(fe!==!1&&fe!==""){const me=g[ye-1]||{isHeader:!0,plotX:g[0].plotX,plotY:k,series:{}},_e=me.isHeader,be=_e?h:me.series,Ce=be.tt=pe(be.tt,me,fe.toString()),De=Ce.getBBox(),Be=De.width+Ce.strokeWidth();_e&&(K=De.height,oe+=K,V&&(ie-=K));const{anchorX:Fe,anchorY:Oe}=ce(me);if(typeof Oe=="number"){const Ue=De.height+1,Je=J?J.call(h,Be,Ue,me):ne(Fe,Oe,_e,Be);he.push({align:J?0:void 0,anchorX:Fe,anchorY:Oe,boxWidth:Be,point:me,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,ye=(fe?X:0)+he.anchorX;return ye<Y.left&&ye+he.boxWidth<Y.right?!0:ye<X-Y.left+he.boxWidth&&Y.right-ye>ye})&&(te=te.map(he=>{const{x:fe,y:ye}=ne(he.anchorX,he.anchorY,he.point.isHeader,he.boxWidth,!1);return S(he,{target:ye,x:fe})})),h.cleanSplit(),j(te,oe);const re={left:X,right:X};te.forEach(function(he){const{x:fe,boxWidth:ye,isHeader:me}=he;me||(h.outside&&X+fe<re.left&&(re.left=X+fe),!me&&h.outside&&re.left+ye>re.right&&(re.right=X+fe))}),te.forEach(function(he){const{x:fe,anchorX:ye,anchorY:me,pos:_e,point:{isHeader:be}}=he,Ce={visibility:typeof _e>"u"?"hidden":"inherit",x:fe,y:(_e||0)+ie,anchorX:ye,anchorY:me};if(h.outside&&fe<ye){const De=X-re.left;De>0&&(be||(Ce.x=fe+De,Ce.anchorX=ye+De),be&&(Ce.x=(re.right-re.left)/2,Ce.anchorX=ye+De))}he.tt.attr(Ce)});const{container:q,outside:ae,renderer:se}=h;if(ae&&q&&se){const{width:he,height:fe,x:ye,y:me}=ee.getBBox();se.setSize(he+ye,fe+me,!1),q.style.left=re.left+"px",q.style.top=Q+"px"}I&&ee.attr({opacity:ee.opacity===1?.999:1})}drawTracker(){const A=this;if(!this.shouldStickOnContact()){A.tracker&&(A.tracker=A.tracker.destroy());return}const g=A.chart,h=A.label,n=A.shared?g.hoverPoints:g.hoverPoint;if(!h||!n)return;const l={x:0,y:0,width:0,height:0},f=this.getAnchor(n),k=h.getBBox();f[0]+=g.plotLeft-h.translateX,f[1]+=g.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]),k.width-f[0]):Math.max(Math.abs(f[0]),k.width),l.height=f[1]<0?Math.max(Math.abs(f[1]),k.height-Math.abs(f[1])):Math.max(Math.abs(f[1]),k.height),A.tracker?A.tracker.attr(l):(A.tracker=h.renderer.rect(l).addClass("highcharts-tracker").add(h),g.styledMode||A.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(A){return A.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(A,g){const h=A.series,n=h.tooltipOptions,l=h.xAxis,f=l&&l.dateTime,k={isFooter:g,labelConfig:A};let v=n.xDateFormat,G=n[g?"footerFormat":"headerFormat"];return _(this,"headerFormatter",k,function(U){f&&!v&&M(A.key)&&(v=f.getXDateFormat(A.key,n.dateTimeLabelFormats)),f&&v&&(A.point&&A.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:A,series:h},this.chart)}),k.text}update(A){this.destroy(),this.init(this.chart,F(!0,this.options,A))}updatePosition(A){const{chart:g,distance:h,options:n}=this,l=g.pointer,f=this.getLabel(),{left:k,top:v,scaleX:G,scaleY:U}=l.getChartPosition(),D=(n.positioner||this.getPosition).call(this,f.width,f.height,A);let H=(A.plotX||0)+g.plotLeft,z=(A.plotY||0)+g.plotTop,W;this.outside&&(n.positioner&&(D.x+=k-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)&&(x(this.container,{transform:`scale(${G}, ${U})`}),H*=G,z*=U),H+=k-D.x,z+=v-D.y),this.move(Math.round(D.x),Math.round(D.y||0),H,z)}}return function(T){const A=[];function g(h){u.pushUnique(A,h)&&C(h,"afterInit",function(){const n=this.chart;n.options.tooltip&&(n.tooltip=new T(n,n.options.tooltip))})}T.compose=g}(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:I}=c,{addEvent:j,defined:C,erase:p,extend:x,fireEvent:O,getNestedProperty:S,isArray:_,isFunction:N,isNumber:M,isObject:b,merge:F,objectEach:P,pick:L,syncTimeout:m,removeEvent:B,uniqueKey:T}=u;class A{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 k=f==="dataLabel";h[f]=h[f].animate(k?{x:h[f].startXPos,y:h[f].startYPos,opacity:0}:n)}),l.plural.forEach(function(f){h[f].forEach(function(k){k.element&&k.animate(x({x:h.startXPos},k.startYPos?{x:k.startXPos,y:k.startYPos}:{}))})})}applyOptions(h,n){const l=this,f=l.series,k=f.options.pointValKey||f.pointValKey;return h=A.prototype.optionsToObject.call(this,h),x(l,h),l.options=l.options?x(l.options,h):h,h.group&&delete l.group,h.dataLabels&&delete l.dataLabels,k&&(l.y=A.prototype.getNestedProperty.call(l,k)),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:M(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,k=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),k&&(h.setState(),p(k,h),k.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(k){k&&k.element&&k.destroy()}),delete n[f]})}firePointEvent(h,n,l){const f=this,k=this.series,v=k.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 k,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--;)k=l[v],n[k]&&f.singular.push(k);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?S(h,this.options):this[h]}getZone(){const h=this.series,n=h.zones,l=h.zoneAxis||"y";let f,k=0;for(f=n[k];this[l]>=f.value;)f=n[++k];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=C(this.id)?this.id:T(),this.resolveColor(),h.chart.pointCount++,O(this,"afterInit"),this}isValid(){return this.x!==null&&M(this.y)}optionsToObject(h){const n=this.series,l=n.options.keys,f=l||n.pointArrayMap||["y"],k=f.length;let v={},G,U=0,D=0;if(M(h)||h===null)v[f[0]]=h;else if(_(h))for(!l&&h.length>k&&(G=typeof h[0],G==="string"?v.name=h[0]:G==="number"&&(v.x=h[0]),U++);D<k;)(!l||typeof h[U]<"u")&&(f[D].indexOf(".")>0?A.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:k,xAxis:v,yAxis:G}=f;let U=0,D=0;if(M(l)&&M(n))return h&&(U=v?v.pos:k.plotLeft,D=G?G.pos:k.plotTop),k.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,k,v=n.colorCount,G;delete this.nonZonedColor,h.options.colorByPoint?(l||(k=h.options.colors||h.chart.options.colors,f=k[h.colorCounter],v=k.length),G=h.colorCounter,h.colorCounter++,h.colorCounter===v&&(h.colorCounter=0)):(l||(f=h.color),G=h.colorIndex),this.colorIndex=L(this.options.colorIndex,G),this.color=L(this.options.color,f)}setNestedProperty(h,n,l){return l.split(".").reduce(function(k,v,G,U){const D=U.length-1===G;return k[v]=D?n:b(k[v],!0)?k[v]:{},k[v]},h),h}shouldDraw(){return!this.isNull}tooltipFormatter(h){const n=this.series,l=n.tooltipOptions,f=L(l.valueDecimals,""),k=l.valuePrefix||"",v=l.valueSuffix||"";return n.chart.styledMode&&(h=n.chart.tooltip.styledModeFormat(h)),(n.pointArrayMap||["y"]).forEach(function(G){G="{point."+G,(k||v)&&(h=h.replace(RegExp(G+"}","g"),k+G+"}"+v)),h=h.replace(RegExp(G+"}","g"),G+":,."+f+"f}")}),I(h,{point:this,series:this.series},n.chart)}update(h,n,l,f){const k=this,v=k.series,G=k.graphic,U=v.chart,D=v.options;let H;n=L(n,!0);function z(){k.applyOptions(h);const W=G&&k.hasMockGraphic,d=k.y===null?!W:W;G&&d&&(k.graphic=G.destroy(),delete k.hasMockGraphic),b(h,!0)&&(G&&G.element&&h&&h.marker&&typeof h.marker.symbol<"u"&&(k.graphic=G.destroy()),h&&h.dataLabels&&k.dataLabel&&(k.dataLabel=k.dataLabel.destroy()),k.connector&&(k.connector=k.connector.destroy())),H=k.index,v.updateParallelArrays(k,H),D.data[H]=b(D.data[H],!0)||b(h,!0)?k.options:L(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():k.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,k=f.chart;h=L(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||k.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(k.hoverPoints&&G.options.inactiveOtherPoints?"inactive":""),v.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(h){const n=this,l=n.series,f=l.chart,k=f.pointer;h=h?k.normalize(h):k.getChartCoordinatesFromPoint(n,f.inverted),k.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,k){N(f)&&j(h,k,f)}),this.hasImportedEvents=!0}}setState(h,n){const l=this,f=l.series,k=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,Z,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&&(Z=f.markerAttribs(l,h)),l.graphic&&!l.hasMockGraphic){if(k&&l.graphic.removeClass("highcharts-point-"+k),h&&l.graphic.addClass("highcharts-point-"+h),!W.styledMode){J=f.pointAttribs(l,h),Y=L(W.options.chart.animation,v.animation);const ie=J.opacity;f.options.inactiveOtherPoints&&M(ie)&&((l.dataLabels||[]).forEach(function(K){K&&!K.hasClass("highcharts-data-label-hidden")&&K.animate({opacity:ie},Y)}),l.connector&&l.connector.animate({opacity:ie},Y)),l.graphic.animate(J,Y)}Z&&l.graphic.animate(Z,L(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()),Z&&(ee?ee[n?"animate":"attr"]({x:Z.x,y:Z.y}):E&&(f.stateMarkerGraphic=ee=W.renderer.symbol(E,Z.x,Z.y,Z.width,Z.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-"+L(l.colorIndex,f.colorIndex)+(l.className?" "+l.className:""),visibility:Q,zIndex:-1}),R.point=l,W.styledMode||R.attr(x({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 A}),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:I,css:j,defined:C,extend:p,find:x,fireEvent:O,isNumber:S,isObject:_,objectEach:N,offset:M,pick:b,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(A){T=A.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(A){B.indexOf(A)===-1?A.setState("inactive",!0):A.options.inactiveOtherPoints&&A.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),N(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,A=>{const{chart:g,mouseDownX:h=0,mouseDownY:n=0,zoomHor:l,zoomVert:f}=this,k=A.attrs;let v;k.x=g.plotLeft,k.y=g.plotTop,k.width=l?1:g.plotWidth,k.height=f?1:g.plotHeight,l&&(v=m-h,k.width=Math.abs(v),k.x=(v>0?0:v)+h),f&&(v=B-n,k.height=Math.abs(v),k.y=(v>0?0:v)+n)}),T}drag(m){const B=this.chart,T=B.options.chart,A=B.plotLeft,g=B.plotTop,h=B.plotWidth,n=B.plotHeight,l=this.mouseDownX||0,f=this.mouseDownY||0,k=_(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<A?G=A:G>A+h&&(G=A+h),U<g?U=g:U>g+n&&(U=g+n),this.hasDragged=Math.sqrt(Math.pow(l-G,2)+Math.pow(f-U,2)),this.hasDragged>10)){D=B.isInsidePlot(l-A,f-g,{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&&k&&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,A=this.hasPinched;if(this.selectionMarker){const{x:g,y:h,width:n,height:l}=this.getSelectionBox(this.selectionMarker),f={originalEvent:m,xAxis:[],yAxis:[],x:g,y:h,width:n,height:l};T.mapView,(this.hasDragged||A)&&(T.axes.forEach(function(k){if(k.zoomEnabled&&C(k.min)&&(A||B[{xAxis:"zoomX",yAxis:"zoomY"}[k.coll]])&&S(g)&&S(h)&&S(n)&&S(l)){const v=k.horiz,G=m.type==="touchend"?k.minPixelPadding:0,U=k.toValue((v?g:h)+G),D=k.toValue((v?g+n:h+l)-G);f[k.coll].push({axis:k,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(k){T.zoom(p(k,A?{animation:!1}:null))}):O(T,"selection",f)),S(T.index)&&(this.selectionMarker=this.selectionMarker.destroy()),A&&this.scaleGroups()}T&&S(T.index)&&(j(T.container,{cursor:T._cursor}),T.cancelClick=this.hasDragged>10,T.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}findNearestKDPoint(m,B,T){let A;function g(h,n){const l=h.distX-n.distX,f=h.dist-n.dist,k=(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:k!==0?v=k: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&&(!_(A,!0)||g(A,f)>0)&&(A=f)}),A}getChartCoordinatesFromPoint(m,B){const T=m.series,A=T.xAxis,g=T.yAxis,h=m.shapeArgs;if(A&&g){let n=b(m.clientX,m.plotX),l=m.plotY||0;return m.isNode&&h&&S(h.x)&&S(h.y)&&(n=h.x,l=h.y),B?{chartX:g.len+g.pos-l,chartY:A.len+A.pos-n}:{chartX:n+A.pos,chartY:l+g.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=M(m);this.chartPosition={left:B.left,top:B.top,scaleX:1,scaleY:1};const T=m.offsetWidth,A=m.offsetHeight;return T>2&&A>2&&(this.chartPosition.scaleX=B.width/T,this.chartPosition.scaleY=B.height/A),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,A,g,h){const n=[],l=!!(A&&m),f=function(H){return H.visible&&!(!g&&H.directTouch)&&b(H.options.enableMouseTracking,!0)};let k=B,v,G={chartX:h?h.chartX:void 0,chartY:h?h.chartY:void 0,shared:g};O(this,"beforeGetHoverData",G),v=k&&!k.stickyTracking?[k]:T.filter(H=>H.stickyTracking&&(G.filter||f)(H));const D=l||!h?m:this.findNearestKDPoint(v,g,h);return k=D&&D.series,D&&(g&&!k.noSharedTooltip?(v=T.filter(function(H){return G.filter?G.filter(H):f(H)&&!H.noSharedTooltip}),v.forEach(function(H){let z=x(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:k,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,A=B.hoverSeries;this.isDirectTouch=!1,A&&T&&!A.stickyTracking&&!this.inClass(T,"highcharts-tooltip")&&(!this.inClass(T,"highcharts-series-"+A.index)||!this.inClass(T,"highcharts-tracker"))&&A.onMouseOut()}inClass(m,B){let T=m,A;for(;T;){if(A=I(T,"class"),A){if(A.indexOf(B)!==-1)return!0;if(A.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,A=T?T.length?T.item(0):b(T.changedTouches,m.changedTouches)[0]:m;B||(B=this.getChartPosition());let g=A.pageX-B.left,h=A.pageY-B.top;return g/=B.scaleX,h/=B.scaleY,p(m,{chartX:Math.round(g),chartY:Math.round(h)})}onContainerClick(m){const B=this.chart,T=B.hoverPoint,A=this.normalize(m),g=B.plotLeft,h=B.plotTop;B.cancelClick||(T&&this.inClass(A.target,"highcharts-tracker")?(O(T.series,"click",p(A,{point:T})),B.hoverPoint&&T.firePointEvent("click",A)):(p(A,this.getCoordinates(A)),B.isInsidePlot(A.chartX-g,A.chartY-h,{visiblePlotOnly:!0})&&O(B,"click",A)))}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[b(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,A=this.normalize(m);this.setHoverChartIndex(),(B.mouseIsDown==="mousedown"||this.touchSelect(A))&&this.drag(A),!B.openMenu&&(this.inClass(A.target,"highcharts-tracker")||B.isInsidePlot(A.chartX-B.plotLeft,A.chartY-B.plotTop,{visiblePlotOnly:!0}))&&!(T&&T.shouldStickOnContact(A))&&(this.inClass(A.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(A))}onDocumentTouchEnd(m){const B=u[b(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,A=this.chartPosition,g=this.normalize(m,A);A&&!B.isInsidePlot(g.chartX-B.plotLeft,g.chartY-B.plotTop,{visiblePlotOnly:!0})&&!(T&&T.shouldStickOnContact(g))&&!this.inClass(g.target,"highcharts-tracker")&&this.reset()}onDocumentMouseUp(m){const B=u[b(P.hoverChartIndex,-1)];B&&B.pointer.drop(m)}pinch(m){const B=this,T=B.chart,A=B.pinchDown,g=m.touches||[],h=g.length,n=B.lastValidTouch,l=B.hasZoom,f={},k=h===1&&(B.inClass(m.target,"highcharts-tracker")&&T.runTrackerClick||B.runChartClick),v={},G=B.chart.tooltip,U=h===1&&b(G&&G.options.followTouchMove,!0);let D=B.selectionMarker;h>1?B.initiated=!0:U&&(B.initiated=!1),l&&B.initiated&&!k&&m.cancelable!==!1&&m.preventDefault(),[].map.call(g,function(H){return B.normalize(H)}),m.type==="touchstart"?([].forEach.call(g,function(H,z){A[z]={chartX:H.chartX,chartY:H.chartY}}),n.x=[A[0].chartX,A[1]&&A[1].chartX],n.y=[A[0].chartY,A[1]&&A[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(b(H.options.min,H.dataMin),H.dataMin)),R=H.toPixels(Math.max(b(H.options.max,H.dataMax),H.dataMax)),Z=Math.min(d,R),J=Math.max(d,R);z.min=Math.min(H.pos,Z-W),z.max=Math.max(H.pos+H.len,J+W)}}),B.res=!0):U?this.runPointActions(B.normalize(m)):A.length&&(O(T,"touchpan",{originalEvent:m},()=>{D||(B.selectionMarker=D=p({destroy:w,touch:!0},T.plotBox)),B.pinchTranslate(A,g,f,D,v,n),B.hasPinched=l,B.scaleGroups(f,v)}),B.res&&(B.res=!1,this.reset(!1,0)))}pinchTranslate(m,B,T,A,g,h){this.zoomHor&&this.pinchTranslateDirection(!0,m,B,T,A,g,h),this.zoomVert&&this.pinchTranslateDirection(!1,m,B,T,A,g,h)}pinchTranslateDirection(m,B,T,A,g,h,n,l){const f=this.chart,k=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],Z=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;Z(),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[k][0]),typeof X=="number"&&(X-=.8*(X-n[k][1])),Z()):n[k]=[V,X],H||(h[k]=ee-D,h[U]=J);const ie=H?m?"scaleY":"scaleX":"scale"+v,K=H?1/E:E;g[U]=J,g[k]=Y,A[ie]=E,A["translate"+v]=K*D+(V-K*d)}reset(m,B){const T=this,A=T.chart,g=A.hoverSeries,h=A.hoverPoint,n=A.hoverPoints,l=A.tooltip,f=l&&l.shared?n:h;m&&f&&F(f).forEach(function(k){k.series.isCartesian&&typeof k.plotX>"u"&&(m=!1)}),m?l&&f&&F(f).length&&(l.refresh(f),l.shared&&n?n.forEach(function(k){k.setState(k.state,!0),k.series.isCartesian&&(k.series.xAxis.crosshair&&k.series.xAxis.drawCrosshair(null,k),k.series.yAxis.crosshair&&k.series.yAxis.drawCrosshair(null,k))}):h&&(h.setState(h.state,!0),A.axes.forEach(function(k){k.crosshair&&h.series[k.coll]===k&&k.drawCrosshair(null,h)}))):(h&&h.onMouseOut(),n&&n.forEach(function(k){k.setState()}),g&&g.onMouseOut(),l&&l.hide(B),T.unDocMouseMove&&(T.unDocMouseMove=T.unDocMouseMove()),A.axes.forEach(function(k){k.hideCrosshair()}),T.hoverX=A.hoverPoints=A.hoverPoint=null)}runPointActions(m,B,T){const A=this,g=A.chart,h=g.series,n=g.tooltip&&g.tooltip.options.enabled?g.tooltip:void 0,l=n?n.shared:!1;let f=B||g.hoverPoint,k=f&&f.series||g.hoverSeries;const v=(!m||m.type!=="touchmove")&&(!!B||k&&k.directTouch&&A.isDirectTouch),G=this.getHoverData(f,k,h,v,l,m);f=G.hoverPoint,k=G.hoverSeries;const U=G.hoverPoints,D=k&&k.tooltipOptions.followPointer&&!k.tooltipOptions.split,H=l&&k&&!k.noSharedTooltip;if(f&&(T||f!==g.hoverPoint||n&&n.isHidden)){if((g.hoverPoints||[]).forEach(function(z){U.indexOf(z)===-1&&z.setState()}),g.hoverSeries!==k&&k.onMouseOver(),A.applyInactiveState(U),(U||[]).forEach(function(z){z.setState("hover")}),g.hoverPoint&&g.hoverPoint.firePointEvent("mouseOut"),!f.series)return;g.hoverPoints=U,g.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);g.isInsidePlot(z[0],z[1],{visiblePlotOnly:!0})&&n.updatePosition({plotX:z[0],plotY:z[1]})}A.unDocMouseMove||(A.unDocMouseMove=y(g.container.ownerDocument,"mousemove",function(z){const W=u[P.hoverChartIndex];W&&W.pointer.onDocumentMouseMove(z)}),A.eventsToUnbind.push(A.unDocMouseMove)),g.axes.forEach(function(W){const d=b((W.crosshair||{}).snap,!0);let R;d&&(R=g.hoverPoint,(!R||R.series[W.coll]!==W)&&(R=x(U,Z=>Z.series&&Z.series[W.coll]===W))),R||!d?W.drawCrosshair(m,R):W.hideCrosshair()})}scaleGroups(m,B){const T=this.chart;T.series.forEach(function(A){const g=m||A.getPlotBox();A.group&&(A.xAxis&&A.xAxis.zoomEnabled||T.mapView)&&(A.group.attr(g),A.markerGroup&&(A.markerGroup.attr(g),A.markerGroup.clip(B?T.clipRect:null)),A.dataLabelsGroup&&A.dataLabelsGroup.attr(g))}),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[b(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 A,g,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"&&(g=this.pinchDown,A=g[0]?Math.sqrt(Math.pow(g[0].chartX-m.chartX,2)+Math.pow(g[0].chartY-m.chartY,2))>=4:!1),b(A,!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 A=B.zooming.type||"",g,h;/touch/.test(m.type)&&(A=b(B.zooming.pinchType,A)),this.zoomX=g=/x/.test(A),this.zoomY=h=/y/.test(A),this.zoomHor=g&&!T||h&&T,this.zoomVert=h&&!T||g&&T,this.hasZoom=g||h}}return function(L){const m=[],B=[];function T(g){o.pushUnique(B,g)&&y(g,"beforeRender",function(){this.pointer=new L(this,this.options)})}L.compose=T;function A(){for(let g=0,h=m.length;g<h;++g)m[g]();m.length=0}L.dissolve=A}(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:I}=i,{format:j}=s,{marginNames:C}=o,{distribute:p}=u,{addEvent:x,createElement:O,css:S,defined:_,discardElement:N,find:M,fireEvent:b,isNumber:F,merge:P,pick:L,relativeLength:m,stableSort:B,syncTimeout:T}=w;class A{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(),x(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),x(this.chart,"render",()=>{this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(h){const n=L(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=L(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,L(n,!0)&&l.redraw(),b(this,"afterUpdate")}colorizeItem(h,n){const{group:l,label:f,line:k,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)),k==null||k.attr({stroke:D}),v&&(H&&v.isMarker&&(z=h.pointAttribs(),n||(z.stroke=z.fill=U)),v.attr(z))}b(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:k=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:k},z=()=>{b(this,"afterPositionItem",{item:h})};l[_(l.translateY)?"animate":"attr"](H,void 0,z)}D&&(D.x=f,D.y=k)}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&&N(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(k){const v=k.checkbox;let G;v&&(G=f+l+v.y+(this.scrollOffset||0)+3,S(v,{left:h.translateX+k.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,k=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(),k=f.height,this.offsetWidth=f.width,this.contentGroup.attr({translateY:k})),this.titleHeight=k}setText(h){const n=this.options;h.legendItem.label.attr({text:n.labelFormat?j(n.labelFormat,h,this.chart):n.labelFormatter.call(h)})}renderItem(h){const n=this,l=h.legendItem=h.legendItem||{},f=n.chart,k=f.renderer,v=n.options,G=v.layout==="horizontal",U=n.symbolWidth,D=v.symbolPadding||0,H=n.itemStyle,z=n.itemHiddenStyle,W=G?L(v.itemDistance,20):0,d=!v.rtl,R=!h.series,Z=!R&&h.series.drawLegendSymbol?h.series:h,J=Z.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=k.g("legend-item").addClass("highcharts-"+Z.type+"-series highcharts-color-"+h.colorIndex+(E?" "+E:"")+(R?" highcharts-series-"+h.index:"")).attr({zIndex:1}).add(n.scrollGroup),l.label=V=k.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=k.fontMetrics(V),n.baseline=n.fontMetrics.f+3+n.itemMarginTop,V.attr("y",n.baseline),n.symbolHeight=L(v.symbolHeight,n.fontMetrics.f),v.squareSymbol&&(n.symbolWidth=L(v.symbolWidth,Math.max(n.symbolHeight,16)),X=n.symbolWidth+D+W+(Y?20:0),d&&V.attr("x",n.symbolWidth+D))),Z.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(),ie=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>ie*1.5?Q.height:ie))}layoutItem(h){const n=this.options,l=this.padding,f=n.layout==="horizontal",k=h.itemHeight,v=this.itemMarginBottom,G=this.itemMarginTop,U=f?L(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(k,this.lastLineHeight),z.x=this.itemX,z.y=this.itemY,f?this.itemX+=H:(this.itemY+=G+k+v,this.lastLineHeight=k),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&&L(l.showInLegend,_(l.linkedTo)?!1:void 0,!0)&&(h=h.concat((n.legendItem||{}).labels||(l.legendType==="point"?n.data:n)))}),b(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,k=this.getAlignment();k&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(v,G){v.test(k)&&!_(h[G])&&(l[C[G]]=Math.max(l[C[G]],l.legend[(G+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][G]*f[G%2?"x":"y"]+L(f.margin,12)+n[G]+(l.titleOffset[G]||0)))})}proximatePositions(){const h=this.chart,n=[],l=this.options.align==="left";this.allItems.forEach(function(k){let v,G,U=l,D,H;k.yAxis&&(k.xAxis.options.reversed&&(U=!U),k.points&&(v=M(U?k.points:k.points.slice(0).reverse(),function(z){return F(z.plotY)})),G=this.itemMarginTop+k.legendItem.label.getBBox().height+this.itemMarginBottom,H=k.yAxis.top-h.plotTop,k.visible?(D=v?v.plotY:k.yAxis.height,D+=H-.3*G):D=H+k.yAxis.height,n.push({target:D,size:G,item:k}))},this);let f;for(const k of p(n,h.plotHeight))f=k.item.legendItem||{},F(k.pos)&&(f.y=h.plotTop-h.spacing[0]+k.pos)}render(){const h=this,n=h.chart,l=n.renderer,f=h.options,k=h.padding,v=h.getAllItems();let G,U,D,H=h.group,z,W=h.box;h.itemX=k,h.itemY=h.initialItemY,h.offsetWidth=0,h.lastItemY=0,h.widthOption=m(f.width,n.spacingBox.width-k),z=n.spacingBox.width-2*k-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)+k,D=h.lastItemY+h.lastLineHeight+h.titleHeight,D=h.handleOverflow(D),D+=k,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(),b(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,k=this.options,v=k.y,G=k.verticalAlign==="top",U=this.padding,D=k.maxHeight,H=k.navigation,z=L(H.animation,!0),W=H.arrowSize||12,d=this.pages,R=this.allItems,Z=function(ie){typeof ie=="number"?Q.attr({height:ie}):Q&&(n.clipRect=Q.destroy(),n.contentGroup.clip()),n.contentGroup.div&&(n.contentGroup.div.style.clip=ie?"rect("+U+"px,9999px,"+(U+ie)+"px,0)":"auto")},J=function(ie){return n[ie]=f.circle(0,0,W*1.3).translate(W/2,W/2).add(X),l.styledMode||n[ie].attr("fill","rgba(0,0,0,0.0001)"),n[ie]};let Y,ee,E,V=l.spacingBox.height+(G?-v:v)-U,X=this.nav,Q=this.clipRect;return k.layout==="horizontal"&&k.verticalAlign!=="middle"&&!k.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=L(this.currentPage,1),this.fullHeight=h,R.forEach((ie,K)=>{E=ie.legendItem||{};const oe=E.y||0,ce=Math.round(E.label.getBBox().height);let ne=d.length;(!ne||oe-d[ne-1]>Y&&(ee||oe)!==d[ne-1])&&(d.push(ee||oe),ne++),E.pageIx=ne-1,ee&&((R[K-1].legendItem||{}).pageIx=ne-1),K===R.length-1&&oe+ce-d[ne-1]>Y&&oe>d[ne-1]&&(d.push(oe),E.pageIx=ne),oe!==ee&&(ee=oe)}),Q||(Q=n.clipRect=f.clipRect(0,U-2,9999,0),n.contentGroup.clip(Q)),Z(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&&(Z(),this.nav=X.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),h}scroll(h,n){const l=this.chart,f=this.pages,k=f.length,v=this.clipHeight,G=this.options.navigation,U=this.pager,D=this.padding;let H=this.currentPage+h;if(H>k&&(H=k),H>0){typeof n<"u"&&I(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+"/"+k}),[this.down,this.downTracker].forEach(function(W){W.attr({x:18+this.pager.getBBox().width,class:H===k?"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===k?G.inactiveColor:G.activeColor}),this.downTracker.css({cursor:H===k?"default":"pointer"})),this.scrollOffset=-f[H-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=H,this.positionCheckboxes();const z=y(L(n,l.renderer.globalAnimation,!0));T(()=>{b(this,"afterScroll",{currentPage:H})},z.duration)}}setItemEvents(h,n,l){const f=this,k=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,k.symbol]:[k.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",Z=function(){h.setVisible&&h.setVisible(),z(h.visible?"inactive":"")};v.removeClass(U),d={browserEvent:d},h.firePointEvent?h.firePointEvent(R,d,Z):b(h,R,d,Z)})}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),x(h.checkbox,"click",function(l){const f=l.target;b(h.series||h,"checkboxClick",{checked:f.checked,item:h},function(){h.select()})})}}return function(g){const h=[];function n(l){w.pushUnique(h,l)&&x(l,"beforeMargins",function(){this.legend=new g(this,this.options.legend)})}g.compose=n}(A||(A={})),A}),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(j,C){const p=this.legendItem=this.legendItem||{},x=this.options,O=j.symbolWidth,S=j.symbolHeight,_=S/2,N=this.chart.renderer,M=p.group,b=j.baseline-Math.round(j.fontMetrics.b*.3);let F={},P,L=x.marker,m=0;if(this.chart.styledMode||(F={"stroke-width":Math.min(x.lineWidth||0,24)},x.dashStyle?F.dashstyle=x.dashStyle:x.linecap!=="square"&&(F["stroke-linecap"]="round")),p.line=N.path().addClass("highcharts-graph").attr(F).add(M),F["stroke-linecap"]&&(m=Math.min(p.line.strokeWidth(),O)/2),O&&p.line.attr({d:[["M",m,b],["L",O-m,b]]}),L&&L.enabled!==!1&&O){let B=Math.min(c(L.radius,_),_);this.symbol.indexOf("url")===0&&(L=o(L,{width:S,height:S}),B=0),p.symbol=P=N.symbol(this.symbol,O/2-B,b-B,2*B,2*B,s({context:"legend"},L)).addClass("highcharts-point").add(M),P.isMarker=!0}}w.lineMarker=y;function I(j,C){const p=C.legendItem||{},x=j.options,O=j.symbolHeight,S=x.squareSymbol,_=S?O:j.symbolWidth;p.symbol=this.chart.renderer.rect(S?(j.symbolWidth-O)/2:0,j.baseline-O+1,_,O,c(j.options.symbolRadius,O/2)).addClass("highcharts-point").attr({zIndex:3}).add(p.group)}w.rectangle=I}(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 I;return function(j){j.seriesTypes=i.seriesTypes;function C(x,O){const S=u.plotOptions||{},_=O.defaultOptions,N=O.prototype;N.type=x,N.pointClass||(N.pointClass=o),_&&(S[x]=_),j.seriesTypes[x]=O}j.registerSeriesType=C;function p(x,O,S,_,N){const M=u.plotOptions||{};return O=O||"",M[x]=y(M[O],S),C(x,w(j.seriesTypes[O]||function(){},_)),j.seriesTypes[x].prototype.type=x,N&&(j.seriesTypes[x].prototype.pointClass=w(o,N)),j.seriesTypes[x]}j.seriesType=p}(I||(I={})),I}),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,I,j,C){const{animObject:p,setAnimation:x}=i,{defaultOptions:O}=s,{registerEventOptions:S}=o,{hasTouch:_,svg:N,win:M}=c,{seriesTypes:b}=I,{addEvent:F,arrayMax:P,arrayMin:L,clamp:m,correctFloat:B,defined:T,diffObjects:A,erase:g,error:h,extend:n,find:l,fireEvent:f,getClosestDistance:k,getNestedProperty:v,insertItem:G,isArray:U,isNumber:D,isString:H,merge:z,objectEach:W,pick:d,removeEvent:R,splat:Z,syncTimeout:J}=C;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 ie=X.options;X.linkedSeries=[],X.bindAxes(),n(X,{name:ie.name,state:"",visible:ie.visible!==!1,selected:ie.selected===!0}),S(this,ie);const K=ie.events;(K&&K.click||ie.point&&ie.point.events&&ie.point.events.click||ie.allowPointSelect)&&(E.runTrackerClick=!0),X.getColor(),X.getSymbol(),X.parallelArrays.forEach(function(ce){X[ce+"Data"]||(X[ce+"Data"]=[])}),X.isCartesian&&(E.hasCartesianSeries=!0);let oe;Q.length&&(oe=Q[Q.length-1]),X._i=d(oe&&oe._i,-1)+1,X.opacity=X.options.opacity,E.orderItems("series",G(this,Q)),ie.dataSorting&&ie.dataSorting.enabled?X.setDataSortingOptions():!X.points&&!X.data&&X.setData(ie.data,!1),f(this,"afterInit")}is(E){return b[E]&&this instanceof b[E]}bindAxes(){const E=this,V=E.options,X=E.chart;let Q;f(this,"bindAxes",null,function(){(E.axisTypes||[]).forEach(function(ie){X[ie].forEach(function(K){Q=K.options,(d(V[ie],0)===K.index||typeof V[ie]<"u"&&V[ie]===Q.id)&&(G(E,K.series),E[ie]=K,K.isDirty=!0)}),!E[ie]&&E.optionalAxis!==ie&&h(18,!0,X)})}),f(this,"afterBindAxes")}updateParallelArrays(E,V,X){const Q=E.series,ie=D(V)?function(K){const oe=K==="y"&&Q.toYData?Q.toYData(E):E[K];Q[K+"Data"][V]=oe}:function(K){Array.prototype[V].apply(Q[K+"Data"],X)};Q.parallelArrays.forEach(ie)}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,ie=this.chart.time;let K=this.xIncrement,oe,ce;return K=d(K,V.pointStart,0),this.pointInterval=ce=d(this.pointInterval,V.pointInterval,1),Q&&D(E)&&(ce*=E),X&&(oe=new ie.Date(K),X==="day"?ie.set("Date",oe,ie.get("Date",oe)+ce):X==="month"?ie.set("Month",oe,ie.get("Month",oe)+ce):X==="year"&&ie.set("FullYear",oe,ie.get("FullYear",oe)+ce),ce=oe.getTime()-K),Q&&D(E)?K+ce:(this.xIncrement=K+ce,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,ie=Q.options,K=ie.plotOptions,oe=Q.userOptions||{},ce=z(E),ne=Q.styledMode,pe={plotOptions:K,userOptions:ce};let te;f(this,"setOptions",pe);const re=pe.plotOptions[this.type],q=oe.plotOptions||{},ae=q.series||{},se=O.plotOptions[this.type]||{},he=q[this.type]||{};this.userOptions=pe.userOptions;const fe=z(re,K.series,he,ce);this.tooltipOptions=z(O.tooltip,(V=O.plotOptions.series)===null||V===void 0?void 0:V.tooltip,se==null?void 0:se.tooltip,Q.userOptions.tooltip,(X=q.series)===null||X===void 0?void 0:X.tooltip,he.tooltip,ce.tooltip),this.stickyTracking=d(ce.stickyTracking,he.stickyTracking,ae.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:fe.stickyTracking),re.marker===null&&delete fe.marker,this.zoneAxis=fe.zoneAxis;const ye=this.zones=(fe.zones||[]).slice();return(fe.negativeColor||fe.negativeFillColor)&&!fe.zones&&(te={value:fe[this.zoneAxis+"Threshold"]||fe.threshold||0,className:"highcharts-negative"},ne||(te.color=fe.negativeColor,te.fillColor=fe.negativeFillColor),ye.push(te)),ye.length&&T(ye[ye.length-1].value)&&ye.push(ne?{}:{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,ie=`${E}Index`,K=`${E}Counter`,oe=(X==null?void 0:X.length)||Q.options.chart.colorCount;let ce,ne;V||(ne=d(E==="color"?this.options.colorIndex:void 0,this[ie]),T(ne)?ce=ne:(Q.series.length||(Q[K]=0),ce=Q[K]%oe,Q[K]+=1),X&&(V=X[ce])),typeof ce<"u"&&(this[ie]=ce),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,ie=this.points,K=this.options.dataSorting;let oe,ce,ne;if(X){const pe=this.chart.get(X);pe instanceof w&&(oe=pe)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let pe=te=>!te.touched&&te.index===E.index;if(K&&K.matchByName?pe=te=>!te.touched&&te.name===E.name:this.options.relativeXValue&&(pe=te=>!te.touched&&te.options.x===E.x),oe=l(ie,pe),!oe)return}return oe&&(ne=oe&&oe.index,typeof ne<"u"&&(ce=!0)),typeof ne>"u"&&D(Q)&&(ne=this.xData.indexOf(Q,V)),ne!==-1&&typeof ne<"u"&&this.cropped&&(ne=ne>=this.cropStart?ne-this.cropStart:ne),!ce&&D(ne)&&ie[ne]&&ie[ne].touched&&(ne=void 0),ne}updateData(E,V){const X=this.options,Q=X.dataSorting,ie=this.points,K=[],oe=this.requireSorting,ce=E.length===ie.length;let ne,pe,te,re,q=!0;if(this.xIncrement=null,E.forEach(function(ae,se){const he=T(ae)&&this.pointClass.prototype.optionsToObject.call({series:this},ae)||{};let fe;const ye=he.x;he.id||D(ye)?(fe=this.findPointIndex(he,re),fe===-1||typeof fe>"u"?K.push(ae):ie[fe]&&ae!==X.data[fe]?(ie[fe].update(ae,!1,null,!1),ie[fe].touched=!0,oe&&(re=fe+1)):ie[fe]&&(ie[fe].touched=!0),(!ce||se!==fe||Q&&Q.enabled||this.hasDerivedData)&&(ne=!0)):K.push(ae)},this),ne)for(pe=ie.length;pe--;)te=ie[pe],te&&!te.touched&&te.remove&&te.remove(!1,V);else ce&&(!Q||!Q.enabled)?(E.forEach(function(ae,se){ae!==ie[se].y&&!ie[se].destroyed&&ie[se].update(ae,!1,null,!1)}),K.length=0):q=!1;return ie.forEach(function(ae){ae&&(ae.touched=!1)}),q?(K.forEach(function(ae){this.addPoint(ae,!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 ie;const K=this,oe=K.points,ce=oe&&oe.length||0,ne=K.options,pe=K.chart,te=ne.dataSorting,re=K.xAxis,q=ne.turboThreshold,ae=this.xData,se=this.yData,he=K.pointArrayMap,fe=he&&he.length,ye=ne.keys;let me,_e,be,Ce=0,De=1,Be=null,Fe;pe.options.chart.allowMutatingData||(ne.data&&delete K.options.data,K.userOptions.data&&delete K.userOptions.data,Fe=z(!0,E)),E=Fe||E||[];const Oe=E.length;if(te&&te.enabled&&(E=this.sortData(E)),pe.options.chart.allowMutatingData&&Q!==!1&&Oe&&ce&&!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}),q&&Oe>q)if(Be=K.getFirstValidPoint(E),D(Be))for(me=0;me<Oe;me++)ae[me]=this.autoIncrement(),se[me]=E[me];else if(U(Be))if(fe)if(Be.length===fe)for(me=0;me<Oe;me++)ae[me]=this.autoIncrement(),se[me]=E[me];else for(me=0;me<Oe;me++)_e=E[me],ae[me]=_e[0],se[me]=_e.slice(1,fe+1);else if(ye&&(Ce=ye.indexOf("x"),De=ye.indexOf("y"),Ce=Ce>=0?Ce:0,De=De>=0?De:1),Be.length===1&&(De=0),Ce===De)for(me=0;me<Oe;me++)ae[me]=this.autoIncrement(),se[me]=E[me][De];else for(me=0;me<Oe;me++)_e=E[me],ae[me]=_e[Ce],se[me]=_e[De];else h(12,!1,pe);else for(me=0;me<Oe;me++)_e={series:K},K.pointClass.prototype.applyOptions.apply(_e,[E[me]]),K.updateParallelArrays(_e,me);for(se&&H(se[0])&&h(14,!0,pe),K.data=[],K.options.data=K.userOptions.data=E,me=ce;me--;)(ie=oe[me])===null||ie===void 0||ie.destroy();re&&(re.minRange=re.userMinRange),K.isDirty=pe.isDirtyBox=!0,K.isDirtyData=!!oe,X=!1}ne.legendType==="point"&&(this.processData(),this.generatePoints()),V&&pe.redraw(X)}sortData(E){const V=this,X=V.options,Q=X.dataSorting,ie=Q.sortKey||"y",K=function(ce,ne){return T(ne)&&ce.pointClass.prototype.optionsToObject.call({series:ce},ne)||{}};return E.forEach(function(ce,ne){E[ne]=K(V,ce),E[ne].index=ne},this),E.concat().sort((ce,ne)=>{const pe=v(ie,ce),te=v(ie,ne);return te<pe?-1:te>pe?1:0}).forEach(function(ce,ne){ce.x=ne},this),V.linkedSeries&&V.linkedSeries.forEach(function(ce){const ne=ce.options,pe=ne.data;(!ne.dataSorting||!ne.dataSorting.enabled)&&pe&&(pe.forEach(function(te,re){pe[re]=K(ce,te),E[re]&&(pe[re].x=E[re].x,pe[re].index=re)}),ce.setData(pe,!1))}),E}getProcessedData(E){const V=this,X=V.xAxis,Q=V.options,ie=Q.cropThreshold,K=E||V.getExtremesFromAll||Q.getExtremesFromAll,oe=X==null?void 0:X.logarithmic,ce=V.isCartesian;let ne,pe,te=0,re,q,ae,se=V.xData,he=V.yData,fe=!1;const ye=se.length;X&&(re=X.getExtremes(),q=re.min,ae=re.max,fe=!!(X.categories&&!X.names.length)),ce&&V.sorted&&!K&&(!ie||ye>ie||V.forceCrop)&&(se[ye-1]<q||se[0]>ae?(se=[],he=[]):V.yData&&(se[0]<q||se[ye-1]>ae)&&(ne=this.cropData(V.xData,V.yData,q,ae),se=ne.xData,he=ne.yData,te=ne.start,pe=!0));const me=k([oe?se.map(oe.log2lin):se],()=>V.requireSorting&&!fe&&h(15,!1,V.chart));return{xData:se,yData:he,cropped:pe,cropStart:te,closestPointRange:me}}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,ie){const K=E.length;let oe,ce,ne=0,pe=K;for(ie=d(ie,this.cropShoulder),oe=0;oe<K;oe++)if(E[oe]>=X){ne=Math.max(0,oe-ie);break}for(ce=oe;ce<K;ce++)if(E[ce]>Q){pe=ce+ie;break}return{xData:E.slice(ne,pe),yData:V.slice(ne,pe),start:ne,end:pe}}generatePoints(){const E=this,V=E.options,X=E.processedData||V.data,Q=E.processedXData,ie=E.processedYData,K=E.pointClass,oe=Q.length,ce=E.cropStart||0,ne=E.hasGroupedData,pe=V.keys,te=[],re=V.dataGrouping&&V.dataGrouping.groupAll?ce:0;let q,ae,se,he,fe=E.data;if(!fe&&!ne){const ye=[];ye.length=X.length,fe=E.data=ye}for(pe&&ne&&(E.options.keys=!1),he=0;he<oe;he++)ae=ce+he,ne?(se=new K().init(E,[Q[he]].concat(Z(ie[he]))),se.dataGroup=E.groupMap[re+he],se.dataGroup.options&&(se.options=se.dataGroup.options,n(se,se.dataGroup.options),delete se.dataLabels)):(se=fe[ae],!se&&typeof X[ae]<"u"&&(fe[ae]=se=new K().init(E,X[ae],Q[he]))),se&&(se.index=ne?re+he:ae,te[he]=se);if(E.options.keys=pe,fe&&(oe!==(q=fe.length)||ne))for(he=0;he<q;he++)he===ce&&!ne&&(he+=oe),fe[he]&&(fe[he].destroyElements(),fe[he].plotX=void 0);E.data=fe,E.points=te,f(this,"afterGeneratePoints")}getXExtremes(E){return{min:L(E),max:P(E)}}getExtremes(E,V){const X=this.xAxis,Q=this.yAxis,ie=this.processedXData||this.xData,K=[],oe=this.requireSorting?this.cropShoulder:0,ce=Q?Q.positiveValuesOnly:!1;let ne,pe,te,re,q,ae,se,he=0,fe=0,ye=0;E=E||this.stackedYData||this.processedYData||[];const me=E.length;for(X&&(ne=X.getExtremes(),he=ne.min,fe=ne.max),ae=0;ae<me;ae++)if(re=ie[ae],q=E[ae],pe=(D(q)||U(q))&&(q.length||q>0||!ce),te=V||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!X||(ie[ae+oe]||re)>=he&&(ie[ae-oe]||re)<=fe,pe&&te)if(se=q.length,se)for(;se--;)D(q[se])&&(K[ye++]=q[se]);else K[ye++]=q;const _e={activeYData:K,dataMin:L(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,ie=V.xAxis,K=ie.categories,oe=V.enabledDataSorting,ce=V.yAxis,ne=V.points,pe=ne.length,te=V.pointPlacementToXValue(),re=!!te,q=X.threshold,ae=X.startFromThreshold?q:0;let se,he,fe,ye,me=Number.MAX_VALUE;function _e(be){return m(be,-1e5,1e5)}for(se=0;se<pe;se++){const be=ne[se],Ce=be.x;let De,Be,Fe=be.y,Oe=be.low;const Ue=Q&&((E=ce.stacking)===null||E===void 0?void 0:E.stacks[(V.negStacks&&Fe<(ae?0:q)?"-":"")+V.stackKey]);he=ie.translate(Ce,!1,!1,!1,!0,te),be.plotX=D(he)?B(_e(he)):void 0,Q&&V.visible&&Ue&&Ue[Ce]&&(ye=V.getStackIndicator(ye,Ce,V.index),!be.isNull&&ye.key&&(De=Ue[Ce],Be=De.points[ye.key]),De&&U(Be)&&(Oe=Be[0],Fe=Be[1],Oe===ae&&ye.key===Ue[Ce].base&&(Oe=d(D(q)?q:ce.min)),ce.positiveValuesOnly&&T(Oe)&&Oe<=0&&(Oe=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=Fe,V.irregularWidths||De.setOffset(V.pointXOffset||0,V.barW||0,void 0,void 0,void 0,V.xAxis))),be.yBottom=T(Oe)?_e(ce.translate(Oe,!1,!0,!1,!0)):void 0,V.dataModify&&(Fe=V.dataModify.modifyValue(Fe,se));let Je;D(Fe)&&be.plotX!==void 0&&(Je=ce.translate(Fe,!1,!0,!1,!0),Je=D(Je)?_e(Je):void 0),be.plotY=Je,be.isInside=this.isPointInside(be),be.clientX=re?B(ie.translate(Ce,!1,!1,!1,!0,te)):he,be.negative=(be.y||0)<(q||0),be.category=d(K&&K[be.x],be.x),!be.isNull&&be.visible!==!1&&(typeof fe<"u"&&(me=Math.min(me,Math.abs(he-fe))),fe=he),be.zone=this.zones.length?be.getZone():void 0,!be.graphic&&V.group&&oe&&(be.isNew=!0)}V.closestPointRangePx=me,f(this,"afterTranslate")}getValidPoints(E,V,X){const Q=this.chart;return(E||this.points||[]).filter(function(ie){const{plotX:K,plotY:oe}=ie;return!X&&(ie.isNull||!D(oe))||V&&!Q.isInsidePlot(K,oe,{inverted:Q.inverted})?!1:ie.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,ie=E.renderer,K=this.getClipBox(),oe=this.getSharedClipKey();let ce=Q[oe];ce?ce.animate(K):Q[oe]=ce=ie.clipRect(K),V&&V.clip(this.options.clip===!1?void 0:ce),X&&X.clip()}animate(E){const{chart:V,group:X,markerGroup:Q}=this,ie=V.inverted,K=p(this.options.animation),oe=[this.getSharedClipKey(),K.duration,K.easing,K.defer].join(",");let ce=V.sharedClips[oe],ne=V.sharedClips[oe+"m"];if(E&&X){const pe=this.getClipBox();if(ce)ce.attr("height",pe.height);else{pe.width=0,ie&&(pe.x=V.plotHeight),ce=V.renderer.clipRect(pe),V.sharedClips[oe]=ce;const te={x:-99,y:-99,width:ie?V.plotWidth+199:99,height:ie?99:V.plotHeight+199};ne=V.renderer.clipRect(te),V.sharedClips[oe+"m"]=ne}X.clip(ce),Q&&Q.clip(ne)}else if(ce&&!ce.hasClass("highcharts-animating")){const pe=this.getClipBox(),te=K.step;Q&&Q.element.childNodes.length&&(K.step=function(re,q){te&&te.apply(q,arguments),q.prop==="width"&&ne&&ne.element&&ne.attr(ie?"height":"width",re+99)}),ce.addClass("highcharts-animating").animate(pe,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:ie,options:K}=V,oe=K.marker,ce=V[V.specialGroup||"markerGroup"],ne=V.xAxis,pe=d(oe.enabled,!ne||ne.isRadial?!0:null,V.closestPointRangePx>=oe.enabledThreshold*oe.radius);let te,re,q,ae,se,he,fe;if(oe.enabled!==!1||V._hasPointMarkers)for(te=0;te<E.length;te++)if(re=E[te],q=re.graphic,ae=q?"animate":"attr",se=re.marker||{},he=!!re.marker,(pe&&typeof se.enabled>"u"||se.enabled)&&!re.isNull&&re.visible!==!1){const me=d(se.symbol,V.symbol,"rect");fe=V.markerAttribs(re,re.selected&&"select"),V.enabledDataSorting&&(re.startXPos=ne.reversed?-(fe.width||0):ne.width);const _e=re.isInside!==!1;if(!q&&_e&&((fe.width||0)>0||re.hasImage)&&(re.graphic=q=X.renderer.symbol(me,fe.x,fe.y,fe.width,fe.height,he?se:oe).add(ce),V.enabledDataSorting&&X.hasRendered&&(q.attr({x:re.startXPos}),ae="animate")),q&&ae==="animate"&&q[_e?"show":"hide"](_e).animate(fe),q){const be=V.pointAttribs(re,Q||!re.selected?void 0:"select");Q?ie&&q.css({fill:be.fill}):q[ae](be)}q&&q.addClass(re.getClassName(),!0)}else q&&(re.graphic=q.destroy())}markerAttribs(E,V){const X=this.options,Q=X.marker,ie=E.marker||{},K=ie.symbol||Q.symbol,oe={};let ce,ne,pe=d(ie.radius,Q&&Q.radius);V&&(ce=Q.states[V],ne=ie.states&&ie.states[V],pe=d(ne&&ne.radius,ce&&ce.radius,pe&&pe+(ce&&ce.radiusPlus||0))),E.hasImage=K&&K.indexOf("url")===0,E.hasImage&&(pe=0);const te=E.pos();return D(pe)&&te&&(oe.x=te[0]-pe,oe.y=te[1]-pe,X.crisp&&(oe.x=Math.floor(oe.x))),pe&&(oe.width=oe.height=2*pe),oe}pointAttribs(E,V){const X=this.options.marker,Q=E&&E.options,ie=Q&&Q.marker||{},K=Q&&Q.color,oe=E&&E.color,ce=E&&E.zone&&E.zone.color;let ne,pe,te=this.color,re,q,ae=d(ie.lineWidth,X.lineWidth),se=1;return te=K||ce||oe||te,re=ie.fillColor||X.fillColor||te,q=ie.lineColor||X.lineColor||te,V=V||"normal",V&&(ne=X.states[V]||{},pe=ie.states&&ie.states[V]||{},ae=d(pe.lineWidth,ne.lineWidth,ae+d(pe.lineWidthPlus,ne.lineWidthPlus,0)),re=pe.fillColor||ne.fillColor||re,q=pe.lineColor||ne.lineColor||q,se=d(pe.opacity,ne.opacity,se)),{stroke:q,"stroke-width":ae,fill:re,opacity:se}}destroy(E){const V=this,X=V.chart,Q=/AppleWebKit\/533/.test(M.navigator.userAgent),ie=V.data||[];let K,oe,ce,ne;for(f(V,"destroy",{keepEventsForUpdate:E}),this.removeEvents(E),(V.axisTypes||[]).forEach(function(pe){ne=V[pe],ne&&ne.series&&(g(ne.series,V),ne.isDirty=ne.forceRedraw=!0)}),V.legendItem&&V.chart.legend.destroyItem(V),oe=ie.length;oe--;)ce=ie[oe],ce&&ce.destroy&&ce.destroy();V.clips&&V.clips.forEach(pe=>pe.destroy()),C.clearTimeout(V.animationTimeout),W(V,function(pe,te){pe instanceof j&&!pe.survive&&(K=Q&&te==="group"?"hide":"destroy",pe[K]())}),X.hoverSeries===V&&(X.hoverSeries=void 0),g(X.series,V),X.orderItems("series"),W(V,function(pe,te){(!E||te!=="hcEvents")&&delete V[te]})}applyZones(){const E=this,V=this.chart,X=V.renderer,Q=this.zones,ie=this.clips||[],K=this.graph,oe=this.area,ce=Math.max(V.plotWidth,V.plotHeight),ne=this[(this.zoneAxis||"y")+"Axis"],pe=V.inverted;let te,re,q,ae,se,he,fe,ye,me,_e,be,Ce=!1;Q.length&&(K||oe)&&ne&&typeof ne.min<"u"?(se=ne.reversed,he=ne.horiz,K&&!this.showLine&&K.hide(),oe&&oe.hide(),ae=ne.getExtremes(),Q.forEach(function(De,Be){te=se?he?V.plotWidth:0:he?0:ne.toPixels(ae.min)||0,te=m(d(re,te),0,ce),re=m(Math.round(ne.toPixels(d(De.value,ae.max),!0)||0),0,ce),Ce&&(te=re=ne.toPixels(ae.max)),fe=Math.abs(te-re),ye=Math.min(te,re),me=Math.max(te,re),ne.isXAxis?(q={x:pe?me:ye,y:0,width:fe,height:ce},he||(q.x=V.plotHeight-q.x)):(q={x:0,y:pe?me:ye,width:ce,height:fe},he&&(q.y=V.plotWidth-q.y)),ie[Be]?ie[Be].animate(q):ie[Be]=X.clipRect(q),_e=E["zone-area-"+Be],be=E["zone-graph-"+Be],K&&be&&be.clip(ie[Be]),oe&&_e&&_e.clip(ie[Be]),Ce=De.value>ae.max,E.resetZones&&re===0&&(re=void 0)}),this.clips=ie):E.visible&&(K&&K.show(),oe&&oe.show())}plotGroup(E,V,X,Q,ie){let K=this[E];const oe=!K,ce={visibility:X,zIndex:Q||.1};return typeof this.opacity<"u"&&!this.chart.styledMode&&this.state!=="inactive"&&(ce.opacity=this.opacity),oe&&(this[E]=K=this.chart.renderer.g().add(ie)),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(ce)[oe?"attr":"animate"](this.getPlotBox(V)),K}getPlotBox(E){let V=this.xAxis,X=this.yAxis;const Q=this.chart,ie=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:ie?90:0,rotationOriginX:ie?(V.len-X.len)/2:0,rotationOriginY:ie?(V.len+X.len)/2:0,scaleX:ie?-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),ie=E.visible?"inherit":"hidden",K=X.zIndex,oe=E.hasRendered,ce=V.seriesGroup;V.inverted;let ne=E.finishedAnimating?0:Q.duration;f(this,"render"),E.plotGroup("group","series",ie,K,ce),E.markerGroup=E.plotGroup("markerGroup","markers",ie,K,ce),X.clip!==!1&&E.setClip(),E.animate&&ne&&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&&ne&&E.animate(),oe||(ne&&Q.defer&&(ne+=Q.defer),E.animationTimeout=J(function(){E.afterAnimate()},ne||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,ie=X.yAxis,K=X.chart.inverted;return this.searchKDTree({clientX:K?Q.len-E.chartY+Q.pos:E.chartX-Q.pos,plotY:K?ie.len-E.chartX+ie.pos:E.chartY-ie.pos},V,E)}buildKDTree(E){this.buildingKdTree=!0;const V=this,X=V.options.findNearestPointBy.indexOf("y")>-1?2:1;function Q(K,oe,ce){const ne=K&&K.length;let pe,te;if(ne)return pe=V.kdAxisArray[oe%ce],K.sort(function(re,q){return re[pe]-q[pe]}),te=Math.floor(ne/2),{point:K[te],left:Q(K.slice(0,te),oe+1,ce),right:Q(K.slice(te+1),oe+1,ce)}}function ie(){V.kdTree=Q(V.getValidPoints(null,!V.directTouch),X,X),V.buildingKdTree=!1}delete V.kdTree,J(ie,V.options.kdNow||E&&E.type==="touchstart"?0:1)}searchKDTree(E,V,X){const Q=this,ie=this.kdAxisArray[0],K=this.kdAxisArray[1],oe=V?"distX":"dist",ce=Q.options.findNearestPointBy.indexOf("y")>-1?2:1;function ne(te,re){const q=T(te[ie])&&T(re[ie])?Math.pow(te[ie]-re[ie],2):null,ae=T(te[K])&&T(re[K])?Math.pow(te[K]-re[K],2):null,se=(q||0)+(ae||0);re.dist=T(se)?Math.sqrt(se):Number.MAX_VALUE,re.distX=T(q)?Math.sqrt(q):Number.MAX_VALUE}function pe(te,re,q,ae){const se=re.point,he=Q.kdAxisArray[q%ae];let fe,ye,me=se;ne(te,se);const _e=te[he]-se[he],be=_e<0?"left":"right",Ce=_e<0?"right":"left";return re[be]&&(fe=pe(te,re[be],q+1,ae),me=fe[oe]<me[oe]?fe:se),re[Ce]&&Math.sqrt(_e*_e)<me[oe]&&(ye=pe(te,re[Ce],q+1,ae),me=ye[oe]<me[oe]?ye:me),me}if(!this.kdTree&&!this.buildingKdTree&&this.buildKDTree(X),this.kdTree)return pe(E,this.kdTree,ce,ce)}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),ie=E.chart,K=ie.pointer,oe=ie.renderer,ce=ie.options.tooltip.snap,ne=E.tracker,pe=function(re){V.enableMouseTracking&&ie.hoverSeries!==E&&E.onMouseOver()},te="rgba(192,192,192,"+(N?1e-4:.002)+")";ne?ne.attr({d:Q}):E.graph&&(E.tracker=oe.path(Q).attr({visibility:E.visible?"inherit":"hidden",zIndex:2}).addClass(X?"highcharts-tracker-area":"highcharts-tracker-line").add(E.group),ie.styledMode||E.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:te,fill:X?te:"none","stroke-width":E.graph.strokeWidth()+(X?0:2*ce)}),[E.tracker,E.markerGroup,E.dataLabelsGroup].forEach(function(re){re&&(re.addClass("highcharts-tracker").on("mouseover",pe).on("mouseout",function(q){K.onTrackerMouseOut(q)}),V.cursor&&!ie.styledMode&&re.css({cursor:V.cursor}),_&&re.on("touchstart",pe))})),f(this,"afterDrawTracker")}addPoint(E,V,X,Q,ie){const K=this,oe=K.options,ce=K.data,ne=K.chart,pe=K.xAxis,te=pe&&pe.hasNames&&pe.names,re=oe.data,q=K.xData;let ae,se;V=d(V,!0);const he={series:K};K.pointClass.prototype.applyOptions.apply(he,[E]);const fe=he.x;if(se=q.length,K.requireSorting&&fe<q[se-1])for(ae=!0;se&&q[se-1]>fe;)se--;K.updateParallelArrays(he,"splice",[se,0,0]),K.updateParallelArrays(he,se),te&&he.name&&(te[fe]=he.name),re.splice(se,0,E),(ae||K.processedData)&&(K.data.splice(se,0,null),K.processData()),oe.legendType==="point"&&K.generatePoints(),X&&(ce[0]&&ce[0].remove?ce[0].remove(!1):(ce.shift(),K.updateParallelArrays(he,"shift"),re.shift())),ie!==!1&&f(K,"addPoint",{point:he}),K.isDirty=!0,K.isDirtyData=!0,V&&ne.redraw(Q)}removePoint(E,V,X){const Q=this,ie=Q.data,K=ie[E],oe=Q.points,ce=Q.chart,ne=function(){oe&&oe.length===ie.length&&oe.splice(E,1),ie.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&&ce.redraw()};x(X,ce),V=d(V,!0),K?K.firePointEvent("remove",null,ne):ne()}remove(E,V,X,Q){const ie=this,K=ie.chart;function oe(){ie.destroy(Q),K.isDirtyLegend=K.isDirtyBox=!0,K.linkSeries(Q),d(E,!0)&&K.redraw(V)}X!==!1?f(ie,"remove",null,oe):oe()}update(E,V){E=A(E,this.userOptions),f(this,"update",{options:E});const X=this,Q=X.chart,ie=X.userOptions,K=X.initialType||X.type,oe=Q.options.plotOptions,ce=b[K].prototype,ne=["group","markerGroup","dataLabelsGroup","transformGroup"],pe=X.finishedAnimating&&{animation:!1},te={};let re,q,ae=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],se=E.type||ie.type||Q.options.chart.type;const he=!(this.hasDerivedData||se&&se!==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"));se=se||K,he&&(ae.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),E.visible!==!1&&ae.push("area","graph"),X.parallelArrays.forEach(function(ye){ae.push(ye+"Data")}),E.data&&(E.dataSorting&&n(X.options.dataSorting,E.dataSorting),this.setData(E.data,!1))),E=z(ie,pe,{index:typeof ie.index>"u"?X.index:ie.index,pointStart:d(oe&&oe.series&&oe.series.pointStart,ie.pointStart,X.xData[0])},!he&&{data:X.options.data},E),he&&E.data&&(E.data=X.options.data),ae=ne.concat(ae),ae.forEach(function(ye){ae[ye]=X[ye],delete X[ye]});let fe=!1;if(b[se]){if(fe=se!==X.type,X.remove(!1,!1,!1,!0),fe)if(Object.setPrototypeOf)Object.setPrototypeOf(X,b[se].prototype);else{const ye=Object.hasOwnProperty.call(X,"hcEvents")&&X.hcEvents;for(q in ce)X[q]=void 0;n(X,b[se].prototype),ye?X.hcEvents=ye:delete X.hcEvents}}else h(17,!0,Q,{missingModuleFor:se});if(ae.forEach(function(ye){X[ye]=ae[ye]}),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:ye,dataLabels:me}=re,_e=ie.marker||{};ye&&(ye.enabled===!1||_e.symbol!==ye.symbol||_e.height!==ye.height||_e.width!==ye.width)&&(te.graphic=1),me&&me.enabled===!1&&(te.dataLabel=1)}for(const ye of this.points)ye&&ye.series&&(ye.resolveColor(),Object.keys(te).length&&ye.destroyElements(te),re.showInLegend===!1&&ye.legendItem&&Q.legend.destroyItem(ye))}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,ie=this.userOptions[E];return ie?X!==ie: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,ie=X.hoverPoint;X.hoverSeries=null,ie&&ie.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,ie=X.graph,K=Q.inactiveOtherPoints,oe=Q.states,ce=d(oe[E||"normal"]&&oe[E||"normal"].animation,X.chart.options.chart.animation);let ne,pe=Q.lineWidth,te=0,re=Q.opacity;if(E=E||"",X.state!==E&&([X.group,X.markerGroup,X.dataLabelsGroup].forEach(function(q){q&&(X.state&&q.removeClass("highcharts-series-"+X.state),E&&q.addClass("highcharts-series-"+E))}),X.state=E,!X.chart.styledMode)){if(oe[E]&&oe[E].enabled===!1)return;if(E&&(pe=oe[E].lineWidth||pe+(oe[E].lineWidthPlus||0),re=d(oe[E].opacity,re)),ie&&!ie.dashstyle&&D(pe))for(ne={"stroke-width":pe},ie.animate(ne,ce);X["zone-graph-"+te];)X["zone-graph-"+te].animate(ne,ce),te=te+1;K||[X.group,X.markerGroup,X.dataLabelsGroup,X.labelBySeries].forEach(function(q){q&&q.animate({opacity:re},ce)})}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,ie=Q.options.chart.ignoreHiddenSeries,K=X.visible;X.visible=E=X.options.visible=X.userOptions.visible=typeof E>"u"?!K:E;const oe=E?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(ce){X[ce]&&X[ce][oe]()}),(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(ce){ce.options.stacking&&ce.visible&&(ce.isDirty=!0)}),X.linkedSeries.forEach(function(ce){ce.setVisible(E,!1)}),ie&&(Q.isDirtyBox=!0),f(X,oe),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=I.seriesTypes,Y.registerType=I.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}),I.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,I,j,C,p,x,O){const{animate:S,animObject:_,setAnimation:N}=i,{defaultOptions:M,defaultTime:b}=o,{numberFormat:F}=c,{registerEventOptions:P}=u,{charts:L,doc:m,marginNames:B,svg:T,win:A}=w,{seriesTypes:g}=j,{addEvent:h,attr:n,createElement:l,css:f,defined:k,diffObjects:v,discardElement:G,erase:U,error:D,extend:H,find:z,fireEvent:W,getStyle:d,isArray:R,isNumber:Z,isObject:J,isString:Y,merge:ee,objectEach:E,pick:V,pInt:X,relativeLength:Q,removeEvent:ie,splat:K,syncTimeout:oe,uniqueKey:ce}=x;class ne{static chart(te,re,q){return new ne(te,re,q)}constructor(te,re,q){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,q)}getArgs(te,re,q){Y(te)||te.nodeName?(this.renderTo=te,this.init(re,q)):this.init(te,re)}setZoomOptions(){console.log("setZoomOptions");const te=this,re=te.options.chart,q=re.zooming;te.zooming=Object.assign(Object.assign({},q),{type:V(re.zoomType,q.type),key:V(re.zoomKey,q.key),pinchType:V(re.pinchType,q.pinchType),singleTouch:V(re.zoomBySingleTouch,q.singleTouch,!1),resetButton:ee(q.resetButton,re.resetZoomButton)})}init(te,re){W(this,"init",{args:arguments},function(){const q=ee(M,te),ae=q.chart;this.userOptions=H({},te),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=re,this.isResizing=0,this.options=q,this.axes=[],this.series=[],this.time=te.time&&Object.keys(te.time).length?new p(te.time):w.time,this.numberFormatter=ae.numberFormatter||F,this.styledMode=ae.styledMode,this.hasCartesianSeries=ae.showAxes;const se=this;se.index=L.length,L.push(se),w.chartCount++,P(this,ae),se.xAxis=[],se.yAxis=[],se.pointCount=se.colorCounter=se.symbolCounter=0,this.setZoomOptions(),W(se,"afterInit"),se.firstRender()})}initSeries(te){const re=this,q=re.options.chart,ae=te.type||q.type,se=g[ae];se||D(17,!0,re,{missingModuleFor:ae});const he=new se;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 q=this[te],ae=this.options[te]=K(this.options[te]).slice(),se=this.userOptions[te]=this.userOptions[te]?K(this.userOptions[te]).slice():[];if(this.hasRendered&&(ae.splice(re),se.splice(re)),q)for(let he=re,fe=q.length;he<fe;++he){const ye=q[he];ye&&(ye.index=he,ye instanceof I&&(ye.name=ye.getName()),ye.options.isInternal||(ae[he]=ye.options,se[he]=ye.userOptions))}}isInsidePlot(te,re,q={}){const{inverted:ae,plotBox:se,plotLeft:he,plotTop:fe,scrollablePlotBox:ye}=this;let me=0,_e=0;q.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:me,scrollTop:_e}=this.scrollingContainer);const be=q.series,Ce=q.visiblePlotOnly&&ye||se,De=q.inverted?re:te,Be=q.inverted?te:re,Fe={x:De,y:Be,isInsidePlot:!0,options:q};if(!q.ignoreX){const Oe=be&&(ae&&!this.polar?be.yAxis:be.xAxis)||{pos:he,len:1/0},Ue=q.paneCoordinates?Oe.pos+De:he+De;Ue>=Math.max(me+he,Oe.pos)&&Ue<=Math.min(me+he+Ce.width,Oe.pos+Oe.len)||(Fe.isInsidePlot=!1)}if(!q.ignoreY&&Fe.isInsidePlot){const Oe=!ae&&q.axis&&!q.axis.isXAxis&&q.axis||be&&(ae?be.xAxis:be.yAxis)||{pos:fe,len:1/0},Ue=q.paneCoordinates?Oe.pos+Be:fe+Be;Ue>=Math.max(_e+fe,Oe.pos)&&Ue<=Math.min(_e+fe+Ce.height,Oe.pos+Oe.len)||(Fe.isInsidePlot=!1)}return W(this,"afterIsInsidePlot",Fe),Fe.isInsidePlot}redraw(te){W(this,"beforeRedraw");const re=this,q=re.hasCartesianSeries?re.axes:re.colorAxis||[],ae=re.series,se=re.pointer,he=re.legend,fe=re.userOptions.legend,ye=re.renderer,me=ye.isHidden(),_e=[];let be,Ce,De,Be=re.isDirtyBox,Fe=re.isDirtyLegend,Oe;for(ye.rootFontSize=ye.boxWrapper.getStyle("font-size"),re.setResponsive&&re.setResponsive(!1),N(re.hasRendered?te:!1,re),me&&re.temporaryDisplay(),re.layOutTitles(!1),De=ae.length;De--;)if(Oe=ae[De],(Oe.options.stacking||Oe.options.centerInCategory)&&(Ce=!0,Oe.isDirty)){be=!0;break}if(be)for(De=ae.length;De--;)Oe=ae[De],Oe.options.stacking&&(Oe.isDirty=!0);ae.forEach(function(Ue){Ue.isDirty&&(Ue.options.legendType==="point"?(typeof Ue.updateTotals=="function"&&Ue.updateTotals(),Fe=!0):fe&&(fe.labelFormatter||fe.labelFormat)&&(Fe=!0)),Ue.isDirtyData&&W(Ue,"updatedData")}),Fe&&he&&he.options.enabled&&(he.render(),re.isDirtyLegend=!1),Ce&&re.getStacks(),q.forEach(function(Ue){Ue.updateNames(),Ue.setScale()}),re.getMargins(),q.forEach(function(Ue){Ue.isDirty&&(Be=!0)}),q.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"),ae.forEach(function(Ue){(Be||Ue.isDirty)&&Ue.visible&&Ue.redraw(),Ue.isDirtyData=!1}),se&&se.reset(!0),ye.draw(),W(re,"redraw"),W(re,"render"),me&&re.temporaryDisplay(!0),_e.forEach(function(Ue){Ue.call()})}get(te){const re=this.series;function q(se){return se.id===te||se.options&&se.options.id===te}let ae=z(this.axes,q)||z(this.series,q);for(let se=0;!ae&&se<re.length;se++)ae=z(re[se].points||[],q);return ae}getAxes(){const te=this.options;W(this,"getAxes");for(const re of["xAxis","yAxis"]){const q=te[re]=K(te[re]||{});for(const ae of q)new s(this,ae,re)}W(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((te,re)=>(re.getPointsCollection().forEach(q=>{V(q.selectedStaging,q.selected)&&te.push(q)}),te),[])}getSelectedSeries(){return this.series.filter(function(te){return te.selected})}setTitle(te,re,q){this.applyDescription("title",te),this.applyDescription("subtitle",re),this.applyDescription("caption",void 0),this.layOutTitles(q)}applyDescription(te,re){const q=this,ae=this.options[te]=ee(this.options[te],re);let se=this[te];se&&re&&(this[te]=se=se.destroy()),ae&&!se&&(se=this.renderer.text(ae.text,0,0,ae.useHTML).attr({align:ae.align,class:"highcharts-"+te,zIndex:ae.zIndex||4}).add(),se.update=function(he,fe){q.applyDescription(te,he),q.layOutTitles(fe)},this.styledMode||se.css(H(te==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},ae.style)),this[te]=se)}layOutTitles(te=!0){const re=[0,0,0],q=this.renderer,ae=this.spacingBox;["title","subtitle","caption"].forEach(function(he){const fe=this[he],ye=this.options[he],me=ye.verticalAlign||"top",_e=he==="title"?me==="top"?-3:0:me==="top"?re[0]+2:0;if(fe){fe.css({width:(ye.width||ae.width+(ye.widthAdjust||0))+"px"});const be=q.fontMetrics(fe).b,Ce=Math.round(fe.getBBox(ye.useHTML).height);fe.align(H({y:me==="bottom"?be:_e+be,height:Ce},ye),!1,"spacingBox"),ye.floating||(me==="top"?re[0]=Math.ceil(re[0]+Ce):me==="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 se=!this.titleOffset||this.titleOffset.join(",")!==re.join(",");this.titleOffset=re,W(this,"afterLayOutTitles"),!this.isDirtyBox&&se&&(this.isDirtyBox=this.isDirtyLegend=se,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,q=re.width,ae=re.height,se=te.getContainerBox();te.chartWidth=Math.max(0,q||se.width||600),te.chartHeight=Math.max(0,Q(ae,te.chartWidth)||(se.height>1?se.height:400)),te.containerBox=se}temporaryDisplay(te){let re=this.renderTo,q;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},q={display:"block",overflow:"hidden"},re!==this.renderTo&&(q.height=0),f(re,q),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,q=re.chart,ae="data-highcharts-chart",se=ce();let he,fe=te.renderTo;fe||(te.renderTo=fe=q.renderTo),Y(fe)&&(te.renderTo=fe=m.getElementById(fe)),fe||D(13,!0,te);const ye=X(n(fe,ae));Z(ye)&&L[ye]&&L[ye].hasRendered&&L[ye].destroy(),n(fe,ae,te.index),fe.innerHTML=O.emptyHTML,!q.skipClone&&!fe.offsetWidth&&te.temporaryDisplay(),te.getChartSize();const me=te.chartWidth,_e=te.chartHeight;f(fe,{overflow:"hidden"}),te.styledMode||(he=H({position:"relative",overflow:"hidden",width:me+"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"},q.style||{}));const be=l("div",{id:se},he,fe);te.container=be,te._cursor=be.style.cursor;const Ce=q.renderer||!T?y.getRendererType(q.renderer):C;if(te.renderer=new Ce(be,me,_e,void 0,q.forExport,re.exporting&&re.exporting.allowHTML,te.styledMode),te.containerBox=te.getContainerBox(),N(void 0,te),te.setClassName(q.className),!te.styledMode)te.renderer.setStyle(q.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:q,titleOffset:ae}=this;this.resetMargins(),ae[0]&&!k(q[0])&&(this.plotTop=Math.max(this.plotTop,ae[0]+re[0])),ae[2]&&!k(q[2])&&(this.marginBottom=Math.max(this.marginBottom,ae[2]+re[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(q,re),W(this,"getMargins"),te||this.getAxisMargins()}getAxisMargins(){const te=this,re=te.axisOffset=[0,0,0,0],q=te.colorAxis,ae=te.margin,se=function(he){he.forEach(function(fe){fe.visible&&fe.getOffset()})};te.hasCartesianSeries?se(te.axes):q&&q.length&&se(q),B.forEach(function(he,fe){k(ae[fe])||(te[he]+=re[fe])}),te.setChartSize()}getOptions(){return v(this.userOptions,M)}reflow(te){const re=this,q=re.options.chart,ae=k(q.width)&&k(q.height),se=re.containerBox,he=re.getContainerBox();delete re.pointer.chartPosition,!ae&&!re.isPrinting&&se&&he.width&&((he.width!==se.width||he.height!==se.height)&&(x.clearTimeout(re.reflowTimeout),re.reflowTimeout=oe(function(){re.container&&re.setSize(void 0,void 0,!1)},te?100:0)),re.containerBox=he)}setReflow(){const te=this,re=q=>{var ae;!((ae=te.options)===null||ae===void 0)&&ae.chart.reflow&&te.hasLoaded&&te.reflow(q)};if(typeof ResizeObserver=="function")new ResizeObserver(re).observe(te.renderTo);else{const q=h(A,"resize",re);h(this,"destroy",q)}}setSize(te,re,q){const ae=this,se=ae.renderer;ae.isResizing+=1,N(q,ae);const he=se.globalAnimation;ae.oldChartHeight=ae.chartHeight,ae.oldChartWidth=ae.chartWidth,typeof te<"u"&&(ae.options.chart.width=te),typeof re<"u"&&(ae.options.chart.height=re),ae.getChartSize(),ae.styledMode||(he?S:f)(ae.container,{width:ae.chartWidth+"px",height:ae.chartHeight+"px"},he),ae.setChartSize(!0),se.setSize(ae.chartWidth,ae.chartHeight,he),ae.axes.forEach(function(fe){fe.isDirty=!0,fe.setScale()}),ae.isDirtyLegend=!0,ae.isDirtyBox=!0,ae.layOutTitles(),ae.getMargins(),ae.redraw(he),ae.oldChartHeight=null,W(ae,"resize"),oe(function(){ae&&W(ae,"endResize",null,function(){ae.isResizing-=1})},_(he).duration)}setChartSize(te){const re=this,q=re.inverted,ae=re.renderer,se=re.chartWidth,he=re.chartHeight,fe=re.options.chart,ye=re.spacing,me=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(se-_e-re.marginRight)),re.plotHeight=De=Math.max(0,Math.round(he-be-re.marginBottom)),re.plotSizeX=q?De:Ce,re.plotSizeY=q?Ce:De,re.plotBorderWidth=fe.plotBorderWidth||0,re.spacingBox=ae.spacingBox={x:ye[3],y:ye[0],width:se-ye[3]-ye[1],height:he-ye[0]-ye[2]},re.plotBox=ae.plotBox={x:_e,y:be,width:Ce,height:De};const Be=2*Math.floor(re.plotBorderWidth/2),Fe=Math.ceil(Math.max(Be,me[3])/2),Oe=Math.ceil(Math.max(Be,me[0])/2);re.clipBox={x:Fe,y:Oe,width:Math.floor(re.plotSizeX-Math.max(Be,me[1])/2-Fe),height:Math.max(0,Math.floor(re.plotSizeY-Math.max(Be,me[2])/2-Oe))},te||(re.axes.forEach(function(Ue){Ue.setAxisSize(),Ue.setAxisTranslation()}),ae.alignElements()),W(re,"afterSetChartSize",{skipAxes:te})}resetMargins(){W(this,"resetMargins");const te=this,re=te.options.chart;["margin","spacing"].forEach(function(ae){const se=re[ae],he=J(se)?se:[se,se,se,se];["Top","Right","Bottom","Left"].forEach(function(fe,ye){te[ae][ye]=V(re[ae+fe],he[ye])})}),B.forEach(function(q,ae){te[q]=V(te.margin[ae],te.spacing[ae])}),te.axisOffset=[0,0,0,0],te.clipOffset=[0,0,0,0]}drawChartBox(){const te=this,re=te.options.chart,q=te.renderer,ae=te.chartWidth,se=te.chartHeight,he=te.styledMode,fe=te.plotBGImage,ye=re.backgroundColor,me=re.plotBackgroundColor,_e=re.plotBackgroundImage,be=te.plotLeft,Ce=te.plotTop,De=te.plotWidth,Be=te.plotHeight,Fe=te.plotBox,Oe=te.clipRect,Ue=te.clipBox;let Je=te.chartBackground,it=te.plotBackground,qt=te.plotBorder,Zt,Xe,Ut,wt="animate";Je||(te.chartBackground=Je=q.rect().addClass("highcharts-background").add(),wt="attr"),he?Zt=Xe=Je.strokeWidth():(Zt=re.borderWidth||0,Xe=Zt+(re.shadow?8:0),Ut={fill:ye||"none"},(Zt||Je["stroke-width"])&&(Ut.stroke=re.borderColor,Ut["stroke-width"]=Zt),Je.attr(Ut).shadow(re.shadow)),Je[wt]({x:Xe/2,y:Xe/2,width:ae-Xe-Zt%2,height:se-Xe-Zt%2,r:re.borderRadius}),wt="animate",it||(wt="attr",te.plotBackground=it=q.rect().addClass("highcharts-plot-background").add()),it[wt](Fe),he||(it.attr({fill:me||"none"}).shadow(re.plotShadow),_e&&(fe?(_e!==fe.attr("href")&&fe.attr("href",_e),fe.animate(Fe)):te.plotBGImage=q.image(_e,be,Ce,De,Be).add())),Oe?Oe.animate({width:Ue.width,height:Ue.height}):te.clipRect=q.clipRect(Ue),wt="animate",qt||(wt="attr",te.plotBorder=qt=q.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),he||qt.attr({stroke:re.plotBorderColor,"stroke-width":re.plotBorderWidth||0,fill:"none"}),qt[wt](qt.crisp({x:be,y:Ce,width:De,height:Be},-qt.strokeWidth())),te.isDirtyBox=!1,W(this,"afterDrawChartBox")}propFromSeries(){const te=this,re=te.options.chart,q=te.options.series;let ae,se,he;["inverted","angular","polar"].forEach(function(fe){for(se=g[re.type],he=re[fe]||se&&se.prototype[fe],ae=q&&q.length;!he&&ae--;)se=g[q[ae].type],se&&se.prototype[fe]&&(he=!0);te[fe]=he})}linkSeries(te){const re=this,q=re.series;q.forEach(function(ae){ae.linkedSeries.length=0}),q.forEach(function(ae){let se=ae.options.linkedTo;Y(se)&&(se===":previous"?se=re.series[ae.index-1]:se=re.get(se),se&&se.linkedParent!==ae&&(se.linkedSeries.push(ae),ae.linkedParent=se,se.enabledDataSorting&&ae.setDataSortingOptions(),ae.visible=V(ae.options.visible,se.options.visible,ae.visible)))}),W(this,"afterLinkSeries",{isUpdating:te})}renderSeries(){this.series.forEach(function(te){te.translate(),te.render()})}render(){const te=this,re=te.axes,q=te.colorAxis,ae=te.renderer,se=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 ye=te.plotHeight;re.forEach(function(be){be.setScale()}),te.getAxisMargins();const me=fe/te.plotWidth>1.1,_e=ye/te.plotHeight>1.05;(me||_e)&&(re.forEach(function(be){(be.horiz&&me||!be.horiz&&_e)&&be.setTickInterval(!0)}),te.getMargins()),te.drawChartBox(),te.hasCartesianSeries?se(re):q&&q.length&&se(q),te.seriesGroup||(te.seriesGroup=ae.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,q=ee(!0,this.options.credits,te);q.enabled&&!this.credits&&(this.credits=this.renderer.text(q.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){q.href&&(A.location.href=q.href)}).attr({align:q.position.align,zIndex:8}),re.styledMode||this.credits.css(q.style),this.credits.add().align(q.position),this.credits.update=function(ae){re.credits=re.credits.destroy(),re.addCredits(ae)})}destroy(){const te=this,re=te.axes,q=te.series,ae=te.container,se=ae&&ae.parentNode;let he;for(W(te,"destroy"),te.renderer.forExport?U(L,te):L[te.index]=void 0,w.chartCount--,te.renderTo.removeAttribute("data-highcharts-chart"),ie(te),he=re.length;he--;)re[he]=re[he].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),he=q.length;he--;)q[he]=q[he].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(fe){const ye=te[fe];ye&&ye.destroy&&(te[fe]=ye.destroy())}),ae&&(ae.innerHTML=O.emptyHTML,ie(ae),se&&G(ae)),E(te,function(fe,ye){delete te[ye]})}firstRender(){const te=this,re=te.options;te.getContainer(),te.resetMargins(),te.setChartSize(),te.propFromSeries(),te.getAxes();const q=R(re.series)?re.series:[];re.series=[],q.forEach(function(ae){te.initSeries(ae)}),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"),k(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,"<")}),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,q){const ae=this;let se;return te&&(re=V(re,!0),W(ae,"addSeries",{options:te},function(){se=ae.initSeries(te),ae.isDirtyLegend=!0,ae.linkSeries(),se.enabledDataSorting&&se.setData(te.data,!1),W(ae,"afterAddSeries",{series:se}),re&&ae.redraw(q)})),se}addAxis(te,re,q,ae){return this.createAxis(re?"xAxis":"yAxis",{axis:te,redraw:q,animation:ae})}addColorAxis(te,re,q){return this.createAxis("colorAxis",{axis:te,redraw:re,animation:q})}createAxis(te,re){const q=new s(this,re.axis,te);return V(re.redraw,!0)&&this.redraw(re.animation),q}showLoading(te){const re=this,q=re.options,ae=q.loading,se=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",se)),he.className="highcharts-loading",O.setElementHTML(fe,V(te,q.lang.loading,"")),re.styledMode||(f(he,H(ae.style,{zIndex:10})),f(fe,ae.labelStyle),re.loadingShown||(f(he,{opacity:0,display:""}),S(he,{opacity:ae.style.opacity||.5},{duration:ae.showDuration||0}))),re.loadingShown=!0,se()}hideLoading(){const te=this.options,re=this.loadingDiv;re&&(re.className="highcharts-loading highcharts-loading-hidden",this.styledMode||S(re,{opacity:0},{duration:te.loading.hideDuration||100,complete:function(){f(re,{display:"none"})}})),this.loadingShown=!1}update(te,re,q,ae){const se=this,he={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},fe=te.isResponsiveOptions,ye=[];let me,_e,be;W(se,"update",{options:te}),fe||se.setResponsive(!1,!0),te=v(te,se.options),se.userOptions=ee(se.userOptions,te);const Ce=te.chart;Ce&&(ee(!0,se.options.chart,Ce),this.setZoomOptions(),"className"in Ce&&se.setClassName(Ce.className),("inverted"in Ce||"polar"in Ce||"type"in Ce)&&(se.propFromSeries(),me=!0),"alignTicks"in Ce&&(me=!0),"events"in Ce&&P(this,Ce),E(Ce,function(Fe,Oe){se.propsRequireUpdateSeries.indexOf("chart."+Oe)!==-1&&(_e=!0),se.propsRequireDirtyBox.indexOf(Oe)!==-1&&(se.isDirtyBox=!0),se.propsRequireReflow.indexOf(Oe)!==-1&&(fe?se.isDirtyBox=!0:be=!0)}),!se.styledMode&&Ce.style&&se.renderer.setStyle(se.options.chart.style||{})),!se.styledMode&&te.colors&&(this.options.colors=te.colors),te.time&&(this.time===b&&(this.time=new p(te.time)),ee(!0,se.options.time,te.time)),E(te,function(Fe,Oe){se[Oe]&&typeof se[Oe].update=="function"?se[Oe].update(Fe,!1):typeof se[he[Oe]]=="function"?se[he[Oe]](Fe):Oe!=="colors"&&se.collectionsWithUpdate.indexOf(Oe)===-1&&ee(!0,se.options[Oe],te[Oe]),Oe!=="chart"&&se.propsRequireUpdateSeries.indexOf(Oe)!==-1&&(_e=!0)}),this.collectionsWithUpdate.forEach(function(Fe){te[Fe]&&(K(te[Fe]).forEach(function(Oe,Ue){const Je=k(Oe.id);let it;Je&&(it=se.get(Oe.id)),!it&&se[Fe]&&(it=se[Fe][V(Oe.index,Ue)],it&&(Je&&k(it.options.id)||it.options.isInternal)&&(it=void 0)),it&&it.coll===Fe&&(it.update(Oe,!1),q&&(it.touched=!0)),!it&&q&&se.collectionsWithInit[Fe]&&(se.collectionsWithInit[Fe][0].apply(se,[Oe].concat(se.collectionsWithInit[Fe][1]||[]).concat([!1])).touched=!0)}),q&&se[Fe].forEach(function(Oe){!Oe.touched&&!Oe.options.isInternal?ye.push(Oe):delete Oe.touched}))}),ye.forEach(function(Fe){Fe.chart&&Fe.remove&&Fe.remove(!1)}),me&&se.axes.forEach(function(Fe){Fe.update({},!1)}),_e&&se.getSeriesOrderByLinks().forEach(function(Fe){Fe.chart&&Fe.update({},!1)},this);const De=Ce&&Ce.width,Be=Ce&&(Y(Ce.height)?Q(Ce.height,De||se.chartWidth):Ce.height);be||Z(De)&&De!==se.chartWidth||Z(Be)&&Be!==se.chartHeight?se.setSize(De,Be,ae):V(re,!0)&&se.redraw(ae),W(se,"afterUpdate",{options:te,redraw:re,animation:ae})}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=M.lang,q=te.zooming.resetButton,ae=q.theme,se=q.relativeTo==="chart"||q.relativeTo==="spacingBox"?null:"scrollablePlotBox";function he(){te.zoomOut()}W(this,"beforeShowResetZoom",null,function(){te.resetZoomButton=te.renderer.button(re.resetZoom,null,null,he,ae).attr({align:q.position.align,title:re.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(q.position,!1,se)}),W(this,"afterShowResetZoom")}zoomOut(){W(this,"selection",{resetSelection:!0},this.zoom)}zoom(te){const re=this,q=re.pointer;let ae=!1,se;!te||te.resetSelection?(re.axes.forEach(function(fe){se=fe.zoom()}),q.initiated=!1):te.xAxis.concat(te.yAxis).forEach(function(fe){const ye=fe.axis,me=ye.isXAxis;(q[me?"zoomX":"zoomY"]&&k(q.mouseDownX)&&k(q.mouseDownY)&&re.isInsidePlot(q.mouseDownX-re.plotLeft,q.mouseDownY-re.plotTop,{axis:ye})||!k(re.inverted?q.mouseDownX:q.mouseDownY))&&(se=ye.zoom(fe.min,fe.max),ye.displayBtn&&(ae=!0))});const he=re.resetZoomButton;ae&&!he?re.showResetZoom():!ae&&J(he)&&(re.resetZoomButton=he.destroy()),se&&re.redraw(V(re.options.chart.animation,te&&te.animation,re.pointCount<100))}pan(te,re){const q=this,ae=q.hoverPoints,se=typeof re=="object"?re:{enabled:re,type:"x"},he=q.options.chart;he&&he.panning&&(he.panning=se);const fe=se.type;let ye;W(this,"pan",{originalEvent:te},function(){ae&&ae.forEach(function(be){be.setState()});let me=q.xAxis;fe==="xy"?me=me.concat(q.yAxis):fe==="y"&&(me=q.yAxis);const _e={};me.forEach(function(be){if(!be.options.panningEnabled||be.options.isInternal)return;const Ce=be.horiz,De=te[Ce?"chartX":"chartY"],Be=Ce?"mouseDownX":"mouseDownY",Fe=q[Be],Oe=be.minPointOffset||0,Ue=be.reversed&&!q.inverted||!be.reversed&&q.inverted?-1:1,Je=be.getExtremes(),it=be.toValue(Fe-De,!0)+Oe*Ue,qt=be.toValue(Fe+be.len-De,!0)-(Oe*Ue||be.isXAxis&&be.pointRangePadding||0),Zt=qt<it,Xe=be.hasVerticalPanning();let Ut=Zt?qt:it,wt=Zt?it:qt,Ht=be.panningState,Fr;Xe&&!be.isXAxis&&(!Ht||Ht.isDirty)&&be.series.forEach(function(fi){const Ra=fi.getProcessedData(!0),Lr=fi.getExtremes(Ra.yData,!0);Ht||(Ht={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),Z(Lr.dataMin)&&Z(Lr.dataMax)&&(Ht.startMin=Math.min(V(fi.options.threshold,1/0),Lr.dataMin,Ht.startMin),Ht.startMax=Math.max(V(fi.options.threshold,-1/0),Lr.dataMax,Ht.startMax))});const ci=Math.min(V(Ht&&Ht.startMin,Je.dataMin),Oe?Je.min:be.toValue(be.toPixels(Je.min)-be.minPixelPadding)),hi=Math.max(V(Ht&&Ht.startMax,Je.dataMax),Oe?Je.max:be.toValue(be.toPixels(Je.max)+be.minPixelPadding));be.panningState=Ht,be.isOrdinal||(Fr=ci-Ut,Fr>0&&(wt+=Fr,Ut=ci),Fr=wt-hi,Fr>0&&(wt=hi,Ut-=Fr),be.series.length&&Ut!==Je.min&&wt!==Je.max&&Ut>=ci&&wt<=hi&&(be.setExtremes(Ut,wt,!1,!1,{trigger:"pan"}),!q.resetZoomButton&&Ut!==ci&&wt!==hi&&fe.match("y")&&(q.showResetZoom(),be.displayBtn=!1),ye=!0),_e[Be]=De)}),E(_e,(be,Ce)=>{q[Ce]=be}),ye&&q.redraw(!1),f(q.container,{cursor:"move"})})}}return H(ne.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ne.prototype.addAxis,[!0]],yAxis:[ne.prototype.addAxis,[!1]],series:[ne.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"]}),ne}),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:I,createElement:j,defined:C,merge:p,pick:x}=w;I(o,"afterSetChartSize",function(O){let S=this.options.chart.scrollablePlotArea,_=S&&S.minWidth,N=S&&S.minHeight,M,b,F;this.renderer.forExport||(_?(this.scrollablePixelsX=M=Math.max(0,_-this.chartWidth),M&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=p(this.plotBox),this.plotBox.width=this.plotWidth+=M,this.inverted?this.clipBox.height+=M:this.clipBox.width+=M,F={1:{name:"right",value:M}})):N&&(this.scrollablePixelsY=b=Math.max(0,N-this.chartHeight),C(b)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=p(this.plotBox),this.plotBox.height=this.plotHeight+=b,this.inverted?this.clipBox.width+=b:this.clipBox.height+=b,F={2:{name:"bottom",value:b}})),F&&!O.skipAxes&&this.axes.forEach(function(P){F[P.side]?P.getPlotLinePath=function(){let L=F[P.side].name,m=F[P.side].value,B=this[L],T;return this[L]=B-m,T=s.prototype.getPlotLinePath.apply(this,arguments),this[L]=B,T}:(P.setAxisSize(),P.setAxisTranslation())}))}),I(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=j("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=j("div",{className:"highcharts-scrolling"},O,this.scrollingParent);let S;I(this.scrollingContainer,"scroll",()=>{this.pointer&&(delete this.pointer.chartPosition,this.hoverPoint&&(S=this.hoverPoint),this.pointer.runPointActions(void 0,S,!0))}),this.innerContainer=j("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},o.prototype.moveFixedElements=function(){let O=this.container,S=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"],N;this.scrollablePixelsX&&!this.inverted?N=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?N=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(N=".highcharts-yaxis"),N&&_.push(`${N}:not(.highcharts-radial-axis)`,`${N}-labels:not(.highcharts-radial-axis-labels)`),_.forEach(function(M){[].forEach.call(O.querySelectorAll(M),function(b){(b.namespaceURI===S.SVG_NS?S.box:S.box.parentNode).appendChild(b),b.style.pointerEvents="auto"})})},o.prototype.applyFixed=function(){const O=!this.fixedDiv,S=this.options.chart,_=S.scrollablePlotArea,N=u.getRendererType();let M,b,F;O?(this.fixedDiv=j("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(S.style&&S.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=M=new N(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=M.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":x(_.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),I(this,"afterShowResetZoom",this.moveFixedElements),I(this,"afterApplyDrilldown",this.moveFixedElements),I(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||O)&&(this.scrollableDirty=!1,this.moveFixedElements()),b=this.chartWidth+(this.scrollablePixelsX||0),F=this.chartHeight+(this.scrollablePixelsY||0),y(this.container),this.container.style.width=b+"px",this.container.style.height=F+"px",this.renderer.boxWrapper.attr({width:b,height:F,viewBox:[0,0,b,F].join(" ")}),this.chartBackground.attr({width:b,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,L=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,A=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),g=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0),h;this.scrollablePixelsX?h=[["M",0,L],["L",this.plotLeft-1,L],["L",this.plotLeft-1,B],["L",0,B],["Z"],["M",A,L],["L",this.chartWidth,L],["L",this.chartWidth,B],["L",A,B],["Z"]]:this.scrollablePixelsY?h=[["M",m,0],["L",m,this.plotTop-1],["L",T,this.plotTop-1],["L",T,0],["Z"],["M",m,g],["L",m,this.chartHeight],["L",T,this.chartHeight],["L",T,g],["Z"]]:h=[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:h})},I(s,"afterInit",function(){this.chart.scrollableDirty=!0}),I(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:I,merge:j,pick:C}=o;class p{constructor(O,S,_,N,M){const b=O.chart.inverted,F=O.reversed;this.axis=O;const P=this.isNegative=!!_!=!!F;this.options=S=S||{},this.x=N,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=M,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:S.align||(b?P?"left":"right":"center"),verticalAlign:S.verticalAlign||(b?"middle":P?"bottom":"top"),y:S.y,x:S.x},this.textAlign=S.textAlign||(b?P?"right":"left":"center")}destroy(){w(this,this.axis)}render(O){const S=this.axis.chart,_=this.options,N=_.format,M=N?c(N,this,S):_.formatter.call(this);if(this.label)this.label.attr({text:M,visibility:"hidden"});else{this.label=S.renderer.label(M,null,void 0,_.shape,void 0,void 0,_.useHTML,!1,"stack-labels");const b={r:_.borderRadius||0,text:M,padding:C(_.padding,5),visibility:"hidden"};S.styledMode||(b.fill=_.backgroundColor,b.stroke=_.borderColor,b["stroke-width"]=_.borderWidth,this.label.css(_.style||{})),this.label.attr(b),this.label.added||this.label.add(O)}this.label.labelrank=S.plotSizeY,y(this,"afterRender")}setOffset(O,S,_,N,M,b){const{alignOptions:F,axis:P,label:L,options:m,textAlign:B}=this,T=P.chart,A=this.getStackBox({xOffset:O,width:S,boxBottom:_,boxTop:N,defaultX:M,xAxis:b}),{verticalAlign:g}=F;if(L&&A){const h=L.getBBox(),n=L.padding;let l=C(m.overflow,"justify")==="justify",f;F.x=m.x||0,F.y=m.y||0;const{x:k,y:v}=this.adjustStackPosition({labelBox:h,verticalAlign:g,textAlign:B});A.x-=k,A.y-=v,L.align(F,!1,A),f=T.isInsidePlot(L.alignAttr.x+F.x+k,L.alignAttr.y+F.y+v),f||(l=!1),l&&u.prototype.justifyDataLabel.call(P,L,F,L.alignAttr,h,A),L.attr({x:L.alignAttr.x,y:L.alignAttr.y,rotation:m.rotation,rotationOriginX:h.width/2,rotationOriginY:h.height/2}),C(!l&&m.crop,!0)&&(f=I(L.x)&&I(L.y)&&T.isInsidePlot(L.x-n+L.width,L.y)&&T.isInsidePlot(L.x+n,L.y)),L[f?"show":"hide"]()}y(this,"afterSetOffset",{xOffset:O,width:S})}adjustStackPosition({labelBox:O,verticalAlign:S,textAlign:_}){const N={bottom:0,middle:1,top:2,right:1,center:0,left:-1},M=N[S],b=N[_];return{x:O.width/2+O.width/2*b,y:O.height/2*M}}getStackBox(O){const S=this,_=this.axis,N=_.chart,{boxTop:M,defaultX:b,xOffset:F,width:P,boxBottom:L}=O,m=_.stacking.usePercentage?100:C(M,this.total,0),B=_.toPixels(m),T=O.xAxis||N.xAxis[0],A=C(b,T.translate(this.x))+F,g=_.toPixels(L||I(_.min)&&_.logarithmic&&_.logarithmic.lin2log(_.min)||0),h=Math.abs(B-g),n=N.inverted,l=S.isNegative;return n?{x:(l?B:B-h)-N.plotLeft,y:T.height-A-P,width:h,height:P}:{x:A+T.transB-N.plotLeft,y:(l?B-h:B)-N.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:I,correctFloat:j,defined:C,destroyObjectProperties:p,fireEvent:x,isArray:O,isNumber:S,objectEach:_,pick:N}=u;function M(){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,N(l.options.stack,""),n?f.top:f.left,n?f.height:f.width].join(","))})}function b(){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 A(this))}function P(h,n,l,f){return!C(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 L(){const h=this,n=h.yAxis,l=h.stackKey,f=n.stacking.stacks,k=h.processedXData,v=h.options.stacking,G=h[v+"Stacker"];let U;G&&[l,"-"+l].forEach(D=>{let H=k.length,z,W,d;for(;H--;)z=k[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]=j(h[0]*f),h[1]=j(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,k=f.processedXData,v=f.processedYData,G=[],U=v.length,D=f.options,H=D.threshold,z=N(D.startFromThreshold&&H,0),W=D.stack,d=h?`${f.type},${l}`:f.stackKey,R="-"+d,Z=f.negStacks,J=l==="group"?n.yAxis[0]:f.yAxis,Y=J.stacking.stacks,ee=J.stacking.oldStacks;let E,V,X,Q,ie,K,oe,ce,ne;for(J.stacking.stacksTouched+=1,oe=0;oe<U;oe++)ce=k[oe],ne=v[oe],E=f.getStackIndicator(E,ce,f.index),K=E.key,V=Z&&ne<(z?0:H),ie=V?R:d,Y[ie]||(Y[ie]={}),Y[ie][ce]||(ee[ie]&&ee[ie][ce]?(Y[ie][ce]=ee[ie][ce],Y[ie][ce].total=null):Y[ie][ce]=new c(J,J.options.stackLabels,!!V,ce,W)),X=Y[ie][ce],ne!==null?(X.points[K]=X.points[f.index]=[N(X.cumulative,z)],C(X.cumulative)||(X.base=K),X.touched=J.stacking.stacksTouched,E.index>0&&f.singleStacks===!1&&(X.points[K][0]=X.points[f.index+","+ce+",0"][0])):X.points[K]=X.points[f.index]=null,l==="percent"?(Q=V?d:R,Z&&Y[Q]&&Y[Q][ce]?(Q=Y[Q][ce],X.total=Q.total=Math.max(Q.total,X.total)+Math.abs(ne)||0):X.total=j(X.total+(Math.abs(ne)||0))):l==="group"?(O(ne)&&(ne=ne[0]),ne!==null&&(X.total=(X.total||0)+1)):X.total=j(X.total+(ne||0)),l==="group"?X.cumulative=(X.total||1)-1:X.cumulative=j(N(X.cumulative,z)+(ne||0)),ne!==null&&(X.points[K].push(X.cumulative),G[oe]=X.cumulative,X.hasValidPoints=!0);l==="percent"&&(J.stacking.usePercentage=!0),l!=="group"&&(this.stackedYData=G),J.stacking.oldStacks={}}class A{constructor(n){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=n}buildStacks(){const n=this,l=n.axis,f=l.series,k=l.options.reversedStacks,v=f.length;let G,U;for(n.usePercentage=!1,U=v;U--;)G=f[k?U:v-U-1],G.setStackedPoints(),G.setGroupedPoints();for(U=0;U<v;U++)f[U].modifyStacks();x(l,"afterBuildStacks")}cleanStacks(){const n=this;let l;n.oldStacks&&(l=n.stacks=n.oldStacks),_(l,function(f){_(f,function(k){k.cumulative=k.total})})}resetStacks(){_(this.stacks,n=>{_(n,(l,f)=>{S(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,k=f.renderer,v=n.stacks,G=l.options.stackLabels&&l.options.stackLabels.animation,U=w(f,G||!1),D=n.stackTotalGroup=n.stackTotalGroup||k.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 g;return function(h){const n=[];function l(f,k,v){if(u.pushUnique(n,f)&&(I(f,"init",F),I(f,"destroy",b)),u.pushUnique(n,k)){const G=k.prototype;G.getStacks=M}if(u.pushUnique(n,v)){const G=v.prototype;G.getStackIndicator=P,G.modifyStacks=L,G.percentStacker=m,G.setGroupedPoints=B,G.setStackedPoints=T}}h.compose=l}(g||(g={})),g}),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 I=this,j=this.options,C=(this.gappedPath||this.getGraphPath).call(this),p=this.chart.styledMode;let x=[["graph","highcharts-graph"]];p||x[0].push(j.lineColor||this.color||"#cccccc",j.dashStyle),x=I.getZonesGraphs(x),x.forEach(function(O,S){const _=O[0];let N,M=I[_];const b=M?"animate":"attr";M?(M.endX=I.preventGraphAnimation?null:C.xMap,M.animate({d:C})):C.length&&(I[_]=M=I.chart.renderer.path(C).addClass(O[1]).attr({zIndex:1}).add(I.group)),M&&!p&&(N={stroke:O[2],"stroke-width":j.lineWidth||0,fill:I.fillGraph&&I.color||"none"},O[3]?N.dashstyle=O[3]:j.linecap!=="square"&&(N["stroke-linecap"]=N["stroke-linejoin"]="round"),M[b](N).shadow(S<2&&j.shadow)),M&&(M.startX=C.xMap,M.isArea=C.isArea)})}getGraphPath(I,j,C){const p=this,x=p.options,O=[],S=[];let _,N=x.step;I=I||p.points;const M=I.reversed;return M&&I.reverse(),N={right:1,center:2}[N]||N&&3,N&&M&&(N=4-N),I=this.getValidPoints(I,!1,!(x.connectNulls&&!j&&!C)),I.forEach(function(b,F){const P=b.plotX,L=b.plotY,m=I[F-1],B=b.isNull||typeof L!="number";let T;(b.leftCliff||m&&m.rightCliff)&&!C&&(_=!0),B&&!c(j)&&F>0?_=!x.connectNulls:B&&!j?_=!0:(F===0||_?T=[["M",b.plotX,b.plotY]]:p.getPointSpline?T=[p.getPointSpline(I,b,F)]:N?(N===1?T=[["L",m.plotX,L]]:N===2?T=[["L",(m.plotX+P)/2,m.plotY],["L",(m.plotX+P)/2,L]]:T=[["L",P,m.plotY]],T.push(["L",P,L])):T=[["L",P,L]],S.push(b.x),N&&(S.push(b.x),N===2&&S.push(b.x)),O.push.apply(O,T),_=!1)}),O.xMap=S,p.graphPath=O,O}getZonesGraphs(I){return this.zones.forEach(function(j,C){const p=["zone-graph-"+C,"highcharts-graph highcharts-zone-graph-"+C+" "+(j.className||"")];this.chart.styledMode||p.push(j.color||this.color,j.dashStyle||this.options.dashStyle),I.push(p)},this),I}}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:I}=o;class j 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,x=this.areaPath,O=this.options,S=this.zones,_=[["area","highcharts-area",this.color,O.fillColor]];S.forEach(function(N,M){_.push(["zone-area-"+M,"highcharts-area highcharts-zone-area-"+M+" "+N.className,N.color||p.color,N.fillColor||O.fillColor])}),_.forEach(function(N){const M=N[0],b={};let F=p[M];const P=F?"animate":"attr";F?(F.endX=p.preventGraphAnimation?null:x.xMap,F.animate({d:x})):(b.zIndex=0,F=p[M]=p.chart.renderer.path(x).addClass(N[1]).add(p.group),F.isArea=!0),p.chart.styledMode||(N[3]?b.fill=N[3]:(b.fill=N[2],b["fill-opacity"]=I(O.fillOpacity,.75))),F[P](b),F.startX=x.xMap,F.shiftUnit=O.step?2:1})}getGraphPath(p){const x=c.prototype.getGraphPath,O=this.options,S=O.stacking,_=this.yAxis,N=[],M=[],b=this.index,F=_.stacking.stacks[this.stackKey],P=O.threshold,L=Math.round(_.getThreshold(O.threshold)),m=I(O.connectNulls,S==="percent"),B=function(v,G,U){const D=p[v],H=S&&F[D.x].points[b],z=D[U+"Null"]||0,W=D[U+"Cliff"]||0;let d,R,Z=!0;W||z?(d=(z?H[0]:H[1])+W,R=H[0]+W,Z=!!z):!S&&p[G]&&p[G].isNull&&(d=R=P),typeof d<"u"&&(M.push({plotX:T,plotY:d===null?L:_.getThreshold(d),isNull:Z,isCliff:!0}),N.push({plotX:T,plotY:R===null?L:_.getThreshold(R),doCurve:!1}))};let T,A,g;p=p||this.points,S&&(p=this.getStackPoints(p));for(let v=0,G=p.length;v<G;++v)S||(p[v].leftCliff=p[v].rightCliff=p[v].leftNull=p[v].rightNull=void 0),A=p[v].isNull,T=I(p[v].rectPlotX,p[v].plotX),g=S?I(p[v].yBottom,L):L,(!A||m)&&(m||B(v,v-1,"left"),A&&!S&&m||(M.push(p[v]),N.push({x:v,plotX:T,plotY:g})),m||B(v,v+1,"right"));const h=x.call(this,M,!0,!0);N.reversed=!0;const n=x.call(this,N,!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 k=x.call(this,M,!1,m);return f.xMap=h.xMap,this.areaPath=f,k}getStackPoints(p){const x=this,O=[],S=[],_=this.xAxis,N=this.yAxis,M=N.stacking.stacks[this.stackKey],b={},F=N.series,P=F.length,L=N.options.reversedStacks?1:-1,m=F.indexOf(x);if(p=p||this.points,this.options.stacking){for(let T=0;T<p.length;T++)p[T].leftNull=p[T].rightNull=void 0,b[p[T].x]=p[T];y(M,function(T,A){T.total!==null&&S.push(A)}),S.sort(function(T,A){return T-A});const B=F.map(T=>T.visible);S.forEach(function(T,A){let g=0,h,n;if(b[T]&&!b[T].isNull)O.push(b[T]),[-1,1].forEach(function(l){const f=l===1?"rightNull":"leftNull",k=l===1?"rightCliff":"leftCliff",v=M[S[A+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===x.index?b[T][f]=!0:B[U]&&(n=M[T].points[D],n&&(G-=n[1]-n[0]))),U+=L}}b[T][k]=G});else{let l=m;for(;l>=0&&l<P;){const f=F[l].index;if(h=M[T].points[f],h){g=h[1];break}l+=L}g=I(g,0),g=N.translate(g,0,1,0,1),O.push({isNull:!0,plotX:_.translate(T,0,0,0,1),x:T,plotY:g,yBottom:g})}})}return O}}return j.defaultOptions=w(c.defaultOptions,{threshold:0,legendSymbol:"rectangle"}),u(j.prototype,{singleStacks:!1}),s.registerSeriesType("area",j),j}),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(I,j,C){const O=j.plotX||0,S=j.plotY||0,_=I[C-1],N=I[C+1];let M,b,F,P;function L(B){return B&&!B.isNull&&B.doCurve!==!1&&!j.isCliff}if(L(_)&&L(N)){const B=_.plotX||0,T=_.plotY||0,A=N.plotX||0,g=N.plotY||0;let h=0;M=(1.5*O+B)/2.5,b=(1.5*S+T)/2.5,F=(1.5*O+A)/2.5,P=(1.5*S+g)/2.5,F!==M&&(h=(P-b)*(F-O)/(F-M)+S-P),b+=h,P+=h,b>T&&b>S?(b=Math.max(T,S),P=2*S-b):b<T&&b<S&&(b=Math.min(T,S),P=2*S-b),P>g&&P>S?(P=Math.max(g,S),b=2*S-P):P<g&&P<S&&(P=Math.min(g,S),b=2*S-P),j.rightContX=F,j.rightContY=P}const m=["C",u(_.rightContX,_.plotX,0),u(_.rightContY,_.plotY,0),u(M,O,0),u(b,S,0),O,S];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 I extends i{constructor(){super(...arguments),this.data=void 0,this.points=void 0,this.options=void 0}}return I.defaultOptions=y(i.defaultOptions,c.defaultOptions),w(I.prototype,{getGraphPath:u.getGraphPath,getStackPoints:u.getStackPoints,drawGraph:u.drawGraph}),s.registerSeriesType("areaspline",I),I}),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:I}=i,{parse:j}=s,{hasTouch:C,noop:p}=c,{clamp:x,defined:O,extend:S,fireEvent:_,isArray:N,isNumber:M,merge:b,pick:F,objectEach:P,relativeLength:L}=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 A=this,g=this.yAxis,h=g.pos,n=A.options,l=this.chart.inverted,f={},k=l?"translateX":"translateY";let v,G;T?(f.scaleY=.001,G=x(g.toPixels(n.threshold),h,h+g.len),l?f.translateX=G-g.len:f.translateY=G,A.clipBox&&A.setClip(),A.group.attr(f)):(v=Number(A.group.attr(k)),A.group.animate({scaleY:1},S(I(A.options.animation),{step:function(U,D){A.group&&(f[k]=v+D.pos*(h-v),A.group.attr(f))}})))}init(T,A){super.init.apply(this,arguments);const g=this;T=g.chart,T.hasRendered&&T.series.forEach(function(h){h.type===g.type&&(h.isDirty=!0)})}getColumnMetrics(){const T=this,A=T.options,g=T.xAxis,h=T.yAxis,n=g.options.reversedStacks,l=g.reversed&&!n||!g.reversed&&n,f={};let k,v=0;A.grouping===!1?v=1:T.chart.series.forEach(function(Z){const J=Z.yAxis,Y=Z.options;let ee;Z.type===T.type&&(Z.visible||!T.chart.options.chart.ignoreHiddenSeries)&&h.len===J.len&&h.pos===J.pos&&(Y.stacking&&Y.stacking!=="group"?(k=Z.stackKey,typeof f[k]>"u"&&(f[k]=v++),ee=f[k]):Y.grouping!==!1&&(ee=v++),Z.columnIndex=ee)});const G=Math.min(Math.abs(g.transA)*(g.ordinal&&g.ordinal.slope||A.pointRange||g.closestPointRange||g.tickInterval||1),g.len),U=G*A.groupPadding,D=G-2*U,H=D/(v||1),z=Math.min(A.maxPointWidth||g.len,F(A.pointWidth,H*(1-2*A.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,A,g,h){this.chart;const n=this.borderWidth,l=-(n%2?.5:0);let f,k=n%2?.5:1;this.options.crisp&&(f=Math.round(T+g)+l,T=Math.round(T)+l,g=f-T);const v=Math.round(A+h)+k,G=Math.abs(A)<=.5&&v>.5;return A=Math.round(A)+k,h=v-A,G&&h&&(A-=1,h+=1),{x:T,y:A,width:g,height:h}}adjustForMissingColumns(T,A,g,h){const n=this.options.stacking;if(!g.isNull&&h.columnCount>1){const l=this.yAxis.options.reversedStacks;let f=0,k=l?0:-h.columnCount;P(this.yAxis.stacking&&this.yAxis.stacking.stacks,G=>{if(typeof g.x=="number"){const U=G[g.x.toString()];if(U){const D=U.points[this.index];if(n)D&&(f=k),U.hasValidPoints&&(l?k++:k--);else if(N(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),k=H.length}}}});const v=(k-1)*h.paddedWidth+A;T=(g.plotX||0)+v/2-A-f*h.paddedWidth}return T}translate(){const T=this,A=T.chart,g=T.options,h=T.dense=T.closestPointRange*T.xAxis.transA<2,n=T.borderWidth=F(g.borderWidth,h?0:1),l=T.xAxis,f=T.yAxis,k=g.threshold,v=F(g.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(k);A.inverted&&(d-=.5),g.pointPadding&&(W=Math.ceil(W)),u.prototype.translate.apply(T),T.points.forEach(function(R){const Z=F(R.yBottom,d),J=999+Math.abs(Z),Y=R.plotX||0,ee=x(R.plotY,-J,f.len+J);R.stackBox;let E,V=Math.min(ee,Z),X=Math.max(ee,Z)-V,Q=U,ie=Y+D,K=W;v&&Math.abs(X)<v&&(X=v,E=!f.reversed&&!R.negative||f.reversed&&R.negative,M(k)&&M(z)&&R.y===k&&z<=k&&(f.min||0)<k&&(H!==z||(f.max||0)<=k)&&(E=!E,R.negative=!R.negative),V=Math.abs(V-d)>v?Z-v:d-(E?v:0)),O(R.options.pointWidth)&&(Q=K=Math.ceil(R.options.pointWidth),ie-=Math.round((Q-U)/2)),g.centerInCategory&&(ie=T.adjustForMissingColumns(ie,Q,R,G)),R.barX=ie,R.pointWidth=Q,R.tooltipPos=A.inverted?[x(f.len+f.pos-A.plotLeft-ee,f.pos-A.plotLeft,f.len+f.pos-A.plotLeft),l.len+l.pos-A.plotTop-ie-K/2,X]:[l.left-A.plotLeft+ie+K/2,x(ee+f.pos-A.plotTop,f.pos-A.plotTop,f.len+f.pos-A.plotTop),X],R.shapeType=T.pointClass.prototype.shapeType||"roundedRect",R.shapeArgs=T.crispCol(ie,R.isNull?d:V,K,R.isNull?0:X)}),_(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(T,A){const g=this.options,h=this.pointAttrToOptions||{},n=h.stroke||"borderColor",l=h["stroke-width"]||"borderWidth";let f,k,v,G=T&&T.color||this.color,U=T&&T[n]||g[n]||G,D=T&&T.options.dashStyle||g.dashStyle,H=T&&T[l]||g[l]||this[l]||0,z=F(T&&T.opacity,g.opacity,1);T&&this.zones.length&&(k=T.getZone(),G=T.options.color||k&&(k.color||T.nonZonedColor)||this.color,k&&(U=k.borderColor||U,D=k.dashStyle||D,H=k.borderWidth||H)),A&&T&&(f=b(g.states[A],T.options.states&&T.options.states[A]||{}),v=f.brightness,G=f.color||typeof v<"u"&&j(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 A=this,g=this.chart,h=A.options,n=g.renderer,l=h.animationLimit||250;let f;T.forEach(function(k){const v=k.plotY;let G=k.graphic,U=!!G,D=G&&g.pointCount<l?"animate":"attr";M(v)&&k.y!==null?(f=k.shapeArgs,G&&k.hasNewShapeType()&&(G=G.destroy()),A.enabledDataSorting&&(k.startXPos=A.xAxis.reversed?-(f&&f.width||0):A.xAxis.width),G||(k.graphic=G=n[k.shapeType](f).add(k.group||A.group),G&&A.enabledDataSorting&&g.hasRendered&&g.pointCount<l&&(G.attr({x:k.startXPos}),U=!0,D="animate")),G&&U&&G[D](b(f)),g.styledMode||G[D](A.pointAttribs(k,k.selected&&"select")).shadow(k.allowShadow!==!1&&h.shadow),G&&(G.addClass(k.getClassName(),!0),G.attr({visibility:k.visible?"inherit":"hidden"}))):G&&(k.graphic=G.destroy())})}drawTracker(T=this.points){const A=this,g=A.chart,h=g.pointer,n=function(f){const k=h.getPointFromEvent(f);typeof k<"u"&&A.options.enableMouseTracking&&(h.isDirectTouch=!0,k.onMouseOver(f))};let l;T.forEach(function(f){l=N(f.dataLabels)?f.dataLabels:f.dataLabel?[f.dataLabel]:[],f.graphic&&(f.graphic.element.point=f),l.forEach(function(k){k.div?k.div.point=f:k.element.point=f})}),A._hasTracking||(A.trackerGroups.forEach(function(f){A[f]&&(A[f].addClass("highcharts-tracker").on("mouseover",n).on("mouseout",function(k){h.onTrackerMouseOut(k)}),C&&A[f].on("touchstart",n),!g.styledMode&&A.options.cursor&&A[f].css({cursor:A.options.cursor}))}),A._hasTracking=!0),_(this,"afterDrawTracker")}remove(){const T=this,A=T.chart;A.hasRendered&&A.series.forEach(function(g){g.type===T.type&&(g.isDirty=!0)}),u.prototype.remove.apply(T,arguments)}}return m.defaultOptions=b(u.defaultOptions,o),S(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:I,isArray:j,isString:C,merge:p,objectEach:x,pick:O,splat:S}=o;var _;return function(N){const M=[];function b(h,n,l,f,k){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}),Z=Q=>{D&&v.xAxis&&!E&&v.setDataLabelStartPos(h,n,k,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),ie=[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},ie=[Q.x-Number(n.attr("x")),Q.y-Number(n.attr("y"))],Z(ee),n[k?"attr":"animate"](ee)):(Z(f),n.align(l,void 0,f),ee=n.alignAttr),E&&f.height>=0)this.justifyDataLabel(n,l,ee,Q,f,k);else if(O(l.crop,!0)){let{x:K,y:oe}=ee;K+=ie[0],oe+=ie[1],V=G.isInsidePlot(K,oe,{paneCoordinates:!0,series:v})&&G.isInsidePlot(K+Q.width,oe+Q.height,{paneCoordinates:!0,series:v})}l.shape&&!W&&n[k?"attr":"animate"]({anchorX:X[0],anchorY:X[1]})}k&&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,k=h[l.property],v=l.value;return f===">"&&k>v||f==="<"&&k<v||f===">="&&k>=v||f==="<="&&k<=v||f==="=="&&k==v||f==="==="&&k===v}return!0}function P(h){if(o.pushUnique(M,h)){const n=h.prototype;n.initDataLabelsGroup=L,n.initDataLabels=m,n.alignDataLabel=b,n.drawDataLabels=B,n.justifyDataLabel=T,n.setDataLabelStartPos=g}}N.compose=P;function L(){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,k=f.chart,v=f.options,G=k.renderer,{backgroundColor:U,plotBackgroundColor:D}=k.options.chart,H=k.options.plotOptions,z=G.getContrast(C(D)&&D||C(U)&&U||"#000000");let W=v.dataLabels,d,R;const Z=S(W)[0],J=Z.animation,Y=Z.defer?c(k,J,f):{defer:0,duration:0};W=A(A((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),I(this,"drawDataLabels"),(j(W)||W.enabled||f._hasPointLabels)&&(R=this.initDataLabels(Y),h.forEach(ee=>{var E;const V=ee.dataLabels||[];d=S(A(W,ee.dlOptions||((E=ee.options)===null||E===void 0?void 0:E.dataLabels))),d.forEach((Q,ie)=>{var K;const oe=Q.enabled&&(!ee.isNull||ee.dataLabelOnNull)&&F(ee,Q),ce=ee.connectors?ee.connectors[ie]:ee.connector,ne=Q.style||{};let pe,te,re,q,ae={},se=V[ie],he=!se;const fe=O(Q.distance,ee.labelDistance);if(oe){if(te=O(Q[ee.formatPrefix+"Format"],Q.format),pe=ee.getLabelConfig(),re=w(te)?u(te,pe,k):(Q[ee.formatPrefix+"Formatter"]||Q.formatter).call(pe,Q),q=Q.rotation,k.styledMode||(ne.color=O(Q.color,ne.color,C(f.color)?f.color:void 0,"#000000"),ne.color==="contrast"?(ee.contrastColor=G.getContrast(ee.color||f.color),ne.color=!w(fe)&&Q.inside||(fe||0)<0||v.stacking?ee.contrastColor:z):delete ee.contrastColor,v.cursor&&(ne.cursor=v.cursor)),ae={r:Q.borderRadius||0,rotation:q,padding:Q.padding,zIndex:1},!k.styledMode){const{backgroundColor:ye,borderColor:me}=Q;ae.fill=ye==="auto"?ee.color:ye,ae.stroke=me==="auto"?ee.color:me,ae["stroke-width"]=Q.borderWidth}x(ae,(ye,me)=>{typeof ye>"u"&&delete ae[me]})}if(se&&(!oe||!w(re)||!!se.div!=!!Q.useHTML||(!se.rotation||!Q.rotation)&&se.rotation!==Q.rotation)&&(se=void 0,he=!0,ce&&ee.connector&&(ee.connector=ee.connector.destroy(),ee.connectors&&(ee.connectors.length===1?delete ee.connectors:delete ee.connectors[ie]))),oe&&w(re)&&(se?ae.text=re:(se=q?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"),se&&se.addClass(" highcharts-data-label-color-"+ee.colorIndex+" "+(Q.className||"")+(Q.useHTML?" highcharts-tracker":""))),se)){se.options=Q,se.attr(ae),k.styledMode||se.css(ne).shadow(Q.shadow);const ye=Q[ee.formatPrefix+"TextPath"]||Q.textPath;ye&&!Q.useHTML&&(se.setTextPath(((K=ee.getDataLabelPath)===null||K===void 0?void 0:K.call(ee,se))||ee.graphic,ye),ee.dataLabelPath&&!ye.enabled&&(ee.dataLabelPath=ee.dataLabelPath.destroy())),se.added||se.add(R),f.alignDataLabel(ee,se,Q,void 0,he),se.isActive=!0,V[ie]&&V[ie]!==se&&V[ie].destroy(),V[ie]=se}});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})),I(this,"afterDrawDataLabels")}function T(h,n,l,f,k,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,k)),R}function A(h,n){let l=[],f;if(j(h)&&!j(n))l=h.map(function(k){return p(k,n)});else if(j(n)&&!j(h))l=n.map(function(k){return p(h,k)});else if(!j(h)&&!j(n))l=p(h,n);else if(j(h)&&j(n))for(f=Math.max(h.length,n.length);f--;)l[f]=p(h[f],n[f]);return l}function g(h,n,l,f,k){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?k.x:D?-H-W:U.width-H+W,n.startYPos=G?D?this.yAxis.height-H+W:-H-W:k.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(I){const j=[];function C(x,O,S,_,N){let M=this.chart.inverted,b=x.series,F=(b.xAxis?b.xAxis.len:this.chart.plotSizeX)||0,P=(b.yAxis?b.yAxis.len:this.chart.plotSizeY)||0,L=x.dlBox||x.shapeArgs,m=w(x.below,x.plotY>w(this.translatedThreshold,P)),B=w(S.inside,!!this.options.stacking),T;L&&(_=u(L),_.y<0&&(_.height+=_.y,_.y=0),T=_.y+_.height-P,T>0&&T<_.height&&(_.height-=T),M&&(_={x:P-_.y-_.height,y:F-_.x-_.width,width:_.height,height:_.width}),B||(M?(_.x+=m?0:_.width,_.width=0):(_.y+=m?_.height:0,_.height=0))),S.align=w(S.align,!M||B?"center":m?"right":"left"),S.verticalAlign=w(S.verticalAlign,M||B?"middle":m?"top":"bottom"),c.prototype.alignDataLabel.call(this,x,O,S,_,N),S.inside&&x.contrastColor&&O.css({color:x.contrastColor})}function p(x){i.compose(c),o.pushUnique(j,x)&&(x.prototype.alignDataLabel=C)}I.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:I}=o;class j extends u{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}applyJitter(){const p=this,x=this.options.jitter,O=this.points.length;function S(_){const N=Math.sin(_)*1e4;return N-Math.floor(N)}x&&this.points.forEach(function(_,N){["x","y"].forEach(function(M,b){let F,P="plot"+M.toUpperCase(),L,m,B;x[M]&&!_.isNull&&(F=p[M+"Axis"],B=x[M]*F.transA,F&&!F.isLog&&(L=Math.max(0,_[P]-B),m=Math.min(F.len,_[P]+B),_[P]=L+(m-L)*S(N+b*O),M==="x"&&(_.clientX=_.plotX)))})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return j.defaultOptions=I(u.defaultOptions,i),y(j.prototype,{drawTracker:c.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),w(j,"afterTranslate",function(){this.applyJitter()}),s.registerSeriesType("scatter",j),j}),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:I}=o;var j;return function(C){function p(){const O=this.options,S=this.chart,_=2*(O.slicedOffset||0),N=S.plotWidth-2*_,M=S.plotHeight-2*_,b=O.center,F=Math.min(N,M),P=O.thickness;let L,m=O.size,B=O.innerSize||0,T,A;typeof m=="string"&&(m=parseFloat(m)),typeof B=="string"&&(B=parseFloat(B));const g=[y(b[0],"50%"),y(b[1],"50%"),y(m&&m<0?void 0:O.size,"100%"),y(B&&B<0?void 0:O.innerSize||0,"0%")];for(S.angular&&!(this instanceof s)&&(g[3]=0),T=0;T<4;++T)A=g[T],L=T<2||T===2&&/%$/.test(A),g[T]=I(A,[N,M,F,g[2]][T])+(L?_:0);return g[3]>g[2]&&(g[3]=g[2]),w(P)&&P*2<g[2]&&P>0&&(g[3]=g[2]-P*2),u(this,"afterGetCenter",{positions:g}),g}C.getCenter=p;function x(O,S){const _=w(O)?O:0,N=w(S)&&S>_&&S-_<360?S:_+360,M=-90;return{start:c*(_+M),end:c*(N+M)}}C.getStartAndEndRadians=x}(j||(j={})),j}),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:I,pick:j,relativeLength:C}=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,S=this.series.options.dataLabels,_=this.connectorShapes;let N=S.connectorShape;return _[N]&&(N=_[N]),N.call(this,{x:O.computed.x,y:O.computed.y,alignment:O.alignment},O.connectorPosition,S)}getTranslate(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}haloPath(O){const S=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(S.x,S.y,S.r+O,S.r+O,{innerR:S.r-1,start:S.start,end:S.end,borderRadius:S.borderRadius})}init(){super.init.apply(this,arguments),this.name=j(this.name,"Slice");const O=S=>{this.slice(S.type==="select")};return u(this,"select",O),u(this,"unselect",O),this}isValid(){return I(this.y)&&this.y>=0}setVisible(O,S){const _=this.series,N=_.chart,M=_.options.ignoreHiddenPoint;S=j(S,M),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(b=>{this[b]&&this[b][O?"show":"hide"](O)}),this.legendItem&&N.legend.colorizeItem(this,O),!O&&this.state==="hover"&&this.setState(""),M&&(_.isDirty=!0),S&&N.redraw())}slice(O,S,_){const N=this.series,M=N.chart;c(_,M),S=j(S,!0),this.sliced=this.options.sliced=O=w(O)?O:!this.sliced,N.options.data[N.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return y(p.prototype,{connectorShapes:{fixedOffset:function(x,O,S){const _=O.breakAt,N=O.touchingSliceAt,M=S.softConnector?["C",x.x+(x.alignment==="left"?-5:5),x.y,2*_.x-N.x,2*_.y-N.y,_.x,_.y]:["L",_.x,_.y];return[["M",x.x,x.y],M,["L",N.x,N.y]]},straight:function(x,O){const S=O.touchingSliceAt;return[["M",x.x,x.y],["L",S.x,S.y]]},crookedLine:function(x,O,S){const{breakAt:_,touchingSliceAt:N}=O,{series:M}=this,[b,F,P]=M.center,L=P/2,m=M.chart.plotWidth,B=M.chart.plotLeft,T=x.alignment==="left",{x:A,y:g}=x;let h=_.x;if(S.crookDistance){const l=C(S.crookDistance,1);h=T?b+L+(m+B-b-L)*(1-l):B+(b-L)*l}else h=b+(F-g)*Math.tan((this.angle||0)-Math.PI/2);const n=[["M",A,g]];return(T?h<=A&&h>=_.x:h>=A&&h<=_.x)&&n.push(["L",h,g]),n.push(["L",_.x,_.y],["L",N.x,N.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,I,j){const{getStartAndEndRadians:C}=i,{noop:p}=o,{clamp:x,extend:O,fireEvent:S,merge:_,pick:N,relativeLength:M}=j;class b 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 L=this,m=L.points,B=L.startAngleRad;P||m.forEach(function(T){const A=T.graphic,g=T.shapeArgs;A&&g&&(A.attr({r:N(T.startR,L.center&&L.center[3]/2),start:B,end:B}),A.animate({r:g.r,start:g.start,end:g.end},L.options.animation))})}drawEmpty(){const P=this.startAngleRad,L=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,L).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:I.arc(B,T,this.center[2]/2,0,{start:P,end:L,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(L){L.graphic&&L.hasNewShapeType()&&(L.graphic=L.graphic.destroy()),L.graphic||(L.graphic=P[L.shapeType](L.shapeArgs).add(L.series.group),L.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(P,L,m){const B=this.center,T=this.radii?this.radii[m.index]||0:B[2]/2,A=Math.asin(x((P-B[1])/(T+m.labelDistance),-1,1));return B[0]+(L?-1:1)*(Math.cos(A)*(T+m.labelDistance))+(m.labelDistance>0?(L?-1:1)*this.options.dataLabels.padding:0)}hasData(){return!!this.processedXData.length}redrawPoints(){const P=this,L=P.chart;let m,B,T,A;this.drawEmpty(),P.group&&!L.styledMode&&P.group.shadow(P.options.shadow),P.points.forEach(function(g){const h={};B=g.graphic,!g.isNull&&B?(A=g.shapeArgs,m=g.getTranslate(),L.styledMode||(T=P.pointAttribs(g,g.selected&&"select")),g.delayedRendering?(B.setRadialReference(P.center).attr(A).attr(m),L.styledMode||B.attr(T).attr({"stroke-linejoin":"round"}),g.delayedRendering=!1):(B.setRadialReference(P.center),L.styledMode||_(!0,h,T),_(!0,h,A,m),B.animate(h)),B.attr({visibility:g.visible?"inherit":"hidden"}),B.addClass(g.getClassName(),!0)):B&&(g.graphic=B.destroy())})}sortByAngle(P,L){P.sort(function(m,B){return typeof m.angle<"u"&&(B.angle-m.angle)*L})}translate(P){S(this,"translate"),this.generatePoints();const L=this,m=1e3,B=L.options,T=B.slicedOffset,A=T+(B.borderWidth||0),g=C(B.startAngle,B.endAngle),h=L.startAngleRad=g.start,n=L.endAngleRad=g.end,l=n-h,f=L.points,k=B.dataLabels.distance,v=B.ignoreHiddenPoint,G=f.length;let U,D,H,z,W,d,R,Z,J=0;for(P||(L.center=P=L.getCenter()),R=0;R<G;R++){Z=f[R],D=h+J*l,Z.isValid()&&(!v||Z.visible)&&(J+=Z.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};Z.shapeType="arc",Z.shapeArgs=Y,Z.labelDistance=N(Z.options.dataLabels&&Z.options.dataLabels.distance,k),Z.labelDistance=M(Z.labelDistance,Y.r),L.maxLabelDistance=Math.max(L.maxLabelDistance||0,Z.labelDistance),z=(H+D)/2,z>1.5*Math.PI?z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI),Z.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,Z.tooltipPos=[P[0]+W*.7,P[1]+d*.7],Z.half=z<-Math.PI/2||z>Math.PI/2?1:0,Z.angle=z,U=Math.min(A,Z.labelDistance/5),Z.labelPosition={natural:{x:P[0]+W+Math.cos(z)*Z.labelDistance,y:P[1]+d+Math.sin(z)*Z.labelDistance},computed:{},alignment:Z.labelDistance<0?"center":Z.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}}}}S(L,"afterTranslate")}updateTotals(){const P=this.points,L=P.length,m=this.options.ignoreHiddenPoint;let B,T,A=0;for(B=0;B<L;B++)T=P[B],T.isValid()&&(!m||T.visible)&&(A+=T.y);for(this.total=A,B=0;B<L;B++)T=P[B],T.percentage=A>0&&(T.visible||!m)?T.y/A*100:0,T.total=A}}return b.defaultOptions=_(w.defaultOptions,u),O(b.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",b),b}),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:I}=c,{arrayMax:j,clamp:C,defined:p,merge:x,pick:O,relativeLength:S}=u;var _;return function(N){const M=[],b={radialDistributionY:function(B){return B.top+B.distributeBox.pos},radialDistributionX:function(B,T,A,g){return B.getX(A<T.top+2||A>T.bottom-2?g:A,T.half,T)},justify:function(B,T,A){return A[0]+(B.half?-1:1)*(T+B.labelDistance)},alignToPlotEdges:function(B,T,A,g){const h=B.getBBox().width;return T?h+g:A-h-g},alignToConnectors:function(B,T,A,g){let h=0,n;return B.forEach(function(l){n=l.dataLabel.getBBox().width,n>h&&(h=n)}),T?h+g:A-h-g}};function F(B){if(i.compose(I),u.pushUnique(M,B)){const T=B.prototype;T.dataLabelPositioners=b,T.alignDataLabel=w,T.drawDataLabels=P,T.placeDataLabels=L,T.verifyDataLabelOverflow=m}}N.compose=F;function P(){const B=this,T=B.data,A=B.chart,g=B.options.dataLabels||{},h=g.connectorPadding,n=A.plotWidth,l=A.plotHeight,f=A.plotLeft,k=Math.round(A.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,Z,J,Y,ee,E,V,X,Q,ie;!B.visible||!g.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)}),I.prototype.drawDataLabels.apply(B),T.forEach(function(K){K.dataLabel&&(K.visible?(D[K.half].push(K),K.dataLabel._pos=null,!p(g.style.width)&&!p(K.options.dataLabels&&K.options.dataLabels.style&&K.options.dataLabels.style.width)&&K.dataLabel.getBBox().width>k&&(K.dataLabel.css({width:Math.round(k*.7)+"px"}),K.dataLabel.shortened=!0)):(K.dataLabel=K.dataLabel.destroy(),K.dataLabels&&K.dataLabels.length===1&&delete K.dataLabels))}),D.forEach((K,oe)=>{const ce=K.length,ne=[];let pe,te,re,q,ae=0,se;if(ce)for(B.sortByAngle(K,oe-.5),B.maxLabelDistance>0&&(pe=Math.max(0,U-G-B.maxLabelDistance),te=Math.min(U+G+B.maxLabelDistance,A.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,A.plotHeight),ae=he.dataLabel.getBBox().height||21,he.distributeBox={target:he.labelPosition.natural.y-he.top+ae/2,size:ae,rank:he.y},ne.push(he.distributeBox))}),se=te+ae-pe,y(ne,se,se/5)),Q=0;Q<ce;Q++){if(W=K[Q],Y=W.labelPosition,Z=W.dataLabel,X=W.visible===!1?"hidden":"inherit",re=Y.natural.y,V=re,ne&&p(W.distributeBox)&&(typeof W.distributeBox.pos>"u"?X="hidden":(ee=W.distributeBox.size,V=z.radialDistributionY(W))),delete W.positionIndex,g.justify)E=z.justify(W,G,v);else switch(g.alignTo){case"connectors":E=z.alignToConnectors(K,oe,n,f);break;case"plotEdges":E=z.alignToPlotEdges(Z,oe,n,f);break;default:E=z.radialDistributionX(B,W,V,re)}Z._attr={visibility:X,align:Y.alignment},ie=W.options.dataLabels||{},Z._pos={x:E+O(ie.x,g.x)+({left:h,right:-h}[Y.alignment]||0),y:V+O(ie.y,g.y)-Z.getBBox().height/2},Y&&(Y.computed.x=E,Y.computed.y=V),O(g.crop,!0)&&(J=Z.getBBox().width,q=null,E-J<h&&oe===1?(q=Math.round(J-E+h),H[3]=Math.max(q,H[3])):E+J>n-h&&oe===0&&(q=Math.round(E+J-n+h),H[1]=Math.max(q,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])),Z.sideOverflow=q)}}),(j(H)===0||this.verifyDataLabelOverflow(H))&&(this.placeDataLabels(),this.points.forEach(function(K){if(ie=x(g,K.options.dataLabels),d=O(ie.connectorWidth,1),d){let oe;R=K.connector,Z=K.dataLabel,Z&&Z._pos&&K.visible&&K.labelDistance>0?(X=Z._attr.visibility,oe=!R,oe&&(K.connector=R=A.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+K.colorIndex+(K.className?" "+K.className:"")).add(B.dataLabelsGroup),A.styledMode||R.attr({"stroke-width":d,stroke:ie.connectorColor||K.color||"#666666"})),R[oe?"attr":"animate"]({d:K.getConnectorPath()}),R.attr("visibility",X)):R&&(K.connector=R.destroy())}})))}function L(){this.points.forEach(function(B){let T=B.dataLabel,A;T&&B.visible&&(A=T._pos,A?(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"](A),T.moved=!0):T&&T.attr({y:-9999})),delete B.distributeBox},this)}function m(B){let T=this.center,A=this.options,g=A.center,h=A.minSize||80,n=h,l=A.size!==null;return l||(g[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),g[1]!==null?n=C(n,h,T[2]-Math.max(B[0],B[2])):(n=C(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(A.thickness?Math.max(0,n-A.thickness*2):Math.max(0,S(A.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:I}=s;o(i,"render",function(){let p=this,x=[];(this.labelCollectors||[]).forEach(function(O){x=x.concat(O())}),(this.yAxis||[]).forEach(function(O){O.stacking&&O.options.stackLabels&&!O.options.stackLabels.allowOverlap&&y(O.stacking.stacks,function(S){y(S,function(_){_.label&&x.push(_.label)})})}),(this.series||[]).forEach(function(O){const S=O.options.dataLabels;if(O.visible&&!(S.enabled===!1&&!O._hasPointLabels)){const _=N=>N.forEach(M=>{M.visible&&(u(M.dataLabels)?M.dataLabels:M.dataLabel?[M.dataLabel]:[]).forEach(function(F){const P=F.options;F.labelrank=I(P.labelrank,M.labelrank,M.shapeArgs&&M.shapeArgs.height),P.allowOverlap?(F.oldOpacity=F.opacity,F.newOpacity=1,j(F,p)):x.push(F)})});_(O.nodes||[]),_(O.points)}}),this.hideOverlappingLabels(x)}),i.prototype.hideOverlappingLabels=function(C){let p=this,x=C.length,O=p.renderer,S,_,N,M,b,F,P,L=!1,m=function(T,A){return!(A.x>=T.x+T.width||A.x+A.width<=T.x||A.y>=T.y+T.height||A.y+A.height<=T.y)},B=function(T){let A,g,h,n=T.box?0:T.padding||0,l=0,f=0,k,v;if(T&&(!T.alignAttr||T.placed))return A=T.alignAttr||{x:T.attr("x"),y:T.attr("y")},g=T.parentGroup,T.width||(h=T.getBBox(),T.width=h.width,T.height=h.height,l=O.fontMetrics(T.element).h),k=T.width-2*n,v={left:"0",center:"0.5",right:"1"}[T.alignValue],v?f=+v*k:w(T.x)&&Math.round(T.x)!==T.translateX&&(f=T.x-T.translateX),{x:A.x+(g.translateX||0)+n-(f||0),y:A.y+(g.translateY||0)+n-l,width:T.width-2*n,height:T.height-2*n}};for(_=0;_<x;_++)S=C[_],S&&(S.oldOpacity=S.opacity,S.newOpacity=1,S.absoluteBox=B(S));for(C.sort(function(T,A){return(A.labelrank||0)-(T.labelrank||0)}),_=0;_<x;_++)for(M=C[_],F=M&&M.absoluteBox,N=_+1;N<x;++N)b=C[N],P=b&&b.absoluteBox,F&&P&&M!==b&&M.newOpacity!==0&&b.newOpacity!==0&&M.visibility!=="hidden"&&b.visibility!=="hidden"&&m(F,P)&&((M.labelrank<b.labelrank?M:b).newOpacity=0);C.forEach(function(T){j(T,p)&&(L=!0)}),L&&c(p,"afterHideAllOverlappingLabels")};function j(C,p){let x,O,S=!1;return C&&(O=C.newOpacity,C.oldOpacity!==O&&(C.alignAttr&&C.placed?(C[O?"removeClass":"addClass"]("highcharts-data-label-hidden"),x=function(){p.styledMode||C.css({pointerEvents:O?"auto":"none"})},S=!0,C.alignAttr.opacity=O,C[C.isOld?"animate":"attr"](C.alignAttr,null,x),c(p,"afterHideOverlappingLabel")):C.attr({opacity:O})),C.isOld=!0),S}}),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:I}=o,{addEvent:j,extend:C,isObject:p,merge:x,relativeLength:O}=w,S={radius:0,scope:"stack",where:void 0},_=(b,F)=>(p(b)||(b={radius:b||0}),x(S,F,b)),N=(b,F,P)=>{const L=b[F];let m=b[F+1];m[0]==="Z"&&(m=b[0]);let B,T,A;if((L[0]==="M"||L[0]==="L")&&m[0]==="A"?(B=L,T=m,A=!0):L[0]==="A"&&(m[0]==="M"||m[0]==="L")&&(B=m,T=L),B&&T&&T.params){const g=T[1],h=T[5],n=T.params,{start:l,end:f,cx:k,cy:v}=n,G=h?g-P:g+P,U=G?Math.asin(P/G):0,D=h?U:-U,H=Math.cos(U)*G;A?(n.start=l+D,B[1]=k+H*Math.cos(l),B[2]=v+H*Math.sin(l),b.splice(F+1,0,["A",P,P,0,0,1,k+g*Math.cos(n.start),v+g*Math.sin(n.start)])):(n.end=f-D,T[6]=k+g*Math.cos(n.end),T[7]=v+g*Math.sin(n.end),b.splice(F+1,0,["A",P,P,0,0,1,k+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 b=u.prototype.symbols.arc;u.prototype.symbols.arc=function(P,L,m,B,T={}){const A=b(P,L,m,B,T),{innerR:g=0,r:h=m,start:n=0,end:l=0}=T;if(T.open||!T.borderRadius)return A;const f=l-n,k=Math.sin(f/2),v=Math.max(Math.min(O(T.borderRadius||0,h-g),(h-g)/2,h*k/(1+k)),0),G=Math.min(v,2*(f/Math.PI)*g);let U=A.length-1;for(;U--;)N(A,U,U>1?G:v);return A};const F=u.prototype.symbols.roundedRect;u.prototype.symbols.roundedRect=function(P,L,m,B,T={}){const A=F(P,L,m,B,T),{r:g=0,brBoxHeight:h=B,brBoxY:n=L}=T,l=L-n,f=n+h-(L+B),k=l-g>-.1?0:g,v=f-g>-.1?0:g,G=Math.max(k&&l,0),U=Math.max(v&&f,0),D=[P+k,L],H=[P+m-k,L],z=[P+m,L+k],W=[P+m,L+B-v],d=[P+m-v,L+B],R=[P+v,L+B],Z=[P,L+B-v],J=[P,L+k],Y=(ee,E)=>Math.sqrt(Math.pow(ee,2)-Math.pow(E,2));if(G){const ee=Y(k,k-G);D[0]-=ee,H[0]+=ee,z[1]=J[1]=L+k-G}if(B<k-G){const ee=Y(k,k-G-B);z[0]=W[0]=P+m-k+ee,d[0]=Math.min(z[0],d[0]),R[0]=Math.max(W[0],R[0]),Z[0]=J[0]=P+k-ee,z[1]=J[1]=L+B}if(U){const ee=Y(v,v-U);d[0]+=ee,R[0]-=ee,W[1]=Z[1]=L+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]),Z[0]=J[0]=P+v-ee,W[1]=Z[1]=L}return A.length=0,A.push(["M",...D],["L",...H],["A",k,k,0,0,1,...z],["L",...W],["A",v,v,0,0,1,...d],["L",...R],["A",v,v,0,0,1,...Z],["L",...J],["A",k,k,0,0,1,...D],["Z"]),A},j(I.pie,"afterTranslate",function(){const P=_(this.options.borderRadius);for(const L of this.points){const m=L.shapeArgs;m&&(m.borderRadius=O(P.radius,(m.r||0)-(m.innerR||0)))}}),j(s,"afterColumnTranslate",function(){var P,L;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){const{options:m,yAxis:B}=this,T=m.stacking==="percent",A=(L=(P=y.plotOptions)===null||P===void 0?void 0:P[this.type])===null||L===void 0?void 0:L.borderRadius,g=_(m.borderRadius,p(A)?A:{}),h=B.options.reversed;for(const n of this.points){const{shapeArgs:l}=n;if(n.shapeType==="roundedRect"&&l){const{width:f=0,height:k=0,y:v=0}=l;let G=v,U=k;if(g.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=g.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(g.radius,f),f/2,H==="all"?k/2:1/0)||0;H==="end"&&(D&&(G-=z),U+=z),C(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:I,pick:j,splat:C,uniqueKey:p}=i;var x;return function(O){const S=[];function _(b){return i.pushUnique(S,b)&&o(b.prototype,{matchResponsiveRule:N,setResponsive:M}),b}O.compose=_;function N(b,F){const P=b.condition;(P.callback||function(){return this.chartWidth<=j(P.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=j(P.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=j(P.minWidth,0)&&this.chartHeight>=j(P.minHeight,0)}).call(this)&&F.push(b._id)}function M(b,F){const P=this.options.responsive,L=this.currentResponsive;let m=[],B;!F&&P&&P.rules&&P.rules.forEach(g=>{typeof g._id>"u"&&(g._id=p()),this.matchResponsiveRule(g,m)},this);const T=y(...m.map(g=>c((P||{}).rules||[],h=>h._id===g)).map(g=>g&&g.chartOptions));T.isResponsiveOptions=!0,m=m.toString()||void 0;const A=L&&L.ruleIds;m!==A&&(L&&this.update(L.undoOptions,b,!0),m?(B=s(T,this.options,!0,this.collectionsWithUpdate),B.isResponsiveOptions=!0,this.currentResponsive={ruleIds:m,mergedOptions:T,undoOptions:B},this.update(T,b,!0)):this.currentResponsive=void 0)}}(x||(x={})),x}),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,I,j,C,p,x,O,S,_,N,M,b,F,P,L,m,B,T,A,g,h,n,l,f,k,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=L,D.PlotLineOrBand=N,D.Point=F,D.Pointer=P,D.Series=A,D.StackItem=T,D.SVGElement=j,D.SVGRenderer=C,D.Templating=y,D.Tick=M,D.Time=U,D.Tooltip=b,D.Color=G,D.color=G.parse,x.compose(C),p.compose(j),P.compose(m),L.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=I.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=g.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),k.compose(A),S.compose(O),_.compose(O),f.compose(l),N.compose(O),v.compose(m),B.compose(O,m,A),b.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:I}=s;var j;return function(C){const p=[];function x(m,B){if(s.pushUnique(p,m)&&(m.keepProps.push("brokenAxis"),o(m,"init",N),o(m,"afterInit",O),o(m,"afterSetTickPositions",_),o(m,"afterSetOptions",S)),s.pushUnique(p,B)){const T=B.prototype;T.drawBreaks=F,T.gappedPath=P,o(B,"afterGeneratePoints",M),o(B,"afterRender",b)}return m}C.compose=x;function O(){typeof this.brokenAxis<"u"&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function S(){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,A=m.tickPositions.info,g=[];for(let h=0;h<T.length;h++)B.isInAnyBreak(T[h])||g.push(T[h]);m.tickPositions=g,m.tickPositions.info=A}}function N(){const m=this;m.brokenAxis||(m.brokenAxis=new L(m))}function M(){const{isDirty:m,options:{connectNulls:B},points:T,xAxis:A,yAxis:g}=this;if(m){let h=T.length;for(;h--;){const n=T[h],f=!(n.y===null&&B===!1)&&(A&&A.brokenAxis&&A.brokenAxis.isInAnyBreak(n.x,!0)||g&&g.brokenAxis&&g.brokenAxis.isInAnyBreak(n.y,!0));n.visible=f?!1:n.options.visible!==!1}}}function b(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,I(this.pointArrayMap,["y"]))}function F(m,B){const T=this,A=T.points;let g,h,n,l;if(m&&m.brokenAxis&&m.brokenAxis.hasBreaks){const f=m.brokenAxis;B.forEach(function(k){g=f&&f.breakArray||[],h=m.isXAxis?m.min:I(T.options.threshold,m.min),A.forEach(function(v){l=I(v["stack"+k.toUpperCase()],v[k]),g.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(),A=this.yAxis;let g=this.options.gapSize,h=T.length-1,n;if(g&&h>0){this.options.gapUnit!=="value"&&(g*=this.basePointRange),B&&B>g&&B>=this.basePointRange&&(g=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>g){const k=(l.x+f.x)/2;T.splice(h+1,0,{isNull:!0,x:k}),A.stacking&&this.options.stacking&&(n=A.stacking.stacks[this.stackKey][k]=new i(A,A.options.stackLabels,!1,k,this.stack),n.total=0)}f=l}}return this.getGraphPath(T)}class L{static isInBreak(B,T){const A=B.repeat||1/0,g=B.from,h=B.to-B.from,n=T>=g?(T-g)%A:A-(g-T)%A;let l;return B.inclusive?l=n<=h:l=n<h&&n!==0,l}static lin2Val(B){const A=this.brokenAxis,g=A&&A.breakArray;if(!g||!y(B))return B;let h=B,n,l;for(l=0;l<g.length&&(n=g[l],!(n.from>=h));l++)(n.to<h||L.isInBreak(n,h))&&(h+=n.len);return h}static val2Lin(B){const A=this.brokenAxis,g=A&&A.breakArray;if(!g||!y(B))return B;let h=B,n,l;for(l=0;l<g.length;l++)if(n=g[l],n.to<=B)h-=n.len;else{if(n.from>=B)break;if(L.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(A){return A.from<B&&B<A.to})}isInAnyBreak(B,T){const A=this,g=A.axis,h=g.options.breaks||[];let n=h.length,l,f,k;if(n&&y(B)){for(;n--;)L.isInBreak(h[n],B)&&(l=!0,f||(f=I(h[n].showPoints,!g.isXAxis)));l&&T?k=l&&!f:k=l}return k}setBreaks(B,T){const A=this,g=A.axis,h=w(B)&&!!B.length;g.isDirty=A.hasBreaks!==h,A.hasBreaks=h,B!==g.options.breaks&&(g.options.breaks=g.userOptions.breaks=B),g.forceRedraw=!0,g.series.forEach(function(n){n.isDirty=!0}),!h&&g.val2lin===L.val2Lin&&(delete g.val2lin,delete g.lin2val),h&&(g.userOptions.ordinal=!1,g.lin2val=L.lin2Val,g.val2lin=L.val2Lin,g.setExtremes=function(n,l,f,k,v){if(A.hasBreaks){const G=this.options.breaks||[];let U;for(;U=A.findBreakAt(n,G);)n=U.to;for(;U=A.findBreakAt(l,G);)l=U.from;l<n&&(l=n)}g.constructor.prototype.setExtremes.call(this,n,l,f,k,v)},g.setAxisTranslation=function(){if(g.constructor.prototype.setAxisTranslation.call(this),A.unitLength=void 0,A.hasBreaks){const n=g.options.breaks||[],l=[],f=[],k=I(g.pointRangePadding,0);let v=0,G,U,D=g.userMin||g.min,H=g.userMax||g.max,z,W;n.forEach(function(d){U=d.repeat||1/0,y(D)&&y(H)&&(L.isInBreak(d,D)&&(D+=d.to%U-D%U),L.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))}),A.breakArray=f,y(D)&&y(H)&&y(g.min)&&(A.unitLength=H-D-v+k,u(g,"afterBreaks"),g.staticScale?g.transA=g.staticScale:A.unitLength&&(g.transA*=(H-g.min+k)/A.unitLength),k&&(g.minPixelPadding=g.transA*(g.minPointOffset||0)),g.min=D,g.max=H)}}),I(T,!0)&&g.chart.redraw()}}C.Additions=L}(j||(j={})),j}),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 I(F){const P=F.length;let L=M(F);return y(L)&&P&&(L=u(L/P)),L}function j(){const F=[];return[].forEach.call(arguments,function(P){F.push(I(P))}),typeof F[0]>"u"?void 0:F}function C(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 x(F,P,L){if(F=i.high(F),P=i.low(P),L=i.close(L),y(F)||y(P)||y(L))return[F,P,L]}function O(F){return F.length?c(F):F.hasNulls?null:void 0}function S(F,P,L,m){if(F=i.open(F),P=i.high(P),L=i.low(L),m=i.close(m),y(F)||y(P)||y(L)||y(m))return[F,P,L,m]}function _(F){return F.length?F[0]:F.hasNulls?null:void 0}function N(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 M(F){let P=F.length,L;if(!P&&F.hasNulls)L=null;else if(P)for(L=0;P--;)L+=F[P];return L}const b={average:I,averages:j,close:C,high:p,hlc:x,low:O,ohlc:S,open:_,range:N,sum:M};return w(i,b),b}),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 I;function j(_){const N=this,M=N.series;M.forEach(function(b){b.groupPixelWidth=void 0}),M.forEach(function(b){b.groupPixelWidth=N.getGroupPixelWidth&&N.getGroupPixelWidth(),b.groupPixelWidth&&(b.hasProcessed=!0),b.applyGrouping(!!_.hasExtremesChanged)})}function C(_){I=_,s.pushUnique(y,_)&&(o(_,"afterSetScale",x),o(_,"postProcessData",j),c(_.prototype,{applyGrouping:j,getGroupPixelWidth:p,setDataGrouping:O}))}function p(){const _=this.series;let N=_.length,M=0,b=!1,F,P;for(;N--;)P=_[N].options.dataGrouping,P&&(M=Math.max(M,w(P.groupPixelWidth,i.common.groupPixelWidth)),F=(_[N].processedXData||_[N].data).length,(_[N].groupPixelWidth||F>this.chart.plotSizeX/M||F&&P.forced)&&(b=!0));return b?M:0}function x(){this.series.forEach(function(_){_.hasProcessed=!1})}function O(_,N){const M=this;let b;if(N=w(N,!0),_||(_={forced:!1,units:null}),this instanceof I)for(b=this.series.length;b--;)this.series[b].update({dataGrouping:_},!1);else this.chart.options.series.forEach(function(F){F.dataGrouping=typeof _=="boolean"?_:u(_,F.dataGrouping)});M.ordinal&&(M.ordinal.slope=void 0),N&&this.chart.redraw()}return{compose:C}}),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:I,defined:j,error:C,extend:p,isNumber:x,merge:O,pick:S}=w,_=y.generatePoints,N=[];function M(n,l){j(l[0])&&x(n.min)&&x(n.dataMin)&&l[0]<n.min&&((!j(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)),j(l[l.length-1])&&x(n.max)&&x(n.dataMax)&&l[l.length-1]>n.max&&((!j(n.options.max)&&x(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 b(n,l,f){const k=n.options,v=k.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=S(v.firstAnchor,H),W=S(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 Z;x(d)&&x(R)&&(Z=d+(R-1)),l[0]={middle:l[0]+.5*G,end:l[0]+G,firstPoint:n.xData[0],lastPoint:Z&&n.xData[Z]}[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,k=l.options,v=k.dataGrouping,G=l.allowDG!==!1&&v&&S(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=g(l,n)===!1||!G;if(W&&(l.requireSorting=!1),!d){l.destroyGroupedData();const R=v.groupAll?l.xData:l.processedXData,Z=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(),ie=Q.min,K=Q.max,oe=ee&&Y.ordinal&&Y.ordinal.getGroupIntervalFactor(ie,K,l)||1,ce=E*(K-ie)/J*oe,ne=Y.getTimeTicks(o.Additions.prototype.normalizeTimeTickInterval(ce,v.units||s.units),Math.min(ie,R[0]),Math.max(K,R[R.length-1]),Y.options.startOfWeek,R,l.closestPointRange),pe=y.groupData.apply(l,[R,Z,ne,v.approximation]);let te=pe.groupedXData,re=pe.groupedYData,q=0;for(v&&v.smoothed&&te.length&&(v.firstAnchor="firstPoint",v.anchor="middle",v.lastAnchor="lastPoint",C(32,!1,f,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),b(l,te,K),V=1;V<ne.length;V++)(!ne.info.segmentStarts||ne.info.segmentStarts.indexOf(V)===-1)&&(q=Math.max(ne[V]-ne[V-1],q));H=ne.info,H.gapSize=q,l.closestPointRange=ne.info.totalRange,l.groupMap=pe.groupMap,U&&M(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(N,l)&&I(l,"update",function(){if(this.dataGroup)return C(24,!1,this.series.chart),!1}),w.pushUnique(N,n)&&(I(n,"afterSetOptions",A),I(n,"destroy",L),p(n.prototype,{applyGrouping:F,destroyGroupedData:L,generatePoints:m,getDGApproximation:B,groupData:T}))}function L(){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,k){const v=this,G=v.data,U=v.options&&v.options.data,D=[],H=[],z=[],W=n.length,d=!!l,R=[],Z=v.pointArrayMap,J=Z&&Z.length,Y=["x"].concat(Z||["y"]),ee=this.options.dataGrouping&&this.options.dataGrouping.groupAll;let E,V,X,Q=0,ie=0;const K=typeof k=="function"?k:k&&i[k]?i[k]:i[v.getDGApproximation&&v.getDGApproximation()||"average"];if(J){let ce=Z.length;for(;ce--;)R.push([])}else R.push([]);const oe=J||1;for(let ce=0;ce<=W;ce++)if(!(n[ce]<f[0])){for(;typeof f[Q+1]<"u"&&n[ce]>=f[Q+1]||ce===W;){E=f[Q],v.dataGroupInfo={start:ee?ie:v.cropStart+ie,length:R[0].length},X=K.apply(v,R),v.pointClass&&!j(v.dataGroupInfo.options)&&(v.dataGroupInfo.options=O(v.pointClass.prototype.optionsToObject.call({series:v},v.options.data[v.cropStart+ie])),Y.forEach(function(ne){delete v.dataGroupInfo.options[ne]})),typeof X<"u"&&(D.push(E),H.push(X),z.push(v.dataGroupInfo)),ie=ce;for(let ne=0;ne<oe;ne++)R[ne].length=0,R[ne].hasNulls=!1;if(Q+=1,ce===W)break}if(ce===W)break;if(Z){const ne=v.options.dataGrouping&&v.options.dataGrouping.groupAll?ce:v.cropStart+ce,pe=G&&G[ne]||v.pointClass.prototype.applyOptions.apply({series:v},[U[ne]]);let te;for(let re=0;re<J;re++)te=pe[Z[re]],x(te)?R[re].push(te):te===null&&(R[re].hasNulls=!0)}else V=d?l[ce]:null,x(V)?R[0].push(V):V===null&&(R[0].hasNulls=!0)}return{groupedXData:D,groupedYData:H,groupMap:z}}function A(n){const l=n.options,f=this.type,k=this.chart.options.plotOptions,v=this.useCommonDataGrouping&&s.common,G=s.seriesSpecific;let U=c.defaultOptions.plotOptions[f].dataGrouping;if(k&&(G[f]||v)){const D=this.chart.rangeSelector;U||(U=O(s.common,G[f])),l.dataGrouping=O(v,U,k.series&&k.series.dataGrouping,k[f].dataGrouping,this.userOptions.dataGrouping,!l.isInternal&&D&&x(D.selected)&&D.buttonOptions[D.selected].dataGrouping)}}function g(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:I,isNumber:j}=u,C=[];function p(S,_,N){i.compose(S),o.compose(_),N&&u.pushUnique(C,N)&&y(N,"headerFormatter",x)}function x(S){const _=this.chart,N=_.time,M=S.labelConfig,b=M.series,F=b.options,P=b.tooltipOptions,L=F.dataGrouping,m=b.xAxis;let B=P.xDateFormat,T,A,g,h,n,l=P[S.isFooter?"footerFormat":"headerFormat"];m&&m.options.type==="datetime"&&L&&j(M.key)&&(A=b.currentDataGrouping,g=L.dateTimeLabelFormats||s.common.dateTimeLabelFormats,A?(h=g[A.unitName],A.count===1?B=h[0]:(B=h[1],T=h[2])):!B&&g&&m.dateTime&&(B=m.dateTime.getXDateFormat(M.x,P.dateTimeLabelFormats)),n=N.dateFormat(B,M.key),T&&(n+=N.dateFormat(T,M.key+A.totalRange-1)),b.chart.styledMode&&(l=this.styledModeFormat(l)),S.text=w(l,{point:I(M.point,{key:n}),series:b},_),S.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=[],I={enabled:!0,sensitivity:1.1},j=M=>o(M)?w(I,M):w(I,{enabled:u(M)?M:!0}),C=function(M,b){return M.x+M.width>b.x+b.width&&(M.width>b.width?(M.width=b.width,M.x=b.x):M.x=b.x+b.width-M.width),M.width>b.width&&(M.width=b.width),M.x<b.x&&(M.x=b.x),M.y+M.height>b.y+b.height&&(M.height>b.height?(M.height=b.height,M.y=b.y):M.y=b.y+b.height-M.height),M.height>b.height&&(M.height=b.height),M.y<b.y&&(M.y=b.y),M};let p,x;const O=function(M,b,F,P,L,m,B){const T=M.xAxis[0],A=M.yAxis[0],g=c(B.type,M.options.chart.zooming.type,"x"),h=/x/.test(g),n=/y/.test(g);if(u(T.max)&&u(T.min)&&u(A.max)&&u(A.min)&&u(T.dataMax)&&u(T.dataMin)&&u(A.dataMax)&&u(A.dataMin)){if(n){u(p)&&clearTimeout(p);const{startOnTick:X,endOnTick:Q}=A.options;x||(x={startOnTick:X,endOnTick:Q}),(X||Q)&&A.setOptions({startOnTick:!1,endOnTick:!1}),p=setTimeout(()=>{if(x){A.setOptions(x);const{min:ie,max:K}=A.getExtremes();A.forceRedraw=!0,A.setExtremes(ie,K),x=void 0}},400)}if(M.inverted){const X=A.pos+A.len;F=T.toValue(m),P=A.toValue(L);const Q=L;L=m,m=X-Q+A.pos}let l=L?(L-T.pos)/T.len:.5;(T.reversed&&!M.inverted||M.inverted&&!T.reversed)&&(l=1-l);let f=1-(m?(m-A.pos)/A.len:.5);A.reversed&&(f=1-f);const k=T.max-T.min,v=c(F,T.min+k/2),G=k*b,U=A.max-A.min,D=c(P,A.min+U/2),H=U*b,z=v-G*l,W=D-H*f,d=T.dataMax-T.dataMin,R=A.dataMax-A.dataMin,Z=T.dataMin-d*T.options.minPadding,J=d+d*T.options.minPadding+d*T.options.maxPadding,Y=A.dataMin-R*A.options.minPadding,ee=R+R*A.options.minPadding+R*A.options.maxPadding,E=C({x:z,y:W,width:G,height:H},{x:Z,y:Y,width:J,height:ee}),V=E.x<=Z&&E.width>=J&&E.y<=Y&&E.height>=ee;u(b)&&!V?(h&&T.setExtremes(E.x,E.x+E.width,!1),n&&A.setExtremes(E.y,E.y+E.height,!1)):(h&&T.setExtremes(void 0,void 0,!1),n&&A.setExtremes(void 0,void 0,!1)),M.redraw(!1)}};function S(){const M=this,b=j(M.options.chart.zooming.mouseWheel);b.enabled&&s(this.container,"wheel",F=>{if(F=this.pointer.normalize(F),M.isInsidePlot(F.chartX-M.plotLeft,F.chartY-M.plotTop)){const P=c(b.sensitivity,1.1),L=F.detail||(F.deltaY||0)/120;O(M,Math.pow(P,L),M.xAxis[0].toValue(F.chartX),M.yAxis[0].toValue(F.chartY),F.chartX,F.chartY,b)}F.preventDefault&&F.preventDefault()})}function _(M){y.indexOf(M)===-1&&(y.push(M),s(M,"afterGetContainer",S))}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:I,correctFloat:j,defined:C,isArray:p,isNumber:x,isString:O,pick:S}=c;var _;return function(N){const M=[];function b(l,f,k){if(c.pushUnique(M,l)){const v=l.prototype;v.setCompare=B,v.setCumulative=g,w(l,"afterInit",L),w(l,"afterGetExtremes",m),w(l,"afterProcessData",T)}if(c.pushUnique(M,f)){const v=f.prototype;v.setCompare=A,v.setModifier=F,v.setCumulative=h}if(c.pushUnique(M,k)){const v=k.prototype;v.tooltipFormatter=P}return l}N.compose=b;function F(l,f,k){this.isXAxis||(this.series.forEach(function(v){l==="compare"&&typeof f!="boolean"?v.setCompare(f,!1):l==="cumulative"&&!O(f)&&v.setCumulative(f,!1)}),S(k,!0)&&this.chart.redraw())}function P(l){const f=this,{numberFormatter:k}=f.series.chart,v=function(G){l=l.replace("{point."+G+"}",(f[G]>0&&G==="change"?"+":"")+k(f[G],S(f.series.tooltipOptions.changeDecimals,2)))};return C(f.change)&&v("change"),C(f.cumulativeSum)&&v("cumulativeSum"),u.apply(this,[l])}function L(){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,k=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(k)&&k.length>=2&&(v=n.getCumulativeExtremes(k)),v&&(f.dataMin=I(v),f.dataMax=y(v))}}function B(l,f){this.options.compare=this.userOptions.compare=l,this.update({},S(f,!0)),this.dataModify&&(l==="value"||l==="percent")?this.dataModify.initCompare(l):this.points.forEach(k=>{delete k.change})}function T(){const l=this;if(l.xAxis&&l.processedYData&&l.dataModify){const f=l.processedXData,k=l.processedYData,v=k.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=k[D]&&U>-1?k[D][U]:k[D];if(x(H)&&H!==0&&f[D+G]>=(l.xAxis.min||0)){l.dataModify.compareValue=H;break}}}}function A(l,f){this.setModifier("compare",l,f)}function g(l,f){l=S(l,!1),this.options.cumulative=this.userOptions.cumulative=l,this.update({},S(f,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(k=>{delete k.cumulativeSum})}function h(l,f){this.setModifier("cumulative",l,f)}class n{constructor(f){this.series=f}modifyValue(){return 0}static getCumulativeExtremes(f){let k=1/0,v=-1/0;return f.reduce((G,U)=>{const D=G+U;return k=Math.min(k,D,G),v=Math.max(v,D,G),D}),[k,v]}initCompare(f){this.modifyValue=function(k,v){k===null&&(k=0);const G=this.compareValue;if(typeof k<"u"&&typeof G<"u"){if(f==="value")k-=G;else{const U=this.series.options.compareBase;k=100*(k/G)-(U===100?0:100)}if(typeof v<"u"){const U=this.series.points[v];U&&(U.change=k)}return k}return 0}}initCumulative(){this.modifyValue=function(f,k){if(f===null&&(f=0),f!==void 0&&k!==void 0){const v=k>0?this.series.points[k-1]:null;v&&v.cumulativeSum&&(f=j(v.cumulativeSum+f));const G=this.series.points[k];return G&&(G.cumulativeSum=f),f}return 0}}}N.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:I}=s,j=[];function C(){const O=this;O.navigatorAxis||(O.navigatorAxis=new x(O))}function p(O){console.log("onAxisZoom");const S=this,_=S.chart,N=_.options,M=N.navigator,b=S.navigatorAxis,F=_.zooming.pinchType,P=N.rangeSelector,L=_.zooming.type;if(S.isXAxis&&(M&&M.enabled||P&&P.enabled)){if(L==="y")O.zoomed=!1;else if((!o&&L==="xy"||o&&F==="xy")&&S.options.range){const m=b.previousZoom;w(O.newMin)?b.previousZoom=[S.min,S.max]:m&&(O.newMin=m[0],O.newMax=m[1],b.previousZoom=void 0)}}typeof O.zoomed<"u"&&O.preventDefault()}class x{static compose(S){s.pushUnique(j,S)&&(S.keepProps.push("navigatorAxis"),c(S,"init",C),c(S,"zoom",p))}constructor(S){this.axis=S}destroy(){this.axis=void 0}toFixedRange(S,_,N,M){const b=this.axis,F=b.chart;let P=I(N,b.translate(S,!0,!b.horiz)),L=I(M,b.translate(_,!0,!b.horiz));const m=F&&F.fixedRange,B=(b.pointRange||0)/2;return w(N)||(P=u(P+B)),w(M)||(L=u(L-B)),m&&b.dataMin&&b.dataMax&&(L>=b.dataMax&&(P=u(b.dataMax-m)),P<=b.dataMin&&(L=u(b.dataMin+m))),(!y(P)||!y(L))&&(P=L=void 0),{min:P,max:L}}}return x}),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 I=y.width?y.width/2:u,j=Math.round(I/3)+.5;return w=y.height||w,[["M",-I-1,.5],["L",I,.5],["L",I,w+.5],["L",-I-1,w+.5],["L",-I-1,.5],["M",-j,4],["L",-j,w-3],["M",j-1,4],["L",j-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:I,setOptions:j}=i,{isTouchDevice:C}=s,{getRendererType:p}=w,{addEvent:x,extend:O,merge:S,pick:_}=y,N=[];let M;function b(n,l,f,k){o.compose(n),M=f,y.pushUnique(N,l)&&(l.prototype.callbacks.push(T),x(l,"afterAddSeries",F),x(l,"afterSetChartSize",P),x(l,"afterUpdate",L),x(l,"beforeRender",m),x(l,"beforeShowResetZoom",B),x(l,"update",A)),y.pushUnique(N,k)&&x(k,"afterUpdate",g),y.pushUnique(N,p)&&O(p().prototype.symbols,u),y.pushUnique(N,j)&&O(I,{navigator:c})}function F(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function P(){var n;const l=this.legend,f=this.navigator;let k,v,G;if(f){k=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)-(k&&k.verticalAlign==="bottom"&&k.layout!=="proximate"&&k.enabled&&!k.floating?l.legendHeight+_(k.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 L(n){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new M(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 M(this))}function B(){const n=this.options,l=n.navigator,f=n.rangeSelector;if((l&&l.enabled||f&&f.enabled)&&(!C&&this.zooming.type==="x"||C&&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 A(n){const l=n.options.navigator||{},f=n.options.scrollbar||{};!this.navigator&&!this.scroller&&(l.enabled||f.enabled)&&(S(!0,this.options.navigator,l),S(!0,this.options.scrollbar,f),delete n.options.navigator,delete n.options.scrollbar)}function g(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:b}}),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(I,j){if(!i.pushUnique(u,I))return I;const C=p=>{const x=c(p.options&&p.options.min,p.min),O=c(p.options&&p.options.max,p.max);return{axisMin:x,axisMax:O,scrollMin:o(p.dataMin)?Math.min(x,p.min,p.dataMin,c(p.threshold,1/0)):x,scrollMax:o(p.dataMax)?Math.max(O,p.max,p.dataMax,c(p.threshold,-1/0)):O}};return s(I,"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 j(p.chart.renderer,p.options.scrollbar,p.chart),s(p.scrollbar,"changed",function(x){let{axisMin:O,axisMax:S,scrollMin:_,scrollMax:N}=C(p),M=N-_,b,F;if(!(!o(O)||!o(S)))if(p.horiz&&!p.reversed||!p.horiz&&p.reversed?(b=_+M*this.to,F=_+M*this.from):(b=_+M*(1-this.from),F=_+M*(1-this.to)),this.shouldUpdateExtremes(x.DOMType)){const P=x.DOMType==="mousemove"||x.DOMType==="touchmove"?!1:void 0;p.setExtremes(F,b,!0,P,x)}else this.setRange(this.from,this.to)}))}),s(I,"afterRender",function(){let p=this,{scrollMin:x,scrollMax:O}=C(p),S=p.scrollbar,_=p.axisTitleMargin+(p.titleOffset||0),N=p.chart.scrollbarsOffsets,M=p.options.margin||0,b,F,P;if(S){if(p.horiz)p.opposite||(N[1]+=_),S.position(p.left,p.top+p.height+2+N[1]-(p.opposite?M:0),p.width,p.height),p.opposite||(N[1]+=M),b=1;else{p.opposite&&(N[0]+=_);let L;S.options.opposite?L=p.left+p.width+2+N[0]-(p.opposite?0:M):L=p.opposite?0:M,S.position(L,p.top,p.width,p.height),p.opposite&&(N[0]+=M),b=0}N[b]+=S.size+(S.options.margin||0),isNaN(x)||isNaN(O)||!o(p.min)||!o(p.max)||p.min===p.max?S.setRange(0,1):(F=(p.min-x)/(O-x),P=(p.max-x)/(O-x),p.horiz&&!p.reversed||!p.horiz&&p.reversed?S.setRange(F,P):S.setRange(1-P,1-F))}}),s(I,"afterGetOffset",function(){const p=this,x=p.scrollbar,O=x&&!x.options.opposite,S=p.horiz?2:O?3:1;x&&(p.chart.scrollbarsOffsets=[0,0],p.chart.axisOffset[S]+=x.size+(x.options.margin||0))}),I}}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:I,defined:j,destroyObjectProperties:C,fireEvent:p,merge:x,pick:O,removeEvent:S}=u;class _{static compose(M){o.compose(M,_)}static swapXY(M,b){return b&&M.forEach(F=>{const P=F.length;let L;for(let m=0;m<P;m+=2)L=F[m+1],typeof L=="number"&&(F[m+1]=F[m+2],F[m+2]=L)}),M}constructor(M,b,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(M,b,F)}addEvents(){const M=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,F=this.scrollbarGroup.element,P=this.track.element,L=this.mouseDownHandler.bind(this),m=this.mouseMoveHandler.bind(this),B=this.mouseUpHandler.bind(this),T=[[b[M[0]].element,"click",this.buttonToMinClick.bind(this)],[b[M[1]].element,"click",this.buttonToMaxClick.bind(this)],[P,"click",this.trackClick.bind(this)],[F,"mousedown",L],[F.ownerDocument,"mousemove",m],[F.ownerDocument,"mouseup",B]];s.hasTouch&&T.push([F,"touchstart",L],[F.ownerDocument,"touchmove",m],[F.ownerDocument,"touchend",B]),T.forEach(function(A){y.apply(null,A)}),this._events=T}buttonToMaxClick(M){const b=this,F=(b.to-b.from)*O(b.options.step,.2);b.updatePosition(b.from+F,b.to+F),p(b,"changed",{from:b.from,to:b.to,trigger:"scrollbar",DOMEvent:M})}buttonToMinClick(M){const b=this,F=I(b.to-b.from)*O(b.options.step,.2);b.updatePosition(I(b.from-F),I(b.to-F)),p(b,"changed",{from:b.from,to:b.to,trigger:"scrollbar",DOMEvent:M})}cursorToScrollbarPosition(M){const b=this,F=b.options,P=F.minWidth>b.calculatedWidth?F.minWidth:0;return{chartX:(M.chartX-b.x-b.xOffset)/(b.barWidth-P),chartY:(M.chartY-b.y-b.yOffset)/(b.barWidth-P)}}destroy(){const M=this,b=M.chart.scroller;M.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(F){M[F]&&M[F].destroy&&(M[F]=M[F].destroy())}),b&&M===b.scrollbar&&(b.scrollbar=null,C(b.scrollbarButtons))}drawScrollbarButton(M){const b=this,F=b.renderer,P=b.scrollbarButtons,L=b.options,m=b.size,B=F.g().add(b.group);if(P.push(B),L.buttonsEnabled){const T=F.rect().addClass("highcharts-scrollbar-button").add(B);b.chart.styledMode||T.attr({stroke:L.buttonBorderColor,"stroke-width":L.buttonBorderWidth,fill:L.buttonBackgroundColor}),T.attr(T.crisp({x:-.5,y:-.5,width:m+1,height:m+1,r:L.buttonBorderRadius},T.strokeWidth()));const A=F.path(_.swapXY([["M",m/2+(M?-1:1),m/2-3],["L",m/2+(M?-1:1),m/2+3],["L",m/2+(M?2:-2),m/2]],L.vertical)).addClass("highcharts-scrollbar-arrow").add(P[M]);b.chart.styledMode||A.attr({fill:L.buttonArrowColor})}}init(M,b,F){const P=this;P.scrollbarButtons=[],P.renderer=M,P.userOptions=b,P.options=x(c,w.scrollbar,b),P.options.margin=O(P.options.margin,10),P.chart=F,P.size=O(P.options.size,P.options.height),b.enabled&&(P.render(),P.addEvents())}mouseDownHandler(M){const b=this,F=b.chart.pointer.normalize(M),P=b.cursorToScrollbarPosition(F);b.chartX=P.chartX,b.chartY=P.chartY,b.initPositions=[b.from,b.to],b.grabbedCenter=!0}mouseMoveHandler(M){const b=this,F=b.chart.pointer.normalize(M),P=b.options,L=P.vertical?"chartY":"chartX",m=b.initPositions||[];let B,T,A;b.grabbedCenter&&(!M.touches||M.touches[0][L]!==0)&&(T=b.cursorToScrollbarPosition(F)[L],B=b[L],A=T-B,b.hasDragged=!0,b.updatePosition(m[0]+A,m[1]+A),b.hasDragged&&p(b,"changed",{from:b.from,to:b.to,trigger:"scrollbar",DOMType:M.type,DOMEvent:M}))}mouseUpHandler(M){const b=this;b.hasDragged&&p(b,"changed",{from:b.from,to:b.to,trigger:"scrollbar",DOMType:M.type,DOMEvent:M}),b.grabbedCenter=b.hasDragged=b.chartX=b.chartY=null}position(M,b,F,P){const L=this,m=L.options,{buttonsEnabled:B,margin:T=0,vertical:A}=m,g=L.rendered?"animate":"attr";let h=P,n=0;L.group.show(),L.x=M,L.y=b+this.trackBorderWidth,L.width=F,L.height=P,L.xOffset=h,L.yOffset=n,A?(L.width=L.yOffset=F=n=L.size,L.xOffset=h=0,L.yOffset=n=B?L.size:0,L.barWidth=P-(B?F*2:0),L.x=M=M+T):(L.height=P=L.size,L.xOffset=h=B?L.size:0,L.barWidth=F-(B?P*2:0),L.y=L.y+T),L.group[g]({translateX:M,translateY:L.y}),L.track[g]({width:F,height:P}),L.scrollbarButtons[1][g]({translateX:A?0:F-h,translateY:A?P-n:0})}removeEvents(){this._events.forEach(function(M){S.apply(null,M)}),this._events.length=0}render(){const M=this,b=M.renderer,F=M.options,P=M.size,L=M.chart.styledMode,m=b.g("scrollbar").attr({zIndex:F.zIndex}).hide().add();M.group=m,M.track=b.rect().addClass("highcharts-scrollbar-track").attr({r:F.trackBorderRadius||0,height:P,width:P}).add(m),L||M.track.attr({fill:F.trackBackgroundColor,stroke:F.trackBorderColor,"stroke-width":F.trackBorderWidth});const B=M.trackBorderWidth=M.track.strokeWidth();M.track.attr({x:-B%2/2,y:-B%2/2}),M.scrollbarGroup=b.g().add(m),M.scrollbar=b.rect().addClass("highcharts-scrollbar-thumb").attr({height:P-B,width:P-B,r:F.barBorderRadius||0}).add(M.scrollbarGroup),M.scrollbarRifles=b.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(M.scrollbarGroup),L||(M.scrollbar.attr({fill:F.barBackgroundColor,stroke:F.barBorderColor,"stroke-width":F.barBorderWidth}),M.scrollbarRifles.attr({stroke:F.rifleColor,"stroke-width":1})),M.scrollbarStrokeWidth=M.scrollbar.strokeWidth(),M.scrollbarGroup.translate(-M.scrollbarStrokeWidth%2/2,-M.scrollbarStrokeWidth%2/2),M.drawScrollbarButton(0),M.drawScrollbarButton(1)}setRange(M,b){const F=this,P=F.options,L=P.vertical,m=P.minWidth,B=F.barWidth,T=this.rendered&&!this.hasDragged&&!(this.chart.navigator&&this.chart.navigator.hasDragged)?"animate":"attr";if(!j(B))return;const A=B*Math.min(b,1);let g,h;M=Math.max(M,0),g=Math.ceil(B*M),F.calculatedWidth=h=I(A-g),h<m&&(g=(B-m+h)*M,h=m);const n=Math.floor(g+F.xOffset+F.yOffset),l=h/2-.5;F.from=M,F.to=b,L?(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&&(M<=0&&b>=1?F.group.hide():F.group.show()),F.rendered=!0}shouldUpdateExtremes(M){return O(this.options.liveRedraw,s.svg&&!s.isTouchDevice&&!this.chart.boosted)||M==="mouseup"||M==="touchend"||!j(M)}trackClick(M){const b=this,F=b.chart.pointer.normalize(M),P=b.to-b.from,L=b.y+b.scrollbarTop,m=b.x+b.scrollbarLeft;b.options.vertical&&F.chartY>L||!b.options.vertical&&F.chartX>m?b.updatePosition(b.from+P,b.to+P):b.updatePosition(b.from-P,b.to-P),p(b,"changed",{from:b.from,to:b.to,trigger:"scrollbar",DOMEvent:M})}update(M){this.destroy(),this.init(this.chart.renderer,x(!0,this.options,M),this.chart)}updatePosition(M,b){b>1&&(M=I(1-I(b-M)),b=1),M<0&&(b=I(b-M),M=0),this.from=M,this.to=b}}return _.defaultOptions=c,w.scrollbar=x(!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:I}=s,{hasTouch:j,isTouchDevice:C}=o,{addEvent:p,clamp:x,correctFloat:O,defined:S,destroyObjectProperties:_,erase:N,extend:M,find:b,isArray:F,isNumber:P,merge:L,pick:m,removeEvent:B,splat:T}=y;function A(h,...n){const l=[].filter.call(n,P);if(l.length)return Math[h].apply(0,l)}class g{static compose(n,l,f){u.compose(n,l,g,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,k){const v=this,G=v.navigatorOptions.handles.height;v.handles[l][k](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,k){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,Z=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,Z],["L",n,Z],["L",n,J],["M",l,J],["L",l,Z],["L",Y+W+z*2,d+D]],G&&E.push(["M",n-D,Z],["L",l+D,Z])),v.outline[k]({d:E})}drawMasks(n,l,f,k){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,Z)=>{R[k]({x:W[Z],y:d[Z],width:z[Z],height:H[Z]})})}renderElements(){const n=this,l=n.navigatorOptions,f=l.maskInside,k=n.chart,v=k.inverted,G=k.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);k.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),k.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),k.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),k.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;L(!0,l.navigator,n),this.init(this.chart)}render(n,l,f,k){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,Z=G.xAxis[0].options.maxRange,J=v.scrollButtonSize;let Y,ee,E,V=v.scrollbarHeight,X,Q;if(this.hasDragged&&!S(f))return;if(n=O(n-D/2),l=O(l+D/2),!P(n)||!P(l))if(W)f=0,k=m(U.width,H.width);else return;v.left=m(U.left,G.plotLeft+J+(d?G.plotWidth:0));let ie=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)),k=m(k,U.toPixels(l,!0)),(!P(f)||Math.abs(f)===1/0)&&(f=0,k=Y);const K=U.toValue(f,!0),oe=U.toValue(k,!0),ce=Math.abs(O(oe-K));ce<R?this.grabbedLeft?f=U.toPixels(oe-R-D,!0):this.grabbedRight&&(k=U.toPixels(K+R+D,!0)):S(Z)&&O(ce-D)>Z&&(this.grabbedLeft?f=U.toPixels(oe-Z-D,!0):this.grabbedRight&&(k=U.toPixels(K+Z+D,!0))),v.zoomedMax=x(Math.max(f,k),0,ie),v.zoomedMin=x(v.fixedWidth?v.zoomedMax-v.fixedWidth:Math.min(f,k),0,ie),v.range=v.zoomedMax-v.zoomedMin,ie=Math.round(v.zoomedMax);const ne=Math.round(v.zoomedMin);z&&(v.navigatorGroup.attr({visibility:"inherit"}),Q=W&&!v.hasDragged?"animate":"attr",v.drawMasks(ne,ie,d,Q),v.drawOutline(ne,ie,d,Q),v.navigatorOptions.handles.enabled&&(v.drawHandle(ne,0,d,Q),v.drawHandle(ie,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 k=[],v,G;n.mouseMoveHandler=v=function(U){n.onMouseMove(U)},n.mouseUpHandler=G=function(U){n.onMouseUp(U)},k=n.getPartsEvents("mousedown"),k.push(p(l.renderTo,"mousemove",v),p(f.ownerDocument,"mouseup",G)),j&&(k.push(p(l.renderTo,"touchmove",v),p(f.ownerDocument,"touchend",G)),k.concat(n.getPartsEvents("touchstart"))),n.eventsToUnbind=k,n.series&&n.series[0]&&k.push(p(n.series[0].xAxis,"foundExtremes",function(){l.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(n){const l=this,f=[];return["shades","handles"].forEach(function(k){l[k].forEach(function(v,G){f.push(p(v.element,n,function(U){l[k+"Mousedown"](U,G)}))})}),f}shadesMousedown(n,l){n=this.chart.pointer.normalize(n);const f=this,k=f.chart,v=f.xAxis,G=f.zoomedMin,U=f.size,D=f.range;let H=f.left,z=n.chartX,W,d,R,Z;k.inverted&&(z=n.chartY,H=f.top),l===1?(f.grabbedCenter=z,f.fixedWidth=D,f.dragOffset=z-G):(Z=z-H-D/2,l===0?Z=Math.max(0,Z):l===2&&Z+D>=U&&(Z=U-D,f.reversedExtremes?(Z-=D,d=f.getUnionExtremes().dataMin):W=f.getUnionExtremes().dataMax),Z!==G&&(f.fixedWidth=D,R=v.navigatorAxis.toFixedRange(Z,Z+D,d,W),S(R.min)&&k.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,k=f.chart,v=k.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),k.fixedRange=null}onMouseMove(n){const l=this,f=l.chart,k=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>k+G-v&&(H=k+G-v),l.render(0,0,H-G,H-G+v)),l.hasDragged&&l.scrollbar&&m(l.scrollbar.options.liveRedraw,!C&&!this.chart.boosted)&&(n.DOMType=n.type,setTimeout(function(){l.onMouseUp(n)},0)))}onMouseUp(n){const l=this,f=l.chart,k=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,Z;(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),Z=k.navigatorAxis.toFixedRange(l.zoomedMin,l.zoomedMax,d,R),S(Z.min)&&f.xAxis[0].setExtremes(Math.min(Z.min,Z.max),Math.max(Z.min,Z.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||{},k=f.enabled,v=l.scrollbar||{},G=v.enabled,U=k&&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=k,this.navigatorOptions=f,this.scrollbarOptions=v,this.opposite=m(f.opposite,!!(!k&&n.inverted));const z=this,W=z.baseSeries,d=n.xAxis.length,R=n.yAxis.length,Z=W&&W[0]&&W[0].xAxis||n.xAxis[0]||{options:{}};if(n.isDirtyBox=!0,z.navigatorEnabled?(z.xAxis=new i(n,L({breaks:Z.options.breaks,ordinal:Z.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,L(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=A("min",ee.options.min,E.dataMin),Q=A("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=L(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,k=f.options,v=l.options;let G;return(!n||l.dataMin!==null)&&(G={dataMin:m(k&&k.min,A("min",v.min,l.dataMin,f.dataMin,f.min)),dataMax:m(k&&k.max,A("max",v.max,l.dataMax,f.dataMax,f.max))}),G}setBaseSeries(n,l){const f=this.chart,k=this.baseSeries=[];n=n||f.options&&f.options.navigator.baseSeries||(f.series.length?b(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)&&k.push(v)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,l)}updateNavigatorSeries(n,l){const f=this,k=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,Z=M({color:d.color,visible:d.visible},F(z)?I.navigator.series:z);if(R&&f.navigatorOptions.adaptToUpdatedData===!1)return;G.name="Navigator "+v.length,D=d.options||{},W=D.navigatorOptions||{},Z.dataLabels=T(Z.dataLabels),H=L(D,G,Z,W),H.pointRange=m(Z.pointRange,W.pointRange,I.plotOptions[H.type||"line"].pointRange);const J=W.data||Z.data;f.hasNavigatorData=f.hasNavigatorData||!!J,H.data=J||D.data&&D.data.slice(0),R&&R.options?R.update(H,l):(d.navigatorSeries=k.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=L(I.navigator.series,{color:k.series[R]&&!k.series[R].options.isInternal&&k.series[R].color||k.options.colors[R]||k.options.colors[0]},G,d),H.data=d.data,H.data&&(f.hasNavigatorData=!0,U.push(k.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&&(N(n.series,this.navigatorSeries),S(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(),k=f.min,v=f.max,G=f.dataMin,U=f.dataMax,D=v-k,H=l.stickToMin,z=l.stickToMax,W=m(n.options.overscroll,0),d=l.series&&l.series[0],R=!!n.setExtremes,Z=n.eventArgs&&n.eventArgs.trigger==="rangeSelectorButton";let J,Y;Z||(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,k=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,k),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]),k=n.xAxis,v=k.max,G=k.min,U=k.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&&(N(this.chart.xAxis,this.xAxis),N(this.chart.axes,this.xAxis)),this.yAxis&&(N(this.chart.yAxis,this.yAxis),N(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 g}),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:I,find:j,isNumber:C,merge:p,pick:x}=o,O=[],S=[];let _;function N(){const g=this.range,h=g.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 k,v;C(g)?(k=n-g,v=g):g&&(k=n+f(n,-(g.count||1)),this.chart&&(this.chart.fixedRange=n-k));const G=x(this.dataMin,Number.MIN_VALUE);return C(k)||(k=G),k<=G&&(k=G,typeof v>"u"&&(v=f(k,g.count)),this.newMax=Math.min(k+v,x(this.dataMax,Number.MAX_VALUE))),C(n)?!C(g)&&g&&g._offsetMin&&(k+=g._offsetMin):k=void 0,k}function M(g,h,n){_=n,o.pushUnique(S,g)&&(g.prototype.minFromRange=N),o.pushUnique(S,h)&&(w(h,"afterGetContainer",b),w(h,"beforeRender",F),w(h,"destroy",L),w(h,"getMargins",m),w(h,"render",B),w(h,"update",T),h.prototype.callbacks.push(P)),o.pushUnique(S,u)&&(I(c,{rangeSelector:s.rangeSelector}),I(c.lang,s.lang))}function b(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new _(this))}function F(){const g=this,h=g.axes,n=g.rangeSelector;if(n){C(n.deferredYTDClick)&&(n.clickButton(n.deferredYTDClick),delete n.deferredYTDClick),h.forEach(f=>{f.updateNames(),f.setScale()}),g.getAxisMargins(),n.render();const l=n.options.verticalAlign;n.options.floating||(l==="bottom"?this.extraBottomMargin=!0:l!=="middle"&&(this.extraTopMargin=!0))}}function P(g){let h,n,l,f;const k=g.rangeSelector,v=()=>{k&&(h=g.xAxis[0].getExtremes(),n=g.legend,f=k&&k.options.verticalAlign,C(h.min)&&k.render(h.min,h.max),n.display&&f==="top"&&f===n.options.verticalAlign&&(l=p(g.spacingBox),n.options.layout==="vertical"?l.y=g.plotTop:l.y+=k.getHeight(),n.group.placed=!1,n.align(l)))};k&&(j(O,U=>U[0]===g)||O.push([g,[w(g.xAxis[0],"afterSetExtremes",function(U){k&&k.render(U.min,U.max)}),w(g,"redraw",v)]]),v())}function L(){for(let g=0,h=O.length;g<h;++g){const n=O[g];if(n[0]===this){n[1].forEach(l=>l()),O.splice(g,1);return}}}function m(){const g=this.rangeSelector;if(g){const h=g.getHeight();this.extraTopMargin&&(this.plotTop+=h),this.extraBottomMargin&&(this.marginBottom+=h)}}function B(){const g=this,h=g.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(g){const h=this,n=g.options,l=n.rangeSelector,f=this.extraBottomMargin,k=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!==k)&&(this.isDirtyBox=!0)}}return{compose:M}}),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:I,createElement:j,css:C,defined:p,destroyObjectProperties:x,discardElement:O,extend:S,fireEvent:_,isNumber:N,merge:M,objectEach:b,pad:F,pick:P,pInt:L,splat:m}=w;function B(A){if(A.indexOf("%L")!==-1)return"text";const h=["a","A","d","e","w","b","B","m","o","y","Y"].some(l=>A.indexOf("%"+l)!==-1),n=["H","k","I","l","M","S"].some(l=>A.indexOf("%"+l)!==-1);return h&&n?"datetime-local":h?"date":n?"time":"text"}class T{static compose(g,h){c.compose(g,h,T)}constructor(g){this.buttons=void 0,this.buttonOptions=T.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=g,this.init(g)}clickButton(g,h){const n=this,l=n.chart,f=n.buttonOptions[g],k=l.xAxis[0],v=l.scroller&&l.scroller.getUnionExtremes()||k||{},G=f.type,U=f.dataGrouping;let D=v.dataMin,H=v.dataMax,z,W=k&&Math.round(Math.min(k.max,P(H,k.max))),d,R=f._range,Z,J,Y,ee,E,V=!0;if(!(D===null||H===null)){if(l.fixedRange=R,n.setSelected(g),U&&(this.forcedDataGrouping=!0,i.prototype.setDataGrouping.call(k||{chart:this.chart},U,!1),this.frozenStates=f.preserveDataGrouping),G==="month"||G==="year")k?(ee={range:f,max:W,chart:l,dataMin:D,dataMax:H},z=k.minFromRange.call(ee),N(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(k)(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=Z=E.min,W=E.max;else{n.deferredYTDClick=g;return}else G==="all"&&k&&(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=g+1),k?k.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=Z,I(l,"load",function(){d.range=Y,d.min=J})),_(this,"afterBtnClick")}}setSelected(g){this.selected=this.options.selected=g}init(g){const h=this,n=g.options.rangeSelector,l=n.buttons||h.defaultButtons.slice(),f=n.selected,k=function(){const v=h.minInput,G=h.maxInput;v&&v.blur&&_(v,"blur"),G&&G.blur&&_(G,"blur")};h.chart=g,h.options=n,h.buttons=[],h.buttonOptions=l,this.eventsToUnbind=[],this.eventsToUnbind.push(I(g.container,"mousedown",k)),this.eventsToUnbind.push(I(g,"resize",k)),l.forEach(h.computeButtonRange),typeof f<"u"&&l[f]&&this.clickButton(f,!1),this.eventsToUnbind.push(I(g,"load",function(){g.xAxis&&g.xAxis[0]&&I(g.xAxis[0],"setExtremes",function(v){this.max-this.min!==g.fixedRange&&v.trigger!=="rangeSelectorButton"&&v.trigger!=="updatedData"&&h.forcedDataGrouping&&!h.frozenStates&&this.setDataGrouping(!1,!1)})}))}updateButtonStates(){const g=this,h=this.chart,n=this.dropdown,l=h.xAxis[0],f=Math.round(l.max-l.min),k=!l.hasVisibleSeries,v=24*36e5,G=h.scroller&&h.scroller.getUnionExtremes()||l,U=G.dataMin,D=G.dataMax,H=g.getYTDExtremes(D,U,h.time.useUTC),z=H.min,W=H.max,d=g.selected,R=g.options.allButtonsEnabled,Z=g.buttons;let J=N(d);g.buttonOptions.forEach((Y,ee)=>{const E=Y._range,V=Y.type,X=Y.count||1,Q=Z[ee],ie=Y._offsetMax-Y._offsetMin,K=ee===d,oe=E>D-U,ce=E<l.minRange;let ne=0,pe=!1,te=!1,re=E===f;(V==="month"||V==="year")&&f+36e5>={month:28,year:365}[V]*v*X-ie&&f-36e5<={month:31,year:366}[V]*v*X+ie?re=!0:V==="ytd"?(re=W-z+ie===f,pe=!K):V==="all"&&(re=l.max-l.min>=D-U,te=!K&&J&&re);const q=!R&&(oe||ce||te||k),ae=K&&re||re&&!J&&!pe||K&&g.frozenStates;q?ne=3:ae&&(J=!0,ne=2),Q.state!==ne&&(Q.setState(ne),n&&(n.options[ee+1].disabled=q,ne===2&&(n.selectedIndex=ee+1)),ne===0&&d===ee&&g.setSelected())})}computeButtonRange(g){const h=g.type,n=g.count||1,l={millisecond:1,second:1e3,minute:60*1e3,hour:3600*1e3,day:24*3600*1e3,week:7*24*3600*1e3};l[h]?g._range=l[h]*n:(h==="month"||h==="year")&&(g._range={month:30,year:365}[h]*24*36e5*n),g._offsetMin=P(g.offsetMin,0),g._offsetMax=P(g.offsetMax,0),g._range+=g._offsetMax-g._offsetMin}getInputValue(g){const h=g==="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(g,h){const n=this.options,l=this.chart.time,f=g==="min"?this.minInput:this.maxInput,k=g==="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),k&&k.attr({text:l.dateFormat(n.inputDateFormat,G)})}}setInputExtremes(g,h,n){const l=g==="min"?this.minInput:this.maxInput;if(l){const f=this.inputTypeFormats[l.type],k=this.chart.time;if(f){const v=k.dateFormat(f,h);l.min!==v&&(l.min=v);const G=k.dateFormat(f,n);l.max!==G&&(l.max=G)}}}showInput(g){const h=g==="min"?this.minDateBox:this.maxDateBox,n=g==="min"?this.minInput:this.maxInput;if(n&&h&&this.inputGroup){const l=n.type==="text",{translateX:f,translateY:k}=this.inputGroup,{inputBoxWidth:v}=this.options;C(n,{width:l?h.width+(v?-2:20)+"px":"auto",height:h.height-2+"px",border:"2px solid silver"}),l&&v?C(n,{left:f+h.x+"px",top:k+"px"}):C(n,{left:Math.min(Math.round(h.x+f-(n.offsetWidth-h.width)/2),this.chart.chartWidth-n.offsetWidth)+"px",top:k-(n.offsetHeight-h.height)/2+"px"})}}hideInput(g){const h=g==="min"?this.minInput:this.maxInput;h&&C(h,{top:"-9999em",border:0,width:"1px",height:"1px"})}defaultInputDateParser(g,h,n){const l=v=>v.length>6&&(v.lastIndexOf("-")===v.length-6||v.lastIndexOf("+")===v.length-6);let f=g.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 k=Date.parse(f);if(!N(k)){const v=g.split("-");k=Date.UTC(L(v[0]),L(v[1])-1,L(v[2]))}return n&&h&&N(k)&&(k+=n.getTimezoneOffset(k)),k}drawInput(g){const{chart:h,div:n,inputGroup:l}=this,f=this,k=h.renderer.style||{},v=h.renderer,G=h.options.rangeSelector,U=y.lang,D=g==="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(g);Q!==Number(R.getAttribute("data-hc-time-previous"))&&N(Q)&&(R.setAttribute("data-hc-time-previous",Q),D&&J&&N(V)?Q>Number(J.getAttribute("data-hc-time"))?Q=void 0:Q<V&&(Q=V):Y&&N(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(g),f[g+"Input"].focus()});h.styledMode||d.attr({stroke:G.inputBoxBorderColor,"stroke-width":1}),d.add(l);const R=j("input",{name:g,className:"highcharts-range-selector"},void 0,n);R.setAttribute("type",B(G.inputDateFormat||"%e %b %Y")),h.styledMode||(W.css(M(k,G.labelStyle)),d.css(M({color:"#333333"},k,G.inputStyle)),C(R,S({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:k.fontSize,fontFamily:k.fontFamily,top:"-9999em"},G.inputStyle))),R.onfocus=()=>{f.showInput(g)},R.onblur=()=>{R===o.doc.activeElement&&H(),f.hideInput(g),f.setInputValue(g),R.blur()};let Z=!1;return R.onchange=()=>{Z||(H(),f.hideInput(g),R.blur())},R.onkeypress=J=>{J.keyCode===13&&H()},R.onkeydown=J=>{Z=!0,(J.keyCode===38||J.keyCode===40)&&H()},R.onkeyup=()=>{Z=!1},{dateBox:d,input:R,label:W}}getPosition(){const g=this.chart,h=g.options.rangeSelector,n=h.verticalAlign==="top"?g.plotTop-g.axisOffset[0]:0;return{buttonTop:n+h.buttonPosition.y,inputTop:n+h.inputPosition.y-10}}getYTDExtremes(g,h,n){const l=this.chart.time,f=new l.Date(g),k=l.get("FullYear",f),v=n?l.Date.UTC(k,0,1):+new l.Date(k,0,1),G=Math.max(h,v),U=f.getTime();return{max:Math.min(g||U,U),min:G}}render(g,h){const n=this.chart,l=n.renderer,f=n.container,k=n.options,v=k.rangeSelector,G=P(k.chart.style&&k.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=j("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",g),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:g,chart:h,options:n}=this,l=y.lang,f=h.renderer,k=M(n.buttonTheme),v=k&&k.states,G=k.width||28;delete k.width,delete k.states,this.buttonGroup=f.g("range-selector-buttons").add(this.group);const U=this.dropdown=j("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);I(U,"touchstart",()=>{U.style.fontSize="16px"}),[[o.isMS?"mouseover":"mouseenter"],[o.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(([D,H])=>{I(U,D,()=>{const z=g[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),k["stroke-width"]=P(k["stroke-width"],0)),j("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,U),this.buttonOptions.forEach((D,H)=>{j("option",{textContent:D.title||D.text},void 0,U),g[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},k,v&&v.hover,v&&v.select,v&&v.disabled).attr({"text-align":"center",width:G}).add(this.buttonGroup),D.title&&g[H].attr("title",D.title)})}alignElements(){const{buttonGroup:g,buttons:h,chart:n,group:l,inputGroup:f,options:k,zoomText:v}=this,G=n.options,U=G.exporting&&G.exporting.enabled!==!1&&G.navigation&&G.navigation.buttonOptions,{buttonPosition:D,inputPosition:H,verticalAlign:z}=k,W=(R,Z)=>U&&this.titleCollision(n)&&z==="top"&&Z.align==="right"&&Z.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(g){if(this.positionButtons(),!this.initialButtonGroupWidth){let ie=0;v&&(ie+=v.getBBox().width+5),h.forEach((K,oe)=>{ie+=K.width,oe!==h.length-1&&(ie+=k.buttonSpacing)}),this.initialButtonGroupWidth=ie}d-=n.spacing[3],this.updateButtonStates();const Q=W(g,D);this.alignButtonGroup(Q),l.placed=g.placed=n.hasLoaded}let Z=0;f&&(Z=W(f,H),H.align==="left"?R=d:H.align==="right"&&(R=-Math.max(n.axisOffset[1],-Z)),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(Z),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,ie=Q&&Q.verticalAlign==="bottom"&&Q.enabled&&!Q.floating?n.legend.legendHeight+P(Q.margin,10):0;Y=Y+ie-20,ee=J-Y-(k.floating?0:k.y)-(n.titleOffset?n.titleOffset[2]:0)-10}z==="top"?(k.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(k.x,k.y+Math.floor(ee));const{minInput:E,maxInput:V,dropdown:X}=this;k.inputEnabled&&E&&V&&(E.style.marginTop=l.translateY+"px",V.style.marginTop=l.translateY+"px"),X&&(X.style.marginTop=l.translateY+"px")}}alignButtonGroup(g,h){const{chart:n,options:l,buttonGroup:f,buttons:k}=this,{buttonPosition:v}=l,G=n.plotLeft-n.spacing[3];let U=v.x-n.spacing[3];v.align==="right"?U+=g-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:g,chart:h,options:n,zoomText:l}=this,f=h.hasLoaded?"animate":"attr",{buttonPosition:k}=n,v=h.plotLeft;let G=v;l&&l.visibility!=="hidden"&&(l[f]({x:P(v+k.x,v)}),G+=k.x+l.getBBox().width+5);for(let U=0,D=this.buttonOptions.length;U<D;++U)g[U].visibility!=="hidden"?(g[U][f]({x:G}),G+=g[U].width+n.buttonSpacing):g[U][f]({x:v})}handleCollision(g){const{chart:h,buttonGroup:n,inputGroup:l}=this,{buttonPosition:f,dropdown:k,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-g+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]>=-g?0:-g),translateY:l.alignAttr.translateY+n.getBBox().height+10})};if(n){if(k==="always"){this.collapseButtons(g),U(G())&&D();return}k==="never"&&this.expandButtons()}l&&n?v.align===f.align||U(this.initialButtonGroupWidth+20)?k==="responsive"?(this.collapseButtons(g),U(G())&&D()):D():k==="responsive"&&this.expandButtons():n&&k==="responsive"&&(this.initialButtonGroupWidth>h.plotWidth?this.collapseButtons(g):this.expandButtons())}collapseButtons(g){const{buttons:h,buttonOptions:n,chart:l,dropdown:f,options:k,zoomText:v}=this,G=l.userOptions.rangeSelector&&l.userOptions.rangeSelector.buttonTheme||{},U=z=>({text:z?`${z} ▾`:"▾",width:"auto",paddingLeft:P(k.buttonTheme.paddingLeft,G.padding,8),paddingRight:P(k.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}=k.buttonPosition;this.positionButtons(),(H==="right"||H==="center")&&this.alignButtonGroup(g,h[this.currentButtonIndex()].getBBox().width),this.showDropdown()}expandButtons(){const{buttons:g,buttonOptions:h,options:n,zoomText:l}=this;this.hideDropdown(),l&&l.show(),h.forEach((f,k)=>{const v=g[k];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:g}=this;return g&&g.selectedIndex>0?g.selectedIndex-1:0}showDropdown(){const{buttonGroup:g,buttons:h,chart:n,dropdown:l}=this;if(g&&l){const{translateX:f,translateY:k}=g,v=h[this.currentButtonIndex()].getBBox();C(l,{left:n.plotLeft+f+"px",top:k+.5+"px",width:v.width+"px",height:v.height+"px"}),this.hasVisibleDropdown=!0}}hideDropdown(){const{dropdown:g}=this;g&&(C(g,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)}getHeight(){const g=this,h=g.options,n=g.group,l=h.inputPosition,f=h.buttonPosition,k=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+k:0;const D=Math.min(G,v);return(G<0&&v<0||G>0&&v>0)&&(U+=Math.abs(D)),U}titleCollision(g){return!(g.options.title.text||g.options.subtitle.text)}update(g){const h=this.chart;M(!0,h.options.rangeSelector,g),this.destroy(),this.init(h),this.render()}destroy(){const g=this,h=g.minInput,n=g.maxInput;g.eventsToUnbind&&(g.eventsToUnbind.forEach(l=>l()),g.eventsToUnbind=void 0),x(g.buttons),h&&(h.onfocus=h.onblur=h.onchange=null),n&&(n.onfocus=n.onblur=n.onchange=null),b(g,function(l,f){l&&f!=="chart"&&(l instanceof u?l.destroy():l instanceof r.HTMLElement&&O(l)),l!==T.prototype[f]&&(g[f]=null)},this)}}return S(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:I,error:j,pick:C,timeUnits:p}=c,x=[];var O;return function(S){function _(n,l,f){if(c.pushUnique(x,n)){const k=n.prototype;k.getTimeTicks=N,k.index2val=M,k.lin2val=b,k.val2lin=g,k.ordinal2lin=k.val2lin,u(n,"afterInit",P),u(n,"foundExtremes",L),u(n,"afterSetScale",m),u(n,"initialAxisTranslation",B)}return c.pushUnique(x,f)&&u(f,"pan",T),c.pushUnique(x,l)&&u(l,"updatedData",A),n}S.compose=_;function N(n,l,f,k,v=[],G=0,U){const D={},H=this.options.tickPixelInterval,z=this.chart.time,W=[];let d,R,Z,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],k);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",Z=!0);Z&&(D[E[0]]="day"),J.higherRanks=D}J.segmentStarts=W,E.info=J}else j(12,!1,this.chart);if(U&&I(H)){const Q=E.length,ie=[],K=[];let oe,ce,ne,pe,te,re=Q;for(;re--;)ce=this.translate(E[re]),ne&&(K[re]=ne-ce),ie[re]=ne=ce;for(K.sort(),pe=K[Math.floor(K.length/2)],pe<H*.6&&(pe=null),re=E[Q-1]>f?Q-1:Q,ne=void 0;re--;)ce=ie[re],te=Math.abs(ne-ce),ne&&te<H*.8&&(pe===null||te<pe*.8)?(D[E[re]]&&!D[E[re+1]]?(oe=re+1,ne=ce):oe=re,E.splice(oe,1)):ne=ce}return E}function M(n){const l=this,f=l.ordinal,k=f.positions;if(!k)return n;let v=k.length-1,G;return n<0?n=k[0]:n>v?n=k[v]:(v=Math.floor(n),G=n-v),typeof G<"u"&&typeof k[v]<"u"?k[v]+(G?G*(k[v+1]-k[v]):0):n}function b(n){const l=this,f=l.ordinal,k=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-k)*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],Z=G[d-1],J=(Z-R)/(d-1);return z<0?R+J*z:Z+J*(z-d)}return n}function F(n,l){const f=S.Additions.findIndexOf(n,l,!0);if(n[f]===l)return f;const k=(l-n[f])/(n[f+1]-n[f]);return f+k}function P(){const n=this;n.ordinal||(n.ordinal=new S.Additions(n))}function L(){const n=this;n.isXAxis&&I(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&&I(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],k=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,Z=f.closestPointRange||f.ordinal&&f.ordinal.overscrollPointsRange,J=f.translationSlope*(f.ordinal.slope||Z),Y=Math.round((D-v)/J),ee=f.ordinal.getExtendedPositions(),E={ordinal:{positions:ee,extendedOrdinalPositions:ee}},V=f.index2val,X=f.val2lin;let Q,ie,K,oe;E.ordinal.positions?Math.abs(Y)>1&&(R&&R.forEach(function(ce){ce.setState()}),Y<0?(K=E,oe=f.ordinal.positions?f:E):(K=f.ordinal.positions?f:E,oe=E),ie=oe.ordinal.positions,z>ie[ie.length-1]&&ie.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(oe,[X.apply(oe,[d,!0])+Y])),Q.min>=Math.min(H.dataMin,W)&&Q.max<=Math.max(z,d)+k&&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)?k&&(f.max=f.dataMax+k):n.preventDefault()}function A(){const n=this.xAxis;n&&n.options.ordinal&&(delete n.ordinal.index,delete n.ordinal.extendedOrdinalPositions)}function g(n,l){const f=this,k=f.ordinal,v=k.positions;let G=k.slope,U=k.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=k.getExtendedPositions&&k.getExtendedPositions(),k.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)+k.offset}class h{constructor(l){this.index={},this.axis=l}beforeSetTickPositions(){const l=this.axis,f=l.ordinal,k=l.getExtremes(),v=k.min,G=k.max,U=l.isXAxis&&!!l.options.breaks,D=l.options.ordinal,H=l.chart.options.chart.ignoreHiddenSeries;let z,W,d,R,Z,J,Y,ee=[],E=Number.MAX_VALUE,V=!1,X=!1,Q=!1;if(D||U){let ie=0;if(l.series.forEach(function(K,oe){if(W=[],oe>0&&K.options.id!=="highcharts-navigator-series"&&K.processedXData.length>1&&(X=ie!==K.processedXData[1]-K.processedXData[0]),ie=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(ce,ne){return ce-ne}),E=Math.min(E,C(K.closestPointRange,E)),z)){for(oe=0;oe<z-1;)ee[oe]!==ee[oe+1]&&W.push(ee[oe+1]),oe++;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),Z=Math.max(l.ordinal2lin(Math.min(G,ee[ee.length-1]),!0),1),f.slope=J=(G-v)/(Z-R),f.offset=v-R*J):(f.overscrollPointsRange=C(l.closestPointRange,f.overscrollPointsRange),f.positions=l.ordinal.slope=f.offset=void 0)}l.isOrdinal=D&&V,f.groupIntervalFactor=null}static findIndexOf(l,f,k){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||k?v:-1}getExtendedPositions(){const l=this,f=l.axis,k=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:k.getGroupPixelWidth,getTimeTicks:k.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:k.ordinal2lin,getIndexOfPoint:k.getIndexOfPoint,val2lin:k.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,k){const v=this;v.axis;const G=k.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 k=this,v=k.axis,G=k.positions?k.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];I(R==null?void 0:R.plotX)&&(R.plotX<D||!I(D))&&U(W)&&(D=R.plotX)}),D??(D=v.minPixelPadding);const H=v.translationSlope*(k.slope||v.closestPointRange||k.overscrollPointsRange),z=w((l-D)/H);return h.findIndexOf(f,G,!0)+z}getOverscrollPositions(){const l=this,f=l.axis,k=f.options.overscroll,v=l.overscrollPointsRange,G=[];let U=f.dataMax;if(I(v))for(;U<=f.dataMax+k;)U+=v,G.push(U);return G}postProcessTickInterval(l){const f=this,k=f.axis,v=f.slope;let G;return v?k.options.breaks?G=k.closestPointRange||l:G=l/(v/k.closestPointRange):G=l,G}}S.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 I extends u{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0,this.yData=void 0}extendStem(C,p,x){const O=C[0],S=C[1];typeof O[2]=="number"&&(O[2]=Math.max(x+p,O[2])),typeof S[2]=="number"&&(S[2]=Math.min(x-p,S[2]))}getPointPath(C,p){const x=p.strokeWidth(),O=C.series,S=x%2/2,_=Math.round(C.plotX)-S,N=Math.round(C.shapeArgs.width/2);let M=C.plotClose;const b=[["M",_,Math.round(C.yBottom)],["L",_,Math.round(C.plotHigh)]];return C.close!==null&&(M=Math.round(C.plotClose)+S,b.push(["M",_,M],["L",_+N,M]),O.extendStem(b,x/2,M)),b}drawSinglePoint(C){const p=C.series,x=p.chart;let O,S=C.graphic;typeof C.plotY<"u"&&(S||(C.graphic=S=x.renderer.path().add(p.group)),x.styledMode||S.attr(p.pointAttribs(C,C.selected&&"select")),O=p.getPointPath(C,S),S[S?"animate":"attr"]({d:O}).addClass(C.getClassName(),!0))}drawPoints(){this.points.forEach(this.drawSinglePoint)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}pointAttribs(C,p){const x=super.pointAttribs.call(this,C,p);return delete x.fill,x}toYData(C){return[C.high,C.low,C.close]}translate(){const C=this,p=C.yAxis,x=this.pointArrayMap&&this.pointArrayMap.slice()||[],O=x.map(S=>`plot${S.charAt(0).toUpperCase()+S.slice(1)}`);O.push("yBottom"),x.push("low"),super.translate.apply(C),C.points.forEach(function(S){x.forEach(function(_,N){let M=S[_];M!==null&&(C.dataModify&&(M=C.dataModify.modifyValue(M)),S[O[N]]=p.toPixels(M,!0))}),S.tooltipPos[1]=S.plotHigh+p.pos-C.chart.plotTop})}}return I.defaultOptions=y(u.defaultOptions,s),w(I.prototype,{pointClass:i,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),o.registerSeriesType("hlc",I),I}),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:I}=c,j=[];function C(O){const S=O.options,_=S.dataGrouping;_&&S.useOhlcData&&S.id!=="highcharts-navigator-series"&&(_.approximation="ohlc")}function p(O){const S=this,_=O.options;_.useOhlcData&&_.id!=="highcharts-navigator-series"&&y(S,{pointValKey:x.prototype.pointValKey,pointArrayMap:x.prototype.pointArrayMap,toYData:x.prototype.toYData})}class x extends u{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}static compose(S,..._){c.pushUnique(j,S)&&(w(S,"afterSetOptions",C),w(S,"init",p))}getPointPath(S,_){const N=super.getPointPath(S,_),M=_.strokeWidth(),b=M%2/2,F=Math.round(S.plotX)-b,P=Math.round(S.shapeArgs.width/2);let L=S.plotOpen;return S.open!==null&&(L=Math.round(S.plotOpen)+b,N.push(["M",F,L],["L",F-P,L]),super.extendStem(N,M/2,L)),N}pointAttribs(S,_){const N=super.pointAttribs.call(this,S,_),M=this.options;return delete N.fill,!S.options.color&&M.upColor&&S.open<S.close&&(N.stroke=M.upColor),N}toYData(S){return[S.open,S.high,S.low,S.close]}}return x.defaultOptions=I(u.defaultOptions,s),y(x.prototype,{pointClass:i,pointArrayMap:["open","high","low","close"]}),o.registerSeriesType("ohlc",x),x}),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:I}=c;class j extends y{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}pointAttribs(p,x){const O=w.prototype.pointAttribs.call(this,p,x),S=this.options,_=p.open<p.close,N=S.lineColor||this.color,M=p.color||this.color;if(O["stroke-width"]=S.lineWidth,O.fill=p.options.color||_&&S.upColor||M,O.stroke=p.options.lineColor||_&&S.upLineColor||N,x){const b=S.states[x];O.fill=b.color||O.fill,O.stroke=b.lineColor||O.stroke,O["stroke-width"]=b.lineWidth||O["stroke-width"]}return O}drawPoints(){const p=this,x=p.points,O=p.chart,S=p.yAxis.reversed;for(const _ of x){let N=_.graphic,M,b,F,P,L,m,B,T,A,g;const h=!N;typeof _.plotY<"u"&&(N||(_.graphic=N=O.renderer.path().add(p.group)),p.chart.styledMode||N.attr(p.pointAttribs(_,_.selected&&"select")).shadow(p.options.shadow),B=N.strokeWidth()%2/2,T=Math.round(_.plotX)-B,M=_.plotOpen,b=_.plotClose,F=Math.min(M,b),P=Math.max(M,b),g=Math.round(_.shapeArgs.width/2),L=S?P!==_.yBottom:Math.round(F)!==Math.round(_.plotHigh),m=S?Math.round(F)!==Math.round(_.plotHigh):P!==_.yBottom,F=Math.round(F)+B,P=Math.round(P)+B,A=[],A.push(["M",T-g,P],["L",T-g,F],["L",T+g,F],["L",T+g,P],["Z"],["M",T,F],["L",T,L?Math.round(S?_.yBottom:_.plotHigh):F],["M",T,P],["L",T,m?Math.round(S?_.plotHigh:_.yBottom):P]),N[h?"attr":"animate"]({d:A}).addClass(_.getClassName(),!0))}}}return j.defaultOptions=I(y.defaultOptions,u.plotOptions,{tooltip:y.defaultOptions.tooltip},i),o.registerSeriesType("candlestick",j),j}),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(I){if(c.indexOf(I)===-1){c.push(I);const C=I.prototype.symbols;C.flag=w,y(C,"circle"),y(C,"square")}const j=i.getRendererType();c.indexOf(j)&&c.push(j)}o.compose=u;function w(I,j,C,p,x){const O=x&&x.anchorX||I,S=x&&x.anchorY||j,_=this.circle(O-1,S-1,2,2);return _.push(["M",O,S],["L",I,j+p],["L",I,j],["L",I+C,j],["L",I+C,j+p],["L",I,j+p],["Z"]),_}function y(I,j){I[j+"pin"]=function(C,p,x,O,S){const _=S&&S.anchorX,N=S&&S.anchorY;let M;if(j==="circle"&&O>x&&(C-=Math.round((O-x)/2),x=O),M=I[j](C,p,x,O),_&&N){let b=_;if(j==="circle")b=C+x/2;else{const P=M[0],L=M[1];P[0]==="M"&&L[0]==="L"&&(b=(P[1]+L[1])/2)}const F=p>N?p:p+O;M.push(["M",b,F],["L",_,N]),M=M.concat(I.circle(_-1,N-1,2,2))}return M}}}(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 I;return function(j){const C=[];function p(S){if(o.pushUnique(C,S)){const _=S.prototype;_.getPlotBox=x,_.translate=O}return S}j.compose=p;function x(S){return u.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,S)}j.getPlotBox=x;function O(){c.translate.apply(this);const S=this,_=S.options,N=S.chart,M=S.points,b=_.onSeries,F=b&&N.get(b),P=F&&F.options.step,L=F&&F.points,m=N.inverted,B=S.xAxis,T=S.yAxis;let A=M.length-1,g,h,n=_.onKey||"y",l=L&&L.length,f=0,k,v,G,U,D;if(F&&F.visible&&l)for(f=(F.pointXOffset||0)+(F.barW||0)/2,U=F.currentDataGrouping,v=L[l-1].x+(U?U.totalRange:0),y(M,(H,z)=>H.x-z.x),n="plot"+n[0].toUpperCase()+n.substr(1);l--&&M[A]&&(k=L[l],g=M[A],g.y=k.y,!(k.x<=g.x&&typeof k[n]<"u"&&(g.x<=v&&(g.plotY=k[n],k.x<g.x&&!P&&(G=L[l+1],G&&typeof G[n]<"u"&&(D=(g.x-k.x)/(G.x-k.x),g.plotY+=D*(G[n]-k[n]),g.y+=D*(G.y-k.y)))),A--,l++,A<0))););M.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:S.yAxis.len)+B.offset:H.shapeArgs={}),h=M[z-1],h&&h.plotX===H.plotX&&(typeof h.stackIndex>"u"&&(h.stackIndex=0),W=h.stackIndex+1),H.stackIndex=W}),this.onSeries=F}j.translate=O}(I||(I={})),I}),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,I,j){const{noop:C}=c,{distribute:p}=w,{series:x,seriesTypes:{column:O}}=y,{addEvent:S,defined:_,extend:N,merge:M,objectEach:b,wrap:F}=j;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,A=T.renderer,g=T.inverted,h=m.options,n=h.y,l=m.yAxis,f={},k=[];let v,G,U,D,H,z,W,d,R,Z,J;for(D=B.length;D--;)H=B[D],Z=(g?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&&!Z?(z&&H.hasNewShapeType()&&(z=z.destroy()),z||(z=H.graphic=A.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(M(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;b(f,function(ee){ee.plotX=ee.anchorX,k.push(ee),Y=Math.max(ee.size,Y)}),p(k,g?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 I.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 A=T.graphic;A&&(T.unbindMouseOver&&T.unbindMouseOver(),T.unbindMouseOver=S(A.element,"mouseover",function(){T.stackIndex>0&&!T.raised&&(T._y=A.y,A.attr({y:T._y-8}),T.raised=!0);for(const g of B)g!==T&&g.raised&&g.graphic&&(g.graphic.attr({y:g._y}),g.raised=!1)}))}}pointAttribs(m,B){const T=this.options,A=m&&m.color||this.color;let g=T.lineColor,h=m&&m.lineWidth,n=m&&m.fillColor||T.fillColor;return B&&(n=T.states[B].fillColor,g=T.states[B].lineColor,h=T.states[B].lineWidth),{fill:n||A,stroke:g||A,"stroke-width":h||T.lineWidth||0}}setClip(){x.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=M(O.defaultOptions,s),u.compose(P),N(P.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:i,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:C,init:x.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,I,j,C){const{format:p}=o,{getOptions:x}=c,{addEvent:O,clamp:S,defined:_,extend:N,find:M,isNumber:b,isString:F,merge:P,pick:L,splat:m}=C;class B extends s{init(h,n){const l=x(),f=h.xAxis,k=h.yAxis,v=L(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:L(y.enabled,!0)},rangeSelector:{enabled:L(w.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:L(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},h,{isStock:!0});h.xAxis=f,h.yAxis=k,G.xAxis=m(h.xAxis||{}).map(function(U,D){return P(T("xAxis",U),l.xAxis,l.xAxis&&l.xAxis[D],U,A("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,A(h,this.userOptions)),super.createAxis(h,n)}}(function(g){function h(n,l,f){return new g(n,l,f)}g.stockChart=h})(B||(B={}));function T(g,h){return g==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:g==="yAxis"?{labels:{y:-2},opposite:L(h.opposite,!0),showLastLabel:!!(h.categories||h.type==="category"),title:{text:null}}:{}}function A(g,h){if(g==="xAxis"){const n=L(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(I,"setOptions",function(g){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&&(g.plotOptions[this.type]=P(g.plotOptions[this.type],h)))}),O(i,"autoLabelAlign",function(g){const{chart:h,options:n}=this,l=h._labelPanes=h._labelPanes||{},f=n.labels;if(h.options.isStock&&this.coll==="yAxis"){const k=n.top+","+n.height;!l[k]&&f.enabled&&(f.distance===15&&this.side===1&&(f.distance=0),typeof f.align>"u"&&(f.align="right"),l[k]=this,g.align="right",g.preventDefault())}}),O(i,"destroy",function(){const g=this.chart,h=this.options&&this.options.top+","+this.options.height;h&&g._labelPanes&&g._labelPanes[h]===this&&delete g._labelPanes[h]}),O(i,"getPlotLinePath",function(g){let h=this,n=this.isLinked&&!this.series?this.linkedParent.series:this.series,l=h.chart,f=l.renderer,k=h.left,v=h.top,G,U,D,H,z=[],W=[],d,R,Z=g.translatedValue,J=g.value,Y=g.force,ee;function E(V){const X=V==="xAxis"?"yAxis":"xAxis",Q=h.options[X];return b(Q)?[l[X][Q]]:F(Q)?[l.get(Q)]:n.map(function(ie){return ie[X]})}(l.options.isStock&&g.acrossPanes!==!1&&h.coll==="xAxis"||h.coll==="yAxis")&&(g.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&&!M(R,function(X){return X.pos===V.pos&&X.len===V.len})&&R.push(V)}),ee=L(Z,h.translate(J,void 0,void 0,g.old)),b(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<k||G>k+h.width)&&(Y?G=D=S(G,k,k+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=S(U,v,v+h.height):X=!0),X||z.push(["M",G,U],["L",D,H])})),g.path=z.length>0?f.crispPolyLine(z,g.lineWidth||1):null)}),j.prototype.crispPolyLine=function(g,h){for(let n=0;n<g.length;n=n+2){const l=g[n],f=g[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 g},O(i,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}),O(i,"afterDrawCrosshair",function(g){if(!this.crosshair||!this.crosshair.label||!this.crosshair.label.enabled||!this.cross||!b(this.min)||!b(this.max))return;let h=this.chart,n=this.logarithmic,l=this.crosshair.label,f=this.horiz,k=this.opposite,v=this.left,G=this.top,U=this.width,D=this.crossLabel,H,z,W,d=l.format,R="",Z,J,Y=this.options.tickPosition==="inside",ee=this.crosshair.snap!==!1,E=0,V=g.e||this.cross&&this.cross.e,X=g.point,Q=this.min,ie=this.max;n&&(Q=n.lin2log(Q),ie=n.lin2log(ie)),J=f?"center":k?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:L(l.padding,8),r:L(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(N({color:"#ffffff",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},l.style||{}))),f?(H=ee?(X.plotX||0)+v:V.chartX,z=G+(k?0:this.height)):(H=v+this.offset+(k?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),oe=X&&X.series?X.series.isPointInside(X):b(K)&&K>Q&&K<ie;let ce="";d?ce=p(d,{value:K},h):l.formatter&&b(K)&&(ce=l.formatter.call(this,K)),D.attr({text:ce,x:H,y:z,visibility:oe?"inherit":"hidden"}),W=D.getBBox(),b(D.x)&&!f&&!k&&(H=D.x-W.width/2),b(D.y)&&(f?(Y&&!k||!Y&&k)&&(z=D.y-W.height):z=D.y-W.height/2),f?Z={left:v-W.x,right:v+this.width-W.x}:Z={left:this.labelAlign==="left"?v:0,right:this.labelAlign==="right"?v+this.width:h.chartWidth},D.translateX<Z.left&&(E=Z.left-D.translateX),D.translateX+W.width>=Z.right&&(E=-(D.translateX+W.width-Z.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})}),I.prototype.forceCropping=function(){const g=this.chart,h=this.options,n=h.dataGrouping;return this.allowDG!==!1&&n&&L(n.enabled,g.options.isStock)},O(s,"update",function(g){const h=g.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,I,j){const C=i;C.Navigator=o,C.RangeSelector=c,C.Scrollbar=u,C.StockChart=C.stockChart=j.stockChart,s.compose(C.Series,C.Axis,C.Point),I.compose(C.Renderer),o.compose(C.Axis,C.Chart,C.Series),y.compose(C.Series),w.compose(C.Axis,C.Series,C.Chart),c.compose(C.Axis,C.Chart),u.compose(C.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"]})})(uo);var Nh=uo.exports;const po=gc(Nh);function jh(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 Qt=jh();function Vt(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 lt(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 Uh={style:{height:"100%"}},Hh=We("div",{id:"container",style:{"min-height":"500px"}},null,-1),Wh={style:{"text-align":"center","margin-top":"20px"}},zh=We("thead",null,[We("tr",null,[We("th",null,"编号"),We("th",null,"时间"),We("th",null,"备注")])],-1),Gh={__name:"highcharts-t",props:{dataList:{type:Array,default:()=>[]}},emits:["setTimeFun"],setup(e,{emit:r}){const t=e,a=_t(),i=ze(!1),s=qe({tBottom:2,tTop:8}),o=ki();Xt(()=>o.state.plotLineList);const c=qe({chartOptions:null,data:[]}),u=()=>{c.chartOptions=new po.stockChart("container",{chart:{zoomType:"x",events:{selection(C){console.log("框选",C),C.xAxis&&(Qt.emit("onSelectionTime",C.xAxis),r("setTimeFun",C.xAxis))}},panning:this,pinchType:"",panKey:"shift"},xAxis:{type:"datetime"},time:{useUTC:!1},boost:{useGPUTranslations:!0},tooltip:{formatter:function(){var C=Vt(this.points[0].x)+"<br/>";this.points.sort((p,x)=>x.y-p.y);for(let p in this.points)C+=`<br/><div style='color:${this.points[p].series.color}'>`+this.points[p].series.name+": "+this.points[p].y.toFixed(1)+"°C</div>";return C},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})};Qt.on("onFormData",C=>{console.log("打印11111:",C)}),Qt.on("onMessage",C=>{console.log("初值1111",C,t.dataList),s.tTop=C.tTop!=""?C.tTop:null,s.tBottom=C.tBottom!=""?C.tBottom:null,y(),Gi(()=>{u()})});const w=ze([]),y=()=>{w.value=[];for(const p of t.dataList)if(s.tBottom==null&&s.tTop!=null){const x=p.data.find(O=>s.tTop<=O[1]);if(x!=null){var C={ids:x[4],times:Vt(x[0]),t:x[1]};w.value.push(C)}w.value.length!=0&&(i.value=!0)}else if(s.tBottom!=null&&s.tTop==null){const x=p.data.find(O=>s.tBottom>=O[1]);if(x!=null){var C={ids:x[4],times:Vt(x[0]),t:x[1]};w.value.push(C)}w.value.length!=0&&(i.value=!0)}else if(s.tBottom!=null&&s.tTop!=null){const x=p.data.find(O=>s.tBottom>=O[1]||s.tTop<=O[1]);if(x!=null){var C={ids:x[4],times:Vt(x[0]),t:x[1]};w.value.push(C)}w.value.length!=0&&(i.value=!0)}else i.value=!1};cs(()=>{Qt.off("onMessage")}),ze(null);const I=Xt(()=>t.dataList.length!=0?j():""),j=()=>{let C=t.dataList,p=[];for(const N of C)for(let M=0;M<N.data.length;M++)p.push(N.data[M][1]);if(p.length==0){a.error("哎呀,没有可展示的数据哦");return}let x=p.reduce((N,M)=>N+M),O=Math.max(...p),S=Math.min(...p),_=(x/p.length).toFixed(1);return`最大值${O},最小值${S},平均值${_}`};return fr(()=>o.state.focuDatas,C=>{C!=null?c.chartOptions.zoomBool=!0:c.chartOptions.zoomBool=!1}),fr(()=>t.dataList,C=>{console.log("123456",C),c.data=C,Gi(()=>{console.log("89",c.chartOptions),u()})},{deep:!0,immediate:!1}),qe({xAxis:{type:"datetime"},time:{useUTC:!1},boost:{useGPUTranslations:!0},tooltip:{formatter:function(){var C=Vt(this.points[0].x)+"<br/>";for(let p in this.points)C+=`<br/><div style='color:${this.points[p].series.color}'>`+this.points[p].series.name+": "+this.points[p].y.toFixed(1)+"°C</div>";return C},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(C){C.xAxis&&(Qt.emit("onSelectionTime",C.xAxis),r("setTimeFun",C.xAxis))}}},series:[]}),(C,p)=>{const x=hs,O=Ea,S=tr;return Ge(),at("div",Uh,[We("input",{type:"text",onFocus:p[0]||(p[0]=(..._)=>C.focusFun&&C.focusFun(..._)),onBlur:p[1]||(p[1]=(..._)=>C.blurFun&&C.blurFun(..._))},null,32),Hh,We("div",Wh,Tt(I.value),1),Te(S,{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(x,{bordered:!1,"single-line":!1},{default:ke(()=>[zh,We("tbody",null,[(Ge(!0),at(dt,null,bi(w.value,(_,N)=>(Ge(),at("tr",{key:N},[We("td",null,Tt(_.ids),1),We("td",null,Tt(_.times),1),We("td",null,"当前温度:"+Tt(_.t),1)]))),128))])]),_:1})]),_:1})]),_:1},8,["show"])])}}},Xh={style:{height:"100%"}},Vh=We("div",{id:"container",style:{"min-height":"500px"}},null,-1),Yh={style:{"text-align":"center","margin-top":"20px"}},$h=We("thead",null,[We("tr",null,[We("th",null,"编号"),We("th",null,"时间"),We("th",null,"备注")])],-1),Kh={__name:"highcharts-h",props:{dataList:{type:Array,default:()=>[]}},emits:["setTimeFun"],setup(e,{emit:r}){const t=e,a=_t(),i=qe({hBottom:null,hTop:null}),s=ki();Xt(()=>s.state.plotLineList);const o=qe({chartOptions:null,data:[]}),c=ze(!1),u=()=>{o.chartOptions=new po.stockChart("container",{chart:{zoomType:"x",events:{selection(C){console.log("框选",C),C.xAxis&&(Qt.emit("onSelectionTime",C.xAxis),r("setTimeFun",C.xAxis))}},panning:this,pinchType:"",panKey:"shift"},xAxis:{type:"datetime"},time:{useUTC:!1},boost:{useGPUTranslations:!0},tooltip:{formatter:function(){var C=Vt(this.points[0].x)+"<br/>";for(let p in this.points)C+=`<br/><div style='color:${this.points[p].series.color}'>`+this.points[p].series.name+": "+this.points[p].y.toFixed(1)+"Rh</div>";return C},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})};Qt.on("onFormData",C=>{console.log("打印11111:",C)}),Qt.on("onMessage",C=>{console.log("触发155"),i.hTop=C.hTop!=""?C.hTop:null,i.hBottom=C.hBottom!=""?C.hBottom:null,y(),Gi(()=>{u()})});const w=ze([]),y=()=>{w.value=[];for(const p of t.dataList)if(console.log("******",p),i.hBottom==null&&i.hTop!=null){const x=p.data.find(O=>i.hTop<=O[1]);if(x!=null){var C={ids:x[4],times:Vt(x[0]),t:x[1]};w.value.push(C)}console.log("设置了上限",w.value),w.value.length!=0&&(c.value=!0)}else if(i.hBottom!=null&&i.hTop==null){const x=p.data.find(O=>i.hBottom>=O[1]);if(x!=null){var C={ids:x[4],times:Vt(x[0]),t:x[1]};w.value.push(C)}w.value.length!=0&&(c.value=!0)}else if(i.hBottom!=null&&i.hTop!=null){const x=p.data.find(O=>i.hBottom>=O[1]||i.hTop<=O[1]);if(x!=null){var C={ids:x[4],times:Vt(x[0]),t:x[1]};w.value.push(C)}w.value.length!=0&&(c.value=!0),console.log("====",x)}else c.value=!1};cs(()=>{Qt.off("onMessage")}),ze(null);const I=Xt(()=>t.dataList.length!=0?j():""),j=()=>{let C=t.dataList,p=[];for(const N of C)for(let M=0;M<N.data.length;M++)p.push(N.data[M][1]);if(p.length==0){a.error("哎呀,没有可展示的数据哦");return}let x=p.reduce((N,M)=>N+M),O=Math.max(...p),S=Math.min(...p),_=(x/p.length).toFixed(1);return`最大值${O},最小值${S},平均值${_}`};return fr(()=>s.state.focuDatas,C=>{C!=null?o.chartOptions.zoomBool=!0:o.chartOptions.zoomBool=!1}),fr(()=>t.dataList,C=>{o.data=C,Gi(()=>{u()})},{deep:!0,immediate:!1}),qe({xAxis:{type:"datetime"},time:{useUTC:!1},boost:{useGPUTranslations:!0},tooltip:{formatter:function(){var C=Vt(this.points[0].x)+"<br/>";this.points.sort((p,x)=>x.y-p.y);for(let p in this.points)C+=`<br/><div style='color:${this.points[p].series.color}'>`+this.points[p].series.name+": "+this.points[p].y.toFixed(1)+"Rh</div>";return C},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(C){C.xAxis&&(Qt.emit("onSelectionTime",C.xAxis),r("setTimeFun",C.xAxis))}}},series:[]}),(C,p)=>{const x=hs,O=Ea,S=tr;return Ge(),at("div",Xh,[We("input",{type:"text",onFocus:p[0]||(p[0]=(..._)=>C.focusFun&&C.focusFun(..._)),onBlur:p[1]||(p[1]=(..._)=>C.blurFun&&C.blurFun(..._))},null,32),Vh,We("div",Yh,Tt(I.value),1),Te(S,{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(x,{bordered:!1,"single-line":!1},{default:ke(()=>[$h,We("tbody",null,[(Ge(!0),at(dt,null,bi(w.value,(_,N)=>(Ge(),at("tr",{key:N},[We("td",null,Tt(_.ids),1),We("td",null,Tt(_.times),1),We("td",null,"当前湿度:"+Tt(_.t),1)]))),128))])]),_:1})]),_:1})]),_:1},8,["show"])])}}},qh={style:{height:"350px","overflow-y":"auto"}},Zh={style:{"margin-top":"20px"}},Jh={__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=_t(),o=S=>{a.value=S},c=()=>{_c({page:1,page_z:999,T_task_id:t.task.T_task_id}).then(S=>{S.data.Code==200&&(i.chechboxVal=S.data.Data.List),console.log("111",S)})},u=async()=>{if(!i.radioValue){s.error("编号不能为空");return}const S=Vt(new Date),{data:_}=await Vs({T_task_id:t.task.T_task_id,T_sn:i.cities,T_id:i.radioValue,T_t:0,T_rh:0,T_time:S});_.Code==200&&(s.success("添加成功"),y.value=!1)},w=ze(!1),y=ze(!1),I=()=>{console.log("1",i.cities),y.value=!0,i.radioValue=null},j=qe({T_sn:null,T_id:null,T_t:null,T_rh:null,T_time:null}),C=(S,_)=>{j.T_id=_.T_id,j.T_sn=_.T_sn},p=()=>{w.value=!0,i.cities=null,c(),Object.keys(j).forEach(S=>j[S]=null)},x=async()=>{const S=await O(j);if(console.log("999",j),S){Object.keys(j).forEach(N=>j[N]+="");const{data:_}=await Vs({T_task_id:t.task.T_task_id,...j});_.Code===200&&(w.value=!1,s.success(_.Msg))}else{s.error("所有选项都为必填哦");return}},O=S=>new Promise(_=>{const N=Object.keys(S).every(M=>S[M]!=null);_(N)});return(S,_)=>{const N=Et,M=Ca,b=ur,F=ri,P=_i,L=or,m=no,B=Ic,T=Da,A=Rc,g=oo,h=tr;return Ge(),at(dt,null,[Te(N,{type:"primary",onClick:p},{default:ke(()=>[Re("添加数据")]),_:1}),Te(h,{show:He(w),"onUpdate:show":_[9]||(_[9]=n=>Xi(w)?w.value=n:null),"show-icon":!1,preset:"dialog",title:"添加",style:{height:"550px"}},{default:ke(()=>[Te(g,{type:"line",animated:"","default-value":He(a),"on-update:value":o},{default:ke(()=>[Te(m,{name:"oasis",tab:"添加数据"},{default:ke(()=>[Te(L,{model:He(j),"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(b,{label:"测点",path:"T_id"},{default:ke(()=>[Te(M,{value:He(j).T_id,"onUpdate:value":[_[0]||(_[0]=n=>He(j).T_id=n),C],"label-field":"T_id","value-field":"T_id",options:e.classList},null,8,["value","options"])]),_:1}),Te(b,{label:"温度",path:"T_t"},{default:ke(()=>[Te(F,{value:He(j).T_t,"onUpdate:value":_[1]||(_[1]=n=>He(j).T_t=n)},{suffix:ke(()=>[Re(" ℃ ")]),_:1},8,["value"])]),_:1}),Te(b,{label:"湿度",path:"T_rh"},{default:ke(()=>[Te(F,{value:He(j).T_rh,"onUpdate:value":_[2]||(_[2]=n=>He(j).T_rh=n)},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),Te(b,{label:"时间",path:"T_time"},{default:ke(()=>[Te(P,{"formatted-value":He(j).T_time,"onUpdate:formattedValue":_[3]||(_[3]=n=>He(j).T_time=n),"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",clearable:"",class:"w-full"},null,8,["formatted-value"])]),_:1}),Te(b,null,{default:ke(()=>[Te(N,{type:"primary",style:{"margin-right":"20px"},onClick:x},{default:ke(()=>[Re(" 立即提交 ")]),_:1}),Te(N,{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",qh,[Te(A,{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(()=>[(Ge(!0),at(dt,null,bi(He(i).chechboxVal,n=>(Ge(),st(B,{key:n.Id,value:n.T_sn,onChange:I},{default:ke(()=>[Re(Tt(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=>Xi(y)?y.value=n:null),"show-icon":!1,preset:"dialog",title:"",style:{height:"auto"}},{default:ke(()=>[Te(L,{"show-require-mark":""},{default:ke(()=>[Te(b,{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",Zh,[Te(N,{type:"primary",style:{"margin-right":"20px"},onClick:u},{default:ke(()=>[Re(" 立即提交 ")]),_:1}),Te(N,{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 go=1252,Qh=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],ds={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},us=function(e){Qh.indexOf(e)!=-1&&(go=ds[0]=e)};function ef(){us(1252)}var vr=function(e){us(e)};function xo(){vr(1200),ef()}function Zs(e){for(var r=[],t=0,a=e.length;t<a;++t)r[t]=e.charCodeAt(t);return r}function tf(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 mo(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 Oi=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);return r==255&&t==254?tf(e.slice(2)):r==254&&t==255?mo(e.slice(2)):r==65279?e.slice(1):e},oa=function(r){return String.fromCharCode(r)},Js=function(r){return String.fromCharCode(r)},Br,jr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Qs(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+=jr.charAt(s)+jr.charAt(o)+jr.charAt(c)+jr.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=jr.indexOf(e.charAt(w++)),o=jr.indexOf(e.charAt(w++)),t=s<<2|o>>4,r+=String.fromCharCode(t),c=jr.indexOf(e.charAt(w++)),a=(o&15)<<4|c>>2,c!==64&&(r+=String.fromCharCode(a)),u=jr.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}(),ii=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 Wr(e){return Qe?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function en(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?ii(r,"binary"):r.split("").map(function(t){return t.charCodeAt(0)&255})};function ai(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 ps(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return ps(new Uint8Array(e));for(var r=new Array(e.length),t=0;t<e.length;++t)r[t]=e[t];return r}var Nr=Qe?function(e){return Buffer.concat(e.map(function(r){return Buffer.isBuffer(r)?r:ii(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 rf(e){for(var r=[],t=0,a=e.length+250,i=Wr(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=Wr(65535),a=65530)}return r.push(i.slice(0,t)),Nr(r)}var $t=/\u0000/g,Pi=/[\u0001-\u0006]/g;function xi(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:ft("0",r-t.length)+t}function gs(e,r){var t=""+e;return t.length>=r?t:ft(" ",r-t.length)+t}function xa(e,r){var t=""+e;return t.length>=r?t:t+ft(" ",r-t.length)}function af(e,r){var t=""+Math.round(e);return t.length>=r?t:ft("0",r-t.length)+t}function sf(e,r){var t=""+e;return t.length>=r?t:ft("0",r-t.length)+t}var tn=Math.pow(2,32);function ui(e,r){if(e>tn||e<-tn)return af(e,r);var t=Math.round(e);return sf(t,r)}function ma(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 rn=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Ha=[["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 nf(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"秒 "'},an={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},of={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 va(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,I=Math.floor(i);w<r&&(I=Math.floor(i),c=I*o+s,y=I*w+u,!(i-I<5e-8));)i=1/(i-I),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 j=Math.floor(a*c/y);return[j,a*c-j*y,y]}function Kr(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=uf(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 vo=new Date(1899,11,31,0,0,0),lf=vo.getTime(),cf=new Date(1900,2,1,0,0,0);function yo(e,r){var t=e.getTime();return r?t-=1461*24*60*60*1e3:e>=cf&&(t+=24*60*60*1e3),(t-(lf+(e.getTimezoneOffset()-vo.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function xs(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function hf(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function ff(e){var r=e<0?12:11,t=xs(e.toFixed(12));return t.length<=r||(t=e.toPrecision(10),t.length<=r)?t:e.toExponential(5)}function df(e){var r=xs(e.toFixed(11));return r.length>(e<0?12:11)||r==="0"||r==="-0"?e.toPrecision(6):r}function Vi(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=ff(e):r===10?t=e.toFixed(10).substr(0,12):t=df(e),xs(hf(t.toUpperCase()))}function Jr(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Vi(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return dr(14,yo(e,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+e)}function uf(e,r){r[0]-=581;var t=e.getDay();return e<60&&(t=(t+6)%7),t}function pf(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 Ha[t.m-1][1];case 5:return Ha[t.m-1][0];default:return Ha[t.m-1][2]}break;case 100:switch(r.length){case 1:case 2:u=t.d,w=r.length;break;case 3:return rn[t.q][0];default:return rn[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 Ur(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 To=/%/g;function gf(e,r,t){var a=r.replace(To,""),i=r.length-a.length;return Mr(e,a,t*Math.pow(10,2*i))+ft("%",i)}function xf(e,r,t){for(var a=r.length-1;r.charCodeAt(a-1)===44;)--a;return Mr(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}function ko(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"-"+ko(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 bo=/# (\?+)( ?)\/( ?)(\d+)/;function mf(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?ft(" ",e[1].length+1+e[4].length):gs(o,e[1].length)+e[2]+"/"+e[3]+yr(c,e[4].length))}function vf(e,r,t){return t+(r===0?"":""+r)+ft(" ",e[1].length+2+e[4].length)}var _o=/^#*0*\.([0#]+)/,wo=/\).*[0#]/,So=/\(###\) ###\\?-####/;function zt(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 sn(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function nn(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 yf(e,r){return r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length?1:0}function Tf(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(wo)){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 xf(e,r,t);if(r.indexOf("%")!==-1)return gf(e,r,t);if(r.indexOf("E")!==-1)return ko(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+ui(u,r.length);if(r.match(/^[#?]+$/))return i=ui(t,0),i==="0"&&(i=""),i.length>r.length?i:zt(r.substr(0,r.length-i.length))+i;if(s=r.match(bo))return mf(s,u,w);if(r.match(/^#+0+$/))return w+ui(u,r.length-r.indexOf("0"));if(s=r.match(_o))return i=sn(t,s[1].length).replace(/^([^\.]+)$/,"$1."+zt(s[1])).replace(/\.$/,"."+zt(s[1])).replace(/\.(\d*)$/,function(p,x){return"."+x+ft("0",zt(s[1]).length-x.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),s=r.match(/^(0*)\.(#*)$/))return w+sn(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+Ur(ui(u,0));if(s=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+cr(e,r,-t):Ur(""+(Math.floor(t)+yf(t,s[1].length)))+"."+yr(nn(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=xi(cr(e,r.replace(/[\\-]/g,""),t)),o=0,xi(xi(r.replace(/\\/g,"")).replace(/[0#]/g,function(p){return o<i.length?i.charAt(o++):p==="0"?"0":""}));if(r.match(So))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=va(u,Math.pow(10,o)-1,!1),i=""+w,y=Mr("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=xa(c[2],o),y.length<s[4].length&&(y=zt(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=va(u,Math.pow(10,o)-1,!0),w+(c[0]||(c[1]?"":"0"))+" "+(c[1]?gs(c[1],o)+s[2]+"/"+s[3]+xa(c[2],o):ft(" ",2*o+1+s[2].length+s[3].length));if(s=r.match(/^[#0?]+$/))return i=ui(t,0),r.length<=i.length?i:zt(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 I=r.indexOf(".")-o,j=r.length-i.length-I;return zt(r.substr(0,I)+i+r.substr(r.length-j))}if(s=r.match(/^00,000\.([#0]*0)$/))return o=nn(t,s[1].length),t<0?"-"+cr(e,r,-t):Ur(Tf(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 C=Ur(ui(u,0));return C!=="0"?w+C:"";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 kf(e,r,t){for(var a=r.length-1;r.charCodeAt(a-1)===44;)--a;return Mr(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}function bf(e,r,t){var a=r.replace(To,""),i=r.length-a.length;return Mr(e,a,t*Math.pow(10,2*i))+ft("%",i)}function Ao(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"-"+Ao(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 _r(e,r,t){if(e.charCodeAt(0)===40&&!r.match(wo)){var a=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?_r("n",a,t):"("+_r("n",a,-t)+")"}if(r.charCodeAt(r.length-1)===44)return kf(e,r,t);if(r.indexOf("%")!==-1)return bf(e,r,t);if(r.indexOf("E")!==-1)return Ao(r,t);if(r.charCodeAt(0)===36)return"$"+_r(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:zt(r.substr(0,r.length-i.length))+i;if(s=r.match(bo))return vf(s,u,w);if(r.match(/^#+0+$/))return w+yr(u,r.length-r.indexOf("0"));if(s=r.match(_o))return i=(""+t).replace(/^([^\.]+)$/,"$1."+zt(s[1])).replace(/\.$/,"."+zt(s[1])),i=i.replace(/\.(\d*)$/,function(p,x){return"."+x+ft("0",zt(s[1]).length-x.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+Ur(""+u);if(s=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+_r(e,r,-t):Ur(""+t)+"."+ft("0",s[1].length);if(s=r.match(/^#,#*,#0/))return _r(e,r.replace(/^#,#*,/,""),t);if(s=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=xi(_r(e,r.replace(/[\\-]/g,""),t)),o=0,xi(xi(r.replace(/\\/g,"")).replace(/[0#]/g,function(p){return o<i.length?i.charAt(o++):p==="0"?"0":""}));if(r.match(So))return i=_r(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=va(u,Math.pow(10,o)-1,!1),i=""+w,y=Mr("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=xa(c[2],o),y.length<s[4].length&&(y=zt(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=va(u,Math.pow(10,o)-1,!0),w+(c[0]||(c[1]?"":"0"))+" "+(c[1]?gs(c[1],o)+s[2]+"/"+s[3]+xa(c[2],o):ft(" ",2*o+1+s[2].length+s[3].length));if(s=r.match(/^[#0?]+$/))return i=""+t,r.length<=i.length?i:zt(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 I=r.indexOf(".")-o,j=r.length-i.length-I;return zt(r.substr(0,I)+i+r.substr(r.length-j))}if(s=r.match(/^00,000\.([#0]*0)$/))return t<0?"-"+_r(e,r,-t):Ur(""+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 C=Ur(""+u);return C!=="0"?w+C:"";default:if(r.match(/\.[0#?]*$/))return _r(e,r.slice(0,r.lastIndexOf(".")),t)+zt(r.slice(r.lastIndexOf(".")))}throw new Error("unsupported format |"+r+"|")}function Mr(e,r,t){return(t|0)===t?_r(e,r,t):cr(e,r,t)}function _f(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 Eo=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function wi(e){for(var r=0,t="",a="";r<e.length;)switch(t=e.charAt(r)){case"G":ma(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(Eo))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 wf(e,r,t,a){for(var i=[],s="",o=0,c="",u="t",w,y,I,j="H";o<e.length;)switch(c=e.charAt(o)){case"G":if(!ma(e,o))throw new Error("unrecognized character "+c+" in "+e);i[i.length]={t:"G",v:"General"},o+=7;break;case'"':for(s="";(I=e.charCodeAt(++o))!==34&&o<e.length;)s+=String.fromCharCode(I);i[i.length]={t:"t",v:s},++o;break;case"\\":var C=e.charAt(++o),p=C==="("||C===")"?C:"t";i[i.length]={t:p,v:C},++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=Kr(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=Kr(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=j),i[i.length]={t:c,v:s},u=c;break;case"A":case"a":case"上":var x={t:c,v:c};if(w==null&&(w=Kr(r,t)),e.substr(o,3).toUpperCase()==="A/P"?(w!=null&&(x.v=w.H>=12?"P":"A"),x.t="T",j="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(w!=null&&(x.v=w.H>=12?"PM":"AM"),x.t="T",o+=5,j="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(w!=null&&(x.v=w.H>=12?"下午":"上午"),x.t="T",o+=5,j="h"):(x.t="t",++o),w==null&&x.t==="T")return"";i[i.length]=x,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(Eo)){if(w==null&&(w=Kr(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]||"$",wi(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,S=0,_;for(o=i.length-1,u="t";o>=0;--o)switch(i[o].t){case"h":case"H":i[o].t=j,u="h",O<1&&(O=1);break;case"s":(_=i[o].v.match(/\.0+$/))&&(S=Math.max(S,_[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 N="",M;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=pf(i[o].t.charCodeAt(0),i[o].v,w,S),i[o].t="t";break;case"n":case"?":for(M=o+1;i[M]!=null&&((c=i[M].t)==="?"||c==="D"||(c===" "||c==="t")&&i[M+1]!=null&&(i[M+1].t==="?"||i[M+1].t==="t"&&i[M+1].v==="/")||i[o].t==="("&&(c===" "||c==="n"||c===")")||c==="t"&&(i[M].v==="/"||i[M].v===" "&&i[M+1]!=null&&i[M+1].t=="?"));)i[o].v+=i[M].v,i[M]={v:"",t:";"},++M;N+=i[o].v,o=M-1;break;case"G":i[o].t="t",i[o].v=Jr(r,t);break}var b="",F,P;if(N.length>0){N.charCodeAt(0)==40?(F=r<0&&N.charCodeAt(0)===45?-r:r,P=Mr("n",N,F)):(F=r<0&&a>1?-r:r,P=Mr("n",N,F),F<0&&i[0]&&i[0].t=="t"&&(P=P.substr(1),i[0].v="-"+i[0].v)),M=P.length-1;var L=i.length;for(o=0;o<i.length;++o)if(i[o]!=null&&i[o].t!="t"&&i[o].v.indexOf(".")>-1){L=o;break}var m=i.length;if(L===i.length&&P.indexOf("E")===-1){for(o=i.length-1;o>=0;--o)i[o]==null||"n?".indexOf(i[o].t)===-1||(M>=i[o].v.length-1?(M-=i[o].v.length,i[o].v=P.substr(M+1,i[o].v.length)):M<0?i[o].v="":(i[o].v=P.substr(0,M+1),M=-1),i[o].t="t",m=o);M>=0&&m<i.length&&(i[m].v=P.substr(0,M+1)+i[m].v)}else if(L!==i.length&&P.indexOf("E")===-1){for(M=P.indexOf(".")-1,o=L;o>=0;--o)if(!(i[o]==null||"n?".indexOf(i[o].t)===-1)){for(y=i[o].v.indexOf(".")>-1&&o===L?i[o].v.indexOf(".")-1:i[o].v.length-1,b=i[o].v.substr(y+1);y>=0;--y)M>=0&&(i[o].v.charAt(y)==="0"||i[o].v.charAt(y)==="#")&&(b=P.charAt(M--)+b);i[o].v=b,i[o].t="t",m=o}for(M>=0&&m<i.length&&(i[m].v=P.substr(0,M+1)+i[m].v),M=P.indexOf(".")+1,o=L;o<i.length;++o)if(!(i[o]==null||"n?(".indexOf(i[o].t)===-1&&o!==L)){for(y=i[o].v.indexOf(".")>-1&&o===L?i[o].v.indexOf(".")+1:0,b=i[o].v.substr(0,y);y<i[o].v.length;++y)M<P.length&&(b+=P.charAt(M++));i[o].v=b,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=Mr(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 on=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function ln(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 Sf(e,r){var t=_f(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(on),c=t[1].match(on);return ln(r,o)?[a,t[0]]:ln(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[an[e]]||Ke[an[e]]),a==null&&(a=of[e]||"General");break}if(ma(a,0))return Jr(r,t);r instanceof Date&&(r=yo(r,t.date1904));var i=Sf(a,r);if(ma(i[1]))return Jr(r,t);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return wf(i[1],r,t,i[0])}function qr(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 Co(){Ke=nf()}var Af={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"},Mo=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Ef(e){var r=typeof e=="number"?Ke[e]:e;return r=r.replace(Mo,"(\\d+)"),new RegExp("^"+r+"$")}function Cf(e,r,t){var a=-1,i=-1,s=-1,o=-1,c=-1,u=-1;(r.match(Mo)||[]).forEach(function(I,j){var C=parseInt(t[j+1],10);switch(I.toLowerCase().charAt(0)){case"y":a=C;break;case"d":s=C;break;case"h":o=C;break;case"s":u=C;break;case"m":o>=0?c=C:i=C;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 Mf=function(){var e={};e.version="1.2.0";function r(){for(var P=0,L=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,L[m]=P;return typeof Int32Array<"u"?new Int32Array(L):L}var t=r();function a(P){var L=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],L=256+B;L<4096;L+=256)m=T[L]=m>>>8^P[m&255];var A=[];for(B=1;B!=16;++B)A[B-1]=typeof Int32Array<"u"?T.subarray(B*256,B*256+256):T.slice(B*256,B*256+256);return A}var i=a(t),s=i[0],o=i[1],c=i[2],u=i[3],w=i[4],y=i[5],I=i[6],j=i[7],C=i[8],p=i[9],x=i[10],O=i[11],S=i[12],_=i[13],N=i[14];function M(P,L){for(var m=L^-1,B=0,T=P.length;B<T;)m=m>>>8^t[(m^P.charCodeAt(B++))&255];return~m}function b(P,L){for(var m=L^-1,B=P.length-15,T=0;T<B;)m=N[P[T++]^m&255]^_[P[T++]^m>>8&255]^S[P[T++]^m>>16&255]^O[P[T++]^m>>>24]^x[P[T++]]^p[P[T++]]^C[P[T++]]^j[P[T++]]^I[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,L){for(var m=L^-1,B=0,T=P.length,A=0,g=0;B<T;)A=P.charCodeAt(B++),A<128?m=m>>>8^t[(m^A)&255]:A<2048?(m=m>>>8^t[(m^(192|A>>6&31))&255],m=m>>>8^t[(m^(128|A&63))&255]):A>=55296&&A<57344?(A=(A&1023)+64,g=P.charCodeAt(B++)&1023,m=m>>>8^t[(m^(240|A>>8&7))&255],m=m>>>8^t[(m^(128|A>>2&63))&255],m=m>>>8^t[(m^(128|g>>6&15|(A&3)<<4))&255],m=m>>>8^t[(m^(128|g&63))&255]):(m=m>>>8^t[(m^(224|A>>12&15))&255],m=m>>>8^t[(m^(128|A>>6&63))&255],m=m>>>8^t[(m^(128|A&63))&255]);return~m}return e.table=t,e.bstr=M,e.buf=b,e.str=F,e}(),et=function(){var r={};r.version="1.2.1";function t(le,ge){for(var de=le.split("/"),ue=ge.split("/"),xe=0,ve=0,Se=Math.min(de.length,ue.length);xe<Se;++xe){if(ve=de[xe].length-ue[xe].length)return ve;if(de[xe]!=ue[xe])return de[xe]<ue[xe]?-1:1}return de.length-ue.length}function a(le){if(le.charAt(le.length-1)=="/")return le.slice(0,-1).indexOf("/")===-1?le:a(le.slice(0,-1));var ge=le.lastIndexOf("/");return ge===-1?le:le.slice(0,ge+1)}function i(le){if(le.charAt(le.length-1)=="/")return i(le.slice(0,-1));var ge=le.lastIndexOf("/");return ge===-1?le:le.slice(ge+1)}function s(le,ge){typeof ge=="string"&&(ge=new Date(ge));var de=ge.getHours();de=de<<6|ge.getMinutes(),de=de<<5|ge.getSeconds()>>>1,le.write_shift(2,de);var ue=ge.getFullYear()-1980;ue=ue<<4|ge.getMonth()+1,ue=ue<<5|ge.getDate(),le.write_shift(2,ue)}function o(le){var ge=le.read_shift(2)&65535,de=le.read_shift(2)&65535,ue=new Date,xe=de&31;de>>>=5;var ve=de&15;de>>>=4,ue.setMilliseconds(0),ue.setFullYear(de+1980),ue.setMonth(ve-1),ue.setDate(xe);var Se=ge&31;ge>>>=5;var Me=ge&63;return ge>>>=6,ue.setHours(ge),ue.setMinutes(Me),ue.setSeconds(Se<<1),ue}function c(le){Ct(le,0);for(var ge={},de=0;le.l<=le.length-4;){var ue=le.read_shift(2),xe=le.read_shift(2),ve=le.l+xe,Se={};switch(ue){case 21589:de=le.read_shift(1),de&1&&(Se.mtime=le.read_shift(4)),xe>5&&(de&2&&(Se.atime=le.read_shift(4)),de&4&&(Se.ctime=le.read_shift(4))),Se.mtime&&(Se.mt=new Date(Se.mtime*1e3));break}le.l=ve,ge[ue]=Se}return ge}var u;function w(){return u||(u={})}function y(le,ge){if(le[0]==80&&le[1]==75)return it(le,ge);if((le[0]|32)==109&&(le[1]|32)==105)return hi(le,ge);if(le.length<512)throw new Error("CFB file size "+le.length+" < 512");var de=3,ue=512,xe=0,ve=0,Se=0,Me=0,we=0,Ae=[],Ee=le.slice(0,512);Ct(Ee,0);var Pe=I(Ee);switch(de=Pe[0],de){case 3:ue=512;break;case 4:ue=4096;break;case 0:if(Pe[1]==0)return it(le,ge);default:throw new Error("Major Version: Expected 3 or 4 saw "+de)}ue!==512&&(Ee=le.slice(0,ue),Ct(Ee,28));var Ie=le.slice(0,ue);j(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"),ve=Ee.read_shift(4,"i");for(var Le=-1,Ne=0;Ne<109&&(Le=Ee.read_shift(4,"i"),!(Le<0));++Ne)Ae[Ne]=Le;var $e=C(le,ue);O(we,ve,$e,ue,Ae);var ct=_($e,Se,Ae,ue);ct[Se].name="!Directory",xe>0&&Me!==g&&(ct[Me].name="!MiniFAT"),ct[Ae[0]].name="!FAT",ct.fat_addrs=Ae,ct.ssz=ue;var ht={},Ot=[],Ei=[],Ci=[];N(Se,ct,$e,Ot,xe,ht,Ei,Me),p(Ei,Ci,Ot),Ot.shift();var Mi={FileIndex:Ei,FullPaths:Ci};return ge&&ge.raw&&(Mi.raw={header:Ie,sectors:$e}),Mi}function I(le){if(le[le.l]==80&&le[le.l+1]==75)return[0,0];le.chk(h,"Header Signature: "),le.l+=16;var ge=le.read_shift(2,"u");return[le.read_shift(2,"u"),ge]}function j(le,ge){var de=9;switch(le.l+=2,de=le.read_shift(2)){case 9:if(ge!=3)throw new Error("Sector Shift: Expected 9 saw "+de);break;case 12:if(ge!=4)throw new Error("Sector Shift: Expected 12 saw "+de);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+de)}le.chk("0600","Mini Sector Shift: "),le.chk("000000000000","Reserved: ")}function C(le,ge){for(var de=Math.ceil(le.length/ge)-1,ue=[],xe=1;xe<de;++xe)ue[xe-1]=le.slice(xe*ge,(xe+1)*ge);return ue[de-1]=le.slice(de*ge),ue}function p(le,ge,de){for(var ue=0,xe=0,ve=0,Se=0,Me=0,we=de.length,Ae=[],Ee=[];ue<we;++ue)Ae[ue]=Ee[ue]=ue,ge[ue]=de[ue];for(;Me<Ee.length;++Me)ue=Ee[Me],xe=le[ue].L,ve=le[ue].R,Se=le[ue].C,Ae[ue]===ue&&(xe!==-1&&Ae[xe]!==xe&&(Ae[ue]=Ae[xe]),ve!==-1&&Ae[ve]!==ve&&(Ae[ue]=Ae[ve])),Se!==-1&&(Ae[Se]=ue),xe!==-1&&ue!=Ae[ue]&&(Ae[xe]=Ae[ue],Ee.lastIndexOf(xe)<Me&&Ee.push(xe)),ve!==-1&&ue!=Ae[ue]&&(Ae[ve]=Ae[ue],Ee.lastIndexOf(ve)<Me&&Ee.push(ve));for(ue=1;ue<we;++ue)Ae[ue]===ue&&(ve!==-1&&Ae[ve]!==ve?Ae[ue]=Ae[ve]:xe!==-1&&Ae[xe]!==xe&&(Ae[ue]=Ae[xe]));for(ue=1;ue<we;++ue)if(le[ue].type!==0){if(Me=ue,Me!=Ae[Me])do Me=Ae[Me],ge[ue]=ge[Me]+"/"+ge[ue];while(Me!==0&&Ae[Me]!==-1&&Me!=Ae[Me]);Ae[ue]=-1}for(ge[0]+="/",ue=1;ue<we;++ue)le[ue].type!==2&&(ge[ue]+="/")}function x(le,ge,de){for(var ue=le.start,xe=le.size,ve=[],Se=ue;de&&xe>0&&Se>=0;)ve.push(ge.slice(Se*A,Se*A+A)),xe-=A,Se=$r(de,Se*4);return ve.length===0?yt(0):Nr(ve).slice(0,le.size)}function O(le,ge,de,ue,xe){var ve=g;if(le===g){if(ge!==0)throw new Error("DIFAT chain shorter than expected")}else if(le!==-1){var Se=de[le],Me=(ue>>>2)-1;if(!Se)return;for(var we=0;we<Me&&(ve=$r(Se,we*4))!==g;++we)xe.push(ve);O($r(Se,ue-4),ge-1,de,ue,xe)}}function S(le,ge,de,ue,xe){var ve=[],Se=[];xe||(xe=[]);var Me=ue-1,we=0,Ae=0;for(we=ge;we>=0;){xe[we]=!0,ve[ve.length]=we,Se.push(le[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(!le[Ee])break;we=$r(le[Ee],Ae)}return{nodes:ve,data:vn([Se])}}function _(le,ge,de,ue){var xe=le.length,ve=[],Se=[],Me=[],we=[],Ae=ue-1,Ee=0,Pe=0,Ie=0,je=0;for(Ee=0;Ee<xe;++Ee)if(Me=[],Ie=Ee+ge,Ie>=xe&&(Ie-=xe),!Se[Ie]){we=[];var Le=[];for(Pe=Ie;Pe>=0;){Le[Pe]=!0,Se[Pe]=!0,Me[Me.length]=Pe,we.push(le[Pe]);var Ne=de[Math.floor(Pe*4/ue)];if(je=Pe*4&Ae,ue<4+je)throw new Error("FAT boundary crossed: "+Pe+" 4 "+ue);if(!le[Ne]||(Pe=$r(le[Ne],je),Le[Pe]))break}ve[Ie]={nodes:Me,data:vn([we])}}return ve}function N(le,ge,de,ue,xe,ve,Se,Me){for(var we=0,Ae=ue.length?2:0,Ee=ge[le].data,Pe=0,Ie=0,je;Pe<Ee.length;Pe+=128){var Le=Ee.slice(Pe,Pe+128);Ct(Le,64),Ie=Le.read_shift(2),je=ks(Le,0,Ie-Ae),ue.push(je);var Ne={name:je,type:Le.read_shift(1),color:Le.read_shift(1),L:Le.read_shift(4,"i"),R:Le.read_shift(4,"i"),C:Le.read_shift(4,"i"),clsid:Le.read_shift(16),state:Le.read_shift(4,"i"),start:0,size:0},$e=Le.read_shift(2)+Le.read_shift(2)+Le.read_shift(2)+Le.read_shift(2);$e!==0&&(Ne.ct=M(Le,Le.l-8));var ct=Le.read_shift(2)+Le.read_shift(2)+Le.read_shift(2)+Le.read_shift(2);ct!==0&&(Ne.mt=M(Le,Le.l-8)),Ne.start=Le.read_shift(4,"i"),Ne.size=Le.read_shift(4,"i"),Ne.size<0&&Ne.start<0&&(Ne.size=Ne.type=0,Ne.start=g,Ne.name=""),Ne.type===5?(we=Ne.start,xe>0&&we!==g&&(ge[we].name="!StreamData")):Ne.size>=4096?(Ne.storage="fat",ge[Ne.start]===void 0&&(ge[Ne.start]=S(de,Ne.start,ge.fat_addrs,ge.ssz)),ge[Ne.start].name=Ne.name,Ne.content=ge[Ne.start].data.slice(0,Ne.size)):(Ne.storage="minifat",Ne.size<0?Ne.size=0:we!==g&&Ne.start!==g&&ge[we]&&(Ne.content=x(Ne,ge[we].data,(ge[Me]||{}).data))),Ne.content&&Ct(Ne.content,0),ve[je]=Ne,Se.push(Ne)}}function M(le,ge){return new Date((rr(le,ge+4)/1e7*Math.pow(2,32)+rr(le,ge)/1e7-11644473600)*1e3)}function b(le,ge){return w(),y(u.readFileSync(le),ge)}function F(le,ge){var de=ge&&ge.type;switch(de||Qe&&Buffer.isBuffer(le)&&(de="buffer"),de||"base64"){case"file":return b(le,ge);case"base64":return y(mr(ar(le)),ge);case"binary":return y(mr(le),ge)}return y(le,ge)}function P(le,ge){var de=ge||{},ue=de.root||"Root Entry";if(le.FullPaths||(le.FullPaths=[]),le.FileIndex||(le.FileIndex=[]),le.FullPaths.length!==le.FileIndex.length)throw new Error("inconsistent CFB structure");le.FullPaths.length===0&&(le.FullPaths[0]=ue+"/",le.FileIndex[0]={name:ue,type:5}),de.CLSID&&(le.FileIndex[0].clsid=de.CLSID),L(le)}function L(le){var ge="Sh33tJ5";if(!et.find(le,"/"+ge)){var de=yt(4);de[0]=55,de[1]=de[3]=50,de[2]=54,le.FileIndex.push({name:ge,type:2,content:de,size:4,L:69,R:69,C:69}),le.FullPaths.push(le.FullPaths[0]+ge),m(le)}}function m(le,ge){P(le);for(var de=!1,ue=!1,xe=le.FullPaths.length-1;xe>=0;--xe){var ve=le.FileIndex[xe];switch(ve.type){case 0:ue?de=!0:(le.FileIndex.pop(),le.FullPaths.pop());break;case 1:case 2:case 5:ue=!0,isNaN(ve.R*ve.L*ve.C)&&(de=!0),ve.R>-1&&ve.L>-1&&ve.R==ve.L&&(de=!0);break;default:de=!0;break}}if(!(!de&&!ge)){var Se=new Date(1987,1,19),Me=0,we=Object.create?Object.create(null):{},Ae=[];for(xe=0;xe<le.FullPaths.length;++xe)we[le.FullPaths[xe]]=!0,le.FileIndex[xe].type!==0&&Ae.push([le.FullPaths[xe],le.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,Le){return t(je[0],Le[0])}),le.FullPaths=[],le.FileIndex=[],xe=0;xe<Ae.length;++xe)le.FullPaths[xe]=Ae[xe][0],le.FileIndex[xe]=Ae[xe][1];for(xe=0;xe<Ae.length;++xe){var Pe=le.FileIndex[xe],Ie=le.FullPaths[xe];if(Pe.name=i(Ie).replace("/",""),Pe.L=Pe.R=Pe.C=-(Pe.color=1),Pe.size=Pe.content?Pe.content.length:0,Pe.start=0,Pe.clsid=Pe.clsid||l,xe===0)Pe.C=Ae.length>1?1:-1,Pe.size=0,Pe.type=5;else if(Ie.slice(-1)=="/"){for(Me=xe+1;Me<Ae.length&&a(le.FullPaths[Me])!=Ie;++Me);for(Pe.C=Me>=Ae.length?-1:Me,Me=xe+1;Me<Ae.length&&a(le.FullPaths[Me])!=a(Ie);++Me);Pe.R=Me>=Ae.length?-1:Me,Pe.type=1}else a(le.FullPaths[xe+1]||"")==a(Ie)&&(Pe.R=xe+1),Pe.type=2}}}function B(le,ge){var de=ge||{};if(de.fileType=="mad")return fi(le,de);switch(m(le),de.fileType){case"zip":return Zt(le,de)}var ue=function(je){for(var Le=0,Ne=0,$e=0;$e<je.FileIndex.length;++$e){var ct=je.FileIndex[$e];if(ct.content){var ht=ct.content.length;ht>0&&(ht<4096?Le+=ht+63>>6:Ne+=ht+511>>9)}}for(var Ot=je.FullPaths.length+3>>2,Ei=Le+7>>3,Ci=Le+127>>7,Mi=Ei+Ne+Ot+Ci,Vr=Mi+127>>7,Ba=Vr<=109?0:Math.ceil((Vr-109)/127);Mi+Vr+Ba+127>>7>Vr;)Ba=++Vr<=109?0:Math.ceil((Vr-109)/127);var Er=[1,Ba,Vr,Ci,Ot,Ne,Le,0];return je.FileIndex[0].size=Le<<6,Er[7]=(je.FileIndex[0].start=Er[0]+Er[1]+Er[2]+Er[3]+Er[4]+Er[5])+(Er[6]+7>>3),Er}(le),xe=yt(ue[7]<<9),ve=0,Se=0;{for(ve=0;ve<8;++ve)xe.write_shift(1,n[ve]);for(ve=0;ve<8;++ve)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),ve=0;ve<3;++ve)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:g),xe.write_shift(4,ue[3]),xe.write_shift(-4,ue[1]?ue[0]-1:g),xe.write_shift(4,ue[1]),ve=0;ve<109;++ve)xe.write_shift(-4,ve<ue[2]?ue[1]+ve:-1)}if(ue[1])for(Se=0;Se<ue[1];++Se){for(;ve<236+Se*127;++ve)xe.write_shift(-4,ve<ue[2]?ue[1]+ve:-1);xe.write_shift(-4,Se===ue[1]-1?g:Se+1)}var Me=function(je){for(Se+=je;ve<Se-1;++ve)xe.write_shift(-4,ve+1);je&&(++ve,xe.write_shift(-4,g))};for(Se=ve=0,Se+=ue[1];ve<Se;++ve)xe.write_shift(-4,f.DIFSECT);for(Se+=ue[2];ve<Se;++ve)xe.write_shift(-4,f.FATSECT);Me(ue[3]),Me(ue[4]);for(var we=0,Ae=0,Ee=le.FileIndex[0];we<le.FileIndex.length;++we)Ee=le.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=ve=0,we=0;we<le.FileIndex.length;++we)Ee=le.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(ve=0;ve<ue[4]<<2;++ve){var Pe=le.FullPaths[ve];if(!Pe||Pe.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=le.FileIndex[ve],ve===0&&(Ee.start=Ee.size?Ee.start-1:g);var Ie=ve===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(ve=1;ve<le.FileIndex.length;++ve)if(Ee=le.FileIndex[ve],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(ve=1;ve<le.FileIndex.length;++ve)if(Ee=le.FileIndex[ve],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(le,ge){var de=le.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;ge.charCodeAt(0)===47?(xe=!0,ge=de[0].slice(0,-1)+ge):xe=ge.indexOf("/")!==-1;var ve=ge.toUpperCase(),Se=xe===!0?de.indexOf(ve):ue.indexOf(ve);if(Se!==-1)return le.FileIndex[Se];var Me=!ve.match(Pi);for(ve=ve.replace($t,""),Me&&(ve=ve.replace(Pi,"!")),Se=0;Se<de.length;++Se)if((Me?de[Se].replace(Pi,"!"):de[Se]).replace($t,"")==ve||(Me?ue[Se].replace(Pi,"!"):ue[Se]).replace($t,"")==ve)return le.FileIndex[Se];return null}var A=64,g=-2,h="d0cf11e0a1b11ae1",n=[208,207,17,224,161,177,26,225],l="00000000000000000000000000000000",f={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:g,FREESECT:-1,HEADER_SIGNATURE:h,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:l,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function k(le,ge,de){w();var ue=B(le,de);u.writeFileSync(ge,ue)}function v(le){for(var ge=new Array(le.length),de=0;de<le.length;++de)ge[de]=String.fromCharCode(le[de]);return ge.join("")}function G(le,ge){var de=B(le,ge);switch(ge&&ge.type||"buffer"){case"file":return w(),u.writeFileSync(ge.filename,de),de;case"binary":return typeof de=="string"?de:v(de);case"base64":return Qs(typeof de=="string"?de:v(de));case"buffer":if(Qe)return Buffer.isBuffer(de)?de:ii(de);case"array":return typeof de=="string"?mr(de):de}return de}var U;function D(le){try{var ge=le.InflateRaw,de=new ge;if(de._processChunk(new Uint8Array([3,0]),de._finishFlushFlag),de.bytesRead)U=le;else throw new Error("zlib does not expose bytesRead")}catch(ue){console.error("cannot use native zlib: "+(ue.message||ue))}}function H(le,ge){if(!U)return Ue(le,ge);var de=U.InflateRaw,ue=new de,xe=ue._processChunk(le.slice(le.l),ue._finishFlushFlag);return le.l+=ue.bytesRead,xe}function z(le){return U?U.deflateRawSync(le):me(le)}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 Z(le){var ge=(le<<1|le<<11)&139536|(le<<5|le<<15)&558144;return(ge>>16|ge>>8|ge)&255}for(var J=typeof Uint8Array<"u",Y=J?new Uint8Array(256):[],ee=0;ee<256;++ee)Y[ee]=Z(ee);function E(le,ge){var de=Y[le&255];return ge<=8?de>>>8-ge:(de=de<<8|Y[le>>8&255],ge<=16?de>>>16-ge:(de=de<<8|Y[le>>16&255],de>>>24-ge))}function V(le,ge){var de=ge&7,ue=ge>>>3;return(le[ue]|(de<=6?0:le[ue+1]<<8))>>>de&3}function X(le,ge){var de=ge&7,ue=ge>>>3;return(le[ue]|(de<=5?0:le[ue+1]<<8))>>>de&7}function Q(le,ge){var de=ge&7,ue=ge>>>3;return(le[ue]|(de<=4?0:le[ue+1]<<8))>>>de&15}function ie(le,ge){var de=ge&7,ue=ge>>>3;return(le[ue]|(de<=3?0:le[ue+1]<<8))>>>de&31}function K(le,ge){var de=ge&7,ue=ge>>>3;return(le[ue]|(de<=1?0:le[ue+1]<<8))>>>de&127}function oe(le,ge,de){var ue=ge&7,xe=ge>>>3,ve=(1<<de)-1,Se=le[xe]>>>ue;return de<8-ue||(Se|=le[xe+1]<<8-ue,de<16-ue)||(Se|=le[xe+2]<<16-ue,de<24-ue)||(Se|=le[xe+3]<<24-ue),Se&ve}function ce(le,ge,de){var ue=ge&7,xe=ge>>>3;return ue<=5?le[xe]|=(de&7)<<ue:(le[xe]|=de<<ue&255,le[xe+1]=(de&7)>>8-ue),ge+3}function ne(le,ge,de){var ue=ge&7,xe=ge>>>3;return de=(de&1)<<ue,le[xe]|=de,ge+1}function pe(le,ge,de){var ue=ge&7,xe=ge>>>3;return de<<=ue,le[xe]|=de&255,de>>>=8,le[xe+1]=de,ge+8}function te(le,ge,de){var ue=ge&7,xe=ge>>>3;return de<<=ue,le[xe]|=de&255,de>>>=8,le[xe+1]=de&255,le[xe+2]=de>>>8,ge+16}function re(le,ge){var de=le.length,ue=2*de>ge?2*de:ge+5,xe=0;if(de>=ge)return le;if(Qe){var ve=en(ue);if(le.copy)le.copy(ve);else for(;xe<le.length;++xe)ve[xe]=le[xe];return ve}else if(J){var Se=new Uint8Array(ue);if(Se.set)Se.set(le);else for(;xe<de;++xe)Se[xe]=le[xe];return Se}return le.length=ue,le}function q(le){for(var ge=new Array(le),de=0;de<le;++de)ge[de]=0;return ge}function ae(le,ge,de){var ue=1,xe=0,ve=0,Se=0,Me=0,we=le.length,Ae=J?new Uint16Array(32):q(32);for(ve=0;ve<32;++ve)Ae[ve]=0;for(ve=we;ve<de;++ve)le[ve]=0;we=le.length;var Ee=J?new Uint16Array(we):q(we);for(ve=0;ve<we;++ve)Ae[xe=le[ve]]++,ue<xe&&(ue=xe),Ee[ve]=0;for(Ae[0]=0,ve=1;ve<=ue;++ve)Ae[ve+16]=Me=Me+Ae[ve-1]<<1;for(ve=0;ve<we;++ve)Me=le[ve],Me!=0&&(Ee[ve]=Ae[Me+16]++);var Pe=0;for(ve=0;ve<we;++ve)if(Pe=le[ve],Pe!=0)for(Me=E(Ee[ve],ue)>>ue-Pe,Se=(1<<ue+4-Pe)-1;Se>=0;--Se)ge[Me|Se<<Pe]=Pe&15|ve<<4;return ue}var se=J?new Uint16Array(512):q(512),he=J?new Uint16Array(32):q(32);if(!J){for(var fe=0;fe<512;++fe)se[fe]=0;for(fe=0;fe<32;++fe)he[fe]=0}(function(){for(var le=[],ge=0;ge<32;ge++)le.push(5);ae(le,he,32);var de=[];for(ge=0;ge<=143;ge++)de.push(8);for(;ge<=255;ge++)de.push(9);for(;ge<=279;ge++)de.push(7);for(;ge<=287;ge++)de.push(8);ae(de,se,288)})();var ye=function(){for(var ge=J?new Uint8Array(32768):[],de=0,ue=0;de<R.length-1;++de)for(;ue<R[de+1];++ue)ge[ue]=de;for(;ue<32768;++ue)ge[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 ve(Me,we){for(var Ae=0;Ae<Me.length;){var Ee=Math.min(65535,Me.length-Ae),Pe=Ae+Ee==Me.length;for(we.write_shift(1,+Pe),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,Pe=J?new Uint16Array(32768):[];Ee<Me.length;){var Ie=Math.min(65535,Me.length-Ee);if(Ie<10){for(Ae=ce(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=ce(we,Ae,+(Ee+Ie==Me.length)+2);for(var je=0;Ie-- >0;){var Le=Me[Ee];je=(je<<5^Le)&32767;var Ne=-1,$e=0;if((Ne=Pe[je])&&(Ne|=Ee&-32768,Ne>Ee&&(Ne-=32768),Ne<Ee))for(;Me[Ne+$e]==Me[Ee+$e]&&$e<250;)++$e;if($e>2){Le=xe[$e],Le<=22?Ae=pe(we,Ae,Y[Le+1]>>1)-1:(pe(we,Ae,3),Ae+=5,pe(we,Ae,Y[Le-23]>>5),Ae+=3);var ct=Le<8?0:Le-4>>2;ct>0&&(te(we,Ae,$e-d[Le]),Ae+=ct),Le=ge[Ee-Ne],Ae=pe(we,Ae,Y[Le]>>3),Ae-=3;var ht=Le<4?0:Le-2>>1;ht>0&&(te(we,Ae,Ee-Ne-R[Le]),Ae+=ht);for(var Ot=0;Ot<$e;++Ot)Pe[je]=Ee&32767,je=(je<<5^Me[Ee])&32767,++Ee;Ie-=$e-1}else Le<=143?Le=Le+48:Ae=ne(we,Ae,1),Ae=pe(we,Ae,Y[Le]),Pe[je]=Ee&32767,++Ee}Ae=pe(we,Ae,0)-1}return we.l=(Ae+7)/8|0,we.l}return function(we,Ae){return we.length<8?ve(we,Ae):Se(we,Ae)}}();function me(le){var ge=yt(50+Math.floor(le.length*1.1)),de=ye(le,ge);return ge.slice(0,de)}var _e=J?new Uint16Array(32768):q(32768),be=J?new Uint16Array(32768):q(32768),Ce=J?new Uint16Array(128):q(128),De=1,Be=1;function Fe(le,ge){var de=ie(le,ge)+257;ge+=5;var ue=ie(le,ge)+1;ge+=5;var xe=Q(le,ge)+4;ge+=4;for(var ve=0,Se=J?new Uint8Array(19):q(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):q(8),Ee=J?new Uint8Array(8):q(8),Pe=Se.length,Ie=0;Ie<xe;++Ie)Se[W[Ie]]=ve=X(le,ge),we<ve&&(we=ve),Ae[ve]++,ge+=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<Pe;++Ie)(je=Se[Ie])!=0&&(Me[Ie]=Ee[je]++);var Le=0;for(Ie=0;Ie<Pe;++Ie)if(Le=Se[Ie],Le!=0){je=Y[Me[Ie]]>>8-Le;for(var Ne=(1<<7-Le)-1;Ne>=0;--Ne)Ce[je|Ne<<Le]=Le&7|Ie<<3}var $e=[];for(we=1;$e.length<de+ue;)switch(je=Ce[K(le,ge)],ge+=je&7,je>>>=3){case 16:for(ve=3+V(le,ge),ge+=2,je=$e[$e.length-1];ve-- >0;)$e.push(je);break;case 17:for(ve=3+X(le,ge),ge+=3;ve-- >0;)$e.push(0);break;case 18:for(ve=11+K(le,ge),ge+=7;ve-- >0;)$e.push(0);break;default:$e.push(je),we<je&&(we=je);break}var ct=$e.slice(0,de),ht=$e.slice(de);for(Ie=de;Ie<286;++Ie)ct[Ie]=0;for(Ie=ue;Ie<30;++Ie)ht[Ie]=0;return De=ae(ct,_e,286),Be=ae(ht,be,30),ge}function Oe(le,ge){if(le[0]==3&&!(le[1]&3))return[Wr(ge),2];for(var de=0,ue=0,xe=en(ge||1<<18),ve=0,Se=xe.length>>>0,Me=0,we=0;!(ue&1);){if(ue=X(le,de),de+=3,ue>>>1)ue>>1==1?(Me=9,we=5):(de=Fe(le,de),Me=De,we=Be);else{de&7&&(de+=8-(de&7));var Ae=le[de>>>3]|le[(de>>>3)+1]<<8;if(de+=32,Ae>0)for(!ge&&Se<ve+Ae&&(xe=re(xe,ve+Ae),Se=xe.length);Ae-- >0;)xe[ve++]=le[de>>>3],de+=8;continue}for(;;){!ge&&Se<ve+32767&&(xe=re(xe,ve+32767),Se=xe.length);var Ee=oe(le,de,Me),Pe=ue>>>1==1?se[Ee]:_e[Ee];if(de+=Pe&15,Pe>>>=4,!(Pe>>>8&255))xe[ve++]=Pe;else{if(Pe==256)break;Pe-=257;var Ie=Pe<8?0:Pe-4>>2;Ie>5&&(Ie=0);var je=ve+d[Pe];Ie>0&&(je+=oe(le,de,Ie),de+=Ie),Ee=oe(le,de,we),Pe=ue>>>1==1?he[Ee]:be[Ee],de+=Pe&15,Pe>>>=4;var Le=Pe<4?0:Pe-2>>1,Ne=R[Pe];for(Le>0&&(Ne+=oe(le,de,Le),de+=Le),!ge&&Se<je&&(xe=re(xe,je+100),Se=xe.length);ve<je;)xe[ve]=xe[ve-Ne],++ve}}}return ge?[xe,de+7>>>3]:[xe.slice(0,ve),de+7>>>3]}function Ue(le,ge){var de=le.slice(le.l||0),ue=Oe(de,ge);return le.l+=ue[1],ue[0]}function Je(le,ge){if(le)typeof console<"u"&&console.error(ge);else throw new Error(ge)}function it(le,ge){var de=le;Ct(de,0);var ue=[],xe=[],ve={FileIndex:ue,FullPaths:xe};P(ve,{root:ge.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),Pe=de.read_shift(2),Ie=de.read_shift(2),je=de.read_shift(2);de.l+=8;var Le=de.read_shift(4),Ne=c(de.slice(de.l+Pe,de.l+Pe+Ie));de.l+=Pe+Ie+je;var $e=de.l;de.l=Le+4,qt(de,Ae,Ee,ve,Ne),de.l=$e}return ve}function qt(le,ge,de,ue,xe){le.l+=2;var ve=le.read_shift(2),Se=le.read_shift(2),Me=o(le);if(ve&8257)throw new Error("Unsupported ZIP encryption");for(var we=le.read_shift(4),Ae=le.read_shift(4),Ee=le.read_shift(4),Pe=le.read_shift(2),Ie=le.read_shift(2),je="",Le=0;Le<Pe;++Le)je+=String.fromCharCode(le[le.l++]);if(Ie){var Ne=c(le.slice(le.l,le.l+Ie));(Ne[21589]||{}).mt&&(Me=Ne[21589].mt),((xe||{})[21589]||{}).mt&&(Me=xe[21589].mt)}le.l+=Ie;var $e=le.slice(le.l,le.l+Ae);switch(Se){case 8:$e=H(le,Ee);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Se)}var ct=!1;ve&8&&(we=le.read_shift(4),we==134695760&&(we=le.read_shift(4),ct=!0),Ae=le.read_shift(4),Ee=le.read_shift(4)),Ae!=ge&&Je(ct,"Bad compressed size: "+ge+" != "+Ae),Ee!=de&&Je(ct,"Bad uncompressed size: "+de+" != "+Ee),Lr(ue,je,$e,{unsafe:!0,mt:Me})}function Zt(le,ge){var de=ge||{},ue=[],xe=[],ve=yt(1),Se=de.compression?8:0,Me=0,we=0,Ae=0,Ee=0,Pe=0,Ie=le.FullPaths[0],je=Ie,Le=le.FileIndex[0],Ne=[],$e=0;for(we=1;we<le.FullPaths.length;++we)if(je=le.FullPaths[we].slice(Ie.length),Le=le.FileIndex[we],!(!Le.size||!Le.content||je=="Sh33tJ5")){var ct=Ee,ht=yt(je.length);for(Ae=0;Ae<je.length;++Ae)ht.write_shift(1,je.charCodeAt(Ae)&127);ht=ht.slice(0,ht.l),Ne[Pe]=Mf.buf(Le.content,0);var Ot=Le.content;Se==8&&(Ot=z(Ot)),ve=yt(30),ve.write_shift(4,67324752),ve.write_shift(2,20),ve.write_shift(2,Me),ve.write_shift(2,Se),Le.mt?s(ve,Le.mt):ve.write_shift(4,0),ve.write_shift(-4,Ne[Pe]),ve.write_shift(4,Ot.length),ve.write_shift(4,Le.content.length),ve.write_shift(2,ht.length),ve.write_shift(2,0),Ee+=ve.length,ue.push(ve),Ee+=ht.length,ue.push(ht),Ee+=Ot.length,ue.push(Ot),ve=yt(46),ve.write_shift(4,33639248),ve.write_shift(2,0),ve.write_shift(2,20),ve.write_shift(2,Me),ve.write_shift(2,Se),ve.write_shift(4,0),ve.write_shift(-4,Ne[Pe]),ve.write_shift(4,Ot.length),ve.write_shift(4,Le.content.length),ve.write_shift(2,ht.length),ve.write_shift(2,0),ve.write_shift(2,0),ve.write_shift(2,0),ve.write_shift(2,0),ve.write_shift(4,0),ve.write_shift(4,ct),$e+=ve.l,xe.push(ve),$e+=ht.length,xe.push(ht),++Pe}return ve=yt(22),ve.write_shift(4,101010256),ve.write_shift(2,0),ve.write_shift(2,0),ve.write_shift(2,Pe),ve.write_shift(2,Pe),ve.write_shift(4,$e),ve.write_shift(4,Ee),ve.write_shift(2,0),Nr([Nr(ue),Nr(xe),ve])}var Xe={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 Ut(le,ge){if(le.ctype)return le.ctype;var de=le.name||"",ue=de.match(/\.([^\.]+)$/);return ue&&Xe[ue[1]]||ge&&(ue=(de=ge).match(/[\.\\]([^\.\\])+$/),ue&&Xe[ue[1]])?Xe[ue[1]]:"application/octet-stream"}function wt(le){for(var ge=Qs(le),de=[],ue=0;ue<ge.length;ue+=76)de.push(ge.slice(ue,ue+76));return de.join(`\r
- `)+`\r
- `}function Ht(le){var ge=le.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)});ge=ge.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),ge.charAt(0)==`
- `&&(ge="=0D"+ge.slice(1)),ge=ge.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
- =0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var de=[],ue=ge.split(`\r
- `),xe=0;xe<ue.length;++xe){var ve=ue[xe];if(ve.length==0){de.push("");continue}for(var Se=0;Se<ve.length;){var Me=76,we=ve.slice(Se,Se+Me);we.charAt(Me-1)=="="?Me--:we.charAt(Me-2)=="="?Me-=2:we.charAt(Me-3)=="="&&(Me-=3),we=ve.slice(Se,Se+Me),Se+=Me,Se<ve.length&&(we+="="),de.push(we)}}return de.join(`\r
- `)}function Fr(le){for(var ge=[],de=0;de<le.length;++de){for(var ue=le[de];de<=le.length&&ue.charAt(ue.length-1)=="=";)ue=ue.slice(0,ue.length-1)+le[++de];ge.push(ue)}for(var xe=0;xe<ge.length;++xe)ge[xe]=ge[xe].replace(/[=][0-9A-Fa-f]{2}/g,function(ve){return String.fromCharCode(parseInt(ve.slice(1),16))});return mr(ge.join(`\r
- `))}function ci(le,ge,de){for(var ue="",xe="",ve="",Se,Me=0;Me<10;++Me){var we=ge[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":ve=Ae[2].trim();break;case"content-transfer-encoding":xe=Ae[2].trim();break}}switch(++Me,xe.toLowerCase()){case"base64":Se=mr(ar(ge.slice(Me).join("")));break;case"quoted-printable":Se=Fr(ge.slice(Me));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+xe)}var Ee=Lr(le,ue.slice(de.length),Se,{unsafe:!0});ve&&(Ee.ctype=ve)}function hi(le,ge){if(v(le.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var de=ge&&ge.root||"",ue=(Qe&&Buffer.isBuffer(le)?le.toString("binary"):v(le)).split(`\r
- `),xe=0,ve="";for(xe=0;xe<ue.length;++xe)if(ve=ue[xe],!!/^Content-Location:/i.test(ve)&&(ve=ve.slice(ve.indexOf("file")),de||(de=ve.slice(0,ve.lastIndexOf("/")+1)),ve.slice(0,de.length)!=de))for(;de.length>0&&(de=de.slice(0,de.length-1),de=de.slice(0,de.lastIndexOf("/")+1),ve.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 Pe,Ie=0;for(xe=0;xe<ue.length;++xe){var je=ue[xe];je!==Me&&je!==Me+"--"||(Ie++&&ci(Ee,ue.slice(Pe,xe),de),Pe=xe)}return Ee}function fi(le,ge){var de=ge||{},ue=de.boundary||"SheetJS";ue="------="+ue;for(var xe=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+ue.slice(2)+'"',"","",""],ve=le.FullPaths[0],Se=ve,Me=le.FileIndex[0],we=1;we<le.FullPaths.length;++we)if(Se=le.FullPaths[we].slice(ve.length),Me=le.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),Pe=0,Ie=Math.min(1024,Ee.length),je=0,Le=0;Le<=Ie;++Le)(je=Ee.charCodeAt(Le))>=32&&je<128&&++Pe;var Ne=Pe>=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: "+Ut(Me,Se)),xe.push(""),xe.push(Ne?Ht(Ee):wt(Ee))}return xe.push(ue+`--\r
- `),xe.join(`\r
- `)}function Ra(le){var ge={};return P(ge,le),ge}function Lr(le,ge,de,ue){var xe=ue&&ue.unsafe;xe||P(le);var ve=!xe&&et.find(le,ge);if(!ve){var Se=le.FullPaths[0];ge.slice(0,Se.length)==Se?Se=ge:(Se.slice(-1)!="/"&&(Se+="/"),Se=(Se+ge).replace("//","/")),ve={name:i(ge),type:2},le.FileIndex.push(ve),le.FullPaths.push(Se),xe||et.utils.cfb_gc(le)}return ve.content=de,ve.size=de?de.length:0,ue&&(ue.CLSID&&(ve.clsid=ue.CLSID),ue.mt&&(ve.mt=ue.mt),ue.ct&&(ve.ct=ue.ct)),ve}function ql(le,ge){P(le);var de=et.find(le,ge);if(de){for(var ue=0;ue<le.FileIndex.length;++ue)if(le.FileIndex[ue]==de)return le.FileIndex.splice(ue,1),le.FullPaths.splice(ue,1),!0}return!1}function Zl(le,ge,de){P(le);var ue=et.find(le,ge);if(ue){for(var xe=0;xe<le.FileIndex.length;++xe)if(le.FileIndex[xe]==ue)return le.FileIndex[xe].name=i(de),le.FullPaths[xe]=de,!0}return!1}function Jl(le){m(le,!0)}return r.find=T,r.read=F,r.parse=y,r.write=G,r.writeFile=k,r.utils={cfb_new:Ra,cfb_add:Lr,cfb_del:ql,cfb_mov:Zl,cfb_gc:Jl,ReadShift:Ii,CheckField:Jo,prep_blob:Ct,bconcat:Nr,use_zlib:D,_deflateRaw:me,_inflateRaw:Ue,consts:f},r}();function Df(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 wr(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 ms(e){for(var r=[],t=wr(e),a=0;a!==t.length;++a)r[e[t[a]]]=t[a];return r}var ya=new Date(1899,11,30,0,0,0);function Kt(e,r){var t=e.getTime();r&&(t-=1462*24*60*60*1e3);var a=ya.getTime()+(e.getTimezoneOffset()-ya.getTimezoneOffset())*6e4;return(t-a)/(24*60*60*1e3)}var Do=new Date,Of=ya.getTime()+(Do.getTimezoneOffset()-ya.getTimezoneOffset())*6e4,cn=Do.getTimezoneOffset();function Pa(e){var r=new Date;return r.setTime(e*24*60*60*1e3+Of),r.getTimezoneOffset()!==cn&&r.setTime(r.getTime()+(r.getTimezoneOffset()-cn)*6e4),r}function Pf(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 hn=new Date("2017-02-19T19:06:09.000Z"),Oo=isNaN(hn.getFullYear())?new Date("2/19/17"):hn,Ff=Oo.getFullYear()==2017;function At(e,r){var t=new Date(e);if(Ff)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(Oo.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 Qr(e,r){if(Qe&&Buffer.isBuffer(e)){if(r){if(e[0]==255&&e[1]==254)return Li(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Li(mo(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(r){if(e[0]==255&&e[1]==254)return Li(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Li(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 ft(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 Lf=["january","february","march","april","may","june","july","august","september","october","november","december"];function yi(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&&Lf.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 If=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 Po(e){return e?e.content&&e.type?Qr(e.content,!0):e.data?Oi(e.data):e.asNodeBuffer&&Qe?Oi(e.asNodeBuffer().toString("binary")):e.asBinary?Oi(e.asBinary()):e._data&&e._data.getContent?Oi(Qr(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function Fo(e){if(!e)return null;if(e.data)return Zs(e.data);if(e.asNodeBuffer&&Qe)return e.asNodeBuffer();if(e._data&&e._data.getContent){var r=e._data.getContent();return typeof r=="string"?Zs(r):Array.prototype.slice.call(r)}return e.content&&e.type?e.content:null}function Rf(e){return e&&e.name.slice(-4)===".bin"?Fo(e):Po(e)}function hr(e,r){for(var t=e.FullPaths||wr(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 vs(e,r){var t=hr(e,r);if(t==null)throw new Error("Cannot find file "+r+" in zip");return t}function mt(e,r,t){if(!t)return Rf(vs(e,r));if(!r)return null;try{return mt(e,r)}catch{return null}}function ir(e,r,t){if(!t)return Po(vs(e,r));if(!r)return null;try{return ir(e,r)}catch{return null}}function Lo(e,r,t){if(!t)return Fo(vs(e,r));if(!r)return null;try{return Lo(e,r)}catch{return null}}function fn(e){for(var r=e.FullPaths||wr(e.files),t=[],a=0;a<r.length;++a)r[a].slice(-1)!="/"&&t.push(r[a].replace(/^Root Entry[\/]/,""));return t.sort()}function Bf(e,r,t){if(e.FullPaths){if(typeof t=="string"){var a;return Qe?a=ii(t):a=rf(t),et.utils.cfb_add(e,r,a)}et.utils.cfb_add(e,r,t)}else e.file(r,t)}function Io(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 Fi(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 Ro=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
- `,Nf=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,dn=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,jf=/<[^>]*>/g,jt=Ro.match(dn)?dn:jf,Uf=/<\w*:/,Hf=/<(\/?)\w+:/;function Ve(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(Nf),c=0,u="",w=0,y="",I="",j=1;if(o)for(w=0;w!=o.length;++w){for(I=o[w],s=0;s!=I.length&&I.charCodeAt(s)!==61;++s);for(y=I.slice(0,s).trim();I.charCodeAt(s+1)==32;)++s;for(j=(i=I.charCodeAt(s+1))==34||i==39?1:0,u=I.slice(s+1+j,I.length-j),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 C=(c===5&&y.slice(0,5)==="xmlns"?"xmlns":"")+y.slice(c+1);if(a[C]&&y.slice(c-3,c)=="ext")continue;a[C]=u,t||(a[C.toLowerCase()]=u)}}return a}function Sr(e){return e.replace(Hf,"<$1")}var Bo={""":'"',"'":"'",">":">","<":"<","&":"&"},Wf=ms(Bo),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 Bo[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))}}(),zf=/[&<>'"]/g,Gf=/[\u0000-\u001f]/g;function ys(e){var r=e+"";return r.replace(zf,function(t){return Wf[t]}).replace(/\n/g,"<br/>").replace(Gf,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}var un=function(){var e=/&#(\d+);/g;function r(t,a){return String.fromCharCode(parseInt(a,10))}return function(a){return a.replace(e,r)}}();function ot(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Wa(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 pn(e){var r=Wr(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 gn(e){return ii(e,"binary").toString("utf8")}var la="foo bar bazâð£",nt=Qe&&(gn(la)==Wa(la)&&gn||pn(la)==Wa(la)&&pn)||Wa,Li=Qe?function(e){return ii(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("")},Yi=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||"")}}(),No=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}}(),Xf=function(){var e={};return function(t){return e[t]!==void 0?e[t]:e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}(),Vf=/<\/?(?:vt:)?variant>/g,Yf=/<(?:vt:)([^>]*)>([\s\S]*)</;function xn(e,r){var t=Ve(e),a=e.match(Xf(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(Vf,"").match(Yf);o&&i.push({v:nt(o[2]),t:o[1]})}),i}var $f=/(^\s|\s$|\n)/;function Kf(e){return wr(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function qf(e,r,t){return"<"+e+(t!=null?Kf(t):"")+(r!=null?(r.match($f)?' xml:space="preserve"':"")+">"+r+"</"+e:"/")+">"}function Ts(e){if(Qe&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return nt(ai(ps(e)));throw new Error("Bad input format: expected Buffer or string")}var $i=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,Zf={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"},Jf=["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 Qf(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 e0(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 mn=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},vn=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:ii(r)})):mn(e)}:mn,yn=function(e,r,t){for(var a=[],i=r;i<t;i+=2)a.push(String.fromCharCode(Cr(e,i)));return a.join("").replace($t,"")},ks=Qe?function(e,r,t){return Buffer.isBuffer(e)?e.toString("utf16le",r,t).replace($t,""):yn(e,r,t)}:yn,Tn=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("")},jo=Qe?function(e,r,t){return Buffer.isBuffer(e)?e.toString("hex",r,r+t):Tn(e,r,t)}:Tn,kn=function(e,r,t){for(var a=[],i=r;i<t;i++)a.push(String.fromCharCode(pi(e,i)));return a.join("")},ta=Qe?function(r,t,a){return Buffer.isBuffer(r)?r.toString("utf8",t,a):kn(r,t,a)}:kn,Uo=function(e,r){var t=rr(e,r);return t>0?ta(e,r+4,r+4+t-1):""},Ho=Uo,Wo=function(e,r){var t=rr(e,r);return t>0?ta(e,r+4,r+4+t-1):""},zo=Wo,Go=function(e,r){var t=2*rr(e,r);return t>0?ta(e,r+4,r+4+t-1):""},Xo=Go,Vo=function(r,t){var a=rr(r,t);return a>0?ks(r,t+4,t+4+a):""},Yo=Vo,$o=function(e,r){var t=rr(e,r);return t>0?ta(e,r+4,r+4+t):""},Ko=$o,qo=function(e,r){return Qf(e,r)},Ta=qo,Zo=function(r){return Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array};Qe&&(Ho=function(r,t){if(!Buffer.isBuffer(r))return Uo(r,t);var a=r.readUInt32LE(t);return a>0?r.toString("utf8",t+4,t+4+a-1):""},zo=function(r,t){if(!Buffer.isBuffer(r))return Wo(r,t);var a=r.readUInt32LE(t);return a>0?r.toString("utf8",t+4,t+4+a-1):""},Xo=function(r,t){if(!Buffer.isBuffer(r))return Go(r,t);var a=2*r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+a-1)},Yo=function(r,t){if(!Buffer.isBuffer(r))return Vo(r,t);var a=r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+a)},Ko=function(r,t){if(!Buffer.isBuffer(r))return $o(r,t);var a=r.readUInt32LE(t);return r.toString("utf8",t+4,t+4+a)},Ta=function(r,t){return Buffer.isBuffer(r)?r.readDoubleLE(t):qo(r,t)},Zo=function(r){return Buffer.isBuffer(r)||Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array});var pi=function(e,r){return e[r]},Cr=function(e,r){return e[r+1]*256+e[r]},t0=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]},$r=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]},r0=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function Ii(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(Cr(this,w)),w+=2;e*=2;break;case"utf8":t=ta(this,this.l,this.l+e);break;case"utf16le":e*=2,t=ks(this,this.l,this.l+e);break;case"wstr":return Ii.call(this,e,"dbcs");case"lpstr-ansi":t=Ho(this,this.l),e=4+rr(this,this.l);break;case"lpstr-cp":t=zo(this,this.l),e=4+rr(this,this.l);break;case"lpwstr":t=Xo(this,this.l),e=4+2*rr(this,this.l);break;case"lpp4":e=4+rr(this,this.l),t=Yo(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+rr(this,this.l),t=Ko(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,t="";(o=pi(this,this.l+e++))!==0;)s.push(oa(o));t=s.join("");break;case"_wstr":for(e=0,t="";(o=Cr(this,this.l+e))!==0;)s.push(oa(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=pi(this,w),this.l=w+1,c=Ii.call(this,e-u,o?"dbcs-cont":"sbcs-cont"),s.join("")+c;s.push(oa(Cr(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=pi(this,w),this.l=w+1,c=Ii.call(this,e-u,o?"dbcs-cont":"sbcs-cont"),s.join("")+c;s.push(oa(pi(this,w))),w+=1}t=s.join("");break;default:switch(e){case 1:return a=pi(this,this.l),this.l++,a;case 2:return a=(r==="i"?t0:Cr)(this,this.l),this.l+=2,a;case 4:case-4:return r==="i"||!(this[this.l+3]&128)?(a=(e>0?$r:r0)(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=Ta(this,this.l):i=Ta([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=jo(this,this.l,e);break}}return this.l+=e,t}var 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,e[t+2]=r>>16&255,e[t+3]=r>>24&255},s0=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255};function n0(e,r,t){var a=0,i=0;if(t==="dbcs"){for(i=0;i!=r.length;++i)s0(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,i0(this,r,this.l);break;case 8:if(a=8,t==="f"){e0(this,r,this.l);break}case 16:break;case-4:a=4,a0(this,r,this.l);break}return this.l+=a,this}function Jo(e,r){var t=jo(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=Ii,e.chk=Jo,e.write_shift=n0}function Nt(e,r){e.l+=r}function yt(e){var r=Wr(e);return Ct(r,0),r}function Pr(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=Aa[c]||Aa[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 Za(){var e=[],r=Qe?256:2048,t=function(w){var y=yt(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(),Nr(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 Ri(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 bn(e,r,t){var a=Mt(e);return a.s=Ri(a.s,r.s,t),a.e=Ri(a.e,r.s,t),a}function Bi(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=c0(t)),!e.rRel&&e.rRel!=null&&(t=o0(t)),t}function za(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?"":"$")+kt(e.s.c)+":"+(e.e.cRel?"":"$")+kt(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):Bi(e.s,r.biff)+":"+Bi(e.e,r.biff)}function bs(e){return parseInt(l0(e),10)-1}function Dt(e){return""+(e+1)}function o0(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function l0(e){return e.replace(/\$(\d+)$/,"$1")}function _s(e){for(var r=h0(e),t=0,a=0;a!==r.length;++a)t=26*t+r.charCodeAt(a)-64;return t-1}function kt(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 c0(e){return e.replace(/^([A-Z])/,"$$$1")}function h0(e){return e.replace(/^\$([A-Z])/,"$1")}function f0(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Yt(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 Si(e){var r=e.indexOf(":");return r==-1?{s:Yt(e),e:Yt(e)}:{s:Yt(e.slice(0,r)),e:Yt(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 ut(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 _n(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=dr(e.z,t?Kt(r):r)}catch{}try{return e.w=dr((e.XF||{}).numFmtId||(t?14:0),t?Kt(r):r)}catch{return""+r}}function Or(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"?oi[e.v]||e.v:r==null?_n(e,e.v):_n(e,r))}function Xr(e,r){var t=r&&r.sheet?r.sheet:"Sheet1",a={};return a[t]=e,{SheetNames:[t],Sheets:a}}function Qo(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"?Yt(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=ut(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 I=0;I!=r.length;++I)if(r[I]){if(!Array.isArray(r[I]))throw new Error("aoa_to_sheet expects an array of arrays");for(var j=0;j!=r[I].length;++j)if(!(typeof r[I][j]>"u")){var C={v:r[I][j]},p=o+I,x=c+j;if(w.s.r>p&&(w.s.r=p),w.s.c>x&&(w.s.c=x),w.e.r<p&&(w.e.r=p),w.e.c<x&&(w.e.c=x),r[I][j]&&typeof r[I][j]=="object"&&!Array.isArray(r[I][j])&&!(r[I][j]instanceof Date))C=r[I][j];else if(Array.isArray(C.v)&&(C.f=r[I][j][1],C.v=C.v[0]),C.v===null)if(C.f)C.t="n";else if(a.nullError)C.t="e",C.v=0;else if(a.sheetStubs)C.t="z";else continue;else typeof C.v=="number"?C.t="n":typeof C.v=="boolean"?C.t="b":C.v instanceof Date?(C.z=a.dateNF||Ke[14],a.cellDates?(C.t="d",C.w=dr(C.z,Kt(C.v))):(C.t="n",C.v=Kt(C.v),C.w=dr(C.z,C.v))):C.t="s";if(i)s[p]||(s[p]=[]),s[p][x]&&s[p][x].z&&(C.z=s[p][x].z),s[p][x]=C;else{var O=Ye({c:x,r:p});s[O]&&s[O].z&&(C.z=s[O].z),s[O]=C}}}return w.s.c<1e7&&(s["!ref"]=tt(w)),s}function Ai(e,r){return Qo(null,e,r)}function d0(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 u0(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function ws(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(u0(e));o.r=s}else o.r=[{ich:0,ifnt:0}];return e.l=t+r,o}var p0=ws;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 si(e){var r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:r}}var g0=Bt;function Ss(e){var r=e.read_shift(4);return r===0||r===4294967295?"":e.read_shift(r,"dbcs")}var x0=Bt,Ja=Ss;function As(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?Ta([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):$r(r,0)>>2;return t?i/100:i}function el(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 ni=el;function It(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function m0(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=Zr[i];w&&(r.rgb=qi(w));break;case 2:r.rgb=qi([o,c,u]);break;case 3:r.theme=i;break}return s!=0&&(r.tint=s>0?s/32767:s/32768),r}function v0(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 tl(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 y0(e){return tl(e,1)}function T0(e){return tl(e,2)}var Es=2,Jt=3,ca=11,wn=12,ka=19,ha=64,k0=65,b0=71,_0=4108,w0=4126,St=80,rl=81,S0=[St,rl],A0={1:{n:"CodePage",t:Es},2:{n:"Category",t:St},3:{n:"PresentationFormat",t:St},4:{n:"ByteCount",t:Jt},5:{n:"LineCount",t:Jt},6:{n:"ParagraphCount",t:Jt},7:{n:"SlideCount",t:Jt},8:{n:"NoteCount",t:Jt},9:{n:"HiddenCount",t:Jt},10:{n:"MultimediaClipCount",t:Jt},11:{n:"ScaleCrop",t:ca},12:{n:"HeadingPairs",t:_0},13:{n:"TitlesOfParts",t:w0},14:{n:"Manager",t:St},15:{n:"Company",t:St},16:{n:"LinksUpToDate",t:ca},17:{n:"CharacterCount",t:Jt},19:{n:"SharedDoc",t:ca},22:{n:"HyperlinksChanged",t:ca},23:{n:"AppVersion",t:Jt,p:"version"},24:{n:"DigSig",t:k0},26:{n:"ContentType",t:St},27:{n:"ContentStatus",t:St},28:{n:"Language",t:St},29:{n:"Version",t:St},255:{},2147483648:{n:"Locale",t:ka},2147483651:{n:"Behavior",t:ka},1919054434:{}},E0={1:{n:"CodePage",t:Es},2:{n:"Title",t:St},3:{n:"Subject",t:St},4:{n:"Author",t:St},5:{n:"Keywords",t:St},6:{n:"Comments",t:St},7:{n:"Template",t:St},8:{n:"LastAuthor",t:St},9:{n:"RevNumber",t:St},10:{n:"EditTime",t:ha},11:{n:"LastPrinted",t:ha},12:{n:"CreatedDate",t:ha},13:{n:"ModifiedDate",t:ha},14:{n:"PageCount",t:Jt},15:{n:"WordCount",t:Jt},16:{n:"CharCount",t:Jt},17:{n:"Thumbnail",t:b0},18:{n:"Application",t:St},19:{n:"DocSecurity",t:Jt},255:{},2147483648:{n:"Locale",t:ka},2147483651:{n:"Behavior",t:ka},1919054434:{}},Sn={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"},C0=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function M0(e){return e.map(function(r){return[r>>16&255,r>>8&255,r&255]})}var D0=M0([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]),Zr=Mt(D0),oi={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},il={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},An={"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 O0(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function P0(e){var r=O0();if(!e||!e.match)return r;var t={};if((e.match(jt)||[]).forEach(function(a){var i=Ve(a);switch(i[0].replace(Uf,"<")){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[An[i.ContentType]]!==void 0&&r[An[i.ContentType]].push(i.PartName);break}}),r.xmlns!==Zf.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 gi={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 Qa(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function Ni(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=Ve(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:Fi(s.Target,r);t[c]=o,a[s.Id]=o}}),t["!id"]=a,t}var F0="application/vnd.oasis.opendocument.spreadsheet";function L0(e,r){for(var t=Ts(e),a,i;a=$i.exec(t);)switch(a[3]){case"manifest":break;case"file-entry":if(i=Ve(a[0],!1),i.path=="/"&&i.type!==F0)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 ji=[["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"]],I0=function(){for(var e=new Array(ji.length),r=0;r<ji.length;++r){var t=ji[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 al(e){var r={};e=nt(e);for(var t=0;t<ji.length;++t){var a=ji[t],i=e.match(I0[t]);i!=null&&i.length>0&&(r[a[1]]=rt(i[1])),a[2]==="date"&&r[a[1]]&&(r[a[1]]=At(r[a[1]]))}return r}var R0=[["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 sl(e,r,t,a){var i=[];if(typeof e=="string")i=xn(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"?xn(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 B0(e,r,t){var a={};return r||(r={}),e=nt(e),R0.forEach(function(i){var s=(e.match(Yi(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&&sl(a.HeadingPairs,a.TitlesOfParts,r,t),r}var N0=/<[^>]+>[^<]*/g;function j0(e,r){var t={},a="",i=e.match(N0);if(i)for(var s=0;s!=i.length;++s){var o=i[s],c=Ve(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]=ot(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]=At(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 U0={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"},Ga;function H0(e,r,t){Ga||(Ga=ms(U0)),r=Ga[r]||r,e[r]=t}function Cs(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 nl(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 ol(e,r,t){var a=e.read_shift(0,"lpwstr");return t&&(e.l+=4-(a.length+1&3)&3),a}function ll(e,r,t){return r===31?ol(e):nl(e,r,t)}function es(e,r,t){return ll(e,r,t===!1?0:4)}function W0(e,r){if(!r)throw new Error("VtUnalignedString must have positive length");return ll(e,r,0)}function z0(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($t,""),e.l-i&2&&(e.l+=2)}return t}function G0(e){for(var r=e.read_shift(4),t=[],a=0;a!=r;++a)t[a]=e.read_shift(0,"lpstr-cp").replace($t,"");return t}function X0(e){var r=e.l,t=ba(e,rl);e[e.l]==0&&e[e.l+1]==0&&e.l-r&2&&(e.l+=2);var a=ba(e,Jt);return[t,a]}function V0(e){for(var r=e.read_shift(4),t=[],a=0;a<r/2;++a)t.push(X0(e));return t}function En(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($t,"").replace(Pi,"!"),r===1200&&o%2&&(e.l+=2)}return e.l&3&&(e.l=e.l>>2+1<<2),a}function cl(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 Y0(e){var r={};return r.Size=e.read_shift(4),e.l+=r.Size+3-(r.Size-1)%4,r}function ba(e,r,t){var a=e.read_shift(2),i,s=t||{};if(e.l+=2,r!==wn&&a!==r&&S0.indexOf(r)===-1&&!((r&65534)==4126&&(a&65534)==4126))throw new Error("Expected type "+r+" saw "+a);switch(r===wn?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 nl(e,a,4).replace($t,"");case 31:return ol(e);case 64:return Cs(e);case 65:return cl(e);case 71:return Y0(e);case 80:return es(e,a,!s.raw).replace($t,"");case 81:return W0(e,a).replace($t,"");case 4108:return V0(e);case 4126:case 4127:return a==4127?z0(e):G0(e);default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+a)}}function Cn(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),I=e.read_shift(4);s[o]=[y,I+t]}s.sort(function(_,N){return _[1]-N[1]});var j={};for(o=0;o!=i;++o){if(e.l!==s[o][1]){var C=!0;if(o>0&&r)switch(r[s[o-1][0]].t){case 2:e.l+2===s[o][1]&&(e.l+=2,C=!1);break;case 80:e.l<=s[o][1]&&(e.l=s[o][1],C=!1);break;case 4108:e.l<=s[o][1]&&(e.l=s[o][1],C=!1);break}if((!r||o==0)&&e.l<=s[o][1]&&(C=!1,e.l=s[o][1]),C)throw new Error("Read Error: Expected address "+s[o][1]+" at "+e.l+" :"+o)}if(r){var p=r[s[o][0]];if(j[p.n]=ba(e,p.t,{raw:!0}),p.p==="version"&&(j[p.n]=String(j[p.n]>>16)+"."+("0000"+String(j[p.n]&65535)).slice(-4)),p.n=="CodePage")switch(j[p.n]){case 0:j[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=j[p.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+j[p.n])}}else if(s[o][0]===1){if(c=j.CodePage=ba(e,Es),vr(c),u!==-1){var x=e.l;e.l=s[u][1],w=En(e,c),e.l=x}}else if(s[o][0]===0){if(c===0){u=o,e.l=s[o+1][1];continue}w=En(e,c)}else{var O=w[s[o][0]],S;switch(e[e.l]){case 65:e.l+=4,S=cl(e);break;case 30:e.l+=4,S=es(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,S=es(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,S=e.read_shift(4,"i");break;case 19:e.l+=4,S=e.read_shift(4);break;case 5:e.l+=4,S=e.read_shift(8,"f");break;case 11:e.l+=4,S=pt(e,4);break;case 64:e.l+=4,S=At(Cs(e));break;default:throw new Error("unparsed value: "+e[e.l])}j[O]=S}}return e.l=t+a,j}function Mn(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 I=Cn(a,r),j={SystemIdentifier:w};for(var C in I)j[C]=I[C];if(j.FMTID=s,i===1)return j;if(u-a.l==2&&(a.l+=2),a.l!==u)throw new Error("Length mismatch 2: "+a.l+" !== "+u);var p;try{p=Cn(a,null)}catch{}for(C in p)j[C]=p[C];return j.FMTID=[s,o],j}function Rr(e,r){return e.read_shift(r),null}function $0(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 pt(e,r){return e.read_shift(r)===1}function vt(e){return e.read_shift(2,"u")}function hl(e,r){return $0(e,r,vt)}function K0(e){var r=e.read_shift(1),t=e.read_shift(1);return t===1?r:r===1}function ra(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 q0(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 ei(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 ia(e,r,t){var a=e.read_shift(t&&t.biff==2?1:2);return a===0?(e.l++,""):ei(e,a,t)}function li(e,r,t){if(t.biff>5)return ia(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 Z0(e){var r=e.read_shift(1);e.l++;var t=e.read_shift(2);return e.l+=2,[r,t]}function J0(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($t,"");return a&&(e.l+=24),i}function Q0(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($t,"");return t+o}function ed(e,r){var t=e.read_shift(16);switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return J0(e);case"0303000000000000c000000000000046":return Q0(e);default:throw new Error("Unsupported Moniker "+t)}}function fa(e){var r=e.read_shift(4),t=r>0?e.read_shift(r,"utf16le").replace($t,""):"";return t}function td(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,I;i&16&&(s=fa(e,t-e.l)),i&128&&(o=fa(e,t-e.l)),(i&257)===257&&(c=fa(e,t-e.l)),(i&257)===1&&(u=ed(e,t-e.l)),i&8&&(w=fa(e,t-e.l)),i&32&&(y=e.read_shift(16)),i&64&&(I=Cs(e)),e.l=t;var j=o||c||u||"";j&&w&&(j+="#"+w),j||(j="#"+w),i&2&&j.charAt(0)=="/"&&j.charAt(1)!="/"&&(j="file://"+j);var C={Target:j};return y&&(C.guid=y),I&&(C.time=I),s&&(C.Tooltip=s),C}function fl(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 dl(e,r){var t=fl(e);return t[3]=0,t}function Ar(e){var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(2);return{r,c:t,ixfe:a}}function rd(e){var r=e.read_shift(2),t=e.read_shift(2);return e.l+=8,{type:r,flags:t}}function id(e,r,t){return r===0?"":li(e,r,t)}function ad(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 ul(e){var r=e.read_shift(2),t=As(e);return[r,t]}function sd(e,r,t){e.l+=4,r-=4;var a=e.l+r,i=ra(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 Fa(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 pl(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 nd=pl;function gl(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 od(e){var r={};return e.l+=4,e.l+=16,r.fSharedNote=e.read_shift(2),e.l+=4,r}function ld(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 cd={0:Pt,4:Pt,5:Pt,6:Pt,7:ld,8:Pt,9:Pt,10:Pt,11:Pt,12:Pt,13:od,14:Pt,15:Pt,16:Pt,17:Pt,18:Pt,19:Pt,20:Pt,21:gl};function hd(e,r){for(var t=e.l+r,a=[];e.l<t;){var i=e.read_shift(2);e.l-=2;try{a.push(cd[i](e,t-e.l))}catch{return e.l=t,a}}return e.l!=t&&(e.l=t),a}function da(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 fd(e,r){return r===0||e.read_shift(2),1200}function dd(e,r,t){if(t.enc)return e.l+=r,"";var a=e.l,i=li(e,0,t);return e.read_shift(r+a-e.l),i}function ud(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 pd(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=ra(e,0,t);return o.length===0&&(o="Sheet1"),{pos:a,hs:i,dt:s,name:o}}function gd(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(q0(e));return s.Count=a,s.Unique=i,s}function xd(e,r){var t={};return t.dsst=e.read_shift(2),e.l+=r-2,t}function md(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 vd(e){var r=rd(e);if(r.type!=2211)throw new Error("Invalid Future Record "+r.type);var t=e.read_shift(4);return t!==0}function yd(e){return e.read_shift(2),e.read_shift(4)}function Dn(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 Td(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 kd(e,r,t){if(t&&t.biff>=2&&t.biff<5)return{};var a=e.read_shift(2);return{RTL:a&64}}function bd(){}function _d(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=ra(e,0,t),a}function wd(e){var r=Ar(e);return r.isst=e.read_shift(4),r}function Sd(e,r,t){t.biffguess&&t.biff==2&&(t.biff=5);var a=e.l+r,i=Ar(e);t.biff==2&&e.l++;var s=ia(e,a-e.l,t);return i.val=s,i}function Ad(e,r,t){var a=e.read_shift(2),i=li(e,0,t);return[a,i]}var Ed=li;function On(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 Cd(e){var r=e.read_shift(2),t=e.read_shift(2),a=ul(e);return{r,c:t,ixfe:a[0],rknum:a[1]}}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(ul(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 Dd(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 Od(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=C0[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 Pd(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=Od(e,r,a.fStyle,t),a}function Fd(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 Pn(e,r,t){var a=Ar(e);(t.biff==2||r==9)&&++e.l;var i=K0(e);return a.val=i,a.t=i===!0||i===!1?"b":"e",a}function Ld(e,r,t){t.biffguess&&t.biff==2&&(t.biff=5);var a=Ar(e),i=It(e);return a.val=i,a}var Fn=id;function Id(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=ei(e,s),c=[];a>e.l;)c.push(ia(e));return[s,i,o,c]}function Ln(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=sd(e,r-2,t)),s.body=i||e.read_shift(r-2),typeof i=="string"&&(s.Name=i),s}var Rd=["_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 In(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=ei(e,o,t);i&32&&(w=Rd[w.charCodeAt(0)]);var y=a-e.l;t&&t.biff==2&&--y;var I=a==e.l||c===0||!(y>0)?[]:mx(e,y,t,c);return{chKey:s,Name:w,itab:u,rgce:I}}function xl(e,r,t){if(t.biff<8)return Bd(e,r,t);for(var a=[],i=e.l+r,s=e.read_shift(t.biff>8?4:2);s--!==0;)a.push(ad(e,t.biff>8?12:6,t));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return a}function Bd(e,r,t){e[e.l+1]==3&&e[e.l]++;var a=ra(e,r,t);return a.charCodeAt(0)==3?a.slice(1):a}function Nd(e,r,t){if(t.biff<8){e.l+=r;return}var a=e.read_shift(2),i=e.read_shift(2),s=ei(e,a,t),o=ei(e,i,t);return[s,o]}function jd(e,r,t){var a=pl(e);e.l++;var i=e.read_shift(1);return r-=8,[vx(e,r,t),i,a]}function Rn(e,r,t){var a=nd(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,gx(e,r,t)]}function Ud(e){var r=e.read_shift(4)!==0,t=e.read_shift(4)!==0,a=e.read_shift(4);return[r,t,a]}function Hd(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=li(e,0,t);return t.biff<8&&e.read_shift(1),[{r:a,c:i},c,o,s]}}function Wd(e,r,t){return Hd(e,r,t)}function zd(e,r){for(var t=[],a=e.read_shift(2);a--;)t.push(Fa(e));return t}function Gd(e,r,t){if(t&&t.biff<8)return Vd(e,r,t);var a=gl(e),i=hd(e,r-22,a[1]);return{cmo:a,ft:i}}var Xd={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 Vd(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((Xd[a]||Nt)(e,r,t)),{cmo:[i,a,s],ft:o}}function Yd(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=Z0(e,6,t);var c=e.read_shift(2);e.read_shift(2),vt(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],I=ei(e,e.lens[w+1]-e.lens[w]-1);if(i+=I,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 $d(e,r){var t=Fa(e);e.l+=16;var a=td(e,r-24);return[t,a]}function Kd(e,r){e.read_shift(2);var t=Fa(e),a=e.read_shift((r-10)/2,"dbcs-cont");return a=a.replace($t,""),[t,a]}function qd(e){var r=[0,0],t;return t=e.read_shift(2),r[0]=Sn[t]||t,t=e.read_shift(2),r[1]=Sn[t]||t,r}function Zd(e){for(var r=e.read_shift(2),t=[];r-- >0;)t.push(dl(e));return t}function Jd(e){for(var r=e.read_shift(2),t=[];r-- >0;)t.push(dl(e));return t}function Qd(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 ml(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 eu(e,r){var t={};return r<32||(e.l+=16,t.header=It(e),t.footer=It(e),e.l+=2),t}function tu(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 ru=Ar,iu=hl,au=ia;function su(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 nu(e,r,t){t.biffguess&&t.biff==5&&(t.biff=2);var a=Ar(e);++e.l;var i=li(e,r-7,t);return a.t="str",a.val=i,a}function ou(e){var r=Ar(e);++e.l;var t=It(e);return r.t="n",r.val=t,r}function lu(e){var r=Ar(e);++e.l;var t=e.read_shift(2);return r.t="n",r.val=t,r}function cu(e){var r=e.read_shift(1);return r===0?(e.l++,""):e.read_shift(r,"sbcs-cont")}function hu(e,r){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=r-13}function fu(e,r,t){var a=e.l+r,i=Ar(e),s=e.read_shift(2),o=ei(e,s,t);return e.l=a,i.t="str",i.val=o,i}var du=[2,3,48,49,131,139,140,245],Bn=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=ms({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=Wr(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 I=y.read_shift(1),j=!!(I&136),C=!1,p=!1;switch(I){case 2:break;case 3:break;case 48:C=!0,j=!0;break;case 49:C=!0,j=!0;break;case 131:break;case 139:break;case 140:p=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+I.toString(16))}var x=0,O=521;I==2&&(x=y.read_shift(2)),y.l+=3,I!=2&&(x=y.read_shift(4)),x>1048576&&(x=1e6),I!=2&&(O=y.read_shift(2));var S=y.read_shift(2),_=u.codepage||1252;I!=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 N=[],M={},b=Math.min(y.length,I==2?521:O-10-(C?264:0)),F=p?32:11;y.l<b&&y[y.l]!=13;)switch(M={},M.name=Br.utils.decode(_,y.slice(y.l,y.l+F)).replace(/[\u0000\r\n].*$/g,""),y.l+=F,M.type=String.fromCharCode(y.read_shift(1)),I!=2&&!p&&(M.offset=y.read_shift(4)),M.len=y.read_shift(1),I==2&&(M.offset=y.read_shift(2)),M.dec=y.read_shift(1),M.name.length&&N.push(M),I!=2&&(y.l+=p?13:14),M.type){case"B":(!C||M.len!=8)&&u.WTF&&console.log("Skipping "+M.name+":"+M.type);break;case"G":case"P":u.WTF&&console.log("Skipping "+M.name+":"+M.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: "+M.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,L=0;for(w[0]=[],L=0;L!=N.length;++L)w[0][L]=N[L].name;for(;x-- >0;){if(y[y.l]===42){y.l+=S;continue}for(++y.l,w[++P]=[],L=0,L=0;L!=N.length;++L){var m=y.slice(y.l,y.l+N[L].len);y.l+=N[L].len,Ct(m,0);var B=Br.utils.decode(_,m);switch(N[L].type){case"C":B.trim().length&&(w[P][L]=B.replace(/\s+$/,""));break;case"D":B.length===8?w[P][L]=new Date(+B.slice(0,4),+B.slice(4,6)-1,+B.slice(6,8)):w[P][L]=B;break;case"F":w[P][L]=parseFloat(B.trim());break;case"+":case"I":w[P][L]=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][L]=!0;break;case"N":case"F":w[P][L]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+B+"|")}break;case"M":if(!j)throw new Error("DBF Unexpected MEMO for type "+I.toString(16));w[P][L]="##MEMO##"+(p?parseInt(B.trim(),10):m.read_shift(4));break;case"N":B=B.replace(/\u0000/g,"").trim(),B&&B!="."&&(w[P][L]=+B||0);break;case"@":w[P][L]=new Date(m.read_shift(-8,"f")-621356832e5);break;case"T":w[P][L]=new Date((m.read_shift(4)-2440588)*864e5+m.read_shift(4));break;case"Y":w[P][L]=m.read_shift(4,"i")/1e4+m.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":w[P][L]=-m.read_shift(-8,"f");break;case"B":if(C&&N[L].len==8){w[P][L]=m.read_shift(8,"f");break}case"G":case"P":m.l+=N[L].len;break;case"0":if(N[L].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+N[L].type)}}}if(I!=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=N,w}function a(c,u){var w=u||{};w.dateNF||(w.dateNF="yyyymmdd");var y=Ai(t(c,w),w);return y["!cols"]=w.DBF.map(function(I){return{wch:I.len,DBF:I}}),delete w.DBF,y}function i(c,u){try{return Xr(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=Za(),I=os(c,{header:1,raw:!0,cellDates:!0}),j=I[0],C=I.slice(1),p=c["!cols"]||[],x=0,O=0,S=0,_=1;for(x=0;x<j.length;++x){if(((p[x]||{}).DBF||{}).name){j[x]=p[x].DBF.name,++S;continue}if(j[x]!=null){if(++S,typeof j[x]=="number"&&(j[x]=j[x].toString(10)),typeof j[x]!="string")throw new Error("DBF Invalid column name "+j[x]+" |"+typeof j[x]+"|");if(j.indexOf(j[x])!==x){for(O=0;O<1024;++O)if(j.indexOf(j[x]+"_"+O)==-1){j[x]+="_"+O;break}}}}var N=ut(c["!ref"]),M=[],b=[],F=[];for(x=0;x<=N.e.c-N.s.c;++x){var P="",L="",m=0,B=[];for(O=0;O<C.length;++O)C[O][x]!=null&&B.push(C[O][x]);if(B.length==0||j[x]==null){M[x]="?";continue}for(O=0;O<B.length;++O){switch(typeof B[O]){case"number":L="B";break;case"string":L="C";break;case"boolean":L="L";break;case"object":L=B[O]instanceof Date?"D":"C";break;default:L="C"}m=Math.max(m,String(B[O]).length),P=P&&P!=L?"C":L}m>250&&(m=250),L=((p[x]||{}).DBF||{}).type,L=="C"&&p[x].DBF.len>m&&(m=p[x].DBF.len),P=="B"&&L=="N"&&(P="N",F[x]=p[x].DBF.dec,m=p[x].DBF.len),b[x]=P=="C"||L=="N"?m:s[P]||0,_+=b[x],M[x]=P}var T=y.next(32);for(T.write_shift(4,318902576),T.write_shift(4,C.length),T.write_shift(2,296+32*S),T.write_shift(2,_),x=0;x<4;++x)T.write_shift(4,0);for(T.write_shift(4,0|(+r[go]||3)<<8),x=0,O=0;x<j.length;++x)if(j[x]!=null){var A=y.next(32),g=(j[x].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);A.write_shift(1,g,"sbcs"),A.write_shift(1,M[x]=="?"?"C":M[x],"sbcs"),A.write_shift(4,O),A.write_shift(1,b[x]||s[M[x]]||0),A.write_shift(1,F[x]||0),A.write_shift(1,2),A.write_shift(4,0),A.write_shift(1,0),A.write_shift(4,0),A.write_shift(4,0),O+=b[x]||s[M[x]]||0}var h=y.next(264);for(h.write_shift(4,13),x=0;x<65;++x)h.write_shift(4,0);for(x=0;x<C.length;++x){var n=y.next(_);for(n.write_shift(1,0),O=0;O<j.length;++O)if(j[O]!=null)switch(M[O]){case"L":n.write_shift(1,C[x][O]==null?63:C[x][O]?84:70);break;case"B":n.write_shift(8,C[x][O]||0,"f");break;case"N":var l="0";for(typeof C[x][O]=="number"&&(l=C[x][O].toFixed(F[O]||0)),S=0;S<b[O]-l.length;++S)n.write_shift(1,32);n.write_shift(1,l,"sbcs");break;case"D":C[x][O]?(n.write_shift(4,("0000"+C[x][O].getFullYear()).slice(-4),"sbcs"),n.write_shift(2,("00"+(C[x][O].getMonth()+1)).slice(-2),"sbcs"),n.write_shift(2,("00"+C[x][O].getDate()).slice(-2),"sbcs")):n.write_shift(8,"00000000","sbcs");break;case"C":var f=String(C[x][O]!=null?C[x][O]:"").slice(0,b[O]);for(n.write_shift(1,f,"sbcs"),S=0;S<b[O]-f.length;++S)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}}(),uu=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("+wr(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(j,C){var p=e[C];return typeof p=="number"?Js(p):p},a=function(j,C,p){var x=C.charCodeAt(0)-32<<4|p.charCodeAt(0)-48;return x==59?j:Js(x)};e["|"]=254;function i(j,C){switch(C.type){case"base64":return s(ar(j),C);case"binary":return s(j,C);case"buffer":return s(Qe&&Buffer.isBuffer(j)?j.toString("binary"):ai(j),C);case"array":return s(Qr(j),C)}throw new Error("Unrecognized type "+C.type)}function s(j,C){var p=j.split(/[\n\r]+/),x=-1,O=-1,S=0,_=0,N=[],M=[],b=null,F={},P=[],L=[],m=[],B=0,T;for(+C.codepage>=0&&vr(+C.codepage);S!==p.length;++S){B=0;var A=p[S].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(r,t),g=A.replace(/;;/g,"\0").split(";").map(function(W){return W.replace(/\u0000/g,";")}),h=g[0],n;if(A.length>0)switch(h){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":g[1].charAt(0)=="P"&&M.push(A.slice(3).replace(/;;/g,";"));break;case"C":var l=!1,f=!1,k=!1,v=!1,G=-1,U=-1;for(_=1;_<g.length;++_)switch(g[_].charAt(0)){case"A":break;case"X":O=parseInt(g[_].slice(1))-1,f=!0;break;case"Y":for(x=parseInt(g[_].slice(1))-1,f||(O=0),T=N.length;T<=x;++T)N[T]=[];break;case"K":n=g[_].slice(1),n.charAt(0)==='"'?n=n.slice(1,n.length-1):n==="TRUE"?n=!0:n==="FALSE"?n=!1:isNaN(Tr(n))?isNaN(yi(n).getDate())||(n=At(n)):(n=Tr(n),b!==null&&wi(b)&&(n=Pa(n))),l=!0;break;case"E":v=!0;var D=mi(g[_].slice(1),{r:x,c:O});N[x][O]=[N[x][O],D];break;case"S":k=!0,N[x][O]=[N[x][O],"S5S"];break;case"G":break;case"R":G=parseInt(g[_].slice(1))-1;break;case"C":U=parseInt(g[_].slice(1))-1;break;default:if(C&&C.WTF)throw new Error("SYLK bad record "+A)}if(l&&(N[x][O]&&N[x][O].length==2?N[x][O][0]=n:N[x][O]=n,b=null),k){if(v)throw new Error("SYLK shared formula cannot have own formula");var H=G>-1&&N[G][U];if(!H||!H[1])throw new Error("SYLK shared formula cannot find base");N[x][O][1]=El(H[1],{r:x-G,c:O-U})}break;case"F":var z=0;for(_=1;_<g.length;++_)switch(g[_].charAt(0)){case"X":O=parseInt(g[_].slice(1))-1,++z;break;case"Y":for(x=parseInt(g[_].slice(1))-1,T=N.length;T<=x;++T)N[T]=[];break;case"M":B=parseInt(g[_].slice(1))/20;break;case"F":break;case"G":break;case"P":b=M[parseInt(g[_].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(m=g[_].slice(1).split(" "),T=parseInt(m[0],10);T<=parseInt(m[1],10);++T)B=parseInt(m[2],10),L[T-1]=B===0?{hidden:!0}:{wch:B},Ti(L[T-1]);break;case"C":O=parseInt(g[_].slice(1))-1,L[O]||(L[O]={});break;case"R":x=parseInt(g[_].slice(1))-1,P[x]||(P[x]={}),B>0?(P[x].hpt=B,P[x].hpx=Zi(B)):B===0&&(P[x].hidden=!0);break;default:if(C&&C.WTF)throw new Error("SYLK bad record "+A)}z<1&&(b=null);break;default:if(C&&C.WTF)throw new Error("SYLK bad record "+A)}}return P.length>0&&(F["!rows"]=P),L.length>0&&(F["!cols"]=L),C&&C.sheetRows&&(N=N.slice(0,C.sheetRows)),[N,F]}function o(j,C){var p=i(j,C),x=p[0],O=p[1],S=Ai(x,C);return wr(O).forEach(function(_){S[_]=O[_]}),S}function c(j,C){return Xr(o(j,C),C)}function u(j,C,p,x){var O="C;Y"+(p+1)+";X"+(x+1)+";K";switch(j.t){case"n":O+=j.v||0,j.f&&!j.F&&(O+=";E"+Qp(j.f,{r:p,c:x}));break;case"b":O+=j.v?"TRUE":"FALSE";break;case"e":O+=j.w||j.v;break;case"d":O+='"'+(j.w||j.v)+'"';break;case"s":O+='"'+j.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return O}function w(j,C){C.forEach(function(p,x){var O="F;W"+(x+1)+" "+(x+1)+" ";p.hidden?O+="0":(typeof p.width=="number"&&!p.wpx&&(p.wpx=wa(p.width)),typeof p.wpx=="number"&&!p.wch&&(p.wch=Sa(p.wpx)),typeof p.wch=="number"&&(O+=Math.round(p.wch))),O.charAt(O.length-1)!=" "&&j.push(O)})}function y(j,C){C.forEach(function(p,x){var O="F;";p.hidden?O+="M0;":p.hpt?O+="M"+20*p.hpt+";":p.hpx&&(O+="M"+20*wl(p.hpx)+";"),O.length>2&&j.push(O+"R"+(x+1))})}function I(j,C){var p=["ID;PWXL;N;E"],x=[],O=ut(j["!ref"]),S,_=Array.isArray(j),N=`\r
- `;p.push("P;PGeneral"),p.push("F;P0;DG0G8;M255"),j["!cols"]&&w(p,j["!cols"]),j["!rows"]&&y(p,j["!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 M=O.s.r;M<=O.e.r;++M)for(var b=O.s.c;b<=O.e.c;++b){var F=Ye({r:M,c:b});S=_?(j[M]||[])[b]:j[F],!(!S||S.v==null&&(!S.f||S.F))&&x.push(u(S,j,M,b))}return p.join(N)+N+x.join(N)+N+"E"+N}return{to_workbook:c,to_sheet:o,from_sheet:I}}(),pu=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"):ai(s),o);case"array":return r(Qr(s),o)}throw new Error("Unrecognized type "+o.type)}function r(s,o){for(var c=s.split(`
- `),u=-1,w=-1,y=0,I=[];y!==c.length;++y){if(c[y].trim()==="BOT"){I[++u]=[],w=0;continue}if(!(u<0)){var j=c[y].trim().split(","),C=j[0],p=j[1];++y;for(var x=c[y]||"";(x.match(/["]/g)||[]).length&1&&y<c.length-1;)x+=`
- `+c[++y];switch(x=x.trim(),+C){case-1:if(x==="BOT"){I[++u]=[],w=0;continue}else if(x!=="EOD")throw new Error("Unrecognized DIF special command "+x);break;case 0:x==="TRUE"?I[u][w]=!0:x==="FALSE"?I[u][w]=!1:isNaN(Tr(p))?isNaN(yi(p).getDate())?I[u][w]=p:I[u][w]=At(p):I[u][w]=Tr(p),++w;break;case 1:x=x.slice(1,x.length-1),x=x.replace(/""/g,'"'),x&&x.match(/^=".*"$/)&&(x=x.slice(2,-1)),I[u][w++]=x!==""?x:null;break}if(x==="EOD")break}}return o&&o.sheetRows&&(I=I.slice(0,o.sheetRows)),I}function t(s,o){return Ai(e(s,o),o)}function a(s,o){return Xr(t(s,o),o)}var i=function(){var s=function(u,w,y,I,j){u.push(w),u.push(y+","+I),u.push('"'+j.replace(/"/g,'""')+'"')},o=function(u,w,y,I){u.push(w+","+y),u.push(w==1?'"'+I.replace(/"/g,'""')+'"':I)};return function(u){var w=[],y=ut(u["!ref"]),I,j=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 C=y.s.r;C<=y.e.r;++C){o(w,-1,0,"BOT");for(var p=y.s.c;p<=y.e.c;++p){var x=Ye({r:C,c:p});if(I=j?(u[C]||[])[p]:u[x],!I){o(w,1,0,"");continue}switch(I.t){case"n":var O=I.w;!O&&I.v!=null&&(O=I.v),O==null?I.f&&!I.F?o(w,1,0,"="+I.f):o(w,1,0,""):o(w,0,O,"V");break;case"b":o(w,0,I.v?1:0,I.v?"TRUE":"FALSE");break;case"s":o(w,1,0,isNaN(I.v)?I.v:'="'+I.v+'"');break;case"d":I.w||(I.w=dr(I.z||Ke[14],Kt(At(I.v)))),o(w,0,I.w,"V");break;default:o(w,1,0,"")}}}o(w,-1,0,"EOD");var S=`\r
- `,_=w.join(S);return _}}();return{to_workbook:a,to_sheet:t,from_sheet:i}}(),gu=function(){function e(I){return I.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
- `)}function r(I){return I.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(I,j){for(var C=I.split(`
- `),p=-1,x=-1,O=0,S=[];O!==C.length;++O){var _=C[O].trim().split(":");if(_[0]==="cell"){var N=Yt(_[1]);if(S.length<=N.r)for(p=S.length;p<=N.r;++p)S[p]||(S[p]=[]);switch(p=N.r,x=N.c,_[2]){case"t":S[p][x]=e(_[3]);break;case"v":S[p][x]=+_[3];break;case"vtf":var M=_[_.length-1];case"vtc":switch(_[3]){case"nl":S[p][x]=!!+_[4];break;default:S[p][x]=+_[4];break}_[2]=="vtf"&&(S[p][x]=[S[p][x],M])}}}return j&&j.sheetRows&&(S=S.slice(0,j.sheetRows)),S}function a(I,j){return Ai(t(I,j),j)}function i(I,j){return Xr(a(I,j),j)}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(I){if(!I||!I["!ref"])return"";for(var j=[],C=[],p,x="",O=Si(I["!ref"]),S=Array.isArray(I),_=O.s.r;_<=O.e.r;++_)for(var N=O.s.c;N<=O.e.c;++N)if(x=Ye({r:_,c:N}),p=S?(I[_]||[])[N]:I[x],!(!p||p.v==null||p.t==="z")){switch(C=["cell",x,"t"],p.t){case"s":case"str":C.push(r(p.v));break;case"n":p.f?(C[2]="vtf",C[3]="n",C[4]=p.v,C[5]=r(p.f)):(C[2]="v",C[3]=p.v);break;case"b":C[2]="vt"+(p.f?"f":"c"),C[3]="nl",C[4]=p.v?"1":"0",C[5]=r(p.f||(p.v?"TRUE":"FALSE"));break;case"d":var M=Kt(At(p.v));C[2]="vtc",C[3]="nd",C[4]=""+M,C[5]=p.w||dr(p.z||Ke[14],M);break;case"e":continue}j.push(C.join(":"))}return j.push("sheet:c:"+(O.e.c-O.s.c+1)+":r:"+(O.e.r-O.s.r+1)+":tvf:1"),j.push("valueformat:1:text-wiki"),j.join(`
- `)}function y(I){return[s,o,c,o,w(I),u].join(`
- `)}return{to_workbook:i,to_sheet:a,from_sheet:y}}(),Ki=function(){function e(y,I,j,C,p){p.raw?I[j][C]=y:y===""||(y==="TRUE"?I[j][C]=!0:y==="FALSE"?I[j][C]=!1:isNaN(Tr(y))?isNaN(yi(y).getDate())?I[j][C]=y:I[j][C]=At(y):I[j][C]=Tr(y))}function r(y,I){var j=I||{},C=[];if(!y||y.length===0)return C;for(var p=y.split(/[\r\n]/),x=p.length-1;x>=0&&p[x].length===0;)--x;for(var O=10,S=0,_=0;_<=x;++_)S=p[_].indexOf(" "),S==-1?S=p[_].length:S++,O=Math.max(O,S);for(_=0;_<=x;++_){C[_]=[];var N=0;for(e(p[_].slice(0,O).trim(),C,_,N,j),N=1;N<=(p[_].length-O)/10+1;++N)e(p[_].slice(O+(N-1)*10,O+N*10).trim(),C,_,N,j)}return j.sheetRows&&(C=C.slice(0,j.sheetRows)),C}var t={44:",",9:" ",59:";",124:"|"},a={44:3,9:2,59:1,124:0};function i(y){for(var I={},j=!1,C=0,p=0;C<y.length;++C)(p=y.charCodeAt(C))==34?j=!j:!j&&p in t&&(I[p]=(I[p]||0)+1);p=[];for(C in I)Object.prototype.hasOwnProperty.call(I,C)&&p.push([I[C],C]);if(!p.length){I=a;for(C in I)Object.prototype.hasOwnProperty.call(I,C)&&p.push([I[C],C])}return p.sort(function(x,O){return x[0]-O[0]||a[x[1]]-a[O[1]]}),t[p.pop()[1]]||44}function s(y,I){var j=I||{},C="",p=j.dense?[]:{},x={s:{c:0,r:0},e:{c:0,r:0}};y.slice(0,4)=="sep="?y.charCodeAt(5)==13&&y.charCodeAt(6)==10?(C=y.charAt(4),y=y.slice(7)):y.charCodeAt(5)==13||y.charCodeAt(5)==10?(C=y.charAt(4),y=y.slice(6)):C=i(y.slice(0,1024)):j&&j.FS?C=j.FS:C=i(y.slice(0,1024));var O=0,S=0,_=0,N=0,M=0,b=C.charCodeAt(0),F=!1,P=0,L=y.charCodeAt(0);y=y.replace(/\r\n/mg,`
- `);var m=j.dateNF!=null?Ef(j.dateNF):null;function B(){var T=y.slice(N,M),A={};if(T.charAt(0)=='"'&&T.charAt(T.length-1)=='"'&&(T=T.slice(1,-1).replace(/""/g,'"')),T.length===0)A.t="z";else if(j.raw)A.t="s",A.v=T;else if(T.trim().length===0)A.t="s",A.v=T;else if(T.charCodeAt(0)==61)T.charCodeAt(1)==34&&T.charCodeAt(T.length-1)==34?(A.t="s",A.v=T.slice(2,-1).replace(/""/g,'"')):tg(T)?(A.t="n",A.f=T.slice(1)):(A.t="s",A.v=T);else if(T=="TRUE")A.t="b",A.v=!0;else if(T=="FALSE")A.t="b",A.v=!1;else if(!isNaN(_=Tr(T)))A.t="n",j.cellText!==!1&&(A.w=T),A.v=_;else if(!isNaN(yi(T).getDate())||m&&T.match(m)){A.z=j.dateNF||Ke[14];var g=0;m&&T.match(m)&&(T=Cf(T,j.dateNF,T.match(m)||[]),g=1),j.cellDates?(A.t="d",A.v=At(T,g)):(A.t="n",A.v=Kt(At(T,g))),j.cellText!==!1&&(A.w=dr(A.z,A.v instanceof Date?Kt(A.v):A.v)),j.cellNF||delete A.z}else A.t="s",A.v=T;if(A.t=="z"||(j.dense?(p[O]||(p[O]=[]),p[O][S]=A):p[Ye({c:S,r:O})]=A),N=M+1,L=y.charCodeAt(N),x.e.c<S&&(x.e.c=S),x.e.r<O&&(x.e.r=O),P==b)++S;else if(S=0,++O,j.sheetRows&&j.sheetRows<=O)return!0}e:for(;M<y.length;++M)switch(P=y.charCodeAt(M)){case 34:L===34&&(F=!F);break;case b:case 10:case 13:if(!F&&B())break e;break}return M-N>0&&B(),p["!ref"]=tt(x),p}function o(y,I){return!(I&&I.PRN)||I.FS||y.slice(0,4)=="sep="||y.indexOf(" ")>=0||y.indexOf(",")>=0||y.indexOf(";")>=0?s(y,I):Ai(r(y,I),I)}function c(y,I){var j="",C=I.type=="string"?[0,0,0,0]:Rs(y,I);switch(I.type){case"base64":j=ar(y);break;case"binary":j=y;break;case"buffer":I.codepage==65001?j=y.toString("utf8"):I.codepage&&typeof Br<"u"?j=Br.utils.decode(I.codepage,y):j=Qe&&Buffer.isBuffer(y)?y.toString("binary"):ai(y);break;case"array":j=Qr(y);break;case"string":j=y;break;default:throw new Error("Unrecognized type "+I.type)}return C[0]==239&&C[1]==187&&C[2]==191?j=nt(j.slice(3)):I.type!="string"&&I.type!="buffer"&&I.codepage==65001?j=nt(j):I.type=="binary"&&typeof Br<"u"&&I.codepage&&(j=Br.utils.decode(I.codepage,Br.utils.encode(28591,j))),j.slice(0,19)=="socialcalc:version:"?gu.to_sheet(I.type=="string"?j:nt(j),I):o(j,I)}function u(y,I){return Xr(c(y,I),I)}function w(y){for(var I=[],j=ut(y["!ref"]),C,p=Array.isArray(y),x=j.s.r;x<=j.e.r;++x){for(var O=[],S=j.s.c;S<=j.e.c;++S){var _=Ye({r:x,c:S});if(C=p?(y[x]||[])[S]:y[_],!C||C.v==null){O.push(" ");continue}for(var N=(C.w||(Or(C),C.w)||"").slice(0,10);N.length<10;)N+=" ";O.push(N+(S===0?" ":""))}I.push(O.join(""))}return I.join(`
- `)}return{to_workbook:u,to_sheet:c,from_sheet:w}}();function xu(e,r){var t=r||{},a=!!t.WTF;t.WTF=!0;try{var i=uu.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 Ki.to_workbook(e,r)}}var Ui=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],Z=D.read_shift(2),J=D.l+Z,Y=R.f&&R.f(D,Z,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="",Z=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,oe,ce){switch(ce){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:ce==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=Pa(K[1].v))),z.qpro&&K[3]>Z&&(W["!ref"]=tt(E),J[d]=W,Y.push(d),W=z.dense?[]:{},E={s:{r:0,c:0},e:{r:0,c:0}},Z=K[3],d=R||"Sheet"+(Z+1),R="");var ne=z.dense?(W[K[0].r]||[])[K[0].c]:W[Ye(K[0])];if(ne){ne.t=K[1].t,ne.v=K[1].v,K[1].z!=null&&(ne.z=K[1].z),K[1].f!=null&&(ne.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,oe,ce){switch(ce){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]>Z&&(W["!ref"]=tt(E),J[d]=W,Y.push(d),W=z.dense?[]:{},E={s:{r:0,c:0},e:{r:0,c:0}},Z=K[3],d="Sheet"+(Z+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]==Z&&(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=[],ie=0;ie<ee.length;++ie)J[Y[ie]]?(Q.push(ee[ie]||Y[ie]),X[ee[ie]]=J[ee[ie]]||J[Y[ie]]):(Q.push(ee[ie]),X[ee[ie]]={"!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=Za(),d=ut(D["!ref"]),R=Array.isArray(D),Z=[];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&&(Z[E]=kt(E));var V=Z[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,C(Y,E,X.v)):xr(W,14,x(Y,E,X.v));else{var Q=Or(X);xr(W,15,I(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=Za();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 Z=0;for(d=0;d<D.SheetNames.length;++d){var J=D.Sheets[D.SheetNames[d]];if(!(!J||!J["!ref"])){for(var Y=ut(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),ie=Y.s.c;ie<=Y.e.c;++ie){X===Y.s.r&&(E[ie]=kt(ie));var K=E[ie]+Q,oe=ee?(J[X]||[])[ie]:J[K];if(!(!oe||oe.t=="z"))if(oe.t=="n")xr(W,23,B(X,ie,Z,oe.v));else{var ce=Or(oe);xr(W,22,P(X,ie,Z,ce.slice(0,239)))}}++Z}}return xr(W,1),W.end()}function s(D){var H=yt(2);return H.write_shift(2,D),H}function o(D){var H=yt(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 Z=D.SheetNames[R],J=D.Sheets[Z];if(!(!J||!J["!ref"])){++d;var Y=Si(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=yt(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 I(D,H,z){var W=yt(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 j(D,H,z){var W=w(D,H,z);return W[1].v=D.read_shift(2,"i"),W}function C(D,H,z){var W=yt(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 x(D,H,z){var W=yt(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);M(D.slice(D.l,D.l+R),d),D.l+=R}return d}function S(D,H,z){var W=H&32768;return H&=-32769,H=(W?D:0)+(H>=8192?H-16384:H),(W?"":"$")+(z?kt(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]},N=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function M(D,H){Ct(D,0);for(var z=[],W=0,d="",R="",Z="",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=S(H[0].c,D.read_shift(2),!0),d=S(H[0].r,D.read_shift(2),!1),z.push(R+d);break;case 2:{var ee=S(H[0].c,D.read_shift(2),!0),E=S(H[0].r,D.read_shift(2),!1);R=S(H[0].c,D.read_shift(2),!0),d=S(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(),Z=z.pop(),z.push(["AND","OR"][Y-20]+"("+Z+","+J+")");break;default:if(Y<32&&N[Y])J=z.pop(),Z=z.pop(),z.push(Z+N[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 b(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=b(D);return z[1].t="s",z[1].v=D.read_shift(H-4,"cstr"),z}function P(D,H,z,W){var d=yt(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 Z=W.charCodeAt(R);d.write_shift(1,Z>=128?95:Z)}return d.write_shift(1,0),d}function L(D,H){var z=b(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=b(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 Z=R&32768;return R=(R&32767)-16446,z[1].v=(1-Z*2)*(d*Math.pow(2,R+32)+W*Math.pow(2,R)),z}function B(D,H,z,W){var d=yt(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,Z=0,J=0,Y=0;return W<0&&(R=1,W=-W),Z=Math.log2(W)|0,W/=Math.pow(2,Z-31),Y=W>>>0,Y&2147483648||(W/=2,++Z,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),Z+=16383+(R?32768:0),d.write_shift(2,Z),d}function T(D,H){var z=m(D);return D.l+=H-14,z}function A(D,H){var z=b(D),W=D.read_shift(4);return z[1].v=W>>6,z}function g(D,H){var z=b(D),W=D.read_shift(8,"f");return z[1].v=W,z}function h(D,H){var z=g(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 k(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=yt(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:vt},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:j},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:L},25:{n:"FORMULA19",f:T},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:k},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:A},38:{n:"??"},39:{n:"NUMBER27",f:g},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 mu(e){var r={},t=e.match(jt),a=0,i=!1;if(t)for(;a!=t.length;++a){var s=Ve(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=ds[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 vu=function(){var e=Yi("t"),r=Yi("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=mu(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})}}(),yu=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("")}}(),Tu=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,ku=/<(?:\w+:)?r>/,bu=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Ms(e,r){var t=r?r.cellHTML:!0,a={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(a.t=rt(nt(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),a.r=nt(e),t&&(a.h=ys(a.t))):e.match(ku)&&(a.r=nt(e),a.t=rt(nt((e.replace(bu,"").match(Tu)||[]).join("").replace(jt,""))),t&&(a.h=yu(vu(a.r)))),a):{t:""}}var _u=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,wu=/<(?:\w+:)?(?:si|sstItem)>/g,Su=/<\/(?:\w+:)?(?:si|sstItem)>/;function Au(e,r){var t=[],a="";if(!e)return t;var i=e.match(_u);if(i){a=i[2].replace(wu,"").split(Su);for(var s=0;s!=a.length;++s){var o=Ms(a[s].trim(),r);o!=null&&(t[t.length]=o)}i=Ve(i[1]),t.Count=i.count,t.Unique=i.uniqueCount}return t}function Eu(e){return[e.read_shift(4),e.read_shift(4)]}function Cu(e,r){var t=[],a=!1;return Pr(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 vl(e){for(var r=[],t=e.split(""),a=0;a<t.length;++a)r[a]=t[a].charCodeAt(0);return r}function Dr(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 Mu(e){var r={};return r.id=e.read_shift(0,"lpp4"),r.R=Dr(e,4),r.U=Dr(e,4),r.W=Dr(e,4),r}function Du(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 Ou(e){var r=[];e.l+=4;for(var t=e.read_shift(4);t-- >0;)r.push(Du(e));return r}function Pu(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 Fu(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=Dr(e,4),r.U=Dr(e,4),r.W=Dr(e,4),r}function Lu(e){var r=Fu(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 yl(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 Tl(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 Iu(e){var r=Dr(e);switch(r.Minor){case 2:return[r.Minor,Ru(e)];case 3:return[r.Minor,Bu()];case 4:return[r.Minor,Nu(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+r.Minor)}function Ru(e){var r=e.read_shift(4);if((r&63)!=36)throw new Error("EncryptionInfo mismatch");var t=e.read_shift(4),a=yl(e,t),i=Tl(e,e.length-e.l);return{t:"Std",h:a,v:i}}function Bu(){throw new Error("File is password-protected: ECMA-376 Extensible")}function Nu(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=Ve(s);switch(Sr(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 ju(e,r){var t={},a=t.EncryptionVersionInfo=Dr(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=yl(e,i),r-=i,t.EncryptionVerifier=Tl(e,r),t}function Uu(e){var r={},t=r.EncryptionVersionInfo=Dr(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 Hu(e){var r=0,t,a=vl(e),i=a.length+1,s,o,c,u,w;for(t=Wr(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 kl=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],I=0;I!=7;++I)y&64&&(c^=t[u]),y*=2,--u;return c};return function(o){for(var c=vl(o),u=s(c),w=c.length,y=Wr(16),I=0;I!=16;++I)y[I]=0;var j,C,p;for((w&1)===1&&(j=u>>8,y[w]=i(e[0],j),--w,j=u&255,C=c[c.length-1],y[w]=i(C,j));w>0;)--w,j=u>>8,y[w]=i(c[w],j),--w,j=u&255,y[w]=i(c[w],j);for(w=15,p=15-c.length;p>0;)j=u>>8,y[w]=i(e[p],j),--w,--p,j=u&255,y[w]=i(c[w],j),--w,--p;return y}}(),Wu=function(e,r,t,a,i){i||(i=r),a||(a=kl(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]},zu=function(e){var r=0,t=kl(e);return function(a){var i=Wu("",a,r,t);return r=i[1],i[0]}};function Gu(e,r,t,a){var i={key:vt(e),verificationBytes:vt(e)};return t.password&&(i.verifier=Hu(t.password)),a.valid=i.verificationBytes===i.verifier,a.valid&&(a.insitu=zu(t.password)),i}function Xu(e,r,t){var a=t||{};return a.Info=e.read_shift(2),e.l-=2,a.Info===1?a.Data=Uu(e):a.Data=ju(e,r),a}function Vu(e,r,t){var a={Type:t.biff>=8?e.read_shift(2):0};return a.Type?Xu(e,r-2,a):Gu(e,t.biff>=8?r:r-2,t,a),a}var Yu=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"):ai(i),s);case"array":return r(Qr(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,I){Array.isArray(c)&&(c[I]=[]);for(var j=/\\\w+\b/g,C=0,p,x=-1;p=j.exec(y);){switch(p[0]){case"\\cell":var O=y.slice(C,j.lastIndex-p[0].length);if(O[0]==" "&&(O=O.slice(1)),++x,O.length){var S={v:O,t:"s"};Array.isArray(c)?c[I][x]=S:c[Ye({r:I,c:x})]=S}break}C=j.lastIndex}x>w.e.c&&(w.e.c=x)}),c["!ref"]=tt(w),c}function t(i,s){return Xr(e(i,s),s)}function a(i){for(var s=["{\\rtf1\\ansi"],o=ut(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 I=Ye({r:w,c:y});c=u?(i[w]||[])[y]:i[I],!(!c||c.v==null&&(!c.f||c.F))&&(s.push(" "+(c.w||(Or(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 $u(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 qi(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 Ku(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 qu(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 _a(e,r){if(r===0)return e;var t=Ku($u(e));return r<0?t[2]=t[2]*(1+r):t[2]=1-(1-t[2])*(1-r),qi(qu(t))}var bl=6,Zu=15,Ju=1,Gt=bl;function wa(e){return Math.floor((e+Math.round(128/Gt)/256)*Gt)}function Sa(e){return Math.floor((e-5)/Gt*100+.5)/100}function ts(e){return Math.round((e*Gt+5)/Gt*256)/256}function Xa(e){return ts(Sa(wa(e)))}function Ds(e){var r=Math.abs(e-Xa(e)),t=Gt;if(r>.005)for(Gt=Ju;Gt<Zu;++Gt)Math.abs(e-Xa(e))<=r&&(r=Math.abs(e-Xa(e)),t=Gt);Gt=t}function Ti(e){e.width?(e.wpx=wa(e.width),e.wch=Sa(e.wpx),e.MDW=Gt):e.wpx?(e.wch=Sa(e.wpx),e.width=ts(e.wch),e.MDW=Gt):typeof e.wch=="number"&&(e.width=ts(e.wch),e.wpx=wa(e.width),e.MDW=Gt),e.customWidth&&delete e.customWidth}var Qu=96,_l=Qu;function wl(e){return e*96/_l}function Zi(e){return e*_l/96}var ep={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 tp(e,r,t,a){r.Borders=[];var i={},s=!1;(e[0].match(jt)||[]).forEach(function(o){var c=Ve(o);switch(Sr(c[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":i={},c.diagonalUp&&(i.diagonalUp=ot(c.diagonalUp)),c.diagonalDown&&(i.diagonalDown=ot(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 rp(e,r,t,a){r.Fills=[];var i={},s=!1;(e[0].match(jt)||[]).forEach(function(o){var c=Ve(o);switch(Sr(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 ip(e,r,t,a){r.Fonts=[];var i={},s=!1;(e[0].match(jt)||[]).forEach(function(o){var c=Ve(o);switch(Sr(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=nt(c.val));break;case"<name/>":case"</name>":break;case"<b":i.bold=c.val?ot(c.val):1;break;case"<b/>":i.bold=1;break;case"<i":i.italic=c.val?ot(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?ot(c.val):1;break;case"<strike/>":i.strike=1;break;case"<outline":i.outline=c.val?ot(c.val):1;break;case"<outline/>":i.outline=1;break;case"<shadow":i.shadow=c.val?ot(c.val):1;break;case"<shadow/>":i.shadow=1;break;case"<condense":i.condense=c.val?ot(c.val):1;break;case"<condense/>":i.condense=1;break;case"<extend":i.extend=c.val?ot(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=ds[parseInt(c.val,10)];break;case"<color":if(i.color||(i.color={}),c.auto&&(i.color.auto=ot(c.auto)),c.rgb)i.color.rgb=c.rgb.slice(-6);else if(c.indexed){i.color.index=parseInt(c.indexed,10);var u=Zr[i.color.index];i.color.index==81&&(u=Zr[1]),u||(u=Zr[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=_a(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 ap(e,r,t){r.NumberFmt=[];for(var a=wr(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=Ve(s[i]);switch(Sr(o[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var c=rt(nt(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}qr(c,u)}}break;case"</numFmt>":break;default:if(t.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}var ua=["numFmtId","fillId","fontId","borderId","xfId"],pa=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function sp(e,r,t){r.CellXf=[];var a,i=!1;(e[0].match(jt)||[]).forEach(function(s){var o=Ve(s),c=0;switch(Sr(o[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(a=o,delete a[0],c=0;c<ua.length;++c)a[ua[c]]&&(a[ua[c]]=parseInt(a[ua[c]],10));for(c=0;c<pa.length;++c)a[pa[c]]&&(a[pa[c]]=ot(a[pa[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=ot(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 np=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 I;return(I=c.match(r))&&ap(I,y,w),(I=c.match(i))&&ip(I,y,u,w),(I=c.match(a))&&rp(I,y,u,w),(I=c.match(s))&&tp(I,y,u,w),(I=c.match(t))&&sp(I,y,w),y}}();function op(e,r){var t=e.read_shift(2),a=Bt(e);return[t,a]}function lp(e,r,t){var a={};a.sz=e.read_shift(2)/20;var i=v0(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=m0(e),e.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor";break}return a.name=Bt(e),a}var cp=Nt;function hp(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 fp=Nt;function dp(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 Pr(e,function(u,w,y){switch(y){case 44:a.NumberFmt[u[0]]=u[1],qr(u[1],u[0]);break;case 43:a.Fonts.push(u),u.color.theme!=null&&r&&r.themeElements&&r.themeElements.clrScheme&&(u.color.rgb=_a(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 up=["</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 pp(e,r,t){r.themeElements.clrScheme=[];var a={};(e[0].match(jt)||[]).forEach(function(i){var s=Ve(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[up.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 gp(){}function xp(){}var mp=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,vp=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,yp=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function Tp(e,r,t){r.themeElements={};var a;[["clrScheme",mp,pp],["fontScheme",vp,gp],["fmtScheme",yp,xp]].forEach(function(i){if(!(a=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](a,r,t)})}var kp=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function Sl(e,r){(!e||e.length===0)&&(e=bp());var t,a={};if(!(t=e.match(kp)))throw new Error("themeElements not found in theme");return Tp(t[0],a,r),a.raw=e,a}function bp(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var t=[Ro];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="MS Pゴシック"/>',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="MS Pゴシック"/>',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 _p(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=Io(s,{type:"array"})}catch{return}var c=ir(o,"theme/theme/theme1.xml",!0);if(c)return Sl(c,t)}}function wp(e){return e.read_shift(4)}function Sp(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=Ap(e,4);break;case 2:r.xclrValue=fl(e);break;case 3:r.xclrValue=wp(e);break;case 4:e.l+=4;break}return e.l+=8,r}function Ap(e,r){return Nt(e,r)}function Ep(e,r){return Nt(e,r)}function Cp(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]=Sp(e);break;case 6:a[1]=Ep(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 Mp(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(Cp(e,t-e.l));return{ixfe:a,ext:s}}function Dp(e,r){r.forEach(function(t){switch(t[0]){}})}function Op(e,r){return{flags:e.read_shift(4),version:e.read_shift(4),name:Bt(e)}}function Pp(e){for(var r=[],t=e.read_shift(4);t-- >0;)r.push([e.read_shift(4),e.read_shift(4)]);return r}function Fp(e){return e.l+=4,e.read_shift(4)!=0}function Lp(e,r,t){var a={Types:[],Cell:[],Value:[]},i=t||{},s=[],o=!1,c=2;return Pr(e,function(u,w,y){switch(y){case 335:a.Types.push({name:u.name});break;case 51:u.forEach(function(I){c==1?a.Cell.push({type:a.Types[I[0]-1].name,index:I[1]}):c==0&&a.Value.push({type:a.Types[I[0]-1].name,index:I[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 Ip(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=Ve(c);switch(Sr(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 Rp(e){var r=[];if(!e)return r;var t=1;return(e.match(jt)||[]).forEach(function(a){var i=Ve(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 Bp(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 Np(e,r,t){var a=[];return Pr(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 jp(e,r,t,a){if(!e)return e;var i=a||{},s=!1;Pr(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 Up(e,r){if(!e)return"??";var t=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return r["!id"][t].Target}function Nn(e,r,t,a){var i=Array.isArray(e),s;r.forEach(function(o){var c=Yt(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=ut(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 I=s.c.length-1;I>=0;--I){if(!t&&s.c[I].T)return;t&&!s.c[I].T&&s.c.splice(I,1)}if(t&&a){for(I=0;I<a.length;++I)if(y.a==a[I].id){y.a=a[I].name||y.a;break}}s.c.push(y)})}function Hp(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=Ve(c[0]),w={author:u.authorId&&t[u.authorId]||"sheetjsghost",ref:u.ref,guid:u.guid},y=Yt(u.ref);if(!(r.sheetRows&&r.sheetRows<=y.r)){var I=o.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),j=!!I&&!!I[1]&&Ms(I[1])||{r:"",t:"",h:""};w.r=j.r,j.r=="<t></t>"&&(j.t=j.h=""),w.t=(j.t||"").replace(/\r\n/g,`
- `).replace(/\r/g,`
- `),r.cellHTML&&(w.h=j.h),a.push(w)}}}}),a}function Wp(e,r){var t=[],a=!1,i={},s=0;return e.replace(jt,function(c,u){var w=Ve(c);switch(Sr(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 zp(e,r){var t=[],a=!1;return e.replace(jt,function(s){var o=Ve(s);switch(Sr(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 Gp(e){var r={};r.iauthor=e.read_shift(4);var t=ni(e);return r.rfx=t.s,r.ref=Ye(t.s),e.l+=16,r}var Xp=Bt;function Vp(e,r){var t=[],a=[],i={},s=!1;return Pr(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 Yp="application/vnd.ms-office.vbaProject";function $p(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 Kp(){return{"!type":"dialog"}}function qp(){return{"!type":"dialog"}}function Zp(){return{"!type":"macro"}}function Jp(){return{"!type":"macro"}}var mi=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?"":"$")+kt(y)+(u?"":"$")+Dt(w)}return function(i,s){return r=s,i.replace(e,t)}}(),Al=/(^|[^._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,Qp=function(){return function(r,t){return r.replace(Al,function(a,i,s,o,c,u){var w=_s(o)-(s?0:t.c),y=bs(u)-(c?0:t.r),I=y==0?"":c?y+1:"["+y+"]",j=w==0?"":s?w+1:"["+w+"]";return i+"R"+I+"C"+j})}}();function El(e,r){return e.replace(Al,function(t,a,i,s,o,c){return a+(i=="$"?i+s:kt(_s(s)+r.c))+(o=="$"?o+c:Dt(bs(c)+r.r))})}function eg(e,r,t){var a=Si(r),i=a.s,s=Yt(t),o={r:s.r-i.r,c:s.c-i.c};return El(e,o)}function tg(e){return e.length!=1}function jn(e){return e.replace(/_xlfn\./g,"")}function xt(e){e.l+=1}function zr(e,r){var t=e.read_shift(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function Cl(e,r,t){var a=2;if(t){if(t.biff>=2&&t.biff<=5)return Ml(e);t.biff==12&&(a=4)}var i=e.read_shift(a),s=e.read_shift(a),o=zr(e,2),c=zr(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 Ml(e){var r=zr(e,2),t=zr(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 rg(e,r,t){if(t.biff<8)return Ml(e);var a=e.read_shift(t.biff==12?4:2),i=e.read_shift(t.biff==12?4:2),s=zr(e,2),o=zr(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 Dl(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return ig(e);var a=e.read_shift(t&&t.biff==12?4:2),i=zr(e,2);return{r:a,c:i[0],cRel:i[1],rRel:i[2]}}function ig(e){var r=zr(e,2),t=e.read_shift(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function ag(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 sg(e,r,t){var a=t&&t.biff?t.biff:8;if(a>=2&&a<=5)return ng(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 ng(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 og(e,r,t){var a=(e[e.l++]&96)>>5,i=Cl(e,t.biff>=2&&t.biff<=5?6:8,t);return[a,i]}function lg(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=Cl(e,s,t);return[a,i,o]}function cg(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 hg(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 fg(e,r,t){var a=(e[e.l++]&96)>>5,i=rg(e,r-1,t);return[a,i]}function dg(e,r,t){var a=(e[e.l++]&96)>>5;return e.l+=t.biff==2?6:t.biff==12?14:7,[a]}function Un(e){var r=e[e.l+1]&1,t=1;return e.l+=4,[r,t]}function ug(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 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,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 xg(e){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(2)]}function mg(e,r,t){var a=e[e.l+1]&255?1:0;return e.l+=t&&t.biff==2?3:4,[a]}function Ol(e){var r=e.read_shift(1),t=e.read_shift(1);return[r,t]}function vg(e){return e.read_shift(2),Ol(e)}function yg(e){return e.read_shift(2),Ol(e)}function Tg(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var i=Dl(e,0,t);return[a,i]}function kg(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var i=sg(e,0,t);return[a,i]}function bg(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=Dl(e,0,t);return[a,i,s]}function _g(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[wx[i],Ll[i],a]}function wg(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)]:Sg(e);return[i,(s[0]===0?Ll:_x)[s[1]]]}function Sg(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function Ag(e,r,t){e.l+=t&&t.biff==2?3:4}function Eg(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 Cg(e){return e.l++,oi[e.read_shift(1)]}function Mg(e){return e.l++,e.read_shift(2)}function Dg(e){return e.l++,e.read_shift(1)!==0}function Og(e){return e.l++,It(e)}function Pg(e,r,t){return e.l++,ra(e,r-1,t)}function Fg(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]=pt(e,1)?"TRUE":"FALSE",r!=12&&(e.l+=7);break;case 37:case 16:t[1]=oi[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]=li(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function Lg(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?ni:Fa)(e));return i}function Ig(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]=Fg(e,t.biff);return o}function Rg(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 Bg(e,r,t){if(t.biff==5)return Ng(e);var a=e.read_shift(1)>>>5&3,i=e.read_shift(2),s=e.read_shift(4);return[a,i,s]}function Ng(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 jg(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 Ug(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 Hg(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 Wg(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 zg=Nt,Gg=Nt,Xg=Nt;function aa(e,r,t){return e.l+=2,[ag(e)]}function Os(e){return e.l+=6,[]}var Vg=aa,Yg=Os,$g=Os,Kg=aa;function Pl(e){return e.l+=2,[vt(e),e.read_shift(2)&1]}var qg=aa,Zg=Pl,Jg=Os,Qg=aa,ex=aa,tx=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function rx(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=tx[t>>2&31];return{ixti:r,coltype:t&3,rt:o,idx:a,c:i,C:s}}function ix(e){return e.l+=2,[e.read_shift(4)]}function ax(e,r,t){return e.l+=5,e.l+=2,e.l+=t.biff==2?1:4,["PTGSHEET"]}function sx(e,r,t){return e.l+=t.biff==2?4:5,["PTGENDSHEET"]}function nx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function ox(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function lx(e){return e.l+=4,[0,0]}var Hn={1:{n:"PtgExp",f:Eg},2:{n:"PtgTbl",f:Xg},3:{n:"PtgAdd",f:xt},4:{n:"PtgSub",f:xt},5:{n:"PtgMul",f:xt},6:{n:"PtgDiv",f:xt},7:{n:"PtgPower",f:xt},8:{n:"PtgConcat",f:xt},9:{n:"PtgLt",f:xt},10:{n:"PtgLe",f:xt},11:{n:"PtgEq",f:xt},12:{n:"PtgGe",f:xt},13:{n:"PtgGt",f:xt},14:{n:"PtgNe",f:xt},15:{n:"PtgIsect",f:xt},16:{n:"PtgUnion",f:xt},17:{n:"PtgRange",f:xt},18:{n:"PtgUplus",f:xt},19:{n:"PtgUminus",f:xt},20:{n:"PtgPercent",f:xt},21:{n:"PtgParen",f:xt},22:{n:"PtgMissArg",f:xt},23:{n:"PtgStr",f:Pg},26:{n:"PtgSheet",f:ax},27:{n:"PtgEndSheet",f:sx},28:{n:"PtgErr",f:Cg},29:{n:"PtgBool",f:Dg},30:{n:"PtgInt",f:Mg},31:{n:"PtgNum",f:Og},32:{n:"PtgArray",f:dg},33:{n:"PtgFunc",f:_g},34:{n:"PtgFuncVar",f:wg},35:{n:"PtgName",f:Rg},36:{n:"PtgRef",f:Tg},37:{n:"PtgArea",f:og},38:{n:"PtgMemArea",f:jg},39:{n:"PtgMemErr",f:zg},40:{n:"PtgMemNoMem",f:Gg},41:{n:"PtgMemFunc",f:Ug},42:{n:"PtgRefErr",f:Hg},43:{n:"PtgAreaErr",f:cg},44:{n:"PtgRefN",f:kg},45:{n:"PtgAreaN",f:fg},46:{n:"PtgMemAreaN",f:nx},47:{n:"PtgMemNoMemN",f:ox},57:{n:"PtgNameX",f:Bg},58:{n:"PtgRef3d",f:bg},59:{n:"PtgArea3d",f:lg},60:{n:"PtgRefErr3d",f:Wg},61:{n:"PtgAreaErr3d",f:hg},255:{}},cx={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},hx={1:{n:"PtgElfLel",f:Pl},2:{n:"PtgElfRw",f:Qg},3:{n:"PtgElfCol",f:Vg},6:{n:"PtgElfRwV",f:ex},7:{n:"PtgElfColV",f:Kg},10:{n:"PtgElfRadical",f:qg},11:{n:"PtgElfRadicalS",f:Jg},13:{n:"PtgElfColS",f:Yg},15:{n:"PtgElfColSV",f:$g},16:{n:"PtgElfRadicalLel",f:Zg},25:{n:"PtgList",f:rx},29:{n:"PtgSxName",f:ix},255:{}},fx={0:{n:"PtgAttrNoop",f:lx},1:{n:"PtgAttrSemi",f:mg},2:{n:"PtgAttrIf",f:gg},4:{n:"PtgAttrChoose",f:ug},8:{n:"PtgAttrGoto",f:pg},16:{n:"PtgAttrSum",f:Ag},32:{n:"PtgAttrBaxcel",f:Un},33:{n:"PtgAttrBaxcel",f:Un},64:{n:"PtgAttrSpace",f:vg},65:{n:"PtgAttrSpaceSemi",f:yg},128:{n:"PtgAttrIfError",f:xg},255:{}};function sa(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]=Ig(e,0,a),s.push(t[o][1]);break;case"PtgMemArea":t[o][2]=Lg(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 na(e,r,t){for(var a=e.l+r,i,s,o=[];a!=e.l;)r=a-e.l,s=e[e.l],i=Hn[s]||Hn[cx[s]],(s===24||s===25)&&(i=(s===24?hx:fx)[e[e.l+1]]),!i||!i.f?Nt(e,r):o.push([i.n,i.f(e,r,t)]);return o}function dx(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 ux={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function px(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 Fl(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 Wn(e,r,t){var a=Fl(e,r,t);return a=="#REF"?a:px(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,I=0,j=0,C,p="";if(!e[0]||!e[0][0])return"";for(var x=-1,O="",S=0,_=e[0].length;S<_;++S){var N=e[0][S];switch(N[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(),x>=0){switch(e[0][x][1][0]){case 0:O=ft(" ",e[0][x][1][1]);break;case 1:O=ft("\r",e[0][x][1][1]);break;default:if(O="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][x][1][0])}w=w+O,x=-1}c.push(w+ux[N[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=Ri(N[1][1],o,i),c.push(Bi(y,s));break;case"PtgRefN":y=t?Ri(N[1][1],t,i):N[1][1],c.push(Bi(y,s));break;case"PtgRef3d":I=N[1][1],y=Ri(N[1][2],o,i),p=Wn(a,I,i),c.push(p+"!"+Bi(y,s));break;case"PtgFunc":case"PtgFuncVar":var M=N[1][0],b=N[1][1];M||(M=0),M&=127;var F=M==0?[]:c.slice(-M);c.length-=M,b==="User"&&(b=F.shift()),c.push(b+"("+F.join(",")+")");break;case"PtgBool":c.push(N[1]?"TRUE":"FALSE");break;case"PtgInt":c.push(N[1]);break;case"PtgNum":c.push(String(N[1]));break;case"PtgStr":c.push('"'+N[1].replace(/"/g,'""')+'"');break;case"PtgErr":c.push(N[1]);break;case"PtgAreaN":C=bn(N[1][1],t?{s:t}:o,i),c.push(za(C,i));break;case"PtgArea":C=bn(N[1][1],o,i),c.push(za(C,i));break;case"PtgArea3d":I=N[1][1],C=N[1][2],p=Wn(a,I,i),c.push(p+"!"+za(C,i));break;case"PtgAttrSum":c.push("SUM("+c.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":j=N[1][2];var P=(a.names||[])[j-1]||(a[0]||[])[j],L=P?P.Name:"SH33TJSNAME"+String(j);L&&L.slice(0,6)=="_xlfn."&&!i.xlfn&&(L=L.slice(6)),c.push(L);break;case"PtgNameX":var m=N[1][1];j=N[1][2];var B;if(i.biff<=5)m<0&&(m=-m),a[m]&&(B=a[m][j]);else{var T="";if(((a[m]||[])[0]||[])[0]==14849||(((a[m]||[])[0]||[])[0]==1025?a[m][j]&&a[m][j].itab>0&&(T=a.SheetNames[a[m][j].itab-1]+"!"):T=a.SheetNames[j-1]+"!"),a[m]&&a[m][j])T+=a[m][j].Name;else if(a[0]&&a[0][j])T+=a[0][j].Name;else{var A=(Fl(a,m,i)||"").split(";;");A[j-1]?T=A[j-1]:T+="SH33TJSERRX"}c.push(T);break}B||(B={Name:"SH33TJSERRY"}),c.push(B.Name);break;case"PtgParen":var g="(",h=")";if(x>=0){switch(O="",e[0][x][1][0]){case 2:g=ft(" ",e[0][x][1][1])+g;break;case 3:g=ft("\r",e[0][x][1][1])+g;break;case 4:h=ft(" ",e[0][x][1][1])+h;break;case 5:h=ft("\r",e[0][x][1][1])+h;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][x][1][0])}x=-1}c.push(g+c.pop()+h);break;case"PtgRefErr":c.push("#REF!");break;case"PtgRefErr3d":c.push("#REF!");break;case"PtgExp":y={c:N[1][1],r:N[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(N[1])}break;case"PtgArray":c.push("{"+dx(N[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":x=S;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"+N[1].idx+"[#"+N[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(N));default:throw new Error("Unrecognized Formula Token: "+String(N))}var k=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&x>=0&&k.indexOf(e[0][S][0])==-1){N=e[0][x];var v=!0;switch(N[1][0]){case 4:v=!1;case 0:O=ft(" ",N[1][1]);break;case 5:v=!1;case 1:O=ft("\r",N[1][1]);break;default:if(O="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+N[1][0])}c.push((v?O:"")+c.pop()+(v?"":O)),x=-1}}if(c.length>1&&i.WTF)throw new Error("bad formula stack");return c[0]}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=na(e,o,t);return r!==o+i&&(s=sa(e,r-o-i,c,t)),e.l=a,[c,s]}function xx(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=na(e,o,t);return r!==o+i&&(s=sa(e,r-o-i,c,t)),e.l=a,[c,s]}function mx(e,r,t,a){var i=e.l+r,s=na(e,a,t),o;return i!==e.l&&(o=sa(e,i-e.l,s,t)),[s,o]}function vx(e,r,t){var a=e.l+r,i,s=e.read_shift(2),o=na(e,s,t);return s==65535?[[],Nt(e,r-2)]:(r!==s+2&&(i=sa(e,a-s-2,o,t)),[o,i])}function yx(e){var r;if(Cr(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 Va(e,r,t){var a=e.l+r,i=Ar(e);t.biff==2&&++e.l;var s=yx(e),o=e.read_shift(1);t.biff!=2&&(e.read_shift(1),t.biff>=5&&e.read_shift(4));var c=xx(e,a-e.l,t);return{cell:i,val:s[0],formula:c,shared:o>>3&1,tt:s[1]}}function La(e,r,t){var a=e.read_shift(4),i=na(e,a,t),s=e.read_shift(4),o=s>0?sa(e,s,i,t):null;return[i,o]}var Tx=La,Ia=La,kx=La,bx=La,_x={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"},Ll={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"},wx={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 zn(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 Ya(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 Hi={},vi={};function Wi(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 Il(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=At(e.v)),(!a||a.cellText!==!1)&&e.t!=="z")try{if(Ke[r]==null&&qr(Af[r]||"General",r),e.t==="e")e.w=e.w||oi[e.v];else if(r===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Vi(e.v);else if(e.t==="d"){var o=Kt(e.v);(o|0)===o?e.w=o.toString(10):e.w=Vi(o)}else{if(e.v===void 0)return"";e.w=Jr(e.v,vi)}else e.t==="d"?e.w=dr(r,Kt(e.v),vi):e.w=dr(r,e.v,vi)}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=_a(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=_a(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 Sx(e,r){var t=ut(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 Ax=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,Ex=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Cx=/<(?:\w:)?hyperlink [^>]*>/mg,Mx=/"(\w*:\w*)"/,Dx=/<(?:\w:)?col\b[^>]*[\/]?>/g,Ox=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,Px=/<(?:\w:)?pageMargins[^>]*\/>/g,Rl=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Fx=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Lx=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Ix(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="",I=e.match(Ex);I?(w=e.slice(0,I.index),y=e.slice(I.index+I[0].length)):w=y=e;var j=w.match(Rl);j?Ps(j[0],c,i,t):(j=w.match(Fx))&&Rx(j[0],j[1]||"",c,i,t);var C=(w.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(C>0){var p=w.slice(C,C+50).match(Mx);p&&Sx(c,p[1])}var x=w.match(Lx);x&&x[1]&&Wx(x[1],i);var O=[];if(r.cellStyles){var S=w.match(Dx);S&&jx(O,S)}I&&zx(I[1],c,r,u,s,o);var _=y.match(Ox);_&&(c["!autofilter"]=Ux(_[0]));var N=[],M=y.match(Ax);if(M)for(C=0;C!=M.length;++C)N[C]=ut(M[C].slice(M[C].indexOf('"')+1));var b=y.match(Cx);b&&Bx(c,b,a);var F=y.match(Px);if(F&&(c["!margins"]=Nx(Ve(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=ut(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),N.length>0&&(c["!merges"]=N),c}function Ps(e,r,t,a){var i=Ve(e);t.Sheets[a]||(t.Sheets[a]={}),i.codeName&&(t.Sheets[a].CodeName=rt(nt(i.codeName)))}function Rx(e,r,t,a,i){Ps(e.slice(0,e.indexOf(">")),t,a,i)}function Bx(e,r,t){for(var a=Array.isArray(e),i=0;i!=r.length;++i){var s=Ve(nt(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=ut(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 Nx(e){var r={};return["left","right","top","bottom","header","footer"].forEach(function(t){e[t]&&(r[t]=parseFloat(e[t]))}),r}function jx(e,r){for(var t=!1,a=0;a!=r.length;++a){var i=Ve(r[a],!0);i.hidden&&(i.hidden=ot(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,Ds(i.width)),Ti(i);s<=o;)e[s++]=Mt(i)}}function Ux(e){var r={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return r}var Hx=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function Wx(e,r){r.Views||(r.Views=[{}]),(e.match(Hx)||[]).forEach(function(t,a){var i=Ve(t);r.Views[a]||(r.Views[a]={}),+i.zoomScale&&(r.Views[a].zoom=+i.zoomScale),ot(i.rightToLeft)&&(r.Views[a].RTL=!0)})}var zx=function(){var e=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/,t=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,s=Yi("v"),o=Yi("f");return function(u,w,y,I,j,C){for(var p=0,x="",O=[],S=[],_=0,N=0,M=0,b="",F,P,L=0,m=0,B,T,A=0,g=0,h=Array.isArray(C.CellXf),n,l=[],f=[],k=Array.isArray(w),v=[],G={},U=!1,D=!!y.sheetStubs,H=u.split(r),z=0,W=H.length;z!=W;++z){x=H[z].trim();var d=x.length;if(d!==0){var R=0;e:for(p=0;p<d;++p)switch(x[p]){case">":if(x[p-1]!="/"){++p;break e}if(y&&y.cellStyles){if(P=Ve(x.slice(R,p),!0),L=P.r!=null?parseInt(P.r,10):L+1,m=-1,y.sheetRows&&y.sheetRows<L)continue;G={},U=!1,P.ht&&(U=!0,G.hpt=parseFloat(P.ht),G.hpx=Zi(G.hpt)),P.hidden=="1"&&(U=!0,G.hidden=!0),P.outlineLevel!=null&&(U=!0,G.level=+P.outlineLevel),U&&(v[L-1]=G)}break;case"<":R=p;break}if(R>=p)break;if(P=Ve(x.slice(R,p),!0),L=P.r!=null?parseInt(P.r,10):L+1,m=-1,!(y.sheetRows&&y.sheetRows<L)){I.s.r>L-1&&(I.s.r=L-1),I.e.r<L-1&&(I.e.r=L-1),y&&y.cellStyles&&(G={},U=!1,P.ht&&(U=!0,G.hpt=parseFloat(P.ht),G.hpx=Zi(G.hpt)),P.hidden=="1"&&(U=!0,G.hidden=!0),P.outlineLevel!=null&&(U=!0,G.level=+P.outlineLevel),U&&(v[L-1]=G)),O=x.slice(p).split(e);for(var Z=0;Z!=O.length&&O[Z].trim().charAt(0)=="<";++Z);for(O=O.slice(Z),p=0;p!=O.length;++p)if(x=O[p].trim(),x.length!==0){if(S=x.match(t),_=p,N=0,M=0,x="<c "+(x.slice(0,1)=="<"?">":"")+x,S!=null&&S.length===2){for(_=0,b=S[1],N=0;N!=b.length&&!((M=b.charCodeAt(N)-64)<1||M>26);++N)_=26*_+M;--_,m=_}else++m;for(N=0;N!=x.length&&x.charCodeAt(N)!==62;++N);if(++N,P=Ve(x.slice(0,N),!0),P.r||(P.r=Ye({r:L-1,c:m})),b=x.slice(N),F={t:""},(S=b.match(s))!=null&&S[1]!==""&&(F.v=rt(S[1])),y.cellFormula){if((S=b.match(o))!=null&&S[1]!==""){if(F.f=rt(nt(S[1])).replace(/\r\n/g,`
- `),y.xlfn||(F.f=jn(F.f)),S[0].indexOf('t="array"')>-1)F.F=(b.match(i)||[])[1],F.F.indexOf(":")>-1&&l.push([ut(F.F),F.F]);else if(S[0].indexOf('t="shared"')>-1){T=Ve(S[0]);var J=rt(nt(S[1]));y.xlfn||(J=jn(J)),f[parseInt(T.si,10)]=[T,J,P.r]}}else(S=b.match(/<f[^>]*\/>/))&&(T=Ve(S[0]),f[T.si]&&(F.f=eg(f[T.si][1],f[T.si][2],P.r)));var Y=Yt(P.r);for(N=0;N<l.length;++N)Y.r>=l[N][0].s.r&&Y.r<=l[N][0].e.r&&Y.c>=l[N][0].s.c&&Y.c<=l[N][0].e.c&&(F.F=l[N][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(I.s.c>m&&(I.s.c=m),I.e.c<m&&(I.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=Hi[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?nt(F.v):"",y.cellHTML&&(F.h=ys(F.v));break;case"inlineStr":S=b.match(a),F.t="s",S!=null&&(B=Ms(S[1]))?(F.v=B.t,y.cellHTML&&(F.h=B.h)):F.v="";break;case"b":F.v=ot(F.v);break;case"d":y.cellDates?F.v=At(F.v,1):(F.v=Kt(At(F.v,1)),F.t="n");break;case"e":(!y||y.cellText!==!1)&&(F.w=F.v),F.v=il[F.v];break}if(A=g=0,n=null,h&&P.s!==void 0&&(n=C.CellXf[P.s],n!=null&&(n.numFmtId!=null&&(A=n.numFmtId),y.cellStyles&&n.fillId!=null&&(g=n.fillId))),Il(F,A,g,y,j,C),y.cellDates&&h&&F.t=="n"&&wi(Ke[A])&&(F.t="d",F.v=Pa(F.v)),P.cm&&y.xlmeta){var ee=(y.xlmeta.Cell||[])[+P.cm-1];ee&&ee.type=="XLDAPR"&&(F.D=!0)}if(k){var E=Yt(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 Gx(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 Xx=ni;function Vx(){}function Yx(e,r){var t={},a=e[e.l];return++e.l,t.above=!(a&64),t.left=!(a&128),e.l+=18,t.name=g0(e),t}function $x(e){var r=pr(e);return[r]}function Kx(e){var r=si(e);return[r]}function qx(e){var r=pr(e),t=e.read_shift(1);return[r,t,"b"]}function Zx(e){var r=si(e),t=e.read_shift(1);return[r,t,"b"]}function Jx(e){var r=pr(e),t=e.read_shift(1);return[r,t,"e"]}function Qx(e){var r=si(e),t=e.read_shift(1);return[r,t,"e"]}function em(e){var r=pr(e),t=e.read_shift(4);return[r,t,"s"]}function tm(e){var r=si(e),t=e.read_shift(4);return[r,t,"s"]}function rm(e){var r=pr(e),t=It(e);return[r,t,"n"]}function Bl(e){var r=si(e),t=It(e);return[r,t,"n"]}function im(e){var r=pr(e),t=As(e);return[r,t,"n"]}function am(e){var r=si(e),t=As(e);return[r,t,"n"]}function sm(e){var r=pr(e),t=ws(e);return[r,t,"is"]}function nm(e){var r=pr(e),t=Bt(e);return[r,t,"str"]}function om(e){var r=si(e),t=Bt(e);return[r,t,"str"]}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,"b"];if(t.cellFormula){e.l+=2;var c=Ia(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=e.read_shift(1),o=[i,s,"e"];if(t.cellFormula){e.l+=2;var c=Ia(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=It(e),o=[i,s,"n"];if(t.cellFormula){e.l+=2;var c=Ia(e,a-e.l,t);o[3]=Lt(c,null,i,t.supbooks,t)}else e.l=a;return o}function fm(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=Ia(e,a-e.l,t);o[3]=Lt(c,null,i,t.supbooks,t)}else e.l=a;return o}var dm=ni;function um(e,r){var t=e.l+r,a=ni(e),i=Ss(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 pm(){}function gm(e,r,t){var a=e.l+r,i=el(e),s=e.read_shift(1),o=[i];if(o[2]=s,t.cellFormula){var c=Tx(e,a-e.l,t);o[1]=c}else e.l=a;return o}function xm(e,r,t){var a=e.l+r,i=ni(e),s=[i];if(t.cellFormula){var o=bx(e,a-e.l,t);s[1]=o,e.l=a}else e.l=a;return s}var mm=["left","right","top","bottom","header","footer"];function vm(e){var r={};return mm.forEach(function(t){r[t]=It(e)}),r}function ym(e){var r=e.read_shift(2);return e.l+=28,{RTL:r&32}}function Tm(){}function km(){}function bm(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}},I=!1,j=!1,C,p,x,O,S,_,N,M,b,F=[];c.biff=12,c["!row"]=0;var P=0,L=!1,m=[],B={},T=c.supbooks||i.supbooks||[[]];if(T.sharedf=B,T.arrayf=m,T.SheetNames=i.SheetNames||i.Sheets.map(function(k){return k.name}),!c.supbooks&&(c.supbooks=T,i.Names))for(var A=0;A<i.Names.length;++A)T[0][A+1]=i.Names[A];var g=[],h=[],n=!1;Aa[16]={n:"BrtShortReal",f:Bl};var l;if(Pr(e,function(v,G,U){if(!j)switch(U){case 148:w=v;break;case 0:C=v,c.sheetRows&&c.sheetRows<=C.r&&(j=!0),M=Dt(O=C.r),c["!row"]=C.r,(v.hidden||v.hpt||v.level!=null)&&(v.hpt&&(v.hpx=Zi(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":N=Hi[v[1]],p.v=N.t,p.r=N.r;break;case"b":p.v=!!v[1];break;case"e":p.v=v[1],c.cellText!==!1&&(p.w=oi[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((x=o.CellXf[v[0].iStyleRef])&&Il(p,x.numFmtId,null,c,s,o),S=v[0].c==-1?S+1:v[0].c,c.dense?(u[O]||(u[O]=[]),u[O][S]=p):u[kt(S)+M]=p,c.cellFormula){for(L=!1,P=0;P<m.length;++P){var D=m[P];C.r>=D[0].s.r&&C.r<=D[0].e.r&&S>=D[0].s.c&&S<=D[0].e.c&&(p.F=tt(D[0]),L=!0)}!L&&v.length>3&&(p.f=v[3])}if(y.s.r>C.r&&(y.s.r=C.r),y.s.c>S&&(y.s.c=S),y.e.r<C.r&&(y.e.r=C.r),y.e.c<S&&(y.e.c=S),c.cellDates&&x&&p.t=="n"&&wi(Ke[x.numFmtId])){var H=Kr(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||I)break;p={t:"z",v:void 0},S=v[0].c==-1?S+1:v[0].c,c.dense?(u[O]||(u[O]=[]),u[O][S]=p):u[kt(S)+M]=p,y.s.r>C.r&&(y.s.r=C.r),y.s.c>S&&(y.s.c=S),y.e.r<C.r&&(y.e.r=C.r),y.e.c<S&&(y.e.c=S),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(S=v.rfx.s.c;S<=v.rfx.e.c;++S)c.dense?(u[O]||(u[O]=[]),u[O][S]||(u[O][S]={t:"z",v:void 0}),u[O][S].l=v):(_=Ye({c:S,r:O}),u[_]||(u[_]={t:"z",v:void 0}),u[_].l=v);break;case 426:if(!c.cellFormula)break;m.push(v),b=c.dense?u[O][S]:u[kt(S)+M],b.f=Lt(v[1],y,{r:C.r,c:S},T,c),b.F=tt(v[0]);break;case 427:if(!c.cellFormula)break;B[Ye(v[0].s)]=v[1],b=c.dense?u[O][S]:u[kt(S)+M],b.f=Lt(v[1],y,{r:C.r,c:S},T,c);break;case 60:if(!c.cellStyles)break;for(;v.e>=v.s;)g[v.e--]={width:v.w/256,hidden:!!(v.flags&1),level:v.level},n||(n=!0,Ds(v.w/256)),Ti(g[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:I=!0;break;case 36:I=!1;break;case 37:I=!0;break;case 38:I=!1;break;default:if(!G.T){if(!I||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=ut(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),g.length>0&&(u["!cols"]=g),h.length>0&&(u["!rows"]=h),u}function _m(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 wm(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(I){var j=_m(I);y.s.r=y.s.c=0,y.e.c=c,w=kt(c),j[0].forEach(function(C,p){o[w+Dt(p)]={t:"n",v:C,z:j[1]},u=p}),y.e.r<u&&(y.e.r=u),++c}),c>0&&(o["!ref"]=tt(y)),o}function Sm(e,r,t,a,i){if(!e)return e;a||(a={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},o,c=e.match(Rl);return c&&Ps(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 Am(e,r){e.l+=10;var t=Bt(e);return{name:t}}function Em(e,r,t,a,i){if(!e)return e;a||(a={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},o=!1;return Pr(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 Nl=[["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"]],Cm=[["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"]],Mm=[],Dm=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Gn(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]]=ot(a[s[0]]));break;case"int":typeof a[s[0]]=="string"&&(a[s[0]]=parseInt(a[s[0]],10));break}}}function Xn(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]]=ot(e[a[0]]));break;case"int":typeof e[a[0]]=="string"&&(e[a[0]]=parseInt(e[a[0]],10));break}}}function jl(e){Xn(e.WBProps,Nl),Xn(e.CalcPr,Dm),Gn(e.WBView,Cm),Gn(e.Sheets,Mm),vi.date1904=ot(e.WBProps.date1904)}var Om="][*?/\\".split("");function Pm(e,r){if(e.length>31){if(r)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var t=!0;return Om.forEach(function(a){if(e.indexOf(a)!=-1){if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=!1}}),t}var Fm=/<\w+:workbook/;function Lm(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=Ve(u);switch(Sr(y[0])){case"<?xml":break;case"<workbook":u.match(Fm)&&(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/>":Nl.forEach(function(I){if(y[I[0]]!=null)switch(I[2]){case"bool":t.WBProps[I[0]]=ot(y[I[0]]);break;case"int":t.WBProps[I[0]]=parseInt(y[I[0]],10);break;default:t.WBProps[I[0]]=y[I[0]]}}),y.codeName&&(t.WBProps.CodeName=nt(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(nt(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=nt(y.name),y.comment&&(s.Comment=y.comment),y.localSheetId&&(s.Sheet=+y.localSheetId),ot(y.hidden||"0")&&(s.Hidden=!0),o=w+u.length;break;case"</definedName>":s.Ref=rt(nt(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}),Jf.indexOf(t.xmlns)===-1)throw new Error("Unknown Namespace: "+t.xmlns);return jl(t),t}function Im(e,r){var t={};return t.Hidden=e.read_shift(4),t.iTabID=e.read_shift(4),t.strRelID=Ja(e),t.name=Bt(e),t}function Rm(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 Bm(e,r){var t={};return e.read_shift(4),t.ArchID=e.read_shift(4),e.l+=r-8,t}function Nm(e,r,t){var a=e.l+r;e.l+=4,e.l+=1;var i=e.read_shift(4),s=x0(e),o=kx(e,0,t),c=Ss(e);e.l=a;var u={Name:s,Ptg:o};return i<268435455&&(u.Sheet=i),c&&(u.Comment=c),u}function jm(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=[],Aa[16]={n:"BrtFRTArchID$",f:Bm},Pr(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),jl(t),t.Names=s,t.supbooks=o,t}function Um(e,r,t){return r.slice(-4)===".bin"?jm(e,t):Lm(e,t)}function Hm(e,r,t,a,i,s,o,c){return r.slice(-4)===".bin"?bm(e,a,t,i,s,o,c):Ix(e,a,t,i,s,o,c)}function Wm(e,r,t,a,i,s,o,c){return r.slice(-4)===".bin"?Em(e,a,t,i,s):Sm(e,a,t,i,s)}function zm(e,r,t,a,i,s,o,c){return r.slice(-4)===".bin"?Zp():Jp()}function Gm(e,r,t,a,i,s,o,c){return r.slice(-4)===".bin"?Kp():qp()}function Xm(e,r,t,a){return r.slice(-4)===".bin"?dp(e,t,a):np(e,t,a)}function Vm(e,r,t){return Sl(e,t)}function Ym(e,r,t){return r.slice(-4)===".bin"?Cu(e,t):Au(e,t)}function $m(e,r,t){return r.slice(-4)===".bin"?Vp(e,t):Hp(e,t)}function Km(e,r,t){return r.slice(-4)===".bin"?Np(e):Rp(e)}function qm(e,r,t,a){return t.slice(-4)===".bin"?jp(e,r,t,a):void 0}function Zm(e,r,t){return r.slice(-4)===".bin"?Lp(e,r,t):Ip(e,r,t)}var Ul=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Hl=/([\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(Ul),s,o,c,u;if(i)for(u=0;u!=i.length;++u)s=i[u].match(Hl),(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 Jm(e){var r=e.split(/\s+/),t={};if(r.length===1)return t;var a=e.match(Ul),i,s,o,c;if(a)for(c=0;c!=a.length;++c)i=a[c].match(Hl),(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 zi;function Qm(e,r){var t=zi[e]||rt(e);return t==="General"?Jr(r):dr(t,r)}function e1(e,r,t,a){var i=a;switch((t[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=ot(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=At(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 t1(e,r,t){if(e.t!=="z"){if(!t||t.cellText!==!1)try{e.t==="e"?e.w=e.w||oi[e.v]:r==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Vi(e.v):e.w=Jr(e.v):e.w=Qm(r||"General",e.v)}catch(s){if(t.WTF)throw s}try{var a=zi[r]||r||"General";if(t.cellNF&&(e.z=a),t.cellDates&&e.t=="n"&&wi(a)){var i=Kr(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 r1(e,r,t){if(t.cellStyles&&r.Interior){var a=r.Interior;a.Pattern&&(a.patternType=ep[a.Pattern]||a.Pattern)}e[r.ID]=r}function i1(e,r,t,a,i,s,o,c,u,w){var y="General",I=a.StyleID,j={};w=w||{};var C=[],p=0;for(I===void 0&&c&&(I=c.StyleID),I===void 0&&o&&(I=o.StyleID);s[I]!==void 0&&(s[I].nf&&(y=s[I].nf),s[I].Interior&&C.push(s[I].Interior),!!s[I].Parent);)I=s[I].Parent;switch(t.Type){case"Boolean":a.t="b",a.v=ot(e);break;case"String":a.t="s",a.r=un(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=(At(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=il[e],w.cellText!==!1&&(a.w=e);break;default:e==""&&r==""?a.t="z":(a.t="s",a.v=un(r||e));break}if(t1(a,y,w),w.cellFormula!==!1)if(a.Formula){var x=rt(a.Formula);x.charCodeAt(0)==61&&(x=x.slice(1)),a.f=mi(x,i),delete a.Formula,a.ArrayRange=="RC"?a.F=mi("RC:RC",i):a.ArrayRange&&(a.F=mi(a.ArrayRange,i),u.push([ut(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&&(C.forEach(function(O){!j.patternType&&O.patternType&&(j.patternType=O.patternType)}),a.s=j),a.StyleID!==void 0&&(a.ixfe=a.StyleID)}function a1(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 $a(e,r){var t=r||{};Co();var a=Oi(Ts(e));(t.type=="binary"||t.type=="array"||t.type=="base64")&&(a=nt(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",Ki.to_workbook(a,o)}if(i.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(oe){i.indexOf("<"+oe)>=0&&(s=!0)}),s)return u1(a,t);zi={"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={},I=[],j=t.dense?[]:{},C="",p={},x={},O=gr('<Data ss:Type="String">'),S=0,_=0,N=0,M={s:{r:2e6,c:2e6},e:{r:0,c:0}},b={},F={},P="",L=0,m=[],B={},T={},A=0,g=[],h=[],n={},l=[],f,k=!1,v=[],G=[],U={},D=0,H=0,z={Sheets:[],WBProps:{date1904:!1}},W={};$i.lastIndex=0,a=a.replace(/<!--([\s\S]*?)-->/mg,"");for(var d="";c=$i.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]==="/"?i1(a.slice(S,c.index),P,O,u[u.length-1][0]=="comment"?n:p,{c:_,r:N},b,l[_],x,v,t):(P="",O=gr(c[0]),S=c.index+c[0].length);break;case"cell":if(c[1]==="/")if(h.length>0&&(p.c=h),(!t.sheetRows||t.sheetRows>N)&&p.v!==void 0&&(t.dense?(j[N]||(j[N]=[]),j[N][_]=p):j[kt(_)+Dt(N)]=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=N+(parseInt(p.MergeDown,10)|0),m.push({s:{c:_,r:N},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 Z=N;Z<=H;++Z)(R>_||Z>N)&&(t.dense?(j[Z]||(j[Z]=[]),j[Z][R]={t:"z"}):j[kt(R)+Dt(Z)]={t:"z"});_=D+1}else++_;else p=Jm(c[0]),p.Index&&(_=+p.Index-1),_<M.s.c&&(M.s.c=_),_>M.e.c&&(M.e.c=_),c[0].slice(-2)==="/>"&&++_,h=[];break;case"row":c[1]==="/"||c[0].slice(-2)==="/>"?(N<M.s.r&&(M.s.r=N),N>M.e.r&&(M.e.r=N),c[0].slice(-2)==="/>"&&(x=gr(c[0]),x.Index&&(N=+x.Index-1)),_=0,++N):(x=gr(c[0]),x.Index&&(N=+x.Index-1),U={},(x.AutoFitHeight=="0"||x.Height)&&(U.hpx=parseInt(x.Height,10),U.hpt=wl(U.hpx),G[N]=U),x.Hidden=="1"&&(U.hidden=!0,G[N]=U));break;case"worksheet":if(c[1]==="/"){if((w=u.pop())[0]!==c[3])throw new Error("Bad state: "+w.join("|"));I.push(C),M.s.r<=M.e.r&&M.s.c<=M.e.c&&(j["!ref"]=tt(M),t.sheetRows&&t.sheetRows<=M.e.r&&(j["!fullref"]=j["!ref"],M.e.r=t.sheetRows-1,j["!ref"]=tt(M))),m.length&&(j["!merges"]=m),l.length>0&&(j["!cols"]=l),G.length>0&&(j["!rows"]=G),y[C]=j}else M={s:{r:2e6,c:2e6},e:{r:0,c:0}},N=_=0,u.push([c[3],!1]),w=gr(c[0]),C=rt(w.Name),j=t.dense?[]:{},m=[],v=[],G=[],W={name:C,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=[],k=!1}break;case"style":c[1]==="/"?r1(b,F,t):F=gr(c[0]);break;case"numberformat":F.nf=rt(gr(c[0]).Format||"General"),zi[F.nf]&&(F.nf=zi[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){qr(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)),!k&&f.wpx>10){k=!0,Gt=bl;for(var Y=0;Y<l.length;++Y)l[Y]&&Ti(l[Y])}k&&Ti(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=Ve(c[0]),V={Name:E.Name,Ref:mi(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(L,c.index):L=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]==="/"?H0(B,d,a.slice(A,c.index)):A=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("|"));a1(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]);j["!autofilter"]={ref:mi(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 Zn(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(A,c.index)){case"SheetHidden":W.Hidden=1;break;case"SheetVeryHidden":W.Hidden=2;break}else A=c.index+c[0].length;break;case"header":j["!margins"]||Wi(j["!margins"]={},"xlml"),isNaN(+Ve(c[0]).Margin)||(j["!margins"].header=+Ve(c[0]).Margin);break;case"footer":j["!margins"]||Wi(j["!margins"]={},"xlml"),isNaN(+Ve(c[0]).Margin)||(j["!margins"].footer=+Ve(c[0]).Margin);break;case"pagemargins":var ie=Ve(c[0]);j["!margins"]||Wi(j["!margins"]={},"xlml"),isNaN(+ie.Top)||(j["!margins"].top=+ie.Top),isNaN(+ie.Left)||(j["!margins"].left=+ie.Left),isNaN(+ie.Right)||(j["!margins"].right=+ie.Right),isNaN(+ie.Bottom)||(j["!margins"].bottom=+ie.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":j["!outline"]||(j["!outline"]={}),j["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":j["!outline"]||(j["!outline"]={}),j["!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]==="/"?e1(T,d,g,a.slice(A,c.index)):(g=c,A=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=I,K.Workbook=z,K.SSF=Mt(Ke),K.Props=B,K.Custprops=T,K}function rs(e,r){switch(Is(r=r||{}),r.type||"base64"){case"base64":return $a(ar(e),r);case"binary":case"buffer":case"file":return $a(e,r);case"array":return $a(ai(e),r)}}function s1(e){var r={},t=e.content;if(t.l=28,r.AnsiUserType=t.read_shift(0,"lpstr-ansi"),r.AnsiClipboardFormat=y0(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=T0(t),a=t.read_shift(4),a==0||a>40))return r;t.l-=4,r.Reserved2=t.read_shift(0,"lpwstr")}var n1=[60,1084,2066,2165,2175];function o1(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=Cr(t,t.l),w=is[u],y=0;w!=null&&n1.indexOf(u)>-1;)s=Cr(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=is[u=Cr(t,t.l)];var I=Nr(o);Ct(I,0);var j=0;I.lens=[];for(var C=0;C<o.length;++C)I.lens.push(j),j+=o[C].length;if(I.length<a)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+I.length+" < "+a;return r.f(I,I.length,i)}function br(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||oi[e.v]:a===0||a=="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Vi(e.v):e.w=Jr(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"&&wi(Ke[a]||String(a))){var i=Kr(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 ga(e,r,t){return{v:e,ixfe:r,t}}function l1(e,r){var t={opts:{}},a={},i=r.dense?[]:{},s={},o={},c=null,u=[],w="",y={},I,j="",C,p,x,O,S={},_=[],N,M,b=[],F=[],P={Sheets:[],WBProps:{date1904:!1},Views:[{}]},L={},m=function(me){return me<8?Zr[me]:me<64&&F[me-8]||Zr[me]},B=function(me,_e,be){var Ce=_e.XF.data;if(!(!Ce||!Ce.patternType||!be||!be.cellStyles)){_e.s={},_e.s.patternType=Ce.patternType;var De;(De=qi(m(Ce.icvFore)))&&(_e.s.fgColor={rgb:De}),(De=qi(m(Ce.icvBack)))&&(_e.s.bgColor={rgb:De})}},T=function(me,_e,be){if(!(U>1)&&!(be.sheetRows&&me.r>=be.sheetRows)){if(be.cellStyles&&_e.XF&&_e.XF.data&&B(me,_e,be),delete _e.ixfe,delete _e.XF,I=me,j=Ye(me),(!o||!o.s||!o.e)&&(o={s:{r:0,c:0},e:{r:0,c:0}}),me.r<o.s.r&&(o.s.r=me.r),me.c<o.s.c&&(o.s.c=me.c),me.r+1>o.e.r&&(o.e.r=me.r+1),me.c+1>o.e.c&&(o.e.c=me.c+1),be.cellFormula&&_e.f){for(var Ce=0;Ce<_.length;++Ce)if(!(_[Ce][0].s.c>me.c||_[Ce][0].s.r>me.r)&&!(_[Ce][0].e.c<me.c||_[Ce][0].e.r<me.r)){_e.F=tt(_[Ce][0]),(_[Ce][0].s.c!=me.c||_[Ce][0].s.r!=me.r)&&delete _e.f,_e.f&&(_e.f=""+Lt(_[Ce][1],o,me,v,A));break}}be.dense?(i[me.r]||(i[me.r]=[]),i[me.r][me.c]=_e):i[j]=_e}},A={enc:!1,sbcch:0,snames:[],sharedf:S,arrayf:_,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!r&&!!r.cellStyles,WTF:!!r&&!!r.wtf};r.password&&(A.password=r.password);var g,h=[],n=[],l=[],f=[],k=!1,v=[];v.SheetNames=A.snames,v.sharedf=A.sharedf,v.arrayf=A.arrayf,v.names=[],v.XTI=[];var G=0,U=0,D=0,H=[],z=[],W;A.codepage=1200,vr(1200);for(var d=!1;e.l<e.length-1;){var R=e.l,Z=e.read_shift(2);if(Z===0&&G===10)break;var J=e.l===e.length?0:e.read_shift(2),Y=is[Z];if(Y&&Y.f){if(r.bookSheets&&G===133&&Z!==133)break;if(G=Z,Y.r===2||Y.r==12){var ee=e.read_shift(2);if(J-=2,!A.enc&&ee!==Z&&((ee&255)<<8|ee>>8)!==Z)throw new Error("rt mismatch: "+ee+"!="+Z);Y.r==12&&(e.l+=10,J-=10)}var E={};if(Z===10?E=Y.f(e,J,A):E=o1(Z,Y,e,J,A),U==0&&[9,521,1033,2057].indexOf(G)===-1)continue;switch(Z){case 34:t.opts.Date1904=P.WBProps.date1904=E;break;case 134:t.opts.WriteProtect=!0;break;case 47:if(A.enc||(e.l=0),A.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:A.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(A.codepage=V),d=!0;break;case 317:A.rrtabid=E;break;case 25:A.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:A.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:b.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,A)},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:A.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(A.biff<8)break;W!=null&&(W.Comment=E[1]);break;case 18:i["!protect"]=E;break;case 19:E!==0&&A.WTF&&console.error("Password verifier: "+E);break;case 133:s[E.pos]=E,A.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(L)}w===""?y=i:a[w]=i,i=r.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(A.biff===8&&(A.biff={9:2,521:3,1033:4}[Z]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[E.BIFFVer]||8),A.biffguess=E.BIFFVer==0,E.BIFFVer==0&&E.dt==4096&&(A.biff=5,d=!0,vr(A.codepage=28591)),A.biff==8&&E.BIFFVer==0&&E.dt==16&&(A.biff=2),U++)break;if(i=r.dense?[]:{},A.biff<8&&!d&&(d=!0,vr(A.codepage=r.codepage||1252)),A.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,A.snames.push(w)}else w=(s[R]||{name:""}).name;E.dt==32&&(i["!type"]="chart"),E.dt==64&&(i["!type"]="macro"),h=[],n=[],A.arrayf=_=[],l=[],f=[],k=!1,L={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,N={ixfe:E.ixfe,XF:b[E.ixfe]||{},v:E.val,t:"n"},D>0&&(N.z=H[N.ixfe>>8&63]),br(N,r,t.opts.Date1904),T({c:E.c,r:E.r},N,r);break;case 5:case 517:N={ixfe:E.ixfe,XF:b[E.ixfe],v:E.val,t:E.t},D>0&&(N.z=H[N.ixfe>>8&63]),br(N,r,t.opts.Date1904),T({c:E.c,r:E.r},N,r);break;case 638:N={ixfe:E.ixfe,XF:b[E.ixfe],v:E.rknum,t:"n"},D>0&&(N.z=H[N.ixfe>>8&63]),br(N,r,t.opts.Date1904),T({c:E.c,r:E.r},N,r);break;case 189:for(var ie=E.c;ie<=E.C;++ie){var K=E.rkrec[ie-E.c][0];N={ixfe:K,XF:b[K],v:E.rkrec[ie-E.c][1],t:"n"},D>0&&(N.z=H[N.ixfe>>8&63]),br(N,r,t.opts.Date1904),T({c:ie,r:E.r},N,r)}break;case 6:case 518:case 1030:{if(E.val=="String"){c=E;break}if(N=ga(E.val,E.cell.ixfe,E.tt),N.XF=b[N.ixfe],r.cellFormula){var oe=E.formula;if(oe&&oe[0]&&oe[0][0]&&oe[0][0][0]=="PtgExp"){var ce=oe[0][0][1][0],ne=oe[0][0][1][1],pe=Ye({r:ce,c:ne});S[pe]?N.f=""+Lt(E.formula,o,E.cell,v,A):N.F=((r.dense?(i[ce]||[])[ne]:i[pe])||{}).F}else N.f=""+Lt(E.formula,o,E.cell,v,A)}D>0&&(N.z=H[N.ixfe>>8&63]),br(N,r,t.opts.Date1904),T(E.cell,N,r),c=E}break;case 7:case 519:if(c)c.val=E,N=ga(E,c.cell.ixfe,"s"),N.XF=b[N.ixfe],r.cellFormula&&(N.f=""+Lt(c.formula,o,c.cell,v,A)),D>0&&(N.z=H[N.ixfe>>8&63]),br(N,r,t.opts.Date1904),T(c.cell,N,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(C=r.dense?(i[E[0].s.r]||[])[E[0].s.c]:i[te],r.cellFormula&&C){if(!c||!te||!C)break;C.f=""+Lt(E[1],o,E[0],v,A),C.F=tt(E[0])}}break;case 1212:{if(!r.cellFormula)break;if(j){if(!c)break;S[Ye(c.cell)]=E[0],C=r.dense?(i[c.cell.r]||[])[c.cell.c]:i[Ye(c.cell)],(C||{}).f=""+Lt(E[0],o,I,v,A)}}break;case 253:N=ga(u[E.isst].t,E.ixfe,"s"),u[E.isst].h&&(N.h=u[E.isst].h),N.XF=b[N.ixfe],D>0&&(N.z=H[N.ixfe>>8&63]),br(N,r,t.opts.Date1904),T({c:E.c,r:E.r},N,r);break;case 513:r.sheetStubs&&(N={ixfe:E.ixfe,XF:b[E.ixfe],t:"z"},D>0&&(N.z=H[N.ixfe>>8&63]),br(N,r,t.opts.Date1904),T({c:E.c,r:E.r},N,r));break;case 190:if(r.sheetStubs)for(var re=E.c;re<=E.C;++re){var q=E.ixfe[re-E.c];N={ixfe:q,XF:b[q],t:"z"},D>0&&(N.z=H[N.ixfe>>8&63]),br(N,r,t.opts.Date1904),T({c:re,r:E.r},N,r)}break;case 214:case 516:case 4:N=ga(E.val,E.ixfe,"s"),N.XF=b[N.ixfe],D>0&&(N.z=H[N.ixfe>>8&63]),br(N,r,t.opts.Date1904),T({c:E.c,r:E.r},N,r);break;case 0:case 512:U===1&&(o=E);break;case 252:u=E;break;case 1054:if(A.biff==4){H[D++]=E[1];for(var ae=0;ae<D+163&&Ke[ae]!=E[1];++ae);ae>=163&&qr(E[1],D+163)}else qr(E[1],E[0]);break;case 30:{H[D++]=E;for(var se=0;se<D+163&&Ke[se]!=E;++se);se>=163&&qr(E,D+163)}break;case 229:h=h.concat(E);break;case 93:n[E.cmo[0]]=A.lastobj=E;break;case 438:A.lastobj.TxO=E;break;case 127:A.lastobj.ImData=E;break;case 440:for(O=E[0].s.r;O<=E[0].e.r;++O)for(x=E[0].s.c;x<=E[0].e.c;++x)C=r.dense?(i[O]||[])[x]:i[Ye({c:x,r:O})],C&&(C.l=E[1]);break;case 2048:for(O=E[0].s.r;O<=E[0].e.r;++O)for(x=E[0].s.c;x<=E[0].e.c;++x)C=r.dense?(i[O]||[])[x]:i[Ye({c:x,r:O})],C&&C.l&&(C.l.Tooltip=E[1]);break;case 28:{if(A.biff<=5&&A.biff>=2)break;C=r.dense?(i[E[0].r]||[])[E[0].c]:i[Ye(E[0])];var he=n[E[2]];C||(r.dense?(i[E[0].r]||(i[E[0].r]=[]),C=i[E[0].r][E[0].c]={t:"z"}):C=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)),C.c||(C.c=[]),p={a:E[1],t:he.TxO.t},C.c.push(p)}break;case 2173:Dp(b[E.ixfe],E.ext);break;case 125:{if(!A.cellStyles)break;for(;E.e>=E.s;)l[E.e--]={width:E.w/256,level:E.level||0,hidden:!!(E.flags&1)},k||(k=!0,Ds(E.w/256)),Ti(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=Zi(E.hpt))}break;case 38:case 39:case 40:case 41:i["!margins"]||Wi(i["!margins"]={}),i["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[Z]]=E;break;case 161:i["!margins"]||Wi(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:g=E;break;case 140:M=E;break;case 442:w?L.CodeName=E||L.name:P.WBProps.CodeName=E||"ThisWorkbook";break}}else Y||console.error("Missing Info for XLS Record 0x"+Z.toString(16)),e.l+=J}return t.SheetNames=wr(s).sort(function(ye,me){return Number(ye)-Number(me)}).map(function(ye){return s[ye].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(ye,me){t.Sheets[t.SheetNames[me]]["!autofilter"]=ye}),t.Strings=u,t.SSF=Mt(Ke),A.enc&&(t.Encryption=A.enc),g&&(t.Themes=g),t.Metadata={},M!==void 0&&(t.Metadata.Country=M),v.names.length>0&&(P.Names=v.names),t.Workbook=P,t}var Vn={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function c1(e,r,t){var a=et.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var i=Mn(a,A0,Vn.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=Mn(o,E0,Vn.SI);for(var u in c)r[u]==null&&(r[u]=c[u])}catch(w){if(t.WTF)throw w}r.HeadingPairs&&r.TitlesOfParts&&(sl(r.HeadingPairs,r.TitlesOfParts,r,t),delete r.HeadingPairs,delete r.TitlesOfParts)}function Wl(e,r){r||(r={}),Is(r),xo(),r.codepage&&us(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&&s1(t),r.bookProps&&!r.bookSheets)i={};else{var o=Qe?"buffer":"array";if(a&&a.content)i=l1(a.content,r);else if((s=et.find(e,"PerfectOffice_MAIN"))&&s.content)i=Ui.to_workbook(s.content,(r.type=o,r));else if((s=et.find(e,"NativeContent_MAIN"))&&s.content)i=Ui.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=$p(e))}var c={};return e.FullPaths&&c1(e,c,r),i.Props=i.Custprops=c,r.bookFiles&&(i.cfb=e),i}var Aa={0:{f:Gx},1:{f:$x},2:{f:im},3:{f:Jx},4:{f:qx},5:{f:rm},6:{f:nm},7:{f:em},8:{f:fm},9:{f:hm},10:{f:lm},11:{f:cm},12:{f:Kx},13:{f:am},14:{f:Qx},15:{f:Zx},16:{f:Bl},17:{f:om},18:{f:tm},19:{f:ws},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:Nm},40:{},42:{},43:{f:lp},44:{f:op},45:{f:cp},46:{f:fp},47:{f:hp},48:{},49:{f:d0},50:{},51:{f:Pp},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:ml},62:{f:sm},63:{f:Bp},64:{f:Tm},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:ym},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:Yx},148:{f:Xx,p:16},151:{f:pm},152:{},153:{f:Rm},154:{},155:{},156:{f:Im},157:{},158:{},159:{T:1,f:Eu},160:{T:-1},161:{T:1,f:ni},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:dm},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:Op},336:{T:-1},337:{f:Fp,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:Ja},357:{},358:{},359:{},360:{T:1},361:{},362:{f:xl},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:gm},427:{f:xm},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:vm},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Vx},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:um},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:Ja},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:Xp},633:{T:1},634:{T:-1},635:{T:1,f:Gp},636:{T:-1},637:{f:p0},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:Am},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:km},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:""}},is={6:{f:Va},10:{f:Rr},12:{f:vt},13:{f:vt},14:{f:pt},15:{f:pt},16:{f:It},17:{f:pt},18:{f:pt},19:{f:vt},20:{f:Fn},21:{f:Fn},23:{f:xl},24:{f:In},25:{f:pt},26:{},27:{},28:{f:Wd},29:{},34:{f:pt},35:{f:Ln},38:{f:It},39:{f:It},40:{f:It},41:{f:It},42:{f:pt},43:{f:pt},47:{f:Vu},49:{f:_d},51:{f:vt},60:{},61:{f:Td},64:{f:pt},65:{f:bd},66:{f:vt},77:{},80:{},81:{},82:{},85:{f:vt},89:{},90:{},91:{},92:{f:dd},93:{f:Gd},94:{},95:{f:pt},96:{},97:{},99:{f:pt},125:{f:ml},128:{f:Fd},129:{f:ud},130:{f:vt},131:{f:pt},132:{f:pt},133:{f:pd},134:{},140:{f:qd},141:{f:vt},144:{},146:{f:Jd},151:{},152:{},153:{},154:{},155:{},156:{f:vt},157:{},158:{},160:{f:iu},161:{f:eu},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:Md},190:{f:Dd},193:{f:Rr},197:{},198:{},199:{},200:{},201:{},202:{f:pt},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:vt},220:{},221:{f:pt},222:{},224:{f:Pd},225:{f:fd},226:{f:Rr},227:{},229:{f:zd},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:gd},253:{f:wd},255:{f:xd},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:hl},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:pt},353:{f:Rr},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:Id},431:{f:pt},432:{},433:{},434:{},437:{},438:{f:Yd},439:{f:pt},440:{f:$d},441:{},442:{f:ia},443:{},444:{f:vt},445:{},446:{},448:{f:Rr},449:{f:yd,r:2},450:{f:Rr},512:{f:On},513:{f:ru},515:{f:Ld},516:{f:Sd},517:{f:Pn},519:{f:au},520:{f:md},523:{},545:{f:Rn},549:{f:Dn},566:{},574:{f:kd},638:{f:Cd},659:{},1048:{},1054:{f:Ad},1084:{},1212:{f:jd},2048:{f:Kd},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:da},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:Rr},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:Qd,r:12},2173:{f:Mp,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:pt,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:Nd,r:12},2197:{},2198:{f:_p,r:12},2199:{},2200:{},2201:{},2202:{f:Ud,r:12},2203:{f:Rr},2204:{},2205:{},2206:{},2207:{},2211:{f:vd},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:vt},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:tu},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:Zd},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:On},1:{},2:{f:lu},3:{f:ou},4:{f:nu},5:{f:Pn},7:{f:cu},8:{},9:{f:da},11:{},22:{f:vt},30:{f:Ed},31:{},32:{},33:{f:Rn},36:{},37:{f:Dn},50:{f:hu},62:{},52:{},67:{},68:{f:vt},69:{},86:{},126:{},127:{f:su},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:fu},223:{},234:{},354:{},421:{},518:{f:Va},521:{f:da},536:{f:In},547:{f:Ln},561:{},579:{},1030:{f:Va},1033:{f:da},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&&Zo(t)&&e.push(t)}}function Yn(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=If(e.slice(o,c),/(:?<tr[^>]*>)/i,"<tr>"),w=-1,y=0,I=0,j=0,C={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(o=0;o<u.length;++o){var x=u[o].trim(),O=x.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 S=x.split(/<\/t[dh]>/i);for(c=0;c<S.length;++c){var _=S[c].trim();if(_.match(/<t[dh]/i)){for(var N=_,M=0;N.charAt(0)=="<"&&(M=N.indexOf(">"))>-1;)N=N.slice(M+1);for(var b=0;b<p.length;++b){var F=p[b];F.s.c==y&&F.s.r<w&&w<=F.e.r&&(y=F.e.c+1,b=-1)}var P=Ve(_.slice(0,_.indexOf(">")));j=P.colspan?+P.colspan:1,((I=+P.rowspan)>1||j>1)&&p.push({s:{r:w,c:y},e:{r:w+(I||1)-1,c:y+j-1}});var L=P.t||P["data-t"]||"";if(!N.length){y+=j;continue}if(N=No(N),C.s.r>w&&(C.s.r=w),C.e.r<w&&(C.e.r=w),C.s.c>y&&(C.s.c=y),C.e.c<y&&(C.e.c=y),!N.length){y+=j;continue}var m={t:"s",v:N};t.raw||!N.trim().length||L=="s"||(N==="TRUE"?m={t:"b",v:!0}:N==="FALSE"?m={t:"b",v:!1}:isNaN(Tr(N))?isNaN(yi(N).getDate())||(m={t:"d",v:At(N)},t.cellDates||(m={t:"n",v:Kt(m.v)}),m.z=t.dateNF||Ke[14]):m={t:"n",v:Tr(N)}),t.dense?(a[w]||(a[w]=[]),a[w][y]=m):a[Ye({r:w,c:y})]=m,y+=j}}}}return a["!ref"]=tt(C),p.length&&(a["!merges"]=p),a}function h1(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}),I=a.dense?(e[t]||[])[o]:e[y],j=I&&I.v!=null&&(I.h||ys(I.w||(Or(I),I.w)||""))||"",C={};c>1&&(C.rowspan=c),u>1&&(C.colspan=u),a.editable?j='<span contenteditable="true">'+j+"</span>":I&&(C["data-t"]=I&&I.t||"z",I.v!=null&&(C["data-v"]=I.v),I.z!=null&&(C["data-z"]=I.z),I.l&&(I.l.Target||"#").charAt(0)!="#"&&(j='<a href="'+I.l.Target+'">'+j+"</a>")),C.id=(a.id||"sjs")+"-"+y,s.push(qf("td",j,C))}}var p="<tr>";return p+s.join("")+"</tr>"}var f1='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',d1="</body></html>";function u1(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 Xr(Yn(t[0],r),r);var a=Bs();return t.forEach(function(i,s){Ns(a,Yn(i,r),"Sheet"+(s+1))}),a}function p1(e,r,t){var a=[];return a.join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}function g1(e,r){var t=r||{},a=t.header!=null?t.header:f1,i=t.footer!=null?t.footer:d1,s=[a],o=Si(e["!ref"]);t.dense=Array.isArray(e),s.push(p1(e,o,t));for(var c=o.s.r;c<=o.e.r;++c)s.push(h1(e,o,c,t));return s.push("</table>"+i),s.join("")}function zl(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"?Yt(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=Si(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 I=[],j=0,C=e["!rows"]||(e["!rows"]=[]),p=0,x=0,O=0,S=0,_=0,N=0;for(e["!cols"]||(e["!cols"]=[]);p<c.length&&x<u;++p){var M=c[p];if($n(M)){if(a.display)continue;C[x]={hidden:!0}}var b=M.children;for(O=S=0;O<b.length;++O){var F=b[O];if(!(a.display&&$n(F))){var P=F.hasAttribute("data-v")?F.getAttribute("data-v"):F.hasAttribute("v")?F.getAttribute("v"):No(F.innerHTML),L=F.getAttribute("data-z")||F.getAttribute("z");for(j=0;j<I.length;++j){var m=I[j];m.s.c==S+s&&m.s.r<x+i&&x+i<=m.e.r&&(S=m.e.c+1-s,j=-1)}N=+F.getAttribute("colspan")||1,((_=+F.getAttribute("rowspan")||1)>1||N>1)&&I.push({s:{r:x+i,c:S+s},e:{r:x+i+(_||1)-1,c:S+s+(N||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(yi(P).getDate())||(B={t:"d",v:At(P)},a.cellDates||(B={t:"n",v:Kt(B.v)}),B.z=a.dateNF||Ke[14]):B={t:"n",v:Tr(P)})),B.z===void 0&&L!=null&&(B.z=L);var A="",g=F.getElementsByTagName("A");if(g&&g.length)for(var h=0;h<g.length&&!(g[h].hasAttribute("href")&&(A=g[h].getAttribute("href"),A.charAt(0)!="#"));++h);A&&A.charAt(0)!="#"&&(B.l={Target:A}),a.dense?(e[x+i]||(e[x+i]=[]),e[x+i][S+s]=B):e[Ye({c:S+s,r:x+i})]=B,w.e.c<S+s&&(w.e.c=S+s),S+=N}}++x}return I.length&&(e["!merges"]=(e["!merges"]||[]).concat(I)),w.e.r=Math.max(w.e.r,x-1+i),e["!ref"]=tt(w),x>=u&&(e["!fullref"]=tt((w.e.r=c.length-p+x-1+i,w))),e}function Gl(e,r){var t=r||{},a=t.dense?[]:{};return zl(a,e,r)}function x1(e,r){return Xr(Gl(e,r),r)}function $n(e){var r="",t=m1(e);return t&&(r=t(e).getPropertyValue("display")),r||(r=e.style&&e.style.display),r==="none"}function m1(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function v1(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 Kn={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 Xl(e,r){var t=r||{},a=Ts(e),i=[],s,o,c={name:""},u="",w=0,y,I,j={},C=[],p=t.dense?[]:{},x,O,S={value:""},_="",N=0,M=[],b=-1,F=-1,P={s:{r:1e6,c:1e7},e:{r:0,c:0}},L=0,m={},B=[],T={},A=0,g=0,h=[],n=1,l=1,f=[],k={Names:[]},v={},G=["",""],U=[],D={},H="",z=0,W=!1,d=!1,R=0;for($i.lastIndex=0,a=a.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");x=$i.exec(a);)switch(x[3]=x[3].replace(/_.*$/,"")){case"table":case"工作表":x[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),C.push(y.name),j[y.name]=p,d=!1):x[0].charAt(x[0].length-2)!=="/"&&(y=Ve(x[0],!1),b=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":x[1]==="/"?--L:++L;break;case"table-row":case"行":if(x[1]==="/"){b+=n,n=1;break}if(I=Ve(x[0],!1),I.行号?b=I.行号-1:b==-1&&(b=0),n=+I["number-rows-repeated"]||1,n<10)for(R=0;R<n;++R)L>0&&(h[b+R]={level:L});F=-1;break;case"covered-table-cell":x[1]!=="/"&&++F,t.sheetStubs&&(t.dense?(p[b]||(p[b]=[]),p[b][F]={t:"z"}):p[Ye({r:b,c:F})]={t:"z"}),_="",M=[];break;case"table-cell":case"数据":if(x[0].charAt(x[0].length-2)==="/")++F,S=Ve(x[0],!1),l=parseInt(S["number-columns-repeated"]||"1",10),O={t:"z",v:null},S.formula&&t.cellFormula!=!1&&(O.f=zn(rt(S.formula))),(S.数据类型||S["value-type"])=="string"&&(O.t="s",O.v=rt(S["string-value"]||""),t.dense?(p[b]||(p[b]=[]),p[b][F]=O):p[Ye({r:b,c:F})]=O),F+=l-1;else if(x[1]!=="/"){++F,_="",N=0,M=[],l=1;var Z=n?b+n-1:b;if(F>P.e.c&&(P.e.c=F),F<P.s.c&&(P.s.c=F),b<P.s.r&&(P.s.r=b),Z>P.e.r&&(P.e.r=Z),S=Ve(x[0],!1),U=[],D={},O={t:S.数据类型||S["value-type"],v:null},t.cellFormula)if(S.formula&&(S.formula=rt(S.formula)),S["number-matrix-columns-spanned"]&&S["number-matrix-rows-spanned"]&&(A=parseInt(S["number-matrix-rows-spanned"],10)||0,g=parseInt(S["number-matrix-columns-spanned"],10)||0,T={s:{r:b,c:F},e:{r:b+A-1,c:F+g-1}},O.F=tt(T),f.push([T,O.F])),S.formula)O.f=zn(S.formula);else for(R=0;R<f.length;++R)b>=f[R][0].s.r&&b<=f[R][0].e.r&&F>=f[R][0].s.c&&F<=f[R][0].e.c&&(O.F=f[R][1]);switch((S["number-columns-spanned"]||S["number-rows-spanned"])&&(A=parseInt(S["number-rows-spanned"],10)||0,g=parseInt(S["number-columns-spanned"],10)||0,T={s:{r:b,c:F},e:{r:b+A-1,c:F+g-1}},B.push(T)),S["number-columns-repeated"]&&(l=parseInt(S["number-columns-repeated"],10)),O.t){case"boolean":O.t="b",O.v=ot(S["boolean-value"]);break;case"float":O.t="n",O.v=parseFloat(S.value);break;case"percentage":O.t="n",O.v=parseFloat(S.value);break;case"currency":O.t="n",O.v=parseFloat(S.value);break;case"date":O.t="d",O.v=At(S["date-value"]),t.cellDates||(O.t="n",O.v=Kt(O.v)),O.z="m/d/yy";break;case"time":O.t="n",O.v=Pf(S["time-value"])/86400,t.cellDates&&(O.t="d",O.v=Pa(O.v)),O.z="HH:MM:SS";break;case"number":O.t="n",O.v=parseFloat(S.数据数值);break;default:if(O.t==="string"||O.t==="text"||!O.t)O.t="s",S["string-value"]!=null&&(_=rt(S["string-value"]),M=[]);else throw new Error("Unsupported value type "+O.t)}}else{if(W=!1,O.t==="s"&&(O.v=_||"",M.length&&(O.R=M),W=N==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<=b))for(var J=0;J<n;++J){if(l=parseInt(S["number-columns-repeated"]||"1",10),t.dense)for(p[b+J]||(p[b+J]=[]),p[b+J][F]=J==0?O:Mt(O);--l>0;)p[b+J][F+l]=Mt(O);else for(p[Ye({r:b+J,c:F})]=O;--l>0;)p[Ye({r:b+J,c:F+l})]=Mt(O);P.e.c<=F&&(P.e.c=F)}l=parseInt(S["number-columns-repeated"]||"1",10),F+=l-1,l=0,O={},_="",M=[]}v={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(x[1]==="/"){if((s=i.pop())[0]!==x[3])throw"Bad state: "+s}else x[0].charAt(x[0].length-2)!=="/"&&i.push([x[3],!0]);break;case"annotation":if(x[1]==="/"){if((s=i.pop())[0]!==x[3])throw"Bad state: "+s;D.t=_,M.length&&(D.R=M),D.a=H,U.push(D)}else x[0].charAt(x[0].length-2)!=="/"&&i.push([x[3],!1]);H="",z=0,_="",N=0,M=[];break;case"creator":x[1]==="/"?H=a.slice(z,x.index):z=x.index+x[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(x[1]==="/"){if((s=i.pop())[0]!==x[3])throw"Bad state: "+s}else x[0].charAt(x[0].length-2)!=="/"&&i.push([x[3],!1]);_="",N=0,M=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(x[1]==="/"){if(m[c.name]=u,(s=i.pop())[0]!==x[3])throw"Bad state: "+s}else x[0].charAt(x[0].length-2)!=="/"&&(u="",c=Ve(x[0],!1),i.push([x[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(i[i.length-1][0]){case"time-style":case"date-style":o=Ve(x[0],!1),u+=Kn[x[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=Ve(x[0],!1),u+=Kn[x[3]][o.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(x[0].slice(-2)==="/>")break;if(x[1]==="/")switch(i[i.length-1][0]){case"number-style":case"date-style":case"time-style":u+=a.slice(w,x.index);break}else w=x.index+x[0].length;break;case"named-range":o=Ve(x[0],!1),G=Ya(o["cell-range-address"]);var Y={Name:o.name,Ref:G[0]+"!"+G[1]};d&&(Y.Sheet=C.length),k.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(x[1]==="/"&&(!S||!S["string-value"])){var ee=v1(a.slice(N,x.index));_=(_.length>0?_+`
- `:"")+ee[0]}else Ve(x[0],!1),N=x.index+x[0].length;break;case"s":break;case"database-range":if(x[1]==="/")break;try{G=Ya(Ve(x[0])["target-range-address"]),j[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(x[1]!=="/"){if(v=Ve(x[0],!1),!v.href)break;v.Target=rt(v.href),delete v.href,v.Target.charAt(0)=="#"&&v.Target.indexOf(".")>-1?(G=Ya(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(x[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(t.WTF)throw new Error(x)}}var E={Sheets:j,SheetNames:C,Workbook:k};return t.bookSheets&&delete E.Sheets,E}function qn(e,r){r=r||{},hr(e,"META-INF/manifest.xml")&&L0(mt(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=Xl(nt(t),r);return hr(e,"meta.xml")&&(a.Props=al(mt(e,"meta.xml"))),a}function Zn(e,r){return Xl(e,r)}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Fs(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function as(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):nt(ai(e))}function ss(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 Jn(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function y1(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 Ji(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 bt(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=Ji(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=Ji(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 Ls(e,r){return(e==null?void 0:e.map(function(t){return r(t.data)}))||[]}function T1(e){for(var r,t=[],a=[0];a[0]<e.length;){var i=Ji(e,a),s=Rt(e.slice(a[0],a[0]+i));a[0]+=i;var o={id:bt(s[1][0].data),messages:[]};s[2].forEach(function(c){var u=Rt(c.data),w=bt(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=bt(s[3][0].data)>>>0>0),t.push(o)}return t}function k1(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],a=Ji(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=[ss(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=ss(i);if(y.length!=a)throw new Error("Unexpected length: ".concat(y.length," != ").concat(a));return y}function b1(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(k1(a,e.slice(t,t+i))),t+=i}if(t!==e.length)throw new Error("data is not a valid framed stream!");return ss(r)}function _1(e,r,t,a){var i=Fs(e),s=i.getUint32(4,!0),o=(a>1?12:8)+Jn(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+=Jn(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 I;switch(e[2]){case 0:break;case 2:I={t:"n",v:w};break;case 3:I={t:"s",v:r[u]};break;case 5:I={t:"d",v:y};break;case 6:I={t:"b",v:w>0};break;case 7:I={t:"n",v:w/86400};break;case 8:I={t:"e",v:0};break;case 9:if(c>-1)I={t:"s",v:t[c]};else if(u>-1)I={t:"s",v:r[u]};else if(!isNaN(w))I={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 I}function w1(e,r,t){var a=Fs(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=y1(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 I;switch(e[1]){case 0:break;case 2:I={t:"n",v:u};break;case 3:I={t:"s",v:r[c]};break;case 5:I={t:"d",v:y};break;case 6:I={t:"b",v:w>0};break;case 7:I={t:"n",v:w/86400};break;case 8:I={t:"e",v:0};break;case 9:if(o>-1)I={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:I={t:"n",v:u};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e.slice(0,4)))}return I}function S1(e,r,t){switch(e[0]){case 0:case 1:case 2:case 3:return _1(e,r,t,e[0]);case 5:return w1(e,r,t);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Hr(e){var r=Rt(e);return Ji(r[1][0].data)}function Qn(e,r){var t=Rt(r.data),a=bt(t[1][0].data),i=t[3],s=[];return(i||[]).forEach(function(o){var c=Rt(o.data),u=bt(c[1][0].data)>>>0;switch(a){case 1:s[u]=as(c[3][0].data);break;case 8:{var w=e[Hr(c[9][0].data)][0],y=Rt(w.data),I=e[Hr(y[1][0].data)][0],j=bt(I.meta[1][0].data);if(j!=2001)throw new Error("2000 unexpected reference to ".concat(j));var C=Rt(I.data);s[u]=C[3].map(function(p){return as(p.data)}).join("")}break}}),s}function A1(e,r){var t,a,i,s,o,c,u,w,y,I,j,C,p,x,O=Rt(e),S=bt(O[1][0].data)>>>0,_=bt(O[2][0].data)>>>0,N=((a=(t=O[8])==null?void 0:t[0])==null?void 0:a.data)&&bt(O[8][0].data)>0||!1,M,b;if((s=(i=O[7])==null?void 0:i[0])!=null&&s.data&&r!=0)M=(c=(o=O[7])==null?void 0:o[0])==null?void 0:c.data,b=(w=(u=O[6])==null?void 0:u[0])==null?void 0:w.data;else if((I=(y=O[4])==null?void 0:y[0])!=null&&I.data&&r!=1)M=(C=(j=O[4])==null?void 0:j[0])==null?void 0:C.data,b=(x=(p=O[3])==null?void 0:p[0])==null?void 0:x.data;else throw"NUMBERS Tile missing ".concat(r," cell storage");for(var F=N?4:1,P=Fs(M),L=[],m=0;m<M.length/2;++m){var B=P.getUint16(m*2,!0);B<65535&&L.push([m,B])}if(L.length!=_)throw"Expected ".concat(_," cells, found ").concat(L.length);var T=[];for(m=0;m<L.length-1;++m)T[L[m][0]]=b.subarray(L[m][1]*F,L[m+1][1]*F);return L.length>=1&&(T[L[L.length-1][0]]=b.subarray(L[L.length-1][1]*F)),{R:S,cells:T}}function E1(e,r){var t,a=Rt(r.data),i=(t=a==null?void 0:a[7])!=null&&t[0]?bt(a[7][0].data)>>>0>0?1:0:-1,s=Ls(a[5],function(o){return A1(o,i)});return{nrows:bt(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 C1(e,r,t){var a,i=Rt(r.data),s={s:{r:0,c:0},e:{r:0,c:0}};if(s.e.r=(bt(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=(bt(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=Qn(e,e[Hr(o[4][0].data)][0]),u=(a=o[17])!=null&&a[0]?Qn(e,e[Hr(o[17][0].data)][0]):[],w=Rt(o[3][0].data),y=0;w[1].forEach(function(I){var j=Rt(I.data),C=e[Hr(j[2][0].data)][0],p=bt(C.meta[1][0].data);if(p!=6002)throw new Error("6001 unexpected reference to ".concat(p));var x=E1(e,C);x.data.forEach(function(O,S){O.forEach(function(_,N){var M=Ye({r:y+S,c:N}),b=S1(_,c,u);b&&(t[M]=b)})}),y+=x.nrows})}function M1(e,r){var t=Rt(r.data),a={"!ref":"A1"},i=e[Hr(t[2][0].data)],s=bt(i[0].meta[1][0].data);if(s!=6001)throw new Error("6000 unexpected reference to ".concat(s));return C1(e,i[0],a),a}function D1(e,r){var t,a=Rt(r.data),i={name:(t=a[1])!=null&&t[0]?as(a[1][0].data):"",sheets:[]},s=Ls(a[2],Hr);return s.forEach(function(o){e[o].forEach(function(c){var u=bt(c.meta[1][0].data);u==6e3&&i.sheets.push(M1(e,c))})}),i}function O1(e,r){var t=Bs(),a=Rt(r.data),i=Ls(a[1],Hr);if(i.forEach(function(s){e[s].forEach(function(o){var c=bt(o.meta[1][0].data);if(c==2){var u=D1(e,o);u.sheets.forEach(function(w,y){Ns(t,w,y==0?u.name:u.name+"_"+y,!0)})}})}),t.SheetNames.length==0)throw new Error("Empty NUMBERS file");return t}function Ka(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=b1(u.content)}catch(I){return console.log("?? "+u.content.length+" "+(I.message||I))}var y;try{y=T1(w)}catch(I){return console.log("## "+(I.message||I))}y.forEach(function(I){s[I.id]=I.messages,o.push(I.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)&&bt(s[1][0].meta[1][0].data)==1&&s[1][0];if(c||o.forEach(function(u){s[u].forEach(function(w){var y=bt(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 O1(s,c)}function P1(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 Is(e){P1([["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 F1(e){return gi.WS.indexOf(e)>-1?"sheet":e==gi.CS?"chart":e==gi.DS?"dialog":e==gi.MS?"macro":e&&e.length?e:"sheet"}function L1(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,F1(e["!id"][a.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function I1(e,r,t,a,i,s,o,c,u,w,y,I){try{s[a]=Ni(ir(e,t,!0),r);var j=mt(e,r),C;switch(c){case"sheet":C=Hm(j,r,i,u,s[a],w,y,I);break;case"chart":if(C=Wm(j,r,i,u,s[a],w,y,I),!C||!C["!drawel"])break;var p=Fi(C["!drawel"].Target,r),x=Qa(p),O=Up(ir(e,p,!0),Ni(ir(e,x,!0),p)),S=Fi(O,p),_=Qa(S);C=wm(ir(e,S,!0),S,u,Ni(ir(e,_,!0),S),w,C);break;case"macro":C=zm(j,r,i,u,s[a],w,y,I);break;case"dialog":C=Gm(j,r,i,u,s[a],w,y,I);break;default:throw new Error("Unrecognized sheet type "+c)}o[a]=C;var N=[];s&&s[a]&&wr(s[a]).forEach(function(M){var b="";if(s[a][M].Type==gi.CMNT){b=Fi(s[a][M].Target,r);var F=$m(mt(e,b,!0),b,u);if(!F||!F.length)return;Nn(C,F,!1)}s[a][M].Type==gi.TCMNT&&(b=Fi(s[a][M].Target,r),N=N.concat(Wp(mt(e,b,!0),u)))}),N&&N.length&&Nn(C,N,!0,u.people||[])}catch(M){if(u.WTF)throw M}}function lr(e){return e.charAt(0)=="/"?e.slice(1):e}function R1(e,r){if(Co(),r=r||{},Is(r),hr(e,"META-INF/manifest.xml")||hr(e,"objectdata.xml"))return qn(e,r);if(hr(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof Ka<"u"){if(e.FileIndex)return Ka(e);var t=et.utils.cfb_new();return fn(e).forEach(function(h){Bf(t,h,Lo(e,h))}),Ka(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=fn(e),i=P0(ir(e,"[Content_Types].xml")),s=!1,o,c;if(i.workbooks.length===0&&(c="xl/workbook.xml",mt(e,c,!0)&&i.workbooks.push(c)),i.workbooks.length===0){if(c="xl/workbook.bin",!mt(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(Hi=[],i.sst)try{Hi=Ym(mt(e,lr(i.sst)),i.sst,r)}catch(h){if(r.WTF)throw h}r.cellStyles&&i.themes.length&&(u=Vm(ir(e,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],r)),i.style&&(w=Xm(mt(e,lr(i.style)),i.style,u,r))}i.links.map(function(h){try{var n=Ni(ir(e,Qa(lr(h))),h);return qm(mt(e,lr(h)),n,h,r)}catch{}});var y=Um(mt(e,lr(i.workbooks[0])),i.workbooks[0],r),I={},j="";i.coreprops.length&&(j=mt(e,lr(i.coreprops[0]),!0),j&&(I=al(j)),i.extprops.length!==0&&(j=mt(e,lr(i.extprops[0]),!0),j&&B0(j,I,r)));var C={};(!r.bookSheets||r.bookProps)&&i.custprops.length!==0&&(j=ir(e,lr(i.custprops[0]),!0),j&&(C=j0(j,r)));var p={};if((r.bookSheets||r.bookProps)&&(y.Sheets?o=y.Sheets.map(function(n){return n.name}):I.Worksheets&&I.SheetNames.length>0&&(o=I.SheetNames),r.bookProps&&(p.Props=I,p.Custprops=C),r.bookSheets&&typeof o<"u"&&(p.SheetNames=o),r.bookSheets?p.SheetNames:r.bookProps))return p;o={};var x={};r.bookDeps&&i.calcchain&&(x=Km(mt(e,lr(i.calcchain)),i.calcchain));var O=0,S={},_,N;{var M=y.Sheets;I.Worksheets=M.length,I.SheetNames=[];for(var b=0;b!=M.length;++b)I.SheetNames[b]=M[b].name}var F=s?"bin":"xml",P=i.workbooks[0].lastIndexOf("/"),L=(i.workbooks[0].slice(0,P+1)+"_rels/"+i.workbooks[0].slice(P+1)+".rels").replace(/^\//,"");hr(e,L)||(L="xl/_rels/workbook."+F+".rels");var m=Ni(ir(e,L,!0),L.replace(/_rels.*/,"s5s"));(i.metadata||[]).length>=1&&(r.xlmeta=Zm(mt(e,lr(i.metadata[0])),i.metadata[0],r)),(i.people||[]).length>=1&&(r.people=zp(mt(e,lr(i.people[0])),r)),m&&(m=L1(m,y.Sheets));var B=mt(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(O=0;O!=I.Worksheets;++O){var T="sheet";if(m&&m[O]?(_="xl/"+m[O][1].replace(/[\/]?xl\//,""),hr(e,_)||(_=m[O][1]),hr(e,_)||(_=L.replace(/_rels\/.*$/,"")+m[O][1]),T=m[O][2]):(_="xl/worksheets/sheet"+(O+1-B)+"."+F,_=_.replace(/sheet0\./,"sheet.")),N=_.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(I.SheetNames[O].toLowerCase()!=r.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(r.sheets)){for(var A=!1,g=0;g!=r.sheets.length;++g)typeof r.sheets[g]=="number"&&r.sheets[g]==O&&(A=1),typeof r.sheets[g]=="string"&&r.sheets[g].toLowerCase()==I.SheetNames[O].toLowerCase()&&(A=1);if(!A)continue e}}I1(e,_,N,I.SheetNames[O],O,S,o,T,r,y,u,w)}return p={Directory:i,Workbook:y,Props:I,Custprops:C,Deps:x,Sheets:o,SheetNames:I.SheetNames,Strings:Hi,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=mt(e,lr(i.vba[0]),!0):i.defaults&&i.defaults.bin===Yp&&(p.vbaraw=mt(e,"xl/vbaProject.bin",!0))),p}function B1(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(Mu(i.content),a="/!DataSpaces/DataSpaceMap",i=et.find(e,a),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=Ou(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=Pu(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);Lu(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=Iu(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 Rs(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 N1(e,r){return et.find(e,"EncryptedPackage")?B1(e,r):Wl(e,r)}function j1(e,r){var t,a=e,i=r||{};return i.type||(i.type=Qe&&Buffer.isBuffer(e)?"buffer":"base64"),t=Io(a,i),R1(t,i)}function Vl(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 rs(e.slice(t),r);default:break e}return Ki.to_workbook(e,r)}function U1(e,r){var t="",a=Rs(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=Qr(e);break;default:throw new Error("Unrecognized type "+r.type)}return a[0]==239&&a[1]==187&&a[2]==191&&(t=nt(t)),r.type="binary",Vl(t,r)}function H1(e,r){var t=e;return r.type=="base64"&&(t=ar(t)),t=Br.utils.decode(1200,t.slice(2),"str"),r.type="binary",Vl(t,r)}function W1(e){return e.match(/[^\x00-\x7F]/)?Li(e):e}function qa(e,r,t,a){return a?(t.type="string",Ki.to_workbook(e,t)):Ki.to_workbook(r,t)}function ns(e,r){xo();var t=r||{};if(typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer)return ns(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),vi={},t.dateNF&&(vi.dateNF=t.dateNF),t.type||(t.type=Qe&&Buffer.isBuffer(e)?"buffer":"base64"),t.type=="file"&&(t.type=Qe?"buffer":"binary",a=Df(e),typeof Uint8Array<"u"&&!Qe&&(t.type="array")),t.type=="string"&&(s=!0,t.type="binary",t.codepage=65001,a=W1(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",ns(ps(a),t)}switch((i=Rs(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 N1(et.read(a,t),t);break;case 9:if(i[1]<=8)return Wl(a,t);break;case 60:return rs(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 xu(a,t);break;case 84:if(i[1]===65&&i[2]===66&&i[3]===76)return pu.to_workbook(a,t);break;case 80:return i[1]===75&&i[2]<9&&i[3]<9?j1(a,t):qa(e,a,t,s);case 239:return i[3]===60?rs(a,t):qa(e,a,t,s);case 255:if(i[1]===254)return H1(a,t);if(i[1]===0&&i[2]===2&&i[3]===0)return Ui.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 Ui.to_workbook(a,t);break;case 3:case 131:case 139:case 140:return Bn.to_workbook(a,t);case 123:if(i[1]===92&&i[2]===114&&i[3]===116)return Yu.to_workbook(a,t);break;case 10:case 13:case 32:return U1(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 du.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31?Bn.to_workbook(a,t):qa(e,a,t,s)}function z1(e,r,t,a,i,s,o,c){var u=Dt(t),w=c.defval,y=c.raw||!Object.prototype.hasOwnProperty.call(c,"raw"),I=!0,j=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(j,"__rowNum__",{value:t,enumerable:!1})}catch{j.__rowNum__=t}else j.__rowNum__=t;if(!o||e[t])for(var C=r.s.c;C<=r.e.c;++C){var p=o?e[t][C]:e[a[C]+u];if(p===void 0||p.t===void 0){if(w===void 0)continue;s[C]!=null&&(j[s[C]]=w);continue}var x=p.v;switch(p.t){case"z":if(x==null)break;continue;case"e":x=x==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(s[C]!=null){if(x==null)if(p.t=="e"&&x===null)j[s[C]]=null;else if(w!==void 0)j[s[C]]=w;else if(y&&x===null)j[s[C]]=null;else continue;else j[s[C]]=y&&(p.t!=="n"||p.t==="n"&&c.rawNumbers!==!1)?x:Or(p,x,c);x!=null&&(I=!1)}}return{row:j,isempty:I}}function os(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=ut(y);break;case"number":u=ut(e["!ref"]),u.s.r=y;break;default:u=y}a>0&&(i=0);var I=Dt(u.s.r),j=[],C=[],p=0,x=0,O=Array.isArray(e),S=u.s.r,_=0,N={};O&&!e[S]&&(e[S]=[]);var M=w.skipHidden&&e["!cols"]||[],b=w.skipHidden&&e["!rows"]||[];for(_=u.s.c;_<=u.e.c;++_)if(!(M[_]||{}).hidden)switch(j[_]=kt(_),t=O?e[S][_]:e[j[_]+I],a){case 1:s[_]=_-u.s.c;break;case 2:s[_]=j[_];break;case 3:s[_]=w.header[_-u.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),c=o=Or(t,null,w),x=N[o]||0,!x)N[o]=1;else{do c=o+"_"+x++;while(N[c]);N[o]=x,N[c]=1}s[_]=c}for(S=u.s.r+i;S<=u.e.r;++S)if(!(b[S]||{}).hidden){var F=z1(e,u,S,j,a,s,O,w);(F.isempty===!1||(a===1?w.blankrows!==!1:w.blankrows))&&(C[p++]=F.row)}return C.length=p,C}var eo=/"/g;function G1(e,r,t,a,i,s,o,c){for(var u=!0,w=[],y="",I=Dt(t),j=r.s.c;j<=r.e.c;++j)if(a[j]){var C=c.dense?(e[t]||[])[j]:e[a[j]+I];if(C==null)y="";else if(C.v!=null){u=!1,y=""+(c.rawNumbers&&C.t=="n"?C.v:Or(C,null,c));for(var p=0,x=0;p!==y.length;++p)if((x=y.charCodeAt(p))===i||x===s||x===34||c.forceQuotes){y='"'+y.replace(eo,'""')+'"';break}y=="ID"&&(y='"ID"')}else C.f!=null&&!C.F?(u=!1,y="="+C.f,y.indexOf(",")>=0&&(y='"'+y.replace(eo,'""')+'"')):y="";w.push(y)}return c.blankrows===!1&&u?null:w.join(o)}function Yl(e,r){var t=[],a=r??{};if(e==null||e["!ref"]==null)return"";var i=ut(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="",I=[];a.dense=Array.isArray(e);for(var j=a.skipHidden&&e["!cols"]||[],C=a.skipHidden&&e["!rows"]||[],p=i.s.c;p<=i.e.c;++p)(j[p]||{}).hidden||(I[p]=kt(p));for(var x=0,O=i.s.r;O<=i.e.r;++O)(C[O]||{}).hidden||(y=G1(e,i,O,I,o,u,s,a),y!=null&&(a.strip&&(y=y.replace(w,"")),(y||a.blankrows!==!1)&&t.push((x++?c:"")+y)));return delete a.dense,t.join("")}function X1(e,r){r||(r={}),r.FS=" ",r.RS=`
- `;var t=Yl(e,r);return t}function V1(e){var r="",t,a="";if(e==null||e["!ref"]==null)return[];var i=ut(e["!ref"]),s="",o=[],c,u=[],w=Array.isArray(e);for(c=i.s.c;c<=i.e.c;++c)o[c]=kt(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 $l(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"?Yt(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 I=ut(s["!ref"]);y.e.c=Math.max(y.e.c,I.e.c),y.e.r=Math.max(y.e.r,I.e.r),o==-1&&(o=I.e.r+1,y.e.r=o+r.length-1+i)}else o==-1&&(o=0,y.e.r=r.length-1+i);var j=a.header||[],C=0;r.forEach(function(x,O){wr(x).forEach(function(S){(C=j.indexOf(S))==-1&&(j[C=j.length]=S);var _=x[S],N="z",M="",b=Ye({c:c+C,r:o+O+i});w=Qi(s,b),_&&typeof _=="object"&&!(_ instanceof Date)?s[b]=_:(typeof _=="number"?N="n":typeof _=="boolean"?N="b":typeof _=="string"?N="s":_ instanceof Date?(N="d",a.cellDates||(N="n",_=Kt(_)),M=a.dateNF||Ke[14]):_===null&&a.nullError&&(N="e",_=0),w?(w.t=N,w.v=_,delete w.w,delete w.R,M&&(w.z=M)):s[b]=w={t:N,v:_},M&&(w.z=M))})}),y.e.c=Math.max(y.e.c,c+j.length-1);var p=Dt(o);if(i)for(C=0;C<j.length;++C)s[kt(C+c)+p]={t:"s",v:j[C]};return s["!ref"]=tt(y),s}function Y1(e,r){return $l(null,e,r)}function Qi(e,r,t){if(typeof r=="string"){if(Array.isArray(e)){var a=Yt(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"?Qi(e,Ye(r)):Qi(e,Ye({r,c:t||0}))}function $1(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 Bs(){return{SheetNames:[],Sheets:{}}}function Ns(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(Pm(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 K1(e,r,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var a=$1(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 q1(e,r){return e.z=r,e}function Kl(e,r,t){return r?(e.l={Target:r},t&&(e.l.Tooltip=t)):delete e.l,e}function Z1(e,r,t){return Kl(e,"#"+r,t)}function J1(e,r,t){e.c||(e.c=[]),e.c.push({t:r,a:t||"SheetJS"})}function Q1(e,r,t,a){for(var i=typeof r!="string"?r:ut(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=Qi(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 ev={encode_col:kt,encode_row:Dt,encode_cell:Ye,encode_range:tt,decode_col:_s,decode_row:bs,split_cell:f0,decode_cell:Yt,decode_range:Si,format_cell:Or,sheet_add_aoa:Qo,sheet_add_json:$l,sheet_add_dom:zl,aoa_to_sheet:Ai,json_to_sheet:Y1,table_to_sheet:Gl,table_to_book:x1,sheet_to_csv:Yl,sheet_to_txt:X1,sheet_to_json:os,sheet_to_html:g1,sheet_to_formulae:V1,sheet_to_row_object_array:os,sheet_get_cell:Qi,book_new:Bs,book_append_sheet:Ns,book_set_sheet_visibility:K1,cell_set_number_format:q1,cell_set_hyperlink:Kl,cell_set_internal_link:Z1,cell_add_comment:J1,sheet_set_array_formula:Q1,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const tv={style:{display:"flex","align-items":"center"}},rv={style:{"margin-left":"20px",color:"#2d8cf0"}},iv={style:{float:"right"}},av={__name:"ImportVue",props:{task:{required:!0,default:{}}},emits:["importFiles"],setup(e,{emit:r}){const t=e,a=ze(!1),i=_t(),s=ze(0),o=ze(!1),c=ze([]),u=x=>new Promise(O=>{const S=new FileReader;S.readAsBinaryString(x),S.onload=_=>{O(_.target.result)}}),w=async({file:x})=>{const O=await u(x.file),S=ns(O,{type:"binary",cellDates:!0}),_=S.Sheets[S.SheetNames[0]];c.value=ev.sheet_to_json(_),console.log("导入",c.value),c.value.forEach(N=>{N.记录时间=lo(N.记录时间,"YYYY-MM-DD HH:mm:ss").value})},y=qe({Time_start:null,Time_end:null,T_sn:"",T_id:"",page:1,page_z:9999}),I=()=>{s.value=0,o.value=!0,a.value=!1};fr(o,x=>{x||(s.value=0,c.value=[])});const j=async()=>{if(s.value=0,c.value.length==0){i.error("没有可导入数据哦,检查文件是否为空数据");return}else{a.value=!0;let x=100;for(let O=0;O<c.value.length;O+=x){let S=await C(c.value.slice(O,O+x));const _=await p(S);s.value+=Number(_.data.Data),s.value==c.value.length&&(i.success("数据导入完成"),r("importFiles"))}}},C=x=>new Promise(O=>{const S=x.map(_=>_.SN+"|"+_.编号+"|"+_["温度℃"]+"|"+_["湿度%"]+"|"+_.记录时间);setTimeout(()=>{O(S.join("?"))},100)}),p=async x=>new Promise(O=>{setTimeout(()=>{const S=ao({T_task_id:t.task.T_task_id,T_Data:x});O(S)},100)});return(x,O)=>{const S=Et,_=co,N=ur,M=or,b=tr;return Ge(),at(dt,null,[Te(S,{type:"primary",onClick:I},{default:ke(()=>[Re("导入数据")]),_:1}),Te(b,{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(M,{model:He(y),"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(N,{label:"数据"},{default:ke(()=>[Te(_,{"default-upload":!1,max:1,onChange:w},{default:ke(()=>[We("div",tv,[Te(S,null,{default:ke(()=>[Re("上传文件")]),_:1}),We("div",rv,"进度:"+Tt(s.value)+"/"+Tt(c.value.length),1)])]),_:1})]),_:1})]),_:1},8,["model"]),We("div",iv,[Te(S,{onClick:O[0]||(O[0]=F=>o.value=!1)},{default:ke(()=>[Re(" 取消 ")]),_:1}),Te(S,{type:"primary",onClick:j,disabled:a.value,style:{"margin-left":"20px"}},{default:ke(()=>[Re(" 确认 ")]),_:1},8,["disabled"])])]),_:1},8,["show"])],64)}}},sv={class:"flex justify-end"},nv={class:"text-center font-bold"},ov={class:"flex justify-end"},lv={__name:"ImportPlatform",props:{task:{required:!0,default:{}}},setup(e){const r=e,t=_t();io();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},I=async()=>{if(o.value.length===0)return t.info("无数据");a.value=!0;let O=o.value,S=100;for(let _=0;_<O.length;_+=S){let N=await j(O.slice(_,_+S));const M=await C(N);console.log("已经处理",M),w.value+=Number(M.data.Data),w.value==c.value&&t.success("数据导入完成")}},j=O=>new Promise(S=>{const _=O.map(N=>N.T_sn+"-"+N.T_id+"|"+N.T_id+"|"+N.T_t+"|"+N.T_rh+"|"+N.T_time);S(_.join("?"))}),C=async O=>new Promise(S=>{setTimeout(()=>{const _=ao({T_task_id:r.task.T_task_id,T_Data:O});S(_)},100)}),p=async()=>{console.log("查询1",u);const O=await x(u);if(console.log("查询2",u),O){const{data:S}=await vh({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=S.Data.Data||[],c.value=S.Data.Num||0}else t.error("搜索条件全部必填哦")},x=O=>new Promise(S=>{O.Time_start!=null&&O.Time_end!=null&&O.T_sn!=null&&O.T_id!=null?S(!0):S(!1)});return(O,S)=>{const _=Et,N=_i,M=ur,b=ri,F=or,P=Ea,L=Hc,m=ho,B=kc,T=bc,A=fs,g=Da,h=tr;return Ge(),at(dt,null,[Te(_,{type:"primary",onClick:y},{default:ke(()=>[Re("导入数据(冷链平台)")]),_:1}),Te(h,{style:{width:"30%"},show:He(i),"onUpdate:show":S[3]||(S[3]=n=>Xi(i)?i.value=n:null),"show-icon":!1,preset:"dialog",title:"导入"},{default:ke(()=>[Te(g,{vertical:""},{default:ke(()=>[Te(P,null,{action:ke(()=>[We("div",sv,[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(M,{label:"起止时间"},{default:ke(()=>[Te(N,{"value-format":"yyyy.MM.dd HH:mm:ss",type:"datetimerange","onUpdate:formattedValue":S[0]||(S[0]=n=>{He(u).Time_start=n[0],He(u).Time_end=n[1]})})]),_:1}),Te(M,{label:"SN",path:"T_sn"},{default:ke(()=>[Te(b,{value:He(u).T_sn,"onUpdate:value":S[1]||(S[1]=n=>He(u).T_sn=n)},null,8,["value"])]),_:1}),Te(M,{label:"探头编号",path:"T_id"},{default:ke(()=>[Te(b,{value:He(u).T_id,"onUpdate:value":S[2]||(S[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(L,{type:"dashboard","gap-position":"bottom",percentage:100},{default:ke(()=>[We("span",nv,Tt(He(w))+"/"+Tt(He(c)),1)]),_:1})]),_:1},8,["show"])]),action:ke(()=>[We("div",ov,[Te(A,{onPositiveClick:I},{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(Tt(He(u).T_sn),1)]),_:1}),Te(B,{label:"探头编号"},{default:ke(()=>[Re(Tt(He(u).T_id),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["show"])],64)}}},cv={__name:"SetVue",emits:["submit"],setup(e,{emit:r}){const t=ki(),a=()=>{Qt.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=Et,y=th,I=ri,j=ur,C=or,p=tr;return Ge(),at(dt,null,[Te(w,{type:"primary",onClick:o},{default:ke(()=>[Re("温湿度上下限设置")]),_:1}),Te(p,{show:He(i),"onUpdate:show":u[4]||(u[4]=x=>Xi(i)?i.value=x:null),"show-icon":!1,preset:"dialog",title:"温湿度上下限设置","positive-text":"确认","negative-text":"取消",onPositiveClick:a},{default:ke(()=>[Te(C,{model:He(s),"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(y,{"title-placement":"center"},{default:ke(()=>[Re(" 温度 ")]),_:1}),Te(j,{label:"上限",path:"value"},{default:ke(()=>[Te(I,{value:He(s).tTop,"onUpdate:value":u[0]||(u[0]=x=>He(s).tTop=x)},null,8,["value"])]),_:1}),Te(j,{label:"下限",path:"value"},{default:ke(()=>[Te(I,{value:He(s).tBottom,"onUpdate:value":u[1]||(u[1]=x=>He(s).tBottom=x)},null,8,["value"])]),_:1}),Te(y,{"title-placement":"center"},{default:ke(()=>[Re(" 湿度 ")]),_:1}),Te(j,{label:"上限",path:"value"},{default:ke(()=>[Te(I,{value:He(s).hTop,"onUpdate:value":u[2]||(u[2]=x=>He(s).hTop=x)},null,8,["value"])]),_:1}),Te(j,{label:"下限",path:"value"},{default:ke(()=>[Te(I,{value:He(s).hBottom,"onUpdate:value":u[3]||(u[3]=x=>He(s).hBottom=x)},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["show"])],64)}}},hv={__name:"ExportVue",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=_t();Xt(()=>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?"":lt(r.pickleveTime[0]),a.Time_end=r.pickleveTime==null?"":lt(r.pickleveTime[1]),a.T_sn_list=s(r.checkData),Sc(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=Et;return Ge(),st(u,{type:"primary",onClick:i},{default:ke(()=>[Re("导出数据")]),_:1})}}},fv={__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=ki(),a=qe({fNum:null,obj:{}});fr(()=>a.fNum,j=>{console.log("开始存",j),t.commit("setfocuFun",j)},{deep:!0,immediate:!0}),xc(()=>{t.commit("setfocuFun",null)});const i=qe({formList:[]});Qt.emit("onFormData",a);const s=()=>{console.log("失去------------------------"),a.fNum=null},o=(j,C)=>{console.log("获得++++++++++++++++++++++++"),a.fNum=C,a.obj=j};fr(()=>r.time,j=>{console.log("单击",lt(j),a.fNum),a.fNum!=null&&(console.log("继续单击",j,a.fNum,a.obj),a.obj.T_label===7&&(i.formList[a.fNum].T_value=lt(j)),a.obj.T_label===12&&(i.formList[a.fNum].T_value[0]=lt(j)),a.fNum=null)}),Qt.on("onSelectionTime",j=>{console.log("读取",j,parseInt(j[0].min),parseInt(j[0].max));let C=lt(parseInt(j[0].min)),p=lt(parseInt(j[0].max));a.fNum!=null&&(a.obj.T_label===9&&(i.formList[a.fNum].T_value=[C,p]),a.obj.T_label===13&&(i.formList[a.fNum].T_value[0]=[C,p]))}),cs(()=>{Qt.off("onSelectionTime")}),fr(()=>i.formList,async(j,C)=>{if(console.log("最新",j,C),C.length!=0){const p=await c(),x=mc();Wc({User_tokey:x,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 j=[];return new Promise(C=>{i.formList.forEach(p=>{let x={...p};x.T_label==3||x.T_label==9?x.T_value!=null?x.T_value=x.T_value.join("|"):x.T_value=null:x.T_label==12?x.T_value=x.T_value.join("/"):x.T_label==13&&(x.T_value[0]!=null&&x.T_value[1]!=null?x.T_value=x.T_value[0].join("|")+"/"+x.T_value[1]:x.T_value[0]==null&&x.T_value[1]!=null?x.T_value="/"+x.T_value[1]:x.T_value[0]!=null&&x.T_value[1]==null?x.T_value=x.T_value[0].join("|")+"/":x.T_value=""),j.push(x)}),C(j)})},u=qe({T_source:3,T_task_id:r.task.T_task_id,T_VerifyTemplate_id:r.task.T_VerifyTemplate_id}),w=j=>{if(i.formList[j].T_value.length!==0)return i.formList[j].T_value=[];i.formList[j].T_value=r.classList.map(C=>C.T_sn)},y=j=>{const C=r.classList.map(p=>p.T_sn);i.formList[j].T_value=C.filter(p=>!i.formList[j].T_value.includes(p))};return(async()=>{try{const{data:j}=await zc(u);i.formList=j.Data||[],i.formList.forEach(C=>{C.T_label===3?C.T_value==""||C.T_value==null?C.T_value=[]:C.T_value=C.T_value.split("|"):C.T_label==9?C.T_value==""||C.T_value==null?C.T_value=null:C.T_value=C.T_value.split("|"):C.T_label===12?C.T_value==""||C.T_value==null?C.T_value=[null,null]:C.T_value.split("/")[0]==""?C.T_value=[null,C.T_value.split("/")[1]]:C.T_value=[C.T_value.split("/")[0],C.T_value.split("/")[1]]:C.T_label===13?C.T_value==""||C.T_value==null||C.T_value=="null"?C.T_value=[null,null]:C.T_value.split("/")[0]==""?C.T_value=[null,C.T_value.split("/")[1]]:C.T_value=[C.T_value.split("/")[0].split("|"),C.T_value.split("/")[1]]:C.T_value=C.T_value?C.T_value:null})}catch(j){console.log(j)}})(),(j,C)=>{const p=Et,x=Da,O=Ca,S=_i,_=fo,N=co,M=ri,b=Gc,F=Xc,P=or;return Ge(),st(P,{"label-width":"auto"},{default:ke(()=>[Te(F,{cols:12,"x-gap":12},{default:ke(()=>[(Ge(!0),at(dt,null,bi(He(i).formList,(L,m)=>(Ge(),st(b,{key:L.T_VerifyTemplateMap_id,span:12,label:L.T_name},{default:ke(()=>[L.T_label===3?(Ge(),st(O,{key:0,value:L.T_value,"onUpdate:value":B=>L.T_value=B,multiple:"","label-field":"T_id","value-field":"T_sn","max-tag-count":"responsive",options:e.classList},{action:ke(()=>[Te(x,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"])):L.T_label===4?(Ge(),st(O,{key:1,value:L.T_value,"onUpdate:value":B=>L.T_value=B,"label-field":"T_id","value-field":"T_sn",options:e.classList},null,8,["value","onUpdate:value","options"])):L.T_label===7?(Ge(),st(S,{key:2,onFocus:B=>o(L,m),onBlur:s,"formatted-value":L.T_value,"onUpdate:formattedValue":B=>L.T_value=B,"value-format":"yyyy-MM-dd HH:mm",type:"datetime",clearable:"",class:"w-full"},null,8,["onFocus","formatted-value","onUpdate:formattedValue"])):L.T_label===9?(Ge(),st(S,{key:3,onFocus:B=>o(L,m),onBlur:s,"formatted-value":L.T_value,"onUpdate:formattedValue":B=>L.T_value=B,"value-format":"yyyy-MM-dd HH:mm",type:"datetimerange",clearable:"",class:"w-full"},null,8,["onFocus","formatted-value","onUpdate:formattedValue"])):L.T_label===10?(Ge(),at(dt,{key:4},[Te(_,{class:"mr-5",width:"100",src:L.T_value},null,8,["src"]),Te(N,{"list-type":"image-card",onChange:B=>j.handleChangeByIndex(B,m),"default-upload":!1,max:1},{default:ke(()=>[Re(" 点击上传 ")]),_:2},1032,["onChange"])],64)):L.T_label===11?(Ge(),at(dt,{key:5},[Te(_,{class:"mr-5",width:"100",src:L.T_value},null,8,["src"]),Te(x,null,{default:ke(()=>[Te(p,{onClick:()=>j.handleEdit(L)},{default:ke(()=>[Re("编辑")]),_:2},1032,["onClick"]),Te(p,{onClick:()=>j.handleRefresh(m)},{default:ke(()=>[Re("刷新")]),_:2},1032,["onClick"])]),_:2},1024)],64)):L.T_label===12?(Ge(),st(x,{key:6,vertical:"",class:"w-full"},{default:ke(()=>[Te(S,{onFocus:B=>o(L,m),onBlur:s,"formatted-value":L.T_value[0],"onUpdate:formattedValue":B=>L.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(M,{value:L.T_value[1],"onUpdate:value":B=>L.T_value[1]=B,type:"text"},null,8,["value","onUpdate:value"])]),_:2},1024)):L.T_label===13?(Ge(),st(x,{key:7,vertical:"",class:"w-full"},{default:ke(()=>[Te(S,{onFocus:B=>o(L,m),onBlur:s,"formatted-value":L.T_value[0],"onUpdate:formattedValue":B=>L.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(M,{value:L.T_value[1],"onUpdate:value":B=>L.T_value[1]=B,type:"text"},null,8,["value","onUpdate:value"])]),_:2},1024)):(Ge(),st(M,{key:8,value:L.T_value,"onUpdate:value":B=>L.T_value=B},null,8,["value","onUpdate:value"]))]),_:2},1032,["label"]))),128))]),_:1})]),_:1})}}},dv={__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=_t();ki();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()=>{_h(u).then(y=>{y.data.Code==200&&(a.success(y.data.Msg),c.value=!1,r("ratioZoomFun"))})},o=()=>new Promise(y=>{u.StartTime=Vt(u.StartTime),u.EndTime=Vt(u.EndTime);const j=[...t.checkData].map(C=>C.T_sn+","+C.T_id);u.SN_List=j.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,I)=>{const j=Et,C=ri,p=ur,x=or,O=tr;return Ge(),at(dt,null,[Te(j,{onClick:w},{default:ke(()=>[Re("等比缩放")]),_:1}),Te(O,{show:He(c),"onUpdate:show":I[3]||(I[3]=S=>Xi(c)?c.value=S:null),style:{width:"400px"},"show-icon":!1,preset:"card",title:"等比缩放"},{footer:ke(()=>[Te(j,{type:"primary",onClick:i},{default:ke(()=>[Re(" 立即提交 ")]),_:1}),Te(j,{onClick:I[2]||(I[2]=S=>c.value=!1),style:{"margin-left":"10px"}},{default:ke(()=>[Re("取消")]),_:1})]),default:ke(()=>[Te(x,{model:He(u),"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(p,{label:"温度比列",path:"value"},{default:ke(()=>[Te(C,{value:He(u).Temperature,"onUpdate:value":I[0]||(I[0]=S=>He(u).Temperature=S)},null,8,["value"])]),_:1}),Te(p,{label:"湿度比列",path:"value"},{default:ke(()=>[Te(C,{value:He(u).Humidity,"onUpdate:value":I[1]||(I[1]=S=>He(u).Humidity=S)},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["show"])],64)}}},uv={style:{overflow:"hidden",display:"flex","flex-direction":"column"}},pv={style:{flex:"1","overflow-y":"auto"}},gv=We("thead",null,[We("tr",null,[We("th",null,"时间"),We("th",null,"操作")])],-1),xv={style:{display:"flex","align-items":"center"}},mv={__name:"OnFile",props:{task:{type:Object,default:()=>({})}},setup(e){const r=e,t=_t(),a=Ma(),i=qe({list:[]}),s=async w=>{const{data:y}=await yh({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 Th({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 kh({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 bh({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 I=Et,j=hs;return Ge(),at("div",uv,[Te(I,{type:"primary",style:{"margin-bottom":"10px",width:"120px"},onClick:c},{default:ke(()=>[Re("备份存档")]),_:1}),We("div",pv,[Te(j,{bordered:!1,"single-line":!1,"max-height":250},{default:ke(()=>[gv,We("tbody",null,[(Ge(!0),at(dt,null,bi(He(i).list,(C,p)=>(Ge(),at("tr",{key:p},[We("td",null,Tt(C.T_time),1),We("td",xv,[Te(I,{style:{"margin-right":"10px"},onClick:x=>s(C)},{default:ke(()=>[Re("恢复")]),_:2},1032,["onClick"]),Te(I,{type:"error",onClick:x=>o(C)},{default:ke(()=>[Re("删除")]),_:2},1032,["onClick"])])]))),128))])]),_:1})])])}}},vv={style:{display:"flex","justify-content":"flex-end"}},yv={__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=_t(),a=Xt(()=>{let p=[...r.classList];return p.forEach(x=>{x.T_snid=x.T_sn+","+x.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),I=()=>{var p;(p=y.value)==null||p.validate(x=>{x||j()})},j=async()=>{let p=await C();wh(p).then(x=>{x.data.Code==200&&(t.success(x.data.Msg),u.value=!1)})},C=()=>new Promise(p=>{i.CopySN=s.value.split(",")[0],i.CopyID=s.value.split(",")[1];let x={...o},O=[...r.checkData];Object.keys(x).forEach(_=>{x[_]=lt(x[_])+":00"});const S=O.map(_=>_.T_sn+","+_.T_id);i.SN_List=S.join("|")+"|",console.log(i,x),p({...i,...x})});return(p,x)=>{const O=Et,S=_i,_=ur,N=Ca,M=or,b=tr;return Ge(),at(dt,null,[Te(O,{onClick:w},{default:ke(()=>[Re("复制到")]),_:1}),Te(b,{style:{width:"40%"},show:u.value,"onUpdate:show":x[5]||(x[5]=F=>u.value=F),title:"复制到:","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(M,{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(S,{value:o.StartTime,"onUpdate:value":x[0]||(x[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(S,{value:o.EndTime,"onUpdate:value":x[1]||(x[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(S,{value:o.CopyTime,"onUpdate:value":x[2]||(x[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(N,{value:s.value,"onUpdate:value":x[3]||(x[3]=F=>s.value=F),"label-field":"T_id","value-field":"T_snid",options:He(a)},null,8,["value","options"])]),_:1}),We("div",vv,[Te(O,{onClick:x[4]||(x[4]=F=>u.value=!1),style:{"margin-right":"10px"}},{default:ke(()=>[Re("取消")]),_:1}),Te(O,{type:"primary",onClick:I},{default:ke(()=>[Re("立即提交")]),_:1})])]),_:1},8,["model","rules"])]),_:1},8,["show"])],64)}}},Tv={style:{display:"flex","justify-content":"flex-end"}},kv={__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=_t(),a=Xt(()=>{let p=[...r.classList];return p.forEach(x=>{x.T_snid=x.T_sn+","+x.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),I=()=>{var p;(p=y.value)==null||p.validate(x=>{x||j()})},j=async()=>{let p=await C();Sh(p).then(x=>{x.data.Code==200&&(t.success(x.data.Msg),u.value=!1)})},C=()=>new Promise(p=>{i.CopySN=s.value.split(",")[0],i.CopyID=s.value.split(",")[1];let x={...o},O=[...r.checkData];Object.keys(x).forEach(_=>{x[_]=lt(x[_])+":00"});const S=O.map(_=>_.T_sn+","+_.T_id);i.SN_List=S.join("|")+"|",console.log(i,x),p({...i,...x})});return(p,x)=>{const O=Et,S=_i,_=ur,N=Ca,M=or,b=tr;return Ge(),at(dt,null,[Te(O,{onClick:w},{default:ke(()=>[Re("平均复制到")]),_:1}),Te(b,{style:{width:"40%"},show:u.value,"onUpdate:show":x[5]||(x[5]=F=>u.value=F),title:"平均复制到:","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(M,{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(S,{value:o.StartTime,"onUpdate:value":x[0]||(x[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(S,{value:o.EndTime,"onUpdate:value":x[1]||(x[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(S,{value:o.CopyTime,"onUpdate:value":x[2]||(x[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(N,{value:s.value,"onUpdate:value":x[3]||(x[3]=F=>s.value=F),"label-field":"T_id","value-field":"T_snid",options:He(a)},null,8,["value","options"])]),_:1}),We("div",Tv,[Te(O,{onClick:x[4]||(x[4]=F=>u.value=!1),style:{"margin-right":"10px"}},{default:ke(()=>[Re("取消")]),_:1}),Te(O,{type:"primary",onClick:I},{default:ke(()=>[Re("立即提交")]),_:1})])]),_:1},8,["model","rules"])]),_:1},8,["show"])],64)}}},bv={__name:"editLeak",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=_t(),a=qe({T_saveT:60,T_task_id:"",SN_List:""}),i=qe({StartTime:null,EndTime:null}),s=Ma(),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:`确定对${lt(i.StartTime)}至${lt(i.EndTime)}进行数据补漏吗?`,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},I=[...r.checkData];Object.keys(y).forEach(C=>{y[C]=lt(y[C])+":00"});const j=I.map(C=>C.T_sn+","+C.T_id);a.SN_List=j.join("|")+"|",console.log(a,y),w({...a,...y})});return(w,y)=>{const I=Et;return Ge(),st(I,{onClick:o},{default:ke(()=>[Re("补漏")]),_:1})}}},_v={__name:"editTendency",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=_t(),a=qe({T_saveT:60,T_task_id:"",SN_List:""}),i=qe({StartTime:null,EndTime:null}),s=Ma(),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();Eh(w).then(y=>{y.data.Code==200&&t.success(y.data.Msg)})},u=()=>new Promise(w=>{let y={...i},I=[...r.checkData];Object.keys(y).forEach(C=>{y[C]=lt(y[C])+":00"});const j=I.map(C=>C.T_sn+","+C.T_id);a.SN_List=j.join("|")+"|",console.log(a,y),w({...a,...y})});return(w,y)=>{const I=Et;return Ge(),st(I,{onClick:o},{default:ke(()=>[Re("趋势")]),_:1})}}},wv={style:{display:"flex","justify-content":"flex-end"}},Sv={__name:"editMath",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=_t();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();Ch(y).then(I=>{I.data.Code==200&&(t.success(I.data.Msg),s.value=!1)})},w=()=>new Promise(y=>{let I={...i},j=[...r.checkData],C={...a};Object.keys(I).forEach(x=>{I[x]=lt(I[x])+":00"});const p=j.map(x=>x.T_sn+","+x.T_id);a.SN_List=p.join("|")+"|",C.TemperatureMin=C.TemperatureMin*100,C.TemperatureMax=C.TemperatureMax*100,C.HumidityMin=C.HumidityMin*100,C.HumidityMax=C.HumidityMax*100,y({...C,...I})});return(y,I)=>{const j=Et,C=Oa,p=ur,x=or,O=tr;return Ge(),at(dt,null,[Te(j,{onClick:o},{default:ke(()=>[Re("偏移(随机)")]),_:1}),Te(O,{show:s.value,"onUpdate:show":I[5]||(I[5]=S=>s.value=S),title:"偏移(随机)","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(x,{"label-placement":"left","label-width":"auto",style:{"margin-top":"20px"}},{default:ke(()=>[Te(p,{label:"最大温度"},{default:ke(()=>[Te(C,{value:a.TemperatureMax,"onUpdate:value":I[0]||(I[0]=S=>a.TemperatureMax=S),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"最小温度"},{default:ke(()=>[Te(C,{value:a.TemperatureMin,"onUpdate:value":I[1]||(I[1]=S=>a.TemperatureMin=S),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"最大湿度"},{default:ke(()=>[Te(C,{value:a.HumidityMax,"onUpdate:value":I[2]||(I[2]=S=>a.HumidityMax=S),style:{width:"100%"}},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"最小湿度"},{default:ke(()=>[Te(C,{value:a.HumidityMin,"onUpdate:value":I[3]||(I[3]=S=>a.HumidityMin=S),style:{width:"100%"}},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),We("div",wv,[Te(j,{onClick:I[4]||(I[4]=S=>s.value=!1),style:{"margin-right":"10px"}},{default:ke(()=>[Re("取消")]),_:1}),Te(j,{type:"primary",onClick:c},{default:ke(()=>[Re("立即提交")]),_:1})])]),_:1})]),_:1},8,["show"])],64)}}},Av={style:{display:"flex","justify-content":"flex-end"}},Ev={__name:"editFixation",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=_t();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();Dh(y).then(I=>{I.data.Code==200&&(t.success(I.data.Msg),s.value=!1)})},w=()=>new Promise(y=>{let I={...i},j=[...r.checkData];Object.keys(I).forEach(p=>{I[p]=lt(I[p])+":00"});const C=j.map(p=>p.T_sn+","+p.T_id);a.SN_List=C.join("|")+"|",y({...a,...I})});return(y,I)=>{const j=Et,C=Oa,p=ur,x=or,O=tr;return Ge(),at(dt,null,[Te(j,{onClick:o},{default:ke(()=>[Re("偏移(固定)")]),_:1}),Te(O,{show:s.value,"onUpdate:show":I[3]||(I[3]=S=>s.value=S),title:"偏移(固定)","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(x,{"label-placement":"left","label-width":"auto",style:{"margin-top":"20px"}},{default:ke(()=>[Te(p,{label:"温度"},{default:ke(()=>[Te(C,{value:a.FixTemperature,"onUpdate:value":I[0]||(I[0]=S=>a.FixTemperature=S),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"湿度"},{default:ke(()=>[Te(C,{value:a.FixHumidity,"onUpdate:value":I[1]||(I[1]=S=>a.FixHumidity=S),style:{width:"100%"}},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),We("div",Av,[Te(j,{onClick:I[2]||(I[2]=S=>s.value=!1),style:{"margin-right":"10px"}},{default:ke(()=>[Re("取消")]),_:1}),Te(j,{type:"primary",onClick:c},{default:ke(()=>[Re("立即提交")]),_:1})])]),_:1})]),_:1},8,["show"])],64)}}},Cv={style:{display:"flex","justify-content":"flex-end"}},Mv={__name:"skewSection",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=_t();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();Mh(y).then(I=>{I.data.Code==200&&(t.success(I.data.Msg),s.value=!1)})},w=()=>new Promise(y=>{let I={...i},j=[...r.checkData];Object.keys(I).forEach(p=>{I[p]=lt(I[p])+":00"});const C=j.map(p=>p.T_sn+","+p.T_id);a.SN_List=C.join("|")+"|",y({...a,...I})});return(y,I)=>{const j=Et,C=Oa,p=ur,x=or,O=tr;return Ge(),at(dt,null,[Te(j,{onClick:o},{default:ke(()=>[Re("偏移(区间)")]),_:1}),Te(O,{show:s.value,"onUpdate:show":I[3]||(I[3]=S=>s.value=S),title:"偏移(区间)","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(x,{"label-placement":"left","label-width":"auto",style:{"margin-top":"20px"}},{default:ke(()=>[Te(p,{label:"最小温度"},{default:ke(()=>[Te(C,{value:a.TemperatureMin,"onUpdate:value":I[0]||(I[0]=S=>a.TemperatureMin=S),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"最大温度"},{default:ke(()=>[Te(C,{value:a.TemperatureMax,"onUpdate:value":I[1]||(I[1]=S=>a.TemperatureMax=S),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),We("div",Cv,[Te(j,{onClick:I[2]||(I[2]=S=>s.value=!1),style:{"margin-right":"10px"}},{default:ke(()=>[Re("取消")]),_:1}),Te(j,{type:"primary",onClick:c},{default:ke(()=>[Re("立即提交")]),_:1})])]),_:1})]),_:1},8,["show"])],64)}}},Dv={style:{display:"flex","justify-content":"flex-end"}},Ov={__name:"editSmooth",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=_t();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();Oh(y).then(I=>{I.data.Code==200&&(t.success(I.data.Msg),s.value=!1)})},w=()=>new Promise(y=>{let I={...i},j=[...r.checkData];Object.keys(I).forEach(p=>{I[p]=lt(I[p])+":00"});const C=j.map(p=>p.T_sn+","+p.T_id);a.SN_List=C.join("|")+"|",y({...a,...I})});return(y,I)=>{const j=Et,C=Oa,p=ur,x=or,O=tr;return Ge(),at(dt,null,[Te(j,{onClick:o},{default:ke(()=>[Re("平滑")]),_:1}),Te(O,{show:s.value,"onUpdate:show":I[3]||(I[3]=S=>s.value=S),title:"平滑","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(x,{"label-placement":"left","label-width":"auto",style:{"margin-top":"20px"}},{default:ke(()=>[Te(p,{label:"温度"},{default:ke(()=>[Te(C,{value:a.tRange,"onUpdate:value":I[0]||(I[0]=S=>a.tRange=S),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"湿度"},{default:ke(()=>[Te(C,{value:a.hRange,"onUpdate:value":I[1]||(I[1]=S=>a.hRange=S),style:{width:"100%"}},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),We("div",Dv,[Te(j,{onClick:I[2]||(I[2]=S=>s.value=!1),style:{"margin-right":"10px"}},{default:ke(()=>[Re("取消")]),_:1}),Te(j,{type:"primary",onClick:c},{default:ke(()=>[Re("立即提交")]),_:1})])]),_:1})]),_:1},8,["show"])],64)}}},Pv={__name:"BesselCurve",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=_t(),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=lt(r.pickleveTime[0]),s=lt(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=Et;return Ge(),at("div",null,[Te(o,{onClick:a},{default:ke(()=>[Re("曲线生成")]),_:1})])}}},Fv={__name:"DeleteTaskClass",props:{task:{type:Object,default:()=>({})},taskClass:{type:Object,default:()=>({})},getClassList:{type:Function,default:()=>{}}},setup(e){const r=e,t=_t(),a=async()=>{try{const{data:i}=await so({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=vc,c=fs;return Ge(),st(c,{onPositiveClick:a},{trigger:ke(()=>[Te(o,{size:"20",style:{cursor:"pointer"}},{default:ke(()=>[Te(He(Rh))]),_:1})]),default:ke(()=>[Re(" 删除操作,是否继续。 ")]),_:1})}}},Lv={class:"h-full flex flex-col gap-y-3"},Iv={class:"flex-1 grid grid-cols-4 gap-x-3",style:{display:"flex"}},Rv={style:{}},Bv={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"10px"}},Nv={style:{display:"flex","align-items":"center","justify-content":"space-between"}},jv=["onDblclick"],Uv={class:"h-full flex flex-col gap-y-3"},Hv={style:{"padding-top":"20px"}},ay={__name:"index",setup(e){const r=ki(),t=lo(jc(),"YYYY-MM-DD HH:mm:ss"),a=io(),{height:i}=Uc(),s=ze(null),o=_t(),c=ze({T_task_id:null,SN_List:null,StartTime:null,EndTime:null,TemperatureMin:"2",TemperatureMax:"8"}),u=ze(!1),w=ze(!1),y=ze(!0),I=ze("");(async()=>{let ne=!1,pe=!1,te=!1;document.addEventListener("keydown",function(re){re.ctrlKey&&(ne=!0),re.altKey&&(pe=!0),re.shiftKey&&(te=!0),ne&&pe&&te&&re.key==="Enter"&&(u.value=!u.value)}),document.addEventListener("keyup",function(re){re.ctrlKey&&(ne=!1),re.altKey&&(pe=!1),re.shiftKey&&(te=!1)})})();const C=()=>{if(I.value="",c.value.T_task_id=v.T_task_id,ie.value==null){o.error("请选择设备");return}else if(ie.value.length==0){o.error("请选择设备");return}else{const ne=[];ie.value.forEach(pe=>{ne.push(pe.T_sn+","+pe.T_id)}),c.value.SN_List=ne.join("|")+"|"}if(U.pickleveTime==null){o.error("请选择查询时间");return}else c.value.StartTime=Vt(U.pickleveTime[0]),c.value.EndTime=Vt(U.pickleveTime[1]);p()},p=async()=>{w.value=!0,y.value=!0,(await Cc(c.value)).data.Code==200&&x()},x=async()=>{const ne=await Mc({T_task_id:c.value.T_task_id});if(ne.data.Data.state==1)setTimeout(()=>{x()},500);else if(ne.data.Data.state==2)y.value=!1,I.value=ne.data.Data.url;else{o.error(ne.data.Data.msg);return}},O=()=>{ie.value=[],A.value=[],G()},S=window.sessionStorage.getItem("task")?JSON.parse(window.sessionStorage.getItem("task")):{},_=ze(null),N=ne=>{ne==null?(v.Time_start="",v.Time_end=""):(v.Time_start=ne[0],v.Time_end=ne[1])},M=()=>{ie.value=[],A.value=[],G()},b=ne=>{console.log("父亲",ne),G()},F=()=>{console.log("失去焦点"),_.value=null},P=ne=>{console.log("获取焦点",ne),_.value=ne},L=qe({showModal:!1,title:""}),m=Ma(),B=()=>{if(console.log("checkValues.value",ie.value),ie.value)if(ie.value.length)m.warning({title:"提示",content:"批量删除操作,是否继续?",positiveText:"确认",negativeText:"取消",onPositiveClick:()=>{T()},onNegativeClick:()=>{o.warning("已取消批量删除")}});else{o.error("请选择至少一项在进行批量操作");return}else{o.error("请选择至少一项在进行批量操作");return}},T=async()=>{var ne=0;for(const pe of ie.value)await so({T_task_id:v.T_task_id,T_sn:pe.T_sn}),ne+=1,ne==ie.value.length&&(G(),o.success("批量删除完成"))},A=ze([]),g=async()=>{const{data:ne}=await wc({T_task_id:v.T_task_id,T_collection_state:4});ne.Code==200&&ne.Msg=="ok!"?o.success("完成编辑"):o.error("编辑失败")},h=qe({T_sn:"",T_id:""}),n=ze(!1),l=ne=>{console.log("双击",ne),h.T_sn=ne.T_sn,h.T_id=ne.T_id,n.value=!0},f=async()=>{try{ie.value=[];const{data:ne}=await Ac({T_task_id:v.T_task_id,T_sn:h.T_sn,T_id:h.T_id});ne.Code===200&&(o.success(ne.Msg),A.value=[],G())}catch(ne){console.log(ne)}},k=qe({T_t:null,T_rh:null}),v=qe({T_task_id:S.T_task_id,T_sn:"",T_id:"",Time_start:"",Time_end:"",page:1,page_z:9999}),G=async()=>{const{data:ne}=await Ec({T_task_id:v.T_task_id});Q.value=ne.Data||[],console.log("发起",Q.value)};G();const U=qe({picktmSta:null,pickleveTime:null}),D=ne=>{_.value==1?U.picktmSta=[parseInt(ne[0].min),parseInt(ne[0].max)]:_.value==2?U.pickleveTime=[parseInt(ne[0].min),parseInt(ne[0].max)]:(v.Time_start="",v.Time_end="")},H=ze(),z=async ne=>{if(ie.value==null){o.error("哎呀,请选择设备在查询哟");return}console.log("ee",U.picktmSta,U.pickleveTime),ne==1&&U.picktmSta!=null?(v.Time_start=lt(parseInt(U.picktmSta[0])),v.Time_end=lt(parseInt(U.picktmSta[1]))):ne==2&&U.pickleveTime!=null?(v.Time_start=lt(parseInt(U.pickleveTime[0])),v.Time_end=lt(parseInt(U.pickleveTime[1]))):(v.Time_start="",v.Time_end="");let pe=[];for(let te=0;te<ie.value.length;te++){v.T_id=ie.value[te].T_id,v.T_sn=ie.value[te].T_sn;const re=await ee();H.value=re,pe.push(Y(re.data.Data.List))}A.value=pe},W=ze("温度"),d=ze(""),R=ze({}),Z=async()=>{const{data:ne}=await Dc({T_task_id:v.T_task_id,Id:R.value[5]});ne.Code===200&&(L.showModal=!1,o.success(`${ne.Msg},点击渲染或搜索更新数据`))},J=async()=>{console.log("88",W.value,R.value,k.T_t,k.T_rh);const{data:ne}=await Oc({T_task_id:v.T_task_id,Id:R.value[5],T_t:W.value=="温度"?k.T_t:R.value[2],T_rh:W.value=="湿度"?k.T_rh:R.value[2],T_time:lt(R.value[0])});ne.Code===200&&(L.showModal=!1,o.success(`${ne.Msg},点击渲染或搜索更新数据`))},Y=ne=>{let pe={name:"",data:[],events:{click(te){d.value=te.point.x,K.value=="温度"?k.T_t=te.point.y:k.T_rh=te.point.y,r.state.focuDatas==null&&(L.showModal=!0),v.T_id=te.point.series.name,L.title=K.value=="温度"?"温度":"湿度";let re=te.point.series.name;const q=A.value.find(ae=>ae.name==re);console.log("点击",q,q.data[te.point.index]),R.value=q.data[te.point.index],console.log("点击",te)}}};if(ne!=null){let te=ne.reverse();pe.name=te[0].T_id,te.forEach(re=>{pe.data.push([new Date(re.T_time).getTime(),K.value=="温度"?re.T_t:re.T_rh,K.value=="温度"?re.T_rh:re.T_t,re.T_sn,re.T_id,re.ID])})}else pe.data=[];return pe},ee=()=>new Promise(ne=>{const pe=Pc(v);setTimeout(()=>{ne(pe)},500)}),E=ze(!1),V=async()=>{E.value?ie.value=Q.value:ie.value=[]},X=()=>{ie.value.length!=Q.value.length?E.value=!1:E.value=!0},Q=ze([]),ie=ze(null),K=ze("温度"),oe=ne=>{W.value=ne,z()},ce=ze("");return yc(()=>{S.T_collection_state===0?a.info({closable:!1,title:"未完成",meta:`当前时间:${t.value}`,duration:2500,keepAliveOnHover:!0}):S.T_collection_state===1?a.info({closable:!1,title:"已完成",meta:`当前时间:${t.value}`,duration:2500,keepAliveOnHover:!0}):S.T_collection_state===2?a.info({closable:!1,title:"处理中",meta:`当前时间:${t.value}`,duration:2500,keepAliveOnHover:!0}):S.T_collection_state===3&&a.info({closable:!1,title:"已采集-无数据",meta:`当前时间:${t.value}`,duration:2500,keepAliveOnHover:!0})}),(ne,pe)=>{const te=Et,re=Yc,q=_i,ae=Bc,se=Da,he=mh,fe=Lc,ye=Nc,me=oh,_e=Fc,be=no,Ce=oo,De=Ea,Be=ri,Fe=ur,Oe=or,Ue=fs,Je=Jc,it=tr,qt=fo,Zt=ho;return Ge(),at(dt,null,[We("div",Lv,[Te(re,{onBack:ne.$router.back},{title:ke(()=>[Re(" 数据编辑 ")]),extra:ke(()=>[Te(te,{type:"primary",onClick:g},{default:ke(()=>[Re("完成编辑")]),_:1})]),_:1},8,["onBack"]),We("div",Iv,[Te(De,{style:{width:"370px","flex-shrink":"0"}},{default:ke(()=>[Te(Ce,{"display-directive":"show"},{default:ke(()=>[Te(be,{name:"1",tab:"设备"},{default:ke(()=>[Te(_e,null,{header:ke(()=>[We("div",Rv,[We("div",Bv,[Te(q,{format:"yyyy-MM-dd HH:mm",value:U.picktmSta,"onUpdate:value":pe[0]||(pe[0]=Xe=>U.picktmSta=Xe),"time-picker-props":{format:"HH:mm"},"onUpdate:formattedValue":N,onFocus:pe[1]||(pe[1]=Xe=>P(1)),onBlur:F,type:"datetimerange",clearable:""},null,8,["value"]),Te(te,{type:"primary",onClick:pe[2]||(pe[2]=Xe=>z(1)),style:{"margin-left":"10px"}},{default:ke(()=>[Re("渲染")]),_:1})]),We("div",Nv,[Te(ae,{checked:E.value,"onUpdate:checked":[pe[3]||(pe[3]=Xe=>E.value=Xe),V],style:{"flex-shrink":"0"}},{default:ke(()=>[Re(" 全选 ")]),_:1},8,["checked"]),We("div",{onClick:B,style:{"text-decoration":"underline",color:"#2d8cf0",cursor:"pointer"}},"批量删除 ")])])]),footer:ke(()=>[Te(me,{type:"info"},{default:ke(()=>[Re(" 传感器总数:"+Tt(Q.value.length),1)]),_:1})]),default:ke(()=>[We("div",{style:Xs([{height:He(i)-400+"px"},{"overflow-y":"auto"}])},[Te(ye,{value:ie.value,"onUpdate:value":[pe[4]||(pe[4]=Xe=>ie.value=Xe),X]},{default:ke(()=>[(Ge(!0),at(dt,null,bi(Q.value,Xe=>(Ge(),st(fe,{key:Xe.T_id,class:"mr-5"},{prefix:ke(()=>[Te(ae,{value:Xe},null,8,["value"])]),suffix:ke(()=>[Te(se,{wrap:!1},{default:ke(()=>[Te(Fv,{task:He(S),taskClass:Xe,getClassList:M},null,8,["task","taskClass"])]),_:2},1024)]),default:ke(()=>[Te(he,null,{header:ke(()=>[We("div",{onDblclick:Ut=>l(Xe)},Tt(Xe.T_id),41,jv)]),description:ke(()=>[Re(Tt(Xe.T_sn),1)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["value"])],4)]),_:1})]),_:1}),Te(be,{name:"2",tab:"表单"},{default:ke(()=>[Te(fv,{task:He(S),ref_key:"formRef",ref:s,"class-list":Q.value,time:d.value,"temporal-interval":ce.value},null,8,["task","class-list","time","temporal-interval"])]),_:1}),Te(be,{name:"3",tab:"存档"},{default:ke(()=>[We("div",{style:Xs({height:He(i)-300+"px"})},[Te(mv,{task:He(S)},null,8,["task"])],4)]),_:1})]),_:1})]),_:1}),Te(De,{style:{flex:"1"}},{default:ke(()=>[We("div",Uv,[Te(se,{justify:"space-between"},{default:ke(()=>[Te(Je,null,{default:ke(()=>[Te(q,{format:"yyyy-MM-dd HH:mm",value:U.pickleveTime,"onUpdate:value":pe[5]||(pe[5]=Xe=>U.pickleveTime=Xe),"time-picker-props":{format:"HH:mm"},onFocus:pe[6]||(pe[6]=Xe=>P(2)),onBlur:F,"onUpdate:formattedValue":N,type:"datetimerange",clearable:""},null,8,["value"]),Te(te,{type:"primary",onClick:pe[7]||(pe[7]=Xe=>z(2)),style:{"margin-right":"20px"}},{default:ke(()=>[Re("渲染")]),_:1}),Te(Ue,{onPositiveClick:C,"show-icon":!1},{trigger:ke(()=>[Te(te,{type:"primary"},{default:ke(()=>[Re("概况图")]),_:1})]),default:ke(()=>[We("div",Hv,[Te(Oe,{model:c.value,"label-width":"auto","label-placement":"left"},{default:ke(()=>[Te(Fe,{label:"下限",path:"value"},{default:ke(()=>[Te(Be,{value:c.value.TemperatureMin,"onUpdate:value":pe[8]||(pe[8]=Xe=>c.value.TemperatureMin=Xe)},null,8,["value"])]),_:1}),Te(Fe,{label:"上限",path:"value"},{default:ke(()=>[Te(Be,{value:c.value.TemperatureMax,"onUpdate:value":pe[9]||(pe[9]=Xe=>c.value.TemperatureMax=Xe)},null,8,["value"])]),_:1})]),_:1},8,["model"])])]),_:1})]),_:1}),Te(se,null,{default:ke(()=>[Te(hv,{queryObj:v,pickleveTime:U.pickleveTime,checkData:ie.value},null,8,["queryObj","pickleveTime","checkData"]),Te(av,{onImportFiles:O,task:He(S)},null,8,["task"]),Te(lv,{task:He(S)},null,8,["task"]),Te(Jh,{"class-list":Q.value,onAddFuns:b,task:He(S)},null,8,["class-list","task"]),Te(cv),u.value?(Ge(),st(dv,{key:0,onRatioZoomFun:pe[10]||(pe[10]=Xe=>z(1)),queryObj:v,pickleveTime:U.pickleveTime,checkData:ie.value},null,8,["queryObj","pickleveTime","checkData"])):kr("",!0),u.value?(Ge(),st(yv,{key:1,queryObj:v,pickleveTime:U.pickleveTime,checkData:ie.value,classList:Q.value},null,8,["queryObj","pickleveTime","checkData","classList"])):kr("",!0),u.value?(Ge(),st(kv,{key:2,queryObj:v,pickleveTime:U.pickleveTime,checkData:ie.value,classList:Q.value},null,8,["queryObj","pickleveTime","checkData","classList"])):kr("",!0),u.value?(Ge(),st(bv,{key:3,queryObj:v,pickleveTime:U.pickleveTime,checkData:ie.value},null,8,["queryObj","pickleveTime","checkData"])):kr("",!0),u.value?(Ge(),st(_v,{key:4,queryObj:v,pickleveTime:U.pickleveTime,checkData:ie.value},null,8,["queryObj","pickleveTime","checkData"])):kr("",!0),u.value?(Ge(),st(Sv,{key:5,queryObj:v,pickleveTime:U.pickleveTime,checkData:ie.value},null,8,["queryObj","pickleveTime","checkData"])):kr("",!0),u.value?(Ge(),st(Ev,{key:6,queryObj:v,pickleveTime:U.pickleveTime,checkData:ie.value},null,8,["queryObj","pickleveTime","checkData"])):kr("",!0),u.value?(Ge(),st(Mv,{key:7,queryObj:v,pickleveTime:U.pickleveTime,checkData:ie.value},null,8,["queryObj","pickleveTime","checkData"])):kr("",!0),u.value?(Ge(),st(Ov,{key:8,queryObj:v,pickleveTime:U.pickleveTime,checkData:ie.value},null,8,["queryObj","pickleveTime","checkData"])):kr("",!0),u.value?(Ge(),st(Pv,{key:9,queryObj:v,pickleveTime:U.pickleveTime,checkData:ie.value},null,8,["queryObj","pickleveTime","checkData"])):kr("",!0)]),_:1})]),_:1}),Te(Ce,{type:"segment",animated:"",value:K.value,"onUpdate:value":[pe[11]||(pe[11]=Xe=>K.value=Xe),oe]},{default:ke(()=>[Te(be,{name:"温度",tab:"温度"},{default:ke(()=>[Te(Gh,{dataList:A.value,onSetTimeFun:D},null,8,["dataList"])]),_:1}),Te(be,{name:"湿度",tab:"湿度"},{default:ke(()=>[Te(Kh,{dataList:A.value,onSetTimeFun:D},null,8,["dataList"])]),_:1})]),_:1},8,["value"])])]),_:1})])]),Te(it,{show:L.showModal,"onUpdate:show":pe[14]||(pe[14]=Xe=>L.showModal=Xe),title:L.title,"show-icon":!1,preset:"dialog"},{default:ke(()=>[L.title==="温度"?(Ge(),st(Fe,{key:0,"show-require-mark":""},{default:ke(()=>[Te(Be,{value:k.T_t,"onUpdate:value":pe[12]||(pe[12]=Xe=>k.T_t=Xe)},null,8,["value"])]),_:1})):(Ge(),st(Fe,{key:1,"show-require-mark":""},{default:ke(()=>[Te(Be,{value:k.T_rh,"onUpdate:value":pe[13]||(pe[13]=Xe=>k.T_rh=Xe)},null,8,["value"])]),_:1})),Te(se,{justify:"end"},{default:ke(()=>[Te(Ue,{onPositiveClick:Z},{trigger:ke(()=>[Te(te,{type:"error"},{default:ke(()=>[Re("删除该点")]),_:1})]),default:ke(()=>[Re(" 是否确认删除? ")]),_:1}),Te(te,{type:"primary",onClick:J},{default:ke(()=>[Re("确定")]),_:1})]),_:1})]),_:1},8,["show","title"]),Te(it,{show:n.value,"onUpdate:show":pe[17]||(pe[17]=Xe=>n.value=Xe),preset:"dialog","positive-text":"确认","negative-text":"取消","show-icon":!1,onPositiveClick:f},{default:ke(()=>[Te(Oe,{model:h,"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(Fe,{label:"编号",path:"T_id"},{default:ke(()=>[Te(Be,{value:h.T_id,"onUpdate:value":pe[15]||(pe[15]=Xe=>h.T_id=Xe)},null,8,["value"])]),_:1}),Te(Fe,{label:"SN",path:"T_sn"},{default:ke(()=>[Te(Be,{value:h.T_sn,"onUpdate:value":pe[16]||(pe[16]=Xe=>h.T_sn=Xe),disabled:"false"},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["show"]),Te(it,{show:w.value,"onUpdate:show":pe[18]||(pe[18]=Xe=>w.value=Xe),title:"概况图",preset:"card",style:{"min-width":"500px","max-width":"600px","min-height":"300px"}},{default:ke(()=>[Te(Zt,{show:y.value},{description:ke(()=>[Re(" 加载中,请稍后... ")]),default:ke(()=>[Te(qt,{width:"500",src:I.value,style:{border:"1px solid #ccc","min-height":"200px"}},null,8,["src"])]),_:1},8,["show"])]),_:1},8,["show"])],64)}}};export{ay as default};
|