school-erp-ui-shared 1.0.6 → 1.0.8
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.
- package/dist/{index-w4K2DpCr.mjs → index-B8UrwxeE.mjs} +12417 -13151
- package/dist/index-VPcXqKMx.js +444 -0
- package/dist/index.cjs +1 -1
- package/dist/{index.es-DR88qySW.js → index.es-C8xf58cD.js} +1 -1
- package/dist/{index.es-CBEF9glx.mjs → index.es-DchQ0MAm.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/index-CHrf1eaj.js +0 -444
package/dist/index-CHrf1eaj.js
DELETED
|
@@ -1,444 +0,0 @@
|
|
|
1
|
-
"use strict";var Dw=e=>{throw TypeError(e)};var av=(e,t,r)=>t.has(e)||Dw("Cannot "+r);var Ve=(e,t,r)=>(av(e,t,"read from private field"),r?r.call(e):t.get(e)),Cr=(e,t,r)=>t.has(e)?Dw("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),$t=(e,t,r,n)=>(av(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),tn=(e,t,r)=>(av(e,t,"access private method"),r);const V=require("react"),S=require("react/jsx-runtime"),Xe=require("lucide-react"),fl=require("react-router-dom");function qk(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 vn=qk(V);function mP(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=mP(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function kt(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=mP(e))&&(n&&(n+=" "),n+=t);return n}const jb="-",Uk=e=>{const t=Wk(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(jb);return s[0]===""&&s.length!==1&&s.shift(),gP(s,t)||zk(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},gP=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?gP(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(jb);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},Bw=/^\[(.+)\]$/,zk=e=>{if(Bw.test(e)){const t=Bw.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Wk=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Gk(Object.entries(e.classGroups),r).forEach(([a,o])=>{L2(o,n,a,t)}),n},L2=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:$w(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(Hk(i)){L2(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{L2(o,$w(t,a),r,n)})})},$w=(e,t)=>{let r=e;return t.split(jb).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Hk=e=>e.isThemeGetter,Gk=(e,t)=>t?e.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,s])=>[t+o,s])):a);return[r,i]}):e,Vk=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){r.has(a)?r.set(a,o):i(a,o)}}},yP="!",Kk=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=s=>{const l=[];let u=0,c=0,f;for(let m=0;m<s.length;m++){let y=s[m];if(u===0){if(y===i&&(n||s.slice(m,m+a)===t)){l.push(s.slice(c,m)),c=m+a;continue}if(y==="/"){f=m;continue}}y==="["?u++:y==="]"&&u--}const d=l.length===0?s:s.substring(c),h=d.startsWith(yP),g=h?d.substring(1):d,p=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:p}};return r?s=>r({className:s,parseClassName:o}):o},Yk=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},Xk=e=>({cache:Vk(e.cacheSize),parseClassName:Kk(e),...Uk(e)}),Jk=/\s+/,Zk=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(Jk);let s="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=r(u);let g=!!h,p=n(g?d.substring(0,h):d);if(!p){if(!g){s=u+(s.length>0?" "+s:s);continue}if(p=n(d),!p){s=u+(s.length>0?" "+s:s);continue}g=!1}const m=Yk(c).join(":"),y=f?m+yP:m,x=y+p;if(a.includes(x))continue;a.push(x);const w=i(p,g);for(let A=0;A<w.length;++A){const _=w[A];a.push(y+_)}s=u+(s.length>0?" "+s:s)}return s};function Qk(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=xP(t))&&(n&&(n+=" "),n+=r);return n}const xP=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=xP(e[n]))&&(r&&(r+=" "),r+=t);return r};function eL(e,...t){let r,n,i,a=o;function o(l){const u=t.reduce((c,f)=>f(c),e());return r=Xk(u),n=r.cache.get,i=r.cache.set,a=s,s(l)}function s(l){const u=n(l);if(u)return u;const c=Zk(l,r);return i(l,c),c}return function(){return a(Qk.apply(null,arguments))}}const jr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},bP=/^\[(?:([a-z-]+):)?(.+)\]$/i,tL=/^\d+\/\d+$/,rL=new Set(["px","full","screen"]),nL=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iL=/\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$/,aL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,po=e=>gu(e)||rL.has(e)||tL.test(e),es=e=>cc(e,"length",vL),gu=e=>!!e&&!Number.isNaN(Number(e)),ov=e=>cc(e,"number",gu),Jc=e=>!!e&&Number.isInteger(Number(e)),lL=e=>e.endsWith("%")&&gu(e.slice(0,-1)),Ft=e=>bP.test(e),ts=e=>nL.test(e),uL=new Set(["length","size","percentage"]),cL=e=>cc(e,uL,wP),fL=e=>cc(e,"position",wP),hL=new Set(["image","url"]),dL=e=>cc(e,hL,gL),pL=e=>cc(e,"",mL),Zc=()=>!0,cc=(e,t,r)=>{const n=bP.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},vL=e=>iL.test(e)&&!aL.test(e),wP=()=>!1,mL=e=>oL.test(e),gL=e=>sL.test(e),yL=()=>{const e=jr("colors"),t=jr("spacing"),r=jr("blur"),n=jr("brightness"),i=jr("borderColor"),a=jr("borderRadius"),o=jr("borderSpacing"),s=jr("borderWidth"),l=jr("contrast"),u=jr("grayscale"),c=jr("hueRotate"),f=jr("invert"),d=jr("gap"),h=jr("gradientColorStops"),g=jr("gradientColorStopPositions"),p=jr("inset"),m=jr("margin"),y=jr("opacity"),x=jr("padding"),w=jr("saturate"),A=jr("scale"),_=jr("sepia"),E=jr("skew"),T=jr("space"),k=jr("translate"),L=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",Ft,t],P=()=>[Ft,t],M=()=>["",po,es],q=()=>["auto",gu,Ft],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",Ft],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[gu,Ft];return{cacheSize:500,separator:":",theme:{colors:[Zc],spacing:[po,es],blur:["none","",ts,Ft],brightness:le(),borderColor:[e],borderRadius:["none","","full",ts,Ft],borderSpacing:P(),borderWidth:M(),contrast:le(),grayscale:Z(),hueRotate:le(),invert:Z(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[lL,es],inset:C(),margin:C(),opacity:le(),padding:P(),saturate:le(),scale:le(),sepia:Z(),skew:le(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",Ft]}],container:["container"],columns:[{columns:[ts]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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:[...J(),Ft]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],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",Jc,Ft]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ft]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Jc,Ft]}],"grid-cols":[{"grid-cols":[Zc]}],"col-start-end":[{col:["auto",{span:["full",Jc,Ft]},Ft]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[Zc]}],"row-start-end":[{row:["auto",{span:[Jc,Ft]},Ft]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ft]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ft]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...ee()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ee(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ee(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],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":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ft,t]}],"min-w":[{"min-w":[Ft,t,"min","max","fit"]}],"max-w":[{"max-w":[Ft,t,"none","full","min","max","fit","prose",{screen:[ts]},ts]}],h:[{h:[Ft,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ft,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ft,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ft,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ts,es]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ov]}],"font-family":[{font:[Zc]}],"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",Ft]}],"line-clamp":[{"line-clamp":["none",gu,ov]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",po,Ft]}],"list-image":[{"list-image":["none",Ft]}],"list-style-type":[{list:["none","disc","decimal",Ft]}],"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:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",po,es]}],"underline-offset":[{"underline-offset":["auto",po,Ft]}],"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:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ft]}],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",Ft]}],"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:[...J(),fL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cL]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},dL]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"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:[...U(),"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:U()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[po,Ft]}],"outline-w":[{outline:[po,es]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[po,es]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ts,pL]}],"shadow-color":[{shadow:[Zc]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ts,Ft]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"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",Ft]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",Ft]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ft]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[Jc,Ft]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ft]}],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",Ft]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",Ft]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[po,es,ov]}],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"]}}},xL=eL(yL);function It(...e){return xL(kt(e))}function bL(e,t,r){const n=[t.join(","),...r.map(s=>s.map(l=>`"${String(l||"").replace(/"/g,'""')}"`).join(","))].join(`
|
|
2
|
-
`),i=new Blob([n],{type:"text/csv;charset=utf-8;"}),a=URL.createObjectURL(i),o=document.createElement("a");o.href=a,o.download=`${e}.csv`,o.click(),URL.revokeObjectURL(a)}function sr(e){"@babel/helpers - typeof";return sr=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},sr(e)}var Hn=Uint8Array,Mi=Uint16Array,kb=Int32Array,kp=new Hn([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]),Lp=new Hn([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]),I2=new Hn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_P=function(e,t){for(var r=new Mi(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new kb(r[30]),n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return{b:r,r:i}},SP=_P(kp,2),AP=SP.b,F2=SP.r;AP[28]=258,F2[258]=28;var TP=_P(Lp,0),wL=TP.b,qw=TP.r,R2=new Mi(32768);for(var Lr=0;Lr<32768;++Lr){var rs=(Lr&43690)>>1|(Lr&21845)<<1;rs=(rs&52428)>>2|(rs&13107)<<2,rs=(rs&61680)>>4|(rs&3855)<<4,R2[Lr]=((rs&65280)>>8|(rs&255)<<8)>>1}var Va=(function(e,t,r){for(var n=e.length,i=0,a=new Mi(t);i<n;++i)e[i]&&++a[e[i]-1];var o=new Mi(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(r){s=new Mi(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var u=i<<4|e[i],c=t-e[i],f=o[e[i]-1]++<<c,d=f|(1<<c)-1;f<=d;++f)s[R2[f]>>l]=u}else for(s=new Mi(n),i=0;i<n;++i)e[i]&&(s[i]=R2[o[e[i]-1]++]>>15-e[i]);return s}),xs=new Hn(288);for(var Lr=0;Lr<144;++Lr)xs[Lr]=8;for(var Lr=144;Lr<256;++Lr)xs[Lr]=9;for(var Lr=256;Lr<280;++Lr)xs[Lr]=7;for(var Lr=280;Lr<288;++Lr)xs[Lr]=8;var Rf=new Hn(32);for(var Lr=0;Lr<32;++Lr)Rf[Lr]=5;var _L=Va(xs,9,0),SL=Va(xs,9,1),AL=Va(Rf,5,0),TL=Va(Rf,5,1),sv=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},ma=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},lv=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Lb=function(e){return(e+7)/8|0},EP=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new Hn(e.subarray(t,r))},EL=["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"],wa=function(e,t,r){var n=new Error(t||EL[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,wa),!r)throw n;return n},OL=function(e,t,r,n){var i=e.length,a=0;if(!i||t.f&&!t.l)return r||new Hn(0);var o=!r,s=o||t.i!=2,l=t.i;o&&(r=new Hn(i*3));var u=function(Se){var ue=r.length;if(Se>ue){var Ie=new Hn(Math.max(ue*2,Se));Ie.set(r),r=Ie}},c=t.f||0,f=t.p||0,d=t.b||0,h=t.l,g=t.d,p=t.m,m=t.n,y=i*8;do{if(!h){c=ma(e,f,1);var x=ma(e,f+1,3);if(f+=3,x)if(x==1)h=SL,g=TL,p=9,m=5;else if(x==2){var E=ma(e,f,31)+257,T=ma(e,f+10,15)+4,k=E+ma(e,f+5,31)+1;f+=14;for(var L=new Hn(k),D=new Hn(19),C=0;C<T;++C)D[I2[C]]=ma(e,f+C*3,7);f+=T*3;for(var P=sv(D),M=(1<<P)-1,q=Va(D,P,1),C=0;C<k;){var J=q[ma(e,f,M)];f+=J&15;var w=J>>4;if(w<16)L[C++]=w;else{var U=0,H=0;for(w==16?(H=3+ma(e,f,3),f+=2,U=L[C-1]):w==17?(H=3+ma(e,f,7),f+=3):w==18&&(H=11+ma(e,f,127),f+=7);H--;)L[C++]=U}}var ee=L.subarray(0,E),Z=L.subarray(E);p=sv(ee),m=sv(Z),h=Va(ee,p,1),g=Va(Z,m,1)}else wa(1);else{var w=Lb(f)+4,A=e[w-4]|e[w-3]<<8,_=w+A;if(_>i){l&&wa(0);break}s&&u(d+A),r.set(e.subarray(w,_),d),t.b=d+=A,t.p=f=_*8,t.f=c;continue}if(f>y){l&&wa(0);break}}s&&u(d+131072);for(var Q=(1<<p)-1,le=(1<<m)-1,N=f;;N=f){var U=h[lv(e,f)&Q],I=U>>4;if(f+=U&15,f>y){l&&wa(0);break}if(U||wa(2),I<256)r[d++]=I;else if(I==256){N=f,h=null;break}else{var R=I-254;if(I>264){var C=I-257,B=kp[C];R=ma(e,f,(1<<B)-1)+AP[C],f+=B}var G=g[lv(e,f)&le],ce=G>>4;G||wa(3),f+=G&15;var Z=wL[ce];if(ce>3){var B=Lp[ce];Z+=lv(e,f)&(1<<B)-1,f+=B}if(f>y){l&&wa(0);break}s&&u(d+131072);var he=d+R;if(d<Z){var ne=a-Z,me=Math.min(Z,he);for(ne+d<0&&wa(3);d<me;++d)r[d]=n[ne+d]}for(;d<he;++d)r[d]=r[d-Z]}}t.l=h,t.p=N,t.b=d,t.f=c,h&&(c=1,t.m=p,t.d=g,t.n=m)}while(!c);return d!=r.length&&o?EP(r,0,d):r.subarray(0,d)},vo=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},Qc=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},uv=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,a=r.slice();if(!i)return{t:PP,l:0};if(i==1){var o=new Hn(r[0].s+1);return o[r[0].s]=1,{t:o,l:1}}r.sort(function(_,E){return _.f-E.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],u=0,c=1,f=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};c!=i-1;)s=r[r[u].f<r[f].f?u++:f++],l=r[u!=c&&r[u].f<r[f].f?u++:f++],r[c++]={s:-1,f:s.f+l.f,l:s,r:l};for(var d=a[0].s,n=1;n<i;++n)a[n].s>d&&(d=a[n].s);var h=new Mi(d+1),g=M2(r[c-1],h,0);if(g>t){var n=0,p=0,m=g-t,y=1<<m;for(a.sort(function(E,T){return h[T.s]-h[E.s]||E.f-T.f});n<i;++n){var x=a[n].s;if(h[x]>t)p+=y-(1<<g-h[x]),h[x]=t;else break}for(p>>=m;p>0;){var w=a[n].s;h[w]<t?p-=1<<t-h[w]++-1:++n}for(;n>=0&&p;--n){var A=a[n].s;h[A]==t&&(--h[A],++p)}g=t}return{t:new Hn(h),l:g}},M2=function(e,t,r){return e.s==-1?Math.max(M2(e.l,t,r+1),M2(e.r,t,r+1)):t[e.s]=r},Uw=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Mi(++t),n=0,i=e[0],a=1,o=function(l){r[n++]=l},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return{c:r.subarray(0,n),n:t}},ef=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},OP=function(e,t,r){var n=r.length,i=Lb(t+2);e[i]=n&255,e[i+1]=n>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<n;++a)e[i+a+4]=r[a];return(i+4+n)*8},zw=function(e,t,r,n,i,a,o,s,l,u,c){vo(t,c++,r),++i[256];for(var f=uv(i,15),d=f.t,h=f.l,g=uv(a,15),p=g.t,m=g.l,y=Uw(d),x=y.c,w=y.n,A=Uw(p),_=A.c,E=A.n,T=new Mi(19),k=0;k<x.length;++k)++T[x[k]&31];for(var k=0;k<_.length;++k)++T[_[k]&31];for(var L=uv(T,7),D=L.t,C=L.l,P=19;P>4&&!D[I2[P-1]];--P);var M=u+5<<3,q=ef(i,xs)+ef(a,Rf)+o,J=ef(i,d)+ef(a,p)+o+14+3*P+ef(T,D)+2*T[16]+3*T[17]+7*T[18];if(l>=0&&M<=q&&M<=J)return OP(t,c,e.subarray(l,l+u));var U,H,ee,Z;if(vo(t,c,1+(J<q)),c+=2,J<q){U=Va(d,h,0),H=d,ee=Va(p,m,0),Z=p;var Q=Va(D,C,0);vo(t,c,w-257),vo(t,c+5,E-1),vo(t,c+10,P-4),c+=14;for(var k=0;k<P;++k)vo(t,c+3*k,D[I2[k]]);c+=3*P;for(var le=[x,_],N=0;N<2;++N)for(var I=le[N],k=0;k<I.length;++k){var R=I[k]&31;vo(t,c,Q[R]),c+=D[R],R>15&&(vo(t,c,I[k]>>5&127),c+=I[k]>>12)}}else U=_L,H=xs,ee=AL,Z=Rf;for(var k=0;k<s;++k){var B=n[k];if(B>255){var R=B>>18&31;Qc(t,c,U[R+257]),c+=H[R+257],R>7&&(vo(t,c,B>>23&31),c+=kp[R]);var G=B&31;Qc(t,c,ee[G]),c+=Z[G],G>3&&(Qc(t,c,B>>5&8191),c+=Lp[G])}else Qc(t,c,U[B]),c+=H[B]}return Qc(t,c,U[256]),c+H[256]},PL=new kb([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),PP=new Hn(0),NL=function(e,t,r,n,i,a){var o=a.z||e.length,s=new Hn(n+o+5*(1+Math.ceil(o/7e3))+i),l=s.subarray(n,s.length-i),u=a.l,c=(a.r||0)&7;if(t){c&&(l[0]=a.r>>3);for(var f=PL[t-1],d=f>>13,h=f&8191,g=(1<<r)-1,p=a.p||new Mi(32768),m=a.h||new Mi(g+1),y=Math.ceil(r/3),x=2*y,w=function(ge){return(e[ge]^e[ge+1]<<y^e[ge+2]<<x)&g},A=new kb(25e3),_=new Mi(288),E=new Mi(32),T=0,k=0,L=a.i||0,D=0,C=a.w||0,P=0;L+2<o;++L){var M=w(L),q=L&32767,J=m[M];if(p[q]=J,m[M]=q,C<=L){var U=o-L;if((T>7e3||D>24576)&&(U>423||!u)){c=zw(e,l,0,A,_,E,k,D,P,L-P,c),D=T=k=0,P=L;for(var H=0;H<286;++H)_[H]=0;for(var H=0;H<30;++H)E[H]=0}var ee=2,Z=0,Q=h,le=q-J&32767;if(U>2&&M==w(L-le))for(var N=Math.min(d,U)-1,I=Math.min(32767,L),R=Math.min(258,U);le<=I&&--Q&&q!=J;){if(e[L+ee]==e[L+ee-le]){for(var B=0;B<R&&e[L+B]==e[L+B-le];++B);if(B>ee){if(ee=B,Z=le,B>N)break;for(var G=Math.min(le,B-2),ce=0,H=0;H<G;++H){var he=L-le+H&32767,ne=p[he],me=he-ne&32767;me>ce&&(ce=me,J=he)}}}q=J,J=p[q],le+=q-J&32767}if(Z){A[D++]=268435456|F2[ee]<<18|qw[Z];var Se=F2[ee]&31,ue=qw[Z]&31;k+=kp[Se]+Lp[ue],++_[257+Se],++E[ue],C=L+ee,++T}else A[D++]=e[L],++_[e[L]]}}for(L=Math.max(L,C);L<o;++L)A[D++]=e[L],++_[e[L]];c=zw(e,l,u,A,_,E,k,D,P,L-P,c),u||(a.r=c&7|l[c/8|0]<<3,c-=7,a.h=m,a.p=p,a.i=L,a.w=C)}else{for(var L=a.w||0;L<o+u;L+=65535){var Ie=L+65535;Ie>=o&&(l[c/8|0]=u,Ie=o),c=OP(l,c+1,e.subarray(L,Ie))}a.i=o}return EP(s,0,n+Lb(c)+i)},NP=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,a=r.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=n+=r[o];n=(n&65535)+15*(n>>16),i=(i&65535)+15*(i>>16)}e=n,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},CL=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new Hn(a.length+e.length);o.set(a),o.set(e,a.length),e=o,i.w=a.length}return NL(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,i)},CP=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},jL=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 i=NP();i.p(t.dictionary),CP(e,2,i.d())}},kL=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&wa(6,"invalid zlib data"),(e[1]>>5&1)==1&&wa(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function D2(e,t){t||(t={});var r=NP();r.p(e);var n=CL(e,t,t.dictionary?6:2,4);return jL(n,t),CP(n,n.length-4,r.d()),n}function LL(e,t){return OL(e.subarray(kL(e),-4),{i:2},t,t)}var IL=typeof TextDecoder<"u"&&new TextDecoder,FL=0;try{IL.decode(PP,{stream:!0}),FL=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 St=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function cv(){St.console&&typeof St.console.log=="function"&&St.console.log.apply(St.console,arguments)}var Sr={log:cv,warn:function(e){St.console&&(typeof St.console.warn=="function"?St.console.warn.apply(St.console,arguments):cv.call(null,arguments))},error:function(e){St.console&&(typeof St.console.error=="function"?St.console.error.apply(St.console,arguments):cv(e))}};function fv(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){Us(n.response,t,r)},n.onerror=function(){Sr.error("could not download file")},n.send()}function Ww(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function R0(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 gf,B2,Us=St.saveAs||((typeof window>"u"?"undefined":sr(window))!=="object"||window!==St?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=St.URL||St.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?Ww(i.href)?fv(e,t,r):R0(i,i.target="_blank"):R0(i)):(i.href=n.createObjectURL(e),setTimeout((function(){n.revokeObjectURL(i.href)}),4e4),setTimeout((function(){R0(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(Ww(e))fv(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout((function(){R0(n)}))}else navigator.msSaveOrOpenBlob((function(i,a){return a===void 0?a={autoBom:!1}:sr(a)!=="object"&&(Sr.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i})(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 fv(e,t,r);var i=e.type==="application/octet-stream",a=/constructor/i.test(St.HTMLElement)||St.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&(typeof FileReader>"u"?"undefined":sr(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var c=s.result;c=o?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=c:location=c,n=null},s.readAsDataURL(e)}else{var l=St.URL||St.webkitURL,u=l.createObjectURL(e);n?n.location=u:location.href=u,n=null,setTimeout((function(){l.revokeObjectURL(u)}),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 jP(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 i=r[n].re,a=r[n].process,o=i.exec(e);o&&(t=a(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),u=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),"#"+s+l+u}}/**
|
|
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 hv(e,t){var r=e[0],n=e[1],i=e[2],a=e[3];r=Bn(r,n,i,a,t[0],7,-680876936),a=Bn(a,r,n,i,t[1],12,-389564586),i=Bn(i,a,r,n,t[2],17,606105819),n=Bn(n,i,a,r,t[3],22,-1044525330),r=Bn(r,n,i,a,t[4],7,-176418897),a=Bn(a,r,n,i,t[5],12,1200080426),i=Bn(i,a,r,n,t[6],17,-1473231341),n=Bn(n,i,a,r,t[7],22,-45705983),r=Bn(r,n,i,a,t[8],7,1770035416),a=Bn(a,r,n,i,t[9],12,-1958414417),i=Bn(i,a,r,n,t[10],17,-42063),n=Bn(n,i,a,r,t[11],22,-1990404162),r=Bn(r,n,i,a,t[12],7,1804603682),a=Bn(a,r,n,i,t[13],12,-40341101),i=Bn(i,a,r,n,t[14],17,-1502002290),r=$n(r,n=Bn(n,i,a,r,t[15],22,1236535329),i,a,t[1],5,-165796510),a=$n(a,r,n,i,t[6],9,-1069501632),i=$n(i,a,r,n,t[11],14,643717713),n=$n(n,i,a,r,t[0],20,-373897302),r=$n(r,n,i,a,t[5],5,-701558691),a=$n(a,r,n,i,t[10],9,38016083),i=$n(i,a,r,n,t[15],14,-660478335),n=$n(n,i,a,r,t[4],20,-405537848),r=$n(r,n,i,a,t[9],5,568446438),a=$n(a,r,n,i,t[14],9,-1019803690),i=$n(i,a,r,n,t[3],14,-187363961),n=$n(n,i,a,r,t[8],20,1163531501),r=$n(r,n,i,a,t[13],5,-1444681467),a=$n(a,r,n,i,t[2],9,-51403784),i=$n(i,a,r,n,t[7],14,1735328473),r=qn(r,n=$n(n,i,a,r,t[12],20,-1926607734),i,a,t[5],4,-378558),a=qn(a,r,n,i,t[8],11,-2022574463),i=qn(i,a,r,n,t[11],16,1839030562),n=qn(n,i,a,r,t[14],23,-35309556),r=qn(r,n,i,a,t[1],4,-1530992060),a=qn(a,r,n,i,t[4],11,1272893353),i=qn(i,a,r,n,t[7],16,-155497632),n=qn(n,i,a,r,t[10],23,-1094730640),r=qn(r,n,i,a,t[13],4,681279174),a=qn(a,r,n,i,t[0],11,-358537222),i=qn(i,a,r,n,t[3],16,-722521979),n=qn(n,i,a,r,t[6],23,76029189),r=qn(r,n,i,a,t[9],4,-640364487),a=qn(a,r,n,i,t[12],11,-421815835),i=qn(i,a,r,n,t[15],16,530742520),r=Un(r,n=qn(n,i,a,r,t[2],23,-995338651),i,a,t[0],6,-198630844),a=Un(a,r,n,i,t[7],10,1126891415),i=Un(i,a,r,n,t[14],15,-1416354905),n=Un(n,i,a,r,t[5],21,-57434055),r=Un(r,n,i,a,t[12],6,1700485571),a=Un(a,r,n,i,t[3],10,-1894986606),i=Un(i,a,r,n,t[10],15,-1051523),n=Un(n,i,a,r,t[1],21,-2054922799),r=Un(r,n,i,a,t[8],6,1873313359),a=Un(a,r,n,i,t[15],10,-30611744),i=Un(i,a,r,n,t[6],15,-1560198380),n=Un(n,i,a,r,t[13],21,1309151649),r=Un(r,n,i,a,t[4],6,-145523070),a=Un(a,r,n,i,t[11],10,-1120210379),i=Un(i,a,r,n,t[2],15,718787259),n=Un(n,i,a,r,t[9],21,-343485551),e[0]=hs(r,e[0]),e[1]=hs(n,e[1]),e[2]=hs(i,e[2]),e[3]=hs(a,e[3])}function Ip(e,t,r,n,i,a){return t=hs(hs(t,e),hs(n,a)),hs(t<<i|t>>>32-i,r)}function Bn(e,t,r,n,i,a,o){return Ip(t&r|~t&n,e,t,i,a,o)}function $n(e,t,r,n,i,a,o){return Ip(t&n|r&~n,e,t,i,a,o)}function qn(e,t,r,n,i,a,o){return Ip(t^r^n,e,t,i,a,o)}function Un(e,t,r,n,i,a,o){return Ip(r^(t|~n),e,t,i,a,o)}function kP(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)hv(n,RL(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(hv(n,i),t=0;t<16;t++)i[t]=0;return i[14]=8*r,hv(n,i),n}function RL(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}gf=St.atob.bind(St),B2=St.btoa.bind(St);var Hw="0123456789abcdef".split("");function ML(e){for(var t="",r=0;r<4;r++)t+=Hw[e>>8*r+4&15]+Hw[e>>8*r&15];return t}function DL(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function $2(e){return kP(e).map(DL).join("")}var BL=(function(e){for(var t=0;t<e.length;t++)e[t]=ML(e[t]);return e.join("")})(kP("hello"))!="5d41402abc4b2a76b9719d911017c592";function hs(e,t){if(BL){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 q2(e,t){var r,n,i,a;if(e!==r){for(var o=(i=e,a=1+(256/e.length>>0),new Array(a+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var u=0;for(l=0;l<256;l++){var c=s[l];u=(u+c+o.charCodeAt(l))%256,s[l]=s[u],s[u]=c}r=e,n=s}else s=n;var f=t.length,d=0,h=0,g="";for(l=0;l<f;l++)h=(h+(c=s[d=(d+1)%256]))%256,s[d]=s[h],s[h]=c,o=s[(s[d]+s[h])%256],g+=String.fromCharCode(t.charCodeAt(l)^o);return g}/**
|
|
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 Gw={print:4,modify:8,copy:16,"annot-forms":32};function lu(e,t,r,n){this.v=1,this.r=2;var i=192;e.forEach((function(s){if(Gw.perm!==void 0)throw new Error("Invalid permission: "+s);i+=Gw[s]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var a=(t+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=$2(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=q2(this.encryptionKey,this.padding)}function uu(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 i=e.charCodeAt(n);i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?t+="#"+("0"+i.toString(16)).slice(-2):t+=e[n]}return t}function Vw(e){if(sr(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(r,n,i){if(i=i||!1,typeof r!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(r)||(t[r]={});var a=Math.random().toString(35);return t[r][a]=[n,!!i],a},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),i=[];for(var a in t[r]){var o=t[r][a];try{o[0].apply(e,n)}catch(s){St.console&&Sr.error("jsPDF PubSub Error",s.message,s)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Mf(e){if(!(this instanceof Mf))return new Mf(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 LP(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function os(e,t,r,n,i){if(!(this instanceof os))return new os(e,t,r,n,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=r,LP.call(this,n,i)}function Vs(e,t,r,n,i){if(!(this instanceof Vs))return new Vs(e,t,r,n,i);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,LP.call(this,n,i)}function mt(e){var t,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],o=[],s=1,l=16,u="S",c=null;sr(e=e||{})==="object"&&(r=e.orientation,n=e.unit||n,i=e.format||i,a=e.compress||e.compressPdf||a,(c=e.encryption||null)!==null&&(c.userPassword=c.userPassword||"",c.ownerPassword=c.ownerPassword||"",c.userPermissions=c.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),u=e.defaultPathOperation||"S"),o=e.filters||(a===!0?["FlateEncode"]:o),n=n||"mm",r=(""+(r||"P")).toLowerCase();var f=e.putOnlyUsedFonts||!1,d={},h={internal:{},__private__:{}};h.__private__.PubSub=Vw;var g="1.3",p=h.__private__.getPdfVersion=function(){return g};h.__private__.setPdfVersion=function(O){g=O};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(O){return m[O]};i=i||"a4";var x={COMPAT:"compat",ADVANCED:"advanced"},w=x.COMPAT;function A(){this.saveGraphicsState(),oe(new yt(ot,0,0,-ot,0,Uo()*ot).toString()+" cm"),this.setFontSize(this.getFontSize()/ot),u="n",w=x.ADVANCED}function _(){this.restoreGraphicsState(),u="S",w=x.COMPAT}var E=h.__private__.combineFontStyleAndFontWeight=function(O,W){if(O=="bold"&&W=="normal"||O=="bold"&&W==400||O=="normal"&&W=="italic"||O=="bold"&&W=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return W&&(O=W==400||W==="normal"?O==="italic"?"italic":"normal":W!=700&&W!=="bold"||O!=="normal"?(W==700?"bold":W)+""+O:"bold"),O};h.advancedAPI=function(O){var W=w===x.COMPAT;return W&&A.call(this),typeof O!="function"||(O(this),W&&_.call(this)),this},h.compatAPI=function(O){var W=w===x.ADVANCED;return W&&_.call(this),typeof O!="function"||(O(this),W&&A.call(this)),this},h.isAdvancedAPI=function(){return w===x.ADVANCED};var T,k=function(O){if(w!==x.ADVANCED)throw new Error(O+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},L=h.roundToPrecision=h.__private__.roundToPrecision=function(O,W){var ve=t||W;if(isNaN(O)||isNaN(ve))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return O.toFixed(ve).replace(/0+$/,"")};T=h.hpf=h.__private__.hpf=typeof l=="number"?function(O){if(isNaN(O))throw new Error("Invalid argument passed to jsPDF.hpf");return L(O,l)}:l==="smart"?function(O){if(isNaN(O))throw new Error("Invalid argument passed to jsPDF.hpf");return L(O,O>-1&&O<1?16:5)}:function(O){if(isNaN(O))throw new Error("Invalid argument passed to jsPDF.hpf");return L(O,16)};var D=h.f2=h.__private__.f2=function(O){if(isNaN(O))throw new Error("Invalid argument passed to jsPDF.f2");return L(O,2)},C=h.__private__.f3=function(O){if(isNaN(O))throw new Error("Invalid argument passed to jsPDF.f3");return L(O,3)},P=h.scale=h.__private__.scale=function(O){if(isNaN(O))throw new Error("Invalid argument passed to jsPDF.scale");return w===x.COMPAT?O*ot:w===x.ADVANCED?O:void 0},M=function(O){return w===x.COMPAT?Uo()-O:w===x.ADVANCED?O:void 0},q=function(O){return P(M(O))};h.__private__.setPrecision=h.setPrecision=function(O){typeof parseInt(O,10)=="number"&&(t=parseInt(O,10))};var J,U="00000000000000000000000000000000",H=h.__private__.getFileId=function(){return U},ee=h.__private__.setFileId=function(O){return U=O!==void 0&&/^[a-fA-F0-9]{32}$/.test(O)?O.toUpperCase():U.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),c!==null&&(Mn=new lu(c.userPermissions,c.userPassword,c.ownerPassword,U)),U};h.setFileId=function(O){return ee(O),this},h.getFileId=function(){return H()};var Z=h.__private__.convertDateToPDFDate=function(O){var W=O.getTimezoneOffset(),ve=W<0?"+":"-",ye=Math.floor(Math.abs(W/60)),Te=Math.abs(W%60),Fe=[ve,R(ye),"'",R(Te),"'"].join("");return["D:",O.getFullYear(),R(O.getMonth()+1),R(O.getDate()),R(O.getHours()),R(O.getMinutes()),R(O.getSeconds()),Fe].join("")},Q=h.__private__.convertPDFDateToDate=function(O){var W=parseInt(O.substr(2,4),10),ve=parseInt(O.substr(6,2),10)-1,ye=parseInt(O.substr(8,2),10),Te=parseInt(O.substr(10,2),10),Fe=parseInt(O.substr(12,2),10),He=parseInt(O.substr(14,2),10);return new Date(W,ve,ye,Te,Fe,He,0)},le=h.__private__.setCreationDate=function(O){var W;if(O===void 0&&(O=new Date),O instanceof Date)W=Z(O);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(O))throw new Error("Invalid argument passed to jsPDF.setCreationDate");W=O}return J=W},N=h.__private__.getCreationDate=function(O){var W=J;return O==="jsDate"&&(W=Q(J)),W};h.setCreationDate=function(O){return le(O),this},h.getCreationDate=function(O){return N(O)};var I,R=h.__private__.padd2=function(O){return("0"+parseInt(O)).slice(-2)},B=h.__private__.padd2Hex=function(O){return("00"+(O=O.toString())).substr(O.length)},G=0,ce=[],he=[],ne=0,me=[],Se=[],ue=!1,Ie=he,ge=function(){G=0,ne=0,he=[],ce=[],me=[],ie=Mr(),ae=Mr()};h.__private__.setCustomOutputDestination=function(O){ue=!0,Ie=O};var _e=function(O){ue||(Ie=O)};h.__private__.resetCustomOutputDestination=function(){ue=!1,Ie=he};var oe=h.__private__.out=function(O){return O=O.toString(),ne+=O.length+1,Ie.push(O),Ie},Re=h.__private__.write=function(O){return oe(arguments.length===1?O.toString():Array.prototype.join.call(arguments," "))},tt=h.__private__.getArrayBuffer=function(O){for(var W=O.length,ve=new ArrayBuffer(W),ye=new Uint8Array(ve);W--;)ye[W]=O.charCodeAt(W);return ve},Be=[["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 Be};var Ke=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(O){return Ke=w===x.ADVANCED?O/ot:O,this};var Ze,Je=h.__private__.getFontSize=h.getFontSize=function(){return w===x.COMPAT?Ke:Ke*ot},dt=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(O){return dt=O,this},h.__private__.getR2L=h.getR2L=function(){return dt};var pt,bt=h.__private__.setZoomMode=function(O){var W=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(O))Ze=O;else if(isNaN(O)){if(W.indexOf(O)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+O+'" is not recognized.');Ze=O}else Ze=parseInt(O,10)};h.__private__.getZoomMode=function(){return Ze};var Ot,Rt=h.__private__.setPageMode=function(O){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(O)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+O+'" is not recognized.');pt=O};h.__private__.getPageMode=function(){return pt};var qt=h.__private__.setLayoutMode=function(O){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(O)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+O+'" is not recognized.');Ot=O};h.__private__.getLayoutMode=function(){return Ot},h.__private__.setDisplayMode=h.setDisplayMode=function(O,W,ve){return bt(O),qt(W),Rt(ve),this};var _t={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(O){if(Object.keys(_t).indexOf(O)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return _t[O]},h.__private__.getDocumentProperties=function(){return _t},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(O){for(var W in _t)_t.hasOwnProperty(W)&&O[W]&&(_t[W]=O[W]);return this},h.__private__.setDocumentProperty=function(O,W){if(Object.keys(_t).indexOf(O)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return _t[O]=W};var Mt,ot,ln,zt,si,Qt={},Tr={},Bi=[],Gt={},Ia={},Nr={},_i={},la=null,wr=0,Tt=[],Kt=new Vw(h),ro=e.hotfixes||[],un={},$i={},qi=[],yt=function O(W,ve,ye,Te,Fe,He){if(!(this instanceof O))return new O(W,ve,ye,Te,Fe,He);isNaN(W)&&(W=1),isNaN(ve)&&(ve=0),isNaN(ye)&&(ye=0),isNaN(Te)&&(Te=1),isNaN(Fe)&&(Fe=0),isNaN(He)&&(He=0),this._matrix=[W,ve,ye,Te,Fe,He]};Object.defineProperty(yt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(O){this._matrix[0]=O}}),Object.defineProperty(yt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(O){this._matrix[1]=O}}),Object.defineProperty(yt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(O){this._matrix[2]=O}}),Object.defineProperty(yt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(O){this._matrix[3]=O}}),Object.defineProperty(yt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(O){this._matrix[4]=O}}),Object.defineProperty(yt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(O){this._matrix[5]=O}}),Object.defineProperty(yt.prototype,"a",{get:function(){return this._matrix[0]},set:function(O){this._matrix[0]=O}}),Object.defineProperty(yt.prototype,"b",{get:function(){return this._matrix[1]},set:function(O){this._matrix[1]=O}}),Object.defineProperty(yt.prototype,"c",{get:function(){return this._matrix[2]},set:function(O){this._matrix[2]=O}}),Object.defineProperty(yt.prototype,"d",{get:function(){return this._matrix[3]},set:function(O){this._matrix[3]=O}}),Object.defineProperty(yt.prototype,"e",{get:function(){return this._matrix[4]},set:function(O){this._matrix[4]=O}}),Object.defineProperty(yt.prototype,"f",{get:function(){return this._matrix[5]},set:function(O){this._matrix[5]=O}}),Object.defineProperty(yt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(yt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(yt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(yt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),yt.prototype.join=function(O){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(T).join(O)},yt.prototype.multiply=function(O){var W=O.sx*this.sx+O.shy*this.shx,ve=O.sx*this.shy+O.shy*this.sy,ye=O.shx*this.sx+O.sy*this.shx,Te=O.shx*this.shy+O.sy*this.sy,Fe=O.tx*this.sx+O.ty*this.shx+this.tx,He=O.tx*this.shy+O.ty*this.sy+this.ty;return new yt(W,ve,ye,Te,Fe,He)},yt.prototype.decompose=function(){var O=this.sx,W=this.shy,ve=this.shx,ye=this.sy,Te=this.tx,Fe=this.ty,He=Math.sqrt(O*O+W*W),ut=(O/=He)*ve+(W/=He)*ye;ve-=O*ut,ye-=W*ut;var vt=Math.sqrt(ve*ve+ye*ye);return ut/=vt,O*(ye/=vt)<W*(ve/=vt)&&(O=-O,W=-W,ut=-ut,He=-He),{scale:new yt(He,0,0,vt,0,0),translate:new yt(1,0,0,1,Te,Fe),rotate:new yt(O,W,-W,O,0,0),skew:new yt(1,0,ut,1,0,0)}},yt.prototype.toString=function(O){return this.join(" ")},yt.prototype.inversed=function(){var O=this.sx,W=this.shy,ve=this.shx,ye=this.sy,Te=this.tx,Fe=this.ty,He=1/(O*ye-W*ve),ut=ye*He,vt=-W*He,jt=-ve*He,Nt=O*He;return new yt(ut,vt,jt,Nt,-ut*Te-jt*Fe,-vt*Te-Nt*Fe)},yt.prototype.applyToPoint=function(O){var W=O.x*this.sx+O.y*this.shx+this.tx,ve=O.x*this.shy+O.y*this.sy+this.ty;return new Rl(W,ve)},yt.prototype.applyToRectangle=function(O){var W=this.applyToPoint(O),ve=this.applyToPoint(new Rl(O.x+O.w,O.y+O.h));return new jc(W.x,W.y,ve.x-W.x,ve.y-W.y)},yt.prototype.clone=function(){var O=this.sx,W=this.shy,ve=this.shx,ye=this.sy,Te=this.tx,Fe=this.ty;return new yt(O,W,ve,ye,Te,Fe)},h.Matrix=yt;var Si=h.matrixMult=function(O,W){return W.multiply(O)},li=new yt(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=li;var Rn=function(O,W){if(!Ia[O]){var ve=(W instanceof os?"Sh":"P")+(Object.keys(Gt).length+1).toString(10);W.id=ve,Ia[O]=ve,Gt[ve]=W,Kt.publish("addPattern",W)}};h.ShadingPattern=os,h.TilingPattern=Vs,h.addShadingPattern=function(O,W){return k("addShadingPattern()"),Rn(O,W),this},h.beginTilingPattern=function(O){k("beginTilingPattern()"),c0(O.boundingBox[0],O.boundingBox[1],O.boundingBox[2]-O.boundingBox[0],O.boundingBox[3]-O.boundingBox[1],O.matrix)},h.endTilingPattern=function(O,W){k("endTilingPattern()"),W.stream=Se[I].join(`
|
|
81
|
-
`),Rn(O,W),Kt.publish("endTilingPattern",W),qi.pop().restore()};var Wr=h.__private__.newObject=function(){var O=Mr();return Y(O,!0),O},Mr=h.__private__.newObjectDeferred=function(){return G++,ce[G]=function(){return ne},G},Y=function(O,W){return W=typeof W=="boolean"&&W,ce[O]=ne,W&&oe(O+" 0 obj"),O},de=h.__private__.newAdditionalObject=function(){var O={objId:Mr(),content:""};return me.push(O),O},ie=Mr(),ae=Mr(),fe=h.__private__.decodeColorString=function(O){var W=O.split(" ");if(W.length!==2||W[1]!=="g"&&W[1]!=="G")W.length===5&&(W[4]==="k"||W[4]==="K")&&(W=[(1-W[0])*(1-W[3]),(1-W[1])*(1-W[3]),(1-W[2])*(1-W[3]),"r"]);else{var ve=parseFloat(W[0]);W=[ve,ve,ve,"r"]}for(var ye="#",Te=0;Te<3;Te++)ye+=("0"+Math.floor(255*parseFloat(W[Te])).toString(16)).slice(-2);return ye},pe=h.__private__.encodeColorString=function(O){var W;typeof O=="string"&&(O={ch1:O});var ve=O.ch1,ye=O.ch2,Te=O.ch3,Fe=O.ch4,He=O.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ve=="string"&&ve.charAt(0)!=="#"){var ut=new jP(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 vt=parseInt(ve.substr(1),16);ve=vt>>16&255,ye=vt>>8&255,Te=255&vt}if(ye===void 0||Fe===void 0&&ve===ye&&ye===Te)if(typeof ve=="string")W=ve+" "+He[0];else switch(O.precision){case 2:W=D(ve/255)+" "+He[0];break;case 3:default:W=C(ve/255)+" "+He[0]}else if(Fe===void 0||sr(Fe)==="object"){if(Fe&&!isNaN(Fe.a)&&Fe.a===0)return W=["1.","1.","1.",He[1]].join(" ");if(typeof ve=="string")W=[ve,ye,Te,He[1]].join(" ");else switch(O.precision){case 2:W=[D(ve/255),D(ye/255),D(Te/255),He[1]].join(" ");break;default:case 3:W=[C(ve/255),C(ye/255),C(Te/255),He[1]].join(" ")}}else if(typeof ve=="string")W=[ve,ye,Te,Fe,He[2]].join(" ");else switch(O.precision){case 2:W=[D(ve),D(ye),D(Te),D(Fe),He[2]].join(" ");break;case 3:default:W=[C(ve),C(ye),C(Te),C(Fe),He[2]].join(" ")}return W},Oe=h.__private__.getFilters=function(){return o},ke=h.__private__.putStream=function(O){var W=(O=O||{}).data||"",ve=O.filters||Oe(),ye=O.alreadyAppliedFilters||[],Te=O.addLength1||!1,Fe=W.length,He=O.objectId,ut=function(Dn){return Dn};if(c!==null&&He===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");c!==null&&(ut=Mn.encryptor(He,0));var vt={};ve===!0&&(ve=["FlateEncode"]);var jt=O.additionalKeyValues||[],Nt=(vt=mt.API.processDataByFilters!==void 0?mt.API.processDataByFilters(W,ve):{data:W,reverseChain:[]}).reverseChain+(Array.isArray(ye)?ye.join(" "):ye.toString());if(vt.data.length!==0&&(jt.push({key:"Length",value:vt.data.length}),Te===!0&&jt.push({key:"Length1",value:Fe})),Nt.length!=0)if(Nt.split("/").length-1==1)jt.push({key:"Filter",value:Nt});else{jt.push({key:"Filter",value:"["+Nt+"]"});for(var Ht=0;Ht<jt.length;Ht+=1)if(jt[Ht].key==="DecodeParms"){for(var Rr=[],Dr=0;Dr<vt.reverseChain.split("/").length-1;Dr+=1)Rr.push("null");Rr.push(jt[Ht].value),jt[Ht].value="["+Rr.join(" ")+"]"}}oe("<<");for(var Zr=0;Zr<jt.length;Zr++)oe("/"+jt[Zr].key+" "+jt[Zr].value);oe(">>"),vt.data.length!==0&&(oe("stream"),oe(ut(vt.data)),oe("endstream"))},Ee=h.__private__.putPage=function(O){var W=O.number,ve=O.data,ye=O.objId,Te=O.contentsObjId;Y(ye,!0),oe("<</Type /Page"),oe("/Parent "+O.rootDictionaryObjId+" 0 R"),oe("/Resources "+O.resourceDictionaryObjId+" 0 R"),oe("/MediaBox ["+parseFloat(T(O.mediaBox.bottomLeftX))+" "+parseFloat(T(O.mediaBox.bottomLeftY))+" "+T(O.mediaBox.topRightX)+" "+T(O.mediaBox.topRightY)+"]"),O.cropBox!==null&&oe("/CropBox ["+T(O.cropBox.bottomLeftX)+" "+T(O.cropBox.bottomLeftY)+" "+T(O.cropBox.topRightX)+" "+T(O.cropBox.topRightY)+"]"),O.bleedBox!==null&&oe("/BleedBox ["+T(O.bleedBox.bottomLeftX)+" "+T(O.bleedBox.bottomLeftY)+" "+T(O.bleedBox.topRightX)+" "+T(O.bleedBox.topRightY)+"]"),O.trimBox!==null&&oe("/TrimBox ["+T(O.trimBox.bottomLeftX)+" "+T(O.trimBox.bottomLeftY)+" "+T(O.trimBox.topRightX)+" "+T(O.trimBox.topRightY)+"]"),O.artBox!==null&&oe("/ArtBox ["+T(O.artBox.bottomLeftX)+" "+T(O.artBox.bottomLeftY)+" "+T(O.artBox.topRightX)+" "+T(O.artBox.topRightY)+"]"),typeof O.userUnit=="number"&&O.userUnit!==1&&oe("/UserUnit "+O.userUnit),Kt.publish("putPage",{objId:ye,pageContext:Tt[W],pageNumber:W,page:ve}),oe("/Contents "+Te+" 0 R"),oe(">>"),oe("endobj");var Fe=ve.join(`
|
|
82
|
-
`);return w===x.ADVANCED&&(Fe+=`
|
|
83
|
-
Q`),Y(Te,!0),ke({data:Fe,filters:Oe(),objectId:Te}),oe("endobj"),ye},Ce=h.__private__.putPages=function(){var O,W,ve=[];for(O=1;O<=wr;O++)Tt[O].objId=Mr(),Tt[O].contentsObjId=Mr();for(O=1;O<=wr;O++)ve.push(Ee({number:O,data:Se[O],objId:Tt[O].objId,contentsObjId:Tt[O].contentsObjId,mediaBox:Tt[O].mediaBox,cropBox:Tt[O].cropBox,bleedBox:Tt[O].bleedBox,trimBox:Tt[O].trimBox,artBox:Tt[O].artBox,userUnit:Tt[O].userUnit,rootDictionaryObjId:ie,resourceDictionaryObjId:ae}));Y(ie,!0),oe("<</Type /Pages");var ye="/Kids [";for(W=0;W<wr;W++)ye+=ve[W]+" 0 R ";oe(ye+"]"),oe("/Count "+wr),oe(">>"),oe("endobj"),Kt.publish("postPutPages")},je=function(O){Kt.publish("putFont",{font:O,out:oe,newObject:Wr,putStream:ke}),O.isAlreadyPutted!==!0&&(O.objectNumber=Wr(),oe("<<"),oe("/Type /Font"),oe("/BaseFont /"+uu(O.postScriptName)),oe("/Subtype /Type1"),typeof O.encoding=="string"&&oe("/Encoding /"+O.encoding),oe("/FirstChar 32"),oe("/LastChar 255"),oe(">>"),oe("endobj"))},Ge=function(){for(var O in Qt)Qt.hasOwnProperty(O)&&(f===!1||f===!0&&d.hasOwnProperty(O))&&je(Qt[O])},Qe=function(O){O.objectNumber=Wr();var W=[];W.push({key:"Type",value:"/XObject"}),W.push({key:"Subtype",value:"/Form"}),W.push({key:"BBox",value:"["+[T(O.x),T(O.y),T(O.x+O.width),T(O.y+O.height)].join(" ")+"]"}),W.push({key:"Matrix",value:"["+O.matrix.toString()+"]"});var ve=O.pages[1].join(`
|
|
84
|
-
`);ke({data:ve,additionalKeyValues:W,objectId:O.objectNumber}),oe("endobj")},lt=function(){for(var O in un)un.hasOwnProperty(O)&&Qe(un[O])},Ye=function(O,W){var ve,ye=[],Te=1/(W-1);for(ve=0;ve<1;ve+=Te)ye.push(ve);if(ye.push(1),O[0].offset!=0){var Fe={offset:0,color:O[0].color};O.unshift(Fe)}if(O[O.length-1].offset!=1){var He={offset:1,color:O[O.length-1].color};O.push(He)}for(var ut="",vt=0,jt=0;jt<ye.length;jt++){for(ve=ye[jt];ve>O[vt+1].offset;)vt++;var Nt=O[vt].offset,Ht=(ve-Nt)/(O[vt+1].offset-Nt),Rr=O[vt].color,Dr=O[vt+1].color;ut+=B(Math.round((1-Ht)*Rr[0]+Ht*Dr[0]).toString(16))+B(Math.round((1-Ht)*Rr[1]+Ht*Dr[1]).toString(16))+B(Math.round((1-Ht)*Rr[2]+Ht*Dr[2]).toString(16))}return ut.trim()},st=function(O,W){W||(W=21);var ve=Wr(),ye=Ye(O.colors,W),Te=[];Te.push({key:"FunctionType",value:"0"}),Te.push({key:"Domain",value:"[0.0 1.0]"}),Te.push({key:"Size",value:"["+W+"]"}),Te.push({key:"BitsPerSample",value:"8"}),Te.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Te.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ke({data:ye,additionalKeyValues:Te,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ve}),oe("endobj"),O.objectNumber=Wr(),oe("<< /ShadingType "+O.type),oe("/ColorSpace /DeviceRGB");var Fe="/Coords ["+T(parseFloat(O.coords[0]))+" "+T(parseFloat(O.coords[1]))+" ";O.type===2?Fe+=T(parseFloat(O.coords[2]))+" "+T(parseFloat(O.coords[3])):Fe+=T(parseFloat(O.coords[2]))+" "+T(parseFloat(O.coords[3]))+" "+T(parseFloat(O.coords[4]))+" "+T(parseFloat(O.coords[5])),oe(Fe+="]"),O.matrix&&oe("/Matrix ["+O.matrix.toString()+"]"),oe("/Function "+ve+" 0 R"),oe("/Extend [true true]"),oe(">>"),oe("endobj")},At=function(O,W){var ve=Mr(),ye=Wr();W.push({resourcesOid:ve,objectOid:ye}),O.objectNumber=ye;var Te=[];Te.push({key:"Type",value:"/Pattern"}),Te.push({key:"PatternType",value:"1"}),Te.push({key:"PaintType",value:"1"}),Te.push({key:"TilingType",value:"1"}),Te.push({key:"BBox",value:"["+O.boundingBox.map(T).join(" ")+"]"}),Te.push({key:"XStep",value:T(O.xStep)}),Te.push({key:"YStep",value:T(O.yStep)}),Te.push({key:"Resources",value:ve+" 0 R"}),O.matrix&&Te.push({key:"Matrix",value:"["+O.matrix.toString()+"]"}),ke({data:O.stream,additionalKeyValues:Te,objectId:O.objectNumber}),oe("endobj")},er=function(O){var W;for(W in Gt)Gt.hasOwnProperty(W)&&(Gt[W]instanceof os?st(Gt[W]):Gt[W]instanceof Vs&&At(Gt[W],O))},mr=function(O){for(var W in O.objectNumber=Wr(),oe("<<"),O)switch(W){case"opacity":oe("/ca "+D(O[W]));break;case"stroke-opacity":oe("/CA "+D(O[W]))}oe(">>"),oe("endobj")},Jr=function(){var O;for(O in Nr)Nr.hasOwnProperty(O)&&mr(Nr[O])},ua=function(){for(var O in oe("/XObject <<"),un)un.hasOwnProperty(O)&&un[O].objectNumber>=0&&oe("/"+O+" "+un[O].objectNumber+" 0 R");Kt.publish("putXobjectDict"),oe(">>")},no=function(){Mn.oid=Wr(),oe("<<"),oe("/Filter /Standard"),oe("/V "+Mn.v),oe("/R "+Mn.r),oe("/U <"+Mn.toHexString(Mn.U)+">"),oe("/O <"+Mn.toHexString(Mn.O)+">"),oe("/P "+Mn.P),oe(">>"),oe("endobj")},Fa=function(){for(var O in oe("/Font <<"),Qt)Qt.hasOwnProperty(O)&&(f===!1||f===!0&&d.hasOwnProperty(O))&&oe("/"+O+" "+Qt[O].objectNumber+" 0 R");oe(">>")},ca=function(){if(Object.keys(Gt).length>0){for(var O in oe("/Shading <<"),Gt)Gt.hasOwnProperty(O)&&Gt[O]instanceof os&&Gt[O].objectNumber>=0&&oe("/"+O+" "+Gt[O].objectNumber+" 0 R");Kt.publish("putShadingPatternDict"),oe(">>")}},Ra=function(O){if(Object.keys(Gt).length>0){for(var W in oe("/Pattern <<"),Gt)Gt.hasOwnProperty(W)&&Gt[W]instanceof h.TilingPattern&&Gt[W].objectNumber>=0&&Gt[W].objectNumber<O&&oe("/"+W+" "+Gt[W].objectNumber+" 0 R");Kt.publish("putTilingPatternDict"),oe(">>")}},Ai=function(){if(Object.keys(Nr).length>0){var O;for(O in oe("/ExtGState <<"),Nr)Nr.hasOwnProperty(O)&&Nr[O].objectNumber>=0&&oe("/"+O+" "+Nr[O].objectNumber+" 0 R");Kt.publish("putGStateDict"),oe(">>")}},Hr=function(O){Y(O.resourcesOid,!0),oe("<<"),oe("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Fa(),ca(),Ra(O.objectOid),Ai(),ua(),oe(">>"),oe("endobj")},Yh=function(){var O=[];Ge(),Jr(),lt(),er(O),Kt.publish("putResources"),O.forEach(Hr),Hr({resourcesOid:ae,objectOid:Number.MAX_SAFE_INTEGER}),Kt.publish("postPutResources")},Xh=function(){Kt.publish("putAdditionalObjects");for(var O=0;O<me.length;O++){var W=me[O];Y(W.objId,!0),oe(W.content),oe("endobj")}Kt.publish("postPutAdditionalObjects")},Jh=function(O){Tr[O.fontName]=Tr[O.fontName]||{},Tr[O.fontName][O.fontStyle]=O.id},_c=function(O,W,ve,ye,Te){var Fe={id:"F"+(Object.keys(Qt).length+1).toString(10),postScriptName:O,fontName:W,fontStyle:ve,encoding:ye,isStandardFont:Te||!1,metadata:{}};return Kt.publish("addFont",{font:Fe,instance:this}),Qt[Fe.id]=Fe,Jh(Fe),Fe.id},S1=function(O){for(var W=0,ve=Be.length;W<ve;W++){var ye=_c.call(this,O[W][0],O[W][1],O[W][2],Be[W][3],!0);f===!1&&(d[ye]=!0);var Te=O[W][0].split("-");Jh({id:ye,fontName:Te[0],fontStyle:Te[1]||""})}Kt.publish("addFonts",{fonts:Qt,dictionary:Tr})},fa=function(O){return O.foo=function(){try{return O.apply(this,arguments)}catch(ye){var W=ye.stack||"";~W.indexOf(" at ")&&(W=W.split(" at ")[1]);var ve="Error in function "+W.split(`
|
|
85
|
-
`)[0].split("<")[0]+": "+ye.message;if(!St.console)throw new Error(ve);St.console.error(ve,ye),St.alert&&alert(ve)}},O.foo.bar=O,O.foo},Cl=function(O,W){var ve,ye,Te,Fe,He,ut,vt,jt,Nt;if(Te=(W=W||{}).sourceEncoding||"Unicode",He=W.outputEncoding,(W.autoencode||He)&&Qt[Mt].metadata&&Qt[Mt].metadata[Te]&&Qt[Mt].metadata[Te].encoding&&(Fe=Qt[Mt].metadata[Te].encoding,!He&&Qt[Mt].encoding&&(He=Qt[Mt].encoding),!He&&Fe.codePages&&(He=Fe.codePages[0]),typeof He=="string"&&(He=Fe[He]),He)){for(vt=!1,ut=[],ve=0,ye=O.length;ve<ye;ve++)(jt=He[O.charCodeAt(ve)])?ut.push(String.fromCharCode(jt)):ut.push(O[ve]),ut[ve].charCodeAt(0)>>8&&(vt=!0);O=ut.join("")}for(ve=O.length;vt===void 0&&ve!==0;)O.charCodeAt(ve-1)>>8&&(vt=!0),ve--;if(!vt)return O;for(ut=W.noBOM?[]:[254,255],ve=0,ye=O.length;ve<ye;ve++){if((Nt=(jt=O.charCodeAt(ve))>>8)>>8)throw new Error("Character at position "+ve+" of string '"+O+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ut.push(Nt),ut.push(jt-(Nt<<8))}return String.fromCharCode.apply(void 0,ut)},ui=h.__private__.pdfEscape=h.pdfEscape=function(O,W){return Cl(O,W).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Sc=h.__private__.beginPage=function(O){Se[++wr]=[],Tt[wr]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(O[0]),topRightY:Number(O[1])}},Qh(wr),_e(Se[I])},Zh=function(O,W){var ve,ye,Te;switch(r=W||r,typeof O=="string"&&(ve=y(O.toLowerCase()),Array.isArray(ve)&&(ye=ve[0],Te=ve[1])),Array.isArray(O)&&(ye=O[0]*ot,Te=O[1]*ot),isNaN(ye)&&(ye=i[0],Te=i[1]),(ye>14400||Te>14400)&&(Sr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ye=Math.min(14400,ye),Te=Math.min(14400,Te)),i=[ye,Te],r.substr(0,1)){case"l":Te>ye&&(i=[Te,ye]);break;case"p":ye>Te&&(i=[Te,ye])}Sc(i),a0(Oc),oe(ha),Nc!==0&&oe(Nc+" J"),Cc!==0&&oe(Cc+" j"),Kt.publish("addPage",{pageNumber:wr})},A1=function(O){O>0&&O<=wr&&(Se.splice(O,1),Tt.splice(O,1),wr--,I>wr&&(I=wr),this.setPage(I))},Qh=function(O){O>0&&O<=wr&&(I=O)},T1=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return Se.length-1},e0=function(O,W,ve){var ye,Te=void 0;return ve=ve||{},O=O!==void 0?O:Qt[Mt].fontName,W=W!==void 0?W:Qt[Mt].fontStyle,ye=O.toLowerCase(),Tr[ye]!==void 0&&Tr[ye][W]!==void 0?Te=Tr[ye][W]:Tr[O]!==void 0&&Tr[O][W]!==void 0?Te=Tr[O][W]:ve.disableWarning===!1&&Sr.warn("Unable to look up font label for font '"+O+"', '"+W+"'. Refer to getFontList() for available fonts."),Te||ve.noFallback||(Te=Tr.times[W])==null&&(Te=Tr.times.normal),Te},E1=h.__private__.putInfo=function(){var O=Wr(),W=function(ye){return ye};for(var ve in c!==null&&(W=Mn.encryptor(O,0)),oe("<<"),oe("/Producer ("+ui(W("jsPDF "+mt.version))+")"),_t)_t.hasOwnProperty(ve)&&_t[ve]&&oe("/"+ve.substr(0,1).toUpperCase()+ve.substr(1)+" ("+ui(W(_t[ve]))+")");oe("/CreationDate ("+ui(W(J))+")"),oe(">>"),oe("endobj")},Ac=h.__private__.putCatalog=function(O){var W=(O=O||{}).rootDictionaryObjId||ie;switch(Wr(),oe("<<"),oe("/Type /Catalog"),oe("/Pages "+W+" 0 R"),Ze||(Ze="fullwidth"),Ze){case"fullwidth":oe("/OpenAction [3 0 R /FitH null]");break;case"fullheight":oe("/OpenAction [3 0 R /FitV null]");break;case"fullpage":oe("/OpenAction [3 0 R /Fit]");break;case"original":oe("/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"&&oe("/OpenAction [3 0 R /XYZ null null "+D(Ze)+"]")}switch(Ot||(Ot="continuous"),Ot){case"continuous":oe("/PageLayout /OneColumn");break;case"single":oe("/PageLayout /SinglePage");break;case"two":case"twoleft":oe("/PageLayout /TwoColumnLeft");break;case"tworight":oe("/PageLayout /TwoColumnRight")}pt&&oe("/PageMode /"+pt),Kt.publish("putCatalog"),oe(">>"),oe("endobj")},O1=h.__private__.putTrailer=function(){oe("trailer"),oe("<<"),oe("/Size "+(G+1)),oe("/Root "+G+" 0 R"),oe("/Info "+(G-1)+" 0 R"),c!==null&&oe("/Encrypt "+Mn.oid+" 0 R"),oe("/ID [ <"+U+"> <"+U+"> ]"),oe(">>")},P1=h.__private__.putHeader=function(){oe("%PDF-"+g),oe("%ºß¬à")},N1=h.__private__.putXRef=function(){var O="0000000000";oe("xref"),oe("0 "+(G+1)),oe("0000000000 65535 f ");for(var W=1;W<=G;W++)typeof ce[W]=="function"?oe((O+ce[W]()).slice(-10)+" 00000 n "):ce[W]!==void 0?oe((O+ce[W]).slice(-10)+" 00000 n "):oe("0000000000 00000 n ")},io=h.__private__.buildDocument=function(){ge(),_e(he),Kt.publish("buildDocument"),P1(),Ce(),Xh(),Yh(),c!==null&&no(),E1(),Ac();var O=ne;return N1(),O1(),oe("startxref"),oe(""+O),oe("%%EOF"),_e(Se[I]),he.join(`
|
|
86
|
-
`)},jl=h.__private__.getBlob=function(O){return new Blob([tt(O)],{type:"application/pdf"})},kl=h.output=h.__private__.output=fa((function(O,W){switch(typeof(W=W||{})=="string"?W={filename:W}:W.filename=W.filename||"generated.pdf",O){case void 0:return io();case"save":h.save(W.filename);break;case"arraybuffer":return tt(io());case"blob":return jl(io());case"bloburi":case"bloburl":if(St.URL!==void 0&&typeof St.URL.createObjectURL=="function")return St.URL&&St.URL.createObjectURL(jl(io()))||void 0;Sr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ve="",ye=io();try{ve=B2(ye)}catch{ve=B2(unescape(encodeURIComponent(ye)))}return"data:application/pdf;filename="+W.filename+";base64,"+ve;case"pdfobjectnewwindow":if(Object.prototype.toString.call(St)==="[object Window]"){var Te="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Fe=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';W.pdfObjectUrl&&(Te=W.pdfObjectUrl,Fe="");var He='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Te+'"'+Fe+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(W)+");<\/script></body></html>",ut=St.open();return ut!==null&&ut.document.write(He),ut}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(St)==="[object Window]"){var vt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(W.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+W.filename+'" width="500px" height="400px" /></body></html>',jt=St.open();if(jt!==null){jt.document.write(vt);var Nt=this;jt.document.documentElement.querySelector("#pdfViewer").onload=function(){jt.document.title=W.filename,jt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Nt.output("bloburl"))}}return jt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(St)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ht='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",W)+'"></iframe></body></html>',Rr=St.open();if(Rr!==null&&(Rr.document.write(Ht),Rr.document.title=W.filename),Rr||typeof safari>"u")return Rr;break;case"datauri":case"dataurl":return St.document.location.href=this.output("datauristring",W);default:return null}})),t0=function(O){return Array.isArray(ro)===!0&&ro.indexOf(O)>-1};switch(n){case"pt":ot=1;break;case"mm":ot=72/25.4;break;case"cm":ot=72/2.54;break;case"in":ot=72;break;case"px":ot=t0("px_scaling")==1?.75:96/72;break;case"pc":case"em":ot=12;break;case"ex":ot=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);ot=n}var Mn=null;le(),ee();var C1=function(O){return c!==null?Mn.encryptor(O,0):function(W){return W}},r0=h.__private__.getPageInfo=h.getPageInfo=function(O){if(isNaN(O)||O%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Tt[O].objId,pageNumber:O,pageContext:Tt[O]}},Pt=h.__private__.getPageInfoByObjId=function(O){if(isNaN(O)||O%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var W in Tt)if(Tt[W].objId===O)break;return r0(W)},j1=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:Tt[I].objId,pageNumber:I,pageContext:Tt[I]}};h.addPage=function(){return Zh.apply(this,arguments),this},h.setPage=function(){return Qh.apply(this,arguments),_e.call(this,Se[I]),this},h.insertPage=function(O){return this.addPage(),this.movePage(I,O),this},h.movePage=function(O,W){var ve,ye;if(O>W){ve=Se[O],ye=Tt[O];for(var Te=O;Te>W;Te--)Se[Te]=Se[Te-1],Tt[Te]=Tt[Te-1];Se[W]=ve,Tt[W]=ye,this.setPage(W)}else if(O<W){ve=Se[O],ye=Tt[O];for(var Fe=O;Fe<W;Fe++)Se[Fe]=Se[Fe+1],Tt[Fe]=Tt[Fe+1];Se[W]=ve,Tt[W]=ye,this.setPage(W)}return this},h.deletePage=function(){return A1.apply(this,arguments),this},h.__private__.text=h.text=function(O,W,ve,ye,Te){var Fe,He,ut,vt,jt,Nt,Ht,Rr,Dr,Zr=(ye=ye||{}).scope||this;if(typeof O=="number"&&typeof W=="number"&&(typeof ve=="string"||Array.isArray(ve))){var Dn=ve;ve=W,W=O,O=Dn}if(arguments[3]instanceof yt?(k("The transform parameter of text() with a Matrix value"),Dr=Te):(ut=arguments[4],vt=arguments[5],sr(Ht=arguments[3])==="object"&&Ht!==null||(typeof ut=="string"&&(vt=ut,ut=null),typeof Ht=="string"&&(vt=Ht,Ht=null),typeof Ht=="number"&&(ut=Ht,Ht=null),ye={flags:Ht,angle:ut,align:vt})),isNaN(W)||isNaN(ve)||O==null)throw new Error("Invalid arguments passed to jsPDF.text");if(O.length===0)return Zr;var yn="",da=!1,Ti=typeof ye.lineHeightFactor=="number"?ye.lineHeightFactor:Cs,Ba=Zr.internal.scaleFactor;function f0(Er){return Er=Er.split(" ").join(Array(ye.TabLen||9).join(" ")),ui(Er,Ht)}function Fc(Er){for(var Or,Vr=Er.concat(),cn=[],uo=Vr.length;uo--;)typeof(Or=Vr.shift())=="string"?cn.push(Or):Array.isArray(Er)&&(Or.length===1||Or[1]===void 0&&Or[2]===void 0)?cn.push(Or[0]):cn.push([Or[0],Or[1],Or[2]]);return cn}function Rc(Er,Or){var Vr;if(typeof Er=="string")Vr=Or(Er)[0];else if(Array.isArray(Er)){for(var cn,uo,Wc=Er.concat(),Vl=[],m0=Wc.length;m0--;)typeof(cn=Wc.shift())=="string"?Vl.push(Or(cn)[0]):Array.isArray(cn)&&typeof cn[0]=="string"&&(uo=Or(cn[0],cn[1],cn[2]),Vl.push([uo[0],uo[1],uo[2]]));Vr=Vl}return Vr}var Dl=!1,Mc=!0;if(typeof O=="string")Dl=!0;else if(Array.isArray(O)){var Dc=O.concat();He=[];for(var Bl,En=Dc.length;En--;)(typeof(Bl=Dc.shift())!="string"||Array.isArray(Bl)&&typeof Bl[0]!="string")&&(Mc=!1);Dl=Mc}if(Dl===!1)throw new Error('Type of text must be string or Array. "'+O+'" is not recognized.');typeof O=="string"&&(O=O.match(/[\r?\n]/)?O.split(/\r\n|\r|\n/g):[O]);var $l=Ke/Zr.internal.scaleFactor,ql=$l*(Ti-1);switch(ye.baseline){case"bottom":ve-=ql;break;case"top":ve+=$l-ql;break;case"hanging":ve+=$l-2*ql;break;case"middle":ve+=$l/2-ql}if((Nt=ye.maxWidth||0)>0&&(typeof O=="string"?O=Zr.splitTextToSize(O,Nt):Object.prototype.toString.call(O)==="[object Array]"&&(O=O.reduce((function(Er,Or){return Er.concat(Zr.splitTextToSize(Or,Nt))}),[]))),Fe={text:O,x:W,y:ve,options:ye,mutex:{pdfEscape:ui,activeFontKey:Mt,fonts:Qt,activeFontSize:Ke}},Kt.publish("preProcessText",Fe),O=Fe.text,ut=(ye=Fe.options).angle,!(Dr instanceof yt)&&ut&&typeof ut=="number"){ut*=Math.PI/180,ye.rotationDirection===0&&(ut=-ut),w===x.ADVANCED&&(ut=-ut);var Ul=Math.cos(ut),Bc=Math.sin(ut);Dr=new yt(Ul,Bc,-Bc,Ul,0,0)}else ut&&ut instanceof yt&&(Dr=ut);w!==x.ADVANCED||Dr||(Dr=li),(jt=ye.charSpace||Fl)!==void 0&&(yn+=T(P(jt))+` Tc
|
|
87
|
-
`,this.setCharSpace(this.getCharSpace()||0)),(Rr=ye.horizontalScale)!==void 0&&(yn+=T(100*Rr)+` Tz
|
|
88
|
-
`),ye.lang;var ci=-1,q1=ye.renderingMode!==void 0?ye.renderingMode:ye.stroke,$c=Zr.internal.getCurrentPageInfo().pageContext;switch(q1){case 0:case!1:case"fill":ci=0;break;case 1:case!0:case"stroke":ci=1;break;case 2:case"fillThenStroke":ci=2;break;case 3:case"invisible":ci=3;break;case 4:case"fillAndAddForClipping":ci=4;break;case 5:case"strokeAndAddPathForClipping":ci=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":ci=6;break;case 7:case"addToPathForClipping":ci=7}var h0=$c.usedRenderingMode!==void 0?$c.usedRenderingMode:-1;ci!==-1?yn+=ci+` Tr
|
|
89
|
-
`:h0!==-1&&(yn+=`0 Tr
|
|
90
|
-
`),ci!==-1&&($c.usedRenderingMode=ci),vt=ye.align||"left";var Ui,zl=Ke*Ti,d0=Zr.internal.pageSize.getWidth(),p0=Qt[Mt];jt=ye.charSpace||Fl,Nt=ye.maxWidth||0,Ht=Object.assign({autoencode:!0,noBOM:!0},ye.flags);var zo=[],Ls=function(Er){return Zr.getStringUnitWidth(Er,{font:p0,charSpace:jt,fontSize:Ke,doKerning:!1})*Ke/Ba};if(Object.prototype.toString.call(O)==="[object Array]"){var fi;He=Fc(O),vt!=="left"&&(Ui=He.map(Ls));var Kn,Wo=0;if(vt==="right"){W-=Ui[0],O=[],En=He.length;for(var oo=0;oo<En;oo++)oo===0?(Kn=Da(W),fi=ao(ve)):(Kn=P(Wo-Ui[oo]),fi=-zl),O.push([He[oo],Kn,fi]),Wo=Ui[oo]}else if(vt==="center"){W-=Ui[0]/2,O=[],En=He.length;for(var so=0;so<En;so++)so===0?(Kn=Da(W),fi=ao(ve)):(Kn=P((Wo-Ui[so])/2),fi=-zl),O.push([He[so],Kn,fi]),Wo=Ui[so]}else if(vt==="left"){O=[],En=He.length;for(var Wl=0;Wl<En;Wl++)O.push(He[Wl])}else if(vt==="justify"&&p0.encoding==="Identity-H"){O=[],En=He.length,Nt=Nt!==0?Nt:d0;for(var lo=0,Gr=0;Gr<En;Gr++)if(fi=Gr===0?ao(ve):-zl,Kn=Gr===0?Da(W):lo,Gr<En-1){var qc=P((Nt-Ui[Gr])/(He[Gr].split(" ").length-1)),Yn=He[Gr].split(" ");O.push([Yn[0]+" ",Kn,fi]),lo=0;for(var zi=1;zi<Yn.length;zi++){var Hl=(Ls(Yn[zi-1]+" "+Yn[zi])-Ls(Yn[zi]))*Ba+qc;zi==Yn.length-1?O.push([Yn[zi],Hl,0]):O.push([Yn[zi]+" ",Hl,0]),lo-=Hl}}else O.push([He[Gr],Kn,fi]);O.push(["",lo,0])}else{if(vt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(O=[],En=He.length,Nt=Nt!==0?Nt:d0,Gr=0;Gr<En;Gr++)fi=Gr===0?ao(ve):-zl,Kn=Gr===0?Da(W):0,Gr<En-1?zo.push(T(P((Nt-Ui[Gr])/(He[Gr].split(" ").length-1)))):zo.push(0),O.push([He[Gr],Kn,fi])}}var v0=typeof ye.R2L=="boolean"?ye.R2L:dt;v0===!0&&(O=Rc(O,(function(Er,Or,Vr){return[Er.split("").reverse().join(""),Or,Vr]}))),Fe={text:O,x:W,y:ve,options:ye,mutex:{pdfEscape:ui,activeFontKey:Mt,fonts:Qt,activeFontSize:Ke}},Kt.publish("postProcessText",Fe),O=Fe.text,da=Fe.mutex.isHex||!1;var Uc=Qt[Mt].encoding;Uc!=="WinAnsiEncoding"&&Uc!=="StandardEncoding"||(O=Rc(O,(function(Er,Or,Vr){return[f0(Er),Or,Vr]}))),He=Fc(O),O=[];for(var Is,Fs,Ho,Rs=0,Gl=1,Ms=Array.isArray(He[0])?Gl:Rs,Go="",zc=function(Er,Or,Vr){var cn="";return Vr instanceof yt?(Vr=typeof ye.angle=="number"?Si(Vr,new yt(1,0,0,1,Er,Or)):Si(new yt(1,0,0,1,Er,Or),Vr),w===x.ADVANCED&&(Vr=Si(new yt(1,0,0,-1,0,0),Vr)),cn=Vr.join(" ")+` Tm
|
|
91
|
-
`):cn=T(Er)+" "+T(Or)+` Td
|
|
92
|
-
`,cn},Wi=0;Wi<He.length;Wi++){switch(Go="",Ms){case Gl:Ho=(da?"<":"(")+He[Wi][0]+(da?">":")"),Is=parseFloat(He[Wi][1]),Fs=parseFloat(He[Wi][2]);break;case Rs:Ho=(da?"<":"(")+He[Wi]+(da?">":")"),Is=Da(W),Fs=ao(ve)}zo!==void 0&&zo[Wi]!==void 0&&(Go=zo[Wi]+` Tw
|
|
93
|
-
`),Wi===0?O.push(Go+zc(Is,Fs,Dr)+Ho):Ms===Rs?O.push(Go+Ho):Ms===Gl&&O.push(Go+zc(Is,Fs,Dr)+Ho)}O=Ms===Rs?O.join(` Tj
|
|
94
|
-
T* `):O.join(` Tj
|
|
95
|
-
`),O+=` Tj
|
|
96
|
-
`;var Hi=`BT
|
|
97
|
-
/`;return Hi+=Mt+" "+Ke+` Tf
|
|
98
|
-
`,Hi+=T(Ke*Ti)+` TL
|
|
99
|
-
`,Hi+=js+`
|
|
100
|
-
`,Hi+=yn,Hi+=O,oe(Hi+="ET"),d[Mt]=!0,Zr};var k1=h.__private__.clip=h.clip=function(O){return oe(O==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return k1("evenodd")},h.__private__.discardPath=h.discardPath=function(){return oe("n"),this};var Ma=h.__private__.isValidStyle=function(O){var W=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(O)!==-1&&(W=!0),W};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(O){return Ma(O)&&(u=O),this};var n0=h.__private__.getStyle=h.getStyle=function(O){var W=u;switch(O){case"D":case"S":W="S";break;case"F":W="f";break;case"FD":case"DF":W="B";break;case"f":case"f*":case"B":case"B*":W=O}return W},i0=h.close=function(){return oe("h"),this};h.stroke=function(){return oe("S"),this},h.fill=function(O){return Ll("f",O),this},h.fillEvenOdd=function(O){return Ll("f*",O),this},h.fillStroke=function(O){return Ll("B",O),this},h.fillStrokeEvenOdd=function(O){return Ll("B*",O),this};var Ll=function(O,W){sr(W)==="object"?I1(W,O):oe(O)},Tc=function(O){O===null||w===x.ADVANCED&&O===void 0||(O=n0(O),oe(O))};function L1(O,W,ve,ye,Te){var Fe=new Vs(W||this.boundingBox,ve||this.xStep,ye||this.yStep,this.gState,Te||this.matrix);Fe.stream=this.stream;var He=O+"$$"+this.cloneIndex+++"$$";return Rn(He,Fe),Fe}var I1=function(O,W){var ve=Ia[O.key],ye=Gt[ve];if(ye instanceof os)oe("q"),oe(F1(W)),ye.gState&&h.setGState(ye.gState),oe(O.matrix.toString()+" cm"),oe("/"+ve+" sh"),oe("Q");else if(ye instanceof Vs){var Te=new yt(1,0,0,-1,0,Uo());O.matrix&&(Te=Te.multiply(O.matrix||li),ve=L1.call(ye,O.key,O.boundingBox,O.xStep,O.yStep,Te).id),oe("q"),oe("/Pattern cs"),oe("/"+ve+" scn"),ye.gState&&h.setGState(ye.gState),oe(W),oe("Q")}},F1=function(O){switch(O){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"}},Ec=h.moveTo=function(O,W){return oe(T(P(O))+" "+T(q(W))+" m"),this},Ns=h.lineTo=function(O,W){return oe(T(P(O))+" "+T(q(W))+" l"),this},$o=h.curveTo=function(O,W,ve,ye,Te,Fe){return oe([T(P(O)),T(q(W)),T(P(ve)),T(q(ye)),T(P(Te)),T(q(Fe)),"c"].join(" ")),this};h.__private__.line=h.line=function(O,W,ve,ye,Te){if(isNaN(O)||isNaN(W)||isNaN(ve)||isNaN(ye)||!Ma(Te))throw new Error("Invalid arguments passed to jsPDF.line");return w===x.COMPAT?this.lines([[ve-O,ye-W]],O,W,[1,1],Te||"S"):this.lines([[ve-O,ye-W]],O,W,[1,1]).stroke()},h.__private__.lines=h.lines=function(O,W,ve,ye,Te,Fe){var He,ut,vt,jt,Nt,Ht,Rr,Dr,Zr,Dn,yn,da;if(typeof O=="number"&&(da=ve,ve=W,W=O,O=da),ye=ye||[1,1],Fe=Fe||!1,isNaN(W)||isNaN(ve)||!Array.isArray(O)||!Array.isArray(ye)||!Ma(Te)||typeof Fe!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Ec(W,ve),He=ye[0],ut=ye[1],jt=O.length,Dn=W,yn=ve,vt=0;vt<jt;vt++)(Nt=O[vt]).length===2?(Dn=Nt[0]*He+Dn,yn=Nt[1]*ut+yn,Ns(Dn,yn)):(Ht=Nt[0]*He+Dn,Rr=Nt[1]*ut+yn,Dr=Nt[2]*He+Dn,Zr=Nt[3]*ut+yn,Dn=Nt[4]*He+Dn,yn=Nt[5]*ut+yn,$o(Ht,Rr,Dr,Zr,Dn,yn));return Fe&&i0(),Tc(Te),this},h.path=function(O){for(var W=0;W<O.length;W++){var ve=O[W],ye=ve.c;switch(ve.op){case"m":Ec(ye[0],ye[1]);break;case"l":Ns(ye[0],ye[1]);break;case"c":$o.apply(this,ye);break;case"h":i0()}}return this},h.__private__.rect=h.rect=function(O,W,ve,ye,Te){if(isNaN(O)||isNaN(W)||isNaN(ve)||isNaN(ye)||!Ma(Te))throw new Error("Invalid arguments passed to jsPDF.rect");return w===x.COMPAT&&(ye=-ye),oe([T(P(O)),T(q(W)),T(P(ve)),T(P(ye)),"re"].join(" ")),Tc(Te),this},h.__private__.triangle=h.triangle=function(O,W,ve,ye,Te,Fe,He){if(isNaN(O)||isNaN(W)||isNaN(ve)||isNaN(ye)||isNaN(Te)||isNaN(Fe)||!Ma(He))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ve-O,ye-W],[Te-ve,Fe-ye],[O-Te,W-Fe]],O,W,[1,1],He,!0),this},h.__private__.roundedRect=h.roundedRect=function(O,W,ve,ye,Te,Fe,He){if(isNaN(O)||isNaN(W)||isNaN(ve)||isNaN(ye)||isNaN(Te)||isNaN(Fe)||!Ma(He))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ut=4/3*(Math.SQRT2-1);return Te=Math.min(Te,.5*ve),Fe=Math.min(Fe,.5*ye),this.lines([[ve-2*Te,0],[Te*ut,0,Te,Fe-Fe*ut,Te,Fe],[0,ye-2*Fe],[0,Fe*ut,-Te*ut,Fe,-Te,Fe],[2*Te-ve,0],[-Te*ut,0,-Te,-Fe*ut,-Te,-Fe],[0,2*Fe-ye],[0,-Fe*ut,Te*ut,-Fe,Te,-Fe]],O+Te,W,[1,1],He,!0),this},h.__private__.ellipse=h.ellipse=function(O,W,ve,ye,Te){if(isNaN(O)||isNaN(W)||isNaN(ve)||isNaN(ye)||!Ma(Te))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Fe=4/3*(Math.SQRT2-1)*ve,He=4/3*(Math.SQRT2-1)*ye;return Ec(O+ve,W),$o(O+ve,W-He,O+Fe,W-ye,O,W-ye),$o(O-Fe,W-ye,O-ve,W-He,O-ve,W),$o(O-ve,W+He,O-Fe,W+ye,O,W+ye),$o(O+Fe,W+ye,O+ve,W+He,O+ve,W),Tc(Te),this},h.__private__.circle=h.circle=function(O,W,ve,ye){if(isNaN(O)||isNaN(W)||isNaN(ve)||!Ma(ye))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(O,W,ve,ve,ye)},h.setFont=function(O,W,ve){return ve&&(W=E(W,ve)),Mt=e0(O,W,{disableWarning:!1}),this};var R1=h.__private__.getFont=h.getFont=function(){return Qt[e0.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var O,W,ve={};for(O in Tr)if(Tr.hasOwnProperty(O))for(W in ve[O]=[],Tr[O])Tr[O].hasOwnProperty(W)&&ve[O].push(W);return ve},h.addFont=function(O,W,ve,ye,Te){var Fe=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Fe.indexOf(arguments[3])!==-1?Te=arguments[3]:arguments[3]&&Fe.indexOf(arguments[3])==-1&&(ve=E(ve,ye)),Te=Te||"Identity-H",_c.call(this,O,W,ve,Te)};var Cs,Oc=e.lineWidth||.200025,Il=h.__private__.getLineWidth=h.getLineWidth=function(){return Oc},a0=h.__private__.setLineWidth=h.setLineWidth=function(O){return Oc=O,oe(T(P(O))+" w"),this};h.__private__.setLineDash=mt.API.setLineDash=mt.API.setLineDashPattern=function(O,W){if(O=O||[],W=W||0,isNaN(W)||!Array.isArray(O))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return O=O.map((function(ve){return T(P(ve))})).join(" "),W=T(P(W)),oe("["+O+"] "+W+" d"),this};var o0=h.__private__.getLineHeight=h.getLineHeight=function(){return Ke*Cs};h.__private__.getLineHeight=h.getLineHeight=function(){return Ke*Cs};var s0=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(O){return typeof(O=O||1.15)=="number"&&(Cs=O),this},l0=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return Cs};s0(e.lineHeight);var Da=h.__private__.getHorizontalCoordinate=function(O){return P(O)},ao=h.__private__.getVerticalCoordinate=function(O){return w===x.ADVANCED?O:Tt[I].mediaBox.topRightY-Tt[I].mediaBox.bottomLeftY-P(O)},M1=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(O){return T(Da(O))},qo=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(O){return T(ao(O))},ha=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return fe(ha)},h.__private__.setStrokeColor=h.setDrawColor=function(O,W,ve,ye){return ha=pe({ch1:O,ch2:W,ch3:ve,ch4:ye,pdfColorType:"draw",precision:2}),oe(ha),this};var Pc=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return fe(Pc)},h.__private__.setFillColor=h.setFillColor=function(O,W,ve,ye){return Pc=pe({ch1:O,ch2:W,ch3:ve,ch4:ye,pdfColorType:"fill",precision:2}),oe(Pc),this};var js=e.textColor||"0 g",D1=h.__private__.getTextColor=h.getTextColor=function(){return fe(js)};h.__private__.setTextColor=h.setTextColor=function(O,W,ve,ye){return js=pe({ch1:O,ch2:W,ch3:ve,ch4:ye,pdfColorType:"text",precision:3}),this};var Fl=e.charSpace,B1=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(Fl||0)};h.__private__.setCharSpace=h.setCharSpace=function(O){if(isNaN(O))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Fl=O,this};var Nc=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(O){var W=h.CapJoinStyles[O];if(W===void 0)throw new Error("Line cap style of '"+O+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Nc=W,oe(W+" J"),this};var Cc=0;h.__private__.setLineJoin=h.setLineJoin=function(O){var W=h.CapJoinStyles[O];if(W===void 0)throw new Error("Line join style of '"+O+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Cc=W,oe(W+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(O){if(O=O||0,isNaN(O))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return oe(T(P(O))+" M"),this},h.GState=Mf,h.setGState=function(O){(O=typeof O=="string"?Nr[_i[O]]:u0(null,O)).equals(la)||(oe("/"+O.id+" gs"),la=O)};var u0=function(O,W){if(!O||!_i[O]){var ve=!1;for(var ye in Nr)if(Nr.hasOwnProperty(ye)&&Nr[ye].equals(W)){ve=!0;break}if(ve)W=Nr[ye];else{var Te="GS"+(Object.keys(Nr).length+1).toString(10);Nr[Te]=W,W.id=Te}return O&&(_i[O]=W.id),Kt.publish("addGState",W),W}};h.addGState=function(O,W){return u0(O,W),this},h.saveGraphicsState=function(){return oe("q"),Bi.push({key:Mt,size:Ke,color:js}),this},h.restoreGraphicsState=function(){oe("Q");var O=Bi.pop();return Mt=O.key,Ke=O.size,js=O.color,la=null,this},h.setCurrentTransformationMatrix=function(O){return oe(O.toString()+" cm"),this},h.comment=function(O){return oe("#"+O),this};var Rl=function(O,W){var ve=O||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ve},set:function(Fe){isNaN(Fe)||(ve=parseFloat(Fe))}});var ye=W||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ye},set:function(Fe){isNaN(Fe)||(ye=parseFloat(Fe))}});var Te="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Te},set:function(Fe){Te=Fe.toString()}}),this},jc=function(O,W,ve,ye){Rl.call(this,O,W),this.type="rect";var Te=ve||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Te},set:function(He){isNaN(He)||(Te=parseFloat(He))}});var Fe=ye||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Fe},set:function(He){isNaN(He)||(Fe=parseFloat(He))}}),this},kc=function(){this.page=wr,this.currentPage=I,this.pages=Se.slice(0),this.pagesContext=Tt.slice(0),this.x=ln,this.y=zt,this.matrix=si,this.width=ks(I),this.height=Uo(I),this.outputDestination=Ie,this.id="",this.objectNumber=-1};kc.prototype.restore=function(){wr=this.page,I=this.currentPage,Tt=this.pagesContext,Se=this.pages,ln=this.x,zt=this.y,si=this.matrix,Lc(I,this.width),Ic(I,this.height),Ie=this.outputDestination};var c0=function(O,W,ve,ye,Te){qi.push(new kc),wr=I=0,Se=[],ln=O,zt=W,si=Te,Sc([ve,ye])},$1=function(O){if($i[O])qi.pop().restore();else{var W=new kc,ve="Xo"+(Object.keys(un).length+1).toString(10);W.id=ve,$i[O]=ve,un[ve]=W,Kt.publish("addFormObject",W),qi.pop().restore()}};for(var Ml in h.beginFormObject=function(O,W,ve,ye,Te){return c0(O,W,ve,ye,Te),this},h.endFormObject=function(O){return $1(O),this},h.doFormObject=function(O,W){var ve=un[$i[O]];return oe("q"),oe(W.toString()+" cm"),oe("/"+ve.id+" Do"),oe("Q"),this},h.getFormObject=function(O){var W=un[$i[O]];return{x:W.x,y:W.y,width:W.width,height:W.height,matrix:W.matrix}},h.save=function(O,W){return O=O||"generated.pdf",(W=W||{}).returnPromise=W.returnPromise||!1,W.returnPromise===!1?(Us(jl(io()),O),typeof Us.unload=="function"&&St.setTimeout&&setTimeout(Us.unload,911),this):new Promise((function(ve,ye){try{var Te=Us(jl(io()),O);typeof Us.unload=="function"&&St.setTimeout&&setTimeout(Us.unload,911),ve(Te)}catch(Fe){ye(Fe.message)}}))},mt.API)mt.API.hasOwnProperty(Ml)&&(Ml==="events"&&mt.API.events.length?(function(O,W){var ve,ye,Te;for(Te=W.length-1;Te!==-1;Te--)ve=W[Te][0],ye=W[Te][1],O.subscribe.apply(O,[ve].concat(typeof ye=="function"?[ye]:ye))})(Kt,mt.API.events):h[Ml]=mt.API[Ml]);var ks=h.getPageWidth=function(O){return(Tt[O=O||I].mediaBox.topRightX-Tt[O].mediaBox.bottomLeftX)/ot},Lc=h.setPageWidth=function(O,W){Tt[O].mediaBox.topRightX=W*ot+Tt[O].mediaBox.bottomLeftX},Uo=h.getPageHeight=function(O){return(Tt[O=O||I].mediaBox.topRightY-Tt[O].mediaBox.bottomLeftY)/ot},Ic=h.setPageHeight=function(O,W){Tt[O].mediaBox.topRightY=W*ot+Tt[O].mediaBox.bottomLeftY};return h.internal={pdfEscape:ui,getStyle:n0,getFont:R1,getFontSize:Je,getCharSpace:B1,getTextColor:D1,getLineHeight:o0,getLineHeightFactor:l0,getLineWidth:Il,write:Re,getHorizontalCoordinate:Da,getVerticalCoordinate:ao,getCoordinateString:M1,getVerticalCoordinateString:qo,collections:{},newObject:Wr,newAdditionalObject:de,newObjectDeferred:Mr,newObjectDeferredBegin:Y,getFilters:Oe,putStream:ke,events:Kt,scaleFactor:ot,pageSize:{getWidth:function(){return ks(I)},setWidth:function(O){Lc(I,O)},getHeight:function(){return Uo(I)},setHeight:function(O){Ic(I,O)}},encryptionOptions:c,encryption:Mn,getEncryptor:C1,output:kl,getNumberOfPages:T1,pages:Se,out:oe,f2:D,f3:C,getPageInfo:r0,getPageInfoByObjId:Pt,getCurrentPageInfo:j1,getPDFVersion:p,Point:Rl,Rectangle:jc,Matrix:yt,hasHotfix:t0},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return ks(I)},set:function(O){Lc(I,O)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return Uo(I)},set:function(O){Ic(I,O)},enumerable:!0,configurable:!0}),S1.call(h,Be),Mt="F1",Zh(i,r),Kt.publish("initialized"),h}lu.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},lu.prototype.toHexString=function(e){return e.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},lu.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("")},lu.prototype.processOwnerPassword=function(e,t){return q2($2(t).substr(0,5),e)},lu.prototype.encryptor=function(e,t){var r=$2(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return q2(r,n)}},Mf.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||sr(e)!==sr(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},mt.API={events:[]},mt.version="2.5.2";var $r=mt.API,Ib=1,yl=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Zl=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ct=function(e){return e.toFixed(2)},ns=function(e){return e.toFixed(5)};$r.__acroform__={};var bi=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},Kw=function(e){return e*Ib},qa=function(e){var t=new FP,r=ht.internal.getHeight(e)||0,n=ht.internal.getWidth(e)||0;return t.BBox=[0,0,Number(Ct(n)),Number(Ct(r))],t},$L=$r.__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},qL=$r.__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)},UL=$r.__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=$r.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return UL(e,t-1)},Yr=$r.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return $L(e,t-1)},Xr=$r.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return qL(e,t-1)},zL=$r.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,i=e[0],a=e[1],o=e[2],s=e[3],l={};return l.lowerLeft_X=r(i)||0,l.lowerLeft_Y=n(a+s)||0,l.upperRight_X=r(i+o)||0,l.upperRight_Y=n(a)||0,[Number(Ct(l.lowerLeft_X)),Number(Ct(l.lowerLeft_Y)),Number(Ct(l.upperRight_X)),Number(Ct(l.upperRight_Y))]},WL=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=U2(e,r),i=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("/"+i+" "+Ct(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 a=qa(e);return a.scope=e.scope,a.stream=t.join(`
|
|
101
|
-
`),a}},U2=function(e,t){var r=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map((function(C){return C.split(`
|
|
102
|
-
`)})):i.map((function(C){return[C]}));var a=r,o=ht.internal.getHeight(e)||0;o=o<0?-o:o;var s=ht.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(C,P,M){if(C+1<i.length){var q=P+" "+i[C+1][0];return M0(q,e,M).width<=s-4}return!1};a++;e:for(;a>0;){t="",a--;var u,c,f=M0("3",e,a).height,d=e.multiline?o-a:(o-f)/2,h=d+=2,g=0,p=0,m=0;if(a<=0){t=`(...) Tj
|
|
103
|
-
`,t+="% Width of Text: "+M0(t,e,a=12).width+", FieldWidth:"+s+`
|
|
104
|
-
`;break}for(var y="",x=0,w=0;w<i.length;w++)if(i.hasOwnProperty(w)){var A=!1;if(i[w].length!==1&&m!==i[w].length-1){if((f+2)*(x+2)+2>o)continue e;y+=i[w][m],A=!0,p=w,w--}else{y=(y+=i[w][m]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var _=parseInt(w),E=l(_,y,a),T=w>=i.length-1;if(E&&!T){y+=" ",m=0;continue}if(E||T){if(T)p=_;else if(e.multiline&&(f+2)*(x+2)+2>o)continue e}else{if(!e.multiline||(f+2)*(x+2)+2>o)continue e;p=_}}for(var k="",L=g;L<=p;L++){var D=i[L];if(e.multiline){if(L===p){k+=D[m]+" ",m=(m+1)%D.length;continue}if(L===g){k+=D[D.length-1]+" ";continue}}k+=D[0]+" "}switch(k=k.substr(k.length-1)==" "?k.substr(0,k.length-1):k,c=M0(k,e,a).width,e.textAlign){case"right":u=s-c-2;break;case"center":u=(s-c)/2;break;case"left":default:u=2}t+=Ct(u)+" "+Ct(h)+` Td
|
|
105
|
-
`,t+="("+yl(k)+`) Tj
|
|
106
|
-
`,t+=-Ct(u)+` 0 Td
|
|
107
|
-
`,h=-(a+2),c=0,g=A?p:p+1,x++,y=""}break}return n.text=t,n.fontSize=a,n},M0=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),i=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:i}},HL={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},GL=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)},VL=function(e,t){for(var r in e)if(e.hasOwnProperty(r)){var n=r,i=e[r];t.internal.newObjectDeferredBegin(i.objId,!0),sr(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete e[n]}},KL=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(ja.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(HL)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ib=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new RP,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 i in n)if(n.hasOwnProperty(i)){var a=n[i];a.objId=void 0,a.hasAnnotation&&GL(a,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,i){var a=!n;for(var o in n||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(o)){var s=n[o],l=[],u=s.Rect;if(s.Rect&&(s.Rect=zL(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=ht.createDefaultAppearanceStream(s),sr(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=u,s.hasAppearanceStream&&!s.appearanceStreamContent){var c=WL(s);l.push({key:"AP",value:"<</N "+c+">>"}),i.internal.acroformPlugin.xForms.push(c)}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 g=h[o];typeof g=="function"&&(g=g.call(i,s)),f+="/"+o+" "+g+" ",i.internal.acroformPlugin.xForms.indexOf(g)>=0||i.internal.acroformPlugin.xForms.push(g)}}else typeof(g=h)=="function"&&(g=g.call(i,s)),f+="/"+o+" "+g,i.internal.acroformPlugin.xForms.indexOf(g)>=0||i.internal.acroformPlugin.xForms.push(g);f+=">>"}l.push({key:"AP",value:`<<
|
|
108
|
-
`+f+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:s.objId}),i.internal.out("endobj")}a&&VL(i.internal.acroformPlugin.xForms,i)})(r,e)})),e.internal.acroformPlugin.isInitialized=!0}},IP=$r.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(o){return o};if(Array.isArray(e)){for(var i="[",a=0;a<e.length;a++)switch(a!==0&&(i+=" "),sr(e[a])){case"boolean":case"number":case"object":i+=e[a].toString();break;case"string":e[a].substr(0,1)!=="/"?(t!==void 0&&r&&(n=r.internal.getEncryptor(t)),i+="("+yl(n(e[a].toString()))+")"):i+=e[a].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},dv=function(e,t,r){var n=function(i){return i};return t!==void 0&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),e="("+yl(n(e))+")"},Ha=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})};Ha.prototype.toString=function(){return this.objId+" 0 R"},Ha.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Ha.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter((function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"}));for(var r in t)if(Object.getOwnPropertyDescriptor(this,t[r]).configurable===!1){var n=t[r],i=this[n];i&&(Array.isArray(i)?e.push({key:n,value:IP(i,this.objId,this.scope)}):i instanceof Ha?(i.scope=this.scope,e.push({key:n,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:n,value:i}))}return e};var FP=function(){Ha.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}})};bi(FP,Ha);var RP=function(){Ha.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)),"("+yl(r(e))+")"}},set:function(r){e=r}})};bi(RP,Ha);var ja=function e(){Ha.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=Yr(t,3):this.F=Xr(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 i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=y;break;default:throw new Error('Invalid value "'+y+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof pd)return;a="FieldObject"+e.FieldNum++}var y=function(x){return x};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+yl(y(a))+")"},set:function(y){a=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(y){a=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 u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return u===void 0?50/Ib:u},set:function(y){u=y}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(y){c=y}});var f="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!f||this instanceof pd||this instanceof gs))return dv(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 pn?d:dv(d,this.objId,this.scope)},set:function(y){y=y.toString(),d=this instanceof pn?y:y.substr(0,1)==="("?Zl(y.substr(1,y.length-2)):Zl(y)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof pn?Zl(d.substr(1,d.length-1)):d},set:function(y){y=y.toString(),d=this instanceof pn?"/"+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 pn?h:dv(h,this.objId,this.scope)},set:function(y){y=y.toString(),h=this instanceof pn?y:y.substr(0,1)==="("?Zl(y.substr(1,y.length-2)):Zl(y)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof pn?Zl(h.substr(1,h.length-1)):h},set:function(y){y=y.toString(),h=this instanceof pn?"/"+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 g,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(g)return g},set:function(y){g=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,1)},set:function(y){y?this.Ff=Yr(this.Ff,1):this.Ff=Xr(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,2)},set:function(y){y?this.Ff=Yr(this.Ff,2):this.Ff=Xr(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,3)},set:function(y){y?this.Ff=Yr(this.Ff,3):this.Ff=Xr(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}}})};bi(ja,Ha);var nl=function(){ja.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 IP(t,this.objId,this.scope)},set:function(r){var n,i;i=[],typeof(n=r)=="string"&&(i=(function(a,o,s){s||(s=1);for(var l,u=[];l=o.exec(a);)u.push(l[s]);return u})(n,/\((.*?)\)/g)),t=i}}),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=Yr(this.Ff,18):this.Ff=Xr(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=Yr(this.Ff,19):this.Ff=Xr(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,20)},set:function(r){r?(this.Ff=Yr(this.Ff,20),t.sort()):this.Ff=Xr(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,22)},set:function(r){r?this.Ff=Yr(this.Ff,22):this.Ff=Xr(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,23)},set:function(r){r?this.Ff=Yr(this.Ff,23):this.Ff=Xr(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,27)},set:function(r){r?this.Ff=Yr(this.Ff,27):this.Ff=Xr(this.Ff,27)}}),this.hasAppearanceStream=!1};bi(nl,ja);var il=function(){nl.call(this),this.fontName="helvetica",this.combo=!1};bi(il,nl);var al=function(){il.call(this),this.combo=!0};bi(al,il);var yf=function(){al.call(this),this.edit=!0};bi(yf,al);var pn=function(){ja.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=Yr(this.Ff,15):this.Ff=Xr(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,16)},set:function(r){r?this.Ff=Yr(this.Ff,16):this.Ff=Xr(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,17)},set:function(r){r?this.Ff=Yr(this.Ff,17):this.Ff=Xr(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,26)},set:function(r){r?this.Ff=Yr(this.Ff,26):this.Ff=Xr(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(a){return a};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,i=[];for(n in i.push("<<"),t)i.push("/"+n+" ("+yl(r(t[n]))+")");return i.push(">>"),i.join(`
|
|
109
|
-
`)}},set:function(r){sr(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}})};bi(pn,ja);var xf=function(){pn.call(this),this.pushButton=!0};bi(xf,pn);var ol=function(){pn.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:[]}})};bi(ol,pn);var pd=function(){var e,t;ja.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(s){return s};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var a,o=[];for(a in o.push("<<"),n)o.push("/"+a+" ("+yl(i(n[a]))+")");return o.push(">>"),o.join(`
|
|
110
|
-
`)},set:function(i){sr(i)==="object"&&(n=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(i){typeof i=="string"&&(n.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(i){r=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(i){r="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ht.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};bi(pd,ja),ol.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()}},ol.prototype.createOption=function(e){var t=new pd;return t.Parent=this,t.optionName=e,this.Kids.push(t),YL.call(this.scope,t),t};var bf=function(){pn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ht.CheckBox.createAppearanceStream()};bi(bf,pn);var gs=function(){ja.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=Yr(this.Ff,13):this.Ff=Xr(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,21)},set:function(t){t?this.Ff=Yr(this.Ff,21):this.Ff=Xr(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,23)},set:function(t){t?this.Ff=Yr(this.Ff,23):this.Ff=Xr(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,24)},set:function(t){t?this.Ff=Yr(this.Ff,24):this.Ff=Xr(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,25)},set:function(t){t?this.Ff=Yr(this.Ff,25):this.Ff=Xr(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,26)},set:function(t){t?this.Ff=Yr(this.Ff,26):this.Ff=Xr(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}})};bi(gs,ja);var wf=function(){gs.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,14)},set:function(e){e?this.Ff=Yr(this.Ff,14):this.Ff=Xr(this.Ff,14)}}),this.password=!0};bi(wf,gs);var ht={CheckBox:{createAppearanceStream:function(){return{N:{On:ht.CheckBox.YesNormal},D:{On:ht.CheckBox.YesPushDown,Off:ht.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=qa(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=U2(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+Ct(ht.internal.getWidth(e))+" "+Ct(ht.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+Ct(a.fontSize)+" Tf "+i),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join(`
|
|
111
|
-
`),t},YesNormal:function(e){var t=qa(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=[],a=ht.internal.getHeight(e),o=ht.internal.getWidth(e),s=U2(e,e.caption);return i.push("1 g"),i.push("0 0 "+Ct(o)+" "+Ct(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+Ct(o-1)+" "+Ct(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+Ct(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),t.stream=i.join(`
|
|
112
|
-
`),t},OffPushDown:function(e){var t=qa(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Ct(ht.internal.getWidth(e))+" "+Ct(ht.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
|
|
113
|
-
`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:ht.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=ht.RadioButton.Circle.YesNormal,t.D[e]=ht.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=qa(e);t.scope=e.scope;var r=[],n=ht.internal.getWidth(e)<=ht.internal.getHeight(e)?ht.internal.getWidth(e)/4:ht.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=ht.internal.Bezier_C,a=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+ns(ht.internal.getWidth(e)/2)+" "+ns(ht.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
|
|
114
|
-
`),t},YesPushDown:function(e){var t=qa(e);t.scope=e.scope;var r=[],n=ht.internal.getWidth(e)<=ht.internal.getHeight(e)?ht.internal.getWidth(e)/4:ht.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*ht.internal.Bezier_C).toFixed(5)),o=Number((n*ht.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+ns(ht.internal.getWidth(e)/2)+" "+ns(ht.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+ns(ht.internal.getWidth(e)/2)+" "+ns(ht.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=qa(e);t.scope=e.scope;var r=[],n=ht.internal.getWidth(e)<=ht.internal.getHeight(e)?ht.internal.getWidth(e)/4:ht.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*ht.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+ns(ht.internal.getWidth(e)/2)+" "+ns(ht.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
|
|
116
|
-
`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:ht.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=ht.RadioButton.Cross.YesNormal,t.D[e]=ht.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=qa(e);t.scope=e.scope;var r=[],n=ht.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+Ct(ht.internal.getWidth(e)-2)+" "+Ct(ht.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(Ct(n.x1.x)+" "+Ct(n.x1.y)+" m"),r.push(Ct(n.x2.x)+" "+Ct(n.x2.y)+" l"),r.push(Ct(n.x4.x)+" "+Ct(n.x4.y)+" m"),r.push(Ct(n.x3.x)+" "+Ct(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
|
|
117
|
-
`),t},YesPushDown:function(e){var t=qa(e);t.scope=e.scope;var r=ht.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+Ct(ht.internal.getWidth(e))+" "+Ct(ht.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+Ct(ht.internal.getWidth(e)-2)+" "+Ct(ht.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(Ct(r.x1.x)+" "+Ct(r.x1.y)+" m"),n.push(Ct(r.x2.x)+" "+Ct(r.x2.y)+" l"),n.push(Ct(r.x4.x)+" "+Ct(r.x4.y)+" m"),n.push(Ct(r.x3.x)+" "+Ct(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
|
|
118
|
-
`),t},OffPushDown:function(e){var t=qa(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Ct(ht.internal.getWidth(e))+" "+Ct(ht.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}};ht.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=ht.internal.getWidth(e),r=ht.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}}}},ht.internal.getWidth=function(e){var t=0;return sr(e)==="object"&&(t=Kw(e.Rect[2])),t},ht.internal.getHeight=function(e){var t=0;return sr(e)==="object"&&(t=Kw(e.Rect[3])),t};var YL=$r.addField=function(e){if(KL(this,e),!(e instanceof ja))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};$r.AcroFormChoiceField=nl,$r.AcroFormListBox=il,$r.AcroFormComboBox=al,$r.AcroFormEditBox=yf,$r.AcroFormButton=pn,$r.AcroFormPushButton=xf,$r.AcroFormRadioButton=ol,$r.AcroFormCheckBox=bf,$r.AcroFormTextField=gs,$r.AcroFormPasswordField=wf,$r.AcroFormAppearance=ht,$r.AcroForm={ChoiceField:nl,ListBox:il,ComboBox:al,EditBox:yf,Button:pn,PushButton:xf,RadioButton:ol,CheckBox:bf,TextField:gs,PasswordField:wf,Appearance:ht},mt.AcroForm={ChoiceField:nl,ListBox:il,ComboBox:al,EditBox:yf,Button:pn,PushButton:xf,RadioButton:ol,CheckBox:bf,TextField:gs,PasswordField:wf,Appearance:ht};var XL=mt.AcroForm;function MP(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(C,P){var M,q,J,U,H,ee=t;if((P=P||t)==="RGBA"||C.data!==void 0&&C.data instanceof Uint8ClampedArray&&"height"in C&&"width"in C)return"RGBA";if(E(C))for(H in r)for(J=r[H],M=0;M<J.length;M+=1){for(U=!0,q=0;q<J[M].length;q+=1)if(J[M][q]!==void 0&&J[M][q]!==C[q]){U=!1;break}if(U===!0){ee=H;break}}else for(H in r)for(J=r[H],M=0;M<J.length;M+=1){for(U=!0,q=0;q<J[M].length;q+=1)if(J[M][q]!==void 0&&J[M][q]!==C.charCodeAt(q)){U=!1;break}if(U===!0){ee=H;break}}return ee===t&&P!==t&&(ee=P),ee},i=function C(P){for(var M=this.internal.write,q=this.internal.putStream,J=(0,this.internal.getFilters)();J.indexOf("FlateEncode")!==-1;)J.splice(J.indexOf("FlateEncode"),1);P.objectId=this.internal.newObject();var U=[];if(U.push({key:"Type",value:"/XObject"}),U.push({key:"Subtype",value:"/Image"}),U.push({key:"Width",value:P.width}),U.push({key:"Height",value:P.height}),P.colorSpace===m.INDEXED?U.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(P.palette.length/3-1)+" "+("sMask"in P&&P.sMask!==void 0?P.objectId+2:P.objectId+1)+" 0 R]"}):(U.push({key:"ColorSpace",value:"/"+P.colorSpace}),P.colorSpace===m.DEVICE_CMYK&&U.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),U.push({key:"BitsPerComponent",value:P.bitsPerComponent}),"decodeParameters"in P&&P.decodeParameters!==void 0&&U.push({key:"DecodeParms",value:"<<"+P.decodeParameters+">>"}),"transparency"in P&&Array.isArray(P.transparency)){for(var H="",ee=0,Z=P.transparency.length;ee<Z;ee++)H+=P.transparency[ee]+" "+P.transparency[ee]+" ";U.push({key:"Mask",value:"["+H+"]"})}P.sMask!==void 0&&U.push({key:"SMask",value:P.objectId+1+" 0 R"});var Q=P.filter!==void 0?["/"+P.filter]:void 0;if(q({data:P.data,additionalKeyValues:U,alreadyAppliedFilters:Q,objectId:P.objectId}),M("endobj"),"sMask"in P&&P.sMask!==void 0){var le="/Predictor "+P.predictor+" /Colors 1 /BitsPerComponent "+P.bitsPerComponent+" /Columns "+P.width,N={width:P.width,height:P.height,colorSpace:"DeviceGray",bitsPerComponent:P.bitsPerComponent,decodeParameters:le,data:P.sMask};"filter"in P&&(N.filter=P.filter),C.call(this,N)}if(P.colorSpace===m.INDEXED){var I=this.internal.newObject();q({data:k(new Uint8Array(P.palette)),objectId:I}),M("endobj")}},a=function(){var C=this.internal.collections.addImage_images;for(var P in C)i.call(this,C[P])},o=function(){var C,P=this.internal.collections.addImage_images,M=this.internal.write;for(var q in P)M("/I"+(C=P[q]).index,C.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",o))},l=function(){var C=this.internal.collections.addImage_images;return s.call(this),C},u=function(){return Object.keys(this.internal.collections.addImage_images).length},c=function(C){return typeof e["process"+C.toUpperCase()]=="function"},f=function(C){return sr(C)==="object"&&C.nodeType===1},d=function(C,P){if(C.nodeName==="IMG"&&C.hasAttribute("src")){var M=""+C.getAttribute("src");if(M.indexOf("data:image/")===0)return gf(unescape(M).split("base64,").pop());var q=e.loadFile(M,!0);if(q!==void 0)return q}if(C.nodeName==="CANVAS"){if(C.width===0||C.height===0)throw new Error("Given canvas must have data. Canvas width: "+C.width+", height: "+C.height);var J;switch(P){case"PNG":J="image/png";break;case"WEBP":J="image/webp";break;case"JPEG":case"JPG":default:J="image/jpeg"}return gf(C.toDataURL(J,1).split("base64,").pop())}},h=function(C){var P=this.internal.collections.addImage_images;if(P){for(var M in P)if(C===P[M].alias)return P[M]}},g=function(C,P,M){return C||P||(C=-96,P=-96),C<0&&(C=-1*M.width*72/C/this.internal.scaleFactor),P<0&&(P=-1*M.height*72/P/this.internal.scaleFactor),C===0&&(C=P*M.width/M.height),P===0&&(P=C*M.height/M.width),[C,P]},p=function(C,P,M,q,J,U){var H=g.call(this,M,q,J),ee=this.internal.getCoordinateString,Z=this.internal.getVerticalCoordinateString,Q=l.call(this);if(M=H[0],q=H[1],Q[J.index]=J,U){U*=Math.PI/180;var le=Math.cos(U),N=Math.sin(U),I=function(B){return B.toFixed(4)},R=[I(le),I(N),I(-1*N),I(le),0,0,"cm"]}this.internal.write("q"),U?(this.internal.write([1,"0","0",1,ee(C),Z(P+q),"cm"].join(" ")),this.internal.write(R.join(" ")),this.internal.write([ee(M),"0","0",ee(q),"0","0","cm"].join(" "))):this.internal.write([ee(M),"0","0",ee(q),ee(C),Z(P+q),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+J.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"},x=e.__addimage__.sHashCode=function(C){var P,M,q=0;if(typeof C=="string")for(M=C.length,P=0;P<M;P++)q=(q<<5)-q+C.charCodeAt(P),q|=0;else if(E(C))for(M=C.byteLength/2,P=0;P<M;P++)q=(q<<5)-q+C[P],q|=0;return q},w=e.__addimage__.validateStringAsBase64=function(C){(C=C||"").toString().trim();var P=!0;return C.length===0&&(P=!1),C.length%4!=0&&(P=!1),/^[A-Za-z0-9+/]+$/.test(C.substr(0,C.length-2))===!1&&(P=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(C.substr(-2))===!1&&(P=!1),P},A=e.__addimage__.extractImageFromDataUrl=function(C){var P=(C=C||"").split("base64,"),M=null;if(P.length===2){var q=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(P[0]);Array.isArray(q)&&(M={mimeType:q[1],charset:q[2],data:P[1]})}return M},_=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(C){return _()&&C instanceof ArrayBuffer};var E=e.__addimage__.isArrayBufferView=function(C){return _()&&typeof Uint32Array<"u"&&(C instanceof Int8Array||C instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&C instanceof Uint8ClampedArray||C instanceof Int16Array||C instanceof Uint16Array||C instanceof Int32Array||C instanceof Uint32Array||C instanceof Float32Array||C instanceof Float64Array)},T=e.__addimage__.binaryStringToUint8Array=function(C){for(var P=C.length,M=new Uint8Array(P),q=0;q<P;q++)M[q]=C.charCodeAt(q);return M},k=e.__addimage__.arrayBufferToBinaryString=function(C){for(var P="",M=E(C)?C:new Uint8Array(C),q=0;q<M.length;q+=8192)P+=String.fromCharCode.apply(null,M.subarray(q,q+8192));return P};e.addImage=function(){var C,P,M,q,J,U,H,ee,Z;if(typeof arguments[1]=="number"?(P=t,M=arguments[1],q=arguments[2],J=arguments[3],U=arguments[4],H=arguments[5],ee=arguments[6],Z=arguments[7]):(P=arguments[1],M=arguments[2],q=arguments[3],J=arguments[4],U=arguments[5],H=arguments[6],ee=arguments[7],Z=arguments[8]),sr(C=arguments[0])==="object"&&!f(C)&&"imageData"in C){var Q=C;C=Q.imageData,P=Q.format||P||t,M=Q.x||M||0,q=Q.y||q||0,J=Q.w||Q.width||J,U=Q.h||Q.height||U,H=Q.alias||H,ee=Q.compression||ee,Z=Q.rotation||Q.angle||Z}var le=this.internal.getFilters();if(ee===void 0&&le.indexOf("FlateEncode")!==-1&&(ee="SLOW"),isNaN(M)||isNaN(q))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var N=L.call(this,C,P,H,ee);return p.call(this,M,q,J,U,N,Z),this};var L=function(C,P,M,q){var J,U,H;if(typeof C=="string"&&n(C)===t){C=unescape(C);var ee=D(C,!1);(ee!==""||(ee=e.loadFile(C,!0))!==void 0)&&(C=ee)}if(f(C)&&(C=d(C,P)),P=n(C,P),!c(P))throw new Error("addImage does not support files of type '"+P+"', please ensure that a plugin for '"+P+"' support is added.");if(((H=M)==null||H.length===0)&&(M=(function(Z){return typeof Z=="string"||E(Z)?x(Z):E(Z.data)?x(Z.data):null})(C)),(J=h.call(this,M))||(_()&&(C instanceof Uint8Array||P==="RGBA"||(U=C,C=T(C))),J=this["process"+P.toUpperCase()](C,u.call(this),M,(function(Z){return Z&&typeof Z=="string"&&(Z=Z.toUpperCase()),Z in e.image_compression?Z:y.NONE})(q),U)),!J)throw new Error("An unknown error occurred whilst processing the image.");return J},D=e.__addimage__.convertBase64ToBinaryString=function(C,P){var M;P=typeof P!="boolean"||P;var q,J="";if(typeof C=="string"){q=(M=A(C))!==null?M.data:C;try{J=gf(q)}catch(U){if(P)throw w(q)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+U.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return J};e.getImageProperties=function(C){var P,M,q="";if(f(C)&&(C=d(C)),typeof C=="string"&&n(C)===t&&((q=D(C,!1))===""&&(q=e.loadFile(C)||""),C=q),M=n(C),!c(M))throw new Error("addImage does not support files of type '"+M+"', please ensure that a plugin for '"+M+"' support is added.");if(!_()||C instanceof Uint8Array||(C=T(C)),!(P=this["process"+M.toUpperCase()](C)))throw new Error("An unknown error occurred whilst processing the image");return P.fileType=M,P}})(mt.API),(function(e){var t=function(r){if(r!==void 0&&r!="")return!0};mt.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(r){for(var n,i,a,o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(r.objId),u=r.pageContext.annotations,c=!1,f=0;f<u.length&&!c;f++)switch((n=u[f]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(c=!0);break;case"reference":case"text":case"freetext":c=!0}if(c!=0){this.internal.write("/Annots [");for(var d=0;d<u.length;d++){n=u[d];var h=this.internal.pdfEscape,g=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),x=n.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/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))+")",a+=" /Popup "+m.objId+" 0 R",a+=" /P "+l.objId+" 0 R",a+=" /T ("+h(y(x))+") >>",p.content=a;var w=p.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/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&&(a+=" /Open true"),a+=" >>",m.content=a,this.internal.write(p.objId,"0 R",m.objId,"0 R");break;case"freetext":i="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var A=n.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+h(g(n.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+A+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(n.options.name){var _=this.annotations._nameMap[n.options.name];n.options.pageNumber=_.page,n.options.top=_.y}else n.options.top||(n.options.top=0);if(i="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",a="",n.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+h(g(n.options.url))+") >>";else if(n.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/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":a+=" /Fit]";break;case"FitH":a+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,a+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var E=s(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),a+=" /XYZ "+n.options.left+" "+E+" "+n.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}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,i,a,o){var s=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(r),y:u(n),w:l(r+i),h:u(n+a)},options:o,type:"link"})},e.textWithLink=function(r,n,i,a){var o,s,l=this.getTextWidth(r),u=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){s=a.maxWidth;var c=this.splitTextToSize(r,s).length;o=Math.ceil(u*c)}else s=l,o=u;return this.text(r,n,i,a),i+=.2*u,a.align==="center"&&(n-=l/2),a.align==="right"&&(n-=l),this.link(n,i-u,s,o,a),l},e.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}})(mt.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},i=[1570,1571,1573,1575];e.__arabicParser__={};var a=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)&&a(p)&&t[p.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(p){return o(p)&&i.indexOf(p.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length>=1};var u=e.__arabicParser__.arabicLetterHasFinalForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length>=3};var c=e.__arabicParser__.arabicLetterHasMedialForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length==4},f=e.__arabicParser__.resolveLigatures=function(p){var m=0,y=r,x="",w=0;for(m=0;m<p.length;m+=1)y[p.charCodeAt(m)]!==void 0?(w++,typeof(y=y[p.charCodeAt(m)])=="number"&&(x+=String.fromCharCode(y),y=r,w=0),m===p.length-1&&(y=r,x+=p.charAt(m-(w-1)),m-=w-1,w=0)):(y=r,x+=p.charAt(m-w),m-=w,w=0);return x};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)?a(p)===!1?-1:!u(p)||!o(m)&&!o(y)||!o(y)&&s(m)||s(p)&&!o(m)||s(p)&&l(m)||s(p)&&s(m)?0:c(p)&&o(m)&&!s(m)&&o(y)&&u(y)?3:s(p)||!o(y)?1:2:-1},h=function(p){var m=0,y=0,x=0,w="",A="",_="",E=(p=p||"").split("\\s+"),T=[];for(m=0;m<E.length;m+=1){for(T.push(""),y=0;y<E[m].length;y+=1)w=E[m][y],A=E[m][y-1],_=E[m][y+1],o(w)?(x=d(w,A,_),T[m]+=x!==-1?String.fromCharCode(t[w.charCodeAt(0)][x]):w):T[m]+=w;T[m]=f(T[m])}return T.join(" ")},g=e.__arabicParser__.processArabic=e.processArabic=function(){var p,m=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(m)){var x=0;for(y=[],x=0;x<m.length;x+=1)Array.isArray(m[x])?y.push([h(m[x][0]),m[x][1],m[x][2]]):y.push([h(m[x])]);p=y}else p=h(m);return typeof arguments[0]=="string"?p:(arguments[0].text=p,arguments[0])};e.events.push(["preProcessText",g])})(mt.API),mt.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 i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(s){i=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(s){a=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 i;if((r=r||"2d")!=="2d")return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[i]);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}])})(mt.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(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(p){l=p}});var u=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return u},set:function(p){u=p}});var c=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return c},set:function(p){c=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 g=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return g},set:function(p){g=p}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.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,u){n.call(this);var c=(u=u||{}).fontSize||this.getFontSize(),f=u.font||this.getFont(),d=u.scaleFactor||this.internal.scaleFactor,h=0,g=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=u.maxWidth;y>0?typeof l=="string"?l=this.splitTextToSize(l,y):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce((function(w,A){return w.concat(m.splitTextToSize(A,y))}),[])):l=Array.isArray(l)?l:[l];for(var x=0;x<l.length;x++)h<(p=this.getStringUnitWidth(l[x],{font:f})*c)&&(h=p);return h!==0&&(g=l.length),{w:h/=d,h:Math.max((g*c*this.getLineHeightFactor()-c*(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 a(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 a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var u=this.internal.__cell__.lastCell,c=this.internal.__cell__.padding,f=this.internal.__cell__.margins||t,d=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return u.lineNumber!==void 0&&(u.lineNumber===l.lineNumber?(l.x=(u.x||0)+(u.width||0),l.y=u.y||0):u.y+u.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=u.y+u.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-c,l.y+c,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+c,{align:"center",baseline:"top",maxWidth:l.width-c-c}):this.text(l.text,l.x+c,l.y+c,{align:"left",baseline:"top",maxWidth:l.width-c-c})),this.internal.__cell__.lastCell=l,this};e.table=function(l,u,c,f,d){if(n.call(this),!c)throw new Error("No data for PDF table.");var h,g,p,m,y=[],x=[],w=[],A={},_={},E=[],T=[],k=(d=d||{}).autoSize||!1,L=d.printHeaders!==!1,D=d.css&&d.css["font-size"]!==void 0?16*d.css["font-size"]:d.fontSize||12,C=d.margins||Object.assign({width:this.getPageWidth()},t),P=typeof d.padding=="number"?d.padding:3,M=d.headerBackgroundColor||"#c8c8c8",q=d.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=L,this.internal.__cell__.margins=C,this.internal.__cell__.table_font_size=D,this.internal.__cell__.padding=P,this.internal.__cell__.headerBackgroundColor=M,this.internal.__cell__.headerTextColor=q,this.setFontSize(D),f==null)x=y=Object.keys(c[0]),w=y.map((function(){return"left"}));else if(Array.isArray(f)&&sr(f[0])==="object")for(y=f.map((function(Q){return Q.name})),x=f.map((function(Q){return Q.prompt||Q.name||""})),w=f.map((function(Q){return Q.align||"left"})),h=0;h<f.length;h+=1)_[f[h].name]=f[h].width*(19.049976/25.4);else Array.isArray(f)&&typeof f[0]=="string"&&(x=y=f,w=y.map((function(){return"left"})));if(k||Array.isArray(f)&&typeof f[0]=="string")for(h=0;h<y.length;h+=1){for(A[m=y[h]]=c.map((function(Q){return Q[m]})),this.setFont(void 0,"bold"),E.push(this.getTextDimensions(x[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),g=A[m],this.setFont(void 0,"normal"),p=0;p<g.length;p+=1)E.push(this.getTextDimensions(g[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);_[m]=Math.max.apply(null,E)+P+P,E=[]}if(L){var J={};for(h=0;h<y.length;h+=1)J[y[h]]={},J[y[h]].text=x[h],J[y[h]].align=w[h];var U=s.call(this,J,_);T=y.map((function(Q){return new a(l,u,_[Q],U,J[Q].text,void 0,J[Q].align)})),this.setTableHeaderRow(T),this.printHeaderRow(1,!1)}var H=f.reduce((function(Q,le){return Q[le.name]=le.align,Q}),{});for(h=0;h<c.length;h+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:h,data:c[h]},this);var ee=s.call(this,c[h],_);for(p=0;p<y.length;p+=1){var Z=c[h][y[p]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:h,col:p,data:Z},this),o.call(this,new a(l,u,_[y[p]],ee,Z,h+2,H[y[p]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=u,this};var s=function(l,u){var c=this.internal.__cell__.padding,f=this.internal.__cell__.table_font_size,d=this.internal.scaleFactor;return Object.keys(l).map((function(h){var g=l[h];return this.splitTextToSize(g.hasOwnProperty("text")?g.text:g,u[h]-c-c)}),this).map((function(h){return this.getLineHeightFactor()*h.length*f/d+c+c}),this).reduce((function(h,g){return Math.max(h,g)}),0)};e.setTableHeaderRow=function(l){n.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,u){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var c;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 a(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){c=this.internal.__cell__.tableHeaderRow[h].clone(),u&&(c.y=this.internal.__cell__.margins.top||0,d.push(c)),c.lineNumber=l;var g=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,c),this.setTextColor(g)}d.length>0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),r=!1}})(mt.API);var DP={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},BP=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],z2=MP(BP),$P=[100,200,300,400,500,600,700,800,900],JL=MP($P);function W2(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=(function(a){return DP[a=a||"normal"]?a:"normal"})(e.style),n=(function(a){if(!a)return 400;if(typeof a=="number")return a>=100&&a<=900&&a%100==0?a:400;if(/^\d00$/.test(a))return parseInt(a);switch(a){case"bold":return 700;case"normal":default:return 400}})(e.weight),i=(function(a){return typeof z2[a=a||"normal"]=="number"?a:"normal"})(e.stretch);return{family:t,style:r,weight:n,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,r,n].join(" ")}}}function Yw(e,t,r,n){var i;for(i=r;i>=0&&i<t.length;i+=n)if(e[t[i]])return e[t[i]];for(i=r;i>=0&&i<t.length;i-=n)if(e[t[i]])return e[t[i]]}var ZL={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Xw={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Jw(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function QL(e,t,r){for(var n=(r=r||{}).defaultFontFamily||"times",i=Object.assign({},ZL,r.genericFontFamilies||{}),a=null,o=null,s=0;s<t.length;++s)if(i[(a=W2(t[s])).family]&&(a.family=i[a.family]),e.hasOwnProperty(a.family)){o=e[a.family];break}if(!(o=o||e[n]))throw new Error("Could not find a font-family for the rule '"+Jw(a)+"' and default family '"+n+"'.");if(o=(function(l,u){if(u[l])return u[l];var c=z2[l],f=c<=z2.normal?-1:1,d=Yw(u,BP,c,f);if(!d)throw new Error("Could not find a matching font-stretch value for "+l);return d})(a.stretch,o),o=(function(l,u){if(u[l])return u[l];for(var c=DP[l],f=0;f<c.length;++f)if(u[c[f]])return u[c[f]];throw new Error("Could not find a matching font-style for "+l)})(a.style,o),!(o=(function(l,u){if(u[l])return u[l];if(l===400&&u[500])return u[500];if(l===500&&u[400])return u[400];var c=JL[l],f=Yw(u,$P,c,l<400?-1:1);if(!f)throw new Error("Could not find a matching font-weight for value "+l);return f})(a.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Jw(a)+"'.");return o}function Zw(e){return e.trimLeft()}function eI(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 tI(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 D0,Qw,e_,pv=["times"];(function(e){var t,r,n,i,a,o,s,l,u,c=function(N){return N=N||{},this.isStrokeTransparent=N.isStrokeTransparent||!1,this.strokeOpacity=N.strokeOpacity||1,this.strokeStyle=N.strokeStyle||"#000000",this.fillStyle=N.fillStyle||"#000000",this.isFillTransparent=N.isFillTransparent||!1,this.fillOpacity=N.fillOpacity||1,this.font=N.font||"10px sans-serif",this.textBaseline=N.textBaseline||"alphabetic",this.textAlign=N.textAlign||"left",this.lineWidth=N.lineWidth||1,this.lineJoin=N.lineJoin||"miter",this.lineCap=N.lineCap||"butt",this.path=N.path||[],this.transform=N.transform!==void 0?N.transform.clone():new l,this.globalCompositeOperation=N.globalCompositeOperation||"normal",this.globalAlpha=N.globalAlpha||1,this.clip_path=N.clip_path||[],this.currentPoint=N.currentPoint||new o,this.miterLimit=N.miterLimit||10,this.lastPoint=N.lastPoint||new o,this.lineDashOffset=N.lineDashOffset||0,this.lineDash=N.lineDash||[],this.margin=N.margin||[0,0,0,0],this.prevPageLastElemOffset=N.prevPageLastElemOffset||0,this.ignoreClearRect=typeof N.ignoreClearRect!="boolean"||N.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new f(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,l=this.internal.Matrix,u=new c}]);var f=function(N){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var I=N;Object.defineProperty(this,"pdf",{get:function(){return I}});var R=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return R},set:function(_e){R=!!_e}});var B=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return B},set:function(_e){B=!!_e}});var G=0;Object.defineProperty(this,"posX",{get:function(){return G},set:function(_e){isNaN(_e)||(G=_e)}});var ce=0;Object.defineProperty(this,"posY",{get:function(){return ce},set:function(_e){isNaN(_e)||(ce=_e)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(_e){var oe;typeof _e=="number"?oe=[_e,_e,_e,_e]:((oe=new Array(4))[0]=_e[0],oe[1]=_e.length>=2?_e[1]:oe[0],oe[2]=_e.length>=3?_e[2]:oe[0],oe[3]=_e.length>=4?_e[3]:oe[1]),u.margin=oe}});var he=!1;Object.defineProperty(this,"autoPaging",{get:function(){return he},set:function(_e){he=_e}});var ne=0;Object.defineProperty(this,"lastBreak",{get:function(){return ne},set:function(_e){ne=_e}});var me=[];Object.defineProperty(this,"pageBreaks",{get:function(){return me},set:function(_e){me=_e}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(_e){_e instanceof c&&(u=_e)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(_e){u.path=_e}});var Se=[];Object.defineProperty(this,"ctxStack",{get:function(){return Se},set:function(_e){Se=_e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(_e){var oe;oe=d(_e),this.ctx.fillStyle=oe.style,this.ctx.isFillTransparent=oe.a===0,this.ctx.fillOpacity=oe.a,this.pdf.setFillColor(oe.r,oe.g,oe.b,{a:oe.a}),this.pdf.setTextColor(oe.r,oe.g,oe.b,{a:oe.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(_e){var oe=d(_e);this.ctx.strokeStyle=oe.style,this.ctx.isStrokeTransparent=oe.a===0,this.ctx.strokeOpacity=oe.a,oe.a===0?this.pdf.setDrawColor(255,255,255):(oe.a,this.pdf.setDrawColor(oe.r,oe.g,oe.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(_e){["butt","round","square"].indexOf(_e)!==-1&&(this.ctx.lineCap=_e,this.pdf.setLineCap(_e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(_e){isNaN(_e)||(this.ctx.lineWidth=_e,this.pdf.setLineWidth(_e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(_e){["bevel","round","miter"].indexOf(_e)!==-1&&(this.ctx.lineJoin=_e,this.pdf.setLineJoin(_e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(_e){isNaN(_e)||(this.ctx.miterLimit=_e,this.pdf.setMiterLimit(_e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(_e){this.ctx.textBaseline=_e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(_e){["right","end","center","left","start"].indexOf(_e)!==-1&&(this.ctx.textAlign=_e)}});var ue=null;function Ie(_e,oe){if(ue===null){var Re=(function(tt){var Be=[];return Object.keys(tt).forEach((function(Ke){tt[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},Be.push(Je))}))})),Be})(_e.getFontList());ue=(function(tt){for(var Be={},Ke=0;Ke<tt.length;++Ke){var Ze=W2(tt[Ke]),Je=Ze.family,dt=Ze.stretch,pt=Ze.style,bt=Ze.weight;Be[Je]=Be[Je]||{},Be[Je][dt]=Be[Je][dt]||{},Be[Je][dt][pt]=Be[Je][dt][pt]||{},Be[Je][dt][pt][bt]=Ze}return Be})(Re.concat(oe))}return ue}var ge=null;Object.defineProperty(this,"fontFaces",{get:function(){return ge},set:function(_e){ue=null,ge=_e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(_e){var oe;if(this.ctx.font=_e,(oe=/^\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(_e))!==null){var Re=oe[1],tt=(oe[2],oe[3]),Be=oe[4],Ke=(oe[5],oe[6]),Ze=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Be)[2];Be=Math.floor(Ze==="px"?parseFloat(Be)*this.pdf.internal.scaleFactor:Ze==="em"?parseFloat(Be)*this.pdf.getFontSize():parseFloat(Be)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Be);var Je=(function(_t){var Mt,ot,ln=[],zt=_t.trim();if(zt==="")return pv;if(zt in Xw)return[Xw[zt]];for(;zt!=="";){switch(ot=null,Mt=(zt=Zw(zt)).charAt(0)){case'"':case"'":ot=eI(zt.substring(1),Mt);break;default:ot=tI(zt)}if(ot===null||(ln.push(ot[0]),(zt=Zw(ot[1]))!==""&&zt.charAt(0)!==","))return pv;zt=zt.replace(/^,/,"")}return ln})(Ke);if(this.fontFaces){var dt=QL(Ie(this.pdf,this.fontFaces),Je.map((function(_t){return{family:_t,stretch:"normal",weight:tt,style:Re}})));this.pdf.setFont(dt.ref.name,dt.ref.style)}else{var pt="";(tt==="bold"||parseInt(tt,10)>=700||Re==="bold")&&(pt="bold"),Re==="italic"&&(pt+="italic"),pt.length===0&&(pt="normal");for(var bt="",Ot={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"},Rt=0;Rt<Je.length;Rt++){if(this.pdf.internal.getFont(Je[Rt],pt,{noFallback:!0,disableWarning:!0})!==void 0){bt=Je[Rt];break}if(pt==="bolditalic"&&this.pdf.internal.getFont(Je[Rt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)bt=Je[Rt],pt="bold";else if(this.pdf.internal.getFont(Je[Rt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){bt=Je[Rt],pt="normal";break}}if(bt===""){for(var qt=0;qt<Je.length;qt++)if(Ot[Je[qt]]){bt=Ot[Je[qt]];break}}bt=bt===""?"Times":bt,this.pdf.setFont(bt,pt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(_e){this.ctx.globalCompositeOperation=_e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(_e){this.ctx.globalAlpha=_e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(_e){this.ctx.lineDashOffset=_e,le.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(_e){this.ctx.lineDash=_e,le.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(_e){this.ctx.ignoreClearRect=!!_e}})};f.prototype.setLineDash=function(N){this.lineDash=N},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){A.call(this,"fill",!1)},f.prototype.stroke=function(){A.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(N,I){if(isNaN(N)||isNaN(I))throw Sr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var R=this.ctx.transform.applyToPoint(new o(N,I));this.path.push({type:"mt",x:R.x,y:R.y}),this.ctx.lastPoint=new o(N,I)},f.prototype.closePath=function(){var N=new o(0,0),I=0;for(I=this.path.length-1;I!==-1;I--)if(this.path[I].type==="begin"&&sr(this.path[I+1])==="object"&&typeof this.path[I+1].x=="number"){N=new o(this.path[I+1].x,this.path[I+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(N.x,N.y)},f.prototype.lineTo=function(N,I){if(isNaN(N)||isNaN(I))throw Sr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var R=this.ctx.transform.applyToPoint(new o(N,I));this.path.push({type:"lt",x:R.x,y:R.y}),this.ctx.lastPoint=new o(R.x,R.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),A.call(this,null,!0)},f.prototype.quadraticCurveTo=function(N,I,R,B){if(isNaN(R)||isNaN(B)||isNaN(N)||isNaN(I))throw Sr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var G=this.ctx.transform.applyToPoint(new o(R,B)),ce=this.ctx.transform.applyToPoint(new o(N,I));this.path.push({type:"qct",x1:ce.x,y1:ce.y,x:G.x,y:G.y}),this.ctx.lastPoint=new o(G.x,G.y)},f.prototype.bezierCurveTo=function(N,I,R,B,G,ce){if(isNaN(G)||isNaN(ce)||isNaN(N)||isNaN(I)||isNaN(R)||isNaN(B))throw Sr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var he=this.ctx.transform.applyToPoint(new o(G,ce)),ne=this.ctx.transform.applyToPoint(new o(N,I)),me=this.ctx.transform.applyToPoint(new o(R,B));this.path.push({type:"bct",x1:ne.x,y1:ne.y,x2:me.x,y2:me.y,x:he.x,y:he.y}),this.ctx.lastPoint=new o(he.x,he.y)},f.prototype.arc=function(N,I,R,B,G,ce){if(isNaN(N)||isNaN(I)||isNaN(R)||isNaN(B)||isNaN(G))throw Sr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ce=!!ce,!this.ctx.transform.isIdentity){var he=this.ctx.transform.applyToPoint(new o(N,I));N=he.x,I=he.y;var ne=this.ctx.transform.applyToPoint(new o(0,R)),me=this.ctx.transform.applyToPoint(new o(0,0));R=Math.sqrt(Math.pow(ne.x-me.x,2)+Math.pow(ne.y-me.y,2))}Math.abs(G-B)>=2*Math.PI&&(B=0,G=2*Math.PI),this.path.push({type:"arc",x:N,y:I,radius:R,startAngle:B,endAngle:G,counterclockwise:ce})},f.prototype.arcTo=function(N,I,R,B,G){throw new Error("arcTo not implemented.")},f.prototype.rect=function(N,I,R,B){if(isNaN(N)||isNaN(I)||isNaN(R)||isNaN(B))throw Sr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(N,I),this.lineTo(N+R,I),this.lineTo(N+R,I+B),this.lineTo(N,I+B),this.lineTo(N,I),this.lineTo(N+R,I),this.lineTo(N,I)},f.prototype.fillRect=function(N,I,R,B){if(isNaN(N)||isNaN(I)||isNaN(R)||isNaN(B))throw Sr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var G={};this.lineCap!=="butt"&&(G.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(G.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(N,I,R,B),this.fill(),G.hasOwnProperty("lineCap")&&(this.lineCap=G.lineCap),G.hasOwnProperty("lineJoin")&&(this.lineJoin=G.lineJoin)}},f.prototype.strokeRect=function(N,I,R,B){if(isNaN(N)||isNaN(I)||isNaN(R)||isNaN(B))throw Sr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(N,I,R,B),this.stroke())},f.prototype.clearRect=function(N,I,R,B){if(isNaN(N)||isNaN(I)||isNaN(R)||isNaN(B))throw Sr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(N,I,R,B))},f.prototype.save=function(N){N=typeof N!="boolean"||N;for(var I=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R<this.pdf.internal.getNumberOfPages();R++)this.pdf.setPage(R+1),this.pdf.internal.out("q");if(this.pdf.setPage(I),N){this.ctx.fontSize=this.pdf.internal.getFontSize();var B=new c(this.ctx);this.ctxStack.push(this.ctx),this.ctx=B}},f.prototype.restore=function(N){N=typeof N!="boolean"||N;for(var I=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R<this.pdf.internal.getNumberOfPages();R++)this.pdf.setPage(R+1),this.pdf.internal.out("Q");this.pdf.setPage(I),N&&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(N){var I,R,B,G;if(N.isCanvasGradient===!0&&(N=N.getColor()),!N)return{r:0,g:0,b:0,a:0,style:N};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(N))I=0,R=0,B=0,G=0;else{var ce=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(N);if(ce!==null)I=parseInt(ce[1]),R=parseInt(ce[2]),B=parseInt(ce[3]),G=1;else if((ce=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(N))!==null)I=parseInt(ce[1]),R=parseInt(ce[2]),B=parseInt(ce[3]),G=parseFloat(ce[4]);else{if(G=1,typeof N=="string"&&N.charAt(0)!=="#"){var he=new jP(N);N=he.ok?he.toHex():"#000000"}N.length===4?(I=N.substring(1,2),I+=I,R=N.substring(2,3),R+=R,B=N.substring(3,4),B+=B):(I=N.substring(1,3),R=N.substring(3,5),B=N.substring(5,7)),I=parseInt(I,16),R=parseInt(R,16),B=parseInt(B,16)}}return{r:I,g:R,b:B,a:G,style:N}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},g=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};f.prototype.fillText=function(N,I,R,B){if(isNaN(I)||isNaN(R)||typeof N!="string")throw Sr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(B=isNaN(B)?void 0:B,!h.call(this)){var G=ee(this.ctx.transform.rotation),ce=this.ctx.transform.scaleX;P.call(this,{text:N,x:I,y:R,scale:ce,angle:G,align:this.textAlign,maxWidth:B})}},f.prototype.strokeText=function(N,I,R,B){if(isNaN(I)||isNaN(R)||typeof N!="string")throw Sr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!g.call(this)){B=isNaN(B)?void 0:B;var G=ee(this.ctx.transform.rotation),ce=this.ctx.transform.scaleX;P.call(this,{text:N,x:I,y:R,scale:ce,renderingMode:"stroke",angle:G,align:this.textAlign,maxWidth:B})}},f.prototype.measureText=function(N){if(typeof N!="string")throw Sr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var I=this.pdf,R=this.pdf.internal.scaleFactor,B=I.internal.getFontSize(),G=I.getStringUnitWidth(N)*B/I.internal.scaleFactor,ce=function(he){var ne=(he=he||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ne}}),this};return new ce({width:G*=Math.round(96*R/72*1e4)/1e4})},f.prototype.scale=function(N,I){if(isNaN(N)||isNaN(I))throw Sr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var R=new l(N,0,0,I,0,0);this.ctx.transform=this.ctx.transform.multiply(R)},f.prototype.rotate=function(N){if(isNaN(N))throw Sr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var I=new l(Math.cos(N),Math.sin(N),-Math.sin(N),Math.cos(N),0,0);this.ctx.transform=this.ctx.transform.multiply(I)},f.prototype.translate=function(N,I){if(isNaN(N)||isNaN(I))throw Sr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var R=new l(1,0,0,1,N,I);this.ctx.transform=this.ctx.transform.multiply(R)},f.prototype.transform=function(N,I,R,B,G,ce){if(isNaN(N)||isNaN(I)||isNaN(R)||isNaN(B)||isNaN(G)||isNaN(ce))throw Sr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var he=new l(N,I,R,B,G,ce);this.ctx.transform=this.ctx.transform.multiply(he)},f.prototype.setTransform=function(N,I,R,B,G,ce){N=isNaN(N)?1:N,I=isNaN(I)?0:I,R=isNaN(R)?0:R,B=isNaN(B)?1:B,G=isNaN(G)?0:G,ce=isNaN(ce)?0:ce,this.ctx.transform=new l(N,I,R,B,G,ce)};var p=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(N,I,R,B,G,ce,he,ne,me){var Se=this.pdf.getImageProperties(N),ue=1,Ie=1,ge=1,_e=1;B!==void 0&&ne!==void 0&&(ge=ne/B,_e=me/G,ue=Se.width/B*ne/B,Ie=Se.height/G*me/G),ce===void 0&&(ce=I,he=R,I=0,R=0),B!==void 0&&ne===void 0&&(ne=B,me=G),B===void 0&&ne===void 0&&(ne=Se.width,me=Se.height);for(var oe,Re=this.ctx.transform.decompose(),tt=ee(Re.rotate.shx),Be=new l,Ke=(Be=(Be=(Be=Be.multiply(Re.translate)).multiply(Re.skew)).multiply(Re.scale)).applyToRectangle(new s(ce-I*ge,he-R*_e,B*ue,G*Ie)),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 pt=Je[0],bt=Je[Je.length-1],Ot=pt;Ot<bt+1;Ot++){this.pdf.setPage(Ot);var Rt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],qt=Ot===1?this.posY+this.margin[0]:this.margin[0],_t=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Mt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ot=Ot===1?0:_t+(Ot-2)*Mt;if(this.ctx.clip_path.length!==0){var ln=this.path;oe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(oe,this.posX+this.margin[3],-ot+qt+this.ctx.prevPageLastElemOffset),_.call(this,"fill",!0),this.path=ln}var zt=JSON.parse(JSON.stringify(Ke));zt=x([zt],this.posX+this.margin[3],-ot+qt+this.ctx.prevPageLastElemOffset)[0];var si=(Ot>pt||Ot<bt)&&p.call(this);si&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Rt,Mt,null).clip().discardPath()),this.pdf.addImage(N,"JPEG",zt.x,zt.y,zt.w,zt.h,null,null,tt),si&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(N,"JPEG",Ke.x,Ke.y,Ke.w,Ke.h,null,null,tt)};var m=function(N,I,R){var B=[];I=I||this.pdf.internal.pageSize.width,R=R||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var G=this.posY+this.ctx.prevPageLastElemOffset;switch(N.type){default:case"mt":case"lt":B.push(Math.floor((N.y+G)/R)+1);break;case"arc":B.push(Math.floor((N.y+G-N.radius)/R)+1),B.push(Math.floor((N.y+G+N.radius)/R)+1);break;case"qct":var ce=Z(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x,N.y);B.push(Math.floor((ce.y+G)/R)+1),B.push(Math.floor((ce.y+ce.h+G)/R)+1);break;case"bct":var he=Q(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x2,N.y2,N.x,N.y);B.push(Math.floor((he.y+G)/R)+1),B.push(Math.floor((he.y+he.h+G)/R)+1);break;case"rect":B.push(Math.floor((N.y+G)/R)+1),B.push(Math.floor((N.y+N.h+G)/R)+1)}for(var ne=0;ne<B.length;ne+=1)for(;this.pdf.internal.getNumberOfPages()<B[ne];)y.call(this);return B},y=function(){var N=this.fillStyle,I=this.strokeStyle,R=this.font,B=this.lineCap,G=this.lineWidth,ce=this.lineJoin;this.pdf.addPage(),this.fillStyle=N,this.strokeStyle=I,this.font=R,this.lineCap=B,this.lineWidth=G,this.lineJoin=ce},x=function(N,I,R){for(var B=0;B<N.length;B++)switch(N[B].type){case"bct":N[B].x2+=I,N[B].y2+=R;case"qct":N[B].x1+=I,N[B].y1+=R;case"mt":case"lt":case"arc":default:N[B].x+=I,N[B].y+=R}return N},w=function(N){return N.sort((function(I,R){return I-R}))},A=function(N,I){for(var R,B,G=this.fillStyle,ce=this.strokeStyle,he=this.lineCap,ne=this.lineWidth,me=Math.abs(ne*this.ctx.transform.scaleX),Se=this.lineJoin,ue=JSON.parse(JSON.stringify(this.path)),Ie=JSON.parse(JSON.stringify(this.path)),ge=[],_e=0;_e<Ie.length;_e++)if(Ie[_e].x!==void 0)for(var oe=m.call(this,Ie[_e]),Re=0;Re<oe.length;Re+=1)ge.indexOf(oe[Re])===-1&&ge.push(oe[Re]);for(var tt=0;tt<ge.length;tt++)for(;this.pdf.internal.getNumberOfPages()<ge[tt];)y.call(this);if(w(ge),this.autoPaging)for(var Be=ge[0],Ke=ge[ge.length-1],Ze=Be;Ze<Ke+1;Ze++){this.pdf.setPage(Ze),this.fillStyle=G,this.strokeStyle=ce,this.lineCap=he,this.lineWidth=me,this.lineJoin=Se;var Je=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],dt=Ze===1?this.posY+this.margin[0]:this.margin[0],pt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],bt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ot=Ze===1?0:pt+(Ze-2)*bt;if(this.ctx.clip_path.length!==0){var Rt=this.path;R=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(R,this.posX+this.margin[3],-Ot+dt+this.ctx.prevPageLastElemOffset),_.call(this,N,!0),this.path=Rt}if(B=JSON.parse(JSON.stringify(ue)),this.path=x(B,this.posX+this.margin[3],-Ot+dt+this.ctx.prevPageLastElemOffset),I===!1||Ze===0){var qt=(Ze>Be||Ze<Ke)&&p.call(this);qt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Je,bt,null).clip().discardPath()),_.call(this,N,I),qt&&this.pdf.restoreGraphicsState()}this.lineWidth=ne}else this.lineWidth=me,_.call(this,N,I),this.lineWidth=ne;this.path=ue},_=function(N,I){if((N!=="stroke"||I||!g.call(this))&&(N==="stroke"||I||!h.call(this))){for(var R,B,G=[],ce=this.path,he=0;he<ce.length;he++){var ne=ce[he];switch(ne.type){case"begin":G.push({begin:!0});break;case"close":G.push({close:!0});break;case"mt":G.push({start:ne,deltas:[],abs:[]});break;case"lt":var me=G.length;if(ce[he-1]&&!isNaN(ce[he-1].x)&&(R=[ne.x-ce[he-1].x,ne.y-ce[he-1].y],me>0)){for(;me>=0;me--)if(G[me-1].close!==!0&&G[me-1].begin!==!0){G[me-1].deltas.push(R),G[me-1].abs.push(ne);break}}break;case"bct":R=[ne.x1-ce[he-1].x,ne.y1-ce[he-1].y,ne.x2-ce[he-1].x,ne.y2-ce[he-1].y,ne.x-ce[he-1].x,ne.y-ce[he-1].y],G[G.length-1].deltas.push(R);break;case"qct":var Se=ce[he-1].x+2/3*(ne.x1-ce[he-1].x),ue=ce[he-1].y+2/3*(ne.y1-ce[he-1].y),Ie=ne.x+2/3*(ne.x1-ne.x),ge=ne.y+2/3*(ne.y1-ne.y),_e=ne.x,oe=ne.y;R=[Se-ce[he-1].x,ue-ce[he-1].y,Ie-ce[he-1].x,ge-ce[he-1].y,_e-ce[he-1].x,oe-ce[he-1].y],G[G.length-1].deltas.push(R);break;case"arc":G.push({deltas:[],abs:[],arc:!0}),Array.isArray(G[G.length-1].abs)&&G[G.length-1].abs.push(ne)}}B=I?null:N==="stroke"?"stroke":"fill";for(var Re=!1,tt=0;tt<G.length;tt++)if(G[tt].arc)for(var Be=G[tt].abs,Ke=0;Ke<Be.length;Ke++){var Ze=Be[Ke];Ze.type==="arc"?k.call(this,Ze.x,Ze.y,Ze.radius,Ze.startAngle,Ze.endAngle,Ze.counterclockwise,void 0,I,!Re):M.call(this,Ze.x,Ze.y),Re=!0}else if(G[tt].close===!0)this.pdf.internal.out("h"),Re=!1;else if(G[tt].begin!==!0){var Je=G[tt].start.x,dt=G[tt].start.y;q.call(this,G[tt].deltas,Je,dt),Re=!0}B&&L.call(this,B),I&&D.call(this)}},E=function(N){var I=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,R=I*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return N-R;case"top":return N+I-R;case"hanging":return N+I-2*R;case"middle":return N+I/2-R;case"ideographic":return N;case"alphabetic":default:return N}},T=function(N){return N+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.prototype.createLinearGradient=function(){var N=function(){};return N.colorStops=[],N.addColorStop=function(I,R){this.colorStops.push([I,R])},N.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},N.isCanvasGradient=!0,N},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var k=function(N,I,R,B,G,ce,he,ne,me){for(var Se=U.call(this,R,B,G,ce),ue=0;ue<Se.length;ue++){var Ie=Se[ue];ue===0&&(me?C.call(this,Ie.x1+N,Ie.y1+I):M.call(this,Ie.x1+N,Ie.y1+I)),J.call(this,N,I,Ie.x2,Ie.y2,Ie.x3,Ie.y3,Ie.x4,Ie.y4)}ne?D.call(this):L.call(this,he)},L=function(N){switch(N){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},D=function(){this.pdf.clip(),this.pdf.discardPath()},C=function(N,I){this.pdf.internal.out(r(N)+" "+n(I)+" m")},P=function(N){var I;switch(N.align){case"right":case"end":I="right";break;case"center":I="center";break;case"left":case"start":default:I="left"}var R=this.pdf.getTextDimensions(N.text),B=E.call(this,N.y),G=T.call(this,B)-R.h,ce=this.ctx.transform.applyToPoint(new o(N.x,B)),he=this.ctx.transform.decompose(),ne=new l;ne=(ne=(ne=ne.multiply(he.translate)).multiply(he.skew)).multiply(he.scale);for(var me,Se,ue,Ie=this.ctx.transform.applyToRectangle(new s(N.x,B,R.w,R.h)),ge=ne.applyToRectangle(new s(N.x,G,R.w,R.h)),_e=m.call(this,ge),oe=[],Re=0;Re<_e.length;Re+=1)oe.indexOf(_e[Re])===-1&&oe.push(_e[Re]);if(w(oe),this.autoPaging)for(var tt=oe[0],Be=oe[oe.length-1],Ke=tt;Ke<Be+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],pt=dt-this.margin[0],bt=this.pdf.internal.pageSize.width-this.margin[1],Ot=bt-this.margin[3],Rt=Ke===1?0:Je+(Ke-2)*pt;if(this.ctx.clip_path.length!==0){var qt=this.path;me=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(me,this.posX+this.margin[3],-1*Rt+Ze),_.call(this,"fill",!0),this.path=qt}var _t=x([JSON.parse(JSON.stringify(ge))],this.posX+this.margin[3],-Rt+Ze+this.ctx.prevPageLastElemOffset)[0];N.scale>=.01&&(Se=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Se*N.scale),ue=this.lineWidth,this.lineWidth=ue*N.scale);var Mt=this.autoPaging!=="text";if(Mt||_t.y+_t.h<=dt){if(Mt||_t.y>=Ze&&_t.x<=bt){var ot=Mt?N.text:this.pdf.splitTextToSize(N.text,N.maxWidth||bt-_t.x)[0],ln=x([JSON.parse(JSON.stringify(Ie))],this.posX+this.margin[3],-Rt+Ze+this.ctx.prevPageLastElemOffset)[0],zt=Mt&&(Ke>tt||Ke<Be)&&p.call(this);zt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ot,pt,null).clip().discardPath()),this.pdf.text(ot,ln.x,ln.y,{angle:N.angle,align:I,renderingMode:N.renderingMode}),zt&&this.pdf.restoreGraphicsState()}}else _t.y<dt&&(this.ctx.prevPageLastElemOffset+=dt-_t.y);N.scale>=.01&&(this.pdf.setFontSize(Se),this.lineWidth=ue)}else N.scale>=.01&&(Se=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Se*N.scale),ue=this.lineWidth,this.lineWidth=ue*N.scale),this.pdf.text(N.text,ce.x+this.posX,ce.y+this.posY,{angle:N.angle,align:I,renderingMode:N.renderingMode,maxWidth:N.maxWidth}),N.scale>=.01&&(this.pdf.setFontSize(Se),this.lineWidth=ue)},M=function(N,I,R,B){R=R||0,B=B||0,this.pdf.internal.out(r(N+R)+" "+n(I+B)+" l")},q=function(N,I,R){return this.pdf.lines(N,I,R,null,null)},J=function(N,I,R,B,G,ce,he,ne){this.pdf.internal.out([t(i(R+N)),t(a(B+I)),t(i(G+N)),t(a(ce+I)),t(i(he+N)),t(a(ne+I)),"c"].join(" "))},U=function(N,I,R,B){for(var G=2*Math.PI,ce=Math.PI/2;I>R;)I-=G;var he=Math.abs(R-I);he<G&&B&&(he=G-he);for(var ne=[],me=B?-1:1,Se=I;he>1e-5;){var ue=Se+me*Math.min(he,ce);ne.push(H.call(this,N,Se,ue)),he-=Math.abs(ue-Se),Se=ue}return ne},H=function(N,I,R){var B=(R-I)/2,G=N*Math.cos(B),ce=N*Math.sin(B),he=G,ne=-ce,me=he*he+ne*ne,Se=me+he*G+ne*ce,ue=4/3*(Math.sqrt(2*me*Se)-Se)/(he*ce-ne*G),Ie=he-ue*ne,ge=ne+ue*he,_e=Ie,oe=-ge,Re=B+I,tt=Math.cos(Re),Be=Math.sin(Re);return{x1:N*Math.cos(I),y1:N*Math.sin(I),x2:Ie*tt-ge*Be,y2:Ie*Be+ge*tt,x3:_e*tt-oe*Be,y3:_e*Be+oe*tt,x4:N*Math.cos(R),y4:N*Math.sin(R)}},ee=function(N){return 180*N/Math.PI},Z=function(N,I,R,B,G,ce){var he=N+.5*(R-N),ne=I+.5*(B-I),me=G+.5*(R-G),Se=ce+.5*(B-ce),ue=Math.min(N,G,he,me),Ie=Math.max(N,G,he,me),ge=Math.min(I,ce,ne,Se),_e=Math.max(I,ce,ne,Se);return new s(ue,ge,Ie-ue,_e-ge)},Q=function(N,I,R,B,G,ce,he,ne){var me,Se,ue,Ie,ge,_e,oe,Re,tt,Be,Ke,Ze,Je,dt,pt=R-N,bt=B-I,Ot=G-R,Rt=ce-B,qt=he-G,_t=ne-ce;for(Se=0;Se<41;Se++)tt=(oe=(ue=N+(me=Se/40)*pt)+me*((ge=R+me*Ot)-ue))+me*(ge+me*(G+me*qt-ge)-oe),Be=(Re=(Ie=I+me*bt)+me*((_e=B+me*Rt)-Ie))+me*(_e+me*(ce+me*_t-_e)-Re),Se==0?(Ke=tt,Ze=Be,Je=tt,dt=Be):(Ke=Math.min(Ke,tt),Ze=Math.min(Ze,Be),Je=Math.max(Je,tt),dt=Math.max(dt,Be));return new s(Math.round(Ke),Math.round(Ze),Math.round(Je-Ke),Math.round(dt-Ze))},le=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var N,I,R=(N=this.ctx.lineDash,I=this.ctx.lineDashOffset,JSON.stringify({lineDash:N,lineDashOffset:I}));this.prevLineDash!==R&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=R)}}})(mt.API),(function(e){var t=function(a){var o,s,l,u,c,f,d,h,g,p;for(s=[],l=0,u=(a+=o="\0\0\0\0".slice(a.length%4||4)).length;u>l;l+=4)(c=(a.charCodeAt(l)<<24)+(a.charCodeAt(l+1)<<16)+(a.charCodeAt(l+2)<<8)+a.charCodeAt(l+3))!==0?(f=(c=((c=((c=((c=(c-(p=c%85))/85)-(g=c%85))/85)-(h=c%85))/85)-(d=c%85))/85)%85,s.push(f+33,d+33,h+33,g+33,p+33)):s.push(122);return(function(m,y){for(var x=y;x>0;x--)m.pop()})(s,o.length),String.fromCharCode.apply(String,s)+"~>"},r=function(a){var o,s,l,u,c,f=String,d="length",h=255,g="charCodeAt",p="slice",m="replace";for(a[p](-2),a=a[p](0,-2)[m](/\s/g,"")[m]("z","!!!!!"),l=[],u=0,c=(a+=o="uuuuu"[p](a[d]%5||5))[d];c>u;u+=5)s=52200625*(a[g](u)-33)+614125*(a[g](u+1)-33)+7225*(a[g](u+2)-33)+85*(a[g](u+3)-33)+(a[g](u+4)-33),l.push(h&s>>24,h&s>>16,h&s>>8,h&s);return(function(y,x){for(var w=x;w>0;w--)y.pop()})(l,o[d]),f.fromCharCode.apply(f,l)},n=function(a){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((a=a.replace(/\s/g,"")).indexOf(">")!==-1&&(a=a.substr(0,a.indexOf(">"))),a.length%2&&(a+="0"),o.test(a)===!1)return"";for(var s="",l=0;l<a.length;l+=2)s+=String.fromCharCode("0x"+(a[l]+a[l+1]));return s},i=function(a){for(var o=new Uint8Array(a.length),s=a.length;s--;)o[s]=a.charCodeAt(s);return a=(o=D2(o)).reduce((function(l,u){return l+String.fromCharCode(u)}),"")};e.processDataByFilters=function(a,o){var s=0,l=a||"",u=[];for(typeof(o=o||[])=="string"&&(o=[o]),s=0;s<o.length;s+=1)switch(o[s]){case"ASCII85Decode":case"/ASCII85Decode":l=r(l),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=n(l),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map((function(c){return("0"+c.charCodeAt().toString(16)).slice(-2)})).join("")+">",u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[s]+'" is not implemented')}return{data:l,reverseChain:u.reverse().join(" ")}}})(mt.API),(function(e){e.loadFile=function(t,r,n){return(function(i,a,o){a=a!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=(function(l,u,c){var f=new XMLHttpRequest,d=0,h=function(g){var p=g.length,m=[],y=String.fromCharCode;for(d=0;d<p;d+=1)m.push(y(255&g.charCodeAt(d)));return m.join("")};if(f.open("GET",l,!u),f.overrideMimeType("text/plain; charset=x-user-defined"),u===!1&&(f.onload=function(){f.status===200?c(h(this.responseText)):c(void 0)}),f.send(null),u&&f.status===200)return h(f.responseText)})(i,a,o)}catch{}return s})(t,r,n)},e.loadImageFile=e.loadFile})(mt.API),(function(e){function t(){return(St.html2canvas?Promise.resolve(St.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(St.DOMPurify?Promise.resolve(St.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=sr(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"},i=function(o,s){var l=document.createElement(o);for(var u in s.className&&(l.className=s.className),s.innerHTML&&s.dompurify&&(l.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)l.style[u]=s.style[u];return l},a=function o(s){var l=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),u=o.convert(Promise.resolve(),l);return u=(u=u.setProgress(1,o,1,[o])).set(s)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(o,s){return o.__proto__=s||a.prototype,o},a.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"}},a.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:i("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.")}}))},a.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.")}},a.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(u,c){for(var f=u.nodeType===3?document.createTextNode(u.nodeValue):u.cloneNode(!1),d=u.firstChild;d;d=d.nextSibling)c!==!0&&d.nodeType===1&&d.nodeName==="SCRIPT"||f.appendChild(l(d,c));return u.nodeType===1&&(u.nodeName==="CANVAS"?(f.width=u.width,f.height=u.height,f.getContext("2d").drawImage(u,0,0)):u.nodeName!=="TEXTAREA"&&u.nodeName!=="SELECT"||(f.value=u.value),f.addEventListener("load",(function(){f.scrollTop=u.scrollTop,f.scrollLeft=u.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=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(s),this.prop.container.firstChild.appendChild(i("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"}))},a.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)}))},a.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,u=this.opt.fontFaces,c=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:c,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=u,u)for(var d=0;d<u.length;++d){var h=u[d],g=h.src.find((function(p){return p.format==="truetype"}));g&&l.addFont(g.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)}))},a.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}))},a.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},a.prototype.output=function(o,s,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(o,s):this.outputPdf(o,s)},a.prototype.outputPdf=function(o,s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(o,s)}))},a.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.'}}))},a.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)}))},a.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},a.prototype.set=function(o){if(n(o)!=="object")return this;var s=Object.keys(o||{}).map((function(l){if(l in a.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)}))},a.prototype.get=function(o,s){return this.then((function(){var l=o in a.template.prop?this.prop[o]:this.opt[o];return s?s(l):l}))},a.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)},a.prototype.setPageSize=function(o){function s(l,u){return Math.floor(l*u/72*96)}return this.then((function(){(o=o||mt.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}))},a.prototype.setProgress=function(o,s,l,u){return o!=null&&(this.progress.val=o),s!=null&&(this.progress.state=s),l!=null&&(this.progress.n=l),u!=null&&(this.progress.stack=u),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(o,s,l,u){return this.setProgress(o?this.progress.val+o:null,s||null,l?this.progress.n+l:null,u?this.progress.stack.concat(u):null)},a.prototype.then=function(o,s){var l=this;return this.thenCore(o,s,(function(u,c){return l.updateProgress(null,null,1,[u]),Promise.prototype.then.call(this,(function(f){return l.updateProgress(null,u),f})).then(u,c).then((function(f){return l.updateProgress(1),f}))}))},a.prototype.thenCore=function(o,s,l){l=l||Promise.prototype.then,o&&(o=o.bind(this)),s&&(s=s.bind(this));var u=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:a.convert(Object.assign({},this),Promise.prototype),c=l.call(u,o,s);return a.convert(c,this.__proto__)},a.prototype.thenExternal=function(o,s){return Promise.prototype.then.call(this,o,s)},a.prototype.thenList=function(o){var s=this;return o.forEach((function(l){s=s.thenCore(l)})),s},a.prototype.catch=function(o){o&&(o=o.bind(this));var s=Promise.prototype.catch.call(this,o);return a.convert(s,this)},a.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},a.prototype.error=function(o){return this.then((function(){throw new Error(o)}))},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,mt.getPageSize=function(o,s,l){if(sr(o)==="object"){var u=o;o=u.orientation,s=u.unit||s,l=u.format||l}s=s||"mm",l=l||"a4",o=(""+(o||"P")).toLowerCase();var c,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":c=1;break;case"mm":c=72/25.4;break;case"cm":c=72/2.54;break;case"in":c=72;break;case"px":c=.75;break;case"pc":case"em":c=12;break;case"ex":c=6;break;default:throw"Invalid unit: "+s}var h,g=0,p=0;if(d.hasOwnProperty(f))g=d[f][1]/c,p=d[f][0]/c;else try{g=l[1],p=l[0]}catch{throw new Error("Invalid format: "+l)}if(o==="p"||o==="portrait")o="p",p>g&&(h=p,p=g,g=h);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",g>p&&(h=p,p=g,g=h)}return{width:p,height:g,unit:s,k:c,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(W2):null;var l=new a(s);return s.worker?l:l.from(o).doCallback()}})(mt.API),mt.API.addJS=function(e){return e_=e,this.internal.events.subscribe("postPutResources",(function(){D0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(D0+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Qw=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+e_+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){D0!==void 0&&Qw!==void 0&&this.internal.out("/Names <</JavaScript "+D0+" 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 i=r.outline.render().split(/\r\n/),a=0;a<i.length;a++){var o=i[a],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 u=this.internal.pages.length,c=[];for(a=0;a<u;a++){var f=r.internal.newObject();c.push(f);var d=r.internal.getPageInfo(a+1);r.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var h=r.internal.newObject();for(r.internal.write("<< /Names [ "),a=0;a<c.length;a++)r.internal.write("(page_"+(a+1)+")"+c[a]+" 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,i,a){var o={title:i,options:a,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 i=0;i<n.children.length;i++)this.genIds_r(n.children[i])},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 i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<n.children.length;a++){var o=n.children[a];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(n)),a>0&&this.line("/Prev "+this.makeRef(n.children[a-1])),a<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[a+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 "+i(0)+" 0]")}this.objEnd()}for(var u=0;u<n.children.length;u++)this.renderItems(n.children[u])},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,i){for(var a=0;a<i.children.length;a++)n.count++,this.count_r(n,i.children[a]);return n.count}}])})(mt.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(r,n,i,a,o,s){var l,u=this.decode.DCT_DECODE,c=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),g=f.length,p={width:0,height:0,numcomponents:1},m=4;m<g;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}c={data:r,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:u,index:n,alias:i}}return c}})(mt.API);var Ql,B0,t_,r_,n_,rI=(function(){var e,t,r;function n(a){var o,s,l,u,c,f,d,h,g,p,m,y,x,w;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},f=null;;){switch(o=this.readUInt32(),g=(function(){var A,_;for(_=[],A=0;A<4;++A)_.push(String.fromCharCode(this.data[this.pos++]));return _}).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()},c=this.readUInt16(),u=this.readUInt16()||100,f.delay=1e3*c/u,f.disposeOp=this.data[this.pos++],f.blendOp=this.data[this.pos++],f.data=[];break;case"IDAT":case"fdAT":for(g==="fdAT"&&(this.pos+=4,o-=4),a=(f!=null?f.data:void 0)||this.imgData,y=0;0<=o?y<o:y>o;0<=o?++y:--y)a.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(x=0;0<=p?x<p:x>p;0<=p?++x:--x)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(a){var o,s;for(s=[],o=0;0<=a?o<a:o>a;0<=a?++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(a){var o=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*o),l=0,u=this;if(a==null&&(a=this.imgData),a.length===0)return new Uint8Array(0);function c(f,d,h,g){var p,m,y,x,w,A,_,E,T,k,L,D,C,P,M,q,J,U,H,ee,Z,Q=Math.ceil((u.width-f)/h),le=Math.ceil((u.height-d)/g),N=u.width==Q&&u.height==le;for(P=o*Q,D=N?s:new Uint8Array(P*le),A=a.length,C=0,m=0;C<le&&l<A;){switch(a[l++]){case 0:for(x=J=0;J<P;x=J+=1)D[m++]=a[l++];break;case 1:for(x=U=0;U<P;x=U+=1)p=a[l++],w=x<o?0:D[m-o],D[m++]=(p+w)%256;break;case 2:for(x=H=0;H<P;x=H+=1)p=a[l++],y=(x-x%o)/o,M=C&&D[(C-1)*P+y*o+x%o],D[m++]=(M+p)%256;break;case 3:for(x=ee=0;ee<P;x=ee+=1)p=a[l++],y=(x-x%o)/o,w=x<o?0:D[m-o],M=C&&D[(C-1)*P+y*o+x%o],D[m++]=(p+Math.floor((w+M)/2))%256;break;case 4:for(x=Z=0;Z<P;x=Z+=1)p=a[l++],y=(x-x%o)/o,w=x<o?0:D[m-o],C===0?M=q=0:(M=D[(C-1)*P+y*o+x%o],q=y&&D[(C-1)*P+(y-1)*o+x%o]),_=w+M-q,E=Math.abs(_-w),k=Math.abs(_-M),L=Math.abs(_-q),T=E<=k&&E<=L?w:k<=L?M:q,D[m++]=(p+T)%256;break;default:throw new Error("Invalid filter algorithm: "+a[l-1])}if(!N){var I=((d+C*g)*u.width+f)*o,R=C*P;for(x=0;x<Q;x+=1){for(var B=0;B<o;B+=1)s[I++]=D[R++];I+=(h-1)*o}}C++}}return a=LL(a),u.interlaceMethod==1?(c(0,0,8,8),c(4,0,8,8),c(0,4,4,8),c(2,0,4,4),c(0,2,2,4),c(1,0,2,2),c(0,1,1,2)):c(0,0,1,1),s},n.prototype.decodePalette=function(){var a,o,s,l,u,c,f,d,h;for(s=this.palette,c=this.transparency.indexed||[],u=new Uint8Array((c.length||0)+s.length),l=0,a=0,o=f=0,d=s.length;f<d;o=f+=3)u[l++]=s[o],u[l++]=s[o+1],u[l++]=s[o+2],u[l++]=(h=c[a++])!=null?h:255;return u},n.prototype.copyToImageData=function(a,o){var s,l,u,c,f,d,h,g,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),g=(u=a.data||a).length,f=p||o,c=d=0,l===1)for(;c<g;)h=p?4*o[c/4]:d,m=f[h++],u[c++]=m,u[c++]=m,u[c++]=m,u[c++]=s?f[h++]:255,d=h;else for(;c<g;)h=p?4*o[c/4]:d,u[c++]=f[h++],u[c++]=f[h++],u[c++]=f[h++],u[c++]=s?f[h++]:255,d=h},n.prototype.decode=function(){var a;return a=new Uint8Array(this.width*this.height*4),this.copyToImageData(a,this.decodePixels()),a};var i=function(){if(Object.prototype.toString.call(St)==="[object Window]"){try{t=St.document.createElement("canvas"),r=t.getContext("2d")}catch{return!1}return!0}return!1};return i(),e=function(a){var o;if(i()===!0)return r.width=a.width,r.height=a.height,r.clearRect(0,0,a.width,a.height),r.putImageData(a,0,0),(o=new Image).src=t.toDataURL(),o;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(a){var o,s,l,u,c,f,d,h;if(this.animation){for(h=[],s=c=0,f=(d=this.animation.frames).length;c<f;s=++c)o=d[s],l=a.createImageData(o.width,o.height),u=this.decodePixels(new Uint8Array(o.data)),this.copyToImageData(l,u),o.imageData=l,h.push(o.image=e(l));return h}},n.prototype.renderFrame=function(a,o){var s,l,u;return s=(l=this.animation.frames)[o],u=l[o-1],o===0&&a.clearRect(0,0,this.width,this.height),(u!=null?u.disposeOp:void 0)===1?a.clearRect(u.xOffset,u.yOffset,u.width,u.height):(u!=null?u.disposeOp:void 0)===2&&a.putImageData(u.imageData,u.xOffset,u.yOffset),s.blendOp===0&&a.clearRect(s.xOffset,s.yOffset,s.width,s.height),a.drawImage(s.image,s.xOffset,s.yOffset)},n.prototype.animate=function(a){var o,s,l,u,c,f,d=this;return s=0,f=this.animation,u=f.numFrames,l=f.frames,c=f.numPlays,(o=function(){var h,g;if(h=s++%u,g=l[h],d.renderFrame(a,h),u>1&&s/u<c)return d.animation._timeout=setTimeout(o,g.delay)})()},n.prototype.stopAnimation=function(){var a;return clearTimeout((a=this.animation)!=null?a._timeout:void 0)},n.prototype.render=function(a){var o,s;return a._png&&a._png.stopAnimation(),a._png=this,a.width=this.width,a.height=this.height,o=a.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 nI(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,i=e[t++],a=i>>7,o=1<<(7&i)+1;e[t++],e[t++];var s=null,l=null;a&&(s=t,l=o,t+=3*o);var u=!0,c=[],f=0,d=null,h=0,g=null;for(this.width=r,this.height=n;u&&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,g=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((C=e[t++])>=0))throw Error("Invalid block size");if(C===0)break;t+=C}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(!((C=e[t++])>=0))throw Error("Invalid block size");if(C===0)break;t+=C}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,x=e[t++]|e[t++]<<8,w=e[t++]|e[t++]<<8,A=e[t++],_=A>>6&1,E=1<<(7&A)+1,T=s,k=l,L=!1;A>>7&&(L=!0,T=t,k=E,t+=3*E);var D=t;for(t++;;){var C;if(!((C=e[t++])>=0))throw Error("Invalid block size");if(C===0)break;t+=C}c.push({x:m,y,width:x,height:w,has_local_palette:L,palette_offset:T,palette_size:k,data_offset:D,data_length:t-D,transparent_index:d,interlaced:!!_,delay:f,disposal:h});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return g},this.frameInfo=function(P){if(P<0||P>=c.length)throw new Error("Frame index out of range.");return c[P]},this.decodeAndBlitFrameBGRA=function(P,M){var q=this.frameInfo(P),J=q.width*q.height,U=new Uint8Array(J);i_(e,q.data_offset,U,J);var H=q.palette_offset,ee=q.transparent_index;ee===null&&(ee=256);var Z=q.width,Q=r-Z,le=Z,N=4*(q.y*r+q.x),I=4*((q.y+q.height)*r+q.x),R=N,B=4*Q;q.interlaced===!0&&(B+=4*r*7);for(var G=8,ce=0,he=U.length;ce<he;++ce){var ne=U[ce];if(le===0&&(le=Z,(R+=B)>=I&&(B=4*Q+4*r*(G-1),R=N+(Z+Q)*(G<<1),G>>=1)),ne===ee)R+=4;else{var me=e[H+3*ne],Se=e[H+3*ne+1],ue=e[H+3*ne+2];M[R++]=ue,M[R++]=Se,M[R++]=me,M[R++]=255}--le}},this.decodeAndBlitFrameRGBA=function(P,M){var q=this.frameInfo(P),J=q.width*q.height,U=new Uint8Array(J);i_(e,q.data_offset,U,J);var H=q.palette_offset,ee=q.transparent_index;ee===null&&(ee=256);var Z=q.width,Q=r-Z,le=Z,N=4*(q.y*r+q.x),I=4*((q.y+q.height)*r+q.x),R=N,B=4*Q;q.interlaced===!0&&(B+=4*r*7);for(var G=8,ce=0,he=U.length;ce<he;++ce){var ne=U[ce];if(le===0&&(le=Z,(R+=B)>=I&&(B=4*Q+4*r*(G-1),R=N+(Z+Q)*(G<<1),G>>=1)),ne===ee)R+=4;else{var me=e[H+3*ne],Se=e[H+3*ne+1],ue=e[H+3*ne+2];M[R++]=me,M[R++]=Se,M[R++]=ue,M[R++]=255}--le}}}function i_(e,t,r,n){for(var i=e[t++],a=1<<i,o=a+1,s=o+1,l=i+1,u=(1<<l)-1,c=0,f=0,d=0,h=e[t++],g=new Int32Array(4096),p=null;;){for(;c<16&&h!==0;)f|=e[t++]<<c,c+=8,h===1?h=e[t++]:--h;if(c<l)break;var m=f&u;if(f>>=l,c-=l,m!==a){if(m===o)break;for(var y=m<s?m:p,x=0,w=y;w>a;)w=g[w]>>8,++x;var A=w;if(d+x+(y!==m?1:0)>n)return void Sr.log("Warning, gif stream longer than expected.");r[d++]=A;var _=d+=x;for(y!==m&&(r[d++]=A),w=y;x--;)w=g[w],r[--_]=255&w,w>>=8;p!==null&&s<4096&&(g[s++]=p<<8|A,s>=u+1&&l<12&&(++l,u=u<<1|1)),p=m}else s=o+1,u=(1<<(l=i+1))-1,p=null}return d!==n&&Sr.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 vv(e){var t,r,n,i,a,o=Math.floor,s=new Array(64),l=new Array(64),u=new Array(64),c=new Array(64),f=new Array(65535),d=new Array(65535),h=new Array(64),g=new Array(64),p=[],m=0,y=7,x=new Array(64),w=new Array(64),A=new Array(64),_=new Array(256),E=new Array(2048),T=[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],k=[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],D=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],C=[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],P=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],M=[0,1,2,3,4,5,6,7,8,9,10,11],q=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],J=[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 U(N,I){for(var R=0,B=0,G=new Array,ce=1;ce<=16;ce++){for(var he=1;he<=N[ce];he++)G[I[B]]=[],G[I[B]][0]=R,G[I[B]][1]=ce,B++,R++;R*=2}return G}function H(N){for(var I=N[0],R=N[1]-1;R>=0;)I&1<<R&&(m|=1<<y),R--,--y<0&&(m==255?(ee(255),ee(0)):ee(m),y=7,m=0)}function ee(N){p.push(N)}function Z(N){ee(N>>8&255),ee(255&N)}function Q(N,I,R,B,G){for(var ce,he=G[0],ne=G[240],me=(function(Be,Ke){var Ze,Je,dt,pt,bt,Ot,Rt,qt,_t,Mt,ot=0;for(_t=0;_t<8;++_t){Ze=Be[ot],Je=Be[ot+1],dt=Be[ot+2],pt=Be[ot+3],bt=Be[ot+4],Ot=Be[ot+5],Rt=Be[ot+6];var ln=Ze+(qt=Be[ot+7]),zt=Ze-qt,si=Je+Rt,Qt=Je-Rt,Tr=dt+Ot,Bi=dt-Ot,Gt=pt+bt,Ia=pt-bt,Nr=ln+Gt,_i=ln-Gt,la=si+Tr,wr=si-Tr;Be[ot]=Nr+la,Be[ot+4]=Nr-la;var Tt=.707106781*(wr+_i);Be[ot+2]=_i+Tt,Be[ot+6]=_i-Tt;var Kt=.382683433*((Nr=Ia+Bi)-(wr=Qt+zt)),ro=.5411961*Nr+Kt,un=1.306562965*wr+Kt,$i=.707106781*(la=Bi+Qt),qi=zt+$i,yt=zt-$i;Be[ot+5]=yt+ro,Be[ot+3]=yt-ro,Be[ot+1]=qi+un,Be[ot+7]=qi-un,ot+=8}for(ot=0,_t=0;_t<8;++_t){Ze=Be[ot],Je=Be[ot+8],dt=Be[ot+16],pt=Be[ot+24],bt=Be[ot+32],Ot=Be[ot+40],Rt=Be[ot+48];var Si=Ze+(qt=Be[ot+56]),li=Ze-qt,Rn=Je+Rt,Wr=Je-Rt,Mr=dt+Ot,Y=dt-Ot,de=pt+bt,ie=pt-bt,ae=Si+de,fe=Si-de,pe=Rn+Mr,Oe=Rn-Mr;Be[ot]=ae+pe,Be[ot+32]=ae-pe;var ke=.707106781*(Oe+fe);Be[ot+16]=fe+ke,Be[ot+48]=fe-ke;var Ee=.382683433*((ae=ie+Y)-(Oe=Wr+li)),Ce=.5411961*ae+Ee,je=1.306562965*Oe+Ee,Ge=.707106781*(pe=Y+Wr),Qe=li+Ge,lt=li-Ge;Be[ot+40]=lt+Ce,Be[ot+24]=lt-Ce,Be[ot+8]=Qe+je,Be[ot+56]=Qe-je,ot++}for(_t=0;_t<64;++_t)Mt=Be[_t]*Ke[_t],h[_t]=Mt>0?Mt+.5|0:Mt-.5|0;return h})(N,I),Se=0;Se<64;++Se)g[T[Se]]=me[Se];var ue=g[0]-R;R=g[0],ue==0?H(B[0]):(H(B[d[ce=32767+ue]]),H(f[ce]));for(var Ie=63;Ie>0&&g[Ie]==0;)Ie--;if(Ie==0)return H(he),R;for(var ge,_e=1;_e<=Ie;){for(var oe=_e;g[_e]==0&&_e<=Ie;)++_e;var Re=_e-oe;if(Re>=16){ge=Re>>4;for(var tt=1;tt<=ge;++tt)H(ne);Re&=15}ce=32767+g[_e],H(G[(Re<<4)+d[ce]]),H(f[ce]),_e++}return Ie!=63&&H(he),R}function le(N){N=Math.min(Math.max(N,1),100),a!=N&&((function(I){for(var R=[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],B=0;B<64;B++){var G=o((R[B]*I+50)/100);G=Math.min(Math.max(G,1),255),s[T[B]]=G}for(var ce=[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],he=0;he<64;he++){var ne=o((ce[he]*I+50)/100);ne=Math.min(Math.max(ne,1),255),l[T[he]]=ne}for(var me=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Se=0,ue=0;ue<8;ue++)for(var Ie=0;Ie<8;Ie++)u[Se]=1/(s[T[Se]]*me[ue]*me[Ie]*8),c[Se]=1/(l[T[Se]]*me[ue]*me[Ie]*8),Se++})(N<50?Math.floor(5e3/N):Math.floor(200-2*N)),a=N)}this.encode=function(N,I){I&&le(I),p=new Array,m=0,y=7,Z(65496),Z(65504),Z(16),ee(74),ee(70),ee(73),ee(70),ee(0),ee(1),ee(1),ee(0),Z(1),Z(1),ee(0),ee(0),(function(){Z(65499),Z(132),ee(0);for(var Je=0;Je<64;Je++)ee(s[Je]);ee(1);for(var dt=0;dt<64;dt++)ee(l[dt])})(),(function(Je,dt){Z(65472),Z(17),ee(8),Z(dt),Z(Je),ee(3),ee(1),ee(17),ee(0),ee(2),ee(17),ee(1),ee(3),ee(17),ee(1)})(N.width,N.height),(function(){Z(65476),Z(418),ee(0);for(var Je=0;Je<16;Je++)ee(k[Je+1]);for(var dt=0;dt<=11;dt++)ee(L[dt]);ee(16);for(var pt=0;pt<16;pt++)ee(D[pt+1]);for(var bt=0;bt<=161;bt++)ee(C[bt]);ee(1);for(var Ot=0;Ot<16;Ot++)ee(P[Ot+1]);for(var Rt=0;Rt<=11;Rt++)ee(M[Rt]);ee(17);for(var qt=0;qt<16;qt++)ee(q[qt+1]);for(var _t=0;_t<=161;_t++)ee(J[_t])})(),Z(65498),Z(12),ee(3),ee(1),ee(0),ee(2),ee(17),ee(3),ee(17),ee(0),ee(63),ee(0);var R=0,B=0,G=0;m=0,y=7,this.encode.displayName="_encode_";for(var ce,he,ne,me,Se,ue,Ie,ge,_e,oe=N.data,Re=N.width,tt=N.height,Be=4*Re,Ke=0;Ke<tt;){for(ce=0;ce<Be;){for(Se=Be*Ke+ce,Ie=-1,ge=0,_e=0;_e<64;_e++)ue=Se+(ge=_e>>3)*Be+(Ie=4*(7&_e)),Ke+ge>=tt&&(ue-=Be*(Ke+1+ge-tt)),ce+Ie>=Be&&(ue-=ce+Ie-Be+4),he=oe[ue++],ne=oe[ue++],me=oe[ue++],x[_e]=(E[he]+E[ne+256>>0]+E[me+512>>0]>>16)-128,w[_e]=(E[he+768>>0]+E[ne+1024>>0]+E[me+1280>>0]>>16)-128,A[_e]=(E[he+1280>>0]+E[ne+1536>>0]+E[me+1792>>0]>>16)-128;R=Q(x,u,R,t,n),B=Q(w,c,B,r,i),G=Q(A,c,G,r,i),ce+=32}Ke+=8}if(y>=0){var Ze=[];Ze[1]=y+1,Ze[0]=(1<<y+1)-1,H(Ze)}return Z(65497),new Uint8Array(p)},e=e||50,(function(){for(var N=String.fromCharCode,I=0;I<256;I++)_[I]=N(I)})(),t=U(k,L),r=U(P,M),n=U(D,C),i=U(q,J),(function(){for(var N=1,I=2,R=1;R<=15;R++){for(var B=N;B<I;B++)d[32767+B]=R,f[32767+B]=[],f[32767+B][1]=R,f[32767+B][0]=B;for(var G=-(I-1);G<=-N;G++)d[32767+G]=R,f[32767+G]=[],f[32767+G][1]=R,f[32767+G][0]=I-1+G;N<<=1,I<<=1}})(),(function(){for(var N=0;N<256;N++)E[N]=19595*N,E[N+256>>0]=38470*N,E[N+512>>0]=7471*N+32768,E[N+768>>0]=-11059*N,E[N+1024>>0]=-21709*N,E[N+1280>>0]=32768*N+8421375,E[N+1536>>0]=-27439*N,E[N+1792>>0]=-5329*N})(),le(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 ga(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 a_(e){function t(k){if(!k)throw Error("assert :P")}function r(k,L,D){for(var C=0;4>C;C++)if(k[L+C]!=D.charCodeAt(C))return!0;return!1}function n(k,L,D,C,P){for(var M=0;M<P;M++)k[L+M]=D[C+M]}function i(k,L,D,C){for(var P=0;P<C;P++)k[L+P]=D}function a(k){return new Int32Array(k)}function o(k,L){for(var D=[],C=0;C<k;C++)D.push(new L);return D}function s(k,L){var D=[];return(function C(P,M,q){for(var J=q[M],U=0;U<J&&(P.push(q.length>M+1?[]:new L),!(q.length<M+1));U++)C(P[U],M+1,q)})(D,0,k),D}var l=function(){var k=this;function L(v,b){for(var j=1<<b-1>>>0;v&j;)j>>>=1;return j?(v&j-1)+j:v}function D(v,b,j,F,z){t(!(F%j));do v[b+(F-=j)]=z;while(0<F)}function C(v,b,j,F,z){if(t(2328>=z),512>=z)var K=a(512);else if((K=a(z))==null)return 0;return(function(X,te,re,se,xe,Pe){var Ne,Ae,Ue=te,Le=1<<re,be=a(16),we=a(16);for(t(xe!=0),t(se!=null),t(X!=null),t(0<re),Ae=0;Ae<xe;++Ae){if(15<se[Ae])return 0;++be[se[Ae]]}if(be[0]==xe)return 0;for(we[1]=0,Ne=1;15>Ne;++Ne){if(be[Ne]>1<<Ne)return 0;we[Ne+1]=we[Ne]+be[Ne]}for(Ae=0;Ae<xe;++Ae)Ne=se[Ae],0<se[Ae]&&(Pe[we[Ne]++]=Ae);if(we[15]==1)return(se=new P).g=0,se.value=Pe[0],D(X,Ue,1,Le,se),Le;var $e,We=-1,qe=Le-1,ct=0,it=1,xt=1,at=1<<re;for(Ae=0,Ne=1,xe=2;Ne<=re;++Ne,xe<<=1){if(it+=xt<<=1,0>(xt-=be[Ne]))return 0;for(;0<be[Ne];--be[Ne])(se=new P).g=Ne,se.value=Pe[Ae++],D(X,Ue+ct,xe,at,se),ct=L(ct,Ne)}for(Ne=re+1,xe=2;15>=Ne;++Ne,xe<<=1){if(it+=xt<<=1,0>(xt-=be[Ne]))return 0;for(;0<be[Ne];--be[Ne]){if(se=new P,(ct&qe)!=We){for(Ue+=at,$e=1<<(We=Ne)-re;15>We&&!(0>=($e-=be[We]));)++We,$e<<=1;Le+=at=1<<($e=We-re),X[te+(We=ct&qe)].g=$e+re,X[te+We].value=Ue-te-We}se.g=Ne-re,se.value=Pe[Ae++],D(X,Ue+(ct>>re),xe,at,se),ct=L(ct,Ne)}}return it!=2*we[15]-1?0:Le})(v,b,j,F,z,K)}function P(){this.value=this.g=0}function M(){this.value=this.g=0}function q(){this.G=o(5,P),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(En,M)}function J(v,b,j,F){t(v!=null),t(b!=null),t(2147483648>F),v.Ca=254,v.I=0,v.b=-8,v.Ka=0,v.oa=b,v.pa=j,v.Jd=b,v.Yc=j+F,v.Zc=4<=F?j+F-4+1:j,ce(v)}function U(v,b){for(var j=0;0<b--;)j|=ne(v,128)<<b;return j}function H(v,b){var j=U(v,b);return he(v)?-j:j}function ee(v,b,j,F){var z,K=0;for(t(v!=null),t(b!=null),t(4294967288>F),v.Sb=F,v.Ra=0,v.u=0,v.h=0,4<F&&(F=4),z=0;z<F;++z)K+=b[j+z]<<8*z;v.Ra=K,v.bb=F,v.oa=b,v.pa=j}function Z(v){for(;8<=v.u&&v.bb<v.Sb;)v.Ra>>>=8,v.Ra+=v.oa[v.pa+v.bb]<<Ul-8>>>0,++v.bb,v.u-=8;R(v)&&(v.h=1,v.u=0)}function Q(v,b){if(t(0<=b),!v.h&&b<=ql){var j=I(v)&$l[b];return v.u+=b,Z(v),j}return v.h=1,v.u=0}function le(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function I(v){return v.Ra>>>(v.u&Ul-1)>>>0}function R(v){return t(v.bb<=v.Sb),v.h||v.bb==v.Sb&&v.u>Ul}function B(v,b){v.u=b,v.h=R(v)}function G(v){v.u>=Bc&&(t(v.u>=Bc),Z(v))}function ce(v){t(v!=null&&v.oa!=null),v.pa<v.Zc?(v.I=(v.oa[v.pa++]|v.I<<8)>>>0,v.b+=8):(t(v!=null&&v.oa!=null),v.pa<v.Yc?(v.b+=8,v.I=v.oa[v.pa++]|v.I<<8):v.Ka?v.b=0:(v.I<<=8,v.b+=8,v.Ka=1))}function he(v){return U(v,1)}function ne(v,b){var j=v.Ca;0>v.b&&ce(v);var F=v.b,z=j*b>>>8,K=(v.I>>>F>z)+0;for(K?(j-=z,v.I-=z+1<<F>>>0):j=z+1,F=j,z=0;256<=F;)z+=8,F>>=8;return F=7^z+ci[F],v.b-=F,v.Ca=(j<<F)-1,K}function me(v,b,j){v[b+0]=j>>24&255,v[b+1]=j>>16&255,v[b+2]=j>>8&255,v[b+3]=j>>0&255}function Se(v,b){return v[b+0]<<0|v[b+1]<<8}function ue(v,b){return Se(v,b)|v[b+2]<<16}function Ie(v,b){return Se(v,b)|Se(v,b+2)<<16}function ge(v,b){var j=1<<b;return t(v!=null),t(0<b),v.X=a(j),v.X==null?0:(v.Mb=32-b,v.Xa=b,1)}function _e(v,b){t(v!=null),t(b!=null),t(v.Xa==b.Xa),n(b.X,0,v.X,0,1<<b.Xa)}function oe(){this.X=[],this.Xa=this.Mb=0}function Re(v,b,j,F){t(j!=null),t(F!=null);var z=j[0],K=F[0];return z==0&&(z=(v*K+b/2)/b),K==0&&(K=(b*z+v/2)/v),0>=z||0>=K?0:(j[0]=z,F[0]=K,1)}function tt(v,b){return v+(1<<b)-1>>>b}function Be(v,b){return((4278255360&v)+(4278255360&b)>>>0&4278255360)+((16711935&v)+(16711935&b)>>>0&16711935)>>>0}function Ke(v,b){k[b]=function(j,F,z,K,X,te,re){var se;for(se=0;se<X;++se){var xe=k[v](te[re+se-1],z,K+se);te[re+se]=Be(j[F+se],xe)}}}function Ze(){this.ud=this.hd=this.jd=0}function Je(v,b){return((4278124286&(v^b))>>>1)+(v&b)>>>0}function dt(v){return 0<=v&&256>v?v:0>v?0:255<v?255:void 0}function pt(v,b){return dt(v+(v-b+.5>>1))}function bt(v,b,j){return Math.abs(b-j)-Math.abs(v-j)}function Ot(v,b,j,F,z,K,X){for(F=K[X-1],j=0;j<z;++j)K[X+j]=F=Be(v[b+j],F)}function Rt(v,b,j,F,z){var K;for(K=0;K<j;++K){var X=v[b+K],te=X>>8&255,re=16711935&(re=(re=16711935&X)+((te<<16)+te));F[z+K]=(4278255360&X)+re>>>0}}function qt(v,b){b.jd=v>>0&255,b.hd=v>>8&255,b.ud=v>>16&255}function _t(v,b,j,F,z,K){var X;for(X=0;X<F;++X){var te=b[j+X],re=te>>>8,se=te,xe=255&(xe=(xe=te>>>16)+((v.jd<<24>>24)*(re<<24>>24)>>>5));se=255&(se=(se=se+((v.hd<<24>>24)*(re<<24>>24)>>>5))+((v.ud<<24>>24)*(xe<<24>>24)>>>5)),z[K+X]=(4278255360&te)+(xe<<16)+se}}function Mt(v,b,j,F,z){k[b]=function(K,X,te,re,se,xe,Pe,Ne,Ae){for(re=Pe;re<Ne;++re)for(Pe=0;Pe<Ae;++Pe)se[xe++]=z(te[F(K[X++])])},k[v]=function(K,X,te,re,se,xe,Pe){var Ne=8>>K.b,Ae=K.Ea,Ue=K.K[0],Le=K.w;if(8>Ne)for(K=(1<<K.b)-1,Le=(1<<Ne)-1;X<te;++X){var be,we=0;for(be=0;be<Ae;++be)be&K||(we=F(re[se++])),xe[Pe++]=z(Ue[we&Le]),we>>=Ne}else k["VP8LMapColor"+j](re,se,Ue,Le,xe,Pe,X,te,Ae)}}function ot(v,b,j,F,z){for(j=b+j;b<j;){var K=v[b++];F[z++]=K>>16&255,F[z++]=K>>8&255,F[z++]=K>>0&255}}function ln(v,b,j,F,z){for(j=b+j;b<j;){var K=v[b++];F[z++]=K>>16&255,F[z++]=K>>8&255,F[z++]=K>>0&255,F[z++]=K>>24&255}}function zt(v,b,j,F,z){for(j=b+j;b<j;){var K=(X=v[b++])>>16&240|X>>12&15,X=X>>0&240|X>>28&15;F[z++]=K,F[z++]=X}}function si(v,b,j,F,z){for(j=b+j;b<j;){var K=(X=v[b++])>>16&248|X>>13&7,X=X>>5&224|X>>3&31;F[z++]=K,F[z++]=X}}function Qt(v,b,j,F,z){for(j=b+j;b<j;){var K=v[b++];F[z++]=K>>0&255,F[z++]=K>>8&255,F[z++]=K>>16&255}}function Tr(v,b,j,F,z,K){if(K==0)for(j=b+j;b<j;)me(F,((K=v[b++])[0]>>24|K[1]>>8&65280|K[2]<<8&16711680|K[3]<<24)>>>0),z+=32;else n(F,z,v,b,j)}function Bi(v,b){k[b][0]=k[v+"0"],k[b][1]=k[v+"1"],k[b][2]=k[v+"2"],k[b][3]=k[v+"3"],k[b][4]=k[v+"4"],k[b][5]=k[v+"5"],k[b][6]=k[v+"6"],k[b][7]=k[v+"7"],k[b][8]=k[v+"8"],k[b][9]=k[v+"9"],k[b][10]=k[v+"10"],k[b][11]=k[v+"11"],k[b][12]=k[v+"12"],k[b][13]=k[v+"13"],k[b][14]=k[v+"0"],k[b][15]=k[v+"0"]}function Gt(v){return v==W1||v==H1||v==_0||v==G1}function Ia(){this.eb=[],this.size=this.A=this.fb=0}function Nr(){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 _i(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ia,this.f.kb=new Nr,this.sd=null}function la(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function wr(){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 Tt(v){return alert("todo:WebPSamplerProcessPlane"),v.T}function Kt(v,b){var j=v.T,F=b.ba.f.RGBA,z=F.eb,K=F.fb+v.ka*F.A,X=Vi[b.ba.S],te=v.y,re=v.O,se=v.f,xe=v.N,Pe=v.ea,Ne=v.W,Ae=b.cc,Ue=b.dc,Le=b.Mc,be=b.Nc,we=v.ka,$e=v.ka+v.T,We=v.U,qe=We+1>>1;for(we==0?X(te,re,null,null,se,xe,Pe,Ne,se,xe,Pe,Ne,z,K,null,null,We):(X(b.ec,b.fc,te,re,Ae,Ue,Le,be,se,xe,Pe,Ne,z,K-F.A,z,K,We),++j);we+2<$e;we+=2)Ae=se,Ue=xe,Le=Pe,be=Ne,xe+=v.Rc,Ne+=v.Rc,K+=2*F.A,X(te,(re+=2*v.fa)-v.fa,te,re,Ae,Ue,Le,be,se,xe,Pe,Ne,z,K-F.A,z,K,We);return re+=v.fa,v.j+$e<v.o?(n(b.ec,b.fc,te,re,We),n(b.cc,b.dc,se,xe,qe),n(b.Mc,b.Nc,Pe,Ne,qe),j--):1&$e||X(te,re,null,null,se,xe,Pe,Ne,se,xe,Pe,Ne,z,K+F.A,null,null,We),j}function ro(v,b,j){var F=v.F,z=[v.J];if(F!=null){var K=v.U,X=b.ba.S,te=X==w0||X==_0;b=b.ba.f.RGBA;var re=[0],se=v.ka;re[0]=v.T,v.Kb&&(se==0?--re[0]:(--se,z[0]-=v.width),v.j+v.ka+v.T==v.o&&(re[0]=v.o-v.j-se));var xe=b.eb;se=b.fb+se*b.A,v=Or(F,z[0],v.width,K,re,xe,se+(te?0:3),b.A),t(j==re),v&&Gt(X)&&Hi(xe,se,te,K,re,b.A)}return 0}function un(v){var b=v.ma,j=b.ba.S,F=11>j,z=j==x0||j==b0||j==w0||j==z1||j==12||Gt(j);if(b.memory=null,b.Ib=null,b.Jb=null,b.Nd=null,!Mc(b.Oa,v,z?11:12))return 0;if(z&&Gt(j)&&He(),v.da)alert("todo:use_scaling");else{if(F){if(b.Ib=Tt,v.Kb){if(j=v.U+1>>1,b.memory=a(v.U+2*j),b.memory==null)return 0;b.ec=b.memory,b.fc=0,b.cc=b.ec,b.dc=b.fc+v.U,b.Mc=b.cc,b.Nc=b.dc+j,b.Ib=Kt,He()}}else alert("todo:EmitYUV");z&&(b.Jb=ro,F&&Te())}if(F&&!bw){for(v=0;256>v;++v)_k[v]=89858*(v-128)+A0>>S0,Tk[v]=-22014*(v-128)+A0,Ak[v]=-45773*(v-128),Sk[v]=113618*(v-128)+A0>>S0;for(v=Gc;v<Y1;++v)b=76283*(v-16)+A0>>S0,Ek[v-Gc]=Ti(b,255),Ok[v-Gc]=Ti(b+8>>4,15);bw=1}return 1}function $i(v){var b=v.ma,j=v.U,F=v.T;return t(!(1&v.ka)),0>=j||0>=F?0:(j=b.Ib(v,b),b.Jb!=null&&b.Jb(v,b,j),b.Dc+=j,1)}function qi(v){v.ma.memory=null}function yt(v,b,j,F){return Q(v,8)!=47?0:(b[0]=Q(v,14)+1,j[0]=Q(v,14)+1,F[0]=Q(v,1),Q(v,3)!=0?0:!v.h)}function Si(v,b){if(4>v)return v+1;var j=v-2>>1;return(2+(1&v)<<j)+Q(b,j)+1}function li(v,b){return 120<b?b-120:1<=(j=((j=lk[b-1])>>4)*v+(8-(15&j)))?j:1;var j}function Rn(v,b,j){var F=I(j),z=v[b+=255&F].g-8;return 0<z&&(B(j,j.u+8),F=I(j),b+=v[b].value,b+=F&(1<<z)-1),B(j,j.u+v[b].g),v[b].value}function Wr(v,b,j){return j.g+=v.g,j.value+=v.value<<b>>>0,t(8>=j.g),v.g}function Mr(v,b,j){var F=v.xc;return t((b=F==0?0:v.vc[v.md*(j>>F)+(b>>F)])<v.Wb),v.Ya[b]}function Y(v,b,j,F){var z=v.ab,K=v.c*b,X=v.C;b=X+b;var te=j,re=F;for(F=v.Ta,j=v.Ua;0<z--;){var se=v.gc[z],xe=X,Pe=b,Ne=te,Ae=re,Ue=(re=F,te=j,se.Ea);switch(t(xe<Pe),t(Pe<=se.nc),se.hc){case 2:h0(Ne,Ae,(Pe-xe)*Ue,re,te);break;case 0:var Le=xe,be=Pe,we=re,$e=te,We=(at=se).Ea;Le==0&&(q1(Ne,Ae,null,null,1,we,$e),Ot(Ne,Ae+1,0,0,We-1,we,$e+1),Ae+=We,$e+=We,++Le);for(var qe=1<<at.b,ct=qe-1,it=tt(We,at.b),xt=at.K,at=at.w+(Le>>at.b)*it;Le<be;){var Jt=xt,cr=at,Vt=1;for($c(Ne,Ae,we,$e-We,1,we,$e);Vt<We;){var Ut=(Vt&~ct)+qe;Ut>We&&(Ut=We),(0,zo[Jt[cr++]>>8&15])(Ne,Ae+ +Vt,we,$e+Vt-We,Ut-Vt,we,$e+Vt),Vt=Ut}Ae+=We,$e+=We,++Le&ct||(at+=it)}Pe!=se.nc&&n(re,te-Ue,re,te+(Pe-xe-1)*Ue,Ue);break;case 1:for(Ue=Ne,be=Ae,We=(Ne=se.Ea)-($e=Ne&~(we=(Ae=1<<se.b)-1)),Le=tt(Ne,se.b),qe=se.K,se=se.w+(xe>>se.b)*Le;xe<Pe;){for(ct=qe,it=se,xt=new Ze,at=be+$e,Jt=be+Ne;be<at;)qt(ct[it++],xt),Ls(xt,Ue,be,Ae,re,te),be+=Ae,te+=Ae;be<Jt&&(qt(ct[it++],xt),Ls(xt,Ue,be,We,re,te),be+=We,te+=We),++xe&we||(se+=Le)}break;case 3:if(Ne==re&&Ae==te&&0<se.b){for(be=re,Ne=Ue=te+(Pe-xe)*Ue-($e=(Pe-xe)*tt(se.Ea,se.b)),Ae=re,we=te,Le=[],$e=(We=$e)-1;0<=$e;--$e)Le[$e]=Ae[we+$e];for($e=We-1;0<=$e;--$e)be[Ne+$e]=Le[$e];Ui(se,xe,Pe,re,Ue,re,te)}else Ui(se,xe,Pe,Ne,Ae,re,te)}te=F,re=j}re!=j&&n(F,j,te,re,K)}function de(v,b){var j=v.V,F=v.Ba+v.c*v.C,z=b-v.C;if(t(b<=v.l.o),t(16>=z),0<z){var K=v.l,X=v.Ta,te=v.Ua,re=K.width;if(Y(v,z,j,F),z=te=[te],t((j=v.C)<(F=b)),t(K.v<K.va),F>K.o&&(F=K.o),j<K.j){var se=K.j-j;j=K.j,z[0]+=se*re}if(j>=F?j=0:(z[0]+=4*K.v,K.ka=j-K.j,K.U=K.va-K.v,K.T=F-j,j=1),j){if(te=te[0],11>(j=v.ca).S){var xe=j.f.RGBA,Pe=(F=j.S,z=K.U,K=K.T,se=xe.eb,xe.A),Ne=K;for(xe=xe.fb+v.Ma*xe.A;0<Ne--;){var Ae=X,Ue=te,Le=z,be=se,we=xe;switch(F){case y0:fi(Ae,Ue,Le,be,we);break;case x0:Kn(Ae,Ue,Le,be,we);break;case W1:Kn(Ae,Ue,Le,be,we),Hi(be,we,0,Le,1,0);break;case fw:so(Ae,Ue,Le,be,we);break;case b0:Tr(Ae,Ue,Le,be,we,1);break;case H1:Tr(Ae,Ue,Le,be,we,1),Hi(be,we,0,Le,1,0);break;case w0:Tr(Ae,Ue,Le,be,we,0);break;case _0:Tr(Ae,Ue,Le,be,we,0),Hi(be,we,1,Le,1,0);break;case z1:Wo(Ae,Ue,Le,be,we);break;case G1:Wo(Ae,Ue,Le,be,we),Er(be,we,Le,1,0);break;case hw:oo(Ae,Ue,Le,be,we);break;default:t(0)}te+=re,xe+=Pe}v.Ma+=K}else alert("todo:EmitRescaledRowsYUVA");t(v.Ma<=j.height)}}v.C=b,t(v.C<=v.i)}function ie(v){var b;if(0<v.ua)return 0;for(b=0;b<v.Wb;++b){var j=v.Ya[b].G,F=v.Ya[b].H;if(0<j[1][F[1]+0].g||0<j[2][F[2]+0].g||0<j[3][F[3]+0].g)return 0}return 1}function ae(v,b,j,F,z,K){if(v.Z!=0){var X=v.qd,te=v.rd;for(t(Ko[v.Z]!=null);b<j;++b)Ko[v.Z](X,te,F,z,F,z,K),X=F,te=z,z+=K;v.qd=X,v.rd=te}}function fe(v,b){var j=v.l.ma,F=j.Z==0||j.Z==1?v.l.j:v.C;if(F=v.C<F?F:v.C,t(b<=v.l.o),b>F){var z=v.l.width,K=j.ca,X=j.tb+z*F,te=v.V,re=v.Ba+v.c*F,se=v.gc;t(v.ab==1),t(se[0].hc==3),d0(se[0],F,b,te,re,K,X),ae(j,F,b,K,X,z)}v.C=v.Ma=b}function pe(v,b,j,F,z,K,X){var te=v.$/F,re=v.$%F,se=v.m,xe=v.s,Pe=j+v.$,Ne=Pe;z=j+F*z;var Ae=j+F*K,Ue=280+xe.ua,Le=v.Pb?te:16777216,be=0<xe.ua?xe.Wa:null,we=xe.wc,$e=Pe<Ae?Mr(xe,re,te):null;t(v.C<K),t(Ae<=z);var We=!1;e:for(;;){for(;We||Pe<Ae;){var qe=0;if(te>=Le){var ct=Pe-j;t((Le=v).Pb),Le.wd=Le.m,Le.xd=ct,0<Le.s.ua&&_e(Le.s.Wa,Le.s.vb),Le=te+ck}if(re&we||($e=Mr(xe,re,te)),t($e!=null),$e.Qb&&(b[Pe]=$e.qb,We=!0),!We)if(G(se),$e.jc){qe=se,ct=b;var it=Pe,xt=$e.pd[I(qe)&En-1];t($e.jc),256>xt.g?(B(qe,qe.u+xt.g),ct[it]=xt.value,qe=0):(B(qe,qe.u+xt.g-256),t(256<=xt.value),qe=xt.value),qe==0&&(We=!0)}else qe=Rn($e.G[0],$e.H[0],se);if(se.h)break;if(We||256>qe){if(!We)if($e.nd)b[Pe]=($e.qb|qe<<8)>>>0;else{if(G(se),We=Rn($e.G[1],$e.H[1],se),G(se),ct=Rn($e.G[2],$e.H[2],se),it=Rn($e.G[3],$e.H[3],se),se.h)break;b[Pe]=(it<<24|We<<16|qe<<8|ct)>>>0}if(We=!1,++Pe,++re>=F&&(re=0,++te,X!=null&&te<=K&&!(te%16)&&X(v,te),be!=null))for(;Ne<Pe;)qe=b[Ne++],be.X[(506832829*qe&4294967295)>>>be.Mb]=qe}else if(280>qe){if(qe=Si(qe-256,se),ct=Rn($e.G[4],$e.H[4],se),G(se),ct=li(F,ct=Si(ct,se)),se.h)break;if(Pe-j<ct||z-Pe<qe)break e;for(it=0;it<qe;++it)b[Pe+it]=b[Pe+it-ct];for(Pe+=qe,re+=qe;re>=F;)re-=F,++te,X!=null&&te<=K&&!(te%16)&&X(v,te);if(t(Pe<=z),re&we&&($e=Mr(xe,re,te)),be!=null)for(;Ne<Pe;)qe=b[Ne++],be.X[(506832829*qe&4294967295)>>>be.Mb]=qe}else{if(!(qe<Ue))break e;for(We=qe-280,t(be!=null);Ne<Pe;)qe=b[Ne++],be.X[(506832829*qe&4294967295)>>>be.Mb]=qe;qe=Pe,t(!(We>>>(ct=be).Xa)),b[qe]=ct.X[We],We=!0}We||t(se.h==R(se))}if(v.Pb&&se.h&&Pe<z)t(v.m.h),v.a=5,v.m=v.wd,v.$=v.xd,0<v.s.ua&&_e(v.s.vb,v.s.Wa);else{if(se.h)break e;X!=null&&X(v,te>K?K:te),v.a=0,v.$=Pe-j}return 1}return v.a=3,0}function Oe(v){t(v!=null),v.vc=null,v.yc=null,v.Ya=null;var b=v.Wa;b!=null&&(b.X=null),v.vb=null,t(v!=null)}function ke(){var v=new $1;return v==null?null:(v.a=0,v.xb=vw,Bi("Predictor","VP8LPredictors"),Bi("Predictor","VP8LPredictors_C"),Bi("PredictorAdd","VP8LPredictorsAdd"),Bi("PredictorAdd","VP8LPredictorsAdd_C"),h0=Rt,Ls=_t,fi=ot,Kn=ln,Wo=zt,oo=si,so=Qt,k.VP8LMapColor32b=zl,k.VP8LMapColor8b=p0,v)}function Ee(v,b,j,F,z){var K=1,X=[v],te=[b],re=F.m,se=F.s,xe=null,Pe=0;e:for(;;){if(j)for(;K&&Q(re,1);){var Ne=X,Ae=te,Ue=F,Le=1,be=Ue.m,we=Ue.gc[Ue.ab],$e=Q(be,2);if(Ue.Oc&1<<$e)K=0;else{switch(Ue.Oc|=1<<$e,we.hc=$e,we.Ea=Ne[0],we.nc=Ae[0],we.K=[null],++Ue.ab,t(4>=Ue.ab),$e){case 0:case 1:we.b=Q(be,3)+2,Le=Ee(tt(we.Ea,we.b),tt(we.nc,we.b),0,Ue,we.K),we.K=we.K[0];break;case 3:var We,qe=Q(be,8)+1,ct=16<qe?0:4<qe?1:2<qe?2:3;if(Ne[0]=tt(we.Ea,ct),we.b=ct,We=Le=Ee(qe,1,0,Ue,we.K)){var it,xt=qe,at=we,Jt=1<<(8>>at.b),cr=a(Jt);if(cr==null)We=0;else{var Vt=at.K[0],Ut=at.w;for(cr[0]=at.K[0][0],it=1;it<1*xt;++it)cr[it]=Be(Vt[Ut+it],cr[it-1]);for(;it<4*Jt;++it)cr[it]=0;at.K[0]=null,at.K[0]=cr,We=1}}Le=We;break;case 2:break;default:t(0)}K=Le}}if(X=X[0],te=te[0],K&&Q(re,1)&&!(K=1<=(Pe=Q(re,4))&&11>=Pe)){F.a=3;break e}var _r;if(_r=K)t:{var gr,Lt,Qr,hi=F,en=X,di=te,fr=Pe,Oi=j,Pi=hi.m,xn=hi.s,On=[null],Xn=1,Ki=0,$a=uk[fr];r:for(;;){if(Oi&&Q(Pi,1)){var bn=Q(Pi,3)+2,fo=tt(en,bn),Ds=tt(di,bn),Kl=fo*Ds;if(!Ee(fo,Ds,0,hi,On))break r;for(On=On[0],xn.xc=bn,gr=0;gr<Kl;++gr){var Yo=On[gr]>>8&65535;On[gr]=Yo,Yo>=Xn&&(Xn=Yo+1)}}if(Pi.h)break r;for(Lt=0;5>Lt;++Lt){var Br=dw[Lt];!Lt&&0<fr&&(Br+=1<<fr),Ki<Br&&(Ki=Br)}var X1=o(Xn*$a,P),Sw=Xn,Aw=o(Sw,q);if(Aw==null)var E0=null;else t(65536>=Sw),E0=Aw;var Vc=a(Ki);if(E0==null||Vc==null||X1==null){hi.a=1;break r}var O0=X1;for(gr=Qr=0;gr<Xn;++gr){var va=E0[gr],Yl=va.G,Xl=va.H,Tw=0,P0=1,Ew=0;for(Lt=0;5>Lt;++Lt){Br=dw[Lt],Yl[Lt]=O0,Xl[Lt]=Qr,!Lt&&0<fr&&(Br+=1<<fr);i:{var N0,J1=Br,C0=hi,Kc=Vc,Ck=O0,jk=Qr,Z1=0,Xo=C0.m,kk=Q(Xo,1);if(i(Kc,0,0,J1),kk){var Lk=Q(Xo,1)+1,Ik=Q(Xo,1),Ow=Q(Xo,Ik==0?1:8);Kc[Ow]=1,Lk==2&&(Kc[Ow=Q(Xo,8)]=1);var j0=1}else{var Pw=a(19),Nw=Q(Xo,4)+4;if(19<Nw){C0.a=3;var k0=0;break i}for(N0=0;N0<Nw;++N0)Pw[sk[N0]]=Q(Xo,3);var Q1=void 0,Yc=void 0,Cw=C0,Fk=Pw,L0=J1,jw=Kc,ev=0,Jo=Cw.m,kw=8,Lw=o(128,P);n:for(;C(Lw,0,7,Fk,19);){if(Q(Jo,1)){var Rk=2+2*Q(Jo,3);if((Q1=2+Q(Jo,Rk))>L0)break n}else Q1=L0;for(Yc=0;Yc<L0&&Q1--;){G(Jo);var Iw=Lw[0+(127&I(Jo))];B(Jo,Jo.u+Iw.g);var Jl=Iw.value;if(16>Jl)jw[Yc++]=Jl,Jl!=0&&(kw=Jl);else{var Mk=Jl==16,Fw=Jl-16,Dk=ak[Fw],Rw=Q(Jo,ik[Fw])+Dk;if(Yc+Rw>L0)break n;for(var Bk=Mk?kw:0;0<Rw--;)jw[Yc++]=Bk}}ev=1;break n}ev||(Cw.a=3),j0=ev}(j0=j0&&!Xo.h)&&(Z1=C(Ck,jk,8,Kc,J1)),j0&&Z1!=0?k0=Z1:(C0.a=3,k0=0)}if(k0==0)break r;if(P0&&ok[Lt]==1&&(P0=O0[Qr].g==0),Tw+=O0[Qr].g,Qr+=k0,3>=Lt){var Xc,tv=Vc[0];for(Xc=1;Xc<Br;++Xc)Vc[Xc]>tv&&(tv=Vc[Xc]);Ew+=tv}}if(va.nd=P0,va.Qb=0,P0&&(va.qb=(Yl[3][Xl[3]+0].value<<24|Yl[1][Xl[1]+0].value<<16|Yl[2][Xl[2]+0].value)>>>0,Tw==0&&256>Yl[0][Xl[0]+0].value&&(va.Qb=1,va.qb+=Yl[0][Xl[0]+0].value<<8)),va.jc=!va.Qb&&6>Ew,va.jc){var I0,ho=va;for(I0=0;I0<En;++I0){var Zo=I0,Qo=ho.pd[Zo],F0=ho.G[0][ho.H[0]+Zo];256<=F0.value?(Qo.g=F0.g+256,Qo.value=F0.value):(Qo.g=0,Qo.value=0,Zo>>=Wr(F0,8,Qo),Zo>>=Wr(ho.G[1][ho.H[1]+Zo],16,Qo),Zo>>=Wr(ho.G[2][ho.H[2]+Zo],0,Qo),Wr(ho.G[3][ho.H[3]+Zo],24,Qo))}}}xn.vc=On,xn.Wb=Xn,xn.Ya=E0,xn.yc=X1,_r=1;break t}_r=0}if(!(K=_r)){F.a=3;break e}if(0<Pe){if(se.ua=1<<Pe,!ge(se.Wa,Pe)){F.a=1,K=0;break e}}else se.ua=0;var rv=F,Mw=X,$k=te,nv=rv.s,iv=nv.xc;if(rv.c=Mw,rv.i=$k,nv.md=tt(Mw,iv),nv.wc=iv==0?-1:(1<<iv)-1,j){F.xb=gk;break e}if((xe=a(X*te))==null){F.a=1,K=0;break e}K=(K=pe(F,xe,0,X,te,te,null))&&!re.h;break e}return K?(z!=null?z[0]=xe:(t(xe==null),t(j)),F.$=0,j||Oe(se)):Oe(se),K}function Ce(v,b){var j=v.c*v.i,F=j+b+16*b;return t(v.c<=b),v.V=a(F),v.V==null?(v.Ta=null,v.Ua=0,v.a=1,0):(v.Ta=v.V,v.Ua=v.Ba+j+b,1)}function je(v,b){var j=v.C,F=b-j,z=v.V,K=v.Ba+v.c*j;for(t(b<=v.l.o);0<F;){var X=16<F?16:F,te=v.l.ma,re=v.l.width,se=re*X,xe=te.ca,Pe=te.tb+re*j,Ne=v.Ta,Ae=v.Ua;Y(v,X,z,K),Vr(Ne,Ae,xe,Pe,se),ae(te,j,j+X,xe,Pe,re),F-=X,z+=X*v.c,j+=X}t(j==b),v.C=v.Ma=b}function Ge(){this.ub=this.yd=this.td=this.Rb=0}function Qe(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function lt(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Ye(){this.Yb=(function(){var v=[];return(function b(j,F,z){for(var K=z[F],X=0;X<K&&(j.push(z.length>F+1?[]:0),!(z.length<F+1));X++)b(j[X],F+1,z)})(v,0,[3,11]),v})()}function st(){this.jb=a(3),this.Wc=s([4,8],Ye),this.Xc=s([4,17],Ye)}function At(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function er(){this.ld=this.La=this.dd=this.tc=0}function mr(){this.Na=this.la=0}function Jr(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ua(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function no(){this.uc=this.M=this.Nb=0,this.wa=Array(new er),this.Y=0,this.ya=Array(new ua),this.aa=0,this.l=new Ra}function Fa(){this.y=a(16),this.f=a(8),this.ea=a(8)}function ca(){this.cb=this.a=0,this.sc="",this.m=new le,this.Od=new Ge,this.Kc=new Qe,this.ed=new At,this.Qa=new lt,this.Ic=this.$c=this.Aa=0,this.D=new no,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,le),this.ia=0,this.pb=o(4,Jr),this.Pa=new st,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Fa),this.Hd=0,this.rb=Array(new mr),this.sb=0,this.wa=Array(new er),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 ua),this.L=this.aa=0,this.gd=s([4,2],er),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 Ra(){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 Ai(){var v=new ca;return v!=null&&(v.a=0,v.sc="OK",v.cb=0,v.Xb=0,Hc||(Hc=Jh)),v}function Hr(v,b,j){return v.a==0&&(v.a=b,v.sc=j,v.cb=0),0}function Yh(v,b,j){return 3<=j&&v[b+0]==157&&v[b+1]==1&&v[b+2]==42}function Xh(v,b){if(v==null)return 0;if(v.a=0,v.sc="OK",b==null)return Hr(v,2,"null VP8Io passed to VP8GetHeaders()");var j=b.data,F=b.w,z=b.ha;if(4>z)return Hr(v,7,"Truncated header.");var K=j[F+0]|j[F+1]<<8|j[F+2]<<16,X=v.Od;if(X.Rb=!(1&K),X.td=K>>1&7,X.yd=K>>4&1,X.ub=K>>5,3<X.td)return Hr(v,3,"Incorrect keyframe parameters.");if(!X.yd)return Hr(v,4,"Frame not displayable.");F+=3,z-=3;var te=v.Kc;if(X.Rb){if(7>z)return Hr(v,7,"cannot parse picture header");if(!Yh(j,F,z))return Hr(v,3,"Bad code word");te.c=16383&(j[F+4]<<8|j[F+3]),te.Td=j[F+4]>>6,te.i=16383&(j[F+6]<<8|j[F+5]),te.Ud=j[F+6]>>6,F+=7,z-=7,v.za=te.c+15>>4,v.Ub=te.i+15>>4,b.width=te.c,b.height=te.i,b.Da=0,b.j=0,b.v=0,b.va=b.width,b.o=b.height,b.da=0,b.ib=b.width,b.hb=b.height,b.U=b.width,b.T=b.height,i((K=v.Pa).jb,0,255,K.jb.length),t((K=v.Qa)!=null),K.Cb=0,K.Bb=0,K.Fb=1,i(K.Zb,0,0,K.Zb.length),i(K.Lb,0,0,K.Lb)}if(X.ub>z)return Hr(v,7,"bad partition length");J(K=v.m,j,F,X.ub),F+=X.ub,z-=X.ub,X.Rb&&(te.Ld=he(K),te.Kd=he(K)),te=v.Qa;var re,se=v.Pa;if(t(K!=null),t(te!=null),te.Cb=he(K),te.Cb){if(te.Bb=he(K),he(K)){for(te.Fb=he(K),re=0;4>re;++re)te.Zb[re]=he(K)?H(K,7):0;for(re=0;4>re;++re)te.Lb[re]=he(K)?H(K,6):0}if(te.Bb)for(re=0;3>re;++re)se.jb[re]=he(K)?U(K,8):255}else te.Bb=0;if(K.Ka)return Hr(v,3,"cannot parse segment header");if((te=v.ed).zd=he(K),te.Tb=U(K,6),te.wb=U(K,3),te.Pc=he(K),te.Pc&&he(K)){for(se=0;4>se;++se)he(K)&&(te.vd[se]=H(K,6));for(se=0;4>se;++se)he(K)&&(te.od[se]=H(K,6))}if(v.L=te.Tb==0?0:te.zd?1:2,K.Ka)return Hr(v,3,"cannot parse filter header");var xe=z;if(z=re=F,F=re+xe,te=xe,v.Xb=(1<<U(v.m,2))-1,xe<3*(se=v.Xb))j=7;else{for(re+=3*se,te-=3*se,xe=0;xe<se;++xe){var Pe=j[z+0]|j[z+1]<<8|j[z+2]<<16;Pe>te&&(Pe=te),J(v.Jc[+xe],j,re,Pe),re+=Pe,te-=Pe,z+=3}J(v.Jc[+se],j,re,te),j=re<F?0:5}if(j!=0)return Hr(v,j,"cannot parse partitions");for(j=U(re=v.m,7),z=he(re)?H(re,4):0,F=he(re)?H(re,4):0,te=he(re)?H(re,4):0,se=he(re)?H(re,4):0,re=he(re)?H(re,4):0,xe=v.Qa,Pe=0;4>Pe;++Pe){if(xe.Cb){var Ne=xe.Zb[Pe];xe.Fb||(Ne+=j)}else{if(0<Pe){v.pb[Pe]=v.pb[0];continue}Ne=j}var Ae=v.pb[Pe];Ae.Sc[0]=V1[Ti(Ne+z,127)],Ae.Sc[1]=K1[Ti(Ne+0,127)],Ae.Eb[0]=2*V1[Ti(Ne+F,127)],Ae.Eb[1]=101581*K1[Ti(Ne+te,127)]>>16,8>Ae.Eb[1]&&(Ae.Eb[1]=8),Ae.Qc[0]=V1[Ti(Ne+se,117)],Ae.Qc[1]=K1[Ti(Ne+re,127)],Ae.lc=Ne+re}if(!X.Rb)return Hr(v,4,"Not a key frame.");for(he(K),X=v.Pa,j=0;4>j;++j){for(z=0;8>z;++z)for(F=0;3>F;++F)for(te=0;11>te;++te)se=ne(K,vk[j][z][F][te])?U(K,8):dk[j][z][F][te],X.Wc[j][z].Yb[F][te]=se;for(z=0;17>z;++z)X.Xc[j][z]=X.Wc[j][mk[z]]}return v.kc=he(K),v.kc&&(v.Bd=U(K,8)),v.cb=1}function Jh(v,b,j,F,z,K,X){var te=b[z].Yb[j];for(j=0;16>z;++z){if(!ne(v,te[j+0]))return z;for(;!ne(v,te[j+1]);)if(te=b[++z].Yb[0],j=0,z==16)return 16;var re=b[z+1].Yb;if(ne(v,te[j+2])){var se=v,xe=0;if(ne(se,(Ne=te)[(Pe=j)+3]))if(ne(se,Ne[Pe+6])){for(te=0,Pe=2*(xe=ne(se,Ne[Pe+8]))+(Ne=ne(se,Ne[Pe+9+xe])),xe=0,Ne=fk[Pe];Ne[te];++te)xe+=xe+ne(se,Ne[te]);xe+=3+(8<<Pe)}else ne(se,Ne[Pe+7])?(xe=7+2*ne(se,165),xe+=ne(se,145)):xe=5+ne(se,159);else xe=ne(se,Ne[Pe+4])?3+ne(se,Ne[Pe+5]):2;te=re[2]}else xe=1,te=re[1];re=X+hk[z],0>(se=v).b&&ce(se);var Pe,Ne=se.b,Ae=(Pe=se.Ca>>1)-(se.I>>Ne)>>31;--se.b,se.Ca+=Ae,se.Ca|=1,se.I-=(Pe+1&Ae)<<Ne,K[re]=((xe^Ae)-Ae)*F[(0<z)+0]}return 16}function _c(v){var b=v.rb[v.sb-1];b.la=0,b.Na=0,i(v.zc,0,0,v.zc.length),v.ja=0}function S1(v,b){if(v==null)return 0;if(b==null)return Hr(v,2,"NULL VP8Io parameter in VP8Decode().");if(!v.cb&&!Xh(v,b))return 0;if(t(v.cb),b.ac==null||b.ac(b)){b.ob&&(v.L=0);var j=T0[v.L];if(v.L==2?(v.yb=0,v.zb=0):(v.yb=b.v-j>>4,v.zb=b.j-j>>4,0>v.yb&&(v.yb=0),0>v.zb&&(v.zb=0)),v.Va=b.o+15+j>>4,v.Hb=b.va+15+j>>4,v.Hb>v.za&&(v.Hb=v.za),v.Va>v.Ub&&(v.Va=v.Ub),0<v.L){var F=v.ed;for(j=0;4>j;++j){var z;if(v.Qa.Cb){var K=v.Qa.Lb[j];v.Qa.Fb||(K+=F.Tb)}else K=F.Tb;for(z=0;1>=z;++z){var X=v.gd[j][z],te=K;if(F.Pc&&(te+=F.vd[0],z&&(te+=F.od[0])),0<(te=0>te?0:63<te?63:te)){var re=te;0<F.wb&&(re=4<F.wb?re>>2:re>>1)>9-F.wb&&(re=9-F.wb),1>re&&(re=1),X.dd=re,X.tc=2*te+re,X.ld=40<=te?2:15<=te?1:0}else X.tc=0;X.La=z}}}j=0}else Hr(v,6,"Frame setup failed"),j=v.a;if(j=j==0){if(j){v.$c=0,0<v.Aa||(v.Ic=Nk);e:{j=v.Ic,F=4*(re=v.za);var se=32*re,xe=re+1,Pe=0<v.L?re*(0<v.Aa?2:1):0,Ne=(v.Aa==2?2:1)*re;if((X=F+832+(z=3*(16*j+T0[v.L])/2*se)+(K=v.Fa!=null&&0<v.Fa.length?v.Kc.c*v.Kc.i:0))!=X)j=0;else{if(X>v.Vb){if(v.Vb=0,v.Ec=a(X),v.Fc=0,v.Ec==null){j=Hr(v,1,"no memory during frame initialization.");break e}v.Vb=X}X=v.Ec,te=v.Fc,v.Ac=X,v.Bc=te,te+=F,v.Gd=o(se,Fa),v.Hd=0,v.rb=o(xe+1,mr),v.sb=1,v.wa=Pe?o(Pe,er):null,v.Y=0,v.D.Nb=0,v.D.wa=v.wa,v.D.Y=v.Y,0<v.Aa&&(v.D.Y+=re),t(!0),v.oc=X,v.pc=te,te+=832,v.ya=o(Ne,ua),v.aa=0,v.D.ya=v.ya,v.D.aa=v.aa,v.Aa==2&&(v.D.aa+=re),v.R=16*re,v.B=8*re,re=(se=T0[v.L])*v.R,se=se/2*v.B,v.sa=X,v.ta=te+re,v.qa=v.sa,v.ra=v.ta+16*j*v.R+se,v.Ha=v.qa,v.Ia=v.ra+8*j*v.B+se,v.$c=0,te+=z,v.mb=K?X:null,v.nb=K?te:null,t(te+K<=v.Fc+v.Vb),_c(v),i(v.Ac,v.Bc,0,F),j=1}}if(j){if(b.ka=0,b.y=v.sa,b.O=v.ta,b.f=v.qa,b.N=v.ra,b.ea=v.Ha,b.Vd=v.Ia,b.fa=v.R,b.Rc=v.B,b.F=null,b.J=0,!m0){for(j=-255;255>=j;++j)cn[255+j]=0>j?-j:j;for(j=-1020;1020>=j;++j)uo[1020+j]=-128>j?-128:127<j?127:j;for(j=-112;112>=j;++j)Wc[112+j]=-16>j?-16:15<j?15:j;for(j=-255;510>=j;++j)Vl[255+j]=0>j?0:255<j?255:j;m0=1}Wl=E1,lo=A1,qc=Qh,Yn=T1,zi=e0,Gr=Zh,Hl=Pc,v0=js,Uc=B1,Is=Nc,Fs=D1,Ho=Fl,Rs=Cc,Gl=u0,Ms=l0,Go=Da,zc=ao,Wi=M1,pa[0]=Ma,pa[1]=O1,pa[2]=j1,pa[3]=k1,pa[4]=n0,pa[5]=Ll,pa[6]=i0,pa[7]=Tc,pa[8]=I1,pa[9]=L1,Vo[0]=t0,Vo[1]=N1,Vo[2]=io,Vo[3]=jl,Vo[4]=Mn,Vo[5]=C1,Vo[6]=r0,co[0]=$o,co[1]=P1,co[2]=F1,co[3]=Ec,co[4]=Cs,co[5]=R1,co[6]=Oc,j=1}else j=0}j&&(j=(function(Ae,Ue){for(Ae.M=0;Ae.M<Ae.Va;++Ae.M){var Le,be=Ae.Jc[Ae.M&Ae.Xb],we=Ae.m,$e=Ae;for(Le=0;Le<$e.za;++Le){var We=we,qe=$e,ct=qe.Ac,it=qe.Bc+4*Le,xt=qe.zc,at=qe.ya[qe.aa+Le];if(qe.Qa.Bb?at.$b=ne(We,qe.Pa.jb[0])?2+ne(We,qe.Pa.jb[2]):ne(We,qe.Pa.jb[1]):at.$b=0,qe.kc&&(at.Ad=ne(We,qe.Bd)),at.Za=!ne(We,145)+0,at.Za){var Jt=at.Ob,cr=0;for(qe=0;4>qe;++qe){var Vt,Ut=xt[0+qe];for(Vt=0;4>Vt;++Vt){Ut=pk[ct[it+Vt]][Ut];for(var _r=pw[ne(We,Ut[0])];0<_r;)_r=pw[2*_r+ne(We,Ut[_r])];Ut=-_r,ct[it+Vt]=Ut}n(Jt,cr,ct,it,4),cr+=4,xt[0+qe]=Ut}}else Ut=ne(We,156)?ne(We,128)?1:3:ne(We,163)?2:0,at.Ob[0]=Ut,i(ct,it,Ut,4),i(xt,0,Ut,4);at.Dd=ne(We,142)?ne(We,114)?ne(We,183)?1:3:2:0}if($e.m.Ka)return Hr(Ae,7,"Premature end-of-partition0 encountered.");for(;Ae.ja<Ae.za;++Ae.ja){if($e=be,We=(we=Ae).rb[we.sb-1],ct=we.rb[we.sb+we.ja],Le=we.ya[we.aa+we.ja],it=we.kc?Le.Ad:0)We.la=ct.la=0,Le.Za||(We.Na=ct.Na=0),Le.Hc=0,Le.Gc=0,Le.ia=0;else{var gr,Lt;if(We=ct,ct=$e,it=we.Pa.Xc,xt=we.ya[we.aa+we.ja],at=we.pb[xt.$b],qe=xt.ad,Jt=0,cr=we.rb[we.sb-1],Ut=Vt=0,i(qe,Jt,0,384),xt.Za)var Qr=0,hi=it[3];else{_r=a(16);var en=We.Na+cr.Na;if(en=Hc(ct,it[1],en,at.Eb,0,_r,0),We.Na=cr.Na=(0<en)+0,1<en)Wl(_r,0,qe,Jt);else{var di=_r[0]+3>>3;for(_r=0;256>_r;_r+=16)qe[Jt+_r]=di}Qr=1,hi=it[0]}var fr=15&We.la,Oi=15&cr.la;for(_r=0;4>_r;++_r){var Pi=1&Oi;for(di=Lt=0;4>di;++di)fr=fr>>1|(Pi=(en=Hc(ct,hi,en=Pi+(1&fr),at.Sc,Qr,qe,Jt))>Qr)<<7,Lt=Lt<<2|(3<en?3:1<en?2:qe[Jt+0]!=0),Jt+=16;fr>>=4,Oi=Oi>>1|Pi<<7,Vt=(Vt<<8|Lt)>>>0}for(hi=fr,Qr=Oi>>4,gr=0;4>gr;gr+=2){for(Lt=0,fr=We.la>>4+gr,Oi=cr.la>>4+gr,_r=0;2>_r;++_r){for(Pi=1&Oi,di=0;2>di;++di)en=Pi+(1&fr),fr=fr>>1|(Pi=0<(en=Hc(ct,it[2],en,at.Qc,0,qe,Jt)))<<3,Lt=Lt<<2|(3<en?3:1<en?2:qe[Jt+0]!=0),Jt+=16;fr>>=2,Oi=Oi>>1|Pi<<5}Ut|=Lt<<4*gr,hi|=fr<<4<<gr,Qr|=(240&Oi)<<gr}We.la=hi,cr.la=Qr,xt.Hc=Vt,xt.Gc=Ut,xt.ia=43690&Ut?0:at.ia,it=!(Vt|Ut)}if(0<we.L&&(we.wa[we.Y+we.ja]=we.gd[Le.$b][Le.Za],we.wa[we.Y+we.ja].La|=!it),$e.Ka)return Hr(Ae,7,"Premature end-of-file encountered.")}if(_c(Ae),we=Ue,$e=1,Le=(be=Ae).D,We=0<be.L&&be.M>=be.zb&&be.M<=be.Va,be.Aa==0)e:{if(Le.M=be.M,Le.uc=We,Rc(be,Le),$e=1,Le=(Lt=be.D).Nb,We=(Ut=T0[be.L])*be.R,ct=Ut/2*be.B,_r=16*Le*be.R,di=8*Le*be.B,it=be.sa,xt=be.ta-We+_r,at=be.qa,qe=be.ra-ct+di,Jt=be.Ha,cr=be.Ia-ct+di,Oi=(fr=Lt.M)==0,Vt=fr>=be.Va-1,be.Aa==2&&Rc(be,Lt),Lt.uc)for(Pi=(en=be).D.M,t(en.D.uc),Lt=en.yb;Lt<en.Hb;++Lt){Qr=Lt,hi=Pi;var xn=(On=(Br=en).D).Nb;gr=Br.R;var On=On.wa[On.Y+Qr],Xn=Br.sa,Ki=Br.ta+16*xn*gr+16*Qr,$a=On.dd,bn=On.tc;if(bn!=0)if(t(3<=bn),Br.L==1)0<Qr&&Go(Xn,Ki,gr,bn+4),On.La&&Wi(Xn,Ki,gr,bn),0<hi&&Ms(Xn,Ki,gr,bn+4),On.La&&zc(Xn,Ki,gr,bn);else{var fo=Br.B,Ds=Br.qa,Kl=Br.ra+8*xn*fo+8*Qr,Yo=Br.Ha,Br=Br.Ia+8*xn*fo+8*Qr;xn=On.ld,0<Qr&&(v0(Xn,Ki,gr,bn+4,$a,xn),Is(Ds,Kl,Yo,Br,fo,bn+4,$a,xn)),On.La&&(Ho(Xn,Ki,gr,bn,$a,xn),Gl(Ds,Kl,Yo,Br,fo,bn,$a,xn)),0<hi&&(Hl(Xn,Ki,gr,bn+4,$a,xn),Uc(Ds,Kl,Yo,Br,fo,bn+4,$a,xn)),On.La&&(Fs(Xn,Ki,gr,bn,$a,xn),Rs(Ds,Kl,Yo,Br,fo,bn,$a,xn))}}if(be.ia&&alert("todo:DitherRow"),we.put!=null){if(Lt=16*fr,fr=16*(fr+1),Oi?(we.y=be.sa,we.O=be.ta+_r,we.f=be.qa,we.N=be.ra+di,we.ea=be.Ha,we.W=be.Ia+di):(Lt-=Ut,we.y=it,we.O=xt,we.f=at,we.N=qe,we.ea=Jt,we.W=cr),Vt||(fr-=Ut),fr>we.o&&(fr=we.o),we.F=null,we.J=null,be.Fa!=null&&0<be.Fa.length&&Lt<fr&&(we.J=Ic(be,we,Lt,fr-Lt),we.F=be.mb,we.F==null&&we.F.length==0)){$e=Hr(be,3,"Could not decode alpha data.");break e}Lt<we.j&&(Ut=we.j-Lt,Lt=we.j,t(!(1&Ut)),we.O+=be.R*Ut,we.N+=be.B*(Ut>>1),we.W+=be.B*(Ut>>1),we.F!=null&&(we.J+=we.width*Ut)),Lt<fr&&(we.O+=we.v,we.N+=we.v>>1,we.W+=we.v>>1,we.F!=null&&(we.J+=we.v),we.ka=Lt-we.j,we.U=we.va-we.v,we.T=fr-Lt,$e=we.put(we))}Le+1!=be.Ic||Vt||(n(be.sa,be.ta-We,it,xt+16*be.R,We),n(be.qa,be.ra-ct,at,qe+8*be.B,ct),n(be.Ha,be.Ia-ct,Jt,cr+8*be.B,ct))}if(!$e)return Hr(Ae,6,"Output aborted.")}return 1})(v,b)),b.bc!=null&&b.bc(b),j&=1}return j?(v.cb=0,j):0}function fa(v,b,j,F,z){z=v[b+j+32*F]+(z>>3),v[b+j+32*F]=-256&z?0>z?0:255:z}function Cl(v,b,j,F,z,K){fa(v,b,0,j,F+z),fa(v,b,1,j,F+K),fa(v,b,2,j,F-K),fa(v,b,3,j,F-z)}function ui(v){return(20091*v>>16)+v}function Sc(v,b,j,F){var z,K=0,X=a(16);for(z=0;4>z;++z){var te=v[b+0]+v[b+8],re=v[b+0]-v[b+8],se=(35468*v[b+4]>>16)-ui(v[b+12]),xe=ui(v[b+4])+(35468*v[b+12]>>16);X[K+0]=te+xe,X[K+1]=re+se,X[K+2]=re-se,X[K+3]=te-xe,K+=4,b++}for(z=K=0;4>z;++z)te=(v=X[K+0]+4)+X[K+8],re=v-X[K+8],se=(35468*X[K+4]>>16)-ui(X[K+12]),fa(j,F,0,0,te+(xe=ui(X[K+4])+(35468*X[K+12]>>16))),fa(j,F,1,0,re+se),fa(j,F,2,0,re-se),fa(j,F,3,0,te-xe),K++,F+=32}function Zh(v,b,j,F){var z=v[b+0]+4,K=35468*v[b+4]>>16,X=ui(v[b+4]),te=35468*v[b+1]>>16;Cl(j,F,0,z+X,v=ui(v[b+1]),te),Cl(j,F,1,z+K,v,te),Cl(j,F,2,z-K,v,te),Cl(j,F,3,z-X,v,te)}function A1(v,b,j,F,z){Sc(v,b,j,F),z&&Sc(v,b+16,j,F+4)}function Qh(v,b,j,F){lo(v,b+0,j,F,1),lo(v,b+32,j,F+128,1)}function T1(v,b,j,F){var z;for(v=v[b+0]+4,z=0;4>z;++z)for(b=0;4>b;++b)fa(j,F,b,z,v)}function e0(v,b,j,F){v[b+0]&&Yn(v,b+0,j,F),v[b+16]&&Yn(v,b+16,j,F+4),v[b+32]&&Yn(v,b+32,j,F+128),v[b+48]&&Yn(v,b+48,j,F+128+4)}function E1(v,b,j,F){var z,K=a(16);for(z=0;4>z;++z){var X=v[b+0+z]+v[b+12+z],te=v[b+4+z]+v[b+8+z],re=v[b+4+z]-v[b+8+z],se=v[b+0+z]-v[b+12+z];K[0+z]=X+te,K[8+z]=X-te,K[4+z]=se+re,K[12+z]=se-re}for(z=0;4>z;++z)X=(v=K[0+4*z]+3)+K[3+4*z],te=K[1+4*z]+K[2+4*z],re=K[1+4*z]-K[2+4*z],se=v-K[3+4*z],j[F+0]=X+te>>3,j[F+16]=se+re>>3,j[F+32]=X-te>>3,j[F+48]=se-re>>3,F+=64}function Ac(v,b,j){var F,z=b-32,K=Ei,X=255-v[z-1];for(F=0;F<j;++F){var te,re=K,se=X+v[b-1];for(te=0;te<j;++te)v[b+te]=re[se+v[z+te]];b+=32}}function O1(v,b){Ac(v,b,4)}function P1(v,b){Ac(v,b,8)}function N1(v,b){Ac(v,b,16)}function io(v,b){var j;for(j=0;16>j;++j)n(v,b+32*j,v,b-32,16)}function jl(v,b){var j;for(j=16;0<j;--j)i(v,b,v[b-1],16),b+=32}function kl(v,b,j){var F;for(F=0;16>F;++F)i(b,j+32*F,v,16)}function t0(v,b){var j,F=16;for(j=0;16>j;++j)F+=v[b-1+32*j]+v[b+j-32];kl(F>>5,v,b)}function Mn(v,b){var j,F=8;for(j=0;16>j;++j)F+=v[b-1+32*j];kl(F>>4,v,b)}function C1(v,b){var j,F=8;for(j=0;16>j;++j)F+=v[b+j-32];kl(F>>4,v,b)}function r0(v,b){kl(128,v,b)}function Pt(v,b,j){return v+2*b+j+2>>2}function j1(v,b){var j,F=b-32;for(F=new Uint8Array([Pt(v[F-1],v[F+0],v[F+1]),Pt(v[F+0],v[F+1],v[F+2]),Pt(v[F+1],v[F+2],v[F+3]),Pt(v[F+2],v[F+3],v[F+4])]),j=0;4>j;++j)n(v,b+32*j,F,0,F.length)}function k1(v,b){var j=v[b-1],F=v[b-1+32],z=v[b-1+64],K=v[b-1+96];me(v,b+0,16843009*Pt(v[b-1-32],j,F)),me(v,b+32,16843009*Pt(j,F,z)),me(v,b+64,16843009*Pt(F,z,K)),me(v,b+96,16843009*Pt(z,K,K))}function Ma(v,b){var j,F=4;for(j=0;4>j;++j)F+=v[b+j-32]+v[b-1+32*j];for(F>>=3,j=0;4>j;++j)i(v,b+32*j,F,4)}function n0(v,b){var j=v[b-1+0],F=v[b-1+32],z=v[b-1+64],K=v[b-1-32],X=v[b+0-32],te=v[b+1-32],re=v[b+2-32],se=v[b+3-32];v[b+0+96]=Pt(F,z,v[b-1+96]),v[b+1+96]=v[b+0+64]=Pt(j,F,z),v[b+2+96]=v[b+1+64]=v[b+0+32]=Pt(K,j,F),v[b+3+96]=v[b+2+64]=v[b+1+32]=v[b+0+0]=Pt(X,K,j),v[b+3+64]=v[b+2+32]=v[b+1+0]=Pt(te,X,K),v[b+3+32]=v[b+2+0]=Pt(re,te,X),v[b+3+0]=Pt(se,re,te)}function i0(v,b){var j=v[b+1-32],F=v[b+2-32],z=v[b+3-32],K=v[b+4-32],X=v[b+5-32],te=v[b+6-32],re=v[b+7-32];v[b+0+0]=Pt(v[b+0-32],j,F),v[b+1+0]=v[b+0+32]=Pt(j,F,z),v[b+2+0]=v[b+1+32]=v[b+0+64]=Pt(F,z,K),v[b+3+0]=v[b+2+32]=v[b+1+64]=v[b+0+96]=Pt(z,K,X),v[b+3+32]=v[b+2+64]=v[b+1+96]=Pt(K,X,te),v[b+3+64]=v[b+2+96]=Pt(X,te,re),v[b+3+96]=Pt(te,re,re)}function Ll(v,b){var j=v[b-1+0],F=v[b-1+32],z=v[b-1+64],K=v[b-1-32],X=v[b+0-32],te=v[b+1-32],re=v[b+2-32],se=v[b+3-32];v[b+0+0]=v[b+1+64]=K+X+1>>1,v[b+1+0]=v[b+2+64]=X+te+1>>1,v[b+2+0]=v[b+3+64]=te+re+1>>1,v[b+3+0]=re+se+1>>1,v[b+0+96]=Pt(z,F,j),v[b+0+64]=Pt(F,j,K),v[b+0+32]=v[b+1+96]=Pt(j,K,X),v[b+1+32]=v[b+2+96]=Pt(K,X,te),v[b+2+32]=v[b+3+96]=Pt(X,te,re),v[b+3+32]=Pt(te,re,se)}function Tc(v,b){var j=v[b+0-32],F=v[b+1-32],z=v[b+2-32],K=v[b+3-32],X=v[b+4-32],te=v[b+5-32],re=v[b+6-32],se=v[b+7-32];v[b+0+0]=j+F+1>>1,v[b+1+0]=v[b+0+64]=F+z+1>>1,v[b+2+0]=v[b+1+64]=z+K+1>>1,v[b+3+0]=v[b+2+64]=K+X+1>>1,v[b+0+32]=Pt(j,F,z),v[b+1+32]=v[b+0+96]=Pt(F,z,K),v[b+2+32]=v[b+1+96]=Pt(z,K,X),v[b+3+32]=v[b+2+96]=Pt(K,X,te),v[b+3+64]=Pt(X,te,re),v[b+3+96]=Pt(te,re,se)}function L1(v,b){var j=v[b-1+0],F=v[b-1+32],z=v[b-1+64],K=v[b-1+96];v[b+0+0]=j+F+1>>1,v[b+2+0]=v[b+0+32]=F+z+1>>1,v[b+2+32]=v[b+0+64]=z+K+1>>1,v[b+1+0]=Pt(j,F,z),v[b+3+0]=v[b+1+32]=Pt(F,z,K),v[b+3+32]=v[b+1+64]=Pt(z,K,K),v[b+3+64]=v[b+2+64]=v[b+0+96]=v[b+1+96]=v[b+2+96]=v[b+3+96]=K}function I1(v,b){var j=v[b-1+0],F=v[b-1+32],z=v[b-1+64],K=v[b-1+96],X=v[b-1-32],te=v[b+0-32],re=v[b+1-32],se=v[b+2-32];v[b+0+0]=v[b+2+32]=j+X+1>>1,v[b+0+32]=v[b+2+64]=F+j+1>>1,v[b+0+64]=v[b+2+96]=z+F+1>>1,v[b+0+96]=K+z+1>>1,v[b+3+0]=Pt(te,re,se),v[b+2+0]=Pt(X,te,re),v[b+1+0]=v[b+3+32]=Pt(j,X,te),v[b+1+32]=v[b+3+64]=Pt(F,j,X),v[b+1+64]=v[b+3+96]=Pt(z,F,j),v[b+1+96]=Pt(K,z,F)}function F1(v,b){var j;for(j=0;8>j;++j)n(v,b+32*j,v,b-32,8)}function Ec(v,b){var j;for(j=0;8>j;++j)i(v,b,v[b-1],8),b+=32}function Ns(v,b,j){var F;for(F=0;8>F;++F)i(b,j+32*F,v,8)}function $o(v,b){var j,F=8;for(j=0;8>j;++j)F+=v[b+j-32]+v[b-1+32*j];Ns(F>>4,v,b)}function R1(v,b){var j,F=4;for(j=0;8>j;++j)F+=v[b+j-32];Ns(F>>3,v,b)}function Cs(v,b){var j,F=4;for(j=0;8>j;++j)F+=v[b-1+32*j];Ns(F>>3,v,b)}function Oc(v,b){Ns(128,v,b)}function Il(v,b,j){var F=v[b-j],z=v[b+0],K=3*(z-F)+U1[1020+v[b-2*j]-v[b+j]],X=g0[112+(K+4>>3)];v[b-j]=Ei[255+F+g0[112+(K+3>>3)]],v[b+0]=Ei[255+z-X]}function a0(v,b,j,F){var z=v[b+0],K=v[b+j];return Gi[255+v[b-2*j]-v[b-j]]>F||Gi[255+K-z]>F}function o0(v,b,j,F){return 4*Gi[255+v[b-j]-v[b+0]]+Gi[255+v[b-2*j]-v[b+j]]<=F}function s0(v,b,j,F,z){var K=v[b-3*j],X=v[b-2*j],te=v[b-j],re=v[b+0],se=v[b+j],xe=v[b+2*j],Pe=v[b+3*j];return 4*Gi[255+te-re]+Gi[255+X-se]>F?0:Gi[255+v[b-4*j]-K]<=z&&Gi[255+K-X]<=z&&Gi[255+X-te]<=z&&Gi[255+Pe-xe]<=z&&Gi[255+xe-se]<=z&&Gi[255+se-re]<=z}function l0(v,b,j,F){var z=2*F+1;for(F=0;16>F;++F)o0(v,b+F,j,z)&&Il(v,b+F,j)}function Da(v,b,j,F){var z=2*F+1;for(F=0;16>F;++F)o0(v,b+F*j,1,z)&&Il(v,b+F*j,1)}function ao(v,b,j,F){var z;for(z=3;0<z;--z)l0(v,b+=4*j,j,F)}function M1(v,b,j,F){var z;for(z=3;0<z;--z)Da(v,b+=4,j,F)}function qo(v,b,j,F,z,K,X,te){for(K=2*K+1;0<z--;){if(s0(v,b,j,K,X))if(a0(v,b,j,te))Il(v,b,j);else{var re=v,se=b,xe=j,Pe=re[se-2*xe],Ne=re[se-xe],Ae=re[se+0],Ue=re[se+xe],Le=re[se+2*xe],be=27*($e=U1[1020+3*(Ae-Ne)+U1[1020+Pe-Ue]])+63>>7,we=18*$e+63>>7,$e=9*$e+63>>7;re[se-3*xe]=Ei[255+re[se-3*xe]+$e],re[se-2*xe]=Ei[255+Pe+we],re[se-xe]=Ei[255+Ne+be],re[se+0]=Ei[255+Ae-be],re[se+xe]=Ei[255+Ue-we],re[se+2*xe]=Ei[255+Le-$e]}b+=F}}function ha(v,b,j,F,z,K,X,te){for(K=2*K+1;0<z--;){if(s0(v,b,j,K,X))if(a0(v,b,j,te))Il(v,b,j);else{var re=v,se=b,xe=j,Pe=re[se-xe],Ne=re[se+0],Ae=re[se+xe],Ue=g0[112+((Le=3*(Ne-Pe))+4>>3)],Le=g0[112+(Le+3>>3)],be=Ue+1>>1;re[se-2*xe]=Ei[255+re[se-2*xe]+be],re[se-xe]=Ei[255+Pe+Le],re[se+0]=Ei[255+Ne-Ue],re[se+xe]=Ei[255+Ae-be]}b+=F}}function Pc(v,b,j,F,z,K){qo(v,b,j,1,16,F,z,K)}function js(v,b,j,F,z,K){qo(v,b,1,j,16,F,z,K)}function D1(v,b,j,F,z,K){var X;for(X=3;0<X;--X)ha(v,b+=4*j,j,1,16,F,z,K)}function Fl(v,b,j,F,z,K){var X;for(X=3;0<X;--X)ha(v,b+=4,1,j,16,F,z,K)}function B1(v,b,j,F,z,K,X,te){qo(v,b,z,1,8,K,X,te),qo(j,F,z,1,8,K,X,te)}function Nc(v,b,j,F,z,K,X,te){qo(v,b,1,z,8,K,X,te),qo(j,F,1,z,8,K,X,te)}function Cc(v,b,j,F,z,K,X,te){ha(v,b+4*z,z,1,8,K,X,te),ha(j,F+4*z,z,1,8,K,X,te)}function u0(v,b,j,F,z,K,X,te){ha(v,b+4,1,z,8,K,X,te),ha(j,F+4,1,z,8,K,X,te)}function Rl(){this.ba=new _i,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new wr,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function jc(){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 kc(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function c0(){this.ua=0,this.Wa=new oe,this.vb=new oe,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new q,this.yc=new P}function $1(){this.xb=this.a=0,this.l=new Ra,this.ca=new _i,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new N,this.Pb=0,this.wd=new N,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new c0,this.ab=0,this.gc=o(4,kc),this.Oc=0}function Ml(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ra,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ks(v,b,j,F,z,K,X){for(v=v==null?0:v[b+0],b=0;b<X;++b)z[K+b]=v+j[F+b]&255,v=z[K+b]}function Lc(v,b,j,F,z,K,X){var te;if(v==null)ks(null,null,j,F,z,K,X);else for(te=0;te<X;++te)z[K+te]=v[b+te]+j[F+te]&255}function Uo(v,b,j,F,z,K,X){if(v==null)ks(null,null,j,F,z,K,X);else{var te,re=v[b+0],se=re,xe=re;for(te=0;te<X;++te)se=xe+(re=v[b+te])-se,xe=j[F+te]+(-256&se?0>se?0:255:se)&255,se=re,z[K+te]=xe}}function Ic(v,b,j,F){var z=b.width,K=b.o;if(t(v!=null&&b!=null),0>j||0>=F||j+F>K)return null;if(!v.Cc){if(v.ga==null){var X;if(v.ga=new Ml,(X=v.ga==null)||(X=b.width*b.o,t(v.Gb.length==0),v.Gb=a(X),v.Uc=0,v.Gb==null?X=0:(v.mb=v.Gb,v.nb=v.Uc,v.rc=null,X=1),X=!X),!X){X=v.ga;var te=v.Fa,re=v.P,se=v.qc,xe=v.mb,Pe=v.nb,Ne=re+1,Ae=se-1,Ue=X.l;if(t(te!=null&&xe!=null&&b!=null),Ko[0]=null,Ko[1]=ks,Ko[2]=Lc,Ko[3]=Uo,X.ca=xe,X.tb=Pe,X.c=b.width,X.i=b.height,t(0<X.c&&0<X.i),1>=se)b=0;else if(X.$a=te[re+0]>>0&3,X.Z=te[re+0]>>2&3,X.Lc=te[re+0]>>4&3,re=te[re+0]>>6&3,0>X.$a||1<X.$a||4<=X.Z||1<X.Lc||re)b=0;else if(Ue.put=$i,Ue.ac=un,Ue.bc=qi,Ue.ma=X,Ue.width=b.width,Ue.height=b.height,Ue.Da=b.Da,Ue.v=b.v,Ue.va=b.va,Ue.j=b.j,Ue.o=b.o,X.$a)e:{t(X.$a==1),b=ke();t:for(;;){if(b==null){b=0;break e}if(t(X!=null),X.mc=b,b.c=X.c,b.i=X.i,b.l=X.l,b.l.ma=X,b.l.width=X.c,b.l.height=X.i,b.a=0,ee(b.m,te,Ne,Ae),!Ee(X.c,X.i,1,b,null)||(b.ab==1&&b.gc[0].hc==3&&ie(b.s)?(X.ic=1,te=b.c*b.i,b.Ta=null,b.Ua=0,b.V=a(te),b.Ba=0,b.V==null?(b.a=1,b=0):b=1):(X.ic=0,b=Ce(b,X.c)),!b))break t;b=1;break e}X.mc=null,b=0}else b=Ae>=X.c*X.i;X=!b}if(X)return null;v.ga.Lc!=1?v.Ga=0:F=K-j}t(v.ga!=null),t(j+F<=K);e:{if(b=(te=v.ga).c,K=te.l.o,te.$a==0){if(Ne=v.rc,Ae=v.Vc,Ue=v.Fa,re=v.P+1+j*b,se=v.mb,xe=v.nb+j*b,t(re<=v.P+v.qc),te.Z!=0)for(t(Ko[te.Z]!=null),X=0;X<F;++X)Ko[te.Z](Ne,Ae,Ue,re,se,xe,b),Ne=se,Ae=xe,xe+=b,re+=b;else for(X=0;X<F;++X)n(se,xe,Ue,re,b),Ne=se,Ae=xe,xe+=b,re+=b;v.rc=Ne,v.Vc=Ae}else{if(t(te.mc!=null),b=j+F,t((X=te.mc)!=null),t(b<=X.i),X.C>=b)b=1;else if(te.ic||Te(),te.ic){te=X.V,Ne=X.Ba,Ae=X.c;var Le=X.i,be=(Ue=1,re=X.$/Ae,se=X.$%Ae,xe=X.m,Pe=X.s,X.$),we=Ae*Le,$e=Ae*b,We=Pe.wc,qe=be<$e?Mr(Pe,se,re):null;t(be<=we),t(b<=Le),t(ie(Pe));t:for(;;){for(;!xe.h&&be<$e;){if(se&We||(qe=Mr(Pe,se,re)),t(qe!=null),G(xe),256>(Le=Rn(qe.G[0],qe.H[0],xe)))te[Ne+be]=Le,++be,++se>=Ae&&(se=0,++re<=b&&!(re%16)&&fe(X,re));else{if(!(280>Le)){Ue=0;break t}Le=Si(Le-256,xe);var ct,it=Rn(qe.G[4],qe.H[4],xe);if(G(xe),!(be>=(it=li(Ae,it=Si(it,xe)))&&we-be>=Le)){Ue=0;break t}for(ct=0;ct<Le;++ct)te[Ne+be+ct]=te[Ne+be+ct-it];for(be+=Le,se+=Le;se>=Ae;)se-=Ae,++re<=b&&!(re%16)&&fe(X,re);be<$e&&se&We&&(qe=Mr(Pe,se,re))}t(xe.h==R(xe))}fe(X,re>b?b:re);break t}!Ue||xe.h&&be<we?(Ue=0,X.a=xe.h?5:3):X.$=be,b=Ue}else b=pe(X,X.V,X.Ba,X.c,X.i,b,je);if(!b){F=0;break e}}j+F>=K&&(v.Cc=1),F=1}if(!F)return null;if(v.Cc&&((F=v.ga)!=null&&(F.mc=null),v.ga=null,0<v.Ga))return alert("todo:WebPDequantizeLevels"),null}return v.nb+j*z}function O(v,b,j,F,z,K){for(;0<z--;){var X,te=v,re=b+(j?1:0),se=v,xe=b+(j?0:3);for(X=0;X<F;++X){var Pe=se[xe+4*X];Pe!=255&&(Pe*=32897,te[re+4*X+0]=te[re+4*X+0]*Pe>>23,te[re+4*X+1]=te[re+4*X+1]*Pe>>23,te[re+4*X+2]=te[re+4*X+2]*Pe>>23)}b+=K}}function W(v,b,j,F,z){for(;0<F--;){var K;for(K=0;K<j;++K){var X=v[b+2*K+0],te=15&(se=v[b+2*K+1]),re=4369*te,se=(240&se|se>>4)*re>>16;v[b+2*K+0]=(240&X|X>>4)*re>>16&240|(15&X|X<<4)*re>>16>>4&15,v[b+2*K+1]=240&se|te}b+=z}}function ve(v,b,j,F,z,K,X,te){var re,se,xe=255;for(se=0;se<z;++se){for(re=0;re<F;++re){var Pe=v[b+re];K[X+4*re]=Pe,xe&=Pe}b+=j,X+=te}return xe!=255}function ye(v,b,j,F,z){var K;for(K=0;K<z;++K)j[F+K]=v[b+K]>>8}function Te(){Hi=O,Er=W,Or=ve,Vr=ye}function Fe(v,b,j){k[v]=function(F,z,K,X,te,re,se,xe,Pe,Ne,Ae,Ue,Le,be,we,$e,We){var qe,ct=We-1>>1,it=te[re+0]|se[xe+0]<<16,xt=Pe[Ne+0]|Ae[Ue+0]<<16;t(F!=null);var at=3*it+xt+131074>>2;for(b(F[z+0],255&at,at>>16,Le,be),K!=null&&(at=3*xt+it+131074>>2,b(K[X+0],255&at,at>>16,we,$e)),qe=1;qe<=ct;++qe){var Jt=te[re+qe]|se[xe+qe]<<16,cr=Pe[Ne+qe]|Ae[Ue+qe]<<16,Vt=it+Jt+xt+cr+524296,Ut=Vt+2*(Jt+xt)>>3;at=Ut+it>>1,it=(Vt=Vt+2*(it+cr)>>3)+Jt>>1,b(F[z+2*qe-1],255&at,at>>16,Le,be+(2*qe-1)*j),b(F[z+2*qe-0],255&it,it>>16,Le,be+(2*qe-0)*j),K!=null&&(at=Vt+xt>>1,it=Ut+cr>>1,b(K[X+2*qe-1],255&at,at>>16,we,$e+(2*qe-1)*j),b(K[X+2*qe+0],255&it,it>>16,we,$e+(2*qe+0)*j)),it=Jt,xt=cr}1&We||(at=3*it+xt+131074>>2,b(F[z+We-1],255&at,at>>16,Le,be+(We-1)*j),K!=null&&(at=3*xt+it+131074>>2,b(K[X+We-1],255&at,at>>16,we,$e+(We-1)*j)))}}function He(){Vi[y0]=yk,Vi[x0]=mw,Vi[fw]=xk,Vi[b0]=gw,Vi[w0]=yw,Vi[z1]=xw,Vi[hw]=bk,Vi[W1]=mw,Vi[H1]=gw,Vi[_0]=yw,Vi[G1]=xw}function ut(v){return v&-16384?0>v?0:255:v>>wk}function vt(v,b){return ut((19077*v>>8)+(26149*b>>8)-14234)}function jt(v,b,j){return ut((19077*v>>8)-(6419*b>>8)-(13320*j>>8)+8708)}function Nt(v,b){return ut((19077*v>>8)+(33050*b>>8)-17685)}function Ht(v,b,j,F,z){F[z+0]=vt(v,j),F[z+1]=jt(v,b,j),F[z+2]=Nt(v,b)}function Rr(v,b,j,F,z){F[z+0]=Nt(v,b),F[z+1]=jt(v,b,j),F[z+2]=vt(v,j)}function Dr(v,b,j,F,z){var K=jt(v,b,j);b=K<<3&224|Nt(v,b)>>3,F[z+0]=248&vt(v,j)|K>>5,F[z+1]=b}function Zr(v,b,j,F,z){var K=240&Nt(v,b)|15;F[z+0]=240&vt(v,j)|jt(v,b,j)>>4,F[z+1]=K}function Dn(v,b,j,F,z){F[z+0]=255,Ht(v,b,j,F,z+1)}function yn(v,b,j,F,z){Rr(v,b,j,F,z),F[z+3]=255}function da(v,b,j,F,z){Ht(v,b,j,F,z),F[z+3]=255}function Ti(v,b){return 0>v?0:v>b?b:v}function Ba(v,b,j){k[v]=function(F,z,K,X,te,re,se,xe,Pe){for(var Ne=xe+(-2&Pe)*j;xe!=Ne;)b(F[z+0],K[X+0],te[re+0],se,xe),b(F[z+1],K[X+0],te[re+0],se,xe+j),z+=2,++X,++re,xe+=2*j;1&Pe&&b(F[z+0],K[X+0],te[re+0],se,xe)}}function f0(v,b,j){return j==0?v==0?b==0?6:5:b==0?4:0:j}function Fc(v,b,j,F,z){switch(v>>>30){case 3:lo(b,j,F,z,0);break;case 2:Gr(b,j,F,z);break;case 1:Yn(b,j,F,z)}}function Rc(v,b){var j,F,z=b.M,K=b.Nb,X=v.oc,te=v.pc+40,re=v.oc,se=v.pc+584,xe=v.oc,Pe=v.pc+600;for(j=0;16>j;++j)X[te+32*j-1]=129;for(j=0;8>j;++j)re[se+32*j-1]=129,xe[Pe+32*j-1]=129;for(0<z?X[te-1-32]=re[se-1-32]=xe[Pe-1-32]=129:(i(X,te-32-1,127,21),i(re,se-32-1,127,9),i(xe,Pe-32-1,127,9)),F=0;F<v.za;++F){var Ne=b.ya[b.aa+F];if(0<F){for(j=-1;16>j;++j)n(X,te+32*j-4,X,te+32*j+12,4);for(j=-1;8>j;++j)n(re,se+32*j-4,re,se+32*j+4,4),n(xe,Pe+32*j-4,xe,Pe+32*j+4,4)}var Ae=v.Gd,Ue=v.Hd+F,Le=Ne.ad,be=Ne.Hc;if(0<z&&(n(X,te-32,Ae[Ue].y,0,16),n(re,se-32,Ae[Ue].f,0,8),n(xe,Pe-32,Ae[Ue].ea,0,8)),Ne.Za){var we=X,$e=te-32+16;for(0<z&&(F>=v.za-1?i(we,$e,Ae[Ue].y[15],4):n(we,$e,Ae[Ue+1].y,0,4)),j=0;4>j;j++)we[$e+128+j]=we[$e+256+j]=we[$e+384+j]=we[$e+0+j];for(j=0;16>j;++j,be<<=2)we=X,$e=te+ww[j],pa[Ne.Ob[j]](we,$e),Fc(be,Le,16*+j,we,$e)}else if(we=f0(F,z,Ne.Ob[0]),Vo[we](X,te),be!=0)for(j=0;16>j;++j,be<<=2)Fc(be,Le,16*+j,X,te+ww[j]);for(j=Ne.Gc,we=f0(F,z,Ne.Dd),co[we](re,se),co[we](xe,Pe),be=Le,we=re,$e=se,255&(Ne=j>>0)&&(170&Ne?qc(be,256,we,$e):zi(be,256,we,$e)),Ne=xe,be=Pe,255&(j>>=8)&&(170&j?qc(Le,320,Ne,be):zi(Le,320,Ne,be)),z<v.Ub-1&&(n(Ae[Ue].y,0,X,te+480,16),n(Ae[Ue].f,0,re,se+224,8),n(Ae[Ue].ea,0,xe,Pe+224,8)),j=8*K*v.B,Ae=v.sa,Ue=v.ta+16*F+16*K*v.R,Le=v.qa,Ne=v.ra+8*F+j,be=v.Ha,we=v.Ia+8*F+j,j=0;16>j;++j)n(Ae,Ue+j*v.R,X,te+32*j,16);for(j=0;8>j;++j)n(Le,Ne+j*v.B,re,se+32*j,8),n(be,we+j*v.B,xe,Pe+32*j,8)}}function Dl(v,b,j,F,z,K,X,te,re){var se=[0],xe=[0],Pe=0,Ne=re!=null?re.kd:0,Ae=re??new jc;if(v==null||12>j)return 7;Ae.data=v,Ae.w=b,Ae.ha=j,b=[b],j=[j],Ae.gb=[Ae.gb];e:{var Ue=b,Le=j,be=Ae.gb;if(t(v!=null),t(Le!=null),t(be!=null),be[0]=0,12<=Le[0]&&!r(v,Ue[0],"RIFF")){if(r(v,Ue[0]+8,"WEBP")){be=3;break e}var we=Ie(v,Ue[0]+4);if(12>we||4294967286<we){be=3;break e}if(Ne&&we>Le[0]-8){be=7;break e}be[0]=we,Ue[0]+=12,Le[0]-=12}be=0}if(be!=0)return be;for(we=0<Ae.gb[0],j=j[0];;){e:{var $e=v;Le=b,be=j;var We=se,qe=xe,ct=Ue=[0];if((at=Pe=[Pe])[0]=0,8>be[0])be=7;else{if(!r($e,Le[0],"VP8X")){if(Ie($e,Le[0]+4)!=10){be=3;break e}if(18>be[0]){be=7;break e}var it=Ie($e,Le[0]+8),xt=1+ue($e,Le[0]+12);if(2147483648<=xt*($e=1+ue($e,Le[0]+15))){be=3;break e}ct!=null&&(ct[0]=it),We!=null&&(We[0]=xt),qe!=null&&(qe[0]=$e),Le[0]+=18,be[0]-=18,at[0]=1}be=0}}if(Pe=Pe[0],Ue=Ue[0],be!=0)return be;if(Le=!!(2&Ue),!we&&Pe)return 3;if(K!=null&&(K[0]=!!(16&Ue)),X!=null&&(X[0]=Le),te!=null&&(te[0]=0),X=se[0],Ue=xe[0],Pe&&Le&&re==null){be=0;break}if(4>j){be=7;break}if(we&&Pe||!we&&!Pe&&!r(v,b[0],"ALPH")){j=[j],Ae.na=[Ae.na],Ae.P=[Ae.P],Ae.Sa=[Ae.Sa];e:{it=v,be=b,we=j;var at=Ae.gb;We=Ae.na,qe=Ae.P,ct=Ae.Sa,xt=22,t(it!=null),t(we!=null),$e=be[0];var Jt=we[0];for(t(We!=null),t(ct!=null),We[0]=null,qe[0]=null,ct[0]=0;;){if(be[0]=$e,we[0]=Jt,8>Jt){be=7;break e}var cr=Ie(it,$e+4);if(4294967286<cr){be=3;break e}var Vt=8+cr+1&-2;if(xt+=Vt,0<at&&xt>at){be=3;break e}if(!r(it,$e,"VP8 ")||!r(it,$e,"VP8L")){be=0;break e}if(Jt[0]<Vt){be=7;break e}r(it,$e,"ALPH")||(We[0]=it,qe[0]=$e+8,ct[0]=cr),$e+=Vt,Jt-=Vt}}if(j=j[0],Ae.na=Ae.na[0],Ae.P=Ae.P[0],Ae.Sa=Ae.Sa[0],be!=0)break}j=[j],Ae.Ja=[Ae.Ja],Ae.xa=[Ae.xa];e:if(at=v,be=b,we=j,We=Ae.gb[0],qe=Ae.Ja,ct=Ae.xa,it=be[0],$e=!r(at,it,"VP8 "),xt=!r(at,it,"VP8L"),t(at!=null),t(we!=null),t(qe!=null),t(ct!=null),8>we[0])be=7;else{if($e||xt){if(at=Ie(at,it+4),12<=We&&at>We-12){be=3;break e}if(Ne&&at>we[0]-8){be=7;break e}qe[0]=at,be[0]+=8,we[0]-=8,ct[0]=xt}else ct[0]=5<=we[0]&&at[it+0]==47&&!(at[it+4]>>5),qe[0]=we[0];be=0}if(j=j[0],Ae.Ja=Ae.Ja[0],Ae.xa=Ae.xa[0],b=b[0],be!=0)break;if(4294967286<Ae.Ja)return 3;if(te==null||Le||(te[0]=Ae.xa?2:1),X=[X],Ue=[Ue],Ae.xa){if(5>j){be=7;break}te=X,Ne=Ue,Le=K,v==null||5>j?v=0:5<=j&&v[b+0]==47&&!(v[b+4]>>5)?(we=[0],at=[0],We=[0],ee(qe=new N,v,b,j),yt(qe,we,at,We)?(te!=null&&(te[0]=we[0]),Ne!=null&&(Ne[0]=at[0]),Le!=null&&(Le[0]=We[0]),v=1):v=0):v=0}else{if(10>j){be=7;break}te=Ue,v==null||10>j||!Yh(v,b+3,j-3)?v=0:(Ne=v[b+0]|v[b+1]<<8|v[b+2]<<16,Le=16383&(v[b+7]<<8|v[b+6]),v=16383&(v[b+9]<<8|v[b+8]),1&Ne||3<(Ne>>1&7)||!(Ne>>4&1)||Ne>>5>=Ae.Ja||!Le||!v?v=0:(X&&(X[0]=Le),te&&(te[0]=v),v=1))}if(!v||(X=X[0],Ue=Ue[0],Pe&&(se[0]!=X||xe[0]!=Ue)))return 3;re!=null&&(re[0]=Ae,re.offset=b-re.w,t(4294967286>b-re.w),t(re.offset==re.ha-j));break}return be==0||be==7&&Pe&&re==null?(K!=null&&(K[0]|=Ae.na!=null&&0<Ae.na.length),F!=null&&(F[0]=X),z!=null&&(z[0]=Ue),0):be}function Mc(v,b,j){var F=b.width,z=b.height,K=0,X=0,te=F,re=z;if(b.Da=v!=null&&0<v.Da,b.Da&&(te=v.cd,re=v.bd,K=v.v,X=v.j,11>j||(K&=-2,X&=-2),0>K||0>X||0>=te||0>=re||K+te>F||X+re>z))return 0;if(b.v=K,b.j=X,b.va=K+te,b.o=X+re,b.U=te,b.T=re,b.da=v!=null&&0<v.da,b.da){if(!Re(te,re,j=[v.ib],K=[v.hb]))return 0;b.ib=j[0],b.hb=K[0]}return b.ob=v!=null&&v.ob,b.Kb=v==null||!v.Sd,b.da&&(b.ob=b.ib<3*F/4&&b.hb<3*z/4,b.Kb=0),1}function Dc(v){if(v==null)return 2;if(11>v.S){var b=v.f.RGBA;b.fb+=(v.height-1)*b.A,b.A=-b.A}else b=v.f.kb,v=v.height,b.O+=(v-1)*b.fa,b.fa=-b.fa,b.N+=(v-1>>1)*b.Ab,b.Ab=-b.Ab,b.W+=(v-1>>1)*b.Db,b.Db=-b.Db,b.F!=null&&(b.J+=(v-1)*b.lb,b.lb=-b.lb);return 0}function Bl(v,b,j,F){if(F==null||0>=v||0>=b)return 2;if(j!=null){if(j.Da){var z=j.cd,K=j.bd,X=-2&j.v,te=-2&j.j;if(0>X||0>te||0>=z||0>=K||X+z>v||te+K>b)return 2;v=z,b=K}if(j.da){if(!Re(v,b,z=[j.ib],K=[j.hb]))return 2;v=z[0],b=K[0]}}F.width=v,F.height=b;e:{var re=F.width,se=F.height;if(v=F.S,0>=re||0>=se||!(v>=y0&&13>v))v=2;else{if(0>=F.Rd&&F.sd==null){X=K=z=b=0;var xe=(te=re*_w[v])*se;if(11>v||(K=(se+1)/2*(b=(re+1)/2),v==12&&(X=(z=re)*se)),(se=a(xe+2*K+X))==null){v=1;break e}F.sd=se,11>v?((re=F.f.RGBA).eb=se,re.fb=0,re.A=te,re.size=xe):((re=F.f.kb).y=se,re.O=0,re.fa=te,re.Fd=xe,re.f=se,re.N=0+xe,re.Ab=b,re.Cd=K,re.ea=se,re.W=0+xe+K,re.Db=b,re.Ed=K,v==12&&(re.F=se,re.J=0+xe+2*K),re.Tc=X,re.lb=z)}if(b=1,z=F.S,K=F.width,X=F.height,z>=y0&&13>z)if(11>z)v=F.f.RGBA,b&=(te=Math.abs(v.A))*(X-1)+K<=v.size,b&=te>=K*_w[z],b&=v.eb!=null;else{v=F.f.kb,te=(K+1)/2,xe=(X+1)/2,re=Math.abs(v.fa),se=Math.abs(v.Ab);var Pe=Math.abs(v.Db),Ne=Math.abs(v.lb),Ae=Ne*(X-1)+K;b&=re*(X-1)+K<=v.Fd,b&=se*(xe-1)+te<=v.Cd,b=(b&=Pe*(xe-1)+te<=v.Ed)&re>=K&se>=te&Pe>=te,b&=v.y!=null,b&=v.f!=null,b&=v.ea!=null,z==12&&(b&=Ne>=K,b&=Ae<=v.Tc,b&=v.F!=null)}else b=0;v=b?0:2}}return v!=0||j!=null&&j.fd&&(v=Dc(F)),v}var En=64,$l=[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],ql=24,Ul=32,Bc=8,ci=[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"),k.Predictor0=function(){return 4278190080},k.Predictor1=function(v){return v},k.Predictor2=function(v,b,j){return b[j+0]},k.Predictor3=function(v,b,j){return b[j+1]},k.Predictor4=function(v,b,j){return b[j-1]},k.Predictor5=function(v,b,j){return Je(Je(v,b[j+1]),b[j+0])},k.Predictor6=function(v,b,j){return Je(v,b[j-1])},k.Predictor7=function(v,b,j){return Je(v,b[j+0])},k.Predictor8=function(v,b,j){return Je(b[j-1],b[j+0])},k.Predictor9=function(v,b,j){return Je(b[j+0],b[j+1])},k.Predictor10=function(v,b,j){return Je(Je(v,b[j-1]),Je(b[j+0],b[j+1]))},k.Predictor11=function(v,b,j){var F=b[j+0];return 0>=bt(F>>24&255,v>>24&255,(b=b[j-1])>>24&255)+bt(F>>16&255,v>>16&255,b>>16&255)+bt(F>>8&255,v>>8&255,b>>8&255)+bt(255&F,255&v,255&b)?F:v},k.Predictor12=function(v,b,j){var F=b[j+0];return(dt((v>>24&255)+(F>>24&255)-((b=b[j-1])>>24&255))<<24|dt((v>>16&255)+(F>>16&255)-(b>>16&255))<<16|dt((v>>8&255)+(F>>8&255)-(b>>8&255))<<8|dt((255&v)+(255&F)-(255&b)))>>>0},k.Predictor13=function(v,b,j){var F=b[j-1];return(pt((v=Je(v,b[j+0]))>>24&255,F>>24&255)<<24|pt(v>>16&255,F>>16&255)<<16|pt(v>>8&255,F>>8&255)<<8|pt(v>>0&255,F>>0&255))>>>0};var q1=k.PredictorAdd0;k.PredictorAdd1=Ot,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 $c=k.PredictorAdd2;Mt("ColorIndexInverseTransform","MapARGB","32b",(function(v){return v>>8&255}),(function(v){return v})),Mt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(v){return v}),(function(v){return v>>8&255}));var h0,Ui=k.ColorIndexInverseTransform,zl=k.MapARGB,d0=k.VP8LColorIndexInverseTransformAlpha,p0=k.MapAlpha,zo=k.VP8LPredictorsAdd=[];zo.length=16,(k.VP8LPredictors=[]).length=16,(k.VP8LPredictorsAdd_C=[]).length=16,(k.VP8LPredictors_C=[]).length=16;var Ls,fi,Kn,Wo,oo,so,Wl,lo,Gr,qc,Yn,zi,Hl,v0,Uc,Is,Fs,Ho,Rs,Gl,Ms,Go,zc,Wi,Hi,Er,Or,Vr,cn=a(511),uo=a(2041),Wc=a(225),Vl=a(767),m0=0,U1=uo,g0=Wc,Ei=Vl,Gi=cn,y0=0,x0=1,fw=2,b0=3,w0=4,z1=5,hw=6,W1=7,H1=8,_0=9,G1=10,ik=[2,3,7],ak=[3,3,11],dw=[280,256,256,256,40],ok=[0,1,1,1,0],sk=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],lk=[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],uk=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ck=8,V1=[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],K1=[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],Hc=null,fk=[[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]],hk=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],pw=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],dk=[[[[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]]]],pk=[[[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]]],vk=[[[[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]]]],mk=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Vo=[],pa=[],co=[],gk=1,vw=2,Ko=[],Vi=[];Fe("UpsampleRgbLinePair",Ht,3),Fe("UpsampleBgrLinePair",Rr,3),Fe("UpsampleRgbaLinePair",da,4),Fe("UpsampleBgraLinePair",yn,4),Fe("UpsampleArgbLinePair",Dn,4),Fe("UpsampleRgba4444LinePair",Zr,2),Fe("UpsampleRgb565LinePair",Dr,2);var yk=k.UpsampleRgbLinePair,xk=k.UpsampleBgrLinePair,mw=k.UpsampleRgbaLinePair,gw=k.UpsampleBgraLinePair,yw=k.UpsampleArgbLinePair,xw=k.UpsampleRgba4444LinePair,bk=k.UpsampleRgb565LinePair,S0=16,A0=1<<S0-1,Gc=-227,Y1=482,wk=6,bw=0,_k=a(256),Sk=a(256),Ak=a(256),Tk=a(256),Ek=a(Y1-Gc),Ok=a(Y1-Gc);Ba("YuvToRgbRow",Ht,3),Ba("YuvToBgrRow",Rr,3),Ba("YuvToRgbaRow",da,4),Ba("YuvToBgraRow",yn,4),Ba("YuvToArgbRow",Dn,4),Ba("YuvToRgba4444Row",Zr,2),Ba("YuvToRgb565Row",Dr,2);var ww=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],T0=[0,2,8],Pk=[8,7,6,4,4,2,2,2,1,1,1,1],Nk=1;this.WebPDecodeRGBA=function(v,b,j,F,z){var K=x0,X=new Rl,te=new _i;X.ba=te,te.S=K,te.width=[te.width],te.height=[te.height];var re=te.width,se=te.height,xe=new la;if(xe==null||v==null)var Pe=2;else t(xe!=null),Pe=Dl(v,b,j,xe.width,xe.height,xe.Pd,xe.Qd,xe.format,null);if(Pe!=0?re=0:(re!=null&&(re[0]=xe.width[0]),se!=null&&(se[0]=xe.height[0]),re=1),re){te.width=te.width[0],te.height=te.height[0],F!=null&&(F[0]=te.width),z!=null&&(z[0]=te.height);e:{if(F=new Ra,(z=new jc).data=v,z.w=b,z.ha=j,z.kd=1,b=[0],t(z!=null),((v=Dl(z.data,z.w,z.ha,null,null,null,b,null,z))==0||v==7)&&b[0]&&(v=4),(b=v)==0){if(t(X!=null),F.data=z.data,F.w=z.w+z.offset,F.ha=z.ha-z.offset,F.put=$i,F.ac=un,F.bc=qi,F.ma=X,z.xa){if((v=ke())==null){X=1;break e}if((function(Ne,Ae){var Ue=[0],Le=[0],be=[0];t:for(;;){if(Ne==null)return 0;if(Ae==null)return Ne.a=2,0;if(Ne.l=Ae,Ne.a=0,ee(Ne.m,Ae.data,Ae.w,Ae.ha),!yt(Ne.m,Ue,Le,be)){Ne.a=3;break t}if(Ne.xb=vw,Ae.width=Ue[0],Ae.height=Le[0],!Ee(Ue[0],Le[0],1,Ne,null))break t;return 1}return t(Ne.a!=0),0})(v,F)){if(F=(b=Bl(F.width,F.height,X.Oa,X.ba))==0){t:{F=v;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((j=F.l)!=null),t((z=j.ma)!=null),F.xb!=0){if(F.ca=z.ba,F.tb=z.tb,t(F.ca!=null),!Mc(z.Oa,j,b0)){F.a=2;break r}if(!Ce(F,j.width)||j.da)break r;if((j.da||Gt(F.ca.S))&&Te(),11>F.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),F.ca.f.kb.F!=null&&Te()),F.Pb&&0<F.s.ua&&F.s.vb.X==null&&!ge(F.s.vb,F.s.Wa.Xa)){F.a=1;break r}F.xb=0}if(!pe(F,F.V,F.Ba,F.c,F.i,j.o,de))break r;z.Dc=F.Ma,F=1;break t}t(F.a!=0),F=0}F=!F}F&&(b=v.a)}else b=v.a}else{if((v=new Ai)==null){X=1;break e}if(v.Fa=z.na,v.P=z.P,v.qc=z.Sa,Xh(v,F)){if((b=Bl(F.width,F.height,X.Oa,X.ba))==0){if(v.Aa=0,j=X.Oa,t((z=v)!=null),j!=null){if(0<(re=0>(re=j.Md)?0:100<re?255:255*re/100)){for(se=xe=0;4>se;++se)12>(Pe=z.pb[se]).lc&&(Pe.ia=re*Pk[0>Pe.lc?0:Pe.lc]>>3),xe|=Pe.ia;xe&&(alert("todo:VP8InitRandom"),z.ia=1)}z.Ga=j.Id,100<z.Ga?z.Ga=100:0>z.Ga&&(z.Ga=0)}S1(v,F)||(b=v.a)}}else b=v.a}b==0&&X.Oa!=null&&X.Oa.fd&&(b=Dc(X.ba))}X=b}K=X!=0?null:11>K?te.f.RGBA.eb:te.f.kb.y}else K=null;return K};var _w=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(k,L){for(var D="",C=0;C<4;C++)D+=String.fromCharCode(k[L++]);return D}function c(k,L){return(k[L+0]<<0|k[L+1]<<8|k[L+2]<<16)>>>0}function f(k,L){return(k[L+0]<<0|k[L+1]<<8|k[L+2]<<16|k[L+3]<<24)>>>0}new l;var d=[0],h=[0],g=[],p=new l,m=e,y=(function(k,L){var D={},C=0,P=!1,M=0,q=0;if(D.frames=[],!(function(I,R,B,G){for(var ce=0;ce<G;ce++)if(I[R+ce]!=B.charCodeAt(ce))return!0;return!1})(k,L,"RIFF",4)){var J,U;for(f(k,L+=4),L+=8;L<k.length;){var H=u(k,L),ee=f(k,L+=4);L+=4;var Z=ee+(1&ee);switch(H){case"VP8 ":case"VP8L":D.frames[C]===void 0&&(D.frames[C]={}),(N=D.frames[C]).src_off=P?q:L-8,N.src_size=M+ee+8,C++,P&&(P=!1,M=0,q=0);break;case"VP8X":(N=D.header={}).feature_flags=k[L];var Q=L+4;N.canvas_width=1+c(k,Q),Q+=3,N.canvas_height=1+c(k,Q),Q+=3;break;case"ALPH":P=!0,M=Z+8,q=L-8;break;case"ANIM":(N=D.header).bgcolor=f(k,L),Q=L+4,N.loop_count=(J=k)[(U=Q)+0]<<0|J[U+1]<<8,Q+=2;break;case"ANMF":var le,N;(N=D.frames[C]={}).offset_x=2*c(k,L),L+=3,N.offset_y=2*c(k,L),L+=3,N.width=1+c(k,L),L+=3,N.height=1+c(k,L),L+=3,N.duration=c(k,L),L+=3,le=k[L++],N.dispose=1&le,N.blend=le>>1&1}H!="ANMF"&&(L+=Z)}return D}})(m,0);y.response=m,y.rgbaoutput=!0,y.dataurl=!1;var x=y.header?y.header:null,w=y.frames?y.frames:null;if(x){x.loop_counter=x.loop_count,d=[x.canvas_height],h=[x.canvas_width];for(var A=0;A<w.length&&w[A].blend!=0;A++);}var _=w[0],E=p.WebPDecodeRGBA(m,_.src_off,_.src_size,h,d);_.rgba=E,_.imgwidth=h[0],_.imgheight=d[0];for(var T=0;T<h[0]*d[0]*4;T++)g[T]=E[T];return this.width=h,this.height=d,this.data=g,this}(function(e){var t=function(){return typeof D2=="function"},r=function(d,h,g,p){var m=4,y=o;switch(p){case e.image_compression.FAST:m=1,y=a;break;case e.image_compression.MEDIUM:m=6,y=s;break;case e.image_compression.SLOW:m=9,y=l}d=n(d,h,g,y);var x=D2(d,{level:m});return e.__addimage__.arrayBufferToBinaryString(x)},n=function(d,h,g,p){for(var m,y,x,w=d.length/h,A=new Uint8Array(d.length+w),_=c(),E=0;E<w;E+=1){if(x=E*h,m=d.subarray(x,x+h),p)A.set(p(m,g,y),x+E);else{for(var T,k=_.length,L=[];T<k;T+=1)L[T]=_[T](m,g,y);var D=f(L.concat());A.set(L[D],x+E)}y=m}return A},i=function(d){var h=Array.apply([],d);return h.unshift(0),h},a=function(d,h){var g,p=[],m=d.length;p[0]=1;for(var y=0;y<m;y+=1)g=d[y-h]||0,p[y+1]=d[y]-g+256&255;return p},o=function(d,h,g){var p,m=[],y=d.length;m[0]=2;for(var x=0;x<y;x+=1)p=g&&g[x]||0,m[x+1]=d[x]-p+256&255;return m},s=function(d,h,g){var p,m,y=[],x=d.length;y[0]=3;for(var w=0;w<x;w+=1)p=d[w-h]||0,m=g&&g[w]||0,y[w+1]=d[w]+256-(p+m>>>1)&255;return y},l=function(d,h,g){var p,m,y,x,w=[],A=d.length;w[0]=4;for(var _=0;_<A;_+=1)p=d[_-h]||0,m=g&&g[_]||0,y=g&&g[_-h]||0,x=u(p,m,y),w[_+1]=d[_]-x+256&255;return w},u=function(d,h,g){if(d===h&&h===g)return d;var p=Math.abs(h-g),m=Math.abs(d-g),y=Math.abs(d+h-g-g);return p<=m&&p<=y?d:m<=y?h:g},c=function(){return[i,a,o,s,l]},f=function(d){var h=d.map((function(g){return g.reduce((function(p,m){return p+Math.abs(m)}),0)}));return h.indexOf(Math.min.apply(null,h))};e.processPNG=function(d,h,g,p){var m,y,x,w,A,_,E,T,k,L,D,C,P,M,q,J=this.decode.FLATE_DECODE,U="";if(this.__addimage__.isArrayBuffer(d)&&(d=new Uint8Array(d)),this.__addimage__.isArrayBufferView(d)){if(d=(x=new rI(d)).imgData,y=x.bits,m=x.colorSpace,A=x.colors,[4,6].indexOf(x.colorType)!==-1){if(x.bits===8){k=(T=x.pixelBitlength==32?new Uint32Array(x.decodePixels().buffer):x.pixelBitlength==16?new Uint16Array(x.decodePixels().buffer):new Uint8Array(x.decodePixels().buffer)).length,D=new Uint8Array(k*x.colors),L=new Uint8Array(k);var H,ee=x.pixelBitlength-x.bits;for(M=0,q=0;M<k;M++){for(P=T[M],H=0;H<ee;)D[q++]=P>>>H&255,H+=x.bits;L[M]=P>>>H&255}}if(x.bits===16){k=(T=new Uint32Array(x.decodePixels().buffer)).length,D=new Uint8Array(k*(32/x.pixelBitlength)*x.colors),L=new Uint8Array(k*(32/x.pixelBitlength)),C=x.colors>1,M=0,q=0;for(var Z=0;M<k;)P=T[M++],D[q++]=P>>>0&255,C&&(D[q++]=P>>>16&255,P=T[M++],D[q++]=P>>>0&255),L[Z++]=P>>>16&255;y=8}p!==e.image_compression.NONE&&t()?(d=r(D,x.width*x.colors,x.colors,p),E=r(L,x.width,1,p)):(d=D,E=L,J=void 0)}if(x.colorType===3&&(m=this.color_spaces.INDEXED,_=x.palette,x.transparency.indexed)){var Q=x.transparency.indexed,le=0;for(M=0,k=Q.length;M<k;++M)le+=Q[M];if((le/=255)===k-1&&Q.indexOf(0)!==-1)w=[Q.indexOf(0)];else if(le!==k){for(T=x.decodePixels(),L=new Uint8Array(T.length),M=0,k=T.length;M<k;M++)L[M]=Q[T[M]];E=r(L,x.width,1)}}var N=(function(I){var R;switch(I){case e.image_compression.FAST:R=11;break;case e.image_compression.MEDIUM:R=13;break;case e.image_compression.SLOW:R=14;break;default:R=12}return R})(p);return J===this.decode.FLATE_DECODE&&(U="/Predictor "+N+" "),U+="/Colors "+A+" /BitsPerComponent "+y+" /Columns "+x.width,(this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),(E&&this.__addimage__.isArrayBuffer(E)||this.__addimage__.isArrayBufferView(E))&&(E=this.__addimage__.arrayBufferToBinaryString(E)),{alias:g,data:d,index:h,filter:J,decodeParameters:U,transparency:w,palette:_,sMask:E,predictor:N,width:x.width,height:x.height,bitsPerComponent:y,colorSpace:m}}}})(mt.API),(function(e){e.processGIF89A=function(t,r,n,i){var a=new nI(t),o=a.width,s=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var u={data:l,width:o,height:s},c=new vv(100).encode(u,100);return e.processJPEG.call(this,c,r,n,i)},e.processGIF87A=e.processGIF89A})(mt.API),ga.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),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:n,blue:r,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ga.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){Sr.log("bit decode error:"+r)}},ga.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,i=0;i<t;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[a>>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)}},ga.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,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+2*i*4,s=a>>4,l=15&a,u=this.palette[s];if(this.data[o]=u.blue,this.data[o+1]=u.green,this.data[o+2]=u.red,this.data[o+3]=255,2*i+1>=this.width)break;u=this.palette[l],this.data[o+4]=u.blue,this.data[o+4+1]=u.green,this.data[o+4+2]=u.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},ga.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 i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+4*n;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}e!==0&&(this.pos+=4-e)}},ga.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,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&t)/t*255|0,s=(a>>5&t)/t*255|0,l=(a>>10&t)/t*255|0,u=a>>15?255:0,c=n*this.width*4+4*i;this.data[c]=l,this.data[c+1]=s,this.data[c+2]=o,this.data[c+3]=u}this.pos+=e}},ga.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 i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){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,u=(o>>11)/t*255|0,c=i*this.width*4+4*a;this.data[c]=u,this.data[c+1]=l,this.data[c+2]=s,this.data[c+3]=255}this.pos+=e}},ga.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),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*r;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=n,this.data[o+3]=255}this.pos+=this.width%4}},ga.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),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*r;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=o}},ga.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,r,n,i){var a=new ga(t,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},u=new vv(100).encode(l,100);return e.processJPEG.call(this,u,r,n,i)}})(mt.API),a_.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,r,n,i){var a=new a_(t),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},u=new vv(100).encode(l,100);return e.processJPEG.call(this,u,r,n,i)}})(mt.API),mt.API.processRGBA=function(e,t,r){for(var n=e.data,i=n.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,l=0,u=0;u<i;u+=4){var c=n[u],f=n[u+1],d=n[u+2],h=n[u+3];a[s++]=c,a[s++]=f,a[s++]=d,o[l++]=h}var g=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:g,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},mt.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},Ql=mt.API,B0=Ql.getCharWidthsArray=function(e,t){var r,n,i=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,l=s.fof?s.fof:1,u=t.kerning?t.kerning:i.metadata.Unicode.kerning,c=u.fof?u.fof:1,f=t.doKerning!==!1,d=0,h=e.length,g=0,p=s[0]||l,m=[];for(r=0;r<h;r++)n=e.charCodeAt(r),typeof i.metadata.widthOfString=="function"?m.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+o*(1e3/a)||0)/1e3):(d=f&&sr(u[n])==="object"&&!isNaN(parseInt(u[n][g],10))?u[n][g]/c:0,m.push((s[n]||p)/l+d)),g=n;return m},t_=Ql.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return Ql.processArabic&&(e=Ql.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,r,i)/r:B0.apply(this,arguments).reduce((function(a,o){return a+o}),0)},r_=function(e,t,r,n){for(var i=[],a=0,o=e.length,s=0;a!==o&&s+t[a]<r;)s+=t[a],a++;i.push(e.slice(0,a));var l=a;for(s=0;a!==o;)s+t[a]>n&&(i.push(e.slice(l,a)),s=0,l=a),s+=t[a],a++;return l!==a&&i.push(e.slice(l,a)),i},n_=function(e,t,r){r||(r={});var n,i,a,o,s,l,u,c=[],f=[c],d=r.textIndent||0,h=0,g=0,p=e.split(" "),m=B0.apply(this,[" ",r])[0];if(l=r.lineIndent===-1?p[0].length+2:r.lineIndent||0){var y=Array(l).join(" "),x=[];p.map((function(A){(A=A.split(/\s*\n/)).length>1?x=x.concat(A.map((function(_,E){return(E&&_.length?`
|
|
214
|
-
`:"")+_}))):x.push(A[0])})),p=x,l=t_.apply(this,[y,r])}for(a=0,o=p.length;a<o;a++){var w=0;if(n=p[a],l&&n[0]==`
|
|
215
|
-
`&&(n=n.substr(1),w=1),d+h+(g=(i=B0.apply(this,[n,r])).reduce((function(A,_){return A+_}),0))>t||w){if(g>t){for(s=r_.apply(this,[n,i,t-(d+h),t]),c.push(s.shift()),c=[s.pop()];s.length;)f.push([s.shift()]);g=i.slice(n.length-(c[0]?c[0].length:0)).reduce((function(A,_){return A+_}),0)}else c=[n];f.push(c),d=g+l,h=m}else c.push(n),d+=h+g,h=m}return u=l?function(A,_){return(_?y:"")+A.join(" ")}:function(A){return A.join(" ")},f.map(u)},Ql.splitTextToSize=function(e,t,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),a=(function(c){if(c.widths&&c.kerning)return{widths:c.widths,kerning:c.kerning};var f=this.internal.getFont(c.fontName,c.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/i;a.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=r.lineIndent;var s,l,u=[];for(s=0,l=n.length;s<l;s++)u=u.concat(n_.apply(this,[n[s],o,a]));return u},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",r={},n={},i=0;i<t.length;i++)r[t[i]]="0123456789abcdef"[i],n["0123456789abcdef"[i]]=t[i];var a=function(f){return"0x"+parseInt(f,10).toString(16)},o=e.__fontmetrics__.compress=function(f){var d,h,g,p,m=["{"];for(var y in f){if(d=f[y],isNaN(parseInt(y,10))?h="'"+y+"'":(y=parseInt(y,10),h=(h=a(y).slice(2)).slice(0,-1)+n[h.slice(-1)]),typeof d=="number")d<0?(g=a(d).slice(3),p="-"):(g=a(d).slice(2),p=""),g=p+g.slice(0,-1)+n[g.slice(-1)];else{if(sr(d)!=="object")throw new Error("Don't know what to do with value type "+sr(d)+".");g=o(d)}m.push(h+g)}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,g,p,m={},y=1,x=m,w=[],A="",_="",E=f.length-1,T=1;T<E;T+=1)(p=f[T])=="'"?d?(g=d.join(""),d=void 0):d=[]:d?d.push(p):p=="{"?(w.push([x,g]),x={},g=void 0):p=="}"?((h=w.pop())[0][h[1]]=x,g=void 0,x=h[0]):p=="-"?y=-1:g===void 0?r.hasOwnProperty(p)?(A+=r[p],g=parseInt(A,16)*y,y=1,A=""):A+=p:r.hasOwnProperty(p)?(_+=r[p],x[g]=parseInt(_,16)*y,y=1,g=void 0,_=""):_+=p;return m},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={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}},c={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=c.Unicode[d.postScriptName];h&&(d.metadata.Unicode={},d.metadata.Unicode.widths=h.widths,d.metadata.Unicode.kerning=h.kerning);var g=u.Unicode[d.postScriptName];g&&(d.metadata.Unicode.encoding=g,d.encoding=g.codePages[0])}])})(mt.API),(function(e){var t=function(r){for(var n=r.length,i=new Uint8Array(n),a=0;a<n;a++)i[a]=r.charCodeAt(a);return i};e.API.events.push(["addFont",function(r){var n=void 0,i=r.font,a=r.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(n=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(gf(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,n)}}])})(mt),(function(e){function t(){return(St.canvg?Promise.resolve(St.canvg):Promise.resolve().then(()=>require("./index.es-DR88qySW.js"))).catch((function(r){return Promise.reject(new Error("Could not load canvg: "+r))})).then((function(r){return r.default?r.default:r}))}mt.API.addSvgAsImage=function(r,n,i,a,o,s,l,u){if(isNaN(n)||isNaN(i))throw Sr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(a)||isNaN(o))throw Sr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=a,c.height=o;var f=c.getContext("2d");f.fillStyle="#fff",f.fillRect(0,0,c.width,c.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return t().then((function(g){return g.fromString(f,r,d)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(g){return g.render(d)})).then((function(){h.addImage(c.toDataURL("image/jpeg",1),n,i,a,o,l,u)}))}})(),mt.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 i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(t,r);return this},mt.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,i,a,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=[],u=0,c=0,f=0;function d(g,p){var m,y=!1;for(m=0;m<g.length;m+=1)g[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(sr(e)==="object"){for(i in e)if(a=e[i],d(s,i)&&a!==void 0){if(r[i].type==="boolean"&&typeof a=="boolean")r[i].value=a;else if(r[i].type==="name"&&d(r[i].valueSet,a))r[i].value=a;else if(r[i].type==="integer"&&Number.isInteger(a))r[i].value=a;else if(r[i].type==="array"){for(u=0;u<a.length;u+=1)if(n=!0,a[u].length===1&&typeof a[u][0]=="number")l.push(String(a[u]-1));else if(a[u].length>1){for(c=0;c<a[u].length;c+=1)typeof a[u][c]!="number"&&(n=!1);n===!0&&l.push([a[u][0]-1,a[u][1]-1].join(" "))}r[i].value="["+l.join(" ")+"]"}else r[i].value=r[i].defaultValue;r[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){var g,p=[];for(g in r)r[g].explicitSet===!0&&(r[g].type==="name"?p.push("/"+g+" /"+r[g].value):p.push("/"+g+" "+r[g].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>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),a=unescape(encodeURIComponent(n)),o=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),u=a.length+o.length+s.length+i.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+u+" >>"),this.internal.write("stream"),this.internal.write(i+a+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,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",t)),this}})(mt.API),(function(e){var t=e.API,r=t.pdfEscape16=function(a,o){for(var s,l=o.metadata.Unicode.widths,u=["","0","00","000","0000"],c=[""],f=0,d=a.length;f<d;++f){if(s=o.metadata.characterToGlyph(a.charCodeAt(f)),o.metadata.glyIdsUsed.push(s),o.metadata.toUnicode[s]=a.charCodeAt(f),l.indexOf(s)==-1&&(l.push(s),l.push([parseInt(o.metadata.widthOfGlyph(s),10)])),s=="0")return c.join("");s=s.toString(16),c.push(u[4-s.length],s)}return c.join("")},n=function(a){var o,s,l,u,c,f,d;for(c=`/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(a).sort((function(h,g){return h-g}))).length;f<d;f++)o=s[f],l.length>=100&&(c+=`
|
|
232
|
-
`+l.length+` beginbfchar
|
|
233
|
-
`+l.join(`
|
|
234
|
-
`)+`
|
|
235
|
-
endbfchar`,l=[]),a[o]!==void 0&&a[o]!==null&&typeof a[o].toString=="function"&&(u=("0000"+a[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+u+">"));return l.length&&(c+=`
|
|
236
|
-
`+l.length+` beginbfchar
|
|
237
|
-
`+l.join(`
|
|
238
|
-
`)+`
|
|
239
|
-
endbfchar
|
|
240
|
-
`),c+=`endcmap
|
|
241
|
-
CMapName currentdict /CMap defineresource pop
|
|
242
|
-
end
|
|
243
|
-
end`};t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,u=o.newObject,c=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="",g=0;g<d.length;g++)h+=String.fromCharCode(d[g]);var p=u();c({data:h,addLength1:!0,objectId:p}),l("endobj");var m=u();c({data:n(s.metadata.toUnicode),addLength1:!0,objectId:m}),l("endobj");var y=u();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+uu(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 x=u();l("<<"),l("/Type /Font"),l("/BaseFont /"+uu(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=u(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+m+" 0 R"),l("/BaseFont /"+uu(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+x+" 0 R]"),l(">>"),l("endobj"),s.isAlreadyPutted=!0}})(a)}]),t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,u=o.newObject,c=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 g=u();c({data:d,addLength1:!0,objectId:g}),l("endobj");var p=u();c({data:n(s.metadata.toUnicode),addLength1:!0,objectId:p}),l("endobj");var m=u();l("<<"),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l("/StemV "+s.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+g+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/FontName /"+uu(s.fontName)),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l(">>"),l("endobj"),s.objectNumber=u();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/"+uu(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}})(a)}]);var i=function(a){var o,s=a.text||"",l=a.x,u=a.y,c=a.options||{},f=a.mutex||{},d=f.pdfEscape,h=f.activeFontKey,g=f.fonts,p=h,m="",y=0,x="",w=g[p].encoding;if(g[p].encoding!=="Identity-H")return{text:s,x:l,y:u,options:c,mutex:f};for(x=s,p=h,Array.isArray(s)&&(x=s[0]),y=0;y<x.length;y+=1)g[p].metadata.hasOwnProperty("cmap")&&(o=g[p].metadata.cmap.unicode.codeMap[x[y].charCodeAt(0)]),o||x[y].charCodeAt(0)<256&&g[p].metadata.hasOwnProperty("Unicode")?m+=x[y]:m+="";var A="";return parseInt(p.slice(1))<14||w==="WinAnsiEncoding"?A=d(m,p).split("").map((function(_){return _.charCodeAt(0).toString(16)})).join(""):w==="Identity-H"&&(A=r(m,g[p])),f.isHex=!0,{text:A,x:l,y:u,options:c,mutex:f}};t.events.push(["postProcessText",function(a){var o=a.text||"",s=[],l={text:o,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(o)){var u=0;for(u=0;u<o.length;u+=1)Array.isArray(o[u])&&o[u].length===3?s.push([i(Object.assign({},l,{text:o[u][0]})).text,o[u][1],o[u][2]]):s.push(i(Object.assign({},l,{text:o[u]})).text);a.text=s}else a.text=i(Object.assign({},l,{text:o})).text}])})(mt),(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}})(mt.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var i,a,o,s,l,u,c,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]],g={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)$/),x=!1,w=0;this.__bidiEngine__={};var A=function(C){var P=C.charCodeAt(),M=P>>8,q=p[M];return q!==void 0?f[256*q+(255&P)]:M===252||M===253?"AL":y.test(M)?"L":M===8?"R":"N"},_=function(C){for(var P,M=0;M<C.length;M++){if((P=A(C.charAt(M)))==="L")return!1;if(P==="R")return!0}return!1},E=function(C,P,M,q){var J,U,H,ee,Z=P[q];switch(Z){case"L":case"R":x=!1;break;case"N":case"AN":break;case"EN":x&&(Z="AN");break;case"AL":x=!0,Z="R";break;case"WS":Z="N";break;case"CS":q<1||q+1>=P.length||(J=M[q-1])!=="EN"&&J!=="AN"||(U=P[q+1])!=="EN"&&U!=="AN"?Z="N":x&&(U="AN"),Z=U===J?U:"N";break;case"ES":Z=(J=q>0?M[q-1]:"B")==="EN"&&q+1<P.length&&P[q+1]==="EN"?"EN":"N";break;case"ET":if(q>0&&M[q-1]==="EN"){Z="EN";break}if(x){Z="N";break}for(H=q+1,ee=P.length;H<ee&&P[H]==="ET";)H++;Z=H<ee&&P[H]==="EN"?"EN":"N";break;case"NSM":if(o&&!s){for(ee=P.length,H=q+1;H<ee&&P[H]==="NSM";)H++;if(H<ee){var Q=C[q],le=Q>=1425&&Q<=2303||Q===64286;if(J=P[H],le&&(J==="R"||J==="AL")){Z="R";break}}}Z=q<1||(J=P[q-1])==="B"?"N":M[q-1];break;case"B":x=!1,i=!0,Z=w;break;case"S":a=!0,Z="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":x=!1;break;case"BN":Z="N"}return Z},T=function(C,P,M){var q=C.split("");return M&&k(q,M,{hiLevel:w}),q.reverse(),P&&P.reverse(),q.join("")},k=function(C,P,M){var q,J,U,H,ee,Z=-1,Q=C.length,le=0,N=[],I=w?h:d,R=[];for(x=!1,i=!1,a=!1,J=0;J<Q;J++)R[J]=A(C[J]);for(U=0;U<Q;U++){if(ee=le,N[U]=E(C,R,N,U),q=240&(le=I[ee][g[N[U]]]),le&=15,P[U]=H=I[le][5],q>0)if(q===16){for(J=Z;J<U;J++)P[J]=1;Z=-1}else Z=-1;if(I[le][6])Z===-1&&(Z=U);else if(Z>-1){for(J=Z;J<U;J++)P[J]=H;Z=-1}R[U]==="B"&&(P[U]=0),M.hiLevel|=H}a&&(function(B,G,ce){for(var he=0;he<ce;he++)if(B[he]==="S"){G[he]=w;for(var ne=he-1;ne>=0&&B[ne]==="WS";ne--)G[ne]=w}})(R,P,Q)},L=function(C,P,M,q,J){if(!(J.hiLevel<C)){if(C===1&&w===1&&!i)return P.reverse(),void(M&&M.reverse());for(var U,H,ee,Z,Q=P.length,le=0;le<Q;){if(q[le]>=C){for(ee=le+1;ee<Q&&q[ee]>=C;)ee++;for(Z=le,H=ee-1;Z<H;Z++,H--)U=P[Z],P[Z]=P[H],P[H]=U,M&&(U=M[Z],M[Z]=M[H],M[H]=U);le=ee}le++}}},D=function(C,P,M){var q=C.split(""),J={hiLevel:w};return M||(M=[]),k(q,M,J),(function(U,H,ee){if(ee.hiLevel!==0&&c)for(var Z,Q=0;Q<U.length;Q++)H[Q]===1&&(Z=m.indexOf(U[Q]))>=0&&(U[Q]=m[Z+1])})(q,M,J),L(2,q,P,M,J),L(1,q,P,M,J),q.join("")};return this.__bidiEngine__.doBidiReorder=function(C,P,M){if((function(J,U){if(U)for(var H=0;H<J.length;H++)U[H]=H;s===void 0&&(s=_(J)),u===void 0&&(u=_(J))})(C,P),o||!l||u)if(o&&l&&s^u)w=s?1:0,C=T(C,P,M);else if(!o&&l&&u)w=s?1:0,C=D(C,P,M),C=T(C,P);else if(!o||s||l||u){if(o&&!l&&s^u)C=T(C,P),s?(w=0,C=D(C,P,M)):(w=1,C=D(C,P,M),C=T(C,P));else if(o&&s&&!l&&u)w=1,C=D(C,P,M),C=T(C,P);else if(!o&&!l&&s^u){var q=c;s?(w=1,C=D(C,P,M),w=0,c=!1,C=D(C,P,M),c=q):(w=0,C=D(C,P,M),C=T(C,P),w=1,c=!1,C=D(C,P,M),c=q,C=T(C,P))}}else w=0,C=D(C,P,M);else w=s?1:0,C=D(C,P,M);return C},this.__bidiEngine__.setOptions=function(C){C&&(o=C.isInputVisual,l=C.isOutputVisual,s=C.isInputRtl,u=C.isOutputRtl,c=C.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 i=n.text,a=(n.x,n.y,n.options||{}),o=(n.mutex,a.lang,[]);if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,r.setOptions(a),Object.prototype.toString.call(i)==="[object Array]"){var s=0;for(o=[],s=0;s<i.length;s+=1)Object.prototype.toString.call(i[s])==="[object Array]"?o.push([r.doBidiReorder(i[s][0]),i[s][1],i[s][2]]):o.push([r.doBidiReorder(i[s])]);n.text=o}else n.text=r.doBidiReorder(i);r.setOptions({isInputVisual:!0})}])})(mt),mt.API.TTFFont=(function(){function e(t){var r;if(this.rawData=t,r=this.contents=new bs(t),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new yI(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new iI(this.contents),this.head=new oI(this),this.name=new fI(this),this.cmap=new qP(this),this.toUnicode={},this.hhea=new sI(this),this.maxp=new hI(this),this.hmtx=new dI(this),this.post=new uI(this),this.os2=new lI(this),this.loca=new gI(this),this.glyf=new pI(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,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,s,l,u;for(u=[],o=0,s=(l=this.bbox).length;o<s;o++)t=l[o],u.push(Math.round(t*this.scaleFactor));return u}).call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),(32768&(r=i>>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=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===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 i,a,o,s;for(o=0,a=0,s=(t=""+t).length;0<=s?a<s:a>s;a=0<=s?++a:--a)i=t.charCodeAt(a),o+=this.widthOfGlyph(this.characterToGlyph(i))+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 ka,bs=(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,i;for(i=[],r=0,n=t.length;0<=n?r<n:r>n;r=0<=n?++r:--r)i.push(this.writeByte(t.charCodeAt(r)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,r,n,i,a,o,s,l;return t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=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^i)+16777216*(255^a)+65536*(255^o)+256*(255^s)+(255^l)+1):72057594037927940*t+281474976710656*r+1099511627776*n+4294967296*i+16777216*a+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,i,a;for(a=[],n=0,i=t.length;n<i;n++)r=t[n],a.push(this.writeByte(r));return a},e})(),iI=(function(){var e;function t(r){var n,i,a;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},i=0,a=this.tableCount;0<=a?i<a:i>a;i=0<=a?++i:--i)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,i,a,o,s,l,u,c,f,d,h,g,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),c=16*h-f,(i=new bs).writeInt(this.scalarType),i.writeShort(h),i.writeShort(f),i.writeShort(o),i.writeShort(c),a=16*h,u=i.pos+a,s=null,g=[],r)for(d=r[p],i.writeString(p),i.writeInt(e(d)),i.writeInt(u),i.writeInt(d.length),g=g.concat(d),p==="head"&&(s=u),u+=d.length;u%4;)g.push(0),u++;return i.write(g),n=2981146554-e(i.data),i.pos=s+8,i.writeUInt32(n),i.data},e=function(r){var n,i,a,o;for(r=UP.call(r);r.length%4;)r.push(0);for(a=new bs(r),i=0,n=0,o=r.length;n<o;n=n+=4)i+=a.readUInt32();return 4294967295&i},t})(),aI={}.hasOwnProperty,Qa=function(e,t){for(var r in t)aI.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};ka=(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 oI=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Qa(t,ka),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 bs).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})(),o_=(function(){function e(t,r){var n,i,a,o,s,l,u,c,f,d,h,g,p,m,y,x,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,a=(function(){var A,_;for(_=[],l=A=0;0<=d?A<d:A>d;l=0<=d?++A:--A)_.push(t.readUInt16());return _})(),t.pos+=2,p=(function(){var A,_;for(_=[],l=A=0;0<=d?A<d:A>d;l=0<=d?++A:--A)_.push(t.readUInt16());return _})(),u=(function(){var A,_;for(_=[],l=A=0;0<=d?A<d:A>d;l=0<=d?++A:--A)_.push(t.readUInt16());return _})(),c=(function(){var A,_;for(_=[],l=A=0;0<=d?A<d:A>d;l=0<=d?++A:--A)_.push(t.readUInt16());return _})(),i=(this.length-t.pos+this.offset)/2,s=(function(){var A,_;for(_=[],l=A=0;0<=i?A<i:A>i;l=0<=i?++A:--A)_.push(t.readUInt16());return _})(),l=y=0,w=a.length;y<w;l=++y)for(m=a[l],n=x=g=p[l];g<=m?x<=m:x>=m;n=g<=m?++x:--x)c[l]===0?o=n+u[l]:(o=s[c[l]/2+(n-g)-(d-l)]||0)!==0&&(o+=u[l]),this.codeMap[n]=65535&o}t.pos=f}return e.encode=function(t,r){var n,i,a,o,s,l,u,c,f,d,h,g,p,m,y,x,w,A,_,E,T,k,L,D,C,P,M,q,J,U,H,ee,Z,Q,le,N,I,R,B,G,ce,he,ne,me,Se,ue;switch(q=new bs,o=Object.keys(t).sort((function(Ie,ge){return Ie-ge})),r){case"macroman":for(p=0,m=(function(){var Ie=[];for(g=0;g<256;++g)Ie.push(0);return Ie})(),x={0:0},a={},J=0,Z=o.length;J<Z;J++)x[ne=t[i=o[J]]]==null&&(x[ne]=++p),a[i]={old:t[i],new:x[t[i]]},m[i]=x[t[i]];return q.writeUInt16(1),q.writeUInt16(0),q.writeUInt32(12),q.writeUInt16(0),q.writeUInt16(262),q.writeUInt16(0),q.write(m),{charMap:a,subtable:q.data,maxGlyphID:p+1};case"unicode":for(P=[],f=[],w=0,x={},n={},y=u=null,U=0,Q=o.length;U<Q;U++)x[_=t[i=o[U]]]==null&&(x[_]=++w),n[i]={old:_,new:x[_]},s=x[_]-i,y!=null&&s===u||(y&&f.push(y),P.push(i),u=s),y=i;for(y&&f.push(y),f.push(65535),P.push(65535),D=2*(L=P.length),k=2*Math.pow(Math.log(L)/Math.LN2,2),d=Math.log(k/2)/Math.LN2,T=2*L-k,l=[],E=[],h=[],g=H=0,le=P.length;H<le;g=++H){if(C=P[g],c=f[g],C===65535){l.push(0),E.push(0);break}if(C-(M=n[C].new)>=32768)for(l.push(0),E.push(2*(h.length+L-g)),i=ee=C;C<=c?ee<=c:ee>=c;i=C<=c?++ee:--ee)h.push(n[i].new);else l.push(M-C),E.push(0)}for(q.writeUInt16(3),q.writeUInt16(1),q.writeUInt32(12),q.writeUInt16(4),q.writeUInt16(16+8*L+2*h.length),q.writeUInt16(0),q.writeUInt16(D),q.writeUInt16(k),q.writeUInt16(d),q.writeUInt16(T),ce=0,N=f.length;ce<N;ce++)i=f[ce],q.writeUInt16(i);for(q.writeUInt16(0),he=0,I=P.length;he<I;he++)i=P[he],q.writeUInt16(i);for(me=0,R=l.length;me<R;me++)s=l[me],q.writeUInt16(s);for(Se=0,B=E.length;Se<B;Se++)A=E[Se],q.writeUInt16(A);for(ue=0,G=h.length;ue<G;ue++)p=h[ue],q.writeUInt16(p);return{charMap:n,subtable:q.data,maxGlyphID:w+1}}},e})(),qP=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Qa(t,ka),t.prototype.tag="cmap",t.prototype.parse=function(r){var n,i,a;for(r.pos=this.offset,this.version=r.readUInt16(),a=r.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=a?i<a:i>a;i=0<=a?++i:--i)n=new o_(r,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},t.encode=function(r,n){var i,a;return n==null&&(n="macroman"),i=o_.encode(r,n),(a=new bs).writeUInt16(0),a.writeUInt16(1),i.table=a.data.concat(i.subtable),i},t})(),sI=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Qa(t,ka),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})(),lI=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Qa(t,ka),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,i;for(i=[],n=0;n<10;++n)i.push(r.readByte());return i})(),this.charRange=(function(){var n,i;for(i=[],n=0;n<4;++n)i.push(r.readInt());return i})(),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,i;for(i=[],n=0;n<2;n=++n)i.push(r.readInt());return i})(),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})(),uI=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Qa(t,ka),t.prototype.tag="post",t.prototype.parse=function(r){var n,i,a;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(i=r.readUInt16(),this.glyphNameIndex=[],o=0;0<=i?o<i:o>i;o=0<=i?++o:--o)this.glyphNameIndex.push(r.readUInt16());for(this.names=[],a=[];r.pos<this.offset+this.length;)n=r.readByte(),a.push(this.names.push(r.readString(n)));return a;case 151552:return i=r.readUInt16(),this.offsets=r.read(i);case 196608:break;case 262144:return this.map=(function(){var s,l,u;for(u=[],o=s=0,l=this.file.maxp.numGlyphs;0<=l?s<l:s>l;o=0<=l?++s:--s)u.push(r.readUInt32());return u}).call(this)}},t})(),cI=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},fI=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Qa(t,ka),t.prototype.tag="name",t.prototype.parse=function(r){var n,i,a,o,s,l,u,c,f,d,h;for(r.pos=this.offset,r.readShort(),n=r.readShort(),l=r.readShort(),i=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)i.push({platformID:r.readShort(),encodingID:r.readShort(),languageID:r.readShort(),nameID:r.readShort(),length:r.readShort(),offset:this.offset+l+r.readShort()});for(u={},o=f=0,d=i.length;f<d;o=++f)a=i[o],r.pos=a.offset,c=r.readString(a.length),s=new cI(c,a),u[h=a.nameID]==null&&(u[h]=[]),u[a.nameID].push(s);this.strings=u,this.copyright=u[0],this.fontFamily=u[1],this.fontSubfamily=u[2],this.uniqueSubfamily=u[3],this.fontName=u[4],this.version=u[5];try{this.postscriptName=u[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=u[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=u[7],this.manufacturer=u[8],this.designer=u[9],this.description=u[10],this.vendorUrl=u[11],this.designerUrl=u[12],this.license=u[13],this.licenseUrl=u[14],this.preferredFamily=u[15],this.preferredSubfamily=u[17],this.compatibleFull=u[18],this.sampleText=u[19]},t})(),hI=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Qa(t,ka),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})(),dI=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Qa(t,ka),t.prototype.tag="hmtx",t.prototype.parse=function(r){var n,i,a,o,s,l,u;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(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var c,f;for(f=[],n=c=0;0<=a?c<a:c>a;n=0<=a?++c:--c)f.push(r.readInt16());return f})(),this.widths=(function(){var c,f,d,h;for(h=[],c=0,f=(d=this.metrics).length;c<f;c++)o=d[c],h.push(o.advance);return h}).call(this),i=this.widths[this.widths.length-1],u=[],n=s=0;0<=a?s<a:s>a;n=0<=a?++s:--s)u.push(this.widths.push(i));return u},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})(),UP=[].slice,pI=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Qa(t,ka),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(r){var n,i,a,o,s,l,u,c,f,d;return r in this.cache?this.cache[r]:(o=this.file.loca,n=this.file.contents,i=o.indexOf(r),(a=o.lengthOf(r))===0?this.cache[r]=null:(n.pos=this.offset+i,s=(l=new bs(n.read(a))).readShort(),c=l.readShort(),d=l.readShort(),u=l.readShort(),f=l.readShort(),this.cache[r]=s===-1?new mI(l,c,d,u,f):new vI(l,s,c,d,u,f),this.cache[r]))},t.prototype.encode=function(r,n,i){var a,o,s,l,u;for(s=[],o=[],l=0,u=n.length;l<u;l++)a=r[n[l]],o.push(s.length),a&&(s=s.concat(a.encode(i)));return o.push(s.length),{table:s,offsets:o}},t})(),vI=(function(){function e(t,r,n,i,a,o){this.raw=t,this.numberOfContours=r,this.xMin=n,this.yMin=i,this.xMax=a,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),mI=(function(){function e(t,r,n,i,a){var o,s;for(this.raw=t,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,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 bs(UP.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)r.pos=this.glyphOffsets[t];return r.data},e})(),gI=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Qa(t,ka),t.prototype.tag="loca",t.prototype.parse=function(r){var n,i;return r.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var a,o;for(o=[],i=0,a=this.length;i<a;i+=2)o.push(2*r.readUInt16());return o}).call(this):(function(){var a,o;for(o=[],i=0,a=this.length;i<a;i+=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 i=new Uint32Array(this.offsets.length),a=0,o=0,s=0;s<i.length;++s)if(i[s]=a,o<n.length&&n[o]==s){++o,i[s]=a;var l=this.offsets[s],u=this.offsets[s+1]-l;u>0&&(a+=u)}for(var c=new Array(4*i.length),f=0;f<i.length;++f)c[4*f+3]=255&i[f],c[4*f+2]=(65280&i[f])>>8,c[4*f+1]=(16711680&i[f])>>16,c[4*f]=(4278190080&i[f])>>24;return c},t})(),yI=(function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,r,n,i,a;for(r in i=this.font.cmap.tables[0].codeMap,t={},a=this.subset)n=a[r],t[r]=i[n];return t},e.prototype.glyphsFor=function(t){var r,n,i,a,o,s,l;for(i={},o=0,s=t.length;o<s;o++)i[a=t[o]]=this.font.glyf.glyphFor(a);for(a in r=[],i)(n=i[a])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(a in l=this.glyphsFor(r))n=l[a],i[a]=n;return i},e.prototype.encode=function(t,r){var n,i,a,o,s,l,u,c,f,d,h,g,p,m,y;for(i in n=qP.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),h={0:0},y=n.charMap)h[(l=y[i]).old]=l.new;for(g in d=n.maxGlyphID,o)g in h||(h[g]=d++);return c=(function(x){var w,A;for(w in A={},x)A[x[w]]=w;return A})(h),f=Object.keys(c).sort((function(x,w){return x-w})),p=(function(){var x,w,A;for(A=[],x=0,w=f.length;x<w;x++)s=f[x],A.push(c[s]);return A})(),a=this.font.glyf.encode(o,p,h),u=this.font.loca.encode(a.offsets,p),m={cmap:this.font.cmap.raw(),glyf:a.table,loca:u,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})();mt.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,i,a,o;if(Array.isArray(r))return"["+(function(){var s,l,u;for(u=[],s=0,l=r.length;s<l;s++)n=r[s],u.push(t.convert(n));return u})().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(i in a=["<<"],r)o=r[i],a.push("/"+i+" "+t.convert(o));return a.push(">>"),a.join(`
|
|
244
|
-
`)}return""+r},t})();const xI=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:XL,AcroFormAppearance:ht,AcroFormButton:pn,AcroFormCheckBox:bf,AcroFormChoiceField:nl,AcroFormComboBox:al,AcroFormEditBox:yf,AcroFormListBox:il,AcroFormPasswordField:wf,AcroFormPushButton:xf,AcroFormRadioButton:ol,AcroFormTextField:gs,GState:Mf,ShadingPattern:os,TilingPattern:Vs,default:mt,jsPDF:mt},Symbol.toStringTag,{value:"Module"}));var fu=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 bI(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 i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var hd={exports:{}};const wI=bI(xI);/*!
|
|
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 s_=hd.exports,l_;function _I(){return l_||(l_=1,(function(e,t){(function(n,i){e.exports=i((function(){try{return wI}catch{}})())})(typeof globalThis<"u"?globalThis:typeof s_<"u"?s_:typeof window<"u"?window:typeof self<"u"?self:fu,function(r){return(function(){var n={172:(function(s,l){var u=this&&this.__extends||(function(){var d=function(h,g){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,g)};return function(h,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");d(h,g);function p(){this.constructor=h}h.prototype=g===null?Object.create(g):(p.prototype=g.prototype,new p)}})();Object.defineProperty(l,"__esModule",{value:!0}),l.CellHookData=l.HookData=void 0;var c=(function(){function d(h,g,p){this.table=g,this.pageNumber=g.pageNumber,this.pageCount=this.pageNumber,this.settings=g.settings,this.cursor=p,this.doc=h.getDocument()}return d})();l.HookData=c;var f=(function(d){u(h,d);function h(g,p,m,y,x,w){var A=d.call(this,g,p,w)||this;return A.cell=m,A.row=y,A.column=x,A.section=y.section,A}return h})(c);l.CellHookData=f}),340:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0});var c=u(4),f=u(136),d=u(744),h=u(776),g=u(664),p=u(972);function m(y){y.API.autoTable=function(){for(var x=[],w=0;w<arguments.length;w++)x[w]=arguments[w];var A;x.length===1?A=x[0]:(console.error("Use of deprecated autoTable initiation"),A=x[2]||{},A.columns=x[0],A.body=x[1]);var _=(0,h.parseInput)(this,A),E=(0,p.createTable)(this,_);return(0,g.drawTable)(this,E),this},y.API.lastAutoTable=!1,y.API.previousAutoTable=!1,y.API.autoTable.previous=!1,y.API.autoTableText=function(x,w,A,_){(0,f.default)(x,w,A,_,this)},y.API.autoTableSetDefaults=function(x){return d.DocHandler.setDefaults(x,this),this},y.autoTableSetDefaults=function(x,w){d.DocHandler.setDefaults(x,w)},y.API.autoTableHtmlToJson=function(x,w){var A;if(w===void 0&&(w=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var _=new d.DocHandler(this),E=(0,c.parseHtml)(_,x,window,w,!1),T=E.head,k=E.body,L=((A=T[0])===null||A===void 0?void 0:A.map(function(D){return D.content}))||[];return{columns:L,rows:k,data:k}},y.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var x=this.lastAutoTable;return x&&x.finalY?x.finalY:0},y.API.autoTableAddPageContent=function(x){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=x,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 u(c,f,d,h,g){h=h||{};var p=1.15,m=g.internal.scaleFactor,y=g.internal.getFontSize()/m,x=g.getLineHeightFactor?g.getLineHeightFactor():p,w=y*x,A=/\r\n|\r|\n/g,_="",E=1;if((h.valign==="middle"||h.valign==="bottom"||h.halign==="center"||h.halign==="right")&&(_=typeof c=="string"?c.split(A):c,E=_.length||1),d+=y*(2-p),h.valign==="middle"?d-=E/2*w:h.valign==="bottom"&&(d-=E*w),h.halign==="center"||h.halign==="right"){var T=y;if(h.halign==="center"&&(T*=.5),_&&E>=1){for(var k=0;k<_.length;k++)g.text(_[k],f-g.getStringUnitWidth(_[k])*T,d),d+=w;return g}f-=g.getStringUnitWidth(c)*T}return h.halign==="justify"?g.text(c,f,d,{maxWidth:h.maxWidth||100,align:"justify"}):g.text(c,f,d),g}l.default=u}),420:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.getPageAvailableWidth=l.parseSpacing=l.getFillStyle=l.addTableBorder=l.getStringWidth=void 0;function u(g,p,m){m.applyStyles(p,!0);var y=Array.isArray(g)?g:[g],x=y.map(function(w){return m.getTextWidth(w)}).reduce(function(w,A){return Math.max(w,A)},0);return x}l.getStringWidth=u;function c(g,p,m,y){var x=p.settings.tableLineWidth,w=p.settings.tableLineColor;g.applyStyles({lineWidth:x,lineColor:w});var A=f(x,!1);A&&g.rect(m.x,m.y,p.getWidth(g.pageSize().width),y.y-m.y,A)}l.addTableBorder=c;function f(g,p){var m=g>0,y=p||p===0;return m&&y?"DF":m?"S":y?"F":null}l.getFillStyle=f;function d(g,p){var m,y,x,w;if(g=g||p,Array.isArray(g)){if(g.length>=4)return{top:g[0],right:g[1],bottom:g[2],left:g[3]};if(g.length===3)return{top:g[0],right:g[1],bottom:g[2],left:g[1]};if(g.length===2)return{top:g[0],right:g[1],bottom:g[0],left:g[1]};g.length===1?g=g[0]:g=p}return typeof g=="object"?(typeof g.vertical=="number"&&(g.top=g.vertical,g.bottom=g.vertical),typeof g.horizontal=="number"&&(g.right=g.horizontal,g.left=g.horizontal),{left:(m=g.left)!==null&&m!==void 0?m:p,top:(y=g.top)!==null&&y!==void 0?y:p,right:(x=g.right)!==null&&x!==void 0?x:p,bottom:(w=g.bottom)!==null&&w!==void 0?w:p}):(typeof g!="number"&&(g=p),{top:g,right:g,bottom:g,left:g})}l.parseSpacing=d;function h(g,p){var m=d(p.settings.margin,0);return g.pageSize().width-(m.left+m.right)}l.getPageAvailableWidth=h}),796:(function(s,l){var u=this&&this.__extends||(function(){var h=function(g,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(m[x]=y[x])},h(g,p)};return function(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");h(g,p);function m(){this.constructor=g}g.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 c=(function(h){u(g,h);function g(p){var m=h.call(this)||this;return m._element=p,m}return g})(Array);l.HtmlRowInput=c;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 g={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 g[h]}l.getTheme=d}),903:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.parseCss=void 0;var c=u(420);function f(m,y,x,w,A){var _={},E=1.3333333333333333,T=h(y,function(Z){return A.getComputedStyle(Z).backgroundColor});T!=null&&(_.fillColor=T);var k=h(y,function(Z){return A.getComputedStyle(Z).color});k!=null&&(_.textColor=k);var L=p(w,x);L&&(_.cellPadding=L);var D="borderTopColor",C=E*x,P=w.borderTopWidth;if(w.borderBottomWidth===P&&w.borderRightWidth===P&&w.borderLeftWidth===P){var M=(parseFloat(P)||0)/C;M&&(_.lineWidth=M)}else _.lineWidth={top:(parseFloat(w.borderTopWidth)||0)/C,right:(parseFloat(w.borderRightWidth)||0)/C,bottom:(parseFloat(w.borderBottomWidth)||0)/C,left:(parseFloat(w.borderLeftWidth)||0)/C},_.lineWidth.top||(_.lineWidth.right?D="borderRightColor":_.lineWidth.bottom?D="borderBottomColor":_.lineWidth.left&&(D="borderLeftColor"));var q=h(y,function(Z){return A.getComputedStyle(Z)[D]});q!=null&&(_.lineColor=q);var J=["left","right","center","justify"];J.indexOf(w.textAlign)!==-1&&(_.halign=w.textAlign),J=["middle","bottom","top"],J.indexOf(w.verticalAlign)!==-1&&(_.valign=w.verticalAlign);var U=parseInt(w.fontSize||"");isNaN(U)||(_.fontSize=U/E);var H=d(w);H&&(_.fontStyle=H);var ee=(w.fontFamily||"").toLowerCase();return m.indexOf(ee)!==-1&&(_.font=ee),_}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 x=g(m,y);if(!x)return null;var w=x.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!w||!Array.isArray(w))return null;var A=[parseInt(w[1]),parseInt(w[2]),parseInt(w[3])],_=parseInt(w[4]);return _===0||isNaN(A[0])||isNaN(A[1])||isNaN(A[2])?null:A}function g(m,y){var x=y(m);return x==="rgba(0, 0, 0, 0)"||x==="transparent"||x==="initial"||x==="inherit"?m.parentElement==null?null:g(m.parentElement,y):x}function p(m,y){var x=[m.paddingTop,m.paddingRight,m.paddingBottom,m.paddingLeft],w=96/(72/y),A=(parseInt(m.lineHeight)-parseInt(m.fontSize))/y/2,_=x.map(function(T){return parseInt(T||"0")/w}),E=(0,c.parseSpacing)(_,0);return A>E.top&&(E.top=A),A>E.bottom&&(E.bottom=A),E}}),744:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.DocHandler=void 0;var u={},c=(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:u=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 g,p,m;h===void 0&&(h=!1),d.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(d.fontStyle);var y=this.jsPDFDocument.internal.getFont(),x=y.fontStyle,w=y.fontName;if(d.font&&(w=d.font),d.fontStyle){x=d.fontStyle;var A=this.getFontList()[w];A&&A.indexOf(x)===-1&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(A[0]),x=A[0])}if(this.jsPDFDocument.setFont(w,x),d.fontSize&&this.jsPDFDocument.setFontSize(d.fontSize),!h){var _=f.unifyColor(d.fillColor);_&&(g=this.jsPDFDocument).setFillColor.apply(g,_),_=f.unifyColor(d.textColor),_&&(p=this.jsPDFDocument).setTextColor.apply(p,_),_=f.unifyColor(d.lineColor),_&&(m=this.jsPDFDocument).setDrawColor.apply(m,_),typeof d.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(d.lineWidth)}},f.prototype.splitTextToSize=function(d,h,g){return this.jsPDFDocument.splitTextToSize(d,h,g)},f.prototype.rect=function(d,h,g,p,m){return this.jsPDFDocument.rect(d,h,g,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 u||{}},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=c}),4:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.parseHtml=void 0;var c=u(903),f=u(796);function d(p,m,y,x,w){var A,_;x===void 0&&(x=!1),w===void 0&&(w=!1);var E;typeof m=="string"?E=y.document.querySelector(m):E=m;var T=Object.keys(p.getFontList()),k=p.scaleFactor(),L=[],D=[],C=[];if(!E)return console.error("Html table could not be found with input: ",m),{head:L,body:D,foot:C};for(var P=0;P<E.rows.length;P++){var M=E.rows[P],q=(_=(A=M==null?void 0:M.parentElement)===null||A===void 0?void 0:A.tagName)===null||_===void 0?void 0:_.toLowerCase(),J=h(T,k,y,M,x,w);J&&(q==="thead"?L.push(J):q==="tfoot"?C.push(J):D.push(J))}return{head:L,body:D,foot:C}}l.parseHtml=d;function h(p,m,y,x,w,A){for(var _=new f.HtmlRowInput(x),E=0;E<x.cells.length;E++){var T=x.cells[E],k=y.getComputedStyle(T);if(w||k.display!=="none"){var L=void 0;A&&(L=(0,c.parseCss)(p,T,m,k,y)),_.push({rowSpan:T.rowSpan,colSpan:T.colSpan,styles:L,_element:T,content:g(T)})}}var D=y.getComputedStyle(x);if(_.length>0&&(w||D.display!=="none"))return _}function g(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,u){Object.defineProperty(l,"__esModule",{value:!0}),l.parseInput=void 0;var c=u(4),f=u(356),d=u(420),h=u(744),g=u(792);function p(E,T){var k=new h.DocHandler(E),L=k.getDocumentOptions(),D=k.getGlobalOptions();(0,g.default)(k,D,L,T);var C=(0,f.assign)({},D,L,T),P;typeof window<"u"&&(P=window);var M=m(D,L,T),q=y(D,L,T),J=x(k,C),U=A(k,C,P);return{id:T.tableId,content:U,hooks:q,styles:M,settings:J}}l.parseInput=p;function m(E,T,k){for(var L={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},D=function(q){if(q==="columnStyles"){var J=E[q],U=T[q],H=k[q];L.columnStyles=(0,f.assign)({},J,U,H)}else{var ee=[E,T,k],Z=ee.map(function(Q){return Q[q]||{}});L[q]=(0,f.assign)({},Z[0],Z[1],Z[2])}},C=0,P=Object.keys(L);C<P.length;C++){var M=P[C];D(M)}return L}function y(E,T,k){for(var L=[E,T,k],D={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},C=0,P=L;C<P.length;C++){var M=P[C];M.didParseCell&&D.didParseCell.push(M.didParseCell),M.willDrawCell&&D.willDrawCell.push(M.willDrawCell),M.didDrawCell&&D.didDrawCell.push(M.didDrawCell),M.willDrawPage&&D.willDrawPage.push(M.willDrawPage),M.didDrawPage&&D.didDrawPage.push(M.didDrawPage)}return D}function x(E,T){var k,L,D,C,P,M,q,J,U,H,ee,Z,Q=(0,d.parseSpacing)(T.margin,40/E.scaleFactor()),le=(k=w(E,T.startY))!==null&&k!==void 0?k:Q.top,N;T.showFoot===!0?N="everyPage":T.showFoot===!1?N="never":N=(L=T.showFoot)!==null&&L!==void 0?L:"everyPage";var I;T.showHead===!0?I="everyPage":T.showHead===!1?I="never":I=(D=T.showHead)!==null&&D!==void 0?D:"everyPage";var R=(C=T.useCss)!==null&&C!==void 0?C:!1,B=T.theme||(R?"plain":"striped"),G=!!T.horizontalPageBreak,ce=(P=T.horizontalPageBreakRepeat)!==null&&P!==void 0?P:null;return{includeHiddenHtml:(M=T.includeHiddenHtml)!==null&&M!==void 0?M:!1,useCss:R,theme:B,startY:le,margin:Q,pageBreak:(q=T.pageBreak)!==null&&q!==void 0?q:"auto",rowPageBreak:(J=T.rowPageBreak)!==null&&J!==void 0?J:"auto",tableWidth:(U=T.tableWidth)!==null&&U!==void 0?U:"auto",showHead:I,showFoot:N,tableLineWidth:(H=T.tableLineWidth)!==null&&H!==void 0?H:0,tableLineColor:(ee=T.tableLineColor)!==null&&ee!==void 0?ee:200,horizontalPageBreak:G,horizontalPageBreakRepeat:ce,horizontalPageBreakBehaviour:(Z=T.horizontalPageBreakBehaviour)!==null&&Z!==void 0?Z:"afterAllRows"}}function w(E,T){var k=E.getLastAutoTable(),L=E.scaleFactor(),D=E.pageNumber(),C=!1;if(k&&k.startPageNumber){var P=k.startPageNumber+k.pageNumber-1;C=P===D}return typeof T=="number"?T:(T==null||T===!1)&&C&&(k==null?void 0:k.finalY)!=null?k.finalY+20/L:null}function A(E,T,k){var L=T.head||[],D=T.body||[],C=T.foot||[];if(T.html){var P=T.includeHiddenHtml;if(k){var M=(0,c.parseHtml)(E,T.html,k,P,T.useCss)||{};L=M.head||L,D=M.body||L,C=M.foot||L}else console.error("Cannot parse html in non browser environment")}var q=T.columns||_(L,D,C);return{columns:q,head:L,body:D,foot:C}}function _(E,T,k){var L=E[0]||T[0]||k[0]||[],D=[];return Object.keys(L).filter(function(C){return C!=="_element"}).forEach(function(C){var P=1,M;Array.isArray(L)?M=L[parseInt(C)]:M=L[C],typeof M=="object"&&!Array.isArray(M)&&(P=(M==null?void 0:M.colSpan)||1);for(var q=0;q<P;q++){var J=void 0;Array.isArray(L)?J=D.length:J=C+(q>0?"_".concat(q):"");var U={dataKey:J};D.push(U)}}),D}}),792:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0});function u(f,d,h,g){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(C){f.applyStyles(f.userStyles),w.beforePageContent&&w.beforePageContent(C),f.applyStyles(f.userStyles),w.afterPageContent&&w.afterPageContent(C),f.applyStyles(f.userStyles),w.afterPageAdd&&C.pageNumber>1&&C.afterPageAdd(C),f.applyStyles(f.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach(function(C){w[C]&&console.error('The "'.concat(C,'" 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(C){var P=C[0],M=C[1];w[M]&&(console.error("Use of deprecated option ".concat(M,". Use ").concat(P," instead")),w[P]=w[M])}),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(C){var P=typeof C=="string"?C:C[0],M=typeof C=="string"?C:C[1];typeof w[P]<"u"&&(typeof w.styles[M]>"u"&&(w.styles[M]=w[P]),console.error("Use of deprecated option: "+P+", use the style "+M+" instead."))});for(var A=0,_=["styles","bodyStyles","headStyles","footStyles"];A<_.length;A++){var E=_[A];c(w[E]||{})}for(var T=w.columnStyles||{},k=0,L=Object.keys(T);k<L.length;k++){var D=L[k];c(T[D]||{})}},m=0,y=[d,h,g];m<y.length;m++){var x=y[m];p(x)}}l.default=u;function c(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,u){Object.defineProperty(l,"__esModule",{value:!0}),l.Column=l.Cell=l.Row=l.Table=void 0;var c=u(796),f=u(172),d=u(420),h=(function(){function y(x,w){this.pageNumber=1,this.pageCount=1,this.id=x.id,this.settings=x.settings,this.styles=x.styles,this.hooks=x.hooks,this.columns=w.columns,this.head=w.head,this.body=w.body,this.foot=w.foot}return y.prototype.getHeadHeight=function(x){return this.head.reduce(function(w,A){return w+A.getMaxCellHeight(x)},0)},y.prototype.getFootHeight=function(x){return this.foot.reduce(function(w,A){return w+A.getMaxCellHeight(x)},0)},y.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},y.prototype.callCellHooks=function(x,w,A,_,E,T){for(var k=0,L=w;k<L.length;k++){var D=L[k],C=new f.CellHookData(x,this,A,_,E,T),P=D(C)===!1;if(A.text=Array.isArray(A.text)?A.text:[A.text],P)return!1}return!0},y.prototype.callEndPageHooks=function(x,w){x.applyStyles(x.userStyles);for(var A=0,_=this.hooks.didDrawPage;A<_.length;A++){var E=_[A];E(new f.HookData(x,this,w))}},y.prototype.callWillDrawPageHooks=function(x,w){for(var A=0,_=this.hooks.willDrawPage;A<_.length;A++){var E=_[A];E(new f.HookData(x,this,w))}},y.prototype.getWidth=function(x){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var w=this.columns.reduce(function(_,E){return _+E.wrappedWidth},0);return w}else{var A=this.settings.margin;return x-A.left-A.right}},y})();l.Table=h;var g=(function(){function y(x,w,A,_,E){E===void 0&&(E=!1),this.height=0,this.raw=x,x instanceof c.HtmlRowInput&&(this.raw=x._element,this.element=x._element),this.index=w,this.section=A,this.cells=_,this.spansMultiplePages=E}return y.prototype.getMaxCellHeight=function(x){var w=this;return x.reduce(function(A,_){var E;return Math.max(A,((E=w.cells[_.index])===null||E===void 0?void 0:E.height)||0)},0)},y.prototype.hasRowSpan=function(x){var w=this;return x.filter(function(A){var _=w.cells[A.index];return _?_.rowSpan>1:!1}).length>0},y.prototype.canEntireRowFit=function(x,w){return this.getMaxCellHeight(w)<=x},y.prototype.getMinimumRowHeight=function(x,w){var A=this;return x.reduce(function(_,E){var T=A.cells[E.index];if(!T)return 0;var k=w.getLineHeight(T.styles.fontSize),L=T.padding("vertical"),D=L+k;return D>_?D:_},0)},y})();l.Row=g;var p=(function(){function y(x,w,A){var _,E;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=A,this.raw=x;var T=x;x!=null&&typeof x=="object"&&!Array.isArray(x)?(this.rowSpan=x.rowSpan||1,this.colSpan=x.colSpan||1,T=(E=(_=x.content)!==null&&_!==void 0?_:x.title)!==null&&E!==void 0?E:x,x._element&&(this.raw=x._element)):(this.rowSpan=1,this.colSpan=1);var k=T!=null?""+T:"",L=/\r\n|\r|\n/g;this.text=k.split(L)}return y.prototype.getTextPos=function(){var x;if(this.styles.valign==="top")x=this.y+this.padding("top");else if(this.styles.valign==="bottom")x=this.y+this.height-this.padding("bottom");else{var w=this.height-this.padding("vertical");x=this.y+w/2+this.padding("top")}var A;if(this.styles.halign==="right")A=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var _=this.width-this.padding("horizontal");A=this.x+_/2+this.padding("left")}else A=this.x+this.padding("left");return{x:A,y:x}},y.prototype.getContentHeight=function(x,w){w===void 0&&(w=1.15);var A=Array.isArray(this.text)?this.text.length:1,_=this.styles.fontSize/x*w,E=A*_+this.padding("vertical");return Math.max(E,this.styles.minCellHeight)},y.prototype.padding=function(x){var w=(0,d.parseSpacing)(this.styles.cellPadding,0);return x==="vertical"?w.top+w.bottom:x==="horizontal"?w.left+w.right:w[x]},y})();l.Cell=p;var m=(function(){function y(x,w,A){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=x,this.raw=w,this.index=A}return y.prototype.getMaxCustomCellWidth=function(x){for(var w=0,A=0,_=x.allRows();A<_.length;A++){var E=_[A],T=E.cells[this.index];T&&typeof T.styles.cellWidth=="number"&&(w=Math.max(w,T.styles.cellWidth))}return w},y})();l.Column=m}),356:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.assign=void 0;function u(c,f,d,h,g){if(c==null)throw new TypeError("Cannot convert undefined or null to object");for(var p=Object(c),m=1;m<arguments.length;m++){var y=arguments[m];if(y!=null)for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(p[x]=y[x])}return p}l.assign=u}),972:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.createTable=void 0;var c=u(744),f=u(260),d=u(324),h=u(796),g=u(356);function p(E,T){var k=new c.DocHandler(E),L=m(T,k.scaleFactor()),D=new f.Table(T,L);return(0,d.calculateWidths)(k,D),k.applyStyles(k.userStyles),D}l.createTable=p;function m(E,T){var k=E.content,L=A(k.columns);if(k.head.length===0){var D=x(L,"head");D&&k.head.push(D)}if(k.foot.length===0){var D=x(L,"foot");D&&k.foot.push(D)}var C=E.settings.theme,P=E.styles;return{columns:L,head:y("head",k.head,L,P,C,T),body:y("body",k.body,L,P,C,T),foot:y("foot",k.foot,L,P,C,T)}}function y(E,T,k,L,D,C){var P={},M=T.map(function(q,J){for(var U=0,H={},ee=0,Z=0,Q=0,le=k;Q<le.length;Q++){var N=le[Q];if(P[N.index]==null||P[N.index].left===0)if(Z===0){var I=void 0;Array.isArray(q)?I=q[N.index-ee-U]:I=q[N.dataKey];var R={};typeof I=="object"&&!Array.isArray(I)&&(R=(I==null?void 0:I.styles)||{});var B=_(E,N,J,D,L,C,R),G=new f.Cell(I,B,E);H[N.dataKey]=G,H[N.index]=G,Z=G.colSpan-1,P[N.index]={left:G.rowSpan-1,times:Z}}else Z--,ee++;else P[N.index].left--,Z=P[N.index].times,U++}return new f.Row(q,J,E,H)});return M}function x(E,T){var k={};return E.forEach(function(L){if(L.raw!=null){var D=w(T,L.raw);D!=null&&(k[L.dataKey]=D)}}),Object.keys(k).length>0?k:null}function w(E,T){if(E==="head"){if(typeof T=="object")return T.header||T.title||null;if(typeof T=="string"||typeof T=="number")return T}else if(E==="foot"&&typeof T=="object")return T.footer;return null}function A(E){return E.map(function(T,k){var L,D,C;return typeof T=="object"?C=(D=(L=T.dataKey)!==null&&L!==void 0?L:T.key)!==null&&D!==void 0?D:k:C=k,new f.Column(C,T,k)})}function _(E,T,k,L,D,C,P){var M=(0,h.getTheme)(L),q;E==="head"?q=D.headStyles:E==="body"?q=D.bodyStyles:E==="foot"&&(q=D.footStyles);var J=(0,g.assign)({},M.table,M[E],D.styles,q),U=D.columnStyles[T.dataKey]||D.columnStyles[T.index]||{},H=E==="body"?U:{},ee=E==="body"&&k%2===0?(0,g.assign)({},M.alternateRow,D.alternateRowStyles):{},Z=(0,h.defaultStyles)(C),Q=(0,g.assign)({},Z,J,ee,H);return(0,g.assign)(Q,P)}}),664:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.addPage=l.drawTable=void 0;var c=u(420),f=u(260),d=u(744),h=u(356),g=u(136),p=u(224);function m(U,H){var ee=H.settings,Z=ee.startY,Q=ee.margin,le={x:Q.left,y:Z},N=H.getHeadHeight(H.columns)+H.getFootHeight(H.columns),I=Z+Q.bottom+N;if(ee.pageBreak==="avoid"){var R=H.body,B=R.reduce(function(he,ne){return he+ne.height},0);I+=B}var G=new d.DocHandler(U);(ee.pageBreak==="always"||ee.startY!=null&&I>G.pageSize().height)&&(J(G),le.y=Q.top),H.callWillDrawPageHooks(G,le);var ce=(0,h.assign)({},le);H.startPageNumber=G.pageNumber(),ee.horizontalPageBreak?y(G,H,ce,le):(G.applyStyles(G.userStyles),(ee.showHead==="firstPage"||ee.showHead==="everyPage")&&H.head.forEach(function(he){return D(G,H,he,le,H.columns)}),G.applyStyles(G.userStyles),H.body.forEach(function(he,ne){var me=ne===H.body.length-1;L(G,H,he,me,ce,le,H.columns)}),G.applyStyles(G.userStyles),(ee.showFoot==="lastPage"||ee.showFoot==="everyPage")&&H.foot.forEach(function(he){return D(G,H,he,le,H.columns)})),(0,c.addTableBorder)(G,H,ce,le),H.callEndPageHooks(G,le),H.finalY=le.y,U.lastAutoTable=H,U.previousAutoTable=H,U.autoTable&&(U.autoTable.previous=H),G.applyStyles(G.userStyles)}l.drawTable=m;function y(U,H,ee,Z){var Q=(0,p.calculateAllColumnsCanFitInPage)(U,H),le=H.settings;if(le.horizontalPageBreakBehaviour==="afterAllRows")Q.forEach(function(B,G){U.applyStyles(U.userStyles),G>0?q(U,H,ee,Z,B.columns,!0):x(U,H,Z,B.columns),w(U,H,ee,Z,B.columns),_(U,H,Z,B.columns)});else for(var N=-1,I=Q[0],R=function(){var B=N;if(I){U.applyStyles(U.userStyles);var G=I.columns;N>=0?q(U,H,ee,Z,G,!0):x(U,H,Z,G),B=A(U,H,N+1,Z,G),_(U,H,Z,G)}var ce=B-N;Q.slice(1).forEach(function(he){U.applyStyles(U.userStyles),q(U,H,ee,Z,he.columns,!0),A(U,H,N+1,Z,he.columns,ce),_(U,H,Z,he.columns)}),N=B};N<H.body.length-1;)R()}function x(U,H,ee,Z){var Q=H.settings;U.applyStyles(U.userStyles),(Q.showHead==="firstPage"||Q.showHead==="everyPage")&&H.head.forEach(function(le){return D(U,H,le,ee,Z)})}function w(U,H,ee,Z,Q){U.applyStyles(U.userStyles),H.body.forEach(function(le,N){var I=N===H.body.length-1;L(U,H,le,I,ee,Z,Q)})}function A(U,H,ee,Z,Q,le){U.applyStyles(U.userStyles),le=le??H.body.length;var N=Math.min(ee+le,H.body.length),I=-1;return H.body.slice(ee,N).forEach(function(R,B){var G=ee+B===H.body.length-1,ce=M(U,H,G,Z);R.canEntireRowFit(ce,Q)&&(D(U,H,R,Z,Q),I=ee+B)}),I}function _(U,H,ee,Z){var Q=H.settings;U.applyStyles(U.userStyles),(Q.showFoot==="lastPage"||Q.showFoot==="everyPage")&&H.foot.forEach(function(le){return D(U,H,le,ee,Z)})}function E(U,H,ee){var Z=ee.getLineHeight(U.styles.fontSize),Q=U.padding("vertical"),le=Math.floor((H-Q)/Z);return Math.max(0,le)}function T(U,H,ee,Z){var Q={};U.spansMultiplePages=!0,U.height=0;for(var le=0,N=0,I=ee.columns;N<I.length;N++){var R=I[N],B=U.cells[R.index];if(B){Array.isArray(B.text)||(B.text=[B.text]);var G=new f.Cell(B.raw,B.styles,B.section);G=(0,h.assign)(G,B),G.text=[];var ce=E(B,H,Z);B.text.length>ce&&(G.text=B.text.splice(ce,B.text.length));var he=Z.scaleFactor(),ne=Z.getLineHeightFactor();B.contentHeight=B.getContentHeight(he,ne),B.contentHeight>=H&&(B.contentHeight=H,G.styles.minCellHeight-=H),B.contentHeight>U.height&&(U.height=B.contentHeight),G.contentHeight=G.getContentHeight(he,ne),G.contentHeight>le&&(le=G.contentHeight),Q[R.index]=G}}var me=new f.Row(U.raw,-1,U.section,Q,!0);me.height=le;for(var Se=0,ue=ee.columns;Se<ue.length;Se++){var R=ue[Se],G=me.cells[R.index];G&&(G.height=me.height);var B=U.cells[R.index];B&&(B.height=U.height)}return me}function k(U,H,ee,Z){var Q=U.pageSize().height,le=Z.settings.margin,N=le.top+le.bottom,I=Q-N;H.section==="body"&&(I-=Z.getHeadHeight(Z.columns)+Z.getFootHeight(Z.columns));var R=H.getMinimumRowHeight(Z.columns,U),B=R<ee;if(R>I)return console.error("Will not be able to print row ".concat(H.index," correctly since it's minimum height is larger than page height")),!0;if(!B)return!1;var G=H.hasRowSpan(Z.columns),ce=H.getMaxCellHeight(Z.columns)>I;return ce?(G&&console.error("The content of row ".concat(H.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):!(G||Z.settings.rowPageBreak==="avoid")}function L(U,H,ee,Z,Q,le,N){var I=M(U,H,Z,le);if(ee.canEntireRowFit(I,N))D(U,H,ee,le,N);else if(k(U,ee,I,H)){var R=T(ee,I,H,U);D(U,H,ee,le,N),q(U,H,Q,le,N),L(U,H,R,Z,Q,le,N)}else q(U,H,Q,le,N),L(U,H,ee,Z,Q,le,N)}function D(U,H,ee,Z,Q){Z.x=H.settings.margin.left;for(var le=0,N=Q;le<N.length;le++){var I=N[le],R=ee.cells[I.index];if(!R){Z.x+=I.width;continue}U.applyStyles(R.styles),R.x=Z.x,R.y=Z.y;var B=H.callCellHooks(U,H.hooks.willDrawCell,R,ee,I,Z);if(B===!1){Z.x+=I.width;continue}C(U,R,Z);var G=R.getTextPos();(0,g.default)(R.text,G.x,G.y,{halign:R.styles.halign,valign:R.styles.valign,maxWidth:Math.ceil(R.width-R.padding("left")-R.padding("right"))},U.getDocument()),H.callCellHooks(U,H.hooks.didDrawCell,R,ee,I,Z),Z.x+=I.width}Z.y+=ee.height}function C(U,H,ee){var Z=H.styles;if(U.getDocument().setFillColor(U.getDocument().getFillColor()),typeof Z.lineWidth=="number"){var Q=(0,c.getFillStyle)(Z.lineWidth,Z.fillColor);Q&&U.rect(H.x,ee.y,H.width,H.height,Q)}else typeof Z.lineWidth=="object"&&(Z.fillColor&&U.rect(H.x,ee.y,H.width,H.height,"F"),P(U,H,ee,Z.lineWidth))}function P(U,H,ee,Z){var Q,le,N,I;Z.top&&(Q=ee.x,le=ee.y,N=ee.x+H.width,I=ee.y,Z.right&&(N+=.5*Z.right),Z.left&&(Q-=.5*Z.left),R(Z.top,Q,le,N,I)),Z.bottom&&(Q=ee.x,le=ee.y+H.height,N=ee.x+H.width,I=ee.y+H.height,Z.right&&(N+=.5*Z.right),Z.left&&(Q-=.5*Z.left),R(Z.bottom,Q,le,N,I)),Z.left&&(Q=ee.x,le=ee.y,N=ee.x,I=ee.y+H.height,Z.top&&(le-=.5*Z.top),Z.bottom&&(I+=.5*Z.bottom),R(Z.left,Q,le,N,I)),Z.right&&(Q=ee.x+H.width,le=ee.y,N=ee.x+H.width,I=ee.y+H.height,Z.top&&(le-=.5*Z.top),Z.bottom&&(I+=.5*Z.bottom),R(Z.right,Q,le,N,I));function R(B,G,ce,he,ne){U.getDocument().setLineWidth(B),U.getDocument().line(G,ce,he,ne,"S")}}function M(U,H,ee,Z){var Q=H.settings.margin.bottom,le=H.settings.showFoot;return(le==="everyPage"||le==="lastPage"&&ee)&&(Q+=H.getFootHeight(H.columns)),U.pageSize().height-Z.y-Q}function q(U,H,ee,Z,Q,le){Q===void 0&&(Q=[]),le===void 0&&(le=!1),U.applyStyles(U.userStyles),H.settings.showFoot==="everyPage"&&!le&&H.foot.forEach(function(I){return D(U,H,I,Z,Q)}),H.callEndPageHooks(U,Z);var N=H.settings.margin;(0,c.addTableBorder)(U,H,ee,Z),J(U),H.pageNumber++,H.pageCount++,Z.x=N.left,Z.y=N.top,ee.y=N.top,H.callWillDrawPageHooks(U,Z),H.settings.showHead==="everyPage"&&(H.head.forEach(function(I){return D(U,H,I,Z,Q)}),U.applyStyles(U.userStyles))}l.addPage=q;function J(U){var H=U.pageNumber();U.setPage(H+1);var ee=U.pageNumber();return ee===H?(U.addPage(),!0):!1}}),224:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.calculateAllColumnsCanFitInPage=void 0;var c=u(420);function f(h,g,p){var m;p===void 0&&(p={});var y=(0,c.getPageAvailableWidth)(h,g),x=new Map,w=[],A=[],_=[];g.settings.horizontalPageBreakRepeat,Array.isArray(g.settings.horizontalPageBreakRepeat)?_=g.settings.horizontalPageBreakRepeat:(typeof g.settings.horizontalPageBreakRepeat=="string"||typeof g.settings.horizontalPageBreakRepeat=="number")&&(_=[g.settings.horizontalPageBreakRepeat]),_.forEach(function(L){var D=g.columns.find(function(C){return C.dataKey===L||C.index===L});D&&!x.has(D.index)&&(x.set(D.index,!0),w.push(D.index),A.push(g.columns[D.index]),y-=D.wrappedWidth)});for(var E=!0,T=(m=p==null?void 0:p.start)!==null&&m!==void 0?m:0;T<g.columns.length;){if(x.has(T)){T++;continue}var k=g.columns[T].wrappedWidth;if(E||y>=k)E=!1,w.push(T),A.push(g.columns[T]),y-=k;else break;T++}return{colIndexes:w,columns:A,lastIndex:T-1}}function d(h,g){for(var p=[],m=0;m<g.columns.length;m++){var y=f(h,g,{start:m});y.columns.length&&(p.push(y),m=y.lastIndex)}return p}l.calculateAllColumnsCanFitInPage=d}),324:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.ellipsize=l.resizeColumns=l.calculateWidths=void 0;var c=u(420);function f(w,A){d(w,A);var _=[],E=0;A.columns.forEach(function(k){var L=k.getMaxCustomCellWidth(A);L?k.width=L:(k.width=k.wrappedWidth,_.push(k)),E+=k.width});var T=A.getWidth(w.pageSize().width)-E;T&&(T=h(_,T,function(k){return Math.max(k.minReadableWidth,k.minWidth)})),T&&(T=h(_,T,function(k){return k.minWidth})),T=Math.abs(T),!A.settings.horizontalPageBreak&&T>.1/w.scaleFactor()&&(T=T<1?T:Math.round(T),console.warn("Of the table content, ".concat(T," units width could not fit page"))),p(A),m(A,w),g(A)}l.calculateWidths=f;function d(w,A){var _=w.scaleFactor(),E=A.settings.horizontalPageBreak,T=(0,c.getPageAvailableWidth)(w,A);A.allRows().forEach(function(k){for(var L=0,D=A.columns;L<D.length;L++){var C=D[L],P=k.cells[C.index];if(P){var M=A.hooks.didParseCell;A.callCellHooks(w,M,P,k,C,null);var q=P.padding("horizontal");P.contentWidth=(0,c.getStringWidth)(P.text,P.styles,w)+q;var J=(0,c.getStringWidth)(P.text.join(" ").split(/[^\S\u00A0]+/),P.styles,w);if(P.minReadableWidth=J+P.padding("horizontal"),typeof P.styles.cellWidth=="number")P.minWidth=P.styles.cellWidth,P.wrappedWidth=P.styles.cellWidth;else if(P.styles.cellWidth==="wrap"||E===!0)P.contentWidth>T?(P.minWidth=T,P.wrappedWidth=T):(P.minWidth=P.contentWidth,P.wrappedWidth=P.contentWidth);else{var U=10/_;P.minWidth=P.styles.minCellWidth||U,P.wrappedWidth=P.contentWidth,P.minWidth>P.wrappedWidth&&(P.wrappedWidth=P.minWidth)}}}}),A.allRows().forEach(function(k){for(var L=0,D=A.columns;L<D.length;L++){var C=D[L],P=k.cells[C.index];if(P&&P.colSpan===1)C.wrappedWidth=Math.max(C.wrappedWidth,P.wrappedWidth),C.minWidth=Math.max(C.minWidth,P.minWidth),C.minReadableWidth=Math.max(C.minReadableWidth,P.minReadableWidth);else{var M=A.styles.columnStyles[C.dataKey]||A.styles.columnStyles[C.index]||{},q=M.cellWidth||M.minCellWidth;q&&typeof q=="number"&&(C.minWidth=q,C.wrappedWidth=q)}P&&(P.colSpan>1&&!C.minWidth&&(C.minWidth=P.minWidth),P.colSpan>1&&!C.wrappedWidth&&(C.wrappedWidth=P.minWidth))}})}function h(w,A,_){for(var E=A,T=w.reduce(function(U,H){return U+H.wrappedWidth},0),k=0;k<w.length;k++){var L=w[k],D=L.wrappedWidth/T,C=E*D,P=L.width+C,M=_(L),q=P<M?M:P;A-=q-L.width,L.width=q}if(A=Math.round(A*1e10)/1e10,A){var J=w.filter(function(U){return A<0?U.width>_(U):!0});J.length&&(A=h(J,A,_))}return A}l.resizeColumns=h;function g(w){for(var A={},_=1,E=w.allRows(),T=0;T<E.length;T++)for(var k=E[T],L=0,D=w.columns;L<D.length;L++){var C=D[L],P=A[C.index];if(_>1)_--,delete k.cells[C.index];else if(P)P.cell.height+=k.height,_=P.cell.colSpan,delete k.cells[C.index],P.left--,P.left<=1&&delete A[C.index];else{var M=k.cells[C.index];if(!M)continue;if(M.height=k.height,M.rowSpan>1){var q=E.length-T,J=M.rowSpan>q?q:M.rowSpan;A[C.index]={cell:M,left:J,row:k}}}}}function p(w){for(var A=w.allRows(),_=0;_<A.length;_++)for(var E=A[_],T=null,k=0,L=0,D=0;D<w.columns.length;D++){var C=w.columns[D];if(L-=1,L>1&&w.columns[D+1])k+=C.width,delete E.cells[C.index];else if(T){var P=T;delete E.cells[C.index],T=null,P.width=C.width+k}else{var P=E.cells[C.index];if(!P)continue;if(L=P.colSpan,k=0,P.colSpan>1){T=P,k+=C.width;continue}P.width=C.width+k}}}function m(w,A){for(var _={count:0,height:0},E=0,T=w.allRows();E<T.length;E++){for(var k=T[E],L=0,D=w.columns;L<D.length;L++){var C=D[L],P=k.cells[C.index];if(P){A.applyStyles(P.styles,!0);var M=P.width-P.padding("horizontal");if(P.styles.overflow==="linebreak")P.text=A.splitTextToSize(P.text,M+1/A.scaleFactor(),{fontSize:P.styles.fontSize});else if(P.styles.overflow==="ellipsize")P.text=y(P.text,M,P.styles,A,"...");else if(P.styles.overflow==="hidden")P.text=y(P.text,M,P.styles,A,"");else if(typeof P.styles.overflow=="function"){var q=P.styles.overflow(P.text,M);typeof q=="string"?P.text=[q]:P.text=q}P.contentHeight=P.getContentHeight(A.scaleFactor(),A.getLineHeightFactor());var J=P.contentHeight/P.rowSpan;P.rowSpan>1&&_.count*_.height<J*P.rowSpan?_={height:J,count:P.rowSpan}:_&&_.count>0&&_.height>J&&(J=_.height),J>k.height&&(k.height=J)}}_.count--}}function y(w,A,_,E,T){return w.map(function(k){return x(k,A,_,E,T)})}l.ellipsize=y;function x(w,A,_,E,T){var k=1e4*E.scaleFactor();if(A=Math.ceil(A*k)/k,A>=(0,c.getStringWidth)(w,_,E))return w;for(;A<(0,c.getStringWidth)(w+T,_,E)&&!(w.length<=1);)w=w.substring(0,w.length-1);return w.trim()+T}}),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})},i={};function a(s){var l=i[s];if(l!==void 0)return l.exports;var u=i[s]={exports:{}};return n[s].call(u.exports,u,u.exports,a),u.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=a(340),u=a(776),c=a(664),f=a(972),d=a(260);Object.defineProperty(s,"Table",{enumerable:!0,get:function(){return d.Table}});var h=a(172);Object.defineProperty(s,"CellHookData",{enumerable:!0,get:function(){return h.CellHookData}});var g=a(260);Object.defineProperty(s,"Cell",{enumerable:!0,get:function(){return g.Cell}}),Object.defineProperty(s,"Column",{enumerable:!0,get:function(){return g.Column}}),Object.defineProperty(s,"Row",{enumerable:!0,get:function(){return g.Row}});function p(A){(0,l.default)(A)}s.applyPlugin=p;function m(A,_){var E=(0,u.parseInput)(A,_),T=(0,f.createTable)(A,E);(0,c.drawTable)(A,T)}function y(A,_){var E=(0,u.parseInput)(A,_);return(0,f.createTable)(A,E)}s.__createTable=y;function x(A,_){(0,c.drawTable)(A,_)}s.__drawTable=x;try{var w=a(964);w.jsPDF&&(w=w.jsPDF),p(w)}catch{}s.default=m})(),o})()})})(hd)),hd.exports}_I();function SI({title:e,subtitle:t,headers:r,rows:n,filename:i,orientation:a="portrait"}){const o=new mt(a);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(`${i}.pdf`)}function AI({student:e,exams:t,schoolName:r}){var a;const n=new mt;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 i=58;(t||[]).forEach(o=>{n.setFontSize(11),n.setTextColor(30,41,59),n.text(o.name,14,i),i+=4,o.subjects&&o.subjects.length>0&&(n.autoTable({startY:i,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}}),i=n.lastAutoTable.finalY+8)}),n.save(`report-card-${(a=e.full_name)==null?void 0:a.replace(/\s+/g,"-")}.pdf`)}function TI({student:e,payment:t,schoolName:r}){const n=new mt;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 i=[["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:i,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 EI({className:e,date:t,records:r,summary:n}){const i=new mt;i.setFontSize(16),i.text("Attendance Report",14,20),i.setFontSize(10),i.setTextColor(71,85,105),i.text(`Class: ${e} | Date: ${t}`,14,28),i.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),i.autoTable({startY:42,head:[["Roll No","Student Name","Status"]],body:(r||[]).map(a=>[a.roll_number||"",a.full_name||"",a.status||""]),styles:{fontSize:9},headStyles:{fillColor:[14,165,233]}}),i.save(`attendance-${e}-${t}.pdf`)}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var vd={};vd.version="0.18.5";var zP=1252,OI=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],WP=function(e){OI.indexOf(e)!=-1&&(zP=e)};function PI(){WP(1252)}var Df=function(e){WP(e)};function NI(){Df(1200),PI()}var $0=function(t){return String.fromCharCode(t)},u_=function(t){return String.fromCharCode(t)},md,ds="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Bf(e){for(var t="",r=0,n=0,i=0,a=0,o=0,s=0,l=0,u=0;u<e.length;)r=e.charCodeAt(u++),a=r>>2,n=e.charCodeAt(u++),o=(r&3)<<4|n>>4,i=e.charCodeAt(u++),s=(n&15)<<2|i>>6,l=i&63,isNaN(n)?s=l=64:isNaN(i)&&(l=64),t+=ds.charAt(a)+ds.charAt(o)+ds.charAt(s)+ds.charAt(l);return t}function Co(e){var t="",r=0,n=0,i=0,a=0,o=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var u=0;u<e.length;)a=ds.indexOf(e.charAt(u++)),o=ds.indexOf(e.charAt(u++)),r=a<<2|o>>4,t+=String.fromCharCode(r),s=ds.indexOf(e.charAt(u++)),n=(o&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(n)),l=ds.indexOf(e.charAt(u++)),i=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var Zt=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),Ro=(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 hl(e){return Zt?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function c_(e){return Zt?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Ta=function(t){return Zt?Ro(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function Fp(e){if(typeof ArrayBuffer>"u")return Ta(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 Nh(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 CI(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var kn=Zt?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:Ro(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),i=0;for(t=0,r=0;t<e.length;r+=i,++t)if(i=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(a){return Array.isArray(a)?a:[].slice.call(a)}))};function jI(e){for(var t=[],r=0,n=e.length+250,i=hl(e.length+255),a=0;a<e.length;++a){var o=e.charCodeAt(a);if(o<128)i[r++]=o;else if(o<2048)i[r++]=192|o>>6&31,i[r++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var s=e.charCodeAt(++a)&1023;i[r++]=240|o>>8&7,i[r++]=128|o>>2&63,i[r++]=128|s>>6&15|(o&3)<<4,i[r++]=128|s&63}else i[r++]=224|o>>12&15,i[r++]=128|o>>6&63,i[r++]=128|o&63;r>n&&(t.push(i.slice(0,r)),r=0,i=hl(65535),n=65530)}return t.push(i.slice(0,r)),kn(t)}var _f=/\u0000/g,q0=/[\u0001-\u0006]/g;function yu(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Oa(e,t){var r=""+e;return r.length>=t?r:qr("0",t-r.length)+r}function Fb(e,t){var r=""+e;return r.length>=t?r:qr(" ",t-r.length)+r}function gd(e,t){var r=""+e;return r.length>=t?r:r+qr(" ",t-r.length)}function kI(e,t){var r=""+Math.round(e);return r.length>=t?r:qr("0",t-r.length)+r}function LI(e,t){var r=""+e;return r.length>=t?r:qr("0",t-r.length)+r}var f_=Math.pow(2,32);function eu(e,t){if(e>f_||e<-f_)return kI(e,t);var r=Math.round(e);return LI(r,t)}function yd(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 h_=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],mv=[["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 II(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 zr={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"秒 "'},d_={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},FI={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 xd(e,t,r){for(var n=e<0?-1:1,i=e*n,a=0,o=1,s=0,l=1,u=0,c=0,f=Math.floor(i);u<t&&(f=Math.floor(i),s=f*o+a,c=f*u+l,!(i-f<5e-8));)i=1/(i-f),a=o,o=s,l=u,u=c;if(c>t&&(u>t?(c=l,s=a):(c=u,s=o)),!r)return[0,n*s,c];var d=Math.floor(n*s/c);return[d,n*s-d*c,c]}function U0(e,t,r){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),a=0,o=[],s={D:n,T:i,u:86400*(e-n)-i,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,++i==86400&&(s.T=i=0,++n,++s.D)),n===60)o=r?[1317,10,29]:[1900,2,29],a=3;else if(n===0)o=r?[1317,8,29]:[1900,1,0],a=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()],a=l.getDay(),n<60&&(a=(a+6)%7),r&&(a=UI(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=a,s}var HP=new Date(1899,11,31,0,0,0),RI=HP.getTime(),MI=new Date(1900,2,1,0,0,0);function GP(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=MI&&(r+=1440*60*1e3),(r-(RI+(e.getTimezoneOffset()-HP.getTimezoneOffset())*6e4))/(1440*60*1e3)}function Rb(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function DI(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function BI(e){var t=e<0?12:11,r=Rb(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function $I(e){var t=Rb(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function qI(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=BI(e):t===10?r=e.toFixed(10).substr(0,12):r=$I(e),Rb(DI(r.toUpperCase()))}function H2(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):qI(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return ws(14,GP(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function UI(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function zI(e,t,r,n){var i="",a=0,o=0,s=r.y,l,u=0;switch(e){case 98:s=r.y+543;case 121:switch(t.length){case 1:case 2:l=s%100,u=2;break;default:l=s%1e4,u=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,u=t.length;break;case 3:return mv[r.m-1][1];case 5:return mv[r.m-1][0];default:return mv[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,u=t.length;break;case 3:return h_[r.q][0];default:return h_[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,u=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,u=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,u=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")?Oa(r.S,t.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,a=Math.round(o*(r.S+r.u)),a>=60*o&&(a=0),t==="s"?a===0?"0":""+a/o:(i=Oa(a,2+n),t==="ss"?i.substr(0,2):"."+i.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}u=t.length===3?1:2;break;case 101:l=s,u=1;break}var c=u>0?Oa(l,u):"";return c}function ps(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 VP=/%/g;function WI(e,t,r){var n=t.replace(VP,""),i=t.length-n.length;return So(e,n,r*Math.pow(10,2*i))+qr("%",i)}function HI(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return So(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function KP(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"-"+KP(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),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+a):r+="E+"+(o-a);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,i)+"."+r.substr(2+i),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,c){return l+u+c.substr(0,(i+a)%i)+"."+c.substr(a)+"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 YP=/# (\?+)( ?)\/( ?)(\d+)/;function GI(e,t,r){var n=parseInt(e[4],10),i=Math.round(t*n),a=Math.floor(i/n),o=i-a*n,s=n;return r+(a===0?"":""+a)+" "+(o===0?qr(" ",e[1].length+1+e[4].length):Fb(o,e[1].length)+e[2]+"/"+e[3]+Oa(s,e[4].length))}function VI(e,t,r){return r+(t===0?"":""+t)+qr(" ",e[1].length+2+e[4].length)}var XP=/^#*0*\.([0#]+)/,JP=/\).*[0#]/,ZP=/\(###\) ###\\?-####/;function ei(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 p_(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function v_(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 KI(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function YI(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function Qi(e,t,r){if(e.charCodeAt(0)===40&&!t.match(JP)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Qi("n",n,r):"("+Qi("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return HI(e,t,r);if(t.indexOf("%")!==-1)return WI(e,t,r);if(t.indexOf("E")!==-1)return KP(t,r);if(t.charCodeAt(0)===36)return"$"+Qi(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,o,s,l=Math.abs(r),u=r<0?"-":"";if(t.match(/^00+$/))return u+eu(l,t.length);if(t.match(/^[#?]+$/))return i=eu(r,0),i==="0"&&(i=""),i.length>t.length?i:ei(t.substr(0,t.length-i.length))+i;if(a=t.match(YP))return GI(a,l,u);if(t.match(/^#+0+$/))return u+eu(l,t.length-t.indexOf("0"));if(a=t.match(XP))return i=p_(r,a[1].length).replace(/^([^\.]+)$/,"$1."+ei(a[1])).replace(/\.$/,"."+ei(a[1])).replace(/\.(\d*)$/,function(g,p){return"."+p+qr("0",ei(a[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return u+p_(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return u+ps(eu(l,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Qi(e,t,-r):ps(""+(Math.floor(r)+KI(r,a[1].length)))+"."+Oa(v_(r,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return Qi(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=yu(Qi(e,t.replace(/[\\-]/g,""),r)),o=0,yu(yu(t.replace(/\\/g,"")).replace(/[0#]/g,function(g){return o<i.length?i.charAt(o++):g==="0"?"0":""}));if(t.match(ZP))return i=Qi(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=xd(l,Math.pow(10,o)-1,!1),i=""+u,c=So("n",a[1],s[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],c=gd(s[2],o),c.length<a[4].length&&(c=ei(a[4].substr(a[4].length-c.length))+c),i+=c,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),s=xd(l,Math.pow(10,o)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?Fb(s[1],o)+a[2]+"/"+a[3]+gd(s[2],o):qr(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=eu(r,0),t.length<=i.length?i:ei(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var f=t.indexOf(".")-o,d=t.length-i.length-f;return ei(t.substr(0,f)+i+t.substr(t.length-d))}if(a=t.match(/^00,000\.([#0]*0)$/))return o=v_(r,a[1].length),r<0?"-"+Qi(e,t,-r):ps(YI(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?Oa(0,3-g.length):"")+g})+"."+Oa(o,a[1].length);switch(t){case"###,##0.00":return Qi(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var h=ps(eu(l,0));return h!=="0"?u+h:"";case"###,###.00":return Qi(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return Qi(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function XI(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return So(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function JI(e,t,r){var n=t.replace(VP,""),i=t.length-n.length;return So(e,n,r*Math.pow(10,2*i))+qr("%",i)}function QP(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"-"+QP(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),!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+a):r+="E+"+(o-a),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,c){return l+u+c.substr(0,(i+a)%i)+"."+c.substr(a)+"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 Ua(e,t,r){if(e.charCodeAt(0)===40&&!t.match(JP)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Ua("n",n,r):"("+Ua("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return XI(e,t,r);if(t.indexOf("%")!==-1)return JI(e,t,r);if(t.indexOf("E")!==-1)return QP(t,r);if(t.charCodeAt(0)===36)return"$"+Ua(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,o,s,l=Math.abs(r),u=r<0?"-":"";if(t.match(/^00+$/))return u+Oa(l,t.length);if(t.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>t.length?i:ei(t.substr(0,t.length-i.length))+i;if(a=t.match(YP))return VI(a,l,u);if(t.match(/^#+0+$/))return u+Oa(l,t.length-t.indexOf("0"));if(a=t.match(XP))return i=(""+r).replace(/^([^\.]+)$/,"$1."+ei(a[1])).replace(/\.$/,"."+ei(a[1])),i=i.replace(/\.(\d*)$/,function(g,p){return"."+p+qr("0",ei(a[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return u+ps(""+l);if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Ua(e,t,-r):ps(""+r)+"."+qr("0",a[1].length);if(a=t.match(/^#,#*,#0/))return Ua(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=yu(Ua(e,t.replace(/[\\-]/g,""),r)),o=0,yu(yu(t.replace(/\\/g,"")).replace(/[0#]/g,function(g){return o<i.length?i.charAt(o++):g==="0"?"0":""}));if(t.match(ZP))return i=Ua(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=xd(l,Math.pow(10,o)-1,!1),i=""+u,c=So("n",a[1],s[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],c=gd(s[2],o),c.length<a[4].length&&(c=ei(a[4].substr(a[4].length-c.length))+c),i+=c,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),s=xd(l,Math.pow(10,o)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?Fb(s[1],o)+a[2]+"/"+a[3]+gd(s[2],o):qr(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=""+r,t.length<=i.length?i:ei(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var f=t.indexOf(".")-o,d=t.length-i.length-f;return ei(t.substr(0,f)+i+t.substr(t.length-d))}if(a=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Ua(e,t,-r):ps(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?Oa(0,3-g.length):"")+g})+"."+Oa(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var h=ps(""+l);return h!=="0"?u+h:"";default:if(t.match(/\.[0#?]*$/))return Ua(e,t.slice(0,t.lastIndexOf(".")),r)+ei(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function So(e,t,r){return(r|0)===r?Ua(e,t,r):Qi(e,t,r)}function ZI(e){for(var t=[],r=!1,n=0,i=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(i,n-i),i=n+1}if(t[t.length]=e.substr(i),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var eN=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function tN(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":yd(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(eN))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 QI(e,t,r,n){for(var i=[],a="",o=0,s="",l="t",u,c,f,d="H";o<e.length;)switch(s=e.charAt(o)){case"G":if(!yd(e,o))throw new Error("unrecognized character "+s+" in "+e);i[i.length]={t:"G",v:"General"},o+=7;break;case'"':for(a="";(f=e.charCodeAt(++o))!==34&&o<e.length;)a+=String.fromCharCode(f);i[i.length]={t:"t",v:a},++o;break;case"\\":var h=e.charAt(++o),g=h==="("||h===")"?h:"t";i[i.length]={t:g,v:h},++o;break;case"_":i[i.length]={t:"t",v:" "},o+=2;break;case"@":i[i.length]={t:"T",v:t},++o;break;case"B":case"b":if(e.charAt(o+1)==="1"||e.charAt(o+1)==="2"){if(u==null&&(u=U0(t,r,e.charAt(o+1)==="2"),u==null))return"";i[i.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||u==null&&(u=U0(t,r),u==null))return"";for(a=s;++o<e.length&&e.charAt(o).toLowerCase()===s;)a+=s;s==="m"&&l.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=d),i[i.length]={t:s,v:a},l=s;break;case"A":case"a":case"上":var p={t:s,v:s};if(u==null&&(u=U0(t,r)),e.substr(o,3).toUpperCase()==="A/P"?(u!=null&&(p.v=u.H>=12?"P":"A"),p.t="T",d="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(u!=null&&(p.v=u.H>=12?"PM":"AM"),p.t="T",o+=5,d="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(u!=null&&(p.v=u.H>=12?"下午":"上午"),p.t="T",o+=5,d="h"):(p.t="t",++o),u==null&&p.t==="T")return"";i[i.length]=p,l=s;break;case"[":for(a=s;e.charAt(o++)!=="]"&&o<e.length;)a+=e.charAt(o);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(eN)){if(u==null&&(u=U0(t,r),u==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},l=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",tN(e)||(i[i.length]={t:"t",v:a}));break;case".":if(u!=null){for(a=s;++o<e.length&&(s=e.charAt(o))==="0";)a+=s;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=s;++o<e.length&&"0#?.,E+-%".indexOf(s=e.charAt(o))>-1;)a+=s;i[i.length]={t:"n",v:a};break;case"?":for(a=s;e.charAt(++o)===s;)a+=s;i[i.length]={t:s,v:a},l=s;break;case"*":++o,(e.charAt(o)==" "||e.charAt(o)=="*")&&++o;break;case"(":case")":i[i.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(a=s;o<e.length&&"0123456789".indexOf(e.charAt(++o))>-1;)a+=e.charAt(o);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:s,v:s},++o;break;case"$":i[i.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+e);i[i.length]={t:"t",v:s},++o;break}var m=0,y=0,x;for(o=i.length-1,l="t";o>=0;--o)switch(i[o].t){case"h":case"H":i[o].t=d,l="h",m<1&&(m=1);break;case"s":(x=i[o].v.match(/\.0+$/))&&(y=Math.max(y,x[0].length-1)),m<3&&(m=3);case"d":case"y":case"M":case"e":l=i[o].t;break;case"m":l==="s"&&(i[o].t="M",m<2&&(m=2));break;case"X":break;case"Z":m<1&&i[o].v.match(/[Hh]/)&&(m=1),m<2&&i[o].v.match(/[Mm]/)&&(m=2),m<3&&i[o].v.match(/[Ss]/)&&(m=3)}switch(m){case 0:break;case 1:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M),u.M>=60&&(u.M=0,++u.H);break;case 2:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M);break}var w="",A;for(o=0;o<i.length;++o)switch(i[o].t){case"t":case"T":case" ":case"D":break;case"X":i[o].v="",i[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[o].v=zI(i[o].t.charCodeAt(0),i[o].v,u,y),i[o].t="t";break;case"n":case"?":for(A=o+1;i[A]!=null&&((s=i[A].t)==="?"||s==="D"||(s===" "||s==="t")&&i[A+1]!=null&&(i[A+1].t==="?"||i[A+1].t==="t"&&i[A+1].v==="/")||i[o].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(i[A].v==="/"||i[A].v===" "&&i[A+1]!=null&&i[A+1].t=="?"));)i[o].v+=i[A].v,i[A]={v:"",t:";"},++A;w+=i[o].v,o=A-1;break;case"G":i[o].t="t",i[o].v=H2(t,r);break}var _="",E,T;if(w.length>0){w.charCodeAt(0)==40?(E=t<0&&w.charCodeAt(0)===45?-t:t,T=So("n",w,E)):(E=t<0&&n>1?-t:t,T=So("n",w,E),E<0&&i[0]&&i[0].t=="t"&&(T=T.substr(1),i[0].v="-"+i[0].v)),A=T.length-1;var k=i.length;for(o=0;o<i.length;++o)if(i[o]!=null&&i[o].t!="t"&&i[o].v.indexOf(".")>-1){k=o;break}var L=i.length;if(k===i.length&&T.indexOf("E")===-1){for(o=i.length-1;o>=0;--o)i[o]==null||"n?".indexOf(i[o].t)===-1||(A>=i[o].v.length-1?(A-=i[o].v.length,i[o].v=T.substr(A+1,i[o].v.length)):A<0?i[o].v="":(i[o].v=T.substr(0,A+1),A=-1),i[o].t="t",L=o);A>=0&&L<i.length&&(i[L].v=T.substr(0,A+1)+i[L].v)}else if(k!==i.length&&T.indexOf("E")===-1){for(A=T.indexOf(".")-1,o=k;o>=0;--o)if(!(i[o]==null||"n?".indexOf(i[o].t)===-1)){for(c=i[o].v.indexOf(".")>-1&&o===k?i[o].v.indexOf(".")-1:i[o].v.length-1,_=i[o].v.substr(c+1);c>=0;--c)A>=0&&(i[o].v.charAt(c)==="0"||i[o].v.charAt(c)==="#")&&(_=T.charAt(A--)+_);i[o].v=_,i[o].t="t",L=o}for(A>=0&&L<i.length&&(i[L].v=T.substr(0,A+1)+i[L].v),A=T.indexOf(".")+1,o=k;o<i.length;++o)if(!(i[o]==null||"n?(".indexOf(i[o].t)===-1&&o!==k)){for(c=i[o].v.indexOf(".")>-1&&o===k?i[o].v.indexOf(".")+1:0,_=i[o].v.substr(0,c);c<i[o].v.length;++c)A<T.length&&(_+=T.charAt(A++));i[o].v=_,i[o].t="t",L=o}}}for(o=0;o<i.length;++o)i[o]!=null&&"n?".indexOf(i[o].t)>-1&&(E=n>1&&t<0&&o>0&&i[o-1].v==="-"?-t:t,i[o].v=So(i[o].t,i[o].v,E),i[o].t="t");var D="";for(o=0;o!==i.length;++o)i[o]!=null&&(D+=i[o].v);return D}var m_=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function g_(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 e7(e,t){var r=ZI(e),n=r.length,i=r[n-1].indexOf("@");if(n<4&&i>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||i>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=i>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=i>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=i>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var a=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,a];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var o=r[0].match(m_),s=r[1].match(m_);return g_(t,o)?[n,r[0]]:g_(t,s)?[n,r[1]]:[n,r[o!=null&&s!=null?2:1]]}return[n,a]}function ws(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:zr)[e],n==null&&(n=r.table&&r.table[d_[e]]||zr[d_[e]]),n==null&&(n=FI[e]||"General");break}if(yd(n,0))return H2(t,r);t instanceof Date&&(t=GP(t,r.date1904));var i=e7(n,t);if(yd(i[1]))return H2(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return QI(i[1],t,r,i[0])}function rN(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(zr[r]==null){t<0&&(t=r);continue}if(zr[r]==e){t=r;break}}t<0&&(t=391)}return zr[t]=e,t}function Rp(e){for(var t=0;t!=392;++t)e[t]!==void 0&&rN(e[t],t)}function Mp(){zr=II()}var nN=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function t7(e){var t=typeof e=="number"?zr[e]:e;return t=t.replace(nN,"(\\d+)"),new RegExp("^"+t+"$")}function r7(e,t,r){var n=-1,i=-1,a=-1,o=-1,s=-1,l=-1;(t.match(nN)||[]).forEach(function(f,d){var h=parseInt(r[d+1],10);switch(f.toLowerCase().charAt(0)){case"y":n=h;break;case"d":a=h;break;case"h":o=h;break;case"s":l=h;break;case"m":o>=0?s=h:i=h;break}}),l>=0&&s==-1&&i>=0&&(s=i,i=-1);var u=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);u.length==7&&(u="0"+u),u.length==8&&(u="20"+u);var c=("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?u:n==-1&&i==-1&&a==-1?c:u+"T"+c}var n7=(function(){var e={};e.version="1.2.0";function t(){for(var T=0,k=new Array(256),L=0;L!=256;++L)T=L,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,k[L]=T;return typeof Int32Array<"u"?new Int32Array(k):k}var r=t();function n(T){var k=0,L=0,D=0,C=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(D=0;D!=256;++D)C[D]=T[D];for(D=0;D!=256;++D)for(L=T[D],k=256+D;k<4096;k+=256)L=C[k]=L>>>8^T[L&255];var P=[];for(D=1;D!=16;++D)P[D-1]=typeof Int32Array<"u"?C.subarray(D*256,D*256+256):C.slice(D*256,D*256+256);return P}var i=n(r),a=i[0],o=i[1],s=i[2],l=i[3],u=i[4],c=i[5],f=i[6],d=i[7],h=i[8],g=i[9],p=i[10],m=i[11],y=i[12],x=i[13],w=i[14];function A(T,k){for(var L=k^-1,D=0,C=T.length;D<C;)L=L>>>8^r[(L^T.charCodeAt(D++))&255];return~L}function _(T,k){for(var L=k^-1,D=T.length-15,C=0;C<D;)L=w[T[C++]^L&255]^x[T[C++]^L>>8&255]^y[T[C++]^L>>16&255]^m[T[C++]^L>>>24]^p[T[C++]]^g[T[C++]]^h[T[C++]]^d[T[C++]]^f[T[C++]]^c[T[C++]]^u[T[C++]]^l[T[C++]]^s[T[C++]]^o[T[C++]]^a[T[C++]]^r[T[C++]];for(D+=15;C<D;)L=L>>>8^r[(L^T[C++])&255];return~L}function E(T,k){for(var L=k^-1,D=0,C=T.length,P=0,M=0;D<C;)P=T.charCodeAt(D++),P<128?L=L>>>8^r[(L^P)&255]:P<2048?(L=L>>>8^r[(L^(192|P>>6&31))&255],L=L>>>8^r[(L^(128|P&63))&255]):P>=55296&&P<57344?(P=(P&1023)+64,M=T.charCodeAt(D++)&1023,L=L>>>8^r[(L^(240|P>>8&7))&255],L=L>>>8^r[(L^(128|P>>2&63))&255],L=L>>>8^r[(L^(128|M>>6&15|(P&3)<<4))&255],L=L>>>8^r[(L^(128|M&63))&255]):(L=L>>>8^r[(L^(224|P>>12&15))&255],L=L>>>8^r[(L^(128|P>>6&63))&255],L=L>>>8^r[(L^(128|P&63))&255]);return~L}return e.table=r,e.bstr=A,e.buf=_,e.str=E,e})(),yr=(function(){var t={};t.version="1.2.1";function r(Y,de){for(var ie=Y.split("/"),ae=de.split("/"),fe=0,pe=0,Oe=Math.min(ie.length,ae.length);fe<Oe;++fe){if(pe=ie[fe].length-ae[fe].length)return pe;if(ie[fe]!=ae[fe])return ie[fe]<ae[fe]?-1:1}return ie.length-ae.length}function n(Y){if(Y.charAt(Y.length-1)=="/")return Y.slice(0,-1).indexOf("/")===-1?Y:n(Y.slice(0,-1));var de=Y.lastIndexOf("/");return de===-1?Y:Y.slice(0,de+1)}function i(Y){if(Y.charAt(Y.length-1)=="/")return i(Y.slice(0,-1));var de=Y.lastIndexOf("/");return de===-1?Y:Y.slice(de+1)}function a(Y,de){typeof de=="string"&&(de=new Date(de));var ie=de.getHours();ie=ie<<6|de.getMinutes(),ie=ie<<5|de.getSeconds()>>>1,Y.write_shift(2,ie);var ae=de.getFullYear()-1980;ae=ae<<4|de.getMonth()+1,ae=ae<<5|de.getDate(),Y.write_shift(2,ae)}function o(Y){var de=Y.read_shift(2)&65535,ie=Y.read_shift(2)&65535,ae=new Date,fe=ie&31;ie>>>=5;var pe=ie&15;ie>>>=4,ae.setMilliseconds(0),ae.setFullYear(ie+1980),ae.setMonth(pe-1),ae.setDate(fe);var Oe=de&31;de>>>=5;var ke=de&63;return de>>>=6,ae.setHours(de),ae.setMinutes(ke),ae.setSeconds(Oe<<1),ae}function s(Y){Li(Y,0);for(var de={},ie=0;Y.l<=Y.length-4;){var ae=Y.read_shift(2),fe=Y.read_shift(2),pe=Y.l+fe,Oe={};switch(ae){case 21589:ie=Y.read_shift(1),ie&1&&(Oe.mtime=Y.read_shift(4)),fe>5&&(ie&2&&(Oe.atime=Y.read_shift(4)),ie&4&&(Oe.ctime=Y.read_shift(4))),Oe.mtime&&(Oe.mt=new Date(Oe.mtime*1e3));break}Y.l=pe,de[ae]=Oe}return de}var l;function u(){return l||(l={})}function c(Y,de){if(Y[0]==80&&Y[1]==75)return Nr(Y,de);if((Y[0]|32)==109&&(Y[1]|32)==105)return qi(Y,de);if(Y.length<512)throw new Error("CFB file size "+Y.length+" < 512");var ie=3,ae=512,fe=0,pe=0,Oe=0,ke=0,Ee=0,Ce=[],je=Y.slice(0,512);Li(je,0);var Ge=f(je);switch(ie=Ge[0],ie){case 3:ae=512;break;case 4:ae=4096;break;case 0:if(Ge[1]==0)return Nr(Y,de);default:throw new Error("Major Version: Expected 3 or 4 saw "+ie)}ae!==512&&(je=Y.slice(0,ae),Li(je,28));var Qe=Y.slice(0,ae);d(je,ie);var lt=je.read_shift(4,"i");if(ie===3&<!==0)throw new Error("# Directory Sectors: Expected 0 saw "+lt);je.l+=4,Oe=je.read_shift(4,"i"),je.l+=4,je.chk("00100000","Mini Stream Cutoff Size: "),ke=je.read_shift(4,"i"),fe=je.read_shift(4,"i"),Ee=je.read_shift(4,"i"),pe=je.read_shift(4,"i");for(var Ye=-1,st=0;st<109&&(Ye=je.read_shift(4,"i"),!(Ye<0));++st)Ce[st]=Ye;var At=h(Y,ae);m(Ee,pe,At,ae,Ce);var er=x(At,Oe,Ce,ae);er[Oe].name="!Directory",fe>0&&ke!==M&&(er[ke].name="!MiniFAT"),er[Ce[0]].name="!FAT",er.fat_addrs=Ce,er.ssz=ae;var mr={},Jr=[],ua=[],no=[];w(Oe,er,At,Jr,fe,mr,ua,ke),g(ua,no,Jr),Jr.shift();var Fa={FileIndex:ua,FullPaths:no};return de&&de.raw&&(Fa.raw={header:Qe,sectors:At}),Fa}function f(Y){if(Y[Y.l]==80&&Y[Y.l+1]==75)return[0,0];Y.chk(q,"Header Signature: "),Y.l+=16;var de=Y.read_shift(2,"u");return[Y.read_shift(2,"u"),de]}function d(Y,de){var ie=9;switch(Y.l+=2,ie=Y.read_shift(2)){case 9:if(de!=3)throw new Error("Sector Shift: Expected 9 saw "+ie);break;case 12:if(de!=4)throw new Error("Sector Shift: Expected 12 saw "+ie);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+ie)}Y.chk("0600","Mini Sector Shift: "),Y.chk("000000000000","Reserved: ")}function h(Y,de){for(var ie=Math.ceil(Y.length/de)-1,ae=[],fe=1;fe<ie;++fe)ae[fe-1]=Y.slice(fe*de,(fe+1)*de);return ae[ie-1]=Y.slice(ie*de),ae}function g(Y,de,ie){for(var ae=0,fe=0,pe=0,Oe=0,ke=0,Ee=ie.length,Ce=[],je=[];ae<Ee;++ae)Ce[ae]=je[ae]=ae,de[ae]=ie[ae];for(;ke<je.length;++ke)ae=je[ke],fe=Y[ae].L,pe=Y[ae].R,Oe=Y[ae].C,Ce[ae]===ae&&(fe!==-1&&Ce[fe]!==fe&&(Ce[ae]=Ce[fe]),pe!==-1&&Ce[pe]!==pe&&(Ce[ae]=Ce[pe])),Oe!==-1&&(Ce[Oe]=ae),fe!==-1&&ae!=Ce[ae]&&(Ce[fe]=Ce[ae],je.lastIndexOf(fe)<ke&&je.push(fe)),pe!==-1&&ae!=Ce[ae]&&(Ce[pe]=Ce[ae],je.lastIndexOf(pe)<ke&&je.push(pe));for(ae=1;ae<Ee;++ae)Ce[ae]===ae&&(pe!==-1&&Ce[pe]!==pe?Ce[ae]=Ce[pe]:fe!==-1&&Ce[fe]!==fe&&(Ce[ae]=Ce[fe]));for(ae=1;ae<Ee;++ae)if(Y[ae].type!==0){if(ke=ae,ke!=Ce[ke])do ke=Ce[ke],de[ae]=de[ke]+"/"+de[ae];while(ke!==0&&Ce[ke]!==-1&&ke!=Ce[ke]);Ce[ae]=-1}for(de[0]+="/",ae=1;ae<Ee;++ae)Y[ae].type!==2&&(de[ae]+="/")}function p(Y,de,ie){for(var ae=Y.start,fe=Y.size,pe=[],Oe=ae;ie&&fe>0&&Oe>=0;)pe.push(de.slice(Oe*P,Oe*P+P)),fe-=P,Oe=Hs(ie,Oe*4);return pe.length===0?Me(0):kn(pe).slice(0,Y.size)}function m(Y,de,ie,ae,fe){var pe=M;if(Y===M){if(de!==0)throw new Error("DIFAT chain shorter than expected")}else if(Y!==-1){var Oe=ie[Y],ke=(ae>>>2)-1;if(!Oe)return;for(var Ee=0;Ee<ke&&(pe=Hs(Oe,Ee*4))!==M;++Ee)fe.push(pe);m(Hs(Oe,ae-4),de-1,ie,ae,fe)}}function y(Y,de,ie,ae,fe){var pe=[],Oe=[];fe||(fe=[]);var ke=ae-1,Ee=0,Ce=0;for(Ee=de;Ee>=0;){fe[Ee]=!0,pe[pe.length]=Ee,Oe.push(Y[Ee]);var je=ie[Math.floor(Ee*4/ae)];if(Ce=Ee*4&ke,ae<4+Ce)throw new Error("FAT boundary crossed: "+Ee+" 4 "+ae);if(!Y[je])break;Ee=Hs(Y[je],Ce)}return{nodes:pe,data:T_([Oe])}}function x(Y,de,ie,ae){var fe=Y.length,pe=[],Oe=[],ke=[],Ee=[],Ce=ae-1,je=0,Ge=0,Qe=0,lt=0;for(je=0;je<fe;++je)if(ke=[],Qe=je+de,Qe>=fe&&(Qe-=fe),!Oe[Qe]){Ee=[];var Ye=[];for(Ge=Qe;Ge>=0;){Ye[Ge]=!0,Oe[Ge]=!0,ke[ke.length]=Ge,Ee.push(Y[Ge]);var st=ie[Math.floor(Ge*4/ae)];if(lt=Ge*4&Ce,ae<4+lt)throw new Error("FAT boundary crossed: "+Ge+" 4 "+ae);if(!Y[st]||(Ge=Hs(Y[st],lt),Ye[Ge]))break}pe[Qe]={nodes:ke,data:T_([Ee])}}return pe}function w(Y,de,ie,ae,fe,pe,Oe,ke){for(var Ee=0,Ce=ae.length?2:0,je=de[Y].data,Ge=0,Qe=0,lt;Ge<je.length;Ge+=128){var Ye=je.slice(Ge,Ge+128);Li(Ye,64),Qe=Ye.read_shift(2),lt=qb(Ye,0,Qe-Ce),ae.push(lt);var st={name:lt,type:Ye.read_shift(1),color:Ye.read_shift(1),L:Ye.read_shift(4,"i"),R:Ye.read_shift(4,"i"),C:Ye.read_shift(4,"i"),clsid:Ye.read_shift(16),state:Ye.read_shift(4,"i"),start:0,size:0},At=Ye.read_shift(2)+Ye.read_shift(2)+Ye.read_shift(2)+Ye.read_shift(2);At!==0&&(st.ct=A(Ye,Ye.l-8));var er=Ye.read_shift(2)+Ye.read_shift(2)+Ye.read_shift(2)+Ye.read_shift(2);er!==0&&(st.mt=A(Ye,Ye.l-8)),st.start=Ye.read_shift(4,"i"),st.size=Ye.read_shift(4,"i"),st.size<0&&st.start<0&&(st.size=st.type=0,st.start=M,st.name=""),st.type===5?(Ee=st.start,fe>0&&Ee!==M&&(de[Ee].name="!StreamData")):st.size>=4096?(st.storage="fat",de[st.start]===void 0&&(de[st.start]=y(ie,st.start,de.fat_addrs,de.ssz)),de[st.start].name=st.name,st.content=de[st.start].data.slice(0,st.size)):(st.storage="minifat",st.size<0?st.size=0:Ee!==M&&st.start!==M&&de[Ee]&&(st.content=p(st,de[Ee].data,(de[ke]||{}).data))),st.content&&Li(st.content,0),pe[lt]=st,Oe.push(st)}}function A(Y,de){return new Date((Fi(Y,de+4)/1e7*Math.pow(2,32)+Fi(Y,de)/1e7-11644473600)*1e3)}function _(Y,de){return u(),c(l.readFileSync(Y),de)}function E(Y,de){var ie=de&&de.type;switch(ie||Zt&&Buffer.isBuffer(Y)&&(ie="buffer"),ie||"base64"){case"file":return _(Y,de);case"base64":return c(Ta(Co(Y)),de);case"binary":return c(Ta(Y),de)}return c(Y,de)}function T(Y,de){var ie=de||{},ae=ie.root||"Root Entry";if(Y.FullPaths||(Y.FullPaths=[]),Y.FileIndex||(Y.FileIndex=[]),Y.FullPaths.length!==Y.FileIndex.length)throw new Error("inconsistent CFB structure");Y.FullPaths.length===0&&(Y.FullPaths[0]=ae+"/",Y.FileIndex[0]={name:ae,type:5}),ie.CLSID&&(Y.FileIndex[0].clsid=ie.CLSID),k(Y)}function k(Y){var de="Sh33tJ5";if(!yr.find(Y,"/"+de)){var ie=Me(4);ie[0]=55,ie[1]=ie[3]=50,ie[2]=54,Y.FileIndex.push({name:de,type:2,content:ie,size:4,L:69,R:69,C:69}),Y.FullPaths.push(Y.FullPaths[0]+de),L(Y)}}function L(Y,de){T(Y);for(var ie=!1,ae=!1,fe=Y.FullPaths.length-1;fe>=0;--fe){var pe=Y.FileIndex[fe];switch(pe.type){case 0:ae?ie=!0:(Y.FileIndex.pop(),Y.FullPaths.pop());break;case 1:case 2:case 5:ae=!0,isNaN(pe.R*pe.L*pe.C)&&(ie=!0),pe.R>-1&&pe.L>-1&&pe.R==pe.L&&(ie=!0);break;default:ie=!0;break}}if(!(!ie&&!de)){var Oe=new Date(1987,1,19),ke=0,Ee=Object.create?Object.create(null):{},Ce=[];for(fe=0;fe<Y.FullPaths.length;++fe)Ee[Y.FullPaths[fe]]=!0,Y.FileIndex[fe].type!==0&&Ce.push([Y.FullPaths[fe],Y.FileIndex[fe]]);for(fe=0;fe<Ce.length;++fe){var je=n(Ce[fe][0]);ae=Ee[je],ae||(Ce.push([je,{name:i(je).replace("/",""),type:1,clsid:U,ct:Oe,mt:Oe,content:null}]),Ee[je]=!0)}for(Ce.sort(function(lt,Ye){return r(lt[0],Ye[0])}),Y.FullPaths=[],Y.FileIndex=[],fe=0;fe<Ce.length;++fe)Y.FullPaths[fe]=Ce[fe][0],Y.FileIndex[fe]=Ce[fe][1];for(fe=0;fe<Ce.length;++fe){var Ge=Y.FileIndex[fe],Qe=Y.FullPaths[fe];if(Ge.name=i(Qe).replace("/",""),Ge.L=Ge.R=Ge.C=-(Ge.color=1),Ge.size=Ge.content?Ge.content.length:0,Ge.start=0,Ge.clsid=Ge.clsid||U,fe===0)Ge.C=Ce.length>1?1:-1,Ge.size=0,Ge.type=5;else if(Qe.slice(-1)=="/"){for(ke=fe+1;ke<Ce.length&&n(Y.FullPaths[ke])!=Qe;++ke);for(Ge.C=ke>=Ce.length?-1:ke,ke=fe+1;ke<Ce.length&&n(Y.FullPaths[ke])!=n(Qe);++ke);Ge.R=ke>=Ce.length?-1:ke,Ge.type=1}else n(Y.FullPaths[fe+1]||"")==n(Qe)&&(Ge.R=fe+1),Ge.type=2}}}function D(Y,de){var ie=de||{};if(ie.fileType=="mad")return yt(Y,ie);switch(L(Y),ie.fileType){case"zip":return la(Y,ie)}var ae=(function(lt){for(var Ye=0,st=0,At=0;At<lt.FileIndex.length;++At){var er=lt.FileIndex[At];if(er.content){var mr=er.content.length;mr>0&&(mr<4096?Ye+=mr+63>>6:st+=mr+511>>9)}}for(var Jr=lt.FullPaths.length+3>>2,ua=Ye+7>>3,no=Ye+127>>7,Fa=ua+st+Jr+no,ca=Fa+127>>7,Ra=ca<=109?0:Math.ceil((ca-109)/127);Fa+ca+Ra+127>>7>ca;)Ra=++ca<=109?0:Math.ceil((ca-109)/127);var Ai=[1,Ra,ca,no,Jr,st,Ye,0];return lt.FileIndex[0].size=Ye<<6,Ai[7]=(lt.FileIndex[0].start=Ai[0]+Ai[1]+Ai[2]+Ai[3]+Ai[4]+Ai[5])+(Ai[6]+7>>3),Ai})(Y),fe=Me(ae[7]<<9),pe=0,Oe=0;{for(pe=0;pe<8;++pe)fe.write_shift(1,J[pe]);for(pe=0;pe<8;++pe)fe.write_shift(2,0);for(fe.write_shift(2,62),fe.write_shift(2,3),fe.write_shift(2,65534),fe.write_shift(2,9),fe.write_shift(2,6),pe=0;pe<3;++pe)fe.write_shift(2,0);for(fe.write_shift(4,0),fe.write_shift(4,ae[2]),fe.write_shift(4,ae[0]+ae[1]+ae[2]+ae[3]-1),fe.write_shift(4,0),fe.write_shift(4,4096),fe.write_shift(4,ae[3]?ae[0]+ae[1]+ae[2]-1:M),fe.write_shift(4,ae[3]),fe.write_shift(-4,ae[1]?ae[0]-1:M),fe.write_shift(4,ae[1]),pe=0;pe<109;++pe)fe.write_shift(-4,pe<ae[2]?ae[1]+pe:-1)}if(ae[1])for(Oe=0;Oe<ae[1];++Oe){for(;pe<236+Oe*127;++pe)fe.write_shift(-4,pe<ae[2]?ae[1]+pe:-1);fe.write_shift(-4,Oe===ae[1]-1?M:Oe+1)}var ke=function(lt){for(Oe+=lt;pe<Oe-1;++pe)fe.write_shift(-4,pe+1);lt&&(++pe,fe.write_shift(-4,M))};for(Oe=pe=0,Oe+=ae[1];pe<Oe;++pe)fe.write_shift(-4,H.DIFSECT);for(Oe+=ae[2];pe<Oe;++pe)fe.write_shift(-4,H.FATSECT);ke(ae[3]),ke(ae[4]);for(var Ee=0,Ce=0,je=Y.FileIndex[0];Ee<Y.FileIndex.length;++Ee)je=Y.FileIndex[Ee],je.content&&(Ce=je.content.length,!(Ce<4096)&&(je.start=Oe,ke(Ce+511>>9)));for(ke(ae[6]+7>>3);fe.l&511;)fe.write_shift(-4,H.ENDOFCHAIN);for(Oe=pe=0,Ee=0;Ee<Y.FileIndex.length;++Ee)je=Y.FileIndex[Ee],je.content&&(Ce=je.content.length,!(!Ce||Ce>=4096)&&(je.start=Oe,ke(Ce+63>>6)));for(;fe.l&511;)fe.write_shift(-4,H.ENDOFCHAIN);for(pe=0;pe<ae[4]<<2;++pe){var Ge=Y.FullPaths[pe];if(!Ge||Ge.length===0){for(Ee=0;Ee<17;++Ee)fe.write_shift(4,0);for(Ee=0;Ee<3;++Ee)fe.write_shift(4,-1);for(Ee=0;Ee<12;++Ee)fe.write_shift(4,0);continue}je=Y.FileIndex[pe],pe===0&&(je.start=je.size?je.start-1:M);var Qe=pe===0&&ie.root||je.name;if(Ce=2*(Qe.length+1),fe.write_shift(64,Qe,"utf16le"),fe.write_shift(2,Ce),fe.write_shift(1,je.type),fe.write_shift(1,je.color),fe.write_shift(-4,je.L),fe.write_shift(-4,je.R),fe.write_shift(-4,je.C),je.clsid)fe.write_shift(16,je.clsid,"hex");else for(Ee=0;Ee<4;++Ee)fe.write_shift(4,0);fe.write_shift(4,je.state||0),fe.write_shift(4,0),fe.write_shift(4,0),fe.write_shift(4,0),fe.write_shift(4,0),fe.write_shift(4,je.start),fe.write_shift(4,je.size),fe.write_shift(4,0)}for(pe=1;pe<Y.FileIndex.length;++pe)if(je=Y.FileIndex[pe],je.size>=4096)if(fe.l=je.start+1<<9,Zt&&Buffer.isBuffer(je.content))je.content.copy(fe,fe.l,0,je.size),fe.l+=je.size+511&-512;else{for(Ee=0;Ee<je.size;++Ee)fe.write_shift(1,je.content[Ee]);for(;Ee&511;++Ee)fe.write_shift(1,0)}for(pe=1;pe<Y.FileIndex.length;++pe)if(je=Y.FileIndex[pe],je.size>0&&je.size<4096)if(Zt&&Buffer.isBuffer(je.content))je.content.copy(fe,fe.l,0,je.size),fe.l+=je.size+63&-64;else{for(Ee=0;Ee<je.size;++Ee)fe.write_shift(1,je.content[Ee]);for(;Ee&63;++Ee)fe.write_shift(1,0)}if(Zt)fe.l=fe.length;else for(;fe.l<fe.length;)fe.write_shift(1,0);return fe}function C(Y,de){var ie=Y.FullPaths.map(function(Ee){return Ee.toUpperCase()}),ae=ie.map(function(Ee){var Ce=Ee.split("/");return Ce[Ce.length-(Ee.slice(-1)=="/"?2:1)]}),fe=!1;de.charCodeAt(0)===47?(fe=!0,de=ie[0].slice(0,-1)+de):fe=de.indexOf("/")!==-1;var pe=de.toUpperCase(),Oe=fe===!0?ie.indexOf(pe):ae.indexOf(pe);if(Oe!==-1)return Y.FileIndex[Oe];var ke=!pe.match(q0);for(pe=pe.replace(_f,""),ke&&(pe=pe.replace(q0,"!")),Oe=0;Oe<ie.length;++Oe)if((ke?ie[Oe].replace(q0,"!"):ie[Oe]).replace(_f,"")==pe||(ke?ae[Oe].replace(q0,"!"):ae[Oe]).replace(_f,"")==pe)return Y.FileIndex[Oe];return null}var P=64,M=-2,q="d0cf11e0a1b11ae1",J=[208,207,17,224,161,177,26,225],U="00000000000000000000000000000000",H={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:M,FREESECT:-1,HEADER_SIGNATURE:q,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:U,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function ee(Y,de,ie){u();var ae=D(Y,ie);l.writeFileSync(de,ae)}function Z(Y){for(var de=new Array(Y.length),ie=0;ie<Y.length;++ie)de[ie]=String.fromCharCode(Y[ie]);return de.join("")}function Q(Y,de){var ie=D(Y,de);switch(de&&de.type||"buffer"){case"file":return u(),l.writeFileSync(de.filename,ie),ie;case"binary":return typeof ie=="string"?ie:Z(ie);case"base64":return Bf(typeof ie=="string"?ie:Z(ie));case"buffer":if(Zt)return Buffer.isBuffer(ie)?ie:Ro(ie);case"array":return typeof ie=="string"?Ta(ie):ie}return ie}var le;function N(Y){try{var de=Y.InflateRaw,ie=new de;if(ie._processChunk(new Uint8Array([3,0]),ie._finishFlushFlag),ie.bytesRead)le=Y;else throw new Error("zlib does not expose bytesRead")}catch(ae){console.error("cannot use native zlib: "+(ae.message||ae))}}function I(Y,de){if(!le)return Gt(Y,de);var ie=le.InflateRaw,ae=new ie,fe=ae._processChunk(Y.slice(Y.l),ae._finishFlushFlag);return Y.l+=ae.bytesRead,fe}function R(Y){return le?le.deflateRawSync(Y):Mt(Y)}var B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],G=[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],ce=[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 he(Y){var de=(Y<<1|Y<<11)&139536|(Y<<5|Y<<15)&558144;return(de>>16|de>>8|de)&255}for(var ne=typeof Uint8Array<"u",me=ne?new Uint8Array(256):[],Se=0;Se<256;++Se)me[Se]=he(Se);function ue(Y,de){var ie=me[Y&255];return de<=8?ie>>>8-de:(ie=ie<<8|me[Y>>8&255],de<=16?ie>>>16-de:(ie=ie<<8|me[Y>>16&255],ie>>>24-de))}function Ie(Y,de){var ie=de&7,ae=de>>>3;return(Y[ae]|(ie<=6?0:Y[ae+1]<<8))>>>ie&3}function ge(Y,de){var ie=de&7,ae=de>>>3;return(Y[ae]|(ie<=5?0:Y[ae+1]<<8))>>>ie&7}function _e(Y,de){var ie=de&7,ae=de>>>3;return(Y[ae]|(ie<=4?0:Y[ae+1]<<8))>>>ie&15}function oe(Y,de){var ie=de&7,ae=de>>>3;return(Y[ae]|(ie<=3?0:Y[ae+1]<<8))>>>ie&31}function Re(Y,de){var ie=de&7,ae=de>>>3;return(Y[ae]|(ie<=1?0:Y[ae+1]<<8))>>>ie&127}function tt(Y,de,ie){var ae=de&7,fe=de>>>3,pe=(1<<ie)-1,Oe=Y[fe]>>>ae;return ie<8-ae||(Oe|=Y[fe+1]<<8-ae,ie<16-ae)||(Oe|=Y[fe+2]<<16-ae,ie<24-ae)||(Oe|=Y[fe+3]<<24-ae),Oe&pe}function Be(Y,de,ie){var ae=de&7,fe=de>>>3;return ae<=5?Y[fe]|=(ie&7)<<ae:(Y[fe]|=ie<<ae&255,Y[fe+1]=(ie&7)>>8-ae),de+3}function Ke(Y,de,ie){var ae=de&7,fe=de>>>3;return ie=(ie&1)<<ae,Y[fe]|=ie,de+1}function Ze(Y,de,ie){var ae=de&7,fe=de>>>3;return ie<<=ae,Y[fe]|=ie&255,ie>>>=8,Y[fe+1]=ie,de+8}function Je(Y,de,ie){var ae=de&7,fe=de>>>3;return ie<<=ae,Y[fe]|=ie&255,ie>>>=8,Y[fe+1]=ie&255,Y[fe+2]=ie>>>8,de+16}function dt(Y,de){var ie=Y.length,ae=2*ie>de?2*ie:de+5,fe=0;if(ie>=de)return Y;if(Zt){var pe=c_(ae);if(Y.copy)Y.copy(pe);else for(;fe<Y.length;++fe)pe[fe]=Y[fe];return pe}else if(ne){var Oe=new Uint8Array(ae);if(Oe.set)Oe.set(Y);else for(;fe<ie;++fe)Oe[fe]=Y[fe];return Oe}return Y.length=ae,Y}function pt(Y){for(var de=new Array(Y),ie=0;ie<Y;++ie)de[ie]=0;return de}function bt(Y,de,ie){var ae=1,fe=0,pe=0,Oe=0,ke=0,Ee=Y.length,Ce=ne?new Uint16Array(32):pt(32);for(pe=0;pe<32;++pe)Ce[pe]=0;for(pe=Ee;pe<ie;++pe)Y[pe]=0;Ee=Y.length;var je=ne?new Uint16Array(Ee):pt(Ee);for(pe=0;pe<Ee;++pe)Ce[fe=Y[pe]]++,ae<fe&&(ae=fe),je[pe]=0;for(Ce[0]=0,pe=1;pe<=ae;++pe)Ce[pe+16]=ke=ke+Ce[pe-1]<<1;for(pe=0;pe<Ee;++pe)ke=Y[pe],ke!=0&&(je[pe]=Ce[ke+16]++);var Ge=0;for(pe=0;pe<Ee;++pe)if(Ge=Y[pe],Ge!=0)for(ke=ue(je[pe],ae)>>ae-Ge,Oe=(1<<ae+4-Ge)-1;Oe>=0;--Oe)de[ke|Oe<<Ge]=Ge&15|pe<<4;return ae}var Ot=ne?new Uint16Array(512):pt(512),Rt=ne?new Uint16Array(32):pt(32);if(!ne){for(var qt=0;qt<512;++qt)Ot[qt]=0;for(qt=0;qt<32;++qt)Rt[qt]=0}(function(){for(var Y=[],de=0;de<32;de++)Y.push(5);bt(Y,Rt,32);var ie=[];for(de=0;de<=143;de++)ie.push(8);for(;de<=255;de++)ie.push(9);for(;de<=279;de++)ie.push(7);for(;de<=287;de++)ie.push(8);bt(ie,Ot,288)})();var _t=(function(){for(var de=ne?new Uint8Array(32768):[],ie=0,ae=0;ie<ce.length-1;++ie)for(;ae<ce[ie+1];++ae)de[ae]=ie;for(;ae<32768;++ae)de[ae]=29;var fe=ne?new Uint8Array(259):[];for(ie=0,ae=0;ie<G.length-1;++ie)for(;ae<G[ie+1];++ae)fe[ae]=ie;function pe(ke,Ee){for(var Ce=0;Ce<ke.length;){var je=Math.min(65535,ke.length-Ce),Ge=Ce+je==ke.length;for(Ee.write_shift(1,+Ge),Ee.write_shift(2,je),Ee.write_shift(2,~je&65535);je-- >0;)Ee[Ee.l++]=ke[Ce++]}return Ee.l}function Oe(ke,Ee){for(var Ce=0,je=0,Ge=ne?new Uint16Array(32768):[];je<ke.length;){var Qe=Math.min(65535,ke.length-je);if(Qe<10){for(Ce=Be(Ee,Ce,+(je+Qe==ke.length)),Ce&7&&(Ce+=8-(Ce&7)),Ee.l=Ce/8|0,Ee.write_shift(2,Qe),Ee.write_shift(2,~Qe&65535);Qe-- >0;)Ee[Ee.l++]=ke[je++];Ce=Ee.l*8;continue}Ce=Be(Ee,Ce,+(je+Qe==ke.length)+2);for(var lt=0;Qe-- >0;){var Ye=ke[je];lt=(lt<<5^Ye)&32767;var st=-1,At=0;if((st=Ge[lt])&&(st|=je&-32768,st>je&&(st-=32768),st<je))for(;ke[st+At]==ke[je+At]&&At<250;)++At;if(At>2){Ye=fe[At],Ye<=22?Ce=Ze(Ee,Ce,me[Ye+1]>>1)-1:(Ze(Ee,Ce,3),Ce+=5,Ze(Ee,Ce,me[Ye-23]>>5),Ce+=3);var er=Ye<8?0:Ye-4>>2;er>0&&(Je(Ee,Ce,At-G[Ye]),Ce+=er),Ye=de[je-st],Ce=Ze(Ee,Ce,me[Ye]>>3),Ce-=3;var mr=Ye<4?0:Ye-2>>1;mr>0&&(Je(Ee,Ce,je-st-ce[Ye]),Ce+=mr);for(var Jr=0;Jr<At;++Jr)Ge[lt]=je&32767,lt=(lt<<5^ke[je])&32767,++je;Qe-=At-1}else Ye<=143?Ye=Ye+48:Ce=Ke(Ee,Ce,1),Ce=Ze(Ee,Ce,me[Ye]),Ge[lt]=je&32767,++je}Ce=Ze(Ee,Ce,0)-1}return Ee.l=(Ce+7)/8|0,Ee.l}return function(Ee,Ce){return Ee.length<8?pe(Ee,Ce):Oe(Ee,Ce)}})();function Mt(Y){var de=Me(50+Math.floor(Y.length*1.1)),ie=_t(Y,de);return de.slice(0,ie)}var ot=ne?new Uint16Array(32768):pt(32768),ln=ne?new Uint16Array(32768):pt(32768),zt=ne?new Uint16Array(128):pt(128),si=1,Qt=1;function Tr(Y,de){var ie=oe(Y,de)+257;de+=5;var ae=oe(Y,de)+1;de+=5;var fe=_e(Y,de)+4;de+=4;for(var pe=0,Oe=ne?new Uint8Array(19):pt(19),ke=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Ee=1,Ce=ne?new Uint8Array(8):pt(8),je=ne?new Uint8Array(8):pt(8),Ge=Oe.length,Qe=0;Qe<fe;++Qe)Oe[B[Qe]]=pe=ge(Y,de),Ee<pe&&(Ee=pe),Ce[pe]++,de+=3;var lt=0;for(Ce[0]=0,Qe=1;Qe<=Ee;++Qe)je[Qe]=lt=lt+Ce[Qe-1]<<1;for(Qe=0;Qe<Ge;++Qe)(lt=Oe[Qe])!=0&&(ke[Qe]=je[lt]++);var Ye=0;for(Qe=0;Qe<Ge;++Qe)if(Ye=Oe[Qe],Ye!=0){lt=me[ke[Qe]]>>8-Ye;for(var st=(1<<7-Ye)-1;st>=0;--st)zt[lt|st<<Ye]=Ye&7|Qe<<3}var At=[];for(Ee=1;At.length<ie+ae;)switch(lt=zt[Re(Y,de)],de+=lt&7,lt>>>=3){case 16:for(pe=3+Ie(Y,de),de+=2,lt=At[At.length-1];pe-- >0;)At.push(lt);break;case 17:for(pe=3+ge(Y,de),de+=3;pe-- >0;)At.push(0);break;case 18:for(pe=11+Re(Y,de),de+=7;pe-- >0;)At.push(0);break;default:At.push(lt),Ee<lt&&(Ee=lt);break}var er=At.slice(0,ie),mr=At.slice(ie);for(Qe=ie;Qe<286;++Qe)er[Qe]=0;for(Qe=ae;Qe<30;++Qe)mr[Qe]=0;return si=bt(er,ot,286),Qt=bt(mr,ln,30),de}function Bi(Y,de){if(Y[0]==3&&!(Y[1]&3))return[hl(de),2];for(var ie=0,ae=0,fe=c_(de||1<<18),pe=0,Oe=fe.length>>>0,ke=0,Ee=0;(ae&1)==0;){if(ae=ge(Y,ie),ie+=3,ae>>>1)ae>>1==1?(ke=9,Ee=5):(ie=Tr(Y,ie),ke=si,Ee=Qt);else{ie&7&&(ie+=8-(ie&7));var Ce=Y[ie>>>3]|Y[(ie>>>3)+1]<<8;if(ie+=32,Ce>0)for(!de&&Oe<pe+Ce&&(fe=dt(fe,pe+Ce),Oe=fe.length);Ce-- >0;)fe[pe++]=Y[ie>>>3],ie+=8;continue}for(;;){!de&&Oe<pe+32767&&(fe=dt(fe,pe+32767),Oe=fe.length);var je=tt(Y,ie,ke),Ge=ae>>>1==1?Ot[je]:ot[je];if(ie+=Ge&15,Ge>>>=4,(Ge>>>8&255)===0)fe[pe++]=Ge;else{if(Ge==256)break;Ge-=257;var Qe=Ge<8?0:Ge-4>>2;Qe>5&&(Qe=0);var lt=pe+G[Ge];Qe>0&&(lt+=tt(Y,ie,Qe),ie+=Qe),je=tt(Y,ie,Ee),Ge=ae>>>1==1?Rt[je]:ln[je],ie+=Ge&15,Ge>>>=4;var Ye=Ge<4?0:Ge-2>>1,st=ce[Ge];for(Ye>0&&(st+=tt(Y,ie,Ye),ie+=Ye),!de&&Oe<lt&&(fe=dt(fe,lt+100),Oe=fe.length);pe<lt;)fe[pe]=fe[pe-st],++pe}}}return de?[fe,ie+7>>>3]:[fe.slice(0,pe),ie+7>>>3]}function Gt(Y,de){var ie=Y.slice(Y.l||0),ae=Bi(ie,de);return Y.l+=ae[1],ae[0]}function Ia(Y,de){if(Y)typeof console<"u"&&console.error(de);else throw new Error(de)}function Nr(Y,de){var ie=Y;Li(ie,0);var ae=[],fe=[],pe={FileIndex:ae,FullPaths:fe};T(pe,{root:de.root});for(var Oe=ie.length-4;(ie[Oe]!=80||ie[Oe+1]!=75||ie[Oe+2]!=5||ie[Oe+3]!=6)&&Oe>=0;)--Oe;ie.l=Oe+4,ie.l+=4;var ke=ie.read_shift(2);ie.l+=6;var Ee=ie.read_shift(4);for(ie.l=Ee,Oe=0;Oe<ke;++Oe){ie.l+=20;var Ce=ie.read_shift(4),je=ie.read_shift(4),Ge=ie.read_shift(2),Qe=ie.read_shift(2),lt=ie.read_shift(2);ie.l+=8;var Ye=ie.read_shift(4),st=s(ie.slice(ie.l+Ge,ie.l+Ge+Qe));ie.l+=Ge+Qe+lt;var At=ie.l;ie.l=Ye+4,_i(ie,Ce,je,pe,st),ie.l=At}return pe}function _i(Y,de,ie,ae,fe){Y.l+=2;var pe=Y.read_shift(2),Oe=Y.read_shift(2),ke=o(Y);if(pe&8257)throw new Error("Unsupported ZIP encryption");for(var Ee=Y.read_shift(4),Ce=Y.read_shift(4),je=Y.read_shift(4),Ge=Y.read_shift(2),Qe=Y.read_shift(2),lt="",Ye=0;Ye<Ge;++Ye)lt+=String.fromCharCode(Y[Y.l++]);if(Qe){var st=s(Y.slice(Y.l,Y.l+Qe));(st[21589]||{}).mt&&(ke=st[21589].mt),((fe||{})[21589]||{}).mt&&(ke=fe[21589].mt)}Y.l+=Qe;var At=Y.slice(Y.l,Y.l+Ce);switch(Oe){case 8:At=I(Y,je);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Oe)}var er=!1;pe&8&&(Ee=Y.read_shift(4),Ee==134695760&&(Ee=Y.read_shift(4),er=!0),Ce=Y.read_shift(4),je=Y.read_shift(4)),Ce!=de&&Ia(er,"Bad compressed size: "+de+" != "+Ce),je!=ie&&Ia(er,"Bad uncompressed size: "+ie+" != "+je),li(ae,lt,At,{unsafe:!0,mt:ke})}function la(Y,de){var ie=de||{},ae=[],fe=[],pe=Me(1),Oe=ie.compression?8:0,ke=0,Ee=0,Ce=0,je=0,Ge=0,Qe=Y.FullPaths[0],lt=Qe,Ye=Y.FileIndex[0],st=[],At=0;for(Ee=1;Ee<Y.FullPaths.length;++Ee)if(lt=Y.FullPaths[Ee].slice(Qe.length),Ye=Y.FileIndex[Ee],!(!Ye.size||!Ye.content||lt=="Sh33tJ5")){var er=je,mr=Me(lt.length);for(Ce=0;Ce<lt.length;++Ce)mr.write_shift(1,lt.charCodeAt(Ce)&127);mr=mr.slice(0,mr.l),st[Ge]=n7.buf(Ye.content,0);var Jr=Ye.content;Oe==8&&(Jr=R(Jr)),pe=Me(30),pe.write_shift(4,67324752),pe.write_shift(2,20),pe.write_shift(2,ke),pe.write_shift(2,Oe),Ye.mt?a(pe,Ye.mt):pe.write_shift(4,0),pe.write_shift(-4,st[Ge]),pe.write_shift(4,Jr.length),pe.write_shift(4,Ye.content.length),pe.write_shift(2,mr.length),pe.write_shift(2,0),je+=pe.length,ae.push(pe),je+=mr.length,ae.push(mr),je+=Jr.length,ae.push(Jr),pe=Me(46),pe.write_shift(4,33639248),pe.write_shift(2,0),pe.write_shift(2,20),pe.write_shift(2,ke),pe.write_shift(2,Oe),pe.write_shift(4,0),pe.write_shift(-4,st[Ge]),pe.write_shift(4,Jr.length),pe.write_shift(4,Ye.content.length),pe.write_shift(2,mr.length),pe.write_shift(2,0),pe.write_shift(2,0),pe.write_shift(2,0),pe.write_shift(2,0),pe.write_shift(4,0),pe.write_shift(4,er),At+=pe.l,fe.push(pe),At+=mr.length,fe.push(mr),++Ge}return pe=Me(22),pe.write_shift(4,101010256),pe.write_shift(2,0),pe.write_shift(2,0),pe.write_shift(2,Ge),pe.write_shift(2,Ge),pe.write_shift(4,At),pe.write_shift(4,je),pe.write_shift(2,0),kn([kn(ae),kn(fe),pe])}var wr={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 Tt(Y,de){if(Y.ctype)return Y.ctype;var ie=Y.name||"",ae=ie.match(/\.([^\.]+)$/);return ae&&wr[ae[1]]||de&&(ae=(ie=de).match(/[\.\\]([^\.\\])+$/),ae&&wr[ae[1]])?wr[ae[1]]:"application/octet-stream"}function Kt(Y){for(var de=Bf(Y),ie=[],ae=0;ae<de.length;ae+=76)ie.push(de.slice(ae,ae+76));return ie.join(`\r
|
|
254
|
-
`)+`\r
|
|
255
|
-
`}function ro(Y){var de=Y.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Ce){var je=Ce.charCodeAt(0).toString(16).toUpperCase();return"="+(je.length==1?"0"+je:je)});de=de.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),de.charAt(0)==`
|
|
256
|
-
`&&(de="=0D"+de.slice(1)),de=de.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
|
|
257
|
-
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var ie=[],ae=de.split(`\r
|
|
258
|
-
`),fe=0;fe<ae.length;++fe){var pe=ae[fe];if(pe.length==0){ie.push("");continue}for(var Oe=0;Oe<pe.length;){var ke=76,Ee=pe.slice(Oe,Oe+ke);Ee.charAt(ke-1)=="="?ke--:Ee.charAt(ke-2)=="="?ke-=2:Ee.charAt(ke-3)=="="&&(ke-=3),Ee=pe.slice(Oe,Oe+ke),Oe+=ke,Oe<pe.length&&(Ee+="="),ie.push(Ee)}}return ie.join(`\r
|
|
259
|
-
`)}function un(Y){for(var de=[],ie=0;ie<Y.length;++ie){for(var ae=Y[ie];ie<=Y.length&&ae.charAt(ae.length-1)=="=";)ae=ae.slice(0,ae.length-1)+Y[++ie];de.push(ae)}for(var fe=0;fe<de.length;++fe)de[fe]=de[fe].replace(/[=][0-9A-Fa-f]{2}/g,function(pe){return String.fromCharCode(parseInt(pe.slice(1),16))});return Ta(de.join(`\r
|
|
260
|
-
`))}function $i(Y,de,ie){for(var ae="",fe="",pe="",Oe,ke=0;ke<10;++ke){var Ee=de[ke];if(!Ee||Ee.match(/^\s*$/))break;var Ce=Ee.match(/^(.*?):\s*([^\s].*)$/);if(Ce)switch(Ce[1].toLowerCase()){case"content-location":ae=Ce[2].trim();break;case"content-type":pe=Ce[2].trim();break;case"content-transfer-encoding":fe=Ce[2].trim();break}}switch(++ke,fe.toLowerCase()){case"base64":Oe=Ta(Co(de.slice(ke).join("")));break;case"quoted-printable":Oe=un(de.slice(ke));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+fe)}var je=li(Y,ae.slice(ie.length),Oe,{unsafe:!0});pe&&(je.ctype=pe)}function qi(Y,de){if(Z(Y.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var ie=de&&de.root||"",ae=(Zt&&Buffer.isBuffer(Y)?Y.toString("binary"):Z(Y)).split(`\r
|
|
261
|
-
`),fe=0,pe="";for(fe=0;fe<ae.length;++fe)if(pe=ae[fe],!!/^Content-Location:/i.test(pe)&&(pe=pe.slice(pe.indexOf("file")),ie||(ie=pe.slice(0,pe.lastIndexOf("/")+1)),pe.slice(0,ie.length)!=ie))for(;ie.length>0&&(ie=ie.slice(0,ie.length-1),ie=ie.slice(0,ie.lastIndexOf("/")+1),pe.slice(0,ie.length)!=ie););var Oe=(ae[1]||"").match(/boundary="(.*?)"/);if(!Oe)throw new Error("MAD cannot find boundary");var ke="--"+(Oe[1]||""),Ee=[],Ce=[],je={FileIndex:Ee,FullPaths:Ce};T(je);var Ge,Qe=0;for(fe=0;fe<ae.length;++fe){var lt=ae[fe];lt!==ke&<!==ke+"--"||(Qe++&&$i(je,ae.slice(Ge,fe),ie),Ge=fe)}return je}function yt(Y,de){var ie=de||{},ae=ie.boundary||"SheetJS";ae="------="+ae;for(var fe=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+ae.slice(2)+'"',"","",""],pe=Y.FullPaths[0],Oe=pe,ke=Y.FileIndex[0],Ee=1;Ee<Y.FullPaths.length;++Ee)if(Oe=Y.FullPaths[Ee].slice(pe.length),ke=Y.FileIndex[Ee],!(!ke.size||!ke.content||Oe=="Sh33tJ5")){Oe=Oe.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(At){return"_x"+At.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(At){return"_u"+At.charCodeAt(0).toString(16)+"_"});for(var Ce=ke.content,je=Zt&&Buffer.isBuffer(Ce)?Ce.toString("binary"):Z(Ce),Ge=0,Qe=Math.min(1024,je.length),lt=0,Ye=0;Ye<=Qe;++Ye)(lt=je.charCodeAt(Ye))>=32&<<128&&++Ge;var st=Ge>=Qe*4/5;fe.push(ae),fe.push("Content-Location: "+(ie.root||"file:///C:/SheetJS/")+Oe),fe.push("Content-Transfer-Encoding: "+(st?"quoted-printable":"base64")),fe.push("Content-Type: "+Tt(ke,Oe)),fe.push(""),fe.push(st?ro(je):Kt(je))}return fe.push(ae+`--\r
|
|
262
|
-
`),fe.join(`\r
|
|
263
|
-
`)}function Si(Y){var de={};return T(de,Y),de}function li(Y,de,ie,ae){var fe=ae&&ae.unsafe;fe||T(Y);var pe=!fe&&yr.find(Y,de);if(!pe){var Oe=Y.FullPaths[0];de.slice(0,Oe.length)==Oe?Oe=de:(Oe.slice(-1)!="/"&&(Oe+="/"),Oe=(Oe+de).replace("//","/")),pe={name:i(de),type:2},Y.FileIndex.push(pe),Y.FullPaths.push(Oe),fe||yr.utils.cfb_gc(Y)}return pe.content=ie,pe.size=ie?ie.length:0,ae&&(ae.CLSID&&(pe.clsid=ae.CLSID),ae.mt&&(pe.mt=ae.mt),ae.ct&&(pe.ct=ae.ct)),pe}function Rn(Y,de){T(Y);var ie=yr.find(Y,de);if(ie){for(var ae=0;ae<Y.FileIndex.length;++ae)if(Y.FileIndex[ae]==ie)return Y.FileIndex.splice(ae,1),Y.FullPaths.splice(ae,1),!0}return!1}function Wr(Y,de,ie){T(Y);var ae=yr.find(Y,de);if(ae){for(var fe=0;fe<Y.FileIndex.length;++fe)if(Y.FileIndex[fe]==ae)return Y.FileIndex[fe].name=i(ie),Y.FullPaths[fe]=ie,!0}return!1}function Mr(Y){L(Y,!0)}return t.find=C,t.read=E,t.parse=c,t.write=Q,t.writeFile=ee,t.utils={cfb_new:Si,cfb_add:li,cfb_del:Rn,cfb_mov:Wr,cfb_gc:Mr,ReadShift:Af,CheckField:wN,prep_blob:Li,bconcat:kn,use_zlib:N,_deflateRaw:Mt,_inflateRaw:Gt,consts:H},t})();function i7(e){return typeof e=="string"?Fp(e):Array.isArray(e)?CI(e):e}function Ch(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=Fp(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?qf(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([i7(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(typeof saveAs<"u")return saveAs(i,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var o=document.createElement("a");if(o.download!=null)return o.download=e,o.href=a,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}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=Nh(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 Fn(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 y_(e,t){for(var r=[],n=Fn(e),i=0;i!==n.length;++i)r[e[n[i]][t]]==null&&(r[e[n[i]][t]]=n[i]);return r}function Mb(e){for(var t=[],r=Fn(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function Dp(e){for(var t=[],r=Fn(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function a7(e){for(var t=[],r=Fn(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 bd=new Date(1899,11,30,0,0,0);function yi(e,t){var r=e.getTime(),n=bd.getTime()+(e.getTimezoneOffset()-bd.getTimezoneOffset())*6e4;return(r-n)/(1440*60*1e3)}var iN=new Date,o7=bd.getTime()+(iN.getTimezoneOffset()-bd.getTimezoneOffset())*6e4,x_=iN.getTimezoneOffset();function aN(e){var t=new Date;return t.setTime(e*24*60*60*1e3+o7),t.getTimezoneOffset()!==x_&&t.setTime(t.getTime()+(t.getTimezoneOffset()-x_)*6e4),t}var b_=new Date("2017-02-19T19:06:09.000Z"),oN=isNaN(b_.getFullYear())?new Date("2/19/17"):b_,s7=oN.getFullYear()==2017;function ai(e,t){var r=new Date(e);if(s7)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(oN.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function Bp(e,t){if(Zt&&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(a){return r[a]||a})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function xi(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]=xi(e[r]));return t}function qr(e,t){for(var r="";r.length<t;)r+=e;return r}function Ao(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(i,a){return r=-r,a}),!isNaN(t=Number(n)))?t/r:t}var l7=["january","february","march","april","may","june","july","august","september","october","november","december"];function $f(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),i=t.getMonth(),a=t.getDate();if(isNaN(a))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&&l7.indexOf(o)==-1)return r}else if(o.match(/[a-z]/))return r;return n<0||n>8099?r:(i>0||a>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function Dt(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return Zt?n=Ro(r):n=jI(r),yr.utils.cfb_add(e,t,n)}yr.utils.cfb_add(e,t,r)}else e.file(t,r)}function Db(){return yr.utils.cfb_new()}var sn=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
|
|
264
|
-
`,u7={""":'"',"'":"'",">":">","<":"<","&":"&"},Bb=Mb(u7),$b=/[&<>'"]/g,c7=/[\u0000-\u0008\u000b-\u001f]/g;function pr(e){var t=e+"";return t.replace($b,function(r){return Bb[r]}).replace(c7,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function w_(e){return pr(e).replace(/ /g,"_x0020_")}var sN=/[\u0000-\u001f]/g;function f7(e){var t=e+"";return t.replace($b,function(r){return Bb[r]}).replace(/\n/g,"<br/>").replace(sN,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function h7(e){var t=e+"";return t.replace($b,function(r){return Bb[r]}).replace(sN,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function d7(e){return e.replace(/(\r\n|[\r\n])/g," ")}function p7(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function gv(e){for(var t="",r=0,n=0,i=0,a=0,o=0,s=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(i=e.charCodeAt(r++),n>191&&n<224){o=(n&31)<<6,o|=i&63,t+=String.fromCharCode(o);continue}if(a=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}o=e.charCodeAt(r++),s=((n&7)<<18|(i&63)<<12|(a&63)<<6|o&63)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(s&1023))}return t}function __(e){var t=hl(2*e.length),r,n,i=1,a=0,o=0,s;for(n=0;n<e.length;n+=i)i=1,(s=e.charCodeAt(n))<128?r=s:s<224?(r=(s&31)*64+(e.charCodeAt(n+1)&63),i=2):s<240?(r=(s&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),i=3):(i=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[a++]=o&255,t[a++]=o>>>8,o=0),t[a++]=r%256,t[a++]=r>>>8;return t.slice(0,a).toString("ucs2")}function S_(e){return Ro(e,"binary").toString("utf8")}var z0="foo bar bazâð£",Sf=Zt&&(S_(z0)==gv(z0)&&S_||__(z0)==gv(z0)&&__)||gv,qf=Zt?function(e){return Ro(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,i=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,i=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(i&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("")},v7=(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,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}})(),lN=/(^\s|\s$|\n)/;function Ln(e,t){return"<"+e+(t.match(lN)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function Uf(e){return Fn(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function et(e,t,r){return"<"+e+(r!=null?Uf(r):"")+(t!=null?(t.match(lN)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function G2(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function m7(e,t){switch(typeof e){case"string":var r=et("vt:lpwstr",pr(e));return r=r.replace(/"/g,"_x0022_"),r;case"number":return et((e|0)==e?"vt:i4":"vt:r8",pr(String(e)));case"boolean":return et("vt:bool",e?"true":"false")}if(e instanceof Date)return et("vt:filetime",G2(e));throw new Error("Unable to serialize "+e)}var _n={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"},fc=["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"],Ii={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 g7(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),i=e[t+6]&15,a=5;a>=0;--a)i=i*256+e[t+a];return n==2047?i==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),r*Math.pow(2,n-52)*i)}function y7(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,o=n?-t:t;isFinite(o)?o==0?i=a=0:(i=Math.floor(Math.log(o)/Math.LN2),a=o*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(t)?26985:0);for(var s=0;s<=5;++s,a/=256)e[r+s]=a&255;e[r+6]=(i&15)<<4|a&15,e[r+7]=i>>4|n}var A_=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,a=e[0][n].length;i<a;i+=r)t.push.apply(t,e[0][n].slice(i,i+r));return t},T_=Zt?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Ro(t)})):A_(e)}:A_,E_=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(hf(e,i)));return n.join("").replace(_f,"")},qb=Zt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(_f,""):E_(e,t,r)}:E_,O_=function(e,t,r){for(var n=[],i=t;i<t+r;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},uN=Zt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):O_(e,t,r)}:O_,P_=function(e,t,r){for(var n=[],i=t;i<r;i++)n.push(String.fromCharCode(cu(e,i)));return n.join("")},jh=Zt?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):P_(t,r,n)}:P_,cN=function(e,t){var r=Fi(e,t);return r>0?jh(e,t+4,t+4+r-1):""},fN=cN,hN=function(e,t){var r=Fi(e,t);return r>0?jh(e,t+4,t+4+r-1):""},dN=hN,pN=function(e,t){var r=2*Fi(e,t);return r>0?jh(e,t+4,t+4+r-1):""},vN=pN,mN=function(t,r){var n=Fi(t,r);return n>0?qb(t,r+4,r+4+n):""},gN=mN,yN=function(e,t){var r=Fi(e,t);return r>0?jh(e,t+4,t+4+r):""},xN=yN,bN=function(e,t){return g7(e,t)},wd=bN,Ub=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};Zt&&(fN=function(t,r){if(!Buffer.isBuffer(t))return cN(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},dN=function(t,r){if(!Buffer.isBuffer(t))return hN(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},vN=function(t,r){if(!Buffer.isBuffer(t))return pN(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},gN=function(t,r){if(!Buffer.isBuffer(t))return mN(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},xN=function(t,r){if(!Buffer.isBuffer(t))return yN(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},wd=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):bN(t,r)},Ub=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var cu=function(e,t){return e[t]},hf=function(e,t){return e[t+1]*256+e[t]},x7=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},Fi=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Hs=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},b7=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Af(e,t){var r="",n,i,a=[],o,s,l,u;switch(t){case"dbcs":if(u=this.l,Zt&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)r+=String.fromCharCode(hf(this,u)),u+=2;e*=2;break;case"utf8":r=jh(this,this.l,this.l+e);break;case"utf16le":e*=2,r=qb(this,this.l,this.l+e);break;case"wstr":return Af.call(this,e,"dbcs");case"lpstr-ansi":r=fN(this,this.l),e=4+Fi(this,this.l);break;case"lpstr-cp":r=dN(this,this.l),e=4+Fi(this,this.l);break;case"lpwstr":r=vN(this,this.l),e=4+2*Fi(this,this.l);break;case"lpp4":e=4+Fi(this,this.l),r=gN(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+Fi(this,this.l),r=xN(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(o=cu(this,this.l+e++))!==0;)a.push($0(o));r=a.join("");break;case"_wstr":for(e=0,r="";(o=hf(this,this.l+e))!==0;)a.push($0(o)),e+=2;e+=2,r=a.join("");break;case"dbcs-cont":for(r="",u=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return o=cu(this,u),this.l=u+1,s=Af.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),a.join("")+s;a.push($0(hf(this,u))),u+=2}r=a.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",u=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return o=cu(this,u),this.l=u+1,s=Af.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),a.join("")+s;a.push($0(cu(this,u))),u+=1}r=a.join("");break;default:switch(e){case 1:return n=cu(this,this.l),this.l++,n;case 2:return n=(t==="i"?x7:hf)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||(this[this.l+3]&128)===0?(n=(e>0?Hs:b7)(this,this.l),this.l+=4,n):(i=Fi(this,this.l),this.l+=4,i);case 8:case-8:if(t==="f")return e==8?i=wd(this,this.l):i=wd([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:r=uN(this,this.l,e);break}}return this.l+=e,r}var w7=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},_7=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},S7=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function A7(e,t,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=t.length;++i)S7(this,t.charCodeAt(i),this.l+2*i);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=t.charCodeAt(i)&255;n=t.length}else if(r==="hex"){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}else if(r==="utf16le"){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var o=t.charCodeAt(i);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<a;)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,w7(this,t,this.l);break;case 8:if(n=8,r==="f"){y7(this,t,this.l);break}case 16:break;case-4:n=4,_7(this,t,this.l);break}return this.l+=n,this}function wN(e,t){var r=uN(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Li(e,t){e.l=t,e.read_shift=Af,e.chk=wN,e.write_shift=A7}function Xa(e,t){e.l+=t}function Me(e){var t=hl(e);return Li(t,0),t}function gi(){var e=[],t=Zt?256:2048,r=function(u){var c=Me(u);return Li(c,0),c},n=r(t),i=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},a=function(u){return n&&u<n.length-n.l?n:(i(),n=r(Math.max(u+1,t)))},o=function(){return i(),kn(e)},s=function(u){i(),n=u,n.l==null&&(n.l=n.length),a(t)};return{next:a,push:s,end:o,_bufs:e}}function ze(e,t,r,n){var i=+t,a;if(!isNaN(i)){n||(n=gB[i].p||(r||[]).length||0),a=1+(i>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var o=e.next(a);i<=127?o.write_shift(1,i):(o.write_shift(1,(i&127)+128),o.write_shift(1,i>>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&&Ub(r)&&e.push(r)}}function Tf(e,t,r){var n=xi(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 N_(e,t,r){var n=xi(e);return n.s=Tf(n.s,t.s,r),n.e=Tf(n.e,t.s,r),n}function Ef(e,t){if(e.cRel&&e.c<0)for(e=xi(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=xi(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=vr(e);return!e.cRel&&e.cRel!=null&&(r=O7(r)),!e.rRel&&e.rRel!=null&&(r=T7(r)),r}function yv(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?"":"$")+Gn(e.s.c)+":"+(e.e.cRel?"":"$")+Gn(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+In(e.s.r)+":"+(e.e.rRel?"":"$")+In(e.e.r):Ef(e.s,t.biff)+":"+Ef(e.e,t.biff)}function zb(e){return parseInt(E7(e),10)-1}function In(e){return""+(e+1)}function T7(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function E7(e){return e.replace(/\$(\d+)$/,"$1")}function Wb(e){for(var t=P7(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Gn(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 O7(e){return e.replace(/^([A-Z])/,"$$$1")}function P7(e){return e.replace(/^\$([A-Z])/,"$1")}function N7(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Sn(e){for(var t=0,r=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(r=26*r+(i-64))}return{c:r-1,r:t-1}}function vr(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 Di(e){var t=e.indexOf(":");return t==-1?{s:Sn(e),e:Sn(e)}:{s:Sn(e.slice(0,t)),e:Sn(e.slice(t+1))}}function an(e,t){return typeof t>"u"||typeof t=="number"?an(e.s,e.e):(typeof e!="string"&&(e=vr(e)),typeof t!="string"&&(t=vr(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,i=0,a=e.length;for(r=0;n<a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.s.c=--r,r=0;n<a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;if(t.s.r=--r,n===a||i!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.e.c=--r,r=0;n!=a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;return t.e.r=--r,t}function C_(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=ws(e.z,r?yi(t):t)}catch{}try{return e.w=ws((e.XF||{}).numFmtId||(r?14:0),r?yi(t):t)}catch{return""+t}}function jo(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"?kh[e.v]||e.v:t==null?C_(e,e.v):C_(e,t))}function xl(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function _N(e,t,r){var n=r||{},i=e?Array.isArray(e):n.dense,a=e||(i?[]:{}),o=0,s=0;if(a&&n.origin!=null){if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?Sn(n.origin):n.origin;o=l.r,s=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var c=Ir(a["!ref"]);u.s.c=c.s.c,u.s.r=c.s.r,u.e.c=Math.max(u.e.c,c.e.c),u.e.r=Math.max(u.e.r,c.e.r),o==-1&&(u.e.r=o=c.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]},g=o+f,p=s+d;if(u.s.r>g&&(u.s.r=g),u.s.c>p&&(u.s.c=p),u.e.r<g&&(u.e.r=g),u.e.c<p&&(u.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||zr[14],n.cellDates?(h.t="d",h.w=ws(h.z,yi(h.v))):(h.t="n",h.v=yi(h.v),h.w=ws(h.z,h.v))):h.t="s";if(i)a[g]||(a[g]=[]),a[g][p]&&a[g][p].z&&(h.z=a[g][p].z),a[g][p]=h;else{var m=vr({c:p,r:g});a[m]&&a[m].z&&(h.z=a[m].z),a[m]=h}}}return u.s.c<1e7&&(a["!ref"]=an(u)),a}function hc(e,t){return _N(null,e,t)}function C7(e){return e.read_shift(4,"i")}function Ca(e,t){return t||(t=Me(4)),t.write_shift(4,e),t}function Vn(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function An(e,t){var r=!1;return t==null&&(r=!0,t=Me(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 j7(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function k7(e,t){return t||(t=Me(4)),t.write_shift(2,0),t.write_shift(2,0),t}function Hb(e,t){var r=e.l,n=e.read_shift(1),i=Vn(e),a=[],o={t:i,h:i};if((n&1)!==0){for(var s=e.read_shift(4),l=0;l!=s;++l)a.push(j7(e));o.r=a}else o.r=[{ich:0,ifnt:0}];return e.l=r+t,o}function L7(e,t){var r=!1;return t==null&&(r=!0,t=Me(15+4*e.t.length)),t.write_shift(1,0),An(e.t,t),r?t.slice(0,t.l):t}var I7=Hb;function F7(e,t){var r=!1;return t==null&&(r=!0,t=Me(23+4*e.t.length)),t.write_shift(1,1),An(e.t,t),t.write_shift(4,1),k7({},t),r?t.slice(0,t.l):t}function oa(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 bl(e,t){return t==null&&(t=Me(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function wl(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function _l(e,t){return t==null&&(t=Me(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var R7=Vn,SN=An;function Gb(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function _d(e,t){var r=!1;return t==null&&(r=!0,t=Me(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 M7=Vn,V2=Gb,Vb=_d;function AN(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var i=n===0?wd([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Hs(t,0)>>2;return r?i/100:i}function TN(e,t){t==null&&(t=Me(4));var r=0,n=0,i=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?n=1:i==(i|0)&&i>=-536870912&&i<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?i:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function EN(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 D7(e,t){return t||(t=Me(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 Sl=EN,dc=D7;function pc(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function dl(e,t){return(t||Me(8)).write_shift(8,e,"f")}function B7(e){var t={},r=e.read_shift(1),n=r>>>1,i=e.read_shift(1),a=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=i;var u=K7[i];u&&(t.rgb=q_(u));break;case 2:t.rgb=q_([o,s,l]);break;case 3:t.theme=i;break}return a!=0&&(t.tint=a>0?a/32767:a/32768),t}function Sd(e,t){if(t||(t=Me(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 $7(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 q7(e,t){t||(t=Me(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 ON=2,ji=3,W0=11,Ad=19,H0=64,U7=65,z7=71,W7=4108,H7=4126,Cn=80,j_={1:{n:"CodePage",t:ON},2:{n:"Category",t:Cn},3:{n:"PresentationFormat",t:Cn},4:{n:"ByteCount",t:ji},5:{n:"LineCount",t:ji},6:{n:"ParagraphCount",t:ji},7:{n:"SlideCount",t:ji},8:{n:"NoteCount",t:ji},9:{n:"HiddenCount",t:ji},10:{n:"MultimediaClipCount",t:ji},11:{n:"ScaleCrop",t:W0},12:{n:"HeadingPairs",t:W7},13:{n:"TitlesOfParts",t:H7},14:{n:"Manager",t:Cn},15:{n:"Company",t:Cn},16:{n:"LinksUpToDate",t:W0},17:{n:"CharacterCount",t:ji},19:{n:"SharedDoc",t:W0},22:{n:"HyperlinksChanged",t:W0},23:{n:"AppVersion",t:ji,p:"version"},24:{n:"DigSig",t:U7},26:{n:"ContentType",t:Cn},27:{n:"ContentStatus",t:Cn},28:{n:"Language",t:Cn},29:{n:"Version",t:Cn},255:{},2147483648:{n:"Locale",t:Ad},2147483651:{n:"Behavior",t:Ad},1919054434:{}},k_={1:{n:"CodePage",t:ON},2:{n:"Title",t:Cn},3:{n:"Subject",t:Cn},4:{n:"Author",t:Cn},5:{n:"Keywords",t:Cn},6:{n:"Comments",t:Cn},7:{n:"Template",t:Cn},8:{n:"LastAuthor",t:Cn},9:{n:"RevNumber",t:Cn},10:{n:"EditTime",t:H0},11:{n:"LastPrinted",t:H0},12:{n:"CreatedDate",t:H0},13:{n:"ModifiedDate",t:H0},14:{n:"PageCount",t:ji},15:{n:"WordCount",t:ji},16:{n:"CharCount",t:ji},17:{n:"Thumbnail",t:z7},18:{n:"Application",t:Cn},19:{n:"DocSecurity",t:ji},255:{},2147483648:{n:"Locale",t:Ad},2147483651:{n:"Behavior",t:Ad},1919054434:{}};function G7(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var V7=G7([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]),K7=xi(V7),kh={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Y7={"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"},G0={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 PN(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function NN(e,t){var r=a7(Y7),n=[],i;n[n.length]=sn,n[n.length]=et("Types",null,{xmlns:_n.CT,"xmlns:xsd":_n.xsd,"xmlns:xsi":_n.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 et("Default",null,{Extension:l[0],ContentType:l[1]})}));var a=function(l){e[l]&&e[l].length>0&&(i=e[l][0],n[n.length]=et("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:G0[l][t.bookType]||G0[l].xlsx}))},o=function(l){(e[l]||[]).forEach(function(u){n[n.length]=et("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:G0[l][t.bookType]||G0[l].xlsx})})},s=function(l){(e[l]||[]).forEach(function(u){n[n.length]=et("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:r[l][0]})})};return a("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(a),["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 Yt={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 CN(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function xu(e){var t=[sn,et("Relationships",null,{xmlns:_n.RELS})];return Fn(e["!id"]).forEach(function(r){t[t.length]=et("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function dr(e,t,r,n,i,a){if(i||(i={}),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,i.Id="rId"+t,i.Type=n,i.Target=r,[Yt.HLINK,Yt.XPATH,Yt.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function X7(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 L_(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 J7(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 Z7(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(L_(e[r][0],e[r][1])),t.push(J7("",e[r][0]));return t.push(L_("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function jN(){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 '+vd.version+"</meta:generator></office:meta></office:document-meta>"}var sl=[["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 xv(e,t,r,n,i){i[e]!=null||t==null||t===""||(i[e]=t,t=pr(t),n[n.length]=r?et(e,t,r):Ln(e,t))}function kN(e,t){var r=t||{},n=[sn,et("cp:coreProperties",null,{"xmlns:cp":_n.CORE_PROPS,"xmlns:dc":_n.dc,"xmlns:dcterms":_n.dcterms,"xmlns:dcmitype":_n.dcmitype,"xmlns:xsi":_n.xsi})],i={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&xv("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:G2(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&xv("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:G2(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=sl.length;++a){var o=sl[a],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&&xv(o[0],s,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var bu=[["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"]],LN=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function IN(e){var t=[],r=et;return e||(e={}),e.Application="SheetJS",t[t.length]=sn,t[t.length]=et("Properties",null,{xmlns:_n.EXT_PROPS,"xmlns:vt":_n.vt}),bu.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=pr(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(t[t.length]=r(n[0],i))}}),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>"+pr(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function FN(e){var t=[sn,et("Properties",null,{xmlns:_n.CUST_PROPS,"xmlns:vt":_n.vt})];if(!e)return t.join("");var r=1;return Fn(e).forEach(function(i){++r,t[t.length]=et("property",m7(e[i]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:pr(i)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var I_={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 Q7(e,t){var r=[];return Fn(I_).map(function(n){for(var i=0;i<sl.length;++i)if(sl[i][1]==n)return sl[i];for(i=0;i<bu.length;++i)if(bu[i][1]==n)return bu[i];throw n}).forEach(function(n){if(e[n[1]]!=null){var i=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),r.push(Ln(I_[n[1]]||n[1],i))}}),et("DocumentProperties",r.join(""),{xmlns:Ii.o})}function eF(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&Fn(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)){for(var o=0;o<sl.length;++o)if(a==sl[o][1])return;for(o=0;o<bu.length;++o)if(a==bu[o][1])return;for(o=0;o<r.length;++o)if(a==r[o])return;var s=e[a],l="string";typeof s=="number"?(l="float",s=String(s)):s===!0||s===!1?(l="boolean",s=s?"1":"0"):s=String(s),i.push(et(w_(a),s,{"dt:dt":l}))}}),t&&Fn(t).forEach(function(a){if(Object.prototype.hasOwnProperty.call(t,a)&&!(e&&Object.prototype.hasOwnProperty.call(e,a))){var o=t[a],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),i.push(et(w_(a),o,{"dt:dt":s}))}}),"<"+n+' xmlns="'+Ii.o+'">'+i.join("")+"</"+n+">"}function tF(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),i=(r-n)/Math.pow(2,32);n*=1e7,i*=1e7;var a=n/Math.pow(2,32)|0;a>0&&(n=n%Math.pow(2,32),i+=a);var o=Me(8);return o.write_shift(4,n),o.write_shift(4,i),o}function F_(e,t){var r=Me(4),n=Me(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=Me(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=tF(t);break;case 31:case 80:for(n=Me(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 kn([r,n])}var RN=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function rF(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 R_(e,t,r){var n=Me(8),i=[],a=[],o=8,s=0,l=Me(8),u=Me(8);if(l.write_shift(4,2),l.write_shift(4,1200),u.write_shift(4,1),a.push(l),i.push(u),o+=8+l.length,!t){u=Me(8),u.write_shift(4,0),i.unshift(u);var c=[Me(4)];for(c[0].write_shift(4,e.length),s=0;s<e.length;++s){var f=e[s][0];for(l=Me(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);c.push(l)}l=kn(c),a.unshift(l),o+=8+l.length}for(s=0;s<e.length;++s)if(!(t&&!t[e[s][0]])&&!(RN.indexOf(e[s][0])>-1||LN.indexOf(e[s][0])>-1)&&e[s][1]!=null){var d=e[s][1],h=0;if(t){h=+t[e[s][0]];var g=r[h];if(g.p=="version"&&typeof d=="string"){var p=d.split(".");d=(+p[0]<<16)+(+p[1]||0)}l=F_(g.t,d)}else{var m=rF(d);m==-1&&(m=31,d=String(d)),l=F_(m,d)}a.push(l),u=Me(8),u.write_shift(4,t?h:2+s),i.push(u),o+=8+l.length}var y=8*(a.length+1);for(s=0;s<a.length;++s)i[s].write_shift(4,y),y+=a[s].length;return n.write_shift(4,o),n.write_shift(4,a.length),kn([n].concat(i).concat(a))}function M_(e,t,r,n,i,a){var o=Me(i?68:48),s=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,yr.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,i?2:1),o.write_shift(16,t,"hex"),o.write_shift(4,i?68:48);var l=R_(e,r,n);if(s.push(l),i){var u=R_(i,null,null);o.write_shift(16,a,"hex"),o.write_shift(4,68+l.length),s.push(u)}return kn(s)}function nF(e,t){t||(t=Me(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function iF(e,t){return e.read_shift(t)===1}function ti(e,t){return t||(t=Me(2)),t.write_shift(2,+!!e),t}function MN(e){return e.read_shift(2,"u")}function ea(e,t){return t||(t=Me(2)),t.write_shift(2,e),t}function DN(e,t,r){return r||(r=Me(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function BN(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),i="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var a=e.read_shift(1);a&&(i="dbcs-cont")}else r.biff==12&&(i="wstr");r.biff>=2&&r.biff<=5&&(i="cpstr");var o=n?e.read_shift(n,i):"";return o}function aF(e){var t=e.t||"",r=Me(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=Me(2*t.length);n.write_shift(2*t.length,t,"utf16le");var i=[r,n];return kn(i)}function oF(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 i=e.read_shift(1);return i===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function sF(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):oF(e,n,r)}function lF(e,t,r){if(r.biff>5)return sF(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 $N(e,t,r){return r||(r=Me(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function D_(e,t){t||(t=Me(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 uF(e){var t=Me(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),a=i>-1?31:23;switch(n.charAt(0)){case"#":a=28;break;case".":a&=-3;break}t.write_shift(4,2),t.write_shift(4,a);var o=[8,6815827,6619237,4849780,83];for(r=0;r<o.length;++r)t.write_shift(4,o[r]);if(a==28)n=n.slice(1),D_(n,t);else if(a&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=i>-1?n.slice(0,i):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),a&8&&D_(i>-1?n.slice(i+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 pl(e,t,r,n){return n||(n=Me(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function cF(e,t,r){var n=r.biff>8?4:2,i=e.read_shift(n),a=e.read_shift(n,"i"),o=e.read_shift(n,"i");return[i,a,o]}function fF(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return{s:{c:n,r:t},e:{c:i,r}}}function qN(e,t){return t||(t=Me(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 Kb(e,t,r){var n=1536,i=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var a=Me(i);return a.write_shift(2,n),a.write_shift(2,t),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function hF(e,t){var r=!t||t.biff==8,n=Me(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 dF(e,t){var r=!t||t.biff>=8?2:1,n=Me(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 i=n.slice(0,n.l);return i.l=n.l,i}function pF(e,t){var r=Me(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=aF(e[i]);var a=kn([r].concat(n));return a.parts=[r.length].concat(n.map(function(o){return o.length})),a}function vF(){var e=Me(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 mF(e){var t=Me(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 gF(e,t){var r=e.name||"Arial",n=t&&t.biff==5,i=n?15+r.length:16+2*r.length,a=Me(i);return a.write_shift(2,e.sz*20),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,r.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),a}function yF(e,t,r,n){var i=Me(10);return pl(e,t,n,i),i.write_shift(4,r),i}function xF(e,t,r,n,i){var a=!i||i.biff==8,o=Me(8+ +a+(1+a)*r.length);return pl(e,t,n,o),o.write_shift(2,r.length),a&&o.write_shift(1,1),o.write_shift((1+a)*r.length,r,a?"utf16le":"sbcs"),o}function bF(e,t,r,n){var i=r&&r.biff==5;n||(n=Me(i?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(i?1:2,t.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var a=n.length>n.l?n.slice(0,n.l):n;return a.l==null&&(a.l=a.length),a}function wF(e,t){var r=t.biff==8||!t.biff?4:2,n=Me(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 B_(e,t,r,n){var i=r&&r.biff==5;n||(n=Me(i?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 a=0;return e.numFmtId>0&&i&&(a|=1024),n.write_shift(4,a),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function _F(e){var t=Me(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function SF(e,t,r,n,i,a){var o=Me(8);return pl(e,t,n,o),DN(r,a,o),o}function AF(e,t,r,n){var i=Me(14);return pl(e,t,n,i),dl(r,i),i}function TF(e,t,r){if(r.biff<8)return EF(e,t,r);for(var n=[],i=e.l+t,a=e.read_shift(r.biff>8?4:2);a--!==0;)n.push(cF(e,r.biff>8?12:6,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function EF(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=BN(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function OF(e){var t=Me(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)qN(e[r],t);return t}function PF(e){var t=Me(24),r=Sn(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(" "),i=0;i<16;++i)t.write_shift(1,parseInt(n[i],16));return kn([t,uF(e[1])])}function NF(e){var t=e[1].Tooltip,r=Me(10+2*(t.length+1));r.write_shift(2,2048);var n=Sn(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 i=0;i<t.length;++i)r.write_shift(2,t.charCodeAt(i));return r.write_shift(2,0),r}function CF(e){return e||(e=Me(4)),e.write_shift(2,1),e.write_shift(2,1),e}function jF(e,t,r){if(!r.cellStyles)return Xa(e,t);var n=r&&r.biff>=12?4:2,i=e.read_shift(n),a=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 u={s:i,e:a,w:o,ixfe:s,flags:l};return(r.biff>=5||!r.biff)&&(u.level=l>>8&7),u}function kF(e,t){var r=Me(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 LF(e){for(var t=Me(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function IF(e,t,r){var n=Me(15);return Ih(n,e,t),n.write_shift(8,r,"f"),n}function FF(e,t,r){var n=Me(9);return Ih(n,e,t),n.write_shift(2,r),n}var RF=(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=Mb({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 u=[],c=hl(1);switch(l.type){case"base64":c=Ta(Co(s));break;case"binary":c=Ta(s);break;case"buffer":case"array":c=s;break}Li(c,0);var f=c.read_shift(1),d=!!(f&136),h=!1,g=!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:g=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+f.toString(16))}var p=0,m=521;f==2&&(p=c.read_shift(2)),c.l+=3,f!=2&&(p=c.read_shift(4)),p>1048576&&(p=1e6),f!=2&&(m=c.read_shift(2));var y=c.read_shift(2),x=l.codepage||1252;f!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(x=e[c[c.l]]),c.l+=1,c.l+=2),g&&(c.l+=36);for(var w=[],A={},_=Math.min(c.length,f==2?521:m-10-(h?264:0)),E=g?32:11;c.l<_&&c[c.l]!=13;)switch(A={},A.name=md.utils.decode(x,c.slice(c.l,c.l+E)).replace(/[\u0000\r\n].*$/g,""),c.l+=E,A.type=String.fromCharCode(c.read_shift(1)),f!=2&&!g&&(A.offset=c.read_shift(4)),A.len=c.read_shift(1),f==2&&(A.offset=c.read_shift(2)),A.dec=c.read_shift(1),A.name.length&&w.push(A),f!=2&&(c.l+=g?13:14),A.type){case"B":(!h||A.len!=8)&&l.WTF&&console.log("Skipping "+A.name+":"+A.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+A.name+":"+A.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: "+A.type)}if(c[c.l]!==13&&(c.l=m-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=m;var T=0,k=0;for(u[0]=[],k=0;k!=w.length;++k)u[0][k]=w[k].name;for(;p-- >0;){if(c[c.l]===42){c.l+=y;continue}for(++c.l,u[++T]=[],k=0,k=0;k!=w.length;++k){var L=c.slice(c.l,c.l+w[k].len);c.l+=w[k].len,Li(L,0);var D=md.utils.decode(x,L);switch(w[k].type){case"C":D.trim().length&&(u[T][k]=D.replace(/\s+$/,""));break;case"D":D.length===8?u[T][k]=new Date(+D.slice(0,4),+D.slice(4,6)-1,+D.slice(6,8)):u[T][k]=D;break;case"F":u[T][k]=parseFloat(D.trim());break;case"+":case"I":u[T][k]=g?L.read_shift(-4,"i")^2147483648:L.read_shift(4,"i");break;case"L":switch(D.trim().toUpperCase()){case"Y":case"T":u[T][k]=!0;break;case"N":case"F":u[T][k]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+D+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));u[T][k]="##MEMO##"+(g?parseInt(D.trim(),10):L.read_shift(4));break;case"N":D=D.replace(/\u0000/g,"").trim(),D&&D!="."&&(u[T][k]=+D||0);break;case"@":u[T][k]=new Date(L.read_shift(-8,"f")-621356832e5);break;case"T":u[T][k]=new Date((L.read_shift(4)-2440588)*864e5+L.read_shift(4));break;case"Y":u[T][k]=L.read_shift(4,"i")/1e4+L.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":u[T][k]=-L.read_shift(-8,"f");break;case"B":if(h&&w[k].len==8){u[T][k]=L.read_shift(8,"f");break}case"G":case"P":L.l+=w[k].len;break;case"0":if(w[k].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+w[k].type)}}}if(f!=2&&c.l<c.length&&c[c.l++]!=26)throw new Error("DBF EOF Marker missing "+(c.l-1)+" of "+c.length+" "+c[c.l-1].toString(16));return l&&l.sheetRows&&(u=u.slice(0,l.sheetRows)),l.DBF=w,u}function n(s,l){var u=l||{};u.dateNF||(u.dateNF="yyyymmdd");var c=hc(r(s,u),u);return c["!cols"]=u.DBF.map(function(f){return{wch:f.len,DBF:f}}),delete u.DBF,c}function i(s,l){try{return xl(n(s,l),l)}catch(u){if(l&&l.WTF)throw u}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function o(s,l){var u=l||{};if(+u.codepage>=0&&Df(+u.codepage),u.type=="string")throw new Error("Cannot write DBF to JS string");var c=gi(),f=Nd(s,{header:1,raw:!0,cellDates:!0}),d=f[0],h=f.slice(1),g=s["!cols"]||[],p=0,m=0,y=0,x=1;for(p=0;p<d.length;++p){if(((g[p]||{}).DBF||{}).name){d[p]=g[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"]),A=[],_=[],E=[];for(p=0;p<=w.e.c-w.s.c;++p){var T="",k="",L=0,D=[];for(m=0;m<h.length;++m)h[m][p]!=null&&D.push(h[m][p]);if(D.length==0||d[p]==null){A[p]="?";continue}for(m=0;m<D.length;++m){switch(typeof D[m]){case"number":k="B";break;case"string":k="C";break;case"boolean":k="L";break;case"object":k=D[m]instanceof Date?"D":"C";break;default:k="C"}L=Math.max(L,String(D[m]).length),T=T&&T!=k?"C":k}L>250&&(L=250),k=((g[p]||{}).DBF||{}).type,k=="C"&&g[p].DBF.len>L&&(L=g[p].DBF.len),T=="B"&&k=="N"&&(T="N",E[p]=g[p].DBF.dec,L=g[p].DBF.len),_[p]=T=="C"||k=="N"?L:a[T]||0,x+=_[p],A[p]=T}var C=c.next(32);for(C.write_shift(4,318902576),C.write_shift(4,h.length),C.write_shift(2,296+32*y),C.write_shift(2,x),p=0;p<4;++p)C.write_shift(4,0);for(C.write_shift(4,0|(+t[zP]||3)<<8),p=0,m=0;p<d.length;++p)if(d[p]!=null){var P=c.next(32),M=(d[p].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);P.write_shift(1,M,"sbcs"),P.write_shift(1,A[p]=="?"?"C":A[p],"sbcs"),P.write_shift(4,m),P.write_shift(1,_[p]||a[A[p]]||0),P.write_shift(1,E[p]||0),P.write_shift(1,2),P.write_shift(4,0),P.write_shift(1,0),P.write_shift(4,0),P.write_shift(4,0),m+=_[p]||a[A[p]]||0}var q=c.next(264);for(q.write_shift(4,13),p=0;p<65;++p)q.write_shift(4,0);for(p=0;p<h.length;++p){var J=c.next(x);for(J.write_shift(1,0),m=0;m<d.length;++m)if(d[m]!=null)switch(A[m]){case"L":J.write_shift(1,h[p][m]==null?63:h[p][m]?84:70);break;case"B":J.write_shift(8,h[p][m]||0,"f");break;case"N":var U="0";for(typeof h[p][m]=="number"&&(U=h[p][m].toFixed(E[m]||0)),y=0;y<_[m]-U.length;++y)J.write_shift(1,32);J.write_shift(1,U,"sbcs");break;case"D":h[p][m]?(J.write_shift(4,("0000"+h[p][m].getFullYear()).slice(-4),"sbcs"),J.write_shift(2,("00"+(h[p][m].getMonth()+1)).slice(-2),"sbcs"),J.write_shift(2,("00"+h[p][m].getDate()).slice(-2),"sbcs")):J.write_shift(8,"00000000","sbcs");break;case"C":var H=String(h[p][m]!=null?h[p][m]:"").slice(0,_[m]);for(J.write_shift(1,H,"sbcs"),y=0;y<_[m]-H.length;++y)J.write_shift(1,32);break}}return c.next(1).write_shift(1,26),c.end()}return{to_workbook:i,to_sheet:n,from_sheet:o}})(),MF=(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("+Fn(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(d,h){var g=e[h];return typeof g=="number"?u_(g):g},n=function(d,h,g){var p=h.charCodeAt(0)-32<<4|g.charCodeAt(0)-48;return p==59?d:u_(p)};e["|"]=254;function i(d,h){switch(h.type){case"base64":return a(Co(d),h);case"binary":return a(d,h);case"buffer":return a(Zt&&Buffer.isBuffer(d)?d.toString("binary"):Nh(d),h);case"array":return a(Bp(d),h)}throw new Error("Unrecognized type "+h.type)}function a(d,h){var g=d.split(/[\n\r]+/),p=-1,m=-1,y=0,x=0,w=[],A=[],_=null,E={},T=[],k=[],L=[],D=0,C;for(+h.codepage>=0&&Df(+h.codepage);y!==g.length;++y){D=0;var P=g[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),M=P.replace(/;;/g,"\0").split(";").map(function(B){return B.replace(/\u0000/g,";")}),q=M[0],J;if(P.length>0)switch(q){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":M[1].charAt(0)=="P"&&A.push(P.slice(3).replace(/;;/g,";"));break;case"C":var U=!1,H=!1,ee=!1,Z=!1,Q=-1,le=-1;for(x=1;x<M.length;++x)switch(M[x].charAt(0)){case"A":break;case"X":m=parseInt(M[x].slice(1))-1,H=!0;break;case"Y":for(p=parseInt(M[x].slice(1))-1,H||(m=0),C=w.length;C<=p;++C)w[C]=[];break;case"K":J=M[x].slice(1),J.charAt(0)==='"'?J=J.slice(1,J.length-1):J==="TRUE"?J=!0:J==="FALSE"?J=!1:isNaN(Ao(J))?isNaN($f(J).getDate())||(J=ai(J)):(J=Ao(J),_!==null&&tN(_)&&(J=aN(J))),U=!0;break;case"E":Z=!0;var N=FR(M[x].slice(1),{r:p,c:m});w[p][m]=[w[p][m],N];break;case"S":ee=!0,w[p][m]=[w[p][m],"S5S"];break;case"G":break;case"R":Q=parseInt(M[x].slice(1))-1;break;case"C":le=parseInt(M[x].slice(1))-1;break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+P)}if(U&&(w[p][m]&&w[p][m].length==2?w[p][m][0]=J:w[p][m]=J,_=null),ee){if(Z)throw new Error("SYLK shared formula cannot have own formula");var I=Q>-1&&w[Q][le];if(!I||!I[1])throw new Error("SYLK shared formula cannot find base");w[p][m][1]=RR(I[1],{r:p-Q,c:m-le})}break;case"F":var R=0;for(x=1;x<M.length;++x)switch(M[x].charAt(0)){case"X":m=parseInt(M[x].slice(1))-1,++R;break;case"Y":for(p=parseInt(M[x].slice(1))-1,C=w.length;C<=p;++C)w[C]=[];break;case"M":D=parseInt(M[x].slice(1))/20;break;case"F":break;case"G":break;case"P":_=A[parseInt(M[x].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(L=M[x].slice(1).split(" "),C=parseInt(L[0],10);C<=parseInt(L[1],10);++C)D=parseInt(L[2],10),k[C-1]=D===0?{hidden:!0}:{wch:D},Yb(k[C-1]);break;case"C":m=parseInt(M[x].slice(1))-1,k[m]||(k[m]={});break;case"R":p=parseInt(M[x].slice(1))-1,T[p]||(T[p]={}),D>0?(T[p].hpt=D,T[p].hpx=GN(D)):D===0&&(T[p].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+P)}R<1&&(_=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+P)}}return T.length>0&&(E["!rows"]=T),k.length>0&&(E["!cols"]=k),h&&h.sheetRows&&(w=w.slice(0,h.sheetRows)),[w,E]}function o(d,h){var g=i(d,h),p=g[0],m=g[1],y=hc(p,h);return Fn(m).forEach(function(x){y[x]=m[x]}),y}function s(d,h){return xl(o(d,h),h)}function l(d,h,g,p){var m="C;Y"+(g+1)+";X"+(p+1)+";K";switch(d.t){case"n":m+=d.v||0,d.f&&!d.F&&(m+=";E"+Jb(d.f,{r:g,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 u(d,h){h.forEach(function(g,p){var m="F;W"+(p+1)+" "+(p+1)+" ";g.hidden?m+="0":(typeof g.width=="number"&&!g.wpx&&(g.wpx=Td(g.width)),typeof g.wpx=="number"&&!g.wch&&(g.wch=Ed(g.wpx)),typeof g.wch=="number"&&(m+=Math.round(g.wch))),m.charAt(m.length-1)!=" "&&d.push(m)})}function c(d,h){h.forEach(function(g,p){var m="F;";g.hidden?m+="M0;":g.hpt?m+="M"+20*g.hpt+";":g.hpx&&(m+="M"+20*Od(g.hpx)+";"),m.length>2&&d.push(m+"R"+(p+1))})}function f(d,h){var g=["ID;PWXL;N;E"],p=[],m=Ir(d["!ref"]),y,x=Array.isArray(d),w=`\r
|
|
276
|
-
`;g.push("P;PGeneral"),g.push("F;P0;DG0G8;M255"),d["!cols"]&&u(g,d["!cols"]),d["!rows"]&&c(g,d["!rows"]),g.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 A=m.s.r;A<=m.e.r;++A)for(var _=m.s.c;_<=m.e.c;++_){var E=vr({r:A,c:_});y=x?(d[A]||[])[_]:d[E],!(!y||y.v==null&&(!y.f||y.F))&&p.push(l(y,d,A,_))}return g.join(w)+w+p.join(w)+w+"E"+w}return{to_workbook:s,to_sheet:o,from_sheet:f}})(),DF=(function(){function e(a,o){switch(o.type){case"base64":return t(Co(a),o);case"binary":return t(a,o);case"buffer":return t(Zt&&Buffer.isBuffer(a)?a.toString("binary"):Nh(a),o);case"array":return t(Bp(a),o)}throw new Error("Unrecognized type "+o.type)}function t(a,o){for(var s=a.split(`
|
|
277
|
-
`),l=-1,u=-1,c=0,f=[];c!==s.length;++c){if(s[c].trim()==="BOT"){f[++l]=[],u=0;continue}if(!(l<0)){var d=s[c].trim().split(","),h=d[0],g=d[1];++c;for(var p=s[c]||"";(p.match(/["]/g)||[]).length&1&&c<s.length-1;)p+=`
|
|
278
|
-
`+s[++c];switch(p=p.trim(),+h){case-1:if(p==="BOT"){f[++l]=[],u=0;continue}else if(p!=="EOD")throw new Error("Unrecognized DIF special command "+p);break;case 0:p==="TRUE"?f[l][u]=!0:p==="FALSE"?f[l][u]=!1:isNaN(Ao(g))?isNaN($f(g).getDate())?f[l][u]=g:f[l][u]=ai(g):f[l][u]=Ao(g),++u;break;case 1:p=p.slice(1,p.length-1),p=p.replace(/""/g,'"'),p&&p.match(/^=".*"$/)&&(p=p.slice(2,-1)),f[l][u++]=p!==""?p:null;break}if(p==="EOD")break}}return o&&o.sheetRows&&(f=f.slice(0,o.sheetRows)),f}function r(a,o){return hc(e(a,o),o)}function n(a,o){return xl(r(a,o),o)}var i=(function(){var a=function(l,u,c,f,d){l.push(u),l.push(c+","+f),l.push('"'+d.replace(/"/g,'""')+'"')},o=function(l,u,c,f){l.push(u+","+c),l.push(u==1?'"'+f.replace(/"/g,'""')+'"':f)};return function(l){var u=[],c=Ir(l["!ref"]),f,d=Array.isArray(l);a(u,"TABLE",0,1,"sheetjs"),a(u,"VECTORS",0,c.e.r-c.s.r+1,""),a(u,"TUPLES",0,c.e.c-c.s.c+1,""),a(u,"DATA",0,0,"");for(var h=c.s.r;h<=c.e.r;++h){o(u,-1,0,"BOT");for(var g=c.s.c;g<=c.e.c;++g){var p=vr({r:h,c:g});if(f=d?(l[h]||[])[g]:l[p],!f){o(u,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(u,1,0,"="+f.f):o(u,1,0,""):o(u,0,m,"V");break;case"b":o(u,0,f.v?1:0,f.v?"TRUE":"FALSE");break;case"s":o(u,1,0,isNaN(f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=ws(f.z||zr[14],yi(ai(f.v)))),o(u,0,f.w,"V");break;default:o(u,1,0,"")}}}o(u,-1,0,"EOD");var y=`\r
|
|
279
|
-
`,x=u.join(y);return x}})();return{to_workbook:n,to_sheet:r,from_sheet:i}})(),UN=(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
|
-
`),g=-1,p=-1,m=0,y=[];m!==h.length;++m){var x=h[m].trim().split(":");if(x[0]==="cell"){var w=Sn(x[1]);if(y.length<=w.r)for(g=y.length;g<=w.r;++g)y[g]||(y[g]=[]);switch(g=w.r,p=w.c,x[2]){case"t":y[g][p]=e(x[3]);break;case"v":y[g][p]=+x[3];break;case"vtf":var A=x[x.length-1];case"vtc":switch(x[3]){case"nl":y[g][p]=!!+x[4];break;default:y[g][p]=+x[4];break}x[2]=="vtf"&&(y[g][p]=[y[g][p],A])}}}return d&&d.sheetRows&&(y=y.slice(0,d.sheetRows)),y}function n(f,d){return hc(r(f,d),d)}function i(f,d){return xl(n(f,d),d)}var a=["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 u(f){if(!f||!f["!ref"])return"";for(var d=[],h=[],g,p="",m=Di(f["!ref"]),y=Array.isArray(f),x=m.s.r;x<=m.e.r;++x)for(var w=m.s.c;w<=m.e.c;++w)if(p=vr({r:x,c:w}),g=y?(f[x]||[])[w]:f[p],!(!g||g.v==null||g.t==="z")){switch(h=["cell",p,"t"],g.t){case"s":case"str":h.push(t(g.v));break;case"n":g.f?(h[2]="vtf",h[3]="n",h[4]=g.v,h[5]=t(g.f)):(h[2]="v",h[3]=g.v);break;case"b":h[2]="vt"+(g.f?"f":"c"),h[3]="nl",h[4]=g.v?"1":"0",h[5]=t(g.f||(g.v?"TRUE":"FALSE"));break;case"d":var A=yi(ai(g.v));h[2]="vtc",h[3]="nd",h[4]=""+A,h[5]=g.w||ws(g.z||zr[14],A);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 c(f){return[a,o,s,o,u(f),l].join(`
|
|
287
|
-
`)}return{to_workbook:i,to_sheet:n,from_sheet:c}})(),BF=(function(){function e(c,f,d,h,g){g.raw?f[d][h]=c:c===""||(c==="TRUE"?f[d][h]=!0:c==="FALSE"?f[d][h]=!1:isNaN(Ao(c))?isNaN($f(c).getDate())?f[d][h]=c:f[d][h]=ai(c):f[d][h]=Ao(c))}function t(c,f){var d=f||{},h=[];if(!c||c.length===0)return h;for(var g=c.split(/[\r\n]/),p=g.length-1;p>=0&&g[p].length===0;)--p;for(var m=10,y=0,x=0;x<=p;++x)y=g[x].indexOf(" "),y==-1?y=g[x].length:y++,m=Math.max(m,y);for(x=0;x<=p;++x){h[x]=[];var w=0;for(e(g[x].slice(0,m).trim(),h,x,w,d),w=1;w<=(g[x].length-m)/10+1;++w)e(g[x].slice(m+(w-1)*10,m+w*10).trim(),h,x,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 i(c){for(var f={},d=!1,h=0,g=0;h<c.length;++h)(g=c.charCodeAt(h))==34?d=!d:!d&&g in r&&(f[g]=(f[g]||0)+1);g=[];for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&g.push([f[h],h]);if(!g.length){f=n;for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&g.push([f[h],h])}return g.sort(function(p,m){return p[0]-m[0]||n[p[1]]-n[m[1]]}),r[g.pop()[1]]||44}function a(c,f){var d=f||{},h="",g=d.dense?[]:{},p={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(h=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(h=c.charAt(4),c=c.slice(6)):h=i(c.slice(0,1024)):d&&d.FS?h=d.FS:h=i(c.slice(0,1024));var m=0,y=0,x=0,w=0,A=0,_=h.charCodeAt(0),E=!1,T=0,k=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
|
|
288
|
-
`);var L=d.dateNF!=null?t7(d.dateNF):null;function D(){var C=c.slice(w,A),P={};if(C.charAt(0)=='"'&&C.charAt(C.length-1)=='"'&&(C=C.slice(1,-1).replace(/""/g,'"')),C.length===0)P.t="z";else if(d.raw)P.t="s",P.v=C;else if(C.trim().length===0)P.t="s",P.v=C;else if(C.charCodeAt(0)==61)C.charCodeAt(1)==34&&C.charCodeAt(C.length-1)==34?(P.t="s",P.v=C.slice(2,-1).replace(/""/g,'"')):MR(C)?(P.t="n",P.f=C.slice(1)):(P.t="s",P.v=C);else if(C=="TRUE")P.t="b",P.v=!0;else if(C=="FALSE")P.t="b",P.v=!1;else if(!isNaN(x=Ao(C)))P.t="n",d.cellText!==!1&&(P.w=C),P.v=x;else if(!isNaN($f(C).getDate())||L&&C.match(L)){P.z=d.dateNF||zr[14];var M=0;L&&C.match(L)&&(C=r7(C,d.dateNF,C.match(L)||[]),M=1),d.cellDates?(P.t="d",P.v=ai(C,M)):(P.t="n",P.v=yi(ai(C,M))),d.cellText!==!1&&(P.w=ws(P.z,P.v instanceof Date?yi(P.v):P.v)),d.cellNF||delete P.z}else P.t="s",P.v=C;if(P.t=="z"||(d.dense?(g[m]||(g[m]=[]),g[m][y]=P):g[vr({c:y,r:m})]=P),w=A+1,k=c.charCodeAt(w),p.e.c<y&&(p.e.c=y),p.e.r<m&&(p.e.r=m),T==_)++y;else if(y=0,++m,d.sheetRows&&d.sheetRows<=m)return!0}e:for(;A<c.length;++A)switch(T=c.charCodeAt(A)){case 34:k===34&&(E=!E);break;case _:case 10:case 13:if(!E&&D())break e;break}return A-w>0&&D(),g["!ref"]=an(p),g}function o(c,f){return!(f&&f.PRN)||f.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?a(c,f):hc(t(c,f),f)}function s(c,f){var d="",h=f.type=="string"?[0,0,0,0]:JB(c,f);switch(f.type){case"base64":d=Co(c);break;case"binary":d=c;break;case"buffer":f.codepage==65001?d=c.toString("utf8"):f.codepage&&typeof md<"u"||(d=Zt&&Buffer.isBuffer(c)?c.toString("binary"):Nh(c));break;case"array":d=Bp(c);break;case"string":d=c;break;default:throw new Error("Unrecognized type "+f.type)}return h[0]==239&&h[1]==187&&h[2]==191?d=Sf(d.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?d=Sf(d):f.type=="binary"&&typeof md<"u",d.slice(0,19)=="socialcalc:version:"?UN.to_sheet(f.type=="string"?d:Sf(d),f):o(d,f)}function l(c,f){return xl(s(c,f),f)}function u(c){for(var f=[],d=Ir(c["!ref"]),h,g=Array.isArray(c),p=d.s.r;p<=d.e.r;++p){for(var m=[],y=d.s.c;y<=d.e.c;++y){var x=vr({r:p,c:y});if(h=g?(c[p]||[])[y]:c[x],!h||h.v==null){m.push(" ");continue}for(var w=(h.w||(jo(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:u}})(),$_=(function(){function e(N,I,R){if(N){Li(N,N.l||0);for(var B=R.Enum||Q;N.l<N.length;){var G=N.read_shift(2),ce=B[G]||B[65535],he=N.read_shift(2),ne=N.l+he,me=ce.f&&ce.f(N,he,R);if(N.l=ne,I(me,ce,G))return}}}function t(N,I){switch(I.type){case"base64":return r(Ta(Co(N)),I);case"binary":return r(Ta(N),I);case"buffer":case"array":return r(N,I)}throw"Unsupported type "+I.type}function r(N,I){if(!N)return N;var R=I||{},B=R.dense?[]:{},G="Sheet1",ce="",he=0,ne={},me=[],Se=[],ue={s:{r:0,c:0},e:{r:0,c:0}},Ie=R.sheetRows||0;if(N[2]==0&&(N[3]==8||N[3]==9)&&N.length>=16&&N[14]==5&&N[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(N[2]==2)R.Enum=Q,e(N,function(Re,tt,Be){switch(Be){case 0:R.vers=Re,Re>=4096&&(R.qpro=!0);break;case 6:ue=Re;break;case 204:Re&&(ce=Re);break;case 222:ce=Re;break;case 15:case 51:R.qpro||(Re[1].v=Re[1].v.slice(1));case 13:case 14:case 16:Be==14&&(Re[2]&112)==112&&(Re[2]&15)>1&&(Re[2]&15)<15&&(Re[1].z=R.dateNF||zr[14],R.cellDates&&(Re[1].t="d",Re[1].v=aN(Re[1].v))),R.qpro&&Re[3]>he&&(B["!ref"]=an(ue),ne[G]=B,me.push(G),B=R.dense?[]:{},ue={s:{r:0,c:0},e:{r:0,c:0}},he=Re[3],G=ce||"Sheet"+(he+1),ce="");var Ke=R.dense?(B[Re[0].r]||[])[Re[0].c]:B[vr(Re[0])];if(Ke){Ke.t=Re[1].t,Ke.v=Re[1].v,Re[1].z!=null&&(Ke.z=Re[1].z),Re[1].f!=null&&(Ke.f=Re[1].f);break}R.dense?(B[Re[0].r]||(B[Re[0].r]=[]),B[Re[0].r][Re[0].c]=Re[1]):B[vr(Re[0])]=Re[1];break}},R);else if(N[2]==26||N[2]==14)R.Enum=le,N[2]==14&&(R.qpro=!0,N.l=0),e(N,function(Re,tt,Be){switch(Be){case 204:G=Re;break;case 22:Re[1].v=Re[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Re[3]>he&&(B["!ref"]=an(ue),ne[G]=B,me.push(G),B=R.dense?[]:{},ue={s:{r:0,c:0},e:{r:0,c:0}},he=Re[3],G="Sheet"+(he+1)),Ie>0&&Re[0].r>=Ie)break;R.dense?(B[Re[0].r]||(B[Re[0].r]=[]),B[Re[0].r][Re[0].c]=Re[1]):B[vr(Re[0])]=Re[1],ue.e.c<Re[0].c&&(ue.e.c=Re[0].c),ue.e.r<Re[0].r&&(ue.e.r=Re[0].r);break;case 27:Re[14e3]&&(Se[Re[14e3][0]]=Re[14e3][1]);break;case 1537:Se[Re[0]]=Re[1],Re[0]==he&&(G=Re[1]);break}},R);else throw new Error("Unrecognized LOTUS BOF "+N[2]);if(B["!ref"]=an(ue),ne[ce||G]=B,me.push(ce||G),!Se.length)return{SheetNames:me,Sheets:ne};for(var ge={},_e=[],oe=0;oe<Se.length;++oe)ne[me[oe]]?(_e.push(Se[oe]||me[oe]),ge[Se[oe]]=ne[Se[oe]]||ne[me[oe]]):(_e.push(Se[oe]),ge[Se[oe]]={"!ref":"A1"});return{SheetNames:_e,Sheets:ge}}function n(N,I){var R=I||{};if(+R.codepage>=0&&Df(+R.codepage),R.type=="string")throw new Error("Cannot write WK1 to JS string");var B=gi(),G=Ir(N["!ref"]),ce=Array.isArray(N),he=[];rt(B,0,a(1030)),rt(B,6,l(G));for(var ne=Math.min(G.e.r,8191),me=G.s.r;me<=ne;++me)for(var Se=In(me),ue=G.s.c;ue<=G.e.c;++ue){me===G.s.r&&(he[ue]=Gn(ue));var Ie=he[ue]+Se,ge=ce?(N[me]||[])[ue]:N[Ie];if(!(!ge||ge.t=="z"))if(ge.t=="n")(ge.v|0)==ge.v&&ge.v>=-32768&&ge.v<=32767?rt(B,13,h(me,ue,ge.v)):rt(B,14,p(me,ue,ge.v));else{var _e=jo(ge);rt(B,15,f(me,ue,_e.slice(0,239)))}}return rt(B,1),B.end()}function i(N,I){var R=I||{};if(+R.codepage>=0&&Df(+R.codepage),R.type=="string")throw new Error("Cannot write WK3 to JS string");var B=gi();rt(B,0,o(N));for(var G=0,ce=0;G<N.SheetNames.length;++G)(N.Sheets[N.SheetNames[G]]||{})["!ref"]&&rt(B,27,Z(N.SheetNames[G],ce++));var he=0;for(G=0;G<N.SheetNames.length;++G){var ne=N.Sheets[N.SheetNames[G]];if(!(!ne||!ne["!ref"])){for(var me=Ir(ne["!ref"]),Se=Array.isArray(ne),ue=[],Ie=Math.min(me.e.r,8191),ge=me.s.r;ge<=Ie;++ge)for(var _e=In(ge),oe=me.s.c;oe<=me.e.c;++oe){ge===me.s.r&&(ue[oe]=Gn(oe));var Re=ue[oe]+_e,tt=Se?(ne[ge]||[])[oe]:ne[Re];if(!(!tt||tt.t=="z"))if(tt.t=="n")rt(B,23,D(ge,oe,he,tt.v));else{var Be=jo(tt);rt(B,22,T(ge,oe,he,Be.slice(0,239)))}}++he}}return rt(B,1),B.end()}function a(N){var I=Me(2);return I.write_shift(2,N),I}function o(N){var I=Me(26);I.write_shift(2,4096),I.write_shift(2,4),I.write_shift(4,0);for(var R=0,B=0,G=0,ce=0;ce<N.SheetNames.length;++ce){var he=N.SheetNames[ce],ne=N.Sheets[he];if(!(!ne||!ne["!ref"])){++G;var me=Di(ne["!ref"]);R<me.e.r&&(R=me.e.r),B<me.e.c&&(B=me.e.c)}}return R>8191&&(R=8191),I.write_shift(2,R),I.write_shift(1,G),I.write_shift(1,B),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(N,I,R){var B={s:{c:0,r:0},e:{c:0,r:0}};return I==8&&R.qpro?(B.s.c=N.read_shift(1),N.l++,B.s.r=N.read_shift(2),B.e.c=N.read_shift(1),N.l++,B.e.r=N.read_shift(2),B):(B.s.c=N.read_shift(2),B.s.r=N.read_shift(2),I==12&&R.qpro&&(N.l+=2),B.e.c=N.read_shift(2),B.e.r=N.read_shift(2),I==12&&R.qpro&&(N.l+=2),B.s.c==65535&&(B.s.c=B.e.c=B.s.r=B.e.r=0),B)}function l(N){var I=Me(8);return I.write_shift(2,N.s.c),I.write_shift(2,N.s.r),I.write_shift(2,N.e.c),I.write_shift(2,N.e.r),I}function u(N,I,R){var B=[{c:0,r:0},{t:"n",v:0},0,0];return R.qpro&&R.vers!=20768?(B[0].c=N.read_shift(1),B[3]=N.read_shift(1),B[0].r=N.read_shift(2),N.l+=2):(B[2]=N.read_shift(1),B[0].c=N.read_shift(2),B[0].r=N.read_shift(2)),B}function c(N,I,R){var B=N.l+I,G=u(N,I,R);if(G[1].t="s",R.vers==20768){N.l++;var ce=N.read_shift(1);return G[1].v=N.read_shift(ce,"utf8"),G}return R.qpro&&N.l++,G[1].v=N.read_shift(B-N.l,"cstr"),G}function f(N,I,R){var B=Me(7+R.length);B.write_shift(1,255),B.write_shift(2,I),B.write_shift(2,N),B.write_shift(1,39);for(var G=0;G<B.length;++G){var ce=R.charCodeAt(G);B.write_shift(1,ce>=128?95:ce)}return B.write_shift(1,0),B}function d(N,I,R){var B=u(N,I,R);return B[1].v=N.read_shift(2,"i"),B}function h(N,I,R){var B=Me(7);return B.write_shift(1,255),B.write_shift(2,I),B.write_shift(2,N),B.write_shift(2,R,"i"),B}function g(N,I,R){var B=u(N,I,R);return B[1].v=N.read_shift(8,"f"),B}function p(N,I,R){var B=Me(13);return B.write_shift(1,255),B.write_shift(2,I),B.write_shift(2,N),B.write_shift(8,R,"f"),B}function m(N,I,R){var B=N.l+I,G=u(N,I,R);if(G[1].v=N.read_shift(8,"f"),R.qpro)N.l=B;else{var ce=N.read_shift(2);A(N.slice(N.l,N.l+ce),G),N.l+=ce}return G}function y(N,I,R){var B=I&32768;return I&=-32769,I=(B?N:0)+(I>=8192?I-16384:I),(B?"":"$")+(R?Gn(I):In(I))}var x={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 A(N,I){Li(N,0);for(var R=[],B=0,G="",ce="",he="",ne="";N.l<N.length;){var me=N[N.l++];switch(me){case 0:R.push(N.read_shift(8,"f"));break;case 1:ce=y(I[0].c,N.read_shift(2),!0),G=y(I[0].r,N.read_shift(2),!1),R.push(ce+G);break;case 2:{var Se=y(I[0].c,N.read_shift(2),!0),ue=y(I[0].r,N.read_shift(2),!1);ce=y(I[0].c,N.read_shift(2),!0),G=y(I[0].r,N.read_shift(2),!1),R.push(Se+ue+":"+ce+G)}break;case 3:if(N.l<N.length){console.error("WK1 premature formula end");return}break;case 4:R.push("("+R.pop()+")");break;case 5:R.push(N.read_shift(2));break;case 6:{for(var Ie="";me=N[N.l++];)Ie+=String.fromCharCode(me);R.push('"'+Ie.replace(/"/g,'""')+'"')}break;case 8:R.push("-"+R.pop());break;case 23:R.push("+"+R.pop());break;case 22:R.push("NOT("+R.pop()+")");break;case 20:case 21:ne=R.pop(),he=R.pop(),R.push(["AND","OR"][me-20]+"("+he+","+ne+")");break;default:if(me<32&&w[me])ne=R.pop(),he=R.pop(),R.push(he+w[me]+ne);else if(x[me]){if(B=x[me][1],B==69&&(B=N[N.l++]),B>R.length){console.error("WK1 bad formula parse 0x"+me.toString(16)+":|"+R.join("|")+"|");return}var ge=R.slice(-B);R.length-=B,R.push(x[me][0]+"("+ge.join(",")+")")}else return me<=7?console.error("WK1 invalid opcode "+me.toString(16)):me<=24?console.error("WK1 unsupported op "+me.toString(16)):me<=30?console.error("WK1 invalid opcode "+me.toString(16)):me<=115?console.error("WK1 unsupported function opcode "+me.toString(16)):console.error("WK1 unrecognized opcode "+me.toString(16))}}R.length==1?I[1].f=""+R[0]:console.error("WK1 bad formula parse |"+R.join("|")+"|")}function _(N){var I=[{c:0,r:0},{t:"n",v:0},0];return I[0].r=N.read_shift(2),I[3]=N[N.l++],I[0].c=N[N.l++],I}function E(N,I){var R=_(N);return R[1].t="s",R[1].v=N.read_shift(I-4,"cstr"),R}function T(N,I,R,B){var G=Me(6+B.length);G.write_shift(2,N),G.write_shift(1,R),G.write_shift(1,I),G.write_shift(1,39);for(var ce=0;ce<B.length;++ce){var he=B.charCodeAt(ce);G.write_shift(1,he>=128?95:he)}return G.write_shift(1,0),G}function k(N,I){var R=_(N);R[1].v=N.read_shift(2);var B=R[1].v>>1;if(R[1].v&1)switch(B&7){case 0:B=(B>>3)*5e3;break;case 1:B=(B>>3)*500;break;case 2:B=(B>>3)/20;break;case 3:B=(B>>3)/200;break;case 4:B=(B>>3)/2e3;break;case 5:B=(B>>3)/2e4;break;case 6:B=(B>>3)/16;break;case 7:B=(B>>3)/64;break}return R[1].v=B,R}function L(N,I){var R=_(N),B=N.read_shift(4),G=N.read_shift(4),ce=N.read_shift(2);if(ce==65535)return B===0&&G===3221225472?(R[1].t="e",R[1].v=15):B===0&&G===3489660928?(R[1].t="e",R[1].v=42):R[1].v=0,R;var he=ce&32768;return ce=(ce&32767)-16446,R[1].v=(1-he*2)*(G*Math.pow(2,ce+32)+B*Math.pow(2,ce)),R}function D(N,I,R,B){var G=Me(14);if(G.write_shift(2,N),G.write_shift(1,R),G.write_shift(1,I),B==0)return G.write_shift(4,0),G.write_shift(4,0),G.write_shift(2,65535),G;var ce=0,he=0,ne=0,me=0;return B<0&&(ce=1,B=-B),he=Math.log2(B)|0,B/=Math.pow(2,he-31),me=B>>>0,(me&2147483648)==0&&(B/=2,++he,me=B>>>0),B-=me,me|=2147483648,me>>>=0,B*=Math.pow(2,32),ne=B>>>0,G.write_shift(4,ne),G.write_shift(4,me),he+=16383+(ce?32768:0),G.write_shift(2,he),G}function C(N,I){var R=L(N);return N.l+=I-14,R}function P(N,I){var R=_(N),B=N.read_shift(4);return R[1].v=B>>6,R}function M(N,I){var R=_(N),B=N.read_shift(8,"f");return R[1].v=B,R}function q(N,I){var R=M(N);return N.l+=I-10,R}function J(N,I){return N[N.l+I-1]==0?N.read_shift(I,"cstr"):""}function U(N,I){var R=N[N.l++];R>I-1&&(R=I-1);for(var B="";B.length<R;)B+=String.fromCharCode(N[N.l++]);return B}function H(N,I,R){if(!(!R.qpro||I<21)){var B=N.read_shift(1);N.l+=17,N.l+=1,N.l+=2;var G=N.read_shift(I-21,"cstr");return[B,G]}}function ee(N,I){for(var R={},B=N.l+I;N.l<B;){var G=N.read_shift(2);if(G==14e3){for(R[G]=[0,""],R[G][0]=N.read_shift(2);N[N.l];)R[G][1]+=String.fromCharCode(N[N.l]),N.l++;N.l++}}return R}function Z(N,I){var R=Me(5+N.length);R.write_shift(2,14e3),R.write_shift(2,I);for(var B=0;B<N.length;++B){var G=N.charCodeAt(B);R[R.l++]=G>127?95:G}return R[R.l++]=0,R}var Q={0:{n:"BOF",f:MN},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:g},15:{n:"LABEL",f:c},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:c},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:J},222:{n:"SHEETNAMELP",f:U},65535:{n:""}},le={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:E},23:{n:"NUMBER17",f:L},24:{n:"NUMBER18",f:k},25:{n:"FORMULA19",f:C},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:ee},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:P},38:{n:"??"},39:{n:"NUMBER27",f:M},40:{n:"FORMULA28",f:q},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:J},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:H},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:i,to_workbook:t}})(),$F=/^\s|\s$|[\t\n\r]/;function zN(e,t){if(!t.bookSST)return"";var r=[sn];r[r.length]=et("sst",null,{xmlns:fc[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var i=e[n],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),i.t.match($F)&&(a+=' xml:space="preserve"'),a+=">"+pr(i.t)+"</t>"),a+="</si>",r[r.length]=a}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function qF(e){return[e.read_shift(4),e.read_shift(4)]}function UF(e,t){return t||(t=Me(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var zF=L7;function WF(e){var t=gi();ze(t,159,UF(e));for(var r=0;r<e.length;++r)ze(t,19,zF(e[r]));return ze(t,160),t.end()}function HF(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function WN(e){var t=0,r,n=HF(e),i=n.length+1,a,o,s,l,u;for(r=hl(i),r[0]=n.length,a=1;a!=i;++a)r[a]=n[a-1];for(a=i-1;a>=0;--a)o=r[a],s=(t&16384)===0?0:1,l=t<<1&32767,u=s|l,t=u^o;return t^52811}var GF=(function(){function e(i,a){switch(a.type){case"base64":return t(Co(i),a);case"binary":return t(i,a);case"buffer":return t(Zt&&Buffer.isBuffer(i)?i.toString("binary"):Nh(i),a);case"array":return t(Bp(i),a)}throw new Error("Unrecognized type "+a.type)}function t(i,a){var o=a||{},s=o.dense?[]:{},l=i.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var u={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(c,f){Array.isArray(s)&&(s[f]=[]);for(var d=/\\\w+\b/g,h=0,g,p=-1;g=d.exec(c);){switch(g[0]){case"\\cell":var m=c.slice(h,d.lastIndex-g[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[vr({r:f,c:p})]=y}break}h=d.lastIndex}p>u.e.c&&(u.e.c=p)}),s["!ref"]=an(u),s}function r(i,a){return xl(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],o=Ir(i["!ref"]),s,l=Array.isArray(i),u=o.s.r;u<=o.e.r;++u){a.push("\\trowd\\trautofit1");for(var c=o.s.c;c<=o.e.c;++c)a.push("\\cellx"+(c+1));for(a.push("\\pard\\intbl"),c=o.s.c;c<=o.e.c;++c){var f=vr({r:u,c});s=l?(i[u]||[])[c]:i[f],!(!s||s.v==null&&(!s.f||s.F))&&(a.push(" "+(s.w||(jo(s),s.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}})();function q_(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 VF=6,To=VF;function Td(e){return Math.floor((e+Math.round(128/To)/256)*To)}function Ed(e){return Math.floor((e-5)/To*100+.5)/100}function K2(e){return Math.round((e*To+5)/To*256)/256}function Yb(e){e.width?(e.wpx=Td(e.width),e.wch=Ed(e.wpx),e.MDW=To):e.wpx?(e.wch=Ed(e.wpx),e.width=K2(e.wch),e.MDW=To):typeof e.wch=="number"&&(e.width=K2(e.wch),e.wpx=Td(e.width),e.MDW=To),e.customWidth&&delete e.customWidth}var KF=96,HN=KF;function Od(e){return e*96/HN}function GN(e){return e*HN/96}function YF(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]=et("numFmt",null,{numFmtId:n,formatCode:pr(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=et("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function XF(e){var t=[];return t[t.length]=et("cellXfs",null),e.forEach(function(r){t[t.length]=et("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=et("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function VN(e,t){var r=[sn,et("styleSheet",null,{xmlns:fc[0],"xmlns:vt":_n.vt})],n;return e.SSF&&(n=YF(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=XF(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 JF(e,t){var r=e.read_shift(2),n=Vn(e);return[r,n]}function ZF(e,t,r){r||(r=Me(6+4*t.length)),r.write_shift(2,e),An(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function QF(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=$7(e);i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1);var a=e.read_shift(2);switch(a===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=B7(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Vn(e),n}function eR(e,t){t||(t=Me(153)),t.write_shift(2,e.sz*20),q7(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),Sd(e.color,t);var n=0;return n=2,t.write_shift(1,n),An(e.name,t),t.length>t.l?t.slice(0,t.l):t}var tR=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],bv,rR=Xa;function U_(e,t){t||(t=Me(84)),bv||(bv=Mb(tR));var r=bv[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Sd({auto:1},t),Sd({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 nR(e,t){var r=e.l+t,n=e.read_shift(2),i=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:i}}function KN(e,t,r){r||(r=Me(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 tf(e,t){return t||(t=Me(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var iR=Xa;function aR(e,t){return t||(t=Me(51)),t.write_shift(1,0),tf(null,t),tf(null,t),tf(null,t),tf(null,t),tf(null,t),t.length>t.l?t.slice(0,t.l):t}function oR(e,t){return t||(t=Me(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),_d(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function sR(e,t,r){var n=Me(2052);return n.write_shift(4,e),_d(t,n),_d(r,n),n.length>n.l?n.slice(0,n.l):n}function lR(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&++r}),r!=0&&(ze(e,615,Ca(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&ze(e,44,ZF(i,t[i]))}),ze(e,616))}}function uR(e){var t=1;ze(e,611,Ca(t)),ze(e,43,eR({sz:12,color:{theme:1},name:"Calibri",family:2})),ze(e,612)}function cR(e){var t=2;ze(e,603,Ca(t)),ze(e,45,U_({patternType:"none"})),ze(e,45,U_({patternType:"gray125"})),ze(e,604)}function fR(e){var t=1;ze(e,613,Ca(t)),ze(e,46,aR()),ze(e,614)}function hR(e){var t=1;ze(e,626,Ca(t)),ze(e,47,KN({numFmtId:0},65535)),ze(e,627)}function dR(e,t){ze(e,617,Ca(t.length)),t.forEach(function(r){ze(e,47,KN(r,0))}),ze(e,618)}function pR(e){var t=1;ze(e,619,Ca(t)),ze(e,48,oR({xfId:0,name:"Normal"})),ze(e,620)}function vR(e){var t=0;ze(e,505,Ca(t)),ze(e,506)}function mR(e){var t=0;ze(e,508,sR(t,"TableStyleMedium9","PivotStyleMedium4")),ze(e,509)}function gR(e,t){var r=gi();return ze(r,278),lR(r,e.SSF),uR(r),cR(r),fR(r),hR(r),dR(r,t.cellXfs),pR(r),vR(r),mR(r),ze(r,279),r.end()}function YN(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 yR(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Vn(e)}}function xR(e){var t=Me(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),An(e.name,t),t.slice(0,t.l)}function bR(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function wR(e){var t=Me(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 _R(e,t){var r=Me(8+2*t.length);return r.write_shift(4,e),An(t,r),r.slice(0,r.l)}function SR(e){return e.l+=4,e.read_shift(4)!=0}function AR(e,t){var r=Me(8);return r.write_shift(4,e),r.write_shift(4,1),r}function TR(){var e=gi();return ze(e,332),ze(e,334,Ca(1)),ze(e,335,xR({name:"XLDAPR",version:12e4,flags:3496657072})),ze(e,336),ze(e,339,_R(1,"XLDAPR")),ze(e,52),ze(e,35,Ca(514)),ze(e,4096,Ca(0)),ze(e,4097,ea(1)),ze(e,36),ze(e,53),ze(e,340),ze(e,337,AR(1)),ze(e,51,wR([[1,0]])),ze(e,338),ze(e,333),e.end()}function XN(){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 ER(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=vr(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var hu=1024;function JN(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[et("xml",null,{"xmlns:v":Ii.v,"xmlns:o":Ii.o,"xmlns:x":Ii.x,"xmlns:mv":Ii.mv}).replace(/\/>/,">"),et("o:shapelayout",et("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),et("v:shapetype",[et("v:stroke",null,{joinstyle:"miter"}),et("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];hu<e*1e3;)hu+=1e3;return t.forEach(function(a){var o=Sn(a[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var l=s.type=="gradient"?et("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,u=et("v:fill",l,s),c={on:"t",obscured:"t"};++hu,i=i.concat(["<v:shape"+Uf({id:"_x0000_s"+hu,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(a[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",u,et("v:shadow",null,c),et("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Ln("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),Ln("x:AutoFill","False"),Ln("x:Row",String(o.r)),Ln("x:Column",String(o.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function ZN(e){var t=[sn,et("comments",null,{xmlns:fc[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var a=pr(i.a);r.indexOf(a)==-1&&(r.push(a),t.push("<author>"+a+"</author>")),i.T&&i.ID&&r.indexOf("tc="+i.ID)==-1&&(r.push("tc="+i.ID),t.push("<author>tc="+i.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var i=0,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(i=r.indexOf(pr(l.a))),a.push(l.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),a.length<=1)t.push(Ln("t",pr(a[0]||"")));else{for(var o=`Comment:
|
|
308
|
-
`+a[0]+`
|
|
309
|
-
`,s=1;s<a.length;++s)o+=`Reply:
|
|
310
|
-
`+a[s]+`
|
|
311
|
-
`;t.push(Ln("t",pr(o)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function OR(e,t,r){var n=[sn,et("ThreadedComments",null,{xmlns:_n.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var a="";(i[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:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?a=l.id:l.parentId=a,o.ID=l.id,o.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(o.a)).slice(-12)+"}"),n.push(et("threadedComment",Ln("text",o.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function PR(e){var t=[sn,et("personList",null,{xmlns:_n.TCMNT,"xmlns:x":fc[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(et("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function NR(e){var t={};t.iauthor=e.read_shift(4);var r=Sl(e);return t.rfx=r.s,t.ref=vr(r.s),e.l+=16,t}function CR(e,t){return t==null&&(t=Me(36)),t.write_shift(4,e[1].iauthor),dc(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 jR=Vn;function kR(e){return An(e.slice(0,54))}function LR(e){var t=gi(),r=[];return ze(t,628),ze(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),ze(t,632,kR(i.a)))})}),ze(t,631),ze(t,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=r.indexOf(i.a);var a={s:Sn(n[0]),e:Sn(n[0])};ze(t,635,CR([a,i])),i.t&&i.t.length>0&&ze(t,637,F7(i)),ze(t,636),delete i.iauthor})}),ze(t,634),ze(t,629),t.end()}function IR(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var i=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&yr.utils.cfb_add(e,i,t.FileIndex[n].content)}})}var QN=["xlsb","xlsm","xlam","biff8","xla"],FR=(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,i,a,o){var s=!1,l=!1;a.length==0?l=!0:a.charAt(0)=="["&&(l=!0,a=a.slice(1,-1)),o.length==0?s=!0:o.charAt(0)=="["&&(s=!0,o=o.slice(1,-1));var u=a.length>0?parseInt(a,10)|0:0,c=o.length>0?parseInt(o,10)|0:0;return s?c+=t.c:--c,l?u+=t.r:--u,i+(s?"":"$")+Gn(c)+(l?"":"$")+In(u)}return function(i,a){return t=a,i.replace(e,r)}})(),Xb=/(^|[^._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,Jb=(function(){return function(t,r){return t.replace(Xb,function(n,i,a,o,s,l){var u=Wb(o)-(a?0:r.c),c=zb(l)-(s?0:r.r),f=c==0?"":s?c+1:"["+c+"]",d=u==0?"":a?u+1:"["+u+"]";return i+"R"+f+"C"+d})}})();function RR(e,t){return e.replace(Xb,function(r,n,i,a,o,s){return n+(i=="$"?i+a:Gn(Wb(a)+t.c))+(o=="$"?o+s:In(zb(s)+t.r))})}function MR(e){return e.length!=1}function rn(e){e.l+=1}function _s(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function e6(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return t6(e);r.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),o=_s(e),s=_s(e);return{s:{r:i,c:o[0],cRel:o[1],rRel:o[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function t6(e){var t=_s(e),r=_s(e),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:i,cRel:r[1],rRel:r[2]}}}function DR(e,t,r){if(r.biff<8)return t6(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),a=_s(e),o=_s(e);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}function r6(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return BR(e);var n=e.read_shift(r&&r.biff==12?4:2),i=_s(e);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function BR(e){var t=_s(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function $R(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 qR(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return UR(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),o=(a&16384)>>14,s=(a&32768)>>15;if(a&=16383,s==1)for(;i>524287;)i-=1048576;if(o==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:o,rRel:s}}function UR(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,i=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),i==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:i,rRel:n}}function zR(e,t,r){var n=(e[e.l++]&96)>>5,i=e6(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function WR(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var o=e6(e,a,r);return[n,i,o]}function HR(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 GR(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[n,i]}function VR(e,t,r){var n=(e[e.l++]&96)>>5,i=DR(e,t-1,r);return[n,i]}function KR(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function z_(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function YR(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(e.read_shift(r&&r.biff==2?1:2));return i}function XR(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 JR(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 ZR(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function QR(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function n6(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function eM(e){return e.read_shift(2),n6(e)}function tM(e){return e.read_shift(2),n6(e)}function rM(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=r6(e,0,r);return[n,i]}function nM(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=qR(e,0,r);return[n,i]}function iM(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var a=r6(e,0,r);return[n,i,a]}function aM(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(r&&r.biff<=3?1:2);return[aD[i],o6[i],n]}function oM(e,t,r){var n=e[e.l++],i=e.read_shift(1),a=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:sM(e);return[i,(a[0]===0?o6:iD)[a[1]]]}function sM(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function lM(e,t,r){e.l+=r&&r.biff==2?3:4}function uM(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function cM(e){return e.l++,kh[e.read_shift(1)]}function fM(e){return e.l++,e.read_shift(2)}function hM(e){return e.l++,e.read_shift(1)!==0}function dM(e){return e.l++,pc(e)}function pM(e,t,r){return e.l++,BN(e,t-1,r)}function vM(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]=iF(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=kh[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=pc(e);break;case 2:r[1]=lF(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function mM(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((r.biff==12?Sl:fF)(e));return i}function gM(e,t,r){var n=0,i=0;r.biff==12?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--i==0&&(i=256));for(var a=0,o=[];a!=n&&(o[a]=[]);++a)for(var s=0;s!=i;++s)o[a][s]=vM(e,r.biff);return o}function yM(e,t,r){var n=e.read_shift(1)>>>5&3,i=!r||r.biff>=8?4:2,a=e.read_shift(i);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,a]}function xM(e,t,r){if(r.biff==5)return bM(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function bM(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 wM(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function _M(e,t,r){var n=e.read_shift(1)>>>5&3,i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function SM(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 AM(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=4;if(r)switch(r.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[n,i]}var TM=Xa,EM=Xa,OM=Xa;function Lh(e,t,r){return e.l+=2,[$R(e)]}function Zb(e){return e.l+=6,[]}var PM=Lh,NM=Zb,CM=Zb,jM=Lh;function i6(e){return e.l+=2,[MN(e),e.read_shift(2)&1]}var kM=Lh,LM=i6,IM=Zb,FM=Lh,RM=Lh,MM=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function DM(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2),o=MM[r>>2&31];return{ixti:t,coltype:r&3,rt:o,idx:n,c:i,C:a}}function BM(e){return e.l+=2,[e.read_shift(4)]}function $M(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function qM(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function UM(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 WM(e){return e.l+=4,[0,0]}var W_={1:{n:"PtgExp",f:uM},2:{n:"PtgTbl",f:OM},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:pM},26:{n:"PtgSheet",f:$M},27:{n:"PtgEndSheet",f:qM},28:{n:"PtgErr",f:cM},29:{n:"PtgBool",f:hM},30:{n:"PtgInt",f:fM},31:{n:"PtgNum",f:dM},32:{n:"PtgArray",f:KR},33:{n:"PtgFunc",f:aM},34:{n:"PtgFuncVar",f:oM},35:{n:"PtgName",f:yM},36:{n:"PtgRef",f:rM},37:{n:"PtgArea",f:zR},38:{n:"PtgMemArea",f:wM},39:{n:"PtgMemErr",f:TM},40:{n:"PtgMemNoMem",f:EM},41:{n:"PtgMemFunc",f:_M},42:{n:"PtgRefErr",f:SM},43:{n:"PtgAreaErr",f:HR},44:{n:"PtgRefN",f:nM},45:{n:"PtgAreaN",f:VR},46:{n:"PtgMemAreaN",f:UM},47:{n:"PtgMemNoMemN",f:zM},57:{n:"PtgNameX",f:xM},58:{n:"PtgRef3d",f:iM},59:{n:"PtgArea3d",f:WR},60:{n:"PtgRefErr3d",f:AM},61:{n:"PtgAreaErr3d",f:GR},255:{}},HM={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},GM={1:{n:"PtgElfLel",f:i6},2:{n:"PtgElfRw",f:FM},3:{n:"PtgElfCol",f:PM},6:{n:"PtgElfRwV",f:RM},7:{n:"PtgElfColV",f:jM},10:{n:"PtgElfRadical",f:kM},11:{n:"PtgElfRadicalS",f:IM},13:{n:"PtgElfColS",f:NM},15:{n:"PtgElfColSV",f:CM},16:{n:"PtgElfRadicalLel",f:LM},25:{n:"PtgList",f:DM},29:{n:"PtgSxName",f:BM},255:{}},VM={0:{n:"PtgAttrNoop",f:WM},1:{n:"PtgAttrSemi",f:QR},2:{n:"PtgAttrIf",f:JR},4:{n:"PtgAttrChoose",f:YR},8:{n:"PtgAttrGoto",f:XR},16:{n:"PtgAttrSum",f:lM},32:{n:"PtgAttrBaxcel",f:z_},33:{n:"PtgAttrBaxcel",f:z_},64:{n:"PtgAttrSpace",f:eM},65:{n:"PtgAttrSpaceSemi",f:tM},128:{n:"PtgAttrIfError",f:ZR},255:{}};function KM(e,t,r,n){if(n.biff<8)return Xa(e,t);for(var i=e.l+t,a=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=gM(e,0,n),a.push(r[o][1]);break;case"PtgMemArea":r[o][2]=mM(e,r[o][1],n),a.push(r[o][2]);break;case"PtgExp":n&&n.biff==12&&(r[o][1][1]=e.read_shift(4),a.push(r[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[o][0]}return t=i-e.l,t!==0&&a.push(Xa(e,t)),a}function YM(e,t,r){for(var n=e.l+t,i,a,o=[];n!=e.l;)t=n-e.l,a=e[e.l],i=W_[a]||W_[HM[a]],(a===24||a===25)&&(i=(a===24?GM:VM)[e[e.l+1]]),!i||!i.f?Xa(e,t):o.push([i.n,i.f(e,t,r)]);return o}function XM(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],i=[],a=0;a<n.length;++a){var o=n[a];if(o)switch(o[0]){case 2:i.push('"'+o[1].replace(/"/g,'""')+'"');break;default:i.push(o[1])}else i.push("")}t.push(i.join(","))}return t.join(";")}var JM={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function ZM(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 a6(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 i="";if(r.biff>8)switch(e[n[0]][0]){case 357:return i=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?i:i+":"+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 i=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(a){return a.Name}).join(";;");default:return e[n[0]][0][3]?(i=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function H_(e,t,r){var n=a6(e,t,r);return n=="#REF"?n:ZM(n,r)}function Lu(e,t,r,n,i){var a=i&&i.biff||8,o={s:{c:0,r:0}},s=[],l,u,c,f=0,d=0,h,g="";if(!e[0]||!e[0][0])return"";for(var p=-1,m="",y=0,x=e[0].length;y<x;++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(),u=s.pop(),p>=0){switch(e[0][p][1][0]){case 0:m=qr(" ",e[0][p][1][1]);break;case 1:m=qr("\r",e[0][p][1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}u=u+m,p=-1}s.push(u+JM[w[0]]+l);break;case"PtgIsect":l=s.pop(),u=s.pop(),s.push(u+" "+l);break;case"PtgUnion":l=s.pop(),u=s.pop(),s.push(u+","+l);break;case"PtgRange":l=s.pop(),u=s.pop(),s.push(u+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=Tf(w[1][1],o,i),s.push(Ef(c,a));break;case"PtgRefN":c=r?Tf(w[1][1],r,i):w[1][1],s.push(Ef(c,a));break;case"PtgRef3d":f=w[1][1],c=Tf(w[1][2],o,i),g=H_(n,f,i),s.push(g+"!"+Ef(c,a));break;case"PtgFunc":case"PtgFuncVar":var A=w[1][0],_=w[1][1];A||(A=0),A&=127;var E=A==0?[]:s.slice(-A);s.length-=A,_==="User"&&(_=E.shift()),s.push(_+"("+E.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=N_(w[1][1],r?{s:r}:o,i),s.push(yv(h,i));break;case"PtgArea":h=N_(w[1][1],o,i),s.push(yv(h,i));break;case"PtgArea3d":f=w[1][1],h=w[1][2],g=H_(n,f,i),s.push(g+"!"+yv(h,i));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=w[1][2];var T=(n.names||[])[d-1]||(n[0]||[])[d],k=T?T.Name:"SH33TJSNAME"+String(d);k&&k.slice(0,6)=="_xlfn."&&!i.xlfn&&(k=k.slice(6)),s.push(k);break;case"PtgNameX":var L=w[1][1];d=w[1][2];var D;if(i.biff<=5)L<0&&(L=-L),n[L]&&(D=n[L][d]);else{var C="";if(((n[L]||[])[0]||[])[0]==14849||(((n[L]||[])[0]||[])[0]==1025?n[L][d]&&n[L][d].itab>0&&(C=n.SheetNames[n[L][d].itab-1]+"!"):C=n.SheetNames[d-1]+"!"),n[L]&&n[L][d])C+=n[L][d].Name;else if(n[0]&&n[0][d])C+=n[0][d].Name;else{var P=(a6(n,L,i)||"").split(";;");P[d-1]?C=P[d-1]:C+="SH33TJSERRX"}s.push(C);break}D||(D={Name:"SH33TJSERRY"}),s.push(D.Name);break;case"PtgParen":var M="(",q=")";if(p>=0){switch(m="",e[0][p][1][0]){case 2:M=qr(" ",e[0][p][1][1])+M;break;case 3:M=qr("\r",e[0][p][1][1])+M;break;case 4:q=qr(" ",e[0][p][1][1])+q;break;case 5:q=qr("\r",e[0][p][1][1])+q;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}p=-1}s.push(M+s.pop()+q);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":c={c:w[1][1],r:w[1][0]};var J={c:r.c,r:r.r};if(n.sharedf[vr(c)]){var U=n.sharedf[vr(c)];s.push(Lu(U,o,J,n,i))}else{var H=!1;for(l=0;l!=n.arrayf.length;++l)if(u=n.arrayf[l],!(c.c<u[0].s.c||c.c>u[0].e.c)&&!(c.r<u[0].s.r||c.r>u[0].e.r)){s.push(Lu(u[1],o,J,n,i)),H=!0;break}H||s.push(w[1])}break;case"PtgArray":s.push("{"+XM(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 ee=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&p>=0&&ee.indexOf(e[0][y][0])==-1){w=e[0][p];var Z=!0;switch(w[1][0]){case 4:Z=!1;case 0:m=qr(" ",w[1][1]);break;case 5:Z=!1;case 1:m=qr("\r",w[1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+w[1][0])}s.push((Z?m:"")+s.pop()+(Z?"":m)),p=-1}}if(s.length>1&&i.WTF)throw new Error("bad formula stack");return s[0]}function QM(e){if(e==null){var t=Me(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 dl(e);return dl(0)}function eD(e,t,r,n,i){var a=pl(t,r,i),o=QM(e.v),s=Me(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var u=Me(e.bf.length),c=0;c<e.bf.length;++c)u[c]=e.bf[c];var f=kn([a,o,s,u]);return f}function $p(e,t,r){var n=e.read_shift(4),i=YM(e,n,r),a=e.read_shift(4),o=a>0?KM(e,a,i,r):null;return[i,o]}var tD=$p,qp=$p,rD=$p,nD=$p,iD={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"},o6={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"},aD={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 oD(e){var t="of:="+e.replace(Xb,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function sD(e){return e.replace(/\./,"!")}var Of=typeof Map<"u";function Qb(e,t,r){var n=0,i=e.length;if(r){if(Of?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var a=Of?r.get(t):r[t];n<a.length;++n)if(e[a[n]].t===t)return e.Count++,a[n]}}else for(;n<i;++n)if(e[n].t===t)return e.Count++,n;return e[i]={t},e.Count++,e.Unique++,r&&(Of?(r.has(t)||r.set(t,[]),r.get(t).push(i)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(i))),i}function Up(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(To=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=K2(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 s6(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 As(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],i=60,a=e.length;if(n==null&&r.ssf){for(;i<392;++i)if(r.ssf[i]==null){rN(t.z,i),r.ssf[i]=t.z,r.revssf[t.z]=n=i;break}}for(i=0;i!=a;++i)if(e[i].numFmtId===n)return i;return e[a]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function lD(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 uD(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 cD(e,t,r,n,i){var a=!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{}a=!0,o.codeName=qf(pr(l))}if(e&&e["!outline"]){var u={summaryBelow:1,summaryRight:1};e["!outline"].above&&(u.summaryBelow=0),e["!outline"].left&&(u.summaryRight=0),s=(s||"")+et("outlinePr",null,u)}!a&&!s||(i[i.length]=et("sheetPr",s,o))}var fD=["objects","scenarios","selectLockedCells","selectUnlockedCells"],hD=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function dD(e){var t={sheet:1};return fD.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),hD.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=WN(e.password).toString(16).toUpperCase()),et("sheetProtection",null,t)}function pD(e){return s6(e),et("pageMargins",null,e)}function vD(e,t){for(var r=["<cols>"],n,i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=et("col",null,Up(i,n)));return r[r.length]="</cols>",r.join("")}function mD(e,t,r,n){var i=typeof e.ref=="string"?e.ref:an(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,o=Di(i);o.s.r==o.e.r&&(o.e.r=Di(t["!ref"]).e.r,i=an(o));for(var s=0;s<a.length;++s){var l=a[s];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}return s==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),et("autoFilter",null,{ref:i})}function gD(e,t,r,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),et("sheetViews",et("sheetView",null,i),{})}function yD(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 i="",a=e.t,o=e.v;if(e.t!=="z")switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=kh[e.v];break;case"d":n&&n.cellDates?i=ai(e.v,-1).toISOString():(e=xi(e),e.t="n",i=""+(e.v=yi(ai(e.v)))),typeof e.z>"u"&&(e.z=zr[14]);break;default:i=e.v;break}var s=Ln("v",pr(i)),l={r:t},u=As(n.cellXfs,e,n);switch(u!==0&&(l.s=u),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=Ln("v",""+Qb(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=a&&(e.t=a,e.v=o),typeof e.f=="string"&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=et("f",pr(e.f),c)+(e.v!=null?s:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),et("c",s,l)}function xD(e,t,r,n){var i=[],a=[],o=Ir(e["!ref"]),s="",l,u="",c=[],f=0,d=0,h=e["!rows"],g=Array.isArray(e),p={r:u},m,y=-1;for(d=o.s.c;d<=o.e.c;++d)c[d]=Gn(d);for(f=o.s.r;f<=o.e.r;++f){for(a=[],u=In(f),d=o.s.c;d<=o.e.c;++d){l=c[d]+u;var x=g?(e[f]||[])[d]:e[l];x!==void 0&&(s=yD(x,l,e,t))!=null&&a.push(s)}(a.length>0||h&&h[f])&&(p={r:u},h&&h[f]&&(m=h[f],m.hidden&&(p.hidden=1),y=-1,m.hpx?y=Od(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(p.ht=y,p.customHeight=1),m.level&&(p.outlineLevel=m.level)),i[i.length]=et("row",a.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=Od(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(p.ht=y,p.customHeight=1),m.level&&(p.outlineLevel=m.level),i[i.length]=et("row","",p));return i.join("")}function l6(e,t,r,n){var i=[sn,et("worksheet",null,{xmlns:fc[0],"xmlns:r":_n.r})],a=r.SheetNames[e],o=0,s="",l=r.Sheets[a];l==null&&(l={});var u=l["!ref"]||"A1",c=Ir(u);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),u=an(c)}n||(n={}),l["!comments"]=[];var f=[];cD(l,r,e,t,i),i[i.length]=et("dimension",null,{ref:u}),i[i.length]=gD(l,t,e,r),t.sheetFormat&&(i[i.length]=et("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(i[i.length]=vD(l,l["!cols"])),i[o=i.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(s=xD(l,t),s.length>0&&(i[i.length]=s)),i.length>o+1&&(i[i.length]="</sheetData>",i[o]=i[o].replace("/>",">")),l["!protect"]&&(i[i.length]=dD(l["!protect"])),l["!autofilter"]!=null&&(i[i.length]=mD(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(i[i.length]=uD(l["!merges"]));var d=-1,h,g=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(p){p[1].Target&&(h={ref:p[0]},p[1].Target.charAt(0)!="#"&&(g=dr(n,-1,pr(p[1].Target).replace(/#.*$/,""),Yt.HLINK),h["r:id"]="rId"+g),(d=p[1].Target.indexOf("#"))>-1&&(h.location=pr(p[1].Target.slice(d+1))),p[1].Tooltip&&(h.tooltip=pr(p[1].Tooltip)),i[i.length]=et("hyperlink",null,h))}),i[i.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(i[i.length]=pD(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(i[i.length]=Ln("ignoredErrors",et("ignoredError",null,{numberStoredAsText:1,sqref:u}))),f.length>0&&(g=dr(n,-1,"../drawings/drawing"+(e+1)+".xml",Yt.DRAW),i[i.length]=et("drawing",null,{"r:id":"rId"+g}),l["!drawing"]=f),l["!comments"].length>0&&(g=dr(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Yt.VML),i[i.length]=et("legacyDrawing",null,{"r:id":"rId"+g}),l["!legacy"]=g),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function bD(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=n,a&7&&(r.level=a&7),a&16&&(r.hidden=!0),a&32&&(r.hpt=i/20),r}function wD(e,t,r){var n=Me(145),i=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var a=320;i.hpx?a=Od(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var o=0;i.level&&(o|=i.level),i.hidden&&(o|=16),(i.hpx||i.hpt)&&(o|=32),n.write_shift(1,o),n.write_shift(1,0);var s=0,l=n.l;n.l+=4;for(var u={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.c<c<<10)){for(var f=-1,d=-1,h=c<<10;h<c+1<<10;++h){u.c=h;var g=Array.isArray(r)?(r[u.r]||[])[u.c]:r[vr(u)];g&&(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 _D(e,t,r,n){var i=wD(n,r,t);(i.length>17||(t["!rows"]||[])[n])&&ze(e,0,i)}var SD=Sl,AD=dc;function TD(){}function ED(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=R7(e),r}function OD(e,t,r){r==null&&(r=Me(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var i=1;i<3;++i)r.write_shift(1,0);return Sd({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),SN(e,r),r.slice(0,r.l)}function PD(e){var t=oa(e);return[t]}function ND(e,t,r){return r==null&&(r=Me(8)),bl(t,r)}function CD(e){var t=wl(e);return[t]}function jD(e,t,r){return r==null&&(r=Me(4)),_l(t,r)}function kD(e){var t=oa(e),r=e.read_shift(1);return[t,r,"b"]}function LD(e,t,r){return r==null&&(r=Me(9)),bl(t,r),r.write_shift(1,e.v?1:0),r}function ID(e){var t=wl(e),r=e.read_shift(1);return[t,r,"b"]}function FD(e,t,r){return r==null&&(r=Me(5)),_l(t,r),r.write_shift(1,e.v?1:0),r}function RD(e){var t=oa(e),r=e.read_shift(1);return[t,r,"e"]}function MD(e,t,r){return r==null&&(r=Me(9)),bl(t,r),r.write_shift(1,e.v),r}function DD(e){var t=wl(e),r=e.read_shift(1);return[t,r,"e"]}function BD(e,t,r){return r==null&&(r=Me(8)),_l(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function $D(e){var t=oa(e),r=e.read_shift(4);return[t,r,"s"]}function qD(e,t,r){return r==null&&(r=Me(12)),bl(t,r),r.write_shift(4,t.v),r}function UD(e){var t=wl(e),r=e.read_shift(4);return[t,r,"s"]}function zD(e,t,r){return r==null&&(r=Me(8)),_l(t,r),r.write_shift(4,t.v),r}function WD(e){var t=oa(e),r=pc(e);return[t,r,"n"]}function HD(e,t,r){return r==null&&(r=Me(16)),bl(t,r),dl(e.v,r),r}function GD(e){var t=wl(e),r=pc(e);return[t,r,"n"]}function VD(e,t,r){return r==null&&(r=Me(12)),_l(t,r),dl(e.v,r),r}function KD(e){var t=oa(e),r=AN(e);return[t,r,"n"]}function YD(e,t,r){return r==null&&(r=Me(12)),bl(t,r),TN(e.v,r),r}function XD(e){var t=wl(e),r=AN(e);return[t,r,"n"]}function JD(e,t,r){return r==null&&(r=Me(8)),_l(t,r),TN(e.v,r),r}function ZD(e){var t=oa(e),r=Hb(e);return[t,r,"is"]}function QD(e){var t=oa(e),r=Vn(e);return[t,r,"str"]}function e9(e,t,r){return r==null&&(r=Me(12+4*e.v.length)),bl(t,r),An(e.v,r),r.length>r.l?r.slice(0,r.l):r}function t9(e){var t=wl(e),r=Vn(e);return[t,r,"str"]}function r9(e,t,r){return r==null&&(r=Me(8+4*e.v.length)),_l(t,r),An(e.v,r),r.length>r.l?r.slice(0,r.l):r}function n9(e,t,r){var n=e.l+t,i=oa(e);i.r=r["!row"];var a=e.read_shift(1),o=[i,a,"b"];if(r.cellFormula){e.l+=2;var s=qp(e,n-e.l,r);o[3]=Lu(s,null,i,r.supbooks,r)}else e.l=n;return o}function i9(e,t,r){var n=e.l+t,i=oa(e);i.r=r["!row"];var a=e.read_shift(1),o=[i,a,"e"];if(r.cellFormula){e.l+=2;var s=qp(e,n-e.l,r);o[3]=Lu(s,null,i,r.supbooks,r)}else e.l=n;return o}function a9(e,t,r){var n=e.l+t,i=oa(e);i.r=r["!row"];var a=pc(e),o=[i,a,"n"];if(r.cellFormula){e.l+=2;var s=qp(e,n-e.l,r);o[3]=Lu(s,null,i,r.supbooks,r)}else e.l=n;return o}function o9(e,t,r){var n=e.l+t,i=oa(e);i.r=r["!row"];var a=Vn(e),o=[i,a,"str"];if(r.cellFormula){e.l+=2;var s=qp(e,n-e.l,r);o[3]=Lu(s,null,i,r.supbooks,r)}else e.l=n;return o}var s9=Sl,l9=dc;function u9(e,t){return t==null&&(t=Me(4)),t.write_shift(4,e),t}function c9(e,t){var r=e.l+t,n=Sl(e),i=Gb(e),a=Vn(e),o=Vn(e),s=Vn(e);e.l=r;var l={rfx:n,relId:i,loc:a,display:s};return o&&(l.Tooltip=o),l}function f9(e,t){var r=Me(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));dc({s:Sn(e[0]),e:Sn(e[0])},r),Vb("rId"+t,r);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return An(i||"",r),An(e[1].Tooltip||"",r),An("",r),r.slice(0,r.l)}function h9(){}function d9(e,t,r){var n=e.l+t,i=EN(e),a=e.read_shift(1),o=[i];if(o[2]=a,r.cellFormula){var s=tD(e,n-e.l,r);o[1]=s}else e.l=n;return o}function p9(e,t,r){var n=e.l+t,i=Sl(e),a=[i];if(r.cellFormula){var o=nD(e,n-e.l,r);a[1]=o,e.l=n}else e.l=n;return a}function v9(e,t,r){r==null&&(r=Me(18));var n=Up(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 i=0;return t.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),t.level&&(i|=t.level<<8),r.write_shift(2,i),r}var u6=["left","right","top","bottom","header","footer"];function m9(e){var t={};return u6.forEach(function(r){t[r]=pc(e)}),t}function g9(e,t){return t==null&&(t=Me(48)),s6(e),u6.forEach(function(r){dl(e[r],t)}),t}function y9(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function x9(e,t,r){r==null&&(r=Me(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 b9(e){var t=Me(24);return t.write_shift(4,4),t.write_shift(4,1),dc(e,t),t}function w9(e,t){return t==null&&(t=Me(66)),t.write_shift(2,e.password?WN(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 _9(){}function S9(){}function A9(e,t,r,n,i,a,o){if(t.v===void 0)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":t=xi(t),t.z=t.z||zr[14],t.v=yi(ai(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=As(i.cellXfs,t,i),t.l&&a["!links"].push([vr(l),t.l]),t.c&&a["!comments"].push([vr(l),t.c]),t.t){case"s":case"str":return i.bookSST?(s=Qb(i.Strings,t.v,i.revStrings),l.t="s",l.v=s,o?ze(e,18,zD(t,l)):ze(e,7,qD(t,l))):(l.t="str",o?ze(e,17,r9(t,l)):ze(e,6,e9(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?o?ze(e,13,JD(t,l)):ze(e,2,YD(t,l)):o?ze(e,16,VD(t,l)):ze(e,5,HD(t,l)),!0;case"b":return l.t="b",o?ze(e,15,FD(t,l)):ze(e,4,LD(t,l)),!0;case"e":return l.t="e",o?ze(e,14,BD(t,l)):ze(e,3,MD(t,l)),!0}return o?ze(e,12,jD(t,l)):ze(e,1,ND(t,l)),!0}function T9(e,t,r,n){var i=Ir(t["!ref"]||"A1"),a,o="",s=[];ze(e,145);var l=Array.isArray(t),u=i.e.r;t["!rows"]&&(u=Math.max(i.e.r,t["!rows"].length-1));for(var c=i.s.r;c<=u;++c){o=In(c),_D(e,t,i,c);var f=!1;if(c<=i.e.r)for(var d=i.s.c;d<=i.e.c;++d){c===i.s.r&&(s[d]=Gn(d)),a=s[d]+o;var h=l?(t[c]||[])[d]:t[a];if(!h){f=!1;continue}f=A9(e,h,c,d,n,t,f)}}ze(e,146)}function E9(e,t){!t||!t["!merges"]||(ze(e,177,u9(t["!merges"].length)),t["!merges"].forEach(function(r){ze(e,176,l9(r))}),ze(e,178))}function O9(e,t){!t||!t["!cols"]||(ze(e,390),t["!cols"].forEach(function(r,n){r&&ze(e,60,v9(n,r))}),ze(e,391))}function P9(e,t){!t||!t["!ref"]||(ze(e,648),ze(e,649,b9(Ir(t["!ref"]))),ze(e,650))}function N9(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var i=dr(r,-1,n[1].Target.replace(/#.*$/,""),Yt.HLINK);ze(e,494,f9(n,i))}}),delete t["!links"]}function C9(e,t,r,n){if(t["!comments"].length>0){var i=dr(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Yt.VML);ze(e,551,Vb("rId"+i)),t["!legacy"]=i}}function j9(e,t,r,n){if(t["!autofilter"]){var i=t["!autofilter"],a=typeof i.ref=="string"?i.ref:an(i.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,s=Di(a);s.s.r==s.e.r&&(s.e.r=Di(t["!ref"]).e.r,a=an(s));for(var l=0;l<o.length;++l){var u=o[l];if(u.Name=="_xlnm._FilterDatabase"&&u.Sheet==n){u.Ref="'"+r.SheetNames[n]+"'!"+a;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),ze(e,161,dc(Ir(a))),ze(e,162)}}function k9(e,t,r){ze(e,133),ze(e,137,x9(t,r)),ze(e,138),ze(e,134)}function L9(e,t){t["!protect"]&&ze(e,535,w9(t["!protect"]))}function I9(e,t,r,n){var i=gi(),a=r.SheetNames[e],o=r.Sheets[a]||{},s=a;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"]=[],ze(i,129),(r.vbaraw||o["!outline"])&&ze(i,147,OD(s,o["!outline"])),ze(i,148,AD(l)),k9(i,o,r.Workbook),O9(i,o),T9(i,o,e,t),L9(i,o),j9(i,o,r,e),E9(i,o),N9(i,o,n),o["!margins"]&&ze(i,476,g9(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&P9(i,o),C9(i,o,e,n),ze(i,130),i.end()}function F9(e,t){e.l+=10;var r=Vn(e);return{name:r}}var R9=[["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 M9(e){return!e.Workbook||!e.Workbook.WBProps?"false":p7(e.Workbook.WBProps.date1904)?"true":"false"}var D9="][*?/\\".split("");function c6(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return D9.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function B9(e,t,r){e.forEach(function(n,i){c6(n);for(var a=0;a<i;++a)if(n==e[a])throw new Error("Duplicate Sheet Name: "+n);if(r){var o=t&&t[i]&&t[i].CodeName||n;if(o.charCodeAt(0)==95&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}})}function $9(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||[];B9(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)lD(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function f6(e){var t=[sn];t[t.length]=et("workbook",null,{xmlns:fc[0],"xmlns:r":_n.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(R9.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]=et("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",a=0;a!=e.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==e.SheetNames.length&&(a=0),t[t.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var o={name:pr(e.SheetNames[a].slice(0,31))};if(o.sheetId=""+(a+1),o["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}t[t.length]=et("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]=et("definedName",pr(s.Ref),l))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function q9(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=V2(e),r.name=Vn(e),r}function U9(e,t){return t||(t=Me(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),Vb(e.strRelID,t),An(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function z9(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var i=t>8?Vn(e):"";return i.length>0&&(r.CodeName=i),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 W9(e,t){t||(t=Me(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),SN(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function H9(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=M7(e),o=rD(e,0,r),s=Gb(e);e.l=n;var l={Name:a,Ptg:o};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function G9(e,t){ze(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,i={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};ze(e,156,U9(i))}ze(e,144)}function V9(e,t){t||(t=Me(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return An("SheetJS",t),An(vd.version,t),An(vd.version,t),An("7262",t),t.length>t.l?t.slice(0,t.l):t}function K9(e,t){t||(t=Me(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 Y9(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,i=-1,a=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&i==-1?i=n:r[n].Hidden==1&&a==-1&&(a=n);a>i||(ze(e,135),ze(e,158,K9(i)),ze(e,136))}}function X9(e,t){var r=gi();return ze(r,131),ze(r,128,V9()),ze(r,153,W9(e.Workbook&&e.Workbook.WBProps||null)),Y9(r,e),G9(r,e),ze(r,132),r.end()}function J9(e,t,r){return(t.slice(-4)===".bin"?X9:f6)(e)}function Z9(e,t,r,n,i){return(t.slice(-4)===".bin"?I9:l6)(e,r,n,i)}function Q9(e,t,r){return(t.slice(-4)===".bin"?gR:VN)(e,r)}function eB(e,t,r){return(t.slice(-4)===".bin"?WF:zN)(e,r)}function tB(e,t,r){return(t.slice(-4)===".bin"?LR:ZN)(e)}function rB(e){return(e.slice(-4)===".bin"?TR:XN)()}function nB(e,t){var r=[];return e.Props&&r.push(Q7(e.Props,t)),e.Custprops&&r.push(eF(e.Props,e.Custprops)),r.join("")}function iB(){return""}function aB(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,i){var a=[];a.push(et("NumberFormat",null,{"ss:Format":pr(zr[n.numFmtId])}));var o={"ss:ID":"s"+(21+i)};r.push(et("Style",a.join(""),o))}),et("Styles",r.join(""))}function h6(e){return et("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Jb(e.Ref,{r:0,c:0})})}function oB(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var i=t[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||r.push(h6(i)))}return et("Names",r.join(""))}function sB(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,a=[],o=0;o<i.length;++o){var s=i[o];s.Sheet==r&&(s.Name.match(/^_xlfn\./)||a.push(h6(s)))}return a.join("")}function lB(e,t,r,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(et("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(et("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(et("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"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)i.push(et("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<r&&!(n.Workbook.Sheets[a]&&!n.Workbook.Sheets[a].Hidden);++a);a==r&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(Ln("ProtectContents","True")),e["!protect"].objects&&i.push(Ln("ProtectObjects","True")),e["!protect"].scenarios&&i.push(Ln("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(Ln("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(Ln("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]]&&i.push("<"+o[1]+"/>")})),i.length==0?"":et("WorksheetOptions",i.join(""),{xmlns:Ii.x})}function uB(e){return e.map(function(t){var r=d7(t.t||""),n=et("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return et("Comment",n,{"ss:Author":t.a})}).join("")}function cB(e,t,r,n,i,a,o){if(!e||e.v==null&&e.f==null)return"";var s={};if(e.f&&(s["ss:Formula"]="="+pr(Jb(e.f,o))),e.F&&e.F.slice(0,t.length)==t){var l=Sn(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"]=pr(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=pr(e.l.Tooltip))),r["!merges"])for(var u=r["!merges"],c=0;c!=u.length;++c)u[c].s.c!=o.c||u[c].s.r!=o.r||(u[c].e.c>u[c].s.c&&(s["ss:MergeAcross"]=u[c].e.c-u[c].s.c),u[c].e.r>u[c].s.r&&(s["ss:MergeDown"]=u[c].e.r-u[c].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=kh[e.v];break;case"d":f="DateTime",d=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||zr[14]);break;case"s":f="String",d=h7(e.v||"");break}var h=As(n.cellXfs,e,n);s["ss:StyleID"]="s"+(21+h),s["ss:Index"]=o.c+1;var g=e.v!=null?d:"",p=e.t=="z"?"":'<Data ss:Type="'+f+'">'+g+"</Data>";return(e.c||[]).length>0&&(p+=uB(e.c)),et("Cell",p,s)}function fB(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=GN(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function hB(e,t,r,n){if(!e["!ref"])return"";var i=Ir(e["!ref"]),a=e["!merges"]||[],o=0,s=[];e["!cols"]&&e["!cols"].forEach(function(m,y){Yb(m);var x=!!m.width,w=Up(y,m),A={"ss:Index":y+1};x&&(A["ss:Width"]=Td(w.width)),m.hidden&&(A["ss:Hidden"]="1"),s.push(et("Column",null,A))});for(var l=Array.isArray(e),u=i.s.r;u<=i.e.r;++u){for(var c=[fB(u,(e["!rows"]||[])[u])],f=i.s.c;f<=i.e.c;++f){var d=!1;for(o=0;o!=a.length;++o)if(!(a[o].s.c>f)&&!(a[o].s.r>u)&&!(a[o].e.c<f)&&!(a[o].e.r<u)){(a[o].s.c!=f||a[o].s.r!=u)&&(d=!0);break}if(!d){var h={r:u,c:f},g=vr(h),p=l?(e[u]||[])[f]:e[g];c.push(cB(p,g,e,t,r,n,h))}}c.push("</Row>"),c.length>2&&s.push(c.join(""))}return s.join("")}function dB(e,t,r){var n=[],i=r.SheetNames[e],a=r.Sheets[i],o=a?sB(a,t,e,r):"";return o.length>0&&n.push("<Names>"+o+"</Names>"),o=a?hB(a,t,e,r):"",o.length>0&&n.push("<Table>"+o+"</Table>"),n.push(lB(a,t,e,r)),n.join("")}function pB(e,t){t||(t={}),e.SSF||(e.SSF=xi(zr)),e.SSF&&(Mp(),Rp(e.SSF),t.revssf=Dp(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],As(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(nB(e,t)),r.push(iB()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(et("Worksheet",dB(n,t,e),{"ss:Name":pr(e.SheetNames[n])}));return r[2]=aB(e,t),r[3]=oB(e),sn+et("Workbook",r.join(""),{xmlns:Ii.ss,"xmlns:o":Ii.o,"xmlns:x":Ii.x,"xmlns:ss":Ii.ss,"xmlns:dt":Ii.dt,"xmlns:html":Ii.html})}var wv={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function vB(e,t){var r=[],n=[],i=[],a=0,o,s=y_(j_,"n"),l=y_(k_,"n");if(e.Props)for(o=Fn(e.Props),a=0;a<o.length;++a)(Object.prototype.hasOwnProperty.call(s,o[a])?r:Object.prototype.hasOwnProperty.call(l,o[a])?n:i).push([o[a],e.Props[o[a]]]);if(e.Custprops)for(o=Fn(e.Custprops),a=0;a<o.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},o[a])||(Object.prototype.hasOwnProperty.call(s,o[a])?r:Object.prototype.hasOwnProperty.call(l,o[a])?n:i).push([o[a],e.Custprops[o[a]]]);var u=[];for(a=0;a<i.length;++a)RN.indexOf(i[a][0])>-1||LN.indexOf(i[a][0])>-1||i[a][1]!=null&&u.push(i[a]);n.length&&yr.utils.cfb_add(t,"/SummaryInformation",M_(n,wv.SI,l,k_)),(r.length||u.length)&&yr.utils.cfb_add(t,"/DocumentSummaryInformation",M_(r,wv.DSI,s,j_,u.length?u:null,wv.UDI))}function mB(e,t){var r=t||{},n=yr.utils.cfb_new({root:"R"}),i="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":i="/Workbook",r.biff=8;break;case"biff5":i="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return yr.utils.cfb_add(n,i,d6(e,r)),r.biff==8&&(e.Props||e.Custprops)&&vB(e,n),r.biff==8&&e.vbaraw&&IR(n,yr.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var gB={0:{f:bD},1:{f:PD},2:{f:KD},3:{f:RD},4:{f:kD},5:{f:WD},6:{f:QD},7:{f:$D},8:{f:o9},9:{f:a9},10:{f:n9},11:{f:i9},12:{f:CD},13:{f:XD},14:{f:DD},15:{f:ID},16:{f:GD},17:{f:t9},18:{f:UD},19:{f:Hb},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:H9},40:{},42:{},43:{f:QF},44:{f:JF},45:{f:rR},46:{f:iR},47:{f:nR},48:{},49:{f:C7},50:{},51:{f:bR},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:jF},62:{f:ZD},63:{f:ER},64:{f:_9},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Xa,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:y9},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:ED},148:{f:SD,p:16},151:{f:h9},152:{},153:{f:z9},154:{},155:{},156:{f:q9},157:{},158:{},159:{T:1,f:qF},160:{T:-1},161:{T:1,f:Sl},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:s9},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:yR},336:{T:-1},337:{f:SR,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:V2},357:{},358:{},359:{},360:{T:1},361:{},362:{f:TF},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:d9},427:{f:p9},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:m9},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:TD},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:c9},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:V2},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:jR},633:{T:1},634:{T:-1},635:{T:1,f:NR},636:{T:-1},637:{f:I7},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:F9},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:S9},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 i=t;if(!isNaN(i)){var a=n||(r||[]).length||0,o=e.next(4);o.write_shift(2,i),o.write_shift(2,a),a>0&&Ub(r)&&e.push(r)}}function yB(e,t,r,n){var i=(r||[]).length||0;if(i<=8224)return rt(e,t,r,i);var a=t;if(!isNaN(a)){for(var o=r.parts||[],s=0,l=0,u=0;u+(o[s]||8224)<=8224;)u+=o[s]||8224,s++;var c=e.next(4);for(c.write_shift(2,a),c.write_shift(2,u),e.push(r.slice(l,l+u)),l+=u;l<i;){for(c=e.next(4),c.write_shift(2,60),u=0;u+(o[s]||8224)<=8224;)u+=o[s]||8224,s++;c.write_shift(2,u),e.push(r.slice(l,l+u)),l+=u}}}function Ih(e,t,r){return e||(e=Me(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function xB(e,t,r,n){var i=Me(9);return Ih(i,e,t),DN(r,n||"b",i),i}function bB(e,t,r){var n=Me(8+2*r.length);return Ih(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 wB(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var i=t.t=="d"?yi(ai(t.v)):t.v;i==(i|0)&&i>=0&&i<65536?rt(e,2,FF(r,n,i)):rt(e,3,IF(r,n,i));return;case"b":case"e":rt(e,5,xB(r,n,t.v,t.t));return;case"s":case"str":rt(e,4,bB(r,n,(t.v||"").slice(0,255)));return}rt(e,1,Ih(null,r,n))}function _B(e,t,r,n){var i=Array.isArray(t),a=Ir(t["!ref"]||"A1"),o,s="",l=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),o=an(a)}for(var u=a.s.r;u<=a.e.r;++u){s=In(u);for(var c=a.s.c;c<=a.e.c;++c){u===a.s.r&&(l[c]=Gn(c)),o=l[c]+s;var f=i?(t[u]||[])[c]:t[o];f&&wB(e,f,u,c)}}}function SB(e,t){for(var r=t||{},n=gi(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==r.sheet&&(i=a);if(i==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,Kb(e,16,r)),_B(n,e.Sheets[e.SheetNames[i]],i,r),rt(n,10),n.end()}function AB(e,t,r){rt(e,49,gF({sz:12,name:"Arial"},r))}function TB(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&rt(e,1054,bF(i,t[i],r))})}function EB(e,t){var r=Me(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=Me(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),qN(Ir(t["!ref"]||"A1"),r),r.write_shift(4,4),rt(e,2152,r)}function OB(e,t){for(var r=0;r<16;++r)rt(e,224,B_({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){rt(e,224,B_(n,0,t))})}function PB(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];rt(e,440,PF(n)),n[1].Tooltip&&rt(e,2048,NF(n))}delete t["!links"]}function NB(e,t){if(t){var r=0;t.forEach(function(n,i){++r<=256&&n&&rt(e,125,kF(Up(i,n),i))})}}function CB(e,t,r,n,i){var a=16+As(i.cellXfs,t,i);if(t.v==null&&!t.bf){rt(e,513,pl(r,n,a));return}if(t.bf)rt(e,6,eD(t,r,n,i,a));else switch(t.t){case"d":case"n":var o=t.t=="d"?yi(ai(t.v)):t.v;rt(e,515,AF(r,n,o,a));break;case"b":case"e":rt(e,517,SF(r,n,t.v,a,i,t.t));break;case"s":case"str":if(i.bookSST){var s=Qb(i.Strings,t.v,i.revStrings);rt(e,253,yF(r,n,s,a))}else rt(e,516,xF(r,n,(t.v||"").slice(0,255),a,i));break;default:rt(e,513,pl(r,n,a))}}function jB(e,t,r){var n=gi(),i=r.SheetNames[e],a=r.Sheets[i]||{},o=(r||{}).Workbook||{},s=(o.Sheets||[])[e]||{},l=Array.isArray(a),u=t.biff==8,c,f="",d=[],h=Ir(a["!ref"]||"A1"),g=u?65536:16384;if(h.e.c>255||h.e.r>=g){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,g-1)}rt(n,2057,Kb(r,16,t)),rt(n,13,ea(1)),rt(n,12,ea(100)),rt(n,15,ti(!0)),rt(n,17,ti(!1)),rt(n,16,dl(.001)),rt(n,95,ti(!0)),rt(n,42,ti(!1)),rt(n,43,ti(!1)),rt(n,130,ea(1)),rt(n,128,_F()),rt(n,131,ti(!1)),rt(n,132,ti(!1)),u&&NB(n,a["!cols"]),rt(n,512,wF(h,t)),u&&(a["!links"]=[]);for(var p=h.s.r;p<=h.e.r;++p){f=In(p);for(var m=h.s.c;m<=h.e.c;++m){p===h.s.r&&(d[m]=Gn(m)),c=d[m]+f;var y=l?(a[p]||[])[m]:a[c];y&&(CB(n,y,p,m,t),u&&y.l&&a["!links"].push([c,y.l]))}}var x=s.CodeName||s.name||i;return u&&rt(n,574,mF((o.Views||[])[0])),u&&(a["!merges"]||[]).length&&rt(n,229,OF(a["!merges"])),u&&PB(n,a),rt(n,442,$N(x)),u&&EB(n,a),rt(n,10),n.end()}function kB(e,t,r){var n=gi(),i=(e||{}).Workbook||{},a=i.Sheets||[],o=i.WBProps||{},s=r.biff==8,l=r.biff==5;if(rt(n,2057,Kb(e,5,r)),r.bookType=="xla"&&rt(n,135),rt(n,225,s?ea(1200):null),rt(n,193,nF(2)),l&&rt(n,191),l&&rt(n,192),rt(n,226),rt(n,92,hF("SheetJS",r)),rt(n,66,ea(s?1200:1252)),s&&rt(n,353,ea(0)),s&&rt(n,448),rt(n,317,LF(e.SheetNames.length)),s&&e.vbaraw&&rt(n,211),s&&e.vbaraw){var u=o.CodeName||"ThisWorkbook";rt(n,442,$N(u))}rt(n,156,ea(17)),rt(n,25,ti(!1)),rt(n,18,ti(!1)),rt(n,19,ea(0)),s&&rt(n,431,ti(!1)),s&&rt(n,444,ea(0)),rt(n,61,vF()),rt(n,64,ti(!1)),rt(n,141,ea(0)),rt(n,34,ti(M9(e)=="true")),rt(n,14,ti(!0)),s&&rt(n,439,ti(!1)),rt(n,218,ea(0)),AB(n,e,r),TB(n,e.SSF,r),OB(n,r),s&&rt(n,352,ti(!1));var c=n.end(),f=gi();s&&rt(f,140,CF()),s&&r.Strings&&yB(f,252,pF(r.Strings)),rt(f,10);var d=f.end(),h=gi(),g=0,p=0;for(p=0;p<e.SheetNames.length;++p)g+=(s?12:11)+(s?2:1)*e.SheetNames[p].length;var m=c.length+g+d.length;for(p=0;p<e.SheetNames.length;++p){var y=a[p]||{};rt(h,133,dF({pos:m,hs:y.Hidden||0,dt:0,name:e.SheetNames[p]},r)),m+=t[p].length}var x=h.end();if(g!=x.length)throw new Error("BS8 "+g+" != "+x.length);var w=[];return c.length&&w.push(c),x.length&&w.push(x),d.length&&w.push(d),kn(w)}function LB(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=xi(zr)),e&&e.SSF&&(Mp(),Rp(e.SSF),r.revssf=Dp(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,e5(r),r.cellXfs=[],As(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=jB(i,r,e);return n.unshift(kB(e,n,r)),kn(n)}function d6(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var i=Di(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var a=t||{};switch(a.biff||2){case 8:case 5:return LB(e,t);case 4:case 3:case 2:return SB(e,t)}throw new Error("invalid type "+a.bookType+" for BIFF")}function IB(e,t,r,n){for(var i=e["!merges"]||[],a=[],o=t.s.c;o<=t.e.c;++o){for(var s=0,l=0,u=0;u<i.length;++u)if(!(i[u].s.r>r||i[u].s.c>o)&&!(i[u].e.r<r||i[u].e.c<o)){if(i[u].s.r<r||i[u].s.c<o){s=-1;break}s=i[u].e.r-i[u].s.r+1,l=i[u].e.c-i[u].s.c+1;break}if(!(s<0)){var c=vr({r,c:o}),f=n.dense?(e[r]||[])[o]:e[c],d=f&&f.v!=null&&(f.h||f7(f.w||(jo(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")+"-"+c,a.push(et("td",d,h))}}var g="<tr>";return g+a.join("")+"</tr>"}var FB='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',RB="</body></html>";function MB(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function p6(e,t){var r=t||{},n=r.header!=null?r.header:FB,i=r.footer!=null?r.footer:RB,a=[n],o=Di(e["!ref"]);r.dense=Array.isArray(e),a.push(MB(e,o,r));for(var s=o.s.r;s<=o.e.r;++s)a.push(IB(e,o,s,r));return a.push("</table>"+i),a.join("")}function v6(e,t,r){var n=r||{},i=0,a=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var o=typeof n.origin=="string"?Sn(n.origin):n.origin;i=o.r,a=o.c}var s=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),u={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var c=Di(e["!ref"]);u.s.r=Math.min(u.s.r,c.s.r),u.s.c=Math.min(u.s.c,c.s.c),u.e.r=Math.max(u.e.r,c.e.r),u.e.c=Math.max(u.e.c,c.e.c),i==-1&&(u.e.r=i=c.e.r+1)}var f=[],d=0,h=e["!rows"]||(e["!rows"]=[]),g=0,p=0,m=0,y=0,x=0,w=0;for(e["!cols"]||(e["!cols"]=[]);g<s.length&&p<l;++g){var A=s[g];if(G_(A)){if(n.display)continue;h[p]={hidden:!0}}var _=A.children;for(m=y=0;m<_.length;++m){var E=_[m];if(!(n.display&&G_(E))){var T=E.hasAttribute("data-v")?E.getAttribute("data-v"):E.hasAttribute("v")?E.getAttribute("v"):v7(E.innerHTML),k=E.getAttribute("data-z")||E.getAttribute("z");for(d=0;d<f.length;++d){var L=f[d];L.s.c==y+a&&L.s.r<p+i&&p+i<=L.e.r&&(y=L.e.c+1-a,d=-1)}w=+E.getAttribute("colspan")||1,((x=+E.getAttribute("rowspan")||1)>1||w>1)&&f.push({s:{r:p+i,c:y+a},e:{r:p+i+(x||1)-1,c:y+a+(w||1)-1}});var D={t:"s",v:T},C=E.getAttribute("data-t")||E.getAttribute("t")||"";T!=null&&(T.length==0?D.t=C||"z":n.raw||T.trim().length==0||C=="s"||(T==="TRUE"?D={t:"b",v:!0}:T==="FALSE"?D={t:"b",v:!1}:isNaN(Ao(T))?isNaN($f(T).getDate())||(D={t:"d",v:ai(T)},n.cellDates||(D={t:"n",v:yi(D.v)}),D.z=n.dateNF||zr[14]):D={t:"n",v:Ao(T)})),D.z===void 0&&k!=null&&(D.z=k);var P="",M=E.getElementsByTagName("A");if(M&&M.length)for(var q=0;q<M.length&&!(M[q].hasAttribute("href")&&(P=M[q].getAttribute("href"),P.charAt(0)!="#"));++q);P&&P.charAt(0)!="#"&&(D.l={Target:P}),n.dense?(e[p+i]||(e[p+i]=[]),e[p+i][y+a]=D):e[vr({c:y+a,r:p+i})]=D,u.e.c<y+a&&(u.e.c=y+a),y+=w}}++p}return f.length&&(e["!merges"]=(e["!merges"]||[]).concat(f)),u.e.r=Math.max(u.e.r,p-1+i),e["!ref"]=an(u),p>=l&&(e["!fullref"]=an((u.e.r=s.length-g+p-1+i,u))),e}function m6(e,t){var r=t||{},n=r.dense?[]:{};return v6(n,e,t)}function DB(e,t){return xl(m6(e,t),t)}function G_(e){var t="",r=BB(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function BB(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var $B=(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 "+Uf({"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}})(),V_=(function(){var e=function(a){return pr(a).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(a,o,s){var l=[];l.push(' <table:table table:name="'+pr(o.SheetNames[s])+`" table:style-name="ta1">
|
|
314
|
-
`);var u=0,c=0,f=Di(a["!ref"]||"A1"),d=a["!merges"]||[],h=0,g=Array.isArray(a);if(a["!cols"])for(c=0;c<=f.e.c;++c)l.push(" <table:table-column"+(a["!cols"][c]?' table:style-name="co'+a["!cols"][c].ods+'"':"")+`></table:table-column>
|
|
315
|
-
`);var p="",m=a["!rows"]||[];for(u=0;u<f.s.r;++u)p=m[u]?' table:style-name="ro'+m[u].ods+'"':"",l.push(" <table:table-row"+p+`></table:table-row>
|
|
316
|
-
`);for(;u<=f.e.r;++u){for(p=m[u]?' table:style-name="ro'+m[u].ods+'"':"",l.push(" <table:table-row"+p+`>
|
|
317
|
-
`),c=0;c<f.s.c;++c)l.push(t);for(;c<=f.e.c;++c){var y=!1,x={},w="";for(h=0;h!=d.length;++h)if(!(d[h].s.c>c)&&!(d[h].s.r>u)&&!(d[h].e.c<c)&&!(d[h].e.r<u)){(d[h].s.c!=c||d[h].s.r!=u)&&(y=!0),x["table:number-columns-spanned"]=d[h].e.c-d[h].s.c+1,x["table:number-rows-spanned"]=d[h].e.r-d[h].s.r+1;break}if(y){l.push(r);continue}var A=vr({r:u,c}),_=g?(a[u]||[])[c]:a[A];if(_&&_.f&&(x["table:formula"]=pr(oD(_.f)),_.F&&_.F.slice(0,A.length)==A)){var E=Di(_.F);x["table:number-matrix-columns-spanned"]=E.e.c-E.s.c+1,x["table:number-matrix-rows-spanned"]=E.e.r-E.s.r+1}if(!_){l.push(t);continue}switch(_.t){case"b":w=_.v?"TRUE":"FALSE",x["office:value-type"]="boolean",x["office:boolean-value"]=_.v?"true":"false";break;case"n":w=_.w||String(_.v||0),x["office:value-type"]="float",x["office:value"]=_.v||0;break;case"s":case"str":w=_.v==null?"":_.v,x["office:value-type"]="string";break;case"d":w=_.w||ai(_.v).toISOString(),x["office:value-type"]="date",x["office:date-value"]=ai(_.v).toISOString(),x["table:style-name"]="ce1";break;default:l.push(t);continue}var T=e(w);if(_.l&&_.l.Target){var k=_.l.Target;k=k.charAt(0)=="#"?"#"+sD(k.slice(1)):k,k.charAt(0)!="#"&&!k.match(/^\w+:/)&&(k="../"+k),T=et("text:a",T,{"xlink:href":k.replace(/&/g,"&")})}l.push(" "+et("table:table-cell",et("text:p",T,{}),x)+`
|
|
318
|
-
`)}l.push(` </table:table-row>
|
|
319
|
-
`)}return l.push(` </table:table>
|
|
320
|
-
`),l.join("")},i=function(a,o){a.push(` <office:automatic-styles>
|
|
321
|
-
`),a.push(` <number:date-style style:name="N37" number:automatic-order="true">
|
|
322
|
-
`),a.push(` <number:month number:style="long"/>
|
|
323
|
-
`),a.push(` <number:text>/</number:text>
|
|
324
|
-
`),a.push(` <number:day number:style="long"/>
|
|
325
|
-
`),a.push(` <number:text>/</number:text>
|
|
326
|
-
`),a.push(` <number:year/>
|
|
327
|
-
`),a.push(` </number:date-style>
|
|
328
|
-
`);var s=0;o.SheetNames.map(function(u){return o.Sheets[u]}).forEach(function(u){if(u&&u["!cols"]){for(var c=0;c<u["!cols"].length;++c)if(u["!cols"][c]){var f=u["!cols"][c];if(f.width==null&&f.wpx==null&&f.wch==null)continue;Yb(f),f.ods=s;var d=u["!cols"][c].wpx+"px";a.push(' <style:style style:name="co'+s+`" style:family="table-column">
|
|
329
|
-
`),a.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+d+`"/>
|
|
330
|
-
`),a.push(` </style:style>
|
|
331
|
-
`),++s}}});var l=0;o.SheetNames.map(function(u){return o.Sheets[u]}).forEach(function(u){if(u&&u["!rows"]){for(var c=0;c<u["!rows"].length;++c)if(u["!rows"][c]){u["!rows"][c].ods=l;var f=u["!rows"][c].hpx+"px";a.push(' <style:style style:name="ro'+l+`" style:family="table-row">
|
|
332
|
-
`),a.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+f+`"/>
|
|
333
|
-
`),a.push(` </style:style>
|
|
334
|
-
`),++l}}}),a.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
|
|
335
|
-
`),a.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
|
|
336
|
-
`),a.push(` </style:style>
|
|
337
|
-
`),a.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
|
|
338
|
-
`),a.push(` </office:automatic-styles>
|
|
339
|
-
`)};return function(o,s){var l=[sn],u=Uf({"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"}),c=Uf({"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"+u+c+`>
|
|
340
|
-
`),l.push(jN().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+u+`>
|
|
341
|
-
`),i(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 g6(e,t){if(t.bookType=="fods")return V_(e,t);var r=Db(),n="",i=[],a=[];return n="mimetype",Dt(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Dt(r,n,V_(e,t)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",Dt(r,n,$B(e,t)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",Dt(r,n,sn+jN()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",Dt(r,n,Z7(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Dt(r,n,X7(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Pd(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function qB(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Ta(qf(e))}function UB(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 Ss(e){var t=e.reduce(function(i,a){return i+a.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(i){r.set(i,n),n+=i.length}),r}function zB(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,i=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)e[t+a]=i&255;e[t+15]|=r>=0?0:128}function zf(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 hr(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 wu(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 dn(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],i=zf(e,r),a=i&7;i=Math.floor(i/8);var o=0,s;if(i==0)break;switch(a){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=zf(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(a," for Field ").concat(i," at offset ").concat(n))}var u={data:s,type:a};t[i]==null?t[i]=[u]:t[i].push(u)}return t}function Pn(e){var t=[];return e.forEach(function(r,n){r.forEach(function(i){i.data&&(t.push(hr(n*8+i.type)),i.type==2&&t.push(hr(i.data.length)),t.push(i.data))})}),Ss(t)}function ya(e){for(var t,r=[],n=[0];n[0]<e.length;){var i=zf(e,n),a=dn(e.slice(n[0],n[0]+i));n[0]+=i;var o={id:wu(a[1][0].data),messages:[]};a[2].forEach(function(s){var l=dn(s.data),u=wu(l[3][0].data);o.messages.push({meta:l,data:e.slice(n[0],n[0]+u)}),n[0]+=u}),(t=a[3])!=null&&t[0]&&(o.merge=wu(a[3][0].data)>>>0>0),r.push(o)}return r}function tu(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:hr(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:hr(+!!r.merge),type:0}]);var i=[];r.messages.forEach(function(o){i.push(o.data),o.meta[3]=[{type:0,data:hr(o.data.length)}],n[2].push({data:Pn(o.meta),type:2})});var a=Pn(n);t.push(hr(a.length)),t.push(a),i.forEach(function(o){return t.push(o)})}),Ss(t)}function WB(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=zf(t,r),i=[];r[0]<t.length;){var a=t[r[0]]&3;if(a==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}i.push(t.slice(r[0],r[0]+o)),r[0]+=o;continue}else{var l=0,u=0;if(a==1?(u=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(u=(t[r[0]++]>>2)+1,a==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)),i=[Ss(i)],l==0)throw new Error("Invalid offset 0");if(l>i[0].length)throw new Error("Invalid offset beyond length");if(u>=l)for(i.push(i[0].slice(-l)),u-=l;u>=i[i.length-1].length;)i.push(i[i.length-1]),u-=i[i.length-1].length;i.push(i[0].slice(-l,-l+u))}}var c=Ss(i);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function xa(e){for(var t=[],r=0;r<e.length;){var n=e[r++],i=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(WB(n,e.slice(r,r+i))),r+=i}if(r!==e.length)throw new Error("data is not a valid framed stream!");return Ss(t)}function ru(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),i=new Uint8Array(4);t.push(i);var a=hr(n),o=a.length;t.push(a),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,i[0]=0,i[1]=o&255,i[2]=o>>8&255,i[3]=o>>16&255,r+=n}return Ss(t)}function _v(e,t){var r=new Uint8Array(32),n=Pd(r),i=12,a=0;switch(r[0]=5,e.t){case"n":r[1]=2,zB(r,i,e.v),a|=1,i+=16;break;case"b":r[1]=6,n.setFloat64(i,e.v?1:0,!0),a|=2,i+=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(i,t.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),r.slice(0,i)}function Sv(e,t){var r=new Uint8Array(32),n=Pd(r),i=12,a=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":r[2]=6,n.setFloat64(i,e.v?1:0,!0),a|=32,i+=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(i,t.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,a,!0),r.slice(0,i)}function is(e){var t=dn(e);return zf(t[1][0].data)}function HB(e,t,r){var n,i,a,o;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var s=((o=(a=e[8])==null?void 0:a[0])==null?void 0:o.data)&&wu(e[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,u=Pd(e[7][0].data),c=0,f=[],d=Pd(e[4][0].data),h=0,g=[],p=0;p<t.length;++p){if(t[p]==null){u.setUint16(p*2,65535,!0),d.setUint16(p*2,65535);continue}u.setUint16(p*2,c,!0),d.setUint16(p*2,h,!0);var m,y;switch(typeof t[p]){case"string":m=_v({t:"s",v:t[p]},r),y=Sv({t:"s",v:t[p]},r);break;case"number":m=_v({t:"n",v:t[p]},r),y=Sv({t:"n",v:t[p]},r);break;case"boolean":m=_v({t:"b",v:t[p]},r),y=Sv({t:"b",v:t[p]},r);break;default:throw new Error("Unsupported value "+t[p])}f.push(m),c+=m.length,g.push(y),h+=y.length,++l}for(e[2][0].data=hr(l);p<e[7][0].data.length/2;++p)u.setUint16(p*2,65535,!0),d.setUint16(p*2,65535,!0);return e[6][0].data=Ss(f),e[3][0].data=Ss(g),l}function GB(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=Di(r["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(an(n)));var a=Nd(r,{range:n,header:1}),o=["~Sh33tJ5~"];a.forEach(function(I){return I.forEach(function(R){typeof R=="string"&&o.push(R)})});var s={},l=[],u=yr.read(t.numbers,{type:"base64"});u.FileIndex.map(function(I,R){return[I,u.FullPaths[R]]}).forEach(function(I){var R=I[0],B=I[1];if(R.type==2&&R.name.match(/\.iwa/)){var G=R.content,ce=xa(G),he=ya(ce);he.forEach(function(ne){l.push(ne.id),s[ne.id]={deps:[],location:B,type:wu(ne.messages[0].meta[1][0].data)}})}}),l.sort(function(I,R){return I-R});var c=l.filter(function(I){return I>1}).map(function(I){return[I,hr(I)]});u.FileIndex.map(function(I,R){return[I,u.FullPaths[R]]}).forEach(function(I){var R=I[0];if(I[1],!!R.name.match(/\.iwa/)){var B=ya(xa(R.content));B.forEach(function(G){G.messages.forEach(function(ce){c.forEach(function(he){G.messages.some(function(ne){return wu(ne.meta[1][0].data)!=11006&&UB(ne.data,he[1])})&&s[he[0]].deps.push(G.id)})})})}});for(var f=yr.find(u,s[1].location),d=ya(xa(f.content)),h,g=0;g<d.length;++g){var p=d[g];p.id==1&&(h=p)}var m=is(dn(h.messages[0].data)[1][0].data);for(f=yr.find(u,s[m].location),d=ya(xa(f.content)),g=0;g<d.length;++g)p=d[g],p.id==m&&(h=p);for(m=is(dn(h.messages[0].data)[2][0].data),f=yr.find(u,s[m].location),d=ya(xa(f.content)),g=0;g<d.length;++g)p=d[g],p.id==m&&(h=p);for(m=is(dn(h.messages[0].data)[2][0].data),f=yr.find(u,s[m].location),d=ya(xa(f.content)),g=0;g<d.length;++g)p=d[g],p.id==m&&(h=p);var y=dn(h.messages[0].data);{y[6][0].data=hr(n.e.r+1),y[7][0].data=hr(n.e.c+1);var x=is(y[46][0].data),w=yr.find(u,s[x].location),A=ya(xa(w.content));{for(var _=0;_<A.length&&A[_].id!=x;++_);if(A[_].id!=x)throw"Bad ColumnRowUIDMapArchive";var E=dn(A[_].messages[0].data);E[1]=[],E[2]=[],E[3]=[];for(var T=0;T<=n.e.c;++T){var k=[];k[1]=k[2]=[{type:0,data:hr(T+420690)}],E[1].push({type:2,data:Pn(k)}),E[2].push({type:0,data:hr(T)}),E[3].push({type:0,data:hr(T)})}E[4]=[],E[5]=[],E[6]=[];for(var L=0;L<=n.e.r;++L)k=[],k[1]=k[2]=[{type:0,data:hr(L+726270)}],E[4].push({type:2,data:Pn(k)}),E[5].push({type:0,data:hr(L)}),E[6].push({type:0,data:hr(L)});A[_].messages[0].data=Pn(E)}w.content=ru(tu(A)),w.size=w.content.length,delete y[46];var D=dn(y[4][0].data);{D[7][0].data=hr(n.e.r+1);var C=dn(D[1][0].data),P=is(C[2][0].data);w=yr.find(u,s[P].location),A=ya(xa(w.content));{if(A[0].id!=P)throw"Bad HeaderStorageBucket";var M=dn(A[0].messages[0].data);for(L=0;L<a.length;++L){var q=dn(M[2][0].data);q[1][0].data=hr(L),q[4][0].data=hr(a[L].length),M[2][L]={type:M[2][0].type,data:Pn(q)}}A[0].messages[0].data=Pn(M)}w.content=ru(tu(A)),w.size=w.content.length;var J=is(D[2][0].data);w=yr.find(u,s[J].location),A=ya(xa(w.content));{if(A[0].id!=J)throw"Bad HeaderStorageBucket";for(M=dn(A[0].messages[0].data),T=0;T<=n.e.c;++T)q=dn(M[2][0].data),q[1][0].data=hr(T),q[4][0].data=hr(n.e.r+1),M[2][T]={type:M[2][0].type,data:Pn(q)};A[0].messages[0].data=Pn(M)}w.content=ru(tu(A)),w.size=w.content.length;var U=is(D[4][0].data);(function(){for(var I=yr.find(u,s[U].location),R=ya(xa(I.content)),B,G=0;G<R.length;++G){var ce=R[G];ce.id==U&&(B=ce)}var he=dn(B.messages[0].data);{he[3]=[];var ne=[];o.forEach(function(ue,Ie){ne[1]=[{type:0,data:hr(Ie)}],ne[2]=[{type:0,data:hr(1)}],ne[3]=[{type:2,data:qB(ue)}],he[3].push({type:2,data:Pn(ne)})})}B.messages[0].data=Pn(he);var me=tu(R),Se=ru(me);I.content=Se,I.size=I.content.length})();var H=dn(D[3][0].data);{var ee=H[1][0];delete H[2];var Z=dn(ee.data);{var Q=is(Z[2][0].data);(function(){for(var I=yr.find(u,s[Q].location),R=ya(xa(I.content)),B,G=0;G<R.length;++G){var ce=R[G];ce.id==Q&&(B=ce)}var he=dn(B.messages[0].data);{delete he[6],delete H[7];var ne=new Uint8Array(he[5][0].data);he[5]=[];for(var me=0,Se=0;Se<=n.e.r;++Se){var ue=dn(ne);me+=HB(ue,a[Se],o),ue[1][0].data=hr(Se),he[5].push({data:Pn(ue),type:2})}he[1]=[{type:0,data:hr(n.e.c+1)}],he[2]=[{type:0,data:hr(n.e.r+1)}],he[3]=[{type:0,data:hr(me)}],he[4]=[{type:0,data:hr(n.e.r+1)}]}B.messages[0].data=Pn(he);var Ie=tu(R),ge=ru(Ie);I.content=ge,I.size=I.content.length})()}ee.data=Pn(Z)}D[3][0].data=Pn(H)}y[4][0].data=Pn(D)}h.messages[0].data=Pn(y);var le=tu(d),N=ru(le);return f.content=N,f.size=f.content.length,u}function VB(e){return function(r){for(var n=0;n!=e.length;++n){var i=e[n];r[i[0]]===void 0&&(r[i[0]]=i[1]),i[2]==="n"&&(r[i[0]]=Number(r[i[0]]))}}}function e5(e){VB([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function KB(e,t){return t.bookType=="ods"?g6(e,t):t.bookType=="numbers"?GB(e,t):t.bookType=="xlsb"?YB(e,t):XB(e,t)}function YB(e,t){hu=1024,e&&!e.SSF&&(e.SSF=xi(zr)),e&&e.SSF&&(Mp(),Rp(e.SSF),t.revssf=Dp(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,Of?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=QN.indexOf(t.bookType)>-1,i=PN();e5(t=t||{});var a=Db(),o="",s=0;if(t.cellXfs=[],As(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",Dt(a,o,kN(e.Props,t)),i.coreprops.push(o),dr(t.rels,2,o,Yt.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=[],u=0;u<e.SheetNames.length;++u)(e.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,Dt(a,o,IN(e.Props)),i.extprops.push(o),dr(t.rels,3,o,Yt.EXT_PROPS),e.Custprops!==e.Props&&Fn(e.Custprops||{}).length>0&&(o="docProps/custom.xml",Dt(a,o,FN(e.Custprops)),i.custprops.push(o),dr(t.rels,4,o,Yt.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var c={"!id":{}},f=e.Sheets[e.SheetNames[s-1]],d=(f||{})["!type"]||"sheet";switch(d){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,Dt(a,o,Z9(s-1,o,t,e,c)),i.sheets.push(o),dr(t.wbrels,-1,"worksheets/sheet"+s+"."+r,Yt.WS[0])}if(f){var h=f["!comments"],g=!1,p="";h&&h.length>0&&(p="xl/comments"+s+"."+r,Dt(a,p,tB(h,p)),i.comments.push(p),dr(c,-1,"../comments"+s+"."+r,Yt.CMNT),g=!0),f["!legacy"]&&g&&Dt(a,"xl/drawings/vmlDrawing"+s+".vml",JN(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}c["!id"].rId1&&Dt(a,CN(o),xu(c))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,Dt(a,o,eB(t.Strings,o,t)),i.strs.push(o),dr(t.wbrels,-1,"sharedStrings."+r,Yt.SST)),o="xl/workbook."+r,Dt(a,o,J9(e,o)),i.workbooks.push(o),dr(t.rels,1,o,Yt.WB),o="xl/theme/theme1.xml",Dt(a,o,YN(e.Themes,t)),i.themes.push(o),dr(t.wbrels,-1,"theme/theme1.xml",Yt.THEME),o="xl/styles."+r,Dt(a,o,Q9(e,o,t)),i.styles.push(o),dr(t.wbrels,-1,"styles."+r,Yt.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",Dt(a,o,e.vbaraw),i.vba.push(o),dr(t.wbrels,-1,"vbaProject.bin",Yt.VBA)),o="xl/metadata."+r,Dt(a,o,rB(o)),i.metadata.push(o),dr(t.wbrels,-1,"metadata."+r,Yt.XLMETA),Dt(a,"[Content_Types].xml",NN(i,t)),Dt(a,"_rels/.rels",xu(t.rels)),Dt(a,"xl/_rels/workbook."+r+".rels",xu(t.wbrels)),delete t.revssf,delete t.ssf,a}function XB(e,t){hu=1024,e&&!e.SSF&&(e.SSF=xi(zr)),e&&e.SSF&&(Mp(),Rp(e.SSF),t.revssf=Dp(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,Of?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=QN.indexOf(t.bookType)>-1,i=PN();e5(t=t||{});var a=Db(),o="",s=0;if(t.cellXfs=[],As(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",Dt(a,o,kN(e.Props,t)),i.coreprops.push(o),dr(t.rels,2,o,Yt.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=[],u=0;u<e.SheetNames.length;++u)(e.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,Dt(a,o,IN(e.Props)),i.extprops.push(o),dr(t.rels,3,o,Yt.EXT_PROPS),e.Custprops!==e.Props&&Fn(e.Custprops||{}).length>0&&(o="docProps/custom.xml",Dt(a,o,FN(e.Custprops)),i.custprops.push(o),dr(t.rels,4,o,Yt.CUST_PROPS));var c=["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,Dt(a,o,l6(s-1,t,e,f)),i.sheets.push(o),dr(t.wbrels,-1,"worksheets/sheet"+s+"."+r,Yt.WS[0])}if(d){var g=d["!comments"],p=!1,m="";if(g&&g.length>0){var y=!1;g.forEach(function(x){x[1].forEach(function(w){w.T==!0&&(y=!0)})}),y&&(m="xl/threadedComments/threadedComment"+s+"."+r,Dt(a,m,OR(g,c,t)),i.threadedcomments.push(m),dr(f,-1,"../threadedComments/threadedComment"+s+"."+r,Yt.TCMNT)),m="xl/comments"+s+"."+r,Dt(a,m,ZN(g)),i.comments.push(m),dr(f,-1,"../comments"+s+"."+r,Yt.CMNT),p=!0}d["!legacy"]&&p&&Dt(a,"xl/drawings/vmlDrawing"+s+".vml",JN(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}f["!id"].rId1&&Dt(a,CN(o),xu(f))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,Dt(a,o,zN(t.Strings,t)),i.strs.push(o),dr(t.wbrels,-1,"sharedStrings."+r,Yt.SST)),o="xl/workbook."+r,Dt(a,o,f6(e)),i.workbooks.push(o),dr(t.rels,1,o,Yt.WB),o="xl/theme/theme1.xml",Dt(a,o,YN(e.Themes,t)),i.themes.push(o),dr(t.wbrels,-1,"theme/theme1.xml",Yt.THEME),o="xl/styles."+r,Dt(a,o,VN(e,t)),i.styles.push(o),dr(t.wbrels,-1,"styles."+r,Yt.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",Dt(a,o,e.vbaraw),i.vba.push(o),dr(t.wbrels,-1,"vbaProject.bin",Yt.VBA)),o="xl/metadata."+r,Dt(a,o,XN()),i.metadata.push(o),dr(t.wbrels,-1,"metadata."+r,Yt.XLMETA),c.length>1&&(o="xl/persons/person.xml",Dt(a,o,PR(c)),i.people.push(o),dr(t.wbrels,-1,"persons/person.xml",Yt.PEOPLE)),Dt(a,"[Content_Types].xml",NN(i,t)),Dt(a,"_rels/.rels",xu(t.rels)),Dt(a,"xl/_rels/workbook."+r+".rels",xu(t.wbrels)),delete t.revssf,delete t.ssf,a}function JB(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=Co(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 y6(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Ch(t.file,yr.write(e,{type:Zt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return yr.write(e,t)}function ZB(e,t){var r=xi(t||{}),n=KB(e,r);return QB(n,r)}function QB(e,t){var r={},n=Zt?"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 i=e.FullPaths?yr.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof i=="string"){if(t.type=="binary"||t.type=="base64")return i;i=new Uint8Array(Fp(i))}return t.password&&typeof encrypt_agile<"u"?y6(encrypt_agile(i,t.password),t):t.type==="file"?Ch(t.file,i):t.type=="string"?Sf(i):i}function e$(e,t){var r=t||{},n=mB(e,r);return y6(n,r)}function za(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return Bf(qf(n));case"binary":return qf(n);case"string":return e;case"file":return Ch(t.file,n,"utf8");case"buffer":return Zt?Ro(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):za(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function t$(e,t){switch(t.type){case"base64":return Bf(e);case"binary":return e;case"string":return e;case"file":return Ch(t.file,e,"binary");case"buffer":return Zt?Ro(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function V0(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"?Bf(r):t.type=="string"?Sf(r):r;case"file":return Ch(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function x6(e,t){NI(),$9(e);var r=xi(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=x6(e,r);return r.type="array",Fp(n)}var i=0;if(r.sheet&&(typeof r.sheet=="number"?i=r.sheet:i=e.SheetNames.indexOf(r.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return za(pB(e,r),r);case"slk":case"sylk":return za(MF.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"htm":case"html":return za(p6(e.Sheets[e.SheetNames[i]],r),r);case"txt":return t$(w6(e.Sheets[e.SheetNames[i]],r),r);case"csv":return za(t5(e.Sheets[e.SheetNames[i]],r),r,"\uFEFF");case"dif":return za(DF.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"dbf":return V0(RF.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"prn":return za(BF.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"rtf":return za(GF.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"eth":return za(UN.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"fods":return za(g6(e,r),r);case"wk1":return V0($_.sheet_to_wk1(e.Sheets[e.SheetNames[i]],r),r);case"wk3":return V0($_.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),V0(d6(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),e$(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return ZB(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function r$(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 b6(e,t,r){var n={};return n.type="file",n.file=t,r$(n),x6(e,n)}function n$(e,t,r,n,i,a,o,s){var l=In(r),u=s.defval,c=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),f=!0,d=i===1?[]:{};if(i!==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 g=o?e[r][h]:e[n[h]+l];if(g===void 0||g.t===void 0){if(u===void 0)continue;a[h]!=null&&(d[a[h]]=u);continue}var p=g.v;switch(g.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 "+g.t)}if(a[h]!=null){if(p==null)if(g.t=="e"&&p===null)d[a[h]]=null;else if(u!==void 0)d[a[h]]=u;else if(c&&p===null)d[a[h]]=null;else continue;else d[a[h]]=c&&(g.t!=="n"||g.t==="n"&&s.rawNumbers!==!1)?p:jo(g,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,i=1,a=[],o=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},c=u.range!=null?u.range:e["!ref"];switch(u.header===1?n=1:u.header==="A"?n=2:Array.isArray(u.header)?n=3:u.header==null&&(n=0),typeof c){case"string":l=Ir(c);break;case"number":l=Ir(e["!ref"]),l.s.r=c;break;default:l=c}n>0&&(i=0);var f=In(l.s.r),d=[],h=[],g=0,p=0,m=Array.isArray(e),y=l.s.r,x=0,w={};m&&!e[y]&&(e[y]=[]);var A=u.skipHidden&&e["!cols"]||[],_=u.skipHidden&&e["!rows"]||[];for(x=l.s.c;x<=l.e.c;++x)if(!(A[x]||{}).hidden)switch(d[x]=Gn(x),r=m?e[y][x]:e[d[x]+f],n){case 1:a[x]=x-l.s.c;break;case 2:a[x]=d[x];break;case 3:a[x]=u.header[x-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=o=jo(r,null,u),p=w[o]||0,!p)w[o]=1;else{do s=o+"_"+p++;while(w[s]);w[o]=p,w[s]=1}a[x]=s}for(y=l.s.r+i;y<=l.e.r;++y)if(!(_[y]||{}).hidden){var E=n$(e,l,y,d,n,a,m,u);(E.isempty===!1||(n===1?u.blankrows!==!1:u.blankrows))&&(h[g++]=E.row)}return h.length=g,h}var K_=/"/g;function i$(e,t,r,n,i,a,o,s){for(var l=!0,u=[],c="",f=In(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)c="";else if(h.v!=null){l=!1,c=""+(s.rawNumbers&&h.t=="n"?h.v:jo(h,null,s));for(var g=0,p=0;g!==c.length;++g)if((p=c.charCodeAt(g))===i||p===a||p===34||s.forceQuotes){c='"'+c.replace(K_,'""')+'"';break}c=="ID"&&(c='"ID"')}else h.f!=null&&!h.F?(l=!1,c="="+h.f,c.indexOf(",")>=0&&(c='"'+c.replace(K_,'""')+'"')):c="";u.push(c)}return s.blankrows===!1&&l?null:u.join(o)}function t5(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var i=Ir(e["!ref"]),a=n.FS!==void 0?n.FS:",",o=a.charCodeAt(0),s=n.RS!==void 0?n.RS:`
|
|
346
|
-
`,l=s.charCodeAt(0),u=new RegExp((a=="|"?"\\|":a)+"+$"),c="",f=[];n.dense=Array.isArray(e);for(var d=n.skipHidden&&e["!cols"]||[],h=n.skipHidden&&e["!rows"]||[],g=i.s.c;g<=i.e.c;++g)(d[g]||{}).hidden||(f[g]=Gn(g));for(var p=0,m=i.s.r;m<=i.e.r;++m)(h[m]||{}).hidden||(c=i$(e,i,m,f,o,l,a,n),c!=null&&(n.strip&&(c=c.replace(u,"")),(c||n.blankrows!==!1)&&r.push((p++?s:"")+c)));return delete n.dense,r.join("")}function w6(e,t){t||(t={}),t.FS=" ",t.RS=`
|
|
347
|
-
`;var r=t5(e,t);return r}function a$(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var i=Ir(e["!ref"]),a="",o=[],s,l=[],u=Array.isArray(e);for(s=i.s.c;s<=i.e.c;++s)o[s]=Gn(s);for(var c=i.s.r;c<=i.e.r;++c)for(a=In(c),s=i.s.c;s<=i.e.c;++s)if(t=o[s]+a,r=u?(e[c]||[])[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 _6(e,t,r){var n=r||{},i=+!n.skipHeader,a=e||{},o=0,s=0;if(a&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?Sn(n.origin):n.origin;o=l.r,s=l.c}var u,c={s:{c:0,r:0},e:{c:s,r:o+t.length-1+i}};if(a["!ref"]){var f=Ir(a["!ref"]);c.e.c=Math.max(c.e.c,f.e.c),c.e.r=Math.max(c.e.r,f.e.r),o==-1&&(o=f.e.r+1,c.e.r=o+t.length-1+i)}else o==-1&&(o=0,c.e.r=t.length-1+i);var d=n.header||[],h=0;t.forEach(function(p,m){Fn(p).forEach(function(y){(h=d.indexOf(y))==-1&&(d[h=d.length]=y);var x=p[y],w="z",A="",_=vr({c:s+h,r:o+m+i});u=Wf(a,_),x&&typeof x=="object"&&!(x instanceof Date)?a[_]=x:(typeof x=="number"?w="n":typeof x=="boolean"?w="b":typeof x=="string"?w="s":x instanceof Date?(w="d",n.cellDates||(w="n",x=yi(x)),A=n.dateNF||zr[14]):x===null&&n.nullError&&(w="e",x=0),u?(u.t=w,u.v=x,delete u.w,delete u.R,A&&(u.z=A)):a[_]=u={t:w,v:x},A&&(u.z=A))})}),c.e.c=Math.max(c.e.c,s+d.length-1);var g=In(o);if(i)for(h=0;h<d.length;++h)a[Gn(h+s)+g]={t:"s",v:d[h]};return a["!ref"]=an(c),a}function o$(e,t){return _6(null,e,t)}function Wf(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=Sn(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"?Wf(e,vr(t)):Wf(e,vr({r:t,c:r||0}))}function s$(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 l$(){return{SheetNames:[],Sheets:{}}}function u$(e,t,r,n){var i=1;if(!r)for(;i<=65535&&e.SheetNames.indexOf(r="Sheet"+i)!=-1;++i,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var a=r.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var o=a&&a[1]||r;for(++i;i<=65535&&e.SheetNames.indexOf(r=o+i)!=-1;++i);}if(c6(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 c$(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=s$(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 f$(e,t){return e.z=t,e}function S6(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function h$(e,t,r){return S6(e,"#"+t,r)}function d$(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function p$(e,t,r,n){for(var i=typeof t!="string"?t:Ir(t),a=typeof t=="string"?t:an(t),o=i.s.r;o<=i.e.r;++o)for(var s=i.s.c;s<=i.e.c;++s){var l=Wf(e,o,s);l.t="n",l.F=a,delete l.v,o==i.s.r&&s==i.s.c&&(l.f=r,n&&(l.D=!0))}return e}var _u={encode_col:Gn,encode_row:In,encode_cell:vr,encode_range:an,decode_col:Wb,decode_row:zb,split_cell:N7,decode_cell:Sn,decode_range:Di,format_cell:jo,sheet_add_aoa:_N,sheet_add_json:_6,sheet_add_dom:v6,aoa_to_sheet:hc,json_to_sheet:o$,table_to_sheet:m6,table_to_book:DB,sheet_to_csv:t5,sheet_to_txt:w6,sheet_to_json:Nd,sheet_to_html:p6,sheet_to_formulae:a$,sheet_to_row_object_array:Nd,sheet_get_cell:Wf,book_new:l$,book_append_sheet:u$,book_set_sheet_visibility:c$,cell_set_number_format:f$,cell_set_hyperlink:S6,cell_set_internal_link:h$,cell_add_comment:d$,sheet_set_array_formula:p$,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function v$(e,t,r,n="Sheet1"){const i=[t,...r],a=_u.aoa_to_sheet(i),o=_u.book_new();_u.book_append_sheet(o,a,n),b6(o,`${e}.xlsx`)}function m$(e,t){const r=_u.book_new();t.forEach(({name:n,headers:i,rows:a})=>{const o=[i,...a],s=_u.aoa_to_sheet(o);_u.book_append_sheet(r,s,n)}),b6(r,`${e}.xlsx`)}function g$(e,t){const[r,n]=V.useState(()=>{try{const a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),i=V.useCallback(a=>{const o=a instanceof Function?a(r):a;n(o);try{window.localStorage.setItem(e,JSON.stringify(o))}catch{}},[e,r]);return[r,i]}function y$(e){V.useEffect(()=>{const t=r=>{e.forEach(({key:n,ctrl:i,meta:a,shift:o,handler:s})=>{const l=r.key.toLowerCase()===n.toLowerCase(),u=i?r.ctrlKey||r.metaKey:!0,c=o?r.shiftKey:!0;l&&u&&c&&(r.preventDefault(),s())})};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])}function x$(e,t={}){const r=`form-draft-${e}`,[n,i]=V.useState(()=>{try{return!!localStorage.getItem(r)}catch{return!1}}),a=V.useCallback(l=>{try{localStorage.setItem(r,JSON.stringify({data:l,savedAt:Date.now()})),i(!0)}catch{}},[r]),o=V.useCallback(()=>{try{const l=localStorage.getItem(r);if(!l)return null;const u=JSON.parse(l);return Date.now()-u.savedAt>1440*60*1e3?(localStorage.removeItem(r),i(!1),null):u.data}catch{return null}},[r]),s=V.useCallback(()=>{try{localStorage.removeItem(r)}catch{}i(!1)},[r]);return{hasDraft:n,saveDraft:a,loadDraft:o,clearDraft:s}}const Av="recently-viewed",b$=8;function w$(){const[e,t]=V.useState(()=>{try{return JSON.parse(localStorage.getItem(Av))||[]}catch{return[]}}),r=V.useCallback(i=>{t(a=>{const o=a.filter(l=>l.id!==i.id||l.type!==i.type),s=[{...i,viewedAt:Date.now()},...o].slice(0,b$);try{localStorage.setItem(Av,JSON.stringify(s))}catch{}return s})},[]),n=V.useCallback(()=>{t([]);try{localStorage.removeItem(Av)}catch{}},[]);return{items:e,addItem:r,clearAll:n}}function _$(e=[],{paramName:t="tab"}={}){const r=V.useMemo(()=>e.map(s=>s.id||S$(s.label||"")),[e]),n=()=>{try{const l=new URLSearchParams(window.location.search).get(t);if(l!=null){const u=r.indexOf(l);if(u!==-1)return u}}catch{}return 0},[i,a]=V.useState(n),o=V.useCallback(s=>{a(s);try{const l=new URL(window.location.href),u=r[s];s===0?l.searchParams.delete(t):u&&l.searchParams.set(t,u),window.history.replaceState({},"",l.toString())}catch{}},[r,t]);return[i,o]}function S$(e){return e.toLowerCase().replace(/&/g,"and").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function A$(e,t=null){const[r,n]=V.useState(t);return{sortedData:V.useMemo(()=>{if(!r||!e)return e||[];const{key:o,direction:s}=r;return[...e].sort((l,u)=>{const c=l[o]??"",f=u[o]??"";return c<f?s==="asc"?-1:1:c>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 A6=[20,50,100,1e3],Y2="table-page-sizes";function T$(e,t){if(!e)return t;try{const n=JSON.parse(localStorage.getItem(Y2)||"{}")[e];if(n&&A6.includes(n))return n}catch{}return t}function E$(e,t){if(e)try{const r=JSON.parse(localStorage.getItem(Y2)||"{}");r[e]=t,localStorage.setItem(Y2,JSON.stringify(r))}catch{}}function O$(e=20,t){const[r,n]=V.useState(0),[i,a]=V.useState(()=>T$(t,e)),o=V.useCallback(u=>{a(u),n(0),E$(t,u)},[t]),s=V.useCallback(()=>n(0),[]),l={page:r+1,page_size:i};return{page:r,pageSize:i,setPage:n,setPageSize:o,params:l,reset:s,pageSizeOptions:A6}}var r5=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Zs,ls,Eu,hP,P$=(hP=class extends r5{constructor(){super();Cr(this,Zs);Cr(this,ls);Cr(this,Eu);$t(this,Eu,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){Ve(this,ls)||this.setEventListener(Ve(this,Eu))}onUnsubscribe(){var t;this.hasListeners()||((t=Ve(this,ls))==null||t.call(this),$t(this,ls,void 0))}setEventListener(t){var r;$t(this,Eu,t),(r=Ve(this,ls))==null||r.call(this),$t(this,ls,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){Ve(this,Zs)!==t&&($t(this,Zs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof Ve(this,Zs)=="boolean"?Ve(this,Zs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Zs=new WeakMap,ls=new WeakMap,Eu=new WeakMap,hP),N$=new P$,C$={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Wa,Qs,dP,j$=(dP=class{constructor(){Cr(this,Wa,C$);Cr(this,Qs,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&Ve(this,Qs)&&e!==Ve(this,Wa)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:Ve(this,Wa),provider:e}),$t(this,Wa,e),process.env.NODE_ENV!=="production"&&$t(this,Qs,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&$t(this,Qs,!0),Ve(this,Wa).setTimeout(e,t)}clearTimeout(e){Ve(this,Wa).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&$t(this,Qs,!0),Ve(this,Wa).setInterval(e,t)}clearInterval(e){Ve(this,Wa).clearInterval(e)}},Wa=new WeakMap,Qs=new WeakMap,dP),K0=new j$;function k$(e){setTimeout(e,0)}var L$=typeof window>"u"||"Deno"in globalThis;function X2(){}function Y_(e){return typeof e=="number"&&e>=0&&e!==1/0}function I$(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pf(e,t){return typeof e=="function"?e(t):e}function ta(e,t){return typeof e=="function"?e(t):e}var F$=Object.prototype.hasOwnProperty;function J2(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=X_(e)&&X_(t);if(!n&&!(J_(e)&&J_(t)))return t;const a=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),s=o.length,l=n?new Array(s):{};let u=0;for(let c=0;c<s;c++){const f=n?c:o[c],d=e[f],h=t[f];if(d===h){l[f]=d,(n?c<a:F$.call(e,f))&&u++;continue}if(d===null||h===null||typeof d!="object"||typeof h!="object"){l[f]=h;continue}const g=J2(d,h,r+1);l[f]=g,g===d&&u++}return a===s&&u===a?e:l}function Z2(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function X_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function J_(e){if(!Z_(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Z_(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Z_(e){return Object.prototype.toString.call(e)==="[object Object]"}function Q_(e,t,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(e,t);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return J2(e,t)}catch(n){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${n}`),n}return J2(e,t)}return t}function T6(e,t){return typeof e=="function"?e(...t):!!e}var Q2=(()=>{let e=()=>L$;return{isServer(){return e()},setIsServer(t){e=t}}})();function eS(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}var R$=k$;function M$(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=R$;const a=s=>{t?e.push(s):i(()=>{r(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}var E6=M$(),Ou,us,Pu,pP,D$=(pP=class extends r5{constructor(){super();Cr(this,Ou,!0);Cr(this,us);Cr(this,Pu);$t(this,Pu,t=>{if(typeof window<"u"&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){Ve(this,us)||this.setEventListener(Ve(this,Pu))}onUnsubscribe(){var t;this.hasListeners()||((t=Ve(this,us))==null||t.call(this),$t(this,us,void 0))}setEventListener(t){var r;$t(this,Pu,t),(r=Ve(this,us))==null||r.call(this),$t(this,us,t(this.setOnline.bind(this)))}setOnline(t){Ve(this,Ou)!==t&&($t(this,Ou,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return Ve(this,Ou)}},Ou=new WeakMap,us=new WeakMap,Pu=new WeakMap,pP),B$=new D$;function $$(e){return(e??"online")==="online"?B$.isOnline():!0}function q$(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$$(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}var pi,Wt,Oh,Jn,el,Nu,yo,cs,Ph,Cu,ju,tl,rl,fs,ku,lr,df,ex,tx,rx,nx,ix,ax,ox,O6,vP,U$=(vP=class extends r5{constructor(t,r){super();Cr(this,lr);Cr(this,pi);Cr(this,Wt);Cr(this,Oh);Cr(this,Jn);Cr(this,el);Cr(this,Nu);Cr(this,yo);Cr(this,cs);Cr(this,Ph);Cr(this,Cu);Cr(this,ju);Cr(this,tl);Cr(this,rl);Cr(this,fs);Cr(this,ku,new Set);this.options=r,$t(this,pi,t),$t(this,cs,null),$t(this,yo,eS()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Ve(this,Wt).addObserver(this),tS(Ve(this,Wt),this.options)?tn(this,lr,df).call(this):this.updateResult(),tn(this,lr,nx).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sx(Ve(this,Wt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sx(Ve(this,Wt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,tn(this,lr,ix).call(this),tn(this,lr,ax).call(this),Ve(this,Wt).removeObserver(this)}setOptions(t){const r=this.options,n=Ve(this,Wt);if(this.options=Ve(this,pi).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ta(this.options.enabled,Ve(this,Wt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");tn(this,lr,ox).call(this),Ve(this,Wt).setOptions(this.options),r._defaulted&&!Z2(this.options,r)&&Ve(this,pi).getQueryCache().notify({type:"observerOptionsUpdated",query:Ve(this,Wt),observer:this});const i=this.hasListeners();i&&rS(Ve(this,Wt),n,this.options,r)&&tn(this,lr,df).call(this),this.updateResult(),i&&(Ve(this,Wt)!==n||ta(this.options.enabled,Ve(this,Wt))!==ta(r.enabled,Ve(this,Wt))||Pf(this.options.staleTime,Ve(this,Wt))!==Pf(r.staleTime,Ve(this,Wt)))&&tn(this,lr,ex).call(this);const a=tn(this,lr,tx).call(this);i&&(Ve(this,Wt)!==n||ta(this.options.enabled,Ve(this,Wt))!==ta(r.enabled,Ve(this,Wt))||a!==Ve(this,fs))&&tn(this,lr,rx).call(this,a)}getOptimisticResult(t){const r=Ve(this,pi).getQueryCache().build(Ve(this,pi),t),n=this.createResult(r,t);return W$(this,n)&&($t(this,Jn,n),$t(this,Nu,this.options),$t(this,el,Ve(this,Wt).state)),n}getCurrentResult(){return Ve(this,Jn)}trackResult(t,r){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),r==null||r(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&Ve(this,yo).status==="pending"&&Ve(this,yo).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(t){Ve(this,ku).add(t)}getCurrentQuery(){return Ve(this,Wt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=Ve(this,pi).defaultQueryOptions(t),n=Ve(this,pi).getQueryCache().build(Ve(this,pi),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return tn(this,lr,df).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Ve(this,Jn)))}createResult(t,r){var L;const n=Ve(this,Wt),i=this.options,a=Ve(this,Jn),o=Ve(this,el),s=Ve(this,Nu),u=t!==n?t.state:Ve(this,Oh),{state:c}=t;let f={...c},d=!1,h;if(r._optimisticResults){const D=this.hasListeners(),C=!D&&tS(t,r),P=D&&rS(t,n,r,i);(C||P)&&(f={...f,...q$(c.data,t.options)}),r._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:g,errorUpdatedAt:p,status:m}=f;h=f.data;let y=!1;if(r.placeholderData!==void 0&&h===void 0&&m==="pending"){let D;a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData)?(D=a.data,y=!0):D=typeof r.placeholderData=="function"?r.placeholderData((L=Ve(this,ju))==null?void 0:L.state.data,Ve(this,ju)):r.placeholderData,D!==void 0&&(m="success",h=Q_(a==null?void 0:a.data,D,r),d=!0)}if(r.select&&h!==void 0&&!y)if(a&&h===(o==null?void 0:o.data)&&r.select===Ve(this,Ph))h=Ve(this,Cu);else try{$t(this,Ph,r.select),h=r.select(h),h=Q_(a==null?void 0:a.data,h,r),$t(this,Cu,h),$t(this,cs,null)}catch(D){$t(this,cs,D)}Ve(this,cs)&&(g=Ve(this,cs),h=Ve(this,Cu),p=Date.now(),m="error");const x=f.fetchStatus==="fetching",w=m==="pending",A=m==="error",_=w&&x,E=h!==void 0,k={status:m,fetchStatus:f.fetchStatus,isPending:w,isSuccess:m==="success",isError:A,isInitialLoading:_,isLoading:_,data:h,dataUpdatedAt:f.dataUpdatedAt,error:g,errorUpdatedAt:p,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!w,isLoadingError:A&&!E,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:A&&E,isStale:n5(t,r),refetch:this.refetch,promise:Ve(this,yo),isEnabled:ta(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const D=k.data!==void 0,C=k.status==="error"&&!D,P=J=>{C?J.reject(k.error):D&&J.resolve(k.data)},M=()=>{const J=$t(this,yo,k.promise=eS());P(J)},q=Ve(this,yo);switch(q.status){case"pending":t.queryHash===n.queryHash&&P(q);break;case"fulfilled":(C||k.data!==q.value)&&M();break;case"rejected":(!C||k.error!==q.reason)&&M();break}}return k}updateResult(){const t=Ve(this,Jn),r=this.createResult(Ve(this,Wt),this.options);if($t(this,el,Ve(this,Wt).state),$t(this,Nu,this.options),Ve(this,el).data!==void 0&&$t(this,ju,Ve(this,Wt)),Z2(r,t))return;$t(this,Jn,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!Ve(this,ku).size)return!0;const o=new Set(a??Ve(this,ku));return this.options.throwOnError&&o.add("error"),Object.keys(Ve(this,Jn)).some(s=>{const l=s;return Ve(this,Jn)[l]!==t[l]&&o.has(l)})};tn(this,lr,O6).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&tn(this,lr,nx).call(this)}},pi=new WeakMap,Wt=new WeakMap,Oh=new WeakMap,Jn=new WeakMap,el=new WeakMap,Nu=new WeakMap,yo=new WeakMap,cs=new WeakMap,Ph=new WeakMap,Cu=new WeakMap,ju=new WeakMap,tl=new WeakMap,rl=new WeakMap,fs=new WeakMap,ku=new WeakMap,lr=new WeakSet,df=function(t){tn(this,lr,ox).call(this);let r=Ve(this,Wt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(X2)),r},ex=function(){tn(this,lr,ix).call(this);const t=Pf(this.options.staleTime,Ve(this,Wt));if(Q2.isServer()||Ve(this,Jn).isStale||!Y_(t))return;const n=I$(Ve(this,Jn).dataUpdatedAt,t)+1;$t(this,tl,K0.setTimeout(()=>{Ve(this,Jn).isStale||this.updateResult()},n))},tx=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Ve(this,Wt)):this.options.refetchInterval)??!1},rx=function(t){tn(this,lr,ax).call(this),$t(this,fs,t),!(Q2.isServer()||ta(this.options.enabled,Ve(this,Wt))===!1||!Y_(Ve(this,fs))||Ve(this,fs)===0)&&$t(this,rl,K0.setInterval(()=>{(this.options.refetchIntervalInBackground||N$.isFocused())&&tn(this,lr,df).call(this)},Ve(this,fs)))},nx=function(){tn(this,lr,ex).call(this),tn(this,lr,rx).call(this,tn(this,lr,tx).call(this))},ix=function(){Ve(this,tl)!==void 0&&(K0.clearTimeout(Ve(this,tl)),$t(this,tl,void 0))},ax=function(){Ve(this,rl)!==void 0&&(K0.clearInterval(Ve(this,rl)),$t(this,rl,void 0))},ox=function(){const t=Ve(this,pi).getQueryCache().build(Ve(this,pi),this.options);if(t===Ve(this,Wt))return;const r=Ve(this,Wt);$t(this,Wt,t),$t(this,Oh,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},O6=function(t){E6.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(Ve(this,Jn))}),Ve(this,pi).getQueryCache().notify({query:Ve(this,Wt),type:"observerResultsUpdated"})})},vP);function z$(e,t){return ta(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&ta(t.retryOnMount,e)===!1)}function tS(e,t){return z$(e,t)||e.state.data!==void 0&&sx(e,t,t.refetchOnMount)}function sx(e,t,r){if(ta(t.enabled,e)!==!1&&Pf(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&n5(e,t)}return!1}function rS(e,t,r,n){return(e!==t||ta(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&n5(e,r)}function n5(e,t){return ta(t.enabled,e)!==!1&&e.isStaleByTime(Pf(t.staleTime,e))}function W$(e,t){return!Z2(e.getCurrentResult(),t)}var H$=vn.createContext(void 0),G$=e=>{const t=vn.useContext(H$);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},P6=vn.createContext(!1),V$=()=>vn.useContext(P6);P6.Provider;function K$(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Y$=vn.createContext(K$()),X$=()=>vn.useContext(Y$),J$=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?T6(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},Z$=e=>{vn.useEffect(()=>{e.clearReset()},[e])},Q$=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||T6(r,[e.error,n])),eq=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},tq=(e,t)=>e.isLoading&&e.isFetching&&!t,rq=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,nS=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function nq(e,t,r){var h,g,p,m;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const n=V$(),i=X$(),a=G$(),o=a.defaultQueryOptions(e);(g=(h=a.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||g.call(h,o);const s=a.getQueryCache().get(o.queryHash);process.env.NODE_ENV!=="production"&&(o.queryFn||console.error(`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`));const l=e.subscribed!==!1;o._optimisticResults=n?"isRestoring":l?"optimistic":void 0,eq(o),J$(o,i,s),Z$(i);const u=!a.getQueryCache().get(o.queryHash),[c]=vn.useState(()=>new t(a,o)),f=c.getOptimisticResult(o),d=!n&&l;if(vn.useSyncExternalStore(vn.useCallback(y=>{const x=d?c.subscribe(E6.batchCalls(y)):X2;return c.updateResult(),x},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),vn.useEffect(()=>{c.setOptions(o)},[o,c]),rq(o,f))throw nS(o,c,i);if(Q$({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;if((m=(p=a.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||m.call(p,o,f),o.experimental_prefetchInRender&&!Q2.isServer()&&tq(f,n)){const y=u?nS(o,c,i):s==null?void 0:s.promise;y==null||y.catch(X2).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?f:c.trackResult(f)}function iq(e,t){return nq(e,U$)}const iS=1440*60*1e3;function aq(e,{allClassesLabel:t="All Classes",allSectionsLabel:r="All Sections"}={}){const[n,i]=V.useState(""),[a,o]=V.useState(""),{data:s,isLoading:l}=iq({queryKey:["class-sections-lookup"],queryFn:e,staleTime:iS,gcTime:iS,enabled:!!e}),u=(s==null?void 0:s.classes)||[],c=V.useMemo(()=>[{value:"",label:t},...u.map(g=>({value:g.name,label:g.display_name}))],[u,t]),f=l&&!!n,d=V.useMemo(()=>{if(!n)return[{value:"",label:r}];const g=u.find(p=>p.name===n);return!g||!g.sections.length?[{value:"",label:r}]:[{value:"",label:r},...g.sections.map(p=>({value:p.section_name,label:p.section_name}))]},[n,u,r]);return{selectedClass:n,selectedSection:a,setSelectedClass:g=>{i(g),o("")},setSelectedSection:o,classOptions:c,sectionOptions:d,sectionsLoading:f,classes:u,isLoading:l}}const oq={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"},sq={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 ni({children:e,variant:t="primary",size:r="md",icon:n,loading:i,disabled:a,className:o,...s}){return S.jsxs("button",{disabled:a||i,className:It("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",oq[t],sq[r],o),...s,children:[i?S.jsx(Xe.Loader2,{size:16,className:"animate-spin"}):n&&S.jsx(n,{size:16}),e]})}function lq({children:e,className:t,hover:r=!1,interactive:n=!1,...i}){return S.jsx("div",{className:It("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),...i,children:e})}function uq({children:e,className:t}){return S.jsx("div",{className:It("pb-4 mb-4 border-b border-slate-200",t),children:e})}function cq({children:e,className:t}){return S.jsx("div",{className:It(t),children:e})}function fq({children:e,className:t}){return S.jsx("h3",{className:It("text-lg font-semibold text-slate-900",t),children:e})}const hq={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"},dq={Active:"success",Approved:"success",Paid:"success",Present:"success",Completed:"success",Published:"primary",Operational:"success",Pending:"warning",Late:"warning",Maintenance:"warning",Draft:"neutral",Rejected:"danger",Absent:"danger",Overdue:"danger",Cancelled:"danger",Inactive:"neutral"};function dd({children:e,variant:t,status:r,className:n}){const i=t||dq[r||e]||"neutral";return S.jsx("span",{className:It("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium transition-colors",hq[i],n),children:e||r})}function i5({items:e,className:t}){return S.jsx("nav",{className:It("flex items-center gap-1 text-xs text-slate-500 mb-2",t),children:e.map((r,n)=>S.jsxs("span",{className:"flex items-center gap-1",children:[n>0&&S.jsx(Xe.ChevronRight,{size:12,className:"text-slate-400"}),r.href?S.jsx("a",{href:r.href,className:"hover:text-primary-600 transition-colors duration-150",children:r.label}):S.jsx("span",{className:"text-slate-800 font-medium",children:r.label})]},n))})}function N6({label:e,error:t,icon:r,className:n,...i}){return S.jsxs("div",{className:"space-y-1.5",children:[e&&S.jsx("label",{className:"text-sm font-medium text-slate-700",children:e}),S.jsxs("div",{className:"relative",children:[r&&S.jsx(r,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),S.jsx("input",{className:It("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),...i})]}),t&&S.jsx("p",{className:"text-xs text-danger-500",children:t})]})}function C6({value:e,onChange:t,placeholder:r="Search...",className:n}){return S.jsx(N6,{icon:Xe.Search,value:e,onChange:i=>t(i.target.value),placeholder:r,className:n})}function pq({label:e,options:t=[],value:r,onChange:n,placeholder:i="Select...",error:a,className:o,...s}){return S.jsxs("div",{className:"space-y-1.5",children:[e&&S.jsx("label",{className:"text-sm font-medium text-slate-700",children:e}),S.jsxs("div",{className:"relative",children:[S.jsxs("select",{value:r,onChange:l=>n(l.target.value),className:It("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",a&&"border-danger-500 focus:ring-danger-500",o),...s,children:[S.jsx("option",{value:"",children:i}),t.map(l=>S.jsx("option",{value:l.value??l,children:l.label??l},l.value??l))]}),S.jsx(Xe.ChevronDown,{size:16,className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"})]}),a&&S.jsx("p",{className:"text-xs text-danger-500",children:a})]})}const vq={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 zp({open:e,onClose:t,title:r,children:n,footer:i,size:a="md"}){const o=V.useRef(null),s=V.useRef(null),l=V.useCallback(c=>{var f,d,h;if(c.key==="Escape"&&(c.stopPropagation(),t()),c.key==="Enter"&&i&&o.current){const p=((d=(f=document.activeElement)==null?void 0:f.tagName)==null?void 0:d.toLowerCase())==="textarea",m=((h=document.activeElement)==null?void 0:h.getAttribute("contenteditable"))==="true";if(!p&&!m){const y=o.current.querySelectorAll('.flex.items-center.justify-end button, [class*="justify-end"] button'),x=y.length>0?y[y.length-1]:null;x&&!x.disabled&&(c.preventDefault(),x.click())}}if(c.key==="Tab"&&o.current){const g=o.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(g.length===0)return;const p=g[0],m=g[g.length-1];c.shiftKey&&document.activeElement===p?(c.preventDefault(),m.focus()):!c.shiftKey&&document.activeElement===m&&(c.preventDefault(),p.focus())}},[t,i]),u=V.useRef(!1);return V.useEffect(()=>{if(!e){u.current=!1;return}return document.body.style.overflow="hidden",document.addEventListener("keydown",l),()=>{document.body.style.overflow="",document.removeEventListener("keydown",l)}},[e,l]),V.useEffect(()=>{if(!(!e||u.current))return u.current=!0,s.current=document.activeElement,setTimeout(()=>{var f;const c=(f=o.current)==null?void 0:f.querySelectorAll('input, textarea, select, [tabindex]:not([tabindex="-1"])');c!=null&&c.length&&c[0].focus()},50),()=>{var c;(c=s.current)==null||c.focus()}},[e]),e?S.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",role:"presentation",children:[S.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-[2px] animate-fade-in-up",style:{animationDuration:"0.15s"},onClick:t,"aria-hidden":"true"}),S.jsxs("div",{ref:o,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",className:It("relative bg-white rounded-xl shadow-2xl w-full animate-fade-in-up",vq[a]),children:[S.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-200",children:[S.jsx("h2",{id:"modal-title",className:"text-lg font-semibold text-slate-900",children:r}),S.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:S.jsx(Xe.X,{size:16,className:"text-slate-500"})})]}),S.jsx("div",{className:"px-6 py-4",children:n}),i&&S.jsx("div",{className:"flex items-center justify-end gap-3 px-6 py-4 border-t border-slate-200",children:i})]})]}):null}function a5({value:e,onChange:t,options:r=[],onSearch:n,placeholder:i="Search...",labelKey:a="label",valueKey:o="value",renderOption:s,loading:l=!1,showSearch:u}){const[c,f]=V.useState(!1),[d,h]=V.useState(""),g=V.useRef(null),p=V.useRef(null),m=u===!0||u!==!1&&r.length>5,y=r.find(E=>E[o]===e);V.useEffect(()=>{const E=T=>{g.current&&!g.current.contains(T.target)&&f(!1)};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[]);const x=E=>{h(E),n&&(clearTimeout(p.current),p.current=setTimeout(()=>n(E),300))},w=E=>{t(E[o]),f(!1),h("")},A=E=>{E.stopPropagation(),t(""),h("")},_=d&&!n?r.filter(E=>(E[a]||"").toLowerCase().includes(d.toLowerCase())):r;return S.jsxs("div",{ref:g,className:"relative",children:[S.jsxs("div",{role:"combobox","aria-expanded":c,"aria-haspopup":"listbox",tabIndex:0,onClick:()=>f(!c),onKeyDown:E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),f(!c)),E.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:[S.jsx("span",{className:y?"text-slate-800":"text-slate-400",children:y?s?s(y):y[a]:i}),S.jsxs("div",{className:"flex items-center gap-1",children:[e&&S.jsx("button",{onClick:A,"aria-label":"Clear selection",className:"p-0.5 hover:bg-slate-100 rounded transition-colors duration-150",children:S.jsx(Xe.X,{size:12,className:"text-slate-400"})}),S.jsx(Xe.ChevronDown,{size:16,className:`text-slate-400 transition-transform duration-150 ${c?"rotate-180":""}`})]})]}),c&&S.jsxs("div",{className:"absolute z-50 mt-1 w-full bg-white border border-slate-200 rounded-xl shadow-soft-lg max-h-60 overflow-hidden animate-fade-in-up",style:{animationDuration:"0.15s"},children:[m&&S.jsx("div",{className:"p-2 border-b border-slate-100",children:S.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:[S.jsx(Xe.Search,{size:14,className:"text-slate-400"}),S.jsx("input",{autoFocus:!0,value:d,onChange:E=>x(E.target.value),onKeyDown:E=>{E.key==="Escape"&&f(!1)},placeholder:"Type to search...",className:"w-full text-sm outline-none","aria-label":"Search options"})]})}),S.jsxs("div",{className:"overflow-y-auto max-h-44",role:"listbox",children:[l&&S.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"Loading..."}),!l&&_.length===0&&S.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"No results found"}),_.map(E=>S.jsx("div",{role:"option","aria-selected":E[o]===e,onClick:()=>w(E),className:`px-3 py-2 text-sm cursor-pointer transition-colors duration-150 ${E[o]===e?"bg-primary-50 text-primary-700 font-medium":"text-slate-700 hover:bg-slate-50"}`,children:s?s(E):E[a]},E[o]))]})]})]})}function mq({columns:e=[],data:t=[],loading:r=!1,emptyMessage:n="No data found",emptyIcon:i,page:a,totalPages:o,totalCount:s,pageSize:l=20,onPageChange:u,onPageSizeChange:c,pageSizeOptions:f=[20,50,100,1e3],filters:d,search:h,onExport:g,exportLabel:p="Export",headerTitle:m,headerCount:y,headerExtra:x,sortConfig:w,onSort:A,onRowClick:_,rowClassName:E,className:T}){const k=u&&o>1,L=d&&d.length>0||h,D=m||g||x;return S.jsxs("div",{className:It("bg-white border border-slate-200 rounded-xl transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",T),children:[D&&S.jsxs("div",{className:"flex items-center justify-between px-5 py-3.5 border-b border-slate-100",children:[S.jsx("div",{className:"flex items-center gap-2",children:m&&S.jsxs("h3",{className:"text-base font-semibold text-slate-900",children:[m,y!=null&&S.jsxs("span",{className:"ml-1.5 text-sm font-normal text-slate-400",children:["(",y,")"]})]})}),S.jsxs("div",{className:"flex items-center gap-2",children:[g&&S.jsxs("button",{onClick:g,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:[S.jsx(Xe.Download,{size:13}),p]}),x]})]}),L&&S.jsx("div",{className:"px-5 pt-4 pb-5 border-b border-slate-100",children:S.jsxs("div",{className:"bg-slate-50 border border-slate-200 rounded-xl px-4 py-4 space-y-3",children:[S.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[S.jsxs("div",{className:"flex items-center gap-1.5 text-slate-500",children:[S.jsx(Xe.Filter,{size:14}),S.jsx("span",{className:"text-xs font-semibold",children:"Filters"})]}),d&&d.map(C=>{var P;return S.jsx("div",{className:"min-w-[170px]",children:S.jsx(a5,{value:C.value,onChange:C.onChange,options:C.options,placeholder:C.placeholder||((P=C.options[0])==null?void 0:P.label)||"Select...",loading:C.loading})},C.key)})]}),h&&S.jsx("div",{className:"w-full",children:S.jsx(C6,{value:h.value,onChange:h.onChange,placeholder:h.placeholder||"Search..."})})]})}),k&&S.jsx("div",{className:"border-b border-slate-100",children:S.jsx(gq,{page:a,totalPages:o,totalCount:s,pageSize:l,onPageChange:u,onPageSizeChange:c,pageSizeOptions:f})}),t.length===0&&!r?S.jsxs("div",{className:"text-center py-12 px-5",children:[i&&S.jsx("div",{className:"w-12 h-12 rounded-full bg-slate-100 flex items-center justify-center mx-auto mb-3",children:S.jsx(i,{size:20,className:"text-slate-400"})}),S.jsx("p",{className:"text-sm text-slate-400",children:n})]}):S.jsxs("div",{className:It("overflow-x-auto relative",r&&"min-h-[200px]"),children:[r&&S.jsx("div",{className:"absolute inset-0 bg-white/60 backdrop-blur-[1px] z-10 flex items-center justify-center",children:S.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:[S.jsxs("div",{className:"relative w-10 h-10",children:[S.jsx("div",{className:"absolute inset-0 border-[3px] border-slate-100 rounded-full"}),S.jsx("div",{className:"absolute inset-0 border-[3px] border-primary-500 border-t-transparent rounded-full animate-spin"})]}),S.jsx("span",{className:"text-xs font-medium text-slate-500 tracking-wide",children:"Fetching data..."})]})}),S.jsxs("table",{className:"w-full text-sm",children:[S.jsx("thead",{children:S.jsx("tr",{className:"bg-slate-50 border-b border-slate-200 text-left",children:e.map(C=>S.jsx("th",{className:It("py-2.5 px-4 text-xs font-semibold text-slate-500 uppercase tracking-wider",C.align==="center"&&"text-center",C.align==="right"&&"text-right",C.sortable&&A&&"cursor-pointer select-none hover:text-slate-700",C.width),onClick:C.sortable&&A?()=>A(C.key):void 0,children:S.jsxs("span",{className:"inline-flex items-center gap-1",children:[C.label,C.sortable&&A&&(w==null?void 0:w.key)===C.key&&(w.direction==="asc"?S.jsx(Xe.ChevronUp,{size:12,className:"text-slate-700"}):S.jsx(Xe.ChevronDown,{size:12,className:"text-slate-700"}))]})},C.key))})}),S.jsx("tbody",{className:"divide-y divide-slate-100",children:t.map((C,P)=>S.jsx("tr",{className:It("hover:bg-primary-50/40 transition-colors duration-150",_&&"cursor-pointer",E&&E(C)),onClick:_?()=>_(C):void 0,children:e.map(M=>S.jsx("td",{className:It("py-2.5 px-4",M.align==="center"&&"text-center",M.align==="right"&&"text-right"),children:M.render?M.render(C,P):C[M.key]??""},M.key))},C.id||P))})]})]})]})}function gq({page:e=0,totalPages:t=1,totalCount:r,pageSize:n=20,onPageChange:i,onPageSizeChange:a,pageSizeOptions:o=[20,50,100,1e3]}){const s=e*n+1,l=Math.min((e+1)*n,r||(e+1)*n),u=()=>{const c=[];if(t<=5)for(let f=0;f<t;f++)c.push(f);else{c.push(0),e>2&&c.push("...");const f=Math.max(1,e-1),d=Math.min(t-2,e+1);for(let h=f;h<=d;h++)c.push(h);e<t-3&&c.push("..."),c.push(t-1)}return c};return S.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-t border-slate-100",children:[S.jsxs("div",{className:"flex items-center gap-5",children:[S.jsx("p",{className:"text-[11px] text-slate-400 font-medium tracking-wide",children:r!=null?S.jsxs(S.Fragment,{children:[S.jsxs("span",{className:"text-slate-600 font-semibold",children:[s,"–",l]})," of ",S.jsx("span",{className:"text-slate-600 font-semibold",children:r})," results"]}):S.jsxs(S.Fragment,{children:["Page ",S.jsx("span",{className:"text-slate-600 font-semibold",children:e+1})," of ",S.jsx("span",{className:"text-slate-600 font-semibold",children:t})]})}),a&&S.jsx("div",{className:"flex items-center gap-1 bg-slate-50 rounded-lg border border-slate-200 p-0.5",children:o.map(c=>S.jsx("button",{onClick:()=>a(c),className:It("px-2.5 py-1 rounded-md text-[11px] font-semibold transition-all duration-150",c===n?"bg-white text-slate-900 shadow-sm border border-slate-200":"text-slate-400 hover:text-slate-600"),children:c},c))})]}),S.jsxs("div",{className:"flex items-center",children:[S.jsx("button",{onClick:()=>i(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:S.jsx(Xe.ChevronLeft,{size:14,className:"text-slate-500"})}),u().map((c,f)=>c==="..."?S.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}`):S.jsx("button",{onClick:()=>i(c),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 ${c===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:c+1},c)),S.jsx("button",{onClick:()=>i(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:S.jsx(Xe.ChevronRight,{size:14,className:"text-slate-500"})})]})]})}function yq({items:e,brand:t,user:r,collapsed:n,onToggle:i,onLogout:a,onSettings:o}){const s=fl.useLocation();e.findIndex(g=>s.pathname.startsWith(g.path)),V.useEffect(()=>{const g=s.pathname,p=e.find(m=>g.startsWith(m.path));if(p)try{const m=JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]"),y=[p.path,...m.filter(x=>x!==p.path)].slice(0,5);sessionStorage.setItem("sidebar-recent",JSON.stringify(y))}catch{}},[s.pathname,e]);const[l,u]=V.useState(!1);V.useEffect(()=>{const g=setTimeout(()=>u(!0),50);return()=>clearTimeout(g)},[]);const c=e.some(g=>g.group),f=c?e.reduce((g,p)=>{const m=p.group||"Other";return g[m]||(g[m]=[]),g[m].push(p),g},{}):null,d=(g,p)=>{const m=g.icon;return S.jsxs(fl.NavLink,{to:g.path,onClick:()=>navigate(g.path),style:{animationDelay:`${p*50}ms`,animationFillMode:"forwards"},className:({isActive:y})=>It("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",y?"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:[m&&S.jsx(m,{size:20,className:It("flex-shrink-0 transition-all duration-200",s.pathname.startsWith(g.path)&&"drop-shadow-[0_0_6px_rgba(255,255,255,0.5)]")}),S.jsx("span",{className:It("truncate transition-all duration-200 overflow-hidden whitespace-nowrap",n?"w-0 opacity-0":"w-auto opacity-100"),style:{transitionDelay:n?"0ms":"100ms"},children:g.label}),n&&S.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:g.label})]},g.path)},h=()=>{if(c&&f){let g=0;return Object.entries(f).map(([p,m])=>S.jsxs("div",{children:[!n&&S.jsx("p",{className:"text-[10px] uppercase tracking-wider text-slate-500 px-3 pt-4 pb-1 font-semibold",children:p}),m.map(y=>{const x=g;return g++,d(y,x)})]},p))}return e.map((g,p)=>d(g,p))};return S.jsxs(S.Fragment,{children:[S.jsxs("aside",{className:It("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:[S.jsxs("div",{className:"flex items-center justify-between px-4 h-[72px]",children:[!n&&S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-lg font-bold tracking-tight",children:t}),S.jsx("span",{className:"text-[10px] text-slate-400 font-medium tracking-wide uppercase",children:"Admin Portal"})]}),S.jsx("button",{onClick:i,className:"p-1.5 rounded-lg hover:bg-white/10 transition-all duration-200",children:S.jsx("span",{className:It("block transition-transform duration-200",n&&"rotate-180"),children:n?S.jsx(Xe.PanelLeft,{size:18}):S.jsx(Xe.PanelLeftClose,{size:18})})})]}),S.jsx("div",{className:"mx-4 h-px bg-gradient-to-r from-transparent via-slate-600/50 to-transparent"}),r&&S.jsx("div",{className:It("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:S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsxs("div",{className:"relative flex-shrink-0",children:[S.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()}),S.jsx("span",{className:"absolute bottom-0 right-0 w-3 h-3 bg-emerald-400 border-2 border-slate-900 rounded-full"})]}),!n&&S.jsxs("div",{className:"overflow-hidden",children:[S.jsx("p",{className:"text-sm font-semibold truncate",children:r.name}),S.jsx("p",{className:"text-xs text-slate-400 truncate",children:r.email}),r.role&&S.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})]})]})}),S.jsx("div",{className:"mx-4 h-px bg-gradient-to-r from-transparent via-slate-600/50 to-transparent"}),S.jsx("nav",{className:"relative flex-1 overflow-y-auto py-4 px-2 space-y-1.5",children:h()}),a&&S.jsx("div",{className:"px-2 py-4 mt-2 border-t border-slate-700/30",children:S.jsxs("button",{onClick:a,className:It("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:[S.jsx(Xe.LogOut,{size:20}),!n&&S.jsx("span",{children:"Logout"}),n&&S.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"})]})})]}),S.jsx(xq,{items:e,onLogout:a})]})}function xq({items:e,onLogout:t}){const[r,n]=V.useState(!1),i=e.slice(0,4),a=e.slice(4);return S.jsxs(S.Fragment,{children:[S.jsx("nav",{className:"fixed bottom-0 left-0 right-0 z-40 bg-white border-t border-slate-200 md:hidden",children:S.jsxs("div",{className:"flex items-center justify-around px-2 py-1.5",children:[i.map(o=>{const s=o.icon;return S.jsxs(fl.NavLink,{to:o.path,className:({isActive:l})=>It("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]",l?"text-primary-600 bg-primary-50":"text-slate-500 hover:text-slate-700"),children:[s&&S.jsx(s,{size:20}),S.jsx("span",{className:"truncate",children:o.label.split(" ")[0]})]},o.path)}),a.length>0&&S.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:[S.jsx(Xe.MoreHorizontal,{size:20}),S.jsx("span",{children:"More"})]})]})}),r&&S.jsxs("div",{className:"fixed inset-0 z-50 md:hidden",onClick:()=>n(!1),children:[S.jsx("div",{className:"fixed inset-0 bg-black/40"}),S.jsxs("div",{className:"fixed bottom-0 left-0 right-0 bg-white rounded-t-2xl p-4 animate-fade-in-up",children:[S.jsxs("div",{className:"flex items-center justify-between mb-4",children:[S.jsx("h3",{className:"text-sm font-semibold text-slate-900",children:"More Options"}),S.jsx("button",{onClick:()=>n(!1),className:"p-1.5 rounded-lg hover:bg-slate-100 transition-colors",children:S.jsx(Xe.X,{size:16,className:"text-slate-500"})})]}),S.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[a.map(o=>{const s=o.icon;return S.jsxs(fl.NavLink,{to:o.path,onClick:()=>n(!1),className:({isActive:l})=>It("flex flex-col items-center gap-1.5 p-3 rounded-xl text-[11px] font-medium transition-all duration-150",l?"text-primary-600 bg-primary-50":"text-slate-600 hover:bg-slate-50"),children:[s&&S.jsx(s,{size:22}),S.jsx("span",{className:"text-center leading-tight",children:o.label})]},o.path)}),t&&S.jsxs("button",{onClick:()=>{n(!1),t()},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:[S.jsx(Xe.LogOut,{size:22}),S.jsx("span",{children:"Logout"})]})]})]})]})]})}function bq({title:e,subtitle:t,school:r,user:n,notificationCount:i=0,onLogout:a,onProfile:o,onSettings:s,onChangePassword:l,navItems:u=[]}){const[c,f]=V.useState(!1),d=V.useRef(null),h=fl.useNavigate(),g=(()=>{try{return JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]").slice(0,5)}catch{return[]}})();return V.useEffect(()=>{const p=m=>{d.current&&!d.current.contains(m.target)&&f(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]),S.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:[S.jsx("div",{className:"flex-1"}),S.jsxs("div",{className:"absolute left-1/2 -translate-x-1/2 flex items-center gap-3",children:[(r==null?void 0:r.logo)&&S.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?S.jsx("h1",{className:"text-lg font-bold text-slate-900",children:r.name}):!r&&e?S.jsxs("div",{children:[S.jsx("h1",{className:"text-lg font-bold text-slate-900",children:e}),t&&S.jsx("p",{className:"text-xs text-slate-500",children:t})]}):null]}),S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsxs("button",{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:[S.jsx(Xe.Search,{size:14}),S.jsx("span",{children:"Search..."}),S.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"})]}),S.jsxs("button",{className:"relative p-2 rounded-lg hover:bg-slate-100 transition-colors duration-150",children:[S.jsx(Xe.Bell,{size:20,className:"text-slate-600"}),i>0&&S.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:i})]}),n&&S.jsxs("div",{ref:d,className:"relative",children:[S.jsxs("button",{onClick:()=>f(!c),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:[S.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()}),S.jsxs("div",{className:"hidden sm:block text-left",children:[S.jsx("p",{className:"text-xs font-medium text-slate-900",children:n.name}),S.jsx("p",{className:"text-[10px] text-slate-500 capitalize",children:n.role})]}),S.jsx(Xe.ChevronDown,{size:14,className:`text-slate-400 transition-transform duration-150 ${c?"rotate-180":""}`})]}),c&&S.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:[S.jsxs("div",{className:"px-4 py-3 border-b border-slate-100 bg-slate-50/50",children:[S.jsx("p",{className:"text-sm font-semibold text-slate-900",children:n.name}),S.jsx("p",{className:"text-xs text-slate-500 capitalize",children:n.role})]}),S.jsxs("div",{className:"py-1.5",children:[o&&S.jsxs("button",{onClick:()=>{f(!1),o()},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:[S.jsx(Xe.User,{size:16,className:"text-slate-400"}),"My Profile"]}),s&&S.jsxs("button",{onClick:()=>{f(!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:[S.jsx(Xe.Settings,{size:16,className:"text-slate-400"}),"Settings"]}),l&&S.jsxs("button",{onClick:()=>{f(!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:[S.jsx(Xe.KeyRound,{size:16,className:"text-slate-400"}),"Change Password"]}),g.length>0&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"border-t border-slate-100 my-1"}),S.jsxs("div",{className:"px-4 py-2",children:[S.jsxs("p",{className:"text-[10px] uppercase tracking-wider text-slate-400 font-semibold flex items-center gap-1 mb-1.5",children:[S.jsx(Xe.Clock,{size:10})," Recents"]}),g.map(p=>{const m=u.find(x=>x.path===p);if(!m)return null;const y=m.icon;return S.jsxs("button",{onClick:()=>{f(!1),h(p)},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:[y&&S.jsx(y,{size:14,className:"text-slate-400"}),m.label]},p)})]})]}),a&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"border-t border-slate-100 my-1"}),S.jsxs("button",{onClick:()=>{f(!1),a()},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:[S.jsx(Xe.LogOut,{size:16,className:"text-red-400"}),"Logout"]})]})]})]})]})]})]})}function Qn({className:e}){return S.jsx("div",{className:It("rounded-lg bg-gradient-to-r from-slate-200 via-slate-100 to-slate-200 bg-[length:200%_100%] animate-shimmer",e)})}function wq(){return S.jsxs("div",{className:"bg-white rounded-xl shadow-soft border border-slate-100 p-6 space-y-3",children:[S.jsx(Qn,{className:"h-4 w-1/3"}),S.jsx(Qn,{className:"h-8 w-1/2"}),S.jsx(Qn,{className:"h-3 w-2/3"})]})}function j6(){return S.jsxs("div",{className:"space-y-6",children:[S.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Array.from({length:4}).map((e,t)=>S.jsxs("div",{className:"bg-white rounded-xl border border-slate-100 p-5 flex items-center gap-4",children:[S.jsx(Qn,{className:"w-11 h-11 rounded-xl"}),S.jsxs("div",{className:"space-y-2 flex-1",children:[S.jsx(Qn,{className:"h-3 w-2/3"}),S.jsx(Qn,{className:"h-6 w-1/2"})]})]},t))}),S.jsxs("div",{className:"bg-white rounded-xl border border-slate-100 p-5",children:[S.jsx(Qn,{className:"h-4 w-1/4 mb-4"}),S.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:Array.from({length:4}).map((e,t)=>S.jsx(Qn,{className:"h-20 rounded-xl"},t))})]}),S.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4",children:[S.jsxs("div",{className:"md:col-span-7 bg-white rounded-xl border border-slate-100 p-5",children:[S.jsx(Qn,{className:"h-4 w-1/4 mb-4"}),S.jsx(Qn,{className:"h-48 w-full"})]}),S.jsxs("div",{className:"md:col-span-5 bg-white rounded-xl border border-slate-100 p-5",children:[S.jsx(Qn,{className:"h-4 w-1/3 mb-4"}),S.jsx(Qn,{className:"h-48 w-full"})]})]})]})}function _q({rows:e=5,cols:t=4}){return S.jsxs("div",{className:"rounded-xl border border-slate-200 overflow-hidden",children:[S.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)=>S.jsx(Qn,{className:"h-3 flex-1"},n))}),Array.from({length:e}).map((r,n)=>S.jsx("div",{className:"flex gap-4 px-4 py-3 border-b border-slate-100 last:border-0",children:Array.from({length:t}).map((i,a)=>S.jsx(Qn,{className:"h-3 flex-1"},a))},n))]})}function Sq({children:e,user:t,allowedRoles:r,redirectTo:n="/login"}){return t?r&&!r.includes(t.role)?S.jsx(fl.Navigate,{to:n,replace:!0}):e:S.jsx(fl.Navigate,{to:n,replace:!0})}function Aq({activities:e=[],className:t}){return e.length===0?null:S.jsx("div",{className:It("space-y-1",t),children:e.map((r,n)=>S.jsxs("div",{className:"flex items-start gap-3 py-3 border-b border-surface-50 last:border-0",children:[S.jsx("div",{className:It("w-8 h-8 rounded flex items-center justify-center flex-shrink-0",r.bgColor||"bg-info-100"),children:r.icon||S.jsx(Xe.Activity,{className:"w-3.5 h-3.5 text-info-600"})}),S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsx("p",{className:"text-sm font-medium text-surface-800 truncate",children:r.title}),S.jsx("p",{className:"text-xs text-surface-500",children:r.description})]}),S.jsxs("div",{className:"text-right flex-shrink-0",children:[S.jsx("p",{className:"text-2xs text-surface-400",children:r.time}),r.tag&&S.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 k6=V.createContext(null),Tq={success:Xe.CheckCircle,error:Xe.AlertCircle,warning:Xe.AlertTriangle,info:Xe.Info},Eq={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"},Oq={success:"border-l-emerald-500",error:"border-l-red-500",warning:"border-l-amber-500",info:"border-l-blue-500"};function Pq({id:e,type:t="info",message:r,onRemove:n}){const i=Tq[t]||Xe.Info,[a,o]=V.useState(!1),[s,l]=V.useState(100);V.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 u=()=>{o(!0),setTimeout(()=>n(e),300)};return S.jsxs("div",{className:`flex items-start gap-3 px-4 py-3.5 bg-white border border-slate-200 border-l-4 ${Oq[t]} rounded-xl shadow-soft-lg max-w-sm transition-all duration-300 ${a?"opacity-0 translate-x-4":"opacity-100 translate-x-0 animate-slide-in-right"}`,children:[S.jsx("div",{className:`w-8 h-8 rounded-lg ${Eq[t]} flex items-center justify-center flex-shrink-0`,children:S.jsx(i,{size:16})}),S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsx("p",{className:"text-sm font-medium text-slate-900",children:r}),S.jsx("div",{className:"w-full h-0.5 bg-slate-100 rounded-full mt-2 overflow-hidden",children:S.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}%`}})})]}),S.jsx("button",{onClick:u,className:"shrink-0 p-1 rounded-lg hover:bg-slate-100 transition-colors duration-150 mt-0.5",children:S.jsx(Xe.X,{size:14,className:"text-slate-400"})})]})}function Nq({id:e,message:t,onConfirm:r,onUndo:n,timeout:i=5e3,onRemove:a}){const[o,s]=V.useState(i),[l,u]=V.useState(!1),c=V.useRef(!1);V.useEffect(()=>{const d=setInterval(()=>{s(h=>h<=100?(clearInterval(d),c.current||(r(),u(!0),setTimeout(()=>a(e),300)),0):h-100)},100);return()=>clearInterval(d)},[e,r,a,i]);const f=()=>{c.current=!0,n(),u(!0),setTimeout(()=>a(e),300)};return S.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:[S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsx("p",{className:"text-sm font-medium",children:t}),S.jsx("div",{className:"w-full h-1 bg-slate-700 rounded-full mt-2 overflow-hidden",children:S.jsx("div",{className:"h-full bg-primary-400 rounded-full transition-all duration-100",style:{width:`${o/i*100}%`}})})]}),S.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 Cq({children:e}){const[t,r]=V.useState([]),[n,i]=V.useState([]),a=V.useCallback((c,f="info")=>{const d=Date.now()+Math.random();r(h=>[...h,{id:d,message:c,type:f}])},[]),o=V.useCallback(c=>{r(f=>f.filter(d=>d.id!==c))},[]),s=V.useCallback((c,f,d,h=5e3)=>{const g=Date.now()+Math.random();i(p=>[...p,{id:g,message:c,onConfirm:f,onUndo:d,timeout:h}])},[]),l=V.useCallback(c=>{i(f=>f.filter(d=>d.id!==c))},[]),u=V.useMemo(()=>({success:c=>a(c,"success"),error:c=>a(c,"error"),warning:c=>a(c,"warning"),info:c=>a(c,"info"),undoable:(c,f,d,h)=>s(c,f,d,h)}),[a,s]);return S.jsxs(k6.Provider,{value:u,children:[e,S.jsxs("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-3",children:[t.map(c=>S.jsx(Pq,{...c,onRemove:o},c.id)),n.map(c=>S.jsx(Nq,{...c,onRemove:l},c.id))]})]})}function jq(){const e=V.useContext(k6);if(!e)throw new Error("useToast must be used within ToastProvider");return e}function kq({open:e,onClose:t,onConfirm:r,title:n="Confirm Delete",message:i="Are you sure you want to delete this? This action cannot be undone.",confirmText:a="Delete",loading:o=!1}){return S.jsxs(zp,{open:e,onClose:t,title:n,size:"sm",children:[S.jsxs("div",{className:"flex flex-col items-center text-center py-2",children:[S.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mb-3",children:S.jsx(Xe.AlertTriangle,{className:"w-6 h-6 text-red-600"})}),S.jsx("p",{className:"text-sm text-slate-600",children:i})]}),S.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[S.jsx(ni,{variant:"ghost",onClick:t,children:"Cancel"}),S.jsx(ni,{variant:"primary",onClick:r,disabled:o,className:"!bg-red-600 hover:!bg-red-700",children:o?"Deleting...":a})]})]})}function Lq({tabs:e,active:t,onChange:r,className:n}){return S.jsx("div",{className:It("flex gap-1 bg-slate-100/80 rounded-xl p-1.5 w-fit overflow-x-auto",n),children:e.map((i,a)=>{const o=t===a,s=typeof i=="string"?i:i.label,l=typeof i=="object"?i.icon:null;return S.jsxs("button",{onClick:()=>r(a),className:It("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&&S.jsx(l,{size:15,className:o?"text-primary-600":"text-slate-400"}),s,typeof i=="object"&&i.count!=null&&S.jsx("span",{className:It("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:i.count})]},s)})})}function Iq({checked:e,onChange:t,label:r,description:n,disabled:i,className:a}){return S.jsxs("label",{className:It("flex items-center gap-3 cursor-pointer group",i&&"opacity-50 cursor-not-allowed",a),children:[S.jsxs("div",{className:"relative",children:[S.jsx("input",{type:"checkbox",checked:e,onChange:t,disabled:i,className:"sr-only peer"}),S.jsx("div",{className:It("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&&S.jsx(Xe.Check,{size:13,className:"text-white",strokeWidth:3})})]}),(r||n)&&S.jsxs("div",{children:[r&&S.jsx("span",{className:"text-sm font-medium text-slate-700 group-hover:text-slate-900 transition-colors",children:r}),n&&S.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:n})]})]})}function L6({children:e,className:t}){return S.jsxs("div",{className:It("bg-white border border-slate-200 rounded-xl px-4 py-3 mb-6 flex flex-wrap items-center gap-3",t),children:[S.jsxs("div",{className:"flex items-center gap-1.5 text-slate-400 mr-1",children:[S.jsx(Xe.Filter,{size:15}),S.jsx("span",{className:"text-xs font-medium hidden sm:inline",children:"Filters"})]}),e]})}L6.Item=function({children:t,className:r}){return S.jsx("div",{className:It("min-w-[160px]",r),children:t})};function Fq({value:e,onChange:t,label:r,placeholder:n,min:i,max:a,className:o,disabled:s}){return S.jsxs("div",{className:o,children:[r&&S.jsx("label",{className:"text-xs font-medium text-slate-500 mb-1.5 block",children:r}),S.jsxs("div",{className:"relative group",children:[S.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-8 h-8 rounded-lg bg-primary-50 flex items-center justify-center transition-all duration-200 group-hover:bg-primary-100 group-focus-within:bg-primary-100 pointer-events-none",children:S.jsx(Xe.Calendar,{size:15,className:"text-primary-500 transition-transform duration-200 group-hover:scale-110"})}),S.jsx("input",{type:"date",value:e||"",onChange:l=>t(l.target.value),min:i,max:a,disabled:s,placeholder:n,className:It("w-full min-w-[180px] pl-14 pr-3.5 py-2.5 text-sm font-medium text-slate-800 border border-slate-300 rounded-lg bg-white","focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent focus:shadow-glow-primary","transition-all duration-200 hover:border-primary-300 hover:shadow-sm","disabled:opacity-50 disabled:cursor-not-allowed","[&::-webkit-calendar-picker-indicator]:opacity-0 [&::-webkit-calendar-picker-indicator]:absolute [&::-webkit-calendar-picker-indicator]:inset-0 [&::-webkit-calendar-picker-indicator]:w-full [&::-webkit-calendar-picker-indicator]:h-full [&::-webkit-calendar-picker-indicator]:cursor-pointer")})]})]})}function Rq({value:e,onChange:t,label:r,className:n,disabled:i}){return S.jsxs("div",{className:n,children:[r&&S.jsx("label",{className:"text-xs font-medium text-slate-500 mb-1.5 block",children:r}),S.jsxs("div",{className:"relative",children:[S.jsx(Xe.Clock,{size:15,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"}),S.jsx("input",{type:"time",value:e||"",onChange:a=>t(a.target.value),disabled:i,className:It("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 Mq extends V.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?S.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] p-8",children:[S.jsx("div",{className:"w-16 h-16 rounded-full bg-red-50 flex items-center justify-center mb-4",children:S.jsx("svg",{className:"w-8 h-8 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:S.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"})})}),S.jsx("h2",{className:"text-lg font-bold text-slate-900 mb-2",children:"Something went wrong"}),S.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."}),S.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 Dq(){const[e,t]=V.useState(navigator.onLine),[r,n]=V.useState(!1);return V.useEffect(()=>{const i=()=>{t(!0),n(!0),setTimeout(()=>n(!1),3e3)},a=()=>t(!1);return window.addEventListener("online",i),window.addEventListener("offline",a),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",a)}},[]),e&&!r?null:S.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?S.jsxs(S.Fragment,{children:[S.jsx(Xe.Wifi,{size:16,className:"mr-2"})," Back online"]}):S.jsxs(S.Fragment,{children:[S.jsx(Xe.WifiOff,{size:16,className:"mr-2"})," You're offline. Some features may not work."]})})}function Bq({label:e,sortKey:t,sortConfig:r,onSort:n,className:i}){const a=(r==null?void 0:r.key)===t,o=a?r.direction:null;return S.jsxs("button",{onClick:()=>n(t),className:It("flex items-center gap-1 text-xs font-semibold text-slate-500 uppercase tracking-wider hover:text-slate-700 transition-colors",i),children:[e,S.jsxs("span",{className:"text-slate-300",children:[!a&&S.jsx(Xe.ChevronsUpDown,{size:12}),o==="asc"&&S.jsx(Xe.ChevronUp,{size:12,className:"text-primary-500"}),o==="desc"&&S.jsx(Xe.ChevronDown,{size:12,className:"text-primary-500"})]})]})}function $q({children:e,content:t,className:r}){const[n,i]=V.useState(!1),[a,o]=V.useState({top:0,left:0}),s=V.useRef(null),l=V.useRef(null),u=()=>{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)})}i(!0)},400)},c=()=>{clearTimeout(l.current),l.current=setTimeout(()=>i(!1),200)};return S.jsxs(S.Fragment,{children:[S.jsx("span",{ref:s,onMouseEnter:u,onMouseLeave:c,className:It("inline-block",r),children:e}),n&&S.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:a.top,left:a.left,animationDuration:"0.15s"},onMouseEnter:()=>clearTimeout(l.current),onMouseLeave:c,children:t})]})}const aS={noData:S.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[S.jsx("rect",{x:"40",y:"30",width:"120",height:"90",rx:"8",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),S.jsx("rect",{x:"55",y:"50",width:"90",height:"8",rx:"4",fill:"#e2e8f0"}),S.jsx("rect",{x:"55",y:"65",width:"70",height:"8",rx:"4",fill:"#e2e8f0"}),S.jsx("rect",{x:"55",y:"80",width:"50",height:"8",rx:"4",fill:"#e2e8f0"}),S.jsx("circle",{cx:"100",cy:"105",r:"4",fill:"#cbd5e1"}),S.jsx("path",{d:"M85 100 L100 112 L115 100",stroke:"#cbd5e1",strokeWidth:"2",strokeLinecap:"round"})]}),noStudents:S.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[S.jsx("circle",{cx:"100",cy:"55",r:"25",fill:"#e0f2fe",stroke:"#bae6fd",strokeWidth:"2"}),S.jsx("circle",{cx:"100",cy:"48",r:"10",fill:"#7dd3fc"}),S.jsx("path",{d:"M80 72 Q100 85 120 72",stroke:"#7dd3fc",strokeWidth:"3",fill:"none"}),S.jsx("rect",{x:"60",y:"90",width:"80",height:"40",rx:"6",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),S.jsx("line",{x1:"75",y1:"102",x2:"125",y2:"102",stroke:"#e2e8f0",strokeWidth:"2"}),S.jsx("line",{x1:"75",y1:"112",x2:"110",y2:"112",stroke:"#e2e8f0",strokeWidth:"2"}),S.jsx("line",{x1:"75",y1:"122",x2:"95",y2:"122",stroke:"#e2e8f0",strokeWidth:"2"})]}),noResults:S.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[S.jsx("circle",{cx:"85",cy:"70",r:"30",stroke:"#e2e8f0",strokeWidth:"3",fill:"#f8fafc"}),S.jsx("line",{x1:"107",y1:"92",x2:"130",y2:"115",stroke:"#cbd5e1",strokeWidth:"4",strokeLinecap:"round"}),S.jsx("path",{d:"M75 65 L80 75 L95 60",stroke:"#94a3b8",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}),noSchedule:S.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[S.jsx("rect",{x:"50",y:"30",width:"100",height:"100",rx:"8",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),S.jsx("rect",{x:"50",y:"30",width:"100",height:"25",rx:"8",fill:"#e0f2fe"}),S.jsx("circle",{cx:"70",cy:"70",r:"4",fill:"#cbd5e1"}),S.jsx("circle",{cx:"100",cy:"70",r:"4",fill:"#cbd5e1"}),S.jsx("circle",{cx:"130",cy:"70",r:"4",fill:"#cbd5e1"}),S.jsx("circle",{cx:"70",cy:"90",r:"4",fill:"#cbd5e1"}),S.jsx("circle",{cx:"100",cy:"90",r:"4",fill:"#0ea5e9"}),S.jsx("circle",{cx:"130",cy:"90",r:"4",fill:"#cbd5e1"}),S.jsx("circle",{cx:"70",cy:"110",r:"4",fill:"#cbd5e1"}),S.jsx("circle",{cx:"100",cy:"110",r:"4",fill:"#cbd5e1"}),S.jsx("circle",{cx:"130",cy:"110",r:"4",fill:"#cbd5e1"})]}),success:S.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[S.jsx("circle",{cx:"100",cy:"75",r:"40",fill:"#dcfce7",stroke:"#86efac",strokeWidth:"2"}),S.jsx("path",{d:"M80 75 L95 90 L120 60",stroke:"#22c55e",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})]})};function qq({type:e="noData",title:t,message:r,action:n,className:i}){return S.jsxs("div",{className:It("flex flex-col items-center justify-center py-12 text-center",i),children:[aS[e]||aS.noData,t&&S.jsx("p",{className:"text-base font-semibold text-slate-700 mt-4",children:t}),r&&S.jsx("p",{className:"text-sm text-slate-400 mt-1 max-w-sm",children:r}),n&&S.jsx("div",{className:"mt-4",children:n})]})}function Uq({title:e,children:t,className:r}){return S.jsxs("div",{className:It("bg-white border border-slate-200 rounded-xl p-5 transition-all duration-200 hover:shadow-sm",r),children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 mb-4 flex items-center gap-2",children:[S.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary-500"}),e]}),t]})}function zq({tokenExpiresAt:e,onLogout:t,warningMinutes:r=5}){const[n,i]=V.useState(!1),[a,o]=V.useState(0),s=V.useRef(null);if(V.useEffect(()=>{if(!e)return;const c=()=>{const f=Date.now(),h=(typeof e=="number"?e:new Date(e).getTime())-f,g=r*60*1e3;h<=0?(i(!1),t==null||t()):h<=g?(i(!0),o(Math.ceil(h/1e3))):i(!1)};return c(),s.current=setInterval(c,1e3),()=>clearInterval(s.current)},[e,r,t]),!n)return null;const l=Math.floor(a/60),u=a%60;return S.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:S.jsxs("div",{className:"flex items-start gap-3",children:[S.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-100 flex items-center justify-center flex-shrink-0",children:S.jsx(Xe.Clock,{size:16,className:"text-amber-600"})}),S.jsxs("div",{className:"flex-1",children:[S.jsx("p",{className:"text-sm font-semibold text-amber-800",children:"Session Expiring Soon"}),S.jsxs("p",{className:"text-xs text-amber-600 mt-0.5",children:["Your session will expire in ",l,":",u.toString().padStart(2,"0")]}),S.jsxs("div",{className:"flex gap-2 mt-2",children:[S.jsx("button",{onClick:()=>{window.location.reload()},className:"px-3 py-1.5 text-xs font-medium bg-amber-500 text-white rounded-lg hover:bg-amber-600 transition-colors",children:"Stay Logged In"}),S.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 Wq=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Y0(e){if(!e)return"";const[t,r]=e.split(":"),n=parseInt(t);return`${n>12?n-12:n}:${r} ${n>=12?"PM":"AM"}`}function Hq({periods:e=[],timetable:t={},days:r=Wq,editable:n=!1,onSlotClick:i,onEmptyClick:a,onDrop:o}){e.filter(u=>!u.is_break);const s=[...e].sort((u,c)=>(u.start_time||"").localeCompare(c.start_time||"")),l=(u,c)=>{const f=t[c];return f&&f[u]||null};return s.length===0?S.jsx("div",{className:"bg-white border border-slate-200 rounded-xl p-8 text-center text-slate-400",children:"No timetable configured yet"}):S.jsx("div",{className:"bg-white border border-slate-200 rounded-xl overflow-auto shadow-soft",children:S.jsxs("div",{className:"grid min-w-[900px]",style:{gridTemplateColumns:`220px repeat(${r.length}, 1fr)`},children:[S.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:S.jsx("p",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Time / Day"})}),r.map(u=>{const c=new Date().toLocaleDateString("en-US",{weekday:"long"})===u;return S.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:S.jsx("div",{className:`px-4 py-2 rounded-lg text-center ${c?"bg-primary-500 shadow-glow-primary":"bg-white shadow-sm border border-slate-100"}`,children:S.jsx("p",{className:`text-sm font-semibold ${c?"text-white":"text-slate-800"}`,children:u})})},u)}),s.map((u,c)=>{const f=s.filter((d,h)=>h<c&&!d.is_break).length;return u.is_break?S.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:[S.jsxs("span",{className:"text-sm font-bold text-red-500",children:["☕ ",u.name||"Break"]}),S.jsxs("span",{className:"text-sm text-red-400",children:["(",Y0(u.start_time)," – ",Y0(u.end_time),")"]})]},u.id||`break-${c}`):S.jsxs(V.Fragment,{children:[S.jsxs("div",{className:"p-4 border-b border-slate-100 bg-slate-50/50 flex items-center gap-3",children:[S.jsx("span",{className:"w-8 h-8 rounded-lg bg-primary-100 text-primary-700 flex items-center justify-center text-xs font-bold flex-shrink-0",children:f+1}),S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-bold text-slate-900",children:u.name||`Period ${f+1}`}),S.jsxs("p",{className:"text-xs font-medium text-slate-600",children:[Y0(u.start_time)," – ",Y0(u.end_time)]})]})]}),r.map(d=>{const h=l(f,d);return S.jsx("div",{className:"p-1.5 border-b border-l border-slate-100 flex items-center justify-center min-h-[90px]",children:h?S.jsxs("div",{className:`w-full p-3 bg-blue-100 border border-blue-200 rounded-lg ${i?"cursor-pointer hover:shadow-md hover:border-blue-300":""} transition-all duration-200`,onClick:()=>i&&i(f,d,h),children:[S.jsx("p",{className:"text-sm font-bold text-slate-900",children:h.subject||""}),S.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:h.teacher_name||h.teacher||""}),(h.slot_type||h.type)&&(h.slot_type||h.type)!=="class"&&S.jsx("span",{className:"inline-block mt-1 text-[10px] px-1.5 py-0.5 rounded bg-slate-200 text-slate-600",children:h.slot_type||h.type})]}):n?S.jsx("div",{onClick:()=>a&&a(f,d),onDragOver:g=>{g.preventDefault(),g.currentTarget.classList.add("border-primary-400","bg-primary-50")},onDragLeave:g=>{g.currentTarget.classList.remove("border-primary-400","bg-primary-50")},onDrop:g=>{if(g.preventDefault(),g.currentTarget.classList.remove("border-primary-400","bg-primary-50"),o)try{const p=JSON.parse(g.dataTransfer.getData("application/json"));o(f,d,p)}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:S.jsx("span",{className:"text-xs text-slate-400 font-medium",children:"+ Add"})}):S.jsx("div",{className:"w-full h-full min-h-[70px] flex items-center justify-center",children:S.jsx("span",{className:"text-xs text-slate-300",children:"—"})})},`${u.id||c}-${d}`)})]},u.id||`period-${c}`)})]})})}function Gq({page:e=0,totalPages:t=1,totalCount:r,pageSize:n=20,onPageChange:i}){if(t<=1)return null;const a=e*n+1,o=Math.min((e+1)*n,r||(e+1)*n),s=()=>{const l=[];if(t<=5)for(let u=0;u<t;u++)l.push(u);else{l.push(0),e>2&&l.push("...");const u=Math.max(1,e-1),c=Math.min(t-2,e+1);for(let f=u;f<=c;f++)l.push(f);e<t-3&&l.push("..."),l.push(t-1)}return l};return S.jsxs("div",{className:"flex items-center justify-between py-2.5",children:[S.jsx("p",{className:"text-[11px] text-slate-400 font-medium tracking-wide",children:r!=null?S.jsxs(S.Fragment,{children:[S.jsxs("span",{className:"text-slate-600 font-semibold",children:[a,"–",o]})," of ",S.jsx("span",{className:"text-slate-600 font-semibold",children:r})," results"]}):S.jsxs(S.Fragment,{children:["Page ",S.jsx("span",{className:"text-slate-600 font-semibold",children:e+1})," of ",S.jsx("span",{className:"text-slate-600 font-semibold",children:t})]})}),S.jsxs("div",{className:"flex items-center",children:[S.jsx("button",{onClick:()=>i(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:S.jsx(Xe.ChevronLeft,{size:14,className:"text-slate-500"})}),s().map((l,u)=>l==="..."?S.jsx("span",{className:"w-8 h-8 border-y border-slate-200 flex items-center justify-center text-[10px] text-slate-300",children:"•••"},`e-${u}`):S.jsx("button",{onClick:()=>i(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)),S.jsx("button",{onClick:()=>i(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:S.jsx(Xe.ChevronRight,{size:14,className:"text-slate-500"})})]})]})}function Vq({title:e="Portal",subtitle:t="Sign in to your account",icon:r,gradientFrom:n="from-indigo-500",gradientTo:i="to-purple-700",accentColor:a="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:u=null,supportEmail:c="support@theinquisitive.in"}){const[f,d]=V.useState(""),[h,g]=V.useState(""),[p,m]=V.useState(!1),[y,x]=V.useState(""),[w,A]=V.useState(""),_=E=>{if(E.preventDefault(),x(""),A(""),!f){x("Email is required");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(f)){x("Invalid email");return}if(!h){A("Password is required");return}s({email:f,password:h})};return S.jsxs("div",{className:`min-h-screen flex items-center justify-center bg-gradient-to-br ${n} ${i} relative overflow-hidden`,children:[S.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[S.jsx("div",{className:"absolute -top-40 -right-40 w-80 h-80 rounded-full bg-white/5"}),S.jsx("div",{className:"absolute -bottom-32 -left-32 w-64 h-64 rounded-full bg-white/5"})]}),S.jsxs("div",{className:"relative bg-white rounded-2xl shadow-2xl p-8 w-full max-w-[420px] text-center mx-4",children:[r&&S.jsx("div",{className:`w-14 h-14 rounded-xl bg-gradient-to-br from-${a}-50 to-${a}-100 flex items-center justify-center mx-auto mb-5 shadow-sm`,children:S.jsx(r,{className:`w-7 h-7 text-${a}-600`})}),S.jsx("h1",{className:"text-xl font-bold text-slate-800 mb-0.5",children:e}),S.jsx("p",{className:"text-sm text-slate-400 mb-6",children:t}),u&&S.jsx("div",{className:"bg-red-50 border border-red-200 text-red-700 text-sm rounded-lg p-3 mb-4 text-left",children:u}),S.jsxs("form",{onSubmit:_,className:"space-y-4",children:[S.jsxs("div",{children:[S.jsxs("div",{className:"relative",children:[S.jsx(Xe.Mail,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),S.jsx("input",{type:"email",placeholder:"Email Address",value:f,onChange:E=>{d(E.target.value),x("")},className:`w-full pl-10 pr-4 py-2.5 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-${a}-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${y?"border-red-400":"border-slate-300"}`})]}),y&&S.jsx("p",{className:"text-xs text-red-500 mt-1 text-left",children:y})]}),S.jsxs("div",{children:[S.jsxs("div",{className:"relative",children:[S.jsx(Xe.Lock,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),S.jsx("input",{type:p?"text":"password",placeholder:"Password",value:h,onChange:E=>{g(E.target.value),A("")},className:`w-full pl-10 pr-10 py-2.5 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-${a}-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${w?"border-red-400":"border-slate-300"}`}),S.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?S.jsx(Xe.EyeOff,{className:"w-4 h-4"}):S.jsx(Xe.Eye,{className:"w-4 h-4"})})]}),w&&S.jsx("p",{className:"text-xs text-red-500 mt-1 text-left",children:w})]}),S.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"})]}),S.jsx("div",{className:"mt-6 pt-5 border-t border-slate-100",children:S.jsxs("p",{className:"text-xs text-slate-400",children:["Having technical issues?"," ",S.jsx("a",{href:`mailto:${c}`,className:`text-${a}-500 hover:underline font-medium`,children:"Contact support"})]})})]})]})}function Kq({open:e,onClose:t,onSubmit:r,loading:n,error:i}){const[a,o]=V.useState({current_password:"",new_password:"",confirm_password:""}),[s,l]=V.useState(!1),[u,c]=V.useState(!1),[f,d]=V.useState(!1),[h,g]=V.useState({}),p=()=>{const x={};return a.current_password||(x.current_password="Current password is required"),a.new_password?a.new_password.length<6&&(x.new_password="Password must be at least 6 characters"):x.new_password="New password is required",a.confirm_password?a.new_password!==a.confirm_password&&(x.confirm_password="Passwords do not match"):x.confirm_password="Please confirm your new password",x},m=()=>{const x=p();g(x),!(Object.keys(x).length>0)&&r(a)},y=()=>{o({current_password:"",new_password:"",confirm_password:""}),g({}),l(!1),c(!1),d(!1),t()};return S.jsxs(zp,{open:e,onClose:y,title:"Change Password",size:"sm",children:[S.jsxs("div",{className:"space-y-4",children:[i&&S.jsx("div",{className:"p-3 rounded-lg bg-red-50 border border-red-200",children:S.jsx("p",{className:"text-sm text-red-600",children:i})}),S.jsxs("div",{className:"space-y-1.5",children:[S.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Current Password"}),S.jsxs("div",{className:"relative",children:[S.jsx(Xe.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),S.jsx("input",{type:s?"text":"password",value:a.current_password,onChange:x=>o({...a,current_password:x.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"}`}),S.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?S.jsx(Xe.EyeOff,{size:16}):S.jsx(Xe.Eye,{size:16})})]}),h.current_password&&S.jsx("p",{className:"text-xs text-red-500",children:h.current_password})]}),S.jsxs("div",{className:"space-y-1.5",children:[S.jsx("label",{className:"text-sm font-medium text-slate-700",children:"New Password"}),S.jsxs("div",{className:"relative",children:[S.jsx(Xe.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),S.jsx("input",{type:u?"text":"password",value:a.new_password,onChange:x=>o({...a,new_password:x.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"}`}),S.jsx("button",{type:"button",onClick:()=>c(!u),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:u?S.jsx(Xe.EyeOff,{size:16}):S.jsx(Xe.Eye,{size:16})})]}),h.new_password&&S.jsx("p",{className:"text-xs text-red-500",children:h.new_password})]}),S.jsxs("div",{className:"space-y-1.5",children:[S.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Confirm New Password"}),S.jsxs("div",{className:"relative",children:[S.jsx(Xe.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),S.jsx("input",{type:f?"text":"password",value:a.confirm_password,onChange:x=>o({...a,confirm_password:x.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"}`}),S.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?S.jsx(Xe.EyeOff,{size:16}):S.jsx(Xe.Eye,{size:16})})]}),h.confirm_password&&S.jsx("p",{className:"text-xs text-red-500",children:h.confirm_password})]})]}),S.jsxs("div",{className:"flex justify-end gap-2 mt-6 pt-4 border-t border-slate-100",children:[S.jsx(ni,{variant:"ghost",onClick:y,disabled:n,children:"Cancel"}),S.jsx(ni,{onClick:m,loading:n,icon:Xe.Lock,children:"Change Password"})]})]})}function Yq({open:e,onClose:t,onSubmit:r,loading:n=!1,userName:i=""}){const[a,o]=V.useState(""),[s,l]=V.useState(!1),[u,c]=V.useState(!1),[f,d]=V.useState(""),h=()=>{if(!a||a.length<6){d("Password must be at least 6 characters");return}d(""),r(a)},g=()=>{navigator.clipboard.writeText(a),c(!0),setTimeout(()=>c(!1),2e3)},p=()=>{o(""),l(!1),c(!1),d(""),t()};return S.jsxs(zp,{open:e,onClose:p,title:"Reset Password",size:"sm",children:[S.jsxs("div",{className:"space-y-4",children:[S.jsxs("div",{className:"flex items-center gap-3 p-3 bg-amber-50 border border-amber-200 rounded-xl",children:[S.jsx("div",{className:"w-9 h-9 rounded-lg bg-amber-100 flex items-center justify-center shrink-0",children:S.jsx(Xe.Key,{size:16,className:"text-amber-600"})}),S.jsxs("div",{children:[S.jsxs("p",{className:"text-sm font-medium text-amber-900",children:["Reset password",i?` for ${i}`:""]}),S.jsx("p",{className:"text-xs text-amber-700 mt-0.5",children:"The user will need to use this new password to log in."})]})]}),S.jsxs("div",{children:[S.jsx("label",{className:"text-sm font-medium text-slate-700 mb-1.5 block",children:"New Password"}),S.jsxs("div",{className:"relative",children:[S.jsx("input",{type:s?"text":"password",value:a,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"}),S.jsxs("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-1",children:[S.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?S.jsx(Xe.EyeOff,{size:14}):S.jsx(Xe.Eye,{size:14})}),S.jsx("button",{onClick:g,className:"p-1.5 rounded-md text-slate-400 hover:text-slate-600 hover:bg-slate-100 transition-colors",type:"button",children:u?S.jsx(Xe.Check,{size:14,className:"text-emerald-500"}):S.jsx(Xe.Copy,{size:14})})]})]}),f&&S.jsx("p",{className:"text-xs text-red-500 mt-1",children:f}),S.jsx("p",{className:"text-[11px] text-slate-400 mt-1.5",children:"Minimum 6 characters. The user should change this after logging in."})]})]}),S.jsxs("div",{className:"flex justify-end gap-2 mt-5 pt-4 border-t border-slate-100",children:[S.jsx(ni,{variant:"ghost",onClick:p,children:"Cancel"}),S.jsx(ni,{onClick:h,loading:n,disabled:!a||a.length<6,children:"Reset Password"})]})]})}function Xq({name:e,subtitle:t,avatarInitials:r,badges:n=[],extra:i}){const a={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 S.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:S.jsxs("div",{className:"flex justify-between items-start",children:[S.jsxs("div",{className:"flex gap-4 items-center",children:[S.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()}),S.jsxs("div",{children:[S.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[S.jsx("h2",{className:"text-xl font-bold text-slate-900",children:e}),n.map((o,s)=>S.jsx("span",{className:`text-xs font-semibold px-2.5 py-0.5 rounded-full ${a[o.variant]||a.primary}`,children:o.label},s))]}),t&&S.jsx("p",{className:"text-sm text-slate-500 mt-0.5",children:t})]})]}),i&&S.jsx("div",{className:"flex-shrink-0",children:i})]})})}function Jq({title:e,titleIcon:t,titleIconColor:r,titleIconBg:n,items:i=[],columns:a=2}){const o=a===3?"grid grid-cols-1 md:grid-cols-3 gap-4":"grid grid-cols-1 md:grid-cols-2 gap-4";return S.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&&S.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t&&S.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:S.jsx(t,{className:`w-3.5 h-3.5 ${r||"text-slate-600"}`})}),S.jsx("h3",{className:"text-sm font-bold text-slate-900",children:e})]}),S.jsx("div",{className:o,children:i.map((s,l)=>S.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&&S.jsx("div",{className:"w-9 h-9 rounded-lg bg-white border border-slate-200 flex items-center justify-center flex-shrink-0",children:S.jsx(s.icon,{className:"w-4 h-4 text-slate-500"})}),S.jsxs("div",{children:[S.jsx("p",{className:"text-[11px] text-slate-400",children:s.label}),S.jsx("p",{className:"text-sm font-medium text-slate-900",children:s.value||"N/A"})]})]},l))})]})}var Tv,oS;function wi(){if(oS)return Tv;oS=1;var e=Array.isArray;return Tv=e,Tv}var Ev,sS;function I6(){if(sS)return Ev;sS=1;var e=typeof fu=="object"&&fu&&fu.Object===Object&&fu;return Ev=e,Ev}var Ov,lS;function eo(){if(lS)return Ov;lS=1;var e=I6(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ov=r,Ov}var Pv,uS;function Fh(){if(uS)return Pv;uS=1;var e=eo(),t=e.Symbol;return Pv=t,Pv}var Nv,cS;function Zq(){if(cS)return Nv;cS=1;var e=Fh(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),l=o[i];try{o[i]=void 0;var u=!0}catch{}var c=n.call(o);return u&&(s?o[i]=l:delete o[i]),c}return Nv=a,Nv}var Cv,fS;function Qq(){if(fS)return Cv;fS=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Cv=r,Cv}var jv,hS;function Mo(){if(hS)return jv;hS=1;var e=Fh(),t=Zq(),r=Qq(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return jv=o,jv}var kv,dS;function Do(){if(dS)return kv;dS=1;function e(t){return t!=null&&typeof t=="object"}return kv=e,kv}var Lv,pS;function vc(){if(pS)return Lv;pS=1;var e=Mo(),t=Do(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Lv=n,Lv}var Iv,vS;function o5(){if(vS)return Iv;vS=1;var e=wi(),t=vc(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return Iv=i,Iv}var Fv,mS;function Ts(){if(mS)return Fv;mS=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Fv=e,Fv}var Rv,gS;function s5(){if(gS)return Rv;gS=1;var e=Mo(),t=Ts(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==n||l==i||l==r||l==a}return Rv=o,Rv}var Mv,yS;function eU(){if(yS)return Mv;yS=1;var e=eo(),t=e["__core-js_shared__"];return Mv=t,Mv}var Dv,xS;function tU(){if(xS)return Dv;xS=1;var e=eU(),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 Dv=r,Dv}var Bv,bS;function F6(){if(bS)return Bv;bS=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 Bv=r,Bv}var $v,wS;function rU(){if(wS)return $v;wS=1;var e=s5(),t=tU(),r=Ts(),n=F6(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,u=s.hasOwnProperty,c=RegExp("^"+l.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!r(d)||t(d))return!1;var h=e(d)?c:a;return h.test(n(d))}return $v=f,$v}var qv,_S;function nU(){if(_S)return qv;_S=1;function e(t,r){return t==null?void 0:t[r]}return qv=e,qv}var Uv,SS;function Al(){if(SS)return Uv;SS=1;var e=rU(),t=nU();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Uv=r,Uv}var zv,AS;function Wp(){if(AS)return zv;AS=1;var e=Al(),t=e(Object,"create");return zv=t,zv}var Wv,TS;function iU(){if(TS)return Wv;TS=1;var e=Wp();function t(){this.__data__=e?e(null):{},this.size=0}return Wv=t,Wv}var Hv,ES;function aU(){if(ES)return Hv;ES=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Hv=e,Hv}var Gv,OS;function oU(){if(OS)return Gv;OS=1;var e=Wp(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return Gv=i,Gv}var Vv,PS;function sU(){if(PS)return Vv;PS=1;var e=Wp(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Vv=n,Vv}var Kv,NS;function lU(){if(NS)return Kv;NS=1;var e=Wp(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Kv=r,Kv}var Yv,CS;function uU(){if(CS)return Yv;CS=1;var e=iU(),t=aU(),r=oU(),n=sU(),i=lU();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Yv=a,Yv}var Xv,jS;function cU(){if(jS)return Xv;jS=1;function e(){this.__data__=[],this.size=0}return Xv=e,Xv}var Jv,kS;function l5(){if(kS)return Jv;kS=1;function e(t,r){return t===r||t!==t&&r!==r}return Jv=e,Jv}var Zv,LS;function Hp(){if(LS)return Zv;LS=1;var e=l5();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Zv=t,Zv}var Qv,IS;function fU(){if(IS)return Qv;IS=1;var e=Hp(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Qv=n,Qv}var em,FS;function hU(){if(FS)return em;FS=1;var e=Hp();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return em=t,em}var tm,RS;function dU(){if(RS)return tm;RS=1;var e=Hp();function t(r){return e(this.__data__,r)>-1}return tm=t,tm}var rm,MS;function pU(){if(MS)return rm;MS=1;var e=Hp();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return rm=t,rm}var nm,DS;function Gp(){if(DS)return nm;DS=1;var e=cU(),t=fU(),r=hU(),n=dU(),i=pU();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,nm=a,nm}var im,BS;function u5(){if(BS)return im;BS=1;var e=Al(),t=eo(),r=e(t,"Map");return im=r,im}var am,$S;function vU(){if($S)return am;$S=1;var e=uU(),t=Gp(),r=u5();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return am=n,am}var om,qS;function mU(){if(qS)return om;qS=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return om=e,om}var sm,US;function Vp(){if(US)return sm;US=1;var e=mU();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return sm=t,sm}var lm,zS;function gU(){if(zS)return lm;zS=1;var e=Vp();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return lm=t,lm}var um,WS;function yU(){if(WS)return um;WS=1;var e=Vp();function t(r){return e(this,r).get(r)}return um=t,um}var cm,HS;function xU(){if(HS)return cm;HS=1;var e=Vp();function t(r){return e(this,r).has(r)}return cm=t,cm}var fm,GS;function bU(){if(GS)return fm;GS=1;var e=Vp();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return fm=t,fm}var hm,VS;function c5(){if(VS)return hm;VS=1;var e=vU(),t=gU(),r=yU(),n=xU(),i=bU();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,hm=a,hm}var dm,KS;function R6(){if(KS)return dm;KS=1;var e=c5(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],l=a.cache;if(l.has(s))return l.get(s);var u=n.apply(this,o);return a.cache=l.set(s,u)||l,u};return a.cache=new(r.Cache||e),a}return r.Cache=e,dm=r,dm}var pm,YS;function wU(){if(YS)return pm;YS=1;var e=R6(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return pm=r,pm}var vm,XS;function _U(){if(XS)return vm;XS=1;var e=wU(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,l,u){a.push(l?u.replace(r,"$1"):s||o)}),a});return vm=n,vm}var mm,JS;function f5(){if(JS)return mm;JS=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return mm=e,mm}var gm,ZS;function SU(){if(ZS)return gm;ZS=1;var e=Fh(),t=f5(),r=wi(),n=vc(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return gm=o,gm}var ym,QS;function M6(){if(QS)return ym;QS=1;var e=SU();function t(r){return r==null?"":e(r)}return ym=t,ym}var xm,e4;function D6(){if(e4)return xm;e4=1;var e=wi(),t=o5(),r=_U(),n=M6();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return xm=i,xm}var bm,t4;function Kp(){if(t4)return bm;t4=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 bm=t,bm}var wm,r4;function h5(){if(r4)return wm;r4=1;var e=D6(),t=Kp();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return wm=r,wm}var _m,n4;function B6(){if(n4)return _m;n4=1;var e=h5();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return _m=t,_m}var AU=B6();const na=ur(AU);var Sm,i4;function TU(){if(i4)return Sm;i4=1;function e(t){return t==null}return Sm=e,Sm}var EU=TU();const Bt=ur(EU);var Am,a4;function OU(){if(a4)return Am;a4=1;var e=Mo(),t=wi(),r=Do(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Am=i,Am}var PU=OU();const vl=ur(PU);var NU=s5();const Et=ur(NU);var CU=Ts();const mc=ur(CU);var X0={exports:{}},tr={};/**
|
|
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 o4;function jU(){if(o4)return tr;o4=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g;g=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 i:case n:case u:case c:return m;default:switch(m=m&&m.$$typeof,m){case s:case o:case l:case d:case f:case a:return m;default:return y}}case t:return y}}}return tr.ContextConsumer=o,tr.ContextProvider=a,tr.Element=e,tr.ForwardRef=l,tr.Fragment=r,tr.Lazy=d,tr.Memo=f,tr.Portal=t,tr.Profiler=i,tr.StrictMode=n,tr.Suspense=u,tr.SuspenseList=c,tr.isAsyncMode=function(){return!1},tr.isConcurrentMode=function(){return!1},tr.isContextConsumer=function(m){return p(m)===o},tr.isContextProvider=function(m){return p(m)===a},tr.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},tr.isForwardRef=function(m){return p(m)===l},tr.isFragment=function(m){return p(m)===r},tr.isLazy=function(m){return p(m)===d},tr.isMemo=function(m){return p(m)===f},tr.isPortal=function(m){return p(m)===t},tr.isProfiler=function(m){return p(m)===i},tr.isStrictMode=function(m){return p(m)===n},tr.isSuspense=function(m){return p(m)===u},tr.isSuspenseList=function(m){return p(m)===c},tr.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===i||m===n||m===u||m===c||m===h||typeof m=="object"&&m!==null&&(m.$$typeof===d||m.$$typeof===f||m.$$typeof===a||m.$$typeof===o||m.$$typeof===l||m.$$typeof===g||m.getModuleId!==void 0)},tr.typeOf=p,tr}var rr={};/**
|
|
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 s4;function kU(){return s4||(s4=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"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=!1,p=!1,m=!1,y=!1,x=!1,w;w=Symbol.for("react.module.reference");function A(ge){return!!(typeof ge=="string"||typeof ge=="function"||ge===r||ge===i||x||ge===n||ge===u||ge===c||y||ge===h||g||p||m||typeof ge=="object"&&ge!==null&&(ge.$$typeof===d||ge.$$typeof===f||ge.$$typeof===a||ge.$$typeof===o||ge.$$typeof===l||ge.$$typeof===w||ge.getModuleId!==void 0))}function _(ge){if(typeof ge=="object"&&ge!==null){var _e=ge.$$typeof;switch(_e){case e:var oe=ge.type;switch(oe){case r:case i:case n:case u:case c:return oe;default:var Re=oe&&oe.$$typeof;switch(Re){case s:case o:case l:case d:case f:case a:return Re;default:return _e}}case t:return _e}}}var E=o,T=a,k=e,L=l,D=r,C=d,P=f,M=t,q=i,J=n,U=u,H=c,ee=!1,Z=!1;function Q(ge){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function le(ge){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N(ge){return _(ge)===o}function I(ge){return _(ge)===a}function R(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===e}function B(ge){return _(ge)===l}function G(ge){return _(ge)===r}function ce(ge){return _(ge)===d}function he(ge){return _(ge)===f}function ne(ge){return _(ge)===t}function me(ge){return _(ge)===i}function Se(ge){return _(ge)===n}function ue(ge){return _(ge)===u}function Ie(ge){return _(ge)===c}rr.ContextConsumer=E,rr.ContextProvider=T,rr.Element=k,rr.ForwardRef=L,rr.Fragment=D,rr.Lazy=C,rr.Memo=P,rr.Portal=M,rr.Profiler=q,rr.StrictMode=J,rr.Suspense=U,rr.SuspenseList=H,rr.isAsyncMode=Q,rr.isConcurrentMode=le,rr.isContextConsumer=N,rr.isContextProvider=I,rr.isElement=R,rr.isForwardRef=B,rr.isFragment=G,rr.isLazy=ce,rr.isMemo=he,rr.isPortal=ne,rr.isProfiler=me,rr.isStrictMode=Se,rr.isSuspense=ue,rr.isSuspenseList=Ie,rr.isValidElementType=A,rr.typeOf=_})()),rr}var l4;function LU(){return l4||(l4=1,process.env.NODE_ENV==="production"?X0.exports=jU():X0.exports=kU()),X0.exports}var IU=LU(),Tm,u4;function $6(){if(u4)return Tm;u4=1;var e=Mo(),t=Do(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Tm=n,Tm}var Em,c4;function FU(){if(c4)return Em;c4=1;var e=$6();function t(r){return e(r)&&r!=+r}return Em=t,Em}var RU=FU();const Rh=ur(RU);var MU=$6();const DU=ur(MU);var Pa=function(t){return t===0?0:t>0?1:-1},Ks=function(t){return vl(t)&&t.indexOf("%")===t.length-1},nt=function(t){return DU(t)&&!Rh(t)},BU=function(t){return Bt(t)},mn=function(t){return nt(t)||vl(t)},$U=0,Mh=function(t){var r=++$U;return"".concat(t||"").concat(r)},Na=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!nt(t)&&!vl(t))return n;var a;if(Ks(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Rh(a)&&(a=n),i&&a>r&&(a=r),a},ss=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},qU=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},ri=function(t,r){return nt(t)&&nt(r)?function(n){return t+n*(r-t)}:function(){return r}};function Cd(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):na(n,t))===r})}var UU=function(t,r){return nt(t)&&nt(r)?t-r:vl(t)&&vl(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Su(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 lx(e){"@babel/helpers - typeof";return lx=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},lx(e)}var zU=["viewBox","children"],WU=["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"],f4=["points","pathLength"],Om={svg:zU,polygon:f4,polyline:f4},d5=["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"],jd=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(V.isValidElement(t)&&(n=t.props),!mc(n))return null;var i={};return Object.keys(n).forEach(function(a){d5.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},HU=function(t,r,n){return function(i){return t(r,n,i),null}},Iu=function(t,r,n){if(!mc(t)||lx(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];d5.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=HU(o,r,n))}),i},GU=["children"],VU=["children"];function h4(e,t){if(e==null)return{};var r=KU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KU(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 ux(e){"@babel/helpers - typeof";return ux=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},ux(e)}var d4={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"},Eo=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},p4=null,Pm=null,p5=function e(t){if(t===p4&&Array.isArray(Pm))return Pm;var r=[];return V.Children.forEach(t,function(n){Bt(n)||(IU.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Pm=r,p4=t,r};function ia(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Eo(i)}):n=[Eo(t)],p5(e).forEach(function(i){var a=na(i,"type.displayName")||na(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function ki(e,t){var r=ia(e,t);return r&&r[0]}var v4=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!nt(n)||n<=0||!nt(i)||i<=0)},YU=["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"],XU=function(t){return t&&t.type&&vl(t.type)&&YU.indexOf(t.type)>=0},JU=function(t){return t&&ux(t)==="object"&&"clipDot"in t},ZU=function(t,r,n,i){var a,o=(a=Om==null?void 0:Om[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Et(t)&&(i&&o.includes(r)||WU.includes(r))||n&&d5.includes(r)},gt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(V.isValidElement(t)&&(i=t.props),!mc(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;ZU((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},cx=function e(t,r){if(t===r)return!0;var n=V.Children.count(t);if(n!==V.Children.count(r))return!1;if(n===0)return!0;if(n===1)return m4(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!m4(a,o))return!1}return!0},m4=function(t,r){if(Bt(t)&&Bt(r))return!0;if(!Bt(t)&&!Bt(r)){var n=t.props||{},i=n.children,a=h4(n,GU),o=r.props||{},s=o.children,l=h4(o,VU);return i&&s?Su(a,l)&&cx(i,s):!i&&!s?Su(a,l):!1}return!1},g4=function(t,r){var n=[],i={};return p5(t).forEach(function(a,o){if(XU(a))n.push(a);else if(a){var s=Eo(a.type),l=r[s]||{},u=l.handler,c=l.once;if(u&&(!c||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},QU=function(t){var r=t&&t.type;return r&&d4[r]?d4[r]:null},ez=function(t,r){return p5(r).indexOf(t)},tz=["children","width","height","viewBox","className","style","title","desc"];function fx(){return fx=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},fx.apply(this,arguments)}function rz(e,t){if(e==null)return{};var r=nz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nz(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 hx(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=rz(e,tz),c=i||{width:r,height:n,x:0,y:0},f=kt("recharts-surface",a);return V.createElement("svg",fx({},gt(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),V.createElement("title",null,s),V.createElement("desc",null,l),t)}var iz=["children","className"];function dx(){return dx=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},dx.apply(this,arguments)}function az(e,t){if(e==null)return{};var r=oz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oz(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 or=V.forwardRef(function(e,t){var r=e.children,n=e.className,i=az(e,iz),a=kt("recharts-layer",n);return V.createElement("g",dx({className:a},gt(i,!0),{ref:t}),r)}),sz=process.env.NODE_ENV!=="production",Oo=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(sz&&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 i[o++]}))}},Nm,y4;function lz(){if(y4)return Nm;y4=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Nm=e,Nm}var Cm,x4;function uz(){if(x4)return Cm;x4=1;var e=lz();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Cm=t,Cm}var jm,b4;function q6(){if(b4)return jm;b4=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function l(u){return s.test(u)}return jm=l,jm}var km,w4;function cz(){if(w4)return km;w4=1;function e(t){return t.split("")}return km=e,km}var Lm,_4;function fz(){if(_4)return Lm;_4=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+l+")",c="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",g=u+"?",p="["+a+"]?",m="(?:"+h+"(?:"+[c,f,d].join("|")+")"+p+g+")*",y=p+g+m,x="(?:"+[c+s+"?",s,f,d,o].join("|")+")",w=RegExp(l+"(?="+l+")|"+x+y,"g");function A(_){return _.match(w)||[]}return Lm=A,Lm}var Im,S4;function hz(){if(S4)return Im;S4=1;var e=cz(),t=q6(),r=fz();function n(i){return t(i)?r(i):e(i)}return Im=n,Im}var Fm,A4;function dz(){if(A4)return Fm;A4=1;var e=uz(),t=q6(),r=hz(),n=M6();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,l=s?s[0]:o.charAt(0),u=s?e(s,1).join(""):o.slice(1);return l[a]()+u}}return Fm=i,Fm}var Rm,T4;function pz(){if(T4)return Rm;T4=1;var e=dz(),t=e("toUpperCase");return Rm=t,Rm}var vz=pz();const Yp=ur(vz);function Pr(e){return function(){return e}}const U6=Math.cos,kd=Math.sin,La=Math.sqrt,Ld=Math.PI,Xp=2*Ld,px=Math.PI,vx=2*px,zs=1e-6,mz=vx-zs;function z6(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function gz(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return z6;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class yz{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?z6:gz(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,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,u=i-r,c=o-t,f=s-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>zs)if(!(Math.abs(f*l-u*c)>zs)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,g=i-s,p=l*l+u*u,m=h*h+g*g,y=Math.sqrt(p),x=Math.sqrt(d),w=a*Math.tan((px-Math.acos((p+d-m)/(2*y*x)))/2),A=w/x,_=w/y;Math.abs(A-1)>zs&&this._append`L${t+A*c},${r+A*f}`,this._append`A${a},${a},0,0,${+(f*h>c*g)},${this._x1=t+_*l},${this._y1=r+_*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,c=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>zs||Math.abs(this._y1-c)>zs)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%vx+vx),d>mz?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>zs&&this._append`A${n},${n},0,${+(d>=px)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function v5(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 yz(t)}function m5(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function W6(e){this._context=e}W6.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 Jp(e){return new W6(e)}function H6(e){return e[0]}function G6(e){return e[1]}function V6(e,t){var r=Pr(!0),n=null,i=Jp,a=null,o=v5(s);e=typeof e=="function"?e:e===void 0?H6:Pr(e),t=typeof t=="function"?t:t===void 0?G6:Pr(t);function s(l){var u,c=(l=m5(l)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),u=0;u<=c;++u)!(u<c&&r(f=l[u],u,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,u,l),+t(f,u,l));if(h)return a=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?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function J0(e,t,r){var n=null,i=Pr(!0),a=null,o=Jp,s=null,l=v5(u);e=typeof e=="function"?e:e===void 0?H6:Pr(+e),t=typeof t=="function"?t:Pr(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?G6:Pr(+r);function u(f){var d,h,g,p=(f=m5(f)).length,m,y=!1,x,w=new Array(p),A=new Array(p);for(a==null&&(s=o(x=l())),d=0;d<=p;++d){if(!(d<p&&i(m=f[d],d,f))===y)if(y=!y)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=d-1;g>=h;--g)s.point(w[g],A[g]);s.lineEnd(),s.areaEnd()}y&&(w[d]=+e(m,d,f),A[d]=+t(m,d,f),s.point(n?+n(m,d,f):w[d],r?+r(m,d,f):A[d]))}if(x)return s=null,x+""||null}function c(){return V6().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Pr(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Pr(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Pr(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Pr(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Pr(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Pr(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Pr(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class K6{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 xz(e){return new K6(e,!0)}function bz(e){return new K6(e,!1)}const g5={draw(e,t){const r=La(t/Ld);e.moveTo(r,0),e.arc(0,0,r,0,Xp)}},wz={draw(e,t){const r=La(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()}},Y6=La(1/3),_z=Y6*2,Sz={draw(e,t){const r=La(t/_z),n=r*Y6;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Az={draw(e,t){const r=La(t),n=-r/2;e.rect(n,n,r,r)}},Tz=.8908130915292852,X6=kd(Ld/10)/kd(7*Ld/10),Ez=kd(Xp/10)*X6,Oz=-U6(Xp/10)*X6,Pz={draw(e,t){const r=La(t*Tz),n=Ez*r,i=Oz*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Xp*a/5,s=U6(o),l=kd(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},Mm=La(3),Nz={draw(e,t){const r=-La(t/(Mm*3));e.moveTo(0,r*2),e.lineTo(-Mm*r,-r),e.lineTo(Mm*r,-r),e.closePath()}},Yi=-.5,Xi=La(3)/2,mx=1/La(12),Cz=(mx/2+1)*3,jz={draw(e,t){const r=La(t/Cz),n=r/2,i=r*mx,a=n,o=r*mx+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(Yi*n-Xi*i,Xi*n+Yi*i),e.lineTo(Yi*a-Xi*o,Xi*a+Yi*o),e.lineTo(Yi*s-Xi*l,Xi*s+Yi*l),e.lineTo(Yi*n+Xi*i,Yi*i-Xi*n),e.lineTo(Yi*a+Xi*o,Yi*o-Xi*a),e.lineTo(Yi*s+Xi*l,Yi*l-Xi*s),e.closePath()}};function kz(e,t){let r=null,n=v5(i);e=typeof e=="function"?e:Pr(e||g5),t=typeof t=="function"?t:Pr(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Pr(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Pr(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Id(){}function Fd(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 J6(e){this._context=e}J6.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:Fd(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:Fd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Lz(e){return new J6(e)}function Z6(e){this._context=e}Z6.prototype={areaStart:Id,areaEnd:Id,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:Fd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Iz(e){return new Z6(e)}function Q6(e){this._context=e}Q6.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:Fd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Fz(e){return new Q6(e)}function e8(e){this._context=e}e8.prototype={areaStart:Id,areaEnd:Id,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 Rz(e){return new e8(e)}function E4(e){return e<0?-1:1}function O4(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(E4(a)+E4(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function P4(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Dm(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Rd(e){this._context=e}Rd.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:Dm(this,this._t0,P4(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,Dm(this,P4(this,r=O4(this,e,t)),r);break;default:Dm(this,this._t0,r=O4(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function t8(e){this._context=new r8(e)}(t8.prototype=Object.create(Rd.prototype)).point=function(e,t){Rd.prototype.point.call(this,t,e)};function r8(e){this._context=e}r8.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,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Mz(e){return new Rd(e)}function Dz(e){return new t8(e)}function n8(e){this._context=e}n8.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=N4(e),i=N4(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],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 N4(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Bz(e){return new n8(e)}function Zp(e,t){this._context=e,this._t=t}Zp.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 $z(e){return new Zp(e,.5)}function qz(e){return new Zp(e,0)}function Uz(e){return new Zp(e,1)}function Fu(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function gx(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function zz(e,t){return e[t]}function Wz(e){const t=[];return t.key=e,t}function Hz(){var e=Pr([]),t=gx,r=Fu,n=zz;function i(a){var o=Array.from(e.apply(this,arguments),Wz),s,l=o.length,u=-1,c;for(const f of a)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,c=m5(t(o));s<l;++s)o[c[s]].index=s;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Pr(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Pr(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?gx:typeof a=="function"?a:Pr(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Fu,i):r},i}function Gz(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Fu(e,t)}}function Vz(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Fu(e,t)}}function Kz(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],f=c[n][1]||0,d=c[n-1][1]||0,h=(f-d)/2,g=0;g<s;++g){var p=e[t[g]],m=p[n][1]||0,y=p[n-1][1]||0;h+=m-y}l+=f,u+=h*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,Fu(e,t)}}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)}var Yz=["type","size","sizeType"];function yx(){return yx=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},yx.apply(this,arguments)}function C4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function j4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C4(Object(r),!0).forEach(function(n){Xz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xz(e,t,r){return t=Jz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jz(e){var t=Zz(e,"string");return Hf(t)=="symbol"?t:t+""}function Zz(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)}function Qz(e,t){if(e==null)return{};var r=eW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eW(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 i8={symbolCircle:g5,symbolCross:wz,symbolDiamond:Sz,symbolSquare:Az,symbolStar:Pz,symbolTriangle:Nz,symbolWye:jz},tW=Math.PI/180,rW=function(t){var r="symbol".concat(Yp(t));return i8[r]||g5},nW=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 i=18*tW;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),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}},iW=function(t,r){i8["symbol".concat(Yp(t))]=r},y5=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=Qz(t,Yz),u=j4(j4({},l),{},{type:n,size:a,sizeType:s}),c=function(){var m=rW(n),y=kz().type(m).size(nW(a,s,n));return y()},f=u.className,d=u.cx,h=u.cy,g=gt(u,!0);return d===+d&&h===+h&&a===+a?V.createElement("path",yx({},g,{className:kt("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:c()})):null};y5.registerSymbol=iW;function Ru(e){"@babel/helpers - typeof";return Ru=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},Ru(e)}function xx(){return xx=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},xx.apply(this,arguments)}function k4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function aW(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?k4(Object(r),!0).forEach(function(n){Gf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sW(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,o8(n.key),n)}}function lW(e,t,r){return t&&sW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uW(e,t,r){return t=Md(t),cW(e,a8()?Reflect.construct(t,r||[],Md(e).constructor):t.apply(e,r))}function cW(e,t){if(t&&(Ru(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fW(e)}function fW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a8=function(){return!!e})()}function Md(e){return Md=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Md(e)}function hW(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&&bx(e,t)}function bx(e,t){return bx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bx(e,t)}function Gf(e,t,r){return t=o8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o8(e){var t=dW(e,"string");return Ru(t)=="symbol"?t:t+""}function dW(e,t){if(Ru(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ru(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ji=32,x5=(function(e){function t(){return oW(this,t),uW(this,t,arguments)}return hW(t,e),lW(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ji/2,o=Ji/6,s=Ji/3,l=n.inactive?i:n.color;if(n.type==="plainline")return V.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ji,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return V.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
|
|
364
|
-
A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
|
|
365
|
-
H`).concat(Ji,"M").concat(2*s,",").concat(a,`
|
|
366
|
-
A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return V.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Ji/8,"h").concat(Ji,"v").concat(Ji*3/4,"h").concat(-Ji,"z"),className:"recharts-legend-icon"});if(V.isValidElement(n.legendIcon)){var u=aW({},n);return delete u.legendIcon,V.cloneElement(n.legendIcon,u)}return V.createElement(y5,{fill:l,cx:a,cy:a,size:Ji,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:Ji,height:Ji},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,g){var p=h.formatter||l,m=kt(Gf(Gf({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=Et(h.value)?null:h.value;Oo(!Et(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 x=h.inactive?u:h.color;return V.createElement("li",xx({className:m,style:f,key:"legend-item-".concat(g)},Iu(n.props,h,g)),V.createElement(hx,{width:o,height:o,viewBox:c,style:d},n.renderIcon(h)),V.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},p?p(y,h,g):y))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return V.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(V.PureComponent);Gf(x5,"displayName","Legend");Gf(x5,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Bm,L4;function pW(){if(L4)return Bm;L4=1;var e=Gp();function t(){this.__data__=new e,this.size=0}return Bm=t,Bm}var $m,I4;function vW(){if(I4)return $m;I4=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return $m=e,$m}var qm,F4;function mW(){if(F4)return qm;F4=1;function e(t){return this.__data__.get(t)}return qm=e,qm}var Um,R4;function gW(){if(R4)return Um;R4=1;function e(t){return this.__data__.has(t)}return Um=e,Um}var zm,M4;function yW(){if(M4)return zm;M4=1;var e=Gp(),t=u5(),r=c5(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<n-1)return l.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(l)}return s.set(a,o),this.size=s.size,this}return zm=i,zm}var Wm,D4;function s8(){if(D4)return Wm;D4=1;var e=Gp(),t=pW(),r=vW(),n=mW(),i=gW(),a=yW();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=i,o.prototype.set=a,Wm=o,Wm}var Hm,B4;function xW(){if(B4)return Hm;B4=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Hm=t,Hm}var Gm,$4;function bW(){if($4)return Gm;$4=1;function e(t){return this.__data__.has(t)}return Gm=e,Gm}var Vm,q4;function l8(){if(q4)return Vm;q4=1;var e=c5(),t=xW(),r=bW();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Vm=n,Vm}var Km,U4;function u8(){if(U4)return Km;U4=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return Km=e,Km}var Ym,z4;function c8(){if(z4)return Ym;z4=1;function e(t,r){return t.has(r)}return Ym=e,Ym}var Xm,W4;function f8(){if(W4)return Xm;W4=1;var e=l8(),t=u8(),r=c8(),n=1,i=2;function a(o,s,l,u,c,f){var d=l&n,h=o.length,g=s.length;if(h!=g&&!(d&&g>h))return!1;var p=f.get(o),m=f.get(s);if(p&&m)return p==s&&m==o;var y=-1,x=!0,w=l&i?new e:void 0;for(f.set(o,s),f.set(s,o);++y<h;){var A=o[y],_=s[y];if(u)var E=d?u(_,A,y,s,o,f):u(A,_,y,o,s,f);if(E!==void 0){if(E)continue;x=!1;break}if(w){if(!t(s,function(T,k){if(!r(w,k)&&(A===T||c(A,T,l,u,f)))return w.push(k)})){x=!1;break}}else if(!(A===_||c(A,_,l,u,f))){x=!1;break}}return f.delete(o),f.delete(s),x}return Xm=a,Xm}var Jm,H4;function wW(){if(H4)return Jm;H4=1;var e=eo(),t=e.Uint8Array;return Jm=t,Jm}var Zm,G4;function _W(){if(G4)return Zm;G4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Zm=e,Zm}var Qm,V4;function b5(){if(V4)return Qm;V4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Qm=e,Qm}var eg,K4;function SW(){if(K4)return eg;K4=1;var e=Fh(),t=wW(),r=l5(),n=f8(),i=_W(),a=b5(),o=1,s=2,l="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Map]",d="[object Number]",h="[object RegExp]",g="[object Set]",p="[object String]",m="[object Symbol]",y="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,A=w?w.valueOf:void 0;function _(E,T,k,L,D,C,P){switch(k){case x:if(E.byteLength!=T.byteLength||E.byteOffset!=T.byteOffset)return!1;E=E.buffer,T=T.buffer;case y:return!(E.byteLength!=T.byteLength||!C(new t(E),new t(T)));case l:case u:case d:return r(+E,+T);case c:return E.name==T.name&&E.message==T.message;case h:case p:return E==T+"";case f:var M=i;case g:var q=L&o;if(M||(M=a),E.size!=T.size&&!q)return!1;var J=P.get(E);if(J)return J==T;L|=s,P.set(E,T);var U=n(M(E),M(T),L,D,C,P);return P.delete(E),U;case m:if(A)return A.call(E)==A.call(T)}return!1}return eg=_,eg}var tg,Y4;function h8(){if(Y4)return tg;Y4=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return tg=e,tg}var rg,X4;function AW(){if(X4)return rg;X4=1;var e=h8(),t=wi();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return rg=r,rg}var ng,J4;function TW(){if(J4)return ng;J4=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return ng=e,ng}var ig,Z4;function EW(){if(Z4)return ig;Z4=1;function e(){return[]}return ig=e,ig}var ag,Q4;function OW(){if(Q4)return ag;Q4=1;var e=TW(),t=EW(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return ag=a,ag}var og,e3;function PW(){if(e3)return og;e3=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return og=e,og}var sg,t3;function NW(){if(t3)return sg;t3=1;var e=Mo(),t=Do(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return sg=n,sg}var lg,r3;function w5(){if(r3)return lg;r3=1;var e=NW(),t=Do(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return lg=a,lg}var pf={exports:{}},ug,n3;function CW(){if(n3)return ug;n3=1;function e(){return!1}return ug=e,ug}pf.exports;var i3;function d8(){return i3||(i3=1,(function(e,t){var r=eo(),n=CW(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(pf,pf.exports)),pf.exports}var cg,a3;function _5(){if(a3)return cg;a3=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return cg=r,cg}var fg,o3;function S5(){if(o3)return fg;o3=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return fg=t,fg}var hg,s3;function jW(){if(s3)return hg;s3=1;var e=Mo(),t=S5(),r=Do(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",u="[object Map]",c="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",g="[object String]",p="[object WeakMap]",m="[object ArrayBuffer]",y="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",A="[object Int8Array]",_="[object Int16Array]",E="[object Int32Array]",T="[object Uint8Array]",k="[object Uint8ClampedArray]",L="[object Uint16Array]",D="[object Uint32Array]",C={};C[x]=C[w]=C[A]=C[_]=C[E]=C[T]=C[k]=C[L]=C[D]=!0,C[n]=C[i]=C[m]=C[a]=C[y]=C[o]=C[s]=C[l]=C[u]=C[c]=C[f]=C[d]=C[h]=C[g]=C[p]=!1;function P(M){return r(M)&&t(M.length)&&!!C[e(M)]}return hg=P,hg}var dg,l3;function p8(){if(l3)return dg;l3=1;function e(t){return function(r){return t(r)}}return dg=e,dg}var vf={exports:{}};vf.exports;var u3;function kW(){return u3||(u3=1,(function(e,t){var r=I6(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(vf,vf.exports)),vf.exports}var pg,c3;function v8(){if(c3)return pg;c3=1;var e=jW(),t=p8(),r=kW(),n=r&&r.isTypedArray,i=n?t(n):e;return pg=i,pg}var vg,f3;function LW(){if(f3)return vg;f3=1;var e=PW(),t=w5(),r=wi(),n=d8(),i=_5(),a=v8(),o=Object.prototype,s=o.hasOwnProperty;function l(u,c){var f=r(u),d=!f&&t(u),h=!f&&!d&&n(u),g=!f&&!d&&!h&&a(u),p=f||d||h||g,m=p?e(u.length,String):[],y=m.length;for(var x in u)(c||s.call(u,x))&&!(p&&(x=="length"||h&&(x=="offset"||x=="parent")||g&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,y)))&&m.push(x);return m}return vg=l,vg}var mg,h3;function IW(){if(h3)return mg;h3=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return mg=t,mg}var gg,d3;function m8(){if(d3)return gg;d3=1;function e(t,r){return function(n){return t(r(n))}}return gg=e,gg}var yg,p3;function FW(){if(p3)return yg;p3=1;var e=m8(),t=e(Object.keys,Object);return yg=t,yg}var xg,v3;function RW(){if(v3)return xg;v3=1;var e=IW(),t=FW(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return xg=i,xg}var bg,m3;function Dh(){if(m3)return bg;m3=1;var e=s5(),t=S5();function r(n){return n!=null&&t(n.length)&&!e(n)}return bg=r,bg}var wg,g3;function Qp(){if(g3)return wg;g3=1;var e=LW(),t=RW(),r=Dh();function n(i){return r(i)?e(i):t(i)}return wg=n,wg}var _g,y3;function MW(){if(y3)return _g;y3=1;var e=AW(),t=OW(),r=Qp();function n(i){return e(i,r,t)}return _g=n,_g}var Sg,x3;function DW(){if(x3)return Sg;x3=1;var e=MW(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,l,u,c){var f=s&t,d=e(a),h=d.length,g=e(o),p=g.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 x=c.get(a),w=c.get(o);if(x&&w)return x==o&&w==a;var A=!0;c.set(a,o),c.set(o,a);for(var _=f;++m<h;){y=d[m];var E=a[y],T=o[y];if(l)var k=f?l(T,E,y,o,a,c):l(E,T,y,a,o,c);if(!(k===void 0?E===T||u(E,T,s,l,c):k)){A=!1;break}_||(_=y=="constructor")}if(A&&!_){var L=a.constructor,D=o.constructor;L!=D&&"constructor"in a&&"constructor"in o&&!(typeof L=="function"&&L instanceof L&&typeof D=="function"&&D instanceof D)&&(A=!1)}return c.delete(a),c.delete(o),A}return Sg=i,Sg}var Ag,b3;function BW(){if(b3)return Ag;b3=1;var e=Al(),t=eo(),r=e(t,"DataView");return Ag=r,Ag}var Tg,w3;function $W(){if(w3)return Tg;w3=1;var e=Al(),t=eo(),r=e(t,"Promise");return Tg=r,Tg}var Eg,_3;function g8(){if(_3)return Eg;_3=1;var e=Al(),t=eo(),r=e(t,"Set");return Eg=r,Eg}var Og,S3;function qW(){if(S3)return Og;S3=1;var e=Al(),t=eo(),r=e(t,"WeakMap");return Og=r,Og}var Pg,A3;function UW(){if(A3)return Pg;A3=1;var e=BW(),t=u5(),r=$W(),n=g8(),i=qW(),a=Mo(),o=F6(),s="[object Map]",l="[object Object]",u="[object Promise]",c="[object Set]",f="[object WeakMap]",d="[object DataView]",h=o(e),g=o(t),p=o(r),m=o(n),y=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=d||t&&x(new t)!=s||r&&x(r.resolve())!=u||n&&x(new n)!=c||i&&x(new i)!=f)&&(x=function(w){var A=a(w),_=A==l?w.constructor:void 0,E=_?o(_):"";if(E)switch(E){case h:return d;case g:return s;case p:return u;case m:return c;case y:return f}return A}),Pg=x,Pg}var Ng,T3;function zW(){if(T3)return Ng;T3=1;var e=s8(),t=f8(),r=SW(),n=DW(),i=UW(),a=wi(),o=d8(),s=v8(),l=1,u="[object Arguments]",c="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function g(p,m,y,x,w,A){var _=a(p),E=a(m),T=_?c:i(p),k=E?c:i(m);T=T==u?f:T,k=k==u?f:k;var L=T==f,D=k==f,C=T==k;if(C&&o(p)){if(!o(m))return!1;_=!0,L=!1}if(C&&!L)return A||(A=new e),_||s(p)?t(p,m,y,x,w,A):r(p,m,T,y,x,w,A);if(!(y&l)){var P=L&&h.call(p,"__wrapped__"),M=D&&h.call(m,"__wrapped__");if(P||M){var q=P?p.value():p,J=M?m.value():m;return A||(A=new e),w(q,J,y,x,A)}}return C?(A||(A=new e),n(p,m,y,x,w,A)):!1}return Ng=g,Ng}var Cg,E3;function A5(){if(E3)return Cg;E3=1;var e=zW(),t=Do();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return Cg=r,Cg}var jg,O3;function WW(){if(O3)return jg;O3=1;var e=s8(),t=A5(),r=1,n=2;function i(a,o,s,l){var u=s.length,c=u,f=!l;if(a==null)return!c;for(a=Object(a);u--;){var d=s[u];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++u<c;){d=s[u];var h=d[0],g=a[h],p=d[1];if(f&&d[2]){if(g===void 0&&!(h in a))return!1}else{var m=new e;if(l)var y=l(g,p,h,a,o,m);if(!(y===void 0?t(p,g,r|n,l,m):y))return!1}}return!0}return jg=i,jg}var kg,P3;function y8(){if(P3)return kg;P3=1;var e=Ts();function t(r){return r===r&&!e(r)}return kg=t,kg}var Lg,N3;function HW(){if(N3)return Lg;N3=1;var e=y8(),t=Qp();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return Lg=r,Lg}var Ig,C3;function x8(){if(C3)return Ig;C3=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Ig=e,Ig}var Fg,j3;function GW(){if(j3)return Fg;j3=1;var e=WW(),t=HW(),r=x8();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return Fg=n,Fg}var Rg,k3;function VW(){if(k3)return Rg;k3=1;function e(t,r){return t!=null&&r in Object(t)}return Rg=e,Rg}var Mg,L3;function KW(){if(L3)return Mg;L3=1;var e=D6(),t=w5(),r=wi(),n=_5(),i=S5(),a=Kp();function o(s,l,u){l=e(l,s);for(var c=-1,f=l.length,d=!1;++c<f;){var h=a(l[c]);if(!(d=s!=null&&u(s,h)))break;s=s[h]}return d||++c!=f?d:(f=s==null?0:s.length,!!f&&i(f)&&n(h,f)&&(r(s)||t(s)))}return Mg=o,Mg}var Dg,I3;function YW(){if(I3)return Dg;I3=1;var e=VW(),t=KW();function r(n,i){return n!=null&&t(n,i,e)}return Dg=r,Dg}var Bg,F3;function XW(){if(F3)return Bg;F3=1;var e=A5(),t=B6(),r=YW(),n=o5(),i=y8(),a=x8(),o=Kp(),s=1,l=2;function u(c,f){return n(c)&&i(f)?a(o(c),f):function(d){var h=t(d,c);return h===void 0&&h===f?r(d,c):e(f,h,s|l)}}return Bg=u,Bg}var $g,R3;function gc(){if(R3)return $g;R3=1;function e(t){return t}return $g=e,$g}var qg,M3;function JW(){if(M3)return qg;M3=1;function e(t){return function(r){return r==null?void 0:r[t]}}return qg=e,qg}var Ug,D3;function ZW(){if(D3)return Ug;D3=1;var e=h5();function t(r){return function(n){return e(n,r)}}return Ug=t,Ug}var zg,B3;function QW(){if(B3)return zg;B3=1;var e=JW(),t=ZW(),r=o5(),n=Kp();function i(a){return r(a)?e(n(a)):t(a)}return zg=i,zg}var Wg,$3;function to(){if($3)return Wg;$3=1;var e=GW(),t=XW(),r=gc(),n=wi(),i=QW();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return Wg=a,Wg}var Hg,q3;function b8(){if(q3)return Hg;q3=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return Hg=e,Hg}var Gg,U3;function eH(){if(U3)return Gg;U3=1;function e(t){return t!==t}return Gg=e,Gg}var Vg,z3;function tH(){if(z3)return Vg;z3=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return Vg=e,Vg}var Kg,W3;function rH(){if(W3)return Kg;W3=1;var e=b8(),t=eH(),r=tH();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return Kg=n,Kg}var Yg,H3;function nH(){if(H3)return Yg;H3=1;var e=rH();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Yg=t,Yg}var Xg,G3;function iH(){if(G3)return Xg;G3=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return Xg=e,Xg}var Jg,V3;function aH(){if(V3)return Jg;V3=1;function e(){}return Jg=e,Jg}var Zg,K3;function oH(){if(K3)return Zg;K3=1;var e=g8(),t=aH(),r=b5(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Zg=i,Zg}var Qg,Y3;function sH(){if(Y3)return Qg;Y3=1;var e=l8(),t=nH(),r=iH(),n=c8(),i=oH(),a=b5(),o=200;function s(l,u,c){var f=-1,d=t,h=l.length,g=!0,p=[],m=p;if(c)g=!1,d=r;else if(h>=o){var y=u?null:i(l);if(y)return a(y);g=!1,d=n,m=new e}else m=u?[]:p;e:for(;++f<h;){var x=l[f],w=u?u(x):x;if(x=c||x!==0?x:0,g&&w===w){for(var A=m.length;A--;)if(m[A]===w)continue e;u&&m.push(w),p.push(x)}else d(m,w,c)||(m!==p&&m.push(w),p.push(x))}return p}return Qg=s,Qg}var ey,X3;function lH(){if(X3)return ey;X3=1;var e=to(),t=sH();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return ey=r,ey}var uH=lH();const J3=ur(uH);function w8(e,t,r){return t===!0?J3(e,r):Et(t)?J3(e,t):e}function Mu(e){"@babel/helpers - typeof";return Mu=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},Mu(e)}var cH=["ref"];function Z3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z3(Object(r),!0).forEach(function(n){e1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q3(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,S8(n.key),n)}}function hH(e,t,r){return t&&Q3(e.prototype,t),r&&Q3(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dH(e,t,r){return t=Dd(t),pH(e,_8()?Reflect.construct(t,r||[],Dd(e).constructor):t.apply(e,r))}function pH(e,t){if(t&&(Mu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vH(e)}function vH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_8=function(){return!!e})()}function Dd(e){return Dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dd(e)}function mH(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&&wx(e,t)}function wx(e,t){return wx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wx(e,t)}function e1(e,t,r){return t=S8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S8(e){var t=gH(e,"string");return Mu(t)=="symbol"?t:t+""}function gH(e,t){if(Mu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function yH(e,t){if(e==null)return{};var r=xH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xH(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 bH(e){return e.value}function wH(e,t){if(V.isValidElement(e))return V.cloneElement(e,t);if(typeof e=="function")return V.createElement(e,t);t.ref;var r=yH(t,cH);return V.createElement(x5,r)}var eA=1,ll=(function(e){function t(){var r;fH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=dH(this,t,[].concat(i)),e1(r,"lastBoundingBox",{width:-1,height:-1}),r}return mH(t,e),hH(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,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>eA||Math.abs(i.height-this.lastBoundingBox.height)>eA)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(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?mo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,c=i.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();f={left:((u||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 g=this.getBBoxSnapshot();d={top:((c||0)-g.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return mo(mo({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=mo(mo({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return V.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},wH(a,mo(mo({},this.props),{},{payload:w8(c,u,bH)})))}}],[{key:"getWithHeight",value:function(n,i){var a=mo(mo({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&nt(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(V.PureComponent);e1(ll,"displayName","Legend");e1(ll,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var ty,tA;function _H(){if(tA)return ty;tA=1;var e=Fh(),t=w5(),r=wi(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return ty=i,ty}var ry,rA;function A8(){if(rA)return ry;rA=1;var e=h8(),t=_H();function r(n,i,a,o,s){var l=-1,u=n.length;for(a||(a=t),s||(s=[]);++l<u;){var c=n[l];i>0&&a(c)?i>1?r(c,i-1,a,o,s):e(s,c):o||(s[s.length]=c)}return s}return ry=r,ry}var ny,nA;function SH(){if(nA)return ny;nA=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),l=s.length;l--;){var u=s[t?l:++a];if(n(o[u],u,o)===!1)break}return r}}return ny=e,ny}var iy,iA;function AH(){if(iA)return iy;iA=1;var e=SH(),t=e();return iy=t,iy}var ay,aA;function T8(){if(aA)return ay;aA=1;var e=AH(),t=Qp();function r(n,i){return n&&e(n,i,t)}return ay=r,ay}var oy,oA;function TH(){if(oA)return oy;oA=1;var e=Dh();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,l=Object(i);(n?s--:++s<o)&&a(l[s],s,l)!==!1;);return i}}return oy=t,oy}var sy,sA;function T5(){if(sA)return sy;sA=1;var e=T8(),t=TH(),r=t(e);return sy=r,sy}var ly,lA;function E8(){if(lA)return ly;lA=1;var e=T5(),t=Dh();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,l,u){o[++a]=i(s,l,u)}),o}return ly=r,ly}var uy,uA;function EH(){if(uA)return uy;uA=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return uy=e,uy}var cy,cA;function OH(){if(cA)return cy;cA=1;var e=vc();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),l=n!==void 0,u=n===null,c=n===n,f=e(n);if(!u&&!f&&!s&&r>n||s&&l&&c&&!u&&!f||a&&l&&c||!i&&c||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||u&&i&&o||!l&&o||!c)return-1}return 0}return cy=t,cy}var fy,fA;function PH(){if(fA)return fy;fA=1;var e=OH();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,l=o.length,u=i.length;++a<l;){var c=e(o[a],s[a]);if(c){if(a>=u)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return r.index-n.index}return fy=t,fy}var hy,hA;function NH(){if(hA)return hy;hA=1;var e=f5(),t=h5(),r=to(),n=E8(),i=EH(),a=p8(),o=PH(),s=gc(),l=wi();function u(c,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,a(r));var g=n(c,function(p,m,y){var x=e(f,function(w){return w(p)});return{criteria:x,index:++h,value:p}});return i(g,function(p,m){return o(p,m,d)})}return hy=u,hy}var dy,dA;function CH(){if(dA)return dy;dA=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 dy=e,dy}var py,pA;function jH(){if(pA)return py;pA=1;var e=CH(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,l=t(o.length-i,0),u=Array(l);++s<l;)u[s]=o[i+s];s=-1;for(var c=Array(i+1);++s<i;)c[s]=o[s];return c[i]=a(u),e(n,this,c)}}return py=r,py}var vy,vA;function kH(){if(vA)return vy;vA=1;function e(t){return function(){return t}}return vy=e,vy}var my,mA;function O8(){if(mA)return my;mA=1;var e=Al(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return my=t,my}var gy,gA;function LH(){if(gA)return gy;gA=1;var e=kH(),t=O8(),r=gc(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return gy=n,gy}var yy,yA;function IH(){if(yA)return yy;yA=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),l=t-(s-o);if(o=s,l>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return yy=n,yy}var xy,xA;function FH(){if(xA)return xy;xA=1;var e=LH(),t=IH(),r=t(e);return xy=r,xy}var by,bA;function RH(){if(bA)return by;bA=1;var e=gc(),t=jH(),r=FH();function n(i,a){return r(t(i,a,e),i+"")}return by=n,by}var wy,wA;function t1(){if(wA)return wy;wA=1;var e=l5(),t=Dh(),r=_5(),n=Ts();function i(a,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],a):!1}return wy=i,wy}var _y,_A;function MH(){if(_A)return _y;_A=1;var e=A8(),t=NH(),r=RH(),n=t1(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return _y=i,_y}var DH=MH();const E5=ur(DH);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 _x(){return _x=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},_x.apply(this,arguments)}function BH(e,t){return zH(e)||UH(e,t)||qH(e,t)||$H()}function $H(){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 qH(e,t){if(e){if(typeof e=="string")return SA(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 SA(e,t)}}function SA(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 UH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function zH(e){if(Array.isArray(e))return e}function AA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AA(Object(r),!0).forEach(function(n){WH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WH(e,t,r){return t=HH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HH(e){var t=GH(e,"string");return Vf(t)=="symbol"?t:t+""}function GH(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)}function VH(e){return Array.isArray(e)&&mn(e[0])&&mn(e[1])?e.join(" ~ "):e}var KH=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,c=t.payload,f=t.formatter,d=t.itemSorter,h=t.wrapperClassName,g=t.labelClassName,p=t.label,m=t.labelFormatter,y=t.accessibilityLayer,x=y===void 0?!1:y,w=function(){if(c&&c.length){var P={padding:0,margin:0},M=(d?E5(c,d):c).map(function(q,J){if(q.type==="none")return null;var U=Sy({display:"block",paddingTop:4,paddingBottom:4,color:q.color||"#000"},s),H=q.formatter||f||VH,ee=q.value,Z=q.name,Q=ee,le=Z;if(H&&Q!=null&&le!=null){var N=H(ee,Z,q,J,c);if(Array.isArray(N)){var I=BH(N,2);Q=I[0],le=I[1]}else Q=N}return V.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(J),style:U},mn(le)?V.createElement("span",{className:"recharts-tooltip-item-name"},le):null,mn(le)?V.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,V.createElement("span",{className:"recharts-tooltip-item-value"},Q),V.createElement("span",{className:"recharts-tooltip-item-unit"},q.unit||""))});return V.createElement("ul",{className:"recharts-tooltip-item-list",style:P},M)}return null},A=Sy({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),_=Sy({margin:0},u),E=!Bt(p),T=E?p:"",k=kt("recharts-default-tooltip",h),L=kt("recharts-tooltip-label",g);E&&m&&c!==void 0&&c!==null&&(T=m(p,c));var D=x?{role:"status","aria-live":"assertive"}:{};return V.createElement("div",_x({className:k,style:A},D),V.createElement("p",{className:L,style:_},V.isValidElement(T)?T:"".concat(T)),w())};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 Z0(e,t,r){return t=YH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YH(e){var t=XH(e,"string");return Kf(t)=="symbol"?t:t+""}function XH(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 rf="recharts-tooltip-wrapper",JH={visibility:"hidden"};function ZH(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return kt(rf,Z0(Z0(Z0(Z0({},"".concat(rf,"-right"),nt(r)&&t&&nt(t.x)&&r>=t.x),"".concat(rf,"-left"),nt(r)&&t&&nt(t.x)&&r<t.x),"".concat(rf,"-bottom"),nt(n)&&t&&nt(t.y)&&n>=t.y),"".concat(rf,"-top"),nt(n)&&t&&nt(t.y)&&n<t.y))}function TA(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&nt(a[n]))return a[n];var c=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?c:f;if(o[n]){var d=c,h=l[n];return d<h?Math.max(f,l[n]):Math.max(c,l[n])}var g=f+s,p=l[n]+u;return g>p?Math.max(c,l[n]):Math.max(f,l[n])}function QH(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 eG(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,f;return o.height>0&&o.width>0&&r?(c=TA({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=TA({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=QH({translateX:c,translateY:f,useTranslate3d:s})):u=JH,{cssProperties:u,cssClasses:ZH({translateX:c,translateY:f,coordinate:r})}}function Du(e){"@babel/helpers - typeof";return Du=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},Du(e)}function EA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function OA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EA(Object(r),!0).forEach(function(n){Ax(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rG(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 nG(e,t,r){return t&&rG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iG(e,t,r){return t=Bd(t),aG(e,P8()?Reflect.construct(t,r||[],Bd(e).constructor):t.apply(e,r))}function aG(e,t){if(t&&(Du(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oG(e)}function oG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P8=function(){return!!e})()}function Bd(e){return Bd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bd(e)}function sG(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&&Sx(e,t)}function Sx(e,t){return Sx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sx(e,t)}function Ax(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=lG(e,"string");return Du(t)=="symbol"?t:t+""}function lG(e,t){if(Du(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Du(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var PA=1,uG=(function(e){function t(){var r;tG(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=iG(this,t,[].concat(i)),Ax(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Ax(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,c;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:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),r}return sG(t,e),nG(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>PA||Math.abs(n.height-this.state.lastBoundingBox.height)>PA)&&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,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,h=i.offset,g=i.position,p=i.reverseDirection,m=i.useTranslate3d,y=i.viewBox,x=i.wrapperStyle,w=eG({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:h,position:g,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:m,viewBox:y}),A=w.cssClasses,_=w.cssProperties,E=OA(OA({transition:d&&a?"transform ".concat(s,"ms ").concat(l):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},x);return V.createElement("div",{tabIndex:-1,className:A,style:E,ref:function(k){n.wrapperNode=k}},u)}}])})(V.PureComponent),cG=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Tl={isSsr:cG()};function Bu(e){"@babel/helpers - typeof";return Bu=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},Bu(e)}function NA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function CA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NA(Object(r),!0).forEach(function(n){O5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hG(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,j8(n.key),n)}}function dG(e,t,r){return t&&hG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pG(e,t,r){return t=$d(t),vG(e,C8()?Reflect.construct(t,r||[],$d(e).constructor):t.apply(e,r))}function vG(e,t){if(t&&(Bu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mG(e)}function mG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C8=function(){return!!e})()}function $d(e){return $d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$d(e)}function gG(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&&Tx(e,t)}function Tx(e,t){return Tx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tx(e,t)}function O5(e,t,r){return t=j8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j8(e){var t=yG(e,"string");return Bu(t)=="symbol"?t:t+""}function yG(e,t){if(Bu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function xG(e){return e.dataKey}function bG(e,t){return V.isValidElement(e)?V.cloneElement(e,t):typeof e=="function"?V.createElement(e,t):V.createElement(KH,t)}var _a=(function(e){function t(){return fG(this,t),pG(this,t,arguments)}return gG(t,e),dG(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,c=i.coordinate,f=i.filterNull,d=i.isAnimationActive,h=i.offset,g=i.payload,p=i.payloadUniqBy,m=i.position,y=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,A=i.wrapperStyle,_=g??[];f&&_.length&&(_=w8(g.filter(function(T){return T.value!=null&&(T.hide!==!0||n.props.includeHidden)}),p,xG));var E=_.length>0;return V.createElement(uG,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:a,coordinate:c,hasPayload:E,offset:h,position:m,reverseDirection:y,useTranslate3d:x,viewBox:w,wrapperStyle:A},bG(u,CA(CA({},this.props),{},{payload:_})))}}])})(V.PureComponent);O5(_a,"displayName","Tooltip");O5(_a,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Tl.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 Ay,jA;function wG(){if(jA)return Ay;jA=1;var e=eo(),t=function(){return e.Date.now()};return Ay=t,Ay}var Ty,kA;function _G(){if(kA)return Ty;kA=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Ty=t,Ty}var Ey,LA;function SG(){if(LA)return Ey;LA=1;var e=_G(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Ey=r,Ey}var Oy,IA;function k8(){if(IA)return Oy;IA=1;var e=SG(),t=Ts(),r=vc(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var c=typeof u.valueOf=="function"?u.valueOf():u;u=t(c)?c+"":c}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=a.test(u);return f||o.test(u)?s(u.slice(2),f?2:8):i.test(u)?n:+u}return Oy=l,Oy}var Py,FA;function AG(){if(FA)return Py;FA=1;var e=Ts(),t=wG(),r=k8(),n="Expected a function",i=Math.max,a=Math.min;function o(s,l,u){var c,f,d,h,g,p,m=0,y=!1,x=!1,w=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(u)&&(y=!!u.leading,x="maxWait"in u,d=x?i(r(u.maxWait)||0,l):d,w="trailing"in u?!!u.trailing:w);function A(M){var q=c,J=f;return c=f=void 0,m=M,h=s.apply(J,q),h}function _(M){return m=M,g=setTimeout(k,l),y?A(M):h}function E(M){var q=M-p,J=M-m,U=l-q;return x?a(U,d-J):U}function T(M){var q=M-p,J=M-m;return p===void 0||q>=l||q<0||x&&J>=d}function k(){var M=t();if(T(M))return L(M);g=setTimeout(k,E(M))}function L(M){return g=void 0,w&&c?A(M):(c=f=void 0,h)}function D(){g!==void 0&&clearTimeout(g),m=0,c=p=f=g=void 0}function C(){return g===void 0?h:L(t())}function P(){var M=t(),q=T(M);if(c=arguments,f=this,p=M,q){if(g===void 0)return _(p);if(x)return clearTimeout(g),g=setTimeout(k,l),A(p)}return g===void 0&&(g=setTimeout(k,l)),h}return P.cancel=D,P.flush=C,P}return Py=o,Py}var Ny,RA;function TG(){if(RA)return Ny;RA=1;var e=AG(),t=Ts(),r="Expected a function";function n(i,a,o){var s=!0,l=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,l="trailing"in o?!!o.trailing:l),e(i,a,{leading:s,maxWait:a,trailing:l})}return Ny=n,Ny}var EG=TG();const L8=ur(EG);function Yf(e){"@babel/helpers - typeof";return Yf=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},Yf(e)}function MA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Q0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MA(Object(r),!0).forEach(function(n){OG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OG(e,t,r){return t=PG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PG(e){var t=NG(e,"string");return Yf(t)=="symbol"?t:t+""}function NG(e,t){if(Yf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CG(e,t){return IG(e)||LG(e,t)||kG(e,t)||jG()}function jG(){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 kG(e,t){if(e){if(typeof e=="string")return DA(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 DA(e,t)}}function DA(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 LG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function IG(e){if(Array.isArray(e))return e}var Cy=V.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,c=u===void 0?0:u,f=e.minHeight,d=e.maxHeight,h=e.children,g=e.debounce,p=g===void 0?0:g,m=e.id,y=e.className,x=e.onResize,w=e.style,A=w===void 0?{}:w,_=V.useRef(null),E=V.useRef();E.current=x,V.useImperativeHandle(t,function(){return Object.defineProperty(_.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),_.current},configurable:!0})});var T=V.useState({containerWidth:i.width,containerHeight:i.height}),k=CG(T,2),L=k[0],D=k[1],C=V.useCallback(function(M,q){D(function(J){var U=Math.round(M),H=Math.round(q);return J.containerWidth===U&&J.containerHeight===H?J:{containerWidth:U,containerHeight:H}})},[]);V.useEffect(function(){var M=function(Z){var Q,le=Z[0].contentRect,N=le.width,I=le.height;C(N,I),(Q=E.current)===null||Q===void 0||Q.call(E,N,I)};p>0&&(M=L8(M,p,{trailing:!0,leading:!1}));var q=new ResizeObserver(M),J=_.current.getBoundingClientRect(),U=J.width,H=J.height;return C(U,H),q.observe(_.current),function(){q.disconnect()}},[C,p]);var P=V.useMemo(function(){var M=L.containerWidth,q=L.containerHeight;if(M<0||q<0)return null;Oo(Ks(o)||Ks(l),`The width(%s) and height(%s) are both fixed numbers,
|
|
369
|
-
maybe you don't need to use a ResponsiveContainer.`,o,l),Oo(!r||r>0,"The aspect(%s) must be greater than zero.",r);var J=Ks(o)?M:o,U=Ks(l)?q:l;r&&r>0&&(J?U=J/r:U&&(J=U*r),d&&U>d&&(U=d)),Oo(J>0||U>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.`,J,U,o,l,c,f,r);var H=!Array.isArray(h)&&Eo(h.type).endsWith("Chart");return V.Children.map(h,function(ee){return V.isValidElement(ee)?V.cloneElement(ee,Q0({width:J,height:U},H?{style:Q0({height:"100%",width:"100%",maxHeight:U,maxWidth:J},ee.props.style)}:{})):ee})},[r,h,l,d,f,c,L,o]);return V.createElement("div",{id:m?"".concat(m):void 0,className:kt("recharts-responsive-container",y),style:Q0(Q0({},A),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:d}),ref:_},P)}),I8=function(t){return null};I8.displayName="Cell";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 BA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ex(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BA(Object(r),!0).forEach(function(n){FG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FG(e,t,r){return t=RG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RG(e){var t=MG(e,"string");return Xf(t)=="symbol"?t:t+""}function MG(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)}var nu={widthCache:{},cacheCount:0},DG=2e3,BG={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},$A="recharts_measurement_span";function $G(e){var t=Ex({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Nf=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Tl.isSsr)return{width:0,height:0};var n=$G(r),i=JSON.stringify({text:t,copyStyle:n});if(nu.widthCache[i])return nu.widthCache[i];try{var a=document.getElementById($A);a||(a=document.createElement("span"),a.setAttribute("id",$A),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Ex(Ex({},BG),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return nu.widthCache[i]=l,++nu.cacheCount>DG&&(nu.cacheCount=0,nu.widthCache={}),l}catch{return{width:0,height:0}}},qG=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Jf(e){"@babel/helpers - typeof";return Jf=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},Jf(e)}function qd(e,t){return HG(e)||WG(e,t)||zG(e,t)||UG()}function UG(){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 zG(e,t){if(e){if(typeof e=="string")return qA(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 qA(e,t)}}function qA(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 WG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function HG(e){if(Array.isArray(e))return e}function GG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UA(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,KG(n.key),n)}}function VG(e,t,r){return t&&UA(e.prototype,t),r&&UA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function KG(e){var t=YG(e,"string");return Jf(t)=="symbol"?t:t+""}function YG(e,t){if(Jf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zA=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,WA=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,XG=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,JG=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,F8={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},ZG=Object.keys(F8),du="NaN";function QG(e,t){return e*F8[t]}var ed=(function(){function e(t,r){GG(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!XG.test(r)&&(this.num=NaN,this.unit=""),ZG.includes(r)&&(this.num=QG(t,r),this.unit="px")}return VG(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,i=(n=JG.exec(r))!==null&&n!==void 0?n:[],a=qd(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function R8(e){if(e.includes(du))return du;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=zA.exec(t))!==null&&r!==void 0?r:[],i=qd(n,4),a=i[1],o=i[2],s=i[3],l=ed.parse(a??""),u=ed.parse(s??""),c=o==="*"?l.multiply(u):l.divide(u);if(c.isNaN())return du;t=t.replace(zA,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=WA.exec(t))!==null&&f!==void 0?f:[],h=qd(d,4),g=h[1],p=h[2],m=h[3],y=ed.parse(g??""),x=ed.parse(m??""),w=p==="+"?y.add(x):y.subtract(x);if(w.isNaN())return du;t=t.replace(WA,w.toString())}return t}var HA=/\(([^()]*)\)/;function eV(e){for(var t=e;t.includes("(");){var r=HA.exec(t),n=qd(r,2),i=n[1];t=t.replace(HA,R8(i))}return t}function tV(e){var t=e.replace(/\s+/g,"");return t=eV(t),t=R8(t),t}function rV(e){try{return tV(e)}catch{return du}}function jy(e){var t=rV(e.slice(5,-1));return t===du?"":t}var nV=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],iV=["dx","dy","angle","className","breakAll"];function Ox(){return Ox=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},Ox.apply(this,arguments)}function GA(e,t){if(e==null)return{};var r=aV(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function aV(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 VA(e,t){return uV(e)||lV(e,t)||sV(e,t)||oV()}function oV(){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 sV(e,t){if(e){if(typeof e=="string")return KA(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 KA(e,t)}}function KA(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 lV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function uV(e){if(Array.isArray(e))return e}var M8=/[ \f\n\r\t\v\u2028\u2029]+/,D8=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Bt(r)||(n?a=r.toString().split(""):a=r.toString().split(M8));var o=a.map(function(l){return{word:l,width:Nf(l,i).width}}),s=n?0:Nf(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},cV=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,c=nt(o),f=s,d=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return J.reduce(function(U,H){var ee=H.word,Z=H.width,Q=U[U.length-1];if(Q&&(i==null||a||Q.width+Z+n<Number(i)))Q.words.push(ee),Q.width+=Z+n;else{var le={words:[ee],width:Z};U.push(le)}return U},[])},h=d(r),g=function(J){return J.reduce(function(U,H){return U.width>H.width?U:H})};if(!c)return h;for(var p="…",m=function(J){var U=f.slice(0,J),H=D8({breakAll:u,style:l,children:U+p}).wordsWithComputedWidth,ee=d(H),Z=ee.length>o||g(ee).width>Number(i);return[Z,ee]},y=0,x=f.length-1,w=0,A;y<=x&&w<=f.length-1;){var _=Math.floor((y+x)/2),E=_-1,T=m(E),k=VA(T,2),L=k[0],D=k[1],C=m(_),P=VA(C,1),M=P[0];if(!L&&!M&&(y=_+1),L&&M&&(x=_-1),!L&&M){A=D;break}w++}return A||h},YA=function(t){var r=Bt(t)?[]:t.toString().split(M8);return[{words:r}]},fV=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Tl.isSsr){var l,u,c=D8({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;l=f,u=d}else return YA(i);return cV({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return YA(i)},XA="#808080",$u=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,h=d===void 0?"start":d,g=t.verticalAnchor,p=g===void 0?"end":g,m=t.fill,y=m===void 0?XA:m,x=GA(t,nV),w=V.useMemo(function(){return fV({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:f,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,f,x.style,x.width]),A=x.dx,_=x.dy,E=x.angle,T=x.className,k=x.breakAll,L=GA(x,iV);if(!mn(n)||!mn(a))return null;var D=n+(nt(A)?A:0),C=a+(nt(_)?_:0),P;switch(p){case"start":P=jy("calc(".concat(u,")"));break;case"middle":P=jy("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:P=jy("calc(".concat(w.length-1," * -").concat(s,")"));break}var M=[];if(f){var q=w[0].width,J=x.width;M.push("scale(".concat((nt(J)?J/q:1)/q,")"))}return E&&M.push("rotate(".concat(E,", ").concat(D,", ").concat(C,")")),M.length&&(L.transform=M.join(" ")),V.createElement("text",Ox({},gt(L,!0),{x:D,y:C,className:kt("recharts-text",T),textAnchor:h,fill:y.includes("url")?XA:y}),w.map(function(U,H){var ee=U.words.join(k?"":" ");return V.createElement("tspan",{x:D,dy:H===0?P:s,key:"".concat(ee,"-").concat(H)},ee)}))};function ys(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function hV(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function P5(e){let t,r,n;e.length!==2?(t=ys,r=(s,l)=>ys(e(s),l),n=(s,l)=>e(s)-l):(t=e===ys||e===hV?e:dV,r=e,n=e);function i(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function a(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=i(s,l,u,c-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function dV(){return 0}function B8(e){return e===null?NaN:+e}function*pV(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const vV=P5(ys),Bh=vV.right;P5(B8).center;class JA extends Map{constructor(t,r=yV){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(ZA(this,t))}has(t){return super.has(ZA(this,t))}set(t,r){return super.set(mV(this,t),r)}delete(t){return super.delete(gV(this,t))}}function ZA({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function mV({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function gV({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function yV(e){return e!==null&&typeof e=="object"?e.valueOf():e}function xV(e=ys){if(e===ys)return $8;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 $8(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const bV=Math.sqrt(50),wV=Math.sqrt(10),_V=Math.sqrt(2);function Ud(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=bV?10:a>=wV?5:a>=_V?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?Ud(e,t,r*2):[s,l,u]}function Px(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Ud(t,e,r):Ud(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(a-u)/-o;else for(let u=0;u<s;++u)l[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(i+u)/-o;else for(let u=0;u<s;++u)l[u]=(i+u)*o;return l}function Nx(e,t,r){return t=+t,e=+e,r=+r,Ud(e,t,r)[2]}function Cx(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Nx(t,e,r):Nx(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function QA(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function eT(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function q8(e,t,r=0,n=1/0,i){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(i=i===void 0?$8:xV(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),h=Math.max(r,Math.floor(t-u*f/l+d)),g=Math.min(n,Math.floor(t+(l-u)*f/l+d));q8(e,t,h,g,i)}const a=e[t];let o=r,s=n;for(nf(e,r,t),i(e[n],a)>0&&nf(e,r,n);o<s;){for(nf(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?nf(e,r,s):(++s,nf(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function nf(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function SV(e,t,r){if(e=Float64Array.from(pV(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return eT(e);if(t>=1)return QA(e);var n,i=(n-1)*t,a=Math.floor(i),o=QA(q8(e,a).subarray(0,a+1)),s=eT(e.subarray(a+1));return o+(s-o)*(i-a)}}function AV(e,t,r=B8){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,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function TV(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function sa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Bo(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 jx=Symbol("implicit");function N5(){var e=new JA,t=[],r=[],n=jx;function i(a){let o=e.get(a);if(o===void 0){if(n!==jx)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new JA;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return N5(t,r).unknown(n)},sa.apply(i,arguments),i}function Zf(){var e=N5().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,h=i<n,g=h?i:n,p=h?n:i;a=(p-g)/Math.max(1,d-l+u*2),s&&(a=Math.floor(a)),g+=(p-g-a*(d-l))*c,o=a*(1-l),s&&(g=Math.round(g),o=Math.round(o));var m=TV(d).map(function(y){return g+a*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,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,u=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return Zf(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(c)},sa.apply(f(),arguments)}function U8(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return U8(t())},e}function Cf(){return U8(Zf.apply(null,arguments).paddingInner(1))}function C5(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function z8(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function $h(){}var Qf=.7,zd=1/Qf,Au="\\s*([+-]?\\d+)\\s*",eh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ka="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",EV=/^#([0-9a-f]{3,8})$/,OV=new RegExp(`^rgb\\(${Au},${Au},${Au}\\)$`),PV=new RegExp(`^rgb\\(${Ka},${Ka},${Ka}\\)$`),NV=new RegExp(`^rgba\\(${Au},${Au},${Au},${eh}\\)$`),CV=new RegExp(`^rgba\\(${Ka},${Ka},${Ka},${eh}\\)$`),jV=new RegExp(`^hsl\\(${eh},${Ka},${Ka}\\)$`),kV=new RegExp(`^hsla\\(${eh},${Ka},${Ka},${eh}\\)$`),tT={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};C5($h,th,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rT,formatHex:rT,formatHex8:LV,formatHsl:IV,formatRgb:nT,toString:nT});function rT(){return this.rgb().formatHex()}function LV(){return this.rgb().formatHex8()}function IV(){return W8(this).formatHsl()}function nT(){return this.rgb().formatRgb()}function th(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=EV.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?iT(t):r===3?new vi(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?td(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?td(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=OV.exec(e))?new vi(t[1],t[2],t[3],1):(t=PV.exec(e))?new vi(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=NV.exec(e))?td(t[1],t[2],t[3],t[4]):(t=CV.exec(e))?td(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=jV.exec(e))?sT(t[1],t[2]/100,t[3]/100,1):(t=kV.exec(e))?sT(t[1],t[2]/100,t[3]/100,t[4]):tT.hasOwnProperty(e)?iT(tT[e]):e==="transparent"?new vi(NaN,NaN,NaN,0):null}function iT(e){return new vi(e>>16&255,e>>8&255,e&255,1)}function td(e,t,r,n){return n<=0&&(e=t=r=NaN),new vi(e,t,r,n)}function FV(e){return e instanceof $h||(e=th(e)),e?(e=e.rgb(),new vi(e.r,e.g,e.b,e.opacity)):new vi}function kx(e,t,r,n){return arguments.length===1?FV(e):new vi(e,t,r,n??1)}function vi(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}C5(vi,kx,z8($h,{brighter(e){return e=e==null?zd:Math.pow(zd,e),new vi(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Qf:Math.pow(Qf,e),new vi(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vi(ul(this.r),ul(this.g),ul(this.b),Wd(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:aT,formatHex:aT,formatHex8:RV,formatRgb:oT,toString:oT}));function aT(){return`#${Ys(this.r)}${Ys(this.g)}${Ys(this.b)}`}function RV(){return`#${Ys(this.r)}${Ys(this.g)}${Ys(this.b)}${Ys((isNaN(this.opacity)?1:this.opacity)*255)}`}function oT(){const e=Wd(this.opacity);return`${e===1?"rgb(":"rgba("}${ul(this.r)}, ${ul(this.g)}, ${ul(this.b)}${e===1?")":`, ${e})`}`}function Wd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ul(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ys(e){return e=ul(e),(e<16?"0":"")+e.toString(16)}function sT(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ea(e,t,r,n)}function W8(e){if(e instanceof Ea)return new Ea(e.h,e.s,e.l,e.opacity);if(e instanceof $h||(e=th(e)),!e)return new Ea;if(e instanceof Ea)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Ea(o,s,l,e.opacity)}function MV(e,t,r,n){return arguments.length===1?W8(e):new Ea(e,t,r,n??1)}function Ea(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}C5(Ea,MV,z8($h,{brighter(e){return e=e==null?zd:Math.pow(zd,e),new Ea(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Qf:Math.pow(Qf,e),new Ea(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,i=2*r-n;return new vi(ky(e>=240?e-240:e+120,i,n),ky(e,i,n),ky(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ea(lT(this.h),rd(this.s),rd(this.l),Wd(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=Wd(this.opacity);return`${e===1?"hsl(":"hsla("}${lT(this.h)}, ${rd(this.s)*100}%, ${rd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function lT(e){return e=(e||0)%360,e<0?e+360:e}function rd(e){return Math.max(0,Math.min(1,e||0))}function ky(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 j5=e=>()=>e;function DV(e,t){return function(r){return e+r*t}}function BV(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 $V(e){return(e=+e)==1?H8:function(t,r){return r-t?BV(t,r,e):j5(isNaN(t)?r:t)}}function H8(e,t){var r=t-e;return r?DV(e,r):j5(isNaN(e)?t:e)}const uT=(function e(t){var r=$V(t);function n(i,a){var o=r((i=kx(i)).r,(a=kx(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=H8(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n})(1);function qV(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function UV(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function zV(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=yc(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function WV(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Hd(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function HV(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=yc(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Lx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ly=new RegExp(Lx.source,"g");function GV(e){return function(){return e}}function VV(e){return function(t){return e(t)+""}}function KV(e,t){var r=Lx.lastIndex=Ly.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=Lx.exec(e))&&(i=Ly.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Hd(n,i)})),r=Ly.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?VV(l[0].x):GV(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}function yc(e,t){var r=typeof t,n;return t==null||r==="boolean"?j5(t):(r==="number"?Hd:r==="string"?(n=th(t))?(t=n,uT):KV:t instanceof th?uT:t instanceof Date?WV:UV(t)?qV:Array.isArray(t)?zV:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?HV:Hd)(e,t)}function k5(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function YV(e,t){t===void 0&&(t=e,e=yc);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function XV(e){return function(){return e}}function Gd(e){return+e}var cT=[0,1];function ii(e){return e}function Ix(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:XV(isNaN(t)?NaN:.5)}function JV(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function ZV(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Ix(i,n),a=r(o,a)):(n=Ix(n,i),a=r(a,o)),function(s){return a(n(s))}}function QV(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Ix(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=Bh(e,s,1,n)-1;return a[l](i[l](s))}}function qh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function r1(){var e=cT,t=cT,r=yc,n,i,a,o=ii,s,l,u;function c(){var d=Math.min(e.length,t.length);return o!==ii&&(o=JV(e[0],e[d-1])),s=d>2?QV:ZV,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((u||(u=s(t,e.map(n),Hd)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Gd),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=k5,c()},f.clamp=function(d){return arguments.length?(o=d?!0:ii,c()):o!==ii},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,c()}}function L5(){return r1()(ii,ii)}function eK(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Vd(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 qu(e){return e=Vd(Math.abs(e)),e?e[1]:NaN}function tK(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function rK(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var nK=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function rh(e){if(!(t=nK.exec(e)))throw new Error("invalid format: "+e);var t;return new I5({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]})}rh.prototype=I5.prototype;function I5(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+""}I5.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 iK(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Kd;function aK(e,t){var r=Vd(e,t);if(!r)return Kd=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Kd=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Vd(e,Math.max(0,t+a-1))[0]}function fT(e,t){var r=Vd(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const hT={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:eK,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)=>fT(e*100,t),r:fT,s:aK,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function dT(e){return e}var pT=Array.prototype.map,vT=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function oK(e){var t=e.grouping===void 0||e.thousands===void 0?dT:tK(pT.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?dT:rK(pT.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 u(f,d){f=rh(f);var h=f.fill,g=f.align,p=f.sign,m=f.symbol,y=f.zero,x=f.width,w=f.comma,A=f.precision,_=f.trim,E=f.type;E==="n"?(w=!0,E="g"):hT[E]||(A===void 0&&(A=12),_=!0,E="g"),(y||h==="0"&&g==="=")&&(y=!0,h="0",g="=");var T=(d&&d.prefix!==void 0?d.prefix:"")+(m==="$"?r:m==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():""),k=(m==="$"?n:/[%p]/.test(E)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),L=hT[E],D=/[defgprs%]/.test(E);A=A===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function C(P){var M=T,q=k,J,U,H;if(E==="c")q=L(P)+q,P="";else{P=+P;var ee=P<0||1/P<0;if(P=isNaN(P)?l:L(Math.abs(P),A),_&&(P=iK(P)),ee&&+P==0&&p!=="+"&&(ee=!1),M=(ee?p==="("?p:s:p==="-"||p==="("?"":p)+M,q=(E==="s"&&!isNaN(P)&&Kd!==void 0?vT[8+Kd/3]:"")+q+(ee&&p==="("?")":""),D){for(J=-1,U=P.length;++J<U;)if(H=P.charCodeAt(J),48>H||H>57){q=(H===46?i+P.slice(J+1):P.slice(J))+q,P=P.slice(0,J);break}}}w&&!y&&(P=t(P,1/0));var Z=M.length+P.length+q.length,Q=Z<x?new Array(x-Z+1).join(h):"";switch(w&&y&&(P=t(Q+P,Q.length?x-q.length:1/0),Q=""),g){case"<":P=M+P+q+Q;break;case"=":P=M+Q+P+q;break;case"^":P=Q.slice(0,Z=Q.length>>1)+M+P+q+Q.slice(Z);break;default:P=Q+M+P+q;break}return a(P)}return C.toString=function(){return f+""},C}function c(f,d){var h=Math.max(-8,Math.min(8,Math.floor(qu(d)/3)))*3,g=Math.pow(10,-h),p=u((f=rh(f),f.type="f",f),{suffix:vT[8+h/3]});return function(m){return p(g*m)}}return{format:u,formatPrefix:c}}var nd,F5,G8;sK({thousands:",",grouping:[3],currency:["$",""]});function sK(e){return nd=oK(e),F5=nd.format,G8=nd.formatPrefix,nd}function lK(e){return Math.max(0,-qu(Math.abs(e)))}function uK(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(qu(t)/3)))*3-qu(Math.abs(e)))}function cK(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,qu(t)-qu(e))+1}function V8(e,t,r,n){var i=Cx(e,t,r),a;switch(n=rh(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=uK(i,o))&&(n.precision=a),G8(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=cK(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=lK(i))&&(n.precision=a-(n.type==="%")*2);break}}return F5(n)}function Es(e){var t=e.domain;return e.ticks=function(r){var n=t();return Px(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return V8(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,c=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);c-- >0;){if(u=Nx(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function Yd(){var e=L5();return e.copy=function(){return qh(e,Yd())},sa.apply(e,arguments),Es(e)}function K8(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,Gd),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return K8(e).unknown(t)},e=arguments.length?Array.from(e,Gd):[0,1],Es(r)}function Y8(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function mT(e){return Math.log(e)}function gT(e){return Math.exp(e)}function fK(e){return-Math.log(-e)}function hK(e){return-Math.exp(-e)}function dK(e){return isFinite(e)?+("1e"+e):e<0?0:e}function pK(e){return e===10?dK:e===Math.E?Math.exp:t=>Math.pow(e,t)}function vK(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 yT(e){return(t,r)=>-e(-t,r)}function R5(e){const t=e(mT,gT),r=t.domain;let n=10,i,a;function o(){return i=vK(n),a=pK(n),r()[0]<0?(i=yT(i),a=yT(a),e(fK,hK)):e(mT,gT),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 u=l[0],c=l[l.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=i(u),h=i(c),g,p;const m=s==null?10:+s;let y=[];if(!(n%1)&&h-d<m){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(g=1;g<n;++g)if(p=d<0?g/a(-d):g*a(d),!(p<u)){if(p>c)break;y.push(p)}}else for(;d<=h;++d)for(g=n-1;g>=1;--g)if(p=d>0?g/a(-d):g*a(d),!(p<u)){if(p>c)break;y.push(p)}y.length*2<m&&(y=Px(u,c,m))}else y=Px(d,h,Math.min(h-d,m)).map(a);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=rh(l)).precision==null&&(l.trim=!0),l=F5(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=u?l(c):""}},t.nice=()=>r(Y8(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function X8(){const e=R5(r1()).domain([1,10]);return e.copy=()=>qh(e,X8()).base(e.base()),sa.apply(e,arguments),e}function xT(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function bT(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function M5(e){var t=1,r=e(xT(t),bT(t));return r.constant=function(n){return arguments.length?e(xT(t=+n),bT(t)):t},Es(r)}function J8(){var e=M5(r1());return e.copy=function(){return qh(e,J8()).constant(e.constant())},sa.apply(e,arguments)}function wT(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function mK(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function gK(e){return e<0?-e*e:e*e}function D5(e){var t=e(ii,ii),r=1;function n(){return r===1?e(ii,ii):r===.5?e(mK,gK):e(wT(r),wT(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Es(t)}function B5(){var e=D5(r1());return e.copy=function(){return qh(e,B5()).exponent(e.exponent())},sa.apply(e,arguments),e}function yK(){return B5.apply(null,arguments).exponent(.5)}function _T(e){return Math.sign(e)*e*e}function xK(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Z8(){var e=L5(),t=[0,1],r=!1,n;function i(a){var o=xK(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(_T(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Gd)).map(_T)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Z8(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},sa.apply(i,arguments),Es(i)}function Q8(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=AV(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Bh(r,o)]}return a.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]]},a.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(ys),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return Q8().domain(e).range(t).unknown(n)},sa.apply(a,arguments)}function eC(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[Bh(n,l,0,r)]:a}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=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return eC().domain([e,t]).range(i).unknown(a)},sa.apply(Es(o),arguments)}function tC(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Bh(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return tC().domain(e).range(t).unknown(r)},sa.apply(i,arguments)}const Iy=new Date,Fy=new Date;function gn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return l},i.filter=a=>gn(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Iy.setTime(+a),Fy.setTime(+o),e(Iy),e(Fy),Math.floor(r(Iy,Fy))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Xd=gn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Xd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?gn(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Xd);Xd.range;const bo=1e3,ra=bo*60,wo=ra*60,ko=wo*24,$5=ko*7,ST=ko*30,Ry=ko*365,Xs=gn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*bo)},(e,t)=>(t-e)/bo,e=>e.getUTCSeconds());Xs.range;const q5=gn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bo)},(e,t)=>{e.setTime(+e+t*ra)},(e,t)=>(t-e)/ra,e=>e.getMinutes());q5.range;const U5=gn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ra)},(e,t)=>(t-e)/ra,e=>e.getUTCMinutes());U5.range;const z5=gn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bo-e.getMinutes()*ra)},(e,t)=>{e.setTime(+e+t*wo)},(e,t)=>(t-e)/wo,e=>e.getHours());z5.range;const W5=gn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*wo)},(e,t)=>(t-e)/wo,e=>e.getUTCHours());W5.range;const Uh=gn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ra)/ko,e=>e.getDate()-1);Uh.range;const n1=gn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ko,e=>e.getUTCDate()-1);n1.range;const rC=gn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ko,e=>Math.floor(e/ko));rC.range;function El(e){return gn(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())*ra)/$5)}const i1=El(0),Jd=El(1),bK=El(2),wK=El(3),Uu=El(4),_K=El(5),SK=El(6);i1.range;Jd.range;bK.range;wK.range;Uu.range;_K.range;SK.range;function Ol(e){return gn(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)/$5)}const a1=Ol(0),Zd=Ol(1),AK=Ol(2),TK=Ol(3),zu=Ol(4),EK=Ol(5),OK=Ol(6);a1.range;Zd.range;AK.range;TK.range;zu.range;EK.range;OK.range;const H5=gn(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());H5.range;const G5=gn(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());G5.range;const Lo=gn(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());Lo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:gn(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)});Lo.range;const Io=gn(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());Io.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:gn(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)});Io.range;function nC(e,t,r,n,i,a){const o=[[Xs,1,bo],[Xs,5,5*bo],[Xs,15,15*bo],[Xs,30,30*bo],[a,1,ra],[a,5,5*ra],[a,15,15*ra],[a,30,30*ra],[i,1,wo],[i,3,3*wo],[i,6,6*wo],[i,12,12*wo],[n,1,ko],[n,2,2*ko],[r,1,$5],[t,1,ST],[t,3,3*ST],[e,1,Ry]];function s(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const h=f&&typeof f.range=="function"?f:l(u,c,f),g=h?h.range(u,+c+1):[];return d?g.reverse():g}function l(u,c,f){const d=Math.abs(c-u)/f,h=P5(([,,m])=>m).right(o,d);if(h===o.length)return e.every(Cx(u/Ry,c/Ry,f));if(h===0)return Xd.every(Math.max(Cx(u,c,f),1));const[g,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return g.every(p)}return[s,l]}const[PK,NK]=nC(Io,G5,a1,rC,W5,U5),[CK,jK]=nC(Lo,H5,i1,Uh,z5,q5);function My(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 Dy(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 af(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function kK(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=of(i),c=sf(i),f=of(a),d=sf(a),h=of(o),g=sf(o),p=of(s),m=sf(s),y=of(l),x=sf(l),w={a:H,A:ee,b:Z,B:Q,c:null,d:NT,e:NT,f:tY,g:fY,G:dY,H:ZK,I:QK,j:eY,L:iC,m:rY,M:nY,p:le,q:N,Q:kT,s:LT,S:iY,u:aY,U:oY,V:sY,w:lY,W:uY,x:null,X:null,y:cY,Y:hY,Z:pY,"%":jT},A={a:I,A:R,b:B,B:G,c:null,d:CT,e:CT,f:yY,g:PY,G:CY,H:vY,I:mY,j:gY,L:oC,m:xY,M:bY,p:ce,q:he,Q:kT,s:LT,S:wY,u:_Y,U:SY,V:AY,w:TY,W:EY,x:null,X:null,y:OY,Y:NY,Z:jY,"%":jT},_={a:D,A:C,b:P,B:M,c:q,d:OT,e:OT,f:KK,g:ET,G:TT,H:PT,I:PT,j:WK,L:VK,m:zK,M:HK,p:L,q:UK,Q:XK,s:JK,S:GK,u:MK,U:DK,V:BK,w:RK,W:$K,x:J,X:U,y:ET,Y:TT,Z:qK,"%":YK};w.x=E(r,w),w.X=E(n,w),w.c=E(t,w),A.x=E(r,A),A.X=E(n,A),A.c=E(t,A);function E(ne,me){return function(Se){var ue=[],Ie=-1,ge=0,_e=ne.length,oe,Re,tt;for(Se instanceof Date||(Se=new Date(+Se));++Ie<_e;)ne.charCodeAt(Ie)===37&&(ue.push(ne.slice(ge,Ie)),(Re=AT[oe=ne.charAt(++Ie)])!=null?oe=ne.charAt(++Ie):Re=oe==="e"?" ":"0",(tt=me[oe])&&(oe=tt(Se,Re)),ue.push(oe),ge=Ie+1);return ue.push(ne.slice(ge,Ie)),ue.join("")}}function T(ne,me){return function(Se){var ue=af(1900,void 0,1),Ie=k(ue,ne,Se+="",0),ge,_e;if(Ie!=Se.length)return null;if("Q"in ue)return new Date(ue.Q);if("s"in ue)return new Date(ue.s*1e3+("L"in ue?ue.L:0));if(me&&!("Z"in ue)&&(ue.Z=0),"p"in ue&&(ue.H=ue.H%12+ue.p*12),ue.m===void 0&&(ue.m="q"in ue?ue.q:0),"V"in ue){if(ue.V<1||ue.V>53)return null;"w"in ue||(ue.w=1),"Z"in ue?(ge=Dy(af(ue.y,0,1)),_e=ge.getUTCDay(),ge=_e>4||_e===0?Zd.ceil(ge):Zd(ge),ge=n1.offset(ge,(ue.V-1)*7),ue.y=ge.getUTCFullYear(),ue.m=ge.getUTCMonth(),ue.d=ge.getUTCDate()+(ue.w+6)%7):(ge=My(af(ue.y,0,1)),_e=ge.getDay(),ge=_e>4||_e===0?Jd.ceil(ge):Jd(ge),ge=Uh.offset(ge,(ue.V-1)*7),ue.y=ge.getFullYear(),ue.m=ge.getMonth(),ue.d=ge.getDate()+(ue.w+6)%7)}else("W"in ue||"U"in ue)&&("w"in ue||(ue.w="u"in ue?ue.u%7:"W"in ue?1:0),_e="Z"in ue?Dy(af(ue.y,0,1)).getUTCDay():My(af(ue.y,0,1)).getDay(),ue.m=0,ue.d="W"in ue?(ue.w+6)%7+ue.W*7-(_e+5)%7:ue.w+ue.U*7-(_e+6)%7);return"Z"in ue?(ue.H+=ue.Z/100|0,ue.M+=ue.Z%100,Dy(ue)):My(ue)}}function k(ne,me,Se,ue){for(var Ie=0,ge=me.length,_e=Se.length,oe,Re;Ie<ge;){if(ue>=_e)return-1;if(oe=me.charCodeAt(Ie++),oe===37){if(oe=me.charAt(Ie++),Re=_[oe in AT?me.charAt(Ie++):oe],!Re||(ue=Re(ne,Se,ue))<0)return-1}else if(oe!=Se.charCodeAt(ue++))return-1}return ue}function L(ne,me,Se){var ue=u.exec(me.slice(Se));return ue?(ne.p=c.get(ue[0].toLowerCase()),Se+ue[0].length):-1}function D(ne,me,Se){var ue=h.exec(me.slice(Se));return ue?(ne.w=g.get(ue[0].toLowerCase()),Se+ue[0].length):-1}function C(ne,me,Se){var ue=f.exec(me.slice(Se));return ue?(ne.w=d.get(ue[0].toLowerCase()),Se+ue[0].length):-1}function P(ne,me,Se){var ue=y.exec(me.slice(Se));return ue?(ne.m=x.get(ue[0].toLowerCase()),Se+ue[0].length):-1}function M(ne,me,Se){var ue=p.exec(me.slice(Se));return ue?(ne.m=m.get(ue[0].toLowerCase()),Se+ue[0].length):-1}function q(ne,me,Se){return k(ne,t,me,Se)}function J(ne,me,Se){return k(ne,r,me,Se)}function U(ne,me,Se){return k(ne,n,me,Se)}function H(ne){return o[ne.getDay()]}function ee(ne){return a[ne.getDay()]}function Z(ne){return l[ne.getMonth()]}function Q(ne){return s[ne.getMonth()]}function le(ne){return i[+(ne.getHours()>=12)]}function N(ne){return 1+~~(ne.getMonth()/3)}function I(ne){return o[ne.getUTCDay()]}function R(ne){return a[ne.getUTCDay()]}function B(ne){return l[ne.getUTCMonth()]}function G(ne){return s[ne.getUTCMonth()]}function ce(ne){return i[+(ne.getUTCHours()>=12)]}function he(ne){return 1+~~(ne.getUTCMonth()/3)}return{format:function(ne){var me=E(ne+="",w);return me.toString=function(){return ne},me},parse:function(ne){var me=T(ne+="",!1);return me.toString=function(){return ne},me},utcFormat:function(ne){var me=E(ne+="",A);return me.toString=function(){return ne},me},utcParse:function(ne){var me=T(ne+="",!0);return me.toString=function(){return ne},me}}}var AT={"-":"",_:" ",0:"0"},Tn=/^\s*\d+/,LK=/^%/,IK=/[\\^$*+?|[\]().{}]/g;function Xt(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function FK(e){return e.replace(IK,"\\$&")}function of(e){return new RegExp("^(?:"+e.map(FK).join("|")+")","i")}function sf(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function RK(e,t,r){var n=Tn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function MK(e,t,r){var n=Tn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function DK(e,t,r){var n=Tn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function BK(e,t,r){var n=Tn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function $K(e,t,r){var n=Tn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function TT(e,t,r){var n=Tn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function ET(e,t,r){var n=Tn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function qK(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 UK(e,t,r){var n=Tn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function zK(e,t,r){var n=Tn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function OT(e,t,r){var n=Tn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function WK(e,t,r){var n=Tn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function PT(e,t,r){var n=Tn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function HK(e,t,r){var n=Tn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function GK(e,t,r){var n=Tn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function VK(e,t,r){var n=Tn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function KK(e,t,r){var n=Tn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function YK(e,t,r){var n=LK.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function XK(e,t,r){var n=Tn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function JK(e,t,r){var n=Tn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function NT(e,t){return Xt(e.getDate(),t,2)}function ZK(e,t){return Xt(e.getHours(),t,2)}function QK(e,t){return Xt(e.getHours()%12||12,t,2)}function eY(e,t){return Xt(1+Uh.count(Lo(e),e),t,3)}function iC(e,t){return Xt(e.getMilliseconds(),t,3)}function tY(e,t){return iC(e,t)+"000"}function rY(e,t){return Xt(e.getMonth()+1,t,2)}function nY(e,t){return Xt(e.getMinutes(),t,2)}function iY(e,t){return Xt(e.getSeconds(),t,2)}function aY(e){var t=e.getDay();return t===0?7:t}function oY(e,t){return Xt(i1.count(Lo(e)-1,e),t,2)}function aC(e){var t=e.getDay();return t>=4||t===0?Uu(e):Uu.ceil(e)}function sY(e,t){return e=aC(e),Xt(Uu.count(Lo(e),e)+(Lo(e).getDay()===4),t,2)}function lY(e){return e.getDay()}function uY(e,t){return Xt(Jd.count(Lo(e)-1,e),t,2)}function cY(e,t){return Xt(e.getFullYear()%100,t,2)}function fY(e,t){return e=aC(e),Xt(e.getFullYear()%100,t,2)}function hY(e,t){return Xt(e.getFullYear()%1e4,t,4)}function dY(e,t){var r=e.getDay();return e=r>=4||r===0?Uu(e):Uu.ceil(e),Xt(e.getFullYear()%1e4,t,4)}function pY(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Xt(t/60|0,"0",2)+Xt(t%60,"0",2)}function CT(e,t){return Xt(e.getUTCDate(),t,2)}function vY(e,t){return Xt(e.getUTCHours(),t,2)}function mY(e,t){return Xt(e.getUTCHours()%12||12,t,2)}function gY(e,t){return Xt(1+n1.count(Io(e),e),t,3)}function oC(e,t){return Xt(e.getUTCMilliseconds(),t,3)}function yY(e,t){return oC(e,t)+"000"}function xY(e,t){return Xt(e.getUTCMonth()+1,t,2)}function bY(e,t){return Xt(e.getUTCMinutes(),t,2)}function wY(e,t){return Xt(e.getUTCSeconds(),t,2)}function _Y(e){var t=e.getUTCDay();return t===0?7:t}function SY(e,t){return Xt(a1.count(Io(e)-1,e),t,2)}function sC(e){var t=e.getUTCDay();return t>=4||t===0?zu(e):zu.ceil(e)}function AY(e,t){return e=sC(e),Xt(zu.count(Io(e),e)+(Io(e).getUTCDay()===4),t,2)}function TY(e){return e.getUTCDay()}function EY(e,t){return Xt(Zd.count(Io(e)-1,e),t,2)}function OY(e,t){return Xt(e.getUTCFullYear()%100,t,2)}function PY(e,t){return e=sC(e),Xt(e.getUTCFullYear()%100,t,2)}function NY(e,t){return Xt(e.getUTCFullYear()%1e4,t,4)}function CY(e,t){var r=e.getUTCDay();return e=r>=4||r===0?zu(e):zu.ceil(e),Xt(e.getUTCFullYear()%1e4,t,4)}function jY(){return"+0000"}function jT(){return"%"}function kT(e){return+e}function LT(e){return Math.floor(+e/1e3)}var iu,lC,uC;kY({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 kY(e){return iu=kK(e),lC=iu.format,iu.parse,uC=iu.utcFormat,iu.utcParse,iu}function LY(e){return new Date(e)}function IY(e){return e instanceof Date?+e:+new Date(+e)}function V5(e,t,r,n,i,a,o,s,l,u){var c=L5(),f=c.invert,d=c.domain,h=u(".%L"),g=u(":%S"),p=u("%I:%M"),m=u("%I %p"),y=u("%a %d"),x=u("%b %d"),w=u("%B"),A=u("%Y");function _(E){return(l(E)<E?h:s(E)<E?g:o(E)<E?p:a(E)<E?m:n(E)<E?i(E)<E?y:x:r(E)<E?w:A)(E)}return c.invert=function(E){return new Date(f(E))},c.domain=function(E){return arguments.length?d(Array.from(E,IY)):d().map(LY)},c.ticks=function(E){var T=d();return e(T[0],T[T.length-1],E??10)},c.tickFormat=function(E,T){return T==null?_:u(T)},c.nice=function(E){var T=d();return(!E||typeof E.range!="function")&&(E=t(T[0],T[T.length-1],E??10)),E?d(Y8(T,E)):c},c.copy=function(){return qh(c,V5(e,t,r,n,i,a,o,s,l,u))},c}function FY(){return sa.apply(V5(CK,jK,Lo,H5,i1,Uh,z5,q5,Xs,lC).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function RY(){return sa.apply(V5(PK,NK,Io,G5,a1,n1,W5,U5,Xs,uC).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function o1(){var e=0,t=1,r,n,i,a,o=ii,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(d){var h,g;return arguments.length?([h,g]=d,o=f(h,g),u):[o(0),o(1)]}}return u.range=c(yc),u.rangeRound=c(k5),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function Os(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function cC(){var e=Es(o1()(ii));return e.copy=function(){return Os(e,cC())},Bo.apply(e,arguments)}function fC(){var e=R5(o1()).domain([1,10]);return e.copy=function(){return Os(e,fC()).base(e.base())},Bo.apply(e,arguments)}function hC(){var e=M5(o1());return e.copy=function(){return Os(e,hC()).constant(e.constant())},Bo.apply(e,arguments)}function K5(){var e=D5(o1());return e.copy=function(){return Os(e,K5()).exponent(e.exponent())},Bo.apply(e,arguments)}function MY(){return K5.apply(null,arguments).exponent(.5)}function dC(){var e=[],t=ii;function r(n){if(n!=null&&!isNaN(n=+n))return t((Bh(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(ys),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>SV(e,a/n))},r.copy=function(){return dC(t).domain(e)},Bo.apply(r,arguments)}function s1(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=ii,c,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+c(p))-a)*(n*p<n*a?s:l),u(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,i=c(e=+e),a=c(t=+t),o=c(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(u=p,h):u};function g(p){return function(m){var y,x,w;return arguments.length?([y,x,w]=m,u=YV(p,[y,x,w]),h):[u(0),u(.5),u(1)]}}return h.range=g(yc),h.rangeRound=g(k5),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return c=p,i=p(e),a=p(t),o=p(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function pC(){var e=Es(s1()(ii));return e.copy=function(){return Os(e,pC())},Bo.apply(e,arguments)}function vC(){var e=R5(s1()).domain([.1,1,10]);return e.copy=function(){return Os(e,vC()).base(e.base())},Bo.apply(e,arguments)}function mC(){var e=M5(s1());return e.copy=function(){return Os(e,mC()).constant(e.constant())},Bo.apply(e,arguments)}function Y5(){var e=D5(s1());return e.copy=function(){return Os(e,Y5()).exponent(e.exponent())},Bo.apply(e,arguments)}function DY(){return Y5.apply(null,arguments).exponent(.5)}const IT=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Zf,scaleDiverging:pC,scaleDivergingLog:vC,scaleDivergingPow:Y5,scaleDivergingSqrt:DY,scaleDivergingSymlog:mC,scaleIdentity:K8,scaleImplicit:jx,scaleLinear:Yd,scaleLog:X8,scaleOrdinal:N5,scalePoint:Cf,scalePow:B5,scaleQuantile:Q8,scaleQuantize:eC,scaleRadial:Z8,scaleSequential:cC,scaleSequentialLog:fC,scaleSequentialPow:K5,scaleSequentialQuantile:dC,scaleSequentialSqrt:MY,scaleSequentialSymlog:hC,scaleSqrt:yK,scaleSymlog:J8,scaleThreshold:tC,scaleTime:FY,scaleUtc:RY,tickFormat:V8},Symbol.toStringTag,{value:"Module"}));var By,FT;function l1(){if(FT)return By;FT=1;var e=vc();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],l=n(s);if(l!=null&&(u===void 0?l===l&&!e(l):i(l,u)))var u=l,c=s}return c}return By=t,By}var $y,RT;function gC(){if(RT)return $y;RT=1;function e(t,r){return t>r}return $y=e,$y}var qy,MT;function BY(){if(MT)return qy;MT=1;var e=l1(),t=gC(),r=gc();function n(i){return i&&i.length?e(i,r,t):void 0}return qy=n,qy}var $Y=BY();const u1=ur($Y);var Uy,DT;function yC(){if(DT)return Uy;DT=1;function e(t,r){return t<r}return Uy=e,Uy}var zy,BT;function qY(){if(BT)return zy;BT=1;var e=l1(),t=yC(),r=gc();function n(i){return i&&i.length?e(i,r,t):void 0}return zy=n,zy}var UY=qY();const c1=ur(UY);var Wy,$T;function zY(){if($T)return Wy;$T=1;var e=f5(),t=to(),r=E8(),n=wi();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return Wy=i,Wy}var Hy,qT;function WY(){if(qT)return Hy;qT=1;var e=A8(),t=zY();function r(n,i){return e(t(n,i),1)}return Hy=r,Hy}var HY=WY();const GY=ur(HY);var Gy,UT;function VY(){if(UT)return Gy;UT=1;var e=A5();function t(r,n){return e(r,n)}return Gy=t,Gy}var KY=VY();const zh=ur(KY);var xc=1e9,YY={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},J5,Fr=!0,aa="[DecimalError] ",cl=aa+"Invalid argument: ",X5=aa+"Exponent out of range: ",bc=Math.floor,Ws=Math.pow,XY=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ri,wn=1e7,kr=7,xC=9007199254740991,Qd=bc(xC/kr),ft={};ft.absoluteValue=ft.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ft.comparedTo=ft.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};ft.decimalPlaces=ft.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};ft.dividedBy=ft.div=function(e){return Po(this,new this.constructor(e))};ft.dividedToIntegerBy=ft.idiv=function(e){var t=this,r=t.constructor;return Ar(Po(t,new r(e),0,1),r.precision)};ft.equals=ft.eq=function(e){return!this.cmp(e)};ft.exponent=function(){return on(this)};ft.greaterThan=ft.gt=function(e){return this.cmp(e)>0};ft.greaterThanOrEqualTo=ft.gte=function(e){return this.cmp(e)>=0};ft.isInteger=ft.isint=function(){return this.e>this.d.length-2};ft.isNegative=ft.isneg=function(){return this.s<0};ft.isPositive=ft.ispos=function(){return this.s>0};ft.isZero=function(){return this.s===0};ft.lessThan=ft.lt=function(e){return this.cmp(e)<0};ft.lessThanOrEqualTo=ft.lte=function(e){return this.cmp(e)<1};ft.logarithm=ft.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ri))throw Error(aa+"NaN");if(r.s<1)throw Error(aa+(r.s?"NaN":"-Infinity"));return r.eq(Ri)?new n(0):(Fr=!1,t=Po(nh(r,a),nh(e,a),a),Fr=!0,Ar(t,i))};ft.minus=ft.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_C(t,e):bC(t,(e.s=-e.s,e))};ft.modulo=ft.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(aa+"NaN");return r.s?(Fr=!1,t=Po(r,e,0,1).times(e),Fr=!0,r.minus(t)):Ar(new n(r),i)};ft.naturalExponential=ft.exp=function(){return wC(this)};ft.naturalLogarithm=ft.ln=function(){return nh(this)};ft.negated=ft.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ft.plus=ft.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?bC(t,e):_C(t,(e.s=-e.s,e))};ft.precision=ft.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(cl+e);if(t=on(i)+1,n=i.d.length-1,r=n*kr+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ft.squareRoot=ft.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(aa+"NaN")}for(e=on(s),Fr=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Ga(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=bc((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(Po(s,a,o+2)).times(.5),Ga(a.d).slice(0,o)===(t=Ga(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ar(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Fr=!0,Ar(n,r)};ft.times=ft.mul=function(e){var t,r,n,i,a,o,s,l,u,c=this,f=c.constructor,d=c.d,h=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,u=h.length,l<u&&(a=d,d=h,h=a,o=l,l=u,u=o),a=[],o=l+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%wn|0,t=s/wn|0;a[i]=(a[i]+t)%wn|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Fr?Ar(e,f.precision):e};ft.toDecimalPlaces=ft.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Ja(e,0,xc),t===void 0?t=n.rounding:Ja(t,0,8),Ar(r,e+on(r)+1,t))};ft.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ml(n,!0):(Ja(e,0,xc),t===void 0?t=i.rounding:Ja(t,0,8),n=Ar(new i(n),e+1,t),r=ml(n,!0,e+1)),r};ft.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ml(i):(Ja(e,0,xc),t===void 0?t=a.rounding:Ja(t,0,8),n=Ar(new a(i),e+on(i)+1,t),r=ml(n.abs(),!1,e+on(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ft.toInteger=ft.toint=function(){var e=this,t=e.constructor;return Ar(new t(e),on(e)+1,t.rounding)};ft.toNumber=function(){return+this};ft.toPower=ft.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(Ri);if(s=new l(s),!s.s){if(e.s<1)throw Error(aa+"Infinity");return s}if(s.eq(Ri))return s;if(n=l.precision,e.eq(Ri))return Ar(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=xC){for(i=new l(Ri),t=Math.ceil(n/kr+4),Fr=!1;r%2&&(i=i.times(s),WT(i.d,t)),r=bc(r/2),r!==0;)s=s.times(s),WT(s.d,t);return Fr=!0,e.s<0?new l(Ri).div(i):Ar(i,n)}}else if(a<0)throw Error(aa+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Fr=!1,i=e.times(nh(s,n+u)),Fr=!0,i=wC(i),i.s=a,i};ft.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=on(i),n=ml(i,r<=a.toExpNeg||r>=a.toExpPos)):(Ja(e,1,xc),t===void 0?t=a.rounding:Ja(t,0,8),i=Ar(new a(i),e,t),r=on(i),n=ml(i,e<=r||r<=a.toExpNeg,e)),n};ft.toSignificantDigits=ft.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Ja(e,1,xc),t===void 0?t=n.rounding:Ja(t,0,8)),Ar(new n(r),e,t)};ft.toString=ft.valueOf=ft.val=ft.toJSON=ft[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=on(e),r=e.constructor;return ml(e,t<=r.toExpNeg||t>=r.toExpPos)};function bC(e,t){var r,n,i,a,o,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Fr?Ar(t,f):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(f/kr),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/wn|0,l[a]%=wn;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Fr?Ar(t,f):t}function Ja(e,t,r){if(e!==~~e||e<t||e>r)throw Error(cl+e)}function Ga(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=kr-n.length,r&&(a+=as(r)),a+=n;o=e[t],n=o+"",r=kr-n.length,r&&(a+=as(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Po=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%wn|0,o=a/wn|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*wn+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,u,c,f,d,h,g,p,m,y,x,w,A,_,E,T,k,L=n.constructor,D=n.s==i.s?1:-1,C=n.d,P=i.d;if(!n.s)return new L(n);if(!i.s)throw Error(aa+"Division by zero");for(l=n.e-i.e,T=P.length,_=C.length,h=new L(D),g=h.d=[],u=0;P[u]==(C[u]||0);)++u;if(P[u]>(C[u]||0)&&--l,a==null?x=a=L.precision:o?x=a+(on(n)-on(i))+1:x=a,x<0)return new L(0);if(x=x/kr+2|0,u=0,T==1)for(c=0,P=P[0],x++;(u<_||c)&&x--;u++)w=c*wn+(C[u]||0),g[u]=w/P|0,c=w%P|0;else{for(c=wn/(P[0]+1)|0,c>1&&(P=e(P,c),C=e(C,c),T=P.length,_=C.length),A=T,p=C.slice(0,T),m=p.length;m<T;)p[m++]=0;k=P.slice(),k.unshift(0),E=P[0],P[1]>=wn/2&&++E;do c=0,s=t(P,p,T,m),s<0?(y=p[0],T!=m&&(y=y*wn+(p[1]||0)),c=y/E|0,c>1?(c>=wn&&(c=wn-1),f=e(P,c),d=f.length,m=p.length,s=t(f,p,d,m),s==1&&(c--,r(f,T<d?k:P,d))):(c==0&&(s=c=1),f=P.slice()),d=f.length,d<m&&f.unshift(0),r(p,f,m),s==-1&&(m=p.length,s=t(P,p,T,m),s<1&&(c++,r(p,T<m?k:P,m))),m=p.length):s===0&&(c++,p=[0]),g[u++]=c,s&&p[0]?p[m++]=C[A]||0:(p=[C[A]],m=1);while((A++<_||p[0]!==void 0)&&x--)}return g[0]||g.shift(),h.e=l,Ar(h,o?a+on(h)+1:a)}})();function wC(e,t){var r,n,i,a,o,s,l=0,u=0,c=e.constructor,f=c.precision;if(on(e)>16)throw Error(X5+on(e));if(!e.s)return new c(Ri);for(Fr=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Ws(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new c(Ri),c.precision=s;;){if(i=Ar(i.times(e),s),r=r.times(++l),o=a.plus(Po(i,r,s)),Ga(o.d).slice(0,s)===Ga(a.d).slice(0,s)){for(;u--;)a=Ar(a.times(a),s);return c.precision=f,t==null?(Fr=!0,Ar(a,f)):a}a=o}}function on(e){for(var t=e.e*kr,r=e.d[0];r>=10;r/=10)t++;return t}function Vy(e,t,r){if(t>e.LN10.sd())throw Fr=!0,r&&(e.precision=r),Error(aa+"LN10 precision limit exceeded");return Ar(new e(e.LN10),t)}function as(e){for(var t="";e--;)t+="0";return t}function nh(e,t){var r,n,i,a,o,s,l,u,c,f=1,d=10,h=e,g=h.d,p=h.constructor,m=p.precision;if(h.s<1)throw Error(aa+(h.s?"NaN":"-Infinity"));if(h.eq(Ri))return new p(0);if(t==null?(Fr=!1,u=m):u=t,h.eq(10))return t==null&&(Fr=!0),Vy(p,u);if(u+=d,p.precision=u,r=Ga(g),n=r.charAt(0),a=on(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Ga(h.d),n=r.charAt(0),f++;a=on(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return l=Vy(p,u+2,m).times(a+""),h=nh(new p(n+"."+r.slice(1)),u-d).plus(l),p.precision=m,t==null?(Fr=!0,Ar(h,m)):h;for(s=o=h=Po(h.minus(Ri),h.plus(Ri),u),c=Ar(h.times(h),u),i=3;;){if(o=Ar(o.times(c),u),l=s.plus(Po(o,new p(i),u)),Ga(l.d).slice(0,u)===Ga(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(Vy(p,u+2,m).times(a+""))),s=Po(s,new p(f),u),p.precision=m,t==null?(Fr=!0,Ar(s,m)):s;s=l,i+=2}}function zT(e,t){var r,n,i;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(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=bc(r/kr),e.d=[],n=(r+1)%kr,r<0&&(n+=kr),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=kr;n<i;)e.d.push(+t.slice(n,n+=kr));t=t.slice(n),n=kr-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Fr&&(e.e>Qd||e.e<-Qd))throw Error(X5+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ar(e,t,r){var n,i,a,o,s,l,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=kr,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/kr),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;n%=kr,i=n-kr+o}if(r!==void 0&&(a=Ws(10,o-i-1),s=u/a%10|0,l=t<0||f[c+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Ws(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=on(e),f.length=1,t=t-a-1,f[0]=Ws(10,(kr-t%kr)%kr),e.e=bc(-t/kr)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=Ws(10,kr-n),f[c]=i>0?(u/Ws(10,o-i)%Ws(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==wn&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=wn)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Fr&&(e.e>Qd||e.e<-Qd))throw Error(X5+on(e));return e}function _C(e,t){var r,n,i,a,o,s,l,u,c,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Fr?Ar(t,h):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(c=o<0,c?(r=l,o=-o,s=f.length):(r=f,n=u,s=l.length),i=Math.max(Math.ceil(h/kr),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,c=i<s,c&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,i=f.length-s;i>0;--i)l[s++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=wn-1;--l[a],l[i]+=wn}l[i]-=f[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Fr?Ar(t,h):t):new d(0)}function ml(e,t,r){var n,i=on(e),a=Ga(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+as(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+as(-i-1)+a,r&&(n=r-o)>0&&(a+=as(n))):i>=o?(a+=as(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+as(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=as(n))),e.s<0?"-"+a:a}function WT(e,t){if(e.length>t)return e.length=t,!0}function SC(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(cl+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return zT(o,a.toString())}else if(typeof a!="string")throw Error(cl+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,XY.test(a))zT(o,a);else throw Error(cl+a)}if(i.prototype=ft,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=SC,i.config=i.set=JY,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 i.config(e),i}function JY(e){if(!e||typeof e!="object")throw Error(aa+"Object expected");var t,r,n,i=["precision",1,xc,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(bc(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(cl+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(cl+r+": "+n);return this}var J5=SC(YY);Ri=new J5(1);const xr=J5;function ZY(e){return rX(e)||tX(e)||eX(e)||QY()}function QY(){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 eX(e,t){if(e){if(typeof e=="string")return Fx(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 Fx(e,t)}}function tX(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function rX(e){if(Array.isArray(e))return Fx(e)}function Fx(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 nX=function(t){return t},AC={},TC=function(t){return t===AC},HT=function(t){return function r(){return arguments.length===0||arguments.length===1&&TC(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},iX=function e(t,r){return t===1?r:HT(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==AC}).length;return o>=t?r.apply(void 0,i):e(t-o,HT(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var c=i.map(function(f){return TC(f)?l.shift():f});return r.apply(void 0,ZY(c).concat(l))}))})},f1=function(t){return iX(t.length,t)},Rx=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},aX=f1(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),oX=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return nX;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},Mx=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},EC=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function sX(e){var t;return e===0?t=1:t=Math.floor(new xr(e).abs().log(10).toNumber())+1,t}function lX(e,t,r){for(var n=new xr(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var uX=f1(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),cX=f1(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),fX=f1(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const h1={rangeStep:lX,getDigitCount:sX,interpolateNumber:uX,uninterpolateNumber:cX,uninterpolateTruncation:fX};function Dx(e){return pX(e)||dX(e)||OC(e)||hX()}function hX(){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 dX(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function pX(e){if(Array.isArray(e))return Bx(e)}function ih(e,t){return gX(e)||mX(e,t)||OC(e,t)||vX()}function vX(){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 OC(e,t){if(e){if(typeof e=="string")return Bx(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 Bx(e,t)}}function Bx(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 mX(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=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){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function gX(e){if(Array.isArray(e))return e}function PC(e){var t=ih(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function NC(e,t,r){if(e.lte(0))return new xr(0);var n=h1.getDigitCount(e.toNumber()),i=new xr(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new xr(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new xr(Math.ceil(l))}function yX(e,t,r){var n=1,i=new xr(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new xr(10).pow(h1.getDigitCount(e)-1),i=new xr(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new xr(Math.floor(e)))}else e===0?i=new xr(Math.floor((t-1)/2)):r||(i=new xr(Math.floor(e)));var o=Math.floor((t-1)/2),s=oX(aX(function(l){return i.add(new xr(l-o).mul(n)).toNumber()}),Rx);return s(0,t)}function CC(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new xr(0),tickMin:new xr(0),tickMax:new xr(0)};var a=NC(new xr(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new xr(0):(o=new xr(e).add(t).div(2),o=o.sub(new xr(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new xr(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?CC(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new xr(s).mul(a)),tickMax:o.add(new xr(l).mul(a))})}function xX(e){var t=ih(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=PC([r,n]),l=ih(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(Dx(Rx(0,i-1).map(function(){return 1/0}))):[].concat(Dx(Rx(0,i-1).map(function(){return-1/0})),[c]);return r>n?Mx(f):f}if(u===c)return yX(u,i,a);var d=CC(u,c,o,a),h=d.step,g=d.tickMin,p=d.tickMax,m=h1.rangeStep(g,p.add(new xr(.1).mul(h)),h);return r>n?Mx(m):m}function bX(e,t){var r=ih(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=PC([n,i]),s=ih(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var c=Math.max(t,2),f=NC(new xr(u).sub(l).div(c-1),a,0),d=[].concat(Dx(h1.rangeStep(new xr(l),new xr(u).sub(new xr(.99).mul(f)),f)),[u]);return n>i?Mx(d):d}var wX=EC(xX),_X=EC(bX),SX=process.env.NODE_ENV==="production",Ky="Invariant failed";function mi(e,t){if(SX)throw new Error(Ky);var r=typeof t=="function"?t():t,n=r?"".concat(Ky,": ").concat(r):Ky;throw new Error(n)}var AX=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Wu(e){"@babel/helpers - typeof";return Wu=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},Wu(e)}function ep(){return ep=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},ep.apply(this,arguments)}function TX(e,t){return NX(e)||PX(e,t)||OX(e,t)||EX()}function EX(){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 OX(e,t){if(e){if(typeof e=="string")return GT(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 GT(e,t)}}function GT(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 PX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function NX(e){if(Array.isArray(e))return e}function CX(e,t){if(e==null)return{};var r=jX(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jX(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 kX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LX(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,LC(n.key),n)}}function IX(e,t,r){return t&&LX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FX(e,t,r){return t=tp(t),RX(e,jC()?Reflect.construct(t,r||[],tp(e).constructor):t.apply(e,r))}function RX(e,t){if(t&&(Wu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MX(e)}function MX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jC=function(){return!!e})()}function tp(e){return tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tp(e)}function DX(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&&$x(e,t)}function $x(e,t){return $x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$x(e,t)}function kC(e,t,r){return t=LC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LC(e){var t=BX(e,"string");return Wu(t)=="symbol"?t:t+""}function BX(e,t){if(Wu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Wh=(function(e){function t(){return kX(this,t),FX(this,t,arguments)}return DX(t,e),IX(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,c=n.xAxis,f=n.yAxis,d=CX(n,AX),h=gt(d,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?mi(!1,'ErrorBar requires Axis type property to be "number".'):mi());var g=l.map(function(p){var m=u(p,s),y=m.x,x=m.y,w=m.value,A=m.errorVal;if(!A)return null;var _=[],E,T;if(Array.isArray(A)){var k=TX(A,2);E=k[0],T=k[1]}else E=T=A;if(a==="vertical"){var L=c.scale,D=x+i,C=D+o,P=D-o,M=L(w-E),q=L(w+T);_.push({x1:q,y1:C,x2:q,y2:P}),_.push({x1:M,y1:D,x2:q,y2:D}),_.push({x1:M,y1:C,x2:M,y2:P})}else if(a==="horizontal"){var J=f.scale,U=y+i,H=U-o,ee=U+o,Z=J(w-E),Q=J(w+T);_.push({x1:H,y1:Q,x2:ee,y2:Q}),_.push({x1:U,y1:Z,x2:U,y2:Q}),_.push({x1:H,y1:Z,x2:ee,y2:Z})}return V.createElement(or,ep({className:"recharts-errorBar",key:"bar-".concat(_.map(function(le){return"".concat(le.x1,"-").concat(le.x2,"-").concat(le.y1,"-").concat(le.y2)}))},h),_.map(function(le){return V.createElement("line",ep({},le,{key:"line-".concat(le.x1,"-").concat(le.x2,"-").concat(le.y1,"-").concat(le.y2)}))}))});return V.createElement(or,{className:"recharts-errorBars"},g)}}])})(V.Component);kC(Wh,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});kC(Wh,"displayName","ErrorBar");function ah(e){"@babel/helpers - typeof";return ah=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},ah(e)}function VT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VT(Object(r),!0).forEach(function(n){$X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $X(e,t,r){return t=qX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qX(e){var t=UX(e,"string");return ah(t)=="symbol"?t:t+""}function UX(e,t){if(ah(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ah(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var IC=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=ki(r,ll);if(!o)return null;var s=ll.defaultProps,l=s!==void 0?Bs(Bs({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(c,f){var d=f.item,h=f.props,g=h.sectors||h.data||[];return c.concat(g.map(function(p){return{type:o.props.iconType||d.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):u=(n||[]).map(function(c){var f=c.item,d=f.type.defaultProps,h=d!==void 0?Bs(Bs({},d),f.props):{},g=h.dataKey,p=h.name,m=h.legendType,y=h.hide;return{inactive:y,dataKey:g,type:l.iconType||m||"square",color:Z5(f),value:p||g,payload:h}}),Bs(Bs(Bs({},l),ll.getWithHeight(o,i)),{},{payload:u,item:o})};function oh(e){"@babel/helpers - typeof";return oh=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},oh(e)}function KT(e){return GX(e)||HX(e)||WX(e)||zX()}function zX(){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 WX(e,t){if(e){if(typeof e=="string")return qx(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 qx(e,t)}}function HX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GX(e){if(Array.isArray(e))return qx(e)}function qx(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 YT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YT(Object(r),!0).forEach(function(n){Tu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tu(e,t,r){return t=VX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VX(e){var t=KX(e,"string");return oh(t)=="symbol"?t:t+""}function KX(e,t){if(oh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oi(e,t,r){return Bt(e)||Bt(t)?r:mn(t)?na(e,t,r):Et(t)?t(e):r}function jf(e,t,r,n){var i=GY(e,function(s){return oi(s,t)});if(r==="number"){var a=i.filter(function(s){return nt(s)||parseFloat(s)});return a.length?[c1(a),u1(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!Bt(s)}):i;return o.map(function(s){return mn(s)||s instanceof Date?s:""})}var YX=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=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(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u<s;u++){var c=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,h=void 0;if(Pa(f-c)!==Pa(d-f)){var g=[];if(Pa(d-f)===Pa(l[1]-l[0])){h=d;var p=f+l[1]-l[0];g[0]=Math.min(p,(p+c)/2),g[1]=Math.max(p,(p+c)/2)}else{h=c;var m=d+l[1]-l[0];g[0]=Math.min(f,(m+f)/2),g[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>=g[0]&&t<=g[1]){o=i[u].index;break}}else{var x=Math.min(c,d),w=Math.max(c,d);if(t>(x+f)/2&&t<=(w+f)/2){o=i[u].index;break}}}else for(var A=0;A<s;A++)if(A===0&&t<=(n[A].coordinate+n[A+1].coordinate)/2||A>0&&A<s-1&&t>(n[A].coordinate+n[A-1].coordinate)/2&&t<=(n[A].coordinate+n[A+1].coordinate)/2||A===s-1&&t>(n[A].coordinate+n[A-1].coordinate)/2){o=n[A].index;break}return o},Z5=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ur(Ur({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},XX=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l<u;l++)for(var c=a[s[l]].stackGroups,f=Object.keys(c),d=0,h=f.length;d<h;d++){var g=c[f[d]],p=g.items,m=g.cateAxisId,y=p.filter(function(T){return Eo(T.type).indexOf("Bar")>=0});if(y&&y.length){var x=y[0].type.defaultProps,w=x!==void 0?Ur(Ur({},x),y[0].props):y[0].props,A=w.barSize,_=w[m];o[_]||(o[_]=[]);var E=Bt(A)?r:A;o[_].push({item:y[0],stackList:y.slice(1),barSize:Bt(E)?void 0:Na(E,n,0)})}}return o},JX=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=Na(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/l,g=o.reduce(function(A,_){return A+_.barSize||0},0);g+=(l-1)*u,g>=i&&(g-=(l-1)*u,u=0),g>=i&&h>0&&(d=!0,h*=.9,g=l*h);var p=(i-g)/2>>0,m={offset:p-u,size:0};c=o.reduce(function(A,_){var E={item:_.item,position:{offset:m.offset+m.size+u,size:d?h:_.barSize}},T=[].concat(KT(A),[E]);return m=T[T.length-1].position,_.stackList&&_.stackList.length&&_.stackList.forEach(function(k){T.push({item:k,position:m})}),T},f)}else{var y=Na(n,i,0,!0);i-2*y-(l-1)*u<=0&&(u=0);var x=(i-2*y-(l-1)*u)/l;x>1&&(x>>=0);var w=s===+s?Math.min(x,s):x;c=o.reduce(function(A,_,E){var T=[].concat(KT(A),[{item:_.item,position:{offset:y+(x+u)*E+(x-w)/2,size:w}}]);return _.stackList&&_.stackList.length&&_.stackList.forEach(function(k){T.push({item:k,position:T[T.length-1].position})}),T},f)}return c},ZX=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=IC({children:a,legendWidth:l});if(u){var c=i||{},f=c.width,d=c.height,h=u.align,g=u.verticalAlign,p=u.layout;if((p==="vertical"||p==="horizontal"&&g==="middle")&&h!=="center"&&nt(t[h]))return Ur(Ur({},t),{},Tu({},h,t[h]+(f||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&g!=="middle"&&nt(t[g]))return Ur(Ur({},t),{},Tu({},g,t[g]+(d||0)))}return t},QX=function(t,r,n){return Bt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},FC=function(t,r,n,i,a){var o=r.props.children,s=ia(o,Wh).filter(function(u){return QX(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=oi(c,n);if(Bt(f))return u;var d=Array.isArray(f)?[c1(f),u1(f)]:[f,f],h=l.reduce(function(g,p){var m=oi(c,p,0),y=d[0]-Math.abs(Array.isArray(m)?m[0]:m),x=d[1]+Math.abs(Array.isArray(m)?m[1]:m);return[Math.min(y,g[0]),Math.max(x,g[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},eJ=function(t,r,n,i,a){var o=r.map(function(s){return FC(t,s,n,a,i)}).filter(function(s){return!Bt(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},RC=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&FC(t,l,u,i)||jf(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var c=0,f=u.length;c<f;c++)s[u[c]]||(s[u[c]]=!0,l.push(u[c]));return l},[])},MC=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},DC=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},_o=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Pa(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return c.filter(function(f){return!Rh(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:a?a[f]:f,index:d,offset:u}})},Yy=new WeakMap,id=function(t,r){if(typeof r!="function")return t;Yy.has(t)||Yy.set(t,new WeakMap);var n=Yy.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},BC=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Zf(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Yd(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Cf(),realScaleType:"point"}:a==="category"?{scale:Zf(),realScaleType:"band"}:{scale:Yd(),realScaleType:"linear"};if(vl(i)){var l="scale".concat(Yp(i));return{scale:(IT[l]||Cf)(),realScaleType:IT[l]?l:"point"}}return Et(i)?{scale:i}:{scale:Cf(),realScaleType:"point"}},XT=1e-4,$C=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-XT,o=Math.max(i[0],i[1])+XT,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},tJ=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},rJ=function(t,r){if(!r||r.length!==2||!nt(r[0])||!nt(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!nt(t[0])||t[0]<n)&&(a[0]=n),(!nt(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},nJ=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=Rh(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},iJ=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=Rh(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},aJ={sign:nJ,expand:Gz,none:Fu,silhouette:Vz,wiggle:Kz,positive:iJ},oJ=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=aJ[n],o=Hz().keys(i).value(function(s,l){return+oi(s,l,0)}).order(gx).offset(a);return o(t)},sJ=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(f,d){var h,g=(h=d.type)!==null&&h!==void 0&&h.defaultProps?Ur(Ur({},d.type.defaultProps),d.props):d.props,p=g.stackId,m=g.hide;if(m)return f;var y=g[n],x=f[y]||{hasStack:!1,stackGroups:{}};if(mn(p)){var w=x.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(d),x.hasStack=!0,x.stackGroups[p]=w}else x.stackGroups[Mh("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Ur(Ur({},f),{},Tu({},y,x))},l),c={};return Object.keys(u).reduce(function(f,d){var h=u[d];if(h.hasStack){var g={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,m){var y=h.stackGroups[m];return Ur(Ur({},p),{},Tu({},m,{numericAxisId:n,cateAxisId:i,items:y.items,stackedData:oJ(t,y.items,a)}))},g)}return Ur(Ur({},f),{},Tu({},d,h))},c)},qC=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=wX(u,a,s);return t.domain([c1(c),u1(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),d=_X(f,a,s);return{niceTicks:d}}return null};function JT(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Bt(i[t.dataKey])){var s=Cd(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=oi(i,Bt(o)?t.dataKey:o);return Bt(l)?null:t.scale(l)}var ZT=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=oi(o,r.dataKey,r.domain[s]);return Bt(l)?null:r.scale(l)-a/2+i},lJ=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},uJ=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ur(Ur({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(mn(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},cJ=function(t){return t.reduce(function(r,n){return[c1(n.concat([r[0]]).filter(nt)),u1(n.concat([r[1]]).filter(nt))]},[1/0,-1/0])},UC=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,c){var f=cJ(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},QT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,eE=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ux=function(t,r,n){if(Et(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(nt(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(QT.test(t[0])){var a=+QT.exec(t[0])[1];i[0]=r[0]-a}else Et(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(nt(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(eE.test(t[1])){var o=+eE.exec(t[1])[1];i[1]=r[1]+o}else Et(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},rp=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=E5(r,function(f){return f.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var u=a[s],c=a[s-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},tE=function(t,r,n){return!t||!t.length||zh(t,na(n,"type.defaultProps.domain"))?r:t},zC=function(t,r){var n=t.type.defaultProps?Ur(Ur({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,c=n.hide;return Ur(Ur({},gt(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:Z5(t),value:oi(r,i),type:l,payload:r,chartType:u,hide:c})};function sh(e){"@babel/helpers - typeof";return sh=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},sh(e)}function rE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function go(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){WC(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 WC(e,t,r){return t=fJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fJ(e){var t=hJ(e,"string");return sh(t)=="symbol"?t:t+""}function hJ(e,t){if(sh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dJ(e,t){return gJ(e)||mJ(e,t)||vJ(e,t)||pJ()}function pJ(){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 vJ(e,t){if(e){if(typeof e=="string")return nE(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 nE(e,t)}}function nE(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 mJ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function gJ(e){if(Array.isArray(e))return e}var np=Math.PI/180,yJ=function(t){return t*180/Math.PI},br=function(t,r,n,i){return{x:t+Math.cos(-np*i)*n,y:r+Math.sin(-np*i)*n}},xJ=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},bJ=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.startAngle,u=t.endAngle,c=Na(t.cx,o,o/2),f=Na(t.cy,s,s/2),d=xJ(o,s,n),h=Na(t.innerRadius,d,0),g=Na(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(m,y){var x=r[y],w=x.domain,A=x.reversed,_;if(Bt(x.range))i==="angleAxis"?_=[l,u]:i==="radiusAxis"&&(_=[h,g]),A&&(_=[_[1],_[0]]);else{_=x.range;var E=_,T=dJ(E,2);l=T[0],u=T[1]}var k=BC(x,a),L=k.realScaleType,D=k.scale;D.domain(w).range(_),$C(D);var C=qC(D,go(go({},x),{},{realScaleType:L})),P=go(go(go({},x),C),{},{range:_,radius:g,realScaleType:L,scale:D,cx:c,cy:f,innerRadius:h,outerRadius:g,startAngle:l,endAngle:u});return go(go({},m),{},WC({},y,P))},{})},wJ=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},_J=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=wJ({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:yJ(u),angleInRadian:u}},SJ=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},AJ=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},iE=function(t,r){var n=t.x,i=t.y,a=_J({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var c=SJ(r),f=c.startAngle,d=c.endAngle,h=s,g;if(f<=d){for(;h>d;)h-=360;for(;h<f;)h+=360;g=h>=f&&h<=d}else{for(;h>f;)h-=360;for(;h<d;)h+=360;g=h>=d&&h<=f}return g?go(go({},r),{},{radius:o,angle:AJ(h,r)}):null},HC=function(t){return!V.isValidElement(t)&&!Et(t)&&typeof t!="boolean"?t.className:""};function lh(e){"@babel/helpers - typeof";return lh=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},lh(e)}var TJ=["offset"];function EJ(e){return CJ(e)||NJ(e)||PJ(e)||OJ()}function OJ(){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 PJ(e,t){if(e){if(typeof e=="string")return zx(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 zx(e,t)}}function NJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CJ(e){if(Array.isArray(e))return zx(e)}function zx(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 jJ(e,t){if(e==null)return{};var r=kJ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kJ(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 aE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hn(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){LJ(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 LJ(e,t,r){return t=IJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IJ(e){var t=FJ(e,"string");return lh(t)=="symbol"?t:t+""}function FJ(e,t){if(lh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uh(){return uh=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},uh.apply(this,arguments)}var RJ=function(t){var r=t.value,n=t.formatter,i=Bt(t.children)?r:t.children;return Et(n)?n(i):i},MJ=function(t,r){var n=Pa(r-t),i=Math.min(Math.abs(r-t),360);return n*i},DJ=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,u=l.cx,c=l.cy,f=l.innerRadius,d=l.outerRadius,h=l.startAngle,g=l.endAngle,p=l.clockWise,m=(f+d)/2,y=MJ(h,g),x=y>=0?1:-1,w,A;i==="insideStart"?(w=h+x*o,A=p):i==="insideEnd"?(w=g-x*o,A=!p):i==="end"&&(w=g+x*o,A=p),A=y<=0?A:!A;var _=br(u,c,m,w),E=br(u,c,m,w+(A?1:-1)*359),T="M".concat(_.x,",").concat(_.y,`
|
|
382
|
-
A`).concat(m,",").concat(m,",0,1,").concat(A?0:1,`,
|
|
383
|
-
`).concat(E.x,",").concat(E.y),k=Bt(t.id)?Mh("recharts-radial-line-"):t.id;return V.createElement("text",uh({},n,{dominantBaseline:"central",className:kt("recharts-radial-bar-label",s)}),V.createElement("defs",null,V.createElement("path",{id:k,d:T})),V.createElement("textPath",{xlinkHref:"#".concat(k)},r))},BJ=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,c=a.startAngle,f=a.endAngle,d=(c+f)/2;if(i==="outside"){var h=br(o,s,u+n,d),g=h.x,p=h.y;return{x:g,y:p,textAnchor:g>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var m=(l+u)/2,y=br(o,s,m,d),x=y.x,w=y.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},$J=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,c=o.height,f=c>=0?1:-1,d=f*i,h=f>0?"end":"start",g=f>0?"start":"end",p=u>=0?1:-1,m=p*i,y=p>0?"end":"start",x=p>0?"start":"end";if(a==="top"){var w={x:s+u/2,y:l-f*i,textAnchor:"middle",verticalAnchor:h};return hn(hn({},w),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var A={x:s+u/2,y:l+c+d,textAnchor:"middle",verticalAnchor:g};return hn(hn({},A),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(a==="left"){var _={x:s-m,y:l+c/2,textAnchor:y,verticalAnchor:"middle"};return hn(hn({},_),n?{width:Math.max(_.x-n.x,0),height:c}:{})}if(a==="right"){var E={x:s+u+m,y:l+c/2,textAnchor:x,verticalAnchor:"middle"};return hn(hn({},E),n?{width:Math.max(n.x+n.width-E.x,0),height:c}:{})}var T=n?{width:u,height:c}:{};return a==="insideLeft"?hn({x:s+m,y:l+c/2,textAnchor:x,verticalAnchor:"middle"},T):a==="insideRight"?hn({x:s+u-m,y:l+c/2,textAnchor:y,verticalAnchor:"middle"},T):a==="insideTop"?hn({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:g},T):a==="insideBottom"?hn({x:s+u/2,y:l+c-d,textAnchor:"middle",verticalAnchor:h},T):a==="insideTopLeft"?hn({x:s+m,y:l+d,textAnchor:x,verticalAnchor:g},T):a==="insideTopRight"?hn({x:s+u-m,y:l+d,textAnchor:y,verticalAnchor:g},T):a==="insideBottomLeft"?hn({x:s+m,y:l+c-d,textAnchor:x,verticalAnchor:h},T):a==="insideBottomRight"?hn({x:s+u-m,y:l+c-d,textAnchor:y,verticalAnchor:h},T):mc(a)&&(nt(a.x)||Ks(a.x))&&(nt(a.y)||Ks(a.y))?hn({x:s+Na(a.x,u),y:l+Na(a.y,c),textAnchor:"end",verticalAnchor:"end"},T):hn({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},T)},qJ=function(t){return"cx"in t&&nt(t.cx)};function jn(e){var t=e.offset,r=t===void 0?5:t,n=jJ(e,TJ),i=hn({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,c=i.className,f=c===void 0?"":c,d=i.textBreakAll;if(!a||Bt(s)&&Bt(l)&&!V.isValidElement(u)&&!Et(u))return null;if(V.isValidElement(u))return V.cloneElement(u,i);var h;if(Et(u)){if(h=V.createElement(u,i),V.isValidElement(h))return h}else h=RJ(i);var g=qJ(a),p=gt(i,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return DJ(i,h,p);var m=g?BJ(i):$J(i);return V.createElement($u,uh({className:kt("recharts-label",f)},p,m,{breakAll:d}),h)}jn.displayName="Label";var GC=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,h=t.top,g=t.left,p=t.width,m=t.height,y=t.clockWise,x=t.labelViewBox;if(x)return x;if(nt(p)&&nt(m)){if(nt(f)&&nt(d))return{x:f,y:d,width:p,height:m};if(nt(h)&&nt(g))return{x:h,y:g,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:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},UJ=function(t,r){return t?t===!0?V.createElement(jn,{key:"label-implicit",viewBox:r}):mn(t)?V.createElement(jn,{key:"label-implicit",viewBox:r,value:t}):V.isValidElement(t)?t.type===jn?V.cloneElement(t,{key:"label-implicit",viewBox:r}):V.createElement(jn,{key:"label-implicit",content:t,viewBox:r}):Et(t)?V.createElement(jn,{key:"label-implicit",content:t,viewBox:r}):mc(t)?V.createElement(jn,uh({viewBox:r},t,{key:"label-implicit"})):null:null},zJ=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 i=t.children,a=GC(t),o=ia(i,jn).map(function(l,u){return V.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=UJ(t.label,r||a);return[s].concat(EJ(o))};jn.parseViewBox=GC;jn.renderCallByParent=zJ;var Xy,oE;function WJ(){if(oE)return Xy;oE=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Xy=e,Xy}var HJ=WJ();const VC=ur(HJ);function ch(e){"@babel/helpers - typeof";return ch=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},ch(e)}var GJ=["valueAccessor"],VJ=["data","dataKey","clockWise","id","textBreakAll"];function KJ(e){return ZJ(e)||JJ(e)||XJ(e)||YJ()}function YJ(){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 XJ(e,t){if(e){if(typeof e=="string")return Wx(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 Wx(e,t)}}function JJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZJ(e){if(Array.isArray(e))return Wx(e)}function Wx(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 ip(){return ip=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},ip.apply(this,arguments)}function sE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lE(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){QJ(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 QJ(e,t,r){return t=eZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eZ(e){var t=tZ(e,"string");return ch(t)=="symbol"?t:t+""}function tZ(e,t){if(ch(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ch(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uE(e,t){if(e==null)return{};var r=rZ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rZ(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 nZ=function(t){return Array.isArray(t.value)?VC(t.value):t.value};function No(e){var t=e.valueAccessor,r=t===void 0?nZ:t,n=uE(e,GJ),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=uE(n,VJ);return!i||!i.length?null:V.createElement(or,{className:"recharts-label-list"},i.map(function(c,f){var d=Bt(a)?r(c,f):oi(c&&c.payload,a),h=Bt(s)?{}:{id:"".concat(s,"-").concat(f)};return V.createElement(jn,ip({},gt(c,!0),u,h,{parentViewBox:c.parentViewBox,value:d,textBreakAll:l,viewBox:jn.parseViewBox(Bt(o)?c:lE(lE({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}No.displayName="LabelList";function iZ(e,t){return e?e===!0?V.createElement(No,{key:"labelList-implicit",data:t}):V.isValidElement(e)||Et(e)?V.createElement(No,{key:"labelList-implicit",data:t,content:e}):mc(e)?V.createElement(No,ip({data:t},e,{key:"labelList-implicit"})):null:null}function aZ(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,i=ia(n,No).map(function(o,s){return V.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=iZ(e.label,t);return[a].concat(KJ(i))}No.renderCallByParent=aZ;function fh(e){"@babel/helpers - typeof";return fh=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},fh(e)}function Hx(){return Hx=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},Hx.apply(this,arguments)}function cE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cE(Object(r),!0).forEach(function(n){oZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oZ(e,t,r){return t=sZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sZ(e){var t=lZ(e,"string");return fh(t)=="symbol"?t:t+""}function lZ(e,t){if(fh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uZ=function(t,r){var n=Pa(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ad=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,c=l*(s?1:-1)+i,f=Math.asin(l/c)/np,d=u?a:a+o*f,h=br(r,n,c,d),g=br(r,n,i,d),p=u?a-o*f:a,m=br(r,n,c*Math.cos(f*np),p);return{center:h,circleTangency:g,lineTangency:m,theta:f}},KC=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=uZ(o,s),u=o+l,c=br(r,n,a,o),f=br(r,n,a,u),d="M ".concat(c.x,",").concat(c.y,`
|
|
385
|
-
A `).concat(a,",").concat(a,`,0,
|
|
386
|
-
`).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
|
|
387
|
-
`).concat(f.x,",").concat(f.y,`
|
|
388
|
-
`);if(i>0){var h=br(r,n,i,o),g=br(r,n,i,u);d+="L ".concat(g.x,",").concat(g.y,`
|
|
389
|
-
A `).concat(i,",").concat(i,`,0,
|
|
390
|
-
`).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
|
|
391
|
-
`).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},cZ=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=Pa(c-u),d=ad({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:l}),h=d.circleTangency,g=d.lineTangency,p=d.theta,m=ad({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:l}),y=m.circleTangency,x=m.lineTangency,w=m.theta,A=l?Math.abs(u-c):Math.abs(u-c)-p-w;if(A<0)return s?"M ".concat(g.x,",").concat(g.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
|
-
`):KC({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c});var _="M ".concat(g.x,",").concat(g.y,`
|
|
395
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,`
|
|
396
|
-
A`).concat(a,",").concat(a,",0,").concat(+(A>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
|
|
397
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,`
|
|
398
|
-
`);if(i>0){var E=ad({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),T=E.circleTangency,k=E.lineTangency,L=E.theta,D=ad({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),C=D.circleTangency,P=D.lineTangency,M=D.theta,q=l?Math.abs(u-c):Math.abs(u-c)-L-M;if(q<0&&o===0)return"".concat(_,"L").concat(r,",").concat(n,"Z");_+="L".concat(P.x,",").concat(P.y,`
|
|
399
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,`
|
|
400
|
-
A`).concat(i,",").concat(i,",0,").concat(+(q>180),",").concat(+(f>0),",").concat(T.x,",").concat(T.y,`
|
|
401
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,"Z")}else _+="L".concat(r,",").concat(n,"Z");return _},fZ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},YC=function(t){var r=fE(fE({},fZ),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,d=r.className;if(o<a||c===f)return null;var h=kt("recharts-sector",d),g=o-a,p=Na(s,g,0,!0),m;return p>0&&Math.abs(c-f)<360?m=cZ({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,g/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):m=KC({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),V.createElement("path",Hx({},gt(r,!0),{className:h,d:m,role:"img"}))};function hh(e){"@babel/helpers - typeof";return hh=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},hh(e)}function Gx(){return Gx=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},Gx.apply(this,arguments)}function hE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hE(Object(r),!0).forEach(function(n){hZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hZ(e,t,r){return t=dZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dZ(e){var t=pZ(e,"string");return hh(t)=="symbol"?t:t+""}function pZ(e,t){if(hh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pE={curveBasisClosed:Iz,curveBasisOpen:Fz,curveBasis:Lz,curveBumpX:xz,curveBumpY:bz,curveLinearClosed:Rz,curveLinear:Jp,curveMonotoneX:Mz,curveMonotoneY:Dz,curveNatural:Bz,curveStep:$z,curveStepAfter:Uz,curveStepBefore:qz},od=function(t){return t.x===+t.x&&t.y===+t.y},lf=function(t){return t.x},uf=function(t){return t.y},vZ=function(t,r){if(Et(t))return t;var n="curve".concat(Yp(t));return(n==="curveMonotone"||n==="curveBump")&&r?pE["".concat(n).concat(r==="vertical"?"Y":"X")]:pE[n]||Jp},mZ=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,c=vZ(n,s),f=u?a.filter(function(p){return od(p)}):a,d;if(Array.isArray(o)){var h=u?o.filter(function(p){return od(p)}):o,g=f.map(function(p,m){return dE(dE({},p),{},{base:h[m]})});return s==="vertical"?d=J0().y(uf).x1(lf).x0(function(p){return p.base.x}):d=J0().x(lf).y1(uf).y0(function(p){return p.base.y}),d.defined(od).curve(c),d(g)}return s==="vertical"&&nt(o)?d=J0().y(uf).x1(lf).x0(o):nt(o)?d=J0().x(lf).y1(uf).y0(o):d=V6().x(lf).y(uf),d.defined(od).curve(c),d(f)},Vx=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?mZ(t):i;return vn.createElement("path",Gx({},gt(t,!1),jd(t),{className:kt("recharts-curve",r),d:o,ref:a}))},sd={exports:{}},ld={exports:{}},nr={};/** @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 vE;function gZ(){if(vE)return nr;vE=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,i=e?Symbol.for("react.strict_mode"):60108,a=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,u=e?Symbol.for("react.concurrent_mode"):60111,c=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,g=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,x=e?Symbol.for("react.scope"):60119;function w(_){if(typeof _=="object"&&_!==null){var E=_.$$typeof;switch(E){case t:switch(_=_.type,_){case l:case u:case n:case a:case i:case f:return _;default:switch(_=_&&_.$$typeof,_){case s:case c:case g:case h:case o:return _;default:return E}}case r:return E}}}function A(_){return w(_)===u}return nr.AsyncMode=l,nr.ConcurrentMode=u,nr.ContextConsumer=s,nr.ContextProvider=o,nr.Element=t,nr.ForwardRef=c,nr.Fragment=n,nr.Lazy=g,nr.Memo=h,nr.Portal=r,nr.Profiler=a,nr.StrictMode=i,nr.Suspense=f,nr.isAsyncMode=function(_){return A(_)||w(_)===l},nr.isConcurrentMode=A,nr.isContextConsumer=function(_){return w(_)===s},nr.isContextProvider=function(_){return w(_)===o},nr.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},nr.isForwardRef=function(_){return w(_)===c},nr.isFragment=function(_){return w(_)===n},nr.isLazy=function(_){return w(_)===g},nr.isMemo=function(_){return w(_)===h},nr.isPortal=function(_){return w(_)===r},nr.isProfiler=function(_){return w(_)===a},nr.isStrictMode=function(_){return w(_)===i},nr.isSuspense=function(_){return w(_)===f},nr.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===u||_===a||_===i||_===f||_===d||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===h||_.$$typeof===o||_.$$typeof===s||_.$$typeof===c||_.$$typeof===m||_.$$typeof===y||_.$$typeof===x||_.$$typeof===p)},nr.typeOf=w,nr}var ir={};/** @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 mE;function yZ(){return mE||(mE=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,i=e?Symbol.for("react.strict_mode"):60108,a=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,u=e?Symbol.for("react.concurrent_mode"):60111,c=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,g=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,x=e?Symbol.for("react.scope"):60119;function w(ue){return typeof ue=="string"||typeof ue=="function"||ue===n||ue===u||ue===a||ue===i||ue===f||ue===d||typeof ue=="object"&&ue!==null&&(ue.$$typeof===g||ue.$$typeof===h||ue.$$typeof===o||ue.$$typeof===s||ue.$$typeof===c||ue.$$typeof===m||ue.$$typeof===y||ue.$$typeof===x||ue.$$typeof===p)}function A(ue){if(typeof ue=="object"&&ue!==null){var Ie=ue.$$typeof;switch(Ie){case t:var ge=ue.type;switch(ge){case l:case u:case n:case a:case i:case f:return ge;default:var _e=ge&&ge.$$typeof;switch(_e){case s:case c:case g:case h:case o:return _e;default:return Ie}}case r:return Ie}}}var _=l,E=u,T=s,k=o,L=t,D=c,C=n,P=g,M=h,q=r,J=a,U=i,H=f,ee=!1;function Z(ue){return ee||(ee=!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.")),Q(ue)||A(ue)===l}function Q(ue){return A(ue)===u}function le(ue){return A(ue)===s}function N(ue){return A(ue)===o}function I(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===t}function R(ue){return A(ue)===c}function B(ue){return A(ue)===n}function G(ue){return A(ue)===g}function ce(ue){return A(ue)===h}function he(ue){return A(ue)===r}function ne(ue){return A(ue)===a}function me(ue){return A(ue)===i}function Se(ue){return A(ue)===f}ir.AsyncMode=_,ir.ConcurrentMode=E,ir.ContextConsumer=T,ir.ContextProvider=k,ir.Element=L,ir.ForwardRef=D,ir.Fragment=C,ir.Lazy=P,ir.Memo=M,ir.Portal=q,ir.Profiler=J,ir.StrictMode=U,ir.Suspense=H,ir.isAsyncMode=Z,ir.isConcurrentMode=Q,ir.isContextConsumer=le,ir.isContextProvider=N,ir.isElement=I,ir.isForwardRef=R,ir.isFragment=B,ir.isLazy=G,ir.isMemo=ce,ir.isPortal=he,ir.isProfiler=ne,ir.isStrictMode=me,ir.isSuspense=Se,ir.isValidElementType=w,ir.typeOf=A})()),ir}var gE;function XC(){return gE||(gE=1,process.env.NODE_ENV==="production"?ld.exports=gZ():ld.exports=yZ()),ld.exports}/*
|
|
416
|
-
object-assign
|
|
417
|
-
(c) Sindre Sorhus
|
|
418
|
-
@license MIT
|
|
419
|
-
*/var Jy,yE;function xZ(){if(yE)return Jy;yE=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Jy=i()?Object.assign:function(a,o){for(var s,l=n(a),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var d=0;d<u.length;d++)r.call(s,u[d])&&(l[u[d]]=s[u[d]])}}return l},Jy}var Zy,xE;function Q5(){if(xE)return Zy;xE=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zy=e,Zy}var Qy,bE;function JC(){return bE||(bE=1,Qy=Function.call.bind(Object.prototype.hasOwnProperty)),Qy}var e2,wE;function bZ(){if(wE)return e2;wE=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Q5(),r={},n=JC();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var f;try{if(typeof a[c]!="function"){var d=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[c](o,c,l,s,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` 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=u?u():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},e2=i,e2}var t2,_E;function wZ(){if(_E)return t2;_E=1;var e=XC(),t=xZ(),r=Q5(),n=JC(),i=bZ(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return t2=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(Q){var le=Q&&(u&&Q[u]||Q[c]);if(typeof le=="function")return le}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:x(),arrayOf:w,element:A(),elementType:_(),instanceOf:E,node:D(),objectOf:k,oneOf:T,oneOfType:L,shape:P,exact:M};function g(Q,le){return Q===le?Q!==0||1/Q===1/le:Q!==Q&&le!==le}function p(Q,le){this.message=Q,this.data=le&&typeof le=="object"?le:{},this.stack=""}p.prototype=Error.prototype;function m(Q){if(process.env.NODE_ENV!=="production")var le={},N=0;function I(B,G,ce,he,ne,me,Se){if(he=he||d,me=me||ce,Se!==r){if(l){var ue=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 ue.name="Invariant Violation",ue}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ie=he+":"+ce;!le[Ie]&&N<3&&(a("You are manually calling a React.PropTypes validation function for the `"+me+"` prop on `"+he+"`. 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."),le[Ie]=!0,N++)}}return G[ce]==null?B?G[ce]===null?new p("The "+ne+" `"+me+"` is marked as required "+("in `"+he+"`, but its value is `null`.")):new p("The "+ne+" `"+me+"` is marked as required in "+("`"+he+"`, but its value is `undefined`.")):null:Q(G,ce,he,ne,me)}var R=I.bind(null,!1);return R.isRequired=I.bind(null,!0),R}function y(Q){function le(N,I,R,B,G,ce){var he=N[I],ne=U(he);if(ne!==Q){var me=H(he);return new p("Invalid "+B+" `"+G+"` of type "+("`"+me+"` supplied to `"+R+"`, expected ")+("`"+Q+"`."),{expectedType:Q})}return null}return m(le)}function x(){return m(o)}function w(Q){function le(N,I,R,B,G){if(typeof Q!="function")return new p("Property `"+G+"` of component `"+R+"` has invalid PropType notation inside arrayOf.");var ce=N[I];if(!Array.isArray(ce)){var he=U(ce);return new p("Invalid "+B+" `"+G+"` of type "+("`"+he+"` supplied to `"+R+"`, expected an array."))}for(var ne=0;ne<ce.length;ne++){var me=Q(ce,ne,R,B,G+"["+ne+"]",r);if(me instanceof Error)return me}return null}return m(le)}function A(){function Q(le,N,I,R,B){var G=le[N];if(!s(G)){var ce=U(G);return new p("Invalid "+R+" `"+B+"` of type "+("`"+ce+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return m(Q)}function _(){function Q(le,N,I,R,B){var G=le[N];if(!e.isValidElementType(G)){var ce=U(G);return new p("Invalid "+R+" `"+B+"` of type "+("`"+ce+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return m(Q)}function E(Q){function le(N,I,R,B,G){if(!(N[I]instanceof Q)){var ce=Q.name||d,he=Z(N[I]);return new p("Invalid "+B+" `"+G+"` of type "+("`"+he+"` supplied to `"+R+"`, expected ")+("instance of `"+ce+"`."))}return null}return m(le)}function T(Q){if(!Array.isArray(Q))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function le(N,I,R,B,G){for(var ce=N[I],he=0;he<Q.length;he++)if(g(ce,Q[he]))return null;var ne=JSON.stringify(Q,function(Se,ue){var Ie=H(ue);return Ie==="symbol"?String(ue):ue});return new p("Invalid "+B+" `"+G+"` of value `"+String(ce)+"` "+("supplied to `"+R+"`, expected one of "+ne+"."))}return m(le)}function k(Q){function le(N,I,R,B,G){if(typeof Q!="function")return new p("Property `"+G+"` of component `"+R+"` has invalid PropType notation inside objectOf.");var ce=N[I],he=U(ce);if(he!=="object")return new p("Invalid "+B+" `"+G+"` of type "+("`"+he+"` supplied to `"+R+"`, expected an object."));for(var ne in ce)if(n(ce,ne)){var me=Q(ce,ne,R,B,G+"."+ne,r);if(me instanceof Error)return me}return null}return m(le)}function L(Q){if(!Array.isArray(Q))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var le=0;le<Q.length;le++){var N=Q[le];if(typeof N!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ee(N)+" at index "+le+"."),o}function I(R,B,G,ce,he){for(var ne=[],me=0;me<Q.length;me++){var Se=Q[me],ue=Se(R,B,G,ce,he,r);if(ue==null)return null;ue.data&&n(ue.data,"expectedType")&&ne.push(ue.data.expectedType)}var Ie=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new p("Invalid "+ce+" `"+he+"` supplied to "+("`"+G+"`"+Ie+"."))}return m(I)}function D(){function Q(le,N,I,R,B){return q(le[N])?null:new p("Invalid "+R+" `"+B+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return m(Q)}function C(Q,le,N,I,R){return new p((Q||"React class")+": "+le+" type `"+N+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+R+"`.")}function P(Q){function le(N,I,R,B,G){var ce=N[I],he=U(ce);if(he!=="object")return new p("Invalid "+B+" `"+G+"` of type `"+he+"` "+("supplied to `"+R+"`, expected `object`."));for(var ne in Q){var me=Q[ne];if(typeof me!="function")return C(R,B,G,ne,H(me));var Se=me(ce,ne,R,B,G+"."+ne,r);if(Se)return Se}return null}return m(le)}function M(Q){function le(N,I,R,B,G){var ce=N[I],he=U(ce);if(he!=="object")return new p("Invalid "+B+" `"+G+"` of type `"+he+"` "+("supplied to `"+R+"`, expected `object`."));var ne=t({},N[I],Q);for(var me in ne){var Se=Q[me];if(n(Q,me)&&typeof Se!="function")return C(R,B,G,me,H(Se));if(!Se)return new p("Invalid "+B+" `"+G+"` key `"+me+"` supplied to `"+R+"`.\nBad object: "+JSON.stringify(N[I],null," ")+`
|
|
420
|
-
Valid keys: `+JSON.stringify(Object.keys(Q),null," "));var ue=Se(ce,me,R,B,G+"."+me,r);if(ue)return ue}return null}return m(le)}function q(Q){switch(typeof Q){case"number":case"string":case"undefined":return!0;case"boolean":return!Q;case"object":if(Array.isArray(Q))return Q.every(q);if(Q===null||s(Q))return!0;var le=f(Q);if(le){var N=le.call(Q),I;if(le!==Q.entries){for(;!(I=N.next()).done;)if(!q(I.value))return!1}else for(;!(I=N.next()).done;){var R=I.value;if(R&&!q(R[1]))return!1}}else return!1;return!0;default:return!1}}function J(Q,le){return Q==="symbol"?!0:le?le["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&le instanceof Symbol:!1}function U(Q){var le=typeof Q;return Array.isArray(Q)?"array":Q instanceof RegExp?"object":J(le,Q)?"symbol":le}function H(Q){if(typeof Q>"u"||Q===null)return""+Q;var le=U(Q);if(le==="object"){if(Q instanceof Date)return"date";if(Q instanceof RegExp)return"regexp"}return le}function ee(Q){var le=H(Q);switch(le){case"array":case"object":return"an "+le;case"boolean":case"date":case"regexp":return"a "+le;default:return le}}function Z(Q){return!Q.constructor||!Q.constructor.name?d:Q.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},t2}var r2,SE;function _Z(){if(SE)return r2;SE=1;var e=Q5();function t(){}function r(){}return r.resetWarningCache=t,r2=function(){function n(o,s,l,u,c,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 i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},r2}var AE;function SZ(){if(AE)return sd.exports;if(AE=1,process.env.NODE_ENV!=="production"){var e=XC(),t=!0;sd.exports=wZ()(e.isElement,t)}else sd.exports=_Z()();return sd.exports}var AZ=SZ();const ar=ur(AZ),{getOwnPropertyNames:TZ,getOwnPropertySymbols:EZ}=Object,{hasOwnProperty:OZ}=Object.prototype;function n2(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function ud(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);const l=e(r,n,i);return a.delete(r),a.delete(n),l}}function PZ(e){return e!=null?e[Symbol.toStringTag]:void 0}function TE(e){return TZ(e).concat(EZ(e))}const NZ=Object.hasOwn||((e,t)=>OZ.call(e,t));function Pl(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const CZ="__v",jZ="__o",kZ="_owner",{getOwnPropertyDescriptor:EE,keys:OE}=Object;function LZ(e,t){return e.byteLength===t.byteLength&&ap(new Uint8Array(e),new Uint8Array(t))}function IZ(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 FZ(e,t){return e.byteLength===t.byteLength&&ap(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function RZ(e,t){return Pl(e.getTime(),t.getTime())}function MZ(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function DZ(e,t){return e===t}function PE(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,s,l=0;for(;(o=a.next())&&!o.done;){const u=t.entries();let c=!1,f=0;for(;(s=u.next())&&!s.done;){if(i[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)){c=i[f]=!0;break}f++}if(!c)return!1;l++}return!0}const BZ=Pl;function $Z(e,t,r){const n=OE(e);let i=n.length;if(OE(t).length!==i)return!1;for(;i-- >0;)if(!ZC(e,t,r,n[i]))return!1;return!0}function cf(e,t,r){const n=TE(e);let i=n.length;if(TE(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!ZC(e,t,r,a)||(o=EE(e,a),s=EE(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function qZ(e,t){return Pl(e.valueOf(),t.valueOf())}function UZ(e,t){return e.source===t.source&&e.flags===t.flags}function NE(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const l=t.values();let u=!1,c=0;for(;(s=l.next())&&!s.done;){if(!i[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[c]=!0;break}c++}if(!u)return!1}return!0}function ap(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 zZ(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 ZC(e,t,r,n){return(n===kZ||n===jZ||n===CZ)&&(e.$$typeof||t.$$typeof)?!0:NZ(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const WZ="[object ArrayBuffer]",HZ="[object Arguments]",GZ="[object Boolean]",VZ="[object DataView]",KZ="[object Date]",YZ="[object Error]",XZ="[object Map]",JZ="[object Number]",ZZ="[object Object]",QZ="[object RegExp]",eQ="[object Set]",tQ="[object String]",rQ={"[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},nQ="[object URL]",iQ=Object.prototype.toString;function aQ({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h,unknownTagComparators:g}){return function(m,y,x){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,x):w==="function"?a(m,y,x):!1;const A=m.constructor;if(A!==y.constructor)return!1;if(A===Object)return l(m,y,x);if(Array.isArray(m))return t(m,y,x);if(A===Date)return n(m,y,x);if(A===RegExp)return c(m,y,x);if(A===Map)return o(m,y,x);if(A===Set)return f(m,y,x);const _=iQ.call(m);if(_===KZ)return n(m,y,x);if(_===QZ)return c(m,y,x);if(_===XZ)return o(m,y,x);if(_===eQ)return f(m,y,x);if(_===ZZ)return typeof m.then!="function"&&typeof y.then!="function"&&l(m,y,x);if(_===nQ)return h(m,y,x);if(_===YZ)return i(m,y,x);if(_===HZ)return l(m,y,x);if(rQ[_])return d(m,y,x);if(_===WZ)return e(m,y,x);if(_===VZ)return r(m,y,x);if(_===GZ||_===JZ||_===tQ)return u(m,y,x);if(g){let E=g[_];if(!E){const T=PZ(m);T&&(E=g[T])}if(E)return E(m,y,x)}return!1}}function oQ({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:LZ,areArraysEqual:r?cf:IZ,areDataViewsEqual:FZ,areDatesEqual:RZ,areErrorsEqual:MZ,areFunctionsEqual:DZ,areMapsEqual:r?n2(PE,cf):PE,areNumbersEqual:BZ,areObjectsEqual:r?cf:$Z,arePrimitiveWrappersEqual:qZ,areRegExpsEqual:UZ,areSetsEqual:r?n2(NE,cf):NE,areTypedArraysEqual:r?n2(ap,cf):ap,areUrlsEqual:zZ,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=ud(n.areArraysEqual),a=ud(n.areMapsEqual),o=ud(n.areObjectsEqual),s=ud(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function sQ(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function lQ({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,l){const{cache:u=e?new WeakMap:void 0,meta:c}=r();return t(s,l,{cache:u,equals:n,meta:c,strict:i})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,l){return t(s,l,a)}}const uQ=Ps();Ps({strict:!0});Ps({circular:!0});Ps({circular:!0,strict:!0});Ps({createInternalComparator:()=>Pl});Ps({strict:!0,createInternalComparator:()=>Pl});Ps({circular:!0,createInternalComparator:()=>Pl});Ps({circular:!0,createInternalComparator:()=>Pl,strict:!0});function Ps(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=oQ(e),o=aQ(a),s=r?r(o):sQ(o);return lQ({circular:t,comparator:o,createState:n,equals:s,strict:i})}function cQ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function CE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):cQ(i)};requestAnimationFrame(n)}function Kx(e){"@babel/helpers - typeof";return Kx=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},Kx(e)}function fQ(e){return vQ(e)||pQ(e)||dQ(e)||hQ()}function hQ(){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 dQ(e,t){if(e){if(typeof e=="string")return jE(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 jE(e,t)}}function jE(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 pQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vQ(e){if(Array.isArray(e))return e}function mQ(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=fQ(o),l=s[0],u=s.slice(1);if(typeof l=="number"){CE(i.bind(null,u),l);return}i(l),CE(i.bind(null,u));return}Kx(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function dh(e){"@babel/helpers - typeof";return dh=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},dh(e)}function kE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function LE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kE(Object(r),!0).forEach(function(n){QC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QC(e,t,r){return t=gQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gQ(e){var t=yQ(e,"string");return dh(t)==="symbol"?t:String(t)}function yQ(e,t){if(dh(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dh(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xQ=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},bQ=function(t){return t},wQ=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},kf=function(t,r){return Object.keys(r).reduce(function(n,i){return LE(LE({},n),{},QC({},i,t(i,r[i])))},{})},IE=function(t,r,n){return t.map(function(i){return"".concat(wQ(i)," ").concat(r,"ms ").concat(n)}).join(",")},_Q=process.env.NODE_ENV!=="production",op=function(t,r,n,i,a,o,s,l){if(_Q&&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 u=[n,i,a,o,s,l],c=0;console.warn(r.replace(/%s/g,function(){return u[c++]}))}};function SQ(e,t){return EQ(e)||TQ(e,t)||ej(e,t)||AQ()}function AQ(){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 TQ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function EQ(e){if(Array.isArray(e))return e}function OQ(e){return CQ(e)||NQ(e)||ej(e)||PQ()}function PQ(){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 ej(e,t){if(e){if(typeof e=="string")return Yx(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 Yx(e,t)}}function NQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CQ(e){if(Array.isArray(e))return Yx(e)}function Yx(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 sp=1e-4,tj=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},rj=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},FE=function(t,r){return function(n){var i=tj(t,r);return rj(i,n)}},jQ=function(t,r){return function(n){var i=tj(t,r),a=[].concat(OQ(i.map(function(o,s){return o*s}).slice(1)),[0]);return rj(a,n)}},RE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=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 u=l[1].split(")")[0].split(",").map(function(m){return parseFloat(m)}),c=SQ(u,4);i=c[0],a=c[1],o=c[2],s=c[3]}else op(!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)}}op([i,o,a,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=FE(i,o),d=FE(a,s),h=jQ(i,o),g=function(y){return y>1?1:y<0?0:y},p=function(y){for(var x=y>1?1:y,w=x,A=0;A<8;++A){var _=f(w)-x,E=h(w);if(Math.abs(_-x)<sp||E<sp)return d(w);w=g(w-_/E)}return d(w)};return p.isStepper=!1,p},kQ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(c,f,d){var h=-(c-f)*n,g=d*a,p=d+(h-g)*s/1e3,m=d*s/1e3+c;return Math.abs(m-f)<sp&&Math.abs(p)<sp?[f,0]:[m,p]};return l.isStepper=!0,l.dt=s,l},LQ=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return RE(i);case"spring":return kQ();default:if(i.split("(")[0]==="cubic-bezier")return RE(i);op(!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 i=="function"?i:(op(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function ph(e){"@babel/helpers - typeof";return ph=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},ph(e)}function ME(e){return RQ(e)||FQ(e)||nj(e)||IQ()}function IQ(){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 FQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RQ(e){if(Array.isArray(e))return Jx(e)}function DE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?DE(Object(r),!0).forEach(function(n){Xx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xx(e,t,r){return t=MQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MQ(e){var t=DQ(e,"string");return ph(t)==="symbol"?t:String(t)}function DQ(e,t){if(ph(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ph(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BQ(e,t){return UQ(e)||qQ(e,t)||nj(e,t)||$Q()}function $Q(){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 nj(e,t){if(e){if(typeof e=="string")return Jx(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 Jx(e,t)}}function Jx(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 qQ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function UQ(e){if(Array.isArray(e))return e}var lp=function(t,r,n){return t+(r-t)*n},Zx=function(t){var r=t.from,n=t.to;return r!==n},zQ=function e(t,r,n){var i=kf(function(a,o){if(Zx(o)){var s=t(o.from,o.to,o.velocity),l=BQ(s,2),u=l[0],c=l[1];return Nn(Nn({},o),{},{from:u,velocity:c})}return o},r);return n<1?kf(function(a,o){return Zx(o)?Nn(Nn({},o),{},{velocity:lp(o.velocity,i[a].velocity,n),from:lp(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const WQ=(function(e,t,r,n,i){var a=xQ(e,t),o=a.reduce(function(m,y){return Nn(Nn({},m),{},Xx({},y,[e[y],t[y]]))},{}),s=a.reduce(function(m,y){return Nn(Nn({},m),{},Xx({},y,{from:e[y],velocity:0,to:t[y]}))},{}),l=-1,u,c,f=function(){return null},d=function(){return kf(function(y,x){return x.from},s)},h=function(){return!Object.values(s).filter(Zx).length},g=function(y){u||(u=y);var x=y-u,w=x/r.dt;s=zQ(r,s,w),i(Nn(Nn(Nn({},e),t),d())),u=y,h()||(l=requestAnimationFrame(f))},p=function(y){c||(c=y);var x=(y-c)/n,w=kf(function(_,E){return lp.apply(void 0,ME(E).concat([r(x)]))},o);if(i(Nn(Nn(Nn({},e),t),w)),x<1)l=requestAnimationFrame(f);else{var A=kf(function(_,E){return lp.apply(void 0,ME(E).concat([r(1)]))},o);i(Nn(Nn(Nn({},e),t),A))}};return f=r.isStepper?g:p,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}});function Hu(e){"@babel/helpers - typeof";return Hu=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},Hu(e)}var HQ=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function GQ(e,t){if(e==null)return{};var r=VQ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function i2(e){return JQ(e)||XQ(e)||YQ(e)||KQ()}function KQ(){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 YQ(e,t){if(e){if(typeof e=="string")return Qx(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 Qx(e,t)}}function XQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JQ(e){if(Array.isArray(e))return Qx(e)}function Qx(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 BE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ba(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BE(Object(r),!0).forEach(function(n){mf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mf(e,t,r){return t=ij(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QQ(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,ij(n.key),n)}}function eee(e,t,r){return t&&QQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ij(e){var t=tee(e,"string");return Hu(t)==="symbol"?t:String(t)}function tee(e,t){if(Hu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ree(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&&eb(e,t)}function eb(e,t){return eb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eb(e,t)}function nee(e){var t=iee();return function(){var n=up(e),i;if(t){var a=up(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return tb(this,i)}}function tb(e,t){if(t&&(Hu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rb(e)}function rb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iee(){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 up(e){return up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},up(e)}var Za=(function(e){ree(r,e);var t=nee(r);function r(n,i){var a;ZQ(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,f=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(rb(a)),a.changeStyle=a.changeStyle.bind(rb(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:c}),tb(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof d=="function")return a.state={style:u},tb(a);a.state={style:l?mf({},l,u):u}}else a.state={style:{}};return a}return eee(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,c=a.to,f=a.from,d=this.state.style;if(s){if(!o){var h={style:l?mf({},l,c):c};this.state&&d&&(l&&d[l]!==c||!l&&d!==c)&&this.setState(h);return}if(!(uQ(i.to,c)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=g||u?f:i.to;if(this.state&&d){var m={style:l?mf({},l,p):p};(l&&d[l]!==p||!l&&d!==p)&&this.setState(m)}this.runAnimation(ba(ba({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=WQ(o,s,LQ(u),l,this.changeStyle),g=function(){a.stopJSAnimation=h()};this.manager.start([d,c,g,l,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],c=u.style,f=u.duration,d=f===void 0?0:f,h=function(p,m,y){if(y===0)return p;var x=m.duration,w=m.easing,A=w===void 0?"ease":w,_=m.style,E=m.properties,T=m.onAnimationEnd,k=y>0?o[y-1]:m,L=E||Object.keys(_);if(typeof A=="function"||A==="spring")return[].concat(i2(p),[a.runJSAnimation.bind(a,{from:k.style,to:_,duration:x,easing:A}),x]);var D=IE(L,x,A),C=ba(ba(ba({},k.style),_),{},{transition:D});return[].concat(i2(p),[C,x,T]).filter(bQ)};return this.manager.start([l].concat(i2(o.reduce(h,[c,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=mQ());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=s?mf({},s,l):l,m=IE(Object.keys(p),o,u);g.start([c,a,ba(ba({},p),{},{transition:m}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=GQ(i,HQ),u=V.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!s||u===0||o<=0)return a;var f=function(h){var g=h.props,p=g.style,m=p===void 0?{}:p,y=g.className,x=V.cloneElement(h,ba(ba({},l),{},{style:ba(ba({},m),c),className:y}));return x};return u===1?f(V.Children.only(a)):V.createElement("div",null,V.Children.map(a,function(d){return f(d)}))}}]),r})(V.PureComponent);Za.displayName="Animate";Za.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Za.propTypes={from:ar.oneOfType([ar.object,ar.string]),to:ar.oneOfType([ar.object,ar.string]),attributeName:ar.string,duration:ar.number,begin:ar.number,easing:ar.oneOfType([ar.string,ar.func]),steps:ar.arrayOf(ar.shape({duration:ar.number.isRequired,style:ar.object.isRequired,easing:ar.oneOfType([ar.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ar.func]),properties:ar.arrayOf("string"),onAnimationEnd:ar.func})),children:ar.oneOfType([ar.node,ar.func]),isActive:ar.bool,canBegin:ar.bool,onAnimationEnd:ar.func,shouldReAnimate:ar.bool,onAnimationStart:ar.func,onAnimationReStart:ar.func};function vh(e){"@babel/helpers - typeof";return vh=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},vh(e)}function cp(){return cp=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},cp.apply(this,arguments)}function aee(e,t){return uee(e)||lee(e,t)||see(e,t)||oee()}function oee(){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 see(e,t){if(e){if(typeof e=="string")return $E(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 $E(e,t)}}function $E(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 lee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function uee(e){if(Array.isArray(e))return e}function qE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function UE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qE(Object(r),!0).forEach(function(n){cee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cee(e,t,r){return t=fee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fee(e){var t=hee(e,"string");return vh(t)=="symbol"?t:t+""}function hee(e,t){if(vh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zE=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,h=4;d<h;d++)f[d]=a[d]>o?o:a[d];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),c+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
|
|
428
|
-
`).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
|
|
429
|
-
`).concat(t+n-l*f[2],",").concat(r+i)),c+="L ".concat(t+l*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
|
|
430
|
-
`).concat(t,",").concat(r+i-s*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var g=Math.min(o,a);c="M ".concat(t,",").concat(r+s*g,`
|
|
431
|
-
A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+l*g,",").concat(r,`
|
|
432
|
-
L `).concat(t+n-l*g,",").concat(r,`
|
|
433
|
-
A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*g,`
|
|
434
|
-
L `).concat(t+n,",").concat(r+i-s*g,`
|
|
435
|
-
A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+n-l*g,",").concat(r+i,`
|
|
436
|
-
L `).concat(t+l*g,",").concat(r+i,`
|
|
437
|
-
A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*g," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},dee=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(o,o+l),d=Math.max(o,o+l);return n>=u&&n<=c&&i>=f&&i<=d}return!1},pee={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ew=function(t){var r=UE(UE({},pee),t),n=V.useRef(),i=V.useState(-1),a=aee(i,2),o=a[0],s=a[1];V.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var A=n.current.getTotalLength();A&&s(A)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,d=r.radius,h=r.className,g=r.animationEasing,p=r.animationDuration,m=r.animationBegin,y=r.isAnimationActive,x=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var w=kt("recharts-rectangle",h);return x?V.createElement(Za,{canBegin:o>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:p,animationEasing:g,isActive:x},function(A){var _=A.width,E=A.height,T=A.x,k=A.y;return V.createElement(Za,{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:g},V.createElement("path",cp({},gt(r,!0),{className:w,d:zE(T,k,_,E,d),ref:n})))}):V.createElement("path",cp({},gt(r,!0),{className:w,d:zE(l,u,c,f,d)}))},vee=["points","className","baseLinePoints","connectNulls"];function pu(){return pu=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},pu.apply(this,arguments)}function mee(e,t){if(e==null)return{};var r=gee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gee(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 WE(e){return wee(e)||bee(e)||xee(e)||yee()}function yee(){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 xee(e,t){if(e){if(typeof e=="string")return nb(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 nb(e,t)}}function bee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wee(e){if(Array.isArray(e))return nb(e)}function nb(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 HE=function(t){return t&&t.x===+t.x&&t.y===+t.y},_ee=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){HE(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),HE(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Lf=function(t,r){var n=_ee(t);r&&(n=[n.reduce(function(a,o){return[].concat(WE(a),WE(o))},[])]);var i=n.map(function(a){return a.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(i,"Z"):i},See=function(t,r,n){var i=Lf(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Lf(r.reverse(),n).slice(1))},aj=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=mee(t,vee);if(!r||!r.length)return null;var s=kt("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",u=See(r,i,a);return V.createElement("g",{className:s},V.createElement("path",pu({},gt(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),l?V.createElement("path",pu({},gt(o,!0),{fill:"none",d:Lf(r,a)})):null,l?V.createElement("path",pu({},gt(o,!0),{fill:"none",d:Lf(i,a)})):null)}var c=Lf(r,a);return V.createElement("path",pu({},gt(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",className:s,d:c}))};function ib(){return ib=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},ib.apply(this,arguments)}var Hh=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=kt("recharts-dot",a);return r===+r&&n===+n&&i===+i?vn.createElement("circle",ib({},gt(t,!1),jd(t),{className:o,cx:r,cy:n,r:i})):null};function mh(e){"@babel/helpers - typeof";return mh=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},mh(e)}var Aee=["x","y","top","left","width","height","className"];function ab(){return ab=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},ab.apply(this,arguments)}function GE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tee(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){Eee(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 Eee(e,t,r){return t=Oee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oee(e){var t=Pee(e,"string");return mh(t)=="symbol"?t:t+""}function Pee(e,t){if(mh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nee(e,t){if(e==null)return{};var r=Cee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Cee(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 jee=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},kee=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,f=c===void 0?0:c,d=t.height,h=d===void 0?0:d,g=t.className,p=Nee(t,Aee),m=Tee({x:n,y:a,top:s,left:u,width:f,height:h},p);return!nt(n)||!nt(a)||!nt(f)||!nt(h)||!nt(s)||!nt(u)?null:V.createElement("path",ab({},gt(m,!0),{className:kt("recharts-cross",g),d:jee(n,a,f,h,s,u)}))},Lee=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function gh(e){"@babel/helpers - typeof";return gh=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},gh(e)}function Iee(e,t){if(e==null)return{};var r=Fee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fee(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 Fo(){return Fo=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},Fo.apply(this,arguments)}function VE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VE(Object(r),!0).forEach(function(n){Ree(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ree(e,t,r){return t=Mee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mee(e){var t=Dee(e,"string");return gh(t)=="symbol"?t:t+""}function Dee(e,t){if(gh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bee=function(t,r,n,i){var a="";return i.forEach(function(o,s){var l=br(r,n,t,o);s?a+="L ".concat(l.x,",").concat(l.y):a+="M ".concat(l.x,",").concat(l.y)}),a+="Z",a},$ee=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.polarAngles,s=t.radialLines;if(!o||!o.length||!s)return null;var l=yh({stroke:"#ccc"},gt(t,!1));return V.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(u){var c=br(r,n,i,u),f=br(r,n,a,u);return V.createElement("line",Fo({},l,{key:"line-".concat(u),x1:c.x,y1:c.y,x2:f.x,y2:f.y}))}))},qee=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.index,o=yh(yh({stroke:"#ccc"},gt(t,!1)),{},{fill:"none"});return V.createElement("circle",Fo({},o,{className:kt("recharts-polar-grid-concentric-circle",t.className),key:"circle-".concat(a),cx:r,cy:n,r:i}))},Uee=function(t){var r=t.radius,n=t.index,i=yh(yh({stroke:"#ccc"},gt(t,!1)),{},{fill:"none"});return V.createElement("path",Fo({},i,{className:kt("recharts-polar-grid-concentric-polygon",t.className),key:"path-".concat(n),d:Bee(r,t.cx,t.cy,t.polarAngles)}))},zee=function(t){var r=t.polarRadius,n=t.gridType;return!r||!r.length?null:V.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(i,a){var o=a;return n==="circle"?V.createElement(qee,Fo({key:o},t,{radius:i,index:a})):V.createElement(Uee,Fo({key:o},t,{radius:i,index:a}))}))},oj=function(t){var r=t.cx,n=r===void 0?0:r,i=t.cy,a=i===void 0?0:i,o=t.innerRadius,s=o===void 0?0:o,l=t.outerRadius,u=l===void 0?0:l,c=t.gridType,f=c===void 0?"polygon":c,d=t.radialLines,h=d===void 0?!0:d,g=Iee(t,Lee);return u<=0?null:V.createElement("g",{className:"recharts-polar-grid"},V.createElement($ee,Fo({cx:n,cy:a,innerRadius:s,outerRadius:u,gridType:f,radialLines:h},g)),V.createElement(zee,Fo({cx:n,cy:a,innerRadius:s,outerRadius:u,gridType:f,radialLines:h},g)))};oj.displayName="PolarGrid";var a2,KE;function Wee(){if(KE)return a2;KE=1;var e=l1(),t=gC(),r=to();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return a2=n,a2}var Hee=Wee();const Gee=ur(Hee);var o2,YE;function Vee(){if(YE)return o2;YE=1;var e=l1(),t=to(),r=yC();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return o2=n,o2}var Kee=Vee();const Yee=ur(Kee);var Xee=["cx","cy","angle","ticks","axisLine"],Jee=["ticks","tick","angle","tickFormatter","stroke"];function Gu(e){"@babel/helpers - typeof";return Gu=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},Gu(e)}function If(){return If=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},If.apply(this,arguments)}function XE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XE(Object(r),!0).forEach(function(n){d1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JE(e,t){if(e==null)return{};var r=Zee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(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 Qee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZE(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,lj(n.key),n)}}function ete(e,t,r){return t&&ZE(e.prototype,t),r&&ZE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tte(e,t,r){return t=fp(t),rte(e,sj()?Reflect.construct(t,r||[],fp(e).constructor):t.apply(e,r))}function rte(e,t){if(t&&(Gu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nte(e)}function nte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sj=function(){return!!e})()}function fp(e){return fp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fp(e)}function ite(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&&ob(e,t)}function ob(e,t){return ob=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ob(e,t)}function d1(e,t,r){return t=lj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lj(e){var t=ate(e,"string");return Gu(t)=="symbol"?t:t+""}function ate(e,t){if(Gu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gh=(function(e){function t(){return Qee(this,t),tte(this,t,arguments)}return ite(t,e),ete(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,l=a.cy;return br(s,l,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=Gee(s,function(c){return c.coordinate||0}),u=Yee(s,function(c){return c.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=n.axisLine,u=JE(n,Xee),c=s.reduce(function(g,p){return[Math.min(g[0],p.coordinate),Math.max(g[1],p.coordinate)]},[1/0,-1/0]),f=br(i,a,c[0],o),d=br(i,a,c[1],o),h=$s($s($s({},gt(u,!1)),{},{fill:"none"},gt(l,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return V.createElement("line",If({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,l=i.tickFormatter,u=i.stroke,c=JE(i,Jee),f=this.getTickTextAnchor(),d=gt(c,!1),h=gt(o,!1),g=a.map(function(p,m){var y=n.getTickValueCoord(p),x=$s($s($s($s({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},d),{},{stroke:"none",fill:u},h),{},{index:m},y),{},{payload:p});return V.createElement(or,If({className:kt("recharts-polar-radius-axis-tick",HC(o)),key:"tick-".concat(p.coordinate)},Iu(n.props,p,m)),t.renderTickItem(o,x,l?l(p.value,m):p.value))});return V.createElement(or,{className:"recharts-polar-radius-axis-ticks"},g)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:V.createElement(or,{className:kt("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),jn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return V.isValidElement(n)?o=V.cloneElement(n,i):Et(n)?o=n(i):o=V.createElement($u,If({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(V.PureComponent);d1(Gh,"displayName","PolarRadiusAxis");d1(Gh,"axisType","radiusAxis");d1(Gh,"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 Vu(e){"@babel/helpers - typeof";return Vu=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},Vu(e)}function Gs(){return Gs=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},Gs.apply(this,arguments)}function QE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QE(Object(r),!0).forEach(function(n){p1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ote(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eO(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,cj(n.key),n)}}function ste(e,t,r){return t&&eO(e.prototype,t),r&&eO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function lte(e,t,r){return t=hp(t),ute(e,uj()?Reflect.construct(t,r||[],hp(e).constructor):t.apply(e,r))}function ute(e,t){if(t&&(Vu(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 uj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uj=function(){return!!e})()}function hp(e){return hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hp(e)}function fte(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&&sb(e,t)}function sb(e,t){return sb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sb(e,t)}function p1(e,t,r){return t=cj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cj(e){var t=hte(e,"string");return Vu(t)=="symbol"?t:t+""}function hte(e,t){if(Vu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dte=Math.PI/180,tO=1e-5,Vh=(function(e){function t(){return ote(this,t),lte(this,t,arguments)}return fte(t,e),ste(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,l=i.orientation,u=i.tickSize,c=u||8,f=br(a,o,s,n.coordinate),d=br(a,o,s+(l==="inner"?-1:1)*c,n.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*dte),o;return a>tO?o=i==="outer"?"start":"end":a<-tO?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,l=n.axisLineType,u=qs(qs({},gt(this.props,!1)),{},{fill:"none"},gt(s,!1));if(l==="circle")return V.createElement(Hh,Gs({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var c=this.props.ticks,f=c.map(function(d){return br(i,a,o,d.coordinate)});return V.createElement(aj,Gs({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,c=gt(this.props,!1),f=gt(o,!1),d=qs(qs({},c),{},{fill:"none"},gt(s,!1)),h=a.map(function(g,p){var m=n.getTickLineCoord(g),y=n.getTickTextAnchor(g),x=qs(qs(qs({textAnchor:y},c),{},{stroke:"none",fill:u},f),{},{index:p,payload:g,x:m.x2,y:m.y2});return V.createElement(or,Gs({className:kt("recharts-polar-angle-axis-tick",HC(o)),key:"tick-".concat(g.coordinate)},Iu(n.props,g,p)),s&&V.createElement("line",Gs({className:"recharts-polar-angle-axis-tick-line"},d,m)),o&&t.renderTickItem(o,x,l?l(g.value,p):g.value))});return V.createElement(or,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:V.createElement(or,{className:kt("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return V.isValidElement(n)?o=V.cloneElement(n,i):Et(n)?o=n(i):o=V.createElement($u,Gs({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(V.PureComponent);p1(Vh,"displayName","PolarAngleAxis");p1(Vh,"axisType","angleAxis");p1(Vh,"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 s2,rO;function pte(){if(rO)return s2;rO=1;var e=m8(),t=e(Object.getPrototypeOf,Object);return s2=t,s2}var l2,nO;function vte(){if(nO)return l2;nO=1;var e=Mo(),t=pte(),r=Do(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,l=o.call(Object);function u(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);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 l2=u,l2}var mte=vte();const gte=ur(mte);var u2,iO;function yte(){if(iO)return u2;iO=1;var e=Mo(),t=Do(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return u2=n,u2}var xte=yte();const bte=ur(xte);function xh(e){"@babel/helpers - typeof";return xh=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},xh(e)}function dp(){return dp=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},dp.apply(this,arguments)}function wte(e,t){return Tte(e)||Ate(e,t)||Ste(e,t)||_te()}function _te(){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 Ste(e,t){if(e){if(typeof e=="string")return aO(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 aO(e,t)}}function aO(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 Ate(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Tte(e){if(Array.isArray(e))return e}function oO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oO(Object(r),!0).forEach(function(n){Ete(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ete(e,t,r){return t=Ote(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ote(e){var t=Pte(e,"string");return xh(t)=="symbol"?t:t+""}function Pte(e,t){if(xh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lO=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},Nte={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Cte=function(t){var r=sO(sO({},Nte),t),n=V.useRef(),i=V.useState(-1),a=wte(i,2),o=a[0],s=a[1];V.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&s(w)}catch{}},[]);var l=r.x,u=r.y,c=r.upperWidth,f=r.lowerWidth,d=r.height,h=r.className,g=r.animationEasing,p=r.animationDuration,m=r.animationBegin,y=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||d!==+d||c===0&&f===0||d===0)return null;var x=kt("recharts-trapezoid",h);return y?V.createElement(Za,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:c,lowerWidth:f,height:d,x:l,y:u},duration:p,animationEasing:g,isActive:y},function(w){var A=w.upperWidth,_=w.lowerWidth,E=w.height,T=w.x,k=w.y;return V.createElement(Za,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:p,easing:g},V.createElement("path",dp({},gt(r,!0),{className:x,d:lO(T,k,A,_,E),ref:n})))}):V.createElement("g",null,V.createElement("path",dp({},gt(r,!0),{className:x,d:lO(l,u,c,f,d)})))},jte=["option","shapeType","propTransformer","activeClassName","isActive"];function bh(e){"@babel/helpers - typeof";return bh=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},bh(e)}function kte(e,t){if(e==null)return{};var r=Lte(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lte(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 uO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uO(Object(r),!0).forEach(function(n){Ite(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ite(e,t,r){return t=Fte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fte(e){var t=Rte(e,"string");return bh(t)=="symbol"?t:t+""}function Rte(e,t){if(bh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mte(e,t){return pp(pp({},t),e)}function Dte(e,t){return e==="symbols"}function cO(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return V.createElement(ew,r);case"trapezoid":return V.createElement(Cte,r);case"sector":return V.createElement(YC,r);case"symbols":if(Dte(t))return V.createElement(y5,r);break;default:return null}}function Bte(e){return V.isValidElement(e)?e.props:e}function $te(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?Mte:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=kte(e,jte),u;if(V.isValidElement(t))u=V.cloneElement(t,pp(pp({},l),Bte(t)));else if(Et(t))u=t(l);else if(gte(t)&&!bte(t)){var c=i(t,l);u=V.createElement(cO,{shapeType:r,elementProps:c})}else{var f=l;u=V.createElement(cO,{shapeType:r,elementProps:f})}return s?V.createElement(or,{className:o},u):u}function v1(e,t){return t!=null&&"trapezoids"in e.props}function m1(e,t){return t!=null&&"sectors"in e.props}function wh(e,t){return t!=null&&"points"in e.props}function qte(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function Ute(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function zte(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function Wte(e,t){var r;return v1(e,t)?r=qte:m1(e,t)?r=Ute:wh(e,t)&&(r=zte),r}function Hte(e,t){var r;return v1(e,t)?r="trapezoids":m1(e,t)?r="sectors":wh(e,t)&&(r="points"),r}function Gte(e,t){if(v1(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(m1(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 wh(e,t)?t.payload:{}}function Vte(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=Hte(r,t),a=Gte(r,t),o=n.filter(function(l,u){var c=zh(a,l),f=r.props[i].filter(function(g){var p=Wte(r,t);return p(g,t)}),d=r.props[i].indexOf(f[f.length-1]),h=u===d;return c&&h}),s=n.indexOf(o[o.length-1]);return s}var c2,fO;function Kte(){if(fO)return c2;fO=1;function e(t){return t&&t.length?t[0]:void 0}return c2=e,c2}var f2,hO;function Yte(){return hO||(hO=1,f2=Kte()),f2}var Xte=Yte();const Jte=ur(Xte);var Zte=["key"];function Ku(e){"@babel/helpers - typeof";return Ku=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},Ku(e)}function Qte(e,t){if(e==null)return{};var r=ere(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ere(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 vp(){return vp=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},vp.apply(this,arguments)}function dO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?dO(Object(r),!0).forEach(function(n){xo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pO(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,hj(n.key),n)}}function rre(e,t,r){return t&&pO(e.prototype,t),r&&pO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nre(e,t,r){return t=mp(t),ire(e,fj()?Reflect.construct(t,r||[],mp(e).constructor):t.apply(e,r))}function ire(e,t){if(t&&(Ku(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return are(e)}function are(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fj=function(){return!!e})()}function mp(e){return mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mp(e)}function ore(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&&lb(e,t)}function lb(e,t){return lb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lb(e,t)}function xo(e,t,r){return t=hj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hj(e){var t=sre(e,"string");return Ku(t)=="symbol"?t:t+""}function sre(e,t){if(Ku(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ku(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kh=(function(e){function t(){var r;tre(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=nre(this,t,[].concat(i)),xo(r,"state",{isAnimationFinished:!1}),xo(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Et(o)&&o()}),xo(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Et(o)&&o()}),xo(r,"handleMouseEnter",function(o){var s=r.props.onMouseEnter;s&&s(r.props,o)}),xo(r,"handleMouseLeave",function(o){var s=r.props.onMouseLeave;s&&s(r.props,o)}),r}return ore(t,e),rre(t,[{key:"renderDots",value:function(n){var i=this.props,a=i.dot,o=i.dataKey,s=gt(this.props,!1),l=gt(a,!0),u=n.map(function(c,f){var d=Zn(Zn(Zn({key:"dot-".concat(f),r:3},s),l),{},{dataKey:o,cx:c.x,cy:c.y,index:f,payload:c});return t.renderDotItem(a,d)});return V.createElement(or,{className:"recharts-radar-dots"},u)}},{key:"renderPolygonStatically",value:function(n){var i=this.props,a=i.shape,o=i.dot,s=i.isRange,l=i.baseLinePoints,u=i.connectNulls,c;return V.isValidElement(a)?c=V.cloneElement(a,Zn(Zn({},this.props),{},{points:n})):Et(a)?c=a(Zn(Zn({},this.props),{},{points:n})):c=V.createElement(aj,vp({},gt(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:s?l:null,connectNulls:u})),V.createElement(or,{className:"recharts-radar-polygon"},c,o?this.renderDots(n):null)}},{key:"renderPolygonWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state.prevPoints;return V.createElement(Za,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,g=f&&f.length/a.length,p=a.map(function(m,y){var x=f&&f[Math.floor(y*g)];if(x){var w=ri(x.x,m.x),A=ri(x.y,m.y);return Zn(Zn({},m),{},{x:w(h),y:A(h)})}var _=ri(m.cx,m.x),E=ri(m.cy,m.y);return Zn(Zn({},m),{},{x:_(h),y:E(h)})});return n.renderPolygonStatically(p)})}},{key:"renderPolygon",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=n.isRange,s=this.state.prevPoints;return a&&i&&i.length&&!o&&(!s||!zh(s,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.className,o=n.points,s=n.isAnimationActive;if(i||!o||!o.length)return null;var l=this.state.isAnimationFinished,u=kt("recharts-radar",a);return V.createElement(or,{className:u},this.renderPolygon(),(!s||l)&&No.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"renderDotItem",value:function(n,i){var a;if(V.isValidElement(n))a=V.cloneElement(n,i);else if(Et(n))a=n(i);else{var o=i.key,s=Qte(i,Zte);a=V.createElement(Hh,vp({},s,{key:o,className:kt("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return a}}])})(V.PureComponent);xo(Kh,"displayName","Radar");xo(Kh,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Tl.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});xo(Kh,"getComposedData",function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,i=e.dataKey,a=e.bandSize,o=r.cx,s=r.cy,l=!1,u=[],c=r.type!=="number"?a??0:0;n.forEach(function(d,h){var g=oi(d,r.dataKey,h),p=oi(d,i),m=r.scale(g)+c,y=Array.isArray(p)?VC(p):p,x=Bt(y)?void 0:t.scale(y);Array.isArray(p)&&p.length>=2&&(l=!0),u.push(Zn(Zn({},br(o,s,x,m)),{},{name:g,value:p,cx:o,cy:s,radius:x,angle:m,payload:d}))});var f=[];return l&&u.forEach(function(d){if(Array.isArray(d.value)){var h=Jte(d.value),g=Bt(h)?void 0:t.scale(h);f.push(Zn(Zn({},d),{},{radius:g},br(o,s,g,d.angle)))}else f.push(d)}),{points:u,isRange:l,baseLinePoints:f}});var h2,vO;function lre(){if(vO)return h2;vO=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,l=t(e((i-n)/(a||1)),0),u=Array(l);l--;)u[o?l:++s]=n,n+=a;return u}return h2=r,h2}var d2,mO;function dj(){if(mO)return d2;mO=1;var e=k8(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return d2=n,d2}var p2,gO;function ure(){if(gO)return p2;gO=1;var e=lre(),t=t1(),r=dj();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return p2=n,p2}var v2,yO;function cre(){if(yO)return v2;yO=1;var e=ure(),t=e();return v2=t,v2}var fre=cre();const gp=ur(fre);function _h(e){"@babel/helpers - typeof";return _h=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},_h(e)}function xO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(r),!0).forEach(function(n){pj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pj(e,t,r){return t=hre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hre(e){var t=dre(e,"string");return _h(t)=="symbol"?t:t+""}function dre(e,t){if(_h(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_h(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pre=["Webkit","Moz","O","ms"],vre=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=pre.reduce(function(a,o){return bO(bO({},a),{},pj({},o+n,r))},{});return i[t]=r,i};function Yu(e){"@babel/helpers - typeof";return Yu=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},Yu(e)}function yp(){return yp=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},yp.apply(this,arguments)}function wO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function m2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wO(Object(r),!0).forEach(function(n){Ci(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _O(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,mj(n.key),n)}}function gre(e,t,r){return t&&_O(e.prototype,t),r&&_O(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function yre(e,t,r){return t=xp(t),xre(e,vj()?Reflect.construct(t,r||[],xp(e).constructor):t.apply(e,r))}function xre(e,t){if(t&&(Yu(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 vj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vj=function(){return!!e})()}function xp(e){return xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xp(e)}function wre(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&&ub(e,t)}function ub(e,t){return ub=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ub(e,t)}function Ci(e,t,r){return t=mj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mj(e){var t=_re(e,"string");return Yu(t)=="symbol"?t:t+""}function _re(e,t){if(Yu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Sre=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=Cf().domain(gp(0,l)).range([a,a+o-s]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:c}},SO=function(t){return t.changedTouches&&!!t.changedTouches.length},Xu=(function(e){function t(r){var n;return mre(this,t),n=yre(this,t,[r]),Ci(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ci(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ci(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),Ci(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ci(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ci(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ci(n,"handleSlideDragStart",function(i){var a=SO(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return wre(t,e),gre(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,c=u.length-1,f=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,f),g=t.getIndexInRange(o,d);return{startIndex:h-h%l,endIndex:g===c?c:g-g%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=oi(a[n],s,n);return Et(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 i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,c=l.width,f=l.travellerWidth,d=l.startIndex,h=l.endIndex,g=l.onChange,p=n.pageX-a;p>0?p=Math.min(p,u+c-f-s,u+c-f-o):p<0&&(p=Math.max(p,u-o,u-s));var m=this.getIndex({startX:o+p,endX:s+p});(m.startIndex!==d||m.endIndex!==h)&&g&&g(m),this.setState({startX:o+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=SO(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],c=this.props,f=c.x,d=c.width,h=c.travellerWidth,g=c.onChange,p=c.gap,m=c.data,y={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,f+d-h-u):x<0&&(x=Math.max(x,f-u)),y[o]=u+x;var w=this.getIndex(y),A=w.startIndex,_=w.endIndex,E=function(){var k=m.length-1;return o==="startX"&&(s>l?A%p===0:_%p===0)||s<l&&_===k||o==="endX"&&(s>l?_%p===0:A%p===0)||s>l&&_===k};this.setState(Ci(Ci({},o,u+x),"brushMoveStartX",n.pageX),function(){g&&E()&&g(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,c=this.state[i],f=s.indexOf(c);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=u||i==="endX"&&h<=l||this.setState(Ci({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return V.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,c=n.padding,f=V.Children.only(u);return f?V.cloneElement(f,{x:i,y:a,width:o,height:s,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,c=l.travellerWidth,f=l.height,d=l.traveller,h=l.ariaLabel,g=l.data,p=l.startIndex,m=l.endIndex,y=Math.max(n,this.props.x),x=m2(m2({},gt(this.props,!1)),{},{x:y,y:u,width:c,height:f}),w=h||"Min value: ".concat((a=g[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=g[m])===null||o===void 0?void 0:o.name);return V.createElement(or,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(_){["ArrowLeft","ArrowRight"].includes(_.key)&&(_.preventDefault(),_.stopPropagation(),s.handleTravellerMoveKeyboard(_.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,c=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return V.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:c,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,c=this.state,f=c.startX,d=c.endX,h=5,g={pointerEvents:"none",fill:u};return V.createElement(or,{className:"recharts-brush-texts"},V.createElement($u,yp({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},g),this.getTextOfTick(i)),V.createElement($u,yp({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+l+h,y:o+s/2},g),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,c=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,g=d.endX,p=d.isTextActive,m=d.isSlideMoving,y=d.isTravellerMoving,x=d.isTravellerFocused;if(!i||!i.length||!nt(s)||!nt(l)||!nt(u)||!nt(c)||u<=0||c<=0)return null;var w=kt("recharts-brush",a),A=V.Children.count(o)===1,_=vre("userSelect","none");return V.createElement(or,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:_},this.renderBackground(),A&&this.renderPanorama(),this.renderSlide(h,g),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(g,"endX"),(p||m||y||x||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return V.createElement(V.Fragment,null,V.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),V.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),V.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return V.isValidElement(n)?a=V.cloneElement(n,i):Et(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,c=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return m2({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?Sre({data:a,width:o,x:s,travellerWidth:l,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])})(V.PureComponent);Ci(Xu,"displayName","Brush");Ci(Xu,"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 g2,AO;function Are(){if(AO)return g2;AO=1;var e=T5();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return g2=t,g2}var y2,TO;function Tre(){if(TO)return y2;TO=1;var e=u8(),t=to(),r=Are(),n=wi(),i=t1();function a(o,s,l){var u=n(o)?e:r;return l&&i(o,s,l)&&(s=void 0),u(o,t(s,3))}return y2=a,y2}var Ere=Tre();const Ore=ur(Ere);var Ya=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},x2,EO;function Pre(){if(EO)return x2;EO=1;var e=O8();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return x2=t,x2}var b2,OO;function Nre(){if(OO)return b2;OO=1;var e=Pre(),t=T8(),r=to();function n(i,a){var o={};return a=r(a,3),t(i,function(s,l,u){e(o,l,a(s,l,u))}),o}return b2=n,b2}var Cre=Nre();const jre=ur(Cre);var w2,PO;function kre(){if(PO)return w2;PO=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return w2=e,w2}var _2,NO;function Lre(){if(NO)return _2;NO=1;var e=T5();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return _2=t,_2}var S2,CO;function Ire(){if(CO)return S2;CO=1;var e=kre(),t=Lre(),r=to(),n=wi(),i=t1();function a(o,s,l){var u=n(o)?e:t;return l&&i(o,s,l)&&(s=void 0),u(o,r(s,3))}return S2=a,S2}var Fre=Ire();const gj=ur(Fre);var Rre=["x","y"];function Ju(e){"@babel/helpers - typeof";return Ju=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},Ju(e)}function cb(){return cb=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},cb.apply(this,arguments)}function jO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ff(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jO(Object(r),!0).forEach(function(n){Mre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mre(e,t,r){return t=Dre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dre(e){var t=Bre(e,"string");return Ju(t)=="symbol"?t:t+""}function Bre(e,t){if(Ju(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ju(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $re(e,t){if(e==null)return{};var r=qre(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qre(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 Ure(e,t){var r=e.x,n=e.y,i=$re(e,Rre),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),c=parseInt(u,10),f="".concat(t.width||i.width),d=parseInt(f,10);return ff(ff(ff(ff(ff({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:d,name:t.name,radius:t.radius})}function kO(e){return V.createElement($te,cb({shapeType:"rectangle",propTransformer:Ure,activeClassName:"recharts-active-bar"},e))}var zre=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=nt(n)||BU(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?mi(!1,"minPointSize callback function received a value with type of ".concat(Ju(n),". Currently only numbers or null/undefined are supported.")):mi()),r)}},Wre=["value","background"],yj;function Zu(e){"@babel/helpers - typeof";return Zu=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},Zu(e)}function Hre(e,t){if(e==null)return{};var r=Gre(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Gre(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 bp(){return bp=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},bp.apply(this,arguments)}function LO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?LO(Object(r),!0).forEach(function(n){vs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IO(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,bj(n.key),n)}}function Kre(e,t,r){return t&&IO(e.prototype,t),r&&IO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yre(e,t,r){return t=wp(t),Xre(e,xj()?Reflect.construct(t,r||[],wp(e).constructor):t.apply(e,r))}function Xre(e,t){if(t&&(Zu(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 xj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xj=function(){return!!e})()}function wp(e){return wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wp(e)}function Zre(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&&fb(e,t)}function fb(e,t){return fb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fb(e,t)}function vs(e,t,r){return t=bj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bj(e){var t=Qre(e,"string");return Zu(t)=="symbol"?t:t+""}function Qre(e,t){if(Zu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Nl=(function(e){function t(){var r;Vre(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Yre(this,t,[].concat(i)),vs(r,"state",{isAnimationFinished:!1}),vs(r,"id",Mh("recharts-bar-")),vs(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),vs(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return Zre(t,e),Kre(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,u=a.activeBar,c=gt(this.props,!1);return n&&n.map(function(f,d){var h=d===l,g=h?u:o,p=nn(nn(nn({},c),f),{},{isActive:h,option:g,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return V.createElement(or,bp({className:"recharts-bar-rectangle"},Iu(i.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)}),V.createElement(kO,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,c=i.animationEasing,f=i.animationId,d=this.state.prevData;return V.createElement(Za,{begin:l,duration:u,isActive:s,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var g=h.t,p=a.map(function(m,y){var x=d&&d[y];if(x){var w=ri(x.x,m.x),A=ri(x.y,m.y),_=ri(x.width,m.width),E=ri(x.height,m.height);return nn(nn({},m),{},{x:w(g),y:A(g),width:_(g),height:E(g)})}if(o==="horizontal"){var T=ri(0,m.height),k=T(g);return nn(nn({},m),{},{y:m.y+m.height-k,height:k})}var L=ri(0,m.width),D=L(g);return nn(nn({},m),{},{width:D})});return V.createElement(or,null,n.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!zh(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=gt(this.props.background,!1);return a.map(function(u,c){u.value;var f=u.background,d=Hre(u,Wre);if(!f)return null;var h=nn(nn(nn(nn(nn({},d),{},{fill:"#eee"},f),l),Iu(n.props,u,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return V.createElement(kO,bp({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=ia(c,Wh);if(!f)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,h=function(m,y){var x=Array.isArray(m.value)?m.value[1]:m.value;return{x:m.x,y:m.y,value:x,errorVal:oi(m,y)}},g={clipPath:n?"url(#clipPath-".concat(i,")"):null};return V.createElement(or,g,f.map(function(p){return V.cloneElement(p,{key:"error-bar-".concat(i,"-").concat(p.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,c=n.top,f=n.width,d=n.height,h=n.isAnimationActive,g=n.background,p=n.id;if(i||!a||!a.length)return null;var m=this.state.isAnimationFinished,y=kt("recharts-bar",o),x=s&&s.allowDataOverflow,w=l&&l.allowDataOverflow,A=x||w,_=Bt(p)?this.id:p;return V.createElement(or,{className:y},x||w?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(_)},V.createElement("rect",{x:x?u:u-f/2,y:w?c:c-d/2,width:x?f:f*2,height:w?d:d*2}))):null,V.createElement(or,{className:"recharts-bar-rectangles",clipPath:A?"url(#clipPath-".concat(_,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(A,_),(!h||m)&&No.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(V.PureComponent);yj=Nl;vs(Nl,"displayName","Bar");vs(Nl,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Tl.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});vs(Nl,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,d=e.offset,h=tJ(n,r);if(!h)return null;var g=t.layout,p=r.type.defaultProps,m=p!==void 0?nn(nn({},p),r.props):r.props,y=m.dataKey,x=m.children,w=m.minPointSize,A=g==="horizontal"?o:a,_=u?A.scale.domain():null,E=lJ({numericAxis:A}),T=ia(x,I8),k=f.map(function(L,D){var C,P,M,q,J,U;u?C=rJ(u[c+D],_):(C=oi(L,y),Array.isArray(C)||(C=[E,C]));var H=zre(w,yj.defaultProps.minPointSize)(C[1],D);if(g==="horizontal"){var ee,Z=[o.scale(C[0]),o.scale(C[1])],Q=Z[0],le=Z[1];P=ZT({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:L,index:D}),M=(ee=le??Q)!==null&&ee!==void 0?ee:void 0,q=h.size;var N=Q-le;if(J=Number.isNaN(N)?0:N,U={x:P,y:o.y,width:q,height:o.height},Math.abs(H)>0&&Math.abs(J)<Math.abs(H)){var I=Pa(J||H)*(Math.abs(H)-Math.abs(J));M-=I,J+=I}}else{var R=[a.scale(C[0]),a.scale(C[1])],B=R[0],G=R[1];if(P=B,M=ZT({axis:o,ticks:l,bandSize:i,offset:h.offset,entry:L,index:D}),q=G-B,J=h.size,U={x:a.x,y:M,width:a.width,height:J},Math.abs(H)>0&&Math.abs(q)<Math.abs(H)){var ce=Pa(q||H)*(Math.abs(H)-Math.abs(q));q+=ce}}return nn(nn(nn({},L),{},{x:P,y:M,width:q,height:J,value:u?C:C[1],payload:L,background:U},T&&T[D]&&T[D].props),{},{tooltipPayload:[zC(r,L)],tooltipPosition:{x:P+q/2,y:M+J/2}})});return nn({data:k,layout:g},d)});function Sh(e){"@babel/helpers - typeof";return Sh=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},Sh(e)}function ene(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FO(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,wj(n.key),n)}}function tne(e,t,r){return t&&FO(e.prototype,t),r&&FO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RO(Object(r),!0).forEach(function(n){g1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g1(e,t,r){return t=wj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wj(e){var t=rne(e,"string");return Sh(t)=="symbol"?t:t+""}function rne(e,t){if(Sh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _j=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,u=t.children,c=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=!!ki(u,Nl);return c.reduce(function(h,g){var p=r[g],m=p.orientation,y=p.domain,x=p.padding,w=x===void 0?{}:x,A=p.mirror,_=p.reversed,E="".concat(m).concat(A?"Mirror":""),T,k,L,D,C;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var P=y[1]-y[0],M=1/0,q=p.categoricalDomain.sort(UU);if(q.forEach(function(R,B){B>0&&(M=Math.min((R||0)-(q[B-1]||0),M))}),Number.isFinite(M)){var J=M/P,U=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(T=J*U/2),p.padding==="no-gap"){var H=Na(t.barCategoryGap,J*U),ee=J*U/2;T=ee-H-(ee-H)/U*H}}}i==="xAxis"?k=[n.left+(w.left||0)+(T||0),n.left+n.width-(w.right||0)-(T||0)]:i==="yAxis"?k=l==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(T||0),n.top+n.height-(w.bottom||0)-(T||0)]:k=p.range,_&&(k=[k[1],k[0]]);var Z=BC(p,a,d),Q=Z.scale,le=Z.realScaleType;Q.domain(y).range(k),$C(Q);var N=qC(Q,Sa(Sa({},p),{},{realScaleType:le}));i==="xAxis"?(C=m==="top"&&!A||m==="bottom"&&A,L=n.left,D=f[E]-C*p.height):i==="yAxis"&&(C=m==="left"&&!A||m==="right"&&A,L=f[E]-C*p.width,D=n.top);var I=Sa(Sa(Sa({},p),N),{},{realScaleType:le,x:L,y:D,scale:Q,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return I.bandSize=rp(I,N),!p.hide&&i==="xAxis"?f[E]+=(C?-1:1)*I.height:p.hide||(f[E]+=(C?-1:1)*I.width),Sa(Sa({},h),{},g1({},g,I))},{})},Sj=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},nne=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Sj({x:r,y:n},{x:i,y:a})},Aj=(function(){function e(t){ene(this,e),this.scale=t}return tne(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]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){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(i){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(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();g1(Aj,"EPS",1e-4);var tw=function(t){var r=Object.keys(t).reduce(function(n,i){return Sa(Sa({},n),{},g1({},i,Aj.create(t[i])))},{});return Sa(Sa({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return jre(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return gj(i,function(a,o){return r[o].isInRange(a)})}})};function ine(e){return(e%180+180)%180}var ane=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=ine(i),o=a*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)},A2,MO;function one(){if(MO)return A2;MO=1;var e=to(),t=Dh(),r=Qp();function n(i){return function(a,o,s){var l=Object(a);if(!t(a)){var u=e(o,3);a=r(a),o=function(f){return u(l[f],f,l)}}var c=i(a,o,s);return c>-1?l[u?a[c]:c]:void 0}}return A2=n,A2}var T2,DO;function sne(){if(DO)return T2;DO=1;var e=dj();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return T2=t,T2}var E2,BO;function lne(){if(BO)return E2;BO=1;var e=b8(),t=to(),r=sne(),n=Math.max;function i(a,o,s){var l=a==null?0:a.length;if(!l)return-1;var u=s==null?0:r(s);return u<0&&(u=n(l+u,0)),e(a,t(o,3),u)}return E2=i,E2}var O2,$O;function une(){if($O)return O2;$O=1;var e=one(),t=lne(),r=e(t);return O2=r,O2}var cne=une();const fne=ur(cne);var hne=R6();const dne=ur(hne);var pne=dne(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 _p(e){"@babel/helpers - typeof";return _p=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},_p(e)}var rw=V.createContext(void 0),nw=V.createContext(void 0),Tj=V.createContext(void 0),Ej=V.createContext({}),Oj=V.createContext(void 0),Pj=V.createContext(0),Nj=V.createContext(0),qO=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,c=pne(a);return V.createElement(rw.Provider,{value:n},V.createElement(nw.Provider,{value:i},V.createElement(Ej.Provider,{value:a},V.createElement(Tj.Provider,{value:c},V.createElement(Oj.Provider,{value:o},V.createElement(Pj.Provider,{value:u},V.createElement(Nj.Provider,{value:l},s)))))))},vne=function(){return V.useContext(Oj)};function Cj(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var jj=function(t){var r=V.useContext(rw);r==null&&(process.env.NODE_ENV!=="production"?mi(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):mi());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?mi(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(_p(t),"]. ").concat(Cj(r))):mi()),n},mne=function(){var t=V.useContext(rw);return ss(t)},gne=function(){var t=V.useContext(nw),r=fne(t,function(n){return gj(n.domain,Number.isFinite)});return r||ss(t)},kj=function(t){var r=V.useContext(nw);r==null&&(process.env.NODE_ENV!=="production"?mi(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):mi());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?mi(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(_p(t),"]. ").concat(Cj(r))):mi()),n},yne=function(){var t=V.useContext(Tj);return t},xne=function(){return V.useContext(Ej)},iw=function(){return V.useContext(Nj)},aw=function(){return V.useContext(Pj)};function Qu(e){"@babel/helpers - typeof";return Qu=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},Qu(e)}function bne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wne(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,Ij(n.key),n)}}function _ne(e,t,r){return t&&wne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sne(e,t,r){return t=Sp(t),Ane(e,Lj()?Reflect.construct(t,r||[],Sp(e).constructor):t.apply(e,r))}function Ane(e,t){if(t&&(Qu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tne(e)}function Tne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lj=function(){return!!e})()}function Sp(e){return Sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sp(e)}function Ene(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&&hb(e,t)}function hb(e,t){return hb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hb(e,t)}function UO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(r),!0).forEach(function(n){ow(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ow(e,t,r){return t=Ij(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ij(e){var t=One(e,"string");return Qu(t)=="symbol"?t:t+""}function One(e,t){if(Qu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Pne(e,t){return kne(e)||jne(e,t)||Cne(e,t)||Nne()}function Nne(){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 Cne(e,t){if(e){if(typeof e=="string")return WO(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 WO(e,t)}}function WO(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 jne(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function kne(e){if(Array.isArray(e))return e}function db(){return db=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},db.apply(this,arguments)}var Lne=function(t,r){var n;return V.isValidElement(t)?n=V.cloneElement(t,r):Et(t)?n=t(r):n=V.createElement("line",db({},r,{className:"recharts-reference-line-line"})),n},Ine=function(t,r,n,i,a,o,s,l,u){var c=a.x,f=a.y,d=a.width,h=a.height;if(n){var g=u.y,p=t.y.apply(g,{position:o});if(Ya(u,"discard")&&!t.y.isInRange(p))return null;var m=[{x:c+d,y:p},{x:c,y:p}];return l==="left"?m.reverse():m}if(r){var y=u.x,x=t.x.apply(y,{position:o});if(Ya(u,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:f+h},{x,y:f}];return s==="top"?w.reverse():w}if(i){var A=u.segment,_=A.map(function(E){return t.apply(E,{position:o})});return Ya(u,"discard")&&Ore(_,function(E){return!t.isInRange(E)})?null:_}return null};function Fne(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=vne(),c=jj(i),f=kj(a),d=yne();if(!u||!d)return null;Oo(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=tw({x:c.scale,y:f.scale}),g=mn(t),p=mn(r),m=n&&n.length===2,y=Ine(h,g,p,m,d,e.position,c.orientation,f.orientation,e);if(!y)return null;var x=Pne(y,2),w=x[0],A=w.x,_=w.y,E=x[1],T=E.x,k=E.y,L=Ya(e,"hidden")?"url(#".concat(u,")"):void 0,D=zO(zO({clipPath:L},gt(e,!0)),{},{x1:A,y1:_,x2:T,y2:k});return V.createElement(or,{className:kt("recharts-reference-line",s)},Lne(o,D),jn.renderCallByParent(e,nne({x1:A,y1:_,x2:T,y2:k})))}var sw=(function(e){function t(){return bne(this,t),Sne(this,t,arguments)}return Ene(t,e),_ne(t,[{key:"render",value:function(){return V.createElement(Fne,this.props)}}])})(V.Component);ow(sw,"displayName","ReferenceLine");ow(sw,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function pb(){return pb=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},pb.apply(this,arguments)}function ec(e){"@babel/helpers - typeof";return ec=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},ec(e)}function HO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function GO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HO(Object(r),!0).forEach(function(n){y1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mne(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,Rj(n.key),n)}}function Dne(e,t,r){return t&&Mne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bne(e,t,r){return t=Ap(t),$ne(e,Fj()?Reflect.construct(t,r||[],Ap(e).constructor):t.apply(e,r))}function $ne(e,t){if(t&&(ec(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 Fj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fj=function(){return!!e})()}function Ap(e){return Ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ap(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&&vb(e,t)}function vb(e,t){return vb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vb(e,t)}function y1(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=zne(e,"string");return ec(t)=="symbol"?t:t+""}function zne(e,t){if(ec(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ec(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Wne=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=tw({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Ya(t,"discard")&&!o.isInRange(s)?null:s},x1=(function(e){function t(){return Rne(this,t),Bne(this,t,arguments)}return Une(t,e),Dne(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=mn(i),c=mn(a);if(Oo(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=Wne(this.props);if(!f)return null;var d=f.x,h=f.y,g=this.props,p=g.shape,m=g.className,y=Ya(this.props,"hidden")?"url(#".concat(l,")"):void 0,x=GO(GO({clipPath:y},gt(this.props,!0)),{},{cx:d,cy:h});return V.createElement(or,{className:kt("recharts-reference-dot",m)},t.renderDot(p,x),jn.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(V.Component);y1(x1,"displayName","ReferenceDot");y1(x1,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});y1(x1,"renderDot",function(e,t){var r;return V.isValidElement(e)?r=V.cloneElement(e,t):Et(e)?r=e(t):r=V.createElement(Hh,pb({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function mb(){return mb=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},mb.apply(this,arguments)}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 VO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function KO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VO(Object(r),!0).forEach(function(n){b1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return 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,Dj(n.key),n)}}function Vne(e,t,r){return t&&Gne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kne(e,t,r){return t=Tp(t),Yne(e,Mj()?Reflect.construct(t,r||[],Tp(e).constructor):t.apply(e,r))}function Yne(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 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 Mj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mj=function(){return!!e})()}function Tp(e){return Tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Tp(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&&gb(e,t)}function gb(e,t){return gb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gb(e,t)}function b1(e,t,r){return t=Dj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dj(e){var t=Zne(e,"string");return tc(t)=="symbol"?t:t+""}function Zne(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 Qne=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,u=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var d=tw({x:c.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},g={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Ya(a,"discard")&&(!d.isInRange(h)||!d.isInRange(g))?null:Sj(h,g)},w1=(function(e){function t(){return Hne(this,t),Kne(this,t,arguments)}return Jne(t,e),Vne(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,c=n.clipPathId;Oo(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=mn(i),d=mn(a),h=mn(o),g=mn(s),p=this.props.shape;if(!f&&!d&&!h&&!g&&!p)return null;var m=Qne(f,d,h,g,this.props);if(!m&&!p)return null;var y=Ya(this.props,"hidden")?"url(#".concat(c,")"):void 0;return V.createElement(or,{className:kt("recharts-reference-area",l)},t.renderRect(p,KO(KO({clipPath:y},gt(this.props,!0)),m)),jn.renderCallByParent(this.props,m))}}])})(V.Component);b1(w1,"displayName","ReferenceArea");b1(w1,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});b1(w1,"renderRect",function(e,t){var r;return V.isValidElement(e)?r=V.cloneElement(e,t):Et(e)?r=e(t):r=V.createElement(ew,mb({},t,{className:"recharts-reference-area-rect"})),r});function Bj(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function eie(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return ane(n,r)}function tie(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function Ep(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function rie(e,t){return Bj(e,t+1)}function nie(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,f=function(){var g=n==null?void 0:n[l];if(g===void 0)return{v:Bj(n,u)};var p=l,m,y=function(){return m===void 0&&(m=r(g,p)),m},x=g.coordinate,w=l===0||Ep(e,x,y,c,s);w||(l=0,c=o,u+=1),w&&(c=x+e*(y()/2+i),l+=u)},d;u<=a.length;)if(d=f(),d)return d.v;return[]}function Ah(e){"@babel/helpers - typeof";return Ah=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},Ah(e)}function YO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?YO(Object(r),!0).forEach(function(n){iie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iie(e,t,r){return t=aie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aie(e){var t=oie(e,"string");return Ah(t)=="symbol"?t:t+""}function oie(e,t){if(Ah(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ah(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sie(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(d){var h=a[d],g,p=function(){return g===void 0&&(g=r(h,d)),g};if(d===o-1){var m=e*(h.coordinate+e*p()/2-l);a[d]=h=zn(zn({},h),{},{tickCoord:m>0?h.coordinate-m*e:h.coordinate})}else a[d]=h=zn(zn({},h),{},{tickCoord:h.coordinate});var y=Ep(e,h.tickCoord,p,s,l);y&&(l=h.tickCoord-e*(p()/2+i),a[d]=zn(zn({},h),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return a}function lie(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var c=n[s-1],f=r(c,s-1),d=e*(c.coordinate+e*f/2-u);o[s-1]=c=zn(zn({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate});var h=Ep(e,c.tickCoord,function(){return f},l,u);h&&(u=c.tickCoord-e*(f/2+i),o[s-1]=zn(zn({},c),{},{isShow:!0}))}for(var g=a?s-1:s,p=function(x){var w=o[x],A,_=function(){return A===void 0&&(A=r(w,x)),A};if(x===0){var E=e*(w.coordinate-e*_()/2-l);o[x]=w=zn(zn({},w),{},{tickCoord:E<0?w.coordinate-E*e:w.coordinate})}else o[x]=w=zn(zn({},w),{},{tickCoord:w.coordinate});var T=Ep(e,w.tickCoord,_,l,u);T&&(l=w.tickCoord+e*(_()/2+i),o[x]=zn(zn({},w),{},{isShow:!0}))},m=0;m<g;m++)p(m);return o}function lw(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(nt(l)||Tl.isSsr)return rie(i,typeof l=="number"&&nt(l)?l:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",g=c&&h==="width"?Nf(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(w,A){var _=Et(u)?u(w.value,A):w.value;return h==="width"?eie(Nf(_,{fontSize:t,letterSpacing:r}),g,f):Nf(_,{fontSize:t,letterSpacing:r})[h]},m=i.length>=2?Pa(i[1].coordinate-i[0].coordinate):1,y=tie(a,m,h);return l==="equidistantPreserveStart"?nie(m,y,p,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=lie(m,y,p,i,o,l==="preserveStartEnd"):d=sie(m,y,p,i,o),d.filter(function(x){return x.isShow}))}var uie=["viewBox"],cie=["viewBox"],fie=["ticks"];function rc(e){"@babel/helpers - typeof";return rc=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},rc(e)}function vu(){return vu=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},vu.apply(this,arguments)}function XO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?XO(Object(r),!0).forEach(function(n){uw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P2(e,t){if(e==null)return{};var r=hie(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hie(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 die(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JO(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,qj(n.key),n)}}function pie(e,t,r){return t&&JO(e.prototype,t),r&&JO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vie(e,t,r){return t=Op(t),mie(e,$j()?Reflect.construct(t,r||[],Op(e).constructor):t.apply(e,r))}function mie(e,t){if(t&&(rc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gie(e)}function gie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($j=function(){return!!e})()}function Op(e){return Op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Op(e)}function yie(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&&yb(e,t)}function yb(e,t){return yb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yb(e,t)}function uw(e,t,r){return t=qj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qj(e){var t=xie(e,"string");return rc(t)=="symbol"?t:t+""}function xie(e,t){if(rc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wc=(function(e){function t(r){var n;return die(this,t),n=vie(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return yie(t,e),pie(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=P2(n,uie),s=this.props,l=s.viewBox,u=P2(s,cie);return!Su(a,l)||!Su(o,u)||!Su(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,c=i.tickSize,f=i.mirror,d=i.tickMargin,h,g,p,m,y,x,w=f?-1:1,A=n.tickSize||c,_=nt(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":h=g=n.coordinate,m=o+ +!f*l,p=m-w*A,x=p-w*d,y=_;break;case"left":p=m=n.coordinate,g=a+ +!f*s,h=g-w*A,y=h-w*d,x=_;break;case"right":p=m=n.coordinate,g=a+ +f*s,h=g+w*A,y=h+w*d,x=_;break;default:h=g=n.coordinate,m=o+ +f*l,p=m+w*A,x=p+w*d,y=_;break}return{line:{x1:h,y1:p,x2:g,y2:m},tick:{x:y,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,c=n.axisLine,f=fn(fn(fn({},gt(this.props,!1)),gt(c,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!u||l==="bottom"&&u);f=fn(fn({},f),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var h=+(l==="left"&&!u||l==="right"&&u);f=fn(fn({},f),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+s})}return V.createElement("line",vu({},f,{className:kt("recharts-cartesian-axis-line",na(c,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,u=s.stroke,c=s.tick,f=s.tickFormatter,d=s.unit,h=lw(fn(fn({},this.props),{},{ticks:n}),i,a),g=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),m=gt(this.props,!1),y=gt(c,!1),x=fn(fn({},m),{},{fill:"none"},gt(l,!1)),w=h.map(function(A,_){var E=o.getTickLineCoord(A),T=E.line,k=E.tick,L=fn(fn(fn(fn({textAnchor:g,verticalAnchor:p},m),{},{stroke:"none",fill:u},y),k),{},{index:_,payload:A,visibleTicksCount:h.length,tickFormatter:f});return V.createElement(or,vu({className:"recharts-cartesian-axis-tick",key:"tick-".concat(A.value,"-").concat(A.coordinate,"-").concat(A.tickCoord)},Iu(o.props,A,_)),l&&V.createElement("line",vu({},x,T,{className:kt("recharts-cartesian-axis-tick-line",na(l,"className"))})),c&&t.renderTickItem(c,L,"".concat(Et(f)?f(A.value,_):A.value).concat(d||"")))});return V.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,u=i.className,c=i.hide;if(c)return null;var f=this.props,d=f.ticks,h=P2(f,fie),g=d;return Et(l)&&(g=d&&d.length>0?l(this.props):l(h)),o<=0||s<=0||!g||!g.length?null:V.createElement(or,{className:kt("recharts-cartesian-axis",u),ref:function(m){n.layerReference=m}},a&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),jn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=kt(i.className,"recharts-cartesian-axis-tick-value");return V.isValidElement(n)?o=V.cloneElement(n,fn(fn({},i),{},{className:s})):Et(n)?o=n(fn(fn({},i),{},{className:s})):o=V.createElement($u,vu({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(V.Component);uw(wc,"displayName","CartesianAxis");uw(wc,"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 bie=["x1","y1","x2","y2","key"],wie=["offset"];function gl(e){"@babel/helpers - typeof";return gl=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},gl(e)}function ZO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(r),!0).forEach(function(n){_ie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _ie(e,t,r){return t=Sie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sie(e){var t=Aie(e,"string");return gl(t)=="symbol"?t:t+""}function Aie(e,t){if(gl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Js(){return Js=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},Js.apply(this,arguments)}function QO(e,t){if(e==null)return{};var r=Tie(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tie(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 Eie=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return V.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Uj(e,t){var r;if(V.isValidElement(e))r=V.cloneElement(e,t);else if(Et(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=QO(t,bie),u=gt(l,!1);u.offset;var c=QO(u,wie);r=V.createElement("line",Js({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function Oie(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Wn(Wn({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return Uj(i,u)});return V.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Pie(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Wn(Wn({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return Uj(i,u)});return V.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Nie(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var c=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==c[0]&&c.unshift(0);var f=c.map(function(d,h){var g=!c[h+1],p=g?i+o-d:c[h+1]-d;if(p<=0)return null;var m=h%t.length;return V.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:a,stroke:"none",fill:t[m],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function Cie(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var c=u.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==c[0]&&c.unshift(0);var f=c.map(function(d,h){var g=!c[h+1],p=g?a+s-d:c[h+1]-d;if(p<=0)return null;var m=h%n.length;return V.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:p,height:l,stroke:"none",fill:n[m],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var jie=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return DC(lw(Wn(Wn(Wn({},wc.defaultProps),n),{},{ticks:_o(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},kie=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return DC(lw(Wn(Wn(Wn({},wc.defaultProps),n),{},{ticks:_o(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},au={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function xb(e){var t,r,n,i,a,o,s=iw(),l=aw(),u=xne(),c=Wn(Wn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:au.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:au.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:au.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:au.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:au.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:au.verticalFill,x:nt(e.x)?e.x:u.left,y:nt(e.y)?e.y:u.top,width:nt(e.width)?e.width:u.width,height:nt(e.height)?e.height:u.height}),f=c.x,d=c.y,h=c.width,g=c.height,p=c.syncWithTicks,m=c.horizontalValues,y=c.verticalValues,x=mne(),w=gne();if(!nt(h)||h<=0||!nt(g)||g<=0||!nt(f)||f!==+f||!nt(d)||d!==+d)return null;var A=c.verticalCoordinatesGenerator||jie,_=c.horizontalCoordinatesGenerator||kie,E=c.horizontalPoints,T=c.verticalPoints;if((!E||!E.length)&&Et(_)){var k=m&&m.length,L=_({yAxis:w?Wn(Wn({},w),{},{ticks:k?m:w.ticks}):void 0,width:s,height:l,offset:u},k?!0:p);Oo(Array.isArray(L),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(gl(L),"]")),Array.isArray(L)&&(E=L)}if((!T||!T.length)&&Et(A)){var D=y&&y.length,C=A({xAxis:x?Wn(Wn({},x),{},{ticks:D?y:x.ticks}):void 0,width:s,height:l,offset:u},D?!0:p);Oo(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(gl(C),"]")),Array.isArray(C)&&(T=C)}return V.createElement("g",{className:"recharts-cartesian-grid"},V.createElement(Eie,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),V.createElement(Oie,Js({},c,{offset:u,horizontalPoints:E,xAxis:x,yAxis:w})),V.createElement(Pie,Js({},c,{offset:u,verticalPoints:T,xAxis:x,yAxis:w})),V.createElement(Nie,Js({},c,{horizontalPoints:E})),V.createElement(Cie,Js({},c,{verticalPoints:T})))}xb.displayName="CartesianGrid";var Lie=["type","layout","connectNulls","ref"],Iie=["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 eP(e,t){if(e==null)return{};var r=Fie(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fie(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 tP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ni(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tP(Object(r),!0).forEach(function(n){Aa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ou(e){return Bie(e)||Die(e)||Mie(e)||Rie()}function Rie(){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 Mie(e,t){if(e){if(typeof e=="string")return bb(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 bb(e,t)}}function Die(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bie(e){if(Array.isArray(e))return bb(e)}function bb(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 $ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rP(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,Wj(n.key),n)}}function qie(e,t,r){return t&&rP(e.prototype,t),r&&rP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uie(e,t,r){return t=Pp(t),zie(e,zj()?Reflect.construct(t,r||[],Pp(e).constructor):t.apply(e,r))}function zie(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 Wie(e)}function Wie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zj=function(){return!!e})()}function Pp(e){return Pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pp(e)}function Hie(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&&wb(e,t)}function wb(e,t){return wb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wb(e,t)}function Aa(e,t,r){return t=Wj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wj(e){var t=Gie(e,"string");return nc(t)=="symbol"?t:t+""}function Gie(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 ms=(function(e){function t(){var r;$ie(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Uie(this,t,[].concat(i)),Aa(r,"state",{isAnimationFinished:!0,totalLength:0}),Aa(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Aa(r,"getStrokeDasharray",function(o,s,l){var u=l.reduce(function(y,x){return y+x});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/u),f=o%u,d=s-o,h=[],g=0,p=0;g<l.length;p+=l[g],++g)if(p+l[g]>f){h=[].concat(ou(l.slice(0,g)),[f-p]);break}var m=h.length%2===0?[0,d]:[d];return[].concat(ou(t.repeat(l,c)),ou(h),m).map(function(y){return"".concat(y,"px")}).join(", ")}),Aa(r,"id",Mh("recharts-line-")),Aa(r,"pathRef",function(o){r.mainCurve=o}),Aa(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Aa(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return Hie(t,e),qie(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,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=ia(c,Wh);if(!f)return null;var d=function(p,m){return{x:p.x,y:p.y,value:p.value,errorVal:oi(p.payload,m)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return V.createElement(or,h,f.map(function(g){return V.cloneElement(g,{key:"bar-".concat(g.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,c=s.dataKey,f=gt(this.props,!1),d=gt(l,!0),h=u.map(function(p,m){var y=Ni(Ni(Ni({key:"dot-".concat(m),r:3},f),d),{},{index:m,cx:p.x,cy:p.y,value:p.value,dataKey:c,payload:p.payload,points:u});return t.renderDotItem(l,y)}),g={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return V.createElement(or,Ff({className:"recharts-line-dots",key:"dots"},g),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,u=s.layout,c=s.connectNulls;s.ref;var f=eP(s,Lie),d=Ni(Ni(Ni({},gt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:c});return V.createElement(Vx,Ff({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,g=o.animateNewValues,p=o.width,m=o.height,y=this.state,x=y.prevPoints,w=y.totalLength;return V.createElement(Za,{begin:c,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(A){var _=A.t;if(x){var E=x.length/s.length,T=s.map(function(P,M){var q=Math.floor(M*E);if(x[q]){var J=x[q],U=ri(J.x,P.x),H=ri(J.y,P.y);return Ni(Ni({},P),{},{x:U(_),y:H(_)})}if(g){var ee=ri(p*2,P.x),Z=ri(m/2,P.y);return Ni(Ni({},P),{},{x:ee(_),y:Z(_)})}return Ni(Ni({},P),{},{x:P.x,y:P.y})});return a.renderCurveStatically(T,n,i)}var k=ri(0,w),L=k(_),D;if(l){var C="".concat(l).split(/[,\s]+/gim).map(function(P){return parseFloat(P)});D=a.getStrokeDasharray(L,w,C)}else D=a.generateSimpleStrokeDasharray(w,L);return a.renderCurveStatically(s,n,i,{strokeDasharray:D})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,u=l.prevPoints,c=l.totalLength;return s&&o&&o.length&&(!u&&c>0||!zh(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.xAxis,c=i.yAxis,f=i.top,d=i.left,h=i.width,g=i.height,p=i.isAnimationActive,m=i.id;if(a||!s||!s.length)return null;var y=this.state.isAnimationFinished,x=s.length===1,w=kt("recharts-line",l),A=u&&u.allowDataOverflow,_=c&&c.allowDataOverflow,E=A||_,T=Bt(m)?this.id:m,k=(n=gt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},L=k.r,D=L===void 0?3:L,C=k.strokeWidth,P=C===void 0?2:C,M=JU(o)?o:{},q=M.clipDot,J=q===void 0?!0:q,U=D*2+P;return V.createElement(or,{className:w},A||_?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(T)},V.createElement("rect",{x:A?d:d-h/2,y:_?f:f-g/2,width:A?h:h*2,height:_?g:g*2})),!J&&V.createElement("clipPath",{id:"clipPath-dots-".concat(T)},V.createElement("rect",{x:d-U/2,y:f-U/2,width:h+U,height:g+U}))):null,!x&&this.renderCurve(E,T),this.renderErrorBar(E,T),(x||o)&&this.renderDots(E,J,T),(!p||y)&&No.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(ou(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(ou(o),ou(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(V.isValidElement(n))a=V.cloneElement(n,i);else if(Et(n))a=n(i);else{var o=i.key,s=eP(i,Iie),l=kt("recharts-line-dot",typeof n!="boolean"?n.className:"");a=V.createElement(Hh,Ff({key:o},s,{className:l}))}return a}}])})(V.PureComponent);Aa(ms,"displayName","Line");Aa(ms,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Tl.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Aa(ms,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,c=t.layout,f=l.map(function(d,h){var g=oi(d,o);return c==="horizontal"?{x:JT({axis:r,ticks:i,bandSize:s,entry:d,index:h}),y:Bt(g)?null:n.scale(g),value:g,payload:d}:{x:Bt(g)?null:r.scale(g),y:JT({axis:n,ticks:a,bandSize:s,entry:d,index:h}),value:g,payload:d}});return Ni({points:f,layout:c},u)});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 Vie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kie(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,Vj(n.key),n)}}function Yie(e,t,r){return t&&Kie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xie(e,t,r){return t=Np(t),Jie(e,Hj()?Reflect.construct(t,r||[],Np(e).constructor):t.apply(e,r))}function Jie(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 Zie(e)}function Zie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hj=function(){return!!e})()}function Np(e){return Np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Np(e)}function Qie(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&&_b(e,t)}function _b(e,t){return _b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_b(e,t)}function Gj(e,t,r){return t=Vj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vj(e){var t=eae(e,"string");return ic(t)=="symbol"?t:t+""}function eae(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)}function Sb(){return Sb=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},Sb.apply(this,arguments)}function tae(e){var t=e.xAxisId,r=iw(),n=aw(),i=jj(t);return i==null?null:vn.createElement(wc,Sb({},i,{className:kt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return _o(o,!0)}}))}var ac=(function(e){function t(){return Vie(this,t),Xie(this,t,arguments)}return Qie(t,e),Yie(t,[{key:"render",value:function(){return vn.createElement(tae,this.props)}}])})(vn.Component);Gj(ac,"displayName","XAxis");Gj(ac,"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 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 rae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nae(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,Xj(n.key),n)}}function iae(e,t,r){return t&&nae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aae(e,t,r){return t=Cp(t),oae(e,Kj()?Reflect.construct(t,r||[],Cp(e).constructor):t.apply(e,r))}function oae(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 sae(e)}function sae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kj=function(){return!!e})()}function Cp(e){return Cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cp(e)}function lae(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&&Ab(e,t)}function Ab(e,t){return Ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ab(e,t)}function Yj(e,t,r){return t=Xj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xj(e){var t=uae(e,"string");return oc(t)=="symbol"?t:t+""}function uae(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)}function Tb(){return Tb=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},Tb.apply(this,arguments)}var cae=function(t){var r=t.yAxisId,n=iw(),i=aw(),a=kj(r);return a==null?null:vn.createElement(wc,Tb({},a,{className:kt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return _o(s,!0)}}))},sc=(function(e){function t(){return rae(this,t),aae(this,t,arguments)}return lae(t,e),iae(t,[{key:"render",value:function(){return vn.createElement(cae,this.props)}}])})(vn.Component);Yj(sc,"displayName","YAxis");Yj(sc,"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 nP(e){return pae(e)||dae(e)||hae(e)||fae()}function fae(){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 hae(e,t){if(e){if(typeof e=="string")return Eb(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 Eb(e,t)}}function dae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pae(e){if(Array.isArray(e))return Eb(e)}function Eb(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 Ob=function(t,r,n,i,a){var o=ia(t,sw),s=ia(t,x1),l=[].concat(nP(o),nP(s)),u=ia(t,w1),c="".concat(i,"Id"),f=i[0],d=r;if(l.length&&(d=l.reduce(function(p,m){if(m.props[c]===n&&Ya(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)),u.length){var h="".concat(f,"1"),g="".concat(f,"2");d=u.reduce(function(p,m){if(m.props[c]===n&&Ya(m.props,"extendDomain")&&nt(m.props[h])&&nt(m.props[g])){var y=m.props[h],x=m.props[g];return[Math.min(p[0],y,x),Math.max(p[1],y,x)]}return p},d)}return a&&a.length&&(d=a.reduce(function(p,m){return nt(m)?[Math.min(p[0],m),Math.max(p[1],m)]:p},d)),d},N2={exports:{}},iP;function vae(){return iP||(iP=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new i(c,f||l,d),g=r?r+u:u;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],h]:l._events[g].push(h):(l._events[g]=h,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,g=new Array(h);d<h;d++)g[d]=f[d].fn;return g},s.prototype.listenerCount=function(u){var c=r?r+u:u,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,c,f,d,h,g){var p=r?r+u:u;if(!this._events[p])return!1;var m=this._events[p],y=arguments.length,x,w;if(m.fn){switch(m.once&&this.removeListener(u,m.fn,void 0,!0),y){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,c),!0;case 3:return m.fn.call(m.context,c,f),!0;case 4:return m.fn.call(m.context,c,f,d),!0;case 5:return m.fn.call(m.context,c,f,d,h),!0;case 6:return m.fn.call(m.context,c,f,d,h,g),!0}for(w=1,x=new Array(y-1);w<y;w++)x[w-1]=arguments[w];m.fn.apply(m.context,x)}else{var A=m.length,_;for(w=0;w<A;w++)switch(m[w].once&&this.removeListener(u,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,c);break;case 3:m[w].fn.call(m[w].context,c,f);break;case 4:m[w].fn.call(m[w].context,c,f,d);break;default:if(!x)for(_=1,x=new Array(y-1);_<y;_++)x[_-1]=arguments[_];m[w].fn.apply(m[w].context,x)}}return!0},s.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},s.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},s.prototype.removeListener=function(u,c,f,d){var h=r?r+u:u;if(!this._events[h])return this;if(!c)return o(this,h),this;var g=this._events[h];if(g.fn)g.fn===c&&(!d||g.once)&&(!f||g.context===f)&&o(this,h);else{for(var p=0,m=[],y=g.length;p<y;p++)(g[p].fn!==c||d&&!g[p].once||f&&g[p].context!==f)&&m.push(g[p]);m.length?this._events[h]=m.length===1?m[0]:m:o(this,h)}return this},s.prototype.removeAllListeners=function(u){var c;return u?(c=r?r+u:u,this._events[c]&&o(this,c)):(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})(N2)),N2.exports}var mae=vae();const gae=ur(mae);var C2=new gae,j2="recharts.syncMouseEvents";function Th(e){"@babel/helpers - typeof";return Th=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},Th(e)}function yae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xae(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,Jj(n.key),n)}}function bae(e,t,r){return t&&xae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function k2(e,t,r){return t=Jj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jj(e){var t=wae(e,"string");return Th(t)=="symbol"?t:t+""}function wae(e,t){if(Th(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Th(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _ae=(function(){function e(){yae(this,e),k2(this,"activeIndex",0),k2(this,"coordinateList",[]),k2(this,"layout","horizontal")}return bae(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,c=r.offset,f=c===void 0?null:c,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??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 i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,c=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+l+u,d=o+this.offset.top+s/2+c;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])})();function Sae(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&nt(n)&&nt(i))return!0}return!1}function Aae(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Zj(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=br(t,r,n,i),s=br(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function Tae(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,d=br(s,l,u,f),h=br(s,l,c,f);n=d.x,i=d.y,a=h.x,o=h.y}else return Zj(t);return[{x:n,y:i},{x:a,y:o}]}function Eh(e){"@babel/helpers - typeof";return Eh=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},Eh(e)}function aP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aP(Object(r),!0).forEach(function(n){Eae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Eae(e,t,r){return t=Oae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oae(e){var t=Pae(e,"string");return Eh(t)=="symbol"?t:t+""}function Pae(e,t){if(Eh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Eh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nae(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,c=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||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var g,p=Vx;if(d==="ScatterChart")g=o,p=kee;else if(d==="BarChart")g=Aae(f,o,l,c),p=ew;else if(f==="radial"){var m=Zj(o),y=m.cx,x=m.cy,w=m.radius,A=m.startAngle,_=m.endAngle;g={cx:y,cy:x,startAngle:A,endAngle:_,innerRadius:w,outerRadius:w},p=YC}else g={points:Tae(f,o,l)},p=Vx;var E=cd(cd(cd(cd({stroke:"#ccc",pointerEvents:"none"},l),g),gt(h,!1)),{},{payload:s,payloadIndex:u,className:kt("recharts-tooltip-cursor",h.className)});return V.isValidElement(h)?V.cloneElement(h,E):V.createElement(p,E)}var Cae=["item"],jae=["children","className","width","height","style","compact","title","desc"];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 mu(){return mu=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},mu.apply(this,arguments)}function oP(e,t){return Iae(e)||Lae(e,t)||ek(e,t)||kae()}function kae(){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 Lae(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Iae(e){if(Array.isArray(e))return e}function sP(e,t){if(e==null)return{};var r=Fae(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fae(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 Rae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mae(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,tk(n.key),n)}}function Dae(e,t,r){return t&&Mae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bae(e,t,r){return t=jp(t),$ae(e,Qj()?Reflect.construct(t,r||[],jp(e).constructor):t.apply(e,r))}function $ae(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 qae(e)}function qae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qj=function(){return!!e})()}function jp(e){return jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jp(e)}function Uae(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&&Pb(e,t)}function Pb(e,t){return Pb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pb(e,t)}function uc(e){return Hae(e)||Wae(e)||ek(e)||zae()}function zae(){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 ek(e,t){if(e){if(typeof e=="string")return Nb(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 Nb(e,t)}}function Wae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hae(e){if(Array.isArray(e))return Nb(e)}function Nb(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 lP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lP(Object(r),!0).forEach(function(n){wt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wt(e,t,r){return t=tk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tk(e){var t=Gae(e,"string");return lc(t)=="symbol"?t:t+""}function Gae(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(t==="string"?String:Number)(e)}var Vae={xAxis:["bottom","top"],yAxis:["left","right"]},Kae={width:"100%",height:"100%"},rk={x:0,y:0};function fd(e){return e}var Yae=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},Xae=function(t,r,n,i){var a=r.find(function(c){return c&&c.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return De(De(De({},i),br(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return De(De(De({},i),br(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return rk},_1=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(uc(s),uc(u)):s},[]);return o.length>0?o:t&&t.length&&nt(i)&&nt(a)?t.slice(i,a+1):[]};function nk(e){return e==="number"?[0,"auto"]:void 0}var Cb=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=_1(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c: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=Cd(h,o.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(uc(l),[zC(u,d)]):l},[])},uP=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=Yae(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=YX(o,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,d=Cb(t,r,c,f),h=Xae(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},Jae=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,h=MC(c,a);return n.reduce(function(g,p){var m,y=p.type.defaultProps!==void 0?De(De({},p.type.defaultProps),p.props):p.props,x=y.type,w=y.dataKey,A=y.allowDataOverflow,_=y.allowDuplicatedCategory,E=y.scale,T=y.ticks,k=y.includeHidden,L=y[o];if(g[L])return g;var D=_1(t.data,{graphicalItems:i.filter(function(N){var I,R=o in N.props?N.props[o]:(I=N.type.defaultProps)===null||I===void 0?void 0:I[o];return R===L}),dataStartIndex:l,dataEndIndex:u}),C=D.length,P,M,q;Sae(y.domain,A,x)&&(P=Ux(y.domain,null,A),h&&(x==="number"||E!=="auto")&&(q=jf(D,w,"category")));var J=nk(x);if(!P||P.length===0){var U,H=(U=y.domain)!==null&&U!==void 0?U:J;if(w){if(P=jf(D,w,x),x==="category"&&h){var ee=qU(P);_&&ee?(M=P,P=gp(0,C)):_||(P=tE(H,P,p).reduce(function(N,I){return N.indexOf(I)>=0?N:[].concat(uc(N),[I])},[]))}else if(x==="category")_?P=P.filter(function(N){return N!==""&&!Bt(N)}):P=tE(H,P,p).reduce(function(N,I){return N.indexOf(I)>=0||I===""||Bt(I)?N:[].concat(uc(N),[I])},[]);else if(x==="number"){var Z=eJ(D,i.filter(function(N){var I,R,B=o in N.props?N.props[o]:(I=N.type.defaultProps)===null||I===void 0?void 0:I[o],G="hide"in N.props?N.props.hide:(R=N.type.defaultProps)===null||R===void 0?void 0:R.hide;return B===L&&(k||!G)}),w,a,c);Z&&(P=Z)}h&&(x==="number"||E!=="auto")&&(q=jf(D,w,"category"))}else h?P=gp(0,C):s&&s[L]&&s[L].hasStack&&x==="number"?P=d==="expand"?[0,1]:UC(s[L].stackGroups,l,u):P=RC(D,i.filter(function(N){var I=o in N.props?N.props[o]:N.type.defaultProps[o],R="hide"in N.props?N.props.hide:N.type.defaultProps.hide;return I===L&&(k||!R)}),x,c,!0);if(x==="number")P=Ob(f,P,L,a,T),H&&(P=Ux(H,P,A));else if(x==="category"&&H){var Q=H,le=P.every(function(N){return Q.indexOf(N)>=0});le&&(P=Q)}}return De(De({},g),{},wt({},L,De(De({},y),{},{axisType:a,domain:P,categoricalDomain:q,duplicateDomain:M,originalDomain:(m=y.domain)!==null&&m!==void 0?m:J,isCategorical:h,layout:c})))},{})},Zae=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=_1(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),h=d.length,g=MC(c,a),p=-1;return n.reduce(function(m,y){var x=y.type.defaultProps!==void 0?De(De({},y.type.defaultProps),y.props):y.props,w=x[o],A=nk("number");if(!m[w]){p++;var _;return g?_=gp(0,h):s&&s[w]&&s[w].hasStack?(_=UC(s[w].stackGroups,l,u),_=Ob(f,_,w,a)):(_=Ux(A,RC(d,n.filter(function(E){var T,k,L=o in E.props?E.props[o]:(T=E.type.defaultProps)===null||T===void 0?void 0:T[o],D="hide"in E.props?E.props.hide:(k=E.type.defaultProps)===null||k===void 0?void 0:k.hide;return L===w&&!D}),"number",c),i.defaultProps.allowDataOverflow),_=Ob(f,_,w,a)),De(De({},m),{},wt({},w,De(De({axisType:a},i.defaultProps),{},{hide:!0,orientation:na(Vae,"".concat(a,".").concat(p%2),null),domain:_,originalDomain:A,isCategorical:g,layout:c})))}return m},{})},Qae=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),d=ia(c,a),h={};return d&&d.length?h=Jae(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(h=Zae(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},eoe=function(t){var r=ss(t),n=_o(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:E5(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:rp(r,n)}},cP=function(t){var r=t.children,n=t.defaultShowTooltip,i=ki(r,Xu),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},toe=function(t){return!t||!t.length?!1:t.some(function(r){var n=Eo(r&&r.type);return n&&n.indexOf("Bar")>=0})},fP=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"}},roe=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,c=n.height,f=n.children,d=n.margin||{},h=ki(f,Xu),g=ki(f,ll),p=Object.keys(l).reduce(function(_,E){var T=l[E],k=T.orientation;return!T.mirror&&!T.hide?De(De({},_),{},wt({},k,_[k]+T.width)):_},{left:d.left||0,right:d.right||0}),m=Object.keys(o).reduce(function(_,E){var T=o[E],k=T.orientation;return!T.mirror&&!T.hide?De(De({},_),{},wt({},k,na(_,"".concat(k))+T.height)):_},{top:d.top||0,bottom:d.bottom||0}),y=De(De({},m),p),x=y.bottom;h&&(y.bottom+=h.props.height||Xu.defaultProps.height),g&&r&&(y=ZX(y,i,n,r));var w=u-y.left-y.right,A=c-y.top-y.bottom;return De(De({brushBottom:x},y),{},{width:Math.max(w,0),height:Math.max(A,0)})},noe=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},cw=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,d=function(y,x){var w=x.graphicalItems,A=x.stackGroups,_=x.offset,E=x.updateId,T=x.dataStartIndex,k=x.dataEndIndex,L=y.barSize,D=y.layout,C=y.barGap,P=y.barCategoryGap,M=y.maxBarSize,q=fP(D),J=q.numericAxisName,U=q.cateAxisName,H=toe(w),ee=[];return w.forEach(function(Z,Q){var le=_1(y.data,{graphicalItems:[Z],dataStartIndex:T,dataEndIndex:k}),N=Z.type.defaultProps!==void 0?De(De({},Z.type.defaultProps),Z.props):Z.props,I=N.dataKey,R=N.maxBarSize,B=N["".concat(J,"Id")],G=N["".concat(U,"Id")],ce={},he=l.reduce(function(Ze,Je){var dt,pt,bt=x["".concat(Je.axisType,"Map")],Ot=N["".concat(Je.axisType,"Id")];bt&&bt[Ot]||Je.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?mi(!1,"Specifying a(n) ".concat(Je.axisType,"Id requires a corresponding ").concat(Je.axisType,"Id on the targeted graphical component ").concat((dt=Z==null||(pt=Z.type)===null||pt===void 0?void 0:pt.displayName)!==null&&dt!==void 0?dt:"")):mi());var Rt=bt[Ot];return De(De({},Ze),{},wt(wt({},Je.axisType,Rt),"".concat(Je.axisType,"Ticks"),_o(Rt)))},ce),ne=he[U],me=he["".concat(U,"Ticks")],Se=A&&A[B]&&A[B].hasStack&&uJ(Z,A[B].stackGroups),ue=Eo(Z.type).indexOf("Bar")>=0,Ie=rp(ne,me),ge=[],_e=H&&XX({barSize:L,stackGroups:A,totalSize:noe(he,U)});if(ue){var oe,Re,tt=Bt(R)?M:R,Be=(oe=(Re=rp(ne,me,!0))!==null&&Re!==void 0?Re:tt)!==null&&oe!==void 0?oe:0;ge=JX({barGap:C,barCategoryGap:P,bandSize:Be!==Ie?Be:Ie,sizeList:_e[G],maxBarSize:tt}),Be!==Ie&&(ge=ge.map(function(Ze){return De(De({},Ze),{},{position:De(De({},Ze.position),{},{offset:Ze.position.offset-Be/2})})}))}var Ke=Z&&Z.type&&Z.type.getComposedData;Ke&&ee.push({props:De(De({},Ke(De(De({},he),{},{displayedData:le,props:y,dataKey:I,item:Z,bandSize:Ie,barPosition:ge,offset:_,stackedData:Se,layout:D,dataStartIndex:T,dataEndIndex:k}))),{},wt(wt(wt({key:Z.key||"item-".concat(Q)},J,he[J]),U,he[U]),"animationId",E)),childIndex:ez(Z,y.children),item:Z})}),ee},h=function(y,x){var w=y.props,A=y.dataStartIndex,_=y.dataEndIndex,E=y.updateId;if(!v4({props:w}))return null;var T=w.children,k=w.layout,L=w.stackOffset,D=w.data,C=w.reverseStackOrder,P=fP(k),M=P.numericAxisName,q=P.cateAxisName,J=ia(T,n),U=sJ(D,J,"".concat(M,"Id"),"".concat(q,"Id"),L,C),H=l.reduce(function(N,I){var R="".concat(I.axisType,"Map");return De(De({},N),{},wt({},R,Qae(w,De(De({},I),{},{graphicalItems:J,stackGroups:I.axisType===M&&U,dataStartIndex:A,dataEndIndex:_}))))},{}),ee=roe(De(De({},H),{},{props:w,graphicalItems:J}),x==null?void 0:x.legendBBox);Object.keys(H).forEach(function(N){H[N]=c(w,H[N],ee,N.replace("Map",""),r)});var Z=H["".concat(q,"Map")],Q=eoe(Z),le=d(w,De(De({},H),{},{dataStartIndex:A,dataEndIndex:_,updateId:E,graphicalItems:J,stackGroups:U,offset:ee}));return De(De({formattedGraphicalItems:le,graphicalItems:J,offset:ee,stackGroups:U},Q),H)},g=(function(m){function y(x){var w,A,_;return Rae(this,y),_=Bae(this,y,[x]),wt(_,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),wt(_,"accessibilityManager",new _ae),wt(_,"handleLegendBBoxUpdate",function(E){if(E){var T=_.state,k=T.dataStartIndex,L=T.dataEndIndex,D=T.updateId;_.setState(De({legendBBox:E},h({props:_.props,dataStartIndex:k,dataEndIndex:L,updateId:D},De(De({},_.state),{},{legendBBox:E}))))}}),wt(_,"handleReceiveSyncEvent",function(E,T,k){if(_.props.syncId===E){if(k===_.eventEmitterSymbol&&typeof _.props.syncMethod!="function")return;_.applySyncEvent(T)}}),wt(_,"handleBrushChange",function(E){var T=E.startIndex,k=E.endIndex;if(T!==_.state.dataStartIndex||k!==_.state.dataEndIndex){var L=_.state.updateId;_.setState(function(){return De({dataStartIndex:T,dataEndIndex:k},h({props:_.props,dataStartIndex:T,dataEndIndex:k,updateId:L},_.state))}),_.triggerSyncEvent({dataStartIndex:T,dataEndIndex:k})}}),wt(_,"handleMouseEnter",function(E){var T=_.getMouseInfo(E);if(T){var k=De(De({},T),{},{isTooltipActive:!0});_.setState(k),_.triggerSyncEvent(k);var L=_.props.onMouseEnter;Et(L)&&L(k,E)}}),wt(_,"triggeredAfterMouseMove",function(E){var T=_.getMouseInfo(E),k=T?De(De({},T),{},{isTooltipActive:!0}):{isTooltipActive:!1};_.setState(k),_.triggerSyncEvent(k);var L=_.props.onMouseMove;Et(L)&&L(k,E)}),wt(_,"handleItemMouseEnter",function(E){_.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),wt(_,"handleItemMouseLeave",function(){_.setState(function(){return{isTooltipActive:!1}})}),wt(_,"handleMouseMove",function(E){E.persist(),_.throttleTriggeredAfterMouseMove(E)}),wt(_,"handleMouseLeave",function(E){_.throttleTriggeredAfterMouseMove.cancel();var T={isTooltipActive:!1};_.setState(T),_.triggerSyncEvent(T);var k=_.props.onMouseLeave;Et(k)&&k(T,E)}),wt(_,"handleOuterEvent",function(E){var T=QU(E),k=na(_.props,"".concat(T));if(T&&Et(k)){var L,D;/.*touch.*/i.test(T)?D=_.getMouseInfo(E.changedTouches[0]):D=_.getMouseInfo(E),k((L=D)!==null&&L!==void 0?L:{},E)}}),wt(_,"handleClick",function(E){var T=_.getMouseInfo(E);if(T){var k=De(De({},T),{},{isTooltipActive:!0});_.setState(k),_.triggerSyncEvent(k);var L=_.props.onClick;Et(L)&&L(k,E)}}),wt(_,"handleMouseDown",function(E){var T=_.props.onMouseDown;if(Et(T)){var k=_.getMouseInfo(E);T(k,E)}}),wt(_,"handleMouseUp",function(E){var T=_.props.onMouseUp;if(Et(T)){var k=_.getMouseInfo(E);T(k,E)}}),wt(_,"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&_.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),wt(_,"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&_.handleMouseDown(E.changedTouches[0])}),wt(_,"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&_.handleMouseUp(E.changedTouches[0])}),wt(_,"handleDoubleClick",function(E){var T=_.props.onDoubleClick;if(Et(T)){var k=_.getMouseInfo(E);T(k,E)}}),wt(_,"handleContextMenu",function(E){var T=_.props.onContextMenu;if(Et(T)){var k=_.getMouseInfo(E);T(k,E)}}),wt(_,"triggerSyncEvent",function(E){_.props.syncId!==void 0&&C2.emit(j2,_.props.syncId,E,_.eventEmitterSymbol)}),wt(_,"applySyncEvent",function(E){var T=_.props,k=T.layout,L=T.syncMethod,D=_.state.updateId,C=E.dataStartIndex,P=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)_.setState(De({dataStartIndex:C,dataEndIndex:P},h({props:_.props,dataStartIndex:C,dataEndIndex:P,updateId:D},_.state)));else if(E.activeTooltipIndex!==void 0){var M=E.chartX,q=E.chartY,J=E.activeTooltipIndex,U=_.state,H=U.offset,ee=U.tooltipTicks;if(!H)return;if(typeof L=="function")J=L(ee,E);else if(L==="value"){J=-1;for(var Z=0;Z<ee.length;Z++)if(ee[Z].value===E.activeLabel){J=Z;break}}var Q=De(De({},H),{},{x:H.left,y:H.top}),le=Math.min(M,Q.x+Q.width),N=Math.min(q,Q.y+Q.height),I=ee[J]&&ee[J].value,R=Cb(_.state,_.props.data,J),B=ee[J]?{x:k==="horizontal"?ee[J].coordinate:le,y:k==="horizontal"?N:ee[J].coordinate}:rk;_.setState(De(De({},E),{},{activeLabel:I,activeCoordinate:B,activePayload:R,activeTooltipIndex:J}))}else _.setState(E)}),wt(_,"renderCursor",function(E){var T,k=_.state,L=k.isTooltipActive,D=k.activeCoordinate,C=k.activePayload,P=k.offset,M=k.activeTooltipIndex,q=k.tooltipAxisBandSize,J=_.getTooltipEventType(),U=(T=E.props.active)!==null&&T!==void 0?T:L,H=_.props.layout,ee=E.key||"_recharts-cursor";return V.createElement(Nae,{key:ee,activeCoordinate:D,activePayload:C,activeTooltipIndex:M,chartName:r,element:E,isActive:U,layout:H,offset:P,tooltipAxisBandSize:q,tooltipEventType:J})}),wt(_,"renderPolarAxis",function(E,T,k){var L=na(E,"type.axisType"),D=na(_.state,"".concat(L,"Map")),C=E.type.defaultProps,P=C!==void 0?De(De({},C),E.props):E.props,M=D&&D[P["".concat(L,"Id")]];return V.cloneElement(E,De(De({},M),{},{className:kt(L,M.className),key:E.key||"".concat(T,"-").concat(k),ticks:_o(M,!0)}))}),wt(_,"renderPolarGrid",function(E){var T=E.props,k=T.radialLines,L=T.polarAngles,D=T.polarRadius,C=_.state,P=C.radiusAxisMap,M=C.angleAxisMap,q=ss(P),J=ss(M),U=J.cx,H=J.cy,ee=J.innerRadius,Z=J.outerRadius;return V.cloneElement(E,{polarAngles:Array.isArray(L)?L:_o(J,!0).map(function(Q){return Q.coordinate}),polarRadius:Array.isArray(D)?D:_o(q,!0).map(function(Q){return Q.coordinate}),cx:U,cy:H,innerRadius:ee,outerRadius:Z,key:E.key||"polar-grid",radialLines:k})}),wt(_,"renderLegend",function(){var E=_.state.formattedGraphicalItems,T=_.props,k=T.children,L=T.width,D=T.height,C=_.props.margin||{},P=L-(C.left||0)-(C.right||0),M=IC({children:k,formattedGraphicalItems:E,legendWidth:P,legendContent:u});if(!M)return null;var q=M.item,J=sP(M,Cae);return V.cloneElement(q,De(De({},J),{},{chartWidth:L,chartHeight:D,margin:C,onBBoxUpdate:_.handleLegendBBoxUpdate}))}),wt(_,"renderTooltip",function(){var E,T=_.props,k=T.children,L=T.accessibilityLayer,D=ki(k,_a);if(!D)return null;var C=_.state,P=C.isTooltipActive,M=C.activeCoordinate,q=C.activePayload,J=C.activeLabel,U=C.offset,H=(E=D.props.active)!==null&&E!==void 0?E:P;return V.cloneElement(D,{viewBox:De(De({},U),{},{x:U.left,y:U.top}),active:H,label:J,payload:H?q:[],coordinate:M,accessibilityLayer:L})}),wt(_,"renderBrush",function(E){var T=_.props,k=T.margin,L=T.data,D=_.state,C=D.offset,P=D.dataStartIndex,M=D.dataEndIndex,q=D.updateId;return V.cloneElement(E,{key:E.key||"_recharts-brush",onChange:id(_.handleBrushChange,E.props.onChange),data:L,x:nt(E.props.x)?E.props.x:C.left,y:nt(E.props.y)?E.props.y:C.top+C.height+C.brushBottom-(k.bottom||0),width:nt(E.props.width)?E.props.width:C.width,startIndex:P,endIndex:M,updateId:"brush-".concat(q)})}),wt(_,"renderReferenceElement",function(E,T,k){if(!E)return null;var L=_,D=L.clipPathId,C=_.state,P=C.xAxisMap,M=C.yAxisMap,q=C.offset,J=E.type.defaultProps||{},U=E.props,H=U.xAxisId,ee=H===void 0?J.xAxisId:H,Z=U.yAxisId,Q=Z===void 0?J.yAxisId:Z;return V.cloneElement(E,{key:E.key||"".concat(T,"-").concat(k),xAxis:P[ee],yAxis:M[Q],viewBox:{x:q.left,y:q.top,width:q.width,height:q.height},clipPathId:D})}),wt(_,"renderActivePoints",function(E){var T=E.item,k=E.activePoint,L=E.basePoint,D=E.childIndex,C=E.isRange,P=[],M=T.props.key,q=T.item.type.defaultProps!==void 0?De(De({},T.item.type.defaultProps),T.item.props):T.item.props,J=q.activeDot,U=q.dataKey,H=De(De({index:D,dataKey:U,cx:k.x,cy:k.y,r:4,fill:Z5(T.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},gt(J,!1)),jd(J));return P.push(y.renderActiveDot(J,H,"".concat(M,"-activePoint-").concat(D))),L?P.push(y.renderActiveDot(J,De(De({},H),{},{cx:L.x,cy:L.y}),"".concat(M,"-basePoint-").concat(D))):C&&P.push(null),P}),wt(_,"renderGraphicChild",function(E,T,k){var L=_.filterFormatItem(E,T,k);if(!L)return null;var D=_.getTooltipEventType(),C=_.state,P=C.isTooltipActive,M=C.tooltipAxis,q=C.activeTooltipIndex,J=C.activeLabel,U=_.props.children,H=ki(U,_a),ee=L.props,Z=ee.points,Q=ee.isRange,le=ee.baseLine,N=L.item.type.defaultProps!==void 0?De(De({},L.item.type.defaultProps),L.item.props):L.item.props,I=N.activeDot,R=N.hide,B=N.activeBar,G=N.activeShape,ce=!!(!R&&P&&H&&(I||B||G)),he={};D!=="axis"&&H&&H.props.trigger==="click"?he={onClick:id(_.handleItemMouseEnter,E.props.onClick)}:D!=="axis"&&(he={onMouseLeave:id(_.handleItemMouseLeave,E.props.onMouseLeave),onMouseEnter:id(_.handleItemMouseEnter,E.props.onMouseEnter)});var ne=V.cloneElement(E,De(De({},L.props),he));function me(Je){return typeof M.dataKey=="function"?M.dataKey(Je.payload):null}if(ce)if(q>=0){var Se,ue;if(M.dataKey&&!M.allowDuplicatedCategory){var Ie=typeof M.dataKey=="function"?me:"payload.".concat(M.dataKey.toString());Se=Cd(Z,Ie,J),ue=Q&&le&&Cd(le,Ie,J)}else Se=Z==null?void 0:Z[q],ue=Q&&le&&le[q];if(G||B){var ge=E.props.activeIndex!==void 0?E.props.activeIndex:q;return[V.cloneElement(E,De(De(De({},L.props),he),{},{activeIndex:ge})),null,null]}if(!Bt(Se))return[ne].concat(uc(_.renderActivePoints({item:L,activePoint:Se,basePoint:ue,childIndex:q,isRange:Q})))}else{var _e,oe=(_e=_.getItemByXY(_.state.activeCoordinate))!==null&&_e!==void 0?_e:{graphicalItem:ne},Re=oe.graphicalItem,tt=Re.item,Be=tt===void 0?E:tt,Ke=Re.childIndex,Ze=De(De(De({},L.props),he),{},{activeIndex:Ke});return[V.cloneElement(Be,Ze),null,null]}return Q?[ne,null,null]:[ne,null]}),wt(_,"renderCustomized",function(E,T,k){return V.cloneElement(E,De(De({key:"recharts-customized-".concat(k)},_.props),_.state))}),wt(_,"renderMap",{CartesianGrid:{handler:fd,once:!0},ReferenceArea:{handler:_.renderReferenceElement},ReferenceLine:{handler:fd},ReferenceDot:{handler:_.renderReferenceElement},XAxis:{handler:fd},YAxis:{handler:fd},Brush:{handler:_.renderBrush,once:!0},Bar:{handler:_.renderGraphicChild},Line:{handler:_.renderGraphicChild},Area:{handler:_.renderGraphicChild},Radar:{handler:_.renderGraphicChild},RadialBar:{handler:_.renderGraphicChild},Scatter:{handler:_.renderGraphicChild},Pie:{handler:_.renderGraphicChild},Funnel:{handler:_.renderGraphicChild},Tooltip:{handler:_.renderCursor,once:!0},PolarGrid:{handler:_.renderPolarGrid,once:!0},PolarAngleAxis:{handler:_.renderPolarAxis},PolarRadiusAxis:{handler:_.renderPolarAxis},Customized:{handler:_.renderCustomized}}),_.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:Mh("recharts"),"-clip"),_.throttleTriggeredAfterMouseMove=L8(_.triggeredAfterMouseMove,(A=x.throttleDelay)!==null&&A!==void 0?A:1e3/60),_.state={},_}return Uae(y,m),Dae(y,[{key:"componentDidMount",value:function(){var w,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,A=w.children,_=w.data,E=w.height,T=w.layout,k=ki(A,_a);if(k){var L=k.props.defaultIndex;if(!(typeof L!="number"||L<0||L>this.state.tooltipTicks.length-1)){var D=this.state.tooltipTicks[L]&&this.state.tooltipTicks[L].value,C=Cb(this.state,_,L,D),P=this.state.tooltipTicks[L].coordinate,M=(this.state.offset.top+E)/2,q=T==="horizontal",J=q?{x:P,y:M}:{y:P,x:M},U=this.state.formattedGraphicalItems.find(function(ee){var Z=ee.item;return Z.type.name==="Scatter"});U&&(J=De(De({},J),U.props.points[L].tooltipPosition),C=U.props.points[L].tooltipPayload);var H={activeTooltipIndex:L,isTooltipActive:!0,activeLabel:D,activePayload:C,activeCoordinate:J};this.setState(H),this.renderCursor(k),this.accessibilityManager.setIndex(L)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.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 _,E;this.accessibilityManager.setDetails({offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0}})}return null}},{key:"componentDidUpdate",value:function(w){cx([ki(w.children,_a)],[ki(this.props.children,_a)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=ki(this.props.children,_a);if(w&&typeof w.props.shared=="boolean"){var A=w.props.shared?"axis":"item";return s.indexOf(A)>=0?A:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var A=this.container,_=A.getBoundingClientRect(),E=qG(_),T={chartX:Math.round(w.pageX-E.left),chartY:Math.round(w.pageY-E.top)},k=_.width/A.offsetWidth||1,L=this.inRange(T.chartX,T.chartY,k);if(!L)return null;var D=this.state,C=D.xAxisMap,P=D.yAxisMap,M=this.getTooltipEventType(),q=uP(this.state,this.props.data,this.props.layout,L);if(M!=="axis"&&C&&P){var J=ss(C).scale,U=ss(P).scale,H=J&&J.invert?J.invert(T.chartX):null,ee=U&&U.invert?U.invert(T.chartY):null;return De(De({},T),{},{xValue:H,yValue:ee},q)}return q?De(De({},T),q):null}},{key:"inRange",value:function(w,A){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,E=this.props.layout,T=w/_,k=A/_;if(E==="horizontal"||E==="vertical"){var L=this.state.offset,D=T>=L.left&&T<=L.left+L.width&&k>=L.top&&k<=L.top+L.height;return D?{x:T,y:k}:null}var C=this.state,P=C.angleAxisMap,M=C.radiusAxisMap;if(P&&M){var q=ss(P);return iE({x:T,y:k},q)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,A=this.getTooltipEventType(),_=ki(w,_a),E={};_&&A==="axis"&&(_.props.trigger==="click"?E={onClick:this.handleClick}:E={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 T=jd(this.props,this.handleOuterEvent);return De(De({},T),E)}},{key:"addListener",value:function(){C2.on(j2,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){C2.removeListener(j2,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,A,_){for(var E=this.state.formattedGraphicalItems,T=0,k=E.length;T<k;T++){var L=E[T];if(L.item===w||L.props.key===w.key||A===Eo(L.item.type)&&_===L.childIndex)return L}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,A=this.state.offset,_=A.left,E=A.top,T=A.height,k=A.width;return V.createElement("defs",null,V.createElement("clipPath",{id:w},V.createElement("rect",{x:_,y:E,height:T,width:k})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(A,_){var E=oP(_,2),T=E[0],k=E[1];return De(De({},A),{},wt({},T,k.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(A,_){var E=oP(_,2),T=E[0],k=E[1];return De(De({},A),{},wt({},T,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var A;return(A=this.state.xAxisMap)===null||A===void 0||(A=A[w])===null||A===void 0?void 0:A.scale}},{key:"getYScaleByAxisId",value:function(w){var A;return(A=this.state.yAxisMap)===null||A===void 0||(A=A[w])===null||A===void 0?void 0:A.scale}},{key:"getItemByXY",value:function(w){var A=this.state,_=A.formattedGraphicalItems,E=A.activeItem;if(_&&_.length)for(var T=0,k=_.length;T<k;T++){var L=_[T],D=L.props,C=L.item,P=C.type.defaultProps!==void 0?De(De({},C.type.defaultProps),C.props):C.props,M=Eo(C.type);if(M==="Bar"){var q=(D.data||[]).find(function(ee){return dee(w,ee)});if(q)return{graphicalItem:L,payload:q}}else if(M==="RadialBar"){var J=(D.data||[]).find(function(ee){return iE(w,ee)});if(J)return{graphicalItem:L,payload:J}}else if(v1(L,E)||m1(L,E)||wh(L,E)){var U=Vte({graphicalItem:L,activeTooltipItem:E,itemData:P.data}),H=P.activeIndex===void 0?U:P.activeIndex;return{graphicalItem:De(De({},L),{},{childIndex:H}),payload:wh(L,E)?P.data[U]:L.props.data[U]}}}return null}},{key:"render",value:function(){var w=this;if(!v4(this))return null;var A=this.props,_=A.children,E=A.className,T=A.width,k=A.height,L=A.style,D=A.compact,C=A.title,P=A.desc,M=sP(A,jae),q=gt(M,!1);if(D)return V.createElement(qO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement(hx,mu({},q,{width:T,height:k,title:C,desc:P}),this.renderClipPath(),g4(_,this.renderMap)));if(this.props.accessibilityLayer){var J,U;q.tabIndex=(J=this.props.tabIndex)!==null&&J!==void 0?J:0,q.role=(U=this.props.role)!==null&&U!==void 0?U:"application",q.onKeyDown=function(ee){w.accessibilityManager.keyboardEvent(ee)},q.onFocus=function(){w.accessibilityManager.focus()}}var H=this.parseEventsOfWrapper();return V.createElement(qO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement("div",mu({className:kt("recharts-wrapper",E),style:De({position:"relative",cursor:"default",width:T,height:k},L)},H,{ref:function(Z){w.container=Z}}),V.createElement(hx,mu({},q,{width:T,height:k,title:C,desc:P,style:Kae}),this.renderClipPath(),g4(_,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(V.Component);wt(g,"displayName",r),wt(g,"defaultProps",De({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),wt(g,"getDerivedStateFromProps",function(m,y){var x=m.dataKey,w=m.data,A=m.children,_=m.width,E=m.height,T=m.layout,k=m.stackOffset,L=m.margin,D=y.dataStartIndex,C=y.dataEndIndex;if(y.updateId===void 0){var P=cP(m);return De(De(De({},P),{},{updateId:0},h(De(De({props:m},P),{},{updateId:0}),y)),{},{prevDataKey:x,prevData:w,prevWidth:_,prevHeight:E,prevLayout:T,prevStackOffset:k,prevMargin:L,prevChildren:A})}if(x!==y.prevDataKey||w!==y.prevData||_!==y.prevWidth||E!==y.prevHeight||T!==y.prevLayout||k!==y.prevStackOffset||!Su(L,y.prevMargin)){var M=cP(m),q={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},J=De(De({},uP(y,w,T)),{},{updateId:y.updateId+1}),U=De(De(De({},M),q),J);return De(De(De({},U),h(De({props:m},U),y)),{},{prevDataKey:x,prevData:w,prevWidth:_,prevHeight:E,prevLayout:T,prevStackOffset:k,prevMargin:L,prevChildren:A})}if(!cx(A,y.prevChildren)){var H,ee,Z,Q,le=ki(A,Xu),N=le&&(H=(ee=le.props)===null||ee===void 0?void 0:ee.startIndex)!==null&&H!==void 0?H:D,I=le&&(Z=(Q=le.props)===null||Q===void 0?void 0:Q.endIndex)!==null&&Z!==void 0?Z:C,R=N!==D||I!==C,B=!Bt(w),G=B&&!R?y.updateId:y.updateId+1;return De(De({updateId:G},h(De(De({props:m},y),{},{updateId:G,dataStartIndex:N,dataEndIndex:I}),y)),{},{prevChildren:A,dataStartIndex:N,dataEndIndex:I})}return null}),wt(g,"renderActiveDot",function(m,y,x){var w;return V.isValidElement(m)?w=V.cloneElement(m,y):Et(m)?w=m(y):w=V.createElement(Hh,y),V.createElement(or,{className:"recharts-active-dot",key:x},w)});var p=V.forwardRef(function(y,x){return V.createElement(g,mu({},y,{ref:x}))});return p.displayName=g.displayName,p},ioe=cw({chartName:"LineChart",GraphicalChild:ms,axisComponents:[{axisType:"xAxis",AxisComp:ac},{axisType:"yAxis",AxisComp:sc}],formatAxisMap:_j}),aoe=cw({chartName:"BarChart",GraphicalChild:Nl,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ac},{axisType:"yAxis",AxisComp:sc}],formatAxisMap:_j}),ooe=cw({chartName:"RadarChart",GraphicalChild:Kh,axisComponents:[{axisType:"angleAxis",AxisComp:Vh},{axisType:"radiusAxis",AxisComp:Gh}],formatAxisMap:bJ,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function soe({student:e,examResults:t=[],meetings:r=[],activities:n={activities:[],awards:[]},feeHistory:i={structure:[],payments:[]},disciplinaryRecords:a=[],students:o=[],selectedStudentId:s,onSelectStudent:l,classFilter:u,setClassFilter:c,classOptions:f=[],searchName:d,setSearchName:h,onEdit:g,onResetPassword:p,onPrint:m,onExportPdf:y,breadcrumbItems:x,children:w}){var H,ee,Z,Q,le,N,I,R,B,G,ce,he,ne,me,Se,ue,Ie;const[A,_]=V.useState({}),E=e||{name:"",roll:"",class:"",email:"",phone:"",personal:{},parent:{},medical:{},mentor:{}},T=t,k=Array.isArray(n==null?void 0:n.activities)?n.activities:[],L=Array.isArray(n==null?void 0:n.awards)?n.awards:[],D=Array.isArray(i==null?void 0:i.structure)?i.structure:[],C=Array.isArray(i==null?void 0:i.payments)?i.payments:[],P=ge=>_(_e=>({..._e,[ge]:!_e[ge]})),M=T.length>0?T[0].subjects.map(ge=>({subject:ge.name.slice(0,7),marks:ge.marks})):[],q=T.length>0?T[0].subjects.map(ge=>({subject:ge.name.slice(0,7),score:ge.marks})):[],J=T.map(ge=>{const _e={exam:ge.name.split(" ")[0]};return ge.subjects.forEach(oe=>{_e[oe.name.slice(0,7)]=oe.marks}),_e}),U=o.filter(ge=>(!u||ge.class.split("-")[0]===u)&&(!d||ge.name.toLowerCase().includes(d.toLowerCase())));return S.jsxs("div",{className:"flex gap-4 h-[calc(100vh-80px)] overflow-hidden",children:[S.jsxs("div",{className:"w-80 min-w-[320px] overflow-y-auto pr-2",children:[S.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:[S.jsx("div",{className:"mb-2",children:S.jsx(a5,{value:u,onChange:c,options:f,placeholder:"All Classes"})}),S.jsxs("div",{className:"relative",children:[S.jsx(Xe.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),S.jsx("input",{value:d,onChange:ge=>h(ge.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"})]})]}),S.jsxs("p",{className:"text-xs text-slate-500 mb-2",children:[U.length," Students"]}),U.map(ge=>S.jsx("div",{onClick:()=>l(ge.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===ge.id?"border-indigo-500 bg-indigo-50 shadow-sm":"bg-white border-slate-200 hover:border-indigo-400 hover:shadow-soft-lg"}`,children:S.jsxs("div",{className:"flex items-center gap-2.5",children:[S.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:ge.avatar}),S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:ge.name}),S.jsxs("p",{className:"text-xs text-slate-500",children:[ge.roll," • ",ge.class]})]})]})},ge.id))]}),S.jsxs("div",{className:"flex-1 overflow-y-auto",children:[S.jsxs("div",{className:"flex gap-2 mb-3",children:[S.jsx(ni,{variant:"secondary",size:"sm",icon:Xe.Printer,onClick:m,children:"Print Profile"}),S.jsx(ni,{variant:"secondary",size:"sm",icon:Xe.FileText,onClick:y,children:"Export PDF"}),S.jsx(ni,{variant:"primary",size:"sm",icon:Xe.Pencil,onClick:g,children:"Edit Details"}),S.jsx(ni,{variant:"secondary",size:"sm",icon:Xe.Key,onClick:p,children:"Reset Password"})]}),S.jsx(i5,{items:x}),S.jsxs("div",{id:"student-profile-content",className:"bg-white border border-slate-200 rounded-xl p-4 md:p-5 mb-3 mt-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[S.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"}),S.jsxs("div",{className:"flex-1",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("h2",{className:"text-lg font-bold text-slate-900",children:E.name}),S.jsx("span",{className:"text-xs font-semibold bg-indigo-50 text-indigo-600 px-2.5 py-0.5 rounded-full",children:"Day Scholar"})]}),S.jsxs("div",{className:"grid grid-cols-4 gap-4 mt-2",children:[S.jsxs("div",{children:[S.jsx("p",{className:"text-[10px] text-slate-400",children:"Roll No"}),S.jsx("p",{className:"text-sm text-slate-800",children:E.roll})]}),S.jsxs("div",{children:[S.jsx("p",{className:"text-[10px] text-slate-400",children:"Email"}),S.jsx("p",{className:"text-sm text-slate-800",children:E.email})]}),S.jsxs("div",{children:[S.jsx("p",{className:"text-[10px] text-slate-400",children:"Class"}),S.jsx("p",{className:"text-sm text-slate-800",children:E.class})]}),S.jsxs("div",{children:[S.jsx("p",{className:"text-[10px] text-slate-400",children:"Phone"}),S.jsx("p",{className:"text-sm text-slate-800",children:E.phone})]})]})]})]}),S.jsx("div",{className:"grid grid-cols-4 gap-3",children:[{label:"Attendance",value:"67%",color:"text-amber-500"},{label:"Avg Grade",value:"83.5%",color:"text-green-500"},{label:"Assignments",value:"0",color:"text-indigo-500"},{label:"Fee Due",value:"₹0",color:"text-green-500"}].map(ge=>S.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:[S.jsx("p",{className:"text-xs text-slate-500",children:ge.label}),S.jsx("p",{className:`text-lg font-bold ${ge.color}`,children:ge.value})]},ge.label))})]}),[{title:"Personal Information",fields:[["Date of Birth",(H=E.personal)==null?void 0:H.dob],["Admission Date",(ee=E.personal)==null?void 0:ee.admissionDate],["Address",(Z=E.personal)==null?void 0:Z.address]]},{title:"Parent/Guardian Information",fields:[["Parent Name",(Q=E.parent)==null?void 0:Q.name],["Phone",(le=E.parent)==null?void 0:le.phone],["Email",(N=E.parent)==null?void 0:N.email],["Emergency Contact",(I=E.parent)==null?void 0:I.emergency],["Relationship",(R=E.parent)==null?void 0:R.relationship]]},{title:"Medical & Additional Information",fields:[["Blood Group",(B=E.medical)==null?void 0:B.bloodGroup],["Gender",(G=E.medical)==null?void 0:G.gender],["Religion",(ce=E.medical)==null?void 0:ce.religion],["Medical Conditions",(he=E.medical)==null?void 0:he.conditions]]}].map(ge=>S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-2",children:ge.title}),S.jsx("div",{className:"grid grid-cols-3 gap-3",children:ge.fields.map(([_e,oe])=>S.jsxs("div",{children:[S.jsx("p",{className:"text-[10px] text-slate-400",children:_e}),S.jsx("p",{className:"text-sm text-slate-800",children:oe||"N/A"})]},_e))})]},ge.title)),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-2",children:"Assigned Mentor"}),S.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-3 flex items-center gap-3",children:[S.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center font-semibold shadow-sm",children:"AD"}),S.jsxs("div",{className:"flex-1",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:(ne=E.mentor)==null?void 0:ne.name}),S.jsx("span",{className:"text-[10px] bg-indigo-50 text-indigo-600 px-2 py-0.5 rounded-full font-semibold",children:"Mentor"})]}),S.jsxs("p",{className:"text-xs text-slate-500",children:[(me=E.mentor)==null?void 0:me.subject," • ",(Se=E.mentor)==null?void 0:Se.qualification]}),S.jsxs("div",{className:"flex gap-3 mt-1",children:[S.jsxs("span",{className:"text-[10px] text-slate-500 flex items-center gap-1",children:[S.jsx(Xe.Mail,{className:"w-3 h-3"}),(ue=E.mentor)==null?void 0:ue.email]}),S.jsxs("span",{className:"text-[10px] text-slate-500 flex items-center gap-1",children:[S.jsx(Xe.Phone,{className:"w-3 h-3"}),(Ie=E.mentor)==null?void 0:Ie.phone]})]})]})]})]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsxs("div",{className:"flex justify-between items-center mb-3",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Examination Results"}),S.jsx("button",{onClick:()=>{const ge={};T.forEach((_e,oe)=>{ge[oe]=!0}),_(ge)},className:"text-xs text-indigo-600 transition-all duration-150 active:scale-[0.97]",children:"Expand All"})]}),T.map((ge,_e)=>{const oe=ge.subjects.reduce((Be,Ke)=>Be+Ke.marks,0),Re=ge.subjects.reduce((Be,Ke)=>Be+Ke.total,0),tt=(oe/Re*100).toFixed(1);return S.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:[S.jsxs("div",{className:"flex justify-between items-center cursor-pointer",onClick:()=>P(_e),children:[S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:ge.name}),S.jsxs("p",{className:"text-xs text-slate-500",children:[ge.subjects.length," subjects • ",oe,"/",Re," • ",tt,"%"]})]}),A[_e]?S.jsx(Xe.ChevronUp,{className:"w-4 h-4 text-slate-400"}):S.jsx(Xe.ChevronDown,{className:"w-4 h-4 text-slate-400"})]}),A[_e]&&S.jsx("div",{className:"overflow-x-auto rounded-lg border border-slate-200 mt-2",children:S.jsxs("table",{className:"w-full text-sm",children:[S.jsx("thead",{children:S.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200 text-xs text-slate-500 font-semibold",children:[S.jsx("th",{className:"text-left py-1.5 px-2",children:"Subject"}),S.jsx("th",{className:"text-left py-1.5 px-2",children:"Marks"}),S.jsx("th",{className:"text-left py-1.5 px-2",children:"Percentage"}),S.jsx("th",{className:"text-left py-1.5 px-2",children:"Grade"})]})}),S.jsx("tbody",{children:ge.subjects.map(Be=>S.jsxs("tr",{className:"border-t border-slate-100 hover:bg-primary-50/40 transition-colors duration-150",children:[S.jsx("td",{className:"py-1.5 px-2 text-slate-800",children:Be.name}),S.jsxs("td",{className:"py-1.5 px-2 text-slate-800",children:[Be.marks,"/",Be.total]}),S.jsxs("td",{className:"py-1.5 px-2 text-slate-800",children:[Be.marks,"%"]}),S.jsx("td",{className:"py-1.5 px-2",children:S.jsx("span",{className:`text-xs px-2.5 py-0.5 rounded-full font-semibold ${Be.marks>=80?"bg-green-100 text-green-700":"bg-amber-100 text-amber-700"}`,children:Be.grade})})]},Be.name))})]})})]},_e)})]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-3",children:"Performance Analysis"}),S.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[S.jsxs("div",{children:[S.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Subject-wise Marks"}),S.jsx(Cy,{width:"100%",height:200,children:S.jsxs(aoe,{data:M,children:[S.jsx(xb,{strokeDasharray:"3 3"}),S.jsx(ac,{dataKey:"subject",fontSize:11}),S.jsx(sc,{}),S.jsx(_a,{contentStyle:{borderRadius:"12px",border:"1px solid #e2e8f0",boxShadow:"0 4px 20px -4px rgba(0,0,0,0.1)"}}),S.jsx(Nl,{dataKey:"marks",fill:"#6366f1",radius:[4,4,0,0]})]})})]}),S.jsxs("div",{children:[S.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Subject Strength"}),S.jsx(Cy,{width:"100%",height:200,children:S.jsxs(ooe,{data:q,children:[S.jsx(oj,{}),S.jsx(Vh,{dataKey:"subject",fontSize:11}),S.jsx(Gh,{}),S.jsx(Kh,{dataKey:"score",stroke:"#6366f1",fill:"#6366f1",fillOpacity:.3})]})})]}),S.jsxs("div",{children:[S.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Performance Trend"}),S.jsx(Cy,{width:"100%",height:200,children:S.jsxs(ioe,{data:J,children:[S.jsx(xb,{strokeDasharray:"3 3"}),S.jsx(ac,{dataKey:"exam",fontSize:11}),S.jsx(sc,{}),S.jsx(_a,{contentStyle:{borderRadius:"12px",border:"1px solid #e2e8f0",boxShadow:"0 4px 20px -4px rgba(0,0,0,0.1)"}}),S.jsx(ll,{}),S.jsx(ms,{type:"monotone",dataKey:"Math",stroke:"#6366f1",strokeWidth:2}),S.jsx(ms,{type:"monotone",dataKey:"Science",stroke:"#10b981",strokeWidth:2}),S.jsx(ms,{type:"monotone",dataKey:"English",stroke:"#f59e0b",strokeWidth:2}),S.jsx(ms,{type:"monotone",dataKey:"Hindi",stroke:"#ef4444",strokeWidth:2})]})})]})]})]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsxs("div",{className:"flex justify-between items-center mb-2",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Parent Meeting History"}),S.jsx("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-green-100 text-green-600",children:"3/4 Attended"})]}),r.map((ge,_e)=>S.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:[S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:ge.type}),S.jsxs("p",{className:"text-xs text-slate-500",children:[ge.date," • Conductor: ",ge.conductor]}),S.jsxs("p",{className:"text-xs text-slate-500",children:["Attendee: ",ge.attendee," • ",ge.notes]})]}),S.jsx(dd,{status:ge.status})]},_e))]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-2",children:"Extra-Curricular Activities"}),k.map((ge,_e)=>S.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:[S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:ge.name}),S.jsxs("p",{className:"text-xs text-slate-500",children:["Member since ",ge.since," • ",ge.role]})]}),S.jsx(dd,{status:ge.status})]},_e))]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-2",children:"Awards & Achievements"}),L.map((ge,_e)=>S.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:[S.jsxs("div",{className:"flex items-center gap-1",children:[S.jsx(Xe.Trophy,{className:"w-4 h-4 text-amber-500"}),S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:ge.name})]}),S.jsxs("p",{className:"text-xs text-slate-500",children:[ge.category," • ",ge.year]}),S.jsx("p",{className:"text-xs text-slate-500",children:ge.description})]},_e))]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-2",children:"Disciplinary Records"}),S.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:[S.jsx(Xe.CheckCircle,{className:"w-5 h-5 text-green-500"}),S.jsx("p",{className:"text-sm text-slate-800",children:"Clean Record - No disciplinary issues reported"})]})]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsxs("div",{className:"flex justify-between items-center mb-2",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Fee Structure"}),S.jsxs("div",{className:"flex gap-1",children:[S.jsx("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-indigo-100 text-indigo-600",children:"Day Scholar"}),S.jsx("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-sky-100 text-sky-600",children:"AY 2025-2026"})]})]}),S.jsx("div",{className:"overflow-x-auto rounded-xl border border-slate-200",children:S.jsxs("table",{className:"w-full text-sm",children:[S.jsx("thead",{children:S.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200 text-xs text-slate-500 font-semibold",children:[S.jsx("th",{className:"text-left py-2 px-3",children:"Fee Component"}),S.jsx("th",{className:"text-left py-2 px-3",children:"Amount (₹)"}),S.jsx("th",{className:"text-left py-2 px-3",children:"Frequency"})]})}),S.jsxs("tbody",{children:[D.map(ge=>S.jsxs("tr",{className:"border-b border-slate-100 hover:bg-primary-50/40 transition-colors duration-150",children:[S.jsx("td",{className:"py-2 px-3 text-slate-800",children:ge.component}),S.jsxs("td",{className:"py-2 px-3 text-slate-800",children:["₹",ge.amount.toLocaleString()]}),S.jsx("td",{className:"py-2 px-3 text-slate-800",children:ge.frequency})]},ge.component)),S.jsxs("tr",{className:"bg-slate-50",children:[S.jsx("td",{className:"py-2 px-3 font-bold text-slate-800",children:"Total Annual Fee"}),S.jsxs("td",{className:"py-2 px-3 font-bold text-slate-800",children:["₹",D.reduce((ge,_e)=>ge+_e.amount,0).toLocaleString()]}),S.jsx("td",{})]})]})]})})]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-2",children:"Fee Payment History"}),S.jsx("div",{className:"grid grid-cols-3 gap-3 mb-3",children:[{label:"Total Fees",value:"₹60,000",color:"text-slate-800"},{label:"Paid",value:"₹60,000",color:"text-green-500"},{label:"Due",value:"₹0",color:"text-red-500"}].map(ge=>S.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:[S.jsx("p",{className:"text-xs text-slate-500",children:ge.label}),S.jsx("p",{className:`text-lg font-bold ${ge.color}`,children:ge.value})]},ge.label))}),C.map((ge,_e)=>S.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:[S.jsxs("div",{children:[S.jsxs("p",{className:"text-sm font-semibold text-slate-800",children:["₹",ge.amount.toLocaleString()," - ",ge.method]}),S.jsxs("p",{className:"text-xs text-slate-500",children:[ge.date," • Ref: ",ge.ref]})]}),S.jsx(dd,{status:ge.status})]},_e))]})]}),w]})}function loe({teacher:e,assignments:t=[],onEdit:r,onResetPassword:n,onPrint:i,onExportPdf:a,onBack:o,breadcrumbItems:s,isLoading:l,children:u}){var m,y,x,w,A,_;if(l||!e)return S.jsx(j6,{});const c=e,f=((m=c.user)==null?void 0:m.full_name)||c.full_name||"",d=((y=c.user)==null?void 0:y.email)||c.email||"",h=((x=c.user)==null?void 0:x.phone)||c.phone||"",g=f.split(" ").map(E=>E[0]).join("").slice(0,2).toUpperCase(),p=[{label:"Total Classes",value:t.length||c.classes_count||0,icon:Xe.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:c.total_periods_per_week||0,icon:Xe.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:c.max_workload_hours?`${c.max_workload_hours}h`:"-",icon:Xe.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 S.jsxs("div",{children:[S.jsx(i5,{items:s}),S.jsxs("div",{className:"flex justify-between items-center mb-4 mt-2",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("button",{onClick:o,className:"p-1.5 hover:bg-slate-100 rounded-lg transition-all duration-150 active:scale-[0.97]",children:S.jsx(Xe.ArrowLeft,{className:"w-5 h-5"})}),S.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-slate-900",children:"Teacher Profile"})]}),S.jsxs("div",{className:"flex gap-2",children:[S.jsx(ni,{variant:"secondary",size:"sm",icon:Xe.Printer,onClick:i,children:"Print"}),S.jsx(ni,{variant:"secondary",size:"sm",icon:Xe.FileText,onClick:a,children:"Export PDF"}),S.jsx(ni,{variant:"primary",size:"sm",icon:Xe.Pencil,onClick:r,children:"Edit Profile"}),S.jsx(ni,{variant:"secondary",size:"sm",icon:Xe.Key,onClick:n,children:"Reset Password"})]})]}),S.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:S.jsxs("div",{className:"flex justify-between items-start",children:[S.jsxs("div",{className:"flex gap-4 items-center",children:[S.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:g}),S.jsxs("div",{children:[S.jsx("h2",{className:"text-xl font-bold text-slate-900",children:f}),S.jsxs("p",{className:"text-sm text-slate-500 mb-2",children:[c.primary_subject||((w=c.subjects)==null?void 0:w[0])||c.department||""," Teacher"]}),S.jsxs("div",{className:"flex gap-4 text-xs text-slate-600",children:[S.jsxs("span",{className:"flex items-center gap-1",children:[S.jsx("span",{className:"text-slate-400",children:"ID:"})," ",c.employee_id]}),S.jsxs("span",{className:"flex items-center gap-1",children:[S.jsx(Xe.Mail,{className:"w-3 h-3 text-slate-400"}),d]}),S.jsxs("span",{className:"flex items-center gap-1",children:[S.jsx(Xe.Phone,{className:"w-3 h-3 text-slate-400"}),h||"N/A"]}),S.jsxs("span",{className:"flex items-center gap-1",children:[S.jsx(Xe.Calendar,{className:"w-3 h-3 text-slate-400"}),"Joined: ",c.joining_date||"N/A"]})]})]})]}),S.jsxs("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:[c.max_workload_hours||24," hours/week"]})]})}),S.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4 mb-4",children:p.map(E=>S.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 ${E.glow} cursor-default group`,children:[S.jsx("div",{className:`${E.bg} p-2.5 md:p-3 rounded-xl transition-transform duration-200 group-hover:scale-110`,children:S.jsx(E.icon,{className:`w-5 h-5 ${E.color}`})}),S.jsxs("div",{children:[S.jsx("p",{className:"text-xs text-slate-500 font-medium",children:E.label}),S.jsx("p",{className:"text-xl md:text-2xl font-bold text-slate-900 mt-0.5",children:E.value})]})]},E.label))}),S.jsx(su,{title:"Professional Information",children:S.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[S.jsx(Zi,{label:"Qualification",value:c.qualification||"Ph.D. in Mathematics"}),S.jsx(Zi,{label:"Subject Specialization",value:((_=(A=c.subjects)==null?void 0:A[0])==null?void 0:_.name)||"Mathematics"}),S.jsx(Zi,{label:"Years of Experience",value:c.experience_years?`${c.experience_years} years`:"5 years"}),S.jsx(Zi,{label:"Teaching Load",value:`${c.max_workload_hours||24} hours per week`}),S.jsx(Zi,{label:"Department",value:c.department||"Science & Mathematics"}),S.jsx(Zi,{label:"Employment Type",value:c.employment_type||"Full-time"})]})}),S.jsx(su,{title:"Personal Information",children:S.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[S.jsx(Zi,{label:"Date of Birth",value:c.date_of_birth||"March 15, 1985"}),S.jsx(Zi,{label:"Date of Joining",value:c.joining_date||"August 15, 2020"}),S.jsx(Zi,{label:"Gender",value:c.gender||"Female"}),S.jsx(Zi,{label:"Years of Service",value:c.experience_years?`${c.experience_years} years`:"5 years"}),S.jsx(Zi,{label:"Address",value:[c.address_line1,c.city,c.state,c.pincode].filter(Boolean).join(", ")||"123 Education Lane, City, State 12345"}),S.jsx(Zi,{label:"Emergency Contact",value:c.emergency_contact_phone||"+1-555-1011"})]})}),S.jsx(su,{title:"Leave Summary",children:S.jsx("div",{className:"grid grid-cols-3 gap-3 mb-4",children:[{type:"Casual Leave",used:8,total:12,color:"bg-blue-500"},{type:"Sick Leave",used:13,total:15,color:"bg-red-500"},{type:"Earned Leave",used:12,total:20,color:"bg-green-500"}].map(E=>S.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:[S.jsx("p",{className:"text-xs text-slate-500",children:E.type}),S.jsxs("div",{className:"flex items-baseline gap-1 mt-1",children:[S.jsx("span",{className:"text-2xl font-bold text-slate-800",children:E.used}),S.jsxs("span",{className:"text-sm text-slate-400",children:["/ ",E.total," available"]})]}),S.jsx("div",{className:"w-full h-1.5 bg-slate-200 rounded-full mt-2",children:S.jsx("div",{className:`h-full ${E.color} rounded-full transition-all duration-300`,style:{width:`${E.used/E.total*100}%`}})})]},E.type))})}),S.jsx(su,{title:"Current Teaching Schedule",children:(t.length>0?t:[{class_name:"10",section:"A",subject:"Mathematics",schedule:"Monday, Wednesday, Friday • 8:00 AM - 8:45 AM",students:45},{class_name:"10",section:"B",subject:"Mathematics",schedule:"Tuesday, Thursday • 9:00 AM - 9:45 AM",students:48}]).map((E,T)=>S.jsxs("div",{className:`flex justify-between items-center py-3 transition-colors duration-150 hover:bg-slate-50 rounded-lg px-2 -mx-2 ${T<1?"border-b border-slate-100":""}`,children:[S.jsxs("div",{children:[S.jsxs("p",{className:"text-sm font-semibold text-slate-800",children:["Class ",E.class_name,"-",E.section," • ",E.subject]}),S.jsx("p",{className:"text-xs text-slate-500",children:E.schedule||`${E.periods_per_week||3} periods/week`})]}),S.jsxs("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-blue-100 text-blue-600",children:[E.students||40," students"]})]},T))}),S.jsx(su,{title:"Awards & Recognition",children:[{title:"Best Teacher Award",org:"Academic Excellence - 2025",desc:"Recognized for outstanding teaching methodology"},{title:"Innovation in Teaching",org:"State Education Board - 2024",desc:"Innovative use of technology in classroom"}].map((E,T)=>S.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:[S.jsx(Xe.Trophy,{className:"w-5 h-5 text-amber-600 mt-0.5"}),S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:E.title}),S.jsx("p",{className:"text-xs text-slate-500",children:E.org}),S.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:E.desc})]})]},T))}),S.jsx(su,{title:"Recent Activity",children:[{action:"Created new assignment",detail:"Class 10-A • 2 hours ago"},{action:"Marked attendance",detail:"Class 10-B • 5 hours ago"},{action:"Graded assignments",detail:"Class 11-A • Yesterday"}].map((E,T)=>S.jsxs("div",{className:`flex items-center gap-3 py-3 transition-colors duration-150 hover:bg-slate-50 rounded-lg px-2 -mx-2 ${T<2?"border-b border-slate-100":""}`,children:[S.jsx(Xe.Zap,{className:"w-4 h-4 text-amber-500"}),S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:E.action}),S.jsx("p",{className:"text-xs text-slate-500",children:E.detail})]})]},T))}),u]})}function su({title:e,badge:t,children:r}){return S.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:[S.jsxs("div",{className:"flex justify-between items-center mb-3",children:[S.jsx("h3",{className:"text-base font-semibold text-slate-900",children:e}),t]}),r]})}function Zi({label:e,value:t}){return S.jsxs("div",{className:"mb-2",children:[S.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:e}),S.jsx("p",{className:"text-sm font-medium text-slate-800",children:t||"N/A"})]})}exports.Badge=dd;exports.Breadcrumb=i5;exports.Button=ni;exports.Card=lq;exports.CardContent=cq;exports.CardHeader=uq;exports.CardTitle=fq;exports.ChangePasswordModal=Kq;exports.Checkbox=Iq;exports.ConfirmDialog=kq;exports.DataTable=mq;exports.DateInput=Fq;exports.EmptyState=qq;exports.ErrorBoundary=Mq;exports.FilterBar=L6;exports.HoverCard=$q;exports.Input=N6;exports.LoginPage=Vq;exports.Modal=zp;exports.NetworkStatus=Dq;exports.Pagination=Gq;exports.ProfileHeader=Xq;exports.ProfileInfoGrid=Jq;exports.ProtectedRoute=Sq;exports.RecentActivities=Aq;exports.ResetPasswordModal=Yq;exports.SearchInput=C6;exports.SearchableSelect=a5;exports.SectionCard=Uq;exports.Select=pq;exports.SessionTimeout=zq;exports.Sidebar=yq;exports.Skeleton=Qn;exports.SkeletonCard=wq;exports.SkeletonDashboard=j6;exports.SkeletonTable=_q;exports.SortableHeader=Bq;exports.StudentDetailView=soe;exports.Tabs=Lq;exports.TeacherDetailView=loe;exports.TimeInput=Rq;exports.TimetableGrid=Hq;exports.ToastProvider=Cq;exports.Topbar=bq;exports._typeof=sr;exports.cn=It;exports.commonjsGlobal=fu;exports.exportMultiSheetExcel=m$;exports.exportToCsv=bL;exports.exportToExcel=v$;exports.generateAttendanceReport=EI;exports.generateFeeReceipt=TI;exports.generatePdf=SI;exports.generateStudentReportCard=AI;exports.getDefaultExportFromCjs=ur;exports.useClassSectionFilter=aq;exports.useFormDraft=x$;exports.useKeyboardShortcuts=y$;exports.useLocalStorage=g$;exports.usePagination=O$;exports.useRecentlyViewed=w$;exports.useSortableData=A$;exports.useTabState=_$;exports.useToast=jq;
|