import{L as Ql,d as Qr,h as Ze,M as pt,O as Ht,P as Ft,Q as Zi,R as ec,S as Ra,T as Fr,U as Wr,V as tc,z as Gt,W as ns,F as ft,X as Qn,Y as Ci,Z as rc,$ as Bs,a0 as ic,a1 as ac,a2 as sc,a3 as nc,a4 as oc,b as ze,a5 as lc,a6 as cc,a7 as Xr,H as hr,a8 as eo,a9 as hc,_ as ei,aa as Ns,ab as js,ac as Us,ad as Hs,ae as Ws,af as hi,A as Wi,ag as fc,ah as Jt,ai as dc,aj as sr,o as Ve,c as it,a as He,ak as uc,al as pc,am as gc,n as kt,r as qe,y as yi,e as os,t as wt,f as Te,w as ke,q as Ti,l as wa,p as Qt,i as Re,g as We,B as Et,an as Sa,j as At,ao as Aa,v as dr,x as nr,I as to,ap as xc,G as mc,K as Ea,m as vc,aq as yc,s as zs}from"./index-6bdd3627.js";import{r as Tc,_ as kc,a as bc}from"./vue.runtime.esm-bundler-df2335cf.js";import{_ as ls}from"./Table-eca47436.js";import{e as _c}from"./Task-97a6dcc6.js";import{b as Gs,c as ro,d as wc,f as io,h as Sc,g as Ac,T as Ec,i as Cc,j as Mc,k as Dc,a as Oc}from"./TaskData-344dafa1.js";import{a as Pc}from"./Certificate-90c592c5.js";import{_ as ao,a as so,b as Fc,c as Lc}from"./Tabs-9600d8a6.js";import{_ as no,a as oo}from"./Checkbox-04831414.js";import{_ as ki}from"./DatePicker-9b7683f4.js";import{_ as Ca}from"./Space-a20b3545.js";import{a as lo,b as Ic,u as Rc}from"./index-918a5b4f.js";import{_ as co,a as Bc,b as ho,p as Nc,g as jc,c as fo,d as Uc,e as Hc}from"./VerifyTemplateMapData-563d658a.js";import{_ as cs}from"./Popconfirm-315cb639.js";import{A as Wc}from"./Add-5fa19f9e.js";import{_ as zc}from"./PageHeader-ecea8f99.js";import"./get-slot-1efb97e5.js";import"./Tooltip-5c25d189.js";let Xs=!1;function Gc(){if(Ql&&window.CSS&&!Xs&&(Xs=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}const Xc=Qr({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; `}))}}),Vc=pt("input-group",` display: inline-flex; width: 100%; flex-wrap: nowrap; vertical-align: bottom; `,[Ht(">",[pt("input",[Ht("&:not(:last-child)",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `),Ht("&:not(:first-child)",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; margin-left: -1px!important; `)]),pt("button",[Ht("&:not(:last-child)",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `,[Ft("state-border, border",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `)]),Ht("&:not(:first-child)",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `,[Ft("state-border, border",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `)])]),Ht("*",[Ht("&:not(:last-child)",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `,[Ht(">",[pt("input",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `),pt("base-selection",[pt("base-selection-label",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `),pt("base-selection-tags",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `),Ft("box-shadow, border, state-border",` border-top-right-radius: 0!important; border-bottom-right-radius: 0!important; `)])])]),Ht("&:not(:first-child)",` margin-left: -1px!important; border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `,[Ht(">",[pt("input",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `),pt("base-selection",[pt("base-selection-label",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `),pt("base-selection-tags",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `),Ft("box-shadow, border, state-border",` border-top-left-radius: 0!important; border-bottom-left-radius: 0!important; `)])])])])])]),Yc={},$c=Qr({name:"InputGroup",props:Yc,setup(e){const{mergedClsPrefixRef:r}=Zi(e);return ec("-input-group",Vc,r),{mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return Ze("div",{class:`${e}-input-group`},this.$slots)}}),Kc=pt("divider",` position: relative; display: flex; width: 100%; box-sizing: border-box; font-size: 16px; color: var(--n-text-color); transition: color .3s var(--n-bezier), background-color .3s var(--n-bezier); `,[Ra("vertical",` margin-top: 24px; margin-bottom: 24px; `,[Ra("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); `),Fr("title-position-left",[Ft("line",[Fr("left",{width:"28px"})])]),Fr("title-position-right",[Ft("line",[Fr("right",{width:"28px"})])]),Fr("dashed",[Ft("line",` background-color: #0000; height: 0px; width: 100%; border-style: dashed; border-width: 1px 0 0; `)]),Fr("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; `),Ra("dashed",[Ft("line",{backgroundColor:"var(--n-color)"})]),Fr("dashed",[Ft("line",{borderColor:"var(--n-color)"})]),Fr("vertical",{backgroundColor:"var(--n-color)"})]),qc=Object.assign(Object.assign({},Wr.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),Zc=Qr({name:"Divider",props:qc,setup(e){const{mergedClsPrefixRef:r,inlineThemeDisabled:t}=Zi(e),a=Wr("Divider","-divider",Kc,tc,e,r),i=Gt(()=>{const{common:{cubicBezierEaseInOut:o},self:{color:c,textColor:u,fontWeight:_}}=a.value;return{"--n-bezier":o,"--n-color":c,"--n-text-color":u,"--n-font-weight":_}}),s=t?ns("divider",void 0,i,e):void 0;return{mergedClsPrefix:r,cssVars:t?void 0:i,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){var e;const{$slots:r,titlePlacement:t,vertical:a,dashed:i,cssVars:s,mergedClsPrefix:o}=this;return(e=this.onRender)===null||e===void 0||e.call(this),Ze("div",{role:"separator",class:[`${o}-divider`,this.themeClass,{[`${o}-divider--vertical`]:a,[`${o}-divider--no-title`]:!r.default,[`${o}-divider--dashed`]:i,[`${o}-divider--title-position-${t}`]:r.default&&t}],style:s},a?null:Ze("div",{class:`${o}-divider__line ${o}-divider__line--left`}),!a&&r.default?Ze(ft,null,Ze("div",{class:`${o}-divider__title`},this.$slots),Ze("div",{class:`${o}-divider__line ${o}-divider__line--right`})):null)}}),Jc=e=>{const{primaryColor:r,successColor:t,warningColor:a,errorColor:i,infoColor:s,fontWeightStrong:o}=e;return{fontWeight:o,rotate:"252deg",colorStartPrimary:Ci(r,{alpha:.6}),colorEndPrimary:r,colorStartInfo:Ci(s,{alpha:.6}),colorEndInfo:s,colorStartWarning:Ci(a,{alpha:.6}),colorEndWarning:a,colorStartError:Ci(i,{alpha:.6}),colorEndError:i,colorStartSuccess:Ci(t,{alpha:.6}),colorEndSuccess:t}},Qc={name:"GradientText",common:Qn,self:Jc},eh=Qc,th=pt("gradient-text",` display: inline-block; font-weight: var(--n-font-weight); -webkit-background-clip: text; background-clip: text; color: #0000; white-space: nowrap; background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); transition: --n-color-start .3s var(--n-bezier), --n-color-end .3s var(--n-bezier); `),rh=Object.assign(Object.assign({},Wr.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),ih=Qr({name:"GradientText",props:rh,setup(e){Gc();const{mergedClsPrefixRef:r,inlineThemeDisabled:t}=Zi(e),a=Gt(()=>{const{type:_}=e;return _==="danger"?"error":_}),i=Gt(()=>{let _=e.size||e.fontSize;return _&&(_=rc(_)),_||void 0}),s=Gt(()=>{const _=e.color||e.gradient;if(typeof _=="string")return _;if(_){const m=_.deg||0,L=_.from,j=_.to;return`linear-gradient(${m}deg, ${L} 0%, ${j} 100%)`}}),o=Wr("GradientText","-gradient-text",th,eh,e,r),c=Gt(()=>{const{value:_}=a,{common:{cubicBezierEaseInOut:m},self:{rotate:L,[Bs("colorStart",_)]:j,[Bs("colorEnd",_)]:A,fontWeight:p}}=o.value;return{"--n-bezier":m,"--n-rotate":L,"--n-color-start":j,"--n-color-end":A,"--n-font-weight":p}}),u=t?ns("gradient-text",Gt(()=>a.value[0]),c,e):void 0;return{mergedClsPrefix:r,compatibleType:a,styleFontSize:i,styleBgImage:s,cssVars:t?void 0:c,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){const{mergedClsPrefix:e,onRender:r}=this;return r==null||r(),Ze("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),ah=e=>{const{textColorDisabled:r}=e;return{iconColorDisabled:r}},sh=ic({name:"InputNumber",common:Qn,peers:{Button:ac,Input:sc},self:ah}),nh=sh;function oh(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function lh(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^\.\d+$/.test(e))}function Ba(e){return e==null?!0:!Number.isNaN(e)}function Vs(e,r){return e==null?"":r===void 0?String(e):e.toFixed(r)}function Na(e){if(e===null)return null;if(typeof e=="number")return e;{const r=Number(e);return Number.isNaN(r)?null:r}}const ch=Ht([pt("input-number-suffix",` display: inline-block; margin-right: 10px; `),pt("input-number-prefix",` display: inline-block; margin-left: 10px; `)]),Ys=800,$s=100,hh=Object.assign(Object.assign({},Wr.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]}),Ma=Qr({name:"InputNumber",props:hh,setup(e){const{mergedBorderedRef:r,mergedClsPrefixRef:t,mergedRtlRef:a}=Zi(e),i=Wr("InputNumber","-input-number",ch,nh,e,t),{localeRef:s}=nc("InputNumber"),o=oc(e),{mergedSizeRef:c,mergedDisabledRef:u,mergedStatusRef:_}=o,m=ze(null),L=ze(null),j=ze(null),A=ze(e.defaultValue),p=lc(e,"value"),g=cc(p,A),w=ze(""),D=K=>{const ne=String(K).split(".")[1];return ne?ne.length:0},E=K=>{const ne=[e.min,e.max,e.step,K].map(oe=>oe===void 0?0:D(oe));return Math.max(...ne)},N=Xr(()=>{const{placeholder:K}=e;return K!==void 0?K:s.value.placeholder}),M=Xr(()=>{const K=Na(e.step);return K!==null?K===0?1:Math.abs(K):1}),b=Xr(()=>{const K=Na(e.min);return K!==null?K:null}),F=Xr(()=>{const K=Na(e.max);return K!==null?K:null}),P=K=>{const{value:ne}=g;if(K===ne){v();return}const{"onUpdate:value":oe,onUpdateValue:le,onChange:ye}=e,{nTriggerFormInput:te,nTriggerFormChange:re}=o;ye&&hi(ye,K),le&&hi(le,K),oe&&hi(oe,K),A.value=K,te(),re()},I=({offset:K,doUpdateIfValid:ne,fixPrecision:oe,isInputing:le})=>{const{value:ye}=w;if(le&&lh(ye))return!1;const te=(e.parse||oh)(ye);if(te===null)return ne&&P(null),null;if(Ba(te)){const re=D(te),{precision:Z}=e;if(Z!==void 0&&Zae){if(!ne||le)return!1;ie=ae}if(he!==null&&ie{const{value:K}=g;if(Ba(K)){const{format:ne,precision:oe}=e;ne?w.value=ne(K):K===null||oe===void 0||D(K)>oe?w.value=Vs(K,void 0):w.value=Vs(K,oe)}else w.value=String(K)};v();const B=Xr(()=>I({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),T=Xr(()=>{const{value:K}=g;if(e.validator&&K===null)return!1;const{value:ne}=M;return I({offset:-ne,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),S=Xr(()=>{const{value:K}=g;if(e.validator&&K===null)return!1;const{value:ne}=M;return I({offset:+ne,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function x(K){const{onFocus:ne}=e,{nTriggerFormFocus:oe}=o;ne&&hi(ne,K),oe()}function h(K){var ne,oe;if(K.target===((ne=m.value)===null||ne===void 0?void 0:ne.wrapperElRef))return;const le=I({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(le!==!1){const re=(oe=m.value)===null||oe===void 0?void 0:oe.inputElRef;re&&(re.value=String(le||"")),g.value===le&&v()}else v();const{onBlur:ye}=e,{nTriggerFormBlur:te}=o;ye&&hi(ye,K),te(),Wi(()=>{v()})}function n(K){const{onClear:ne}=e;ne&&hi(ne,K)}function l(){const{value:K}=S;if(!K){R();return}const{value:ne}=g;if(ne===null)e.validator||P(G());else{const{value:oe}=M;I({offset:oe,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function f(){const{value:K}=T;if(!K){d();return}const{value:ne}=g;if(ne===null)e.validator||P(G());else{const{value:oe}=M;I({offset:-oe,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const k=x,y=h;function G(){if(e.validator)return null;const{value:K}=b,{value:ne}=F;return K!==null?Math.max(0,K):ne!==null?Math.min(0,ne):0}function U(K){n(K),P(null)}function O(K){var ne,oe,le;!((ne=j.value)===null||ne===void 0)&&ne.$el.contains(K.target)&&K.preventDefault(),!((oe=L.value)===null||oe===void 0)&&oe.$el.contains(K.target)&&K.preventDefault(),(le=m.value)===null||le===void 0||le.activate()}let H=null,z=null,W=null;function d(){W&&(window.clearTimeout(W),W=null),H&&(window.clearInterval(H),H=null)}function R(){J&&(window.clearTimeout(J),J=null),z&&(window.clearInterval(z),z=null)}function q(){d(),W=window.setTimeout(()=>{H=window.setInterval(()=>{f()},$s)},Ys),js("mouseup",document,d,{once:!0})}let J=null;function Y(){R(),J=window.setTimeout(()=>{z=window.setInterval(()=>{l()},$s)},Ys),js("mouseup",document,R,{once:!0})}const ee=()=>{z||l()},C=()=>{H||f()};function V(K){var ne,oe;if(K.key==="Enter"){if(K.target===((ne=m.value)===null||ne===void 0?void 0:ne.wrapperElRef))return;I({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((oe=m.value)===null||oe===void 0||oe.deactivate())}else if(K.key==="ArrowUp"){if(!S.value||e.keyboard.ArrowUp===!1)return;K.preventDefault(),I({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&l()}else if(K.key==="ArrowDown"){if(!T.value||e.keyboard.ArrowDown===!1)return;K.preventDefault(),I({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&f()}}function X(K){w.value=K,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&I({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}hr(g,()=>{v()});const Q={focus:()=>{var K;return(K=m.value)===null||K===void 0?void 0:K.focus()},blur:()=>{var K;return(K=m.value)===null||K===void 0?void 0:K.blur()}},se=eo("InputNumber",a,t);return Object.assign(Object.assign({},Q),{rtlEnabled:se,inputInstRef:m,minusButtonInstRef:L,addButtonInstRef:j,mergedClsPrefix:t,mergedBordered:r,uncontrolledValue:A,mergedValue:g,mergedPlaceholder:N,displayedValueInvalid:B,mergedSize:c,mergedDisabled:u,displayedValue:w,addable:S,minusable:T,mergedStatus:_,handleFocus:k,handleBlur:y,handleClear:U,handleMouseDown:O,handleAddClick:ee,handleMinusClick:C,handleAddMousedown:Y,handleMinusMousedown:q,handleKeyDown:V,handleUpdateDisplayedValue:X,mergedTheme:i,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:Gt(()=>{const{self:{iconColorDisabled:K}}=i.value,[ne,oe,le,ye]=hc(K);return{textColorTextDisabled:`rgb(${ne}, ${oe}, ${le})`,opacityDisabled:`${ye}`}})})},render(){const{mergedClsPrefix:e,$slots:r}=this,t=()=>Ze(Ws,{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:()=>Us(r["minus-icon"],()=>[Ze(Hs,{clsPrefix:e},{default:()=>Ze(Xc,null)})])}),a=()=>Ze(Ws,{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:()=>Us(r["add-icon"],()=>[Ze(Hs,{clsPrefix:e},{default:()=>Ze(Wc,null)})])});return Ze("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},Ze(ei,{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(),Ns(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?[Ns(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)}}))}}),fh=pt("thing",` display: flex; transition: color .3s var(--n-bezier); font-size: var(--n-font-size); color: var(--n-text-color); `,[pt("thing-avatar",` margin-right: 12px; margin-top: 2px; `),pt("thing-avatar-header-wrapper",` display: flex; flex-wrap: nowrap; `,[pt("thing-header-wrapper",` flex: 1; `)]),pt("thing-main",` flex-grow: 1; `,[pt("thing-header",` display: flex; margin-bottom: 4px; justify-content: space-between; align-items: center; `,[Ft("title",` font-size: 16px; font-weight: var(--n-title-font-weight); transition: color .3s var(--n-bezier); color: var(--n-title-text-color); `)]),Ft("description",[Ht("&:not(:last-child)",` margin-bottom: 4px; `)]),Ft("content",[Ht("&:not(:first-child)",` margin-top: 12px; `)]),Ft("footer",[Ht("&:not(:first-child)",` margin-top: 12px; `)]),Ft("action",[Ht("&:not(:first-child)",` margin-top: 12px; `)])])]),dh=Object.assign(Object.assign({},Wr.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean}),uh=Qr({name:"Thing",props:dh,setup(e,{slots:r}){const{mergedClsPrefixRef:t,inlineThemeDisabled:a,mergedRtlRef:i}=Zi(e),s=Wr("Thing","-thing",fh,fc,e,t),o=eo("Thing",i,t),c=Gt(()=>{const{self:{titleTextColor:_,textColor:m,titleFontWeight:L,fontSize:j},common:{cubicBezierEaseInOut:A}}=s.value;return{"--n-bezier":A,"--n-font-size":j,"--n-text-color":m,"--n-title-font-weight":L,"--n-title-text-color":_}}),u=a?ns("thing",void 0,c,e):void 0;return()=>{var _;const{value:m}=t,L=o?o.value:!1;return(_=u==null?void 0:u.onRender)===null||_===void 0||_.call(u),Ze("div",{class:[`${m}-thing`,u==null?void 0:u.themeClass,L&&`${m}-thing--rtl`],style:a?void 0:c.value},r.avatar&&e.contentIndented?Ze("div",{class:`${m}-thing-avatar`},r.avatar()):null,Ze("div",{class:`${m}-thing-main`},!e.contentIndented&&(r.header||e.title||r["header-extra"]||e.titleExtra||r.avatar)?Ze("div",{class:`${m}-thing-avatar-header-wrapper`},r.avatar?Ze("div",{class:`${m}-thing-avatar`},r.avatar()):null,r.header||e.title||r["header-extra"]||e.titleExtra?Ze("div",{class:`${m}-thing-header-wrapper`},Ze("div",{class:`${m}-thing-header`},r.header||e.title?Ze("div",{class:`${m}-thing-header__title`},r.header?r.header():e.title):null,r["header-extra"]||e.titleExtra?Ze("div",{class:`${m}-thing-header__extra`},r["header-extra"]?r["header-extra"]():e.titleExtra):null),r.description||e.description?Ze("div",{class:`${m}-thing-main__description`,style:e.descriptionStyle},r.description?r.description():e.description):null):null):Ze(ft,null,r.header||e.title||r["header-extra"]||e.titleExtra?Ze("div",{class:`${m}-thing-header`},r.header||e.title?Ze("div",{class:`${m}-thing-header__title`},r.header?r.header():e.title):null,r["header-extra"]||e.titleExtra?Ze("div",{class:`${m}-thing-header__extra`},r["header-extra"]?r["header-extra"]():e.titleExtra):null):null,r.description||e.description?Ze("div",{class:`${m}-thing-main__description`,style:e.descriptionStyle},r.description?r.description():e.description):null),r.default||e.content?Ze("div",{class:`${m}-thing-main__content`,style:e.contentStyle},r.default?r.default():e.content):null,r.footer?Ze("div",{class:`${m}-thing-main__footer`},r.footer()):null,r.action?Ze("div",{class:`${m}-thing-main__action`},r.action()):null))}}}),ph=e=>Jt.request({method:"POST",url:"/v3/Data/List",data:e,baseURL:dc}),gh=e=>Jt.request({method:"POST",url:"/TaskDataCopy/Recover",data:e,baseURL:sr}),xh=e=>Jt.request({method:"POST",url:"/TaskDataCopy/Del",data:e,baseURL:sr}),mh=e=>Jt.request({method:"POST",url:"/TaskDataCopy/Add",data:e,baseURL:sr}),vh=e=>Jt.request({method:"POST",url:"/TaskDataCopy/List",data:e,baseURL:sr}),yh=e=>Jt.request({method:"POST",url:"/TaskData/DataGeometricScale",data:e,baseURL:sr}),Th=e=>Jt.request({method:"POST",url:"/TaskData/CopyFromPositionSN",data:e,baseURL:sr}),kh=e=>Jt.request({method:"POST",url:"/TaskData/CopyFromPositionAverageSN",data:e,baseURL:sr}),bh=e=>Jt.request({method:"POST",url:"/TaskData/RepairSensorData",data:e,baseURL:sr}),_h=e=>Jt.request({method:"POST",url:"/TaskData/DataSensorDataTrend",data:e,baseURL:sr}),wh=e=>Jt.request({method:"POST",url:"/TaskData/UpdateRand",data:e,baseURL:sr}),Sh=e=>Jt.request({method:"POST",url:"/TaskData/DataSkewingInterval",data:e,baseURL:sr}),Ah=e=>Jt.request({method:"POST",url:"/TaskData/UpdateFix",data:e,baseURL:sr}),Eh=e=>Jt.request({method:"POST",url:"/TaskData/DataSensorDataSmooth",data:e,baseURL:sr}),Ch={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Mh=He("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),Dh=He("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),Oh=[Mh,Dh],Ph=Qr({name:"Trash",render:function(r,t){return Ve(),it("svg",Ch,Oh)}});var Fh={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,m,_){_.r(m),_.d(m,"Chart",function(){return b}),_.d(m,"default",function(){return F});var m=_(0),L=_.n(m);function j(P,I){return function v(B,T,S){function x(h,n){!L.a.isObject(h,!S)||L.a.isClass(h)||L.a.isDOMElement(h)?B[n]=T[n]:B[n]=v(B[n]||L.a.isArray(h)?[]:{},h,S)}return L.a.isArray(T)?T.forEach(x):L.a.objectEach(T,x),B}({},P,I)}var A=_(1);function p(P){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I})(P)}function g(P){return function(I){if(Array.isArray(I))return w(I)}(P)||function(I){if(typeof Symbol<"u"&&I[Symbol.iterator]!=null||I["@@iterator"]!=null)return Array.from(I)}(P)||function(I,v){var B;if(I)return typeof I=="string"?w(I,v):(B=(B=Object.prototype.toString.call(I).slice(8,-1))==="Object"&&I.constructor?I.constructor.name:B)==="Map"||B==="Set"?Array.from(I):B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?w(I,v):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 w(P,I){(I==null||I>P.length)&&(I=P.length);for(var v=0,B=new Array(I);v',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,I){return I.split(".")[0]<3?E(E({},N),{},{render:function(v){return v("div",{ref:"chart"})},beforeDestroy:function(){this.chart&&this.chart.destroy()},watch:{options:{handler:function(v){var B;(B=this.chart).update.apply(B,[j(v,this.deepCopyOnUpdate)].concat(g(this.updateArgs)))},deep:!0}},mounted:function(){var v=this.highcharts||P;this.options&&v[this.constructorType]?this.chart=v[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.')}}):E(E({},N),{},{render:function(){return Object(A.h)("div",{ref:"chartContainer"})},setup:function(v){var B=Object(A.ref)(null),T=Object(A.ref)({});return Object(A.onMounted)(function(){var S=v.highcharts||P;v.options&&S[v.constructorType]?T.value=S[v.constructorType](B.value,j(v.options,!0),v.callback||null):v.options?console.warn("'".concat(v.constructorType,"' constructor-type is incorrect. Sometimes this error is caused by the fact, that the corresponding module wasn't imported.")):console.warn('The "options" parameter was not passed.')}),Object(A.watch)(function(){return v.options},function(S,x){var h;(h=T.value).update.apply(h,[j(S,v.deepCopyOnUpdate)].concat(g(v.updateArgs)))},{deep:!0}),Object(A.onBeforeUnmount)(function(){T.value&&T.value.destroy()}),{chart:T,chartContainer:B,props:v}}})},b=M(L.a,A.version||_.n(A).a.version);function F(P){var I=1ie?Z-1&&_e[Le]){Be=I(Be),be[Le]=[];for(let Pe=0;Pe-1/0}function N(Z,ie){let ae=Z.length;for(;ae--;)if(Z[ae]===ie){Z.splice(ae,1);break}}function M(Z,ie){const ae=Z.options.index,he=ie.length;let fe;for(fe=Z.options.isInternal?he:0;fe{F(ge)?Z.setAttribute(_e,ge):he?(fe=Z.getAttribute(_e),!fe&&_e==="class"&&(fe=Z.getAttribute(_e+"Name"))):Z.removeAttribute(_e)};return A(ie)?ve(ae,ie):Q(ie,ve),fe}function I(Z){return p(Z)?Z:[Z]}function v(Z,ie,ae){return ie>0?setTimeout(Z,ie,ae):(Z.call(0,ae),-1)}function B(Z){F(Z)&&clearTimeout(Z)}function T(Z,ie){let ae;Z||(Z={});for(ae in ie)Z[ae]=ie[ae];return Z}function S(){const Z=arguments,ie=Z.length;for(let ae=0;ae=Z||!fe&&_e<=(ie[ve]+(ie[ve+1]||ie[ve]))/2));ve++);return ge=d(ge*ae,-Math.round(Math.log(.001)/Math.LN10)),ge}function U(Z,ie){const ae=Z.length;let he,fe;for(fe=0;feae&&(ae=Z[ie]);return ae}function z(Z,ie){Q(Z,function(ae,he){ae&&ae!==ie&&ae.destroy&&ae.destroy(),delete Z[he]})}function W(Z){Z&&Z.parentElement&&Z.parentElement.removeChild(Z)}function d(Z,ie){return Z>1e14?Z:parseFloat(Z.toPrecision(ie||14))}const R={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:24*36e5,week:7*24*36e5,month:28*24*36e5,year:364*24*36e5};Math.easeInOutSine=function(Z){return-.5*(Math.cos(Math.PI*Z)-1)};function q(Z,ie){const ae=!ie;let he,fe,ve,ge;return Z.forEach(_e=>{if(_e.length>1)for(fe=_e.length-1,ge=fe;ge>0;ge--)ve=_e[ge]-_e[ge-1],ve<0&&!ae?(ie==null||ie(),ie=void 0):ve&&(typeof he>"u"||ve"u"||he==="__proto__")return;if(he==="this"){let ve;return g(ie)&&(ve=ie["@this"]),ve??ie}const fe=ie[he];if(!F(fe)||typeof fe=="function"||typeof fe.nodeType=="number"||fe===c)return;ie=fe}return ie}function Y(Z,ie,ae){let he;if(ie==="width"){let ve=Math.min(Z.offsetWidth,Z.scrollWidth);const ge=Z.getBoundingClientRect&&Z.getBoundingClientRect().width;return ge=ve-1&&(ve=Math.floor(ge)),Math.max(0,ve-(Y(Z,"padding-left",!0)||0)-(Y(Z,"padding-right",!0)||0))}if(ie==="height")return Math.max(0,Math.min(Z.offsetHeight,Z.scrollHeight)-(Y(Z,"padding-top",!0)||0)-(Y(Z,"padding-bottom",!0)||0));const fe=c.getComputedStyle(Z,void 0);return fe&&(he=fe.getPropertyValue(ie),S(ae,ie!=="opacity")&&(he=j(he))),he}function ee(Z,ie,ae){return u(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),ie.indexOf(Z,ae)}const C=Array.prototype.find?function(Z,ie){return Z.find(ie)}:function(Z,ie){let ae;const he=Z.length;for(ae=0;aebe.order-Ce.order),function(){K(Z,ie,ae)}}function K(Z,ie,ae){function he(ge,_e){const be=Z.removeEventListener;be&&be.call(Z,ge,_e,!1)}function fe(ge){let _e,be;Z.nodeName&&(ie?(_e={},_e[ie]=!0):_e=ge,Q(_e,function(Ce,De){if(ge[De])for(be=ge[De].length;be--;)he(De,ge[De][be].fn)}))}const ve=typeof Z=="function"&&Z.prototype||Z;if(Object.hasOwnProperty.call(ve,"hcEvents")){const ge=ve.hcEvents;if(ie){const _e=ge[ie]||[];ae?(ge[ie]=_e.filter(function(be){return ae!==be.fn}),he(ie,ae)):(fe(ge),ge[ie]=[])}else fe(ge),delete ve.hcEvents}}function ne(Z,ie,ae,he){let fe;if(ae=ae||{},o.createEvent&&(Z.dispatchEvent||Z.fireEvent&&Z!==i))fe=o.createEvent("Events"),fe.initEvent(ie,!0,!0),ae=T(fe,ae),Z.dispatchEvent?Z.dispatchEvent(ae):Z.fireEvent(ie,ae);else if(Z.hcEvents){ae.target||T(ae,{preventDefault:function(){ae.defaultPrevented=!0},target:Z,type:ie});const ve=[];let ge=Z,_e=!1;for(;ge.hcEvents;)Object.hasOwnProperty.call(ge,"hcEvents")&&ge.hcEvents[ie]&&(ve.length&&(_e=!0),ve.unshift.apply(ve,ge.hcEvents[ie])),ge=Object.getPrototypeOf(ge);_e&&ve.sort((be,Ce)=>be.order-Ce.order),ve.forEach(be=>{be.fn.call(Z,ae)===!1&&ae.preventDefault()})}he&&!ae.defaultPrevented&&he.call(Z,ae)}let oe;const le=function(){const Z=Math.random().toString(36).substring(2,9)+"-";let ie=0;return function(){return"highcharts-"+(oe?"":Z)+ie++}}();function ye(Z){return oe=S(Z,oe)}function te(Z){return typeof Z=="function"}return c.jQuery&&(c.jQuery.fn.highcharts=function(){const Z=[].slice.call(arguments);if(this[0])return Z[0]?(new i[A(Z[0])?Z.shift():"Chart"](this[0],Z[0],Z[1]),this):s[P(this[0],"data-highcharts-chart")]}),{addEvent:se,arrayMax:H,arrayMin:O,attr:P,clamp:m,clearTimeout:B,correctFloat:d,createElement:h,css:x,defined:F,destroyObjectProperties:z,diffObjects:L,discardElement:W,erase:N,error:u,extend:T,extendClass:n,find:C,fireEvent:ne,getClosestDistance:q,getMagnitude:y,getNestedProperty:J,getStyle:Y,inArray:ee,insertItem:M,isArray:p,isClass:D,isDOMElement:w,isFunction:te,isNumber:E,isObject:g,isString:A,keys:V,merge:_,normalizeTickInterval:G,objectEach:Q,offset:X,pad:l,pick:S,pInt:j,pushUnique:b,relativeLength:f,removeEvent:K,splat:I,stableSort:U,syncTimeout:v,timeUnits:R,uniqueKey:le,useSerialIds:ye,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 _{static parse(L){return L?new _(L):_.None}constructor(L){this.rgba=[NaN,NaN,NaN,NaN],this.input=L;const j=i.Color;if(j&&j!==_)return new j(L);this.init(L)}init(L){let j,A,p,g;if(typeof L=="object"&&typeof L.stops<"u")this.stops=L.stops.map(w=>new _(w[1]));else if(typeof L=="string"){if(this.input=L=_.names[L.toLowerCase()]||L,L.charAt(0)==="#"){const w=L.length,D=parseInt(L.substr(1),16);w===7?A=[(D&16711680)>>16,(D&65280)>>8,D&255,1]:w===4&&(A=[(D&3840)>>4|(D&3840)>>8,(D&240)>>4|D&240,(D&15)<<4|D&15,1])}if(!A)for(p=_.parsers.length;p--&&!A;)g=_.parsers[p],j=g.regex.exec(L),j&&(A=g.parse(j))}A&&(this.rgba=A)}get(L){const j=this.input,A=this.rgba;if(typeof j=="object"&&typeof this.stops<"u"){const p=c(j);return p.stops=[].slice.call(p.stops),this.stops.forEach((g,w)=>{p.stops[w]=[p.stops[w][0],g.get(L)]}),p}return A&&o(A[0])?L==="rgb"||!L&&A[3]===1?"rgb("+A[0]+","+A[1]+","+A[2]+")":L==="a"?`${A[3]}`:"rgba("+A.join(",")+")":j}brighten(L){const j=this.rgba;if(this.stops)this.stops.forEach(function(A){A.brighten(L)});else if(o(L)&&L!==0)for(let A=0;A<3;A++)j[A]+=u(L*255),j[A]<0&&(j[A]=0),j[A]>255&&(j[A]=255);return this}setOpacity(L){return this.rgba[3]=L,this}tweenTo(L,j){const A=this.rgba,p=L.rgba;if(!o(A[0])||!o(p[0]))return L.input||"none";const g=p[3]!==1||A[3]!==1;return(g?"rgba(":"rgb(")+Math.round(p[0]+(A[0]-p[0])*(1-j))+","+Math.round(p[1]+(A[1]-p[1])*(1-j))+","+Math.round(p[2]+(A[2]-p[2])*(1-j))+(g?","+(p[3]+(A[3]-p[3])*(1-j)):"")+")"}}return _.names={white:"#ffffff",black:"#000000"},_.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(m){return[u(m[1]),u(m[2]),u(m[3]),parseFloat(m[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(m){return[u(m[1]),u(m[2]),u(m[3]),1]}}],_.None=new _(""),_}),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:_,isObject:m,merge:L,objectEach:j,pad:A,pick:p,splat:g,timeUnits:w}=s,D=i.isSafari&&o.Intl&&o.Intl.DateTimeFormat.prototype.formatRange,E=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(),I=P-this.getTimezoneOffset(F);F.setTime(I);const v=F["getUTC"+b]();return F.setTime(P),v}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 I=this.getTimezoneOffset(F);let v=F.getTime()-I;F.setTime(v),F["setUTC"+b](P);const B=this.getTimezoneOffset(F);return v=F.getTime()+B,F.setTime(v)}return this.useUTC||D&&b==="FullYear"?F["setUTC"+b](P):F["set"+b](P)}update(b={}){const F=p(b.useUTC,!0);this.options=b=L(!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,I,v,B){let T,S,x;return this.useUTC?(T=this.Date.UTC.apply(0,arguments),S=this.getTimezoneOffset(T),T+=S,x=this.getTimezoneOffset(T),S!==x?T+=x-S:S-36e5===this.getTimezoneOffset(T-36e5)&&!E&&(T-=36e5)):T=new this.Date(b,F,p(P,1),p(I,0),p(v,0),p(B,0)).getTime(),T}timezoneOffsetFunction(){const b=this,F=this.options,P=F.getTimezoneOffset,I=F.moment||o.moment;if(!this.useUTC)return function(v){return new Date(v.toString()).getTimezoneOffset()*6e4};if(F.timezone)if(!I)u(25);else return function(v){return-I.tz(v,F.timezone).utcOffset()*6e4};return this.useUTC&&P?function(v){return P(v.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 I=this,v=new this.Date(F),B=this.get("Hours",v),T=this.get("Day",v),S=this.get("Date",v),x=this.get("Month",v),h=this.get("FullYear",v),n=i.defaultOptions.lang,l=n&&n.weekdays,f=n&&n.shortWeekdays,k=_({a:f?f[T]:l[T].substr(0,3),A:l[T],d:A(S),e:A(S,2," "),w:T,b:n.shortMonths[x],B:n.months[x],m:A(x+1),o:x+1,y:h.toString().substr(2,2),Y:h,H:A(B),k:B,I:A(B%12||12),l:B%12||12,M:A(this.get("Minutes",v)),p:B<12?"AM":"PM",P:B<12?"am":"pm",S:A(v.getSeconds()),L:A(Math.floor(F%1e3),3)},i.dateFormats);return j(k,function(y,G){for(;b.indexOf("%"+G)!==-1;)b=b.replace("%"+G,typeof y=="function"?y.call(I,F):y)}),P?b.substr(0,1).toUpperCase()+b.substr(1):b}resolveDTLFormat(b){return m(b,!0)?b:(b=g(b),{main:b[0],from:b[1],to:b[2]})}getTimeTicks(b,F,P,I){const v=this,B=v.Date,T=[],S={},x=new B(F),h=b.unitRange,n=b.count||1;let l,f,k,y;if(I=p(I,1),c(F)){v.set("Milliseconds",x,h>=w.second?0:n*Math.floor(v.get("Milliseconds",x)/n)),h>=w.second&&v.set("Seconds",x,h>=w.minute?0:n*Math.floor(v.get("Seconds",x)/n)),h>=w.minute&&v.set("Minutes",x,h>=w.hour?0:n*Math.floor(v.get("Minutes",x)/n)),h>=w.hour&&v.set("Hours",x,h>=w.day?0:n*Math.floor(v.get("Hours",x)/n)),h>=w.day&&v.set("Date",x,h>=w.month?1:Math.max(1,n*Math.floor(v.get("Date",x)/n))),h>=w.month&&(v.set("Month",x,h>=w.year?0:n*Math.floor(v.get("Month",x)/n)),f=v.get("FullYear",x)),h>=w.year&&(f-=f%n,v.set("FullYear",x,f)),h===w.week&&(y=v.get("Day",x),v.set("Date",x,v.get("Date",x)-y+I+(y4*w.month||v.getTimezoneOffset(F)!==v.getTimezoneOffset(P));let H=x.getTime();for(l=1;H1?H=v.makeTime(f,G,U,O+l*n):H+=h*n,l++;T.push(H),h<=w.hour&&T.length<1e4&&T.forEach(function(z){z%18e5===0&&v.dateFormat("%H%M%S%L",z)==="000000000"&&(S[z]="day")})}return T.info=_(b,{higherRanks:S,totalRange:h*n}),T}getDateFormat(b,F,P,I){const v=this.dateFormat("%m-%d %H:%M:%S.%L",F),B="01-01 00:00:00.000",T={millisecond:15,second:12,minute:9,hour:6,day:3};let S="millisecond",x=S;for(S in w){if(b===w.week&&+this.dateFormat("%w",F)===P&&v.substr(6)===B.substr(6)){S="week";break}if(w[S]>b){S=x;break}if(T[S]&&v.substr(T[S])!==B.substr(T[S]))break;S!=="week"&&(x=S)}return this.resolveDTLFormat(I[S]).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,_){const{isTouchDevice:m,svg:L}=o,{merge:j}=_,A={colors:c.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:i,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:L,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:m?25:10,headerFormat:'{point.key}
',pointFormat:' {series.name}: {point.y}
',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};A.chart.styledMode=!1;const p=new u(A.time);function g(){return A}function w(E){return j(!0,A,E),(E.time||E.global)&&(o.time?o.time.update(j(A.global,A.time,E.global,E.time)):o.time=p),A}return{defaultOptions:A,defaultTime:p,getOptions:g,setOptions:w}}),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:_,objectEach:m}=o;class L{constructor(A,p,g){this.pos=NaN,this.options=p,this.elem=A,this.prop=g}dSetter(){const A=this.paths,p=A&&A[0],g=A&&A[1],w=this.now||0;let D=[];if(w===1||!p||!g)D=this.toD||[];else if(p.length===g.length&&w<1)for(let E=0;E=E+this.startTime?(this.now=this.end,this.pos=1,this.update(),N[this.prop]=!0,b=!0,m(N,function(F){F!==!0&&(b=!1)}),b&&D&&D.call(w),M=!1):(this.pos=g.easing((p-this.startTime)/E),this.now=this.start+(this.end-this.start)*this.pos,this.update(),M=!0),M}initPath(A,p,g){const w=A.startX,D=A.endX,E=g.slice(),N=A.isArea,M=N?2:1;let b,F,P,I,v=p&&p.slice();if(!v)return[E,E];function B(S,x){for(;S.length"u"&&(v=[])}return v.length&&_(b)&&(F=E.length+b*M,I?(B(v,E),T(E)):(B(E,v),T(v))),[v,E]}fillSetter(){L.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,c(this.start).tweenTo(c(this.end),this.pos),void 0,!0)}}return L.timers=[],L}),a(t,"Core/Animation/AnimationUtilities.js",[t["Core/Animation/Fx.js"],t["Core/Utilities.js"]],function(i,s){const{defined:o,getStyle:c,isArray:u,isNumber:_,isObject:m,merge:L,objectEach:j,pick:A}=s;function p(M,b){b.renderer.globalAnimation=A(M,b.options.chart.animation,!0)}function g(M){return m(M)?L({duration:500,defer:0},M):{duration:M?500:0,defer:0}}function w(M,b,F){const P=g(b),I=F?[F]:M.series;let v=0,B=0;return I.forEach(S=>{const x=g(S.options.animation);v=b&&o(b.defer)?P.defer:Math.max(v,x.duration+x.defer),B=Math.min(P.duration,x.duration)}),M.renderer.forExport&&(v=0),{defer:Math.max(0,v-B),duration:Math.min(v,B)}}function D(M,b,F){let P,I="",v,B,T;m(F)||(T=arguments,F={duration:T[2],easing:T[3],complete:T[4]}),_(F.duration)||(F.duration=400),F.easing=typeof F.easing=="function"?F.easing:Math[F.easing]||Math.easeInOutSine,F.curAnim=L(b),j(b,function(S,x){E(M,x),B=new i(M,F,x),v=void 0,x==="d"&&u(b.d)?(B.paths=B.initPath(M,M.pathArray,b.d),B.toD=b.d,P=0,v=1):M.attr?P=M.attr(x):(P=parseFloat(c(M,x))||0,x!=="opacity"&&(I="px")),v||(v=S),typeof v=="string"&&v.match("px")&&(v=v.replace(/px/g,"")),B.run(P,v,I)})}function E(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:D,animObject:g,getDeferredAnimation:w,setAnimation:p,stop:E}}),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:_,css:m,error:L,isFunction:j,isString:A,objectEach:p,splat:g}=s,{trustedTypes:w}=c,D=w&&j(w.createPolicy)&&w.createPolicy("highcharts",{createHTML:b=>b}),E=D?D.createHTML(""):"",N=function(){try{return!!new DOMParser().parseFromString(E,"text/html")}catch{return!1}}();class M{static filterUserAttributes(F){return p(F,(P,I)=>{let v=!0;M.allowedAttributes.indexOf(I)===-1&&(v=!1),["background","dynsrc","href","lowsrc","src"].indexOf(I)!==-1&&(v=A(P)&&M.allowedReferences.some(B=>P.indexOf(B)===0)),v||(L(33,!1,void 0,{"Invalid attribute in config":`${I}`}),delete F[I]),A(P)&&F[I]&&(F[I]=P.replace(/{const v=I.split(":").map(T=>T.trim()),B=v.shift();return B&&v.length&&(P[B.replace(/-([a-z])/g,T=>T[1].toUpperCase())]=v.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(I,v){let B;return g(I).forEach(function(T){const S=T.tagName,x=T.textContent?i.doc.createTextNode(T.textContent):void 0,h=M.bypassHTMLFiltering;let n;if(S)if(S==="#text")n=x;else if(M.allowedTags.indexOf(S)!==-1||h){const l=S==="svg"?o:v.namespaceURI||o,f=i.doc.createElementNS(l,S),k=T.attributes||{};p(T,function(y,G){G!=="tagName"&&G!=="attributes"&&G!=="children"&&G!=="style"&&G!=="textContent"&&(k[G]=y)}),u(f,h?k:M.filterUserAttributes(k)),T.style&&m(f,T.style),x&&f.appendChild(x),P(T.children||[],f),n=f}else L(33,!1,void 0,{"Invalid tagName in config":S});n&&v.appendChild(n),B=n}),B}return P(this.nodes,F)}parseMarkup(F){const P=[];F=F.trim().replace(/ style=(["'])/g," data-style=$1");let I;if(N)I=new DOMParser().parseFromString(D?D.createHTML(F):F,"text/html");else{const B=_("div");B.innerHTML=F,I={body:B}}const v=(B,T)=>{const S=B.nodeName.toLowerCase(),x={tagName:S};S==="#text"&&(x.textContent=B.textContent||"");const h=B.attributes;if(h){const n={};[].forEach.call(h,l=>{l.name==="data-style"?x.style=M.parseStyle(l.value):n[l.name]=l.value}),x.attributes=n}if(B.childNodes.length){const n=[];[].forEach.call(B.childNodes,l=>{v(l,n)}),n.length&&(x.children=n)}T.push(x)};return[].forEach.call(I.body.childNodes,B=>v(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=E,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:_,isArray:m,isNumber:L,isObject:j,isString:A,pick:p,pInt:g}=s,w={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 m(b)?b.map((P,I)=>E(F.body,u(j(P)?P:{"@this":P},{"@index":I,"@first":I===0,"@last":I===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)=>bb*F,ne:(b,F)=>b!=F,subtract:(b,F)=>b-F,unless:b=>!b};function D(b,F,P){return c.dateFormat(b,F,P)}function E(b="",F,P){const I=/\{([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= #\(\)]+)\}/g,v=/\(([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= ]+)\)/g,B=[],T=/f$/,S=/\.([0-9])/,x=o.lang,h=P&&P.time||c,n=P&&P.numberFormatter||N,l=(U="")=>{let O;return U==="true"?!0:U==="false"?!1:(O=Number(U)).toString()===U?O:_(U,F)};let f,k,y=0,G;for(;(f=I.exec(b))!==null;){const U=v.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 O=f[1].split(" ")[0].replace("#","");w[O]&&(k.isBlock&&O===k.fn&&y++,k.fn||(k.fn=O));const H=f[1]==="else";if(k.isBlock&&k.fn&&(f[1]===`/${k.fn}`||H))if(y)H||y--;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:O,elseBody:H,expression:z,fn:W}=U;let d,R;if(W){const q=[U],J=z.split(" ");for(R=w[W].length;R--;)q.unshift(l(J[R+1]));d=w[W].apply(F,q),U.isBlock&&typeof d=="boolean"&&(d=E(d?O:H,F))}else{const q=z.split(":");if(d=l(q.shift()||""),q.length&&typeof d=="number"){const J=q.join(":");if(T.test(J)){const Y=parseInt((J.match(S)||["","-1"])[1],10);d!==null&&(d=n(d,Y,x.decimalPoint,J.indexOf(",")>-1?x.thousandsSep:""))}else d=h.dateFormat(J,d)}}b=b.replace(U.find,p(d,""))}),G?E(b,F,P):b}function N(b,F,P,I){b=+b||0,F=+F;let v,B;const T=o.lang,S=(b.toString().split(".")[1]||"").split("e")[0].length,x=b.toString().split("e"),h=F;F===-1?F=Math.min(S,20):L(F)?F&&x[1]&&x[1]<0&&(B=F+ +x[1],B>=0?(x[0]=(+x[0]).toExponential(B).split("e")[0],F=B):(x[0]=x[0].split(".")[0]||0,F<20?b=(x[0]*Math.pow(10,x[1])).toFixed(F):b=0,x[1]=0)):F=2;const n=(Math.abs(x[1]?x[0]:b)+Math.pow(10,-Math.max(F,S)-1)).toFixed(F),l=String(g(n)),f=l.length>3?l.length%3:0;return P=p(P,T.decimalPoint),I=p(I,T.thousandsSep),v=b<0?"-":"",v+=f?l.substr(0,f)+I:"",+x[1]<0&&!h?v="0":v+=l.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+I),F&&(v+=P+n.slice(-F)),x[1]&&+v!=0&&(v+="e"+x[1]),v}return{dateFormat:D,format:E,helpers:w,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(_){function m(L,j,A){const p=L,g=p.reducedLen||j,w=(I,v)=>(v.rank||0)-(I.rank||0),D=(I,v)=>I.target-v.target;let E,N=!0,M=[],b,F,P=0;for(E=L.length;E--;)P+=L[E].size;if(P>g){for(c(L,w),E=0,P=0;P<=g;)P+=L[E].size,E++;M=L.splice(E-1,L.length)}for(c(L,D),L=L.map(I=>({size:I.size,targets:[I.target],align:o(I.align,.5)}));N;){for(E=L.length;E--;)b=L[E],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(E=L.length,N=!1;E--;)E>0&&L[E-1].pos+L[E-1].size>L[E].pos&&(L[E-1].size+=L[E].size,L[E-1].targets=L[E-1].targets.concat(L[E].targets),L[E-1].align=.5,L[E-1].pos+L[E-1].size>j&&(L[E-1].pos=j-L[E-1].size),L.splice(E,1),N=!0)}return p.push.apply(p,M),E=0,L.some(I=>{let v=0;return(I.targets||[]).some(()=>(p[E].pos=I.pos+v,typeof A<"u"&&Math.abs(p[E].pos-p[E].target)>A?(p.slice(0,E+1).forEach(B=>delete B.pos),p.reducedLen=(p.reducedLen||j)-j*.1,p.reducedLen>j*.1&&m(p,j,A),!0):(v+=p[E].size,E++,!1)))}),c(p,D),p}_.distribute=m}(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:_,stop:m}=i,{deg2rad:L,doc:j,noop:A,svg:p,SVG_NS:g,win:w}=o,{addEvent:D,attr:E,createElement:N,css:M,defined:b,erase:F,extend:P,fireEvent:I,isArray:v,isFunction:B,isObject:T,isString:S,merge:x,objectEach:h,pick:n,pInt:l,syncTimeout:f,uniqueKey:k}=c;class y{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=g}_defaultGetter(U){let O=n(this[U+"Value"],this[U],this.element?this.element.getAttribute(U):null,0);return/^[\-0-9\.]+$/.test(O)&&(O=parseFloat(O)),O}_defaultSetter(U,O,H){H.setAttribute(O,U)}add(U){const O=this.renderer,H=this.element;let z;return U&&(this.parentGroup=U),typeof this.textStr<"u"&&this.element.nodeName==="text"&&O.buildText(this),this.added=!0,(!U||U.handleZ||this.zIndex)&&(z=this.zIndexSetter()),z||(U?U.element:O.box).appendChild(H),this.onAdd&&this.onAdd(),this}addClass(U,O){const H=O?"":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,O,H){const z={},W=this.renderer,d=W.alignedObjects;let R,q,J,Y,ee;U?(this.alignOptions=U,this.alignByTranslate=O,(!H||S(H))&&(this.alignTo=J=H||"renderer",F(d,this),d.push(this),H=void 0)):(U=this.alignOptions,O=this.alignByTranslate,J=this.alignTo),H=n(H,W[J],J==="scrollablePlotBox"?W.plotBox:void 0,W);const C=U.align,V=U.verticalAlign;return R=(H.x||0)+(U.x||0),q=(H.y||0)+(U.y||0),C==="right"?Y=1:C==="center"&&(Y=2),Y&&(R+=(H.width-(U.width||0))/Y),z[O?"translateX":"x"]=Math.round(R),V==="bottom"?ee=1:V==="middle"&&(ee=2),ee&&(q+=(H.height-(U.height||0))/ee),z[O?"translateY":"y"]=Math.round(q),this[this.placed?"animate":"attr"](z),this.placed=!0,this.alignAttr=z,this}alignSetter(U){const O={left:"start",center:"middle",right:"end"};O[U]&&(this.alignValue=U,this.element.setAttribute("text-anchor",O[U]))}animate(U,O,H){const z=_(n(O,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 O=this.element;U.indexOf("contrast")!==-1&&(U=U.replace(/contrast/g,this.renderer.getContrast(O.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,C,V){return 2*Number(C)+V}),this.removeTextOutline();const R=j.createElementNS(g,"tspan");E(R,{class:"highcharts-text-outline",fill:W,stroke:W,"stroke-width":d,"stroke-linejoin":"round"});const q=O.querySelector("textPath")||O;[].forEach.call(q.childNodes,ee=>{const C=ee.cloneNode(!0);C.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(V=>C.removeAttribute(V)),R.appendChild(C)});let J=0;[].forEach.call(q.querySelectorAll("text tspan"),ee=>{J+=Number(ee.getAttribute("dy"))});const Y=j.createElementNS(g,"tspan");Y.textContent="​",E(Y,{x:Number(O.getAttribute("x")),dy:-J}),R.appendChild(Y),q.insertBefore(R,q.firstChild)}}attr(U,O,H,z){const W=this.element,d=y.symbolCustomAttribs;let R,q,J=this,Y,ee;return typeof U=="string"&&typeof O<"u"&&(R=U,U={},U[R]=O),typeof U=="string"?J=(this[U+"Getter"]||this._defaultGetter).call(this,U,W):(h(U,function(V,X){Y=!1,z||m(this,X),this.symbolName&&d.indexOf(X)!==-1&&(q||(this.symbolAttr(U),q=!0),Y=!0),this.rotation&&(X==="x"||X==="y")&&(this.doTransform=!0),Y||(ee=this[X+"Setter"]||this._defaultSetter,ee.call(this,V,X,W))},this),this.afterSetters()),H&&H.call(this),J}clip(U){return this.attr("clip-path",U?"url("+this.renderer.url+"#"+U.id+")":"none")}crisp(U,O){const H=this;O=O||U.strokeWidth||0;const z=Math.round(O)%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=O),U}complexColor(U,O,H){const z=this.renderer;let W,d,R,q,J,Y,ee,C,V,X,Q=[],se;I(this.renderer,"complexColor",{args:arguments},function(){if(U.radialGradient?d="radialGradient":U.linearGradient&&(d="linearGradient"),d){if(R=U[d],J=z.gradients,Y=U.stops,V=H.radialReference,v(R)&&(U[d]=R={x1:R[0],y1:R[1],x2:R[2],y2:R[3],gradientUnits:"userSpaceOnUse"}),d==="radialGradient"&&V&&!b(R.gradientUnits)&&(q=R,R=x(R,z.getRadialAttr(V,q),{gradientUnits:"userSpaceOnUse"})),h(R,function(K,ne){ne!=="id"&&Q.push(ne,K)}),h(Y,function(K){Q.push(K)}),Q=Q.join(","),J[Q])X=J[Q].attr("id");else{R.id=X=k();const K=J[Q]=z.createElement(d).attr(R).add(z.defs);K.radAttr=q,K.stops=[],Y.forEach(function(ne){ne[1].indexOf("rgba")===0?(W=s.parse(ne[1]),ee=W.get("rgb"),C=W.get("a")):(ee=ne[1],C=1);const oe=z.createElement("stop").attr({offset:ne[0],"stop-color":ee,"stop-opacity":C}).add(K);K.stops.push(oe)})}se="url("+z.url+"#"+X+")",H.setAttribute(O,se),H.gradient=Q,U.toString=function(){return se}}})}css(U){const O=this.styles,H={},z=this.element;let W,d=!O;if(O&&h(U,function(R,q){O&&O[q]!==R&&(H[q]=R,d=!0)}),d){O&&(U=P(O,H)),U.width===null||U.width==="auto"?delete this.textWidth:z.nodeName.toLowerCase()==="text"&&U.width&&(W=this.textWidth=l(U.width)),this.styles=U,W&&!p&&this.renderer.forExport&&delete U.width;const R=x(U);z.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(q=>R&&delete R[q]),R.color&&(R.fill=R.color)),M(z,R)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),U.textOutline&&this.applyTextOutline(U.textOutline)),this}dashstyleSetter(U){let O,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(O=z.length;O--;)z[O]=""+l(z[O])*n(H,NaN);U=z.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",U)}}destroy(){const U=this,O=U.element||{},H=U.renderer,z=O.ownerSVGElement;let W=O.nodeName==="SPAN"&&U.parentGroup||void 0,d,R;if(O.onclick=O.onmouseout=O.onmouseover=O.onmousemove=O.point=null,m(U),U.clipPath&&z){const q=U.clipPath;[].forEach.call(z.querySelectorAll("[clip-path],[CLIP-PATH]"),function(J){J.getAttribute("clip-path").indexOf(q.element.id)>-1&&J.removeAttribute("clip-path")}),U.clipPath=q.destroy()}if(U.stops){for(R=0;R!W||!W.join?(W||"").toString():(d?z+" ":"")+W.join(" "),"")),/(NaN| {2}|^$)/.test(U)&&(U="M 0 0"),this[O]!==U&&(H.setAttribute(O,U),this[O]=U)}fadeOut(U){const O=this;O.animate({opacity:0},{duration:n(U,150),complete:function(){O.hide()}})}fillSetter(U,O,H){typeof U=="string"?H.setAttribute(O,U):U&&this.complexColor(U,O,H)}getBBox(U,O){const H=this,{alignValue:z,element:W,renderer:d,styles:R,textStr:q}=H,{cache:J,cacheKeys:Y}=d,ee=W.namespaceURI===H.SVG_NS,C=n(O,H.rotation,0),V=d.styledMode?W&&y.prototype.getStyle.call(W,"font-size"):R&&R.fontSize;let X,Q,se,K,ne;if(b(q)&&(ne=q.toString(),ne.indexOf("<")===-1&&(ne=ne.replace(/[0-9]/g,"0")),ne+=["",d.rootFontSize,V,C,H.textWidth,z,R&&R.textOverflow,R&&R.fontWeight].join(",")),ne&&!U&&(X=J[ne]),!X){if(ee||d.forExport){try{K=this.fakeTS&&function(oe){const le=W.querySelector(".highcharts-text-outline");le&&M(le,{display:oe})},B(K)&&K("none"),X=W.getBBox?P({},W.getBBox()):{width:W.offsetWidth,height:W.offsetHeight,x:0,y:0},B(K)&&K("")}catch{}(!X||X.width<0)&&(X={x:0,y:0,width:0,height:0})}else X=H.htmlGetBBox();if(Q=X.width,se=X.height,ee&&(X.height=se={"11px,17":14,"13px,20":16}[`${V||""},${Math.round(se)}`]||se),C){const oe=Number(W.getAttribute("y")||0)-X.y,le={right:1,center:.5}[z||0]||0,ye=C*L,te=(C-90)*L,re=Q*Math.cos(ye),Z=Q*Math.sin(ye),ie=Math.cos(te),ae=Math.sin(te),he=X.x+le*(Q-re),fe=X.y+oe-le*Z,ve=he+oe*ie,ge=ve+re,_e=ge-se*ie,be=_e-re,Ce=fe+oe*ae,De=Ce+Z,Be=De-se*ae,Le=Be-Z;X.x=Math.min(ve,ge,_e,be),X.y=Math.min(Ce,De,Be,Le),X.width=Math.max(ve,ge,_e,be)-X.x,X.height=Math.max(Ce,De,Be,Le)-X.y}}if(ne&&(q===""||X.height>0)){for(;Y.length>250;)delete J[Y.shift()];J[ne]||Y.push(ne),J[ne]=X}return X}getStyle(U){return w.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,O){this.element=O==="span"?N(O):j.createElementNS(this.SVG_NS,O),this.renderer=U,I(this,"afterInit")}on(U,O){const{onEvents:H}=this;return H[U]&&H[U](),H[U]=D(this.element,U,O),this}opacitySetter(U,O,H){const z=Number(Number(U).toFixed(3));this.opacity=z,H.setAttribute(O,z)}removeClass(U){return this.attr("class",(""+this.attr("class")).replace(S(U)?new RegExp(`(^| )${U}( |$)`):U," ").replace(/ +/g," ").trim())}removeTextOutline(){const U=this.element.querySelector("tspan.highcharts-text-outline");U&&this.safeRemoveChild(U)}safeRemoveChild(U){const O=U.parentNode;O&&O.removeChild(U)}setRadialReference(U){const O=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=U,O&&O.radAttr&&O.animate(this.renderer.getRadialAttr(U,O.radAttr)),this}setTextPath(U,O){O=x(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},O);const H=this.renderer.url,z=this.text||this,W=z.textPath,{attributes:d,enabled:R}=O;if(U=U||W&&W.path,W&&W.undo(),U&&R){const q=D(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 C=J.nodes.slice(0);J.nodes.length=0,J.nodes[0]={tagName:"textPath",attributes:P(d,{"text-anchor":d.textAnchor,href:`${H}#${Y}`}),children:C}}});z.textPath={path:U,undo:q}}else z.attr({dx:0,dy:0}),delete z.textPath;return this.added&&(z.textCache="",this.renderer.buildText(z)),this}shadow(U){var O;const{renderer:H}=this,z=x(((O=this.parentGroup)===null||O===void 0?void 0:O.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,O,H){this[O]=U,H.setAttribute(O,U)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;const U=this.getStyle("stroke-width");let O=0,H;return U.indexOf("px")===U.length-2?O=l(U):U!==""&&(H=j.createElementNS(g,"rect"),E(H,{width:U,"stroke-width":0}),this.element.parentNode.appendChild(H),O=H.getBBox().width,H.parentNode.removeChild(H)),O}symbolAttr(U){const O=this;y.symbolCustomAttribs.forEach(function(H){O[H]=n(U[H],O[H])}),O.attr({d:O.renderer.symbols[O.symbolName](O.x,O.y,O.width,O.height,O)})}textSetter(U){U!==this.textStr&&(delete this.textPxLength,this.textStr=U,this.added&&this.renderer.buildText(this))}titleSetter(U){const O=this.element,H=O.getElementsByTagName("title")[0]||j.createElementNS(this.SVG_NS,"title");O.insertBefore?O.insertBefore(H,O.firstChild):O.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,O){return this.attr({translateX:U,translateY:O})}updateTransform(){const{element:U,matrix:O,rotation:H=0,scaleX:z,scaleY:W,translateX:d=0,translateY:R=0}=this,q=["translate("+d+","+R+")"];b(O)&&q.push("matrix("+O.join(",")+")"),H&&q.push("rotate("+H+" "+n(this.rotationOriginX,U.getAttribute("x"),0)+" "+n(this.rotationOriginY,U.getAttribute("y")||0)+")"),(b(z)||b(W))&&q.push("scale("+n(z,1)+" "+n(W,1)+")"),q.length&&!(this.text||this).textPath&&U.setAttribute("transform",q.join(" "))}visibilitySetter(U,O,H){U==="inherit"?H.removeAttribute(O):this[O]!==U&&H.setAttribute(O,U),this[O]=U}xGetter(U){return this.element.nodeName==="circle"&&(U==="x"?U="cx":U==="y"&&(U="cy")),this._defaultGetter(U)}zIndexSetter(U,O){const H=this.renderer,z=this.parentGroup,W=z||H,d=W.element||H.box,R=this.element,q=d===H.box;let J,Y,ee,C=!1,V,X=this.added,Q;if(b(U)?(R.setAttribute("data-z-index",U),U=+U,this[O]===U&&(X=!1)):b(this[O])&&R.removeAttribute("data-z-index"),this[O]=U,X){for(U=this.zIndex,U&&z&&(z.handleZ=!0),J=d.childNodes,Q=J.length-1;Q>=0&&!C;Q--)Y=J[Q],ee=Y.getAttribute("data-z-index"),V=!b(ee),Y!==R&&(U<0&&V&&!q&&!Q?(d.insertBefore(R,J[Q]),C=!0):(l(ee)<=U||V&&(!b(U)||U>=0))&&(d.insertBefore(R,J[Q+1]),C=!0));C||(d.insertBefore(R,J[q?3:0]),C=!0)}return C}}return y.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],y.prototype.strokeSetter=y.prototype.fillSetter,y.prototype.yGetter=y.prototype.xGetter,y.prototype.matrixSetter=y.prototype.rotationOriginXSetter=y.prototype.rotationOriginYSetter=y.prototype.rotationSetter=y.prototype.scaleXSetter=y.prototype.scaleYSetter=y.prototype.translateXSetter=y.prototype.translateYSetter=y.prototype.verticalAlignSetter=function(G,U){this[U]=G,this.doTransform=!0},y}),a(t,"Core/Renderer/RendererRegistry.js",[t["Core/Globals.js"]],function(i){var s;return function(o){o.rendererTypes={};let c;function u(m=c){return o.rendererTypes[m]||o.rendererTypes[c]}o.getRendererType=u;function _(m,L,j){o.rendererTypes[m]=L,(!c||j)&&(c=m,i.Renderer=L)}o.registerRendererType=_}(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:_,pick:m,removeEvent:L}=s;class j extends i{constructor(p,g,w,D,E,N,M,b,F,P){super(),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.init(p,"g"),this.textStr=g,this.x=w,this.y=D,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 I;typeof E=="string"&&(I=/^url\((.*?)\)$/.test(E),(I||this.renderer.symbols[E])&&(this.symbolKey=E)),this.bBox=j.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=p.styledMode||I,this.deferredAttr={},this.alignFactor=0}alignSetter(p){const g={left:0,center:.5,right:1}[p];g!==this.alignFactor&&(this.alignFactor=g,this.bBox&&u(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(p,g){this.anchorX=p,this.boxAttr(g,Math.round(p)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(p,g){this.anchorY=p,this.boxAttr(g,p-this.ySetting)}boxAttr(p,g){this.box?this.box.attr(p,g):this.deferredAttr[p]=g}css(p){if(p){const g={};p=_(p),j.textProps.forEach(w=>{typeof p[w]<"u"&&(g[w]=p[w],delete p[w])}),this.text.css(g),"fontSize"in g||"fontWeight"in g?this.updateTextPadding():("width"in g||"textOverflow"in g)&&this.updateBoxSize()}return i.prototype.css.call(this,p)}destroy(){L(this.element,"mouseenter"),L(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),i.prototype.destroy.call(this)}fillSetter(p,g){p&&(this.needsBox=!0),this.fill=p,this.boxAttr(g,p)}getBBox(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();const p=this.padding,g=m(this.paddingLeft,p);return{width:this.width,height:this.height,x:this.bBox.x-g,y:this.bBox.y-p}}getCrispAdjust(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(p){this.heightSetting=p}onAdd(){this.text.add(this),this.attr({text:m(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&o(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(p,g){u(p)?p!==this[g]&&(this[g]=p,this.updateTextPadding()):this[g]=void 0}rSetter(p,g){this.boxAttr(g,p)}strokeSetter(p,g){this.stroke=p,this.boxAttr(g,p)}"stroke-widthSetter"(p,g){p&&(this.needsBox=!0),this["stroke-width"]=p,this.boxAttr(g,p)}"text-alignSetter"(p){this.textAlign=p}textSetter(p){typeof p<"u"&&this.text.attr({text:p}),this.updateTextPadding()}updateBoxSize(){const p=this.text,g={},w=this.padding,D=this.bBox=(!u(this.widthSetting)||!u(this.heightSetting)||this.textAlign)&&o(p.textStr)?p.getBBox():j.emptyBBox;let E;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||D.height||0)+2*w;const N=this.renderer.fontMetrics(p);if(this.baselineOffset=w+Math.min((this.text.firstLineMetrics||N).b,D.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)}E=this.getCrispAdjust(),g.x=E,g.y=(this.baseline?-this.baselineOffset:0)+E,g.width=Math.round(this.width),g.height=Math.round(this.height),this.box.attr(c(g,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){const p=this.text;if(!p.textPath){this.updateBoxSize();const g=this.baseline?0:this.baselineOffset;let w=m(this.paddingLeft,this.padding);o(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(w+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(w!==p.x||g!==p.y)&&(p.attr("x",w),p.hasBoxWidthChanged&&(this.bBox=p.getBBox(!0)),typeof g<"u"&&p.attr("y",g)),p.x=w,p.y=g}}widthSetter(p){this.widthSetting=u(p)?p:void 0}getPaddedWidth(){const p=this.padding,g=m(this.paddingLeft,p),w=m(this.paddingRight,p);return(this.widthSetting||this.bBox.width||0)+g+w}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(D,E,N,M,b){const F=[];if(b){const P=b.start||0,I=c(b.r,N),v=c(b.r,M||N),B=.001,T=Math.abs((b.end||0)-P-2*Math.PI)=N?T>E+v&&TE+v&&TM&&B>D+v&&BD+v&&B/g,B=[b,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,E.getStyle("font-size"),this.width].join(",");if(B!==E.textCache){E.textCache=B,delete E.actualWidth;for(let T=P.length;T--;)N.removeChild(P[T]);if(!F&&!this.ellipsis&&!this.width&&!E.textPath&&(b.indexOf(" ")===-1||this.noWrap&&!v.test(b)))N.appendChild(c.createTextNode(this.unescapeEntities(b)));else if(b!==""){I&&I.appendChild(N);const T=new i(b);this.modifyTree(T.nodes),T.addToDOM(N),this.modifyDOM(),this.ellipsis&&(N.textContent||"").indexOf("…")!==-1&&E.attr("title",this.unescapeEntities(E.textStr||"",["<",">"])),I&&I.removeChild(N)}A(this.textOutline)&&E.applyTextOutline&&E.applyTextOutline(this.textOutline)}}modifyDOM(){const E=this.svgElement,N=m(E.element,"x");E.firstLineMetrics=void 0;let M;for(;(M=E.element.firstChild)&&/^[\s\u200B]*$/.test(M.textContent||" ");)E.element.removeChild(M);[].forEach.call(E.element.querySelectorAll("tspan.highcharts-br"),(I,v)=>{I.nextSibling&&I.previousSibling&&(v===0&&I.previousSibling.nodeType===1&&(E.firstLineMetrics=E.renderer.fontMetrics(I.previousSibling)),m(I,{dy:this.getLineHeight(I.nextSibling),x:N}))});const b=this.width||0;if(!b)return;const F=(I,v)=>{const B=I.textContent||"",T=B.replace(/([^\^])-/g,"$1- ").split(" "),S=!this.noWrap&&(T.length>1||E.element.childNodes.length>1),x=this.getLineHeight(v);let h=0,n=E.actualWidth;if(this.ellipsis)B&&this.truncate(I,B,void 0,0,Math.max(0,b-.8*x),(l,f)=>l.substring(0,f)+"…");else if(S){const l=[],f=[];for(;v.firstChild&&v.firstChild!==I;)f.push(v.firstChild),v.removeChild(v.firstChild);for(;T.length;)T.length&&!this.noWrap&&h>0&&(l.push(I.textContent||""),I.textContent=T.join(" ").replace(/- /g,"-")),this.truncate(I,void 0,T,h===0&&n||0,b,(k,y)=>T.slice(0,y).join(" ").replace(/- /g,"-")),n=E.actualWidth,h++;f.forEach(k=>{v.insertBefore(k,I)}),l.forEach(k=>{v.insertBefore(c.createTextNode(k),I);const y=c.createElementNS(u,"tspan");y.textContent="​",m(y,{dy:x,x:N}),v.insertBefore(y,I)})}},P=I=>{[].slice.call(I.childNodes).forEach(B=>{B.nodeType===_.Node.TEXT_NODE?F(B,I):(B.className.baseVal.indexOf("highcharts-br")!==-1&&(E.actualWidth=0),P(B))})};P(E.element)}getLineHeight(E){const N=E.nodeType===_.Node.TEXT_NODE?E.parentElement:E;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(N||this.svgElement.element).h}modifyTree(E){const N=(M,b)=>{const{attributes:F={},children:P,style:I={},tagName:v}=M,B=this.renderer.styledMode;if(v==="b"||v==="strong"?B?F.class="highcharts-strong":I.fontWeight="bold":(v==="i"||v==="em")&&(B?F.class="highcharts-emphasized":I.fontStyle="italic"),I&&I.color&&(I.fill=I.color),v==="br"){F.class="highcharts-br",M.textContent="​";const T=E[b+1];T&&T.textContent&&(T.textContent=T.textContent.replace(/^ +/gm,""))}else v==="a"&&P&&P.some(T=>T.tagName==="#text")&&(M.children=[{children:P,tagName:"tspan"}]);v!=="#text"&&v!=="a"&&(M.tagName="tspan"),L(M,{attributes:F,style:I}),P&&P.filter(T=>T.tagName!=="#text").forEach(N)};E.forEach(N),j(this.svgElement,"afterModifyTree",{nodes:E})}truncate(E,N,M,b,F,P){const I=this.svgElement,{renderer:v,rotation:B}=I,T=[];let S=M?1:0,x=(N||M||"").length,h=x,n,l;const f=function(k,y){const G=y||k,U=E.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(I.rotation=0,l=f(E.textContent.length),b+l>F){for(;S<=x;)h=Math.ceil((S+x)/2),M&&(n=P(M,h)),l=f(h,n&&n.length-1),S===x?S=x+1:l>F?x=h-1:S=h;x===0?E.textContent="":N&&x===N.length-1||(E.textContent=n||P(N||M,h))}M&&M.splice(0,h),I.actualWidth=l,I.rotation=B}unescapeEntities(E,N){return p(this.renderer.escapes,function(M,b){(!N||N.indexOf(M)===-1)&&(E=E.toString().replace(new RegExp(M,"g"),b))}),E}}return w}),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,_,m,L,j){const{charts:A,deg2rad:p,doc:g,isFirefox:w,isMS:D,isWebKit:E,noop:N,SVG_NS:M,symbolSizes:b,win:F}=o,{addEvent:P,attr:I,createElement:v,css:B,defined:T,destroyObjectProperties:S,extend:x,isArray:h,isNumber:n,isObject:l,isString:f,merge:k,pick:y,pInt:G,uniqueKey:U}=j;let O;class H{constructor(W,d,R,q,J,Y,ee){this.alignedObjects=void 0,this.box=void 0,this.boxWrapper=void 0,this.cache=void 0,this.cacheKeys=void 0,this.chartIndex=void 0,this.defs=void 0,this.globalAnimation=void 0,this.gradients=void 0,this.height=void 0,this.imgCount=void 0,this.style=void 0,this.url=void 0,this.width=void 0,this.init(W,d,R,q,J,Y,ee)}init(W,d,R,q,J,Y,ee){const C=this,V=C.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),X=V.element;ee||V.css(this.getStyle(q)),W.appendChild(X),I(W,"dir","ltr"),W.innerHTML.indexOf("xmlns")===-1&&I(X,"xmlns",this.SVG_NS),this.box=X,this.boxWrapper=V,C.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(g.createTextNode("Created with Highcharts 11.1.0")),C.defs=this.createElement("defs").add(),C.allowHTML=Y,C.forExport=J,C.styledMode=ee,C.gradients={},C.cache={},C.cacheKeys=[],C.imgCount=0,C.rootFontSize=V.getStyle("font-size"),C.setSize(d,R,!1);let se,K;w&&W.getBoundingClientRect&&(se=function(){B(W,{left:0,top:0}),K=W.getBoundingClientRect(),B(W,{left:Math.ceil(K.left)-K.left+"px",top:Math.ceil(K.top)-K.top+"px"})},se(),C.unSubPixelFix=P(F,"resize",se))}definition(W){return new i([W]).addToDOM(this.defs.element)}getReferenceURL(){if((w||E)&&g.getElementsByTagName("base").length){if(!T(O)){const W=U(),R=new i([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:W},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${W})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(g.body);B(R,{position:"fixed",top:0,left:0,zIndex:9e5});const q=g.elementFromPoint(6,6);O=(q&&q.id)==="hitme",g.body.removeChild(R)}if(O)return F.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}getStyle(W){return this.style=x({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},W),this.style}setStyle(W){this.boxWrapper.css(this.getStyle(W))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){const W=this,d=W.defs;return W.box=null,W.boxWrapper=W.boxWrapper.destroy(),S(W.gradients||{}),W.gradients=null,W.defs=d.destroy(),W.unSubPixelFix&&W.unSubPixelFix(),W.alignedObjects=null,null}createElement(W){const d=new this.Element;return d.init(this,W),d}getRadialAttr(W,d){return{cx:W[0]-W[2]/2+(d.cx||0)*W[2],cy:W[1]-W[2]/2+(d.cy||0)*W[2],r:(d.r||0)*W[2]}}shadowDefinition(W){const d=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(W).map(q=>W[q])].join("-").replace(/[^a-z0-9\-]/g,""),R=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 L(W).buildSVG()}getContrast(W){const d=s.parse(W).rgba.map(q=>{const J=q/255;return J<=.03928?J/12.92:Math.pow((J+.055)/1.055,2.4)}),R=.2126*d[0]+.7152*d[1]+.0722*d[2];return 1.05/(R+.05)>(R+.05)/.05?"#FFFFFF":"#000000"}button(W,d,R,q,J={},Y,ee,C,V,X){const Q=this.label(W,d,R,V,void 0,void 0,X,void 0,"button"),se=this.styledMode,K=J.states||{};let ne=0;J=k(J),delete J.states;const oe=k({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},J.style);delete J.style;let le=i.filterUserAttributes(J);Q.attr(k({padding:8,r:2},le));let ye,te,re;return se||(le=k({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},le),Y=k(le,{fill:"#e6e6e6"},i.filterUserAttributes(Y||K.hover||{})),ye=Y.style,delete Y.style,ee=k(le,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},i.filterUserAttributes(ee||K.select||{})),te=ee.style,delete ee.style,C=k(le,{style:{color:"#cccccc"}},i.filterUserAttributes(C||K.disabled||{})),re=C.style,delete C.style),P(Q.element,D?"mouseover":"mouseenter",function(){ne!==3&&Q.setState(1)}),P(Q.element,D?"mouseout":"mouseleave",function(){ne!==3&&Q.setState(ne)}),Q.setState=function(Z){if(Z!==1&&(Q.state=ne=Z),Q.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][Z||0]),!se){Q.attr([le,Y,ee,C][Z||0]);const ie=[oe,ye,te,re][Z||0];l(ie)&&Q.css(ie)}},se||(Q.attr(le).css(x({cursor:"default"},oe)),X&&Q.text.css({pointerEvents:"none"})),Q.on("touchstart",Z=>Z.stopPropagation()).on("click",function(Z){ne!==3&&q.call(Q,Z)})}crispLine(W,d,R="round"){const q=W[0],J=W[1];return T(q[1])&&q[1]===J[1]&&(q[1]=J[1]=Math[R](q[1])-d%2/2),T(q[2])&&q[2]===J[2]&&(q[2]=J[2]=Math[R](q[2])+d%2/2),W}path(W){const d=this.styledMode?{}:{fill:"none"};return h(W)?d.d=W:l(W)&&x(d,W),this.createElement("path").attr(d)}circle(W,d,R){const q=l(W)?W:typeof W>"u"?{}:{x:W,y:d,r:R},J=this.createElement("circle");return J.xSetter=J.ySetter=function(Y,ee,C){C.setAttribute("c"+ee,Y)},J.attr(q)}arc(W,d,R,q,J,Y){let ee;l(W)?(ee=W,d=ee.y,R=ee.r,q=ee.innerR,J=ee.start,Y=ee.end,W=ee.x):ee={innerR:q,start:J,end:Y};const C=this.symbol("arc",W,d,R,R,ee);return C.r=R,C}rect(W,d,R,q,J,Y){const ee=l(W)?W:typeof W>"u"?{}:{x:W,y:d,r:J,width:Math.max(R||0,0),height:Math.max(q||0,0)},C=this.createElement("rect");return this.styledMode||(typeof Y<"u"&&(ee["stroke-width"]=Y,x(ee,C.crisp(ee))),ee.fill="none"),C.rSetter=function(V,X,Q){C.r=V,I(Q,{rx:V,ry:V})},C.rGetter=function(){return C.r||0},C.attr(ee)}roundedRect(W){return this.symbol("roundedRect").attr(W)}setSize(W,d,R){const q=this;q.width=W,q.height=d,q.boxWrapper.animate({width:W,height:d},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:y(R,!0)?void 0:0}),q.alignElements()}g(W){const d=this.createElement("g");return W?d.attr({class:"highcharts-"+W}):d}image(W,d,R,q,J,Y){const ee={preserveAspectRatio:"none"};n(d)&&(ee.x=d),n(R)&&(ee.y=R),n(q)&&(ee.width=q),n(J)&&(ee.height=J);const C=this.createElement("image").attr(ee),V=function(X){C.attr({href:W}),Y.call(C,X)};if(Y){C.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});const X=new F.Image;P(X,"load",V),X.src=W,X.complete&&V({})}else C.attr({href:W});return C}symbol(W,d,R,q,J,Y){const ee=this,C=/^url\((.*?)\)$/,V=C.test(W),X=!V&&(this.symbols[W]?W:"circle"),Q=X&&this.symbols[X];let se,K,ne,oe;if(Q)typeof d=="number"&&(K=Q.call(this.symbols,Math.round(d||0),Math.round(R||0),q||0,J||0,Y)),se=this.path(K),ee.styledMode||se.attr("fill","none"),x(se,{symbolName:X||void 0,x:d,y:R,width:q,height:J}),Y&&x(se,Y);else if(V){ne=W.match(C)[1];const le=se=this.image(ne);le.imgwidth=y(Y&&Y.width,b[ne]&&b[ne].width),le.imgheight=y(Y&&Y.height,b[ne]&&b[ne].height),oe=ye=>ye.attr({width:ye.width,height:ye.height}),["width","height"].forEach(function(ye){le[ye+"Setter"]=function(te,re){this[re]=te;const{alignByTranslate:Z,element:ie,width:ae,height:he,imgwidth:fe,imgheight:ve}=this;let ge=this["img"+re];if(T(ge)){let _e=1;Y&&Y.backgroundSize==="within"&&ae&&he?(_e=Math.min(ae/fe,he/ve),ge=Math.round(ge*_e),I(ie,{width:Math.round(fe*_e),height:Math.round(ve*_e)})):ie&&ie.setAttribute(re,ge),Z||this.translate(((ae||0)-fe*_e)/2,((he||0)-ve*_e)/2)}}}),T(d)&&le.attr({x:d,y:R}),le.isImg=!0,T(le.imgwidth)&&T(le.imgheight)?oe(le):(le.attr({width:0,height:0}),v("img",{onload:function(){const ye=A[ee.chartIndex];this.width===0&&(B(this,{position:"absolute",top:"-999em"}),g.body.appendChild(this)),b[ne]={width:this.width,height:this.height},le.imgwidth=this.width,le.imgheight=this.height,le.element&&oe(le),this.parentNode&&this.parentNode.removeChild(this),ee.imgCount--,!ee.imgCount&&ye&&!ye.hasLoaded&&ye.onload()},src:ne}),this.imgCount++)}return se}clipRect(W,d,R,q){const J=U()+"-",Y=this.createElement("clipPath").attr({id:J}).add(this.defs),ee=this.rect(W,d,R,q,0).add(Y);return ee.id=J,ee.clipPath=Y,ee.count=0,ee}text(W,d,R,q){const J=this,Y={};if(q&&(J.allowHTML||!J.forExport))return J.html(W,d,R);Y.x=Math.round(d||0),R&&(Y.y=Math.round(R)),T(W)&&(Y.text=W);const ee=J.createElement("text").attr(Y);return(!q||J.forExport&&!J.allowHTML)&&(ee.xSetter=function(C,V,X){const Q=X.getElementsByTagName("tspan"),se=X.getAttribute(V);for(let K=0,ne;KW.align())}}return x(H.prototype,{Element:u,SVG_NS:M,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:m,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:_,win:m}=i,{css:L,defined:j,extend:A,pick:p,pInt:g}=o,w=[];class D extends s{static compose(N){if(o.pushUnique(w,N)){const M=D.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 I;return F&&(delete N.width,M.textWidth=P,I=!0),N&&N.textOverflow==="ellipsis"&&(N.whiteSpace="nowrap",N.overflow="hidden"),M.styles=A(M.styles,N),L(M.element,N),I&&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,I=N.x||0,v=N.y||0,B=N.textAlign||"left",T={left:0,center:.5,right:1}[B],S=N.styles,x=S&&S.whiteSpace;function h(){return N.textPxLength?N.textPxLength:(L(b,{width:"",whiteSpace:x||"nowrap"}),b.offsetWidth)}if(L(b,{marginLeft:F,marginTop:P}),b.tagName==="SPAN"){const n=N.rotation,l=N.textWidth&&g(N.textWidth),f=[n,B,b.innerHTML,N.textWidth,N.textAlign].join(",");let k,y=!1;if(l!==N.oldTextWidth){const G=h();(l>N.oldTextWidth||G>l)&&(/[ \-]/.test(b.textContent||b.innerText)||b.style.textOverflow==="ellipsis")&&(L(b,{width:G>l||n?l+"px":"auto",display:"block",whiteSpace:x||"normal"}),N.oldTextWidth=l,y=!0)}N.hasBoxWidthChanged=y,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)),L(b,{left:I+(N.xCorr||0)+"px",top:v+(N.yCorr||0)+"px"}),N.cTT=f,N.oldRotation=n,N.oldAlign=B}}setSpanRotation(N,M,b){const F=()=>u&&!/Edge/.test(m.navigator.userAgent)?"-ms-transform":_?"-webkit-transform":c?"MozTransform":m.opera?"-o-transform":void 0,P={},I=F();I&&(P[I]=P.transform="rotate("+N+"deg)",P[I+(c?"Origin":"-origin")]=P.transformOrigin=M*100+"% "+b+"px",L(this.element,P))}}return D}),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:_,extend:m,pick:L}=c,j=[];class A extends o{static compose(g){if(c.pushUnique(j,g)){const w=A.prototype,D=g.prototype;D.html=w.html}return g}html(g,w,D){const E=this.createElement("span"),N=E.element,M=E.renderer,b=function(F,P){["opacity","visibility"].forEach(function(I){F[I+"Setter"]=function(v,B,T){const S=F.div?F.div.style:P;s.prototype[I+"Setter"].call(this,v,B,T),S&&(S[B]=v)}}),F.addedSetters=!0};return E.textSetter=function(F){F!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,i.setElementHTML(this.element,L(F,"")),this.textStr=F,E.doTransform=!0)},b(E,E.element.style),E.xSetter=E.ySetter=E.alignSetter=E.rotationSetter=function(F,P){P==="align"?E.alignValue=E.textAlign=F:E[P]=F,E.doTransform=!0},E.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},E.attr({text:g,x:Math.round(w),y:Math.round(D)}).css({position:"absolute"}),M.styledMode||E.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),N.style.whiteSpace="nowrap",E.css=E.htmlCss,E.add=function(F){const P=M.box.parentNode,I=[];let v,B;if(this.parentGroup=F,F){if(v=F.div,!v){for(B=F;B;)I.push(B),B=B.parentGroup;I.reverse().forEach(function(T){const S=u(T.element,"class");function x(l,f){T[f]=l,f==="translateX"?n.left=l+"px":n.top=l+"px",T.doTransform=!0}const h=T.styles||{};v=T.div=T.div||_("div",S?{className:S}:void 0,{position:"absolute",left:(T.translateX||0)+"px",top:(T.translateY||0)+"px",display:T.display,opacity:T.opacity,visibility:T.visibility},v||P);const n=v.style;m(T,{classSetter:function(l){return function(f){this.element.setAttribute("class",f),l.className=f}}(v),css:function(l){return E.css.call(T,l),["cursor","pointerEvents"].forEach(f=>{l[f]&&(n[f]=l[f])}),T},on:function(){return I[0].div&&E.on.apply({element:I[0].div,onEvents:T.onEvents},arguments),T},translateXSetter:x,translateYSetter:x}),T.addedSetters||b(T),T.css(h)})}}else v=P;return v.appendChild(N),E.added=!0,E.alignOnAdd&&E.htmlUpdateTransform(),E},E}}return A}),a(t,"Core/Axis/AxisDefaults.js",[],function(){var i;return function(s){s.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},s.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){const{numberFormatter:o}=this.axis.chart;return o(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},s.defaultLeftAxisOptions={title:{rotation:270}},s.defaultRightAxisOptions={title:{rotation:90}},s.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},s.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}}}(i||(i={})),i}),a(t,"Core/Foundation.js",[t["Core/Utilities.js"]],function(i){const{addEvent:s,isFunction:o,objectEach:c,removeEvent:u}=i;var _;return function(m){function L(j,A){j.eventOptions=j.eventOptions||{},c(A.events,function(p,g){j.eventOptions[g]!==p&&(j.eventOptions[g]&&(u(j,g,j.eventOptions[g]),delete j.eventOptions[g]),o(p)&&(j.eventOptions[g]=p,s(j,g,p,{order:0})))})}m.registerEventOptions=L}(_||(_={})),_}),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:_,defined:m,destroyObjectProperties:L,extend:j,fireEvent:A,isNumber:p,merge:g,objectEach:w,pick:D}=o;class E{constructor(M,b,F,P,I){this.isNew=!0,this.isNewLabel=!0,this.axis=M,this.pos=b,this.type=F||"",this.parameters=I||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,A(this,"init"),!F&&!P&&this.addLabel()}addLabel(){const M=this,b=M.axis,F=b.options,P=b.chart,I=b.categories,v=b.logarithmic,B=b.names,T=M.pos,S=D(M.options&&M.options.labels,F.labels),x=b.tickPositions,h=T===x[0],n=T===x[x.length-1],l=(!S.step||S.step===1)&&b.tickInterval===1,f=x.info;let k=M.label,y,G,U,O=this.parameters.category||(I?D(I[T],B[T],T):T);v&&p(O)&&(O=_(v.lin2log(O))),b.dateTime&&(f?(G=P.time.resolveDTLFormat(F.dateTimeLabelFormats[!F.grid&&f.higherRanks[T]||f.unitName]),y=G.main):p(O)&&(y=b.dateTime.getXDateFormat(O,F.dateTimeLabelFormats||{}))),M.isFirst=h,M.isLast=n;const H={axis:b,chart:P,dateTimeLabelFormat:y,isFirst:h,isLast:n,pos:T,tick:M,tickPositionInfo:f,value:O};A(this,"labelFormat",H);const z=R=>S.formatter?S.formatter.call(R,R):S.format?(R.text=b.defaultLabelFormatter.call(R,R),i.format(S.format,R,P)):b.defaultLabelFormatter.call(R,R),W=z.call(H,H),d=G&&G.list;d?M.shortenLabel=function(){for(U=0;US&&(G=S-M.x+G*n,U=-1),G=Math.min(f,G),GG||F.autoRotation&&(x.styles||{}).width)&&(z=G)):h<0&&I-n*l0&&I+n*l>S&&(z=Math.round((v-I)/Math.cos(h*c))),z&&(b.shortenLabel?b.shortenLabel():(y.width=Math.floor(z)+"px",(P.style||{}).textOverflow||(y.textOverflow="ellipsis"),x.css(y)))}moveLabel(M,b){const F=this,P=F.label,I=F.axis;let v=!1,B;P&&P.textStr===M?(F.movedLabel=P,v=!0,delete F.label):w(I.ticks,function(T){!v&&!T.isNew&&T!==F&&T.label&&T.label.textStr===M&&(F.movedLabel=T.label,v=!0,T.labelPos=F.movedLabel.xy,delete T.label)}),!v&&(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,I=P.axis,v=I.horiz,B=P.pos,T=D(P.tickmarkOffset,I.tickmarkOffset),S=P.getPosition(v,B,T,b),x=S.x,h=S.y,n=v&&x===I.pos+I.len||!v&&h===I.pos?-1:1,l=D(F,P.label&&P.label.newOpacity,1);F=D(F,1),this.isActive=!0,this.renderGridLine(b,F,n),this.renderMark(S,F,n),this.renderLabel(S,b,l,M),P.isNew=!1,A(this,"afterRender")}renderGridLine(M,b,F){const P=this,I=P.axis,v=I.options,B={},T=P.pos,S=P.type,x=D(P.tickmarkOffset,I.tickmarkOffset),h=I.chart.renderer;let n=P.gridLine,l,f=v.gridLineWidth,k=v.gridLineColor,y=v.gridLineDashStyle;P.type==="minor"&&(f=v.minorGridLineWidth,k=v.minorGridLineColor,y=v.minorGridLineDashStyle),n||(I.chart.styledMode||(B.stroke=k,B["stroke-width"]=f||0,B.dashstyle=y),S||(B.zIndex=1),M&&(b=0),P.gridLine=n=h.path().attr(B).addClass("highcharts-"+(S?S+"-":"")+"grid-line").add(I.gridGroup)),n&&(l=I.getPlotLinePath({value:T+x,lineWidth:n.strokeWidth()*F,force:"pass",old:M,acrossPanes:!1}),l&&n[M||P.isNew?"attr":"animate"]({d:l,opacity:b}))}renderMark(M,b,F){const P=this,I=P.axis,v=I.options,B=I.chart.renderer,T=P.type,S=I.tickSize(T?T+"Tick":"tick"),x=M.x,h=M.y,n=D(v[T!=="minor"?"tickWidth":"minorTickWidth"],!T&&I.isXAxis?1:0),l=v[T!=="minor"?"tickColor":"minorTickColor"];let f=P.mark;const k=!f;S&&(I.opposite&&(S[0]=-S[0]),f||(P.mark=f=B.path().addClass("highcharts-"+(T?T+"-":"")+"tick").add(I.axisGroup),I.chart.styledMode||f.attr({stroke:l,"stroke-width":n})),f[k?"attr":"animate"]({d:P.getMarkPath(x,h,S[0],f.strokeWidth()*F,I.horiz,B),opacity:b}))}renderLabel(M,b,F,P){const I=this,v=I.axis,B=v.horiz,T=v.options,S=I.label,x=T.labels,h=x.step,n=D(I.tickmarkOffset,v.tickmarkOffset),l=M.x,f=M.y;let k=!0;S&&p(l)&&(S.xy=M=I.getLabelPosition(l,f,S,B,x,n,P,h),I.isFirst&&!I.isLast&&!T.showFirstLabel||I.isLast&&!I.isFirst&&!T.showLastLabel?k=!1:B&&!x.step&&!x.rotation&&!b&&F!==0&&I.handleOverflow(M),h&&P%h&&(k=!1),k&&p(M.y)?(M.opacity=F,S[I.isNewLabel?"attr":"animate"](M).show(!0),I.isNewLabel=!1):(S.hide(),I.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 E}),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,_,m,L){const{animObject:j}=i,{defaultOptions:A}=c,{registerEventOptions:p}=u,{deg2rad:g}=_,{arrayMax:w,arrayMin:D,clamp:E,correctFloat:N,defined:M,destroyObjectProperties:b,erase:F,error:P,extend:I,fireEvent:v,getClosestDistance:B,insertItem:T,isArray:S,isNumber:x,isString:h,merge:n,normalizeTickInterval:l,objectEach:f,pick:k,relativeLength:y,removeEvent:G,splat:U,syncTimeout:O}=L,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,q){this.alternateBands=void 0,this.bottom=void 0,this.chart=void 0,this.closestPointRange=void 0,this.coll=void 0,this.eventOptions=void 0,this.hasNames=void 0,this.hasVisibleSeries=void 0,this.height=void 0,this.index=void 0,this.isLinked=void 0,this.labelEdge=void 0,this.labelFormatter=void 0,this.left=void 0,this.len=void 0,this.max=void 0,this.maxLabelLength=void 0,this.min=void 0,this.minorTickInterval=void 0,this.minorTicks=void 0,this.minPixelPadding=void 0,this.names=void 0,this.offset=void 0,this.options=void 0,this.overlap=void 0,this.paddedTicks=void 0,this.plotLinesAndBands=void 0,this.plotLinesAndBandsGroups=void 0,this.pointRange=void 0,this.pointRangePadding=void 0,this.pos=void 0,this.positiveValuesOnly=void 0,this.right=void 0,this.series=void 0,this.side=void 0,this.tickAmount=void 0,this.tickInterval=void 0,this.tickmarkOffset=void 0,this.tickPositions=void 0,this.tickRotCorr=void 0,this.ticks=void 0,this.top=void 0,this.transA=void 0,this.transB=void 0,this.translationSlope=void 0,this.userOptions=void 0,this.visible=void 0,this.width=void 0,this.zoomEnabled=void 0,this.init(d,R,q)}init(d,R,q=this.coll){const J=q==="xAxis",Y=this;Y.chart=d,Y.horiz=Y.isZAxis||(d.inverted?!J:J),Y.isXAxis=J,Y.coll=q,v(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,C=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=x(C.rotation)?C.rotation:void 0,p(Y,ee),v(this,"afterInit")}setOptions(d){this.options=n(s.defaultXAxisOptions,this.coll==="yAxis"&&s.defaultYAxisOptions,[s.defaultTopAxisOptions,s.defaultRightAxisOptions,s.defaultBottomAxisOptions,s.defaultLeftAxisOptions][this.side],n(A[this.coll],d)),v(this,"afterSetOptions",{userOptions:d})}defaultLabelFormatter(d){const R=this.axis,q=this.chart,{numberFormatter:J}=q,Y=x(this.value)?this.value:NaN,ee=R.chart.time,C=R.categories,V=this.dateTimeLabelFormat,X=A.lang,Q=X.numericSymbols,se=X.numericSymbolMagnitude||1e3,K=R.logarithmic?Math.abs(Y):R.tickInterval;let ne=Q&&Q.length,oe,le;if(C)le=`${this.value}`;else if(V)le=ee.dateFormat(V,Y);else if(ne&&K>=1e3)for(;ne--&&typeof le>"u";)oe=Math.pow(se,ne+1),K>=oe&&Y*10%oe===0&&Q[ne]!==null&&Y!==0&&(le=J(Y/oe,-1)+Q[ne]);return typeof le>"u"&&(Math.abs(Y)>=1e4?le=J(Y,-1):le=J(Y,-1,void 0,"")),le}getSeriesExtremes(){const d=this,R=d.chart;let q;v(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,C=Y.threshold,V,X;if(d.hasVisibleSeries=!0,d.positiveValuesOnly&&C<=0&&(C=null),d.isXAxis)ee=J.xData,ee&&ee.length&&(ee=d.logarithmic?ee.filter(Q=>Q>0):ee,q=J.getXExtremes(ee),V=q.min,X=q.max,!x(V)&&!(V instanceof Date)&&(ee=ee.filter(x),q=J.getXExtremes(ee),V=q.min,X=q.max),ee.length&&(d.dataMin=Math.min(k(d.dataMin,V),V),d.dataMax=Math.max(k(d.dataMax,X),X)));else{const Q=J.applyExtremes();x(Q.dataMin)&&(V=Q.dataMin,d.dataMin=Math.min(k(d.dataMin,V),V)),x(Q.dataMax)&&(X=Q.dataMax,d.dataMax=Math.max(k(d.dataMax,X),X)),M(C)&&(d.threshold=C),(!Y.softThreshold||d.positiveValuesOnly)&&(d.softThreshold=!1)}}})}),v(this,"afterGetSeriesExtremes")}translate(d,R,q,J,Y,ee){const C=this.linkedParent||this,V=J&&C.old?C.old.min:C.min;if(!x(V))return NaN;const X=C.minPixelPadding,Q=(C.isOrdinal||C.brokenAxis&&C.brokenAxis.hasBreaks||C.logarithmic&&Y)&&C.lin2val;let se=1,K=0,ne=J&&C.old?C.old.transA:C.transA,oe=0;if(ne||(ne=C.transA),q&&(se*=-1,K=C.len),C.reversed&&(se*=-1,K-=se*(C.sector||C.len)),R)d=d*se+K,d-=X,oe=d/ne+V,Q&&(oe=C.lin2val(oe));else{Q&&(d=C.val2lin(d));const le=se*(d-V)*ne;oe=(C.isRadial?le:N(le))+K+se*X+(x(ee)?ne*ee:0)}return oe}toPixels(d,R){return this.translate(d,!1,!this.horiz,void 0,!0)+(R?0:this.pos)}toValue(d,R){return this.translate(d-(R?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(d){const R=this,q=R.chart,J=R.left,Y=R.top,ee=d.old,C=d.value,V=d.lineWidth,X=ee&&q.oldChartHeight||q.chartHeight,Q=ee&&q.oldChartWidth||q.chartWidth,se=R.transB;let K=d.translatedValue,ne=d.force,oe,le,ye,te,re;function Z(ae,he,fe){return ne!=="pass"&&(aefe)&&(ne?ae=E(ae,he,fe):re=!0),ae}const ie={value:C,lineWidth:V,old:ee,force:ne,acrossPanes:d.acrossPanes,translatedValue:K};return v(this,"getPlotLinePath",ie,function(ae){K=k(K,R.translate(C,void 0,void 0,ee)),K=E(K,-1e5,1e5),oe=ye=Math.round(K+se),le=te=Math.round(X-K-se),x(K)?R.horiz?(le=Y,te=X-R.bottom,oe=ye=Z(oe,J,J+R.width)):(oe=J,ye=Q-R.right,le=te=Z(le,Y,Y+R.height)):(re=!0,ne=!1),ae.path=re&&!ne?null:q.renderer.crispLine([["M",oe,le],["L",ye,te]],V||1)}),ie.path}getLinearTickPositions(d,R,q){const J=N(Math.floor(R/d)*d),Y=N(Math.ceil(q/d)*d),ee=[];let C,V,X;if(N(J+d)===J&&(X=20),this.single)return[R];for(C=J;C<=Y&&(ee.push(C),C=N(C+d,X),C!==V);)V=C;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,q=d.tickPositions,J=d.minorTickInterval,Y=d.pointRangePadding||0,ee=d.min-Y,C=d.max+Y,V=C-ee;let X=[],Q;if(V&&V/J"u"&&!q&&(M(R.min)||M(R.max)||M(R.floor)||M(R.ceiling)?d.minRange=null:(V=B(d.series.map(K=>{var ne;return(K.xIncrement?(ne=K.xData)===null||ne===void 0?void 0:ne.slice(0,2):K.xData)||[]}))||0,d.minRange=Math.min(V*5,d.dataMax-d.dataMin))),Y-J=d.minRange,se=d.minRange,ee=(se-Y+J)/2,X=[J-ee,k(R.min,J-ee)],C&&(X[2]=q?q.log2lin(d.dataMin):d.dataMin),J=w(X),Q=[J+se,k(R.max,J+se)],C&&(Q[2]=q?q.log2lin(d.dataMax):d.dataMax),Y=D(Q),Y-JJ-Y),d=B([q]))}return d&&R?Math.min(d,R):d||R}nameToX(d){const R=S(this.options.categories),q=R?this.categories:this.names;let J=d.options.x,Y;return d.series.requireSorting=!1,M(J)||(J=this.options.uniqueNames&&q?R?q.indexOf(d.name):k(q.keys[d.name],-1):d.series.autoIncrement()),J===-1?!R&&q&&(Y=q.length):Y=J,typeof Y<"u"?(this.names[Y]=d.name,this.names.keys[d.name]=Y):d.x&&(Y=d.x),Y}updateNames(){const d=this,R=this.names;R.length>0&&(Object.keys(R.keys).forEach(function(J){delete R.keys[J]}),R.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(J){J.xIncrement=null,(!J.points||J.isDirtyData)&&(d.max=Math.max(d.max,J.xData.length-1),J.processData(),J.generatePoints()),J.data.forEach(function(Y,ee){let C;Y&&Y.options&&typeof Y.name<"u"&&(C=d.nameToX(Y),typeof C<"u"&&C!==Y.x&&(Y.x=C,J.xData[ee]=C))})}))}setAxisTranslation(){const d=this,R=d.max-d.min,q=d.linkedParent,J=!!d.categories,Y=d.isXAxis;let ee=d.axisPointRange||0,C,V=0,X=0,Q,se=d.transA;(Y||J||ee)&&(C=d.getClosest(),q?(V=q.minPointOffset,X=q.pointRangePadding):d.series.forEach(function(K){const ne=J?1:Y?k(K.options.pointRange,C,0):d.axisPointRange||0,oe=K.options.pointPlacement;if(ee=Math.max(ee,ne),!d.single||J){const le=K.is("xrange")?!Y:Y;V=Math.max(V,le&&h(oe)?0:ne/2),X=Math.max(X,le&&oe==="on"?0:ne)}}),Q=d.ordinal&&d.ordinal.slope&&C?d.ordinal.slope/C:1,d.minPointOffset=V=V*Q,d.pointRangePadding=X=X*Q,d.pointRange=Math.min(ee,d.single&&J?1:R),Y&&C&&(d.closestPointRange=C)),d.translationSlope=d.transA=se=d.staticScale||d.len/(R+X||1),d.transB=d.horiz?d.left:d.bottom,d.minPixelPadding=se*V,v(this,"afterSetAxisTranslation")}minFromRange(){const d=this;return d.max-d.range}setTickInterval(d){const R=this,q=R.chart,J=R.logarithmic,Y=R.options,ee=R.isXAxis,C=R.isLinked,V=Y.tickPixelInterval,X=R.categories,Q=R.softThreshold;let se=Y.maxPadding,K=Y.minPadding,ne,oe,le=x(Y.tickInterval)&&Y.tickInterval>=0?Y.tickInterval:void 0,ye=x(R.threshold)?R.threshold:null,te,re,Z,ie;if(!R.dateTime&&!X&&!C&&this.getTickAmount(),Z=k(R.userMin,Y.min),ie=k(R.userMax,Y.max),C?(R.linkedParent=q[R.coll][Y.linkedTo],oe=R.linkedParent.getExtremes(),R.min=k(oe.min,oe.dataMin),R.max=k(oe.max,oe.dataMax),Y.type!==R.linkedParent.options.type&&P(11,1,q)):(Q&&M(ye)&&(R.dataMin>=ye?(te=ye,K=0):R.dataMax<=ye&&(re=ye,se=0)),R.min=k(Z,te,R.dataMin),R.max=k(ie,re,R.dataMax)),J&&(R.positiveValuesOnly&&!d&&Math.min(R.min,k(R.dataMin,R.min))<=0&&P(10,1,q),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=Z=Math.max(R.dataMin,R.minFromRange()),R.userMax=ie=R.max,R.range=null),v(R,"foundExtremes"),R.beforePadding&&R.beforePadding(),R.adjustForMinRange(),x(R.userMin)||x(Y.softMin)&&Y.softMinR.max&&(R.max=ie=Y.softMax),!X&&!R.axisPointRange&&!(R.stacking&&R.stacking.usePercentage)&&!C&&M(R.min)&&M(R.max)&&(ne=R.max-R.min,ne&&(!M(Z)&&K&&(R.min-=ne*K),!M(ie)&&se&&(R.max+=ne*se))),!x(R.userMin)&&x(Y.floor)&&(R.min=Math.max(R.min,Y.floor)),!x(R.userMax)&&x(Y.ceiling)&&(R.max=Math.min(R.max,Y.ceiling)),Q&&M(R.dataMin)&&(ye=ye||0,!M(Z)&&R.min=ye?R.min=R.options.minRange?Math.min(ye,R.max-R.minRange):ye:!M(ie)&&R.max>ye&&R.dataMax<=ye&&(R.max=R.options.minRange?Math.max(ye,R.min+R.minRange):ye)),x(R.min)&&x(R.max)&&!this.chart.polar&&R.min>R.max&&(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:C&&R.linkedParent&&!le&&V===R.linkedParent.options.tickPixelInterval?R.tickInterval=le=R.linkedParent.tickInterval:R.tickInterval=k(le,this.tickAmount?(R.max-R.min)/Math.max(this.tickAmount-1,1):void 0,X?1:(R.max-R.min)*V/Math.max(R.len,V)),ee&&!d){const he=R.min!==(R.old&&R.old.min)||R.max!==(R.old&&R.old.max);R.series.forEach(function(fe){fe.forceCrop=fe.forceCropping&&fe.forceCropping(),fe.processData(he)}),v(this,"postProcessData",{hasExtremesChanged:he})}R.setAxisTranslation(),v(this,"initialAxisTranslation"),R.pointRange&&!le&&(R.tickInterval=Math.max(R.pointRange,R.tickInterval));const ae=k(Y.minTickInterval,R.dateTime&&!R.series.some(he=>he.noSharedTooltip)?R.closestPointRange:0);!le&&R.tickIntervalMath.max(2*this.len,200))Q=[this.min,this.max],P(19,!1,this.chart);else if(d.dateTime)Q=d.getTimeTicks(d.dateTime.normalizeTimeTickInterval(this.tickInterval,R.units),this.min,this.max,R.startOfWeek,d.ordinal&&d.ordinal.positions,this.closestPointRange,!0);else if(d.logarithmic)Q=d.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{const K=this.tickInterval;let ne=K;for(;ne<=K*2&&(Q=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&Q.length>this.tickAmount);)this.tickInterval=H(this,ne*=1.1)}Q.length>this.len&&(Q=[Q[0],Q[Q.length-1]],Q[0]===Q[1]&&(Q.length=1)),J&&(this.tickPositions=Q,se=J.apply(d,[this.min,this.max]),se&&(Q=se))}this.tickPositions=Q,this.paddedTicks=Q.slice(0),this.trimTicks(Q,V,X),!this.isLinked&&x(this.min)&&x(this.max)&&(this.single&&Q.length<2&&!this.categories&&!this.series.some(K=>K.is("heatmap")&&K.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),!q&&!se&&this.adjustTickAmount()),v(this,"afterSetTickPositions")}trimTicks(d,R,q){const J=d[0],Y=d[d.length-1],ee=!this.isOrdinal&&this.minPointOffset||0;if(v(this,"trimTicks"),!this.isLinked){if(R&&J!==-1/0)this.min=J;else for(;this.min-ee>d[0];)d.shift();if(q)this.max=Y;else for(;this.max+ee{const{horiz:Q,options:se}=X;return[Q?se.left:se.top,se.width,se.height,se.pane].join(",")},V=C(this);this.chart[this.coll].forEach(function(X){const{series:Q}=X;Q.length&&Q.some(se=>se.visible)&&X!==d&&C(X)===V&&(ee=!0,R.push(X))})}if(ee&&J){R.forEach(V=>{const X=V.getThresholdAlignment(d);x(X)&&Y.push(X)});const C=Y.length>1?Y.reduce((V,X)=>V+=X,0)/Y.length:void 0;R.forEach(V=>{V.thresholdAlignment=C})}return ee}getThresholdAlignment(d){if((!x(this.dataMin)||this!==d&&this.series.some(R=>R.isDirty||R.isDirtyData))&&this.getSeriesExtremes(),x(this.threshold)){let R=E((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(R=1-R),R}}getTickAmount(){const d=this,R=this.options,q=R.tickPixelInterval;let J=R.tickAmount;!M(R.tickInterval)&&!J&&this.lenee.push(N(ee[ee.length-1]+ne)),ye=()=>ee.unshift(N(ee[0]-ne));if(x(V)&&(oe=V<.5?Math.ceil(V*(C-1)):Math.floor(V*(C-1)),Y.reversed&&(oe=C-1-oe)),d.hasData()&&x(J)&&x(q)){const te=()=>{d.transA*=(X-1)/(C-1),d.min=Y.startOnTick?ee[0]:Math.min(J,ee[0]),d.max=Y.endOnTick?ee[ee.length-1]:Math.max(q,ee[ee.length-1])};if(x(oe)&&x(d.threshold)){for(;ee[oe]!==Q||ee.length!==C||ee[0]>J||ee[ee.length-1]d.threshold?ye():le();if(ne>d.tickInterval*8)break;ne*=2}te()}else if(X0&&KV&&(se=V)),M(Y)&&(KV&&(K=V))),q.displayBtn=typeof se<"u"||typeof K<"u",q.setExtremes(se,K,!1,void 0,{trigger:"zoom"})),Q.zoomed=!0}),X.zoomed}setAxisSize(){const d=this.chart,R=this.options,q=R.offsets||[0,0,0,0],J=this.horiz,Y=this.width=Math.round(y(k(R.width,d.plotWidth-q[3]+q[1]),d.plotWidth)),ee=this.height=Math.round(y(k(R.height,d.plotHeight-q[0]+q[2]),d.plotHeight)),C=this.top=Math.round(y(k(R.top,d.plotTop+q[0]),d.plotHeight,d.plotTop)),V=this.left=Math.round(y(k(R.left,d.plotLeft+q[3]),d.plotWidth,d.plotLeft));this.bottom=d.chartHeight-ee-C,this.right=d.chartWidth-Y-V,this.len=Math.max(J?Y:ee,0),this.pos=J?V:C}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,q=R.logarithmic,J=q?q.lin2log(R.min):R.min,Y=q?q.lin2log(R.max):R.max;return d===null||d===-1/0?d=J:d===1/0?d=Y:J>d?d=J:Y15&&R<165?J.align="right":R>195&&R<345&&(J.align="left")}),q.align}tickSize(d){const R=this.options,q=k(R[d==="tick"?"tickWidth":"minorTickWidth"],d==="tick"&&this.isXAxis&&!this.categories?1:0);let J=R[d==="tick"?"tickLength":"minorTickLength"],Y;q&&J&&(R[d+"Position"]==="inside"&&(J=-J),Y=[J,q]);const ee={tickSize:Y};return v(this,"afterTickSize",ee),ee.tickSize}labelMetrics(){const d=this.chart.renderer,R=this.ticks,q=R[Object.keys(R)[0]]||{};return this.chart.renderer.fontMetrics(q.label||q.movedLabel||d.box)}unsquish(){const d=this.options.labels,R=this.horiz,q=this.tickInterval,J=this.len/(((this.categories?1:0)+this.max-this.min)/q),Y=d.rotation,ee=this.labelMetrics().h*.75,C=Math.max(this.max-this.min,0),V=function(ne){let oe=ne/(J||1);return oe=oe>1?Math.ceil(oe):1,oe*q>C&&ne!==1/0&&J!==1/0&&C&&(oe=Math.ceil(C/q)),N(oe*q)};let X=q,Q,se=Number.MAX_VALUE,K;if(R){if(d.staggerLines||(x(Y)?K=[Y]:J=-90&&le<=90)&&(ne=V(Math.abs(ee/Math.sin(g*le))),oe=ne+Math.abs(le/360),oele&&(le=ie.label.textPxLength)}),this.maxLabelLength=le,this.autoRotation)le>X&&le>se.h?Q.rotation=this.labelRotation:this.labelRotation=0;else if(V&&(ne=X,!K))for(oe="clip",te=q.length;!C&&te--;)re=q[te],ye=J[re].label,ye&&(ye.styles&&ye.styles.textOverflow==="ellipsis"?ye.css({textOverflow:"clip"}):ye.textPxLength>V&&ye.css({width:V+"px"}),ye.getBBox().height>this.len/q.length-(se.h-se.f)&&(ye.specificTextOverflow="ellipsis"));Q.rotation&&(ne=le>d.chartHeight*.5?d.chartHeight*.33:le,K||(oe="ellipsis")),this.labelAlign=Y.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(Q.align=this.labelAlign),q.forEach(function(Z){const ie=J[Z],ae=ie&&ie.label,he=ee.width,fe={};ae&&(ae.attr(Q),ie.shortenLabel?ie.shortenLabel():ne&&!he&&ee.whiteSpace!=="nowrap"&&(neQ.g(Ce).attr({zIndex:Be}).addClass(`highcharts-${V.toLowerCase()}${De} `+(this.isRadial?`highcharts-radial-axis${De} `:"")+(Z||"")).add(X);d.gridGroup=be("grid","-grid",J.gridZIndex),d.axisGroup=be("axis","",J.zIndex),d.labelGroup=be("axis-labels","-labels",oe.zIndex)}if(K||d.isLinked?(C.forEach(function(be){d.generateTick(be)}),d.renderUnsquish(),d.reserveSpaceDefault=Y===0||Y===2||{1:"left",3:"right"}[Y]===d.labelAlign,k(oe.reserveSpace,le?!1:null,d.labelAlign==="center"?!0:null,d.reserveSpaceDefault)&&C.forEach(function(be){ve=Math.max(ee[be].getLabelSize(),ve)}),d.staggerLines&&(ve*=d.staggerLines),d.labelOffset=ve*(d.opposite?-1:1)):f(ee,function(be,Ce){be.destroy(),delete ee[Ce]}),ne&&ne.text&&ne.enabled!==!1&&(d.addTitle(ie),ie&&!le&&ne.reserveSpace!==!1&&(d.titleOffset=ae=d.axisTitle.getBBox()[q?"height":"width"],he=ne.offset,fe=M(he)?0:k(ne.margin,q?5:10))),d.renderLine(),d.offset=re*k(J.offset,ye[Y]?ye[Y]+(J.margin||0):0),d.tickRotCorr=d.tickRotCorr||{x:0,y:0},Y===0?_e=-d.labelMetrics().h:Y===2?_e=d.tickRotCorr.y:_e=0,ge=Math.abs(ve)+fe,ve&&(ge-=_e,ge+=re*(q?k(oe.y,d.tickRotCorr.y+re*oe.distance):k(oe.x,re*oe.distance))),d.axisTitleMargin=k(he,ge),d.getMaxLabelDimensions&&(d.maxLabelDimensions=d.getMaxLabelDimensions(ee,C)),V!=="colorAxis"){const be=this.tickSize("tick");ye[Y]=Math.max(ye[Y],(d.axisTitleMargin||0)+ae+re*d.offset,ge,C&&C.length&&be?be[0]+re*d.offset:0);const Ce=!d.axisLine||J.offset?0:Math.floor(d.axisLine.strokeWidth()/2)*2;te[se]=Math.max(te[se],Ce)}v(this,"afterGetOffset")}getLinePath(d){const R=this.chart,q=this.opposite,J=this.offset,Y=this.horiz,ee=this.left+(q?this.width:0)+J,C=R.chartHeight-this.bottom-(q?this.height:0)+J;return q&&(d*=-1),R.renderer.crispLine([["M",Y?this.left:ee,Y?C:this.top],["L",Y?R.chartWidth-this.right:ee,Y?C:R.chartHeight-this.bottom]],d)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(d){const R=this.horiz,q=this.left,J=this.top,Y=this.len,ee=this.options.title,C=R?q:J,V=this.opposite,X=this.offset,Q=ee.x,se=ee.y,K=this.chart.renderer.fontMetrics(d),ne=d?Math.max(d.getBBox(!1,0).height-K.h-1,0):0,oe={low:C+(R?0:Y),middle:C+Y/2,high:C+(R?Y:0)}[ee.align],le=(R?J+this.height:q)+(R?1:-1)*(V?-1:1)*(this.axisTitleMargin||0)+[-ne,ne,K.f,-ne][this.side],ye={x:R?oe+Q:le+(V?this.width:0)+X+Q,y:R?le+se-(V?this.height:0)+X:oe+se};return v(this,"afterGetTitlePosition",{titlePosition:ye}),ye}renderMinorTick(d,R){const q=this,J=q.minorTicks;J[d]||(J[d]=new m(q,d,"minor")),R&&J[d].isNew&&J[d].render(null,!0),J[d].render(null,!1,1)}renderTick(d,R,q){const J=this,Y=J.isLinked,ee=J.ticks;(!Y||d>=J.min&&d<=J.max||J.grid&&J.grid.isColumn)&&(ee[d]||(ee[d]=new m(J,d)),q&&ee[d].isNew&&ee[d].render(R,!0,-1),ee[d].render(R))}render(){const d=this,R=d.chart,q=d.logarithmic,J=R.renderer,Y=d.options,ee=d.isLinked,C=d.tickPositions,V=d.axisTitle,X=d.ticks,Q=d.minorTicks,se=d.alternateBands,K=Y.stackLabels,ne=Y.alternateGridColor,oe=Y.crossing,le=d.tickmarkOffset,ye=d.axisLine,te=d.showAxis,re=j(J.globalAnimation);let Z,ie;if(d.labelEdge.length=0,d.overlap=!1,[X,Q,se].forEach(function(ae){f(ae,function(he){he.isActive=!1})}),x(oe)){const ae=this.isXAxis?R.yAxis[0]:R.xAxis[0],he=[1,-1,-1,1][this.side];if(ae){let fe=ae.toPixels(oe,!0);d.horiz&&(fe=ae.len-fe),d.offset=he*fe}}if(d.hasData()||ee){const ae=d.chart.hasRendered&&d.old&&x(d.old.min);d.minorTickInterval&&!d.categories&&d.getMinorTickPositions().forEach(function(he){d.renderMinorTick(he,ae)}),C.length&&(C.forEach(function(he,fe){d.renderTick(he,fe,ae)}),le&&(d.min===0||d.single)&&(X[-1]||(X[-1]=new m(d,-1,null,!0)),X[-1].render(-1))),ne&&C.forEach(function(he,fe){ie=typeof C[fe+1]<"u"?C[fe+1]+le:d.max-le,fe%2===0&&he=.5)w=Math.round(w),I=b.getLinearTickPositions(w,D,E);else if(w>=.08){const v=Math.floor(D);let B,T,S,x,h,n,l;for(w>.3?B=[1,2,4]:w>.15?B=[1,2,4,6,8]:B=[1,2,3,4,5,6,7,8,9],T=v;TD&&(!N||n<=E)&&typeof n<"u"&&I.push(n),n>E&&(l=!0),n=h}else{const v=M.lin2log(D),B=M.lin2log(E),T=N?b.getMinorTickInterval():P.tickInterval,S=T==="auto"?null:T,x=P.tickPixelInterval/(N?5:1),h=N?F/b.tickPositions.length:F;w=c(S,M.minorAutoInterval,(B-v)*x/(h||1)),w=o(w),I=b.getLinearTickPositions(w,v,B).map(M.log2lin),N||(M.minorAutoInterval=w/5)}return N||(b.tickInterval=w),I}lin2log(w){return Math.pow(10,w)}log2lin(w){return Math.log(w)/Math.LN10}}_.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(_){const m=[];let L;function j(M){return this.addPlotBandOrLine(M,"plotBands")}function A(M,b){const F=this.userOptions;let P=new L(this,M);if(this.visible&&(P=P.render()),P){if(this._addedPlotLB||(this._addedPlotLB=!0,(F.plotLines||[]).concat(F.plotBands||[]).forEach(I=>{this.addPlotBandOrLine(I)})),b){const I=F[b]||[];I.push(M),F[b]=I}this.plotLinesAndBands.push(P)}return P}function p(M){return this.addPlotBandOrLine(M,"plotLines")}function g(M,b){return L||(L=M),i.pushUnique(m,b)&&o(b.prototype,{addPlotBand:j,addPlotLine:p,addPlotBandOrLine:A,getPlotBandPath:w,removePlotBand:D,removePlotLine:N,removePlotBandOrLine:E}),b}_.compose=g;function w(M,b,F=this.options){const P=this.getPlotLinePath({value:b,force:!0,acrossPanes:F.acrossPanes}),I=[],v=this.horiz,B=!c(this.min)||!c(this.max)||Mthis.max&&b>this.max;let T=this.getPlotLinePath({value:M,force:!0,acrossPanes:F.acrossPanes}),S,x=1,h;if(T&&P)for(B&&(h=T.toString()===P.toString(),x=0),S=0;S0&&E.height>0&&!f.isFlat?(T=j({align:N&&y&&"center",x:N?!y&&4:10,verticalAlign:!N&&y&&"middle",y:N?y?16:10:y?6:-4,rotation:N&&!y&&90},T),this.renderLabel(T,f,y,P)):S&&S.hide(),D}renderLabel(D,E,N,M){const b=this,F=b.axis,P=F.chart.renderer;let I=b.label;I||(b.label=I=P.text(this.getLabelText(D),0,0,D.useHTML).attr({align:D.textAlign||D.align,rotation:D.rotation,class:"highcharts-plot-"+(N?"band":"line")+"-label "+(D.className||""),zIndex:M}).add(),F.chart.styledMode||I.css(j({fontSize:"0.8em",textOverflow:"ellipsis"},D.style)));const v=E.xBounds||[E[0][1],E[1][1],N?E[2][1]:E[0][1]],B=E.yBounds||[E[0][2],E[1][2],N?E[2][2]:E[0][2]],T=c(v),S=c(B);if(I.align(D,!1,{x:T,y:S,width:o(v)-T,height:o(B)-S}),!I.alignValue||I.alignValue==="left"){const x=D.clip?F.width:F.chart.chartWidth;I.css({width:(I.rotation===90?F.height-(I.alignAttr.y-F.top):x-(I.alignAttr.x-F.left))+"px"})}I.show(!0)}getLabelText(D){return u(D.formatter)?D.formatter.call(this):D.text}destroy(){m(this.axis.plotLinesAndBands,this),delete this.axis,_(this)}}return g}),a(t,"Core/Tooltip.js",[t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],function(i,s,o,c,u){const{format:_}=i,{doc:m,isSafari:L}=s,{distribute:j}=o,{addEvent:A,clamp:p,css:g,discardElement:w,extend:D,fireEvent:E,isArray:N,isNumber:M,isString:b,merge:F,pick:P,splat:I,syncTimeout:v}=u;class B{constructor(S,x){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=S,this.init(S,x)}bodyFormatter(S){return S.map(function(x){const h=x.series.tooltipOptions;return(h[(x.point.formatPrefix||"point")+"Formatter"]||x.point.tooltipFormatter).call(x.point,h[(x.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(S){this.chart.series.forEach(function(x){const h=x&&x.tt;h&&(!h.isActive||S?x.tt=h.destroy():h.isActive=!1)})}defaultFormatter(S){const x=this.points||I(this);let h;return h=[S.tooltipFooterHeaderFormatter(x[0])],h=h.concat(S.bodyFormatter(x)),h.push(S.tooltipFooterHeaderFormatter(x[0],!0)),h}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),w(this.container)),u.clearTimeout(this.hideTimer),u.clearTimeout(this.tooltipTimeout)}getAnchor(S,x){const h=this.chart,n=h.pointer,l=h.inverted,f=h.plotTop,k=h.plotLeft;let y;if(S=I(S),S[0].series&&S[0].series.yAxis&&!S[0].series.yAxis.options.reversedStacks&&(S=S.slice().reverse()),this.followPointer&&x)typeof x.chartX>"u"&&(x=n.normalize(x)),y=[x.chartX-k,x.chartY-f];else if(S[0].tooltipPos)y=S[0].tooltipPos;else{let G=0,U=0;S.forEach(function(O){const H=O.pos(!0);H&&(G+=H[0],U+=H[1])}),G/=S.length,U/=S.length,this.shared&&S.length>1&&x&&(l?G=x.chartX:U=x.chartY),y=[G-k,U-f]}return y.map(Math.round)}getClassName(S,x,h){const n=this.options,l=S.series,f=l.options;return[n.className,"highcharts-label",h&&"highcharts-tooltip-header",x?"highcharts-tooltip-box":"highcharts-tooltip",!h&&"highcharts-color-"+P(S.colorIndex,l.colorIndex),f&&f.className].filter(b).join(" ")}getLabel(){const S=this,x=this.chart.styledMode,h=this.options,n=this.split&&this.allowShared,l=h.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none");let f,k=this.chart.renderer;if(this.label){const y=!this.label.hasClass("highcharts-label");(!n&&y||n&&!y)&&this.destroy()}if(!this.label){if(this.outside){const y=this.chart.options.chart.style,G=c.getRendererType();this.container=f=s.doc.createElement("div"),f.className="highcharts-tooltip-container",g(f,{position:"absolute",top:"1px",pointerEvents:l,zIndex:Math.max(this.options.style.zIndex||0,(y&&y.zIndex||0)+3)}),s.doc.body.appendChild(f),this.renderer=k=new G(f,0,0,y,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}),x||this.label.attr({fill:h.backgroundColor,"stroke-width":h.borderWidth||0}).css(h.style).css({pointerEvents:l})),S.outside){const y=this.label,{xSetter:G,ySetter:U}=y;y.xSetter=function(O){G.call(y,S.distance),f.style.left=O+"px"},y.ySetter=function(O){U.call(y,S.distance),f.style.top=O+"px"}}this.label.attr({zIndex:8}).shadow(h.shadow).add()}return this.label}getPlayingField(){const{body:S,documentElement:x}=m,{chart:h,distance:n,outside:l}=this;return{width:l?Math.max(S.scrollWidth,x.scrollWidth,S.offsetWidth,x.offsetWidth,x.clientWidth)-2*n:h.chartWidth,height:l?Math.max(S.scrollHeight,x.scrollHeight,S.offsetHeight,x.offsetHeight,x.clientHeight):h.chartHeight}}getPosition(S,x,h){const n=this.chart,l=this.distance,f={},k=n.inverted&&h.h||0,y=this.outside,G=this.getPlayingField(),U=G.width,O=G.height,H=n.pointer.getChartPosition(),z=se=>se*H.scaleX,W=se=>se*H.scaleY,d=se=>{const K=se==="x";return[se,K?U:O,K?S:x].concat(y?[K?z(S):W(x),K?H.left-l+z(h.plotX+n.plotLeft):H.top-l+W(h.plotY+n.plotTop),0,K?U:O]:[K?S:x,K?h.plotX+n.plotLeft:h.plotY+n.plotTop,K?n.plotLeft:n.plotTop,K?n.plotLeft+n.plotWidth:n.plotTop+n.plotHeight])};let R=d("y"),q=d("x"),J,Y=!!h.negative;!n.polar&&n.hoverSeries&&n.hoverSeries.yAxis&&n.hoverSeries.yAxis.reversed&&(Y=!Y);const ee=!this.followPointer&&P(h.ttBelow,!n.inverted===Y),C=function(se,K,ne,oe,le,ye,te){const re=y?se==="y"?W(l):z(l):l,Z=(ne-oe)/2,ie=oeK?fe:fe+k);else return!1},V=function(se,K,ne,oe,le){let ye;return leK-l?ye=!1:leK-oe/2?f[se]=K-oe-2:f[se]=le-ne/2,ye},X=function(se){const K=R;R=q,q=K,J=se},Q=function(){C.apply(0,R)!==!1?V.apply(0,q)===!1&&!J&&(X(!0),Q()):J?f.x=f.y=0:(X(!0),Q())};return(n.inverted||this.len>1)&&X(),Q(),f}hide(S){const x=this;u.clearTimeout(this.hideTimer),S=P(S,this.options.hideDelay),this.isHidden||(this.hideTimer=v(function(){x.getLabel().fadeOut(S&&void 0),x.isHidden=!0},S))}init(S,x){this.chart=S,this.options=x,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=x.split&&!S.inverted&&!S.polar,this.shared=x.shared||this.split,this.outside=P(x.outside,!!(S.scrollablePixelsX||S.scrollablePixelsY))}shouldStickOnContact(S){return!!(!this.followPointer&&this.options.stickOnContact&&(!S||this.chart.pointer.inClass(S.target,"highcharts-tooltip")))}move(S,x,h,n){const l=this,f=l.now,k=l.options.animation!==!1&&!l.isHidden&&(Math.abs(S-f.x)>1||Math.abs(x-f.y)>1),y=l.followPointer||l.len>1;D(f,{x:k?(2*f.x+S)/3:S,y:k?(f.y+x)/2:x,anchorX:y?void 0:k?(2*f.anchorX+h)/3:h,anchorY:y?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(S,x,h,n)},32))}refresh(S,x){const h=this,n=this.chart,l=h.options,f=n.pointer,k=I(S),y=k[0],G=[],U=l.format,O=l.formatter||h.defaultFormatter,H=h.shared,z=n.styledMode;let W={};if(!l.enabled||!y.series)return;u.clearTimeout(this.hideTimer),h.allowShared=!(!N(S)&&S.series&&S.series.noSharedTooltip),h.followPointer=!h.split&&y.series.tooltipOptions.followPointer;const d=h.getAnchor(S,x),R=d[0],q=d[1];H&&h.allowShared?(f.applyInactiveState(k),k.forEach(function(ee){ee.setState("hover"),G.push(ee.getLabelConfig())}),W=y.getLabelConfig(),W.points=G):W=y.getLabelConfig(),this.len=G.length;const J=b(U)?_(U,W,n):O.call(W,h),Y=y.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,C=q;if(x&&f.isDirectTouch&&(ee=x.chartX-n.plotLeft,C=x.chartY-n.plotTop),n.polar||Y.options.clip===!1||k.some(V=>f.isDirectTouch||V.series.shouldShowTooltip(ee,C))){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(y),!0),z||V.attr({stroke:l.borderColor||y.color||Y.color||"#666666"}),h.updatePosition({plotX:R,plotY:q,negative:y.negative,ttBelow:y.ttBelow,h:d[2]||0})}else{h.hide();return}}h.isHidden&&h.label&&h.label.attr({opacity:1}).show(),h.isHidden=!1}E(this,"refresh")}renderSplit(S,x){const h=this,{chart:n,chart:{chartWidth:l,chartHeight:f,plotHeight:k,plotLeft:y,plotTop:G,pointer:U,scrollablePixelsY:O=0,scrollablePixelsX:H,scrollingContainer:{scrollLeft:z,scrollTop:W}={scrollLeft:0,scrollTop:0},styledMode:d},distance:R,options:q,options:{positioner:J}}=h,Y=h.outside&&typeof H!="number"?m.documentElement.getBoundingClientRect():{left:z,right:z+l,top:W,bottom:W+f},ee=h.getLabel(),C=this.renderer||n.renderer,V=!!(n.xAxis[0]&&n.xAxis[0].opposite),{left:X,top:Q}=U.getChartPosition();let se=G+W,K=0,ne=k-O;function oe(he){const{isHeader:fe,plotX:ve=0,plotY:ge=0,series:_e}=he;let be,Ce;if(fe)be=y+ve,Ce=G+k/2;else{const{xAxis:De,yAxis:Be}=_e;be=De.pos+p(ve,-R,De.len+R),_e.shouldShowTooltip(0,Be.pos-G+ge,{ignoreX:!0})&&(Ce=Be.pos+ge)}return be=p(be,Y.left-R,Y.right+R),{anchorX:be,anchorY:Ce}}function le(he,fe,ve,ge,_e=!0){let be,Ce;return ve?(be=V?0:ne,Ce=p(he-ge/2,Y.left,Y.right-ge-(h.outside?X:0))):(be=fe-se,Ce=_e?he-ge-R:he+R,Ce=p(Ce,_e?Ce:Y.left,Y.right)),{x:Ce,y:be}}function ye(he,fe,ve){var ge;let _e=he;const{isHeader:be,series:Ce}=fe;if(!_e){const De={padding:q.padding,r:q.borderRadius};d||(De.fill=q.backgroundColor,De["stroke-width"]=(ge=q.borderWidth)!==null&&ge!==void 0?ge:1),_e=C.label("",0,0,q[be?"headerShape":"shape"],void 0,void 0,q.useHTML).addClass(h.getClassName(fe,!0,be)).attr(De).add(ee)}return _e.isActive=!0,_e.attr({text:ve}),d||_e.css(q.style).attr({stroke:q.borderColor||fe.color||Ce.color||"#333333"}),_e}b(S)&&(S=[!1,S]);let te=S.slice(0,x.length+1).reduce(function(he,fe,ve){if(fe!==!1&&fe!==""){const ge=x[ve-1]||{isHeader:!0,plotX:x[0].plotX,plotY:k,series:{}},_e=ge.isHeader,be=_e?h:ge.series,Ce=be.tt=ye(be.tt,ge,fe.toString()),De=Ce.getBBox(),Be=De.width+Ce.strokeWidth();_e&&(K=De.height,ne+=K,V&&(se-=K));const{anchorX:Le,anchorY:Pe}=oe(ge);if(typeof Pe=="number"){const Ue=De.height+1,Je=J?J.call(h,Be,Ue,ge):le(Le,Pe,_e,Be);he.push({align:J?0:void 0,anchorX:Le,anchorY:Pe,boxWidth:Be,point:ge,rank:P(Je.rank,_e?1:0),size:Ue,target:Je.y,tt:Ce,x:Je.x})}else Ce.isActive=!1}return he},[]);!J&&te.some(he=>{const{outside:fe}=h,ve=(fe?X:0)+he.anchorX;return veve})&&(te=te.map(he=>{const{x:fe,y:ve}=le(he.anchorX,he.anchorY,he.point.isHeader,he.boxWidth,!1);return D(he,{target:ve,x:fe})})),h.cleanSplit(),j(te,ne);const re={left:X,right:X};te.forEach(function(he){const{x:fe,boxWidth:ve,isHeader:ge}=he;ge||(h.outside&&X+fere.right&&(re.right=X+fe))}),te.forEach(function(he){const{x:fe,anchorX:ve,anchorY:ge,pos:_e,point:{isHeader:be}}=he,Ce={visibility:typeof _e>"u"?"hidden":"inherit",x:fe,y:(_e||0)+se,anchorX:ve,anchorY:ge};if(h.outside&&fe0&&(be||(Ce.x=fe+De,Ce.anchorX=ve+De),be&&(Ce.x=(re.right-re.left)/2,Ce.anchorX=ve+De))}he.tt.attr(Ce)});const{container:Z,outside:ie,renderer:ae}=h;if(ie&&Z&&ae){const{width:he,height:fe,x:ve,y:ge}=ee.getBBox();ae.setSize(he+ve,fe+ge,!1),Z.style.left=re.left+"px",Z.style.top=Q+"px"}L&&ee.attr({opacity:ee.opacity===1?.999:1})}drawTracker(){const S=this;if(!this.shouldStickOnContact()){S.tracker&&(S.tracker=S.tracker.destroy());return}const x=S.chart,h=S.label,n=S.shared?x.hoverPoints:x.hoverPoint;if(!h||!n)return;const l={x:0,y:0,width:0,height:0},f=this.getAnchor(n),k=h.getBBox();f[0]+=x.plotLeft-h.translateX,f[1]+=x.plotTop-h.translateY,l.x=Math.min(0,f[0]),l.y=Math.min(0,f[1]),l.width=f[0]<0?Math.max(Math.abs(f[0]),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),S.tracker?S.tracker.attr(l):(S.tracker=h.renderer.rect(l).addClass("highcharts-tracker").add(h),x.styledMode||S.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(S){return S.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(S,x){const h=S.series,n=h.tooltipOptions,l=h.xAxis,f=l&&l.dateTime,k={isFooter:x,labelConfig:S};let y=n.xDateFormat,G=n[x?"footerFormat":"headerFormat"];return E(this,"headerFormatter",k,function(U){f&&!y&&M(S.key)&&(y=f.getXDateFormat(S.key,n.dateTimeLabelFormats)),f&&y&&(S.point&&S.point.tooltipDateKeys||["key"]).forEach(function(O){G=G.replace("{point."+O+"}","{point."+O+":"+y+"}")}),h.chart.styledMode&&(G=this.styledModeFormat(G)),U.text=_(G,{point:S,series:h},this.chart)}),k.text}update(S){this.destroy(),this.init(this.chart,F(!0,this.options,S))}updatePosition(S){const{chart:x,distance:h,options:n}=this,l=x.pointer,f=this.getLabel(),{left:k,top:y,scaleX:G,scaleY:U}=l.getChartPosition(),O=(n.positioner||this.getPosition).call(this,f.width,f.height,S);let H=(S.plotX||0)+x.plotLeft,z=(S.plotY||0)+x.plotTop,W;this.outside&&(n.positioner&&(O.x+=k-h,O.y+=y-h),W=(n.borderWidth||0)+2*h,this.renderer.setSize(f.width+W,f.height+W,!1),(G!==1||U!==1)&&(g(this.container,{transform:`scale(${G}, ${U})`}),H*=G,z*=U),H+=k-O.x,z+=y-O.y),this.move(Math.round(O.x),Math.round(O.y||0),H,z)}}return function(T){const S=[];function x(h){u.pushUnique(S,h)&&A(h,"afterInit",function(){const n=this.chart;n.options.tooltip&&(n.tooltip=new T(n,n.options.tooltip))})}T.compose=x}(B||(B={})),B}),a(t,"Core/Series/Point.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Animation/AnimationUtilities.js"],t["Core/Defaults.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],function(i,s,o,c,u){const{animObject:_}=s,{defaultOptions:m}=o,{format:L}=c,{addEvent:j,defined:A,erase:p,extend:g,fireEvent:w,getNestedProperty:D,isArray:E,isFunction:N,isNumber:M,isObject:b,merge:F,objectEach:P,pick:I,syncTimeout:v,removeEvent:B,uniqueKey:T}=u;class S{constructor(){this.category=void 0,this.destroyed=!1,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.name=void 0,this.options=void 0,this.percentage=void 0,this.selected=!1,this.series=void 0,this.shapeArgs=void 0,this.total=void 0,this.visible=!0,this.x=void 0}animateBeforeDestroy(){const h=this,n={x:h.startXPos,opacity:0},l=h.getGraphicalProps();l.singular.forEach(function(f){const 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(g({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=S.prototype.optionsToObject.call(this,h),g(l,h),l.options=l.options?g(l.options,h):h,h.group&&delete l.group,h.dataLabels&&delete l.dataLabels,k&&(l.y=S.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,y=h.series.chart.renderer.globalAnimation,G=_(y),U=()=>{(h.graphic||h.graphics||h.dataLabel||h.dataLabels)&&(B(h),h.destroyElements());for(const O in h)delete h[O]};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(),v(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,y=k.options;(y.point.events[h]||f.options&&f.options.events&&f.options.events[h])&&f.importEvents(),h==="click"&&y.allowPointSelect&&(l=function(G){f.select&&f.select(null,G.ctrlKey||G.metaKey||G.shiftKey)}),w(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,y;for(h=h||{graphic:1,dataLabel:1},h.graphic&&l.push("graphic"),h.dataLabel&&l.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),y=l.length;y--;)k=l[y],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?D(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=A(this.id)?this.id:T(),this.resolveColor(),h.chart.pointCount++,w(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 y={},G,U=0,O=0;if(M(h)||h===null)y[f[0]]=h;else if(E(h))for(!l&&h.length>k&&(G=typeof h[0],G==="string"?y.name=h[0]:G==="number"&&(y.x=h[0]),U++);O0?S.prototype.setNestedProperty(y,h[U],f[O]):y[f[O]]=h[U]),U++,O++;else typeof h=="object"&&(y=h,h.dataLabels&&(n._hasPointLabels=!0),h.marker&&(n._hasPointMarkers=!0));return y}pos(h,n=this.plotY){if(!this.destroyed){const{plotX:l,series:f}=this,{chart:k,xAxis:y,yAxis:G}=f;let U=0,O=0;if(M(l)&&M(n))return h&&(U=y?y.pos:k.plotLeft,O=G?G.pos:k.plotTop),k.inverted&&y&&G?[G.len-n+O,y.len-l+U]:[l+U,n+O]}}resolveColor(){const h=this.series,n=h.chart.options.chart,l=h.chart.styledMode;let f,k,y=n.colorCount,G;delete this.nonZonedColor,h.options.colorByPoint?(l||(k=h.options.colors||h.chart.options.colors,f=k[h.colorCounter],y=k.length),G=h.colorCounter,h.colorCounter++,h.colorCounter===y&&(h.colorCounter=0)):(l||(f=h.color),G=h.colorIndex),this.colorIndex=I(this.options.colorIndex,G),this.color=I(this.options.color,f)}setNestedProperty(h,n,l){return l.split(".").reduce(function(k,y,G,U){const O=U.length-1===G;return k[y]=O?n:b(k[y],!0)?k[y]:{},k[y]},h),h}shouldDraw(){return!this.isNull}tooltipFormatter(h){const n=this.series,l=n.tooltipOptions,f=I(l.valueDecimals,""),k=l.valuePrefix||"",y=l.valueSuffix||"";return n.chart.styledMode&&(h=n.chart.tooltip.styledModeFormat(h)),(n.pointArrayMap||["y"]).forEach(function(G){G="{point."+G,(k||y)&&(h=h.replace(RegExp(G+"}","g"),k+G+"}"+y)),h=h.replace(RegExp(G+"}","g"),G+":,."+f+"f}")}),L(h,{point:this,series:this.series},n.chart)}update(h,n,l,f){const k=this,y=k.series,G=k.graphic,U=y.chart,O=y.options;let H;n=I(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,y.updateParallelArrays(k,H),O.data[H]=b(O.data[H],!0)||b(h,!0)?k.options:I(h,O.data[H]),y.isDirty=y.isDirtyData=!0,!y.fixedBox&&y.hasCartesianSeries&&(U.isDirtyBox=!0),O.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=I(h,!l.selected),this.selectedStaging=h,l.firePointEvent(h?"select":"unselect",{accumulate:n},function(){l.selected=l.options.selected=h,f.options.data[f.data.indexOf(l)]=l.options,l.setState(h&&"select"),n||k.getSelectedPoints().forEach(function(y){const G=y.series;y.selected&&y!==l&&(y.selected=y.options.selected=!1,G.options.data[G.data.indexOf(y)]=y.options,y.setState(k.hoverPoints&&G.options.inactiveOtherPoints?"inactive":""),y.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,y=f.options.states[h||"normal"]||{},G=m.plotOptions[f.type].marker&&f.options.marker,U=G&&G.enabled===!1,O=G&&G.states&&G.states[h||"normal"]||{},H=O.enabled===!1,z=l.marker||{},W=f.chart,d=G&&f.markerAttribs;let R=f.halo,q,J,Y,ee=f.stateMarkerGraphic,C;if(h=h||"",h===l.state&&!n||l.selected&&h!=="select"||y.enabled===!1||h&&(H||U&&O.enabled===!1)||h&&z.states&&z.states[h]&&z.states[h].enabled===!1)return;if(l.state=h,d&&(q=f.markerAttribs(l,h)),l.graphic&&!l.hasMockGraphic){if(k&&l.graphic.removeClass("highcharts-point-"+k),h&&l.graphic.addClass("highcharts-point-"+h),!W.styledMode){J=f.pointAttribs(l,h),Y=I(W.options.chart.animation,y.animation);const se=J.opacity;f.options.inactiveOtherPoints&&M(se)&&((l.dataLabels||[]).forEach(function(K){K&&!K.hasClass("highcharts-data-label-hidden")&&K.animate({opacity:se},Y)}),l.connector&&l.connector.animate({opacity:se},Y)),l.graphic.animate(J,Y)}q&&l.graphic.animate(q,I(W.options.chart.animation,O.animation,G.animation)),ee&&ee.hide()}else h&&O&&(C=z.symbol||f.symbol,ee&&ee.currentSymbol!==C&&(ee=ee.destroy()),q&&(ee?ee[n?"animate":"attr"]({x:q.x,y:q.y}):C&&(f.stateMarkerGraphic=ee=W.renderer.symbol(C,q.x,q.y,q.width,q.height).add(f.markerGroup),ee.currentSymbol=C)),!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=y.halo,X=l.graphic||ee,Q=X&&X.visibility||"inherit";V&&V.size&&X&&Q!=="hidden"&&!l.isCluster?(R||(f.halo=R=W.renderer.path().add(X.parentGroup)),R.show()[n?"animate":"attr"]({d:l.haloPath(V.size)}),R.attr({class:"highcharts-halo highcharts-color-"+I(l.colorIndex,f.colorIndex)+(l.className?" "+l.className:""),visibility:Q,zIndex:-1}),R.point=l,W.styledMode||R.attr(g({fill:l.color||f.color,"fill-opacity":V.opacity},i.filterUserAttributes(V.attributes||{})))):R&&R.point&&R.point.haloPath&&R.animate({d:R.point.haloPath(0)},null,R.hide),w(l,"afterSetState",{state:h})}haloPath(h){const n=this.pos();return n?this.series.chart.renderer.symbols.circle(Math.floor(n[0])-h,n[1]-h,h*2,h*2):[]}}return S}),a(t,"Core/Pointer.js",[t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,o){const{parse:c}=i,{charts:u,noop:_}=s,{addEvent:m,attr:L,css:j,defined:A,extend:p,find:g,fireEvent:w,isNumber:D,isObject:E,objectEach:N,offset:M,pick:b,splat:F}=o;class P{constructor(v,B){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=v,this.hasDragged=!1,this.options=B,this.init(v,B)}applyInactiveState(v){let B=[],T;(v||[]).forEach(function(S){T=S.series,B.push(T),T.linkedParent&&B.push(T.linkedParent),T.linkedSeries&&(B=B.concat(T.linkedSeries)),T.navigatorSeries&&B.push(T.navigatorSeries)}),this.chart.series.forEach(function(S){B.indexOf(S)===-1?S.setState("inactive",!0):S.options.inactiveOtherPoints&&S.setAllPointsToState("inactive")})}destroy(){const v=this;this.eventsToUnbind.forEach(B=>B()),this.eventsToUnbind=[],s.chartCount||(P.unbindDocumentMouseUp&&(P.unbindDocumentMouseUp=P.unbindDocumentMouseUp()),P.unbindDocumentTouchEnd&&(P.unbindDocumentTouchEnd=P.unbindDocumentTouchEnd())),clearInterval(v.tooltipTimeout),N(v,function(B,T){v[T]=void 0})}getSelectionMarkerAttrs(v,B){const T={args:{chartX:v,chartY:B},attrs:{},shapeType:"rect"};return w(this,"getSelectionMarkerAttrs",T,S=>{const{chart:x,mouseDownX:h=0,mouseDownY:n=0,zoomHor:l,zoomVert:f}=this,k=S.attrs;let y;k.x=x.plotLeft,k.y=x.plotTop,k.width=l?1:x.plotWidth,k.height=f?1:x.plotHeight,l&&(y=v-h,k.width=Math.abs(y),k.x=(y>0?0:y)+h),f&&(y=B-n,k.height=Math.abs(y),k.y=(y>0?0:y)+n)}),T}drag(v){const B=this.chart,T=B.options.chart,S=B.plotLeft,x=B.plotTop,h=B.plotWidth,n=B.plotHeight,l=this.mouseDownX||0,f=this.mouseDownY||0,k=E(T.panning)?T.panning&&T.panning.enabled:T.panning,y=T.panKey&&v[T.panKey+"Key"];let G=v.chartX,U=v.chartY,O,H=this.selectionMarker;if(!(H&&H.touch)&&(GS+h&&(G=S+h),Ux+n&&(U=x+n),this.hasDragged=Math.sqrt(Math.pow(l-G,2)+Math.pow(f-U,2)),this.hasDragged>10)){O=B.isInsidePlot(l-S,f-x,{visiblePlotOnly:!0});const{shapeType:z,attrs:W}=this.getSelectionMarkerAttrs(G,U);(B.hasCartesianSeries||B.mapView)&&(this.zoomX||this.zoomY)&&O&&!y&&(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),O&&!H&&k&&B.pan(v,T.panning)}}dragStart(v){const B=this.chart;B.mouseIsDown=v.type,B.cancelClick=!1,B.mouseDownX=this.mouseDownX=v.chartX,B.mouseDownY=this.mouseDownY=v.chartY}getSelectionBox(v){const B={args:{marker:v},result:{}};return w(this,"getSelectionBox",B,T=>{T.result={x:v.attr?+v.attr("x"):v.x,y:v.attr?+v.attr("y"):v.y,width:v.attr?v.attr("width"):v.width,height:v.attr?v.attr("height"):v.height}}),B.result}drop(v){const B=this,T=this.chart,S=this.hasPinched;if(this.selectionMarker){const{x,y:h,width:n,height:l}=this.getSelectionBox(this.selectionMarker),f={originalEvent:v,xAxis:[],yAxis:[],x,y:h,width:n,height:l};T.mapView,(this.hasDragged||S)&&(T.axes.forEach(function(k){if(k.zoomEnabled&&A(k.min)&&(S||B[{xAxis:"zoomX",yAxis:"zoomY"}[k.coll]])&&D(x)&&D(h)&&D(n)&&D(l)){const y=k.horiz,G=v.type==="touchend"?k.minPixelPadding:0,U=k.toValue((y?x:h)+G),O=k.toValue((y?x+n:h+l)-G);f[k.coll].push({axis:k,min:Math.min(U,O),max:Math.max(U,O)})}}),console.log("放大",T,f),T.zoomBool==!1||T.zoomBool==null?w(T,"selection",f,function(k){T.zoom(p(k,S?{animation:!1}:null))}):w(T,"selection",f)),D(T.index)&&(this.selectionMarker=this.selectionMarker.destroy()),S&&this.scaleGroups()}T&&D(T.index)&&(j(T.container,{cursor:T._cursor}),T.cancelClick=this.hasDragged>10,T.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}findNearestKDPoint(v,B,T){let S;function x(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 y;return l!==0&&B?y=l:f!==0?y=f:k!==0?y=k:y=h.series.index>n.series.index?-1:1,y}return v.forEach(function(h){const n=h.noSharedTooltip&&B,l=!n&&h.options.findNearestPointBy.indexOf("y")<0,f=h.searchPoint(T,l);E(f,!0)&&f.series&&(!E(S,!0)||x(S,f)>0)&&(S=f)}),S}getChartCoordinatesFromPoint(v,B){const T=v.series,S=T.xAxis,x=T.yAxis,h=v.shapeArgs;if(S&&x){let n=b(v.clientX,v.plotX),l=v.plotY||0;return v.isNode&&h&&D(h.x)&&D(h.y)&&(n=h.x,l=h.y),B?{chartX:x.len+x.pos-l,chartY:S.len+S.pos-n}:{chartX:n+S.pos,chartY:l+x.pos}}if(h&&h.x&&h.y)return{chartX:h.x,chartY:h.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;const{container:v}=this.chart,B=M(v);this.chartPosition={left:B.left,top:B.top,scaleX:1,scaleY:1};const T=v.offsetWidth,S=v.offsetHeight;return T>2&&S>2&&(this.chartPosition.scaleX=B.width/T,this.chartPosition.scaleY=B.height/S),this.chartPosition}getCoordinates(v){const B={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(T){B[T.isXAxis?"xAxis":"yAxis"].push({axis:T,value:T.toValue(v[T.horiz?"chartX":"chartY"])})}),B}getHoverData(v,B,T,S,x,h){const n=[],l=!!(S&&v),f=function(H){return H.visible&&!(!x&&H.directTouch)&&b(H.options.enableMouseTracking,!0)};let k=B,y,G={chartX:h?h.chartX:void 0,chartY:h?h.chartY:void 0,shared:x};w(this,"beforeGetHoverData",G),y=k&&!k.stickyTracking?[k]:T.filter(H=>H.stickyTracking&&(G.filter||f)(H));const O=l||!h?v:this.findNearestKDPoint(y,x,h);return k=O&&O.series,O&&(x&&!k.noSharedTooltip?(y=T.filter(function(H){return G.filter?G.filter(H):f(H)&&!H.noSharedTooltip}),y.forEach(function(H){let z=g(H.points,function(W){return W.x===O.x&&!W.isNull});E(z)&&(H.boosted&&H.boost&&(z=H.boost.getPoint(z)),n.push(z))})):n.push(O)),G={hoverPoint:O},w(this,"afterGetHoverData",G),{hoverPoint:G.hoverPoint,hoverSeries:k,hoverPoints:n}}getPointFromEvent(v){let B=v.target,T;for(;B&&!T;)T=B.point,B=B.parentNode;return T}onTrackerMouseOut(v){const B=this.chart,T=v.relatedTarget,S=B.hoverSeries;this.isDirectTouch=!1,S&&T&&!S.stickyTracking&&!this.inClass(T,"highcharts-tooltip")&&(!this.inClass(T,"highcharts-series-"+S.index)||!this.inClass(T,"highcharts-tracker"))&&S.onMouseOut()}inClass(v,B){let T=v,S;for(;T;){if(S=L(T,"class"),S){if(S.indexOf(B)!==-1)return!0;if(S.indexOf("highcharts-container")!==-1)return!1}T=T.parentElement}}init(v,B){this.options=B,this.chart=v,this.runChartClick=!!(B.chart.events&&B.chart.events.click),this.pinchDown=[],this.lastValidTouch={},this.setDOMEvents(),w(this,"afterInit")}normalize(v,B){const T=v.touches,S=T?T.length?T.item(0):b(T.changedTouches,v.changedTouches)[0]:v;B||(B=this.getChartPosition());let x=S.pageX-B.left,h=S.pageY-B.top;return x/=B.scaleX,h/=B.scaleY,p(v,{chartX:Math.round(x),chartY:Math.round(h)})}onContainerClick(v){const B=this.chart,T=B.hoverPoint,S=this.normalize(v),x=B.plotLeft,h=B.plotTop;B.cancelClick||(T&&this.inClass(S.target,"highcharts-tracker")?(w(T.series,"click",p(S,{point:T})),B.hoverPoint&&T.firePointEvent("click",S)):(p(S,this.getCoordinates(S)),B.isInsidePlot(S.chartX-x,S.chartY-h,{visiblePlotOnly:!0})&&w(B,"click",S)))}onContainerMouseDown(v){const B=((v.buttons||v.button)&1)===1;v=this.normalize(v),s.isFirefox&&v.button!==0&&this.onContainerMouseMove(v),(typeof v.button>"u"||B)&&(this.zoomOption(v),B&&v.preventDefault&&v.preventDefault(),this.dragStart(v))}onContainerMouseLeave(v){const B=u[b(P.hoverChartIndex,-1)];v=this.normalize(v),B&&v.relatedTarget&&!this.inClass(v.relatedTarget,"highcharts-tooltip")&&(B.pointer.reset(),B.pointer.chartPosition=void 0)}onContainerMouseEnter(v){delete this.chartPosition}onContainerMouseMove(v){const B=this.chart,T=B.tooltip,S=this.normalize(v);this.setHoverChartIndex(),(B.mouseIsDown==="mousedown"||this.touchSelect(S))&&this.drag(S),!B.openMenu&&(this.inClass(S.target,"highcharts-tracker")||B.isInsidePlot(S.chartX-B.plotLeft,S.chartY-B.plotTop,{visiblePlotOnly:!0}))&&!(T&&T.shouldStickOnContact(S))&&(this.inClass(S.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(S))}onDocumentTouchEnd(v){const B=u[b(P.hoverChartIndex,-1)];B&&B.pointer.drop(v)}onContainerTouchMove(v){this.touchSelect(v)?this.onContainerMouseMove(v):this.touch(v)}onContainerTouchStart(v){this.touchSelect(v)?this.onContainerMouseDown(v):(this.zoomOption(v),this.touch(v,!0))}onDocumentMouseMove(v){const B=this.chart,T=B.tooltip,S=this.chartPosition,x=this.normalize(v,S);S&&!B.isInsidePlot(x.chartX-B.plotLeft,x.chartY-B.plotTop,{visiblePlotOnly:!0})&&!(T&&T.shouldStickOnContact(x))&&!this.inClass(x.target,"highcharts-tracker")&&this.reset()}onDocumentMouseUp(v){const B=u[b(P.hoverChartIndex,-1)];B&&B.pointer.drop(v)}pinch(v){const B=this,T=B.chart,S=B.pinchDown,x=v.touches||[],h=x.length,n=B.lastValidTouch,l=B.hasZoom,f={},k=h===1&&(B.inClass(v.target,"highcharts-tracker")&&T.runTrackerClick||B.runChartClick),y={},G=B.chart.tooltip,U=h===1&&b(G&&G.options.followTouchMove,!0);let O=B.selectionMarker;h>1?B.initiated=!0:U&&(B.initiated=!1),l&&B.initiated&&!k&&v.cancelable!==!1&&v.preventDefault(),[].map.call(x,function(H){return B.normalize(H)}),v.type==="touchstart"?([].forEach.call(x,function(H,z){S[z]={chartX:H.chartX,chartY:H.chartY}}),n.x=[S[0].chartX,S[1]&&S[1].chartX],n.y=[S[0].chartY,S[1]&&S[1].chartY],T.axes.forEach(function(H){if(H.zoomEnabled){const z=T.bounds[H.horiz?"h":"v"],W=H.minPixelPadding,d=H.toPixels(Math.min(b(H.options.min,H.dataMin),H.dataMin)),R=H.toPixels(Math.max(b(H.options.max,H.dataMax),H.dataMax)),q=Math.min(d,R),J=Math.max(d,R);z.min=Math.min(H.pos,q-W),z.max=Math.max(H.pos+H.len,J+W)}}),B.res=!0):U?this.runPointActions(B.normalize(v)):S.length&&(w(T,"touchpan",{originalEvent:v},()=>{O||(B.selectionMarker=O=p({destroy:_,touch:!0},T.plotBox)),B.pinchTranslate(S,x,f,O,y,n),B.hasPinched=l,B.scaleGroups(f,y)}),B.res&&(B.res=!1,this.reset(!1,0)))}pinchTranslate(v,B,T,S,x,h){this.zoomHor&&this.pinchTranslateDirection(!0,v,B,T,S,x,h),this.zoomVert&&this.pinchTranslateDirection(!1,v,B,T,S,x,h)}pinchTranslateDirection(v,B,T,S,x,h,n,l){const f=this.chart,k=v?"x":"y",y=v?"X":"Y",G="chart"+y,U=v?"width":"height",O=f["plot"+(v?"Left":"Top")],H=f.inverted,z=f.bounds[v?"h":"v"],W=B.length===1,d=B[0][G],R=!W&&B[1][G],q=function(){typeof X=="number"&&Math.abs(d-R)>20&&(C=l||Math.abs(V-X)/Math.abs(d-R)),ee=(O-V)/C+d,J=f["plot"+(v?"Width":"Height")]/C};let J,Y,ee,C=l||1,V=T[0][G],X=!W&&T[1][G],Q;q(),Y=ee,Yz.max&&(Y=z.max-J,Q=!0),Q?(V-=.8*(V-n[k][0]),typeof X=="number"&&(X-=.8*(X-n[k][1])),q()):n[k]=[V,X],H||(h[k]=ee-O,h[U]=J);const se=H?v?"scaleY":"scaleX":"scale"+y,K=H?1/C:C;x[U]=J,x[k]=Y,S[se]=C,S["translate"+y]=K*O+(V-K*d)}reset(v,B){const T=this,S=T.chart,x=S.hoverSeries,h=S.hoverPoint,n=S.hoverPoints,l=S.tooltip,f=l&&l.shared?n:h;v&&f&&F(f).forEach(function(k){k.series.isCartesian&&typeof k.plotX>"u"&&(v=!1)}),v?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),S.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()}),x&&x.onMouseOut(),l&&l.hide(B),T.unDocMouseMove&&(T.unDocMouseMove=T.unDocMouseMove()),S.axes.forEach(function(k){k.hideCrosshair()}),T.hoverX=S.hoverPoints=S.hoverPoint=null)}runPointActions(v,B,T){const S=this,x=S.chart,h=x.series,n=x.tooltip&&x.tooltip.options.enabled?x.tooltip:void 0,l=n?n.shared:!1;let f=B||x.hoverPoint,k=f&&f.series||x.hoverSeries;const y=(!v||v.type!=="touchmove")&&(!!B||k&&k.directTouch&&S.isDirectTouch),G=this.getHoverData(f,k,h,y,l,v);f=G.hoverPoint,k=G.hoverSeries;const U=G.hoverPoints,O=k&&k.tooltipOptions.followPointer&&!k.tooltipOptions.split,H=l&&k&&!k.noSharedTooltip;if(f&&(T||f!==x.hoverPoint||n&&n.isHidden)){if((x.hoverPoints||[]).forEach(function(z){U.indexOf(z)===-1&&z.setState()}),x.hoverSeries!==k&&k.onMouseOver(),S.applyInactiveState(U),(U||[]).forEach(function(z){z.setState("hover")}),x.hoverPoint&&x.hoverPoint.firePointEvent("mouseOut"),!f.series)return;x.hoverPoints=U,x.hoverPoint=f,f.firePointEvent("mouseOver",void 0,()=>{n&&f&&n.refresh(H?U:f,v)})}else if(O&&n&&!n.isHidden){const z=n.getAnchor([{}],v);x.isInsidePlot(z[0],z[1],{visiblePlotOnly:!0})&&n.updatePosition({plotX:z[0],plotY:z[1]})}S.unDocMouseMove||(S.unDocMouseMove=m(x.container.ownerDocument,"mousemove",function(z){const W=u[P.hoverChartIndex];W&&W.pointer.onDocumentMouseMove(z)}),S.eventsToUnbind.push(S.unDocMouseMove)),x.axes.forEach(function(W){const d=b((W.crosshair||{}).snap,!0);let R;d&&(R=x.hoverPoint,(!R||R.series[W.coll]!==W)&&(R=g(U,q=>q.series&&q.series[W.coll]===W))),R||!d?W.drawCrosshair(v,R):W.hideCrosshair()})}scaleGroups(v,B){const T=this.chart;T.series.forEach(function(S){const x=v||S.getPlotBox();S.group&&(S.xAxis&&S.xAxis.zoomEnabled||T.mapView)&&(S.group.attr(x),S.markerGroup&&(S.markerGroup.attr(x),S.markerGroup.clip(B?T.clipRect:null)),S.dataLabelsGroup&&S.dataLabelsGroup.attr(x))}),T.clipRect.attr(B||T.clipBox)}setDOMEvents(){const v=this.chart.container,B=v.ownerDocument;v.onmousedown=this.onContainerMouseDown.bind(this),v.onmousemove=this.onContainerMouseMove.bind(this),v.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(m(v,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(m(v,"mouseleave",this.onContainerMouseLeave.bind(this))),P.unbindDocumentMouseUp||(P.unbindDocumentMouseUp=m(B,"mouseup",this.onDocumentMouseUp.bind(this)));let T=this.chart.renderTo.parentElement;for(;T&&T.tagName!=="BODY";)this.eventsToUnbind.push(m(T,"scroll",()=>{delete this.chartPosition})),T=T.parentElement;s.hasTouch&&(this.eventsToUnbind.push(m(v,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(m(v,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),P.unbindDocumentTouchEnd||(P.unbindDocumentTouchEnd=m(B,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(){const v=this.chart,B=s.charts[b(P.hoverChartIndex,-1)];B&&B!==v&&B.pointer.onContainerMouseLeave({relatedTarget:v.container}),(!B||!B.mouseIsDown)&&(P.hoverChartIndex=v.index)}touch(v,B){const T=this.chart;let S,x,h;this.setHoverChartIndex(),v.touches.length===1?(v=this.normalize(v),h=T.isInsidePlot(v.chartX-T.plotLeft,v.chartY-T.plotTop,{visiblePlotOnly:!0}),h&&!T.openMenu?(B&&this.runPointActions(v),v.type==="touchmove"&&(x=this.pinchDown,S=x[0]?Math.sqrt(Math.pow(x[0].chartX-v.chartX,2)+Math.pow(x[0].chartY-v.chartY,2))>=4:!1),b(S,!0)&&this.pinch(v)):B&&this.reset()):v.touches.length===2&&this.pinch(v)}touchSelect(v){return!!(this.chart.zooming.singleTouch&&v.touches&&v.touches.length===1)}zoomOption(v){const B=this.chart;B.options.chart;const T=B.inverted;let S=B.zooming.type||"",x,h;/touch/.test(v.type)&&(S=b(B.zooming.pinchType,S)),this.zoomX=x=/x/.test(S),this.zoomY=h=/y/.test(S),this.zoomHor=x&&!T||h&&T,this.zoomVert=h&&!T||x&&T,this.hasZoom=x||h}}return function(I){const v=[],B=[];function T(x){o.pushUnique(B,x)&&m(x,"beforeRender",function(){this.pointer=new I(this,this.options)})}I.compose=T;function S(){for(let x=0,h=v.length;x{this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(h){const n=I(h.padding,8);this.options=h,this.chart.styledMode||(this.itemStyle=h.itemStyle,this.itemHiddenStyle=P(this.itemStyle,h.itemHiddenStyle)),this.itemMarginTop=h.itemMarginTop,this.itemMarginBottom=h.itemMarginBottom,this.padding=n,this.initialItemY=n-5,this.symbolWidth=I(h.symbolWidth,16),this.pages=[],this.proximate=h.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(h,n){const l=this.chart;this.setOptions(P(!0,this.options,h)),this.destroy(),l.isDirtyLegend=l.isDirtyBox=!0,I(n,!0)&&l.redraw(),b(this,"afterUpdate")}colorizeItem(h,n){const{group:l,label:f,line:k,symbol:y}=h.legendItem||{};if(l&&l[n?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){const{itemHiddenStyle:G}=this,U=G.color,O=n&&h.color||U,H=h.options&&h.options.marker;let z={fill:O};f==null||f.css(P(n?this.itemStyle:G)),k==null||k.attr({stroke:O}),y&&(H&&y.isMarker&&(z=h.pointAttribs(),n||(z.stroke=z.fill=U)),y.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||{},y=n.options,G=y.symbolPadding,U=!y.rtl,O=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[E(l.translateY)?"animate":"attr"](H,void 0,z)}O&&(O.x=f,O.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 y=k.checkbox;let G;y&&(G=f+l+y.y+(this.scrollOffset||0)+3,D(y,{left:h.translateX+k.checkboxOffset+y.x-20+"px",top:G+"px",display:this.proximate||G>f-6&&Gse*1.5?Q.height:se))}layoutItem(h){const n=this.options,l=this.padding,f=n.layout==="horizontal",k=h.itemHeight,y=this.itemMarginBottom,G=this.itemMarginTop,U=f?I(n.itemDistance,20):0,O=this.maxLegendWidth,H=n.alignColumns&&this.totalItemWidth>O?this.maxItemWidth:h.itemWidth,z=h.legendItem||{};f&&this.itemX-l+H>O&&(this.itemX=l,this.lastLineHeight&&(this.itemY+=G+this.lastLineHeight+y),this.lastLineHeight=0),this.lastItemY=G+this.itemY+y,this.lastLineHeight=Math.max(k,this.lastLineHeight),z.x=this.itemX,z.y=this.itemY,f?this.itemX+=H:(this.itemY+=G+k+y,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&&I(l.showInLegend,E(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(y,G){y.test(k)&&!E(h[G])&&(l[A[G]]=Math.max(l[A[G]],l.legend[(G+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][G]*f[G%2?"x":"y"]+I(f.margin,12)+n[G]+(l.titleOffset[G]||0)))})}proximatePositions(){const h=this.chart,n=[],l=this.options.align==="left";this.allItems.forEach(function(k){let y,G,U=l,O,H;k.yAxis&&(k.xAxis.options.reversed&&(U=!U),k.points&&(y=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?(O=y?y.plotY:k.yAxis.height,O+=H-.3*G):O=H+k.yAxis.height,n.push({target:O,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,y=h.getAllItems();let G,U,O,H=h.group,z,W=h.box;h.itemX=k,h.itemY=h.initialItemY,h.offsetWidth=0,h.lastItemY=0,h.widthOption=v(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(y,(d,R)=>(d.options&&d.options.legendIndex||0)-(R.options&&R.options.legendIndex||0)),f.reversed&&y.reverse(),h.allItems=y,h.display=G=!!y.length,h.lastLineHeight=0,h.maxItemWidth=0,h.totalItemWidth=0,h.itemHeight=0,y.forEach(h.renderItem,h),y.forEach(h.layoutItem,h),U=(h.widthOption||h.offsetWidth)+k,O=h.lastItemY+h.lastLineHeight+h.titleHeight,O=h.handleOverflow(O),O+=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&&O>0&&W[W.placed?"animate":"attr"](W.crisp.call({},{x:0,y:0,width:U,height:O},W.strokeWidth())),H[G?"show":"hide"](),n.styledMode&&H.getStyle("display")==="none"&&(U=O=0),h.legendWidth=U,h.legendHeight=O,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,y=k.y,G=k.verticalAlign==="top",U=this.padding,O=k.maxHeight,H=k.navigation,z=I(H.animation,!0),W=H.arrowSize||12,d=this.pages,R=this.allItems,q=function(se){typeof se=="number"?Q.attr({height:se}):Q&&(n.clipRect=Q.destroy(),n.contentGroup.clip()),n.contentGroup.div&&(n.contentGroup.div.style.clip=se?"rect("+U+"px,9999px,"+(U+se)+"px,0)":"auto")},J=function(se){return n[se]=f.circle(0,0,W*1.3).translate(W/2,W/2).add(X),l.styledMode||n[se].attr("fill","rgba(0,0,0,0.0001)"),n[se]};let Y,ee,C,V=l.spacingBox.height+(G?-y:y)-U,X=this.nav,Q=this.clipRect;return k.layout==="horizontal"&&k.verticalAlign!=="middle"&&!k.floating&&(V/=2),O&&(V=Math.min(V,O)),d.length=0,h&&V>0&&h>V&&H.enabled!==!1?(this.clipHeight=Y=Math.max(V-20-this.titleHeight-U,0),this.currentPage=I(this.currentPage,1),this.fullHeight=h,R.forEach((se,K)=>{C=se.legendItem||{};const ne=C.y||0,oe=Math.round(C.label.getBBox().height);let le=d.length;(!le||ne-d[le-1]>Y&&(ee||ne)!==d[le-1])&&(d.push(ee||ne),le++),C.pageIx=le-1,ee&&((R[K-1].legendItem||{}).pageIx=le-1),K===R.length-1&&ne+oe-d[le-1]>Y&&ne>d[le-1]&&(d.push(ne),C.pageIx=le),ne!==ee&&(ee=ne)}),Q||(Q=n.clipRect=f.clipRect(0,U-2,9999,0),n.contentGroup.clip(Q)),q(Y),X||(this.nav=X=f.g().attr({zIndex:1}).add(this.group),this.up=f.symbol("triangle",0,0,W,W).add(X),J("upTracker").on("click",function(){n.scroll(-1,z)}),this.pager=f.text("",15,10).addClass("highcharts-legend-navigation"),!l.styledMode&&H.style&&this.pager.css(H.style),this.pager.add(X),this.down=f.symbol("triangle-down",0,0,W,W).add(X),J("downTracker").on("click",function(){n.scroll(1,z)})),n.scroll(0),h=V):X&&(q(),this.nav=X.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),h}scroll(h,n){const l=this.chart,f=this.pages,k=f.length,y=this.clipHeight,G=this.options.navigation,U=this.pager,O=this.padding;let H=this.currentPage+h;if(H>k&&(H=k),H>0){typeof n<"u"&&L(n,l),this.nav.attr({translateX:O,translateY:y+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=m(I(n,l.renderer.globalAnimation,!0));T(()=>{b(this,"afterScroll",{currentPage:H})},z.duration)}}setItemEvents(h,n,l){const f=this,k=h.legendItem||{},y=f.chart.renderer.boxWrapper,G=h instanceof c,U="highcharts-legend-"+(G?"point":"series")+"-active",O=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&&y.addClass(U),O||n.css(f.options.itemHoverStyle)}).on("mouseout",function(){f.chart.styledMode||n.css(P(h.visible?f.itemStyle:f.itemHiddenStyle)),z(""),y.removeClass(U),h.setState()}).on("click",function(d){const R="legendItemClick",q=function(){h.setVisible&&h.setVisible(),z(h.visible?"inactive":"")};y.removeClass(U),d={browserEvent:d},h.firePointEvent?h.firePointEvent(R,d,q):b(h,R,d,q)})}createCheckboxForItem(h){const n=this;h.checkbox=w("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:h.selected,defaultChecked:h.selected},n.options.itemCheckboxStyle,n.chart.container),g(h.checkbox,"click",function(l){const f=l.target;b(h.series||h,"checkboxClick",{checked:f.checked,item:h},function(){h.select()})})}}return function(x){const h=[];function n(l){_.pushUnique(h,l)&&g(l,"beforeMargins",function(){this.legend=new x(this,this.options.legend)})}x.compose=n}(S||(S={})),S}),a(t,"Core/Legend/LegendSymbol.js",[t["Core/Utilities.js"]],function(i){const{extend:s,merge:o,pick:c}=i;var u;return function(_){function m(j,A){const p=this.legendItem=this.legendItem||{},g=this.options,w=j.symbolWidth,D=j.symbolHeight,E=D/2,N=this.chart.renderer,M=p.group,b=j.baseline-Math.round(j.fontMetrics.b*.3);let F={},P,I=g.marker,v=0;if(this.chart.styledMode||(F={"stroke-width":Math.min(g.lineWidth||0,24)},g.dashStyle?F.dashstyle=g.dashStyle:g.linecap!=="square"&&(F["stroke-linecap"]="round")),p.line=N.path().addClass("highcharts-graph").attr(F).add(M),F["stroke-linecap"]&&(v=Math.min(p.line.strokeWidth(),w)/2),w&&p.line.attr({d:[["M",v,b],["L",w-v,b]]}),I&&I.enabled!==!1&&w){let B=Math.min(c(I.radius,E),E);this.symbol.indexOf("url")===0&&(I=o(I,{width:D,height:D}),B=0),p.symbol=P=N.symbol(this.symbol,w/2-B,b-B,2*B,2*B,s({context:"legend"},I)).addClass("highcharts-point").add(M),P.isMarker=!0}}_.lineMarker=m;function L(j,A){const p=A.legendItem||{},g=j.options,w=j.symbolHeight,D=g.squareSymbol,E=D?w:j.symbolWidth;p.symbol=this.chart.renderer.rect(D?(j.symbolWidth-w)/2:0,j.baseline-w+1,E,w,c(j.options.symbolRadius,w/2)).addClass("highcharts-point").attr({zIndex:3}).add(p.group)}_.rectangle=L}(u||(u={})),u}),a(t,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:1,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){const{numberFormatter:s}=this.series.chart;return typeof this.y!="number"?"":s(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),a(t,"Core/Series/SeriesRegistry.js",[t["Core/Globals.js"],t["Core/Defaults.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],function(i,s,o,c){const{defaultOptions:u}=s,{extendClass:_,merge:m}=c;var L;return function(j){j.seriesTypes=i.seriesTypes;function A(g,w){const D=u.plotOptions||{},E=w.defaultOptions,N=w.prototype;N.type=g,N.pointClass||(N.pointClass=o),E&&(D[g]=E),j.seriesTypes[g]=w}j.registerSeriesType=A;function p(g,w,D,E,N){const M=u.plotOptions||{};return w=w||"",M[g]=m(M[w],D),A(g,_(j.seriesTypes[w]||function(){},E)),j.seriesTypes[g].prototype.type=g,N&&(j.seriesTypes[g].prototype.pointClass=_(o,N)),j.seriesTypes[g]}j.seriesType=p}(L||(L={})),L}),a(t,"Core/Series/Series.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Defaults.js"],t["Core/Foundation.js"],t["Core/Globals.js"],t["Core/Legend/LegendSymbol.js"],t["Core/Series/Point.js"],t["Core/Series/SeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,_,m,L,j,A){const{animObject:p,setAnimation:g}=i,{defaultOptions:w}=s,{registerEventOptions:D}=o,{hasTouch:E,svg:N,win:M}=c,{seriesTypes:b}=L,{addEvent:F,arrayMax:P,arrayMin:I,clamp:v,correctFloat:B,defined:T,diffObjects:S,erase:x,error:h,extend:n,find:l,fireEvent:f,getClosestDistance:k,getNestedProperty:y,insertItem:G,isArray:U,isNumber:O,isString:H,merge:z,objectEach:W,pick:d,removeEvent:R,splat:q,syncTimeout:J}=A;class Y{constructor(){this._i=void 0,this.chart=void 0,this.data=void 0,this.eventOptions=void 0,this.eventsToUnbind=void 0,this.index=void 0,this.linkedSeries=void 0,this.options=void 0,this.points=void 0,this.processedXData=void 0,this.processedYData=void 0,this.tooltipOptions=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zones=void 0}init(C,V){f(this,"init",{options:V});const X=this,Q=C.series;this.eventsToUnbind=[],X.chart=C,X.options=X.setOptions(V);const se=X.options;X.linkedSeries=[],X.bindAxes(),n(X,{name:se.name,state:"",visible:se.visible!==!1,selected:se.selected===!0}),D(this,se);const K=se.events;(K&&K.click||se.point&&se.point.events&&se.point.events.click||se.allowPointSelect)&&(C.runTrackerClick=!0),X.getColor(),X.getSymbol(),X.parallelArrays.forEach(function(oe){X[oe+"Data"]||(X[oe+"Data"]=[])}),X.isCartesian&&(C.hasCartesianSeries=!0);let ne;Q.length&&(ne=Q[Q.length-1]),X._i=d(ne&&ne._i,-1)+1,X.opacity=X.options.opacity,C.orderItems("series",G(this,Q)),se.dataSorting&&se.dataSorting.enabled?X.setDataSortingOptions():!X.points&&!X.data&&X.setData(se.data,!1),f(this,"afterInit")}is(C){return b[C]&&this instanceof b[C]}bindAxes(){const C=this,V=C.options,X=C.chart;let Q;f(this,"bindAxes",null,function(){(C.axisTypes||[]).forEach(function(se){X[se].forEach(function(K){Q=K.options,(d(V[se],0)===K.index||typeof V[se]<"u"&&V[se]===Q.id)&&(G(C,K.series),C[se]=K,K.isDirty=!0)}),!C[se]&&C.optionalAxis!==se&&h(18,!0,X)})}),f(this,"afterBindAxes")}updateParallelArrays(C,V,X){const Q=C.series,se=O(V)?function(K){const ne=K==="y"&&Q.toYData?Q.toYData(C):C[K];Q[K+"Data"][V]=ne}:function(K){Array.prototype[V].apply(Q[K+"Data"],X)};Q.parallelArrays.forEach(se)}hasData(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&this.yData.length>0}autoIncrement(C){const V=this.options,X=V.pointIntervalUnit,Q=V.relativeXValue,se=this.chart.time;let K=this.xIncrement,ne,oe;return K=d(K,V.pointStart,0),this.pointInterval=oe=d(this.pointInterval,V.pointInterval,1),Q&&O(C)&&(oe*=C),X&&(ne=new se.Date(K),X==="day"?se.set("Date",ne,se.get("Date",ne)+oe):X==="month"?se.set("Month",ne,se.get("Month",ne)+oe):X==="year"&&se.set("FullYear",ne,se.get("FullYear",ne)+oe),oe=ne.getTime()-K),Q&&O(C)?K+oe:(this.xIncrement=K+oe,K)}setDataSortingOptions(){const C=this.options;n(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),T(C.pointRange)||(C.pointRange=1)}setOptions(C){var V,X;const Q=this.chart,se=Q.options,K=se.plotOptions,ne=Q.userOptions||{},oe=z(C),le=Q.styledMode,ye={plotOptions:K,userOptions:oe};let te;f(this,"setOptions",ye);const re=ye.plotOptions[this.type],Z=ne.plotOptions||{},ie=Z.series||{},ae=w.plotOptions[this.type]||{},he=Z[this.type]||{};this.userOptions=ye.userOptions;const fe=z(re,K.series,he,oe);this.tooltipOptions=z(w.tooltip,(V=w.plotOptions.series)===null||V===void 0?void 0:V.tooltip,ae==null?void 0:ae.tooltip,Q.userOptions.tooltip,(X=Z.series)===null||X===void 0?void 0:X.tooltip,he.tooltip,oe.tooltip),this.stickyTracking=d(oe.stickyTracking,he.stickyTracking,ie.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:fe.stickyTracking),re.marker===null&&delete fe.marker,this.zoneAxis=fe.zoneAxis;const ve=this.zones=(fe.zones||[]).slice();return(fe.negativeColor||fe.negativeFillColor)&&!fe.zones&&(te={value:fe[this.zoneAxis+"Threshold"]||fe.threshold||0,className:"highcharts-negative"},le||(te.color=fe.negativeColor,te.fillColor=fe.negativeFillColor),ve.push(te)),ve.length&&T(ve[ve.length-1].value)&&ve.push(le?{}:{color:this.color,fillColor:this.fillColor}),f(this,"afterSetOptions",{options:fe}),fe}getName(){return d(this.options.name,"Series "+(this.index+1))}getCyclic(C,V,X){const Q=this.chart,se=`${C}Index`,K=`${C}Counter`,ne=(X==null?void 0:X.length)||Q.options.chart.colorCount;let oe,le;V||(le=d(C==="color"?this.options.colorIndex:void 0,this[se]),T(le)?oe=le:(Q.series.length||(Q[K]=0),oe=Q[K]%ne,Q[K]+=1),X&&(V=X[oe])),typeof oe<"u"&&(this[se]=oe),this[C]=V}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||w.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){const C=this.options.marker;this.getCyclic("symbol",C.symbol,this.chart.options.symbols)}findPointIndex(C,V){const X=C.id,Q=C.x,se=this.points,K=this.options.dataSorting;let ne,oe,le;if(X){const ye=this.chart.get(X);ye instanceof _&&(ne=ye)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let ye=te=>!te.touched&&te.index===C.index;if(K&&K.matchByName?ye=te=>!te.touched&&te.name===C.name:this.options.relativeXValue&&(ye=te=>!te.touched&&te.options.x===C.x),ne=l(se,ye),!ne)return}return ne&&(le=ne&&ne.index,typeof le<"u"&&(oe=!0)),typeof le>"u"&&O(Q)&&(le=this.xData.indexOf(Q,V)),le!==-1&&typeof le<"u"&&this.cropped&&(le=le>=this.cropStart?le-this.cropStart:le),!oe&&O(le)&&se[le]&&se[le].touched&&(le=void 0),le}updateData(C,V){const X=this.options,Q=X.dataSorting,se=this.points,K=[],ne=this.requireSorting,oe=C.length===se.length;let le,ye,te,re,Z=!0;if(this.xIncrement=null,C.forEach(function(ie,ae){const he=T(ie)&&this.pointClass.prototype.optionsToObject.call({series:this},ie)||{};let fe;const ve=he.x;he.id||O(ve)?(fe=this.findPointIndex(he,re),fe===-1||typeof fe>"u"?K.push(ie):se[fe]&&ie!==X.data[fe]?(se[fe].update(ie,!1,null,!1),se[fe].touched=!0,ne&&(re=fe+1)):se[fe]&&(se[fe].touched=!0),(!oe||ae!==fe||Q&&Q.enabled||this.hasDerivedData)&&(le=!0)):K.push(ie)},this),le)for(ye=se.length;ye--;)te=se[ye],te&&!te.touched&&te.remove&&te.remove(!1,V);else oe&&(!Q||!Q.enabled)?(C.forEach(function(ie,ae){ie!==se[ae].y&&!se[ae].destroyed&&se[ae].update(ie,!1,null,!1)}),K.length=0):Z=!1;return se.forEach(function(ie){ie&&(ie.touched=!1)}),Z?(K.forEach(function(ie){this.addPoint(ie,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=P(this.xData),this.autoIncrement()),!0):!1}setData(C,V=!0,X,Q){var se;const K=this,ne=K.points,oe=ne&&ne.length||0,le=K.options,ye=K.chart,te=le.dataSorting,re=K.xAxis,Z=le.turboThreshold,ie=this.xData,ae=this.yData,he=K.pointArrayMap,fe=he&&he.length,ve=le.keys;let ge,_e,be,Ce=0,De=1,Be=null,Le;ye.options.chart.allowMutatingData||(le.data&&delete K.options.data,K.userOptions.data&&delete K.userOptions.data,Le=z(!0,C)),C=Le||C||[];const Pe=C.length;if(te&&te.enabled&&(C=this.sortData(C)),ye.options.chart.allowMutatingData&&Q!==!1&&Pe&&oe&&!K.cropped&&!K.hasGroupedData&&K.visible&&!K.boosted&&(be=this.updateData(C,X)),!be){if(K.xIncrement=null,K.colorCounter=0,this.parallelArrays.forEach(function(Ue){K[Ue+"Data"].length=0}),Z&&Pe>Z)if(Be=K.getFirstValidPoint(C),O(Be))for(ge=0;ge=0?Ce:0,De=De>=0?De:1),Be.length===1&&(De=0),Ce===De)for(ge=0;ge{const ye=y(se,oe),te=y(se,le);return teye?1:0}).forEach(function(oe,le){oe.x=le},this),V.linkedSeries&&V.linkedSeries.forEach(function(oe){const le=oe.options,ye=le.data;(!le.dataSorting||!le.dataSorting.enabled)&&ye&&(ye.forEach(function(te,re){ye[re]=K(oe,te),C[re]&&(ye[re].x=C[re].x,ye[re].index=re)}),oe.setData(ye,!1))}),C}getProcessedData(C){const V=this,X=V.xAxis,Q=V.options,se=Q.cropThreshold,K=C||V.getExtremesFromAll||Q.getExtremesFromAll,ne=X==null?void 0:X.logarithmic,oe=V.isCartesian;let le,ye,te=0,re,Z,ie,ae=V.xData,he=V.yData,fe=!1;const ve=ae.length;X&&(re=X.getExtremes(),Z=re.min,ie=re.max,fe=!!(X.categories&&!X.names.length)),oe&&V.sorted&&!K&&(!se||ve>se||V.forceCrop)&&(ae[ve-1]ie?(ae=[],he=[]):V.yData&&(ae[0]ie)&&(le=this.cropData(V.xData,V.yData,Z,ie),ae=le.xData,he=le.yData,te=le.start,ye=!0));const ge=k([ne?ae.map(ne.log2lin):ae],()=>V.requireSorting&&!fe&&h(15,!1,V.chart));return{xData:ae,yData:he,cropped:ye,cropStart:te,closestPointRange:ge}}processData(C){const V=this,X=V.xAxis;if(V.isCartesian&&!V.isDirty&&!X.isDirty&&!V.yAxis.isDirty&&!C)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(C,V,X,Q,se){const K=C.length;let ne,oe,le=0,ye=K;for(se=d(se,this.cropShoulder),ne=0;ne=X){le=Math.max(0,ne-se);break}for(oe=ne;oeQ){ye=oe+se;break}return{xData:C.slice(le,ye),yData:V.slice(le,ye),start:le,end:ye}}generatePoints(){const C=this,V=C.options,X=C.processedData||V.data,Q=C.processedXData,se=C.processedYData,K=C.pointClass,ne=Q.length,oe=C.cropStart||0,le=C.hasGroupedData,ye=V.keys,te=[],re=V.dataGrouping&&V.dataGrouping.groupAll?oe:0;let Z,ie,ae,he,fe=C.data;if(!fe&&!le){const ve=[];ve.length=X.length,fe=C.data=ve}for(ye&&le&&(C.options.keys=!1),he=0;he0||!oe),te=V||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!X||(se[ie+ne]||re)>=he&&(se[ie-ne]||re)<=fe,ye&&te)if(ae=Z.length,ae)for(;ae--;)O(Z[ae])&&(K[ve++]=Z[ae]);else K[ve++]=Z;const _e={activeYData:K,dataMin:I(K),dataMax:P(K)};return f(this,"afterGetExtremes",{dataExtremes:_e}),_e}applyExtremes(){const C=this.getExtremes();return this.dataMin=C.dataMin,this.dataMax=C.dataMax,C}getFirstValidPoint(C){const V=C.length;let X=0,Q=null;for(;Q===null&&X{C&&!this.chart.container.querySelector(`[clip-path="url(#${C.id})"]`)&&(C.destroy(),delete X[V])}),this.finishedAnimating=!0,f(this,"afterAnimate")}drawPoints(C=this.points){const V=this,X=V.chart,Q=X.styledMode,{colorAxis:se,options:K}=V,ne=K.marker,oe=V[V.specialGroup||"markerGroup"],le=V.xAxis,ye=d(ne.enabled,!le||le.isRadial?!0:null,V.closestPointRangePx>=ne.enabledThreshold*ne.radius);let te,re,Z,ie,ae,he,fe;if(ne.enabled!==!1||V._hasPointMarkers)for(te=0;te"u"||ae.enabled)&&!re.isNull&&re.visible!==!1){const ge=d(ae.symbol,V.symbol,"rect");fe=V.markerAttribs(re,re.selected&&"select"),V.enabledDataSorting&&(re.startXPos=le.reversed?-(fe.width||0):le.width);const _e=re.isInside!==!1;if(!Z&&_e&&((fe.width||0)>0||re.hasImage)&&(re.graphic=Z=X.renderer.symbol(ge,fe.x,fe.y,fe.width,fe.height,he?ae:ne).add(oe),V.enabledDataSorting&&X.hasRendered&&(Z.attr({x:re.startXPos}),ie="animate")),Z&&ie==="animate"&&Z[_e?"show":"hide"](_e).animate(fe),Z){const be=V.pointAttribs(re,Q||!re.selected?void 0:"select");Q?se&&Z.css({fill:be.fill}):Z[ie](be)}Z&&Z.addClass(re.getClassName(),!0)}else Z&&(re.graphic=Z.destroy())}markerAttribs(C,V){const X=this.options,Q=X.marker,se=C.marker||{},K=se.symbol||Q.symbol,ne={};let oe,le,ye=d(se.radius,Q&&Q.radius);V&&(oe=Q.states[V],le=se.states&&se.states[V],ye=d(le&&le.radius,oe&&oe.radius,ye&&ye+(oe&&oe.radiusPlus||0))),C.hasImage=K&&K.indexOf("url")===0,C.hasImage&&(ye=0);const te=C.pos();return O(ye)&&te&&(ne.x=te[0]-ye,ne.y=te[1]-ye,X.crisp&&(ne.x=Math.floor(ne.x))),ye&&(ne.width=ne.height=2*ye),ne}pointAttribs(C,V){const X=this.options.marker,Q=C&&C.options,se=Q&&Q.marker||{},K=Q&&Q.color,ne=C&&C.color,oe=C&&C.zone&&C.zone.color;let le,ye,te=this.color,re,Z,ie=d(se.lineWidth,X.lineWidth),ae=1;return te=K||oe||ne||te,re=se.fillColor||X.fillColor||te,Z=se.lineColor||X.lineColor||te,V=V||"normal",V&&(le=X.states[V]||{},ye=se.states&&se.states[V]||{},ie=d(ye.lineWidth,le.lineWidth,ie+d(ye.lineWidthPlus,le.lineWidthPlus,0)),re=ye.fillColor||le.fillColor||re,Z=ye.lineColor||le.lineColor||Z,ae=d(ye.opacity,le.opacity,ae)),{stroke:Z,"stroke-width":ie,fill:re,opacity:ae}}destroy(C){const V=this,X=V.chart,Q=/AppleWebKit\/533/.test(M.navigator.userAgent),se=V.data||[];let K,ne,oe,le;for(f(V,"destroy",{keepEventsForUpdate:C}),this.removeEvents(C),(V.axisTypes||[]).forEach(function(ye){le=V[ye],le&&le.series&&(x(le.series,V),le.isDirty=le.forceRedraw=!0)}),V.legendItem&&V.chart.legend.destroyItem(V),ne=se.length;ne--;)oe=se[ne],oe&&oe.destroy&&oe.destroy();V.clips&&V.clips.forEach(ye=>ye.destroy()),A.clearTimeout(V.animationTimeout),W(V,function(ye,te){ye instanceof j&&!ye.survive&&(K=Q&&te==="group"?"hide":"destroy",ye[K]())}),X.hoverSeries===V&&(X.hoverSeries=void 0),x(X.series,V),X.orderItems("series"),W(V,function(ye,te){(!C||te!=="hcEvents")&&delete V[te]})}applyZones(){const C=this,V=this.chart,X=V.renderer,Q=this.zones,se=this.clips||[],K=this.graph,ne=this.area,oe=Math.max(V.plotWidth,V.plotHeight),le=this[(this.zoneAxis||"y")+"Axis"],ye=V.inverted;let te,re,Z,ie,ae,he,fe,ve,ge,_e,be,Ce=!1;Q.length&&(K||ne)&&le&&typeof le.min<"u"?(ae=le.reversed,he=le.horiz,K&&!this.showLine&&K.hide(),ne&&ne.hide(),ie=le.getExtremes(),Q.forEach(function(De,Be){te=ae?he?V.plotWidth:0:he?0:le.toPixels(ie.min)||0,te=v(d(re,te),0,oe),re=v(Math.round(le.toPixels(d(De.value,ie.max),!0)||0),0,oe),Ce&&(te=re=le.toPixels(ie.max)),fe=Math.abs(te-re),ve=Math.min(te,re),ge=Math.max(te,re),le.isXAxis?(Z={x:ye?ge:ve,y:0,width:fe,height:oe},he||(Z.x=V.plotHeight-Z.x)):(Z={x:0,y:ye?ge:ve,width:oe,height:fe},he&&(Z.y=V.plotWidth-Z.y)),se[Be]?se[Be].animate(Z):se[Be]=X.clipRect(Z),_e=C["zone-area-"+Be],be=C["zone-graph-"+Be],K&&be&&be.clip(se[Be]),ne&&_e&&_e.clip(se[Be]),Ce=De.value>ie.max,C.resetZones&&re===0&&(re=void 0)}),this.clips=se):C.visible&&(K&&K.show(),ne&&ne.show())}plotGroup(C,V,X,Q,se){let K=this[C];const ne=!K,oe={visibility:X,zIndex:Q||.1};return typeof this.opacity<"u"&&!this.chart.styledMode&&this.state!=="inactive"&&(oe.opacity=this.opacity),ne&&(this[C]=K=this.chart.renderer.g().add(se)),K.addClass("highcharts-"+V+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(T(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(K.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),K.attr(oe)[ne?"attr":"animate"](this.getPlotBox(V)),K}getPlotBox(C){let V=this.xAxis,X=this.yAxis;const Q=this.chart,se=Q.inverted&&!Q.polar&&V&&this.invertible!==!1&&C==="series";return Q.inverted&&(V=X,X=this.xAxis),{translateX:V?V.left:Q.plotLeft,translateY:X?X.top:Q.plotTop,rotation:se?90:0,rotationOriginX:se?(V.len-X.len)/2:0,rotationOriginY:se?(V.len+X.len)/2:0,scaleX:se?-1:1,scaleY:1}}removeEvents(C){const V=this;C||R(V),V.eventsToUnbind.length&&(V.eventsToUnbind.forEach(function(X){X()}),V.eventsToUnbind.length=0)}render(){const C=this,V=C.chart,X=C.options,Q=p(X.animation),se=C.visible?"inherit":"hidden",K=X.zIndex,ne=C.hasRendered,oe=V.seriesGroup;V.inverted;let le=C.finishedAnimating?0:Q.duration;f(this,"render"),C.plotGroup("group","series",se,K,oe),C.markerGroup=C.plotGroup("markerGroup","markers",se,K,oe),X.clip!==!1&&C.setClip(),C.animate&&le&&C.animate(!0),C.drawGraph&&(C.drawGraph(),C.applyZones()),C.visible&&C.drawPoints(),C.drawDataLabels&&C.drawDataLabels(),C.redrawPoints&&C.redrawPoints(),C.drawTracker&&X.enableMouseTracking&&C.drawTracker(),C.animate&&le&&C.animate(),ne||(le&&Q.defer&&(le+=Q.defer),C.animationTimeout=J(function(){C.afterAnimate()},le||0)),C.isDirty=!1,C.hasRendered=!0,f(C,"afterRender")}redraw(){const C=this.isDirty||this.isDirtyData;this.translate(),this.render(),C&&delete this.kdTree}searchPoint(C,V){const X=this,Q=X.xAxis,se=X.yAxis,K=X.chart.inverted;return this.searchKDTree({clientX:K?Q.len-C.chartY+Q.pos:C.chartX-Q.pos,plotY:K?se.len-C.chartX+se.pos:C.chartY-se.pos},V,C)}buildKDTree(C){this.buildingKdTree=!0;const V=this,X=V.options.findNearestPointBy.indexOf("y")>-1?2:1;function Q(K,ne,oe){const le=K&&K.length;let ye,te;if(le)return ye=V.kdAxisArray[ne%oe],K.sort(function(re,Z){return re[ye]-Z[ye]}),te=Math.floor(le/2),{point:K[te],left:Q(K.slice(0,te),ne+1,oe),right:Q(K.slice(te+1),ne+1,oe)}}function se(){V.kdTree=Q(V.getValidPoints(null,!V.directTouch),X,X),V.buildingKdTree=!1}delete V.kdTree,J(se,V.options.kdNow||C&&C.type==="touchstart"?0:1)}searchKDTree(C,V,X){const Q=this,se=this.kdAxisArray[0],K=this.kdAxisArray[1],ne=V?"distX":"dist",oe=Q.options.findNearestPointBy.indexOf("y")>-1?2:1;function le(te,re){const Z=T(te[se])&&T(re[se])?Math.pow(te[se]-re[se],2):null,ie=T(te[K])&&T(re[K])?Math.pow(te[K]-re[K],2):null,ae=(Z||0)+(ie||0);re.dist=T(ae)?Math.sqrt(ae):Number.MAX_VALUE,re.distX=T(Z)?Math.sqrt(Z):Number.MAX_VALUE}function ye(te,re,Z,ie){const ae=re.point,he=Q.kdAxisArray[Z%ie];let fe,ve,ge=ae;le(te,ae);const _e=te[he]-ae[he],be=_e<0?"left":"right",Ce=_e<0?"right":"left";return re[be]&&(fe=ye(te,re[be],Z+1,ie),ge=fe[ne]=0&&C.plotY<=(Q?Q.len:V.plotHeight)&&C.plotX>=0&&C.plotX<=(X?X.len:V.plotWidth)}drawTracker(){const C=this,V=C.options,X=V.trackByArea,Q=[].concat(X?C.areaPath:C.graphPath),se=C.chart,K=se.pointer,ne=se.renderer,oe=se.options.tooltip.snap,le=C.tracker,ye=function(re){V.enableMouseTracking&&se.hoverSeries!==C&&C.onMouseOver()},te="rgba(192,192,192,"+(N?1e-4:.002)+")";le?le.attr({d:Q}):C.graph&&(C.tracker=ne.path(Q).attr({visibility:C.visible?"inherit":"hidden",zIndex:2}).addClass(X?"highcharts-tracker-area":"highcharts-tracker-line").add(C.group),se.styledMode||C.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:te,fill:X?te:"none","stroke-width":C.graph.strokeWidth()+(X?0:2*oe)}),[C.tracker,C.markerGroup,C.dataLabelsGroup].forEach(function(re){re&&(re.addClass("highcharts-tracker").on("mouseover",ye).on("mouseout",function(Z){K.onTrackerMouseOut(Z)}),V.cursor&&!se.styledMode&&re.css({cursor:V.cursor}),E&&re.on("touchstart",ye))})),f(this,"afterDrawTracker")}addPoint(C,V,X,Q,se){const K=this,ne=K.options,oe=K.data,le=K.chart,ye=K.xAxis,te=ye&&ye.hasNames&&ye.names,re=ne.data,Z=K.xData;let ie,ae;V=d(V,!0);const he={series:K};K.pointClass.prototype.applyOptions.apply(he,[C]);const fe=he.x;if(ae=Z.length,K.requireSorting&&fefe;)ae--;K.updateParallelArrays(he,"splice",[ae,0,0]),K.updateParallelArrays(he,ae),te&&he.name&&(te[fe]=he.name),re.splice(ae,0,C),(ie||K.processedData)&&(K.data.splice(ae,0,null),K.processData()),ne.legendType==="point"&&K.generatePoints(),X&&(oe[0]&&oe[0].remove?oe[0].remove(!1):(oe.shift(),K.updateParallelArrays(he,"shift"),re.shift())),se!==!1&&f(K,"addPoint",{point:he}),K.isDirty=!0,K.isDirtyData=!0,V&&le.redraw(Q)}removePoint(C,V,X){const Q=this,se=Q.data,K=se[C],ne=Q.points,oe=Q.chart,le=function(){ne&&ne.length===se.length&&ne.splice(C,1),se.splice(C,1),Q.options.data.splice(C,1),Q.updateParallelArrays(K||{series:Q},"splice",[C,1]),K&&K.destroy(),Q.isDirty=!0,Q.isDirtyData=!0,V&&oe.redraw()};g(X,oe),V=d(V,!0),K?K.firePointEvent("remove",null,le):le()}remove(C,V,X,Q){const se=this,K=se.chart;function ne(){se.destroy(Q),K.isDirtyLegend=K.isDirtyBox=!0,K.linkSeries(Q),d(C,!0)&&K.redraw(V)}X!==!1?f(se,"remove",null,ne):ne()}update(C,V){C=S(C,this.userOptions),f(this,"update",{options:C});const X=this,Q=X.chart,se=X.userOptions,K=X.initialType||X.type,ne=Q.options.plotOptions,oe=b[K].prototype,le=["group","markerGroup","dataLabelsGroup","transformGroup"],ye=X.finishedAnimating&&{animation:!1},te={};let re,Z,ie=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],ae=C.type||se.type||Q.options.chart.type;const he=!(this.hasDerivedData||ae&&ae!==this.type||typeof C.pointStart<"u"||typeof C.pointInterval<"u"||typeof C.relativeXValue<"u"||C.joinBy||C.mapData||X.hasOptionChanged("dataGrouping")||X.hasOptionChanged("pointStart")||X.hasOptionChanged("pointInterval")||X.hasOptionChanged("pointIntervalUnit")||X.hasOptionChanged("keys"));ae=ae||K,he&&(ie.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),C.visible!==!1&&ie.push("area","graph"),X.parallelArrays.forEach(function(ve){ie.push(ve+"Data")}),C.data&&(C.dataSorting&&n(X.options.dataSorting,C.dataSorting),this.setData(C.data,!1))),C=z(se,ye,{index:typeof se.index>"u"?X.index:se.index,pointStart:d(ne&&ne.series&&ne.series.pointStart,se.pointStart,X.xData[0])},!he&&{data:X.options.data},C),he&&C.data&&(C.data=X.options.data),ie=le.concat(ie),ie.forEach(function(ve){ie[ve]=X[ve],delete X[ve]});let fe=!1;if(b[ae]){if(fe=ae!==X.type,X.remove(!1,!1,!1,!0),fe)if(Object.setPrototypeOf)Object.setPrototypeOf(X,b[ae].prototype);else{const ve=Object.hasOwnProperty.call(X,"hcEvents")&&X.hcEvents;for(Z in oe)X[Z]=void 0;n(X,b[ae].prototype),ve?X.hcEvents=ve:delete X.hcEvents}}else h(17,!0,Q,{missingModuleFor:ae});if(ie.forEach(function(ve){X[ve]=ie[ve]}),X.init(Q,C),he&&this.points){if(re=X.options,re.visible===!1)te.graphic=1,te.dataLabel=1;else if(!X._hasPointLabels){const{marker:ve,dataLabels:ge}=re,_e=se.marker||{};ve&&(ve.enabled===!1||_e.symbol!==ve.symbol||_e.height!==ve.height||_e.width!==ve.width)&&(te.graphic=1),ge&&ge.enabled===!1&&(te.dataLabel=1)}for(const ve of this.points)ve&&ve.series&&(ve.resolveColor(),Object.keys(te).length&&ve.destroyElements(te),re.showInLegend===!1&&ve.legendItem&&Q.legend.destroyItem(ve))}X.initialType=K,Q.linkSeries(),fe&&X.linkedSeries.length&&(X.isDirtyData=!0),f(this,"afterUpdate"),d(V,!0)&&Q.redraw(he?void 0:!1)}setName(C){this.name=this.options.name=this.userOptions.name=C,this.chart.isDirtyLegend=!0}hasOptionChanged(C){const V=this.chart,X=this.options[C],Q=V.options.plotOptions,se=this.userOptions[C];return se?X!==se:X!==d(Q&&Q[this.type]&&Q[this.type][C],Q&&Q.series&&Q.series[C],X)}onMouseOver(){const C=this,V=C.chart,X=V.hoverSeries;V.pointer.setHoverChartIndex(),X&&X!==C&&X.onMouseOut(),C.options.events.mouseOver&&f(C,"mouseOver"),C.setState("hover"),V.hoverSeries=C}onMouseOut(){const C=this,V=C.options,X=C.chart,Q=X.tooltip,se=X.hoverPoint;X.hoverSeries=null,se&&se.onMouseOut(),C&&V.events.mouseOut&&f(C,"mouseOut"),Q&&!C.stickyTracking&&(!Q.shared||C.noSharedTooltip)&&Q.hide(),X.series.forEach(function(K){K.setState("",!0)})}setState(C,V){const X=this,Q=X.options,se=X.graph,K=Q.inactiveOtherPoints,ne=Q.states,oe=d(ne[C||"normal"]&&ne[C||"normal"].animation,X.chart.options.chart.animation);let le,ye=Q.lineWidth,te=0,re=Q.opacity;if(C=C||"",X.state!==C&&([X.group,X.markerGroup,X.dataLabelsGroup].forEach(function(Z){Z&&(X.state&&Z.removeClass("highcharts-series-"+X.state),C&&Z.addClass("highcharts-series-"+C))}),X.state=C,!X.chart.styledMode)){if(ne[C]&&ne[C].enabled===!1)return;if(C&&(ye=ne[C].lineWidth||ye+(ne[C].lineWidthPlus||0),re=d(ne[C].opacity,re)),se&&!se.dashstyle&&O(ye))for(le={"stroke-width":ye},se.animate(le,oe);X["zone-graph-"+te];)X["zone-graph-"+te].animate(le,oe),te=te+1;K||[X.group,X.markerGroup,X.dataLabelsGroup,X.labelBySeries].forEach(function(Z){Z&&Z.animate({opacity:re},oe)})}V&&K&&X.points&&X.setAllPointsToState(C||void 0)}setAllPointsToState(C){this.points.forEach(function(V){V.setState&&V.setState(C)})}setVisible(C,V){const X=this,Q=X.chart,se=Q.options.chart.ignoreHiddenSeries,K=X.visible;X.visible=C=X.options.visible=X.userOptions.visible=typeof C>"u"?!K:C;const ne=C?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(oe){X[oe]&&X[oe][ne]()}),(Q.hoverSeries===X||(Q.hoverPoint&&Q.hoverPoint.series)===X)&&X.onMouseOut(),X.legendItem&&Q.legend.colorizeItem(X,C),X.isDirty=!0,X.options.stacking&&Q.series.forEach(function(oe){oe.options.stacking&&oe.visible&&(oe.isDirty=!0)}),X.linkedSeries.forEach(function(oe){oe.setVisible(C,!1)}),se&&(Q.isDirtyBox=!0),f(X,ne),V!==!1&&Q.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(C){const V=this;V.selected=C=this.options.selected=typeof C>"u"?!V.selected:C,V.checkbox&&(V.checkbox.checked=C),f(V,C?"select":"unselect")}shouldShowTooltip(C,V,X={}){return X.series=this,X.visiblePlotOnly=!0,this.chart.isInsidePlot(C,V,X)}drawLegendSymbol(C,V){var X;(X=u[this.options.legendSymbol||"rectangle"])===null||X===void 0||X.call(this,C,V)}}return Y.defaultOptions=m,Y.types=L.seriesTypes,Y.registerType=L.registerSeriesType,n(Y.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:_,requireSorting:!0,sorted:!0}),L.series=Y,Y}),a(t,"Core/Chart/Chart.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Templating.js"],t["Core/Foundation.js"],t["Core/Globals.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Time.js"],t["Core/Utilities.js"],t["Core/Renderer/HTML/AST.js"]],function(i,s,o,c,u,_,m,L,j,A,p,g,w){const{animate:D,animObject:E,setAnimation:N}=i,{defaultOptions:M,defaultTime:b}=o,{numberFormat:F}=c,{registerEventOptions:P}=u,{charts:I,doc:v,marginNames:B,svg:T,win:S}=_,{seriesTypes:x}=j,{addEvent:h,attr:n,createElement:l,css:f,defined:k,diffObjects:y,discardElement:G,erase:U,error:O,extend:H,find:z,fireEvent:W,getStyle:d,isArray:R,isNumber:q,isObject:J,isString:Y,merge:ee,objectEach:C,pick:V,pInt:X,relativeLength:Q,removeEvent:se,splat:K,syncTimeout:ne,uniqueKey:oe}=g;class le{static chart(te,re,Z){return new le(te,re,Z)}constructor(te,re,Z){this.axes=void 0,this.axisOffset=void 0,this.zoomBool=void 0,this.bounds=void 0,this.chartHeight=void 0,this.chartWidth=void 0,this.clipBox=void 0,this.colorCounter=void 0,this.container=void 0,this.eventOptions=void 0,this.index=void 0,this.isResizing=void 0,this.labelCollectors=void 0,this.margin=void 0,this.numberFormatter=void 0,this.options=void 0,this.plotBox=void 0,this.plotHeight=void 0,this.plotLeft=void 0,this.plotTop=void 0,this.plotWidth=void 0,this.pointCount=void 0,this.pointer=void 0,this.renderer=void 0,this.renderTo=void 0,this.series=void 0,this.sharedClips={},this.spacing=void 0,this.spacingBox=void 0,this.symbolCounter=void 0,this.time=void 0,this.titleOffset=void 0,this.userOptions=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zooming=void 0,this.getArgs(te,re,Z)}getArgs(te,re,Z){Y(te)||te.nodeName?(this.renderTo=te,this.init(re,Z)):this.init(te,re)}setZoomOptions(){console.log("setZoomOptions");const te=this,re=te.options.chart,Z=re.zooming;te.zooming=Object.assign(Object.assign({},Z),{type:V(re.zoomType,Z.type),key:V(re.zoomKey,Z.key),pinchType:V(re.pinchType,Z.pinchType),singleTouch:V(re.zoomBySingleTouch,Z.singleTouch,!1),resetButton:ee(Z.resetButton,re.resetZoomButton)})}init(te,re){W(this,"init",{args:arguments},function(){const Z=ee(M,te),ie=Z.chart;this.userOptions=H({},te),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=re,this.isResizing=0,this.options=Z,this.axes=[],this.series=[],this.time=te.time&&Object.keys(te.time).length?new p(te.time):_.time,this.numberFormatter=ie.numberFormatter||F,this.styledMode=ie.styledMode,this.hasCartesianSeries=ie.showAxes;const ae=this;ae.index=I.length,I.push(ae),_.chartCount++,P(this,ie),ae.xAxis=[],ae.yAxis=[],ae.pointCount=ae.colorCounter=ae.symbolCounter=0,this.setZoomOptions(),W(ae,"afterInit"),ae.firstRender()})}initSeries(te){const re=this,Z=re.options.chart,ie=te.type||Z.type,ae=x[ie];ae||O(17,!0,re,{missingModuleFor:ie});const he=new ae;return typeof he.init=="function"&&he.init(re,te),he}setSeriesData(){this.getSeriesOrderByLinks().forEach(function(te){!te.points&&!te.data&&te.enabledDataSorting&&te.setData(te.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(te,re){return te.linkedSeries.length||re.linkedSeries.length?re.linkedSeries.length-te.linkedSeries.length:0})}orderItems(te,re=0){const Z=this[te],ie=this.options[te]=K(this.options[te]).slice(),ae=this.userOptions[te]=this.userOptions[te]?K(this.userOptions[te]).slice():[];if(this.hasRendered&&(ie.splice(re),ae.splice(re)),Z)for(let he=re,fe=Z.length;he=Math.max(ge+he,Pe.pos)&&Ue<=Math.min(ge+he+Ce.width,Pe.pos+Pe.len)||(Le.isInsidePlot=!1)}if(!Z.ignoreY&&Le.isInsidePlot){const Pe=!ie&&Z.axis&&!Z.axis.isXAxis&&Z.axis||be&&(ie?be.xAxis:be.yAxis)||{pos:fe,len:1/0},Ue=Z.paneCoordinates?Pe.pos+Be:fe+Be;Ue>=Math.max(_e+fe,Pe.pos)&&Ue<=Math.min(_e+fe+Ce.height,Pe.pos+Pe.len)||(Le.isInsidePlot=!1)}return W(this,"afterIsInsidePlot",Le),Le.isInsidePlot}redraw(te){W(this,"beforeRedraw");const re=this,Z=re.hasCartesianSeries?re.axes:re.colorAxis||[],ie=re.series,ae=re.pointer,he=re.legend,fe=re.userOptions.legend,ve=re.renderer,ge=ve.isHidden(),_e=[];let be,Ce,De,Be=re.isDirtyBox,Le=re.isDirtyLegend,Pe;for(ve.rootFontSize=ve.boxWrapper.getStyle("font-size"),re.setResponsive&&re.setResponsive(!1),N(re.hasRendered?te:!1,re),ge&&re.temporaryDisplay(),re.layOutTitles(!1),De=ie.length;De--;)if(Pe=ie[De],(Pe.options.stacking||Pe.options.centerInCategory)&&(Ce=!0,Pe.isDirty)){be=!0;break}if(be)for(De=ie.length;De--;)Pe=ie[De],Pe.options.stacking&&(Pe.isDirty=!0);ie.forEach(function(Ue){Ue.isDirty&&(Ue.options.legendType==="point"?(typeof Ue.updateTotals=="function"&&Ue.updateTotals(),Le=!0):fe&&(fe.labelFormatter||fe.labelFormat)&&(Le=!0)),Ue.isDirtyData&&W(Ue,"updatedData")}),Le&&he&&he.options.enabled&&(he.render(),re.isDirtyLegend=!1),Ce&&re.getStacks(),Z.forEach(function(Ue){Ue.updateNames(),Ue.setScale()}),re.getMargins(),Z.forEach(function(Ue){Ue.isDirty&&(Be=!0)}),Z.forEach(function(Ue){const Je=Ue.min+","+Ue.max;Ue.extKey!==Je&&(Ue.extKey=Je,_e.push(function(){W(Ue,"afterSetExtremes",H(Ue.eventArgs,Ue.getExtremes())),delete Ue.eventArgs})),(Be||Ce)&&Ue.redraw()}),Be&&re.drawChartBox(),W(re,"predraw"),ie.forEach(function(Ue){(Be||Ue.isDirty)&&Ue.visible&&Ue.redraw(),Ue.isDirtyData=!1}),ae&&ae.reset(!0),ve.draw(),W(re,"redraw"),W(re,"render"),ge&&re.temporaryDisplay(!0),_e.forEach(function(Ue){Ue.call()})}get(te){const re=this.series;function Z(ae){return ae.id===te||ae.options&&ae.options.id===te}let ie=z(this.axes,Z)||z(this.series,Z);for(let ae=0;!ie&&ae(re.getPointsCollection().forEach(Z=>{V(Z.selectedStaging,Z.selected)&&te.push(Z)}),te),[])}getSelectedSeries(){return this.series.filter(function(te){return te.selected})}setTitle(te,re,Z){this.applyDescription("title",te),this.applyDescription("subtitle",re),this.applyDescription("caption",void 0),this.layOutTitles(Z)}applyDescription(te,re){const Z=this,ie=this.options[te]=ee(this.options[te],re);let ae=this[te];ae&&re&&(this[te]=ae=ae.destroy()),ie&&!ae&&(ae=this.renderer.text(ie.text,0,0,ie.useHTML).attr({align:ie.align,class:"highcharts-"+te,zIndex:ie.zIndex||4}).add(),ae.update=function(he,fe){Z.applyDescription(te,he),Z.layOutTitles(fe)},this.styledMode||ae.css(H(te==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},ie.style)),this[te]=ae)}layOutTitles(te=!0){const re=[0,0,0],Z=this.renderer,ie=this.spacingBox;["title","subtitle","caption"].forEach(function(he){const fe=this[he],ve=this.options[he],ge=ve.verticalAlign||"top",_e=he==="title"?ge==="top"?-3:0:ge==="top"?re[0]+2:0;if(fe){fe.css({width:(ve.width||ie.width+(ve.widthAdjust||0))+"px"});const be=Z.fontMetrics(fe).b,Ce=Math.round(fe.getBBox(ve.useHTML).height);fe.align(H({y:ge==="bottom"?be:_e+be,height:Ce},ve),!1,"spacingBox"),ve.floating||(ge==="top"?re[0]=Math.ceil(re[0]+Ce):ge==="bottom"&&(re[2]=Math.ceil(re[2]+Ce)))}},this),re[0]&&(this.options.title.verticalAlign||"top")==="top"&&(re[0]+=this.options.title.margin),re[2]&&this.options.caption.verticalAlign==="bottom"&&(re[2]+=this.options.caption.margin);const ae=!this.titleOffset||this.titleOffset.join(",")!==re.join(",");this.titleOffset=re,W(this,"afterLayOutTitles"),!this.isDirtyBox&&ae&&(this.isDirtyBox=this.isDirtyLegend=ae,this.hasRendered&&te&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:d(this.renderTo,"width",!0)||0,height:d(this.renderTo,"height",!0)||0}}getChartSize(){const te=this,re=te.options.chart,Z=re.width,ie=re.height,ae=te.getContainerBox();te.chartWidth=Math.max(0,Z||ae.width||600),te.chartHeight=Math.max(0,Q(ie,te.chartWidth)||(ae.height>1?ae.height:400)),te.containerBox=ae}temporaryDisplay(te){let re=this.renderTo,Z;if(te)for(;re&&re.style;)re.hcOrigStyle&&(f(re,re.hcOrigStyle),delete re.hcOrigStyle),re.hcOrigDetached&&(v.body.removeChild(re),re.hcOrigDetached=!1),re=re.parentNode;else for(;re&&re.style&&(!v.body.contains(re)&&!re.parentNode&&(re.hcOrigDetached=!0,v.body.appendChild(re)),(d(re,"display",!1)==="none"||re.hcOricDetached)&&(re.hcOrigStyle={display:re.style.display,height:re.style.height,overflow:re.style.overflow},Z={display:"block",overflow:"hidden"},re!==this.renderTo&&(Z.height=0),f(re,Z),re.offsetWidth||re.style.setProperty("display","block","important")),re=re.parentNode,re!==v.body););}setClassName(te){this.container.className="highcharts-container "+(te||"")}getContainer(){const te=this,re=te.options,Z=re.chart,ie="data-highcharts-chart",ae=oe();let he,fe=te.renderTo;fe||(te.renderTo=fe=Z.renderTo),Y(fe)&&(te.renderTo=fe=v.getElementById(fe)),fe||O(13,!0,te);const ve=X(n(fe,ie));q(ve)&&I[ve]&&I[ve].hasRendered&&I[ve].destroy(),n(fe,ie,te.index),fe.innerHTML=w.emptyHTML,!Z.skipClone&&!fe.offsetWidth&&te.temporaryDisplay(),te.getChartSize();const ge=te.chartWidth,_e=te.chartHeight;f(fe,{overflow:"hidden"}),te.styledMode||(he=H({position:"relative",overflow:"hidden",width:ge+"px",height:_e+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},Z.style||{}));const be=l("div",{id:ae},he,fe);te.container=be,te._cursor=be.style.cursor;const Ce=Z.renderer||!T?m.getRendererType(Z.renderer):A;if(te.renderer=new Ce(be,ge,_e,void 0,Z.forExport,re.exporting&&re.exporting.allowHTML,te.styledMode),te.containerBox=te.getContainerBox(),N(void 0,te),te.setClassName(Z.className),!te.styledMode)te.renderer.setStyle(Z.style);else for(const De in re.defs)this.renderer.definition(re.defs[De]);te.renderer.chartIndex=te.index,W(this,"afterGetContainer")}getMargins(te){const{spacing:re,margin:Z,titleOffset:ie}=this;this.resetMargins(),ie[0]&&!k(Z[0])&&(this.plotTop=Math.max(this.plotTop,ie[0]+re[0])),ie[2]&&!k(Z[2])&&(this.marginBottom=Math.max(this.marginBottom,ie[2]+re[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Z,re),W(this,"getMargins"),te||this.getAxisMargins()}getAxisMargins(){const te=this,re=te.axisOffset=[0,0,0,0],Z=te.colorAxis,ie=te.margin,ae=function(he){he.forEach(function(fe){fe.visible&&fe.getOffset()})};te.hasCartesianSeries?ae(te.axes):Z&&Z.length&&ae(Z),B.forEach(function(he,fe){k(ie[fe])||(te[he]+=re[fe])}),te.setChartSize()}getOptions(){return y(this.userOptions,M)}reflow(te){const re=this,Z=re.options.chart,ie=k(Z.width)&&k(Z.height),ae=re.containerBox,he=re.getContainerBox();delete re.pointer.chartPosition,!ie&&!re.isPrinting&&ae&&he.width&&((he.width!==ae.width||he.height!==ae.height)&&(g.clearTimeout(re.reflowTimeout),re.reflowTimeout=ne(function(){re.container&&re.setSize(void 0,void 0,!1)},te?100:0)),re.containerBox=he)}setReflow(){const te=this,re=Z=>{var ie;!((ie=te.options)===null||ie===void 0)&&ie.chart.reflow&&te.hasLoaded&&te.reflow(Z)};if(typeof ResizeObserver=="function")new ResizeObserver(re).observe(te.renderTo);else{const Z=h(S,"resize",re);h(this,"destroy",Z)}}setSize(te,re,Z){const ie=this,ae=ie.renderer;ie.isResizing+=1,N(Z,ie);const he=ae.globalAnimation;ie.oldChartHeight=ie.chartHeight,ie.oldChartWidth=ie.chartWidth,typeof te<"u"&&(ie.options.chart.width=te),typeof re<"u"&&(ie.options.chart.height=re),ie.getChartSize(),ie.styledMode||(he?D:f)(ie.container,{width:ie.chartWidth+"px",height:ie.chartHeight+"px"},he),ie.setChartSize(!0),ae.setSize(ie.chartWidth,ie.chartHeight,he),ie.axes.forEach(function(fe){fe.isDirty=!0,fe.setScale()}),ie.isDirtyLegend=!0,ie.isDirtyBox=!0,ie.layOutTitles(),ie.getMargins(),ie.redraw(he),ie.oldChartHeight=null,W(ie,"resize"),ne(function(){ie&&W(ie,"endResize",null,function(){ie.isResizing-=1})},E(he).duration)}setChartSize(te){const re=this,Z=re.inverted,ie=re.renderer,ae=re.chartWidth,he=re.chartHeight,fe=re.options.chart,ve=re.spacing,ge=re.clipOffset;let _e,be,Ce,De;re.plotLeft=_e=Math.round(re.plotLeft),re.plotTop=be=Math.round(re.plotTop),re.plotWidth=Ce=Math.max(0,Math.round(ae-_e-re.marginRight)),re.plotHeight=De=Math.max(0,Math.round(he-be-re.marginBottom)),re.plotSizeX=Z?De:Ce,re.plotSizeY=Z?Ce:De,re.plotBorderWidth=fe.plotBorderWidth||0,re.spacingBox=ie.spacingBox={x:ve[3],y:ve[0],width:ae-ve[3]-ve[1],height:he-ve[0]-ve[2]},re.plotBox=ie.plotBox={x:_e,y:be,width:Ce,height:De};const Be=2*Math.floor(re.plotBorderWidth/2),Le=Math.ceil(Math.max(Be,ge[3])/2),Pe=Math.ceil(Math.max(Be,ge[0])/2);re.clipBox={x:Le,y:Pe,width:Math.floor(re.plotSizeX-Math.max(Be,ge[1])/2-Le),height:Math.max(0,Math.floor(re.plotSizeY-Math.max(Be,ge[2])/2-Pe))},te||(re.axes.forEach(function(Ue){Ue.setAxisSize(),Ue.setAxisTranslation()}),ie.alignElements()),W(re,"afterSetChartSize",{skipAxes:te})}resetMargins(){W(this,"resetMargins");const te=this,re=te.options.chart;["margin","spacing"].forEach(function(ie){const ae=re[ie],he=J(ae)?ae:[ae,ae,ae,ae];["Top","Right","Bottom","Left"].forEach(function(fe,ve){te[ie][ve]=V(re[ie+fe],he[ve])})}),B.forEach(function(Z,ie){te[Z]=V(te.margin[ie],te.spacing[ie])}),te.axisOffset=[0,0,0,0],te.clipOffset=[0,0,0,0]}drawChartBox(){const te=this,re=te.options.chart,Z=te.renderer,ie=te.chartWidth,ae=te.chartHeight,he=te.styledMode,fe=te.plotBGImage,ve=re.backgroundColor,ge=re.plotBackgroundColor,_e=re.plotBackgroundImage,be=te.plotLeft,Ce=te.plotTop,De=te.plotWidth,Be=te.plotHeight,Le=te.plotBox,Pe=te.clipRect,Ue=te.clipBox;let Je=te.chartBackground,at=te.plotBackground,Ge=te.plotBorder,er,tr,Kt,bt="animate";Je||(te.chartBackground=Je=Z.rect().addClass("highcharts-background").add(),bt="attr"),he?er=tr=Je.strokeWidth():(er=re.borderWidth||0,tr=er+(re.shadow?8:0),Kt={fill:ve||"none"},(er||Je["stroke-width"])&&(Kt.stroke=re.borderColor,Kt["stroke-width"]=er),Je.attr(Kt).shadow(re.shadow)),Je[bt]({x:tr/2,y:tr/2,width:ie-tr-er%2,height:ae-tr-er%2,r:re.borderRadius}),bt="animate",at||(bt="attr",te.plotBackground=at=Z.rect().addClass("highcharts-plot-background").add()),at[bt](Le),he||(at.attr({fill:ge||"none"}).shadow(re.plotShadow),_e&&(fe?(_e!==fe.attr("href")&&fe.attr("href",_e),fe.animate(Le)):te.plotBGImage=Z.image(_e,be,Ce,De,Be).add())),Pe?Pe.animate({width:Ue.width,height:Ue.height}):te.clipRect=Z.clipRect(Ue),bt="animate",Ge||(bt="attr",te.plotBorder=Ge=Z.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),he||Ge.attr({stroke:re.plotBorderColor,"stroke-width":re.plotBorderWidth||0,fill:"none"}),Ge[bt](Ge.crisp({x:be,y:Ce,width:De,height:Be},-Ge.strokeWidth())),te.isDirtyBox=!1,W(this,"afterDrawChartBox")}propFromSeries(){const te=this,re=te.options.chart,Z=te.options.series;let ie,ae,he;["inverted","angular","polar"].forEach(function(fe){for(ae=x[re.type],he=re[fe]||ae&&ae.prototype[fe],ie=Z&&Z.length;!he&&ie--;)ae=x[Z[ie].type],ae&&ae.prototype[fe]&&(he=!0);te[fe]=he})}linkSeries(te){const re=this,Z=re.series;Z.forEach(function(ie){ie.linkedSeries.length=0}),Z.forEach(function(ie){let ae=ie.options.linkedTo;Y(ae)&&(ae===":previous"?ae=re.series[ie.index-1]:ae=re.get(ae),ae&&ae.linkedParent!==ie&&(ae.linkedSeries.push(ie),ie.linkedParent=ae,ae.enabledDataSorting&&ie.setDataSortingOptions(),ie.visible=V(ie.options.visible,ae.options.visible,ie.visible)))}),W(this,"afterLinkSeries",{isUpdating:te})}renderSeries(){this.series.forEach(function(te){te.translate(),te.render()})}render(){const te=this,re=te.axes,Z=te.colorAxis,ie=te.renderer,ae=function(be){be.forEach(function(Ce){Ce.visible&&Ce.render()})};let he=0;te.setTitle(),W(te,"beforeMargins"),te.getStacks&&te.getStacks(),te.getMargins(!0),te.setChartSize();const fe=te.plotWidth;re.some(function(be){if(be.horiz&&be.visible&&be.options.labels.enabled&&be.series.length)return he=21,!0}),te.plotHeight=Math.max(te.plotHeight-he,0);const ve=te.plotHeight;re.forEach(function(be){be.setScale()}),te.getAxisMargins();const ge=fe/te.plotWidth>1.1,_e=ve/te.plotHeight>1.05;(ge||_e)&&(re.forEach(function(be){(be.horiz&&ge||!be.horiz&&_e)&&be.setTickInterval(!0)}),te.getMargins()),te.drawChartBox(),te.hasCartesianSeries?ae(re):Z&&Z.length&&ae(Z),te.seriesGroup||(te.seriesGroup=ie.g("series-group").attr({zIndex:3}).shadow(te.options.chart.seriesGroupShadow).add()),te.renderSeries(),te.addCredits(),te.setResponsive&&te.setResponsive(),te.hasRendered=!0}addCredits(te){const re=this,Z=ee(!0,this.options.credits,te);Z.enabled&&!this.credits&&(this.credits=this.renderer.text(Z.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){Z.href&&(S.location.href=Z.href)}).attr({align:Z.position.align,zIndex:8}),re.styledMode||this.credits.css(Z.style),this.credits.add().align(Z.position),this.credits.update=function(ie){re.credits=re.credits.destroy(),re.addCredits(ie)})}destroy(){const te=this,re=te.axes,Z=te.series,ie=te.container,ae=ie&&ie.parentNode;let he;for(W(te,"destroy"),te.renderer.forExport?U(I,te):I[te.index]=void 0,_.chartCount--,te.renderTo.removeAttribute("data-highcharts-chart"),se(te),he=re.length;he--;)re[he]=re[he].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),he=Z.length;he--;)Z[he]=Z[he].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(fe){const ve=te[fe];ve&&ve.destroy&&(te[fe]=ve.destroy())}),ie&&(ie.innerHTML=w.emptyHTML,se(ie),ae&&G(ie)),C(te,function(fe,ve){delete te[ve]})}firstRender(){const te=this,re=te.options;te.getContainer(),te.resetMargins(),te.setChartSize(),te.propFromSeries(),te.getAxes();const Z=R(re.series)?re.series:[];re.series=[],Z.forEach(function(ie){te.initSeries(ie)}),te.linkSeries(),te.setSeriesData(),W(te,"beforeRender"),te.render(),te.pointer.getChartPosition(),!te.renderer.imgCount&&!te.hasLoaded&&te.onload(),te.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(te){te&&typeof this.index<"u"&&te.apply(this,[this])},this),W(this,"load"),W(this,"render"),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(/0&&(bt+=Or,Kt=oi),Or=bt-li,Or>0&&(bt=li,Kt-=Or),be.series.length&&Kt!==Je.min&&bt!==Je.max&&Kt>=oi&&bt<=li&&(be.setExtremes(Kt,bt,!1,!1,{trigger:"pan"}),!Z.resetZoomButton&&Kt!==oi&&bt!==li&&fe.match("y")&&(Z.showResetZoom(),be.displayBtn=!1),ve=!0),_e[Be]=De)}),C(_e,(be,Ce)=>{Z[Ce]=be}),ve&&Z.redraw(!1),f(Z.container,{cursor:"move"})})}}return H(le.prototype,{callbacks:[],collectionsWithInit:{xAxis:[le.prototype.addAxis,[!0]],yAxis:[le.prototype.addAxis,[!1]],series:[le.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),le}),a(t,"Extensions/ScrollablePlotArea.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/Axis.js"],t["Core/Chart/Chart.js"],t["Core/Series/Series.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,_){const{stop:m}=i,{addEvent:L,createElement:j,defined:A,merge:p,pick:g}=_;L(o,"afterSetChartSize",function(w){let D=this.options.chart.scrollablePlotArea,E=D&&D.minWidth,N=D&&D.minHeight,M,b,F;this.renderer.forExport||(E?(this.scrollablePixelsX=M=Math.max(0,E-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),A(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&&!w.skipAxes&&this.axes.forEach(function(P){F[P.side]?P.getPlotLinePath=function(){let I=F[P.side].name,v=F[P.side].value,B=this[I],T;return this[I]=B-v,T=s.prototype.getPlotLinePath.apply(this,arguments),this[I]=B,T}:(P.setAxisSize(),P.setAxisTranslation())}))}),L(o,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),o.prototype.setUpScrolling=function(){const w={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(w.overflowX="auto"),this.scrollablePixelsY&&(w.overflowY="auto"),this.scrollingParent=j("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=j("div",{className:"highcharts-scrolling"},w,this.scrollingParent);let D;L(this.scrollingContainer,"scroll",()=>{this.pointer&&(delete this.pointer.chartPosition,this.hoverPoint&&(D=this.hoverPoint),this.pointer.runPointActions(void 0,D,!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 w=this.container,D=this.fixedRenderer,E=[".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&&E.push(`${N}:not(.highcharts-radial-axis)`,`${N}-labels:not(.highcharts-radial-axis-labels)`),E.forEach(function(M){[].forEach.call(w.querySelectorAll(M),function(b){(b.namespaceURI===D.SVG_NS?D.box:D.box.parentNode).appendChild(b),b.style.pointerEvents="auto"})})},o.prototype.applyFixed=function(){const w=!this.fixedDiv,D=this.options.chart,E=D.scrollablePlotArea,N=u.getRendererType();let M,b,F;w?(this.fixedDiv=j("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(D.style&&D.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":g(E.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),L(this,"afterShowResetZoom",this.moveFixedElements),L(this,"afterApplyDrilldown",this.moveFixedElements),L(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||w)&&(this.scrollableDirty=!1,this.moveFixedElements()),b=this.chartWidth+(this.scrollablePixelsX||0),F=this.chartHeight+(this.scrollablePixelsY||0),m(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",w&&(E.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*E.scrollPositionX),E.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*E.scrollPositionY));let P=this.axisOffset,I=this.plotTop-P[0]-1,v=this.plotLeft-P[3]-1,B=this.plotTop+this.plotHeight+P[2]+1,T=this.plotLeft+this.plotWidth+P[1]+1,S=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),x=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0),h;this.scrollablePixelsX?h=[["M",0,I],["L",this.plotLeft-1,I],["L",this.plotLeft-1,B],["L",0,B],["Z"],["M",S,I],["L",this.chartWidth,I],["L",this.chartWidth,B],["L",S,B],["Z"]]:this.scrollablePixelsY?h=[["M",v,0],["L",v,this.plotTop-1],["L",T,this.plotTop-1],["L",T,0],["Z"],["M",v,x],["L",v,this.chartHeight],["L",T,this.chartHeight],["L",T,x],["Z"]]:h=[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:h})},L(s,"afterInit",function(){this.chart.scrollableDirty=!0}),L(c,"show",function(){this.chart.scrollableDirty=!0})}),a(t,"Core/Axis/Stacking/StackItem.js",[t["Core/Templating.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o){const{format:c}=i,{series:u}=s,{destroyObjectProperties:_,fireEvent:m,isNumber:L,merge:j,pick:A}=o;class p{constructor(w,D,E,N,M){const b=w.chart.inverted,F=w.reversed;this.axis=w;const P=this.isNegative=!!E!=!!F;this.options=D=D||{},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:D.align||(b?P?"left":"right":"center"),verticalAlign:D.verticalAlign||(b?"middle":P?"bottom":"top"),y:D.y,x:D.x},this.textAlign=D.textAlign||(b?P?"right":"left":"center")}destroy(){_(this,this.axis)}render(w){const D=this.axis.chart,E=this.options,N=E.format,M=N?c(N,this,D):E.formatter.call(this);if(this.label)this.label.attr({text:M,visibility:"hidden"});else{this.label=D.renderer.label(M,null,void 0,E.shape,void 0,void 0,E.useHTML,!1,"stack-labels");const b={r:E.borderRadius||0,text:M,padding:A(E.padding,5),visibility:"hidden"};D.styledMode||(b.fill=E.backgroundColor,b.stroke=E.borderColor,b["stroke-width"]=E.borderWidth,this.label.css(E.style||{})),this.label.attr(b),this.label.added||this.label.add(w)}this.label.labelrank=D.plotSizeY,m(this,"afterRender")}setOffset(w,D,E,N,M,b){const{alignOptions:F,axis:P,label:I,options:v,textAlign:B}=this,T=P.chart,S=this.getStackBox({xOffset:w,width:D,boxBottom:E,boxTop:N,defaultX:M,xAxis:b}),{verticalAlign:x}=F;if(I&&S){const h=I.getBBox(),n=I.padding;let l=A(v.overflow,"justify")==="justify",f;F.x=v.x||0,F.y=v.y||0;const{x:k,y}=this.adjustStackPosition({labelBox:h,verticalAlign:x,textAlign:B});S.x-=k,S.y-=y,I.align(F,!1,S),f=T.isInsidePlot(I.alignAttr.x+F.x+k,I.alignAttr.y+F.y+y),f||(l=!1),l&&u.prototype.justifyDataLabel.call(P,I,F,I.alignAttr,h,S),I.attr({x:I.alignAttr.x,y:I.alignAttr.y,rotation:v.rotation,rotationOriginX:h.width/2,rotationOriginY:h.height/2}),A(!l&&v.crop,!0)&&(f=L(I.x)&&L(I.y)&&T.isInsidePlot(I.x-n+I.width,I.y)&&T.isInsidePlot(I.x+n,I.y)),I[f?"show":"hide"]()}m(this,"afterSetOffset",{xOffset:w,width:D})}adjustStackPosition({labelBox:w,verticalAlign:D,textAlign:E}){const N={bottom:0,middle:1,top:2,right:1,center:0,left:-1},M=N[D],b=N[E];return{x:w.width/2+w.width/2*b,y:w.height/2*M}}getStackBox(w){const D=this,E=this.axis,N=E.chart,{boxTop:M,defaultX:b,xOffset:F,width:P,boxBottom:I}=w,v=E.stacking.usePercentage?100:A(M,this.total,0),B=E.toPixels(v),T=w.xAxis||N.xAxis[0],S=A(b,T.translate(this.x))+F,x=E.toPixels(I||L(E.min)&&E.logarithmic&&E.logarithmic.lin2log(E.min)||0),h=Math.abs(B-x),n=N.inverted,l=D.isNegative;return n?{x:(l?B:B-h)-N.plotLeft,y:T.height-S-P,width:h,height:P}:{x:S+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:_}=i,{series:{prototype:m}}=o,{addEvent:L,correctFloat:j,defined:A,destroyObjectProperties:p,fireEvent:g,isArray:w,isNumber:D,objectEach:E,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;E(n,function(l,f){p(l),n[f]=null}),h&&h.stackTotalGroup&&h.stackTotalGroup.destroy()}function F(){this.coll==="yAxis"&&!this.stacking&&(this.stacking=new S(this))}function P(h,n,l,f){return!A(h)||h.x!==n||f&&h.stackKey!==f?h={x:n,index:0,key:f,stackKey:f}:h.index++,h.key=[l,n,h.index].join(","),h}function I(){const h=this,n=h.yAxis,l=h.stackKey,f=n.stacking.stacks,k=h.processedXData,y=h.options.stacking,G=h[y+"Stacker"];let U;G&&[l,"-"+l].forEach(O=>{let H=k.length,z,W,d;for(;H--;)z=k[H],U=h.getStackIndicator(U,z,h.index,O),W=f[O]&&f[O][z],d=W&&W.points[U.key],d&&G.call(h,d,W,H)})}function v(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?m.setStackedPoints.call(this,"group"):h&&E(h.stacks,(n,l)=>{l.slice(-5)==="group"&&(E(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,y=f.processedYData,G=[],U=y.length,O=f.options,H=O.threshold,z=N(O.startFromThreshold&&H,0),W=O.stack,d=h?`${f.type},${l}`:f.stackKey,R="-"+d,q=f.negStacks,J=l==="group"?n.yAxis[0]:f.yAxis,Y=J.stacking.stacks,ee=J.stacking.oldStacks;let C,V,X,Q,se,K,ne,oe,le;for(J.stacking.stacksTouched+=1,ne=0;ne0&&f.singleStacks===!1&&(X.points[K][0]=X.points[f.index+","+oe+",0"][0])):X.points[K]=X.points[f.index]=null,l==="percent"?(Q=V?d:R,q&&Y[Q]&&Y[Q][oe]?(Q=Y[Q][oe],X.total=Q.total=Math.max(Q.total,X.total)+Math.abs(le)||0):X.total=j(X.total+(Math.abs(le)||0))):l==="group"?(w(le)&&(le=le[0]),le!==null&&(X.total=(X.total||0)+1)):X.total=j(X.total+(le||0)),l==="group"?X.cumulative=(X.total||1)-1:X.cumulative=j(N(X.cumulative,z)+(le||0)),le!==null&&(X.points[K].push(X.cumulative),G[ne]=X.cumulative,X.hasValidPoints=!0);l==="percent"&&(J.stacking.usePercentage=!0),l!=="group"&&(this.stackedYData=G),J.stacking.oldStacks={}}class S{constructor(n){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=n}buildStacks(){const n=this,l=n.axis,f=l.series,k=l.options.reversedStacks,y=f.length;let G,U;for(n.usePercentage=!1,U=y;U--;)G=f[k?U:y-U-1],G.setStackedPoints(),G.setGroupedPoints();for(U=0;U{E(n,(l,f)=>{D(l.touched)&&l.touched0?E=!g.connectNulls:B&&!j?E=!0:(F===0||E?T=[["M",b.plotX,b.plotY]]:p.getPointSpline?T=[p.getPointSpline(L,b,F)]:N?(N===1?T=[["L",v.plotX,I]]:N===2?T=[["L",(v.plotX+P)/2,v.plotY],["L",(v.plotX+P)/2,I]]:T=[["L",P,v.plotY]],T.push(["L",P,I])):T=[["L",P,I]],D.push(b.x),N&&(D.push(b.x),N===2&&D.push(b.x)),w.push.apply(w,T),E=!1)}),w.xMap=D,p.graphPath=w,w}getZonesGraphs(L){return this.zones.forEach(function(j,A){const p=["zone-graph-"+A,"highcharts-graph highcharts-zone-graph-"+A+" "+(j.className||"")];this.chart.styledMode||p.push(j.color||this.color,j.dashStyle||this.options.dashStyle),L.push(p)},this),L}}return _.defaultOptions=u(i.defaultOptions,{legendSymbol:"lineMarker"}),s.registerSeriesType("line",_),_}),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:_,objectEach:m,pick:L}=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,g=this.areaPath,w=this.options,D=this.zones,E=[["area","highcharts-area",this.color,w.fillColor]];D.forEach(function(N,M){E.push(["zone-area-"+M,"highcharts-area highcharts-zone-area-"+M+" "+N.className,N.color||p.color,N.fillColor||w.fillColor])}),E.forEach(function(N){const M=N[0],b={};let F=p[M];const P=F?"animate":"attr";F?(F.endX=p.preventGraphAnimation?null:g.xMap,F.animate({d:g})):(b.zIndex=0,F=p[M]=p.chart.renderer.path(g).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"]=L(w.fillOpacity,.75))),F[P](b),F.startX=g.xMap,F.shiftUnit=w.step?2:1})}getGraphPath(p){const g=c.prototype.getGraphPath,w=this.options,D=w.stacking,E=this.yAxis,N=[],M=[],b=this.index,F=E.stacking.stacks[this.stackKey],P=w.threshold,I=Math.round(E.getThreshold(w.threshold)),v=L(w.connectNulls,D==="percent"),B=function(y,G,U){const O=p[y],H=D&&F[O.x].points[b],z=O[U+"Null"]||0,W=O[U+"Cliff"]||0;let d,R,q=!0;W||z?(d=(z?H[0]:H[1])+W,R=H[0]+W,q=!!z):!D&&p[G]&&p[G].isNull&&(d=R=P),typeof d<"u"&&(M.push({plotX:T,plotY:d===null?I:E.getThreshold(d),isNull:q,isCliff:!0}),N.push({plotX:T,plotY:R===null?I:E.getThreshold(R),doCurve:!1}))};let T,S,x;p=p||this.points,D&&(p=this.getStackPoints(p));for(let y=0,G=p.length;yT.visible);D.forEach(function(T,S){let x=0,h,n;if(b[T]&&!b[T].isNull)w.push(b[T]),[-1,1].forEach(function(l){const f=l===1?"rightNull":"leftNull",k=l===1?"rightCliff":"leftCliff",y=M[D[S+l]];let G=0;if(y){let U=v;for(;U>=0&&U=0&&lT&&b>D?(b=Math.max(T,D),P=2*D-b):bx&&P>D?(P=Math.max(x,D),b=2*D-P):P"u"&&(f[k]=y++),ee=f[k]):Y.grouping!==!1&&(ee=y++),q.columnIndex=ee)});const G=Math.min(Math.abs(x.transA)*(x.ordinal&&x.ordinal.slope||S.pointRange||x.closestPointRange||x.tickInterval||1),x.len),U=G*S.groupPadding,O=G-2*U,H=O/(y||1),z=Math.min(S.maxPointWidth||x.len,F(S.pointWidth,H*(1-2*S.pointPadding))),W=(H-z)/2,d=(T.columnIndex||0)+(l?1:0),R=W+(U+d*H-G/2)*(l?-1:1);return T.columnMetrics={width:z,offset:R,paddedWidth:H,columnCount:y},T.columnMetrics}crispCol(T,S,x,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+x)+l,T=Math.round(T)+l,x=f-T);const y=Math.round(S+h)+k,G=Math.abs(S)<=.5&&y>.5;return S=Math.round(S)+k,h=y-S,G&&h&&(S-=1,h+=1),{x:T,y:S,width:x,height:h}}adjustForMissingColumns(T,S,x,h){const n=this.options.stacking;if(!x.isNull&&h.columnCount>1){const l=this.yAxis.options.reversedStacks;let f=0,k=l?0:-h.columnCount;P(this.yAxis.stacking&&this.yAxis.stacking.stacks,G=>{if(typeof x.x=="number"){const U=G[x.x.toString()];if(U){const O=U.points[this.index];if(n)O&&(f=k),U.hasValidPoints&&(l?k++:k--);else if(N(O)){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 y=(k-1)*h.paddedWidth+S;T=(x.plotX||0)+y/2-S-f*h.paddedWidth}return T}translate(){const T=this,S=T.chart,x=T.options,h=T.dense=T.closestPointRange*T.xAxis.transA<2,n=T.borderWidth=F(x.borderWidth,h?0:1),l=T.xAxis,f=T.yAxis,k=x.threshold,y=F(x.minPointLength,5),G=T.getColumnMetrics(),U=G.width,O=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);S.inverted&&(d-=.5),x.pointPadding&&(W=Math.ceil(W)),u.prototype.translate.apply(T),T.points.forEach(function(R){const q=F(R.yBottom,d),J=999+Math.abs(q),Y=R.plotX||0,ee=g(R.plotY,-J,f.len+J);R.stackBox;let C,V=Math.min(ee,q),X=Math.max(ee,q)-V,Q=U,se=Y+O,K=W;y&&Math.abs(X)y?q-y:d-(C?y:0)),w(R.options.pointWidth)&&(Q=K=Math.ceil(R.options.pointWidth),se-=Math.round((Q-U)/2)),x.centerInCategory&&(se=T.adjustForMissingColumns(se,Q,R,G)),R.barX=se,R.pointWidth=Q,R.tooltipPos=S.inverted?[g(f.len+f.pos-S.plotLeft-ee,f.pos-S.plotLeft,f.len+f.pos-S.plotLeft),l.len+l.pos-S.plotTop-se-K/2,X]:[l.left-S.plotLeft+se+K/2,g(ee+f.pos-S.plotTop,f.pos-S.plotTop,f.len+f.pos-S.plotTop),X],R.shapeType=T.pointClass.prototype.shapeType||"roundedRect",R.shapeArgs=T.crispCol(se,R.isNull?d:V,K,R.isNull?0:X)}),E(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(T,S){const x=this.options,h=this.pointAttrToOptions||{},n=h.stroke||"borderColor",l=h["stroke-width"]||"borderWidth";let f,k,y,G=T&&T.color||this.color,U=T&&T[n]||x[n]||G,O=T&&T.options.dashStyle||x.dashStyle,H=T&&T[l]||x[l]||this[l]||0,z=F(T&&T.opacity,x.opacity,1);T&&this.zones.length&&(k=T.getZone(),G=T.options.color||k&&(k.color||T.nonZonedColor)||this.color,k&&(U=k.borderColor||U,O=k.dashStyle||O,H=k.borderWidth||H)),S&&T&&(f=b(x.states[S],T.options.states&&T.options.states[S]||{}),y=f.brightness,G=f.color||typeof y<"u"&&j(G).brighten(f.brightness).get()||G,U=f[n]||U,H=f[l]||H,O=f.dashStyle||O,z=F(f.opacity,z));const W={fill:G,stroke:U,"stroke-width":H,opacity:z};return O&&(W.dashstyle=O),W}drawPoints(T=this.points){const S=this,x=this.chart,h=S.options,n=x.renderer,l=h.animationLimit||250;let f;T.forEach(function(k){const y=k.plotY;let G=k.graphic,U=!!G,O=G&&x.pointCount{O&&y.xAxis&&!C&&y.setDataLabelStartPos(h,n,k,R,Q)};let J,Y,ee,C=w(l.overflow,O?"none":"justify")==="justify",V=this.visible&&h.visible!==!1&&_(H)&&(h.series.forceDL||O&&!C||R||w(l.inside,!!this.options.stacking)&&f&&G.isInsidePlot(H,U?f.x+1:f.y+f.height-1,{inverted:U,paneCoordinates:!0,series:y}));const X=h.pos();if(V&&X){W&&n.attr({align:d});let Q=n.getBBox(!0),se=[0,0];if(J=G.renderer.fontMetrics(n).b,f=m({x:X[0],y:Math.round(X[1]),width:0,height:0},f),m(l,{width:Q.width,height:Q.height}),W?(C=!1,Y=G.renderer.rotCorr(J,W),ee={x:f.x+(l.x||0)+f.width/2+Y.x,y:f.y+(l.y||0)+{top:0,middle:.5,bottom:1}[l.verticalAlign]*f.height},se=[Q.x-Number(n.attr("x")),Q.y-Number(n.attr("y"))],q(ee),n[k?"attr":"animate"](ee)):(q(f),n.align(l,void 0,f),ee=n.alignAttr),C&&f.height>=0)this.justifyDataLabel(n,l,ee,Q,f,k);else if(w(l.crop,!0)){let{x:K,y:ne}=ee;K+=se[0],ne+=se[1],V=G.isInsidePlot(K,ne,{paneCoordinates:!0,series:y})&&G.isInsidePlot(K+Q.width,ne+Q.height,{paneCoordinates:!0,series:y})}l.shape&&!W&&n[k?"attr":"animate"]({anchorX:X[0],anchorY:X[1]})}k&&O&&(n.placed=!1),!V&&(!O||C)?(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],y=l.value;return f===">"&&k>y||f==="<"&&k="&&k>=y||f==="<="&&k<=y||f==="=="&&k==y||f==="==="&&k===y}return!0}function P(h){if(o.pushUnique(M,h)){const n=h.prototype;n.initDataLabelsGroup=I,n.initDataLabels=v,n.alignDataLabel=b,n.drawDataLabels=B,n.justifyDataLabel=T,n.setDataLabelStartPos=x}}N.compose=P;function I(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function v(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,y=f.options,G=k.renderer,{backgroundColor:U,plotBackgroundColor:O}=k.options.chart,H=k.options.plotOptions,z=G.getContrast(A(O)&&O||A(U)&&U||"#000000");let W=y.dataLabels,d,R;const q=D(W)[0],J=q.animation,Y=q.defer?c(k,J,f):{defer:0,duration:0};W=S(S((n=H==null?void 0:H.series)===null||n===void 0?void 0:n.dataLabels,(l=H==null?void 0:H[f.type])===null||l===void 0?void 0:l.dataLabels),W),L(this,"drawDataLabels"),(j(W)||W.enabled||f._hasPointLabels)&&(R=this.initDataLabels(Y),h.forEach(ee=>{var C;const V=ee.dataLabels||[];d=D(S(W,ee.dlOptions||((C=ee.options)===null||C===void 0?void 0:C.dataLabels))),d.forEach((Q,se)=>{var K;const ne=Q.enabled&&(!ee.isNull||ee.dataLabelOnNull)&&F(ee,Q),oe=ee.connectors?ee.connectors[se]:ee.connector,le=Q.style||{};let ye,te,re,Z,ie={},ae=V[se],he=!ae;const fe=w(Q.distance,ee.labelDistance);if(ne){if(te=w(Q[ee.formatPrefix+"Format"],Q.format),ye=ee.getLabelConfig(),re=_(te)?u(te,ye,k):(Q[ee.formatPrefix+"Formatter"]||Q.formatter).call(ye,Q),Z=Q.rotation,k.styledMode||(le.color=w(Q.color,le.color,A(f.color)?f.color:void 0,"#000000"),le.color==="contrast"?(ee.contrastColor=G.getContrast(ee.color||f.color),le.color=!_(fe)&&Q.inside||(fe||0)<0||y.stacking?ee.contrastColor:z):delete ee.contrastColor,y.cursor&&(le.cursor=y.cursor)),ie={r:Q.borderRadius||0,rotation:Z,padding:Q.padding,zIndex:1},!k.styledMode){const{backgroundColor:ve,borderColor:ge}=Q;ie.fill=ve==="auto"?ee.color:ve,ie.stroke=ge==="auto"?ee.color:ge,ie["stroke-width"]=Q.borderWidth}g(ie,(ve,ge)=>{typeof ve>"u"&&delete ie[ge]})}if(ae&&(!ne||!_(re)||!!ae.div!=!!Q.useHTML||(!ae.rotation||!Q.rotation)&&ae.rotation!==Q.rotation)&&(ae=void 0,he=!0,oe&&ee.connector&&(ee.connector=ee.connector.destroy(),ee.connectors&&(ee.connectors.length===1?delete ee.connectors:delete ee.connectors[se]))),ne&&_(re)&&(ae?ie.text=re:(ae=Z?G.text(re,0,0,Q.useHTML).addClass("highcharts-data-label"):G.label(re,0,0,Q.shape,void 0,void 0,Q.useHTML,void 0,"data-label"),ae&&ae.addClass(" highcharts-data-label-color-"+ee.colorIndex+" "+(Q.className||"")+(Q.useHTML?" highcharts-tracker":""))),ae)){ae.options=Q,ae.attr(ie),k.styledMode||ae.css(le).shadow(Q.shadow);const ve=Q[ee.formatPrefix+"TextPath"]||Q.textPath;ve&&!Q.useHTML&&(ae.setTextPath(((K=ee.getDataLabelPath)===null||K===void 0?void 0:K.call(ee,ae))||ee.graphic,ve),ee.dataLabelPath&&!ve.enabled&&(ee.dataLabelPath=ee.dataLabelPath.destroy())),ae.added||ae.add(R),f.alignDataLabel(ee,ae,Q,void 0,he),ae.isActive=!0,V[se]&&V[se]!==ae&&V[se].destroy(),V[se]=ae}});let X=V.length;for(;X--;)V[X].isActive?V[X].isActive=!1:(V[X].destroy(),V.splice(X,1));ee.dataLabel=V[0],ee.dataLabels=V})),L(this,"afterDrawDataLabels")}function T(h,n,l,f,k,y){const G=this.chart,U=n.align,O=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&&(O==="bottom"&&W>=0?(n.verticalAlign="top",n.inside=!0):W-=d,R=!0),d=(l.y||0)+f.height-H,d>G.plotHeight&&(O==="top"&&W<=0?(n.verticalAlign="bottom",n.inside=!0):W+=G.plotHeight-d,R=!0),R&&(n.x=z,n.y=W,h.placed=!y,h.align(n,void 0,k)),R}function S(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 x(h,n,l,f,k){const y=this.chart,G=y.inverted,U=this.xAxis,O=U.reversed,H=G?n.height/2:n.width/2,z=h.pointWidth,W=z?z/2:0;n.startXPos=G?k.x:O?-H-W:U.width-H+W,n.startYPos=G?O?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),y.hasRendered&&(l&&n.attr({x:n.startXPos,y:n.startYPos}),n.placed=!0)}}(E||(E={})),E}),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:_}=o;var m;return function(L){const j=[];function A(g,w,D,E,N){let M=this.chart.inverted,b=g.series,F=(b.xAxis?b.xAxis.len:this.chart.plotSizeX)||0,P=(b.yAxis?b.yAxis.len:this.chart.plotSizeY)||0,I=g.dlBox||g.shapeArgs,v=_(g.below,g.plotY>_(this.translatedThreshold,P)),B=_(D.inside,!!this.options.stacking),T;I&&(E=u(I),E.y<0&&(E.height+=E.y,E.y=0),T=E.y+E.height-P,T>0&&T {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}}),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:_,extend:m,merge:L}=o;class j extends u{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}applyJitter(){const p=this,g=this.options.jitter,w=this.points.length;function D(E){const N=Math.sin(E)*1e4;return N-Math.floor(N)}g&&this.points.forEach(function(E,N){["x","y"].forEach(function(M,b){let F,P="plot"+M.toUpperCase(),I,v,B;g[M]&&!E.isNull&&(F=p[M+"Axis"],B=g[M]*F.transA,F&&!F.isLog&&(I=Math.max(0,E[P]-B),v=Math.min(F.len,E[P]+B),E[P]=I+(v-I)*D(N+b*w),M==="x"&&(E.clientX=E.plotX)))})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return j.defaultOptions=L(u.defaultOptions,i),m(j.prototype,{drawTracker:c.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),_(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:_,pick:m,relativeLength:L}=o;var j;return function(A){function p(){const w=this.options,D=this.chart,E=2*(w.slicedOffset||0),N=D.plotWidth-2*E,M=D.plotHeight-2*E,b=w.center,F=Math.min(N,M),P=w.thickness;let I,v=w.size,B=w.innerSize||0,T,S;typeof v=="string"&&(v=parseFloat(v)),typeof B=="string"&&(B=parseFloat(B));const x=[m(b[0],"50%"),m(b[1],"50%"),m(v&&v<0?void 0:w.size,"100%"),m(B&&B<0?void 0:w.innerSize||0,"0%")];for(D.angular&&!(this instanceof s)&&(x[3]=0),T=0;T<4;++T)S=x[T],I=T<2||T===2&&/%$/.test(S),x[T]=L(S,[N,M,F,x[2]][T])+(I?E:0);return x[3]>x[2]&&(x[3]=x[2]),_(P)&&P*20&&(x[3]=x[2]-P*2),u(this,"afterGetCenter",{positions:x}),x}A.getCenter=p;function g(w,D){const E=_(w)?w:0,N=_(D)&&D>E&&D-E<360?D:E+360,M=-90;return{start:c*(E+M),end:c*(N+M)}}A.getStartAndEndRadians=g}(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:_,extend:m,isNumber:L,pick:j,relativeLength:A}=o;class p extends s{constructor(){super(...arguments),this.labelDistance=void 0,this.options=void 0,this.series=void 0}getConnectorPath(){const w=this.labelPosition,D=this.series.options.dataLabels,E=this.connectorShapes;let N=D.connectorShape;return E[N]&&(N=E[N]),N.call(this,{x:w.computed.x,y:w.computed.y,alignment:w.alignment},w.connectorPosition,D)}getTranslate(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}haloPath(w){const D=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(D.x,D.y,D.r+w,D.r+w,{innerR:D.r-1,start:D.start,end:D.end,borderRadius:D.borderRadius})}init(){super.init.apply(this,arguments),this.name=j(this.name,"Slice");const w=D=>{this.slice(D.type==="select")};return u(this,"select",w),u(this,"unselect",w),this}isValid(){return L(this.y)&&this.y>=0}setVisible(w,D){const E=this.series,N=E.chart,M=E.options.ignoreHiddenPoint;D=j(D,M),w!==this.visible&&(this.visible=this.options.visible=w=typeof w>"u"?!this.visible:w,E.options.data[E.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach(b=>{this[b]&&this[b][w?"show":"hide"](w)}),this.legendItem&&N.legend.colorizeItem(this,w),!w&&this.state==="hover"&&this.setState(""),M&&(E.isDirty=!0),D&&N.redraw())}slice(w,D,E){const N=this.series,M=N.chart;c(E,M),D=j(D,!0),this.sliced=this.options.sliced=w=_(w)?w:!this.sliced,N.options.data[N.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return m(p.prototype,{connectorShapes:{fixedOffset:function(g,w,D){const E=w.breakAt,N=w.touchingSliceAt,M=D.softConnector?["C",g.x+(g.alignment==="left"?-5:5),g.y,2*E.x-N.x,2*E.y-N.y,E.x,E.y]:["L",E.x,E.y];return[["M",g.x,g.y],M,["L",N.x,N.y]]},straight:function(g,w){const D=w.touchingSliceAt;return[["M",g.x,g.y],["L",D.x,D.y]]},crookedLine:function(g,w,D){const{breakAt:E,touchingSliceAt:N}=w,{series:M}=this,[b,F,P]=M.center,I=P/2,v=M.chart.plotWidth,B=M.chart.plotLeft,T=g.alignment==="left",{x:S,y:x}=g;let h=E.x;if(D.crookDistance){const l=A(D.crookDistance,1);h=T?b+I+(v+B-b-I)*(1-l):B+(b-I)*l}else h=b+(F-x)*Math.tan((this.angle||0)-Math.PI/2);const n=[["M",S,x]];return(T?h<=S&&h>=E.x:h>=S&&h<=E.x)&&n.push(["L",h,x]),n.push(["L",E.x,E.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,_,m,L,j){const{getStartAndEndRadians:A}=i,{noop:p}=o,{clamp:g,extend:w,fireEvent:D,merge:E,pick:N,relativeLength:M}=j;class b extends _{constructor(){super(...arguments),this.center=void 0,this.data=void 0,this.maxLabelDistance=void 0,this.options=void 0,this.points=void 0}animate(P){const I=this,v=I.points,B=I.startAngleRad;P||v.forEach(function(T){const S=T.graphic,x=T.shapeArgs;S&&x&&(S.attr({r:N(T.startR,I.center&&I.center[3]/2),start:B,end:B}),S.animate({r:x.r,start:x.start,end:x.end},I.options.animation))})}drawEmpty(){const P=this.startAngleRad,I=this.endAngleRad,v=this.options;let B,T;this.total===0&&this.center?(B=this.center[0],T=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(B,T,this.center[1]/2,0,P,I).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:L.arc(B,T,this.center[2]/2,0,{start:P,end:I,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":v.borderWidth,fill:v.fillColor||"none",stroke:v.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){const P=this.chart.renderer;this.points.forEach(function(I){I.graphic&&I.hasNewShapeType()&&(I.graphic=I.graphic.destroy()),I.graphic||(I.graphic=P[I.shapeType](I.shapeArgs).add(I.series.group),I.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(P,I,v){const B=this.center,T=this.radii?this.radii[v.index]||0:B[2]/2,S=Math.asin(g((P-B[1])/(T+v.labelDistance),-1,1));return B[0]+(I?-1:1)*(Math.cos(S)*(T+v.labelDistance))+(v.labelDistance>0?(I?-1:1)*this.options.dataLabels.padding:0)}hasData(){return!!this.processedXData.length}redrawPoints(){const P=this,I=P.chart;let v,B,T,S;this.drawEmpty(),P.group&&!I.styledMode&&P.group.shadow(P.options.shadow),P.points.forEach(function(x){const h={};B=x.graphic,!x.isNull&&B?(S=x.shapeArgs,v=x.getTranslate(),I.styledMode||(T=P.pointAttribs(x,x.selected&&"select")),x.delayedRendering?(B.setRadialReference(P.center).attr(S).attr(v),I.styledMode||B.attr(T).attr({"stroke-linejoin":"round"}),x.delayedRendering=!1):(B.setRadialReference(P.center),I.styledMode||E(!0,h,T),E(!0,h,S,v),B.animate(h)),B.attr({visibility:x.visible?"inherit":"hidden"}),B.addClass(x.getClassName(),!0)):B&&(x.graphic=B.destroy())})}sortByAngle(P,I){P.sort(function(v,B){return typeof v.angle<"u"&&(B.angle-v.angle)*I})}translate(P){D(this,"translate"),this.generatePoints();const I=this,v=1e3,B=I.options,T=B.slicedOffset,S=T+(B.borderWidth||0),x=A(B.startAngle,B.endAngle),h=I.startAngleRad=x.start,n=I.endAngleRad=x.end,l=n-h,f=I.points,k=B.dataLabels.distance,y=B.ignoreHiddenPoint,G=f.length;let U,O,H,z,W,d,R,q,J=0;for(P||(I.center=P=I.getCenter()),R=0;R1.5*Math.PI?z-=2*Math.PI:z<-Math.PI/2&&(z+=2*Math.PI),q.slicedTranslation={translateX:Math.round(Math.cos(z)*T),translateY:Math.round(Math.sin(z)*T)},W=Math.cos(z)*P[2]/2,d=Math.sin(z)*P[2]/2,q.tooltipPos=[P[0]+W*.7,P[1]+d*.7],q.half=z<-Math.PI/2||z>Math.PI/2?1:0,q.angle=z,U=Math.min(S,q.labelDistance/5),q.labelPosition={natural:{x:P[0]+W+Math.cos(z)*q.labelDistance,y:P[1]+d+Math.sin(z)*q.labelDistance},computed:{},alignment:q.labelDistance<0?"center":q.half?"right":"left",connectorPosition:{breakAt:{x:P[0]+W+Math.cos(z)*U,y:P[1]+d+Math.sin(z)*U},touchingSliceAt:{x:P[0]+W,y:P[1]+d}}}}D(I,"afterTranslate")}updateTotals(){const P=this.points,I=P.length,v=this.options.ignoreHiddenPoint;let B,T,S=0;for(B=0;B0&&(T.visible||!v)?T.y/S*100:0,T.total=S}}return b.defaultOptions=E(_.defaultOptions,u),w(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"]}),m.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:_}=s,{distribute:m}=o,{series:L}=c,{arrayMax:j,clamp:A,defined:p,merge:g,pick:w,relativeLength:D}=u;var E;return function(N){const M=[],b={radialDistributionY:function(B){return B.top+B.distributeBox.pos},radialDistributionX:function(B,T,S,x){return B.getX(ST.bottom-2?x:S,T.half,T)},justify:function(B,T,S){return S[0]+(B.half?-1:1)*(T+B.labelDistance)},alignToPlotEdges:function(B,T,S,x){const h=B.getBBox().width;return T?h+x:S-h-x},alignToConnectors:function(B,T,S,x){let h=0,n;return B.forEach(function(l){n=l.dataLabel.getBBox().width,n>h&&(h=n)}),T?h+x:S-h-x}};function F(B){if(i.compose(L),u.pushUnique(M,B)){const T=B.prototype;T.dataLabelPositioners=b,T.alignDataLabel=_,T.drawDataLabels=P,T.placeDataLabels=I,T.verifyDataLabelOverflow=v}}N.compose=F;function P(){const B=this,T=B.data,S=B.chart,x=B.options.dataLabels||{},h=x.connectorPadding,n=S.plotWidth,l=S.plotHeight,f=S.plotLeft,k=Math.round(S.chartWidth/3),y=B.center,G=y[2]/2,U=y[1],O=[[],[]],H=[0,0,0,0],z=B.dataLabelPositioners;let W,d,R,q,J,Y,ee,C,V,X,Q,se;!B.visible||!x.enabled&&!B._hasPointLabels||(T.forEach(function(K){K.dataLabel&&K.visible&&K.dataLabel.shortened&&(K.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),K.dataLabel.shortened=!1)}),L.prototype.drawDataLabels.apply(B),T.forEach(function(K){K.dataLabel&&(K.visible?(O[K.half].push(K),K.dataLabel._pos=null,!p(x.style.width)&&!p(K.options.dataLabels&&K.options.dataLabels.style&&K.options.dataLabels.style.width)&&K.dataLabel.getBBox().width>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))}),O.forEach((K,ne)=>{const oe=K.length,le=[];let ye,te,re,Z,ie=0,ae;if(oe)for(B.sortByAngle(K,ne-.5),B.maxLabelDistance>0&&(ye=Math.max(0,U-G-B.maxLabelDistance),te=Math.min(U+G+B.maxLabelDistance,S.plotHeight),K.forEach(function(he){he.labelDistance>0&&he.dataLabel&&(he.top=Math.max(0,U-G-he.labelDistance),he.bottom=Math.min(U+G+he.labelDistance,S.plotHeight),ie=he.dataLabel.getBBox().height||21,he.distributeBox={target:he.labelPosition.natural.y-he.top+ie/2,size:ie,rank:he.y},le.push(he.distributeBox))}),ae=te+ie-ye,m(le,ae,ae/5)),Q=0;Q"u"?X="hidden":(ee=W.distributeBox.size,V=z.radialDistributionY(W))),delete W.positionIndex,x.justify)C=z.justify(W,G,y);else switch(x.alignTo){case"connectors":C=z.alignToConnectors(K,ne,n,f);break;case"plotEdges":C=z.alignToPlotEdges(q,ne,n,f);break;default:C=z.radialDistributionX(B,W,V,re)}q._attr={visibility:X,align:Y.alignment},se=W.options.dataLabels||{},q._pos={x:C+w(se.x,x.x)+({left:h,right:-h}[Y.alignment]||0),y:V+w(se.y,x.y)-q.getBBox().height/2},Y&&(Y.computed.x=C,Y.computed.y=V),w(x.crop,!0)&&(J=q.getBBox().width,Z=null,C-Jn-h&&ne===0&&(Z=Math.round(C+J-n+h),H[1]=Math.max(Z,H[1])),V-ee/2<0?H[0]=Math.max(Math.round(-V+ee/2),H[0]):V+ee/2>l&&(H[2]=Math.max(Math.round(V+ee/2-l),H[2])),q.sideOverflow=Z)}}),(j(H)===0||this.verifyDataLabelOverflow(H))&&(this.placeDataLabels(),this.points.forEach(function(K){if(se=g(x,K.options.dataLabels),d=w(se.connectorWidth,1),d){let ne;R=K.connector,q=K.dataLabel,q&&q._pos&&K.visible&&K.labelDistance>0?(X=q._attr.visibility,ne=!R,ne&&(K.connector=R=S.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+K.colorIndex+(K.className?" "+K.className:"")).add(B.dataLabelsGroup),S.styledMode||R.attr({"stroke-width":d,stroke:se.connectorColor||K.color||"#666666"})),R[ne?"attr":"animate"]({d:K.getConnectorPath()}),R.attr("visibility",X)):R&&(K.connector=R.destroy())}})))}function I(){this.points.forEach(function(B){let T=B.dataLabel,S;T&&B.visible&&(S=T._pos,S?(T.sideOverflow&&(T._attr.width=Math.max(T.getBBox().width-T.sideOverflow,0),T.css({width:T._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),T.shortened=!0),T.attr(T._attr),T[T.moved?"animate":"attr"](S),T.moved=!0):T&&T.attr({y:-9999})),delete B.distributeBox},this)}function v(B){let T=this.center,S=this.options,x=S.center,h=S.minSize||80,n=h,l=S.size!==null;return l||(x[0]!==null?n=Math.max(T[2]-Math.max(B[1],B[3]),h):(n=Math.max(T[2]-B[1]-B[3],h),T[0]+=(B[3]-B[1])/2),x[1]!==null?n=A(n,h,T[2]-Math.max(B[0],B[2])):(n=A(n,h,T[2]-B[0]-B[2]),T[1]+=(B[0]-B[2])/2),nN.forEach(M=>{M.visible&&(u(M.dataLabels)?M.dataLabels:M.dataLabel?[M.dataLabel]:[]).forEach(function(F){const P=F.options;F.labelrank=L(P.labelrank,M.labelrank,M.shapeArgs&&M.shapeArgs.height),P.allowOverlap?(F.oldOpacity=F.opacity,F.newOpacity=1,j(F,p)):g.push(F)})});E(w.nodes||[]),E(w.points)}}),this.hideOverlappingLabels(g)}),i.prototype.hideOverlappingLabels=function(A){let p=this,g=A.length,w=p.renderer,D,E,N,M,b,F,P,I=!1,v=function(T,S){return!(S.x>=T.x+T.width||S.x+S.width<=T.x||S.y>=T.y+T.height||S.y+S.height<=T.y)},B=function(T){let S,x,h,n=T.box?0:T.padding||0,l=0,f=0,k,y;if(T&&(!T.alignAttr||T.placed))return S=T.alignAttr||{x:T.attr("x"),y:T.attr("y")},x=T.parentGroup,T.width||(h=T.getBBox(),T.width=h.width,T.height=h.height,l=w.fontMetrics(T.element).h),k=T.width-2*n,y={left:"0",center:"0.5",right:"1"}[T.alignValue],y?f=+y*k:_(T.x)&&Math.round(T.x)!==T.translateX&&(f=T.x-T.translateX),{x:S.x+(x.translateX||0)+n-(f||0),y:S.y+(x.translateY||0)+n-l,width:T.width-2*n,height:T.height-2*n}};for(E=0;E(p(b)||(b={radius:b||0}),g(D,F,b)),N=(b,F,P)=>{const I=b[F];let v=b[F+1];v[0]==="Z"&&(v=b[0]);let B,T,S;if((I[0]==="M"||I[0]==="L")&&v[0]==="A"?(B=I,T=v,S=!0):I[0]==="A"&&(v[0]==="M"||v[0]==="L")&&(B=v,T=I),B&&T&&T.params){const x=T[1],h=T[5],n=T.params,{start:l,end:f,cx:k,cy:y}=n,G=h?x-P:x+P,U=G?Math.asin(P/G):0,O=h?U:-U,H=Math.cos(U)*G;S?(n.start=l+O,B[1]=k+H*Math.cos(l),B[2]=y+H*Math.sin(l),b.splice(F+1,0,["A",P,P,0,0,1,k+x*Math.cos(n.start),y+x*Math.sin(n.start)])):(n.end=f-O,T[6]=k+x*Math.cos(n.end),T[7]=y+x*Math.sin(n.end),b.splice(F+1,0,["A",P,P,0,0,1,k+H*Math.cos(f),y+H*Math.sin(f)])),T[4]=Math.abs(n.end-n.start)1?G:y);return S};const F=u.prototype.symbols.roundedRect;u.prototype.symbols.roundedRect=function(P,I,v,B,T={}){const S=F(P,I,v,B,T),{r:x=0,brBoxHeight:h=B,brBoxY:n=I}=T,l=I-n,f=n+h-(I+B),k=l-x>-.1?0:x,y=f-x>-.1?0:x,G=Math.max(k&&l,0),U=Math.max(y&&f,0),O=[P+k,I],H=[P+v-k,I],z=[P+v,I+k],W=[P+v,I+B-y],d=[P+v-y,I+B],R=[P+y,I+B],q=[P,I+B-y],J=[P,I+k],Y=(ee,C)=>Math.sqrt(Math.pow(ee,2)-Math.pow(C,2));if(G){const ee=Y(k,k-G);O[0]-=ee,H[0]+=ee,z[1]=J[1]=I+k-G}if(Bthis.borderWidth&&(H="all"),H||(H="end");const z=Math.min(w(x.radius,f),f/2,H==="all"?k/2:1/0)||0;H==="end"&&(O&&(G-=z),U+=z),A(l,{brBoxHeight:U,brBoxY:G,r:z})}}}},{order:9})}return{optionsToObject:E}}),a(t,"Core/Responsive.js",[t["Core/Utilities.js"]],function(i){const{diffObjects:s,extend:o,find:c,isArray:u,isObject:_,merge:m,objectEach:L,pick:j,splat:A,uniqueKey:p}=i;var g;return function(w){const D=[];function E(b){return i.pushUnique(D,b)&&o(b.prototype,{matchResponsiveRule:N,setResponsive:M}),b}w.compose=E;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,I=this.currentResponsive;let v=[],B;!F&&P&&P.rules&&P.rules.forEach(x=>{typeof x._id>"u"&&(x._id=p()),this.matchResponsiveRule(x,v)},this);const T=m(...v.map(x=>c((P||{}).rules||[],h=>h._id===x)).map(x=>x&&x.chartOptions));T.isResponsiveOptions=!0,v=v.toString()||void 0;const S=I&&I.ruleIds;v!==S&&(I&&this.update(I.undoOptions,b,!0),v?(B=s(T,this.options,!0,this.collectionsWithUpdate),B.isResponsiveOptions=!0,this.currentResponsive={ruleIds:v,mergedOptions:T,undoOptions:B},this.update(T,b,!0)):this.currentResponsive=void 0)}}(g||(g={})),g}),a(t,"masters/highcharts.src.js",[t["Core/Globals.js"],t["Core/Utilities.js"],t["Core/Defaults.js"],t["Core/Animation/Fx.js"],t["Core/Animation/AnimationUtilities.js"],t["Core/Renderer/HTML/AST.js"],t["Core/Templating.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Renderer/HTML/HTMLElement.js"],t["Core/Renderer/HTML/HTMLRenderer.js"],t["Core/Axis/Axis.js"],t["Core/Axis/DateTimeAxis.js"],t["Core/Axis/LogarithmicAxis.js"],t["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],t["Core/Axis/Tick.js"],t["Core/Tooltip.js"],t["Core/Series/Point.js"],t["Core/Pointer.js"],t["Core/Legend/Legend.js"],t["Core/Chart/Chart.js"],t["Core/Axis/Stacking/StackingAxis.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Series/Column/ColumnSeries.js"],t["Series/Column/ColumnDataLabel.js"],t["Series/Pie/PieSeries.js"],t["Series/Pie/PieDataLabel.js"],t["Core/Series/DataLabel.js"],t["Core/Responsive.js"],t["Core/Color/Color.js"],t["Core/Time.js"]],function(i,s,o,c,u,_,m,L,j,A,p,g,w,D,E,N,M,b,F,P,I,v,B,T,S,x,h,n,l,f,k,y,G,U){const O=i;return O.animate=u.animate,O.animObject=u.animObject,O.getDeferredAnimation=u.getDeferredAnimation,O.setAnimation=u.setAnimation,O.stop=u.stop,O.timers=c.timers,O.AST=_,O.Axis=w,O.Chart=v,O.chart=v.chart,O.Fx=c,O.Legend=I,O.PlotLineOrBand=N,O.Point=F,O.Pointer=P,O.Series=S,O.StackItem=T,O.SVGElement=j,O.SVGRenderer=A,O.Templating=m,O.Tick=M,O.Time=U,O.Tooltip=b,O.Color=G,O.color=G.parse,g.compose(A),p.compose(j),P.compose(v),I.compose(v),O.defaultOptions=o.defaultOptions,O.getOptions=o.getOptions,O.time=o.defaultTime,O.setOptions=o.setOptions,O.dateFormat=m.dateFormat,O.format=m.format,O.numberFormat=m.numberFormat,O.addEvent=s.addEvent,O.arrayMax=s.arrayMax,O.arrayMin=s.arrayMin,O.attr=s.attr,O.clearTimeout=s.clearTimeout,O.correctFloat=s.correctFloat,O.createElement=s.createElement,O.css=s.css,O.defined=s.defined,O.destroyObjectProperties=s.destroyObjectProperties,O.discardElement=s.discardElement,O.distribute=L.distribute,O.erase=s.erase,O.error=s.error,O.extend=s.extend,O.extendClass=s.extendClass,O.find=s.find,O.fireEvent=s.fireEvent,O.getMagnitude=s.getMagnitude,O.getStyle=s.getStyle,O.inArray=s.inArray,O.isArray=s.isArray,O.isClass=s.isClass,O.isDOMElement=s.isDOMElement,O.isFunction=s.isFunction,O.isNumber=s.isNumber,O.isObject=s.isObject,O.isString=s.isString,O.keys=s.keys,O.merge=s.merge,O.normalizeTickInterval=s.normalizeTickInterval,O.objectEach=s.objectEach,O.offset=s.offset,O.pad=s.pad,O.pick=s.pick,O.pInt=s.pInt,O.relativeLength=s.relativeLength,O.removeEvent=s.removeEvent,O.seriesType=x.seriesType,O.splat=s.splat,O.stableSort=s.stableSort,O.syncTimeout=s.syncTimeout,O.timeUnits=s.timeUnits,O.uniqueKey=s.uniqueKey,O.useSerialIds=s.useSerialIds,O.wrap=s.wrap,n.compose(h),k.compose(S),D.compose(w),E.compose(w),f.compose(l),N.compose(w),y.compose(v),B.compose(w,v,S),b.compose(P),O}),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:_,isNumber:m,pick:L}=s;var j;return function(A){const p=[];function g(v,B){if(s.pushUnique(p,v)&&(v.keepProps.push("brokenAxis"),o(v,"init",N),o(v,"afterInit",w),o(v,"afterSetTickPositions",E),o(v,"afterSetOptions",D)),s.pushUnique(p,B)){const T=B.prototype;T.drawBreaks=F,T.gappedPath=P,o(B,"afterGeneratePoints",M),o(B,"afterRender",b)}return v}A.compose=g;function w(){typeof this.brokenAxis<"u"&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function D(){const v=this;v.brokenAxis&&v.brokenAxis.hasBreaks&&(v.options.ordinal=!1)}function E(){const v=this,B=v.brokenAxis;if(B&&B.hasBreaks){const T=v.tickPositions,S=v.tickPositions.info,x=[];for(let h=0;hG.to||h>G.from&&lG.from&&lG.from&&l>G.to&&l0){this.options.gapUnit!=="value"&&(x*=this.basePointRange),B&&B>x&&B>=this.basePointRange&&(x=B);let l,f;for(;h--;)if(f&&f.visible!==!1||(f=T[h+1]),l=T[h],!(f.visible===!1||l.visible===!1)){if(f.x-l.x>x){const k=(l.x+f.x)/2;T.splice(h+1,0,{isNull:!0,x:k}),S.stacking&&this.options.stacking&&(n=S.stacking.stacks[this.stackKey][k]=new i(S,S.options.stackLabels,!1,k,this.stack),n.total=0)}f=l}}return this.getGraphPath(T)}class I{static isInBreak(B,T){const S=B.repeat||1/0,x=B.from,h=B.to-B.from,n=T>=x?(T-x)%S:S-(x-T)%S;let l;return B.inclusive?l=n<=h:l=n=h));l++)(n.to=B)break;if(I.isInBreak(n,B)){h-=B-n.from;break}}return h}constructor(B){this.hasBreaks=!1,this.axis=B}findBreakAt(B,T){return c(T,function(S){return S.fromO;)z-=U;for(;z"u"?void 0:F}function A(F){return F.length?F[F.length-1]:F.hasNulls?null:void 0}function p(F){return F.length?o(F):F.hasNulls?null:void 0}function g(F,P,I){if(F=i.high(F),P=i.low(P),I=i.close(I),m(F)||m(P)||m(I))return[F,P,I]}function w(F){return F.length?c(F):F.hasNulls?null:void 0}function D(F,P,I,v){if(F=i.open(F),P=i.high(P),I=i.low(I),v=i.close(v),m(F)||m(P)||m(I)||m(v))return[F,P,I,v]}function E(F){return F.length?F[0]:F.hasNulls?null:void 0}function N(F,P){if(F=i.low(F),P=i.high(P),m(F)||m(P))return[F,P];if(F===null&&P===null)return null}function M(F){let P=F.length,I;if(!P&&F.hasNulls)I=null;else if(P)for(I=0;P--;)I+=F[P];return I}const b={average:L,averages:j,close:A,high:p,hlc:g,low:w,ohlc:D,open:E,range:N,sum:M};return _(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:_}=s,m=[];let L;function j(E){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(!!E.hasExtremesChanged)})}function A(E){L=E,s.pushUnique(m,E)&&(o(E,"afterSetScale",g),o(E,"postProcessData",j),c(E.prototype,{applyGrouping:j,getGroupPixelWidth:p,setDataGrouping:w}))}function p(){const E=this.series;let N=E.length,M=0,b=!1,F,P;for(;N--;)P=E[N].options.dataGrouping,P&&(M=Math.max(M,_(P.groupPixelWidth,i.common.groupPixelWidth)),F=(E[N].processedXData||E[N].data).length,(E[N].groupPixelWidth||F>this.chart.plotSizeX/M||F&&P.forced)&&(b=!0));return b?M:0}function g(){this.series.forEach(function(E){E.hasProcessed=!1})}function w(E,N){const M=this;let b;if(N=_(N,!0),E||(E={forced:!1,units:null}),this instanceof L)for(b=this.series.length;b--;)this.series[b].update({dataGrouping:E},!1);else this.chart.options.series.forEach(function(F){F.dataGrouping=typeof E=="boolean"?E:u(E,F.dataGrouping)});M.ordinal&&(M.ordinal.slope=void 0),N&&this.chart.redraw()}return{compose:A}}),a(t,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[t["Extensions/DataGrouping/ApproximationRegistry.js"],t["Extensions/DataGrouping/DataGroupingDefaults.js"],t["Core/Axis/DateTimeAxis.js"],t["Core/Defaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,_){const{series:{prototype:m}}=u,{addEvent:L,defined:j,error:A,extend:p,isNumber:g,merge:w,pick:D}=_,E=m.generatePoints,N=[];function M(n,l){j(l[0])&&g(n.min)&&g(n.dataMin)&&l[0]n.max&&((!j(n.options.max)&&g(n.dataMax)&&n.max>=n.dataMax||n.max===n.dataMax)&&(n.max=Math.max(l[l.length-1],n.max)),n.dataMax=Math.max(l[l.length-1],n.dataMax))}function b(n,l,f){const k=n.options,y=k.dataGrouping,G=n.currentDataGrouping&&n.currentDataGrouping.gapSize;let U;if(y&&n.xData&&G&&n.groupMap){const O=l.length-1,H=y.anchor,z=D(y.firstAnchor,H),W=D(y.lastAnchor,H);if(H&&H!=="start"){const d=G*{middle:.5,end:1}[H];for(U=l.length-1;U--&&U>0;)l[U]+=d}if(z&&z!=="start"&&n.xData[0]>=l[0]){const d=n.groupMap[0].start,R=n.groupMap[0].length;let q;g(d)&&g(R)&&(q=d+(R-1)),l[0]={middle:l[0]+.5*G,end:l[0]+G,firstPoint:n.xData[0],lastPoint:q&&n.xData[q]}[z]}if(W&&W!=="start"&&G&&l[O]>=f-G){const d=n.groupMap[n.groupMap.length-1].start;l[O]={middle:l[O]+.5*G,end:l[O]+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,y=k.dataGrouping,G=l.allowDG!==!1&&y&&D(y.enabled,f.options.isStock),U=l.visible||!f.options.chart.ignoreHiddenSeries,O=this.currentDataGrouping;let H,z,W=!1;G&&!l.requireSorting&&(l.requireSorting=W=!0);const d=x(l,n)===!1||!G;if(W&&(l.requireSorting=!1),!d){l.destroyGroupedData();const R=y.groupAll?l.xData:l.processedXData,q=y.groupAll?l.yData:l.processedYData,J=f.plotSizeX,Y=l.xAxis,ee=Y.options.ordinal,C=l.groupPixelWidth;let V,X;if(C&&R&&R.length&&J){X=!0,l.isDirty=!0,l.points=null;const Q=Y.getExtremes(),se=Q.min,K=Q.max,ne=ee&&Y.ordinal&&Y.ordinal.getGroupIntervalFactor(se,K,l)||1,oe=C*(K-se)/J*ne,le=Y.getTimeTicks(o.Additions.prototype.normalizeTimeTickInterval(oe,y.units||s.units),Math.min(se,R[0]),Math.max(K,R[R.length-1]),Y.options.startOfWeek,R,l.closestPointRange),ye=m.groupData.apply(l,[R,q,le,y.approximation]);let te=ye.groupedXData,re=ye.groupedYData,Z=0;for(y&&y.smoothed&&te.length&&(y.firstAnchor="firstPoint",y.anchor="middle",y.lastAnchor="lastPoint",A(32,!1,f,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),b(l,te,K),V=1;V=f[Q+1]||oe===W;){C=f[Q],y.dataGroupInfo={start:ee?se:y.cropStart+se,length:R[0].length},X=K.apply(y,R),y.pointClass&&!j(y.dataGroupInfo.options)&&(y.dataGroupInfo.options=w(y.pointClass.prototype.optionsToObject.call({series:y},y.options.data[y.cropStart+se])),Y.forEach(function(le){delete y.dataGroupInfo.options[le]})),typeof X<"u"&&(O.push(C),H.push(X),z.push(y.dataGroupInfo)),se=oe;for(let le=0;leo(M)?_(L,M):_(L,{enabled:u(M)?M:!0}),A=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.xb.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{if(g){S.setOptions(g);const{min:se,max:K}=S.getExtremes();S.forceRedraw=!0,S.setExtremes(se,K),g=void 0}},400)}if(M.inverted){const X=S.pos+S.len;F=T.toValue(v),P=S.toValue(I);const Q=I;I=v,v=X-Q+S.pos}let l=I?(I-T.pos)/T.len:.5;(T.reversed&&!M.inverted||M.inverted&&!T.reversed)&&(l=1-l);let f=1-(v?(v-S.pos)/S.len:.5);S.reversed&&(f=1-f);const k=T.max-T.min,y=c(F,T.min+k/2),G=k*b,U=S.max-S.min,O=c(P,S.min+U/2),H=U*b,z=y-G*l,W=O-H*f,d=T.dataMax-T.dataMin,R=S.dataMax-S.dataMin,q=T.dataMin-d*T.options.minPadding,J=d+d*T.options.minPadding+d*T.options.maxPadding,Y=S.dataMin-R*S.options.minPadding,ee=R+R*S.options.minPadding+R*S.options.maxPadding,C=A({x:z,y:W,width:G,height:H},{x:q,y:Y,width:J,height:ee}),V=C.x<=q&&C.width>=J&&C.y<=Y&&C.height>=ee;u(b)&&!V?(h&&T.setExtremes(C.x,C.x+C.width,!1),n&&S.setExtremes(C.y,C.y+C.height,!1)):(h&&T.setExtremes(void 0,void 0,!1),n&&S.setExtremes(void 0,void 0,!1)),M.redraw(!1)}};function D(){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),I=F.detail||(F.deltaY||0)/120;w(M,Math.pow(P,I),M.xAxis[0].toValue(F.chartX),M.yAxis[0].toValue(F.chartY),F.chartX,F.chartY,b)}F.preventDefault&&F.preventDefault()})}function E(M){m.indexOf(M)===-1&&(m.push(M),s(M,"afterGetContainer",D))}return{compose:E}}),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:_,arrayMax:m,arrayMin:L,correctFloat:j,defined:A,isArray:p,isNumber:g,isString:w,pick:D}=c;var E;return function(N){const M=[];function b(l,f,k){if(c.pushUnique(M,l)){const y=l.prototype;y.setCompare=B,y.setCumulative=x,_(l,"afterInit",I),_(l,"afterGetExtremes",v),_(l,"afterProcessData",T)}if(c.pushUnique(M,f)){const y=f.prototype;y.setCompare=S,y.setModifier=F,y.setCumulative=h}if(c.pushUnique(M,k)){const y=k.prototype;y.tooltipFormatter=P}return l}N.compose=b;function F(l,f,k){this.isXAxis||(this.series.forEach(function(y){l==="compare"&&typeof f!="boolean"?y.setCompare(f,!1):l==="cumulative"&&!w(f)&&y.setCumulative(f,!1)}),D(k,!0)&&this.chart.redraw())}function P(l){const f=this,{numberFormatter:k}=f.series.chart,y=function(G){l=l.replace("{point."+G+"}",(f[G]>0&&G==="change"?"+":"")+k(f[G],D(f.series.tooltipOptions.changeDecimals,2)))};return A(f.change)&&y("change"),A(f.cumulativeSum)&&y("cumulativeSum"),u.apply(this,[l])}function I(){const l=this.options.compare;let f;(l==="percent"||l==="value"||this.options.cumulative)&&(f=new n(this),l==="percent"||l==="value"?f.initCompare(l):f.initCumulative()),this.dataModify=f}function v(l){const f=l.dataExtremes,k=f.activeYData;if(this.dataModify&&f){let y;this.options.compare?y=[this.dataModify.modifyValue(f.dataMin),this.dataModify.modifyValue(f.dataMax)]:this.options.cumulative&&p(k)&&k.length>=2&&(y=n.getCumulativeExtremes(k)),y&&(f.dataMin=L(y),f.dataMax=m(y))}}function B(l,f){this.options.compare=this.userOptions.compare=l,this.update({},D(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,y=k.length,G=l.options.compareStart===!0?0:1;let U=-1,O;for(l.pointArrayMap&&(U=l.pointArrayMap.indexOf(l.options.pointValKey||l.pointValKey||"y")),O=0;O-1?k[O][U]:k[O];if(g(H)&&H!==0&&f[O+G]>=(l.xAxis.min||0)){l.dataModify.compareValue=H;break}}}}function S(l,f){this.setModifier("compare",l,f)}function x(l,f){l=D(l,!1),this.options.cumulative=this.userOptions.cumulative=l,this.update({},D(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,y=-1/0;return f.reduce((G,U)=>{const O=G+U;return k=Math.min(k,O,G),y=Math.max(y,O,G),O}),[k,y]}initCompare(f){this.modifyValue=function(k,y){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 y<"u"){const U=this.series.points[y];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 y=k>0?this.series.points[k-1]:null;y&&y.cumulativeSum&&(f=j(y.cumulativeSum+f));const G=this.series.points[k];return G&&(G.cumulativeSum=f),f}return 0}}}N.Additions=n}(E||(E={})),E}),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:_,isNumber:m,pick:L}=s,j=[];function A(){const w=this;w.navigatorAxis||(w.navigatorAxis=new g(w))}function p(w){console.log("onAxisZoom");const D=this,E=D.chart,N=E.options,M=N.navigator,b=D.navigatorAxis,F=E.zooming.pinchType,P=N.rangeSelector,I=E.zooming.type;if(D.isXAxis&&(M&&M.enabled||P&&P.enabled)){if(I==="y")w.zoomed=!1;else if((!o&&I==="xy"||o&&F==="xy")&&D.options.range){const v=b.previousZoom;_(w.newMin)?b.previousZoom=[D.min,D.max]:v&&(w.newMin=v[0],w.newMax=v[1],b.previousZoom=void 0)}}typeof w.zoomed<"u"&&w.preventDefault()}class g{static compose(D){s.pushUnique(j,D)&&(D.keepProps.push("navigatorAxis"),c(D,"init",A),c(D,"zoom",p))}constructor(D){this.axis=D}destroy(){this.axis=void 0}toFixedRange(D,E,N,M){const b=this.axis,F=b.chart;let P=L(N,b.translate(D,!0,!b.horiz)),I=L(M,b.translate(E,!0,!b.horiz));const v=F&&F.fixedRange,B=(b.pointRange||0)/2;return _(N)||(P=u(P+B)),_(M)||(I=u(I-B)),v&&b.dataMin&&b.dataMax&&(I>=b.dataMax&&(P=u(b.dataMax-v)),P<=b.dataMin&&(I=u(b.dataMin+v))),(!m(P)||!m(I))&&(P=I=void 0),{min:P,max:I}}}return g}),a(t,"Stock/Navigator/NavigatorDefaults.js",[t["Core/Color/Color.js"],t["Core/Series/SeriesRegistry.js"]],function(i,s){const{parse:o}=i,{seriesTypes:c}=s;return{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:o("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:typeof c.areaspline>"u"?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),a(t,"Stock/Navigator/NavigatorSymbols.js",[],function(){function i(o,c,u,_,m={}){const L=m.width?m.width/2:u,j=Math.round(L/3)+.5;return _=m.height||_,[["M",-L-1,.5],["L",L,.5],["L",L,_+.5],["L",-L-1,_+.5],["L",-L-1,.5],["M",-j,4],["L",-j,_-3],["M",j-1,4],["L",j-1,_-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,_,m){const{defaultOptions:L,setOptions:j}=i,{isTouchDevice:A}=s,{getRendererType:p}=_,{addEvent:g,extend:w,merge:D,pick:E}=m,N=[];let M;function b(n,l,f,k){o.compose(n),M=f,m.pushUnique(N,l)&&(l.prototype.callbacks.push(T),g(l,"afterAddSeries",F),g(l,"afterSetChartSize",P),g(l,"afterUpdate",I),g(l,"beforeRender",v),g(l,"beforeShowResetZoom",B),g(l,"update",S)),m.pushUnique(N,k)&&g(k,"afterUpdate",x),m.pushUnique(N,p)&&w(p().prototype.symbols,u),m.pushUnique(N,j)&&w(L,{navigator:c})}function F(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function P(){var n;const l=this.legend,f=this.navigator;let k,y,G;if(f){k=l&&l.options,y=f.xAxis,G=f.yAxis;const{scrollbarHeight:U,scrollButtonSize:O}=f;this.inverted?(f.left=f.opposite?this.chartWidth-U-f.height:this.spacing[3]+U,f.top=this.plotTop+O):(f.left=E(y.left,this.plotLeft+O),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+E(k.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),y&&G&&(this.inverted?y.options.left=G.options.left=f.left:y.options.top=G.options.top=f.top,y.setAxisSize(),G.setAxisSize())}}function I(n){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new M(this),E(n.redraw,!0)&&this.redraw(n.animation))}function v(){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)&&(!A&&this.zooming.type==="x"||A&&this.zooming.pinchType==="x"))return!1}function T(n){const l=n.navigator;if(l&&n.xAxis[0]){const f=n.xAxis[0].getExtremes();l.render(f.min,f.max)}}function S(n){const l=n.options.navigator||{},f=n.options.scrollbar||{};!this.navigator&&!this.scroller&&(l.enabled||f.enabled)&&(D(!0,this.options.navigator,l),D(!0,this.options.scrollbar,f),delete n.options.navigator,delete n.options.scrollbar)}function x(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:b}}),a(t,"Core/Axis/ScrollbarAxis.js",[t["Core/Utilities.js"]],function(i){const{addEvent:s,defined:o,pick:c}=i,u=[];class _{static compose(L,j){if(!i.pushUnique(u,L))return L;const A=p=>{const g=c(p.options&&p.options.min,p.min),w=c(p.options&&p.options.max,p.max);return{axisMin:g,axisMax:w,scrollMin:o(p.dataMin)?Math.min(g,p.min,p.dataMin,c(p.threshold,1/0)):g,scrollMax:o(p.dataMax)?Math.max(w,p.max,p.dataMax,c(p.threshold,-1/0)):w}};return s(L,"afterInit",function(){const p=this;p.options&&p.options.scrollbar&&p.options.scrollbar.enabled&&(p.options.scrollbar.vertical=!p.horiz,p.options.startOnTick=p.options.endOnTick=!1,p.scrollbar=new j(p.chart.renderer,p.options.scrollbar,p.chart),s(p.scrollbar,"changed",function(g){let{axisMin:w,axisMax:D,scrollMin:E,scrollMax:N}=A(p),M=N-E,b,F;if(!(!o(w)||!o(D)))if(p.horiz&&!p.reversed||!p.horiz&&p.reversed?(b=E+M*this.to,F=E+M*this.from):(b=E+M*(1-this.from),F=E+M*(1-this.to)),this.shouldUpdateExtremes(g.DOMType)){const P=g.DOMType==="mousemove"||g.DOMType==="touchmove"?!1:void 0;p.setExtremes(F,b,!0,P,g)}else this.setRange(this.from,this.to)}))}),s(L,"afterRender",function(){let p=this,{scrollMin:g,scrollMax:w}=A(p),D=p.scrollbar,E=p.axisTitleMargin+(p.titleOffset||0),N=p.chart.scrollbarsOffsets,M=p.options.margin||0,b,F,P;if(D){if(p.horiz)p.opposite||(N[1]+=E),D.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]+=E);let I;D.options.opposite?I=p.left+p.width+2+N[0]-(p.opposite?0:M):I=p.opposite?0:M,D.position(I,p.top,p.width,p.height),p.opposite&&(N[0]+=M),b=0}N[b]+=D.size+(D.options.margin||0),isNaN(g)||isNaN(w)||!o(p.min)||!o(p.max)||p.min===p.max?D.setRange(0,1):(F=(p.min-g)/(w-g),P=(p.max-g)/(w-g),p.horiz&&!p.reversed||!p.horiz&&p.reversed?D.setRange(F,P):D.setRange(1-P,1-F))}}),s(L,"afterGetOffset",function(){const p=this,g=p.scrollbar,w=g&&!g.options.opposite,D=p.horiz?2:w?3:1;g&&(p.chart.scrollbarsOffsets=[0,0],p.chart.axisOffset[D]+=g.size+(g.options.margin||0))}),L}}return _}),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:_}=i,{addEvent:m,correctFloat:L,defined:j,destroyObjectProperties:A,fireEvent:p,merge:g,pick:w,removeEvent:D}=u;class E{static compose(M){o.compose(M,E)}static swapXY(M,b){return b&&M.forEach(F=>{const P=F.length;let I;for(let v=0;vb.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,A(b.scrollbarButtons))}drawScrollbarButton(M){const b=this,F=b.renderer,P=b.scrollbarButtons,I=b.options,v=b.size,B=F.g().add(b.group);if(P.push(B),I.buttonsEnabled){const T=F.rect().addClass("highcharts-scrollbar-button").add(B);b.chart.styledMode||T.attr({stroke:I.buttonBorderColor,"stroke-width":I.buttonBorderWidth,fill:I.buttonBackgroundColor}),T.attr(T.crisp({x:-.5,y:-.5,width:v+1,height:v+1,r:I.buttonBorderRadius},T.strokeWidth()));const S=F.path(E.swapXY([["M",v/2+(M?-1:1),v/2-3],["L",v/2+(M?-1:1),v/2+3],["L",v/2+(M?2:-2),v/2]],I.vertical)).addClass("highcharts-scrollbar-arrow").add(P[M]);b.chart.styledMode||S.attr({fill:I.buttonArrowColor})}}init(M,b,F){const P=this;P.scrollbarButtons=[],P.renderer=M,P.userOptions=b,P.options=g(c,_.scrollbar,b),P.options.margin=w(P.options.margin,10),P.chart=F,P.size=w(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,I=P.vertical?"chartY":"chartX",v=b.initPositions||[];let B,T,S;b.grabbedCenter&&(!M.touches||M.touches[0][I]!==0)&&(T=b.cursorToScrollbarPosition(F)[I],B=b[I],S=T-B,b.hasDragged=!0,b.updatePosition(v[0]+S,v[1]+S),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 I=this,v=I.options,{buttonsEnabled:B,margin:T=0,vertical:S}=v,x=I.rendered?"animate":"attr";let h=P,n=0;I.group.show(),I.x=M,I.y=b+this.trackBorderWidth,I.width=F,I.height=P,I.xOffset=h,I.yOffset=n,S?(I.width=I.yOffset=F=n=I.size,I.xOffset=h=0,I.yOffset=n=B?I.size:0,I.barWidth=P-(B?F*2:0),I.x=M=M+T):(I.height=P=I.size,I.xOffset=h=B?I.size:0,I.barWidth=F-(B?P*2:0),I.y=I.y+T),I.group[x]({translateX:M,translateY:I.y}),I.track[x]({width:F,height:P}),I.scrollbarButtons[1][x]({translateX:S?0:F-h,translateY:S?P-n:0})}removeEvents(){this._events.forEach(function(M){D.apply(null,M)}),this._events.length=0}render(){const M=this,b=M.renderer,F=M.options,P=M.size,I=M.chart.styledMode,v=b.g("scrollbar").attr({zIndex:F.zIndex}).hide().add();M.group=v,M.track=b.rect().addClass("highcharts-scrollbar-track").attr({r:F.trackBorderRadius||0,height:P,width:P}).add(v),I||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(v),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(E.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),I||(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,I=P.vertical,v=P.minWidth,B=F.barWidth,T=this.rendered&&!this.hasDragged&&!(this.chart.navigator&&this.chart.navigator.hasDragged)?"animate":"attr";if(!j(B))return;const S=B*Math.min(b,1);let x,h;M=Math.max(M,0),x=Math.ceil(B*M),F.calculatedWidth=h=L(S-x),h=1?F.group.hide():F.group.show()),F.rendered=!0}shouldUpdateExtremes(M){return w(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,I=b.y+b.scrollbarTop,v=b.x+b.scrollbarLeft;b.options.vertical&&F.chartY>I||!b.options.vertical&&F.chartX>v?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,g(!0,this.options,M),this.chart)}updatePosition(M,b){b>1&&(M=L(1-L(b-M)),b=1),M<0&&(b=L(b-M),M=0),this.from=M,this.to=b}}return E.defaultOptions=c,_.scrollbar=g(!0,E.defaultOptions,_.scrollbar),E}),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,_,m){const{defaultOptions:L}=s,{hasTouch:j,isTouchDevice:A}=o,{addEvent:p,clamp:g,correctFloat:w,defined:D,destroyObjectProperties:E,erase:N,extend:M,find:b,isArray:F,isNumber:P,merge:I,pick:v,removeEvent:B,splat:T}=m;function S(h,...n){const l=[].filter.call(n,P);if(l.length)return Math[h].apply(0,l)}class x{static compose(n,l,f){u.compose(n,l,x,f)}constructor(n){this.baseSeries=void 0,this.chart=void 0,this.handles=void 0,this.height=void 0,this.left=void 0,this.navigatorEnabled=void 0,this.navigatorGroup=void 0,this.navigatorOptions=void 0,this.navigatorSeries=void 0,this.navigatorSize=void 0,this.opposite=void 0,this.outline=void 0,this.range=void 0,this.rendered=void 0,this.scrollbarHeight=0,this.scrollButtonSize=void 0,this.shades=void 0,this.size=void 0,this.top=void 0,this.xAxis=void 0,this.yAxis=void 0,this.zoomedMax=void 0,this.zoomedMin=void 0,this.init(n)}drawHandle(n,l,f,k){const y=this,G=y.navigatorOptions.handles.height;y.handles[l][k](f?{translateX:Math.round(y.left+y.height/2),translateY:Math.round(y.top+parseInt(n,10)+.5-G)}:{translateX:Math.round(y.left+parseInt(n,10)),translateY:Math.round(y.top+y.height/2-G/2-1)})}drawOutline(n,l,f,k){const y=this,G=y.navigatorOptions.maskInside,U=y.outline.strokeWidth(),O=U/2,H=U%2/2,z=y.scrollButtonSize,W=y.size,d=y.top,R=y.height,q=d-O,J=d+R;let Y=y.left,ee,C;f?(ee=d+l+H,l=d+n+H,C=[["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&&C.push(["M",Y+R,ee-O],["L",Y+R,l+O])):(Y-=z,n+=Y+z-H,l+=Y+z-H,C=[["M",Y,q],["L",n,q],["L",n,J],["M",l,J],["L",l,q],["L",Y+W+z*2,d+O]],G&&C.push(["M",n-O,q],["L",l+O,q])),y.outline[k]({d:C})}drawMasks(n,l,f,k){const y=this,G=y.left,U=y.top,O=y.height;let H,z,W,d;f?(W=[G,G,G],d=[U,U+n,U+l],z=[O,O,O],H=[n,l-n,y.size-l]):(W=[G,G+n,G+l],d=[U,U,U],z=[n,l-n,y.size-l],H=[O,O,O]),y.shades.forEach((R,q)=>{R[k]({x:W[q],y:d[q],width:z[q],height:H[q]})})}renderElements(){const n=this,l=n.navigatorOptions,f=l.maskInside,k=n.chart,y=k.inverted,G=k.renderer,U={cursor:y?"ns-resize":"ew-resize"},O=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(O);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(O),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(O),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;I(!0,l.navigator,n),this.init(this.chart)}render(n,l,f,k){const y=this,G=y.chart,U=y.xAxis,O=U.pointRange||0,H=U.navigatorAxis.fake?G.xAxis[0]:U,z=y.navigatorEnabled,W=y.rendered,d=G.inverted,R=G.xAxis[0].minRange,q=G.xAxis[0].options.maxRange,J=y.scrollButtonSize;let Y,ee,C,V=y.scrollbarHeight,X,Q;if(this.hasDragged&&!D(f))return;if(n=w(n-O/2),l=w(l+O/2),!P(n)||!P(l))if(W)f=0,k=v(U.width,H.width);else return;y.left=v(U.left,G.plotLeft+J+(d?G.plotWidth:0));let se=y.size=X=v(U.len,(d?G.plotHeight:G.plotWidth)-2*J);d?Y=V:Y=X+2*J,f=v(f,U.toPixels(n,!0)),k=v(k,U.toPixels(l,!0)),(!P(f)||Math.abs(f)===1/0)&&(f=0,k=Y);const K=U.toValue(f,!0),ne=U.toValue(k,!0),oe=Math.abs(w(ne-K));oeq&&(this.grabbedLeft?f=U.toPixels(ne-q-O,!0):this.grabbedRight&&(k=U.toPixels(K+q+O,!0))),y.zoomedMax=g(Math.max(f,k),0,se),y.zoomedMin=g(y.fixedWidth?y.zoomedMax-y.fixedWidth:Math.min(f,k),0,se),y.range=y.zoomedMax-y.zoomedMin,se=Math.round(y.zoomedMax);const le=Math.round(y.zoomedMin);z&&(y.navigatorGroup.attr({visibility:"inherit"}),Q=W&&!y.hasDragged?"animate":"attr",y.drawMasks(le,se,d,Q),y.drawOutline(le,se,d,Q),y.navigatorOptions.handles.enabled&&(y.drawHandle(le,0,d,Q),y.drawHandle(se,1,d,Q))),y.scrollbar&&(d?(C=y.top-J,ee=y.left-V+(z||!H.opposite?0:(H.titleOffset||0)+H.axisTitleMargin),V=X+2*J):(C=y.top+(z?y.height:-V),ee=y.left-J),y.scrollbar.position(ee,C,Y,V),y.scrollbar.setRange(y.zoomedMin/(X||1),y.zoomedMax/(X||1))),y.rendered=!0}addMouseEvents(){const n=this,l=n.chart,f=l.container;let k=[],y,G;n.mouseMoveHandler=y=function(U){n.onMouseMove(U)},n.mouseUpHandler=G=function(U){n.onMouseUp(U)},k=n.getPartsEvents("mousedown"),k.push(p(l.renderTo,"mousemove",y),p(f.ownerDocument,"mouseup",G)),j&&(k.push(p(l.renderTo,"touchmove",y),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(y,G){f.push(p(y.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,y=f.xAxis,G=f.zoomedMin,U=f.size,O=f.range;let H=f.left,z=n.chartX,W,d,R,q;k.inverted&&(z=n.chartY,H=f.top),l===1?(f.grabbedCenter=z,f.fixedWidth=O,f.dragOffset=z-G):(q=z-H-O/2,l===0?q=Math.max(0,q):l===2&&q+O>=U&&(q=U-O,f.reversedExtremes?(q-=O,d=f.getUnionExtremes().dataMin):W=f.getUnionExtremes().dataMax),q!==G&&(f.fixedWidth=O,R=y.navigatorAxis.toFixedRange(q,q+O,d,W),D(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,y=k.xAxis[0],G=f.reversedExtremes;l===0?(f.grabbedLeft=!0,f.otherHandlePos=f.zoomedMax,f.fixedExtreme=G?y.min:y.max):(f.grabbedRight=!0,f.otherHandlePos=f.zoomedMin,f.fixedExtreme=G?y.max:y.min),k.fixedRange=null}onMouseMove(n){const l=this,f=l.chart,k=l.navigatorSize,y=l.range,G=l.dragOffset,U=f.inverted;let O=l.left,H;(!n.touches||n.touches[0].pageX!==0)&&(n=f.pointer.normalize(n),H=n.chartX,U&&(O=l.top,H=n.chartY),l.grabbedLeft?(l.hasDragged=!0,l.render(0,0,H-O,l.otherHandlePos)):l.grabbedRight?(l.hasDragged=!0,l.render(0,0,l.otherHandlePos,H-O)):l.grabbedCenter&&(l.hasDragged=!0,Hk+G-y&&(H=k+G-y),l.render(0,0,H-G,H-G+y)),l.hasDragged&&l.scrollbar&&v(l.scrollbar.options.liveRedraw,!A&&!this.chart.boosted)&&(n.DOMType=n.type,setTimeout(function(){l.onMouseUp(n)},0)))}onMouseUp(n){const l=this,f=l.chart,k=l.xAxis,y=l.scrollbar,G=n.DOMEvent||n,U=f.inverted,O=l.rendered&&!l.hasDragged?"animate":"attr";let H,z,W,d,R,q;(l.hasDragged&&(!y||!y.hasDragged)||n.trigger==="scrollbar")&&(W=l.getUnionExtremes(),l.zoomedMin===l.otherHandlePos?d=l.fixedExtreme:l.zoomedMax===l.otherHandlePos&&(R=l.fixedExtreme),l.zoomedMax===l.size&&(R=l.reversedExtremes?W.dataMin:W.dataMax),l.zoomedMin===0&&(d=l.reversedExtremes?W.dataMax:W.dataMin),q=k.navigatorAxis.toFixedRange(l.zoomedMin,l.zoomedMax,d,R),D(q.min)&&f.xAxis[0].setExtremes(Math.min(q.min,q.max),Math.max(q.min,q.max),!0,l.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:G})),n.DOMType!=="mousemove"&&n.DOMType!=="touchmove"&&(l.grabbedLeft=l.grabbedRight=l.grabbedCenter=l.fixedWidth=l.fixedExtreme=l.otherHandlePos=l.hasDragged=l.dragOffset=null),l.navigatorEnabled&&P(l.zoomedMin)&&P(l.zoomedMax)&&(z=Math.round(l.zoomedMin),H=Math.round(l.zoomedMax),l.shades&&l.drawMasks(z,H,U,O),l.outline&&l.drawOutline(z,H,U,O),l.navigatorOptions.handles.enabled&&Object.keys(l.handles).length===l.handles.length&&(l.drawHandle(z,0,U,O),l.drawHandle(H,1,U,O)))}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,y=l.scrollbar||{},G=y.enabled,U=k&&f.height||0,O=G&&y.height||0,H=y.buttonsEnabled&&O||0;this.handles=[],this.shades=[],this.chart=n,this.setBaseSeries(),this.height=U,this.scrollbarHeight=O,this.scrollButtonSize=H,this.scrollbarEnabled=G,this.navigatorEnabled=k,this.navigatorOptions=f,this.scrollbarOptions=y,this.opposite=v(f.opposite,!!(!k&&n.inverted));const z=this,W=z.baseSeries,d=n.xAxis.length,R=n.yAxis.length,q=W&&W[0]&&W[0].xAxis||n.xAxis[0]||{options:{}};if(n.isDirtyBox=!0,z.navigatorEnabled?(z.xAxis=new i(n,I({breaks:q.options.breaks,ordinal:q.options.ordinal},f.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",type:"datetime",index:d,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},n.inverted?{offsets:[H,0,-H,0],width:U}:{offsets:[0,-H,0,H],height:U}),"xAxis"),z.yAxis=new i(n,I(f.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:R,isInternal:!0,reversed:v(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],C=ee.getExtremes(),V=ee.len-2*H,X=S("min",ee.options.min,C.dataMin),Q=S("max",ee.options.max,C.dataMax)-X;return Y?J*Q/V+X:V*(J-X)/Q},toPixels:function(J){return this.translate(J)},toValue:function(J){return this.translate(J,!0)}},z.xAxis.navigatorAxis.axis=z.xAxis,z.xAxis.navigatorAxis.toFixedRange=c.prototype.toFixedRange.bind(z.xAxis.navigatorAxis)),n.options.scrollbar.enabled){const J=I(n.options.scrollbar,{vertical:n.inverted});!P(J.margin)&&z.navigatorEnabled&&(J.margin=n.inverted?-3:3),n.scrollbar=z.scrollbar=new _(n.renderer,J,n),p(z.scrollbar,"changed",function(Y){const ee=z.size,C=ee*this.to,V=ee*this.from;z.hasDragged=z.scrollbar.hasDragged,z.render(0,0,V,C),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,y=l.options;let G;return(!n||l.dataMin!==null)&&(G={dataMin:v(k&&k.min,S("min",y.min,l.dataMin,f.dataMin,f.min)),dataMax:v(k&&k.max,S("max",y.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,y=>!y.options.isInternal).index:0),(f.series||[]).forEach((y,G)=>{!y.options.isInternal&&(y.options.showInNavigator||(G===n||y.options.id===n)&&y.options.showInNavigator!==!1)&&k.push(y)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,l)}updateNavigatorSeries(n,l){const f=this,k=f.chart,y=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 y.indexOf(R)<0?(R&&(B(R,"updatedData",f.updatedDataHandler),delete R.navigatorSeries),d.chart&&d.destroy(),!1):!0});let O,H,z=f.navigatorOptions.series,W;y&&y.length&&y.forEach(d=>{const R=d.navigatorSeries,q=M({color:d.color,visible:d.visible},F(z)?L.navigator.series:z);if(R&&f.navigatorOptions.adaptToUpdatedData===!1)return;G.name="Navigator "+y.length,O=d.options||{},W=O.navigatorOptions||{},q.dataLabels=T(q.dataLabels),H=I(O,G,q,W),H.pointRange=v(q.pointRange,W.pointRange,L.plotOptions[H.type||"line"].pointRange);const J=W.data||q.data;f.hasNavigatorData=f.hasNavigatorData||!!J,H.data=J||O.data&&O.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&&!(y&&y.length)||F(z))&&(f.hasNavigatorData=!1,z=T(z),z.forEach((d,R)=>{G.name="Navigator "+(U.length+1),H=I(L.navigator.series,{color: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),D(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,y=f.max,G=f.dataMin,U=f.dataMax,O=y-k,H=l.stickToMin,z=l.stickToMax,W=v(n.options.overscroll,0),d=l.series&&l.series[0],R=!!n.setExtremes,q=n.eventArgs&&n.eventArgs.trigger==="rangeSelectorButton";let J,Y;q||(H&&(Y=G,J=Y+O),z&&(J=U+W,H||(Y=Math.max(G,J-O,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=v(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,y=k.max,G=k.min,U=k.options.range;let O=!0;return P(y)&&P(G)?U&&y-f>0?O=y-f{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=>{E(n)})}}return x}),a(t,"Stock/RangeSelector/RangeSelectorDefaults.js",[],function(){return{lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%e %b %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#334eff",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"#666666",fontSize:"0.8em"}}}}),a(t,"Stock/RangeSelector/RangeSelectorComposition.js",[t["Core/Defaults.js"],t["Stock/RangeSelector/RangeSelectorDefaults.js"],t["Core/Utilities.js"]],function(i,s,o){const{defaultOptions:c,setOptions:u}=i,{addEvent:_,defined:m,extend:L,find:j,isNumber:A,merge:p,pick:g}=o,w=[],D=[];let E;function N(){const x=this.range,h=x.type,n=this.max,l=this.chart.time,f=function(U,O){const H=h==="year"?"FullYear":"Month",z=new l.Date(U),W=l.get(H,z);return l.set(H,z,W+O),W===l.get(H,z)&&l.set("Date",z,0),z.getTime()-U};let k,y;A(x)?(k=n-x,y=x):x&&(k=n+f(n,-(x.count||1)),this.chart&&(this.chart.fixedRange=n-k));const G=g(this.dataMin,Number.MIN_VALUE);return A(k)||(k=G),k<=G&&(k=G,typeof y>"u"&&(y=f(k,x.count)),this.newMax=Math.min(k+y,g(this.dataMax,Number.MAX_VALUE))),A(n)?!A(x)&&x&&x._offsetMin&&(k+=x._offsetMin):k=void 0,k}function M(x,h,n){E=n,o.pushUnique(D,x)&&(x.prototype.minFromRange=N),o.pushUnique(D,h)&&(_(h,"afterGetContainer",b),_(h,"beforeRender",F),_(h,"destroy",I),_(h,"getMargins",v),_(h,"render",B),_(h,"update",T),h.prototype.callbacks.push(P)),o.pushUnique(D,u)&&(L(c,{rangeSelector:s.rangeSelector}),L(c.lang,s.lang))}function b(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new E(this))}function F(){const x=this,h=x.axes,n=x.rangeSelector;if(n){A(n.deferredYTDClick)&&(n.clickButton(n.deferredYTDClick),delete n.deferredYTDClick),h.forEach(f=>{f.updateNames(),f.setScale()}),x.getAxisMargins(),n.render();const l=n.options.verticalAlign;n.options.floating||(l==="bottom"?this.extraBottomMargin=!0:l!=="middle"&&(this.extraTopMargin=!0))}}function P(x){let h,n,l,f;const k=x.rangeSelector,y=()=>{k&&(h=x.xAxis[0].getExtremes(),n=x.legend,f=k&&k.options.verticalAlign,A(h.min)&&k.render(h.min,h.max),n.display&&f==="top"&&f===n.options.verticalAlign&&(l=p(x.spacingBox),n.options.layout==="vertical"?l.y=x.plotTop:l.y+=k.getHeight(),n.group.placed=!1,n.align(l)))};k&&(j(w,U=>U[0]===x)||w.push([x,[_(x.xAxis[0],"afterSetExtremes",function(U){k&&k.render(U.min,U.max)}),_(x,"redraw",y)]]),y())}function I(){for(let x=0,h=w.length;xl()),w.splice(x,1);return}}}function v(){const x=this.rangeSelector;if(x){const h=x.getHeight();this.extraTopMargin&&(this.plotTop+=h),this.extraBottomMargin&&(this.marginBottom+=h)}}function B(){const x=this,h=x.rangeSelector;if(h&&!h.options.floating){h.render();const n=h.options.verticalAlign;n==="bottom"?this.extraBottomMargin=!0:n!=="middle"&&(this.extraTopMargin=!0)}}function T(x){const h=this,n=x.options,l=n.rangeSelector,f=this.extraBottomMargin,k=this.extraTopMargin;let y=h.rangeSelector;if(l&&l.enabled&&!m(y)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=y=new E(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,y){P(this);const G=l&&l.verticalAlign||y.options&&y.options.verticalAlign;y.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,_){const{defaultOptions:m}=s,{addEvent:L,createElement:j,css:A,defined:p,destroyObjectProperties:g,discardElement:w,extend:D,fireEvent:E,isNumber:N,merge:M,objectEach:b,pad:F,pick:P,pInt:I,splat:v}=_;function B(S){if(S.indexOf("%L")!==-1)return"text";const h=["a","A","d","e","w","b","B","m","o","y","Y"].some(l=>S.indexOf("%"+l)!==-1),n=["H","k","I","l","M","S"].some(l=>S.indexOf("%"+l)!==-1);return h&&n?"datetime-local":h?"date":n?"time":"text"}class T{static compose(x,h){c.compose(x,h,T)}constructor(x){this.buttons=void 0,this.buttonOptions=T.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=x,this.init(x)}clickButton(x,h){const n=this,l=n.chart,f=n.buttonOptions[x],k=l.xAxis[0],y=l.scroller&&l.scroller.getUnionExtremes()||k||{},G=f.type,U=f.dataGrouping;let O=y.dataMin,H=y.dataMax,z,W=k&&Math.round(Math.min(k.max,P(H,k.max))),d,R=f._range,q,J,Y,ee,C,V=!0;if(!(O===null||H===null)){if(l.fixedRange=R,n.setSelected(x),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:O,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,O),W=Math.min(z+R,H),V=!1;else if(G==="ytd")if(k)(typeof H>"u"||typeof O>"u")&&(O=Number.MAX_VALUE,H=Number.MIN_VALUE,l.series.forEach(X=>{const Q=X.xData;Q&&(O=Math.min(Q[0],O),H=Math.max(Q[Q.length-1],H))}),h=!1),C=n.getYTDExtremes(H,O,l.time.useUTC),z=q=C.min,W=C.max;else{n.deferredYTDClick=x;return}else G==="all"&&k&&(l.navigator&&l.navigator.baseSeries[0]&&(l.navigator.baseSeries[0].xAxis.options.range=void 0),z=O,W=H);V&&f._offsetMin&&p(z)&&(z+=f._offsetMin),f._offsetMax&&p(W)&&(W+=f._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=x+1),k?k.setExtremes(z,W,P(h,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:f}):(d=v(l.options.xAxis)[0],Y=d.range,d.range=R,J=d.min,d.min=q,L(l,"load",function(){d.range=Y,d.min=J})),E(this,"afterBtnClick")}}setSelected(x){this.selected=this.options.selected=x}init(x){const h=this,n=x.options.rangeSelector,l=n.buttons||h.defaultButtons.slice(),f=n.selected,k=function(){const y=h.minInput,G=h.maxInput;y&&y.blur&&E(y,"blur"),G&&G.blur&&E(G,"blur")};h.chart=x,h.options=n,h.buttons=[],h.buttonOptions=l,this.eventsToUnbind=[],this.eventsToUnbind.push(L(x.container,"mousedown",k)),this.eventsToUnbind.push(L(x,"resize",k)),l.forEach(h.computeButtonRange),typeof f<"u"&&l[f]&&this.clickButton(f,!1),this.eventsToUnbind.push(L(x,"load",function(){x.xAxis&&x.xAxis[0]&&L(x.xAxis[0],"setExtremes",function(y){this.max-this.min!==x.fixedRange&&y.trigger!=="rangeSelectorButton"&&y.trigger!=="updatedData"&&h.forcedDataGrouping&&!h.frozenStates&&this.setDataGrouping(!1,!1)})}))}updateButtonStates(){const x=this,h=this.chart,n=this.dropdown,l=h.xAxis[0],f=Math.round(l.max-l.min),k=!l.hasVisibleSeries,y=24*36e5,G=h.scroller&&h.scroller.getUnionExtremes()||l,U=G.dataMin,O=G.dataMax,H=x.getYTDExtremes(O,U,h.time.useUTC),z=H.min,W=H.max,d=x.selected,R=x.options.allButtonsEnabled,q=x.buttons;let J=N(d);x.buttonOptions.forEach((Y,ee)=>{const C=Y._range,V=Y.type,X=Y.count||1,Q=q[ee],se=Y._offsetMax-Y._offsetMin,K=ee===d,ne=C>O-U,oe=C={month:28,year:365}[V]*y*X-se&&f-36e5<={month:31,year:366}[V]*y*X+se?re=!0:V==="ytd"?(re=W-z+se===f,ye=!K):V==="all"&&(re=l.max-l.min>=O-U,te=!K&&J&&re);const Z=!R&&(ne||oe||te||k),ie=K&&re||re&&!J&&!ye||K&&x.frozenStates;Z?le=3:ie&&(J=!0,le=2),Q.state!==le&&(Q.setState(le),n&&(n.options[ee+1].disabled=Z,le===2&&(n.selectedIndex=ee+1)),le===0&&d===ee&&x.setSelected())})}computeButtonRange(x){const h=x.type,n=x.count||1,l={millisecond:1,second:1e3,minute:60*1e3,hour:3600*1e3,day:24*3600*1e3,week:7*24*3600*1e3};l[h]?x._range=l[h]*n:(h==="month"||h==="year")&&(x._range={month:30,year:365}[h]*24*36e5*n),x._offsetMin=P(x.offsetMin,0),x._offsetMax=P(x.offsetMax,0),x._range+=x._offsetMax-x._offsetMin}getInputValue(x){const h=x==="min"?this.minInput:this.maxInput,n=this.chart.options.rangeSelector,l=this.chart.time;return h?(h.type==="text"&&n.inputDateParser||this.defaultInputDateParser)(h.value,l.useUTC,l):0}setInputValue(x,h){const n=this.options,l=this.chart.time,f=x==="min"?this.minInput:this.maxInput,k=x==="min"?this.minDateBox:this.maxDateBox;if(f){const y=f.getAttribute("data-hc-time");let G=p(y)?Number(y):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(x,h,n){const l=x==="min"?this.minInput:this.maxInput;if(l){const f=this.inputTypeFormats[l.type],k=this.chart.time;if(f){const y=k.dateFormat(f,h);l.min!==y&&(l.min=y);const G=k.dateFormat(f,n);l.max!==G&&(l.max=G)}}}showInput(x){const h=x==="min"?this.minDateBox:this.maxDateBox,n=x==="min"?this.minInput:this.maxInput;if(n&&h&&this.inputGroup){const l=n.type==="text",{translateX:f,translateY:k}=this.inputGroup,{inputBoxWidth:y}=this.options;A(n,{width:l?h.width+(y?-2:20)+"px":"auto",height:h.height-2+"px",border:"2px solid silver"}),l&&y?A(n,{left:f+h.x+"px",top:k+"px"}):A(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(x){const h=x==="min"?this.minInput:this.maxInput;h&&A(h,{top:"-9999em",border:0,width:"1px",height:"1px"})}defaultInputDateParser(x,h,n){const l=y=>y.length>6&&(y.lastIndexOf("-")===y.length-6||y.lastIndexOf("+")===y.length-6);let f=x.split("/").join("-").split(" ").join("T");if(f.indexOf("T")===-1&&(f+="T00:00"),h)f+="Z";else if(o.isSafari&&!l(f)){const y=new Date(f).getTimezoneOffset()/60;f+=y<=0?`+${F(-y)}:00`:`-${F(y)}:00`}let k=Date.parse(f);if(!N(k)){const y=x.split("-");k=Date.UTC(I(y[0]),I(y[1])-1,I(y[2]))}return n&&h&&N(k)&&(k+=n.getTimezoneOffset(k)),k}drawInput(x){const{chart:h,div:n,inputGroup:l}=this,f=this,k=h.renderer.style||{},y=h.renderer,G=h.options.rangeSelector,U=m.lang,O=x==="min";function H(){const{maxInput:J,minInput:Y}=f,ee=h.xAxis[0],C=h.scroller&&h.scroller.xAxis?h.scroller.xAxis:ee,V=C.dataMin,X=C.dataMax;let Q=f.getInputValue(x);Q!==Number(R.getAttribute("data-hc-time-previous"))&&N(Q)&&(R.setAttribute("data-hc-time-previous",Q),O&&J&&N(V)?Q>Number(J.getAttribute("data-hc-time"))?Q=void 0:QX&&(Q=X)),typeof Q<"u"&&ee.setExtremes(O?Q:ee.min,O?ee.max:Q,void 0,void 0,{trigger:"rangeSelectorInput"}))}const z=U[O?"rangeSelectorFrom":"rangeSelectorTo"]||"",W=y.label(z,0).addClass("highcharts-range-label").attr({padding:z?2:0,height:z?G.inputBoxHeight:0}).add(l),d=y.label("",0).addClass("highcharts-range-input").attr({padding:2,width:G.inputBoxWidth,height:G.inputBoxHeight,"text-align":"center"}).on("click",function(){f.showInput(x),f[x+"Input"].focus()});h.styledMode||d.attr({stroke:G.inputBoxBorderColor,"stroke-width":1}),d.add(l);const R=j("input",{name:x,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)),A(R,D({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(x)},R.onblur=()=>{R===o.doc.activeElement&&H(),f.hideInput(x),f.setInputValue(x),R.blur()};let q=!1;return R.onchange=()=>{q||(H(),f.hideInput(x),R.blur())},R.onkeypress=J=>{J.keyCode===13&&H()},R.onkeydown=J=>{q=!0,(J.keyCode===38||J.keyCode===40)&&H()},R.onkeyup=()=>{q=!1},{dateBox:d,input:R,label:W}}getPosition(){const x=this.chart,h=x.options.rangeSelector,n=h.verticalAlign==="top"?x.plotTop-x.axisOffset[0]:0;return{buttonTop:n+h.buttonPosition.y,inputTop:n+h.inputPosition.y-10}}getYTDExtremes(x,h,n){const l=this.chart.time,f=new l.Date(x),k=l.get("FullYear",f),y=n?l.Date.UTC(k,0,1):+new l.Date(k,0,1),G=Math.max(h,y),U=f.getTime();return{max:Math.min(x||U,U),min:G}}render(x,h){const n=this.chart,l=n.renderer,f=n.container,k=n.options,y=k.rangeSelector,G=P(k.chart.style&&k.chart.style.zIndex,0)+1,U=y.inputEnabled,O=this.rendered;if(y.enabled!==!1){if(!O&&(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",x),this.setInputValue("max",h);const H=n.scroller&&n.scroller.getUnionExtremes()||n.xAxis[0]||{};if(p(H.dataMin)&&p(H.dataMax)){const z=n.xAxis[0].minRange||0;this.setInputExtremes("min",H.dataMin,Math.min(H.dataMax,this.getInputValue("max"))-z),this.setInputExtremes("max",Math.max(H.dataMin,this.getInputValue("min"))+z,H.dataMax)}if(this.inputGroup){let z=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(W=>{if(W){const{width:d}=W.getBBox();d&&(W.attr({x:z}),z+=d+y.inputSpacing)}})}}this.alignElements(),this.rendered=!0}}renderButtons(){const{buttons:x,chart:h,options:n}=this,l=m.lang,f=h.renderer,k=M(n.buttonTheme),y=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);L(U,"touchstart",()=>{U.style.fontSize="16px"}),[[o.isMS?"mouseover":"mouseenter"],[o.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(([O,H])=>{L(U,O,()=>{const z=x[this.currentButtonIndex()];z&&E(z.element,H||O)})}),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((O,H)=>{j("option",{textContent:O.title||O.text},void 0,U),x[H]=f.button(O.text,0,0,z=>{const W=O.events&&O.events.click;let d;W&&(d=W.call(O,z)),d!==!1&&this.clickButton(H),this.isActive=!0},k,y&&y.hover,y&&y.select,y&&y.disabled).attr({"text-align":"center",width:G}).add(this.buttonGroup),O.title&&x[H].attr("title",O.title)})}alignElements(){const{buttonGroup:x,buttons:h,chart:n,group:l,inputGroup:f,options:k,zoomText:y}=this,G=n.options,U=G.exporting&&G.exporting.enabled!==!1&&G.navigation&&G.navigation.buttonOptions,{buttonPosition:O,inputPosition:H,verticalAlign:z}=k,W=(R,q)=>U&&this.titleCollision(n)&&z==="top"&&q.align==="right"&&q.y-R.getBBox().height-12<(U.y||0)+(U.height||0)+n.spacing[0]?-40:0;let d=n.plotLeft;if(l&&O&&H){let R=O.x-n.spacing[3];if(x){if(this.positionButtons(),!this.initialButtonGroupWidth){let se=0;y&&(se+=y.getBBox().width+5),h.forEach((K,ne)=>{se+=K.width,ne!==h.length-1&&(se+=k.buttonSpacing)}),this.initialButtonGroupWidth=se}d-=n.spacing[3],this.updateButtonStates();const Q=W(x,O);this.alignButtonGroup(Q),l.placed=x.placed=n.hasLoaded}let q=0;f&&(q=W(f,H),H.align==="left"?R=d:H.align==="right"&&(R=-Math.max(n.axisOffset[1],-q)),f.align({y:H.y,width:f.getBBox().width,align:H.align,x:H.x+R-2},!0,n.spacingBox),f.placed=n.hasLoaded),this.handleCollision(q),l.align({verticalAlign:z},!0,n.spacingBox);const J=l.alignAttr.translateY;let Y=l.getBBox().height+20,ee=0;if(z==="bottom"){const Q=n.legend&&n.legend.options,se=Q&&Q.verticalAlign==="bottom"&&Q.enabled&&!Q.floating?n.legend.legendHeight+P(Q.margin,10):0;Y=Y+se-20,ee=J-Y-(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===O.y?ee=J:(H.y||O.y)&&(H.y<0||O.y<0?ee-=Math.min(H.y,O.y):ee=J-Y)),l.translate(k.x,k.y+Math.floor(ee));const{minInput:C,maxInput:V,dropdown:X}=this;k.inputEnabled&&C&&V&&(C.style.marginTop=l.translateY+"px",V.style.marginTop=l.translateY+"px"),X&&(X.style.marginTop=l.translateY+"px")}}alignButtonGroup(x,h){const{chart:n,options:l,buttonGroup:f,buttons:k}=this,{buttonPosition:y}=l,G=n.plotLeft-n.spacing[3];let U=y.x-n.spacing[3];y.align==="right"?U+=x-G:y.align==="center"&&(U-=G/2),f&&f.align({y:y.y,width:P(h,this.initialButtonGroupWidth),align:y.align,x:U},!0,n.spacingBox)}positionButtons(){const{buttons:x,chart:h,options:n,zoomText:l}=this,f=h.hasLoaded?"animate":"attr",{buttonPosition:k}=n,y=h.plotLeft;let G=y;l&&l.visibility!=="hidden"&&(l[f]({x:P(y+k.x,y)}),G+=k.x+l.getBBox().width+5);for(let U=0,O=this.buttonOptions.length;U{let H=0;return this.buttons.forEach(z=>{const W=z.getBBox();W.width>H&&(H=W.width)}),H},U=H=>{if(l&&n){const z=l.alignAttr.translateX+l.alignOptions.x-x+l.getBBox().x+2,W=l.alignOptions.width,d=n.alignAttr.translateX+n.getBBox().x;return d+H>z&&z+W>d&&f.y{l&&n&&l.attr({translateX:l.alignAttr.translateX+(h.axisOffset[1]>=-x?0:-x),translateY:l.alignAttr.translateY+n.getBBox().height+10})};if(n){if(k==="always"){this.collapseButtons(x),U(G())&&O();return}k==="never"&&this.expandButtons()}l&&n?y.align===f.align||U(this.initialButtonGroupWidth+20)?k==="responsive"?(this.collapseButtons(x),U(G())&&O()):O():k==="responsive"&&this.expandButtons():n&&k==="responsive"&&(this.initialButtonGroupWidth>h.plotWidth?this.collapseButtons(x):this.expandButtons())}collapseButtons(x){const{buttons:h,buttonOptions:n,chart:l,dropdown:f,options:k,zoomText:y}=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)});y&&y.hide();let O=!1;n.forEach((z,W)=>{const d=h[W];d.state!==2?d.hide():(d.show(),d.attr(U(z.text)),O=!0)}),O||(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(x,h[this.currentButtonIndex()].getBBox().width),this.showDropdown()}expandButtons(){const{buttons:x,buttonOptions:h,options:n,zoomText:l}=this;this.hideDropdown(),l&&l.show(),h.forEach((f,k)=>{const y=x[k];y.show(),y.attr({text:f.text,width:n.buttonTheme.width||28,paddingLeft:P(n.buttonTheme.paddingLeft,"unset"),paddingRight:P(n.buttonTheme.paddingRight,"unset")}),y.state<2&&y.setState(0)}),this.positionButtons()}currentButtonIndex(){const{dropdown:x}=this;return x&&x.selectedIndex>0?x.selectedIndex-1:0}showDropdown(){const{buttonGroup:x,buttons:h,chart:n,dropdown:l}=this;if(x&&l){const{translateX:f,translateY:k}=x,y=h[this.currentButtonIndex()].getBBox();A(l,{left:n.plotLeft+f+"px",top:k+.5+"px",width:y.width+"px",height:y.height+"px"}),this.hasVisibleDropdown=!0}}hideDropdown(){const{dropdown:x}=this;x&&(A(x,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)}getHeight(){const x=this,h=x.options,n=x.group,l=h.inputPosition,f=h.buttonPosition,k=h.y,y=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 O=Math.min(G,y);return(G<0&&y<0||G>0&&y>0)&&(U+=Math.abs(O)),U}titleCollision(x){return!(x.options.title.text||x.options.subtitle.text)}update(x){const h=this.chart;M(!0,h.options.rangeSelector,x),this.destroy(),this.init(h),this.render()}destroy(){const x=this,h=x.minInput,n=x.maxInput;x.eventsToUnbind&&(x.eventsToUnbind.forEach(l=>l()),x.eventsToUnbind=void 0),g(x.buttons),h&&(h.onfocus=h.onblur=h.onchange=null),n&&(n.onfocus=n.onblur=n.onchange=null),b(x,function(l,f){l&&f!=="chart"&&(l instanceof u?l.destroy():l instanceof r.HTMLElement&&w(l)),l!==T.prototype[f]&&(x[f]=null)},this)}}return D(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:_,css:m,defined:L,error:j,pick:A,timeUnits:p}=c,g=[];var w;return function(D){function E(n,l,f){if(c.pushUnique(g,n)){const k=n.prototype;k.getTimeTicks=N,k.index2val=M,k.lin2val=b,k.val2lin=x,k.ordinal2lin=k.val2lin,u(n,"afterInit",P),u(n,"foundExtremes",I),u(n,"afterSetScale",v),u(n,"initialAxisTranslation",B)}return c.pushUnique(g,f)&&u(f,"pan",T),c.pushUnique(g,l)&&u(l,"updatedData",S),n}D.compose=E;function N(n,l,f,k,y=[],G=0,U){const O={},H=this.options.tickPixelInterval,z=this.chart.time,W=[];let d,R,q,J,Y,ee=0,C=[],V=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!y||y.length<3||typeof l>"u")return z.getTimeTicks.apply(z,arguments);const X=y.length;for(d=0;df,y[d]G*5||Y){if(y[d]>V){for(R=z.getTimeTicks(n,y[ee],y[d],k);R.length&&R[0]<=V;)R.shift();R.length&&(V=R[R.length-1]),W.push(C.length),C=C.concat(R)}ee=d+1}if(Y)break}if(R){if(J=R.info,U&&J.unitRange<=p.hour){for(d=C.length-1,ee=1;eef?Q-1:Q,le=void 0;re--;)oe=se[re],te=Math.abs(le-oe),le&&tey?n=k[y]:(y=Math.floor(n),G=n-y),typeof G<"u"&&typeof k[y]<"u"?k[y]+(G?G*(k[y+1]-k[y]):0):n}function b(n){const l=this,f=l.ordinal,k=l.old?l.old.min:l.min,y=l.old?l.old.transA:l.transA;let G=f.positions;if(!G)return n;const U=_((n-k)*y+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:_(f.getIndexOfPoint(U,G)),W=_(z%1);if(z>=0&&z<=G.length-1){const Y=G[Math.floor(z)],ee=G[Math.ceil(z)],C=ee-Y;return G[Math.floor(z)]+W*C}const d=G.length,R=G[0],q=G[d-1],J=(q-R)/(d-1);return z<0?R+J*z:q+J*(z-d)}return n}function F(n,l){const f=D.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 D.Additions(n))}function I(){const n=this;n.isXAxis&&L(n.options.overscroll)&&n.max===n.dataMax&&(!n.chart.mouseIsDown||n.isInternal)&&(!n.eventArgs||n.eventArgs&&n.eventArgs.trigger!=="navigator")&&(n.max+=n.options.overscroll,!n.isInternal&&L(n.userMin)&&(n.min+=n.options.overscroll))}function v(){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,y=n.originalEvent.chartX,G=l.options.chart.panning;let U=!1;if(G&&G.type!=="y"&&f.options.ordinal&&f.series.length){const O=l.mouseDownX,H=f.getExtremes(),z=H.dataMax,W=H.min,d=H.max,R=l.hoverPoints,q=f.closestPointRange||f.ordinal&&f.ordinal.overscrollPointsRange,J=f.translationSlope*(f.ordinal.slope||q),Y=Math.round((O-y)/J),ee=f.ordinal.getExtendedPositions(),C={ordinal:{positions:ee,extendedOrdinalPositions:ee}},V=f.index2val,X=f.val2lin;let Q,se,K,ne;C.ordinal.positions?Math.abs(Y)>1&&(R&&R.forEach(function(oe){oe.setState()}),Y<0?(K=C,ne=f.ordinal.positions?f:C):(K=f.ordinal.positions?f:C,ne=C),se=ne.ordinal.positions,z>se[se.length-1]&&se.push(z),l.fixedRange=d-W,Q=f.navigatorAxis.toFixedRange(void 0,void 0,V.apply(K,[X.apply(K,[W,!0])+Y]),V.apply(ne,[X.apply(ne,[d,!0])+Y])),Q.min>=Math.min(H.dataMin,W)&&Q.max<=Math.max(z,d)+k&&f.setExtremes(Q.min,Q.max,!0,!1,{trigger:"pan"}),l.mouseDownX=y,m(l.container,{cursor:"move"})):U=!0}else U=!0;U||G&&/y/.test(G.type)?k&&(f.max=f.dataMax+k):n.preventDefault()}function S(){const n=this.xAxis;n&&n.options.ordinal&&(delete n.ordinal.index,delete n.ordinal.extendedOrdinalPositions)}function x(n,l){const f=this,k=f.ordinal,y=k.positions;let G=k.slope,U=k.extendedOrdinalPositions;if(!y)return n;const O=y.length;let H;if(y[0]<=n&&y[O-1]>=n)H=F(y,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,y[0]);if(n>=U[0]&&n<=U[z-1])H=F(U,n)-W;else if(n0&&K.options.id!=="highcharts-navigator-series"&&K.processedXData.length>1&&(X=se!==K.processedXData[1]-K.processedXData[0]),se=K.processedXData[1]-K.processedXData[0],K.boosted&&(Q=K.boosted),(!H||K.visible!==!1)&&(K.takeOrdinalPosition!==!1||U)&&(ee=ee.concat(K.processedXData),z=ee.length,ee.sort(function(oe,le){return oe-le}),C=Math.min(C,A(K.closestPointRange,C)),z)){for(ne=0;ne2){for(d=ee[1]-ee[0],Y=z-1;Y--&&!V;)ee[Y+1]-ee[Y]!==d&&(V=!0);!l.options.keepOrdinalPadding&&(ee[0]-y>d||G-ee[ee.length-1]>d)&&(V=!0)}else l.options.overscroll&&(z===2?C=ee[1]-ee[0]:z===1?(C=l.options.overscroll,ee=[ee[0],ee[0]+C]):C=f.overscrollPointsRange);V||l.forceOrdinal?(l.options.overscroll&&(f.overscrollPointsRange=C,ee=ee.concat(f.getOverscrollPositions())),f.positions=ee,R=l.ordinal2lin(Math.max(y,ee[0]),!0),q=Math.max(l.ordinal2lin(Math.min(G,ee[ee.length-1]),!0),1),f.slope=J=(G-y)/(q-R),f.offset=y-R*J):(f.overscrollPointsRange=A(l.closestPointRange,f.overscrollPointsRange),f.positions=l.ordinal.slope=f.offset=void 0)}l.isOrdinal=O&&V,f.groupIntervalFactor=null}static findIndexOf(l,f,k){let y=0,G=l.length-1,U;for(;y!!d.isInside)};let O;y.series.forEach(W=>{var d;const R=(d=W.points)===null||d===void 0?void 0:d[0];L(R==null?void 0:R.plotX)&&(R.plotX {series.name}
High: {point.high}
Low: {point.low}
Close: {point.close}
'},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:_,merge:m}=c;class L extends u{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0,this.yData=void 0}extendStem(A,p,g){const w=A[0],D=A[1];typeof w[2]=="number"&&(w[2]=Math.max(g+p,w[2])),typeof D[2]=="number"&&(D[2]=Math.min(g-p,D[2]))}getPointPath(A,p){const g=p.strokeWidth(),w=A.series,D=g%2/2,E=Math.round(A.plotX)-D,N=Math.round(A.shapeArgs.width/2);let M=A.plotClose;const b=[["M",E,Math.round(A.yBottom)],["L",E,Math.round(A.plotHigh)]];return A.close!==null&&(M=Math.round(A.plotClose)+D,b.push(["M",E,M],["L",E+N,M]),w.extendStem(b,g/2,M)),b}drawSinglePoint(A){const p=A.series,g=p.chart;let w,D=A.graphic;typeof A.plotY<"u"&&(D||(A.graphic=D=g.renderer.path().add(p.group)),g.styledMode||D.attr(p.pointAttribs(A,A.selected&&"select")),w=p.getPointPath(A,D),D[D?"animate":"attr"]({d:w}).addClass(A.getClassName(),!0))}drawPoints(){this.points.forEach(this.drawSinglePoint)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}pointAttribs(A,p){const g=super.pointAttribs.call(this,A,p);return delete g.fill,g}toYData(A){return[A.high,A.low,A.close]}translate(){const A=this,p=A.yAxis,g=this.pointArrayMap&&this.pointArrayMap.slice()||[],w=g.map(D=>`plot${D.charAt(0).toUpperCase()+D.slice(1)}`);w.push("yBottom"),g.push("low"),super.translate.apply(A),A.points.forEach(function(D){g.forEach(function(E,N){let M=D[E];M!==null&&(A.dataModify&&(M=A.dataModify.modifyValue(M)),D[w[N]]=p.toPixels(M,!0))}),D.tooltipPos[1]=D.plotHigh+p.pos-A.chart.plotTop})}}return L.defaultOptions=m(u.defaultOptions,s),_(L.prototype,{pointClass:i,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),o.registerSeriesType("hlc",L),L}),a(t,"Series/OHLC/OHLCPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(i){const{seriesTypes:{hlc:s}}=i;class o extends s.prototype.pointClass{constructor(){super(...arguments),this.open=void 0,this.options=void 0,this.plotOpen=void 0,this.series=void 0}getClassName(){return super.getClassName.call(this)+(this.open {series.name}
Open: {point.open}
High: {point.high}
Low: {point.low}
Close: {point.close}
'}}}),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:_,extend:m,merge:L}=c,j=[];function A(w){const D=w.options,E=D.dataGrouping;E&&D.useOhlcData&&D.id!=="highcharts-navigator-series"&&(E.approximation="ohlc")}function p(w){const D=this,E=w.options;E.useOhlcData&&E.id!=="highcharts-navigator-series"&&m(D,{pointValKey:g.prototype.pointValKey,pointArrayMap:g.prototype.pointArrayMap,toYData:g.prototype.toYData})}class g extends u{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}static compose(D,...E){c.pushUnique(j,D)&&(_(D,"afterSetOptions",A),_(D,"init",p))}getPointPath(D,E){const N=super.getPointPath(D,E),M=E.strokeWidth(),b=M%2/2,F=Math.round(D.plotX)-b,P=Math.round(D.shapeArgs.width/2);let I=D.plotOpen;return D.open!==null&&(I=Math.round(D.plotOpen)+b,N.push(["M",F,I],["L",F-P,I]),super.extendStem(N,M/2,I)),N}pointAttribs(D,E){const N=super.pointAttribs.call(this,D,E),M=this.options;return delete N.fill,!D.options.color&&M.upColor&&D.open"u"}hasNewShapeType(){const m=this.options.shape||this.series.options.shape;return this.graphic&&m&&m!==this.graphic.symbolKey}}return u}),a(t,"Series/Flags/FlagsSeriesDefaults.js",[],function(){return{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd3ff"}},style:{fontSize:"0.7em",fontWeight:"bold"}}}),a(t,"Series/Flags/FlagsSymbols.js",[t["Core/Renderer/RendererRegistry.js"]],function(i){var s;return function(o){const c=[];function u(L){if(c.indexOf(L)===-1){c.push(L);const A=L.prototype.symbols;A.flag=_,m(A,"circle"),m(A,"square")}const j=i.getRendererType();c.indexOf(j)&&c.push(j)}o.compose=u;function _(L,j,A,p,g){const w=g&&g.anchorX||L,D=g&&g.anchorY||j,E=this.circle(w-1,D-1,2,2);return E.push(["M",w,D],["L",L,j+p],["L",L,j],["L",L+A,j],["L",L+A,j+p],["L",L,j+p],["Z"]),E}function m(L,j){L[j+"pin"]=function(A,p,g,w,D){const E=D&&D.anchorX,N=D&&D.anchorY;let M;if(j==="circle"&&w>g&&(A-=Math.round((w-g)/2),g=w),M=L[j](A,p,g,w),E&&N){let b=E;if(j==="circle")b=A+g/2;else{const P=M[0],I=M[1];P[0]==="M"&&I[0]==="L"&&(b=(P[1]+I[1])/2)}const F=p>N?p:p+w;M.push(["M",b,F],["L",E,N]),M=M.concat(L.circle(E-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:_,stableSort:m}=o;var L;return function(j){const A=[];function p(D){if(o.pushUnique(A,D)){const E=D.prototype;E.getPlotBox=g,E.translate=w}return D}j.compose=p;function g(D){return u.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,D)}j.getPlotBox=g;function w(){c.translate.apply(this);const D=this,E=D.options,N=D.chart,M=D.points,b=E.onSeries,F=b&&N.get(b),P=F&&F.options.step,I=F&&F.points,v=N.inverted,B=D.xAxis,T=D.yAxis;let S=M.length-1,x,h,n=E.onKey||"y",l=I&&I.length,f=0,k,y,G,U,O;if(F&&F.visible&&l)for(f=(F.pointXOffset||0)+(F.barW||0)/2,U=F.currentDataGrouping,y=I[l-1].x+(U?U.totalRange:0),m(M,(H,z)=>H.x-z.x),n="plot"+n[0].toUpperCase()+n.substr(1);l--&&M[S]&&(k=I[l],x=M[S],x.y=k.y,!(k.x<=x.x&&typeof k[n]<"u"&&(x.x<=y&&(x.plotY=k[n],k.x{let W;H.plotX+=f,(typeof H.plotY>"u"||v)&&(H.plotX>=0&&H.plotX<=B.len?v?(H.plotY=B.translate(H.x,0,1,0,1),H.plotX=_(H.y)?T.translate(H.y,0,0,0,1):0):H.plotY=(B.opposite?0:D.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=w}(L||(L={})),L}),a(t,"Series/Flags/FlagsSeries.js",[t["Series/Flags/FlagsPoint.js"],t["Series/Flags/FlagsSeriesDefaults.js"],t["Series/Flags/FlagsSymbols.js"],t["Core/Globals.js"],t["Series/OnSeriesComposition.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(i,s,o,c,u,_,m,L,j){const{noop:A}=c,{distribute:p}=_,{series:g,seriesTypes:{column:w}}=m,{addEvent:D,defined:E,extend:N,merge:M,objectEach:b,wrap:F}=j;class P extends w{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0}animate(v){v&&this.setClip()}drawPoints(){const v=this,B=v.points,T=v.chart,S=T.renderer,x=T.inverted,h=v.options,n=h.y,l=v.yAxis,f={},k=[];let y,G,U,O,H,z,W,d,R,q,J;for(O=B.length;O--;)H=B[O],q=(x?H.plotY:H.plotX)>v.xAxis.len,y=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"&&y>=0&&!q?(z&&H.hasNewShapeType()&&(z=z.destroy()),z||(z=H.graphic=S.label("",null,null,U,null,null,h.useHTML).addClass("highcharts-point").add(v.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(v.pointAttribs(H)).css(M(h.style,H.style)).shadow(h.shadow),y>0&&(y-=z.strokeWidth()%2),R={y:G,anchorY:d},h.allowOverlapX&&(R.x=y,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:y,anchorX:y}),H.tooltipPos=[y,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,x?l.len:this.xAxis.len,Y);for(const ee of B){const C=ee.plotX,V=ee.graphic,X=V&&f[C];X&&V&&(E(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&&v.markerGroup&&F(v.markerGroup,"on",function(Y){return L.prototype.on.apply(Y.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})}drawTracker(){const v=this,B=v.points;super.drawTracker();for(const T of B){const S=T.graphic;S&&(T.unbindMouseOver&&T.unbindMouseOver(),T.unbindMouseOver=D(S.element,"mouseover",function(){T.stackIndex>0&&!T.raised&&(T._y=S.y,S.attr({y:T._y-8}),T.raised=!0);for(const x of B)x!==T&&x.raised&&x.graphic&&(x.graphic.attr({y:x._y}),x.raised=!1)}))}}pointAttribs(v,B){const T=this.options,S=v&&v.color||this.color;let x=T.lineColor,h=v&&v.lineWidth,n=v&&v.fillColor||T.fillColor;return B&&(n=T.states[B].fillColor,x=T.states[B].lineColor,h=T.states[B].lineWidth),{fill:n||S,stroke:x||S,"stroke-width":h||T.lineWidth||0}}setClip(){g.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}}return P.compose=o.compose,P.defaultOptions=M(w.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:A,init:g.prototype.init}),m.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,_,m,L,j,A){const{format:p}=o,{getOptions:g}=c,{addEvent:w,clamp:D,defined:E,extend:N,find:M,isNumber:b,isString:F,merge:P,pick:I,splat:v}=A;class B extends s{init(h,n){const l=g(),f=h.xAxis,k=h.yAxis,y=I(h.navigator&&h.navigator.enabled,u.enabled,!0);h.xAxis=h.yAxis=void 0;const G=P({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x"}},navigator:{enabled:y},scrollbar:{enabled:I(m.enabled,!0)},rangeSelector:{enabled:I(_.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:I(l.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},h,{isStock:!0});h.xAxis=f,h.yAxis=k,G.xAxis=v(h.xAxis||{}).map(function(U,O){return P(T("xAxis",U),l.xAxis,l.xAxis&&l.xAxis[O],U,S("xAxis",h))}),G.yAxis=v(h.yAxis||{}).map(function(U,O){return P(T("yAxis",U),l.yAxis,l.yAxis&&l.yAxis[O],U)}),super.init(G,n)}createAxis(h,n){return n.axis=P(T(h,n.axis),n.axis,S(h,this.userOptions)),super.createAxis(h,n)}}(function(x){function h(n,l,f){return new x(n,l,f)}x.stockChart=h})(B||(B={}));function T(x,h){return x==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:x==="yAxis"?{labels:{y:-2},opposite:I(h.opposite,!0),showLastLabel:!!(h.categories||h.type==="category"),title:{text:null}}:{}}function S(x,h){if(x==="xAxis"){const n=I(h.navigator&&h.navigator.enabled,u.enabled,!0),l={type:"datetime",categories:void 0};return n&&(l.startOnTick=!1,l.endOnTick=!1),l}return{}}return w(L,"setOptions",function(x){let h;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?h={borderWidth:0,shadow:!1}:!this.is("scatter")&&!this.is("sma")&&(h={marker:{enabled:!1,radius:2}}),h&&(x.plotOptions[this.type]=P(x.plotOptions[this.type],h)))}),w(i,"autoLabelAlign",function(x){const{chart:h,options:n}=this,l=h._labelPanes=h._labelPanes||{},f=n.labels;if(h.options.isStock&&this.coll==="yAxis"){const 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,x.align="right",x.preventDefault())}}),w(i,"destroy",function(){const x=this.chart,h=this.options&&this.options.top+","+this.options.height;h&&x._labelPanes&&x._labelPanes[h]===this&&delete x._labelPanes[h]}),w(i,"getPlotLinePath",function(x){let h=this,n=this.isLinked&&!this.series?this.linkedParent.series:this.series,l=h.chart,f=l.renderer,k=h.left,y=h.top,G,U,O,H,z=[],W=[],d,R,q=x.translatedValue,J=x.value,Y=x.force,ee;function C(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(se){return se[X]})}(l.options.isStock&&x.acrossPanes!==!1&&h.coll==="xAxis"||h.coll==="yAxis")&&(x.preventDefault(),W=C(h.coll),d=h.isXAxis?l.yAxis:l.xAxis,d.forEach(function(V){if(!E(V.options.id)||V.options.id.indexOf("navigator")===-1){const X=V.isXAxis?"yAxis":"xAxis",Q=E(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=I(q,h.translate(J,void 0,void 0,x.old)),b(ee)&&(h.horiz?R.forEach(function(V){let X;U=V.pos,H=U+V.len,G=O=Math.round(ee+h.transB),Y!=="pass"&&(Gk+h.width)&&(Y?G=O=D(G,k,k+h.width):X=!0),X||z.push(["M",G,U],["L",O,H])}):R.forEach(function(V){let X;G=V.pos,O=G+V.len,U=H=Math.round(y+h.height-ee),Y!=="pass"&&(Uy+h.height)&&(Y?U=H=D(U,y,y+h.height):X=!0),X||z.push(["M",G,U],["L",O,H])})),x.path=z.length>0?f.crispPolyLine(z,x.lineWidth||1):null)}),j.prototype.crispPolyLine=function(x,h){for(let n=0;nQ&&K=q.right&&(C=-(O.translateX+W.width-q.right)),O.attr({x:H+C,y:z,anchorX:f?H:this.opposite?0:h.chartWidth,anchorY:f?this.opposite?h.chartHeight:0:z+W.height/2})}),L.prototype.forceCropping=function(){const x=this.chart,h=this.options,n=h.dataGrouping;return this.allowDG!==!1&&n&&I(n.enabled,x.options.isStock)},w(s,"update",function(x){const h=x.options;"scrollbar"in h&&this.navigator&&(P(!0,this.options.scrollbar,h.scrollbar),this.navigator.update({}),delete h.scrollbar)}),B}),a(t,"masters/modules/stock.src.js",[t["Core/Globals.js"],t["Series/DataModifyComposition.js"],t["Stock/Navigator/Navigator.js"],t["Stock/RangeSelector/RangeSelector.js"],t["Stock/Scrollbar/Scrollbar.js"],t["Core/Axis/OrdinalAxis.js"],t["Series/OHLC/OHLCSeries.js"],t["Series/Flags/FlagsSeries.js"],t["Core/Chart/StockChart.js"]],function(i,s,o,c,u,_,m,L,j){const A=i;A.Navigator=o,A.RangeSelector=c,A.Scrollbar=u,A.StockChart=A.stockChart=j.stockChart,s.compose(A.Series,A.Axis,A.Point),L.compose(A.Renderer),o.compose(A.Axis,A.Chart,A.Series),m.compose(A.Series),_.compose(A.Axis,A.Series,A.Chart),c.compose(A.Axis,A.Chart),u.compose(A.Axis)}),a(t,"masters/highstock.src.js",[t["masters/highcharts.src.js"]],function(i){return i.product="Highstock",i}),t["masters/highstock.src.js"]._modules=t,t["masters/highstock.src.js"]})})(uo);var Lh=uo.exports;const po=gc(Lh);function Ih(e){return{all:e=e||new Map,on:function(r,t){var a=e.get(r);a?a.push(t):e.set(r,[t])},off:function(r,t){var a=e.get(r);a&&(t?a.splice(a.indexOf(t)>>>0,1):e.set(r,[]))},emit:function(r,t){var a=e.get(r);a&&a.slice().map(function(i){i(t)}),(a=e.get("*"))&&a.slice().map(function(i){i(r,t)})}}}const Zt=Ih();function Xt(e){if(e){var r=new Date(e);let t=r.getFullYear(),a=(r.getMonth()+1).toString().padStart(2,"0"),i=r.getDate().toString().padStart(2,"0"),s=r.getHours().toString().padStart(2,"0"),o=r.getMinutes().toString().padStart(2,"0"),c=r.getSeconds().toString().padStart(2,"0");return t+"-"+a+"-"+i+" "+s+":"+o+":"+c}else return"0000-00-00 00-00-00"}function ot(e){if(e){var r=new Date(e);let t=r.getFullYear(),a=(r.getMonth()+1).toString().padStart(2,"0"),i=r.getDate().toString().padStart(2,"0"),s=r.getHours().toString().padStart(2,"0"),o=r.getMinutes().toString().padStart(2,"0");return r.getSeconds().toString().padStart(2,"0"),t+"-"+a+"-"+i+" "+s+":"+o}else return"0000-00-00 00-00"}const Rh={style:{height:"100%"}},Bh=He("div",{id:"container",style:{"min-height":"500px"}},null,-1),Nh={style:{"text-align":"center","margin-top":"20px"}},jh=He("thead",null,[He("tr",null,[He("th",null,"编号"),He("th",null,"时间"),He("th",null,"备注")])],-1),Uh={__name:"highcharts-t",props:{dataList:{type:Array,default:()=>[]}},emits:["setTimeFun"],setup(e,{emit:r}){const t=e,a=kt(),i=ze(!1),s=qe({tBottom:2,tTop:8}),o=yi();Gt(()=>o.state.plotLineList);const c=qe({chartOptions:null,data:[]}),u=()=>{c.chartOptions=new po.stockChart("container",{chart:{zoomType:"x",events:{selection(A){console.log("框选",A),A.xAxis&&(Zt.emit("onSelectionTime",A.xAxis),r("setTimeFun",A.xAxis))}},panning:this,pinchType:"",panKey:"shift"},xAxis:{type:"datetime"},time:{useUTC:!1},boost:{useGPUTranslations:!0},tooltip:{formatter:function(){var A=Xt(this.points[0].x)+"
";this.points.sort((p,g)=>g.y-p.y);for(let p in this.points)A+=`
`+this.points[p].series.name+": "+this.points[p].y.toFixed(1)+"°C
";return A},shared:!1},yAxis:{opposite:!1,title:{},plotLines:[{color:"#FF1D00",dashStyle:"DashDot",value:s.tTop,width:2,label:{text:`上限(${s.tTop}°C`,align:"right"}},{color:"#FF1D00",dashStyle:"DashDot",value:s.tBottom,width:2,label:{text:`下限(${s.tBottom}°C`,align:"right"}}]},plotOptions:{series:{turboThreshold:0,marker:{enabled:!0,radius:3}}},legend:{enabled:!0},accessibility:{enabled:!1},rangeSelector:{buttons:[],selected:1,inputEnabled:!1},boost:{useGPUTranslations:!0,seriesThreshold:5},scrollbar:{enabled:!1},exporting:{enabled:!1},credits:{enabled:!1},series:c.data})};Zt.on("onFormData",A=>{console.log("打印11111:",A)}),Zt.on("onMessage",A=>{console.log("初值1111",A,t.dataList),s.tTop=A.tTop!=""?A.tTop:null,s.tBottom=A.tBottom!=""?A.tBottom:null,m(),Wi(()=>{u()})});const _=ze([]),m=()=>{_.value=[];for(const p of t.dataList)if(s.tBottom==null&&s.tTop!=null){const g=p.data.find(w=>s.tTop<=w[1]);if(g!=null){var A={ids:g[4],times:Xt(g[0]),t:g[1]};_.value.push(A)}_.value.length!=0&&(i.value=!0)}else if(s.tBottom!=null&&s.tTop==null){const g=p.data.find(w=>s.tBottom>=w[1]);if(g!=null){var A={ids:g[4],times:Xt(g[0]),t:g[1]};_.value.push(A)}_.value.length!=0&&(i.value=!0)}else if(s.tBottom!=null&&s.tTop!=null){const g=p.data.find(w=>s.tBottom>=w[1]||s.tTop<=w[1]);if(g!=null){var A={ids:g[4],times:Xt(g[0]),t:g[1]};_.value.push(A)}_.value.length!=0&&(i.value=!0)}else i.value=!1};os(()=>{Zt.off("onMessage")}),ze(null);const L=Gt(()=>t.dataList.length!=0?j():""),j=()=>{let A=t.dataList,p=[];for(const N of A)for(let M=0;MN+M),w=Math.max(...p),D=Math.min(...p),E=(g/p.length).toFixed(1);return`最大值${w},最小值${D},平均值${E}`};return hr(()=>o.state.focuDatas,A=>{A!=null?c.chartOptions.zoomBool=!0:c.chartOptions.zoomBool=!1}),hr(()=>t.dataList,A=>{console.log("123456",A),c.data=A,Wi(()=>{console.log("89",c.chartOptions),u()})},{deep:!0,immediate:!1}),qe({xAxis:{type:"datetime"},time:{useUTC:!1},boost:{useGPUTranslations:!0},tooltip:{formatter:function(){var A=Xt(this.points[0].x)+"
";for(let p in this.points)A+=`
`+this.points[p].series.name+": "+this.points[p].y.toFixed(1)+"°C
";return A},shared:!1},yAxis:{opposite:!1,title:{},plotLines:[{color:"#FF1D00",dashStyle:"DashDot",value:s.hTop,width:2,label:{text:`上限(${s.hTop}Rh)`,align:"right"}},{color:"#FF1D00",dashStyle:"DashDot",value:s.hBottom,width:2,label:{text:`下限(${s.hBottom}Rh)`,align:"right"}}]},plotOptions:{series:{turboThreshold:0,marker:{enabled:!0,radius:3}}},legend:{enabled:!0},accessibility:{enabled:!1},rangeSelector:{buttons:[],selected:1,inputEnabled:!1},boost:{useGPUTranslations:!0,seriesThreshold:5},scrollbar:{enabled:!1},exporting:{enabled:!1},credits:{enabled:!1},chart:{zoomType:"x",panKey:"shift",events:{selection(A){A.xAxis&&(Zt.emit("onSelectionTime",A.xAxis),r("setTimeFun",A.xAxis))}}},series:[]}),(A,p)=>{const g=ls,w=wa,D=Qt;return Ve(),it("div",Rh,[He("input",{type:"text",onFocus:p[0]||(p[0]=(...E)=>A.focusFun&&A.focusFun(...E)),onBlur:p[1]||(p[1]=(...E)=>A.blurFun&&A.blurFun(...E))},null,32),Bh,He("div",Nh,wt(L.value),1),Te(D,{show:i.value,"onUpdate:show":p[3]||(p[3]=E=>i.value=E)},{default:ke(()=>[Te(w,{style:{width:"600px"},title:"超标数据"},{"header-extra":ke(()=>[He("div",{style:{cursor:"pointer"},onClick:p[2]||(p[2]=E=>i.value=!1)},"关闭")]),default:ke(()=>[Te(g,{bordered:!1,"single-line":!1},{default:ke(()=>[jh,He("tbody",null,[(Ve(!0),it(ft,null,Ti(_.value,(E,N)=>(Ve(),it("tr",{key:N},[He("td",null,wt(E.ids),1),He("td",null,wt(E.times),1),He("td",null,"当前温度:"+wt(E.t),1)]))),128))])]),_:1})]),_:1})]),_:1},8,["show"])])}}},Hh={style:{height:"100%"}},Wh=He("div",{id:"container",style:{"min-height":"500px"}},null,-1),zh={style:{"text-align":"center","margin-top":"20px"}},Gh=He("thead",null,[He("tr",null,[He("th",null,"编号"),He("th",null,"时间"),He("th",null,"备注")])],-1),Xh={__name:"highcharts-h",props:{dataList:{type:Array,default:()=>[]}},emits:["setTimeFun"],setup(e,{emit:r}){const t=e,a=kt(),i=qe({hBottom:null,hTop:null}),s=yi();Gt(()=>s.state.plotLineList);const o=qe({chartOptions:null,data:[]}),c=ze(!1),u=()=>{o.chartOptions=new po.stockChart("container",{chart:{zoomType:"x",events:{selection(A){console.log("框选",A),A.xAxis&&(Zt.emit("onSelectionTime",A.xAxis),r("setTimeFun",A.xAxis))}},panning:this,pinchType:"",panKey:"shift"},xAxis:{type:"datetime"},time:{useUTC:!1},boost:{useGPUTranslations:!0},tooltip:{formatter:function(){var A=Xt(this.points[0].x)+"
";for(let p in this.points)A+=`
`+this.points[p].series.name+": "+this.points[p].y.toFixed(1)+"Rh
";return A},shared:!1},yAxis:{opposite:!1,title:{},plotLines:[{color:"#FF1D00",dashStyle:"DashDot",value:i.hTop,width:2,label:{text:`上限(${i.hTop}Rh`,align:"right"}},{color:"#FF1D00",dashStyle:"DashDot",value:i.hBottom,width:2,label:{text:`下限(${i.hBottom}Rh`,align:"right"}}]},plotOptions:{series:{turboThreshold:0,marker:{enabled:!0,radius:3}}},legend:{enabled:!0},accessibility:{enabled:!1},rangeSelector:{buttons:[],selected:1,inputEnabled:!1},boost:{useGPUTranslations:!0,seriesThreshold:5},scrollbar:{enabled:!1},exporting:{enabled:!1},credits:{enabled:!1},series:o.data})};Zt.on("onFormData",A=>{console.log("打印11111:",A)}),Zt.on("onMessage",A=>{console.log("触发155"),i.hTop=A.hTop!=""?A.hTop:null,i.hBottom=A.hBottom!=""?A.hBottom:null,m(),Wi(()=>{u()})});const _=ze([]),m=()=>{_.value=[];for(const p of t.dataList)if(console.log("******",p),i.hBottom==null&&i.hTop!=null){const g=p.data.find(w=>i.hTop<=w[1]);if(g!=null){var A={ids:g[4],times:Xt(g[0]),t:g[1]};_.value.push(A)}console.log("设置了上限",_.value),_.value.length!=0&&(c.value=!0)}else if(i.hBottom!=null&&i.hTop==null){const g=p.data.find(w=>i.hBottom>=w[1]);if(g!=null){var A={ids:g[4],times:Xt(g[0]),t:g[1]};_.value.push(A)}_.value.length!=0&&(c.value=!0)}else if(i.hBottom!=null&&i.hTop!=null){const g=p.data.find(w=>i.hBottom>=w[1]||i.hTop<=w[1]);if(g!=null){var A={ids:g[4],times:Xt(g[0]),t:g[1]};_.value.push(A)}_.value.length!=0&&(c.value=!0),console.log("====",g)}else c.value=!1};os(()=>{Zt.off("onMessage")}),ze(null);const L=Gt(()=>t.dataList.length!=0?j():""),j=()=>{let A=t.dataList,p=[];for(const N of A)for(let M=0;MN+M),w=Math.max(...p),D=Math.min(...p),E=(g/p.length).toFixed(1);return`最大值${w},最小值${D},平均值${E}`};return hr(()=>s.state.focuDatas,A=>{A!=null?o.chartOptions.zoomBool=!0:o.chartOptions.zoomBool=!1}),hr(()=>t.dataList,A=>{o.data=A,Wi(()=>{u()})},{deep:!0,immediate:!1}),qe({xAxis:{type:"datetime"},time:{useUTC:!1},boost:{useGPUTranslations:!0},tooltip:{formatter:function(){var A=Xt(this.points[0].x)+"
";this.points.sort((p,g)=>g.y-p.y);for(let p in this.points)A+=`
`+this.points[p].series.name+": "+this.points[p].y.toFixed(1)+"Rh
";return A},shared:!1},yAxis:{opposite:!1,title:{},plotLines:[{color:"#FF1D00",dashStyle:"DashDot",value:i.hTop,width:2,label:{text:`上限(${i.hTop}Rh)`,align:"right"}},{color:"#FF1D00",dashStyle:"DashDot",value:i.hBottom,width:2,label:{text:`下限(${i.hBottom}Rh)`,align:"right"}}]},plotOptions:{series:{turboThreshold:0,marker:{enabled:!0,radius:3}}},legend:{enabled:!0},accessibility:{enabled:!1},rangeSelector:{buttons:[],selected:1,inputEnabled:!1},boost:{useGPUTranslations:!0,seriesThreshold:5},scrollbar:{enabled:!1},exporting:{enabled:!1},credits:{enabled:!1},chart:{zoomType:"x",panKey:"shift",events:{selection(A){A.xAxis&&(Zt.emit("onSelectionTime",A.xAxis),r("setTimeFun",A.xAxis))}}},series:[]}),(A,p)=>{const g=ls,w=wa,D=Qt;return Ve(),it("div",Hh,[He("input",{type:"text",onFocus:p[0]||(p[0]=(...E)=>A.focusFun&&A.focusFun(...E)),onBlur:p[1]||(p[1]=(...E)=>A.blurFun&&A.blurFun(...E))},null,32),Wh,He("div",zh,wt(L.value),1),Te(D,{show:c.value,"onUpdate:show":p[3]||(p[3]=E=>c.value=E)},{default:ke(()=>[Te(w,{style:{width:"600px"},title:"超标数据"},{"header-extra":ke(()=>[He("div",{style:{cursor:"pointer"},onClick:p[2]||(p[2]=E=>c.value=!1)},"关闭")]),default:ke(()=>[Te(g,{bordered:!1,"single-line":!1},{default:ke(()=>[Gh,He("tbody",null,[(Ve(!0),it(ft,null,Ti(_.value,(E,N)=>(Ve(),it("tr",{key:N},[He("td",null,wt(E.ids),1),He("td",null,wt(E.times),1),He("td",null,"当前湿度:"+wt(E.t),1)]))),128))])]),_:1})]),_:1})]),_:1},8,["show"])])}}},Vh={style:{height:"350px","overflow-y":"auto"}},Yh={style:{"margin-top":"20px"}},$h={__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,chechboxVal:[]}),s=kt(),o=g=>{a.value=g},c=()=>{Pc({page:1,page_z:999,T_task_id:t.task.T_task_id}).then(g=>{g.data.Code==200&&(i.chechboxVal=g.data.Data.List),console.log("111",g)})},u=async()=>{if(console.log("1",i.cities),i.cities==null||i.cities.length==0){s.error("请选择至少一项哦!");return}else{const g=Xt(new Date);let w=0;for(let D=0;D{m.T_id=w.T_id,m.T_sn=w.T_sn},j=()=>{_.value=!0,i.cities=null,c(),Object.keys(m).forEach(g=>m[g]=null)},A=async()=>{const g=await p(m);if(console.log("999",m),g){Object.keys(m).forEach(D=>m[D]+="");const{data:w}=await Gs({T_task_id:t.task.T_task_id,...m});w.Code===200&&(_.value=!1,s.success(w.Msg))}else{s.error("所有选项都为必填哦");return}},p=g=>new Promise(w=>{const D=Object.keys(g).every(E=>g[E]!=null);w(D)});return(g,w)=>{const D=At,E=Aa,N=dr,M=ei,b=ki,F=nr,P=ao,I=no,v=Ca,B=oo,T=so,S=Qt;return Ve(),it(ft,null,[Te(D,{type:"primary",onClick:j},{default:ke(()=>[Re("添加数据")]),_:1}),Te(S,{show:We(_),"onUpdate:show":w[7]||(w[7]=x=>Sa(_)?_.value=x:null),"show-icon":!1,preset:"dialog",title:"添加",style:{height:"550px"}},{default:ke(()=>[Te(T,{type:"line",animated:"","default-value":We(a),"on-update:value":o},{default:ke(()=>[Te(P,{name:"oasis",tab:"添加数据"},{default:ke(()=>[Te(F,{model:We(m),"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(N,{label:"测点",path:"T_id"},{default:ke(()=>[Te(E,{value:We(m).T_id,"onUpdate:value":[w[0]||(w[0]=x=>We(m).T_id=x),L],"label-field":"T_id","value-field":"T_id",options:e.classList},null,8,["value","options"])]),_:1}),Te(N,{label:"温度",path:"T_t"},{default:ke(()=>[Te(M,{value:We(m).T_t,"onUpdate:value":w[1]||(w[1]=x=>We(m).T_t=x)},{suffix:ke(()=>[Re(" ℃ ")]),_:1},8,["value"])]),_:1}),Te(N,{label:"湿度",path:"T_rh"},{default:ke(()=>[Te(M,{value:We(m).T_rh,"onUpdate:value":w[2]||(w[2]=x=>We(m).T_rh=x)},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),Te(N,{label:"时间",path:"T_time"},{default:ke(()=>[Te(b,{"formatted-value":We(m).T_time,"onUpdate:formattedValue":w[3]||(w[3]=x=>We(m).T_time=x),"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",clearable:"",class:"w-full"},null,8,["formatted-value"])]),_:1}),Te(N,null,{default:ke(()=>[Te(D,{type:"primary",style:{"margin-right":"20px"},onClick:A},{default:ke(()=>[Re(" 立即提交 ")]),_:1}),Te(D,{onClick:w[4]||(w[4]=x=>_.value=!1)},{default:ke(()=>[Re("取消")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),Te(P,{name:"jaychou",tab:"添加终端"},{default:ke(()=>[He("div",Vh,[Te(B,{value:We(i).cities,"onUpdate:value":w[5]||(w[5]=x=>We(i).cities=x)},{default:ke(()=>[Te(v,{style:{display:"flex","flex-direction":"column"}},{default:ke(()=>[(Ve(!0),it(ft,null,Ti(We(i).chechboxVal,(x,h)=>(Ve(),Et(I,{value:x,label:x.T_layout_no,key:x.Id},null,8,["value","label"]))),128))]),_:1})]),_:1},8,["value"])]),He("div",Yh,[Te(D,{type:"primary",style:{"margin-right":"20px"},onClick:u},{default:ke(()=>[Re(" 立即提交 ")]),_:1}),Te(D,{onClick:w[6]||(w[6]=x=>_.value=!1)},{default:ke(()=>[Re("取消")]),_:1})])]),_:1})]),_:1},8,["default-value"])]),_:1},8,["show"])],64)}}};/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var go=1252,Kh=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],hs={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},fs=function(e){Kh.indexOf(e)!=-1&&(go=hs[0]=e)};function qh(){fs(1252)}var mr=function(e){fs(e)};function xo(){mr(1200),qh()}function Ks(e){for(var r=[],t=0,a=e.length;t>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>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var Mi=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);return r==255&&t==254?Zh(e.slice(2)):r==254&&t==255?mo(e.slice(2)):r==65279?e.slice(1):e},aa=function(r){return String.fromCharCode(r)},qs=function(r){return String.fromCharCode(r)},Ir,Br="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Zs(e){for(var r="",t=0,a=0,i=0,s=0,o=0,c=0,u=0,_=0;_>2,a=e.charCodeAt(_++),o=(t&3)<<4|a>>4,i=e.charCodeAt(_++),c=(a&15)<<2|i>>6,u=i&63,isNaN(a)?c=u=64:isNaN(i)&&(u=64),r+=Br.charAt(s)+Br.charAt(o)+Br.charAt(c)+Br.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 _=0;_>4,r+=String.fromCharCode(t),c=Br.indexOf(e.charAt(_++)),a=(o&15)<<4|c>>2,c!==64&&(r+=String.fromCharCode(a)),u=Br.indexOf(e.charAt(_++)),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}(),ti=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 Ur(e){return Qe?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Js(e){return Qe?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var xr=function(r){return Qe?ti(r,"binary"):r.split("").map(function(t){return t.charCodeAt(0)&255})};function ri(e){if(Array.isArray(e))return e.map(function(a){return String.fromCharCode(a)}).join("");for(var r=[],t=0;t"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return ds(new Uint8Array(e));for(var r=new Array(e.length),t=0;t>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=Ur(65535),a=65530)}return r.push(i.slice(0,t)),Rr(r)}var Yt=/\u0000/g,Di=/[\u0001-\u0006]/g;function pi(e){for(var r="",t=e.length-1;t>=0;)r+=e.charAt(t--);return r}function vr(e,r){var t=""+e;return t.length>=r?t:ht("0",r-t.length)+t}function us(e,r){var t=""+e;return t.length>=r?t:ht(" ",r-t.length)+t}function ua(e,r){var t=""+e;return t.length>=r?t:t+ht(" ",r-t.length)}function Qh(e,r){var t=""+Math.round(e);return t.length>=r?t:ht("0",r-t.length)+t}function ef(e,r){var t=""+e;return t.length>=r?t:ht("0",r-t.length)+t}var Qs=Math.pow(2,32);function fi(e,r){if(e>Qs||e<-Qs)return Qh(e,r);var t=Math.round(e);return ef(t,r)}function pa(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 en=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],ja=[["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 tf(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"秒 "'},tn={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},rf={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 ga(e,r,t){for(var a=e<0?-1:1,i=e*a,s=0,o=1,c=0,u=1,_=0,m=0,L=Math.floor(i);_r&&(_>r?(m=u,c=s):(m=_,c=o)),!t)return[0,a*c,m];var j=Math.floor(a*c/m);return[j,a*c-j*m,m]}function Yr(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=cf(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),af=vo.getTime(),sf=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>=sf&&(t+=24*60*60*1e3),(t-(af+(e.getTimezoneOffset()-vo.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function ps(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function nf(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function of(e){var r=e<0?12:11,t=ps(e.toFixed(12));return t.length<=r||(t=e.toPrecision(10),t.length<=r)?t:e.toExponential(5)}function lf(e){var r=ps(e.toFixed(11));return r.length>(e<0?12:11)||r==="0"||r==="-0"?e.toPrecision(6):r}function zi(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=of(e):r===10?t=e.toFixed(10).substr(0,12):t=lf(e),ps(nf(t.toUpperCase()))}function qr(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):zi(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return fr(14,yo(e,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+e)}function cf(e,r){r[0]-=581;var t=e.getDay();return e<60&&(t=(t+6)%7),t}function hf(e,r,t,a){var i="",s=0,o=0,c=t.y,u,_=0;switch(e){case 98:c=t.y+543;case 121:switch(r.length){case 1:case 2:u=c%100,_=2;break;default:u=c%1e4,_=4;break}break;case 109:switch(r.length){case 1:case 2:u=t.m,_=r.length;break;case 3:return ja[t.m-1][1];case 5:return ja[t.m-1][0];default:return ja[t.m-1][2]}break;case 100:switch(r.length){case 1:case 2:u=t.d,_=r.length;break;case 3:return en[t.q][0];default:return en[t.q][1]}break;case 104:switch(r.length){case 1:case 2:u=1+(t.H+11)%12,_=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:u=t.H,_=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:u=t.M,_=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")?vr(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=vr(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}_=r.length===3?1:2;break;case 101:u=c,_=1;break}var m=_>0?vr(u,_):"";return m}function Nr(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 ff(e,r,t){var a=r.replace(To,""),i=r.length-a.length;return Er(e,a,t*Math.pow(10,2*i))+ht("%",i)}function df(e,r,t){for(var a=r.length-1;r.charCodeAt(a-1)===44;)--a;return Er(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,_,m){return u+_+m.substr(0,(i+s)%i)+"."+m.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 uf(e,r,t){var a=parseInt(e[4],10),i=Math.round(r*a),s=Math.floor(i/a),o=i-s*a,c=a;return t+(s===0?"":""+s)+" "+(o===0?ht(" ",e[1].length+1+e[4].length):us(o,e[1].length)+e[2]+"/"+e[3]+vr(c,e[4].length))}function pf(e,r,t){return t+(r===0?"":""+r)+ht(" ",e[1].length+2+e[4].length)}var _o=/^#*0*\.([0#]+)/,wo=/\).*[0#]/,So=/\(###\) ###\\?-####/;function Wt(e){for(var r="",t,a=0;a!=e.length;++a)switch(t=e.charCodeAt(a)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function rn(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function an(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 gf(e,r){return r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length?1:0}function xf(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function lr(e,r,t){if(e.charCodeAt(0)===40&&!r.match(wo)){var a=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?lr("n",a,t):"("+lr("n",a,-t)+")"}if(r.charCodeAt(r.length-1)===44)return df(e,r,t);if(r.indexOf("%")!==-1)return ff(e,r,t);if(r.indexOf("E")!==-1)return ko(r,t);if(r.charCodeAt(0)===36)return"$"+lr(e,r.substr(r.charAt(1)==" "?2:1),t);var i,s,o,c,u=Math.abs(t),_=t<0?"-":"";if(r.match(/^00+$/))return _+fi(u,r.length);if(r.match(/^[#?]+$/))return i=fi(t,0),i==="0"&&(i=""),i.length>r.length?i:Wt(r.substr(0,r.length-i.length))+i;if(s=r.match(bo))return uf(s,u,_);if(r.match(/^#+0+$/))return _+fi(u,r.length-r.indexOf("0"));if(s=r.match(_o))return i=rn(t,s[1].length).replace(/^([^\.]+)$/,"$1."+Wt(s[1])).replace(/\.$/,"."+Wt(s[1])).replace(/\.(\d*)$/,function(p,g){return"."+g+ht("0",Wt(s[1]).length-g.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),s=r.match(/^(0*)\.(#*)$/))return _+rn(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 _+Nr(fi(u,0));if(s=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+lr(e,r,-t):Nr(""+(Math.floor(t)+gf(t,s[1].length)))+"."+vr(an(t,s[1].length),s[1].length);if(s=r.match(/^#,#*,#0/))return lr(e,r.replace(/^#,#*,/,""),t);if(s=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=pi(lr(e,r.replace(/[\\-]/g,""),t)),o=0,pi(pi(r.replace(/\\/g,"")).replace(/[0#]/g,function(p){return o=0?kr("n",a,t):"("+kr("n",a,-t)+")"}if(r.charCodeAt(r.length-1)===44)return mf(e,r,t);if(r.indexOf("%")!==-1)return vf(e,r,t);if(r.indexOf("E")!==-1)return Ao(r,t);if(r.charCodeAt(0)===36)return"$"+kr(e,r.substr(r.charAt(1)==" "?2:1),t);var i,s,o,c,u=Math.abs(t),_=t<0?"-":"";if(r.match(/^00+$/))return _+vr(u,r.length);if(r.match(/^[#?]+$/))return i=""+t,t===0&&(i=""),i.length>r.length?i:Wt(r.substr(0,r.length-i.length))+i;if(s=r.match(bo))return pf(s,u,_);if(r.match(/^#+0+$/))return _+vr(u,r.length-r.indexOf("0"));if(s=r.match(_o))return i=(""+t).replace(/^([^\.]+)$/,"$1."+Wt(s[1])).replace(/\.$/,"."+Wt(s[1])),i=i.replace(/\.(\d*)$/,function(p,g){return"."+g+ht("0",Wt(s[1]).length-g.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),s=r.match(/^(0*)\.(#*)$/))return _+(""+u).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=r.match(/^#{1,3},##0(\.?)$/))return _+Nr(""+u);if(s=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+kr(e,r,-t):Nr(""+t)+"."+ht("0",s[1].length);if(s=r.match(/^#,#*,#0/))return kr(e,r.replace(/^#,#*,/,""),t);if(s=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=pi(kr(e,r.replace(/[\\-]/g,""),t)),o=0,pi(pi(r.replace(/\\/g,"")).replace(/[0#]/g,function(p){return o-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-1;);break;case" ":++r;break;default:++r;break}return!1}function Tf(e,r,t,a){for(var i=[],s="",o=0,c="",u="t",_,m,L,j="H";o=12?"P":"A"),g.t="T",j="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(_!=null&&(g.v=_.H>=12?"PM":"AM"),g.t="T",o+=5,j="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(_!=null&&(g.v=_.H>=12?"下午":"上午"),g.t="T",o+=5,j="h"):(g.t="t",++o),_==null&&g.t==="T")return"";i[i.length]=g,u=c;break;case"[":for(s=c;e.charAt(o++)!=="]"&&o-1&&(s=(s.match(/\$([^-\[\]]*)/)||[])[1]||"$",bi(e)||(i[i.length]={t:"t",v:s}));break;case".":if(_!=null){for(s=c;++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-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 w=0,D=0,E;for(o=i.length-1,u="t";o>=0;--o)switch(i[o].t){case"h":case"H":i[o].t=j,u="h",w<1&&(w=1);break;case"s":(E=i[o].v.match(/\.0+$/))&&(D=Math.max(D,E[0].length-1)),w<3&&(w=3);case"d":case"y":case"M":case"e":u=i[o].t;break;case"m":u==="s"&&(i[o].t="M",w<2&&(w=2));break;case"X":break;case"Z":w<1&&i[o].v.match(/[Hh]/)&&(w=1),w<2&&i[o].v.match(/[Mm]/)&&(w=2),w<3&&i[o].v.match(/[Ss]/)&&(w=3)}switch(w){case 0:break;case 1:_.u>=.5&&(_.u=0,++_.S),_.S>=60&&(_.S=0,++_.M),_.M>=60&&(_.M=0,++_.H);break;case 2:_.u>=.5&&(_.u=0,++_.S),_.S>=60&&(_.S=0,++_.M);break}var N="",M;for(o=0;o0){N.charCodeAt(0)==40?(F=r<0&&N.charCodeAt(0)===45?-r:r,P=Er("n",N,F)):(F=r<0&&a>1?-r:r,P=Er("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 I=i.length;for(o=0;o-1){I=o;break}var v=i.length;if(I===i.length&&P.indexOf("E")===-1){for(o=i.length-1;o>=0;--o)i[o]==null||"n?".indexOf(i[o].t)===-1||(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",v=o);M>=0&&v=0;--o)if(!(i[o]==null||"n?".indexOf(i[o].t)===-1)){for(m=i[o].v.indexOf(".")>-1&&o===I?i[o].v.indexOf(".")-1:i[o].v.length-1,b=i[o].v.substr(m+1);m>=0;--m)M>=0&&(i[o].v.charAt(m)==="0"||i[o].v.charAt(m)==="#")&&(b=P.charAt(M--)+b);i[o].v=b,i[o].t="t",v=o}for(M>=0&&v-1&&o===I?i[o].v.indexOf(".")+1:0,b=i[o].v.substr(0,m);m-1&&(F=a>1&&r<0&&o>0&&i[o-1].v==="-"?-r:r,i[o].v=Er(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 sn=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function nn(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":if(e!=t)return!0;break;case">=":if(e>=t)return!0;break;case"<=":if(e<=t)return!0;break}return!1}function kf(e,r){var t=yf(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(sn),c=t[1].match(sn);return nn(r,o)?[a,t[0]]:nn(r,c)?[a,t[1]]:[a,t[o!=null&&c!=null?2:1]]}return[a,s]}function fr(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[tn[e]]||Ke[tn[e]]),a==null&&(a=rf[e]||"General");break}if(pa(a,0))return qr(r,t);r instanceof Date&&(r=yo(r,t.date1904));var i=kf(a,r);if(pa(i[1]))return qr(r,t);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return Tf(i[1],r,t,i[0])}function $r(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=tf()}var bf={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 _f(e){var r=typeof e=="number"?Ke[e]:e;return r=r.replace(Mo,"(\\d+)"),new RegExp("^"+r+"$")}function wf(e,r,t){var a=-1,i=-1,s=-1,o=-1,c=-1,u=-1;(r.match(Mo)||[]).forEach(function(L,j){var A=parseInt(t[j+1],10);switch(L.toLowerCase().charAt(0)){case"y":a=A;break;case"d":s=A;break;case"h":o=A;break;case"s":u=A;break;case"m":o>=0?c=A:i=A;break}}),u>=0&&c==-1&&i>=0&&(c=i,i=-1);var _=(""+(a>=0?a:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);_.length==7&&(_="0"+_),_.length==8&&(_="20"+_);var m=("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?_:a==-1&&i==-1&&s==-1?m:_+"T"+m}var Sf=function(){var e={};e.version="1.2.0";function r(){for(var P=0,I=new Array(256),v=0;v!=256;++v)P=v,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,I[v]=P;return typeof Int32Array<"u"?new Int32Array(I):I}var t=r();function a(P){var I=0,v=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(v=P[B],I=256+B;I<4096;I+=256)v=T[I]=v>>>8^P[v&255];var S=[];for(B=1;B!=16;++B)S[B-1]=typeof Int32Array<"u"?T.subarray(B*256,B*256+256):T.slice(B*256,B*256+256);return S}var i=a(t),s=i[0],o=i[1],c=i[2],u=i[3],_=i[4],m=i[5],L=i[6],j=i[7],A=i[8],p=i[9],g=i[10],w=i[11],D=i[12],E=i[13],N=i[14];function M(P,I){for(var v=I^-1,B=0,T=P.length;B>>8^t[(v^P.charCodeAt(B++))&255];return~v}function b(P,I){for(var v=I^-1,B=P.length-15,T=0;T>8&255]^D[P[T++]^v>>16&255]^w[P[T++]^v>>>24]^g[P[T++]]^p[P[T++]]^A[P[T++]]^j[P[T++]]^L[P[T++]]^m[P[T++]]^_[P[T++]]^u[P[T++]]^c[P[T++]]^o[P[T++]]^s[P[T++]]^t[P[T++]];for(B+=15;T>>8^t[(v^P[T++])&255];return~v}function F(P,I){for(var v=I^-1,B=0,T=P.length,S=0,x=0;B>>8^t[(v^S)&255]:S<2048?(v=v>>>8^t[(v^(192|S>>6&31))&255],v=v>>>8^t[(v^(128|S&63))&255]):S>=55296&&S<57344?(S=(S&1023)+64,x=P.charCodeAt(B++)&1023,v=v>>>8^t[(v^(240|S>>8&7))&255],v=v>>>8^t[(v^(128|S>>2&63))&255],v=v>>>8^t[(v^(128|x>>6&15|(S&3)<<4))&255],v=v>>>8^t[(v^(128|x&63))&255]):(v=v>>>8^t[(v^(224|S>>12&15))&255],v=v>>>8^t[(v^(128|S>>6&63))&255],v=v>>>8^t[(v^(128|S&63))&255]);return~v}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(ce,pe){for(var de=ce.split("/"),ue=pe.split("/"),xe=0,me=0,Se=Math.min(de.length,ue.length);xe>>1,ce.write_shift(2,de);var ue=pe.getFullYear()-1980;ue=ue<<4|pe.getMonth()+1,ue=ue<<5|pe.getDate(),ce.write_shift(2,ue)}function o(ce){var pe=ce.read_shift(2)&65535,de=ce.read_shift(2)&65535,ue=new Date,xe=de&31;de>>>=5;var me=de&15;de>>>=4,ue.setMilliseconds(0),ue.setFullYear(de+1980),ue.setMonth(me-1),ue.setDate(xe);var Se=pe&31;pe>>>=5;var Me=pe&63;return pe>>>=6,ue.setHours(pe),ue.setMinutes(Me),ue.setSeconds(Se<<1),ue}function c(ce){Ct(ce,0);for(var pe={},de=0;ce.l<=ce.length-4;){var ue=ce.read_shift(2),xe=ce.read_shift(2),me=ce.l+xe,Se={};switch(ue){case 21589:de=ce.read_shift(1),de&1&&(Se.mtime=ce.read_shift(4)),xe>5&&(de&2&&(Se.atime=ce.read_shift(4)),de&4&&(Se.ctime=ce.read_shift(4))),Se.mtime&&(Se.mt=new Date(Se.mtime*1e3));break}ce.l=me,pe[ue]=Se}return pe}var u;function _(){return u||(u={})}function m(ce,pe){if(ce[0]==80&&ce[1]==75)return at(ce,pe);if((ce[0]|32)==109&&(ce[1]|32)==105)return li(ce,pe);if(ce.length<512)throw new Error("CFB file size "+ce.length+" < 512");var de=3,ue=512,xe=0,me=0,Se=0,Me=0,we=0,Ae=[],Ee=ce.slice(0,512);Ct(Ee,0);var Oe=L(Ee);switch(de=Oe[0],de){case 3:ue=512;break;case 4:ue=4096;break;case 0:if(Oe[1]==0)return at(ce,pe);default:throw new Error("Major Version: Expected 3 or 4 saw "+de)}ue!==512&&(Ee=ce.slice(0,ue),Ct(Ee,28));var Ie=ce.slice(0,ue);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"),me=Ee.read_shift(4,"i");for(var Fe=-1,Ne=0;Ne<109&&(Fe=Ee.read_shift(4,"i"),!(Fe<0));++Ne)Ae[Ne]=Fe;var $e=A(ce,ue);w(we,me,$e,ue,Ae);var lt=E($e,Se,Ae,ue);lt[Se].name="!Directory",xe>0&&Me!==x&&(lt[Me].name="!MiniFAT"),lt[Ae[0]].name="!FAT",lt.fat_addrs=Ae,lt.ssz=ue;var ct={},Ot=[],Si=[],Ai=[];N(Se,lt,$e,Ot,xe,ct,Si,Me),p(Si,Ai,Ot),Ot.shift();var Ei={FileIndex:Si,FullPaths:Ai};return pe&&pe.raw&&(Ei.raw={header:Ie,sectors:$e}),Ei}function L(ce){if(ce[ce.l]==80&&ce[ce.l+1]==75)return[0,0];ce.chk(h,"Header Signature: "),ce.l+=16;var pe=ce.read_shift(2,"u");return[ce.read_shift(2,"u"),pe]}function j(ce,pe){var de=9;switch(ce.l+=2,de=ce.read_shift(2)){case 9:if(pe!=3)throw new Error("Sector Shift: Expected 9 saw "+de);break;case 12:if(pe!=4)throw new Error("Sector Shift: Expected 12 saw "+de);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+de)}ce.chk("0600","Mini Sector Shift: "),ce.chk("000000000000","Reserved: ")}function A(ce,pe){for(var de=Math.ceil(ce.length/pe)-1,ue=[],xe=1;xe0&&Se>=0;)me.push(pe.slice(Se*S,Se*S+S)),xe-=S,Se=Vr(de,Se*4);return me.length===0?vt(0):Rr(me).slice(0,ce.size)}function w(ce,pe,de,ue,xe){var me=x;if(ce===x){if(pe!==0)throw new Error("DIFAT chain shorter than expected")}else if(ce!==-1){var Se=de[ce],Me=(ue>>>2)-1;if(!Se)return;for(var we=0;we=0;){xe[we]=!0,me[me.length]=we,Se.push(ce[we]);var Ee=de[Math.floor(we*4/ue)];if(Ae=we*4&Me,ue<4+Ae)throw new Error("FAT boundary crossed: "+we+" 4 "+ue);if(!ce[Ee])break;we=Vr(ce[Ee],Ae)}return{nodes:me,data:xn([Se])}}function E(ce,pe,de,ue){var xe=ce.length,me=[],Se=[],Me=[],we=[],Ae=ue-1,Ee=0,Oe=0,Ie=0,je=0;for(Ee=0;Ee=xe&&(Ie-=xe),!Se[Ie]){we=[];var Fe=[];for(Oe=Ie;Oe>=0;){Fe[Oe]=!0,Se[Oe]=!0,Me[Me.length]=Oe,we.push(ce[Oe]);var Ne=de[Math.floor(Oe*4/ue)];if(je=Oe*4&Ae,ue<4+je)throw new Error("FAT boundary crossed: "+Oe+" 4 "+ue);if(!ce[Ne]||(Oe=Vr(ce[Ne],je),Fe[Oe]))break}me[Ie]={nodes:Me,data:xn([we])}}return me}function N(ce,pe,de,ue,xe,me,Se,Me){for(var we=0,Ae=ue.length?2:0,Ee=pe[ce].data,Oe=0,Ie=0,je;Oe0&&we!==x&&(pe[we].name="!StreamData")):Ne.size>=4096?(Ne.storage="fat",pe[Ne.start]===void 0&&(pe[Ne.start]=D(de,Ne.start,pe.fat_addrs,pe.ssz)),pe[Ne.start].name=Ne.name,Ne.content=pe[Ne.start].data.slice(0,Ne.size)):(Ne.storage="minifat",Ne.size<0?Ne.size=0:we!==x&&Ne.start!==x&&pe[we]&&(Ne.content=g(Ne,pe[we].data,(pe[Me]||{}).data))),Ne.content&&Ct(Ne.content,0),me[je]=Ne,Se.push(Ne)}}function M(ce,pe){return new Date((rr(ce,pe+4)/1e7*Math.pow(2,32)+rr(ce,pe)/1e7-11644473600)*1e3)}function b(ce,pe){return _(),m(u.readFileSync(ce),pe)}function F(ce,pe){var de=pe&&pe.type;switch(de||Qe&&Buffer.isBuffer(ce)&&(de="buffer"),de||"base64"){case"file":return b(ce,pe);case"base64":return m(xr(ar(ce)),pe);case"binary":return m(xr(ce),pe)}return m(ce,pe)}function P(ce,pe){var de=pe||{},ue=de.root||"Root Entry";if(ce.FullPaths||(ce.FullPaths=[]),ce.FileIndex||(ce.FileIndex=[]),ce.FullPaths.length!==ce.FileIndex.length)throw new Error("inconsistent CFB structure");ce.FullPaths.length===0&&(ce.FullPaths[0]=ue+"/",ce.FileIndex[0]={name:ue,type:5}),de.CLSID&&(ce.FileIndex[0].clsid=de.CLSID),I(ce)}function I(ce){var pe="Sh33tJ5";if(!et.find(ce,"/"+pe)){var de=vt(4);de[0]=55,de[1]=de[3]=50,de[2]=54,ce.FileIndex.push({name:pe,type:2,content:de,size:4,L:69,R:69,C:69}),ce.FullPaths.push(ce.FullPaths[0]+pe),v(ce)}}function v(ce,pe){P(ce);for(var de=!1,ue=!1,xe=ce.FullPaths.length-1;xe>=0;--xe){var me=ce.FileIndex[xe];switch(me.type){case 0:ue?de=!0:(ce.FileIndex.pop(),ce.FullPaths.pop());break;case 1:case 2:case 5:ue=!0,isNaN(me.R*me.L*me.C)&&(de=!0),me.R>-1&&me.L>-1&&me.R==me.L&&(de=!0);break;default:de=!0;break}}if(!(!de&&!pe)){var Se=new Date(1987,1,19),Me=0,we=Object.create?Object.create(null):{},Ae=[];for(xe=0;xe1?1:-1,Oe.size=0,Oe.type=5;else if(Ie.slice(-1)=="/"){for(Me=xe+1;Me=Ae.length?-1:Me,Me=xe+1;Me=Ae.length?-1:Me,Oe.type=1}else a(ce.FullPaths[xe+1]||"")==a(Ie)&&(Oe.R=xe+1),Oe.type=2}}}function B(ce,pe){var de=pe||{};if(de.fileType=="mad")return ci(ce,de);switch(v(ce),de.fileType){case"zip":return er(ce,de)}var ue=function(je){for(var Fe=0,Ne=0,$e=0;$e0&&(ct<4096?Fe+=ct+63>>6:Ne+=ct+511>>9)}}for(var Ot=je.FullPaths.length+3>>2,Si=Fe+7>>3,Ai=Fe+127>>7,Ei=Si+Ne+Ot+Ai,Gr=Ei+127>>7,Ia=Gr<=109?0:Math.ceil((Gr-109)/127);Ei+Gr+Ia+127>>7>Gr;)Ia=++Gr<=109?0:Math.ceil((Gr-109)/127);var Sr=[1,Ia,Gr,Ai,Ot,Ne,Fe,0];return je.FileIndex[0].size=Fe<<6,Sr[7]=(je.FileIndex[0].start=Sr[0]+Sr[1]+Sr[2]+Sr[3]+Sr[4]+Sr[5])+(Sr[6]+7>>3),Sr}(ce),xe=vt(ue[7]<<9),me=0,Se=0;{for(me=0;me<8;++me)xe.write_shift(1,n[me]);for(me=0;me<8;++me)xe.write_shift(2,0);for(xe.write_shift(2,62),xe.write_shift(2,3),xe.write_shift(2,65534),xe.write_shift(2,9),xe.write_shift(2,6),me=0;me<3;++me)xe.write_shift(2,0);for(xe.write_shift(4,0),xe.write_shift(4,ue[2]),xe.write_shift(4,ue[0]+ue[1]+ue[2]+ue[3]-1),xe.write_shift(4,0),xe.write_shift(4,4096),xe.write_shift(4,ue[3]?ue[0]+ue[1]+ue[2]-1:x),xe.write_shift(4,ue[3]),xe.write_shift(-4,ue[1]?ue[0]-1:x),xe.write_shift(4,ue[1]),me=0;me<109;++me)xe.write_shift(-4,me>9)));for(Me(ue[6]+7>>3);xe.l&511;)xe.write_shift(-4,f.ENDOFCHAIN);for(Se=me=0,we=0;we=4096)&&(Ee.start=Se,Me(Ae+63>>6)));for(;xe.l&511;)xe.write_shift(-4,f.ENDOFCHAIN);for(me=0;me=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;we0&&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>16|pe>>8|pe)&255}for(var J=typeof Uint8Array<"u",Y=J?new Uint8Array(256):[],ee=0;ee<256;++ee)Y[ee]=q(ee);function C(ce,pe){var de=Y[ce&255];return pe<=8?de>>>8-pe:(de=de<<8|Y[ce>>8&255],pe<=16?de>>>16-pe:(de=de<<8|Y[ce>>16&255],de>>>24-pe))}function V(ce,pe){var de=pe&7,ue=pe>>>3;return(ce[ue]|(de<=6?0:ce[ue+1]<<8))>>>de&3}function X(ce,pe){var de=pe&7,ue=pe>>>3;return(ce[ue]|(de<=5?0:ce[ue+1]<<8))>>>de&7}function Q(ce,pe){var de=pe&7,ue=pe>>>3;return(ce[ue]|(de<=4?0:ce[ue+1]<<8))>>>de&15}function se(ce,pe){var de=pe&7,ue=pe>>>3;return(ce[ue]|(de<=3?0:ce[ue+1]<<8))>>>de&31}function K(ce,pe){var de=pe&7,ue=pe>>>3;return(ce[ue]|(de<=1?0:ce[ue+1]<<8))>>>de&127}function ne(ce,pe,de){var ue=pe&7,xe=pe>>>3,me=(1<>>ue;return de<8-ue||(Se|=ce[xe+1]<<8-ue,de<16-ue)||(Se|=ce[xe+2]<<16-ue,de<24-ue)||(Se|=ce[xe+3]<<24-ue),Se&me}function oe(ce,pe,de){var ue=pe&7,xe=pe>>>3;return ue<=5?ce[xe]|=(de&7)<>8-ue),pe+3}function le(ce,pe,de){var ue=pe&7,xe=pe>>>3;return de=(de&1)<>>3;return de<<=ue,ce[xe]|=de&255,de>>>=8,ce[xe+1]=de,pe+8}function te(ce,pe,de){var ue=pe&7,xe=pe>>>3;return de<<=ue,ce[xe]|=de&255,de>>>=8,ce[xe+1]=de&255,ce[xe+2]=de>>>8,pe+16}function re(ce,pe){var de=ce.length,ue=2*de>pe?2*de:pe+5,xe=0;if(de>=pe)return ce;if(Qe){var me=Js(ue);if(ce.copy)ce.copy(me);else for(;xe>ue-Oe,Se=(1<=0;--Se)pe[Me|Se<0;)we[we.l++]=Me[Ae++]}return we.l}function Se(Me,we){for(var Ae=0,Ee=0,Oe=J?new Uint16Array(32768):[];Ee0;)we[we.l++]=Me[Ee++];Ae=we.l*8;continue}Ae=oe(we,Ae,+(Ee+Ie==Me.length)+2);for(var je=0;Ie-- >0;){var Fe=Me[Ee];je=(je<<5^Fe)&32767;var Ne=-1,$e=0;if((Ne=Oe[je])&&(Ne|=Ee&-32768,Ne>Ee&&(Ne-=32768),Ne2){Fe=xe[$e],Fe<=22?Ae=ye(we,Ae,Y[Fe+1]>>1)-1:(ye(we,Ae,3),Ae+=5,ye(we,Ae,Y[Fe-23]>>5),Ae+=3);var lt=Fe<8?0:Fe-4>>2;lt>0&&(te(we,Ae,$e-d[Fe]),Ae+=lt),Fe=pe[Ee-Ne],Ae=ye(we,Ae,Y[Fe]>>3),Ae-=3;var ct=Fe<4?0:Fe-2>>1;ct>0&&(te(we,Ae,Ee-Ne-R[Fe]),Ae+=ct);for(var Ot=0;Ot<$e;++Ot)Oe[je]=Ee&32767,je=(je<<5^Me[Ee])&32767,++Ee;Ie-=$e-1}else Fe<=143?Fe=Fe+48:Ae=le(we,Ae,1),Ae=ye(we,Ae,Y[Fe]),Oe[je]=Ee&32767,++Ee}Ae=ye(we,Ae,0)-1}return we.l=(Ae+7)/8|0,we.l}return function(we,Ae){return we.length<8?me(we,Ae):Se(we,Ae)}}();function ge(ce){var pe=vt(50+Math.floor(ce.length*1.1)),de=ve(ce,pe);return pe.slice(0,de)}var _e=J?new Uint16Array(32768):Z(32768),be=J?new Uint16Array(32768):Z(32768),Ce=J?new Uint16Array(128):Z(128),De=1,Be=1;function Le(ce,pe){var de=se(ce,pe)+257;pe+=5;var ue=se(ce,pe)+1;pe+=5;var xe=Q(ce,pe)+4;pe+=4;for(var me=0,Se=J?new Uint8Array(19):Z(19),Me=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],we=1,Ae=J?new Uint8Array(8):Z(8),Ee=J?new Uint8Array(8):Z(8),Oe=Se.length,Ie=0;Ie>8-Fe;for(var Ne=(1<<7-Fe)-1;Ne>=0;--Ne)Ce[je|Ne<>>=3){case 16:for(me=3+V(ce,pe),pe+=2,je=$e[$e.length-1];me-- >0;)$e.push(je);break;case 17:for(me=3+X(ce,pe),pe+=3;me-- >0;)$e.push(0);break;case 18:for(me=11+K(ce,pe),pe+=7;me-- >0;)$e.push(0);break;default:$e.push(je),we>>0,Me=0,we=0;!(ue&1);){if(ue=X(ce,de),de+=3,ue>>>1)ue>>1==1?(Me=9,we=5):(de=Le(ce,de),Me=De,we=Be);else{de&7&&(de+=8-(de&7));var Ae=ce[de>>>3]|ce[(de>>>3)+1]<<8;if(de+=32,Ae>0)for(!pe&&Se0;)xe[me++]=ce[de>>>3],de+=8;continue}for(;;){!pe&&Se>>1==1?ae[Ee]:_e[Ee];if(de+=Oe&15,Oe>>>=4,!(Oe>>>8&255))xe[me++]=Oe;else{if(Oe==256)break;Oe-=257;var Ie=Oe<8?0:Oe-4>>2;Ie>5&&(Ie=0);var je=me+d[Oe];Ie>0&&(je+=ne(ce,de,Ie),de+=Ie),Ee=ne(ce,de,we),Oe=ue>>>1==1?he[Ee]:be[Ee],de+=Oe&15,Oe>>>=4;var Fe=Oe<4?0:Oe-2>>1,Ne=R[Oe];for(Fe>0&&(Ne+=ne(ce,de,Fe),de+=Fe),!pe&&Se>>3]:[xe.slice(0,me),de+7>>>3]}function Ue(ce,pe){var de=ce.slice(ce.l||0),ue=Pe(de,pe);return ce.l+=ue[1],ue[0]}function Je(ce,pe){if(ce)typeof console<"u"&&console.error(pe);else throw new Error(pe)}function at(ce,pe){var de=ce;Ct(de,0);var ue=[],xe=[],me={FileIndex:ue,FullPaths:xe};P(me,{root:pe.root});for(var Se=de.length-4;(de[Se]!=80||de[Se+1]!=75||de[Se+2]!=5||de[Se+3]!=6)&&Se>=0;)--Se;de.l=Se+4,de.l+=4;var Me=de.read_shift(2);de.l+=6;var we=de.read_shift(4);for(de.l=we,Se=0;Se0&&(de=de.slice(0,de.length-1),de=de.slice(0,de.lastIndexOf("/")+1),me.slice(0,de.length)!=de););var Se=(ue[1]||"").match(/boundary="(.*?)"/);if(!Se)throw new Error("MAD cannot find boundary");var Me="--"+(Se[1]||""),we=[],Ae=[],Ee={FileIndex:we,FullPaths:Ae};P(Ee);var Oe,Ie=0;for(xe=0;xe=32&&je<128&&++Oe;var Ne=Oe>=Ie*4/5;xe.push(ue),xe.push("Content-Location: "+(de.root||"file:///C:/SheetJS/")+Se),xe.push("Content-Transfer-Encoding: "+(Ne?"quoted-printable":"base64")),xe.push("Content-Type: "+Kt(Me,Se)),xe.push(""),xe.push(Ne?Ut(Ee):bt(Ee))}return xe.push(ue+`--\r `),xe.join(`\r `)}function La(ce){var pe={};return P(pe,ce),pe}function Pr(ce,pe,de,ue){var xe=ue&&ue.unsafe;xe||P(ce);var me=!xe&&et.find(ce,pe);if(!me){var Se=ce.FullPaths[0];pe.slice(0,Se.length)==Se?Se=pe:(Se.slice(-1)!="/"&&(Se+="/"),Se=(Se+pe).replace("//","/")),me={name:i(pe),type:2},ce.FileIndex.push(me),ce.FullPaths.push(Se),xe||et.utils.cfb_gc(ce)}return me.content=de,me.size=de?de.length:0,ue&&(ue.CLSID&&(me.clsid=ue.CLSID),ue.mt&&(me.mt=ue.mt),ue.ct&&(me.ct=ue.ct)),me}function ql(ce,pe){P(ce);var de=et.find(ce,pe);if(de){for(var ue=0;ue3&&(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 ln=new Date("2017-02-19T19:06:09.000Z"),Oo=isNaN(ln.getFullYear())?new Date("2/19/17"):ln,Mf=Oo.getFullYear()==2017;function St(e,r){var t=new Date(e);if(Mf)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 Zr(e,r){if(Qe&&Buffer.isBuffer(e)){if(r){if(e[0]==255&&e[1]==254)return Pi(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Pi(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 Pi(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Pi(new TextDecoder("utf-16be").decode(e.slice(2)))}var t={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(s){return t[s]||s})}catch{}for(var a=[],i=0;i!=e.length;++i)a.push(String.fromCharCode(e[i]));return a.join("")}function Mt(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=Mt(e[t]));return r}function ht(e,r){for(var t="";t.length3&&Df.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 Of=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\r `,Lf=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,hn=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,If=/<[^>]*>/g,jt=Ro.match(hn)?hn:If,Rf=/<\w*:/,Bf=/<(\/?)\w+:/;function Xe(e,r,t){for(var a={},i=0,s=0;i!==e.length&&!((s=e.charCodeAt(i))===32||s===10||s===13);++i);if(r||(a[0]=e.slice(0,i)),i===e.length)return a;var o=e.match(Lf),c=0,u="",_=0,m="",L="",j=1;if(o)for(_=0;_!=o.length;++_){for(L=o[_],s=0;s!=L.length&&L.charCodeAt(s)!==61;++s);for(m=L.slice(0,s).trim();L.charCodeAt(s+1)==32;)++s;for(j=(i=L.charCodeAt(s+1))==34||i==39?1:0,u=L.slice(s+1+j,L.length-j),c=0;c!=m.length&&m.charCodeAt(c)!==58;++c);if(c===m.length)m.indexOf("_")>0&&(m=m.slice(0,m.indexOf("_"))),a[m]=u,t||(a[m.toLowerCase()]=u);else{var A=(c===5&&m.slice(0,5)==="xmlns"?"xmlns":"")+m.slice(c+1);if(a[A]&&m.slice(c-3,c)=="ext")continue;a[A]=u,t||(a[A.toLowerCase()]=u)}}return a}function _r(e){return e.replace(Bf,"<$1")}var Bo={""":'"',"'":"'",">":">","<":"<","&":"&"},Nf=gs(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("-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))}}(),jf=/[&<>'"]/g,Uf=/[\u0000-\u001f]/g;function ms(e){var r=e+"";return r.replace(jf,function(t){return Nf[t]}).replace(/\n/g,"
").replace(Uf,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}var fn=function(){var e=/&#(\d+);/g;function r(t,a){return String.fromCharCode(parseInt(a,10))}return function(a){return a.replace(e,r)}}();function nt(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Ua(e){for(var r="",t=0,a=0,i=0,s=0,o=0,c=0;t191&&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 dn(e){var r=Ur(2*e.length),t,a,i=1,s=0,o=0,c;for(a=0;a>>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 un(e){return ti(e,"binary").toString("utf8")}var sa="foo bar baz☃🍣",st=Qe&&(un(sa)==Ua(sa)&&un||dn(sa)==Ua(sa)&&dn)||Ua,Pi=Qe?function(e){return ti(e,"utf8").toString("binary")}:function(e){for(var r=[],t=0,a=0,i=0;t>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("")},Gi=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]*?)",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(/<[^>]*>/g,""),i=0;i([\\s\\S]*?)","g")}}(),Wf=/<\/?(?:vt:)?variant>/g,zf=/<(?:vt:)([^>]*)>([\s\S]*)"+r+""}function vs(e){if(Qe&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return st(ri(ds(e)));throw new Error("Bad input format: expected Buffer or string")}var Xi=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/mg,Yf={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"},$f=["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 Kf(e,r){for(var t=1-2*(e[r+7]>>>7),a=((e[r+7]&127)<<4)+(e[r+6]>>>4&15),i=e[r+6]&15,s=5;s>=0;--s)i=i*256+e[r+s];return a==2047?i==0?t*(1/0):NaN:(a==0?a=-1022:(a-=1023,i+=Math.pow(2,52)),t*Math.pow(2,a-52)*i)}function qf(e,r,t){var a=(r<0||1/r==-1/0?1:0)<<7,i=0,s=0,o=a?-r:r;isFinite(o)?o==0?i=s=0:(i=Math.floor(Math.log(o)/Math.LN2),s=o*Math.pow(2,52-i),i<=-1023&&(!isFinite(s)||s>4|a}var gn=function(e){for(var r=[],t=10240,a=0;a0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(r){return Buffer.isBuffer(r)?r:ti(r)})):gn(e)}:gn,mn=function(e,r,t){for(var a=[],i=r;i0?Ji(e,r+4,r+4+t-1):""},Ho=Uo,Wo=function(e,r){var t=rr(e,r);return t>0?Ji(e,r+4,r+4+t-1):""},zo=Wo,Go=function(e,r){var t=2*rr(e,r);return t>0?Ji(e,r+4,r+4+t-1):""},Xo=Go,Vo=function(r,t){var a=rr(r,t);return a>0?ys(r,t+4,t+4+a):""},Yo=Vo,$o=function(e,r){var t=rr(e,r);return t>0?Ji(e,r+4,r+4+t):""},Ko=$o,qo=function(e,r){return Kf(e,r)},ma=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)},ma=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 di=function(e,r){return e[r]},Ar=function(e,r){return e[r+1]*256+e[r]},Zf=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]},Vr=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]},Jf=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function Fi(e,r){var t="",a,i,s=[],o,c,u,_;switch(r){case"dbcs":if(_=this.l,Qe&&Buffer.isBuffer(this))t=this.slice(this.l,this.l+2*e).toString("utf16le");else for(u=0;u0?Vr:Jf)(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=ma(this,this.l):i=ma([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 Qf=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},e0=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},t0=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255};function r0(e,r,t){var a=0,i=0;if(t==="dbcs"){for(i=0;i!=r.length;++i)t0(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>8}for(;this.l>>=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,Qf(this,r,this.l);break;case 8:if(a=8,t==="f"){qf(this,r,this.l);break}case 16:break;case-4:a=4,e0(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=Fi,e.chk=Jo,e.write_shift=r0}function Nt(e,r){e.l+=r}function vt(e){var r=Ur(e);return Ct(r,0),r}function Dr(e,r,t){if(e){var a,i,s;Ct(e,e.l||0);for(var o=e.length,c=0,u=0;e.la.l&&(a=a.slice(0,a.l),a.l=a.length),a.length>0&&e.push(a),a=null)},s=function(_){return a&&_=256;)a.c-=256;for(;a.r>=65536;)a.r-=65536}return a}function Tn(e,r,t){var a=Mt(e);return a.s=Li(a.s,r.s,t),a.e=Li(a.e,r.s,t),a}function Ii(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=s0(t)),!e.rRel&&e.rRel!=null&&(t=i0(t)),t}function Ha(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?"":"$")+yt(e.s.c)+":"+(e.e.cRel?"":"$")+yt(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):Ii(e.s,r.biff)+":"+Ii(e.e,r.biff)}function Ts(e){return parseInt(a0(e),10)-1}function Dt(e){return""+(e+1)}function i0(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function a0(e){return e.replace(/\$(\d+)$/,"$1")}function ks(e){for(var r=n0(e),t=0,a=0;a!==r.length;++a)t=26*t+r.charCodeAt(a)-64;return t-1}function yt(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 s0(e){return e.replace(/^([A-Z])/,"$$$1")}function n0(e){return e.replace(/^\$([A-Z])/,"$1")}function o0(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Vt(e){for(var r=0,t=0,a=0;a=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 _i(e){var r=e.indexOf(":");return r==-1?{s:Vt(e),e:Vt(e)}:{s:Vt(e.slice(0,r)),e:Vt(e.slice(r+1))}}function tt(e,r){return typeof r>"u"||typeof r=="number"?tt(e.s,e.e):(typeof e!="string"&&(e=Ye(e)),typeof r!="string"&&(r=Ye(r)),e==r?e:e+":"+r)}function dt(e){var r={s:{c:0,r:0},e:{c:0,r:0}},t=0,a=0,i=0,s=e.length;for(t=0;a26);++a)t=26*t+i;for(r.s.c=--t,t=0;a9);++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 kn(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=fr(e.z,t?$t(r):r)}catch{}try{return e.w=fr((e.XF||{}).numFmtId||(t?14:0),t?$t(r):r)}catch{return""+r}}function Mr(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"?si[e.v]||e.v:r==null?kn(e,e.v):kn(e,r))}function zr(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"?Vt(a.origin):a.origin;o=u.r,c=u.c}s["!ref"]||(s["!ref"]="A1:A1")}var _={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var m=dt(s["!ref"]);_.s.c=m.s.c,_.s.r=m.s.r,_.e.c=Math.max(_.e.c,m.e.c),_.e.r=Math.max(_.e.r,m.e.r),o==-1&&(_.e.r=o=m.e.r+1)}for(var L=0;L!=r.length;++L)if(r[L]){if(!Array.isArray(r[L]))throw new Error("aoa_to_sheet expects an array of arrays");for(var j=0;j!=r[L].length;++j)if(!(typeof r[L][j]>"u")){var A={v:r[L][j]},p=o+L,g=c+j;if(_.s.r>p&&(_.s.r=p),_.s.c>g&&(_.s.c=g),_.e.r>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 ai=el;function It(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function u0(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 _=Kr[i];_&&(r.rgb=Yi(_));break;case 2:r.rgb=Yi([o,c,u]);break;case 3:r.theme=i;break}return s!=0&&(r.tint=s>0?s/32767:s/32768),r}function p0(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 g0(e){return tl(e,1)}function x0(e){return tl(e,2)}var Ss=2,qt=3,na=11,bn=12,va=19,oa=64,m0=65,v0=71,y0=4108,T0=4126,_t=80,rl=81,k0=[_t,rl],b0={1:{n:"CodePage",t:Ss},2:{n:"Category",t:_t},3:{n:"PresentationFormat",t:_t},4:{n:"ByteCount",t:qt},5:{n:"LineCount",t:qt},6:{n:"ParagraphCount",t:qt},7:{n:"SlideCount",t:qt},8:{n:"NoteCount",t:qt},9:{n:"HiddenCount",t:qt},10:{n:"MultimediaClipCount",t:qt},11:{n:"ScaleCrop",t:na},12:{n:"HeadingPairs",t:y0},13:{n:"TitlesOfParts",t:T0},14:{n:"Manager",t:_t},15:{n:"Company",t:_t},16:{n:"LinksUpToDate",t:na},17:{n:"CharacterCount",t:qt},19:{n:"SharedDoc",t:na},22:{n:"HyperlinksChanged",t:na},23:{n:"AppVersion",t:qt,p:"version"},24:{n:"DigSig",t:m0},26:{n:"ContentType",t:_t},27:{n:"ContentStatus",t:_t},28:{n:"Language",t:_t},29:{n:"Version",t:_t},255:{},2147483648:{n:"Locale",t:va},2147483651:{n:"Behavior",t:va},1919054434:{}},_0={1:{n:"CodePage",t:Ss},2:{n:"Title",t:_t},3:{n:"Subject",t:_t},4:{n:"Author",t:_t},5:{n:"Keywords",t:_t},6:{n:"Comments",t:_t},7:{n:"Template",t:_t},8:{n:"LastAuthor",t:_t},9:{n:"RevNumber",t:_t},10:{n:"EditTime",t:oa},11:{n:"LastPrinted",t:oa},12:{n:"CreatedDate",t:oa},13:{n:"ModifiedDate",t:oa},14:{n:"PageCount",t:qt},15:{n:"WordCount",t:qt},16:{n:"CharCount",t:qt},17:{n:"Thumbnail",t:v0},18:{n:"Application",t:_t},19:{n:"DocSecurity",t:qt},255:{},2147483648:{n:"Locale",t:va},2147483651:{n:"Behavior",t:va},1919054434:{}},_n={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"},w0=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function S0(e){return e.map(function(r){return[r>>16&255,r>>8&255,r&255]})}var A0=S0([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]),Kr=Mt(A0),si={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},wn={"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 E0(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function C0(e){var r=E0();if(!e||!e.match)return r;var t={};if((e.match(jt)||[]).forEach(function(a){var i=Xe(a);switch(i[0].replace(Rf,"<")){case"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 ui={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 Za(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function Ri(e,r){var t={"!id":{}};if(!e)return t;r.charAt(0)!=="/"&&(r="/"+r);var a={};return(e.match(jt)||[]).forEach(function(i){var s=Xe(i);if(s[0]==="]*>([\\s\\S]*?)")}return e}();function al(e){var r={};e=st(e);for(var t=0;t0&&(r[a[1]]=rt(i[1])),a[2]==="date"&&r[a[1]]&&(r[a[1]]=St(r[a[1]]))}return r}var P0=[["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=pn(e,a);else for(var s=0;s0)for(var _=0;_!==i.length;_+=2){switch(u=+i[_+1].v,i[_].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 F0(e,r,t){var a={};return r||(r={}),e=st(e),P0.forEach(function(i){var s=(e.match(Gi(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]*?)"));o&&o.length>0&&(a[i[1]]=o[1]);break}}),a.HeadingPairs&&a.TitlesOfParts&&sl(a.HeadingPairs,a.TitlesOfParts,r,t),r}var L0=/<[^>]+>[^<]*/g;function I0(e,r){var t={},a="",i=e.match(L0);if(i)for(var s=0;s!=i.length;++s){var o=i[s],c=Xe(o);switch(c[0]){case"":a=null;break;default:if(o.indexOf(""),_=u[0].slice(4),m=u[1];switch(_){case"lpstr":case"bstr":case"lpwstr":t[a]=rt(m);break;case"bool":t[a]=nt(m);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":t[a]=parseInt(m,10);break;case"r4":case"r8":case"decimal":t[a]=parseFloat(m);break;case"filetime":case"date":t[a]=St(m);break;case"cy":case"error":t[a]=rt(m);break;default:if(_.slice(-1)=="/")break;r.WTF&&typeof console<"u"&&console.warn("Unexpected",o,_,u)}}else if(o.slice(0,2)!==">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 z0(e){var r={};return r.Size=e.read_shift(4),e.l+=r.Size+3-(r.Size-1)%4,r}function ya(e,r,t){var a=e.read_shift(2),i,s=t||{};if(e.l+=2,r!==bn&&a!==r&&k0.indexOf(r)===-1&&!((r&65534)==4126&&(a&65534)==4126))throw new Error("Expected type "+r+" saw "+a);switch(r===bn?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(Yt,"");case 31:return ol(e);case 64:return As(e);case 65:return cl(e);case 71:return z0(e);case 80:return Ja(e,a,!s.raw).replace(Yt,"");case 81:return N0(e,a).replace(Yt,"");case 4108:return W0(e);case 4126:case 4127:return a==4127?j0(e):U0(e);default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+a)}}function An(e,r){var t=e.l,a=e.read_shift(4),i=e.read_shift(4),s=[],o=0,c=0,u=-1,_={};for(o=0;o!=i;++o){var m=e.read_shift(4),L=e.read_shift(4);s[o]=[m,L+t]}s.sort(function(E,N){return E[1]-N[1]});var j={};for(o=0;o!=i;++o){if(e.l!==s[o][1]){var A=!0;if(o>0&&r)switch(r[s[o-1][0]].t){case 2:e.l+2===s[o][1]&&(e.l+=2,A=!1);break;case 80:e.l<=s[o][1]&&(e.l=s[o][1],A=!1);break;case 4108:e.l<=s[o][1]&&(e.l=s[o][1],A=!1);break}if((!r||o==0)&&e.l<=s[o][1]&&(A=!1,e.l=s[o][1]),A)throw new Error("Read Error: Expected address "+s[o][1]+" at "+e.l+" :"+o)}if(r){var p=r[s[o][0]];if(j[p.n]=ya(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:mr(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=ya(e,Ss),mr(c),u!==-1){var g=e.l;e.l=s[u][1],_=Sn(e,c),e.l=g}}else if(s[o][0]===0){if(c===0){u=o,e.l=s[o+1][1];continue}_=Sn(e,c)}else{var w=_[s[o][0]],D;switch(e[e.l]){case 65:e.l+=4,D=cl(e);break;case 30:e.l+=4,D=Ja(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,D=Ja(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,D=e.read_shift(4,"i");break;case 19:e.l+=4,D=e.read_shift(4);break;case 5:e.l+=4,D=e.read_shift(8,"f");break;case 11:e.l+=4,D=ut(e,4);break;case 64:e.l+=4,D=St(As(e));break;default:throw new Error("unparsed value: "+e[e.l])}j[w]=D}}return e.l=t+a,j}function En(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 _=a.read_shift(4),m=a.read_shift(16);if(m!==et.utils.consts.HEADER_CLSID&&m!==t)throw new Error("Bad PropertySet CLSID "+m);if(i=a.read_shift(4),i!==1&&i!==2)throw new Error("Unrecognized #Sets: "+i);if(s=a.read_shift(16),c=a.read_shift(4),i===1&&c!==a.l)throw new Error("Length mismatch: "+c+" !== "+a.l);i===2&&(o=a.read_shift(16),u=a.read_shift(4));var L=An(a,r),j={SystemIdentifier:_};for(var A in L)j[A]=L[A];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=An(a,null)}catch{}for(A in p)j[A]=p[A];return j.FMTID=[s,o],j}function Lr(e,r){return e.read_shift(r),null}function G0(e,r,t){for(var a=[],i=e.l+r;e.l=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 V0(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 _=s==2?"dbcs-cont":"sbcs-cont",m=r===0?"":e.read_shift(r,_);return i&&(e.l+=4*o),a&&(e.l+=c),u.t=m,i||(u.raw=""+u.t+"",u.r=u.t),u}function Jr(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 ea(e,r,t){var a=e.read_shift(t&&t.biff==2?1:2);return a===0?(e.l++,""):Jr(e,a,t)}function ni(e,r,t){if(t.biff>5)return ea(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 Y0(e){var r=e.read_shift(1);e.l++;var t=e.read_shift(2);return e.l+=2,[r,t]}function $0(e){var r=e.read_shift(4),t=e.l,a=!1;r>24&&(e.l+=r-24,e.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(a=!0),e.l=t);var i=e.read_shift((a?r-24:r)>>1,"utf16le").replace(Yt,"");return a&&(e.l+=24),i}function K0(e){for(var r=e.read_shift(2),t="";r-- >0;)t+="../";var a=e.read_shift(0,"lpstr-ansi");if(e.l+=2,e.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var i=e.read_shift(4);if(i===0)return t+a.replace(/\\/g,"/");var s=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var o=e.read_shift(s>>1,"utf16le").replace(Yt,"");return t+o}function q0(e,r){var t=e.read_shift(16);switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return $0(e);case"0303000000000000c000000000000046":return K0(e);default:throw new Error("Unsupported Moniker "+t)}}function la(e){var r=e.read_shift(4),t=r>0?e.read_shift(r,"utf16le").replace(Yt,""):"";return t}function Z0(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,_="",m,L;i&16&&(s=la(e,t-e.l)),i&128&&(o=la(e,t-e.l)),(i&257)===257&&(c=la(e,t-e.l)),(i&257)===1&&(u=q0(e,t-e.l)),i&8&&(_=la(e,t-e.l)),i&32&&(m=e.read_shift(16)),i&64&&(L=As(e)),e.l=t;var j=o||c||u||"";j&&_&&(j+="#"+_),j||(j="#"+_),i&2&&j.charAt(0)=="/"&&j.charAt(1)!="/"&&(j="file://"+j);var A={Target:j};return m&&(A.guid=m),L&&(A.time=L),s&&(A.Tooltip=s),A}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 wr(e){var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(2);return{r,c:t,ixfe:a}}function J0(e){var r=e.read_shift(2),t=e.read_shift(2);return e.l+=8,{type:r,flags:t}}function Q0(e,r,t){return r===0?"":ni(e,r,t)}function ed(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=ws(e);return[r,t]}function td(e,r,t){e.l+=4,r-=4;var a=e.l+r,i=Qi(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 Oa(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 rd=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 id(e){var r={};return e.l+=4,e.l+=16,r.fSharedNote=e.read_shift(2),e.l+=4,r}function ad(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 sd={0:Pt,4:Pt,5:Pt,6:Pt,7:ad,8:Pt,9:Pt,10:Pt,11:Pt,12:Pt,13:id,14:Pt,15:Pt,16:Pt,17:Pt,18:Pt,19:Pt,20:Pt,21:gl};function nd(e,r){for(var t=e.l+r,a=[];e.l=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 od(e,r){return r===0||e.read_shift(2),1200}function ld(e,r,t){if(t.enc)return e.l+=r,"";var a=e.l,i=ni(e,0,t);return e.read_shift(r+a-e.l),i}function cd(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 hd(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=Qi(e,0,t);return o.length===0&&(o="Sheet1"),{pos:a,hs:i,dt:s,name:o}}function fd(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>15),i&=32767);var s={Unsynced:a&1,DyZero:(a&2)>>1,ExAsc:(a&4)>>2,ExDsc:(a&8)>>3};return[s,i]}function xd(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),_=e.read_shift(2);return{Pos:[r,t],Dim:[a,i],Flags:s,CurTab:o,FirstTab:c,Selected:u,TabRatio:_}}function md(e,r,t){if(t&&t.biff>=2&&t.biff<5)return{};var a=e.read_shift(2);return{RTL:a&64}}function vd(){}function yd(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=Qi(e,0,t),a}function Td(e){var r=wr(e);return r.isst=e.read_shift(4),r}function kd(e,r,t){t.biffguess&&t.biff==2&&(t.biff=5);var a=e.l+r,i=wr(e);t.biff==2&&e.l++;var s=ea(e,a-e.l,t);return i.val=s,i}function bd(e,r,t){var a=e.read_shift(2),i=ni(e,0,t);return[a,i]}var _d=ni;function Mn(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 wd(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 Sd(e,r){for(var t=e.l+r-2,a=e.read_shift(2),i=e.read_shift(2),s=[];e.l>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 Cd(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=Ed(e,r,a.fStyle,t),a}function Md(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 Dn(e,r,t){var a=wr(e);(t.biff==2||r==9)&&++e.l;var i=X0(e);return a.val=i,a.t=i===!0||i===!1?"b":"e",a}function Dd(e,r,t){t.biffguess&&t.biff==2&&(t.biff=5);var a=wr(e),i=It(e);return a.val=i,a}var On=Q0;function Od(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=Jr(e,s),c=[];a>e.l;)c.push(ea(e));return[s,i,o,c]}function Pn(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=td(e,r-2,t)),s.body=i||e.read_shift(r-2),typeof i=="string"&&(s.Name=i),s}var Pd=["_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 Fn(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 _=Jr(e,o,t);i&32&&(_=Pd[_.charCodeAt(0)]);var m=a-e.l;t&&t.biff==2&&--m;var L=a==e.l||c===0||!(m>0)?[]:ux(e,m,t,c);return{chKey:s,Name:_,itab:u,rgce:L}}function xl(e,r,t){if(t.biff<8)return Fd(e,r,t);for(var a=[],i=e.l+r,s=e.read_shift(t.biff>8?4:2);s--!==0;)a.push(ed(e,t.biff>8?12:6,t));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return a}function Fd(e,r,t){e[e.l+1]==3&&e[e.l]++;var a=Qi(e,r,t);return a.charCodeAt(0)==3?a.slice(1):a}function Ld(e,r,t){if(t.biff<8){e.l+=r;return}var a=e.read_shift(2),i=e.read_shift(2),s=Jr(e,a,t),o=Jr(e,i,t);return[s,o]}function Id(e,r,t){var a=pl(e);e.l++;var i=e.read_shift(1);return r-=8,[px(e,r,t),i,a]}function Ln(e,r,t){var a=rd(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,fx(e,r,t)]}function Rd(e){var r=e.read_shift(4)!==0,t=e.read_shift(4)!==0,a=e.read_shift(4);return[r,t,a]}function Bd(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=ni(e,0,t);return t.biff<8&&e.read_shift(1),[{r:a,c:i},c,o,s]}}function Nd(e,r,t){return Bd(e,r,t)}function jd(e,r){for(var t=[],a=e.read_shift(2);a--;)t.push(Oa(e));return t}function Ud(e,r,t){if(t&&t.biff<8)return Wd(e,r,t);var a=gl(e),i=nd(e,r-22,a[1]);return{cmo:a,ft:i}}var Hd={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 Wd(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((Hd[a]||Nt)(e,r,t)),{cmo:[i,a,s],ft:o}}function zd(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=Y0(e,6,t);var c=e.read_shift(2);e.read_shift(2),mt(e,2);var u=e.read_shift(2);e.l+=u;for(var _=1;_=(m?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 Gd(e,r){var t=Oa(e);e.l+=16;var a=Z0(e,r-24);return[t,a]}function Xd(e,r){e.read_shift(2);var t=Oa(e),a=e.read_shift((r-10)/2,"dbcs-cont");return a=a.replace(Yt,""),[t,a]}function Vd(e){var r=[0,0],t;return t=e.read_shift(2),r[0]=_n[t]||t,t=e.read_shift(2),r[1]=_n[t]||t,r}function Yd(e){for(var r=e.read_shift(2),t=[];r-- >0;)t.push(dl(e));return t}function $d(e){for(var r=e.read_shift(2),t=[];r-- >0;)t.push(dl(e));return t}function Kd(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 _={s:i,e:s,w:o,ixfe:c,flags:u};return(t.biff>=5||!t.biff)&&(_.level=u>>8&7),_}function qd(e,r){var t={};return r<32||(e.l+=16,t.header=It(e),t.footer=It(e),e.l+=2),t}function Zd(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 Jd=wr,Qd=hl,eu=ea;function tu(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 ru(e,r,t){t.biffguess&&t.biff==5&&(t.biff=2);var a=wr(e);++e.l;var i=ni(e,r-7,t);return a.t="str",a.val=i,a}function iu(e){var r=wr(e);++e.l;var t=It(e);return r.t="n",r.val=t,r}function au(e){var r=wr(e);++e.l;var t=e.read_shift(2);return r.t="n",r.val=t,r}function su(e){var r=e.read_shift(1);return r===0?(e.l++,""):e.read_shift(r,"sbcs-cont")}function nu(e,r){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=r-13}function ou(e,r,t){var a=e.l+r,i=wr(e),s=e.read_shift(2),o=Jr(e,s,t);return e.l=a,i.t="str",i.val=o,i}var lu=[2,3,48,49,131,139,140,245],In=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=gs({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 _=[],m=Ur(1);switch(u.type){case"base64":m=xr(ar(c));break;case"binary":m=xr(c);break;case"buffer":case"array":m=c;break}Ct(m,0);var L=m.read_shift(1),j=!!(L&136),A=!1,p=!1;switch(L){case 2:break;case 3:break;case 48:A=!0,j=!0;break;case 49:A=!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: "+L.toString(16))}var g=0,w=521;L==2&&(g=m.read_shift(2)),m.l+=3,L!=2&&(g=m.read_shift(4)),g>1048576&&(g=1e6),L!=2&&(w=m.read_shift(2));var D=m.read_shift(2),E=u.codepage||1252;L!=2&&(m.l+=16,m.read_shift(1),m[m.l]!==0&&(E=e[m[m.l]]),m.l+=1,m.l+=2),p&&(m.l+=36);for(var N=[],M={},b=Math.min(m.length,L==2?521:w-10-(A?264:0)),F=p?32:11;m.l0;){if(m[m.l]===42){m.l+=D;continue}for(++m.l,_[++P]=[],I=0,I=0;I!=N.length;++I){var v=m.slice(m.l,m.l+N[I].len);m.l+=N[I].len,Ct(v,0);var B=Ir.utils.decode(E,v);switch(N[I].type){case"C":B.trim().length&&(_[P][I]=B.replace(/\s+$/,""));break;case"D":B.length===8?_[P][I]=new Date(+B.slice(0,4),+B.slice(4,6)-1,+B.slice(6,8)):_[P][I]=B;break;case"F":_[P][I]=parseFloat(B.trim());break;case"+":case"I":_[P][I]=p?v.read_shift(-4,"i")^2147483648:v.read_shift(4,"i");break;case"L":switch(B.trim().toUpperCase()){case"Y":case"T":_[P][I]=!0;break;case"N":case"F":_[P][I]=!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 "+L.toString(16));_[P][I]="##MEMO##"+(p?parseInt(B.trim(),10):v.read_shift(4));break;case"N":B=B.replace(/\u0000/g,"").trim(),B&&B!="."&&(_[P][I]=+B||0);break;case"@":_[P][I]=new Date(v.read_shift(-8,"f")-621356832e5);break;case"T":_[P][I]=new Date((v.read_shift(4)-2440588)*864e5+v.read_shift(4));break;case"Y":_[P][I]=v.read_shift(4,"i")/1e4+v.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":_[P][I]=-v.read_shift(-8,"f");break;case"B":if(A&&N[I].len==8){_[P][I]=v.read_shift(8,"f");break}case"G":case"P":v.l+=N[I].len;break;case"0":if(N[I].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+N[I].type)}}}if(L!=2&&m.l=0&&mr(+_.codepage),_.type=="string")throw new Error("Cannot write DBF to JS string");var m=Ka(),L=ss(c,{header:1,raw:!0,cellDates:!0}),j=L[0],A=L.slice(1),p=c["!cols"]||[],g=0,w=0,D=0,E=1;for(g=0;g250&&(v=250),I=((p[g]||{}).DBF||{}).type,I=="C"&&p[g].DBF.len>v&&(v=p[g].DBF.len),P=="B"&&I=="N"&&(P="N",F[g]=p[g].DBF.dec,v=p[g].DBF.len),b[g]=P=="C"||I=="N"?v:s[P]||0,E+=b[g],M[g]=P}var T=m.next(32);for(T.write_shift(4,318902576),T.write_shift(4,A.length),T.write_shift(2,296+32*D),T.write_shift(2,E),g=0;g<4;++g)T.write_shift(4,0);for(T.write_shift(4,0|(+r[go]||3)<<8),g=0,w=0;g":190,"?":191,"{":223},r=new RegExp("\x1BN("+br(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(j,A){var p=e[A];return typeof p=="number"?qs(p):p},a=function(j,A,p){var g=A.charCodeAt(0)-32<<4|p.charCodeAt(0)-48;return g==59?j:qs(g)};e["|"]=254;function i(j,A){switch(A.type){case"base64":return s(ar(j),A);case"binary":return s(j,A);case"buffer":return s(Qe&&Buffer.isBuffer(j)?j.toString("binary"):ri(j),A);case"array":return s(Zr(j),A)}throw new Error("Unrecognized type "+A.type)}function s(j,A){var p=j.split(/[\n\r]+/),g=-1,w=-1,D=0,E=0,N=[],M=[],b=null,F={},P=[],I=[],v=[],B=0,T;for(+A.codepage>=0&&mr(+A.codepage);D!==p.length;++D){B=0;var S=p[D].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(r,t),x=S.replace(/;;/g,"\0").split(";").map(function(W){return W.replace(/\u0000/g,";")}),h=x[0],n;if(S.length>0)switch(h){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":x[1].charAt(0)=="P"&&M.push(S.slice(3).replace(/;;/g,";"));break;case"C":var l=!1,f=!1,k=!1,y=!1,G=-1,U=-1;for(E=1;E-1&&N[G][U];if(!H||!H[1])throw new Error("SYLK shared formula cannot find base");N[g][w][1]=El(H[1],{r:g-G,c:w-U})}break;case"F":var z=0;for(E=1;E0?(P[g].hpt=B,P[g].hpx=$i(B)):B===0&&(P[g].hidden=!0);break;default:if(A&&A.WTF)throw new Error("SYLK bad record "+S)}z<1&&(b=null);break;default:if(A&&A.WTF)throw new Error("SYLK bad record "+S)}}return P.length>0&&(F["!rows"]=P),I.length>0&&(F["!cols"]=I),A&&A.sheetRows&&(N=N.slice(0,A.sheetRows)),[N,F]}function o(j,A){var p=i(j,A),g=p[0],w=p[1],D=wi(g,A);return br(w).forEach(function(E){D[E]=w[E]}),D}function c(j,A){return zr(o(j,A),A)}function u(j,A,p,g){var w="C;Y"+(p+1)+";X"+(g+1)+";K";switch(j.t){case"n":w+=j.v||0,j.f&&!j.F&&(w+=";E"+Kp(j.f,{r:p,c:g}));break;case"b":w+=j.v?"TRUE":"FALSE";break;case"e":w+=j.w||j.v;break;case"d":w+='"'+(j.w||j.v)+'"';break;case"s":w+='"'+j.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return w}function _(j,A){A.forEach(function(p,g){var w="F;W"+(g+1)+" "+(g+1)+" ";p.hidden?w+="0":(typeof p.width=="number"&&!p.wpx&&(p.wpx=ka(p.width)),typeof p.wpx=="number"&&!p.wch&&(p.wch=ba(p.wpx)),typeof p.wch=="number"&&(w+=Math.round(p.wch))),w.charAt(w.length-1)!=" "&&j.push(w)})}function m(j,A){A.forEach(function(p,g){var w="F;";p.hidden?w+="M0;":p.hpt?w+="M"+20*p.hpt+";":p.hpx&&(w+="M"+20*wl(p.hpx)+";"),w.length>2&&j.push(w+"R"+(g+1))})}function L(j,A){var p=["ID;PWXL;N;E"],g=[],w=dt(j["!ref"]),D,E=Array.isArray(j),N=`\r `;p.push("P;PGeneral"),p.push("F;P0;DG0G8;M255"),j["!cols"]&&_(p,j["!cols"]),j["!rows"]&&m(p,j["!rows"]),p.push("B;Y"+(w.e.r-w.s.r+1)+";X"+(w.e.c-w.s.c+1)+";D"+[w.s.c,w.s.r,w.e.c,w.e.r].join(" "));for(var M=w.s.r;M<=w.e.r;++M)for(var b=w.s.c;b<=w.e.c;++b){var F=Ye({r:M,c:b});D=E?(j[M]||[])[b]:j[F],!(!D||D.v==null&&(!D.f||D.F))&&g.push(u(D,j,M,b))}return p.join(N)+N+g.join(N)+N+"E"+N}return{to_workbook:c,to_sheet:o,from_sheet:L}}(),hu=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"):ri(s),o);case"array":return r(Zr(s),o)}throw new Error("Unrecognized type "+o.type)}function r(s,o){for(var c=s.split(` `),u=-1,_=-1,m=0,L=[];m!==c.length;++m){if(c[m].trim()==="BOT"){L[++u]=[],_=0;continue}if(!(u<0)){var j=c[m].trim().split(","),A=j[0],p=j[1];++m;for(var g=c[m]||"";(g.match(/["]/g)||[]).length&1&&m=0&&p[g].length===0;)--g;for(var w=10,D=0,E=0;E<=g;++E)D=p[E].indexOf(" "),D==-1?D=p[E].length:D++,w=Math.max(w,D);for(E=0;E<=g;++E){A[E]=[];var N=0;for(e(p[E].slice(0,w).trim(),A,E,N,j),N=1;N<=(p[E].length-w)/10+1;++N)e(p[E].slice(w+(N-1)*10,w+N*10).trim(),A,E,N,j)}return j.sheetRows&&(A=A.slice(0,j.sheetRows)),A}var t={44:",",9:" ",59:";",124:"|"},a={44:3,9:2,59:1,124:0};function i(m){for(var L={},j=!1,A=0,p=0;A0&&B(),p["!ref"]=tt(g),p}function o(m,L){return!(L&&L.PRN)||L.FS||m.slice(0,4)=="sep="||m.indexOf(" ")>=0||m.indexOf(",")>=0||m.indexOf(";")>=0?s(m,L):wi(r(m,L),L)}function c(m,L){var j="",A=L.type=="string"?[0,0,0,0]:Ls(m,L);switch(L.type){case"base64":j=ar(m);break;case"binary":j=m;break;case"buffer":L.codepage==65001?j=m.toString("utf8"):L.codepage&&typeof Ir<"u"?j=Ir.utils.decode(L.codepage,m):j=Qe&&Buffer.isBuffer(m)?m.toString("binary"):ri(m);break;case"array":j=Zr(m);break;case"string":j=m;break;default:throw new Error("Unrecognized type "+L.type)}return A[0]==239&&A[1]==187&&A[2]==191?j=st(j.slice(3)):L.type!="string"&&L.type!="buffer"&&L.codepage==65001?j=st(j):L.type=="binary"&&typeof Ir<"u"&&L.codepage&&(j=Ir.utils.decode(L.codepage,Ir.utils.encode(28591,j))),j.slice(0,19)=="socialcalc:version:"?fu.to_sheet(L.type=="string"?j:st(j),L):o(j,L)}function u(m,L){return zr(c(m,L),L)}function _(m){for(var L=[],j=dt(m["!ref"]),A,p=Array.isArray(m),g=j.s.r;g<=j.e.r;++g){for(var w=[],D=j.s.c;D<=j.e.c;++D){var E=Ye({r:g,c:D});if(A=p?(m[g]||[])[D]:m[E],!A||A.v==null){w.push(" ");continue}for(var N=(A.w||(Mr(A),A.w)||"").slice(0,10);N.length<10;)N+=" ";w.push(N+(D===0?" ":""))}L.push(w.join(""))}return L.join(` `)}return{to_workbook:u,to_sheet:c,from_sheet:_}}();function du(e,r){var t=r||{},a=!!t.WTF;t.WTF=!0;try{var i=cu.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 Vi.to_workbook(e,r)}}var Ni=function(){function e(O,H,z){if(O){Ct(O,O.l||0);for(var W=z.Enum||G;O.l=16&&O[14]==5&&O[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(O[2]==2)z.Enum=G,e(O,function(K,ne,oe){switch(oe){case 0:z.vers=K,K>=4096&&(z.qpro=!0);break;case 6:C=K;break;case 204:K&&(R=K);break;case 222:R=K;break;case 15:case 51:z.qpro||(K[1].v=K[1].v.slice(1));case 13:case 14:case 16:oe==14&&(K[2]&112)==112&&(K[2]&15)>1&&(K[2]&15)<15&&(K[1].z=z.dateNF||Ke[14],z.cellDates&&(K[1].t="d",K[1].v=Da(K[1].v))),z.qpro&&K[3]>q&&(W["!ref"]=tt(C),J[d]=W,Y.push(d),W=z.dense?[]:{},C={s:{r:0,c:0},e:{r:0,c:0}},q=K[3],d=R||"Sheet"+(q+1),R="");var le=z.dense?(W[K[0].r]||[])[K[0].c]:W[Ye(K[0])];if(le){le.t=K[1].t,le.v=K[1].v,K[1].z!=null&&(le.z=K[1].z),K[1].f!=null&&(le.f=K[1].f);break}z.dense?(W[K[0].r]||(W[K[0].r]=[]),W[K[0].r][K[0].c]=K[1]):W[Ye(K[0])]=K[1];break}},z);else if(O[2]==26||O[2]==14)z.Enum=U,O[2]==14&&(z.qpro=!0,O.l=0),e(O,function(K,ne,oe){switch(oe){case 204:d=K;break;case 22:K[1].v=K[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(K[3]>q&&(W["!ref"]=tt(C),J[d]=W,Y.push(d),W=z.dense?[]:{},C={s:{r:0,c:0},e:{r:0,c:0}},q=K[3],d="Sheet"+(q+1)),V>0&&K[0].r>=V)break;z.dense?(W[K[0].r]||(W[K[0].r]=[]),W[K[0].r][K[0].c]=K[1]):W[Ye(K[0])]=K[1],C.e.c=0&&mr(+z.codepage),z.type=="string")throw new Error("Cannot write WK1 to JS string");var W=Ka(),d=dt(O["!ref"]),R=Array.isArray(O),q=[];gr(W,0,s(1030)),gr(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),C=d.s.c;C<=d.e.c;++C){Y===d.s.r&&(q[C]=yt(C));var V=q[C]+ee,X=R?(O[Y]||[])[C]:O[V];if(!(!X||X.t=="z"))if(X.t=="n")(X.v|0)==X.v&&X.v>=-32768&&X.v<=32767?gr(W,13,A(Y,C,X.v)):gr(W,14,g(Y,C,X.v));else{var Q=Mr(X);gr(W,15,L(Y,C,Q.slice(0,239)))}}return gr(W,1),W.end()}function i(O,H){var z=H||{};if(+z.codepage>=0&&mr(+z.codepage),z.type=="string")throw new Error("Cannot write WK3 to JS string");var W=Ka();gr(W,0,o(O));for(var d=0,R=0;d8191&&(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(O,H,z){var W={s:{c:0,r:0},e:{c:0,r:0}};return H==8&&z.qpro?(W.s.c=O.read_shift(1),O.l++,W.s.r=O.read_shift(2),W.e.c=O.read_shift(1),O.l++,W.e.r=O.read_shift(2),W):(W.s.c=O.read_shift(2),W.s.r=O.read_shift(2),H==12&&z.qpro&&(O.l+=2),W.e.c=O.read_shift(2),W.e.r=O.read_shift(2),H==12&&z.qpro&&(O.l+=2),W.s.c==65535&&(W.s.c=W.e.c=W.s.r=W.e.r=0),W)}function u(O){var H=vt(8);return H.write_shift(2,O.s.c),H.write_shift(2,O.s.r),H.write_shift(2,O.e.c),H.write_shift(2,O.e.r),H}function _(O,H,z){var W=[{c:0,r:0},{t:"n",v:0},0,0];return z.qpro&&z.vers!=20768?(W[0].c=O.read_shift(1),W[3]=O.read_shift(1),W[0].r=O.read_shift(2),O.l+=2):(W[2]=O.read_shift(1),W[0].c=O.read_shift(2),W[0].r=O.read_shift(2)),W}function m(O,H,z){var W=O.l+H,d=_(O,H,z);if(d[1].t="s",z.vers==20768){O.l++;var R=O.read_shift(1);return d[1].v=O.read_shift(R,"utf8"),d}return z.qpro&&O.l++,d[1].v=O.read_shift(W-O.l,"cstr"),d}function L(O,H,z){var W=vt(7+z.length);W.write_shift(1,255),W.write_shift(2,H),W.write_shift(2,O),W.write_shift(1,39);for(var d=0;d=128?95:R)}return W.write_shift(1,0),W}function j(O,H,z){var W=_(O,H,z);return W[1].v=O.read_shift(2,"i"),W}function A(O,H,z){var W=vt(7);return W.write_shift(1,255),W.write_shift(2,H),W.write_shift(2,O),W.write_shift(2,z,"i"),W}function p(O,H,z){var W=_(O,H,z);return W[1].v=O.read_shift(8,"f"),W}function g(O,H,z){var W=vt(13);return W.write_shift(1,255),W.write_shift(2,H),W.write_shift(2,O),W.write_shift(8,z,"f"),W}function w(O,H,z){var W=O.l+H,d=_(O,H,z);if(d[1].v=O.read_shift(8,"f"),z.qpro)O.l=W;else{var R=O.read_shift(2);M(O.slice(O.l,O.l+R),d),O.l+=R}return d}function D(O,H,z){var W=H&32768;return H&=-32769,H=(W?O:0)+(H>=8192?H-16384:H),(W?"":"$")+(z?yt(H):Dt(H))}var E={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(O,H){Ct(O,0);for(var z=[],W=0,d="",R="",q="",J="";O.lz.length){console.error("WK1 bad formula parse 0x"+Y.toString(16)+":|"+z.join("|")+"|");return}var X=z.slice(-W);z.length-=W,z.push(E[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(O){var H=[{c:0,r:0},{t:"n",v:0},0];return H[0].r=O.read_shift(2),H[3]=O[O.l++],H[0].c=O[O.l++],H}function F(O,H){var z=b(O);return z[1].t="s",z[1].v=O.read_shift(H-4,"cstr"),z}function P(O,H,z,W){var d=vt(6+W.length);d.write_shift(2,O),d.write_shift(1,z),d.write_shift(1,H),d.write_shift(1,39);for(var R=0;R=128?95:q)}return d.write_shift(1,0),d}function I(O,H){var z=b(O);z[1].v=O.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 v(O,H){var z=b(O),W=O.read_shift(4),d=O.read_shift(4),R=O.read_shift(2);if(R==65535)return W===0&&d===3221225472?(z[1].t="e",z[1].v=15):W===0&&d===3489660928?(z[1].t="e",z[1].v=42):z[1].v=0,z;var q=R&32768;return R=(R&32767)-16446,z[1].v=(1-q*2)*(d*Math.pow(2,R+32)+W*Math.pow(2,R)),z}function B(O,H,z,W){var d=vt(14);if(d.write_shift(2,O),d.write_shift(1,z),d.write_shift(1,H),W==0)return d.write_shift(4,0),d.write_shift(4,0),d.write_shift(2,65535),d;var R=0,q=0,J=0,Y=0;return W<0&&(R=1,W=-W),q=Math.log2(W)|0,W/=Math.pow(2,q-31),Y=W>>>0,Y&2147483648||(W/=2,++q,Y=W>>>0),W-=Y,Y|=2147483648,Y>>>=0,W*=Math.pow(2,32),J=W>>>0,d.write_shift(4,J),d.write_shift(4,Y),q+=16383+(R?32768:0),d.write_shift(2,q),d}function T(O,H){var z=v(O);return O.l+=H-14,z}function S(O,H){var z=b(O),W=O.read_shift(4);return z[1].v=W>>6,z}function x(O,H){var z=b(O),W=O.read_shift(8,"f");return z[1].v=W,z}function h(O,H){var z=x(O);return O.l+=H-10,z}function n(O,H){return O[O.l+H-1]==0?O.read_shift(H,"cstr"):""}function l(O,H){var z=O[O.l++];z>H-1&&(z=H-1);for(var W="";W.length127?95:d}return z[z.l++]=0,z}var G={0:{n:"BOF",f:mt},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:c},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:j},14:{n:"NUMBER",f:p},15:{n:"LABEL",f:m},16:{n:"FORMULA",f:w},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:m},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:v},24:{n:"NUMBER18",f:I},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:S},38:{n:"??"},39:{n:"NUMBER27",f:x},40:{n:"FORMULA28",f:h},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:n},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:a,book_to_wk3:i,to_workbook:r}}();function uu(e){var r={},t=e.match(jt),a=0,i=!1;if(t)for(;a!=t.length;++a){var s=Xe(t[a]);switch(s[0].replace(/\w*:/g,"")){case"":case"":r.shadow=1;break;case"":break;case"":case"":r.outline=1;break;case"":break;case"":case"":r.strike=1;break;case"":break;case"":case"":r.u=1;break;case"":break;case"":case"":r.b=1;break;case"":break;case"":case"":r.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":i=!1;break;default:if(s[0].charCodeAt(1)!==47&&!i)throw new Error("Unrecognized rich format "+s[0])}}return r}var pu=function(){var e=Gi("t"),r=Gi("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=uu(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})}}(),gu=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(''),i.b&&(s.push(""),o.push("")),i.i&&(s.push(""),o.push("")),i.strike&&(s.push(""),o.push(""));var u=i.valign||"";return u=="superscript"||u=="super"?u="sup":u=="subscript"&&(u="sub"),u!=""&&(s.push("<"+u+">"),o.push("")),o.push(""),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,"
")+s[2].join("")):""}return function(s){return s.map(a).join("")}}(),xu=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,mu=/<(?:\w+:)?r>/,vu=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Es(e,r){var t=r?r.cellHTML:!0,a={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(a.t=rt(st(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),a.r=st(e),t&&(a.h=ms(a.t))):e.match(mu)&&(a.r=st(e),a.t=rt(st((e.replace(vu,"").match(xu)||[]).join("").replace(jt,""))),t&&(a.h=gu(pu(a.r)))),a):{t:""}}var yu=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Tu=/<(?:\w+:)?(?:si|sstItem)>/g,ku=/<\/(?:\w+:)?(?:si|sstItem)>/;function bu(e,r){var t=[],a="";if(!e)return t;var i=e.match(yu);if(i){a=i[2].replace(Tu,"").split(ku);for(var s=0;s!=a.length;++s){var o=Es(a[s].trim(),r);o!=null&&(t[t.length]=o)}i=Xe(i[1]),t.Count=i.count,t.Unique=i.uniqueCount}return t}function _u(e){return[e.read_shift(4),e.read_shift(4)]}function wu(e,r){var t=[],a=!1;return Dr(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=4&&(e.l+=r-4),t}function Su(e){var r={};return r.id=e.read_shift(0,"lpp4"),r.R=Cr(e,4),r.U=Cr(e,4),r.W=Cr(e,4),r}function Au(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 Eu(e){var r=[];e.l+=4;for(var t=e.read_shift(4);t-- >0;)r.push(Au(e));return r}function Cu(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 Mu(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=Cr(e,4),r.U=Cr(e,4),r.W=Cr(e,4),r}function Du(e){var r=Mu(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 Ou(e){var r=Cr(e);switch(r.Minor){case 2:return[r.Minor,Pu(e)];case 3:return[r.Minor,Fu()];case 4:return[r.Minor,Lu(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+r.Minor)}function Pu(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 Fu(){throw new Error("File is password-protected: ECMA-376 Extensible")}function Lu(e){var r=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var t=e.read_shift(e.length-e.l,"utf8"),a={};return t.replace(jt,function(s){var o=Xe(s);switch(_r(o[0])){case"":break;case"":case"":break;case"":break;case"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 Ru(e){var r={},t=r.EncryptionVersionInfo=Cr(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 Bu(e){var r=0,t,a=vl(e),i=a.length+1,s,o,c,u,_;for(t=Ur(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,_=c|u,r=_^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,_=o.length-1;_>=0;--_)for(var m=o[_],L=0;L!=7;++L)m&64&&(c^=t[u]),m*=2,--u;return c};return function(o){for(var c=vl(o),u=s(c),_=c.length,m=Ur(16),L=0;L!=16;++L)m[L]=0;var j,A,p;for((_&1)===1&&(j=u>>8,m[_]=i(e[0],j),--_,j=u&255,A=c[c.length-1],m[_]=i(A,j));_>0;)--_,j=u>>8,m[_]=i(c[_],j),--_,j=u&255,m[_]=i(c[_],j);for(_=15,p=15-c.length;p>0;)j=u>>8,m[_]=i(e[p],j),--_,--p,j=u&255,m[_]=i(c[_],j),--_,--p;return m}}(),Nu=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]},ju=function(e){var r=0,t=kl(e);return function(a){var i=Nu("",a,r,t);return r=i[1],i[0]}};function Uu(e,r,t,a){var i={key:mt(e),verificationBytes:mt(e)};return t.password&&(i.verifier=Bu(t.password)),a.valid=i.verificationBytes===i.verifier,a.valid&&(a.insitu=ju(t.password)),i}function Hu(e,r,t){var a=t||{};return a.Info=e.read_shift(2),e.l-=2,a.Info===1?a.Data=Ru(e):a.Data=Iu(e,r),a}function Wu(e,r,t){var a={Type:t.biff>=8?e.read_shift(2):0};return a.Type?Hu(e,r-2,a):Uu(e,t.biff>=8?r:r-2,t,a),a}var zu=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"):ri(i),s);case"array":return r(Zr(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 _={s:{c:0,r:0},e:{c:0,r:u.length-1}};return u.forEach(function(m,L){Array.isArray(c)&&(c[L]=[]);for(var j=/\\\w+\b/g,A=0,p,g=-1;p=j.exec(m);){switch(p[0]){case"\\cell":var w=m.slice(A,j.lastIndex-p[0].length);if(w[0]==" "&&(w=w.slice(1)),++g,w.length){var D={v:w,t:"s"};Array.isArray(c)?c[L][g]=D:c[Ye({r:L,c:g})]=D}break}A=j.lastIndex}g>_.e.c&&(_.e.c=g)}),c["!ref"]=tt(_),c}function t(i,s){return zr(e(i,s),s)}function a(i){for(var s=["{\\rtf1\\ansi"],o=dt(i["!ref"]),c,u=Array.isArray(i),_=o.s.r;_<=o.e.r;++_){s.push("\\trowd\\trautofit1");for(var m=o.s.c;m<=o.e.c;++m)s.push("\\cellx"+(m+1));for(s.push("\\pard\\intbl"),m=o.s.c;m<=o.e.c;++m){var L=Ye({r:_,c:m});c=u?(i[_]||[])[m]:i[L],!(!c||c.v==null&&(!c.f||c.F))&&(s.push(" "+(c.w||(Mr(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 Gu(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 Yi(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 Xu(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,_=i+s;switch(u=o/(_>1?2-_:_),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,_/2]}function Vu(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 _=0;_!=3;++_)o[_]=Math.round(o[_]*255);return o}function Ta(e,r){if(r===0)return e;var t=Xu(Gu(e));return r<0?t[2]=t[2]*(1+r):t[2]=1-(1-t[2])*(1-r),Yi(Vu(t))}var bl=6,Yu=15,$u=1,zt=bl;function ka(e){return Math.floor((e+Math.round(128/zt)/256)*zt)}function ba(e){return Math.floor((e-5)/zt*100+.5)/100}function Qa(e){return Math.round((e*zt+5)/zt*256)/256}function za(e){return Qa(ba(ka(e)))}function Cs(e){var r=Math.abs(e-za(e)),t=zt;if(r>.005)for(zt=$u;zt":case"":break;case"":case"":i={},c.diagonalUp&&(i.diagonalUp=nt(c.diagonalUp)),c.diagonalDown&&(i.diagonalDown=nt(c.diagonalDown)),r.Borders.push(i);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":break;case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+c[0]+" in borders")}})}function Ju(e,r,t,a){r.Fills=[];var i={},s=!1;(e[0].match(jt)||[]).forEach(function(o){var c=Xe(o);switch(_r(c[0])){case"":case"":break;case"":case"":i={},r.Fills.push(i);break;case"":break;case"":break;case"":r.Fills.push(i),i={};break;case"":c.patternType&&(i.patternType=c.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":break;case"":break;case"":break;case"
":break;case"":case"":break;case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+c[0]+" in fills")}})}function Qu(e,r,t,a){r.Fonts=[];var i={},s=!1;(e[0].match(jt)||[]).forEach(function(o){var c=Xe(o);switch(_r(c[0])){case"":case"":break;case"":break;case"":case"":r.Fonts.push(i),i={};break;case"":case"":break;case"":i.bold=1;break;case"":i.italic=1;break;case"":i.underline=1;break;case"":i.strike=1;break;case"":i.outline=1;break;case"":i.shadow=1;break;case"":i.condense=1;break;case"":i.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"
":break;case"":s=!1;break;case"":case"":break;case"":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+c[0]+" in fonts")}})}function ep(e,r,t){r.NumberFmt=[];for(var a=br(Ke),i=0;i":case"":case"":break;case"0){if(u>392){for(u=392;u>60&&r.NumberFmt[u]!=null;--u);r.NumberFmt[u]=c}$r(c,u)}}break;case"":break;default:if(t.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}var ha=["numFmtId","fillId","fontId","borderId","xfId"],fa=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function tp(e,r,t){r.CellXf=[];var a,i=!1;(e[0].match(jt)||[]).forEach(function(s){var o=Xe(s),c=0;switch(_r(o[0])){case"":case"":case"":break;case"":for(a=o,delete a[0],c=0;c392){for(c=392;c>60;--c)if(r.NumberFmt[a.numFmtId]==r.NumberFmt[c]){a.numFmtId=c;break}}r.CellXf.push(a);break;case"":break;case"":var u={};o.vertical&&(u.vertical=o.vertical),o.horizontal&&(u.horizontal=o.horizontal),o.textRotation!=null&&(u.textRotation=o.textRotation),o.indent&&(u.indent=o.indent),o.wrapText&&(u.wrapText=nt(o.wrapText)),a.alignment=u;break;case"":break;case"":case"":break;case"":i=!1;break;case"":case"":break;case"":i=!1;break;default:if(t&&t.WTF&&!i)throw new Error("unrecognized "+o[0]+" in cellXfs")}})}var rp=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,_){var m={};if(!c)return m;c=c.replace(//mg,"").replace(//gm,"");var L;return(L=c.match(r))&&ep(L,m,_),(L=c.match(i))&&Qu(L,m,u,_),(L=c.match(a))&&Ju(L,m,u,_),(L=c.match(s))&&Zu(L,m,u,_),(L=c.match(t))&&tp(L,m,_),m}}();function ip(e,r){var t=e.read_shift(2),a=Bt(e);return[t,a]}function ap(e,r,t){var a={};a.sz=e.read_shift(2)/20;var i=p0(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=u0(e),e.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor";break}return a.name=Bt(e),a}var sp=Nt;function np(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 op=Nt;function lp(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 Dr(e,function(u,_,m){switch(m){case 44:a.NumberFmt[u[0]]=u[1],$r(u[1],u[0]);break;case 43:a.Fonts.push(u),u.color.theme!=null&&r&&r.themeElements&&r.themeElements.clrScheme&&(u.color.rgb=Ta(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(m),o=!0;break;case 38:s.pop(),o=!1;break;default:if(_.T>0)s.push(m);else if(_.T<0)s.pop();else if(!o||t.WTF&&s[s.length-1]!=37)throw new Error("Unexpected record 0x"+m.toString(16))}}),a}var cp=["","","","","","","","","","","",""];function hp(e,r,t){r.themeElements.clrScheme=[];var a={};(e[0].match(jt)||[]).forEach(function(i){var s=Xe(i);switch(s[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":s[0].charAt(1)==="/"?(r.themeElements.clrScheme[cp.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 fp(){}function dp(){}var up=/]*)>[\s\S]*<\/a:clrScheme>/,pp=/]*)>[\s\S]*<\/a:fontScheme>/,gp=/]*)>[\s\S]*<\/a:fmtScheme>/;function xp(e,r,t){r.themeElements={};var a;[["clrScheme",up,hp],["fontScheme",pp,fp],["fmtScheme",gp,dp]].forEach(function(i){if(!(a=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](a,r,t)})}var mp=/]*)>[\s\S]*<\/a:themeElements>/;function Sl(e,r){(!e||e.length===0)&&(e=vp());var t,a={};if(!(t=e.match(mp)))throw new Error("themeElements not found in theme");return xp(t[0],a,r),a.raw=e,a}function vp(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]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]='',t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]='',t[t.length]="",t[t.length]="",t[t.length]="",t[t.length]="",t.join("")}function yp(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 Tp(e){return e.read_shift(4)}function kp(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=bp(e,4);break;case 2:r.xclrValue=fl(e);break;case 3:r.xclrValue=Tp(e);break;case 4:e.l+=4;break}return e.l+=8,r}function bp(e,r){return Nt(e,r)}function _p(e,r){return Nt(e,r)}function wp(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]=kp(e);break;case 6:a[1]=_p(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 Sp(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(wp(e,t-e.l));return{ixfe:a,ext:s}}function Ap(e,r){r.forEach(function(t){switch(t[0]){}})}function Ep(e,r){return{flags:e.read_shift(4),version:e.read_shift(4),name:Bt(e)}}function Cp(e){for(var r=[],t=e.read_shift(4);t-- >0;)r.push([e.read_shift(4),e.read_shift(4)]);return r}function Mp(e){return e.l+=4,e.read_shift(4)!=0}function Dp(e,r,t){var a={Types:[],Cell:[],Value:[]},i=t||{},s=[],o=!1,c=2;return Dr(e,function(u,_,m){switch(m){case 335:a.Types.push({name:u.name});break;case 51:u.forEach(function(L){c==1?a.Cell.push({type:a.Types[L[0]-1].name,index:L[1]}):c==0&&a.Value.push({type:a.Types[L[0]-1].name,index:L[1]})});break;case 337:c=u?1:0;break;case 338:c=2;break;case 35:s.push(m),o=!0;break;case 36:s.pop(),o=!1;break;default:if(!_.T){if(!o||i.WTF&&s[s.length-1]!=35)throw new Error("Unexpected record 0x"+m.toString(16))}}}),a}function Op(e,r,t){var a={Types:[],Cell:[],Value:[]};if(!e)return a;var i=!1,s=2,o;return e.replace(jt,function(c){var u=Xe(c);switch(_r(u[0])){case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":s=2;break;case"":s=2;break;case"":case"":case"":break;case"":i=!1;break;case"":case"":break;case"]*r:id="([^"]*)"/)||["",""])[1];return r["!id"][t].Target}function Rn(e,r,t,a){var i=Array.isArray(e),s;r.forEach(function(o){var c=Vt(o.ref);if(i?(e[c.r]||(e[c.r]=[]),s=e[c.r][c.c]):s=e[o.ref],!s){s={t:"z"},i?e[c.r][c.c]=s:e[o.ref]=s;var u=dt(e["!ref"]||"BDWGO1000001:A1");u.s.r>c.r&&(u.s.r=c.r),u.e.rc.c&&(u.s.c=c.c),u.e.c=0;--L){if(!t&&s.c[L].T)return;t&&!s.c[L].T&&s.c.splice(L,1)}if(t&&a){for(L=0;L/))return[];var t=[],a=[],i=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach(function(o){if(!(o===""||o.trim()==="")){var c=o.match(/<(?:\w+:)?author[^>]*>(.*)/);c&&t.push(c[1])}});var s=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return s&&s[1]&&s[1].split(/<\/\w*:?comment>/).forEach(function(o){if(!(o===""||o.trim()==="")){var c=o.match(/<(?:\w+:)?comment[^>]*>/);if(c){var u=Xe(c[0]),_={author:u.authorId&&t[u.authorId]||"sheetjsghost",ref:u.ref,guid:u.guid},m=Vt(u.ref);if(!(r.sheetRows&&r.sheetRows<=m.r)){var L=o.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),j=!!L&&!!L[1]&&Es(L[1])||{r:"",t:"",h:""};_.r=j.r,j.r==""&&(j.t=j.h=""),_.t=(j.t||"").replace(/\r\n/g,` `).replace(/\r/g,` `),r.cellHTML&&(_.h=j.h),a.push(_)}}}}),a}function Np(e,r){var t=[],a=!1,i={},s=0;return e.replace(jt,function(c,u){var _=Xe(c);switch(_r(_[0])){case"":break;case"":i.t!=null&&t.push(i);break;case"":case"":i.t=e.slice(s,u).replace(/\r\n/g,` `).replace(/\r/g,` `);break;case"":a=!0;break;case"":a=!1;break;case"":case"":case"":break;case"":a=!1;break;default:if(!a&&r.WTF)throw new Error("unrecognized "+_[0]+" in threaded comments")}return c}),t}function jp(e,r){var t=[],a=!1;return e.replace(jt,function(s){var o=Xe(s);switch(_r(o[0])){case"":break;case"":break;case"":case"":case"":break;case"":a=!1;break;default:if(!a&&r.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return s}),t}function Up(e){var r={};r.iauthor=e.read_shift(4);var t=ai(e);return r.rfx=t.s,r.ref=Ye(t.s),e.l+=16,r}var Hp=Bt;function Wp(e,r){var t=[],a=[],i={},s=!1;return Dr(e,function(c,u,_){switch(_){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"+_.toString(16))}}}),t}var zp="application/vnd.ms-office.vbaProject";function Gp(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 Xp(){return{"!type":"dialog"}}function Vp(){return{"!type":"dialog"}}function Yp(){return{"!type":"macro"}}function $p(){return{"!type":"macro"}}var gi=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 _=s.length>0?parseInt(s,10)|0:0,m=o.length>0?parseInt(o,10)|0:0;return c?m+=r.c:--m,u?_+=r.r:--_,i+(c?"":"$")+yt(m)+(u?"":"$")+Dt(_)}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,Kp=function(){return function(r,t){return r.replace(Al,function(a,i,s,o,c,u){var _=ks(o)-(s?0:t.c),m=Ts(u)-(c?0:t.r),L=m==0?"":c?m+1:"["+m+"]",j=_==0?"":s?_+1:"["+_+"]";return i+"R"+L+"C"+j})}}();function El(e,r){return e.replace(Al,function(t,a,i,s,o,c){return a+(i=="$"?i+s:yt(ks(s)+r.c))+(o=="$"?o+c:Dt(Ts(c)+r.r))})}function qp(e,r,t){var a=_i(r),i=a.s,s=Vt(t),o={r:s.r-i.r,c:s.c-i.c};return El(e,o)}function Zp(e){return e.length!=1}function Bn(e){return e.replace(/_xlfn\./g,"")}function gt(e){e.l+=1}function Hr(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=Hr(e,2),c=Hr(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=Hr(e,2),t=Hr(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 Jp(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=Hr(e,2),o=Hr(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 Qp(e);var a=e.read_shift(t&&t.biff==12?4:2),i=Hr(e,2);return{r:a,c:i[0],cRel:i[1],rRel:i[2]}}function Qp(e){var r=Hr(e,2),t=e.read_shift(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function eg(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 tg(e,r,t){var a=t&&t.biff?t.biff:8;if(a>=2&&a<=5)return rg(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 rg(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 ig(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 ag(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 sg(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 ng(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 og(e,r,t){var a=(e[e.l++]&96)>>5,i=Jp(e,r-1,t);return[a,i]}function lg(e,r,t){var a=(e[e.l++]&96)>>5;return e.l+=t.biff==2?6:t.biff==12?14:7,[a]}function Nn(e){var r=e[e.l+1]&1,t=1;return e.l+=4,[r,t]}function cg(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 hg(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 fg(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 dg(e){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(2)]}function ug(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 pg(e){return e.read_shift(2),Ol(e)}function gg(e){return e.read_shift(2),Ol(e)}function xg(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var i=Dl(e,0,t);return[a,i]}function mg(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var i=tg(e,0,t);return[a,i]}function vg(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 yg(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[Tx[i],Ll[i],a]}function Tg(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)]:kg(e);return[i,(s[0]===0?Ll:yx)[s[1]]]}function kg(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function bg(e,r,t){e.l+=t&&t.biff==2?3:4}function _g(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 wg(e){return e.l++,si[e.read_shift(1)]}function Sg(e){return e.l++,e.read_shift(2)}function Ag(e){return e.l++,e.read_shift(1)!==0}function Eg(e){return e.l++,It(e)}function Cg(e,r,t){return e.l++,Qi(e,r-1,t)}function Mg(e,r){var t=[e.read_shift(1)];if(r==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break}switch(t[0]){case 4:t[1]=ut(e,1)?"TRUE":"FALSE",r!=12&&(e.l+=7);break;case 37:case 16:t[1]=si[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]=ni(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function Dg(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?ai:Oa)(e));return i}function Og(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]=Mg(e,t.biff);return o}function Pg(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 Fg(e,r,t){if(t.biff==5)return Lg(e);var a=e.read_shift(1)>>>5&3,i=e.read_shift(2),s=e.read_shift(4);return[a,i,s]}function Lg(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 Ig(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 Rg(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 Bg(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 Ng(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 jg=Nt,Ug=Nt,Hg=Nt;function ta(e,r,t){return e.l+=2,[eg(e)]}function Ms(e){return e.l+=6,[]}var Wg=ta,zg=Ms,Gg=Ms,Xg=ta;function Pl(e){return e.l+=2,[mt(e),e.read_shift(2)&1]}var Vg=ta,Yg=Pl,$g=Ms,Kg=ta,qg=ta,Zg=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Jg(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=Zg[t>>2&31];return{ixti:r,coltype:t&3,rt:o,idx:a,c:i,C:s}}function Qg(e){return e.l+=2,[e.read_shift(4)]}function ex(e,r,t){return e.l+=5,e.l+=2,e.l+=t.biff==2?1:4,["PTGSHEET"]}function tx(e,r,t){return e.l+=t.biff==2?4:5,["PTGENDSHEET"]}function rx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function ix(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function ax(e){return e.l+=4,[0,0]}var jn={1:{n:"PtgExp",f:_g},2:{n:"PtgTbl",f:Hg},3:{n:"PtgAdd",f:gt},4:{n:"PtgSub",f:gt},5:{n:"PtgMul",f:gt},6:{n:"PtgDiv",f:gt},7:{n:"PtgPower",f:gt},8:{n:"PtgConcat",f:gt},9:{n:"PtgLt",f:gt},10:{n:"PtgLe",f:gt},11:{n:"PtgEq",f:gt},12:{n:"PtgGe",f:gt},13:{n:"PtgGt",f:gt},14:{n:"PtgNe",f:gt},15:{n:"PtgIsect",f:gt},16:{n:"PtgUnion",f:gt},17:{n:"PtgRange",f:gt},18:{n:"PtgUplus",f:gt},19:{n:"PtgUminus",f:gt},20:{n:"PtgPercent",f:gt},21:{n:"PtgParen",f:gt},22:{n:"PtgMissArg",f:gt},23:{n:"PtgStr",f:Cg},26:{n:"PtgSheet",f:ex},27:{n:"PtgEndSheet",f:tx},28:{n:"PtgErr",f:wg},29:{n:"PtgBool",f:Ag},30:{n:"PtgInt",f:Sg},31:{n:"PtgNum",f:Eg},32:{n:"PtgArray",f:lg},33:{n:"PtgFunc",f:yg},34:{n:"PtgFuncVar",f:Tg},35:{n:"PtgName",f:Pg},36:{n:"PtgRef",f:xg},37:{n:"PtgArea",f:ig},38:{n:"PtgMemArea",f:Ig},39:{n:"PtgMemErr",f:jg},40:{n:"PtgMemNoMem",f:Ug},41:{n:"PtgMemFunc",f:Rg},42:{n:"PtgRefErr",f:Bg},43:{n:"PtgAreaErr",f:sg},44:{n:"PtgRefN",f:mg},45:{n:"PtgAreaN",f:og},46:{n:"PtgMemAreaN",f:rx},47:{n:"PtgMemNoMemN",f:ix},57:{n:"PtgNameX",f:Fg},58:{n:"PtgRef3d",f:vg},59:{n:"PtgArea3d",f:ag},60:{n:"PtgRefErr3d",f:Ng},61:{n:"PtgAreaErr3d",f:ng},255:{}},sx={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},nx={1:{n:"PtgElfLel",f:Pl},2:{n:"PtgElfRw",f:Kg},3:{n:"PtgElfCol",f:Wg},6:{n:"PtgElfRwV",f:qg},7:{n:"PtgElfColV",f:Xg},10:{n:"PtgElfRadical",f:Vg},11:{n:"PtgElfRadicalS",f:$g},13:{n:"PtgElfColS",f:zg},15:{n:"PtgElfColSV",f:Gg},16:{n:"PtgElfRadicalLel",f:Yg},25:{n:"PtgList",f:Jg},29:{n:"PtgSxName",f:Qg},255:{}},ox={0:{n:"PtgAttrNoop",f:ax},1:{n:"PtgAttrSemi",f:ug},2:{n:"PtgAttrIf",f:fg},4:{n:"PtgAttrChoose",f:cg},8:{n:"PtgAttrGoto",f:hg},16:{n:"PtgAttrSum",f:bg},32:{n:"PtgAttrBaxcel",f:Nn},33:{n:"PtgAttrBaxcel",f:Nn},64:{n:"PtgAttrSpace",f:pg},65:{n:"PtgAttrSpaceSemi",f:gg},128:{n:"PtgAttrIfError",f:dg},255:{}};function ra(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]=Og(e,0,a),s.push(t[o][1]);break;case"PtgMemArea":t[o][2]=Dg(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 ia(e,r,t){for(var a=e.l+r,i,s,o=[];a!=e.l;)r=a-e.l,s=e[e.l],i=jn[s]||jn[sx[s]],(s===24||s===25)&&(i=(s===24?nx:ox)[e[e.l+1]]),!i||!i.f?Nt(e,r):o.push([i.n,i.f(e,r,t)]);return o}function lx(e){for(var r=[],t=0;t=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function hx(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 Un(e,r,t){var a=Fl(e,r,t);return a=="#REF"?a:hx(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,_,m,L=0,j=0,A,p="";if(!e[0]||!e[0][0])return"";for(var g=-1,w="",D=0,E=e[0].length;D=0){switch(e[0][g][1][0]){case 0:w=ht(" ",e[0][g][1][1]);break;case 1:w=ht("\r",e[0][g][1][1]);break;default:if(w="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][g][1][0])}_=_+w,g=-1}c.push(_+cx[N[0]]+u);break;case"PtgIsect":u=c.pop(),_=c.pop(),c.push(_+" "+u);break;case"PtgUnion":u=c.pop(),_=c.pop(),c.push(_+","+u);break;case"PtgRange":u=c.pop(),_=c.pop(),c.push(_+":"+u);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":m=Li(N[1][1],o,i),c.push(Ii(m,s));break;case"PtgRefN":m=t?Li(N[1][1],t,i):N[1][1],c.push(Ii(m,s));break;case"PtgRef3d":L=N[1][1],m=Li(N[1][2],o,i),p=Un(a,L,i),c.push(p+"!"+Ii(m,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":A=Tn(N[1][1],t?{s:t}:o,i),c.push(Ha(A,i));break;case"PtgArea":A=Tn(N[1][1],o,i),c.push(Ha(A,i));break;case"PtgArea3d":L=N[1][1],A=N[1][2],p=Un(a,L,i),c.push(p+"!"+Ha(A,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],I=P?P.Name:"SH33TJSNAME"+String(j);I&&I.slice(0,6)=="_xlfn."&&!i.xlfn&&(I=I.slice(6)),c.push(I);break;case"PtgNameX":var v=N[1][1];j=N[1][2];var B;if(i.biff<=5)v<0&&(v=-v),a[v]&&(B=a[v][j]);else{var T="";if(((a[v]||[])[0]||[])[0]==14849||(((a[v]||[])[0]||[])[0]==1025?a[v][j]&&a[v][j].itab>0&&(T=a.SheetNames[a[v][j].itab-1]+"!"):T=a.SheetNames[j-1]+"!"),a[v]&&a[v][j])T+=a[v][j].Name;else if(a[0]&&a[0][j])T+=a[0][j].Name;else{var S=(Fl(a,v,i)||"").split(";;");S[j-1]?T=S[j-1]:T+="SH33TJSERRX"}c.push(T);break}B||(B={Name:"SH33TJSERRY"}),c.push(B.Name);break;case"PtgParen":var x="(",h=")";if(g>=0){switch(w="",e[0][g][1][0]){case 2:x=ht(" ",e[0][g][1][1])+x;break;case 3:x=ht("\r",e[0][g][1][1])+x;break;case 4:h=ht(" ",e[0][g][1][1])+h;break;case 5:h=ht("\r",e[0][g][1][1])+h;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][g][1][0])}g=-1}c.push(x+c.pop()+h);break;case"PtgRefErr":c.push("#REF!");break;case"PtgRefErr3d":c.push("#REF!");break;case"PtgExp":m={c:N[1][1],r:N[1][0]};var n={c:t.c,r:t.r};if(a.sharedf[Ye(m)]){var l=a.sharedf[Ye(m)];c.push(Lt(l,o,n,a,i))}else{var f=!1;for(u=0;u!=a.arrayf.length;++u)if(_=a.arrayf[u],!(m.c<_[0].s.c||m.c>_[0].e.c)&&!(m.r<_[0].s.r||m.r>_[0].e.r)){c.push(Lt(_[1],o,n,a,i)),f=!0;break}f||c.push(N[1])}break;case"PtgArray":c.push("{"+lx(N[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=D;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&&g>=0&&k.indexOf(e[0][D][0])==-1){N=e[0][g];var y=!0;switch(N[1][0]){case 4:y=!1;case 0:w=ht(" ",N[1][1]);break;case 5:y=!1;case 1:w=ht("\r",N[1][1]);break;default:if(w="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+N[1][0])}c.push((y?w:"")+c.pop()+(y?"":w)),g=-1}}if(c.length>1&&i.WTF)throw new Error("bad formula stack");return c[0]}function fx(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=ia(e,o,t);return r!==o+i&&(s=ra(e,r-o-i,c,t)),e.l=a,[c,s]}function dx(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=ia(e,o,t);return r!==o+i&&(s=ra(e,r-o-i,c,t)),e.l=a,[c,s]}function ux(e,r,t,a){var i=e.l+r,s=ia(e,a,t),o;return i!==e.l&&(o=ra(e,i-e.l,s,t)),[s,o]}function px(e,r,t){var a=e.l+r,i,s=e.read_shift(2),o=ia(e,s,t);return s==65535?[[],Nt(e,r-2)]:(r!==s+2&&(i=ra(e,a-s-2,o,t)),[o,i])}function gx(e){var r;if(Ar(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 Ga(e,r,t){var a=e.l+r,i=wr(e);t.biff==2&&++e.l;var s=gx(e),o=e.read_shift(1);t.biff!=2&&(e.read_shift(1),t.biff>=5&&e.read_shift(4));var c=dx(e,a-e.l,t);return{cell:i,val:s[0],formula:c,shared:o>>3&1,tt:s[1]}}function Pa(e,r,t){var a=e.read_shift(4),i=ia(e,a,t),s=e.read_shift(4),o=s>0?ra(e,s,i,t):null;return[i,o]}var xx=Pa,Fa=Pa,mx=Pa,vx=Pa,yx={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"},Tx={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 Hn(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 Xa(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 ji={},xi={};function Ui(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=St(e.v)),(!a||a.cellText!==!1)&&e.t!=="z")try{if(Ke[r]==null&&$r(bf[r]||"General",r),e.t==="e")e.w=e.w||si[e.v];else if(r===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=zi(e.v);else if(e.t==="d"){var o=$t(e.v);(o|0)===o?e.w=o.toString(10):e.w=zi(o)}else{if(e.v===void 0)return"";e.w=qr(e.v,xi)}else e.t==="d"?e.w=fr(r,$t(e.v),xi):e.w=fr(r,e.v,xi)}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=Ta(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=Ta(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 kx(e,r){var t=dt(r);t.s.r<=t.e.r&&t.s.c<=t.e.c&&t.s.r>=0&&t.s.c>=0&&(e["!ref"]=tt(t))}var bx=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,_x=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,wx=/<(?:\w:)?hyperlink [^>]*>/mg,Sx=/"(\w*:\w*)"/,Ax=/<(?:\w:)?col\b[^>]*[\/]?>/g,Ex=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,Cx=/<(?:\w:)?pageMargins[^>]*\/>/g,Rl=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Mx=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Dx=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Ox(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}},_="",m="",L=e.match(_x);L?(_=e.slice(0,L.index),m=e.slice(L.index+L[0].length)):_=m=e;var j=_.match(Rl);j?Ds(j[0],c,i,t):(j=_.match(Mx))&&Px(j[0],j[1]||"",c,i,t);var A=(_.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(A>0){var p=_.slice(A,A+50).match(Sx);p&&kx(c,p[1])}var g=_.match(Dx);g&&g[1]&&Nx(g[1],i);var w=[];if(r.cellStyles){var D=_.match(Ax);D&&Ix(w,D)}L&&jx(L[1],c,r,u,s,o);var E=m.match(Ex);E&&(c["!autofilter"]=Rx(E[0]));var N=[],M=m.match(bx);if(M)for(A=0;A!=M.length;++A)N[A]=dt(M[A].slice(M[A].indexOf('"')+1));var b=m.match(wx);b&&Fx(c,b,a);var F=m.match(Cx);if(F&&(c["!margins"]=Lx(Xe(F[0]))),!c["!ref"]&&u.e.c>=u.s.c&&u.e.r>=u.s.r&&(c["!ref"]=tt(u)),r.sheetRows>0&&c["!ref"]){var P=dt(c["!ref"]);r.sheetRows<=+P.e.r&&(P.e.r=r.sheetRows-1,P.e.r>u.e.r&&(P.e.r=u.e.r),P.e.ru.e.c&&(P.e.c=u.e.c),P.e.c0&&(c["!cols"]=w),N.length>0&&(c["!merges"]=N),c}function Ds(e,r,t,a){var i=Xe(e);t.Sheets[a]||(t.Sheets[a]={}),i.codeName&&(t.Sheets[a].CodeName=rt(st(i.codeName)))}function Px(e,r,t,a,i){Ds(e.slice(0,e.indexOf(">")),t,a,i)}function Fx(e,r,t){for(var a=Array.isArray(e),i=0;i!=r.length;++i){var s=Xe(st(r[i]),!0);if(!s.ref)return;var o=((t||{})["!id"]||[])[s.id];o?(s.Target=o.Target,s.location&&(s.Target+="#"+rt(s.location))):(s.Target="#"+rt(s.location),o={Target:s.Target,TargetMode:"Internal"}),s.Rel=o,s.tooltip&&(s.Tooltip=s.tooltip,delete s.tooltip);for(var c=dt(s.ref),u=c.s.r;u<=c.e.r;++u)for(var _=c.s.c;_<=c.e.c;++_){var m=Ye({c:_,r:u});a?(e[u]||(e[u]=[]),e[u][_]||(e[u][_]={t:"z",v:void 0}),e[u][_].l=s):(e[m]||(e[m]={t:"z",v:void 0}),e[m].l=s)}}}function Lx(e){var r={};return["left","right","top","bottom","header","footer"].forEach(function(t){e[t]&&(r[t]=parseFloat(e[t]))}),r}function Ix(e,r){for(var t=!1,a=0;a!=r.length;++a){var i=Xe(r[a],!0);i.hidden&&(i.hidden=nt(i.hidden));var s=parseInt(i.min,10)-1,o=parseInt(i.max,10)-1;for(i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!t&&i.width&&(t=!0,Cs(i.width)),vi(i);s<=o;)e[s++]=Mt(i)}}function Rx(e){var r={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return r}var Bx=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function Nx(e,r){r.Views||(r.Views=[{}]),(e.match(Bx)||[]).forEach(function(t,a){var i=Xe(t);r.Views[a]||(r.Views[a]={}),+i.zoomScale&&(r.Views[a].zoom=+i.zoomScale),nt(i.rightToLeft)&&(r.Views[a].RTL=!0)})}var jx=function(){var e=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/,t=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,s=Gi("v"),o=Gi("f");return function(u,_,m,L,j,A){for(var p=0,g="",w=[],D=[],E=0,N=0,M=0,b="",F,P,I=0,v=0,B,T,S=0,x=0,h=Array.isArray(A.CellXf),n,l=[],f=[],k=Array.isArray(_),y=[],G={},U=!1,O=!!m.sheetStubs,H=u.split(r),z=0,W=H.length;z!=W;++z){g=H[z].trim();var d=g.length;if(d!==0){var R=0;e:for(p=0;p":if(g[p-1]!="/"){++p;break e}if(m&&m.cellStyles){if(P=Xe(g.slice(R,p),!0),I=P.r!=null?parseInt(P.r,10):I+1,v=-1,m.sheetRows&&m.sheetRows=p)break;if(P=Xe(g.slice(R,p),!0),I=P.r!=null?parseInt(P.r,10):I+1,v=-1,!(m.sheetRows&&m.sheetRowsI-1&&(L.s.r=I-1),L.e.r":"")+g,D!=null&&D.length===2){for(E=0,b=D[1],N=0;N!=b.length&&!((M=b.charCodeAt(N)-64)<1||M>26);++N)E=26*E+M;--E,v=E}else++v;for(N=0;N!=g.length&&g.charCodeAt(N)!==62;++N);if(++N,P=Xe(g.slice(0,N),!0),P.r||(P.r=Ye({r:I-1,c:v})),b=g.slice(N),F={t:""},(D=b.match(s))!=null&&D[1]!==""&&(F.v=rt(D[1])),m.cellFormula){if((D=b.match(o))!=null&&D[1]!==""){if(F.f=rt(st(D[1])).replace(/\r\n/g,` `),m.xlfn||(F.f=Bn(F.f)),D[0].indexOf('t="array"')>-1)F.F=(b.match(i)||[])[1],F.F.indexOf(":")>-1&&l.push([dt(F.F),F.F]);else if(D[0].indexOf('t="shared"')>-1){T=Xe(D[0]);var J=rt(st(D[1]));m.xlfn||(J=Bn(J)),f[parseInt(T.si,10)]=[T,J,P.r]}}else(D=b.match(/]*\/>/))&&(T=Xe(D[0]),f[T.si]&&(F.f=qp(f[T.si][1],f[T.si][2],P.r)));var Y=Vt(P.r);for(N=0;N=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(O)F.t="z";else continue;else F.t=P.t||"n";switch(L.s.c>v&&(L.s.c=v),L.e.c"u"){if(!O)continue;F.t="z"}else B=ji[parseInt(F.v,10)],F.v=B.t,F.r=B.r,m.cellHTML&&(F.h=B.h);break;case"str":F.t="s",F.v=F.v!=null?st(F.v):"",m.cellHTML&&(F.h=ms(F.v));break;case"inlineStr":D=b.match(a),F.t="s",D!=null&&(B=Es(D[1]))?(F.v=B.t,m.cellHTML&&(F.h=B.h)):F.v="";break;case"b":F.v=nt(F.v);break;case"d":m.cellDates?F.v=St(F.v,1):(F.v=$t(St(F.v,1)),F.t="n");break;case"e":(!m||m.cellText!==!1)&&(F.w=F.v),F.v=il[F.v];break}if(S=x=0,n=null,h&&P.s!==void 0&&(n=A.CellXf[P.s],n!=null&&(n.numFmtId!=null&&(S=n.numFmtId),m.cellStyles&&n.fillId!=null&&(x=n.fillId))),Il(F,S,x,m,j,A),m.cellDates&&h&&F.t=="n"&&bi(Ke[S])&&(F.t="d",F.v=Da(F.v)),P.cm&&m.xlmeta){var ee=(m.xlmeta.Cell||[])[+P.cm-1];ee&&ee.type=="XLDAPR"&&(F.D=!0)}if(k){var C=Vt(P.r);_[C.r]||(_[C.r]=[]),_[C.r][C.c]=F}else _[P.r]=F}}}}y.length>0&&(_["!rows"]=y)}}();function Ux(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 Hx=ai;function Wx(){}function zx(e,r){var t={},a=e[e.l];return++e.l,t.above=!(a&64),t.left=!(a&128),e.l+=18,t.name=f0(e),t}function Gx(e){var r=ur(e);return[r]}function Xx(e){var r=ii(e);return[r]}function Vx(e){var r=ur(e),t=e.read_shift(1);return[r,t,"b"]}function Yx(e){var r=ii(e),t=e.read_shift(1);return[r,t,"b"]}function $x(e){var r=ur(e),t=e.read_shift(1);return[r,t,"e"]}function Kx(e){var r=ii(e),t=e.read_shift(1);return[r,t,"e"]}function qx(e){var r=ur(e),t=e.read_shift(4);return[r,t,"s"]}function Zx(e){var r=ii(e),t=e.read_shift(4);return[r,t,"s"]}function Jx(e){var r=ur(e),t=It(e);return[r,t,"n"]}function Bl(e){var r=ii(e),t=It(e);return[r,t,"n"]}function Qx(e){var r=ur(e),t=ws(e);return[r,t,"n"]}function em(e){var r=ii(e),t=ws(e);return[r,t,"n"]}function tm(e){var r=ur(e),t=bs(e);return[r,t,"is"]}function rm(e){var r=ur(e),t=Bt(e);return[r,t,"str"]}function im(e){var r=ii(e),t=Bt(e);return[r,t,"str"]}function am(e,r,t){var a=e.l+r,i=ur(e);i.r=t["!row"];var s=e.read_shift(1),o=[i,s,"b"];if(t.cellFormula){e.l+=2;var c=Fa(e,a-e.l,t);o[3]=Lt(c,null,i,t.supbooks,t)}else e.l=a;return o}function sm(e,r,t){var a=e.l+r,i=ur(e);i.r=t["!row"];var s=e.read_shift(1),o=[i,s,"e"];if(t.cellFormula){e.l+=2;var c=Fa(e,a-e.l,t);o[3]=Lt(c,null,i,t.supbooks,t)}else e.l=a;return o}function nm(e,r,t){var a=e.l+r,i=ur(e);i.r=t["!row"];var s=It(e),o=[i,s,"n"];if(t.cellFormula){e.l+=2;var c=Fa(e,a-e.l,t);o[3]=Lt(c,null,i,t.supbooks,t)}else e.l=a;return o}function om(e,r,t){var a=e.l+r,i=ur(e);i.r=t["!row"];var s=Bt(e),o=[i,s,"str"];if(t.cellFormula){e.l+=2;var c=Fa(e,a-e.l,t);o[3]=Lt(c,null,i,t.supbooks,t)}else e.l=a;return o}var lm=ai;function cm(e,r){var t=e.l+r,a=ai(e),i=_s(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 hm(){}function fm(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=xx(e,a-e.l,t);o[1]=c}else e.l=a;return o}function dm(e,r,t){var a=e.l+r,i=ai(e),s=[i];if(t.cellFormula){var o=vx(e,a-e.l,t);s[1]=o,e.l=a}else e.l=a;return s}var um=["left","right","top","bottom","header","footer"];function pm(e){var r={};return um.forEach(function(t){r[t]=It(e)}),r}function gm(e){var r=e.read_shift(2);return e.l+=28,{RTL:r&32}}function xm(){}function mm(){}function vm(e,r,t,a,i,s,o){if(!e)return e;var c=r||{};a||(a={"!id":{}});var u=c.dense?[]:{},_,m={s:{r:2e6,c:2e6},e:{r:0,c:0}},L=!1,j=!1,A,p,g,w,D,E,N,M,b,F=[];c.biff=12,c["!row"]=0;var P=0,I=!1,v=[],B={},T=c.supbooks||i.supbooks||[[]];if(T.sharedf=B,T.arrayf=v,T.SheetNames=i.SheetNames||i.Sheets.map(function(k){return k.name}),!c.supbooks&&(c.supbooks=T,i.Names))for(var S=0;S=O[0].s.r&&A.r<=O[0].e.r&&D>=O[0].s.c&&D<=O[0].e.c&&(p.F=tt(O[0]),I=!0)}!I&&y.length>3&&(p.f=y[3])}if(m.s.r>A.r&&(m.s.r=A.r),m.s.c>D&&(m.s.c=D),m.e.rA.r&&(m.s.r=A.r),m.s.c>D&&(m.s.c=D),m.e.r=y.s;)x[y.e--]={width:y.w/256,hidden:!!(y.flags&1),level:y.level},n||(n=!0,Cs(y.w/256)),vi(x[y.e+1]);break;case 161:u["!autofilter"]={ref:tt(y)};break;case 476:u["!margins"]=y;break;case 147:i.Sheets[t]||(i.Sheets[t]={}),y.name&&(i.Sheets[t].CodeName=y.name),(y.above||y.left)&&(u["!outline"]={above:y.above,left:y.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),y.RTL&&(i.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:L=!0;break;case 36:L=!1;break;case 37:L=!0;break;case 38:L=!1;break;default:if(!G.T){if(!L||c.WTF)throw new Error("Unexpected record 0x"+U.toString(16))}}},c),delete c.supbooks,delete c["!row"],!u["!ref"]&&(m.s.r<2e6||_&&(_.e.r>0||_.e.c>0||_.s.r>0||_.s.c>0))&&(u["!ref"]=tt(_||m)),c.sheetRows&&u["!ref"]){var f=dt(u["!ref"]);c.sheetRows<=+f.e.r&&(f.e.r=c.sheetRows-1,f.e.r>m.e.r&&(f.e.r=m.e.r),f.e.rm.e.c&&(f.e.c=m.e.c),f.e.c0&&(u["!merges"]=F),x.length>0&&(u["!cols"]=x),h.length>0&&(u["!rows"]=h),u}function ym(e){var r=[],t=e.match(/^/),a;(e.match(/(.*?)<\/c:pt>/mg)||[]).forEach(function(s){var o=s.match(/(.*)<\/c:v><\/c:pt>/);o&&(r[+o[1]]=t?+o[2]:o[2])});var i=rt((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/mg)||[]).forEach(function(s){a=s.replace(/<.*?>/g,"")}),[r,i,a]}function Tm(e,r,t,a,i,s){var o=s||{"!type":"chart"};if(!e)return s;var c=0,u=0,_="A",m={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(L){var j=ym(L);m.s.r=m.s.c=0,m.e.c=c,_=yt(c),j[0].forEach(function(A,p){o[_+Dt(p)]={t:"n",v:A,z:j[1]},u=p}),m.e.r0&&(o["!ref"]=tt(m)),o}function km(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&&Ds(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 bm(e,r){e.l+=10;var t=Bt(e);return{name:t}}function _m(e,r,t,a,i){if(!e)return e;a||(a={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},o=!1;return Dr(e,function(u,_,m){switch(m){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(!(_.T>0)){if(!(_.T<0)){if(!o||r.WTF)throw new Error("Unexpected record 0x"+m.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"]],wm=[["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"]],Sm=[],Am=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Wn(e,r){for(var t=0;t!=e.length;++t)for(var a=e[t],i=0;i!=r.length;++i){var s=r[i];if(a[s[0]]==null)a[s[0]]=s[1];else switch(s[2]){case"bool":typeof a[s[0]]=="string"&&(a[s[0]]=nt(a[s[0]]));break;case"int":typeof a[s[0]]=="string"&&(a[s[0]]=parseInt(a[s[0]],10));break}}}function zn(e,r){for(var t=0;t!=r.length;++t){var a=r[t];if(e[a[0]]==null)e[a[0]]=a[1];else switch(a[2]){case"bool":typeof e[a[0]]=="string"&&(e[a[0]]=nt(e[a[0]]));break;case"int":typeof e[a[0]]=="string"&&(e[a[0]]=parseInt(e[a[0]],10));break}}}function jl(e){zn(e.WBProps,Nl),zn(e.CalcPr,Am),Wn(e.WBView,wm),Wn(e.Sheets,Sm),xi.date1904=nt(e.WBProps.date1904)}var Em="][*?/\\".split("");function Cm(e,r){if(e.length>31){if(r)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var t=!0;return Em.forEach(function(a){if(e.indexOf(a)!=-1){if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=!1}}),t}var Mm=/<\w+:workbook/;function Dm(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,_){var m=Xe(u);switch(_r(m[0])){case"":break;case"":case"":break;case"":break;case"":Nl.forEach(function(L){if(m[L[0]]!=null)switch(L[2]){case"bool":t.WBProps[L[0]]=nt(m[L[0]]);break;case"int":t.WBProps[L[0]]=parseInt(m[L[0]],10);break;default:t.WBProps[L[0]]=m[L[0]]}}),m.codeName&&(t.WBProps.CodeName=st(m.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete m[0],t.WBView.push(m);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":a=!1;break;case"":s.Ref=rt(st(e.slice(o,_))),t.Names.push(s);break;case"":break;case"":delete m[0],t.CalcPr=m;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":case"":break;case"":a=!1;break;case"":a=!0;break;case"":a=!1;break;case"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 Fm(e,r){var t={};return e.read_shift(4),t.ArchID=e.read_shift(4),e.l+=r-8,t}function Lm(e,r,t){var a=e.l+r;e.l+=4,e.l+=1;var i=e.read_shift(4),s=d0(e),o=mx(e,0,t),c=_s(e);e.l=a;var u={Name:s,Ptg:o};return i<268435455&&(u.Sheet=i),c&&(u.Comment=c),u}function Im(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=[],_a[16]={n:"BrtFRTArchID$",f:Fm},Dr(e,function(u,_,m){switch(m){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([m,u]):o[0]=[m,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(m),i=!0;break;case 36:a.pop(),i=!1;break;case 37:a.push(m),i=!0;break;case 38:a.pop(),i=!1;break;case 16:break;default:if(!_.T){if(!i||r.WTF&&a[a.length-1]!=37&&a[a.length-1]!=35)throw new Error("Unexpected record 0x"+m.toString(16))}}},r),jl(t),t.Names=s,t.supbooks=o,t}function Rm(e,r,t){return r.slice(-4)===".bin"?Im(e,t):Dm(e,t)}function Bm(e,r,t,a,i,s,o,c){return r.slice(-4)===".bin"?vm(e,a,t,i,s,o,c):Ox(e,a,t,i,s,o,c)}function Nm(e,r,t,a,i,s,o,c){return r.slice(-4)===".bin"?_m(e,a,t,i,s):km(e,a,t,i,s)}function jm(e,r,t,a,i,s,o,c){return r.slice(-4)===".bin"?Yp():$p()}function Um(e,r,t,a,i,s,o,c){return r.slice(-4)===".bin"?Xp():Vp()}function Hm(e,r,t,a){return r.slice(-4)===".bin"?lp(e,t,a):rp(e,t,a)}function Wm(e,r,t){return Sl(e,t)}function zm(e,r,t){return r.slice(-4)===".bin"?wu(e,t):bu(e,t)}function Gm(e,r,t){return r.slice(-4)===".bin"?Wp(e,t):Bp(e,t)}function Xm(e,r,t){return r.slice(-4)===".bin"?Lp(e):Pp(e)}function Vm(e,r,t,a){return t.slice(-4)===".bin"?Ip(e,r,t,a):void 0}function Ym(e,r,t){return r.slice(-4)===".bin"?Dp(e,r,t):Op(e,r,t)}var Ul=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Hl=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function pr(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 $m(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 Hi;function Km(e,r){var t=Hi[e]||rt(e);return t==="General"?qr(r):fr(t,r)}function qm(e,r,t,a){var i=a;switch((t[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=nt(a);break;case"i2":case"int":i=parseInt(a,10);break;case"r4":case"float":i=parseFloat(a);break;case"date":case"dateTime.tz":i=St(a);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+t[0])}e[rt(r)]=i}function Zm(e,r,t){if(e.t!=="z"){if(!t||t.cellText!==!1)try{e.t==="e"?e.w=e.w||si[e.v]:r==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=zi(e.v):e.w=qr(e.v):e.w=Km(r||"General",e.v)}catch(s){if(t.WTF)throw s}try{var a=Hi[r]||r||"General";if(t.cellNF&&(e.z=a),t.cellDates&&e.t=="n"&&bi(a)){var i=Yr(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 Jm(e,r,t){if(t.cellStyles&&r.Interior){var a=r.Interior;a.Pattern&&(a.patternType=qu[a.Pattern]||a.Pattern)}e[r.ID]=r}function Qm(e,r,t,a,i,s,o,c,u,_){var m="General",L=a.StyleID,j={};_=_||{};var A=[],p=0;for(L===void 0&&c&&(L=c.StyleID),L===void 0&&o&&(L=o.StyleID);s[L]!==void 0&&(s[L].nf&&(m=s[L].nf),s[L].Interior&&A.push(s[L].Interior),!!s[L].Parent);)L=s[L].Parent;switch(t.Type){case"Boolean":a.t="b",a.v=nt(e);break;case"String":a.t="s",a.r=fn(rt(e)),a.v=e.indexOf("<")>-1?rt(r||e).replace(/<.*?>/g,""):a.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),a.v=(St(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),a.v!==a.v?a.v=rt(e):a.v<60&&(a.v=a.v-1),(!m||m=="General")&&(m="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],_.cellText!==!1&&(a.w=e);break;default:e==""&&r==""?a.t="z":(a.t="s",a.v=fn(r||e));break}if(Zm(a,m,_),_.cellFormula!==!1)if(a.Formula){var g=rt(a.Formula);g.charCodeAt(0)==61&&(g=g.slice(1)),a.f=gi(g,i),delete a.Formula,a.ArrayRange=="RC"?a.F=gi("RC:RC",i):a.ArrayRange&&(a.F=gi(a.ArrayRange,i),u.push([dt(a.F),a.F]))}else for(p=0;p=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]);_.cellStyles&&(A.forEach(function(w){!j.patternType&&w.patternType&&(j.patternType=w.patternType)}),a.s=j),a.StyleID!==void 0&&(a.ixfe=a.StyleID)}function e1(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 Va(e,r){var t=r||{};Co();var a=Mi(vs(e));(t.type=="binary"||t.type=="array"||t.type=="base64")&&(a=st(a));var i=a.slice(0,1024).toLowerCase(),s=!1;if(i=i.replace(/".*?"/g,""),(i.indexOf(">")&1023)>Math.min(i.indexOf(",")&1023,i.indexOf(";")&1023)){var o=Mt(t);return o.type="string",Vi.to_workbook(a,o)}if(i.indexOf("=0&&(s=!0)}),s)return c1(a,t);Hi={"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=[],_,m={},L=[],j=t.dense?[]:{},A="",p={},g={},w=pr(''),D=0,E=0,N=0,M={s:{r:2e6,c:2e6},e:{r:0,c:0}},b={},F={},P="",I=0,v=[],B={},T={},S=0,x=[],h=[],n={},l=[],f,k=!1,y=[],G=[],U={},O=0,H=0,z={Sheets:[],WBProps:{date1904:!1}},W={};Xi.lastIndex=0,a=a.replace(//mg,"");for(var d="";c=Xi.exec(a);)switch(c[3]=(d=c[3]).toLowerCase()){case"data":if(d=="data"){if(c[1]==="/"){if((_=u.pop())[0]!==c[3])throw new Error("Bad state: "+_.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&u.push([c[3],!0]);break}if(u[u.length-1][1])break;c[1]==="/"?Qm(a.slice(D,c.index),P,w,u[u.length-1][0]=="comment"?n:p,{c:E,r:N},b,l[E],g,y,t):(P="",w=pr(c[0]),D=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][E]=p):j[yt(E)+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)&&(O=E+(parseInt(p.MergeAcross,10)|0),H=N+(parseInt(p.MergeDown,10)|0),v.push({s:{c:E,r:N},e:{c:O,r:H}})),!t.sheetStubs)p.MergeAcross?E=O+1:++E;else if(p.MergeAcross||p.MergeDown){for(var R=E;R<=O;++R)for(var q=N;q<=H;++q)(R>E||q>N)&&(t.dense?(j[q]||(j[q]=[]),j[q][R]={t:"z"}):j[yt(R)+Dt(q)]={t:"z"});E=O+1}else++E;else p=$m(c[0]),p.Index&&(E=+p.Index-1),EM.e.c&&(M.e.c=E),c[0].slice(-2)==="/>"&&++E,h=[];break;case"row":c[1]==="/"||c[0].slice(-2)==="/>"?(NM.e.r&&(M.e.r=N),c[0].slice(-2)==="/>"&&(g=pr(c[0]),g.Index&&(N=+g.Index-1)),E=0,++N):(g=pr(c[0]),g.Index&&(N=+g.Index-1),U={},(g.AutoFitHeight=="0"||g.Height)&&(U.hpx=parseInt(g.Height,10),U.hpt=wl(U.hpx),G[N]=U),g.Hidden=="1"&&(U.hidden=!0,G[N]=U));break;case"worksheet":if(c[1]==="/"){if((_=u.pop())[0]!==c[3])throw new Error("Bad state: "+_.join("|"));L.push(A),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))),v.length&&(j["!merges"]=v),l.length>0&&(j["!cols"]=l),G.length>0&&(j["!rows"]=G),m[A]=j}else M={s:{r:2e6,c:2e6},e:{r:0,c:0}},N=E=0,u.push([c[3],!1]),_=pr(c[0]),A=rt(_.Name),j=t.dense?[]:{},v=[],y=[],G=[],W={name:A,Hidden:0},z.Sheets.push(W);break;case"table":if(c[1]==="/"){if((_=u.pop())[0]!==c[3])throw new Error("Bad state: "+_.join("|"))}else{if(c[0].slice(-2)=="/>")break;u.push([c[3],!1]),l=[],k=!1}break;case"style":c[1]==="/"?Jm(b,F,t):F=pr(c[0]);break;case"numberformat":F.nf=rt(pr(c[0]).Format||"General"),Hi[F.nf]&&(F.nf=Hi[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){$r(F.nf,J);break}}break;case"column":if(u[u.length-1][0]!=="table")break;if(f=pr(c[0]),f.Hidden&&(f.hidden=!0,delete f.Hidden),f.Width&&(f.wpx=parseInt(f.Width,10)),!k&&f.wpx>10){k=!0,zt=bl;for(var Y=0;Y0&&(V.Sheet=z.Sheets.length-1),z.Names.push(V);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(c[0].slice(-2)==="/>")break;c[1]==="/"?P+=a.slice(I,c.index):I=c.index+c[0].length;break;case"interior":if(!t.cellStyles)break;F.Interior=pr(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]==="/"?B0(B,d,a.slice(S,c.index)):S=c.index+c[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(c[1]==="/"){if((_=u.pop())[0]!==c[3])throw new Error("Bad state: "+_.join("|"))}else u.push([c[3],!1]);break;case"comment":if(c[1]==="/"){if((_=u.pop())[0]!==c[3])throw new Error("Bad state: "+_.join("|"));e1(n),h.push(n)}else u.push([c[3],!1]),_=pr(c[0]),n={a:_.Author};break;case"autofilter":if(c[1]==="/"){if((_=u.pop())[0]!==c[3])throw new Error("Bad state: "+_.join("|"))}else if(c[0].charAt(c[0].length-2)!=="/"){var X=pr(c[0]);j["!autofilter"]={ref:gi(X.Range).replace(/\$/g,"")},u.push([c[3],!0])}break;case"name":break;case"datavalidation":if(c[1]==="/"){if((_=u.pop())[0]!==c[3])throw new Error("Bad state: "+_.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((_=u.pop())[0]!==c[3])throw new Error("Bad state: "+_.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 Kn(a,t);var Q=!0;switch(u[u.length-1][0]){case"officedocumentsettings":switch(c[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:Q=!1}break;case"componentoptions":switch(c[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:Q=!1}break;case"excelworkbook":switch(c[3]){case"date1904":z.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:Q=!1}break;case"workbookoptions":switch(c[3]){case"owcversion":break;case"height":break;case"width":break;default:Q=!1}break;case"worksheetoptions":switch(c[3]){case"visible":if(c[0].slice(-2)!=="/>")if(c[1]==="/")switch(a.slice(S,c.index)){case"SheetHidden":W.Hidden=1;break;case"SheetVeryHidden":W.Hidden=2;break}else S=c.index+c[0].length;break;case"header":j["!margins"]||Ui(j["!margins"]={},"xlml"),isNaN(+Xe(c[0]).Margin)||(j["!margins"].header=+Xe(c[0]).Margin);break;case"footer":j["!margins"]||Ui(j["!margins"]={},"xlml"),isNaN(+Xe(c[0]).Margin)||(j["!margins"].footer=+Xe(c[0]).Margin);break;case"pagemargins":var se=Xe(c[0]);j["!margins"]||Ui(j["!margins"]={},"xlml"),isNaN(+se.Top)||(j["!margins"].top=+se.Top),isNaN(+se.Left)||(j["!margins"].left=+se.Left),isNaN(+se.Right)||(j["!margins"].right=+se.Right),isNaN(+se.Bottom)||(j["!margins"].bottom=+se.Bottom);break;case"displayrighttoleft":z.Views||(z.Views=[]),z.Views[0]||(z.Views[0]={}),z.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":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]==="/"?qm(T,d,x,a.slice(S,c.index)):(x=c,S=c.index+c[0].length);break}if(t.WTF)throw"Unrecognized tag: "+c[3]+"|"+u.join("|")}var K={};return!t.bookSheets&&!t.bookProps&&(K.Sheets=m),K.SheetNames=L,K.Workbook=z,K.SSF=Mt(Ke),K.Props=B,K.Custprops=T,K}function es(e,r){switch(Fs(r=r||{}),r.type||"base64"){case"base64":return Va(ar(e),r);case"binary":case"buffer":case"file":return Va(e,r);case"array":return Va(ri(e),r)}}function t1(e){var r={},t=e.content;if(t.l=28,r.AnsiUserType=t.read_shift(0,"lpstr-ansi"),r.AnsiClipboardFormat=g0(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=x0(t),a=t.read_shift(4),a==0||a>40))return r;t.l-=4,r.Reserved2=t.read_shift(0,"lpwstr")}var r1=[60,1084,2066,2165,2175];function i1(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=Ar(t,t.l),_=ts[u],m=0;_!=null&&r1.indexOf(u)>-1;)s=Ar(t,t.l+2),m=t.l+4,u==2066?m+=4:(u==2165||u==2175)&&(m+=12),c=t.slice(m,t.l+4+s),o.push(c),t.l+=4+s,_=ts[u=Ar(t,t.l)];var L=Rr(o);Ct(L,0);var j=0;L.lens=[];for(var A=0;A1)&&!(be.sheetRows&&ge.r>=be.sheetRows)){if(be.cellStyles&&_e.XF&&_e.XF.data&&B(ge,_e,be),delete _e.ixfe,delete _e.XF,L=ge,j=Ye(ge),(!o||!o.s||!o.e)&&(o={s:{r:0,c:0},e:{r:0,c:0}}),ge.ro.e.r&&(o.e.r=ge.r+1),ge.c+1>o.e.c&&(o.e.c=ge.c+1),be.cellFormula&&_e.f){for(var Ce=0;Cege.c||E[Ce][0].s.r>ge.r)&&!(E[Ce][0].e.c>8)!==q)throw new Error("rt mismatch: "+ee+"!="+q);Y.r==12&&(e.l+=10,J-=10)}var C={};if(q===10?C=Y.f(e,J,S):C=i1(q,Y,e,J,S),U==0&&[9,521,1033,2057].indexOf(G)===-1)continue;switch(q){case 34:t.opts.Date1904=P.WBProps.date1904=C;break;case 134:t.opts.WriteProtect=!0;break;case 47:if(S.enc||(e.l=0),S.enc=C,!r.password)throw new Error("File is password-protected");if(C.valid==null)throw new Error("Encryption scheme unsupported");if(!C.valid)throw new Error("Password is incorrect");break;case 92:S.lastuser=C;break;case 66:var V=Number(C);switch(V){case 21010:V=1200;break;case 32768:V=1e4;break;case 32769:V=1252;break}mr(S.codepage=V),d=!0;break;case 317:S.rrtabid=C;break;case 25:S.winlocked=C;break;case 439:t.opts.RefreshAll=C;break;case 12:t.opts.CalcCount=C;break;case 16:t.opts.CalcDelta=C;break;case 17:t.opts.CalcIter=C;break;case 13:t.opts.CalcMode=C;break;case 14:t.opts.CalcPrecision=C;break;case 95:t.opts.CalcSaveRecalc=C;break;case 15:S.CalcRefMode=C;break;case 2211:t.opts.FullCalc=C;break;case 129:C.fDialog&&(i["!type"]="dialog"),C.fBelow||((i["!outline"]||(i["!outline"]={})).above=!0),C.fRight||((i["!outline"]||(i["!outline"]={})).left=!0);break;case 224:b.push(C);break;case 430:y.push([C]),y[y.length-1].XTI=[];break;case 35:case 547:y[y.length-1].push(C);break;case 24:case 536:W={Name:C.Name,Ref:Lt(C.rgce,o,null,y,S)},C.itab>0&&(W.Sheet=C.itab-1),y.names.push(W),y[0]||(y[0]=[],y[0].XTI=[]),y[y.length-1].push(C),C.Name=="_xlnm._FilterDatabase"&&C.itab>0&&C.rgce&&C.rgce[0]&&C.rgce[0][0]&&C.rgce[0][0][0]=="PtgArea3d"&&(z[C.itab-1]={ref:tt(C.rgce[0][0][1][2])});break;case 22:S.ExternCount=C;break;case 23:y.length==0&&(y[0]=[],y[0].XTI=[]),y[y.length-1].XTI=y[y.length-1].XTI.concat(C),y.XTI=y.XTI.concat(C);break;case 2196:if(S.biff<8)break;W!=null&&(W.Comment=C[1]);break;case 18:i["!protect"]=C;break;case 19:C!==0&&S.WTF&&console.error("Password verifier: "+C);break;case 133:s[C.pos]=C,S.snames.push(C.name);break;case 10:{if(--U)break;if(o.e){if(o.e.r>0&&o.e.c>0){if(o.e.r--,o.e.c--,i["!ref"]=tt(o),r.sheetRows&&r.sheetRows<=o.e.r){var X=o.e.r;o.e.r=r.sheetRows-1,i["!fullref"]=i["!ref"],i["!ref"]=tt(o),o.e.r=X}o.e.r++,o.e.c++}h.length>0&&(i["!merges"]=h),n.length>0&&(i["!objects"]=n),l.length>0&&(i["!cols"]=l),f.length>0&&(i["!rows"]=f),P.Sheets.push(I)}_===""?m=i:a[_]=i,i=r.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(S.biff===8&&(S.biff={9:2,521:3,1033:4}[q]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[C.BIFFVer]||8),S.biffguess=C.BIFFVer==0,C.BIFFVer==0&&C.dt==4096&&(S.biff=5,d=!0,mr(S.codepage=28591)),S.biff==8&&C.BIFFVer==0&&C.dt==16&&(S.biff=2),U++)break;if(i=r.dense?[]:{},S.biff<8&&!d&&(d=!0,mr(S.codepage=r.codepage||1252)),S.biff<5||C.BIFFVer==0&&C.dt==4096){_===""&&(_="Sheet1"),o={s:{r:0,c:0},e:{r:0,c:0}};var Q={pos:e.l-J,name:_};s[Q.pos]=Q,S.snames.push(_)}else _=(s[R]||{name:""}).name;C.dt==32&&(i["!type"]="chart"),C.dt==64&&(i["!type"]="macro"),h=[],n=[],S.arrayf=E=[],l=[],f=[],k=!1,I={Hidden:(s[R]||{hs:0}).hs,name:_}}break;case 515:case 3:case 2:i["!type"]=="chart"&&(r.dense?(i[C.r]||[])[C.c]:i[Ye({c:C.c,r:C.r})])&&++C.c,N={ixfe:C.ixfe,XF:b[C.ixfe]||{},v:C.val,t:"n"},O>0&&(N.z=H[N.ixfe>>8&63]),Tr(N,r,t.opts.Date1904),T({c:C.c,r:C.r},N,r);break;case 5:case 517:N={ixfe:C.ixfe,XF:b[C.ixfe],v:C.val,t:C.t},O>0&&(N.z=H[N.ixfe>>8&63]),Tr(N,r,t.opts.Date1904),T({c:C.c,r:C.r},N,r);break;case 638:N={ixfe:C.ixfe,XF:b[C.ixfe],v:C.rknum,t:"n"},O>0&&(N.z=H[N.ixfe>>8&63]),Tr(N,r,t.opts.Date1904),T({c:C.c,r:C.r},N,r);break;case 189:for(var se=C.c;se<=C.C;++se){var K=C.rkrec[se-C.c][0];N={ixfe:K,XF:b[K],v:C.rkrec[se-C.c][1],t:"n"},O>0&&(N.z=H[N.ixfe>>8&63]),Tr(N,r,t.opts.Date1904),T({c:se,r:C.r},N,r)}break;case 6:case 518:case 1030:{if(C.val=="String"){c=C;break}if(N=da(C.val,C.cell.ixfe,C.tt),N.XF=b[N.ixfe],r.cellFormula){var ne=C.formula;if(ne&&ne[0]&&ne[0][0]&&ne[0][0][0]=="PtgExp"){var oe=ne[0][0][1][0],le=ne[0][0][1][1],ye=Ye({r:oe,c:le});D[ye]?N.f=""+Lt(C.formula,o,C.cell,y,S):N.F=((r.dense?(i[oe]||[])[le]:i[ye])||{}).F}else N.f=""+Lt(C.formula,o,C.cell,y,S)}O>0&&(N.z=H[N.ixfe>>8&63]),Tr(N,r,t.opts.Date1904),T(C.cell,N,r),c=C}break;case 7:case 519:if(c)c.val=C,N=da(C,c.cell.ixfe,"s"),N.XF=b[N.ixfe],r.cellFormula&&(N.f=""+Lt(c.formula,o,c.cell,y,S)),O>0&&(N.z=H[N.ixfe>>8&63]),Tr(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:{E.push(C);var te=Ye(C[0].s);if(A=r.dense?(i[C[0].s.r]||[])[C[0].s.c]:i[te],r.cellFormula&&A){if(!c||!te||!A)break;A.f=""+Lt(C[1],o,C[0],y,S),A.F=tt(C[0])}}break;case 1212:{if(!r.cellFormula)break;if(j){if(!c)break;D[Ye(c.cell)]=C[0],A=r.dense?(i[c.cell.r]||[])[c.cell.c]:i[Ye(c.cell)],(A||{}).f=""+Lt(C[0],o,L,y,S)}}break;case 253:N=da(u[C.isst].t,C.ixfe,"s"),u[C.isst].h&&(N.h=u[C.isst].h),N.XF=b[N.ixfe],O>0&&(N.z=H[N.ixfe>>8&63]),Tr(N,r,t.opts.Date1904),T({c:C.c,r:C.r},N,r);break;case 513:r.sheetStubs&&(N={ixfe:C.ixfe,XF:b[C.ixfe],t:"z"},O>0&&(N.z=H[N.ixfe>>8&63]),Tr(N,r,t.opts.Date1904),T({c:C.c,r:C.r},N,r));break;case 190:if(r.sheetStubs)for(var re=C.c;re<=C.C;++re){var Z=C.ixfe[re-C.c];N={ixfe:Z,XF:b[Z],t:"z"},O>0&&(N.z=H[N.ixfe>>8&63]),Tr(N,r,t.opts.Date1904),T({c:re,r:C.r},N,r)}break;case 214:case 516:case 4:N=da(C.val,C.ixfe,"s"),N.XF=b[N.ixfe],O>0&&(N.z=H[N.ixfe>>8&63]),Tr(N,r,t.opts.Date1904),T({c:C.c,r:C.r},N,r);break;case 0:case 512:U===1&&(o=C);break;case 252:u=C;break;case 1054:if(S.biff==4){H[O++]=C[1];for(var ie=0;ie=163&&$r(C[1],O+163)}else $r(C[1],C[0]);break;case 30:{H[O++]=C;for(var ae=0;ae=163&&$r(C,O+163)}break;case 229:h=h.concat(C);break;case 93:n[C.cmo[0]]=S.lastobj=C;break;case 438:S.lastobj.TxO=C;break;case 127:S.lastobj.ImData=C;break;case 440:for(w=C[0].s.r;w<=C[0].e.r;++w)for(g=C[0].s.c;g<=C[0].e.c;++g)A=r.dense?(i[w]||[])[g]:i[Ye({c:g,r:w})],A&&(A.l=C[1]);break;case 2048:for(w=C[0].s.r;w<=C[0].e.r;++w)for(g=C[0].s.c;g<=C[0].e.c;++g)A=r.dense?(i[w]||[])[g]:i[Ye({c:g,r:w})],A&&A.l&&(A.l.Tooltip=C[1]);break;case 28:{if(S.biff<=5&&S.biff>=2)break;A=r.dense?(i[C[0].r]||[])[C[0].c]:i[Ye(C[0])];var he=n[C[2]];A||(r.dense?(i[C[0].r]||(i[C[0].r]=[]),A=i[C[0].r][C[0].c]={t:"z"}):A=i[Ye(C[0])]={t:"z"},o.e.r=Math.max(o.e.r,C[0].r),o.s.r=Math.min(o.s.r,C[0].r),o.e.c=Math.max(o.e.c,C[0].c),o.s.c=Math.min(o.s.c,C[0].c)),A.c||(A.c=[]),p={a:C[1],t:he.TxO.t},A.c.push(p)}break;case 2173:Ap(b[C.ixfe],C.ext);break;case 125:{if(!S.cellStyles)break;for(;C.e>=C.s;)l[C.e--]={width:C.w/256,level:C.level||0,hidden:!!(C.flags&1)},k||(k=!0,Cs(C.w/256)),vi(l[C.e+1])}break;case 520:{var fe={};C.level!=null&&(f[C.r]=fe,fe.level=C.level),C.hidden&&(f[C.r]=fe,fe.hidden=!0),C.hpt&&(f[C.r]=fe,fe.hpt=C.hpt,fe.hpx=$i(C.hpt))}break;case 38:case 39:case 40:case 41:i["!margins"]||Ui(i["!margins"]={}),i["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[q]]=C;break;case 161:i["!margins"]||Ui(i["!margins"]={}),i["!margins"].header=C.header,i["!margins"].footer=C.footer;break;case 574:C.RTL&&(P.Views[0].RTL=!0);break;case 146:F=C;break;case 2198:x=C;break;case 140:M=C;break;case 442:_?I.CodeName=C||I.name:P.WBProps.CodeName=C||"ThisWorkbook";break}}else Y||console.error("Missing Info for XLS Record 0x"+q.toString(16)),e.l+=J}return t.SheetNames=br(s).sort(function(ve,ge){return Number(ve)-Number(ge)}).map(function(ve){return s[ve].name}),r.bookSheets||(t.Sheets=a),!t.SheetNames.length&&m["!ref"]?(t.SheetNames.push("Sheet1"),t.Sheets&&(t.Sheets.Sheet1=m)):t.Preamble=m,t.Sheets&&z.forEach(function(ve,ge){t.Sheets[t.SheetNames[ge]]["!autofilter"]=ve}),t.Strings=u,t.SSF=Mt(Ke),S.enc&&(t.Encryption=S.enc),x&&(t.Themes=x),t.Metadata={},M!==void 0&&(t.Metadata.Country=M),y.names.length>0&&(P.Names=y.names),t.Workbook=P,t}var Gn={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function s1(e,r,t){var a=et.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var i=En(a,b0,Gn.DSI);for(var s in i)r[s]=i[s]}catch(_){if(t.WTF)throw _}var o=et.find(e,"/!SummaryInformation");if(o&&o.size>0)try{var c=En(o,_0,Gn.SI);for(var u in c)r[u]==null&&(r[u]=c[u])}catch(_){if(t.WTF)throw _}r.HeadingPairs&&r.TitlesOfParts&&(sl(r.HeadingPairs,r.TitlesOfParts,r,t),delete r.HeadingPairs,delete r.TitlesOfParts)}function Wl(e,r){r||(r={}),Fs(r),xo(),r.codepage&&fs(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=xr(ar(e));break;case"binary":e=xr(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&&t1(t),r.bookProps&&!r.bookSheets)i={};else{var o=Qe?"buffer":"array";if(a&&a.content)i=a1(a.content,r);else if((s=et.find(e,"PerfectOffice_MAIN"))&&s.content)i=Ni.to_workbook(s.content,(r.type=o,r));else if((s=et.find(e,"NativeContent_MAIN"))&&s.content)i=Ni.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=Gp(e))}var c={};return e.FullPaths&&s1(e,c,r),i.Props=i.Custprops=c,r.bookFiles&&(i.cfb=e),i}var _a={0:{f:Ux},1:{f:Gx},2:{f:Qx},3:{f:$x},4:{f:Vx},5:{f:Jx},6:{f:rm},7:{f:qx},8:{f:om},9:{f:nm},10:{f:am},11:{f:sm},12:{f:Xx},13:{f:em},14:{f:Kx},15:{f:Yx},16:{f:Bl},17:{f:im},18:{f:Zx},19:{f:bs},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:Lm},40:{},42:{},43:{f:ap},44:{f:ip},45:{f:sp},46:{f:op},47:{f:np},48:{},49:{f:l0},50:{},51:{f:Cp},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:tm},63:{f:Fp},64:{f:xm},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:gm},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:zx},148:{f:Hx,p:16},151:{f:hm},152:{},153:{f:Pm},154:{},155:{},156:{f:Om},157:{},158:{},159:{T:1,f:_u},160:{T:-1},161:{T:1,f:ai},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:lm},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:Ep},336:{T:-1},337:{f:Mp,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:qa},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:fm},427:{f:dm},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:pm},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Wx},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:cm},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:qa},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:Hp},633:{T:1},634:{T:-1},635:{T:1,f:Up},636:{T:-1},637:{f:h0},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:bm},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:mm},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:""}},ts={6:{f:Ga},10:{f:Lr},12:{f:mt},13:{f:mt},14:{f:ut},15:{f:ut},16:{f:It},17:{f:ut},18:{f:ut},19:{f:mt},20:{f:On},21:{f:On},23:{f:xl},24:{f:Fn},25:{f:ut},26:{},27:{},28:{f:Nd},29:{},34:{f:ut},35:{f:Pn},38:{f:It},39:{f:It},40:{f:It},41:{f:It},42:{f:ut},43:{f:ut},47:{f:Wu},49:{f:yd},51:{f:mt},60:{},61:{f:xd},64:{f:ut},65:{f:vd},66:{f:mt},77:{},80:{},81:{},82:{},85:{f:mt},89:{},90:{},91:{},92:{f:ld},93:{f:Ud},94:{},95:{f:ut},96:{},97:{},99:{f:ut},125:{f:ml},128:{f:Md},129:{f:cd},130:{f:mt},131:{f:ut},132:{f:ut},133:{f:hd},134:{},140:{f:Vd},141:{f:mt},144:{},146:{f:$d},151:{},152:{},153:{},154:{},155:{},156:{f:mt},157:{},158:{},160:{f:Qd},161:{f:qd},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:Sd},190:{f:Ad},193:{f:Lr},197:{},198:{},199:{},200:{},201:{},202:{f:ut},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:mt},220:{},221:{f:ut},222:{},224:{f:Cd},225:{f:od},226:{f:Lr},227:{},229:{f:jd},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:fd},253:{f:Td},255:{f:dd},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:ut},353:{f:Lr},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:Od},431:{f:ut},432:{},433:{},434:{},437:{},438:{f:zd},439:{f:ut},440:{f:Gd},441:{},442:{f:ea},443:{},444:{f:mt},445:{},446:{},448:{f:Lr},449:{f:gd,r:2},450:{f:Lr},512:{f:Mn},513:{f:Jd},515:{f:Dd},516:{f:kd},517:{f:Dn},519:{f:eu},520:{f:ud},523:{},545:{f:Ln},549:{f:Cn},566:{},574:{f:md},638:{f:wd},659:{},1048:{},1054:{f:bd},1084:{},1212:{f:Id},2048:{f:Xd},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:ca},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:Lr},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:Kd,r:12},2173:{f:Sp,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:ut,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:Ld,r:12},2197:{},2198:{f:yp,r:12},2199:{},2200:{},2201:{},2202:{f:Rd,r:12},2203:{f:Lr},2204:{},2205:{},2206:{},2207:{},2211:{f:pd},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:mt},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:Zd},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:Yd},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Mn},1:{},2:{f:au},3:{f:iu},4:{f:ru},5:{f:Dn},7:{f:su},8:{},9:{f:ca},11:{},22:{f:mt},30:{f:_d},31:{},32:{},33:{f:Ln},36:{},37:{f:Cn},50:{f:nu},62:{},52:{},67:{},68:{f:mt},69:{},86:{},126:{},127:{f:tu},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:ou},223:{},234:{},354:{},421:{},518:{f:Ga},521:{f:ca},536:{f:Fn},547:{f:Pn},561:{},579:{},1030:{f:Ga},1033:{f:ca},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function gr(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 Xn(e,r){var t=r||{},a=t.dense?[]:{};e=e.replace(//g,"");var i=e.match(/");var s=e.match(/<\/table/i),o=i.index,c=s&&s.index||e.length,u=Of(e.slice(o,c),/(:?]*>)/i,""),_=-1,m=0,L=0,j=0,A={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(o=0;o/i);for(c=0;c"))>-1;)N=N.slice(M+1);for(var b=0;b")));j=P.colspan?+P.colspan:1,((L=+P.rowspan)>1||j>1)&&p.push({s:{r:_,c:m},e:{r:_+(L||1)-1,c:m+j-1}});var I=P.t||P["data-t"]||"";if(!N.length){m+=j;continue}if(N=No(N),A.s.r>_&&(A.s.r=_),A.e.r<_&&(A.e.r=_),A.s.c>m&&(A.s.c=m),A.e.ct||i[_].s.c>o)&&!(i[_].e.r1&&(A.rowspan=c),u>1&&(A.colspan=u),a.editable?j=''+j+"":L&&(A["data-t"]=L&&L.t||"z",L.v!=null&&(A["data-v"]=L.v),L.z!=null&&(A["data-z"]=L.z),L.l&&(L.l.Target||"#").charAt(0)!="#"&&(j=''+j+"")),A.id=(a.id||"sjs")+"-"+m,s.push(Vf("td",j,A))}}var p="";return p+s.join("")+""}var o1='SheetJS Table Export',l1="";function c1(e,r){var t=e.match(/[\s\S]*?<\/table>/gi);if(!t||t.length==0)throw new Error("Invalid HTML: could not find
");if(t.length==1)return zr(Xn(t[0],r),r);var a=Is();return t.forEach(function(i,s){Rs(a,Xn(i,r),"Sheet"+(s+1))}),a}function h1(e,r,t){var a=[];return a.join("")+""}function f1(e,r){var t=r||{},a=t.header!=null?t.header:o1,i=t.footer!=null?t.footer:l1,s=[a],o=_i(e["!ref"]);t.dense=Array.isArray(e),s.push(h1(e,o,t));for(var c=o.s.r;c<=o.e.r;++c)s.push(n1(e,o,c,t));return s.push("
"+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"?Vt(a.origin):a.origin;i=o.r,s=o.c}var c=r.getElementsByTagName("tr"),u=Math.min(a.sheetRows||1e7,c.length),_={s:{r:0,c:0},e:{r:i,c:s}};if(e["!ref"]){var m=_i(e["!ref"]);_.s.r=Math.min(_.s.r,m.s.r),_.s.c=Math.min(_.s.c,m.s.c),_.e.r=Math.max(_.e.r,m.e.r),_.e.c=Math.max(_.e.c,m.e.c),i==-1&&(_.e.r=i=m.e.r+1)}var L=[],j=0,A=e["!rows"]||(e["!rows"]=[]),p=0,g=0,w=0,D=0,E=0,N=0;for(e["!cols"]||(e["!cols"]=[]);p1||N>1)&&L.push({s:{r:g+i,c:D+s},e:{r:g+i+(E||1)-1,c:D+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(yr(P))?isNaN(mi(P).getDate())||(B={t:"d",v:St(P)},a.cellDates||(B={t:"n",v:$t(B.v)}),B.z=a.dateNF||Ke[14]):B={t:"n",v:yr(P)})),B.z===void 0&&I!=null&&(B.z=I);var S="",x=F.getElementsByTagName("A");if(x&&x.length)for(var h=0;h=u&&(e["!fullref"]=tt((_.e.r=c.length-p+g-1+i,_))),e}function Gl(e,r){var t=r||{},a=t.dense?[]:{};return zl(a,e,r)}function d1(e,r){return zr(Gl(e,r),r)}function Vn(e){var r="",t=u1(e);return t&&(r=t(e).getPropertyValue("display")),r||(r=e.style&&e.style.display),r==="none"}function u1(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function p1(e){var r=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(a,i){return Array(parseInt(i,10)+1).join(" ")}).replace(/]*\/>/g," ").replace(//g,` `),t=rt(r.replace(/<[^>]*>/g,""));return[t]}var Yn={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=vs(e),i=[],s,o,c={name:""},u="",_=0,m,L,j={},A=[],p=t.dense?[]:{},g,w,D={value:""},E="",N=0,M=[],b=-1,F=-1,P={s:{r:1e6,c:1e7},e:{r:0,c:0}},I=0,v={},B=[],T={},S=0,x=0,h=[],n=1,l=1,f=[],k={Names:[]},y={},G=["",""],U=[],O={},H="",z=0,W=!1,d=!1,R=0;for(Xi.lastIndex=0,a=a.replace(//mg,"").replace(//gm,"");g=Xi.exec(a);)switch(g[3]=g[3].replace(/_.*$/,"")){case"table":case"工作表":g[1]==="/"?(P.e.c>=P.s.c&&P.e.r>=P.s.r?p["!ref"]=tt(P):p["!ref"]="A1:A1",t.sheetRows>0&&t.sheetRows<=P.e.r&&(p["!fullref"]=p["!ref"],P.e.r=t.sheetRows-1,p["!ref"]=tt(P)),B.length&&(p["!merges"]=B),h.length&&(p["!rows"]=h),m.name=m.名称||m.name,typeof JSON<"u"&&JSON.stringify(m),A.push(m.name),j[m.name]=p,d=!1):g[0].charAt(g[0].length-2)!=="/"&&(m=Xe(g[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":g[1]==="/"?--I:++I;break;case"table-row":case"行":if(g[1]==="/"){b+=n,n=1;break}if(L=Xe(g[0],!1),L.行号?b=L.行号-1:b==-1&&(b=0),n=+L["number-rows-repeated"]||1,n<10)for(R=0;R0&&(h[b+R]={level:I});F=-1;break;case"covered-table-cell":g[1]!=="/"&&++F,t.sheetStubs&&(t.dense?(p[b]||(p[b]=[]),p[b][F]={t:"z"}):p[Ye({r:b,c:F})]={t:"z"}),E="",M=[];break;case"table-cell":case"数据":if(g[0].charAt(g[0].length-2)==="/")++F,D=Xe(g[0],!1),l=parseInt(D["number-columns-repeated"]||"1",10),w={t:"z",v:null},D.formula&&t.cellFormula!=!1&&(w.f=Hn(rt(D.formula))),(D.数据类型||D["value-type"])=="string"&&(w.t="s",w.v=rt(D["string-value"]||""),t.dense?(p[b]||(p[b]=[]),p[b][F]=w):p[Ye({r:b,c:F})]=w),F+=l-1;else if(g[1]!=="/"){++F,E="",N=0,M=[],l=1;var q=n?b+n-1:b;if(F>P.e.c&&(P.e.c=F),FP.e.r&&(P.e.r=q),D=Xe(g[0],!1),U=[],O={},w={t:D.数据类型||D["value-type"],v:null},t.cellFormula)if(D.formula&&(D.formula=rt(D.formula)),D["number-matrix-columns-spanned"]&&D["number-matrix-rows-spanned"]&&(S=parseInt(D["number-matrix-rows-spanned"],10)||0,x=parseInt(D["number-matrix-columns-spanned"],10)||0,T={s:{r:b,c:F},e:{r:b+S-1,c:F+x-1}},w.F=tt(T),f.push([T,w.F])),D.formula)w.f=Hn(D.formula);else for(R=0;R=f[R][0].s.r&&b<=f[R][0].e.r&&F>=f[R][0].s.c&&F<=f[R][0].e.c&&(w.F=f[R][1]);switch((D["number-columns-spanned"]||D["number-rows-spanned"])&&(S=parseInt(D["number-rows-spanned"],10)||0,x=parseInt(D["number-columns-spanned"],10)||0,T={s:{r:b,c:F},e:{r:b+S-1,c:F+x-1}},B.push(T)),D["number-columns-repeated"]&&(l=parseInt(D["number-columns-repeated"],10)),w.t){case"boolean":w.t="b",w.v=nt(D["boolean-value"]);break;case"float":w.t="n",w.v=parseFloat(D.value);break;case"percentage":w.t="n",w.v=parseFloat(D.value);break;case"currency":w.t="n",w.v=parseFloat(D.value);break;case"date":w.t="d",w.v=St(D["date-value"]),t.cellDates||(w.t="n",w.v=$t(w.v)),w.z="m/d/yy";break;case"time":w.t="n",w.v=Cf(D["time-value"])/86400,t.cellDates&&(w.t="d",w.v=Da(w.v)),w.z="HH:MM:SS";break;case"number":w.t="n",w.v=parseFloat(D.数据数值);break;default:if(w.t==="string"||w.t==="text"||!w.t)w.t="s",D["string-value"]!=null&&(E=rt(D["string-value"]),M=[]);else throw new Error("Unsupported value type "+w.t)}}else{if(W=!1,w.t==="s"&&(w.v=E||"",M.length&&(w.R=M),W=N==0),y.Target&&(w.l=y),U.length>0&&(w.c=U,U=[]),E&&t.cellText!==!1&&(w.w=E),W&&(w.t="z",delete w.v),(!W||t.sheetStubs)&&!(t.sheetRows&&t.sheetRows<=b))for(var J=0;J0;)p[b+J][F+l]=Mt(w);else for(p[Ye({r:b+J,c:F})]=w;--l>0;)p[Ye({r:b+J,c:F+l})]=Mt(w);P.e.c<=F&&(P.e.c=F)}l=parseInt(D["number-columns-repeated"]||"1",10),F+=l-1,l=0,w={},E="",M=[]}y={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(g[1]==="/"){if((s=i.pop())[0]!==g[3])throw"Bad state: "+s}else g[0].charAt(g[0].length-2)!=="/"&&i.push([g[3],!0]);break;case"annotation":if(g[1]==="/"){if((s=i.pop())[0]!==g[3])throw"Bad state: "+s;O.t=E,M.length&&(O.R=M),O.a=H,U.push(O)}else g[0].charAt(g[0].length-2)!=="/"&&i.push([g[3],!1]);H="",z=0,E="",N=0,M=[];break;case"creator":g[1]==="/"?H=a.slice(z,g.index):z=g.index+g[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(g[1]==="/"){if((s=i.pop())[0]!==g[3])throw"Bad state: "+s}else g[0].charAt(g[0].length-2)!=="/"&&i.push([g[3],!1]);E="",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(g[1]==="/"){if(v[c.name]=u,(s=i.pop())[0]!==g[3])throw"Bad state: "+s}else g[0].charAt(g[0].length-2)!=="/"&&(u="",c=Xe(g[0],!1),i.push([g[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(i[i.length-1][0]){case"time-style":case"date-style":o=Xe(g[0],!1),u+=Yn[g[3]][o.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(i[i.length-1][0]){case"time-style":case"date-style":o=Xe(g[0],!1),u+=Yn[g[3]][o.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(g[0].slice(-2)==="/>")break;if(g[1]==="/")switch(i[i.length-1][0]){case"number-style":case"date-style":case"time-style":u+=a.slice(_,g.index);break}else _=g.index+g[0].length;break;case"named-range":o=Xe(g[0],!1),G=Xa(o["cell-range-address"]);var Y={Name:o.name,Ref:G[0]+"!"+G[1]};d&&(Y.Sheet=A.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(g[1]==="/"&&(!D||!D["string-value"])){var ee=p1(a.slice(N,g.index));E=(E.length>0?E+` `:"")+ee[0]}else Xe(g[0],!1),N=g.index+g[0].length;break;case"s":break;case"database-range":if(g[1]==="/")break;try{G=Xa(Xe(g[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(g[1]!=="/"){if(y=Xe(g[0],!1),!y.href)break;y.Target=rt(y.href),delete y.href,y.Target.charAt(0)=="#"&&y.Target.indexOf(".")>-1?(G=Xa(y.Target.slice(1)),y.Target="#"+G[0]+"!"+G[1]):y.Target.match(/^\.\.[\\\/]/)&&(y.Target=y.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(g[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(t.WTF)throw new Error(g)}}var C={Sheets:j,SheetNames:A,Workbook:k};return t.bookSheets&&delete C.Sheets,C}function $n(e,r){r=r||{},cr(e,"META-INF/manifest.xml")&&D0(xt(e,"META-INF/manifest.xml"),r);var t=ir(e,"content.xml");if(!t)throw new Error("Missing content.xml in ODS / UOF file");var a=Xl(st(t),r);return cr(e,"meta.xml")&&(a.Props=al(xt(e,"meta.xml"))),a}function Kn(e,r){return Xl(e,r)}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Os(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function rs(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):st(ri(e))}function is(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 qn(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function g1(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 Ki(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 Tt(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]=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=Ki(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 _={data:c,type:s};r[i]==null?r[i]=[_]:r[i].push(_)}return r}function Ps(e,r){return(e==null?void 0:e.map(function(t){return r(t.data)}))||[]}function x1(e){for(var r,t=[],a=[0];a[0]>>0>0),t.push(o)}return t}function m1(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],a=Ki(r,t),i=[];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,_=0;if(s==1?(_=(r[t[0]]>>2&7)+4,u=(r[t[0]++]&224)<<3,u|=r[t[0]++]):(_=(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=[is(i)],u==0)throw new Error("Invalid offset 0");if(u>i[0].length)throw new Error("Invalid offset beyond length");if(_>=u)for(i.push(i[0].slice(-u)),_-=u;_>=i[i.length-1].length;)i.push(i[i.length-1]),_-=i[i.length-1].length;i.push(i[0].slice(-u,-u+_))}}var m=is(i);if(m.length!=a)throw new Error("Unexpected length: ".concat(m.length," != ").concat(a));return m}function v1(e){for(var r=[],t=0;t1?12:8)+qn(s&(a>1?3470:398))*4,c=-1,u=-1,_=NaN,m=new Date(2001,0,1);s&512&&(c=i.getUint32(o,!0),o+=4),o+=qn(s&(a>1?12288:4096))*4,s&16&&(u=i.getUint32(o,!0),o+=4),s&32&&(_=i.getFloat64(o,!0),o+=8),s&64&&(m.setTime(m.getTime()+i.getFloat64(o,!0)*1e3),o+=8);var L;switch(e[2]){case 0:break;case 2:L={t:"n",v:_};break;case 3:L={t:"s",v:r[u]};break;case 5:L={t:"d",v:m};break;case 6:L={t:"b",v:_>0};break;case 7:L={t:"n",v:_/86400};break;case 8:L={t:"e",v:0};break;case 9:if(c>-1)L={t:"s",v:t[c]};else if(u>-1)L={t:"s",v:r[u]};else if(!isNaN(_))L={t:"n",v:_};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return L}function T1(e,r,t){var a=Os(e),i=a.getUint32(8,!0),s=12,o=-1,c=-1,u=NaN,_=NaN,m=new Date(2001,0,1);i&1&&(u=g1(e,s),s+=16),i&2&&(_=a.getFloat64(s,!0),s+=8),i&4&&(m.setTime(m.getTime()+a.getFloat64(s,!0)*1e3),s+=8),i&8&&(c=a.getUint32(s,!0),s+=4),i&16&&(o=a.getUint32(s,!0),s+=4);var L;switch(e[1]){case 0:break;case 2:L={t:"n",v:u};break;case 3:L={t:"s",v:r[c]};break;case 5:L={t:"d",v:m};break;case 6:L={t:"b",v:_>0};break;case 7:L={t:"n",v:_/86400};break;case 8:L={t:"e",v:0};break;case 9:if(o>-1)L={t:"s",v:t[o]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e.slice(0,4)));break;case 10:L={t:"n",v:u};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e.slice(0,4)))}return L}function k1(e,r,t){switch(e[0]){case 0:case 1:case 2:case 3:return y1(e,r,t,e[0]);case 5:return T1(e,r,t);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function jr(e){var r=Rt(e);return Ki(r[1][0].data)}function Zn(e,r){var t=Rt(r.data),a=Tt(t[1][0].data),i=t[3],s=[];return(i||[]).forEach(function(o){var c=Rt(o.data),u=Tt(c[1][0].data)>>>0;switch(a){case 1:s[u]=rs(c[3][0].data);break;case 8:{var _=e[jr(c[9][0].data)][0],m=Rt(_.data),L=e[jr(m[1][0].data)][0],j=Tt(L.meta[1][0].data);if(j!=2001)throw new Error("2000 unexpected reference to ".concat(j));var A=Rt(L.data);s[u]=A[3].map(function(p){return rs(p.data)}).join("")}break}}),s}function b1(e,r){var t,a,i,s,o,c,u,_,m,L,j,A,p,g,w=Rt(e),D=Tt(w[1][0].data)>>>0,E=Tt(w[2][0].data)>>>0,N=((a=(t=w[8])==null?void 0:t[0])==null?void 0:a.data)&&Tt(w[8][0].data)>0||!1,M,b;if((s=(i=w[7])==null?void 0:i[0])!=null&&s.data&&r!=0)M=(c=(o=w[7])==null?void 0:o[0])==null?void 0:c.data,b=(_=(u=w[6])==null?void 0:u[0])==null?void 0:_.data;else if((L=(m=w[4])==null?void 0:m[0])!=null&&L.data&&r!=1)M=(A=(j=w[4])==null?void 0:j[0])==null?void 0:A.data,b=(g=(p=w[3])==null?void 0:p[0])==null?void 0:g.data;else throw"NUMBERS Tile missing ".concat(r," cell storage");for(var F=N?4:1,P=Os(M),I=[],v=0;v=1&&(T[I[I.length-1][0]]=b.subarray(I[I.length-1][1]*F)),{R:D,cells:T}}function _1(e,r){var t,a=Rt(r.data),i=(t=a==null?void 0:a[7])!=null&&t[0]?Tt(a[7][0].data)>>>0>0?1:0:-1,s=Ps(a[5],function(o){return b1(o,i)});return{nrows:Tt(a[4][0].data)>>>0,data:s.reduce(function(o,c){return o[c.R]||(o[c.R]=[]),c.cells.forEach(function(u,_){if(o[c.R][_])throw new Error("Duplicate cell r=".concat(c.R," c=").concat(_));o[c.R][_]=u}),o},[])}}function w1(e,r,t){var a,i=Rt(r.data),s={s:{r:0,c:0},e:{r:0,c:0}};if(s.e.r=(Tt(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=(Tt(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=Zn(e,e[jr(o[4][0].data)][0]),u=(a=o[17])!=null&&a[0]?Zn(e,e[jr(o[17][0].data)][0]):[],_=Rt(o[3][0].data),m=0;_[1].forEach(function(L){var j=Rt(L.data),A=e[jr(j[2][0].data)][0],p=Tt(A.meta[1][0].data);if(p!=6002)throw new Error("6001 unexpected reference to ".concat(p));var g=_1(e,A);g.data.forEach(function(w,D){w.forEach(function(E,N){var M=Ye({r:m+D,c:N}),b=k1(E,c,u);b&&(t[M]=b)})}),m+=g.nrows})}function S1(e,r){var t=Rt(r.data),a={"!ref":"A1"},i=e[jr(t[2][0].data)],s=Tt(i[0].meta[1][0].data);if(s!=6001)throw new Error("6000 unexpected reference to ".concat(s));return w1(e,i[0],a),a}function A1(e,r){var t,a=Rt(r.data),i={name:(t=a[1])!=null&&t[0]?rs(a[1][0].data):"",sheets:[]},s=Ps(a[2],jr);return s.forEach(function(o){e[o].forEach(function(c){var u=Tt(c.meta[1][0].data);u==6e3&&i.sheets.push(S1(e,c))})}),i}function E1(e,r){var t=Is(),a=Rt(r.data),i=Ps(a[1],jr);if(i.forEach(function(s){e[s].forEach(function(o){var c=Tt(o.meta[1][0].data);if(c==2){var u=A1(e,o);u.sheets.forEach(function(_,m){Rs(t,_,m==0?u.name:u.name+"_"+m,!0)})}})}),t.SheetNames.length==0)throw new Error("Empty NUMBERS file");return t}function Ya(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 _;try{_=v1(u.content)}catch(L){return console.log("?? "+u.content.length+" "+(L.message||L))}var m;try{m=x1(_)}catch(L){return console.log("## "+(L.message||L))}m.forEach(function(L){s[L.id]=L.messages,o.push(L.id)})}}),!o.length)throw new Error("File has no messages");var c=((i=(a=(t=(r=s==null?void 0:s[1])==null?void 0:r[0])==null?void 0:t.meta)==null?void 0:a[1])==null?void 0:i[0].data)&&Tt(s[1][0].meta[1][0].data)==1&&s[1][0];if(c||o.forEach(function(u){s[u].forEach(function(_){var m=Tt(_.meta[1][0].data)>>>0;if(m==1)if(!c)c=_;else throw new Error("Document has multiple roots")})}),!c)throw new Error("Cannot find Document root");return E1(s,c)}function C1(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 Fs(e){C1([["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 M1(e){return ui.WS.indexOf(e)>-1?"sheet":e==ui.CS?"chart":e==ui.DS?"dialog":e==ui.MS?"macro":e&&e.length?e:"sheet"}function D1(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,M1(e["!id"][a.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function O1(e,r,t,a,i,s,o,c,u,_,m,L){try{s[a]=Ri(ir(e,t,!0),r);var j=xt(e,r),A;switch(c){case"sheet":A=Bm(j,r,i,u,s[a],_,m,L);break;case"chart":if(A=Nm(j,r,i,u,s[a],_,m,L),!A||!A["!drawel"])break;var p=Oi(A["!drawel"].Target,r),g=Za(p),w=Rp(ir(e,p,!0),Ri(ir(e,g,!0),p)),D=Oi(w,p),E=Za(D);A=Tm(ir(e,D,!0),D,u,Ri(ir(e,E,!0),D),_,A);break;case"macro":A=jm(j,r,i,u,s[a],_,m,L);break;case"dialog":A=Um(j,r,i,u,s[a],_,m,L);break;default:throw new Error("Unrecognized sheet type "+c)}o[a]=A;var N=[];s&&s[a]&&br(s[a]).forEach(function(M){var b="";if(s[a][M].Type==ui.CMNT){b=Oi(s[a][M].Target,r);var F=Gm(xt(e,b,!0),b,u);if(!F||!F.length)return;Rn(A,F,!1)}s[a][M].Type==ui.TCMNT&&(b=Oi(s[a][M].Target,r),N=N.concat(Np(xt(e,b,!0),u)))}),N&&N.length&&Rn(A,N,!0,u.people||[])}catch(M){if(u.WTF)throw M}}function or(e){return e.charAt(0)=="/"?e.slice(1):e}function P1(e,r){if(Co(),r=r||{},Fs(r),cr(e,"META-INF/manifest.xml")||cr(e,"objectdata.xml"))return $n(e,r);if(cr(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof Ya<"u"){if(e.FileIndex)return Ya(e);var t=et.utils.cfb_new();return cn(e).forEach(function(h){Ff(t,h,Lo(e,h))}),Ya(t)}throw new Error("Unsupported NUMBERS file")}if(!cr(e,"[Content_Types].xml"))throw cr(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):cr(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var a=cn(e),i=C0(ir(e,"[Content_Types].xml")),s=!1,o,c;if(i.workbooks.length===0&&(c="xl/workbook.xml",xt(e,c,!0)&&i.workbooks.push(c)),i.workbooks.length===0){if(c="xl/workbook.bin",!xt(e,c,!0))throw new Error("Could not find workbook");i.workbooks.push(c),s=!0}i.workbooks[0].slice(-3)=="bin"&&(s=!0);var u={},_={};if(!r.bookSheets&&!r.bookProps){if(ji=[],i.sst)try{ji=zm(xt(e,or(i.sst)),i.sst,r)}catch(h){if(r.WTF)throw h}r.cellStyles&&i.themes.length&&(u=Wm(ir(e,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],r)),i.style&&(_=Hm(xt(e,or(i.style)),i.style,u,r))}i.links.map(function(h){try{var n=Ri(ir(e,Za(or(h))),h);return Vm(xt(e,or(h)),n,h,r)}catch{}});var m=Rm(xt(e,or(i.workbooks[0])),i.workbooks[0],r),L={},j="";i.coreprops.length&&(j=xt(e,or(i.coreprops[0]),!0),j&&(L=al(j)),i.extprops.length!==0&&(j=xt(e,or(i.extprops[0]),!0),j&&F0(j,L,r)));var A={};(!r.bookSheets||r.bookProps)&&i.custprops.length!==0&&(j=ir(e,or(i.custprops[0]),!0),j&&(A=I0(j,r)));var p={};if((r.bookSheets||r.bookProps)&&(m.Sheets?o=m.Sheets.map(function(n){return n.name}):L.Worksheets&&L.SheetNames.length>0&&(o=L.SheetNames),r.bookProps&&(p.Props=L,p.Custprops=A),r.bookSheets&&typeof o<"u"&&(p.SheetNames=o),r.bookSheets?p.SheetNames:r.bookProps))return p;o={};var g={};r.bookDeps&&i.calcchain&&(g=Xm(xt(e,or(i.calcchain)),i.calcchain));var w=0,D={},E,N;{var M=m.Sheets;L.Worksheets=M.length,L.SheetNames=[];for(var b=0;b!=M.length;++b)L.SheetNames[b]=M[b].name}var F=s?"bin":"xml",P=i.workbooks[0].lastIndexOf("/"),I=(i.workbooks[0].slice(0,P+1)+"_rels/"+i.workbooks[0].slice(P+1)+".rels").replace(/^\//,"");cr(e,I)||(I="xl/_rels/workbook."+F+".rels");var v=Ri(ir(e,I,!0),I.replace(/_rels.*/,"s5s"));(i.metadata||[]).length>=1&&(r.xlmeta=Ym(xt(e,or(i.metadata[0])),i.metadata[0],r)),(i.people||[]).length>=1&&(r.people=jp(xt(e,or(i.people[0])),r)),v&&(v=D1(v,m.Sheets));var B=xt(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(w=0;w!=L.Worksheets;++w){var T="sheet";if(v&&v[w]?(E="xl/"+v[w][1].replace(/[\/]?xl\//,""),cr(e,E)||(E=v[w][1]),cr(e,E)||(E=I.replace(/_rels\/.*$/,"")+v[w][1]),T=v[w][2]):(E="xl/worksheets/sheet"+(w+1-B)+"."+F,E=E.replace(/sheet0\./,"sheet.")),N=E.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),r&&r.sheets!=null)switch(typeof r.sheets){case"number":if(w!=r.sheets)continue e;break;case"string":if(L.SheetNames[w].toLowerCase()!=r.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(r.sheets)){for(var S=!1,x=0;x!=r.sheets.length;++x)typeof r.sheets[x]=="number"&&r.sheets[x]==w&&(S=1),typeof r.sheets[x]=="string"&&r.sheets[x].toLowerCase()==L.SheetNames[w].toLowerCase()&&(S=1);if(!S)continue e}}O1(e,E,N,L.SheetNames[w],w,D,o,T,r,m,u,_)}return p={Directory:i,Workbook:m,Props:L,Custprops:A,Deps:g,Sheets:o,SheetNames:L.SheetNames,Strings:ji,Styles:_,Themes:u,SSF:Mt(Ke)},r&&r.bookFiles&&(e.files?(p.keys=a,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach(function(h,n){h=h.replace(/^Root Entry[\/]/,""),p.keys.push(h),p.files[h]=e.FileIndex[n]}))),r&&r.bookVBA&&(i.vba.length>0?p.vbaraw=xt(e,or(i.vba[0]),!0):i.defaults&&i.defaults.bin===zp&&(p.vbaraw=xt(e,"xl/vbaProject.bin",!0))),p}function F1(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(Su(i.content),a="/!DataSpaces/DataSpaceMap",i=et.find(e,a),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=Eu(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=Cu(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);Du(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=Ou(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 Ls(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 L1(e,r){return et.find(e,"EncryptedPackage")?F1(e,r):Wl(e,r)}function I1(e,r){var t,a=e,i=r||{};return i.type||(i.type=Qe&&Buffer.isBuffer(e)?"buffer":"base64"),t=Io(a,i),P1(t,i)}function Vl(e,r){var t=0;e:for(;t=2&&i[3]===0||i[2]===0&&(i[3]===8||i[3]===9)))return Ni.to_workbook(a,t);break;case 3:case 131:case 139:case 140:return In.to_workbook(a,t);case 123:if(i[1]===92&&i[2]===114&&i[3]===116)return zu.to_workbook(a,t);break;case 10:case 13:case 32:return R1(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 lu.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31?In.to_workbook(a,t):$a(e,a,t,s)}function j1(e,r,t,a,i,s,o,c){var u=Dt(t),_=c.defval,m=c.raw||!Object.prototype.hasOwnProperty.call(c,"raw"),L=!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 A=r.s.c;A<=r.e.c;++A){var p=o?e[t][A]:e[a[A]+u];if(p===void 0||p.t===void 0){if(_===void 0)continue;s[A]!=null&&(j[s[A]]=_);continue}var g=p.v;switch(p.t){case"z":if(g==null)break;continue;case"e":g=g==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(s[A]!=null){if(g==null)if(p.t=="e"&&g===null)j[s[A]]=null;else if(_!==void 0)j[s[A]]=_;else if(m&&g===null)j[s[A]]=null;else continue;else j[s[A]]=m&&(p.t!=="n"||p.t==="n"&&c.rawNumbers!==!1)?g:Mr(p,g,c);g!=null&&(L=!1)}}return{row:j,isempty:L}}function ss(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}},_=r||{},m=_.range!=null?_.range:e["!ref"];switch(_.header===1?a=1:_.header==="A"?a=2:Array.isArray(_.header)?a=3:_.header==null&&(a=0),typeof m){case"string":u=dt(m);break;case"number":u=dt(e["!ref"]),u.s.r=m;break;default:u=m}a>0&&(i=0);var L=Dt(u.s.r),j=[],A=[],p=0,g=0,w=Array.isArray(e),D=u.s.r,E=0,N={};w&&!e[D]&&(e[D]=[]);var M=_.skipHidden&&e["!cols"]||[],b=_.skipHidden&&e["!rows"]||[];for(E=u.s.c;E<=u.e.c;++E)if(!(M[E]||{}).hidden)switch(j[E]=yt(E),t=w?e[D][E]:e[j[E]+L],a){case 1:s[E]=E-u.s.c;break;case 2:s[E]=j[E];break;case 3:s[E]=_.header[E-u.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),c=o=Mr(t,null,_),g=N[o]||0,!g)N[o]=1;else{do c=o+"_"+g++;while(N[c]);N[o]=g,N[c]=1}s[E]=c}for(D=u.s.r+i;D<=u.e.r;++D)if(!(b[D]||{}).hidden){var F=j1(e,u,D,j,a,s,w,_);(F.isempty===!1||(a===1?_.blankrows!==!1:_.blankrows))&&(A[p++]=F.row)}return A.length=p,A}var Jn=/"/g;function U1(e,r,t,a,i,s,o,c){for(var u=!0,_=[],m="",L=Dt(t),j=r.s.c;j<=r.e.c;++j)if(a[j]){var A=c.dense?(e[t]||[])[j]:e[a[j]+L];if(A==null)m="";else if(A.v!=null){u=!1,m=""+(c.rawNumbers&&A.t=="n"?A.v:Mr(A,null,c));for(var p=0,g=0;p!==m.length;++p)if((g=m.charCodeAt(p))===i||g===s||g===34||c.forceQuotes){m='"'+m.replace(Jn,'""')+'"';break}m=="ID"&&(m='"ID"')}else A.f!=null&&!A.F?(u=!1,m="="+A.f,m.indexOf(",")>=0&&(m='"'+m.replace(Jn,'""')+'"')):m="";_.push(m)}return c.blankrows===!1&&u?null:_.join(o)}function Yl(e,r){var t=[],a=r??{};if(e==null||e["!ref"]==null)return"";var i=dt(e["!ref"]),s=a.FS!==void 0?a.FS:",",o=s.charCodeAt(0),c=a.RS!==void 0?a.RS:` `,u=c.charCodeAt(0),_=new RegExp((s=="|"?"\\|":s)+"+$"),m="",L=[];a.dense=Array.isArray(e);for(var j=a.skipHidden&&e["!cols"]||[],A=a.skipHidden&&e["!rows"]||[],p=i.s.c;p<=i.e.c;++p)(j[p]||{}).hidden||(L[p]=yt(p));for(var g=0,w=i.s.r;w<=i.e.r;++w)(A[w]||{}).hidden||(m=U1(e,i,w,L,o,u,s,a),m!=null&&(a.strip&&(m=m.replace(_,"")),(m||a.blankrows!==!1)&&t.push((g++?c:"")+m)));return delete a.dense,t.join("")}function H1(e,r){r||(r={}),r.FS=" ",r.RS=` `;var t=Yl(e,r);return t}function W1(e){var r="",t,a="";if(e==null||e["!ref"]==null)return[];var i=dt(e["!ref"]),s="",o=[],c,u=[],_=Array.isArray(e);for(c=i.s.c;c<=i.e.c;++c)o[c]=yt(c);for(var m=i.s.r;m<=i.e.r;++m)for(s=Dt(m),c=i.s.c;c<=i.e.c;++c)if(r=o[c]+s,t=_?(e[m]||[])[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"?Vt(a.origin):a.origin;o=u.r,c=u.c}var _,m={s:{c:0,r:0},e:{c,r:o+r.length-1+i}};if(s["!ref"]){var L=dt(s["!ref"]);m.e.c=Math.max(m.e.c,L.e.c),m.e.r=Math.max(m.e.r,L.e.r),o==-1&&(o=L.e.r+1,m.e.r=o+r.length-1+i)}else o==-1&&(o=0,m.e.r=r.length-1+i);var j=a.header||[],A=0;r.forEach(function(g,w){br(g).forEach(function(D){(A=j.indexOf(D))==-1&&(j[A=j.length]=D);var E=g[D],N="z",M="",b=Ye({c:c+A,r:o+w+i});_=qi(s,b),E&&typeof E=="object"&&!(E instanceof Date)?s[b]=E:(typeof E=="number"?N="n":typeof E=="boolean"?N="b":typeof E=="string"?N="s":E instanceof Date?(N="d",a.cellDates||(N="n",E=$t(E)),M=a.dateNF||Ke[14]):E===null&&a.nullError&&(N="e",E=0),_?(_.t=N,_.v=E,delete _.w,delete _.R,M&&(_.z=M)):s[b]=_={t:N,v:E},M&&(_.z=M))})}),m.e.c=Math.max(m.e.c,c+j.length-1);var p=Dt(o);if(i)for(A=0;A=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 Is(){return{SheetNames:[],Sheets:{}}}function Rs(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(Cm(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 X1(e,r,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var a=G1(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 V1(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 Y1(e,r,t){return Kl(e,"#"+r,t)}function $1(e,r,t){e.c||(e.c=[]),e.c.push({t:r,a:t||"SheetJS"})}function K1(e,r,t,a){for(var i=typeof r!="string"?r:dt(r),s=typeof r=="string"?r:tt(r),o=i.s.r;o<=i.e.r;++o)for(var c=i.s.c;c<=i.e.c;++c){var u=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 q1={encode_col:yt,encode_row:Dt,encode_cell:Ye,encode_range:tt,decode_col:ks,decode_row:Ts,split_cell:o0,decode_cell:Vt,decode_range:_i,format_cell:Mr,sheet_add_aoa:Qo,sheet_add_json:$l,sheet_add_dom:zl,aoa_to_sheet:wi,json_to_sheet:z1,table_to_sheet:Gl,table_to_book:d1,sheet_to_csv:Yl,sheet_to_txt:H1,sheet_to_json:ss,sheet_to_html:f1,sheet_to_formulae:W1,sheet_to_row_object_array:ss,sheet_get_cell:qi,book_new:Is,book_append_sheet:Rs,book_set_sheet_visibility:X1,cell_set_number_format:V1,cell_set_hyperlink:Kl,cell_set_internal_link:Y1,cell_add_comment:$1,sheet_set_array_formula:K1,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const Z1={style:{display:"flex","align-items":"center"}},J1={style:{"margin-left":"20px",color:"#2d8cf0"}},Q1={style:{float:"right"}},ev={__name:"ImportVue",props:{task:{required:!0,default:{}}},emits:["importFiles"],setup(e,{emit:r}){const t=e,a=ze(!1),i=kt(),s=ze(0),o=ze(!1),c=ze([]),u=g=>new Promise(w=>{const D=new FileReader;D.readAsBinaryString(g),D.onload=E=>{w(E.target.result)}}),_=async({file:g})=>{const w=await u(g.file),D=as(w,{type:"binary",cellDates:!0}),E=D.Sheets[D.SheetNames[0]];c.value=q1.sheet_to_json(E),console.log("导入",c.value),c.value.forEach(N=>{N.记录时间=lo(N.记录时间,"YYYY-MM-DD HH:mm:ss").value})},m=qe({Time_start:null,Time_end:null,T_sn:"",T_id:"",page:1,page_z:9999}),L=()=>{s.value=0,o.value=!0,a.value=!1};hr(o,g=>{g||(s.value=0,c.value=[])});const j=async()=>{if(s.value=0,c.value.length==0){i.error("没有可导入数据哦,检查文件是否为空数据");return}else{a.value=!0;let g=100;for(let w=0;wnew Promise(w=>{const D=g.map(E=>E.SN+"|"+E.编号+"|"+E["温度℃"]+"|"+E["湿度%"]+"|"+E.记录时间);setTimeout(()=>{w(D.join("?"))},100)}),p=async g=>new Promise(w=>{setTimeout(()=>{const D=ro({T_task_id:t.task.T_task_id,T_Data:g});w(D)},100)});return(g,w)=>{const D=At,E=co,N=dr,M=nr,b=Qt;return Ve(),it(ft,null,[Te(D,{type:"primary",onClick:L},{default:ke(()=>[Re("导入数据")]),_:1}),Te(b,{show:o.value,"onUpdate:show":w[1]||(w[1]=F=>o.value=F),"show-icon":!1,preset:"dialog",title:"导入","mask-closable":!1},{default:ke(()=>[Te(M,{model:We(m),"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(N,{label:"数据"},{default:ke(()=>[Te(E,{"default-upload":!1,max:1,onChange:_},{default:ke(()=>[He("div",Z1,[Te(D,null,{default:ke(()=>[Re("上传文件")]),_:1}),He("div",J1,"进度:"+wt(s.value)+"/"+wt(c.value.length),1)])]),_:1})]),_:1})]),_:1},8,["model"]),He("div",Q1,[Te(D,{onClick:w[0]||(w[0]=F=>o.value=!1)},{default:ke(()=>[Re(" 取消 ")]),_:1}),Te(D,{type:"primary",onClick:j,disabled:a.value,style:{"margin-left":"20px"}},{default:ke(()=>[Re(" 确认 ")]),_:1},8,["disabled"])])]),_:1},8,["show"])],64)}}},tv={class:"flex justify-end"},rv={class:"text-center font-bold"},iv={class:"flex justify-end"},av={__name:"ImportPlatform",props:{task:{required:!0,default:{}}},setup(e){const r=e,t=kt();to();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}),_=ze(0),m=()=>{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,_.value=0},L=async()=>{if(o.value.length===0)return t.info("无数据");a.value=!0;let w=o.value,D=100;for(let E=0;Enew Promise(D=>{const E=w.map(N=>N.T_sn+"-"+N.T_id+"|"+N.T_id+"|"+N.T_t+"|"+N.T_rh+"|"+N.T_time);D(E.join("?"))}),A=async w=>new Promise(D=>{setTimeout(()=>{const E=ro({T_task_id:r.task.T_task_id,T_Data:w});D(E)},100)}),p=async()=>{console.log("查询1",u);const w=await g(u);if(console.log("查询2",u),w){const{data:D}=await ph({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=D.Data.Data||[],c.value=D.Data.Num||0}else t.error("搜索条件全部必填哦")},g=w=>new Promise(D=>{w.Time_start!=null&&w.Time_end!=null&&w.T_sn!=null&&w.T_id!=null?D(!0):D(!1)});return(w,D)=>{const E=At,N=ki,M=dr,b=ei,F=nr,P=wa,I=Bc,v=ho,B=kc,T=bc,S=cs,x=Ca,h=Qt;return Ve(),it(ft,null,[Te(E,{type:"primary",onClick:m},{default:ke(()=>[Re("导入数据(冷链平台)")]),_:1}),Te(h,{style:{width:"30%"},show:We(i),"onUpdate:show":D[3]||(D[3]=n=>Sa(i)?i.value=n:null),"show-icon":!1,preset:"dialog",title:"导入"},{default:ke(()=>[Te(x,{vertical:""},{default:ke(()=>[Te(P,null,{action:ke(()=>[He("div",tv,[Te(E,{type:"primary",onClick:p},{default:ke(()=>[Re("查询")]),_:1})])]),default:ke(()=>[Te(F,{model:We(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":D[0]||(D[0]=n=>{We(u).Time_start=n[0],We(u).Time_end=n[1]})})]),_:1}),Te(M,{label:"SN",path:"T_sn"},{default:ke(()=>[Te(b,{value:We(u).T_sn,"onUpdate:value":D[1]||(D[1]=n=>We(u).T_sn=n)},null,8,["value"])]),_:1}),Te(M,{label:"探头编号",path:"T_id"},{default:ke(()=>[Te(b,{value:We(u).T_id,"onUpdate:value":D[2]||(D[2]=n=>We(u).T_id=n)},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1}),Te(P,{title:"数据总量"},{"header-extra":ke(()=>[Te(v,{show:We(s)},{default:ke(()=>[Te(I,{type:"dashboard","gap-position":"bottom",percentage:100},{default:ke(()=>[He("span",rv,wt(We(_))+"/"+wt(We(c)),1)]),_:1})]),_:1},8,["show"])]),action:ke(()=>[He("div",iv,[Te(S,{onPositiveClick:L},{trigger:ke(()=>[Te(E,{type:"primary",disabled:We(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(wt(We(u).T_sn),1)]),_:1}),Te(B,{label:"探头编号"},{default:ke(()=>[Re(wt(We(u).T_id),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["show"])],64)}}},sv={__name:"SetVue",emits:["submit"],setup(e,{emit:r}){const t=yi(),a=()=>{Zt.emit("onMessage",s),t.commit("setplotData",s)},i=ze(!1),s=qe({tTop:null,tBottom:null,hTop:null,hBottom:null}),o=()=>{i.value=!0};return(c,u)=>{const _=At,m=Zc,L=ei,j=dr,A=nr,p=Qt;return Ve(),it(ft,null,[Te(_,{type:"primary",onClick:o},{default:ke(()=>[Re("温湿度上下限设置")]),_:1}),Te(p,{show:We(i),"onUpdate:show":u[4]||(u[4]=g=>Sa(i)?i.value=g:null),"show-icon":!1,preset:"dialog",title:"温湿度上下限设置","positive-text":"确认","negative-text":"取消",onPositiveClick:a},{default:ke(()=>[Te(A,{model:We(s),"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(m,{"title-placement":"center"},{default:ke(()=>[Re(" 温度 ")]),_:1}),Te(j,{label:"上限",path:"value"},{default:ke(()=>[Te(L,{value:We(s).tTop,"onUpdate:value":u[0]||(u[0]=g=>We(s).tTop=g)},null,8,["value"])]),_:1}),Te(j,{label:"下限",path:"value"},{default:ke(()=>[Te(L,{value:We(s).tBottom,"onUpdate:value":u[1]||(u[1]=g=>We(s).tBottom=g)},null,8,["value"])]),_:1}),Te(m,{"title-placement":"center"},{default:ke(()=>[Re(" 湿度 ")]),_:1}),Te(j,{label:"上限",path:"value"},{default:ke(()=>[Te(L,{value:We(s).hTop,"onUpdate:value":u[2]||(u[2]=g=>We(s).hTop=g)},null,8,["value"])]),_:1}),Te(j,{label:"下限",path:"value"},{default:ke(()=>[Te(L,{value:We(s).hBottom,"onUpdate:value":u[3]||(u[3]=g=>We(s).hBottom=g)},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["show"])],64)}}},nv={__name:"ExportVue",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=kt();Gt(()=>r.classList);const a=qe({T_task_id:"",T_sn_list:[],Time_start:null,Time_end:null}),i=async()=>{if(console.log("sds",r.pickleveTime),r.checkData==null||r.checkData.length==0){t.error("请选择需要导出的设备");return}else a.T_task_id=r.queryObj.T_task_id,a.Time_start=r.pickleveTime==null?"":ot(r.pickleveTime[0]),a.Time_end=r.pickleveTime==null?"":ot(r.pickleveTime[1]),a.T_sn_list=s(r.checkData),wc(a).then(o=>{console.log("请求完成",o),o.data.Code===200&&(location.href=o.data.Data)})},s=o=>o.map(u=>u.T_sn).join(",");return(o,c)=>{const u=At;return Ve(),Et(u,{type:"primary",onClick:i},{default:ke(()=>[Re("导出数据")]),_:1})}}},ov={__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=yi(),a=qe({fNum:null,obj:{}});hr(()=>a.fNum,j=>{console.log("开始存",j),t.commit("setfocuFun",j)},{deep:!0,immediate:!0}),xc(()=>{t.commit("setfocuFun",null)});const i=qe({formList:[]});Zt.emit("onFormData",a);const s=()=>{console.log("失去------------------------"),a.fNum=null},o=(j,A)=>{console.log("获得++++++++++++++++++++++++"),a.fNum=A,a.obj=j};hr(()=>r.time,j=>{console.log("单击",ot(j),a.fNum),a.fNum!=null&&(console.log("继续单击",j,a.fNum,a.obj),a.obj.T_label===7&&(i.formList[a.fNum].T_value=ot(j)),a.obj.T_label===12&&(i.formList[a.fNum].T_value[0]=ot(j)),a.fNum=null)}),Zt.on("onSelectionTime",j=>{console.log("读取",j,parseInt(j[0].min),parseInt(j[0].max));let A=ot(parseInt(j[0].min)),p=ot(parseInt(j[0].max));a.fNum!=null&&(a.obj.T_label===9&&(i.formList[a.fNum].T_value=[A,p]),a.obj.T_label===13&&(i.formList[a.fNum].T_value[0]=[A,p]))}),os(()=>{Zt.off("onSelectionTime")}),hr(()=>i.formList,async(j,A)=>{if(console.log("最新",j,A),A.length!=0){const p=await c(),g=mc();Nc({User_tokey:g,T_source:u.T_source,T_task_id:u.T_task_id,T_VerifyTemplate_id:u.T_VerifyTemplate_id,VerifyTemplateMapData:p}),console.log("修改值",p)}},{deep:!0});const c=()=>{let j=[];return new Promise(A=>{i.formList.forEach(p=>{let g={...p};g.T_label==3||g.T_label==9?g.T_value!=null?g.T_value=g.T_value.join("|"):g.T_value=null:g.T_label==12?g.T_value=g.T_value.join("/"):g.T_label==13&&(g.T_value[0]!=null&&g.T_value[1]!=null?g.T_value=g.T_value[0].join("|")+"/"+g.T_value[1]:g.T_value[0]==null&&g.T_value[1]!=null?g.T_value="/"+g.T_value[1]:g.T_value[0]!=null&&g.T_value[1]==null?g.T_value=g.T_value[0].join("|")+"/":g.T_value=""),j.push(g)}),A(j)})},u=qe({T_source:3,T_task_id:r.task.T_task_id,T_VerifyTemplate_id:r.task.T_VerifyTemplate_id}),_=j=>{if(i.formList[j].T_value.length!==0)return i.formList[j].T_value=[];i.formList[j].T_value=r.classList.map(A=>A.T_sn)},m=j=>{const A=r.classList.map(p=>p.T_sn);i.formList[j].T_value=A.filter(p=>!i.formList[j].T_value.includes(p))};return(async()=>{try{const{data:j}=await jc(u);i.formList=j.Data||[],i.formList.forEach(A=>{A.T_label===3?A.T_value==""||A.T_value==null?A.T_value=[]:A.T_value=A.T_value.split("|"):A.T_label==9?A.T_value==""||A.T_value==null?A.T_value=null:A.T_value=A.T_value.split("|"):A.T_label===12?A.T_value==""||A.T_value==null?A.T_value=[null,null]:A.T_value.split("/")[0]==""?A.T_value=[null,A.T_value.split("/")[1]]:A.T_value=[A.T_value.split("/")[0],A.T_value.split("/")[1]]:A.T_label===13?A.T_value==""||A.T_value==null||A.T_value=="null"?A.T_value=[null,null]:A.T_value.split("/")[0]==""?A.T_value=[null,A.T_value.split("/")[1]]:A.T_value=[A.T_value.split("/")[0].split("|"),A.T_value.split("/")[1]]:A.T_value=A.T_value?A.T_value:null})}catch(j){console.log(j)}})(),(j,A)=>{const p=At,g=Ca,w=Aa,D=ki,E=fo,N=co,M=ei,b=Uc,F=Hc,P=nr;return Ve(),Et(P,{"label-width":"auto"},{default:ke(()=>[Te(F,{cols:12,"x-gap":12},{default:ke(()=>[(Ve(!0),it(ft,null,Ti(We(i).formList,(I,v)=>(Ve(),Et(b,{key:I.T_VerifyTemplateMap_id,span:12,label:I.T_name},{default:ke(()=>[I.T_label===3?(Ve(),Et(w,{key:0,value:I.T_value,"onUpdate:value":B=>I.T_value=B,multiple:"","label-field":"T_id","value-field":"T_sn","max-tag-count":"responsive",options:e.classList},{action:ke(()=>[Te(g,null,{default:ke(()=>[Te(p,{class:"underline",text:"",onClick:B=>_(v)},{default:ke(()=>[Re("全选")]),_:2},1032,["onClick"]),Te(p,{class:"underline",text:"",onClick:B=>m(v)},{default:ke(()=>[Re("反选")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1032,["value","onUpdate:value","options"])):I.T_label===4?(Ve(),Et(w,{key:1,value:I.T_value,"onUpdate:value":B=>I.T_value=B,"label-field":"T_id","value-field":"T_sn",options:e.classList},null,8,["value","onUpdate:value","options"])):I.T_label===7?(Ve(),Et(D,{key:2,onFocus:B=>o(I,v),onBlur:s,"formatted-value":I.T_value,"onUpdate:formattedValue":B=>I.T_value=B,"value-format":"yyyy-MM-dd HH:mm",type:"datetime",clearable:"",class:"w-full"},null,8,["onFocus","formatted-value","onUpdate:formattedValue"])):I.T_label===9?(Ve(),Et(D,{key:3,onFocus:B=>o(I,v),onBlur:s,"formatted-value":I.T_value,"onUpdate:formattedValue":B=>I.T_value=B,"value-format":"yyyy-MM-dd HH:mm",type:"datetimerange",clearable:"",class:"w-full"},null,8,["onFocus","formatted-value","onUpdate:formattedValue"])):I.T_label===10?(Ve(),it(ft,{key:4},[Te(E,{class:"mr-5",width:"100",src:I.T_value},null,8,["src"]),Te(N,{"list-type":"image-card",onChange:B=>j.handleChangeByIndex(B,v),"default-upload":!1,max:1},{default:ke(()=>[Re(" 点击上传 ")]),_:2},1032,["onChange"])],64)):I.T_label===11?(Ve(),it(ft,{key:5},[Te(E,{class:"mr-5",width:"100",src:I.T_value},null,8,["src"]),Te(g,null,{default:ke(()=>[Te(p,{onClick:()=>j.handleEdit(I)},{default:ke(()=>[Re("编辑")]),_:2},1032,["onClick"]),Te(p,{onClick:()=>j.handleRefresh(v)},{default:ke(()=>[Re("刷新")]),_:2},1032,["onClick"])]),_:2},1024)],64)):I.T_label===12?(Ve(),Et(g,{key:6,vertical:"",class:"w-full"},{default:ke(()=>[Te(D,{onFocus:B=>o(I,v),onBlur:s,"formatted-value":I.T_value[0],"onUpdate:formattedValue":B=>I.T_value[0]=B,format:"yyyy-MM-dd HH:mm","time-picker-props":{format:"HH:mm"},type:"datetime",clearable:""},null,8,["onFocus","formatted-value","onUpdate:formattedValue"]),Te(M,{value:I.T_value[1],"onUpdate:value":B=>I.T_value[1]=B,type:"text"},null,8,["value","onUpdate:value"])]),_:2},1024)):I.T_label===13?(Ve(),Et(g,{key:7,vertical:"",class:"w-full"},{default:ke(()=>[Te(D,{onFocus:B=>o(I,v),onBlur:s,"formatted-value":I.T_value[0],"onUpdate:formattedValue":B=>I.T_value[0]=B,format:"yyyy-MM-dd HH:mm","time-picker-props":{format:"HH:mm"},type:"datetimerange",clearable:""},null,8,["onFocus","formatted-value","onUpdate:formattedValue"]),Te(M,{value:I.T_value[1],"onUpdate:value":B=>I.T_value[1]=B,type:"text"},null,8,["value","onUpdate:value"])]),_:2},1024)):(Ve(),Et(M,{key:8,value:I.T_value,"onUpdate:value":B=>I.T_value=B},null,8,["value","onUpdate:value"]))]),_:2},1032,["label"]))),128))]),_:1})]),_:1})}}},lv={__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=kt();yi();const i=async()=>{var m=/^([1-9]\d*(\.\d*[1-9][0-9])?)|(0\.\d*[1-9][0-9])|(0\.\d*[1-9])$/;if(!m.test(u.Temperature)){a.error("温度比列格式为大于0【必填】");return}if(!m.test(u.Humidity)){a.error("湿度比列格式为大于0【必填】");return}await o(),s(),console.log("sss",u)},s=async()=>{yh(u).then(m=>{m.data.Code==200&&(a.success(m.data.Msg),c.value=!1,r("ratioZoomFun"))})},o=()=>new Promise(m=>{u.StartTime=Xt(u.StartTime),u.EndTime=Xt(u.EndTime);const j=[...t.checkData].map(A=>A.T_sn+","+A.T_id);u.SN_List=j.join("|")+"|",m()}),c=ze(!1),u=qe({Temperature:1,Humidity:1,T_task_id:"",SN_List:"",StartTime:null,EndTime:null}),_=()=>{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(m,L)=>{const j=At,A=ei,p=dr,g=nr,w=Qt;return Ve(),it(ft,null,[Te(j,{type:"primary",onClick:_},{default:ke(()=>[Re("等比缩放")]),_:1}),Te(w,{show:We(c),"onUpdate:show":L[3]||(L[3]=D=>Sa(c)?c.value=D: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:L[2]||(L[2]=D=>c.value=!1),style:{"margin-left":"10px"}},{default:ke(()=>[Re("取消")]),_:1})]),default:ke(()=>[Te(g,{model:We(u),"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(p,{label:"温度比列",path:"value"},{default:ke(()=>[Te(A,{value:We(u).Temperature,"onUpdate:value":L[0]||(L[0]=D=>We(u).Temperature=D)},null,8,["value"])]),_:1}),Te(p,{label:"湿度比列",path:"value"},{default:ke(()=>[Te(A,{value:We(u).Humidity,"onUpdate:value":L[1]||(L[1]=D=>We(u).Humidity=D)},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["show"])],64)}}},cv={style:{overflow:"hidden",display:"flex","flex-direction":"column"}},hv={style:{flex:"1","overflow-y":"auto"}},fv=He("thead",null,[He("tr",null,[He("th",null,"时间"),He("th",null,"操作")])],-1),dv={style:{display:"flex","align-items":"center"}},uv={__name:"OnFile",props:{task:{type:Object,default:()=>({})}},setup(e){const r=e,t=kt(),a=Ea(),i=qe({list:[]}),s=async _=>{const{data:m}=await gh({T_task_id:r.task.T_task_id,T_copy_id:_.T_copy_id});console.log("存档返回",m),m.Code==200&&m.Msg=="ok!"&&(t.success("恢复成功"),u())},o=_=>{a.warning({title:"提示",content:"删除存档,是否继续?",positiveText:"删除",negativeText:"取消",onPositiveClick:async()=>{const{data:m}=await xh({T_copy_id:_.T_copy_id});console.log("存档返回",m),m.Code==200&&(t.success("删除存档成功"),u())},onNegativeClick:()=>{t.warning("已取消删除存档")}})},c=async()=>{const{data:_}=await mh({T_task_id:r.task.T_task_id});console.log("存档返回",_),_.Code==200&&_.Msg=="ok!"&&(t.success("存档成功"),u())},u=async()=>{const{data:_}=await vh({T_task_id:r.task.T_task_id,page:1,page_z:9999});_.Code==200&&(i.list=_.Data.List),console.log("返回",_)};return hr(()=>r.task,_=>{u()},{deep:!0,immediate:!0}),(_,m)=>{const L=At,j=ls;return Ve(),it("div",cv,[Te(L,{type:"primary",style:{"margin-bottom":"10px",width:"120px"},onClick:c},{default:ke(()=>[Re("备份存档")]),_:1}),He("div",hv,[Te(j,{bordered:!1,"single-line":!1,"max-height":250},{default:ke(()=>[fv,He("tbody",null,[(Ve(!0),it(ft,null,Ti(We(i).list,(A,p)=>(Ve(),it("tr",{key:p},[He("td",null,wt(A.T_time),1),He("td",dv,[Te(L,{style:{"margin-right":"10px"},onClick:g=>s(A)},{default:ke(()=>[Re("恢复")]),_:2},1032,["onClick"]),Te(L,{type:"error",onClick:g=>o(A)},{default:ke(()=>[Re("删除")]),_:2},1032,["onClick"])])]))),128))])]),_:1})])])}}},pv={style:{display:"flex","justify-content":"flex-end"}},gv={__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=kt(),a=Gt(()=>{let p=[...r.classList];return p.forEach(g=>{g.T_snid=g.T_sn+","+g.T_id}),p}),i=qe({CopySN:"",CopyID:"",T_saveT:60,T_task_id:"",SN_List:""}),s=ze(null),o=qe({StartTime:null,EndTime:null,CopyTime:null});hr(()=>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),_=()=>{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},m=ze(null),L=()=>{var p;(p=m.value)==null||p.validate(g=>{g||j()})},j=async()=>{let p=await A();Th(p).then(g=>{g.data.Code==200&&(t.success(g.data.Msg),u.value=!1)})},A=()=>new Promise(p=>{i.CopySN=s.value.split(",")[0],i.CopyID=s.value.split(",")[1];let g={...o},w=[...r.checkData];Object.keys(g).forEach(E=>{g[E]=ot(g[E])+":00"});const D=w.map(E=>E.T_sn+","+E.T_id);i.SN_List=D.join("|")+"|",console.log(i,g),p({...i,...g})});return(p,g)=>{const w=At,D=ki,E=dr,N=Aa,M=nr,b=Qt;return Ve(),it(ft,null,[Te(w,{onClick:_},{default:ke(()=>[Re("复制到")]),_:1}),Te(b,{style:{width:"40%"},show:u.value,"onUpdate:show":g[5]||(g[5]=F=>u.value=F),title:"复制到:","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(M,{ref_key:"formRef",ref:m,model:o,rules:c,"label-placement":"left","require-mark-placement":"left","label-width":"100"},{default:ke(()=>[Te(E,{label:"开始时间"},{default:ke(()=>[Te(D,{value:o.StartTime,"onUpdate:value":g[0]||(g[0]=F=>o.StartTime=F),format:"yyyy-MM-dd HH:mm",disabled:"",type:"datetime",style:{width:"100%"}},null,8,["value"])]),_:1}),Te(E,{label:"结束时间"},{default:ke(()=>[Te(D,{value:o.EndTime,"onUpdate:value":g[1]||(g[1]=F=>o.EndTime=F),format:"yyyy-MM-dd HH:mm",disabled:"",type:"datetime",style:{width:"100%"}},null,8,["value"])]),_:1}),Te(E,{label:"复制到时间",path:"CopyTime"},{default:ke(()=>[Te(D,{value:o.CopyTime,"onUpdate:value":g[2]||(g[2]=F=>o.CopyTime=F),format:"yyyy-MM-dd HH:mm",type:"datetime",style:{width:"100%"}},null,8,["value"])]),_:1}),Te(E,{label:"复制到设备",path:"selectSn"},{default:ke(()=>[Te(N,{value:s.value,"onUpdate:value":g[3]||(g[3]=F=>s.value=F),"label-field":"T_id","value-field":"T_snid",options:We(a)},null,8,["value","options"])]),_:1}),He("div",pv,[Te(w,{onClick:g[4]||(g[4]=F=>u.value=!1),style:{"margin-right":"10px"}},{default:ke(()=>[Re("取消")]),_:1}),Te(w,{type:"primary",onClick:L},{default:ke(()=>[Re("立即提交")]),_:1})])]),_:1},8,["model","rules"])]),_:1},8,["show"])],64)}}},xv={style:{display:"flex","justify-content":"flex-end"}},mv={__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=kt(),a=Gt(()=>{let p=[...r.classList];return p.forEach(g=>{g.T_snid=g.T_sn+","+g.T_id}),p}),i=qe({CopySN:"",CopyID:"",T_saveT:60,T_task_id:"",SN_List:""}),s=ze(null),o=qe({StartTime:null,EndTime:null,CopyTime:null});hr(()=>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),_=()=>{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},m=ze(null),L=()=>{var p;(p=m.value)==null||p.validate(g=>{g||j()})},j=async()=>{let p=await A();kh(p).then(g=>{g.data.Code==200&&(t.success(g.data.Msg),u.value=!1)})},A=()=>new Promise(p=>{i.CopySN=s.value.split(",")[0],i.CopyID=s.value.split(",")[1];let g={...o},w=[...r.checkData];Object.keys(g).forEach(E=>{g[E]=ot(g[E])+":00"});const D=w.map(E=>E.T_sn+","+E.T_id);i.SN_List=D.join("|")+"|",console.log(i,g),p({...i,...g})});return(p,g)=>{const w=At,D=ki,E=dr,N=Aa,M=nr,b=Qt;return Ve(),it(ft,null,[Te(w,{onClick:_},{default:ke(()=>[Re("平均复制到")]),_:1}),Te(b,{style:{width:"40%"},show:u.value,"onUpdate:show":g[5]||(g[5]=F=>u.value=F),title:"平均复制到:","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(M,{ref_key:"formRef",ref:m,model:o,rules:c,"label-placement":"left","require-mark-placement":"left","label-width":"100"},{default:ke(()=>[Te(E,{label:"开始时间"},{default:ke(()=>[Te(D,{value:o.StartTime,"onUpdate:value":g[0]||(g[0]=F=>o.StartTime=F),format:"yyyy-MM-dd HH:mm",disabled:"",type:"datetime",style:{width:"100%"}},null,8,["value"])]),_:1}),Te(E,{label:"结束时间"},{default:ke(()=>[Te(D,{value:o.EndTime,"onUpdate:value":g[1]||(g[1]=F=>o.EndTime=F),format:"yyyy-MM-dd HH:mm",disabled:"",type:"datetime",style:{width:"100%"}},null,8,["value"])]),_:1}),Te(E,{label:"复制到时间",path:"CopyTime"},{default:ke(()=>[Te(D,{value:o.CopyTime,"onUpdate:value":g[2]||(g[2]=F=>o.CopyTime=F),format:"yyyy-MM-dd HH:mm",type:"datetime",style:{width:"100%"}},null,8,["value"])]),_:1}),Te(E,{label:"复制到设备",path:"selectSn"},{default:ke(()=>[Te(N,{value:s.value,"onUpdate:value":g[3]||(g[3]=F=>s.value=F),"label-field":"T_id","value-field":"T_snid",options:We(a)},null,8,["value","options"])]),_:1}),He("div",xv,[Te(w,{onClick:g[4]||(g[4]=F=>u.value=!1),style:{"margin-right":"10px"}},{default:ke(()=>[Re("取消")]),_:1}),Te(w,{type:"primary",onClick:L},{default:ke(()=>[Re("立即提交")]),_:1})])]),_:1},8,["model","rules"])]),_:1},8,["show"])],64)}}},vv={__name:"editLeak",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=kt(),a=qe({T_saveT:60,T_task_id:"",SN_List:""}),i=qe({StartTime:null,EndTime:null}),s=Ea(),o=()=>{if(r.checkData==null||r.checkData.length==0){t.error("请选择需要补漏的设备");return}else if(r.pickleveTime==null){t.error("请选择补漏的时间");return}else a.T_task_id=r.queryObj.T_task_id,i.StartTime=new Date(r.pickleveTime[0]).getTime(),i.EndTime=new Date(r.pickleveTime[1]).getTime(),s.warning({title:"提示",content:`确定对${ot(i.StartTime)}至${ot(i.EndTime)}进行数据补漏吗?`,positiveText:"立即补漏",negativeText:"取消",onPositiveClick:()=>{c()},onNegativeClick:()=>{t.error("已取消补漏")}})},c=async()=>{let _=await u();bh(_).then(m=>{m.data.Code==200&&t.success(m.data.Msg)})},u=()=>new Promise(_=>{let m={...i},L=[...r.checkData];Object.keys(m).forEach(A=>{m[A]=ot(m[A])+":00"});const j=L.map(A=>A.T_sn+","+A.T_id);a.SN_List=j.join("|")+"|",console.log(a,m),_({...a,...m})});return(_,m)=>{const L=At;return Ve(),Et(L,{onClick:o},{default:ke(()=>[Re("补漏")]),_:1})}}},yv={__name:"editTendency",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=kt(),a=qe({T_saveT:60,T_task_id:"",SN_List:""}),i=qe({StartTime:null,EndTime:null}),s=Ea(),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 _=await u();_h(_).then(m=>{m.data.Code==200&&t.success(m.data.Msg)})},u=()=>new Promise(_=>{let m={...i},L=[...r.checkData];Object.keys(m).forEach(A=>{m[A]=ot(m[A])+":00"});const j=L.map(A=>A.T_sn+","+A.T_id);a.SN_List=j.join("|")+"|",console.log(a,m),_({...a,...m})});return(_,m)=>{const L=At;return Ve(),Et(L,{onClick:o},{default:ke(()=>[Re("趋势")]),_:1})}}},Tv={style:{display:"flex","justify-content":"flex-end"}},kv={__name:"editMath",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=kt();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(m=>{console.log(m),i[m]=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 m=await _();wh(m).then(L=>{L.data.Code==200&&(t.success(L.data.Msg),s.value=!1)})},_=()=>new Promise(m=>{let L={...i},j=[...r.checkData],A={...a};Object.keys(L).forEach(g=>{L[g]=ot(L[g])+":00"});const p=j.map(g=>g.T_sn+","+g.T_id);a.SN_List=p.join("|")+"|",A.TemperatureMin=A.TemperatureMin*100,A.TemperatureMax=A.TemperatureMax*100,A.HumidityMin=A.HumidityMin*100,A.HumidityMax=A.HumidityMax*100,m({...A,...L})});return(m,L)=>{const j=At,A=Ma,p=dr,g=nr,w=Qt;return Ve(),it(ft,null,[Te(j,{onClick:o},{default:ke(()=>[Re("偏移(随机)")]),_:1}),Te(w,{show:s.value,"onUpdate:show":L[5]||(L[5]=D=>s.value=D),title:"偏移(随机)","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(g,{"label-placement":"left","label-width":"auto",style:{"margin-top":"20px"}},{default:ke(()=>[Te(p,{label:"最大温度"},{default:ke(()=>[Te(A,{value:a.TemperatureMax,"onUpdate:value":L[0]||(L[0]=D=>a.TemperatureMax=D),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"最小温度"},{default:ke(()=>[Te(A,{value:a.TemperatureMin,"onUpdate:value":L[1]||(L[1]=D=>a.TemperatureMin=D),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"最大湿度"},{default:ke(()=>[Te(A,{value:a.HumidityMax,"onUpdate:value":L[2]||(L[2]=D=>a.HumidityMax=D),style:{width:"100%"}},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"最小湿度"},{default:ke(()=>[Te(A,{value:a.HumidityMin,"onUpdate:value":L[3]||(L[3]=D=>a.HumidityMin=D),style:{width:"100%"}},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),He("div",Tv,[Te(j,{onClick:L[4]||(L[4]=D=>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)}}},bv={style:{display:"flex","justify-content":"flex-end"}},_v={__name:"editFixation",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=kt();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(m=>{console.log(m),i[m]=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 m=await _();Ah(m).then(L=>{L.data.Code==200&&(t.success(L.data.Msg),s.value=!1)})},_=()=>new Promise(m=>{let L={...i},j=[...r.checkData];Object.keys(L).forEach(p=>{L[p]=ot(L[p])+":00"});const A=j.map(p=>p.T_sn+","+p.T_id);a.SN_List=A.join("|")+"|",m({...a,...L})});return(m,L)=>{const j=At,A=Ma,p=dr,g=nr,w=Qt;return Ve(),it(ft,null,[Te(j,{onClick:o},{default:ke(()=>[Re("偏移(固定)")]),_:1}),Te(w,{show:s.value,"onUpdate:show":L[3]||(L[3]=D=>s.value=D),title:"偏移(固定)","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(g,{"label-placement":"left","label-width":"auto",style:{"margin-top":"20px"}},{default:ke(()=>[Te(p,{label:"温度"},{default:ke(()=>[Te(A,{value:a.FixTemperature,"onUpdate:value":L[0]||(L[0]=D=>a.FixTemperature=D),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"湿度"},{default:ke(()=>[Te(A,{value:a.FixHumidity,"onUpdate:value":L[1]||(L[1]=D=>a.FixHumidity=D),style:{width:"100%"}},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),He("div",bv,[Te(j,{onClick:L[2]||(L[2]=D=>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)}}},wv={style:{display:"flex","justify-content":"flex-end"}},Sv={__name:"skewSection",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=kt();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(m=>{console.log(m),i[m]=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 m=await _();Sh(m).then(L=>{L.data.Code==200&&(t.success(L.data.Msg),s.value=!1)})},_=()=>new Promise(m=>{let L={...i},j=[...r.checkData];Object.keys(L).forEach(p=>{L[p]=ot(L[p])+":00"});const A=j.map(p=>p.T_sn+","+p.T_id);a.SN_List=A.join("|")+"|",m({...a,...L})});return(m,L)=>{const j=At,A=Ma,p=dr,g=nr,w=Qt;return Ve(),it(ft,null,[Te(j,{onClick:o},{default:ke(()=>[Re("偏移(区间)")]),_:1}),Te(w,{show:s.value,"onUpdate:show":L[3]||(L[3]=D=>s.value=D),title:"偏移(区间)","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(g,{"label-placement":"left","label-width":"auto",style:{"margin-top":"20px"}},{default:ke(()=>[Te(p,{label:"最小温度"},{default:ke(()=>[Te(A,{value:a.TemperatureMin,"onUpdate:value":L[0]||(L[0]=D=>a.TemperatureMin=D),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"最大温度"},{default:ke(()=>[Te(A,{value:a.TemperatureMax,"onUpdate:value":L[1]||(L[1]=D=>a.TemperatureMax=D),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),He("div",wv,[Te(j,{onClick:L[2]||(L[2]=D=>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:"editSmooth",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=kt();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(m=>{console.log(m),i[m]=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 m=await _();Eh(m).then(L=>{L.data.Code==200&&(t.success(L.data.Msg),s.value=!1)})},_=()=>new Promise(m=>{let L={...i},j=[...r.checkData];Object.keys(L).forEach(p=>{L[p]=ot(L[p])+":00"});const A=j.map(p=>p.T_sn+","+p.T_id);a.SN_List=A.join("|")+"|",m({...a,...L})});return(m,L)=>{const j=At,A=Ma,p=dr,g=nr,w=Qt;return Ve(),it(ft,null,[Te(j,{onClick:o},{default:ke(()=>[Re("平滑")]),_:1}),Te(w,{show:s.value,"onUpdate:show":L[3]||(L[3]=D=>s.value=D),title:"平滑","mask-closable":!1,"show-icon":!1,preset:"dialog"},{default:ke(()=>[Te(g,{"label-placement":"left","label-width":"auto",style:{"margin-top":"20px"}},{default:ke(()=>[Te(p,{label:"温度"},{default:ke(()=>[Te(A,{value:a.tRange,"onUpdate:value":L[0]||(L[0]=D=>a.tRange=D),style:{width:"100%"}},{suffix:ke(()=>[Re(" °C ")]),_:1},8,["value"])]),_:1}),Te(p,{label:"湿度"},{default:ke(()=>[Te(A,{value:a.hRange,"onUpdate:value":L[1]||(L[1]=D=>a.hRange=D),style:{width:"100%"}},{suffix:ke(()=>[Re(" % ")]),_:1},8,["value"])]),_:1}),He("div",Av,[Te(j,{onClick:L[2]||(L[2]=D=>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={__name:"BesselCurve",props:{queryObj:{type:Object,default:()=>({})},pickleveTime:{type:Array,default:()=>[]},checkData:{type:Array,default:()=>[]}},setup(e){const r=e,t=kt(),a=()=>{if(console.log(r.queryObj),console.log(r.pickleveTime),console.log(r.classList),console.log(r.checkData),r.checkData==null){t.error("请选择需要生成的设备");return}else if(r.checkData.length!=1){t.error("请选择一项进行曲线生成");return}else if(r.pickleveTime==null){t.error("请选择曲线生成时间");return}else{let i=ot(r.pickleveTime[0]),s=ot(r.pickleveTime[1]),o=r.queryObj.T_task_id,c=r.checkData[0].T_sn,u=r.checkData[0].T_id;window.open(`http://coldverifylocal.coldbaozhida.com/CurveEditing/index.html?a_time=${i}&b_time=${s}&T_task_id=${o}&T_sn=${c}&T_id=${u}`,"_blank")}};return(i,s)=>{const o=At;return Ve(),it("div",null,[Te(o,{onClick:a},{default:ke(()=>[Re("曲线生成")]),_:1})])}}},Mv={__name:"DeleteTaskClass",props:{task:{type:Object,default:()=>({})},taskClass:{type:Object,default:()=>({})},getClassList:{type:Function,default:()=>{}}},setup(e){const r=e,t=kt(),a=async()=>{try{const{data:i}=await io({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=cs;return Ve(),Et(c,{onPositiveClick:a},{trigger:ke(()=>[Te(o,{size:"20",style:{cursor:"pointer"}},{default:ke(()=>[Te(We(Ph))]),_:1})]),default:ke(()=>[Re(" 删除操作,是否继续。 ")]),_:1})}}},Dv={class:"h-full flex flex-col gap-y-3"},Ov={class:"flex-1 grid grid-cols-4 gap-x-3",style:{display:"flex"}},Pv={style:{}},Fv={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"10px"}},Lv={style:{display:"flex","align-items":"center","justify-content":"space-between"}},Iv=["onDblclick"],Rv={class:"h-full flex flex-col gap-y-3"},Bv={style:{"padding-top":"20px"}},ty={__name:"index",setup(e){const r=yi(),t=lo(Ic(),"YYYY-MM-DD HH:mm:ss"),a=to(),{height:i}=Rc(),s=ze(null),o=kt(),c=ze({T_task_id:null,SN_List:null,StartTime:null,EndTime:null,TemperatureMin:"2",TemperatureMax:"8"}),u=ze(!1),_=ze(!0),m=ze(""),L=()=>{if(m.value="",c.value.T_task_id=f.T_task_id,X.value==null){o.error("请选择设备");return}else if(X.value.length==0){o.error("请选择设备");return}else{const ne=[];X.value.forEach(oe=>{ne.push(oe.T_sn+","+oe.T_id)}),c.value.SN_List=ne.join("|")+"|"}if(y.pickleveTime==null){o.error("请选择查询时间");return}else c.value.StartTime=Xt(y.pickleveTime[0]),c.value.EndTime=Xt(y.pickleveTime[1]);j()},j=async()=>{u.value=!0,_.value=!0,(await Ec(c.value)).data.Code==200&&A()},A=async()=>{const ne=await Cc({T_task_id:c.value.T_task_id});if(ne.data.Data.state==1)setTimeout(()=>{A()},500);else if(ne.data.Data.state==2)_.value=!1,m.value=ne.data.Data.url;else{o.error(ne.data.Data.msg);return}},p=()=>{X.value=[],B.value=[],k()},g=window.sessionStorage.getItem("task")?JSON.parse(window.sessionStorage.getItem("task")):{},w=ze(null),D=ne=>{ne==null?(f.Time_start="",f.Time_end=""):(f.Time_start=ne[0],f.Time_end=ne[1])},E=()=>{X.value=[],B.value=[],k()},N=ne=>{console.log("父亲",ne),k()},M=()=>{console.log("失去焦点"),w.value=null},b=ne=>{console.log("获取焦点",ne),w.value=ne},F=qe({showModal:!1,title:""}),P=Ea(),I=()=>{if(console.log("checkValues.value",X.value),X.value)if(X.value.length)P.warning({title:"提示",content:"批量删除操作,是否继续?",positiveText:"确认",negativeText:"取消",onPositiveClick:()=>{v()},onNegativeClick:()=>{o.warning("已取消批量删除")}});else{o.error("请选择至少一项在进行批量操作");return}else{o.error("请选择至少一项在进行批量操作");return}},v=async()=>{var ne=0;for(const oe of X.value)await io({T_task_id:f.T_task_id,T_sn:oe.T_sn}),ne+=1,ne==X.value.length&&(k(),o.success("批量删除完成"))},B=ze([]),T=async()=>{const{data:ne}=await _c({T_task_id:f.T_task_id,T_collection_state:4});ne.Code==200&&ne.Msg=="ok!"?o.success("完成编辑"):o.error("编辑失败")},S=qe({T_sn:"",T_id:""}),x=ze(!1),h=ne=>{console.log("双击",ne),S.T_sn=ne.T_sn,S.T_id=ne.T_id,x.value=!0},n=async()=>{try{X.value=[];const{data:ne}=await Sc({T_task_id:f.T_task_id,T_sn:S.T_sn,T_id:S.T_id});ne.Code===200&&(o.success(ne.Msg),B.value=[],k())}catch(ne){console.log(ne)}},l=qe({T_t:null,T_rh:null}),f=qe({T_task_id:g.T_task_id,T_sn:"",T_id:"",Time_start:"",Time_end:"",page:1,page_z:9999}),k=async()=>{const{data:ne}=await Ac({T_task_id:f.T_task_id});V.value=ne.Data||[]};k();const y=qe({picktmSta:null,pickleveTime:null}),G=ne=>{w.value==1?y.picktmSta=[parseInt(ne[0].min),parseInt(ne[0].max)]:w.value==2?y.pickleveTime=[parseInt(ne[0].min),parseInt(ne[0].max)]:(f.Time_start="",f.Time_end="")},U=ze(),O=async ne=>{if(X.value==null){o.error("哎呀,请选择设备在查询哟");return}console.log("ee",y.picktmSta,y.pickleveTime),ne==1&&y.picktmSta!=null?(f.Time_start=ot(parseInt(y.picktmSta[0])),f.Time_end=ot(parseInt(y.picktmSta[1]))):ne==2&&y.pickleveTime!=null?(f.Time_start=ot(parseInt(y.pickleveTime[0])),f.Time_end=ot(parseInt(y.pickleveTime[1]))):(f.Time_start="",f.Time_end="");let oe=[];for(let le=0;le{const{data:ne}=await Mc({T_task_id:f.T_task_id,Id:W.value[5]});ne.Code===200&&(F.showModal=!1,o.success(`${ne.Msg},点击渲染或搜索更新数据`))},R=async()=>{console.log("88",H.value,W.value,l.T_t,l.T_rh);const{data:ne}=await Dc({T_task_id:f.T_task_id,Id:W.value[5],T_t:H.value=="温度"?l.T_t:W.value[2],T_rh:H.value=="湿度"?l.T_rh:W.value[2],T_time:ot(W.value[0])});ne.Code===200&&(F.showModal=!1,o.success(`${ne.Msg},点击渲染或搜索更新数据`))},q=ne=>{let oe={name:"",data:[],events:{click(le){z.value=le.point.x,Q.value=="温度"?l.T_t=le.point.y:l.T_rh=le.point.y,r.state.focuDatas==null&&(F.showModal=!0),f.T_id=le.point.series.name,F.title=Q.value=="温度"?"温度":"湿度";let ye=le.point.series.name;const te=B.value.find(re=>re.name==ye);console.log("点击",te,te.data[le.point.index]),W.value=te.data[le.point.index],console.log("点击",le)}}};if(ne!=null){let le=ne.reverse();oe.name=le[0].T_id,le.forEach(ye=>{oe.data.push([new Date(ye.T_time).getTime(),Q.value=="温度"?ye.T_t:ye.T_rh,Q.value=="温度"?ye.T_rh:ye.T_t,ye.T_sn,ye.T_id,ye.ID])})}else oe.data=[];return oe},J=()=>new Promise(ne=>{const oe=Oc(f);setTimeout(()=>{ne(oe)},500)}),Y=ze(!1),ee=async()=>{Y.value?X.value=V.value:X.value=[]},C=()=>{X.value.length!=V.value.length?Y.value=!1:Y.value=!0},V=ze([]),X=ze(null),Q=ze("温度"),se=ne=>{H.value=ne,O()},K=ze("");return yc(()=>{g.T_collection_state===0?a.info({closable:!1,title:"未完成",meta:`当前时间:${t.value}`,duration:2500,keepAliveOnHover:!0}):g.T_collection_state===1?a.info({closable:!1,title:"已完成",meta:`当前时间:${t.value}`,duration:2500,keepAliveOnHover:!0}):g.T_collection_state===2?a.info({closable:!1,title:"处理中",meta:`当前时间:${t.value}`,duration:2500,keepAliveOnHover:!0}):g.T_collection_state===3&&a.info({closable:!1,title:"已采集-无数据",meta:`当前时间:${t.value}`,duration:2500,keepAliveOnHover:!0})}),(ne,oe)=>{const le=At,ye=zc,te=ki,re=no,Z=Ca,ie=uh,ae=Lc,he=oo,fe=ih,ve=Fc,ge=ao,_e=so,be=wa,Ce=ei,De=dr,Be=nr,Le=cs,Pe=$c,Ue=Qt,Je=fo,at=ho;return Ve(),it(ft,null,[He("div",Dv,[Te(ye,{onBack:ne.$router.back},{title:ke(()=>[Re(" 数据编辑 ")]),extra:ke(()=>[Te(le,{type:"primary",onClick:T},{default:ke(()=>[Re("完成编辑")]),_:1})]),_:1},8,["onBack"]),He("div",Ov,[Te(be,{style:{width:"370px","flex-shrink":"0"}},{default:ke(()=>[Te(_e,{"display-directive":"show"},{default:ke(()=>[Te(ge,{name:"1",tab:"设备"},{default:ke(()=>[Te(ve,null,{header:ke(()=>[He("div",Pv,[He("div",Fv,[Te(te,{format:"yyyy-MM-dd HH:mm",value:y.picktmSta,"onUpdate:value":oe[0]||(oe[0]=Ge=>y.picktmSta=Ge),"time-picker-props":{format:"HH:mm"},"onUpdate:formattedValue":D,onFocus:oe[1]||(oe[1]=Ge=>b(1)),onBlur:M,type:"datetimerange",clearable:""},null,8,["value"]),Te(le,{type:"primary",onClick:oe[2]||(oe[2]=Ge=>O(1)),style:{"margin-left":"10px"}},{default:ke(()=>[Re("渲染")]),_:1})]),He("div",Lv,[Te(re,{checked:Y.value,"onUpdate:checked":[oe[3]||(oe[3]=Ge=>Y.value=Ge),ee],style:{"flex-shrink":"0"}},{default:ke(()=>[Re(" 全选 ")]),_:1},8,["checked"]),He("div",{onClick:I,style:{"text-decoration":"underline",color:"#2d8cf0",cursor:"pointer"}},"批量删除 ")])])]),footer:ke(()=>[Te(fe,{type:"info"},{default:ke(()=>[Re(" 传感器总数:"+wt(V.value.length),1)]),_:1})]),default:ke(()=>[He("div",{style:zs([{height:We(i)-400+"px"},{"overflow-y":"auto"}])},[Te(he,{value:X.value,"onUpdate:value":[oe[4]||(oe[4]=Ge=>X.value=Ge),C]},{default:ke(()=>[(Ve(!0),it(ft,null,Ti(V.value,Ge=>(Ve(),Et(ae,{key:Ge.T_id,class:"mr-5"},{prefix:ke(()=>[Te(re,{value:Ge},null,8,["value"])]),suffix:ke(()=>[Te(Z,{wrap:!1},{default:ke(()=>[Te(Mv,{task:We(g),taskClass:Ge,getClassList:E},null,8,["task","taskClass"])]),_:2},1024)]),default:ke(()=>[Te(ie,null,{header:ke(()=>[He("div",{onDblclick:er=>h(Ge)},wt(Ge.T_id),41,Iv)]),description:ke(()=>[Re(wt(Ge.T_sn),1)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["value"])],4)]),_:1})]),_:1}),Te(ge,{name:"2",tab:"表单"},{default:ke(()=>[Te(ov,{task:We(g),ref_key:"formRef",ref:s,"class-list":V.value,time:z.value,"temporal-interval":K.value},null,8,["task","class-list","time","temporal-interval"])]),_:1}),Te(ge,{name:"3",tab:"存档"},{default:ke(()=>[He("div",{style:zs({height:We(i)-300+"px"})},[Te(uv,{task:We(g)},null,8,["task"])],4)]),_:1})]),_:1})]),_:1}),Te(be,{style:{flex:"1"}},{default:ke(()=>[He("div",Rv,[Te(Z,{justify:"space-between"},{default:ke(()=>[Te(Pe,null,{default:ke(()=>[Te(te,{format:"yyyy-MM-dd HH:mm",value:y.pickleveTime,"onUpdate:value":oe[5]||(oe[5]=Ge=>y.pickleveTime=Ge),"time-picker-props":{format:"HH:mm"},onFocus:oe[6]||(oe[6]=Ge=>b(2)),onBlur:M,"onUpdate:formattedValue":D,type:"datetimerange",clearable:""},null,8,["value"]),Te(le,{type:"primary",onClick:oe[7]||(oe[7]=Ge=>O(2)),style:{"margin-right":"20px"}},{default:ke(()=>[Re("渲染")]),_:1}),Te(Le,{onPositiveClick:L,"show-icon":!1},{trigger:ke(()=>[Te(le,{type:"primary"},{default:ke(()=>[Re("概况图")]),_:1})]),default:ke(()=>[He("div",Bv,[Te(Be,{model:c.value,"label-width":"auto","label-placement":"left"},{default:ke(()=>[Te(De,{label:"下限",path:"value"},{default:ke(()=>[Te(Ce,{value:c.value.TemperatureMin,"onUpdate:value":oe[8]||(oe[8]=Ge=>c.value.TemperatureMin=Ge)},null,8,["value"])]),_:1}),Te(De,{label:"上限",path:"value"},{default:ke(()=>[Te(Ce,{value:c.value.TemperatureMax,"onUpdate:value":oe[9]||(oe[9]=Ge=>c.value.TemperatureMax=Ge)},null,8,["value"])]),_:1})]),_:1},8,["model"])])]),_:1})]),_:1}),Te(Z,null,{default:ke(()=>[Te(nv,{queryObj:f,pickleveTime:y.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(ev,{onImportFiles:p,task:We(g)},null,8,["task"]),Te(av,{task:We(g)},null,8,["task"]),Te($h,{"class-list":V.value,onAddFuns:N,task:We(g)},null,8,["class-list","task"]),Te(sv),Te(lv,{onRatioZoomFun:oe[10]||(oe[10]=Ge=>O(1)),queryObj:f,pickleveTime:y.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(gv,{queryObj:f,pickleveTime:y.pickleveTime,checkData:X.value,classList:V.value},null,8,["queryObj","pickleveTime","checkData","classList"]),Te(mv,{queryObj:f,pickleveTime:y.pickleveTime,checkData:X.value,classList:V.value},null,8,["queryObj","pickleveTime","checkData","classList"]),Te(vv,{queryObj:f,pickleveTime:y.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(yv,{queryObj:f,pickleveTime:y.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(kv,{queryObj:f,pickleveTime:y.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(_v,{queryObj:f,pickleveTime:y.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(Sv,{queryObj:f,pickleveTime:y.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(Ev,{queryObj:f,pickleveTime:y.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"]),Te(Cv,{queryObj:f,pickleveTime:y.pickleveTime,checkData:X.value},null,8,["queryObj","pickleveTime","checkData"])]),_:1})]),_:1}),Te(_e,{type:"segment",animated:"",value:Q.value,"onUpdate:value":[oe[11]||(oe[11]=Ge=>Q.value=Ge),se]},{default:ke(()=>[Te(ge,{name:"温度",tab:"温度"},{default:ke(()=>[Te(Uh,{dataList:B.value,onSetTimeFun:G},null,8,["dataList"])]),_:1}),Te(ge,{name:"湿度",tab:"湿度"},{default:ke(()=>[Te(Xh,{dataList:B.value,onSetTimeFun:G},null,8,["dataList"])]),_:1})]),_:1},8,["value"])])]),_:1})])]),Te(Ue,{show:F.showModal,"onUpdate:show":oe[14]||(oe[14]=Ge=>F.showModal=Ge),title:F.title,"show-icon":!1,preset:"dialog"},{default:ke(()=>[F.title==="温度"?(Ve(),Et(De,{key:0,"show-require-mark":""},{default:ke(()=>[Te(Ce,{value:l.T_t,"onUpdate:value":oe[12]||(oe[12]=Ge=>l.T_t=Ge)},null,8,["value"])]),_:1})):(Ve(),Et(De,{key:1,"show-require-mark":""},{default:ke(()=>[Te(Ce,{value:l.T_rh,"onUpdate:value":oe[13]||(oe[13]=Ge=>l.T_rh=Ge)},null,8,["value"])]),_:1})),Te(Z,{justify:"end"},{default:ke(()=>[Te(Le,{onPositiveClick:d},{trigger:ke(()=>[Te(le,{type:"error"},{default:ke(()=>[Re("删除该点")]),_:1})]),default:ke(()=>[Re(" 是否确认删除? ")]),_:1}),Te(le,{type:"primary",onClick:R},{default:ke(()=>[Re("确定")]),_:1})]),_:1})]),_:1},8,["show","title"]),Te(Ue,{show:x.value,"onUpdate:show":oe[17]||(oe[17]=Ge=>x.value=Ge),preset:"dialog","positive-text":"确认","negative-text":"取消","show-icon":!1,onPositiveClick:n},{default:ke(()=>[Te(Be,{model:S,"label-width":"auto","show-require-mark":""},{default:ke(()=>[Te(De,{label:"编号",path:"T_id"},{default:ke(()=>[Te(Ce,{value:S.T_id,"onUpdate:value":oe[15]||(oe[15]=Ge=>S.T_id=Ge)},null,8,["value"])]),_:1}),Te(De,{label:"SN",path:"T_sn"},{default:ke(()=>[Te(Ce,{value:S.T_sn,"onUpdate:value":oe[16]||(oe[16]=Ge=>S.T_sn=Ge),disabled:"false"},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["show"]),Te(Ue,{show:u.value,"onUpdate:show":oe[18]||(oe[18]=Ge=>u.value=Ge),title:"概况图",preset:"card",style:{"min-width":"500px","max-width":"600px","min-height":"300px"}},{default:ke(()=>[Te(at,{show:_.value},{description:ke(()=>[Re(" 加载中,请稍后... ")]),default:ke(()=>[Te(Je,{width:"500",src:m.value,style:{border:"1px solid #ccc","min-height":"200px"}},null,8,["src"])]),_:1},8,["show"])]),_:1},8,["show"])],64)}}};export{ty as default};