school-erp-ui-shared 1.0.38 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,450 +0,0 @@
1
- "use strict";const W=require("react"),Y8=require("@tanstack/react-query"),v=require("react/jsx-runtime"),Me=require("lucide-react"),bo=require("react-router-dom"),K8=require("react-dom");function X8(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const is=X8(W);function TE(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=TE(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Dt(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=TE(e))&&(n&&(n+=" "),n+=t);return n}const X2="-",J8=e=>{const t=Q8(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(X2);return s[0]===""&&s.length!==1&&s.shift(),EE(s,t)||Z8(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},EE=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?EE(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(X2);return(o=t.validators.find(({validator:s})=>s(i)))==null?void 0:o.classGroupId},ew=/^\[(.+)\]$/,Z8=e=>{if(ew.test(e)){const t=ew.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Q8=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return tk(Object.entries(e.classGroups),r).forEach(([i,o])=>{oy(o,n,i,t)}),n},oy=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:tw(t,a);i.classGroupId=r;return}if(typeof a=="function"){if(ek(a)){oy(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,o])=>{oy(o,tw(t,i),r,n)})})},tw=(e,t)=>{let r=e;return t.split(X2).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},ek=e=>e.isThemeGetter,tk=(e,t)=>t?e.map(([r,n])=>{const a=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,s])=>[t+o,s])):i);return[r,a]}):e,rk=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(i,o)=>{r.set(i,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return a(i,o),o},set(i,o){r.has(i)?r.set(i,o):a(i,o)}}},PE="!",nk=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,a=t[0],i=t.length,o=s=>{const l=[];let c=0,u=0,f;for(let m=0;m<s.length;m++){let y=s[m];if(c===0){if(y===a&&(n||s.slice(m,m+i)===t)){l.push(s.slice(u,m)),u=m+i;continue}if(y==="/"){f=m;continue}}y==="["?c++:y==="]"&&c--}const d=l.length===0?s:s.substring(u),h=d.startsWith(PE),x=h?d.substring(1):d,p=f&&f>u?f-u:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:x,maybePostfixModifierPosition:p}};return r?s=>r({className:s,parseClassName:o}):o},ak=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},ik=e=>({cache:rk(e.cacheSize),parseClassName:nk(e),...J8(e)}),ok=/\s+/,sk=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,i=[],o=e.trim().split(ok);let s="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=r(c);let x=!!h,p=n(x?d.substring(0,h):d);if(!p){if(!x){s=c+(s.length>0?" "+s:s);continue}if(p=n(d),!p){s=c+(s.length>0?" "+s:s);continue}x=!1}const m=ak(u).join(":"),y=f?m+PE:m,b=y+p;if(i.includes(b))continue;i.push(b);const w=a(p,x);for(let S=0;S<w.length;++S){const A=w[S];i.push(y+A)}s=c+(s.length>0?" "+s:s)}return s};function lk(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=OE(t))&&(n&&(n+=" "),n+=r);return n}const OE=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=OE(e[n]))&&(r&&(r+=" "),r+=t);return r};function ck(e,...t){let r,n,a,i=o;function o(l){const c=t.reduce((u,f)=>f(u),e());return r=ik(c),n=r.cache.get,a=r.cache.set,i=s,s(l)}function s(l){const c=n(l);if(c)return c;const u=sk(l,r);return a(l,u),u}return function(){return i(lk.apply(null,arguments))}}const jr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},jE=/^\[(?:([a-z-]+):)?(.+)\]$/i,uk=/^\d+\/\d+$/,fk=new Set(["px","full","screen"]),hk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dk=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,no=e=>rc(e)||fk.has(e)||uk.test(e),Ho=e=>qc(e,"length",Ak),rc=e=>!!e&&!Number.isNaN(Number(e)),k1=e=>qc(e,"number",rc),Ou=e=>!!e&&Number.isInteger(Number(e)),gk=e=>e.endsWith("%")&&rc(e.slice(0,-1)),Bt=e=>jE.test(e),Go=e=>hk.test(e),xk=new Set(["length","size","percentage"]),yk=e=>qc(e,xk,CE),bk=e=>qc(e,"position",CE),wk=new Set(["image","url"]),_k=e=>qc(e,wk,Tk),Sk=e=>qc(e,"",Nk),ju=()=>!0,qc=(e,t,r)=>{const n=jE.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Ak=e=>dk.test(e)&&!pk.test(e),CE=()=>!1,Nk=e=>mk.test(e),Tk=e=>vk.test(e),Ek=()=>{const e=jr("colors"),t=jr("spacing"),r=jr("blur"),n=jr("brightness"),a=jr("borderColor"),i=jr("borderRadius"),o=jr("borderSpacing"),s=jr("borderWidth"),l=jr("contrast"),c=jr("grayscale"),u=jr("hueRotate"),f=jr("invert"),d=jr("gap"),h=jr("gradientColorStops"),x=jr("gradientColorStopPositions"),p=jr("inset"),m=jr("margin"),y=jr("opacity"),b=jr("padding"),w=jr("saturate"),S=jr("scale"),A=jr("sepia"),O=jr("skew"),N=jr("space"),C=jr("translate"),L=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",Bt,t],E=()=>[Bt,t],D=()=>["",no,Ho],U=()=>["auto",rc,Bt],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",Bt],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[rc,Bt];return{cacheSize:500,separator:":",theme:{colors:[ju],spacing:[no,Ho],blur:["none","",Go,Bt],brightness:ce(),borderColor:[e],borderRadius:["none","","full",Go,Bt],borderSpacing:E(),borderWidth:D(),contrast:ce(),grayscale:Z(),hueRotate:ce(),invert:Z(),gap:E(),gradientColorStops:[e],gradientColorStopPositions:[gk,Ho],inset:j(),margin:j(),opacity:ce(),padding:E(),saturate:ce(),scale:ce(),sepia:Z(),skew:ce(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",Bt]}],container:["container"],columns:[{columns:[Go]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),Bt]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ou,Bt]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Bt]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Ou,Bt]}],"grid-cols":[{"grid-cols":[ju]}],"col-start-end":[{col:["auto",{span:["full",Ou,Bt]},Bt]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[ju]}],"row-start-end":[{row:["auto",{span:[Ou,Bt]},Bt]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Bt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Bt]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Bt,t]}],"min-w":[{"min-w":[Bt,t,"min","max","fit"]}],"max-w":[{"max-w":[Bt,t,"none","full","min","max","fit","prose",{screen:[Go]},Go]}],h:[{h:[Bt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Bt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Bt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Bt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Go,Ho]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",k1]}],"font-family":[{font:[ju]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Bt]}],"line-clamp":[{"line-clamp":["none",rc,k1]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",no,Bt]}],"list-image":[{"list-image":["none",Bt]}],"list-style-type":[{list:["none","disc","decimal",Bt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",no,Ho]}],"underline-offset":[{"underline-offset":["auto",no,Bt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Bt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Bt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),bk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",yk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_k]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:B()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[no,Bt]}],"outline-w":[{outline:[no,Ho]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[no,Ho]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Go,Sk]}],"shadow-color":[{shadow:[ju]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Go,Bt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Bt]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",Bt]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",Bt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Ou,Bt]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Bt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Bt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Bt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[no,Ho,k1]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Pk=ck(Ek);function gt(...e){return Pk(Dt(e))}function Ok(e,t,r,n=null,a=null){const i=[];if(n){i.push(n.name||"School Report");const u=[n.address||"",n.phone?`Ph: ${n.phone}`:"",n.email||""].filter(Boolean);u.length&&i.push(u.join(" | "));const f=new Date().toLocaleDateString("en-IN",{day:"2-digit",month:"short",year:"numeric"}),d=[n.board?`Board: ${n.board}`:"",n.code?`School Code: ${n.code}`:"",`Generated: ${f}`].filter(Boolean);i.push(d.join(" | ")),a&&i.push(a),i.push("")}i.push(t.join(",")),r.forEach(u=>{i.push(u.map(f=>`"${String(f||"").replace(/"/g,'""')}"`).join(","))});const o=i.join(`
2
- `),s=new Blob([o],{type:"text/csv;charset=utf-8;"}),l=URL.createObjectURL(s),c=document.createElement("a");c.href=l,c.download=`${e}.csv`,c.click(),URL.revokeObjectURL(l)}function cr(e){"@babel/helpers - typeof";return cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cr(e)}var Wn=Uint8Array,ka=Uint16Array,J2=Int32Array,op=new Wn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),sp=new Wn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),sy=new Wn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),kE=function(e,t){for(var r=new ka(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var a=new J2(r[30]),n=1;n<30;++n)for(var i=r[n];i<r[n+1];++i)a[i]=i-r[n]<<5|n;return{b:r,r:a}},LE=kE(op,2),IE=LE.b,ly=LE.r;IE[28]=258,ly[258]=28;var FE=kE(sp,0),jk=FE.b,rw=FE.r,cy=new ka(32768);for(var Lr=0;Lr<32768;++Lr){var Vo=(Lr&43690)>>1|(Lr&21845)<<1;Vo=(Vo&52428)>>2|(Vo&13107)<<2,Vo=(Vo&61680)>>4|(Vo&3855)<<4,cy[Lr]=((Vo&65280)>>8|(Vo&255)<<8)>>1}var Di=(function(e,t,r){for(var n=e.length,a=0,i=new ka(t);a<n;++a)e[a]&&++i[e[a]-1];var o=new ka(t);for(a=1;a<t;++a)o[a]=o[a-1]+i[a-1]<<1;var s;if(r){s=new ka(1<<t);var l=15-t;for(a=0;a<n;++a)if(e[a])for(var c=a<<4|e[a],u=t-e[a],f=o[e[a]-1]++<<u,d=f|(1<<u)-1;f<=d;++f)s[cy[f]>>l]=c}else for(s=new ka(n),a=0;a<n;++a)e[a]&&(s[a]=cy[o[e[a]-1]++]>>15-e[a]);return s}),os=new Wn(288);for(var Lr=0;Lr<144;++Lr)os[Lr]=8;for(var Lr=144;Lr<256;++Lr)os[Lr]=9;for(var Lr=256;Lr<280;++Lr)os[Lr]=7;for(var Lr=280;Lr<288;++Lr)os[Lr]=8;var hf=new Wn(32);for(var Lr=0;Lr<32;++Lr)hf[Lr]=5;var Ck=Di(os,9,0),kk=Di(os,9,1),Lk=Di(hf,5,0),Ik=Di(hf,5,1),L1=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},si=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},I1=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Z2=function(e){return(e+7)/8|0},ME=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new Wn(e.subarray(t,r))},Fk=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],hi=function(e,t,r){var n=new Error(t||Fk[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,hi),!r)throw n;return n},Mk=function(e,t,r,n){var a=e.length,i=0;if(!a||t.f&&!t.l)return r||new Wn(0);var o=!r,s=o||t.i!=2,l=t.i;o&&(r=new Wn(a*3));var c=function(be){var se=r.length;if(be>se){var Le=new Wn(Math.max(se*2,be));Le.set(r),r=Le}},u=t.f||0,f=t.p||0,d=t.b||0,h=t.l,x=t.d,p=t.m,m=t.n,y=a*8;do{if(!h){u=si(e,f,1);var b=si(e,f+1,3);if(f+=3,b)if(b==1)h=kk,x=Ik,p=9,m=5;else if(b==2){var O=si(e,f,31)+257,N=si(e,f+10,15)+4,C=O+si(e,f+5,31)+1;f+=14;for(var L=new Wn(C),R=new Wn(19),j=0;j<N;++j)R[sy[j]]=si(e,f+j*3,7);f+=N*3;for(var E=L1(R),D=(1<<E)-1,U=Di(R,E,1),j=0;j<C;){var H=U[si(e,f,D)];f+=H&15;var w=H>>4;if(w<16)L[j++]=w;else{var B=0,z=0;for(w==16?(z=3+si(e,f,3),f+=2,B=L[j-1]):w==17?(z=3+si(e,f,7),f+=3):w==18&&(z=11+si(e,f,127),f+=7);z--;)L[j++]=B}}var te=L.subarray(0,O),Z=L.subarray(O);p=L1(te),m=L1(Z),h=Di(te,p,1),x=Di(Z,m,1)}else hi(1);else{var w=Z2(f)+4,S=e[w-4]|e[w-3]<<8,A=w+S;if(A>a){l&&hi(0);break}s&&c(d+S),r.set(e.subarray(w,A),d),t.b=d+=S,t.p=f=A*8,t.f=u;continue}if(f>y){l&&hi(0);break}}s&&c(d+131072);for(var ee=(1<<p)-1,ce=(1<<m)-1,P=f;;P=f){var B=h[I1(e,f)&ee],I=B>>4;if(f+=B&15,f>y){l&&hi(0);break}if(B||hi(2),I<256)r[d++]=I;else if(I==256){P=f,h=null;break}else{var M=I-254;if(I>264){var j=I-257,q=op[j];M=si(e,f,(1<<q)-1)+IE[j],f+=q}var Y=x[I1(e,f)&ce],fe=Y>>4;Y||hi(3),f+=Y&15;var Z=jk[fe];if(fe>3){var q=sp[fe];Z+=I1(e,f)&(1<<q)-1,f+=q}if(f>y){l&&hi(0);break}s&&c(d+131072);var ne=d+M;if(d<Z){var K=i-Z,he=Math.min(Z,ne);for(K+d<0&&hi(3);d<he;++d)r[d]=n[K+d]}for(;d<ne;++d)r[d]=r[d-Z]}}t.l=h,t.p=P,t.b=d,t.f=u,h&&(u=1,t.m=p,t.d=x,t.n=m)}while(!u);return d!=r.length&&o?ME(r,0,d):r.subarray(0,d)},ao=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},Cu=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},F1=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var a=r.length,i=r.slice();if(!a)return{t:RE,l:0};if(a==1){var o=new Wn(r[0].s+1);return o[r[0].s]=1,{t:o,l:1}}r.sort(function(A,O){return A.f-O.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],c=0,u=1,f=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=a-1;)s=r[r[c].f<r[f].f?c++:f++],l=r[c!=u&&r[c].f<r[f].f?c++:f++],r[u++]={s:-1,f:s.f+l.f,l:s,r:l};for(var d=i[0].s,n=1;n<a;++n)i[n].s>d&&(d=i[n].s);var h=new ka(d+1),x=uy(r[u-1],h,0);if(x>t){var n=0,p=0,m=x-t,y=1<<m;for(i.sort(function(O,N){return h[N.s]-h[O.s]||O.f-N.f});n<a;++n){var b=i[n].s;if(h[b]>t)p+=y-(1<<x-h[b]),h[b]=t;else break}for(p>>=m;p>0;){var w=i[n].s;h[w]<t?p-=1<<t-h[w]++-1:++n}for(;n>=0&&p;--n){var S=i[n].s;h[S]==t&&(--h[S],++p)}x=t}return{t:new Wn(h),l:x}},uy=function(e,t,r){return e.s==-1?Math.max(uy(e.l,t,r+1),uy(e.r,t,r+1)):t[e.s]=r},nw=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new ka(++t),n=0,a=e[0],i=1,o=function(l){r[n++]=l},s=1;s<=t;++s)if(e[s]==a&&s!=t)++i;else{if(!a&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(a),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(a);i=1,a=e[s]}return{c:r.subarray(0,n),n:t}},ku=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},DE=function(e,t,r){var n=r.length,a=Z2(t+2);e[a]=n&255,e[a+1]=n>>8,e[a+2]=e[a]^255,e[a+3]=e[a+1]^255;for(var i=0;i<n;++i)e[a+i+4]=r[i];return(a+4+n)*8},aw=function(e,t,r,n,a,i,o,s,l,c,u){ao(t,u++,r),++a[256];for(var f=F1(a,15),d=f.t,h=f.l,x=F1(i,15),p=x.t,m=x.l,y=nw(d),b=y.c,w=y.n,S=nw(p),A=S.c,O=S.n,N=new ka(19),C=0;C<b.length;++C)++N[b[C]&31];for(var C=0;C<A.length;++C)++N[A[C]&31];for(var L=F1(N,7),R=L.t,j=L.l,E=19;E>4&&!R[sy[E-1]];--E);var D=c+5<<3,U=ku(a,os)+ku(i,hf)+o,H=ku(a,d)+ku(i,p)+o+14+3*E+ku(N,R)+2*N[16]+3*N[17]+7*N[18];if(l>=0&&D<=U&&D<=H)return DE(t,u,e.subarray(l,l+c));var B,z,te,Z;if(ao(t,u,1+(H<U)),u+=2,H<U){B=Di(d,h,0),z=d,te=Di(p,m,0),Z=p;var ee=Di(R,j,0);ao(t,u,w-257),ao(t,u+5,O-1),ao(t,u+10,E-4),u+=14;for(var C=0;C<E;++C)ao(t,u+3*C,R[sy[C]]);u+=3*E;for(var ce=[b,A],P=0;P<2;++P)for(var I=ce[P],C=0;C<I.length;++C){var M=I[C]&31;ao(t,u,ee[M]),u+=R[M],M>15&&(ao(t,u,I[C]>>5&127),u+=I[C]>>12)}}else B=Ck,z=os,te=Lk,Z=hf;for(var C=0;C<s;++C){var q=n[C];if(q>255){var M=q>>18&31;Cu(t,u,B[M+257]),u+=z[M+257],M>7&&(ao(t,u,q>>23&31),u+=op[M]);var Y=q&31;Cu(t,u,te[Y]),u+=Z[Y],Y>3&&(Cu(t,u,q>>5&8191),u+=sp[Y])}else Cu(t,u,B[q]),u+=z[q]}return Cu(t,u,B[256]),u+z[256]},Dk=new J2([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),RE=new Wn(0),Rk=function(e,t,r,n,a,i){var o=i.z||e.length,s=new Wn(n+o+5*(1+Math.ceil(o/7e3))+a),l=s.subarray(n,s.length-a),c=i.l,u=(i.r||0)&7;if(t){u&&(l[0]=i.r>>3);for(var f=Dk[t-1],d=f>>13,h=f&8191,x=(1<<r)-1,p=i.p||new ka(32768),m=i.h||new ka(x+1),y=Math.ceil(r/3),b=2*y,w=function(Se){return(e[Se]^e[Se+1]<<y^e[Se+2]<<b)&x},S=new J2(25e3),A=new ka(288),O=new ka(32),N=0,C=0,L=i.i||0,R=0,j=i.w||0,E=0;L+2<o;++L){var D=w(L),U=L&32767,H=m[D];if(p[U]=H,m[D]=U,j<=L){var B=o-L;if((N>7e3||R>24576)&&(B>423||!c)){u=aw(e,l,0,S,A,O,C,R,E,L-E,u),R=N=C=0,E=L;for(var z=0;z<286;++z)A[z]=0;for(var z=0;z<30;++z)O[z]=0}var te=2,Z=0,ee=h,ce=U-H&32767;if(B>2&&D==w(L-ce))for(var P=Math.min(d,B)-1,I=Math.min(32767,L),M=Math.min(258,B);ce<=I&&--ee&&U!=H;){if(e[L+te]==e[L+te-ce]){for(var q=0;q<M&&e[L+q]==e[L+q-ce];++q);if(q>te){if(te=q,Z=ce,q>P)break;for(var Y=Math.min(ce,q-2),fe=0,z=0;z<Y;++z){var ne=L-ce+z&32767,K=p[ne],he=ne-K&32767;he>fe&&(fe=he,H=ne)}}}U=H,H=p[U],ce+=U-H&32767}if(Z){S[R++]=268435456|ly[te]<<18|rw[Z];var be=ly[te]&31,se=rw[Z]&31;C+=op[be]+sp[se],++A[257+be],++O[se],j=L+te,++N}else S[R++]=e[L],++A[e[L]]}}for(L=Math.max(L,j);L<o;++L)S[R++]=e[L],++A[e[L]];u=aw(e,l,c,S,A,O,C,R,E,L-E,u),c||(i.r=u&7|l[u/8|0]<<3,u-=7,i.h=m,i.p=p,i.i=L,i.w=j)}else{for(var L=i.w||0;L<o+c;L+=65535){var Le=L+65535;Le>=o&&(l[u/8|0]=c,Le=o),u=DE(l,u+1,e.subarray(L,Le))}i.i=o}return ME(s,0,n+Z2(u)+a)},BE=function(){var e=1,t=0;return{p:function(r){for(var n=e,a=t,i=r.length|0,o=0;o!=i;){for(var s=Math.min(o+2655,i);o<s;++o)a+=n+=r[o];n=(n&65535)+15*(n>>16),a=(a&65535)+15*(a>>16)}e=n,t=a},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},Bk=function(e,t,r,n,a){if(!a&&(a={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),o=new Wn(i.length+e.length);o.set(i),o.set(e,i.length),e=o,a.w=i.length}return Rk(e,t.level==null?6:t.level,t.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,a)},$E=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},$k=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var a=BE();a.p(t.dictionary),$E(e,2,a.d())}},qk=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&hi(6,"invalid zlib data"),(e[1]>>5&1)==1&&hi(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function fy(e,t){t||(t={});var r=BE();r.p(e);var n=Bk(e,t,t.dictionary?6:2,4);return $k(n,t),$E(n,n.length-4,r.d()),n}function Uk(e,t){return Mk(e.subarray(qk(e),-4),{i:2},t,t)}var zk=typeof TextDecoder<"u"&&new TextDecoder,Wk=0;try{zk.decode(RE,{stream:!0}),Wk=1}catch{}/** @license
3
- *
4
- * jsPDF - PDF Document creation from JavaScript
5
- * Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
6
- * CommitID 00000000
7
- *
8
- * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
9
- * 2015-2021 yWorks GmbH, http://www.yworks.com
10
- * 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
11
- * 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
12
- * 2010 Aaron Spike, https://github.com/acspike
13
- * 2012 Willow Systems Corporation, https://github.com/willowsystems
14
- * 2012 Pablo Hess, https://github.com/pablohess
15
- * 2012 Florian Jenett, https://github.com/fjenett
16
- * 2013 Warren Weckesser, https://github.com/warrenweckesser
17
- * 2013 Youssef Beddad, https://github.com/lifof
18
- * 2013 Lee Driscoll, https://github.com/lsdriscoll
19
- * 2013 Stefan Slonevskiy, https://github.com/stefslon
20
- * 2013 Jeremy Morel, https://github.com/jmorel
21
- * 2013 Christoph Hartmann, https://github.com/chris-rock
22
- * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
23
- * 2014 James Makes, https://github.com/dollaruw
24
- * 2014 Diego Casorran, https://github.com/diegocr
25
- * 2014 Steven Spungin, https://github.com/Flamenco
26
- * 2014 Kenneth Glassey, https://github.com/Gavvers
27
- *
28
- * Permission is hereby granted, free of charge, to any person obtaining
29
- * a copy of this software and associated documentation files (the
30
- * "Software"), to deal in the Software without restriction, including
31
- * without limitation the rights to use, copy, modify, merge, publish,
32
- * distribute, sublicense, and/or sell copies of the Software, and to
33
- * permit persons to whom the Software is furnished to do so, subject to
34
- * the following conditions:
35
- *
36
- * The above copyright notice and this permission notice shall be
37
- * included in all copies or substantial portions of the Software.
38
- *
39
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
41
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
43
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
44
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
45
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
46
- *
47
- * Contributor(s):
48
- * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
49
- * kim3er, mfo, alnorth, Flamenco
50
- */var Et=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function M1(){Et.console&&typeof Et.console.log=="function"&&Et.console.log.apply(Et.console,arguments)}var Ar={log:M1,warn:function(e){Et.console&&(typeof Et.console.warn=="function"?Et.console.warn.apply(Et.console,arguments):M1.call(null,arguments))},error:function(e){Et.console&&(typeof Et.console.error=="function"?Et.console.error.apply(Et.console,arguments):M1(e))}};function D1(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){Os(n.response,t,r)},n.onerror=function(){Ar.error("could not download file")},n.send()}function iw(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function fh(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Vu,hy,Os=Et.saveAs||((typeof window>"u"?"undefined":cr(window))!=="object"||window!==Et?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=Et.URL||Et.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener",typeof e=="string"?(a.href=e,a.origin!==location.origin?iw(a.href)?D1(e,t,r):fh(a,a.target="_blank"):fh(a)):(a.href=n.createObjectURL(e),setTimeout((function(){n.revokeObjectURL(a.href)}),4e4),setTimeout((function(){fh(a)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(iw(e))D1(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout((function(){fh(n)}))}else navigator.msSaveOrOpenBlob((function(a,i){return i===void 0?i={autoBom:!1}:cr(i)!=="object"&&(Ar.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a})(e,r),t)}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return D1(e,t,r);var a=e.type==="application/octet-stream",i=/constructor/i.test(Et.HTMLElement)||Et.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||a&&i)&&(typeof FileReader>"u"?"undefined":cr(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=u:location=u,n=null},s.readAsDataURL(e)}else{var l=Et.URL||Et.webkitURL,c=l.createObjectURL(e);n?n.location=c:location.href=c,n=null,setTimeout((function(){l.revokeObjectURL(c)}),4e4)}});/**
51
- * A class to parse color values
52
- * @author Stoyan Stefanov <sstoo@gmail.com>
53
- * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
54
- * @license Use it if you like it
55
- */function qE(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],n=0;n<r.length;n++){var a=r[n].re,i=r[n].process,o=a.exec(e);o&&(t=i(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+s+l+c}}/**
56
- * @license
57
- * Joseph Myers does not specify a particular license for his work.
58
- *
59
- * Author: Joseph Myers
60
- * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
61
- *
62
- * Modified by: Owen Leong
63
- */function R1(e,t){var r=e[0],n=e[1],a=e[2],i=e[3];r=Rn(r,n,a,i,t[0],7,-680876936),i=Rn(i,r,n,a,t[1],12,-389564586),a=Rn(a,i,r,n,t[2],17,606105819),n=Rn(n,a,i,r,t[3],22,-1044525330),r=Rn(r,n,a,i,t[4],7,-176418897),i=Rn(i,r,n,a,t[5],12,1200080426),a=Rn(a,i,r,n,t[6],17,-1473231341),n=Rn(n,a,i,r,t[7],22,-45705983),r=Rn(r,n,a,i,t[8],7,1770035416),i=Rn(i,r,n,a,t[9],12,-1958414417),a=Rn(a,i,r,n,t[10],17,-42063),n=Rn(n,a,i,r,t[11],22,-1990404162),r=Rn(r,n,a,i,t[12],7,1804603682),i=Rn(i,r,n,a,t[13],12,-40341101),a=Rn(a,i,r,n,t[14],17,-1502002290),r=Bn(r,n=Rn(n,a,i,r,t[15],22,1236535329),a,i,t[1],5,-165796510),i=Bn(i,r,n,a,t[6],9,-1069501632),a=Bn(a,i,r,n,t[11],14,643717713),n=Bn(n,a,i,r,t[0],20,-373897302),r=Bn(r,n,a,i,t[5],5,-701558691),i=Bn(i,r,n,a,t[10],9,38016083),a=Bn(a,i,r,n,t[15],14,-660478335),n=Bn(n,a,i,r,t[4],20,-405537848),r=Bn(r,n,a,i,t[9],5,568446438),i=Bn(i,r,n,a,t[14],9,-1019803690),a=Bn(a,i,r,n,t[3],14,-187363961),n=Bn(n,a,i,r,t[8],20,1163531501),r=Bn(r,n,a,i,t[13],5,-1444681467),i=Bn(i,r,n,a,t[2],9,-51403784),a=Bn(a,i,r,n,t[7],14,1735328473),r=$n(r,n=Bn(n,a,i,r,t[12],20,-1926607734),a,i,t[5],4,-378558),i=$n(i,r,n,a,t[8],11,-2022574463),a=$n(a,i,r,n,t[11],16,1839030562),n=$n(n,a,i,r,t[14],23,-35309556),r=$n(r,n,a,i,t[1],4,-1530992060),i=$n(i,r,n,a,t[4],11,1272893353),a=$n(a,i,r,n,t[7],16,-155497632),n=$n(n,a,i,r,t[10],23,-1094730640),r=$n(r,n,a,i,t[13],4,681279174),i=$n(i,r,n,a,t[0],11,-358537222),a=$n(a,i,r,n,t[3],16,-722521979),n=$n(n,a,i,r,t[6],23,76029189),r=$n(r,n,a,i,t[9],4,-640364487),i=$n(i,r,n,a,t[12],11,-421815835),a=$n(a,i,r,n,t[15],16,530742520),r=qn(r,n=$n(n,a,i,r,t[2],23,-995338651),a,i,t[0],6,-198630844),i=qn(i,r,n,a,t[7],10,1126891415),a=qn(a,i,r,n,t[14],15,-1416354905),n=qn(n,a,i,r,t[5],21,-57434055),r=qn(r,n,a,i,t[12],6,1700485571),i=qn(i,r,n,a,t[3],10,-1894986606),a=qn(a,i,r,n,t[10],15,-1051523),n=qn(n,a,i,r,t[1],21,-2054922799),r=qn(r,n,a,i,t[8],6,1873313359),i=qn(i,r,n,a,t[15],10,-30611744),a=qn(a,i,r,n,t[6],15,-1560198380),n=qn(n,a,i,r,t[13],21,1309151649),r=qn(r,n,a,i,t[4],6,-145523070),i=qn(i,r,n,a,t[11],10,-1120210379),a=qn(a,i,r,n,t[2],15,718787259),n=qn(n,a,i,r,t[9],21,-343485551),e[0]=Qo(r,e[0]),e[1]=Qo(n,e[1]),e[2]=Qo(a,e[2]),e[3]=Qo(i,e[3])}function lp(e,t,r,n,a,i){return t=Qo(Qo(t,e),Qo(n,i)),Qo(t<<a|t>>>32-a,r)}function Rn(e,t,r,n,a,i,o){return lp(t&r|~t&n,e,t,a,i,o)}function Bn(e,t,r,n,a,i,o){return lp(t&n|r&~n,e,t,a,i,o)}function $n(e,t,r,n,a,i,o){return lp(t^r^n,e,t,a,i,o)}function qn(e,t,r,n,a,i,o){return lp(r^(t|~n),e,t,a,i,o)}function UE(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)R1(n,Hk(e.substring(t-64,t)));e=e.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(R1(n,a),t=0;t<16;t++)a[t]=0;return a[14]=8*r,R1(n,a),n}function Hk(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}Vu=Et.atob.bind(Et),hy=Et.btoa.bind(Et);var ow="0123456789abcdef".split("");function Gk(e){for(var t="",r=0;r<4;r++)t+=ow[e>>8*r+4&15]+ow[e>>8*r&15];return t}function Vk(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function dy(e){return UE(e).map(Vk).join("")}var Yk=(function(e){for(var t=0;t<e.length;t++)e[t]=Gk(e[t]);return e.join("")})(UE("hello"))!="5d41402abc4b2a76b9719d911017c592";function Qo(e,t){if(Yk){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&4294967295}/**
64
- * @license
65
- * FPDF is released under a permissive license: there is no usage restriction.
66
- * You may embed it freely in your application (commercial or not), with or
67
- * without modifications.
68
- *
69
- * Reference: http://www.fpdf.org/en/script/script37.php
70
- */function py(e,t){var r,n,a,i;if(e!==r){for(var o=(a=e,i=1+(256/e.length>>0),new Array(i+1).join(a)),s=[],l=0;l<256;l++)s[l]=l;var c=0;for(l=0;l<256;l++){var u=s[l];c=(c+u+o.charCodeAt(l))%256,s[l]=s[c],s[c]=u}r=e,n=s}else s=n;var f=t.length,d=0,h=0,x="";for(l=0;l<f;l++)h=(h+(u=s[d=(d+1)%256]))%256,s[d]=s[h],s[h]=u,o=s[(s[d]+s[h])%256],x+=String.fromCharCode(t.charCodeAt(l)^o);return x}/**
71
- * @license
72
- * Licensed under the MIT License.
73
- * http://opensource.org/licenses/mit-license
74
- * Author: Owen Leong (@owenl131)
75
- * Date: 15 Oct 2020
76
- * References:
77
- * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
78
- * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
79
- * http://www.fpdf.org/en/script/script37.php
80
- */var sw={print:4,modify:8,copy:16,"annot-forms":32};function Vl(e,t,r,n){this.v=1,this.r=2;var a=192;e.forEach((function(s){if(sw.perm!==void 0)throw new Error("Invalid permission: "+s);a+=sw[s]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var i=(t+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^a)),this.encryptionKey=dy(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=py(this.encryptionKey,this.padding)}function Yl(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n<r;n++){var a=e.charCodeAt(n);a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?t+="#"+("0"+a.toString(16)).slice(-2):t+=e[n]}return t}function lw(e){if(cr(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(r,n,a){if(a=a||!1,typeof r!="string"||typeof n!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(r)||(t[r]={});var i=Math.random().toString(35);return t[r][i]=[n,!!a],i},this.unsubscribe=function(r){for(var n in t)if(t[n][r])return delete t[n][r],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),a=[];for(var i in t[r]){var o=t[r][i];try{o[0].apply(e,n)}catch(s){Et.console&&Ar.error("jsPDF PubSub Error",s.message,s)}o[1]&&a.push(i)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function df(e){if(!(this instanceof df))return new df(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function zE(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Jo(e,t,r,n,a){if(!(this instanceof Jo))return new Jo(e,t,r,n,a);this.type=e==="axial"?2:3,this.coords=t,this.colors=r,zE.call(this,n,a)}function Is(e,t,r,n,a){if(!(this instanceof Is))return new Is(e,t,r,n,a);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,zE.call(this,n,a)}function yt(e){var t,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],a=arguments[2],i=arguments[3],o=[],s=1,l=16,c="S",u=null;cr(e=e||{})==="object"&&(r=e.orientation,n=e.unit||n,a=e.format||a,i=e.compress||e.compressPdf||i,(u=e.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),o=e.filters||(i===!0?["FlateEncode"]:o),n=n||"mm",r=(""+(r||"P")).toLowerCase();var f=e.putOnlyUsedFonts||!1,d={},h={internal:{},__private__:{}};h.__private__.PubSub=lw;var x="1.3",p=h.__private__.getPdfVersion=function(){return x};h.__private__.setPdfVersion=function(T){x=T};var m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return m};var y=h.__private__.getPageFormat=function(T){return m[T]};a=a||"a4";var b={COMPAT:"compat",ADVANCED:"advanced"},w=b.COMPAT;function S(){this.saveGraphicsState(),le(new St(it,0,0,-it,0,Lo()*it).toString()+" cm"),this.setFontSize(this.getFontSize()/it),c="n",w=b.ADVANCED}function A(){this.restoreGraphicsState(),c="S",w=b.COMPAT}var O=h.__private__.combineFontStyleAndFontWeight=function(T,V){if(T=="bold"&&V=="normal"||T=="bold"&&V==400||T=="normal"&&V=="italic"||T=="bold"&&V=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return V&&(T=V==400||V==="normal"?T==="italic"?"italic":"normal":V!=700&&V!=="bold"||T!=="normal"?(V==700?"bold":V)+""+T:"bold"),T};h.advancedAPI=function(T){var V=w===b.COMPAT;return V&&S.call(this),typeof T!="function"||(T(this),V&&A.call(this)),this},h.compatAPI=function(T){var V=w===b.ADVANCED;return V&&A.call(this),typeof T!="function"||(T(this),V&&S.call(this)),this},h.isAdvancedAPI=function(){return w===b.ADVANCED};var N,C=function(T){if(w!==b.ADVANCED)throw new Error(T+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},L=h.roundToPrecision=h.__private__.roundToPrecision=function(T,V){var ve=t||V;if(isNaN(T)||isNaN(ve))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return T.toFixed(ve).replace(/0+$/,"")};N=h.hpf=h.__private__.hpf=typeof l=="number"?function(T){if(isNaN(T))throw new Error("Invalid argument passed to jsPDF.hpf");return L(T,l)}:l==="smart"?function(T){if(isNaN(T))throw new Error("Invalid argument passed to jsPDF.hpf");return L(T,T>-1&&T<1?16:5)}:function(T){if(isNaN(T))throw new Error("Invalid argument passed to jsPDF.hpf");return L(T,16)};var R=h.f2=h.__private__.f2=function(T){if(isNaN(T))throw new Error("Invalid argument passed to jsPDF.f2");return L(T,2)},j=h.__private__.f3=function(T){if(isNaN(T))throw new Error("Invalid argument passed to jsPDF.f3");return L(T,3)},E=h.scale=h.__private__.scale=function(T){if(isNaN(T))throw new Error("Invalid argument passed to jsPDF.scale");return w===b.COMPAT?T*it:w===b.ADVANCED?T:void 0},D=function(T){return w===b.COMPAT?Lo()-T:w===b.ADVANCED?T:void 0},U=function(T){return E(D(T))};h.__private__.setPrecision=h.setPrecision=function(T){typeof parseInt(T,10)=="number"&&(t=parseInt(T,10))};var H,B="00000000000000000000000000000000",z=h.__private__.getFileId=function(){return B},te=h.__private__.setFileId=function(T){return B=T!==void 0&&/^[a-fA-F0-9]{32}$/.test(T)?T.toUpperCase():B.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),u!==null&&(Mn=new Vl(u.userPermissions,u.userPassword,u.ownerPassword,B)),B};h.setFileId=function(T){return te(T),this},h.getFileId=function(){return z()};var Z=h.__private__.convertDateToPDFDate=function(T){var V=T.getTimezoneOffset(),ve=V<0?"+":"-",ge=Math.floor(Math.abs(V/60)),Ne=Math.abs(V%60),Re=[ve,M(ge),"'",M(Ne),"'"].join("");return["D:",T.getFullYear(),M(T.getMonth()+1),M(T.getDate()),M(T.getHours()),M(T.getMinutes()),M(T.getSeconds()),Re].join("")},ee=h.__private__.convertPDFDateToDate=function(T){var V=parseInt(T.substr(2,4),10),ve=parseInt(T.substr(6,2),10)-1,ge=parseInt(T.substr(8,2),10),Ne=parseInt(T.substr(10,2),10),Re=parseInt(T.substr(12,2),10),Ve=parseInt(T.substr(14,2),10);return new Date(V,ve,ge,Ne,Re,Ve,0)},ce=h.__private__.setCreationDate=function(T){var V;if(T===void 0&&(T=new Date),T instanceof Date)V=Z(T);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(T))throw new Error("Invalid argument passed to jsPDF.setCreationDate");V=T}return H=V},P=h.__private__.getCreationDate=function(T){var V=H;return T==="jsDate"&&(V=ee(H)),V};h.setCreationDate=function(T){return ce(T),this},h.getCreationDate=function(T){return P(T)};var I,M=h.__private__.padd2=function(T){return("0"+parseInt(T)).slice(-2)},q=h.__private__.padd2Hex=function(T){return("00"+(T=T.toString())).substr(T.length)},Y=0,fe=[],ne=[],K=0,he=[],be=[],se=!1,Le=ne,Se=function(){Y=0,K=0,ne=[],fe=[],he=[],ie=Rr(),oe=Rr()};h.__private__.setCustomOutputDestination=function(T){se=!0,Le=T};var Ae=function(T){se||(Le=T)};h.__private__.resetCustomOutputDestination=function(){se=!1,Le=ne};var le=h.__private__.out=function(T){return T=T.toString(),K+=T.length+1,Le.push(T),Le},De=h.__private__.write=function(T){return le(arguments.length===1?T.toString():Array.prototype.join.call(arguments," "))},Qe=h.__private__.getArrayBuffer=function(T){for(var V=T.length,ve=new ArrayBuffer(V),ge=new Uint8Array(ve);V--;)ge[V]=T.charCodeAt(V);return ve},Ue=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return Ue};var Ke=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(T){return Ke=w===b.ADVANCED?T/it:T,this};var Ze,Je=h.__private__.getFontSize=h.getFontSize=function(){return w===b.COMPAT?Ke:Ke*it},dt=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(T){return dt=T,this},h.__private__.getR2L=h.getR2L=function(){return dt};var vt,wt=h.__private__.setZoomMode=function(T){var V=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(T))Ze=T;else if(isNaN(T)){if(V.indexOf(T)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+T+'" is not recognized.');Ze=T}else Ze=parseInt(T,10)};h.__private__.getZoomMode=function(){return Ze};var Pt,It=h.__private__.setPageMode=function(T){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(T)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+T+'" is not recognized.');vt=T};h.__private__.getPageMode=function(){return vt};var Ut=h.__private__.setLayoutMode=function(T){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(T)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+T+'" is not recognized.');Pt=T};h.__private__.getLayoutMode=function(){return Pt},h.__private__.setDisplayMode=h.setDisplayMode=function(T,V,ve){return wt(T),Ut(V),It(ve),this};var _t={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(T){if(Object.keys(_t).indexOf(T)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return _t[T]},h.__private__.getDocumentProperties=function(){return _t},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(T){for(var V in _t)_t.hasOwnProperty(V)&&T[V]&&(_t[V]=T[V]);return this},h.__private__.setDocumentProperty=function(T,V){if(Object.keys(_t).indexOf(T)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return _t[T]=V};var Ft,it,Dr,zt,An,Xt={},fr={},Vn=[],Ht={},Ee={},ct={},Wt={},Or=null,Tt=0,ht=[],Gt=new lw(h),Gi=e.hotfixes||[],ln={},Ia={},Fa=[],St=function T(V,ve,ge,Ne,Re,Ve){if(!(this instanceof T))return new T(V,ve,ge,Ne,Re,Ve);isNaN(V)&&(V=1),isNaN(ve)&&(ve=0),isNaN(ge)&&(ge=0),isNaN(Ne)&&(Ne=1),isNaN(Re)&&(Re=0),isNaN(Ve)&&(Ve=0),this._matrix=[V,ve,ge,Ne,Re,Ve]};Object.defineProperty(St.prototype,"sx",{get:function(){return this._matrix[0]},set:function(T){this._matrix[0]=T}}),Object.defineProperty(St.prototype,"shy",{get:function(){return this._matrix[1]},set:function(T){this._matrix[1]=T}}),Object.defineProperty(St.prototype,"shx",{get:function(){return this._matrix[2]},set:function(T){this._matrix[2]=T}}),Object.defineProperty(St.prototype,"sy",{get:function(){return this._matrix[3]},set:function(T){this._matrix[3]=T}}),Object.defineProperty(St.prototype,"tx",{get:function(){return this._matrix[4]},set:function(T){this._matrix[4]=T}}),Object.defineProperty(St.prototype,"ty",{get:function(){return this._matrix[5]},set:function(T){this._matrix[5]=T}}),Object.defineProperty(St.prototype,"a",{get:function(){return this._matrix[0]},set:function(T){this._matrix[0]=T}}),Object.defineProperty(St.prototype,"b",{get:function(){return this._matrix[1]},set:function(T){this._matrix[1]=T}}),Object.defineProperty(St.prototype,"c",{get:function(){return this._matrix[2]},set:function(T){this._matrix[2]=T}}),Object.defineProperty(St.prototype,"d",{get:function(){return this._matrix[3]},set:function(T){this._matrix[3]=T}}),Object.defineProperty(St.prototype,"e",{get:function(){return this._matrix[4]},set:function(T){this._matrix[4]=T}}),Object.defineProperty(St.prototype,"f",{get:function(){return this._matrix[5]},set:function(T){this._matrix[5]=T}}),Object.defineProperty(St.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(St.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(St.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(St.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),St.prototype.join=function(T){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(N).join(T)},St.prototype.multiply=function(T){var V=T.sx*this.sx+T.shy*this.shx,ve=T.sx*this.shy+T.shy*this.sy,ge=T.shx*this.sx+T.sy*this.shx,Ne=T.shx*this.shy+T.sy*this.sy,Re=T.tx*this.sx+T.ty*this.shx+this.tx,Ve=T.tx*this.shy+T.ty*this.sy+this.ty;return new St(V,ve,ge,Ne,Re,Ve)},St.prototype.decompose=function(){var T=this.sx,V=this.shy,ve=this.shx,ge=this.sy,Ne=this.tx,Re=this.ty,Ve=Math.sqrt(T*T+V*V),ut=(T/=Ve)*ve+(V/=Ve)*ge;ve-=T*ut,ge-=V*ut;var xt=Math.sqrt(ve*ve+ge*ge);return ut/=xt,T*(ge/=xt)<V*(ve/=xt)&&(T=-T,V=-V,ut=-ut,Ve=-Ve),{scale:new St(Ve,0,0,xt,0,0),translate:new St(1,0,0,1,Ne,Re),rotate:new St(T,V,-V,T,0,0),skew:new St(1,0,ut,1,0,0)}},St.prototype.toString=function(T){return this.join(" ")},St.prototype.inversed=function(){var T=this.sx,V=this.shy,ve=this.shx,ge=this.sy,Ne=this.tx,Re=this.ty,Ve=1/(T*ge-V*ve),ut=ge*Ve,xt=-V*Ve,Mt=-ve*Ve,kt=T*Ve;return new St(ut,xt,Mt,kt,-ut*Ne-Mt*Re,-xt*Ne-kt*Re)},St.prototype.applyToPoint=function(T){var V=T.x*this.sx+T.y*this.shx+this.tx,ve=T.x*this.shy+T.y*this.sy+this.ty;return new yl(V,ve)},St.prototype.applyToRectangle=function(T){var V=this.applyToPoint(T),ve=this.applyToPoint(new yl(T.x+T.w,T.y+T.h));return new cu(V.x,V.y,ve.x-V.x,ve.y-V.y)},St.prototype.clone=function(){var T=this.sx,V=this.shy,ve=this.shx,ge=this.sy,Ne=this.tx,Re=this.ty;return new St(T,V,ve,ge,Ne,Re)},h.Matrix=St;var xa=h.matrixMult=function(T,V){return V.multiply(T)},ia=new St(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=ia;var Fn=function(T,V){if(!Ee[T]){var ve=(V instanceof Jo?"Sh":"P")+(Object.keys(Ht).length+1).toString(10);V.id=ve,Ee[T]=ve,Ht[ve]=V,Gt.publish("addPattern",V)}};h.ShadingPattern=Jo,h.TilingPattern=Is,h.addShadingPattern=function(T,V){return C("addShadingPattern()"),Fn(T,V),this},h.beginTilingPattern=function(T){C("beginTilingPattern()"),B0(T.boundingBox[0],T.boundingBox[1],T.boundingBox[2]-T.boundingBox[0],T.boundingBox[3]-T.boundingBox[1],T.matrix)},h.endTilingPattern=function(T,V){C("endTilingPattern()"),V.stream=be[I].join(`
81
- `),Fn(T,V),Gt.publish("endTilingPattern",V),Fa.pop().restore()};var Hr=h.__private__.newObject=function(){var T=Rr();return J(T,!0),T},Rr=h.__private__.newObjectDeferred=function(){return Y++,fe[Y]=function(){return K},Y},J=function(T,V){return V=typeof V=="boolean"&&V,fe[T]=K,V&&le(T+" 0 obj"),T},pe=h.__private__.newAdditionalObject=function(){var T={objId:Rr(),content:""};return he.push(T),T},ie=Rr(),oe=Rr(),de=h.__private__.decodeColorString=function(T){var V=T.split(" ");if(V.length!==2||V[1]!=="g"&&V[1]!=="G")V.length===5&&(V[4]==="k"||V[4]==="K")&&(V=[(1-V[0])*(1-V[3]),(1-V[1])*(1-V[3]),(1-V[2])*(1-V[3]),"r"]);else{var ve=parseFloat(V[0]);V=[ve,ve,ve,"r"]}for(var ge="#",Ne=0;Ne<3;Ne++)ge+=("0"+Math.floor(255*parseFloat(V[Ne])).toString(16)).slice(-2);return ge},me=h.__private__.encodeColorString=function(T){var V;typeof T=="string"&&(T={ch1:T});var ve=T.ch1,ge=T.ch2,Ne=T.ch3,Re=T.ch4,Ve=T.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ve=="string"&&ve.charAt(0)!=="#"){var ut=new qE(ve);if(ut.ok)ve=ut.toHex();else if(!/^\d*\.?\d*$/.test(ve))throw new Error('Invalid color "'+ve+'" passed to jsPDF.encodeColorString.')}if(typeof ve=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ve)&&(ve="#"+ve[1]+ve[1]+ve[2]+ve[2]+ve[3]+ve[3]),typeof ve=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ve)){var xt=parseInt(ve.substr(1),16);ve=xt>>16&255,ge=xt>>8&255,Ne=255&xt}if(ge===void 0||Re===void 0&&ve===ge&&ge===Ne)if(typeof ve=="string")V=ve+" "+Ve[0];else switch(T.precision){case 2:V=R(ve/255)+" "+Ve[0];break;case 3:default:V=j(ve/255)+" "+Ve[0]}else if(Re===void 0||cr(Re)==="object"){if(Re&&!isNaN(Re.a)&&Re.a===0)return V=["1.","1.","1.",Ve[1]].join(" ");if(typeof ve=="string")V=[ve,ge,Ne,Ve[1]].join(" ");else switch(T.precision){case 2:V=[R(ve/255),R(ge/255),R(Ne/255),Ve[1]].join(" ");break;default:case 3:V=[j(ve/255),j(ge/255),j(Ne/255),Ve[1]].join(" ")}}else if(typeof ve=="string")V=[ve,ge,Ne,Re,Ve[2]].join(" ");else switch(T.precision){case 2:V=[R(ve),R(ge),R(Ne),R(Re),Ve[2]].join(" ");break;case 3:default:V=[j(ve),j(ge),j(Ne),j(Re),Ve[2]].join(" ")}return V},Pe=h.__private__.getFilters=function(){return o},Ie=h.__private__.putStream=function(T){var V=(T=T||{}).data||"",ve=T.filters||Pe(),ge=T.alreadyAppliedFilters||[],Ne=T.addLength1||!1,Re=V.length,Ve=T.objectId,ut=function(Dn){return Dn};if(u!==null&&Ve===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(ut=Mn.encryptor(Ve,0));var xt={};ve===!0&&(ve=["FlateEncode"]);var Mt=T.additionalKeyValues||[],kt=(xt=yt.API.processDataByFilters!==void 0?yt.API.processDataByFilters(V,ve):{data:V,reverseChain:[]}).reverseChain+(Array.isArray(ge)?ge.join(" "):ge.toString());if(xt.data.length!==0&&(Mt.push({key:"Length",value:xt.data.length}),Ne===!0&&Mt.push({key:"Length1",value:Re})),kt.length!=0)if(kt.split("/").length-1==1)Mt.push({key:"Filter",value:kt});else{Mt.push({key:"Filter",value:"["+kt+"]"});for(var Yt=0;Yt<Mt.length;Yt+=1)if(Mt[Yt].key==="DecodeParms"){for(var Mr=[],Br=0;Br<xt.reverseChain.split("/").length-1;Br+=1)Mr.push("null");Mr.push(Mt[Yt].value),Mt[Yt].value="["+Mr.join(" ")+"]"}}le("<<");for(var Qr=0;Qr<Mt.length;Qr++)le("/"+Mt[Qr].key+" "+Mt[Qr].value);le(">>"),xt.data.length!==0&&(le("stream"),le(ut(xt.data)),le("endstream"))},Te=h.__private__.putPage=function(T){var V=T.number,ve=T.data,ge=T.objId,Ne=T.contentsObjId;J(ge,!0),le("<</Type /Page"),le("/Parent "+T.rootDictionaryObjId+" 0 R"),le("/Resources "+T.resourceDictionaryObjId+" 0 R"),le("/MediaBox ["+parseFloat(N(T.mediaBox.bottomLeftX))+" "+parseFloat(N(T.mediaBox.bottomLeftY))+" "+N(T.mediaBox.topRightX)+" "+N(T.mediaBox.topRightY)+"]"),T.cropBox!==null&&le("/CropBox ["+N(T.cropBox.bottomLeftX)+" "+N(T.cropBox.bottomLeftY)+" "+N(T.cropBox.topRightX)+" "+N(T.cropBox.topRightY)+"]"),T.bleedBox!==null&&le("/BleedBox ["+N(T.bleedBox.bottomLeftX)+" "+N(T.bleedBox.bottomLeftY)+" "+N(T.bleedBox.topRightX)+" "+N(T.bleedBox.topRightY)+"]"),T.trimBox!==null&&le("/TrimBox ["+N(T.trimBox.bottomLeftX)+" "+N(T.trimBox.bottomLeftY)+" "+N(T.trimBox.topRightX)+" "+N(T.trimBox.topRightY)+"]"),T.artBox!==null&&le("/ArtBox ["+N(T.artBox.bottomLeftX)+" "+N(T.artBox.bottomLeftY)+" "+N(T.artBox.topRightX)+" "+N(T.artBox.topRightY)+"]"),typeof T.userUnit=="number"&&T.userUnit!==1&&le("/UserUnit "+T.userUnit),Gt.publish("putPage",{objId:ge,pageContext:ht[V],pageNumber:V,page:ve}),le("/Contents "+Ne+" 0 R"),le(">>"),le("endobj");var Re=ve.join(`
82
- `);return w===b.ADVANCED&&(Re+=`
83
- Q`),J(Ne,!0),Ie({data:Re,filters:Pe(),objectId:Ne}),le("endobj"),ge},Ce=h.__private__.putPages=function(){var T,V,ve=[];for(T=1;T<=Tt;T++)ht[T].objId=Rr(),ht[T].contentsObjId=Rr();for(T=1;T<=Tt;T++)ve.push(Te({number:T,data:be[T],objId:ht[T].objId,contentsObjId:ht[T].contentsObjId,mediaBox:ht[T].mediaBox,cropBox:ht[T].cropBox,bleedBox:ht[T].bleedBox,trimBox:ht[T].trimBox,artBox:ht[T].artBox,userUnit:ht[T].userUnit,rootDictionaryObjId:ie,resourceDictionaryObjId:oe}));J(ie,!0),le("<</Type /Pages");var ge="/Kids [";for(V=0;V<Tt;V++)ge+=ve[V]+" 0 R ";le(ge+"]"),le("/Count "+Tt),le(">>"),le("endobj"),Gt.publish("postPutPages")},ke=function(T){Gt.publish("putFont",{font:T,out:le,newObject:Hr,putStream:Ie}),T.isAlreadyPutted!==!0&&(T.objectNumber=Hr(),le("<<"),le("/Type /Font"),le("/BaseFont /"+Yl(T.postScriptName)),le("/Subtype /Type1"),typeof T.encoding=="string"&&le("/Encoding /"+T.encoding),le("/FirstChar 32"),le("/LastChar 255"),le(">>"),le("endobj"))},Ye=function(){for(var T in Xt)Xt.hasOwnProperty(T)&&(f===!1||f===!0&&d.hasOwnProperty(T))&&ke(Xt[T])},et=function(T){T.objectNumber=Hr();var V=[];V.push({key:"Type",value:"/XObject"}),V.push({key:"Subtype",value:"/Form"}),V.push({key:"BBox",value:"["+[N(T.x),N(T.y),N(T.x+T.width),N(T.y+T.height)].join(" ")+"]"}),V.push({key:"Matrix",value:"["+T.matrix.toString()+"]"});var ve=T.pages[1].join(`
84
- `);Ie({data:ve,additionalKeyValues:V,objectId:T.objectNumber}),le("endobj")},lt=function(){for(var T in ln)ln.hasOwnProperty(T)&&et(ln[T])},Xe=function(T,V){var ve,ge=[],Ne=1/(V-1);for(ve=0;ve<1;ve+=Ne)ge.push(ve);if(ge.push(1),T[0].offset!=0){var Re={offset:0,color:T[0].color};T.unshift(Re)}if(T[T.length-1].offset!=1){var Ve={offset:1,color:T[T.length-1].color};T.push(Ve)}for(var ut="",xt=0,Mt=0;Mt<ge.length;Mt++){for(ve=ge[Mt];ve>T[xt+1].offset;)xt++;var kt=T[xt].offset,Yt=(ve-kt)/(T[xt+1].offset-kt),Mr=T[xt].color,Br=T[xt+1].color;ut+=q(Math.round((1-Yt)*Mr[0]+Yt*Br[0]).toString(16))+q(Math.round((1-Yt)*Mr[1]+Yt*Br[1]).toString(16))+q(Math.round((1-Yt)*Mr[2]+Yt*Br[2]).toString(16))}return ut.trim()},st=function(T,V){V||(V=21);var ve=Hr(),ge=Xe(T.colors,V),Ne=[];Ne.push({key:"FunctionType",value:"0"}),Ne.push({key:"Domain",value:"[0.0 1.0]"}),Ne.push({key:"Size",value:"["+V+"]"}),Ne.push({key:"BitsPerSample",value:"8"}),Ne.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ne.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ie({data:ge,additionalKeyValues:Ne,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ve}),le("endobj"),T.objectNumber=Hr(),le("<< /ShadingType "+T.type),le("/ColorSpace /DeviceRGB");var Re="/Coords ["+N(parseFloat(T.coords[0]))+" "+N(parseFloat(T.coords[1]))+" ";T.type===2?Re+=N(parseFloat(T.coords[2]))+" "+N(parseFloat(T.coords[3])):Re+=N(parseFloat(T.coords[2]))+" "+N(parseFloat(T.coords[3]))+" "+N(parseFloat(T.coords[4]))+" "+N(parseFloat(T.coords[5])),le(Re+="]"),T.matrix&&le("/Matrix ["+T.matrix.toString()+"]"),le("/Function "+ve+" 0 R"),le("/Extend [true true]"),le(">>"),le("endobj")},Ot=function(T,V){var ve=Rr(),ge=Hr();V.push({resourcesOid:ve,objectOid:ge}),T.objectNumber=ge;var Ne=[];Ne.push({key:"Type",value:"/Pattern"}),Ne.push({key:"PatternType",value:"1"}),Ne.push({key:"PaintType",value:"1"}),Ne.push({key:"TilingType",value:"1"}),Ne.push({key:"BBox",value:"["+T.boundingBox.map(N).join(" ")+"]"}),Ne.push({key:"XStep",value:N(T.xStep)}),Ne.push({key:"YStep",value:N(T.yStep)}),Ne.push({key:"Resources",value:ve+" 0 R"}),T.matrix&&Ne.push({key:"Matrix",value:"["+T.matrix.toString()+"]"}),Ie({data:T.stream,additionalKeyValues:Ne,objectId:T.objectNumber}),le("endobj")},rr=function(T){var V;for(V in Ht)Ht.hasOwnProperty(V)&&(Ht[V]instanceof Jo?st(Ht[V]):Ht[V]instanceof Is&&Ot(Ht[V],T))},xr=function(T){for(var V in T.objectNumber=Hr(),le("<<"),T)switch(V){case"opacity":le("/ca "+R(T[V]));break;case"stroke-opacity":le("/CA "+R(T[V]))}le(">>"),le("endobj")},Zr=function(){var T;for(T in ct)ct.hasOwnProperty(T)&&xr(ct[T])},ei=function(){for(var T in le("/XObject <<"),ln)ln.hasOwnProperty(T)&&ln[T].objectNumber>=0&&le("/"+T+" "+ln[T].objectNumber+" 0 R");Gt.publish("putXobjectDict"),le(">>")},Vi=function(){Mn.oid=Hr(),le("<<"),le("/Filter /Standard"),le("/V "+Mn.v),le("/R "+Mn.r),le("/U <"+Mn.toHexString(Mn.U)+">"),le("/O <"+Mn.toHexString(Mn.O)+">"),le("/P "+Mn.P),le(">>"),le("endobj")},Ni=function(){for(var T in le("/Font <<"),Xt)Xt.hasOwnProperty(T)&&(f===!1||f===!0&&d.hasOwnProperty(T))&&le("/"+T+" "+Xt[T].objectNumber+" 0 R");le(">>")},ti=function(){if(Object.keys(Ht).length>0){for(var T in le("/Shading <<"),Ht)Ht.hasOwnProperty(T)&&Ht[T]instanceof Jo&&Ht[T].objectNumber>=0&&le("/"+T+" "+Ht[T].objectNumber+" 0 R");Gt.publish("putShadingPatternDict"),le(">>")}},Ti=function(T){if(Object.keys(Ht).length>0){for(var V in le("/Pattern <<"),Ht)Ht.hasOwnProperty(V)&&Ht[V]instanceof h.TilingPattern&&Ht[V].objectNumber>=0&&Ht[V].objectNumber<T&&le("/"+V+" "+Ht[V].objectNumber+" 0 R");Gt.publish("putTilingPatternDict"),le(">>")}},ya=function(){if(Object.keys(ct).length>0){var T;for(T in le("/ExtGState <<"),ct)ct.hasOwnProperty(T)&&ct[T].objectNumber>=0&&le("/"+T+" "+ct[T].objectNumber+" 0 R");Gt.publish("putGStateDict"),le(">>")}},Gr=function(T){J(T.resourcesOid,!0),le("<<"),le("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ni(),ti(),Ti(T.objectOid),ya(),ei(),le(">>"),le("endobj")},A0=function(){var T=[];Ye(),Zr(),lt(),rr(T),Gt.publish("putResources"),T.forEach(Gr),Gr({resourcesOid:oe,objectOid:Number.MAX_SAFE_INTEGER}),Gt.publish("postPutResources")},N0=function(){Gt.publish("putAdditionalObjects");for(var T=0;T<he.length;T++){var V=he[T];J(V.objId,!0),le(V.content),le("endobj")}Gt.publish("postPutAdditionalObjects")},T0=function(T){fr[T.fontName]=fr[T.fontName]||{},fr[T.fontName][T.fontStyle]=T.id},eu=function(T,V,ve,ge,Ne){var Re={id:"F"+(Object.keys(Xt).length+1).toString(10),postScriptName:T,fontName:V,fontStyle:ve,encoding:ge,isStandardFont:Ne||!1,metadata:{}};return Gt.publish("addFont",{font:Re,instance:this}),Xt[Re.id]=Re,T0(Re),Re.id},Xp=function(T){for(var V=0,ve=Ue.length;V<ve;V++){var ge=eu.call(this,T[V][0],T[V][1],T[V][2],Ue[V][3],!0);f===!1&&(d[ge]=!0);var Ne=T[V][0].split("-");T0({id:ge,fontName:Ne[0],fontStyle:Ne[1]||""})}Gt.publish("addFonts",{fonts:Xt,dictionary:fr})},ri=function(T){return T.foo=function(){try{return T.apply(this,arguments)}catch(ge){var V=ge.stack||"";~V.indexOf(" at ")&&(V=V.split(" at ")[1]);var ve="Error in function "+V.split(`
85
- `)[0].split("<")[0]+": "+ge.message;if(!Et.console)throw new Error(ve);Et.console.error(ve,ge),Et.alert&&alert(ve)}},T.foo.bar=T,T.foo},dl=function(T,V){var ve,ge,Ne,Re,Ve,ut,xt,Mt,kt;if(Ne=(V=V||{}).sourceEncoding||"Unicode",Ve=V.outputEncoding,(V.autoencode||Ve)&&Xt[Ft].metadata&&Xt[Ft].metadata[Ne]&&Xt[Ft].metadata[Ne].encoding&&(Re=Xt[Ft].metadata[Ne].encoding,!Ve&&Xt[Ft].encoding&&(Ve=Xt[Ft].encoding),!Ve&&Re.codePages&&(Ve=Re.codePages[0]),typeof Ve=="string"&&(Ve=Re[Ve]),Ve)){for(xt=!1,ut=[],ve=0,ge=T.length;ve<ge;ve++)(Mt=Ve[T.charCodeAt(ve)])?ut.push(String.fromCharCode(Mt)):ut.push(T[ve]),ut[ve].charCodeAt(0)>>8&&(xt=!0);T=ut.join("")}for(ve=T.length;xt===void 0&&ve!==0;)T.charCodeAt(ve-1)>>8&&(xt=!0),ve--;if(!xt)return T;for(ut=V.noBOM?[]:[254,255],ve=0,ge=T.length;ve<ge;ve++){if((kt=(Mt=T.charCodeAt(ve))>>8)>>8)throw new Error("Character at position "+ve+" of string '"+T+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ut.push(kt),ut.push(Mt-(kt<<8))}return String.fromCharCode.apply(void 0,ut)},oa=h.__private__.pdfEscape=h.pdfEscape=function(T,V){return dl(T,V).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},tu=h.__private__.beginPage=function(T){be[++Tt]=[],ht[Tt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(T[0]),topRightY:Number(T[1])}},P0(Tt),Ae(be[I])},E0=function(T,V){var ve,ge,Ne;switch(r=V||r,typeof T=="string"&&(ve=y(T.toLowerCase()),Array.isArray(ve)&&(ge=ve[0],Ne=ve[1])),Array.isArray(T)&&(ge=T[0]*it,Ne=T[1]*it),isNaN(ge)&&(ge=a[0],Ne=a[1]),(ge>14400||Ne>14400)&&(Ar.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ge=Math.min(14400,ge),Ne=Math.min(14400,Ne)),a=[ge,Ne],r.substr(0,1)){case"l":Ne>ge&&(a=[Ne,ge]);break;case"p":ge>Ne&&(a=[Ne,ge])}tu(a),I0(iu),le(ni),su!==0&&le(su+" J"),lu!==0&&le(lu+" j"),Gt.publish("addPage",{pageNumber:Tt})},Jp=function(T){T>0&&T<=Tt&&(be.splice(T,1),ht.splice(T,1),Tt--,I>Tt&&(I=Tt),this.setPage(I))},P0=function(T){T>0&&T<=Tt&&(I=T)},Zp=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return be.length-1},O0=function(T,V,ve){var ge,Ne=void 0;return ve=ve||{},T=T!==void 0?T:Xt[Ft].fontName,V=V!==void 0?V:Xt[Ft].fontStyle,ge=T.toLowerCase(),fr[ge]!==void 0&&fr[ge][V]!==void 0?Ne=fr[ge][V]:fr[T]!==void 0&&fr[T][V]!==void 0?Ne=fr[T][V]:ve.disableWarning===!1&&Ar.warn("Unable to look up font label for font '"+T+"', '"+V+"'. Refer to getFontList() for available fonts."),Ne||ve.noFallback||(Ne=fr.times[V])==null&&(Ne=fr.times.normal),Ne},Qp=h.__private__.putInfo=function(){var T=Hr(),V=function(ge){return ge};for(var ve in u!==null&&(V=Mn.encryptor(T,0)),le("<<"),le("/Producer ("+oa(V("jsPDF "+yt.version))+")"),_t)_t.hasOwnProperty(ve)&&_t[ve]&&le("/"+ve.substr(0,1).toUpperCase()+ve.substr(1)+" ("+oa(V(_t[ve]))+")");le("/CreationDate ("+oa(V(H))+")"),le(">>"),le("endobj")},ru=h.__private__.putCatalog=function(T){var V=(T=T||{}).rootDictionaryObjId||ie;switch(Hr(),le("<<"),le("/Type /Catalog"),le("/Pages "+V+" 0 R"),Ze||(Ze="fullwidth"),Ze){case"fullwidth":le("/OpenAction [3 0 R /FitH null]");break;case"fullheight":le("/OpenAction [3 0 R /FitV null]");break;case"fullpage":le("/OpenAction [3 0 R /Fit]");break;case"original":le("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ve=""+Ze;ve.substr(ve.length-1)==="%"&&(Ze=parseInt(Ze)/100),typeof Ze=="number"&&le("/OpenAction [3 0 R /XYZ null null "+R(Ze)+"]")}switch(Pt||(Pt="continuous"),Pt){case"continuous":le("/PageLayout /OneColumn");break;case"single":le("/PageLayout /SinglePage");break;case"two":case"twoleft":le("/PageLayout /TwoColumnLeft");break;case"tworight":le("/PageLayout /TwoColumnRight")}vt&&le("/PageMode /"+vt),Gt.publish("putCatalog"),le(">>"),le("endobj")},e1=h.__private__.putTrailer=function(){le("trailer"),le("<<"),le("/Size "+(Y+1)),le("/Root "+Y+" 0 R"),le("/Info "+(Y-1)+" 0 R"),u!==null&&le("/Encrypt "+Mn.oid+" 0 R"),le("/ID [ <"+B+"> <"+B+"> ]"),le(">>")},t1=h.__private__.putHeader=function(){le("%PDF-"+x),le("%ºß¬à")},r1=h.__private__.putXRef=function(){var T="0000000000";le("xref"),le("0 "+(Y+1)),le("0000000000 65535 f ");for(var V=1;V<=Y;V++)typeof fe[V]=="function"?le((T+fe[V]()).slice(-10)+" 00000 n "):fe[V]!==void 0?le((T+fe[V]).slice(-10)+" 00000 n "):le("0000000000 00000 n ")},Yi=h.__private__.buildDocument=function(){Se(),Ae(ne),Gt.publish("buildDocument"),t1(),Ce(),N0(),A0(),u!==null&&Vi(),Qp(),ru();var T=K;return r1(),e1(),le("startxref"),le(""+T),le("%%EOF"),Ae(be[I]),ne.join(`
86
- `)},pl=h.__private__.getBlob=function(T){return new Blob([Qe(T)],{type:"application/pdf"})},ml=h.output=h.__private__.output=ri((function(T,V){switch(typeof(V=V||{})=="string"?V={filename:V}:V.filename=V.filename||"generated.pdf",T){case void 0:return Yi();case"save":h.save(V.filename);break;case"arraybuffer":return Qe(Yi());case"blob":return pl(Yi());case"bloburi":case"bloburl":if(Et.URL!==void 0&&typeof Et.URL.createObjectURL=="function")return Et.URL&&Et.URL.createObjectURL(pl(Yi()))||void 0;Ar.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ve="",ge=Yi();try{ve=hy(ge)}catch{ve=hy(unescape(encodeURIComponent(ge)))}return"data:application/pdf;filename="+V.filename+";base64,"+ve;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Et)==="[object Window]"){var Ne="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Re=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';V.pdfObjectUrl&&(Ne=V.pdfObjectUrl,Re="");var Ve='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Ne+'"'+Re+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(V)+");<\/script></body></html>",ut=Et.open();return ut!==null&&ut.document.write(Ve),ut}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Et)==="[object Window]"){var xt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(V.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+V.filename+'" width="500px" height="400px" /></body></html>',Mt=Et.open();if(Mt!==null){Mt.document.write(xt);var kt=this;Mt.document.documentElement.querySelector("#pdfViewer").onload=function(){Mt.document.title=V.filename,Mt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(kt.output("bloburl"))}}return Mt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Et)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Yt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",V)+'"></iframe></body></html>',Mr=Et.open();if(Mr!==null&&(Mr.document.write(Yt),Mr.document.title=V.filename),Mr||typeof safari>"u")return Mr;break;case"datauri":case"dataurl":return Et.document.location.href=this.output("datauristring",V);default:return null}})),j0=function(T){return Array.isArray(Gi)===!0&&Gi.indexOf(T)>-1};switch(n){case"pt":it=1;break;case"mm":it=72/25.4;break;case"cm":it=72/2.54;break;case"in":it=72;break;case"px":it=j0("px_scaling")==1?.75:96/72;break;case"pc":case"em":it=12;break;case"ex":it=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);it=n}var Mn=null;ce(),te();var n1=function(T){return u!==null?Mn.encryptor(T,0):function(V){return V}},C0=h.__private__.getPageInfo=h.getPageInfo=function(T){if(isNaN(T)||T%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ht[T].objId,pageNumber:T,pageContext:ht[T]}},Ct=h.__private__.getPageInfoByObjId=function(T){if(isNaN(T)||T%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var V in ht)if(ht[V].objId===T)break;return C0(V)},a1=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:ht[I].objId,pageNumber:I,pageContext:ht[I]}};h.addPage=function(){return E0.apply(this,arguments),this},h.setPage=function(){return P0.apply(this,arguments),Ae.call(this,be[I]),this},h.insertPage=function(T){return this.addPage(),this.movePage(I,T),this},h.movePage=function(T,V){var ve,ge;if(T>V){ve=be[T],ge=ht[T];for(var Ne=T;Ne>V;Ne--)be[Ne]=be[Ne-1],ht[Ne]=ht[Ne-1];be[V]=ve,ht[V]=ge,this.setPage(V)}else if(T<V){ve=be[T],ge=ht[T];for(var Re=T;Re<V;Re++)be[Re]=be[Re+1],ht[Re]=ht[Re+1];be[V]=ve,ht[V]=ge,this.setPage(V)}return this},h.deletePage=function(){return Jp.apply(this,arguments),this},h.__private__.text=h.text=function(T,V,ve,ge,Ne){var Re,Ve,ut,xt,Mt,kt,Yt,Mr,Br,Qr=(ge=ge||{}).scope||this;if(typeof T=="number"&&typeof V=="number"&&(typeof ve=="string"||Array.isArray(ve))){var Dn=ve;ve=V,V=T,T=Dn}if(arguments[3]instanceof St?(C("The transform parameter of text() with a Matrix value"),Br=Ne):(ut=arguments[4],xt=arguments[5],cr(Yt=arguments[3])==="object"&&Yt!==null||(typeof ut=="string"&&(xt=ut,ut=null),typeof Yt=="string"&&(xt=Yt,Yt=null),typeof Yt=="number"&&(ut=Yt,Yt=null),ge={flags:Yt,angle:ut,align:xt})),isNaN(V)||isNaN(ve)||T==null)throw new Error("Invalid arguments passed to jsPDF.text");if(T.length===0)return Qr;var vn="",ai=!1,ba=typeof ge.lineHeightFactor=="number"?ge.lineHeightFactor:gs,Oi=Qr.internal.scaleFactor;function $0(Tr){return Tr=Tr.split(" ").join(Array(ge.TabLen||9).join(" ")),oa(Tr,Yt)}function du(Tr){for(var Er,Yr=Tr.concat(),cn=[],Qi=Yr.length;Qi--;)typeof(Er=Yr.shift())=="string"?cn.push(Er):Array.isArray(Tr)&&(Er.length===1||Er[1]===void 0&&Er[2]===void 0)?cn.push(Er[0]):cn.push([Er[0],Er[1],Er[2]]);return cn}function pu(Tr,Er){var Yr;if(typeof Tr=="string")Yr=Er(Tr)[0];else if(Array.isArray(Tr)){for(var cn,Qi,_u=Tr.concat(),jl=[],H0=_u.length;H0--;)typeof(cn=_u.shift())=="string"?jl.push(Er(cn)[0]):Array.isArray(cn)&&typeof cn[0]=="string"&&(Qi=Er(cn[0],cn[1],cn[2]),jl.push([Qi[0],Qi[1],Qi[2]]));Yr=jl}return Yr}var wl=!1,mu=!0;if(typeof T=="string")wl=!0;else if(Array.isArray(T)){var vu=T.concat();Ve=[];for(var _l,Nn=vu.length;Nn--;)(typeof(_l=vu.shift())!="string"||Array.isArray(_l)&&typeof _l[0]!="string")&&(mu=!1);wl=mu}if(wl===!1)throw new Error('Type of text must be string or Array. "'+T+'" is not recognized.');typeof T=="string"&&(T=T.match(/[\r?\n]/)?T.split(/\r\n|\r|\n/g):[T]);var Sl=Ke/Qr.internal.scaleFactor,Al=Sl*(ba-1);switch(ge.baseline){case"bottom":ve-=Al;break;case"top":ve+=Sl-Al;break;case"hanging":ve+=Sl-2*Al;break;case"middle":ve+=Sl/2-Al}if((kt=ge.maxWidth||0)>0&&(typeof T=="string"?T=Qr.splitTextToSize(T,kt):Object.prototype.toString.call(T)==="[object Array]"&&(T=T.reduce((function(Tr,Er){return Tr.concat(Qr.splitTextToSize(Er,kt))}),[]))),Re={text:T,x:V,y:ve,options:ge,mutex:{pdfEscape:oa,activeFontKey:Ft,fonts:Xt,activeFontSize:Ke}},Gt.publish("preProcessText",Re),T=Re.text,ut=(ge=Re.options).angle,!(Br instanceof St)&&ut&&typeof ut=="number"){ut*=Math.PI/180,ge.rotationDirection===0&&(ut=-ut),w===b.ADVANCED&&(ut=-ut);var Nl=Math.cos(ut),gu=Math.sin(ut);Br=new St(Nl,gu,-gu,Nl,0,0)}else ut&&ut instanceof St&&(Br=ut);w!==b.ADVANCED||Br||(Br=ia),(Mt=ge.charSpace||xl)!==void 0&&(vn+=N(E(Mt))+` Tc
87
- `,this.setCharSpace(this.getCharSpace()||0)),(Mr=ge.horizontalScale)!==void 0&&(vn+=N(100*Mr)+` Tz
88
- `),ge.lang;var sa=-1,p1=ge.renderingMode!==void 0?ge.renderingMode:ge.stroke,xu=Qr.internal.getCurrentPageInfo().pageContext;switch(p1){case 0:case!1:case"fill":sa=0;break;case 1:case!0:case"stroke":sa=1;break;case 2:case"fillThenStroke":sa=2;break;case 3:case"invisible":sa=3;break;case 4:case"fillAndAddForClipping":sa=4;break;case 5:case"strokeAndAddPathForClipping":sa=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":sa=6;break;case 7:case"addToPathForClipping":sa=7}var q0=xu.usedRenderingMode!==void 0?xu.usedRenderingMode:-1;sa!==-1?vn+=sa+` Tr
89
- `:q0!==-1&&(vn+=`0 Tr
90
- `),sa!==-1&&(xu.usedRenderingMode=sa),xt=ge.align||"left";var Ma,Tl=Ke*ba,U0=Qr.internal.pageSize.getWidth(),z0=Xt[Ft];Mt=ge.charSpace||xl,kt=ge.maxWidth||0,Yt=Object.assign({autoencode:!0,noBOM:!0},ge.flags);var Io=[],bs=function(Tr){return Qr.getStringUnitWidth(Tr,{font:z0,charSpace:Mt,fontSize:Ke,doKerning:!1})*Ke/Oi};if(Object.prototype.toString.call(T)==="[object Array]"){var la;Ve=du(T),xt!=="left"&&(Ma=Ve.map(bs));var Yn,Fo=0;if(xt==="right"){V-=Ma[0],T=[],Nn=Ve.length;for(var Xi=0;Xi<Nn;Xi++)Xi===0?(Yn=Pi(V),la=Ki(ve)):(Yn=E(Fo-Ma[Xi]),la=-Tl),T.push([Ve[Xi],Yn,la]),Fo=Ma[Xi]}else if(xt==="center"){V-=Ma[0]/2,T=[],Nn=Ve.length;for(var Ji=0;Ji<Nn;Ji++)Ji===0?(Yn=Pi(V),la=Ki(ve)):(Yn=E((Fo-Ma[Ji])/2),la=-Tl),T.push([Ve[Ji],Yn,la]),Fo=Ma[Ji]}else if(xt==="left"){T=[],Nn=Ve.length;for(var El=0;El<Nn;El++)T.push(Ve[El])}else if(xt==="justify"&&z0.encoding==="Identity-H"){T=[],Nn=Ve.length,kt=kt!==0?kt:U0;for(var Zi=0,Vr=0;Vr<Nn;Vr++)if(la=Vr===0?Ki(ve):-Tl,Yn=Vr===0?Pi(V):Zi,Vr<Nn-1){var yu=E((kt-Ma[Vr])/(Ve[Vr].split(" ").length-1)),Kn=Ve[Vr].split(" ");T.push([Kn[0]+" ",Yn,la]),Zi=0;for(var Da=1;Da<Kn.length;Da++){var Pl=(bs(Kn[Da-1]+" "+Kn[Da])-bs(Kn[Da]))*Oi+yu;Da==Kn.length-1?T.push([Kn[Da],Pl,0]):T.push([Kn[Da]+" ",Pl,0]),Zi-=Pl}}else T.push([Ve[Vr],Yn,la]);T.push(["",Zi,0])}else{if(xt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(T=[],Nn=Ve.length,kt=kt!==0?kt:U0,Vr=0;Vr<Nn;Vr++)la=Vr===0?Ki(ve):-Tl,Yn=Vr===0?Pi(V):0,Vr<Nn-1?Io.push(N(E((kt-Ma[Vr])/(Ve[Vr].split(" ").length-1)))):Io.push(0),T.push([Ve[Vr],Yn,la])}}var W0=typeof ge.R2L=="boolean"?ge.R2L:dt;W0===!0&&(T=pu(T,(function(Tr,Er,Yr){return[Tr.split("").reverse().join(""),Er,Yr]}))),Re={text:T,x:V,y:ve,options:ge,mutex:{pdfEscape:oa,activeFontKey:Ft,fonts:Xt,activeFontSize:Ke}},Gt.publish("postProcessText",Re),T=Re.text,ai=Re.mutex.isHex||!1;var bu=Xt[Ft].encoding;bu!=="WinAnsiEncoding"&&bu!=="StandardEncoding"||(T=pu(T,(function(Tr,Er,Yr){return[$0(Tr),Er,Yr]}))),Ve=du(T),T=[];for(var ws,_s,Mo,Ss=0,Ol=1,As=Array.isArray(Ve[0])?Ol:Ss,Do="",wu=function(Tr,Er,Yr){var cn="";return Yr instanceof St?(Yr=typeof ge.angle=="number"?xa(Yr,new St(1,0,0,1,Tr,Er)):xa(new St(1,0,0,1,Tr,Er),Yr),w===b.ADVANCED&&(Yr=xa(new St(1,0,0,-1,0,0),Yr)),cn=Yr.join(" ")+` Tm
91
- `):cn=N(Tr)+" "+N(Er)+` Td
92
- `,cn},Ra=0;Ra<Ve.length;Ra++){switch(Do="",As){case Ol:Mo=(ai?"<":"(")+Ve[Ra][0]+(ai?">":")"),ws=parseFloat(Ve[Ra][1]),_s=parseFloat(Ve[Ra][2]);break;case Ss:Mo=(ai?"<":"(")+Ve[Ra]+(ai?">":")"),ws=Pi(V),_s=Ki(ve)}Io!==void 0&&Io[Ra]!==void 0&&(Do=Io[Ra]+` Tw
93
- `),Ra===0?T.push(Do+wu(ws,_s,Br)+Mo):As===Ss?T.push(Do+Mo):As===Ol&&T.push(Do+wu(ws,_s,Br)+Mo)}T=As===Ss?T.join(` Tj
94
- T* `):T.join(` Tj
95
- `),T+=` Tj
96
- `;var Ba=`BT
97
- /`;return Ba+=Ft+" "+Ke+` Tf
98
- `,Ba+=N(Ke*ba)+` TL
99
- `,Ba+=xs+`
100
- `,Ba+=vn,Ba+=T,le(Ba+="ET"),d[Ft]=!0,Qr};var i1=h.__private__.clip=h.clip=function(T){return le(T==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return i1("evenodd")},h.__private__.discardPath=h.discardPath=function(){return le("n"),this};var Ei=h.__private__.isValidStyle=function(T){var V=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(T)!==-1&&(V=!0),V};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(T){return Ei(T)&&(c=T),this};var k0=h.__private__.getStyle=h.getStyle=function(T){var V=c;switch(T){case"D":case"S":V="S";break;case"F":V="f";break;case"FD":case"DF":V="B";break;case"f":case"f*":case"B":case"B*":V=T}return V},L0=h.close=function(){return le("h"),this};h.stroke=function(){return le("S"),this},h.fill=function(T){return vl("f",T),this},h.fillEvenOdd=function(T){return vl("f*",T),this},h.fillStroke=function(T){return vl("B",T),this},h.fillStrokeEvenOdd=function(T){return vl("B*",T),this};var vl=function(T,V){cr(V)==="object"?s1(V,T):le(T)},nu=function(T){T===null||w===b.ADVANCED&&T===void 0||(T=k0(T),le(T))};function o1(T,V,ve,ge,Ne){var Re=new Is(V||this.boundingBox,ve||this.xStep,ge||this.yStep,this.gState,Ne||this.matrix);Re.stream=this.stream;var Ve=T+"$$"+this.cloneIndex+++"$$";return Fn(Ve,Re),Re}var s1=function(T,V){var ve=Ee[T.key],ge=Ht[ve];if(ge instanceof Jo)le("q"),le(l1(V)),ge.gState&&h.setGState(ge.gState),le(T.matrix.toString()+" cm"),le("/"+ve+" sh"),le("Q");else if(ge instanceof Is){var Ne=new St(1,0,0,-1,0,Lo());T.matrix&&(Ne=Ne.multiply(T.matrix||ia),ve=o1.call(ge,T.key,T.boundingBox,T.xStep,T.yStep,Ne).id),le("q"),le("/Pattern cs"),le("/"+ve+" scn"),ge.gState&&h.setGState(ge.gState),le(V),le("Q")}},l1=function(T){switch(T){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},au=h.moveTo=function(T,V){return le(N(E(T))+" "+N(U(V))+" m"),this},vs=h.lineTo=function(T,V){return le(N(E(T))+" "+N(U(V))+" l"),this},Co=h.curveTo=function(T,V,ve,ge,Ne,Re){return le([N(E(T)),N(U(V)),N(E(ve)),N(U(ge)),N(E(Ne)),N(U(Re)),"c"].join(" ")),this};h.__private__.line=h.line=function(T,V,ve,ge,Ne){if(isNaN(T)||isNaN(V)||isNaN(ve)||isNaN(ge)||!Ei(Ne))throw new Error("Invalid arguments passed to jsPDF.line");return w===b.COMPAT?this.lines([[ve-T,ge-V]],T,V,[1,1],Ne||"S"):this.lines([[ve-T,ge-V]],T,V,[1,1]).stroke()},h.__private__.lines=h.lines=function(T,V,ve,ge,Ne,Re){var Ve,ut,xt,Mt,kt,Yt,Mr,Br,Qr,Dn,vn,ai;if(typeof T=="number"&&(ai=ve,ve=V,V=T,T=ai),ge=ge||[1,1],Re=Re||!1,isNaN(V)||isNaN(ve)||!Array.isArray(T)||!Array.isArray(ge)||!Ei(Ne)||typeof Re!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(au(V,ve),Ve=ge[0],ut=ge[1],Mt=T.length,Dn=V,vn=ve,xt=0;xt<Mt;xt++)(kt=T[xt]).length===2?(Dn=kt[0]*Ve+Dn,vn=kt[1]*ut+vn,vs(Dn,vn)):(Yt=kt[0]*Ve+Dn,Mr=kt[1]*ut+vn,Br=kt[2]*Ve+Dn,Qr=kt[3]*ut+vn,Dn=kt[4]*Ve+Dn,vn=kt[5]*ut+vn,Co(Yt,Mr,Br,Qr,Dn,vn));return Re&&L0(),nu(Ne),this},h.path=function(T){for(var V=0;V<T.length;V++){var ve=T[V],ge=ve.c;switch(ve.op){case"m":au(ge[0],ge[1]);break;case"l":vs(ge[0],ge[1]);break;case"c":Co.apply(this,ge);break;case"h":L0()}}return this},h.__private__.rect=h.rect=function(T,V,ve,ge,Ne){if(isNaN(T)||isNaN(V)||isNaN(ve)||isNaN(ge)||!Ei(Ne))throw new Error("Invalid arguments passed to jsPDF.rect");return w===b.COMPAT&&(ge=-ge),le([N(E(T)),N(U(V)),N(E(ve)),N(E(ge)),"re"].join(" ")),nu(Ne),this},h.__private__.triangle=h.triangle=function(T,V,ve,ge,Ne,Re,Ve){if(isNaN(T)||isNaN(V)||isNaN(ve)||isNaN(ge)||isNaN(Ne)||isNaN(Re)||!Ei(Ve))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ve-T,ge-V],[Ne-ve,Re-ge],[T-Ne,V-Re]],T,V,[1,1],Ve,!0),this},h.__private__.roundedRect=h.roundedRect=function(T,V,ve,ge,Ne,Re,Ve){if(isNaN(T)||isNaN(V)||isNaN(ve)||isNaN(ge)||isNaN(Ne)||isNaN(Re)||!Ei(Ve))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ut=4/3*(Math.SQRT2-1);return Ne=Math.min(Ne,.5*ve),Re=Math.min(Re,.5*ge),this.lines([[ve-2*Ne,0],[Ne*ut,0,Ne,Re-Re*ut,Ne,Re],[0,ge-2*Re],[0,Re*ut,-Ne*ut,Re,-Ne,Re],[2*Ne-ve,0],[-Ne*ut,0,-Ne,-Re*ut,-Ne,-Re],[0,2*Re-ge],[0,-Re*ut,Ne*ut,-Re,Ne,-Re]],T+Ne,V,[1,1],Ve,!0),this},h.__private__.ellipse=h.ellipse=function(T,V,ve,ge,Ne){if(isNaN(T)||isNaN(V)||isNaN(ve)||isNaN(ge)||!Ei(Ne))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Re=4/3*(Math.SQRT2-1)*ve,Ve=4/3*(Math.SQRT2-1)*ge;return au(T+ve,V),Co(T+ve,V-Ve,T+Re,V-ge,T,V-ge),Co(T-Re,V-ge,T-ve,V-Ve,T-ve,V),Co(T-ve,V+Ve,T-Re,V+ge,T,V+ge),Co(T+Re,V+ge,T+ve,V+Ve,T+ve,V),nu(Ne),this},h.__private__.circle=h.circle=function(T,V,ve,ge){if(isNaN(T)||isNaN(V)||isNaN(ve)||!Ei(ge))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(T,V,ve,ve,ge)},h.setFont=function(T,V,ve){return ve&&(V=O(V,ve)),Ft=O0(T,V,{disableWarning:!1}),this};var c1=h.__private__.getFont=h.getFont=function(){return Xt[O0.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var T,V,ve={};for(T in fr)if(fr.hasOwnProperty(T))for(V in ve[T]=[],fr[T])fr[T].hasOwnProperty(V)&&ve[T].push(V);return ve},h.addFont=function(T,V,ve,ge,Ne){var Re=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Re.indexOf(arguments[3])!==-1?Ne=arguments[3]:arguments[3]&&Re.indexOf(arguments[3])==-1&&(ve=O(ve,ge)),Ne=Ne||"Identity-H",eu.call(this,T,V,ve,Ne)};var gs,iu=e.lineWidth||.200025,gl=h.__private__.getLineWidth=h.getLineWidth=function(){return iu},I0=h.__private__.setLineWidth=h.setLineWidth=function(T){return iu=T,le(N(E(T))+" w"),this};h.__private__.setLineDash=yt.API.setLineDash=yt.API.setLineDashPattern=function(T,V){if(T=T||[],V=V||0,isNaN(V)||!Array.isArray(T))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return T=T.map((function(ve){return N(E(ve))})).join(" "),V=N(E(V)),le("["+T+"] "+V+" d"),this};var F0=h.__private__.getLineHeight=h.getLineHeight=function(){return Ke*gs};h.__private__.getLineHeight=h.getLineHeight=function(){return Ke*gs};var M0=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(T){return typeof(T=T||1.15)=="number"&&(gs=T),this},D0=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return gs};M0(e.lineHeight);var Pi=h.__private__.getHorizontalCoordinate=function(T){return E(T)},Ki=h.__private__.getVerticalCoordinate=function(T){return w===b.ADVANCED?T:ht[I].mediaBox.topRightY-ht[I].mediaBox.bottomLeftY-E(T)},u1=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(T){return N(Pi(T))},ko=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(T){return N(Ki(T))},ni=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return de(ni)},h.__private__.setStrokeColor=h.setDrawColor=function(T,V,ve,ge){return ni=me({ch1:T,ch2:V,ch3:ve,ch4:ge,pdfColorType:"draw",precision:2}),le(ni),this};var ou=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return de(ou)},h.__private__.setFillColor=h.setFillColor=function(T,V,ve,ge){return ou=me({ch1:T,ch2:V,ch3:ve,ch4:ge,pdfColorType:"fill",precision:2}),le(ou),this};var xs=e.textColor||"0 g",f1=h.__private__.getTextColor=h.getTextColor=function(){return de(xs)};h.__private__.setTextColor=h.setTextColor=function(T,V,ve,ge){return xs=me({ch1:T,ch2:V,ch3:ve,ch4:ge,pdfColorType:"text",precision:3}),this};var xl=e.charSpace,h1=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(xl||0)};h.__private__.setCharSpace=h.setCharSpace=function(T){if(isNaN(T))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return xl=T,this};var su=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(T){var V=h.CapJoinStyles[T];if(V===void 0)throw new Error("Line cap style of '"+T+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return su=V,le(V+" J"),this};var lu=0;h.__private__.setLineJoin=h.setLineJoin=function(T){var V=h.CapJoinStyles[T];if(V===void 0)throw new Error("Line join style of '"+T+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return lu=V,le(V+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(T){if(T=T||0,isNaN(T))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return le(N(E(T))+" M"),this},h.GState=df,h.setGState=function(T){(T=typeof T=="string"?ct[Wt[T]]:R0(null,T)).equals(Or)||(le("/"+T.id+" gs"),Or=T)};var R0=function(T,V){if(!T||!Wt[T]){var ve=!1;for(var ge in ct)if(ct.hasOwnProperty(ge)&&ct[ge].equals(V)){ve=!0;break}if(ve)V=ct[ge];else{var Ne="GS"+(Object.keys(ct).length+1).toString(10);ct[Ne]=V,V.id=Ne}return T&&(Wt[T]=V.id),Gt.publish("addGState",V),V}};h.addGState=function(T,V){return R0(T,V),this},h.saveGraphicsState=function(){return le("q"),Vn.push({key:Ft,size:Ke,color:xs}),this},h.restoreGraphicsState=function(){le("Q");var T=Vn.pop();return Ft=T.key,Ke=T.size,xs=T.color,Or=null,this},h.setCurrentTransformationMatrix=function(T){return le(T.toString()+" cm"),this},h.comment=function(T){return le("#"+T),this};var yl=function(T,V){var ve=T||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ve},set:function(Re){isNaN(Re)||(ve=parseFloat(Re))}});var ge=V||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ge},set:function(Re){isNaN(Re)||(ge=parseFloat(Re))}});var Ne="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Ne},set:function(Re){Ne=Re.toString()}}),this},cu=function(T,V,ve,ge){yl.call(this,T,V),this.type="rect";var Ne=ve||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Ne},set:function(Ve){isNaN(Ve)||(Ne=parseFloat(Ve))}});var Re=ge||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Re},set:function(Ve){isNaN(Ve)||(Re=parseFloat(Ve))}}),this},uu=function(){this.page=Tt,this.currentPage=I,this.pages=be.slice(0),this.pagesContext=ht.slice(0),this.x=Dr,this.y=zt,this.matrix=An,this.width=ys(I),this.height=Lo(I),this.outputDestination=Le,this.id="",this.objectNumber=-1};uu.prototype.restore=function(){Tt=this.page,I=this.currentPage,ht=this.pagesContext,be=this.pages,Dr=this.x,zt=this.y,An=this.matrix,fu(I,this.width),hu(I,this.height),Le=this.outputDestination};var B0=function(T,V,ve,ge,Ne){Fa.push(new uu),Tt=I=0,be=[],Dr=T,zt=V,An=Ne,tu([ve,ge])},d1=function(T){if(Ia[T])Fa.pop().restore();else{var V=new uu,ve="Xo"+(Object.keys(ln).length+1).toString(10);V.id=ve,Ia[T]=ve,ln[ve]=V,Gt.publish("addFormObject",V),Fa.pop().restore()}};for(var bl in h.beginFormObject=function(T,V,ve,ge,Ne){return B0(T,V,ve,ge,Ne),this},h.endFormObject=function(T){return d1(T),this},h.doFormObject=function(T,V){var ve=ln[Ia[T]];return le("q"),le(V.toString()+" cm"),le("/"+ve.id+" Do"),le("Q"),this},h.getFormObject=function(T){var V=ln[Ia[T]];return{x:V.x,y:V.y,width:V.width,height:V.height,matrix:V.matrix}},h.save=function(T,V){return T=T||"generated.pdf",(V=V||{}).returnPromise=V.returnPromise||!1,V.returnPromise===!1?(Os(pl(Yi()),T),typeof Os.unload=="function"&&Et.setTimeout&&setTimeout(Os.unload,911),this):new Promise((function(ve,ge){try{var Ne=Os(pl(Yi()),T);typeof Os.unload=="function"&&Et.setTimeout&&setTimeout(Os.unload,911),ve(Ne)}catch(Re){ge(Re.message)}}))},yt.API)yt.API.hasOwnProperty(bl)&&(bl==="events"&&yt.API.events.length?(function(T,V){var ve,ge,Ne;for(Ne=V.length-1;Ne!==-1;Ne--)ve=V[Ne][0],ge=V[Ne][1],T.subscribe.apply(T,[ve].concat(typeof ge=="function"?[ge]:ge))})(Gt,yt.API.events):h[bl]=yt.API[bl]);var ys=h.getPageWidth=function(T){return(ht[T=T||I].mediaBox.topRightX-ht[T].mediaBox.bottomLeftX)/it},fu=h.setPageWidth=function(T,V){ht[T].mediaBox.topRightX=V*it+ht[T].mediaBox.bottomLeftX},Lo=h.getPageHeight=function(T){return(ht[T=T||I].mediaBox.topRightY-ht[T].mediaBox.bottomLeftY)/it},hu=h.setPageHeight=function(T,V){ht[T].mediaBox.topRightY=V*it+ht[T].mediaBox.bottomLeftY};return h.internal={pdfEscape:oa,getStyle:k0,getFont:c1,getFontSize:Je,getCharSpace:h1,getTextColor:f1,getLineHeight:F0,getLineHeightFactor:D0,getLineWidth:gl,write:De,getHorizontalCoordinate:Pi,getVerticalCoordinate:Ki,getCoordinateString:u1,getVerticalCoordinateString:ko,collections:{},newObject:Hr,newAdditionalObject:pe,newObjectDeferred:Rr,newObjectDeferredBegin:J,getFilters:Pe,putStream:Ie,events:Gt,scaleFactor:it,pageSize:{getWidth:function(){return ys(I)},setWidth:function(T){fu(I,T)},getHeight:function(){return Lo(I)},setHeight:function(T){hu(I,T)}},encryptionOptions:u,encryption:Mn,getEncryptor:n1,output:ml,getNumberOfPages:Zp,pages:be,out:le,f2:R,f3:j,getPageInfo:C0,getPageInfoByObjId:Ct,getCurrentPageInfo:a1,getPDFVersion:p,Point:yl,Rectangle:cu,Matrix:St,hasHotfix:j0},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return ys(I)},set:function(T){fu(I,T)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return Lo(I)},set:function(T){hu(I,T)},enumerable:!0,configurable:!0}),Xp.call(h,Ue),Ft="F1",E0(a,r),Gt.publish("initialized"),h}Vl.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},Vl.prototype.toHexString=function(e){return e.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},Vl.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},Vl.prototype.processOwnerPassword=function(e,t){return py(dy(t).substr(0,5),e)},Vl.prototype.encryptor=function(e,t){var r=dy(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return py(r,n)}},df.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||cr(e)!==cr(this))return!1;var n=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return n===0},yt.API={events:[]},yt.version="2.5.2";var qr=yt.API,Q2=1,tl=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Fl=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Lt=function(e){return e.toFixed(2)},Yo=function(e){return e.toFixed(5)};qr.__acroform__={};var va=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},cw=function(e){return e*Q2},Ci=function(e){var t=new HE,r=mt.internal.getHeight(e)||0,n=mt.internal.getWidth(e)||0;return t.BBox=[0,0,Number(Lt(n)),Number(Lt(r))],t},Kk=qr.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<t},Xk=qr.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<t)},Jk=qr.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(e&1<<t)==0?0:1},Kr=qr.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Jk(e,t-1)},Xr=qr.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Kk(e,t-1)},Jr=qr.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Xk(e,t-1)},Zk=qr.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,a=e[0],i=e[1],o=e[2],s=e[3],l={};return l.lowerLeft_X=r(a)||0,l.lowerLeft_Y=n(i+s)||0,l.upperRight_X=r(a+o)||0,l.upperRight_Y=n(i)||0,[Number(Lt(l.lowerLeft_X)),Number(Lt(l.lowerLeft_Y)),Number(Lt(l.upperRight_X)),Number(Lt(l.upperRight_Y))]},Qk=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=my(e,r),a=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+a+" "+Lt(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=Ci(e);return i.scope=e.scope,i.stream=t.join(`
101
- `),i}},my=function(e,t){var r=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},a=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");a=e.multiline?a.map((function(j){return j.split(`
102
- `)})):a.map((function(j){return[j]}));var i=r,o=mt.internal.getHeight(e)||0;o=o<0?-o:o;var s=mt.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(j,E,D){if(j+1<a.length){var U=E+" "+a[j+1][0];return hh(U,e,D).width<=s-4}return!1};i++;e:for(;i>0;){t="",i--;var c,u,f=hh("3",e,i).height,d=e.multiline?o-i:(o-f)/2,h=d+=2,x=0,p=0,m=0;if(i<=0){t=`(...) Tj
103
- `,t+="% Width of Text: "+hh(t,e,i=12).width+", FieldWidth:"+s+`
104
- `;break}for(var y="",b=0,w=0;w<a.length;w++)if(a.hasOwnProperty(w)){var S=!1;if(a[w].length!==1&&m!==a[w].length-1){if((f+2)*(b+2)+2>o)continue e;y+=a[w][m],S=!0,p=w,w--}else{y=(y+=a[w][m]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var A=parseInt(w),O=l(A,y,i),N=w>=a.length-1;if(O&&!N){y+=" ",m=0;continue}if(O||N){if(N)p=A;else if(e.multiline&&(f+2)*(b+2)+2>o)continue e}else{if(!e.multiline||(f+2)*(b+2)+2>o)continue e;p=A}}for(var C="",L=x;L<=p;L++){var R=a[L];if(e.multiline){if(L===p){C+=R[m]+" ",m=(m+1)%R.length;continue}if(L===x){C+=R[R.length-1]+" ";continue}}C+=R[0]+" "}switch(C=C.substr(C.length-1)==" "?C.substr(0,C.length-1):C,u=hh(C,e,i).width,e.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;case"left":default:c=2}t+=Lt(c)+" "+Lt(h)+` Td
105
- `,t+="("+tl(C)+`) Tj
106
- `,t+=-Lt(c)+` 0 Td
107
- `,h=-(i+2),u=0,x=S?p:p+1,b++,y=""}break}return n.text=t,n.fontSize=i,n},hh=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),a=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:a}},eL={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},tL=function(e,t){var r={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find((function(n){return n.type===r.type&&n.object===r.object}))===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},rL=function(e,t){for(var r in e)if(e.hasOwnProperty(r)){var n=r,a=e[r];t.internal.newObjectDeferredBegin(a.objId,!0),cr(a)==="object"&&typeof a.putStream=="function"&&a.putStream(),delete e[n]}},nL=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(_i.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(eL)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Q2=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new GE,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(e)})),e.internal.events.subscribe("buildDocument",(function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in n)if(n.hasOwnProperty(a)){var i=n[a];i.objId=void 0,i.hasAnnotation&&tL(i,r)}})(e)})),e.internal.events.subscribe("putCatalog",(function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)})),e.internal.events.subscribe("postPutPages",(function(r){(function(n,a){var i=!n;for(var o in n||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(o)){var s=n[o],l=[],c=s.Rect;if(s.Rect&&(s.Rect=Zk(s.Rect,a)),a.internal.newObjectDeferredBegin(s.objId,!0),s.DA=mt.createDefaultAppearanceStream(s),cr(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=c,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=Qk(s);l.push({key:"AP",value:"<</N "+u+">>"}),a.internal.acroformPlugin.xForms.push(u)}if(s.appearanceStreamContent){var f="";for(var d in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(d)){var h=s.appearanceStreamContent[d];if(f+="/"+d+" ",f+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var o in h)if(h.hasOwnProperty(o)){var x=h[o];typeof x=="function"&&(x=x.call(a,s)),f+="/"+o+" "+x+" ",a.internal.acroformPlugin.xForms.indexOf(x)>=0||a.internal.acroformPlugin.xForms.push(x)}}else typeof(x=h)=="function"&&(x=x.call(a,s)),f+="/"+o+" "+x,a.internal.acroformPlugin.xForms.indexOf(x)>=0||a.internal.acroformPlugin.xForms.push(x);f+=">>"}l.push({key:"AP",value:`<<
108
- `+f+">>"})}a.internal.putStream({additionalKeyValues:l,objectId:s.objId}),a.internal.out("endobj")}i&&rL(a.internal.acroformPlugin.xForms,a)})(r,e)})),e.internal.acroformPlugin.isInitialized=!0}},WE=qr.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(o){return o};if(Array.isArray(e)){for(var a="[",i=0;i<e.length;i++)switch(i!==0&&(a+=" "),cr(e[i])){case"boolean":case"number":case"object":a+=e[i].toString();break;case"string":e[i].substr(0,1)!=="/"?(t!==void 0&&r&&(n=r.internal.getEncryptor(t)),a+="("+tl(n(e[i].toString()))+")"):a+=e[i].toString()}return a+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},B1=function(e,t,r){var n=function(a){return a};return t!==void 0&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),e="("+tl(n(e))+")"},Fi=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Fi.prototype.toString=function(){return this.objId+" 0 R"},Fi.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Fi.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter((function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"}));for(var r in t)if(Object.getOwnPropertyDescriptor(this,t[r]).configurable===!1){var n=t[r],a=this[n];a&&(Array.isArray(a)?e.push({key:n,value:WE(a,this.objId,this.scope)}):a instanceof Fi?(a.scope=this.scope,e.push({key:n,value:a.objId+" 0 R"})):typeof a!="function"&&e.push({key:n,value:a}))}return e};var HE=function(){Fi.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){e=r.trim()},get:function(){return e||null}})};va(HE,Fi);var GE=function(){Fi.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var r=function(n){return n};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+tl(r(e))+")"}},set:function(r){e=r}})};va(GE,Fi);var _i=function e(){Fi.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');t=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Kr(t,3)},set:function(y){y?this.F=Xr(t,3):this.F=Jr(t,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');r=y}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(y){n=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(y){n[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(y){n[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(y){n[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(y){n[3]=y}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=y;break;default:throw new Error('Invalid value "'+y+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof Uh)return;i="FieldObject"+e.FieldNum++}var y=function(b){return b};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+tl(y(i))+")"},set:function(y){i=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(y){i=y}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(y){o=y}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(y){s=y}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(y){l=y}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/Q2:c},set:function(y){c=y}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(y){u=y}});var f="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!f||this instanceof Uh||this instanceof ns))return B1(f,this.objId,this.scope)},set:function(y){y=y.toString(),f=y}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof dn?d:B1(d,this.objId,this.scope)},set:function(y){y=y.toString(),d=this instanceof dn?y:y.substr(0,1)==="("?Fl(y.substr(1,y.length-2)):Fl(y)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof dn?Fl(d.substr(1,d.length-1)):d},set:function(y){y=y.toString(),d=this instanceof dn?"/"+y:y}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof dn?h:B1(h,this.objId,this.scope)},set:function(y){y=y.toString(),h=this instanceof dn?y:y.substr(0,1)==="("?Fl(y.substr(1,y.length-2)):Fl(y)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof dn?Fl(h.substr(1,h.length-1)):h},set:function(y){y=y.toString(),h=this instanceof dn?"/"+y:y}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var x,p=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return p},set:function(y){y=!!y,p=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(x)return x},set:function(y){x=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,1)},set:function(y){y?this.Ff=Xr(this.Ff,1):this.Ff=Jr(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,2)},set:function(y){y?this.Ff=Xr(this.Ff,2):this.Ff=Jr(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,3)},set:function(y){y?this.Ff=Xr(this.Ff,3):this.Ff=Jr(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(m!==null)return m},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');m=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(m){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:m=2;break;case"center":case 1:m=1;break;case"left":case 0:default:m=0}}})};va(_i,Fi);var $s=function(){_i.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(r){e=r}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return WE(t,this.objId,this.scope)},set:function(r){var n,a;a=[],typeof(n=r)=="string"&&(a=(function(i,o,s){s||(s=1);for(var l,c=[];l=o.exec(i);)c.push(l[s]);return c})(n,/\((.*?)\)/g)),t=a}}),this.getOptions=function(){return t},this.setOptions=function(r){t=r,this.sort&&t.sort()},this.addOption=function(r){r=(r=r||"").toString(),t.push(r),this.sort&&t.sort()},this.removeOption=function(r,n){for(n=n||!1,r=(r=r||"").toString();t.indexOf(r)!==-1&&(t.splice(t.indexOf(r),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,18)},set:function(r){r?this.Ff=Xr(this.Ff,18):this.Ff=Jr(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=Xr(this.Ff,19):this.Ff=Jr(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,20)},set:function(r){r?(this.Ff=Xr(this.Ff,20),t.sort()):this.Ff=Jr(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,22)},set:function(r){r?this.Ff=Xr(this.Ff,22):this.Ff=Jr(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,23)},set:function(r){r?this.Ff=Xr(this.Ff,23):this.Ff=Jr(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,27)},set:function(r){r?this.Ff=Xr(this.Ff,27):this.Ff=Jr(this.Ff,27)}}),this.hasAppearanceStream=!1};va($s,_i);var qs=function(){$s.call(this),this.fontName="helvetica",this.combo=!1};va(qs,$s);var Us=function(){qs.call(this),this.combo=!0};va(Us,qs);var Yu=function(){Us.call(this),this.edit=!0};va(Yu,Us);var dn=function(){_i.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,15)},set:function(r){r?this.Ff=Xr(this.Ff,15):this.Ff=Jr(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,16)},set:function(r){r?this.Ff=Xr(this.Ff,16):this.Ff=Jr(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,17)},set:function(r){r?this.Ff=Xr(this.Ff,17):this.Ff=Jr(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,26)},set:function(r){r?this.Ff=Xr(this.Ff,26):this.Ff=Jr(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(i){return i};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,a=[];for(n in a.push("<<"),t)a.push("/"+n+" ("+tl(r(t[n]))+")");return a.push(">>"),a.join(`
109
- `)}},set:function(r){cr(r)==="object"&&(t=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(r){typeof r=="string"&&(t.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(r){e="/"+r}})};va(dn,_i);var Ku=function(){dn.call(this),this.pushButton=!0};va(Ku,dn);var zs=function(){dn.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};va(zs,dn);var Uh=function(){var e,t;_i.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(a){e=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(a){t=a}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(s){return s};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var i,o=[];for(i in o.push("<<"),n)o.push("/"+i+" ("+tl(a(n[i]))+")");return o.push(">>"),o.join(`
110
- `)},set:function(a){cr(a)==="object"&&(n=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(a){typeof a=="string"&&(n.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(a){r=a}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(a){r="/"+a}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=mt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};va(Uh,_i),zs.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},zs.prototype.createOption=function(e){var t=new Uh;return t.Parent=this,t.optionName=e,this.Kids.push(t),aL.call(this.scope,t),t};var Xu=function(){dn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=mt.CheckBox.createAppearanceStream()};va(Xu,dn);var ns=function(){_i.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,13)},set:function(t){t?this.Ff=Xr(this.Ff,13):this.Ff=Jr(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,21)},set:function(t){t?this.Ff=Xr(this.Ff,21):this.Ff=Jr(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,23)},set:function(t){t?this.Ff=Xr(this.Ff,23):this.Ff=Jr(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,24)},set:function(t){t?this.Ff=Xr(this.Ff,24):this.Ff=Jr(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,25)},set:function(t){t?this.Ff=Xr(this.Ff,25):this.Ff=Jr(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,26)},set:function(t){t?this.Ff=Xr(this.Ff,26):this.Ff=Jr(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};va(ns,_i);var Ju=function(){ns.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,14)},set:function(e){e?this.Ff=Xr(this.Ff,14):this.Ff=Jr(this.Ff,14)}}),this.password=!0};va(Ju,ns);var mt={CheckBox:{createAppearanceStream:function(){return{N:{On:mt.CheckBox.YesNormal},D:{On:mt.CheckBox.YesPushDown,Off:mt.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Ci(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,a=e.scope.__private__.encodeColorString(e.color),i=my(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+Lt(mt.internal.getWidth(e))+" "+Lt(mt.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+Lt(i.fontSize)+" Tf "+a),r.push("BT"),r.push(i.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join(`
111
- `),t},YesNormal:function(e){var t=Ci(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),a=[],i=mt.internal.getHeight(e),o=mt.internal.getWidth(e),s=my(e,e.caption);return a.push("1 g"),a.push("0 0 "+Lt(o)+" "+Lt(i)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+Lt(o-1)+" "+Lt(i-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+r+" "+Lt(s.fontSize)+" Tf "+n),a.push(s.text),a.push("ET"),a.push("Q"),t.stream=a.join(`
112
- `),t},OffPushDown:function(e){var t=Ci(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Lt(mt.internal.getWidth(e))+" "+Lt(mt.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
113
- `),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:mt.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=mt.RadioButton.Circle.YesNormal,t.D[e]=mt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Ci(e);t.scope=e.scope;var r=[],n=mt.internal.getWidth(e)<=mt.internal.getHeight(e)?mt.internal.getWidth(e)/4:mt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=mt.internal.Bezier_C,i=Number((n*a).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Yo(mt.internal.getWidth(e)/2)+" "+Yo(mt.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),r.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),r.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),r.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
114
- `),t},YesPushDown:function(e){var t=Ci(e);t.scope=e.scope;var r=[],n=mt.internal.getWidth(e)<=mt.internal.getHeight(e)?mt.internal.getWidth(e)/4:mt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=Number((2*n).toFixed(5)),i=Number((a*mt.internal.Bezier_C).toFixed(5)),o=Number((n*mt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Yo(mt.internal.getWidth(e)/2)+" "+Yo(mt.internal.getHeight(e)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),r.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),r.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),r.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Yo(mt.internal.getWidth(e)/2)+" "+Yo(mt.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
115
- `),t},OffPushDown:function(e){var t=Ci(e);t.scope=e.scope;var r=[],n=mt.internal.getWidth(e)<=mt.internal.getHeight(e)?mt.internal.getWidth(e)/4:mt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=Number((2*n).toFixed(5)),i=Number((a*mt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Yo(mt.internal.getWidth(e)/2)+" "+Yo(mt.internal.getHeight(e)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),r.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),r.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),r.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
116
- `),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:mt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=mt.RadioButton.Cross.YesNormal,t.D[e]=mt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Ci(e);t.scope=e.scope;var r=[],n=mt.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+Lt(mt.internal.getWidth(e)-2)+" "+Lt(mt.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(Lt(n.x1.x)+" "+Lt(n.x1.y)+" m"),r.push(Lt(n.x2.x)+" "+Lt(n.x2.y)+" l"),r.push(Lt(n.x4.x)+" "+Lt(n.x4.y)+" m"),r.push(Lt(n.x3.x)+" "+Lt(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
117
- `),t},YesPushDown:function(e){var t=Ci(e);t.scope=e.scope;var r=mt.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+Lt(mt.internal.getWidth(e))+" "+Lt(mt.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+Lt(mt.internal.getWidth(e)-2)+" "+Lt(mt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(Lt(r.x1.x)+" "+Lt(r.x1.y)+" m"),n.push(Lt(r.x2.x)+" "+Lt(r.x2.y)+" l"),n.push(Lt(r.x4.x)+" "+Lt(r.x4.y)+" m"),n.push(Lt(r.x3.x)+" "+Lt(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
118
- `),t},OffPushDown:function(e){var t=Ci(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Lt(mt.internal.getWidth(e))+" "+Lt(mt.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
119
- `),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};mt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=mt.internal.getWidth(e),r=mt.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},mt.internal.getWidth=function(e){var t=0;return cr(e)==="object"&&(t=cw(e.Rect[2])),t},mt.internal.getHeight=function(e){var t=0;return cr(e)==="object"&&(t=cw(e.Rect[3])),t};var aL=qr.addField=function(e){if(nL(this,e),!(e instanceof _i))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};qr.AcroFormChoiceField=$s,qr.AcroFormListBox=qs,qr.AcroFormComboBox=Us,qr.AcroFormEditBox=Yu,qr.AcroFormButton=dn,qr.AcroFormPushButton=Ku,qr.AcroFormRadioButton=zs,qr.AcroFormCheckBox=Xu,qr.AcroFormTextField=ns,qr.AcroFormPasswordField=Ju,qr.AcroFormAppearance=mt,qr.AcroForm={ChoiceField:$s,ListBox:qs,ComboBox:Us,EditBox:Yu,Button:dn,PushButton:Ku,RadioButton:zs,CheckBox:Xu,TextField:ns,PasswordField:Ju,Appearance:mt},yt.AcroForm={ChoiceField:$s,ListBox:qs,ComboBox:Us,EditBox:Yu,Button:dn,PushButton:Ku,RadioButton:zs,CheckBox:Xu,TextField:ns,PasswordField:Ju,Appearance:mt};var iL=yt.AcroForm;function VE(e){return e.reduce((function(t,r,n){return t[r]=n,t}),{})}(function(e){e.__addimage__={};var t="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=e.__addimage__.getImageFileTypeByImageData=function(j,E){var D,U,H,B,z,te=t;if((E=E||t)==="RGBA"||j.data!==void 0&&j.data instanceof Uint8ClampedArray&&"height"in j&&"width"in j)return"RGBA";if(O(j))for(z in r)for(H=r[z],D=0;D<H.length;D+=1){for(B=!0,U=0;U<H[D].length;U+=1)if(H[D][U]!==void 0&&H[D][U]!==j[U]){B=!1;break}if(B===!0){te=z;break}}else for(z in r)for(H=r[z],D=0;D<H.length;D+=1){for(B=!0,U=0;U<H[D].length;U+=1)if(H[D][U]!==void 0&&H[D][U]!==j.charCodeAt(U)){B=!1;break}if(B===!0){te=z;break}}return te===t&&E!==t&&(te=E),te},a=function j(E){for(var D=this.internal.write,U=this.internal.putStream,H=(0,this.internal.getFilters)();H.indexOf("FlateEncode")!==-1;)H.splice(H.indexOf("FlateEncode"),1);E.objectId=this.internal.newObject();var B=[];if(B.push({key:"Type",value:"/XObject"}),B.push({key:"Subtype",value:"/Image"}),B.push({key:"Width",value:E.width}),B.push({key:"Height",value:E.height}),E.colorSpace===m.INDEXED?B.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(E.palette.length/3-1)+" "+("sMask"in E&&E.sMask!==void 0?E.objectId+2:E.objectId+1)+" 0 R]"}):(B.push({key:"ColorSpace",value:"/"+E.colorSpace}),E.colorSpace===m.DEVICE_CMYK&&B.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),B.push({key:"BitsPerComponent",value:E.bitsPerComponent}),"decodeParameters"in E&&E.decodeParameters!==void 0&&B.push({key:"DecodeParms",value:"<<"+E.decodeParameters+">>"}),"transparency"in E&&Array.isArray(E.transparency)){for(var z="",te=0,Z=E.transparency.length;te<Z;te++)z+=E.transparency[te]+" "+E.transparency[te]+" ";B.push({key:"Mask",value:"["+z+"]"})}E.sMask!==void 0&&B.push({key:"SMask",value:E.objectId+1+" 0 R"});var ee=E.filter!==void 0?["/"+E.filter]:void 0;if(U({data:E.data,additionalKeyValues:B,alreadyAppliedFilters:ee,objectId:E.objectId}),D("endobj"),"sMask"in E&&E.sMask!==void 0){var ce="/Predictor "+E.predictor+" /Colors 1 /BitsPerComponent "+E.bitsPerComponent+" /Columns "+E.width,P={width:E.width,height:E.height,colorSpace:"DeviceGray",bitsPerComponent:E.bitsPerComponent,decodeParameters:ce,data:E.sMask};"filter"in E&&(P.filter=E.filter),j.call(this,P)}if(E.colorSpace===m.INDEXED){var I=this.internal.newObject();U({data:C(new Uint8Array(E.palette)),objectId:I}),D("endobj")}},i=function(){var j=this.internal.collections.addImage_images;for(var E in j)a.call(this,j[E])},o=function(){var j,E=this.internal.collections.addImage_images,D=this.internal.write;for(var U in E)D("/I"+(j=E[U]).index,j.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",o))},l=function(){var j=this.internal.collections.addImage_images;return s.call(this),j},c=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(j){return typeof e["process"+j.toUpperCase()]=="function"},f=function(j){return cr(j)==="object"&&j.nodeType===1},d=function(j,E){if(j.nodeName==="IMG"&&j.hasAttribute("src")){var D=""+j.getAttribute("src");if(D.indexOf("data:image/")===0)return Vu(unescape(D).split("base64,").pop());var U=e.loadFile(D,!0);if(U!==void 0)return U}if(j.nodeName==="CANVAS"){if(j.width===0||j.height===0)throw new Error("Given canvas must have data. Canvas width: "+j.width+", height: "+j.height);var H;switch(E){case"PNG":H="image/png";break;case"WEBP":H="image/webp";break;case"JPEG":case"JPG":default:H="image/jpeg"}return Vu(j.toDataURL(H,1).split("base64,").pop())}},h=function(j){var E=this.internal.collections.addImage_images;if(E){for(var D in E)if(j===E[D].alias)return E[D]}},x=function(j,E,D){return j||E||(j=-96,E=-96),j<0&&(j=-1*D.width*72/j/this.internal.scaleFactor),E<0&&(E=-1*D.height*72/E/this.internal.scaleFactor),j===0&&(j=E*D.width/D.height),E===0&&(E=j*D.height/D.width),[j,E]},p=function(j,E,D,U,H,B){var z=x.call(this,D,U,H),te=this.internal.getCoordinateString,Z=this.internal.getVerticalCoordinateString,ee=l.call(this);if(D=z[0],U=z[1],ee[H.index]=H,B){B*=Math.PI/180;var ce=Math.cos(B),P=Math.sin(B),I=function(q){return q.toFixed(4)},M=[I(ce),I(P),I(-1*P),I(ce),0,0,"cm"]}this.internal.write("q"),B?(this.internal.write([1,"0","0",1,te(j),Z(E+U),"cm"].join(" ")),this.internal.write(M.join(" ")),this.internal.write([te(D),"0","0",te(U),"0","0","cm"].join(" "))):this.internal.write([te(D),"0","0",te(U),te(j),Z(E+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+H.index+" Do"),this.internal.write("Q")},m=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},b=e.__addimage__.sHashCode=function(j){var E,D,U=0;if(typeof j=="string")for(D=j.length,E=0;E<D;E++)U=(U<<5)-U+j.charCodeAt(E),U|=0;else if(O(j))for(D=j.byteLength/2,E=0;E<D;E++)U=(U<<5)-U+j[E],U|=0;return U},w=e.__addimage__.validateStringAsBase64=function(j){(j=j||"").toString().trim();var E=!0;return j.length===0&&(E=!1),j.length%4!=0&&(E=!1),/^[A-Za-z0-9+/]+$/.test(j.substr(0,j.length-2))===!1&&(E=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(j.substr(-2))===!1&&(E=!1),E},S=e.__addimage__.extractImageFromDataUrl=function(j){var E=(j=j||"").split("base64,"),D=null;if(E.length===2){var U=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(E[0]);Array.isArray(U)&&(D={mimeType:U[1],charset:U[2],data:E[1]})}return D},A=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(j){return A()&&j instanceof ArrayBuffer};var O=e.__addimage__.isArrayBufferView=function(j){return A()&&typeof Uint32Array<"u"&&(j instanceof Int8Array||j instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&j instanceof Uint8ClampedArray||j instanceof Int16Array||j instanceof Uint16Array||j instanceof Int32Array||j instanceof Uint32Array||j instanceof Float32Array||j instanceof Float64Array)},N=e.__addimage__.binaryStringToUint8Array=function(j){for(var E=j.length,D=new Uint8Array(E),U=0;U<E;U++)D[U]=j.charCodeAt(U);return D},C=e.__addimage__.arrayBufferToBinaryString=function(j){for(var E="",D=O(j)?j:new Uint8Array(j),U=0;U<D.length;U+=8192)E+=String.fromCharCode.apply(null,D.subarray(U,U+8192));return E};e.addImage=function(){var j,E,D,U,H,B,z,te,Z;if(typeof arguments[1]=="number"?(E=t,D=arguments[1],U=arguments[2],H=arguments[3],B=arguments[4],z=arguments[5],te=arguments[6],Z=arguments[7]):(E=arguments[1],D=arguments[2],U=arguments[3],H=arguments[4],B=arguments[5],z=arguments[6],te=arguments[7],Z=arguments[8]),cr(j=arguments[0])==="object"&&!f(j)&&"imageData"in j){var ee=j;j=ee.imageData,E=ee.format||E||t,D=ee.x||D||0,U=ee.y||U||0,H=ee.w||ee.width||H,B=ee.h||ee.height||B,z=ee.alias||z,te=ee.compression||te,Z=ee.rotation||ee.angle||Z}var ce=this.internal.getFilters();if(te===void 0&&ce.indexOf("FlateEncode")!==-1&&(te="SLOW"),isNaN(D)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var P=L.call(this,j,E,z,te);return p.call(this,D,U,H,B,P,Z),this};var L=function(j,E,D,U){var H,B,z;if(typeof j=="string"&&n(j)===t){j=unescape(j);var te=R(j,!1);(te!==""||(te=e.loadFile(j,!0))!==void 0)&&(j=te)}if(f(j)&&(j=d(j,E)),E=n(j,E),!u(E))throw new Error("addImage does not support files of type '"+E+"', please ensure that a plugin for '"+E+"' support is added.");if(((z=D)==null||z.length===0)&&(D=(function(Z){return typeof Z=="string"||O(Z)?b(Z):O(Z.data)?b(Z.data):null})(j)),(H=h.call(this,D))||(A()&&(j instanceof Uint8Array||E==="RGBA"||(B=j,j=N(j))),H=this["process"+E.toUpperCase()](j,c.call(this),D,(function(Z){return Z&&typeof Z=="string"&&(Z=Z.toUpperCase()),Z in e.image_compression?Z:y.NONE})(U),B)),!H)throw new Error("An unknown error occurred whilst processing the image.");return H},R=e.__addimage__.convertBase64ToBinaryString=function(j,E){var D;E=typeof E!="boolean"||E;var U,H="";if(typeof j=="string"){U=(D=S(j))!==null?D.data:j;try{H=Vu(U)}catch(B){if(E)throw w(U)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+B.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return H};e.getImageProperties=function(j){var E,D,U="";if(f(j)&&(j=d(j)),typeof j=="string"&&n(j)===t&&((U=R(j,!1))===""&&(U=e.loadFile(j)||""),j=U),D=n(j),!u(D))throw new Error("addImage does not support files of type '"+D+"', please ensure that a plugin for '"+D+"' support is added.");if(!A()||j instanceof Uint8Array||(j=N(j)),!(E=this["process"+D.toUpperCase()](j)))throw new Error("An unknown error occurred whilst processing the image");return E.fileType=D,E}})(yt.API),(function(e){var t=function(r){if(r!==void 0&&r!="")return!0};yt.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(r){for(var n,a,i,o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(r.objId),c=r.pageContext.annotations,u=!1,f=0;f<c.length&&!u;f++)switch((n=c[f]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var d=0;d<c.length;d++){n=c[d];var h=this.internal.pdfEscape,x=this.internal.getEncryptor(r.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),m=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(p.objId),b=n.title||"Note";i="<</Type /Annot /Subtype /Text "+(a="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+h(y(n.contents))+")",i+=" /Popup "+m.objId+" 0 R",i+=" /P "+l.objId+" 0 R",i+=" /T ("+h(y(b))+") >>",p.content=i;var w=p.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+o(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+w,n.open&&(i+=" /Open true"),i+=" >>",m.content=i,this.internal.write(p.objId,"0 R",m.objId,"0 R");break;case"freetext":a="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var S=n.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+h(x(n.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+S+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(n.options.name){var A=this.annotations._nameMap[n.options.name];n.options.pageNumber=A.page,n.options.top=A.y}else n.options.top||(n.options.top=0);if(a="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",i="",n.options.url)i="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+h(x(n.options.url))+") >>";else if(n.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,i+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var O=s(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),i+=" /XYZ "+n.options.left+" "+O+" "+n.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),e.createAnnotation=function(r){var n=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":n.pageContext.annotations.push(r)}},e.link=function(r,n,a,i,o){var s=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(r),y:c(n),w:l(r+a),h:c(n+i)},options:o,type:"link"})},e.textWithLink=function(r,n,a,i){var o,s,l=this.getTextWidth(r),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){s=i.maxWidth;var u=this.splitTextToSize(r,s).length;o=Math.ceil(c*u)}else s=l,o=c;return this.text(r,n,a,i),a+=.2*c,i.align==="center"&&(n-=l/2),i.align==="right"&&(n-=l),this.link(n,a-c,s,o,i),l},e.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}})(yt.API),(function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(p){return t[p.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(p){return typeof p=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(p)},s=e.__arabicParser__.isArabicEndLetter=function(p){return o(p)&&i(p)&&t[p.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(p){return o(p)&&a.indexOf(p.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(p){return o(p)&&i(p)&&t[p.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(p){return o(p)&&i(p)&&t[p.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(p){return o(p)&&i(p)&&t[p.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(p){return o(p)&&i(p)&&t[p.charCodeAt(0)].length==4},f=e.__arabicParser__.resolveLigatures=function(p){var m=0,y=r,b="",w=0;for(m=0;m<p.length;m+=1)y[p.charCodeAt(m)]!==void 0?(w++,typeof(y=y[p.charCodeAt(m)])=="number"&&(b+=String.fromCharCode(y),y=r,w=0),m===p.length-1&&(y=r,b+=p.charAt(m-(w-1)),m-=w-1,w=0)):(y=r,b+=p.charAt(m-w),m-=w,w=0);return b};e.__arabicParser__.isArabicDiacritic=function(p){return p!==void 0&&n[p.charCodeAt(0)]!==void 0};var d=e.__arabicParser__.getCorrectForm=function(p,m,y){return o(p)?i(p)===!1?-1:!c(p)||!o(m)&&!o(y)||!o(y)&&s(m)||s(p)&&!o(m)||s(p)&&l(m)||s(p)&&s(m)?0:u(p)&&o(m)&&!s(m)&&o(y)&&c(y)?3:s(p)||!o(y)?1:2:-1},h=function(p){var m=0,y=0,b=0,w="",S="",A="",O=(p=p||"").split("\\s+"),N=[];for(m=0;m<O.length;m+=1){for(N.push(""),y=0;y<O[m].length;y+=1)w=O[m][y],S=O[m][y-1],A=O[m][y+1],o(w)?(b=d(w,S,A),N[m]+=b!==-1?String.fromCharCode(t[w.charCodeAt(0)][b]):w):N[m]+=w;N[m]=f(N[m])}return N.join(" ")},x=e.__arabicParser__.processArabic=e.processArabic=function(){var p,m=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(m)){var b=0;for(y=[],b=0;b<m.length;b+=1)Array.isArray(m[b])?y.push([h(m[b][0]),m[b][1],m[b][2]]):y.push([h(m[b])]);p=y}else p=h(m);return typeof arguments[0]=="string"?p:(arguments[0].text=p,arguments[0])};e.events.push(["preProcessText",x])})(yt.API),yt.API.autoPrint=function(e){var t;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this},(function(e){var t=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(s){r=s}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var a=300;Object.defineProperty(this,"height",{get:function(){return a},set:function(s){a=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(s){i=s}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(s){o=s}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(r,n){var a;if((r=r||"2d")!=="2d")return null;for(a in n)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=n[a]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(yt.API),(function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(p){l=p}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(p){c=p}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(p){u=p}});var f=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return f},set:function(p){f=p}});var d=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return d},set:function(p){d=p}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(p){h=p}});var x=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return x},set:function(p){x=p}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return n.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,c){n.call(this);var u=(c=c||{}).fontSize||this.getFontSize(),f=c.font||this.getFont(),d=c.scaleFactor||this.internal.scaleFactor,h=0,x=0,p=0,m=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var y=c.maxWidth;y>0?typeof l=="string"?l=this.splitTextToSize(l,y):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce((function(w,S){return w.concat(m.splitTextToSize(S,y))}),[])):l=Array.isArray(l)?l:[l];for(var b=0;b<l.length;b++)h<(p=this.getStringUnitWidth(l[b],{font:f})*u)&&(h=p);return h!==0&&(x=l.length),{w:h/=d,h:Math.max((x*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/d,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new i(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=e.cell=function(){var l;l=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var c=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,f=this.internal.__cell__.margins||t,d=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+f.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=f.top,h&&d&&(this.printHeaderRow(l.lineNumber,!0),l.y+=d[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,r===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-u,l.y+u,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+u,{align:"center",baseline:"top",maxWidth:l.width-u-u}):this.text(l.text,l.x+u,l.y+u,{align:"left",baseline:"top",maxWidth:l.width-u-u})),this.internal.__cell__.lastCell=l,this};e.table=function(l,c,u,f,d){if(n.call(this),!u)throw new Error("No data for PDF table.");var h,x,p,m,y=[],b=[],w=[],S={},A={},O=[],N=[],C=(d=d||{}).autoSize||!1,L=d.printHeaders!==!1,R=d.css&&d.css["font-size"]!==void 0?16*d.css["font-size"]:d.fontSize||12,j=d.margins||Object.assign({width:this.getPageWidth()},t),E=typeof d.padding=="number"?d.padding:3,D=d.headerBackgroundColor||"#c8c8c8",U=d.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=L,this.internal.__cell__.margins=j,this.internal.__cell__.table_font_size=R,this.internal.__cell__.padding=E,this.internal.__cell__.headerBackgroundColor=D,this.internal.__cell__.headerTextColor=U,this.setFontSize(R),f==null)b=y=Object.keys(u[0]),w=y.map((function(){return"left"}));else if(Array.isArray(f)&&cr(f[0])==="object")for(y=f.map((function(ee){return ee.name})),b=f.map((function(ee){return ee.prompt||ee.name||""})),w=f.map((function(ee){return ee.align||"left"})),h=0;h<f.length;h+=1)A[f[h].name]=f[h].width*(19.049976/25.4);else Array.isArray(f)&&typeof f[0]=="string"&&(b=y=f,w=y.map((function(){return"left"})));if(C||Array.isArray(f)&&typeof f[0]=="string")for(h=0;h<y.length;h+=1){for(S[m=y[h]]=u.map((function(ee){return ee[m]})),this.setFont(void 0,"bold"),O.push(this.getTextDimensions(b[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),x=S[m],this.setFont(void 0,"normal"),p=0;p<x.length;p+=1)O.push(this.getTextDimensions(x[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);A[m]=Math.max.apply(null,O)+E+E,O=[]}if(L){var H={};for(h=0;h<y.length;h+=1)H[y[h]]={},H[y[h]].text=b[h],H[y[h]].align=w[h];var B=s.call(this,H,A);N=y.map((function(ee){return new i(l,c,A[ee],B,H[ee].text,void 0,H[ee].align)})),this.setTableHeaderRow(N),this.printHeaderRow(1,!1)}var z=f.reduce((function(ee,ce){return ee[ce.name]=ce.align,ee}),{});for(h=0;h<u.length;h+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:h,data:u[h]},this);var te=s.call(this,u[h],A);for(p=0;p<y.length;p+=1){var Z=u[h][y[p]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:h,col:p,data:Z},this),o.call(this,new i(l,c,A[y[p]],te,Z,h+2,z[y[p]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var s=function(l,c){var u=this.internal.__cell__.padding,f=this.internal.__cell__.table_font_size,d=this.internal.scaleFactor;return Object.keys(l).map((function(h){var x=l[h];return this.splitTextToSize(x.hasOwnProperty("text")?x.text:x,c[h]-u-u)}),this).map((function(h){return this.getLineHeightFactor()*h.length*f/d+u+u}),this).reduce((function(h,x){return Math.max(h,x)}),0)};e.setTableHeaderRow=function(l){n.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,c){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var f=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(f[0],f[1],f[2],f[3],void 0,-1)}this.setFont(void 0,"bold");for(var d=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){u=this.internal.__cell__.tableHeaderRow[h].clone(),c&&(u.y=this.internal.__cell__.margins.top||0,d.push(u)),u.lineNumber=l;var x=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,u),this.setTextColor(x)}d.length>0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),r=!1}})(yt.API);var YE={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},KE=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],vy=VE(KE),XE=[100,200,300,400,500,600,700,800,900],oL=VE(XE);function gy(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=(function(i){return YE[i=i||"normal"]?i:"normal"})(e.style),n=(function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}})(e.weight),a=(function(i){return typeof vy[i=i||"normal"]=="number"?i:"normal"})(e.stretch);return{family:t,style:r,weight:n,stretch:a,src:e.src||[],ref:e.ref||{name:t,style:[a,r,n].join(" ")}}}function uw(e,t,r,n){var a;for(a=r;a>=0&&a<t.length;a+=n)if(e[t[a]])return e[t[a]];for(a=r;a>=0&&a<t.length;a-=n)if(e[t[a]])return e[t[a]]}var sL={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},fw={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function hw(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function lL(e,t,r){for(var n=(r=r||{}).defaultFontFamily||"times",a=Object.assign({},sL,r.genericFontFamilies||{}),i=null,o=null,s=0;s<t.length;++s)if(a[(i=gy(t[s])).family]&&(i.family=a[i.family]),e.hasOwnProperty(i.family)){o=e[i.family];break}if(!(o=o||e[n]))throw new Error("Could not find a font-family for the rule '"+hw(i)+"' and default family '"+n+"'.");if(o=(function(l,c){if(c[l])return c[l];var u=vy[l],f=u<=vy.normal?-1:1,d=uw(c,KE,u,f);if(!d)throw new Error("Could not find a matching font-stretch value for "+l);return d})(i.stretch,o),o=(function(l,c){if(c[l])return c[l];for(var u=YE[l],f=0;f<u.length;++f)if(c[u[f]])return c[u[f]];throw new Error("Could not find a matching font-style for "+l)})(i.style,o),!(o=(function(l,c){if(c[l])return c[l];if(l===400&&c[500])return c[500];if(l===500&&c[400])return c[400];var u=oL[l],f=uw(c,XE,u,l<400?-1:1);if(!f)throw new Error("Could not find a matching font-weight for value "+l);return f})(i.weight,o)))throw new Error("Failed to resolve a font for the rule '"+hw(i)+"'.");return o}function dw(e){return e.trimLeft()}function cL(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function uL(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var dh,pw,mw,$1=["times"];(function(e){var t,r,n,a,i,o,s,l,c,u=function(P){return P=P||{},this.isStrokeTransparent=P.isStrokeTransparent||!1,this.strokeOpacity=P.strokeOpacity||1,this.strokeStyle=P.strokeStyle||"#000000",this.fillStyle=P.fillStyle||"#000000",this.isFillTransparent=P.isFillTransparent||!1,this.fillOpacity=P.fillOpacity||1,this.font=P.font||"10px sans-serif",this.textBaseline=P.textBaseline||"alphabetic",this.textAlign=P.textAlign||"left",this.lineWidth=P.lineWidth||1,this.lineJoin=P.lineJoin||"miter",this.lineCap=P.lineCap||"butt",this.path=P.path||[],this.transform=P.transform!==void 0?P.transform.clone():new l,this.globalCompositeOperation=P.globalCompositeOperation||"normal",this.globalAlpha=P.globalAlpha||1,this.clip_path=P.clip_path||[],this.currentPoint=P.currentPoint||new o,this.miterLimit=P.miterLimit||10,this.lastPoint=P.lastPoint||new o,this.lineDashOffset=P.lineDashOffset||0,this.lineDash=P.lineDash||[],this.margin=P.margin||[0,0,0,0],this.prevPageLastElemOffset=P.prevPageLastElemOffset||0,this.ignoreClearRect=typeof P.ignoreClearRect!="boolean"||P.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new f(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,l=this.internal.Matrix,c=new u}]);var f=function(P){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var I=P;Object.defineProperty(this,"pdf",{get:function(){return I}});var M=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return M},set:function(Ae){M=!!Ae}});var q=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return q},set:function(Ae){q=!!Ae}});var Y=0;Object.defineProperty(this,"posX",{get:function(){return Y},set:function(Ae){isNaN(Ae)||(Y=Ae)}});var fe=0;Object.defineProperty(this,"posY",{get:function(){return fe},set:function(Ae){isNaN(Ae)||(fe=Ae)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(Ae){var le;typeof Ae=="number"?le=[Ae,Ae,Ae,Ae]:((le=new Array(4))[0]=Ae[0],le[1]=Ae.length>=2?Ae[1]:le[0],le[2]=Ae.length>=3?Ae[2]:le[0],le[3]=Ae.length>=4?Ae[3]:le[1]),c.margin=le}});var ne=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ne},set:function(Ae){ne=Ae}});var K=0;Object.defineProperty(this,"lastBreak",{get:function(){return K},set:function(Ae){K=Ae}});var he=[];Object.defineProperty(this,"pageBreaks",{get:function(){return he},set:function(Ae){he=Ae}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(Ae){Ae instanceof u&&(c=Ae)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(Ae){c.path=Ae}});var be=[];Object.defineProperty(this,"ctxStack",{get:function(){return be},set:function(Ae){be=Ae}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ae){var le;le=d(Ae),this.ctx.fillStyle=le.style,this.ctx.isFillTransparent=le.a===0,this.ctx.fillOpacity=le.a,this.pdf.setFillColor(le.r,le.g,le.b,{a:le.a}),this.pdf.setTextColor(le.r,le.g,le.b,{a:le.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ae){var le=d(Ae);this.ctx.strokeStyle=le.style,this.ctx.isStrokeTransparent=le.a===0,this.ctx.strokeOpacity=le.a,le.a===0?this.pdf.setDrawColor(255,255,255):(le.a,this.pdf.setDrawColor(le.r,le.g,le.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Ae){["butt","round","square"].indexOf(Ae)!==-1&&(this.ctx.lineCap=Ae,this.pdf.setLineCap(Ae))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ae){isNaN(Ae)||(this.ctx.lineWidth=Ae,this.pdf.setLineWidth(Ae))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ae){["bevel","round","miter"].indexOf(Ae)!==-1&&(this.ctx.lineJoin=Ae,this.pdf.setLineJoin(Ae))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ae){isNaN(Ae)||(this.ctx.miterLimit=Ae,this.pdf.setMiterLimit(Ae))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ae){this.ctx.textBaseline=Ae}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ae){["right","end","center","left","start"].indexOf(Ae)!==-1&&(this.ctx.textAlign=Ae)}});var se=null;function Le(Ae,le){if(se===null){var De=(function(Qe){var Ue=[];return Object.keys(Qe).forEach((function(Ke){Qe[Ke].forEach((function(Ze){var Je=null;switch(Ze){case"bold":Je={family:Ke,weight:"bold"};break;case"italic":Je={family:Ke,style:"italic"};break;case"bolditalic":Je={family:Ke,weight:"bold",style:"italic"};break;case"":case"normal":Je={family:Ke}}Je!==null&&(Je.ref={name:Ke,style:Ze},Ue.push(Je))}))})),Ue})(Ae.getFontList());se=(function(Qe){for(var Ue={},Ke=0;Ke<Qe.length;++Ke){var Ze=gy(Qe[Ke]),Je=Ze.family,dt=Ze.stretch,vt=Ze.style,wt=Ze.weight;Ue[Je]=Ue[Je]||{},Ue[Je][dt]=Ue[Je][dt]||{},Ue[Je][dt][vt]=Ue[Je][dt][vt]||{},Ue[Je][dt][vt][wt]=Ze}return Ue})(De.concat(le))}return se}var Se=null;Object.defineProperty(this,"fontFaces",{get:function(){return Se},set:function(Ae){se=null,Se=Ae}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ae){var le;if(this.ctx.font=Ae,(le=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Ae))!==null){var De=le[1],Qe=(le[2],le[3]),Ue=le[4],Ke=(le[5],le[6]),Ze=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ue)[2];Ue=Math.floor(Ze==="px"?parseFloat(Ue)*this.pdf.internal.scaleFactor:Ze==="em"?parseFloat(Ue)*this.pdf.getFontSize():parseFloat(Ue)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ue);var Je=(function(_t){var Ft,it,Dr=[],zt=_t.trim();if(zt==="")return $1;if(zt in fw)return[fw[zt]];for(;zt!=="";){switch(it=null,Ft=(zt=dw(zt)).charAt(0)){case'"':case"'":it=cL(zt.substring(1),Ft);break;default:it=uL(zt)}if(it===null||(Dr.push(it[0]),(zt=dw(it[1]))!==""&&zt.charAt(0)!==","))return $1;zt=zt.replace(/^,/,"")}return Dr})(Ke);if(this.fontFaces){var dt=lL(Le(this.pdf,this.fontFaces),Je.map((function(_t){return{family:_t,stretch:"normal",weight:Qe,style:De}})));this.pdf.setFont(dt.ref.name,dt.ref.style)}else{var vt="";(Qe==="bold"||parseInt(Qe,10)>=700||De==="bold")&&(vt="bold"),De==="italic"&&(vt+="italic"),vt.length===0&&(vt="normal");for(var wt="",Pt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},It=0;It<Je.length;It++){if(this.pdf.internal.getFont(Je[It],vt,{noFallback:!0,disableWarning:!0})!==void 0){wt=Je[It];break}if(vt==="bolditalic"&&this.pdf.internal.getFont(Je[It],"bold",{noFallback:!0,disableWarning:!0})!==void 0)wt=Je[It],vt="bold";else if(this.pdf.internal.getFont(Je[It],"normal",{noFallback:!0,disableWarning:!0})!==void 0){wt=Je[It],vt="normal";break}}if(wt===""){for(var Ut=0;Ut<Je.length;Ut++)if(Pt[Je[Ut]]){wt=Pt[Je[Ut]];break}}wt=wt===""?"Times":wt,this.pdf.setFont(wt,vt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ae){this.ctx.globalCompositeOperation=Ae}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ae){this.ctx.globalAlpha=Ae}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ae){this.ctx.lineDashOffset=Ae,ce.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ae){this.ctx.lineDash=Ae,ce.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ae){this.ctx.ignoreClearRect=!!Ae}})};f.prototype.setLineDash=function(P){this.lineDash=P},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){S.call(this,"fill",!1)},f.prototype.stroke=function(){S.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(P,I){if(isNaN(P)||isNaN(I))throw Ar.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var M=this.ctx.transform.applyToPoint(new o(P,I));this.path.push({type:"mt",x:M.x,y:M.y}),this.ctx.lastPoint=new o(P,I)},f.prototype.closePath=function(){var P=new o(0,0),I=0;for(I=this.path.length-1;I!==-1;I--)if(this.path[I].type==="begin"&&cr(this.path[I+1])==="object"&&typeof this.path[I+1].x=="number"){P=new o(this.path[I+1].x,this.path[I+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(P.x,P.y)},f.prototype.lineTo=function(P,I){if(isNaN(P)||isNaN(I))throw Ar.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var M=this.ctx.transform.applyToPoint(new o(P,I));this.path.push({type:"lt",x:M.x,y:M.y}),this.ctx.lastPoint=new o(M.x,M.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),S.call(this,null,!0)},f.prototype.quadraticCurveTo=function(P,I,M,q){if(isNaN(M)||isNaN(q)||isNaN(P)||isNaN(I))throw Ar.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Y=this.ctx.transform.applyToPoint(new o(M,q)),fe=this.ctx.transform.applyToPoint(new o(P,I));this.path.push({type:"qct",x1:fe.x,y1:fe.y,x:Y.x,y:Y.y}),this.ctx.lastPoint=new o(Y.x,Y.y)},f.prototype.bezierCurveTo=function(P,I,M,q,Y,fe){if(isNaN(Y)||isNaN(fe)||isNaN(P)||isNaN(I)||isNaN(M)||isNaN(q))throw Ar.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ne=this.ctx.transform.applyToPoint(new o(Y,fe)),K=this.ctx.transform.applyToPoint(new o(P,I)),he=this.ctx.transform.applyToPoint(new o(M,q));this.path.push({type:"bct",x1:K.x,y1:K.y,x2:he.x,y2:he.y,x:ne.x,y:ne.y}),this.ctx.lastPoint=new o(ne.x,ne.y)},f.prototype.arc=function(P,I,M,q,Y,fe){if(isNaN(P)||isNaN(I)||isNaN(M)||isNaN(q)||isNaN(Y))throw Ar.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(fe=!!fe,!this.ctx.transform.isIdentity){var ne=this.ctx.transform.applyToPoint(new o(P,I));P=ne.x,I=ne.y;var K=this.ctx.transform.applyToPoint(new o(0,M)),he=this.ctx.transform.applyToPoint(new o(0,0));M=Math.sqrt(Math.pow(K.x-he.x,2)+Math.pow(K.y-he.y,2))}Math.abs(Y-q)>=2*Math.PI&&(q=0,Y=2*Math.PI),this.path.push({type:"arc",x:P,y:I,radius:M,startAngle:q,endAngle:Y,counterclockwise:fe})},f.prototype.arcTo=function(P,I,M,q,Y){throw new Error("arcTo not implemented.")},f.prototype.rect=function(P,I,M,q){if(isNaN(P)||isNaN(I)||isNaN(M)||isNaN(q))throw Ar.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(P,I),this.lineTo(P+M,I),this.lineTo(P+M,I+q),this.lineTo(P,I+q),this.lineTo(P,I),this.lineTo(P+M,I),this.lineTo(P,I)},f.prototype.fillRect=function(P,I,M,q){if(isNaN(P)||isNaN(I)||isNaN(M)||isNaN(q))throw Ar.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var Y={};this.lineCap!=="butt"&&(Y.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Y.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(P,I,M,q),this.fill(),Y.hasOwnProperty("lineCap")&&(this.lineCap=Y.lineCap),Y.hasOwnProperty("lineJoin")&&(this.lineJoin=Y.lineJoin)}},f.prototype.strokeRect=function(P,I,M,q){if(isNaN(P)||isNaN(I)||isNaN(M)||isNaN(q))throw Ar.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");x.call(this)||(this.beginPath(),this.rect(P,I,M,q),this.stroke())},f.prototype.clearRect=function(P,I,M,q){if(isNaN(P)||isNaN(I)||isNaN(M)||isNaN(q))throw Ar.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(P,I,M,q))},f.prototype.save=function(P){P=typeof P!="boolean"||P;for(var I=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("q");if(this.pdf.setPage(I),P){this.ctx.fontSize=this.pdf.internal.getFontSize();var q=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=q}},f.prototype.restore=function(P){P=typeof P!="boolean"||P;for(var I=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("Q");this.pdf.setPage(I),P&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(P){var I,M,q,Y;if(P.isCanvasGradient===!0&&(P=P.getColor()),!P)return{r:0,g:0,b:0,a:0,style:P};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(P))I=0,M=0,q=0,Y=0;else{var fe=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(P);if(fe!==null)I=parseInt(fe[1]),M=parseInt(fe[2]),q=parseInt(fe[3]),Y=1;else if((fe=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(P))!==null)I=parseInt(fe[1]),M=parseInt(fe[2]),q=parseInt(fe[3]),Y=parseFloat(fe[4]);else{if(Y=1,typeof P=="string"&&P.charAt(0)!=="#"){var ne=new qE(P);P=ne.ok?ne.toHex():"#000000"}P.length===4?(I=P.substring(1,2),I+=I,M=P.substring(2,3),M+=M,q=P.substring(3,4),q+=q):(I=P.substring(1,3),M=P.substring(3,5),q=P.substring(5,7)),I=parseInt(I,16),M=parseInt(M,16),q=parseInt(q,16)}}return{r:I,g:M,b:q,a:Y,style:P}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},x=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};f.prototype.fillText=function(P,I,M,q){if(isNaN(I)||isNaN(M)||typeof P!="string")throw Ar.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(q=isNaN(q)?void 0:q,!h.call(this)){var Y=te(this.ctx.transform.rotation),fe=this.ctx.transform.scaleX;E.call(this,{text:P,x:I,y:M,scale:fe,angle:Y,align:this.textAlign,maxWidth:q})}},f.prototype.strokeText=function(P,I,M,q){if(isNaN(I)||isNaN(M)||typeof P!="string")throw Ar.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!x.call(this)){q=isNaN(q)?void 0:q;var Y=te(this.ctx.transform.rotation),fe=this.ctx.transform.scaleX;E.call(this,{text:P,x:I,y:M,scale:fe,renderingMode:"stroke",angle:Y,align:this.textAlign,maxWidth:q})}},f.prototype.measureText=function(P){if(typeof P!="string")throw Ar.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var I=this.pdf,M=this.pdf.internal.scaleFactor,q=I.internal.getFontSize(),Y=I.getStringUnitWidth(P)*q/I.internal.scaleFactor,fe=function(ne){var K=(ne=ne||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return K}}),this};return new fe({width:Y*=Math.round(96*M/72*1e4)/1e4})},f.prototype.scale=function(P,I){if(isNaN(P)||isNaN(I))throw Ar.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var M=new l(P,0,0,I,0,0);this.ctx.transform=this.ctx.transform.multiply(M)},f.prototype.rotate=function(P){if(isNaN(P))throw Ar.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var I=new l(Math.cos(P),Math.sin(P),-Math.sin(P),Math.cos(P),0,0);this.ctx.transform=this.ctx.transform.multiply(I)},f.prototype.translate=function(P,I){if(isNaN(P)||isNaN(I))throw Ar.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var M=new l(1,0,0,1,P,I);this.ctx.transform=this.ctx.transform.multiply(M)},f.prototype.transform=function(P,I,M,q,Y,fe){if(isNaN(P)||isNaN(I)||isNaN(M)||isNaN(q)||isNaN(Y)||isNaN(fe))throw Ar.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ne=new l(P,I,M,q,Y,fe);this.ctx.transform=this.ctx.transform.multiply(ne)},f.prototype.setTransform=function(P,I,M,q,Y,fe){P=isNaN(P)?1:P,I=isNaN(I)?0:I,M=isNaN(M)?0:M,q=isNaN(q)?1:q,Y=isNaN(Y)?0:Y,fe=isNaN(fe)?0:fe,this.ctx.transform=new l(P,I,M,q,Y,fe)};var p=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(P,I,M,q,Y,fe,ne,K,he){var be=this.pdf.getImageProperties(P),se=1,Le=1,Se=1,Ae=1;q!==void 0&&K!==void 0&&(Se=K/q,Ae=he/Y,se=be.width/q*K/q,Le=be.height/Y*he/Y),fe===void 0&&(fe=I,ne=M,I=0,M=0),q!==void 0&&K===void 0&&(K=q,he=Y),q===void 0&&K===void 0&&(K=be.width,he=be.height);for(var le,De=this.ctx.transform.decompose(),Qe=te(De.rotate.shx),Ue=new l,Ke=(Ue=(Ue=(Ue=Ue.multiply(De.translate)).multiply(De.skew)).multiply(De.scale)).applyToRectangle(new s(fe-I*Se,ne-M*Ae,q*se,Y*Le)),Ze=m.call(this,Ke),Je=[],dt=0;dt<Ze.length;dt+=1)Je.indexOf(Ze[dt])===-1&&Je.push(Ze[dt]);if(w(Je),this.autoPaging)for(var vt=Je[0],wt=Je[Je.length-1],Pt=vt;Pt<wt+1;Pt++){this.pdf.setPage(Pt);var It=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ut=Pt===1?this.posY+this.margin[0]:this.margin[0],_t=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ft=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],it=Pt===1?0:_t+(Pt-2)*Ft;if(this.ctx.clip_path.length!==0){var Dr=this.path;le=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(le,this.posX+this.margin[3],-it+Ut+this.ctx.prevPageLastElemOffset),A.call(this,"fill",!0),this.path=Dr}var zt=JSON.parse(JSON.stringify(Ke));zt=b([zt],this.posX+this.margin[3],-it+Ut+this.ctx.prevPageLastElemOffset)[0];var An=(Pt>vt||Pt<wt)&&p.call(this);An&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],It,Ft,null).clip().discardPath()),this.pdf.addImage(P,"JPEG",zt.x,zt.y,zt.w,zt.h,null,null,Qe),An&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(P,"JPEG",Ke.x,Ke.y,Ke.w,Ke.h,null,null,Qe)};var m=function(P,I,M){var q=[];I=I||this.pdf.internal.pageSize.width,M=M||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Y=this.posY+this.ctx.prevPageLastElemOffset;switch(P.type){default:case"mt":case"lt":q.push(Math.floor((P.y+Y)/M)+1);break;case"arc":q.push(Math.floor((P.y+Y-P.radius)/M)+1),q.push(Math.floor((P.y+Y+P.radius)/M)+1);break;case"qct":var fe=Z(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x,P.y);q.push(Math.floor((fe.y+Y)/M)+1),q.push(Math.floor((fe.y+fe.h+Y)/M)+1);break;case"bct":var ne=ee(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x2,P.y2,P.x,P.y);q.push(Math.floor((ne.y+Y)/M)+1),q.push(Math.floor((ne.y+ne.h+Y)/M)+1);break;case"rect":q.push(Math.floor((P.y+Y)/M)+1),q.push(Math.floor((P.y+P.h+Y)/M)+1)}for(var K=0;K<q.length;K+=1)for(;this.pdf.internal.getNumberOfPages()<q[K];)y.call(this);return q},y=function(){var P=this.fillStyle,I=this.strokeStyle,M=this.font,q=this.lineCap,Y=this.lineWidth,fe=this.lineJoin;this.pdf.addPage(),this.fillStyle=P,this.strokeStyle=I,this.font=M,this.lineCap=q,this.lineWidth=Y,this.lineJoin=fe},b=function(P,I,M){for(var q=0;q<P.length;q++)switch(P[q].type){case"bct":P[q].x2+=I,P[q].y2+=M;case"qct":P[q].x1+=I,P[q].y1+=M;case"mt":case"lt":case"arc":default:P[q].x+=I,P[q].y+=M}return P},w=function(P){return P.sort((function(I,M){return I-M}))},S=function(P,I){for(var M,q,Y=this.fillStyle,fe=this.strokeStyle,ne=this.lineCap,K=this.lineWidth,he=Math.abs(K*this.ctx.transform.scaleX),be=this.lineJoin,se=JSON.parse(JSON.stringify(this.path)),Le=JSON.parse(JSON.stringify(this.path)),Se=[],Ae=0;Ae<Le.length;Ae++)if(Le[Ae].x!==void 0)for(var le=m.call(this,Le[Ae]),De=0;De<le.length;De+=1)Se.indexOf(le[De])===-1&&Se.push(le[De]);for(var Qe=0;Qe<Se.length;Qe++)for(;this.pdf.internal.getNumberOfPages()<Se[Qe];)y.call(this);if(w(Se),this.autoPaging)for(var Ue=Se[0],Ke=Se[Se.length-1],Ze=Ue;Ze<Ke+1;Ze++){this.pdf.setPage(Ze),this.fillStyle=Y,this.strokeStyle=fe,this.lineCap=ne,this.lineWidth=he,this.lineJoin=be;var Je=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],dt=Ze===1?this.posY+this.margin[0]:this.margin[0],vt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],wt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Pt=Ze===1?0:vt+(Ze-2)*wt;if(this.ctx.clip_path.length!==0){var It=this.path;M=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(M,this.posX+this.margin[3],-Pt+dt+this.ctx.prevPageLastElemOffset),A.call(this,P,!0),this.path=It}if(q=JSON.parse(JSON.stringify(se)),this.path=b(q,this.posX+this.margin[3],-Pt+dt+this.ctx.prevPageLastElemOffset),I===!1||Ze===0){var Ut=(Ze>Ue||Ze<Ke)&&p.call(this);Ut&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Je,wt,null).clip().discardPath()),A.call(this,P,I),Ut&&this.pdf.restoreGraphicsState()}this.lineWidth=K}else this.lineWidth=he,A.call(this,P,I),this.lineWidth=K;this.path=se},A=function(P,I){if((P!=="stroke"||I||!x.call(this))&&(P==="stroke"||I||!h.call(this))){for(var M,q,Y=[],fe=this.path,ne=0;ne<fe.length;ne++){var K=fe[ne];switch(K.type){case"begin":Y.push({begin:!0});break;case"close":Y.push({close:!0});break;case"mt":Y.push({start:K,deltas:[],abs:[]});break;case"lt":var he=Y.length;if(fe[ne-1]&&!isNaN(fe[ne-1].x)&&(M=[K.x-fe[ne-1].x,K.y-fe[ne-1].y],he>0)){for(;he>=0;he--)if(Y[he-1].close!==!0&&Y[he-1].begin!==!0){Y[he-1].deltas.push(M),Y[he-1].abs.push(K);break}}break;case"bct":M=[K.x1-fe[ne-1].x,K.y1-fe[ne-1].y,K.x2-fe[ne-1].x,K.y2-fe[ne-1].y,K.x-fe[ne-1].x,K.y-fe[ne-1].y],Y[Y.length-1].deltas.push(M);break;case"qct":var be=fe[ne-1].x+2/3*(K.x1-fe[ne-1].x),se=fe[ne-1].y+2/3*(K.y1-fe[ne-1].y),Le=K.x+2/3*(K.x1-K.x),Se=K.y+2/3*(K.y1-K.y),Ae=K.x,le=K.y;M=[be-fe[ne-1].x,se-fe[ne-1].y,Le-fe[ne-1].x,Se-fe[ne-1].y,Ae-fe[ne-1].x,le-fe[ne-1].y],Y[Y.length-1].deltas.push(M);break;case"arc":Y.push({deltas:[],abs:[],arc:!0}),Array.isArray(Y[Y.length-1].abs)&&Y[Y.length-1].abs.push(K)}}q=I?null:P==="stroke"?"stroke":"fill";for(var De=!1,Qe=0;Qe<Y.length;Qe++)if(Y[Qe].arc)for(var Ue=Y[Qe].abs,Ke=0;Ke<Ue.length;Ke++){var Ze=Ue[Ke];Ze.type==="arc"?C.call(this,Ze.x,Ze.y,Ze.radius,Ze.startAngle,Ze.endAngle,Ze.counterclockwise,void 0,I,!De):D.call(this,Ze.x,Ze.y),De=!0}else if(Y[Qe].close===!0)this.pdf.internal.out("h"),De=!1;else if(Y[Qe].begin!==!0){var Je=Y[Qe].start.x,dt=Y[Qe].start.y;U.call(this,Y[Qe].deltas,Je,dt),De=!0}q&&L.call(this,q),I&&R.call(this)}},O=function(P){var I=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,M=I*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return P-M;case"top":return P+I-M;case"hanging":return P+I-2*M;case"middle":return P+I/2-M;case"ideographic":return P;case"alphabetic":default:return P}},N=function(P){return P+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.prototype.createLinearGradient=function(){var P=function(){};return P.colorStops=[],P.addColorStop=function(I,M){this.colorStops.push([I,M])},P.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},P.isCanvasGradient=!0,P},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var C=function(P,I,M,q,Y,fe,ne,K,he){for(var be=B.call(this,M,q,Y,fe),se=0;se<be.length;se++){var Le=be[se];se===0&&(he?j.call(this,Le.x1+P,Le.y1+I):D.call(this,Le.x1+P,Le.y1+I)),H.call(this,P,I,Le.x2,Le.y2,Le.x3,Le.y3,Le.x4,Le.y4)}K?R.call(this):L.call(this,ne)},L=function(P){switch(P){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},R=function(){this.pdf.clip(),this.pdf.discardPath()},j=function(P,I){this.pdf.internal.out(r(P)+" "+n(I)+" m")},E=function(P){var I;switch(P.align){case"right":case"end":I="right";break;case"center":I="center";break;case"left":case"start":default:I="left"}var M=this.pdf.getTextDimensions(P.text),q=O.call(this,P.y),Y=N.call(this,q)-M.h,fe=this.ctx.transform.applyToPoint(new o(P.x,q)),ne=this.ctx.transform.decompose(),K=new l;K=(K=(K=K.multiply(ne.translate)).multiply(ne.skew)).multiply(ne.scale);for(var he,be,se,Le=this.ctx.transform.applyToRectangle(new s(P.x,q,M.w,M.h)),Se=K.applyToRectangle(new s(P.x,Y,M.w,M.h)),Ae=m.call(this,Se),le=[],De=0;De<Ae.length;De+=1)le.indexOf(Ae[De])===-1&&le.push(Ae[De]);if(w(le),this.autoPaging)for(var Qe=le[0],Ue=le[le.length-1],Ke=Qe;Ke<Ue+1;Ke++){this.pdf.setPage(Ke);var Ze=Ke===1?this.posY+this.margin[0]:this.margin[0],Je=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],dt=this.pdf.internal.pageSize.height-this.margin[2],vt=dt-this.margin[0],wt=this.pdf.internal.pageSize.width-this.margin[1],Pt=wt-this.margin[3],It=Ke===1?0:Je+(Ke-2)*vt;if(this.ctx.clip_path.length!==0){var Ut=this.path;he=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(he,this.posX+this.margin[3],-1*It+Ze),A.call(this,"fill",!0),this.path=Ut}var _t=b([JSON.parse(JSON.stringify(Se))],this.posX+this.margin[3],-It+Ze+this.ctx.prevPageLastElemOffset)[0];P.scale>=.01&&(be=this.pdf.internal.getFontSize(),this.pdf.setFontSize(be*P.scale),se=this.lineWidth,this.lineWidth=se*P.scale);var Ft=this.autoPaging!=="text";if(Ft||_t.y+_t.h<=dt){if(Ft||_t.y>=Ze&&_t.x<=wt){var it=Ft?P.text:this.pdf.splitTextToSize(P.text,P.maxWidth||wt-_t.x)[0],Dr=b([JSON.parse(JSON.stringify(Le))],this.posX+this.margin[3],-It+Ze+this.ctx.prevPageLastElemOffset)[0],zt=Ft&&(Ke>Qe||Ke<Ue)&&p.call(this);zt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Pt,vt,null).clip().discardPath()),this.pdf.text(it,Dr.x,Dr.y,{angle:P.angle,align:I,renderingMode:P.renderingMode}),zt&&this.pdf.restoreGraphicsState()}}else _t.y<dt&&(this.ctx.prevPageLastElemOffset+=dt-_t.y);P.scale>=.01&&(this.pdf.setFontSize(be),this.lineWidth=se)}else P.scale>=.01&&(be=this.pdf.internal.getFontSize(),this.pdf.setFontSize(be*P.scale),se=this.lineWidth,this.lineWidth=se*P.scale),this.pdf.text(P.text,fe.x+this.posX,fe.y+this.posY,{angle:P.angle,align:I,renderingMode:P.renderingMode,maxWidth:P.maxWidth}),P.scale>=.01&&(this.pdf.setFontSize(be),this.lineWidth=se)},D=function(P,I,M,q){M=M||0,q=q||0,this.pdf.internal.out(r(P+M)+" "+n(I+q)+" l")},U=function(P,I,M){return this.pdf.lines(P,I,M,null,null)},H=function(P,I,M,q,Y,fe,ne,K){this.pdf.internal.out([t(a(M+P)),t(i(q+I)),t(a(Y+P)),t(i(fe+I)),t(a(ne+P)),t(i(K+I)),"c"].join(" "))},B=function(P,I,M,q){for(var Y=2*Math.PI,fe=Math.PI/2;I>M;)I-=Y;var ne=Math.abs(M-I);ne<Y&&q&&(ne=Y-ne);for(var K=[],he=q?-1:1,be=I;ne>1e-5;){var se=be+he*Math.min(ne,fe);K.push(z.call(this,P,be,se)),ne-=Math.abs(se-be),be=se}return K},z=function(P,I,M){var q=(M-I)/2,Y=P*Math.cos(q),fe=P*Math.sin(q),ne=Y,K=-fe,he=ne*ne+K*K,be=he+ne*Y+K*fe,se=4/3*(Math.sqrt(2*he*be)-be)/(ne*fe-K*Y),Le=ne-se*K,Se=K+se*ne,Ae=Le,le=-Se,De=q+I,Qe=Math.cos(De),Ue=Math.sin(De);return{x1:P*Math.cos(I),y1:P*Math.sin(I),x2:Le*Qe-Se*Ue,y2:Le*Ue+Se*Qe,x3:Ae*Qe-le*Ue,y3:Ae*Ue+le*Qe,x4:P*Math.cos(M),y4:P*Math.sin(M)}},te=function(P){return 180*P/Math.PI},Z=function(P,I,M,q,Y,fe){var ne=P+.5*(M-P),K=I+.5*(q-I),he=Y+.5*(M-Y),be=fe+.5*(q-fe),se=Math.min(P,Y,ne,he),Le=Math.max(P,Y,ne,he),Se=Math.min(I,fe,K,be),Ae=Math.max(I,fe,K,be);return new s(se,Se,Le-se,Ae-Se)},ee=function(P,I,M,q,Y,fe,ne,K){var he,be,se,Le,Se,Ae,le,De,Qe,Ue,Ke,Ze,Je,dt,vt=M-P,wt=q-I,Pt=Y-M,It=fe-q,Ut=ne-Y,_t=K-fe;for(be=0;be<41;be++)Qe=(le=(se=P+(he=be/40)*vt)+he*((Se=M+he*Pt)-se))+he*(Se+he*(Y+he*Ut-Se)-le),Ue=(De=(Le=I+he*wt)+he*((Ae=q+he*It)-Le))+he*(Ae+he*(fe+he*_t-Ae)-De),be==0?(Ke=Qe,Ze=Ue,Je=Qe,dt=Ue):(Ke=Math.min(Ke,Qe),Ze=Math.min(Ze,Ue),Je=Math.max(Je,Qe),dt=Math.max(dt,Ue));return new s(Math.round(Ke),Math.round(Ze),Math.round(Je-Ke),Math.round(dt-Ze))},ce=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var P,I,M=(P=this.ctx.lineDash,I=this.ctx.lineDashOffset,JSON.stringify({lineDash:P,lineDashOffset:I}));this.prevLineDash!==M&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=M)}}})(yt.API),(function(e){var t=function(i){var o,s,l,c,u,f,d,h,x,p;for(s=[],l=0,c=(i+=o="\0\0\0\0".slice(i.length%4||4)).length;c>l;l+=4)(u=(i.charCodeAt(l)<<24)+(i.charCodeAt(l+1)<<16)+(i.charCodeAt(l+2)<<8)+i.charCodeAt(l+3))!==0?(f=(u=((u=((u=((u=(u-(p=u%85))/85)-(x=u%85))/85)-(h=u%85))/85)-(d=u%85))/85)%85,s.push(f+33,d+33,h+33,x+33,p+33)):s.push(122);return(function(m,y){for(var b=y;b>0;b--)m.pop()})(s,o.length),String.fromCharCode.apply(String,s)+"~>"},r=function(i){var o,s,l,c,u,f=String,d="length",h=255,x="charCodeAt",p="slice",m="replace";for(i[p](-2),i=i[p](0,-2)[m](/\s/g,"")[m]("z","!!!!!"),l=[],c=0,u=(i+=o="uuuuu"[p](i[d]%5||5))[d];u>c;c+=5)s=52200625*(i[x](c)-33)+614125*(i[x](c+1)-33)+7225*(i[x](c+2)-33)+85*(i[x](c+3)-33)+(i[x](c+4)-33),l.push(h&s>>24,h&s>>16,h&s>>8,h&s);return(function(y,b){for(var w=b;w>0;w--)y.pop()})(l,o[d]),f.fromCharCode.apply(f,l)},n=function(i){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),o.test(i)===!1)return"";for(var s="",l=0;l<i.length;l+=2)s+=String.fromCharCode("0x"+(i[l]+i[l+1]));return s},a=function(i){for(var o=new Uint8Array(i.length),s=i.length;s--;)o[s]=i.charCodeAt(s);return i=(o=fy(o)).reduce((function(l,c){return l+String.fromCharCode(c)}),"")};e.processDataByFilters=function(i,o){var s=0,l=i||"",c=[];for(typeof(o=o||[])=="string"&&(o=[o]),s=0;s<o.length;s+=1)switch(o[s]){case"ASCII85Decode":case"/ASCII85Decode":l=r(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=n(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map((function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)})).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=a(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[s]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}})(yt.API),(function(e){e.loadFile=function(t,r,n){return(function(a,i,o){i=i!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=(function(l,c,u){var f=new XMLHttpRequest,d=0,h=function(x){var p=x.length,m=[],y=String.fromCharCode;for(d=0;d<p;d+=1)m.push(y(255&x.charCodeAt(d)));return m.join("")};if(f.open("GET",l,!c),f.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(f.onload=function(){f.status===200?u(h(this.responseText)):u(void 0)}),f.send(null),c&&f.status===200)return h(f.responseText)})(a,i,o)}catch{}return s})(t,r,n)},e.loadImageFile=e.loadFile})(yt.API),(function(e){function t(){return(Et.html2canvas?Promise.resolve(Et.html2canvas):Promise.resolve().then(()=>require("./html2canvas.esm-C4Mnoizn.js"))).catch((function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))})).then((function(o){return o.default?o.default:o}))}function r(){return(Et.DOMPurify?Promise.resolve(Et.DOMPurify):Promise.resolve().then(()=>require("./purify.es-B0uier8o.js"))).catch((function(o){return Promise.reject(new Error("Could not load dompurify: "+o))})).then((function(o){return o.default?o.default:o}))}var n=function(o){var s=cr(o);return s==="undefined"?"undefined":s==="string"||o instanceof String?"string":s==="number"||o instanceof Number?"number":s==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":s==="object"?"object":"unknown"},a=function(o,s){var l=document.createElement(o);for(var c in s.className&&(l.className=s.className),s.innerHTML&&s.dompurify&&(l.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)l.style[c]=s.style[c];return l},i=function o(s){var l=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),c=o.convert(Promise.resolve(),l);return c=(c=c.setProgress(1,o,1,[o])).set(s)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(o,s){return o.__proto__=s||i.prototype,o},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(o,s){return this.then((function(){switch(s=s||(function(l){switch(n(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(o)){case"string":return this.then(r).then((function(l){return this.set({src:a("div",{innerHTML:o,dompurify:l})})}));case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}}))},i.prototype.to=function(o){switch(o){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var o={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},s=(function l(c,u){for(var f=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),d=c.firstChild;d;d=d.nextSibling)u!==!0&&d.nodeType===1&&d.nodeName==="SCRIPT"||f.appendChild(l(d,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(f.width=c.width,f.height=c.height,f.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(f.value=c.value),f.addEventListener("load",(function(){f.scrollTop=c.scrollTop,f.scrollLeft=c.scrollLeft}),!0)),f})(this.prop.src,this.opt.html2canvas.javascriptEnabled);s.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(s),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},i.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then((function(s){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,s(this.prop.container,l)})).then((function(s){(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)}))},i.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then((function(s){var l=this.opt.jsPDF,c=this.opt.fontFaces,u=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,f=Object.assign({async:!0,allowTaint:!0,scale:u,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete f.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=c,c)for(var d=0;d<c.length;++d){var h=c[d],x=h.src.find((function(p){return p.format==="truetype"}));x&&l.addFont(x.url,h.ref.name,h.ref.style)}return f.windowHeight=f.windowHeight||0,f.windowHeight=f.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):f.windowHeight,l.context2d.save(!0),s(this.prop.container,f)})).then((function(s){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)}))},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var o=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=o}))},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},i.prototype.output=function(o,s,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(o,s):this.outputPdf(o,s)},i.prototype.outputPdf=function(o,s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(o,s)}))},i.prototype.outputImg=function(o){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(o){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+o+'" is not supported.'}}))},i.prototype.save=function(o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(o?{filename:o}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},i.prototype.set=function(o){if(n(o)!=="object")return this;var s=Object.keys(o||{}).map((function(l){if(l in i.template.prop)return function(){this.prop[l]=o[l]};switch(l){case"margin":return this.setMargin.bind(this,o.margin);case"jsPDF":return function(){return this.opt.jsPDF=o.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,o.pageSize);default:return function(){this.opt[l]=o[l]}}}),this);return this.then((function(){return this.thenList(s)}))},i.prototype.get=function(o,s){return this.then((function(){var l=o in i.template.prop?this.prop[o]:this.opt[o];return s?s(l):l}))},i.prototype.setMargin=function(o){return this.then((function(){switch(n(o)){case"number":o=[o,o,o,o];case"array":if(o.length===2&&(o=[o[0],o[1],o[0],o[1]]),o.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=o})).then(this.setPageSize)},i.prototype.setPageSize=function(o){function s(l,c){return Math.floor(l*c/72*96)}return this.then((function(){(o=o||yt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(o.inner={width:o.width-this.opt.margin[1]-this.opt.margin[3],height:o.height-this.opt.margin[0]-this.opt.margin[2]},o.inner.px={width:s(o.inner.width,o.k),height:s(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o}))},i.prototype.setProgress=function(o,s,l,c){return o!=null&&(this.progress.val=o),s!=null&&(this.progress.state=s),l!=null&&(this.progress.n=l),c!=null&&(this.progress.stack=c),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(o,s,l,c){return this.setProgress(o?this.progress.val+o:null,s||null,l?this.progress.n+l:null,c?this.progress.stack.concat(c):null)},i.prototype.then=function(o,s){var l=this;return this.thenCore(o,s,(function(c,u){return l.updateProgress(null,null,1,[c]),Promise.prototype.then.call(this,(function(f){return l.updateProgress(null,c),f})).then(c,u).then((function(f){return l.updateProgress(1),f}))}))},i.prototype.thenCore=function(o,s,l){l=l||Promise.prototype.then,o&&(o=o.bind(this)),s&&(s=s.bind(this));var c=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),u=l.call(c,o,s);return i.convert(u,this.__proto__)},i.prototype.thenExternal=function(o,s){return Promise.prototype.then.call(this,o,s)},i.prototype.thenList=function(o){var s=this;return o.forEach((function(l){s=s.thenCore(l)})),s},i.prototype.catch=function(o){o&&(o=o.bind(this));var s=Promise.prototype.catch.call(this,o);return i.convert(s,this)},i.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},i.prototype.error=function(o){return this.then((function(){throw new Error(o)}))},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,yt.getPageSize=function(o,s,l){if(cr(o)==="object"){var c=o;o=c.orientation,s=c.unit||s,l=c.format||l}s=s||"mm",l=l||"a4",o=(""+(o||"P")).toLowerCase();var u,f=(""+l).toLowerCase(),d={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(s){case"pt":u=1;break;case"mm":u=72/25.4;break;case"cm":u=72/2.54;break;case"in":u=72;break;case"px":u=.75;break;case"pc":case"em":u=12;break;case"ex":u=6;break;default:throw"Invalid unit: "+s}var h,x=0,p=0;if(d.hasOwnProperty(f))x=d[f][1]/u,p=d[f][0]/u;else try{x=l[1],p=l[0]}catch{throw new Error("Invalid format: "+l)}if(o==="p"||o==="portrait")o="p",p>x&&(h=p,p=x,x=h);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",x>p&&(h=p,p=x,x=h)}return{width:p,height:x,unit:s,k:u,orientation:o}},e.html=function(o,s){(s=s||{}).callback=s.callback||function(){},s.html2canvas=s.html2canvas||{},s.html2canvas.canvas=s.html2canvas.canvas||this.canvas,s.jsPDF=s.jsPDF||this,s.fontFaces=s.fontFaces?s.fontFaces.map(gy):null;var l=new i(s);return s.worker?l:l.from(o).doCallback()}})(yt.API),yt.API.addJS=function(e){return mw=e,this.internal.events.subscribe("postPutResources",(function(){dh=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(dh+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),pw=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+mw+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){dh!==void 0&&pw!==void 0&&this.internal.out("/Names <</JavaScript "+dh+" 0 R>>")})),this},(function(e){var t;e.events.push(["postPutResources",function(){var r=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=r.outline.render().split(/\r\n/),i=0;i<a.length;i++){var o=a[i],s=n.exec(o);if(s!=null){var l=s[1];r.internal.newObjectDeferredBegin(l,!1)}r.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(i=0;i<c;i++){var f=r.internal.newObject();u.push(f);var d=r.internal.getPageInfo(i+1);r.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var h=r.internal.newObject();for(r.internal.write("<< /Names [ "),i=0;i<u.length;i++)r.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");r.internal.write(" ] >>","endobj"),t=r.internal.newObject(),r.internal.write("<< /Dests "+h+" 0 R"),r.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(n,a,i){var o={title:a,options:i,children:[]};return n==null&&(n=this.root),n.children.push(o),o},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(n){n.id=r.internal.newObjectDeferred();for(var a=0;a<n.children.length;a++)this.genIds_r(n.children[a])},r.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},r.outline.renderItems=function(n){for(var a=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<n.children.length;i++){var o=n.children[i];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(n)),i>0&&this.line("/Prev "+this.makeRef(n.children[i-1])),i<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[i+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var l=r.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var c=0;c<n.children.length;c++)this.renderItems(n.children[c])},r.outline.line=function(n){this.ctx.val+=n+`\r
120
- `},r.outline.makeRef=function(n){return n.id+" 0 R"},r.outline.makeString=function(n){return"("+r.internal.pdfEscape(n)+")"},r.outline.objStart=function(n){this.ctx.val+=`\r
121
- `+n.id+` 0 obj\r
122
- <<\r
123
- `},r.outline.objEnd=function(){this.ctx.val+=`>> \r
124
- endobj\r
125
- `},r.outline.count_r=function(n,a){for(var i=0;i<a.children.length;i++)n.count++,this.count_r(n,a.children[i]);return n.count}}])})(yt.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(r,n,a,i,o,s){var l,c=this.decode.DCT_DECODE,u=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=o||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,(l=(function(f){for(var d,h=256*f.charCodeAt(4)+f.charCodeAt(5),x=f.length,p={width:0,height:0,numcomponents:1},m=4;m<x;m+=2){if(m+=h,t.indexOf(f.charCodeAt(m+1))!==-1){d=256*f.charCodeAt(m+5)+f.charCodeAt(m+6),p={width:256*f.charCodeAt(m+7)+f.charCodeAt(m+8),height:d,numcomponents:f.charCodeAt(m+9)};break}h=256*f.charCodeAt(m+2)+f.charCodeAt(m+3)}return p})(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:r,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:c,index:n,alias:a}}return u}})(yt.API);var Ml,ph,vw,gw,xw,fL=(function(){var e,t,r;function n(i){var o,s,l,c,u,f,d,h,x,p,m,y,b,w;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},f=null;;){switch(o=this.readUInt32(),x=(function(){var S,A;for(A=[],S=0;S<4;++S)A.push(String.fromCharCode(this.data[this.pos++]));return A}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(o);break;case"fcTL":f&&this.animation.frames.push(f),this.pos+=4,f={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},u=this.readUInt16(),c=this.readUInt16()||100,f.delay=1e3*u/c,f.disposeOp=this.data[this.pos++],f.blendOp=this.data[this.pos++],f.data=[];break;case"IDAT":case"fdAT":for(x==="fdAT"&&(this.pos+=4,o-=4),i=(f!=null?f.data:void 0)||this.imgData,y=0;0<=o?y<o:y>o;0<=o?++y:--y)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(l=this.palette.length/3,this.transparency.indexed=this.read(o),this.transparency.indexed.length>l)throw new Error("More transparent colors than palette size");if((p=l-this.transparency.indexed.length)>0)for(b=0;0<=p?b<p:b>p;0<=p?++b:--b)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(o)[0];break;case 2:this.transparency.rgb=this.read(o)}break;case"tEXt":d=(m=this.read(o)).indexOf(0),h=String.fromCharCode.apply(String,m.slice(0,d)),this.text[h]=String.fromCharCode.apply(String,m.slice(d+1));break;case"IEND":return f&&this.animation.frames.push(f),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(w=this.colorType)===4||w===6,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=o}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(i){var o,s;for(s=[],o=0;0<=i?o<i:o>i;0<=i?++o:--o)s.push(this.data[this.pos++]);return s},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(i){var o=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*o),l=0,c=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function u(f,d,h,x){var p,m,y,b,w,S,A,O,N,C,L,R,j,E,D,U,H,B,z,te,Z,ee=Math.ceil((c.width-f)/h),ce=Math.ceil((c.height-d)/x),P=c.width==ee&&c.height==ce;for(E=o*ee,R=P?s:new Uint8Array(E*ce),S=i.length,j=0,m=0;j<ce&&l<S;){switch(i[l++]){case 0:for(b=H=0;H<E;b=H+=1)R[m++]=i[l++];break;case 1:for(b=B=0;B<E;b=B+=1)p=i[l++],w=b<o?0:R[m-o],R[m++]=(p+w)%256;break;case 2:for(b=z=0;z<E;b=z+=1)p=i[l++],y=(b-b%o)/o,D=j&&R[(j-1)*E+y*o+b%o],R[m++]=(D+p)%256;break;case 3:for(b=te=0;te<E;b=te+=1)p=i[l++],y=(b-b%o)/o,w=b<o?0:R[m-o],D=j&&R[(j-1)*E+y*o+b%o],R[m++]=(p+Math.floor((w+D)/2))%256;break;case 4:for(b=Z=0;Z<E;b=Z+=1)p=i[l++],y=(b-b%o)/o,w=b<o?0:R[m-o],j===0?D=U=0:(D=R[(j-1)*E+y*o+b%o],U=y&&R[(j-1)*E+(y-1)*o+b%o]),A=w+D-U,O=Math.abs(A-w),C=Math.abs(A-D),L=Math.abs(A-U),N=O<=C&&O<=L?w:C<=L?D:U,R[m++]=(p+N)%256;break;default:throw new Error("Invalid filter algorithm: "+i[l-1])}if(!P){var I=((d+j*x)*c.width+f)*o,M=j*E;for(b=0;b<ee;b+=1){for(var q=0;q<o;q+=1)s[I++]=R[M++];I+=(h-1)*o}}j++}}return i=Uk(i),c.interlaceMethod==1?(u(0,0,8,8),u(4,0,8,8),u(0,4,4,8),u(2,0,4,4),u(0,2,2,4),u(1,0,2,2),u(0,1,1,2)):u(0,0,1,1),s},n.prototype.decodePalette=function(){var i,o,s,l,c,u,f,d,h;for(s=this.palette,u=this.transparency.indexed||[],c=new Uint8Array((u.length||0)+s.length),l=0,i=0,o=f=0,d=s.length;f<d;o=f+=3)c[l++]=s[o],c[l++]=s[o+1],c[l++]=s[o+2],c[l++]=(h=u[i++])!=null?h:255;return c},n.prototype.copyToImageData=function(i,o){var s,l,c,u,f,d,h,x,p,m,y;if(l=this.colors,p=null,s=this.hasAlphaChannel,this.palette.length&&(p=(y=this._decodedPalette)!=null?y:this._decodedPalette=this.decodePalette(),l=4,s=!0),x=(c=i.data||i).length,f=p||o,u=d=0,l===1)for(;u<x;)h=p?4*o[u/4]:d,m=f[h++],c[u++]=m,c[u++]=m,c[u++]=m,c[u++]=s?f[h++]:255,d=h;else for(;u<x;)h=p?4*o[u/4]:d,c[u++]=f[h++],c[u++]=f[h++],c[u++]=f[h++],c[u++]=s?f[h++]:255,d=h},n.prototype.decode=function(){var i;return i=new Uint8Array(this.width*this.height*4),this.copyToImageData(i,this.decodePixels()),i};var a=function(){if(Object.prototype.toString.call(Et)==="[object Window]"){try{t=Et.document.createElement("canvas"),r=t.getContext("2d")}catch{return!1}return!0}return!1};return a(),e=function(i){var o;if(a()===!0)return r.width=i.width,r.height=i.height,r.clearRect(0,0,i.width,i.height),r.putImageData(i,0,0),(o=new Image).src=t.toDataURL(),o;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(i){var o,s,l,c,u,f,d,h;if(this.animation){for(h=[],s=u=0,f=(d=this.animation.frames).length;u<f;s=++u)o=d[s],l=i.createImageData(o.width,o.height),c=this.decodePixels(new Uint8Array(o.data)),this.copyToImageData(l,c),o.imageData=l,h.push(o.image=e(l));return h}},n.prototype.renderFrame=function(i,o){var s,l,c;return s=(l=this.animation.frames)[o],c=l[o-1],o===0&&i.clearRect(0,0,this.width,this.height),(c!=null?c.disposeOp:void 0)===1?i.clearRect(c.xOffset,c.yOffset,c.width,c.height):(c!=null?c.disposeOp:void 0)===2&&i.putImageData(c.imageData,c.xOffset,c.yOffset),s.blendOp===0&&i.clearRect(s.xOffset,s.yOffset,s.width,s.height),i.drawImage(s.image,s.xOffset,s.yOffset)},n.prototype.animate=function(i){var o,s,l,c,u,f,d=this;return s=0,f=this.animation,c=f.numFrames,l=f.frames,u=f.numPlays,(o=function(){var h,x;if(h=s++%c,x=l[h],d.renderFrame(i,h),c>1&&s/c<u)return d.animation._timeout=setTimeout(o,x.delay)})()},n.prototype.stopAnimation=function(){var i;return clearTimeout((i=this.animation)!=null?i._timeout:void 0)},n.prototype.render=function(i){var o,s;return i._png&&i._png.stopAnimation(),i._png=this,i.width=this.width,i.height=this.height,o=i.getContext("2d"),this.animation?(this.decodeFrames(o),this.animate(o)):(s=o.createImageData(this.width,this.height),this.copyToImageData(s,this.decodePixels()),o.putImageData(s,0,0))},n})();/**
126
- * @license
127
- *
128
- * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
129
- *
130
- * Permission is hereby granted, free of charge, to any person obtaining
131
- * a copy of this software and associated documentation files (the
132
- * "Software"), to deal in the Software without restriction, including
133
- * without limitation the rights to use, copy, modify, merge, publish,
134
- * distribute, sublicense, and/or sell copies of the Software, and to
135
- * permit persons to whom the Software is furnished to do so, subject to
136
- * the following conditions:
137
- *
138
- * The above copyright notice and this permission notice shall be
139
- * included in all copies or substantial portions of the Software.
140
- *
141
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
142
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
143
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
144
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
145
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
146
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
147
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
148
- * ====================================================================
149
- *//**
150
- * @license
151
- * (c) Dean McNamee <dean@gmail.com>, 2013.
152
- *
153
- * https://github.com/deanm/omggif
154
- *
155
- * Permission is hereby granted, free of charge, to any person obtaining a copy
156
- * of this software and associated documentation files (the "Software"), to
157
- * deal in the Software without restriction, including without limitation the
158
- * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
159
- * sell copies of the Software, and to permit persons to whom the Software is
160
- * furnished to do so, subject to the following conditions:
161
- *
162
- * The above copyright notice and this permission notice shall be included in
163
- * all copies or substantial portions of the Software.
164
- *
165
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
166
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
167
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
168
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
169
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
170
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
171
- * IN THE SOFTWARE.
172
- *
173
- * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
174
- * including animation and compression. It does not rely on any specific
175
- * underlying system, so should run in the browser, Node, or Plask.
176
- */function hL(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,a=e[t++],i=a>>7,o=1<<(7&a)+1;e[t++],e[t++];var s=null,l=null;i&&(s=t,l=o,t+=3*o);var c=!0,u=[],f=0,d=null,h=0,x=null;for(this.width=r,this.height=n;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,x=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((j=e[t++])>=0))throw Error("Invalid block size");if(j===0)break;t+=j}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var p=e[t++];f=e[t++]|e[t++]<<8,d=e[t++],(1&p)==0&&(d=null),h=p>>2&7,t++;break;case 254:for(;;){if(!((j=e[t++])>=0))throw Error("Invalid block size");if(j===0)break;t+=j}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var m=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,w=e[t++]|e[t++]<<8,S=e[t++],A=S>>6&1,O=1<<(7&S)+1,N=s,C=l,L=!1;S>>7&&(L=!0,N=t,C=O,t+=3*O);var R=t;for(t++;;){var j;if(!((j=e[t++])>=0))throw Error("Invalid block size");if(j===0)break;t+=j}u.push({x:m,y,width:b,height:w,has_local_palette:L,palette_offset:N,palette_size:C,data_offset:R,data_length:t-R,transparent_index:d,interlaced:!!A,delay:f,disposal:h});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return x},this.frameInfo=function(E){if(E<0||E>=u.length)throw new Error("Frame index out of range.");return u[E]},this.decodeAndBlitFrameBGRA=function(E,D){var U=this.frameInfo(E),H=U.width*U.height,B=new Uint8Array(H);yw(e,U.data_offset,B,H);var z=U.palette_offset,te=U.transparent_index;te===null&&(te=256);var Z=U.width,ee=r-Z,ce=Z,P=4*(U.y*r+U.x),I=4*((U.y+U.height)*r+U.x),M=P,q=4*ee;U.interlaced===!0&&(q+=4*r*7);for(var Y=8,fe=0,ne=B.length;fe<ne;++fe){var K=B[fe];if(ce===0&&(ce=Z,(M+=q)>=I&&(q=4*ee+4*r*(Y-1),M=P+(Z+ee)*(Y<<1),Y>>=1)),K===te)M+=4;else{var he=e[z+3*K],be=e[z+3*K+1],se=e[z+3*K+2];D[M++]=se,D[M++]=be,D[M++]=he,D[M++]=255}--ce}},this.decodeAndBlitFrameRGBA=function(E,D){var U=this.frameInfo(E),H=U.width*U.height,B=new Uint8Array(H);yw(e,U.data_offset,B,H);var z=U.palette_offset,te=U.transparent_index;te===null&&(te=256);var Z=U.width,ee=r-Z,ce=Z,P=4*(U.y*r+U.x),I=4*((U.y+U.height)*r+U.x),M=P,q=4*ee;U.interlaced===!0&&(q+=4*r*7);for(var Y=8,fe=0,ne=B.length;fe<ne;++fe){var K=B[fe];if(ce===0&&(ce=Z,(M+=q)>=I&&(q=4*ee+4*r*(Y-1),M=P+(Z+ee)*(Y<<1),Y>>=1)),K===te)M+=4;else{var he=e[z+3*K],be=e[z+3*K+1],se=e[z+3*K+2];D[M++]=he,D[M++]=be,D[M++]=se,D[M++]=255}--ce}}}function yw(e,t,r,n){for(var a=e[t++],i=1<<a,o=i+1,s=o+1,l=a+1,c=(1<<l)-1,u=0,f=0,d=0,h=e[t++],x=new Int32Array(4096),p=null;;){for(;u<16&&h!==0;)f|=e[t++]<<u,u+=8,h===1?h=e[t++]:--h;if(u<l)break;var m=f&c;if(f>>=l,u-=l,m!==i){if(m===o)break;for(var y=m<s?m:p,b=0,w=y;w>i;)w=x[w]>>8,++b;var S=w;if(d+b+(y!==m?1:0)>n)return void Ar.log("Warning, gif stream longer than expected.");r[d++]=S;var A=d+=b;for(y!==m&&(r[d++]=S),w=y;b--;)w=x[w],r[--A]=255&w,w>>=8;p!==null&&s<4096&&(x[s++]=p<<8|S,s>=c+1&&l<12&&(++l,c=c<<1|1)),p=m}else s=o+1,c=(1<<(l=a+1))-1,p=null}return d!==n&&Ar.log("Warning, gif stream shorter than expected."),r}/**
177
- * @license
178
- Copyright (c) 2008, Adobe Systems Incorporated
179
- All rights reserved.
180
-
181
- Redistribution and use in source and binary forms, with or without
182
- modification, are permitted provided that the following conditions are
183
- met:
184
-
185
- * Redistributions of source code must retain the above copyright notice,
186
- this list of conditions and the following disclaimer.
187
-
188
- * Redistributions in binary form must reproduce the above copyright
189
- notice, this list of conditions and the following disclaimer in the
190
- documentation and/or other materials provided with the distribution.
191
-
192
- * Neither the name of Adobe Systems Incorporated nor the names of its
193
- contributors may be used to endorse or promote products derived from
194
- this software without specific prior written permission.
195
-
196
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
197
- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
198
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
199
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
200
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
201
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
202
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
203
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
204
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
205
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
206
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
207
- */function q1(e){var t,r,n,a,i,o=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),f=new Array(65535),d=new Array(65535),h=new Array(64),x=new Array(64),p=[],m=0,y=7,b=new Array(64),w=new Array(64),S=new Array(64),A=new Array(256),O=new Array(2048),N=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],C=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],j=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],D=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],H=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function B(P,I){for(var M=0,q=0,Y=new Array,fe=1;fe<=16;fe++){for(var ne=1;ne<=P[fe];ne++)Y[I[q]]=[],Y[I[q]][0]=M,Y[I[q]][1]=fe,q++,M++;M*=2}return Y}function z(P){for(var I=P[0],M=P[1]-1;M>=0;)I&1<<M&&(m|=1<<y),M--,--y<0&&(m==255?(te(255),te(0)):te(m),y=7,m=0)}function te(P){p.push(P)}function Z(P){te(P>>8&255),te(255&P)}function ee(P,I,M,q,Y){for(var fe,ne=Y[0],K=Y[240],he=(function(Ue,Ke){var Ze,Je,dt,vt,wt,Pt,It,Ut,_t,Ft,it=0;for(_t=0;_t<8;++_t){Ze=Ue[it],Je=Ue[it+1],dt=Ue[it+2],vt=Ue[it+3],wt=Ue[it+4],Pt=Ue[it+5],It=Ue[it+6];var Dr=Ze+(Ut=Ue[it+7]),zt=Ze-Ut,An=Je+It,Xt=Je-It,fr=dt+Pt,Vn=dt-Pt,Ht=vt+wt,Ee=vt-wt,ct=Dr+Ht,Wt=Dr-Ht,Or=An+fr,Tt=An-fr;Ue[it]=ct+Or,Ue[it+4]=ct-Or;var ht=.707106781*(Tt+Wt);Ue[it+2]=Wt+ht,Ue[it+6]=Wt-ht;var Gt=.382683433*((ct=Ee+Vn)-(Tt=Xt+zt)),Gi=.5411961*ct+Gt,ln=1.306562965*Tt+Gt,Ia=.707106781*(Or=Vn+Xt),Fa=zt+Ia,St=zt-Ia;Ue[it+5]=St+Gi,Ue[it+3]=St-Gi,Ue[it+1]=Fa+ln,Ue[it+7]=Fa-ln,it+=8}for(it=0,_t=0;_t<8;++_t){Ze=Ue[it],Je=Ue[it+8],dt=Ue[it+16],vt=Ue[it+24],wt=Ue[it+32],Pt=Ue[it+40],It=Ue[it+48];var xa=Ze+(Ut=Ue[it+56]),ia=Ze-Ut,Fn=Je+It,Hr=Je-It,Rr=dt+Pt,J=dt-Pt,pe=vt+wt,ie=vt-wt,oe=xa+pe,de=xa-pe,me=Fn+Rr,Pe=Fn-Rr;Ue[it]=oe+me,Ue[it+32]=oe-me;var Ie=.707106781*(Pe+de);Ue[it+16]=de+Ie,Ue[it+48]=de-Ie;var Te=.382683433*((oe=ie+J)-(Pe=Hr+ia)),Ce=.5411961*oe+Te,ke=1.306562965*Pe+Te,Ye=.707106781*(me=J+Hr),et=ia+Ye,lt=ia-Ye;Ue[it+40]=lt+Ce,Ue[it+24]=lt-Ce,Ue[it+8]=et+ke,Ue[it+56]=et-ke,it++}for(_t=0;_t<64;++_t)Ft=Ue[_t]*Ke[_t],h[_t]=Ft>0?Ft+.5|0:Ft-.5|0;return h})(P,I),be=0;be<64;++be)x[N[be]]=he[be];var se=x[0]-M;M=x[0],se==0?z(q[0]):(z(q[d[fe=32767+se]]),z(f[fe]));for(var Le=63;Le>0&&x[Le]==0;)Le--;if(Le==0)return z(ne),M;for(var Se,Ae=1;Ae<=Le;){for(var le=Ae;x[Ae]==0&&Ae<=Le;)++Ae;var De=Ae-le;if(De>=16){Se=De>>4;for(var Qe=1;Qe<=Se;++Qe)z(K);De&=15}fe=32767+x[Ae],z(Y[(De<<4)+d[fe]]),z(f[fe]),Ae++}return Le!=63&&z(ne),M}function ce(P){P=Math.min(Math.max(P,1),100),i!=P&&((function(I){for(var M=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],q=0;q<64;q++){var Y=o((M[q]*I+50)/100);Y=Math.min(Math.max(Y,1),255),s[N[q]]=Y}for(var fe=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ne=0;ne<64;ne++){var K=o((fe[ne]*I+50)/100);K=Math.min(Math.max(K,1),255),l[N[ne]]=K}for(var he=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],be=0,se=0;se<8;se++)for(var Le=0;Le<8;Le++)c[be]=1/(s[N[be]]*he[se]*he[Le]*8),u[be]=1/(l[N[be]]*he[se]*he[Le]*8),be++})(P<50?Math.floor(5e3/P):Math.floor(200-2*P)),i=P)}this.encode=function(P,I){I&&ce(I),p=new Array,m=0,y=7,Z(65496),Z(65504),Z(16),te(74),te(70),te(73),te(70),te(0),te(1),te(1),te(0),Z(1),Z(1),te(0),te(0),(function(){Z(65499),Z(132),te(0);for(var Je=0;Je<64;Je++)te(s[Je]);te(1);for(var dt=0;dt<64;dt++)te(l[dt])})(),(function(Je,dt){Z(65472),Z(17),te(8),Z(dt),Z(Je),te(3),te(1),te(17),te(0),te(2),te(17),te(1),te(3),te(17),te(1)})(P.width,P.height),(function(){Z(65476),Z(418),te(0);for(var Je=0;Je<16;Je++)te(C[Je+1]);for(var dt=0;dt<=11;dt++)te(L[dt]);te(16);for(var vt=0;vt<16;vt++)te(R[vt+1]);for(var wt=0;wt<=161;wt++)te(j[wt]);te(1);for(var Pt=0;Pt<16;Pt++)te(E[Pt+1]);for(var It=0;It<=11;It++)te(D[It]);te(17);for(var Ut=0;Ut<16;Ut++)te(U[Ut+1]);for(var _t=0;_t<=161;_t++)te(H[_t])})(),Z(65498),Z(12),te(3),te(1),te(0),te(2),te(17),te(3),te(17),te(0),te(63),te(0);var M=0,q=0,Y=0;m=0,y=7,this.encode.displayName="_encode_";for(var fe,ne,K,he,be,se,Le,Se,Ae,le=P.data,De=P.width,Qe=P.height,Ue=4*De,Ke=0;Ke<Qe;){for(fe=0;fe<Ue;){for(be=Ue*Ke+fe,Le=-1,Se=0,Ae=0;Ae<64;Ae++)se=be+(Se=Ae>>3)*Ue+(Le=4*(7&Ae)),Ke+Se>=Qe&&(se-=Ue*(Ke+1+Se-Qe)),fe+Le>=Ue&&(se-=fe+Le-Ue+4),ne=le[se++],K=le[se++],he=le[se++],b[Ae]=(O[ne]+O[K+256>>0]+O[he+512>>0]>>16)-128,w[Ae]=(O[ne+768>>0]+O[K+1024>>0]+O[he+1280>>0]>>16)-128,S[Ae]=(O[ne+1280>>0]+O[K+1536>>0]+O[he+1792>>0]>>16)-128;M=ee(b,c,M,t,n),q=ee(w,u,q,r,a),Y=ee(S,u,Y,r,a),fe+=32}Ke+=8}if(y>=0){var Ze=[];Ze[1]=y+1,Ze[0]=(1<<y+1)-1,z(Ze)}return Z(65497),new Uint8Array(p)},e=e||50,(function(){for(var P=String.fromCharCode,I=0;I<256;I++)A[I]=P(I)})(),t=B(C,L),r=B(E,D),n=B(R,j),a=B(U,H),(function(){for(var P=1,I=2,M=1;M<=15;M++){for(var q=P;q<I;q++)d[32767+q]=M,f[32767+q]=[],f[32767+q][1]=M,f[32767+q][0]=q;for(var Y=-(I-1);Y<=-P;Y++)d[32767+Y]=M,f[32767+Y]=[],f[32767+Y][1]=M,f[32767+Y][0]=I-1+Y;P<<=1,I<<=1}})(),(function(){for(var P=0;P<256;P++)O[P]=19595*P,O[P+256>>0]=38470*P,O[P+512>>0]=7471*P+32768,O[P+768>>0]=-11059*P,O[P+1024>>0]=-21709*P,O[P+1280>>0]=32768*P+8421375,O[P+1536>>0]=-27439*P,O[P+1792>>0]=-5329*P})(),ce(e)}/**
208
- * @license
209
- * Copyright (c) 2017 Aras Abbasi
210
- *
211
- * Licensed under the MIT License.
212
- * http://opensource.org/licenses/mit-license
213
- */function li(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function bw(e){function t(C){if(!C)throw Error("assert :P")}function r(C,L,R){for(var j=0;4>j;j++)if(C[L+j]!=R.charCodeAt(j))return!0;return!1}function n(C,L,R,j,E){for(var D=0;D<E;D++)C[L+D]=R[j+D]}function a(C,L,R,j){for(var E=0;E<j;E++)C[L+E]=R}function i(C){return new Int32Array(C)}function o(C,L){for(var R=[],j=0;j<C;j++)R.push(new L);return R}function s(C,L){var R=[];return(function j(E,D,U){for(var H=U[D],B=0;B<H&&(E.push(U.length>D+1?[]:new L),!(U.length<D+1));B++)j(E[B],D+1,U)})(R,0,C),R}var l=function(){var C=this;function L(g,_){for(var k=1<<_-1>>>0;g&k;)k>>>=1;return k?(g&k-1)+k:g}function R(g,_,k,F,G){t(!(F%k));do g[_+(F-=k)]=G;while(0<F)}function j(g,_,k,F,G){if(t(2328>=G),512>=G)var X=i(512);else if((X=i(G))==null)return 0;return(function(Q,re,ae,ue,xe,Oe){var je,_e,We=re,Fe=1<<ae,ye=i(16),we=i(16);for(t(xe!=0),t(ue!=null),t(Q!=null),t(0<ae),_e=0;_e<xe;++_e){if(15<ue[_e])return 0;++ye[ue[_e]]}if(ye[0]==xe)return 0;for(we[1]=0,je=1;15>je;++je){if(ye[je]>1<<je)return 0;we[je+1]=we[je]+ye[je]}for(_e=0;_e<xe;++_e)je=ue[_e],0<ue[_e]&&(Oe[we[je]++]=_e);if(we[15]==1)return(ue=new E).g=0,ue.value=Oe[0],R(Q,We,1,Fe,ue),Fe;var qe,Ge=-1,ze=Fe-1,ft=0,at=1,At=1,ot=1<<ae;for(_e=0,je=1,xe=2;je<=ae;++je,xe<<=1){if(at+=At<<=1,0>(At-=ye[je]))return 0;for(;0<ye[je];--ye[je])(ue=new E).g=je,ue.value=Oe[_e++],R(Q,We+ft,xe,ot,ue),ft=L(ft,je)}for(je=ae+1,xe=2;15>=je;++je,xe<<=1){if(at+=At<<=1,0>(At-=ye[je]))return 0;for(;0<ye[je];--ye[je]){if(ue=new E,(ft&ze)!=Ge){for(We+=ot,qe=1<<(Ge=je)-ae;15>Ge&&!(0>=(qe-=ye[Ge]));)++Ge,qe<<=1;Fe+=ot=1<<(qe=Ge-ae),Q[re+(Ge=ft&ze)].g=qe+ae,Q[re+Ge].value=We-re-Ge}ue.g=je-ae,ue.value=Oe[_e++],R(Q,We+(ft>>ae),xe,ot,ue),ft=L(ft,je)}}return at!=2*we[15]-1?0:Fe})(g,_,k,F,G,X)}function E(){this.value=this.g=0}function D(){this.value=this.g=0}function U(){this.G=o(5,E),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Nn,D)}function H(g,_,k,F){t(g!=null),t(_!=null),t(2147483648>F),g.Ca=254,g.I=0,g.b=-8,g.Ka=0,g.oa=_,g.pa=k,g.Jd=_,g.Yc=k+F,g.Zc=4<=F?k+F-4+1:k,fe(g)}function B(g,_){for(var k=0;0<_--;)k|=K(g,128)<<_;return k}function z(g,_){var k=B(g,_);return ne(g)?-k:k}function te(g,_,k,F){var G,X=0;for(t(g!=null),t(_!=null),t(4294967288>F),g.Sb=F,g.Ra=0,g.u=0,g.h=0,4<F&&(F=4),G=0;G<F;++G)X+=_[k+G]<<8*G;g.Ra=X,g.bb=F,g.oa=_,g.pa=k}function Z(g){for(;8<=g.u&&g.bb<g.Sb;)g.Ra>>>=8,g.Ra+=g.oa[g.pa+g.bb]<<Nl-8>>>0,++g.bb,g.u-=8;M(g)&&(g.h=1,g.u=0)}function ee(g,_){if(t(0<=_),!g.h&&_<=Al){var k=I(g)&Sl[_];return g.u+=_,Z(g),k}return g.h=1,g.u=0}function ce(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function P(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function I(g){return g.Ra>>>(g.u&Nl-1)>>>0}function M(g){return t(g.bb<=g.Sb),g.h||g.bb==g.Sb&&g.u>Nl}function q(g,_){g.u=_,g.h=M(g)}function Y(g){g.u>=gu&&(t(g.u>=gu),Z(g))}function fe(g){t(g!=null&&g.oa!=null),g.pa<g.Zc?(g.I=(g.oa[g.pa++]|g.I<<8)>>>0,g.b+=8):(t(g!=null&&g.oa!=null),g.pa<g.Yc?(g.b+=8,g.I=g.oa[g.pa++]|g.I<<8):g.Ka?g.b=0:(g.I<<=8,g.b+=8,g.Ka=1))}function ne(g){return B(g,1)}function K(g,_){var k=g.Ca;0>g.b&&fe(g);var F=g.b,G=k*_>>>8,X=(g.I>>>F>G)+0;for(X?(k-=G,g.I-=G+1<<F>>>0):k=G+1,F=k,G=0;256<=F;)G+=8,F>>=8;return F=7^G+sa[F],g.b-=F,g.Ca=(k<<F)-1,X}function he(g,_,k){g[_+0]=k>>24&255,g[_+1]=k>>16&255,g[_+2]=k>>8&255,g[_+3]=k>>0&255}function be(g,_){return g[_+0]<<0|g[_+1]<<8}function se(g,_){return be(g,_)|g[_+2]<<16}function Le(g,_){return be(g,_)|be(g,_+2)<<16}function Se(g,_){var k=1<<_;return t(g!=null),t(0<_),g.X=i(k),g.X==null?0:(g.Mb=32-_,g.Xa=_,1)}function Ae(g,_){t(g!=null),t(_!=null),t(g.Xa==_.Xa),n(_.X,0,g.X,0,1<<_.Xa)}function le(){this.X=[],this.Xa=this.Mb=0}function De(g,_,k,F){t(k!=null),t(F!=null);var G=k[0],X=F[0];return G==0&&(G=(g*X+_/2)/_),X==0&&(X=(_*G+g/2)/g),0>=G||0>=X?0:(k[0]=G,F[0]=X,1)}function Qe(g,_){return g+(1<<_)-1>>>_}function Ue(g,_){return((4278255360&g)+(4278255360&_)>>>0&4278255360)+((16711935&g)+(16711935&_)>>>0&16711935)>>>0}function Ke(g,_){C[_]=function(k,F,G,X,Q,re,ae){var ue;for(ue=0;ue<Q;++ue){var xe=C[g](re[ae+ue-1],G,X+ue);re[ae+ue]=Ue(k[F+ue],xe)}}}function Ze(){this.ud=this.hd=this.jd=0}function Je(g,_){return((4278124286&(g^_))>>>1)+(g&_)>>>0}function dt(g){return 0<=g&&256>g?g:0>g?0:255<g?255:void 0}function vt(g,_){return dt(g+(g-_+.5>>1))}function wt(g,_,k){return Math.abs(_-k)-Math.abs(g-k)}function Pt(g,_,k,F,G,X,Q){for(F=X[Q-1],k=0;k<G;++k)X[Q+k]=F=Ue(g[_+k],F)}function It(g,_,k,F,G){var X;for(X=0;X<k;++X){var Q=g[_+X],re=Q>>8&255,ae=16711935&(ae=(ae=16711935&Q)+((re<<16)+re));F[G+X]=(4278255360&Q)+ae>>>0}}function Ut(g,_){_.jd=g>>0&255,_.hd=g>>8&255,_.ud=g>>16&255}function _t(g,_,k,F,G,X){var Q;for(Q=0;Q<F;++Q){var re=_[k+Q],ae=re>>>8,ue=re,xe=255&(xe=(xe=re>>>16)+((g.jd<<24>>24)*(ae<<24>>24)>>>5));ue=255&(ue=(ue=ue+((g.hd<<24>>24)*(ae<<24>>24)>>>5))+((g.ud<<24>>24)*(xe<<24>>24)>>>5)),G[X+Q]=(4278255360&re)+(xe<<16)+ue}}function Ft(g,_,k,F,G){C[_]=function(X,Q,re,ae,ue,xe,Oe,je,_e){for(ae=Oe;ae<je;++ae)for(Oe=0;Oe<_e;++Oe)ue[xe++]=G(re[F(X[Q++])])},C[g]=function(X,Q,re,ae,ue,xe,Oe){var je=8>>X.b,_e=X.Ea,We=X.K[0],Fe=X.w;if(8>je)for(X=(1<<X.b)-1,Fe=(1<<je)-1;Q<re;++Q){var ye,we=0;for(ye=0;ye<_e;++ye)ye&X||(we=F(ae[ue++])),xe[Oe++]=G(We[we&Fe]),we>>=je}else C["VP8LMapColor"+k](ae,ue,We,Fe,xe,Oe,Q,re,_e)}}function it(g,_,k,F,G){for(k=_+k;_<k;){var X=g[_++];F[G++]=X>>16&255,F[G++]=X>>8&255,F[G++]=X>>0&255}}function Dr(g,_,k,F,G){for(k=_+k;_<k;){var X=g[_++];F[G++]=X>>16&255,F[G++]=X>>8&255,F[G++]=X>>0&255,F[G++]=X>>24&255}}function zt(g,_,k,F,G){for(k=_+k;_<k;){var X=(Q=g[_++])>>16&240|Q>>12&15,Q=Q>>0&240|Q>>28&15;F[G++]=X,F[G++]=Q}}function An(g,_,k,F,G){for(k=_+k;_<k;){var X=(Q=g[_++])>>16&248|Q>>13&7,Q=Q>>5&224|Q>>3&31;F[G++]=X,F[G++]=Q}}function Xt(g,_,k,F,G){for(k=_+k;_<k;){var X=g[_++];F[G++]=X>>0&255,F[G++]=X>>8&255,F[G++]=X>>16&255}}function fr(g,_,k,F,G,X){if(X==0)for(k=_+k;_<k;)he(F,((X=g[_++])[0]>>24|X[1]>>8&65280|X[2]<<8&16711680|X[3]<<24)>>>0),G+=32;else n(F,G,g,_,k)}function Vn(g,_){C[_][0]=C[g+"0"],C[_][1]=C[g+"1"],C[_][2]=C[g+"2"],C[_][3]=C[g+"3"],C[_][4]=C[g+"4"],C[_][5]=C[g+"5"],C[_][6]=C[g+"6"],C[_][7]=C[g+"7"],C[_][8]=C[g+"8"],C[_][9]=C[g+"9"],C[_][10]=C[g+"10"],C[_][11]=C[g+"11"],C[_][12]=C[g+"12"],C[_][13]=C[g+"13"],C[_][14]=C[g+"0"],C[_][15]=C[g+"0"]}function Ht(g){return g==g1||g==x1||g==J0||g==y1}function Ee(){this.eb=[],this.size=this.A=this.fb=0}function ct(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Wt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ee,this.f.kb=new ct,this.sd=null}function Or(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Tt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ht(g){return alert("todo:WebPSamplerProcessPlane"),g.T}function Gt(g,_){var k=g.T,F=_.ba.f.RGBA,G=F.eb,X=F.fb+g.ka*F.A,Q=qa[_.ba.S],re=g.y,ae=g.O,ue=g.f,xe=g.N,Oe=g.ea,je=g.W,_e=_.cc,We=_.dc,Fe=_.Mc,ye=_.Nc,we=g.ka,qe=g.ka+g.T,Ge=g.U,ze=Ge+1>>1;for(we==0?Q(re,ae,null,null,ue,xe,Oe,je,ue,xe,Oe,je,G,X,null,null,Ge):(Q(_.ec,_.fc,re,ae,_e,We,Fe,ye,ue,xe,Oe,je,G,X-F.A,G,X,Ge),++k);we+2<qe;we+=2)_e=ue,We=xe,Fe=Oe,ye=je,xe+=g.Rc,je+=g.Rc,X+=2*F.A,Q(re,(ae+=2*g.fa)-g.fa,re,ae,_e,We,Fe,ye,ue,xe,Oe,je,G,X-F.A,G,X,Ge);return ae+=g.fa,g.j+qe<g.o?(n(_.ec,_.fc,re,ae,Ge),n(_.cc,_.dc,ue,xe,ze),n(_.Mc,_.Nc,Oe,je,ze),k--):1&qe||Q(re,ae,null,null,ue,xe,Oe,je,ue,xe,Oe,je,G,X+F.A,null,null,Ge),k}function Gi(g,_,k){var F=g.F,G=[g.J];if(F!=null){var X=g.U,Q=_.ba.S,re=Q==X0||Q==J0;_=_.ba.f.RGBA;var ae=[0],ue=g.ka;ae[0]=g.T,g.Kb&&(ue==0?--ae[0]:(--ue,G[0]-=g.width),g.j+g.ka+g.T==g.o&&(ae[0]=g.o-g.j-ue));var xe=_.eb;ue=_.fb+ue*_.A,g=Er(F,G[0],g.width,X,ae,xe,ue+(re?0:3),_.A),t(k==ae),g&&Ht(Q)&&Ba(xe,ue,re,X,ae,_.A)}return 0}function ln(g){var _=g.ma,k=_.ba.S,F=11>k,G=k==Y0||k==K0||k==X0||k==v1||k==12||Ht(k);if(_.memory=null,_.Ib=null,_.Jb=null,_.Nd=null,!mu(_.Oa,g,G?11:12))return 0;if(G&&Ht(k)&&Ve(),g.da)alert("todo:use_scaling");else{if(F){if(_.Ib=ht,g.Kb){if(k=g.U+1>>1,_.memory=i(g.U+2*k),_.memory==null)return 0;_.ec=_.memory,_.fc=0,_.cc=_.ec,_.dc=_.fc+g.U,_.Mc=_.cc,_.Nc=_.dc+k,_.Ib=Gt,Ve()}}else alert("todo:EmitYUV");G&&(_.Jb=Gi,F&&Ne())}if(F&&!M5){for(g=0;256>g;++g)O8[g]=89858*(g-128)+Q0>>Z0,k8[g]=-22014*(g-128)+Q0,C8[g]=-45773*(g-128),j8[g]=113618*(g-128)+Q0>>Z0;for(g=Au;g<_1;++g)_=76283*(g-16)+Q0>>Z0,L8[g-Au]=ba(_,255),I8[g-Au]=ba(_+8>>4,15);M5=1}return 1}function Ia(g){var _=g.ma,k=g.U,F=g.T;return t(!(1&g.ka)),0>=k||0>=F?0:(k=_.Ib(g,_),_.Jb!=null&&_.Jb(g,_,k),_.Dc+=k,1)}function Fa(g){g.ma.memory=null}function St(g,_,k,F){return ee(g,8)!=47?0:(_[0]=ee(g,14)+1,k[0]=ee(g,14)+1,F[0]=ee(g,1),ee(g,3)!=0?0:!g.h)}function xa(g,_){if(4>g)return g+1;var k=g-2>>1;return(2+(1&g)<<k)+ee(_,k)+1}function ia(g,_){return 120<_?_-120:1<=(k=((k=m8[_-1])>>4)*g+(8-(15&k)))?k:1;var k}function Fn(g,_,k){var F=I(k),G=g[_+=255&F].g-8;return 0<G&&(q(k,k.u+8),F=I(k),_+=g[_].value,_+=F&(1<<G)-1),q(k,k.u+g[_].g),g[_].value}function Hr(g,_,k){return k.g+=g.g,k.value+=g.value<<_>>>0,t(8>=k.g),g.g}function Rr(g,_,k){var F=g.xc;return t((_=F==0?0:g.vc[g.md*(k>>F)+(_>>F)])<g.Wb),g.Ya[_]}function J(g,_,k,F){var G=g.ab,X=g.c*_,Q=g.C;_=Q+_;var re=k,ae=F;for(F=g.Ta,k=g.Ua;0<G--;){var ue=g.gc[G],xe=Q,Oe=_,je=re,_e=ae,We=(ae=F,re=k,ue.Ea);switch(t(xe<Oe),t(Oe<=ue.nc),ue.hc){case 2:q0(je,_e,(Oe-xe)*We,ae,re);break;case 0:var Fe=xe,ye=Oe,we=ae,qe=re,Ge=(ot=ue).Ea;Fe==0&&(p1(je,_e,null,null,1,we,qe),Pt(je,_e+1,0,0,Ge-1,we,qe+1),_e+=Ge,qe+=Ge,++Fe);for(var ze=1<<ot.b,ft=ze-1,at=Qe(Ge,ot.b),At=ot.K,ot=ot.w+(Fe>>ot.b)*at;Fe<ye;){var er=At,hr=ot,Jt=1;for(xu(je,_e,we,qe-Ge,1,we,qe);Jt<Ge;){var Vt=(Jt&~ft)+ze;Vt>Ge&&(Vt=Ge),(0,Io[er[hr++]>>8&15])(je,_e+ +Jt,we,qe+Jt-Ge,Vt-Jt,we,qe+Jt),Jt=Vt}_e+=Ge,qe+=Ge,++Fe&ft||(ot+=at)}Oe!=ue.nc&&n(ae,re-We,ae,re+(Oe-xe-1)*We,We);break;case 1:for(We=je,ye=_e,Ge=(je=ue.Ea)-(qe=je&~(we=(_e=1<<ue.b)-1)),Fe=Qe(je,ue.b),ze=ue.K,ue=ue.w+(xe>>ue.b)*Fe;xe<Oe;){for(ft=ze,at=ue,At=new Ze,ot=ye+qe,er=ye+je;ye<ot;)Ut(ft[at++],At),bs(At,We,ye,_e,ae,re),ye+=_e,re+=_e;ye<er&&(Ut(ft[at++],At),bs(At,We,ye,Ge,ae,re),ye+=Ge,re+=Ge),++xe&we||(ue+=Fe)}break;case 3:if(je==ae&&_e==re&&0<ue.b){for(ye=ae,je=We=re+(Oe-xe)*We-(qe=(Oe-xe)*Qe(ue.Ea,ue.b)),_e=ae,we=re,Fe=[],qe=(Ge=qe)-1;0<=qe;--qe)Fe[qe]=_e[we+qe];for(qe=Ge-1;0<=qe;--qe)ye[je+qe]=Fe[qe];Ma(ue,xe,Oe,ae,We,ae,re)}else Ma(ue,xe,Oe,je,_e,ae,re)}re=F,ae=k}ae!=k&&n(F,k,re,ae,X)}function pe(g,_){var k=g.V,F=g.Ba+g.c*g.C,G=_-g.C;if(t(_<=g.l.o),t(16>=G),0<G){var X=g.l,Q=g.Ta,re=g.Ua,ae=X.width;if(J(g,G,k,F),G=re=[re],t((k=g.C)<(F=_)),t(X.v<X.va),F>X.o&&(F=X.o),k<X.j){var ue=X.j-k;k=X.j,G[0]+=ue*ae}if(k>=F?k=0:(G[0]+=4*X.v,X.ka=k-X.j,X.U=X.va-X.v,X.T=F-k,k=1),k){if(re=re[0],11>(k=g.ca).S){var xe=k.f.RGBA,Oe=(F=k.S,G=X.U,X=X.T,ue=xe.eb,xe.A),je=X;for(xe=xe.fb+g.Ma*xe.A;0<je--;){var _e=Q,We=re,Fe=G,ye=ue,we=xe;switch(F){case V0:la(_e,We,Fe,ye,we);break;case Y0:Yn(_e,We,Fe,ye,we);break;case g1:Yn(_e,We,Fe,ye,we),Ba(ye,we,0,Fe,1,0);break;case E5:Ji(_e,We,Fe,ye,we);break;case K0:fr(_e,We,Fe,ye,we,1);break;case x1:fr(_e,We,Fe,ye,we,1),Ba(ye,we,0,Fe,1,0);break;case X0:fr(_e,We,Fe,ye,we,0);break;case J0:fr(_e,We,Fe,ye,we,0),Ba(ye,we,1,Fe,1,0);break;case v1:Fo(_e,We,Fe,ye,we);break;case y1:Fo(_e,We,Fe,ye,we),Tr(ye,we,Fe,1,0);break;case P5:Xi(_e,We,Fe,ye,we);break;default:t(0)}re+=ae,xe+=Oe}g.Ma+=X}else alert("todo:EmitRescaledRowsYUVA");t(g.Ma<=k.height)}}g.C=_,t(g.C<=g.i)}function ie(g){var _;if(0<g.ua)return 0;for(_=0;_<g.Wb;++_){var k=g.Ya[_].G,F=g.Ya[_].H;if(0<k[1][F[1]+0].g||0<k[2][F[2]+0].g||0<k[3][F[3]+0].g)return 0}return 1}function oe(g,_,k,F,G,X){if(g.Z!=0){var Q=g.qd,re=g.rd;for(t(Bo[g.Z]!=null);_<k;++_)Bo[g.Z](Q,re,F,G,F,G,X),Q=F,re=G,G+=X;g.qd=Q,g.rd=re}}function de(g,_){var k=g.l.ma,F=k.Z==0||k.Z==1?g.l.j:g.C;if(F=g.C<F?F:g.C,t(_<=g.l.o),_>F){var G=g.l.width,X=k.ca,Q=k.tb+G*F,re=g.V,ae=g.Ba+g.c*F,ue=g.gc;t(g.ab==1),t(ue[0].hc==3),U0(ue[0],F,_,re,ae,X,Q),oe(k,F,_,X,Q,G)}g.C=g.Ma=_}function me(g,_,k,F,G,X,Q){var re=g.$/F,ae=g.$%F,ue=g.m,xe=g.s,Oe=k+g.$,je=Oe;G=k+F*G;var _e=k+F*X,We=280+xe.ua,Fe=g.Pb?re:16777216,ye=0<xe.ua?xe.Wa:null,we=xe.wc,qe=Oe<_e?Rr(xe,ae,re):null;t(g.C<X),t(_e<=G);var Ge=!1;e:for(;;){for(;Ge||Oe<_e;){var ze=0;if(re>=Fe){var ft=Oe-k;t((Fe=g).Pb),Fe.wd=Fe.m,Fe.xd=ft,0<Fe.s.ua&&Ae(Fe.s.Wa,Fe.s.vb),Fe=re+g8}if(ae&we||(qe=Rr(xe,ae,re)),t(qe!=null),qe.Qb&&(_[Oe]=qe.qb,Ge=!0),!Ge)if(Y(ue),qe.jc){ze=ue,ft=_;var at=Oe,At=qe.pd[I(ze)&Nn-1];t(qe.jc),256>At.g?(q(ze,ze.u+At.g),ft[at]=At.value,ze=0):(q(ze,ze.u+At.g-256),t(256<=At.value),ze=At.value),ze==0&&(Ge=!0)}else ze=Fn(qe.G[0],qe.H[0],ue);if(ue.h)break;if(Ge||256>ze){if(!Ge)if(qe.nd)_[Oe]=(qe.qb|ze<<8)>>>0;else{if(Y(ue),Ge=Fn(qe.G[1],qe.H[1],ue),Y(ue),ft=Fn(qe.G[2],qe.H[2],ue),at=Fn(qe.G[3],qe.H[3],ue),ue.h)break;_[Oe]=(at<<24|Ge<<16|ze<<8|ft)>>>0}if(Ge=!1,++Oe,++ae>=F&&(ae=0,++re,Q!=null&&re<=X&&!(re%16)&&Q(g,re),ye!=null))for(;je<Oe;)ze=_[je++],ye.X[(506832829*ze&4294967295)>>>ye.Mb]=ze}else if(280>ze){if(ze=xa(ze-256,ue),ft=Fn(qe.G[4],qe.H[4],ue),Y(ue),ft=ia(F,ft=xa(ft,ue)),ue.h)break;if(Oe-k<ft||G-Oe<ze)break e;for(at=0;at<ze;++at)_[Oe+at]=_[Oe+at-ft];for(Oe+=ze,ae+=ze;ae>=F;)ae-=F,++re,Q!=null&&re<=X&&!(re%16)&&Q(g,re);if(t(Oe<=G),ae&we&&(qe=Rr(xe,ae,re)),ye!=null)for(;je<Oe;)ze=_[je++],ye.X[(506832829*ze&4294967295)>>>ye.Mb]=ze}else{if(!(ze<We))break e;for(Ge=ze-280,t(ye!=null);je<Oe;)ze=_[je++],ye.X[(506832829*ze&4294967295)>>>ye.Mb]=ze;ze=Oe,t(!(Ge>>>(ft=ye).Xa)),_[ze]=ft.X[Ge],Ge=!0}Ge||t(ue.h==M(ue))}if(g.Pb&&ue.h&&Oe<G)t(g.m.h),g.a=5,g.m=g.wd,g.$=g.xd,0<g.s.ua&&Ae(g.s.vb,g.s.Wa);else{if(ue.h)break e;Q!=null&&Q(g,re>X?X:re),g.a=0,g.$=Oe-k}return 1}return g.a=3,0}function Pe(g){t(g!=null),g.vc=null,g.yc=null,g.Ya=null;var _=g.Wa;_!=null&&(_.X=null),g.vb=null,t(g!=null)}function Ie(){var g=new d1;return g==null?null:(g.a=0,g.xb=C5,Vn("Predictor","VP8LPredictors"),Vn("Predictor","VP8LPredictors_C"),Vn("PredictorAdd","VP8LPredictorsAdd"),Vn("PredictorAdd","VP8LPredictorsAdd_C"),q0=It,bs=_t,la=it,Yn=Dr,Fo=zt,Xi=An,Ji=Xt,C.VP8LMapColor32b=Tl,C.VP8LMapColor8b=z0,g)}function Te(g,_,k,F,G){var X=1,Q=[g],re=[_],ae=F.m,ue=F.s,xe=null,Oe=0;e:for(;;){if(k)for(;X&&ee(ae,1);){var je=Q,_e=re,We=F,Fe=1,ye=We.m,we=We.gc[We.ab],qe=ee(ye,2);if(We.Oc&1<<qe)X=0;else{switch(We.Oc|=1<<qe,we.hc=qe,we.Ea=je[0],we.nc=_e[0],we.K=[null],++We.ab,t(4>=We.ab),qe){case 0:case 1:we.b=ee(ye,3)+2,Fe=Te(Qe(we.Ea,we.b),Qe(we.nc,we.b),0,We,we.K),we.K=we.K[0];break;case 3:var Ge,ze=ee(ye,8)+1,ft=16<ze?0:4<ze?1:2<ze?2:3;if(je[0]=Qe(we.Ea,ft),we.b=ft,Ge=Fe=Te(ze,1,0,We,we.K)){var at,At=ze,ot=we,er=1<<(8>>ot.b),hr=i(er);if(hr==null)Ge=0;else{var Jt=ot.K[0],Vt=ot.w;for(hr[0]=ot.K[0][0],at=1;at<1*At;++at)hr[at]=Ue(Jt[Vt+at],hr[at-1]);for(;at<4*er;++at)hr[at]=0;ot.K[0]=null,ot.K[0]=hr,Ge=1}}Fe=Ge;break;case 2:break;default:t(0)}X=Fe}}if(Q=Q[0],re=re[0],X&&ee(ae,1)&&!(X=1<=(Oe=ee(ae,4))&&11>=Oe)){F.a=3;break e}var Sr;if(Sr=X)t:{var yr,Rt,en,ca=F,tn=Q,ua=re,dr=Oe,_a=k,Sa=ca.m,gn=ca.s,Tn=[null],Xn=1,Ua=0,ji=v8[dr];r:for(;;){if(_a&&ee(Sa,1)){var xn=ee(Sa,3)+2,to=Qe(tn,xn),Ns=Qe(ua,xn),Cl=to*Ns;if(!Te(to,Ns,0,ca,Tn))break r;for(Tn=Tn[0],gn.xc=xn,yr=0;yr<Cl;++yr){var $o=Tn[yr]>>8&65535;Tn[yr]=$o,$o>=Xn&&(Xn=$o+1)}}if(Sa.h)break r;for(Rt=0;5>Rt;++Rt){var $r=O5[Rt];!Rt&&0<dr&&($r+=1<<dr),Ua<$r&&(Ua=$r)}var S1=o(Xn*ji,E),B5=Xn,$5=o(B5,U);if($5==null)var th=null;else t(65536>=B5),th=$5;var Nu=i(Ua);if(th==null||Nu==null||S1==null){ca.a=1;break r}var rh=S1;for(yr=en=0;yr<Xn;++yr){var oi=th[yr],kl=oi.G,Ll=oi.H,q5=0,nh=1,U5=0;for(Rt=0;5>Rt;++Rt){$r=O5[Rt],kl[Rt]=rh,Ll[Rt]=en,!Rt&&0<dr&&($r+=1<<dr);a:{var ah,A1=$r,ih=ca,Tu=Nu,D8=rh,R8=en,N1=0,qo=ih.m,B8=ee(qo,1);if(a(Tu,0,0,A1),B8){var $8=ee(qo,1)+1,q8=ee(qo,1),z5=ee(qo,q8==0?1:8);Tu[z5]=1,$8==2&&(Tu[z5=ee(qo,8)]=1);var oh=1}else{var W5=i(19),H5=ee(qo,4)+4;if(19<H5){ih.a=3;var sh=0;break a}for(ah=0;ah<H5;++ah)W5[p8[ah]]=ee(qo,3);var T1=void 0,Eu=void 0,G5=ih,U8=W5,lh=A1,V5=Tu,E1=0,Uo=G5.m,Y5=8,K5=o(128,E);n:for(;j(K5,0,7,U8,19);){if(ee(Uo,1)){var z8=2+2*ee(Uo,3);if((T1=2+ee(Uo,z8))>lh)break n}else T1=lh;for(Eu=0;Eu<lh&&T1--;){Y(Uo);var X5=K5[0+(127&I(Uo))];q(Uo,Uo.u+X5.g);var Il=X5.value;if(16>Il)V5[Eu++]=Il,Il!=0&&(Y5=Il);else{var W8=Il==16,J5=Il-16,H8=h8[J5],Z5=ee(Uo,f8[J5])+H8;if(Eu+Z5>lh)break n;for(var G8=W8?Y5:0;0<Z5--;)V5[Eu++]=G8}}E1=1;break n}E1||(G5.a=3),oh=E1}(oh=oh&&!qo.h)&&(N1=j(D8,R8,8,Tu,A1)),oh&&N1!=0?sh=N1:(ih.a=3,sh=0)}if(sh==0)break r;if(nh&&d8[Rt]==1&&(nh=rh[en].g==0),q5+=rh[en].g,en+=sh,3>=Rt){var Pu,P1=Nu[0];for(Pu=1;Pu<$r;++Pu)Nu[Pu]>P1&&(P1=Nu[Pu]);U5+=P1}}if(oi.nd=nh,oi.Qb=0,nh&&(oi.qb=(kl[3][Ll[3]+0].value<<24|kl[1][Ll[1]+0].value<<16|kl[2][Ll[2]+0].value)>>>0,q5==0&&256>kl[0][Ll[0]+0].value&&(oi.Qb=1,oi.qb+=kl[0][Ll[0]+0].value<<8)),oi.jc=!oi.Qb&&6>U5,oi.jc){var ch,ro=oi;for(ch=0;ch<Nn;++ch){var zo=ch,Wo=ro.pd[zo],uh=ro.G[0][ro.H[0]+zo];256<=uh.value?(Wo.g=uh.g+256,Wo.value=uh.value):(Wo.g=0,Wo.value=0,zo>>=Hr(uh,8,Wo),zo>>=Hr(ro.G[1][ro.H[1]+zo],16,Wo),zo>>=Hr(ro.G[2][ro.H[2]+zo],0,Wo),Hr(ro.G[3][ro.H[3]+zo],24,Wo))}}}gn.vc=Tn,gn.Wb=Xn,gn.Ya=th,gn.yc=S1,Sr=1;break t}Sr=0}if(!(X=Sr)){F.a=3;break e}if(0<Oe){if(ue.ua=1<<Oe,!Se(ue.Wa,Oe)){F.a=1,X=0;break e}}else ue.ua=0;var O1=F,Q5=Q,V8=re,j1=O1.s,C1=j1.xc;if(O1.c=Q5,O1.i=V8,j1.md=Qe(Q5,C1),j1.wc=C1==0?-1:(1<<C1)-1,k){F.xb=A8;break e}if((xe=i(Q*re))==null){F.a=1,X=0;break e}X=(X=me(F,xe,0,Q,re,re,null))&&!ae.h;break e}return X?(G!=null?G[0]=xe:(t(xe==null),t(k)),F.$=0,k||Pe(ue)):Pe(ue),X}function Ce(g,_){var k=g.c*g.i,F=k+_+16*_;return t(g.c<=_),g.V=i(F),g.V==null?(g.Ta=null,g.Ua=0,g.a=1,0):(g.Ta=g.V,g.Ua=g.Ba+k+_,1)}function ke(g,_){var k=g.C,F=_-k,G=g.V,X=g.Ba+g.c*k;for(t(_<=g.l.o);0<F;){var Q=16<F?16:F,re=g.l.ma,ae=g.l.width,ue=ae*Q,xe=re.ca,Oe=re.tb+ae*k,je=g.Ta,_e=g.Ua;J(g,Q,G,X),Yr(je,_e,xe,Oe,ue),oe(re,k,k+Q,xe,Oe,ae),F-=Q,G+=Q*g.c,k+=Q}t(k==_),g.C=g.Ma=_}function Ye(){this.ub=this.yd=this.td=this.Rb=0}function et(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function lt(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Xe(){this.Yb=(function(){var g=[];return(function _(k,F,G){for(var X=G[F],Q=0;Q<X&&(k.push(G.length>F+1?[]:0),!(G.length<F+1));Q++)_(k[Q],F+1,G)})(g,0,[3,11]),g})()}function st(){this.jb=i(3),this.Wc=s([4,8],Xe),this.Xc=s([4,17],Xe)}function Ot(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function rr(){this.ld=this.La=this.dd=this.tc=0}function xr(){this.Na=this.la=0}function Zr(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ei(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Vi(){this.uc=this.M=this.Nb=0,this.wa=Array(new rr),this.Y=0,this.ya=Array(new ei),this.aa=0,this.l=new Ti}function Ni(){this.y=i(16),this.f=i(8),this.ea=i(8)}function ti(){this.cb=this.a=0,this.sc="",this.m=new ce,this.Od=new Ye,this.Kc=new et,this.ed=new Ot,this.Qa=new lt,this.Ic=this.$c=this.Aa=0,this.D=new Vi,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,ce),this.ia=0,this.pb=o(4,Zr),this.Pa=new st,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ni),this.Hd=0,this.rb=Array(new xr),this.sb=0,this.wa=Array(new rr),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new ei),this.L=this.aa=0,this.gd=s([4,2],rr),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Ti(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function ya(){var g=new ti;return g!=null&&(g.a=0,g.sc="OK",g.cb=0,g.Xb=0,Su||(Su=T0)),g}function Gr(g,_,k){return g.a==0&&(g.a=_,g.sc=k,g.cb=0),0}function A0(g,_,k){return 3<=k&&g[_+0]==157&&g[_+1]==1&&g[_+2]==42}function N0(g,_){if(g==null)return 0;if(g.a=0,g.sc="OK",_==null)return Gr(g,2,"null VP8Io passed to VP8GetHeaders()");var k=_.data,F=_.w,G=_.ha;if(4>G)return Gr(g,7,"Truncated header.");var X=k[F+0]|k[F+1]<<8|k[F+2]<<16,Q=g.Od;if(Q.Rb=!(1&X),Q.td=X>>1&7,Q.yd=X>>4&1,Q.ub=X>>5,3<Q.td)return Gr(g,3,"Incorrect keyframe parameters.");if(!Q.yd)return Gr(g,4,"Frame not displayable.");F+=3,G-=3;var re=g.Kc;if(Q.Rb){if(7>G)return Gr(g,7,"cannot parse picture header");if(!A0(k,F,G))return Gr(g,3,"Bad code word");re.c=16383&(k[F+4]<<8|k[F+3]),re.Td=k[F+4]>>6,re.i=16383&(k[F+6]<<8|k[F+5]),re.Ud=k[F+6]>>6,F+=7,G-=7,g.za=re.c+15>>4,g.Ub=re.i+15>>4,_.width=re.c,_.height=re.i,_.Da=0,_.j=0,_.v=0,_.va=_.width,_.o=_.height,_.da=0,_.ib=_.width,_.hb=_.height,_.U=_.width,_.T=_.height,a((X=g.Pa).jb,0,255,X.jb.length),t((X=g.Qa)!=null),X.Cb=0,X.Bb=0,X.Fb=1,a(X.Zb,0,0,X.Zb.length),a(X.Lb,0,0,X.Lb)}if(Q.ub>G)return Gr(g,7,"bad partition length");H(X=g.m,k,F,Q.ub),F+=Q.ub,G-=Q.ub,Q.Rb&&(re.Ld=ne(X),re.Kd=ne(X)),re=g.Qa;var ae,ue=g.Pa;if(t(X!=null),t(re!=null),re.Cb=ne(X),re.Cb){if(re.Bb=ne(X),ne(X)){for(re.Fb=ne(X),ae=0;4>ae;++ae)re.Zb[ae]=ne(X)?z(X,7):0;for(ae=0;4>ae;++ae)re.Lb[ae]=ne(X)?z(X,6):0}if(re.Bb)for(ae=0;3>ae;++ae)ue.jb[ae]=ne(X)?B(X,8):255}else re.Bb=0;if(X.Ka)return Gr(g,3,"cannot parse segment header");if((re=g.ed).zd=ne(X),re.Tb=B(X,6),re.wb=B(X,3),re.Pc=ne(X),re.Pc&&ne(X)){for(ue=0;4>ue;++ue)ne(X)&&(re.vd[ue]=z(X,6));for(ue=0;4>ue;++ue)ne(X)&&(re.od[ue]=z(X,6))}if(g.L=re.Tb==0?0:re.zd?1:2,X.Ka)return Gr(g,3,"cannot parse filter header");var xe=G;if(G=ae=F,F=ae+xe,re=xe,g.Xb=(1<<B(g.m,2))-1,xe<3*(ue=g.Xb))k=7;else{for(ae+=3*ue,re-=3*ue,xe=0;xe<ue;++xe){var Oe=k[G+0]|k[G+1]<<8|k[G+2]<<16;Oe>re&&(Oe=re),H(g.Jc[+xe],k,ae,Oe),ae+=Oe,re-=Oe,G+=3}H(g.Jc[+ue],k,ae,re),k=ae<F?0:5}if(k!=0)return Gr(g,k,"cannot parse partitions");for(k=B(ae=g.m,7),G=ne(ae)?z(ae,4):0,F=ne(ae)?z(ae,4):0,re=ne(ae)?z(ae,4):0,ue=ne(ae)?z(ae,4):0,ae=ne(ae)?z(ae,4):0,xe=g.Qa,Oe=0;4>Oe;++Oe){if(xe.Cb){var je=xe.Zb[Oe];xe.Fb||(je+=k)}else{if(0<Oe){g.pb[Oe]=g.pb[0];continue}je=k}var _e=g.pb[Oe];_e.Sc[0]=b1[ba(je+G,127)],_e.Sc[1]=w1[ba(je+0,127)],_e.Eb[0]=2*b1[ba(je+F,127)],_e.Eb[1]=101581*w1[ba(je+re,127)]>>16,8>_e.Eb[1]&&(_e.Eb[1]=8),_e.Qc[0]=b1[ba(je+ue,117)],_e.Qc[1]=w1[ba(je+ae,127)],_e.lc=je+ae}if(!Q.Rb)return Gr(g,4,"Not a key frame.");for(ne(X),Q=g.Pa,k=0;4>k;++k){for(G=0;8>G;++G)for(F=0;3>F;++F)for(re=0;11>re;++re)ue=K(X,_8[k][G][F][re])?B(X,8):b8[k][G][F][re],Q.Wc[k][G].Yb[F][re]=ue;for(G=0;17>G;++G)Q.Xc[k][G]=Q.Wc[k][S8[G]]}return g.kc=ne(X),g.kc&&(g.Bd=B(X,8)),g.cb=1}function T0(g,_,k,F,G,X,Q){var re=_[G].Yb[k];for(k=0;16>G;++G){if(!K(g,re[k+0]))return G;for(;!K(g,re[k+1]);)if(re=_[++G].Yb[0],k=0,G==16)return 16;var ae=_[G+1].Yb;if(K(g,re[k+2])){var ue=g,xe=0;if(K(ue,(je=re)[(Oe=k)+3]))if(K(ue,je[Oe+6])){for(re=0,Oe=2*(xe=K(ue,je[Oe+8]))+(je=K(ue,je[Oe+9+xe])),xe=0,je=x8[Oe];je[re];++re)xe+=xe+K(ue,je[re]);xe+=3+(8<<Oe)}else K(ue,je[Oe+7])?(xe=7+2*K(ue,165),xe+=K(ue,145)):xe=5+K(ue,159);else xe=K(ue,je[Oe+4])?3+K(ue,je[Oe+5]):2;re=ae[2]}else xe=1,re=ae[1];ae=Q+y8[G],0>(ue=g).b&&fe(ue);var Oe,je=ue.b,_e=(Oe=ue.Ca>>1)-(ue.I>>je)>>31;--ue.b,ue.Ca+=_e,ue.Ca|=1,ue.I-=(Oe+1&_e)<<je,X[ae]=((xe^_e)-_e)*F[(0<G)+0]}return 16}function eu(g){var _=g.rb[g.sb-1];_.la=0,_.Na=0,a(g.zc,0,0,g.zc.length),g.ja=0}function Xp(g,_){if(g==null)return 0;if(_==null)return Gr(g,2,"NULL VP8Io parameter in VP8Decode().");if(!g.cb&&!N0(g,_))return 0;if(t(g.cb),_.ac==null||_.ac(_)){_.ob&&(g.L=0);var k=eh[g.L];if(g.L==2?(g.yb=0,g.zb=0):(g.yb=_.v-k>>4,g.zb=_.j-k>>4,0>g.yb&&(g.yb=0),0>g.zb&&(g.zb=0)),g.Va=_.o+15+k>>4,g.Hb=_.va+15+k>>4,g.Hb>g.za&&(g.Hb=g.za),g.Va>g.Ub&&(g.Va=g.Ub),0<g.L){var F=g.ed;for(k=0;4>k;++k){var G;if(g.Qa.Cb){var X=g.Qa.Lb[k];g.Qa.Fb||(X+=F.Tb)}else X=F.Tb;for(G=0;1>=G;++G){var Q=g.gd[k][G],re=X;if(F.Pc&&(re+=F.vd[0],G&&(re+=F.od[0])),0<(re=0>re?0:63<re?63:re)){var ae=re;0<F.wb&&(ae=4<F.wb?ae>>2:ae>>1)>9-F.wb&&(ae=9-F.wb),1>ae&&(ae=1),Q.dd=ae,Q.tc=2*re+ae,Q.ld=40<=re?2:15<=re?1:0}else Q.tc=0;Q.La=G}}}k=0}else Gr(g,6,"Frame setup failed"),k=g.a;if(k=k==0){if(k){g.$c=0,0<g.Aa||(g.Ic=M8);e:{k=g.Ic,F=4*(ae=g.za);var ue=32*ae,xe=ae+1,Oe=0<g.L?ae*(0<g.Aa?2:1):0,je=(g.Aa==2?2:1)*ae;if((Q=F+832+(G=3*(16*k+eh[g.L])/2*ue)+(X=g.Fa!=null&&0<g.Fa.length?g.Kc.c*g.Kc.i:0))!=Q)k=0;else{if(Q>g.Vb){if(g.Vb=0,g.Ec=i(Q),g.Fc=0,g.Ec==null){k=Gr(g,1,"no memory during frame initialization.");break e}g.Vb=Q}Q=g.Ec,re=g.Fc,g.Ac=Q,g.Bc=re,re+=F,g.Gd=o(ue,Ni),g.Hd=0,g.rb=o(xe+1,xr),g.sb=1,g.wa=Oe?o(Oe,rr):null,g.Y=0,g.D.Nb=0,g.D.wa=g.wa,g.D.Y=g.Y,0<g.Aa&&(g.D.Y+=ae),t(!0),g.oc=Q,g.pc=re,re+=832,g.ya=o(je,ei),g.aa=0,g.D.ya=g.ya,g.D.aa=g.aa,g.Aa==2&&(g.D.aa+=ae),g.R=16*ae,g.B=8*ae,ae=(ue=eh[g.L])*g.R,ue=ue/2*g.B,g.sa=Q,g.ta=re+ae,g.qa=g.sa,g.ra=g.ta+16*k*g.R+ue,g.Ha=g.qa,g.Ia=g.ra+8*k*g.B+ue,g.$c=0,re+=G,g.mb=X?Q:null,g.nb=X?re:null,t(re+X<=g.Fc+g.Vb),eu(g),a(g.Ac,g.Bc,0,F),k=1}}if(k){if(_.ka=0,_.y=g.sa,_.O=g.ta,_.f=g.qa,_.N=g.ra,_.ea=g.Ha,_.Vd=g.Ia,_.fa=g.R,_.Rc=g.B,_.F=null,_.J=0,!H0){for(k=-255;255>=k;++k)cn[255+k]=0>k?-k:k;for(k=-1020;1020>=k;++k)Qi[1020+k]=-128>k?-128:127<k?127:k;for(k=-112;112>=k;++k)_u[112+k]=-16>k?-16:15<k?15:k;for(k=-255;510>=k;++k)jl[255+k]=0>k?0:255<k?255:k;H0=1}El=Qp,Zi=Jp,yu=P0,Kn=Zp,Da=O0,Vr=E0,Pl=ou,W0=xs,bu=h1,ws=su,_s=f1,Mo=xl,Ss=lu,Ol=R0,As=D0,Do=Pi,wu=Ki,Ra=u1,ii[0]=Ei,ii[1]=e1,ii[2]=a1,ii[3]=i1,ii[4]=k0,ii[5]=vl,ii[6]=L0,ii[7]=nu,ii[8]=s1,ii[9]=o1,Ro[0]=j0,Ro[1]=r1,Ro[2]=Yi,Ro[3]=pl,Ro[4]=Mn,Ro[5]=n1,Ro[6]=C0,eo[0]=Co,eo[1]=t1,eo[2]=l1,eo[3]=au,eo[4]=gs,eo[5]=c1,eo[6]=iu,k=1}else k=0}k&&(k=(function(_e,We){for(_e.M=0;_e.M<_e.Va;++_e.M){var Fe,ye=_e.Jc[_e.M&_e.Xb],we=_e.m,qe=_e;for(Fe=0;Fe<qe.za;++Fe){var Ge=we,ze=qe,ft=ze.Ac,at=ze.Bc+4*Fe,At=ze.zc,ot=ze.ya[ze.aa+Fe];if(ze.Qa.Bb?ot.$b=K(Ge,ze.Pa.jb[0])?2+K(Ge,ze.Pa.jb[2]):K(Ge,ze.Pa.jb[1]):ot.$b=0,ze.kc&&(ot.Ad=K(Ge,ze.Bd)),ot.Za=!K(Ge,145)+0,ot.Za){var er=ot.Ob,hr=0;for(ze=0;4>ze;++ze){var Jt,Vt=At[0+ze];for(Jt=0;4>Jt;++Jt){Vt=w8[ft[at+Jt]][Vt];for(var Sr=j5[K(Ge,Vt[0])];0<Sr;)Sr=j5[2*Sr+K(Ge,Vt[Sr])];Vt=-Sr,ft[at+Jt]=Vt}n(er,hr,ft,at,4),hr+=4,At[0+ze]=Vt}}else Vt=K(Ge,156)?K(Ge,128)?1:3:K(Ge,163)?2:0,ot.Ob[0]=Vt,a(ft,at,Vt,4),a(At,0,Vt,4);ot.Dd=K(Ge,142)?K(Ge,114)?K(Ge,183)?1:3:2:0}if(qe.m.Ka)return Gr(_e,7,"Premature end-of-partition0 encountered.");for(;_e.ja<_e.za;++_e.ja){if(qe=ye,Ge=(we=_e).rb[we.sb-1],ft=we.rb[we.sb+we.ja],Fe=we.ya[we.aa+we.ja],at=we.kc?Fe.Ad:0)Ge.la=ft.la=0,Fe.Za||(Ge.Na=ft.Na=0),Fe.Hc=0,Fe.Gc=0,Fe.ia=0;else{var yr,Rt;if(Ge=ft,ft=qe,at=we.Pa.Xc,At=we.ya[we.aa+we.ja],ot=we.pb[At.$b],ze=At.ad,er=0,hr=we.rb[we.sb-1],Vt=Jt=0,a(ze,er,0,384),At.Za)var en=0,ca=at[3];else{Sr=i(16);var tn=Ge.Na+hr.Na;if(tn=Su(ft,at[1],tn,ot.Eb,0,Sr,0),Ge.Na=hr.Na=(0<tn)+0,1<tn)El(Sr,0,ze,er);else{var ua=Sr[0]+3>>3;for(Sr=0;256>Sr;Sr+=16)ze[er+Sr]=ua}en=1,ca=at[0]}var dr=15&Ge.la,_a=15&hr.la;for(Sr=0;4>Sr;++Sr){var Sa=1&_a;for(ua=Rt=0;4>ua;++ua)dr=dr>>1|(Sa=(tn=Su(ft,ca,tn=Sa+(1&dr),ot.Sc,en,ze,er))>en)<<7,Rt=Rt<<2|(3<tn?3:1<tn?2:ze[er+0]!=0),er+=16;dr>>=4,_a=_a>>1|Sa<<7,Jt=(Jt<<8|Rt)>>>0}for(ca=dr,en=_a>>4,yr=0;4>yr;yr+=2){for(Rt=0,dr=Ge.la>>4+yr,_a=hr.la>>4+yr,Sr=0;2>Sr;++Sr){for(Sa=1&_a,ua=0;2>ua;++ua)tn=Sa+(1&dr),dr=dr>>1|(Sa=0<(tn=Su(ft,at[2],tn,ot.Qc,0,ze,er)))<<3,Rt=Rt<<2|(3<tn?3:1<tn?2:ze[er+0]!=0),er+=16;dr>>=2,_a=_a>>1|Sa<<5}Vt|=Rt<<4*yr,ca|=dr<<4<<yr,en|=(240&_a)<<yr}Ge.la=ca,hr.la=en,At.Hc=Jt,At.Gc=Vt,At.ia=43690&Vt?0:ot.ia,at=!(Jt|Vt)}if(0<we.L&&(we.wa[we.Y+we.ja]=we.gd[Fe.$b][Fe.Za],we.wa[we.Y+we.ja].La|=!at),qe.Ka)return Gr(_e,7,"Premature end-of-file encountered.")}if(eu(_e),we=We,qe=1,Fe=(ye=_e).D,Ge=0<ye.L&&ye.M>=ye.zb&&ye.M<=ye.Va,ye.Aa==0)e:{if(Fe.M=ye.M,Fe.uc=Ge,pu(ye,Fe),qe=1,Fe=(Rt=ye.D).Nb,Ge=(Vt=eh[ye.L])*ye.R,ft=Vt/2*ye.B,Sr=16*Fe*ye.R,ua=8*Fe*ye.B,at=ye.sa,At=ye.ta-Ge+Sr,ot=ye.qa,ze=ye.ra-ft+ua,er=ye.Ha,hr=ye.Ia-ft+ua,_a=(dr=Rt.M)==0,Jt=dr>=ye.Va-1,ye.Aa==2&&pu(ye,Rt),Rt.uc)for(Sa=(tn=ye).D.M,t(tn.D.uc),Rt=tn.yb;Rt<tn.Hb;++Rt){en=Rt,ca=Sa;var gn=(Tn=($r=tn).D).Nb;yr=$r.R;var Tn=Tn.wa[Tn.Y+en],Xn=$r.sa,Ua=$r.ta+16*gn*yr+16*en,ji=Tn.dd,xn=Tn.tc;if(xn!=0)if(t(3<=xn),$r.L==1)0<en&&Do(Xn,Ua,yr,xn+4),Tn.La&&Ra(Xn,Ua,yr,xn),0<ca&&As(Xn,Ua,yr,xn+4),Tn.La&&wu(Xn,Ua,yr,xn);else{var to=$r.B,Ns=$r.qa,Cl=$r.ra+8*gn*to+8*en,$o=$r.Ha,$r=$r.Ia+8*gn*to+8*en;gn=Tn.ld,0<en&&(W0(Xn,Ua,yr,xn+4,ji,gn),ws(Ns,Cl,$o,$r,to,xn+4,ji,gn)),Tn.La&&(Mo(Xn,Ua,yr,xn,ji,gn),Ol(Ns,Cl,$o,$r,to,xn,ji,gn)),0<ca&&(Pl(Xn,Ua,yr,xn+4,ji,gn),bu(Ns,Cl,$o,$r,to,xn+4,ji,gn)),Tn.La&&(_s(Xn,Ua,yr,xn,ji,gn),Ss(Ns,Cl,$o,$r,to,xn,ji,gn))}}if(ye.ia&&alert("todo:DitherRow"),we.put!=null){if(Rt=16*dr,dr=16*(dr+1),_a?(we.y=ye.sa,we.O=ye.ta+Sr,we.f=ye.qa,we.N=ye.ra+ua,we.ea=ye.Ha,we.W=ye.Ia+ua):(Rt-=Vt,we.y=at,we.O=At,we.f=ot,we.N=ze,we.ea=er,we.W=hr),Jt||(dr-=Vt),dr>we.o&&(dr=we.o),we.F=null,we.J=null,ye.Fa!=null&&0<ye.Fa.length&&Rt<dr&&(we.J=hu(ye,we,Rt,dr-Rt),we.F=ye.mb,we.F==null&&we.F.length==0)){qe=Gr(ye,3,"Could not decode alpha data.");break e}Rt<we.j&&(Vt=we.j-Rt,Rt=we.j,t(!(1&Vt)),we.O+=ye.R*Vt,we.N+=ye.B*(Vt>>1),we.W+=ye.B*(Vt>>1),we.F!=null&&(we.J+=we.width*Vt)),Rt<dr&&(we.O+=we.v,we.N+=we.v>>1,we.W+=we.v>>1,we.F!=null&&(we.J+=we.v),we.ka=Rt-we.j,we.U=we.va-we.v,we.T=dr-Rt,qe=we.put(we))}Fe+1!=ye.Ic||Jt||(n(ye.sa,ye.ta-Ge,at,At+16*ye.R,Ge),n(ye.qa,ye.ra-ft,ot,ze+8*ye.B,ft),n(ye.Ha,ye.Ia-ft,er,hr+8*ye.B,ft))}if(!qe)return Gr(_e,6,"Output aborted.")}return 1})(g,_)),_.bc!=null&&_.bc(_),k&=1}return k?(g.cb=0,k):0}function ri(g,_,k,F,G){G=g[_+k+32*F]+(G>>3),g[_+k+32*F]=-256&G?0>G?0:255:G}function dl(g,_,k,F,G,X){ri(g,_,0,k,F+G),ri(g,_,1,k,F+X),ri(g,_,2,k,F-X),ri(g,_,3,k,F-G)}function oa(g){return(20091*g>>16)+g}function tu(g,_,k,F){var G,X=0,Q=i(16);for(G=0;4>G;++G){var re=g[_+0]+g[_+8],ae=g[_+0]-g[_+8],ue=(35468*g[_+4]>>16)-oa(g[_+12]),xe=oa(g[_+4])+(35468*g[_+12]>>16);Q[X+0]=re+xe,Q[X+1]=ae+ue,Q[X+2]=ae-ue,Q[X+3]=re-xe,X+=4,_++}for(G=X=0;4>G;++G)re=(g=Q[X+0]+4)+Q[X+8],ae=g-Q[X+8],ue=(35468*Q[X+4]>>16)-oa(Q[X+12]),ri(k,F,0,0,re+(xe=oa(Q[X+4])+(35468*Q[X+12]>>16))),ri(k,F,1,0,ae+ue),ri(k,F,2,0,ae-ue),ri(k,F,3,0,re-xe),X++,F+=32}function E0(g,_,k,F){var G=g[_+0]+4,X=35468*g[_+4]>>16,Q=oa(g[_+4]),re=35468*g[_+1]>>16;dl(k,F,0,G+Q,g=oa(g[_+1]),re),dl(k,F,1,G+X,g,re),dl(k,F,2,G-X,g,re),dl(k,F,3,G-Q,g,re)}function Jp(g,_,k,F,G){tu(g,_,k,F),G&&tu(g,_+16,k,F+4)}function P0(g,_,k,F){Zi(g,_+0,k,F,1),Zi(g,_+32,k,F+128,1)}function Zp(g,_,k,F){var G;for(g=g[_+0]+4,G=0;4>G;++G)for(_=0;4>_;++_)ri(k,F,_,G,g)}function O0(g,_,k,F){g[_+0]&&Kn(g,_+0,k,F),g[_+16]&&Kn(g,_+16,k,F+4),g[_+32]&&Kn(g,_+32,k,F+128),g[_+48]&&Kn(g,_+48,k,F+128+4)}function Qp(g,_,k,F){var G,X=i(16);for(G=0;4>G;++G){var Q=g[_+0+G]+g[_+12+G],re=g[_+4+G]+g[_+8+G],ae=g[_+4+G]-g[_+8+G],ue=g[_+0+G]-g[_+12+G];X[0+G]=Q+re,X[8+G]=Q-re,X[4+G]=ue+ae,X[12+G]=ue-ae}for(G=0;4>G;++G)Q=(g=X[0+4*G]+3)+X[3+4*G],re=X[1+4*G]+X[2+4*G],ae=X[1+4*G]-X[2+4*G],ue=g-X[3+4*G],k[F+0]=Q+re>>3,k[F+16]=ue+ae>>3,k[F+32]=Q-re>>3,k[F+48]=ue-ae>>3,F+=64}function ru(g,_,k){var F,G=_-32,X=wa,Q=255-g[G-1];for(F=0;F<k;++F){var re,ae=X,ue=Q+g[_-1];for(re=0;re<k;++re)g[_+re]=ae[ue+g[G+re]];_+=32}}function e1(g,_){ru(g,_,4)}function t1(g,_){ru(g,_,8)}function r1(g,_){ru(g,_,16)}function Yi(g,_){var k;for(k=0;16>k;++k)n(g,_+32*k,g,_-32,16)}function pl(g,_){var k;for(k=16;0<k;--k)a(g,_,g[_-1],16),_+=32}function ml(g,_,k){var F;for(F=0;16>F;++F)a(_,k+32*F,g,16)}function j0(g,_){var k,F=16;for(k=0;16>k;++k)F+=g[_-1+32*k]+g[_+k-32];ml(F>>5,g,_)}function Mn(g,_){var k,F=8;for(k=0;16>k;++k)F+=g[_-1+32*k];ml(F>>4,g,_)}function n1(g,_){var k,F=8;for(k=0;16>k;++k)F+=g[_+k-32];ml(F>>4,g,_)}function C0(g,_){ml(128,g,_)}function Ct(g,_,k){return g+2*_+k+2>>2}function a1(g,_){var k,F=_-32;for(F=new Uint8Array([Ct(g[F-1],g[F+0],g[F+1]),Ct(g[F+0],g[F+1],g[F+2]),Ct(g[F+1],g[F+2],g[F+3]),Ct(g[F+2],g[F+3],g[F+4])]),k=0;4>k;++k)n(g,_+32*k,F,0,F.length)}function i1(g,_){var k=g[_-1],F=g[_-1+32],G=g[_-1+64],X=g[_-1+96];he(g,_+0,16843009*Ct(g[_-1-32],k,F)),he(g,_+32,16843009*Ct(k,F,G)),he(g,_+64,16843009*Ct(F,G,X)),he(g,_+96,16843009*Ct(G,X,X))}function Ei(g,_){var k,F=4;for(k=0;4>k;++k)F+=g[_+k-32]+g[_-1+32*k];for(F>>=3,k=0;4>k;++k)a(g,_+32*k,F,4)}function k0(g,_){var k=g[_-1+0],F=g[_-1+32],G=g[_-1+64],X=g[_-1-32],Q=g[_+0-32],re=g[_+1-32],ae=g[_+2-32],ue=g[_+3-32];g[_+0+96]=Ct(F,G,g[_-1+96]),g[_+1+96]=g[_+0+64]=Ct(k,F,G),g[_+2+96]=g[_+1+64]=g[_+0+32]=Ct(X,k,F),g[_+3+96]=g[_+2+64]=g[_+1+32]=g[_+0+0]=Ct(Q,X,k),g[_+3+64]=g[_+2+32]=g[_+1+0]=Ct(re,Q,X),g[_+3+32]=g[_+2+0]=Ct(ae,re,Q),g[_+3+0]=Ct(ue,ae,re)}function L0(g,_){var k=g[_+1-32],F=g[_+2-32],G=g[_+3-32],X=g[_+4-32],Q=g[_+5-32],re=g[_+6-32],ae=g[_+7-32];g[_+0+0]=Ct(g[_+0-32],k,F),g[_+1+0]=g[_+0+32]=Ct(k,F,G),g[_+2+0]=g[_+1+32]=g[_+0+64]=Ct(F,G,X),g[_+3+0]=g[_+2+32]=g[_+1+64]=g[_+0+96]=Ct(G,X,Q),g[_+3+32]=g[_+2+64]=g[_+1+96]=Ct(X,Q,re),g[_+3+64]=g[_+2+96]=Ct(Q,re,ae),g[_+3+96]=Ct(re,ae,ae)}function vl(g,_){var k=g[_-1+0],F=g[_-1+32],G=g[_-1+64],X=g[_-1-32],Q=g[_+0-32],re=g[_+1-32],ae=g[_+2-32],ue=g[_+3-32];g[_+0+0]=g[_+1+64]=X+Q+1>>1,g[_+1+0]=g[_+2+64]=Q+re+1>>1,g[_+2+0]=g[_+3+64]=re+ae+1>>1,g[_+3+0]=ae+ue+1>>1,g[_+0+96]=Ct(G,F,k),g[_+0+64]=Ct(F,k,X),g[_+0+32]=g[_+1+96]=Ct(k,X,Q),g[_+1+32]=g[_+2+96]=Ct(X,Q,re),g[_+2+32]=g[_+3+96]=Ct(Q,re,ae),g[_+3+32]=Ct(re,ae,ue)}function nu(g,_){var k=g[_+0-32],F=g[_+1-32],G=g[_+2-32],X=g[_+3-32],Q=g[_+4-32],re=g[_+5-32],ae=g[_+6-32],ue=g[_+7-32];g[_+0+0]=k+F+1>>1,g[_+1+0]=g[_+0+64]=F+G+1>>1,g[_+2+0]=g[_+1+64]=G+X+1>>1,g[_+3+0]=g[_+2+64]=X+Q+1>>1,g[_+0+32]=Ct(k,F,G),g[_+1+32]=g[_+0+96]=Ct(F,G,X),g[_+2+32]=g[_+1+96]=Ct(G,X,Q),g[_+3+32]=g[_+2+96]=Ct(X,Q,re),g[_+3+64]=Ct(Q,re,ae),g[_+3+96]=Ct(re,ae,ue)}function o1(g,_){var k=g[_-1+0],F=g[_-1+32],G=g[_-1+64],X=g[_-1+96];g[_+0+0]=k+F+1>>1,g[_+2+0]=g[_+0+32]=F+G+1>>1,g[_+2+32]=g[_+0+64]=G+X+1>>1,g[_+1+0]=Ct(k,F,G),g[_+3+0]=g[_+1+32]=Ct(F,G,X),g[_+3+32]=g[_+1+64]=Ct(G,X,X),g[_+3+64]=g[_+2+64]=g[_+0+96]=g[_+1+96]=g[_+2+96]=g[_+3+96]=X}function s1(g,_){var k=g[_-1+0],F=g[_-1+32],G=g[_-1+64],X=g[_-1+96],Q=g[_-1-32],re=g[_+0-32],ae=g[_+1-32],ue=g[_+2-32];g[_+0+0]=g[_+2+32]=k+Q+1>>1,g[_+0+32]=g[_+2+64]=F+k+1>>1,g[_+0+64]=g[_+2+96]=G+F+1>>1,g[_+0+96]=X+G+1>>1,g[_+3+0]=Ct(re,ae,ue),g[_+2+0]=Ct(Q,re,ae),g[_+1+0]=g[_+3+32]=Ct(k,Q,re),g[_+1+32]=g[_+3+64]=Ct(F,k,Q),g[_+1+64]=g[_+3+96]=Ct(G,F,k),g[_+1+96]=Ct(X,G,F)}function l1(g,_){var k;for(k=0;8>k;++k)n(g,_+32*k,g,_-32,8)}function au(g,_){var k;for(k=0;8>k;++k)a(g,_,g[_-1],8),_+=32}function vs(g,_,k){var F;for(F=0;8>F;++F)a(_,k+32*F,g,8)}function Co(g,_){var k,F=8;for(k=0;8>k;++k)F+=g[_+k-32]+g[_-1+32*k];vs(F>>4,g,_)}function c1(g,_){var k,F=4;for(k=0;8>k;++k)F+=g[_+k-32];vs(F>>3,g,_)}function gs(g,_){var k,F=4;for(k=0;8>k;++k)F+=g[_-1+32*k];vs(F>>3,g,_)}function iu(g,_){vs(128,g,_)}function gl(g,_,k){var F=g[_-k],G=g[_+0],X=3*(G-F)+m1[1020+g[_-2*k]-g[_+k]],Q=G0[112+(X+4>>3)];g[_-k]=wa[255+F+G0[112+(X+3>>3)]],g[_+0]=wa[255+G-Q]}function I0(g,_,k,F){var G=g[_+0],X=g[_+k];return $a[255+g[_-2*k]-g[_-k]]>F||$a[255+X-G]>F}function F0(g,_,k,F){return 4*$a[255+g[_-k]-g[_+0]]+$a[255+g[_-2*k]-g[_+k]]<=F}function M0(g,_,k,F,G){var X=g[_-3*k],Q=g[_-2*k],re=g[_-k],ae=g[_+0],ue=g[_+k],xe=g[_+2*k],Oe=g[_+3*k];return 4*$a[255+re-ae]+$a[255+Q-ue]>F?0:$a[255+g[_-4*k]-X]<=G&&$a[255+X-Q]<=G&&$a[255+Q-re]<=G&&$a[255+Oe-xe]<=G&&$a[255+xe-ue]<=G&&$a[255+ue-ae]<=G}function D0(g,_,k,F){var G=2*F+1;for(F=0;16>F;++F)F0(g,_+F,k,G)&&gl(g,_+F,k)}function Pi(g,_,k,F){var G=2*F+1;for(F=0;16>F;++F)F0(g,_+F*k,1,G)&&gl(g,_+F*k,1)}function Ki(g,_,k,F){var G;for(G=3;0<G;--G)D0(g,_+=4*k,k,F)}function u1(g,_,k,F){var G;for(G=3;0<G;--G)Pi(g,_+=4,k,F)}function ko(g,_,k,F,G,X,Q,re){for(X=2*X+1;0<G--;){if(M0(g,_,k,X,Q))if(I0(g,_,k,re))gl(g,_,k);else{var ae=g,ue=_,xe=k,Oe=ae[ue-2*xe],je=ae[ue-xe],_e=ae[ue+0],We=ae[ue+xe],Fe=ae[ue+2*xe],ye=27*(qe=m1[1020+3*(_e-je)+m1[1020+Oe-We]])+63>>7,we=18*qe+63>>7,qe=9*qe+63>>7;ae[ue-3*xe]=wa[255+ae[ue-3*xe]+qe],ae[ue-2*xe]=wa[255+Oe+we],ae[ue-xe]=wa[255+je+ye],ae[ue+0]=wa[255+_e-ye],ae[ue+xe]=wa[255+We-we],ae[ue+2*xe]=wa[255+Fe-qe]}_+=F}}function ni(g,_,k,F,G,X,Q,re){for(X=2*X+1;0<G--;){if(M0(g,_,k,X,Q))if(I0(g,_,k,re))gl(g,_,k);else{var ae=g,ue=_,xe=k,Oe=ae[ue-xe],je=ae[ue+0],_e=ae[ue+xe],We=G0[112+((Fe=3*(je-Oe))+4>>3)],Fe=G0[112+(Fe+3>>3)],ye=We+1>>1;ae[ue-2*xe]=wa[255+ae[ue-2*xe]+ye],ae[ue-xe]=wa[255+Oe+Fe],ae[ue+0]=wa[255+je-We],ae[ue+xe]=wa[255+_e-ye]}_+=F}}function ou(g,_,k,F,G,X){ko(g,_,k,1,16,F,G,X)}function xs(g,_,k,F,G,X){ko(g,_,1,k,16,F,G,X)}function f1(g,_,k,F,G,X){var Q;for(Q=3;0<Q;--Q)ni(g,_+=4*k,k,1,16,F,G,X)}function xl(g,_,k,F,G,X){var Q;for(Q=3;0<Q;--Q)ni(g,_+=4,1,k,16,F,G,X)}function h1(g,_,k,F,G,X,Q,re){ko(g,_,G,1,8,X,Q,re),ko(k,F,G,1,8,X,Q,re)}function su(g,_,k,F,G,X,Q,re){ko(g,_,1,G,8,X,Q,re),ko(k,F,1,G,8,X,Q,re)}function lu(g,_,k,F,G,X,Q,re){ni(g,_+4*G,G,1,8,X,Q,re),ni(k,F+4*G,G,1,8,X,Q,re)}function R0(g,_,k,F,G,X,Q,re){ni(g,_+4,1,G,8,X,Q,re),ni(k,F+4,1,G,8,X,Q,re)}function yl(){this.ba=new Wt,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Tt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function cu(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function uu(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function B0(){this.ua=0,this.Wa=new le,this.vb=new le,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new U,this.yc=new E}function d1(){this.xb=this.a=0,this.l=new Ti,this.ca=new Wt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new P,this.Pb=0,this.wd=new P,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new B0,this.ab=0,this.gc=o(4,uu),this.Oc=0}function bl(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ti,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ys(g,_,k,F,G,X,Q){for(g=g==null?0:g[_+0],_=0;_<Q;++_)G[X+_]=g+k[F+_]&255,g=G[X+_]}function fu(g,_,k,F,G,X,Q){var re;if(g==null)ys(null,null,k,F,G,X,Q);else for(re=0;re<Q;++re)G[X+re]=g[_+re]+k[F+re]&255}function Lo(g,_,k,F,G,X,Q){if(g==null)ys(null,null,k,F,G,X,Q);else{var re,ae=g[_+0],ue=ae,xe=ae;for(re=0;re<Q;++re)ue=xe+(ae=g[_+re])-ue,xe=k[F+re]+(-256&ue?0>ue?0:255:ue)&255,ue=ae,G[X+re]=xe}}function hu(g,_,k,F){var G=_.width,X=_.o;if(t(g!=null&&_!=null),0>k||0>=F||k+F>X)return null;if(!g.Cc){if(g.ga==null){var Q;if(g.ga=new bl,(Q=g.ga==null)||(Q=_.width*_.o,t(g.Gb.length==0),g.Gb=i(Q),g.Uc=0,g.Gb==null?Q=0:(g.mb=g.Gb,g.nb=g.Uc,g.rc=null,Q=1),Q=!Q),!Q){Q=g.ga;var re=g.Fa,ae=g.P,ue=g.qc,xe=g.mb,Oe=g.nb,je=ae+1,_e=ue-1,We=Q.l;if(t(re!=null&&xe!=null&&_!=null),Bo[0]=null,Bo[1]=ys,Bo[2]=fu,Bo[3]=Lo,Q.ca=xe,Q.tb=Oe,Q.c=_.width,Q.i=_.height,t(0<Q.c&&0<Q.i),1>=ue)_=0;else if(Q.$a=re[ae+0]>>0&3,Q.Z=re[ae+0]>>2&3,Q.Lc=re[ae+0]>>4&3,ae=re[ae+0]>>6&3,0>Q.$a||1<Q.$a||4<=Q.Z||1<Q.Lc||ae)_=0;else if(We.put=Ia,We.ac=ln,We.bc=Fa,We.ma=Q,We.width=_.width,We.height=_.height,We.Da=_.Da,We.v=_.v,We.va=_.va,We.j=_.j,We.o=_.o,Q.$a)e:{t(Q.$a==1),_=Ie();t:for(;;){if(_==null){_=0;break e}if(t(Q!=null),Q.mc=_,_.c=Q.c,_.i=Q.i,_.l=Q.l,_.l.ma=Q,_.l.width=Q.c,_.l.height=Q.i,_.a=0,te(_.m,re,je,_e),!Te(Q.c,Q.i,1,_,null)||(_.ab==1&&_.gc[0].hc==3&&ie(_.s)?(Q.ic=1,re=_.c*_.i,_.Ta=null,_.Ua=0,_.V=i(re),_.Ba=0,_.V==null?(_.a=1,_=0):_=1):(Q.ic=0,_=Ce(_,Q.c)),!_))break t;_=1;break e}Q.mc=null,_=0}else _=_e>=Q.c*Q.i;Q=!_}if(Q)return null;g.ga.Lc!=1?g.Ga=0:F=X-k}t(g.ga!=null),t(k+F<=X);e:{if(_=(re=g.ga).c,X=re.l.o,re.$a==0){if(je=g.rc,_e=g.Vc,We=g.Fa,ae=g.P+1+k*_,ue=g.mb,xe=g.nb+k*_,t(ae<=g.P+g.qc),re.Z!=0)for(t(Bo[re.Z]!=null),Q=0;Q<F;++Q)Bo[re.Z](je,_e,We,ae,ue,xe,_),je=ue,_e=xe,xe+=_,ae+=_;else for(Q=0;Q<F;++Q)n(ue,xe,We,ae,_),je=ue,_e=xe,xe+=_,ae+=_;g.rc=je,g.Vc=_e}else{if(t(re.mc!=null),_=k+F,t((Q=re.mc)!=null),t(_<=Q.i),Q.C>=_)_=1;else if(re.ic||Ne(),re.ic){re=Q.V,je=Q.Ba,_e=Q.c;var Fe=Q.i,ye=(We=1,ae=Q.$/_e,ue=Q.$%_e,xe=Q.m,Oe=Q.s,Q.$),we=_e*Fe,qe=_e*_,Ge=Oe.wc,ze=ye<qe?Rr(Oe,ue,ae):null;t(ye<=we),t(_<=Fe),t(ie(Oe));t:for(;;){for(;!xe.h&&ye<qe;){if(ue&Ge||(ze=Rr(Oe,ue,ae)),t(ze!=null),Y(xe),256>(Fe=Fn(ze.G[0],ze.H[0],xe)))re[je+ye]=Fe,++ye,++ue>=_e&&(ue=0,++ae<=_&&!(ae%16)&&de(Q,ae));else{if(!(280>Fe)){We=0;break t}Fe=xa(Fe-256,xe);var ft,at=Fn(ze.G[4],ze.H[4],xe);if(Y(xe),!(ye>=(at=ia(_e,at=xa(at,xe)))&&we-ye>=Fe)){We=0;break t}for(ft=0;ft<Fe;++ft)re[je+ye+ft]=re[je+ye+ft-at];for(ye+=Fe,ue+=Fe;ue>=_e;)ue-=_e,++ae<=_&&!(ae%16)&&de(Q,ae);ye<qe&&ue&Ge&&(ze=Rr(Oe,ue,ae))}t(xe.h==M(xe))}de(Q,ae>_?_:ae);break t}!We||xe.h&&ye<we?(We=0,Q.a=xe.h?5:3):Q.$=ye,_=We}else _=me(Q,Q.V,Q.Ba,Q.c,Q.i,_,ke);if(!_){F=0;break e}}k+F>=X&&(g.Cc=1),F=1}if(!F)return null;if(g.Cc&&((F=g.ga)!=null&&(F.mc=null),g.ga=null,0<g.Ga))return alert("todo:WebPDequantizeLevels"),null}return g.nb+k*G}function T(g,_,k,F,G,X){for(;0<G--;){var Q,re=g,ae=_+(k?1:0),ue=g,xe=_+(k?0:3);for(Q=0;Q<F;++Q){var Oe=ue[xe+4*Q];Oe!=255&&(Oe*=32897,re[ae+4*Q+0]=re[ae+4*Q+0]*Oe>>23,re[ae+4*Q+1]=re[ae+4*Q+1]*Oe>>23,re[ae+4*Q+2]=re[ae+4*Q+2]*Oe>>23)}_+=X}}function V(g,_,k,F,G){for(;0<F--;){var X;for(X=0;X<k;++X){var Q=g[_+2*X+0],re=15&(ue=g[_+2*X+1]),ae=4369*re,ue=(240&ue|ue>>4)*ae>>16;g[_+2*X+0]=(240&Q|Q>>4)*ae>>16&240|(15&Q|Q<<4)*ae>>16>>4&15,g[_+2*X+1]=240&ue|re}_+=G}}function ve(g,_,k,F,G,X,Q,re){var ae,ue,xe=255;for(ue=0;ue<G;++ue){for(ae=0;ae<F;++ae){var Oe=g[_+ae];X[Q+4*ae]=Oe,xe&=Oe}_+=k,Q+=re}return xe!=255}function ge(g,_,k,F,G){var X;for(X=0;X<G;++X)k[F+X]=g[_+X]>>8}function Ne(){Ba=T,Tr=V,Er=ve,Yr=ge}function Re(g,_,k){C[g]=function(F,G,X,Q,re,ae,ue,xe,Oe,je,_e,We,Fe,ye,we,qe,Ge){var ze,ft=Ge-1>>1,at=re[ae+0]|ue[xe+0]<<16,At=Oe[je+0]|_e[We+0]<<16;t(F!=null);var ot=3*at+At+131074>>2;for(_(F[G+0],255&ot,ot>>16,Fe,ye),X!=null&&(ot=3*At+at+131074>>2,_(X[Q+0],255&ot,ot>>16,we,qe)),ze=1;ze<=ft;++ze){var er=re[ae+ze]|ue[xe+ze]<<16,hr=Oe[je+ze]|_e[We+ze]<<16,Jt=at+er+At+hr+524296,Vt=Jt+2*(er+At)>>3;ot=Vt+at>>1,at=(Jt=Jt+2*(at+hr)>>3)+er>>1,_(F[G+2*ze-1],255&ot,ot>>16,Fe,ye+(2*ze-1)*k),_(F[G+2*ze-0],255&at,at>>16,Fe,ye+(2*ze-0)*k),X!=null&&(ot=Jt+At>>1,at=Vt+hr>>1,_(X[Q+2*ze-1],255&ot,ot>>16,we,qe+(2*ze-1)*k),_(X[Q+2*ze+0],255&at,at>>16,we,qe+(2*ze+0)*k)),at=er,At=hr}1&Ge||(ot=3*at+At+131074>>2,_(F[G+Ge-1],255&ot,ot>>16,Fe,ye+(Ge-1)*k),X!=null&&(ot=3*At+at+131074>>2,_(X[Q+Ge-1],255&ot,ot>>16,we,qe+(Ge-1)*k)))}}function Ve(){qa[V0]=N8,qa[Y0]=k5,qa[E5]=T8,qa[K0]=L5,qa[X0]=I5,qa[v1]=F5,qa[P5]=E8,qa[g1]=k5,qa[x1]=L5,qa[J0]=I5,qa[y1]=F5}function ut(g){return g&-16384?0>g?0:255:g>>P8}function xt(g,_){return ut((19077*g>>8)+(26149*_>>8)-14234)}function Mt(g,_,k){return ut((19077*g>>8)-(6419*_>>8)-(13320*k>>8)+8708)}function kt(g,_){return ut((19077*g>>8)+(33050*_>>8)-17685)}function Yt(g,_,k,F,G){F[G+0]=xt(g,k),F[G+1]=Mt(g,_,k),F[G+2]=kt(g,_)}function Mr(g,_,k,F,G){F[G+0]=kt(g,_),F[G+1]=Mt(g,_,k),F[G+2]=xt(g,k)}function Br(g,_,k,F,G){var X=Mt(g,_,k);_=X<<3&224|kt(g,_)>>3,F[G+0]=248&xt(g,k)|X>>5,F[G+1]=_}function Qr(g,_,k,F,G){var X=240&kt(g,_)|15;F[G+0]=240&xt(g,k)|Mt(g,_,k)>>4,F[G+1]=X}function Dn(g,_,k,F,G){F[G+0]=255,Yt(g,_,k,F,G+1)}function vn(g,_,k,F,G){Mr(g,_,k,F,G),F[G+3]=255}function ai(g,_,k,F,G){Yt(g,_,k,F,G),F[G+3]=255}function ba(g,_){return 0>g?0:g>_?_:g}function Oi(g,_,k){C[g]=function(F,G,X,Q,re,ae,ue,xe,Oe){for(var je=xe+(-2&Oe)*k;xe!=je;)_(F[G+0],X[Q+0],re[ae+0],ue,xe),_(F[G+1],X[Q+0],re[ae+0],ue,xe+k),G+=2,++Q,++ae,xe+=2*k;1&Oe&&_(F[G+0],X[Q+0],re[ae+0],ue,xe)}}function $0(g,_,k){return k==0?g==0?_==0?6:5:_==0?4:0:k}function du(g,_,k,F,G){switch(g>>>30){case 3:Zi(_,k,F,G,0);break;case 2:Vr(_,k,F,G);break;case 1:Kn(_,k,F,G)}}function pu(g,_){var k,F,G=_.M,X=_.Nb,Q=g.oc,re=g.pc+40,ae=g.oc,ue=g.pc+584,xe=g.oc,Oe=g.pc+600;for(k=0;16>k;++k)Q[re+32*k-1]=129;for(k=0;8>k;++k)ae[ue+32*k-1]=129,xe[Oe+32*k-1]=129;for(0<G?Q[re-1-32]=ae[ue-1-32]=xe[Oe-1-32]=129:(a(Q,re-32-1,127,21),a(ae,ue-32-1,127,9),a(xe,Oe-32-1,127,9)),F=0;F<g.za;++F){var je=_.ya[_.aa+F];if(0<F){for(k=-1;16>k;++k)n(Q,re+32*k-4,Q,re+32*k+12,4);for(k=-1;8>k;++k)n(ae,ue+32*k-4,ae,ue+32*k+4,4),n(xe,Oe+32*k-4,xe,Oe+32*k+4,4)}var _e=g.Gd,We=g.Hd+F,Fe=je.ad,ye=je.Hc;if(0<G&&(n(Q,re-32,_e[We].y,0,16),n(ae,ue-32,_e[We].f,0,8),n(xe,Oe-32,_e[We].ea,0,8)),je.Za){var we=Q,qe=re-32+16;for(0<G&&(F>=g.za-1?a(we,qe,_e[We].y[15],4):n(we,qe,_e[We+1].y,0,4)),k=0;4>k;k++)we[qe+128+k]=we[qe+256+k]=we[qe+384+k]=we[qe+0+k];for(k=0;16>k;++k,ye<<=2)we=Q,qe=re+D5[k],ii[je.Ob[k]](we,qe),du(ye,Fe,16*+k,we,qe)}else if(we=$0(F,G,je.Ob[0]),Ro[we](Q,re),ye!=0)for(k=0;16>k;++k,ye<<=2)du(ye,Fe,16*+k,Q,re+D5[k]);for(k=je.Gc,we=$0(F,G,je.Dd),eo[we](ae,ue),eo[we](xe,Oe),ye=Fe,we=ae,qe=ue,255&(je=k>>0)&&(170&je?yu(ye,256,we,qe):Da(ye,256,we,qe)),je=xe,ye=Oe,255&(k>>=8)&&(170&k?yu(Fe,320,je,ye):Da(Fe,320,je,ye)),G<g.Ub-1&&(n(_e[We].y,0,Q,re+480,16),n(_e[We].f,0,ae,ue+224,8),n(_e[We].ea,0,xe,Oe+224,8)),k=8*X*g.B,_e=g.sa,We=g.ta+16*F+16*X*g.R,Fe=g.qa,je=g.ra+8*F+k,ye=g.Ha,we=g.Ia+8*F+k,k=0;16>k;++k)n(_e,We+k*g.R,Q,re+32*k,16);for(k=0;8>k;++k)n(Fe,je+k*g.B,ae,ue+32*k,8),n(ye,we+k*g.B,xe,Oe+32*k,8)}}function wl(g,_,k,F,G,X,Q,re,ae){var ue=[0],xe=[0],Oe=0,je=ae!=null?ae.kd:0,_e=ae??new cu;if(g==null||12>k)return 7;_e.data=g,_e.w=_,_e.ha=k,_=[_],k=[k],_e.gb=[_e.gb];e:{var We=_,Fe=k,ye=_e.gb;if(t(g!=null),t(Fe!=null),t(ye!=null),ye[0]=0,12<=Fe[0]&&!r(g,We[0],"RIFF")){if(r(g,We[0]+8,"WEBP")){ye=3;break e}var we=Le(g,We[0]+4);if(12>we||4294967286<we){ye=3;break e}if(je&&we>Fe[0]-8){ye=7;break e}ye[0]=we,We[0]+=12,Fe[0]-=12}ye=0}if(ye!=0)return ye;for(we=0<_e.gb[0],k=k[0];;){e:{var qe=g;Fe=_,ye=k;var Ge=ue,ze=xe,ft=We=[0];if((ot=Oe=[Oe])[0]=0,8>ye[0])ye=7;else{if(!r(qe,Fe[0],"VP8X")){if(Le(qe,Fe[0]+4)!=10){ye=3;break e}if(18>ye[0]){ye=7;break e}var at=Le(qe,Fe[0]+8),At=1+se(qe,Fe[0]+12);if(2147483648<=At*(qe=1+se(qe,Fe[0]+15))){ye=3;break e}ft!=null&&(ft[0]=at),Ge!=null&&(Ge[0]=At),ze!=null&&(ze[0]=qe),Fe[0]+=18,ye[0]-=18,ot[0]=1}ye=0}}if(Oe=Oe[0],We=We[0],ye!=0)return ye;if(Fe=!!(2&We),!we&&Oe)return 3;if(X!=null&&(X[0]=!!(16&We)),Q!=null&&(Q[0]=Fe),re!=null&&(re[0]=0),Q=ue[0],We=xe[0],Oe&&Fe&&ae==null){ye=0;break}if(4>k){ye=7;break}if(we&&Oe||!we&&!Oe&&!r(g,_[0],"ALPH")){k=[k],_e.na=[_e.na],_e.P=[_e.P],_e.Sa=[_e.Sa];e:{at=g,ye=_,we=k;var ot=_e.gb;Ge=_e.na,ze=_e.P,ft=_e.Sa,At=22,t(at!=null),t(we!=null),qe=ye[0];var er=we[0];for(t(Ge!=null),t(ft!=null),Ge[0]=null,ze[0]=null,ft[0]=0;;){if(ye[0]=qe,we[0]=er,8>er){ye=7;break e}var hr=Le(at,qe+4);if(4294967286<hr){ye=3;break e}var Jt=8+hr+1&-2;if(At+=Jt,0<ot&&At>ot){ye=3;break e}if(!r(at,qe,"VP8 ")||!r(at,qe,"VP8L")){ye=0;break e}if(er[0]<Jt){ye=7;break e}r(at,qe,"ALPH")||(Ge[0]=at,ze[0]=qe+8,ft[0]=hr),qe+=Jt,er-=Jt}}if(k=k[0],_e.na=_e.na[0],_e.P=_e.P[0],_e.Sa=_e.Sa[0],ye!=0)break}k=[k],_e.Ja=[_e.Ja],_e.xa=[_e.xa];e:if(ot=g,ye=_,we=k,Ge=_e.gb[0],ze=_e.Ja,ft=_e.xa,at=ye[0],qe=!r(ot,at,"VP8 "),At=!r(ot,at,"VP8L"),t(ot!=null),t(we!=null),t(ze!=null),t(ft!=null),8>we[0])ye=7;else{if(qe||At){if(ot=Le(ot,at+4),12<=Ge&&ot>Ge-12){ye=3;break e}if(je&&ot>we[0]-8){ye=7;break e}ze[0]=ot,ye[0]+=8,we[0]-=8,ft[0]=At}else ft[0]=5<=we[0]&&ot[at+0]==47&&!(ot[at+4]>>5),ze[0]=we[0];ye=0}if(k=k[0],_e.Ja=_e.Ja[0],_e.xa=_e.xa[0],_=_[0],ye!=0)break;if(4294967286<_e.Ja)return 3;if(re==null||Fe||(re[0]=_e.xa?2:1),Q=[Q],We=[We],_e.xa){if(5>k){ye=7;break}re=Q,je=We,Fe=X,g==null||5>k?g=0:5<=k&&g[_+0]==47&&!(g[_+4]>>5)?(we=[0],ot=[0],Ge=[0],te(ze=new P,g,_,k),St(ze,we,ot,Ge)?(re!=null&&(re[0]=we[0]),je!=null&&(je[0]=ot[0]),Fe!=null&&(Fe[0]=Ge[0]),g=1):g=0):g=0}else{if(10>k){ye=7;break}re=We,g==null||10>k||!A0(g,_+3,k-3)?g=0:(je=g[_+0]|g[_+1]<<8|g[_+2]<<16,Fe=16383&(g[_+7]<<8|g[_+6]),g=16383&(g[_+9]<<8|g[_+8]),1&je||3<(je>>1&7)||!(je>>4&1)||je>>5>=_e.Ja||!Fe||!g?g=0:(Q&&(Q[0]=Fe),re&&(re[0]=g),g=1))}if(!g||(Q=Q[0],We=We[0],Oe&&(ue[0]!=Q||xe[0]!=We)))return 3;ae!=null&&(ae[0]=_e,ae.offset=_-ae.w,t(4294967286>_-ae.w),t(ae.offset==ae.ha-k));break}return ye==0||ye==7&&Oe&&ae==null?(X!=null&&(X[0]|=_e.na!=null&&0<_e.na.length),F!=null&&(F[0]=Q),G!=null&&(G[0]=We),0):ye}function mu(g,_,k){var F=_.width,G=_.height,X=0,Q=0,re=F,ae=G;if(_.Da=g!=null&&0<g.Da,_.Da&&(re=g.cd,ae=g.bd,X=g.v,Q=g.j,11>k||(X&=-2,Q&=-2),0>X||0>Q||0>=re||0>=ae||X+re>F||Q+ae>G))return 0;if(_.v=X,_.j=Q,_.va=X+re,_.o=Q+ae,_.U=re,_.T=ae,_.da=g!=null&&0<g.da,_.da){if(!De(re,ae,k=[g.ib],X=[g.hb]))return 0;_.ib=k[0],_.hb=X[0]}return _.ob=g!=null&&g.ob,_.Kb=g==null||!g.Sd,_.da&&(_.ob=_.ib<3*F/4&&_.hb<3*G/4,_.Kb=0),1}function vu(g){if(g==null)return 2;if(11>g.S){var _=g.f.RGBA;_.fb+=(g.height-1)*_.A,_.A=-_.A}else _=g.f.kb,g=g.height,_.O+=(g-1)*_.fa,_.fa=-_.fa,_.N+=(g-1>>1)*_.Ab,_.Ab=-_.Ab,_.W+=(g-1>>1)*_.Db,_.Db=-_.Db,_.F!=null&&(_.J+=(g-1)*_.lb,_.lb=-_.lb);return 0}function _l(g,_,k,F){if(F==null||0>=g||0>=_)return 2;if(k!=null){if(k.Da){var G=k.cd,X=k.bd,Q=-2&k.v,re=-2&k.j;if(0>Q||0>re||0>=G||0>=X||Q+G>g||re+X>_)return 2;g=G,_=X}if(k.da){if(!De(g,_,G=[k.ib],X=[k.hb]))return 2;g=G[0],_=X[0]}}F.width=g,F.height=_;e:{var ae=F.width,ue=F.height;if(g=F.S,0>=ae||0>=ue||!(g>=V0&&13>g))g=2;else{if(0>=F.Rd&&F.sd==null){Q=X=G=_=0;var xe=(re=ae*R5[g])*ue;if(11>g||(X=(ue+1)/2*(_=(ae+1)/2),g==12&&(Q=(G=ae)*ue)),(ue=i(xe+2*X+Q))==null){g=1;break e}F.sd=ue,11>g?((ae=F.f.RGBA).eb=ue,ae.fb=0,ae.A=re,ae.size=xe):((ae=F.f.kb).y=ue,ae.O=0,ae.fa=re,ae.Fd=xe,ae.f=ue,ae.N=0+xe,ae.Ab=_,ae.Cd=X,ae.ea=ue,ae.W=0+xe+X,ae.Db=_,ae.Ed=X,g==12&&(ae.F=ue,ae.J=0+xe+2*X),ae.Tc=Q,ae.lb=G)}if(_=1,G=F.S,X=F.width,Q=F.height,G>=V0&&13>G)if(11>G)g=F.f.RGBA,_&=(re=Math.abs(g.A))*(Q-1)+X<=g.size,_&=re>=X*R5[G],_&=g.eb!=null;else{g=F.f.kb,re=(X+1)/2,xe=(Q+1)/2,ae=Math.abs(g.fa),ue=Math.abs(g.Ab);var Oe=Math.abs(g.Db),je=Math.abs(g.lb),_e=je*(Q-1)+X;_&=ae*(Q-1)+X<=g.Fd,_&=ue*(xe-1)+re<=g.Cd,_=(_&=Oe*(xe-1)+re<=g.Ed)&ae>=X&ue>=re&Oe>=re,_&=g.y!=null,_&=g.f!=null,_&=g.ea!=null,G==12&&(_&=je>=X,_&=_e<=g.Tc,_&=g.F!=null)}else _=0;g=_?0:2}}return g!=0||k!=null&&k.fd&&(g=vu(F)),g}var Nn=64,Sl=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Al=24,Nl=32,gu=8,sa=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ke("Predictor0","PredictorAdd0"),C.Predictor0=function(){return 4278190080},C.Predictor1=function(g){return g},C.Predictor2=function(g,_,k){return _[k+0]},C.Predictor3=function(g,_,k){return _[k+1]},C.Predictor4=function(g,_,k){return _[k-1]},C.Predictor5=function(g,_,k){return Je(Je(g,_[k+1]),_[k+0])},C.Predictor6=function(g,_,k){return Je(g,_[k-1])},C.Predictor7=function(g,_,k){return Je(g,_[k+0])},C.Predictor8=function(g,_,k){return Je(_[k-1],_[k+0])},C.Predictor9=function(g,_,k){return Je(_[k+0],_[k+1])},C.Predictor10=function(g,_,k){return Je(Je(g,_[k-1]),Je(_[k+0],_[k+1]))},C.Predictor11=function(g,_,k){var F=_[k+0];return 0>=wt(F>>24&255,g>>24&255,(_=_[k-1])>>24&255)+wt(F>>16&255,g>>16&255,_>>16&255)+wt(F>>8&255,g>>8&255,_>>8&255)+wt(255&F,255&g,255&_)?F:g},C.Predictor12=function(g,_,k){var F=_[k+0];return(dt((g>>24&255)+(F>>24&255)-((_=_[k-1])>>24&255))<<24|dt((g>>16&255)+(F>>16&255)-(_>>16&255))<<16|dt((g>>8&255)+(F>>8&255)-(_>>8&255))<<8|dt((255&g)+(255&F)-(255&_)))>>>0},C.Predictor13=function(g,_,k){var F=_[k-1];return(vt((g=Je(g,_[k+0]))>>24&255,F>>24&255)<<24|vt(g>>16&255,F>>16&255)<<16|vt(g>>8&255,F>>8&255)<<8|vt(g>>0&255,F>>0&255))>>>0};var p1=C.PredictorAdd0;C.PredictorAdd1=Pt,Ke("Predictor2","PredictorAdd2"),Ke("Predictor3","PredictorAdd3"),Ke("Predictor4","PredictorAdd4"),Ke("Predictor5","PredictorAdd5"),Ke("Predictor6","PredictorAdd6"),Ke("Predictor7","PredictorAdd7"),Ke("Predictor8","PredictorAdd8"),Ke("Predictor9","PredictorAdd9"),Ke("Predictor10","PredictorAdd10"),Ke("Predictor11","PredictorAdd11"),Ke("Predictor12","PredictorAdd12"),Ke("Predictor13","PredictorAdd13");var xu=C.PredictorAdd2;Ft("ColorIndexInverseTransform","MapARGB","32b",(function(g){return g>>8&255}),(function(g){return g})),Ft("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(g){return g}),(function(g){return g>>8&255}));var q0,Ma=C.ColorIndexInverseTransform,Tl=C.MapARGB,U0=C.VP8LColorIndexInverseTransformAlpha,z0=C.MapAlpha,Io=C.VP8LPredictorsAdd=[];Io.length=16,(C.VP8LPredictors=[]).length=16,(C.VP8LPredictorsAdd_C=[]).length=16,(C.VP8LPredictors_C=[]).length=16;var bs,la,Yn,Fo,Xi,Ji,El,Zi,Vr,yu,Kn,Da,Pl,W0,bu,ws,_s,Mo,Ss,Ol,As,Do,wu,Ra,Ba,Tr,Er,Yr,cn=i(511),Qi=i(2041),_u=i(225),jl=i(767),H0=0,m1=Qi,G0=_u,wa=jl,$a=cn,V0=0,Y0=1,E5=2,K0=3,X0=4,v1=5,P5=6,g1=7,x1=8,J0=9,y1=10,f8=[2,3,7],h8=[3,3,11],O5=[280,256,256,256,40],d8=[0,1,1,1,0],p8=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],m8=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],v8=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],g8=8,b1=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],w1=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Su=null,x8=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],y8=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],j5=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],b8=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],w8=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],_8=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],S8=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ro=[],ii=[],eo=[],A8=1,C5=2,Bo=[],qa=[];Re("UpsampleRgbLinePair",Yt,3),Re("UpsampleBgrLinePair",Mr,3),Re("UpsampleRgbaLinePair",ai,4),Re("UpsampleBgraLinePair",vn,4),Re("UpsampleArgbLinePair",Dn,4),Re("UpsampleRgba4444LinePair",Qr,2),Re("UpsampleRgb565LinePair",Br,2);var N8=C.UpsampleRgbLinePair,T8=C.UpsampleBgrLinePair,k5=C.UpsampleRgbaLinePair,L5=C.UpsampleBgraLinePair,I5=C.UpsampleArgbLinePair,F5=C.UpsampleRgba4444LinePair,E8=C.UpsampleRgb565LinePair,Z0=16,Q0=1<<Z0-1,Au=-227,_1=482,P8=6,M5=0,O8=i(256),j8=i(256),C8=i(256),k8=i(256),L8=i(_1-Au),I8=i(_1-Au);Oi("YuvToRgbRow",Yt,3),Oi("YuvToBgrRow",Mr,3),Oi("YuvToRgbaRow",ai,4),Oi("YuvToBgraRow",vn,4),Oi("YuvToArgbRow",Dn,4),Oi("YuvToRgba4444Row",Qr,2),Oi("YuvToRgb565Row",Br,2);var D5=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],eh=[0,2,8],F8=[8,7,6,4,4,2,2,2,1,1,1,1],M8=1;this.WebPDecodeRGBA=function(g,_,k,F,G){var X=Y0,Q=new yl,re=new Wt;Q.ba=re,re.S=X,re.width=[re.width],re.height=[re.height];var ae=re.width,ue=re.height,xe=new Or;if(xe==null||g==null)var Oe=2;else t(xe!=null),Oe=wl(g,_,k,xe.width,xe.height,xe.Pd,xe.Qd,xe.format,null);if(Oe!=0?ae=0:(ae!=null&&(ae[0]=xe.width[0]),ue!=null&&(ue[0]=xe.height[0]),ae=1),ae){re.width=re.width[0],re.height=re.height[0],F!=null&&(F[0]=re.width),G!=null&&(G[0]=re.height);e:{if(F=new Ti,(G=new cu).data=g,G.w=_,G.ha=k,G.kd=1,_=[0],t(G!=null),((g=wl(G.data,G.w,G.ha,null,null,null,_,null,G))==0||g==7)&&_[0]&&(g=4),(_=g)==0){if(t(Q!=null),F.data=G.data,F.w=G.w+G.offset,F.ha=G.ha-G.offset,F.put=Ia,F.ac=ln,F.bc=Fa,F.ma=Q,G.xa){if((g=Ie())==null){Q=1;break e}if((function(je,_e){var We=[0],Fe=[0],ye=[0];t:for(;;){if(je==null)return 0;if(_e==null)return je.a=2,0;if(je.l=_e,je.a=0,te(je.m,_e.data,_e.w,_e.ha),!St(je.m,We,Fe,ye)){je.a=3;break t}if(je.xb=C5,_e.width=We[0],_e.height=Fe[0],!Te(We[0],Fe[0],1,je,null))break t;return 1}return t(je.a!=0),0})(g,F)){if(F=(_=_l(F.width,F.height,Q.Oa,Q.ba))==0){t:{F=g;r:for(;;){if(F==null){F=0;break t}if(t(F.s.yc!=null),t(F.s.Ya!=null),t(0<F.s.Wb),t((k=F.l)!=null),t((G=k.ma)!=null),F.xb!=0){if(F.ca=G.ba,F.tb=G.tb,t(F.ca!=null),!mu(G.Oa,k,K0)){F.a=2;break r}if(!Ce(F,k.width)||k.da)break r;if((k.da||Ht(F.ca.S))&&Ne(),11>F.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),F.ca.f.kb.F!=null&&Ne()),F.Pb&&0<F.s.ua&&F.s.vb.X==null&&!Se(F.s.vb,F.s.Wa.Xa)){F.a=1;break r}F.xb=0}if(!me(F,F.V,F.Ba,F.c,F.i,k.o,pe))break r;G.Dc=F.Ma,F=1;break t}t(F.a!=0),F=0}F=!F}F&&(_=g.a)}else _=g.a}else{if((g=new ya)==null){Q=1;break e}if(g.Fa=G.na,g.P=G.P,g.qc=G.Sa,N0(g,F)){if((_=_l(F.width,F.height,Q.Oa,Q.ba))==0){if(g.Aa=0,k=Q.Oa,t((G=g)!=null),k!=null){if(0<(ae=0>(ae=k.Md)?0:100<ae?255:255*ae/100)){for(ue=xe=0;4>ue;++ue)12>(Oe=G.pb[ue]).lc&&(Oe.ia=ae*F8[0>Oe.lc?0:Oe.lc]>>3),xe|=Oe.ia;xe&&(alert("todo:VP8InitRandom"),G.ia=1)}G.Ga=k.Id,100<G.Ga?G.Ga=100:0>G.Ga&&(G.Ga=0)}Xp(g,F)||(_=g.a)}}else _=g.a}_==0&&Q.Oa!=null&&Q.Oa.fd&&(_=vu(Q.ba))}Q=_}X=Q!=0?null:11>X?re.f.RGBA.eb:re.f.kb.y}else X=null;return X};var R5=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(C,L){for(var R="",j=0;j<4;j++)R+=String.fromCharCode(C[L++]);return R}function u(C,L){return(C[L+0]<<0|C[L+1]<<8|C[L+2]<<16)>>>0}function f(C,L){return(C[L+0]<<0|C[L+1]<<8|C[L+2]<<16|C[L+3]<<24)>>>0}new l;var d=[0],h=[0],x=[],p=new l,m=e,y=(function(C,L){var R={},j=0,E=!1,D=0,U=0;if(R.frames=[],!(function(I,M,q,Y){for(var fe=0;fe<Y;fe++)if(I[M+fe]!=q.charCodeAt(fe))return!0;return!1})(C,L,"RIFF",4)){var H,B;for(f(C,L+=4),L+=8;L<C.length;){var z=c(C,L),te=f(C,L+=4);L+=4;var Z=te+(1&te);switch(z){case"VP8 ":case"VP8L":R.frames[j]===void 0&&(R.frames[j]={}),(P=R.frames[j]).src_off=E?U:L-8,P.src_size=D+te+8,j++,E&&(E=!1,D=0,U=0);break;case"VP8X":(P=R.header={}).feature_flags=C[L];var ee=L+4;P.canvas_width=1+u(C,ee),ee+=3,P.canvas_height=1+u(C,ee),ee+=3;break;case"ALPH":E=!0,D=Z+8,U=L-8;break;case"ANIM":(P=R.header).bgcolor=f(C,L),ee=L+4,P.loop_count=(H=C)[(B=ee)+0]<<0|H[B+1]<<8,ee+=2;break;case"ANMF":var ce,P;(P=R.frames[j]={}).offset_x=2*u(C,L),L+=3,P.offset_y=2*u(C,L),L+=3,P.width=1+u(C,L),L+=3,P.height=1+u(C,L),L+=3,P.duration=u(C,L),L+=3,ce=C[L++],P.dispose=1&ce,P.blend=ce>>1&1}z!="ANMF"&&(L+=Z)}return R}})(m,0);y.response=m,y.rgbaoutput=!0,y.dataurl=!1;var b=y.header?y.header:null,w=y.frames?y.frames:null;if(b){b.loop_counter=b.loop_count,d=[b.canvas_height],h=[b.canvas_width];for(var S=0;S<w.length&&w[S].blend!=0;S++);}var A=w[0],O=p.WebPDecodeRGBA(m,A.src_off,A.src_size,h,d);A.rgba=O,A.imgwidth=h[0],A.imgheight=d[0];for(var N=0;N<h[0]*d[0]*4;N++)x[N]=O[N];return this.width=h,this.height=d,this.data=x,this}(function(e){var t=function(){return typeof fy=="function"},r=function(d,h,x,p){var m=4,y=o;switch(p){case e.image_compression.FAST:m=1,y=i;break;case e.image_compression.MEDIUM:m=6,y=s;break;case e.image_compression.SLOW:m=9,y=l}d=n(d,h,x,y);var b=fy(d,{level:m});return e.__addimage__.arrayBufferToBinaryString(b)},n=function(d,h,x,p){for(var m,y,b,w=d.length/h,S=new Uint8Array(d.length+w),A=u(),O=0;O<w;O+=1){if(b=O*h,m=d.subarray(b,b+h),p)S.set(p(m,x,y),b+O);else{for(var N,C=A.length,L=[];N<C;N+=1)L[N]=A[N](m,x,y);var R=f(L.concat());S.set(L[R],b+O)}y=m}return S},a=function(d){var h=Array.apply([],d);return h.unshift(0),h},i=function(d,h){var x,p=[],m=d.length;p[0]=1;for(var y=0;y<m;y+=1)x=d[y-h]||0,p[y+1]=d[y]-x+256&255;return p},o=function(d,h,x){var p,m=[],y=d.length;m[0]=2;for(var b=0;b<y;b+=1)p=x&&x[b]||0,m[b+1]=d[b]-p+256&255;return m},s=function(d,h,x){var p,m,y=[],b=d.length;y[0]=3;for(var w=0;w<b;w+=1)p=d[w-h]||0,m=x&&x[w]||0,y[w+1]=d[w]+256-(p+m>>>1)&255;return y},l=function(d,h,x){var p,m,y,b,w=[],S=d.length;w[0]=4;for(var A=0;A<S;A+=1)p=d[A-h]||0,m=x&&x[A]||0,y=x&&x[A-h]||0,b=c(p,m,y),w[A+1]=d[A]-b+256&255;return w},c=function(d,h,x){if(d===h&&h===x)return d;var p=Math.abs(h-x),m=Math.abs(d-x),y=Math.abs(d+h-x-x);return p<=m&&p<=y?d:m<=y?h:x},u=function(){return[a,i,o,s,l]},f=function(d){var h=d.map((function(x){return x.reduce((function(p,m){return p+Math.abs(m)}),0)}));return h.indexOf(Math.min.apply(null,h))};e.processPNG=function(d,h,x,p){var m,y,b,w,S,A,O,N,C,L,R,j,E,D,U,H=this.decode.FLATE_DECODE,B="";if(this.__addimage__.isArrayBuffer(d)&&(d=new Uint8Array(d)),this.__addimage__.isArrayBufferView(d)){if(d=(b=new fL(d)).imgData,y=b.bits,m=b.colorSpace,S=b.colors,[4,6].indexOf(b.colorType)!==-1){if(b.bits===8){C=(N=b.pixelBitlength==32?new Uint32Array(b.decodePixels().buffer):b.pixelBitlength==16?new Uint16Array(b.decodePixels().buffer):new Uint8Array(b.decodePixels().buffer)).length,R=new Uint8Array(C*b.colors),L=new Uint8Array(C);var z,te=b.pixelBitlength-b.bits;for(D=0,U=0;D<C;D++){for(E=N[D],z=0;z<te;)R[U++]=E>>>z&255,z+=b.bits;L[D]=E>>>z&255}}if(b.bits===16){C=(N=new Uint32Array(b.decodePixels().buffer)).length,R=new Uint8Array(C*(32/b.pixelBitlength)*b.colors),L=new Uint8Array(C*(32/b.pixelBitlength)),j=b.colors>1,D=0,U=0;for(var Z=0;D<C;)E=N[D++],R[U++]=E>>>0&255,j&&(R[U++]=E>>>16&255,E=N[D++],R[U++]=E>>>0&255),L[Z++]=E>>>16&255;y=8}p!==e.image_compression.NONE&&t()?(d=r(R,b.width*b.colors,b.colors,p),O=r(L,b.width,1,p)):(d=R,O=L,H=void 0)}if(b.colorType===3&&(m=this.color_spaces.INDEXED,A=b.palette,b.transparency.indexed)){var ee=b.transparency.indexed,ce=0;for(D=0,C=ee.length;D<C;++D)ce+=ee[D];if((ce/=255)===C-1&&ee.indexOf(0)!==-1)w=[ee.indexOf(0)];else if(ce!==C){for(N=b.decodePixels(),L=new Uint8Array(N.length),D=0,C=N.length;D<C;D++)L[D]=ee[N[D]];O=r(L,b.width,1)}}var P=(function(I){var M;switch(I){case e.image_compression.FAST:M=11;break;case e.image_compression.MEDIUM:M=13;break;case e.image_compression.SLOW:M=14;break;default:M=12}return M})(p);return H===this.decode.FLATE_DECODE&&(B="/Predictor "+P+" "),B+="/Colors "+S+" /BitsPerComponent "+y+" /Columns "+b.width,(this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),(O&&this.__addimage__.isArrayBuffer(O)||this.__addimage__.isArrayBufferView(O))&&(O=this.__addimage__.arrayBufferToBinaryString(O)),{alias:x,data:d,index:h,filter:H,decodeParameters:B,transparency:w,palette:A,sMask:O,predictor:P,width:b.width,height:b.height,bitsPerComponent:y,colorSpace:m}}}})(yt.API),(function(e){e.processGIF89A=function(t,r,n,a){var i=new hL(t),o=i.width,s=i.height,l=[];i.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},u=new q1(100).encode(c,100);return e.processJPEG.call(this,u,r,n,a)},e.processGIF87A=e.processGIF89A})(yt.API),li.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:a,green:n,blue:r,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},li.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(r){Ar.log("bit decode error:"+r)}},li.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,a=0;a<t;a++)for(var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+8*a*4,s=0;s<8&&8*a+s<this.width;s++){var l=this.palette[i>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}r!==0&&(this.pos+=4-r)}},li.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,a=0;a<e;a++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+2*a*4,s=i>>4,l=15&i,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*a+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},li.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),i=r*this.width*4+4*n;if(a<this.palette.length){var o=this.palette[a];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}e!==0&&(this.pos+=4-e)}},li.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&t)/t*255|0,s=(i>>5&t)/t*255|0,l=(i>>10&t)/t*255|0,c=i>>15?255:0,u=n*this.width*4+4*a;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=e}},li.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,l=(o>>5&r)/r*255|0,c=(o>>11)/t*255|0,u=a*this.width*4+4*i;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},li.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*r;this.data[o]=i,this.data[o+1]=a,this.data[o+2]=n,this.data[o+3]=255}this.pos+=this.width%4}},li.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*r;this.data[s]=i,this.data[s+1]=a,this.data[s+2]=n,this.data[s+3]=o}},li.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,r,n,a){var i=new li(t,!1),o=i.width,s=i.height,l={data:i.getData(),width:o,height:s},c=new q1(100).encode(l,100);return e.processJPEG.call(this,c,r,n,a)}})(yt.API),bw.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,r,n,a){var i=new bw(t),o=i.width,s=i.height,l={data:i.getData(),width:o,height:s},c=new q1(100).encode(l,100);return e.processJPEG.call(this,c,r,n,a)}})(yt.API),yt.API.processRGBA=function(e,t,r){for(var n=e.data,a=n.length,i=new Uint8Array(a/4*3),o=new Uint8Array(a/4),s=0,l=0,c=0;c<a;c+=4){var u=n[c],f=n[c+1],d=n[c+2],h=n[c+3];i[s++]=u,i[s++]=f,i[s++]=d,o[l++]=h}var x=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:x,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},yt.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Ml=yt.API,ph=Ml.getCharWidthsArray=function(e,t){var r,n,a=(t=t||{}).font||this.internal.getFont(),i=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:a.metadata.Unicode.widths,l=s.fof?s.fof:1,c=t.kerning?t.kerning:a.metadata.Unicode.kerning,u=c.fof?c.fof:1,f=t.doKerning!==!1,d=0,h=e.length,x=0,p=s[0]||l,m=[];for(r=0;r<h;r++)n=e.charCodeAt(r),typeof a.metadata.widthOfString=="function"?m.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(n))+o*(1e3/i)||0)/1e3):(d=f&&cr(c[n])==="object"&&!isNaN(parseInt(c[n][x],10))?c[n][x]/u:0,m.push((s[n]||p)/l+d)),x=n;return m},vw=Ml.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),a=t.charSpace||this.internal.getCharSpace();return Ml.processArabic&&(e=Ml.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,r,a)/r:ph.apply(this,arguments).reduce((function(i,o){return i+o}),0)},gw=function(e,t,r,n){for(var a=[],i=0,o=e.length,s=0;i!==o&&s+t[i]<r;)s+=t[i],i++;a.push(e.slice(0,i));var l=i;for(s=0;i!==o;)s+t[i]>n&&(a.push(e.slice(l,i)),s=0,l=i),s+=t[i],i++;return l!==i&&a.push(e.slice(l,i)),a},xw=function(e,t,r){r||(r={});var n,a,i,o,s,l,c,u=[],f=[u],d=r.textIndent||0,h=0,x=0,p=e.split(" "),m=ph.apply(this,[" ",r])[0];if(l=r.lineIndent===-1?p[0].length+2:r.lineIndent||0){var y=Array(l).join(" "),b=[];p.map((function(S){(S=S.split(/\s*\n/)).length>1?b=b.concat(S.map((function(A,O){return(O&&A.length?`
214
- `:"")+A}))):b.push(S[0])})),p=b,l=vw.apply(this,[y,r])}for(i=0,o=p.length;i<o;i++){var w=0;if(n=p[i],l&&n[0]==`
215
- `&&(n=n.substr(1),w=1),d+h+(x=(a=ph.apply(this,[n,r])).reduce((function(S,A){return S+A}),0))>t||w){if(x>t){for(s=gw.apply(this,[n,a,t-(d+h),t]),u.push(s.shift()),u=[s.pop()];s.length;)f.push([s.shift()]);x=a.slice(n.length-(u[0]?u[0].length:0)).reduce((function(S,A){return S+A}),0)}else u=[n];f.push(u),d=x+l,h=m}else u.push(n),d+=h+x,h=m}return c=l?function(S,A){return(A?y:"")+S.join(" ")}:function(S){return S.join(" ")},f.map(c)},Ml.splitTextToSize=function(e,t,r){var n,a=(r=r||{}).fontSize||this.internal.getFontSize(),i=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var f=this.internal.getFont(u.fontName,u.fontStyle);return f.metadata.Unicode?{widths:f.metadata.Unicode.widths||{0:1},kerning:f.metadata.Unicode.kerning||{}}:{font:f.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/a;i.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/a:0,i.lineIndent=r.lineIndent;var s,l,c=[];for(s=0,l=n.length;s<l;s++)c=c.concat(xw.apply(this,[n[s],o,i]));return c},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",r={},n={},a=0;a<t.length;a++)r[t[a]]="0123456789abcdef"[a],n["0123456789abcdef"[a]]=t[a];var i=function(f){return"0x"+parseInt(f,10).toString(16)},o=e.__fontmetrics__.compress=function(f){var d,h,x,p,m=["{"];for(var y in f){if(d=f[y],isNaN(parseInt(y,10))?h="'"+y+"'":(y=parseInt(y,10),h=(h=i(y).slice(2)).slice(0,-1)+n[h.slice(-1)]),typeof d=="number")d<0?(x=i(d).slice(3),p="-"):(x=i(d).slice(2),p=""),x=p+x.slice(0,-1)+n[x.slice(-1)];else{if(cr(d)!=="object")throw new Error("Don't know what to do with value type "+cr(d)+".");x=o(d)}m.push(h+x)}return m.push("}"),m.join("")},s=e.__fontmetrics__.uncompress=function(f){if(typeof f!="string")throw new Error("Invalid argument passed to uncompress.");for(var d,h,x,p,m={},y=1,b=m,w=[],S="",A="",O=f.length-1,N=1;N<O;N+=1)(p=f[N])=="'"?d?(x=d.join(""),d=void 0):d=[]:d?d.push(p):p=="{"?(w.push([b,x]),b={},x=void 0):p=="}"?((h=w.pop())[0][h[1]]=b,x=void 0,b=h[0]):p=="-"?y=-1:x===void 0?r.hasOwnProperty(p)?(S+=r[p],x=parseInt(S,16)*y,y=1,S=""):S+=p:r.hasOwnProperty(p)?(A+=r[p],b[x]=parseInt(A,16)*y,y=1,x=void 0,A=""):A+=p;return m},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},u={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(f){var d=f.font,h=u.Unicode[d.postScriptName];h&&(d.metadata.Unicode={},d.metadata.Unicode.widths=h.widths,d.metadata.Unicode.kerning=h.kerning);var x=c.Unicode[d.postScriptName];x&&(d.metadata.Unicode.encoding=x,d.encoding=x.codePages[0])}])})(yt.API),(function(e){var t=function(r){for(var n=r.length,a=new Uint8Array(n),i=0;i<n;i++)a[i]=r.charCodeAt(i);return a};e.API.events.push(["addFont",function(r){var n=void 0,a=r.font,i=r.instance;if(!a.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(n=i.existsFileInVFS(a.postScriptName)===!1?i.loadFile(a.postScriptName):i.getFileFromVFS(a.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(Vu(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(a,n)}}])})(yt),(function(e){function t(){return(Et.canvg?Promise.resolve(Et.canvg):Promise.resolve().then(()=>require("./index.es-DiSQX11w.js"))).catch((function(r){return Promise.reject(new Error("Could not load canvg: "+r))})).then((function(r){return r.default?r.default:r}))}yt.API.addSvgAsImage=function(r,n,a,i,o,s,l,c){if(isNaN(n)||isNaN(a))throw Ar.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw Ar.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=i,u.height=o;var f=u.getContext("2d");f.fillStyle="#fff",f.fillRect(0,0,u.width,u.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return t().then((function(x){return x.fromString(f,r,d)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(x){return x.render(d)})).then((function(){h.addImage(u.toDataURL("image/jpeg",1),n,a,i,o,l,c)}))}})(),yt.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var a=0;a<this.internal.pages[n].length;a++)this.internal.pages[n][a]=this.internal.pages[n][a].replace(t,r);return this},yt.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,a,i,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),l=[],c=0,u=0,f=0;function d(x,p){var m,y=!1;for(m=0;m<x.length;m+=1)x[m]===p&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var h=s.length;for(f=0;f<h;f+=1)r[s[f]].value=r[s[f]].defaultValue,r[s[f]].explicitSet=!1}if(cr(e)==="object"){for(a in e)if(i=e[a],d(s,a)&&i!==void 0){if(r[a].type==="boolean"&&typeof i=="boolean")r[a].value=i;else if(r[a].type==="name"&&d(r[a].valueSet,i))r[a].value=i;else if(r[a].type==="integer"&&Number.isInteger(i))r[a].value=i;else if(r[a].type==="array"){for(c=0;c<i.length;c+=1)if(n=!0,i[c].length===1&&typeof i[c][0]=="number")l.push(String(i[c]-1));else if(i[c].length>1){for(u=0;u<i[c].length;u+=1)typeof i[c][u]!="number"&&(n=!1);n===!0&&l.push([i[c][0]-1,i[c][1]-1].join(" "))}r[a].value="["+l.join(" ")+"]"}else r[a].value=r[a].defaultValue;r[a].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){var x,p=[];for(x in r)r[x].explicitSet===!0&&(r[x].type==="name"?p.push("/"+x+" /"+r[x].value):p.push("/"+x+" "+r[x].value));p.length!==0&&this.internal.write(`/ViewerPreferences
216
- <<
217
- `+p.join(`
218
- `)+`
219
- >>`)})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},(function(e){var t=function(){var n='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',a=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(n)),o=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),c=i.length+o.length+s.length+a.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(a+i+o+s+l),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(n,a){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:a||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",t)),this}})(yt.API),(function(e){var t=e.API,r=t.pdfEscape16=function(i,o){for(var s,l=o.metadata.Unicode.widths,c=["","0","00","000","0000"],u=[""],f=0,d=i.length;f<d;++f){if(s=o.metadata.characterToGlyph(i.charCodeAt(f)),o.metadata.glyIdsUsed.push(s),o.metadata.toUnicode[s]=i.charCodeAt(f),l.indexOf(s)==-1&&(l.push(s),l.push([parseInt(o.metadata.widthOfGlyph(s),10)])),s=="0")return u.join("");s=s.toString(16),u.push(c[4-s.length],s)}return u.join("")},n=function(i){var o,s,l,c,u,f,d;for(u=`/CIDInit /ProcSet findresource begin
220
- 12 dict begin
221
- begincmap
222
- /CIDSystemInfo <<
223
- /Registry (Adobe)
224
- /Ordering (UCS)
225
- /Supplement 0
226
- >> def
227
- /CMapName /Adobe-Identity-UCS def
228
- /CMapType 2 def
229
- 1 begincodespacerange
230
- <0000><ffff>
231
- endcodespacerange`,l=[],f=0,d=(s=Object.keys(i).sort((function(h,x){return h-x}))).length;f<d;f++)o=s[f],l.length>=100&&(u+=`
232
- `+l.length+` beginbfchar
233
- `+l.join(`
234
- `)+`
235
- endbfchar`,l=[]),i[o]!==void 0&&i[o]!==null&&typeof i[o].toString=="function"&&(c=("0000"+i[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+c+">"));return l.length&&(u+=`
236
- `+l.length+` beginbfchar
237
- `+l.join(`
238
- `)+`
239
- endbfchar
240
- `),u+=`endcmap
241
- CMapName currentdict /CMap defineresource pop
242
- end
243
- end`};t.events.push(["putFont",function(i){(function(o){var s=o.font,l=o.out,c=o.newObject,u=o.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="Identity-H"){for(var f=s.metadata.Unicode.widths,d=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),h="",x=0;x<d.length;x++)h+=String.fromCharCode(d[x]);var p=c();u({data:h,addLength1:!0,objectId:p}),l("endobj");var m=c();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:m}),l("endobj");var y=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+Yl(s.fontName)),l("/FontFile2 "+p+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/Flags "+s.metadata.flags),l("/StemV "+s.metadata.stemV),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l(">>"),l("endobj");var b=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+Yl(s.fontName)),l("/FontDescriptor "+y+" 0 R"),l("/W "+e.API.PDFObject.convert(f)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+s.encoding+")"),l(">>"),l(">>"),l("endobj"),s.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+m+" 0 R"),l("/BaseFont /"+Yl(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+b+" 0 R]"),l(">>"),l("endobj"),s.isAlreadyPutted=!0}})(i)}]),t.events.push(["putFont",function(i){(function(o){var s=o.font,l=o.out,c=o.newObject,u=o.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var f=s.metadata.rawData,d="",h=0;h<f.length;h++)d+=String.fromCharCode(f[h]);var x=c();u({data:d,addLength1:!0,objectId:x}),l("endobj");var p=c();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:p}),l("endobj");var m=c();l("<<"),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l("/StemV "+s.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+x+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/FontName /"+Yl(s.fontName)),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l(">>"),l("endobj"),s.objectNumber=c();for(var y=0;y<s.metadata.hmtx.widths.length;y++)s.metadata.hmtx.widths[y]=parseInt(s.metadata.hmtx.widths[y]*(1e3/s.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+p+" 0 R/BaseFont/"+Yl(s.fontName)+"/FontDescriptor "+m+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),l("endobj"),s.isAlreadyPutted=!0}})(i)}]);var a=function(i){var o,s=i.text||"",l=i.x,c=i.y,u=i.options||{},f=i.mutex||{},d=f.pdfEscape,h=f.activeFontKey,x=f.fonts,p=h,m="",y=0,b="",w=x[p].encoding;if(x[p].encoding!=="Identity-H")return{text:s,x:l,y:c,options:u,mutex:f};for(b=s,p=h,Array.isArray(s)&&(b=s[0]),y=0;y<b.length;y+=1)x[p].metadata.hasOwnProperty("cmap")&&(o=x[p].metadata.cmap.unicode.codeMap[b[y].charCodeAt(0)]),o||b[y].charCodeAt(0)<256&&x[p].metadata.hasOwnProperty("Unicode")?m+=b[y]:m+="";var S="";return parseInt(p.slice(1))<14||w==="WinAnsiEncoding"?S=d(m,p).split("").map((function(A){return A.charCodeAt(0).toString(16)})).join(""):w==="Identity-H"&&(S=r(m,x[p])),f.isHex=!0,{text:S,x:l,y:c,options:u,mutex:f}};t.events.push(["postProcessText",function(i){var o=i.text||"",s=[],l={text:o,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(o)){var c=0;for(c=0;c<o.length;c+=1)Array.isArray(o[c])&&o[c].length===3?s.push([a(Object.assign({},l,{text:o[c][0]})).text,o[c][1],o[c][2]]):s.push(a(Object.assign({},l,{text:o[c]})).text);i.text=s}else i.text=a(Object.assign({},l,{text:o})).text}])})(yt),(function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0},e.addFileToVFS=function(r,n){return t.call(this),this.internal.vFS[r]=n,this},e.getFileFromVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}})(yt.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var a,i,o,s,l,c,u,f=t,d=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],x={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},p={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},m=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],y=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),b=!1,w=0;this.__bidiEngine__={};var S=function(j){var E=j.charCodeAt(),D=E>>8,U=p[D];return U!==void 0?f[256*U+(255&E)]:D===252||D===253?"AL":y.test(D)?"L":D===8?"R":"N"},A=function(j){for(var E,D=0;D<j.length;D++){if((E=S(j.charAt(D)))==="L")return!1;if(E==="R")return!0}return!1},O=function(j,E,D,U){var H,B,z,te,Z=E[U];switch(Z){case"L":case"R":b=!1;break;case"N":case"AN":break;case"EN":b&&(Z="AN");break;case"AL":b=!0,Z="R";break;case"WS":Z="N";break;case"CS":U<1||U+1>=E.length||(H=D[U-1])!=="EN"&&H!=="AN"||(B=E[U+1])!=="EN"&&B!=="AN"?Z="N":b&&(B="AN"),Z=B===H?B:"N";break;case"ES":Z=(H=U>0?D[U-1]:"B")==="EN"&&U+1<E.length&&E[U+1]==="EN"?"EN":"N";break;case"ET":if(U>0&&D[U-1]==="EN"){Z="EN";break}if(b){Z="N";break}for(z=U+1,te=E.length;z<te&&E[z]==="ET";)z++;Z=z<te&&E[z]==="EN"?"EN":"N";break;case"NSM":if(o&&!s){for(te=E.length,z=U+1;z<te&&E[z]==="NSM";)z++;if(z<te){var ee=j[U],ce=ee>=1425&&ee<=2303||ee===64286;if(H=E[z],ce&&(H==="R"||H==="AL")){Z="R";break}}}Z=U<1||(H=E[U-1])==="B"?"N":D[U-1];break;case"B":b=!1,a=!0,Z=w;break;case"S":i=!0,Z="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":b=!1;break;case"BN":Z="N"}return Z},N=function(j,E,D){var U=j.split("");return D&&C(U,D,{hiLevel:w}),U.reverse(),E&&E.reverse(),U.join("")},C=function(j,E,D){var U,H,B,z,te,Z=-1,ee=j.length,ce=0,P=[],I=w?h:d,M=[];for(b=!1,a=!1,i=!1,H=0;H<ee;H++)M[H]=S(j[H]);for(B=0;B<ee;B++){if(te=ce,P[B]=O(j,M,P,B),U=240&(ce=I[te][x[P[B]]]),ce&=15,E[B]=z=I[ce][5],U>0)if(U===16){for(H=Z;H<B;H++)E[H]=1;Z=-1}else Z=-1;if(I[ce][6])Z===-1&&(Z=B);else if(Z>-1){for(H=Z;H<B;H++)E[H]=z;Z=-1}M[B]==="B"&&(E[B]=0),D.hiLevel|=z}i&&(function(q,Y,fe){for(var ne=0;ne<fe;ne++)if(q[ne]==="S"){Y[ne]=w;for(var K=ne-1;K>=0&&q[K]==="WS";K--)Y[K]=w}})(M,E,ee)},L=function(j,E,D,U,H){if(!(H.hiLevel<j)){if(j===1&&w===1&&!a)return E.reverse(),void(D&&D.reverse());for(var B,z,te,Z,ee=E.length,ce=0;ce<ee;){if(U[ce]>=j){for(te=ce+1;te<ee&&U[te]>=j;)te++;for(Z=ce,z=te-1;Z<z;Z++,z--)B=E[Z],E[Z]=E[z],E[z]=B,D&&(B=D[Z],D[Z]=D[z],D[z]=B);ce=te}ce++}}},R=function(j,E,D){var U=j.split(""),H={hiLevel:w};return D||(D=[]),C(U,D,H),(function(B,z,te){if(te.hiLevel!==0&&u)for(var Z,ee=0;ee<B.length;ee++)z[ee]===1&&(Z=m.indexOf(B[ee]))>=0&&(B[ee]=m[Z+1])})(U,D,H),L(2,U,E,D,H),L(1,U,E,D,H),U.join("")};return this.__bidiEngine__.doBidiReorder=function(j,E,D){if((function(H,B){if(B)for(var z=0;z<H.length;z++)B[z]=z;s===void 0&&(s=A(H)),c===void 0&&(c=A(H))})(j,E),o||!l||c)if(o&&l&&s^c)w=s?1:0,j=N(j,E,D);else if(!o&&l&&c)w=s?1:0,j=R(j,E,D),j=N(j,E);else if(!o||s||l||c){if(o&&!l&&s^c)j=N(j,E),s?(w=0,j=R(j,E,D)):(w=1,j=R(j,E,D),j=N(j,E));else if(o&&s&&!l&&c)w=1,j=R(j,E,D),j=N(j,E);else if(!o&&!l&&s^c){var U=u;s?(w=1,j=R(j,E,D),w=0,u=!1,j=R(j,E,D),u=U):(w=0,j=R(j,E,D),j=N(j,E),w=1,u=!1,j=R(j,E,D),u=U,j=N(j,E))}}else w=0,j=R(j,E,D);else w=s?1:0,j=R(j,E,D);return j},this.__bidiEngine__.setOptions=function(j){j&&(o=j.isInputVisual,l=j.isOutputVisual,s=j.isInputRtl,c=j.isOutputRtl,u=j.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var a=n.text,i=(n.x,n.y,n.options||{}),o=(n.mutex,i.lang,[]);if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,r.setOptions(i),Object.prototype.toString.call(a)==="[object Array]"){var s=0;for(o=[],s=0;s<a.length;s+=1)Object.prototype.toString.call(a[s])==="[object Array]"?o.push([r.doBidiReorder(a[s][0]),a[s][1],a[s][2]]):o.push([r.doBidiReorder(a[s])]);n.text=o}else n.text=r.doBidiReorder(a);r.setOptions({isInputVisual:!0})}])})(yt),yt.API.TTFFont=(function(){function e(t){var r;if(this.rawData=t,r=this.contents=new ss(t),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new EL(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new dL(this.contents),this.head=new mL(this),this.name=new bL(this),this.cmap=new JE(this),this.toUnicode={},this.hhea=new vL(this),this.maxp=new wL(this),this.hmtx=new _L(this),this.post=new xL(this),this.os2=new gL(this),this.loca=new TL(this),this.glyf=new SL(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,r,n,a,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,s,l,c;for(c=[],o=0,s=(l=this.bbox).length;o<s;o++)t=l[o],c.push(Math.round(t*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(n=255&(a=this.post.italic_angle),(32768&(r=a>>16))!=0&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var r;return((r=this.cmap.unicode)!=null?r.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*r},e.prototype.widthOfString=function(t,r,n){var a,i,o,s;for(o=0,i=0,s=(t=""+t).length;0<=s?i<s:i>s;i=0<=s?++i:--i)a=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(a))+n*(1e3/r)||0;return o*(r/1e3)},e.prototype.lineHeight=function(t,r){var n;return r==null&&(r=!1),n=r?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},e})();var Si,ss=(function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var r,n;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n[r]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(t){var r,n,a;for(a=[],r=0,n=t.length;0<=n?r<n:r>n;r=0<=n?++r:--r)a.push(this.writeByte(t.charCodeAt(r)));return a},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,r,n,a,i,o,s,l;return t=this.readByte(),r=this.readByte(),n=this.readByte(),a=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^r)+1099511627776*(255^n)+4294967296*(255^a)+16777216*(255^i)+65536*(255^o)+256*(255^s)+(255^l)+1):72057594037927940*t+281474976710656*r+1099511627776*n+4294967296*a+16777216*i+65536*o+256*s+l},e.prototype.writeLongLong=function(t){var r,n;return r=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var r,n;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r.push(this.readByte());return r},e.prototype.write=function(t){var r,n,a,i;for(i=[],n=0,a=t.length;n<a;n++)r=t[n],i.push(this.writeByte(r));return i},e})(),dL=(function(){var e;function t(r){var n,a,i;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},a=0,i=this.tableCount;0<=i?a<i:a>i;a=0<=i?++a:--a)n={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(r){var n,a,i,o,s,l,c,u,f,d,h,x,p;for(p in h=Object.keys(r).length,l=Math.log(2),f=16*Math.floor(Math.log(h)/l),o=Math.floor(f/l),u=16*h-f,(a=new ss).writeInt(this.scalarType),a.writeShort(h),a.writeShort(f),a.writeShort(o),a.writeShort(u),i=16*h,c=a.pos+i,s=null,x=[],r)for(d=r[p],a.writeString(p),a.writeInt(e(d)),a.writeInt(c),a.writeInt(d.length),x=x.concat(d),p==="head"&&(s=c),c+=d.length;c%4;)x.push(0),c++;return a.write(x),n=2981146554-e(a.data),a.pos=s+8,a.writeUInt32(n),a.data},e=function(r){var n,a,i,o;for(r=ZE.call(r);r.length%4;)r.push(0);for(i=new ss(r),a=0,n=0,o=r.length;n<o;n=n+=4)a+=i.readUInt32();return 4294967295&a},t})(),pL={}.hasOwnProperty,zi=function(e,t){for(var r in t)pL.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};Si=(function(){function e(t){var r;this.file=t,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e})();var mL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zi(t,Si),t.prototype.tag="head",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.revision=r.readInt(),this.checkSumAdjustment=r.readInt(),this.magicNumber=r.readInt(),this.flags=r.readShort(),this.unitsPerEm=r.readShort(),this.created=r.readLongLong(),this.modified=r.readLongLong(),this.xMin=r.readShort(),this.yMin=r.readShort(),this.xMax=r.readShort(),this.yMax=r.readShort(),this.macStyle=r.readShort(),this.lowestRecPPEM=r.readShort(),this.fontDirectionHint=r.readShort(),this.indexToLocFormat=r.readShort(),this.glyphDataFormat=r.readShort()},t.prototype.encode=function(r){var n;return(n=new ss).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(r),n.writeShort(this.glyphDataFormat),n.data},t})(),ww=(function(){function e(t,r){var n,a,i,o,s,l,c,u,f,d,h,x,p,m,y,b,w;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=r+t.readInt(),f=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(h=t.readUInt16(),d=h/2,t.pos+=6,i=(function(){var S,A;for(A=[],l=S=0;0<=d?S<d:S>d;l=0<=d?++S:--S)A.push(t.readUInt16());return A})(),t.pos+=2,p=(function(){var S,A;for(A=[],l=S=0;0<=d?S<d:S>d;l=0<=d?++S:--S)A.push(t.readUInt16());return A})(),c=(function(){var S,A;for(A=[],l=S=0;0<=d?S<d:S>d;l=0<=d?++S:--S)A.push(t.readUInt16());return A})(),u=(function(){var S,A;for(A=[],l=S=0;0<=d?S<d:S>d;l=0<=d?++S:--S)A.push(t.readUInt16());return A})(),a=(this.length-t.pos+this.offset)/2,s=(function(){var S,A;for(A=[],l=S=0;0<=a?S<a:S>a;l=0<=a?++S:--S)A.push(t.readUInt16());return A})(),l=y=0,w=i.length;y<w;l=++y)for(m=i[l],n=b=x=p[l];x<=m?b<=m:b>=m;n=x<=m?++b:--b)u[l]===0?o=n+c[l]:(o=s[u[l]/2+(n-x)-(d-l)]||0)!==0&&(o+=c[l]),this.codeMap[n]=65535&o}t.pos=f}return e.encode=function(t,r){var n,a,i,o,s,l,c,u,f,d,h,x,p,m,y,b,w,S,A,O,N,C,L,R,j,E,D,U,H,B,z,te,Z,ee,ce,P,I,M,q,Y,fe,ne,K,he,be,se;switch(U=new ss,o=Object.keys(t).sort((function(Le,Se){return Le-Se})),r){case"macroman":for(p=0,m=(function(){var Le=[];for(x=0;x<256;++x)Le.push(0);return Le})(),b={0:0},i={},H=0,Z=o.length;H<Z;H++)b[K=t[a=o[H]]]==null&&(b[K]=++p),i[a]={old:t[a],new:b[t[a]]},m[a]=b[t[a]];return U.writeUInt16(1),U.writeUInt16(0),U.writeUInt32(12),U.writeUInt16(0),U.writeUInt16(262),U.writeUInt16(0),U.write(m),{charMap:i,subtable:U.data,maxGlyphID:p+1};case"unicode":for(E=[],f=[],w=0,b={},n={},y=c=null,B=0,ee=o.length;B<ee;B++)b[A=t[a=o[B]]]==null&&(b[A]=++w),n[a]={old:A,new:b[A]},s=b[A]-a,y!=null&&s===c||(y&&f.push(y),E.push(a),c=s),y=a;for(y&&f.push(y),f.push(65535),E.push(65535),R=2*(L=E.length),C=2*Math.pow(Math.log(L)/Math.LN2,2),d=Math.log(C/2)/Math.LN2,N=2*L-C,l=[],O=[],h=[],x=z=0,ce=E.length;z<ce;x=++z){if(j=E[x],u=f[x],j===65535){l.push(0),O.push(0);break}if(j-(D=n[j].new)>=32768)for(l.push(0),O.push(2*(h.length+L-x)),a=te=j;j<=u?te<=u:te>=u;a=j<=u?++te:--te)h.push(n[a].new);else l.push(D-j),O.push(0)}for(U.writeUInt16(3),U.writeUInt16(1),U.writeUInt32(12),U.writeUInt16(4),U.writeUInt16(16+8*L+2*h.length),U.writeUInt16(0),U.writeUInt16(R),U.writeUInt16(C),U.writeUInt16(d),U.writeUInt16(N),fe=0,P=f.length;fe<P;fe++)a=f[fe],U.writeUInt16(a);for(U.writeUInt16(0),ne=0,I=E.length;ne<I;ne++)a=E[ne],U.writeUInt16(a);for(he=0,M=l.length;he<M;he++)s=l[he],U.writeUInt16(s);for(be=0,q=O.length;be<q;be++)S=O[be],U.writeUInt16(S);for(se=0,Y=h.length;se<Y;se++)p=h[se],U.writeUInt16(p);return{charMap:n,subtable:U.data,maxGlyphID:w+1}}},e})(),JE=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zi(t,Si),t.prototype.tag="cmap",t.prototype.parse=function(r){var n,a,i;for(r.pos=this.offset,this.version=r.readUInt16(),i=r.readUInt16(),this.tables=[],this.unicode=null,a=0;0<=i?a<i:a>i;a=0<=i?++a:--a)n=new ww(r,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},t.encode=function(r,n){var a,i;return n==null&&(n="macroman"),a=ww.encode(r,n),(i=new ss).writeUInt16(0),i.writeUInt16(1),a.table=i.data.concat(a.subtable),a},t})(),vL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zi(t,Si),t.prototype.tag="hhea",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.ascender=r.readShort(),this.decender=r.readShort(),this.lineGap=r.readShort(),this.advanceWidthMax=r.readShort(),this.minLeftSideBearing=r.readShort(),this.minRightSideBearing=r.readShort(),this.xMaxExtent=r.readShort(),this.caretSlopeRise=r.readShort(),this.caretSlopeRun=r.readShort(),this.caretOffset=r.readShort(),r.pos+=8,this.metricDataFormat=r.readShort(),this.numberOfMetrics=r.readUInt16()},t})(),gL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zi(t,Si),t.prototype.tag="OS/2",t.prototype.parse=function(r){if(r.pos=this.offset,this.version=r.readUInt16(),this.averageCharWidth=r.readShort(),this.weightClass=r.readUInt16(),this.widthClass=r.readUInt16(),this.type=r.readShort(),this.ySubscriptXSize=r.readShort(),this.ySubscriptYSize=r.readShort(),this.ySubscriptXOffset=r.readShort(),this.ySubscriptYOffset=r.readShort(),this.ySuperscriptXSize=r.readShort(),this.ySuperscriptYSize=r.readShort(),this.ySuperscriptXOffset=r.readShort(),this.ySuperscriptYOffset=r.readShort(),this.yStrikeoutSize=r.readShort(),this.yStrikeoutPosition=r.readShort(),this.familyClass=r.readShort(),this.panose=(function(){var n,a;for(a=[],n=0;n<10;++n)a.push(r.readByte());return a})(),this.charRange=(function(){var n,a;for(a=[],n=0;n<4;++n)a.push(r.readInt());return a})(),this.vendorID=r.readString(4),this.selection=r.readShort(),this.firstCharIndex=r.readShort(),this.lastCharIndex=r.readShort(),this.version>0&&(this.ascent=r.readShort(),this.descent=r.readShort(),this.lineGap=r.readShort(),this.winAscent=r.readShort(),this.winDescent=r.readShort(),this.codePageRange=(function(){var n,a;for(a=[],n=0;n<2;n=++n)a.push(r.readInt());return a})(),this.version>1))return this.xHeight=r.readShort(),this.capHeight=r.readShort(),this.defaultChar=r.readShort(),this.breakChar=r.readShort(),this.maxContext=r.readShort()},t})(),xL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zi(t,Si),t.prototype.tag="post",t.prototype.parse=function(r){var n,a,i;switch(r.pos=this.offset,this.format=r.readInt(),this.italicAngle=r.readInt(),this.underlinePosition=r.readShort(),this.underlineThickness=r.readShort(),this.isFixedPitch=r.readInt(),this.minMemType42=r.readInt(),this.maxMemType42=r.readInt(),this.minMemType1=r.readInt(),this.maxMemType1=r.readInt(),this.format){case 65536:break;case 131072:var o;for(a=r.readUInt16(),this.glyphNameIndex=[],o=0;0<=a?o<a:o>a;o=0<=a?++o:--o)this.glyphNameIndex.push(r.readUInt16());for(this.names=[],i=[];r.pos<this.offset+this.length;)n=r.readByte(),i.push(this.names.push(r.readString(n)));return i;case 151552:return a=r.readUInt16(),this.offsets=r.read(a);case 196608:break;case 262144:return this.map=(function(){var s,l,c;for(c=[],o=s=0,l=this.file.maxp.numGlyphs;0<=l?s<l:s>l;o=0<=l?++s:--s)c.push(r.readUInt32());return c}).call(this)}},t})(),yL=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},bL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zi(t,Si),t.prototype.tag="name",t.prototype.parse=function(r){var n,a,i,o,s,l,c,u,f,d,h;for(r.pos=this.offset,r.readShort(),n=r.readShort(),l=r.readShort(),a=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)a.push({platformID:r.readShort(),encodingID:r.readShort(),languageID:r.readShort(),nameID:r.readShort(),length:r.readShort(),offset:this.offset+l+r.readShort()});for(c={},o=f=0,d=a.length;f<d;o=++f)i=a[o],r.pos=i.offset,u=r.readString(i.length),s=new yL(u,i),c[h=i.nameID]==null&&(c[h]=[]),c[i.nameID].push(s);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},t})(),wL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zi(t,Si),t.prototype.tag="maxp",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.numGlyphs=r.readUInt16(),this.maxPoints=r.readUInt16(),this.maxContours=r.readUInt16(),this.maxCompositePoints=r.readUInt16(),this.maxComponentContours=r.readUInt16(),this.maxZones=r.readUInt16(),this.maxTwilightPoints=r.readUInt16(),this.maxStorage=r.readUInt16(),this.maxFunctionDefs=r.readUInt16(),this.maxInstructionDefs=r.readUInt16(),this.maxStackElements=r.readUInt16(),this.maxSizeOfInstructions=r.readUInt16(),this.maxComponentElements=r.readUInt16(),this.maxComponentDepth=r.readUInt16()},t})(),_L=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zi(t,Si),t.prototype.tag="hmtx",t.prototype.parse=function(r){var n,a,i,o,s,l,c;for(r.pos=this.offset,this.metrics=[],n=0,l=this.file.hhea.numberOfMetrics;0<=l?n<l:n>l;n=0<=l?++n:--n)this.metrics.push({advance:r.readUInt16(),lsb:r.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var u,f;for(f=[],n=u=0;0<=i?u<i:u>i;n=0<=i?++u:--u)f.push(r.readInt16());return f})(),this.widths=(function(){var u,f,d,h;for(h=[],u=0,f=(d=this.metrics).length;u<f;u++)o=d[u],h.push(o.advance);return h}).call(this),a=this.widths[this.widths.length-1],c=[],n=s=0;0<=i?s<i:s>i;n=0<=i?++s:--s)c.push(this.widths.push(a));return c},t.prototype.forGlyph=function(r){return r in this.metrics?this.metrics[r]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[r-this.metrics.length]}},t})(),ZE=[].slice,SL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zi(t,Si),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(r){var n,a,i,o,s,l,c,u,f,d;return r in this.cache?this.cache[r]:(o=this.file.loca,n=this.file.contents,a=o.indexOf(r),(i=o.lengthOf(r))===0?this.cache[r]=null:(n.pos=this.offset+a,s=(l=new ss(n.read(i))).readShort(),u=l.readShort(),d=l.readShort(),c=l.readShort(),f=l.readShort(),this.cache[r]=s===-1?new NL(l,u,d,c,f):new AL(l,s,u,d,c,f),this.cache[r]))},t.prototype.encode=function(r,n,a){var i,o,s,l,c;for(s=[],o=[],l=0,c=n.length;l<c;l++)i=r[n[l]],o.push(s.length),i&&(s=s.concat(i.encode(a)));return o.push(s.length),{table:s,offsets:o}},t})(),AL=(function(){function e(t,r,n,a,i,o){this.raw=t,this.numberOfContours=r,this.xMin=n,this.yMin=a,this.xMax=i,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),NL=(function(){function e(t,r,n,a,i){var o,s;for(this.raw=t,this.xMin=r,this.yMin=n,this.xMax=a,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;s=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&s;)o.pos+=1&s?4:2,128&s?o.pos+=8:64&s?o.pos+=4:8&s&&(o.pos+=2)}return e.prototype.encode=function(){var t,r,n;for(r=new ss(ZE.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)r.pos=this.glyphOffsets[t];return r.data},e})(),TL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return zi(t,Si),t.prototype.tag="loca",t.prototype.parse=function(r){var n,a;return r.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var i,o;for(o=[],a=0,i=this.length;a<i;a+=2)o.push(2*r.readUInt16());return o}).call(this):(function(){var i,o;for(o=[],a=0,i=this.length;a<i;a+=4)o.push(r.readUInt32());return o}).call(this)},t.prototype.indexOf=function(r){return this.offsets[r]},t.prototype.lengthOf=function(r){return this.offsets[r+1]-this.offsets[r]},t.prototype.encode=function(r,n){for(var a=new Uint32Array(this.offsets.length),i=0,o=0,s=0;s<a.length;++s)if(a[s]=i,o<n.length&&n[o]==s){++o,a[s]=i;var l=this.offsets[s],c=this.offsets[s+1]-l;c>0&&(i+=c)}for(var u=new Array(4*a.length),f=0;f<a.length;++f)u[4*f+3]=255&a[f],u[4*f+2]=(65280&a[f])>>8,u[4*f+1]=(16711680&a[f])>>16,u[4*f]=(4278190080&a[f])>>24;return u},t})(),EL=(function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,r,n,a,i;for(r in a=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[r],t[r]=a[n];return t},e.prototype.glyphsFor=function(t){var r,n,a,i,o,s,l;for(a={},o=0,s=t.length;o<s;o++)a[i=t[o]]=this.font.glyf.glyphFor(i);for(i in r=[],a)(n=a[i])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(i in l=this.glyphsFor(r))n=l[i],a[i]=n;return a},e.prototype.encode=function(t,r){var n,a,i,o,s,l,c,u,f,d,h,x,p,m,y;for(a in n=JE.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),h={0:0},y=n.charMap)h[(l=y[a]).old]=l.new;for(x in d=n.maxGlyphID,o)x in h||(h[x]=d++);return u=(function(b){var w,S;for(w in S={},b)S[b[w]]=w;return S})(h),f=Object.keys(u).sort((function(b,w){return b-w})),p=(function(){var b,w,S;for(S=[],b=0,w=f.length;b<w;b++)s=f[b],S.push(u[s]);return S})(),i=this.font.glyf.encode(o,p,h),c=this.font.loca.encode(i.offsets,p),m={cmap:this.font.cmap.raw(),glyf:i.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(r)},this.font.os2.exists&&(m["OS/2"]=this.font.os2.raw()),this.font.directory.encode(m)},e})();yt.API.PDFObject=(function(){var e;function t(){}return e=function(r,n){return(Array(n+1).join("0")+r).slice(-n)},t.convert=function(r){var n,a,i,o;if(Array.isArray(r))return"["+(function(){var s,l,c;for(c=[],s=0,l=r.length;s<l;s++)n=r[s],c.push(t.convert(n));return c})().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r!=null&&r.isString)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(a in i=["<<"],r)o=r[a],i.push("/"+a+" "+t.convert(o));return i.push(">>"),i.join(`
244
- `)}return""+r},t})();const PL=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:iL,AcroFormAppearance:mt,AcroFormButton:dn,AcroFormCheckBox:Xu,AcroFormChoiceField:$s,AcroFormComboBox:Us,AcroFormEditBox:Yu,AcroFormListBox:qs,AcroFormPasswordField:Ju,AcroFormPushButton:Ku,AcroFormRadioButton:zs,AcroFormTextField:ns,GState:df,ShadingPattern:Jo,TilingPattern:Is,default:yt,jsPDF:yt},Symbol.toStringTag,{value:"Module"}));var Xl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function OL(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var qh={exports:{}};const jL=OL(PL);/*!
245
- *
246
- * jsPDF AutoTable plugin v3.8.4
247
- *
248
- * Copyright (c) 2024 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable
249
- * Licensed under the MIT License.
250
- * http://opensource.org/licenses/mit-license
251
- *
252
- */var _w=qh.exports,Sw;function CL(){return Sw||(Sw=1,(function(e,t){(function(n,a){e.exports=a((function(){try{return jL}catch{}})())})(typeof globalThis<"u"?globalThis:typeof _w<"u"?_w:typeof window<"u"?window:typeof self<"u"?self:Xl,function(r){return(function(){var n={172:(function(s,l){var c=this&&this.__extends||(function(){var d=function(h,x){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(p[y]=m[y])},d(h,x)};return function(h,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");d(h,x);function p(){this.constructor=h}h.prototype=x===null?Object.create(x):(p.prototype=x.prototype,new p)}})();Object.defineProperty(l,"__esModule",{value:!0}),l.CellHookData=l.HookData=void 0;var u=(function(){function d(h,x,p){this.table=x,this.pageNumber=x.pageNumber,this.pageCount=this.pageNumber,this.settings=x.settings,this.cursor=p,this.doc=h.getDocument()}return d})();l.HookData=u;var f=(function(d){c(h,d);function h(x,p,m,y,b,w){var S=d.call(this,x,p,w)||this;return S.cell=m,S.row=y,S.column=b,S.section=y.section,S}return h})(u);l.CellHookData=f}),340:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0});var u=c(4),f=c(136),d=c(744),h=c(776),x=c(664),p=c(972);function m(y){y.API.autoTable=function(){for(var b=[],w=0;w<arguments.length;w++)b[w]=arguments[w];var S;b.length===1?S=b[0]:(console.error("Use of deprecated autoTable initiation"),S=b[2]||{},S.columns=b[0],S.body=b[1]);var A=(0,h.parseInput)(this,S),O=(0,p.createTable)(this,A);return(0,x.drawTable)(this,O),this},y.API.lastAutoTable=!1,y.API.previousAutoTable=!1,y.API.autoTable.previous=!1,y.API.autoTableText=function(b,w,S,A){(0,f.default)(b,w,S,A,this)},y.API.autoTableSetDefaults=function(b){return d.DocHandler.setDefaults(b,this),this},y.autoTableSetDefaults=function(b,w){d.DocHandler.setDefaults(b,w)},y.API.autoTableHtmlToJson=function(b,w){var S;if(w===void 0&&(w=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var A=new d.DocHandler(this),O=(0,u.parseHtml)(A,b,window,w,!1),N=O.head,C=O.body,L=((S=N[0])===null||S===void 0?void 0:S.map(function(R){return R.content}))||[];return{columns:L,rows:C,data:C}},y.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var b=this.lastAutoTable;return b&&b.finalY?b.finalY:0},y.API.autoTableAddPageContent=function(b){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),y.API.autoTable.globalDefaults||(y.API.autoTable.globalDefaults={}),y.API.autoTable.globalDefaults.addPageContent=b,this},y.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}l.default=m}),136:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0});function c(u,f,d,h,x){h=h||{};var p=1.15,m=x.internal.scaleFactor,y=x.internal.getFontSize()/m,b=x.getLineHeightFactor?x.getLineHeightFactor():p,w=y*b,S=/\r\n|\r|\n/g,A="",O=1;if((h.valign==="middle"||h.valign==="bottom"||h.halign==="center"||h.halign==="right")&&(A=typeof u=="string"?u.split(S):u,O=A.length||1),d+=y*(2-p),h.valign==="middle"?d-=O/2*w:h.valign==="bottom"&&(d-=O*w),h.halign==="center"||h.halign==="right"){var N=y;if(h.halign==="center"&&(N*=.5),A&&O>=1){for(var C=0;C<A.length;C++)x.text(A[C],f-x.getStringUnitWidth(A[C])*N,d),d+=w;return x}f-=x.getStringUnitWidth(u)*N}return h.halign==="justify"?x.text(u,f,d,{maxWidth:h.maxWidth||100,align:"justify"}):x.text(u,f,d),x}l.default=c}),420:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.getPageAvailableWidth=l.parseSpacing=l.getFillStyle=l.addTableBorder=l.getStringWidth=void 0;function c(x,p,m){m.applyStyles(p,!0);var y=Array.isArray(x)?x:[x],b=y.map(function(w){return m.getTextWidth(w)}).reduce(function(w,S){return Math.max(w,S)},0);return b}l.getStringWidth=c;function u(x,p,m,y){var b=p.settings.tableLineWidth,w=p.settings.tableLineColor;x.applyStyles({lineWidth:b,lineColor:w});var S=f(b,!1);S&&x.rect(m.x,m.y,p.getWidth(x.pageSize().width),y.y-m.y,S)}l.addTableBorder=u;function f(x,p){var m=x>0,y=p||p===0;return m&&y?"DF":m?"S":y?"F":null}l.getFillStyle=f;function d(x,p){var m,y,b,w;if(x=x||p,Array.isArray(x)){if(x.length>=4)return{top:x[0],right:x[1],bottom:x[2],left:x[3]};if(x.length===3)return{top:x[0],right:x[1],bottom:x[2],left:x[1]};if(x.length===2)return{top:x[0],right:x[1],bottom:x[0],left:x[1]};x.length===1?x=x[0]:x=p}return typeof x=="object"?(typeof x.vertical=="number"&&(x.top=x.vertical,x.bottom=x.vertical),typeof x.horizontal=="number"&&(x.right=x.horizontal,x.left=x.horizontal),{left:(m=x.left)!==null&&m!==void 0?m:p,top:(y=x.top)!==null&&y!==void 0?y:p,right:(b=x.right)!==null&&b!==void 0?b:p,bottom:(w=x.bottom)!==null&&w!==void 0?w:p}):(typeof x!="number"&&(x=p),{top:x,right:x,bottom:x,left:x})}l.parseSpacing=d;function h(x,p){var m=d(p.settings.margin,0);return x.pageSize().width-(m.left+m.right)}l.getPageAvailableWidth=h}),796:(function(s,l){var c=this&&this.__extends||(function(){var h=function(x,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(m[b]=y[b])},h(x,p)};return function(x,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");h(x,p);function m(){this.constructor=x}x.prototype=p===null?Object.create(p):(m.prototype=p.prototype,new m)}})();Object.defineProperty(l,"__esModule",{value:!0}),l.getTheme=l.defaultStyles=l.HtmlRowInput=void 0;var u=(function(h){c(x,h);function x(p){var m=h.call(this)||this;return m._element=p,m}return x})(Array);l.HtmlRowInput=u;function f(h){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/h,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}l.defaultStyles=f;function d(h){var x={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return x[h]}l.getTheme=d}),903:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.parseCss=void 0;var u=c(420);function f(m,y,b,w,S){var A={},O=1.3333333333333333,N=h(y,function(Z){return S.getComputedStyle(Z).backgroundColor});N!=null&&(A.fillColor=N);var C=h(y,function(Z){return S.getComputedStyle(Z).color});C!=null&&(A.textColor=C);var L=p(w,b);L&&(A.cellPadding=L);var R="borderTopColor",j=O*b,E=w.borderTopWidth;if(w.borderBottomWidth===E&&w.borderRightWidth===E&&w.borderLeftWidth===E){var D=(parseFloat(E)||0)/j;D&&(A.lineWidth=D)}else A.lineWidth={top:(parseFloat(w.borderTopWidth)||0)/j,right:(parseFloat(w.borderRightWidth)||0)/j,bottom:(parseFloat(w.borderBottomWidth)||0)/j,left:(parseFloat(w.borderLeftWidth)||0)/j},A.lineWidth.top||(A.lineWidth.right?R="borderRightColor":A.lineWidth.bottom?R="borderBottomColor":A.lineWidth.left&&(R="borderLeftColor"));var U=h(y,function(Z){return S.getComputedStyle(Z)[R]});U!=null&&(A.lineColor=U);var H=["left","right","center","justify"];H.indexOf(w.textAlign)!==-1&&(A.halign=w.textAlign),H=["middle","bottom","top"],H.indexOf(w.verticalAlign)!==-1&&(A.valign=w.verticalAlign);var B=parseInt(w.fontSize||"");isNaN(B)||(A.fontSize=B/O);var z=d(w);z&&(A.fontStyle=z);var te=(w.fontFamily||"").toLowerCase();return m.indexOf(te)!==-1&&(A.font=te),A}l.parseCss=f;function d(m){var y="";return(m.fontWeight==="bold"||m.fontWeight==="bolder"||parseInt(m.fontWeight)>=700)&&(y="bold"),(m.fontStyle==="italic"||m.fontStyle==="oblique")&&(y+="italic"),y}function h(m,y){var b=x(m,y);if(!b)return null;var w=b.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!w||!Array.isArray(w))return null;var S=[parseInt(w[1]),parseInt(w[2]),parseInt(w[3])],A=parseInt(w[4]);return A===0||isNaN(S[0])||isNaN(S[1])||isNaN(S[2])?null:S}function x(m,y){var b=y(m);return b==="rgba(0, 0, 0, 0)"||b==="transparent"||b==="initial"||b==="inherit"?m.parentElement==null?null:x(m.parentElement,y):b}function p(m,y){var b=[m.paddingTop,m.paddingRight,m.paddingBottom,m.paddingLeft],w=96/(72/y),S=(parseInt(m.lineHeight)-parseInt(m.fontSize))/y/2,A=b.map(function(N){return parseInt(N||"0")/w}),O=(0,u.parseSpacing)(A,0);return S>O.top&&(O.top=S),S>O.bottom&&(O.bottom=S),O}}),744:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.DocHandler=void 0;var c={},u=(function(){function f(d){this.jsPDFDocument=d,this.userStyles={textColor:d.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:d.internal.getFontSize(),fontStyle:d.internal.getFont().fontStyle,font:d.internal.getFont().fontName,lineWidth:d.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:d.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return f.setDefaults=function(d,h){h===void 0&&(h=null),h?h.__autoTableDocumentDefaults=d:c=d},f.unifyColor=function(d){return Array.isArray(d)?d:typeof d=="number"?[d,d,d]:typeof d=="string"?[d]:null},f.prototype.applyStyles=function(d,h){var x,p,m;h===void 0&&(h=!1),d.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(d.fontStyle);var y=this.jsPDFDocument.internal.getFont(),b=y.fontStyle,w=y.fontName;if(d.font&&(w=d.font),d.fontStyle){b=d.fontStyle;var S=this.getFontList()[w];S&&S.indexOf(b)===-1&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(S[0]),b=S[0])}if(this.jsPDFDocument.setFont(w,b),d.fontSize&&this.jsPDFDocument.setFontSize(d.fontSize),!h){var A=f.unifyColor(d.fillColor);A&&(x=this.jsPDFDocument).setFillColor.apply(x,A),A=f.unifyColor(d.textColor),A&&(p=this.jsPDFDocument).setTextColor.apply(p,A),A=f.unifyColor(d.lineColor),A&&(m=this.jsPDFDocument).setDrawColor.apply(m,A),typeof d.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(d.lineWidth)}},f.prototype.splitTextToSize=function(d,h,x){return this.jsPDFDocument.splitTextToSize(d,h,x)},f.prototype.rect=function(d,h,x,p,m){return this.jsPDFDocument.rect(d,h,x,p,m)},f.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},f.prototype.getTextWidth=function(d){return this.jsPDFDocument.getTextWidth(d)},f.prototype.getDocument=function(){return this.jsPDFDocument},f.prototype.setPage=function(d){this.jsPDFDocument.setPage(d)},f.prototype.addPage=function(){return this.jsPDFDocument.addPage()},f.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},f.prototype.getGlobalOptions=function(){return c||{}},f.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},f.prototype.pageSize=function(){var d=this.jsPDFDocument.internal.pageSize;return d.width==null&&(d={width:d.getWidth(),height:d.getHeight()}),d},f.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},f.prototype.getLineHeightFactor=function(){var d=this.jsPDFDocument;return d.getLineHeightFactor?d.getLineHeightFactor():1.15},f.prototype.getLineHeight=function(d){return d/this.scaleFactor()*this.getLineHeightFactor()},f.prototype.pageNumber=function(){var d=this.jsPDFDocument.internal.getCurrentPageInfo();return d?d.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},f})();l.DocHandler=u}),4:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.parseHtml=void 0;var u=c(903),f=c(796);function d(p,m,y,b,w){var S,A;b===void 0&&(b=!1),w===void 0&&(w=!1);var O;typeof m=="string"?O=y.document.querySelector(m):O=m;var N=Object.keys(p.getFontList()),C=p.scaleFactor(),L=[],R=[],j=[];if(!O)return console.error("Html table could not be found with input: ",m),{head:L,body:R,foot:j};for(var E=0;E<O.rows.length;E++){var D=O.rows[E],U=(A=(S=D==null?void 0:D.parentElement)===null||S===void 0?void 0:S.tagName)===null||A===void 0?void 0:A.toLowerCase(),H=h(N,C,y,D,b,w);H&&(U==="thead"?L.push(H):U==="tfoot"?j.push(H):R.push(H))}return{head:L,body:R,foot:j}}l.parseHtml=d;function h(p,m,y,b,w,S){for(var A=new f.HtmlRowInput(b),O=0;O<b.cells.length;O++){var N=b.cells[O],C=y.getComputedStyle(N);if(w||C.display!=="none"){var L=void 0;S&&(L=(0,u.parseCss)(p,N,m,C,y)),A.push({rowSpan:N.rowSpan,colSpan:N.colSpan,styles:L,_element:N,content:x(N)})}}var R=y.getComputedStyle(b);if(A.length>0&&(w||R.display!=="none"))return A}function x(p){var m=p.cloneNode(!0);return m.innerHTML=m.innerHTML.replace(/\n/g,"").replace(/ +/g," "),m.innerHTML=m.innerHTML.split(/<br.*?>/).map(function(y){return y.trim()}).join(`
253
- `),m.innerText||m.textContent||""}}),776:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.parseInput=void 0;var u=c(4),f=c(356),d=c(420),h=c(744),x=c(792);function p(O,N){var C=new h.DocHandler(O),L=C.getDocumentOptions(),R=C.getGlobalOptions();(0,x.default)(C,R,L,N);var j=(0,f.assign)({},R,L,N),E;typeof window<"u"&&(E=window);var D=m(R,L,N),U=y(R,L,N),H=b(C,j),B=S(C,j,E);return{id:N.tableId,content:B,hooks:U,styles:D,settings:H}}l.parseInput=p;function m(O,N,C){for(var L={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},R=function(U){if(U==="columnStyles"){var H=O[U],B=N[U],z=C[U];L.columnStyles=(0,f.assign)({},H,B,z)}else{var te=[O,N,C],Z=te.map(function(ee){return ee[U]||{}});L[U]=(0,f.assign)({},Z[0],Z[1],Z[2])}},j=0,E=Object.keys(L);j<E.length;j++){var D=E[j];R(D)}return L}function y(O,N,C){for(var L=[O,N,C],R={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},j=0,E=L;j<E.length;j++){var D=E[j];D.didParseCell&&R.didParseCell.push(D.didParseCell),D.willDrawCell&&R.willDrawCell.push(D.willDrawCell),D.didDrawCell&&R.didDrawCell.push(D.didDrawCell),D.willDrawPage&&R.willDrawPage.push(D.willDrawPage),D.didDrawPage&&R.didDrawPage.push(D.didDrawPage)}return R}function b(O,N){var C,L,R,j,E,D,U,H,B,z,te,Z,ee=(0,d.parseSpacing)(N.margin,40/O.scaleFactor()),ce=(C=w(O,N.startY))!==null&&C!==void 0?C:ee.top,P;N.showFoot===!0?P="everyPage":N.showFoot===!1?P="never":P=(L=N.showFoot)!==null&&L!==void 0?L:"everyPage";var I;N.showHead===!0?I="everyPage":N.showHead===!1?I="never":I=(R=N.showHead)!==null&&R!==void 0?R:"everyPage";var M=(j=N.useCss)!==null&&j!==void 0?j:!1,q=N.theme||(M?"plain":"striped"),Y=!!N.horizontalPageBreak,fe=(E=N.horizontalPageBreakRepeat)!==null&&E!==void 0?E:null;return{includeHiddenHtml:(D=N.includeHiddenHtml)!==null&&D!==void 0?D:!1,useCss:M,theme:q,startY:ce,margin:ee,pageBreak:(U=N.pageBreak)!==null&&U!==void 0?U:"auto",rowPageBreak:(H=N.rowPageBreak)!==null&&H!==void 0?H:"auto",tableWidth:(B=N.tableWidth)!==null&&B!==void 0?B:"auto",showHead:I,showFoot:P,tableLineWidth:(z=N.tableLineWidth)!==null&&z!==void 0?z:0,tableLineColor:(te=N.tableLineColor)!==null&&te!==void 0?te:200,horizontalPageBreak:Y,horizontalPageBreakRepeat:fe,horizontalPageBreakBehaviour:(Z=N.horizontalPageBreakBehaviour)!==null&&Z!==void 0?Z:"afterAllRows"}}function w(O,N){var C=O.getLastAutoTable(),L=O.scaleFactor(),R=O.pageNumber(),j=!1;if(C&&C.startPageNumber){var E=C.startPageNumber+C.pageNumber-1;j=E===R}return typeof N=="number"?N:(N==null||N===!1)&&j&&(C==null?void 0:C.finalY)!=null?C.finalY+20/L:null}function S(O,N,C){var L=N.head||[],R=N.body||[],j=N.foot||[];if(N.html){var E=N.includeHiddenHtml;if(C){var D=(0,u.parseHtml)(O,N.html,C,E,N.useCss)||{};L=D.head||L,R=D.body||L,j=D.foot||L}else console.error("Cannot parse html in non browser environment")}var U=N.columns||A(L,R,j);return{columns:U,head:L,body:R,foot:j}}function A(O,N,C){var L=O[0]||N[0]||C[0]||[],R=[];return Object.keys(L).filter(function(j){return j!=="_element"}).forEach(function(j){var E=1,D;Array.isArray(L)?D=L[parseInt(j)]:D=L[j],typeof D=="object"&&!Array.isArray(D)&&(E=(D==null?void 0:D.colSpan)||1);for(var U=0;U<E;U++){var H=void 0;Array.isArray(L)?H=R.length:H=j+(U>0?"_".concat(U):"");var B={dataKey:H};R.push(B)}}),R}}),792:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0});function c(f,d,h,x){for(var p=function(w){w&&typeof w!="object"&&console.error("The options parameter should be of type object, is: "+typeof w),typeof w.extendWidth<"u"&&(w.tableWidth=w.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),typeof w.margins<"u"&&(typeof w.margin>"u"&&(w.margin=w.margins),console.error("Use of deprecated option: margins, use margin instead.")),w.startY&&typeof w.startY!="number"&&(console.error("Invalid value for startY option",w.startY),delete w.startY),!w.didDrawPage&&(w.afterPageContent||w.beforePageContent||w.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),w.didDrawPage=function(j){f.applyStyles(f.userStyles),w.beforePageContent&&w.beforePageContent(j),f.applyStyles(f.userStyles),w.afterPageContent&&w.afterPageContent(j),f.applyStyles(f.userStyles),w.afterPageAdd&&j.pageNumber>1&&j.afterPageAdd(j),f.applyStyles(f.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach(function(j){w[j]&&console.error('The "'.concat(j,'" hook has changed in version 3.0, check the changelog for how to migrate.'))}),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach(function(j){var E=j[0],D=j[1];w[D]&&(console.error("Use of deprecated option ".concat(D,". Use ").concat(E," instead")),w[E]=w[D])}),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(j){var E=typeof j=="string"?j:j[0],D=typeof j=="string"?j:j[1];typeof w[E]<"u"&&(typeof w.styles[D]>"u"&&(w.styles[D]=w[E]),console.error("Use of deprecated option: "+E+", use the style "+D+" instead."))});for(var S=0,A=["styles","bodyStyles","headStyles","footStyles"];S<A.length;S++){var O=A[S];u(w[O]||{})}for(var N=w.columnStyles||{},C=0,L=Object.keys(N);C<L.length;C++){var R=L[C];u(N[R]||{})}},m=0,y=[d,h,x];m<y.length;m++){var b=y[m];p(b)}}l.default=c;function u(f){f.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),f.minCellHeight||(f.minCellHeight=f.rowHeight)):f.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),f.cellWidth||(f.cellWidth=f.columnWidth))}}),260:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.Column=l.Cell=l.Row=l.Table=void 0;var u=c(796),f=c(172),d=c(420),h=(function(){function y(b,w){this.pageNumber=1,this.pageCount=1,this.id=b.id,this.settings=b.settings,this.styles=b.styles,this.hooks=b.hooks,this.columns=w.columns,this.head=w.head,this.body=w.body,this.foot=w.foot}return y.prototype.getHeadHeight=function(b){return this.head.reduce(function(w,S){return w+S.getMaxCellHeight(b)},0)},y.prototype.getFootHeight=function(b){return this.foot.reduce(function(w,S){return w+S.getMaxCellHeight(b)},0)},y.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},y.prototype.callCellHooks=function(b,w,S,A,O,N){for(var C=0,L=w;C<L.length;C++){var R=L[C],j=new f.CellHookData(b,this,S,A,O,N),E=R(j)===!1;if(S.text=Array.isArray(S.text)?S.text:[S.text],E)return!1}return!0},y.prototype.callEndPageHooks=function(b,w){b.applyStyles(b.userStyles);for(var S=0,A=this.hooks.didDrawPage;S<A.length;S++){var O=A[S];O(new f.HookData(b,this,w))}},y.prototype.callWillDrawPageHooks=function(b,w){for(var S=0,A=this.hooks.willDrawPage;S<A.length;S++){var O=A[S];O(new f.HookData(b,this,w))}},y.prototype.getWidth=function(b){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var w=this.columns.reduce(function(A,O){return A+O.wrappedWidth},0);return w}else{var S=this.settings.margin;return b-S.left-S.right}},y})();l.Table=h;var x=(function(){function y(b,w,S,A,O){O===void 0&&(O=!1),this.height=0,this.raw=b,b instanceof u.HtmlRowInput&&(this.raw=b._element,this.element=b._element),this.index=w,this.section=S,this.cells=A,this.spansMultiplePages=O}return y.prototype.getMaxCellHeight=function(b){var w=this;return b.reduce(function(S,A){var O;return Math.max(S,((O=w.cells[A.index])===null||O===void 0?void 0:O.height)||0)},0)},y.prototype.hasRowSpan=function(b){var w=this;return b.filter(function(S){var A=w.cells[S.index];return A?A.rowSpan>1:!1}).length>0},y.prototype.canEntireRowFit=function(b,w){return this.getMaxCellHeight(w)<=b},y.prototype.getMinimumRowHeight=function(b,w){var S=this;return b.reduce(function(A,O){var N=S.cells[O.index];if(!N)return 0;var C=w.getLineHeight(N.styles.fontSize),L=N.padding("vertical"),R=L+C;return R>A?R:A},0)},y})();l.Row=x;var p=(function(){function y(b,w,S){var A,O;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=w,this.section=S,this.raw=b;var N=b;b!=null&&typeof b=="object"&&!Array.isArray(b)?(this.rowSpan=b.rowSpan||1,this.colSpan=b.colSpan||1,N=(O=(A=b.content)!==null&&A!==void 0?A:b.title)!==null&&O!==void 0?O:b,b._element&&(this.raw=b._element)):(this.rowSpan=1,this.colSpan=1);var C=N!=null?""+N:"",L=/\r\n|\r|\n/g;this.text=C.split(L)}return y.prototype.getTextPos=function(){var b;if(this.styles.valign==="top")b=this.y+this.padding("top");else if(this.styles.valign==="bottom")b=this.y+this.height-this.padding("bottom");else{var w=this.height-this.padding("vertical");b=this.y+w/2+this.padding("top")}var S;if(this.styles.halign==="right")S=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var A=this.width-this.padding("horizontal");S=this.x+A/2+this.padding("left")}else S=this.x+this.padding("left");return{x:S,y:b}},y.prototype.getContentHeight=function(b,w){w===void 0&&(w=1.15);var S=Array.isArray(this.text)?this.text.length:1,A=this.styles.fontSize/b*w,O=S*A+this.padding("vertical");return Math.max(O,this.styles.minCellHeight)},y.prototype.padding=function(b){var w=(0,d.parseSpacing)(this.styles.cellPadding,0);return b==="vertical"?w.top+w.bottom:b==="horizontal"?w.left+w.right:w[b]},y})();l.Cell=p;var m=(function(){function y(b,w,S){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=b,this.raw=w,this.index=S}return y.prototype.getMaxCustomCellWidth=function(b){for(var w=0,S=0,A=b.allRows();S<A.length;S++){var O=A[S],N=O.cells[this.index];N&&typeof N.styles.cellWidth=="number"&&(w=Math.max(w,N.styles.cellWidth))}return w},y})();l.Column=m}),356:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.assign=void 0;function c(u,f,d,h,x){if(u==null)throw new TypeError("Cannot convert undefined or null to object");for(var p=Object(u),m=1;m<arguments.length;m++){var y=arguments[m];if(y!=null)for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(p[b]=y[b])}return p}l.assign=c}),972:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.createTable=void 0;var u=c(744),f=c(260),d=c(324),h=c(796),x=c(356);function p(O,N){var C=new u.DocHandler(O),L=m(N,C.scaleFactor()),R=new f.Table(N,L);return(0,d.calculateWidths)(C,R),C.applyStyles(C.userStyles),R}l.createTable=p;function m(O,N){var C=O.content,L=S(C.columns);if(C.head.length===0){var R=b(L,"head");R&&C.head.push(R)}if(C.foot.length===0){var R=b(L,"foot");R&&C.foot.push(R)}var j=O.settings.theme,E=O.styles;return{columns:L,head:y("head",C.head,L,E,j,N),body:y("body",C.body,L,E,j,N),foot:y("foot",C.foot,L,E,j,N)}}function y(O,N,C,L,R,j){var E={},D=N.map(function(U,H){for(var B=0,z={},te=0,Z=0,ee=0,ce=C;ee<ce.length;ee++){var P=ce[ee];if(E[P.index]==null||E[P.index].left===0)if(Z===0){var I=void 0;Array.isArray(U)?I=U[P.index-te-B]:I=U[P.dataKey];var M={};typeof I=="object"&&!Array.isArray(I)&&(M=(I==null?void 0:I.styles)||{});var q=A(O,P,H,R,L,j,M),Y=new f.Cell(I,q,O);z[P.dataKey]=Y,z[P.index]=Y,Z=Y.colSpan-1,E[P.index]={left:Y.rowSpan-1,times:Z}}else Z--,te++;else E[P.index].left--,Z=E[P.index].times,B++}return new f.Row(U,H,O,z)});return D}function b(O,N){var C={};return O.forEach(function(L){if(L.raw!=null){var R=w(N,L.raw);R!=null&&(C[L.dataKey]=R)}}),Object.keys(C).length>0?C:null}function w(O,N){if(O==="head"){if(typeof N=="object")return N.header||N.title||null;if(typeof N=="string"||typeof N=="number")return N}else if(O==="foot"&&typeof N=="object")return N.footer;return null}function S(O){return O.map(function(N,C){var L,R,j;return typeof N=="object"?j=(R=(L=N.dataKey)!==null&&L!==void 0?L:N.key)!==null&&R!==void 0?R:C:j=C,new f.Column(j,N,C)})}function A(O,N,C,L,R,j,E){var D=(0,h.getTheme)(L),U;O==="head"?U=R.headStyles:O==="body"?U=R.bodyStyles:O==="foot"&&(U=R.footStyles);var H=(0,x.assign)({},D.table,D[O],R.styles,U),B=R.columnStyles[N.dataKey]||R.columnStyles[N.index]||{},z=O==="body"?B:{},te=O==="body"&&C%2===0?(0,x.assign)({},D.alternateRow,R.alternateRowStyles):{},Z=(0,h.defaultStyles)(j),ee=(0,x.assign)({},Z,H,te,z);return(0,x.assign)(ee,E)}}),664:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.addPage=l.drawTable=void 0;var u=c(420),f=c(260),d=c(744),h=c(356),x=c(136),p=c(224);function m(B,z){var te=z.settings,Z=te.startY,ee=te.margin,ce={x:ee.left,y:Z},P=z.getHeadHeight(z.columns)+z.getFootHeight(z.columns),I=Z+ee.bottom+P;if(te.pageBreak==="avoid"){var M=z.body,q=M.reduce(function(ne,K){return ne+K.height},0);I+=q}var Y=new d.DocHandler(B);(te.pageBreak==="always"||te.startY!=null&&I>Y.pageSize().height)&&(H(Y),ce.y=ee.top),z.callWillDrawPageHooks(Y,ce);var fe=(0,h.assign)({},ce);z.startPageNumber=Y.pageNumber(),te.horizontalPageBreak?y(Y,z,fe,ce):(Y.applyStyles(Y.userStyles),(te.showHead==="firstPage"||te.showHead==="everyPage")&&z.head.forEach(function(ne){return R(Y,z,ne,ce,z.columns)}),Y.applyStyles(Y.userStyles),z.body.forEach(function(ne,K){var he=K===z.body.length-1;L(Y,z,ne,he,fe,ce,z.columns)}),Y.applyStyles(Y.userStyles),(te.showFoot==="lastPage"||te.showFoot==="everyPage")&&z.foot.forEach(function(ne){return R(Y,z,ne,ce,z.columns)})),(0,u.addTableBorder)(Y,z,fe,ce),z.callEndPageHooks(Y,ce),z.finalY=ce.y,B.lastAutoTable=z,B.previousAutoTable=z,B.autoTable&&(B.autoTable.previous=z),Y.applyStyles(Y.userStyles)}l.drawTable=m;function y(B,z,te,Z){var ee=(0,p.calculateAllColumnsCanFitInPage)(B,z),ce=z.settings;if(ce.horizontalPageBreakBehaviour==="afterAllRows")ee.forEach(function(q,Y){B.applyStyles(B.userStyles),Y>0?U(B,z,te,Z,q.columns,!0):b(B,z,Z,q.columns),w(B,z,te,Z,q.columns),A(B,z,Z,q.columns)});else for(var P=-1,I=ee[0],M=function(){var q=P;if(I){B.applyStyles(B.userStyles);var Y=I.columns;P>=0?U(B,z,te,Z,Y,!0):b(B,z,Z,Y),q=S(B,z,P+1,Z,Y),A(B,z,Z,Y)}var fe=q-P;ee.slice(1).forEach(function(ne){B.applyStyles(B.userStyles),U(B,z,te,Z,ne.columns,!0),S(B,z,P+1,Z,ne.columns,fe),A(B,z,Z,ne.columns)}),P=q};P<z.body.length-1;)M()}function b(B,z,te,Z){var ee=z.settings;B.applyStyles(B.userStyles),(ee.showHead==="firstPage"||ee.showHead==="everyPage")&&z.head.forEach(function(ce){return R(B,z,ce,te,Z)})}function w(B,z,te,Z,ee){B.applyStyles(B.userStyles),z.body.forEach(function(ce,P){var I=P===z.body.length-1;L(B,z,ce,I,te,Z,ee)})}function S(B,z,te,Z,ee,ce){B.applyStyles(B.userStyles),ce=ce??z.body.length;var P=Math.min(te+ce,z.body.length),I=-1;return z.body.slice(te,P).forEach(function(M,q){var Y=te+q===z.body.length-1,fe=D(B,z,Y,Z);M.canEntireRowFit(fe,ee)&&(R(B,z,M,Z,ee),I=te+q)}),I}function A(B,z,te,Z){var ee=z.settings;B.applyStyles(B.userStyles),(ee.showFoot==="lastPage"||ee.showFoot==="everyPage")&&z.foot.forEach(function(ce){return R(B,z,ce,te,Z)})}function O(B,z,te){var Z=te.getLineHeight(B.styles.fontSize),ee=B.padding("vertical"),ce=Math.floor((z-ee)/Z);return Math.max(0,ce)}function N(B,z,te,Z){var ee={};B.spansMultiplePages=!0,B.height=0;for(var ce=0,P=0,I=te.columns;P<I.length;P++){var M=I[P],q=B.cells[M.index];if(q){Array.isArray(q.text)||(q.text=[q.text]);var Y=new f.Cell(q.raw,q.styles,q.section);Y=(0,h.assign)(Y,q),Y.text=[];var fe=O(q,z,Z);q.text.length>fe&&(Y.text=q.text.splice(fe,q.text.length));var ne=Z.scaleFactor(),K=Z.getLineHeightFactor();q.contentHeight=q.getContentHeight(ne,K),q.contentHeight>=z&&(q.contentHeight=z,Y.styles.minCellHeight-=z),q.contentHeight>B.height&&(B.height=q.contentHeight),Y.contentHeight=Y.getContentHeight(ne,K),Y.contentHeight>ce&&(ce=Y.contentHeight),ee[M.index]=Y}}var he=new f.Row(B.raw,-1,B.section,ee,!0);he.height=ce;for(var be=0,se=te.columns;be<se.length;be++){var M=se[be],Y=he.cells[M.index];Y&&(Y.height=he.height);var q=B.cells[M.index];q&&(q.height=B.height)}return he}function C(B,z,te,Z){var ee=B.pageSize().height,ce=Z.settings.margin,P=ce.top+ce.bottom,I=ee-P;z.section==="body"&&(I-=Z.getHeadHeight(Z.columns)+Z.getFootHeight(Z.columns));var M=z.getMinimumRowHeight(Z.columns,B),q=M<te;if(M>I)return console.error("Will not be able to print row ".concat(z.index," correctly since it's minimum height is larger than page height")),!0;if(!q)return!1;var Y=z.hasRowSpan(Z.columns),fe=z.getMaxCellHeight(Z.columns)>I;return fe?(Y&&console.error("The content of row ".concat(z.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(Y||Z.settings.rowPageBreak==="avoid")}function L(B,z,te,Z,ee,ce,P){var I=D(B,z,Z,ce);if(te.canEntireRowFit(I,P))R(B,z,te,ce,P);else if(C(B,te,I,z)){var M=N(te,I,z,B);R(B,z,te,ce,P),U(B,z,ee,ce,P),L(B,z,M,Z,ee,ce,P)}else U(B,z,ee,ce,P),L(B,z,te,Z,ee,ce,P)}function R(B,z,te,Z,ee){Z.x=z.settings.margin.left;for(var ce=0,P=ee;ce<P.length;ce++){var I=P[ce],M=te.cells[I.index];if(!M){Z.x+=I.width;continue}B.applyStyles(M.styles),M.x=Z.x,M.y=Z.y;var q=z.callCellHooks(B,z.hooks.willDrawCell,M,te,I,Z);if(q===!1){Z.x+=I.width;continue}j(B,M,Z);var Y=M.getTextPos();(0,x.default)(M.text,Y.x,Y.y,{halign:M.styles.halign,valign:M.styles.valign,maxWidth:Math.ceil(M.width-M.padding("left")-M.padding("right"))},B.getDocument()),z.callCellHooks(B,z.hooks.didDrawCell,M,te,I,Z),Z.x+=I.width}Z.y+=te.height}function j(B,z,te){var Z=z.styles;if(B.getDocument().setFillColor(B.getDocument().getFillColor()),typeof Z.lineWidth=="number"){var ee=(0,u.getFillStyle)(Z.lineWidth,Z.fillColor);ee&&B.rect(z.x,te.y,z.width,z.height,ee)}else typeof Z.lineWidth=="object"&&(Z.fillColor&&B.rect(z.x,te.y,z.width,z.height,"F"),E(B,z,te,Z.lineWidth))}function E(B,z,te,Z){var ee,ce,P,I;Z.top&&(ee=te.x,ce=te.y,P=te.x+z.width,I=te.y,Z.right&&(P+=.5*Z.right),Z.left&&(ee-=.5*Z.left),M(Z.top,ee,ce,P,I)),Z.bottom&&(ee=te.x,ce=te.y+z.height,P=te.x+z.width,I=te.y+z.height,Z.right&&(P+=.5*Z.right),Z.left&&(ee-=.5*Z.left),M(Z.bottom,ee,ce,P,I)),Z.left&&(ee=te.x,ce=te.y,P=te.x,I=te.y+z.height,Z.top&&(ce-=.5*Z.top),Z.bottom&&(I+=.5*Z.bottom),M(Z.left,ee,ce,P,I)),Z.right&&(ee=te.x+z.width,ce=te.y,P=te.x+z.width,I=te.y+z.height,Z.top&&(ce-=.5*Z.top),Z.bottom&&(I+=.5*Z.bottom),M(Z.right,ee,ce,P,I));function M(q,Y,fe,ne,K){B.getDocument().setLineWidth(q),B.getDocument().line(Y,fe,ne,K,"S")}}function D(B,z,te,Z){var ee=z.settings.margin.bottom,ce=z.settings.showFoot;return(ce==="everyPage"||ce==="lastPage"&&te)&&(ee+=z.getFootHeight(z.columns)),B.pageSize().height-Z.y-ee}function U(B,z,te,Z,ee,ce){ee===void 0&&(ee=[]),ce===void 0&&(ce=!1),B.applyStyles(B.userStyles),z.settings.showFoot==="everyPage"&&!ce&&z.foot.forEach(function(I){return R(B,z,I,Z,ee)}),z.callEndPageHooks(B,Z);var P=z.settings.margin;(0,u.addTableBorder)(B,z,te,Z),H(B),z.pageNumber++,z.pageCount++,Z.x=P.left,Z.y=P.top,te.y=P.top,z.callWillDrawPageHooks(B,Z),z.settings.showHead==="everyPage"&&(z.head.forEach(function(I){return R(B,z,I,Z,ee)}),B.applyStyles(B.userStyles))}l.addPage=U;function H(B){var z=B.pageNumber();B.setPage(z+1);var te=B.pageNumber();return te===z?(B.addPage(),!0):!1}}),224:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.calculateAllColumnsCanFitInPage=void 0;var u=c(420);function f(h,x,p){var m;p===void 0&&(p={});var y=(0,u.getPageAvailableWidth)(h,x),b=new Map,w=[],S=[],A=[];x.settings.horizontalPageBreakRepeat,Array.isArray(x.settings.horizontalPageBreakRepeat)?A=x.settings.horizontalPageBreakRepeat:(typeof x.settings.horizontalPageBreakRepeat=="string"||typeof x.settings.horizontalPageBreakRepeat=="number")&&(A=[x.settings.horizontalPageBreakRepeat]),A.forEach(function(L){var R=x.columns.find(function(j){return j.dataKey===L||j.index===L});R&&!b.has(R.index)&&(b.set(R.index,!0),w.push(R.index),S.push(x.columns[R.index]),y-=R.wrappedWidth)});for(var O=!0,N=(m=p==null?void 0:p.start)!==null&&m!==void 0?m:0;N<x.columns.length;){if(b.has(N)){N++;continue}var C=x.columns[N].wrappedWidth;if(O||y>=C)O=!1,w.push(N),S.push(x.columns[N]),y-=C;else break;N++}return{colIndexes:w,columns:S,lastIndex:N-1}}function d(h,x){for(var p=[],m=0;m<x.columns.length;m++){var y=f(h,x,{start:m});y.columns.length&&(p.push(y),m=y.lastIndex)}return p}l.calculateAllColumnsCanFitInPage=d}),324:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.ellipsize=l.resizeColumns=l.calculateWidths=void 0;var u=c(420);function f(w,S){d(w,S);var A=[],O=0;S.columns.forEach(function(C){var L=C.getMaxCustomCellWidth(S);L?C.width=L:(C.width=C.wrappedWidth,A.push(C)),O+=C.width});var N=S.getWidth(w.pageSize().width)-O;N&&(N=h(A,N,function(C){return Math.max(C.minReadableWidth,C.minWidth)})),N&&(N=h(A,N,function(C){return C.minWidth})),N=Math.abs(N),!S.settings.horizontalPageBreak&&N>.1/w.scaleFactor()&&(N=N<1?N:Math.round(N),console.warn("Of the table content, ".concat(N," units width could not fit page"))),p(S),m(S,w),x(S)}l.calculateWidths=f;function d(w,S){var A=w.scaleFactor(),O=S.settings.horizontalPageBreak,N=(0,u.getPageAvailableWidth)(w,S);S.allRows().forEach(function(C){for(var L=0,R=S.columns;L<R.length;L++){var j=R[L],E=C.cells[j.index];if(E){var D=S.hooks.didParseCell;S.callCellHooks(w,D,E,C,j,null);var U=E.padding("horizontal");E.contentWidth=(0,u.getStringWidth)(E.text,E.styles,w)+U;var H=(0,u.getStringWidth)(E.text.join(" ").split(/[^\S\u00A0]+/),E.styles,w);if(E.minReadableWidth=H+E.padding("horizontal"),typeof E.styles.cellWidth=="number")E.minWidth=E.styles.cellWidth,E.wrappedWidth=E.styles.cellWidth;else if(E.styles.cellWidth==="wrap"||O===!0)E.contentWidth>N?(E.minWidth=N,E.wrappedWidth=N):(E.minWidth=E.contentWidth,E.wrappedWidth=E.contentWidth);else{var B=10/A;E.minWidth=E.styles.minCellWidth||B,E.wrappedWidth=E.contentWidth,E.minWidth>E.wrappedWidth&&(E.wrappedWidth=E.minWidth)}}}}),S.allRows().forEach(function(C){for(var L=0,R=S.columns;L<R.length;L++){var j=R[L],E=C.cells[j.index];if(E&&E.colSpan===1)j.wrappedWidth=Math.max(j.wrappedWidth,E.wrappedWidth),j.minWidth=Math.max(j.minWidth,E.minWidth),j.minReadableWidth=Math.max(j.minReadableWidth,E.minReadableWidth);else{var D=S.styles.columnStyles[j.dataKey]||S.styles.columnStyles[j.index]||{},U=D.cellWidth||D.minCellWidth;U&&typeof U=="number"&&(j.minWidth=U,j.wrappedWidth=U)}E&&(E.colSpan>1&&!j.minWidth&&(j.minWidth=E.minWidth),E.colSpan>1&&!j.wrappedWidth&&(j.wrappedWidth=E.minWidth))}})}function h(w,S,A){for(var O=S,N=w.reduce(function(B,z){return B+z.wrappedWidth},0),C=0;C<w.length;C++){var L=w[C],R=L.wrappedWidth/N,j=O*R,E=L.width+j,D=A(L),U=E<D?D:E;S-=U-L.width,L.width=U}if(S=Math.round(S*1e10)/1e10,S){var H=w.filter(function(B){return S<0?B.width>A(B):!0});H.length&&(S=h(H,S,A))}return S}l.resizeColumns=h;function x(w){for(var S={},A=1,O=w.allRows(),N=0;N<O.length;N++)for(var C=O[N],L=0,R=w.columns;L<R.length;L++){var j=R[L],E=S[j.index];if(A>1)A--,delete C.cells[j.index];else if(E)E.cell.height+=C.height,A=E.cell.colSpan,delete C.cells[j.index],E.left--,E.left<=1&&delete S[j.index];else{var D=C.cells[j.index];if(!D)continue;if(D.height=C.height,D.rowSpan>1){var U=O.length-N,H=D.rowSpan>U?U:D.rowSpan;S[j.index]={cell:D,left:H,row:C}}}}}function p(w){for(var S=w.allRows(),A=0;A<S.length;A++)for(var O=S[A],N=null,C=0,L=0,R=0;R<w.columns.length;R++){var j=w.columns[R];if(L-=1,L>1&&w.columns[R+1])C+=j.width,delete O.cells[j.index];else if(N){var E=N;delete O.cells[j.index],N=null,E.width=j.width+C}else{var E=O.cells[j.index];if(!E)continue;if(L=E.colSpan,C=0,E.colSpan>1){N=E,C+=j.width;continue}E.width=j.width+C}}}function m(w,S){for(var A={count:0,height:0},O=0,N=w.allRows();O<N.length;O++){for(var C=N[O],L=0,R=w.columns;L<R.length;L++){var j=R[L],E=C.cells[j.index];if(E){S.applyStyles(E.styles,!0);var D=E.width-E.padding("horizontal");if(E.styles.overflow==="linebreak")E.text=S.splitTextToSize(E.text,D+1/S.scaleFactor(),{fontSize:E.styles.fontSize});else if(E.styles.overflow==="ellipsize")E.text=y(E.text,D,E.styles,S,"...");else if(E.styles.overflow==="hidden")E.text=y(E.text,D,E.styles,S,"");else if(typeof E.styles.overflow=="function"){var U=E.styles.overflow(E.text,D);typeof U=="string"?E.text=[U]:E.text=U}E.contentHeight=E.getContentHeight(S.scaleFactor(),S.getLineHeightFactor());var H=E.contentHeight/E.rowSpan;E.rowSpan>1&&A.count*A.height<H*E.rowSpan?A={height:H,count:E.rowSpan}:A&&A.count>0&&A.height>H&&(H=A.height),H>C.height&&(C.height=H)}}A.count--}}function y(w,S,A,O,N){return w.map(function(C){return b(C,S,A,O,N)})}l.ellipsize=y;function b(w,S,A,O,N){var C=1e4*O.scaleFactor();if(S=Math.ceil(S*C)/C,S>=(0,u.getStringWidth)(w,A,O))return w;for(;S<(0,u.getStringWidth)(w+N,A,O)&&!(w.length<=1);)w=w.substring(0,w.length-1);return w.trim()+N}}),964:(function(s){if(typeof r>"u"){var l=new Error("Cannot find module 'undefined'");throw l.code="MODULE_NOT_FOUND",l}s.exports=r})},a={};function i(s){var l=a[s];if(l!==void 0)return l.exports;var c=a[s]={exports:{}};return n[s].call(c.exports,c,c.exports,i),c.exports}var o={};return(function(){var s=o;Object.defineProperty(s,"__esModule",{value:!0}),s.Cell=s.Column=s.Row=s.Table=s.CellHookData=s.__drawTable=s.__createTable=s.applyPlugin=void 0;var l=i(340),c=i(776),u=i(664),f=i(972),d=i(260);Object.defineProperty(s,"Table",{enumerable:!0,get:function(){return d.Table}});var h=i(172);Object.defineProperty(s,"CellHookData",{enumerable:!0,get:function(){return h.CellHookData}});var x=i(260);Object.defineProperty(s,"Cell",{enumerable:!0,get:function(){return x.Cell}}),Object.defineProperty(s,"Column",{enumerable:!0,get:function(){return x.Column}}),Object.defineProperty(s,"Row",{enumerable:!0,get:function(){return x.Row}});function p(S){(0,l.default)(S)}s.applyPlugin=p;function m(S,A){var O=(0,c.parseInput)(S,A),N=(0,f.createTable)(S,O);(0,u.drawTable)(S,N)}function y(S,A){var O=(0,c.parseInput)(S,A);return(0,f.createTable)(S,O)}s.__createTable=y;function b(S,A){(0,u.drawTable)(S,A)}s.__drawTable=b;try{var w=i(964);w.jsPDF&&(w=w.jsPDF),p(w)}catch{}s.default=m})(),o})()})})(qh)),qh.exports}CL();function kL({title:e,subtitle:t,headers:r,rows:n,filename:a,orientation:i="portrait"}){const o=new yt(i);o.setFontSize(18),o.setTextColor(30,41,59),o.text(e,14,22),t&&(o.setFontSize(10),o.setTextColor(100,116,139),o.text(t,14,30)),o.autoTable({startY:t?36:30,head:[r],body:n,styles:{fontSize:9,cellPadding:3},headStyles:{fillColor:[14,165,233],textColor:255,fontStyle:"bold"},alternateRowStyles:{fillColor:[248,250,252]},margin:{left:14,right:14}});const s=o.internal.getNumberOfPages();for(let l=1;l<=s;l++)o.setPage(l),o.setFontSize(8),o.setTextColor(148,163,184),o.text(`Generated on ${new Date().toLocaleDateString()} | Page ${l} of ${s}`,14,o.internal.pageSize.height-10);o.save(`${a}.pdf`)}function LL({student:e,exams:t,schoolName:r}){var i;const n=new yt;n.setFontSize(16),n.setTextColor(30,41,59),n.text(r||"School ERP",105,20,{align:"center"}),n.setFontSize(12),n.text("Student Report Card",105,28,{align:"center"}),n.setFontSize(10),n.setTextColor(71,85,105),n.text(`Name: ${e.full_name}`,14,42),n.text(`Roll No: ${e.roll_number||e.admission_number||""}`,14,48),n.text(`Class: ${e.class_section||e.class_name+"-"+e.section}`,120,42),n.text("Academic Year: 2025-2026",120,48);let a=58;(t||[]).forEach(o=>{n.setFontSize(11),n.setTextColor(30,41,59),n.text(o.name,14,a),a+=4,o.subjects&&o.subjects.length>0&&(n.autoTable({startY:a,head:[["Subject","Marks","Total","Grade"]],body:o.subjects.map(s=>[s.name,s.marks,s.total,s.grade||""]),styles:{fontSize:9},headStyles:{fillColor:[99,102,241]},margin:{left:14,right:14}}),a=n.lastAutoTable.finalY+8)}),n.save(`report-card-${(i=e.full_name)==null?void 0:i.replace(/\s+/g,"-")}.pdf`)}function IL({student:e,payment:t,schoolName:r}){const n=new yt;n.setFontSize(16),n.text(r||"School ERP",105,20,{align:"center"}),n.setFontSize(12),n.text("Fee Payment Receipt",105,28,{align:"center"}),n.setFontSize(10),n.setTextColor(71,85,105);const a=[["Student Name",e.name||e.full_name||""],["Class",e.class_name||""],["Receipt No",t.ref||t.reference||`RCP-${Date.now()}`],["Date",t.date||new Date().toLocaleDateString()],["Amount Paid",`Rs. ${(t.amount||0).toLocaleString()}`],["Payment Method",t.method||"Online"],["Status",t.status||"Paid"]];n.autoTable({startY:38,body:a,styles:{fontSize:10},columnStyles:{0:{fontStyle:"bold",cellWidth:50}},margin:{left:14,right:14}}),n.setFontSize(8),n.setTextColor(148,163,184),n.text("This is a computer-generated receipt.",105,n.internal.pageSize.height-15,{align:"center"}),n.save(`fee-receipt-${e.name||"student"}.pdf`)}function FL({className:e,date:t,records:r,summary:n}){const a=new yt;a.setFontSize(16),a.text("Attendance Report",14,20),a.setFontSize(10),a.setTextColor(71,85,105),a.text(`Class: ${e} | Date: ${t}`,14,28),a.text(`Present: ${(n==null?void 0:n.present)||0} | Absent: ${(n==null?void 0:n.absent)||0} | Late: ${(n==null?void 0:n.late)||0} | Total: ${(r==null?void 0:r.length)||0}`,14,34),a.autoTable({startY:42,head:[["Roll No","Student Name","Status"]],body:(r||[]).map(i=>[i.roll_number||"",i.full_name||"",i.status||""]),styles:{fontSize:9},headStyles:{fillColor:[14,165,233]}}),a.save(`attendance-${e}-${t}.pdf`)}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var zh={};zh.version="0.18.5";var QE=1252,ML=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],eP=function(e){ML.indexOf(e)!=-1&&(QE=e)};function DL(){eP(1252)}var pf=function(e){eP(e)};function RL(){pf(1200),DL()}var mh=function(t){return String.fromCharCode(t)},Aw=function(t){return String.fromCharCode(t)},Wh,es="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function mf(e){for(var t="",r=0,n=0,a=0,i=0,o=0,s=0,l=0,c=0;c<e.length;)r=e.charCodeAt(c++),i=r>>2,n=e.charCodeAt(c++),o=(r&3)<<4|n>>4,a=e.charCodeAt(c++),s=(n&15)<<2|a>>6,l=a&63,isNaN(n)?s=l=64:isNaN(a)&&(l=64),t+=es.charAt(i)+es.charAt(o)+es.charAt(s)+es.charAt(l);return t}function wo(e){var t="",r=0,n=0,a=0,i=0,o=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<e.length;)i=es.indexOf(e.charAt(c++)),o=es.indexOf(e.charAt(c++)),r=i<<2|o>>4,t+=String.fromCharCode(r),s=es.indexOf(e.charAt(c++)),n=(o&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(n)),l=es.indexOf(e.charAt(c++)),a=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(a));return t}var tr=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),Eo=(function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}})();function Ks(e){return tr?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Nw(e){return tr?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var vi=function(t){return tr?Eo(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function cp(e){if(typeof ArrayBuffer>"u")return vi(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function n0(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function BL(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var Cn=tr?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:Eo(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),a=0;for(t=0,r=0;t<e.length;r+=a,++t)if(a=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function $L(e){for(var t=[],r=0,n=e.length+250,a=Ks(e.length+255),i=0;i<e.length;++i){var o=e.charCodeAt(i);if(o<128)a[r++]=o;else if(o<2048)a[r++]=192|o>>6&31,a[r++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var s=e.charCodeAt(++i)&1023;a[r++]=240|o>>8&7,a[r++]=128|o>>2&63,a[r++]=128|s>>6&15|(o&3)<<4,a[r++]=128|s&63}else a[r++]=224|o>>12&15,a[r++]=128|o>>6&63,a[r++]=128|o&63;r>n&&(t.push(a.slice(0,r)),r=0,a=Ks(65535),n=65530)}return t.push(a.slice(0,r)),Cn(t)}var Zu=/\u0000/g,vh=/[\u0001-\u0006]/g;function nc(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function xi(e,t){var r=""+e;return r.length>=t?r:Ur("0",t-r.length)+r}function eb(e,t){var r=""+e;return r.length>=t?r:Ur(" ",t-r.length)+r}function Hh(e,t){var r=""+e;return r.length>=t?r:r+Ur(" ",t-r.length)}function qL(e,t){var r=""+Math.round(e);return r.length>=t?r:Ur("0",t-r.length)+r}function UL(e,t){var r=""+e;return r.length>=t?r:Ur("0",t-r.length)+r}var Tw=Math.pow(2,32);function Dl(e,t){if(e>Tw||e<-Tw)return qL(e,t);var r=Math.round(e);return UL(r,t)}function Gh(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var Ew=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],U1=[["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 zL(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 Wr={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"秒 "'},Pw={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},WL={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 Vh(e,t,r){for(var n=e<0?-1:1,a=e*n,i=0,o=1,s=0,l=1,c=0,u=0,f=Math.floor(a);c<t&&(f=Math.floor(a),s=f*o+i,u=f*c+l,!(a-f<5e-8));)a=1/(a-f),i=o,o=s,l=c,c=u;if(u>t&&(c>t?(u=l,s=i):(u=c,s=o)),!r)return[0,n*s,u];var d=Math.floor(n*s/u);return[d,n*s-d*u,u]}function gh(e,t,r){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),i=0,o=[],s={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(n+=1462),s.u>.9999&&(s.u=0,++a==86400&&(s.T=a=0,++n,++s.D)),n===60)o=r?[1317,10,29]:[1900,2,29],i=3;else if(n===0)o=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),n<60&&(i=(i+6)%7),r&&(i=JL(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=a%60,a=Math.floor(a/60),s.M=a%60,a=Math.floor(a/60),s.H=a,s.q=i,s}var tP=new Date(1899,11,31,0,0,0),HL=tP.getTime(),GL=new Date(1900,2,1,0,0,0);function rP(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=GL&&(r+=1440*60*1e3),(r-(HL+(e.getTimezoneOffset()-tP.getTimezoneOffset())*6e4))/(1440*60*1e3)}function tb(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function VL(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function YL(e){var t=e<0?12:11,r=tb(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function KL(e){var t=tb(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function XL(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=YL(e):t===10?r=e.toFixed(10).substr(0,12):r=KL(e),tb(VL(r.toUpperCase()))}function xy(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):XL(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return ls(14,rP(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function JL(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function ZL(e,t,r,n){var a="",i=0,o=0,s=r.y,l,c=0;switch(e){case 98:s=r.y+543;case 121:switch(t.length){case 1:case 2:l=s%100,c=2;break;default:l=s%1e4,c=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,c=t.length;break;case 3:return U1[r.m-1][1];case 5:return U1[r.m-1][0];default:return U1[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,c=t.length;break;case 3:return Ew[r.q][0];default:return Ew[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?xi(r.S,t.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,i=Math.round(o*(r.S+r.u)),i>=60*o&&(i=0),t==="s"?i===0?"0":""+i/o:(a=xi(i,2+n),t==="ss"?a.substr(0,2):"."+a.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}c=t.length===3?1:2;break;case 101:l=s,c=1;break}var u=c>0?xi(l,c):"";return u}function ts(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var nP=/%/g;function QL(e,t,r){var n=t.replace(nP,""),a=t.length-n.length;return ho(e,n,r*Math.pow(10,2*a))+Ur("%",a)}function e7(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return ho(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function aP(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+aP(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),r.indexOf("e")===-1){var o=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+i):r+="E+"+(o-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,c,u){return l+c+u.substr(0,(a+i)%a)+"."+u.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var iP=/# (\?+)( ?)\/( ?)(\d+)/;function t7(e,t,r){var n=parseInt(e[4],10),a=Math.round(t*n),i=Math.floor(a/n),o=a-i*n,s=n;return r+(i===0?"":""+i)+" "+(o===0?Ur(" ",e[1].length+1+e[4].length):eb(o,e[1].length)+e[2]+"/"+e[3]+xi(s,e[4].length))}function r7(e,t,r){return r+(t===0?"":""+t)+Ur(" ",e[1].length+2+e[4].length)}var oP=/^#*0*\.([0#]+)/,sP=/\).*[0#]/,lP=/\(###\) ###\\?-####/;function Qn(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function Ow(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function jw(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function n7(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function a7(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function Ga(e,t,r){if(e.charCodeAt(0)===40&&!t.match(sP)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Ga("n",n,r):"("+Ga("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return e7(e,t,r);if(t.indexOf("%")!==-1)return QL(e,t,r);if(t.indexOf("E")!==-1)return aP(t,r);if(t.charCodeAt(0)===36)return"$"+Ga(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,o,s,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+Dl(l,t.length);if(t.match(/^[#?]+$/))return a=Dl(r,0),a==="0"&&(a=""),a.length>t.length?a:Qn(t.substr(0,t.length-a.length))+a;if(i=t.match(iP))return t7(i,l,c);if(t.match(/^#+0+$/))return c+Dl(l,t.length-t.indexOf("0"));if(i=t.match(oP))return a=Ow(r,i[1].length).replace(/^([^\.]+)$/,"$1."+Qn(i[1])).replace(/\.$/,"."+Qn(i[1])).replace(/\.(\d*)$/,function(x,p){return"."+p+Ur("0",Qn(i[1]).length-p.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return c+Ow(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return c+ts(Dl(l,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Ga(e,t,-r):ts(""+(Math.floor(r)+n7(r,i[1].length)))+"."+xi(jw(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return Ga(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=nc(Ga(e,t.replace(/[\\-]/g,""),r)),o=0,nc(nc(t.replace(/\\/g,"")).replace(/[0#]/g,function(x){return o<a.length?a.charAt(o++):x==="0"?"0":""}));if(t.match(lP))return a=Ga(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var u="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=Vh(l,Math.pow(10,o)-1,!1),a=""+c,u=ho("n",i[1],s[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),a+=u+i[2]+"/"+i[3],u=Hh(s[2],o),u.length<i[4].length&&(u=Qn(i[4].substr(i[4].length-u.length))+u),a+=u,a;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),s=Vh(l,Math.pow(10,o)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?eb(s[1],o)+i[2]+"/"+i[3]+Hh(s[2],o):Ur(" ",2*o+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=Dl(r,0),t.length<=a.length?a:Qn(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var f=t.indexOf(".")-o,d=t.length-a.length-f;return Qn(t.substr(0,f)+a+t.substr(t.length-d))}if(i=t.match(/^00,000\.([#0]*0)$/))return o=jw(r,i[1].length),r<0?"-"+Ga(e,t,-r):ts(a7(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(x){return"00,"+(x.length<3?xi(0,3-x.length):"")+x})+"."+xi(o,i[1].length);switch(t){case"###,##0.00":return Ga(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var h=ts(Dl(l,0));return h!=="0"?c+h:"";case"###,###.00":return Ga(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return Ga(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function i7(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return ho(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function o7(e,t,r){var n=t.replace(nP,""),a=t.length-n.length;return ho(e,n,r*Math.pow(10,2*a))+Ur("%",a)}function cP(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+cP(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),!r.match(/[Ee]/)){var o=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+i):r+="E+"+(o-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,c,u){return l+c+u.substr(0,(a+i)%a)+"."+u.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function ki(e,t,r){if(e.charCodeAt(0)===40&&!t.match(sP)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?ki("n",n,r):"("+ki("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return i7(e,t,r);if(t.indexOf("%")!==-1)return o7(e,t,r);if(t.indexOf("E")!==-1)return cP(t,r);if(t.charCodeAt(0)===36)return"$"+ki(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,o,s,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+xi(l,t.length);if(t.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>t.length?a:Qn(t.substr(0,t.length-a.length))+a;if(i=t.match(iP))return r7(i,l,c);if(t.match(/^#+0+$/))return c+xi(l,t.length-t.indexOf("0"));if(i=t.match(oP))return a=(""+r).replace(/^([^\.]+)$/,"$1."+Qn(i[1])).replace(/\.$/,"."+Qn(i[1])),a=a.replace(/\.(\d*)$/,function(x,p){return"."+p+Ur("0",Qn(i[1]).length-p.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return c+ts(""+l);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+ki(e,t,-r):ts(""+r)+"."+Ur("0",i[1].length);if(i=t.match(/^#,#*,#0/))return ki(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=nc(ki(e,t.replace(/[\\-]/g,""),r)),o=0,nc(nc(t.replace(/\\/g,"")).replace(/[0#]/g,function(x){return o<a.length?a.charAt(o++):x==="0"?"0":""}));if(t.match(lP))return a=ki(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var u="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=Vh(l,Math.pow(10,o)-1,!1),a=""+c,u=ho("n",i[1],s[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),a+=u+i[2]+"/"+i[3],u=Hh(s[2],o),u.length<i[4].length&&(u=Qn(i[4].substr(i[4].length-u.length))+u),a+=u,a;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),s=Vh(l,Math.pow(10,o)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?eb(s[1],o)+i[2]+"/"+i[3]+Hh(s[2],o):Ur(" ",2*o+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=""+r,t.length<=a.length?a:Qn(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=a.indexOf(".");var f=t.indexOf(".")-o,d=t.length-a.length-f;return Qn(t.substr(0,f)+a+t.substr(t.length-d))}if(i=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+ki(e,t,-r):ts(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(x){return"00,"+(x.length<3?xi(0,3-x.length):"")+x})+"."+xi(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var h=ts(""+l);return h!=="0"?c+h:"";default:if(t.match(/\.[0#?]*$/))return ki(e,t.slice(0,t.lastIndexOf(".")),r)+Qn(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function ho(e,t,r){return(r|0)===r?ki(e,t,r):Ga(e,t,r)}function s7(e){for(var t=[],r=!1,n=0,a=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(a,n-a),a=n+1}if(t[t.length]=e.substr(a),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var uP=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function fP(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":Gh(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(n=r;e.charAt(t++)!=="]"&&t<e.length;)n+=e.charAt(t);if(n.match(uP))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function l7(e,t,r,n){for(var a=[],i="",o=0,s="",l="t",c,u,f,d="H";o<e.length;)switch(s=e.charAt(o)){case"G":if(!Gh(e,o))throw new Error("unrecognized character "+s+" in "+e);a[a.length]={t:"G",v:"General"},o+=7;break;case'"':for(i="";(f=e.charCodeAt(++o))!==34&&o<e.length;)i+=String.fromCharCode(f);a[a.length]={t:"t",v:i},++o;break;case"\\":var h=e.charAt(++o),x=h==="("||h===")"?h:"t";a[a.length]={t:x,v:h},++o;break;case"_":a[a.length]={t:"t",v:" "},o+=2;break;case"@":a[a.length]={t:"T",v:t},++o;break;case"B":case"b":if(e.charAt(o+1)==="1"||e.charAt(o+1)==="2"){if(c==null&&(c=gh(t,r,e.charAt(o+1)==="2"),c==null))return"";a[a.length]={t:"X",v:e.substr(o,2)},l=s,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":s=s.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||c==null&&(c=gh(t,r),c==null))return"";for(i=s;++o<e.length&&e.charAt(o).toLowerCase()===s;)i+=s;s==="m"&&l.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=d),a[a.length]={t:s,v:i},l=s;break;case"A":case"a":case"上":var p={t:s,v:s};if(c==null&&(c=gh(t,r)),e.substr(o,3).toUpperCase()==="A/P"?(c!=null&&(p.v=c.H>=12?"P":"A"),p.t="T",d="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(c!=null&&(p.v=c.H>=12?"PM":"AM"),p.t="T",o+=5,d="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(c!=null&&(p.v=c.H>=12?"下午":"上午"),p.t="T",o+=5,d="h"):(p.t="t",++o),c==null&&p.t==="T")return"";a[a.length]=p,l=s;break;case"[":for(i=s;e.charAt(o++)!=="]"&&o<e.length;)i+=e.charAt(o);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(uP)){if(c==null&&(c=gh(t,r),c==null))return"";a[a.length]={t:"Z",v:i.toLowerCase()},l=i.charAt(1)}else i.indexOf("$")>-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",fP(e)||(a[a.length]={t:"t",v:i}));break;case".":if(c!=null){for(i=s;++o<e.length&&(s=e.charAt(o))==="0";)i+=s;a[a.length]={t:"s",v:i};break}case"0":case"#":for(i=s;++o<e.length&&"0#?.,E+-%".indexOf(s=e.charAt(o))>-1;)i+=s;a[a.length]={t:"n",v:i};break;case"?":for(i=s;e.charAt(++o)===s;)i+=s;a[a.length]={t:s,v:i},l=s;break;case"*":++o,(e.charAt(o)==" "||e.charAt(o)=="*")&&++o;break;case"(":case")":a[a.length]={t:n===1?"t":s,v:s},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=s;o<e.length&&"0123456789".indexOf(e.charAt(++o))>-1;)i+=e.charAt(o);a[a.length]={t:"D",v:i};break;case" ":a[a.length]={t:s,v:s},++o;break;case"$":a[a.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+e);a[a.length]={t:"t",v:s},++o;break}var m=0,y=0,b;for(o=a.length-1,l="t";o>=0;--o)switch(a[o].t){case"h":case"H":a[o].t=d,l="h",m<1&&(m=1);break;case"s":(b=a[o].v.match(/\.0+$/))&&(y=Math.max(y,b[0].length-1)),m<3&&(m=3);case"d":case"y":case"M":case"e":l=a[o].t;break;case"m":l==="s"&&(a[o].t="M",m<2&&(m=2));break;case"X":break;case"Z":m<1&&a[o].v.match(/[Hh]/)&&(m=1),m<2&&a[o].v.match(/[Mm]/)&&(m=2),m<3&&a[o].v.match(/[Ss]/)&&(m=3)}switch(m){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var w="",S;for(o=0;o<a.length;++o)switch(a[o].t){case"t":case"T":case" ":case"D":break;case"X":a[o].v="",a[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[o].v=ZL(a[o].t.charCodeAt(0),a[o].v,c,y),a[o].t="t";break;case"n":case"?":for(S=o+1;a[S]!=null&&((s=a[S].t)==="?"||s==="D"||(s===" "||s==="t")&&a[S+1]!=null&&(a[S+1].t==="?"||a[S+1].t==="t"&&a[S+1].v==="/")||a[o].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(a[S].v==="/"||a[S].v===" "&&a[S+1]!=null&&a[S+1].t=="?"));)a[o].v+=a[S].v,a[S]={v:"",t:";"},++S;w+=a[o].v,o=S-1;break;case"G":a[o].t="t",a[o].v=xy(t,r);break}var A="",O,N;if(w.length>0){w.charCodeAt(0)==40?(O=t<0&&w.charCodeAt(0)===45?-t:t,N=ho("n",w,O)):(O=t<0&&n>1?-t:t,N=ho("n",w,O),O<0&&a[0]&&a[0].t=="t"&&(N=N.substr(1),a[0].v="-"+a[0].v)),S=N.length-1;var C=a.length;for(o=0;o<a.length;++o)if(a[o]!=null&&a[o].t!="t"&&a[o].v.indexOf(".")>-1){C=o;break}var L=a.length;if(C===a.length&&N.indexOf("E")===-1){for(o=a.length-1;o>=0;--o)a[o]==null||"n?".indexOf(a[o].t)===-1||(S>=a[o].v.length-1?(S-=a[o].v.length,a[o].v=N.substr(S+1,a[o].v.length)):S<0?a[o].v="":(a[o].v=N.substr(0,S+1),S=-1),a[o].t="t",L=o);S>=0&&L<a.length&&(a[L].v=N.substr(0,S+1)+a[L].v)}else if(C!==a.length&&N.indexOf("E")===-1){for(S=N.indexOf(".")-1,o=C;o>=0;--o)if(!(a[o]==null||"n?".indexOf(a[o].t)===-1)){for(u=a[o].v.indexOf(".")>-1&&o===C?a[o].v.indexOf(".")-1:a[o].v.length-1,A=a[o].v.substr(u+1);u>=0;--u)S>=0&&(a[o].v.charAt(u)==="0"||a[o].v.charAt(u)==="#")&&(A=N.charAt(S--)+A);a[o].v=A,a[o].t="t",L=o}for(S>=0&&L<a.length&&(a[L].v=N.substr(0,S+1)+a[L].v),S=N.indexOf(".")+1,o=C;o<a.length;++o)if(!(a[o]==null||"n?(".indexOf(a[o].t)===-1&&o!==C)){for(u=a[o].v.indexOf(".")>-1&&o===C?a[o].v.indexOf(".")+1:0,A=a[o].v.substr(0,u);u<a[o].v.length;++u)S<N.length&&(A+=N.charAt(S++));a[o].v=A,a[o].t="t",L=o}}}for(o=0;o<a.length;++o)a[o]!=null&&"n?".indexOf(a[o].t)>-1&&(O=n>1&&t<0&&o>0&&a[o-1].v==="-"?-t:t,a[o].v=ho(a[o].t,a[o].v,O),a[o].t="t");var R="";for(o=0;o!==a.length;++o)a[o]!=null&&(R+=a[o].v);return R}var Cw=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function kw(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function c7(e,t){var r=s7(e),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var o=r[0].match(Cw),s=r[1].match(Cw);return kw(t,o)?[n,r[0]]:kw(t,s)?[n,r[1]]:[n,r[o!=null&&s!=null?2:1]]}return[n,i]}function ls(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Wr)[e],n==null&&(n=r.table&&r.table[Pw[e]]||Wr[Pw[e]]),n==null&&(n=WL[e]||"General");break}if(Gh(n,0))return xy(t,r);t instanceof Date&&(t=rP(t,r.date1904));var a=c7(n,t);if(Gh(a[1]))return xy(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return l7(a[1],t,r,a[0])}function hP(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Wr[r]==null){t<0&&(t=r);continue}if(Wr[r]==e){t=r;break}}t<0&&(t=391)}return Wr[t]=e,t}function up(e){for(var t=0;t!=392;++t)e[t]!==void 0&&hP(e[t],t)}function fp(){Wr=zL()}var dP=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function u7(e){var t=typeof e=="number"?Wr[e]:e;return t=t.replace(dP,"(\\d+)"),new RegExp("^"+t+"$")}function f7(e,t,r){var n=-1,a=-1,i=-1,o=-1,s=-1,l=-1;(t.match(dP)||[]).forEach(function(f,d){var h=parseInt(r[d+1],10);switch(f.toLowerCase().charAt(0)){case"y":n=h;break;case"d":i=h;break;case"h":o=h;break;case"s":l=h;break;case"m":o>=0?s=h:a=h;break}}),l>=0&&s==-1&&a>=0&&(s=a,a=-1);var c=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);c.length==7&&(c="0"+c),c.length==8&&(c="20"+c);var u=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return o==-1&&s==-1&&l==-1?c:n==-1&&a==-1&&i==-1?u:c+"T"+u}var h7=(function(){var e={};e.version="1.2.0";function t(){for(var N=0,C=new Array(256),L=0;L!=256;++L)N=L,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,N=N&1?-306674912^N>>>1:N>>>1,C[L]=N;return typeof Int32Array<"u"?new Int32Array(C):C}var r=t();function n(N){var C=0,L=0,R=0,j=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(R=0;R!=256;++R)j[R]=N[R];for(R=0;R!=256;++R)for(L=N[R],C=256+R;C<4096;C+=256)L=j[C]=L>>>8^N[L&255];var E=[];for(R=1;R!=16;++R)E[R-1]=typeof Int32Array<"u"?j.subarray(R*256,R*256+256):j.slice(R*256,R*256+256);return E}var a=n(r),i=a[0],o=a[1],s=a[2],l=a[3],c=a[4],u=a[5],f=a[6],d=a[7],h=a[8],x=a[9],p=a[10],m=a[11],y=a[12],b=a[13],w=a[14];function S(N,C){for(var L=C^-1,R=0,j=N.length;R<j;)L=L>>>8^r[(L^N.charCodeAt(R++))&255];return~L}function A(N,C){for(var L=C^-1,R=N.length-15,j=0;j<R;)L=w[N[j++]^L&255]^b[N[j++]^L>>8&255]^y[N[j++]^L>>16&255]^m[N[j++]^L>>>24]^p[N[j++]]^x[N[j++]]^h[N[j++]]^d[N[j++]]^f[N[j++]]^u[N[j++]]^c[N[j++]]^l[N[j++]]^s[N[j++]]^o[N[j++]]^i[N[j++]]^r[N[j++]];for(R+=15;j<R;)L=L>>>8^r[(L^N[j++])&255];return~L}function O(N,C){for(var L=C^-1,R=0,j=N.length,E=0,D=0;R<j;)E=N.charCodeAt(R++),E<128?L=L>>>8^r[(L^E)&255]:E<2048?(L=L>>>8^r[(L^(192|E>>6&31))&255],L=L>>>8^r[(L^(128|E&63))&255]):E>=55296&&E<57344?(E=(E&1023)+64,D=N.charCodeAt(R++)&1023,L=L>>>8^r[(L^(240|E>>8&7))&255],L=L>>>8^r[(L^(128|E>>2&63))&255],L=L>>>8^r[(L^(128|D>>6&15|(E&3)<<4))&255],L=L>>>8^r[(L^(128|D&63))&255]):(L=L>>>8^r[(L^(224|E>>12&15))&255],L=L>>>8^r[(L^(128|E>>6&63))&255],L=L>>>8^r[(L^(128|E&63))&255]);return~L}return e.table=r,e.bstr=S,e.buf=A,e.str=O,e})(),br=(function(){var t={};t.version="1.2.1";function r(J,pe){for(var ie=J.split("/"),oe=pe.split("/"),de=0,me=0,Pe=Math.min(ie.length,oe.length);de<Pe;++de){if(me=ie[de].length-oe[de].length)return me;if(ie[de]!=oe[de])return ie[de]<oe[de]?-1:1}return ie.length-oe.length}function n(J){if(J.charAt(J.length-1)=="/")return J.slice(0,-1).indexOf("/")===-1?J:n(J.slice(0,-1));var pe=J.lastIndexOf("/");return pe===-1?J:J.slice(0,pe+1)}function a(J){if(J.charAt(J.length-1)=="/")return a(J.slice(0,-1));var pe=J.lastIndexOf("/");return pe===-1?J:J.slice(pe+1)}function i(J,pe){typeof pe=="string"&&(pe=new Date(pe));var ie=pe.getHours();ie=ie<<6|pe.getMinutes(),ie=ie<<5|pe.getSeconds()>>>1,J.write_shift(2,ie);var oe=pe.getFullYear()-1980;oe=oe<<4|pe.getMonth()+1,oe=oe<<5|pe.getDate(),J.write_shift(2,oe)}function o(J){var pe=J.read_shift(2)&65535,ie=J.read_shift(2)&65535,oe=new Date,de=ie&31;ie>>>=5;var me=ie&15;ie>>>=4,oe.setMilliseconds(0),oe.setFullYear(ie+1980),oe.setMonth(me-1),oe.setDate(de);var Pe=pe&31;pe>>>=5;var Ie=pe&63;return pe>>>=6,oe.setHours(pe),oe.setMinutes(Ie),oe.setSeconds(Pe<<1),oe}function s(J){Pa(J,0);for(var pe={},ie=0;J.l<=J.length-4;){var oe=J.read_shift(2),de=J.read_shift(2),me=J.l+de,Pe={};switch(oe){case 21589:ie=J.read_shift(1),ie&1&&(Pe.mtime=J.read_shift(4)),de>5&&(ie&2&&(Pe.atime=J.read_shift(4)),ie&4&&(Pe.ctime=J.read_shift(4))),Pe.mtime&&(Pe.mt=new Date(Pe.mtime*1e3));break}J.l=me,pe[oe]=Pe}return pe}var l;function c(){return l||(l={})}function u(J,pe){if(J[0]==80&&J[1]==75)return ct(J,pe);if((J[0]|32)==109&&(J[1]|32)==105)return Fa(J,pe);if(J.length<512)throw new Error("CFB file size "+J.length+" < 512");var ie=3,oe=512,de=0,me=0,Pe=0,Ie=0,Te=0,Ce=[],ke=J.slice(0,512);Pa(ke,0);var Ye=f(ke);switch(ie=Ye[0],ie){case 3:oe=512;break;case 4:oe=4096;break;case 0:if(Ye[1]==0)return ct(J,pe);default:throw new Error("Major Version: Expected 3 or 4 saw "+ie)}oe!==512&&(ke=J.slice(0,oe),Pa(ke,28));var et=J.slice(0,oe);d(ke,ie);var lt=ke.read_shift(4,"i");if(ie===3&&lt!==0)throw new Error("# Directory Sectors: Expected 0 saw "+lt);ke.l+=4,Pe=ke.read_shift(4,"i"),ke.l+=4,ke.chk("00100000","Mini Stream Cutoff Size: "),Ie=ke.read_shift(4,"i"),de=ke.read_shift(4,"i"),Te=ke.read_shift(4,"i"),me=ke.read_shift(4,"i");for(var Xe=-1,st=0;st<109&&(Xe=ke.read_shift(4,"i"),!(Xe<0));++st)Ce[st]=Xe;var Ot=h(J,oe);m(Te,me,Ot,oe,Ce);var rr=b(Ot,Pe,Ce,oe);rr[Pe].name="!Directory",de>0&&Ie!==D&&(rr[Ie].name="!MiniFAT"),rr[Ce[0]].name="!FAT",rr.fat_addrs=Ce,rr.ssz=oe;var xr={},Zr=[],ei=[],Vi=[];w(Pe,rr,Ot,Zr,de,xr,ei,Ie),x(ei,Vi,Zr),Zr.shift();var Ni={FileIndex:ei,FullPaths:Vi};return pe&&pe.raw&&(Ni.raw={header:et,sectors:Ot}),Ni}function f(J){if(J[J.l]==80&&J[J.l+1]==75)return[0,0];J.chk(U,"Header Signature: "),J.l+=16;var pe=J.read_shift(2,"u");return[J.read_shift(2,"u"),pe]}function d(J,pe){var ie=9;switch(J.l+=2,ie=J.read_shift(2)){case 9:if(pe!=3)throw new Error("Sector Shift: Expected 9 saw "+ie);break;case 12:if(pe!=4)throw new Error("Sector Shift: Expected 12 saw "+ie);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+ie)}J.chk("0600","Mini Sector Shift: "),J.chk("000000000000","Reserved: ")}function h(J,pe){for(var ie=Math.ceil(J.length/pe)-1,oe=[],de=1;de<ie;++de)oe[de-1]=J.slice(de*pe,(de+1)*pe);return oe[ie-1]=J.slice(ie*pe),oe}function x(J,pe,ie){for(var oe=0,de=0,me=0,Pe=0,Ie=0,Te=ie.length,Ce=[],ke=[];oe<Te;++oe)Ce[oe]=ke[oe]=oe,pe[oe]=ie[oe];for(;Ie<ke.length;++Ie)oe=ke[Ie],de=J[oe].L,me=J[oe].R,Pe=J[oe].C,Ce[oe]===oe&&(de!==-1&&Ce[de]!==de&&(Ce[oe]=Ce[de]),me!==-1&&Ce[me]!==me&&(Ce[oe]=Ce[me])),Pe!==-1&&(Ce[Pe]=oe),de!==-1&&oe!=Ce[oe]&&(Ce[de]=Ce[oe],ke.lastIndexOf(de)<Ie&&ke.push(de)),me!==-1&&oe!=Ce[oe]&&(Ce[me]=Ce[oe],ke.lastIndexOf(me)<Ie&&ke.push(me));for(oe=1;oe<Te;++oe)Ce[oe]===oe&&(me!==-1&&Ce[me]!==me?Ce[oe]=Ce[me]:de!==-1&&Ce[de]!==de&&(Ce[oe]=Ce[de]));for(oe=1;oe<Te;++oe)if(J[oe].type!==0){if(Ie=oe,Ie!=Ce[Ie])do Ie=Ce[Ie],pe[oe]=pe[Ie]+"/"+pe[oe];while(Ie!==0&&Ce[Ie]!==-1&&Ie!=Ce[Ie]);Ce[oe]=-1}for(pe[0]+="/",oe=1;oe<Te;++oe)J[oe].type!==2&&(pe[oe]+="/")}function p(J,pe,ie){for(var oe=J.start,de=J.size,me=[],Pe=oe;ie&&de>0&&Pe>=0;)me.push(pe.slice(Pe*E,Pe*E+E)),de-=E,Pe=ks(ie,Pe*4);return me.length===0?Be(0):Cn(me).slice(0,J.size)}function m(J,pe,ie,oe,de){var me=D;if(J===D){if(pe!==0)throw new Error("DIFAT chain shorter than expected")}else if(J!==-1){var Pe=ie[J],Ie=(oe>>>2)-1;if(!Pe)return;for(var Te=0;Te<Ie&&(me=ks(Pe,Te*4))!==D;++Te)de.push(me);m(ks(Pe,oe-4),pe-1,ie,oe,de)}}function y(J,pe,ie,oe,de){var me=[],Pe=[];de||(de=[]);var Ie=oe-1,Te=0,Ce=0;for(Te=pe;Te>=0;){de[Te]=!0,me[me.length]=Te,Pe.push(J[Te]);var ke=ie[Math.floor(Te*4/oe)];if(Ce=Te*4&Ie,oe<4+Ce)throw new Error("FAT boundary crossed: "+Te+" 4 "+oe);if(!J[ke])break;Te=ks(J[ke],Ce)}return{nodes:me,data:$w([Pe])}}function b(J,pe,ie,oe){var de=J.length,me=[],Pe=[],Ie=[],Te=[],Ce=oe-1,ke=0,Ye=0,et=0,lt=0;for(ke=0;ke<de;++ke)if(Ie=[],et=ke+pe,et>=de&&(et-=de),!Pe[et]){Te=[];var Xe=[];for(Ye=et;Ye>=0;){Xe[Ye]=!0,Pe[Ye]=!0,Ie[Ie.length]=Ye,Te.push(J[Ye]);var st=ie[Math.floor(Ye*4/oe)];if(lt=Ye*4&Ce,oe<4+lt)throw new Error("FAT boundary crossed: "+Ye+" 4 "+oe);if(!J[st]||(Ye=ks(J[st],lt),Xe[Ye]))break}me[et]={nodes:Ie,data:$w([Te])}}return me}function w(J,pe,ie,oe,de,me,Pe,Ie){for(var Te=0,Ce=oe.length?2:0,ke=pe[J].data,Ye=0,et=0,lt;Ye<ke.length;Ye+=128){var Xe=ke.slice(Ye,Ye+128);Pa(Xe,64),et=Xe.read_shift(2),lt=ob(Xe,0,et-Ce),oe.push(lt);var st={name:lt,type:Xe.read_shift(1),color:Xe.read_shift(1),L:Xe.read_shift(4,"i"),R:Xe.read_shift(4,"i"),C:Xe.read_shift(4,"i"),clsid:Xe.read_shift(16),state:Xe.read_shift(4,"i"),start:0,size:0},Ot=Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2);Ot!==0&&(st.ct=S(Xe,Xe.l-8));var rr=Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2);rr!==0&&(st.mt=S(Xe,Xe.l-8)),st.start=Xe.read_shift(4,"i"),st.size=Xe.read_shift(4,"i"),st.size<0&&st.start<0&&(st.size=st.type=0,st.start=D,st.name=""),st.type===5?(Te=st.start,de>0&&Te!==D&&(pe[Te].name="!StreamData")):st.size>=4096?(st.storage="fat",pe[st.start]===void 0&&(pe[st.start]=y(ie,st.start,pe.fat_addrs,pe.ssz)),pe[st.start].name=st.name,st.content=pe[st.start].data.slice(0,st.size)):(st.storage="minifat",st.size<0?st.size=0:Te!==D&&st.start!==D&&pe[Te]&&(st.content=p(st,pe[Te].data,(pe[Ie]||{}).data))),st.content&&Pa(st.content,0),me[lt]=st,Pe.push(st)}}function S(J,pe){return new Date((ja(J,pe+4)/1e7*Math.pow(2,32)+ja(J,pe)/1e7-11644473600)*1e3)}function A(J,pe){return c(),u(l.readFileSync(J),pe)}function O(J,pe){var ie=pe&&pe.type;switch(ie||tr&&Buffer.isBuffer(J)&&(ie="buffer"),ie||"base64"){case"file":return A(J,pe);case"base64":return u(vi(wo(J)),pe);case"binary":return u(vi(J),pe)}return u(J,pe)}function N(J,pe){var ie=pe||{},oe=ie.root||"Root Entry";if(J.FullPaths||(J.FullPaths=[]),J.FileIndex||(J.FileIndex=[]),J.FullPaths.length!==J.FileIndex.length)throw new Error("inconsistent CFB structure");J.FullPaths.length===0&&(J.FullPaths[0]=oe+"/",J.FileIndex[0]={name:oe,type:5}),ie.CLSID&&(J.FileIndex[0].clsid=ie.CLSID),C(J)}function C(J){var pe="Sh33tJ5";if(!br.find(J,"/"+pe)){var ie=Be(4);ie[0]=55,ie[1]=ie[3]=50,ie[2]=54,J.FileIndex.push({name:pe,type:2,content:ie,size:4,L:69,R:69,C:69}),J.FullPaths.push(J.FullPaths[0]+pe),L(J)}}function L(J,pe){N(J);for(var ie=!1,oe=!1,de=J.FullPaths.length-1;de>=0;--de){var me=J.FileIndex[de];switch(me.type){case 0:oe?ie=!0:(J.FileIndex.pop(),J.FullPaths.pop());break;case 1:case 2:case 5:oe=!0,isNaN(me.R*me.L*me.C)&&(ie=!0),me.R>-1&&me.L>-1&&me.R==me.L&&(ie=!0);break;default:ie=!0;break}}if(!(!ie&&!pe)){var Pe=new Date(1987,1,19),Ie=0,Te=Object.create?Object.create(null):{},Ce=[];for(de=0;de<J.FullPaths.length;++de)Te[J.FullPaths[de]]=!0,J.FileIndex[de].type!==0&&Ce.push([J.FullPaths[de],J.FileIndex[de]]);for(de=0;de<Ce.length;++de){var ke=n(Ce[de][0]);oe=Te[ke],oe||(Ce.push([ke,{name:a(ke).replace("/",""),type:1,clsid:B,ct:Pe,mt:Pe,content:null}]),Te[ke]=!0)}for(Ce.sort(function(lt,Xe){return r(lt[0],Xe[0])}),J.FullPaths=[],J.FileIndex=[],de=0;de<Ce.length;++de)J.FullPaths[de]=Ce[de][0],J.FileIndex[de]=Ce[de][1];for(de=0;de<Ce.length;++de){var Ye=J.FileIndex[de],et=J.FullPaths[de];if(Ye.name=a(et).replace("/",""),Ye.L=Ye.R=Ye.C=-(Ye.color=1),Ye.size=Ye.content?Ye.content.length:0,Ye.start=0,Ye.clsid=Ye.clsid||B,de===0)Ye.C=Ce.length>1?1:-1,Ye.size=0,Ye.type=5;else if(et.slice(-1)=="/"){for(Ie=de+1;Ie<Ce.length&&n(J.FullPaths[Ie])!=et;++Ie);for(Ye.C=Ie>=Ce.length?-1:Ie,Ie=de+1;Ie<Ce.length&&n(J.FullPaths[Ie])!=n(et);++Ie);Ye.R=Ie>=Ce.length?-1:Ie,Ye.type=1}else n(J.FullPaths[de+1]||"")==n(et)&&(Ye.R=de+1),Ye.type=2}}}function R(J,pe){var ie=pe||{};if(ie.fileType=="mad")return St(J,ie);switch(L(J),ie.fileType){case"zip":return Or(J,ie)}var oe=(function(lt){for(var Xe=0,st=0,Ot=0;Ot<lt.FileIndex.length;++Ot){var rr=lt.FileIndex[Ot];if(rr.content){var xr=rr.content.length;xr>0&&(xr<4096?Xe+=xr+63>>6:st+=xr+511>>9)}}for(var Zr=lt.FullPaths.length+3>>2,ei=Xe+7>>3,Vi=Xe+127>>7,Ni=ei+st+Zr+Vi,ti=Ni+127>>7,Ti=ti<=109?0:Math.ceil((ti-109)/127);Ni+ti+Ti+127>>7>ti;)Ti=++ti<=109?0:Math.ceil((ti-109)/127);var ya=[1,Ti,ti,Vi,Zr,st,Xe,0];return lt.FileIndex[0].size=Xe<<6,ya[7]=(lt.FileIndex[0].start=ya[0]+ya[1]+ya[2]+ya[3]+ya[4]+ya[5])+(ya[6]+7>>3),ya})(J),de=Be(oe[7]<<9),me=0,Pe=0;{for(me=0;me<8;++me)de.write_shift(1,H[me]);for(me=0;me<8;++me)de.write_shift(2,0);for(de.write_shift(2,62),de.write_shift(2,3),de.write_shift(2,65534),de.write_shift(2,9),de.write_shift(2,6),me=0;me<3;++me)de.write_shift(2,0);for(de.write_shift(4,0),de.write_shift(4,oe[2]),de.write_shift(4,oe[0]+oe[1]+oe[2]+oe[3]-1),de.write_shift(4,0),de.write_shift(4,4096),de.write_shift(4,oe[3]?oe[0]+oe[1]+oe[2]-1:D),de.write_shift(4,oe[3]),de.write_shift(-4,oe[1]?oe[0]-1:D),de.write_shift(4,oe[1]),me=0;me<109;++me)de.write_shift(-4,me<oe[2]?oe[1]+me:-1)}if(oe[1])for(Pe=0;Pe<oe[1];++Pe){for(;me<236+Pe*127;++me)de.write_shift(-4,me<oe[2]?oe[1]+me:-1);de.write_shift(-4,Pe===oe[1]-1?D:Pe+1)}var Ie=function(lt){for(Pe+=lt;me<Pe-1;++me)de.write_shift(-4,me+1);lt&&(++me,de.write_shift(-4,D))};for(Pe=me=0,Pe+=oe[1];me<Pe;++me)de.write_shift(-4,z.DIFSECT);for(Pe+=oe[2];me<Pe;++me)de.write_shift(-4,z.FATSECT);Ie(oe[3]),Ie(oe[4]);for(var Te=0,Ce=0,ke=J.FileIndex[0];Te<J.FileIndex.length;++Te)ke=J.FileIndex[Te],ke.content&&(Ce=ke.content.length,!(Ce<4096)&&(ke.start=Pe,Ie(Ce+511>>9)));for(Ie(oe[6]+7>>3);de.l&511;)de.write_shift(-4,z.ENDOFCHAIN);for(Pe=me=0,Te=0;Te<J.FileIndex.length;++Te)ke=J.FileIndex[Te],ke.content&&(Ce=ke.content.length,!(!Ce||Ce>=4096)&&(ke.start=Pe,Ie(Ce+63>>6)));for(;de.l&511;)de.write_shift(-4,z.ENDOFCHAIN);for(me=0;me<oe[4]<<2;++me){var Ye=J.FullPaths[me];if(!Ye||Ye.length===0){for(Te=0;Te<17;++Te)de.write_shift(4,0);for(Te=0;Te<3;++Te)de.write_shift(4,-1);for(Te=0;Te<12;++Te)de.write_shift(4,0);continue}ke=J.FileIndex[me],me===0&&(ke.start=ke.size?ke.start-1:D);var et=me===0&&ie.root||ke.name;if(Ce=2*(et.length+1),de.write_shift(64,et,"utf16le"),de.write_shift(2,Ce),de.write_shift(1,ke.type),de.write_shift(1,ke.color),de.write_shift(-4,ke.L),de.write_shift(-4,ke.R),de.write_shift(-4,ke.C),ke.clsid)de.write_shift(16,ke.clsid,"hex");else for(Te=0;Te<4;++Te)de.write_shift(4,0);de.write_shift(4,ke.state||0),de.write_shift(4,0),de.write_shift(4,0),de.write_shift(4,0),de.write_shift(4,0),de.write_shift(4,ke.start),de.write_shift(4,ke.size),de.write_shift(4,0)}for(me=1;me<J.FileIndex.length;++me)if(ke=J.FileIndex[me],ke.size>=4096)if(de.l=ke.start+1<<9,tr&&Buffer.isBuffer(ke.content))ke.content.copy(de,de.l,0,ke.size),de.l+=ke.size+511&-512;else{for(Te=0;Te<ke.size;++Te)de.write_shift(1,ke.content[Te]);for(;Te&511;++Te)de.write_shift(1,0)}for(me=1;me<J.FileIndex.length;++me)if(ke=J.FileIndex[me],ke.size>0&&ke.size<4096)if(tr&&Buffer.isBuffer(ke.content))ke.content.copy(de,de.l,0,ke.size),de.l+=ke.size+63&-64;else{for(Te=0;Te<ke.size;++Te)de.write_shift(1,ke.content[Te]);for(;Te&63;++Te)de.write_shift(1,0)}if(tr)de.l=de.length;else for(;de.l<de.length;)de.write_shift(1,0);return de}function j(J,pe){var ie=J.FullPaths.map(function(Te){return Te.toUpperCase()}),oe=ie.map(function(Te){var Ce=Te.split("/");return Ce[Ce.length-(Te.slice(-1)=="/"?2:1)]}),de=!1;pe.charCodeAt(0)===47?(de=!0,pe=ie[0].slice(0,-1)+pe):de=pe.indexOf("/")!==-1;var me=pe.toUpperCase(),Pe=de===!0?ie.indexOf(me):oe.indexOf(me);if(Pe!==-1)return J.FileIndex[Pe];var Ie=!me.match(vh);for(me=me.replace(Zu,""),Ie&&(me=me.replace(vh,"!")),Pe=0;Pe<ie.length;++Pe)if((Ie?ie[Pe].replace(vh,"!"):ie[Pe]).replace(Zu,"")==me||(Ie?oe[Pe].replace(vh,"!"):oe[Pe]).replace(Zu,"")==me)return J.FileIndex[Pe];return null}var E=64,D=-2,U="d0cf11e0a1b11ae1",H=[208,207,17,224,161,177,26,225],B="00000000000000000000000000000000",z={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:D,FREESECT:-1,HEADER_SIGNATURE:U,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:B,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function te(J,pe,ie){c();var oe=R(J,ie);l.writeFileSync(pe,oe)}function Z(J){for(var pe=new Array(J.length),ie=0;ie<J.length;++ie)pe[ie]=String.fromCharCode(J[ie]);return pe.join("")}function ee(J,pe){var ie=R(J,pe);switch(pe&&pe.type||"buffer"){case"file":return c(),l.writeFileSync(pe.filename,ie),ie;case"binary":return typeof ie=="string"?ie:Z(ie);case"base64":return mf(typeof ie=="string"?ie:Z(ie));case"buffer":if(tr)return Buffer.isBuffer(ie)?ie:Eo(ie);case"array":return typeof ie=="string"?vi(ie):ie}return ie}var ce;function P(J){try{var pe=J.InflateRaw,ie=new pe;if(ie._processChunk(new Uint8Array([3,0]),ie._finishFlushFlag),ie.bytesRead)ce=J;else throw new Error("zlib does not expose bytesRead")}catch(oe){console.error("cannot use native zlib: "+(oe.message||oe))}}function I(J,pe){if(!ce)return Ht(J,pe);var ie=ce.InflateRaw,oe=new ie,de=oe._processChunk(J.slice(J.l),oe._finishFlushFlag);return J.l+=oe.bytesRead,de}function M(J){return ce?ce.deflateRawSync(J):Ft(J)}var q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Y=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],fe=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function ne(J){var pe=(J<<1|J<<11)&139536|(J<<5|J<<15)&558144;return(pe>>16|pe>>8|pe)&255}for(var K=typeof Uint8Array<"u",he=K?new Uint8Array(256):[],be=0;be<256;++be)he[be]=ne(be);function se(J,pe){var ie=he[J&255];return pe<=8?ie>>>8-pe:(ie=ie<<8|he[J>>8&255],pe<=16?ie>>>16-pe:(ie=ie<<8|he[J>>16&255],ie>>>24-pe))}function Le(J,pe){var ie=pe&7,oe=pe>>>3;return(J[oe]|(ie<=6?0:J[oe+1]<<8))>>>ie&3}function Se(J,pe){var ie=pe&7,oe=pe>>>3;return(J[oe]|(ie<=5?0:J[oe+1]<<8))>>>ie&7}function Ae(J,pe){var ie=pe&7,oe=pe>>>3;return(J[oe]|(ie<=4?0:J[oe+1]<<8))>>>ie&15}function le(J,pe){var ie=pe&7,oe=pe>>>3;return(J[oe]|(ie<=3?0:J[oe+1]<<8))>>>ie&31}function De(J,pe){var ie=pe&7,oe=pe>>>3;return(J[oe]|(ie<=1?0:J[oe+1]<<8))>>>ie&127}function Qe(J,pe,ie){var oe=pe&7,de=pe>>>3,me=(1<<ie)-1,Pe=J[de]>>>oe;return ie<8-oe||(Pe|=J[de+1]<<8-oe,ie<16-oe)||(Pe|=J[de+2]<<16-oe,ie<24-oe)||(Pe|=J[de+3]<<24-oe),Pe&me}function Ue(J,pe,ie){var oe=pe&7,de=pe>>>3;return oe<=5?J[de]|=(ie&7)<<oe:(J[de]|=ie<<oe&255,J[de+1]=(ie&7)>>8-oe),pe+3}function Ke(J,pe,ie){var oe=pe&7,de=pe>>>3;return ie=(ie&1)<<oe,J[de]|=ie,pe+1}function Ze(J,pe,ie){var oe=pe&7,de=pe>>>3;return ie<<=oe,J[de]|=ie&255,ie>>>=8,J[de+1]=ie,pe+8}function Je(J,pe,ie){var oe=pe&7,de=pe>>>3;return ie<<=oe,J[de]|=ie&255,ie>>>=8,J[de+1]=ie&255,J[de+2]=ie>>>8,pe+16}function dt(J,pe){var ie=J.length,oe=2*ie>pe?2*ie:pe+5,de=0;if(ie>=pe)return J;if(tr){var me=Nw(oe);if(J.copy)J.copy(me);else for(;de<J.length;++de)me[de]=J[de];return me}else if(K){var Pe=new Uint8Array(oe);if(Pe.set)Pe.set(J);else for(;de<ie;++de)Pe[de]=J[de];return Pe}return J.length=oe,J}function vt(J){for(var pe=new Array(J),ie=0;ie<J;++ie)pe[ie]=0;return pe}function wt(J,pe,ie){var oe=1,de=0,me=0,Pe=0,Ie=0,Te=J.length,Ce=K?new Uint16Array(32):vt(32);for(me=0;me<32;++me)Ce[me]=0;for(me=Te;me<ie;++me)J[me]=0;Te=J.length;var ke=K?new Uint16Array(Te):vt(Te);for(me=0;me<Te;++me)Ce[de=J[me]]++,oe<de&&(oe=de),ke[me]=0;for(Ce[0]=0,me=1;me<=oe;++me)Ce[me+16]=Ie=Ie+Ce[me-1]<<1;for(me=0;me<Te;++me)Ie=J[me],Ie!=0&&(ke[me]=Ce[Ie+16]++);var Ye=0;for(me=0;me<Te;++me)if(Ye=J[me],Ye!=0)for(Ie=se(ke[me],oe)>>oe-Ye,Pe=(1<<oe+4-Ye)-1;Pe>=0;--Pe)pe[Ie|Pe<<Ye]=Ye&15|me<<4;return oe}var Pt=K?new Uint16Array(512):vt(512),It=K?new Uint16Array(32):vt(32);if(!K){for(var Ut=0;Ut<512;++Ut)Pt[Ut]=0;for(Ut=0;Ut<32;++Ut)It[Ut]=0}(function(){for(var J=[],pe=0;pe<32;pe++)J.push(5);wt(J,It,32);var ie=[];for(pe=0;pe<=143;pe++)ie.push(8);for(;pe<=255;pe++)ie.push(9);for(;pe<=279;pe++)ie.push(7);for(;pe<=287;pe++)ie.push(8);wt(ie,Pt,288)})();var _t=(function(){for(var pe=K?new Uint8Array(32768):[],ie=0,oe=0;ie<fe.length-1;++ie)for(;oe<fe[ie+1];++oe)pe[oe]=ie;for(;oe<32768;++oe)pe[oe]=29;var de=K?new Uint8Array(259):[];for(ie=0,oe=0;ie<Y.length-1;++ie)for(;oe<Y[ie+1];++oe)de[oe]=ie;function me(Ie,Te){for(var Ce=0;Ce<Ie.length;){var ke=Math.min(65535,Ie.length-Ce),Ye=Ce+ke==Ie.length;for(Te.write_shift(1,+Ye),Te.write_shift(2,ke),Te.write_shift(2,~ke&65535);ke-- >0;)Te[Te.l++]=Ie[Ce++]}return Te.l}function Pe(Ie,Te){for(var Ce=0,ke=0,Ye=K?new Uint16Array(32768):[];ke<Ie.length;){var et=Math.min(65535,Ie.length-ke);if(et<10){for(Ce=Ue(Te,Ce,+(ke+et==Ie.length)),Ce&7&&(Ce+=8-(Ce&7)),Te.l=Ce/8|0,Te.write_shift(2,et),Te.write_shift(2,~et&65535);et-- >0;)Te[Te.l++]=Ie[ke++];Ce=Te.l*8;continue}Ce=Ue(Te,Ce,+(ke+et==Ie.length)+2);for(var lt=0;et-- >0;){var Xe=Ie[ke];lt=(lt<<5^Xe)&32767;var st=-1,Ot=0;if((st=Ye[lt])&&(st|=ke&-32768,st>ke&&(st-=32768),st<ke))for(;Ie[st+Ot]==Ie[ke+Ot]&&Ot<250;)++Ot;if(Ot>2){Xe=de[Ot],Xe<=22?Ce=Ze(Te,Ce,he[Xe+1]>>1)-1:(Ze(Te,Ce,3),Ce+=5,Ze(Te,Ce,he[Xe-23]>>5),Ce+=3);var rr=Xe<8?0:Xe-4>>2;rr>0&&(Je(Te,Ce,Ot-Y[Xe]),Ce+=rr),Xe=pe[ke-st],Ce=Ze(Te,Ce,he[Xe]>>3),Ce-=3;var xr=Xe<4?0:Xe-2>>1;xr>0&&(Je(Te,Ce,ke-st-fe[Xe]),Ce+=xr);for(var Zr=0;Zr<Ot;++Zr)Ye[lt]=ke&32767,lt=(lt<<5^Ie[ke])&32767,++ke;et-=Ot-1}else Xe<=143?Xe=Xe+48:Ce=Ke(Te,Ce,1),Ce=Ze(Te,Ce,he[Xe]),Ye[lt]=ke&32767,++ke}Ce=Ze(Te,Ce,0)-1}return Te.l=(Ce+7)/8|0,Te.l}return function(Te,Ce){return Te.length<8?me(Te,Ce):Pe(Te,Ce)}})();function Ft(J){var pe=Be(50+Math.floor(J.length*1.1)),ie=_t(J,pe);return pe.slice(0,ie)}var it=K?new Uint16Array(32768):vt(32768),Dr=K?new Uint16Array(32768):vt(32768),zt=K?new Uint16Array(128):vt(128),An=1,Xt=1;function fr(J,pe){var ie=le(J,pe)+257;pe+=5;var oe=le(J,pe)+1;pe+=5;var de=Ae(J,pe)+4;pe+=4;for(var me=0,Pe=K?new Uint8Array(19):vt(19),Ie=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Te=1,Ce=K?new Uint8Array(8):vt(8),ke=K?new Uint8Array(8):vt(8),Ye=Pe.length,et=0;et<de;++et)Pe[q[et]]=me=Se(J,pe),Te<me&&(Te=me),Ce[me]++,pe+=3;var lt=0;for(Ce[0]=0,et=1;et<=Te;++et)ke[et]=lt=lt+Ce[et-1]<<1;for(et=0;et<Ye;++et)(lt=Pe[et])!=0&&(Ie[et]=ke[lt]++);var Xe=0;for(et=0;et<Ye;++et)if(Xe=Pe[et],Xe!=0){lt=he[Ie[et]]>>8-Xe;for(var st=(1<<7-Xe)-1;st>=0;--st)zt[lt|st<<Xe]=Xe&7|et<<3}var Ot=[];for(Te=1;Ot.length<ie+oe;)switch(lt=zt[De(J,pe)],pe+=lt&7,lt>>>=3){case 16:for(me=3+Le(J,pe),pe+=2,lt=Ot[Ot.length-1];me-- >0;)Ot.push(lt);break;case 17:for(me=3+Se(J,pe),pe+=3;me-- >0;)Ot.push(0);break;case 18:for(me=11+De(J,pe),pe+=7;me-- >0;)Ot.push(0);break;default:Ot.push(lt),Te<lt&&(Te=lt);break}var rr=Ot.slice(0,ie),xr=Ot.slice(ie);for(et=ie;et<286;++et)rr[et]=0;for(et=oe;et<30;++et)xr[et]=0;return An=wt(rr,it,286),Xt=wt(xr,Dr,30),pe}function Vn(J,pe){if(J[0]==3&&!(J[1]&3))return[Ks(pe),2];for(var ie=0,oe=0,de=Nw(pe||1<<18),me=0,Pe=de.length>>>0,Ie=0,Te=0;(oe&1)==0;){if(oe=Se(J,ie),ie+=3,oe>>>1)oe>>1==1?(Ie=9,Te=5):(ie=fr(J,ie),Ie=An,Te=Xt);else{ie&7&&(ie+=8-(ie&7));var Ce=J[ie>>>3]|J[(ie>>>3)+1]<<8;if(ie+=32,Ce>0)for(!pe&&Pe<me+Ce&&(de=dt(de,me+Ce),Pe=de.length);Ce-- >0;)de[me++]=J[ie>>>3],ie+=8;continue}for(;;){!pe&&Pe<me+32767&&(de=dt(de,me+32767),Pe=de.length);var ke=Qe(J,ie,Ie),Ye=oe>>>1==1?Pt[ke]:it[ke];if(ie+=Ye&15,Ye>>>=4,(Ye>>>8&255)===0)de[me++]=Ye;else{if(Ye==256)break;Ye-=257;var et=Ye<8?0:Ye-4>>2;et>5&&(et=0);var lt=me+Y[Ye];et>0&&(lt+=Qe(J,ie,et),ie+=et),ke=Qe(J,ie,Te),Ye=oe>>>1==1?It[ke]:Dr[ke],ie+=Ye&15,Ye>>>=4;var Xe=Ye<4?0:Ye-2>>1,st=fe[Ye];for(Xe>0&&(st+=Qe(J,ie,Xe),ie+=Xe),!pe&&Pe<lt&&(de=dt(de,lt+100),Pe=de.length);me<lt;)de[me]=de[me-st],++me}}}return pe?[de,ie+7>>>3]:[de.slice(0,me),ie+7>>>3]}function Ht(J,pe){var ie=J.slice(J.l||0),oe=Vn(ie,pe);return J.l+=oe[1],oe[0]}function Ee(J,pe){if(J)typeof console<"u"&&console.error(pe);else throw new Error(pe)}function ct(J,pe){var ie=J;Pa(ie,0);var oe=[],de=[],me={FileIndex:oe,FullPaths:de};N(me,{root:pe.root});for(var Pe=ie.length-4;(ie[Pe]!=80||ie[Pe+1]!=75||ie[Pe+2]!=5||ie[Pe+3]!=6)&&Pe>=0;)--Pe;ie.l=Pe+4,ie.l+=4;var Ie=ie.read_shift(2);ie.l+=6;var Te=ie.read_shift(4);for(ie.l=Te,Pe=0;Pe<Ie;++Pe){ie.l+=20;var Ce=ie.read_shift(4),ke=ie.read_shift(4),Ye=ie.read_shift(2),et=ie.read_shift(2),lt=ie.read_shift(2);ie.l+=8;var Xe=ie.read_shift(4),st=s(ie.slice(ie.l+Ye,ie.l+Ye+et));ie.l+=Ye+et+lt;var Ot=ie.l;ie.l=Xe+4,Wt(ie,Ce,ke,me,st),ie.l=Ot}return me}function Wt(J,pe,ie,oe,de){J.l+=2;var me=J.read_shift(2),Pe=J.read_shift(2),Ie=o(J);if(me&8257)throw new Error("Unsupported ZIP encryption");for(var Te=J.read_shift(4),Ce=J.read_shift(4),ke=J.read_shift(4),Ye=J.read_shift(2),et=J.read_shift(2),lt="",Xe=0;Xe<Ye;++Xe)lt+=String.fromCharCode(J[J.l++]);if(et){var st=s(J.slice(J.l,J.l+et));(st[21589]||{}).mt&&(Ie=st[21589].mt),((de||{})[21589]||{}).mt&&(Ie=de[21589].mt)}J.l+=et;var Ot=J.slice(J.l,J.l+Ce);switch(Pe){case 8:Ot=I(J,ke);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Pe)}var rr=!1;me&8&&(Te=J.read_shift(4),Te==134695760&&(Te=J.read_shift(4),rr=!0),Ce=J.read_shift(4),ke=J.read_shift(4)),Ce!=pe&&Ee(rr,"Bad compressed size: "+pe+" != "+Ce),ke!=ie&&Ee(rr,"Bad uncompressed size: "+ie+" != "+ke),ia(oe,lt,Ot,{unsafe:!0,mt:Ie})}function Or(J,pe){var ie=pe||{},oe=[],de=[],me=Be(1),Pe=ie.compression?8:0,Ie=0,Te=0,Ce=0,ke=0,Ye=0,et=J.FullPaths[0],lt=et,Xe=J.FileIndex[0],st=[],Ot=0;for(Te=1;Te<J.FullPaths.length;++Te)if(lt=J.FullPaths[Te].slice(et.length),Xe=J.FileIndex[Te],!(!Xe.size||!Xe.content||lt=="Sh33tJ5")){var rr=ke,xr=Be(lt.length);for(Ce=0;Ce<lt.length;++Ce)xr.write_shift(1,lt.charCodeAt(Ce)&127);xr=xr.slice(0,xr.l),st[Ye]=h7.buf(Xe.content,0);var Zr=Xe.content;Pe==8&&(Zr=M(Zr)),me=Be(30),me.write_shift(4,67324752),me.write_shift(2,20),me.write_shift(2,Ie),me.write_shift(2,Pe),Xe.mt?i(me,Xe.mt):me.write_shift(4,0),me.write_shift(-4,st[Ye]),me.write_shift(4,Zr.length),me.write_shift(4,Xe.content.length),me.write_shift(2,xr.length),me.write_shift(2,0),ke+=me.length,oe.push(me),ke+=xr.length,oe.push(xr),ke+=Zr.length,oe.push(Zr),me=Be(46),me.write_shift(4,33639248),me.write_shift(2,0),me.write_shift(2,20),me.write_shift(2,Ie),me.write_shift(2,Pe),me.write_shift(4,0),me.write_shift(-4,st[Ye]),me.write_shift(4,Zr.length),me.write_shift(4,Xe.content.length),me.write_shift(2,xr.length),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(4,0),me.write_shift(4,rr),Ot+=me.l,de.push(me),Ot+=xr.length,de.push(xr),++Ye}return me=Be(22),me.write_shift(4,101010256),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(2,Ye),me.write_shift(2,Ye),me.write_shift(4,Ot),me.write_shift(4,ke),me.write_shift(2,0),Cn([Cn(oe),Cn(de),me])}var Tt={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function ht(J,pe){if(J.ctype)return J.ctype;var ie=J.name||"",oe=ie.match(/\.([^\.]+)$/);return oe&&Tt[oe[1]]||pe&&(oe=(ie=pe).match(/[\.\\]([^\.\\])+$/),oe&&Tt[oe[1]])?Tt[oe[1]]:"application/octet-stream"}function Gt(J){for(var pe=mf(J),ie=[],oe=0;oe<pe.length;oe+=76)ie.push(pe.slice(oe,oe+76));return ie.join(`\r
254
- `)+`\r
255
- `}function Gi(J){var pe=J.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Ce){var ke=Ce.charCodeAt(0).toString(16).toUpperCase();return"="+(ke.length==1?"0"+ke:ke)});pe=pe.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),pe.charAt(0)==`
256
- `&&(pe="=0D"+pe.slice(1)),pe=pe.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
257
- =0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var ie=[],oe=pe.split(`\r
258
- `),de=0;de<oe.length;++de){var me=oe[de];if(me.length==0){ie.push("");continue}for(var Pe=0;Pe<me.length;){var Ie=76,Te=me.slice(Pe,Pe+Ie);Te.charAt(Ie-1)=="="?Ie--:Te.charAt(Ie-2)=="="?Ie-=2:Te.charAt(Ie-3)=="="&&(Ie-=3),Te=me.slice(Pe,Pe+Ie),Pe+=Ie,Pe<me.length&&(Te+="="),ie.push(Te)}}return ie.join(`\r
259
- `)}function ln(J){for(var pe=[],ie=0;ie<J.length;++ie){for(var oe=J[ie];ie<=J.length&&oe.charAt(oe.length-1)=="=";)oe=oe.slice(0,oe.length-1)+J[++ie];pe.push(oe)}for(var de=0;de<pe.length;++de)pe[de]=pe[de].replace(/[=][0-9A-Fa-f]{2}/g,function(me){return String.fromCharCode(parseInt(me.slice(1),16))});return vi(pe.join(`\r
260
- `))}function Ia(J,pe,ie){for(var oe="",de="",me="",Pe,Ie=0;Ie<10;++Ie){var Te=pe[Ie];if(!Te||Te.match(/^\s*$/))break;var Ce=Te.match(/^(.*?):\s*([^\s].*)$/);if(Ce)switch(Ce[1].toLowerCase()){case"content-location":oe=Ce[2].trim();break;case"content-type":me=Ce[2].trim();break;case"content-transfer-encoding":de=Ce[2].trim();break}}switch(++Ie,de.toLowerCase()){case"base64":Pe=vi(wo(pe.slice(Ie).join("")));break;case"quoted-printable":Pe=ln(pe.slice(Ie));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+de)}var ke=ia(J,oe.slice(ie.length),Pe,{unsafe:!0});me&&(ke.ctype=me)}function Fa(J,pe){if(Z(J.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var ie=pe&&pe.root||"",oe=(tr&&Buffer.isBuffer(J)?J.toString("binary"):Z(J)).split(`\r
261
- `),de=0,me="";for(de=0;de<oe.length;++de)if(me=oe[de],!!/^Content-Location:/i.test(me)&&(me=me.slice(me.indexOf("file")),ie||(ie=me.slice(0,me.lastIndexOf("/")+1)),me.slice(0,ie.length)!=ie))for(;ie.length>0&&(ie=ie.slice(0,ie.length-1),ie=ie.slice(0,ie.lastIndexOf("/")+1),me.slice(0,ie.length)!=ie););var Pe=(oe[1]||"").match(/boundary="(.*?)"/);if(!Pe)throw new Error("MAD cannot find boundary");var Ie="--"+(Pe[1]||""),Te=[],Ce=[],ke={FileIndex:Te,FullPaths:Ce};N(ke);var Ye,et=0;for(de=0;de<oe.length;++de){var lt=oe[de];lt!==Ie&&lt!==Ie+"--"||(et++&&Ia(ke,oe.slice(Ye,de),ie),Ye=de)}return ke}function St(J,pe){var ie=pe||{},oe=ie.boundary||"SheetJS";oe="------="+oe;for(var de=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+oe.slice(2)+'"',"","",""],me=J.FullPaths[0],Pe=me,Ie=J.FileIndex[0],Te=1;Te<J.FullPaths.length;++Te)if(Pe=J.FullPaths[Te].slice(me.length),Ie=J.FileIndex[Te],!(!Ie.size||!Ie.content||Pe=="Sh33tJ5")){Pe=Pe.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Ot){return"_x"+Ot.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Ot){return"_u"+Ot.charCodeAt(0).toString(16)+"_"});for(var Ce=Ie.content,ke=tr&&Buffer.isBuffer(Ce)?Ce.toString("binary"):Z(Ce),Ye=0,et=Math.min(1024,ke.length),lt=0,Xe=0;Xe<=et;++Xe)(lt=ke.charCodeAt(Xe))>=32&&lt<128&&++Ye;var st=Ye>=et*4/5;de.push(oe),de.push("Content-Location: "+(ie.root||"file:///C:/SheetJS/")+Pe),de.push("Content-Transfer-Encoding: "+(st?"quoted-printable":"base64")),de.push("Content-Type: "+ht(Ie,Pe)),de.push(""),de.push(st?Gi(ke):Gt(ke))}return de.push(oe+`--\r
262
- `),de.join(`\r
263
- `)}function xa(J){var pe={};return N(pe,J),pe}function ia(J,pe,ie,oe){var de=oe&&oe.unsafe;de||N(J);var me=!de&&br.find(J,pe);if(!me){var Pe=J.FullPaths[0];pe.slice(0,Pe.length)==Pe?Pe=pe:(Pe.slice(-1)!="/"&&(Pe+="/"),Pe=(Pe+pe).replace("//","/")),me={name:a(pe),type:2},J.FileIndex.push(me),J.FullPaths.push(Pe),de||br.utils.cfb_gc(J)}return me.content=ie,me.size=ie?ie.length:0,oe&&(oe.CLSID&&(me.clsid=oe.CLSID),oe.mt&&(me.mt=oe.mt),oe.ct&&(me.ct=oe.ct)),me}function Fn(J,pe){N(J);var ie=br.find(J,pe);if(ie){for(var oe=0;oe<J.FileIndex.length;++oe)if(J.FileIndex[oe]==ie)return J.FileIndex.splice(oe,1),J.FullPaths.splice(oe,1),!0}return!1}function Hr(J,pe,ie){N(J);var oe=br.find(J,pe);if(oe){for(var de=0;de<J.FileIndex.length;++de)if(J.FileIndex[de]==oe)return J.FileIndex[de].name=a(ie),J.FullPaths[de]=ie,!0}return!1}function Rr(J){L(J,!0)}return t.find=j,t.read=O,t.parse=u,t.write=ee,t.writeFile=te,t.utils={cfb_new:xa,cfb_add:ia,cfb_del:Fn,cfb_mov:Hr,cfb_gc:Rr,ReadShift:ef,CheckField:CP,prep_blob:Pa,bconcat:Cn,use_zlib:P,_deflateRaw:Ft,_inflateRaw:Ht,consts:z},t})();function d7(e){return typeof e=="string"?cp(e):Array.isArray(e)?BL(e):e}function a0(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=cp(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?gf(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var a=new Blob([d7(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,e);if(typeof saveAs<"u")return saveAs(a,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(a);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var o=document.createElement("a");if(o.download!=null)return o.download=e,o.href=i,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(e);return s.open("w"),s.encoding="binary",Array.isArray(t)&&(t=n0(t)),s.write(t),s.close(),t}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function In(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function Lw(e,t){for(var r=[],n=In(e),a=0;a!==n.length;++a)r[e[n[a]][t]]==null&&(r[e[n[a]][t]]=n[a]);return r}function rb(e){for(var t=[],r=In(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function hp(e){for(var t=[],r=In(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function p7(e){for(var t=[],r=In(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var Yh=new Date(1899,11,30,0,0,0);function pa(e,t){var r=e.getTime(),n=Yh.getTime()+(e.getTimezoneOffset()-Yh.getTimezoneOffset())*6e4;return(r-n)/(1440*60*1e3)}var pP=new Date,m7=Yh.getTime()+(pP.getTimezoneOffset()-Yh.getTimezoneOffset())*6e4,Iw=pP.getTimezoneOffset();function mP(e){var t=new Date;return t.setTime(e*24*60*60*1e3+m7),t.getTimezoneOffset()!==Iw&&t.setTime(t.getTime()+(t.getTimezoneOffset()-Iw)*6e4),t}var Fw=new Date("2017-02-19T19:06:09.000Z"),vP=isNaN(Fw.getFullYear())?new Date("2/19/17"):Fw,v7=vP.getFullYear()==2017;function na(e,t){var r=new Date(e);if(v7)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(vP.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function dp(e,t){if(tr&&Buffer.isBuffer(e))return e.toString("binary");if(typeof TextDecoder<"u")try{var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch{}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.join("")}function ma(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=ma(e[r]));return t}function Ur(e,t){for(var r="";r.length<t;)r+=e;return r}function po(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(n))||(n=n.replace(/[(](.*)[)]/,function(a,i){return r=-r,i}),!isNaN(t=Number(n)))?t/r:t}var g7=["january","february","march","april","may","june","july","august","september","october","november","december"];function vf(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),a=t.getMonth(),i=t.getDate();if(isNaN(i))return r;var o=e.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&g7.indexOf(o)==-1)return r}else if(o.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function $t(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return tr?n=Eo(r):n=$L(r),br.utils.cfb_add(e,t,n)}br.utils.cfb_add(e,t,r)}else e.file(t,r)}function nb(){return br.utils.cfb_new()}var sn=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
264
- `,x7={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},ab=rb(x7),ib=/[&<>'"]/g,y7=/[\u0000-\u0008\u000b-\u001f]/g;function vr(e){var t=e+"";return t.replace(ib,function(r){return ab[r]}).replace(y7,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Mw(e){return vr(e).replace(/ /g,"_x0020_")}var gP=/[\u0000-\u001f]/g;function b7(e){var t=e+"";return t.replace(ib,function(r){return ab[r]}).replace(/\n/g,"<br/>").replace(gP,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function w7(e){var t=e+"";return t.replace(ib,function(r){return ab[r]}).replace(gP,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function _7(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function S7(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function z1(e){for(var t="",r=0,n=0,a=0,i=0,o=0,s=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(a=e.charCodeAt(r++),n>191&&n<224){o=(n&31)<<6,o|=a&63,t+=String.fromCharCode(o);continue}if(i=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}o=e.charCodeAt(r++),s=((n&7)<<18|(a&63)<<12|(i&63)<<6|o&63)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(s&1023))}return t}function Dw(e){var t=Ks(2*e.length),r,n,a=1,i=0,o=0,s;for(n=0;n<e.length;n+=a)a=1,(s=e.charCodeAt(n))<128?r=s:s<224?(r=(s&31)*64+(e.charCodeAt(n+1)&63),a=2):s<240?(r=(s&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),a=3):(a=4,r=(s&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,o=55296+(r>>>10&1023),r=56320+(r&1023)),o!==0&&(t[i++]=o&255,t[i++]=o>>>8,o=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function Rw(e){return Eo(e,"binary").toString("utf8")}var xh="foo bar baz☃🍣",Qu=tr&&(Rw(xh)==z1(xh)&&Rw||Dw(xh)==z1(xh)&&Dw)||z1,gf=tr?function(e){return Eo(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},A7=(function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
265
- `).replace(/<[^>]*>/g,""),a=0;a<e.length;++a)n=n.replace(e[a][0],e[a][1]);return n}})(),xP=/(^\s|\s$|\n)/;function kn(e,t){return"<"+e+(t.match(xP)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function xf(e){return In(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function tt(e,t,r){return"<"+e+(r!=null?xf(r):"")+(t!=null?(t.match(xP)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function yy(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function N7(e,t){switch(typeof e){case"string":var r=tt("vt:lpwstr",vr(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return tt((e|0)==e?"vt:i4":"vt:r8",vr(String(e)));case"boolean":return tt("vt:bool",e?"true":"false")}if(e instanceof Date)return tt("vt:filetime",yy(e));throw new Error("Unable to serialize "+e)}var bn={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Uc=["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"],Oa={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function T7(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,i=5;i>=0;--i)a=a*256+e[t+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function E7(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,o=n?-t:t;isFinite(o)?o==0?a=i=0:(a=Math.floor(Math.log(o)/Math.LN2),i=o*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?a=-1022:(i-=Math.pow(2,52),a+=1023)):(a=2047,i=isNaN(t)?26985:0);for(var s=0;s<=5;++s,i/=256)e[r+s]=i&255;e[r+6]=(a&15)<<4|i&15,e[r+7]=a>>4|n}var Bw=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var a=0,i=e[0][n].length;a<i;a+=r)t.push.apply(t,e[0][n].slice(a,a+r));return t},$w=tr?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Eo(t)})):Bw(e)}:Bw,qw=function(e,t,r){for(var n=[],a=t;a<r;a+=2)n.push(String.fromCharCode(zu(e,a)));return n.join("").replace(Zu,"")},ob=tr?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(Zu,""):qw(e,t,r)}:qw,Uw=function(e,t,r){for(var n=[],a=t;a<t+r;++a)n.push(("0"+e[a].toString(16)).slice(-2));return n.join("")},yP=tr?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):Uw(e,t,r)}:Uw,zw=function(e,t,r){for(var n=[],a=t;a<r;a++)n.push(String.fromCharCode(Kl(e,a)));return n.join("")},i0=tr?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):zw(t,r,n)}:zw,bP=function(e,t){var r=ja(e,t);return r>0?i0(e,t+4,t+4+r-1):""},wP=bP,_P=function(e,t){var r=ja(e,t);return r>0?i0(e,t+4,t+4+r-1):""},SP=_P,AP=function(e,t){var r=2*ja(e,t);return r>0?i0(e,t+4,t+4+r-1):""},NP=AP,TP=function(t,r){var n=ja(t,r);return n>0?ob(t,r+4,r+4+n):""},EP=TP,PP=function(e,t){var r=ja(e,t);return r>0?i0(e,t+4,t+4+r):""},OP=PP,jP=function(e,t){return T7(e,t)},Kh=jP,sb=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};tr&&(wP=function(t,r){if(!Buffer.isBuffer(t))return bP(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},SP=function(t,r){if(!Buffer.isBuffer(t))return _P(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},NP=function(t,r){if(!Buffer.isBuffer(t))return AP(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},EP=function(t,r){if(!Buffer.isBuffer(t))return TP(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},OP=function(t,r){if(!Buffer.isBuffer(t))return PP(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},Kh=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):jP(t,r)},sb=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Kl=function(e,t){return e[t]},zu=function(e,t){return e[t+1]*256+e[t]},P7=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},ja=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},ks=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},O7=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function ef(e,t){var r="",n,a,i=[],o,s,l,c;switch(t){case"dbcs":if(c=this.l,tr&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)r+=String.fromCharCode(zu(this,c)),c+=2;e*=2;break;case"utf8":r=i0(this,this.l,this.l+e);break;case"utf16le":e*=2,r=ob(this,this.l,this.l+e);break;case"wstr":return ef.call(this,e,"dbcs");case"lpstr-ansi":r=wP(this,this.l),e=4+ja(this,this.l);break;case"lpstr-cp":r=SP(this,this.l),e=4+ja(this,this.l);break;case"lpwstr":r=NP(this,this.l),e=4+2*ja(this,this.l);break;case"lpp4":e=4+ja(this,this.l),r=EP(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+ja(this,this.l),r=OP(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(o=Kl(this,this.l+e++))!==0;)i.push(mh(o));r=i.join("");break;case"_wstr":for(e=0,r="";(o=zu(this,this.l+e))!==0;)i.push(mh(o)),e+=2;e+=2,r=i.join("");break;case"dbcs-cont":for(r="",c=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return o=Kl(this,c),this.l=c+1,s=ef.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),i.join("")+s;i.push(mh(zu(this,c))),c+=2}r=i.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",c=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return o=Kl(this,c),this.l=c+1,s=ef.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),i.join("")+s;i.push(mh(Kl(this,c))),c+=1}r=i.join("");break;default:switch(e){case 1:return n=Kl(this,this.l),this.l++,n;case 2:return n=(t==="i"?P7:zu)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||(this[this.l+3]&128)===0?(n=(e>0?ks:O7)(this,this.l),this.l+=4,n):(a=ja(this,this.l),this.l+=4,a);case 8:case-8:if(t==="f")return e==8?a=Kh(this,this.l):a=Kh([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:r=yP(this,this.l,e);break}}return this.l+=e,r}var j7=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},C7=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},k7=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function L7(e,t,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=t.length;++a)k7(this,t.charCodeAt(a),this.l+2*a);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=t.length;++a)this[this.l+a]=t.charCodeAt(a)&255;n=t.length}else if(r==="hex"){for(;a<e;++a)this[this.l++]=parseInt(t.slice(2*a,2*a+2),16)||0;return this}else if(r==="utf16le"){var i=Math.min(this.l+e,this.length);for(a=0;a<Math.min(t.length,e);++a){var o=t.charCodeAt(a);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<i;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=t&255;break;case 2:n=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,j7(this,t,this.l);break;case 8:if(n=8,r==="f"){E7(this,t,this.l);break}case 16:break;case-4:n=4,C7(this,t,this.l);break}return this.l+=n,this}function CP(e,t){var r=yP(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Pa(e,t){e.l=t,e.read_shift=ef,e.chk=CP,e.write_shift=L7}function $i(e,t){e.l+=t}function Be(e){var t=Ks(e);return Pa(t,0),t}function da(){var e=[],t=tr?256:2048,r=function(c){var u=Be(c);return Pa(u,0),u},n=r(t),a=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},i=function(c){return n&&c<n.length-n.l?n:(a(),n=r(Math.max(c+1,t)))},o=function(){return a(),Cn(e)},s=function(c){a(),n=c,n.l==null&&(n.l=n.length),i(t)};return{next:i,push:s,end:o,_bufs:e}}function He(e,t,r,n){var a=+t,i;if(!isNaN(a)){n||(n=T9[a].p||(r||[]).length||0),i=1+(a>=128?1:0)+1,n>=128&&++i,n>=16384&&++i,n>=2097152&&++i;var o=e.next(i);a<=127?o.write_shift(1,a):(o.write_shift(1,(a&127)+128),o.write_shift(1,a>>7));for(var s=0;s!=4;++s)if(n>=128)o.write_shift(1,(n&127)+128),n>>=7;else{o.write_shift(1,n);break}n>0&&sb(r)&&e.push(r)}}function tf(e,t,r){var n=ma(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Ww(e,t,r){var n=ma(e);return n.s=tf(n.s,t.s,r),n.e=tf(n.e,t.s,r),n}function rf(e,t){if(e.cRel&&e.c<0)for(e=ma(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=ma(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=gr(e);return!e.cRel&&e.cRel!=null&&(r=M7(r)),!e.rRel&&e.rRel!=null&&(r=I7(r)),r}function W1(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Hn(e.s.c)+":"+(e.e.cRel?"":"$")+Hn(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Ln(e.s.r)+":"+(e.e.rRel?"":"$")+Ln(e.e.r):rf(e.s,t.biff)+":"+rf(e.e,t.biff)}function lb(e){return parseInt(F7(e),10)-1}function Ln(e){return""+(e+1)}function I7(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function F7(e){return e.replace(/\$(\d+)$/,"$1")}function cb(e){for(var t=D7(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Hn(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function M7(e){return e.replace(/^([A-Z])/,"$$$1")}function D7(e){return e.replace(/^\$([A-Z])/,"$1")}function R7(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function wn(e){for(var t=0,r=0,n=0;n<e.length;++n){var a=e.charCodeAt(n);a>=48&&a<=57?t=10*t+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:t-1}}function gr(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function La(e){var t=e.indexOf(":");return t==-1?{s:wn(e),e:wn(e)}:{s:wn(e.slice(0,t)),e:wn(e.slice(t+1))}}function an(e,t){return typeof t>"u"||typeof t=="number"?an(e.s,e.e):(typeof e!="string"&&(e=gr(e)),typeof t!="string"&&(t=gr(t)),e==t?e:e+":"+t)}function Ir(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=e.length;for(r=0;n<i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.s.c=--r,r=0;n<i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;if(t.s.r=--r,n===i||a!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.e.c=--r,r=0;n!=i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return t.e.r=--r,t}function Hw(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=ls(e.z,r?pa(t):t)}catch{}try{return e.w=ls((e.XF||{}).numFmtId||(r?14:0),r?pa(t):t)}catch{return""+t}}function _o(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?o0[e.v]||e.v:t==null?Hw(e,e.v):Hw(e,t))}function rl(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function kP(e,t,r){var n=r||{},a=e?Array.isArray(e):n.dense,i=e||(a?[]:{}),o=0,s=0;if(i&&n.origin!=null){if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?wn(n.origin):n.origin;o=l.r,s=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var u=Ir(i["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),o==-1&&(c.e.r=o=u.e.r+1)}for(var f=0;f!=t.length;++f)if(t[f]){if(!Array.isArray(t[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=t[f].length;++d)if(!(typeof t[f][d]>"u")){var h={v:t[f][d]},x=o+f,p=s+d;if(c.s.r>x&&(c.s.r=x),c.s.c>p&&(c.s.c=p),c.e.r<x&&(c.e.r=x),c.e.c<p&&(c.e.c=p),t[f][d]&&typeof t[f][d]=="object"&&!Array.isArray(t[f][d])&&!(t[f][d]instanceof Date))h=t[f][d];else if(Array.isArray(h.v)&&(h.f=t[f][d][1],h.v=h.v[0]),h.v===null)if(h.f)h.t="n";else if(n.nullError)h.t="e",h.v=0;else if(n.sheetStubs)h.t="z";else continue;else typeof h.v=="number"?h.t="n":typeof h.v=="boolean"?h.t="b":h.v instanceof Date?(h.z=n.dateNF||Wr[14],n.cellDates?(h.t="d",h.w=ls(h.z,pa(h.v))):(h.t="n",h.v=pa(h.v),h.w=ls(h.z,h.v))):h.t="s";if(a)i[x]||(i[x]=[]),i[x][p]&&i[x][p].z&&(h.z=i[x][p].z),i[x][p]=h;else{var m=gr({c:p,r:x});i[m]&&i[m].z&&(h.z=i[m].z),i[m]=h}}}return c.s.c<1e7&&(i["!ref"]=an(c)),i}function zc(e,t){return kP(null,e,t)}function B7(e){return e.read_shift(4,"i")}function wi(e,t){return t||(t=Be(4)),t.write_shift(4,e),t}function Gn(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function _n(e,t){var r=!1;return t==null&&(r=!0,t=Be(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function $7(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function q7(e,t){return t||(t=Be(4)),t.write_shift(2,0),t.write_shift(2,0),t}function ub(e,t){var r=e.l,n=e.read_shift(1),a=Gn(e),i=[],o={t:a,h:a};if((n&1)!==0){for(var s=e.read_shift(4),l=0;l!=s;++l)i.push($7(e));o.r=i}else o.r=[{ich:0,ifnt:0}];return e.l=r+t,o}function U7(e,t){var r=!1;return t==null&&(r=!0,t=Be(15+4*e.t.length)),t.write_shift(1,0),_n(e.t,t),r?t.slice(0,t.l):t}var z7=ub;function W7(e,t){var r=!1;return t==null&&(r=!0,t=Be(23+4*e.t.length)),t.write_shift(1,1),_n(e.t,t),t.write_shift(4,1),q7({},t),r?t.slice(0,t.l):t}function Za(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function nl(e,t){return t==null&&(t=Be(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function al(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function il(e,t){return t==null&&(t=Be(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var H7=Gn,LP=_n;function fb(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function Xh(e,t){var r=!1;return t==null&&(r=!0,t=Be(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var G7=Gn,by=fb,hb=Xh;function IP(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var a=n===0?Kh([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):ks(t,0)>>2;return r?a/100:a}function FP(e,t){t==null&&(t=Be(4));var r=0,n=0,a=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?n=1:a==(a|0)&&a>=-536870912&&a<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?a:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function MP(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function V7(e,t){return t||(t=Be(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var ol=MP,Wc=V7;function Hc(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Xs(e,t){return(t||Be(8)).write_shift(8,e,"f")}function Y7(e){var t={},r=e.read_shift(1),n=r>>>1,a=e.read_shift(1),i=e.read_shift(2,"i"),o=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=a;var c=nI[a];c&&(t.rgb=r_(c));break;case 2:t.rgb=r_([o,s,l]);break;case 3:t.theme=a;break}return i!=0&&(t.tint=i>0?i/32767:i/32768),t}function Jh(e,t){if(t||(t=Be(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function K7(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function X7(e,t){t||(t=Be(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}var DP=2,Ta=3,yh=11,Zh=19,bh=64,J7=65,Z7=71,Q7=4108,eI=4126,On=80,Gw={1:{n:"CodePage",t:DP},2:{n:"Category",t:On},3:{n:"PresentationFormat",t:On},4:{n:"ByteCount",t:Ta},5:{n:"LineCount",t:Ta},6:{n:"ParagraphCount",t:Ta},7:{n:"SlideCount",t:Ta},8:{n:"NoteCount",t:Ta},9:{n:"HiddenCount",t:Ta},10:{n:"MultimediaClipCount",t:Ta},11:{n:"ScaleCrop",t:yh},12:{n:"HeadingPairs",t:Q7},13:{n:"TitlesOfParts",t:eI},14:{n:"Manager",t:On},15:{n:"Company",t:On},16:{n:"LinksUpToDate",t:yh},17:{n:"CharacterCount",t:Ta},19:{n:"SharedDoc",t:yh},22:{n:"HyperlinksChanged",t:yh},23:{n:"AppVersion",t:Ta,p:"version"},24:{n:"DigSig",t:J7},26:{n:"ContentType",t:On},27:{n:"ContentStatus",t:On},28:{n:"Language",t:On},29:{n:"Version",t:On},255:{},2147483648:{n:"Locale",t:Zh},2147483651:{n:"Behavior",t:Zh},1919054434:{}},Vw={1:{n:"CodePage",t:DP},2:{n:"Title",t:On},3:{n:"Subject",t:On},4:{n:"Author",t:On},5:{n:"Keywords",t:On},6:{n:"Comments",t:On},7:{n:"Template",t:On},8:{n:"LastAuthor",t:On},9:{n:"RevNumber",t:On},10:{n:"EditTime",t:bh},11:{n:"LastPrinted",t:bh},12:{n:"CreatedDate",t:bh},13:{n:"ModifiedDate",t:bh},14:{n:"PageCount",t:Ta},15:{n:"WordCount",t:Ta},16:{n:"CharCount",t:Ta},17:{n:"Thumbnail",t:Z7},18:{n:"Application",t:On},19:{n:"DocSecurity",t:Ta},255:{},2147483648:{n:"Locale",t:Zh},2147483651:{n:"Behavior",t:Zh},1919054434:{}};function tI(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var rI=tI([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]),nI=ma(rI),o0={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},aI={"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"},wh={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function RP(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function BP(e,t){var r=p7(aI),n=[],a;n[n.length]=sn,n[n.length]=tt("Types",null,{xmlns:bn.CT,"xmlns:xsd":bn.xsd,"xmlns:xsi":bn.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return tt("Default",null,{Extension:l[0],ContentType:l[1]})}));var i=function(l){e[l]&&e[l].length>0&&(a=e[l][0],n[n.length]=tt("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:wh[l][t.bookType]||wh[l].xlsx}))},o=function(l){(e[l]||[]).forEach(function(c){n[n.length]=tt("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:wh[l][t.bookType]||wh[l].xlsx})})},s=function(l){(e[l]||[]).forEach(function(c){n[n.length]=tt("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:r[l][0]})})};return i("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var Zt={WB:"http://schemas.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",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",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],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 $P(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function ac(e){var t=[sn,tt("Relationships",null,{xmlns:bn.RELS})];return In(e["!id"]).forEach(function(r){t[t.length]=tt("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function mr(e,t,r,n,a,i){if(a||(a={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,a.Id="rId"+t,a.Type=n,a.Target=r,[Zt.HLINK,Zt.XPATH,Zt.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),e["!id"][a.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][a.Id]=a,e[("/"+a.Target).replace("//","/")]=a,t}function iI(e){var t=[sn];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
266
- `),t.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
267
- `);for(var r=0;r<e.length;++r)t.push(' <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/>
268
- `);return t.push("</manifest:manifest>"),t.join("")}function Yw(e,t,r){return[' <rdf:Description rdf:about="'+e+`">
269
- `,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/>
270
- `,` </rdf:Description>
271
- `].join("")}function oI(e,t){return[' <rdf:Description rdf:about="'+e+`">
272
- `,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
273
- `,` </rdf:Description>
274
- `].join("")}function sI(e){var t=[sn];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
275
- `);for(var r=0;r!=e.length;++r)t.push(Yw(e[r][0],e[r][1])),t.push(oI("",e[r][0]));return t.push(Yw("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function qP(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+zh.version+"</meta:generator></office:meta></office:document-meta>"}var Ws=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function H1(e,t,r,n,a){a[e]!=null||t==null||t===""||(a[e]=t,t=vr(t),n[n.length]=r?tt(e,t,r):kn(e,t))}function UP(e,t){var r=t||{},n=[sn,tt("cp:coreProperties",null,{"xmlns:cp":bn.CORE_PROPS,"xmlns:dc":bn.dc,"xmlns:dcterms":bn.dcterms,"xmlns:dcmitype":bn.dcmitype,"xmlns:xsi":bn.xsi})],a={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&H1("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:yy(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&H1("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:yy(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=Ws.length;++i){var o=Ws[i],s=r.Props&&r.Props[o[1]]!=null?r.Props[o[1]]:e?e[o[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&H1(o[0],s,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var ic=[["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"]],zP=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function WP(e){var t=[],r=tt;return e||(e={}),e.Application="SheetJS",t[t.length]=sn,t[t.length]=tt("Properties",null,{xmlns:bn.EXT_PROPS,"xmlns:vt":bn.vt}),ic.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=vr(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(t[t.length]=r(n[0],a))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+vr(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function HP(e){var t=[sn,tt("Properties",null,{xmlns:bn.CUST_PROPS,"xmlns:vt":bn.vt})];if(!e)return t.join("");var r=1;return In(e).forEach(function(a){++r,t[t.length]=tt("property",N7(e[a]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:vr(a)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var Kw={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function lI(e,t){var r=[];return In(Kw).map(function(n){for(var a=0;a<Ws.length;++a)if(Ws[a][1]==n)return Ws[a];for(a=0;a<ic.length;++a)if(ic[a][1]==n)return ic[a];throw n}).forEach(function(n){if(e[n[1]]!=null){var a=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":a=new Date(a).toISOString().replace(/\.\d*Z/,"Z");break}typeof a=="number"?a=String(a):a===!0||a===!1?a=a?"1":"0":a instanceof Date&&(a=new Date(a).toISOString().replace(/\.\d*Z/,"")),r.push(kn(Kw[n[1]]||n[1],a))}}),tt("DocumentProperties",r.join(""),{xmlns:Oa.o})}function cI(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",a=[];return e&&In(e).forEach(function(i){if(Object.prototype.hasOwnProperty.call(e,i)){for(var o=0;o<Ws.length;++o)if(i==Ws[o][1])return;for(o=0;o<ic.length;++o)if(i==ic[o][1])return;for(o=0;o<r.length;++o)if(i==r[o])return;var s=e[i],l="string";typeof s=="number"?(l="float",s=String(s)):s===!0||s===!1?(l="boolean",s=s?"1":"0"):s=String(s),a.push(tt(Mw(i),s,{"dt:dt":l}))}}),t&&In(t).forEach(function(i){if(Object.prototype.hasOwnProperty.call(t,i)&&!(e&&Object.prototype.hasOwnProperty.call(e,i))){var o=t[i],s="string";typeof o=="number"?(s="float",o=String(o)):o===!0||o===!1?(s="boolean",o=o?"1":"0"):o instanceof Date?(s="dateTime.tz",o=o.toISOString()):o=String(o),a.push(tt(Mw(i),o,{"dt:dt":s}))}}),"<"+n+' xmlns="'+Oa.o+'">'+a.join("")+"</"+n+">"}function uI(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),a=(r-n)/Math.pow(2,32);n*=1e7,a*=1e7;var i=n/Math.pow(2,32)|0;i>0&&(n=n%Math.pow(2,32),a+=i);var o=Be(8);return o.write_shift(4,n),o.write_shift(4,a),o}function Xw(e,t){var r=Be(4),n=Be(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=Be(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=uI(t);break;case 31:case 80:for(n=Be(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return Cn([r,n])}var GP=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function fI(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Jw(e,t,r){var n=Be(8),a=[],i=[],o=8,s=0,l=Be(8),c=Be(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),i.push(l),a.push(c),o+=8+l.length,!t){c=Be(8),c.write_shift(4,0),a.unshift(c);var u=[Be(4)];for(u[0].write_shift(4,e.length),s=0;s<e.length;++s){var f=e[s][0];for(l=Be(8+2*(f.length+1)+(f.length%2?0:2)),l.write_shift(4,s+2),l.write_shift(4,f.length+1),l.write_shift(0,f,"dbcs");l.l!=l.length;)l.write_shift(1,0);u.push(l)}l=Cn(u),i.unshift(l),o+=8+l.length}for(s=0;s<e.length;++s)if(!(t&&!t[e[s][0]])&&!(GP.indexOf(e[s][0])>-1||zP.indexOf(e[s][0])>-1)&&e[s][1]!=null){var d=e[s][1],h=0;if(t){h=+t[e[s][0]];var x=r[h];if(x.p=="version"&&typeof d=="string"){var p=d.split(".");d=(+p[0]<<16)+(+p[1]||0)}l=Xw(x.t,d)}else{var m=fI(d);m==-1&&(m=31,d=String(d)),l=Xw(m,d)}i.push(l),c=Be(8),c.write_shift(4,t?h:2+s),a.push(c),o+=8+l.length}var y=8*(i.length+1);for(s=0;s<i.length;++s)a[s].write_shift(4,y),y+=i[s].length;return n.write_shift(4,o),n.write_shift(4,i.length),Cn([n].concat(a).concat(i))}function Zw(e,t,r,n,a,i){var o=Be(a?68:48),s=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,br.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,a?2:1),o.write_shift(16,t,"hex"),o.write_shift(4,a?68:48);var l=Jw(e,r,n);if(s.push(l),a){var c=Jw(a,null,null);o.write_shift(16,i,"hex"),o.write_shift(4,68+l.length),s.push(c)}return Cn(s)}function hI(e,t){t||(t=Be(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function dI(e,t){return e.read_shift(t)===1}function ea(e,t){return t||(t=Be(2)),t.write_shift(2,+!!e),t}function VP(e){return e.read_shift(2,"u")}function Va(e,t){return t||(t=Be(2)),t.write_shift(2,e),t}function YP(e,t,r){return r||(r=Be(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function KP(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),a="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var i=e.read_shift(1);i&&(a="dbcs-cont")}else r.biff==12&&(a="wstr");r.biff>=2&&r.biff<=5&&(a="cpstr");var o=n?e.read_shift(n,a):"";return o}function pI(e){var t=e.t||"",r=Be(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=Be(2*t.length);n.write_shift(2*t.length,t,"utf16le");var a=[r,n];return Cn(a)}function mI(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var a=e.read_shift(1);return a===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function vI(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):mI(e,n,r)}function gI(e,t,r){if(r.biff>5)return vI(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function XP(e,t,r){return r||(r=Be(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function Qw(e,t){t||(t=Be(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function xI(e){var t=Be(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var a=n.indexOf("#"),i=a>-1?31:23;switch(n.charAt(0)){case"#":i=28;break;case".":i&=-3;break}t.write_shift(4,2),t.write_shift(4,i);var o=[8,6815827,6619237,4849780,83];for(r=0;r<o.length;++r)t.write_shift(4,o[r]);if(i==28)n=n.slice(1),Qw(n,t);else if(i&2){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<o.length;++r)t.write_shift(1,parseInt(o[r],16));var s=a>-1?n.slice(0,a):n;for(t.write_shift(4,2*(s.length+1)),r=0;r<s.length;++r)t.write_shift(2,s.charCodeAt(r));t.write_shift(2,0),i&8&&Qw(a>-1?n.slice(a+1):"",t)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<o.length;++r)t.write_shift(1,parseInt(o[r],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(t.write_shift(2,l),t.write_shift(4,n.length-3*l+1),r=0;r<n.length-3*l;++r)t.write_shift(1,n.charCodeAt(r+3*l)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function Js(e,t,r,n){return n||(n=Be(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function yI(e,t,r){var n=r.biff>8?4:2,a=e.read_shift(n),i=e.read_shift(n,"i"),o=e.read_shift(n,"i");return[a,i,o]}function bI(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2);return{s:{c:n,r:t},e:{c:a,r}}}function JP(e,t){return t||(t=Be(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function db(e,t,r){var n=1536,a=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=Be(a);return i.write_shift(2,n),i.write_shift(2,t),a>4&&i.write_shift(2,29282),a>6&&i.write_shift(2,1997),a>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function wI(e,t){var r=!t||t.biff==8,n=Be(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function _I(e,t){var r=!t||t.biff>=8?2:1,n=Be(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function SI(e,t){var r=Be(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],a=0;a<e.length;++a)n[a]=pI(e[a]);var i=Cn([r].concat(n));return i.parts=[r.length].concat(n.map(function(o){return o.length})),i}function AI(){var e=Be(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function NI(e){var t=Be(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function TI(e,t){var r=e.name||"Arial",n=t&&t.biff==5,a=n?15+r.length:16+2*r.length,i=Be(a);return i.write_shift(2,e.sz*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),n||i.write_shift(1,1),i.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),i}function EI(e,t,r,n){var a=Be(10);return Js(e,t,n,a),a.write_shift(4,r),a}function PI(e,t,r,n,a){var i=!a||a.biff==8,o=Be(8+ +i+(1+i)*r.length);return Js(e,t,n,o),o.write_shift(2,r.length),i&&o.write_shift(1,1),o.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),o}function OI(e,t,r,n){var a=r&&r.biff==5;n||(n=Be(a?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(a?1:2,t.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*t.length,t,a?"sbcs":"utf16le");var i=n.length>n.l?n.slice(0,n.l):n;return i.l==null&&(i.l=i.length),i}function jI(e,t){var r=t.biff==8||!t.biff?4:2,n=Be(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function e_(e,t,r,n){var a=r&&r.biff==5;n||(n=Be(a?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&a&&(i|=1024),n.write_shift(4,i),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function CI(e){var t=Be(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function kI(e,t,r,n,a,i){var o=Be(8);return Js(e,t,n,o),YP(r,i,o),o}function LI(e,t,r,n){var a=Be(14);return Js(e,t,n,a),Xs(r,a),a}function II(e,t,r){if(r.biff<8)return FI(e,t,r);for(var n=[],a=e.l+t,i=e.read_shift(r.biff>8?4:2);i--!==0;)n.push(yI(e,r.biff>8?12:6,r));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function FI(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=KP(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function MI(e){var t=Be(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)JP(e[r],t);return t}function DI(e){var t=Be(24),r=wn(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)t.write_shift(1,parseInt(n[a],16));return Cn([t,xI(e[1])])}function RI(e){var t=e[1].Tooltip,r=Be(10+2*(t.length+1));r.write_shift(2,2048);var n=wn(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var a=0;a<t.length;++a)r.write_shift(2,t.charCodeAt(a));return r.write_shift(2,0),r}function BI(e){return e||(e=Be(4)),e.write_shift(2,1),e.write_shift(2,1),e}function $I(e,t,r){if(!r.cellStyles)return $i(e,t);var n=r&&r.biff>=12?4:2,a=e.read_shift(n),i=e.read_shift(n),o=e.read_shift(n),s=e.read_shift(n),l=e.read_shift(2);n==2&&(e.l+=2);var c={s:a,e:i,w:o,ixfe:s,flags:l};return(r.biff>=5||!r.biff)&&(c.level=l>>8&7),c}function qI(e,t){var r=Be(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function UI(e){for(var t=Be(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function zI(e,t,r){var n=Be(15);return l0(n,e,t),n.write_shift(8,r,"f"),n}function WI(e,t,r){var n=Be(9);return l0(n,e,t),n.write_shift(2,r),n}var HI=(function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=rb({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(s,l){var c=[],u=Ks(1);switch(l.type){case"base64":u=vi(wo(s));break;case"binary":u=vi(s);break;case"buffer":case"array":u=s;break}Pa(u,0);var f=u.read_shift(1),d=!!(f&136),h=!1,x=!1;switch(f){case 2:break;case 3:break;case 48:h=!0,d=!0;break;case 49:h=!0,d=!0;break;case 131:break;case 139:break;case 140:x=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+f.toString(16))}var p=0,m=521;f==2&&(p=u.read_shift(2)),u.l+=3,f!=2&&(p=u.read_shift(4)),p>1048576&&(p=1e6),f!=2&&(m=u.read_shift(2));var y=u.read_shift(2),b=l.codepage||1252;f!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(b=e[u[u.l]]),u.l+=1,u.l+=2),x&&(u.l+=36);for(var w=[],S={},A=Math.min(u.length,f==2?521:m-10-(h?264:0)),O=x?32:11;u.l<A&&u[u.l]!=13;)switch(S={},S.name=Wh.utils.decode(b,u.slice(u.l,u.l+O)).replace(/[\u0000\r\n].*$/g,""),u.l+=O,S.type=String.fromCharCode(u.read_shift(1)),f!=2&&!x&&(S.offset=u.read_shift(4)),S.len=u.read_shift(1),f==2&&(S.offset=u.read_shift(2)),S.dec=u.read_shift(1),S.name.length&&w.push(S),f!=2&&(u.l+=x?13:14),S.type){case"B":(!h||S.len!=8)&&l.WTF&&console.log("Skipping "+S.name+":"+S.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+S.name+":"+S.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+S.type)}if(u[u.l]!==13&&(u.l=m-1),u.read_shift(1)!==13)throw new Error("DBF Terminator not found "+u.l+" "+u[u.l]);u.l=m;var N=0,C=0;for(c[0]=[],C=0;C!=w.length;++C)c[0][C]=w[C].name;for(;p-- >0;){if(u[u.l]===42){u.l+=y;continue}for(++u.l,c[++N]=[],C=0,C=0;C!=w.length;++C){var L=u.slice(u.l,u.l+w[C].len);u.l+=w[C].len,Pa(L,0);var R=Wh.utils.decode(b,L);switch(w[C].type){case"C":R.trim().length&&(c[N][C]=R.replace(/\s+$/,""));break;case"D":R.length===8?c[N][C]=new Date(+R.slice(0,4),+R.slice(4,6)-1,+R.slice(6,8)):c[N][C]=R;break;case"F":c[N][C]=parseFloat(R.trim());break;case"+":case"I":c[N][C]=x?L.read_shift(-4,"i")^2147483648:L.read_shift(4,"i");break;case"L":switch(R.trim().toUpperCase()){case"Y":case"T":c[N][C]=!0;break;case"N":case"F":c[N][C]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+R+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));c[N][C]="##MEMO##"+(x?parseInt(R.trim(),10):L.read_shift(4));break;case"N":R=R.replace(/\u0000/g,"").trim(),R&&R!="."&&(c[N][C]=+R||0);break;case"@":c[N][C]=new Date(L.read_shift(-8,"f")-621356832e5);break;case"T":c[N][C]=new Date((L.read_shift(4)-2440588)*864e5+L.read_shift(4));break;case"Y":c[N][C]=L.read_shift(4,"i")/1e4+L.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[N][C]=-L.read_shift(-8,"f");break;case"B":if(h&&w[C].len==8){c[N][C]=L.read_shift(8,"f");break}case"G":case"P":L.l+=w[C].len;break;case"0":if(w[C].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+w[C].type)}}}if(f!=2&&u.l<u.length&&u[u.l++]!=26)throw new Error("DBF EOF Marker missing "+(u.l-1)+" of "+u.length+" "+u[u.l-1].toString(16));return l&&l.sheetRows&&(c=c.slice(0,l.sheetRows)),l.DBF=w,c}function n(s,l){var c=l||{};c.dateNF||(c.dateNF="yyyymmdd");var u=zc(r(s,c),c);return u["!cols"]=c.DBF.map(function(f){return{wch:f.len,DBF:f}}),delete c.DBF,u}function a(s,l){try{return rl(n(s,l),l)}catch(c){if(l&&l.WTF)throw c}return{SheetNames:[],Sheets:{}}}var i={B:8,C:250,L:1,D:8,"?":0,"":0};function o(s,l){var c=l||{};if(+c.codepage>=0&&pf(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var u=da(),f=nd(s,{header:1,raw:!0,cellDates:!0}),d=f[0],h=f.slice(1),x=s["!cols"]||[],p=0,m=0,y=0,b=1;for(p=0;p<d.length;++p){if(((x[p]||{}).DBF||{}).name){d[p]=x[p].DBF.name,++y;continue}if(d[p]!=null){if(++y,typeof d[p]=="number"&&(d[p]=d[p].toString(10)),typeof d[p]!="string")throw new Error("DBF Invalid column name "+d[p]+" |"+typeof d[p]+"|");if(d.indexOf(d[p])!==p){for(m=0;m<1024;++m)if(d.indexOf(d[p]+"_"+m)==-1){d[p]+="_"+m;break}}}}var w=Ir(s["!ref"]),S=[],A=[],O=[];for(p=0;p<=w.e.c-w.s.c;++p){var N="",C="",L=0,R=[];for(m=0;m<h.length;++m)h[m][p]!=null&&R.push(h[m][p]);if(R.length==0||d[p]==null){S[p]="?";continue}for(m=0;m<R.length;++m){switch(typeof R[m]){case"number":C="B";break;case"string":C="C";break;case"boolean":C="L";break;case"object":C=R[m]instanceof Date?"D":"C";break;default:C="C"}L=Math.max(L,String(R[m]).length),N=N&&N!=C?"C":C}L>250&&(L=250),C=((x[p]||{}).DBF||{}).type,C=="C"&&x[p].DBF.len>L&&(L=x[p].DBF.len),N=="B"&&C=="N"&&(N="N",O[p]=x[p].DBF.dec,L=x[p].DBF.len),A[p]=N=="C"||C=="N"?L:i[N]||0,b+=A[p],S[p]=N}var j=u.next(32);for(j.write_shift(4,318902576),j.write_shift(4,h.length),j.write_shift(2,296+32*y),j.write_shift(2,b),p=0;p<4;++p)j.write_shift(4,0);for(j.write_shift(4,0|(+t[QE]||3)<<8),p=0,m=0;p<d.length;++p)if(d[p]!=null){var E=u.next(32),D=(d[p].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);E.write_shift(1,D,"sbcs"),E.write_shift(1,S[p]=="?"?"C":S[p],"sbcs"),E.write_shift(4,m),E.write_shift(1,A[p]||i[S[p]]||0),E.write_shift(1,O[p]||0),E.write_shift(1,2),E.write_shift(4,0),E.write_shift(1,0),E.write_shift(4,0),E.write_shift(4,0),m+=A[p]||i[S[p]]||0}var U=u.next(264);for(U.write_shift(4,13),p=0;p<65;++p)U.write_shift(4,0);for(p=0;p<h.length;++p){var H=u.next(b);for(H.write_shift(1,0),m=0;m<d.length;++m)if(d[m]!=null)switch(S[m]){case"L":H.write_shift(1,h[p][m]==null?63:h[p][m]?84:70);break;case"B":H.write_shift(8,h[p][m]||0,"f");break;case"N":var B="0";for(typeof h[p][m]=="number"&&(B=h[p][m].toFixed(O[m]||0)),y=0;y<A[m]-B.length;++y)H.write_shift(1,32);H.write_shift(1,B,"sbcs");break;case"D":h[p][m]?(H.write_shift(4,("0000"+h[p][m].getFullYear()).slice(-4),"sbcs"),H.write_shift(2,("00"+(h[p][m].getMonth()+1)).slice(-2),"sbcs"),H.write_shift(2,("00"+h[p][m].getDate()).slice(-2),"sbcs")):H.write_shift(8,"00000000","sbcs");break;case"C":var z=String(h[p][m]!=null?h[p][m]:"").slice(0,A[m]);for(H.write_shift(1,z,"sbcs"),y=0;y<A[m]-z.length;++y)H.write_shift(1,32);break}}return u.next(1).write_shift(1,26),u.end()}return{to_workbook:a,to_sheet:n,from_sheet:o}})(),GI=(function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+In(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(d,h){var x=e[h];return typeof x=="number"?Aw(x):x},n=function(d,h,x){var p=h.charCodeAt(0)-32<<4|x.charCodeAt(0)-48;return p==59?d:Aw(p)};e["|"]=254;function a(d,h){switch(h.type){case"base64":return i(wo(d),h);case"binary":return i(d,h);case"buffer":return i(tr&&Buffer.isBuffer(d)?d.toString("binary"):n0(d),h);case"array":return i(dp(d),h)}throw new Error("Unrecognized type "+h.type)}function i(d,h){var x=d.split(/[\n\r]+/),p=-1,m=-1,y=0,b=0,w=[],S=[],A=null,O={},N=[],C=[],L=[],R=0,j;for(+h.codepage>=0&&pf(+h.codepage);y!==x.length;++y){R=0;var E=x[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),D=E.replace(/;;/g,"\0").split(";").map(function(q){return q.replace(/\u0000/g,";")}),U=D[0],H;if(E.length>0)switch(U){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":D[1].charAt(0)=="P"&&S.push(E.slice(3).replace(/;;/g,";"));break;case"C":var B=!1,z=!1,te=!1,Z=!1,ee=-1,ce=-1;for(b=1;b<D.length;++b)switch(D[b].charAt(0)){case"A":break;case"X":m=parseInt(D[b].slice(1))-1,z=!0;break;case"Y":for(p=parseInt(D[b].slice(1))-1,z||(m=0),j=w.length;j<=p;++j)w[j]=[];break;case"K":H=D[b].slice(1),H.charAt(0)==='"'?H=H.slice(1,H.length-1):H==="TRUE"?H=!0:H==="FALSE"?H=!1:isNaN(po(H))?isNaN(vf(H).getDate())||(H=na(H)):(H=po(H),A!==null&&fP(A)&&(H=mP(H))),B=!0;break;case"E":Z=!0;var P=WF(D[b].slice(1),{r:p,c:m});w[p][m]=[w[p][m],P];break;case"S":te=!0,w[p][m]=[w[p][m],"S5S"];break;case"G":break;case"R":ee=parseInt(D[b].slice(1))-1;break;case"C":ce=parseInt(D[b].slice(1))-1;break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+E)}if(B&&(w[p][m]&&w[p][m].length==2?w[p][m][0]=H:w[p][m]=H,A=null),te){if(Z)throw new Error("SYLK shared formula cannot have own formula");var I=ee>-1&&w[ee][ce];if(!I||!I[1])throw new Error("SYLK shared formula cannot find base");w[p][m][1]=HF(I[1],{r:p-ee,c:m-ce})}break;case"F":var M=0;for(b=1;b<D.length;++b)switch(D[b].charAt(0)){case"X":m=parseInt(D[b].slice(1))-1,++M;break;case"Y":for(p=parseInt(D[b].slice(1))-1,j=w.length;j<=p;++j)w[j]=[];break;case"M":R=parseInt(D[b].slice(1))/20;break;case"F":break;case"G":break;case"P":A=S[parseInt(D[b].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(L=D[b].slice(1).split(" "),j=parseInt(L[0],10);j<=parseInt(L[1],10);++j)R=parseInt(L[2],10),C[j-1]=R===0?{hidden:!0}:{wch:R},pb(C[j-1]);break;case"C":m=parseInt(D[b].slice(1))-1,C[m]||(C[m]={});break;case"R":p=parseInt(D[b].slice(1))-1,N[p]||(N[p]={}),R>0?(N[p].hpt=R,N[p].hpx=rO(R)):R===0&&(N[p].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+E)}M<1&&(A=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+E)}}return N.length>0&&(O["!rows"]=N),C.length>0&&(O["!cols"]=C),h&&h.sheetRows&&(w=w.slice(0,h.sheetRows)),[w,O]}function o(d,h){var x=a(d,h),p=x[0],m=x[1],y=zc(p,h);return In(m).forEach(function(b){y[b]=m[b]}),y}function s(d,h){return rl(o(d,h),h)}function l(d,h,x,p){var m="C;Y"+(x+1)+";X"+(p+1)+";K";switch(d.t){case"n":m+=d.v||0,d.f&&!d.F&&(m+=";E"+vb(d.f,{r:x,c:p}));break;case"b":m+=d.v?"TRUE":"FALSE";break;case"e":m+=d.w||d.v;break;case"d":m+='"'+(d.w||d.v)+'"';break;case"s":m+='"'+d.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return m}function c(d,h){h.forEach(function(x,p){var m="F;W"+(p+1)+" "+(p+1)+" ";x.hidden?m+="0":(typeof x.width=="number"&&!x.wpx&&(x.wpx=Qh(x.width)),typeof x.wpx=="number"&&!x.wch&&(x.wch=ed(x.wpx)),typeof x.wch=="number"&&(m+=Math.round(x.wch))),m.charAt(m.length-1)!=" "&&d.push(m)})}function u(d,h){h.forEach(function(x,p){var m="F;";x.hidden?m+="M0;":x.hpt?m+="M"+20*x.hpt+";":x.hpx&&(m+="M"+20*td(x.hpx)+";"),m.length>2&&d.push(m+"R"+(p+1))})}function f(d,h){var x=["ID;PWXL;N;E"],p=[],m=Ir(d["!ref"]),y,b=Array.isArray(d),w=`\r
276
- `;x.push("P;PGeneral"),x.push("F;P0;DG0G8;M255"),d["!cols"]&&c(x,d["!cols"]),d["!rows"]&&u(x,d["!rows"]),x.push("B;Y"+(m.e.r-m.s.r+1)+";X"+(m.e.c-m.s.c+1)+";D"+[m.s.c,m.s.r,m.e.c,m.e.r].join(" "));for(var S=m.s.r;S<=m.e.r;++S)for(var A=m.s.c;A<=m.e.c;++A){var O=gr({r:S,c:A});y=b?(d[S]||[])[A]:d[O],!(!y||y.v==null&&(!y.f||y.F))&&p.push(l(y,d,S,A))}return x.join(w)+w+p.join(w)+w+"E"+w}return{to_workbook:s,to_sheet:o,from_sheet:f}})(),VI=(function(){function e(i,o){switch(o.type){case"base64":return t(wo(i),o);case"binary":return t(i,o);case"buffer":return t(tr&&Buffer.isBuffer(i)?i.toString("binary"):n0(i),o);case"array":return t(dp(i),o)}throw new Error("Unrecognized type "+o.type)}function t(i,o){for(var s=i.split(`
277
- `),l=-1,c=-1,u=0,f=[];u!==s.length;++u){if(s[u].trim()==="BOT"){f[++l]=[],c=0;continue}if(!(l<0)){var d=s[u].trim().split(","),h=d[0],x=d[1];++u;for(var p=s[u]||"";(p.match(/["]/g)||[]).length&1&&u<s.length-1;)p+=`
278
- `+s[++u];switch(p=p.trim(),+h){case-1:if(p==="BOT"){f[++l]=[],c=0;continue}else if(p!=="EOD")throw new Error("Unrecognized DIF special command "+p);break;case 0:p==="TRUE"?f[l][c]=!0:p==="FALSE"?f[l][c]=!1:isNaN(po(x))?isNaN(vf(x).getDate())?f[l][c]=x:f[l][c]=na(x):f[l][c]=po(x),++c;break;case 1:p=p.slice(1,p.length-1),p=p.replace(/""/g,'"'),p&&p.match(/^=".*"$/)&&(p=p.slice(2,-1)),f[l][c++]=p!==""?p:null;break}if(p==="EOD")break}}return o&&o.sheetRows&&(f=f.slice(0,o.sheetRows)),f}function r(i,o){return zc(e(i,o),o)}function n(i,o){return rl(r(i,o),o)}var a=(function(){var i=function(l,c,u,f,d){l.push(c),l.push(u+","+f),l.push('"'+d.replace(/"/g,'""')+'"')},o=function(l,c,u,f){l.push(c+","+u),l.push(c==1?'"'+f.replace(/"/g,'""')+'"':f)};return function(l){var c=[],u=Ir(l["!ref"]),f,d=Array.isArray(l);i(c,"TABLE",0,1,"sheetjs"),i(c,"VECTORS",0,u.e.r-u.s.r+1,""),i(c,"TUPLES",0,u.e.c-u.s.c+1,""),i(c,"DATA",0,0,"");for(var h=u.s.r;h<=u.e.r;++h){o(c,-1,0,"BOT");for(var x=u.s.c;x<=u.e.c;++x){var p=gr({r:h,c:x});if(f=d?(l[h]||[])[x]:l[p],!f){o(c,1,0,"");continue}switch(f.t){case"n":var m=f.w;!m&&f.v!=null&&(m=f.v),m==null?f.f&&!f.F?o(c,1,0,"="+f.f):o(c,1,0,""):o(c,0,m,"V");break;case"b":o(c,0,f.v?1:0,f.v?"TRUE":"FALSE");break;case"s":o(c,1,0,isNaN(f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=ls(f.z||Wr[14],pa(na(f.v)))),o(c,0,f.w,"V");break;default:o(c,1,0,"")}}}o(c,-1,0,"EOD");var y=`\r
279
- `,b=c.join(y);return b}})();return{to_workbook:n,to_sheet:r,from_sheet:a}})(),ZP=(function(){function e(f){return f.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
280
- `)}function t(f){return f.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(f,d){for(var h=f.split(`
281
- `),x=-1,p=-1,m=0,y=[];m!==h.length;++m){var b=h[m].trim().split(":");if(b[0]==="cell"){var w=wn(b[1]);if(y.length<=w.r)for(x=y.length;x<=w.r;++x)y[x]||(y[x]=[]);switch(x=w.r,p=w.c,b[2]){case"t":y[x][p]=e(b[3]);break;case"v":y[x][p]=+b[3];break;case"vtf":var S=b[b.length-1];case"vtc":switch(b[3]){case"nl":y[x][p]=!!+b[4];break;default:y[x][p]=+b[4];break}b[2]=="vtf"&&(y[x][p]=[y[x][p],S])}}}return d&&d.sheetRows&&(y=y.slice(0,d.sheetRows)),y}function n(f,d){return zc(r(f,d),d)}function a(f,d){return rl(n(f,d),d)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
282
- `),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
283
- `)+`
284
- `,s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
285
- `),l="--SocialCalcSpreadsheetControlSave--";function c(f){if(!f||!f["!ref"])return"";for(var d=[],h=[],x,p="",m=La(f["!ref"]),y=Array.isArray(f),b=m.s.r;b<=m.e.r;++b)for(var w=m.s.c;w<=m.e.c;++w)if(p=gr({r:b,c:w}),x=y?(f[b]||[])[w]:f[p],!(!x||x.v==null||x.t==="z")){switch(h=["cell",p,"t"],x.t){case"s":case"str":h.push(t(x.v));break;case"n":x.f?(h[2]="vtf",h[3]="n",h[4]=x.v,h[5]=t(x.f)):(h[2]="v",h[3]=x.v);break;case"b":h[2]="vt"+(x.f?"f":"c"),h[3]="nl",h[4]=x.v?"1":"0",h[5]=t(x.f||(x.v?"TRUE":"FALSE"));break;case"d":var S=pa(na(x.v));h[2]="vtc",h[3]="nd",h[4]=""+S,h[5]=x.w||ls(x.z||Wr[14],S);break;case"e":continue}d.push(h.join(":"))}return d.push("sheet:c:"+(m.e.c-m.s.c+1)+":r:"+(m.e.r-m.s.r+1)+":tvf:1"),d.push("valueformat:1:text-wiki"),d.join(`
286
- `)}function u(f){return[i,o,s,o,c(f),l].join(`
287
- `)}return{to_workbook:a,to_sheet:n,from_sheet:u}})(),YI=(function(){function e(u,f,d,h,x){x.raw?f[d][h]=u:u===""||(u==="TRUE"?f[d][h]=!0:u==="FALSE"?f[d][h]=!1:isNaN(po(u))?isNaN(vf(u).getDate())?f[d][h]=u:f[d][h]=na(u):f[d][h]=po(u))}function t(u,f){var d=f||{},h=[];if(!u||u.length===0)return h;for(var x=u.split(/[\r\n]/),p=x.length-1;p>=0&&x[p].length===0;)--p;for(var m=10,y=0,b=0;b<=p;++b)y=x[b].indexOf(" "),y==-1?y=x[b].length:y++,m=Math.max(m,y);for(b=0;b<=p;++b){h[b]=[];var w=0;for(e(x[b].slice(0,m).trim(),h,b,w,d),w=1;w<=(x[b].length-m)/10+1;++w)e(x[b].slice(m+(w-1)*10,m+w*10).trim(),h,b,w,d)}return d.sheetRows&&(h=h.slice(0,d.sheetRows)),h}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(u){for(var f={},d=!1,h=0,x=0;h<u.length;++h)(x=u.charCodeAt(h))==34?d=!d:!d&&x in r&&(f[x]=(f[x]||0)+1);x=[];for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&x.push([f[h],h]);if(!x.length){f=n;for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&x.push([f[h],h])}return x.sort(function(p,m){return p[0]-m[0]||n[p[1]]-n[m[1]]}),r[x.pop()[1]]||44}function i(u,f){var d=f||{},h="",x=d.dense?[]:{},p={s:{c:0,r:0},e:{c:0,r:0}};u.slice(0,4)=="sep="?u.charCodeAt(5)==13&&u.charCodeAt(6)==10?(h=u.charAt(4),u=u.slice(7)):u.charCodeAt(5)==13||u.charCodeAt(5)==10?(h=u.charAt(4),u=u.slice(6)):h=a(u.slice(0,1024)):d&&d.FS?h=d.FS:h=a(u.slice(0,1024));var m=0,y=0,b=0,w=0,S=0,A=h.charCodeAt(0),O=!1,N=0,C=u.charCodeAt(0);u=u.replace(/\r\n/mg,`
288
- `);var L=d.dateNF!=null?u7(d.dateNF):null;function R(){var j=u.slice(w,S),E={};if(j.charAt(0)=='"'&&j.charAt(j.length-1)=='"'&&(j=j.slice(1,-1).replace(/""/g,'"')),j.length===0)E.t="z";else if(d.raw)E.t="s",E.v=j;else if(j.trim().length===0)E.t="s",E.v=j;else if(j.charCodeAt(0)==61)j.charCodeAt(1)==34&&j.charCodeAt(j.length-1)==34?(E.t="s",E.v=j.slice(2,-1).replace(/""/g,'"')):GF(j)?(E.t="n",E.f=j.slice(1)):(E.t="s",E.v=j);else if(j=="TRUE")E.t="b",E.v=!0;else if(j=="FALSE")E.t="b",E.v=!1;else if(!isNaN(b=po(j)))E.t="n",d.cellText!==!1&&(E.w=j),E.v=b;else if(!isNaN(vf(j).getDate())||L&&j.match(L)){E.z=d.dateNF||Wr[14];var D=0;L&&j.match(L)&&(j=f7(j,d.dateNF,j.match(L)||[]),D=1),d.cellDates?(E.t="d",E.v=na(j,D)):(E.t="n",E.v=pa(na(j,D))),d.cellText!==!1&&(E.w=ls(E.z,E.v instanceof Date?pa(E.v):E.v)),d.cellNF||delete E.z}else E.t="s",E.v=j;if(E.t=="z"||(d.dense?(x[m]||(x[m]=[]),x[m][y]=E):x[gr({c:y,r:m})]=E),w=S+1,C=u.charCodeAt(w),p.e.c<y&&(p.e.c=y),p.e.r<m&&(p.e.r=m),N==A)++y;else if(y=0,++m,d.sheetRows&&d.sheetRows<=m)return!0}e:for(;S<u.length;++S)switch(N=u.charCodeAt(S)){case 34:C===34&&(O=!O);break;case A:case 10:case 13:if(!O&&R())break e;break}return S-w>0&&R(),x["!ref"]=an(p),x}function o(u,f){return!(f&&f.PRN)||f.FS||u.slice(0,4)=="sep="||u.indexOf(" ")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?i(u,f):zc(t(u,f),f)}function s(u,f){var d="",h=f.type=="string"?[0,0,0,0]:oB(u,f);switch(f.type){case"base64":d=wo(u);break;case"binary":d=u;break;case"buffer":f.codepage==65001?d=u.toString("utf8"):f.codepage&&typeof Wh<"u"||(d=tr&&Buffer.isBuffer(u)?u.toString("binary"):n0(u));break;case"array":d=dp(u);break;case"string":d=u;break;default:throw new Error("Unrecognized type "+f.type)}return h[0]==239&&h[1]==187&&h[2]==191?d=Qu(d.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?d=Qu(d):f.type=="binary"&&typeof Wh<"u",d.slice(0,19)=="socialcalc:version:"?ZP.to_sheet(f.type=="string"?d:Qu(d),f):o(d,f)}function l(u,f){return rl(s(u,f),f)}function c(u){for(var f=[],d=Ir(u["!ref"]),h,x=Array.isArray(u),p=d.s.r;p<=d.e.r;++p){for(var m=[],y=d.s.c;y<=d.e.c;++y){var b=gr({r:p,c:y});if(h=x?(u[p]||[])[y]:u[b],!h||h.v==null){m.push(" ");continue}for(var w=(h.w||(_o(h),h.w)||"").slice(0,10);w.length<10;)w+=" ";m.push(w+(y===0?" ":""))}f.push(m.join(""))}return f.join(`
289
- `)}return{to_workbook:l,to_sheet:s,from_sheet:c}})(),t_=(function(){function e(P,I,M){if(P){Pa(P,P.l||0);for(var q=M.Enum||ee;P.l<P.length;){var Y=P.read_shift(2),fe=q[Y]||q[65535],ne=P.read_shift(2),K=P.l+ne,he=fe.f&&fe.f(P,ne,M);if(P.l=K,I(he,fe,Y))return}}}function t(P,I){switch(I.type){case"base64":return r(vi(wo(P)),I);case"binary":return r(vi(P),I);case"buffer":case"array":return r(P,I)}throw"Unsupported type "+I.type}function r(P,I){if(!P)return P;var M=I||{},q=M.dense?[]:{},Y="Sheet1",fe="",ne=0,K={},he=[],be=[],se={s:{r:0,c:0},e:{r:0,c:0}},Le=M.sheetRows||0;if(P[2]==0&&(P[3]==8||P[3]==9)&&P.length>=16&&P[14]==5&&P[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(P[2]==2)M.Enum=ee,e(P,function(De,Qe,Ue){switch(Ue){case 0:M.vers=De,De>=4096&&(M.qpro=!0);break;case 6:se=De;break;case 204:De&&(fe=De);break;case 222:fe=De;break;case 15:case 51:M.qpro||(De[1].v=De[1].v.slice(1));case 13:case 14:case 16:Ue==14&&(De[2]&112)==112&&(De[2]&15)>1&&(De[2]&15)<15&&(De[1].z=M.dateNF||Wr[14],M.cellDates&&(De[1].t="d",De[1].v=mP(De[1].v))),M.qpro&&De[3]>ne&&(q["!ref"]=an(se),K[Y]=q,he.push(Y),q=M.dense?[]:{},se={s:{r:0,c:0},e:{r:0,c:0}},ne=De[3],Y=fe||"Sheet"+(ne+1),fe="");var Ke=M.dense?(q[De[0].r]||[])[De[0].c]:q[gr(De[0])];if(Ke){Ke.t=De[1].t,Ke.v=De[1].v,De[1].z!=null&&(Ke.z=De[1].z),De[1].f!=null&&(Ke.f=De[1].f);break}M.dense?(q[De[0].r]||(q[De[0].r]=[]),q[De[0].r][De[0].c]=De[1]):q[gr(De[0])]=De[1];break}},M);else if(P[2]==26||P[2]==14)M.Enum=ce,P[2]==14&&(M.qpro=!0,P.l=0),e(P,function(De,Qe,Ue){switch(Ue){case 204:Y=De;break;case 22:De[1].v=De[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(De[3]>ne&&(q["!ref"]=an(se),K[Y]=q,he.push(Y),q=M.dense?[]:{},se={s:{r:0,c:0},e:{r:0,c:0}},ne=De[3],Y="Sheet"+(ne+1)),Le>0&&De[0].r>=Le)break;M.dense?(q[De[0].r]||(q[De[0].r]=[]),q[De[0].r][De[0].c]=De[1]):q[gr(De[0])]=De[1],se.e.c<De[0].c&&(se.e.c=De[0].c),se.e.r<De[0].r&&(se.e.r=De[0].r);break;case 27:De[14e3]&&(be[De[14e3][0]]=De[14e3][1]);break;case 1537:be[De[0]]=De[1],De[0]==ne&&(Y=De[1]);break}},M);else throw new Error("Unrecognized LOTUS BOF "+P[2]);if(q["!ref"]=an(se),K[fe||Y]=q,he.push(fe||Y),!be.length)return{SheetNames:he,Sheets:K};for(var Se={},Ae=[],le=0;le<be.length;++le)K[he[le]]?(Ae.push(be[le]||he[le]),Se[be[le]]=K[be[le]]||K[he[le]]):(Ae.push(be[le]),Se[be[le]]={"!ref":"A1"});return{SheetNames:Ae,Sheets:Se}}function n(P,I){var M=I||{};if(+M.codepage>=0&&pf(+M.codepage),M.type=="string")throw new Error("Cannot write WK1 to JS string");var q=da(),Y=Ir(P["!ref"]),fe=Array.isArray(P),ne=[];rt(q,0,i(1030)),rt(q,6,l(Y));for(var K=Math.min(Y.e.r,8191),he=Y.s.r;he<=K;++he)for(var be=Ln(he),se=Y.s.c;se<=Y.e.c;++se){he===Y.s.r&&(ne[se]=Hn(se));var Le=ne[se]+be,Se=fe?(P[he]||[])[se]:P[Le];if(!(!Se||Se.t=="z"))if(Se.t=="n")(Se.v|0)==Se.v&&Se.v>=-32768&&Se.v<=32767?rt(q,13,h(he,se,Se.v)):rt(q,14,p(he,se,Se.v));else{var Ae=_o(Se);rt(q,15,f(he,se,Ae.slice(0,239)))}}return rt(q,1),q.end()}function a(P,I){var M=I||{};if(+M.codepage>=0&&pf(+M.codepage),M.type=="string")throw new Error("Cannot write WK3 to JS string");var q=da();rt(q,0,o(P));for(var Y=0,fe=0;Y<P.SheetNames.length;++Y)(P.Sheets[P.SheetNames[Y]]||{})["!ref"]&&rt(q,27,Z(P.SheetNames[Y],fe++));var ne=0;for(Y=0;Y<P.SheetNames.length;++Y){var K=P.Sheets[P.SheetNames[Y]];if(!(!K||!K["!ref"])){for(var he=Ir(K["!ref"]),be=Array.isArray(K),se=[],Le=Math.min(he.e.r,8191),Se=he.s.r;Se<=Le;++Se)for(var Ae=Ln(Se),le=he.s.c;le<=he.e.c;++le){Se===he.s.r&&(se[le]=Hn(le));var De=se[le]+Ae,Qe=be?(K[Se]||[])[le]:K[De];if(!(!Qe||Qe.t=="z"))if(Qe.t=="n")rt(q,23,R(Se,le,ne,Qe.v));else{var Ue=_o(Qe);rt(q,22,N(Se,le,ne,Ue.slice(0,239)))}}++ne}}return rt(q,1),q.end()}function i(P){var I=Be(2);return I.write_shift(2,P),I}function o(P){var I=Be(26);I.write_shift(2,4096),I.write_shift(2,4),I.write_shift(4,0);for(var M=0,q=0,Y=0,fe=0;fe<P.SheetNames.length;++fe){var ne=P.SheetNames[fe],K=P.Sheets[ne];if(!(!K||!K["!ref"])){++Y;var he=La(K["!ref"]);M<he.e.r&&(M=he.e.r),q<he.e.c&&(q=he.e.c)}}return M>8191&&(M=8191),I.write_shift(2,M),I.write_shift(1,Y),I.write_shift(1,q),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(1,1),I.write_shift(1,2),I.write_shift(4,0),I.write_shift(4,0),I}function s(P,I,M){var q={s:{c:0,r:0},e:{c:0,r:0}};return I==8&&M.qpro?(q.s.c=P.read_shift(1),P.l++,q.s.r=P.read_shift(2),q.e.c=P.read_shift(1),P.l++,q.e.r=P.read_shift(2),q):(q.s.c=P.read_shift(2),q.s.r=P.read_shift(2),I==12&&M.qpro&&(P.l+=2),q.e.c=P.read_shift(2),q.e.r=P.read_shift(2),I==12&&M.qpro&&(P.l+=2),q.s.c==65535&&(q.s.c=q.e.c=q.s.r=q.e.r=0),q)}function l(P){var I=Be(8);return I.write_shift(2,P.s.c),I.write_shift(2,P.s.r),I.write_shift(2,P.e.c),I.write_shift(2,P.e.r),I}function c(P,I,M){var q=[{c:0,r:0},{t:"n",v:0},0,0];return M.qpro&&M.vers!=20768?(q[0].c=P.read_shift(1),q[3]=P.read_shift(1),q[0].r=P.read_shift(2),P.l+=2):(q[2]=P.read_shift(1),q[0].c=P.read_shift(2),q[0].r=P.read_shift(2)),q}function u(P,I,M){var q=P.l+I,Y=c(P,I,M);if(Y[1].t="s",M.vers==20768){P.l++;var fe=P.read_shift(1);return Y[1].v=P.read_shift(fe,"utf8"),Y}return M.qpro&&P.l++,Y[1].v=P.read_shift(q-P.l,"cstr"),Y}function f(P,I,M){var q=Be(7+M.length);q.write_shift(1,255),q.write_shift(2,I),q.write_shift(2,P),q.write_shift(1,39);for(var Y=0;Y<q.length;++Y){var fe=M.charCodeAt(Y);q.write_shift(1,fe>=128?95:fe)}return q.write_shift(1,0),q}function d(P,I,M){var q=c(P,I,M);return q[1].v=P.read_shift(2,"i"),q}function h(P,I,M){var q=Be(7);return q.write_shift(1,255),q.write_shift(2,I),q.write_shift(2,P),q.write_shift(2,M,"i"),q}function x(P,I,M){var q=c(P,I,M);return q[1].v=P.read_shift(8,"f"),q}function p(P,I,M){var q=Be(13);return q.write_shift(1,255),q.write_shift(2,I),q.write_shift(2,P),q.write_shift(8,M,"f"),q}function m(P,I,M){var q=P.l+I,Y=c(P,I,M);if(Y[1].v=P.read_shift(8,"f"),M.qpro)P.l=q;else{var fe=P.read_shift(2);S(P.slice(P.l,P.l+fe),Y),P.l+=fe}return Y}function y(P,I,M){var q=I&32768;return I&=-32769,I=(q?P:0)+(I>=8192?I-16384:I),(q?"":"$")+(M?Hn(I):Ln(I))}var b={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]},w=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function S(P,I){Pa(P,0);for(var M=[],q=0,Y="",fe="",ne="",K="";P.l<P.length;){var he=P[P.l++];switch(he){case 0:M.push(P.read_shift(8,"f"));break;case 1:fe=y(I[0].c,P.read_shift(2),!0),Y=y(I[0].r,P.read_shift(2),!1),M.push(fe+Y);break;case 2:{var be=y(I[0].c,P.read_shift(2),!0),se=y(I[0].r,P.read_shift(2),!1);fe=y(I[0].c,P.read_shift(2),!0),Y=y(I[0].r,P.read_shift(2),!1),M.push(be+se+":"+fe+Y)}break;case 3:if(P.l<P.length){console.error("WK1 premature formula end");return}break;case 4:M.push("("+M.pop()+")");break;case 5:M.push(P.read_shift(2));break;case 6:{for(var Le="";he=P[P.l++];)Le+=String.fromCharCode(he);M.push('"'+Le.replace(/"/g,'""')+'"')}break;case 8:M.push("-"+M.pop());break;case 23:M.push("+"+M.pop());break;case 22:M.push("NOT("+M.pop()+")");break;case 20:case 21:K=M.pop(),ne=M.pop(),M.push(["AND","OR"][he-20]+"("+ne+","+K+")");break;default:if(he<32&&w[he])K=M.pop(),ne=M.pop(),M.push(ne+w[he]+K);else if(b[he]){if(q=b[he][1],q==69&&(q=P[P.l++]),q>M.length){console.error("WK1 bad formula parse 0x"+he.toString(16)+":|"+M.join("|")+"|");return}var Se=M.slice(-q);M.length-=q,M.push(b[he][0]+"("+Se.join(",")+")")}else return he<=7?console.error("WK1 invalid opcode "+he.toString(16)):he<=24?console.error("WK1 unsupported op "+he.toString(16)):he<=30?console.error("WK1 invalid opcode "+he.toString(16)):he<=115?console.error("WK1 unsupported function opcode "+he.toString(16)):console.error("WK1 unrecognized opcode "+he.toString(16))}}M.length==1?I[1].f=""+M[0]:console.error("WK1 bad formula parse |"+M.join("|")+"|")}function A(P){var I=[{c:0,r:0},{t:"n",v:0},0];return I[0].r=P.read_shift(2),I[3]=P[P.l++],I[0].c=P[P.l++],I}function O(P,I){var M=A(P);return M[1].t="s",M[1].v=P.read_shift(I-4,"cstr"),M}function N(P,I,M,q){var Y=Be(6+q.length);Y.write_shift(2,P),Y.write_shift(1,M),Y.write_shift(1,I),Y.write_shift(1,39);for(var fe=0;fe<q.length;++fe){var ne=q.charCodeAt(fe);Y.write_shift(1,ne>=128?95:ne)}return Y.write_shift(1,0),Y}function C(P,I){var M=A(P);M[1].v=P.read_shift(2);var q=M[1].v>>1;if(M[1].v&1)switch(q&7){case 0:q=(q>>3)*5e3;break;case 1:q=(q>>3)*500;break;case 2:q=(q>>3)/20;break;case 3:q=(q>>3)/200;break;case 4:q=(q>>3)/2e3;break;case 5:q=(q>>3)/2e4;break;case 6:q=(q>>3)/16;break;case 7:q=(q>>3)/64;break}return M[1].v=q,M}function L(P,I){var M=A(P),q=P.read_shift(4),Y=P.read_shift(4),fe=P.read_shift(2);if(fe==65535)return q===0&&Y===3221225472?(M[1].t="e",M[1].v=15):q===0&&Y===3489660928?(M[1].t="e",M[1].v=42):M[1].v=0,M;var ne=fe&32768;return fe=(fe&32767)-16446,M[1].v=(1-ne*2)*(Y*Math.pow(2,fe+32)+q*Math.pow(2,fe)),M}function R(P,I,M,q){var Y=Be(14);if(Y.write_shift(2,P),Y.write_shift(1,M),Y.write_shift(1,I),q==0)return Y.write_shift(4,0),Y.write_shift(4,0),Y.write_shift(2,65535),Y;var fe=0,ne=0,K=0,he=0;return q<0&&(fe=1,q=-q),ne=Math.log2(q)|0,q/=Math.pow(2,ne-31),he=q>>>0,(he&2147483648)==0&&(q/=2,++ne,he=q>>>0),q-=he,he|=2147483648,he>>>=0,q*=Math.pow(2,32),K=q>>>0,Y.write_shift(4,K),Y.write_shift(4,he),ne+=16383+(fe?32768:0),Y.write_shift(2,ne),Y}function j(P,I){var M=L(P);return P.l+=I-14,M}function E(P,I){var M=A(P),q=P.read_shift(4);return M[1].v=q>>6,M}function D(P,I){var M=A(P),q=P.read_shift(8,"f");return M[1].v=q,M}function U(P,I){var M=D(P);return P.l+=I-10,M}function H(P,I){return P[P.l+I-1]==0?P.read_shift(I,"cstr"):""}function B(P,I){var M=P[P.l++];M>I-1&&(M=I-1);for(var q="";q.length<M;)q+=String.fromCharCode(P[P.l++]);return q}function z(P,I,M){if(!(!M.qpro||I<21)){var q=P.read_shift(1);P.l+=17,P.l+=1,P.l+=2;var Y=P.read_shift(I-21,"cstr");return[q,Y]}}function te(P,I){for(var M={},q=P.l+I;P.l<q;){var Y=P.read_shift(2);if(Y==14e3){for(M[Y]=[0,""],M[Y][0]=P.read_shift(2);P[P.l];)M[Y][1]+=String.fromCharCode(P[P.l]),P.l++;P.l++}}return M}function Z(P,I){var M=Be(5+P.length);M.write_shift(2,14e3),M.write_shift(2,I);for(var q=0;q<P.length;++q){var Y=P.charCodeAt(q);M[M.l++]=Y>127?95:Y}return M[M.l++]=0,M}var ee={0:{n:"BOF",f:VP},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:d},14:{n:"NUMBER",f:x},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:m},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:u},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:H},222:{n:"SHEETNAMELP",f:B},65535:{n:""}},ce={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:O},23:{n:"NUMBER17",f:L},24:{n:"NUMBER18",f:C},25:{n:"FORMULA19",f:j},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:te},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:E},38:{n:"??"},39:{n:"NUMBER27",f:D},40:{n:"FORMULA28",f:U},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:H},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:z},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:a,to_workbook:t}})(),KI=/^\s|\s$|[\t\n\r]/;function QP(e,t){if(!t.bookSST)return"";var r=[sn];r[r.length]=tt("sst",null,{xmlns:Uc[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var a=e[n],i="<si>";a.r?i+=a.r:(i+="<t",a.t||(a.t=""),a.t.match(KI)&&(i+=' xml:space="preserve"'),i+=">"+vr(a.t)+"</t>"),i+="</si>",r[r.length]=i}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function XI(e){return[e.read_shift(4),e.read_shift(4)]}function JI(e,t){return t||(t=Be(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var ZI=U7;function QI(e){var t=da();He(t,159,JI(e));for(var r=0;r<e.length;++r)He(t,19,ZI(e[r]));return He(t,160),t.end()}function eF(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function eO(e){var t=0,r,n=eF(e),a=n.length+1,i,o,s,l,c;for(r=Ks(a),r[0]=n.length,i=1;i!=a;++i)r[i]=n[i-1];for(i=a-1;i>=0;--i)o=r[i],s=(t&16384)===0?0:1,l=t<<1&32767,c=s|l,t=c^o;return t^52811}var tF=(function(){function e(a,i){switch(i.type){case"base64":return t(wo(a),i);case"binary":return t(a,i);case"buffer":return t(tr&&Buffer.isBuffer(a)?a.toString("binary"):n0(a),i);case"array":return t(dp(a),i)}throw new Error("Unrecognized type "+i.type)}function t(a,i){var o=i||{},s=o.dense?[]:{},l=a.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var c={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(u,f){Array.isArray(s)&&(s[f]=[]);for(var d=/\\\w+\b/g,h=0,x,p=-1;x=d.exec(u);){switch(x[0]){case"\\cell":var m=u.slice(h,d.lastIndex-x[0].length);if(m[0]==" "&&(m=m.slice(1)),++p,m.length){var y={v:m,t:"s"};Array.isArray(s)?s[f][p]=y:s[gr({r:f,c:p})]=y}break}h=d.lastIndex}p>c.e.c&&(c.e.c=p)}),s["!ref"]=an(c),s}function r(a,i){return rl(e(a,i),i)}function n(a){for(var i=["{\\rtf1\\ansi"],o=Ir(a["!ref"]),s,l=Array.isArray(a),c=o.s.r;c<=o.e.r;++c){i.push("\\trowd\\trautofit1");for(var u=o.s.c;u<=o.e.c;++u)i.push("\\cellx"+(u+1));for(i.push("\\pard\\intbl"),u=o.s.c;u<=o.e.c;++u){var f=gr({r:c,c:u});s=l?(a[c]||[])[u]:a[f],!(!s||s.v==null&&(!s.f||s.F))&&(i.push(" "+(s.w||(_o(s),s.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}})();function r_(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}var rF=6,mo=rF;function Qh(e){return Math.floor((e+Math.round(128/mo)/256)*mo)}function ed(e){return Math.floor((e-5)/mo*100+.5)/100}function wy(e){return Math.round((e*mo+5)/mo*256)/256}function pb(e){e.width?(e.wpx=Qh(e.width),e.wch=ed(e.wpx),e.MDW=mo):e.wpx?(e.wch=ed(e.wpx),e.width=wy(e.wch),e.MDW=mo):typeof e.wch=="number"&&(e.width=wy(e.wch),e.wpx=Qh(e.width),e.MDW=mo),e.customWidth&&delete e.customWidth}var nF=96,tO=nF;function td(e){return e*96/tO}function rO(e){return e*tO/96}function aF(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=tt("numFmt",null,{numFmtId:n,formatCode:vr(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=tt("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function iF(e){var t=[];return t[t.length]=tt("cellXfs",null),e.forEach(function(r){t[t.length]=tt("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=tt("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function nO(e,t){var r=[sn,tt("styleSheet",null,{xmlns:Uc[0],"xmlns:vt":bn.vt})],n;return e.SSF&&(n=aF(e.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=iF(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function oF(e,t){var r=e.read_shift(2),n=Gn(e);return[r,n]}function sF(e,t,r){r||(r=Be(6+4*t.length)),r.write_shift(2,e),_n(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function lF(e,t,r){var n={};n.sz=e.read_shift(2)/20;var a=K7(e);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var i=e.read_shift(2);switch(i===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var o=e.read_shift(1);o!=0&&(n.underline=o);var s=e.read_shift(1);s>0&&(n.family=s);var l=e.read_shift(1);switch(l>0&&(n.charset=l),e.l++,n.color=Y7(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Gn(e),n}function cF(e,t){t||(t=Be(153)),t.write_shift(2,e.sz*20),X7(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Jh(e.color,t);var n=0;return n=2,t.write_shift(1,n),_n(e.name,t),t.length>t.l?t.slice(0,t.l):t}var uF=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],G1,fF=$i;function n_(e,t){t||(t=Be(84)),G1||(G1=rb(uF));var r=G1[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Jh({auto:1},t),Jh({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function hF(e,t){var r=e.l+t,n=e.read_shift(2),a=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:a}}function aO(e,t,r){r||(r=Be(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Lu(e,t){return t||(t=Be(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var dF=$i;function pF(e,t){return t||(t=Be(51)),t.write_shift(1,0),Lu(null,t),Lu(null,t),Lu(null,t),Lu(null,t),Lu(null,t),t.length>t.l?t.slice(0,t.l):t}function mF(e,t){return t||(t=Be(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),Xh(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function vF(e,t,r){var n=Be(2052);return n.write_shift(4,e),Xh(t,n),Xh(r,n),n.length>n.l?n.slice(0,n.l):n}function gF(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&++r}),r!=0&&(He(e,615,wi(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&He(e,44,sF(a,t[a]))}),He(e,616))}}function xF(e){var t=1;He(e,611,wi(t)),He(e,43,cF({sz:12,color:{theme:1},name:"Calibri",family:2})),He(e,612)}function yF(e){var t=2;He(e,603,wi(t)),He(e,45,n_({patternType:"none"})),He(e,45,n_({patternType:"gray125"})),He(e,604)}function bF(e){var t=1;He(e,613,wi(t)),He(e,46,pF()),He(e,614)}function wF(e){var t=1;He(e,626,wi(t)),He(e,47,aO({numFmtId:0},65535)),He(e,627)}function _F(e,t){He(e,617,wi(t.length)),t.forEach(function(r){He(e,47,aO(r,0))}),He(e,618)}function SF(e){var t=1;He(e,619,wi(t)),He(e,48,mF({xfId:0,name:"Normal"})),He(e,620)}function AF(e){var t=0;He(e,505,wi(t)),He(e,506)}function NF(e){var t=0;He(e,508,vF(t,"TableStyleMedium9","PivotStyleMedium4")),He(e,509)}function TF(e,t){var r=da();return He(r,278),gF(r,e.SSF),xF(r),yF(r),bF(r),wF(r),_F(r,t.cellXfs),SF(r),AF(r),NF(r),He(r,279),r.end()}function iO(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[sn];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function EF(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Gn(e)}}function PF(e){var t=Be(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),_n(e.name,t),t.slice(0,t.l)}function OF(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function jF(e){var t=Be(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}function CF(e,t){var r=Be(8+2*t.length);return r.write_shift(4,e),_n(t,r),r.slice(0,r.l)}function kF(e){return e.l+=4,e.read_shift(4)!=0}function LF(e,t){var r=Be(8);return r.write_shift(4,e),r.write_shift(4,1),r}function IF(){var e=da();return He(e,332),He(e,334,wi(1)),He(e,335,PF({name:"XLDAPR",version:12e4,flags:3496657072})),He(e,336),He(e,339,CF(1,"XLDAPR")),He(e,52),He(e,35,wi(514)),He(e,4096,wi(0)),He(e,4097,Va(1)),He(e,36),He(e,53),He(e,340),He(e,337,LF(1)),He(e,51,jF([[1,0]])),He(e,338),He(e,333),e.end()}function oO(){var e=[sn];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
290
- <metadataTypes count="1">
291
- <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
292
- </metadataTypes>
293
- <futureMetadata name="XLDAPR" count="1">
294
- <bk>
295
- <extLst>
296
- <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
297
- <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
298
- </ext>
299
- </extLst>
300
- </bk>
301
- </futureMetadata>
302
- <cellMetadata count="1">
303
- <bk>
304
- <rc t="1" v="0"/>
305
- </bk>
306
- </cellMetadata>
307
- </metadata>`),e.join("")}function FF(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=gr(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var Jl=1024;function sO(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[tt("xml",null,{"xmlns:v":Oa.v,"xmlns:o":Oa.o,"xmlns:x":Oa.x,"xmlns:mv":Oa.mv}).replace(/\/>/,">"),tt("o:shapelayout",tt("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),tt("v:shapetype",[tt("v:stroke",null,{joinstyle:"miter"}),tt("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Jl<e*1e3;)Jl+=1e3;return t.forEach(function(i){var o=wn(i[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var l=s.type=="gradient"?tt("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=tt("v:fill",l,s),u={on:"t",obscured:"t"};++Jl,a=a.concat(["<v:shape"+xf({id:"_x0000_s"+Jl,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(i[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",c,tt("v:shadow",null,u),tt("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",kn("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),kn("x:AutoFill","False"),kn("x:Row",String(o.r)),kn("x:Column",String(o.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function lO(e){var t=[sn,tt("comments",null,{xmlns:Uc[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(a){var i=vr(a.a);r.indexOf(i)==-1&&(r.push(i),t.push("<author>"+i+"</author>")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),t.push("<author>tc="+a.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var a=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(a=r.indexOf(vr(l.a))),i.push(l.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+a+'"><text>'),i.length<=1)t.push(kn("t",vr(i[0]||"")));else{for(var o=`Comment:
308
- `+i[0]+`
309
- `,s=1;s<i.length;++s)o+=`Reply:
310
- `+i[s]+`
311
- `;t.push(kn("t",vr(o)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function MF(e,t,r){var n=[sn,tt("ThreadedComments",null,{xmlns:bn.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var i="";(a[1]||[]).forEach(function(o,s){if(!o.T){delete o.ID;return}o.a&&t.indexOf(o.a)==-1&&t.push(o.a);var l={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?i=l.id:l.parentId=i,o.ID=l.id,o.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(o.a)).slice(-12)+"}"),n.push(tt("threadedComment",kn("text",o.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function DF(e){var t=[sn,tt("personList",null,{xmlns:bn.TCMNT,"xmlns:x":Uc[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(tt("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function RF(e){var t={};t.iauthor=e.read_shift(4);var r=ol(e);return t.rfx=r.s,t.ref=gr(r.s),e.l+=16,t}function BF(e,t){return t==null&&(t=Be(36)),t.write_shift(4,e[1].iauthor),Wc(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var $F=Gn;function qF(e){return _n(e.slice(0,54))}function UF(e){var t=da(),r=[];return He(t,628),He(t,630),e.forEach(function(n){n[1].forEach(function(a){r.indexOf(a.a)>-1||(r.push(a.a.slice(0,54)),He(t,632,qF(a.a)))})}),He(t,631),He(t,633),e.forEach(function(n){n[1].forEach(function(a){a.iauthor=r.indexOf(a.a);var i={s:wn(n[0]),e:wn(n[0])};He(t,635,BF([i,a])),a.t&&a.t.length>0&&He(t,637,W7(a)),He(t,636),delete a.iauthor})}),He(t,634),He(t,629),t.end()}function zF(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&br.utils.cfb_add(e,a,t.FileIndex[n].content)}})}var cO=["xlsb","xlsm","xlam","biff8","xla"],WF=(function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,a,i,o){var s=!1,l=!1;i.length==0?l=!0:i.charAt(0)=="["&&(l=!0,i=i.slice(1,-1)),o.length==0?s=!0:o.charAt(0)=="["&&(s=!0,o=o.slice(1,-1));var c=i.length>0?parseInt(i,10)|0:0,u=o.length>0?parseInt(o,10)|0:0;return s?u+=t.c:--u,l?c+=t.r:--c,a+(s?"":"$")+Hn(u)+(l?"":"$")+Ln(c)}return function(a,i){return t=i,a.replace(e,r)}})(),mb=/(^|[^._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,vb=(function(){return function(t,r){return t.replace(mb,function(n,a,i,o,s,l){var c=cb(o)-(i?0:r.c),u=lb(l)-(s?0:r.r),f=u==0?"":s?u+1:"["+u+"]",d=c==0?"":i?c+1:"["+c+"]";return a+"R"+f+"C"+d})}})();function HF(e,t){return e.replace(mb,function(r,n,a,i,o,s){return n+(a=="$"?a+i:Hn(cb(i)+t.c))+(o=="$"?o+s:Ln(lb(s)+t.r))})}function GF(e){return e.length!=1}function rn(e){e.l+=1}function cs(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function uO(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return fO(e);r.biff==12&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),o=cs(e),s=cs(e);return{s:{r:a,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function fO(e){var t=cs(e),r=cs(e),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function VF(e,t,r){if(r.biff<8)return fO(e);var n=e.read_shift(r.biff==12?4:2),a=e.read_shift(r.biff==12?4:2),i=cs(e),o=cs(e);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function hO(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return YF(e);var n=e.read_shift(r&&r.biff==12?4:2),a=cs(e);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function YF(e){var t=cs(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function KF(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function XF(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return JF(e);var a=e.read_shift(n>=12?4:2),i=e.read_shift(2),o=(i&16384)>>14,s=(i&32768)>>15;if(i&=16383,s==1)for(;a>524287;)a-=1048576;if(o==1)for(;i>8191;)i=i-16384;return{r:a,c:i,cRel:o,rRel:s}}function JF(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,a=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),a==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:a,rRel:n}}function ZF(e,t,r){var n=(e[e.l++]&96)>>5,a=uO(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,a]}function QF(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}var o=uO(e,i,r);return[n,a,o]}function eM(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function tM(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}return e.l+=i,[n,a]}function rM(e,t,r){var n=(e[e.l++]&96)>>5,a=VF(e,t-1,r);return[n,a]}function nM(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function a_(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function aM(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),a=[],i=0;i<=n;++i)a.push(e.read_shift(r&&r.biff==2?1:2));return a}function iM(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function oM(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function sM(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function lM(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function dO(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function cM(e){return e.read_shift(2),dO(e)}function uM(e){return e.read_shift(2),dO(e)}function fM(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=hO(e,0,r);return[n,a]}function hM(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=XF(e,0,r);return[n,a]}function dM(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var i=hO(e,0,r);return[n,a,i]}function pM(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(r&&r.biff<=3?1:2);return[pD[a],vO[a],n]}function mM(e,t,r){var n=e[e.l++],a=e.read_shift(1),i=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:vM(e);return[a,(i[0]===0?vO:dD)[i[1]]]}function vM(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function gM(e,t,r){e.l+=r&&r.biff==2?3:4}function xM(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function yM(e){return e.l++,o0[e.read_shift(1)]}function bM(e){return e.l++,e.read_shift(2)}function wM(e){return e.l++,e.read_shift(1)!==0}function _M(e){return e.l++,Hc(e)}function SM(e,t,r){return e.l++,KP(e,t-1,r)}function AM(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=dI(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=o0[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Hc(e);break;case 2:r[1]=gI(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function NM(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),a=[],i=0;i!=n;++i)a.push((r.biff==12?ol:bI)(e));return a}function TM(e,t,r){var n=0,a=0;r.biff==12?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--a==0&&(a=256));for(var i=0,o=[];i!=n&&(o[i]=[]);++i)for(var s=0;s!=a;++s)o[i][s]=AM(e,r.biff);return o}function EM(e,t,r){var n=e.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,i=e.read_shift(a);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,i]}function PM(e,t,r){if(r.biff==5)return OM(e);var n=e.read_shift(1)>>>5&3,a=e.read_shift(2),i=e.read_shift(4);return[n,a,i]}function OM(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function jM(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function CM(e,t,r){var n=e.read_shift(1)>>>5&3,a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function kM(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function LM(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return e.l+=i,[n,a]}var IM=$i,FM=$i,MM=$i;function s0(e,t,r){return e.l+=2,[KF(e)]}function gb(e){return e.l+=6,[]}var DM=s0,RM=gb,BM=gb,$M=s0;function pO(e){return e.l+=2,[VP(e),e.read_shift(2)&1]}var qM=s0,UM=pO,zM=gb,WM=s0,HM=s0,GM=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function VM(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),i=e.read_shift(2),o=GM[r>>2&31];return{ixti:t,coltype:r&3,rt:o,idx:n,c:a,C:i}}function YM(e){return e.l+=2,[e.read_shift(4)]}function KM(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function XM(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function JM(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function ZM(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function QM(e){return e.l+=4,[0,0]}var i_={1:{n:"PtgExp",f:xM},2:{n:"PtgTbl",f:MM},3:{n:"PtgAdd",f:rn},4:{n:"PtgSub",f:rn},5:{n:"PtgMul",f:rn},6:{n:"PtgDiv",f:rn},7:{n:"PtgPower",f:rn},8:{n:"PtgConcat",f:rn},9:{n:"PtgLt",f:rn},10:{n:"PtgLe",f:rn},11:{n:"PtgEq",f:rn},12:{n:"PtgGe",f:rn},13:{n:"PtgGt",f:rn},14:{n:"PtgNe",f:rn},15:{n:"PtgIsect",f:rn},16:{n:"PtgUnion",f:rn},17:{n:"PtgRange",f:rn},18:{n:"PtgUplus",f:rn},19:{n:"PtgUminus",f:rn},20:{n:"PtgPercent",f:rn},21:{n:"PtgParen",f:rn},22:{n:"PtgMissArg",f:rn},23:{n:"PtgStr",f:SM},26:{n:"PtgSheet",f:KM},27:{n:"PtgEndSheet",f:XM},28:{n:"PtgErr",f:yM},29:{n:"PtgBool",f:wM},30:{n:"PtgInt",f:bM},31:{n:"PtgNum",f:_M},32:{n:"PtgArray",f:nM},33:{n:"PtgFunc",f:pM},34:{n:"PtgFuncVar",f:mM},35:{n:"PtgName",f:EM},36:{n:"PtgRef",f:fM},37:{n:"PtgArea",f:ZF},38:{n:"PtgMemArea",f:jM},39:{n:"PtgMemErr",f:IM},40:{n:"PtgMemNoMem",f:FM},41:{n:"PtgMemFunc",f:CM},42:{n:"PtgRefErr",f:kM},43:{n:"PtgAreaErr",f:eM},44:{n:"PtgRefN",f:hM},45:{n:"PtgAreaN",f:rM},46:{n:"PtgMemAreaN",f:JM},47:{n:"PtgMemNoMemN",f:ZM},57:{n:"PtgNameX",f:PM},58:{n:"PtgRef3d",f:dM},59:{n:"PtgArea3d",f:QF},60:{n:"PtgRefErr3d",f:LM},61:{n:"PtgAreaErr3d",f:tM},255:{}},eD={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},tD={1:{n:"PtgElfLel",f:pO},2:{n:"PtgElfRw",f:WM},3:{n:"PtgElfCol",f:DM},6:{n:"PtgElfRwV",f:HM},7:{n:"PtgElfColV",f:$M},10:{n:"PtgElfRadical",f:qM},11:{n:"PtgElfRadicalS",f:zM},13:{n:"PtgElfColS",f:RM},15:{n:"PtgElfColSV",f:BM},16:{n:"PtgElfRadicalLel",f:UM},25:{n:"PtgList",f:VM},29:{n:"PtgSxName",f:YM},255:{}},rD={0:{n:"PtgAttrNoop",f:QM},1:{n:"PtgAttrSemi",f:lM},2:{n:"PtgAttrIf",f:oM},4:{n:"PtgAttrChoose",f:aM},8:{n:"PtgAttrGoto",f:iM},16:{n:"PtgAttrSum",f:gM},32:{n:"PtgAttrBaxcel",f:a_},33:{n:"PtgAttrBaxcel",f:a_},64:{n:"PtgAttrSpace",f:cM},65:{n:"PtgAttrSpaceSemi",f:uM},128:{n:"PtgAttrIfError",f:sM},255:{}};function nD(e,t,r,n){if(n.biff<8)return $i(e,t);for(var a=e.l+t,i=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=TM(e,0,n),i.push(r[o][1]);break;case"PtgMemArea":r[o][2]=NM(e,r[o][1],n),i.push(r[o][2]);break;case"PtgExp":n&&n.biff==12&&(r[o][1][1]=e.read_shift(4),i.push(r[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[o][0]}return t=a-e.l,t!==0&&i.push($i(e,t)),i}function aD(e,t,r){for(var n=e.l+t,a,i,o=[];n!=e.l;)t=n-e.l,i=e[e.l],a=i_[i]||i_[eD[i]],(i===24||i===25)&&(a=(i===24?tD:rD)[e[e.l+1]]),!a||!a.f?$i(e,t):o.push([a.n,a.f(e,t,r)]);return o}function iD(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],a=[],i=0;i<n.length;++i){var o=n[i];if(o)switch(o[0]){case 2:a.push('"'+o[1].replace(/"/g,'""')+'"');break;default:a.push(o[1])}else a.push("")}t.push(a.join(","))}return t.join(";")}var oD={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function sD(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function mO(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var a="";if(r.biff>8)switch(e[n[0]][0]){case 357:return a=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return e[n[0]][0][3]?(a=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function o_(e,t,r){var n=mO(e,t,r);return n=="#REF"?n:sD(n,r)}function uc(e,t,r,n,a){var i=a&&a.biff||8,o={s:{c:0,r:0}},s=[],l,c,u,f=0,d=0,h,x="";if(!e[0]||!e[0][0])return"";for(var p=-1,m="",y=0,b=e[0].length;y<b;++y){var w=e[0][y];switch(w[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=s.pop(),c=s.pop(),p>=0){switch(e[0][p][1][0]){case 0:m=Ur(" ",e[0][p][1][1]);break;case 1:m=Ur("\r",e[0][p][1][1]);break;default:if(m="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}c=c+m,p=-1}s.push(c+oD[w[0]]+l);break;case"PtgIsect":l=s.pop(),c=s.pop(),s.push(c+" "+l);break;case"PtgUnion":l=s.pop(),c=s.pop(),s.push(c+","+l);break;case"PtgRange":l=s.pop(),c=s.pop(),s.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=tf(w[1][1],o,a),s.push(rf(u,i));break;case"PtgRefN":u=r?tf(w[1][1],r,a):w[1][1],s.push(rf(u,i));break;case"PtgRef3d":f=w[1][1],u=tf(w[1][2],o,a),x=o_(n,f,a),s.push(x+"!"+rf(u,i));break;case"PtgFunc":case"PtgFuncVar":var S=w[1][0],A=w[1][1];S||(S=0),S&=127;var O=S==0?[]:s.slice(-S);s.length-=S,A==="User"&&(A=O.shift()),s.push(A+"("+O.join(",")+")");break;case"PtgBool":s.push(w[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(w[1]);break;case"PtgNum":s.push(String(w[1]));break;case"PtgStr":s.push('"'+w[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(w[1]);break;case"PtgAreaN":h=Ww(w[1][1],r?{s:r}:o,a),s.push(W1(h,a));break;case"PtgArea":h=Ww(w[1][1],o,a),s.push(W1(h,a));break;case"PtgArea3d":f=w[1][1],h=w[1][2],x=o_(n,f,a),s.push(x+"!"+W1(h,a));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=w[1][2];var N=(n.names||[])[d-1]||(n[0]||[])[d],C=N?N.Name:"SH33TJSNAME"+String(d);C&&C.slice(0,6)=="_xlfn."&&!a.xlfn&&(C=C.slice(6)),s.push(C);break;case"PtgNameX":var L=w[1][1];d=w[1][2];var R;if(a.biff<=5)L<0&&(L=-L),n[L]&&(R=n[L][d]);else{var j="";if(((n[L]||[])[0]||[])[0]==14849||(((n[L]||[])[0]||[])[0]==1025?n[L][d]&&n[L][d].itab>0&&(j=n.SheetNames[n[L][d].itab-1]+"!"):j=n.SheetNames[d-1]+"!"),n[L]&&n[L][d])j+=n[L][d].Name;else if(n[0]&&n[0][d])j+=n[0][d].Name;else{var E=(mO(n,L,a)||"").split(";;");E[d-1]?j=E[d-1]:j+="SH33TJSERRX"}s.push(j);break}R||(R={Name:"SH33TJSERRY"}),s.push(R.Name);break;case"PtgParen":var D="(",U=")";if(p>=0){switch(m="",e[0][p][1][0]){case 2:D=Ur(" ",e[0][p][1][1])+D;break;case 3:D=Ur("\r",e[0][p][1][1])+D;break;case 4:U=Ur(" ",e[0][p][1][1])+U;break;case 5:U=Ur("\r",e[0][p][1][1])+U;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}p=-1}s.push(D+s.pop()+U);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":u={c:w[1][1],r:w[1][0]};var H={c:r.c,r:r.r};if(n.sharedf[gr(u)]){var B=n.sharedf[gr(u)];s.push(uc(B,o,H,n,a))}else{var z=!1;for(l=0;l!=n.arrayf.length;++l)if(c=n.arrayf[l],!(u.c<c[0].s.c||u.c>c[0].e.c)&&!(u.r<c[0].s.r||u.r>c[0].e.r)){s.push(uc(c[1],o,H,n,a)),z=!0;break}z||s.push(w[1])}break;case"PtgArray":s.push("{"+iD(w[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":p=y;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+w[1].idx+"[#"+w[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(w));default:throw new Error("Unrecognized Formula Token: "+String(w))}var te=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&p>=0&&te.indexOf(e[0][y][0])==-1){w=e[0][p];var Z=!0;switch(w[1][0]){case 4:Z=!1;case 0:m=Ur(" ",w[1][1]);break;case 5:Z=!1;case 1:m=Ur("\r",w[1][1]);break;default:if(m="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+w[1][0])}s.push((Z?m:"")+s.pop()+(Z?"":m)),p=-1}}if(s.length>1&&a.WTF)throw new Error("bad formula stack");return s[0]}function lD(e){if(e==null){var t=Be(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return Xs(e);return Xs(0)}function cD(e,t,r,n,a){var i=Js(t,r,a),o=lD(e.v),s=Be(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var c=Be(e.bf.length),u=0;u<e.bf.length;++u)c[u]=e.bf[u];var f=Cn([i,o,s,c]);return f}function pp(e,t,r){var n=e.read_shift(4),a=aD(e,n,r),i=e.read_shift(4),o=i>0?nD(e,i,a,r):null;return[a,o]}var uD=pp,mp=pp,fD=pp,hD=pp,dD={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"},vO={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"},pD={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 mD(e){var t="of:="+e.replace(mb,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function vD(e){return e.replace(/\./,"!")}var nf=typeof Map<"u";function xb(e,t,r){var n=0,a=e.length;if(r){if(nf?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var i=nf?r.get(t):r[t];n<i.length;++n)if(e[i[n]].t===t)return e.Count++,i[n]}}else for(;n<a;++n)if(e[n].t===t)return e.Count++,n;return e[a]={t},e.Count++,e.Unique++,r&&(nf?(r.has(t)||r.set(t,[]),r.get(t).push(a)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(a))),a}function vp(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(mo=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=ed(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=wy(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function gO(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function fs(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],a=60,i=e.length;if(n==null&&r.ssf){for(;a<392;++a)if(r.ssf[a]==null){hP(t.z,a),r.ssf[a]=t.z,r.revssf[t.z]=n=a;break}}for(a=0;a!=i;++a)if(e[a].numFmtId===n)return a;return e[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function gD(e,t,r){if(e&&e["!ref"]){var n=Ir(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function xD(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+an(e[r])+'"/>';return t+"</mergeCells>"}function yD(e,t,r,n,a){var i=!1,o={},s=null;if(n.bookType!=="xlsx"&&t.vbaraw){var l=t.SheetNames[r];try{t.Workbook&&(l=t.Workbook.Sheets[r].CodeName||l)}catch{}i=!0,o.codeName=gf(vr(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),s=(s||"")+tt("outlinePr",null,c)}!i&&!s||(a[a.length]=tt("sheetPr",s,o))}var bD=["objects","scenarios","selectLockedCells","selectUnlockedCells"],wD=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function _D(e){var t={sheet:1};return bD.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),wD.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=eO(e.password).toString(16).toUpperCase()),tt("sheetProtection",null,t)}function SD(e){return gO(e),tt("pageMargins",null,e)}function AD(e,t){for(var r=["<cols>"],n,a=0;a!=t.length;++a)(n=t[a])&&(r[r.length]=tt("col",null,vp(a,n)));return r[r.length]="</cols>",r.join("")}function ND(e,t,r,n){var a=typeof e.ref=="string"?e.ref:an(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,o=La(a);o.s.r==o.e.r&&(o.e.r=La(t["!ref"]).e.r,a=an(o));for(var s=0;s<i.length;++s){var l=i[s];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+a;break}}return s==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),tt("autoFilter",null,{ref:a})}function TD(e,t,r,n){var a={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),tt("sheetViews",tt("sheetView",null,a),{})}function ED(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var a="",i=e.t,o=e.v;if(e.t!=="z")switch(e.t){case"b":a=e.v?"1":"0";break;case"n":a=""+e.v;break;case"e":a=o0[e.v];break;case"d":n&&n.cellDates?a=na(e.v,-1).toISOString():(e=ma(e),e.t="n",a=""+(e.v=pa(na(e.v)))),typeof e.z>"u"&&(e.z=Wr[14]);break;default:a=e.v;break}var s=kn("v",vr(a)),l={r:t},c=fs(n.cellXfs,e,n);switch(c!==0&&(l.s=c),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=kn("v",""+xb(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=i&&(e.t=i,e.v=o),typeof e.f=="string"&&e.f){var u=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=tt("f",vr(e.f),u)+(e.v!=null?s:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),tt("c",s,l)}function PD(e,t,r,n){var a=[],i=[],o=Ir(e["!ref"]),s="",l,c="",u=[],f=0,d=0,h=e["!rows"],x=Array.isArray(e),p={r:c},m,y=-1;for(d=o.s.c;d<=o.e.c;++d)u[d]=Hn(d);for(f=o.s.r;f<=o.e.r;++f){for(i=[],c=Ln(f),d=o.s.c;d<=o.e.c;++d){l=u[d]+c;var b=x?(e[f]||[])[d]:e[l];b!==void 0&&(s=ED(b,l,e,t))!=null&&i.push(s)}(i.length>0||h&&h[f])&&(p={r:c},h&&h[f]&&(m=h[f],m.hidden&&(p.hidden=1),y=-1,m.hpx?y=td(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(p.ht=y,p.customHeight=1),m.level&&(p.outlineLevel=m.level)),a[a.length]=tt("row",i.join(""),p))}if(h)for(;f<h.length;++f)h&&h[f]&&(p={r:f+1},m=h[f],m.hidden&&(p.hidden=1),y=-1,m.hpx?y=td(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(p.ht=y,p.customHeight=1),m.level&&(p.outlineLevel=m.level),a[a.length]=tt("row","",p));return a.join("")}function xO(e,t,r,n){var a=[sn,tt("worksheet",null,{xmlns:Uc[0],"xmlns:r":bn.r})],i=r.SheetNames[e],o=0,s="",l=r.Sheets[i];l==null&&(l={});var c=l["!ref"]||"A1",u=Ir(c);if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=an(u)}n||(n={}),l["!comments"]=[];var f=[];yD(l,r,e,t,a),a[a.length]=tt("dimension",null,{ref:c}),a[a.length]=TD(l,t,e,r),t.sheetFormat&&(a[a.length]=tt("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(a[a.length]=AD(l,l["!cols"])),a[o=a.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(s=PD(l,t),s.length>0&&(a[a.length]=s)),a.length>o+1&&(a[a.length]="</sheetData>",a[o]=a[o].replace("/>",">")),l["!protect"]&&(a[a.length]=_D(l["!protect"])),l["!autofilter"]!=null&&(a[a.length]=ND(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(a[a.length]=xD(l["!merges"]));var d=-1,h,x=-1;return l["!links"].length>0&&(a[a.length]="<hyperlinks>",l["!links"].forEach(function(p){p[1].Target&&(h={ref:p[0]},p[1].Target.charAt(0)!="#"&&(x=mr(n,-1,vr(p[1].Target).replace(/#.*$/,""),Zt.HLINK),h["r:id"]="rId"+x),(d=p[1].Target.indexOf("#"))>-1&&(h.location=vr(p[1].Target.slice(d+1))),p[1].Tooltip&&(h.tooltip=vr(p[1].Tooltip)),a[a.length]=tt("hyperlink",null,h))}),a[a.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(a[a.length]=SD(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(a[a.length]=kn("ignoredErrors",tt("ignoredError",null,{numberStoredAsText:1,sqref:c}))),f.length>0&&(x=mr(n,-1,"../drawings/drawing"+(e+1)+".xml",Zt.DRAW),a[a.length]=tt("drawing",null,{"r:id":"rId"+x}),l["!drawing"]=f),l["!comments"].length>0&&(x=mr(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Zt.VML),a[a.length]=tt("legacyDrawing",null,{"r:id":"rId"+x}),l["!legacy"]=x),a.length>1&&(a[a.length]="</worksheet>",a[1]=a[1].replace("/>",">")),a.join("")}function OD(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=n,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=a/20),r}function jD(e,t,r){var n=Be(145),a=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var i=320;a.hpx?i=td(a.hpx)*20:a.hpt&&(i=a.hpt*20),n.write_shift(2,i),n.write_shift(1,0);var o=0;a.level&&(o|=a.level),a.hidden&&(o|=16),(a.hpx||a.hpt)&&(o|=32),n.write_shift(1,o),n.write_shift(1,0);var s=0,l=n.l;n.l+=4;for(var c={r:e,c:0},u=0;u<16;++u)if(!(t.s.c>u+1<<10||t.e.c<u<<10)){for(var f=-1,d=-1,h=u<<10;h<u+1<<10;++h){c.c=h;var x=Array.isArray(r)?(r[c.r]||[])[c.c]:r[gr(c)];x&&(f<0&&(f=h),d=h)}f<0||(++s,n.write_shift(4,f),n.write_shift(4,d))}var p=n.l;return n.l=l,n.write_shift(4,s),n.l=p,n.length>n.l?n.slice(0,n.l):n}function CD(e,t,r,n){var a=jD(n,r,t);(a.length>17||(t["!rows"]||[])[n])&&He(e,0,a)}var kD=ol,LD=Wc;function ID(){}function FD(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=H7(e),r}function MD(e,t,r){r==null&&(r=Be(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var a=1;a<3;++a)r.write_shift(1,0);return Jh({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),LP(e,r),r.slice(0,r.l)}function DD(e){var t=Za(e);return[t]}function RD(e,t,r){return r==null&&(r=Be(8)),nl(t,r)}function BD(e){var t=al(e);return[t]}function $D(e,t,r){return r==null&&(r=Be(4)),il(t,r)}function qD(e){var t=Za(e),r=e.read_shift(1);return[t,r,"b"]}function UD(e,t,r){return r==null&&(r=Be(9)),nl(t,r),r.write_shift(1,e.v?1:0),r}function zD(e){var t=al(e),r=e.read_shift(1);return[t,r,"b"]}function WD(e,t,r){return r==null&&(r=Be(5)),il(t,r),r.write_shift(1,e.v?1:0),r}function HD(e){var t=Za(e),r=e.read_shift(1);return[t,r,"e"]}function GD(e,t,r){return r==null&&(r=Be(9)),nl(t,r),r.write_shift(1,e.v),r}function VD(e){var t=al(e),r=e.read_shift(1);return[t,r,"e"]}function YD(e,t,r){return r==null&&(r=Be(8)),il(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function KD(e){var t=Za(e),r=e.read_shift(4);return[t,r,"s"]}function XD(e,t,r){return r==null&&(r=Be(12)),nl(t,r),r.write_shift(4,t.v),r}function JD(e){var t=al(e),r=e.read_shift(4);return[t,r,"s"]}function ZD(e,t,r){return r==null&&(r=Be(8)),il(t,r),r.write_shift(4,t.v),r}function QD(e){var t=Za(e),r=Hc(e);return[t,r,"n"]}function eR(e,t,r){return r==null&&(r=Be(16)),nl(t,r),Xs(e.v,r),r}function tR(e){var t=al(e),r=Hc(e);return[t,r,"n"]}function rR(e,t,r){return r==null&&(r=Be(12)),il(t,r),Xs(e.v,r),r}function nR(e){var t=Za(e),r=IP(e);return[t,r,"n"]}function aR(e,t,r){return r==null&&(r=Be(12)),nl(t,r),FP(e.v,r),r}function iR(e){var t=al(e),r=IP(e);return[t,r,"n"]}function oR(e,t,r){return r==null&&(r=Be(8)),il(t,r),FP(e.v,r),r}function sR(e){var t=Za(e),r=ub(e);return[t,r,"is"]}function lR(e){var t=Za(e),r=Gn(e);return[t,r,"str"]}function cR(e,t,r){return r==null&&(r=Be(12+4*e.v.length)),nl(t,r),_n(e.v,r),r.length>r.l?r.slice(0,r.l):r}function uR(e){var t=al(e),r=Gn(e);return[t,r,"str"]}function fR(e,t,r){return r==null&&(r=Be(8+4*e.v.length)),il(t,r),_n(e.v,r),r.length>r.l?r.slice(0,r.l):r}function hR(e,t,r){var n=e.l+t,a=Za(e);a.r=r["!row"];var i=e.read_shift(1),o=[a,i,"b"];if(r.cellFormula){e.l+=2;var s=mp(e,n-e.l,r);o[3]=uc(s,null,a,r.supbooks,r)}else e.l=n;return o}function dR(e,t,r){var n=e.l+t,a=Za(e);a.r=r["!row"];var i=e.read_shift(1),o=[a,i,"e"];if(r.cellFormula){e.l+=2;var s=mp(e,n-e.l,r);o[3]=uc(s,null,a,r.supbooks,r)}else e.l=n;return o}function pR(e,t,r){var n=e.l+t,a=Za(e);a.r=r["!row"];var i=Hc(e),o=[a,i,"n"];if(r.cellFormula){e.l+=2;var s=mp(e,n-e.l,r);o[3]=uc(s,null,a,r.supbooks,r)}else e.l=n;return o}function mR(e,t,r){var n=e.l+t,a=Za(e);a.r=r["!row"];var i=Gn(e),o=[a,i,"str"];if(r.cellFormula){e.l+=2;var s=mp(e,n-e.l,r);o[3]=uc(s,null,a,r.supbooks,r)}else e.l=n;return o}var vR=ol,gR=Wc;function xR(e,t){return t==null&&(t=Be(4)),t.write_shift(4,e),t}function yR(e,t){var r=e.l+t,n=ol(e),a=fb(e),i=Gn(e),o=Gn(e),s=Gn(e);e.l=r;var l={rfx:n,relId:a,loc:i,display:s};return o&&(l.Tooltip=o),l}function bR(e,t){var r=Be(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Wc({s:wn(e[0]),e:wn(e[0])},r),hb("rId"+t,r);var n=e[1].Target.indexOf("#"),a=n==-1?"":e[1].Target.slice(n+1);return _n(a||"",r),_n(e[1].Tooltip||"",r),_n("",r),r.slice(0,r.l)}function wR(){}function _R(e,t,r){var n=e.l+t,a=MP(e),i=e.read_shift(1),o=[a];if(o[2]=i,r.cellFormula){var s=uD(e,n-e.l,r);o[1]=s}else e.l=n;return o}function SR(e,t,r){var n=e.l+t,a=ol(e),i=[a];if(r.cellFormula){var o=hD(e,n-e.l,r);i[1]=o,e.l=n}else e.l=n;return i}function AR(e,t,r){r==null&&(r=Be(18));var n=vp(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var a=0;return t.hidden&&(a|=1),typeof n.width=="number"&&(a|=2),t.level&&(a|=t.level<<8),r.write_shift(2,a),r}var yO=["left","right","top","bottom","header","footer"];function NR(e){var t={};return yO.forEach(function(r){t[r]=Hc(e)}),t}function TR(e,t){return t==null&&(t=Be(48)),gO(e),yO.forEach(function(r){Xs(e[r],t)}),t}function ER(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function PR(e,t,r){r==null&&(r=Be(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function OR(e){var t=Be(24);return t.write_shift(4,4),t.write_shift(4,1),Wc(e,t),t}function jR(e,t){return t==null&&(t=Be(66)),t.write_shift(2,e.password?eO(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function CR(){}function kR(){}function LR(e,t,r,n,a,i,o){if(t.v===void 0)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":t=ma(t),t.z=t.z||Wr[14],t.v=pa(na(t.v)),t.t="n";break;case"n":case"e":s=""+t.v;break;default:s=t.v;break}var l={r,c:n};switch(l.s=fs(a.cellXfs,t,a),t.l&&i["!links"].push([gr(l),t.l]),t.c&&i["!comments"].push([gr(l),t.c]),t.t){case"s":case"str":return a.bookSST?(s=xb(a.Strings,t.v,a.revStrings),l.t="s",l.v=s,o?He(e,18,ZD(t,l)):He(e,7,XD(t,l))):(l.t="str",o?He(e,17,fR(t,l)):He(e,6,cR(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?o?He(e,13,oR(t,l)):He(e,2,aR(t,l)):o?He(e,16,rR(t,l)):He(e,5,eR(t,l)),!0;case"b":return l.t="b",o?He(e,15,WD(t,l)):He(e,4,UD(t,l)),!0;case"e":return l.t="e",o?He(e,14,YD(t,l)):He(e,3,GD(t,l)),!0}return o?He(e,12,$D(t,l)):He(e,1,RD(t,l)),!0}function IR(e,t,r,n){var a=Ir(t["!ref"]||"A1"),i,o="",s=[];He(e,145);var l=Array.isArray(t),c=a.e.r;t["!rows"]&&(c=Math.max(a.e.r,t["!rows"].length-1));for(var u=a.s.r;u<=c;++u){o=Ln(u),CD(e,t,a,u);var f=!1;if(u<=a.e.r)for(var d=a.s.c;d<=a.e.c;++d){u===a.s.r&&(s[d]=Hn(d)),i=s[d]+o;var h=l?(t[u]||[])[d]:t[i];if(!h){f=!1;continue}f=LR(e,h,u,d,n,t,f)}}He(e,146)}function FR(e,t){!t||!t["!merges"]||(He(e,177,xR(t["!merges"].length)),t["!merges"].forEach(function(r){He(e,176,gR(r))}),He(e,178))}function MR(e,t){!t||!t["!cols"]||(He(e,390),t["!cols"].forEach(function(r,n){r&&He(e,60,AR(n,r))}),He(e,391))}function DR(e,t){!t||!t["!ref"]||(He(e,648),He(e,649,OR(Ir(t["!ref"]))),He(e,650))}function RR(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var a=mr(r,-1,n[1].Target.replace(/#.*$/,""),Zt.HLINK);He(e,494,bR(n,a))}}),delete t["!links"]}function BR(e,t,r,n){if(t["!comments"].length>0){var a=mr(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Zt.VML);He(e,551,hb("rId"+a)),t["!legacy"]=a}}function $R(e,t,r,n){if(t["!autofilter"]){var a=t["!autofilter"],i=typeof a.ref=="string"?a.ref:an(a.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,s=La(i);s.s.r==s.e.r&&(s.e.r=La(t["!ref"]).e.r,i=an(s));for(var l=0;l<o.length;++l){var c=o[l];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==n){c.Ref="'"+r.SheetNames[n]+"'!"+i;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),He(e,161,Wc(Ir(i))),He(e,162)}}function qR(e,t,r){He(e,133),He(e,137,PR(t,r)),He(e,138),He(e,134)}function UR(e,t){t["!protect"]&&He(e,535,jR(t["!protect"]))}function zR(e,t,r,n){var a=da(),i=r.SheetNames[e],o=r.Sheets[i]||{},s=i;try{r&&r.Workbook&&(s=r.Workbook.Sheets[e].CodeName||s)}catch{}var l=Ir(o["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],He(a,129),(r.vbaraw||o["!outline"])&&He(a,147,MD(s,o["!outline"])),He(a,148,LD(l)),qR(a,o,r.Workbook),MR(a,o),IR(a,o,e,t),UR(a,o),$R(a,o,r,e),FR(a,o),RR(a,o,n),o["!margins"]&&He(a,476,TR(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&DR(a,o),BR(a,o,e,n),He(a,130),a.end()}function WR(e,t){e.l+=10;var r=Gn(e);return{name:r}}var HR=[["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"]];function GR(e){return!e.Workbook||!e.Workbook.WBProps?"false":S7(e.Workbook.WBProps.date1904)?"true":"false"}var VR="][*?/\\".split("");function bO(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return VR.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function YR(e,t,r){e.forEach(function(n,a){bO(n);for(var i=0;i<a;++i)if(n==e[i])throw new Error("Duplicate Sheet Name: "+n);if(r){var o=t&&t[a]&&t[a].CodeName||n;if(o.charCodeAt(0)==95&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}})}function KR(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];YR(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)gD(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function wO(e){var t=[sn];t[t.length]=tt("workbook",null,{xmlns:Uc[0],"xmlns:r":bn.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(HR.forEach(function(s){e.Workbook.WBProps[s[0]]!=null&&e.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=e.Workbook.WBProps[s[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=tt("workbookPr",null,n);var a=e.Workbook&&e.Workbook.Sheets||[],i=0;if(a&&a[0]&&a[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&!(!a[i]||!a[i].Hidden);++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var o={name:vr(e.SheetNames[i].slice(0,31))};if(o.sheetId=""+(i+1),o["r:id"]="rId"+(i+1),a[i])switch(a[i].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}t[t.length]=tt("sheet",null,o)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(s){var l={name:s.Name};s.Comment&&(l.comment=s.Comment),s.Sheet!=null&&(l.localSheetId=""+s.Sheet),s.Hidden&&(l.hidden="1"),s.Ref&&(t[t.length]=tt("definedName",vr(s.Ref),l))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function XR(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=by(e),r.name=Gn(e),r}function JR(e,t){return t||(t=Be(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),hb(e.strRelID,t),_n(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function ZR(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var a=t>8?Gn(e):"";return a.length>0&&(r.CodeName=a),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function QR(e,t){t||(t=Be(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),LP(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function e9(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var a=e.read_shift(4),i=G7(e),o=fD(e,0,r),s=fb(e);e.l=n;var l={Name:i,Ptg:o};return a<268435455&&(l.Sheet=a),s&&(l.Comment=s),l}function t9(e,t){He(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,a={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};He(e,156,JR(a))}He(e,144)}function r9(e,t){t||(t=Be(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return _n("SheetJS",t),_n(zh.version,t),_n(zh.version,t),_n("7262",t),t.length>t.l?t.slice(0,t.l):t}function n9(e,t){t||(t=Be(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function a9(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,a=-1,i=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&a==-1?a=n:r[n].Hidden==1&&i==-1&&(i=n);i>a||(He(e,135),He(e,158,n9(a)),He(e,136))}}function i9(e,t){var r=da();return He(r,131),He(r,128,r9()),He(r,153,QR(e.Workbook&&e.Workbook.WBProps||null)),a9(r,e),t9(r,e),He(r,132),r.end()}function o9(e,t,r){return(t.slice(-4)===".bin"?i9:wO)(e)}function s9(e,t,r,n,a){return(t.slice(-4)===".bin"?zR:xO)(e,r,n,a)}function l9(e,t,r){return(t.slice(-4)===".bin"?TF:nO)(e,r)}function c9(e,t,r){return(t.slice(-4)===".bin"?QI:QP)(e,r)}function u9(e,t,r){return(t.slice(-4)===".bin"?UF:lO)(e)}function f9(e){return(e.slice(-4)===".bin"?IF:oO)()}function h9(e,t){var r=[];return e.Props&&r.push(lI(e.Props,t)),e.Custprops&&r.push(cI(e.Props,e.Custprops)),r.join("")}function d9(){return""}function p9(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,a){var i=[];i.push(tt("NumberFormat",null,{"ss:Format":vr(Wr[n.numFmtId])}));var o={"ss:ID":"s"+(21+a)};r.push(tt("Style",i.join(""),o))}),tt("Styles",r.join(""))}function _O(e){return tt("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+vb(e.Ref,{r:0,c:0})})}function m9(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var a=t[n];a.Sheet==null&&(a.Name.match(/^_xlfn\./)||r.push(_O(a)))}return tt("Names",r.join(""))}function v9(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var a=n.Workbook.Names,i=[],o=0;o<a.length;++o){var s=a[o];s.Sheet==r&&(s.Name.match(/^_xlfn\./)||i.push(_O(s)))}return i.join("")}function g9(e,t,r,n){if(!e)return"";var a=[];if(e["!margins"]&&(a.push("<PageSetup>"),e["!margins"].header&&a.push(tt("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&a.push(tt("Footer",null,{"x:Margin":e["!margins"].footer})),a.push(tt("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),a.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)a.push(tt("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<r&&!(n.Workbook.Sheets[i]&&!n.Workbook.Sheets[i].Hidden);++i);i==r&&a.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push("<DisplayRightToLeft/>"),e["!protect"]&&(a.push(kn("ProtectContents","True")),e["!protect"].objects&&a.push(kn("ProtectObjects","True")),e["!protect"].scenarios&&a.push(kn("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?a.push(kn("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&a.push(kn("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(o){e["!protect"][o[0]]&&a.push("<"+o[1]+"/>")})),a.length==0?"":tt("WorksheetOptions",a.join(""),{xmlns:Oa.x})}function x9(e){return e.map(function(t){var r=_7(t.t||""),n=tt("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return tt("Comment",n,{"ss:Author":t.a})}).join("")}function y9(e,t,r,n,a,i,o){if(!e||e.v==null&&e.f==null)return"";var s={};if(e.f&&(s["ss:Formula"]="="+vr(vb(e.f,o))),e.F&&e.F.slice(0,t.length)==t){var l=wn(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=vr(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=vr(e.l.Tooltip))),r["!merges"])for(var c=r["!merges"],u=0;u!=c.length;++u)c[u].s.c!=o.c||c[u].s.r!=o.r||(c[u].e.c>c[u].s.c&&(s["ss:MergeAcross"]=c[u].e.c-c[u].s.c),c[u].e.r>c[u].s.r&&(s["ss:MergeDown"]=c[u].e.r-c[u].s.r));var f="",d="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":f="Number",d=String(e.v);break;case"b":f="Boolean",d=e.v?"1":"0";break;case"e":f="Error",d=o0[e.v];break;case"d":f="DateTime",d=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Wr[14]);break;case"s":f="String",d=w7(e.v||"");break}var h=fs(n.cellXfs,e,n);s["ss:StyleID"]="s"+(21+h),s["ss:Index"]=o.c+1;var x=e.v!=null?d:"",p=e.t=="z"?"":'<Data ss:Type="'+f+'">'+x+"</Data>";return(e.c||[]).length>0&&(p+=x9(e.c)),tt("Cell",p,s)}function b9(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=rO(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function w9(e,t,r,n){if(!e["!ref"])return"";var a=Ir(e["!ref"]),i=e["!merges"]||[],o=0,s=[];e["!cols"]&&e["!cols"].forEach(function(m,y){pb(m);var b=!!m.width,w=vp(y,m),S={"ss:Index":y+1};b&&(S["ss:Width"]=Qh(w.width)),m.hidden&&(S["ss:Hidden"]="1"),s.push(tt("Column",null,S))});for(var l=Array.isArray(e),c=a.s.r;c<=a.e.r;++c){for(var u=[b9(c,(e["!rows"]||[])[c])],f=a.s.c;f<=a.e.c;++f){var d=!1;for(o=0;o!=i.length;++o)if(!(i[o].s.c>f)&&!(i[o].s.r>c)&&!(i[o].e.c<f)&&!(i[o].e.r<c)){(i[o].s.c!=f||i[o].s.r!=c)&&(d=!0);break}if(!d){var h={r:c,c:f},x=gr(h),p=l?(e[c]||[])[f]:e[x];u.push(y9(p,x,e,t,r,n,h))}}u.push("</Row>"),u.length>2&&s.push(u.join(""))}return s.join("")}function _9(e,t,r){var n=[],a=r.SheetNames[e],i=r.Sheets[a],o=i?v9(i,t,e,r):"";return o.length>0&&n.push("<Names>"+o+"</Names>"),o=i?w9(i,t,e,r):"",o.length>0&&n.push("<Table>"+o+"</Table>"),n.push(g9(i,t,e,r)),n.join("")}function S9(e,t){t||(t={}),e.SSF||(e.SSF=ma(Wr)),e.SSF&&(fp(),up(e.SSF),t.revssf=hp(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],fs(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(h9(e,t)),r.push(d9()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(tt("Worksheet",_9(n,t,e),{"ss:Name":vr(e.SheetNames[n])}));return r[2]=p9(e,t),r[3]=m9(e),sn+tt("Workbook",r.join(""),{xmlns:Oa.ss,"xmlns:o":Oa.o,"xmlns:x":Oa.x,"xmlns:ss":Oa.ss,"xmlns:dt":Oa.dt,"xmlns:html":Oa.html})}var V1={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function A9(e,t){var r=[],n=[],a=[],i=0,o,s=Lw(Gw,"n"),l=Lw(Vw,"n");if(e.Props)for(o=In(e.Props),i=0;i<o.length;++i)(Object.prototype.hasOwnProperty.call(s,o[i])?r:Object.prototype.hasOwnProperty.call(l,o[i])?n:a).push([o[i],e.Props[o[i]]]);if(e.Custprops)for(o=In(e.Custprops),i=0;i<o.length;++i)Object.prototype.hasOwnProperty.call(e.Props||{},o[i])||(Object.prototype.hasOwnProperty.call(s,o[i])?r:Object.prototype.hasOwnProperty.call(l,o[i])?n:a).push([o[i],e.Custprops[o[i]]]);var c=[];for(i=0;i<a.length;++i)GP.indexOf(a[i][0])>-1||zP.indexOf(a[i][0])>-1||a[i][1]!=null&&c.push(a[i]);n.length&&br.utils.cfb_add(t,"/SummaryInformation",Zw(n,V1.SI,l,Vw)),(r.length||c.length)&&br.utils.cfb_add(t,"/DocumentSummaryInformation",Zw(r,V1.DSI,s,Gw,c.length?c:null,V1.UDI))}function N9(e,t){var r=t||{},n=br.utils.cfb_new({root:"R"}),a="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":a="/Workbook",r.biff=8;break;case"biff5":a="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return br.utils.cfb_add(n,a,SO(e,r)),r.biff==8&&(e.Props||e.Custprops)&&A9(e,n),r.biff==8&&e.vbaraw&&zF(n,br.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var T9={0:{f:OD},1:{f:DD},2:{f:nR},3:{f:HD},4:{f:qD},5:{f:QD},6:{f:lR},7:{f:KD},8:{f:mR},9:{f:pR},10:{f:hR},11:{f:dR},12:{f:BD},13:{f:iR},14:{f:VD},15:{f:zD},16:{f:tR},17:{f:uR},18:{f:JD},19:{f:ub},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:e9},40:{},42:{},43:{f:lF},44:{f:oF},45:{f:fF},46:{f:dF},47:{f:hF},48:{},49:{f:B7},50:{},51:{f:OF},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:$I},62:{f:sR},63:{f:FF},64:{f:CR},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:$i,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:ER},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:FD},148:{f:kD,p:16},151:{f:wR},152:{},153:{f:ZR},154:{},155:{},156:{f:XR},157:{},158:{},159:{T:1,f:XI},160:{T:-1},161:{T:1,f:ol},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:vR},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:EF},336:{T:-1},337:{f:kF,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:by},357:{},358:{},359:{},360:{T:1},361:{},362:{f:II},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:_R},427:{f:SR},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:NR},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:ID},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:yR},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:by},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:$F},633:{T:1},634:{T:-1},635:{T:1,f:RF},636:{T:-1},637:{f:z7},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:WR},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:kR},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:""}};function rt(e,t,r,n){var a=t;if(!isNaN(a)){var i=n||(r||[]).length||0,o=e.next(4);o.write_shift(2,a),o.write_shift(2,i),i>0&&sb(r)&&e.push(r)}}function E9(e,t,r,n){var a=(r||[]).length||0;if(a<=8224)return rt(e,t,r,a);var i=t;if(!isNaN(i)){for(var o=r.parts||[],s=0,l=0,c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;var u=e.next(4);for(u.write_shift(2,i),u.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c;l<a;){for(u=e.next(4),u.write_shift(2,60),c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;u.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c}}}function l0(e,t,r){return e||(e=Be(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function P9(e,t,r,n){var a=Be(9);return l0(a,e,t),YP(r,n||"b",a),a}function O9(e,t,r){var n=Be(8+2*r.length);return l0(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function j9(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var a=t.t=="d"?pa(na(t.v)):t.v;a==(a|0)&&a>=0&&a<65536?rt(e,2,WI(r,n,a)):rt(e,3,zI(r,n,a));return;case"b":case"e":rt(e,5,P9(r,n,t.v,t.t));return;case"s":case"str":rt(e,4,O9(r,n,(t.v||"").slice(0,255)));return}rt(e,1,l0(null,r,n))}function C9(e,t,r,n){var a=Array.isArray(t),i=Ir(t["!ref"]||"A1"),o,s="",l=[];if(i.e.c>255||i.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),o=an(i)}for(var c=i.s.r;c<=i.e.r;++c){s=Ln(c);for(var u=i.s.c;u<=i.e.c;++u){c===i.s.r&&(l[u]=Hn(u)),o=l[u]+s;var f=a?(t[c]||[])[u]:t[o];f&&j9(e,f,c,u)}}}function k9(e,t){for(var r=t||{},n=da(),a=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==r.sheet&&(a=i);if(a==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return rt(n,r.biff==4?1033:r.biff==3?521:9,db(e,16,r)),C9(n,e.Sheets[e.SheetNames[a]],a,r),rt(n,10),n.end()}function L9(e,t,r){rt(e,49,TI({sz:12,name:"Arial"},r))}function I9(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&rt(e,1054,OI(a,t[a],r))})}function F9(e,t){var r=Be(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),rt(e,2151,r),r=Be(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),JP(Ir(t["!ref"]||"A1"),r),r.write_shift(4,4),rt(e,2152,r)}function M9(e,t){for(var r=0;r<16;++r)rt(e,224,e_({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){rt(e,224,e_(n,0,t))})}function D9(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];rt(e,440,DI(n)),n[1].Tooltip&&rt(e,2048,RI(n))}delete t["!links"]}function R9(e,t){if(t){var r=0;t.forEach(function(n,a){++r<=256&&n&&rt(e,125,qI(vp(a,n),a))})}}function B9(e,t,r,n,a){var i=16+fs(a.cellXfs,t,a);if(t.v==null&&!t.bf){rt(e,513,Js(r,n,i));return}if(t.bf)rt(e,6,cD(t,r,n,a,i));else switch(t.t){case"d":case"n":var o=t.t=="d"?pa(na(t.v)):t.v;rt(e,515,LI(r,n,o,i));break;case"b":case"e":rt(e,517,kI(r,n,t.v,i,a,t.t));break;case"s":case"str":if(a.bookSST){var s=xb(a.Strings,t.v,a.revStrings);rt(e,253,EI(r,n,s,i))}else rt(e,516,PI(r,n,(t.v||"").slice(0,255),i,a));break;default:rt(e,513,Js(r,n,i))}}function $9(e,t,r){var n=da(),a=r.SheetNames[e],i=r.Sheets[a]||{},o=(r||{}).Workbook||{},s=(o.Sheets||[])[e]||{},l=Array.isArray(i),c=t.biff==8,u,f="",d=[],h=Ir(i["!ref"]||"A1"),x=c?65536:16384;if(h.e.c>255||h.e.r>=x){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,x-1)}rt(n,2057,db(r,16,t)),rt(n,13,Va(1)),rt(n,12,Va(100)),rt(n,15,ea(!0)),rt(n,17,ea(!1)),rt(n,16,Xs(.001)),rt(n,95,ea(!0)),rt(n,42,ea(!1)),rt(n,43,ea(!1)),rt(n,130,Va(1)),rt(n,128,CI()),rt(n,131,ea(!1)),rt(n,132,ea(!1)),c&&R9(n,i["!cols"]),rt(n,512,jI(h,t)),c&&(i["!links"]=[]);for(var p=h.s.r;p<=h.e.r;++p){f=Ln(p);for(var m=h.s.c;m<=h.e.c;++m){p===h.s.r&&(d[m]=Hn(m)),u=d[m]+f;var y=l?(i[p]||[])[m]:i[u];y&&(B9(n,y,p,m,t),c&&y.l&&i["!links"].push([u,y.l]))}}var b=s.CodeName||s.name||a;return c&&rt(n,574,NI((o.Views||[])[0])),c&&(i["!merges"]||[]).length&&rt(n,229,MI(i["!merges"])),c&&D9(n,i),rt(n,442,XP(b)),c&&F9(n,i),rt(n,10),n.end()}function q9(e,t,r){var n=da(),a=(e||{}).Workbook||{},i=a.Sheets||[],o=a.WBProps||{},s=r.biff==8,l=r.biff==5;if(rt(n,2057,db(e,5,r)),r.bookType=="xla"&&rt(n,135),rt(n,225,s?Va(1200):null),rt(n,193,hI(2)),l&&rt(n,191),l&&rt(n,192),rt(n,226),rt(n,92,wI("SheetJS",r)),rt(n,66,Va(s?1200:1252)),s&&rt(n,353,Va(0)),s&&rt(n,448),rt(n,317,UI(e.SheetNames.length)),s&&e.vbaraw&&rt(n,211),s&&e.vbaraw){var c=o.CodeName||"ThisWorkbook";rt(n,442,XP(c))}rt(n,156,Va(17)),rt(n,25,ea(!1)),rt(n,18,ea(!1)),rt(n,19,Va(0)),s&&rt(n,431,ea(!1)),s&&rt(n,444,Va(0)),rt(n,61,AI()),rt(n,64,ea(!1)),rt(n,141,Va(0)),rt(n,34,ea(GR(e)=="true")),rt(n,14,ea(!0)),s&&rt(n,439,ea(!1)),rt(n,218,Va(0)),L9(n,e,r),I9(n,e.SSF,r),M9(n,r),s&&rt(n,352,ea(!1));var u=n.end(),f=da();s&&rt(f,140,BI()),s&&r.Strings&&E9(f,252,SI(r.Strings)),rt(f,10);var d=f.end(),h=da(),x=0,p=0;for(p=0;p<e.SheetNames.length;++p)x+=(s?12:11)+(s?2:1)*e.SheetNames[p].length;var m=u.length+x+d.length;for(p=0;p<e.SheetNames.length;++p){var y=i[p]||{};rt(h,133,_I({pos:m,hs:y.Hidden||0,dt:0,name:e.SheetNames[p]},r)),m+=t[p].length}var b=h.end();if(x!=b.length)throw new Error("BS8 "+x+" != "+b.length);var w=[];return u.length&&w.push(u),b.length&&w.push(b),d.length&&w.push(d),Cn(w)}function U9(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=ma(Wr)),e&&e.SSF&&(fp(),up(e.SSF),r.revssf=hp(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,yb(r),r.cellXfs=[],fs(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var a=0;a<e.SheetNames.length;++a)n[n.length]=$9(a,r,e);return n.unshift(q9(e,n,r)),Cn(n)}function SO(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var a=La(n["!ref"]);a.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var i=t||{};switch(i.biff||2){case 8:case 5:return U9(e,t);case 4:case 3:case 2:return k9(e,t)}throw new Error("invalid type "+i.bookType+" for BIFF")}function z9(e,t,r,n){for(var a=e["!merges"]||[],i=[],o=t.s.c;o<=t.e.c;++o){for(var s=0,l=0,c=0;c<a.length;++c)if(!(a[c].s.r>r||a[c].s.c>o)&&!(a[c].e.r<r||a[c].e.c<o)){if(a[c].s.r<r||a[c].s.c<o){s=-1;break}s=a[c].e.r-a[c].s.r+1,l=a[c].e.c-a[c].s.c+1;break}if(!(s<0)){var u=gr({r,c:o}),f=n.dense?(e[r]||[])[o]:e[u],d=f&&f.v!=null&&(f.h||b7(f.w||(_o(f),f.w)||""))||"",h={};s>1&&(h.rowspan=s),l>1&&(h.colspan=l),n.editable?d='<span contenteditable="true">'+d+"</span>":f&&(h["data-t"]=f&&f.t||"z",f.v!=null&&(h["data-v"]=f.v),f.z!=null&&(h["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(d='<a href="'+f.l.Target+'">'+d+"</a>")),h.id=(n.id||"sjs")+"-"+u,i.push(tt("td",d,h))}}var x="<tr>";return x+i.join("")+"</tr>"}var W9='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',H9="</body></html>";function G9(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function AO(e,t){var r=t||{},n=r.header!=null?r.header:W9,a=r.footer!=null?r.footer:H9,i=[n],o=La(e["!ref"]);r.dense=Array.isArray(e),i.push(G9(e,o,r));for(var s=o.s.r;s<=o.e.r;++s)i.push(z9(e,o,s,r));return i.push("</table>"+a),i.join("")}function NO(e,t,r){var n=r||{},a=0,i=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var o=typeof n.origin=="string"?wn(n.origin):n.origin;a=o.r,i=o.c}var s=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r:a,c:i}};if(e["!ref"]){var u=La(e["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),a==-1&&(c.e.r=a=u.e.r+1)}var f=[],d=0,h=e["!rows"]||(e["!rows"]=[]),x=0,p=0,m=0,y=0,b=0,w=0;for(e["!cols"]||(e["!cols"]=[]);x<s.length&&p<l;++x){var S=s[x];if(s_(S)){if(n.display)continue;h[p]={hidden:!0}}var A=S.children;for(m=y=0;m<A.length;++m){var O=A[m];if(!(n.display&&s_(O))){var N=O.hasAttribute("data-v")?O.getAttribute("data-v"):O.hasAttribute("v")?O.getAttribute("v"):A7(O.innerHTML),C=O.getAttribute("data-z")||O.getAttribute("z");for(d=0;d<f.length;++d){var L=f[d];L.s.c==y+i&&L.s.r<p+a&&p+a<=L.e.r&&(y=L.e.c+1-i,d=-1)}w=+O.getAttribute("colspan")||1,((b=+O.getAttribute("rowspan")||1)>1||w>1)&&f.push({s:{r:p+a,c:y+i},e:{r:p+a+(b||1)-1,c:y+i+(w||1)-1}});var R={t:"s",v:N},j=O.getAttribute("data-t")||O.getAttribute("t")||"";N!=null&&(N.length==0?R.t=j||"z":n.raw||N.trim().length==0||j=="s"||(N==="TRUE"?R={t:"b",v:!0}:N==="FALSE"?R={t:"b",v:!1}:isNaN(po(N))?isNaN(vf(N).getDate())||(R={t:"d",v:na(N)},n.cellDates||(R={t:"n",v:pa(R.v)}),R.z=n.dateNF||Wr[14]):R={t:"n",v:po(N)})),R.z===void 0&&C!=null&&(R.z=C);var E="",D=O.getElementsByTagName("A");if(D&&D.length)for(var U=0;U<D.length&&!(D[U].hasAttribute("href")&&(E=D[U].getAttribute("href"),E.charAt(0)!="#"));++U);E&&E.charAt(0)!="#"&&(R.l={Target:E}),n.dense?(e[p+a]||(e[p+a]=[]),e[p+a][y+i]=R):e[gr({c:y+i,r:p+a})]=R,c.e.c<y+i&&(c.e.c=y+i),y+=w}}++p}return f.length&&(e["!merges"]=(e["!merges"]||[]).concat(f)),c.e.r=Math.max(c.e.r,p-1+a),e["!ref"]=an(c),p>=l&&(e["!fullref"]=an((c.e.r=s.length-x+p-1+a,c))),e}function TO(e,t){var r=t||{},n=r.dense?[]:{};return NO(n,e,t)}function V9(e,t){return rl(TO(e,t),t)}function s_(e){var t="",r=Y9(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function Y9(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var K9=(function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+xf({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return sn+t}})(),l_=(function(){var e=function(i){return vr(i).replace(/ +/g,function(o){return'<text:s text:c="'+o.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=` <table:table-cell />
312
- `,r=` <table:covered-table-cell/>
313
- `,n=function(i,o,s){var l=[];l.push(' <table:table table:name="'+vr(o.SheetNames[s])+`" table:style-name="ta1">
314
- `);var c=0,u=0,f=La(i["!ref"]||"A1"),d=i["!merges"]||[],h=0,x=Array.isArray(i);if(i["!cols"])for(u=0;u<=f.e.c;++u)l.push(" <table:table-column"+(i["!cols"][u]?' table:style-name="co'+i["!cols"][u].ods+'"':"")+`></table:table-column>
315
- `);var p="",m=i["!rows"]||[];for(c=0;c<f.s.r;++c)p=m[c]?' table:style-name="ro'+m[c].ods+'"':"",l.push(" <table:table-row"+p+`></table:table-row>
316
- `);for(;c<=f.e.r;++c){for(p=m[c]?' table:style-name="ro'+m[c].ods+'"':"",l.push(" <table:table-row"+p+`>
317
- `),u=0;u<f.s.c;++u)l.push(t);for(;u<=f.e.c;++u){var y=!1,b={},w="";for(h=0;h!=d.length;++h)if(!(d[h].s.c>u)&&!(d[h].s.r>c)&&!(d[h].e.c<u)&&!(d[h].e.r<c)){(d[h].s.c!=u||d[h].s.r!=c)&&(y=!0),b["table:number-columns-spanned"]=d[h].e.c-d[h].s.c+1,b["table:number-rows-spanned"]=d[h].e.r-d[h].s.r+1;break}if(y){l.push(r);continue}var S=gr({r:c,c:u}),A=x?(i[c]||[])[u]:i[S];if(A&&A.f&&(b["table:formula"]=vr(mD(A.f)),A.F&&A.F.slice(0,S.length)==S)){var O=La(A.F);b["table:number-matrix-columns-spanned"]=O.e.c-O.s.c+1,b["table:number-matrix-rows-spanned"]=O.e.r-O.s.r+1}if(!A){l.push(t);continue}switch(A.t){case"b":w=A.v?"TRUE":"FALSE",b["office:value-type"]="boolean",b["office:boolean-value"]=A.v?"true":"false";break;case"n":w=A.w||String(A.v||0),b["office:value-type"]="float",b["office:value"]=A.v||0;break;case"s":case"str":w=A.v==null?"":A.v,b["office:value-type"]="string";break;case"d":w=A.w||na(A.v).toISOString(),b["office:value-type"]="date",b["office:date-value"]=na(A.v).toISOString(),b["table:style-name"]="ce1";break;default:l.push(t);continue}var N=e(w);if(A.l&&A.l.Target){var C=A.l.Target;C=C.charAt(0)=="#"?"#"+vD(C.slice(1)):C,C.charAt(0)!="#"&&!C.match(/^\w+:/)&&(C="../"+C),N=tt("text:a",N,{"xlink:href":C.replace(/&/g,"&amp;")})}l.push(" "+tt("table:table-cell",tt("text:p",N,{}),b)+`
318
- `)}l.push(` </table:table-row>
319
- `)}return l.push(` </table:table>
320
- `),l.join("")},a=function(i,o){i.push(` <office:automatic-styles>
321
- `),i.push(` <number:date-style style:name="N37" number:automatic-order="true">
322
- `),i.push(` <number:month number:style="long"/>
323
- `),i.push(` <number:text>/</number:text>
324
- `),i.push(` <number:day number:style="long"/>
325
- `),i.push(` <number:text>/</number:text>
326
- `),i.push(` <number:year/>
327
- `),i.push(` </number:date-style>
328
- `);var s=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!cols"]){for(var u=0;u<c["!cols"].length;++u)if(c["!cols"][u]){var f=c["!cols"][u];if(f.width==null&&f.wpx==null&&f.wch==null)continue;pb(f),f.ods=s;var d=c["!cols"][u].wpx+"px";i.push(' <style:style style:name="co'+s+`" style:family="table-column">
329
- `),i.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+d+`"/>
330
- `),i.push(` </style:style>
331
- `),++s}}});var l=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!rows"]){for(var u=0;u<c["!rows"].length;++u)if(c["!rows"][u]){c["!rows"][u].ods=l;var f=c["!rows"][u].hpx+"px";i.push(' <style:style style:name="ro'+l+`" style:family="table-row">
332
- `),i.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+f+`"/>
333
- `),i.push(` </style:style>
334
- `),++l}}}),i.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
335
- `),i.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
336
- `),i.push(` </style:style>
337
- `),i.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
338
- `),i.push(` </office:automatic-styles>
339
- `)};return function(o,s){var l=[sn],c=xf({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),u=xf({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});s.bookType=="fods"?(l.push("<office:document"+c+u+`>
340
- `),l.push(qP().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+c+`>
341
- `),a(l,o),l.push(` <office:body>
342
- `),l.push(` <office:spreadsheet>
343
- `);for(var f=0;f!=o.SheetNames.length;++f)l.push(n(o.Sheets[o.SheetNames[f]],o,f));return l.push(` </office:spreadsheet>
344
- `),l.push(` </office:body>
345
- `),s.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}})();function EO(e,t){if(t.bookType=="fods")return l_(e,t);var r=nb(),n="",a=[],i=[];return n="mimetype",$t(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",$t(r,n,l_(e,t)),a.push([n,"text/xml"]),i.push([n,"ContentFile"]),n="styles.xml",$t(r,n,K9(e,t)),a.push([n,"text/xml"]),i.push([n,"StylesFile"]),n="meta.xml",$t(r,n,sn+qP()),a.push([n,"text/xml"]),i.push([n,"MetadataFile"]),n="manifest.rdf",$t(r,n,sI(i)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",$t(r,n,iI(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function rd(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function X9(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):vi(gf(e))}function J9(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function us(e){var t=e.reduce(function(a,i){return a+i.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(a){r.set(a,n),n+=a.length}),r}function Z9(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var i=0;a>=1;++i,a/=256)e[t+i]=a&255;e[t+15]|=r>=0?0:128}function yf(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function pr(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function oc(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function hn(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],a=yf(e,r),i=a&7;a=Math.floor(a/8);var o=0,s;if(a==0)break;switch(i){case 0:{for(var l=r[0];e[r[0]++]>=128;);s=e.slice(l,r[0])}break;case 5:o=4,s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=yf(e,r),s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(a," at offset ").concat(n))}var c={data:s,type:i};t[a]==null?t[a]=[c]:t[a].push(c)}return t}function En(e){var t=[];return e.forEach(function(r,n){r.forEach(function(a){a.data&&(t.push(pr(n*8+a.type)),a.type==2&&t.push(pr(a.data.length)),t.push(a.data))})}),us(t)}function ci(e){for(var t,r=[],n=[0];n[0]<e.length;){var a=yf(e,n),i=hn(e.slice(n[0],n[0]+a));n[0]+=a;var o={id:oc(i[1][0].data),messages:[]};i[2].forEach(function(s){var l=hn(s.data),c=oc(l[3][0].data);o.messages.push({meta:l,data:e.slice(n[0],n[0]+c)}),n[0]+=c}),(t=i[3])!=null&&t[0]&&(o.merge=oc(i[3][0].data)>>>0>0),r.push(o)}return r}function Rl(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:pr(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:pr(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(o){a.push(o.data),o.meta[3]=[{type:0,data:pr(o.data.length)}],n[2].push({data:En(o.meta),type:2})});var i=En(n);t.push(pr(i.length)),t.push(i),a.forEach(function(o){return t.push(o)})}),us(t)}function Q9(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=yf(t,r),a=[];r[0]<t.length;){var i=t[r[0]]&3;if(i==0){var o=t[r[0]++]>>2;if(o<60)++o;else{var s=o-59;o=t[r[0]],s>1&&(o|=t[r[0]+1]<<8),s>2&&(o|=t[r[0]+2]<<16),s>3&&(o|=t[r[0]+3]<<24),o>>>=0,o++,r[0]+=s}a.push(t.slice(r[0],r[0]+o)),r[0]+=o;continue}else{var l=0,c=0;if(i==1?(c=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(c=(t[r[0]++]>>2)+1,i==2?(l=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(l=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),a=[us(a)],l==0)throw new Error("Invalid offset 0");if(l>a[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(a.push(a[0].slice(-l)),c-=l;c>=a[a.length-1].length;)a.push(a[a.length-1]),c-=a[a.length-1].length;a.push(a[0].slice(-l,-l+c))}}var u=us(a);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function ui(e){for(var t=[],r=0;r<e.length;){var n=e[r++],a=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(Q9(n,e.slice(r,r+a))),r+=a}if(r!==e.length)throw new Error("data is not a valid framed stream!");return us(t)}function Bl(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),a=new Uint8Array(4);t.push(a);var i=pr(n),o=i.length;t.push(i),n<=60?(o++,t.push(new Uint8Array([n-1<<2]))):n<=256?(o+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(o+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(o+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(o+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),o+=n,a[0]=0,a[1]=o&255,a[2]=o>>8&255,a[3]=o>>16&255,r+=n}return us(t)}function Y1(e,t){var r=new Uint8Array(32),n=rd(r),a=12,i=0;switch(r[0]=5,e.t){case"n":r[1]=2,Z9(r,a,e.v),i|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,e.v?1:0,!0),i|=2,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,i,!0),r.slice(0,a)}function K1(e,t){var r=new Uint8Array(32),n=rd(r),a=12,i=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(a,e.v,!0),i|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,e.v?1:0,!0),i|=32,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,i,!0),r.slice(0,a)}function Ko(e){var t=hn(e);return yf(t[1][0].data)}function eB(e,t,r){var n,a,i,o;if(!((n=e[6])!=null&&n[0])||!((a=e[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var s=((o=(i=e[8])==null?void 0:i[0])==null?void 0:o.data)&&oc(e[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,c=rd(e[7][0].data),u=0,f=[],d=rd(e[4][0].data),h=0,x=[],p=0;p<t.length;++p){if(t[p]==null){c.setUint16(p*2,65535,!0),d.setUint16(p*2,65535);continue}c.setUint16(p*2,u,!0),d.setUint16(p*2,h,!0);var m,y;switch(typeof t[p]){case"string":m=Y1({t:"s",v:t[p]},r),y=K1({t:"s",v:t[p]},r);break;case"number":m=Y1({t:"n",v:t[p]},r),y=K1({t:"n",v:t[p]},r);break;case"boolean":m=Y1({t:"b",v:t[p]},r),y=K1({t:"b",v:t[p]},r);break;default:throw new Error("Unsupported value "+t[p])}f.push(m),u+=m.length,x.push(y),h+=y.length,++l}for(e[2][0].data=pr(l);p<e[7][0].data.length/2;++p)c.setUint16(p*2,65535,!0),d.setUint16(p*2,65535,!0);return e[6][0].data=us(f),e[3][0].data=us(x),l}function tB(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=La(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(an(n)));var i=nd(r,{range:n,header:1}),o=["~Sh33tJ5~"];i.forEach(function(I){return I.forEach(function(M){typeof M=="string"&&o.push(M)})});var s={},l=[],c=br.read(t.numbers,{type:"base64"});c.FileIndex.map(function(I,M){return[I,c.FullPaths[M]]}).forEach(function(I){var M=I[0],q=I[1];if(M.type==2&&M.name.match(/\.iwa/)){var Y=M.content,fe=ui(Y),ne=ci(fe);ne.forEach(function(K){l.push(K.id),s[K.id]={deps:[],location:q,type:oc(K.messages[0].meta[1][0].data)}})}}),l.sort(function(I,M){return I-M});var u=l.filter(function(I){return I>1}).map(function(I){return[I,pr(I)]});c.FileIndex.map(function(I,M){return[I,c.FullPaths[M]]}).forEach(function(I){var M=I[0];if(I[1],!!M.name.match(/\.iwa/)){var q=ci(ui(M.content));q.forEach(function(Y){Y.messages.forEach(function(fe){u.forEach(function(ne){Y.messages.some(function(K){return oc(K.meta[1][0].data)!=11006&&J9(K.data,ne[1])})&&s[ne[0]].deps.push(Y.id)})})})}});for(var f=br.find(c,s[1].location),d=ci(ui(f.content)),h,x=0;x<d.length;++x){var p=d[x];p.id==1&&(h=p)}var m=Ko(hn(h.messages[0].data)[1][0].data);for(f=br.find(c,s[m].location),d=ci(ui(f.content)),x=0;x<d.length;++x)p=d[x],p.id==m&&(h=p);for(m=Ko(hn(h.messages[0].data)[2][0].data),f=br.find(c,s[m].location),d=ci(ui(f.content)),x=0;x<d.length;++x)p=d[x],p.id==m&&(h=p);for(m=Ko(hn(h.messages[0].data)[2][0].data),f=br.find(c,s[m].location),d=ci(ui(f.content)),x=0;x<d.length;++x)p=d[x],p.id==m&&(h=p);var y=hn(h.messages[0].data);{y[6][0].data=pr(n.e.r+1),y[7][0].data=pr(n.e.c+1);var b=Ko(y[46][0].data),w=br.find(c,s[b].location),S=ci(ui(w.content));{for(var A=0;A<S.length&&S[A].id!=b;++A);if(S[A].id!=b)throw"Bad ColumnRowUIDMapArchive";var O=hn(S[A].messages[0].data);O[1]=[],O[2]=[],O[3]=[];for(var N=0;N<=n.e.c;++N){var C=[];C[1]=C[2]=[{type:0,data:pr(N+420690)}],O[1].push({type:2,data:En(C)}),O[2].push({type:0,data:pr(N)}),O[3].push({type:0,data:pr(N)})}O[4]=[],O[5]=[],O[6]=[];for(var L=0;L<=n.e.r;++L)C=[],C[1]=C[2]=[{type:0,data:pr(L+726270)}],O[4].push({type:2,data:En(C)}),O[5].push({type:0,data:pr(L)}),O[6].push({type:0,data:pr(L)});S[A].messages[0].data=En(O)}w.content=Bl(Rl(S)),w.size=w.content.length,delete y[46];var R=hn(y[4][0].data);{R[7][0].data=pr(n.e.r+1);var j=hn(R[1][0].data),E=Ko(j[2][0].data);w=br.find(c,s[E].location),S=ci(ui(w.content));{if(S[0].id!=E)throw"Bad HeaderStorageBucket";var D=hn(S[0].messages[0].data);for(L=0;L<i.length;++L){var U=hn(D[2][0].data);U[1][0].data=pr(L),U[4][0].data=pr(i[L].length),D[2][L]={type:D[2][0].type,data:En(U)}}S[0].messages[0].data=En(D)}w.content=Bl(Rl(S)),w.size=w.content.length;var H=Ko(R[2][0].data);w=br.find(c,s[H].location),S=ci(ui(w.content));{if(S[0].id!=H)throw"Bad HeaderStorageBucket";for(D=hn(S[0].messages[0].data),N=0;N<=n.e.c;++N)U=hn(D[2][0].data),U[1][0].data=pr(N),U[4][0].data=pr(n.e.r+1),D[2][N]={type:D[2][0].type,data:En(U)};S[0].messages[0].data=En(D)}w.content=Bl(Rl(S)),w.size=w.content.length;var B=Ko(R[4][0].data);(function(){for(var I=br.find(c,s[B].location),M=ci(ui(I.content)),q,Y=0;Y<M.length;++Y){var fe=M[Y];fe.id==B&&(q=fe)}var ne=hn(q.messages[0].data);{ne[3]=[];var K=[];o.forEach(function(se,Le){K[1]=[{type:0,data:pr(Le)}],K[2]=[{type:0,data:pr(1)}],K[3]=[{type:2,data:X9(se)}],ne[3].push({type:2,data:En(K)})})}q.messages[0].data=En(ne);var he=Rl(M),be=Bl(he);I.content=be,I.size=I.content.length})();var z=hn(R[3][0].data);{var te=z[1][0];delete z[2];var Z=hn(te.data);{var ee=Ko(Z[2][0].data);(function(){for(var I=br.find(c,s[ee].location),M=ci(ui(I.content)),q,Y=0;Y<M.length;++Y){var fe=M[Y];fe.id==ee&&(q=fe)}var ne=hn(q.messages[0].data);{delete ne[6],delete z[7];var K=new Uint8Array(ne[5][0].data);ne[5]=[];for(var he=0,be=0;be<=n.e.r;++be){var se=hn(K);he+=eB(se,i[be],o),se[1][0].data=pr(be),ne[5].push({data:En(se),type:2})}ne[1]=[{type:0,data:pr(n.e.c+1)}],ne[2]=[{type:0,data:pr(n.e.r+1)}],ne[3]=[{type:0,data:pr(he)}],ne[4]=[{type:0,data:pr(n.e.r+1)}]}q.messages[0].data=En(ne);var Le=Rl(M),Se=Bl(Le);I.content=Se,I.size=I.content.length})()}te.data=En(Z)}R[3][0].data=En(z)}y[4][0].data=En(R)}h.messages[0].data=En(y);var ce=Rl(d),P=Bl(ce);return f.content=P,f.size=f.content.length,c}function rB(e){return function(r){for(var n=0;n!=e.length;++n){var a=e[n];r[a[0]]===void 0&&(r[a[0]]=a[1]),a[2]==="n"&&(r[a[0]]=Number(r[a[0]]))}}}function yb(e){rB([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function nB(e,t){return t.bookType=="ods"?EO(e,t):t.bookType=="numbers"?tB(e,t):t.bookType=="xlsb"?aB(e,t):iB(e,t)}function aB(e,t){Jl=1024,e&&!e.SSF&&(e.SSF=ma(Wr)),e&&e.SSF&&(fp(),up(e.SSF),t.revssf=hp(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,nf?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=cO.indexOf(t.bookType)>-1,a=RP();yb(t=t||{});var i=nb(),o="",s=0;if(t.cellXfs=[],fs(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",$t(i,o,UP(e.Props,t)),a.coreprops.push(o),mr(t.rels,2,o,Zt.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,$t(i,o,WP(e.Props)),a.extprops.push(o),mr(t.rels,3,o,Zt.EXT_PROPS),e.Custprops!==e.Props&&In(e.Custprops||{}).length>0&&(o="docProps/custom.xml",$t(i,o,HP(e.Custprops)),a.custprops.push(o),mr(t.rels,4,o,Zt.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var u={"!id":{}},f=e.Sheets[e.SheetNames[s-1]],d=(f||{})["!type"]||"sheet";switch(d){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,$t(i,o,s9(s-1,o,t,e,u)),a.sheets.push(o),mr(t.wbrels,-1,"worksheets/sheet"+s+"."+r,Zt.WS[0])}if(f){var h=f["!comments"],x=!1,p="";h&&h.length>0&&(p="xl/comments"+s+"."+r,$t(i,p,u9(h,p)),a.comments.push(p),mr(u,-1,"../comments"+s+"."+r,Zt.CMNT),x=!0),f["!legacy"]&&x&&$t(i,"xl/drawings/vmlDrawing"+s+".vml",sO(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}u["!id"].rId1&&$t(i,$P(o),ac(u))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,$t(i,o,c9(t.Strings,o,t)),a.strs.push(o),mr(t.wbrels,-1,"sharedStrings."+r,Zt.SST)),o="xl/workbook."+r,$t(i,o,o9(e,o)),a.workbooks.push(o),mr(t.rels,1,o,Zt.WB),o="xl/theme/theme1.xml",$t(i,o,iO(e.Themes,t)),a.themes.push(o),mr(t.wbrels,-1,"theme/theme1.xml",Zt.THEME),o="xl/styles."+r,$t(i,o,l9(e,o,t)),a.styles.push(o),mr(t.wbrels,-1,"styles."+r,Zt.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",$t(i,o,e.vbaraw),a.vba.push(o),mr(t.wbrels,-1,"vbaProject.bin",Zt.VBA)),o="xl/metadata."+r,$t(i,o,f9(o)),a.metadata.push(o),mr(t.wbrels,-1,"metadata."+r,Zt.XLMETA),$t(i,"[Content_Types].xml",BP(a,t)),$t(i,"_rels/.rels",ac(t.rels)),$t(i,"xl/_rels/workbook."+r+".rels",ac(t.wbrels)),delete t.revssf,delete t.ssf,i}function iB(e,t){Jl=1024,e&&!e.SSF&&(e.SSF=ma(Wr)),e&&e.SSF&&(fp(),up(e.SSF),t.revssf=hp(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,nf?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=cO.indexOf(t.bookType)>-1,a=RP();yb(t=t||{});var i=nb(),o="",s=0;if(t.cellXfs=[],fs(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",$t(i,o,UP(e.Props,t)),a.coreprops.push(o),mr(t.rels,2,o,Zt.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,$t(i,o,WP(e.Props)),a.extprops.push(o),mr(t.rels,3,o,Zt.EXT_PROPS),e.Custprops!==e.Props&&In(e.Custprops||{}).length>0&&(o="docProps/custom.xml",$t(i,o,HP(e.Custprops)),a.custprops.push(o),mr(t.rels,4,o,Zt.CUST_PROPS));var u=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var f={"!id":{}},d=e.Sheets[e.SheetNames[s-1]],h=(d||{})["!type"]||"sheet";switch(h){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,$t(i,o,xO(s-1,t,e,f)),a.sheets.push(o),mr(t.wbrels,-1,"worksheets/sheet"+s+"."+r,Zt.WS[0])}if(d){var x=d["!comments"],p=!1,m="";if(x&&x.length>0){var y=!1;x.forEach(function(b){b[1].forEach(function(w){w.T==!0&&(y=!0)})}),y&&(m="xl/threadedComments/threadedComment"+s+"."+r,$t(i,m,MF(x,u,t)),a.threadedcomments.push(m),mr(f,-1,"../threadedComments/threadedComment"+s+"."+r,Zt.TCMNT)),m="xl/comments"+s+"."+r,$t(i,m,lO(x)),a.comments.push(m),mr(f,-1,"../comments"+s+"."+r,Zt.CMNT),p=!0}d["!legacy"]&&p&&$t(i,"xl/drawings/vmlDrawing"+s+".vml",sO(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}f["!id"].rId1&&$t(i,$P(o),ac(f))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,$t(i,o,QP(t.Strings,t)),a.strs.push(o),mr(t.wbrels,-1,"sharedStrings."+r,Zt.SST)),o="xl/workbook."+r,$t(i,o,wO(e)),a.workbooks.push(o),mr(t.rels,1,o,Zt.WB),o="xl/theme/theme1.xml",$t(i,o,iO(e.Themes,t)),a.themes.push(o),mr(t.wbrels,-1,"theme/theme1.xml",Zt.THEME),o="xl/styles."+r,$t(i,o,nO(e,t)),a.styles.push(o),mr(t.wbrels,-1,"styles."+r,Zt.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",$t(i,o,e.vbaraw),a.vba.push(o),mr(t.wbrels,-1,"vbaProject.bin",Zt.VBA)),o="xl/metadata."+r,$t(i,o,oO()),a.metadata.push(o),mr(t.wbrels,-1,"metadata."+r,Zt.XLMETA),u.length>1&&(o="xl/persons/person.xml",$t(i,o,DF(u)),a.people.push(o),mr(t.wbrels,-1,"persons/person.xml",Zt.PEOPLE)),$t(i,"[Content_Types].xml",BP(a,t)),$t(i,"_rels/.rels",ac(t.rels)),$t(i,"xl/_rels/workbook."+r+".rels",ac(t.wbrels)),delete t.revssf,delete t.ssf,i}function oB(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=wo(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function PO(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return a0(t.file,br.write(e,{type:tr?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return br.write(e,t)}function sB(e,t){var r=ma(t||{}),n=nB(e,r);return lB(n,r)}function lB(e,t){var r={},n=tr?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var a=e.FullPaths?br.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(t.type=="binary"||t.type=="base64")return a;a=new Uint8Array(cp(a))}return t.password&&typeof encrypt_agile<"u"?PO(encrypt_agile(a,t.password),t):t.type==="file"?a0(t.file,a):t.type=="string"?Qu(a):a}function cB(e,t){var r=t||{},n=N9(e,r);return PO(n,r)}function Li(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return mf(gf(n));case"binary":return gf(n);case"string":return e;case"file":return a0(t.file,n,"utf8");case"buffer":return tr?Eo(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Li(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function uB(e,t){switch(t.type){case"base64":return mf(e);case"binary":return e;case"string":return e;case"file":return a0(t.file,e,"binary");case"buffer":return tr?Eo(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function _h(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return t.type=="base64"?mf(r):t.type=="string"?Qu(r):r;case"file":return a0(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function OO(e,t){RL(),KR(e);var r=ma(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=OO(e,r);return r.type="array",cp(n)}var a=0;if(r.sheet&&(typeof r.sheet=="number"?a=r.sheet:a=e.SheetNames.indexOf(r.sheet),!e.SheetNames[a]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return Li(S9(e,r),r);case"slk":case"sylk":return Li(GI.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"htm":case"html":return Li(AO(e.Sheets[e.SheetNames[a]],r),r);case"txt":return uB(jO(e.Sheets[e.SheetNames[a]],r),r);case"csv":return Li(bb(e.Sheets[e.SheetNames[a]],r),r,"\uFEFF");case"dif":return Li(VI.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"dbf":return _h(HI.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"prn":return Li(YI.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"rtf":return Li(tF.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"eth":return Li(ZP.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"fods":return Li(EO(e,r),r);case"wk1":return _h(t_.sheet_to_wk1(e.Sheets[e.SheetNames[a]],r),r);case"wk3":return _h(t_.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),_h(SO(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),cB(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return sB(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function fB(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(e.bookType=r.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function _y(e,t,r){var n={};return n.type="file",n.file=t,fB(n),OO(e,n)}function hB(e,t,r,n,a,i,o,s){var l=Ln(r),c=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),f=!0,d=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:r,enumerable:!1})}catch{d.__rowNum__=r}else d.__rowNum__=r;if(!o||e[r])for(var h=t.s.c;h<=t.e.c;++h){var x=o?e[r][h]:e[n[h]+l];if(x===void 0||x.t===void 0){if(c===void 0)continue;i[h]!=null&&(d[i[h]]=c);continue}var p=x.v;switch(x.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+x.t)}if(i[h]!=null){if(p==null)if(x.t=="e"&&p===null)d[i[h]]=null;else if(c!==void 0)d[i[h]]=c;else if(u&&p===null)d[i[h]]=null;else continue;else d[i[h]]=u&&(x.t!=="n"||x.t==="n"&&s.rawNumbers!==!1)?p:_o(x,p,s);p!=null&&(f=!1)}}return{row:d,isempty:f}}function nd(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,a=1,i=[],o=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},u=c.range!=null?c.range:e["!ref"];switch(c.header===1?n=1:c.header==="A"?n=2:Array.isArray(c.header)?n=3:c.header==null&&(n=0),typeof u){case"string":l=Ir(u);break;case"number":l=Ir(e["!ref"]),l.s.r=u;break;default:l=u}n>0&&(a=0);var f=Ln(l.s.r),d=[],h=[],x=0,p=0,m=Array.isArray(e),y=l.s.r,b=0,w={};m&&!e[y]&&(e[y]=[]);var S=c.skipHidden&&e["!cols"]||[],A=c.skipHidden&&e["!rows"]||[];for(b=l.s.c;b<=l.e.c;++b)if(!(S[b]||{}).hidden)switch(d[b]=Hn(b),r=m?e[y][b]:e[d[b]+f],n){case 1:i[b]=b-l.s.c;break;case 2:i[b]=d[b];break;case 3:i[b]=c.header[b-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=o=_o(r,null,c),p=w[o]||0,!p)w[o]=1;else{do s=o+"_"+p++;while(w[s]);w[o]=p,w[s]=1}i[b]=s}for(y=l.s.r+a;y<=l.e.r;++y)if(!(A[y]||{}).hidden){var O=hB(e,l,y,d,n,i,m,c);(O.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(h[x++]=O.row)}return h.length=x,h}var c_=/"/g;function dB(e,t,r,n,a,i,o,s){for(var l=!0,c=[],u="",f=Ln(r),d=t.s.c;d<=t.e.c;++d)if(n[d]){var h=s.dense?(e[r]||[])[d]:e[n[d]+f];if(h==null)u="";else if(h.v!=null){l=!1,u=""+(s.rawNumbers&&h.t=="n"?h.v:_o(h,null,s));for(var x=0,p=0;x!==u.length;++x)if((p=u.charCodeAt(x))===a||p===i||p===34||s.forceQuotes){u='"'+u.replace(c_,'""')+'"';break}u=="ID"&&(u='"ID"')}else h.f!=null&&!h.F?(l=!1,u="="+h.f,u.indexOf(",")>=0&&(u='"'+u.replace(c_,'""')+'"')):u="";c.push(u)}return s.blankrows===!1&&l?null:c.join(o)}function bb(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var a=Ir(e["!ref"]),i=n.FS!==void 0?n.FS:",",o=i.charCodeAt(0),s=n.RS!==void 0?n.RS:`
346
- `,l=s.charCodeAt(0),c=new RegExp((i=="|"?"\\|":i)+"+$"),u="",f=[];n.dense=Array.isArray(e);for(var d=n.skipHidden&&e["!cols"]||[],h=n.skipHidden&&e["!rows"]||[],x=a.s.c;x<=a.e.c;++x)(d[x]||{}).hidden||(f[x]=Hn(x));for(var p=0,m=a.s.r;m<=a.e.r;++m)(h[m]||{}).hidden||(u=dB(e,a,m,f,o,l,i,n),u!=null&&(n.strip&&(u=u.replace(c,"")),(u||n.blankrows!==!1)&&r.push((p++?s:"")+u)));return delete n.dense,r.join("")}function jO(e,t){t||(t={}),t.FS=" ",t.RS=`
347
- `;var r=bb(e,t);return r}function pB(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=Ir(e["!ref"]),i="",o=[],s,l=[],c=Array.isArray(e);for(s=a.s.c;s<=a.e.c;++s)o[s]=Hn(s);for(var u=a.s.r;u<=a.e.r;++u)for(i=Ln(u),s=a.s.c;s<=a.e.c;++s)if(t=o[s]+i,r=c?(e[u]||[])[s]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=t+"="+n}return l}function CO(e,t,r){var n=r||{},a=+!n.skipHeader,i=e||{},o=0,s=0;if(i&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?wn(n.origin):n.origin;o=l.r,s=l.c}var c,u={s:{c:0,r:0},e:{c:s,r:o+t.length-1+a}};if(i["!ref"]){var f=Ir(i["!ref"]);u.e.c=Math.max(u.e.c,f.e.c),u.e.r=Math.max(u.e.r,f.e.r),o==-1&&(o=f.e.r+1,u.e.r=o+t.length-1+a)}else o==-1&&(o=0,u.e.r=t.length-1+a);var d=n.header||[],h=0;t.forEach(function(p,m){In(p).forEach(function(y){(h=d.indexOf(y))==-1&&(d[h=d.length]=y);var b=p[y],w="z",S="",A=gr({c:s+h,r:o+m+a});c=bf(i,A),b&&typeof b=="object"&&!(b instanceof Date)?i[A]=b:(typeof b=="number"?w="n":typeof b=="boolean"?w="b":typeof b=="string"?w="s":b instanceof Date?(w="d",n.cellDates||(w="n",b=pa(b)),S=n.dateNF||Wr[14]):b===null&&n.nullError&&(w="e",b=0),c?(c.t=w,c.v=b,delete c.w,delete c.R,S&&(c.z=S)):i[A]=c={t:w,v:b},S&&(c.z=S))})}),u.e.c=Math.max(u.e.c,s+d.length-1);var x=Ln(o);if(a)for(h=0;h<d.length;++h)i[Hn(h+s)+x]={t:"s",v:d[h]};return i["!ref"]=an(u),i}function mB(e,t){return CO(null,e,t)}function bf(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=wn(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?bf(e,gr(t)):bf(e,gr({r:t,c:r||0}))}function vB(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function gB(){return{SheetNames:[],Sheets:{}}}function xB(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var o=i&&i[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=o+a)!=-1;++a);}if(bO(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function yB(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=vB(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function bB(e,t){return e.z=t,e}function kO(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function wB(e,t,r){return kO(e,"#"+t,r)}function _B(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function SB(e,t,r,n){for(var a=typeof t!="string"?t:Ir(t),i=typeof t=="string"?t:an(t),o=a.s.r;o<=a.e.r;++o)for(var s=a.s.c;s<=a.e.c;++s){var l=bf(e,o,s);l.t="n",l.F=i,delete l.v,o==a.s.r&&s==a.s.c&&(l.f=r,n&&(l.D=!0))}return e}var Ii={encode_col:Hn,encode_row:Ln,encode_cell:gr,encode_range:an,decode_col:cb,decode_row:lb,split_cell:R7,decode_cell:wn,decode_range:La,format_cell:_o,sheet_add_aoa:kP,sheet_add_json:CO,sheet_add_dom:NO,aoa_to_sheet:zc,json_to_sheet:mB,table_to_sheet:TO,table_to_book:V9,sheet_to_csv:bb,sheet_to_txt:jO,sheet_to_json:nd,sheet_to_html:AO,sheet_to_formulae:pB,sheet_to_row_object_array:nd,sheet_get_cell:bf,book_new:gB,book_append_sheet:xB,book_set_sheet_visibility:yB,cell_set_number_format:bB,cell_set_hyperlink:kO,cell_set_internal_link:wB,cell_add_comment:_B,sheet_set_array_formula:SB,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function Sy(e,t){if(!e)return[];const r=[];r.push([e.name||"School Report"]);const n=[e.address||"",e.phone?`Ph: ${e.phone}`:"",e.email||""].filter(Boolean);n.length&&r.push([n.join(" | ")]);const a=new Date().toLocaleDateString("en-IN",{day:"2-digit",month:"short",year:"numeric"}),i=[e.board?`Board: ${e.board}`:"",e.code?`School Code: ${e.code}`:"",`Generated: ${a}`].filter(Boolean);return r.push([i.join(" | ")]),t&&r.push([t]),r.push([]),r}function Ay(e,t,r){!t.length||r<=1||(e["!merges"]=e["!merges"]||[],t.forEach((n,a)=>{e["!merges"].push({s:{r:a,c:0},e:{r:a,c:r-1}})}))}function AB(e,t,r,n="Sheet1",a=null,i=null){let o,s,l;if(Array.isArray(e)&&typeof e[0]=="object"&&!Array.isArray(e[0])){const c=e;s=t||"export";const u=typeof r=="string"?r:"Sheet1",h=Sy(typeof r=="string"?n:r,typeof r=="string"?a:n);if(h.length>0&&c.length>0){const p=Object.keys(c[0]);l=p.length;const m=c.map(b=>p.map(w=>b[w])),y=[...h,p,...m];o=Ii.aoa_to_sheet(y),Ay(o,h,l)}else o=Ii.json_to_sheet(c);const x=Ii.book_new();Ii.book_append_sheet(x,o,u),_y(x,`${s}.xlsx`)}else{s=e;const c=t;l=Array.isArray(c)?c.length:0;const u=Sy(a,i),f=[...u,c,...r];o=Ii.aoa_to_sheet(f),Ay(o,u,l);const d=Ii.book_new();Ii.book_append_sheet(d,o,n),_y(d,`${s}.xlsx`)}}function NB(e,t,r=null,n=null){const a=Ii.book_new(),i=Sy(r,n);t.forEach(({name:o,headers:s,rows:l})=>{const c=[...i,s,...l],u=Ii.aoa_to_sheet(c);Ay(u,i,s.length),Ii.book_append_sheet(a,u,o)}),_y(a,`${e}.xlsx`)}function TB(e){return e!=null&&e.school_name?{name:e.school_name,code:e.school_code||"",address:e.address||"",phone:e.phone||"",email:e.email||"",board:e.board||""}:null}function EB(e,t){const[r,n]=W.useState(()=>{try{const i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),a=W.useCallback(i=>{const o=i instanceof Function?i(r):i;n(o);try{window.localStorage.setItem(e,JSON.stringify(o))}catch{}},[e,r]);return[r,a]}function PB(e){W.useEffect(()=>{const t=r=>{e.forEach(({key:n,ctrl:a,meta:i,shift:o,handler:s})=>{const l=r.key.toLowerCase()===n.toLowerCase(),c=a?r.ctrlKey||r.metaKey:!0,u=o?r.shiftKey:!0;l&&c&&u&&(r.preventDefault(),s())})};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])}function OB(e,t={}){const r=`form-draft-${e}`,[n,a]=W.useState(()=>{try{return!!localStorage.getItem(r)}catch{return!1}}),i=W.useCallback(l=>{try{localStorage.setItem(r,JSON.stringify({data:l,savedAt:Date.now()})),a(!0)}catch{}},[r]),o=W.useCallback(()=>{try{const l=localStorage.getItem(r);if(!l)return null;const c=JSON.parse(l);return Date.now()-c.savedAt>1440*60*1e3?(localStorage.removeItem(r),a(!1),null):c.data}catch{return null}},[r]),s=W.useCallback(()=>{try{localStorage.removeItem(r)}catch{}a(!1)},[r]);return{hasDraft:n,saveDraft:i,loadDraft:o,clearDraft:s}}const X1="recently-viewed",jB=8;function CB(){const[e,t]=W.useState(()=>{try{return JSON.parse(localStorage.getItem(X1))||[]}catch{return[]}}),r=W.useCallback(a=>{t(i=>{const o=i.filter(l=>l.id!==a.id||l.type!==a.type),s=[{...a,viewedAt:Date.now()},...o].slice(0,jB);try{localStorage.setItem(X1,JSON.stringify(s))}catch{}return s})},[]),n=W.useCallback(()=>{t([]);try{localStorage.removeItem(X1)}catch{}},[]);return{items:e,addItem:r,clearAll:n}}function kB(e=[],{paramName:t="tab"}={}){const r=W.useMemo(()=>e.map(s=>s.id||LB(s.label||"")),[e]),n=()=>{try{const l=new URLSearchParams(window.location.search).get(t);if(l!=null){const c=r.indexOf(l);if(c!==-1)return c}}catch{}return 0},[a,i]=W.useState(n),o=W.useCallback(s=>{i(s);try{const l=new URL(window.location.href),c=r[s];s===0?l.searchParams.delete(t):c&&l.searchParams.set(t,c),window.history.replaceState({},"",l.toString())}catch{}},[r,t]);return[a,o]}function LB(e){return e.toLowerCase().replace(/&/g,"and").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function IB(e,t=null){const[r,n]=W.useState(t);return{sortedData:W.useMemo(()=>{if(!r||!e)return e||[];const{key:o,direction:s}=r;return[...e].sort((l,c)=>{const u=l[o]??"",f=c[o]??"";return u<f?s==="asc"?-1:1:u>f?s==="asc"?1:-1:0})},[e,r]),sortConfig:r,requestSort:o=>{n(s=>{if((s==null?void 0:s.key)===o){if(s.direction==="asc")return{key:o,direction:"desc"};if(s.direction==="desc")return null}return{key:o,direction:"asc"}})}}}const LO=[20,50,100,1e3],Ny="table-page-sizes";function FB(e,t){if(!e)return t;try{const n=JSON.parse(localStorage.getItem(Ny)||"{}")[e];if(n&&LO.includes(n))return n}catch{}return t}function MB(e,t){if(e)try{const r=JSON.parse(localStorage.getItem(Ny)||"{}");r[e]=t,localStorage.setItem(Ny,JSON.stringify(r))}catch{}}function DB(e=20,t){const[r,n]=W.useState(0),[a,i]=W.useState(()=>FB(t,e)),o=W.useCallback(c=>{i(c),n(0),MB(t,c)},[t]),s=W.useCallback(()=>n(0),[]),l={page:r+1,page_size:a};return{page:r,pageSize:a,setPage:n,setPageSize:o,params:l,reset:s,pageSizeOptions:LO}}const u_=1440*60*1e3;function RB(e,{allClassesLabel:t="All Classes",allSectionsLabel:r="All Sections"}={}){const[n,a]=W.useState(""),[i,o]=W.useState(""),{data:s,isLoading:l}=Y8.useQuery({queryKey:["class-sections-lookup"],queryFn:e,staleTime:u_,gcTime:u_,enabled:!!e}),c=(s==null?void 0:s.classes)||[],u=W.useMemo(()=>[{value:"",label:t},...c.map(x=>({value:x.name,label:x.display_name}))],[c,t]),f=l&&!!n,d=W.useMemo(()=>{if(!n)return[{value:"",label:r}];const x=c.find(p=>p.name===n);return!x||!x.sections.length?[{value:"",label:r}]:[{value:"",label:r},...x.sections.map(p=>({value:p.section_name,label:p.section_name}))]},[n,c,r]);return{selectedClass:n,selectedSection:i,setSelectedClass:x=>{a(x),o("")},setSelectedSection:o,classOptions:u,sectionOptions:d,sectionsLoading:f,classes:c,isLoading:l}}function IO({value:e,id:t}){const r=typeof e=="string"?parseInt(e):e;if(isNaN(r))return e;const n=t||String(r),a=sessionStorage.getItem(`kpi_${n}`),[i,o]=W.useState(a?Number(a):0);return W.useEffect(()=>{if(r===0)return;const s=Number(sessionStorage.getItem(`kpi_${n}`)||0);if(s===r){o(r);return}let l=!1;const c=700,u=Date.now(),f=()=>{if(l)return;const d=Date.now()-u;if(d>=c){o(r),sessionStorage.setItem(`kpi_${n}`,r);return}const h=d/c;o(Math.round(s+(r-s)*h)),requestAnimationFrame(f)};return f(),()=>{l=!0}},[r,n]),i}const BB={primary:"bg-primary-500 text-white hover:bg-primary-700 hover:shadow-glow-primary focus:ring-primary-500",secondary:"bg-slate-100 text-slate-700 hover:bg-slate-200 focus:ring-slate-400",danger:"bg-danger-500 text-white hover:bg-danger-600 hover:shadow-glow-danger focus:ring-danger-500",ghost:"text-slate-600 hover:bg-slate-100 focus:ring-slate-400"},$B={sm:"px-3 py-1.5 text-xs gap-1.5",md:"px-4 py-2 text-sm gap-2",lg:"px-5 py-2.5 text-base gap-2"};function Kt({children:e,variant:t="primary",size:r="md",icon:n,loading:a,disabled:i,className:o,...s}){return v.jsxs("button",{disabled:i||a,className:gt("inline-flex items-center justify-center font-medium rounded-lg transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-offset-1 active:scale-[0.97]","disabled:opacity-50 disabled:cursor-not-allowed disabled:active:scale-100",BB[t],$B[r],o),...s,children:[a?v.jsx(Me.Loader2,{size:16,className:"animate-spin"}):n&&v.jsx(n,{size:16}),e]})}function qB({children:e,className:t,hover:r=!1,interactive:n=!1,...a}){return v.jsx("div",{className:gt("bg-white rounded-xl shadow-soft border border-slate-100 p-6 transition-all duration-200",r&&"hover:shadow-soft-lg hover:-translate-y-0.5",n&&"cursor-pointer hover:shadow-soft-lg hover:-translate-y-1 hover:border-slate-200 active:translate-y-0 active:shadow-soft",t),...a,children:e})}function UB({children:e,className:t}){return v.jsx("div",{className:gt("pb-4 mb-4 border-b border-slate-200",t),children:e})}function zB({children:e,className:t}){return v.jsx("div",{className:gt(t),children:e})}function WB({children:e,className:t}){return v.jsx("h3",{className:gt("text-lg font-semibold text-slate-900",t),children:e})}const HB={primary:"bg-primary-100 text-primary-700",success:"bg-success-100 text-success-600",warning:"bg-warning-100 text-warning-600",danger:"bg-danger-100 text-danger-600",neutral:"bg-slate-100 text-slate-600"},GB={Active:"success",Approved:"success",Paid:"success",Present:"success",Completed:"success",Published:"primary",Operational:"success",Pending:"warning",Late:"warning",Maintenance:"warning",Draft:"neutral",Generated:"warning","Partially Paid":"warning",Rejected:"danger",Absent:"danger",Overdue:"danger",Cancelled:"danger",Inactive:"neutral",Unpaid:"danger"};function Hs({children:e,variant:t,status:r,className:n}){const a=t||GB[r||e]||"neutral";return v.jsx("span",{className:gt("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium transition-colors",HB[a],n),children:e||r})}function wb({items:e,className:t}){return v.jsx("nav",{className:gt("flex items-center gap-1 text-xs text-slate-500 mb-2",t),children:e.map((r,n)=>v.jsxs("span",{className:"flex items-center gap-1",children:[n>0&&v.jsx(Me.ChevronRight,{size:12,className:"text-slate-400"}),r.href?v.jsx(bo.Link,{to:r.href,className:"hover:text-primary-600 transition-colors duration-150",children:r.label}):v.jsx("span",{className:"text-slate-800 font-medium",children:r.label})]},n))})}function FO({label:e,error:t,icon:r,className:n,...a}){return v.jsxs("div",{className:"space-y-1.5",children:[e&&v.jsx("label",{className:"text-sm font-medium text-slate-700",children:e}),v.jsxs("div",{className:"relative",children:[r&&v.jsx(r,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),v.jsx("input",{className:gt("w-full px-3 py-2 text-sm border border-slate-300 rounded-lg bg-white","placeholder:text-slate-400","focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent","transition-all duration-150","hover:border-slate-400",r&&"pl-9",t&&"border-danger-500 focus:ring-danger-500",n),...a})]}),t&&v.jsx("p",{className:"text-xs text-danger-500",children:t})]})}function MO({value:e,onChange:t,placeholder:r="Search...",className:n}){return v.jsx(FO,{icon:Me.Search,value:e,onChange:a=>t(a.target.value),placeholder:r,className:n})}function VB({label:e,options:t=[],value:r,onChange:n,placeholder:a="Select...",error:i,className:o,...s}){return v.jsxs("div",{className:"space-y-1.5",children:[e&&v.jsx("label",{className:"text-sm font-medium text-slate-700",children:e}),v.jsxs("div",{className:"relative",children:[v.jsxs("select",{value:r,onChange:l=>n(l.target.value),className:gt("w-full px-3 py-2 text-sm border border-slate-300 rounded-lg bg-white appearance-none","focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent","transition-all duration-150 hover:border-slate-400",i&&"border-danger-500 focus:ring-danger-500",o),...s,children:[v.jsx("option",{value:"",children:a}),t.map(l=>v.jsx("option",{value:l.value??l,children:l.label??l},l.value??l))]}),v.jsx(Me.ChevronDown,{size:16,className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"})]}),i&&v.jsx("p",{className:"text-xs text-danger-500",children:i})]})}const YB={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl",full:"max-w-[90vw]"};function Gc({open:e,onClose:t,title:r,children:n,footer:a,size:i="md",persistent:o=!0}){const s=W.useRef(null),l=W.useRef(null),c=W.useCallback(f=>{var d,h,x;if(f.key==="Escape"&&(f.stopPropagation(),o||t()),f.key==="Enter"&&(f.ctrlKey||f.metaKey)&&a&&s.current){const m=((h=(d=document.activeElement)==null?void 0:d.tagName)==null?void 0:h.toLowerCase())==="textarea",y=((x=document.activeElement)==null?void 0:x.getAttribute("contenteditable"))==="true";if(!m&&!y){const b=s.current.querySelectorAll('.flex.items-center.justify-end button, [class*="justify-end"] button'),w=b.length>0?b[b.length-1]:null;w&&!w.disabled&&(f.preventDefault(),w.click())}}if(f.key==="Tab"&&s.current){const p=s.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(p.length===0)return;const m=p[0],y=p[p.length-1];f.shiftKey&&document.activeElement===m?(f.preventDefault(),y.focus()):!f.shiftKey&&document.activeElement===y&&(f.preventDefault(),m.focus())}},[t,a]),u=W.useRef(!1);return W.useEffect(()=>{if(!e){u.current=!1;return}return document.body.style.overflow="hidden",document.addEventListener("keydown",c),()=>{document.body.style.overflow="",document.removeEventListener("keydown",c)}},[e,c]),W.useEffect(()=>{if(!(!e||u.current))return u.current=!0,l.current=document.activeElement,setTimeout(()=>{var d;const f=(d=s.current)==null?void 0:d.querySelectorAll('input, textarea, select, [tabindex]:not([tabindex="-1"])');f!=null&&f.length&&f[0].focus()},50),()=>{var f;(f=l.current)==null||f.focus()}},[e]),e?v.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",role:"presentation",children:[v.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-[2px] animate-fade-in-up",style:{animationDuration:"0.15s"},onClick:o?void 0:t,"aria-hidden":"true"}),v.jsxs("div",{ref:s,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",className:gt("relative bg-white rounded-xl shadow-2xl w-full max-h-[90vh] flex flex-col animate-fade-in-up",YB[i]),children:[v.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-200 shrink-0",children:[v.jsx("h2",{id:"modal-title",className:"text-lg font-semibold text-slate-900",children:r}),v.jsx("button",{onClick:t,"aria-label":"Close dialog",className:"p-1.5 rounded-lg hover:bg-slate-100 transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-primary-500",children:v.jsx(Me.X,{size:16,className:"text-slate-500"})})]}),v.jsx("div",{className:"px-6 py-4 overflow-y-auto flex-1",children:n}),a&&v.jsx("div",{className:"flex items-center justify-end gap-3 px-6 py-4 border-t border-slate-200 shrink-0",children:a})]})]}):null}function so({value:e,onChange:t,options:r=[],onSearch:n,placeholder:a="Search...",labelKey:i="label",valueKey:o="value",renderOption:s,loading:l=!1,showSearch:c}){const[u,f]=W.useState(!1),[d,h]=W.useState(""),[x,p]=W.useState({top:0,left:0,width:0}),m=W.useRef(null),y=W.useRef(null),b=c===!0||c!==!1&&r.length>5,w=r.find(L=>L[o]===e),S=W.useCallback(()=>{if(m.current){const L=m.current.getBoundingClientRect(),R=window.innerHeight-L.bottom,j=260,E=R<j&&L.top>j;p({top:E?L.top-j-4:L.bottom+4,left:L.left,width:L.width,above:E})}},[]);W.useEffect(()=>{const L=R=>{m.current&&!m.current.contains(R.target)&&!R.target.closest("[data-select-portal]")&&f(!1)};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[]),W.useEffect(()=>{if(u)return S(),window.addEventListener("scroll",S,!0),window.addEventListener("resize",S),()=>{window.removeEventListener("scroll",S,!0),window.removeEventListener("resize",S)}},[u,S]);const A=L=>{h(L),n&&(clearTimeout(y.current),y.current=setTimeout(()=>n(L),300))},O=L=>{t(L[o]),f(!1),h("")},N=L=>{L.stopPropagation(),t(""),h("")},C=d&&!n?r.filter(L=>(L[i]||"").toLowerCase().includes(d.toLowerCase())):r;return v.jsxs("div",{ref:m,className:"relative",children:[v.jsxs("div",{role:"combobox","aria-expanded":u,"aria-haspopup":"listbox",tabIndex:0,onClick:()=>f(!u),onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),f(!u)),L.key==="Escape"&&f(!1)},className:"w-full min-w-[160px] border border-slate-300 rounded-lg px-3.5 py-2.5 text-sm flex items-center justify-between cursor-pointer hover:border-slate-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150",children:[v.jsx("span",{className:w?"text-slate-800":"text-slate-400",children:w?s?s(w):w[i]:a}),v.jsxs("div",{className:"flex items-center gap-1",children:[e&&v.jsx("button",{onClick:N,"aria-label":"Clear selection",className:"p-0.5 hover:bg-slate-100 rounded transition-colors duration-150",children:v.jsx(Me.X,{size:12,className:"text-slate-400"})}),v.jsx(Me.ChevronDown,{size:16,className:`text-slate-400 transition-transform duration-150 ${u?"rotate-180":""}`})]})]}),u&&K8.createPortal(v.jsxs("div",{"data-select-portal":!0,className:"fixed z-[99999] bg-white border border-slate-200 rounded-xl shadow-lg max-h-[260px] overflow-hidden animate-fade-in-up",style:{top:x.top,left:x.left,width:x.width,animationDuration:"0.1s"},children:[b&&v.jsx("div",{className:"p-2 border-b border-slate-100",children:v.jsxs("div",{className:"flex items-center gap-2 border border-slate-200 rounded-lg px-2 py-1.5 focus-within:ring-2 focus-within:ring-primary-500 focus-within:border-transparent transition-all duration-150",children:[v.jsx(Me.Search,{size:14,className:"text-slate-400"}),v.jsx("input",{autoFocus:!0,value:d,onChange:L=>A(L.target.value),onKeyDown:L=>{L.key==="Escape"&&f(!1)},placeholder:"Type to search...",className:"w-full text-sm outline-none","aria-label":"Search options"})]})}),v.jsxs("div",{className:"overflow-y-auto max-h-[200px]",role:"listbox",children:[l&&v.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"Loading..."}),!l&&C.length===0&&v.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"No results found"}),C.map(L=>v.jsx("div",{role:"option","aria-selected":L[o]===e,onClick:()=>O(L),className:`px-3 py-2 text-sm cursor-pointer transition-colors duration-150 ${L[o]===e?"bg-primary-50 text-primary-700 font-medium":"text-slate-700 hover:bg-slate-50"} ${L.disabled?"opacity-50 pointer-events-none":""}`,children:s?s(L):L[i]},L[o]))]})]}),document.body)]})}function KB({columns:e=[],data:t=[],loading:r=!1,emptyMessage:n="No data found",emptyIcon:a,page:i,totalPages:o,totalCount:s,pageSize:l=20,onPageChange:c,onPageSizeChange:u,pageSizeOptions:f=[20,50,100,1e3],filters:d,search:h,onExport:x,exportLabel:p="Export",headerTitle:m,headerCount:y,headerExtra:b,sortConfig:w,onSort:S,onRowClick:A,rowClassName:O,className:N}){const C=c&&o>1,L=d&&d.length>0||h,R=m||x||b;return v.jsxs("div",{className:gt("bg-white border border-slate-200 rounded-xl transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",N),children:[R&&v.jsxs("div",{className:"flex items-center justify-between px-5 py-3.5 border-b border-slate-100",children:[v.jsx("div",{className:"flex items-center gap-2",children:m&&v.jsxs("h3",{className:"text-base font-semibold text-slate-900",children:[m,y!=null&&v.jsxs("span",{className:"ml-1.5 text-sm font-normal text-slate-400",children:["(",y,")"]})]})}),v.jsxs("div",{className:"flex items-center gap-2",children:[x&&v.jsxs("button",{onClick:x,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium text-slate-600 hover:bg-slate-100 border border-slate-200 transition-colors",children:[v.jsx(Me.Download,{size:13}),p]}),b]})]}),L&&v.jsx("div",{className:"px-5 pt-4 pb-5 border-b border-slate-100",children:v.jsxs("div",{className:"bg-slate-50 border border-slate-200 rounded-xl px-4 py-4 space-y-3",children:[v.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[v.jsxs("div",{className:"flex items-center gap-1.5 text-slate-500",children:[v.jsx(Me.Filter,{size:14}),v.jsx("span",{className:"text-xs font-semibold",children:"Filters"})]}),d&&d.map(j=>{var E;return v.jsx("div",{className:"min-w-[170px]",children:v.jsx(so,{value:j.value,onChange:j.onChange,options:j.options,placeholder:j.placeholder||((E=j.options[0])==null?void 0:E.label)||"Select...",loading:j.loading})},j.key)})]}),h&&v.jsx("div",{className:"w-full",children:v.jsx(MO,{value:h.value,onChange:h.onChange,placeholder:h.placeholder||"Search..."})})]})}),C&&v.jsx("div",{className:"border-b border-slate-100",children:v.jsx(XB,{page:i,totalPages:o,totalCount:s,pageSize:l,onPageChange:c,onPageSizeChange:u,pageSizeOptions:f})}),t.length===0&&!r?v.jsxs("div",{className:"text-center py-12 px-5",children:[a&&v.jsx("div",{className:"w-12 h-12 rounded-full bg-slate-100 flex items-center justify-center mx-auto mb-3",children:v.jsx(a,{size:20,className:"text-slate-400"})}),v.jsx("p",{className:"text-sm text-slate-400",children:n})]}):v.jsxs("div",{className:gt("overflow-x-auto relative",r&&"min-h-[200px]"),children:[r&&v.jsx("div",{className:"absolute inset-0 bg-white/60 backdrop-blur-[1px] z-10 flex items-center justify-center",children:v.jsxs("div",{className:"flex flex-col items-center gap-3 px-6 py-5 rounded-2xl bg-white/90 shadow-lg border border-slate-100",children:[v.jsxs("div",{className:"relative w-10 h-10",children:[v.jsx("div",{className:"absolute inset-0 border-[3px] border-slate-100 rounded-full"}),v.jsx("div",{className:"absolute inset-0 border-[3px] border-primary-500 border-t-transparent rounded-full animate-spin"})]}),v.jsx("span",{className:"text-xs font-medium text-slate-500 tracking-wide",children:"Fetching data..."})]})}),v.jsxs("table",{className:"w-full text-sm",children:[v.jsx("thead",{children:v.jsx("tr",{className:"bg-slate-50 border-b border-slate-200 text-left",children:e.map(j=>v.jsx("th",{className:gt("py-2.5 px-4 text-xs font-semibold text-slate-500 uppercase tracking-wider",j.align==="center"&&"text-center",j.align==="right"&&"text-right",j.sortable&&S&&"cursor-pointer select-none hover:text-slate-700",j.width),onClick:j.sortable&&S?()=>S(j.key):void 0,children:v.jsxs("span",{className:"inline-flex items-center gap-1",children:[j.label,j.sortable&&S&&(w==null?void 0:w.key)===j.key&&(w.direction==="asc"?v.jsx(Me.ChevronUp,{size:12,className:"text-slate-700"}):v.jsx(Me.ChevronDown,{size:12,className:"text-slate-700"}))]})},j.key))})}),v.jsx("tbody",{className:"divide-y divide-slate-100",children:t.map((j,E)=>v.jsx("tr",{className:gt("hover:bg-primary-50/40 transition-colors duration-150",A&&"cursor-pointer",O&&O(j)),onClick:A?()=>A(j):void 0,children:e.map(D=>v.jsx("td",{className:gt("py-2.5 px-4",D.align==="center"&&"text-center",D.align==="right"&&"text-right"),children:D.render?D.render(j,E):j[D.key]??""},D.key))},j.id||E))})]})]})]})}function XB({page:e=0,totalPages:t=1,totalCount:r,pageSize:n=20,onPageChange:a,onPageSizeChange:i,pageSizeOptions:o=[20,50,100,1e3]}){const s=e*n+1,l=Math.min((e+1)*n,r||(e+1)*n),c=()=>{const u=[];if(t<=5)for(let f=0;f<t;f++)u.push(f);else{u.push(0),e>2&&u.push("...");const f=Math.max(1,e-1),d=Math.min(t-2,e+1);for(let h=f;h<=d;h++)u.push(h);e<t-3&&u.push("..."),u.push(t-1)}return u};return v.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-t border-slate-100",children:[v.jsxs("div",{className:"flex items-center gap-5",children:[v.jsx("p",{className:"text-[11px] text-slate-400 font-medium tracking-wide",children:r!=null?v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:"text-slate-600 font-semibold",children:[s,"–",l]})," of ",v.jsx("span",{className:"text-slate-600 font-semibold",children:r})," results"]}):v.jsxs(v.Fragment,{children:["Page ",v.jsx("span",{className:"text-slate-600 font-semibold",children:e+1})," of ",v.jsx("span",{className:"text-slate-600 font-semibold",children:t})]})}),i&&v.jsx("div",{className:"flex items-center gap-1 bg-slate-50 rounded-lg border border-slate-200 p-0.5",children:o.map(u=>v.jsx("button",{onClick:()=>i(u),className:gt("px-2.5 py-1 rounded-md text-[11px] font-semibold transition-all duration-150",u===n?"bg-white text-slate-900 shadow-sm border border-slate-200":"text-slate-400 hover:text-slate-600"),children:u},u))})]}),v.jsxs("div",{className:"flex items-center",children:[v.jsx("button",{onClick:()=>a(e-1),disabled:e<=0,className:"w-8 h-8 rounded-l-lg border border-slate-200 flex items-center justify-center hover:bg-slate-50 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",children:v.jsx(Me.ChevronLeft,{size:14,className:"text-slate-500"})}),c().map((u,f)=>u==="..."?v.jsx("span",{className:"w-8 h-8 border-y border-slate-200 flex items-center justify-center text-[10px] text-slate-300",children:"•••"},`e-${f}`):v.jsx("button",{onClick:()=>a(u),className:`w-8 h-8 border-y border-r border-slate-200 flex items-center justify-center text-xs font-semibold transition-all duration-150 ${u===e?"bg-slate-900 text-white border-slate-900 relative z-10 shadow-sm":"text-slate-500 hover:bg-slate-50 hover:text-slate-900"}`,children:u+1},u)),v.jsx("button",{onClick:()=>a(e+1),disabled:e>=t-1,className:"w-8 h-8 rounded-r-lg border border-l-0 border-slate-200 flex items-center justify-center hover:bg-slate-50 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",children:v.jsx(Me.ChevronRight,{size:14,className:"text-slate-500"})})]})]})}function JB({items:e,brand:t,user:r,collapsed:n,onToggle:a,onLogout:i,onSettings:o}){const s=bo.useLocation(),[l,c]=W.useState(!1);e.findIndex(m=>s.pathname.startsWith(m.path)),W.useEffect(()=>{const m=s.pathname,y=e.find(b=>m.startsWith(b.path));if(y)try{const b=JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]"),w=[y.path,...b.filter(S=>S!==y.path)].slice(0,5);sessionStorage.setItem("sidebar-recent",JSON.stringify(w))}catch{}},[s.pathname,e]);const[u,f]=W.useState(!1);W.useEffect(()=>{const m=setTimeout(()=>f(!0),50);return()=>clearTimeout(m)},[]);const d=e.some(m=>m.group),h=d?e.reduce((m,y)=>{const b=y.group||"Other";return m[b]||(m[b]=[]),m[b].push(y),m},{}):null,x=(m,y)=>{const b=m.icon;return v.jsxs(bo.NavLink,{to:m.path,style:{animationDelay:`${y*50}ms`,animationFillMode:"forwards"},className:({isActive:w})=>gt("group relative flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-colors duration-150",n&&"justify-center px-2",w?"text-white bg-primary-500 shadow-lg shadow-primary-500/20 font-semibold":"text-slate-300 hover:bg-white/10 hover:text-white hover:shadow-[0_2px_12px_-2px_rgba(255,255,255,0.1)] hover:translate-x-0.5"),children:[b&&v.jsx(b,{size:20,className:gt("flex-shrink-0 transition-all duration-200",s.pathname.startsWith(m.path)&&"drop-shadow-[0_0_6px_rgba(255,255,255,0.5)]")}),v.jsx("span",{className:gt("truncate transition-all duration-200 overflow-hidden whitespace-nowrap",n?"w-0 opacity-0":"w-auto opacity-100"),style:{transitionDelay:n?"0ms":"100ms"},children:m.label}),n&&v.jsx("span",{className:"absolute left-full ml-3 px-2.5 py-1.5 rounded-md bg-slate-900 text-white text-xs font-medium whitespace-nowrap opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 shadow-lg z-50 pointer-events-none",children:m.label})]},m.path)},p=()=>{if(d&&h){let m=0;return Object.entries(h).map(([y,b])=>v.jsxs("div",{children:[!n&&v.jsx("p",{className:"text-[10px] uppercase tracking-wider text-slate-500 px-3 pt-4 pb-1 font-semibold",children:y}),b.map(w=>{const S=m;return m++,x(w,S)})]},y))}return e.map((m,y)=>x(m,y))};return v.jsxs(v.Fragment,{children:[v.jsx("style",{children:".sidebar-nav::-webkit-scrollbar { display: none; }"}),v.jsxs("aside",{className:gt("fixed left-0 top-0 h-screen bg-gradient-to-b from-slate-900 via-slate-800 to-slate-900 text-white flex flex-col transition-[width] duration-200 z-40 hidden md:flex border-r border-slate-700/30",n?"w-[68px]":"w-60"),children:[v.jsxs("div",{className:"flex items-center justify-between px-4 h-[72px]",children:[!n&&v.jsxs("div",{className:"flex flex-col",children:[v.jsx("span",{className:"text-lg font-bold tracking-tight",children:t}),v.jsx("span",{className:"text-[10px] text-slate-400 font-medium tracking-wide uppercase",children:"Admin Portal"})]}),v.jsx("button",{onClick:a,className:"p-1.5 rounded-lg hover:bg-white/10 transition-all duration-200",children:v.jsx("span",{className:gt("block transition-transform duration-200",n&&"rotate-180"),children:n?v.jsx(Me.PanelLeft,{size:18}):v.jsx(Me.PanelLeftClose,{size:18})})})]}),v.jsx("div",{className:"mx-4 h-px bg-gradient-to-r from-transparent via-slate-600/50 to-transparent"}),r&&v.jsx("div",{className:gt("px-4 py-4 cursor-pointer hover:bg-white/5 transition-colors duration-150 rounded-lg mx-2",n&&"px-2 py-4 flex justify-center mx-0"),onClick:()=>{o&&o()},children:v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsxs("div",{className:"relative flex-shrink-0",children:[v.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-primary-400 to-primary-600 flex items-center justify-center text-xs font-bold",children:(r.name||"").slice(0,2).toUpperCase()}),v.jsx("span",{className:"absolute bottom-0 right-0 w-3 h-3 bg-emerald-400 border-2 border-slate-900 rounded-full"})]}),!n&&v.jsxs("div",{className:"overflow-hidden",children:[v.jsx("p",{className:"text-sm font-semibold truncate",children:r.name}),v.jsx("p",{className:"text-xs text-slate-400 truncate",children:r.email}),r.role&&v.jsx("span",{className:"inline-block mt-1 px-2 py-0.5 text-[10px] font-medium bg-primary-500/20 text-primary-300 rounded-full",children:r.role})]})]})}),v.jsx("div",{className:"mx-4 h-px bg-gradient-to-r from-transparent via-slate-600/50 to-transparent"}),v.jsx("nav",{className:"sidebar-nav relative flex-1 overflow-y-auto py-4 px-2 space-y-1.5",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:p()}),i&&v.jsx("div",{className:"px-2 py-4 mt-2 border-t border-slate-700/30",children:v.jsxs("button",{onClick:()=>c(!0),className:gt("group relative flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm text-slate-300 hover:bg-red-500/10 hover:text-red-400 w-full transition-all duration-200",n&&"justify-center px-2"),children:[v.jsx(Me.LogOut,{size:20}),!n&&v.jsx("span",{children:"Logout"}),n&&v.jsx("span",{className:"absolute left-full ml-3 px-2.5 py-1.5 rounded-md bg-slate-900 text-white text-xs font-medium whitespace-nowrap opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 shadow-lg z-50 pointer-events-none",children:"Logout"})]})}),l&&v.jsx("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/50",onClick:()=>c(!1),children:v.jsx("div",{className:"bg-white rounded-xl p-6 w-80 shadow-2xl",onClick:m=>m.stopPropagation(),children:v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mb-3",children:v.jsx(Me.LogOut,{size:22,className:"text-red-600"})}),v.jsx("h3",{className:"text-lg font-semibold text-slate-900 mb-1",children:"Confirm Logout"}),v.jsx("p",{className:"text-sm text-slate-500 mb-5",children:"Are you sure you want to logout?"}),v.jsxs("div",{className:"flex gap-3 w-full",children:[v.jsx("button",{onClick:()=>c(!1),className:"flex-1 px-4 py-2 rounded-lg border border-slate-200 text-sm font-medium text-slate-700 hover:bg-slate-50 transition-colors",children:"Cancel"}),v.jsx("button",{onClick:()=>{c(!1),i()},className:"flex-1 px-4 py-2 rounded-lg bg-red-600 text-sm font-medium text-white hover:bg-red-700 transition-colors",children:"Logout"})]})]})})})]}),v.jsx(ZB,{items:e,onLogout:i})]})}function ZB({items:e,onLogout:t}){const[r,n]=W.useState(!1),[a,i]=W.useState(!1),o=e.slice(0,4),s=e.slice(4);return v.jsxs(v.Fragment,{children:[v.jsx("nav",{className:"fixed bottom-0 left-0 right-0 z-40 bg-white border-t border-slate-200 md:hidden",children:v.jsxs("div",{className:"flex items-center justify-around px-2 py-1.5",children:[o.map(l=>{const c=l.icon;return v.jsxs(bo.NavLink,{to:l.path,className:({isActive:u})=>gt("flex flex-col items-center gap-0.5 px-2 py-1.5 rounded-lg text-[10px] font-medium transition-colors duration-150 min-w-[48px]",u?"text-primary-600 bg-primary-50":"text-slate-500 hover:text-slate-700"),children:[c&&v.jsx(c,{size:20}),v.jsx("span",{className:"truncate",children:l.label.split(" ")[0]})]},l.path)}),s.length>0&&v.jsxs("button",{onClick:()=>n(!0),className:"flex flex-col items-center gap-0.5 px-2 py-1.5 rounded-lg text-[10px] font-medium text-slate-500 hover:text-slate-700 transition-colors duration-150 min-w-[48px]",children:[v.jsx(Me.MoreHorizontal,{size:20}),v.jsx("span",{children:"More"})]})]})}),r&&v.jsxs("div",{className:"fixed inset-0 z-50 md:hidden",onClick:()=>n(!1),children:[v.jsx("div",{className:"fixed inset-0 bg-black/40"}),v.jsxs("div",{className:"fixed bottom-0 left-0 right-0 bg-white rounded-t-2xl p-4 animate-fade-in-up",children:[v.jsxs("div",{className:"flex items-center justify-between mb-4",children:[v.jsx("h3",{className:"text-sm font-semibold text-slate-900",children:"More Options"}),v.jsx("button",{onClick:()=>n(!1),className:"p-1.5 rounded-lg hover:bg-slate-100 transition-colors",children:v.jsx(Me.X,{size:16,className:"text-slate-500"})})]}),v.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[s.map(l=>{const c=l.icon;return v.jsxs(bo.NavLink,{to:l.path,onClick:()=>n(!1),className:({isActive:u})=>gt("flex flex-col items-center gap-1.5 p-3 rounded-xl text-[11px] font-medium transition-all duration-150",u?"text-primary-600 bg-primary-50":"text-slate-600 hover:bg-slate-50"),children:[c&&v.jsx(c,{size:22}),v.jsx("span",{className:"text-center leading-tight",children:l.label})]},l.path)}),t&&v.jsxs("button",{onClick:()=>{n(!1),i(!0)},className:"flex flex-col items-center gap-1.5 p-3 rounded-xl text-[11px] font-medium text-danger-600 hover:bg-danger-50 transition-all duration-150",children:[v.jsx(Me.LogOut,{size:22}),v.jsx("span",{children:"Logout"})]})]})]})]}),a&&v.jsx("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/50",onClick:()=>i(!1),children:v.jsx("div",{className:"bg-white rounded-xl p-6 w-80 shadow-2xl",onClick:l=>l.stopPropagation(),children:v.jsxs("div",{className:"flex flex-col items-center text-center",children:[v.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mb-3",children:v.jsx(Me.LogOut,{size:22,className:"text-red-600"})}),v.jsx("h3",{className:"text-lg font-semibold text-slate-900 mb-1",children:"Confirm Logout"}),v.jsx("p",{className:"text-sm text-slate-500 mb-5",children:"Are you sure you want to logout?"}),v.jsxs("div",{className:"flex gap-3 w-full",children:[v.jsx("button",{onClick:()=>i(!1),className:"flex-1 px-4 py-2 rounded-lg border border-slate-200 text-sm font-medium text-slate-700 hover:bg-slate-50 transition-colors",children:"Cancel"}),v.jsx("button",{onClick:()=>{i(!1),t()},className:"flex-1 px-4 py-2 rounded-lg bg-red-600 text-sm font-medium text-white hover:bg-red-700 transition-colors",children:"Logout"})]})]})})})]})}function QB({title:e,subtitle:t,school:r,user:n,notificationCount:a=0,onNotificationClick:i,onLogout:o,onProfile:s,onSettings:l,onChangePassword:c,navItems:u=[],extraActions:f}){const[d,h]=W.useState(!1),x=W.useRef(null),p=bo.useNavigate(),m=(()=>{try{return JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]").slice(0,5)}catch{return[]}})();return W.useEffect(()=>{const y=b=>{x.current&&!x.current.contains(b.target)&&h(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]),v.jsxs("header",{className:"sticky top-0 z-30 bg-white/95 backdrop-blur-sm border-b border-slate-200 px-4 md:px-6 h-16 flex items-center justify-between",children:[v.jsx("div",{className:"flex-1"}),v.jsxs("div",{className:"absolute left-1/2 -translate-x-1/2 flex items-center gap-3",children:[(r==null?void 0:r.logo)&&v.jsx("img",{src:r.logo,alt:r.name||"School",className:"w-9 h-9 rounded-lg object-cover border border-slate-200"}),r!=null&&r.name?v.jsx("h1",{className:"text-lg font-bold text-slate-900",children:r.name}):!r&&e?v.jsxs("div",{children:[v.jsx("h1",{className:"text-lg font-bold text-slate-900",children:e}),t&&v.jsx("p",{className:"text-xs text-slate-500",children:t})]}):null]}),v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsxs("button",{onClick:()=>document.dispatchEvent(new KeyboardEvent("keydown",{key:"k",metaKey:!0,bubbles:!0})),className:"hidden md:flex items-center gap-2 px-3 py-1.5 text-xs text-slate-400 bg-slate-50 border border-slate-200 rounded-lg hover:border-slate-300 hover:bg-slate-100 transition-all duration-150",children:[v.jsx(Me.Search,{size:14}),v.jsx("span",{children:"Search..."}),v.jsx("kbd",{className:"ml-4 text-[10px] bg-white border border-slate-200 px-1.5 py-0.5 rounded text-slate-400",children:"⌘K"})]}),f,v.jsxs("button",{onClick:i,className:"relative p-2 rounded-lg hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors duration-150",children:[v.jsx(Me.Bell,{size:20,className:"text-slate-600 dark:text-slate-300"}),a>0&&v.jsx("span",{className:"absolute top-1 right-1 w-4 h-4 bg-danger-500 text-white text-[10px] font-bold rounded-full flex items-center justify-center",children:a})]}),n&&v.jsxs("div",{ref:x,className:"relative",children:[v.jsxs("button",{onClick:()=>h(!d),className:"flex items-center gap-2.5 pl-3 border-l border-slate-200 hover:bg-slate-50 rounded-lg py-1.5 pr-2 transition-colors duration-150",children:[v.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-primary-400 to-primary-600 flex items-center justify-center text-xs font-bold text-white",children:(n.name||"").slice(0,2).toUpperCase()}),v.jsxs("div",{className:"hidden sm:block text-left",children:[v.jsx("p",{className:"text-xs font-medium text-slate-900",children:n.name}),v.jsx("p",{className:"text-[10px] text-slate-500 capitalize",children:n.role})]}),v.jsx(Me.ChevronDown,{size:14,className:`text-slate-400 transition-transform duration-150 ${d?"rotate-180":""}`})]}),d&&v.jsxs("div",{className:"absolute right-0 top-full mt-2 w-56 bg-white border border-slate-200 rounded-xl shadow-soft-lg overflow-hidden animate-fade-in-up",style:{animationDuration:"0.15s"},children:[v.jsxs("div",{className:"px-4 py-3 border-b border-slate-100 bg-slate-50/50",children:[v.jsx("p",{className:"text-sm font-semibold text-slate-900",children:n.name}),v.jsx("p",{className:"text-xs text-slate-500 capitalize",children:n.role})]}),v.jsxs("div",{className:"py-1.5",children:[s&&v.jsxs("button",{onClick:()=>{h(!1),s()},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-slate-700 hover:bg-slate-50 transition-colors duration-150",children:[v.jsx(Me.User,{size:16,className:"text-slate-400"}),"My Profile"]}),l&&v.jsxs("button",{onClick:()=>{h(!1),l()},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-slate-700 hover:bg-slate-50 transition-colors duration-150",children:[v.jsx(Me.Settings,{size:16,className:"text-slate-400"}),"Settings"]}),c&&v.jsxs("button",{onClick:()=>{h(!1),c()},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-slate-700 hover:bg-slate-50 transition-colors duration-150",children:[v.jsx(Me.KeyRound,{size:16,className:"text-slate-400"}),"Change Password"]}),m.length>0&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"border-t border-slate-100 my-1"}),v.jsxs("div",{className:"px-4 py-2",children:[v.jsxs("p",{className:"text-[10px] uppercase tracking-wider text-slate-400 font-semibold flex items-center gap-1 mb-1.5",children:[v.jsx(Me.Clock,{size:10})," Recents"]}),m.map(y=>{const b=u.find(S=>S.path===y);if(!b)return null;const w=b.icon;return v.jsxs("button",{onClick:()=>{h(!1),p(y)},className:"flex items-center gap-2.5 w-full px-2 py-1.5 rounded-lg text-xs text-slate-600 hover:bg-slate-50 hover:text-slate-900 transition-colors duration-150",children:[w&&v.jsx(w,{size:14,className:"text-slate-400"}),b.label]},y)})]})]}),o&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"border-t border-slate-100 my-1"}),v.jsxs("button",{onClick:()=>{h(!1),o()},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-red-600 hover:bg-red-50 transition-colors duration-150",children:[v.jsx(Me.LogOut,{size:16,className:"text-red-400"}),"Logout"]})]})]})]})]})]})]})}function Zn({className:e}){return v.jsx("div",{className:gt("rounded-lg bg-gradient-to-r from-slate-200 via-slate-100 to-slate-200 bg-[length:200%_100%] animate-shimmer",e)})}function e$(){return v.jsxs("div",{className:"bg-white rounded-xl shadow-soft border border-slate-100 p-6 space-y-3",children:[v.jsx(Zn,{className:"h-4 w-1/3"}),v.jsx(Zn,{className:"h-8 w-1/2"}),v.jsx(Zn,{className:"h-3 w-2/3"})]})}function DO(){return v.jsxs("div",{className:"space-y-6",children:[v.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Array.from({length:4}).map((e,t)=>v.jsxs("div",{className:"bg-white rounded-xl border border-slate-100 p-5 flex items-center gap-4",children:[v.jsx(Zn,{className:"w-11 h-11 rounded-xl"}),v.jsxs("div",{className:"space-y-2 flex-1",children:[v.jsx(Zn,{className:"h-3 w-2/3"}),v.jsx(Zn,{className:"h-6 w-1/2"})]})]},t))}),v.jsxs("div",{className:"bg-white rounded-xl border border-slate-100 p-5",children:[v.jsx(Zn,{className:"h-4 w-1/4 mb-4"}),v.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:Array.from({length:4}).map((e,t)=>v.jsx(Zn,{className:"h-20 rounded-xl"},t))})]}),v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4",children:[v.jsxs("div",{className:"md:col-span-7 bg-white rounded-xl border border-slate-100 p-5",children:[v.jsx(Zn,{className:"h-4 w-1/4 mb-4"}),v.jsx(Zn,{className:"h-48 w-full"})]}),v.jsxs("div",{className:"md:col-span-5 bg-white rounded-xl border border-slate-100 p-5",children:[v.jsx(Zn,{className:"h-4 w-1/3 mb-4"}),v.jsx(Zn,{className:"h-48 w-full"})]})]})]})}function t$({rows:e=5,cols:t=4}){return v.jsxs("div",{className:"rounded-xl border border-slate-200 overflow-hidden",children:[v.jsx("div",{className:"flex gap-4 px-4 py-3 bg-slate-50 border-b border-slate-200",children:Array.from({length:t}).map((r,n)=>v.jsx(Zn,{className:"h-3 flex-1"},n))}),Array.from({length:e}).map((r,n)=>v.jsx("div",{className:"flex gap-4 px-4 py-3 border-b border-slate-100 last:border-0",children:Array.from({length:t}).map((a,i)=>v.jsx(Zn,{className:"h-3 flex-1"},i))},n))]})}function r$({children:e,user:t,allowedRoles:r,redirectTo:n="/login"}){return t?r&&!r.includes(t.role)?v.jsx(bo.Navigate,{to:n,replace:!0}):e:v.jsx(bo.Navigate,{to:n,replace:!0})}function n$({activities:e=[],className:t}){return e.length===0?null:v.jsx("div",{className:gt("space-y-1",t),children:e.map((r,n)=>v.jsxs("div",{className:"flex items-start gap-3 py-3 border-b border-surface-50 last:border-0",children:[v.jsx("div",{className:gt("w-8 h-8 rounded flex items-center justify-center flex-shrink-0",r.bgColor||"bg-info-100"),children:r.icon||v.jsx(Me.Activity,{className:"w-3.5 h-3.5 text-info-600"})}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsx("p",{className:"text-sm font-medium text-surface-800 truncate",children:r.title}),v.jsx("p",{className:"text-xs text-surface-500",children:r.description})]}),v.jsxs("div",{className:"text-right flex-shrink-0",children:[v.jsx("p",{className:"text-2xs text-surface-400",children:r.time}),r.tag&&v.jsx("span",{className:"inline-block mt-0.5 px-1.5 py-0.5 text-2xs border border-surface-200 text-surface-500 rounded",children:r.tag})]})]},n))})}const RO=W.createContext(null),a$={success:Me.CheckCircle,error:Me.AlertCircle,warning:Me.AlertTriangle,info:Me.Info},i$={success:"bg-emerald-100 text-emerald-600",error:"bg-red-100 text-red-600",warning:"bg-amber-100 text-amber-600",info:"bg-blue-100 text-blue-600"},o$={success:"border-l-emerald-500",error:"border-l-red-500",warning:"border-l-amber-500",info:"border-l-blue-500"};function s$({id:e,type:t="info",message:r,onRemove:n}){const a=a$[t]||Me.Info,[i,o]=W.useState(!1),[s,l]=W.useState(100);W.useEffect(()=>{const f=setInterval(()=>{l(h=>h<=0?(clearInterval(f),0):h-1)},50),d=setTimeout(()=>{o(!0),setTimeout(()=>n(e),300)},5e3);return()=>{clearInterval(f),clearTimeout(d)}},[e,n]);const c=()=>{o(!0),setTimeout(()=>n(e),300)};return v.jsxs("div",{className:`flex items-start gap-3 px-4 py-3.5 bg-white border border-slate-200 border-l-4 ${o$[t]} rounded-xl shadow-soft-lg max-w-sm transition-all duration-300 ${i?"opacity-0 translate-x-4":"opacity-100 translate-x-0 animate-slide-in-right"}`,children:[v.jsx("div",{className:`w-8 h-8 rounded-lg ${i$[t]} flex items-center justify-center flex-shrink-0`,children:v.jsx(a,{size:16})}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsx("p",{className:"text-sm font-medium text-slate-900",children:r}),v.jsx("div",{className:"w-full h-0.5 bg-slate-100 rounded-full mt-2 overflow-hidden",children:v.jsx("div",{className:`h-full rounded-full transition-all duration-100 ${t==="success"?"bg-emerald-400":t==="error"?"bg-red-400":t==="warning"?"bg-amber-400":"bg-blue-400"}`,style:{width:`${s}%`}})})]}),v.jsx("button",{onClick:c,className:"shrink-0 p-1 rounded-lg hover:bg-slate-100 transition-colors duration-150 mt-0.5",children:v.jsx(Me.X,{size:14,className:"text-slate-400"})})]})}function l$({id:e,message:t,onConfirm:r,onUndo:n,timeout:a=5e3,onRemove:i}){const[o,s]=W.useState(a),[l,c]=W.useState(!1),u=W.useRef(!1);W.useEffect(()=>{const d=setInterval(()=>{s(h=>h<=100?(clearInterval(d),u.current||(r(),c(!0),setTimeout(()=>i(e),300)),0):h-100)},100);return()=>clearInterval(d)},[e,r,i,a]);const f=()=>{u.current=!0,n(),c(!0),setTimeout(()=>i(e),300)};return v.jsxs("div",{className:`flex items-center gap-3 px-4 py-3.5 rounded-xl shadow-soft-lg max-w-sm bg-slate-900 text-white transition-all duration-300 ${l?"opacity-0 translate-x-4":"opacity-100 translate-x-0 animate-slide-in-right"}`,children:[v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsx("p",{className:"text-sm font-medium",children:t}),v.jsx("div",{className:"w-full h-1 bg-slate-700 rounded-full mt-2 overflow-hidden",children:v.jsx("div",{className:"h-full bg-primary-400 rounded-full transition-all duration-100",style:{width:`${o/a*100}%`}})})]}),v.jsx("button",{onClick:f,className:"text-sm font-bold text-primary-400 hover:text-primary-300 transition-colors whitespace-nowrap px-3 py-1.5 bg-slate-800 rounded-lg hover:bg-slate-700",children:"Undo"})]})}function c$({children:e}){const[t,r]=W.useState([]),[n,a]=W.useState([]),i=W.useCallback((u,f="info")=>{const d=Date.now()+Math.random();r(h=>[...h,{id:d,message:u,type:f}])},[]),o=W.useCallback(u=>{r(f=>f.filter(d=>d.id!==u))},[]),s=W.useCallback((u,f,d,h=5e3)=>{const x=Date.now()+Math.random();a(p=>[...p,{id:x,message:u,onConfirm:f,onUndo:d,timeout:h}])},[]),l=W.useCallback(u=>{a(f=>f.filter(d=>d.id!==u))},[]),c=W.useMemo(()=>({success:u=>i(u,"success"),error:u=>i(u,"error"),warning:u=>i(u,"warning"),info:u=>i(u,"info"),undoable:(u,f,d,h)=>s(u,f,d,h)}),[i,s]);return v.jsxs(RO.Provider,{value:c,children:[e,v.jsxs("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-3",children:[t.map(u=>v.jsx(s$,{...u,onRemove:o},u.id)),n.map(u=>v.jsx(l$,{...u,onRemove:l},u.id))]})]})}function u$(){const e=W.useContext(RO);if(!e)throw new Error("useToast must be used within ToastProvider");return e}function Ty({open:e,onClose:t,onConfirm:r,title:n="Confirm Delete",message:a="Are you sure you want to delete this? This action cannot be undone.",confirmText:i="Delete",loading:o=!1}){return v.jsxs(Gc,{open:e,onClose:t,title:n,size:"sm",children:[v.jsxs("div",{className:"flex flex-col items-center text-center py-2",children:[v.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mb-3",children:v.jsx(Me.AlertTriangle,{className:"w-6 h-6 text-red-600"})}),v.jsx("p",{className:"text-sm text-slate-600",children:a})]}),v.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[v.jsx(Kt,{variant:"ghost",onClick:t,children:"Cancel"}),v.jsx(Kt,{variant:"primary",onClick:r,disabled:o,className:"!bg-red-600 hover:!bg-red-700",children:o?"Deleting...":i})]})]})}function f$({tabs:e,active:t,onChange:r,className:n}){return v.jsx("div",{className:gt("flex gap-1 bg-slate-100/80 rounded-xl p-1.5 max-w-full overflow-x-auto",n),children:e.map((a,i)=>{const o=t===i,s=typeof a=="string"?a:a.label,l=typeof a=="object"?a.icon:null;return v.jsxs("button",{onClick:()=>r(i),className:gt("flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 whitespace-nowrap",o?"bg-white text-primary-700 shadow-sm ring-1 ring-slate-200/60 font-semibold":"text-slate-500 hover:text-slate-700 hover:bg-white/50"),children:[l&&v.jsx(l,{size:15,className:o?"text-primary-600":"text-slate-400"}),s,typeof a=="object"&&a.count!=null&&v.jsx("span",{className:gt("text-[10px] font-bold px-1.5 py-0.5 rounded-full min-w-[18px] text-center",o?"bg-primary-100 text-primary-700":"bg-slate-200 text-slate-500"),children:a.count})]},s)})})}function h$({checked:e,onChange:t,label:r,description:n,disabled:a,className:i}){return v.jsxs("label",{className:gt("flex items-center gap-3 cursor-pointer group",a&&"opacity-50 cursor-not-allowed",i),children:[v.jsxs("div",{className:"relative",children:[v.jsx("input",{type:"checkbox",checked:e,onChange:t,disabled:a,className:"sr-only peer"}),v.jsx("div",{className:gt("w-5 h-5 rounded-md border-2 flex items-center justify-center transition-all duration-200","peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500 peer-focus-visible:ring-offset-2","group-hover:border-primary-400","group-active:scale-90",e?"bg-primary-500 border-primary-500 shadow-glow-primary":"border-slate-300 bg-white"),children:e&&v.jsx(Me.Check,{size:13,className:"text-white",strokeWidth:3})})]}),(r||n)&&v.jsxs("div",{children:[r&&v.jsx("span",{className:"text-sm font-medium text-slate-700 group-hover:text-slate-900 transition-colors",children:r}),n&&v.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:n})]})]})}function BO({children:e,className:t}){return v.jsxs("div",{className:gt("bg-white border border-slate-200 rounded-xl px-4 py-3 mb-6 flex flex-wrap items-center gap-3",t),children:[v.jsxs("div",{className:"flex items-center gap-1.5 text-slate-400 mr-1",children:[v.jsx(Me.Filter,{size:15}),v.jsx("span",{className:"text-xs font-medium hidden sm:inline",children:"Filters"})]}),e]})}BO.Item=function({children:t,className:r}){return v.jsx("div",{className:gt("min-w-[160px]",r),children:t})};const d$=["January","February","March","April","May","June","July","August","September","October","November","December"],p$=["Su","Mo","Tu","We","Th","Fr","Sa"];function $l(e){if(!e)return null;const[t,r,n]=e.split("-").map(Number);return new Date(t,r-1,n)}function f_(e){if(!e)return"";const t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${n}`}function m$(e){if(!e)return"";const[t,r,n]=e.split("-");return`${n}/${r}/${t}`}function v$(e,t){return new Date(e,t+1,0).getDate()}function g$(e,t){return new Date(e,t,1).getDay()}function $O({value:e,onChange:t,label:r,placeholder:n,min:a,max:i,className:o,disabled:s,error:l}){const[c,u]=W.useState(!1),[f,d]=W.useState(()=>($l(e)||new Date).getFullYear()),[h,x]=W.useState(()=>($l(e)||new Date).getMonth()),[p,m]=W.useState(!1),y=W.useRef(null),b=W.useRef(null);W.useEffect(()=>{if(e){const z=$l(e);z&&(d(z.getFullYear()),x(z.getMonth()))}},[e]),W.useEffect(()=>{function z(te){y.current&&!y.current.contains(te.target)&&(u(!1),m(!1))}return c&&document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[c]),W.useEffect(()=>{if(p&&b.current){const z=b.current.querySelector('[data-active="true"]');z&&z.scrollIntoView({block:"center"})}},[p]);const w=$l(e),S=new Date;S.setHours(0,0,0,0);const A=$l(a),O=$l(i),N=z=>!!(A&&z<A||O&&z>O),C=v$(f,h),L=g$(f,h),R=()=>{h===0?(x(11),d(f-1)):x(h-1)},j=()=>{h===11?(x(0),d(f+1)):x(h+1)},E=z=>{const te=new Date(f,h,z);N(te)||(t(f_(te)),u(!1),m(!1))},D=()=>{N(S)||(t(f_(S)),d(S.getFullYear()),x(S.getMonth()),u(!1),m(!1))},U=()=>{t(""),u(!1),m(!1)},H=new Date().getFullYear(),B=Array.from({length:80},(z,te)=>H-60+te);return v.jsxs("div",{className:gt("relative",o),ref:y,children:[r&&v.jsx("label",{className:"text-xs font-medium text-slate-600 mb-1.5 block",children:r}),v.jsxs("button",{type:"button",disabled:s,onClick:()=>{s||u(!c)},className:gt("w-full flex items-center gap-2.5 px-3 py-2.5 text-sm border rounded-xl bg-white text-left transition-all duration-200","hover:border-primary-300 hover:shadow-sm focus:outline-none focus:ring-2 focus:ring-primary-500/20 focus:border-primary-400",c&&"ring-2 ring-primary-500/20 border-primary-400 shadow-sm",l?"border-red-400":"border-slate-300",s&&"opacity-50 cursor-not-allowed bg-slate-50"),children:[v.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary-50 flex items-center justify-center flex-shrink-0",children:v.jsx(Me.Calendar,{size:15,className:"text-primary-500"})}),v.jsx("span",{className:gt("flex-1 truncate",e?"text-slate-800 font-medium":"text-slate-400"),children:e?m$(e):n||"Select date"}),e&&!s&&v.jsx("span",{onClick:z=>{z.stopPropagation(),U()},className:"text-slate-400 hover:text-slate-600 text-lg leading-none px-1",children:"×"})]}),l&&v.jsx("p",{className:"text-xs text-red-500 mt-1",children:l}),c&&v.jsxs("div",{className:"absolute z-50 mt-2 w-[300px] bg-white border border-slate-200 rounded-xl shadow-lg shadow-slate-200/50 p-3 animate-in fade-in slide-in-from-top-2 duration-200",children:[v.jsxs("div",{className:"flex items-center justify-between mb-3",children:[v.jsx("button",{type:"button",onClick:R,className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-slate-100 text-slate-600 transition-colors",children:v.jsx(Me.ChevronLeft,{size:16})}),v.jsxs("button",{type:"button",onClick:()=>m(!p),className:"text-sm font-semibold text-slate-800 hover:text-primary-600 hover:bg-primary-50 px-3 py-1 rounded-lg transition-colors",children:[d$[h]," ",f]}),v.jsx("button",{type:"button",onClick:j,className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-slate-100 text-slate-600 transition-colors",children:v.jsx(Me.ChevronRight,{size:16})})]}),p?v.jsx("div",{ref:b,className:"h-[220px] overflow-y-auto grid grid-cols-4 gap-1 px-1",children:B.map(z=>v.jsx("button",{type:"button","data-active":z===f,onClick:()=>{d(z),m(!1)},className:gt("py-1.5 text-xs rounded-lg transition-colors",z===f?"bg-primary-500 text-white font-bold":"hover:bg-slate-100 text-slate-700",z===H&&z!==f&&"font-semibold text-primary-600"),children:z},z))}):v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"grid grid-cols-7 mb-1",children:p$.map(z=>v.jsx("div",{className:"text-center text-[10px] font-semibold text-slate-400 uppercase py-1",children:z},z))}),v.jsxs("div",{className:"grid grid-cols-7 gap-0.5",children:[Array.from({length:L},(z,te)=>v.jsx("div",{},`empty-${te}`)),Array.from({length:C},(z,te)=>{const Z=te+1,ee=new Date(f,h,Z),ce=w&&ee.getTime()===w.getTime(),P=ee.getTime()===S.getTime(),I=N(ee);return v.jsx("button",{type:"button",disabled:I,onClick:()=>E(Z),className:gt("w-9 h-9 flex items-center justify-center text-sm rounded-lg transition-all duration-150 mx-auto",ce?"bg-primary-500 text-white font-bold shadow-sm shadow-primary-200":P?"bg-primary-50 text-primary-700 font-semibold ring-1 ring-primary-200":"text-slate-700 hover:bg-slate-100",I&&"opacity-30 cursor-not-allowed hover:bg-transparent"),children:Z},Z)})]}),v.jsxs("div",{className:"flex items-center justify-between mt-3 pt-2.5 border-t border-slate-100",children:[v.jsx("button",{type:"button",onClick:D,className:"text-xs font-medium text-primary-600 hover:text-primary-700 hover:bg-primary-50 px-2.5 py-1.5 rounded-lg transition-colors",children:"Today"}),e&&v.jsx("button",{type:"button",onClick:U,className:"text-xs font-medium text-slate-500 hover:text-red-600 hover:bg-red-50 px-2.5 py-1.5 rounded-lg transition-colors",children:"Clear"})]})]})]})]})}function x$({value:e,onChange:t,label:r,placeholder:n,min:a,max:i,className:o,disabled:s,error:l}){return v.jsx($O,{value:e,onChange:t,label:r,placeholder:n,min:a,max:i,className:o,disabled:s,error:l})}const h_=["January","February","March","April","May","June","July","August","September","October","November","December"],y$=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],b$=["Su","Mo","Tu","We","Th","Fr","Sa"];function Fs(e){if(!e)return null;const[t,r,n]=e.split("-").map(Number);return new Date(t,r-1,n)}function ql(e){if(!e)return"";const t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${n}`}function Sh(e){if(!e)return"";const t=Fs(e);return t?`${t.getDate()} ${y$[t.getMonth()]} ${t.getFullYear()}`:""}function w$(e,t){return new Date(e,t+1,0).getDate()}function _$(e,t){return new Date(e,t,1).getDay()}function J1(e,t){return!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function S$(e,t,r){return!e||!t||!r?!1:e>t&&e<r}function d_({year:e,month:t,startDate:r,endDate:n,hoverDate:a,onSelect:i,onHover:o,min:s,max:l}){const c=w$(e,t),u=_$(e,t),f=Fs(s),d=Fs(l),h=m=>!!(f&&m<f||d&&m>d),x=new Date;x.setHours(0,0,0,0);const p=n||a;return v.jsxs("div",{children:[v.jsx("div",{className:"grid grid-cols-7 mb-1",children:b$.map(m=>v.jsx("div",{className:"text-center text-[10px] font-semibold text-slate-400 uppercase py-1",children:m},m))}),v.jsxs("div",{className:"grid grid-cols-7 gap-y-0.5",children:[Array.from({length:u},(m,y)=>v.jsx("div",{},`e-${y}`)),Array.from({length:c},(m,y)=>{const b=y+1,w=new Date(e,t,b),S=J1(w,r),A=J1(w,n),O=r&&p&&S$(w,r,p),N=J1(w,x),C=h(w);let L="text-slate-700",R="";return S||A?R="bg-gradient-to-br from-orange-400 to-rose-500 text-white font-bold shadow-sm shadow-orange-200":O?R="bg-orange-50 text-orange-800":N&&(R="ring-1 ring-orange-300 text-orange-700 font-semibold"),v.jsx("button",{type:"button",disabled:C,onClick:()=>!C&&i(w),onMouseEnter:()=>o(w),className:gt("w-9 h-9 flex items-center justify-center text-sm rounded-lg transition-all duration-100 mx-auto",R||L,!C&&!S&&!A&&!O&&"hover:bg-orange-100 hover:text-orange-700",C&&"opacity-30 cursor-not-allowed",S&&"rounded-r-none",A&&"rounded-l-none",O&&"rounded-none"),children:b},b)})]})]})}function A$({startValue:e,endValue:t,onChange:r,label:n,placeholder:a,min:i,max:o,className:s,disabled:l,error:c}){const[u,f]=W.useState(!1),[d,h]=W.useState("start"),[x,p]=W.useState(null),[m,y]=W.useState(null),[b,w]=W.useState(null),[S,A]=W.useState(()=>{const H=Fs(e)||new Date;return{year:H.getFullYear(),month:H.getMonth()}}),O=W.useRef(null),N=S.month===11?{year:S.year+1,month:0}:{year:S.year,month:S.month+1};W.useEffect(()=>{if(e){const H=Fs(e);H&&A({year:H.getFullYear(),month:H.getMonth()})}},[e]),W.useEffect(()=>{p(Fs(e)),y(Fs(t))},[e,t]),W.useEffect(()=>{function H(B){O.current&&!O.current.contains(B.target)&&f(!1)}return u&&document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[u]);const C=H=>{d==="start"||H<x?(p(H),y(null),h("end")):(y(H),h("start"),r(ql(x),ql(H)),f(!1))},L=()=>{S.month===0?A({year:S.year-1,month:11}):A({year:S.year,month:S.month-1})},R=()=>{S.month===11?A({year:S.year+1,month:0}):A({year:S.year,month:S.month+1})},j=[{label:"Today",fn:()=>{const H=new Date;return H.setHours(0,0,0,0),[H,H]}},{label:"This Week",fn:()=>{const H=new Date;H.setHours(0,0,0,0);const B=new Date(H);B.setDate(H.getDate()-H.getDay());const z=new Date(B);return z.setDate(B.getDate()+6),[B,z]}},{label:"This Month",fn:()=>{const H=new Date;return[new Date(H.getFullYear(),H.getMonth(),1),new Date(H.getFullYear(),H.getMonth()+1,0)]}},{label:"Last 7 Days",fn:()=>{const H=new Date;H.setHours(0,0,0,0);const B=new Date(H);return B.setDate(H.getDate()-6),[B,H]}},{label:"Last 30 Days",fn:()=>{const H=new Date;H.setHours(0,0,0,0);const B=new Date(H);return B.setDate(H.getDate()-29),[B,H]}}],E=H=>{const[B,z]=H();p(B),y(z),r(ql(B),ql(z)),f(!1),h("start")},D=()=>{p(null),y(null),r("",""),f(!1),h("start")},U=e&&t;return v.jsxs("div",{className:gt("relative",s),ref:O,children:[n&&v.jsx("label",{className:"text-xs font-medium text-slate-600 mb-1.5 block",children:n}),v.jsxs("button",{type:"button",disabled:l,onClick:()=>{l||f(!u)},className:gt("w-full flex items-center gap-2 px-3 py-2.5 text-sm border rounded-xl bg-white text-left transition-all duration-200","hover:border-orange-300 hover:shadow-sm focus:outline-none focus:ring-2 focus:ring-orange-500/20 focus:border-orange-400",u&&"ring-2 ring-orange-500/20 border-orange-400 shadow-sm",c?"border-red-400":"border-slate-300",l&&"opacity-50 cursor-not-allowed bg-slate-50"),children:[v.jsx("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-orange-50 to-rose-50 flex items-center justify-center flex-shrink-0 border border-orange-100",children:v.jsx(Me.Calendar,{size:15,className:"text-orange-500"})}),v.jsxs("div",{className:"flex items-center gap-1.5 flex-1 min-w-0",children:[v.jsx("span",{className:gt("truncate",e?"text-slate-800 font-medium":"text-slate-400"),children:e?Sh(e):"Start date"}),v.jsx(Me.ArrowRight,{size:12,className:"text-slate-300 flex-shrink-0"}),v.jsx("span",{className:gt("truncate",t?"text-slate-800 font-medium":"text-slate-400"),children:t?Sh(t):"End date"})]}),U&&!l&&v.jsx("span",{onClick:H=>{H.stopPropagation(),D()},className:"text-slate-400 hover:text-slate-600 text-lg leading-none px-1 flex-shrink-0",children:"×"})]}),c&&v.jsx("p",{className:"text-xs text-red-500 mt-1",children:c}),u&&v.jsxs("div",{className:"absolute z-50 mt-2 bg-white border border-slate-200 rounded-2xl shadow-xl shadow-slate-200/60 p-4 animate-in fade-in slide-in-from-top-2 duration-200 left-0",children:[v.jsxs("div",{className:"flex gap-4",children:[v.jsxs("div",{className:"w-[120px] border-r border-slate-100 pr-3 space-y-1",children:[v.jsx("p",{className:"text-[10px] font-semibold text-slate-400 uppercase mb-2",children:"Quick Select"}),j.map(H=>v.jsx("button",{type:"button",onClick:()=>E(H.fn),className:"w-full text-left text-xs text-slate-600 hover:text-orange-700 hover:bg-orange-50 px-2.5 py-1.5 rounded-lg transition-colors font-medium",children:H.label},H.label))]}),v.jsxs("div",{className:"flex gap-4",children:[v.jsxs("div",{className:"w-[260px]",children:[v.jsxs("div",{className:"flex items-center justify-between mb-3",children:[v.jsx("button",{type:"button",onClick:L,className:"w-7 h-7 flex items-center justify-center rounded-lg hover:bg-slate-100 text-slate-500 transition-colors",children:v.jsx(Me.ChevronLeft,{size:14})}),v.jsxs("span",{className:"text-sm font-semibold text-slate-800",children:[h_[S.month]," ",S.year]}),v.jsx("div",{className:"w-7"})]}),v.jsx(d_,{year:S.year,month:S.month,startDate:x,endDate:m,hoverDate:d==="end"?b:null,onSelect:C,onHover:w,min:i,max:o})]}),v.jsxs("div",{className:"w-[260px]",children:[v.jsxs("div",{className:"flex items-center justify-between mb-3",children:[v.jsx("div",{className:"w-7"}),v.jsxs("span",{className:"text-sm font-semibold text-slate-800",children:[h_[N.month]," ",N.year]}),v.jsx("button",{type:"button",onClick:R,className:"w-7 h-7 flex items-center justify-center rounded-lg hover:bg-slate-100 text-slate-500 transition-colors",children:v.jsx(Me.ChevronRight,{size:14})})]}),v.jsx(d_,{year:N.year,month:N.month,startDate:x,endDate:m,hoverDate:d==="end"?b:null,onSelect:C,onHover:w,min:i,max:o})]})]})]}),v.jsxs("div",{className:"flex items-center justify-between mt-3 pt-3 border-t border-slate-100",children:[v.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[v.jsx("span",{className:gt("px-2.5 py-1 rounded-lg border transition-colors",d==="start"?"bg-orange-50 border-orange-200 text-orange-700 font-semibold":"border-slate-200 text-slate-500"),children:x?Sh(ql(x)):"Start"}),v.jsx(Me.ArrowRight,{size:12,className:"text-slate-300"}),v.jsx("span",{className:gt("px-2.5 py-1 rounded-lg border transition-colors",d==="end"?"bg-orange-50 border-orange-200 text-orange-700 font-semibold":"border-slate-200 text-slate-500"),children:m?Sh(ql(m)):"End"})]}),U&&v.jsx("button",{type:"button",onClick:D,className:"text-xs font-medium text-slate-500 hover:text-red-600 hover:bg-red-50 px-2.5 py-1.5 rounded-lg transition-colors",children:"Clear"})]})]})]})}function N$({value:e,onChange:t,label:r,className:n,disabled:a}){return v.jsxs("div",{className:n,children:[r&&v.jsx("label",{className:"text-xs font-medium text-slate-500 mb-1.5 block",children:r}),v.jsxs("div",{className:"relative",children:[v.jsx(Me.Clock,{size:15,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"}),v.jsx("input",{type:"time",value:e||"",onChange:i=>t(i.target.value),disabled:a,className:gt("w-full min-w-[160px] pl-10 pr-3.5 py-2.5 text-sm border border-slate-300 rounded-lg bg-white","focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent","transition-all duration-150 hover:border-slate-400","disabled:opacity-50 disabled:cursor-not-allowed","[&::-webkit-calendar-picker-indicator]:opacity-60 [&::-webkit-calendar-picker-indicator]:cursor-pointer")})]})]})}class T$ extends W.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("ErrorBoundary caught:",t,r)}render(){return this.state.hasError?v.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] p-8",children:[v.jsx("div",{className:"w-16 h-16 rounded-full bg-red-50 flex items-center justify-center mb-4",children:v.jsx("svg",{className:"w-8 h-8 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),v.jsx("h2",{className:"text-lg font-bold text-slate-900 mb-2",children:"Something went wrong"}),v.jsx("p",{className:"text-sm text-slate-500 text-center mb-4 max-w-md",children:"An unexpected error occurred. Please try refreshing the page."}),v.jsx("button",{onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},className:"px-4 py-2 bg-primary-500 text-white text-sm font-medium rounded-lg hover:bg-primary-700 transition-colors",children:"Retry"})]}):this.props.children}}function E$(){const[e,t]=W.useState(navigator.onLine),[r,n]=W.useState(!1);return W.useEffect(()=>{const a=()=>{t(!0),n(!0),setTimeout(()=>n(!1),3e3)},i=()=>t(!1);return window.addEventListener("online",a),window.addEventListener("offline",i),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",i)}},[]),e&&!r?null:v.jsx("div",{className:`fixed top-0 left-0 right-0 z-[200] flex items-center justify-center py-2 px-4 text-sm font-medium transition-all duration-300 ${e?"bg-emerald-500 text-white":"bg-red-500 text-white"}`,children:e?v.jsxs(v.Fragment,{children:[v.jsx(Me.Wifi,{size:16,className:"mr-2"})," Back online"]}):v.jsxs(v.Fragment,{children:[v.jsx(Me.WifiOff,{size:16,className:"mr-2"})," You're offline. Some features may not work."]})})}function P$({label:e,sortKey:t,sortConfig:r,onSort:n,className:a}){const i=(r==null?void 0:r.key)===t,o=i?r.direction:null;return v.jsxs("button",{onClick:()=>n(t),className:gt("flex items-center gap-1 text-xs font-semibold text-slate-500 uppercase tracking-wider hover:text-slate-700 transition-colors",a),children:[e,v.jsxs("span",{className:"text-slate-300",children:[!i&&v.jsx(Me.ChevronsUpDown,{size:12}),o==="asc"&&v.jsx(Me.ChevronUp,{size:12,className:"text-primary-500"}),o==="desc"&&v.jsx(Me.ChevronDown,{size:12,className:"text-primary-500"})]})]})}function O$({children:e,content:t,className:r}){const[n,a]=W.useState(!1),[i,o]=W.useState({top:0,left:0}),s=W.useRef(null),l=W.useRef(null),c=()=>{clearTimeout(l.current),l.current=setTimeout(()=>{if(s.current){const f=s.current.getBoundingClientRect();o({top:f.bottom+8,left:Math.min(f.left,window.innerWidth-320)})}a(!0)},400)},u=()=>{clearTimeout(l.current),l.current=setTimeout(()=>a(!1),200)};return v.jsxs(v.Fragment,{children:[v.jsx("span",{ref:s,onMouseEnter:c,onMouseLeave:u,className:gt("inline-block",r),children:e}),n&&v.jsx("div",{className:"fixed z-[100] w-72 bg-white border border-slate-200 rounded-xl shadow-soft-lg p-4 animate-fade-in-up",style:{top:i.top,left:i.left,animationDuration:"0.15s"},onMouseEnter:()=>clearTimeout(l.current),onMouseLeave:u,children:t})]})}const p_={noData:v.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[v.jsx("rect",{x:"40",y:"30",width:"120",height:"90",rx:"8",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),v.jsx("rect",{x:"55",y:"50",width:"90",height:"8",rx:"4",fill:"#e2e8f0"}),v.jsx("rect",{x:"55",y:"65",width:"70",height:"8",rx:"4",fill:"#e2e8f0"}),v.jsx("rect",{x:"55",y:"80",width:"50",height:"8",rx:"4",fill:"#e2e8f0"}),v.jsx("circle",{cx:"100",cy:"105",r:"4",fill:"#cbd5e1"}),v.jsx("path",{d:"M85 100 L100 112 L115 100",stroke:"#cbd5e1",strokeWidth:"2",strokeLinecap:"round"})]}),noStudents:v.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[v.jsx("circle",{cx:"100",cy:"55",r:"25",fill:"#e0f2fe",stroke:"#bae6fd",strokeWidth:"2"}),v.jsx("circle",{cx:"100",cy:"48",r:"10",fill:"#7dd3fc"}),v.jsx("path",{d:"M80 72 Q100 85 120 72",stroke:"#7dd3fc",strokeWidth:"3",fill:"none"}),v.jsx("rect",{x:"60",y:"90",width:"80",height:"40",rx:"6",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),v.jsx("line",{x1:"75",y1:"102",x2:"125",y2:"102",stroke:"#e2e8f0",strokeWidth:"2"}),v.jsx("line",{x1:"75",y1:"112",x2:"110",y2:"112",stroke:"#e2e8f0",strokeWidth:"2"}),v.jsx("line",{x1:"75",y1:"122",x2:"95",y2:"122",stroke:"#e2e8f0",strokeWidth:"2"})]}),noResults:v.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[v.jsx("circle",{cx:"85",cy:"70",r:"30",stroke:"#e2e8f0",strokeWidth:"3",fill:"#f8fafc"}),v.jsx("line",{x1:"107",y1:"92",x2:"130",y2:"115",stroke:"#cbd5e1",strokeWidth:"4",strokeLinecap:"round"}),v.jsx("path",{d:"M75 65 L80 75 L95 60",stroke:"#94a3b8",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}),noSchedule:v.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[v.jsx("rect",{x:"50",y:"30",width:"100",height:"100",rx:"8",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),v.jsx("rect",{x:"50",y:"30",width:"100",height:"25",rx:"8",fill:"#e0f2fe"}),v.jsx("circle",{cx:"70",cy:"70",r:"4",fill:"#cbd5e1"}),v.jsx("circle",{cx:"100",cy:"70",r:"4",fill:"#cbd5e1"}),v.jsx("circle",{cx:"130",cy:"70",r:"4",fill:"#cbd5e1"}),v.jsx("circle",{cx:"70",cy:"90",r:"4",fill:"#cbd5e1"}),v.jsx("circle",{cx:"100",cy:"90",r:"4",fill:"#0ea5e9"}),v.jsx("circle",{cx:"130",cy:"90",r:"4",fill:"#cbd5e1"}),v.jsx("circle",{cx:"70",cy:"110",r:"4",fill:"#cbd5e1"}),v.jsx("circle",{cx:"100",cy:"110",r:"4",fill:"#cbd5e1"}),v.jsx("circle",{cx:"130",cy:"110",r:"4",fill:"#cbd5e1"})]}),success:v.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[v.jsx("circle",{cx:"100",cy:"75",r:"40",fill:"#dcfce7",stroke:"#86efac",strokeWidth:"2"}),v.jsx("path",{d:"M80 75 L95 90 L120 60",stroke:"#22c55e",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})]})};function j$({type:e="noData",title:t,message:r,action:n,className:a}){return v.jsxs("div",{className:gt("flex flex-col items-center justify-center py-12 text-center",a),children:[p_[e]||p_.noData,t&&v.jsx("p",{className:"text-base font-semibold text-slate-700 mt-4",children:t}),r&&v.jsx("p",{className:"text-sm text-slate-400 mt-1 max-w-sm",children:r}),n&&v.jsx("div",{className:"mt-4",children:n})]})}function C$({title:e,children:t,className:r}){return v.jsxs("div",{className:gt("bg-white border border-slate-200 rounded-xl p-5 transition-all duration-200 hover:shadow-sm",r),children:[v.jsxs("h3",{className:"text-sm font-bold text-slate-900 mb-4 flex items-center gap-2",children:[v.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary-500"}),e]}),t]})}function k$({tokenExpiresAt:e,onLogout:t,onRefresh:r,warningMinutes:n=5}){const[a,i]=W.useState(!1),[o,s]=W.useState(0),[l,c]=W.useState(!1),u=W.useRef(null);W.useEffect(()=>{if(!e)return;const x=()=>{const p=Date.now(),y=(typeof e=="number"?e:new Date(e).getTime())-p,b=n*60*1e3;y<=0?(i(!1),t==null||t()):y<=b?(i(!0),s(Math.ceil(y/1e3))):i(!1)};return x(),u.current=setInterval(x,1e3),()=>clearInterval(u.current)},[e,n,t]);const f=async()=>{c(!0);try{r?await r():window.location.reload(),i(!1)}catch{t==null||t()}finally{c(!1)}};if(!a)return null;const d=Math.floor(o/60),h=o%60;return v.jsx("div",{className:"fixed bottom-20 right-4 z-[150] bg-amber-50 border border-amber-200 rounded-xl shadow-soft-lg p-4 max-w-sm animate-slide-in-right",children:v.jsxs("div",{className:"flex items-start gap-3",children:[v.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-100 flex items-center justify-center flex-shrink-0",children:v.jsx(Me.Clock,{size:16,className:"text-amber-600"})}),v.jsxs("div",{className:"flex-1",children:[v.jsx("p",{className:"text-sm font-semibold text-amber-800",children:"Session Expiring Soon"}),v.jsxs("p",{className:"text-xs text-amber-600 mt-0.5",children:["Your session will expire in ",d,":",h.toString().padStart(2,"0")]}),v.jsxs("div",{className:"flex gap-2 mt-2",children:[v.jsx("button",{onClick:f,disabled:l,className:"px-3 py-1.5 text-xs font-medium bg-amber-500 text-white rounded-lg hover:bg-amber-600 transition-colors disabled:opacity-50",children:l?"Refreshing...":"Stay Logged In"}),v.jsx("button",{onClick:t,className:"px-3 py-1.5 text-xs font-medium text-amber-700 hover:bg-amber-100 rounded-lg transition-colors",children:"Logout Now"})]})]})]})})}const L$=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Ah(e){if(!e)return"";const[t,r]=e.split(":"),n=parseInt(t);return`${n>12?n-12:n}:${r} ${n>=12?"PM":"AM"}`}function I$({periods:e=[],timetable:t={},days:r=L$,editable:n=!1,onSlotClick:a,onSlotDelete:i,onEmptyClick:o,onDrop:s}){e.filter(p=>!p.is_break);const l=[...e].sort((p,m)=>(p.start_time||"").localeCompare(m.start_time||"")),c=new Date,u=`${String(c.getHours()).padStart(2,"0")}:${String(c.getMinutes()).padStart(2,"0")}`,f=c.toLocaleDateString("en-US",{weekday:"long"}),d=l.findIndex(p=>!p.is_break&&p.start_time<=u&&p.end_time>u),h=r.includes(f),x=(p,m)=>{const y=t[m];return y&&y[p]||null};return l.length===0?v.jsx("div",{className:"bg-white border border-slate-200 rounded-xl p-8 text-center text-slate-400",children:"No timetable configured yet"}):v.jsx("div",{className:"bg-white border border-slate-200 rounded-xl overflow-auto shadow-soft",children:v.jsxs("div",{className:"grid min-w-[900px]",style:{gridTemplateColumns:`220px repeat(${r.length}, 1fr)`},children:[v.jsx("div",{className:"p-4 bg-gradient-to-br from-slate-50 to-slate-100/80 border-b border-slate-200 flex flex-col justify-center",children:v.jsx("p",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Time / Day"})}),r.map(p=>{const m=new Date().toLocaleDateString("en-US",{weekday:"long"})===p;return v.jsx("div",{className:"p-3 bg-gradient-to-br from-slate-50 to-slate-100/80 border-b border-l border-slate-200 flex items-center justify-center",children:v.jsx("div",{className:`px-4 py-2 rounded-lg text-center ${m?"bg-primary-500 shadow-glow-primary":"bg-white shadow-sm border border-slate-100"}`,children:v.jsx("p",{className:`text-sm font-semibold ${m?"text-white":"text-slate-800"}`,children:p})})},p)}),l.map((p,m)=>{const y=l.filter((w,S)=>S<m&&!w.is_break).length;if(p.is_break)return v.jsxs("div",{className:"bg-red-50 border-b border-red-100 p-4 flex items-center justify-center gap-3",style:{gridColumn:"1 / -1"},children:[v.jsxs("span",{className:"text-sm font-bold text-red-500",children:["☕ ",p.name||"Break"]}),v.jsxs("span",{className:"text-sm text-red-400",children:["(",Ah(p.start_time)," – ",Ah(p.end_time),")"]})]},p.id||`break-${m}`);const b=h&&m===d;return v.jsxs(W.Fragment,{children:[v.jsxs("div",{className:`p-4 border-b border-slate-100 flex items-center gap-3 relative ${b?"bg-red-50/60":"bg-slate-50/50"}`,children:[b&&v.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 bg-red-500 rounded-r"}),v.jsx("span",{className:`w-8 h-8 rounded-lg flex items-center justify-center text-xs font-bold flex-shrink-0 ${b?"bg-red-100 text-red-700":"bg-primary-100 text-primary-700"}`,children:y+1}),v.jsxs("div",{children:[v.jsx("p",{className:`text-sm font-bold ${b?"text-red-900":"text-slate-900"}`,children:p.name||`Period ${y+1}`}),v.jsxs("p",{className:`text-xs font-medium ${b?"text-red-600":"text-slate-600"}`,children:[Ah(p.start_time)," – ",Ah(p.end_time)]}),b&&v.jsx("p",{className:"text-[9px] font-semibold text-red-500 mt-0.5 animate-pulse",children:"● NOW"})]})]}),r.map(w=>{const S=x(y,w),A=b&&w===f;return v.jsx("div",{className:`p-1.5 border-b border-l border-slate-100 flex items-center justify-center min-h-[90px] ${b?"bg-red-50/30":""} ${A?"ring-2 ring-inset ring-red-300 bg-red-50/50":""}`,children:S?v.jsxs("div",{className:`relative w-full p-3 rounded-lg group transition-all duration-200 ${S.slot_type&&S.slot_type!=="Subject"?"bg-amber-50 border border-amber-200"+(a?" cursor-pointer hover:shadow-md hover:border-amber-300":""):"bg-blue-100 border border-blue-200"+(a?" cursor-pointer hover:shadow-md hover:border-blue-300":"")}`,onClick:()=>a&&a(y,w,S),children:[n&&v.jsxs("div",{className:"absolute top-1.5 right-1.5 flex gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity duration-150",children:[v.jsx("button",{onClick:O=>{O.stopPropagation(),a&&a(y,w,S)},className:"p-1 rounded hover:bg-blue-200 transition-colors",children:v.jsx(Me.Pencil,{className:"w-3.5 h-3.5 text-blue-600"})}),v.jsx("button",{onClick:O=>{O.stopPropagation(),i&&i(y,w,S)},className:"p-1 rounded hover:bg-red-100 transition-colors",children:v.jsx(Me.Trash2,{className:"w-3.5 h-3.5 text-red-500"})})]}),v.jsx("p",{className:"text-sm font-bold text-slate-900",children:S.subject||""}),v.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:S.teacher_name||S.teacher||""}),(S.slot_type||S.type)&&(S.slot_type||S.type)!=="class"&&v.jsx("span",{className:"inline-block mt-1 text-[10px] px-1.5 py-0.5 rounded bg-slate-200 text-slate-600",children:S.slot_type||S.type})]}):n?v.jsx("div",{onClick:()=>o&&o(y,w),onDragOver:O=>{O.preventDefault(),O.currentTarget.classList.add("border-primary-400","bg-primary-50")},onDragLeave:O=>{O.currentTarget.classList.remove("border-primary-400","bg-primary-50")},onDrop:O=>{if(O.preventDefault(),O.currentTarget.classList.remove("border-primary-400","bg-primary-50"),s)try{const N=JSON.parse(O.dataTransfer.getData("application/json"));s(y,w,N)}catch{}},className:"w-full h-full min-h-[70px] border-2 border-dashed border-slate-200 rounded-lg flex items-center justify-center cursor-pointer hover:border-primary-400 hover:bg-blue-50/40 transition-all duration-200",children:v.jsx("span",{className:"text-xs text-slate-400 font-medium",children:"+ Add"})}):v.jsx("div",{className:"w-full h-full min-h-[70px] flex items-center justify-center",children:v.jsx("span",{className:"text-xs text-slate-300",children:"—"})})},`${p.id||m}-${w}`)})]},p.id||`period-${m}`)})]})})}function F$({page:e=0,totalPages:t=1,totalCount:r,pageSize:n=20,onPageChange:a}){if(t<=1)return null;const i=e*n+1,o=Math.min((e+1)*n,r||(e+1)*n),s=()=>{const l=[];if(t<=5)for(let c=0;c<t;c++)l.push(c);else{l.push(0),e>2&&l.push("...");const c=Math.max(1,e-1),u=Math.min(t-2,e+1);for(let f=c;f<=u;f++)l.push(f);e<t-3&&l.push("..."),l.push(t-1)}return l};return v.jsxs("div",{className:"flex items-center justify-between py-2.5",children:[v.jsx("p",{className:"text-[11px] text-slate-400 font-medium tracking-wide",children:r!=null?v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:"text-slate-600 font-semibold",children:[i,"–",o]})," of ",v.jsx("span",{className:"text-slate-600 font-semibold",children:r})," results"]}):v.jsxs(v.Fragment,{children:["Page ",v.jsx("span",{className:"text-slate-600 font-semibold",children:e+1})," of ",v.jsx("span",{className:"text-slate-600 font-semibold",children:t})]})}),v.jsxs("div",{className:"flex items-center",children:[v.jsx("button",{onClick:()=>a(e-1),disabled:e<=0,className:"w-8 h-8 rounded-l-lg border border-slate-200 flex items-center justify-center hover:bg-slate-50 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",children:v.jsx(Me.ChevronLeft,{size:14,className:"text-slate-500"})}),s().map((l,c)=>l==="..."?v.jsx("span",{className:"w-8 h-8 border-y border-slate-200 flex items-center justify-center text-[10px] text-slate-300",children:"•••"},`e-${c}`):v.jsx("button",{onClick:()=>a(l),className:`w-8 h-8 border-y border-r border-slate-200 flex items-center justify-center text-xs font-semibold transition-all duration-150 ${l===e?"bg-slate-900 text-white border-slate-900 relative z-10 shadow-sm":"text-slate-500 hover:bg-slate-50 hover:text-slate-900"} `,children:l+1},l)),v.jsx("button",{onClick:()=>a(e+1),disabled:e>=t-1,className:"w-8 h-8 rounded-r-lg border border-l-0 border-slate-200 flex items-center justify-center hover:bg-slate-50 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",children:v.jsx(Me.ChevronRight,{size:14,className:"text-slate-500"})})]})]})}function M$({title:e="Portal",subtitle:t="Sign in to your account",icon:r,gradientFrom:n="from-indigo-500",gradientTo:a="to-purple-700",accentColor:i="indigo",buttonColor:o="bg-teal-600 hover:bg-teal-700 shadow-teal-500/20 hover:shadow-teal-500/30",onSubmit:s,loading:l=!1,error:c=null,supportEmail:u="support@theinquisitive.in"}){const[f,d]=W.useState(""),[h,x]=W.useState(""),[p,m]=W.useState(!1),[y,b]=W.useState(""),[w,S]=W.useState(""),A=O=>{if(O.preventDefault(),b(""),S(""),!f){b("Email is required");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(f)){b("Invalid email");return}if(!h){S("Password is required");return}s({email:f,password:h})};return v.jsxs("div",{className:`min-h-screen flex items-center justify-center bg-gradient-to-br ${n} ${a} relative overflow-hidden`,children:[v.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[v.jsx("div",{className:"absolute -top-40 -right-40 w-80 h-80 rounded-full bg-white/5"}),v.jsx("div",{className:"absolute -bottom-32 -left-32 w-64 h-64 rounded-full bg-white/5"})]}),v.jsxs("div",{className:"relative bg-white rounded-2xl shadow-2xl p-8 w-full max-w-[420px] text-center mx-4",children:[r&&v.jsx("div",{className:`w-14 h-14 rounded-xl bg-gradient-to-br from-${i}-50 to-${i}-100 flex items-center justify-center mx-auto mb-5 shadow-sm`,children:v.jsx(r,{className:`w-7 h-7 text-${i}-600`})}),v.jsx("h1",{className:"text-xl font-bold text-slate-800 mb-0.5",children:e}),v.jsx("p",{className:"text-sm text-slate-400 mb-6",children:t}),c&&v.jsx("div",{className:"bg-red-50 border border-red-200 text-red-700 text-sm rounded-lg p-3 mb-4 text-left",children:c}),v.jsxs("form",{onSubmit:A,className:"space-y-4",children:[v.jsxs("div",{children:[v.jsxs("div",{className:"relative",children:[v.jsx(Me.Mail,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),v.jsx("input",{type:"email",placeholder:"Email Address",value:f,onChange:O=>{d(O.target.value),b("")},className:`w-full pl-10 pr-4 py-2.5 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-${i}-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${y?"border-red-400":"border-slate-300"}`})]}),y&&v.jsx("p",{className:"text-xs text-red-500 mt-1 text-left",children:y})]}),v.jsxs("div",{children:[v.jsxs("div",{className:"relative",children:[v.jsx(Me.Lock,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),v.jsx("input",{type:p?"text":"password",placeholder:"Password",value:h,onChange:O=>{x(O.target.value),S("")},className:`w-full pl-10 pr-10 py-2.5 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-${i}-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${w?"border-red-400":"border-slate-300"}`}),v.jsx("button",{type:"button",onClick:()=>m(!p),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600",children:p?v.jsx(Me.EyeOff,{className:"w-4 h-4"}):v.jsx(Me.Eye,{className:"w-4 h-4"})})]}),w&&v.jsx("p",{className:"text-xs text-red-500 mt-1 text-left",children:w})]}),v.jsx("button",{type:"submit",disabled:l,className:`w-full py-3 ${o} text-white font-semibold rounded-xl disabled:opacity-50 transition-all duration-150 active:scale-[0.97] shadow-lg`,children:l?"Signing in...":"Sign In"})]}),v.jsx("div",{className:"mt-6 pt-5 border-t border-slate-100",children:v.jsxs("p",{className:"text-xs text-slate-400",children:["Having technical issues?"," ",v.jsx("a",{href:`mailto:${u}`,className:`text-${i}-500 hover:underline font-medium`,children:"Contact support"})]})})]})]})}function D$({open:e,onClose:t,onSubmit:r,loading:n,error:a}){const[i,o]=W.useState({current_password:"",new_password:"",confirm_password:""}),[s,l]=W.useState(!1),[c,u]=W.useState(!1),[f,d]=W.useState(!1),[h,x]=W.useState({}),p=()=>{const b={};return i.current_password||(b.current_password="Current password is required"),i.new_password?i.new_password.length<6&&(b.new_password="Password must be at least 6 characters"):b.new_password="New password is required",i.confirm_password?i.new_password!==i.confirm_password&&(b.confirm_password="Passwords do not match"):b.confirm_password="Please confirm your new password",b},m=()=>{const b=p();x(b),!(Object.keys(b).length>0)&&r(i)},y=()=>{o({current_password:"",new_password:"",confirm_password:""}),x({}),l(!1),u(!1),d(!1),t()};return v.jsxs(Gc,{open:e,onClose:y,title:"Change Password",size:"sm",children:[v.jsxs("div",{className:"space-y-4",children:[a&&v.jsx("div",{className:"p-3 rounded-lg bg-red-50 border border-red-200",children:v.jsx("p",{className:"text-sm text-red-600",children:a})}),v.jsxs("div",{className:"space-y-1.5",children:[v.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Current Password"}),v.jsxs("div",{className:"relative",children:[v.jsx(Me.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),v.jsx("input",{type:s?"text":"password",value:i.current_password,onChange:b=>o({...i,current_password:b.target.value}),placeholder:"Enter current password",className:`w-full pl-9 pr-10 py-2 text-sm border rounded-lg bg-white placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${h.current_password?"border-red-400":"border-slate-300"}`}),v.jsx("button",{type:"button",onClick:()=>l(!s),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:s?v.jsx(Me.EyeOff,{size:16}):v.jsx(Me.Eye,{size:16})})]}),h.current_password&&v.jsx("p",{className:"text-xs text-red-500",children:h.current_password})]}),v.jsxs("div",{className:"space-y-1.5",children:[v.jsx("label",{className:"text-sm font-medium text-slate-700",children:"New Password"}),v.jsxs("div",{className:"relative",children:[v.jsx(Me.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),v.jsx("input",{type:c?"text":"password",value:i.new_password,onChange:b=>o({...i,new_password:b.target.value}),placeholder:"Enter new password (min 6 characters)",className:`w-full pl-9 pr-10 py-2 text-sm border rounded-lg bg-white placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${h.new_password?"border-red-400":"border-slate-300"}`}),v.jsx("button",{type:"button",onClick:()=>u(!c),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:c?v.jsx(Me.EyeOff,{size:16}):v.jsx(Me.Eye,{size:16})})]}),h.new_password&&v.jsx("p",{className:"text-xs text-red-500",children:h.new_password})]}),v.jsxs("div",{className:"space-y-1.5",children:[v.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Confirm New Password"}),v.jsxs("div",{className:"relative",children:[v.jsx(Me.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),v.jsx("input",{type:f?"text":"password",value:i.confirm_password,onChange:b=>o({...i,confirm_password:b.target.value}),placeholder:"Confirm new password",className:`w-full pl-9 pr-10 py-2 text-sm border rounded-lg bg-white placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${h.confirm_password?"border-red-400":"border-slate-300"}`}),v.jsx("button",{type:"button",onClick:()=>d(!f),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:f?v.jsx(Me.EyeOff,{size:16}):v.jsx(Me.Eye,{size:16})})]}),h.confirm_password&&v.jsx("p",{className:"text-xs text-red-500",children:h.confirm_password})]})]}),v.jsxs("div",{className:"flex justify-end gap-2 mt-6 pt-4 border-t border-slate-100",children:[v.jsx(Kt,{variant:"ghost",onClick:y,disabled:n,children:"Cancel"}),v.jsx(Kt,{onClick:m,loading:n,icon:Me.Lock,children:"Change Password"})]})]})}function R$({open:e,onClose:t,onSubmit:r,loading:n=!1,userName:a=""}){const[i,o]=W.useState(""),[s,l]=W.useState(!1),[c,u]=W.useState(!1),[f,d]=W.useState(""),h=()=>{if(!i||i.length<6){d("Password must be at least 6 characters");return}d(""),r(i)},x=()=>{navigator.clipboard.writeText(i),u(!0),setTimeout(()=>u(!1),2e3)},p=()=>{o(""),l(!1),u(!1),d(""),t()};return v.jsxs(Gc,{open:e,onClose:p,title:"Reset Password",size:"sm",children:[v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"flex items-center gap-3 p-3 bg-amber-50 border border-amber-200 rounded-xl",children:[v.jsx("div",{className:"w-9 h-9 rounded-lg bg-amber-100 flex items-center justify-center shrink-0",children:v.jsx(Me.Key,{size:16,className:"text-amber-600"})}),v.jsxs("div",{children:[v.jsxs("p",{className:"text-sm font-medium text-amber-900",children:["Reset password",a?` for ${a}`:""]}),v.jsx("p",{className:"text-xs text-amber-700 mt-0.5",children:"The user will need to use this new password to log in."})]})]}),v.jsxs("div",{children:[v.jsx("label",{className:"text-sm font-medium text-slate-700 mb-1.5 block",children:"New Password"}),v.jsxs("div",{className:"relative",children:[v.jsx("input",{type:s?"text":"password",value:i,onChange:m=>{o(m.target.value),d("")},placeholder:"Enter new password (min 6 chars)",className:"w-full border border-slate-300 rounded-lg px-3 py-2.5 pr-20 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent hover:border-slate-400 transition-colors"}),v.jsxs("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-1",children:[v.jsx("button",{onClick:()=>l(!s),className:"p-1.5 rounded-md text-slate-400 hover:text-slate-600 hover:bg-slate-100 transition-colors",type:"button",children:s?v.jsx(Me.EyeOff,{size:14}):v.jsx(Me.Eye,{size:14})}),v.jsx("button",{onClick:x,className:"p-1.5 rounded-md text-slate-400 hover:text-slate-600 hover:bg-slate-100 transition-colors",type:"button",children:c?v.jsx(Me.Check,{size:14,className:"text-emerald-500"}):v.jsx(Me.Copy,{size:14})})]})]}),f&&v.jsx("p",{className:"text-xs text-red-500 mt-1",children:f}),v.jsx("p",{className:"text-[11px] text-slate-400 mt-1.5",children:"Minimum 6 characters. The user should change this after logging in."})]})]}),v.jsxs("div",{className:"flex justify-end gap-2 mt-5 pt-4 border-t border-slate-100",children:[v.jsx(Kt,{variant:"ghost",onClick:p,children:"Cancel"}),v.jsx(Kt,{onClick:h,loading:n,disabled:!i||i.length<6,children:"Reset Password"})]})]})}function B$({name:e,subtitle:t,avatarInitials:r,badges:n=[],extra:a}){const i={primary:"bg-indigo-50 text-indigo-600",success:"bg-green-100 text-green-600",warning:"bg-amber-100 text-amber-700",info:"bg-sky-100 text-sky-600"};return v.jsx("div",{className:"bg-white border border-slate-200 rounded-xl p-4 md:p-5 mb-4 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:v.jsxs("div",{className:"flex justify-between items-start",children:[v.jsxs("div",{className:"flex gap-4 items-center",children:[v.jsx("div",{className:"w-16 h-16 rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center text-xl font-bold shadow-sm",children:r||(e||"").slice(0,2).toUpperCase()}),v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[v.jsx("h2",{className:"text-xl font-bold text-slate-900",children:e}),n.map((o,s)=>v.jsx("span",{className:`text-xs font-semibold px-2.5 py-0.5 rounded-full ${i[o.variant]||i.primary}`,children:o.label},s))]}),t&&v.jsx("p",{className:"text-sm text-slate-500 mt-0.5",children:t})]})]}),a&&v.jsx("div",{className:"flex-shrink-0",children:a})]})})}function $$({title:e,titleIcon:t,titleIconColor:r,titleIconBg:n,items:a=[],columns:i=2}){const o=i===3?"grid grid-cols-1 md:grid-cols-3 gap-4":"grid grid-cols-1 md:grid-cols-2 gap-4";return v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 md:p-5 mb-4 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[e&&v.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t&&v.jsx("div",{className:`w-7 h-7 rounded-lg ${n||"bg-gradient-to-br from-slate-50 to-slate-100"} flex items-center justify-center`,children:v.jsx(t,{className:`w-3.5 h-3.5 ${r||"text-slate-600"}`})}),v.jsx("h3",{className:"text-sm font-bold text-slate-900",children:e})]}),v.jsx("div",{className:o,children:a.map((s,l)=>v.jsxs("div",{className:"flex items-center gap-3 p-3 bg-gradient-to-br from-slate-50 to-slate-100 rounded-xl transition-all duration-150 hover:bg-slate-100",children:[s.icon&&v.jsx("div",{className:"w-9 h-9 rounded-lg bg-white border border-slate-200 flex items-center justify-center flex-shrink-0",children:v.jsx(s.icon,{className:"w-4 h-4 text-slate-500"})}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[11px] text-slate-400",children:s.label}),v.jsx("p",{className:"text-sm font-medium text-slate-900",children:s.value||"N/A"})]})]},l))})]})}var Z1,m_;function ga(){if(m_)return Z1;m_=1;var e=Array.isArray;return Z1=e,Z1}var Q1,v_;function qO(){if(v_)return Q1;v_=1;var e=typeof Xl=="object"&&Xl&&Xl.Object===Object&&Xl;return Q1=e,Q1}var em,g_;function Wi(){if(g_)return em;g_=1;var e=qO(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return em=r,em}var tm,x_;function c0(){if(x_)return tm;x_=1;var e=Wi(),t=e.Symbol;return tm=t,tm}var rm,y_;function q$(){if(y_)return rm;y_=1;var e=c0(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(o){var s=r.call(o,a),l=o[a];try{o[a]=void 0;var c=!0}catch{}var u=n.call(o);return c&&(s?o[a]=l:delete o[a]),u}return rm=i,rm}var nm,b_;function U$(){if(b_)return nm;b_=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return nm=r,nm}var am,w_;function Po(){if(w_)return am;w_=1;var e=c0(),t=q$(),r=U$(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?a:n:i&&i in Object(s)?t(s):r(s)}return am=o,am}var im,__;function Oo(){if(__)return im;__=1;function e(t){return t!=null&&typeof t=="object"}return im=e,im}var om,S_;function Vc(){if(S_)return om;S_=1;var e=Po(),t=Oo(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return om=n,om}var sm,A_;function _b(){if(A_)return sm;A_=1;var e=ga(),t=Vc(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(e(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||t(i)?!0:n.test(i)||!r.test(i)||o!=null&&i in Object(o)}return sm=a,sm}var lm,N_;function hs(){if(N_)return lm;N_=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return lm=e,lm}var cm,T_;function Sb(){if(T_)return cm;T_=1;var e=Po(),t=hs(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==n||l==a||l==r||l==i}return cm=o,cm}var um,E_;function z$(){if(E_)return um;E_=1;var e=Wi(),t=e["__core-js_shared__"];return um=t,um}var fm,P_;function W$(){if(P_)return fm;P_=1;var e=z$(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return fm=r,fm}var hm,O_;function UO(){if(O_)return hm;O_=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return hm=r,hm}var dm,j_;function H$(){if(j_)return dm;j_=1;var e=Sb(),t=W$(),r=hs(),n=UO(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,c=s.hasOwnProperty,u=RegExp("^"+l.call(c).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!r(d)||t(d))return!1;var h=e(d)?u:i;return h.test(n(d))}return dm=f,dm}var pm,C_;function G$(){if(C_)return pm;C_=1;function e(t,r){return t==null?void 0:t[r]}return pm=e,pm}var mm,k_;function sl(){if(k_)return mm;k_=1;var e=H$(),t=G$();function r(n,a){var i=t(n,a);return e(i)?i:void 0}return mm=r,mm}var vm,L_;function gp(){if(L_)return vm;L_=1;var e=sl(),t=e(Object,"create");return vm=t,vm}var gm,I_;function V$(){if(I_)return gm;I_=1;var e=gp();function t(){this.__data__=e?e(null):{},this.size=0}return gm=t,gm}var xm,F_;function Y$(){if(F_)return xm;F_=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return xm=e,xm}var ym,M_;function K$(){if(M_)return ym;M_=1;var e=gp(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(i){var o=this.__data__;if(e){var s=o[i];return s===t?void 0:s}return n.call(o,i)?o[i]:void 0}return ym=a,ym}var bm,D_;function X$(){if(D_)return bm;D_=1;var e=gp(),t=Object.prototype,r=t.hasOwnProperty;function n(a){var i=this.__data__;return e?i[a]!==void 0:r.call(i,a)}return bm=n,bm}var wm,R_;function J$(){if(R_)return wm;R_=1;var e=gp(),t="__lodash_hash_undefined__";function r(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&a===void 0?t:a,this}return wm=r,wm}var _m,B_;function Z$(){if(B_)return _m;B_=1;var e=V$(),t=Y$(),r=K$(),n=X$(),a=J$();function i(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,_m=i,_m}var Sm,$_;function Q$(){if($_)return Sm;$_=1;function e(){this.__data__=[],this.size=0}return Sm=e,Sm}var Am,q_;function Ab(){if(q_)return Am;q_=1;function e(t,r){return t===r||t!==t&&r!==r}return Am=e,Am}var Nm,U_;function xp(){if(U_)return Nm;U_=1;var e=Ab();function t(r,n){for(var a=r.length;a--;)if(e(r[a][0],n))return a;return-1}return Nm=t,Nm}var Tm,z_;function eq(){if(z_)return Tm;z_=1;var e=xp(),t=Array.prototype,r=t.splice;function n(a){var i=this.__data__,o=e(i,a);if(o<0)return!1;var s=i.length-1;return o==s?i.pop():r.call(i,o,1),--this.size,!0}return Tm=n,Tm}var Em,W_;function tq(){if(W_)return Em;W_=1;var e=xp();function t(r){var n=this.__data__,a=e(n,r);return a<0?void 0:n[a][1]}return Em=t,Em}var Pm,H_;function rq(){if(H_)return Pm;H_=1;var e=xp();function t(r){return e(this.__data__,r)>-1}return Pm=t,Pm}var Om,G_;function nq(){if(G_)return Om;G_=1;var e=xp();function t(r,n){var a=this.__data__,i=e(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return Om=t,Om}var jm,V_;function yp(){if(V_)return jm;V_=1;var e=Q$(),t=eq(),r=tq(),n=rq(),a=nq();function i(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,jm=i,jm}var Cm,Y_;function Nb(){if(Y_)return Cm;Y_=1;var e=sl(),t=Wi(),r=e(t,"Map");return Cm=r,Cm}var km,K_;function aq(){if(K_)return km;K_=1;var e=Z$(),t=yp(),r=Nb();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return km=n,km}var Lm,X_;function iq(){if(X_)return Lm;X_=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Lm=e,Lm}var Im,J_;function bp(){if(J_)return Im;J_=1;var e=iq();function t(r,n){var a=r.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return Im=t,Im}var Fm,Z_;function oq(){if(Z_)return Fm;Z_=1;var e=bp();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Fm=t,Fm}var Mm,Q_;function sq(){if(Q_)return Mm;Q_=1;var e=bp();function t(r){return e(this,r).get(r)}return Mm=t,Mm}var Dm,e4;function lq(){if(e4)return Dm;e4=1;var e=bp();function t(r){return e(this,r).has(r)}return Dm=t,Dm}var Rm,t4;function cq(){if(t4)return Rm;t4=1;var e=bp();function t(r,n){var a=e(this,r),i=a.size;return a.set(r,n),this.size+=a.size==i?0:1,this}return Rm=t,Rm}var Bm,r4;function Tb(){if(r4)return Bm;r4=1;var e=aq(),t=oq(),r=sq(),n=lq(),a=cq();function i(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,Bm=i,Bm}var $m,n4;function zO(){if(n4)return $m;n4=1;var e=Tb(),t="Expected a function";function r(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var i=function(){var o=arguments,s=a?a.apply(this,o):o[0],l=i.cache;if(l.has(s))return l.get(s);var c=n.apply(this,o);return i.cache=l.set(s,c)||l,c};return i.cache=new(r.Cache||e),i}return r.Cache=e,$m=r,$m}var qm,a4;function uq(){if(a4)return qm;a4=1;var e=zO(),t=500;function r(n){var a=e(n,function(o){return i.size===t&&i.clear(),o}),i=a.cache;return a}return qm=r,qm}var Um,i4;function fq(){if(i4)return Um;i4=1;var e=uq(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(t,function(o,s,l,c){i.push(l?c.replace(r,"$1"):s||o)}),i});return Um=n,Um}var zm,o4;function Eb(){if(o4)return zm;o4=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=Array(a);++n<a;)i[n]=r(t[n],n,t);return i}return zm=e,zm}var Wm,s4;function hq(){if(s4)return Wm;s4=1;var e=c0(),t=Eb(),r=ga(),n=Vc(),a=e?e.prototype:void 0,i=a?a.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return i?i.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return Wm=o,Wm}var Hm,l4;function WO(){if(l4)return Hm;l4=1;var e=hq();function t(r){return r==null?"":e(r)}return Hm=t,Hm}var Gm,c4;function HO(){if(c4)return Gm;c4=1;var e=ga(),t=_b(),r=fq(),n=WO();function a(i,o){return e(i)?i:t(i,o)?[i]:r(n(i))}return Gm=a,Gm}var Vm,u4;function wp(){if(u4)return Vm;u4=1;var e=Vc();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Vm=t,Vm}var Ym,f4;function Pb(){if(f4)return Ym;f4=1;var e=HO(),t=wp();function r(n,a){a=e(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[t(a[i++])];return i&&i==o?n:void 0}return Ym=r,Ym}var Km,h4;function GO(){if(h4)return Km;h4=1;var e=Pb();function t(r,n,a){var i=r==null?void 0:e(r,n);return i===void 0?a:i}return Km=t,Km}var dq=GO();const Ka=ur(dq);var Xm,d4;function pq(){if(d4)return Xm;d4=1;function e(t){return t==null}return Xm=e,Xm}var mq=pq();const qt=ur(mq);var Jm,p4;function vq(){if(p4)return Jm;p4=1;var e=Po(),t=ga(),r=Oo(),n="[object String]";function a(i){return typeof i=="string"||!t(i)&&r(i)&&e(i)==n}return Jm=a,Jm}var gq=vq();const Zs=ur(gq);var xq=Sb();const jt=ur(xq);var yq=hs();const Yc=ur(yq);var Nh={exports:{}},nr={};/**
348
- * @license React
349
- * react-is.production.min.js
350
- *
351
- * Copyright (c) Facebook, Inc. and its affiliates.
352
- *
353
- * This source code is licensed under the MIT license found in the
354
- * LICENSE file in the root directory of this source tree.
355
- */var m4;function bq(){if(m4)return nr;m4=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function p(m){if(typeof m=="object"&&m!==null){var y=m.$$typeof;switch(y){case e:switch(m=m.type,m){case r:case a:case n:case c:case u:return m;default:switch(m=m&&m.$$typeof,m){case s:case o:case l:case d:case f:case i:return m;default:return y}}case t:return y}}}return nr.ContextConsumer=o,nr.ContextProvider=i,nr.Element=e,nr.ForwardRef=l,nr.Fragment=r,nr.Lazy=d,nr.Memo=f,nr.Portal=t,nr.Profiler=a,nr.StrictMode=n,nr.Suspense=c,nr.SuspenseList=u,nr.isAsyncMode=function(){return!1},nr.isConcurrentMode=function(){return!1},nr.isContextConsumer=function(m){return p(m)===o},nr.isContextProvider=function(m){return p(m)===i},nr.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},nr.isForwardRef=function(m){return p(m)===l},nr.isFragment=function(m){return p(m)===r},nr.isLazy=function(m){return p(m)===d},nr.isMemo=function(m){return p(m)===f},nr.isPortal=function(m){return p(m)===t},nr.isProfiler=function(m){return p(m)===a},nr.isStrictMode=function(m){return p(m)===n},nr.isSuspense=function(m){return p(m)===c},nr.isSuspenseList=function(m){return p(m)===u},nr.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===a||m===n||m===c||m===u||m===h||typeof m=="object"&&m!==null&&(m.$$typeof===d||m.$$typeof===f||m.$$typeof===i||m.$$typeof===o||m.$$typeof===l||m.$$typeof===x||m.getModuleId!==void 0)},nr.typeOf=p,nr}var ar={};/**
356
- * @license React
357
- * react-is.development.js
358
- *
359
- * Copyright (c) Facebook, Inc. and its affiliates.
360
- *
361
- * This source code is licensed under the MIT license found in the
362
- * LICENSE file in the root directory of this source tree.
363
- */var v4;function wq(){return v4||(v4=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),x=!1,p=!1,m=!1,y=!1,b=!1,w;w=Symbol.for("react.module.reference");function S(Se){return!!(typeof Se=="string"||typeof Se=="function"||Se===r||Se===a||b||Se===n||Se===c||Se===u||y||Se===h||x||p||m||typeof Se=="object"&&Se!==null&&(Se.$$typeof===d||Se.$$typeof===f||Se.$$typeof===i||Se.$$typeof===o||Se.$$typeof===l||Se.$$typeof===w||Se.getModuleId!==void 0))}function A(Se){if(typeof Se=="object"&&Se!==null){var Ae=Se.$$typeof;switch(Ae){case e:var le=Se.type;switch(le){case r:case a:case n:case c:case u:return le;default:var De=le&&le.$$typeof;switch(De){case s:case o:case l:case d:case f:case i:return De;default:return Ae}}case t:return Ae}}}var O=o,N=i,C=e,L=l,R=r,j=d,E=f,D=t,U=a,H=n,B=c,z=u,te=!1,Z=!1;function ee(Se){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ce(Se){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function P(Se){return A(Se)===o}function I(Se){return A(Se)===i}function M(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===e}function q(Se){return A(Se)===l}function Y(Se){return A(Se)===r}function fe(Se){return A(Se)===d}function ne(Se){return A(Se)===f}function K(Se){return A(Se)===t}function he(Se){return A(Se)===a}function be(Se){return A(Se)===n}function se(Se){return A(Se)===c}function Le(Se){return A(Se)===u}ar.ContextConsumer=O,ar.ContextProvider=N,ar.Element=C,ar.ForwardRef=L,ar.Fragment=R,ar.Lazy=j,ar.Memo=E,ar.Portal=D,ar.Profiler=U,ar.StrictMode=H,ar.Suspense=B,ar.SuspenseList=z,ar.isAsyncMode=ee,ar.isConcurrentMode=ce,ar.isContextConsumer=P,ar.isContextProvider=I,ar.isElement=M,ar.isForwardRef=q,ar.isFragment=Y,ar.isLazy=fe,ar.isMemo=ne,ar.isPortal=K,ar.isProfiler=he,ar.isStrictMode=be,ar.isSuspense=se,ar.isSuspenseList=Le,ar.isValidElementType=S,ar.typeOf=A})()),ar}var g4;function _q(){return g4||(g4=1,process.env.NODE_ENV==="production"?Nh.exports=bq():Nh.exports=wq()),Nh.exports}var Sq=_q(),Zm,x4;function VO(){if(x4)return Zm;x4=1;var e=Po(),t=Oo(),r="[object Number]";function n(a){return typeof a=="number"||t(a)&&e(a)==r}return Zm=n,Zm}var Qm,y4;function Aq(){if(y4)return Qm;y4=1;var e=VO();function t(r){return e(r)&&r!=+r}return Qm=t,Qm}var Nq=Aq();const u0=ur(Nq);var Tq=VO();const Eq=ur(Tq);var yi=function(t){return t===0?0:t>0?1:-1},Ms=function(t){return Zs(t)&&t.indexOf("%")===t.length-1},nt=function(t){return Eq(t)&&!u0(t)},Pq=function(t){return qt(t)},pn=function(t){return nt(t)||Zs(t)},Oq=0,f0=function(t){var r=++Oq;return"".concat(t||"").concat(r)},bi=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!nt(t)&&!Zs(t))return n;var i;if(Ms(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return u0(i)&&(i=n),a&&i>r&&(i=r),i},Zo=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},jq=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a<r;a++)if(!n[t[a]])n[t[a]]=!0;else return!0;return!1},ta=function(t,r){return nt(t)&&nt(r)?function(n){return t+n*(r-t)}:function(){return r}};function ad(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ka(n,t))===r})}var Cq=function(t,r){return nt(t)&&nt(r)?t-r:Zs(t)&&Zs(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function sc(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Ey(e){"@babel/helpers - typeof";return Ey=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ey(e)}var kq=["viewBox","children"],Lq=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],b4=["points","pathLength"],ev={svg:kq,polygon:b4,polyline:b4},Ob=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],id=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(W.isValidElement(t)&&(n=t.props),!Yc(n))return null;var a={};return Object.keys(n).forEach(function(i){Ob.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},Iq=function(t,r,n){return function(a){return t(r,n,a),null}},fc=function(t,r,n){if(!Yc(t)||Ey(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];Ob.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=Iq(o,r,n))}),a},Fq=["children"],Mq=["children"];function w4(e,t){if(e==null)return{};var r=Dq(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Dq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Py(e){"@babel/helpers - typeof";return Py=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Py(e)}var _4={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},vo=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},S4=null,tv=null,jb=function e(t){if(t===S4&&Array.isArray(tv))return tv;var r=[];return W.Children.forEach(t,function(n){qt(n)||(Sq.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),tv=r,S4=t,r};function Xa(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return vo(a)}):n=[vo(t)],jb(e).forEach(function(a){var i=Ka(a,"type.displayName")||Ka(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function Ea(e,t){var r=Xa(e,t);return r&&r[0]}var A4=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!nt(n)||n<=0||!nt(a)||a<=0)},Rq=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Bq=function(t){return t&&t.type&&Zs(t.type)&&Rq.indexOf(t.type)>=0},$q=function(t){return t&&Py(t)==="object"&&"clipDot"in t},qq=function(t,r,n,a){var i,o=(i=ev==null?void 0:ev[a])!==null&&i!==void 0?i:[];return r.startsWith("data-")||!jt(t)&&(a&&o.includes(r)||Lq.includes(r))||n&&Ob.includes(r)},bt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(W.isValidElement(t)&&(a=t.props),!Yc(a))return null;var i={};return Object.keys(a).forEach(function(o){var s;qq((s=a)===null||s===void 0?void 0:s[o],o,r,n)&&(i[o]=a[o])}),i},Oy=function e(t,r){if(t===r)return!0;var n=W.Children.count(t);if(n!==W.Children.count(r))return!1;if(n===0)return!0;if(n===1)return N4(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=t[a],o=r[a];if(Array.isArray(i)||Array.isArray(o)){if(!e(i,o))return!1}else if(!N4(i,o))return!1}return!0},N4=function(t,r){if(qt(t)&&qt(r))return!0;if(!qt(t)&&!qt(r)){var n=t.props||{},a=n.children,i=w4(n,Fq),o=r.props||{},s=o.children,l=w4(o,Mq);return a&&s?sc(i,l)&&Oy(a,s):!a&&!s?sc(i,l):!1}return!1},T4=function(t,r){var n=[],a={};return jb(t).forEach(function(i,o){if(Bq(i))n.push(i);else if(i){var s=vo(i.type),l=r[s]||{},c=l.handler,u=l.once;if(c&&(!u||!a[s])){var f=c(i,s,o);n.push(f),a[s]=!0}}}),n},Uq=function(t){var r=t&&t.type;return r&&_4[r]?_4[r]:null},zq=function(t,r){return jb(r).indexOf(t)},Wq=["children","width","height","viewBox","className","style","title","desc"];function jy(){return jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jy.apply(this,arguments)}function Hq(e,t){if(e==null)return{};var r=Gq(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Gq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Cy(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,i=e.className,o=e.style,s=e.title,l=e.desc,c=Hq(e,Wq),u=a||{width:r,height:n,x:0,y:0},f=Dt("recharts-surface",i);return W.createElement("svg",jy({},bt(c,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),W.createElement("title",null,s),W.createElement("desc",null,l),t)}var Vq=["children","className"];function ky(){return ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ky.apply(this,arguments)}function Yq(e,t){if(e==null)return{};var r=Kq(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var lr=W.forwardRef(function(e,t){var r=e.children,n=e.className,a=Yq(e,Vq),i=Dt("recharts-layer",n);return W.createElement("g",ky({className:i},bt(a,!0),{ref:t}),r)}),Xq=process.env.NODE_ENV!=="production",go=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];if(Xq&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return a[o++]}))}},rv,E4;function Jq(){if(E4)return rv;E4=1;function e(t,r,n){var a=-1,i=t.length;r<0&&(r=-r>i?0:i+r),n=n>i?i:n,n<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(i);++a<i;)o[a]=t[a+r];return o}return rv=e,rv}var nv,P4;function Zq(){if(P4)return nv;P4=1;var e=Jq();function t(r,n,a){var i=r.length;return a=a===void 0?i:a,!n&&a>=i?r:e(r,n,a)}return nv=t,nv}var av,O4;function YO(){if(O4)return av;O4=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+a+i+"]");function l(c){return s.test(c)}return av=l,av}var iv,j4;function Qq(){if(j4)return iv;j4=1;function e(t){return t.split("")}return iv=e,iv}var ov,C4;function eU(){if(C4)return ov;C4=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",o="["+e+"]",s="["+a+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+s+"|"+l+")",u="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",x=c+"?",p="["+i+"]?",m="(?:"+h+"(?:"+[u,f,d].join("|")+")"+p+x+")*",y=p+x+m,b="(?:"+[u+s+"?",s,f,d,o].join("|")+")",w=RegExp(l+"(?="+l+")|"+b+y,"g");function S(A){return A.match(w)||[]}return ov=S,ov}var sv,k4;function tU(){if(k4)return sv;k4=1;var e=Qq(),t=YO(),r=eU();function n(a){return t(a)?r(a):e(a)}return sv=n,sv}var lv,L4;function rU(){if(L4)return lv;L4=1;var e=Zq(),t=YO(),r=tU(),n=WO();function a(i){return function(o){o=n(o);var s=t(o)?r(o):void 0,l=s?s[0]:o.charAt(0),c=s?e(s,1).join(""):o.slice(1);return l[i]()+c}}return lv=a,lv}var cv,I4;function nU(){if(I4)return cv;I4=1;var e=rU(),t=e("toUpperCase");return cv=t,cv}var aU=nU();const _p=ur(aU);function Pr(e){return function(){return e}}const KO=Math.cos,od=Math.sin,Ai=Math.sqrt,sd=Math.PI,Sp=2*sd,Ly=Math.PI,Iy=2*Ly,js=1e-6,iU=Iy-js;function XO(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function oU(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return XO;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;a<i;++a)this._+=Math.round(arguments[a]*r)/r+n[a]}}class sU{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?XO:oU(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,a){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+a}`}bezierCurveTo(t,r,n,a,i,o){this._append`C${+t},${+r},${+n},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,r,n,a,i){if(t=+t,r=+r,n=+n,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,l=n-t,c=a-r,u=o-t,f=s-r,d=u*u+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>js)if(!(Math.abs(f*l-c*u)>js)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,x=a-s,p=l*l+c*c,m=h*h+x*x,y=Math.sqrt(p),b=Math.sqrt(d),w=i*Math.tan((Ly-Math.acos((p+d-m)/(2*y*b)))/2),S=w/b,A=w/y;Math.abs(S-1)>js&&this._append`L${t+S*u},${r+S*f}`,this._append`A${i},${i},0,0,${+(f*h>u*x)},${this._x1=t+A*l},${this._y1=r+A*c}`}}arc(t,r,n,a,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(a),l=n*Math.sin(a),c=t+s,u=r+l,f=1^o,d=o?a-i:i-a;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>js||Math.abs(this._y1-u)>js)&&this._append`L${c},${u}`,n&&(d<0&&(d=d%Iy+Iy),d>iU?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=c},${this._y1=u}`:d>js&&this._append`A${n},${n},0,${+(d>=Ly)},${f},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function Cb(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new sU(t)}function kb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function JO(e){this._context=e}JO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ap(e){return new JO(e)}function ZO(e){return e[0]}function QO(e){return e[1]}function e6(e,t){var r=Pr(!0),n=null,a=Ap,i=null,o=Cb(s);e=typeof e=="function"?e:e===void 0?ZO:Pr(e),t=typeof t=="function"?t:t===void 0?QO:Pr(t);function s(l){var c,u=(l=kb(l)).length,f,d=!1,h;for(n==null&&(i=a(h=o())),c=0;c<=u;++c)!(c<u&&r(f=l[c],c,l))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(f,c,l),+t(f,c,l));if(h)return i=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Pr(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Pr(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Pr(!!l),s):r},s.curve=function(l){return arguments.length?(a=l,n!=null&&(i=a(n)),s):a},s.context=function(l){return arguments.length?(l==null?n=i=null:i=a(n=l),s):n},s}function Th(e,t,r){var n=null,a=Pr(!0),i=null,o=Ap,s=null,l=Cb(c);e=typeof e=="function"?e:e===void 0?ZO:Pr(+e),t=typeof t=="function"?t:Pr(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?QO:Pr(+r);function c(f){var d,h,x,p=(f=kb(f)).length,m,y=!1,b,w=new Array(p),S=new Array(p);for(i==null&&(s=o(b=l())),d=0;d<=p;++d){if(!(d<p&&a(m=f[d],d,f))===y)if(y=!y)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),x=d-1;x>=h;--x)s.point(w[x],S[x]);s.lineEnd(),s.areaEnd()}y&&(w[d]=+e(m,d,f),S[d]=+t(m,d,f),s.point(n?+n(m,d,f):w[d],r?+r(m,d,f):S[d]))}if(b)return s=null,b+""||null}function u(){return e6().defined(a).curve(o).context(i)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Pr(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Pr(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Pr(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Pr(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Pr(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Pr(+f),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(f){return arguments.length?(a=typeof f=="function"?f:Pr(!!f),c):a},c.curve=function(f){return arguments.length?(o=f,i!=null&&(s=o(i)),c):o},c.context=function(f){return arguments.length?(f==null?i=s=null:s=o(i=f),c):i},c}class t6{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function lU(e){return new t6(e,!0)}function cU(e){return new t6(e,!1)}const Lb={draw(e,t){const r=Ai(t/sd);e.moveTo(r,0),e.arc(0,0,r,0,Sp)}},uU={draw(e,t){const r=Ai(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},r6=Ai(1/3),fU=r6*2,hU={draw(e,t){const r=Ai(t/fU),n=r*r6;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},dU={draw(e,t){const r=Ai(t),n=-r/2;e.rect(n,n,r,r)}},pU=.8908130915292852,n6=od(sd/10)/od(7*sd/10),mU=od(Sp/10)*n6,vU=-KO(Sp/10)*n6,gU={draw(e,t){const r=Ai(t*pU),n=mU*r,a=vU*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=Sp*i/5,s=KO(o),l=od(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*a,l*n+s*a)}e.closePath()}},uv=Ai(3),xU={draw(e,t){const r=-Ai(t/(uv*3));e.moveTo(0,r*2),e.lineTo(-uv*r,-r),e.lineTo(uv*r,-r),e.closePath()}},za=-.5,Wa=Ai(3)/2,Fy=1/Ai(12),yU=(Fy/2+1)*3,bU={draw(e,t){const r=Ai(t/yU),n=r/2,a=r*Fy,i=n,o=r*Fy+r,s=-i,l=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(za*n-Wa*a,Wa*n+za*a),e.lineTo(za*i-Wa*o,Wa*i+za*o),e.lineTo(za*s-Wa*l,Wa*s+za*l),e.lineTo(za*n+Wa*a,za*a-Wa*n),e.lineTo(za*i+Wa*o,za*o-Wa*i),e.lineTo(za*s+Wa*l,za*l-Wa*s),e.closePath()}};function wU(e,t){let r=null,n=Cb(a);e=typeof e=="function"?e:Pr(e||Lb),t=typeof t=="function"?t:Pr(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Pr(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Pr(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function ld(){}function cd(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function a6(e){this._context=e}a6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:cd(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:cd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _U(e){return new a6(e)}function i6(e){this._context=e}i6.prototype={areaStart:ld,areaEnd:ld,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:cd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function SU(e){return new i6(e)}function o6(e){this._context=e}o6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:cd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function AU(e){return new o6(e)}function s6(e){this._context=e}s6.prototype={areaStart:ld,areaEnd:ld,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function NU(e){return new s6(e)}function F4(e){return e<0?-1:1}function M4(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),s=(i*a+o*n)/(n+a);return(F4(i)+F4(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function D4(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function fv(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,a+s*t,i-s,o-s*r,i,o)}function ud(e){this._context=e}ud.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:fv(this,this._t0,D4(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,fv(this,D4(this,r=M4(this,e,t)),r);break;default:fv(this,this._t0,r=M4(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function l6(e){this._context=new c6(e)}(l6.prototype=Object.create(ud.prototype)).point=function(e,t){ud.prototype.point.call(this,t,e)};function c6(e){this._context=e}c6.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function TU(e){return new ud(e)}function EU(e){return new l6(e)}function u6(e){this._context=e}u6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=R4(e),a=R4(t),i=0,o=1;o<r;++i,++o)this._context.bezierCurveTo(n[0][i],a[0][i],n[1][i],a[1][i],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function R4(e){var t,r=e.length-1,n,a=new Array(r),i=new Array(r),o=new Array(r);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,i[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=a[t]/i[t-1],i[t]-=n,o[t]-=n*o[t-1];for(a[r-1]=o[r-1]/i[r-1],t=r-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function PU(e){return new u6(e)}function Np(e,t){this._context=e,this._t=t}Np.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function OU(e){return new Np(e,.5)}function jU(e){return new Np(e,0)}function CU(e){return new Np(e,1)}function hc(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,s=i.length;r<o;++r)for(a=i,i=e[t[r]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function My(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function kU(e,t){return e[t]}function LU(e){const t=[];return t.key=e,t}function IU(){var e=Pr([]),t=My,r=hc,n=kU;function a(i){var o=Array.from(e.apply(this,arguments),LU),s,l=o.length,c=-1,u;for(const f of i)for(s=0,++c;s<l;++s)(o[s][c]=[0,+n(f,o[s].key,c,i)]).data=f;for(s=0,u=kb(t(o));s<l;++s)o[u[s]].index=s;return r(o,u),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Pr(Array.from(i)),a):e},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:Pr(+i),a):n},a.order=function(i){return arguments.length?(t=i==null?My:typeof i=="function"?i:Pr(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??hc,a):r},a}function FU(e,t){if((n=e.length)>0){for(var r,n,a=0,i=e[0].length,o;a<i;++a){for(o=r=0;r<n;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<n;++r)e[r][a][1]/=o}hc(e,t)}}function MU(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,i=n.length;r<i;++r){for(var o=0,s=0;o<a;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}hc(e,t)}}function DU(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n<i;++n){for(var s=0,l=0,c=0;s<o;++s){for(var u=e[t[s]],f=u[n][1]||0,d=u[n-1][1]||0,h=(f-d)/2,x=0;x<s;++x){var p=e[t[x]],m=p[n][1]||0,y=p[n-1][1]||0;h+=m-y}l+=f,c+=h*f}a[n-1][1]+=a[n-1][0]=r,l&&(r-=c/l)}a[n-1][1]+=a[n-1][0]=r,hc(e,t)}}function wf(e){"@babel/helpers - typeof";return wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wf(e)}var RU=["type","size","sizeType"];function Dy(){return Dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dy.apply(this,arguments)}function B4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function $4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B4(Object(r),!0).forEach(function(n){BU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BU(e,t,r){return t=$U(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $U(e){var t=qU(e,"string");return wf(t)=="symbol"?t:t+""}function qU(e,t){if(wf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UU(e,t){if(e==null)return{};var r=zU(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var f6={symbolCircle:Lb,symbolCross:uU,symbolDiamond:hU,symbolSquare:dU,symbolStar:gU,symbolTriangle:xU,symbolWye:bU},WU=Math.PI/180,HU=function(t){var r="symbol".concat(_p(t));return f6[r]||Lb},GU=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*WU;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},VU=function(t,r){f6["symbol".concat(_p(t))]=r},Ib=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,i=a===void 0?64:a,o=t.sizeType,s=o===void 0?"area":o,l=UU(t,RU),c=$4($4({},l),{},{type:n,size:i,sizeType:s}),u=function(){var m=HU(n),y=wU().type(m).size(GU(i,s,n));return y()},f=c.className,d=c.cx,h=c.cy,x=bt(c,!0);return d===+d&&h===+h&&i===+i?W.createElement("path",Dy({},x,{className:Dt("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:u()})):null};Ib.registerSymbol=VU;function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}function Ry(){return Ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ry.apply(this,arguments)}function q4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function YU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q4(Object(r),!0).forEach(function(n){_f(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d6(n.key),n)}}function JU(e,t,r){return t&&XU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZU(e,t,r){return t=fd(t),QU(e,h6()?Reflect.construct(t,r||[],fd(e).constructor):t.apply(e,r))}function QU(e,t){if(t&&(dc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ez(e)}function ez(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h6=function(){return!!e})()}function fd(e){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fd(e)}function tz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&By(e,t)}function By(e,t){return By=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},By(e,t)}function _f(e,t,r){return t=d6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d6(e){var t=rz(e,"string");return dc(t)=="symbol"?t:t+""}function rz(e,t){if(dc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ha=32,Fb=(function(e){function t(){return KU(this,t),ZU(this,t,arguments)}return tz(t,e),JU(t,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=Ha/2,o=Ha/6,s=Ha/3,l=n.inactive?a:n.color;if(n.type==="plainline")return W.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:Ha,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return W.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(s,`
364
- A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(i,`
365
- H`).concat(Ha,"M").concat(2*s,",").concat(i,`
366
- A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return W.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Ha/8,"h").concat(Ha,"v").concat(Ha*3/4,"h").concat(-Ha,"z"),className:"recharts-legend-icon"});if(W.isValidElement(n.legendIcon)){var c=YU({},n);return delete c.legendIcon,W.cloneElement(n.legendIcon,c)}return W.createElement(Ib,{fill:l,cx:i,cy:i,size:Ha,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,i=a.payload,o=a.iconSize,s=a.layout,l=a.formatter,c=a.inactiveColor,u={x:0,y:0,width:Ha,height:Ha},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(h,x){var p=h.formatter||l,m=Dt(_f(_f({"recharts-legend-item":!0},"legend-item-".concat(x),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=jt(h.value)?null:h.value;go(!jt(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=h.inactive?c:h.color;return W.createElement("li",Ry({className:m,style:f,key:"legend-item-".concat(x)},fc(n.props,h,x)),W.createElement(Cy,{width:o,height:o,viewBox:u,style:d},n.renderIcon(h)),W.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},p?p(y,h,x):y))})}},{key:"render",value:function(){var n=this.props,a=n.payload,i=n.layout,o=n.align;if(!a||!a.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return W.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(W.PureComponent);_f(Fb,"displayName","Legend");_f(Fb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var hv,U4;function nz(){if(U4)return hv;U4=1;var e=yp();function t(){this.__data__=new e,this.size=0}return hv=t,hv}var dv,z4;function az(){if(z4)return dv;z4=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return dv=e,dv}var pv,W4;function iz(){if(W4)return pv;W4=1;function e(t){return this.__data__.get(t)}return pv=e,pv}var mv,H4;function oz(){if(H4)return mv;H4=1;function e(t){return this.__data__.has(t)}return mv=e,mv}var vv,G4;function sz(){if(G4)return vv;G4=1;var e=yp(),t=Nb(),r=Tb(),n=200;function a(i,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<n-1)return l.push([i,o]),this.size=++s.size,this;s=this.__data__=new r(l)}return s.set(i,o),this.size=s.size,this}return vv=a,vv}var gv,V4;function p6(){if(V4)return gv;V4=1;var e=yp(),t=nz(),r=az(),n=iz(),a=oz(),i=sz();function o(s){var l=this.__data__=new e(s);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=a,o.prototype.set=i,gv=o,gv}var xv,Y4;function lz(){if(Y4)return xv;Y4=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return xv=t,xv}var yv,K4;function cz(){if(K4)return yv;K4=1;function e(t){return this.__data__.has(t)}return yv=e,yv}var bv,X4;function m6(){if(X4)return bv;X4=1;var e=Tb(),t=lz(),r=cz();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new e;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,bv=n,bv}var wv,J4;function v6(){if(J4)return wv;J4=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(r(t[n],n,t))return!0;return!1}return wv=e,wv}var _v,Z4;function g6(){if(Z4)return _v;Z4=1;function e(t,r){return t.has(r)}return _v=e,_v}var Sv,Q4;function x6(){if(Q4)return Sv;Q4=1;var e=m6(),t=v6(),r=g6(),n=1,a=2;function i(o,s,l,c,u,f){var d=l&n,h=o.length,x=s.length;if(h!=x&&!(d&&x>h))return!1;var p=f.get(o),m=f.get(s);if(p&&m)return p==s&&m==o;var y=-1,b=!0,w=l&a?new e:void 0;for(f.set(o,s),f.set(s,o);++y<h;){var S=o[y],A=s[y];if(c)var O=d?c(A,S,y,s,o,f):c(S,A,y,o,s,f);if(O!==void 0){if(O)continue;b=!1;break}if(w){if(!t(s,function(N,C){if(!r(w,C)&&(S===N||u(S,N,l,c,f)))return w.push(C)})){b=!1;break}}else if(!(S===A||u(S,A,l,c,f))){b=!1;break}}return f.delete(o),f.delete(s),b}return Sv=i,Sv}var Av,eS;function uz(){if(eS)return Av;eS=1;var e=Wi(),t=e.Uint8Array;return Av=t,Av}var Nv,tS;function fz(){if(tS)return Nv;tS=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a,i){n[++r]=[i,a]}),n}return Nv=e,Nv}var Tv,rS;function Mb(){if(rS)return Tv;rS=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a){n[++r]=a}),n}return Tv=e,Tv}var Ev,nS;function hz(){if(nS)return Ev;nS=1;var e=c0(),t=uz(),r=Ab(),n=x6(),a=fz(),i=Mb(),o=1,s=2,l="[object Boolean]",c="[object Date]",u="[object Error]",f="[object Map]",d="[object Number]",h="[object RegExp]",x="[object Set]",p="[object String]",m="[object Symbol]",y="[object ArrayBuffer]",b="[object DataView]",w=e?e.prototype:void 0,S=w?w.valueOf:void 0;function A(O,N,C,L,R,j,E){switch(C){case b:if(O.byteLength!=N.byteLength||O.byteOffset!=N.byteOffset)return!1;O=O.buffer,N=N.buffer;case y:return!(O.byteLength!=N.byteLength||!j(new t(O),new t(N)));case l:case c:case d:return r(+O,+N);case u:return O.name==N.name&&O.message==N.message;case h:case p:return O==N+"";case f:var D=a;case x:var U=L&o;if(D||(D=i),O.size!=N.size&&!U)return!1;var H=E.get(O);if(H)return H==N;L|=s,E.set(O,N);var B=n(D(O),D(N),L,R,j,E);return E.delete(O),B;case m:if(S)return S.call(O)==S.call(N)}return!1}return Ev=A,Ev}var Pv,aS;function y6(){if(aS)return Pv;aS=1;function e(t,r){for(var n=-1,a=r.length,i=t.length;++n<a;)t[i+n]=r[n];return t}return Pv=e,Pv}var Ov,iS;function dz(){if(iS)return Ov;iS=1;var e=y6(),t=ga();function r(n,a,i){var o=a(n);return t(n)?o:e(o,i(n))}return Ov=r,Ov}var jv,oS;function pz(){if(oS)return jv;oS=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=0,o=[];++n<a;){var s=t[n];r(s,n,t)&&(o[i++]=s)}return o}return jv=e,jv}var Cv,sS;function mz(){if(sS)return Cv;sS=1;function e(){return[]}return Cv=e,Cv}var kv,lS;function vz(){if(lS)return kv;lS=1;var e=pz(),t=mz(),r=Object.prototype,n=r.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),e(a(o),function(s){return n.call(o,s)}))}:t;return kv=i,kv}var Lv,cS;function gz(){if(cS)return Lv;cS=1;function e(t,r){for(var n=-1,a=Array(t);++n<t;)a[n]=r(n);return a}return Lv=e,Lv}var Iv,uS;function xz(){if(uS)return Iv;uS=1;var e=Po(),t=Oo(),r="[object Arguments]";function n(a){return t(a)&&e(a)==r}return Iv=n,Iv}var Fv,fS;function Db(){if(fS)return Fv;fS=1;var e=xz(),t=Oo(),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return Fv=i,Fv}var Wu={exports:{}},Mv,hS;function yz(){if(hS)return Mv;hS=1;function e(){return!1}return Mv=e,Mv}Wu.exports;var dS;function b6(){return dS||(dS=1,(function(e,t){var r=Wi(),n=yz(),a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||n;e.exports=c})(Wu,Wu.exports)),Wu.exports}var Dv,pS;function Rb(){if(pS)return Dv;pS=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,a){var i=typeof n;return a=a??e,!!a&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<a}return Dv=r,Dv}var Rv,mS;function Bb(){if(mS)return Rv;mS=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Rv=t,Rv}var Bv,vS;function bz(){if(vS)return Bv;vS=1;var e=Po(),t=Bb(),r=Oo(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",x="[object String]",p="[object WeakMap]",m="[object ArrayBuffer]",y="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",S="[object Int8Array]",A="[object Int16Array]",O="[object Int32Array]",N="[object Uint8Array]",C="[object Uint8ClampedArray]",L="[object Uint16Array]",R="[object Uint32Array]",j={};j[b]=j[w]=j[S]=j[A]=j[O]=j[N]=j[C]=j[L]=j[R]=!0,j[n]=j[a]=j[m]=j[i]=j[y]=j[o]=j[s]=j[l]=j[c]=j[u]=j[f]=j[d]=j[h]=j[x]=j[p]=!1;function E(D){return r(D)&&t(D.length)&&!!j[e(D)]}return Bv=E,Bv}var $v,gS;function w6(){if(gS)return $v;gS=1;function e(t){return function(r){return t(r)}}return $v=e,$v}var Hu={exports:{}};Hu.exports;var xS;function wz(){return xS||(xS=1,(function(e,t){var r=qO(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=(function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(Hu,Hu.exports)),Hu.exports}var qv,yS;function _6(){if(yS)return qv;yS=1;var e=bz(),t=w6(),r=wz(),n=r&&r.isTypedArray,a=n?t(n):e;return qv=a,qv}var Uv,bS;function _z(){if(bS)return Uv;bS=1;var e=gz(),t=Db(),r=ga(),n=b6(),a=Rb(),i=_6(),o=Object.prototype,s=o.hasOwnProperty;function l(c,u){var f=r(c),d=!f&&t(c),h=!f&&!d&&n(c),x=!f&&!d&&!h&&i(c),p=f||d||h||x,m=p?e(c.length,String):[],y=m.length;for(var b in c)(u||s.call(c,b))&&!(p&&(b=="length"||h&&(b=="offset"||b=="parent")||x&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||a(b,y)))&&m.push(b);return m}return Uv=l,Uv}var zv,wS;function Sz(){if(wS)return zv;wS=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||e;return r===a}return zv=t,zv}var Wv,_S;function S6(){if(_S)return Wv;_S=1;function e(t,r){return function(n){return t(r(n))}}return Wv=e,Wv}var Hv,SS;function Az(){if(SS)return Hv;SS=1;var e=S6(),t=e(Object.keys,Object);return Hv=t,Hv}var Gv,AS;function Nz(){if(AS)return Gv;AS=1;var e=Sz(),t=Az(),r=Object.prototype,n=r.hasOwnProperty;function a(i){if(!e(i))return t(i);var o=[];for(var s in Object(i))n.call(i,s)&&s!="constructor"&&o.push(s);return o}return Gv=a,Gv}var Vv,NS;function h0(){if(NS)return Vv;NS=1;var e=Sb(),t=Bb();function r(n){return n!=null&&t(n.length)&&!e(n)}return Vv=r,Vv}var Yv,TS;function Tp(){if(TS)return Yv;TS=1;var e=_z(),t=Nz(),r=h0();function n(a){return r(a)?e(a):t(a)}return Yv=n,Yv}var Kv,ES;function Tz(){if(ES)return Kv;ES=1;var e=dz(),t=vz(),r=Tp();function n(a){return e(a,r,t)}return Kv=n,Kv}var Xv,PS;function Ez(){if(PS)return Xv;PS=1;var e=Tz(),t=1,r=Object.prototype,n=r.hasOwnProperty;function a(i,o,s,l,c,u){var f=s&t,d=e(i),h=d.length,x=e(o),p=x.length;if(h!=p&&!f)return!1;for(var m=h;m--;){var y=d[m];if(!(f?y in o:n.call(o,y)))return!1}var b=u.get(i),w=u.get(o);if(b&&w)return b==o&&w==i;var S=!0;u.set(i,o),u.set(o,i);for(var A=f;++m<h;){y=d[m];var O=i[y],N=o[y];if(l)var C=f?l(N,O,y,o,i,u):l(O,N,y,i,o,u);if(!(C===void 0?O===N||c(O,N,s,l,u):C)){S=!1;break}A||(A=y=="constructor")}if(S&&!A){var L=i.constructor,R=o.constructor;L!=R&&"constructor"in i&&"constructor"in o&&!(typeof L=="function"&&L instanceof L&&typeof R=="function"&&R instanceof R)&&(S=!1)}return u.delete(i),u.delete(o),S}return Xv=a,Xv}var Jv,OS;function Pz(){if(OS)return Jv;OS=1;var e=sl(),t=Wi(),r=e(t,"DataView");return Jv=r,Jv}var Zv,jS;function Oz(){if(jS)return Zv;jS=1;var e=sl(),t=Wi(),r=e(t,"Promise");return Zv=r,Zv}var Qv,CS;function A6(){if(CS)return Qv;CS=1;var e=sl(),t=Wi(),r=e(t,"Set");return Qv=r,Qv}var eg,kS;function jz(){if(kS)return eg;kS=1;var e=sl(),t=Wi(),r=e(t,"WeakMap");return eg=r,eg}var tg,LS;function Cz(){if(LS)return tg;LS=1;var e=Pz(),t=Nb(),r=Oz(),n=A6(),a=jz(),i=Po(),o=UO(),s="[object Map]",l="[object Object]",c="[object Promise]",u="[object Set]",f="[object WeakMap]",d="[object DataView]",h=o(e),x=o(t),p=o(r),m=o(n),y=o(a),b=i;return(e&&b(new e(new ArrayBuffer(1)))!=d||t&&b(new t)!=s||r&&b(r.resolve())!=c||n&&b(new n)!=u||a&&b(new a)!=f)&&(b=function(w){var S=i(w),A=S==l?w.constructor:void 0,O=A?o(A):"";if(O)switch(O){case h:return d;case x:return s;case p:return c;case m:return u;case y:return f}return S}),tg=b,tg}var rg,IS;function kz(){if(IS)return rg;IS=1;var e=p6(),t=x6(),r=hz(),n=Ez(),a=Cz(),i=ga(),o=b6(),s=_6(),l=1,c="[object Arguments]",u="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function x(p,m,y,b,w,S){var A=i(p),O=i(m),N=A?u:a(p),C=O?u:a(m);N=N==c?f:N,C=C==c?f:C;var L=N==f,R=C==f,j=N==C;if(j&&o(p)){if(!o(m))return!1;A=!0,L=!1}if(j&&!L)return S||(S=new e),A||s(p)?t(p,m,y,b,w,S):r(p,m,N,y,b,w,S);if(!(y&l)){var E=L&&h.call(p,"__wrapped__"),D=R&&h.call(m,"__wrapped__");if(E||D){var U=E?p.value():p,H=D?m.value():m;return S||(S=new e),w(U,H,y,b,S)}}return j?(S||(S=new e),n(p,m,y,b,w,S)):!1}return rg=x,rg}var ng,FS;function $b(){if(FS)return ng;FS=1;var e=kz(),t=Oo();function r(n,a,i,o,s){return n===a?!0:n==null||a==null||!t(n)&&!t(a)?n!==n&&a!==a:e(n,a,i,o,r,s)}return ng=r,ng}var ag,MS;function Lz(){if(MS)return ag;MS=1;var e=p6(),t=$b(),r=1,n=2;function a(i,o,s,l){var c=s.length,u=c,f=!l;if(i==null)return!u;for(i=Object(i);c--;){var d=s[c];if(f&&d[2]?d[1]!==i[d[0]]:!(d[0]in i))return!1}for(;++c<u;){d=s[c];var h=d[0],x=i[h],p=d[1];if(f&&d[2]){if(x===void 0&&!(h in i))return!1}else{var m=new e;if(l)var y=l(x,p,h,i,o,m);if(!(y===void 0?t(p,x,r|n,l,m):y))return!1}}return!0}return ag=a,ag}var ig,DS;function N6(){if(DS)return ig;DS=1;var e=hs();function t(r){return r===r&&!e(r)}return ig=t,ig}var og,RS;function Iz(){if(RS)return og;RS=1;var e=N6(),t=Tp();function r(n){for(var a=t(n),i=a.length;i--;){var o=a[i],s=n[o];a[i]=[o,s,e(s)]}return a}return og=r,og}var sg,BS;function T6(){if(BS)return sg;BS=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return sg=e,sg}var lg,$S;function Fz(){if($S)return lg;$S=1;var e=Lz(),t=Iz(),r=T6();function n(a){var i=t(a);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(o){return o===a||e(o,a,i)}}return lg=n,lg}var cg,qS;function Mz(){if(qS)return cg;qS=1;function e(t,r){return t!=null&&r in Object(t)}return cg=e,cg}var ug,US;function Dz(){if(US)return ug;US=1;var e=HO(),t=Db(),r=ga(),n=Rb(),a=Bb(),i=wp();function o(s,l,c){l=e(l,s);for(var u=-1,f=l.length,d=!1;++u<f;){var h=i(l[u]);if(!(d=s!=null&&c(s,h)))break;s=s[h]}return d||++u!=f?d:(f=s==null?0:s.length,!!f&&a(f)&&n(h,f)&&(r(s)||t(s)))}return ug=o,ug}var fg,zS;function Rz(){if(zS)return fg;zS=1;var e=Mz(),t=Dz();function r(n,a){return n!=null&&t(n,a,e)}return fg=r,fg}var hg,WS;function Bz(){if(WS)return hg;WS=1;var e=$b(),t=GO(),r=Rz(),n=_b(),a=N6(),i=T6(),o=wp(),s=1,l=2;function c(u,f){return n(u)&&a(f)?i(o(u),f):function(d){var h=t(d,u);return h===void 0&&h===f?r(d,u):e(f,h,s|l)}}return hg=c,hg}var dg,HS;function Kc(){if(HS)return dg;HS=1;function e(t){return t}return dg=e,dg}var pg,GS;function $z(){if(GS)return pg;GS=1;function e(t){return function(r){return r==null?void 0:r[t]}}return pg=e,pg}var mg,VS;function qz(){if(VS)return mg;VS=1;var e=Pb();function t(r){return function(n){return e(n,r)}}return mg=t,mg}var vg,YS;function Uz(){if(YS)return vg;YS=1;var e=$z(),t=qz(),r=_b(),n=wp();function a(i){return r(i)?e(n(i)):t(i)}return vg=a,vg}var gg,KS;function Hi(){if(KS)return gg;KS=1;var e=Fz(),t=Bz(),r=Kc(),n=ga(),a=Uz();function i(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):a(o)}return gg=i,gg}var xg,XS;function E6(){if(XS)return xg;XS=1;function e(t,r,n,a){for(var i=t.length,o=n+(a?1:-1);a?o--:++o<i;)if(r(t[o],o,t))return o;return-1}return xg=e,xg}var yg,JS;function zz(){if(JS)return yg;JS=1;function e(t){return t!==t}return yg=e,yg}var bg,ZS;function Wz(){if(ZS)return bg;ZS=1;function e(t,r,n){for(var a=n-1,i=t.length;++a<i;)if(t[a]===r)return a;return-1}return bg=e,bg}var wg,QS;function Hz(){if(QS)return wg;QS=1;var e=E6(),t=zz(),r=Wz();function n(a,i,o){return i===i?r(a,i,o):e(a,t,o)}return wg=n,wg}var _g,e3;function Gz(){if(e3)return _g;e3=1;var e=Hz();function t(r,n){var a=r==null?0:r.length;return!!a&&e(r,n,0)>-1}return _g=t,_g}var Sg,t3;function Vz(){if(t3)return Sg;t3=1;function e(t,r,n){for(var a=-1,i=t==null?0:t.length;++a<i;)if(n(r,t[a]))return!0;return!1}return Sg=e,Sg}var Ag,r3;function Yz(){if(r3)return Ag;r3=1;function e(){}return Ag=e,Ag}var Ng,n3;function Kz(){if(n3)return Ng;n3=1;var e=A6(),t=Yz(),r=Mb(),n=1/0,a=e&&1/r(new e([,-0]))[1]==n?function(i){return new e(i)}:t;return Ng=a,Ng}var Tg,a3;function Xz(){if(a3)return Tg;a3=1;var e=m6(),t=Gz(),r=Vz(),n=g6(),a=Kz(),i=Mb(),o=200;function s(l,c,u){var f=-1,d=t,h=l.length,x=!0,p=[],m=p;if(u)x=!1,d=r;else if(h>=o){var y=c?null:a(l);if(y)return i(y);x=!1,d=n,m=new e}else m=c?[]:p;e:for(;++f<h;){var b=l[f],w=c?c(b):b;if(b=u||b!==0?b:0,x&&w===w){for(var S=m.length;S--;)if(m[S]===w)continue e;c&&m.push(w),p.push(b)}else d(m,w,u)||(m!==p&&m.push(w),p.push(b))}return p}return Tg=s,Tg}var Eg,i3;function Jz(){if(i3)return Eg;i3=1;var e=Hi(),t=Xz();function r(n,a){return n&&n.length?t(n,e(a,2)):[]}return Eg=r,Eg}var Zz=Jz();const o3=ur(Zz);function P6(e,t,r){return t===!0?o3(e,r):jt(t)?o3(e,t):e}function pc(e){"@babel/helpers - typeof";return pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pc(e)}var Qz=["ref"];function s3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function io(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s3(Object(r),!0).forEach(function(n){Ep(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,j6(n.key),n)}}function tW(e,t,r){return t&&l3(e.prototype,t),r&&l3(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rW(e,t,r){return t=hd(t),nW(e,O6()?Reflect.construct(t,r||[],hd(e).constructor):t.apply(e,r))}function nW(e,t){if(t&&(pc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aW(e)}function aW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O6=function(){return!!e})()}function hd(e){return hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hd(e)}function iW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$y(e,t)}function $y(e,t){return $y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},$y(e,t)}function Ep(e,t,r){return t=j6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j6(e){var t=oW(e,"string");return pc(t)=="symbol"?t:t+""}function oW(e,t){if(pc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function sW(e,t){if(e==null)return{};var r=lW(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function cW(e){return e.value}function uW(e,t){if(W.isValidElement(e))return W.cloneElement(e,t);if(typeof e=="function")return W.createElement(e,t);t.ref;var r=sW(t,Qz);return W.createElement(Fb,r)}var c3=1,Gs=(function(e){function t(){var r;eW(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=rW(this,t,[].concat(a)),Ep(r,"lastBoundingBox",{width:-1,height:-1}),r}return iW(t,e),tW(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>c3||Math.abs(a.height-this.lastBoundingBox.height)>c3)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?io({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,i=a.layout,o=a.align,s=a.verticalAlign,l=a.margin,c=a.chartWidth,u=a.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var h=this.getBBoxSnapshot();f={left:((c||0)-h.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var x=this.getBBoxSnapshot();d={top:((u||0)-x.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return io(io({},f),d)}},{key:"render",value:function(){var n=this,a=this.props,i=a.content,o=a.width,s=a.height,l=a.wrapperStyle,c=a.payloadUniqBy,u=a.payload,f=io(io({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return W.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},uW(i,io(io({},this.props),{},{payload:P6(u,c,cW)})))}}],[{key:"getWithHeight",value:function(n,a){var i=io(io({},this.defaultProps),n.props),o=i.layout;return o==="vertical"&&nt(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||a}:null}}])})(W.PureComponent);Ep(Gs,"displayName","Legend");Ep(Gs,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Pg,u3;function fW(){if(u3)return Pg;u3=1;var e=c0(),t=Db(),r=ga(),n=e?e.isConcatSpreadable:void 0;function a(i){return r(i)||t(i)||!!(n&&i&&i[n])}return Pg=a,Pg}var Og,f3;function C6(){if(f3)return Og;f3=1;var e=y6(),t=fW();function r(n,a,i,o,s){var l=-1,c=n.length;for(i||(i=t),s||(s=[]);++l<c;){var u=n[l];a>0&&i(u)?a>1?r(u,a-1,i,o,s):e(s,u):o||(s[s.length]=u)}return s}return Og=r,Og}var jg,h3;function hW(){if(h3)return jg;h3=1;function e(t){return function(r,n,a){for(var i=-1,o=Object(r),s=a(r),l=s.length;l--;){var c=s[t?l:++i];if(n(o[c],c,o)===!1)break}return r}}return jg=e,jg}var Cg,d3;function dW(){if(d3)return Cg;d3=1;var e=hW(),t=e();return Cg=t,Cg}var kg,p3;function k6(){if(p3)return kg;p3=1;var e=dW(),t=Tp();function r(n,a){return n&&e(n,a,t)}return kg=r,kg}var Lg,m3;function pW(){if(m3)return Lg;m3=1;var e=h0();function t(r,n){return function(a,i){if(a==null)return a;if(!e(a))return r(a,i);for(var o=a.length,s=n?o:-1,l=Object(a);(n?s--:++s<o)&&i(l[s],s,l)!==!1;);return a}}return Lg=t,Lg}var Ig,v3;function qb(){if(v3)return Ig;v3=1;var e=k6(),t=pW(),r=t(e);return Ig=r,Ig}var Fg,g3;function L6(){if(g3)return Fg;g3=1;var e=qb(),t=h0();function r(n,a){var i=-1,o=t(n)?Array(n.length):[];return e(n,function(s,l,c){o[++i]=a(s,l,c)}),o}return Fg=r,Fg}var Mg,x3;function mW(){if(x3)return Mg;x3=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Mg=e,Mg}var Dg,y3;function vW(){if(y3)return Dg;y3=1;var e=Vc();function t(r,n){if(r!==n){var a=r!==void 0,i=r===null,o=r===r,s=e(r),l=n!==void 0,c=n===null,u=n===n,f=e(n);if(!c&&!f&&!s&&r>n||s&&l&&u&&!c&&!f||i&&l&&u||!a&&u||!o)return 1;if(!i&&!s&&!f&&r<n||f&&a&&o&&!i&&!s||c&&a&&o||!l&&o||!u)return-1}return 0}return Dg=t,Dg}var Rg,b3;function gW(){if(b3)return Rg;b3=1;var e=vW();function t(r,n,a){for(var i=-1,o=r.criteria,s=n.criteria,l=o.length,c=a.length;++i<l;){var u=e(o[i],s[i]);if(u){if(i>=c)return u;var f=a[i];return u*(f=="desc"?-1:1)}}return r.index-n.index}return Rg=t,Rg}var Bg,w3;function xW(){if(w3)return Bg;w3=1;var e=Eb(),t=Pb(),r=Hi(),n=L6(),a=mW(),i=w6(),o=gW(),s=Kc(),l=ga();function c(u,f,d){f.length?f=e(f,function(p){return l(p)?function(m){return t(m,p.length===1?p[0]:p)}:p}):f=[s];var h=-1;f=e(f,i(r));var x=n(u,function(p,m,y){var b=e(f,function(w){return w(p)});return{criteria:b,index:++h,value:p}});return a(x,function(p,m){return o(p,m,d)})}return Bg=c,Bg}var $g,_3;function yW(){if(_3)return $g;_3=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return $g=e,$g}var qg,S3;function bW(){if(S3)return qg;S3=1;var e=yW(),t=Math.max;function r(n,a,i){return a=t(a===void 0?n.length-1:a,0),function(){for(var o=arguments,s=-1,l=t(o.length-a,0),c=Array(l);++s<l;)c[s]=o[a+s];s=-1;for(var u=Array(a+1);++s<a;)u[s]=o[s];return u[a]=i(c),e(n,this,u)}}return qg=r,qg}var Ug,A3;function wW(){if(A3)return Ug;A3=1;function e(t){return function(){return t}}return Ug=e,Ug}var zg,N3;function I6(){if(N3)return zg;N3=1;var e=sl(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return zg=t,zg}var Wg,T3;function _W(){if(T3)return Wg;T3=1;var e=wW(),t=I6(),r=Kc(),n=t?function(a,i){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:r;return Wg=n,Wg}var Hg,E3;function SW(){if(E3)return Hg;E3=1;var e=800,t=16,r=Date.now;function n(a){var i=0,o=0;return function(){var s=r(),l=t-(s-o);if(o=s,l>0){if(++i>=e)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return Hg=n,Hg}var Gg,P3;function AW(){if(P3)return Gg;P3=1;var e=_W(),t=SW(),r=t(e);return Gg=r,Gg}var Vg,O3;function NW(){if(O3)return Vg;O3=1;var e=Kc(),t=bW(),r=AW();function n(a,i){return r(t(a,i,e),a+"")}return Vg=n,Vg}var Yg,j3;function Pp(){if(j3)return Yg;j3=1;var e=Ab(),t=h0(),r=Rb(),n=hs();function a(i,o,s){if(!n(s))return!1;var l=typeof o;return(l=="number"?t(s)&&r(o,s.length):l=="string"&&o in s)?e(s[o],i):!1}return Yg=a,Yg}var Kg,C3;function TW(){if(C3)return Kg;C3=1;var e=C6(),t=xW(),r=NW(),n=Pp(),a=r(function(i,o){if(i==null)return[];var s=o.length;return s>1&&n(i,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(i,e(o,1),[])});return Kg=a,Kg}var EW=TW();const Ub=ur(EW);function Sf(e){"@babel/helpers - typeof";return Sf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sf(e)}function qy(){return qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qy.apply(this,arguments)}function PW(e,t){return kW(e)||CW(e,t)||jW(e,t)||OW()}function OW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
367
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jW(e,t){if(e){if(typeof e=="string")return k3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k3(e,t)}}function k3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function CW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function kW(e){if(Array.isArray(e))return e}function L3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Xg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L3(Object(r),!0).forEach(function(n){LW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LW(e,t,r){return t=IW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IW(e){var t=FW(e,"string");return Sf(t)=="symbol"?t:t+""}function FW(e,t){if(Sf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MW(e){return Array.isArray(e)&&pn(e[0])&&pn(e[1])?e.join(" ~ "):e}var DW=function(t){var r=t.separator,n=r===void 0?" : ":r,a=t.contentStyle,i=a===void 0?{}:a,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,c=l===void 0?{}:l,u=t.payload,f=t.formatter,d=t.itemSorter,h=t.wrapperClassName,x=t.labelClassName,p=t.label,m=t.labelFormatter,y=t.accessibilityLayer,b=y===void 0?!1:y,w=function(){if(u&&u.length){var E={padding:0,margin:0},D=(d?Ub(u,d):u).map(function(U,H){if(U.type==="none")return null;var B=Xg({display:"block",paddingTop:4,paddingBottom:4,color:U.color||"#000"},s),z=U.formatter||f||MW,te=U.value,Z=U.name,ee=te,ce=Z;if(z&&ee!=null&&ce!=null){var P=z(te,Z,U,H,u);if(Array.isArray(P)){var I=PW(P,2);ee=I[0],ce=I[1]}else ee=P}return W.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(H),style:B},pn(ce)?W.createElement("span",{className:"recharts-tooltip-item-name"},ce):null,pn(ce)?W.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,W.createElement("span",{className:"recharts-tooltip-item-value"},ee),W.createElement("span",{className:"recharts-tooltip-item-unit"},U.unit||""))});return W.createElement("ul",{className:"recharts-tooltip-item-list",style:E},D)}return null},S=Xg({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),A=Xg({margin:0},c),O=!qt(p),N=O?p:"",C=Dt("recharts-default-tooltip",h),L=Dt("recharts-tooltip-label",x);O&&m&&u!==void 0&&u!==null&&(N=m(p,u));var R=b?{role:"status","aria-live":"assertive"}:{};return W.createElement("div",qy({className:C,style:S},R),W.createElement("p",{className:L,style:A},W.isValidElement(N)?N:"".concat(N)),w())};function Af(e){"@babel/helpers - typeof";return Af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Af(e)}function Eh(e,t,r){return t=RW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RW(e){var t=BW(e,"string");return Af(t)=="symbol"?t:t+""}function BW(e,t){if(Af(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Af(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Iu="recharts-tooltip-wrapper",$W={visibility:"hidden"};function qW(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Dt(Iu,Eh(Eh(Eh(Eh({},"".concat(Iu,"-right"),nt(r)&&t&&nt(t.x)&&r>=t.x),"".concat(Iu,"-left"),nt(r)&&t&&nt(t.x)&&r<t.x),"".concat(Iu,"-bottom"),nt(n)&&t&&nt(t.y)&&n>=t.y),"".concat(Iu,"-top"),nt(n)&&t&&nt(t.y)&&n<t.y))}function I3(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,a=e.offsetTopLeft,i=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(i&&nt(i[n]))return i[n];var u=r[n]-s-a,f=r[n]+a;if(t[n])return o[n]?u:f;if(o[n]){var d=u,h=l[n];return d<h?Math.max(f,l[n]):Math.max(u,l[n])}var x=f+s,p=l[n]+c;return x>p?Math.max(u,l[n]):Math.max(f,l[n])}function UW(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function zW(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,u,f;return o.height>0&&o.width>0&&r?(u=I3({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=I3({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=UW({translateX:u,translateY:f,useTranslate3d:s})):c=$W,{cssProperties:c,cssClasses:qW({translateX:u,translateY:f,coordinate:r})}}function mc(e){"@babel/helpers - typeof";return mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mc(e)}function F3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function M3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F3(Object(r),!0).forEach(function(n){zy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,M6(n.key),n)}}function GW(e,t,r){return t&&HW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VW(e,t,r){return t=dd(t),YW(e,F6()?Reflect.construct(t,r||[],dd(e).constructor):t.apply(e,r))}function YW(e,t){if(t&&(mc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KW(e)}function KW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F6=function(){return!!e})()}function dd(e){return dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dd(e)}function XW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uy(e,t)}function Uy(e,t){return Uy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Uy(e,t)}function zy(e,t,r){return t=M6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M6(e){var t=JW(e,"string");return mc(t)=="symbol"?t:t+""}function JW(e,t){if(mc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var D3=1,ZW=(function(e){function t(){var r;WW(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=VW(this,t,[].concat(a)),zy(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),zy(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,c,u;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(c=(u=r.props.coordinate)===null||u===void 0?void 0:u.y)!==null&&c!==void 0?c:0}})}}),r}return XW(t,e),GW(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>D3||Math.abs(n.height-this.state.lastBoundingBox.height)>D3)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,c=a.children,u=a.coordinate,f=a.hasPayload,d=a.isAnimationActive,h=a.offset,x=a.position,p=a.reverseDirection,m=a.useTranslate3d,y=a.viewBox,b=a.wrapperStyle,w=zW({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:h,position:x,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:m,viewBox:y}),S=w.cssClasses,A=w.cssProperties,O=M3(M3({transition:d&&i?"transform ".concat(s,"ms ").concat(l):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},b);return W.createElement("div",{tabIndex:-1,className:S,style:O,ref:function(C){n.wrapperNode=C}},c)}}])})(W.PureComponent),QW=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ll={isSsr:QW()};function vc(e){"@babel/helpers - typeof";return vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vc(e)}function R3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function B3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R3(Object(r),!0).forEach(function(n){zb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,R6(n.key),n)}}function rH(e,t,r){return t&&tH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nH(e,t,r){return t=pd(t),aH(e,D6()?Reflect.construct(t,r||[],pd(e).constructor):t.apply(e,r))}function aH(e,t){if(t&&(vc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iH(e)}function iH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D6=function(){return!!e})()}function pd(e){return pd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pd(e)}function oH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wy(e,t)}function Wy(e,t){return Wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Wy(e,t)}function zb(e,t,r){return t=R6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R6(e){var t=sH(e,"string");return vc(t)=="symbol"?t:t+""}function sH(e,t){if(vc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function lH(e){return e.dataKey}function cH(e,t){return W.isValidElement(e)?W.cloneElement(e,t):typeof e=="function"?W.createElement(e,t):W.createElement(DW,t)}var di=(function(e){function t(){return eH(this,t),nH(this,t,arguments)}return oH(t,e),rH(t,[{key:"render",value:function(){var n=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,c=a.content,u=a.coordinate,f=a.filterNull,d=a.isAnimationActive,h=a.offset,x=a.payload,p=a.payloadUniqBy,m=a.position,y=a.reverseDirection,b=a.useTranslate3d,w=a.viewBox,S=a.wrapperStyle,A=x??[];f&&A.length&&(A=P6(x.filter(function(N){return N.value!=null&&(N.hide!==!0||n.props.includeHidden)}),p,lH));var O=A.length>0;return W.createElement(ZW,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:i,coordinate:u,hasPayload:O,offset:h,position:m,reverseDirection:y,useTranslate3d:b,viewBox:w,wrapperStyle:S},cH(c,B3(B3({},this.props),{},{payload:A})))}}])})(W.PureComponent);zb(di,"displayName","Tooltip");zb(di,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ll.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Jg,$3;function uH(){if($3)return Jg;$3=1;var e=Wi(),t=function(){return e.Date.now()};return Jg=t,Jg}var Zg,q3;function fH(){if(q3)return Zg;q3=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Zg=t,Zg}var Qg,U3;function hH(){if(U3)return Qg;U3=1;var e=fH(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Qg=r,Qg}var ex,z3;function B6(){if(z3)return ex;z3=1;var e=hH(),t=hs(),r=Vc(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=t(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=i.test(c);return f||o.test(c)?s(c.slice(2),f?2:8):a.test(c)?n:+c}return ex=l,ex}var tx,W3;function dH(){if(W3)return tx;W3=1;var e=hs(),t=uH(),r=B6(),n="Expected a function",a=Math.max,i=Math.min;function o(s,l,c){var u,f,d,h,x,p,m=0,y=!1,b=!1,w=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(c)&&(y=!!c.leading,b="maxWait"in c,d=b?a(r(c.maxWait)||0,l):d,w="trailing"in c?!!c.trailing:w);function S(D){var U=u,H=f;return u=f=void 0,m=D,h=s.apply(H,U),h}function A(D){return m=D,x=setTimeout(C,l),y?S(D):h}function O(D){var U=D-p,H=D-m,B=l-U;return b?i(B,d-H):B}function N(D){var U=D-p,H=D-m;return p===void 0||U>=l||U<0||b&&H>=d}function C(){var D=t();if(N(D))return L(D);x=setTimeout(C,O(D))}function L(D){return x=void 0,w&&u?S(D):(u=f=void 0,h)}function R(){x!==void 0&&clearTimeout(x),m=0,u=p=f=x=void 0}function j(){return x===void 0?h:L(t())}function E(){var D=t(),U=N(D);if(u=arguments,f=this,p=D,U){if(x===void 0)return A(p);if(b)return clearTimeout(x),x=setTimeout(C,l),S(p)}return x===void 0&&(x=setTimeout(C,l)),h}return E.cancel=R,E.flush=j,E}return tx=o,tx}var rx,H3;function pH(){if(H3)return rx;H3=1;var e=dH(),t=hs(),r="Expected a function";function n(a,i,o){var s=!0,l=!0;if(typeof a!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,l="trailing"in o?!!o.trailing:l),e(a,i,{leading:s,maxWait:i,trailing:l})}return rx=n,rx}var mH=pH();const $6=ur(mH);function Nf(e){"@babel/helpers - typeof";return Nf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nf(e)}function G3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ph(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G3(Object(r),!0).forEach(function(n){vH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vH(e,t,r){return t=gH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gH(e){var t=xH(e,"string");return Nf(t)=="symbol"?t:t+""}function xH(e,t){if(Nf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yH(e,t){return SH(e)||_H(e,t)||wH(e,t)||bH()}function bH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
368
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wH(e,t){if(e){if(typeof e=="string")return V3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V3(e,t)}}function V3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _H(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function SH(e){if(Array.isArray(e))return e}var nx=W.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,a=n===void 0?{width:-1,height:-1}:n,i=e.width,o=i===void 0?"100%":i,s=e.height,l=s===void 0?"100%":s,c=e.minWidth,u=c===void 0?0:c,f=e.minHeight,d=e.maxHeight,h=e.children,x=e.debounce,p=x===void 0?0:x,m=e.id,y=e.className,b=e.onResize,w=e.style,S=w===void 0?{}:w,A=W.useRef(null),O=W.useRef();O.current=b,W.useImperativeHandle(t,function(){return Object.defineProperty(A.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),A.current},configurable:!0})});var N=W.useState({containerWidth:a.width,containerHeight:a.height}),C=yH(N,2),L=C[0],R=C[1],j=W.useCallback(function(D,U){R(function(H){var B=Math.round(D),z=Math.round(U);return H.containerWidth===B&&H.containerHeight===z?H:{containerWidth:B,containerHeight:z}})},[]);W.useEffect(function(){var D=function(Z){var ee,ce=Z[0].contentRect,P=ce.width,I=ce.height;j(P,I),(ee=O.current)===null||ee===void 0||ee.call(O,P,I)};p>0&&(D=$6(D,p,{trailing:!0,leading:!1}));var U=new ResizeObserver(D),H=A.current.getBoundingClientRect(),B=H.width,z=H.height;return j(B,z),U.observe(A.current),function(){U.disconnect()}},[j,p]);var E=W.useMemo(function(){var D=L.containerWidth,U=L.containerHeight;if(D<0||U<0)return null;go(Ms(o)||Ms(l),`The width(%s) and height(%s) are both fixed numbers,
369
- maybe you don't need to use a ResponsiveContainer.`,o,l),go(!r||r>0,"The aspect(%s) must be greater than zero.",r);var H=Ms(o)?D:o,B=Ms(l)?U:l;r&&r>0&&(H?B=H/r:B&&(H=B*r),d&&B>d&&(B=d)),go(H>0||B>0,`The width(%s) and height(%s) of chart should be greater than 0,
370
- please check the style of container, or the props width(%s) and height(%s),
371
- or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
372
- height and width.`,H,B,o,l,u,f,r);var z=!Array.isArray(h)&&vo(h.type).endsWith("Chart");return W.Children.map(h,function(te){return W.isValidElement(te)?W.cloneElement(te,Ph({width:H,height:B},z?{style:Ph({height:"100%",width:"100%",maxHeight:B,maxWidth:H},te.props.style)}:{})):te})},[r,h,l,d,f,u,L,o]);return W.createElement("div",{id:m?"".concat(m):void 0,className:Dt("recharts-responsive-container",y),style:Ph(Ph({},S),{},{width:o,height:l,minWidth:u,minHeight:f,maxHeight:d}),ref:A},E)}),q6=function(t){return null};q6.displayName="Cell";function Tf(e){"@babel/helpers - typeof";return Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tf(e)}function Y3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Hy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Y3(Object(r),!0).forEach(function(n){AH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AH(e,t,r){return t=NH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NH(e){var t=TH(e,"string");return Tf(t)=="symbol"?t:t+""}function TH(e,t){if(Tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ul={widthCache:{},cacheCount:0},EH=2e3,PH={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},K3="recharts_measurement_span";function OH(e){var t=Hy({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var af=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ll.isSsr)return{width:0,height:0};var n=OH(r),a=JSON.stringify({text:t,copyStyle:n});if(Ul.widthCache[a])return Ul.widthCache[a];try{var i=document.getElementById(K3);i||(i=document.createElement("span"),i.setAttribute("id",K3),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Hy(Hy({},PH),n);Object.assign(i.style,o),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return Ul.widthCache[a]=l,++Ul.cacheCount>EH&&(Ul.cacheCount=0,Ul.widthCache={}),l}catch{return{width:0,height:0}}},jH=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Ef(e){"@babel/helpers - typeof";return Ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ef(e)}function md(e,t){return IH(e)||LH(e,t)||kH(e,t)||CH()}function CH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
373
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kH(e,t){if(e){if(typeof e=="string")return X3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X3(e,t)}}function X3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function LH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function IH(e){if(Array.isArray(e))return e}function FH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DH(n.key),n)}}function MH(e,t,r){return t&&J3(e.prototype,t),r&&J3(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function DH(e){var t=RH(e,"string");return Ef(t)=="symbol"?t:t+""}function RH(e,t){if(Ef(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ef(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Z3=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Q3=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,BH=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,$H=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,U6={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},qH=Object.keys(U6),Zl="NaN";function UH(e,t){return e*U6[t]}var Oh=(function(){function e(t,r){FH(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!BH.test(r)&&(this.num=NaN,this.unit=""),qH.includes(r)&&(this.num=UH(t,r),this.unit="px")}return MH(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,a=(n=$H.exec(r))!==null&&n!==void 0?n:[],i=md(a,3),o=i[1],s=i[2];return new e(parseFloat(o),s??"")}}])})();function z6(e){if(e.includes(Zl))return Zl;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Z3.exec(t))!==null&&r!==void 0?r:[],a=md(n,4),i=a[1],o=a[2],s=a[3],l=Oh.parse(i??""),c=Oh.parse(s??""),u=o==="*"?l.multiply(c):l.divide(c);if(u.isNaN())return Zl;t=t.replace(Z3,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=Q3.exec(t))!==null&&f!==void 0?f:[],h=md(d,4),x=h[1],p=h[2],m=h[3],y=Oh.parse(x??""),b=Oh.parse(m??""),w=p==="+"?y.add(b):y.subtract(b);if(w.isNaN())return Zl;t=t.replace(Q3,w.toString())}return t}var eA=/\(([^()]*)\)/;function zH(e){for(var t=e;t.includes("(");){var r=eA.exec(t),n=md(r,2),a=n[1];t=t.replace(eA,z6(a))}return t}function WH(e){var t=e.replace(/\s+/g,"");return t=zH(t),t=z6(t),t}function HH(e){try{return WH(e)}catch{return Zl}}function ax(e){var t=HH(e.slice(5,-1));return t===Zl?"":t}var GH=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],VH=["dx","dy","angle","className","breakAll"];function Gy(){return Gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gy.apply(this,arguments)}function tA(e,t){if(e==null)return{};var r=YH(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rA(e,t){return ZH(e)||JH(e,t)||XH(e,t)||KH()}function KH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
374
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XH(e,t){if(e){if(typeof e=="string")return nA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nA(e,t)}}function nA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function JH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function ZH(e){if(Array.isArray(e))return e}var W6=/[ \f\n\r\t\v\u2028\u2029]+/,H6=function(t){var r=t.children,n=t.breakAll,a=t.style;try{var i=[];qt(r)||(n?i=r.toString().split(""):i=r.toString().split(W6));var o=i.map(function(l){return{word:l,width:af(l,a).width}}),s=n?0:af(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},QH=function(t,r,n,a,i){var o=t.maxLines,s=t.children,l=t.style,c=t.breakAll,u=nt(o),f=s,d=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return H.reduce(function(B,z){var te=z.word,Z=z.width,ee=B[B.length-1];if(ee&&(a==null||i||ee.width+Z+n<Number(a)))ee.words.push(te),ee.width+=Z+n;else{var ce={words:[te],width:Z};B.push(ce)}return B},[])},h=d(r),x=function(H){return H.reduce(function(B,z){return B.width>z.width?B:z})};if(!u)return h;for(var p="…",m=function(H){var B=f.slice(0,H),z=H6({breakAll:c,style:l,children:B+p}).wordsWithComputedWidth,te=d(z),Z=te.length>o||x(te).width>Number(a);return[Z,te]},y=0,b=f.length-1,w=0,S;y<=b&&w<=f.length-1;){var A=Math.floor((y+b)/2),O=A-1,N=m(O),C=rA(N,2),L=C[0],R=C[1],j=m(A),E=rA(j,1),D=E[0];if(!L&&!D&&(y=A+1),L&&D&&(b=A-1),!L&&D){S=R;break}w++}return S||h},aA=function(t){var r=qt(t)?[]:t.toString().split(W6);return[{words:r}]},eG=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!ll.isSsr){var l,c,u=H6({breakAll:o,children:a,style:i});if(u){var f=u.wordsWithComputedWidth,d=u.spaceWidth;l=f,c=d}else return aA(a);return QH({breakAll:o,children:a,maxLines:s,style:i},l,c,r,n)}return aA(a)},iA="#808080",gc=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,c=l===void 0?"0.71em":l,u=t.scaleToFit,f=u===void 0?!1:u,d=t.textAnchor,h=d===void 0?"start":d,x=t.verticalAnchor,p=x===void 0?"end":x,m=t.fill,y=m===void 0?iA:m,b=tA(t,GH),w=W.useMemo(function(){return eG({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:f,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,f,b.style,b.width]),S=b.dx,A=b.dy,O=b.angle,N=b.className,C=b.breakAll,L=tA(b,VH);if(!pn(n)||!pn(i))return null;var R=n+(nt(S)?S:0),j=i+(nt(A)?A:0),E;switch(p){case"start":E=ax("calc(".concat(c,")"));break;case"middle":E=ax("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:E=ax("calc(".concat(w.length-1," * -").concat(s,")"));break}var D=[];if(f){var U=w[0].width,H=b.width;D.push("scale(".concat((nt(H)?H/U:1)/U,")"))}return O&&D.push("rotate(".concat(O,", ").concat(R,", ").concat(j,")")),D.length&&(L.transform=D.join(" ")),W.createElement("text",Gy({},bt(L,!0),{x:R,y:j,className:Dt("recharts-text",N),textAnchor:h,fill:y.includes("url")?iA:y}),w.map(function(B,z){var te=B.words.join(C?"":" ");return W.createElement("tspan",{x:R,dy:z===0?E:s,key:"".concat(te,"-").concat(z)},te)}))};function as(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function tG(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Wb(e){let t,r,n;e.length!==2?(t=as,r=(s,l)=>as(e(s),l),n=(s,l)=>e(s)-l):(t=e===as||e===tG?e:rG,r=e,n=e);function a(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;r(s[f],l)<0?c=f+1:u=f}while(c<u)}return c}function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;r(s[f],l)<=0?c=f+1:u=f}while(c<u)}return c}function o(s,l,c=0,u=s.length){const f=a(s,l,c,u-1);return f>c&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:a,center:o,right:i}}function rG(){return 0}function G6(e){return e===null?NaN:+e}function*nG(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const aG=Wb(as),d0=aG.right;Wb(G6).center;class oA extends Map{constructor(t,r=sG){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(sA(this,t))}has(t){return super.has(sA(this,t))}set(t,r){return super.set(iG(this,t),r)}delete(t){return super.delete(oG(this,t))}}function sA({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function iG({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function oG({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function sG(e){return e!==null&&typeof e=="object"?e.valueOf():e}function lG(e=as){if(e===as)return V6;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function V6(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const cG=Math.sqrt(50),uG=Math.sqrt(10),fG=Math.sqrt(2);function vd(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=cG?10:i>=uG?5:i>=fG?2:1;let s,l,c;return a<0?(c=Math.pow(10,-a)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,a)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=r&&r<2?vd(e,t,r*2):[s,l,c]}function Vy(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[a,i,o]=n?vd(t,e,r):vd(e,t,r);if(!(i>=a))return[];const s=i-a+1,l=new Array(s);if(n)if(o<0)for(let c=0;c<s;++c)l[c]=(i-c)/-o;else for(let c=0;c<s;++c)l[c]=(i-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(a+c)/-o;else for(let c=0;c<s;++c)l[c]=(a+c)*o;return l}function Yy(e,t,r){return t=+t,e=+e,r=+r,vd(e,t,r)[2]}function Ky(e,t,r){t=+t,e=+e,r=+r;const n=t<e,a=n?Yy(t,e,r):Yy(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function lA(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function cA(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Y6(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?V6:lG(a);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,u=Math.log(l),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),h=Math.max(r,Math.floor(t-c*f/l+d)),x=Math.min(n,Math.floor(t+(l-c)*f/l+d));Y6(e,t,h,x,a)}const i=e[t];let o=r,s=n;for(Fu(e,r,t),a(e[n],i)>0&&Fu(e,r,n);o<s;){for(Fu(e,o,s),++o,--s;a(e[o],i)<0;)++o;for(;a(e[s],i)>0;)--s}a(e[r],i)===0?Fu(e,r,s):(++s,Fu(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Fu(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function hG(e,t,r){if(e=Float64Array.from(nG(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return cA(e);if(t>=1)return lA(e);var n,a=(n-1)*t,i=Math.floor(a),o=lA(Y6(e,i).subarray(0,i+1)),s=cA(e.subarray(i+1));return o+(s-o)*(a-i)}}function dG(e,t,r=G6){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function pG(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n<a;)i[n]=e+n*r;return i}function Qa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function jo(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Xy=Symbol("implicit");function Hb(){var e=new oA,t=[],r=[],n=Xy;function a(i){let o=e.get(i);if(o===void 0){if(n!==Xy)return n;e.set(i,o=t.push(i)-1)}return r[o%r.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new oA;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(r=Array.from(i),a):r.slice()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Hb(t,r).unknown(n)},Qa.apply(a,arguments),a}function Pf(){var e=Hb().unknown(void 0),t=e.domain,r=e.range,n=0,a=1,i,o,s=!1,l=0,c=0,u=.5;delete e.unknown;function f(){var d=t().length,h=a<n,x=h?a:n,p=h?n:a;i=(p-x)/Math.max(1,d-l+c*2),s&&(i=Math.floor(i)),x+=(p-x-i*(d-l))*u,o=i*(1-l),s&&(x=Math.round(x),o=Math.round(o));var m=pG(d).map(function(y){return x+i*y});return r(h?m.reverse():m)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,a]=d,n=+n,a=+a,f()):[n,a]},e.rangeRound=function(d){return[n,a]=d,n=+n,a=+a,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,c=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(c=+d,f()):c},e.align=function(d){return arguments.length?(u=Math.max(0,Math.min(1,d)),f()):u},e.copy=function(){return Pf(t(),[n,a]).round(s).paddingInner(l).paddingOuter(c).align(u)},Qa.apply(f(),arguments)}function K6(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return K6(t())},e}function of(){return K6(Pf.apply(null,arguments).paddingInner(1))}function Gb(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function X6(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function p0(){}var Of=.7,gd=1/Of,lc="\\s*([+-]?\\d+)\\s*",jf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ri="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mG=/^#([0-9a-f]{3,8})$/,vG=new RegExp(`^rgb\\(${lc},${lc},${lc}\\)$`),gG=new RegExp(`^rgb\\(${Ri},${Ri},${Ri}\\)$`),xG=new RegExp(`^rgba\\(${lc},${lc},${lc},${jf}\\)$`),yG=new RegExp(`^rgba\\(${Ri},${Ri},${Ri},${jf}\\)$`),bG=new RegExp(`^hsl\\(${jf},${Ri},${Ri}\\)$`),wG=new RegExp(`^hsla\\(${jf},${Ri},${Ri},${jf}\\)$`),uA={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gb(p0,Cf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fA,formatHex:fA,formatHex8:_G,formatHsl:SG,formatRgb:hA,toString:hA});function fA(){return this.rgb().formatHex()}function _G(){return this.rgb().formatHex8()}function SG(){return J6(this).formatHsl()}function hA(){return this.rgb().formatRgb()}function Cf(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=mG.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?dA(t):r===3?new fa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?jh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?jh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=vG.exec(e))?new fa(t[1],t[2],t[3],1):(t=gG.exec(e))?new fa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=xG.exec(e))?jh(t[1],t[2],t[3],t[4]):(t=yG.exec(e))?jh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=bG.exec(e))?vA(t[1],t[2]/100,t[3]/100,1):(t=wG.exec(e))?vA(t[1],t[2]/100,t[3]/100,t[4]):uA.hasOwnProperty(e)?dA(uA[e]):e==="transparent"?new fa(NaN,NaN,NaN,0):null}function dA(e){return new fa(e>>16&255,e>>8&255,e&255,1)}function jh(e,t,r,n){return n<=0&&(e=t=r=NaN),new fa(e,t,r,n)}function AG(e){return e instanceof p0||(e=Cf(e)),e?(e=e.rgb(),new fa(e.r,e.g,e.b,e.opacity)):new fa}function Jy(e,t,r,n){return arguments.length===1?AG(e):new fa(e,t,r,n??1)}function fa(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Gb(fa,Jy,X6(p0,{brighter(e){return e=e==null?gd:Math.pow(gd,e),new fa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Of:Math.pow(Of,e),new fa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fa(Vs(this.r),Vs(this.g),Vs(this.b),xd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pA,formatHex:pA,formatHex8:NG,formatRgb:mA,toString:mA}));function pA(){return`#${Ds(this.r)}${Ds(this.g)}${Ds(this.b)}`}function NG(){return`#${Ds(this.r)}${Ds(this.g)}${Ds(this.b)}${Ds((isNaN(this.opacity)?1:this.opacity)*255)}`}function mA(){const e=xd(this.opacity);return`${e===1?"rgb(":"rgba("}${Vs(this.r)}, ${Vs(this.g)}, ${Vs(this.b)}${e===1?")":`, ${e})`}`}function xd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ds(e){return e=Vs(e),(e<16?"0":"")+e.toString(16)}function vA(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new gi(e,t,r,n)}function J6(e){if(e instanceof gi)return new gi(e.h,e.s,e.l,e.opacity);if(e instanceof p0||(e=Cf(e)),!e)return new gi;if(e instanceof gi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(r-n)/s+(r<n)*6:r===i?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?i+a:2-i-a,o*=60):s=l>0&&l<1?0:o,new gi(o,s,l,e.opacity)}function TG(e,t,r,n){return arguments.length===1?J6(e):new gi(e,t,r,n??1)}function gi(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Gb(gi,TG,X6(p0,{brighter(e){return e=e==null?gd:Math.pow(gd,e),new gi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Of:Math.pow(Of,e),new gi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new fa(ix(e>=240?e-240:e+120,a,n),ix(e,a,n),ix(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new gi(gA(this.h),Ch(this.s),Ch(this.l),xd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=xd(this.opacity);return`${e===1?"hsl(":"hsla("}${gA(this.h)}, ${Ch(this.s)*100}%, ${Ch(this.l)*100}%${e===1?")":`, ${e})`}`}}));function gA(e){return e=(e||0)%360,e<0?e+360:e}function Ch(e){return Math.max(0,Math.min(1,e||0))}function ix(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Vb=e=>()=>e;function EG(e,t){return function(r){return e+r*t}}function PG(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function OG(e){return(e=+e)==1?Z6:function(t,r){return r-t?PG(t,r,e):Vb(isNaN(t)?r:t)}}function Z6(e,t){var r=t-e;return r?EG(e,r):Vb(isNaN(e)?t:e)}const xA=(function e(t){var r=OG(t);function n(a,i){var o=r((a=Jy(a)).r,(i=Jy(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),c=Z6(a.opacity,i.opacity);return function(u){return a.r=o(u),a.g=s(u),a.b=l(u),a.opacity=c(u),a+""}}return n.gamma=e,n})(1);function jG(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;a<r;++a)n[a]=e[a]*(1-i)+t[a]*i;return n}}function CG(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function kG(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,a=new Array(n),i=new Array(r),o;for(o=0;o<n;++o)a[o]=Xc(e[o],t[o]);for(;o<r;++o)i[o]=t[o];return function(s){for(o=0;o<n;++o)i[o]=a[o](s);return i}}function LG(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function yd(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function IG(e,t){var r={},n={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?r[a]=Xc(e[a],t[a]):n[a]=t[a];return function(i){for(a in r)n[a]=r[a](i);return n}}var Zy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ox=new RegExp(Zy.source,"g");function FG(e){return function(){return e}}function MG(e){return function(t){return e(t)+""}}function DG(e,t){var r=Zy.lastIndex=ox.lastIndex=0,n,a,i,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=Zy.exec(e))&&(a=ox.exec(t));)(i=a.index)>r&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:yd(n,a)})),r=ox.lastIndex;return r<t.length&&(i=t.slice(r),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?MG(l[0].x):FG(t):(t=l.length,function(c){for(var u=0,f;u<t;++u)s[(f=l[u]).i]=f.x(c);return s.join("")})}function Xc(e,t){var r=typeof t,n;return t==null||r==="boolean"?Vb(t):(r==="number"?yd:r==="string"?(n=Cf(t))?(t=n,xA):DG:t instanceof Cf?xA:t instanceof Date?LG:CG(t)?jG:Array.isArray(t)?kG:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?IG:yd)(e,t)}function Yb(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function RG(e,t){t===void 0&&(t=e,e=Xc);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[s](o-s)}}function BG(e){return function(){return e}}function bd(e){return+e}var yA=[0,1];function ra(e){return e}function Qy(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:BG(isNaN(t)?NaN:.5)}function $G(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function qG(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a<n?(n=Qy(a,n),i=r(o,i)):(n=Qy(n,a),i=r(i,o)),function(s){return i(n(s))}}function UG(e,t,r){var n=Math.min(e.length,t.length)-1,a=new Array(n),i=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)a[o]=Qy(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(s){var l=d0(e,s,1,n)-1;return i[l](a[l](s))}}function m0(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Op(){var e=yA,t=yA,r=Xc,n,a,i,o=ra,s,l,c;function u(){var d=Math.min(e.length,t.length);return o!==ra&&(o=$G(e[0],e[d-1])),s=d>2?UG:qG,l=c=null,f}function f(d){return d==null||isNaN(d=+d)?i:(l||(l=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(a((c||(c=s(t,e.map(n),yd)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,bd),u()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),u()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=Yb,u()},f.clamp=function(d){return arguments.length?(o=d?!0:ra,u()):o!==ra},f.interpolate=function(d){return arguments.length?(r=d,u()):r},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,h){return n=d,a=h,u()}}function Kb(){return Op()(ra,ra)}function zG(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function wd(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function xc(e){return e=wd(Math.abs(e)),e?e[1]:NaN}function WG(e,t){return function(r,n){for(var a=r.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(a-=s,a+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function HG(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var GG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function kf(e){if(!(t=GG.exec(e)))throw new Error("invalid format: "+e);var t;return new Xb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}kf.prototype=Xb.prototype;function Xb(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Xb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function VG(e){e:for(var t=e.length,r=1,n=-1,a;r<t;++r)switch(e[r]){case".":n=a=r;break;case"0":n===0&&(n=r),a=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var _d;function YG(e,t){var r=wd(e,t);if(!r)return _d=void 0,e.toPrecision(t);var n=r[0],a=r[1],i=a-(_d=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+wd(e,Math.max(0,t+i-1))[0]}function bA(e,t){var r=wd(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const wA={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:zG,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>bA(e*100,t),r:bA,s:YG,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function _A(e){return e}var SA=Array.prototype.map,AA=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function KG(e){var t=e.grouping===void 0||e.thousands===void 0?_A:WG(SA.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?_A:HG(SA.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f,d){f=kf(f);var h=f.fill,x=f.align,p=f.sign,m=f.symbol,y=f.zero,b=f.width,w=f.comma,S=f.precision,A=f.trim,O=f.type;O==="n"?(w=!0,O="g"):wA[O]||(S===void 0&&(S=12),A=!0,O="g"),(y||h==="0"&&x==="=")&&(y=!0,h="0",x="=");var N=(d&&d.prefix!==void 0?d.prefix:"")+(m==="$"?r:m==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),C=(m==="$"?n:/[%p]/.test(O)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),L=wA[O],R=/[defgprs%]/.test(O);S=S===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function j(E){var D=N,U=C,H,B,z;if(O==="c")U=L(E)+U,E="";else{E=+E;var te=E<0||1/E<0;if(E=isNaN(E)?l:L(Math.abs(E),S),A&&(E=VG(E)),te&&+E==0&&p!=="+"&&(te=!1),D=(te?p==="("?p:s:p==="-"||p==="("?"":p)+D,U=(O==="s"&&!isNaN(E)&&_d!==void 0?AA[8+_d/3]:"")+U+(te&&p==="("?")":""),R){for(H=-1,B=E.length;++H<B;)if(z=E.charCodeAt(H),48>z||z>57){U=(z===46?a+E.slice(H+1):E.slice(H))+U,E=E.slice(0,H);break}}}w&&!y&&(E=t(E,1/0));var Z=D.length+E.length+U.length,ee=Z<b?new Array(b-Z+1).join(h):"";switch(w&&y&&(E=t(ee+E,ee.length?b-U.length:1/0),ee=""),x){case"<":E=D+E+U+ee;break;case"=":E=D+ee+E+U;break;case"^":E=ee.slice(0,Z=ee.length>>1)+D+E+U+ee.slice(Z);break;default:E=ee+D+E+U;break}return i(E)}return j.toString=function(){return f+""},j}function u(f,d){var h=Math.max(-8,Math.min(8,Math.floor(xc(d)/3)))*3,x=Math.pow(10,-h),p=c((f=kf(f),f.type="f",f),{suffix:AA[8+h/3]});return function(m){return p(x*m)}}return{format:c,formatPrefix:u}}var kh,Jb,Q6;XG({thousands:",",grouping:[3],currency:["$",""]});function XG(e){return kh=KG(e),Jb=kh.format,Q6=kh.formatPrefix,kh}function JG(e){return Math.max(0,-xc(Math.abs(e)))}function ZG(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xc(t)/3)))*3-xc(Math.abs(e)))}function QG(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xc(t)-xc(e))+1}function ej(e,t,r,n){var a=Ky(e,t,r),i;switch(n=kf(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=ZG(a,o))&&(n.precision=i),Q6(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=QG(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=JG(a))&&(n.precision=i-(n.type==="%")*2);break}}return Jb(n)}function ds(e){var t=e.domain;return e.ticks=function(r){var n=t();return Vy(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return ej(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],s=n[i],l,c,u=10;for(s<o&&(c=o,o=s,s=c,c=a,a=i,i=c);u-- >0;){if(c=Yy(o,s,r),c===l)return n[a]=o,n[i]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function Sd(){var e=Kb();return e.copy=function(){return m0(e,Sd())},Qa.apply(e,arguments),ds(e)}function tj(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,bd),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return tj(e).unknown(t)},e=arguments.length?Array.from(e,bd):[0,1],ds(r)}function rj(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return i<a&&(o=r,r=n,n=o,o=a,a=i,i=o),e[r]=t.floor(a),e[n]=t.ceil(i),e}function NA(e){return Math.log(e)}function TA(e){return Math.exp(e)}function eV(e){return-Math.log(-e)}function tV(e){return-Math.exp(-e)}function rV(e){return isFinite(e)?+("1e"+e):e<0?0:e}function nV(e){return e===10?rV:e===Math.E?Math.exp:t=>Math.pow(e,t)}function aV(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function EA(e){return(t,r)=>-e(-t,r)}function Zb(e){const t=e(NA,TA),r=t.domain;let n=10,a,i;function o(){return a=aV(n),i=nV(n),r()[0]<0?(a=EA(a),i=EA(i),e(eV,tV)):e(NA,TA),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],u=l[l.length-1];const f=u<c;f&&([c,u]=[u,c]);let d=a(c),h=a(u),x,p;const m=s==null?10:+s;let y=[];if(!(n%1)&&h-d<m){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(x=1;x<n;++x)if(p=d<0?x/i(-d):x*i(d),!(p<c)){if(p>u)break;y.push(p)}}else for(;d<=h;++d)for(x=n-1;x>=1;--x)if(p=d>0?x/i(-d):x*i(d),!(p<c)){if(p>u)break;y.push(p)}y.length*2<m&&(y=Vy(c,u,m))}else y=Vy(d,h,Math.min(h-d,m)).map(i);return f?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=kf(l)).precision==null&&(l.trim=!0),l=Jb(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return u=>{let f=u/i(Math.round(a(u)));return f*n<n-.5&&(f*=n),f<=c?l(u):""}},t.nice=()=>r(rj(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function nj(){const e=Zb(Op()).domain([1,10]);return e.copy=()=>m0(e,nj()).base(e.base()),Qa.apply(e,arguments),e}function PA(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function OA(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Qb(e){var t=1,r=e(PA(t),OA(t));return r.constant=function(n){return arguments.length?e(PA(t=+n),OA(t)):t},ds(r)}function aj(){var e=Qb(Op());return e.copy=function(){return m0(e,aj()).constant(e.constant())},Qa.apply(e,arguments)}function jA(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function iV(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function oV(e){return e<0?-e*e:e*e}function e5(e){var t=e(ra,ra),r=1;function n(){return r===1?e(ra,ra):r===.5?e(iV,oV):e(jA(r),jA(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},ds(t)}function t5(){var e=e5(Op());return e.copy=function(){return m0(e,t5()).exponent(e.exponent())},Qa.apply(e,arguments),e}function sV(){return t5.apply(null,arguments).exponent(.5)}function CA(e){return Math.sign(e)*e*e}function lV(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ij(){var e=Kb(),t=[0,1],r=!1,n;function a(i){var o=lV(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(CA(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,bd)).map(CA)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return ij(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Qa.apply(a,arguments),ds(a)}function oj(){var e=[],t=[],r=[],n;function a(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=dG(e,o/s);return i}function i(o){return o==null||isNaN(o=+o)?n:t[d0(r,o)]}return i.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(as),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return oj().domain(e).range(t).unknown(n)},Qa.apply(i,arguments)}function sj(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(l){return l!=null&&l<=l?a[d0(n,l,0,r)]:i}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(a=Array.from(l)).length-1,s()):a.slice()},o.invertExtent=function(l){var c=a.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return sj().domain([e,t]).range(a).unknown(i)},Qa.apply(ds(o),arguments)}function lj(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[d0(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return lj().domain(e).range(t).unknown(r)},Qa.apply(a,arguments)}const sx=new Date,lx=new Date;function mn(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const l=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<o);return l},a.filter=i=>mn(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(sx.setTime(+i),lx.setTime(+o),e(sx),e(lx),Math.floor(r(sx,lx))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Ad=mn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ad.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?mn(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ad);Ad.range;const co=1e3,Ya=co*60,uo=Ya*60,So=uo*24,r5=So*7,kA=So*30,cx=So*365,Rs=mn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*co)},(e,t)=>(t-e)/co,e=>e.getUTCSeconds());Rs.range;const n5=mn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*co)},(e,t)=>{e.setTime(+e+t*Ya)},(e,t)=>(t-e)/Ya,e=>e.getMinutes());n5.range;const a5=mn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ya)},(e,t)=>(t-e)/Ya,e=>e.getUTCMinutes());a5.range;const i5=mn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*co-e.getMinutes()*Ya)},(e,t)=>{e.setTime(+e+t*uo)},(e,t)=>(t-e)/uo,e=>e.getHours());i5.range;const o5=mn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*uo)},(e,t)=>(t-e)/uo,e=>e.getUTCHours());o5.range;const v0=mn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ya)/So,e=>e.getDate()-1);v0.range;const jp=mn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/So,e=>e.getUTCDate()-1);jp.range;const cj=mn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/So,e=>Math.floor(e/So));cj.range;function cl(e){return mn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ya)/r5)}const Cp=cl(0),Nd=cl(1),cV=cl(2),uV=cl(3),yc=cl(4),fV=cl(5),hV=cl(6);Cp.range;Nd.range;cV.range;uV.range;yc.range;fV.range;hV.range;function ul(e){return mn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/r5)}const kp=ul(0),Td=ul(1),dV=ul(2),pV=ul(3),bc=ul(4),mV=ul(5),vV=ul(6);kp.range;Td.range;dV.range;pV.range;bc.range;mV.range;vV.range;const s5=mn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());s5.range;const l5=mn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());l5.range;const Ao=mn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ao.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:mn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Ao.range;const No=mn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());No.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:mn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});No.range;function uj(e,t,r,n,a,i){const o=[[Rs,1,co],[Rs,5,5*co],[Rs,15,15*co],[Rs,30,30*co],[i,1,Ya],[i,5,5*Ya],[i,15,15*Ya],[i,30,30*Ya],[a,1,uo],[a,3,3*uo],[a,6,6*uo],[a,12,12*uo],[n,1,So],[n,2,2*So],[r,1,r5],[t,1,kA],[t,3,3*kA],[e,1,cx]];function s(c,u,f){const d=u<c;d&&([c,u]=[u,c]);const h=f&&typeof f.range=="function"?f:l(c,u,f),x=h?h.range(c,+u+1):[];return d?x.reverse():x}function l(c,u,f){const d=Math.abs(u-c)/f,h=Wb(([,,m])=>m).right(o,d);if(h===o.length)return e.every(Ky(c/cx,u/cx,f));if(h===0)return Ad.every(Math.max(Ky(c,u,f),1));const[x,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return x.every(p)}return[s,l]}const[gV,xV]=uj(No,l5,kp,cj,o5,a5),[yV,bV]=uj(Ao,s5,Cp,v0,i5,n5);function ux(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function fx(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Mu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function wV(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=Du(a),u=Ru(a),f=Du(i),d=Ru(i),h=Du(o),x=Ru(o),p=Du(s),m=Ru(s),y=Du(l),b=Ru(l),w={a:z,A:te,b:Z,B:ee,c:null,d:RA,e:RA,f:WV,g:eY,G:rY,H:qV,I:UV,j:zV,L:fj,m:HV,M:GV,p:ce,q:P,Q:qA,s:UA,S:VV,u:YV,U:KV,V:XV,w:JV,W:ZV,x:null,X:null,y:QV,Y:tY,Z:nY,"%":$A},S={a:I,A:M,b:q,B:Y,c:null,d:BA,e:BA,f:sY,g:gY,G:yY,H:aY,I:iY,j:oY,L:dj,m:lY,M:cY,p:fe,q:ne,Q:qA,s:UA,S:uY,u:fY,U:hY,V:dY,w:pY,W:mY,x:null,X:null,y:vY,Y:xY,Z:bY,"%":$A},A={a:R,A:j,b:E,B:D,c:U,d:MA,e:MA,f:DV,g:FA,G:IA,H:DA,I:DA,j:LV,L:MV,m:kV,M:IV,p:L,q:CV,Q:BV,s:$V,S:FV,u:TV,U:EV,V:PV,w:NV,W:OV,x:H,X:B,y:FA,Y:IA,Z:jV,"%":RV};w.x=O(r,w),w.X=O(n,w),w.c=O(t,w),S.x=O(r,S),S.X=O(n,S),S.c=O(t,S);function O(K,he){return function(be){var se=[],Le=-1,Se=0,Ae=K.length,le,De,Qe;for(be instanceof Date||(be=new Date(+be));++Le<Ae;)K.charCodeAt(Le)===37&&(se.push(K.slice(Se,Le)),(De=LA[le=K.charAt(++Le)])!=null?le=K.charAt(++Le):De=le==="e"?" ":"0",(Qe=he[le])&&(le=Qe(be,De)),se.push(le),Se=Le+1);return se.push(K.slice(Se,Le)),se.join("")}}function N(K,he){return function(be){var se=Mu(1900,void 0,1),Le=C(se,K,be+="",0),Se,Ae;if(Le!=be.length)return null;if("Q"in se)return new Date(se.Q);if("s"in se)return new Date(se.s*1e3+("L"in se?se.L:0));if(he&&!("Z"in se)&&(se.Z=0),"p"in se&&(se.H=se.H%12+se.p*12),se.m===void 0&&(se.m="q"in se?se.q:0),"V"in se){if(se.V<1||se.V>53)return null;"w"in se||(se.w=1),"Z"in se?(Se=fx(Mu(se.y,0,1)),Ae=Se.getUTCDay(),Se=Ae>4||Ae===0?Td.ceil(Se):Td(Se),Se=jp.offset(Se,(se.V-1)*7),se.y=Se.getUTCFullYear(),se.m=Se.getUTCMonth(),se.d=Se.getUTCDate()+(se.w+6)%7):(Se=ux(Mu(se.y,0,1)),Ae=Se.getDay(),Se=Ae>4||Ae===0?Nd.ceil(Se):Nd(Se),Se=v0.offset(Se,(se.V-1)*7),se.y=Se.getFullYear(),se.m=Se.getMonth(),se.d=Se.getDate()+(se.w+6)%7)}else("W"in se||"U"in se)&&("w"in se||(se.w="u"in se?se.u%7:"W"in se?1:0),Ae="Z"in se?fx(Mu(se.y,0,1)).getUTCDay():ux(Mu(se.y,0,1)).getDay(),se.m=0,se.d="W"in se?(se.w+6)%7+se.W*7-(Ae+5)%7:se.w+se.U*7-(Ae+6)%7);return"Z"in se?(se.H+=se.Z/100|0,se.M+=se.Z%100,fx(se)):ux(se)}}function C(K,he,be,se){for(var Le=0,Se=he.length,Ae=be.length,le,De;Le<Se;){if(se>=Ae)return-1;if(le=he.charCodeAt(Le++),le===37){if(le=he.charAt(Le++),De=A[le in LA?he.charAt(Le++):le],!De||(se=De(K,be,se))<0)return-1}else if(le!=be.charCodeAt(se++))return-1}return se}function L(K,he,be){var se=c.exec(he.slice(be));return se?(K.p=u.get(se[0].toLowerCase()),be+se[0].length):-1}function R(K,he,be){var se=h.exec(he.slice(be));return se?(K.w=x.get(se[0].toLowerCase()),be+se[0].length):-1}function j(K,he,be){var se=f.exec(he.slice(be));return se?(K.w=d.get(se[0].toLowerCase()),be+se[0].length):-1}function E(K,he,be){var se=y.exec(he.slice(be));return se?(K.m=b.get(se[0].toLowerCase()),be+se[0].length):-1}function D(K,he,be){var se=p.exec(he.slice(be));return se?(K.m=m.get(se[0].toLowerCase()),be+se[0].length):-1}function U(K,he,be){return C(K,t,he,be)}function H(K,he,be){return C(K,r,he,be)}function B(K,he,be){return C(K,n,he,be)}function z(K){return o[K.getDay()]}function te(K){return i[K.getDay()]}function Z(K){return l[K.getMonth()]}function ee(K){return s[K.getMonth()]}function ce(K){return a[+(K.getHours()>=12)]}function P(K){return 1+~~(K.getMonth()/3)}function I(K){return o[K.getUTCDay()]}function M(K){return i[K.getUTCDay()]}function q(K){return l[K.getUTCMonth()]}function Y(K){return s[K.getUTCMonth()]}function fe(K){return a[+(K.getUTCHours()>=12)]}function ne(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var he=O(K+="",w);return he.toString=function(){return K},he},parse:function(K){var he=N(K+="",!1);return he.toString=function(){return K},he},utcFormat:function(K){var he=O(K+="",S);return he.toString=function(){return K},he},utcParse:function(K){var he=N(K+="",!0);return he.toString=function(){return K},he}}}var LA={"-":"",_:" ",0:"0"},Sn=/^\s*\d+/,_V=/^%/,SV=/[\\^$*+?|[\]().{}]/g;function Qt(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)}function AV(e){return e.replace(SV,"\\$&")}function Du(e){return new RegExp("^(?:"+e.map(AV).join("|")+")","i")}function Ru(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function NV(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function TV(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function EV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function PV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function OV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function IA(e,t,r){var n=Sn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function FA(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function jV(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function CV(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function kV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function MA(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function LV(e,t,r){var n=Sn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function DA(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function IV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function FV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function MV(e,t,r){var n=Sn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function DV(e,t,r){var n=Sn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function RV(e,t,r){var n=_V.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function BV(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function $V(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function RA(e,t){return Qt(e.getDate(),t,2)}function qV(e,t){return Qt(e.getHours(),t,2)}function UV(e,t){return Qt(e.getHours()%12||12,t,2)}function zV(e,t){return Qt(1+v0.count(Ao(e),e),t,3)}function fj(e,t){return Qt(e.getMilliseconds(),t,3)}function WV(e,t){return fj(e,t)+"000"}function HV(e,t){return Qt(e.getMonth()+1,t,2)}function GV(e,t){return Qt(e.getMinutes(),t,2)}function VV(e,t){return Qt(e.getSeconds(),t,2)}function YV(e){var t=e.getDay();return t===0?7:t}function KV(e,t){return Qt(Cp.count(Ao(e)-1,e),t,2)}function hj(e){var t=e.getDay();return t>=4||t===0?yc(e):yc.ceil(e)}function XV(e,t){return e=hj(e),Qt(yc.count(Ao(e),e)+(Ao(e).getDay()===4),t,2)}function JV(e){return e.getDay()}function ZV(e,t){return Qt(Nd.count(Ao(e)-1,e),t,2)}function QV(e,t){return Qt(e.getFullYear()%100,t,2)}function eY(e,t){return e=hj(e),Qt(e.getFullYear()%100,t,2)}function tY(e,t){return Qt(e.getFullYear()%1e4,t,4)}function rY(e,t){var r=e.getDay();return e=r>=4||r===0?yc(e):yc.ceil(e),Qt(e.getFullYear()%1e4,t,4)}function nY(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Qt(t/60|0,"0",2)+Qt(t%60,"0",2)}function BA(e,t){return Qt(e.getUTCDate(),t,2)}function aY(e,t){return Qt(e.getUTCHours(),t,2)}function iY(e,t){return Qt(e.getUTCHours()%12||12,t,2)}function oY(e,t){return Qt(1+jp.count(No(e),e),t,3)}function dj(e,t){return Qt(e.getUTCMilliseconds(),t,3)}function sY(e,t){return dj(e,t)+"000"}function lY(e,t){return Qt(e.getUTCMonth()+1,t,2)}function cY(e,t){return Qt(e.getUTCMinutes(),t,2)}function uY(e,t){return Qt(e.getUTCSeconds(),t,2)}function fY(e){var t=e.getUTCDay();return t===0?7:t}function hY(e,t){return Qt(kp.count(No(e)-1,e),t,2)}function pj(e){var t=e.getUTCDay();return t>=4||t===0?bc(e):bc.ceil(e)}function dY(e,t){return e=pj(e),Qt(bc.count(No(e),e)+(No(e).getUTCDay()===4),t,2)}function pY(e){return e.getUTCDay()}function mY(e,t){return Qt(Td.count(No(e)-1,e),t,2)}function vY(e,t){return Qt(e.getUTCFullYear()%100,t,2)}function gY(e,t){return e=pj(e),Qt(e.getUTCFullYear()%100,t,2)}function xY(e,t){return Qt(e.getUTCFullYear()%1e4,t,4)}function yY(e,t){var r=e.getUTCDay();return e=r>=4||r===0?bc(e):bc.ceil(e),Qt(e.getUTCFullYear()%1e4,t,4)}function bY(){return"+0000"}function $A(){return"%"}function qA(e){return+e}function UA(e){return Math.floor(+e/1e3)}var zl,mj,vj;wY({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function wY(e){return zl=wV(e),mj=zl.format,zl.parse,vj=zl.utcFormat,zl.utcParse,zl}function _Y(e){return new Date(e)}function SY(e){return e instanceof Date?+e:+new Date(+e)}function c5(e,t,r,n,a,i,o,s,l,c){var u=Kb(),f=u.invert,d=u.domain,h=c(".%L"),x=c(":%S"),p=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),b=c("%b %d"),w=c("%B"),S=c("%Y");function A(O){return(l(O)<O?h:s(O)<O?x:o(O)<O?p:i(O)<O?m:n(O)<O?a(O)<O?y:b:r(O)<O?w:S)(O)}return u.invert=function(O){return new Date(f(O))},u.domain=function(O){return arguments.length?d(Array.from(O,SY)):d().map(_Y)},u.ticks=function(O){var N=d();return e(N[0],N[N.length-1],O??10)},u.tickFormat=function(O,N){return N==null?A:c(N)},u.nice=function(O){var N=d();return(!O||typeof O.range!="function")&&(O=t(N[0],N[N.length-1],O??10)),O?d(rj(N,O)):u},u.copy=function(){return m0(u,c5(e,t,r,n,a,i,o,s,l,c))},u}function AY(){return Qa.apply(c5(yV,bV,Ao,s5,Cp,v0,i5,n5,Rs,mj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function NY(){return Qa.apply(c5(gV,xV,No,l5,kp,jp,o5,a5,Rs,vj).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Lp(){var e=0,t=1,r,n,a,i,o=ra,s=!1,l;function c(f){return f==null||isNaN(f=+f)?l:o(a===0?.5:(f=(i(f)-r)*a,s?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,r=i(e=+e),n=i(t=+t),a=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(o=f,c):o};function u(f){return function(d){var h,x;return arguments.length?([h,x]=d,o=f(h,x),c):[o(0),o(1)]}}return c.range=u(Xc),c.rangeRound=u(Yb),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return i=f,r=f(e),n=f(t),a=r===n?0:1/(n-r),c}}function ps(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function gj(){var e=ds(Lp()(ra));return e.copy=function(){return ps(e,gj())},jo.apply(e,arguments)}function xj(){var e=Zb(Lp()).domain([1,10]);return e.copy=function(){return ps(e,xj()).base(e.base())},jo.apply(e,arguments)}function yj(){var e=Qb(Lp());return e.copy=function(){return ps(e,yj()).constant(e.constant())},jo.apply(e,arguments)}function u5(){var e=e5(Lp());return e.copy=function(){return ps(e,u5()).exponent(e.exponent())},jo.apply(e,arguments)}function TY(){return u5.apply(null,arguments).exponent(.5)}function bj(){var e=[],t=ra;function r(n){if(n!=null&&!isNaN(n=+n))return t((d0(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(as),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>hG(e,i/n))},r.copy=function(){return bj(t).domain(e)},jo.apply(r,arguments)}function Ip(){var e=0,t=.5,r=1,n=1,a,i,o,s,l,c=ra,u,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+u(p))-i)*(n*p<n*i?s:l),c(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,a=u(e=+e),i=u(t=+t),o=u(r=+r),s=a===i?0:.5/(i-a),l=i===o?0:.5/(o-i),n=i<a?-1:1,h):[e,t,r]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(c=p,h):c};function x(p){return function(m){var y,b,w;return arguments.length?([y,b,w]=m,c=RG(p,[y,b,w]),h):[c(0),c(.5),c(1)]}}return h.range=x(Xc),h.rangeRound=x(Yb),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return u=p,a=p(e),i=p(t),o=p(r),s=a===i?0:.5/(i-a),l=i===o?0:.5/(o-i),n=i<a?-1:1,h}}function wj(){var e=ds(Ip()(ra));return e.copy=function(){return ps(e,wj())},jo.apply(e,arguments)}function _j(){var e=Zb(Ip()).domain([.1,1,10]);return e.copy=function(){return ps(e,_j()).base(e.base())},jo.apply(e,arguments)}function Sj(){var e=Qb(Ip());return e.copy=function(){return ps(e,Sj()).constant(e.constant())},jo.apply(e,arguments)}function f5(){var e=e5(Ip());return e.copy=function(){return ps(e,f5()).exponent(e.exponent())},jo.apply(e,arguments)}function EY(){return f5.apply(null,arguments).exponent(.5)}const zA=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Pf,scaleDiverging:wj,scaleDivergingLog:_j,scaleDivergingPow:f5,scaleDivergingSqrt:EY,scaleDivergingSymlog:Sj,scaleIdentity:tj,scaleImplicit:Xy,scaleLinear:Sd,scaleLog:nj,scaleOrdinal:Hb,scalePoint:of,scalePow:t5,scaleQuantile:oj,scaleQuantize:sj,scaleRadial:ij,scaleSequential:gj,scaleSequentialLog:xj,scaleSequentialPow:u5,scaleSequentialQuantile:bj,scaleSequentialSqrt:TY,scaleSequentialSymlog:yj,scaleSqrt:sV,scaleSymlog:aj,scaleThreshold:lj,scaleTime:AY,scaleUtc:NY,tickFormat:ej},Symbol.toStringTag,{value:"Module"}));var hx,WA;function Fp(){if(WA)return hx;WA=1;var e=Vc();function t(r,n,a){for(var i=-1,o=r.length;++i<o;){var s=r[i],l=n(s);if(l!=null&&(c===void 0?l===l&&!e(l):a(l,c)))var c=l,u=s}return u}return hx=t,hx}var dx,HA;function Aj(){if(HA)return dx;HA=1;function e(t,r){return t>r}return dx=e,dx}var px,GA;function PY(){if(GA)return px;GA=1;var e=Fp(),t=Aj(),r=Kc();function n(a){return a&&a.length?e(a,r,t):void 0}return px=n,px}var OY=PY();const Mp=ur(OY);var mx,VA;function Nj(){if(VA)return mx;VA=1;function e(t,r){return t<r}return mx=e,mx}var vx,YA;function jY(){if(YA)return vx;YA=1;var e=Fp(),t=Nj(),r=Kc();function n(a){return a&&a.length?e(a,r,t):void 0}return vx=n,vx}var CY=jY();const Dp=ur(CY);var gx,KA;function kY(){if(KA)return gx;KA=1;var e=Eb(),t=Hi(),r=L6(),n=ga();function a(i,o){var s=n(i)?e:r;return s(i,t(o,3))}return gx=a,gx}var xx,XA;function LY(){if(XA)return xx;XA=1;var e=C6(),t=kY();function r(n,a){return e(t(n,a),1)}return xx=r,xx}var IY=LY();const FY=ur(IY);var yx,JA;function MY(){if(JA)return yx;JA=1;var e=$b();function t(r,n){return e(r,n)}return yx=t,yx}var DY=MY();const g0=ur(DY);var Jc=1e9,RY={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},d5,Fr=!0,Ja="[DecimalError] ",Ys=Ja+"Invalid argument: ",h5=Ja+"Exponent out of range: ",Zc=Math.floor,Cs=Math.pow,BY=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ca,yn=1e7,kr=7,Tj=9007199254740991,Ed=Zc(Tj/kr),pt={};pt.absoluteValue=pt.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};pt.comparedTo=pt.cmp=function(e){var t,r,n,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=n<a?n:a;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};pt.decimalPlaces=pt.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*kr;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};pt.dividedBy=pt.div=function(e){return xo(this,new this.constructor(e))};pt.dividedToIntegerBy=pt.idiv=function(e){var t=this,r=t.constructor;return Nr(xo(t,new r(e),0,1),r.precision)};pt.equals=pt.eq=function(e){return!this.cmp(e)};pt.exponent=function(){return on(this)};pt.greaterThan=pt.gt=function(e){return this.cmp(e)>0};pt.greaterThanOrEqualTo=pt.gte=function(e){return this.cmp(e)>=0};pt.isInteger=pt.isint=function(){return this.e>this.d.length-2};pt.isNegative=pt.isneg=function(){return this.s<0};pt.isPositive=pt.ispos=function(){return this.s>0};pt.isZero=function(){return this.s===0};pt.lessThan=pt.lt=function(e){return this.cmp(e)<0};pt.lessThanOrEqualTo=pt.lte=function(e){return this.cmp(e)<1};pt.logarithm=pt.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ca))throw Error(Ja+"NaN");if(r.s<1)throw Error(Ja+(r.s?"NaN":"-Infinity"));return r.eq(Ca)?new n(0):(Fr=!1,t=xo(Lf(r,i),Lf(e,i),i),Fr=!0,Nr(t,a))};pt.minus=pt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Oj(t,e):Ej(t,(e.s=-e.s,e))};pt.modulo=pt.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(Ja+"NaN");return r.s?(Fr=!1,t=xo(r,e,0,1).times(e),Fr=!0,r.minus(t)):Nr(new n(r),a)};pt.naturalExponential=pt.exp=function(){return Pj(this)};pt.naturalLogarithm=pt.ln=function(){return Lf(this)};pt.negated=pt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pt.plus=pt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ej(t,e):Oj(t,(e.s=-e.s,e))};pt.precision=pt.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ys+e);if(t=on(a)+1,n=a.d.length-1,r=n*kr+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};pt.squareRoot=pt.sqrt=function(){var e,t,r,n,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Ja+"NaN")}for(e=on(s),Fr=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=Mi(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Zc((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(a.toString()),r=l.precision,a=o=r+3;;)if(i=n,n=i.plus(xo(s,i,o+2)).times(.5),Mi(i.d).slice(0,o)===(t=Mi(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(Nr(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return Fr=!0,Nr(n,r)};pt.times=pt.mul=function(e){var t,r,n,a,i,o,s,l,c,u=this,f=u.constructor,d=u.d,h=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,r=u.e+e.e,l=d.length,c=h.length,l<c&&(i=d,d=h,h=i,o=l,l=c,c=o),i=[],o=l+c,n=o;n--;)i.push(0);for(n=c;--n>=0;){for(t=0,a=l+n;a>n;)s=i[a]+h[n]*d[a-n-1]+t,i[a--]=s%yn|0,t=s/yn|0;i[a]=(i[a]+t)%yn|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,Fr?Nr(e,f.precision):e};pt.toDecimalPlaces=pt.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(qi(e,0,Jc),t===void 0?t=n.rounding:qi(t,0,8),Nr(r,e+on(r)+1,t))};pt.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=Qs(n,!0):(qi(e,0,Jc),t===void 0?t=a.rounding:qi(t,0,8),n=Nr(new a(n),e+1,t),r=Qs(n,!0,e+1)),r};pt.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?Qs(a):(qi(e,0,Jc),t===void 0?t=i.rounding:qi(t,0,8),n=Nr(new i(a),e+on(a)+1,t),r=Qs(n.abs(),!1,e+on(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};pt.toInteger=pt.toint=function(){var e=this,t=e.constructor;return Nr(new t(e),on(e)+1,t.rounding)};pt.toNumber=function(){return+this};pt.toPower=pt.pow=function(e){var t,r,n,a,i,o,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Ca);if(s=new l(s),!s.s){if(e.s<1)throw Error(Ja+"Infinity");return s}if(s.eq(Ca))return s;if(n=l.precision,e.eq(Ca))return Nr(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=u<0?-u:u)<=Tj){for(a=new l(Ca),t=Math.ceil(n/kr+4),Fr=!1;r%2&&(a=a.times(s),QA(a.d,t)),r=Zc(r/2),r!==0;)s=s.times(s),QA(s.d,t);return Fr=!0,e.s<0?new l(Ca).div(a):Nr(a,n)}}else if(i<0)throw Error(Ja+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Fr=!1,a=e.times(Lf(s,n+c)),Fr=!0,a=Pj(a),a.s=i,a};pt.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=on(a),n=Qs(a,r<=i.toExpNeg||r>=i.toExpPos)):(qi(e,1,Jc),t===void 0?t=i.rounding:qi(t,0,8),a=Nr(new i(a),e,t),r=on(a),n=Qs(a,e<=r||r<=i.toExpNeg,e)),n};pt.toSignificantDigits=pt.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(qi(e,1,Jc),t===void 0?t=n.rounding:qi(t,0,8)),Nr(new n(r),e,t)};pt.toString=pt.valueOf=pt.val=pt.toJSON=pt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=on(e),r=e.constructor;return Qs(e,t<=r.toExpNeg||t>=r.toExpPos)};function Ej(e,t){var r,n,a,i,o,s,l,c,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),Fr?Nr(t,f):t;if(l=e.d,c=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(n=l,i=-i,s=c.length):(n=c,a=o,s=l.length),o=Math.ceil(f/kr),s=o>s?o+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,n=c,c=l,l=n),r=0;i;)r=(l[--i]=l[i]+c[i]+r)/yn|0,l[i]%=yn;for(r&&(l.unshift(r),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,Fr?Nr(t,f):t}function qi(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ys+e)}function Mi(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;t<a;t++)n=e[t]+"",r=kr-n.length,r&&(i+=Xo(r)),i+=n;o=e[t],n=o+"",r=kr-n.length,r&&(i+=Xo(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var xo=(function(){function e(n,a){var i,o=0,s=n.length;for(n=n.slice();s--;)i=n[s]*a+o,n[s]=i%yn|0,o=i/yn|0;return o&&n.unshift(o),n}function t(n,a,i,o){var s,l;if(i!=o)l=i>o?1:-1;else for(s=l=0;s<i;s++)if(n[s]!=a[s]){l=n[s]>a[s]?1:-1;break}return l}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]<a[i]?1:0,n[i]=o*yn+n[i]-a[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,a,i,o){var s,l,c,u,f,d,h,x,p,m,y,b,w,S,A,O,N,C,L=n.constructor,R=n.s==a.s?1:-1,j=n.d,E=a.d;if(!n.s)return new L(n);if(!a.s)throw Error(Ja+"Division by zero");for(l=n.e-a.e,N=E.length,A=j.length,h=new L(R),x=h.d=[],c=0;E[c]==(j[c]||0);)++c;if(E[c]>(j[c]||0)&&--l,i==null?b=i=L.precision:o?b=i+(on(n)-on(a))+1:b=i,b<0)return new L(0);if(b=b/kr+2|0,c=0,N==1)for(u=0,E=E[0],b++;(c<A||u)&&b--;c++)w=u*yn+(j[c]||0),x[c]=w/E|0,u=w%E|0;else{for(u=yn/(E[0]+1)|0,u>1&&(E=e(E,u),j=e(j,u),N=E.length,A=j.length),S=N,p=j.slice(0,N),m=p.length;m<N;)p[m++]=0;C=E.slice(),C.unshift(0),O=E[0],E[1]>=yn/2&&++O;do u=0,s=t(E,p,N,m),s<0?(y=p[0],N!=m&&(y=y*yn+(p[1]||0)),u=y/O|0,u>1?(u>=yn&&(u=yn-1),f=e(E,u),d=f.length,m=p.length,s=t(f,p,d,m),s==1&&(u--,r(f,N<d?C:E,d))):(u==0&&(s=u=1),f=E.slice()),d=f.length,d<m&&f.unshift(0),r(p,f,m),s==-1&&(m=p.length,s=t(E,p,N,m),s<1&&(u++,r(p,N<m?C:E,m))),m=p.length):s===0&&(u++,p=[0]),x[c++]=u,s&&p[0]?p[m++]=j[S]||0:(p=[j[S]],m=1);while((S++<A||p[0]!==void 0)&&b--)}return x[0]||x.shift(),h.e=l,Nr(h,o?i+on(h)+1:i)}})();function Pj(e,t){var r,n,a,i,o,s,l=0,c=0,u=e.constructor,f=u.precision;if(on(e)>16)throw Error(h5+on(e));if(!e.s)return new u(Ca);for(Fr=!1,s=f,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Cs(2,c))/Math.LN10*2+5|0,s+=n,r=a=i=new u(Ca),u.precision=s;;){if(a=Nr(a.times(e),s),r=r.times(++l),o=i.plus(xo(a,r,s)),Mi(o.d).slice(0,s)===Mi(i.d).slice(0,s)){for(;c--;)i=Nr(i.times(i),s);return u.precision=f,t==null?(Fr=!0,Nr(i,f)):i}i=o}}function on(e){for(var t=e.e*kr,r=e.d[0];r>=10;r/=10)t++;return t}function bx(e,t,r){if(t>e.LN10.sd())throw Fr=!0,r&&(e.precision=r),Error(Ja+"LN10 precision limit exceeded");return Nr(new e(e.LN10),t)}function Xo(e){for(var t="";e--;)t+="0";return t}function Lf(e,t){var r,n,a,i,o,s,l,c,u,f=1,d=10,h=e,x=h.d,p=h.constructor,m=p.precision;if(h.s<1)throw Error(Ja+(h.s?"NaN":"-Infinity"));if(h.eq(Ca))return new p(0);if(t==null?(Fr=!1,c=m):c=t,h.eq(10))return t==null&&(Fr=!0),bx(p,c);if(c+=d,p.precision=c,r=Mi(x),n=r.charAt(0),i=on(h),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Mi(h.d),n=r.charAt(0),f++;i=on(h),n>1?(h=new p("0."+r),i++):h=new p(n+"."+r.slice(1))}else return l=bx(p,c+2,m).times(i+""),h=Lf(new p(n+"."+r.slice(1)),c-d).plus(l),p.precision=m,t==null?(Fr=!0,Nr(h,m)):h;for(s=o=h=xo(h.minus(Ca),h.plus(Ca),c),u=Nr(h.times(h),c),a=3;;){if(o=Nr(o.times(u),c),l=s.plus(xo(o,new p(a),c)),Mi(l.d).slice(0,c)===Mi(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(bx(p,c+2,m).times(i+""))),s=xo(s,new p(f),c),p.precision=m,t==null?(Fr=!0,Nr(s,m)):s;s=l,a+=2}}function ZA(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=Zc(r/kr),e.d=[],n=(r+1)%kr,r<0&&(n+=kr),n<a){for(n&&e.d.push(+t.slice(0,n)),a-=kr;n<a;)e.d.push(+t.slice(n,n+=kr));t=t.slice(n),n=kr-t.length}else n-=a;for(;n--;)t+="0";if(e.d.push(+t),Fr&&(e.e>Ed||e.e<-Ed))throw Error(h5+r)}else e.s=0,e.e=0,e.d=[0];return e}function Nr(e,t,r){var n,a,i,o,s,l,c,u,f=e.d;for(o=1,i=f[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=kr,a=t,c=f[u=0];else{if(u=Math.ceil((n+1)/kr),i=f.length,u>=i)return e;for(c=i=f[u],o=1;i>=10;i/=10)o++;n%=kr,a=n-kr+o}if(r!==void 0&&(i=Cs(10,o-a-1),s=c/i%10|0,l=t<0||f[u+1]!==void 0||c%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?a>0?c/Cs(10,o-a):0:f[u-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(i=on(e),f.length=1,t=t-i-1,f[0]=Cs(10,(kr-t%kr)%kr),e.e=Zc(-t/kr)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=u,i=1,u--):(f.length=u+1,i=Cs(10,kr-n),f[u]=a>0?(c/Cs(10,o-a)%Cs(10,a)|0)*i:0),l)for(;;)if(u==0){(f[0]+=i)==yn&&(f[0]=1,++e.e);break}else{if(f[u]+=i,f[u]!=yn)break;f[u--]=0,i=1}for(n=f.length;f[--n]===0;)f.pop();if(Fr&&(e.e>Ed||e.e<-Ed))throw Error(h5+on(e));return e}function Oj(e,t){var r,n,a,i,o,s,l,c,u,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Fr?Nr(t,h):t;if(l=e.d,f=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(u=o<0,u?(r=l,o=-o,s=f.length):(r=f,n=c,s=l.length),a=Math.max(Math.ceil(h/kr),s)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=l.length,s=f.length,u=a<s,u&&(s=a),a=0;a<s;a++)if(l[a]!=f[a]){u=l[a]<f[a];break}o=0}for(u&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,a=f.length-s;a>0;--a)l[s++]=0;for(a=f.length;a>o;){if(l[--a]<f[a]){for(i=a;i&&l[--i]===0;)l[i]=yn-1;--l[i],l[a]+=yn}l[a]-=f[a]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Fr?Nr(t,h):t):new d(0)}function Qs(e,t,r){var n,a=on(e),i=Mi(e.d),o=i.length;return t?(r&&(n=r-o)>0?i=i.charAt(0)+"."+i.slice(1)+Xo(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Xo(-a-1)+i,r&&(n=r-o)>0&&(i+=Xo(n))):a>=o?(i+=Xo(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+Xo(n))):((n=a+1)<o&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-o)>0&&(a+1===o&&(i+="."),i+=Xo(n))),e.s<0?"-"+i:i}function QA(e,t){if(e.length>t)return e.length=t,!0}function jj(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Ys+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return ZA(o,i.toString())}else if(typeof i!="string")throw Error(Ys+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,BY.test(i))ZA(o,i);else throw Error(Ys+i)}if(a.prototype=pt,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=jj,a.config=a.set=$Y,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return a.config(e),a}function $Y(e){if(!e||typeof e!="object")throw Error(Ja+"Object expected");var t,r,n,a=["precision",1,Jc,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((n=e[r=a[t]])!==void 0)if(Zc(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(Ys+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ys+r+": "+n);return this}var d5=jj(RY);Ca=new d5(1);const wr=d5;function qY(e){return HY(e)||WY(e)||zY(e)||UY()}function UY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
375
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zY(e,t){if(e){if(typeof e=="string")return e2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e2(e,t)}}function WY(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function HY(e){if(Array.isArray(e))return e2(e)}function e2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var GY=function(t){return t},Cj={},kj=function(t){return t===Cj},eN=function(t){return function r(){return arguments.length===0||arguments.length===1&&kj(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},VY=function e(t,r){return t===1?r:eN(function(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];var o=a.filter(function(s){return s!==Cj}).length;return o>=t?r.apply(void 0,a):e(t-o,eN(function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var u=a.map(function(f){return kj(f)?l.shift():f});return r.apply(void 0,qY(u).concat(l))}))})},Rp=function(t){return VY(t.length,t)},t2=function(t,r){for(var n=[],a=t;a<r;++a)n[a-t]=a;return n},YY=Rp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),KY=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return GY;var a=r.reverse(),i=a[0],o=a.slice(1);return function(){return o.reduce(function(s,l){return l(s)},i.apply(void 0,arguments))}},r2=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Lj=function(t){var r=null,n=null;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r&&i.every(function(s,l){return s===r[l]})||(r=i,n=t.apply(void 0,i)),n}};function XY(e){var t;return e===0?t=1:t=Math.floor(new wr(e).abs().log(10).toNumber())+1,t}function JY(e,t,r){for(var n=new wr(e),a=0,i=[];n.lt(t)&&a<1e5;)i.push(n.toNumber()),n=n.add(r),a++;return i}var ZY=Rp(function(e,t,r){var n=+e,a=+t;return n+r*(a-n)}),QY=Rp(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),eK=Rp(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Bp={rangeStep:JY,getDigitCount:XY,interpolateNumber:ZY,uninterpolateNumber:QY,uninterpolateTruncation:eK};function n2(e){return nK(e)||rK(e)||Ij(e)||tK()}function tK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
376
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rK(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function nK(e){if(Array.isArray(e))return a2(e)}function If(e,t){return oK(e)||iK(e,t)||Ij(e,t)||aK()}function aK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
377
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ij(e,t){if(e){if(typeof e=="string")return a2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a2(e,t)}}function a2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iK(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){a=!0,i=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function oK(e){if(Array.isArray(e))return e}function Fj(e){var t=If(e,2),r=t[0],n=t[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function Mj(e,t,r){if(e.lte(0))return new wr(0);var n=Bp.getDigitCount(e.toNumber()),a=new wr(10).pow(n),i=e.div(a),o=n!==1?.05:.1,s=new wr(Math.ceil(i.div(o).toNumber())).add(r).mul(o),l=s.mul(a);return t?l:new wr(Math.ceil(l))}function sK(e,t,r){var n=1,a=new wr(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new wr(10).pow(Bp.getDigitCount(e)-1),a=new wr(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new wr(Math.floor(e)))}else e===0?a=new wr(Math.floor((t-1)/2)):r||(a=new wr(Math.floor(e)));var o=Math.floor((t-1)/2),s=KY(YY(function(l){return a.add(new wr(l-o).mul(n)).toNumber()}),t2);return s(0,t)}function Dj(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new wr(0),tickMin:new wr(0),tickMax:new wr(0)};var i=Mj(new wr(t).sub(e).div(r-1),n,a),o;e<=0&&t>=0?o=new wr(0):(o=new wr(e).add(t).div(2),o=o.sub(new wr(o).mod(i)));var s=Math.ceil(o.sub(e).div(i).toNumber()),l=Math.ceil(new wr(t).sub(o).div(i).toNumber()),c=s+l+1;return c>r?Dj(e,t,r,n,a+1):(c<r&&(l=t>0?l+(r-c):l,s=t>0?s:s+(r-c)),{step:i,tickMin:o.sub(new wr(s).mul(i)),tickMax:o.add(new wr(l).mul(i))})}function lK(e){var t=If(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),s=Fj([r,n]),l=If(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0){var f=u===1/0?[c].concat(n2(t2(0,a-1).map(function(){return 1/0}))):[].concat(n2(t2(0,a-1).map(function(){return-1/0})),[u]);return r>n?r2(f):f}if(c===u)return sK(c,a,i);var d=Dj(c,u,o,i),h=d.step,x=d.tickMin,p=d.tickMax,m=Bp.rangeStep(x,p.add(new wr(.1).mul(h)),h);return r>n?r2(m):m}function cK(e,t){var r=If(e,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Fj([n,a]),s=If(o,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,a];if(l===c)return[l];var u=Math.max(t,2),f=Mj(new wr(c).sub(l).div(u-1),i,0),d=[].concat(n2(Bp.rangeStep(new wr(l),new wr(c).sub(new wr(.99).mul(f)),f)),[c]);return n>a?r2(d):d}var uK=Lj(lK),fK=Lj(cK),hK=process.env.NODE_ENV==="production",wx="Invariant failed";function ha(e,t){if(hK)throw new Error(wx);var r=typeof t=="function"?t():t,n=r?"".concat(wx,": ").concat(r):wx;throw new Error(n)}var dK=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function wc(e){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wc(e)}function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pd.apply(this,arguments)}function pK(e,t){return xK(e)||gK(e,t)||vK(e,t)||mK()}function mK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
378
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vK(e,t){if(e){if(typeof e=="string")return tN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tN(e,t)}}function tN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function xK(e){if(Array.isArray(e))return e}function yK(e,t){if(e==null)return{};var r=bK(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function wK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _K(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$j(n.key),n)}}function SK(e,t,r){return t&&_K(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AK(e,t,r){return t=Od(t),NK(e,Rj()?Reflect.construct(t,r||[],Od(e).constructor):t.apply(e,r))}function NK(e,t){if(t&&(wc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TK(e)}function TK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rj=function(){return!!e})()}function Od(e){return Od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Od(e)}function EK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i2(e,t)}function i2(e,t){return i2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},i2(e,t)}function Bj(e,t,r){return t=$j(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $j(e){var t=PK(e,"string");return wc(t)=="symbol"?t:t+""}function PK(e,t){if(wc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var x0=(function(e){function t(){return wK(this,t),AK(this,t,arguments)}return EK(t,e),SK(t,[{key:"render",value:function(){var n=this.props,a=n.offset,i=n.layout,o=n.width,s=n.dataKey,l=n.data,c=n.dataPointFormatter,u=n.xAxis,f=n.yAxis,d=yK(n,dK),h=bt(d,!1);this.props.direction==="x"&&u.type!=="number"&&(process.env.NODE_ENV!=="production"?ha(!1,'ErrorBar requires Axis type property to be "number".'):ha());var x=l.map(function(p){var m=c(p,s),y=m.x,b=m.y,w=m.value,S=m.errorVal;if(!S)return null;var A=[],O,N;if(Array.isArray(S)){var C=pK(S,2);O=C[0],N=C[1]}else O=N=S;if(i==="vertical"){var L=u.scale,R=b+a,j=R+o,E=R-o,D=L(w-O),U=L(w+N);A.push({x1:U,y1:j,x2:U,y2:E}),A.push({x1:D,y1:R,x2:U,y2:R}),A.push({x1:D,y1:j,x2:D,y2:E})}else if(i==="horizontal"){var H=f.scale,B=y+a,z=B-o,te=B+o,Z=H(w-O),ee=H(w+N);A.push({x1:z,y1:ee,x2:te,y2:ee}),A.push({x1:B,y1:Z,x2:B,y2:ee}),A.push({x1:z,y1:Z,x2:te,y2:Z})}return W.createElement(lr,Pd({className:"recharts-errorBar",key:"bar-".concat(A.map(function(ce){return"".concat(ce.x1,"-").concat(ce.x2,"-").concat(ce.y1,"-").concat(ce.y2)}))},h),A.map(function(ce){return W.createElement("line",Pd({},ce,{key:"line-".concat(ce.x1,"-").concat(ce.x2,"-").concat(ce.y1,"-").concat(ce.y2)}))}))});return W.createElement(lr,{className:"recharts-errorBars"},x)}}])})(W.Component);Bj(x0,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Bj(x0,"displayName","ErrorBar");function Ff(e){"@babel/helpers - typeof";return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ff(e)}function rN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ts(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rN(Object(r),!0).forEach(function(n){OK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OK(e,t,r){return t=jK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jK(e){var t=CK(e,"string");return Ff(t)=="symbol"?t:t+""}function CK(e,t){if(Ff(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ff(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qj=function(t){var r=t.children,n=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=Ea(r,Gs);if(!o)return null;var s=Gs.defaultProps,l=s!==void 0?Ts(Ts({},s),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:i==="children"?c=(n||[]).reduce(function(u,f){var d=f.item,h=f.props,x=h.sectors||h.data||[];return u.concat(x.map(function(p){return{type:o.props.iconType||d.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):c=(n||[]).map(function(u){var f=u.item,d=f.type.defaultProps,h=d!==void 0?Ts(Ts({},d),f.props):{},x=h.dataKey,p=h.name,m=h.legendType,y=h.hide;return{inactive:y,dataKey:x,type:l.iconType||m||"square",color:p5(f),value:p||x,payload:h}}),Ts(Ts(Ts({},l),Gs.getWithHeight(o,a)),{},{payload:c,item:o})};function Mf(e){"@babel/helpers - typeof";return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(e)}function nN(e){return FK(e)||IK(e)||LK(e)||kK()}function kK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
379
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LK(e,t){if(e){if(typeof e=="string")return o2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o2(e,t)}}function IK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FK(e){if(Array.isArray(e))return o2(e)}function o2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aN(Object(r),!0).forEach(function(n){cc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cc(e,t,r){return t=MK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MK(e){var t=DK(e,"string");return Mf(t)=="symbol"?t:t+""}function DK(e,t){if(Mf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aa(e,t,r){return qt(e)||qt(t)?r:pn(t)?Ka(e,t,r):jt(t)?t(e):r}function sf(e,t,r,n){var a=FY(e,function(s){return aa(s,t)});if(r==="number"){var i=a.filter(function(s){return nt(s)||parseFloat(s)});return i.length?[Dp(i),Mp(i)]:[1/0,-1/0]}var o=n?a.filter(function(s){return!qt(s)}):a;return o.map(function(s){return pn(s)||s instanceof Date?s:""})}var RK=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,c=0;c<s;c++){var u=c>0?a[c-1].coordinate:a[s-1].coordinate,f=a[c].coordinate,d=c>=s-1?a[0].coordinate:a[c+1].coordinate,h=void 0;if(yi(f-u)!==yi(d-f)){var x=[];if(yi(d-f)===yi(l[1]-l[0])){h=d;var p=f+l[1]-l[0];x[0]=Math.min(p,(p+u)/2),x[1]=Math.max(p,(p+u)/2)}else{h=u;var m=d+l[1]-l[0];x[0]=Math.min(f,(m+f)/2),x[1]=Math.max(f,(m+f)/2)}var y=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>y[0]&&t<=y[1]||t>=x[0]&&t<=x[1]){o=a[c].index;break}}else{var b=Math.min(u,d),w=Math.max(u,d);if(t>(b+f)/2&&t<=(w+f)/2){o=a[c].index;break}}}else for(var S=0;S<s;S++)if(S===0&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S>0&&S<s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},p5=function(t){var r,n=t,a=n.type.displayName,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?zr(zr({},t.type.defaultProps),t.props):t.props,o=i.stroke,s=i.fill,l;switch(a){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},BK=function(t){var r=t.barSize,n=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var o={},s=Object.keys(i),l=0,c=s.length;l<c;l++)for(var u=i[s[l]].stackGroups,f=Object.keys(u),d=0,h=f.length;d<h;d++){var x=u[f[d]],p=x.items,m=x.cateAxisId,y=p.filter(function(N){return vo(N.type).indexOf("Bar")>=0});if(y&&y.length){var b=y[0].type.defaultProps,w=b!==void 0?zr(zr({},b),y[0].props):y[0].props,S=w.barSize,A=w[m];o[A]||(o[A]=[]);var O=qt(S)?r:S;o[A].push({item:y[0],stackList:y.slice(1),barSize:qt(O)?void 0:bi(O,n,0)})}}return o},$K=function(t){var r=t.barGap,n=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,s=t.maxBarSize,l=o.length;if(l<1)return null;var c=bi(r,a,0,!0),u,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=a/l,x=o.reduce(function(S,A){return S+A.barSize||0},0);x+=(l-1)*c,x>=a&&(x-=(l-1)*c,c=0),x>=a&&h>0&&(d=!0,h*=.9,x=l*h);var p=(a-x)/2>>0,m={offset:p-c,size:0};u=o.reduce(function(S,A){var O={item:A.item,position:{offset:m.offset+m.size+c,size:d?h:A.barSize}},N=[].concat(nN(S),[O]);return m=N[N.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function(C){N.push({item:C,position:m})}),N},f)}else{var y=bi(n,a,0,!0);a-2*y-(l-1)*c<=0&&(c=0);var b=(a-2*y-(l-1)*c)/l;b>1&&(b>>=0);var w=s===+s?Math.min(b,s):b;u=o.reduce(function(S,A,O){var N=[].concat(nN(S),[{item:A.item,position:{offset:y+(b+c)*O+(b-w)/2,size:w}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function(C){N.push({item:C,position:N[N.length-1].position})}),N},f)}return u},qK=function(t,r,n,a){var i=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),c=qj({children:i,legendWidth:l});if(c){var u=a||{},f=u.width,d=u.height,h=c.align,x=c.verticalAlign,p=c.layout;if((p==="vertical"||p==="horizontal"&&x==="middle")&&h!=="center"&&nt(t[h]))return zr(zr({},t),{},cc({},h,t[h]+(f||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&x!=="middle"&&nt(t[x]))return zr(zr({},t),{},cc({},x,t[x]+(d||0)))}return t},UK=function(t,r,n){return qt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Uj=function(t,r,n,a,i){var o=r.props.children,s=Xa(o,x0).filter(function(c){return UK(a,i,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,u){var f=aa(u,n);if(qt(f))return c;var d=Array.isArray(f)?[Dp(f),Mp(f)]:[f,f],h=l.reduce(function(x,p){var m=aa(u,p,0),y=d[0]-Math.abs(Array.isArray(m)?m[0]:m),b=d[1]+Math.abs(Array.isArray(m)?m[1]:m);return[Math.min(y,x[0]),Math.max(b,x[1])]},[1/0,-1/0]);return[Math.min(h[0],c[0]),Math.max(h[1],c[1])]},[1/0,-1/0])}return null},zK=function(t,r,n,a,i){var o=r.map(function(s){return Uj(t,s,n,i,a)}).filter(function(s){return!qt(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},zj=function(t,r,n,a,i){var o=r.map(function(l){var c=l.props.dataKey;return n==="number"&&c&&Uj(t,l,c,a)||sf(t,c,n,i)});if(n==="number")return o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,c){for(var u=0,f=c.length;u<f;u++)s[c[u]]||(s[c[u]]=!0,l.push(c[u]));return l},[])},Wj=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Hj=function(t,r,n,a){if(a)return t.map(function(l){return l.coordinate});var i,o,s=t.map(function(l){return l.coordinate===r&&(i=!0),l.coordinate===n&&(o=!0),l.coordinate});return i||s.push(r),o||s.push(n),s},fo=function(t,r,n){if(!t)return null;var a=t.scale,i=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,c=(r||n)&&o==="category"&&a.bandwidth?a.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?yi(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var u=(t.ticks||t.niceTicks).map(function(f){var d=i?i.indexOf(f):f;return{coordinate:a(d)+c,value:f,offset:c}});return u.filter(function(f){return!u0(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:a(f)+c,value:f,index:d,offset:c}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(f){return{coordinate:a(f)+c,value:f,offset:c}}):a.domain().map(function(f,d){return{coordinate:a(f)+c,value:i?i[f]:f,index:d,offset:c}})},_x=new WeakMap,Lh=function(t,r){if(typeof r!="function")return t;_x.has(t)||_x.set(t,new WeakMap);var n=_x.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},Gj=function(t,r,n){var a=t.scale,i=t.type,o=t.layout,s=t.axisType;if(a==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Pf(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Sd(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:of(),realScaleType:"point"}:i==="category"?{scale:Pf(),realScaleType:"band"}:{scale:Sd(),realScaleType:"linear"};if(Zs(a)){var l="scale".concat(_p(a));return{scale:(zA[l]||of)(),realScaleType:zA[l]?l:"point"}}return jt(a)?{scale:a}:{scale:of(),realScaleType:"point"}},iN=1e-4,Vj=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),i=Math.min(a[0],a[1])-iN,o=Math.max(a[0],a[1])+iN,s=t(r[0]),l=t(r[n-1]);(s<i||s>o||l<i||l>o)&&t.domain([r[0],r[n-1]])}},WK=function(t,r){if(!t)return null;for(var n=0,a=t.length;n<a;n++)if(t[n].item===r)return t[n].position;return null},HK=function(t,r){if(!r||r.length!==2||!nt(r[0])||!nt(r[1]))return t;var n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]),i=[t[0],t[1]];return(!nt(t[0])||t[0]<n)&&(i[0]=n),(!nt(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<n&&(i[1]=n),i},GK=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var i=0,o=0,s=0;s<r;++s){var l=u0(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=i,t[s][n][1]=i+l,i=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},VK=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var i=0,o=0;o<r;++o){var s=u0(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=i,t[o][n][1]=i+s,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},YK={sign:GK,expand:FU,none:hc,silhouette:MU,wiggle:DU,positive:VK},KK=function(t,r,n){var a=r.map(function(s){return s.props.dataKey}),i=YK[n],o=IU().keys(a).value(function(s,l){return+aa(s,l,0)}).order(My).offset(i);return o(t)},XK=function(t,r,n,a,i,o){if(!t)return null;var s=o?r.reverse():r,l={},c=s.reduce(function(f,d){var h,x=(h=d.type)!==null&&h!==void 0&&h.defaultProps?zr(zr({},d.type.defaultProps),d.props):d.props,p=x.stackId,m=x.hide;if(m)return f;var y=x[n],b=f[y]||{hasStack:!1,stackGroups:{}};if(pn(p)){var w=b.stackGroups[p]||{numericAxisId:n,cateAxisId:a,items:[]};w.items.push(d),b.hasStack=!0,b.stackGroups[p]=w}else b.stackGroups[f0("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[d]};return zr(zr({},f),{},cc({},y,b))},l),u={};return Object.keys(c).reduce(function(f,d){var h=c[d];if(h.hasStack){var x={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,m){var y=h.stackGroups[m];return zr(zr({},p),{},cc({},m,{numericAxisId:n,cateAxisId:a,items:y.items,stackedData:KK(t,y.items,i)}))},x)}return zr(zr({},f),{},cc({},d,h))},u)},Yj=function(t,r){var n=r.realScaleType,a=r.type,i=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var u=uK(c,i,s);return t.domain([Dp(u),Mp(u)]),{niceTicks:u}}if(i&&a==="number"){var f=t.domain(),d=fK(f,i,s);return{niceTicks:d}}return null};function oN(e){var t=e.axis,r=e.ticks,n=e.bandSize,a=e.entry,i=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!qt(a[t.dataKey])){var s=ad(r,"value",a[t.dataKey]);if(s)return s.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var l=aa(a,qt(o)?t.dataKey:o);return qt(l)?null:t.scale(l)}var sN=function(t){var r=t.axis,n=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+a:null;var l=aa(o,r.dataKey,r.domain[s]);return qt(l)?null:r.scale(l)-i/2+a},JK=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return a<=0&&i>=0?0:i<0?i:a}return n[0]},ZK=function(t,r){var n,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?zr(zr({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(pn(i)){var o=r[i];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},QK=function(t){return t.reduce(function(r,n){return[Dp(n.concat([r[0]]).filter(nt)),Mp(n.concat([r[1]]).filter(nt))]},[1/0,-1/0])},Kj=function(t,r,n){return Object.keys(t).reduce(function(a,i){var o=t[i],s=o.stackedData,l=s.reduce(function(c,u){var f=QK(u.slice(r,n+1));return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],a[0]),Math.max(l[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},lN=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cN=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,s2=function(t,r,n){if(jt(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(nt(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(lN.test(t[0])){var i=+lN.exec(t[0])[1];a[0]=r[0]-i}else jt(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(nt(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(cN.test(t[1])){var o=+cN.exec(t[1])[1];a[1]=r[1]+o}else jt(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},jd=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!n||a>0)return a}if(t&&r&&r.length>=2){for(var i=Ub(r,function(f){return f.coordinate}),o=1/0,s=1,l=i.length;s<l;s++){var c=i[s],u=i[s-1];o=Math.min((c.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},uN=function(t,r,n){return!t||!t.length||g0(t,Ka(n,"type.defaultProps.domain"))?r:t},Xj=function(t,r){var n=t.type.defaultProps?zr(zr({},t.type.defaultProps),t.props):t.props,a=n.dataKey,i=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,c=n.chartType,u=n.hide;return zr(zr({},bt(t,!1)),{},{dataKey:a,unit:o,formatter:s,name:i||a,color:p5(t),value:aa(r,a),type:l,payload:r,chartType:c,hide:u})};function Df(e){"@babel/helpers - typeof";return Df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Df(e)}function fN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function oo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fN(Object(r),!0).forEach(function(n){Jj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jj(e,t,r){return t=eX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eX(e){var t=tX(e,"string");return Df(t)=="symbol"?t:t+""}function tX(e,t){if(Df(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Df(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rX(e,t){return oX(e)||iX(e,t)||aX(e,t)||nX()}function nX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
380
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aX(e,t){if(e){if(typeof e=="string")return hN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hN(e,t)}}function hN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function oX(e){if(Array.isArray(e))return e}var Cd=Math.PI/180,sX=function(t){return t*180/Math.PI},_r=function(t,r,n,a){return{x:t+Math.cos(-Cd*a)*n,y:r+Math.sin(-Cd*a)*n}},lX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},cX=function(t,r,n,a,i){var o=t.width,s=t.height,l=t.startAngle,c=t.endAngle,u=bi(t.cx,o,o/2),f=bi(t.cy,s,s/2),d=lX(o,s,n),h=bi(t.innerRadius,d,0),x=bi(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(m,y){var b=r[y],w=b.domain,S=b.reversed,A;if(qt(b.range))a==="angleAxis"?A=[l,c]:a==="radiusAxis"&&(A=[h,x]),S&&(A=[A[1],A[0]]);else{A=b.range;var O=A,N=rX(O,2);l=N[0],c=N[1]}var C=Gj(b,i),L=C.realScaleType,R=C.scale;R.domain(w).range(A),Vj(R);var j=Yj(R,oo(oo({},b),{},{realScaleType:L})),E=oo(oo(oo({},b),j),{},{range:A,radius:x,realScaleType:L,scale:R,cx:u,cy:f,innerRadius:h,outerRadius:x,startAngle:l,endAngle:c});return oo(oo({},m),{},Jj({},y,E))},{})},uX=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(a-o,2))},fX=function(t,r){var n=t.x,a=t.y,i=r.cx,o=r.cy,s=uX({x:n,y:a},{x:i,y:o});if(s<=0)return{radius:s};var l=(n-i)/s,c=Math.acos(l);return a>o&&(c=2*Math.PI-c),{radius:s,angle:sX(c),angleInRadian:c}},hX=function(t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(a,i);return{startAngle:r-o*360,endAngle:n-o*360}},dX=function(t,r){var n=r.startAngle,a=r.endAngle,i=Math.floor(n/360),o=Math.floor(a/360),s=Math.min(i,o);return t+s*360},dN=function(t,r){var n=t.x,a=t.y,i=fX({x:n,y:a},r),o=i.radius,s=i.angle,l=r.innerRadius,c=r.outerRadius;if(o<l||o>c)return!1;if(o===0)return!0;var u=hX(r),f=u.startAngle,d=u.endAngle,h=s,x;if(f<=d){for(;h>d;)h-=360;for(;h<f;)h+=360;x=h>=f&&h<=d}else{for(;h>f;)h-=360;for(;h<d;)h+=360;x=h>=d&&h<=f}return x?oo(oo({},r),{},{radius:o,angle:dX(h,r)}):null},Zj=function(t){return!W.isValidElement(t)&&!jt(t)&&typeof t!="boolean"?t.className:""};function Rf(e){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rf(e)}var pX=["offset"];function mX(e){return yX(e)||xX(e)||gX(e)||vX()}function vX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
381
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gX(e,t){if(e){if(typeof e=="string")return l2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l2(e,t)}}function xX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yX(e){if(Array.isArray(e))return l2(e)}function l2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bX(e,t){if(e==null)return{};var r=wX(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function pN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function fn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pN(Object(r),!0).forEach(function(n){_X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _X(e,t,r){return t=SX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SX(e){var t=AX(e,"string");return Rf(t)=="symbol"?t:t+""}function AX(e,t){if(Rf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bf(){return Bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bf.apply(this,arguments)}var NX=function(t){var r=t.value,n=t.formatter,a=qt(t.children)?r:t.children;return jt(n)?n(a):a},TX=function(t,r){var n=yi(r-t),a=Math.min(Math.abs(r-t),360);return n*a},EX=function(t,r,n){var a=t.position,i=t.viewBox,o=t.offset,s=t.className,l=i,c=l.cx,u=l.cy,f=l.innerRadius,d=l.outerRadius,h=l.startAngle,x=l.endAngle,p=l.clockWise,m=(f+d)/2,y=TX(h,x),b=y>=0?1:-1,w,S;a==="insideStart"?(w=h+b*o,S=p):a==="insideEnd"?(w=x-b*o,S=!p):a==="end"&&(w=x+b*o,S=p),S=y<=0?S:!S;var A=_r(c,u,m,w),O=_r(c,u,m,w+(S?1:-1)*359),N="M".concat(A.x,",").concat(A.y,`
382
- A`).concat(m,",").concat(m,",0,1,").concat(S?0:1,`,
383
- `).concat(O.x,",").concat(O.y),C=qt(t.id)?f0("recharts-radial-line-"):t.id;return W.createElement("text",Bf({},n,{dominantBaseline:"central",className:Dt("recharts-radial-bar-label",s)}),W.createElement("defs",null,W.createElement("path",{id:C,d:N})),W.createElement("textPath",{xlinkHref:"#".concat(C)},r))},PX=function(t){var r=t.viewBox,n=t.offset,a=t.position,i=r,o=i.cx,s=i.cy,l=i.innerRadius,c=i.outerRadius,u=i.startAngle,f=i.endAngle,d=(u+f)/2;if(a==="outside"){var h=_r(o,s,c+n,d),x=h.x,p=h.y;return{x,y:p,textAnchor:x>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var m=(l+c)/2,y=_r(o,s,m,d),b=y.x,w=y.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},OX=function(t){var r=t.viewBox,n=t.parentViewBox,a=t.offset,i=t.position,o=r,s=o.x,l=o.y,c=o.width,u=o.height,f=u>=0?1:-1,d=f*a,h=f>0?"end":"start",x=f>0?"start":"end",p=c>=0?1:-1,m=p*a,y=p>0?"end":"start",b=p>0?"start":"end";if(i==="top"){var w={x:s+c/2,y:l-f*a,textAnchor:"middle",verticalAnchor:h};return fn(fn({},w),n?{height:Math.max(l-n.y,0),width:c}:{})}if(i==="bottom"){var S={x:s+c/2,y:l+u+d,textAnchor:"middle",verticalAnchor:x};return fn(fn({},S),n?{height:Math.max(n.y+n.height-(l+u),0),width:c}:{})}if(i==="left"){var A={x:s-m,y:l+u/2,textAnchor:y,verticalAnchor:"middle"};return fn(fn({},A),n?{width:Math.max(A.x-n.x,0),height:u}:{})}if(i==="right"){var O={x:s+c+m,y:l+u/2,textAnchor:b,verticalAnchor:"middle"};return fn(fn({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:u}:{})}var N=n?{width:c,height:u}:{};return i==="insideLeft"?fn({x:s+m,y:l+u/2,textAnchor:b,verticalAnchor:"middle"},N):i==="insideRight"?fn({x:s+c-m,y:l+u/2,textAnchor:y,verticalAnchor:"middle"},N):i==="insideTop"?fn({x:s+c/2,y:l+d,textAnchor:"middle",verticalAnchor:x},N):i==="insideBottom"?fn({x:s+c/2,y:l+u-d,textAnchor:"middle",verticalAnchor:h},N):i==="insideTopLeft"?fn({x:s+m,y:l+d,textAnchor:b,verticalAnchor:x},N):i==="insideTopRight"?fn({x:s+c-m,y:l+d,textAnchor:y,verticalAnchor:x},N):i==="insideBottomLeft"?fn({x:s+m,y:l+u-d,textAnchor:b,verticalAnchor:h},N):i==="insideBottomRight"?fn({x:s+c-m,y:l+u-d,textAnchor:y,verticalAnchor:h},N):Yc(i)&&(nt(i.x)||Ms(i.x))&&(nt(i.y)||Ms(i.y))?fn({x:s+bi(i.x,c),y:l+bi(i.y,u),textAnchor:"end",verticalAnchor:"end"},N):fn({x:s+c/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},N)},jX=function(t){return"cx"in t&&nt(t.cx)};function jn(e){var t=e.offset,r=t===void 0?5:t,n=bX(e,pX),a=fn({offset:r},n),i=a.viewBox,o=a.position,s=a.value,l=a.children,c=a.content,u=a.className,f=u===void 0?"":u,d=a.textBreakAll;if(!i||qt(s)&&qt(l)&&!W.isValidElement(c)&&!jt(c))return null;if(W.isValidElement(c))return W.cloneElement(c,a);var h;if(jt(c)){if(h=W.createElement(c,a),W.isValidElement(h))return h}else h=NX(a);var x=jX(i),p=bt(a,!0);if(x&&(o==="insideStart"||o==="insideEnd"||o==="end"))return EX(a,h,p);var m=x?PX(a):OX(a);return W.createElement(gc,Bf({className:Dt("recharts-label",f)},p,m,{breakAll:d}),h)}jn.displayName="Label";var Qj=function(t){var r=t.cx,n=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,u=t.outerRadius,f=t.x,d=t.y,h=t.top,x=t.left,p=t.width,m=t.height,y=t.clockWise,b=t.labelViewBox;if(b)return b;if(nt(p)&&nt(m)){if(nt(f)&&nt(d))return{x:f,y:d,width:p,height:m};if(nt(h)&&nt(x))return{x:h,y:x,width:p,height:m}}return nt(f)&&nt(d)?{x:f,y:d,width:0,height:0}:nt(r)&&nt(n)?{cx:r,cy:n,startAngle:i||a||0,endAngle:o||a||0,innerRadius:c||0,outerRadius:u||l||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},CX=function(t,r){return t?t===!0?W.createElement(jn,{key:"label-implicit",viewBox:r}):pn(t)?W.createElement(jn,{key:"label-implicit",viewBox:r,value:t}):W.isValidElement(t)?t.type===jn?W.cloneElement(t,{key:"label-implicit",viewBox:r}):W.createElement(jn,{key:"label-implicit",content:t,viewBox:r}):jt(t)?W.createElement(jn,{key:"label-implicit",content:t,viewBox:r}):Yc(t)?W.createElement(jn,Bf({viewBox:r},t,{key:"label-implicit"})):null:null},kX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var a=t.children,i=Qj(t),o=Xa(a,jn).map(function(l,c){return W.cloneElement(l,{viewBox:r||i,key:"label-".concat(c)})});if(!n)return o;var s=CX(t.label,r||i);return[s].concat(mX(o))};jn.parseViewBox=Qj;jn.renderCallByParent=kX;var Sx,mN;function LX(){if(mN)return Sx;mN=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Sx=e,Sx}var IX=LX();const eC=ur(IX);function $f(e){"@babel/helpers - typeof";return $f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$f(e)}var FX=["valueAccessor"],MX=["data","dataKey","clockWise","id","textBreakAll"];function DX(e){return qX(e)||$X(e)||BX(e)||RX()}function RX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
384
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BX(e,t){if(e){if(typeof e=="string")return c2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c2(e,t)}}function $X(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qX(e){if(Array.isArray(e))return c2(e)}function c2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kd.apply(this,arguments)}function vN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function gN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vN(Object(r),!0).forEach(function(n){UX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UX(e,t,r){return t=zX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zX(e){var t=WX(e,"string");return $f(t)=="symbol"?t:t+""}function WX(e,t){if($f(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($f(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xN(e,t){if(e==null)return{};var r=HX(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var GX=function(t){return Array.isArray(t.value)?eC(t.value):t.value};function yo(e){var t=e.valueAccessor,r=t===void 0?GX:t,n=xN(e,FX),a=n.data,i=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,c=xN(n,MX);return!a||!a.length?null:W.createElement(lr,{className:"recharts-label-list"},a.map(function(u,f){var d=qt(i)?r(u,f):aa(u&&u.payload,i),h=qt(s)?{}:{id:"".concat(s,"-").concat(f)};return W.createElement(jn,kd({},bt(u,!0),c,h,{parentViewBox:u.parentViewBox,value:d,textBreakAll:l,viewBox:jn.parseViewBox(qt(o)?u:gN(gN({},u),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}yo.displayName="LabelList";function VX(e,t){return e?e===!0?W.createElement(yo,{key:"labelList-implicit",data:t}):W.isValidElement(e)||jt(e)?W.createElement(yo,{key:"labelList-implicit",data:t,content:e}):Yc(e)?W.createElement(yo,kd({data:t},e,{key:"labelList-implicit"})):null:null}function YX(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,a=Xa(n,yo).map(function(o,s){return W.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return a;var i=VX(e.label,t);return[i].concat(DX(a))}yo.renderCallByParent=YX;function qf(e){"@babel/helpers - typeof";return qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qf(e)}function u2(){return u2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u2.apply(this,arguments)}function yN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function bN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yN(Object(r),!0).forEach(function(n){KX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KX(e,t,r){return t=XX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XX(e){var t=JX(e,"string");return qf(t)=="symbol"?t:t+""}function JX(e,t){if(qf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZX=function(t,r){var n=yi(r-t),a=Math.min(Math.abs(r-t),359.999);return n*a},Ih=function(t){var r=t.cx,n=t.cy,a=t.radius,i=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,u=l*(s?1:-1)+a,f=Math.asin(l/u)/Cd,d=c?i:i+o*f,h=_r(r,n,u,d),x=_r(r,n,a,d),p=c?i-o*f:i,m=_r(r,n,u*Math.cos(f*Cd),p);return{center:h,circleTangency:x,lineTangency:m,theta:f}},tC=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,s=t.endAngle,l=ZX(o,s),c=o+l,u=_r(r,n,i,o),f=_r(r,n,i,c),d="M ".concat(u.x,",").concat(u.y,`
385
- A `).concat(i,",").concat(i,`,0,
386
- `).concat(+(Math.abs(l)>180),",").concat(+(o>c),`,
387
- `).concat(f.x,",").concat(f.y,`
388
- `);if(a>0){var h=_r(r,n,a,o),x=_r(r,n,a,c);d+="L ".concat(x.x,",").concat(x.y,`
389
- A `).concat(a,",").concat(a,`,0,
390
- `).concat(+(Math.abs(l)>180),",").concat(+(o<=c),`,
391
- `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},QX=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,u=t.endAngle,f=yi(u-c),d=Ih({cx:r,cy:n,radius:i,angle:c,sign:f,cornerRadius:o,cornerIsExternal:l}),h=d.circleTangency,x=d.lineTangency,p=d.theta,m=Ih({cx:r,cy:n,radius:i,angle:u,sign:-f,cornerRadius:o,cornerIsExternal:l}),y=m.circleTangency,b=m.lineTangency,w=m.theta,S=l?Math.abs(c-u):Math.abs(c-u)-p-w;if(S<0)return s?"M ".concat(x.x,",").concat(x.y,`
392
- a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
393
- a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
394
- `):tC({cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:c,endAngle:u});var A="M ".concat(x.x,",").concat(x.y,`
395
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,`
396
- A`).concat(i,",").concat(i,",0,").concat(+(S>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
397
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(b.x,",").concat(b.y,`
398
- `);if(a>0){var O=Ih({cx:r,cy:n,radius:a,angle:c,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),N=O.circleTangency,C=O.lineTangency,L=O.theta,R=Ih({cx:r,cy:n,radius:a,angle:u,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),j=R.circleTangency,E=R.lineTangency,D=R.theta,U=l?Math.abs(c-u):Math.abs(c-u)-L-D;if(U<0&&o===0)return"".concat(A,"L").concat(r,",").concat(n,"Z");A+="L".concat(E.x,",").concat(E.y,`
399
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(j.x,",").concat(j.y,`
400
- A`).concat(a,",").concat(a,",0,").concat(+(U>180),",").concat(+(f>0),",").concat(N.x,",").concat(N.y,`
401
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,"Z")}else A+="L".concat(r,",").concat(n,"Z");return A},eJ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},rC=function(t){var r=bN(bN({},eJ),t),n=r.cx,a=r.cy,i=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,c=r.cornerIsExternal,u=r.startAngle,f=r.endAngle,d=r.className;if(o<i||u===f)return null;var h=Dt("recharts-sector",d),x=o-i,p=bi(s,x,0,!0),m;return p>0&&Math.abs(u-f)<360?m=QX({cx:n,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(p,x/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:f}):m=tC({cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:u,endAngle:f}),W.createElement("path",u2({},bt(r,!0),{className:h,d:m,role:"img"}))};function Uf(e){"@babel/helpers - typeof";return Uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uf(e)}function f2(){return f2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f2.apply(this,arguments)}function wN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _N(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wN(Object(r),!0).forEach(function(n){tJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tJ(e,t,r){return t=rJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rJ(e){var t=nJ(e,"string");return Uf(t)=="symbol"?t:t+""}function nJ(e,t){if(Uf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Uf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SN={curveBasisClosed:SU,curveBasisOpen:AU,curveBasis:_U,curveBumpX:lU,curveBumpY:cU,curveLinearClosed:NU,curveLinear:Ap,curveMonotoneX:TU,curveMonotoneY:EU,curveNatural:PU,curveStep:OU,curveStepAfter:CU,curveStepBefore:jU},Fh=function(t){return t.x===+t.x&&t.y===+t.y},Bu=function(t){return t.x},$u=function(t){return t.y},aJ=function(t,r){if(jt(t))return t;var n="curve".concat(_p(t));return(n==="curveMonotone"||n==="curveBump")&&r?SN["".concat(n).concat(r==="vertical"?"Y":"X")]:SN[n]||Ap},iJ=function(t){var r=t.type,n=r===void 0?"linear":r,a=t.points,i=a===void 0?[]:a,o=t.baseLine,s=t.layout,l=t.connectNulls,c=l===void 0?!1:l,u=aJ(n,s),f=c?i.filter(function(p){return Fh(p)}):i,d;if(Array.isArray(o)){var h=c?o.filter(function(p){return Fh(p)}):o,x=f.map(function(p,m){return _N(_N({},p),{},{base:h[m]})});return s==="vertical"?d=Th().y($u).x1(Bu).x0(function(p){return p.base.x}):d=Th().x(Bu).y1($u).y0(function(p){return p.base.y}),d.defined(Fh).curve(u),d(x)}return s==="vertical"&&nt(o)?d=Th().y($u).x1(Bu).x0(o):nt(o)?d=Th().x(Bu).y1($u).y0(o):d=e6().x(Bu).y($u),d.defined(Fh).curve(u),d(f)},h2=function(t){var r=t.className,n=t.points,a=t.path,i=t.pathRef;if((!n||!n.length)&&!a)return null;var o=n&&n.length?iJ(t):a;return is.createElement("path",f2({},bt(t,!1),id(t),{className:Dt("recharts-curve",r),d:o,ref:i}))},Mh={exports:{}},Dh={exports:{}},ir={};/** @license React v16.13.1
402
- * react-is.production.min.js
403
- *
404
- * Copyright (c) Facebook, Inc. and its affiliates.
405
- *
406
- * This source code is licensed under the MIT license found in the
407
- * LICENSE file in the root directory of this source tree.
408
- */var AN;function oJ(){if(AN)return ir;AN=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(A){if(typeof A=="object"&&A!==null){var O=A.$$typeof;switch(O){case t:switch(A=A.type,A){case l:case c:case n:case i:case a:case f:return A;default:switch(A=A&&A.$$typeof,A){case s:case u:case x:case h:case o:return A;default:return O}}case r:return O}}}function S(A){return w(A)===c}return ir.AsyncMode=l,ir.ConcurrentMode=c,ir.ContextConsumer=s,ir.ContextProvider=o,ir.Element=t,ir.ForwardRef=u,ir.Fragment=n,ir.Lazy=x,ir.Memo=h,ir.Portal=r,ir.Profiler=i,ir.StrictMode=a,ir.Suspense=f,ir.isAsyncMode=function(A){return S(A)||w(A)===l},ir.isConcurrentMode=S,ir.isContextConsumer=function(A){return w(A)===s},ir.isContextProvider=function(A){return w(A)===o},ir.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},ir.isForwardRef=function(A){return w(A)===u},ir.isFragment=function(A){return w(A)===n},ir.isLazy=function(A){return w(A)===x},ir.isMemo=function(A){return w(A)===h},ir.isPortal=function(A){return w(A)===r},ir.isProfiler=function(A){return w(A)===i},ir.isStrictMode=function(A){return w(A)===a},ir.isSuspense=function(A){return w(A)===f},ir.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===n||A===c||A===i||A===a||A===f||A===d||typeof A=="object"&&A!==null&&(A.$$typeof===x||A.$$typeof===h||A.$$typeof===o||A.$$typeof===s||A.$$typeof===u||A.$$typeof===m||A.$$typeof===y||A.$$typeof===b||A.$$typeof===p)},ir.typeOf=w,ir}var or={};/** @license React v16.13.1
409
- * react-is.development.js
410
- *
411
- * Copyright (c) Facebook, Inc. and its affiliates.
412
- *
413
- * This source code is licensed under the MIT license found in the
414
- * LICENSE file in the root directory of this source tree.
415
- */var NN;function sJ(){return NN||(NN=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(se){return typeof se=="string"||typeof se=="function"||se===n||se===c||se===i||se===a||se===f||se===d||typeof se=="object"&&se!==null&&(se.$$typeof===x||se.$$typeof===h||se.$$typeof===o||se.$$typeof===s||se.$$typeof===u||se.$$typeof===m||se.$$typeof===y||se.$$typeof===b||se.$$typeof===p)}function S(se){if(typeof se=="object"&&se!==null){var Le=se.$$typeof;switch(Le){case t:var Se=se.type;switch(Se){case l:case c:case n:case i:case a:case f:return Se;default:var Ae=Se&&Se.$$typeof;switch(Ae){case s:case u:case x:case h:case o:return Ae;default:return Le}}case r:return Le}}}var A=l,O=c,N=s,C=o,L=t,R=u,j=n,E=x,D=h,U=r,H=i,B=a,z=f,te=!1;function Z(se){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ee(se)||S(se)===l}function ee(se){return S(se)===c}function ce(se){return S(se)===s}function P(se){return S(se)===o}function I(se){return typeof se=="object"&&se!==null&&se.$$typeof===t}function M(se){return S(se)===u}function q(se){return S(se)===n}function Y(se){return S(se)===x}function fe(se){return S(se)===h}function ne(se){return S(se)===r}function K(se){return S(se)===i}function he(se){return S(se)===a}function be(se){return S(se)===f}or.AsyncMode=A,or.ConcurrentMode=O,or.ContextConsumer=N,or.ContextProvider=C,or.Element=L,or.ForwardRef=R,or.Fragment=j,or.Lazy=E,or.Memo=D,or.Portal=U,or.Profiler=H,or.StrictMode=B,or.Suspense=z,or.isAsyncMode=Z,or.isConcurrentMode=ee,or.isContextConsumer=ce,or.isContextProvider=P,or.isElement=I,or.isForwardRef=M,or.isFragment=q,or.isLazy=Y,or.isMemo=fe,or.isPortal=ne,or.isProfiler=K,or.isStrictMode=he,or.isSuspense=be,or.isValidElementType=w,or.typeOf=S})()),or}var TN;function nC(){return TN||(TN=1,process.env.NODE_ENV==="production"?Dh.exports=oJ():Dh.exports=sJ()),Dh.exports}/*
416
- object-assign
417
- (c) Sindre Sorhus
418
- @license MIT
419
- */var Ax,EN;function lJ(){if(EN)return Ax;EN=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(u){return o[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ax=a()?Object.assign:function(i,o){for(var s,l=n(i),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){c=e(s);for(var d=0;d<c.length;d++)r.call(s,c[d])&&(l[c[d]]=s[c[d]])}}return l},Ax}var Nx,PN;function m5(){if(PN)return Nx;PN=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Nx=e,Nx}var Tx,ON;function aC(){return ON||(ON=1,Tx=Function.call.bind(Object.prototype.hasOwnProperty)),Tx}var Ex,jN;function cJ(){if(jN)return Ex;jN=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=m5(),r={},n=aC();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,l,c){if(process.env.NODE_ENV!=="production"){for(var u in i)if(n(i,u)){var f;try{if(typeof i[u]!="function"){var d=Error((l||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=i[u](o,u,l,s,null,t)}catch(x){f=x}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=c?c():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ex=a,Ex}var Px,CN;function uJ(){if(CN)return Px;CN=1;var e=nC(),t=lJ(),r=m5(),n=aC(),a=cJ(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Px=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(ee){var ce=ee&&(c&&ee[c]||ee[u]);if(typeof ce=="function")return ce}var d="<<anonymous>>",h={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:b(),arrayOf:w,element:S(),elementType:A(),instanceOf:O,node:R(),objectOf:C,oneOf:N,oneOfType:L,shape:E,exact:D};function x(ee,ce){return ee===ce?ee!==0||1/ee===1/ce:ee!==ee&&ce!==ce}function p(ee,ce){this.message=ee,this.data=ce&&typeof ce=="object"?ce:{},this.stack=""}p.prototype=Error.prototype;function m(ee){if(process.env.NODE_ENV!=="production")var ce={},P=0;function I(q,Y,fe,ne,K,he,be){if(ne=ne||d,he=he||fe,be!==r){if(l){var se=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw se.name="Invariant Violation",se}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Le=ne+":"+fe;!ce[Le]&&P<3&&(i("You are manually calling a React.PropTypes validation function for the `"+he+"` prop on `"+ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),ce[Le]=!0,P++)}}return Y[fe]==null?q?Y[fe]===null?new p("The "+K+" `"+he+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new p("The "+K+" `"+he+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:ee(Y,fe,ne,K,he)}var M=I.bind(null,!1);return M.isRequired=I.bind(null,!0),M}function y(ee){function ce(P,I,M,q,Y,fe){var ne=P[I],K=B(ne);if(K!==ee){var he=z(ne);return new p("Invalid "+q+" `"+Y+"` of type "+("`"+he+"` supplied to `"+M+"`, expected ")+("`"+ee+"`."),{expectedType:ee})}return null}return m(ce)}function b(){return m(o)}function w(ee){function ce(P,I,M,q,Y){if(typeof ee!="function")return new p("Property `"+Y+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var fe=P[I];if(!Array.isArray(fe)){var ne=B(fe);return new p("Invalid "+q+" `"+Y+"` of type "+("`"+ne+"` supplied to `"+M+"`, expected an array."))}for(var K=0;K<fe.length;K++){var he=ee(fe,K,M,q,Y+"["+K+"]",r);if(he instanceof Error)return he}return null}return m(ce)}function S(){function ee(ce,P,I,M,q){var Y=ce[P];if(!s(Y)){var fe=B(Y);return new p("Invalid "+M+" `"+q+"` of type "+("`"+fe+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return m(ee)}function A(){function ee(ce,P,I,M,q){var Y=ce[P];if(!e.isValidElementType(Y)){var fe=B(Y);return new p("Invalid "+M+" `"+q+"` of type "+("`"+fe+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return m(ee)}function O(ee){function ce(P,I,M,q,Y){if(!(P[I]instanceof ee)){var fe=ee.name||d,ne=Z(P[I]);return new p("Invalid "+q+" `"+Y+"` of type "+("`"+ne+"` supplied to `"+M+"`, expected ")+("instance of `"+fe+"`."))}return null}return m(ce)}function N(ee){if(!Array.isArray(ee))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function ce(P,I,M,q,Y){for(var fe=P[I],ne=0;ne<ee.length;ne++)if(x(fe,ee[ne]))return null;var K=JSON.stringify(ee,function(be,se){var Le=z(se);return Le==="symbol"?String(se):se});return new p("Invalid "+q+" `"+Y+"` of value `"+String(fe)+"` "+("supplied to `"+M+"`, expected one of "+K+"."))}return m(ce)}function C(ee){function ce(P,I,M,q,Y){if(typeof ee!="function")return new p("Property `"+Y+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var fe=P[I],ne=B(fe);if(ne!=="object")return new p("Invalid "+q+" `"+Y+"` of type "+("`"+ne+"` supplied to `"+M+"`, expected an object."));for(var K in fe)if(n(fe,K)){var he=ee(fe,K,M,q,Y+"."+K,r);if(he instanceof Error)return he}return null}return m(ce)}function L(ee){if(!Array.isArray(ee))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var ce=0;ce<ee.length;ce++){var P=ee[ce];if(typeof P!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(P)+" at index "+ce+"."),o}function I(M,q,Y,fe,ne){for(var K=[],he=0;he<ee.length;he++){var be=ee[he],se=be(M,q,Y,fe,ne,r);if(se==null)return null;se.data&&n(se.data,"expectedType")&&K.push(se.data.expectedType)}var Le=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new p("Invalid "+fe+" `"+ne+"` supplied to "+("`"+Y+"`"+Le+"."))}return m(I)}function R(){function ee(ce,P,I,M,q){return U(ce[P])?null:new p("Invalid "+M+" `"+q+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return m(ee)}function j(ee,ce,P,I,M){return new p((ee||"React class")+": "+ce+" type `"+P+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function E(ee){function ce(P,I,M,q,Y){var fe=P[I],ne=B(fe);if(ne!=="object")return new p("Invalid "+q+" `"+Y+"` of type `"+ne+"` "+("supplied to `"+M+"`, expected `object`."));for(var K in ee){var he=ee[K];if(typeof he!="function")return j(M,q,Y,K,z(he));var be=he(fe,K,M,q,Y+"."+K,r);if(be)return be}return null}return m(ce)}function D(ee){function ce(P,I,M,q,Y){var fe=P[I],ne=B(fe);if(ne!=="object")return new p("Invalid "+q+" `"+Y+"` of type `"+ne+"` "+("supplied to `"+M+"`, expected `object`."));var K=t({},P[I],ee);for(var he in K){var be=ee[he];if(n(ee,he)&&typeof be!="function")return j(M,q,Y,he,z(be));if(!be)return new p("Invalid "+q+" `"+Y+"` key `"+he+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(P[I],null," ")+`
420
- Valid keys: `+JSON.stringify(Object.keys(ee),null," "));var se=be(fe,he,M,q,Y+"."+he,r);if(se)return se}return null}return m(ce)}function U(ee){switch(typeof ee){case"number":case"string":case"undefined":return!0;case"boolean":return!ee;case"object":if(Array.isArray(ee))return ee.every(U);if(ee===null||s(ee))return!0;var ce=f(ee);if(ce){var P=ce.call(ee),I;if(ce!==ee.entries){for(;!(I=P.next()).done;)if(!U(I.value))return!1}else for(;!(I=P.next()).done;){var M=I.value;if(M&&!U(M[1]))return!1}}else return!1;return!0;default:return!1}}function H(ee,ce){return ee==="symbol"?!0:ce?ce["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ce instanceof Symbol:!1}function B(ee){var ce=typeof ee;return Array.isArray(ee)?"array":ee instanceof RegExp?"object":H(ce,ee)?"symbol":ce}function z(ee){if(typeof ee>"u"||ee===null)return""+ee;var ce=B(ee);if(ce==="object"){if(ee instanceof Date)return"date";if(ee instanceof RegExp)return"regexp"}return ce}function te(ee){var ce=z(ee);switch(ce){case"array":case"object":return"an "+ce;case"boolean":case"date":case"regexp":return"a "+ce;default:return ce}}function Z(ee){return!ee.constructor||!ee.constructor.name?d:ee.constructor.name}return h.checkPropTypes=a,h.resetWarningCache=a.resetWarningCache,h.PropTypes=h,h},Px}var Ox,kN;function fJ(){if(kN)return Ox;kN=1;var e=m5();function t(){}function r(){}return r.resetWarningCache=t,Ox=function(){function n(o,s,l,c,u,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},Ox}var LN;function hJ(){if(LN)return Mh.exports;if(LN=1,process.env.NODE_ENV!=="production"){var e=nC(),t=!0;Mh.exports=uJ()(e.isElement,t)}else Mh.exports=fJ()();return Mh.exports}var dJ=hJ();const sr=ur(dJ),{getOwnPropertyNames:pJ,getOwnPropertySymbols:mJ}=Object,{hasOwnProperty:vJ}=Object.prototype;function jx(e,t){return function(n,a,i){return e(n,a,i)&&t(n,a,i)}}function Rh(e){return function(r,n,a){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,a);const{cache:i}=a,o=i.get(r),s=i.get(n);if(o&&s)return o===n&&s===r;i.set(r,n),i.set(n,r);const l=e(r,n,a);return i.delete(r),i.delete(n),l}}function gJ(e){return e!=null?e[Symbol.toStringTag]:void 0}function IN(e){return pJ(e).concat(mJ(e))}const xJ=Object.hasOwn||((e,t)=>vJ.call(e,t));function fl(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const yJ="__v",bJ="__o",wJ="_owner",{getOwnPropertyDescriptor:FN,keys:MN}=Object;function _J(e,t){return e.byteLength===t.byteLength&&Ld(new Uint8Array(e),new Uint8Array(t))}function SJ(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function AJ(e,t){return e.byteLength===t.byteLength&&Ld(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function NJ(e,t){return fl(e.getTime(),t.getTime())}function TJ(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function EJ(e,t){return e===t}function DN(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const a=new Array(n),i=e.entries();let o,s,l=0;for(;(o=i.next())&&!o.done;){const c=t.entries();let u=!1,f=0;for(;(s=c.next())&&!s.done;){if(a[f]){f++;continue}const d=o.value,h=s.value;if(r.equals(d[0],h[0],l,f,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){u=a[f]=!0;break}f++}if(!u)return!1;l++}return!0}const PJ=fl;function OJ(e,t,r){const n=MN(e);let a=n.length;if(MN(t).length!==a)return!1;for(;a-- >0;)if(!iC(e,t,r,n[a]))return!1;return!0}function qu(e,t,r){const n=IN(e);let a=n.length;if(IN(t).length!==a)return!1;let i,o,s;for(;a-- >0;)if(i=n[a],!iC(e,t,r,i)||(o=FN(e,i),s=FN(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function jJ(e,t){return fl(e.valueOf(),t.valueOf())}function CJ(e,t){return e.source===t.source&&e.flags===t.flags}function RN(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const a=new Array(n),i=e.values();let o,s;for(;(o=i.next())&&!o.done;){const l=t.values();let c=!1,u=0;for(;(s=l.next())&&!s.done;){if(!a[u]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){c=a[u]=!0;break}u++}if(!c)return!1}return!0}function Ld(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function kJ(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function iC(e,t,r,n){return(n===wJ||n===bJ||n===yJ)&&(e.$$typeof||t.$$typeof)?!0:xJ(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const LJ="[object ArrayBuffer]",IJ="[object Arguments]",FJ="[object Boolean]",MJ="[object DataView]",DJ="[object Date]",RJ="[object Error]",BJ="[object Map]",$J="[object Number]",qJ="[object Object]",UJ="[object RegExp]",zJ="[object Set]",WJ="[object String]",HJ={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},GJ="[object URL]",VJ=Object.prototype.toString;function YJ({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h,unknownTagComparators:x}){return function(m,y,b){if(m===y)return!0;if(m==null||y==null)return!1;const w=typeof m;if(w!==typeof y)return!1;if(w!=="object")return w==="number"?s(m,y,b):w==="function"?i(m,y,b):!1;const S=m.constructor;if(S!==y.constructor)return!1;if(S===Object)return l(m,y,b);if(Array.isArray(m))return t(m,y,b);if(S===Date)return n(m,y,b);if(S===RegExp)return u(m,y,b);if(S===Map)return o(m,y,b);if(S===Set)return f(m,y,b);const A=VJ.call(m);if(A===DJ)return n(m,y,b);if(A===UJ)return u(m,y,b);if(A===BJ)return o(m,y,b);if(A===zJ)return f(m,y,b);if(A===qJ)return typeof m.then!="function"&&typeof y.then!="function"&&l(m,y,b);if(A===GJ)return h(m,y,b);if(A===RJ)return a(m,y,b);if(A===IJ)return l(m,y,b);if(HJ[A])return d(m,y,b);if(A===LJ)return e(m,y,b);if(A===MJ)return r(m,y,b);if(A===FJ||A===$J||A===WJ)return c(m,y,b);if(x){let O=x[A];if(!O){const N=gJ(m);N&&(O=x[N])}if(O)return O(m,y,b)}return!1}}function KJ({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:_J,areArraysEqual:r?qu:SJ,areDataViewsEqual:AJ,areDatesEqual:NJ,areErrorsEqual:TJ,areFunctionsEqual:EJ,areMapsEqual:r?jx(DN,qu):DN,areNumbersEqual:PJ,areObjectsEqual:r?qu:OJ,arePrimitiveWrappersEqual:jJ,areRegExpsEqual:CJ,areSetsEqual:r?jx(RN,qu):RN,areTypedArraysEqual:r?jx(Ld,qu):Ld,areUrlsEqual:kJ,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const a=Rh(n.areArraysEqual),i=Rh(n.areMapsEqual),o=Rh(n.areObjectsEqual),s=Rh(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:o,areSetsEqual:s})}return n}function XJ(e){return function(t,r,n,a,i,o,s){return e(t,r,s)}}function JJ({circular:e,comparator:t,createState:r,equals:n,strict:a}){if(r)return function(s,l){const{cache:c=e?new WeakMap:void 0,meta:u}=r();return t(s,l,{cache:c,equals:n,meta:u,strict:a})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:n,meta:void 0,strict:a})};const i={cache:void 0,equals:n,meta:void 0,strict:a};return function(s,l){return t(s,l,i)}}const ZJ=ms();ms({strict:!0});ms({circular:!0});ms({circular:!0,strict:!0});ms({createInternalComparator:()=>fl});ms({strict:!0,createInternalComparator:()=>fl});ms({circular:!0,createInternalComparator:()=>fl});ms({circular:!0,createInternalComparator:()=>fl,strict:!0});function ms(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:a=!1}=e,i=KJ(e),o=YJ(i),s=r?r(o):XJ(o);return JJ({circular:t,comparator:o,createState:n,equals:s,strict:a})}function QJ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function BN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(i){r<0&&(r=i),i-r>t?(e(i),r=-1):QJ(a)};requestAnimationFrame(n)}function d2(e){"@babel/helpers - typeof";return d2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d2(e)}function eZ(e){return aZ(e)||nZ(e)||rZ(e)||tZ()}function tZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
421
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rZ(e,t){if(e){if(typeof e=="string")return $N(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $N(e,t)}}function $N(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aZ(e){if(Array.isArray(e))return e}function iZ(){var e={},t=function(){return null},r=!1,n=function a(i){if(!r){if(Array.isArray(i)){if(!i.length)return;var o=i,s=eZ(o),l=s[0],c=s.slice(1);if(typeof l=="number"){BN(a.bind(null,c),l);return}a(l),BN(a.bind(null,c));return}d2(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){r=!0},start:function(i){r=!1,n(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function zf(e){"@babel/helpers - typeof";return zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zf(e)}function qN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function UN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qN(Object(r),!0).forEach(function(n){oC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oC(e,t,r){return t=oZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oZ(e){var t=sZ(e,"string");return zf(t)==="symbol"?t:String(t)}function sZ(e,t){if(zf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lZ=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,a){return n.filter(function(i){return a.includes(i)})})},cZ=function(t){return t},uZ=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},lf=function(t,r){return Object.keys(r).reduce(function(n,a){return UN(UN({},n),{},oC({},a,t(a,r[a])))},{})},zN=function(t,r,n){return t.map(function(a){return"".concat(uZ(a)," ").concat(r,"ms ").concat(n)}).join(",")},fZ=process.env.NODE_ENV!=="production",Id=function(t,r,n,a,i,o,s,l){if(fZ&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,a,i,o,s,l],u=0;console.warn(r.replace(/%s/g,function(){return c[u++]}))}};function hZ(e,t){return mZ(e)||pZ(e,t)||sC(e,t)||dZ()}function dZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
422
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function mZ(e){if(Array.isArray(e))return e}function vZ(e){return yZ(e)||xZ(e)||sC(e)||gZ()}function gZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
423
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sC(e,t){if(e){if(typeof e=="string")return p2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p2(e,t)}}function xZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yZ(e){if(Array.isArray(e))return p2(e)}function p2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Fd=1e-4,lC=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},cC=function(t,r){return t.map(function(n,a){return n*Math.pow(r,a)}).reduce(function(n,a){return n+a})},WN=function(t,r){return function(n){var a=lC(t,r);return cC(a,n)}},bZ=function(t,r){return function(n){var a=lC(t,r),i=[].concat(vZ(a.map(function(o,s){return o*s}).slice(1)),[0]);return cC(i,n)}},HN=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0],i=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":a=0,i=0,o=1,s=1;break;case"ease":a=.25,i=.1,o=.25,s=1;break;case"ease-in":a=.42,i=0,o=1,s=1;break;case"ease-out":a=.42,i=0,o=.58,s=1;break;case"ease-in-out":a=0,i=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var c=l[1].split(")")[0].split(",").map(function(m){return parseFloat(m)}),u=hZ(c,4);a=u[0],i=u[1],o=u[2],s=u[3]}else Id(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}Id([a,o,i,s].every(function(m){return typeof m=="number"&&m>=0&&m<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=WN(a,o),d=WN(i,s),h=bZ(a,o),x=function(y){return y>1?1:y<0?0:y},p=function(y){for(var b=y>1?1:y,w=b,S=0;S<8;++S){var A=f(w)-b,O=h(w);if(Math.abs(A-b)<Fd||O<Fd)return d(w);w=x(w-A/O)}return d(w)};return p.isStepper=!1,p},wZ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,a=t.damping,i=a===void 0?8:a,o=t.dt,s=o===void 0?17:o,l=function(u,f,d){var h=-(u-f)*n,x=d*i,p=d+(h-x)*s/1e3,m=d*s/1e3+u;return Math.abs(m-f)<Fd&&Math.abs(p)<Fd?[f,0]:[m,p]};return l.isStepper=!0,l.dt=s,l},_Z=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return HN(a);case"spring":return wZ();default:if(a.split("(")[0]==="cubic-bezier")return HN(a);Id(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof a=="function"?a:(Id(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function Wf(e){"@babel/helpers - typeof";return Wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wf(e)}function GN(e){return NZ(e)||AZ(e)||uC(e)||SZ()}function SZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
424
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NZ(e){if(Array.isArray(e))return v2(e)}function VN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Pn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VN(Object(r),!0).forEach(function(n){m2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m2(e,t,r){return t=TZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TZ(e){var t=EZ(e,"string");return Wf(t)==="symbol"?t:String(t)}function EZ(e,t){if(Wf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PZ(e,t){return CZ(e)||jZ(e,t)||uC(e,t)||OZ()}function OZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
425
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uC(e,t){if(e){if(typeof e=="string")return v2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v2(e,t)}}function v2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function CZ(e){if(Array.isArray(e))return e}var Md=function(t,r,n){return t+(r-t)*n},g2=function(t){var r=t.from,n=t.to;return r!==n},kZ=function e(t,r,n){var a=lf(function(i,o){if(g2(o)){var s=t(o.from,o.to,o.velocity),l=PZ(s,2),c=l[0],u=l[1];return Pn(Pn({},o),{},{from:c,velocity:u})}return o},r);return n<1?lf(function(i,o){return g2(o)?Pn(Pn({},o),{},{velocity:Md(o.velocity,a[i].velocity,n),from:Md(o.from,a[i].from,n)}):o},r):e(t,a,n-1)};const LZ=(function(e,t,r,n,a){var i=lZ(e,t),o=i.reduce(function(m,y){return Pn(Pn({},m),{},m2({},y,[e[y],t[y]]))},{}),s=i.reduce(function(m,y){return Pn(Pn({},m),{},m2({},y,{from:e[y],velocity:0,to:t[y]}))},{}),l=-1,c,u,f=function(){return null},d=function(){return lf(function(y,b){return b.from},s)},h=function(){return!Object.values(s).filter(g2).length},x=function(y){c||(c=y);var b=y-c,w=b/r.dt;s=kZ(r,s,w),a(Pn(Pn(Pn({},e),t),d())),c=y,h()||(l=requestAnimationFrame(f))},p=function(y){u||(u=y);var b=(y-u)/n,w=lf(function(A,O){return Md.apply(void 0,GN(O).concat([r(b)]))},o);if(a(Pn(Pn(Pn({},e),t),w)),b<1)l=requestAnimationFrame(f);else{var S=lf(function(A,O){return Md.apply(void 0,GN(O).concat([r(1)]))},o);a(Pn(Pn(Pn({},e),t),S))}};return f=r.isStepper?x:p,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}});function _c(e){"@babel/helpers - typeof";return _c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_c(e)}var IZ=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function FZ(e,t){if(e==null)return{};var r=MZ(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MZ(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Cx(e){return $Z(e)||BZ(e)||RZ(e)||DZ()}function DZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
426
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RZ(e,t){if(e){if(typeof e=="string")return x2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return x2(e,t)}}function BZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $Z(e){if(Array.isArray(e))return x2(e)}function x2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function YN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function fi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YN(Object(r),!0).forEach(function(n){Gu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gu(e,t,r){return t=fC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UZ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fC(n.key),n)}}function zZ(e,t,r){return t&&UZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fC(e){var t=WZ(e,"string");return _c(t)==="symbol"?t:String(t)}function WZ(e,t){if(_c(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_c(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y2(e,t)}function y2(e,t){return y2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},y2(e,t)}function GZ(e){var t=VZ();return function(){var n=Dd(e),a;if(t){var i=Dd(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return b2(this,a)}}function b2(e,t){if(t&&(_c(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w2(e)}function w2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VZ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dd(e){return Dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dd(e)}var Ui=(function(e){HZ(r,e);var t=GZ(r);function r(n,a){var i;qZ(this,r),i=t.call(this,n,a);var o=i.props,s=o.isActive,l=o.attributeName,c=o.from,u=o.to,f=o.steps,d=o.children,h=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(w2(i)),i.changeStyle=i.changeStyle.bind(w2(i)),!s||h<=0)return i.state={style:{}},typeof d=="function"&&(i.state={style:u}),b2(i);if(f&&f.length)i.state={style:f[0].style};else if(c){if(typeof d=="function")return i.state={style:c},b2(i);i.state={style:l?Gu({},l,c):c}}else i.state={style:{}};return i}return zZ(r,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,s=i.canBegin,l=i.attributeName,c=i.shouldReAnimate,u=i.to,f=i.from,d=this.state.style;if(s){if(!o){var h={style:l?Gu({},l,u):u};this.state&&d&&(l&&d[l]!==u||!l&&d!==u)&&this.setState(h);return}if(!(ZJ(a.to,u)&&a.canBegin&&a.isActive)){var x=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=x||c?f:a.to;if(this.state&&d){var m={style:l?Gu({},l,p):p};(l&&d[l]!==p||!l&&d!==p)&&this.setState(m)}this.runAnimation(fi(fi({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,s=a.to,l=a.duration,c=a.easing,u=a.begin,f=a.onAnimationEnd,d=a.onAnimationStart,h=LZ(o,s,_Z(c),l,this.changeStyle),x=function(){i.stopJSAnimation=h()};this.manager.start([d,u,x,l,f])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,s=a.begin,l=a.onAnimationStart,c=o[0],u=c.style,f=c.duration,d=f===void 0?0:f,h=function(p,m,y){if(y===0)return p;var b=m.duration,w=m.easing,S=w===void 0?"ease":w,A=m.style,O=m.properties,N=m.onAnimationEnd,C=y>0?o[y-1]:m,L=O||Object.keys(A);if(typeof S=="function"||S==="spring")return[].concat(Cx(p),[i.runJSAnimation.bind(i,{from:C.style,to:A,duration:b,easing:S}),b]);var R=zN(L,b,S),j=fi(fi(fi({},C.style),A),{},{transition:R});return[].concat(Cx(p),[j,b,N]).filter(cZ)};return this.manager.start([l].concat(Cx(o.reduce(h,[u,Math.max(d,s)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=iZ());var i=a.begin,o=a.duration,s=a.attributeName,l=a.to,c=a.easing,u=a.onAnimationStart,f=a.onAnimationEnd,d=a.steps,h=a.children,x=this.manager;if(this.unSubscribe=x.subscribe(this.handleStyleChange),typeof c=="function"||typeof h=="function"||c==="spring"){this.runJSAnimation(a);return}if(d.length>1){this.runStepAnimation(a);return}var p=s?Gu({},s,l):l,m=zN(Object.keys(p),o,c);x.start([u,i,fi(fi({},p),{},{transition:m}),o,f])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var s=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var l=FZ(a,IZ),c=W.Children.count(i),u=this.state.style;if(typeof i=="function")return i(u);if(!s||c===0||o<=0)return i;var f=function(h){var x=h.props,p=x.style,m=p===void 0?{}:p,y=x.className,b=W.cloneElement(h,fi(fi({},l),{},{style:fi(fi({},m),u),className:y}));return b};return c===1?f(W.Children.only(i)):W.createElement("div",null,W.Children.map(i,function(d){return f(d)}))}}]),r})(W.PureComponent);Ui.displayName="Animate";Ui.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ui.propTypes={from:sr.oneOfType([sr.object,sr.string]),to:sr.oneOfType([sr.object,sr.string]),attributeName:sr.string,duration:sr.number,begin:sr.number,easing:sr.oneOfType([sr.string,sr.func]),steps:sr.arrayOf(sr.shape({duration:sr.number.isRequired,style:sr.object.isRequired,easing:sr.oneOfType([sr.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),sr.func]),properties:sr.arrayOf("string"),onAnimationEnd:sr.func})),children:sr.oneOfType([sr.node,sr.func]),isActive:sr.bool,canBegin:sr.bool,onAnimationEnd:sr.func,shouldReAnimate:sr.bool,onAnimationStart:sr.func,onAnimationReStart:sr.func};function Hf(e){"@babel/helpers - typeof";return Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hf(e)}function Rd(){return Rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rd.apply(this,arguments)}function YZ(e,t){return ZZ(e)||JZ(e,t)||XZ(e,t)||KZ()}function KZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
427
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XZ(e,t){if(e){if(typeof e=="string")return KN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return KN(e,t)}}function KN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function JZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function ZZ(e){if(Array.isArray(e))return e}function XN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function JN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XN(Object(r),!0).forEach(function(n){QZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QZ(e,t,r){return t=eQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eQ(e){var t=tQ(e,"string");return Hf(t)=="symbol"?t:t+""}function tQ(e,t){if(Hf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZN=function(t,r,n,a,i){var o=Math.min(Math.abs(n)/2,Math.abs(a)/2),s=a>=0?1:-1,l=n>=0?1:-1,c=a>=0&&n>=0||a<0&&n<0?1:0,u;if(o>0&&i instanceof Array){for(var f=[0,0,0,0],d=0,h=4;d<h;d++)f[d]=i[d]>o?o:i[d];u="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(u+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(c,",").concat(t+l*f[0],",").concat(r)),u+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(u+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(c,`,
428
- `).concat(t+n,",").concat(r+s*f[1])),u+="L ".concat(t+n,",").concat(r+a-s*f[2]),f[2]>0&&(u+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(c,`,
429
- `).concat(t+n-l*f[2],",").concat(r+a)),u+="L ".concat(t+l*f[3],",").concat(r+a),f[3]>0&&(u+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(c,`,
430
- `).concat(t,",").concat(r+a-s*f[3])),u+="Z"}else if(o>0&&i===+i&&i>0){var x=Math.min(o,i);u="M ".concat(t,",").concat(r+s*x,`
431
- A `).concat(x,",").concat(x,",0,0,").concat(c,",").concat(t+l*x,",").concat(r,`
432
- L `).concat(t+n-l*x,",").concat(r,`
433
- A `).concat(x,",").concat(x,",0,0,").concat(c,",").concat(t+n,",").concat(r+s*x,`
434
- L `).concat(t+n,",").concat(r+a-s*x,`
435
- A `).concat(x,",").concat(x,",0,0,").concat(c,",").concat(t+n-l*x,",").concat(r+a,`
436
- L `).concat(t+l*x,",").concat(r+a,`
437
- A `).concat(x,",").concat(x,",0,0,").concat(c,",").concat(t,",").concat(r+a-s*x," Z")}else u="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return u},rQ=function(t,r){if(!t||!r)return!1;var n=t.x,a=t.y,i=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(i,i+s),u=Math.max(i,i+s),f=Math.min(o,o+l),d=Math.max(o,o+l);return n>=c&&n<=u&&a>=f&&a<=d}return!1},nQ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},v5=function(t){var r=JN(JN({},nQ),t),n=W.useRef(),a=W.useState(-1),i=YZ(a,2),o=i[0],s=i[1];W.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&s(S)}catch{}},[]);var l=r.x,c=r.y,u=r.width,f=r.height,d=r.radius,h=r.className,x=r.animationEasing,p=r.animationDuration,m=r.animationBegin,y=r.isAnimationActive,b=r.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||f!==+f||u===0||f===0)return null;var w=Dt("recharts-rectangle",h);return b?W.createElement(Ui,{canBegin:o>0,from:{width:u,height:f,x:l,y:c},to:{width:u,height:f,x:l,y:c},duration:p,animationEasing:x,isActive:b},function(S){var A=S.width,O=S.height,N=S.x,C=S.y;return W.createElement(Ui,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:p,isActive:y,easing:x},W.createElement("path",Rd({},bt(r,!0),{className:w,d:ZN(N,C,A,O,d),ref:n})))}):W.createElement("path",Rd({},bt(r,!0),{className:w,d:ZN(l,c,u,f,d)}))},aQ=["points","className","baseLinePoints","connectNulls"];function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ql.apply(this,arguments)}function iQ(e,t){if(e==null)return{};var r=oQ(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oQ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function QN(e){return uQ(e)||cQ(e)||lQ(e)||sQ()}function sQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
438
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lQ(e,t){if(e){if(typeof e=="string")return _2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _2(e,t)}}function cQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uQ(e){if(Array.isArray(e))return _2(e)}function _2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var eT=function(t){return t&&t.x===+t.x&&t.y===+t.y},fQ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){eT(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),eT(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},cf=function(t,r){var n=fQ(t);r&&(n=[n.reduce(function(i,o){return[].concat(QN(i),QN(o))},[])]);var a=n.map(function(i){return i.reduce(function(o,s,l){return"".concat(o).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(a,"Z"):a},hQ=function(t,r,n){var a=cf(t,n);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(cf(r.reverse(),n).slice(1))},hC=function(t){var r=t.points,n=t.className,a=t.baseLinePoints,i=t.connectNulls,o=iQ(t,aQ);if(!r||!r.length)return null;var s=Dt("recharts-polygon",n);if(a&&a.length){var l=o.stroke&&o.stroke!=="none",c=hQ(r,a,i);return W.createElement("g",{className:s},W.createElement("path",Ql({},bt(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),l?W.createElement("path",Ql({},bt(o,!0),{fill:"none",d:cf(r,i)})):null,l?W.createElement("path",Ql({},bt(o,!0),{fill:"none",d:cf(a,i)})):null)}var u=cf(r,i);return W.createElement("path",Ql({},bt(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",className:s,d:u}))};function S2(){return S2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},S2.apply(this,arguments)}var y0=function(t){var r=t.cx,n=t.cy,a=t.r,i=t.className,o=Dt("recharts-dot",i);return r===+r&&n===+n&&a===+a?is.createElement("circle",S2({},bt(t,!1),id(t),{className:o,cx:r,cy:n,r:a})):null};function Gf(e){"@babel/helpers - typeof";return Gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gf(e)}var dQ=["x","y","top","left","width","height","className"];function A2(){return A2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A2.apply(this,arguments)}function tT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function pQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tT(Object(r),!0).forEach(function(n){mQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mQ(e,t,r){return t=vQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vQ(e){var t=gQ(e,"string");return Gf(t)=="symbol"?t:t+""}function gQ(e,t){if(Gf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xQ(e,t){if(e==null)return{};var r=yQ(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yQ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var bQ=function(t,r,n,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(r,"h").concat(n)},wQ=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.top,s=o===void 0?0:o,l=t.left,c=l===void 0?0:l,u=t.width,f=u===void 0?0:u,d=t.height,h=d===void 0?0:d,x=t.className,p=xQ(t,dQ),m=pQ({x:n,y:i,top:s,left:c,width:f,height:h},p);return!nt(n)||!nt(i)||!nt(f)||!nt(h)||!nt(s)||!nt(c)?null:W.createElement("path",A2({},bt(m,!0),{className:Dt("recharts-cross",x),d:bQ(n,i,f,h,s,c)}))},_Q=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}function SQ(e,t){if(e==null)return{};var r=AQ(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AQ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},To.apply(this,arguments)}function rT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rT(Object(r),!0).forEach(function(n){NQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NQ(e,t,r){return t=TQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TQ(e){var t=EQ(e,"string");return Vf(t)=="symbol"?t:t+""}function EQ(e,t){if(Vf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PQ=function(t,r,n,a){var i="";return a.forEach(function(o,s){var l=_r(r,n,t,o);s?i+="L ".concat(l.x,",").concat(l.y):i+="M ".concat(l.x,",").concat(l.y)}),i+="Z",i},OQ=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.polarAngles,s=t.radialLines;if(!o||!o.length||!s)return null;var l=Yf({stroke:"#ccc"},bt(t,!1));return W.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(c){var u=_r(r,n,a,c),f=_r(r,n,i,c);return W.createElement("line",To({},l,{key:"line-".concat(c),x1:u.x,y1:u.y,x2:f.x,y2:f.y}))}))},jQ=function(t){var r=t.cx,n=t.cy,a=t.radius,i=t.index,o=Yf(Yf({stroke:"#ccc"},bt(t,!1)),{},{fill:"none"});return W.createElement("circle",To({},o,{className:Dt("recharts-polar-grid-concentric-circle",t.className),key:"circle-".concat(i),cx:r,cy:n,r:a}))},CQ=function(t){var r=t.radius,n=t.index,a=Yf(Yf({stroke:"#ccc"},bt(t,!1)),{},{fill:"none"});return W.createElement("path",To({},a,{className:Dt("recharts-polar-grid-concentric-polygon",t.className),key:"path-".concat(n),d:PQ(r,t.cx,t.cy,t.polarAngles)}))},kQ=function(t){var r=t.polarRadius,n=t.gridType;return!r||!r.length?null:W.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(a,i){var o=i;return n==="circle"?W.createElement(jQ,To({key:o},t,{radius:a,index:i})):W.createElement(CQ,To({key:o},t,{radius:a,index:i}))}))},dC=function(t){var r=t.cx,n=r===void 0?0:r,a=t.cy,i=a===void 0?0:a,o=t.innerRadius,s=o===void 0?0:o,l=t.outerRadius,c=l===void 0?0:l,u=t.gridType,f=u===void 0?"polygon":u,d=t.radialLines,h=d===void 0?!0:d,x=SQ(t,_Q);return c<=0?null:W.createElement("g",{className:"recharts-polar-grid"},W.createElement(OQ,To({cx:n,cy:i,innerRadius:s,outerRadius:c,gridType:f,radialLines:h},x)),W.createElement(kQ,To({cx:n,cy:i,innerRadius:s,outerRadius:c,gridType:f,radialLines:h},x)))};dC.displayName="PolarGrid";var kx,nT;function LQ(){if(nT)return kx;nT=1;var e=Fp(),t=Aj(),r=Hi();function n(a,i){return a&&a.length?e(a,r(i,2),t):void 0}return kx=n,kx}var IQ=LQ();const FQ=ur(IQ);var Lx,aT;function MQ(){if(aT)return Lx;aT=1;var e=Fp(),t=Hi(),r=Nj();function n(a,i){return a&&a.length?e(a,t(i,2),r):void 0}return Lx=n,Lx}var DQ=MQ();const RQ=ur(DQ);var BQ=["cx","cy","angle","ticks","axisLine"],$Q=["ticks","tick","angle","tickFormatter","stroke"];function Sc(e){"@babel/helpers - typeof";return Sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sc(e)}function uf(){return uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uf.apply(this,arguments)}function iT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Es(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iT(Object(r),!0).forEach(function(n){$p(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oT(e,t){if(e==null)return{};var r=qQ(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qQ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function UQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mC(n.key),n)}}function zQ(e,t,r){return t&&sT(e.prototype,t),r&&sT(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function WQ(e,t,r){return t=Bd(t),HQ(e,pC()?Reflect.construct(t,r||[],Bd(e).constructor):t.apply(e,r))}function HQ(e,t){if(t&&(Sc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GQ(e)}function GQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pC=function(){return!!e})()}function Bd(e){return Bd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bd(e)}function VQ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N2(e,t)}function N2(e,t){return N2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},N2(e,t)}function $p(e,t,r){return t=mC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mC(e){var t=YQ(e,"string");return Sc(t)=="symbol"?t:t+""}function YQ(e,t){if(Sc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var b0=(function(e){function t(){return UQ(this,t),WQ(this,t,arguments)}return VQ(t,e),zQ(t,[{key:"getTickValueCoord",value:function(n){var a=n.coordinate,i=this.props,o=i.angle,s=i.cx,l=i.cy;return _r(s,l,a,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,a;switch(n){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.angle,s=n.ticks,l=FQ(s,function(u){return u.coordinate||0}),c=RQ(s,function(u){return u.coordinate||0});return{cx:a,cy:i,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.angle,s=n.ticks,l=n.axisLine,c=oT(n,BQ),u=s.reduce(function(x,p){return[Math.min(x[0],p.coordinate),Math.max(x[1],p.coordinate)]},[1/0,-1/0]),f=_r(a,i,u[0],o),d=_r(a,i,u[1],o),h=Es(Es(Es({},bt(c,!1)),{},{fill:"none"},bt(l,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return W.createElement("line",uf({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,a=this.props,i=a.ticks,o=a.tick,s=a.angle,l=a.tickFormatter,c=a.stroke,u=oT(a,$Q),f=this.getTickTextAnchor(),d=bt(u,!1),h=bt(o,!1),x=i.map(function(p,m){var y=n.getTickValueCoord(p),b=Es(Es(Es(Es({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},d),{},{stroke:"none",fill:c},h),{},{index:m},y),{},{payload:p});return W.createElement(lr,uf({className:Dt("recharts-polar-radius-axis-tick",Zj(o)),key:"tick-".concat(p.coordinate)},fc(n.props,p,m)),t.renderTickItem(o,b,l?l(p.value,m):p.value))});return W.createElement(lr,{className:"recharts-polar-radius-axis-ticks"},x)}},{key:"render",value:function(){var n=this.props,a=n.ticks,i=n.axisLine,o=n.tick;return!a||!a.length?null:W.createElement(lr,{className:Dt("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),o&&this.renderTicks(),jn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,a,i){var o;return W.isValidElement(n)?o=W.cloneElement(n,a):jt(n)?o=n(a):o=W.createElement(gc,uf({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}])})(W.PureComponent);$p(b0,"displayName","PolarRadiusAxis");$p(b0,"axisType","radiusAxis");$p(b0,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ls.apply(this,arguments)}function lT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ps(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lT(Object(r),!0).forEach(function(n){qp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gC(n.key),n)}}function XQ(e,t,r){return t&&cT(e.prototype,t),r&&cT(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function JQ(e,t,r){return t=$d(t),ZQ(e,vC()?Reflect.construct(t,r||[],$d(e).constructor):t.apply(e,r))}function ZQ(e,t){if(t&&(Ac(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QQ(e)}function QQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vC=function(){return!!e})()}function $d(e){return $d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$d(e)}function eee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T2(e,t)}function T2(e,t){return T2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},T2(e,t)}function qp(e,t,r){return t=gC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gC(e){var t=tee(e,"string");return Ac(t)=="symbol"?t:t+""}function tee(e,t){if(Ac(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ac(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ree=Math.PI/180,uT=1e-5,w0=(function(e){function t(){return KQ(this,t),JQ(this,t,arguments)}return eee(t,e),XQ(t,[{key:"getTickLineCoord",value:function(n){var a=this.props,i=a.cx,o=a.cy,s=a.radius,l=a.orientation,c=a.tickSize,u=c||8,f=_r(i,o,s,n.coordinate),d=_r(i,o,s+(l==="inner"?-1:1)*u,n.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var a=this.props.orientation,i=Math.cos(-n.coordinate*ree),o;return i>uT?o=a==="outer"?"start":"end":i<-uT?o=a==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.cx,i=n.cy,o=n.radius,s=n.axisLine,l=n.axisLineType,c=Ps(Ps({},bt(this.props,!1)),{},{fill:"none"},bt(s,!1));if(l==="circle")return W.createElement(y0,Ls({className:"recharts-polar-angle-axis-line"},c,{cx:a,cy:i,r:o}));var u=this.props.ticks,f=u.map(function(d){return _r(a,i,o,d.coordinate)});return W.createElement(hC,Ls({className:"recharts-polar-angle-axis-line"},c,{points:f}))}},{key:"renderTicks",value:function(){var n=this,a=this.props,i=a.ticks,o=a.tick,s=a.tickLine,l=a.tickFormatter,c=a.stroke,u=bt(this.props,!1),f=bt(o,!1),d=Ps(Ps({},u),{},{fill:"none"},bt(s,!1)),h=i.map(function(x,p){var m=n.getTickLineCoord(x),y=n.getTickTextAnchor(x),b=Ps(Ps(Ps({textAnchor:y},u),{},{stroke:"none",fill:c},f),{},{index:p,payload:x,x:m.x2,y:m.y2});return W.createElement(lr,Ls({className:Dt("recharts-polar-angle-axis-tick",Zj(o)),key:"tick-".concat(x.coordinate)},fc(n.props,x,p)),s&&W.createElement("line",Ls({className:"recharts-polar-angle-axis-tick-line"},d,m)),o&&t.renderTickItem(o,b,l?l(x.value,p):x.value))});return W.createElement(lr,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,a=n.ticks,i=n.radius,o=n.axisLine;return i<=0||!a||!a.length?null:W.createElement(lr,{className:Dt("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,a,i){var o;return W.isValidElement(n)?o=W.cloneElement(n,a):jt(n)?o=n(a):o=W.createElement(gc,Ls({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}])})(W.PureComponent);qp(w0,"displayName","PolarAngleAxis");qp(w0,"axisType","angleAxis");qp(w0,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Ix,fT;function nee(){if(fT)return Ix;fT=1;var e=S6(),t=e(Object.getPrototypeOf,Object);return Ix=t,Ix}var Fx,hT;function aee(){if(hT)return Fx;hT=1;var e=Po(),t=nee(),r=Oo(),n="[object Object]",a=Function.prototype,i=Object.prototype,o=a.toString,s=i.hasOwnProperty,l=o.call(Object);function c(u){if(!r(u)||e(u)!=n)return!1;var f=t(u);if(f===null)return!0;var d=s.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==l}return Fx=c,Fx}var iee=aee();const oee=ur(iee);var Mx,dT;function see(){if(dT)return Mx;dT=1;var e=Po(),t=Oo(),r="[object Boolean]";function n(a){return a===!0||a===!1||t(a)&&e(a)==r}return Mx=n,Mx}var lee=see();const cee=ur(lee);function Kf(e){"@babel/helpers - typeof";return Kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kf(e)}function qd(){return qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qd.apply(this,arguments)}function uee(e,t){return pee(e)||dee(e,t)||hee(e,t)||fee()}function fee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
439
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hee(e,t){if(e){if(typeof e=="string")return pT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pT(e,t)}}function pT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function pee(e){if(Array.isArray(e))return e}function mT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mT(Object(r),!0).forEach(function(n){mee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mee(e,t,r){return t=vee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vee(e){var t=gee(e,"string");return Kf(t)=="symbol"?t:t+""}function gee(e,t){if(Kf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gT=function(t,r,n,a,i){var o=n-a,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+i),s+="L ".concat(t+n-o/2-a,",").concat(r+i),s+="L ".concat(t,",").concat(r," Z"),s},xee={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},yee=function(t){var r=vT(vT({},xee),t),n=W.useRef(),a=W.useState(-1),i=uee(a,2),o=i[0],s=i[1];W.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&s(w)}catch{}},[]);var l=r.x,c=r.y,u=r.upperWidth,f=r.lowerWidth,d=r.height,h=r.className,x=r.animationEasing,p=r.animationDuration,m=r.animationBegin,y=r.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||f!==+f||d!==+d||u===0&&f===0||d===0)return null;var b=Dt("recharts-trapezoid",h);return y?W.createElement(Ui,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:c},to:{upperWidth:u,lowerWidth:f,height:d,x:l,y:c},duration:p,animationEasing:x,isActive:y},function(w){var S=w.upperWidth,A=w.lowerWidth,O=w.height,N=w.x,C=w.y;return W.createElement(Ui,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:p,easing:x},W.createElement("path",qd({},bt(r,!0),{className:b,d:gT(N,C,S,A,O),ref:n})))}):W.createElement("g",null,W.createElement("path",qd({},bt(r,!0),{className:b,d:gT(l,c,u,f,d)})))},bee=["option","shapeType","propTransformer","activeClassName","isActive"];function Xf(e){"@babel/helpers - typeof";return Xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xf(e)}function wee(e,t){if(e==null)return{};var r=_ee(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _ee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function xT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ud(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xT(Object(r),!0).forEach(function(n){See(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function See(e,t,r){return t=Aee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Aee(e){var t=Nee(e,"string");return Xf(t)=="symbol"?t:t+""}function Nee(e,t){if(Xf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tee(e,t){return Ud(Ud({},t),e)}function Eee(e,t){return e==="symbols"}function yT(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return W.createElement(v5,r);case"trapezoid":return W.createElement(yee,r);case"sector":return W.createElement(rC,r);case"symbols":if(Eee(t))return W.createElement(Ib,r);break;default:return null}}function Pee(e){return W.isValidElement(e)?e.props:e}function Oee(e){var t=e.option,r=e.shapeType,n=e.propTransformer,a=n===void 0?Tee:n,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,s=e.isActive,l=wee(e,bee),c;if(W.isValidElement(t))c=W.cloneElement(t,Ud(Ud({},l),Pee(t)));else if(jt(t))c=t(l);else if(oee(t)&&!cee(t)){var u=a(t,l);c=W.createElement(yT,{shapeType:r,elementProps:u})}else{var f=l;c=W.createElement(yT,{shapeType:r,elementProps:f})}return s?W.createElement(lr,{className:o},c):c}function Up(e,t){return t!=null&&"trapezoids"in e.props}function zp(e,t){return t!=null&&"sectors"in e.props}function Jf(e,t){return t!=null&&"points"in e.props}function jee(e,t){var r,n,a=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,i=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return a&&i}function Cee(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function kee(e,t){var r=e.x===t.x,n=e.y===t.y,a=e.z===t.z;return r&&n&&a}function Lee(e,t){var r;return Up(e,t)?r=jee:zp(e,t)?r=Cee:Jf(e,t)&&(r=kee),r}function Iee(e,t){var r;return Up(e,t)?r="trapezoids":zp(e,t)?r="sectors":Jf(e,t)&&(r="points"),r}function Fee(e,t){if(Up(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(zp(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Jf(e,t)?t.payload:{}}function Mee(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,a=Iee(r,t),i=Fee(r,t),o=n.filter(function(l,c){var u=g0(i,l),f=r.props[a].filter(function(x){var p=Lee(r,t);return p(x,t)}),d=r.props[a].indexOf(f[f.length-1]),h=c===d;return u&&h}),s=n.indexOf(o[o.length-1]);return s}var Dx,bT;function Dee(){if(bT)return Dx;bT=1;function e(t){return t&&t.length?t[0]:void 0}return Dx=e,Dx}var Rx,wT;function Ree(){return wT||(wT=1,Rx=Dee()),Rx}var Bee=Ree();const $ee=ur(Bee);var qee=["key"];function Nc(e){"@babel/helpers - typeof";return Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nc(e)}function Uee(e,t){if(e==null)return{};var r=zee(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function zd(){return zd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zd.apply(this,arguments)}function _T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_T(Object(r),!0).forEach(function(n){lo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_T(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ST(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yC(n.key),n)}}function Hee(e,t,r){return t&&ST(e.prototype,t),r&&ST(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gee(e,t,r){return t=Wd(t),Vee(e,xC()?Reflect.construct(t,r||[],Wd(e).constructor):t.apply(e,r))}function Vee(e,t){if(t&&(Nc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yee(e)}function Yee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xC=function(){return!!e})()}function Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wd(e)}function Kee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E2(e,t)}function E2(e,t){return E2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},E2(e,t)}function lo(e,t,r){return t=yC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yC(e){var t=Xee(e,"string");return Nc(t)=="symbol"?t:t+""}function Xee(e,t){if(Nc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _0=(function(e){function t(){var r;Wee(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Gee(this,t,[].concat(a)),lo(r,"state",{isAnimationFinished:!1}),lo(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),jt(o)&&o()}),lo(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),jt(o)&&o()}),lo(r,"handleMouseEnter",function(o){var s=r.props.onMouseEnter;s&&s(r.props,o)}),lo(r,"handleMouseLeave",function(o){var s=r.props.onMouseLeave;s&&s(r.props,o)}),r}return Kee(t,e),Hee(t,[{key:"renderDots",value:function(n){var a=this.props,i=a.dot,o=a.dataKey,s=bt(this.props,!1),l=bt(i,!0),c=n.map(function(u,f){var d=Jn(Jn(Jn({key:"dot-".concat(f),r:3},s),l),{},{dataKey:o,cx:u.x,cy:u.y,index:f,payload:u});return t.renderDotItem(i,d)});return W.createElement(lr,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(n){var a=this.props,i=a.shape,o=a.dot,s=a.isRange,l=a.baseLinePoints,c=a.connectNulls,u;return W.isValidElement(i)?u=W.cloneElement(i,Jn(Jn({},this.props),{},{points:n})):jt(i)?u=i(Jn(Jn({},this.props),{},{points:n})):u=W.createElement(hC,zd({},bt(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:s?l:null,connectNulls:c})),W.createElement(lr,{className:"recharts-radar-polygon"},u,o?this.renderDots(n):null)}},{key:"renderPolygonWithAnimation",value:function(){var n=this,a=this.props,i=a.points,o=a.isAnimationActive,s=a.animationBegin,l=a.animationDuration,c=a.animationEasing,u=a.animationId,f=this.state.prevPoints;return W.createElement(Ui,{begin:s,duration:l,isActive:o,easing:c,from:{t:0},to:{t:1},key:"radar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,x=f&&f.length/i.length,p=i.map(function(m,y){var b=f&&f[Math.floor(y*x)];if(b){var w=ta(b.x,m.x),S=ta(b.y,m.y);return Jn(Jn({},m),{},{x:w(h),y:S(h)})}var A=ta(m.cx,m.x),O=ta(m.cy,m.y);return Jn(Jn({},m),{},{x:A(h),y:O(h)})});return n.renderPolygonStatically(p)})}},{key:"renderPolygon",value:function(){var n=this.props,a=n.points,i=n.isAnimationActive,o=n.isRange,s=this.state.prevPoints;return i&&a&&a.length&&!o&&(!s||!g0(s,a))?this.renderPolygonWithAnimation():this.renderPolygonStatically(a)}},{key:"render",value:function(){var n=this.props,a=n.hide,i=n.className,o=n.points,s=n.isAnimationActive;if(a||!o||!o.length)return null;var l=this.state.isAnimationFinished,c=Dt("recharts-radar",i);return W.createElement(lr,{className:c},this.renderPolygon(),(!s||l)&&yo.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:a.curPoints}:n.points!==a.curPoints?{curPoints:n.points}:null}},{key:"renderDotItem",value:function(n,a){var i;if(W.isValidElement(n))i=W.cloneElement(n,a);else if(jt(n))i=n(a);else{var o=a.key,s=Uee(a,qee);i=W.createElement(y0,zd({},s,{key:o,className:Dt("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return i}}])})(W.PureComponent);lo(_0,"displayName","Radar");lo(_0,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!ll.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});lo(_0,"getComposedData",function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,a=e.dataKey,i=e.bandSize,o=r.cx,s=r.cy,l=!1,c=[],u=r.type!=="number"?i??0:0;n.forEach(function(d,h){var x=aa(d,r.dataKey,h),p=aa(d,a),m=r.scale(x)+u,y=Array.isArray(p)?eC(p):p,b=qt(y)?void 0:t.scale(y);Array.isArray(p)&&p.length>=2&&(l=!0),c.push(Jn(Jn({},_r(o,s,b,m)),{},{name:x,value:p,cx:o,cy:s,radius:b,angle:m,payload:d}))});var f=[];return l&&c.forEach(function(d){if(Array.isArray(d.value)){var h=$ee(d.value),x=qt(h)?void 0:t.scale(h);f.push(Jn(Jn({},d),{},{radius:x},_r(o,s,x,d.angle)))}else f.push(d)}),{points:c,isRange:l,baseLinePoints:f}});var Bx,AT;function Jee(){if(AT)return Bx;AT=1;var e=Math.ceil,t=Math.max;function r(n,a,i,o){for(var s=-1,l=t(e((a-n)/(i||1)),0),c=Array(l);l--;)c[o?l:++s]=n,n+=i;return c}return Bx=r,Bx}var $x,NT;function bC(){if(NT)return $x;NT=1;var e=B6(),t=1/0,r=17976931348623157e292;function n(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var i=a<0?-1:1;return i*r}return a===a?a:0}return $x=n,$x}var qx,TT;function Zee(){if(TT)return qx;TT=1;var e=Jee(),t=Pp(),r=bC();function n(a){return function(i,o,s){return s&&typeof s!="number"&&t(i,o,s)&&(o=s=void 0),i=r(i),o===void 0?(o=i,i=0):o=r(o),s=s===void 0?i<o?1:-1:r(s),e(i,o,s,a)}}return qx=n,qx}var Ux,ET;function Qee(){if(ET)return Ux;ET=1;var e=Zee(),t=e();return Ux=t,Ux}var ete=Qee();const Hd=ur(ete);function Zf(e){"@babel/helpers - typeof";return Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zf(e)}function PT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function OT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PT(Object(r),!0).forEach(function(n){wC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wC(e,t,r){return t=tte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tte(e){var t=rte(e,"string");return Zf(t)=="symbol"?t:t+""}function rte(e,t){if(Zf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nte=["Webkit","Moz","O","ms"],ate=function(t,r){var n=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=nte.reduce(function(i,o){return OT(OT({},i),{},wC({},o+n,r))},{});return a[t]=r,a};function Tc(e){"@babel/helpers - typeof";return Tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tc(e)}function Gd(){return Gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gd.apply(this,arguments)}function jT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function zx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jT(Object(r),!0).forEach(function(n){Na(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ite(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SC(n.key),n)}}function ote(e,t,r){return t&&CT(e.prototype,t),r&&CT(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ste(e,t,r){return t=Vd(t),lte(e,_C()?Reflect.construct(t,r||[],Vd(e).constructor):t.apply(e,r))}function lte(e,t){if(t&&(Tc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cte(e)}function cte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_C=function(){return!!e})()}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vd(e)}function ute(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P2(e,t)}function P2(e,t){return P2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},P2(e,t)}function Na(e,t,r){return t=SC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SC(e){var t=fte(e,"string");return Tc(t)=="symbol"?t:t+""}function fte(e,t){if(Tc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hte=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,c=of().domain(Hd(0,l)).range([i,i+o-s]),u=c.domain().map(function(f){return c(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(a),scale:c,scaleValues:u}},kT=function(t){return t.changedTouches&&!!t.changedTouches.length},Ec=(function(e){function t(r){var n;return ite(this,t),n=ste(this,t,[r]),Na(n,"handleDrag",function(a){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(a):n.state.isSlideMoving&&n.handleSlideDrag(a)}),Na(n,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&n.handleDrag(a.changedTouches[0])}),Na(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=n.props,i=a.endIndex,o=a.onDragEnd,s=a.startIndex;o==null||o({endIndex:i,startIndex:s})}),n.detachDragEndListener()}),Na(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Na(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Na(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Na(n,"handleSlideDragStart",function(a){var i=kT(a)?a.changedTouches[0]:a;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return ute(t,e),ote(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var a=n.startX,i=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,c=s.data,u=c.length-1,f=Math.min(a,i),d=Math.max(a,i),h=t.getIndexInRange(o,f),x=t.getIndexInRange(o,d);return{startIndex:h-h%l,endIndex:x===u?u:x-x%l}}},{key:"getTextOfTick",value:function(n){var a=this.props,i=a.data,o=a.tickFormatter,s=a.dataKey,l=aa(i[n],s,n);return jt(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var a=this.state,i=a.slideMoveStartX,o=a.startX,s=a.endX,l=this.props,c=l.x,u=l.width,f=l.travellerWidth,d=l.startIndex,h=l.endIndex,x=l.onChange,p=n.pageX-i;p>0?p=Math.min(p,c+u-f-s,c+u-f-o):p<0&&(p=Math.max(p,c-o,c-s));var m=this.getIndex({startX:o+p,endX:s+p});(m.startIndex!==d||m.endIndex!==h)&&x&&x(m),this.setState({startX:o+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,a){var i=kT(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var a=this.state,i=a.brushMoveStartX,o=a.movingTravellerId,s=a.endX,l=a.startX,c=this.state[o],u=this.props,f=u.x,d=u.width,h=u.travellerWidth,x=u.onChange,p=u.gap,m=u.data,y={startX:this.state.startX,endX:this.state.endX},b=n.pageX-i;b>0?b=Math.min(b,f+d-h-c):b<0&&(b=Math.max(b,f-c)),y[o]=c+b;var w=this.getIndex(y),S=w.startIndex,A=w.endIndex,O=function(){var C=m.length-1;return o==="startX"&&(s>l?S%p===0:A%p===0)||s<l&&A===C||o==="endX"&&(s>l?A%p===0:S%p===0)||s>l&&A===C};this.setState(Na(Na({},o,c+b),"brushMoveStartX",n.pageX),function(){x&&O()&&x(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,a){var i=this,o=this.state,s=o.scaleValues,l=o.startX,c=o.endX,u=this.state[a],f=s.indexOf(u);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var h=s[d];a==="startX"&&h>=c||a==="endX"&&h<=l||this.setState(Na({},a,h),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,s=n.height,l=n.fill,c=n.stroke;return W.createElement("rect",{stroke:c,fill:l,x:a,y:i,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,s=n.height,l=n.data,c=n.children,u=n.padding,f=W.Children.only(c);return f?W.cloneElement(f,{x:a,y:i,width:o,height:s,margin:u,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,a){var i,o,s=this,l=this.props,c=l.y,u=l.travellerWidth,f=l.height,d=l.traveller,h=l.ariaLabel,x=l.data,p=l.startIndex,m=l.endIndex,y=Math.max(n,this.props.x),b=zx(zx({},bt(this.props,!1)),{},{x:y,y:c,width:u,height:f}),w=h||"Min value: ".concat((i=x[p])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=x[m])===null||o===void 0?void 0:o.name);return W.createElement(lr,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),s.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,a))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,b))}},{key:"renderSlide",value:function(n,a){var i=this.props,o=i.y,s=i.height,l=i.stroke,c=i.travellerWidth,u=Math.min(n,a)+c,f=Math.max(Math.abs(a-n)-c,0);return W.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:u,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,a=n.startIndex,i=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,c=n.stroke,u=this.state,f=u.startX,d=u.endX,h=5,x={pointerEvents:"none",fill:c};return W.createElement(lr,{className:"recharts-brush-texts"},W.createElement(gc,Gd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},x),this.getTextOfTick(a)),W.createElement(gc,Gd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+l+h,y:o+s/2},x),this.getTextOfTick(i)))}},{key:"render",value:function(){var n=this.props,a=n.data,i=n.className,o=n.children,s=n.x,l=n.y,c=n.width,u=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,x=d.endX,p=d.isTextActive,m=d.isSlideMoving,y=d.isTravellerMoving,b=d.isTravellerFocused;if(!a||!a.length||!nt(s)||!nt(l)||!nt(c)||!nt(u)||c<=0||u<=0)return null;var w=Dt("recharts-brush",i),S=W.Children.count(o)===1,A=ate("userSelect","none");return W.createElement(lr,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(h,x),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(x,"endX"),(p||m||y||b||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var a=n.x,i=n.y,o=n.width,s=n.height,l=n.stroke,c=Math.floor(i+s/2)-1;return W.createElement(W.Fragment,null,W.createElement("rect",{x:a,y:i,width:o,height:s,fill:l,stroke:"none"}),W.createElement("line",{x1:a+1,y1:c,x2:a+o-1,y2:c,fill:"none",stroke:"#fff"}),W.createElement("line",{x1:a+1,y1:c+2,x2:a+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,a){var i;return W.isValidElement(n)?i=W.cloneElement(n,a):jt(n)?i=n(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(n,a){var i=n.data,o=n.width,s=n.x,l=n.travellerWidth,c=n.updateId,u=n.startIndex,f=n.endIndex;if(i!==a.prevData||c!==a.prevUpdateId)return zx({prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:o},i&&i.length?hte({data:i,width:o,x:s,travellerWidth:l,startIndex:u,endIndex:f}):{scale:null,scaleValues:null});if(a.scale&&(o!==a.prevWidth||s!==a.prevX||l!==a.prevTravellerWidth)){a.scale.range([s,s+o-l]);var d=a.scale.domain().map(function(h){return a.scale(h)});return{prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:o,startX:a.scale(n.startIndex),endX:a.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,a){for(var i=n.length,o=0,s=i-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>a?s=l:o=l}return a>=n[s]?s:o}}])})(W.PureComponent);Na(Ec,"displayName","Brush");Na(Ec,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Wx,LT;function dte(){if(LT)return Wx;LT=1;var e=qb();function t(r,n){var a;return e(r,function(i,o,s){return a=n(i,o,s),!a}),!!a}return Wx=t,Wx}var Hx,IT;function pte(){if(IT)return Hx;IT=1;var e=v6(),t=Hi(),r=dte(),n=ga(),a=Pp();function i(o,s,l){var c=n(o)?e:r;return l&&a(o,s,l)&&(s=void 0),c(o,t(s,3))}return Hx=i,Hx}var mte=pte();const vte=ur(mte);var Bi=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},Gx,FT;function gte(){if(FT)return Gx;FT=1;var e=I6();function t(r,n,a){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[n]=a}return Gx=t,Gx}var Vx,MT;function xte(){if(MT)return Vx;MT=1;var e=gte(),t=k6(),r=Hi();function n(a,i){var o={};return i=r(i,3),t(a,function(s,l,c){e(o,l,i(s,l,c))}),o}return Vx=n,Vx}var yte=xte();const bte=ur(yte);var Yx,DT;function wte(){if(DT)return Yx;DT=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(!r(t[n],n,t))return!1;return!0}return Yx=e,Yx}var Kx,RT;function _te(){if(RT)return Kx;RT=1;var e=qb();function t(r,n){var a=!0;return e(r,function(i,o,s){return a=!!n(i,o,s),a}),a}return Kx=t,Kx}var Xx,BT;function Ste(){if(BT)return Xx;BT=1;var e=wte(),t=_te(),r=Hi(),n=ga(),a=Pp();function i(o,s,l){var c=n(o)?e:t;return l&&a(o,s,l)&&(s=void 0),c(o,r(s,3))}return Xx=i,Xx}var Ate=Ste();const AC=ur(Ate);var Nte=["x","y"];function Pc(e){"@babel/helpers - typeof";return Pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pc(e)}function O2(){return O2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O2.apply(this,arguments)}function $T(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Uu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$T(Object(r),!0).forEach(function(n){Tte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$T(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tte(e,t,r){return t=Ete(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ete(e){var t=Pte(e,"string");return Pc(t)=="symbol"?t:t+""}function Pte(e,t){if(Pc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ote(e,t){if(e==null)return{};var r=jte(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Cte(e,t){var r=e.x,n=e.y,a=Ote(e,Nte),i="".concat(r),o=parseInt(i,10),s="".concat(n),l=parseInt(s,10),c="".concat(t.height||a.height),u=parseInt(c,10),f="".concat(t.width||a.width),d=parseInt(f,10);return Uu(Uu(Uu(Uu(Uu({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:u,width:d,name:t.name,radius:t.radius})}function qT(e){return W.createElement(Oee,O2({shapeType:"rectangle",propTransformer:Cte,activeClassName:"recharts-active-bar"},e))}var kte=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,a){if(typeof t=="number")return t;var i=nt(n)||Pq(n);return i?t(n,a):(i||(process.env.NODE_ENV!=="production"?ha(!1,"minPointSize callback function received a value with type of ".concat(Pc(n),". Currently only numbers or null/undefined are supported.")):ha()),r)}},Lte=["value","background"],NC;function Oc(e){"@babel/helpers - typeof";return Oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oc(e)}function Ite(e,t){if(e==null)return{};var r=Fte(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Yd(){return Yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yd.apply(this,arguments)}function UT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function nn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UT(Object(r),!0).forEach(function(n){rs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,EC(n.key),n)}}function Dte(e,t,r){return t&&zT(e.prototype,t),r&&zT(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rte(e,t,r){return t=Kd(t),Bte(e,TC()?Reflect.construct(t,r||[],Kd(e).constructor):t.apply(e,r))}function Bte(e,t){if(t&&(Oc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $te(e)}function $te(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TC=function(){return!!e})()}function Kd(e){return Kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kd(e)}function qte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j2(e,t)}function j2(e,t){return j2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},j2(e,t)}function rs(e,t,r){return t=EC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EC(e){var t=Ute(e,"string");return Oc(t)=="symbol"?t:t+""}function Ute(e,t){if(Oc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hl=(function(e){function t(){var r;Mte(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Rte(this,t,[].concat(a)),rs(r,"state",{isAnimationFinished:!1}),rs(r,"id",f0("recharts-bar-")),rs(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),rs(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return qte(t,e),Dte(t,[{key:"renderRectanglesStatically",value:function(n){var a=this,i=this.props,o=i.shape,s=i.dataKey,l=i.activeIndex,c=i.activeBar,u=bt(this.props,!1);return n&&n.map(function(f,d){var h=d===l,x=h?c:o,p=nn(nn(nn({},u),f),{},{isActive:h,option:x,index:d,dataKey:s,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return W.createElement(lr,Yd({className:"recharts-bar-rectangle"},fc(a.props,f,d),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(d)}),W.createElement(qT,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,a=this.props,i=a.data,o=a.layout,s=a.isAnimationActive,l=a.animationBegin,c=a.animationDuration,u=a.animationEasing,f=a.animationId,d=this.state.prevData;return W.createElement(Ui,{begin:l,duration:c,isActive:s,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var x=h.t,p=i.map(function(m,y){var b=d&&d[y];if(b){var w=ta(b.x,m.x),S=ta(b.y,m.y),A=ta(b.width,m.width),O=ta(b.height,m.height);return nn(nn({},m),{},{x:w(x),y:S(x),width:A(x),height:O(x)})}if(o==="horizontal"){var N=ta(0,m.height),C=N(x);return nn(nn({},m),{},{y:m.y+m.height-C,height:C})}var L=ta(0,m.width),R=L(x);return nn(nn({},m),{},{width:R})});return W.createElement(lr,null,n.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var n=this.props,a=n.data,i=n.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!g0(o,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var n=this,a=this.props,i=a.data,o=a.dataKey,s=a.activeIndex,l=bt(this.props.background,!1);return i.map(function(c,u){c.value;var f=c.background,d=Ite(c,Lte);if(!f)return null;var h=nn(nn(nn(nn(nn({},d),{},{fill:"#eee"},f),l),fc(n.props,c,u)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:u,className:"recharts-bar-background-rectangle"});return W.createElement(qT,Yd({key:"background-bar-".concat(u),option:n.props.background,isActive:u===s},h))})}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,s=i.xAxis,l=i.yAxis,c=i.layout,u=i.children,f=Xa(u,x0);if(!f)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,h=function(m,y){var b=Array.isArray(m.value)?m.value[1]:m.value;return{x:m.x,y:m.y,value:b,errorVal:aa(m,y)}},x={clipPath:n?"url(#clipPath-".concat(a,")"):null};return W.createElement(lr,x,f.map(function(p){return W.cloneElement(p,{key:"error-bar-".concat(a,"-").concat(p.props.dataKey),data:o,xAxis:s,yAxis:l,layout:c,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,a=n.hide,i=n.data,o=n.className,s=n.xAxis,l=n.yAxis,c=n.left,u=n.top,f=n.width,d=n.height,h=n.isAnimationActive,x=n.background,p=n.id;if(a||!i||!i.length)return null;var m=this.state.isAnimationFinished,y=Dt("recharts-bar",o),b=s&&s.allowDataOverflow,w=l&&l.allowDataOverflow,S=b||w,A=qt(p)?this.id:p;return W.createElement(lr,{className:y},b||w?W.createElement("defs",null,W.createElement("clipPath",{id:"clipPath-".concat(A)},W.createElement("rect",{x:b?c:c-f/2,y:w?u:u-d/2,width:b?f:f*2,height:w?d:d*2}))):null,W.createElement(lr,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(A,")"):null},x?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,A),(!h||m)&&yo.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:a.curData}:n.data!==a.curData?{curData:n.data}:null}}])})(W.PureComponent);NC=hl;rs(hl,"displayName","Bar");rs(hl,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ll.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});rs(hl,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,a=e.bandSize,i=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,f=e.displayedData,d=e.offset,h=WK(n,r);if(!h)return null;var x=t.layout,p=r.type.defaultProps,m=p!==void 0?nn(nn({},p),r.props):r.props,y=m.dataKey,b=m.children,w=m.minPointSize,S=x==="horizontal"?o:i,A=c?S.scale.domain():null,O=JK({numericAxis:S}),N=Xa(b,q6),C=f.map(function(L,R){var j,E,D,U,H,B;c?j=HK(c[u+R],A):(j=aa(L,y),Array.isArray(j)||(j=[O,j]));var z=kte(w,NC.defaultProps.minPointSize)(j[1],R);if(x==="horizontal"){var te,Z=[o.scale(j[0]),o.scale(j[1])],ee=Z[0],ce=Z[1];E=sN({axis:i,ticks:s,bandSize:a,offset:h.offset,entry:L,index:R}),D=(te=ce??ee)!==null&&te!==void 0?te:void 0,U=h.size;var P=ee-ce;if(H=Number.isNaN(P)?0:P,B={x:E,y:o.y,width:U,height:o.height},Math.abs(z)>0&&Math.abs(H)<Math.abs(z)){var I=yi(H||z)*(Math.abs(z)-Math.abs(H));D-=I,H+=I}}else{var M=[i.scale(j[0]),i.scale(j[1])],q=M[0],Y=M[1];if(E=q,D=sN({axis:o,ticks:l,bandSize:a,offset:h.offset,entry:L,index:R}),U=Y-q,H=h.size,B={x:i.x,y:D,width:i.width,height:H},Math.abs(z)>0&&Math.abs(U)<Math.abs(z)){var fe=yi(U||z)*(Math.abs(z)-Math.abs(U));U+=fe}}return nn(nn(nn({},L),{},{x:E,y:D,width:U,height:H,value:c?j:j[1],payload:L,background:B},N&&N[R]&&N[R].props),{},{tooltipPayload:[Xj(r,L)],tooltipPosition:{x:E+U/2,y:D+H/2}})});return nn({data:C,layout:x},d)});function Qf(e){"@babel/helpers - typeof";return Qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qf(e)}function zte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,PC(n.key),n)}}function Wte(e,t,r){return t&&WT(e.prototype,t),r&&WT(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function HT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HT(Object(r),!0).forEach(function(n){Wp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wp(e,t,r){return t=PC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PC(e){var t=Hte(e,"string");return Qf(t)=="symbol"?t:t+""}function Hte(e,t){if(Qf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var OC=function(t,r,n,a,i){var o=t.width,s=t.height,l=t.layout,c=t.children,u=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!Ea(c,hl);return u.reduce(function(h,x){var p=r[x],m=p.orientation,y=p.domain,b=p.padding,w=b===void 0?{}:b,S=p.mirror,A=p.reversed,O="".concat(m).concat(S?"Mirror":""),N,C,L,R,j;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var E=y[1]-y[0],D=1/0,U=p.categoricalDomain.sort(Cq);if(U.forEach(function(M,q){q>0&&(D=Math.min((M||0)-(U[q-1]||0),D))}),Number.isFinite(D)){var H=D/E,B=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(N=H*B/2),p.padding==="no-gap"){var z=bi(t.barCategoryGap,H*B),te=H*B/2;N=te-z-(te-z)/B*z}}}a==="xAxis"?C=[n.left+(w.left||0)+(N||0),n.left+n.width-(w.right||0)-(N||0)]:a==="yAxis"?C=l==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(N||0),n.top+n.height-(w.bottom||0)-(N||0)]:C=p.range,A&&(C=[C[1],C[0]]);var Z=Gj(p,i,d),ee=Z.scale,ce=Z.realScaleType;ee.domain(y).range(C),Vj(ee);var P=Yj(ee,pi(pi({},p),{},{realScaleType:ce}));a==="xAxis"?(j=m==="top"&&!S||m==="bottom"&&S,L=n.left,R=f[O]-j*p.height):a==="yAxis"&&(j=m==="left"&&!S||m==="right"&&S,L=f[O]-j*p.width,R=n.top);var I=pi(pi(pi({},p),P),{},{realScaleType:ce,x:L,y:R,scale:ee,width:a==="xAxis"?n.width:p.width,height:a==="yAxis"?n.height:p.height});return I.bandSize=jd(I,P),!p.hide&&a==="xAxis"?f[O]+=(j?-1:1)*I.height:p.hide||(f[O]+=(j?-1:1)*I.width),pi(pi({},h),{},Wp({},x,I))},{})},jC=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},Gte=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return jC({x:r,y:n},{x:a,y:i})},CC=(function(){function e(t){zte(this,e),this.scale=t}return Wte(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}])})();Wp(CC,"EPS",1e-4);var g5=function(t){var r=Object.keys(t).reduce(function(n,a){return pi(pi({},n),{},Wp({},a,CC.create(t[a])))},{});return pi(pi({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,s=i.position;return bte(a,function(l,c){return r[c].apply(l,{bandAware:o,position:s})})},isInRange:function(a){return AC(a,function(i,o){return r[o].isInRange(i)})}})};function Vte(e){return(e%180+180)%180}var Yte=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Vte(a),o=i*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},Jx,GT;function Kte(){if(GT)return Jx;GT=1;var e=Hi(),t=h0(),r=Tp();function n(a){return function(i,o,s){var l=Object(i);if(!t(i)){var c=e(o,3);i=r(i),o=function(f){return c(l[f],f,l)}}var u=a(i,o,s);return u>-1?l[c?i[u]:u]:void 0}}return Jx=n,Jx}var Zx,VT;function Xte(){if(VT)return Zx;VT=1;var e=bC();function t(r){var n=e(r),a=n%1;return n===n?a?n-a:n:0}return Zx=t,Zx}var Qx,YT;function Jte(){if(YT)return Qx;YT=1;var e=E6(),t=Hi(),r=Xte(),n=Math.max;function a(i,o,s){var l=i==null?0:i.length;if(!l)return-1;var c=s==null?0:r(s);return c<0&&(c=n(l+c,0)),e(i,t(o,3),c)}return Qx=a,Qx}var ey,KT;function Zte(){if(KT)return ey;KT=1;var e=Kte(),t=Jte(),r=e(t);return ey=r,ey}var Qte=Zte();const ere=ur(Qte);var tre=zO();const rre=ur(tre);var nre=rre(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function Xd(e){"@babel/helpers - typeof";return Xd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xd(e)}var x5=W.createContext(void 0),y5=W.createContext(void 0),kC=W.createContext(void 0),LC=W.createContext({}),IC=W.createContext(void 0),FC=W.createContext(0),MC=W.createContext(0),XT=function(t){var r=t.state,n=r.xAxisMap,a=r.yAxisMap,i=r.offset,o=t.clipPathId,s=t.children,l=t.width,c=t.height,u=nre(i);return W.createElement(x5.Provider,{value:n},W.createElement(y5.Provider,{value:a},W.createElement(LC.Provider,{value:i},W.createElement(kC.Provider,{value:u},W.createElement(IC.Provider,{value:o},W.createElement(FC.Provider,{value:c},W.createElement(MC.Provider,{value:l},s)))))))},are=function(){return W.useContext(IC)};function DC(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var RC=function(t){var r=W.useContext(x5);r==null&&(process.env.NODE_ENV!=="production"?ha(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):ha());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?ha(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Xd(t),"]. ").concat(DC(r))):ha()),n},ire=function(){var t=W.useContext(x5);return Zo(t)},ore=function(){var t=W.useContext(y5),r=ere(t,function(n){return AC(n.domain,Number.isFinite)});return r||Zo(t)},BC=function(t){var r=W.useContext(y5);r==null&&(process.env.NODE_ENV!=="production"?ha(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):ha());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?ha(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Xd(t),"]. ").concat(DC(r))):ha()),n},sre=function(){var t=W.useContext(kC);return t},lre=function(){return W.useContext(LC)},b5=function(){return W.useContext(MC)},w5=function(){return W.useContext(FC)};function jc(e){"@babel/helpers - typeof";return jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(e)}function cre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ure(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qC(n.key),n)}}function fre(e,t,r){return t&&ure(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hre(e,t,r){return t=Jd(t),dre(e,$C()?Reflect.construct(t,r||[],Jd(e).constructor):t.apply(e,r))}function dre(e,t){if(t&&(jc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pre(e)}function pre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($C=function(){return!!e})()}function Jd(e){return Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jd(e)}function mre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C2(e,t)}function C2(e,t){return C2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},C2(e,t)}function JT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ZT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JT(Object(r),!0).forEach(function(n){_5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _5(e,t,r){return t=qC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qC(e){var t=vre(e,"string");return jc(t)=="symbol"?t:t+""}function vre(e,t){if(jc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function gre(e,t){return wre(e)||bre(e,t)||yre(e,t)||xre()}function xre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
440
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yre(e,t){if(e){if(typeof e=="string")return QT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return QT(e,t)}}function QT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bre(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function wre(e){if(Array.isArray(e))return e}function k2(){return k2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},k2.apply(this,arguments)}var _re=function(t,r){var n;return W.isValidElement(t)?n=W.cloneElement(t,r):jt(t)?n=t(r):n=W.createElement("line",k2({},r,{className:"recharts-reference-line-line"})),n},Sre=function(t,r,n,a,i,o,s,l,c){var u=i.x,f=i.y,d=i.width,h=i.height;if(n){var x=c.y,p=t.y.apply(x,{position:o});if(Bi(c,"discard")&&!t.y.isInRange(p))return null;var m=[{x:u+d,y:p},{x:u,y:p}];return l==="left"?m.reverse():m}if(r){var y=c.x,b=t.x.apply(y,{position:o});if(Bi(c,"discard")&&!t.x.isInRange(b))return null;var w=[{x:b,y:f+h},{x:b,y:f}];return s==="top"?w.reverse():w}if(a){var S=c.segment,A=S.map(function(O){return t.apply(O,{position:o})});return Bi(c,"discard")&&vte(A,function(O){return!t.isInRange(O)})?null:A}return null};function Are(e){var t=e.x,r=e.y,n=e.segment,a=e.xAxisId,i=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,c=are(),u=RC(a),f=BC(i),d=sre();if(!c||!d)return null;go(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=g5({x:u.scale,y:f.scale}),x=pn(t),p=pn(r),m=n&&n.length===2,y=Sre(h,x,p,m,d,e.position,u.orientation,f.orientation,e);if(!y)return null;var b=gre(y,2),w=b[0],S=w.x,A=w.y,O=b[1],N=O.x,C=O.y,L=Bi(e,"hidden")?"url(#".concat(c,")"):void 0,R=ZT(ZT({clipPath:L},bt(e,!0)),{},{x1:S,y1:A,x2:N,y2:C});return W.createElement(lr,{className:Dt("recharts-reference-line",s)},_re(o,R),jn.renderCallByParent(e,Gte({x1:S,y1:A,x2:N,y2:C})))}var S5=(function(e){function t(){return cre(this,t),hre(this,t,arguments)}return mre(t,e),fre(t,[{key:"render",value:function(){return W.createElement(Are,this.props)}}])})(W.Component);_5(S5,"displayName","ReferenceLine");_5(S5,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function L2(){return L2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},L2.apply(this,arguments)}function Cc(e){"@babel/helpers - typeof";return Cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cc(e)}function eE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eE(Object(r),!0).forEach(function(n){Hp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tre(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zC(n.key),n)}}function Ere(e,t,r){return t&&Tre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pre(e,t,r){return t=Zd(t),Ore(e,UC()?Reflect.construct(t,r||[],Zd(e).constructor):t.apply(e,r))}function Ore(e,t){if(t&&(Cc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jre(e)}function jre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UC=function(){return!!e})()}function Zd(e){return Zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zd(e)}function Cre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I2(e,t)}function I2(e,t){return I2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},I2(e,t)}function Hp(e,t,r){return t=zC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zC(e){var t=kre(e,"string");return Cc(t)=="symbol"?t:t+""}function kre(e,t){if(Cc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Lre=function(t){var r=t.x,n=t.y,a=t.xAxis,i=t.yAxis,o=g5({x:a.scale,y:i.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Bi(t,"discard")&&!o.isInRange(s)?null:s},Gp=(function(e){function t(){return Nre(this,t),Pre(this,t,arguments)}return Cre(t,e),Ere(t,[{key:"render",value:function(){var n=this.props,a=n.x,i=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,c=pn(a),u=pn(i);if(go(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var f=Lre(this.props);if(!f)return null;var d=f.x,h=f.y,x=this.props,p=x.shape,m=x.className,y=Bi(this.props,"hidden")?"url(#".concat(l,")"):void 0,b=tE(tE({clipPath:y},bt(this.props,!0)),{},{cx:d,cy:h});return W.createElement(lr,{className:Dt("recharts-reference-dot",m)},t.renderDot(p,b),jn.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(W.Component);Hp(Gp,"displayName","ReferenceDot");Hp(Gp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Hp(Gp,"renderDot",function(e,t){var r;return W.isValidElement(e)?r=W.cloneElement(e,t):jt(e)?r=e(t):r=W.createElement(y0,L2({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function F2(){return F2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},F2.apply(this,arguments)}function kc(e){"@babel/helpers - typeof";return kc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kc(e)}function rE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function nE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rE(Object(r),!0).forEach(function(n){Vp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ire(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fre(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,HC(n.key),n)}}function Mre(e,t,r){return t&&Fre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dre(e,t,r){return t=Qd(t),Rre(e,WC()?Reflect.construct(t,r||[],Qd(e).constructor):t.apply(e,r))}function Rre(e,t){if(t&&(kc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bre(e)}function Bre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WC=function(){return!!e})()}function Qd(e){return Qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qd(e)}function $re(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M2(e,t)}function M2(e,t){return M2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},M2(e,t)}function Vp(e,t,r){return t=HC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HC(e){var t=qre(e,"string");return kc(t)=="symbol"?t:t+""}function qre(e,t){if(kc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ure=function(t,r,n,a,i){var o=i.x1,s=i.x2,l=i.y1,c=i.y2,u=i.xAxis,f=i.yAxis;if(!u||!f)return null;var d=g5({x:u.scale,y:f.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},x={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:a?d.y.apply(c,{position:"end"}):d.y.rangeMax};return Bi(i,"discard")&&(!d.isInRange(h)||!d.isInRange(x))?null:jC(h,x)},Yp=(function(e){function t(){return Ire(this,t),Dre(this,t,arguments)}return $re(t,e),Mre(t,[{key:"render",value:function(){var n=this.props,a=n.x1,i=n.x2,o=n.y1,s=n.y2,l=n.className,c=n.alwaysShow,u=n.clipPathId;go(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=pn(a),d=pn(i),h=pn(o),x=pn(s),p=this.props.shape;if(!f&&!d&&!h&&!x&&!p)return null;var m=Ure(f,d,h,x,this.props);if(!m&&!p)return null;var y=Bi(this.props,"hidden")?"url(#".concat(u,")"):void 0;return W.createElement(lr,{className:Dt("recharts-reference-area",l)},t.renderRect(p,nE(nE({clipPath:y},bt(this.props,!0)),m)),jn.renderCallByParent(this.props,m))}}])})(W.Component);Vp(Yp,"displayName","ReferenceArea");Vp(Yp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Vp(Yp,"renderRect",function(e,t){var r;return W.isValidElement(e)?r=W.cloneElement(e,t):jt(e)?r=e(t):r=W.createElement(v5,F2({},t,{className:"recharts-reference-area-rect"})),r});function GC(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],a=0;a<e.length;a+=t)n.push(e[a]);return n}function zre(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Yte(n,r)}function Wre(e,t,r){var n=r==="width",a=e.x,i=e.y,o=e.width,s=e.height;return t===1?{start:n?a:i,end:n?a+o:i+s}:{start:n?a+o:i+s,end:n?a:i}}function ep(e,t,r,n,a){if(e*t<e*n||e*t>e*a)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-a)<=0}function Hre(e,t){return GC(e,t+1)}function Gre(e,t,r,n,a){for(var i=(n||[]).slice(),o=t.start,s=t.end,l=0,c=1,u=o,f=function(){var x=n==null?void 0:n[l];if(x===void 0)return{v:GC(n,c)};var p=l,m,y=function(){return m===void 0&&(m=r(x,p)),m},b=x.coordinate,w=l===0||ep(e,b,y,u,s);w||(l=0,u=o,c+=1),w&&(u=b+e*(y()/2+a),l+=c)},d;c<=i.length;)if(d=f(),d)return d.v;return[]}function e0(e){"@babel/helpers - typeof";return e0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e0(e)}function aE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Un(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aE(Object(r),!0).forEach(function(n){Vre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vre(e,t,r){return t=Yre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yre(e){var t=Kre(e,"string");return e0(t)=="symbol"?t:t+""}function Kre(e,t){if(e0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(e0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xre(e,t,r,n,a){for(var i=(n||[]).slice(),o=i.length,s=t.start,l=t.end,c=function(d){var h=i[d],x,p=function(){return x===void 0&&(x=r(h,d)),x};if(d===o-1){var m=e*(h.coordinate+e*p()/2-l);i[d]=h=Un(Un({},h),{},{tickCoord:m>0?h.coordinate-m*e:h.coordinate})}else i[d]=h=Un(Un({},h),{},{tickCoord:h.coordinate});var y=ep(e,h.tickCoord,p,s,l);y&&(l=h.tickCoord-e*(p()/2+a),i[d]=Un(Un({},h),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return i}function Jre(e,t,r,n,a,i){var o=(n||[]).slice(),s=o.length,l=t.start,c=t.end;if(i){var u=n[s-1],f=r(u,s-1),d=e*(u.coordinate+e*f/2-c);o[s-1]=u=Un(Un({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate});var h=ep(e,u.tickCoord,function(){return f},l,c);h&&(c=u.tickCoord-e*(f/2+a),o[s-1]=Un(Un({},u),{},{isShow:!0}))}for(var x=i?s-1:s,p=function(b){var w=o[b],S,A=function(){return S===void 0&&(S=r(w,b)),S};if(b===0){var O=e*(w.coordinate-e*A()/2-l);o[b]=w=Un(Un({},w),{},{tickCoord:O<0?w.coordinate-O*e:w.coordinate})}else o[b]=w=Un(Un({},w),{},{tickCoord:w.coordinate});var N=ep(e,w.tickCoord,A,l,c);N&&(l=w.tickCoord+e*(A()/2+a),o[b]=Un(Un({},w),{},{isShow:!0}))},m=0;m<x;m++)p(m);return o}function A5(e,t,r){var n=e.tick,a=e.ticks,i=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,f=e.angle;if(!a||!a.length||!n)return[];if(nt(l)||ll.isSsr)return Hre(a,typeof l=="number"&&nt(l)?l:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",x=u&&h==="width"?af(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(w,S){var A=jt(c)?c(w.value,S):w.value;return h==="width"?zre(af(A,{fontSize:t,letterSpacing:r}),x,f):af(A,{fontSize:t,letterSpacing:r})[h]},m=a.length>=2?yi(a[1].coordinate-a[0].coordinate):1,y=Wre(i,m,h);return l==="equidistantPreserveStart"?Gre(m,y,p,a,o):(l==="preserveStart"||l==="preserveStartEnd"?d=Jre(m,y,p,a,o,l==="preserveStartEnd"):d=Xre(m,y,p,a,o),d.filter(function(b){return b.isShow}))}var Zre=["viewBox"],Qre=["viewBox"],ene=["ticks"];function Lc(e){"@babel/helpers - typeof";return Lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lc(e)}function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ec.apply(this,arguments)}function iE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function un(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iE(Object(r),!0).forEach(function(n){N5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ty(e,t){if(e==null)return{};var r=tne(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tne(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YC(n.key),n)}}function nne(e,t,r){return t&&oE(e.prototype,t),r&&oE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ane(e,t,r){return t=tp(t),ine(e,VC()?Reflect.construct(t,r||[],tp(e).constructor):t.apply(e,r))}function ine(e,t){if(t&&(Lc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return one(e)}function one(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VC=function(){return!!e})()}function tp(e){return tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tp(e)}function sne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D2(e,t)}function D2(e,t){return D2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},D2(e,t)}function N5(e,t,r){return t=YC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YC(e){var t=lne(e,"string");return Lc(t)=="symbol"?t:t+""}function lne(e,t){if(Lc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qc=(function(e){function t(r){var n;return rne(this,t),n=ane(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return sne(t,e),nne(t,[{key:"shouldComponentUpdate",value:function(n,a){var i=n.viewBox,o=ty(n,Zre),s=this.props,l=s.viewBox,c=ty(s,Qre);return!sc(i,l)||!sc(o,c)||!sc(a,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var a=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.orientation,u=a.tickSize,f=a.mirror,d=a.tickMargin,h,x,p,m,y,b,w=f?-1:1,S=n.tickSize||u,A=nt(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":h=x=n.coordinate,m=o+ +!f*l,p=m-w*S,b=p-w*d,y=A;break;case"left":p=m=n.coordinate,x=i+ +!f*s,h=x-w*S,y=h-w*d,b=A;break;case"right":p=m=n.coordinate,x=i+ +f*s,h=x+w*S,y=h+w*d,b=A;break;default:h=x=n.coordinate,m=o+ +f*l,p=m+w*S,b=p+w*d,y=A;break}return{line:{x1:h,y1:p,x2:x,y2:m},tick:{x:y,y:b}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,o;switch(a){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,a=n.orientation,i=n.mirror,o="end";switch(a){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.x,i=n.y,o=n.width,s=n.height,l=n.orientation,c=n.mirror,u=n.axisLine,f=un(un(un({},bt(this.props,!1)),bt(u,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!c||l==="bottom"&&c);f=un(un({},f),{},{x1:a,y1:i+d*s,x2:a+o,y2:i+d*s})}else{var h=+(l==="left"&&!c||l==="right"&&c);f=un(un({},f),{},{x1:a+h*o,y1:i,x2:a+h*o,y2:i+s})}return W.createElement("line",ec({},f,{className:Dt("recharts-cartesian-axis-line",Ka(u,"className"))}))}},{key:"renderTicks",value:function(n,a,i){var o=this,s=this.props,l=s.tickLine,c=s.stroke,u=s.tick,f=s.tickFormatter,d=s.unit,h=A5(un(un({},this.props),{},{ticks:n}),a,i),x=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),m=bt(this.props,!1),y=bt(u,!1),b=un(un({},m),{},{fill:"none"},bt(l,!1)),w=h.map(function(S,A){var O=o.getTickLineCoord(S),N=O.line,C=O.tick,L=un(un(un(un({textAnchor:x,verticalAnchor:p},m),{},{stroke:"none",fill:c},y),C),{},{index:A,payload:S,visibleTicksCount:h.length,tickFormatter:f});return W.createElement(lr,ec({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},fc(o.props,S,A)),l&&W.createElement("line",ec({},b,N,{className:Dt("recharts-cartesian-axis-tick-line",Ka(l,"className"))})),u&&t.renderTickItem(u,L,"".concat(jt(f)?f(S.value,A):S.value).concat(d||"")))});return W.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,a=this.props,i=a.axisLine,o=a.width,s=a.height,l=a.ticksGenerator,c=a.className,u=a.hide;if(u)return null;var f=this.props,d=f.ticks,h=ty(f,ene),x=d;return jt(l)&&(x=d&&d.length>0?l(this.props):l(h)),o<=0||s<=0||!x||!x.length?null:W.createElement(lr,{className:Dt("recharts-cartesian-axis",c),ref:function(m){n.layerReference=m}},i&&this.renderAxisLine(),this.renderTicks(x,this.state.fontSize,this.state.letterSpacing),jn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,a,i){var o,s=Dt(a.className,"recharts-cartesian-axis-tick-value");return W.isValidElement(n)?o=W.cloneElement(n,un(un({},a),{},{className:s})):jt(n)?o=n(un(un({},a),{},{className:s})):o=W.createElement(gc,ec({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])})(W.Component);N5(Qc,"displayName","CartesianAxis");N5(Qc,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var cne=["x1","y1","x2","y2","key"],une=["offset"];function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function sE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function zn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sE(Object(r),!0).forEach(function(n){fne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fne(e,t,r){return t=hne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hne(e){var t=dne(e,"string");return el(t)=="symbol"?t:t+""}function dne(e,t){if(el(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(el(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bs(){return Bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bs.apply(this,arguments)}function lE(e,t){if(e==null)return{};var r=pne(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pne(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var mne=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,a=t.x,i=t.y,o=t.width,s=t.height,l=t.ry;return W.createElement("rect",{x:a,y:i,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function KC(e,t){var r;if(W.isValidElement(e))r=W.cloneElement(e,t);else if(jt(e))r=e(t);else{var n=t.x1,a=t.y1,i=t.x2,o=t.y2,s=t.key,l=lE(t,cne),c=bt(l,!1);c.offset;var u=lE(c,une);r=W.createElement("line",Bs({},u,{x1:n,y1:a,x2:i,y2:o,fill:"none",key:s}))}return r}function vne(e){var t=e.x,r=e.width,n=e.horizontal,a=n===void 0?!0:n,i=e.horizontalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(s,l){var c=zn(zn({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return KC(a,c)});return W.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function gne(e){var t=e.y,r=e.height,n=e.vertical,a=n===void 0?!0:n,i=e.verticalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(s,l){var c=zn(zn({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return KC(a,c)});return W.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function xne(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,a=e.y,i=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var u=s.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==u[0]&&u.unshift(0);var f=u.map(function(d,h){var x=!u[h+1],p=x?a+o-d:u[h+1]-d;if(p<=0)return null;var m=h%t.length;return W.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:i,stroke:"none",fill:t[m],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return W.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function yne(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,a=e.fillOpacity,i=e.x,o=e.y,s=e.width,l=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var u=c.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==u[0]&&u.unshift(0);var f=u.map(function(d,h){var x=!u[h+1],p=x?i+s-d:u[h+1]-d;if(p<=0)return null;var m=h%n.length;return W.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:p,height:l,stroke:"none",fill:n[m],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return W.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var bne=function(t,r){var n=t.xAxis,a=t.width,i=t.height,o=t.offset;return Hj(A5(zn(zn(zn({},Qc.defaultProps),n),{},{ticks:fo(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.left,o.left+o.width,r)},wne=function(t,r){var n=t.yAxis,a=t.width,i=t.height,o=t.offset;return Hj(A5(zn(zn(zn({},Qc.defaultProps),n),{},{ticks:fo(n,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.top,o.top+o.height,r)},Wl={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function R2(e){var t,r,n,a,i,o,s=b5(),l=w5(),c=lre(),u=zn(zn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Wl.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Wl.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Wl.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:Wl.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:Wl.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Wl.verticalFill,x:nt(e.x)?e.x:c.left,y:nt(e.y)?e.y:c.top,width:nt(e.width)?e.width:c.width,height:nt(e.height)?e.height:c.height}),f=u.x,d=u.y,h=u.width,x=u.height,p=u.syncWithTicks,m=u.horizontalValues,y=u.verticalValues,b=ire(),w=ore();if(!nt(h)||h<=0||!nt(x)||x<=0||!nt(f)||f!==+f||!nt(d)||d!==+d)return null;var S=u.verticalCoordinatesGenerator||bne,A=u.horizontalCoordinatesGenerator||wne,O=u.horizontalPoints,N=u.verticalPoints;if((!O||!O.length)&&jt(A)){var C=m&&m.length,L=A({yAxis:w?zn(zn({},w),{},{ticks:C?m:w.ticks}):void 0,width:s,height:l,offset:c},C?!0:p);go(Array.isArray(L),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(el(L),"]")),Array.isArray(L)&&(O=L)}if((!N||!N.length)&&jt(S)){var R=y&&y.length,j=S({xAxis:b?zn(zn({},b),{},{ticks:R?y:b.ticks}):void 0,width:s,height:l,offset:c},R?!0:p);go(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(el(j),"]")),Array.isArray(j)&&(N=j)}return W.createElement("g",{className:"recharts-cartesian-grid"},W.createElement(mne,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),W.createElement(vne,Bs({},u,{offset:c,horizontalPoints:O,xAxis:b,yAxis:w})),W.createElement(gne,Bs({},u,{offset:c,verticalPoints:N,xAxis:b,yAxis:w})),W.createElement(xne,Bs({},u,{horizontalPoints:O})),W.createElement(yne,Bs({},u,{verticalPoints:N})))}R2.displayName="CartesianGrid";var _ne=["type","layout","connectNulls","ref"],Sne=["key"];function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}function cE(e,t){if(e==null)return{};var r=Ane(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ane(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ff(){return ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ff.apply(this,arguments)}function uE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Aa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uE(Object(r),!0).forEach(function(n){mi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hl(e){return Pne(e)||Ene(e)||Tne(e)||Nne()}function Nne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
441
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tne(e,t){if(e){if(typeof e=="string")return B2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return B2(e,t)}}function Ene(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pne(e){if(Array.isArray(e))return B2(e)}function B2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function One(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JC(n.key),n)}}function jne(e,t,r){return t&&fE(e.prototype,t),r&&fE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cne(e,t,r){return t=rp(t),kne(e,XC()?Reflect.construct(t,r||[],rp(e).constructor):t.apply(e,r))}function kne(e,t){if(t&&(Ic(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lne(e)}function Lne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XC=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rp(e)}function Ine(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$2(e,t)}function $2(e,t){return $2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},$2(e,t)}function mi(e,t,r){return t=JC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JC(e){var t=Fne(e,"string");return Ic(t)=="symbol"?t:t+""}function Fne(e,t){if(Ic(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ic(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var S0=(function(e){function t(){var r;One(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Cne(this,t,[].concat(a)),mi(r,"state",{isAnimationFinished:!0,totalLength:0}),mi(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),mi(r,"getStrokeDasharray",function(o,s,l){var c=l.reduce(function(y,b){return y+b});if(!c)return r.generateSimpleStrokeDasharray(s,o);for(var u=Math.floor(o/c),f=o%c,d=s-o,h=[],x=0,p=0;x<l.length;p+=l[x],++x)if(p+l[x]>f){h=[].concat(Hl(l.slice(0,x)),[f-p]);break}var m=h.length%2===0?[0,d]:[d];return[].concat(Hl(t.repeat(l,u)),Hl(h),m).map(function(y){return"".concat(y,"px")}).join(", ")}),mi(r,"id",f0("recharts-line-")),mi(r,"pathRef",function(o){r.mainCurve=o}),mi(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),mi(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return Ine(t,e),jne(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,s=i.xAxis,l=i.yAxis,c=i.layout,u=i.children,f=Xa(u,x0);if(!f)return null;var d=function(p,m){return{x:p.x,y:p.y,value:p.value,errorVal:aa(p.payload,m)}},h={clipPath:n?"url(#clipPath-".concat(a,")"):null};return W.createElement(lr,h,f.map(function(x){return W.cloneElement(x,{key:"bar-".concat(x.props.dataKey),data:o,xAxis:s,yAxis:l,layout:c,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,a,i){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,c=s.points,u=s.dataKey,f=bt(this.props,!1),d=bt(l,!0),h=c.map(function(p,m){var y=Aa(Aa(Aa({key:"dot-".concat(m),r:3},f),d),{},{index:m,cx:p.x,cy:p.y,value:p.value,dataKey:u,payload:p.payload,points:c});return t.renderDotItem(l,y)}),x={clipPath:n?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return W.createElement(lr,ff({className:"recharts-line-dots",key:"dots"},x),h)}},{key:"renderCurveStatically",value:function(n,a,i,o){var s=this.props,l=s.type,c=s.layout,u=s.connectNulls;s.ref;var f=cE(s,_ne),d=Aa(Aa(Aa({},bt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(i,")"):null,points:n},o),{},{type:l,layout:c,connectNulls:u});return W.createElement(h2,ff({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,a){var i=this,o=this.props,s=o.points,l=o.strokeDasharray,c=o.isAnimationActive,u=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,x=o.animateNewValues,p=o.width,m=o.height,y=this.state,b=y.prevPoints,w=y.totalLength;return W.createElement(Ui,{begin:u,duration:f,isActive:c,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var A=S.t;if(b){var O=b.length/s.length,N=s.map(function(E,D){var U=Math.floor(D*O);if(b[U]){var H=b[U],B=ta(H.x,E.x),z=ta(H.y,E.y);return Aa(Aa({},E),{},{x:B(A),y:z(A)})}if(x){var te=ta(p*2,E.x),Z=ta(m/2,E.y);return Aa(Aa({},E),{},{x:te(A),y:Z(A)})}return Aa(Aa({},E),{},{x:E.x,y:E.y})});return i.renderCurveStatically(N,n,a)}var C=ta(0,w),L=C(A),R;if(l){var j="".concat(l).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});R=i.getStrokeDasharray(L,w,j)}else R=i.generateSimpleStrokeDasharray(w,L);return i.renderCurveStatically(s,n,a,{strokeDasharray:R})})}},{key:"renderCurve",value:function(n,a){var i=this.props,o=i.points,s=i.isAnimationActive,l=this.state,c=l.prevPoints,u=l.totalLength;return s&&o&&o.length&&(!c&&u>0||!g0(c,o))?this.renderCurveWithAnimation(n,a):this.renderCurveStatically(o,n,a)}},{key:"render",value:function(){var n,a=this.props,i=a.hide,o=a.dot,s=a.points,l=a.className,c=a.xAxis,u=a.yAxis,f=a.top,d=a.left,h=a.width,x=a.height,p=a.isAnimationActive,m=a.id;if(i||!s||!s.length)return null;var y=this.state.isAnimationFinished,b=s.length===1,w=Dt("recharts-line",l),S=c&&c.allowDataOverflow,A=u&&u.allowDataOverflow,O=S||A,N=qt(m)?this.id:m,C=(n=bt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},L=C.r,R=L===void 0?3:L,j=C.strokeWidth,E=j===void 0?2:j,D=$q(o)?o:{},U=D.clipDot,H=U===void 0?!0:U,B=R*2+E;return W.createElement(lr,{className:w},S||A?W.createElement("defs",null,W.createElement("clipPath",{id:"clipPath-".concat(N)},W.createElement("rect",{x:S?d:d-h/2,y:A?f:f-x/2,width:S?h:h*2,height:A?x:x*2})),!H&&W.createElement("clipPath",{id:"clipPath-dots-".concat(N)},W.createElement("rect",{x:d-B/2,y:f-B/2,width:h+B,height:x+B}))):null,!b&&this.renderCurve(O,N),this.renderErrorBar(O,N),(b||o)&&this.renderDots(O,H,N),(!p||y)&&yo.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:a.curPoints}:n.points!==a.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,a){for(var i=n.length%2!==0?[].concat(Hl(n),[0]):n,o=[],s=0;s<a;++s)o=[].concat(Hl(o),Hl(i));return o}},{key:"renderDotItem",value:function(n,a){var i;if(W.isValidElement(n))i=W.cloneElement(n,a);else if(jt(n))i=n(a);else{var o=a.key,s=cE(a,Sne),l=Dt("recharts-line-dot",typeof n!="boolean"?n.className:"");i=W.createElement(y0,ff({key:o},s,{className:l}))}return i}}])})(W.PureComponent);mi(S0,"displayName","Line");mi(S0,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ll.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});mi(S0,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,u=t.layout,f=l.map(function(d,h){var x=aa(d,o);return u==="horizontal"?{x:oN({axis:r,ticks:a,bandSize:s,entry:d,index:h}),y:qt(x)?null:n.scale(x),value:x,payload:d}:{x:qt(x)?null:r.scale(x),y:oN({axis:n,ticks:i,bandSize:s,entry:d,index:h}),value:x,payload:d}});return Aa({points:f,layout:u},c)});function Fc(e){"@babel/helpers - typeof";return Fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fc(e)}function Mne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,e8(n.key),n)}}function Rne(e,t,r){return t&&Dne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bne(e,t,r){return t=np(t),$ne(e,ZC()?Reflect.construct(t,r||[],np(e).constructor):t.apply(e,r))}function $ne(e,t){if(t&&(Fc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qne(e)}function qne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZC=function(){return!!e})()}function np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},np(e)}function Une(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q2(e,t)}function q2(e,t){return q2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},q2(e,t)}function QC(e,t,r){return t=e8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e8(e){var t=zne(e,"string");return Fc(t)=="symbol"?t:t+""}function zne(e,t){if(Fc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function U2(){return U2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},U2.apply(this,arguments)}function Wne(e){var t=e.xAxisId,r=b5(),n=w5(),a=RC(t);return a==null?null:is.createElement(Qc,U2({},a,{className:Dt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return fo(o,!0)}}))}var Mc=(function(e){function t(){return Mne(this,t),Bne(this,t,arguments)}return Une(t,e),Rne(t,[{key:"render",value:function(){return is.createElement(Wne,this.props)}}])})(is.Component);QC(Mc,"displayName","XAxis");QC(Mc,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Dc(e){"@babel/helpers - typeof";return Dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dc(e)}function Hne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n8(n.key),n)}}function Vne(e,t,r){return t&&Gne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yne(e,t,r){return t=ap(t),Kne(e,t8()?Reflect.construct(t,r||[],ap(e).constructor):t.apply(e,r))}function Kne(e,t){if(t&&(Dc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xne(e)}function Xne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t8=function(){return!!e})()}function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ap(e)}function Jne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&z2(e,t)}function z2(e,t){return z2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},z2(e,t)}function r8(e,t,r){return t=n8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n8(e){var t=Zne(e,"string");return Dc(t)=="symbol"?t:t+""}function Zne(e,t){if(Dc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function W2(){return W2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W2.apply(this,arguments)}var Qne=function(t){var r=t.yAxisId,n=b5(),a=w5(),i=BC(r);return i==null?null:is.createElement(Qc,W2({},i,{className:Dt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(s){return fo(s,!0)}}))},Rc=(function(e){function t(){return Hne(this,t),Yne(this,t,arguments)}return Jne(t,e),Vne(t,[{key:"render",value:function(){return is.createElement(Qne,this.props)}}])})(is.Component);r8(Rc,"displayName","YAxis");r8(Rc,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function hE(e){return nae(e)||rae(e)||tae(e)||eae()}function eae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
442
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tae(e,t){if(e){if(typeof e=="string")return H2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return H2(e,t)}}function rae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nae(e){if(Array.isArray(e))return H2(e)}function H2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var G2=function(t,r,n,a,i){var o=Xa(t,S5),s=Xa(t,Gp),l=[].concat(hE(o),hE(s)),c=Xa(t,Yp),u="".concat(a,"Id"),f=a[0],d=r;if(l.length&&(d=l.reduce(function(p,m){if(m.props[u]===n&&Bi(m.props,"extendDomain")&&nt(m.props[f])){var y=m.props[f];return[Math.min(p[0],y),Math.max(p[1],y)]}return p},d)),c.length){var h="".concat(f,"1"),x="".concat(f,"2");d=c.reduce(function(p,m){if(m.props[u]===n&&Bi(m.props,"extendDomain")&&nt(m.props[h])&&nt(m.props[x])){var y=m.props[h],b=m.props[x];return[Math.min(p[0],y,b),Math.max(p[1],y,b)]}return p},d)}return i&&i.length&&(d=i.reduce(function(p,m){return nt(m)?[Math.min(p[0],m),Math.max(p[1],m)]:p},d)),d},ry={exports:{}},dE;function aae(){return dE||(dE=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function i(l,c,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new a(u,f||l,d),x=r?r+c:c;return l._events[x]?l._events[x].fn?l._events[x]=[l._events[x],h]:l._events[x].push(h):(l._events[x]=h,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)t.call(u,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=r?r+c:c,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,x=new Array(h);d<h;d++)x[d]=f[d].fn;return x},s.prototype.listenerCount=function(c){var u=r?r+c:c,f=this._events[u];return f?f.fn?1:f.length:0},s.prototype.emit=function(c,u,f,d,h,x){var p=r?r+c:c;if(!this._events[p])return!1;var m=this._events[p],y=arguments.length,b,w;if(m.fn){switch(m.once&&this.removeListener(c,m.fn,void 0,!0),y){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,u),!0;case 3:return m.fn.call(m.context,u,f),!0;case 4:return m.fn.call(m.context,u,f,d),!0;case 5:return m.fn.call(m.context,u,f,d,h),!0;case 6:return m.fn.call(m.context,u,f,d,h,x),!0}for(w=1,b=new Array(y-1);w<y;w++)b[w-1]=arguments[w];m.fn.apply(m.context,b)}else{var S=m.length,A;for(w=0;w<S;w++)switch(m[w].once&&this.removeListener(c,m[w].fn,void 0,!0),y){case 1:m[w].fn.call(m[w].context);break;case 2:m[w].fn.call(m[w].context,u);break;case 3:m[w].fn.call(m[w].context,u,f);break;case 4:m[w].fn.call(m[w].context,u,f,d);break;default:if(!b)for(A=1,b=new Array(y-1);A<y;A++)b[A-1]=arguments[A];m[w].fn.apply(m[w].context,b)}}return!0},s.prototype.on=function(c,u,f){return i(this,c,u,f,!1)},s.prototype.once=function(c,u,f){return i(this,c,u,f,!0)},s.prototype.removeListener=function(c,u,f,d){var h=r?r+c:c;if(!this._events[h])return this;if(!u)return o(this,h),this;var x=this._events[h];if(x.fn)x.fn===u&&(!d||x.once)&&(!f||x.context===f)&&o(this,h);else{for(var p=0,m=[],y=x.length;p<y;p++)(x[p].fn!==u||d&&!x[p].once||f&&x[p].context!==f)&&m.push(x[p]);m.length?this._events[h]=m.length===1?m[0]:m:o(this,h)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&o(this,u)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(ry)),ry.exports}var iae=aae();const oae=ur(iae);var ny=new oae,ay="recharts.syncMouseEvents";function t0(e){"@babel/helpers - typeof";return t0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t0(e)}function sae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a8(n.key),n)}}function cae(e,t,r){return t&&lae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iy(e,t,r){return t=a8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a8(e){var t=uae(e,"string");return t0(t)=="symbol"?t:t+""}function uae(e,t){if(t0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(t0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fae=(function(){function e(){sae(this,e),iy(this,"activeIndex",0),iy(this,"coordinateList",[]),iy(this,"layout","horizontal")}return cae(e,[{key:"setDetails",value:function(r){var n,a=r.coordinateList,i=a===void 0?null:a,o=r.container,s=o===void 0?null:o,l=r.layout,c=l===void 0?null:l,u=r.offset,f=u===void 0?null:u,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=i??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=c??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),i=a.x,o=a.y,s=a.height,l=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,u=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=i+l+c,d=o+this.offset.top+s/2+u;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])})();function hae(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],a=e==null?void 0:e[1];if(n&&a&&nt(n)&&nt(a))return!0}return!1}function dae(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-a,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function i8(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,i=e.endAngle,o=_r(t,r,n,a),s=_r(t,r,n,i);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}function pae(e,t,r){var n,a,i,o;if(e==="horizontal")n=t.x,i=n,a=r.top,o=r.top+r.height;else if(e==="vertical")a=t.y,o=a,n=r.left,i=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,f=t.angle,d=_r(s,l,c,f),h=_r(s,l,u,f);n=d.x,a=d.y,i=h.x,o=h.y}else return i8(t);return[{x:n,y:a},{x:i,y:o}]}function r0(e){"@babel/helpers - typeof";return r0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r0(e)}function pE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Bh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pE(Object(r),!0).forEach(function(n){mae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mae(e,t,r){return t=vae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vae(e){var t=gae(e,"string");return r0(t)=="symbol"?t:t+""}function gae(e,t){if(r0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(r0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xae(e){var t,r,n=e.element,a=e.tooltipEventType,i=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,c=e.activeTooltipIndex,u=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!i||!o||d!=="ScatterChart"&&a!=="axis")return null;var x,p=h2;if(d==="ScatterChart")x=o,p=wQ;else if(d==="BarChart")x=dae(f,o,l,u),p=v5;else if(f==="radial"){var m=i8(o),y=m.cx,b=m.cy,w=m.radius,S=m.startAngle,A=m.endAngle;x={cx:y,cy:b,startAngle:S,endAngle:A,innerRadius:w,outerRadius:w},p=rC}else x={points:pae(f,o,l)},p=h2;var O=Bh(Bh(Bh(Bh({stroke:"#ccc",pointerEvents:"none"},l),x),bt(h,!1)),{},{payload:s,payloadIndex:c,className:Dt("recharts-tooltip-cursor",h.className)});return W.isValidElement(h)?W.cloneElement(h,O):W.createElement(p,O)}var yae=["item"],bae=["children","className","width","height","style","compact","title","desc"];function Bc(e){"@babel/helpers - typeof";return Bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bc(e)}function tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tc.apply(this,arguments)}function mE(e,t){return Sae(e)||_ae(e,t)||s8(e,t)||wae()}function wae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
443
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _ae(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function Sae(e){if(Array.isArray(e))return e}function vE(e,t){if(e==null)return{};var r=Aae(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Aae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Nae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l8(n.key),n)}}function Eae(e,t,r){return t&&Tae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pae(e,t,r){return t=ip(t),Oae(e,o8()?Reflect.construct(t,r||[],ip(e).constructor):t.apply(e,r))}function Oae(e,t){if(t&&(Bc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jae(e)}function jae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o8=function(){return!!e})()}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ip(e)}function Cae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V2(e,t)}function V2(e,t){return V2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},V2(e,t)}function $c(e){return Iae(e)||Lae(e)||s8(e)||kae()}function kae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
444
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s8(e,t){if(e){if(typeof e=="string")return Y2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Y2(e,t)}}function Lae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Iae(e){if(Array.isArray(e))return Y2(e)}function Y2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function $e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gE(Object(r),!0).forEach(function(n){Nt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nt(e,t,r){return t=l8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l8(e){var t=Fae(e,"string");return Bc(t)=="symbol"?t:t+""}function Fae(e,t){if(Bc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mae={xAxis:["bottom","top"],yAxis:["left","right"]},Dae={width:"100%",height:"100%"},c8={x:0,y:0};function $h(e){return e}var Rae=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},Bae=function(t,r,n,a){var i=r.find(function(u){return u&&u.index===n});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var o=i.coordinate,s=a.radius;return $e($e($e({},a),_r(a.cx,a.cy,s,o)),{},{angle:o,radius:s})}var l=i.coordinate,c=a.angle;return $e($e($e({},a),_r(a.cx,a.cy,l,c)),{},{angle:c,radius:l})}return c8},Kp=function(t,r){var n=r.graphicalItems,a=r.dataStartIndex,i=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var c=l.props.data;return c&&c.length?[].concat($c(s),$c(c)):s},[]);return o.length>0?o:t&&t.length&&nt(a)&&nt(i)?t.slice(a,i+1):[]};function u8(e){return e==="number"?[0,"auto"]:void 0}var K2=function(t,r,n,a){var i=t.graphicalItems,o=t.tooltipAxis,s=Kp(r,t);return n<0||!i||!i.length||n>=s.length?null:i.reduce(function(l,c){var u,f=(u=c.props.data)!==null&&u!==void 0?u:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=f===void 0?s:f;d=ad(h,o.dataKey,a)}else d=f&&f[n]||s[n];return d?[].concat($c(l),[Xj(c,d)]):l},[])},xE=function(t,r,n,a){var i=a||{x:t.chartX,y:t.chartY},o=Rae(i,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,u=RK(o,s,c,l);if(u>=0&&c){var f=c[u]&&c[u].value,d=K2(t,r,u,f),h=Bae(n,s,u,i);return{activeTooltipIndex:u,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},$ae=function(t,r){var n=r.axes,a=r.graphicalItems,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.layout,f=t.children,d=t.stackOffset,h=Wj(u,i);return n.reduce(function(x,p){var m,y=p.type.defaultProps!==void 0?$e($e({},p.type.defaultProps),p.props):p.props,b=y.type,w=y.dataKey,S=y.allowDataOverflow,A=y.allowDuplicatedCategory,O=y.scale,N=y.ticks,C=y.includeHidden,L=y[o];if(x[L])return x;var R=Kp(t.data,{graphicalItems:a.filter(function(P){var I,M=o in P.props?P.props[o]:(I=P.type.defaultProps)===null||I===void 0?void 0:I[o];return M===L}),dataStartIndex:l,dataEndIndex:c}),j=R.length,E,D,U;hae(y.domain,S,b)&&(E=s2(y.domain,null,S),h&&(b==="number"||O!=="auto")&&(U=sf(R,w,"category")));var H=u8(b);if(!E||E.length===0){var B,z=(B=y.domain)!==null&&B!==void 0?B:H;if(w){if(E=sf(R,w,b),b==="category"&&h){var te=jq(E);A&&te?(D=E,E=Hd(0,j)):A||(E=uN(z,E,p).reduce(function(P,I){return P.indexOf(I)>=0?P:[].concat($c(P),[I])},[]))}else if(b==="category")A?E=E.filter(function(P){return P!==""&&!qt(P)}):E=uN(z,E,p).reduce(function(P,I){return P.indexOf(I)>=0||I===""||qt(I)?P:[].concat($c(P),[I])},[]);else if(b==="number"){var Z=zK(R,a.filter(function(P){var I,M,q=o in P.props?P.props[o]:(I=P.type.defaultProps)===null||I===void 0?void 0:I[o],Y="hide"in P.props?P.props.hide:(M=P.type.defaultProps)===null||M===void 0?void 0:M.hide;return q===L&&(C||!Y)}),w,i,u);Z&&(E=Z)}h&&(b==="number"||O!=="auto")&&(U=sf(R,w,"category"))}else h?E=Hd(0,j):s&&s[L]&&s[L].hasStack&&b==="number"?E=d==="expand"?[0,1]:Kj(s[L].stackGroups,l,c):E=zj(R,a.filter(function(P){var I=o in P.props?P.props[o]:P.type.defaultProps[o],M="hide"in P.props?P.props.hide:P.type.defaultProps.hide;return I===L&&(C||!M)}),b,u,!0);if(b==="number")E=G2(f,E,L,i,N),z&&(E=s2(z,E,S));else if(b==="category"&&z){var ee=z,ce=E.every(function(P){return ee.indexOf(P)>=0});ce&&(E=ee)}}return $e($e({},x),{},Nt({},L,$e($e({},y),{},{axisType:i,domain:E,categoricalDomain:U,duplicateDomain:D,originalDomain:(m=y.domain)!==null&&m!==void 0?m:H,isCategorical:h,layout:u})))},{})},qae=function(t,r){var n=r.graphicalItems,a=r.Axis,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.layout,f=t.children,d=Kp(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:c}),h=d.length,x=Wj(u,i),p=-1;return n.reduce(function(m,y){var b=y.type.defaultProps!==void 0?$e($e({},y.type.defaultProps),y.props):y.props,w=b[o],S=u8("number");if(!m[w]){p++;var A;return x?A=Hd(0,h):s&&s[w]&&s[w].hasStack?(A=Kj(s[w].stackGroups,l,c),A=G2(f,A,w,i)):(A=s2(S,zj(d,n.filter(function(O){var N,C,L=o in O.props?O.props[o]:(N=O.type.defaultProps)===null||N===void 0?void 0:N[o],R="hide"in O.props?O.props.hide:(C=O.type.defaultProps)===null||C===void 0?void 0:C.hide;return L===w&&!R}),"number",u),a.defaultProps.allowDataOverflow),A=G2(f,A,w,i)),$e($e({},m),{},Nt({},w,$e($e({axisType:i},a.defaultProps),{},{hide:!0,orientation:Ka(Mae,"".concat(i,".").concat(p%2),null),domain:A,originalDomain:S,isCategorical:x,layout:u})))}return m},{})},Uae=function(t,r){var n=r.axisType,a=n===void 0?"xAxis":n,i=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.children,f="".concat(a,"Id"),d=Xa(u,i),h={};return d&&d.length?h=$ae(t,{axes:d,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):o&&o.length&&(h=qae(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),h},zae=function(t){var r=Zo(t),n=fo(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Ub(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:jd(r,n)}},yE=function(t){var r=t.children,n=t.defaultShowTooltip,a=Ea(r,Ec),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},Wae=function(t){return!t||!t.length?!1:t.some(function(r){var n=vo(r&&r.type);return n&&n.indexOf("Bar")>=0})},bE=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Hae=function(t,r){var n=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,s=t.yAxisMap,l=s===void 0?{}:s,c=n.width,u=n.height,f=n.children,d=n.margin||{},h=Ea(f,Ec),x=Ea(f,Gs),p=Object.keys(l).reduce(function(A,O){var N=l[O],C=N.orientation;return!N.mirror&&!N.hide?$e($e({},A),{},Nt({},C,A[C]+N.width)):A},{left:d.left||0,right:d.right||0}),m=Object.keys(o).reduce(function(A,O){var N=o[O],C=N.orientation;return!N.mirror&&!N.hide?$e($e({},A),{},Nt({},C,Ka(A,"".concat(C))+N.height)):A},{top:d.top||0,bottom:d.bottom||0}),y=$e($e({},m),p),b=y.bottom;h&&(y.bottom+=h.props.height||Ec.defaultProps.height),x&&r&&(y=qK(y,a,n,r));var w=c-y.left-y.right,S=u-y.top-y.bottom;return $e($e({brushBottom:b},y),{},{width:Math.max(w,0),height:Math.max(S,0)})},Gae=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},T5=function(t){var r=t.chartName,n=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,c=t.legendContent,u=t.formatAxisMap,f=t.defaultProps,d=function(y,b){var w=b.graphicalItems,S=b.stackGroups,A=b.offset,O=b.updateId,N=b.dataStartIndex,C=b.dataEndIndex,L=y.barSize,R=y.layout,j=y.barGap,E=y.barCategoryGap,D=y.maxBarSize,U=bE(R),H=U.numericAxisName,B=U.cateAxisName,z=Wae(w),te=[];return w.forEach(function(Z,ee){var ce=Kp(y.data,{graphicalItems:[Z],dataStartIndex:N,dataEndIndex:C}),P=Z.type.defaultProps!==void 0?$e($e({},Z.type.defaultProps),Z.props):Z.props,I=P.dataKey,M=P.maxBarSize,q=P["".concat(H,"Id")],Y=P["".concat(B,"Id")],fe={},ne=l.reduce(function(Ze,Je){var dt,vt,wt=b["".concat(Je.axisType,"Map")],Pt=P["".concat(Je.axisType,"Id")];wt&&wt[Pt]||Je.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?ha(!1,"Specifying a(n) ".concat(Je.axisType,"Id requires a corresponding ").concat(Je.axisType,"Id on the targeted graphical component ").concat((dt=Z==null||(vt=Z.type)===null||vt===void 0?void 0:vt.displayName)!==null&&dt!==void 0?dt:"")):ha());var It=wt[Pt];return $e($e({},Ze),{},Nt(Nt({},Je.axisType,It),"".concat(Je.axisType,"Ticks"),fo(It)))},fe),K=ne[B],he=ne["".concat(B,"Ticks")],be=S&&S[q]&&S[q].hasStack&&ZK(Z,S[q].stackGroups),se=vo(Z.type).indexOf("Bar")>=0,Le=jd(K,he),Se=[],Ae=z&&BK({barSize:L,stackGroups:S,totalSize:Gae(ne,B)});if(se){var le,De,Qe=qt(M)?D:M,Ue=(le=(De=jd(K,he,!0))!==null&&De!==void 0?De:Qe)!==null&&le!==void 0?le:0;Se=$K({barGap:j,barCategoryGap:E,bandSize:Ue!==Le?Ue:Le,sizeList:Ae[Y],maxBarSize:Qe}),Ue!==Le&&(Se=Se.map(function(Ze){return $e($e({},Ze),{},{position:$e($e({},Ze.position),{},{offset:Ze.position.offset-Ue/2})})}))}var Ke=Z&&Z.type&&Z.type.getComposedData;Ke&&te.push({props:$e($e({},Ke($e($e({},ne),{},{displayedData:ce,props:y,dataKey:I,item:Z,bandSize:Le,barPosition:Se,offset:A,stackedData:be,layout:R,dataStartIndex:N,dataEndIndex:C}))),{},Nt(Nt(Nt({key:Z.key||"item-".concat(ee)},H,ne[H]),B,ne[B]),"animationId",O)),childIndex:zq(Z,y.children),item:Z})}),te},h=function(y,b){var w=y.props,S=y.dataStartIndex,A=y.dataEndIndex,O=y.updateId;if(!A4({props:w}))return null;var N=w.children,C=w.layout,L=w.stackOffset,R=w.data,j=w.reverseStackOrder,E=bE(C),D=E.numericAxisName,U=E.cateAxisName,H=Xa(N,n),B=XK(R,H,"".concat(D,"Id"),"".concat(U,"Id"),L,j),z=l.reduce(function(P,I){var M="".concat(I.axisType,"Map");return $e($e({},P),{},Nt({},M,Uae(w,$e($e({},I),{},{graphicalItems:H,stackGroups:I.axisType===D&&B,dataStartIndex:S,dataEndIndex:A}))))},{}),te=Hae($e($e({},z),{},{props:w,graphicalItems:H}),b==null?void 0:b.legendBBox);Object.keys(z).forEach(function(P){z[P]=u(w,z[P],te,P.replace("Map",""),r)});var Z=z["".concat(U,"Map")],ee=zae(Z),ce=d(w,$e($e({},z),{},{dataStartIndex:S,dataEndIndex:A,updateId:O,graphicalItems:H,stackGroups:B,offset:te}));return $e($e({formattedGraphicalItems:ce,graphicalItems:H,offset:te,stackGroups:B},ee),z)},x=(function(m){function y(b){var w,S,A;return Nae(this,y),A=Pae(this,y,[b]),Nt(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Nt(A,"accessibilityManager",new fae),Nt(A,"handleLegendBBoxUpdate",function(O){if(O){var N=A.state,C=N.dataStartIndex,L=N.dataEndIndex,R=N.updateId;A.setState($e({legendBBox:O},h({props:A.props,dataStartIndex:C,dataEndIndex:L,updateId:R},$e($e({},A.state),{},{legendBBox:O}))))}}),Nt(A,"handleReceiveSyncEvent",function(O,N,C){if(A.props.syncId===O){if(C===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(N)}}),Nt(A,"handleBrushChange",function(O){var N=O.startIndex,C=O.endIndex;if(N!==A.state.dataStartIndex||C!==A.state.dataEndIndex){var L=A.state.updateId;A.setState(function(){return $e({dataStartIndex:N,dataEndIndex:C},h({props:A.props,dataStartIndex:N,dataEndIndex:C,updateId:L},A.state))}),A.triggerSyncEvent({dataStartIndex:N,dataEndIndex:C})}}),Nt(A,"handleMouseEnter",function(O){var N=A.getMouseInfo(O);if(N){var C=$e($e({},N),{},{isTooltipActive:!0});A.setState(C),A.triggerSyncEvent(C);var L=A.props.onMouseEnter;jt(L)&&L(C,O)}}),Nt(A,"triggeredAfterMouseMove",function(O){var N=A.getMouseInfo(O),C=N?$e($e({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState(C),A.triggerSyncEvent(C);var L=A.props.onMouseMove;jt(L)&&L(C,O)}),Nt(A,"handleItemMouseEnter",function(O){A.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),Nt(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),Nt(A,"handleMouseMove",function(O){O.persist(),A.throttleTriggeredAfterMouseMove(O)}),Nt(A,"handleMouseLeave",function(O){A.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};A.setState(N),A.triggerSyncEvent(N);var C=A.props.onMouseLeave;jt(C)&&C(N,O)}),Nt(A,"handleOuterEvent",function(O){var N=Uq(O),C=Ka(A.props,"".concat(N));if(N&&jt(C)){var L,R;/.*touch.*/i.test(N)?R=A.getMouseInfo(O.changedTouches[0]):R=A.getMouseInfo(O),C((L=R)!==null&&L!==void 0?L:{},O)}}),Nt(A,"handleClick",function(O){var N=A.getMouseInfo(O);if(N){var C=$e($e({},N),{},{isTooltipActive:!0});A.setState(C),A.triggerSyncEvent(C);var L=A.props.onClick;jt(L)&&L(C,O)}}),Nt(A,"handleMouseDown",function(O){var N=A.props.onMouseDown;if(jt(N)){var C=A.getMouseInfo(O);N(C,O)}}),Nt(A,"handleMouseUp",function(O){var N=A.props.onMouseUp;if(jt(N)){var C=A.getMouseInfo(O);N(C,O)}}),Nt(A,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),Nt(A,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.handleMouseDown(O.changedTouches[0])}),Nt(A,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&A.handleMouseUp(O.changedTouches[0])}),Nt(A,"handleDoubleClick",function(O){var N=A.props.onDoubleClick;if(jt(N)){var C=A.getMouseInfo(O);N(C,O)}}),Nt(A,"handleContextMenu",function(O){var N=A.props.onContextMenu;if(jt(N)){var C=A.getMouseInfo(O);N(C,O)}}),Nt(A,"triggerSyncEvent",function(O){A.props.syncId!==void 0&&ny.emit(ay,A.props.syncId,O,A.eventEmitterSymbol)}),Nt(A,"applySyncEvent",function(O){var N=A.props,C=N.layout,L=N.syncMethod,R=A.state.updateId,j=O.dataStartIndex,E=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)A.setState($e({dataStartIndex:j,dataEndIndex:E},h({props:A.props,dataStartIndex:j,dataEndIndex:E,updateId:R},A.state)));else if(O.activeTooltipIndex!==void 0){var D=O.chartX,U=O.chartY,H=O.activeTooltipIndex,B=A.state,z=B.offset,te=B.tooltipTicks;if(!z)return;if(typeof L=="function")H=L(te,O);else if(L==="value"){H=-1;for(var Z=0;Z<te.length;Z++)if(te[Z].value===O.activeLabel){H=Z;break}}var ee=$e($e({},z),{},{x:z.left,y:z.top}),ce=Math.min(D,ee.x+ee.width),P=Math.min(U,ee.y+ee.height),I=te[H]&&te[H].value,M=K2(A.state,A.props.data,H),q=te[H]?{x:C==="horizontal"?te[H].coordinate:ce,y:C==="horizontal"?P:te[H].coordinate}:c8;A.setState($e($e({},O),{},{activeLabel:I,activeCoordinate:q,activePayload:M,activeTooltipIndex:H}))}else A.setState(O)}),Nt(A,"renderCursor",function(O){var N,C=A.state,L=C.isTooltipActive,R=C.activeCoordinate,j=C.activePayload,E=C.offset,D=C.activeTooltipIndex,U=C.tooltipAxisBandSize,H=A.getTooltipEventType(),B=(N=O.props.active)!==null&&N!==void 0?N:L,z=A.props.layout,te=O.key||"_recharts-cursor";return W.createElement(xae,{key:te,activeCoordinate:R,activePayload:j,activeTooltipIndex:D,chartName:r,element:O,isActive:B,layout:z,offset:E,tooltipAxisBandSize:U,tooltipEventType:H})}),Nt(A,"renderPolarAxis",function(O,N,C){var L=Ka(O,"type.axisType"),R=Ka(A.state,"".concat(L,"Map")),j=O.type.defaultProps,E=j!==void 0?$e($e({},j),O.props):O.props,D=R&&R[E["".concat(L,"Id")]];return W.cloneElement(O,$e($e({},D),{},{className:Dt(L,D.className),key:O.key||"".concat(N,"-").concat(C),ticks:fo(D,!0)}))}),Nt(A,"renderPolarGrid",function(O){var N=O.props,C=N.radialLines,L=N.polarAngles,R=N.polarRadius,j=A.state,E=j.radiusAxisMap,D=j.angleAxisMap,U=Zo(E),H=Zo(D),B=H.cx,z=H.cy,te=H.innerRadius,Z=H.outerRadius;return W.cloneElement(O,{polarAngles:Array.isArray(L)?L:fo(H,!0).map(function(ee){return ee.coordinate}),polarRadius:Array.isArray(R)?R:fo(U,!0).map(function(ee){return ee.coordinate}),cx:B,cy:z,innerRadius:te,outerRadius:Z,key:O.key||"polar-grid",radialLines:C})}),Nt(A,"renderLegend",function(){var O=A.state.formattedGraphicalItems,N=A.props,C=N.children,L=N.width,R=N.height,j=A.props.margin||{},E=L-(j.left||0)-(j.right||0),D=qj({children:C,formattedGraphicalItems:O,legendWidth:E,legendContent:c});if(!D)return null;var U=D.item,H=vE(D,yae);return W.cloneElement(U,$e($e({},H),{},{chartWidth:L,chartHeight:R,margin:j,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),Nt(A,"renderTooltip",function(){var O,N=A.props,C=N.children,L=N.accessibilityLayer,R=Ea(C,di);if(!R)return null;var j=A.state,E=j.isTooltipActive,D=j.activeCoordinate,U=j.activePayload,H=j.activeLabel,B=j.offset,z=(O=R.props.active)!==null&&O!==void 0?O:E;return W.cloneElement(R,{viewBox:$e($e({},B),{},{x:B.left,y:B.top}),active:z,label:H,payload:z?U:[],coordinate:D,accessibilityLayer:L})}),Nt(A,"renderBrush",function(O){var N=A.props,C=N.margin,L=N.data,R=A.state,j=R.offset,E=R.dataStartIndex,D=R.dataEndIndex,U=R.updateId;return W.cloneElement(O,{key:O.key||"_recharts-brush",onChange:Lh(A.handleBrushChange,O.props.onChange),data:L,x:nt(O.props.x)?O.props.x:j.left,y:nt(O.props.y)?O.props.y:j.top+j.height+j.brushBottom-(C.bottom||0),width:nt(O.props.width)?O.props.width:j.width,startIndex:E,endIndex:D,updateId:"brush-".concat(U)})}),Nt(A,"renderReferenceElement",function(O,N,C){if(!O)return null;var L=A,R=L.clipPathId,j=A.state,E=j.xAxisMap,D=j.yAxisMap,U=j.offset,H=O.type.defaultProps||{},B=O.props,z=B.xAxisId,te=z===void 0?H.xAxisId:z,Z=B.yAxisId,ee=Z===void 0?H.yAxisId:Z;return W.cloneElement(O,{key:O.key||"".concat(N,"-").concat(C),xAxis:E[te],yAxis:D[ee],viewBox:{x:U.left,y:U.top,width:U.width,height:U.height},clipPathId:R})}),Nt(A,"renderActivePoints",function(O){var N=O.item,C=O.activePoint,L=O.basePoint,R=O.childIndex,j=O.isRange,E=[],D=N.props.key,U=N.item.type.defaultProps!==void 0?$e($e({},N.item.type.defaultProps),N.item.props):N.item.props,H=U.activeDot,B=U.dataKey,z=$e($e({index:R,dataKey:B,cx:C.x,cy:C.y,r:4,fill:p5(N.item),strokeWidth:2,stroke:"#fff",payload:C.payload,value:C.value},bt(H,!1)),id(H));return E.push(y.renderActiveDot(H,z,"".concat(D,"-activePoint-").concat(R))),L?E.push(y.renderActiveDot(H,$e($e({},z),{},{cx:L.x,cy:L.y}),"".concat(D,"-basePoint-").concat(R))):j&&E.push(null),E}),Nt(A,"renderGraphicChild",function(O,N,C){var L=A.filterFormatItem(O,N,C);if(!L)return null;var R=A.getTooltipEventType(),j=A.state,E=j.isTooltipActive,D=j.tooltipAxis,U=j.activeTooltipIndex,H=j.activeLabel,B=A.props.children,z=Ea(B,di),te=L.props,Z=te.points,ee=te.isRange,ce=te.baseLine,P=L.item.type.defaultProps!==void 0?$e($e({},L.item.type.defaultProps),L.item.props):L.item.props,I=P.activeDot,M=P.hide,q=P.activeBar,Y=P.activeShape,fe=!!(!M&&E&&z&&(I||q||Y)),ne={};R!=="axis"&&z&&z.props.trigger==="click"?ne={onClick:Lh(A.handleItemMouseEnter,O.props.onClick)}:R!=="axis"&&(ne={onMouseLeave:Lh(A.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:Lh(A.handleItemMouseEnter,O.props.onMouseEnter)});var K=W.cloneElement(O,$e($e({},L.props),ne));function he(Je){return typeof D.dataKey=="function"?D.dataKey(Je.payload):null}if(fe)if(U>=0){var be,se;if(D.dataKey&&!D.allowDuplicatedCategory){var Le=typeof D.dataKey=="function"?he:"payload.".concat(D.dataKey.toString());be=ad(Z,Le,H),se=ee&&ce&&ad(ce,Le,H)}else be=Z==null?void 0:Z[U],se=ee&&ce&&ce[U];if(Y||q){var Se=O.props.activeIndex!==void 0?O.props.activeIndex:U;return[W.cloneElement(O,$e($e($e({},L.props),ne),{},{activeIndex:Se})),null,null]}if(!qt(be))return[K].concat($c(A.renderActivePoints({item:L,activePoint:be,basePoint:se,childIndex:U,isRange:ee})))}else{var Ae,le=(Ae=A.getItemByXY(A.state.activeCoordinate))!==null&&Ae!==void 0?Ae:{graphicalItem:K},De=le.graphicalItem,Qe=De.item,Ue=Qe===void 0?O:Qe,Ke=De.childIndex,Ze=$e($e($e({},L.props),ne),{},{activeIndex:Ke});return[W.cloneElement(Ue,Ze),null,null]}return ee?[K,null,null]:[K,null]}),Nt(A,"renderCustomized",function(O,N,C){return W.cloneElement(O,$e($e({key:"recharts-customized-".concat(C)},A.props),A.state))}),Nt(A,"renderMap",{CartesianGrid:{handler:$h,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:$h},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:$h},YAxis:{handler:$h},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((w=b.id)!==null&&w!==void 0?w:f0("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=$6(A.triggeredAfterMouseMove,(S=b.throttleDelay)!==null&&S!==void 0?S:1e3/60),A.state={},A}return Cae(y,m),Eae(y,[{key:"componentDidMount",value:function(){var w,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,S=w.children,A=w.data,O=w.height,N=w.layout,C=Ea(S,di);if(C){var L=C.props.defaultIndex;if(!(typeof L!="number"||L<0||L>this.state.tooltipTicks.length-1)){var R=this.state.tooltipTicks[L]&&this.state.tooltipTicks[L].value,j=K2(this.state,A,L,R),E=this.state.tooltipTicks[L].coordinate,D=(this.state.offset.top+O)/2,U=N==="horizontal",H=U?{x:E,y:D}:{y:E,x:D},B=this.state.formattedGraphicalItems.find(function(te){var Z=te.item;return Z.type.name==="Scatter"});B&&(H=$e($e({},H),B.props.points[L].tooltipPosition),j=B.props.points[L].tooltipPayload);var z={activeTooltipIndex:L,isTooltipActive:!0,activeLabel:R,activePayload:j,activeCoordinate:H};this.setState(z),this.renderCursor(C),this.accessibilityManager.setIndex(L)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var A,O;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(w){Oy([Ea(w.children,di)],[Ea(this.props.children,di)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Ea(this.props.children,di);if(w&&typeof w.props.shared=="boolean"){var S=w.props.shared?"axis":"item";return s.indexOf(S)>=0?S:i}return i}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var S=this.container,A=S.getBoundingClientRect(),O=jH(A),N={chartX:Math.round(w.pageX-O.left),chartY:Math.round(w.pageY-O.top)},C=A.width/S.offsetWidth||1,L=this.inRange(N.chartX,N.chartY,C);if(!L)return null;var R=this.state,j=R.xAxisMap,E=R.yAxisMap,D=this.getTooltipEventType(),U=xE(this.state,this.props.data,this.props.layout,L);if(D!=="axis"&&j&&E){var H=Zo(j).scale,B=Zo(E).scale,z=H&&H.invert?H.invert(N.chartX):null,te=B&&B.invert?B.invert(N.chartY):null;return $e($e({},N),{},{xValue:z,yValue:te},U)}return U?$e($e({},N),U):null}},{key:"inRange",value:function(w,S){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,N=w/A,C=S/A;if(O==="horizontal"||O==="vertical"){var L=this.state.offset,R=N>=L.left&&N<=L.left+L.width&&C>=L.top&&C<=L.top+L.height;return R?{x:N,y:C}:null}var j=this.state,E=j.angleAxisMap,D=j.radiusAxisMap;if(E&&D){var U=Zo(E);return dN({x:N,y:C},U)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,S=this.getTooltipEventType(),A=Ea(w,di),O={};A&&S==="axis"&&(A.props.trigger==="click"?O={onClick:this.handleClick}:O={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var N=id(this.props,this.handleOuterEvent);return $e($e({},N),O)}},{key:"addListener",value:function(){ny.on(ay,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ny.removeListener(ay,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,S,A){for(var O=this.state.formattedGraphicalItems,N=0,C=O.length;N<C;N++){var L=O[N];if(L.item===w||L.props.key===w.key||S===vo(L.item.type)&&A===L.childIndex)return L}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,S=this.state.offset,A=S.left,O=S.top,N=S.height,C=S.width;return W.createElement("defs",null,W.createElement("clipPath",{id:w},W.createElement("rect",{x:A,y:O,height:N,width:C})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(S,A){var O=mE(A,2),N=O[0],C=O[1];return $e($e({},S),{},Nt({},N,C.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(S,A){var O=mE(A,2),N=O[0],C=O[1];return $e($e({},S),{},Nt({},N,C.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[w])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(w){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[w])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(w){var S=this.state,A=S.formattedGraphicalItems,O=S.activeItem;if(A&&A.length)for(var N=0,C=A.length;N<C;N++){var L=A[N],R=L.props,j=L.item,E=j.type.defaultProps!==void 0?$e($e({},j.type.defaultProps),j.props):j.props,D=vo(j.type);if(D==="Bar"){var U=(R.data||[]).find(function(te){return rQ(w,te)});if(U)return{graphicalItem:L,payload:U}}else if(D==="RadialBar"){var H=(R.data||[]).find(function(te){return dN(w,te)});if(H)return{graphicalItem:L,payload:H}}else if(Up(L,O)||zp(L,O)||Jf(L,O)){var B=Mee({graphicalItem:L,activeTooltipItem:O,itemData:E.data}),z=E.activeIndex===void 0?B:E.activeIndex;return{graphicalItem:$e($e({},L),{},{childIndex:z}),payload:Jf(L,O)?E.data[B]:L.props.data[B]}}}return null}},{key:"render",value:function(){var w=this;if(!A4(this))return null;var S=this.props,A=S.children,O=S.className,N=S.width,C=S.height,L=S.style,R=S.compact,j=S.title,E=S.desc,D=vE(S,bae),U=bt(D,!1);if(R)return W.createElement(XT,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},W.createElement(Cy,tc({},U,{width:N,height:C,title:j,desc:E}),this.renderClipPath(),T4(A,this.renderMap)));if(this.props.accessibilityLayer){var H,B;U.tabIndex=(H=this.props.tabIndex)!==null&&H!==void 0?H:0,U.role=(B=this.props.role)!==null&&B!==void 0?B:"application",U.onKeyDown=function(te){w.accessibilityManager.keyboardEvent(te)},U.onFocus=function(){w.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return W.createElement(XT,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},W.createElement("div",tc({className:Dt("recharts-wrapper",O),style:$e({position:"relative",cursor:"default",width:N,height:C},L)},z,{ref:function(Z){w.container=Z}}),W.createElement(Cy,tc({},U,{width:N,height:C,title:j,desc:E,style:Dae}),this.renderClipPath(),T4(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(W.Component);Nt(x,"displayName",r),Nt(x,"defaultProps",$e({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),Nt(x,"getDerivedStateFromProps",function(m,y){var b=m.dataKey,w=m.data,S=m.children,A=m.width,O=m.height,N=m.layout,C=m.stackOffset,L=m.margin,R=y.dataStartIndex,j=y.dataEndIndex;if(y.updateId===void 0){var E=yE(m);return $e($e($e({},E),{},{updateId:0},h($e($e({props:m},E),{},{updateId:0}),y)),{},{prevDataKey:b,prevData:w,prevWidth:A,prevHeight:O,prevLayout:N,prevStackOffset:C,prevMargin:L,prevChildren:S})}if(b!==y.prevDataKey||w!==y.prevData||A!==y.prevWidth||O!==y.prevHeight||N!==y.prevLayout||C!==y.prevStackOffset||!sc(L,y.prevMargin)){var D=yE(m),U={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},H=$e($e({},xE(y,w,N)),{},{updateId:y.updateId+1}),B=$e($e($e({},D),U),H);return $e($e($e({},B),h($e({props:m},B),y)),{},{prevDataKey:b,prevData:w,prevWidth:A,prevHeight:O,prevLayout:N,prevStackOffset:C,prevMargin:L,prevChildren:S})}if(!Oy(S,y.prevChildren)){var z,te,Z,ee,ce=Ea(S,Ec),P=ce&&(z=(te=ce.props)===null||te===void 0?void 0:te.startIndex)!==null&&z!==void 0?z:R,I=ce&&(Z=(ee=ce.props)===null||ee===void 0?void 0:ee.endIndex)!==null&&Z!==void 0?Z:j,M=P!==R||I!==j,q=!qt(w),Y=q&&!M?y.updateId:y.updateId+1;return $e($e({updateId:Y},h($e($e({props:m},y),{},{updateId:Y,dataStartIndex:P,dataEndIndex:I}),y)),{},{prevChildren:S,dataStartIndex:P,dataEndIndex:I})}return null}),Nt(x,"renderActiveDot",function(m,y,b){var w;return W.isValidElement(m)?w=W.cloneElement(m,y):jt(m)?w=m(y):w=W.createElement(y0,y),W.createElement(lr,{className:"recharts-active-dot",key:b},w)});var p=W.forwardRef(function(y,b){return W.createElement(x,tc({},y,{ref:b}))});return p.displayName=x.displayName,p},Vae=T5({chartName:"LineChart",GraphicalChild:S0,axisComponents:[{axisType:"xAxis",AxisComp:Mc},{axisType:"yAxis",AxisComp:Rc}],formatAxisMap:OC}),Yae=T5({chartName:"BarChart",GraphicalChild:hl,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Mc},{axisType:"yAxis",AxisComp:Rc}],formatAxisMap:OC}),Kae=T5({chartName:"RadarChart",GraphicalChild:_0,axisComponents:[{axisType:"angleAxis",AxisComp:w0},{axisType:"radiusAxis",AxisComp:b0}],formatAxisMap:cX,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Xae({student:e,examResults:t=[],meetings:r=[],activities:n={activities:[],awards:[]},feeHistory:a={structure:[],payments:[]},disciplinaryRecords:i=[],students:o=[],selectedStudentId:s,onSelectStudent:l,classFilter:c,setClassFilter:u,classOptions:f=[],sectionFilter:d,setSectionFilter:h,sectionOptions:x=[],searchName:p,setSearchName:m,onEdit:y,onResetPassword:b,onPrint:w,onExportPdf:S,breadcrumbItems:A,children:O,editingSection:N=null,editForm:C={},onEditSection:L,onSaveSection:R,onCancelEdit:j,onFieldChange:E,isSaving:D=!1,onAwardAdd:U,onAwardEdit:H,onAwardDelete:B,onActivityAdd:z,onActivityEdit:te,onActivityDelete:Z,onMeetingAdd:ee,onMeetingEdit:ce,onMeetingDelete:P,onDisciplinaryAdd:I,onDisciplinaryEdit:M,onDisciplinaryDelete:q,hideSections:Y=[]}){var Ze,Je,dt,vt,wt,Pt,It,Ut,_t,Ft,it,Dr,zt,An,Xt,fr,Vn,Ht;const[fe,ne]=W.useState({}),K=e||{name:"",roll:"",class:"",email:"",phone:"",type:"",personal:{},parent:{},medical:{},mentor:{}},he=t,be=Array.isArray(n==null?void 0:n.activities)?n.activities:[],se=Array.isArray(n==null?void 0:n.awards)?n.awards:[],Le=Array.isArray(a==null?void 0:a.structure)?a.structure:[],Se=Array.isArray(a==null?void 0:a.payments)?a.payments:[],Ae=Ee=>ne(ct=>({...ct,[Ee]:!ct[Ee]})),le=he.length>0?(()=>{const Ee={};return he.forEach(ct=>ct.subjects.forEach(Wt=>{Ee[Wt.name]||(Ee[Wt.name]={total:0,count:0}),Ee[Wt.name].total+=Wt.marks/(Wt.total||100)*100,Ee[Wt.name].count+=1})),Object.entries(Ee).map(([ct,Wt])=>({subject:ct.slice(0,10),avg:Math.round(Wt.total/Wt.count)}))})():[],De=le.map(Ee=>({subject:Ee.subject,score:Ee.avg})),Qe=he.map(Ee=>{const ct={exam:Ee.name.split(" ")[0]};return Ee.subjects.forEach(Wt=>{ct[Wt.name.slice(0,10)]=Math.round(Wt.marks/(Wt.total||100)*100)}),ct}),Ue=[...new Set(he.flatMap(Ee=>Ee.subjects.map(ct=>ct.name.slice(0,10))))],Ke=o.filter(Ee=>(!c||Ee.class.split("-")[0]===c)&&(!p||Ee.name.toLowerCase().includes(p.toLowerCase())));return v.jsxs("div",{className:"flex gap-4 h-[calc(100vh-80px)] overflow-hidden",children:[v.jsxs("div",{className:"w-80 min-w-[320px] overflow-y-auto pr-2",children:[v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-3 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[v.jsx("div",{className:"mb-2",children:v.jsx(so,{value:c,onChange:Ee=>{u(Ee),h&&h("")},options:f,placeholder:"All Classes"})}),x.length>0&&h&&v.jsx("div",{className:"mb-2",children:v.jsx(so,{value:d,onChange:h,options:x,placeholder:"All Sections"})}),v.jsxs("div",{className:"relative",children:[v.jsx(Me.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),v.jsx("input",{value:p,onChange:Ee=>m(Ee.target.value),placeholder:"Search Student Name",className:"w-full pl-9 pr-3 py-1.5 border border-slate-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]})]}),v.jsxs("p",{className:"text-xs text-slate-500 mb-2",children:[Ke.length," Students"]}),Ke.map(Ee=>v.jsx("div",{onClick:()=>l(Ee.id),className:`border rounded-xl p-2.5 mb-1.5 cursor-pointer transition-all duration-200 hover:-translate-y-0.5 active:translate-y-0 ${s===Ee.id?"border-indigo-500 bg-indigo-50 shadow-sm":"bg-white border-slate-200 hover:border-indigo-400 hover:shadow-soft-lg"}`,children:v.jsxs("div",{className:"flex items-center gap-2.5",children:[v.jsx("div",{className:"w-9 h-9 rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center text-xs font-semibold shadow-sm",children:Ee.avatar}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-semibold text-slate-800",children:Ee.name}),v.jsxs("p",{className:"text-xs text-slate-500",children:[Ee.roll," • ",Ee.class]})]})]})},Ee.id))]}),v.jsxs("div",{className:"flex-1 overflow-y-auto pr-2 scroll-smooth",children:[v.jsxs("div",{className:"flex gap-2 mb-3",children:[v.jsx(Kt,{variant:"secondary",size:"sm",icon:Me.Printer,onClick:w,children:"Print Profile"}),v.jsx(Kt,{variant:"secondary",size:"sm",icon:Me.FileText,onClick:S,children:"Export PDF"}),v.jsx(Kt,{variant:"primary",size:"sm",icon:Me.Pencil,onClick:y,children:"Edit Details"}),v.jsx(Kt,{variant:"secondary",size:"sm",icon:Me.Key,onClick:b,children:"Reset Password"})]}),v.jsx(wb,{items:A}),v.jsxs("div",{id:"student-profile-content",className:`bg-white border rounded-xl p-4 md:p-5 mb-3 mt-3 transition-all duration-200 hover:shadow-soft-lg ${N==="academic"?"border-primary-300 ring-1 ring-primary-100":"border-slate-200 hover:border-slate-300"}`,children:[v.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[v.jsx("div",{className:"w-16 h-16 rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center text-xl font-bold shadow-sm",children:"AS"}),v.jsxs("div",{className:"flex-1",children:[v.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[v.jsx("h2",{className:"text-lg font-bold text-slate-900",children:K.name}),(K.type||(e==null?void 0:e.type))&&v.jsx("span",{className:`text-xs font-semibold px-2.5 py-0.5 rounded-full ${(K.type||(e==null?void 0:e.type))==="Hosteller"?"bg-purple-50 text-purple-600":"bg-indigo-50 text-indigo-600"}`,children:(K.type||(e==null?void 0:e.type))==="Hosteller"?"Hostler":"Day Scholar"}),L&&!N&&v.jsxs("button",{onClick:()=>L("academic"),className:"ml-auto text-xs text-primary-600 hover:text-primary-700 font-medium flex items-center gap-1",children:[v.jsx(Me.Pencil,{className:"w-3 h-3"}),"Edit"]})]}),N==="academic"&&E?v.jsxs("div",{className:"grid grid-cols-4 gap-3 mt-2",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-[10px] text-slate-400",children:"Full Name"}),v.jsx("input",{value:C.full_name||"",onChange:Ee=>E("full_name",Ee.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[10px] text-slate-400",children:"Email"}),v.jsx("input",{value:C.email||"",onChange:Ee=>E("email",Ee.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[10px] text-slate-400",children:"Class"}),v.jsx("input",{value:C.class_name||"",onChange:Ee=>E("class_name",Ee.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[10px] text-slate-400",children:"Phone"}),v.jsx("input",{value:C.phone||"",onChange:Ee=>E("phone",Ee.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]})]}):v.jsxs("div",{className:"grid grid-cols-4 gap-4 mt-2",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-[10px] text-slate-400",children:"Roll No"}),v.jsx("p",{className:"text-sm text-slate-800",children:K.roll})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[10px] text-slate-400",children:"Email"}),v.jsx("p",{className:"text-sm text-slate-800",children:K.email})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[10px] text-slate-400",children:"Class"}),v.jsx("p",{className:"text-sm text-slate-800",children:K.class})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[10px] text-slate-400",children:"Phone"}),v.jsx("p",{className:"text-sm text-slate-800",children:K.phone})]})]})]})]}),N==="academic"&&v.jsxs("div",{className:"flex justify-end gap-2 mt-2 pt-2 border-t border-slate-100",children:[v.jsx(Kt,{variant:"ghost",size:"sm",onClick:j,children:"Cancel"}),v.jsx(Kt,{variant:"primary",size:"sm",onClick:R,disabled:D,children:D?"Saving...":"Save"})]}),v.jsx("div",{className:`grid gap-3 ${Y.includes("fees")?"grid-cols-3":"grid-cols-4"}`,children:[{label:"Attendance",value:(Ze=K.stats)!=null&&Ze.attendance_percentage?`${K.stats.attendance_percentage}%`:"-",color:"text-amber-500"},{label:"Avg Grade",value:(Je=K.stats)!=null&&Je.average_grade?`${K.stats.average_grade}%`:"-",color:"text-green-500"},{label:"Assignments",value:((dt=K.stats)==null?void 0:dt.assignments_submitted)??"-",color:"text-indigo-500"},...Y.includes("fees")?[]:[{label:"Fee Due",value:Le.length>0?`₹${Math.max(0,Le.reduce((Ee,ct)=>Ee+(ct.amount||0),0)-Se.reduce((Ee,ct)=>Ee+(ct.amount||0),0)).toLocaleString()}`:"-",color:"text-green-500"}]].map(Ee=>v.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2 text-center transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[v.jsx("p",{className:"text-xs text-slate-500",children:Ee.label}),v.jsx("p",{className:`text-lg font-bold ${Ee.color}`,children:Ee.value})]},Ee.label))})]}),[{title:"Personal Information",key:"personal",fields:[["Phone",K.phone||(e==null?void 0:e.phone),"phone"],["Email",K.email||(e==null?void 0:e.email),"email"],["Date of Birth",(vt=K.personal)==null?void 0:vt.dob,"date_of_birth"],["Admission Date",(wt=K.personal)==null?void 0:wt.admissionDate,"admission_date"],["Student Type",K.type||((Pt=e==null?void 0:e.metadata_)==null?void 0:Pt.student_type),"student_type"],["Address",(It=K.personal)==null?void 0:It.address,"address"]]},{title:"Parent/Guardian Information",key:"parent",fields:[["Parent Name",(Ut=K.parent)==null?void 0:Ut.name,"parent_name"],["Phone",(_t=K.parent)==null?void 0:_t.phone,"parent_phone"],["Email",(Ft=K.parent)==null?void 0:Ft.email,"parent_email"],["Relationship",(it=K.parent)==null?void 0:it.relationship,"parent_relationship"],["Emergency Contact",(Dr=K.parent)==null?void 0:Dr.emergency,"parent_emergency"]]},{title:"Medical & Additional Information",key:"medical",fields:[["Blood Group",(zt=K.medical)==null?void 0:zt.bloodGroup,"blood_group"],["Gender",(An=K.medical)==null?void 0:An.gender,"gender"],["Religion",(Xt=K.medical)==null?void 0:Xt.religion,"religion"],["Medical Conditions",(fr=K.medical)==null?void 0:fr.conditions,"medical_conditions"]]}].map(Ee=>{const ct=N===Ee.key;return v.jsxs("div",{className:`bg-white border rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg ${ct?"border-primary-300 ring-1 ring-primary-100":"border-slate-200 hover:border-slate-300"}`,children:[v.jsxs("div",{className:"flex justify-between items-center mb-2",children:[v.jsx("h3",{className:"text-sm font-bold text-slate-900",children:Ee.title}),L&&!ct&&!N&&v.jsxs("button",{onClick:()=>L(Ee.key),className:"text-xs text-primary-600 hover:text-primary-700 font-medium flex items-center gap-1",children:[v.jsx(Me.Pencil,{className:"w-3 h-3"}),"Edit"]})]}),v.jsx("div",{className:"grid grid-cols-3 gap-3",children:Ee.fields.map(([Wt,Or,Tt])=>v.jsxs("div",{children:[v.jsx("p",{className:"text-[10px] text-slate-400",children:Wt}),ct&&E?Tt==="gender"?v.jsx(so,{value:C[Tt]||"",onChange:ht=>E(Tt,ht),options:[{value:"",label:"Select"},{value:"Male",label:"Male"},{value:"Female",label:"Female"},{value:"Other",label:"Other"}],placeholder:"Select..."}):Tt==="parent_relationship"?v.jsx(so,{value:C[Tt]||"",onChange:ht=>E(Tt,ht),options:[{value:"Father",label:"Father"},{value:"Mother",label:"Mother"},{value:"Guardian",label:"Guardian"},{value:"Parent/Guardian",label:"Parent/Guardian"}],placeholder:"Select..."}):Tt==="student_type"?v.jsx(so,{value:C[Tt]||"",onChange:ht=>E(Tt,ht),options:[{value:"",label:"Select"},{value:"Day Scholar",label:"Day Scholar"},{value:"Hosteller",label:"Hosteller"}],placeholder:"Select..."}):Tt==="date_of_birth"||Tt==="admission_date"?v.jsx("input",{type:"date",value:C[Tt]||"",onChange:ht=>E(Tt,ht.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"}):v.jsx("input",{value:C[Tt]||"",onChange:ht=>E(Tt,ht.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"}):v.jsx("p",{className:"text-sm text-slate-800",children:Or||"-"})]},Wt))}),ct&&v.jsxs("div",{className:"flex justify-end gap-2 mt-3 pt-3 border-t border-slate-100",children:[v.jsx(Kt,{variant:"ghost",size:"sm",onClick:j,children:"Cancel"}),v.jsx(Kt,{variant:"primary",size:"sm",onClick:R,disabled:D,children:D?"Saving...":"Save"})]})]},Ee.title)}),v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[v.jsx("h3",{className:"text-sm font-bold text-slate-800 mb-3",children:"Class Teacher & Mentor"}),v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[v.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-3",children:[v.jsx("p",{className:"text-[10px] text-slate-400 uppercase font-semibold mb-2",children:"Class Teacher"}),(Vn=K.class_teacher)!=null&&Vn.name?v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"w-9 h-9 rounded-full bg-gradient-to-br from-emerald-500 to-emerald-700 text-white flex items-center justify-center text-xs font-bold",children:(K.class_teacher.name||"").slice(0,2).toUpperCase()}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-semibold text-slate-800",children:K.class_teacher.name}),K.class_teacher.email&&v.jsx("p",{className:"text-[10px] text-slate-500",children:K.class_teacher.email})]})]}):v.jsx("p",{className:"text-xs text-slate-400",children:"Not assigned"})]}),v.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-3",children:[v.jsx("p",{className:"text-[10px] text-slate-400 uppercase font-semibold mb-2",children:"Mentor"}),(Ht=K.mentor)!=null&&Ht.name?v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"w-9 h-9 rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center text-xs font-bold",children:(K.mentor.name||"").slice(0,2).toUpperCase()}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-semibold text-slate-800",children:K.mentor.name}),K.mentor.email&&v.jsx("p",{className:"text-[10px] text-slate-500",children:K.mentor.email})]})]}):v.jsx("p",{className:"text-xs text-slate-400",children:"Not assigned"})]})]})]}),v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[v.jsxs("div",{className:"flex justify-between items-center mb-3",children:[v.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Examination Results"}),v.jsx("button",{onClick:()=>{const Ee={};he.forEach((ct,Wt)=>{Ee[Wt]=!0}),ne(Ee)},className:"text-xs text-indigo-600 transition-all duration-150 active:scale-[0.97]",children:"Expand All"})]}),he.map((Ee,ct)=>{const Wt=Ee.subjects.reduce((ht,Gt)=>ht+Gt.marks,0),Or=Ee.subjects.reduce((ht,Gt)=>ht+Gt.total,0),Tt=(Wt/Or*100).toFixed(1);return v.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-3 mb-2 transition-all duration-200 hover:shadow-sm",children:[v.jsxs("div",{className:"flex justify-between items-center cursor-pointer",onClick:()=>Ae(ct),children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-semibold text-slate-800",children:Ee.name}),v.jsxs("p",{className:"text-xs text-slate-500",children:[Ee.subjects.length," subjects • ",Wt,"/",Or," • ",Tt,"%"]})]}),fe[ct]?v.jsx(Me.ChevronUp,{className:"w-4 h-4 text-slate-400"}):v.jsx(Me.ChevronDown,{className:"w-4 h-4 text-slate-400"})]}),fe[ct]&&v.jsx("div",{className:"overflow-x-auto rounded-lg border border-slate-200 mt-2",children:v.jsxs("table",{className:"w-full text-sm",children:[v.jsx("thead",{children:v.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200 text-xs text-slate-500 font-semibold",children:[v.jsx("th",{className:"text-left py-1.5 px-2",children:"Subject"}),v.jsx("th",{className:"text-left py-1.5 px-2",children:"Marks"}),v.jsx("th",{className:"text-left py-1.5 px-2",children:"Percentage"}),v.jsx("th",{className:"text-left py-1.5 px-2",children:"Grade"})]})}),v.jsx("tbody",{children:Ee.subjects.map(ht=>v.jsxs("tr",{className:"border-t border-slate-100 hover:bg-primary-50/40 transition-colors duration-150",children:[v.jsx("td",{className:"py-1.5 px-2 text-slate-800",children:ht.name}),v.jsxs("td",{className:"py-1.5 px-2 text-slate-800",children:[ht.marks,"/",ht.total]}),v.jsxs("td",{className:"py-1.5 px-2 text-slate-800",children:[ht.marks,"%"]}),v.jsx("td",{className:"py-1.5 px-2",children:v.jsx("span",{className:`text-xs px-2.5 py-0.5 rounded-full font-semibold ${ht.marks>=80?"bg-green-100 text-green-700":"bg-amber-100 text-amber-700"}`,children:ht.grade})})]},ht.name))})]})})]},ct)})]}),v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[v.jsx("h3",{className:"text-sm font-bold text-slate-800 mb-3",children:"Performance Analysis"}),le.length>0?v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Average % by Subject"}),v.jsx(nx,{width:"100%",height:200,children:v.jsxs(Yae,{data:le,children:[v.jsx(R2,{strokeDasharray:"3 3"}),v.jsx(Mc,{dataKey:"subject",fontSize:11}),v.jsx(Rc,{domain:[0,100]}),v.jsx(di,{}),v.jsx(hl,{dataKey:"avg",fill:"#6366f1",radius:[4,4,0,0],name:"Avg %"})]})})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Subject Strength"}),v.jsx(nx,{width:"100%",height:200,children:v.jsxs(Kae,{data:De,children:[v.jsx(dC,{}),v.jsx(w0,{dataKey:"subject",fontSize:11}),v.jsx(b0,{domain:[0,100]}),v.jsx(_0,{dataKey:"score",stroke:"#6366f1",fill:"#6366f1",fillOpacity:.3})]})})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Performance Trend"}),v.jsx(nx,{width:"100%",height:200,children:v.jsxs(Vae,{data:Qe,children:[v.jsx(R2,{strokeDasharray:"3 3"}),v.jsx(Mc,{dataKey:"exam",fontSize:11}),v.jsx(Rc,{domain:[0,100]}),v.jsx(di,{}),v.jsx(Gs,{}),Ue.map((Ee,ct)=>v.jsx(S0,{type:"monotone",dataKey:Ee,stroke:["#6366f1","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899"][ct%7],strokeWidth:2},Ee))]})})]})]}):v.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No exam data for performance analysis"})]}),v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[v.jsxs("div",{className:"flex justify-between items-center mb-2",children:[v.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Parent Meeting History"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-green-100 text-green-600",children:[r.length," Meetings"]}),ee&&v.jsx(Kt,{variant:"primary",size:"sm",onClick:ee,children:"+ Add Meeting"})]})]}),r.length===0&&v.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No meetings yet"}),r.map((Ee,ct)=>v.jsxs("div",{className:`border rounded-xl p-2.5 mb-1.5 flex justify-between items-center transition-colors duration-150 ${Ee.parent_attended===!1?"bg-red-50 border-red-200 hover:bg-red-100/60":"bg-green-50 border-green-200 hover:bg-green-100/60"}`,children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-semibold text-slate-800",children:Ee.type||"Meeting"}),v.jsxs("p",{className:"text-xs text-slate-500",children:[Ee.date,Ee.agenda?` • ${Ee.agenda}`:""]}),Ee.notes&&v.jsx("p",{className:"text-xs text-slate-500",children:Ee.notes})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:`text-[10px] font-medium px-2 py-0.5 rounded-full ${Ee.parent_attended===!1?"bg-red-100 text-red-700":"bg-green-100 text-green-700"}`,children:Ee.parent_attended===!1?"Not Attended":"Attended"}),v.jsx(Hs,{status:Ee.status||"Scheduled"}),(ce||P)&&v.jsxs("div",{className:"flex gap-1",children:[ce&&v.jsx("button",{onClick:()=>ce(Ee),className:"text-xs text-primary-600 hover:text-primary-700 font-medium px-1.5 py-0.5 rounded hover:bg-primary-50",children:"Edit"}),P&&v.jsx("button",{onClick:()=>P(Ee),className:"text-xs text-red-500 hover:text-red-700 font-medium px-1.5 py-0.5 rounded hover:bg-red-50",children:"Delete"})]})]})]},Ee.id||ct))]}),v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[v.jsxs("div",{className:"flex justify-between items-center mb-2",children:[v.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Extra-Curricular Activities"}),z&&v.jsx(Kt,{variant:"primary",size:"sm",onClick:z,children:"+ Add Activity"})]}),be.length===0&&v.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No activities yet"}),be.map((Ee,ct)=>v.jsx("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2.5 mb-1.5 transition-colors duration-150 hover:bg-slate-50",children:v.jsxs("div",{className:"flex justify-between items-center",children:[v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("p",{className:"text-sm font-semibold text-slate-800",children:Ee.name}),v.jsx(Hs,{status:Ee.status||"Active"})]}),v.jsxs("p",{className:"text-xs text-slate-500",children:[Ee.activity_type,Ee.role?` • ${Ee.role}`:"",Ee.since?` • Since ${Ee.since}`:""]}),Ee.achievement&&v.jsxs("p",{className:"text-xs text-slate-500",children:["Achievement: ",Ee.achievement]})]}),(te||Z)&&v.jsxs("div",{className:"flex gap-1",children:[te&&v.jsx("button",{onClick:()=>te(Ee),className:"text-xs text-primary-600 hover:text-primary-700 font-medium px-1.5 py-0.5 rounded hover:bg-primary-50",children:"Edit"}),Z&&v.jsx("button",{onClick:()=>Z(Ee),className:"text-xs text-red-500 hover:text-red-700 font-medium px-1.5 py-0.5 rounded hover:bg-red-50",children:"Delete"})]})]})},Ee.id||ct))]}),v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[v.jsxs("div",{className:"flex justify-between items-center mb-2",children:[v.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Awards & Achievements"}),U&&v.jsx(Kt,{variant:"primary",size:"sm",onClick:U,children:"+ Add Award"})]}),se.length===0&&v.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No awards yet"}),se.map((Ee,ct)=>v.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-xl p-2.5 mb-1.5 transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx(Me.Trophy,{className:"w-4 h-4 text-amber-500"}),v.jsx("p",{className:"text-sm font-semibold text-slate-800",children:Ee.name||Ee.title})]}),(H||B)&&v.jsxs("div",{className:"flex gap-1",children:[H&&v.jsx("button",{onClick:()=>H(Ee),className:"text-xs text-primary-600 hover:text-primary-700 font-medium px-1.5 py-0.5 rounded hover:bg-primary-50",children:"Edit"}),B&&v.jsx("button",{onClick:()=>B(Ee),className:"text-xs text-red-500 hover:text-red-700 font-medium px-1.5 py-0.5 rounded hover:bg-red-50",children:"Delete"})]})]}),v.jsxs("p",{className:"text-xs text-slate-500",children:[Ee.category,Ee.category&&Ee.year?" • ":"",Ee.year,Ee.level?` • ${Ee.level}`:"",Ee.awarded_by?` • By: ${Ee.awarded_by}`:""]}),Ee.description&&v.jsx("p",{className:"text-xs text-slate-500",children:Ee.description})]},Ee.id||ct))]}),v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[v.jsxs("div",{className:"flex justify-between items-center mb-2",children:[v.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Disciplinary Records"}),I&&v.jsxs("button",{onClick:I,className:"text-xs font-medium text-primary-600 hover:text-primary-700 flex items-center gap-1",children:[v.jsx(Me.Plus,{className:"w-3 h-3"}),"Add"]})]}),i.length===0?v.jsxs("div",{className:"bg-gradient-to-br from-green-50 to-green-100 border border-green-200 rounded-xl p-3 flex items-center gap-2",children:[v.jsx(Me.CheckCircle,{className:"w-5 h-5 text-green-500"}),v.jsx("p",{className:"text-sm text-slate-800",children:"Clean Record - No disciplinary issues reported"})]}):v.jsx("div",{className:"space-y-2",children:i.map(Ee=>v.jsx("div",{className:"border border-slate-200 rounded-lg p-3 hover:bg-slate-50",children:v.jsxs("div",{className:"flex justify-between items-start",children:[v.jsxs("div",{className:"flex-1",children:[v.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[v.jsx("span",{className:`text-xs font-medium px-2 py-0.5 rounded-full ${Ee.severity==="High"?"bg-red-100 text-red-700":Ee.severity==="Medium"?"bg-yellow-100 text-yellow-700":"bg-blue-100 text-blue-700"}`,children:Ee.severity}),v.jsx("span",{className:"text-xs text-slate-500",children:Ee.category}),v.jsx("span",{className:`text-xs font-medium px-2 py-0.5 rounded-full ${Ee.status==="Open"?"bg-orange-100 text-orange-700":Ee.status==="Resolved"?"bg-green-100 text-green-700":"bg-slate-100 text-slate-700"}`,children:Ee.status})]}),v.jsx("p",{className:"text-sm text-slate-800",children:Ee.description}),v.jsxs("p",{className:"text-xs text-slate-500 mt-1",children:[Ee.incident_date,Ee.action_taken?` • ${Ee.action_taken}`:""]})]}),v.jsxs("div",{className:"flex gap-1 ml-2",children:[M&&v.jsx("button",{onClick:()=>M(Ee),className:"p-1 text-slate-400 hover:text-primary-600",children:v.jsx(Me.Pencil,{className:"w-3.5 h-3.5"})}),q&&v.jsx("button",{onClick:()=>q(Ee),className:"p-1 text-slate-400 hover:text-red-500",children:v.jsx(Me.Trash2,{className:"w-3.5 h-3.5"})})]})]})},Ee.id))})]}),(e==null?void 0:e.transport)&&v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[v.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-3",children:"Transport Information"}),v.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-[10px] text-slate-400 uppercase mb-0.5",children:"Transport Service"}),e.transport.enrolled?v.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-700",children:"Enrolled"}):v.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-600",children:"Not Enrolled"})]}),e.transport.enrolled&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-[10px] text-slate-400 uppercase mb-0.5",children:"Route"}),v.jsx("p",{className:"text-sm font-medium text-slate-800",children:e.transport.route_name||"—"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[10px] text-slate-400 uppercase mb-0.5",children:"Bus Number"}),v.jsx("p",{className:"text-sm font-medium text-slate-800",children:e.transport.bus_number||"—"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[10px] text-slate-400 uppercase mb-0.5",children:"Pickup Point"}),v.jsx("p",{className:"text-sm font-medium text-slate-800",children:e.transport.pickup_point||"—"})]})]})]})]}),!Y.includes("fees")&&v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[v.jsxs("div",{className:"flex justify-between items-center mb-2",children:[v.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Fee Structure"}),v.jsx("div",{className:"flex gap-1",children:K.type&&v.jsx("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-indigo-100 text-indigo-600",children:K.type})})]}),v.jsx("div",{className:"overflow-x-auto rounded-xl border border-slate-200",children:v.jsxs("table",{className:"w-full text-sm",children:[v.jsx("thead",{children:v.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200 text-xs text-slate-500 font-semibold",children:[v.jsx("th",{className:"text-left py-2 px-3",children:"Fee Component"}),v.jsx("th",{className:"text-left py-2 px-3",children:"Amount (₹)"}),v.jsx("th",{className:"text-left py-2 px-3",children:"Concession"}),v.jsx("th",{className:"text-left py-2 px-3",children:"Status"})]})}),v.jsxs("tbody",{children:[Le.map(Ee=>v.jsxs("tr",{className:"border-b border-slate-100 hover:bg-primary-50/40 transition-colors duration-150",children:[v.jsx("td",{className:"py-2 px-3 text-slate-800",children:Ee.component}),v.jsxs("td",{className:"py-2 px-3 text-slate-800",children:["₹",(Ee.amount||0).toLocaleString()]}),v.jsx("td",{className:"py-2 px-3 text-slate-800",children:Ee.concession>0?v.jsxs("span",{className:"text-green-600",children:["-₹",Ee.concession.toLocaleString()]}):"—"}),v.jsx("td",{className:"py-2 px-3",children:Ee.status||Ee.frequency})]},Ee.component)),v.jsxs("tr",{className:"bg-slate-50",children:[v.jsx("td",{className:"py-2 px-3 font-bold text-slate-800",children:"Total"}),v.jsxs("td",{className:"py-2 px-3 font-bold text-slate-800",children:["₹",Le.reduce((Ee,ct)=>Ee+(ct.amount||0),0).toLocaleString()]}),v.jsx("td",{className:"py-2 px-3 font-bold text-green-600",children:Le.reduce((Ee,ct)=>Ee+(ct.concession||0),0)>0?`-₹${Le.reduce((Ee,ct)=>Ee+(ct.concession||0),0).toLocaleString()}`:""}),v.jsx("td",{})]})]})]})})]}),!Y.includes("fees")&&v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[v.jsx("h3",{className:"text-sm font-bold text-slate-800 mb-3",children:"Fee Payment History"}),v.jsx("div",{className:"grid grid-cols-3 gap-3 mb-3",children:(()=>{const Ee=Le.reduce((Or,Tt)=>Or+(Tt.amount||0),0),ct=Se.reduce((Or,Tt)=>Or+(Tt.amount||0),0),Wt=Math.max(0,Ee-ct);return[{label:"Total Fees",value:`₹${Ee.toLocaleString()}`,color:"text-slate-800"},{label:"Paid",value:`₹${ct.toLocaleString()}`,color:"text-green-500"},{label:"Due",value:`₹${Wt.toLocaleString()}`,color:"text-red-500"}].map(Or=>v.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2 text-center transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[v.jsx("p",{className:"text-xs text-slate-500",children:Or.label}),v.jsx("p",{className:`text-lg font-bold ${Or.color}`,children:Or.value})]},Or.label))})()}),Se.length>0?Se.map((Ee,ct)=>v.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2.5 mb-1.5 flex justify-between items-center transition-colors duration-150 hover:bg-slate-50",children:[v.jsxs("div",{children:[v.jsxs("p",{className:"text-sm font-semibold text-slate-800",children:["₹",(Ee.amount||0).toLocaleString()," - ",Ee.method||Ee.payment_method||"-"]}),v.jsxs("p",{className:"text-xs text-slate-500",children:[Ee.date||Ee.payment_date||"-",Ee.ref||Ee.reference?` • Ref: ${Ee.ref||Ee.reference}`:""]})]}),v.jsx(Hs,{status:Ee.status||"Paid"})]},ct)):v.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No payment history"})]})]}),O]})}function Jae({teacher:e,assignments:t=[],onEdit:r,onResetPassword:n,onPrint:a,onExportPdf:i,onBack:o,breadcrumbItems:s,isLoading:l,children:c,editingSection:u=null,editForm:f={},onEditSection:d,onSaveSection:h,onCancelEdit:x,onFieldChange:p,isSaving:m=!1,onAwardAdd:y,onAwardEdit:b,onAwardDelete:w}){var R,j,E,D,U,H;if(l||!e)return v.jsx(DO,{});const S=e,A=((R=S.user)==null?void 0:R.full_name)||S.full_name||"",O=((j=S.user)==null?void 0:j.email)||S.email||"",N=((E=S.user)==null?void 0:E.phone)||S.phone||"",C=A.split(" ").map(B=>B[0]).join("").slice(0,2).toUpperCase(),L=[{label:"Total Classes",value:t.length||S.classes_count||0,icon:Me.GraduationCap,color:"text-blue-600",bg:"bg-gradient-to-br from-blue-50 to-blue-100",glow:"hover:shadow-[0_4px_20px_-4px_rgba(59,130,246,0.3)]"},{label:"Periods/Week",value:S.total_periods_per_week||0,icon:Me.ClipboardList,color:"text-amber-600",bg:"bg-gradient-to-br from-amber-50 to-amber-100",glow:"hover:shadow-[0_4px_20px_-4px_rgba(245,158,11,0.3)]"},{label:"Max Workload",value:S.max_workload_hours?`${S.max_workload_hours}h`:"-",icon:Me.TrendingUp,color:"text-purple-600",bg:"bg-gradient-to-br from-purple-50 to-purple-100",glow:"hover:shadow-[0_4px_20px_-4px_rgba(147,51,234,0.3)]"}];return v.jsxs("div",{children:[v.jsx(wb,{items:s}),v.jsxs("div",{className:"flex justify-between items-center mb-4 mt-2",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("button",{onClick:o,className:"p-1.5 hover:bg-slate-100 rounded-lg transition-all duration-150 active:scale-[0.97]",children:v.jsx(Me.ArrowLeft,{className:"w-5 h-5"})}),v.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-slate-900",children:"Teacher Profile"})]}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx(Kt,{variant:"secondary",size:"sm",icon:Me.Printer,onClick:a,children:"Print"}),v.jsx(Kt,{variant:"secondary",size:"sm",icon:Me.FileText,onClick:i,children:"Export PDF"}),v.jsx(Kt,{variant:"primary",size:"sm",icon:Me.Pencil,onClick:r,children:"Edit Profile"}),v.jsx(Kt,{variant:"secondary",size:"sm",icon:Me.Key,onClick:n,children:"Reset Password"})]})]}),v.jsx("div",{id:"teacher-profile",className:"bg-white border border-slate-200 rounded-xl p-4 md:p-5 mb-4 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:v.jsxs("div",{className:"flex justify-between items-start",children:[v.jsxs("div",{className:"flex gap-4 items-center",children:[v.jsx("div",{className:"w-[72px] h-[72px] rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center text-2xl font-bold shadow-sm",children:C}),v.jsxs("div",{children:[v.jsx("h2",{className:"text-xl font-bold text-slate-900",children:A}),v.jsxs("p",{className:"text-sm text-slate-500 mb-2",children:[S.primary_subject||((D=S.subjects)==null?void 0:D[0])||S.department||""," Teacher"]}),v.jsxs("div",{className:"flex gap-4 text-xs text-slate-600",children:[v.jsxs("span",{className:"flex items-center gap-1",children:[v.jsx("span",{className:"text-slate-400",children:"ID:"})," ",S.employee_id]}),v.jsxs("span",{className:"flex items-center gap-1",children:[v.jsx(Me.Mail,{className:"w-3 h-3 text-slate-400"}),O]}),v.jsxs("span",{className:"flex items-center gap-1",children:[v.jsx(Me.Phone,{className:"w-3 h-3 text-slate-400"}),N||"N/A"]}),v.jsxs("span",{className:"flex items-center gap-1",children:[v.jsx(Me.Calendar,{className:"w-3 h-3 text-slate-400"}),"Joined: ",S.joining_date||"N/A"]})]})]})]}),v.jsx("span",{className:"text-sm font-medium px-2.5 py-0.5 rounded-full bg-green-100 text-green-600 border border-green-200",children:S.max_workload_hours?`${S.max_workload_hours} hours/week`:"-"})]})}),v.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4 mb-4",children:L.map(B=>v.jsxs("div",{className:`bg-white border border-slate-200 rounded-xl p-4 md:p-5 flex items-center gap-3 md:gap-4 transition-all duration-200 hover:-translate-y-1 ${B.glow} cursor-default group`,children:[v.jsx("div",{className:`${B.bg} p-2.5 md:p-3 rounded-xl transition-transform duration-200 group-hover:scale-110`,children:v.jsx(B.icon,{className:`w-5 h-5 ${B.color}`})}),v.jsxs("div",{children:[v.jsx("p",{className:"text-xs text-slate-500 font-medium",children:B.label}),v.jsx("p",{className:"text-xl md:text-2xl font-bold text-slate-900 mt-0.5",children:B.value})]})]},B.label))}),v.jsx(Gl,{title:"Professional Information",editButton:d&&!u&&v.jsxs("button",{onClick:()=>d("professional"),className:"text-xs text-indigo-600 hover:text-indigo-700 font-medium flex items-center gap-1",children:[v.jsx(Me.Pencil,{className:"w-3 h-3"}),"Edit"]}),highlight:u==="professional",children:u==="professional"&&p?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Qualification"}),v.jsx("input",{value:f.qualification||"",onChange:B=>p("qualification",B.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Primary Subject"}),v.jsx("input",{value:f.primary_subject||"",onChange:B=>p("primary_subject",B.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Max Workload (hrs/week)"}),v.jsx("input",{type:"number",value:f.max_workload_hours||"",onChange:B=>p("max_workload_hours",B.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Department"}),v.jsx("input",{value:f.department||"",onChange:B=>p("department",B.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Designation"}),v.jsx("input",{value:f.designation||"",onChange:B=>p("designation",B.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Employment Type"}),v.jsx(so,{value:f.employment_type||"",onChange:B=>p("employment_type",B),options:[{value:"",label:"Select"},{value:"Full-time",label:"Full-time"},{value:"Part-time",label:"Part-time"},{value:"Contract",label:"Contract"}],placeholder:"Select..."})]})]}),v.jsxs("div",{className:"flex justify-end gap-2 mt-3 pt-3 border-t border-slate-100",children:[v.jsx(Kt,{variant:"ghost",size:"sm",onClick:x,children:"Cancel"}),v.jsx(Kt,{variant:"primary",size:"sm",onClick:h,disabled:m,children:m?"Saving...":"Save"})]})]}):v.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[v.jsx(Cr,{label:"Qualification",value:S.qualification||"-"}),v.jsx(Cr,{label:"Subject Specialization",value:Array.isArray(S.subjects)?S.subjects.map(B=>B.name||B).join(", ")||"-":S.primary_subject||"-"}),v.jsx(Cr,{label:"Designation",value:S.designation||"-"}),v.jsx(Cr,{label:"Teaching Load",value:S.max_workload_hours?`${S.max_workload_hours} hours per week`:"-"}),v.jsx(Cr,{label:"Department",value:S.department||"-"}),v.jsx(Cr,{label:"Employment Type",value:S.employment_type||"-"})]})}),v.jsx(Gl,{title:"Personal Information",editButton:d&&!u&&v.jsxs("button",{onClick:()=>d("personal"),className:"text-xs text-indigo-600 hover:text-indigo-700 font-medium flex items-center gap-1",children:[v.jsx(Me.Pencil,{className:"w-3 h-3"}),"Edit"]}),highlight:u==="personal",children:u==="personal"&&p?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Full Name"}),v.jsx("input",{value:f.full_name||"",onChange:B=>p("full_name",B.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Email"}),v.jsx("input",{value:f.email||"",onChange:B=>p("email",B.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Phone"}),v.jsx("input",{value:f.phone||"",onChange:B=>p("phone",B.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Gender"}),v.jsx(so,{value:f.gender||"",onChange:B=>p("gender",B),options:[{value:"",label:"Select"},{value:"Male",label:"Male"},{value:"Female",label:"Female"},{value:"Other",label:"Other"}],placeholder:"Select..."})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Date of Joining"}),v.jsx("input",{type:"date",value:f.joining_date||"",onChange:B=>p("joining_date",B.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Address"}),v.jsx("input",{value:f.address||"",onChange:B=>p("address",B.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]})]}),v.jsxs("div",{className:"flex justify-end gap-2 mt-3 pt-3 border-t border-slate-100",children:[v.jsx(Kt,{variant:"ghost",size:"sm",onClick:x,children:"Cancel"}),v.jsx(Kt,{variant:"primary",size:"sm",onClick:h,disabled:m,children:m?"Saving...":"Save"})]})]}):v.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[v.jsx(Cr,{label:"Date of Birth",value:S.date_of_birth||"-"}),v.jsx(Cr,{label:"Date of Joining",value:S.joining_date||"-"}),v.jsx(Cr,{label:"Gender",value:S.gender||"-"}),v.jsx(Cr,{label:"Phone",value:((U=S.user)==null?void 0:U.phone)||S.phone||"-"}),v.jsx(Cr,{label:"Email",value:((H=S.user)==null?void 0:H.email)||S.email||"-"}),v.jsx(Cr,{label:"Address",value:[S.address_line1||S.address,S.city,S.state,S.pincode].filter(Boolean).join(", ")||"-"}),v.jsx(Cr,{label:"Emergency Contact",value:S.emergency_contact_name?`${S.emergency_contact_name} (${S.emergency_contact_relationship||""}) - ${S.emergency_contact_phone||""}`:"-"})]})}),v.jsx(Gl,{title:"Salary & Bank Details",children:v.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[v.jsx(Cr,{label:"Basic Salary",value:S.basic_salary?`₹${Number(S.basic_salary).toLocaleString()}`:"-"}),v.jsx(Cr,{label:"HRA",value:S.hra?`₹${Number(S.hra).toLocaleString()}`:"-"}),v.jsx(Cr,{label:"DA",value:S.da?`₹${Number(S.da).toLocaleString()}`:"-"}),v.jsx(Cr,{label:"Transport Allowance",value:S.ta?`₹${Number(S.ta).toLocaleString()}`:"-"}),v.jsx(Cr,{label:"Other Allowances",value:S.other_allowances?`₹${Number(S.other_allowances).toLocaleString()}`:"-"}),v.jsx(Cr,{label:"PF Deduction",value:S.pf_deduction?`₹${Number(S.pf_deduction).toLocaleString()}`:"-"}),v.jsx(Cr,{label:"Tax Deduction",value:S.tax_deduction?`₹${Number(S.tax_deduction).toLocaleString()}`:"-"}),v.jsx(Cr,{label:"Other Deductions",value:S.other_deductions?`₹${Number(S.other_deductions).toLocaleString()}`:"-"}),v.jsx(Cr,{label:"Bank Name",value:S.bank_name||"-"}),v.jsx(Cr,{label:"Account Number",value:S.account_number||"-"}),v.jsx(Cr,{label:"IFSC Code",value:S.ifsc_code||"-"}),v.jsx(Cr,{label:"PAN Number",value:S.pan_number||"-"})]})}),v.jsx(Gl,{title:"Leave Summary",children:v.jsx("div",{className:"grid grid-cols-3 gap-3 mb-4",children:(S.leave_balances||[]).length>0?(S.leave_balances||[]).map((B,z)=>v.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 rounded-xl p-3 transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[v.jsx("p",{className:"text-xs text-slate-500 font-medium",children:B.display_name||B.leave_type}),v.jsxs("div",{className:"flex items-baseline gap-1 mt-1",children:[v.jsx("span",{className:"text-2xl font-bold text-slate-800",children:B.used||0}),v.jsxs("span",{className:"text-sm text-slate-400",children:["/ ",B.total_allocated||0," days"]})]}),v.jsxs("p",{className:"text-[10px] text-slate-400 mt-0.5",children:["Remaining: ",B.remaining||0," | Pending: ",B.pending||0]}),v.jsx("div",{className:"w-full h-1.5 bg-slate-200 rounded-full mt-2",children:v.jsx("div",{className:`h-full ${["bg-blue-500","bg-red-500","bg-green-500","bg-amber-500","bg-purple-500"][z%5]} rounded-full transition-all duration-300`,style:{width:`${B.total_allocated>0?(B.used||0)/B.total_allocated*100:0}%`}})})]},B.leave_type||z)):v.jsx("div",{className:"col-span-3 text-center py-4 text-sm text-slate-400",children:"No leave data available"})})}),v.jsx(Gl,{title:"Current Teaching Schedule",children:t.length>0?v.jsx("div",{className:"rounded-lg border border-slate-200 overflow-hidden",children:v.jsxs("table",{className:"w-full text-sm",children:[v.jsx("thead",{children:v.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200",children:[v.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Class"}),v.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Section"}),v.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Subject"}),v.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Periods/Week"}),v.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Role"})]})}),v.jsx("tbody",{className:"divide-y divide-slate-100",children:t.map((B,z)=>v.jsxs("tr",{className:"hover:bg-slate-50/50",children:[v.jsx("td",{className:"px-4 py-2.5 font-medium text-slate-800",children:B.class_name}),v.jsx("td",{className:"px-4 py-2.5 text-slate-600",children:B.section}),v.jsx("td",{className:"px-4 py-2.5 text-slate-600",children:B.subject||"-"}),v.jsx("td",{className:"px-4 py-2.5 text-slate-600",children:B.periods_per_week||"-"}),v.jsx("td",{className:"px-4 py-2.5",children:B.is_class_teacher?v.jsx("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full bg-emerald-100 text-emerald-700",children:"Class Teacher"}):v.jsx("span",{className:"text-xs text-slate-400",children:"Subject Teacher"})})]},z))})]})}):v.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No teaching schedule assigned"})}),v.jsx(Gl,{title:"Awards & Recognition",editButton:y&&v.jsx("button",{onClick:y,className:"text-xs text-indigo-600 hover:text-indigo-700 font-medium",children:"+ Add Award"}),children:(S.awards||[]).length>0?(S.awards||[]).map((B,z)=>v.jsxs("div",{className:"flex gap-3 p-3 mb-2 bg-amber-50 border border-amber-200 rounded-xl transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[v.jsx(Me.Trophy,{className:"w-5 h-5 text-amber-600 mt-0.5 flex-shrink-0"}),v.jsxs("div",{className:"flex-1",children:[v.jsx("p",{className:"text-sm font-semibold text-slate-800",children:B.title}),v.jsx("p",{className:"text-xs text-slate-500",children:B.awarded_by||B.org}),v.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:B.description||B.desc})]}),(b||w)&&v.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[b&&v.jsx("button",{onClick:()=>b(B),className:"text-xs text-indigo-600 hover:text-indigo-700 px-1",children:"Edit"}),w&&v.jsx("button",{onClick:()=>w(B),className:"text-xs text-red-600 hover:text-red-700 px-1",children:"Delete"})]})]},B.id||z)):v.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No awards recorded"})}),c]})}function Gl({title:e,badge:t,editButton:r,highlight:n,children:a}){return v.jsxs("div",{className:`bg-white border rounded-xl p-5 md:p-6 mb-4 transition-all duration-200 hover:shadow-md ${n?"border-primary-300 ring-1 ring-primary-100":"border-slate-200 hover:border-slate-300"}`,children:[v.jsxs("div",{className:"flex justify-between items-center mb-4",children:[v.jsx("h3",{className:"text-sm font-bold text-slate-800 uppercase tracking-wide",children:e}),r||t]}),a]})}function Cr({label:e,value:t}){return v.jsxs("div",{className:"mb-3",children:[v.jsx("p",{className:"text-[11px] text-slate-400 uppercase tracking-wide mb-0.5",children:e}),v.jsx("p",{className:"text-sm font-medium text-slate-800",children:t||"-"})]})}function Zae({open:e,onClose:t,title:r,steps:n,activeStep:a,onStepChange:i,onNext:o,onSubmit:s,isSubmitting:l,submitLabel:c="Submit",submitErrorMessage:u,size:f="3xl",children:d}){const[h,x]=W.useState(!1),p=async()=>{if(o){x(!0);const y=await o(a);if(x(!1),!y)return}i(a+1)},m=()=>{i(a-1)};return v.jsxs(Gc,{open:e,onClose:t,title:r,size:f,children:[v.jsx("div",{className:"flex items-center justify-between mb-6 px-2",children:n.map((y,b)=>v.jsxs("div",{className:"flex items-center flex-1",children:[v.jsxs("div",{className:"flex items-center gap-2.5",children:[v.jsx("div",{className:gt("w-8 h-8 rounded-full flex items-center justify-center text-xs font-bold transition-all duration-200",b<a&&"bg-emerald-500 text-white",b===a&&"bg-primary-600 text-white shadow-md shadow-primary-200",b>a&&"bg-slate-100 text-slate-400"),children:b<a?"✓":y.icon||String(b+1)}),v.jsx("span",{className:gt("text-xs font-medium hidden sm:inline",b===a&&"text-primary-700",b<a&&"text-emerald-600",b>a&&"text-slate-400"),children:y.label})]}),b<n.length-1&&v.jsx("div",{className:gt("flex-1 h-0.5 mx-3 rounded",b<a?"bg-emerald-300":"bg-slate-200")})]},y.id))}),v.jsx("div",{className:"max-h-[55vh] overflow-y-auto pr-1 pb-4",children:d}),u&&v.jsx("p",{className:"text-sm text-red-600 bg-red-50 px-3 py-2 rounded-lg mt-3",children:u}),v.jsxs("div",{className:"flex items-center justify-between mt-6 pt-4 border-t border-slate-100",children:[v.jsx(Kt,{variant:"ghost",onClick:t,children:"Cancel"}),v.jsxs("div",{className:"flex items-center gap-2",children:[a>0&&v.jsx(Kt,{variant:"secondary",onClick:m,children:"← Previous"}),a<n.length-1?v.jsx(Kt,{variant:"primary",onClick:p,loading:h,children:"Next →"}):v.jsx(Kt,{variant:"primary",onClick:s,loading:l,children:c})]})]})]})}function Qae({school:e={},title:t,subtitle:r}){return v.jsxs("div",{className:"print-header border-b-2 border-slate-800 pb-4 mb-6",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[e.logo_url?v.jsx("img",{src:e.logo_url,alt:e.name,className:"w-16 h-16 object-contain rounded"}):v.jsx("div",{className:"w-16 h-16 bg-primary-100 rounded flex items-center justify-center text-primary-700 text-2xl font-bold",children:(e.name||"S").charAt(0)}),v.jsxs("div",{className:"flex-1 text-center",children:[v.jsx("h1",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide",children:e.name||"School Name"}),e.affiliation&&v.jsx("p",{className:"text-xs text-slate-600 mt-0.5",children:e.affiliation}),e.address&&v.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:e.address}),v.jsxs("div",{className:"flex items-center justify-center gap-3 mt-1 text-[10px] text-slate-500",children:[e.phone&&v.jsxs("span",{children:["📞 ",e.phone]}),e.email&&v.jsxs("span",{children:["✉ ",e.email]}),e.website&&v.jsxs("span",{children:["🌐 ",e.website]})]})]}),v.jsx("div",{className:"w-16"})]}),t&&v.jsxs("div",{className:"text-center mt-3 pt-3 border-t border-slate-200",children:[v.jsx("h2",{className:"text-sm font-bold text-slate-800 uppercase tracking-wider",children:t}),r&&v.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:r})]})]})}const wE=["Present","Absent","Late"],_E={Present:"bg-green-100 text-green-700 border-green-300",Absent:"bg-red-100 text-red-700 border-red-300",Late:"bg-amber-100 text-amber-700 border-amber-300"},eie={Present:Me.CheckCircle2,Absent:Me.XCircle,Late:Me.Clock};function SE(e,t){const r=new Date(e+"T00:00:00");return r.setDate(r.getDate()+t),r.toISOString().split("T")[0]}function AE(e){return e?new Date(e+"T00:00:00").toLocaleDateString("en-IN",{weekday:"short",day:"numeric",month:"short"}):""}function tie({studentList:e=[],isSubmitted:t=!1,isLoading:r=!1,onSubmit:n,isSubmitting:a=!1,date:i,onDateChange:o,showDateNav:s=!1,showHistory:l=!1,history:c=[],onEditHistory:u,onDeleteHistory:f,showDownloadReport:d=!1,onDownloadReport:h,className:x="",headerExtra:p,showKeyboardHints:m=!1,holidayWarning:y=null,children:b}){const[w,S]=W.useState([]),[A,O]=W.useState([]),[N,C]=W.useState(""),[L,R]=W.useState(!1),[j,E]=W.useState(null),[D,U]=W.useState(0);W.useEffect(()=>{if(e.length>0){const ne=new Set,K=[];for(const he of e)ne.has(he.student_id)||(ne.add(he.student_id),K.push({student_id:he.student_id,status:he.status==="Not Marked"?"Present":he.status}));S(K),O(K.map(he=>({...he})))}else S([]),O([]);U(0)},[e]);const H=(ne,K)=>{S(he=>he.map(be=>be.student_id===ne?{...be,status:K}:be))},B=ne=>S(K=>K.map(he=>({...he,status:ne}))),z=()=>{w.length&&R(!0)},te=()=>{R(!1),n&&n(w.filter(ne=>ne.student_id&&ne.status))},Z=w.length,ee=w.filter(ne=>ne.status==="Present").length,ce=w.filter(ne=>ne.status==="Absent").length,P=w.filter(ne=>ne.status==="Late").length,I=Z?Math.round((ee+P)/Z*100):0,M=W.useMemo(()=>{if(!t||!A.length)return new Set;const ne=new Set;return w.forEach(K=>{const he=A.find(be=>be.student_id===K.student_id);he&&he.status!==K.status&&ne.add(K.student_id)}),ne},[w,A,t]),q=W.useMemo(()=>{const ne=e.filter(be=>{const se=w.find(Le=>Le.student_id===be.student_id);return(se==null?void 0:se.status)==="Absent"}),K=M.size;let he=`${t?"Update":"Submit"} attendance for ${Z} student(s)?
445
-
446
- `;if(he+=`Present: ${ee} | Absent: ${ce} | Late: ${P}`,ne.length>0){const be=ne.map(se=>se.full_name).slice(0,8);he+=`
447
-
448
- Absent students: ${be.join(", ")}`,ne.length>8&&(he+=` and ${ne.length-8} more`)}return t&&K>0&&(he+=`
449
-
450
- ${K} record(s) modified from original.`),he},[w,e,t,Z,ee,ce,P,M]),Y=ne=>ne.consecutive_absent||ne.absent_streak||0;W.useEffect(()=>{if(!m)return;const ne=K=>{var Le,Se;if(w.length===0)return;const he=(Se=(Le=document.activeElement)==null?void 0:Le.tagName)==null?void 0:Se.toLowerCase();if(he==="input"||he==="textarea"||he==="select")return;const be={1:"Present",2:"Absent",3:"Late"},se={Digit1:"Present",Digit2:"Absent",Digit3:"Late"};if(K.shiftKey&&se[K.code]){K.preventDefault(),B(se[K.code]);return}if(!K.shiftKey&&!K.ctrlKey&&!K.metaKey&&!K.altKey&&be[K.key]){K.preventDefault();const Ae=e.filter(Qe=>{var Ue;return!N||((Ue=Qe.full_name)==null?void 0:Ue.toLowerCase().includes(N.toLowerCase()))});if(Ae.length===0)return;const le=Math.min(D,Ae.length-1),De=Ae[le];H(De.student_id,be[K.key]),U(Qe=>Math.min(Qe+1,Ae.length-1))}};return document.addEventListener("keydown",ne),()=>document.removeEventListener("keydown",ne)},[m,w,D,e,N]);const fe=e.filter(ne=>{var K;return!N||((K=ne.full_name)==null?void 0:K.toLowerCase().includes(N.toLowerCase()))});return v.jsxs("div",{className:"space-y-4",children:[y&&v.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-xl p-3 flex items-center gap-3",children:[v.jsx("span",{className:"text-lg",children:v.jsx(Me.AlertTriangle,{size:18,className:"text-amber-600"})}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-medium text-amber-800",children:y}),v.jsx("p",{className:"text-xs text-amber-600 mt-0.5",children:"Are you sure you want to mark attendance for this date? School is typically closed."})]})]}),s&&o&&v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("button",{onClick:()=>o(SE(i,-1)),className:"p-2 rounded-lg border border-slate-300 text-slate-500 hover:bg-slate-50 hover:text-slate-700 transition-colors",title:"Previous day",children:v.jsx(Me.ChevronLeft,{size:16})}),v.jsx("span",{className:"text-sm font-medium text-slate-700 px-2",children:AE(i)}),v.jsx("button",{onClick:()=>o(SE(i,1)),disabled:i>=new Date().toISOString().split("T")[0],className:"p-2 rounded-lg border border-slate-300 text-slate-500 hover:bg-slate-50 hover:text-slate-700 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",title:"Next day",children:v.jsx(Me.ChevronRight,{size:16})})]}),Z>0&&v.jsx("div",{className:"grid grid-cols-2 md:grid-cols-5 gap-3",children:[{label:"Total Students",value:Z,icon:Me.Users,color:"text-blue-600",bg:"bg-blue-50"},{label:"Present",value:ee,icon:Me.CheckCircle2,color:"text-emerald-600",bg:"bg-emerald-50"},{label:"Absent",value:ce,icon:Me.XCircle,color:"text-red-600",bg:"bg-red-50"},{label:"Late",value:P,icon:Me.Clock,color:"text-amber-600",bg:"bg-amber-50"},{label:"Attendance Rate",value:`${I}%`,icon:Me.Percent,color:"text-purple-600",bg:"bg-purple-50"}].map(ne=>v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 text-center",children:[v.jsx("div",{className:`${ne.bg} w-10 h-10 rounded-xl mx-auto mb-2 flex items-center justify-center`,children:v.jsx(ne.icon,{size:18,className:ne.color})}),v.jsx("p",{className:`text-xl font-bold ${ne.color}`,children:v.jsx(IO,{value:ne.value,id:`att-${x}-${i}-${ne.label}`})}),v.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:ne.label})]},ne.label))}),!r&&e.length>0&&v.jsxs("div",{className:`flex items-center gap-3 px-4 py-3 rounded-xl border ${t?"bg-emerald-50 border-emerald-200":"bg-amber-50 border-amber-200"}`,children:[t?v.jsx(Me.CheckCircle2,{size:18,className:"text-emerald-600 flex-shrink-0"}):v.jsx(Me.Clock,{size:18,className:"text-amber-600 flex-shrink-0"}),v.jsxs("div",{className:"flex-1",children:[v.jsx("p",{className:`text-sm font-medium ${t?"text-emerald-800":"text-amber-800"}`,children:t?"Attendance submitted for this date":"Attendance not yet submitted"}),v.jsx("p",{className:`text-xs ${t?"text-emerald-600":"text-amber-600"}`,children:t?"You can still edit and update the records below.":"Mark attendance and click submit when done."})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[t&&M.size>0&&v.jsxs("span",{className:"text-[10px] font-medium px-2 py-0.5 rounded-full bg-blue-100 text-blue-700",children:[M.size," changed"]}),v.jsx(Hs,{variant:t?"success":"warning",children:t?"Submitted":"Pending"})]})]}),p,r&&v.jsx("div",{className:"space-y-3",children:[1,2,3].map(ne=>v.jsx("div",{className:"h-14 bg-slate-100 rounded-lg animate-pulse"},ne))}),!r&&e.length===0&&v.jsx("p",{className:"text-sm text-slate-500 text-center py-8",children:"No students found for this class-section."}),e.length>0&&!r&&v.jsxs("div",{className:"bg-white rounded-xl border border-slate-200 shadow-sm",children:[v.jsxs("div",{className:"p-4 border-b border-slate-100 flex items-center justify-between flex-wrap gap-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("span",{className:"text-sm font-medium text-slate-700",children:[e.length," students"]}),t&&v.jsx(Hs,{variant:"success",children:"Submitted"})]}),v.jsxs("div",{className:"flex gap-2 items-center",children:[v.jsxs("div",{className:"relative",children:[v.jsx(Me.Search,{className:"absolute left-2.5 top-2 h-3.5 w-3.5 text-slate-400"}),v.jsx("input",{type:"text",value:N,onChange:ne=>{C(ne.target.value),U(0)},placeholder:"Search student...",className:"pl-8 pr-3 py-1.5 border border-slate-300 rounded-lg text-sm w-48 focus:outline-none focus:ring-2 focus:ring-primary-500"})]}),wE.map(ne=>v.jsxs("button",{onClick:()=>B(ne),className:`text-xs px-2 py-1 rounded border ${_E[ne]} hover:opacity-80`,children:["All ",ne]},ne))]})]}),m&&v.jsx("div",{className:"px-4 py-1.5 bg-slate-50 border-b border-slate-100",children:v.jsx("p",{className:"text-[11px] text-slate-400",children:"Keyboard: 1=Present, 2=Absent, 3=Late | Shift+1/2/3=Mark All"})}),v.jsx("div",{className:"divide-y divide-slate-100 max-h-[60vh] overflow-y-auto",children:fe.map((ne,K)=>{var Se;const he=((Se=w.find(Ae=>Ae.student_id===ne.student_id))==null?void 0:Se.status)||"Present",be=M.has(ne.student_id),se=Y(ne),Le=m&&K===D;return v.jsxs("div",{className:`px-4 py-3 flex items-center justify-between transition-colors ${be?"bg-blue-50/60 border-l-2 border-l-blue-400":Le?"bg-primary-50/50 ring-1 ring-inset ring-primary-200":"hover:bg-slate-50"}`,children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("span",{className:`text-xs w-6 ${Le?"text-primary-600 font-semibold":"text-slate-400"}`,children:K+1}),v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("p",{className:"text-sm font-medium text-slate-800",children:ne.full_name}),be&&v.jsx("span",{className:"text-[9px] font-medium px-1.5 py-0.5 rounded-full bg-blue-100 text-blue-700",children:"Modified"}),se>=3&&v.jsxs("span",{className:"flex items-center gap-0.5 text-[9px] font-medium px-1.5 py-0.5 rounded-full bg-red-100 text-red-700",title:`Absent for ${se} consecutive days`,children:[v.jsx(Me.AlertTriangle,{size:9}),se," days absent"]})]}),ne.roll_number&&v.jsx("p",{className:"text-xs text-slate-500",children:ne.roll_number})]})]}),v.jsx("div",{className:"flex gap-1",children:wE.map(Ae=>{const le=eie[Ae],De=he===Ae;return v.jsxs("button",{onClick:()=>H(ne.student_id,Ae),className:`flex items-center gap-1 px-2.5 py-1.5 rounded-md text-xs font-medium border transition-all ${De?_E[Ae]+" ring-1 ring-offset-1":"bg-white text-slate-500 border-slate-200 hover:bg-slate-50"}`,children:[v.jsx(le,{className:"h-3.5 w-3.5"}),Ae]},Ae)})})]},ne.student_id)})}),v.jsxs("div",{className:"p-4 border-t border-slate-100 flex justify-between",children:[d&&h?v.jsx(Kt,{variant:"secondary",icon:Me.FileDown,onClick:h,children:"Download Report"}):v.jsx("div",{}),v.jsx(Kt,{onClick:z,loading:a,disabled:w.length===0,children:t?"Update Attendance":"Submit Attendance"})]})]}),l&&c.length>0&&v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl overflow-hidden mt-6",children:[v.jsx("div",{className:"p-4 border-b border-slate-100",children:v.jsx("h3",{className:"text-sm font-semibold text-slate-900",children:"Attendance History"})}),v.jsx("div",{className:"divide-y divide-slate-100",children:c.map(ne=>v.jsxs("div",{className:"flex items-center justify-between p-4 hover:bg-slate-50",children:[v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[v.jsx("p",{className:"text-sm font-semibold text-slate-900",children:ne.class_section}),v.jsx(Hs,{variant:"success",children:"Submitted"})]}),v.jsxs("p",{className:"text-xs text-slate-500",children:[AE(ne.date)," • ",v.jsxs("span",{className:"text-emerald-600",children:[ne.present," Present"]})," • ",v.jsxs("span",{className:"text-red-600",children:[ne.absent," Absent"]})," • ",v.jsxs("span",{className:"text-amber-600",children:[ne.late||0," Late"]})]})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[u&&v.jsx("button",{onClick:()=>u(ne),className:"p-2 rounded-lg text-slate-400 hover:text-blue-600 hover:bg-blue-50",children:v.jsx(Me.Edit3,{size:16})}),f&&v.jsx("button",{onClick:()=>E(ne.id),className:"p-2 rounded-lg text-slate-400 hover:text-red-600 hover:bg-red-50",children:v.jsx(Me.Trash2,{size:16})})]})]},ne.id))})]}),v.jsx(Ty,{open:L,onClose:()=>R(!1),onConfirm:te,title:t?"Update Attendance":"Submit Attendance",message:q,confirmText:t?"Update":"Submit"}),l&&f&&v.jsx(Ty,{open:!!j,onClose:()=>E(null),onConfirm:()=>{f(j),E(null)},message:"Delete this attendance record?"}),b]})}const NE=[{label:"School",emojis:["📢","🏫","🎓","📚","📖","✏️","📝","🎒","🔔","📋","📐","🧪","🖥️","🎨","🎵","⚽"]},{label:"People",emojis:["👋","👏","🙏","💪","🤝","👨‍🏫","👩‍🏫","👨‍👩‍👧","🧑‍🎓","👦","👧","🙂","😊","🥳","😇","🤗"]},{label:"Celebrate",emojis:["🎉","🏆","⭐","🌟","🎯","🥇","🥈","🥉","🎊","🎁","💐","🌈","🔥","💯","👑","🙌"]},{label:"Alerts",emojis:["⚠️","🚨","❗","❓","📣","🔴","🟡","🟢","✅","❌","⏰","📌","🚫","💡","🔒","🔑"]},{label:"Money",emojis:["💰","💵","💸","🧾","💳","🏦","📊","📈","📉","🧮","💲","🪙","💎","🎫","🎟️","🏷️"]},{label:"Calendar",emojis:["📅","📆","🗓️","⏰","⏳","🕐","🕒","☀️","🌙","🌤️","🌧️","❄️","🍂","🌸","☃️","🎄"]},{label:"Transport",emojis:["🚌","🚗","🚐","🏍️","🚲","🛣️","📍","🗺️","🏠","🧭","✈️","🚂","⛽","🚦","🛑","🅿️"]},{label:"Health",emojis:["🏥","💊","🩺","🩹","😷","🧴","🧼","💉","🌡️","🍎","🥗","💧","🏋️","🧘","❤️","🫀"]}];function rie({title:e,setTitle:t,message:r,setMessage:n,onSend:a,isSending:i=!1,recipientCount:o=0,recipientLabel:s="",children:l,sendButtonLabel:c,templates:u}){const[f,d]=W.useState(!1),[h,x]=W.useState(!1),[p,m]=W.useState(0),y=C=>{n(L=>L+C),x(!1)},b=r.length>500,w=r.match(/\[[^\]]+\]/g)||[],S=w.length>0,A=()=>{!e||!r||d(!0)},O=()=>{d(!1),a()},N=i?"Sending...":`Send to ${o} Recipients`;return v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[v.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[v.jsx("div",{className:"w-7 h-7 rounded-lg bg-gradient-to-br from-blue-50 to-blue-100 flex items-center justify-center",children:v.jsx(Me.Send,{size:13,className:"text-blue-600"})}),v.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Compose Message"})]}),u&&u.length>0&&v.jsxs("div",{className:"mb-4",children:[v.jsx("p",{className:"text-[11px] text-slate-500 mb-2",children:"Quick Templates"}),v.jsx("div",{className:"flex flex-wrap gap-2",children:u.map(C=>v.jsx("button",{onClick:()=>{t(C.title),n(C.message)},className:"px-2.5 py-1.5 text-[11px] font-medium bg-slate-100 text-slate-600 rounded-lg hover:bg-primary-50 hover:text-primary-700 transition-colors",children:C.label},C.label))})]}),v.jsxs("div",{className:"space-y-3",children:[v.jsxs("div",{children:[v.jsx("label",{className:"text-xs font-medium text-slate-500 mb-1.5 block",children:"Message Title *"}),v.jsx("input",{value:e,onChange:C=>t(C.target.value),placeholder:"e.g. Fee Payment Reminder",className:"w-full border border-slate-300 rounded-lg px-3.5 py-2.5 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),v.jsxs("div",{className:"relative",children:[v.jsx("label",{className:"text-xs font-medium text-slate-500 mb-1.5 block",children:"Message Content *"}),v.jsx("textarea",{value:r,onChange:C=>n(C.target.value),rows:5,placeholder:"Write your notification message here...",className:"w-full border border-slate-300 rounded-lg px-3.5 py-2.5 text-sm resize-none focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"}),S&&v.jsxs("div",{className:"mt-2 bg-amber-50 border border-amber-200 rounded-lg px-3 py-2 flex items-start gap-2",children:[v.jsx(Me.AlertTriangle,{size:14,className:"text-amber-600 mt-0.5 flex-shrink-0"}),v.jsxs("div",{children:[v.jsx("p",{className:"text-xs font-medium text-amber-800",children:"Unfilled placeholders detected"}),v.jsxs("p",{className:"text-[11px] text-amber-700 mt-0.5",children:["Replace these with actual values before sending:"," ",w.map((C,L)=>v.jsx("span",{className:"inline-block bg-amber-100 text-amber-800 px-1.5 py-0.5 rounded text-[10px] font-mono mr-1 mt-0.5",children:C},L))]})]})]}),v.jsxs("div",{className:"flex items-center justify-between mt-1.5",children:[v.jsx("div",{className:"flex items-center gap-2",children:v.jsxs("div",{className:"relative",children:[v.jsx("button",{onClick:()=>x(!h),className:"p-1.5 rounded-lg hover:bg-slate-100 text-slate-400 hover:text-slate-600 transition-colors",title:"Insert emoji",children:v.jsx(Me.Smile,{size:16})}),h&&v.jsxs("div",{className:"absolute bottom-full left-0 mb-1 bg-white border border-slate-200 rounded-2xl shadow-xl p-3 z-50 w-[300px]",children:[v.jsx("div",{className:"flex gap-1 mb-2 overflow-x-auto pb-1 border-b border-slate-100",children:NE.map((C,L)=>v.jsx("button",{onClick:()=>m(L),className:`px-2 py-1 text-[10px] font-medium rounded-md whitespace-nowrap transition-colors ${p===L?"bg-primary-100 text-primary-700":"text-slate-500 hover:bg-slate-100"}`,children:C.label},C.label))}),v.jsx("div",{className:"grid grid-cols-8 gap-0.5",children:NE[p].emojis.map(C=>v.jsx("button",{onClick:()=>y(C),className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-slate-100 text-lg transition-colors",children:C},C))})]})]})}),v.jsxs("div",{className:"flex items-center gap-2",children:[b&&v.jsxs("span",{className:"flex items-center gap-1 text-[10px] text-amber-600",children:[v.jsx(Me.AlertTriangle,{size:10}),"Long message"]}),v.jsxs("span",{className:`text-[10px] ${b?"text-amber-600 font-medium":"text-slate-400"}`,children:[r.length," chars"]})]})]})]})]})]}),(e||r)&&v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[v.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[v.jsx("div",{className:"w-7 h-7 rounded-lg bg-gradient-to-br from-green-50 to-green-100 flex items-center justify-center",children:v.jsx("span",{className:"text-xs",children:"👁"})}),v.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Preview"})]}),v.jsx("div",{className:"bg-slate-50 rounded-xl p-4 border border-slate-100",children:v.jsxs("div",{className:"flex items-start gap-3",children:[v.jsx("div",{className:"w-9 h-9 rounded-full bg-gradient-to-br from-indigo-500 to-indigo-600 flex items-center justify-center flex-shrink-0",children:v.jsx(Me.Send,{size:14,className:"text-white"})}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[v.jsx("p",{className:"text-sm font-bold text-slate-900",children:e||"Notification Title"}),v.jsx("span",{className:"text-[10px] text-slate-400",children:"Just now"})]}),v.jsx("p",{className:"text-sm text-slate-600 whitespace-pre-wrap",children:r||"Message content will appear here..."}),s&&v.jsxs("div",{className:"flex items-center gap-2 mt-2 pt-2 border-t border-slate-200",children:[v.jsx("span",{className:"text-[10px] text-slate-400",children:"To:"}),v.jsx("span",{className:"text-[10px] bg-slate-200 text-slate-600 px-1.5 py-0.5 rounded",children:s})]})]})]})})]}),l,v.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 md:p-5 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S&&v.jsxs("div",{className:"mb-3 flex items-center gap-2 text-xs text-amber-700 bg-amber-50 border border-amber-200 rounded-lg px-3 py-2",children:[v.jsx(Me.AlertTriangle,{size:13,className:"flex-shrink-0"}),v.jsxs("span",{children:["You have unfilled placeholders like ",v.jsx("span",{className:"font-mono font-medium",children:"[Date]"})," in your message. Replace them before sending."]})]}),v.jsxs("button",{onClick:A,disabled:!e||!r||S||i,className:"w-full py-3 bg-indigo-600 hover:bg-indigo-700 text-white font-semibold rounded-xl disabled:opacity-50 transition-all duration-150 active:scale-[0.97] flex items-center justify-center gap-2 shadow-lg shadow-indigo-500/20 hover:shadow-xl hover:shadow-indigo-500/30",children:[v.jsx(Me.Send,{className:"w-4 h-4"}),c||N]})]}),v.jsx(Gc,{open:f,onClose:()=>d(!1),title:"Confirm Send",size:"md",persistent:!1,children:v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"bg-indigo-50 border border-indigo-200 rounded-xl p-4 flex items-start gap-3",children:[v.jsx(Me.Send,{size:18,className:"text-indigo-600 mt-0.5 flex-shrink-0"}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-semibold text-indigo-900",children:"Send this notification now?"}),v.jsxs("p",{className:"text-xs text-indigo-700 mt-1",children:["This will be delivered to ",v.jsx("span",{className:"font-bold",children:o})," recipient(s)",s?` in: ${s}`:""]})]})]}),v.jsxs("div",{className:"bg-slate-50 rounded-lg p-3 border border-slate-100",children:[v.jsx("p",{className:"text-xs text-slate-500 mb-1",children:"Title"}),v.jsx("p",{className:"text-sm font-medium text-slate-800",children:e}),v.jsx("p",{className:"text-xs text-slate-500 mt-2 mb-1",children:"Message"}),v.jsx("p",{className:"text-sm text-slate-700 line-clamp-3",children:r})]}),v.jsxs("div",{className:"flex justify-end gap-2 pt-2 border-t border-slate-100",children:[v.jsx(Kt,{variant:"ghost",onClick:()=>d(!1),children:"Cancel"}),v.jsx(Kt,{variant:"primary",onClick:O,children:"Send Now"})]})]})})]})}function nie({pages:e=[],maxVisible:t=8}){const[r,n]=W.useState(!1),[a,i]=W.useState(""),[o,s]=W.useState(0),l=W.useRef(null),c=W.useRef(null),u=bo.useNavigate(),f=a.trim()?e.filter(p=>{const m=a.toLowerCase();return p.label.toLowerCase().includes(m)||(p.keywords||"").toLowerCase().includes(m)}):e.slice(0,t);W.useEffect(()=>{function p(m){(m.metaKey||m.ctrlKey)&&m.key==="k"&&(m.preventDefault(),n(y=>!y))}return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[]),W.useEffect(()=>{r&&(i(""),s(0),setTimeout(()=>{var p;return(p=l.current)==null?void 0:p.focus()},50))},[r]),W.useEffect(()=>{s(0)},[a]);const d=W.useCallback(p=>{n(!1),u(p.path)},[u]),h=p=>{p.key==="ArrowDown"?(p.preventDefault(),s(m=>Math.min(m+1,f.length-1)),x(Math.min(o+1,f.length-1))):p.key==="ArrowUp"?(p.preventDefault(),s(m=>Math.max(m-1,0)),x(Math.max(o-1,0))):p.key==="Enter"&&f[o]?d(f[o]):p.key==="Escape"&&n(!1)},x=p=>{var y;const m=(y=c.current)==null?void 0:y.children[p];m&&m.scrollIntoView({block:"nearest"})};return r?v.jsxs("div",{className:"fixed inset-0 z-[100]",children:[v.jsx("div",{className:"fixed inset-0 bg-black/40 backdrop-blur-sm",onClick:()=>n(!1)}),v.jsx("div",{className:"fixed top-[20%] left-1/2 -translate-x-1/2 w-full max-w-lg",children:v.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl border border-slate-200 overflow-hidden",children:[v.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-slate-100",children:[v.jsx(Me.Search,{size:18,className:"text-slate-400 flex-shrink-0"}),v.jsx("input",{ref:l,value:a,onChange:p=>i(p.target.value),onKeyDown:h,placeholder:"Search pages... (type to filter)",className:"flex-1 text-sm text-slate-800 placeholder-slate-400 outline-none bg-transparent"}),v.jsx("kbd",{className:"text-[10px] bg-slate-100 border border-slate-200 px-1.5 py-0.5 rounded text-slate-400 font-mono",children:"ESC"})]}),v.jsxs("div",{ref:c,className:"max-h-[320px] overflow-y-auto py-2",children:[f.length===0&&v.jsx("div",{className:"px-4 py-8 text-center",children:v.jsxs("p",{className:"text-sm text-slate-400",children:['No results for "',a,'"']})}),f.map((p,m)=>{const y=p.icon,b=m===o;return v.jsxs("button",{onClick:()=>d(p),onMouseEnter:()=>s(m),className:`w-full flex items-center gap-3 px-4 py-2.5 text-left transition-colors duration-75 ${b?"bg-primary-50":"hover:bg-slate-50"}`,children:[v.jsx("div",{className:`w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0 ${b?"bg-primary-100":"bg-slate-100"}`,children:y&&v.jsx(y,{size:15,className:b?"text-primary-600":"text-slate-500"})}),v.jsx("span",{className:`text-sm flex-1 ${b?"text-primary-700 font-medium":"text-slate-700"}`,children:p.label}),b&&v.jsx(Me.ArrowRight,{size:14,className:"text-primary-400"})]},p.path+p.label)})]}),v.jsxs("div",{className:"flex items-center gap-4 px-4 py-2.5 border-t border-slate-100 bg-slate-50/50",children:[v.jsxs("span",{className:"flex items-center gap-1 text-[10px] text-slate-400",children:[v.jsx("kbd",{className:"bg-white border border-slate-200 px-1 py-0.5 rounded font-mono",children:"↑↓"})," navigate"]}),v.jsxs("span",{className:"flex items-center gap-1 text-[10px] text-slate-400",children:[v.jsx("kbd",{className:"bg-white border border-slate-200 px-1 py-0.5 rounded font-mono",children:"↵"})," open"]}),v.jsxs("span",{className:"flex items-center gap-1 text-[10px] text-slate-400",children:[v.jsx("kbd",{className:"bg-white border border-slate-200 px-1 py-0.5 rounded font-mono",children:"esc"})," close"]})]})]})})]}):null}exports.AnimatedNumber=IO;exports.AttendanceMarkingView=tie;exports.Badge=Hs;exports.Breadcrumb=wb;exports.Button=Kt;exports.Card=qB;exports.CardContent=zB;exports.CardHeader=UB;exports.CardTitle=WB;exports.ChangePasswordModal=D$;exports.Checkbox=h$;exports.CommandPalette=nie;exports.ConfirmDialog=Ty;exports.DataTable=KB;exports.DateInput=x$;exports.DatePicker=$O;exports.DateRangePicker=A$;exports.EmptyState=j$;exports.ErrorBoundary=T$;exports.FilterBar=BO;exports.HoverCard=O$;exports.Input=FO;exports.LoginPage=M$;exports.Modal=Gc;exports.MultiStepFormModal=Zae;exports.NetworkStatus=E$;exports.NotificationComposer=rie;exports.Pagination=F$;exports.PrintHeader=Qae;exports.ProfileHeader=B$;exports.ProfileInfoGrid=$$;exports.ProtectedRoute=r$;exports.RecentActivities=n$;exports.ResetPasswordModal=R$;exports.SearchInput=MO;exports.SearchableSelect=so;exports.SectionCard=C$;exports.Select=VB;exports.SessionTimeout=k$;exports.Sidebar=JB;exports.Skeleton=Zn;exports.SkeletonCard=e$;exports.SkeletonDashboard=DO;exports.SkeletonTable=t$;exports.SortableHeader=P$;exports.StudentDetailView=Xae;exports.Tabs=f$;exports.TeacherDetailView=Jae;exports.TimeInput=N$;exports.TimetableGrid=I$;exports.ToastProvider=c$;exports.Topbar=QB;exports._typeof=cr;exports.cn=gt;exports.commonjsGlobal=Xl;exports.exportMultiSheetExcel=NB;exports.exportToCsv=Ok;exports.exportToExcel=AB;exports.generateAttendanceReport=FL;exports.generateFeeReceipt=IL;exports.generatePdf=kL;exports.generateStudentReportCard=LL;exports.getDefaultExportFromCjs=ur;exports.getSchoolInfo=TB;exports.useClassSectionFilter=RB;exports.useFormDraft=OB;exports.useKeyboardShortcuts=PB;exports.useLocalStorage=EB;exports.usePagination=DB;exports.useRecentlyViewed=CB;exports.useSortableData=IB;exports.useTabState=kB;exports.useToast=u$;