school-erp-ui-shared 1.0.4 → 1.0.5

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.
@@ -0,0 +1,347 @@
1
+ "use strict";const nt=require("react"),F=require("react/jsx-runtime"),ft=require("lucide-react"),za=require("react-router-dom");function Ju(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(r=0;r<i;r++)e[r]&&(t=Ju(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Vd(){for(var e,r,t=0,n="",i=arguments.length;t<i;t++)(e=arguments[t])&&(r=Ju(e))&&(n&&(n+=" "),n+=r);return n}const zf="-",Xd=e=>{const r=$d(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const o=s.split(zf);return o[0]===""&&o.length!==1&&o.shift(),Zu(o,r)||Yd(s)},getConflictingClassGroupIds:(s,o)=>{const l=t[s]||[];return o&&n[s]?[...l,...n[s]]:l}}},Zu=(e,r)=>{var s;if(e.length===0)return r.classGroupId;const t=e[0],n=r.nextPart.get(t),i=n?Zu(e.slice(1),n):void 0;if(i)return i;if(r.validators.length===0)return;const a=e.join(zf);return(s=r.validators.find(({validator:o})=>o(a)))==null?void 0:s.classGroupId},Uc=/^\[(.+)\]$/,Yd=e=>{if(Uc.test(e)){const r=Uc.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},$d=e=>{const{theme:r,prefix:t}=e,n={nextPart:new Map,validators:[]};return Jd(Object.entries(e.classGroups),t).forEach(([a,s])=>{Nf(s,n,a,r)}),n},Nf=(e,r,t,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?r:zc(r,i);a.classGroupId=t;return}if(typeof i=="function"){if(Kd(i)){Nf(i(n),r,t,n);return}r.validators.push({validator:i,classGroupId:t});return}Object.entries(i).forEach(([a,s])=>{Nf(s,zc(r,a),t,n)})})},zc=(e,r)=>{let t=e;return r.split(zf).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},Kd=e=>e.isThemeGetter,Jd=(e,r)=>r?e.map(([t,n])=>{const i=n.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,o])=>[r+s,o])):a);return[t,i]}):e,Zd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,n=new Map;const i=(a,s)=>{t.set(a,s),r++,r>e&&(r=0,n=t,t=new Map)};return{get(a){let s=t.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return i(a,s),s},set(a,s){t.has(a)?t.set(a,s):i(a,s)}}},Qu="!",Qd=e=>{const{separator:r,experimentalParseClassName:t}=e,n=r.length===1,i=r[0],a=r.length,s=o=>{const l=[];let c=0,h=0,p;for(let y=0;y<o.length;y++){let _=o[y];if(c===0){if(_===i&&(n||o.slice(y,y+a)===r)){l.push(o.slice(h,y)),h=y+a;continue}if(_==="/"){p=y;continue}}_==="["?c++:_==="]"&&c--}const g=l.length===0?o:o.substring(h),u=g.startsWith(Qu),v=u?g.substring(1):g,m=p&&p>h?p-h:void 0;return{modifiers:l,hasImportantModifier:u,baseClassName:v,maybePostfixModifierPosition:m}};return t?o=>t({className:o,parseClassName:s}):s},e2=e=>{if(e.length<=1)return e;const r=[];let t=[];return e.forEach(n=>{n[0]==="["?(r.push(...t.sort(),n),t=[]):t.push(n)}),r.push(...t.sort()),r},t2=e=>({cache:Zd(e.cacheSize),parseClassName:Qd(e),...Xd(e)}),r2=/\s+/,n2=(e,r)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:i}=r,a=[],s=e.trim().split(r2);let o="";for(let l=s.length-1;l>=0;l-=1){const c=s[l],{modifiers:h,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:u}=t(c);let v=!!u,m=n(v?g.substring(0,u):g);if(!m){if(!v){o=c+(o.length>0?" "+o:o);continue}if(m=n(g),!m){o=c+(o.length>0?" "+o:o);continue}v=!1}const y=e2(h).join(":"),_=p?y+Qu:y,S=_+m;if(a.includes(S))continue;a.push(S);const A=i(m,v);for(let P=0;P<A.length;++P){const z=A[P];a.push(_+z)}o=c+(o.length>0?" "+o:o)}return o};function i2(){let e=0,r,t,n="";for(;e<arguments.length;)(r=arguments[e++])&&(t=eh(r))&&(n&&(n+=" "),n+=t);return n}const eh=e=>{if(typeof e=="string")return e;let r,t="";for(let n=0;n<e.length;n++)e[n]&&(r=eh(e[n]))&&(t&&(t+=" "),t+=r);return t};function a2(e,...r){let t,n,i,a=s;function s(l){const c=r.reduce((h,p)=>p(h),e());return t=t2(c),n=t.cache.get,i=t.cache.set,a=o,o(l)}function o(l){const c=n(l);if(c)return c;const h=n2(l,t);return i(l,h),h}return function(){return a(i2.apply(null,arguments))}}const sr=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},th=/^\[(?:([a-z-]+):)?(.+)\]$/i,s2=/^\d+\/\d+$/,o2=new Set(["px","full","screen"]),l2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,f2=/\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$/,c2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,u2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,h2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bi=e=>Ls(e)||o2.has(e)||s2.test(e),oa=e=>Ds(e,"length",y2),Ls=e=>!!e&&!Number.isNaN(Number(e)),sf=e=>Ds(e,"number",Ls),mo=e=>!!e&&Number.isInteger(Number(e)),d2=e=>e.endsWith("%")&&Ls(e.slice(0,-1)),Tt=e=>th.test(e),la=e=>l2.test(e),p2=new Set(["length","size","percentage"]),g2=e=>Ds(e,p2,rh),m2=e=>Ds(e,"position",rh),x2=new Set(["image","url"]),v2=e=>Ds(e,x2,_2),w2=e=>Ds(e,"",b2),xo=()=>!0,Ds=(e,r,t)=>{const n=th.exec(e);return n?n[1]?typeof r=="string"?n[1]===r:r.has(n[1]):t(n[2]):!1},y2=e=>f2.test(e)&&!c2.test(e),rh=()=>!1,b2=e=>u2.test(e),_2=e=>h2.test(e),S2=()=>{const e=sr("colors"),r=sr("spacing"),t=sr("blur"),n=sr("brightness"),i=sr("borderColor"),a=sr("borderRadius"),s=sr("borderSpacing"),o=sr("borderWidth"),l=sr("contrast"),c=sr("grayscale"),h=sr("hueRotate"),p=sr("invert"),g=sr("gap"),u=sr("gradientColorStops"),v=sr("gradientColorStopPositions"),m=sr("inset"),y=sr("margin"),_=sr("opacity"),S=sr("padding"),A=sr("saturate"),P=sr("scale"),z=sr("sepia"),G=sr("skew"),L=sr("space"),I=sr("translate"),j=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",Tt,r],N=()=>[Tt,r],H=()=>["",Bi,oa],Y=()=>["auto",Ls,Tt],fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>["start","end","center","between","around","evenly","stretch"],ne=()=>["","0",Tt],ge=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ye=()=>[Ls,Tt];return{cacheSize:500,separator:":",theme:{colors:[xo],spacing:[Bi,oa],blur:["none","",la,Tt],brightness:ye(),borderColor:[e],borderRadius:["none","","full",la,Tt],borderSpacing:N(),borderWidth:H(),contrast:ye(),grayscale:ne(),hueRotate:ye(),invert:ne(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[d2,oa],inset:E(),margin:E(),opacity:ye(),padding:N(),saturate:ye(),scale:ye(),sepia:ne(),skew:ye(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",Tt]}],container:["container"],columns:[{columns:[la]}],"break-after":[{"break-after":ge()}],"break-before":[{"break-before":ge()}],"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:[...fe(),Tt]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",mo,Tt]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Tt]}],grow:[{grow:ne()}],shrink:[{shrink:ne()}],order:[{order:["first","last","none",mo,Tt]}],"grid-cols":[{"grid-cols":[xo]}],"col-start-end":[{col:["auto",{span:["full",mo,Tt]},Tt]}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":[xo]}],"row-start-end":[{row:["auto",{span:[mo,Tt]},Tt]}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Tt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Tt]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...oe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...oe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...oe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Tt,r]}],"min-w":[{"min-w":[Tt,r,"min","max","fit"]}],"max-w":[{"max-w":[Tt,r,"none","full","min","max","fit","prose",{screen:[la]},la]}],h:[{h:[Tt,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Tt,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Tt,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Tt,r,"auto","min","max","fit"]}],"font-size":[{text:["base",la,oa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",sf]}],"font-family":[{font:[xo]}],"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",Tt]}],"line-clamp":[{"line-clamp":["none",Ls,sf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Bi,Tt]}],"list-image":[{"list-image":["none",Tt]}],"list-style-type":[{list:["none","disc","decimal",Tt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Bi,oa]}],"underline-offset":[{"underline-offset":["auto",Bi,Tt]}],"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:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Tt]}],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",Tt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...fe(),m2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",g2]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},v2]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[u]}],"gradient-via":[{via:[u]}],"gradient-to":[{to:[u]}],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:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:Q()}],"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:["",...Q()]}],"outline-offset":[{"outline-offset":[Bi,Tt]}],"outline-w":[{outline:[Bi,oa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[Bi,oa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",la,w2]}],"shadow-color":[{shadow:[xo]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",la,Tt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[p]}],saturate:[{saturate:[A]}],sepia:[{sepia:[z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Tt]}],duration:[{duration:ye()}],ease:[{ease:["linear","in","out","in-out",Tt]}],delay:[{delay:ye()}],animate:[{animate:["none","spin","ping","pulse","bounce",Tt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[mo,Tt]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[G]}],"skew-y":[{"skew-y":[G]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Tt]}],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",Tt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",Tt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Bi,oa,sf]}],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"]}}},A2=a2(S2);function Ft(...e){return A2(Vd(e))}function N2(e,r,t){const n=[r.join(","),...t.map(o=>o.map(l=>`"${String(l||"").replace(/"/g,'""')}"`).join(","))].join(`
2
+ `),i=new Blob([n],{type:"text/csv;charset=utf-8;"}),a=URL.createObjectURL(i),s=document.createElement("a");s.href=a,s.download=`${e}.csv`,s.click(),URL.revokeObjectURL(a)}function Ht(e){"@babel/helpers - typeof";return Ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ht(e)}var rn=Uint8Array,Dn=Uint16Array,Wf=Int32Array,hl=new rn([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]),dl=new rn([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]),Tf=new rn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nh=function(e,r){for(var t=new Dn(31),n=0;n<31;++n)t[n]=r+=1<<e[n-1];for(var i=new Wf(t[30]),n=1;n<30;++n)for(var a=t[n];a<t[n+1];++a)i[a]=a-t[n]<<5|n;return{b:t,r:i}},ih=nh(hl,2),ah=ih.b,Ef=ih.r;ah[28]=258,Ef[258]=28;var sh=nh(dl,0),T2=sh.b,Wc=sh.r,Lf=new Dn(32768);for(var or=0;or<32768;++or){var fa=(or&43690)>>1|(or&21845)<<1;fa=(fa&52428)>>2|(fa&13107)<<2,fa=(fa&61680)>>4|(fa&3855)<<4,Lf[or]=((fa&65280)>>8|(fa&255)<<8)>>1}var Ni=(function(e,r,t){for(var n=e.length,i=0,a=new Dn(r);i<n;++i)e[i]&&++a[e[i]-1];var s=new Dn(r);for(i=1;i<r;++i)s[i]=s[i-1]+a[i-1]<<1;var o;if(t){o=new Dn(1<<r);var l=15-r;for(i=0;i<n;++i)if(e[i])for(var c=i<<4|e[i],h=r-e[i],p=s[e[i]-1]++<<h,g=p|(1<<h)-1;p<=g;++p)o[Lf[p]>>l]=c}else for(o=new Dn(n),i=0;i<n;++i)e[i]&&(o[i]=Lf[s[e[i]-1]++]>>15-e[i]);return o}),xa=new rn(288);for(var or=0;or<144;++or)xa[or]=8;for(var or=144;or<256;++or)xa[or]=9;for(var or=256;or<280;++or)xa[or]=7;for(var or=280;or<288;++or)xa[or]=8;var Io=new rn(32);for(var or=0;or<32;++or)Io[or]=5;var E2=Ni(xa,9,0),L2=Ni(xa,9,1),F2=Ni(Io,5,0),C2=Ni(Io,5,1),of=function(e){for(var r=e[0],t=1;t<e.length;++t)e[t]>r&&(r=e[t]);return r},ii=function(e,r,t){var n=r/8|0;return(e[n]|e[n+1]<<8)>>(r&7)&t},lf=function(e,r){var t=r/8|0;return(e[t]|e[t+1]<<8|e[t+2]<<16)>>(r&7)},Hf=function(e){return(e+7)/8|0},oh=function(e,r,t){return(t==null||t>e.length)&&(t=e.length),new rn(e.subarray(r,t))},k2=["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"],li=function(e,r,t){var n=new Error(r||k2[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,li),!t)throw n;return n},P2=function(e,r,t,n){var i=e.length,a=0;if(!i||r.f&&!r.l)return t||new rn(0);var s=!t,o=s||r.i!=2,l=r.i;s&&(t=new rn(i*3));var c=function(Pe){var Re=t.length;if(Pe>Re){var He=new rn(Math.max(Re*2,Pe));He.set(t),t=He}},h=r.f||0,p=r.p||0,g=r.b||0,u=r.l,v=r.d,m=r.m,y=r.n,_=i*8;do{if(!u){h=ii(e,p,1);var S=ii(e,p+1,3);if(p+=3,S)if(S==1)u=L2,v=C2,m=9,y=5;else if(S==2){var G=ii(e,p,31)+257,L=ii(e,p+10,15)+4,I=G+ii(e,p+5,31)+1;p+=14;for(var j=new rn(I),V=new rn(19),E=0;E<L;++E)V[Tf[E]]=ii(e,p+E*3,7);p+=L*3;for(var N=of(V),H=(1<<N)-1,Y=Ni(V,N,1),E=0;E<I;){var fe=Y[ii(e,p,H)];p+=fe&15;var A=fe>>4;if(A<16)j[E++]=A;else{var Q=0,J=0;for(A==16?(J=3+ii(e,p,3),p+=2,Q=j[E-1]):A==17?(J=3+ii(e,p,7),p+=3):A==18&&(J=11+ii(e,p,127),p+=7);J--;)j[E++]=Q}}var oe=j.subarray(0,G),ne=j.subarray(G);m=of(oe),y=of(ne),u=Ni(oe,m,1),v=Ni(ne,y,1)}else li(1);else{var A=Hf(p)+4,P=e[A-4]|e[A-3]<<8,z=A+P;if(z>i){l&&li(0);break}o&&c(g+P),t.set(e.subarray(A,z),g),r.b=g+=P,r.p=p=z*8,r.f=h;continue}if(p>_){l&&li(0);break}}o&&c(g+131072);for(var ge=(1<<m)-1,ye=(1<<y)-1,b=p;;b=p){var Q=u[lf(e,p)&ge],C=Q>>4;if(p+=Q&15,p>_){l&&li(0);break}if(Q||li(2),C<256)t[g++]=C;else if(C==256){b=p,u=null;break}else{var k=C-254;if(C>264){var E=C-257,O=hl[E];k=ii(e,p,(1<<O)-1)+ah[E],p+=O}var q=v[lf(e,p)&ye],le=q>>4;q||li(3),p+=q&15;var ne=T2[le];if(le>3){var O=dl[le];ne+=lf(e,p)&(1<<O)-1,p+=O}if(p>_){l&&li(0);break}o&&c(g+131072);var ce=g+k;if(g<ne){var ue=a-ne,we=Math.min(ne,ce);for(ue+g<0&&li(3);g<we;++g)t[g]=n[ue+g]}for(;g<ce;++g)t[g]=t[g-ne]}}r.l=u,r.p=b,r.b=g,r.f=h,u&&(h=1,r.m=m,r.d=v,r.n=y)}while(!h);return g!=t.length&&s?oh(t,0,g):t.subarray(0,g)},Ui=function(e,r,t){t<<=r&7;var n=r/8|0;e[n]|=t,e[n+1]|=t>>8},vo=function(e,r,t){t<<=r&7;var n=r/8|0;e[n]|=t,e[n+1]|=t>>8,e[n+2]|=t>>16},ff=function(e,r){for(var t=[],n=0;n<e.length;++n)e[n]&&t.push({s:n,f:e[n]});var i=t.length,a=t.slice();if(!i)return{t:fh,l:0};if(i==1){var s=new rn(t[0].s+1);return s[t[0].s]=1,{t:s,l:1}}t.sort(function(z,G){return z.f-G.f}),t.push({s:-1,f:25001});var o=t[0],l=t[1],c=0,h=1,p=2;for(t[0]={s:-1,f:o.f+l.f,l:o,r:l};h!=i-1;)o=t[t[c].f<t[p].f?c++:p++],l=t[c!=h&&t[c].f<t[p].f?c++:p++],t[h++]={s:-1,f:o.f+l.f,l:o,r:l};for(var g=a[0].s,n=1;n<i;++n)a[n].s>g&&(g=a[n].s);var u=new Dn(g+1),v=Ff(t[h-1],u,0);if(v>r){var n=0,m=0,y=v-r,_=1<<y;for(a.sort(function(G,L){return u[L.s]-u[G.s]||G.f-L.f});n<i;++n){var S=a[n].s;if(u[S]>r)m+=_-(1<<v-u[S]),u[S]=r;else break}for(m>>=y;m>0;){var A=a[n].s;u[A]<r?m-=1<<r-u[A]++-1:++n}for(;n>=0&&m;--n){var P=a[n].s;u[P]==r&&(--u[P],++m)}v=r}return{t:new rn(u),l:v}},Ff=function(e,r,t){return e.s==-1?Math.max(Ff(e.l,r,t+1),Ff(e.r,r,t+1)):r[e.s]=t},Hc=function(e){for(var r=e.length;r&&!e[--r];);for(var t=new Dn(++r),n=0,i=e[0],a=1,s=function(l){t[n++]=l},o=1;o<=r;++o)if(e[o]==i&&o!=r)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=e[o]}return{c:t.subarray(0,n),n:r}},wo=function(e,r){for(var t=0,n=0;n<r.length;++n)t+=e[n]*r[n];return t},lh=function(e,r,t){var n=t.length,i=Hf(r+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]=t[a];return(i+4+n)*8},qc=function(e,r,t,n,i,a,s,o,l,c,h){Ui(r,h++,t),++i[256];for(var p=ff(i,15),g=p.t,u=p.l,v=ff(a,15),m=v.t,y=v.l,_=Hc(g),S=_.c,A=_.n,P=Hc(m),z=P.c,G=P.n,L=new Dn(19),I=0;I<S.length;++I)++L[S[I]&31];for(var I=0;I<z.length;++I)++L[z[I]&31];for(var j=ff(L,7),V=j.t,E=j.l,N=19;N>4&&!V[Tf[N-1]];--N);var H=c+5<<3,Y=wo(i,xa)+wo(a,Io)+s,fe=wo(i,g)+wo(a,m)+s+14+3*N+wo(L,V)+2*L[16]+3*L[17]+7*L[18];if(l>=0&&H<=Y&&H<=fe)return lh(r,h,e.subarray(l,l+c));var Q,J,oe,ne;if(Ui(r,h,1+(fe<Y)),h+=2,fe<Y){Q=Ni(g,u,0),J=g,oe=Ni(m,y,0),ne=m;var ge=Ni(V,E,0);Ui(r,h,A-257),Ui(r,h+5,G-1),Ui(r,h+10,N-4),h+=14;for(var I=0;I<N;++I)Ui(r,h+3*I,V[Tf[I]]);h+=3*N;for(var ye=[S,z],b=0;b<2;++b)for(var C=ye[b],I=0;I<C.length;++I){var k=C[I]&31;Ui(r,h,ge[k]),h+=V[k],k>15&&(Ui(r,h,C[I]>>5&127),h+=C[I]>>12)}}else Q=E2,J=xa,oe=F2,ne=Io;for(var I=0;I<o;++I){var O=n[I];if(O>255){var k=O>>18&31;vo(r,h,Q[k+257]),h+=J[k+257],k>7&&(Ui(r,h,O>>23&31),h+=hl[k]);var q=O&31;vo(r,h,oe[q]),h+=ne[q],q>3&&(vo(r,h,O>>5&8191),h+=dl[q])}else vo(r,h,Q[O]),h+=J[O]}return vo(r,h,Q[256]),h+J[256]},I2=new Wf([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),fh=new rn(0),O2=function(e,r,t,n,i,a){var s=a.z||e.length,o=new rn(n+s+5*(1+Math.ceil(s/7e3))+i),l=o.subarray(n,o.length-i),c=a.l,h=(a.r||0)&7;if(r){h&&(l[0]=a.r>>3);for(var p=I2[r-1],g=p>>13,u=p&8191,v=(1<<t)-1,m=a.p||new Dn(32768),y=a.h||new Dn(v+1),_=Math.ceil(t/3),S=2*_,A=function($e){return(e[$e]^e[$e+1]<<_^e[$e+2]<<S)&v},P=new Wf(25e3),z=new Dn(288),G=new Dn(32),L=0,I=0,j=a.i||0,V=0,E=a.w||0,N=0;j+2<s;++j){var H=A(j),Y=j&32767,fe=y[H];if(m[Y]=fe,y[H]=Y,E<=j){var Q=s-j;if((L>7e3||V>24576)&&(Q>423||!c)){h=qc(e,l,0,P,z,G,I,V,N,j-N,h),V=L=I=0,N=j;for(var J=0;J<286;++J)z[J]=0;for(var J=0;J<30;++J)G[J]=0}var oe=2,ne=0,ge=u,ye=Y-fe&32767;if(Q>2&&H==A(j-ye))for(var b=Math.min(g,Q)-1,C=Math.min(32767,j),k=Math.min(258,Q);ye<=C&&--ge&&Y!=fe;){if(e[j+oe]==e[j+oe-ye]){for(var O=0;O<k&&e[j+O]==e[j+O-ye];++O);if(O>oe){if(oe=O,ne=ye,O>b)break;for(var q=Math.min(ye,O-2),le=0,J=0;J<q;++J){var ce=j-ye+J&32767,ue=m[ce],we=ce-ue&32767;we>le&&(le=we,fe=ce)}}}Y=fe,fe=m[Y],ye+=Y-fe&32767}if(ne){P[V++]=268435456|Ef[oe]<<18|Wc[ne];var Pe=Ef[oe]&31,Re=Wc[ne]&31;I+=hl[Pe]+dl[Re],++z[257+Pe],++G[Re],E=j+oe,++L}else P[V++]=e[j],++z[e[j]]}}for(j=Math.max(j,E);j<s;++j)P[V++]=e[j],++z[e[j]];h=qc(e,l,c,P,z,G,I,V,N,j-N,h),c||(a.r=h&7|l[h/8|0]<<3,h-=7,a.h=y,a.p=m,a.i=j,a.w=E)}else{for(var j=a.w||0;j<s+c;j+=65535){var He=j+65535;He>=s&&(l[h/8|0]=c,He=s),h=lh(l,h+1,e.subarray(j,He))}a.i=s}return oh(o,0,n+Hf(h)+i)},ch=function(){var e=1,r=0;return{p:function(t){for(var n=e,i=r,a=t.length|0,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=n+=t[s];n=(n&65535)+15*(n>>16),i=(i&65535)+15*(i>>16)}e=n,r=i},d:function(){return e%=65521,r%=65521,(e&255)<<24|(e&65280)<<8|(r&255)<<8|r>>8}}},D2=function(e,r,t,n,i){if(!i&&(i={l:1},r.dictionary)){var a=r.dictionary.subarray(-32768),s=new rn(a.length+e.length);s.set(a),s.set(e,a.length),e=s,i.w=a.length}return O2(e,r.level==null?6:r.level,r.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+r.mem,t,n,i)},uh=function(e,r,t){for(;t;++r)e[r]=t,t>>>=8},R2=function(e,r){var t=r.level,n=t==0?0:t<6?1:t==9?3:2;if(e[0]=120,e[1]=n<<6|(r.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,r.dictionary){var i=ch();i.p(r.dictionary),uh(e,2,i.d())}},j2=function(e,r){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&li(6,"invalid zlib data"),(e[1]>>5&1)==1&&li(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Cf(e,r){r||(r={});var t=ch();t.p(e);var n=D2(e,r,r.dictionary?6:2,4);return R2(n,r),uh(n,n.length-4,t.d()),n}function M2(e,r){return P2(e.subarray(j2(e),-4),{i:2},r,r)}var B2=typeof TextDecoder<"u"&&new TextDecoder,U2=0;try{B2.decode(fh,{stream:!0}),U2=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 mt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function cf(){mt.console&&typeof mt.console.log=="function"&&mt.console.log.apply(mt.console,arguments)}var tr={log:cf,warn:function(e){mt.console&&(typeof mt.console.warn=="function"?mt.console.warn.apply(mt.console,arguments):cf.call(null,arguments))},error:function(e){mt.console&&(typeof mt.console.error=="function"?mt.console.error.apply(mt.console,arguments):cf(e))}};function uf(e,r,t){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){Ia(n.response,r,t)},n.onerror=function(){tr.error("could not download file")},n.send()}function Gc(e){var r=new XMLHttpRequest;r.open("HEAD",e,!1);try{r.send()}catch{}return r.status>=200&&r.status<=299}function R0(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(r)}}var _o,kf,Ia=mt.saveAs||((typeof window>"u"?"undefined":Ht(window))!=="object"||window!==mt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,r,t){var n=mt.URL||mt.webkitURL,i=document.createElement("a");r=r||e.name||"download",i.download=r,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?Gc(i.href)?uf(e,r,t):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,r,t){if(r=r||e.name||"download",typeof e=="string")if(Gc(e))uf(e,r,t);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}:Ht(a)!=="object"&&(tr.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,t),r)}:function(e,r,t,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return uf(e,r,t);var i=e.type==="application/octet-stream",a=/constructor/i.test(mt.HTMLElement)||mt.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&a)&&(typeof FileReader>"u"?"undefined":Ht(FileReader))==="object"){var o=new FileReader;o.onloadend=function(){var h=o.result;h=s?h:h.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=h:location=h,n=null},o.readAsDataURL(e)}else{var l=mt.URL||mt.webkitURL,c=l.createObjectURL(e);n?n.location=c:location.href=c,n=null,setTimeout((function(){l.revokeObjectURL(c)}),4e4)}});/**
51
+ * A class to parse color values
52
+ * @author Stoyan Stefanov <sstoo@gmail.com>
53
+ * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
54
+ * @license Use it if you like it
55
+ */function hh(e){var r;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 t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],n=0;n<t.length;n++){var i=t[n].re,a=t[n].process,s=i.exec(e);s&&(r=a(s),this.r=r[0],this.g=r[1],this.b=r[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 o=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return o.length==1&&(o="0"+o),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+o+l+c}}/**
56
+ * @license
57
+ * Joseph Myers does not specify a particular license for his work.
58
+ *
59
+ * Author: Joseph Myers
60
+ * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
61
+ *
62
+ * Modified by: Owen Leong
63
+ */function hf(e,r){var t=e[0],n=e[1],i=e[2],a=e[3];t=Zr(t,n,i,a,r[0],7,-680876936),a=Zr(a,t,n,i,r[1],12,-389564586),i=Zr(i,a,t,n,r[2],17,606105819),n=Zr(n,i,a,t,r[3],22,-1044525330),t=Zr(t,n,i,a,r[4],7,-176418897),a=Zr(a,t,n,i,r[5],12,1200080426),i=Zr(i,a,t,n,r[6],17,-1473231341),n=Zr(n,i,a,t,r[7],22,-45705983),t=Zr(t,n,i,a,r[8],7,1770035416),a=Zr(a,t,n,i,r[9],12,-1958414417),i=Zr(i,a,t,n,r[10],17,-42063),n=Zr(n,i,a,t,r[11],22,-1990404162),t=Zr(t,n,i,a,r[12],7,1804603682),a=Zr(a,t,n,i,r[13],12,-40341101),i=Zr(i,a,t,n,r[14],17,-1502002290),t=Qr(t,n=Zr(n,i,a,t,r[15],22,1236535329),i,a,r[1],5,-165796510),a=Qr(a,t,n,i,r[6],9,-1069501632),i=Qr(i,a,t,n,r[11],14,643717713),n=Qr(n,i,a,t,r[0],20,-373897302),t=Qr(t,n,i,a,r[5],5,-701558691),a=Qr(a,t,n,i,r[10],9,38016083),i=Qr(i,a,t,n,r[15],14,-660478335),n=Qr(n,i,a,t,r[4],20,-405537848),t=Qr(t,n,i,a,r[9],5,568446438),a=Qr(a,t,n,i,r[14],9,-1019803690),i=Qr(i,a,t,n,r[3],14,-187363961),n=Qr(n,i,a,t,r[8],20,1163531501),t=Qr(t,n,i,a,r[13],5,-1444681467),a=Qr(a,t,n,i,r[2],9,-51403784),i=Qr(i,a,t,n,r[7],14,1735328473),t=en(t,n=Qr(n,i,a,t,r[12],20,-1926607734),i,a,r[5],4,-378558),a=en(a,t,n,i,r[8],11,-2022574463),i=en(i,a,t,n,r[11],16,1839030562),n=en(n,i,a,t,r[14],23,-35309556),t=en(t,n,i,a,r[1],4,-1530992060),a=en(a,t,n,i,r[4],11,1272893353),i=en(i,a,t,n,r[7],16,-155497632),n=en(n,i,a,t,r[10],23,-1094730640),t=en(t,n,i,a,r[13],4,681279174),a=en(a,t,n,i,r[0],11,-358537222),i=en(i,a,t,n,r[3],16,-722521979),n=en(n,i,a,t,r[6],23,76029189),t=en(t,n,i,a,r[9],4,-640364487),a=en(a,t,n,i,r[12],11,-421815835),i=en(i,a,t,n,r[15],16,530742520),t=tn(t,n=en(n,i,a,t,r[2],23,-995338651),i,a,r[0],6,-198630844),a=tn(a,t,n,i,r[7],10,1126891415),i=tn(i,a,t,n,r[14],15,-1416354905),n=tn(n,i,a,t,r[5],21,-57434055),t=tn(t,n,i,a,r[12],6,1700485571),a=tn(a,t,n,i,r[3],10,-1894986606),i=tn(i,a,t,n,r[10],15,-1051523),n=tn(n,i,a,t,r[1],21,-2054922799),t=tn(t,n,i,a,r[8],6,1873313359),a=tn(a,t,n,i,r[15],10,-30611744),i=tn(i,a,t,n,r[6],15,-1560198380),n=tn(n,i,a,t,r[13],21,1309151649),t=tn(t,n,i,a,r[4],6,-145523070),a=tn(a,t,n,i,r[11],10,-1120210379),i=tn(i,a,t,n,r[2],15,718787259),n=tn(n,i,a,t,r[9],21,-343485551),e[0]=da(t,e[0]),e[1]=da(n,e[1]),e[2]=da(i,e[2]),e[3]=da(a,e[3])}function pl(e,r,t,n,i,a){return r=da(da(r,e),da(n,a)),da(r<<i|r>>>32-i,t)}function Zr(e,r,t,n,i,a,s){return pl(r&t|~r&n,e,r,i,a,s)}function Qr(e,r,t,n,i,a,s){return pl(r&n|t&~n,e,r,i,a,s)}function en(e,r,t,n,i,a,s){return pl(r^t^n,e,r,i,a,s)}function tn(e,r,t,n,i,a,s){return pl(t^(r|~n),e,r,i,a,s)}function dh(e){var r,t=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(r=64;r<=e.length;r+=64)hf(n,z2(e.substring(r-64,r)));e=e.substring(r-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(r=0;r<e.length;r++)i[r>>2]|=e.charCodeAt(r)<<(r%4<<3);if(i[r>>2]|=128<<(r%4<<3),r>55)for(hf(n,i),r=0;r<16;r++)i[r]=0;return i[14]=8*t,hf(n,i),n}function z2(e){var r,t=[];for(r=0;r<64;r+=4)t[r>>2]=e.charCodeAt(r)+(e.charCodeAt(r+1)<<8)+(e.charCodeAt(r+2)<<16)+(e.charCodeAt(r+3)<<24);return t}_o=mt.atob.bind(mt),kf=mt.btoa.bind(mt);var Vc="0123456789abcdef".split("");function W2(e){for(var r="",t=0;t<4;t++)r+=Vc[e>>8*t+4&15]+Vc[e>>8*t&15];return r}function H2(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Pf(e){return dh(e).map(H2).join("")}var q2=(function(e){for(var r=0;r<e.length;r++)e[r]=W2(e[r]);return e.join("")})(dh("hello"))!="5d41402abc4b2a76b9719d911017c592";function da(e,r){if(q2){var t=(65535&e)+(65535&r);return(e>>16)+(r>>16)+(t>>16)<<16|65535&t}return e+r&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 If(e,r){var t,n,i,a;if(e!==t){for(var s=(i=e,a=1+(256/e.length>>0),new Array(a+1).join(i)),o=[],l=0;l<256;l++)o[l]=l;var c=0;for(l=0;l<256;l++){var h=o[l];c=(c+h+s.charCodeAt(l))%256,o[l]=o[c],o[c]=h}t=e,n=o}else o=n;var p=r.length,g=0,u=0,v="";for(l=0;l<p;l++)u=(u+(h=o[g=(g+1)%256]))%256,o[g]=o[u],o[u]=h,s=o[(o[g]+o[u])%256],v+=String.fromCharCode(r.charCodeAt(l)^s);return v}/**
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 Xc={print:4,modify:8,copy:16,"annot-forms":32};function As(e,r,t,n){this.v=1,this.r=2;var i=192;e.forEach((function(o){if(Xc.perm!==void 0)throw new Error("Invalid permission: "+o);i+=Xc[o]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(r+this.padding).substr(0,32),s=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,s),this.P=-(1+(255^i)),this.encryptionKey=Pf(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=If(this.encryptionKey,this.padding)}function Ns(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var r="",t=e.length,n=0;n<t;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?r+="#"+("0"+i.toString(16)).slice(-2):r+=e[n]}return r}function Yc(e){if(Ht(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var r={};this.subscribe=function(t,n,i){if(i=i||!1,typeof t!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");r.hasOwnProperty(t)||(r[t]={});var a=Math.random().toString(35);return r[t][a]=[n,!!i],a},this.unsubscribe=function(t){for(var n in r)if(r[n][t])return delete r[n][t],Object.keys(r[n]).length===0&&delete r[n],!0;return!1},this.publish=function(t){if(r.hasOwnProperty(t)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in r[t]){var s=r[t][a];try{s[0].apply(e,n)}catch(o){mt.console&&tr.error("jsPDF PubSub Error",o.message,o)}s[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return r}}function Oo(e){if(!(this instanceof Oo))return new Oo(e);var r="opacity,stroke-opacity".split(",");for(var t in e)e.hasOwnProperty(t)&&r.indexOf(t)>=0&&(this[t]=e[t]);this.id="",this.objectNumber=-1}function ph(e,r){this.gState=e,this.matrix=r,this.id="",this.objectNumber=-1}function ha(e,r,t,n,i){if(!(this instanceof ha))return new ha(e,r,t,n,i);this.type=e==="axial"?2:3,this.coords=r,this.colors=t,ph.call(this,n,i)}function Da(e,r,t,n,i){if(!(this instanceof Da))return new Da(e,r,t,n,i);this.boundingBox=e,this.xStep=r,this.yStep=t,this.stream="",this.cloneIndex=0,ph.call(this,n,i)}function ht(e){var r,t=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],s=[],o=1,l=16,c="S",h=null;Ht(e=e||{})==="object"&&(t=e.orientation,n=e.unit||n,i=e.format||i,a=e.compress||e.compressPdf||a,(h=e.encryption||null)!==null&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),o=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(r=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),s=e.filters||(a===!0?["FlateEncode"]:s),n=n||"mm",t=(""+(t||"P")).toLowerCase();var p=e.putOnlyUsedFonts||!1,g={},u={internal:{},__private__:{}};u.__private__.PubSub=Yc;var v="1.3",m=u.__private__.getPdfVersion=function(){return v};u.__private__.setPdfVersion=function(x){v=x};var y={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]};u.__private__.getPageFormats=function(){return y};var _=u.__private__.getPageFormat=function(x){return y[x]};i=i||"a4";var S={COMPAT:"compat",ADVANCED:"advanced"},A=S.COMPAT;function P(){this.saveGraphicsState(),se(new dt(et,0,0,-et,0,$i()*et).toString()+" cm"),this.setFontSize(this.getFontSize()/et),c="n",A=S.ADVANCED}function z(){this.restoreGraphicsState(),c="S",A=S.COMPAT}var G=u.__private__.combineFontStyleAndFontWeight=function(x,R){if(x=="bold"&&R=="normal"||x=="bold"&&R==400||x=="normal"&&R=="italic"||x=="bold"&&R=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return R&&(x=R==400||R==="normal"?x==="italic"?"italic":"normal":R!=700&&R!=="bold"||x!=="normal"?(R==700?"bold":R)+""+x:"bold"),x};u.advancedAPI=function(x){var R=A===S.COMPAT;return R&&P.call(this),typeof x!="function"||(x(this),R&&z.call(this)),this},u.compatAPI=function(x){var R=A===S.ADVANCED;return R&&z.call(this),typeof x!="function"||(x(this),R&&P.call(this)),this},u.isAdvancedAPI=function(){return A===S.ADVANCED};var L,I=function(x){if(A!==S.ADVANCED)throw new Error(x+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},j=u.roundToPrecision=u.__private__.roundToPrecision=function(x,R){var ae=r||R;if(isNaN(x)||isNaN(ae))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return x.toFixed(ae).replace(/0+$/,"")};L=u.hpf=u.__private__.hpf=typeof l=="number"?function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.hpf");return j(x,l)}:l==="smart"?function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.hpf");return j(x,x>-1&&x<1?16:5)}:function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.hpf");return j(x,16)};var V=u.f2=u.__private__.f2=function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.f2");return j(x,2)},E=u.__private__.f3=function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.f3");return j(x,3)},N=u.scale=u.__private__.scale=function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.scale");return A===S.COMPAT?x*et:A===S.ADVANCED?x:void 0},H=function(x){return A===S.COMPAT?$i()-x:A===S.ADVANCED?x:void 0},Y=function(x){return N(H(x))};u.__private__.setPrecision=u.setPrecision=function(x){typeof parseInt(x,10)=="number"&&(r=parseInt(x,10))};var fe,Q="00000000000000000000000000000000",J=u.__private__.getFileId=function(){return Q},oe=u.__private__.setFileId=function(x){return Q=x!==void 0&&/^[a-fA-F0-9]{32}$/.test(x)?x.toUpperCase():Q.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),h!==null&&(Kr=new As(h.userPermissions,h.userPassword,h.ownerPassword,Q)),Q};u.setFileId=function(x){return oe(x),this},u.getFileId=function(){return J()};var ne=u.__private__.convertDateToPDFDate=function(x){var R=x.getTimezoneOffset(),ae=R<0?"+":"-",he=Math.floor(Math.abs(R/60)),ve=Math.abs(R%60),Ce=[ae,k(he),"'",k(ve),"'"].join("");return["D:",x.getFullYear(),k(x.getMonth()+1),k(x.getDate()),k(x.getHours()),k(x.getMinutes()),k(x.getSeconds()),Ce].join("")},ge=u.__private__.convertPDFDateToDate=function(x){var R=parseInt(x.substr(2,4),10),ae=parseInt(x.substr(6,2),10)-1,he=parseInt(x.substr(8,2),10),ve=parseInt(x.substr(10,2),10),Ce=parseInt(x.substr(12,2),10),ze=parseInt(x.substr(14,2),10);return new Date(R,ae,he,ve,Ce,ze,0)},ye=u.__private__.setCreationDate=function(x){var R;if(x===void 0&&(x=new Date),x instanceof Date)R=ne(x);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(x))throw new Error("Invalid argument passed to jsPDF.setCreationDate");R=x}return fe=R},b=u.__private__.getCreationDate=function(x){var R=fe;return x==="jsDate"&&(R=ge(fe)),R};u.setCreationDate=function(x){return ye(x),this},u.getCreationDate=function(x){return b(x)};var C,k=u.__private__.padd2=function(x){return("0"+parseInt(x)).slice(-2)},O=u.__private__.padd2Hex=function(x){return("00"+(x=x.toString())).substr(x.length)},q=0,le=[],ce=[],ue=0,we=[],Pe=[],Re=!1,He=ce,$e=function(){q=0,ue=0,ce=[],le=[],we=[],K=cr(),Z=cr()};u.__private__.setCustomOutputDestination=function(x){Re=!0,He=x};var Ee=function(x){Re||(He=x)};u.__private__.resetCustomOutputDestination=function(){Re=!1,He=ce};var se=u.__private__.out=function(x){return x=x.toString(),ue+=x.length+1,He.push(x),He},je=u.__private__.write=function(x){return se(arguments.length===1?x.toString():Array.prototype.join.call(arguments," "))},it=u.__private__.getArrayBuffer=function(x){for(var R=x.length,ae=new ArrayBuffer(R),he=new Uint8Array(ae);R--;)he[R]=x.charCodeAt(R);return ae},Ue=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];u.__private__.getStandardFonts=function(){return Ue};var Ge=e.fontSize||16;u.__private__.setFontSize=u.setFontSize=function(x){return Ge=A===S.ADVANCED?x/et:x,this};var Ke,Ze=u.__private__.getFontSize=u.getFontSize=function(){return A===S.COMPAT?Ge:Ge*et},lt=e.R2L||!1;u.__private__.setR2L=u.setR2L=function(x){return lt=x,this},u.__private__.getR2L=u.getR2L=function(){return lt};var ct,vt=u.__private__.setZoomMode=function(x){var R=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(x))Ke=x;else if(isNaN(x)){if(R.indexOf(x)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+x+'" is not recognized.');Ke=x}else Ke=parseInt(x,10)};u.__private__.getZoomMode=function(){return Ke};var At,Ct=u.__private__.setPageMode=function(x){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(x)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+x+'" is not recognized.');ct=x};u.__private__.getPageMode=function(){return ct};var kt=u.__private__.setLayoutMode=function(x){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(x)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+x+'" is not recognized.');At=x};u.__private__.getLayoutMode=function(){return At},u.__private__.setDisplayMode=u.setDisplayMode=function(x,R,ae){return vt(x),kt(R),Ct(ae),this};var gt={title:"",subject:"",author:"",keywords:"",creator:""};u.__private__.getDocumentProperty=function(x){if(Object.keys(gt).indexOf(x)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return gt[x]},u.__private__.getDocumentProperties=function(){return gt},u.__private__.setDocumentProperties=u.setProperties=u.setDocumentProperties=function(x){for(var R in gt)gt.hasOwnProperty(R)&&x[R]&&(gt[R]=x[R]);return this},u.__private__.setDocumentProperty=function(x,R){if(Object.keys(gt).indexOf(x)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return gt[x]=R};var Et,et,Cr,It,dn,zt={},rr={},jn=[],Dt={},pi={},ar={},An={},Kn=null,Qt=0,wt=[],jt=new Yc(u),Li=e.hotfixes||[],kr={},Mn={},Bn=[],dt=function x(R,ae,he,ve,Ce,ze){if(!(this instanceof x))return new x(R,ae,he,ve,Ce,ze);isNaN(R)&&(R=1),isNaN(ae)&&(ae=0),isNaN(he)&&(he=0),isNaN(ve)&&(ve=1),isNaN(Ce)&&(Ce=0),isNaN(ze)&&(ze=0),this._matrix=[R,ae,he,ve,Ce,ze]};Object.defineProperty(dt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(x){this._matrix[0]=x}}),Object.defineProperty(dt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(x){this._matrix[1]=x}}),Object.defineProperty(dt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(x){this._matrix[2]=x}}),Object.defineProperty(dt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(x){this._matrix[3]=x}}),Object.defineProperty(dt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(x){this._matrix[4]=x}}),Object.defineProperty(dt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(x){this._matrix[5]=x}}),Object.defineProperty(dt.prototype,"a",{get:function(){return this._matrix[0]},set:function(x){this._matrix[0]=x}}),Object.defineProperty(dt.prototype,"b",{get:function(){return this._matrix[1]},set:function(x){this._matrix[1]=x}}),Object.defineProperty(dt.prototype,"c",{get:function(){return this._matrix[2]},set:function(x){this._matrix[2]=x}}),Object.defineProperty(dt.prototype,"d",{get:function(){return this._matrix[3]},set:function(x){this._matrix[3]=x}}),Object.defineProperty(dt.prototype,"e",{get:function(){return this._matrix[4]},set:function(x){this._matrix[4]=x}}),Object.defineProperty(dt.prototype,"f",{get:function(){return this._matrix[5]},set:function(x){this._matrix[5]=x}}),Object.defineProperty(dt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(dt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(dt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(dt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),dt.prototype.join=function(x){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(L).join(x)},dt.prototype.multiply=function(x){var R=x.sx*this.sx+x.shy*this.shx,ae=x.sx*this.shy+x.shy*this.sy,he=x.shx*this.sx+x.sy*this.shx,ve=x.shx*this.shy+x.sy*this.sy,Ce=x.tx*this.sx+x.ty*this.shx+this.tx,ze=x.tx*this.shy+x.ty*this.sy+this.ty;return new dt(R,ae,he,ve,Ce,ze)},dt.prototype.decompose=function(){var x=this.sx,R=this.shy,ae=this.shx,he=this.sy,ve=this.tx,Ce=this.ty,ze=Math.sqrt(x*x+R*R),at=(x/=ze)*ae+(R/=ze)*he;ae-=x*at,he-=R*at;var ut=Math.sqrt(ae*ae+he*he);return at/=ut,x*(he/=ut)<R*(ae/=ut)&&(x=-x,R=-R,at=-at,ze=-ze),{scale:new dt(ze,0,0,ut,0,0),translate:new dt(1,0,0,1,ve,Ce),rotate:new dt(x,R,-R,x,0,0),skew:new dt(1,0,at,1,0,0)}},dt.prototype.toString=function(x){return this.join(" ")},dt.prototype.inversed=function(){var x=this.sx,R=this.shy,ae=this.shx,he=this.sy,ve=this.tx,Ce=this.ty,ze=1/(x*he-R*ae),at=he*ze,ut=-R*ze,St=-ae*ze,bt=x*ze;return new dt(at,ut,St,bt,-at*ve-St*Ce,-ut*ve-bt*Ce)},dt.prototype.applyToPoint=function(x){var R=x.x*this.sx+x.y*this.shx+this.tx,ae=x.x*this.shy+x.y*this.sy+this.ty;return new ns(R,ae)},dt.prototype.applyToRectangle=function(x){var R=this.applyToPoint(x),ae=this.applyToPoint(new ns(x.x+x.w,x.y+x.h));return new $s(R.x,R.y,ae.x-R.x,ae.y-R.y)},dt.prototype.clone=function(){var x=this.sx,R=this.shy,ae=this.shx,he=this.sy,ve=this.tx,Ce=this.ty;return new dt(x,R,ae,he,ve,Ce)},u.Matrix=dt;var Nn=u.matrixMult=function(x,R){return R.multiply(x)},pn=new dt(1,0,0,1,0,0);u.unitMatrix=u.identityMatrix=pn;var $r=function(x,R){if(!pi[x]){var ae=(R instanceof ha?"Sh":"P")+(Object.keys(Dt).length+1).toString(10);R.id=ae,pi[x]=ae,Dt[ae]=R,jt.publish("addPattern",R)}};u.ShadingPattern=ha,u.TilingPattern=Da,u.addShadingPattern=function(x,R){return I("addShadingPattern()"),$r(x,R),this},u.beginTilingPattern=function(x){I("beginTilingPattern()"),c0(x.boundingBox[0],x.boundingBox[1],x.boundingBox[2]-x.boundingBox[0],x.boundingBox[3]-x.boundingBox[1],x.matrix)},u.endTilingPattern=function(x,R){I("endTilingPattern()"),R.stream=Pe[C].join(`
81
+ `),$r(x,R),jt.publish("endTilingPattern",R),Bn.pop().restore()};var mr=u.__private__.newObject=function(){var x=cr();return B(x,!0),x},cr=u.__private__.newObjectDeferred=function(){return q++,le[q]=function(){return ue},q},B=function(x,R){return R=typeof R=="boolean"&&R,le[x]=ue,R&&se(x+" 0 obj"),x},re=u.__private__.newAdditionalObject=function(){var x={objId:cr(),content:""};return we.push(x),x},K=cr(),Z=cr(),te=u.__private__.decodeColorString=function(x){var R=x.split(" ");if(R.length!==2||R[1]!=="g"&&R[1]!=="G")R.length===5&&(R[4]==="k"||R[4]==="K")&&(R=[(1-R[0])*(1-R[3]),(1-R[1])*(1-R[3]),(1-R[2])*(1-R[3]),"r"]);else{var ae=parseFloat(R[0]);R=[ae,ae,ae,"r"]}for(var he="#",ve=0;ve<3;ve++)he+=("0"+Math.floor(255*parseFloat(R[ve])).toString(16)).slice(-2);return he},ie=u.__private__.encodeColorString=function(x){var R;typeof x=="string"&&(x={ch1:x});var ae=x.ch1,he=x.ch2,ve=x.ch3,Ce=x.ch4,ze=x.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ae=="string"&&ae.charAt(0)!=="#"){var at=new hh(ae);if(at.ok)ae=at.toHex();else if(!/^\d*\.?\d*$/.test(ae))throw new Error('Invalid color "'+ae+'" passed to jsPDF.encodeColorString.')}if(typeof ae=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ae)&&(ae="#"+ae[1]+ae[1]+ae[2]+ae[2]+ae[3]+ae[3]),typeof ae=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ae)){var ut=parseInt(ae.substr(1),16);ae=ut>>16&255,he=ut>>8&255,ve=255&ut}if(he===void 0||Ce===void 0&&ae===he&&he===ve)if(typeof ae=="string")R=ae+" "+ze[0];else switch(x.precision){case 2:R=V(ae/255)+" "+ze[0];break;case 3:default:R=E(ae/255)+" "+ze[0]}else if(Ce===void 0||Ht(Ce)==="object"){if(Ce&&!isNaN(Ce.a)&&Ce.a===0)return R=["1.","1.","1.",ze[1]].join(" ");if(typeof ae=="string")R=[ae,he,ve,ze[1]].join(" ");else switch(x.precision){case 2:R=[V(ae/255),V(he/255),V(ve/255),ze[1]].join(" ");break;default:case 3:R=[E(ae/255),E(he/255),E(ve/255),ze[1]].join(" ")}}else if(typeof ae=="string")R=[ae,he,ve,Ce,ze[2]].join(" ");else switch(x.precision){case 2:R=[V(ae),V(he),V(ve),V(Ce),ze[2]].join(" ");break;case 3:default:R=[E(ae),E(he),E(ve),E(Ce),ze[2]].join(" ")}return R},_e=u.__private__.getFilters=function(){return s},Le=u.__private__.putStream=function(x){var R=(x=x||{}).data||"",ae=x.filters||_e(),he=x.alreadyAppliedFilters||[],ve=x.addLength1||!1,Ce=R.length,ze=x.objectId,at=function(Jr){return Jr};if(h!==null&&ze===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");h!==null&&(at=Kr.encryptor(ze,0));var ut={};ae===!0&&(ae=["FlateEncode"]);var St=x.additionalKeyValues||[],bt=(ut=ht.API.processDataByFilters!==void 0?ht.API.processDataByFilters(R,ae):{data:R,reverseChain:[]}).reverseChain+(Array.isArray(he)?he.join(" "):he.toString());if(ut.data.length!==0&&(St.push({key:"Length",value:ut.data.length}),ve===!0&&St.push({key:"Length1",value:Ce})),bt.length!=0)if(bt.split("/").length-1==1)St.push({key:"Filter",value:bt});else{St.push({key:"Filter",value:"["+bt+"]"});for(var Ot=0;Ot<St.length;Ot+=1)if(St[Ot].key==="DecodeParms"){for(var fr=[],ur=0;ur<ut.reverseChain.split("/").length-1;ur+=1)fr.push("null");fr.push(St[Ot].value),St[Ot].value="["+fr.join(" ")+"]"}}se("<<");for(var Ar=0;Ar<St.length;Ar++)se("/"+St[Ar].key+" "+St[Ar].value);se(">>"),ut.data.length!==0&&(se("stream"),se(at(ut.data)),se("endstream"))},be=u.__private__.putPage=function(x){var R=x.number,ae=x.data,he=x.objId,ve=x.contentsObjId;B(he,!0),se("<</Type /Page"),se("/Parent "+x.rootDictionaryObjId+" 0 R"),se("/Resources "+x.resourceDictionaryObjId+" 0 R"),se("/MediaBox ["+parseFloat(L(x.mediaBox.bottomLeftX))+" "+parseFloat(L(x.mediaBox.bottomLeftY))+" "+L(x.mediaBox.topRightX)+" "+L(x.mediaBox.topRightY)+"]"),x.cropBox!==null&&se("/CropBox ["+L(x.cropBox.bottomLeftX)+" "+L(x.cropBox.bottomLeftY)+" "+L(x.cropBox.topRightX)+" "+L(x.cropBox.topRightY)+"]"),x.bleedBox!==null&&se("/BleedBox ["+L(x.bleedBox.bottomLeftX)+" "+L(x.bleedBox.bottomLeftY)+" "+L(x.bleedBox.topRightX)+" "+L(x.bleedBox.topRightY)+"]"),x.trimBox!==null&&se("/TrimBox ["+L(x.trimBox.bottomLeftX)+" "+L(x.trimBox.bottomLeftY)+" "+L(x.trimBox.topRightX)+" "+L(x.trimBox.topRightY)+"]"),x.artBox!==null&&se("/ArtBox ["+L(x.artBox.bottomLeftX)+" "+L(x.artBox.bottomLeftY)+" "+L(x.artBox.topRightX)+" "+L(x.artBox.topRightY)+"]"),typeof x.userUnit=="number"&&x.userUnit!==1&&se("/UserUnit "+x.userUnit),jt.publish("putPage",{objId:he,pageContext:wt[R],pageNumber:R,page:ae}),se("/Contents "+ve+" 0 R"),se(">>"),se("endobj");var Ce=ae.join(`
82
+ `);return A===S.ADVANCED&&(Ce+=`
83
+ Q`),B(ve,!0),Le({data:Ce,filters:_e(),objectId:ve}),se("endobj"),he},Ne=u.__private__.putPages=function(){var x,R,ae=[];for(x=1;x<=Qt;x++)wt[x].objId=cr(),wt[x].contentsObjId=cr();for(x=1;x<=Qt;x++)ae.push(be({number:x,data:Pe[x],objId:wt[x].objId,contentsObjId:wt[x].contentsObjId,mediaBox:wt[x].mediaBox,cropBox:wt[x].cropBox,bleedBox:wt[x].bleedBox,trimBox:wt[x].trimBox,artBox:wt[x].artBox,userUnit:wt[x].userUnit,rootDictionaryObjId:K,resourceDictionaryObjId:Z}));B(K,!0),se("<</Type /Pages");var he="/Kids [";for(R=0;R<Qt;R++)he+=ae[R]+" 0 R ";se(he+"]"),se("/Count "+Qt),se(">>"),se("endobj"),jt.publish("postPutPages")},Te=function(x){jt.publish("putFont",{font:x,out:se,newObject:mr,putStream:Le}),x.isAlreadyPutted!==!0&&(x.objectNumber=mr(),se("<<"),se("/Type /Font"),se("/BaseFont /"+Ns(x.postScriptName)),se("/Subtype /Type1"),typeof x.encoding=="string"&&se("/Encoding /"+x.encoding),se("/FirstChar 32"),se("/LastChar 255"),se(">>"),se("endobj"))},We=function(){for(var x in zt)zt.hasOwnProperty(x)&&(p===!1||p===!0&&g.hasOwnProperty(x))&&Te(zt[x])},Ve=function(x){x.objectNumber=mr();var R=[];R.push({key:"Type",value:"/XObject"}),R.push({key:"Subtype",value:"/Form"}),R.push({key:"BBox",value:"["+[L(x.x),L(x.y),L(x.x+x.width),L(x.y+x.height)].join(" ")+"]"}),R.push({key:"Matrix",value:"["+x.matrix.toString()+"]"});var ae=x.pages[1].join(`
84
+ `);Le({data:ae,additionalKeyValues:R,objectId:x.objectNumber}),se("endobj")},rt=function(){for(var x in kr)kr.hasOwnProperty(x)&&Ve(kr[x])},qe=function(x,R){var ae,he=[],ve=1/(R-1);for(ae=0;ae<1;ae+=ve)he.push(ae);if(he.push(1),x[0].offset!=0){var Ce={offset:0,color:x[0].color};x.unshift(Ce)}if(x[x.length-1].offset!=1){var ze={offset:1,color:x[x.length-1].color};x.push(ze)}for(var at="",ut=0,St=0;St<he.length;St++){for(ae=he[St];ae>x[ut+1].offset;)ut++;var bt=x[ut].offset,Ot=(ae-bt)/(x[ut+1].offset-bt),fr=x[ut].color,ur=x[ut+1].color;at+=O(Math.round((1-Ot)*fr[0]+Ot*ur[0]).toString(16))+O(Math.round((1-Ot)*fr[1]+Ot*ur[1]).toString(16))+O(Math.round((1-Ot)*fr[2]+Ot*ur[2]).toString(16))}return at.trim()},tt=function(x,R){R||(R=21);var ae=mr(),he=qe(x.colors,R),ve=[];ve.push({key:"FunctionType",value:"0"}),ve.push({key:"Domain",value:"[0.0 1.0]"}),ve.push({key:"Size",value:"["+R+"]"}),ve.push({key:"BitsPerSample",value:"8"}),ve.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ve.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Le({data:he,additionalKeyValues:ve,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ae}),se("endobj"),x.objectNumber=mr(),se("<< /ShadingType "+x.type),se("/ColorSpace /DeviceRGB");var Ce="/Coords ["+L(parseFloat(x.coords[0]))+" "+L(parseFloat(x.coords[1]))+" ";x.type===2?Ce+=L(parseFloat(x.coords[2]))+" "+L(parseFloat(x.coords[3])):Ce+=L(parseFloat(x.coords[2]))+" "+L(parseFloat(x.coords[3]))+" "+L(parseFloat(x.coords[4]))+" "+L(parseFloat(x.coords[5])),se(Ce+="]"),x.matrix&&se("/Matrix ["+x.matrix.toString()+"]"),se("/Function "+ae+" 0 R"),se("/Extend [true true]"),se(">>"),se("endobj")},xt=function(x,R){var ae=cr(),he=mr();R.push({resourcesOid:ae,objectOid:he}),x.objectNumber=he;var ve=[];ve.push({key:"Type",value:"/Pattern"}),ve.push({key:"PatternType",value:"1"}),ve.push({key:"PaintType",value:"1"}),ve.push({key:"TilingType",value:"1"}),ve.push({key:"BBox",value:"["+x.boundingBox.map(L).join(" ")+"]"}),ve.push({key:"XStep",value:L(x.xStep)}),ve.push({key:"YStep",value:L(x.yStep)}),ve.push({key:"Resources",value:ae+" 0 R"}),x.matrix&&ve.push({key:"Matrix",value:"["+x.matrix.toString()+"]"}),Le({data:x.stream,additionalKeyValues:ve,objectId:x.objectNumber}),se("endobj")},Wt=function(x){var R;for(R in Dt)Dt.hasOwnProperty(R)&&(Dt[R]instanceof ha?tt(Dt[R]):Dt[R]instanceof Da&&xt(Dt[R],x))},Kt=function(x){for(var R in x.objectNumber=mr(),se("<<"),x)switch(R){case"opacity":se("/ca "+V(x[R]));break;case"stroke-opacity":se("/CA "+V(x[R]))}se(">>"),se("endobj")},Sr=function(){var x;for(x in ar)ar.hasOwnProperty(x)&&Kt(ar[x])},Jn=function(){for(var x in se("/XObject <<"),kr)kr.hasOwnProperty(x)&&kr[x].objectNumber>=0&&se("/"+x+" "+kr[x].objectNumber+" 0 R");jt.publish("putXobjectDict"),se(">>")},Fi=function(){Kr.oid=mr(),se("<<"),se("/Filter /Standard"),se("/V "+Kr.v),se("/R "+Kr.r),se("/U <"+Kr.toHexString(Kr.U)+">"),se("/O <"+Kr.toHexString(Kr.O)+">"),se("/P "+Kr.P),se(">>"),se("endobj")},gi=function(){for(var x in se("/Font <<"),zt)zt.hasOwnProperty(x)&&(p===!1||p===!0&&g.hasOwnProperty(x))&&se("/"+x+" "+zt[x].objectNumber+" 0 R");se(">>")},Zn=function(){if(Object.keys(Dt).length>0){for(var x in se("/Shading <<"),Dt)Dt.hasOwnProperty(x)&&Dt[x]instanceof ha&&Dt[x].objectNumber>=0&&se("/"+x+" "+Dt[x].objectNumber+" 0 R");jt.publish("putShadingPatternDict"),se(">>")}},mi=function(x){if(Object.keys(Dt).length>0){for(var R in se("/Pattern <<"),Dt)Dt.hasOwnProperty(R)&&Dt[R]instanceof u.TilingPattern&&Dt[R].objectNumber>=0&&Dt[R].objectNumber<x&&se("/"+R+" "+Dt[R].objectNumber+" 0 R");jt.publish("putTilingPatternDict"),se(">>")}},Tn=function(){if(Object.keys(ar).length>0){var x;for(x in se("/ExtGState <<"),ar)ar.hasOwnProperty(x)&&ar[x].objectNumber>=0&&se("/"+x+" "+ar[x].objectNumber+" 0 R");jt.publish("putGStateDict"),se(">>")}},xr=function(x){B(x.resourcesOid,!0),se("<<"),se("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),gi(),Zn(),mi(x.objectOid),Tn(),Jn(),se(">>"),se("endobj")},$o=function(){var x=[];We(),Sr(),rt(),Wt(x),jt.publish("putResources"),x.forEach(xr),xr({resourcesOid:Z,objectOid:Number.MAX_SAFE_INTEGER}),jt.publish("postPutResources")},Ko=function(){jt.publish("putAdditionalObjects");for(var x=0;x<we.length;x++){var R=we[x];B(R.objId,!0),se(R.content),se("endobj")}jt.publish("postPutAdditionalObjects")},Jo=function(x){rr[x.fontName]=rr[x.fontName]||{},rr[x.fontName][x.fontStyle]=x.id},Us=function(x,R,ae,he,ve){var Ce={id:"F"+(Object.keys(zt).length+1).toString(10),postScriptName:x,fontName:R,fontStyle:ae,encoding:he,isStandardFont:ve||!1,metadata:{}};return jt.publish("addFont",{font:Ce,instance:this}),zt[Ce.id]=Ce,Jo(Ce),Ce.id},Sl=function(x){for(var R=0,ae=Ue.length;R<ae;R++){var he=Us.call(this,x[R][0],x[R][1],x[R][2],Ue[R][3],!0);p===!1&&(g[he]=!0);var ve=x[R][0].split("-");Jo({id:he,fontName:ve[0],fontStyle:ve[1]||""})}jt.publish("addFonts",{fonts:zt,dictionary:rr})},Qn=function(x){return x.foo=function(){try{return x.apply(this,arguments)}catch(he){var R=he.stack||"";~R.indexOf(" at ")&&(R=R.split(" at ")[1]);var ae="Error in function "+R.split(`
85
+ `)[0].split("<")[0]+": "+he.message;if(!mt.console)throw new Error(ae);mt.console.error(ae,he),mt.alert&&alert(ae)}},x.foo.bar=x,x.foo},Ja=function(x,R){var ae,he,ve,Ce,ze,at,ut,St,bt;if(ve=(R=R||{}).sourceEncoding||"Unicode",ze=R.outputEncoding,(R.autoencode||ze)&&zt[Et].metadata&&zt[Et].metadata[ve]&&zt[Et].metadata[ve].encoding&&(Ce=zt[Et].metadata[ve].encoding,!ze&&zt[Et].encoding&&(ze=zt[Et].encoding),!ze&&Ce.codePages&&(ze=Ce.codePages[0]),typeof ze=="string"&&(ze=Ce[ze]),ze)){for(ut=!1,at=[],ae=0,he=x.length;ae<he;ae++)(St=ze[x.charCodeAt(ae)])?at.push(String.fromCharCode(St)):at.push(x[ae]),at[ae].charCodeAt(0)>>8&&(ut=!0);x=at.join("")}for(ae=x.length;ut===void 0&&ae!==0;)x.charCodeAt(ae-1)>>8&&(ut=!0),ae--;if(!ut)return x;for(at=R.noBOM?[]:[254,255],ae=0,he=x.length;ae<he;ae++){if((bt=(St=x.charCodeAt(ae))>>8)>>8)throw new Error("Character at position "+ae+" of string '"+x+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");at.push(bt),at.push(St-(bt<<8))}return String.fromCharCode.apply(void 0,at)},gn=u.__private__.pdfEscape=u.pdfEscape=function(x,R){return Ja(x,R).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},zs=u.__private__.beginPage=function(x){Pe[++Qt]=[],wt[Qt]={objId:0,contentsObjId:0,userUnit:Number(o),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(x[0]),topRightY:Number(x[1])}},Qo(Qt),Ee(Pe[C])},Zo=function(x,R){var ae,he,ve;switch(t=R||t,typeof x=="string"&&(ae=_(x.toLowerCase()),Array.isArray(ae)&&(he=ae[0],ve=ae[1])),Array.isArray(x)&&(he=x[0]*et,ve=x[1]*et),isNaN(he)&&(he=i[0],ve=i[1]),(he>14400||ve>14400)&&(tr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),he=Math.min(14400,he),ve=Math.min(14400,ve)),i=[he,ve],t.substr(0,1)){case"l":ve>he&&(i=[ve,he]);break;case"p":he>ve&&(i=[ve,he])}zs(i),a0(Gs),se(ei),Xs!==0&&se(Xs+" J"),Ys!==0&&se(Ys+" j"),jt.publish("addPage",{pageNumber:Qt})},Al=function(x){x>0&&x<=Qt&&(Pe.splice(x,1),wt.splice(x,1),Qt--,C>Qt&&(C=Qt),this.setPage(C))},Qo=function(x){x>0&&x<=Qt&&(C=x)},Nl=u.__private__.getNumberOfPages=u.getNumberOfPages=function(){return Pe.length-1},e0=function(x,R,ae){var he,ve=void 0;return ae=ae||{},x=x!==void 0?x:zt[Et].fontName,R=R!==void 0?R:zt[Et].fontStyle,he=x.toLowerCase(),rr[he]!==void 0&&rr[he][R]!==void 0?ve=rr[he][R]:rr[x]!==void 0&&rr[x][R]!==void 0?ve=rr[x][R]:ae.disableWarning===!1&&tr.warn("Unable to look up font label for font '"+x+"', '"+R+"'. Refer to getFontList() for available fonts."),ve||ae.noFallback||(ve=rr.times[R])==null&&(ve=rr.times.normal),ve},Tl=u.__private__.putInfo=function(){var x=mr(),R=function(he){return he};for(var ae in h!==null&&(R=Kr.encryptor(x,0)),se("<<"),se("/Producer ("+gn(R("jsPDF "+ht.version))+")"),gt)gt.hasOwnProperty(ae)&&gt[ae]&&se("/"+ae.substr(0,1).toUpperCase()+ae.substr(1)+" ("+gn(R(gt[ae]))+")");se("/CreationDate ("+gn(R(fe))+")"),se(">>"),se("endobj")},Ws=u.__private__.putCatalog=function(x){var R=(x=x||{}).rootDictionaryObjId||K;switch(mr(),se("<<"),se("/Type /Catalog"),se("/Pages "+R+" 0 R"),Ke||(Ke="fullwidth"),Ke){case"fullwidth":se("/OpenAction [3 0 R /FitH null]");break;case"fullheight":se("/OpenAction [3 0 R /FitV null]");break;case"fullpage":se("/OpenAction [3 0 R /Fit]");break;case"original":se("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ae=""+Ke;ae.substr(ae.length-1)==="%"&&(Ke=parseInt(Ke)/100),typeof Ke=="number"&&se("/OpenAction [3 0 R /XYZ null null "+V(Ke)+"]")}switch(At||(At="continuous"),At){case"continuous":se("/PageLayout /OneColumn");break;case"single":se("/PageLayout /SinglePage");break;case"two":case"twoleft":se("/PageLayout /TwoColumnLeft");break;case"tworight":se("/PageLayout /TwoColumnRight")}ct&&se("/PageMode /"+ct),jt.publish("putCatalog"),se(">>"),se("endobj")},El=u.__private__.putTrailer=function(){se("trailer"),se("<<"),se("/Size "+(q+1)),se("/Root "+q+" 0 R"),se("/Info "+(q-1)+" 0 R"),h!==null&&se("/Encrypt "+Kr.oid+" 0 R"),se("/ID [ <"+Q+"> <"+Q+"> ]"),se(">>")},Ll=u.__private__.putHeader=function(){se("%PDF-"+v),se("%ºß¬à")},Fl=u.__private__.putXRef=function(){var x="0000000000";se("xref"),se("0 "+(q+1)),se("0000000000 65535 f ");for(var R=1;R<=q;R++)typeof le[R]=="function"?se((x+le[R]()).slice(-10)+" 00000 n "):le[R]!==void 0?se((x+le[R]).slice(-10)+" 00000 n "):se("0000000000 00000 n ")},Ci=u.__private__.buildDocument=function(){$e(),Ee(ce),jt.publish("buildDocument"),Ll(),Ne(),Ko(),$o(),h!==null&&Fi(),Tl(),Ws();var x=ue;return Fl(),El(),se("startxref"),se(""+x),se("%%EOF"),Ee(Pe[C]),ce.join(`
86
+ `)},Za=u.__private__.getBlob=function(x){return new Blob([it(x)],{type:"application/pdf"})},Qa=u.output=u.__private__.output=Qn((function(x,R){switch(typeof(R=R||{})=="string"?R={filename:R}:R.filename=R.filename||"generated.pdf",x){case void 0:return Ci();case"save":u.save(R.filename);break;case"arraybuffer":return it(Ci());case"blob":return Za(Ci());case"bloburi":case"bloburl":if(mt.URL!==void 0&&typeof mt.URL.createObjectURL=="function")return mt.URL&&mt.URL.createObjectURL(Za(Ci()))||void 0;tr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ae="",he=Ci();try{ae=kf(he)}catch{ae=kf(unescape(encodeURIComponent(he)))}return"data:application/pdf;filename="+R.filename+";base64,"+ae;case"pdfobjectnewwindow":if(Object.prototype.toString.call(mt)==="[object Window]"){var ve="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ce=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';R.pdfObjectUrl&&(ve=R.pdfObjectUrl,Ce="");var ze='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+ve+'"'+Ce+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(R)+");<\/script></body></html>",at=mt.open();return at!==null&&at.document.write(ze),at}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(mt)==="[object Window]"){var ut='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(R.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+R.filename+'" width="500px" height="400px" /></body></html>',St=mt.open();if(St!==null){St.document.write(ut);var bt=this;St.document.documentElement.querySelector("#pdfViewer").onload=function(){St.document.title=R.filename,St.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(bt.output("bloburl"))}}return St}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(mt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ot='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",R)+'"></iframe></body></html>',fr=mt.open();if(fr!==null&&(fr.document.write(Ot),fr.document.title=R.filename),fr||typeof safari>"u")return fr;break;case"datauri":case"dataurl":return mt.document.location.href=this.output("datauristring",R);default:return null}})),t0=function(x){return Array.isArray(Li)===!0&&Li.indexOf(x)>-1};switch(n){case"pt":et=1;break;case"mm":et=72/25.4;break;case"cm":et=72/2.54;break;case"in":et=72;break;case"px":et=t0("px_scaling")==1?.75:96/72;break;case"pc":case"em":et=12;break;case"ex":et=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);et=n}var Kr=null;ye(),oe();var Cl=function(x){return h!==null?Kr.encryptor(x,0):function(R){return R}},r0=u.__private__.getPageInfo=u.getPageInfo=function(x){if(isNaN(x)||x%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:wt[x].objId,pageNumber:x,pageContext:wt[x]}},yt=u.__private__.getPageInfoByObjId=function(x){if(isNaN(x)||x%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var R in wt)if(wt[R].objId===x)break;return r0(R)},kl=u.__private__.getCurrentPageInfo=u.getCurrentPageInfo=function(){return{objId:wt[C].objId,pageNumber:C,pageContext:wt[C]}};u.addPage=function(){return Zo.apply(this,arguments),this},u.setPage=function(){return Qo.apply(this,arguments),Ee.call(this,Pe[C]),this},u.insertPage=function(x){return this.addPage(),this.movePage(C,x),this},u.movePage=function(x,R){var ae,he;if(x>R){ae=Pe[x],he=wt[x];for(var ve=x;ve>R;ve--)Pe[ve]=Pe[ve-1],wt[ve]=wt[ve-1];Pe[R]=ae,wt[R]=he,this.setPage(R)}else if(x<R){ae=Pe[x],he=wt[x];for(var Ce=x;Ce<R;Ce++)Pe[Ce]=Pe[Ce+1],wt[Ce]=wt[Ce+1];Pe[R]=ae,wt[R]=he,this.setPage(R)}return this},u.deletePage=function(){return Al.apply(this,arguments),this},u.__private__.text=u.text=function(x,R,ae,he,ve){var Ce,ze,at,ut,St,bt,Ot,fr,ur,Ar=(he=he||{}).scope||this;if(typeof x=="number"&&typeof R=="number"&&(typeof ae=="string"||Array.isArray(ae))){var Jr=ae;ae=R,R=x,x=Jr}if(arguments[3]instanceof dt?(I("The transform parameter of text() with a Matrix value"),ur=ve):(at=arguments[4],ut=arguments[5],Ht(Ot=arguments[3])==="object"&&Ot!==null||(typeof at=="string"&&(ut=at,at=null),typeof Ot=="string"&&(ut=Ot,Ot=null),typeof Ot=="number"&&(at=Ot,Ot=null),he={flags:Ot,angle:at,align:ut})),isNaN(R)||isNaN(ae)||x==null)throw new Error("Invalid arguments passed to jsPDF.text");if(x.length===0)return Ar;var Dr="",ti=!1,En=typeof he.lineHeightFactor=="number"?he.lineHeightFactor:Aa,wi=Ar.internal.scaleFactor;function u0(nr){return nr=nr.split(" ").join(Array(he.TabLen||9).join(" ")),gn(nr,Ot)}function Qs(nr){for(var ir,wr=nr.concat(),Pr=[],Di=wr.length;Di--;)typeof(ir=wr.shift())=="string"?Pr.push(ir):Array.isArray(nr)&&(ir.length===1||ir[1]===void 0&&ir[2]===void 0)?Pr.push(ir[0]):Pr.push([ir[0],ir[1],ir[2]]);return Pr}function eo(nr,ir){var wr;if(typeof nr=="string")wr=ir(nr)[0];else if(Array.isArray(nr)){for(var Pr,Di,lo=nr.concat(),ps=[],m0=lo.length;m0--;)typeof(Pr=lo.shift())=="string"?ps.push(ir(Pr)[0]):Array.isArray(Pr)&&typeof Pr[0]=="string"&&(Di=ir(Pr[0],Pr[1],Pr[2]),ps.push([Di[0],Di[1],Di[2]]));wr=ps}return wr}var as=!1,to=!0;if(typeof x=="string")as=!0;else if(Array.isArray(x)){var ro=x.concat();ze=[];for(var ss,zr=ro.length;zr--;)(typeof(ss=ro.shift())!="string"||Array.isArray(ss)&&typeof ss[0]!="string")&&(to=!1);as=to}if(as===!1)throw new Error('Type of text must be string or Array. "'+x+'" is not recognized.');typeof x=="string"&&(x=x.match(/[\r?\n]/)?x.split(/\r\n|\r|\n/g):[x]);var os=Ge/Ar.internal.scaleFactor,ls=os*(En-1);switch(he.baseline){case"bottom":ae-=ls;break;case"top":ae+=os-ls;break;case"hanging":ae+=os-2*ls;break;case"middle":ae+=os/2-ls}if((bt=he.maxWidth||0)>0&&(typeof x=="string"?x=Ar.splitTextToSize(x,bt):Object.prototype.toString.call(x)==="[object Array]"&&(x=x.reduce((function(nr,ir){return nr.concat(Ar.splitTextToSize(ir,bt))}),[]))),Ce={text:x,x:R,y:ae,options:he,mutex:{pdfEscape:gn,activeFontKey:Et,fonts:zt,activeFontSize:Ge}},jt.publish("preProcessText",Ce),x=Ce.text,at=(he=Ce.options).angle,!(ur instanceof dt)&&at&&typeof at=="number"){at*=Math.PI/180,he.rotationDirection===0&&(at=-at),A===S.ADVANCED&&(at=-at);var fs=Math.cos(at),no=Math.sin(at);ur=new dt(fs,no,-no,fs,0,0)}else at&&at instanceof dt&&(ur=at);A!==S.ADVANCED||ur||(ur=pn),(St=he.charSpace||rs)!==void 0&&(Dr+=L(N(St))+` Tc
87
+ `,this.setCharSpace(this.getCharSpace()||0)),(fr=he.horizontalScale)!==void 0&&(Dr+=L(100*fr)+` Tz
88
+ `),he.lang;var mn=-1,zl=he.renderingMode!==void 0?he.renderingMode:he.stroke,io=Ar.internal.getCurrentPageInfo().pageContext;switch(zl){case 0:case!1:case"fill":mn=0;break;case 1:case!0:case"stroke":mn=1;break;case 2:case"fillThenStroke":mn=2;break;case 3:case"invisible":mn=3;break;case 4:case"fillAndAddForClipping":mn=4;break;case 5:case"strokeAndAddPathForClipping":mn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":mn=6;break;case 7:case"addToPathForClipping":mn=7}var h0=io.usedRenderingMode!==void 0?io.usedRenderingMode:-1;mn!==-1?Dr+=mn+` Tr
89
+ `:h0!==-1&&(Dr+=`0 Tr
90
+ `),mn!==-1&&(io.usedRenderingMode=mn),ut=he.align||"left";var Un,cs=Ge*En,d0=Ar.internal.pageSize.getWidth(),p0=zt[Et];St=he.charSpace||rs,bt=he.maxWidth||0,Ot=Object.assign({autoencode:!0,noBOM:!0},he.flags);var Ki=[],Ea=function(nr){return Ar.getStringUnitWidth(nr,{font:p0,charSpace:St,fontSize:Ge,doKerning:!1})*Ge/wi};if(Object.prototype.toString.call(x)==="[object Array]"){var xn;ze=Qs(x),ut!=="left"&&(Un=ze.map(Ea));var sn,Ji=0;if(ut==="right"){R-=Un[0],x=[],zr=ze.length;for(var Pi=0;Pi<zr;Pi++)Pi===0?(sn=vi(R),xn=ki(ae)):(sn=N(Ji-Un[Pi]),xn=-cs),x.push([ze[Pi],sn,xn]),Ji=Un[Pi]}else if(ut==="center"){R-=Un[0]/2,x=[],zr=ze.length;for(var Ii=0;Ii<zr;Ii++)Ii===0?(sn=vi(R),xn=ki(ae)):(sn=N((Ji-Un[Ii])/2),xn=-cs),x.push([ze[Ii],sn,xn]),Ji=Un[Ii]}else if(ut==="left"){x=[],zr=ze.length;for(var us=0;us<zr;us++)x.push(ze[us])}else if(ut==="justify"&&p0.encoding==="Identity-H"){x=[],zr=ze.length,bt=bt!==0?bt:d0;for(var Oi=0,vr=0;vr<zr;vr++)if(xn=vr===0?ki(ae):-cs,sn=vr===0?vi(R):Oi,vr<zr-1){var ao=N((bt-Un[vr])/(ze[vr].split(" ").length-1)),on=ze[vr].split(" ");x.push([on[0]+" ",sn,xn]),Oi=0;for(var zn=1;zn<on.length;zn++){var hs=(Ea(on[zn-1]+" "+on[zn])-Ea(on[zn]))*wi+ao;zn==on.length-1?x.push([on[zn],hs,0]):x.push([on[zn]+" ",hs,0]),Oi-=hs}}else x.push([ze[vr],sn,xn]);x.push(["",Oi,0])}else{if(ut!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(x=[],zr=ze.length,bt=bt!==0?bt:d0,vr=0;vr<zr;vr++)xn=vr===0?ki(ae):-cs,sn=vr===0?vi(R):0,vr<zr-1?Ki.push(L(N((bt-Un[vr])/(ze[vr].split(" ").length-1)))):Ki.push(0),x.push([ze[vr],sn,xn])}}var g0=typeof he.R2L=="boolean"?he.R2L:lt;g0===!0&&(x=eo(x,(function(nr,ir,wr){return[nr.split("").reverse().join(""),ir,wr]}))),Ce={text:x,x:R,y:ae,options:he,mutex:{pdfEscape:gn,activeFontKey:Et,fonts:zt,activeFontSize:Ge}},jt.publish("postProcessText",Ce),x=Ce.text,ti=Ce.mutex.isHex||!1;var so=zt[Et].encoding;so!=="WinAnsiEncoding"&&so!=="StandardEncoding"||(x=eo(x,(function(nr,ir,wr){return[u0(nr),ir,wr]}))),ze=Qs(x),x=[];for(var La,Fa,Zi,Ca=0,ds=1,ka=Array.isArray(ze[0])?ds:Ca,Qi="",oo=function(nr,ir,wr){var Pr="";return wr instanceof dt?(wr=typeof he.angle=="number"?Nn(wr,new dt(1,0,0,1,nr,ir)):Nn(new dt(1,0,0,1,nr,ir),wr),A===S.ADVANCED&&(wr=Nn(new dt(1,0,0,-1,0,0),wr)),Pr=wr.join(" ")+` Tm
91
+ `):Pr=L(nr)+" "+L(ir)+` Td
92
+ `,Pr},Wn=0;Wn<ze.length;Wn++){switch(Qi="",ka){case ds:Zi=(ti?"<":"(")+ze[Wn][0]+(ti?">":")"),La=parseFloat(ze[Wn][1]),Fa=parseFloat(ze[Wn][2]);break;case Ca:Zi=(ti?"<":"(")+ze[Wn]+(ti?">":")"),La=vi(R),Fa=ki(ae)}Ki!==void 0&&Ki[Wn]!==void 0&&(Qi=Ki[Wn]+` Tw
93
+ `),Wn===0?x.push(Qi+oo(La,Fa,ur)+Zi):ka===Ca?x.push(Qi+Zi):ka===ds&&x.push(Qi+oo(La,Fa,ur)+Zi)}x=ka===Ca?x.join(` Tj
94
+ T* `):x.join(` Tj
95
+ `),x+=` Tj
96
+ `;var Hn=`BT
97
+ /`;return Hn+=Et+" "+Ge+` Tf
98
+ `,Hn+=L(Ge*En)+` TL
99
+ `,Hn+=Na+`
100
+ `,Hn+=Dr,Hn+=x,se(Hn+="ET"),g[Et]=!0,Ar};var Pl=u.__private__.clip=u.clip=function(x){return se(x==="evenodd"?"W*":"W"),this};u.clipEvenOdd=function(){return Pl("evenodd")},u.__private__.discardPath=u.discardPath=function(){return se("n"),this};var xi=u.__private__.isValidStyle=function(x){var R=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(x)!==-1&&(R=!0),R};u.__private__.setDefaultPathOperation=u.setDefaultPathOperation=function(x){return xi(x)&&(c=x),this};var n0=u.__private__.getStyle=u.getStyle=function(x){var R=c;switch(x){case"D":case"S":R="S";break;case"F":R="f";break;case"FD":case"DF":R="B";break;case"f":case"f*":case"B":case"B*":R=x}return R},i0=u.close=function(){return se("h"),this};u.stroke=function(){return se("S"),this},u.fill=function(x){return es("f",x),this},u.fillEvenOdd=function(x){return es("f*",x),this},u.fillStroke=function(x){return es("B",x),this},u.fillStrokeEvenOdd=function(x){return es("B*",x),this};var es=function(x,R){Ht(R)==="object"?Ol(R,x):se(x)},Hs=function(x){x===null||A===S.ADVANCED&&x===void 0||(x=n0(x),se(x))};function Il(x,R,ae,he,ve){var Ce=new Da(R||this.boundingBox,ae||this.xStep,he||this.yStep,this.gState,ve||this.matrix);Ce.stream=this.stream;var ze=x+"$$"+this.cloneIndex+++"$$";return $r(ze,Ce),Ce}var Ol=function(x,R){var ae=pi[x.key],he=Dt[ae];if(he instanceof ha)se("q"),se(Dl(R)),he.gState&&u.setGState(he.gState),se(x.matrix.toString()+" cm"),se("/"+ae+" sh"),se("Q");else if(he instanceof Da){var ve=new dt(1,0,0,-1,0,$i());x.matrix&&(ve=ve.multiply(x.matrix||pn),ae=Il.call(he,x.key,x.boundingBox,x.xStep,x.yStep,ve).id),se("q"),se("/Pattern cs"),se("/"+ae+" scn"),he.gState&&u.setGState(he.gState),se(R),se("Q")}},Dl=function(x){switch(x){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"}},qs=u.moveTo=function(x,R){return se(L(N(x))+" "+L(Y(R))+" m"),this},Sa=u.lineTo=function(x,R){return se(L(N(x))+" "+L(Y(R))+" l"),this},Xi=u.curveTo=function(x,R,ae,he,ve,Ce){return se([L(N(x)),L(Y(R)),L(N(ae)),L(Y(he)),L(N(ve)),L(Y(Ce)),"c"].join(" ")),this};u.__private__.line=u.line=function(x,R,ae,he,ve){if(isNaN(x)||isNaN(R)||isNaN(ae)||isNaN(he)||!xi(ve))throw new Error("Invalid arguments passed to jsPDF.line");return A===S.COMPAT?this.lines([[ae-x,he-R]],x,R,[1,1],ve||"S"):this.lines([[ae-x,he-R]],x,R,[1,1]).stroke()},u.__private__.lines=u.lines=function(x,R,ae,he,ve,Ce){var ze,at,ut,St,bt,Ot,fr,ur,Ar,Jr,Dr,ti;if(typeof x=="number"&&(ti=ae,ae=R,R=x,x=ti),he=he||[1,1],Ce=Ce||!1,isNaN(R)||isNaN(ae)||!Array.isArray(x)||!Array.isArray(he)||!xi(ve)||typeof Ce!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(qs(R,ae),ze=he[0],at=he[1],St=x.length,Jr=R,Dr=ae,ut=0;ut<St;ut++)(bt=x[ut]).length===2?(Jr=bt[0]*ze+Jr,Dr=bt[1]*at+Dr,Sa(Jr,Dr)):(Ot=bt[0]*ze+Jr,fr=bt[1]*at+Dr,ur=bt[2]*ze+Jr,Ar=bt[3]*at+Dr,Jr=bt[4]*ze+Jr,Dr=bt[5]*at+Dr,Xi(Ot,fr,ur,Ar,Jr,Dr));return Ce&&i0(),Hs(ve),this},u.path=function(x){for(var R=0;R<x.length;R++){var ae=x[R],he=ae.c;switch(ae.op){case"m":qs(he[0],he[1]);break;case"l":Sa(he[0],he[1]);break;case"c":Xi.apply(this,he);break;case"h":i0()}}return this},u.__private__.rect=u.rect=function(x,R,ae,he,ve){if(isNaN(x)||isNaN(R)||isNaN(ae)||isNaN(he)||!xi(ve))throw new Error("Invalid arguments passed to jsPDF.rect");return A===S.COMPAT&&(he=-he),se([L(N(x)),L(Y(R)),L(N(ae)),L(N(he)),"re"].join(" ")),Hs(ve),this},u.__private__.triangle=u.triangle=function(x,R,ae,he,ve,Ce,ze){if(isNaN(x)||isNaN(R)||isNaN(ae)||isNaN(he)||isNaN(ve)||isNaN(Ce)||!xi(ze))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ae-x,he-R],[ve-ae,Ce-he],[x-ve,R-Ce]],x,R,[1,1],ze,!0),this},u.__private__.roundedRect=u.roundedRect=function(x,R,ae,he,ve,Ce,ze){if(isNaN(x)||isNaN(R)||isNaN(ae)||isNaN(he)||isNaN(ve)||isNaN(Ce)||!xi(ze))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var at=4/3*(Math.SQRT2-1);return ve=Math.min(ve,.5*ae),Ce=Math.min(Ce,.5*he),this.lines([[ae-2*ve,0],[ve*at,0,ve,Ce-Ce*at,ve,Ce],[0,he-2*Ce],[0,Ce*at,-ve*at,Ce,-ve,Ce],[2*ve-ae,0],[-ve*at,0,-ve,-Ce*at,-ve,-Ce],[0,2*Ce-he],[0,-Ce*at,ve*at,-Ce,ve,-Ce]],x+ve,R,[1,1],ze,!0),this},u.__private__.ellipse=u.ellipse=function(x,R,ae,he,ve){if(isNaN(x)||isNaN(R)||isNaN(ae)||isNaN(he)||!xi(ve))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ce=4/3*(Math.SQRT2-1)*ae,ze=4/3*(Math.SQRT2-1)*he;return qs(x+ae,R),Xi(x+ae,R-ze,x+Ce,R-he,x,R-he),Xi(x-Ce,R-he,x-ae,R-ze,x-ae,R),Xi(x-ae,R+ze,x-Ce,R+he,x,R+he),Xi(x+Ce,R+he,x+ae,R+ze,x+ae,R),Hs(ve),this},u.__private__.circle=u.circle=function(x,R,ae,he){if(isNaN(x)||isNaN(R)||isNaN(ae)||!xi(he))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(x,R,ae,ae,he)},u.setFont=function(x,R,ae){return ae&&(R=G(R,ae)),Et=e0(x,R,{disableWarning:!1}),this};var Rl=u.__private__.getFont=u.getFont=function(){return zt[e0.apply(u,arguments)]};u.__private__.getFontList=u.getFontList=function(){var x,R,ae={};for(x in rr)if(rr.hasOwnProperty(x))for(R in ae[x]=[],rr[x])rr[x].hasOwnProperty(R)&&ae[x].push(R);return ae},u.addFont=function(x,R,ae,he,ve){var Ce=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ce.indexOf(arguments[3])!==-1?ve=arguments[3]:arguments[3]&&Ce.indexOf(arguments[3])==-1&&(ae=G(ae,he)),ve=ve||"Identity-H",Us.call(this,x,R,ae,ve)};var Aa,Gs=e.lineWidth||.200025,ts=u.__private__.getLineWidth=u.getLineWidth=function(){return Gs},a0=u.__private__.setLineWidth=u.setLineWidth=function(x){return Gs=x,se(L(N(x))+" w"),this};u.__private__.setLineDash=ht.API.setLineDash=ht.API.setLineDashPattern=function(x,R){if(x=x||[],R=R||0,isNaN(R)||!Array.isArray(x))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return x=x.map((function(ae){return L(N(ae))})).join(" "),R=L(N(R)),se("["+x+"] "+R+" d"),this};var s0=u.__private__.getLineHeight=u.getLineHeight=function(){return Ge*Aa};u.__private__.getLineHeight=u.getLineHeight=function(){return Ge*Aa};var o0=u.__private__.setLineHeightFactor=u.setLineHeightFactor=function(x){return typeof(x=x||1.15)=="number"&&(Aa=x),this},l0=u.__private__.getLineHeightFactor=u.getLineHeightFactor=function(){return Aa};o0(e.lineHeight);var vi=u.__private__.getHorizontalCoordinate=function(x){return N(x)},ki=u.__private__.getVerticalCoordinate=function(x){return A===S.ADVANCED?x:wt[C].mediaBox.topRightY-wt[C].mediaBox.bottomLeftY-N(x)},jl=u.__private__.getHorizontalCoordinateString=u.getHorizontalCoordinateString=function(x){return L(vi(x))},Yi=u.__private__.getVerticalCoordinateString=u.getVerticalCoordinateString=function(x){return L(ki(x))},ei=e.strokeColor||"0 G";u.__private__.getStrokeColor=u.getDrawColor=function(){return te(ei)},u.__private__.setStrokeColor=u.setDrawColor=function(x,R,ae,he){return ei=ie({ch1:x,ch2:R,ch3:ae,ch4:he,pdfColorType:"draw",precision:2}),se(ei),this};var Vs=e.fillColor||"0 g";u.__private__.getFillColor=u.getFillColor=function(){return te(Vs)},u.__private__.setFillColor=u.setFillColor=function(x,R,ae,he){return Vs=ie({ch1:x,ch2:R,ch3:ae,ch4:he,pdfColorType:"fill",precision:2}),se(Vs),this};var Na=e.textColor||"0 g",Ml=u.__private__.getTextColor=u.getTextColor=function(){return te(Na)};u.__private__.setTextColor=u.setTextColor=function(x,R,ae,he){return Na=ie({ch1:x,ch2:R,ch3:ae,ch4:he,pdfColorType:"text",precision:3}),this};var rs=e.charSpace,Bl=u.__private__.getCharSpace=u.getCharSpace=function(){return parseFloat(rs||0)};u.__private__.setCharSpace=u.setCharSpace=function(x){if(isNaN(x))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return rs=x,this};var Xs=0;u.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},u.__private__.setLineCap=u.setLineCap=function(x){var R=u.CapJoinStyles[x];if(R===void 0)throw new Error("Line cap style of '"+x+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Xs=R,se(R+" J"),this};var Ys=0;u.__private__.setLineJoin=u.setLineJoin=function(x){var R=u.CapJoinStyles[x];if(R===void 0)throw new Error("Line join style of '"+x+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ys=R,se(R+" j"),this},u.__private__.setLineMiterLimit=u.__private__.setMiterLimit=u.setLineMiterLimit=u.setMiterLimit=function(x){if(x=x||0,isNaN(x))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return se(L(N(x))+" M"),this},u.GState=Oo,u.setGState=function(x){(x=typeof x=="string"?ar[An[x]]:f0(null,x)).equals(Kn)||(se("/"+x.id+" gs"),Kn=x)};var f0=function(x,R){if(!x||!An[x]){var ae=!1;for(var he in ar)if(ar.hasOwnProperty(he)&&ar[he].equals(R)){ae=!0;break}if(ae)R=ar[he];else{var ve="GS"+(Object.keys(ar).length+1).toString(10);ar[ve]=R,R.id=ve}return x&&(An[x]=R.id),jt.publish("addGState",R),R}};u.addGState=function(x,R){return f0(x,R),this},u.saveGraphicsState=function(){return se("q"),jn.push({key:Et,size:Ge,color:Na}),this},u.restoreGraphicsState=function(){se("Q");var x=jn.pop();return Et=x.key,Ge=x.size,Na=x.color,Kn=null,this},u.setCurrentTransformationMatrix=function(x){return se(x.toString()+" cm"),this},u.comment=function(x){return se("#"+x),this};var ns=function(x,R){var ae=x||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ae},set:function(Ce){isNaN(Ce)||(ae=parseFloat(Ce))}});var he=R||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return he},set:function(Ce){isNaN(Ce)||(he=parseFloat(Ce))}});var ve="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ve},set:function(Ce){ve=Ce.toString()}}),this},$s=function(x,R,ae,he){ns.call(this,x,R),this.type="rect";var ve=ae||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ve},set:function(ze){isNaN(ze)||(ve=parseFloat(ze))}});var Ce=he||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ce},set:function(ze){isNaN(ze)||(Ce=parseFloat(ze))}}),this},Ks=function(){this.page=Qt,this.currentPage=C,this.pages=Pe.slice(0),this.pagesContext=wt.slice(0),this.x=Cr,this.y=It,this.matrix=dn,this.width=Ta(C),this.height=$i(C),this.outputDestination=He,this.id="",this.objectNumber=-1};Ks.prototype.restore=function(){Qt=this.page,C=this.currentPage,wt=this.pagesContext,Pe=this.pages,Cr=this.x,It=this.y,dn=this.matrix,Js(C,this.width),Zs(C,this.height),He=this.outputDestination};var c0=function(x,R,ae,he,ve){Bn.push(new Ks),Qt=C=0,Pe=[],Cr=x,It=R,dn=ve,zs([ae,he])},Ul=function(x){if(Mn[x])Bn.pop().restore();else{var R=new Ks,ae="Xo"+(Object.keys(kr).length+1).toString(10);R.id=ae,Mn[x]=ae,kr[ae]=R,jt.publish("addFormObject",R),Bn.pop().restore()}};for(var is in u.beginFormObject=function(x,R,ae,he,ve){return c0(x,R,ae,he,ve),this},u.endFormObject=function(x){return Ul(x),this},u.doFormObject=function(x,R){var ae=kr[Mn[x]];return se("q"),se(R.toString()+" cm"),se("/"+ae.id+" Do"),se("Q"),this},u.getFormObject=function(x){var R=kr[Mn[x]];return{x:R.x,y:R.y,width:R.width,height:R.height,matrix:R.matrix}},u.save=function(x,R){return x=x||"generated.pdf",(R=R||{}).returnPromise=R.returnPromise||!1,R.returnPromise===!1?(Ia(Za(Ci()),x),typeof Ia.unload=="function"&&mt.setTimeout&&setTimeout(Ia.unload,911),this):new Promise((function(ae,he){try{var ve=Ia(Za(Ci()),x);typeof Ia.unload=="function"&&mt.setTimeout&&setTimeout(Ia.unload,911),ae(ve)}catch(Ce){he(Ce.message)}}))},ht.API)ht.API.hasOwnProperty(is)&&(is==="events"&&ht.API.events.length?(function(x,R){var ae,he,ve;for(ve=R.length-1;ve!==-1;ve--)ae=R[ve][0],he=R[ve][1],x.subscribe.apply(x,[ae].concat(typeof he=="function"?[he]:he))})(jt,ht.API.events):u[is]=ht.API[is]);var Ta=u.getPageWidth=function(x){return(wt[x=x||C].mediaBox.topRightX-wt[x].mediaBox.bottomLeftX)/et},Js=u.setPageWidth=function(x,R){wt[x].mediaBox.topRightX=R*et+wt[x].mediaBox.bottomLeftX},$i=u.getPageHeight=function(x){return(wt[x=x||C].mediaBox.topRightY-wt[x].mediaBox.bottomLeftY)/et},Zs=u.setPageHeight=function(x,R){wt[x].mediaBox.topRightY=R*et+wt[x].mediaBox.bottomLeftY};return u.internal={pdfEscape:gn,getStyle:n0,getFont:Rl,getFontSize:Ze,getCharSpace:Bl,getTextColor:Ml,getLineHeight:s0,getLineHeightFactor:l0,getLineWidth:ts,write:je,getHorizontalCoordinate:vi,getVerticalCoordinate:ki,getCoordinateString:jl,getVerticalCoordinateString:Yi,collections:{},newObject:mr,newAdditionalObject:re,newObjectDeferred:cr,newObjectDeferredBegin:B,getFilters:_e,putStream:Le,events:jt,scaleFactor:et,pageSize:{getWidth:function(){return Ta(C)},setWidth:function(x){Js(C,x)},getHeight:function(){return $i(C)},setHeight:function(x){Zs(C,x)}},encryptionOptions:h,encryption:Kr,getEncryptor:Cl,output:Qa,getNumberOfPages:Nl,pages:Pe,out:se,f2:V,f3:E,getPageInfo:r0,getPageInfoByObjId:yt,getCurrentPageInfo:kl,getPDFVersion:m,Point:ns,Rectangle:$s,Matrix:dt,hasHotfix:t0},Object.defineProperty(u.internal.pageSize,"width",{get:function(){return Ta(C)},set:function(x){Js(C,x)},enumerable:!0,configurable:!0}),Object.defineProperty(u.internal.pageSize,"height",{get:function(){return $i(C)},set:function(x){Zs(C,x)},enumerable:!0,configurable:!0}),Sl.call(u,Ue),Et="F1",Zo(i,t),jt.publish("initialized"),u}As.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},As.prototype.toHexString=function(e){return e.split("").map((function(r){return("0"+(255&r.charCodeAt(0)).toString(16)).slice(-2)})).join("")},As.prototype.hexToBytes=function(e){for(var r=[],t=0;t<e.length;t+=2)r.push(String.fromCharCode(parseInt(e.substr(t,2),16)));return r.join("")},As.prototype.processOwnerPassword=function(e,r){return If(Pf(r).substr(0,5),e)},As.prototype.encryptor=function(e,r){var t=Pf(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&r,r>>8&255)).substr(0,10);return function(n){return If(t,n)}},Oo.prototype.equals=function(e){var r,t="id,objectNumber,equals";if(!e||Ht(e)!==Ht(this))return!1;var n=0;for(r in this)if(!(t.indexOf(r)>=0)){if(this.hasOwnProperty(r)&&!e.hasOwnProperty(r)||this[r]!==e[r])return!1;n++}for(r in e)e.hasOwnProperty(r)&&t.indexOf(r)<0&&n--;return n===0},ht.API={events:[]},ht.version="2.5.2";var dr=ht.API,qf=1,Ga=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ws=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},_t=function(e){return e.toFixed(2)},ca=function(e){return e.toFixed(5)};dr.__acroform__={};var Sn=function(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e},$c=function(e){return e*qf},bi=function(e){var r=new mh,t=ot.internal.getHeight(e)||0,n=ot.internal.getWidth(e)||0;return r.BBox=[0,0,Number(_t(n)),Number(_t(t))],r},G2=dr.__acroform__.setBit=function(e,r){if(e=e||0,r=r||0,isNaN(e)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<r},V2=dr.__acroform__.clearBit=function(e,r){if(e=e||0,r=r||0,isNaN(e)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<r)},X2=dr.__acroform__.getBit=function(e,r){if(isNaN(e)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(e&1<<r)==0?0:1},yr=dr.__acroform__.getBitForPdf=function(e,r){if(isNaN(e)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return X2(e,r-1)},br=dr.__acroform__.setBitForPdf=function(e,r){if(isNaN(e)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return G2(e,r-1)},_r=dr.__acroform__.clearBitForPdf=function(e,r){if(isNaN(e)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return V2(e,r-1)},Y2=dr.__acroform__.calculateCoordinates=function(e,r){var t=r.internal.getHorizontalCoordinate,n=r.internal.getVerticalCoordinate,i=e[0],a=e[1],s=e[2],o=e[3],l={};return l.lowerLeft_X=t(i)||0,l.lowerLeft_Y=n(a+o)||0,l.upperRight_X=t(i+s)||0,l.upperRight_Y=n(a)||0,[Number(_t(l.lowerLeft_X)),Number(_t(l.lowerLeft_Y)),Number(_t(l.upperRight_X)),Number(_t(l.upperRight_Y))]},$2=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var r=[],t=e._V||e.DV,n=Of(e,t),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;r.push("/Tx BMC"),r.push("q"),r.push("BT"),r.push(e.scope.__private__.encodeColorString(e.color)),r.push("/"+i+" "+_t(n.fontSize)+" Tf"),r.push("1 0 0 1 0 0 Tm"),r.push(n.text),r.push("ET"),r.push("Q"),r.push("EMC");var a=bi(e);return a.scope=e.scope,a.stream=r.join(`
101
+ `),a}},Of=function(e,r){var t=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},i=(r=(r=r.substr(0,1)=="("?r.substr(1):r).substr(r.length-1)==")"?r.substr(0,r.length-1):r).split(" ");i=e.multiline?i.map((function(E){return E.split(`
102
+ `)})):i.map((function(E){return[E]}));var a=t,s=ot.internal.getHeight(e)||0;s=s<0?-s:s;var o=ot.internal.getWidth(e)||0;o=o<0?-o:o;var l=function(E,N,H){if(E+1<i.length){var Y=N+" "+i[E+1][0];return j0(Y,e,H).width<=o-4}return!1};a++;e:for(;a>0;){r="",a--;var c,h,p=j0("3",e,a).height,g=e.multiline?s-a:(s-p)/2,u=g+=2,v=0,m=0,y=0;if(a<=0){r=`(...) Tj
103
+ `,r+="% Width of Text: "+j0(r,e,a=12).width+", FieldWidth:"+o+`
104
+ `;break}for(var _="",S=0,A=0;A<i.length;A++)if(i.hasOwnProperty(A)){var P=!1;if(i[A].length!==1&&y!==i[A].length-1){if((p+2)*(S+2)+2>s)continue e;_+=i[A][y],P=!0,m=A,A--}else{_=(_+=i[A][y]+" ").substr(_.length-1)==" "?_.substr(0,_.length-1):_;var z=parseInt(A),G=l(z,_,a),L=A>=i.length-1;if(G&&!L){_+=" ",y=0;continue}if(G||L){if(L)m=z;else if(e.multiline&&(p+2)*(S+2)+2>s)continue e}else{if(!e.multiline||(p+2)*(S+2)+2>s)continue e;m=z}}for(var I="",j=v;j<=m;j++){var V=i[j];if(e.multiline){if(j===m){I+=V[y]+" ",y=(y+1)%V.length;continue}if(j===v){I+=V[V.length-1]+" ";continue}}I+=V[0]+" "}switch(I=I.substr(I.length-1)==" "?I.substr(0,I.length-1):I,h=j0(I,e,a).width,e.textAlign){case"right":c=o-h-2;break;case"center":c=(o-h)/2;break;case"left":default:c=2}r+=_t(c)+" "+_t(u)+` Td
105
+ `,r+="("+Ga(I)+`) Tj
106
+ `,r+=-_t(c)+` 0 Td
107
+ `,u=-(a+2),h=0,v=P?m:m+1,S++,_=""}break}return n.text=r,n.fontSize=a,n},j0=function(e,r,t){var n=r.scope.internal.getFont(r.fontName,r.fontStyle),i=r.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:r.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:i}},K2={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},J2=function(e,r){var t={type:"reference",object:e};r.internal.getPageInfo(e.page).pageContext.annotations.find((function(n){return n.type===t.type&&n.object===t.object}))===void 0&&r.internal.getPageInfo(e.page).pageContext.annotations.push(t)},Z2=function(e,r){for(var t in e)if(e.hasOwnProperty(t)){var n=t,i=e[t];r.internal.newObjectDeferredBegin(i.objId,!0),Ht(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete e[n]}},Q2=function(e,r){if(r.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(hi.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(K2)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");qf=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new xh,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(e)})),e.internal.events.subscribe("buildDocument",(function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];a.objId=void 0,a.hasAnnotation&&J2(a,t)}})(e)})),e.internal.events.subscribe("putCatalog",(function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)})),e.internal.events.subscribe("postPutPages",(function(t){(function(n,i){var a=!n;for(var s 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(s)){var o=n[s],l=[],c=o.Rect;if(o.Rect&&(o.Rect=Y2(o.Rect,i)),i.internal.newObjectDeferredBegin(o.objId,!0),o.DA=ot.createDefaultAppearanceStream(o),Ht(o)==="object"&&typeof o.getKeyValueListForStream=="function"&&(l=o.getKeyValueListForStream()),o.Rect=c,o.hasAppearanceStream&&!o.appearanceStreamContent){var h=$2(o);l.push({key:"AP",value:"<</N "+h+">>"}),i.internal.acroformPlugin.xForms.push(h)}if(o.appearanceStreamContent){var p="";for(var g in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(g)){var u=o.appearanceStreamContent[g];if(p+="/"+g+" ",p+="<<",Object.keys(u).length>=1||Array.isArray(u)){for(var s in u)if(u.hasOwnProperty(s)){var v=u[s];typeof v=="function"&&(v=v.call(i,o)),p+="/"+s+" "+v+" ",i.internal.acroformPlugin.xForms.indexOf(v)>=0||i.internal.acroformPlugin.xForms.push(v)}}else typeof(v=u)=="function"&&(v=v.call(i,o)),p+="/"+s+" "+v,i.internal.acroformPlugin.xForms.indexOf(v)>=0||i.internal.acroformPlugin.xForms.push(v);p+=">>"}l.push({key:"AP",value:`<<
108
+ `+p+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:o.objId}),i.internal.out("endobj")}a&&Z2(i.internal.acroformPlugin.xForms,i)})(t,e)})),e.internal.acroformPlugin.isInitialized=!0}},gh=dr.__acroform__.arrayToPdfArray=function(e,r,t){var n=function(s){return s};if(Array.isArray(e)){for(var i="[",a=0;a<e.length;a++)switch(a!==0&&(i+=" "),Ht(e[a])){case"boolean":case"number":case"object":i+=e[a].toString();break;case"string":e[a].substr(0,1)!=="/"?(r!==void 0&&t&&(n=t.internal.getEncryptor(r)),i+="("+Ga(n(e[a].toString()))+")"):i+=e[a].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},df=function(e,r,t){var n=function(i){return i};return r!==void 0&&t&&(n=t.internal.getEncryptor(r)),(e=e||"").toString(),e="("+Ga(n(e))+")"},Ai=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})};Ai.prototype.toString=function(){return this.objId+" 0 R"},Ai.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Ai.prototype.getKeyValueListForStream=function(){var e=[],r=Object.getOwnPropertyNames(this).filter((function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"}));for(var t in r)if(Object.getOwnPropertyDescriptor(this,r[t]).configurable===!1){var n=r[t],i=this[n];i&&(Array.isArray(i)?e.push({key:n,value:gh(i,this.objId,this.scope)}):i instanceof Ai?(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 mh=function(){Ai.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,r=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};Sn(mh,Ai);var xh=function(){Ai.call(this);var e,r=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return r.length>0?r:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return r}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(n){return n};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Ga(t(e))+")"}},set:function(t){e=t}})};Sn(xh,Ai);var hi=function e(){Ai.call(this);var r=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return r},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute F supplied.');r=_}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!yr(r,3)},set:function(_){_?this.F=br(r,3):this.F=_r(r,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute Ff supplied.');t=_}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(_){n=_!==void 0?_:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(_){n[0]=_}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(_){n[1]=_}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(_){n[2]=_}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(_){n[3]=_}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(_){switch(_){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=_;break;default:throw new Error('Invalid value "'+_+'" 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 K0)return;a="FieldObject"+e.FieldNum++}var _=function(S){return S};return this.scope&&(_=this.scope.internal.getEncryptor(this.objId)),"("+Ga(_(a))+")"},set:function(_){a=_.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(_){a=_}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(_){s=_}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(_){o=_}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(_){l=_}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/qf:c},set:function(_){c=_}});var h="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return h},set:function(_){h=_}});var p="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!p||this instanceof K0||this instanceof ma))return df(p,this.objId,this.scope)},set:function(_){_=_.toString(),p=_}});var g=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof Or?g:df(g,this.objId,this.scope)},set:function(_){_=_.toString(),g=this instanceof Or?_:_.substr(0,1)==="("?ws(_.substr(1,_.length-2)):ws(_)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Or?ws(g.substr(1,g.length-1)):g},set:function(_){_=_.toString(),g=this instanceof Or?"/"+_:_}});var u=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(u)return u},set:function(_){this.V=_}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(u)return this instanceof Or?u:df(u,this.objId,this.scope)},set:function(_){_=_.toString(),u=this instanceof Or?_:_.substr(0,1)==="("?ws(_.substr(1,_.length-2)):ws(_)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Or?ws(u.substr(1,u.length-1)):u},set:function(_){_=_.toString(),u=this instanceof Or?"/"+_:_}}),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 v,m=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return m},set:function(_){_=!!_,m=_}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(v)return v},set:function(_){v=_}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,1)},set:function(_){_?this.Ff=br(this.Ff,1):this.Ff=_r(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,2)},set:function(_){_?this.Ff=br(this.Ff,2):this.Ff=_r(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,3)},set:function(_){_?this.Ff=br(this.Ff,3):this.Ff=_r(this.Ff,3)}});var y=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(y!==null)return y},set:function(_){if([0,1,2].indexOf(_)===-1)throw new Error('Invalid value "'+_+'" for attribute Q supplied.');y=_}}),Object.defineProperty(this,"textAlign",{get:function(){var _;switch(y){case 0:default:_="left";break;case 1:_="center";break;case 2:_="right"}return _},configurable:!0,enumerable:!0,set:function(_){switch(_){case"right":case 2:y=2;break;case"center":case 1:y=1;break;case"left":case 0:default:y=0}}})};Sn(hi,Ai);var Ra=function(){hi.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(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var r=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return gh(r,this.objId,this.scope)},set:function(t){var n,i;i=[],typeof(n=t)=="string"&&(i=(function(a,s,o){o||(o=1);for(var l,c=[];l=s.exec(a);)c.push(l[o]);return c})(n,/\((.*?)\)/g)),r=i}}),this.getOptions=function(){return r},this.setOptions=function(t){r=t,this.sort&&r.sort()},this.addOption=function(t){t=(t=t||"").toString(),r.push(t),this.sort&&r.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();r.indexOf(t)!==-1&&(r.splice(r.indexOf(t),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,18)},set:function(t){t?this.Ff=br(this.Ff,18):this.Ff=_r(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=br(this.Ff,19):this.Ff=_r(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,20)},set:function(t){t?(this.Ff=br(this.Ff,20),r.sort()):this.Ff=_r(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,22)},set:function(t){t?this.Ff=br(this.Ff,22):this.Ff=_r(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,23)},set:function(t){t?this.Ff=br(this.Ff,23):this.Ff=_r(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,27)},set:function(t){t?this.Ff=br(this.Ff,27):this.Ff=_r(this.Ff,27)}}),this.hasAppearanceStream=!1};Sn(Ra,hi);var ja=function(){Ra.call(this),this.fontName="helvetica",this.combo=!1};Sn(ja,Ra);var Ma=function(){ja.call(this),this.combo=!0};Sn(Ma,ja);var So=function(){Ma.call(this),this.edit=!0};Sn(So,Ma);var Or=function(){hi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,15)},set:function(t){t?this.Ff=br(this.Ff,15):this.Ff=_r(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,16)},set:function(t){t?this.Ff=br(this.Ff,16):this.Ff=_r(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,17)},set:function(t){t?this.Ff=br(this.Ff,17):this.Ff=_r(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,26)},set:function(t){t?this.Ff=br(this.Ff,26):this.Ff=_r(this.Ff,26)}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(a){return a};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(r).length!==0){var n,i=[];for(n in i.push("<<"),r)i.push("/"+n+" ("+Ga(t(r[n]))+")");return i.push(">>"),i.join(`
109
+ `)}},set:function(t){Ht(t)==="object"&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){typeof t=="string"&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};Sn(Or,hi);var Ao=function(){Or.call(this),this.pushButton=!0};Sn(Ao,Or);var Ba=function(){Or.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(r){e=r!==void 0?r:[]}})};Sn(Ba,Or);var K0=function(){var e,r;hi.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 r},set:function(i){r=i}});var t,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(o){return o};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var a,s=[];for(a in s.push("<<"),n)s.push("/"+a+" ("+Ga(i(n[a]))+")");return s.push(">>"),s.join(`
110
+ `)},set:function(i){Ht(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 t},set:function(i){t=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(i){t="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ot.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Sn(K0,hi),Ba.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 r in this.Kids)if(this.Kids.hasOwnProperty(r)){var t=this.Kids[r];t.appearanceStreamContent=e.createAppearanceStream(t.optionName),t.caption=e.getCA()}},Ba.prototype.createOption=function(e){var r=new K0;return r.Parent=this,r.optionName=e,this.Kids.push(r),ep.call(this.scope,r),r};var No=function(){Or.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ot.CheckBox.createAppearanceStream()};Sn(No,Or);var ma=function(){hi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,13)},set:function(r){r?this.Ff=br(this.Ff,13):this.Ff=_r(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,21)},set:function(r){r?this.Ff=br(this.Ff,21):this.Ff=_r(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,23)},set:function(r){r?this.Ff=br(this.Ff,23):this.Ff=_r(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,24)},set:function(r){r?this.Ff=br(this.Ff,24):this.Ff=_r(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,25)},set:function(r){r?this.Ff=br(this.Ff,25):this.Ff=_r(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,26)},set:function(r){r?this.Ff=br(this.Ff,26):this.Ff=_r(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(r){Number.isInteger(r)&&(e=r)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Sn(ma,hi);var To=function(){ma.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!yr(this.Ff,14)},set:function(e){e?this.Ff=br(this.Ff,14):this.Ff=_r(this.Ff,14)}}),this.password=!0};Sn(To,ma);var ot={CheckBox:{createAppearanceStream:function(){return{N:{On:ot.CheckBox.YesNormal},D:{On:ot.CheckBox.YesPushDown,Off:ot.CheckBox.OffPushDown}}},YesPushDown:function(e){var r=bi(e);r.scope=e.scope;var t=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=Of(e,e.caption);return t.push("0.749023 g"),t.push("0 0 "+_t(ot.internal.getWidth(e))+" "+_t(ot.internal.getHeight(e))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+n+" "+_t(a.fontSize)+" Tf "+i),t.push("BT"),t.push(a.text),t.push("ET"),t.push("Q"),t.push("EMC"),r.stream=t.join(`
111
+ `),r},YesNormal:function(e){var r=bi(e);r.scope=e.scope;var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=[],a=ot.internal.getHeight(e),s=ot.internal.getWidth(e),o=Of(e,e.caption);return i.push("1 g"),i.push("0 0 "+_t(s)+" "+_t(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+_t(s-1)+" "+_t(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+t+" "+_t(o.fontSize)+" Tf "+n),i.push(o.text),i.push("ET"),i.push("Q"),r.stream=i.join(`
112
+ `),r},OffPushDown:function(e){var r=bi(e);r.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+_t(ot.internal.getWidth(e))+" "+_t(ot.internal.getHeight(e))+" re"),t.push("f"),r.stream=t.join(`
113
+ `),r}},RadioButton:{Circle:{createAppearanceStream:function(e){var r={D:{Off:ot.RadioButton.Circle.OffPushDown},N:{}};return r.N[e]=ot.RadioButton.Circle.YesNormal,r.D[e]=ot.RadioButton.Circle.YesPushDown,r},getCA:function(){return"l"},YesNormal:function(e){var r=bi(e);r.scope=e.scope;var t=[],n=ot.internal.getWidth(e)<=ot.internal.getHeight(e)?ot.internal.getWidth(e)/4:ot.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=ot.internal.Bezier_C,a=Number((n*i).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+ca(ot.internal.getWidth(e)/2)+" "+ca(ot.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),t.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),t.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),t.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),t.push("f"),t.push("Q"),r.stream=t.join(`
114
+ `),r},YesPushDown:function(e){var r=bi(e);r.scope=e.scope;var t=[],n=ot.internal.getWidth(e)<=ot.internal.getHeight(e)?ot.internal.getWidth(e)/4:ot.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*ot.internal.Bezier_C).toFixed(5)),s=Number((n*ot.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+ca(ot.internal.getWidth(e)/2)+" "+ca(ot.internal.getHeight(e)/2)+" cm"),t.push(i+" 0 m"),t.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),t.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),t.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),t.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+ca(ot.internal.getWidth(e)/2)+" "+ca(ot.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),t.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),t.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),t.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),t.push("f"),t.push("Q"),r.stream=t.join(`
115
+ `),r},OffPushDown:function(e){var r=bi(e);r.scope=e.scope;var t=[],n=ot.internal.getWidth(e)<=ot.internal.getHeight(e)?ot.internal.getWidth(e)/4:ot.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*ot.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+ca(ot.internal.getWidth(e)/2)+" "+ca(ot.internal.getHeight(e)/2)+" cm"),t.push(i+" 0 m"),t.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),t.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),t.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),t.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),t.push("f"),t.push("Q"),r.stream=t.join(`
116
+ `),r}},Cross:{createAppearanceStream:function(e){var r={D:{Off:ot.RadioButton.Cross.OffPushDown},N:{}};return r.N[e]=ot.RadioButton.Cross.YesNormal,r.D[e]=ot.RadioButton.Cross.YesPushDown,r},getCA:function(){return"8"},YesNormal:function(e){var r=bi(e);r.scope=e.scope;var t=[],n=ot.internal.calculateCross(e);return t.push("q"),t.push("1 1 "+_t(ot.internal.getWidth(e)-2)+" "+_t(ot.internal.getHeight(e)-2)+" re"),t.push("W"),t.push("n"),t.push(_t(n.x1.x)+" "+_t(n.x1.y)+" m"),t.push(_t(n.x2.x)+" "+_t(n.x2.y)+" l"),t.push(_t(n.x4.x)+" "+_t(n.x4.y)+" m"),t.push(_t(n.x3.x)+" "+_t(n.x3.y)+" l"),t.push("s"),t.push("Q"),r.stream=t.join(`
117
+ `),r},YesPushDown:function(e){var r=bi(e);r.scope=e.scope;var t=ot.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+_t(ot.internal.getWidth(e))+" "+_t(ot.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+_t(ot.internal.getWidth(e)-2)+" "+_t(ot.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(_t(t.x1.x)+" "+_t(t.x1.y)+" m"),n.push(_t(t.x2.x)+" "+_t(t.x2.y)+" l"),n.push(_t(t.x4.x)+" "+_t(t.x4.y)+" m"),n.push(_t(t.x3.x)+" "+_t(t.x3.y)+" l"),n.push("s"),n.push("Q"),r.stream=n.join(`
118
+ `),r},OffPushDown:function(e){var r=bi(e);r.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+_t(ot.internal.getWidth(e))+" "+_t(ot.internal.getHeight(e))+" re"),t.push("f"),r.stream=t.join(`
119
+ `),r}}},createDefaultAppearanceStream:function(e){var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,t=e.scope.__private__.encodeColorString(e.color);return"/"+r+" "+e.fontSize+" Tf "+t}};ot.internal={Bezier_C:.551915024494,calculateCross:function(e){var r=ot.internal.getWidth(e),t=ot.internal.getHeight(e),n=Math.min(r,t);return{x1:{x:(r-n)/2,y:(t-n)/2+n},x2:{x:(r-n)/2+n,y:(t-n)/2},x3:{x:(r-n)/2,y:(t-n)/2},x4:{x:(r-n)/2+n,y:(t-n)/2+n}}}},ot.internal.getWidth=function(e){var r=0;return Ht(e)==="object"&&(r=$c(e.Rect[2])),r},ot.internal.getHeight=function(e){var r=0;return Ht(e)==="object"&&(r=$c(e.Rect[3])),r};var ep=dr.addField=function(e){if(Q2(this,e),!(e instanceof hi))throw new Error("Invalid argument passed to jsPDF.addField.");var r;return(r=e).scope.internal.acroformPlugin.printedOut&&(r.scope.internal.acroformPlugin.printedOut=!1,r.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),r.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(r),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};dr.AcroFormChoiceField=Ra,dr.AcroFormListBox=ja,dr.AcroFormComboBox=Ma,dr.AcroFormEditBox=So,dr.AcroFormButton=Or,dr.AcroFormPushButton=Ao,dr.AcroFormRadioButton=Ba,dr.AcroFormCheckBox=No,dr.AcroFormTextField=ma,dr.AcroFormPasswordField=To,dr.AcroFormAppearance=ot,dr.AcroForm={ChoiceField:Ra,ListBox:ja,ComboBox:Ma,EditBox:So,Button:Or,PushButton:Ao,RadioButton:Ba,CheckBox:No,TextField:ma,PasswordField:To,Appearance:ot},ht.AcroForm={ChoiceField:Ra,ListBox:ja,ComboBox:Ma,EditBox:So,Button:Or,PushButton:Ao,RadioButton:Ba,CheckBox:No,TextField:ma,PasswordField:To,Appearance:ot};var tp=ht.AcroForm;function vh(e){return e.reduce((function(r,t,n){return r[t]=n,r}),{})}(function(e){e.__addimage__={};var r="UNKNOWN",t={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(E,N){var H,Y,fe,Q,J,oe=r;if((N=N||r)==="RGBA"||E.data!==void 0&&E.data instanceof Uint8ClampedArray&&"height"in E&&"width"in E)return"RGBA";if(G(E))for(J in t)for(fe=t[J],H=0;H<fe.length;H+=1){for(Q=!0,Y=0;Y<fe[H].length;Y+=1)if(fe[H][Y]!==void 0&&fe[H][Y]!==E[Y]){Q=!1;break}if(Q===!0){oe=J;break}}else for(J in t)for(fe=t[J],H=0;H<fe.length;H+=1){for(Q=!0,Y=0;Y<fe[H].length;Y+=1)if(fe[H][Y]!==void 0&&fe[H][Y]!==E.charCodeAt(Y)){Q=!1;break}if(Q===!0){oe=J;break}}return oe===r&&N!==r&&(oe=N),oe},i=function E(N){for(var H=this.internal.write,Y=this.internal.putStream,fe=(0,this.internal.getFilters)();fe.indexOf("FlateEncode")!==-1;)fe.splice(fe.indexOf("FlateEncode"),1);N.objectId=this.internal.newObject();var Q=[];if(Q.push({key:"Type",value:"/XObject"}),Q.push({key:"Subtype",value:"/Image"}),Q.push({key:"Width",value:N.width}),Q.push({key:"Height",value:N.height}),N.colorSpace===y.INDEXED?Q.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(N.palette.length/3-1)+" "+("sMask"in N&&N.sMask!==void 0?N.objectId+2:N.objectId+1)+" 0 R]"}):(Q.push({key:"ColorSpace",value:"/"+N.colorSpace}),N.colorSpace===y.DEVICE_CMYK&&Q.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Q.push({key:"BitsPerComponent",value:N.bitsPerComponent}),"decodeParameters"in N&&N.decodeParameters!==void 0&&Q.push({key:"DecodeParms",value:"<<"+N.decodeParameters+">>"}),"transparency"in N&&Array.isArray(N.transparency)){for(var J="",oe=0,ne=N.transparency.length;oe<ne;oe++)J+=N.transparency[oe]+" "+N.transparency[oe]+" ";Q.push({key:"Mask",value:"["+J+"]"})}N.sMask!==void 0&&Q.push({key:"SMask",value:N.objectId+1+" 0 R"});var ge=N.filter!==void 0?["/"+N.filter]:void 0;if(Y({data:N.data,additionalKeyValues:Q,alreadyAppliedFilters:ge,objectId:N.objectId}),H("endobj"),"sMask"in N&&N.sMask!==void 0){var ye="/Predictor "+N.predictor+" /Colors 1 /BitsPerComponent "+N.bitsPerComponent+" /Columns "+N.width,b={width:N.width,height:N.height,colorSpace:"DeviceGray",bitsPerComponent:N.bitsPerComponent,decodeParameters:ye,data:N.sMask};"filter"in N&&(b.filter=N.filter),E.call(this,b)}if(N.colorSpace===y.INDEXED){var C=this.internal.newObject();Y({data:I(new Uint8Array(N.palette)),objectId:C}),H("endobj")}},a=function(){var E=this.internal.collections.addImage_images;for(var N in E)i.call(this,E[N])},s=function(){var E,N=this.internal.collections.addImage_images,H=this.internal.write;for(var Y in N)H("/I"+(E=N[Y]).index,E.objectId,"0","R")},o=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",s))},l=function(){var E=this.internal.collections.addImage_images;return o.call(this),E},c=function(){return Object.keys(this.internal.collections.addImage_images).length},h=function(E){return typeof e["process"+E.toUpperCase()]=="function"},p=function(E){return Ht(E)==="object"&&E.nodeType===1},g=function(E,N){if(E.nodeName==="IMG"&&E.hasAttribute("src")){var H=""+E.getAttribute("src");if(H.indexOf("data:image/")===0)return _o(unescape(H).split("base64,").pop());var Y=e.loadFile(H,!0);if(Y!==void 0)return Y}if(E.nodeName==="CANVAS"){if(E.width===0||E.height===0)throw new Error("Given canvas must have data. Canvas width: "+E.width+", height: "+E.height);var fe;switch(N){case"PNG":fe="image/png";break;case"WEBP":fe="image/webp";break;case"JPEG":case"JPG":default:fe="image/jpeg"}return _o(E.toDataURL(fe,1).split("base64,").pop())}},u=function(E){var N=this.internal.collections.addImage_images;if(N){for(var H in N)if(E===N[H].alias)return N[H]}},v=function(E,N,H){return E||N||(E=-96,N=-96),E<0&&(E=-1*H.width*72/E/this.internal.scaleFactor),N<0&&(N=-1*H.height*72/N/this.internal.scaleFactor),E===0&&(E=N*H.width/H.height),N===0&&(N=E*H.height/H.width),[E,N]},m=function(E,N,H,Y,fe,Q){var J=v.call(this,H,Y,fe),oe=this.internal.getCoordinateString,ne=this.internal.getVerticalCoordinateString,ge=l.call(this);if(H=J[0],Y=J[1],ge[fe.index]=fe,Q){Q*=Math.PI/180;var ye=Math.cos(Q),b=Math.sin(Q),C=function(O){return O.toFixed(4)},k=[C(ye),C(b),C(-1*b),C(ye),0,0,"cm"]}this.internal.write("q"),Q?(this.internal.write([1,"0","0",1,oe(E),ne(N+Y),"cm"].join(" ")),this.internal.write(k.join(" ")),this.internal.write([oe(H),"0","0",oe(Y),"0","0","cm"].join(" "))):this.internal.write([oe(H),"0","0",oe(Y),oe(E),ne(N+Y),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+fe.index+" Do"),this.internal.write("Q")},y=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 _=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},S=e.__addimage__.sHashCode=function(E){var N,H,Y=0;if(typeof E=="string")for(H=E.length,N=0;N<H;N++)Y=(Y<<5)-Y+E.charCodeAt(N),Y|=0;else if(G(E))for(H=E.byteLength/2,N=0;N<H;N++)Y=(Y<<5)-Y+E[N],Y|=0;return Y},A=e.__addimage__.validateStringAsBase64=function(E){(E=E||"").toString().trim();var N=!0;return E.length===0&&(N=!1),E.length%4!=0&&(N=!1),/^[A-Za-z0-9+/]+$/.test(E.substr(0,E.length-2))===!1&&(N=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(E.substr(-2))===!1&&(N=!1),N},P=e.__addimage__.extractImageFromDataUrl=function(E){var N=(E=E||"").split("base64,"),H=null;if(N.length===2){var Y=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(N[0]);Array.isArray(Y)&&(H={mimeType:Y[1],charset:Y[2],data:N[1]})}return H},z=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(E){return z()&&E instanceof ArrayBuffer};var G=e.__addimage__.isArrayBufferView=function(E){return z()&&typeof Uint32Array<"u"&&(E instanceof Int8Array||E instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&E instanceof Uint8ClampedArray||E instanceof Int16Array||E instanceof Uint16Array||E instanceof Int32Array||E instanceof Uint32Array||E instanceof Float32Array||E instanceof Float64Array)},L=e.__addimage__.binaryStringToUint8Array=function(E){for(var N=E.length,H=new Uint8Array(N),Y=0;Y<N;Y++)H[Y]=E.charCodeAt(Y);return H},I=e.__addimage__.arrayBufferToBinaryString=function(E){for(var N="",H=G(E)?E:new Uint8Array(E),Y=0;Y<H.length;Y+=8192)N+=String.fromCharCode.apply(null,H.subarray(Y,Y+8192));return N};e.addImage=function(){var E,N,H,Y,fe,Q,J,oe,ne;if(typeof arguments[1]=="number"?(N=r,H=arguments[1],Y=arguments[2],fe=arguments[3],Q=arguments[4],J=arguments[5],oe=arguments[6],ne=arguments[7]):(N=arguments[1],H=arguments[2],Y=arguments[3],fe=arguments[4],Q=arguments[5],J=arguments[6],oe=arguments[7],ne=arguments[8]),Ht(E=arguments[0])==="object"&&!p(E)&&"imageData"in E){var ge=E;E=ge.imageData,N=ge.format||N||r,H=ge.x||H||0,Y=ge.y||Y||0,fe=ge.w||ge.width||fe,Q=ge.h||ge.height||Q,J=ge.alias||J,oe=ge.compression||oe,ne=ge.rotation||ge.angle||ne}var ye=this.internal.getFilters();if(oe===void 0&&ye.indexOf("FlateEncode")!==-1&&(oe="SLOW"),isNaN(H)||isNaN(Y))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var b=j.call(this,E,N,J,oe);return m.call(this,H,Y,fe,Q,b,ne),this};var j=function(E,N,H,Y){var fe,Q,J;if(typeof E=="string"&&n(E)===r){E=unescape(E);var oe=V(E,!1);(oe!==""||(oe=e.loadFile(E,!0))!==void 0)&&(E=oe)}if(p(E)&&(E=g(E,N)),N=n(E,N),!h(N))throw new Error("addImage does not support files of type '"+N+"', please ensure that a plugin for '"+N+"' support is added.");if(((J=H)==null||J.length===0)&&(H=(function(ne){return typeof ne=="string"||G(ne)?S(ne):G(ne.data)?S(ne.data):null})(E)),(fe=u.call(this,H))||(z()&&(E instanceof Uint8Array||N==="RGBA"||(Q=E,E=L(E))),fe=this["process"+N.toUpperCase()](E,c.call(this),H,(function(ne){return ne&&typeof ne=="string"&&(ne=ne.toUpperCase()),ne in e.image_compression?ne:_.NONE})(Y),Q)),!fe)throw new Error("An unknown error occurred whilst processing the image.");return fe},V=e.__addimage__.convertBase64ToBinaryString=function(E,N){var H;N=typeof N!="boolean"||N;var Y,fe="";if(typeof E=="string"){Y=(H=P(E))!==null?H.data:E;try{fe=_o(Y)}catch(Q){if(N)throw A(Y)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Q.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return fe};e.getImageProperties=function(E){var N,H,Y="";if(p(E)&&(E=g(E)),typeof E=="string"&&n(E)===r&&((Y=V(E,!1))===""&&(Y=e.loadFile(E)||""),E=Y),H=n(E),!h(H))throw new Error("addImage does not support files of type '"+H+"', please ensure that a plugin for '"+H+"' support is added.");if(!z()||E instanceof Uint8Array||(E=L(E)),!(N=this["process"+H.toUpperCase()](E)))throw new Error("An unknown error occurred whilst processing the image");return N.fileType=H,N}})(ht.API),(function(e){var r=function(t){if(t!==void 0&&t!="")return!0};ht.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(t){for(var n,i,a,s=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(t.objId),c=t.pageContext.annotations,h=!1,p=0;p<c.length&&!h;p++)switch((n=c[p]).type){case"link":(r(n.options.url)||r(n.options.pageNumber))&&(h=!0);break;case"reference":case"text":case"freetext":h=!0}if(h!=0){this.internal.write("/Annots [");for(var g=0;g<c.length;g++){n=c[g];var u=this.internal.pdfEscape,v=this.internal.getEncryptor(t.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var m=this.internal.newAdditionalObject(),y=this.internal.newAdditionalObject(),_=this.internal.getEncryptor(m.objId),S=n.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+s(n.bounds.x)+" "+o(n.bounds.y+n.bounds.h)+" "+s(n.bounds.x+n.bounds.w)+" "+o(n.bounds.y)+"] ")+"/Contents ("+u(_(n.contents))+")",a+=" /Popup "+y.objId+" 0 R",a+=" /P "+l.objId+" 0 R",a+=" /T ("+u(_(S))+") >>",m.content=a;var A=m.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+s(n.bounds.x+30)+" "+o(n.bounds.y+n.bounds.h)+" "+s(n.bounds.x+n.bounds.w+30)+" "+o(n.bounds.y)+"] ")+" /Parent "+A,n.open&&(a+=" /Open true"),a+=" >>",y.content=a,this.internal.write(m.objId,"0 R",y.objId,"0 R");break;case"freetext":i="/Rect ["+s(n.bounds.x)+" "+o(n.bounds.y)+" "+s(n.bounds.x+n.bounds.w)+" "+o(n.bounds.y+n.bounds.h)+"] ";var P=n.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+u(v(n.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+P+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(n.options.name){var z=this.annotations._nameMap[n.options.name];n.options.pageNumber=z.page,n.options.top=z.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 ("+u(v(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 G=o(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),a+=" /XYZ "+n.options.left+" "+G+" "+n.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),e.createAnnotation=function(t){var n=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":n.pageContext.annotations.push(t)}},e.link=function(t,n,i,a,s){var o=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:l(t),y:c(n),w:l(t+i),h:c(n+a)},options:s,type:"link"})},e.textWithLink=function(t,n,i,a){var s,o,l=this.getTextWidth(t),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){o=a.maxWidth;var h=this.splitTextToSize(t,o).length;s=Math.ceil(c*h)}else o=l,s=c;return this.text(t,n,i,a),i+=.2*c,a.align==="center"&&(n-=l/2),a.align==="right"&&(n-=l),this.link(n,i-c,o,s,a),l},e.getTextWidth=function(t){var n=this.internal.getFontSize();return this.getStringUnitWidth(t)*n/this.internal.scaleFactor}})(ht.API),(function(e){var r={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]},t={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(m){return r[m.charCodeAt(0)]!==void 0},s=e.__arabicParser__.isArabicLetter=function(m){return typeof m=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(m)},o=e.__arabicParser__.isArabicEndLetter=function(m){return s(m)&&a(m)&&r[m.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(m){return s(m)&&i.indexOf(m.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(m){return s(m)&&a(m)&&r[m.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(m){return s(m)&&a(m)&&r[m.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(m){return s(m)&&a(m)&&r[m.charCodeAt(0)].length>=3};var h=e.__arabicParser__.arabicLetterHasMedialForm=function(m){return s(m)&&a(m)&&r[m.charCodeAt(0)].length==4},p=e.__arabicParser__.resolveLigatures=function(m){var y=0,_=t,S="",A=0;for(y=0;y<m.length;y+=1)_[m.charCodeAt(y)]!==void 0?(A++,typeof(_=_[m.charCodeAt(y)])=="number"&&(S+=String.fromCharCode(_),_=t,A=0),y===m.length-1&&(_=t,S+=m.charAt(y-(A-1)),y-=A-1,A=0)):(_=t,S+=m.charAt(y-A),y-=A,A=0);return S};e.__arabicParser__.isArabicDiacritic=function(m){return m!==void 0&&n[m.charCodeAt(0)]!==void 0};var g=e.__arabicParser__.getCorrectForm=function(m,y,_){return s(m)?a(m)===!1?-1:!c(m)||!s(y)&&!s(_)||!s(_)&&o(y)||o(m)&&!s(y)||o(m)&&l(y)||o(m)&&o(y)?0:h(m)&&s(y)&&!o(y)&&s(_)&&c(_)?3:o(m)||!s(_)?1:2:-1},u=function(m){var y=0,_=0,S=0,A="",P="",z="",G=(m=m||"").split("\\s+"),L=[];for(y=0;y<G.length;y+=1){for(L.push(""),_=0;_<G[y].length;_+=1)A=G[y][_],P=G[y][_-1],z=G[y][_+1],s(A)?(S=g(A,P,z),L[y]+=S!==-1?String.fromCharCode(r[A.charCodeAt(0)][S]):A):L[y]+=A;L[y]=p(L[y])}return L.join(" ")},v=e.__arabicParser__.processArabic=e.processArabic=function(){var m,y=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,_=[];if(Array.isArray(y)){var S=0;for(_=[],S=0;S<y.length;S+=1)Array.isArray(y[S])?_.push([u(y[S][0]),y[S][1],y[S][2]]):_.push([u(y[S])]);m=_}else m=u(y);return typeof arguments[0]=="string"?m:(arguments[0].text=m,arguments[0])};e.events.push(["preProcessText",v])})(ht.API),ht.API.autoPrint=function(e){var r;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(){r=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 "+r+" 0 R")}))}return this},(function(e){var r=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(o){t=o}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(o){n=isNaN(o)||Number.isInteger(o)===!1||o<0?150:o,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(o){i=isNaN(o)||Number.isInteger(o)===!1||o<0?300:o,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(o){a=o}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(o){s=o}}),Object.defineProperty(this,"parentNode",{})};r.prototype.getContext=function(t,n){var i;if((t=t||"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},r.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new r,this.canvas.pdf=this}])})(ht.API),(function(e){var r={left:0,top:0,bottom:0,right:0},t=!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({},r),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(m){l=m}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(m){c=m}});var h=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return h},set:function(m){h=m}});var p=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return p},set:function(m){p=m}});var g=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return g},set:function(m){g=m}});var u=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return u},set:function(m){u=m}});var v=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return v},set:function(m){v=m}}),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,c){n.call(this);var h=(c=c||{}).fontSize||this.getFontSize(),p=c.font||this.getFont(),g=c.scaleFactor||this.internal.scaleFactor,u=0,v=0,m=0,y=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 _=c.maxWidth;_>0?typeof l=="string"?l=this.splitTextToSize(l,_):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce((function(A,P){return A.concat(y.splitTextToSize(P,_))}),[])):l=Array.isArray(l)?l:[l];for(var S=0;S<l.length;S++)u<(m=this.getStringUnitWidth(l[S],{font:p})*h)&&(u=m);return u!==0&&(v=l.length),{w:u/=g,h:Math.max((v*h*this.getLineHeightFactor()-h*(this.getLineHeightFactor()-1))/g,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var l=this.internal.__cell__.margins||r;return this.internal.__cell__.lastCell=new a(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=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 c=this.internal.__cell__.lastCell,h=this.internal.__cell__.padding,p=this.internal.__cell__.margins||r,g=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+p.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=p.top,u&&g&&(this.printHeaderRow(l.lineNumber,!0),l.y+=g[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,t===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-h,l.y+h,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+h,{align:"center",baseline:"top",maxWidth:l.width-h-h}):this.text(l.text,l.x+h,l.y+h,{align:"left",baseline:"top",maxWidth:l.width-h-h})),this.internal.__cell__.lastCell=l,this};e.table=function(l,c,h,p,g){if(n.call(this),!h)throw new Error("No data for PDF table.");var u,v,m,y,_=[],S=[],A=[],P={},z={},G=[],L=[],I=(g=g||{}).autoSize||!1,j=g.printHeaders!==!1,V=g.css&&g.css["font-size"]!==void 0?16*g.css["font-size"]:g.fontSize||12,E=g.margins||Object.assign({width:this.getPageWidth()},r),N=typeof g.padding=="number"?g.padding:3,H=g.headerBackgroundColor||"#c8c8c8",Y=g.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=j,this.internal.__cell__.margins=E,this.internal.__cell__.table_font_size=V,this.internal.__cell__.padding=N,this.internal.__cell__.headerBackgroundColor=H,this.internal.__cell__.headerTextColor=Y,this.setFontSize(V),p==null)S=_=Object.keys(h[0]),A=_.map((function(){return"left"}));else if(Array.isArray(p)&&Ht(p[0])==="object")for(_=p.map((function(ge){return ge.name})),S=p.map((function(ge){return ge.prompt||ge.name||""})),A=p.map((function(ge){return ge.align||"left"})),u=0;u<p.length;u+=1)z[p[u].name]=p[u].width*(19.049976/25.4);else Array.isArray(p)&&typeof p[0]=="string"&&(S=_=p,A=_.map((function(){return"left"})));if(I||Array.isArray(p)&&typeof p[0]=="string")for(u=0;u<_.length;u+=1){for(P[y=_[u]]=h.map((function(ge){return ge[y]})),this.setFont(void 0,"bold"),G.push(this.getTextDimensions(S[u],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),v=P[y],this.setFont(void 0,"normal"),m=0;m<v.length;m+=1)G.push(this.getTextDimensions(v[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);z[y]=Math.max.apply(null,G)+N+N,G=[]}if(j){var fe={};for(u=0;u<_.length;u+=1)fe[_[u]]={},fe[_[u]].text=S[u],fe[_[u]].align=A[u];var Q=o.call(this,fe,z);L=_.map((function(ge){return new a(l,c,z[ge],Q,fe[ge].text,void 0,fe[ge].align)})),this.setTableHeaderRow(L),this.printHeaderRow(1,!1)}var J=p.reduce((function(ge,ye){return ge[ye.name]=ye.align,ge}),{});for(u=0;u<h.length;u+=1){"rowStart"in g&&g.rowStart instanceof Function&&g.rowStart({row:u,data:h[u]},this);var oe=o.call(this,h[u],z);for(m=0;m<_.length;m+=1){var ne=h[u][_[m]];"cellStart"in g&&g.cellStart instanceof Function&&g.cellStart({row:u,col:m,data:ne},this),s.call(this,new a(l,c,z[_[m]],oe,ne,u+2,J[_[m]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var o=function(l,c){var h=this.internal.__cell__.padding,p=this.internal.__cell__.table_font_size,g=this.internal.scaleFactor;return Object.keys(l).map((function(u){var v=l[u];return this.splitTextToSize(v.hasOwnProperty("text")?v.text:v,c[u]-h-h)}),this).map((function(u){return this.getLineHeightFactor()*u.length*p/g+h+h}),this).reduce((function(u,v){return Math.max(u,v)}),0)};e.setTableHeaderRow=function(l){n.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,c){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var h;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var p=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(p[0],p[1],p[2],p[3],void 0,-1)}this.setFont(void 0,"bold");for(var g=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){h=this.internal.__cell__.tableHeaderRow[u].clone(),c&&(h.y=this.internal.__cell__.margins.top||0,g.push(h)),h.lineNumber=l;var v=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,h),this.setTextColor(v)}g.length>0&&this.setTableHeaderRow(g),this.setFont(void 0,"normal"),t=!1}})(ht.API);var wh={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},yh=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Df=vh(yh),bh=[100,200,300,400,500,600,700,800,900],rp=vh(bh);function Rf(e){var r=e.family.replace(/"|'/g,"").toLowerCase(),t=(function(a){return wh[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 Df[a=a||"normal"]=="number"?a:"normal"})(e.stretch);return{family:r,style:t,weight:n,stretch:i,src:e.src||[],ref:e.ref||{name:r,style:[i,t,n].join(" ")}}}function Kc(e,r,t,n){var i;for(i=t;i>=0&&i<r.length;i+=n)if(e[r[i]])return e[r[i]];for(i=t;i>=0&&i<r.length;i-=n)if(e[r[i]])return e[r[i]]}var np={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Jc={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Zc(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function ip(e,r,t){for(var n=(t=t||{}).defaultFontFamily||"times",i=Object.assign({},np,t.genericFontFamilies||{}),a=null,s=null,o=0;o<r.length;++o)if(i[(a=Rf(r[o])).family]&&(a.family=i[a.family]),e.hasOwnProperty(a.family)){s=e[a.family];break}if(!(s=s||e[n]))throw new Error("Could not find a font-family for the rule '"+Zc(a)+"' and default family '"+n+"'.");if(s=(function(l,c){if(c[l])return c[l];var h=Df[l],p=h<=Df.normal?-1:1,g=Kc(c,yh,h,p);if(!g)throw new Error("Could not find a matching font-stretch value for "+l);return g})(a.stretch,s),s=(function(l,c){if(c[l])return c[l];for(var h=wh[l],p=0;p<h.length;++p)if(c[h[p]])return c[h[p]];throw new Error("Could not find a matching font-style for "+l)})(a.style,s),!(s=(function(l,c){if(c[l])return c[l];if(l===400&&c[500])return c[500];if(l===500&&c[400])return c[400];var h=rp[l],p=Kc(c,bh,h,l<400?-1:1);if(!p)throw new Error("Could not find a matching font-weight for value "+l);return p})(a.weight,s)))throw new Error("Failed to resolve a font for the rule '"+Zc(a)+"'.");return s}function Qc(e){return e.trimLeft()}function ap(e,r){for(var t=0;t<e.length;){if(e.charAt(t)===r)return[e.substring(0,t),e.substring(t+1)];t+=1}return null}function sp(e){var r=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return r===null?null:[r[0],e.substring(r[0].length)]}var M0,eu,tu,pf=["times"];(function(e){var r,t,n,i,a,s,o,l,c,h=function(b){return b=b||{},this.isStrokeTransparent=b.isStrokeTransparent||!1,this.strokeOpacity=b.strokeOpacity||1,this.strokeStyle=b.strokeStyle||"#000000",this.fillStyle=b.fillStyle||"#000000",this.isFillTransparent=b.isFillTransparent||!1,this.fillOpacity=b.fillOpacity||1,this.font=b.font||"10px sans-serif",this.textBaseline=b.textBaseline||"alphabetic",this.textAlign=b.textAlign||"left",this.lineWidth=b.lineWidth||1,this.lineJoin=b.lineJoin||"miter",this.lineCap=b.lineCap||"butt",this.path=b.path||[],this.transform=b.transform!==void 0?b.transform.clone():new l,this.globalCompositeOperation=b.globalCompositeOperation||"normal",this.globalAlpha=b.globalAlpha||1,this.clip_path=b.clip_path||[],this.currentPoint=b.currentPoint||new s,this.miterLimit=b.miterLimit||10,this.lastPoint=b.lastPoint||new s,this.lineDashOffset=b.lineDashOffset||0,this.lineDash=b.lineDash||[],this.margin=b.margin||[0,0,0,0],this.prevPageLastElemOffset=b.prevPageLastElemOffset||0,this.ignoreClearRect=typeof b.ignoreClearRect!="boolean"||b.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new p(this),r=this.internal.f2,t=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,s=this.internal.Point,o=this.internal.Rectangle,l=this.internal.Matrix,c=new h}]);var p=function(b){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var C=b;Object.defineProperty(this,"pdf",{get:function(){return C}});var k=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return k},set:function(Ee){k=!!Ee}});var O=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return O},set:function(Ee){O=!!Ee}});var q=0;Object.defineProperty(this,"posX",{get:function(){return q},set:function(Ee){isNaN(Ee)||(q=Ee)}});var le=0;Object.defineProperty(this,"posY",{get:function(){return le},set:function(Ee){isNaN(Ee)||(le=Ee)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(Ee){var se;typeof Ee=="number"?se=[Ee,Ee,Ee,Ee]:((se=new Array(4))[0]=Ee[0],se[1]=Ee.length>=2?Ee[1]:se[0],se[2]=Ee.length>=3?Ee[2]:se[0],se[3]=Ee.length>=4?Ee[3]:se[1]),c.margin=se}});var ce=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ce},set:function(Ee){ce=Ee}});var ue=0;Object.defineProperty(this,"lastBreak",{get:function(){return ue},set:function(Ee){ue=Ee}});var we=[];Object.defineProperty(this,"pageBreaks",{get:function(){return we},set:function(Ee){we=Ee}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(Ee){Ee instanceof h&&(c=Ee)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(Ee){c.path=Ee}});var Pe=[];Object.defineProperty(this,"ctxStack",{get:function(){return Pe},set:function(Ee){Pe=Ee}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ee){var se;se=g(Ee),this.ctx.fillStyle=se.style,this.ctx.isFillTransparent=se.a===0,this.ctx.fillOpacity=se.a,this.pdf.setFillColor(se.r,se.g,se.b,{a:se.a}),this.pdf.setTextColor(se.r,se.g,se.b,{a:se.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ee){var se=g(Ee);this.ctx.strokeStyle=se.style,this.ctx.isStrokeTransparent=se.a===0,this.ctx.strokeOpacity=se.a,se.a===0?this.pdf.setDrawColor(255,255,255):(se.a,this.pdf.setDrawColor(se.r,se.g,se.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Ee){["butt","round","square"].indexOf(Ee)!==-1&&(this.ctx.lineCap=Ee,this.pdf.setLineCap(Ee))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ee){isNaN(Ee)||(this.ctx.lineWidth=Ee,this.pdf.setLineWidth(Ee))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ee){["bevel","round","miter"].indexOf(Ee)!==-1&&(this.ctx.lineJoin=Ee,this.pdf.setLineJoin(Ee))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ee){isNaN(Ee)||(this.ctx.miterLimit=Ee,this.pdf.setMiterLimit(Ee))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ee){this.ctx.textBaseline=Ee}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ee){["right","end","center","left","start"].indexOf(Ee)!==-1&&(this.ctx.textAlign=Ee)}});var Re=null;function He(Ee,se){if(Re===null){var je=(function(it){var Ue=[];return Object.keys(it).forEach((function(Ge){it[Ge].forEach((function(Ke){var Ze=null;switch(Ke){case"bold":Ze={family:Ge,weight:"bold"};break;case"italic":Ze={family:Ge,style:"italic"};break;case"bolditalic":Ze={family:Ge,weight:"bold",style:"italic"};break;case"":case"normal":Ze={family:Ge}}Ze!==null&&(Ze.ref={name:Ge,style:Ke},Ue.push(Ze))}))})),Ue})(Ee.getFontList());Re=(function(it){for(var Ue={},Ge=0;Ge<it.length;++Ge){var Ke=Rf(it[Ge]),Ze=Ke.family,lt=Ke.stretch,ct=Ke.style,vt=Ke.weight;Ue[Ze]=Ue[Ze]||{},Ue[Ze][lt]=Ue[Ze][lt]||{},Ue[Ze][lt][ct]=Ue[Ze][lt][ct]||{},Ue[Ze][lt][ct][vt]=Ke}return Ue})(je.concat(se))}return Re}var $e=null;Object.defineProperty(this,"fontFaces",{get:function(){return $e},set:function(Ee){Re=null,$e=Ee}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ee){var se;if(this.ctx.font=Ee,(se=/^\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(Ee))!==null){var je=se[1],it=(se[2],se[3]),Ue=se[4],Ge=(se[5],se[6]),Ke=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ue)[2];Ue=Math.floor(Ke==="px"?parseFloat(Ue)*this.pdf.internal.scaleFactor:Ke==="em"?parseFloat(Ue)*this.pdf.getFontSize():parseFloat(Ue)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ue);var Ze=(function(gt){var Et,et,Cr=[],It=gt.trim();if(It==="")return pf;if(It in Jc)return[Jc[It]];for(;It!=="";){switch(et=null,Et=(It=Qc(It)).charAt(0)){case'"':case"'":et=ap(It.substring(1),Et);break;default:et=sp(It)}if(et===null||(Cr.push(et[0]),(It=Qc(et[1]))!==""&&It.charAt(0)!==","))return pf;It=It.replace(/^,/,"")}return Cr})(Ge);if(this.fontFaces){var lt=ip(He(this.pdf,this.fontFaces),Ze.map((function(gt){return{family:gt,stretch:"normal",weight:it,style:je}})));this.pdf.setFont(lt.ref.name,lt.ref.style)}else{var ct="";(it==="bold"||parseInt(it,10)>=700||je==="bold")&&(ct="bold"),je==="italic"&&(ct+="italic"),ct.length===0&&(ct="normal");for(var vt="",At={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"},Ct=0;Ct<Ze.length;Ct++){if(this.pdf.internal.getFont(Ze[Ct],ct,{noFallback:!0,disableWarning:!0})!==void 0){vt=Ze[Ct];break}if(ct==="bolditalic"&&this.pdf.internal.getFont(Ze[Ct],"bold",{noFallback:!0,disableWarning:!0})!==void 0)vt=Ze[Ct],ct="bold";else if(this.pdf.internal.getFont(Ze[Ct],"normal",{noFallback:!0,disableWarning:!0})!==void 0){vt=Ze[Ct],ct="normal";break}}if(vt===""){for(var kt=0;kt<Ze.length;kt++)if(At[Ze[kt]]){vt=At[Ze[kt]];break}}vt=vt===""?"Times":vt,this.pdf.setFont(vt,ct)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ee){this.ctx.globalCompositeOperation=Ee}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ee){this.ctx.globalAlpha=Ee}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ee){this.ctx.lineDashOffset=Ee,ye.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ee){this.ctx.lineDash=Ee,ye.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ee){this.ctx.ignoreClearRect=!!Ee}})};p.prototype.setLineDash=function(b){this.lineDash=b},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){P.call(this,"fill",!1)},p.prototype.stroke=function(){P.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(b,C){if(isNaN(b)||isNaN(C))throw tr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var k=this.ctx.transform.applyToPoint(new s(b,C));this.path.push({type:"mt",x:k.x,y:k.y}),this.ctx.lastPoint=new s(b,C)},p.prototype.closePath=function(){var b=new s(0,0),C=0;for(C=this.path.length-1;C!==-1;C--)if(this.path[C].type==="begin"&&Ht(this.path[C+1])==="object"&&typeof this.path[C+1].x=="number"){b=new s(this.path[C+1].x,this.path[C+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(b.x,b.y)},p.prototype.lineTo=function(b,C){if(isNaN(b)||isNaN(C))throw tr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var k=this.ctx.transform.applyToPoint(new s(b,C));this.path.push({type:"lt",x:k.x,y:k.y}),this.ctx.lastPoint=new s(k.x,k.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),P.call(this,null,!0)},p.prototype.quadraticCurveTo=function(b,C,k,O){if(isNaN(k)||isNaN(O)||isNaN(b)||isNaN(C))throw tr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var q=this.ctx.transform.applyToPoint(new s(k,O)),le=this.ctx.transform.applyToPoint(new s(b,C));this.path.push({type:"qct",x1:le.x,y1:le.y,x:q.x,y:q.y}),this.ctx.lastPoint=new s(q.x,q.y)},p.prototype.bezierCurveTo=function(b,C,k,O,q,le){if(isNaN(q)||isNaN(le)||isNaN(b)||isNaN(C)||isNaN(k)||isNaN(O))throw tr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ce=this.ctx.transform.applyToPoint(new s(q,le)),ue=this.ctx.transform.applyToPoint(new s(b,C)),we=this.ctx.transform.applyToPoint(new s(k,O));this.path.push({type:"bct",x1:ue.x,y1:ue.y,x2:we.x,y2:we.y,x:ce.x,y:ce.y}),this.ctx.lastPoint=new s(ce.x,ce.y)},p.prototype.arc=function(b,C,k,O,q,le){if(isNaN(b)||isNaN(C)||isNaN(k)||isNaN(O)||isNaN(q))throw tr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(le=!!le,!this.ctx.transform.isIdentity){var ce=this.ctx.transform.applyToPoint(new s(b,C));b=ce.x,C=ce.y;var ue=this.ctx.transform.applyToPoint(new s(0,k)),we=this.ctx.transform.applyToPoint(new s(0,0));k=Math.sqrt(Math.pow(ue.x-we.x,2)+Math.pow(ue.y-we.y,2))}Math.abs(q-O)>=2*Math.PI&&(O=0,q=2*Math.PI),this.path.push({type:"arc",x:b,y:C,radius:k,startAngle:O,endAngle:q,counterclockwise:le})},p.prototype.arcTo=function(b,C,k,O,q){throw new Error("arcTo not implemented.")},p.prototype.rect=function(b,C,k,O){if(isNaN(b)||isNaN(C)||isNaN(k)||isNaN(O))throw tr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(b,C),this.lineTo(b+k,C),this.lineTo(b+k,C+O),this.lineTo(b,C+O),this.lineTo(b,C),this.lineTo(b+k,C),this.lineTo(b,C)},p.prototype.fillRect=function(b,C,k,O){if(isNaN(b)||isNaN(C)||isNaN(k)||isNaN(O))throw tr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!u.call(this)){var q={};this.lineCap!=="butt"&&(q.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(q.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(b,C,k,O),this.fill(),q.hasOwnProperty("lineCap")&&(this.lineCap=q.lineCap),q.hasOwnProperty("lineJoin")&&(this.lineJoin=q.lineJoin)}},p.prototype.strokeRect=function(b,C,k,O){if(isNaN(b)||isNaN(C)||isNaN(k)||isNaN(O))throw tr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");v.call(this)||(this.beginPath(),this.rect(b,C,k,O),this.stroke())},p.prototype.clearRect=function(b,C,k,O){if(isNaN(b)||isNaN(C)||isNaN(k)||isNaN(O))throw tr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(b,C,k,O))},p.prototype.save=function(b){b=typeof b!="boolean"||b;for(var C=this.pdf.internal.getCurrentPageInfo().pageNumber,k=0;k<this.pdf.internal.getNumberOfPages();k++)this.pdf.setPage(k+1),this.pdf.internal.out("q");if(this.pdf.setPage(C),b){this.ctx.fontSize=this.pdf.internal.getFontSize();var O=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=O}},p.prototype.restore=function(b){b=typeof b!="boolean"||b;for(var C=this.pdf.internal.getCurrentPageInfo().pageNumber,k=0;k<this.pdf.internal.getNumberOfPages();k++)this.pdf.setPage(k+1),this.pdf.internal.out("Q");this.pdf.setPage(C),b&&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)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var g=function(b){var C,k,O,q;if(b.isCanvasGradient===!0&&(b=b.getColor()),!b)return{r:0,g:0,b:0,a:0,style:b};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(b))C=0,k=0,O=0,q=0;else{var le=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(b);if(le!==null)C=parseInt(le[1]),k=parseInt(le[2]),O=parseInt(le[3]),q=1;else if((le=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(b))!==null)C=parseInt(le[1]),k=parseInt(le[2]),O=parseInt(le[3]),q=parseFloat(le[4]);else{if(q=1,typeof b=="string"&&b.charAt(0)!=="#"){var ce=new hh(b);b=ce.ok?ce.toHex():"#000000"}b.length===4?(C=b.substring(1,2),C+=C,k=b.substring(2,3),k+=k,O=b.substring(3,4),O+=O):(C=b.substring(1,3),k=b.substring(3,5),O=b.substring(5,7)),C=parseInt(C,16),k=parseInt(k,16),O=parseInt(O,16)}}return{r:C,g:k,b:O,a:q,style:b}},u=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},v=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(b,C,k,O){if(isNaN(C)||isNaN(k)||typeof b!="string")throw tr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(O=isNaN(O)?void 0:O,!u.call(this)){var q=oe(this.ctx.transform.rotation),le=this.ctx.transform.scaleX;N.call(this,{text:b,x:C,y:k,scale:le,angle:q,align:this.textAlign,maxWidth:O})}},p.prototype.strokeText=function(b,C,k,O){if(isNaN(C)||isNaN(k)||typeof b!="string")throw tr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!v.call(this)){O=isNaN(O)?void 0:O;var q=oe(this.ctx.transform.rotation),le=this.ctx.transform.scaleX;N.call(this,{text:b,x:C,y:k,scale:le,renderingMode:"stroke",angle:q,align:this.textAlign,maxWidth:O})}},p.prototype.measureText=function(b){if(typeof b!="string")throw tr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var C=this.pdf,k=this.pdf.internal.scaleFactor,O=C.internal.getFontSize(),q=C.getStringUnitWidth(b)*O/C.internal.scaleFactor,le=function(ce){var ue=(ce=ce||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ue}}),this};return new le({width:q*=Math.round(96*k/72*1e4)/1e4})},p.prototype.scale=function(b,C){if(isNaN(b)||isNaN(C))throw tr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var k=new l(b,0,0,C,0,0);this.ctx.transform=this.ctx.transform.multiply(k)},p.prototype.rotate=function(b){if(isNaN(b))throw tr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var C=new l(Math.cos(b),Math.sin(b),-Math.sin(b),Math.cos(b),0,0);this.ctx.transform=this.ctx.transform.multiply(C)},p.prototype.translate=function(b,C){if(isNaN(b)||isNaN(C))throw tr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var k=new l(1,0,0,1,b,C);this.ctx.transform=this.ctx.transform.multiply(k)},p.prototype.transform=function(b,C,k,O,q,le){if(isNaN(b)||isNaN(C)||isNaN(k)||isNaN(O)||isNaN(q)||isNaN(le))throw tr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ce=new l(b,C,k,O,q,le);this.ctx.transform=this.ctx.transform.multiply(ce)},p.prototype.setTransform=function(b,C,k,O,q,le){b=isNaN(b)?1:b,C=isNaN(C)?0:C,k=isNaN(k)?0:k,O=isNaN(O)?1:O,q=isNaN(q)?0:q,le=isNaN(le)?0:le,this.ctx.transform=new l(b,C,k,O,q,le)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(b,C,k,O,q,le,ce,ue,we){var Pe=this.pdf.getImageProperties(b),Re=1,He=1,$e=1,Ee=1;O!==void 0&&ue!==void 0&&($e=ue/O,Ee=we/q,Re=Pe.width/O*ue/O,He=Pe.height/q*we/q),le===void 0&&(le=C,ce=k,C=0,k=0),O!==void 0&&ue===void 0&&(ue=O,we=q),O===void 0&&ue===void 0&&(ue=Pe.width,we=Pe.height);for(var se,je=this.ctx.transform.decompose(),it=oe(je.rotate.shx),Ue=new l,Ge=(Ue=(Ue=(Ue=Ue.multiply(je.translate)).multiply(je.skew)).multiply(je.scale)).applyToRectangle(new o(le-C*$e,ce-k*Ee,O*Re,q*He)),Ke=y.call(this,Ge),Ze=[],lt=0;lt<Ke.length;lt+=1)Ze.indexOf(Ke[lt])===-1&&Ze.push(Ke[lt]);if(A(Ze),this.autoPaging)for(var ct=Ze[0],vt=Ze[Ze.length-1],At=ct;At<vt+1;At++){this.pdf.setPage(At);var Ct=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],kt=At===1?this.posY+this.margin[0]:this.margin[0],gt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Et=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],et=At===1?0:gt+(At-2)*Et;if(this.ctx.clip_path.length!==0){var Cr=this.path;se=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(se,this.posX+this.margin[3],-et+kt+this.ctx.prevPageLastElemOffset),z.call(this,"fill",!0),this.path=Cr}var It=JSON.parse(JSON.stringify(Ge));It=S([It],this.posX+this.margin[3],-et+kt+this.ctx.prevPageLastElemOffset)[0];var dn=(At>ct||At<vt)&&m.call(this);dn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ct,Et,null).clip().discardPath()),this.pdf.addImage(b,"JPEG",It.x,It.y,It.w,It.h,null,null,it),dn&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(b,"JPEG",Ge.x,Ge.y,Ge.w,Ge.h,null,null,it)};var y=function(b,C,k){var O=[];C=C||this.pdf.internal.pageSize.width,k=k||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var q=this.posY+this.ctx.prevPageLastElemOffset;switch(b.type){default:case"mt":case"lt":O.push(Math.floor((b.y+q)/k)+1);break;case"arc":O.push(Math.floor((b.y+q-b.radius)/k)+1),O.push(Math.floor((b.y+q+b.radius)/k)+1);break;case"qct":var le=ne(this.ctx.lastPoint.x,this.ctx.lastPoint.y,b.x1,b.y1,b.x,b.y);O.push(Math.floor((le.y+q)/k)+1),O.push(Math.floor((le.y+le.h+q)/k)+1);break;case"bct":var ce=ge(this.ctx.lastPoint.x,this.ctx.lastPoint.y,b.x1,b.y1,b.x2,b.y2,b.x,b.y);O.push(Math.floor((ce.y+q)/k)+1),O.push(Math.floor((ce.y+ce.h+q)/k)+1);break;case"rect":O.push(Math.floor((b.y+q)/k)+1),O.push(Math.floor((b.y+b.h+q)/k)+1)}for(var ue=0;ue<O.length;ue+=1)for(;this.pdf.internal.getNumberOfPages()<O[ue];)_.call(this);return O},_=function(){var b=this.fillStyle,C=this.strokeStyle,k=this.font,O=this.lineCap,q=this.lineWidth,le=this.lineJoin;this.pdf.addPage(),this.fillStyle=b,this.strokeStyle=C,this.font=k,this.lineCap=O,this.lineWidth=q,this.lineJoin=le},S=function(b,C,k){for(var O=0;O<b.length;O++)switch(b[O].type){case"bct":b[O].x2+=C,b[O].y2+=k;case"qct":b[O].x1+=C,b[O].y1+=k;case"mt":case"lt":case"arc":default:b[O].x+=C,b[O].y+=k}return b},A=function(b){return b.sort((function(C,k){return C-k}))},P=function(b,C){for(var k,O,q=this.fillStyle,le=this.strokeStyle,ce=this.lineCap,ue=this.lineWidth,we=Math.abs(ue*this.ctx.transform.scaleX),Pe=this.lineJoin,Re=JSON.parse(JSON.stringify(this.path)),He=JSON.parse(JSON.stringify(this.path)),$e=[],Ee=0;Ee<He.length;Ee++)if(He[Ee].x!==void 0)for(var se=y.call(this,He[Ee]),je=0;je<se.length;je+=1)$e.indexOf(se[je])===-1&&$e.push(se[je]);for(var it=0;it<$e.length;it++)for(;this.pdf.internal.getNumberOfPages()<$e[it];)_.call(this);if(A($e),this.autoPaging)for(var Ue=$e[0],Ge=$e[$e.length-1],Ke=Ue;Ke<Ge+1;Ke++){this.pdf.setPage(Ke),this.fillStyle=q,this.strokeStyle=le,this.lineCap=ce,this.lineWidth=we,this.lineJoin=Pe;var Ze=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],lt=Ke===1?this.posY+this.margin[0]:this.margin[0],ct=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],vt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],At=Ke===1?0:ct+(Ke-2)*vt;if(this.ctx.clip_path.length!==0){var Ct=this.path;k=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(k,this.posX+this.margin[3],-At+lt+this.ctx.prevPageLastElemOffset),z.call(this,b,!0),this.path=Ct}if(O=JSON.parse(JSON.stringify(Re)),this.path=S(O,this.posX+this.margin[3],-At+lt+this.ctx.prevPageLastElemOffset),C===!1||Ke===0){var kt=(Ke>Ue||Ke<Ge)&&m.call(this);kt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ze,vt,null).clip().discardPath()),z.call(this,b,C),kt&&this.pdf.restoreGraphicsState()}this.lineWidth=ue}else this.lineWidth=we,z.call(this,b,C),this.lineWidth=ue;this.path=Re},z=function(b,C){if((b!=="stroke"||C||!v.call(this))&&(b==="stroke"||C||!u.call(this))){for(var k,O,q=[],le=this.path,ce=0;ce<le.length;ce++){var ue=le[ce];switch(ue.type){case"begin":q.push({begin:!0});break;case"close":q.push({close:!0});break;case"mt":q.push({start:ue,deltas:[],abs:[]});break;case"lt":var we=q.length;if(le[ce-1]&&!isNaN(le[ce-1].x)&&(k=[ue.x-le[ce-1].x,ue.y-le[ce-1].y],we>0)){for(;we>=0;we--)if(q[we-1].close!==!0&&q[we-1].begin!==!0){q[we-1].deltas.push(k),q[we-1].abs.push(ue);break}}break;case"bct":k=[ue.x1-le[ce-1].x,ue.y1-le[ce-1].y,ue.x2-le[ce-1].x,ue.y2-le[ce-1].y,ue.x-le[ce-1].x,ue.y-le[ce-1].y],q[q.length-1].deltas.push(k);break;case"qct":var Pe=le[ce-1].x+2/3*(ue.x1-le[ce-1].x),Re=le[ce-1].y+2/3*(ue.y1-le[ce-1].y),He=ue.x+2/3*(ue.x1-ue.x),$e=ue.y+2/3*(ue.y1-ue.y),Ee=ue.x,se=ue.y;k=[Pe-le[ce-1].x,Re-le[ce-1].y,He-le[ce-1].x,$e-le[ce-1].y,Ee-le[ce-1].x,se-le[ce-1].y],q[q.length-1].deltas.push(k);break;case"arc":q.push({deltas:[],abs:[],arc:!0}),Array.isArray(q[q.length-1].abs)&&q[q.length-1].abs.push(ue)}}O=C?null:b==="stroke"?"stroke":"fill";for(var je=!1,it=0;it<q.length;it++)if(q[it].arc)for(var Ue=q[it].abs,Ge=0;Ge<Ue.length;Ge++){var Ke=Ue[Ge];Ke.type==="arc"?I.call(this,Ke.x,Ke.y,Ke.radius,Ke.startAngle,Ke.endAngle,Ke.counterclockwise,void 0,C,!je):H.call(this,Ke.x,Ke.y),je=!0}else if(q[it].close===!0)this.pdf.internal.out("h"),je=!1;else if(q[it].begin!==!0){var Ze=q[it].start.x,lt=q[it].start.y;Y.call(this,q[it].deltas,Ze,lt),je=!0}O&&j.call(this,O),C&&V.call(this)}},G=function(b){var C=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,k=C*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return b-k;case"top":return b+C-k;case"hanging":return b+C-2*k;case"middle":return b+C/2-k;case"ideographic":return b;case"alphabetic":default:return b}},L=function(b){return b+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var b=function(){};return b.colorStops=[],b.addColorStop=function(C,k){this.colorStops.push([C,k])},b.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},b.isCanvasGradient=!0,b},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var I=function(b,C,k,O,q,le,ce,ue,we){for(var Pe=Q.call(this,k,O,q,le),Re=0;Re<Pe.length;Re++){var He=Pe[Re];Re===0&&(we?E.call(this,He.x1+b,He.y1+C):H.call(this,He.x1+b,He.y1+C)),fe.call(this,b,C,He.x2,He.y2,He.x3,He.y3,He.x4,He.y4)}ue?V.call(this):j.call(this,ce)},j=function(b){switch(b){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},V=function(){this.pdf.clip(),this.pdf.discardPath()},E=function(b,C){this.pdf.internal.out(t(b)+" "+n(C)+" m")},N=function(b){var C;switch(b.align){case"right":case"end":C="right";break;case"center":C="center";break;case"left":case"start":default:C="left"}var k=this.pdf.getTextDimensions(b.text),O=G.call(this,b.y),q=L.call(this,O)-k.h,le=this.ctx.transform.applyToPoint(new s(b.x,O)),ce=this.ctx.transform.decompose(),ue=new l;ue=(ue=(ue=ue.multiply(ce.translate)).multiply(ce.skew)).multiply(ce.scale);for(var we,Pe,Re,He=this.ctx.transform.applyToRectangle(new o(b.x,O,k.w,k.h)),$e=ue.applyToRectangle(new o(b.x,q,k.w,k.h)),Ee=y.call(this,$e),se=[],je=0;je<Ee.length;je+=1)se.indexOf(Ee[je])===-1&&se.push(Ee[je]);if(A(se),this.autoPaging)for(var it=se[0],Ue=se[se.length-1],Ge=it;Ge<Ue+1;Ge++){this.pdf.setPage(Ge);var Ke=Ge===1?this.posY+this.margin[0]:this.margin[0],Ze=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],lt=this.pdf.internal.pageSize.height-this.margin[2],ct=lt-this.margin[0],vt=this.pdf.internal.pageSize.width-this.margin[1],At=vt-this.margin[3],Ct=Ge===1?0:Ze+(Ge-2)*ct;if(this.ctx.clip_path.length!==0){var kt=this.path;we=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(we,this.posX+this.margin[3],-1*Ct+Ke),z.call(this,"fill",!0),this.path=kt}var gt=S([JSON.parse(JSON.stringify($e))],this.posX+this.margin[3],-Ct+Ke+this.ctx.prevPageLastElemOffset)[0];b.scale>=.01&&(Pe=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Pe*b.scale),Re=this.lineWidth,this.lineWidth=Re*b.scale);var Et=this.autoPaging!=="text";if(Et||gt.y+gt.h<=lt){if(Et||gt.y>=Ke&&gt.x<=vt){var et=Et?b.text:this.pdf.splitTextToSize(b.text,b.maxWidth||vt-gt.x)[0],Cr=S([JSON.parse(JSON.stringify(He))],this.posX+this.margin[3],-Ct+Ke+this.ctx.prevPageLastElemOffset)[0],It=Et&&(Ge>it||Ge<Ue)&&m.call(this);It&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],At,ct,null).clip().discardPath()),this.pdf.text(et,Cr.x,Cr.y,{angle:b.angle,align:C,renderingMode:b.renderingMode}),It&&this.pdf.restoreGraphicsState()}}else gt.y<lt&&(this.ctx.prevPageLastElemOffset+=lt-gt.y);b.scale>=.01&&(this.pdf.setFontSize(Pe),this.lineWidth=Re)}else b.scale>=.01&&(Pe=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Pe*b.scale),Re=this.lineWidth,this.lineWidth=Re*b.scale),this.pdf.text(b.text,le.x+this.posX,le.y+this.posY,{angle:b.angle,align:C,renderingMode:b.renderingMode,maxWidth:b.maxWidth}),b.scale>=.01&&(this.pdf.setFontSize(Pe),this.lineWidth=Re)},H=function(b,C,k,O){k=k||0,O=O||0,this.pdf.internal.out(t(b+k)+" "+n(C+O)+" l")},Y=function(b,C,k){return this.pdf.lines(b,C,k,null,null)},fe=function(b,C,k,O,q,le,ce,ue){this.pdf.internal.out([r(i(k+b)),r(a(O+C)),r(i(q+b)),r(a(le+C)),r(i(ce+b)),r(a(ue+C)),"c"].join(" "))},Q=function(b,C,k,O){for(var q=2*Math.PI,le=Math.PI/2;C>k;)C-=q;var ce=Math.abs(k-C);ce<q&&O&&(ce=q-ce);for(var ue=[],we=O?-1:1,Pe=C;ce>1e-5;){var Re=Pe+we*Math.min(ce,le);ue.push(J.call(this,b,Pe,Re)),ce-=Math.abs(Re-Pe),Pe=Re}return ue},J=function(b,C,k){var O=(k-C)/2,q=b*Math.cos(O),le=b*Math.sin(O),ce=q,ue=-le,we=ce*ce+ue*ue,Pe=we+ce*q+ue*le,Re=4/3*(Math.sqrt(2*we*Pe)-Pe)/(ce*le-ue*q),He=ce-Re*ue,$e=ue+Re*ce,Ee=He,se=-$e,je=O+C,it=Math.cos(je),Ue=Math.sin(je);return{x1:b*Math.cos(C),y1:b*Math.sin(C),x2:He*it-$e*Ue,y2:He*Ue+$e*it,x3:Ee*it-se*Ue,y3:Ee*Ue+se*it,x4:b*Math.cos(k),y4:b*Math.sin(k)}},oe=function(b){return 180*b/Math.PI},ne=function(b,C,k,O,q,le){var ce=b+.5*(k-b),ue=C+.5*(O-C),we=q+.5*(k-q),Pe=le+.5*(O-le),Re=Math.min(b,q,ce,we),He=Math.max(b,q,ce,we),$e=Math.min(C,le,ue,Pe),Ee=Math.max(C,le,ue,Pe);return new o(Re,$e,He-Re,Ee-$e)},ge=function(b,C,k,O,q,le,ce,ue){var we,Pe,Re,He,$e,Ee,se,je,it,Ue,Ge,Ke,Ze,lt,ct=k-b,vt=O-C,At=q-k,Ct=le-O,kt=ce-q,gt=ue-le;for(Pe=0;Pe<41;Pe++)it=(se=(Re=b+(we=Pe/40)*ct)+we*(($e=k+we*At)-Re))+we*($e+we*(q+we*kt-$e)-se),Ue=(je=(He=C+we*vt)+we*((Ee=O+we*Ct)-He))+we*(Ee+we*(le+we*gt-Ee)-je),Pe==0?(Ge=it,Ke=Ue,Ze=it,lt=Ue):(Ge=Math.min(Ge,it),Ke=Math.min(Ke,Ue),Ze=Math.max(Ze,it),lt=Math.max(lt,Ue));return new o(Math.round(Ge),Math.round(Ke),Math.round(Ze-Ge),Math.round(lt-Ke))},ye=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var b,C,k=(b=this.ctx.lineDash,C=this.ctx.lineDashOffset,JSON.stringify({lineDash:b,lineDashOffset:C}));this.prevLineDash!==k&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=k)}}})(ht.API),(function(e){var r=function(a){var s,o,l,c,h,p,g,u,v,m;for(o=[],l=0,c=(a+=s="\0\0\0\0".slice(a.length%4||4)).length;c>l;l+=4)(h=(a.charCodeAt(l)<<24)+(a.charCodeAt(l+1)<<16)+(a.charCodeAt(l+2)<<8)+a.charCodeAt(l+3))!==0?(p=(h=((h=((h=((h=(h-(m=h%85))/85)-(v=h%85))/85)-(u=h%85))/85)-(g=h%85))/85)%85,o.push(p+33,g+33,u+33,v+33,m+33)):o.push(122);return(function(y,_){for(var S=_;S>0;S--)y.pop()})(o,s.length),String.fromCharCode.apply(String,o)+"~>"},t=function(a){var s,o,l,c,h,p=String,g="length",u=255,v="charCodeAt",m="slice",y="replace";for(a[m](-2),a=a[m](0,-2)[y](/\s/g,"")[y]("z","!!!!!"),l=[],c=0,h=(a+=s="uuuuu"[m](a[g]%5||5))[g];h>c;c+=5)o=52200625*(a[v](c)-33)+614125*(a[v](c+1)-33)+7225*(a[v](c+2)-33)+85*(a[v](c+3)-33)+(a[v](c+4)-33),l.push(u&o>>24,u&o>>16,u&o>>8,u&o);return(function(_,S){for(var A=S;A>0;A--)_.pop()})(l,s[g]),p.fromCharCode.apply(p,l)},n=function(a){var s=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"),s.test(a)===!1)return"";for(var o="",l=0;l<a.length;l+=2)o+=String.fromCharCode("0x"+(a[l]+a[l+1]));return o},i=function(a){for(var s=new Uint8Array(a.length),o=a.length;o--;)s[o]=a.charCodeAt(o);return a=(s=Cf(s)).reduce((function(l,c){return l+String.fromCharCode(c)}),"")};e.processDataByFilters=function(a,s){var o=0,l=a||"",c=[];for(typeof(s=s||[])=="string"&&(s=[s]),o=0;o<s.length;o+=1)switch(s[o]){case"ASCII85Decode":case"/ASCII85Decode":l=t(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=r(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=n(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map((function(h){return("0"+h.charCodeAt().toString(16)).slice(-2)})).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[o]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}})(ht.API),(function(e){e.loadFile=function(r,t,n){return(function(i,a,s){a=a!==!1,s=typeof s=="function"?s:function(){};var o=void 0;try{o=(function(l,c,h){var p=new XMLHttpRequest,g=0,u=function(v){var m=v.length,y=[],_=String.fromCharCode;for(g=0;g<m;g+=1)y.push(_(255&v.charCodeAt(g)));return y.join("")};if(p.open("GET",l,!c),p.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(p.onload=function(){p.status===200?h(u(this.responseText)):h(void 0)}),p.send(null),c&&p.status===200)return u(p.responseText)})(i,a,s)}catch{}return o})(r,t,n)},e.loadImageFile=e.loadFile})(ht.API),(function(e){function r(){return(mt.html2canvas?Promise.resolve(mt.html2canvas):Promise.resolve().then(()=>require("./html2canvas.esm-C4Mnoizn.js"))).catch((function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))})).then((function(s){return s.default?s.default:s}))}function t(){return(mt.DOMPurify?Promise.resolve(mt.DOMPurify):Promise.resolve().then(()=>require("./purify.es-B0uier8o.js"))).catch((function(s){return Promise.reject(new Error("Could not load dompurify: "+s))})).then((function(s){return s.default?s.default:s}))}var n=function(s){var o=Ht(s);return o==="undefined"?"undefined":o==="string"||s instanceof String?"string":o==="number"||s instanceof Number?"number":o==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":o==="object"?"object":"unknown"},i=function(s,o){var l=document.createElement(s);for(var c in o.className&&(l.className=o.className),o.innerHTML&&o.dompurify&&(l.innerHTML=o.dompurify.sanitize(o.innerHTML)),o.style)l.style[c]=o.style[c];return l},a=function s(o){var l=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),c=s.convert(Promise.resolve(),l);return c=(c=c.setProgress(1,s,1,[s])).set(o)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(s,o){return s.__proto__=o||a.prototype,s},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(s,o){return this.then((function(){switch(o=o||(function(l){switch(n(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(s)){case"string":return this.then(t).then((function(l){return this.set({src:i("div",{innerHTML:s,dompurify:l})})}));case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}}))},a.prototype.to=function(s){switch(s){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 s={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},o=(function l(c,h){for(var p=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),g=c.firstChild;g;g=g.nextSibling)h!==!0&&g.nodeType===1&&g.nodeName==="SCRIPT"||p.appendChild(l(g,h));return c.nodeType===1&&(c.nodeName==="CANVAS"?(p.width=c.width,p.height=c.height,p.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(p.value=c.value),p.addEventListener("load",(function(){p.scrollTop=c.scrollTop,p.scrollLeft=c.scrollLeft}),!0)),p})(this.prop.src,this.opt.html2canvas.javascriptEnabled);o.tagName==="BODY"&&(s.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:s}),this.prop.container.appendChild(o),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 s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(r).then((function(o){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,o(this.prop.container,l)})).then((function(o){(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)}))},a.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(r).then((function(o){var l=this.opt.jsPDF,c=this.opt.fontFaces,h=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,p=Object.assign({async:!0,allowTaint:!0,scale:h,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 p.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=c,c)for(var g=0;g<c.length;++g){var u=c[g],v=u.src.find((function(m){return m.format==="truetype"}));v&&l.addFont(v.url,u.ref.name,u.ref.style)}return p.windowHeight=p.windowHeight||0,p.windowHeight=p.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):p.windowHeight,l.context2d.save(!0),o(this.prop.container,p)})).then((function(o){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)}))},a.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s}))},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(s,o,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(s,o):this.outputPdf(s,o)},a.prototype.outputPdf=function(s,o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(s,o)}))},a.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(s){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 "'+s+'" is not supported.'}}))},a.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}: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(s){if(n(s)!=="object")return this;var o=Object.keys(s||{}).map((function(l){if(l in a.template.prop)return function(){this.prop[l]=s[l]};switch(l){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[l]=s[l]}}}),this);return this.then((function(){return this.thenList(o)}))},a.prototype.get=function(s,o){return this.then((function(){var l=s in a.template.prop?this.prop[s]:this.opt[s];return o?o(l):l}))},a.prototype.setMargin=function(s){return this.then((function(){switch(n(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s})).then(this.setPageSize)},a.prototype.setPageSize=function(s){function o(l,c){return Math.floor(l*c/72*96)}return this.then((function(){(s=s||ht.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:o(s.inner.width,s.k),height:o(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s}))},a.prototype.setProgress=function(s,o,l,c){return s!=null&&(this.progress.val=s),o!=null&&(this.progress.state=o),l!=null&&(this.progress.n=l),c!=null&&(this.progress.stack=c),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(s,o,l,c){return this.setProgress(s?this.progress.val+s:null,o||null,l?this.progress.n+l:null,c?this.progress.stack.concat(c):null)},a.prototype.then=function(s,o){var l=this;return this.thenCore(s,o,(function(c,h){return l.updateProgress(null,null,1,[c]),Promise.prototype.then.call(this,(function(p){return l.updateProgress(null,c),p})).then(c,h).then((function(p){return l.updateProgress(1),p}))}))},a.prototype.thenCore=function(s,o,l){l=l||Promise.prototype.then,s&&(s=s.bind(this)),o&&(o=o.bind(this));var c=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:a.convert(Object.assign({},this),Promise.prototype),h=l.call(c,s,o);return a.convert(h,this.__proto__)},a.prototype.thenExternal=function(s,o){return Promise.prototype.then.call(this,s,o)},a.prototype.thenList=function(s){var o=this;return s.forEach((function(l){o=o.thenCore(l)})),o},a.prototype.catch=function(s){s&&(s=s.bind(this));var o=Promise.prototype.catch.call(this,s);return a.convert(o,this)},a.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},a.prototype.error=function(s){return this.then((function(){throw new Error(s)}))},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,ht.getPageSize=function(s,o,l){if(Ht(s)==="object"){var c=s;s=c.orientation,o=c.unit||o,l=c.format||l}o=o||"mm",l=l||"a4",s=(""+(s||"P")).toLowerCase();var h,p=(""+l).toLowerCase(),g={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(o){case"pt":h=1;break;case"mm":h=72/25.4;break;case"cm":h=72/2.54;break;case"in":h=72;break;case"px":h=.75;break;case"pc":case"em":h=12;break;case"ex":h=6;break;default:throw"Invalid unit: "+o}var u,v=0,m=0;if(g.hasOwnProperty(p))v=g[p][1]/h,m=g[p][0]/h;else try{v=l[1],m=l[0]}catch{throw new Error("Invalid format: "+l)}if(s==="p"||s==="portrait")s="p",m>v&&(u=m,m=v,v=u);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",v>m&&(u=m,m=v,v=u)}return{width:m,height:v,unit:o,k:h,orientation:s}},e.html=function(s,o){(o=o||{}).callback=o.callback||function(){},o.html2canvas=o.html2canvas||{},o.html2canvas.canvas=o.html2canvas.canvas||this.canvas,o.jsPDF=o.jsPDF||this,o.fontFaces=o.fontFaces?o.fontFaces.map(Rf):null;var l=new a(o);return o.worker?l:l.from(s).doCallback()}})(ht.API),ht.API.addJS=function(e){return tu=e,this.internal.events.subscribe("postPutResources",(function(){M0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(M0+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),eu=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+tu+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){M0!==void 0&&eu!==void 0&&this.internal.out("/Names <</JavaScript "+M0+" 0 R>>")})),this},(function(e){var r;e.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=t.outline.render().split(/\r\n/),a=0;a<i.length;a++){var s=i[a],o=n.exec(s);if(o!=null){var l=o[1];t.internal.newObjectDeferredBegin(l,!1)}t.internal.write(s)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,h=[];for(a=0;a<c;a++){var p=t.internal.newObject();h.push(p);var g=t.internal.getPageInfo(a+1);t.internal.write("<< /D["+g.objId+" 0 R /XYZ null null null]>> endobj")}var u=t.internal.newObject();for(t.internal.write("<< /Names [ "),a=0;a<h.length;a++)t.internal.write("(page_"+(a+1)+")"+h[a]+" 0 R");t.internal.write(" ] >>","endobj"),r=t.internal.newObject(),t.internal.write("<< /Dests "+u+" 0 R"),t.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 "+r+" 0 R"))}]),e.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(n,i,a){var s={title:i,options:a,children:[]};return n==null&&(n=this.root),n.children.push(s),s},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(n){n.id=t.internal.newObjectDeferred();for(var i=0;i<n.children.length;i++)this.genIds_r(n.children[i])},t.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()},t.outline.renderItems=function(n){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<n.children.length;a++){var s=n.children[a];this.objStart(s),this.line("/Title "+this.makeString(s.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])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var o=this.count=this.count_r({count:0},s);if(o>0&&this.line("/Count "+o),s.options&&s.options.pageNumber){var l=t.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;c<n.children.length;c++)this.renderItems(n.children[c])},t.outline.line=function(n){this.ctx.val+=n+`\r
120
+ `},t.outline.makeRef=function(n){return n.id+" 0 R"},t.outline.makeString=function(n){return"("+t.internal.pdfEscape(n)+")"},t.outline.objStart=function(n){this.ctx.val+=`\r
121
+ `+n.id+` 0 obj\r
122
+ <<\r
123
+ `},t.outline.objEnd=function(){this.ctx.val+=`>> \r
124
+ endobj\r
125
+ `},t.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}}])})(ht.API),(function(e){var r=[192,193,194,195,196,197,198,199];e.processJPEG=function(t,n,i,a,s,o){var l,c=this.decode.DCT_DECODE,h=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=s||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(l=(function(p){for(var g,u=256*p.charCodeAt(4)+p.charCodeAt(5),v=p.length,m={width:0,height:0,numcomponents:1},y=4;y<v;y+=2){if(y+=u,r.indexOf(p.charCodeAt(y+1))!==-1){g=256*p.charCodeAt(y+5)+p.charCodeAt(y+6),m={width:256*p.charCodeAt(y+7)+p.charCodeAt(y+8),height:g,numcomponents:p.charCodeAt(y+9)};break}u=256*p.charCodeAt(y+2)+p.charCodeAt(y+3)}return m})(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}h={data:t,width:l.width,height:l.height,colorSpace:o,bitsPerComponent:8,filter:c,index:n,alias:i}}return h}})(ht.API);var ys,B0,ru,nu,iu,op=(function(){var e,r,t;function n(a){var s,o,l,c,h,p,g,u,v,m,y,_,S,A;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},p=null;;){switch(s=this.readUInt32(),v=(function(){var P,z;for(z=[],P=0;P<4;++P)z.push(String.fromCharCode(this.data[this.pos++]));return z}).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(s);break;case"fcTL":p&&this.animation.frames.push(p),this.pos+=4,p={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},h=this.readUInt16(),c=this.readUInt16()||100,p.delay=1e3*h/c,p.disposeOp=this.data[this.pos++],p.blendOp=this.data[this.pos++],p.data=[];break;case"IDAT":case"fdAT":for(v==="fdAT"&&(this.pos+=4,s-=4),a=(p!=null?p.data:void 0)||this.imgData,_=0;0<=s?_<s:_>s;0<=s?++_:--_)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(s),this.transparency.indexed.length>l)throw new Error("More transparent colors than palette size");if((m=l-this.transparency.indexed.length)>0)for(S=0;0<=m?S<m:S>m;0<=m?++S:--S)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(s)[0];break;case 2:this.transparency.rgb=this.read(s)}break;case"tEXt":g=(y=this.read(s)).indexOf(0),u=String.fromCharCode.apply(String,y.slice(0,g)),this.text[u]=String.fromCharCode.apply(String,y.slice(g+1));break;case"IEND":return p&&this.animation.frames.push(p),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(A=this.colorType)===4||A===6,o=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*o,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+=s}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(a){var s,o;for(o=[],s=0;0<=a?s<a:s>a;0<=a?++s:--s)o.push(this.data[this.pos++]);return o},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 s=this.pixelBitlength/8,o=new Uint8Array(this.width*this.height*s),l=0,c=this;if(a==null&&(a=this.imgData),a.length===0)return new Uint8Array(0);function h(p,g,u,v){var m,y,_,S,A,P,z,G,L,I,j,V,E,N,H,Y,fe,Q,J,oe,ne,ge=Math.ceil((c.width-p)/u),ye=Math.ceil((c.height-g)/v),b=c.width==ge&&c.height==ye;for(N=s*ge,V=b?o:new Uint8Array(N*ye),P=a.length,E=0,y=0;E<ye&&l<P;){switch(a[l++]){case 0:for(S=fe=0;fe<N;S=fe+=1)V[y++]=a[l++];break;case 1:for(S=Q=0;Q<N;S=Q+=1)m=a[l++],A=S<s?0:V[y-s],V[y++]=(m+A)%256;break;case 2:for(S=J=0;J<N;S=J+=1)m=a[l++],_=(S-S%s)/s,H=E&&V[(E-1)*N+_*s+S%s],V[y++]=(H+m)%256;break;case 3:for(S=oe=0;oe<N;S=oe+=1)m=a[l++],_=(S-S%s)/s,A=S<s?0:V[y-s],H=E&&V[(E-1)*N+_*s+S%s],V[y++]=(m+Math.floor((A+H)/2))%256;break;case 4:for(S=ne=0;ne<N;S=ne+=1)m=a[l++],_=(S-S%s)/s,A=S<s?0:V[y-s],E===0?H=Y=0:(H=V[(E-1)*N+_*s+S%s],Y=_&&V[(E-1)*N+(_-1)*s+S%s]),z=A+H-Y,G=Math.abs(z-A),I=Math.abs(z-H),j=Math.abs(z-Y),L=G<=I&&G<=j?A:I<=j?H:Y,V[y++]=(m+L)%256;break;default:throw new Error("Invalid filter algorithm: "+a[l-1])}if(!b){var C=((g+E*v)*c.width+p)*s,k=E*N;for(S=0;S<ge;S+=1){for(var O=0;O<s;O+=1)o[C++]=V[k++];C+=(u-1)*s}}E++}}return a=M2(a),c.interlaceMethod==1?(h(0,0,8,8),h(4,0,8,8),h(0,4,4,8),h(2,0,4,4),h(0,2,2,4),h(1,0,2,2),h(0,1,1,2)):h(0,0,1,1),o},n.prototype.decodePalette=function(){var a,s,o,l,c,h,p,g,u;for(o=this.palette,h=this.transparency.indexed||[],c=new Uint8Array((h.length||0)+o.length),l=0,a=0,s=p=0,g=o.length;p<g;s=p+=3)c[l++]=o[s],c[l++]=o[s+1],c[l++]=o[s+2],c[l++]=(u=h[a++])!=null?u:255;return c},n.prototype.copyToImageData=function(a,s){var o,l,c,h,p,g,u,v,m,y,_;if(l=this.colors,m=null,o=this.hasAlphaChannel,this.palette.length&&(m=(_=this._decodedPalette)!=null?_:this._decodedPalette=this.decodePalette(),l=4,o=!0),v=(c=a.data||a).length,p=m||s,h=g=0,l===1)for(;h<v;)u=m?4*s[h/4]:g,y=p[u++],c[h++]=y,c[h++]=y,c[h++]=y,c[h++]=o?p[u++]:255,g=u;else for(;h<v;)u=m?4*s[h/4]:g,c[h++]=p[u++],c[h++]=p[u++],c[h++]=p[u++],c[h++]=o?p[u++]:255,g=u},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(mt)==="[object Window]"){try{r=mt.document.createElement("canvas"),t=r.getContext("2d")}catch{return!1}return!0}return!1};return i(),e=function(a){var s;if(i()===!0)return t.width=a.width,t.height=a.height,t.clearRect(0,0,a.width,a.height),t.putImageData(a,0,0),(s=new Image).src=r.toDataURL(),s;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(a){var s,o,l,c,h,p,g,u;if(this.animation){for(u=[],o=h=0,p=(g=this.animation.frames).length;h<p;o=++h)s=g[o],l=a.createImageData(s.width,s.height),c=this.decodePixels(new Uint8Array(s.data)),this.copyToImageData(l,c),s.imageData=l,u.push(s.image=e(l));return u}},n.prototype.renderFrame=function(a,s){var o,l,c;return o=(l=this.animation.frames)[s],c=l[s-1],s===0&&a.clearRect(0,0,this.width,this.height),(c!=null?c.disposeOp:void 0)===1?a.clearRect(c.xOffset,c.yOffset,c.width,c.height):(c!=null?c.disposeOp:void 0)===2&&a.putImageData(c.imageData,c.xOffset,c.yOffset),o.blendOp===0&&a.clearRect(o.xOffset,o.yOffset,o.width,o.height),a.drawImage(o.image,o.xOffset,o.yOffset)},n.prototype.animate=function(a){var s,o,l,c,h,p,g=this;return o=0,p=this.animation,c=p.numFrames,l=p.frames,h=p.numPlays,(s=function(){var u,v;if(u=o++%c,v=l[u],g.renderFrame(a,u),c>1&&o/c<h)return g.animation._timeout=setTimeout(s,v.delay)})()},n.prototype.stopAnimation=function(){var a;return clearTimeout((a=this.animation)!=null?a._timeout:void 0)},n.prototype.render=function(a){var s,o;return a._png&&a._png.stopAnimation(),a._png=this,a.width=this.width,a.height=this.height,s=a.getContext("2d"),this.animation?(this.decodeFrames(s),this.animate(s)):(o=s.createImageData(this.width,this.height),this.copyToImageData(o,this.decodePixels()),s.putImageData(o,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 lp(e){var r=0;if(e[r++]!==71||e[r++]!==73||e[r++]!==70||e[r++]!==56||(e[r++]+1&253)!=56||e[r++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[r++]|e[r++]<<8,n=e[r++]|e[r++]<<8,i=e[r++],a=i>>7,s=1<<(7&i)+1;e[r++],e[r++];var o=null,l=null;a&&(o=r,l=s,r+=3*s);var c=!0,h=[],p=0,g=null,u=0,v=null;for(this.width=t,this.height=n;c&&r<e.length;)switch(e[r++]){case 33:switch(e[r++]){case 255:if(e[r]!==11||e[r+1]==78&&e[r+2]==69&&e[r+3]==84&&e[r+4]==83&&e[r+5]==67&&e[r+6]==65&&e[r+7]==80&&e[r+8]==69&&e[r+9]==50&&e[r+10]==46&&e[r+11]==48&&e[r+12]==3&&e[r+13]==1&&e[r+16]==0)r+=14,v=e[r++]|e[r++]<<8,r++;else for(r+=12;;){if(!((E=e[r++])>=0))throw Error("Invalid block size");if(E===0)break;r+=E}break;case 249:if(e[r++]!==4||e[r+4]!==0)throw new Error("Invalid graphics extension block.");var m=e[r++];p=e[r++]|e[r++]<<8,g=e[r++],(1&m)==0&&(g=null),u=m>>2&7,r++;break;case 254:for(;;){if(!((E=e[r++])>=0))throw Error("Invalid block size");if(E===0)break;r+=E}break;default:throw new Error("Unknown graphic control label: 0x"+e[r-1].toString(16))}break;case 44:var y=e[r++]|e[r++]<<8,_=e[r++]|e[r++]<<8,S=e[r++]|e[r++]<<8,A=e[r++]|e[r++]<<8,P=e[r++],z=P>>6&1,G=1<<(7&P)+1,L=o,I=l,j=!1;P>>7&&(j=!0,L=r,I=G,r+=3*G);var V=r;for(r++;;){var E;if(!((E=e[r++])>=0))throw Error("Invalid block size");if(E===0)break;r+=E}h.push({x:y,y:_,width:S,height:A,has_local_palette:j,palette_offset:L,palette_size:I,data_offset:V,data_length:r-V,transparent_index:g,interlaced:!!z,delay:p,disposal:u});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[r-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return v},this.frameInfo=function(N){if(N<0||N>=h.length)throw new Error("Frame index out of range.");return h[N]},this.decodeAndBlitFrameBGRA=function(N,H){var Y=this.frameInfo(N),fe=Y.width*Y.height,Q=new Uint8Array(fe);au(e,Y.data_offset,Q,fe);var J=Y.palette_offset,oe=Y.transparent_index;oe===null&&(oe=256);var ne=Y.width,ge=t-ne,ye=ne,b=4*(Y.y*t+Y.x),C=4*((Y.y+Y.height)*t+Y.x),k=b,O=4*ge;Y.interlaced===!0&&(O+=4*t*7);for(var q=8,le=0,ce=Q.length;le<ce;++le){var ue=Q[le];if(ye===0&&(ye=ne,(k+=O)>=C&&(O=4*ge+4*t*(q-1),k=b+(ne+ge)*(q<<1),q>>=1)),ue===oe)k+=4;else{var we=e[J+3*ue],Pe=e[J+3*ue+1],Re=e[J+3*ue+2];H[k++]=Re,H[k++]=Pe,H[k++]=we,H[k++]=255}--ye}},this.decodeAndBlitFrameRGBA=function(N,H){var Y=this.frameInfo(N),fe=Y.width*Y.height,Q=new Uint8Array(fe);au(e,Y.data_offset,Q,fe);var J=Y.palette_offset,oe=Y.transparent_index;oe===null&&(oe=256);var ne=Y.width,ge=t-ne,ye=ne,b=4*(Y.y*t+Y.x),C=4*((Y.y+Y.height)*t+Y.x),k=b,O=4*ge;Y.interlaced===!0&&(O+=4*t*7);for(var q=8,le=0,ce=Q.length;le<ce;++le){var ue=Q[le];if(ye===0&&(ye=ne,(k+=O)>=C&&(O=4*ge+4*t*(q-1),k=b+(ne+ge)*(q<<1),q>>=1)),ue===oe)k+=4;else{var we=e[J+3*ue],Pe=e[J+3*ue+1],Re=e[J+3*ue+2];H[k++]=we,H[k++]=Pe,H[k++]=Re,H[k++]=255}--ye}}}function au(e,r,t,n){for(var i=e[r++],a=1<<i,s=a+1,o=s+1,l=i+1,c=(1<<l)-1,h=0,p=0,g=0,u=e[r++],v=new Int32Array(4096),m=null;;){for(;h<16&&u!==0;)p|=e[r++]<<h,h+=8,u===1?u=e[r++]:--u;if(h<l)break;var y=p&c;if(p>>=l,h-=l,y!==a){if(y===s)break;for(var _=y<o?y:m,S=0,A=_;A>a;)A=v[A]>>8,++S;var P=A;if(g+S+(_!==y?1:0)>n)return void tr.log("Warning, gif stream longer than expected.");t[g++]=P;var z=g+=S;for(_!==y&&(t[g++]=P),A=_;S--;)A=v[A],t[--z]=255&A,A>>=8;m!==null&&o<4096&&(v[o++]=m<<8|P,o>=c+1&&l<12&&(++l,c=c<<1|1)),m=y}else o=s+1,c=(1<<(l=i+1))-1,m=null}return g!==n&&tr.log("Warning, gif stream shorter than expected."),t}/**
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 gf(e){var r,t,n,i,a,s=Math.floor,o=new Array(64),l=new Array(64),c=new Array(64),h=new Array(64),p=new Array(65535),g=new Array(65535),u=new Array(64),v=new Array(64),m=[],y=0,_=7,S=new Array(64),A=new Array(64),P=new Array(64),z=new Array(256),G=new Array(2048),L=[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],I=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],j=[0,1,2,3,4,5,6,7,8,9,10,11],V=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],E=[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],N=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],H=[0,1,2,3,4,5,6,7,8,9,10,11],Y=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],fe=[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 Q(b,C){for(var k=0,O=0,q=new Array,le=1;le<=16;le++){for(var ce=1;ce<=b[le];ce++)q[C[O]]=[],q[C[O]][0]=k,q[C[O]][1]=le,O++,k++;k*=2}return q}function J(b){for(var C=b[0],k=b[1]-1;k>=0;)C&1<<k&&(y|=1<<_),k--,--_<0&&(y==255?(oe(255),oe(0)):oe(y),_=7,y=0)}function oe(b){m.push(b)}function ne(b){oe(b>>8&255),oe(255&b)}function ge(b,C,k,O,q){for(var le,ce=q[0],ue=q[240],we=(function(Ue,Ge){var Ke,Ze,lt,ct,vt,At,Ct,kt,gt,Et,et=0;for(gt=0;gt<8;++gt){Ke=Ue[et],Ze=Ue[et+1],lt=Ue[et+2],ct=Ue[et+3],vt=Ue[et+4],At=Ue[et+5],Ct=Ue[et+6];var Cr=Ke+(kt=Ue[et+7]),It=Ke-kt,dn=Ze+Ct,zt=Ze-Ct,rr=lt+At,jn=lt-At,Dt=ct+vt,pi=ct-vt,ar=Cr+Dt,An=Cr-Dt,Kn=dn+rr,Qt=dn-rr;Ue[et]=ar+Kn,Ue[et+4]=ar-Kn;var wt=.707106781*(Qt+An);Ue[et+2]=An+wt,Ue[et+6]=An-wt;var jt=.382683433*((ar=pi+jn)-(Qt=zt+It)),Li=.5411961*ar+jt,kr=1.306562965*Qt+jt,Mn=.707106781*(Kn=jn+zt),Bn=It+Mn,dt=It-Mn;Ue[et+5]=dt+Li,Ue[et+3]=dt-Li,Ue[et+1]=Bn+kr,Ue[et+7]=Bn-kr,et+=8}for(et=0,gt=0;gt<8;++gt){Ke=Ue[et],Ze=Ue[et+8],lt=Ue[et+16],ct=Ue[et+24],vt=Ue[et+32],At=Ue[et+40],Ct=Ue[et+48];var Nn=Ke+(kt=Ue[et+56]),pn=Ke-kt,$r=Ze+Ct,mr=Ze-Ct,cr=lt+At,B=lt-At,re=ct+vt,K=ct-vt,Z=Nn+re,te=Nn-re,ie=$r+cr,_e=$r-cr;Ue[et]=Z+ie,Ue[et+32]=Z-ie;var Le=.707106781*(_e+te);Ue[et+16]=te+Le,Ue[et+48]=te-Le;var be=.382683433*((Z=K+B)-(_e=mr+pn)),Ne=.5411961*Z+be,Te=1.306562965*_e+be,We=.707106781*(ie=B+mr),Ve=pn+We,rt=pn-We;Ue[et+40]=rt+Ne,Ue[et+24]=rt-Ne,Ue[et+8]=Ve+Te,Ue[et+56]=Ve-Te,et++}for(gt=0;gt<64;++gt)Et=Ue[gt]*Ge[gt],u[gt]=Et>0?Et+.5|0:Et-.5|0;return u})(b,C),Pe=0;Pe<64;++Pe)v[L[Pe]]=we[Pe];var Re=v[0]-k;k=v[0],Re==0?J(O[0]):(J(O[g[le=32767+Re]]),J(p[le]));for(var He=63;He>0&&v[He]==0;)He--;if(He==0)return J(ce),k;for(var $e,Ee=1;Ee<=He;){for(var se=Ee;v[Ee]==0&&Ee<=He;)++Ee;var je=Ee-se;if(je>=16){$e=je>>4;for(var it=1;it<=$e;++it)J(ue);je&=15}le=32767+v[Ee],J(q[(je<<4)+g[le]]),J(p[le]),Ee++}return He!=63&&J(ce),k}function ye(b){b=Math.min(Math.max(b,1),100),a!=b&&((function(C){for(var k=[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],O=0;O<64;O++){var q=s((k[O]*C+50)/100);q=Math.min(Math.max(q,1),255),o[L[O]]=q}for(var le=[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],ce=0;ce<64;ce++){var ue=s((le[ce]*C+50)/100);ue=Math.min(Math.max(ue,1),255),l[L[ce]]=ue}for(var we=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Pe=0,Re=0;Re<8;Re++)for(var He=0;He<8;He++)c[Pe]=1/(o[L[Pe]]*we[Re]*we[He]*8),h[Pe]=1/(l[L[Pe]]*we[Re]*we[He]*8),Pe++})(b<50?Math.floor(5e3/b):Math.floor(200-2*b)),a=b)}this.encode=function(b,C){C&&ye(C),m=new Array,y=0,_=7,ne(65496),ne(65504),ne(16),oe(74),oe(70),oe(73),oe(70),oe(0),oe(1),oe(1),oe(0),ne(1),ne(1),oe(0),oe(0),(function(){ne(65499),ne(132),oe(0);for(var Ze=0;Ze<64;Ze++)oe(o[Ze]);oe(1);for(var lt=0;lt<64;lt++)oe(l[lt])})(),(function(Ze,lt){ne(65472),ne(17),oe(8),ne(lt),ne(Ze),oe(3),oe(1),oe(17),oe(0),oe(2),oe(17),oe(1),oe(3),oe(17),oe(1)})(b.width,b.height),(function(){ne(65476),ne(418),oe(0);for(var Ze=0;Ze<16;Ze++)oe(I[Ze+1]);for(var lt=0;lt<=11;lt++)oe(j[lt]);oe(16);for(var ct=0;ct<16;ct++)oe(V[ct+1]);for(var vt=0;vt<=161;vt++)oe(E[vt]);oe(1);for(var At=0;At<16;At++)oe(N[At+1]);for(var Ct=0;Ct<=11;Ct++)oe(H[Ct]);oe(17);for(var kt=0;kt<16;kt++)oe(Y[kt+1]);for(var gt=0;gt<=161;gt++)oe(fe[gt])})(),ne(65498),ne(12),oe(3),oe(1),oe(0),oe(2),oe(17),oe(3),oe(17),oe(0),oe(63),oe(0);var k=0,O=0,q=0;y=0,_=7,this.encode.displayName="_encode_";for(var le,ce,ue,we,Pe,Re,He,$e,Ee,se=b.data,je=b.width,it=b.height,Ue=4*je,Ge=0;Ge<it;){for(le=0;le<Ue;){for(Pe=Ue*Ge+le,He=-1,$e=0,Ee=0;Ee<64;Ee++)Re=Pe+($e=Ee>>3)*Ue+(He=4*(7&Ee)),Ge+$e>=it&&(Re-=Ue*(Ge+1+$e-it)),le+He>=Ue&&(Re-=le+He-Ue+4),ce=se[Re++],ue=se[Re++],we=se[Re++],S[Ee]=(G[ce]+G[ue+256>>0]+G[we+512>>0]>>16)-128,A[Ee]=(G[ce+768>>0]+G[ue+1024>>0]+G[we+1280>>0]>>16)-128,P[Ee]=(G[ce+1280>>0]+G[ue+1536>>0]+G[we+1792>>0]>>16)-128;k=ge(S,c,k,r,n),O=ge(A,h,O,t,i),q=ge(P,h,q,t,i),le+=32}Ge+=8}if(_>=0){var Ke=[];Ke[1]=_+1,Ke[0]=(1<<_+1)-1,J(Ke)}return ne(65497),new Uint8Array(m)},e=e||50,(function(){for(var b=String.fromCharCode,C=0;C<256;C++)z[C]=b(C)})(),r=Q(I,j),t=Q(N,H),n=Q(V,E),i=Q(Y,fe),(function(){for(var b=1,C=2,k=1;k<=15;k++){for(var O=b;O<C;O++)g[32767+O]=k,p[32767+O]=[],p[32767+O][1]=k,p[32767+O][0]=O;for(var q=-(C-1);q<=-b;q++)g[32767+q]=k,p[32767+q]=[],p[32767+q][1]=k,p[32767+q][0]=C-1+q;b<<=1,C<<=1}})(),(function(){for(var b=0;b<256;b++)G[b]=19595*b,G[b+256>>0]=38470*b,G[b+512>>0]=7471*b+32768,G[b+768>>0]=-11059*b,G[b+1024>>0]=-21709*b,G[b+1280>>0]=32768*b+8421375,G[b+1536>>0]=-27439*b,G[b+1792>>0]=-5329*b})(),ye(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 ai(e,r){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!r,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 su(e){function r(I){if(!I)throw Error("assert :P")}function t(I,j,V){for(var E=0;4>E;E++)if(I[j+E]!=V.charCodeAt(E))return!0;return!1}function n(I,j,V,E,N){for(var H=0;H<N;H++)I[j+H]=V[E+H]}function i(I,j,V,E){for(var N=0;N<E;N++)I[j+N]=V}function a(I){return new Int32Array(I)}function s(I,j){for(var V=[],E=0;E<I;E++)V.push(new j);return V}function o(I,j){var V=[];return(function E(N,H,Y){for(var fe=Y[H],Q=0;Q<fe&&(N.push(Y.length>H+1?[]:new j),!(Y.length<H+1));Q++)E(N[Q],H+1,Y)})(V,0,I),V}var l=function(){var I=this;function j(f,d){for(var w=1<<d-1>>>0;f&w;)w>>>=1;return w?(f&w-1)+w:f}function V(f,d,w,T,D){r(!(T%w));do f[d+(T-=w)]=D;while(0<T)}function E(f,d,w,T,D){if(r(2328>=D),512>=D)var M=a(512);else if((M=a(D))==null)return 0;return(function(U,W,X,ee,de,Se){var Ae,xe,De=W,Fe=1<<X,pe=a(16),me=a(16);for(r(de!=0),r(ee!=null),r(U!=null),r(0<X),xe=0;xe<de;++xe){if(15<ee[xe])return 0;++pe[ee[xe]]}if(pe[0]==de)return 0;for(me[1]=0,Ae=1;15>Ae;++Ae){if(pe[Ae]>1<<Ae)return 0;me[Ae+1]=me[Ae]+pe[Ae]}for(xe=0;xe<de;++xe)Ae=ee[xe],0<ee[xe]&&(Se[me[Ae]++]=xe);if(me[15]==1)return(ee=new N).g=0,ee.value=Se[0],V(U,De,1,Fe,ee),Fe;var Ie,Be=-1,Oe=Fe-1,st=0,Je=1,pt=1,Qe=1<<X;for(xe=0,Ae=1,de=2;Ae<=X;++Ae,de<<=1){if(Je+=pt<<=1,0>(pt-=pe[Ae]))return 0;for(;0<pe[Ae];--pe[Ae])(ee=new N).g=Ae,ee.value=Se[xe++],V(U,De+st,de,Qe,ee),st=j(st,Ae)}for(Ae=X+1,de=2;15>=Ae;++Ae,de<<=1){if(Je+=pt<<=1,0>(pt-=pe[Ae]))return 0;for(;0<pe[Ae];--pe[Ae]){if(ee=new N,(st&Oe)!=Be){for(De+=Qe,Ie=1<<(Be=Ae)-X;15>Be&&!(0>=(Ie-=pe[Be]));)++Be,Ie<<=1;Fe+=Qe=1<<(Ie=Be-X),U[W+(Be=st&Oe)].g=Ie+X,U[W+Be].value=De-W-Be}ee.g=Ae-X,ee.value=Se[xe++],V(U,De+(st>>X),de,Qe,ee),st=j(st,Ae)}}return Je!=2*me[15]-1?0:Fe})(f,d,w,T,D,M)}function N(){this.value=this.g=0}function H(){this.value=this.g=0}function Y(){this.G=s(5,N),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(zr,H)}function fe(f,d,w,T){r(f!=null),r(d!=null),r(2147483648>T),f.Ca=254,f.I=0,f.b=-8,f.Ka=0,f.oa=d,f.pa=w,f.Jd=d,f.Yc=w+T,f.Zc=4<=T?w+T-4+1:w,le(f)}function Q(f,d){for(var w=0;0<d--;)w|=ue(f,128)<<d;return w}function J(f,d){var w=Q(f,d);return ce(f)?-w:w}function oe(f,d,w,T){var D,M=0;for(r(f!=null),r(d!=null),r(4294967288>T),f.Sb=T,f.Ra=0,f.u=0,f.h=0,4<T&&(T=4),D=0;D<T;++D)M+=d[w+D]<<8*D;f.Ra=M,f.bb=T,f.oa=d,f.pa=w}function ne(f){for(;8<=f.u&&f.bb<f.Sb;)f.Ra>>>=8,f.Ra+=f.oa[f.pa+f.bb]<<fs-8>>>0,++f.bb,f.u-=8;k(f)&&(f.h=1,f.u=0)}function ge(f,d){if(r(0<=d),!f.h&&d<=ls){var w=C(f)&os[d];return f.u+=d,ne(f),w}return f.h=1,f.u=0}function ye(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function b(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function C(f){return f.Ra>>>(f.u&fs-1)>>>0}function k(f){return r(f.bb<=f.Sb),f.h||f.bb==f.Sb&&f.u>fs}function O(f,d){f.u=d,f.h=k(f)}function q(f){f.u>=no&&(r(f.u>=no),ne(f))}function le(f){r(f!=null&&f.oa!=null),f.pa<f.Zc?(f.I=(f.oa[f.pa++]|f.I<<8)>>>0,f.b+=8):(r(f!=null&&f.oa!=null),f.pa<f.Yc?(f.b+=8,f.I=f.oa[f.pa++]|f.I<<8):f.Ka?f.b=0:(f.I<<=8,f.b+=8,f.Ka=1))}function ce(f){return Q(f,1)}function ue(f,d){var w=f.Ca;0>f.b&&le(f);var T=f.b,D=w*d>>>8,M=(f.I>>>T>D)+0;for(M?(w-=D,f.I-=D+1<<T>>>0):w=D+1,T=w,D=0;256<=T;)D+=8,T>>=8;return T=7^D+mn[T],f.b-=T,f.Ca=(w<<T)-1,M}function we(f,d,w){f[d+0]=w>>24&255,f[d+1]=w>>16&255,f[d+2]=w>>8&255,f[d+3]=w>>0&255}function Pe(f,d){return f[d+0]<<0|f[d+1]<<8}function Re(f,d){return Pe(f,d)|f[d+2]<<16}function He(f,d){return Pe(f,d)|Pe(f,d+2)<<16}function $e(f,d){var w=1<<d;return r(f!=null),r(0<d),f.X=a(w),f.X==null?0:(f.Mb=32-d,f.Xa=d,1)}function Ee(f,d){r(f!=null),r(d!=null),r(f.Xa==d.Xa),n(d.X,0,f.X,0,1<<d.Xa)}function se(){this.X=[],this.Xa=this.Mb=0}function je(f,d,w,T){r(w!=null),r(T!=null);var D=w[0],M=T[0];return D==0&&(D=(f*M+d/2)/d),M==0&&(M=(d*D+f/2)/f),0>=D||0>=M?0:(w[0]=D,T[0]=M,1)}function it(f,d){return f+(1<<d)-1>>>d}function Ue(f,d){return((4278255360&f)+(4278255360&d)>>>0&4278255360)+((16711935&f)+(16711935&d)>>>0&16711935)>>>0}function Ge(f,d){I[d]=function(w,T,D,M,U,W,X){var ee;for(ee=0;ee<U;++ee){var de=I[f](W[X+ee-1],D,M+ee);W[X+ee]=Ue(w[T+ee],de)}}}function Ke(){this.ud=this.hd=this.jd=0}function Ze(f,d){return((4278124286&(f^d))>>>1)+(f&d)>>>0}function lt(f){return 0<=f&&256>f?f:0>f?0:255<f?255:void 0}function ct(f,d){return lt(f+(f-d+.5>>1))}function vt(f,d,w){return Math.abs(d-w)-Math.abs(f-w)}function At(f,d,w,T,D,M,U){for(T=M[U-1],w=0;w<D;++w)M[U+w]=T=Ue(f[d+w],T)}function Ct(f,d,w,T,D){var M;for(M=0;M<w;++M){var U=f[d+M],W=U>>8&255,X=16711935&(X=(X=16711935&U)+((W<<16)+W));T[D+M]=(4278255360&U)+X>>>0}}function kt(f,d){d.jd=f>>0&255,d.hd=f>>8&255,d.ud=f>>16&255}function gt(f,d,w,T,D,M){var U;for(U=0;U<T;++U){var W=d[w+U],X=W>>>8,ee=W,de=255&(de=(de=W>>>16)+((f.jd<<24>>24)*(X<<24>>24)>>>5));ee=255&(ee=(ee=ee+((f.hd<<24>>24)*(X<<24>>24)>>>5))+((f.ud<<24>>24)*(de<<24>>24)>>>5)),D[M+U]=(4278255360&W)+(de<<16)+ee}}function Et(f,d,w,T,D){I[d]=function(M,U,W,X,ee,de,Se,Ae,xe){for(X=Se;X<Ae;++X)for(Se=0;Se<xe;++Se)ee[de++]=D(W[T(M[U++])])},I[f]=function(M,U,W,X,ee,de,Se){var Ae=8>>M.b,xe=M.Ea,De=M.K[0],Fe=M.w;if(8>Ae)for(M=(1<<M.b)-1,Fe=(1<<Ae)-1;U<W;++U){var pe,me=0;for(pe=0;pe<xe;++pe)pe&M||(me=T(X[ee++])),de[Se++]=D(De[me&Fe]),me>>=Ae}else I["VP8LMapColor"+w](X,ee,De,Fe,de,Se,U,W,xe)}}function et(f,d,w,T,D){for(w=d+w;d<w;){var M=f[d++];T[D++]=M>>16&255,T[D++]=M>>8&255,T[D++]=M>>0&255}}function Cr(f,d,w,T,D){for(w=d+w;d<w;){var M=f[d++];T[D++]=M>>16&255,T[D++]=M>>8&255,T[D++]=M>>0&255,T[D++]=M>>24&255}}function It(f,d,w,T,D){for(w=d+w;d<w;){var M=(U=f[d++])>>16&240|U>>12&15,U=U>>0&240|U>>28&15;T[D++]=M,T[D++]=U}}function dn(f,d,w,T,D){for(w=d+w;d<w;){var M=(U=f[d++])>>16&248|U>>13&7,U=U>>5&224|U>>3&31;T[D++]=M,T[D++]=U}}function zt(f,d,w,T,D){for(w=d+w;d<w;){var M=f[d++];T[D++]=M>>0&255,T[D++]=M>>8&255,T[D++]=M>>16&255}}function rr(f,d,w,T,D,M){if(M==0)for(w=d+w;d<w;)we(T,((M=f[d++])[0]>>24|M[1]>>8&65280|M[2]<<8&16711680|M[3]<<24)>>>0),D+=32;else n(T,D,f,d,w)}function jn(f,d){I[d][0]=I[f+"0"],I[d][1]=I[f+"1"],I[d][2]=I[f+"2"],I[d][3]=I[f+"3"],I[d][4]=I[f+"4"],I[d][5]=I[f+"5"],I[d][6]=I[f+"6"],I[d][7]=I[f+"7"],I[d][8]=I[f+"8"],I[d][9]=I[f+"9"],I[d][10]=I[f+"10"],I[d][11]=I[f+"11"],I[d][12]=I[f+"12"],I[d][13]=I[f+"13"],I[d][14]=I[f+"0"],I[d][15]=I[f+"0"]}function Dt(f){return f==ql||f==Gl||f==_0||f==Vl}function pi(){this.eb=[],this.size=this.A=this.fb=0}function ar(){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 An(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new pi,this.f.kb=new ar,this.sd=null}function Kn(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Qt(){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 wt(f){return alert("todo:WebPSamplerProcessPlane"),f.T}function jt(f,d){var w=f.T,T=d.ba.f.RGBA,D=T.eb,M=T.fb+f.ka*T.A,U=Gn[d.ba.S],W=f.y,X=f.O,ee=f.f,de=f.N,Se=f.ea,Ae=f.W,xe=d.cc,De=d.dc,Fe=d.Mc,pe=d.Nc,me=f.ka,Ie=f.ka+f.T,Be=f.U,Oe=Be+1>>1;for(me==0?U(W,X,null,null,ee,de,Se,Ae,ee,de,Se,Ae,D,M,null,null,Be):(U(d.ec,d.fc,W,X,xe,De,Fe,pe,ee,de,Se,Ae,D,M-T.A,D,M,Be),++w);me+2<Ie;me+=2)xe=ee,De=de,Fe=Se,pe=Ae,de+=f.Rc,Ae+=f.Rc,M+=2*T.A,U(W,(X+=2*f.fa)-f.fa,W,X,xe,De,Fe,pe,ee,de,Se,Ae,D,M-T.A,D,M,Be);return X+=f.fa,f.j+Ie<f.o?(n(d.ec,d.fc,W,X,Be),n(d.cc,d.dc,ee,de,Oe),n(d.Mc,d.Nc,Se,Ae,Oe),w--):1&Ie||U(W,X,null,null,ee,de,Se,Ae,ee,de,Se,Ae,D,M+T.A,null,null,Be),w}function Li(f,d,w){var T=f.F,D=[f.J];if(T!=null){var M=f.U,U=d.ba.S,W=U==b0||U==_0;d=d.ba.f.RGBA;var X=[0],ee=f.ka;X[0]=f.T,f.Kb&&(ee==0?--X[0]:(--ee,D[0]-=f.width),f.j+f.ka+f.T==f.o&&(X[0]=f.o-f.j-ee));var de=d.eb;ee=d.fb+ee*d.A,f=ir(T,D[0],f.width,M,X,de,ee+(W?0:3),d.A),r(w==X),f&&Dt(U)&&Hn(de,ee,W,M,X,d.A)}return 0}function kr(f){var d=f.ma,w=d.ba.S,T=11>w,D=w==w0||w==y0||w==b0||w==Hl||w==12||Dt(w);if(d.memory=null,d.Ib=null,d.Jb=null,d.Nd=null,!to(d.Oa,f,D?11:12))return 0;if(D&&Dt(w)&&ze(),f.da)alert("todo:use_scaling");else{if(T){if(d.Ib=wt,f.Kb){if(w=f.U+1>>1,d.memory=a(f.U+2*w),d.memory==null)return 0;d.ec=d.memory,d.fc=0,d.cc=d.ec,d.dc=d.fc+f.U,d.Mc=d.cc,d.Nc=d.dc+w,d.Ib=jt,ze()}}else alert("todo:EmitYUV");D&&(d.Jb=Li,T&&ve())}if(T&&!_c){for(f=0;256>f;++f)Ed[f]=89858*(f-128)+A0>>S0,Cd[f]=-22014*(f-128)+A0,Fd[f]=-45773*(f-128),Ld[f]=113618*(f-128)+A0>>S0;for(f=co;f<$l;++f)d=76283*(f-16)+A0>>S0,kd[f-co]=En(d,255),Pd[f-co]=En(d+8>>4,15);_c=1}return 1}function Mn(f){var d=f.ma,w=f.U,T=f.T;return r(!(1&f.ka)),0>=w||0>=T?0:(w=d.Ib(f,d),d.Jb!=null&&d.Jb(f,d,w),d.Dc+=w,1)}function Bn(f){f.ma.memory=null}function dt(f,d,w,T){return ge(f,8)!=47?0:(d[0]=ge(f,14)+1,w[0]=ge(f,14)+1,T[0]=ge(f,1),ge(f,3)!=0?0:!f.h)}function Nn(f,d){if(4>f)return f+1;var w=f-2>>1;return(2+(1&f)<<w)+ge(d,w)+1}function pn(f,d){return 120<d?d-120:1<=(w=((w=dd[d-1])>>4)*f+(8-(15&w)))?w:1;var w}function $r(f,d,w){var T=C(w),D=f[d+=255&T].g-8;return 0<D&&(O(w,w.u+8),T=C(w),d+=f[d].value,d+=T&(1<<D)-1),O(w,w.u+f[d].g),f[d].value}function mr(f,d,w){return w.g+=f.g,w.value+=f.value<<d>>>0,r(8>=w.g),f.g}function cr(f,d,w){var T=f.xc;return r((d=T==0?0:f.vc[f.md*(w>>T)+(d>>T)])<f.Wb),f.Ya[d]}function B(f,d,w,T){var D=f.ab,M=f.c*d,U=f.C;d=U+d;var W=w,X=T;for(T=f.Ta,w=f.Ua;0<D--;){var ee=f.gc[D],de=U,Se=d,Ae=W,xe=X,De=(X=T,W=w,ee.Ea);switch(r(de<Se),r(Se<=ee.nc),ee.hc){case 2:h0(Ae,xe,(Se-de)*De,X,W);break;case 0:var Fe=de,pe=Se,me=X,Ie=W,Be=(Qe=ee).Ea;Fe==0&&(zl(Ae,xe,null,null,1,me,Ie),At(Ae,xe+1,0,0,Be-1,me,Ie+1),xe+=Be,Ie+=Be,++Fe);for(var Oe=1<<Qe.b,st=Oe-1,Je=it(Be,Qe.b),pt=Qe.K,Qe=Qe.w+(Fe>>Qe.b)*Je;Fe<pe;){var Bt=pt,qt=Qe,Rt=1;for(io(Ae,xe,me,Ie-Be,1,me,Ie);Rt<Be;){var Pt=(Rt&~st)+Oe;Pt>Be&&(Pt=Be),(0,Ki[Bt[qt++]>>8&15])(Ae,xe+ +Rt,me,Ie+Rt-Be,Pt-Rt,me,Ie+Rt),Rt=Pt}xe+=Be,Ie+=Be,++Fe&st||(Qe+=Je)}Se!=ee.nc&&n(X,W-De,X,W+(Se-de-1)*De,De);break;case 1:for(De=Ae,pe=xe,Be=(Ae=ee.Ea)-(Ie=Ae&~(me=(xe=1<<ee.b)-1)),Fe=it(Ae,ee.b),Oe=ee.K,ee=ee.w+(de>>ee.b)*Fe;de<Se;){for(st=Oe,Je=ee,pt=new Ke,Qe=pe+Ie,Bt=pe+Ae;pe<Qe;)kt(st[Je++],pt),Ea(pt,De,pe,xe,X,W),pe+=xe,W+=xe;pe<Bt&&(kt(st[Je++],pt),Ea(pt,De,pe,Be,X,W),pe+=Be,W+=Be),++de&me||(ee+=Fe)}break;case 3:if(Ae==X&&xe==W&&0<ee.b){for(pe=X,Ae=De=W+(Se-de)*De-(Ie=(Se-de)*it(ee.Ea,ee.b)),xe=X,me=W,Fe=[],Ie=(Be=Ie)-1;0<=Ie;--Ie)Fe[Ie]=xe[me+Ie];for(Ie=Be-1;0<=Ie;--Ie)pe[Ae+Ie]=Fe[Ie];Un(ee,de,Se,X,De,X,W)}else Un(ee,de,Se,Ae,xe,X,W)}W=T,X=w}X!=w&&n(T,w,W,X,M)}function re(f,d){var w=f.V,T=f.Ba+f.c*f.C,D=d-f.C;if(r(d<=f.l.o),r(16>=D),0<D){var M=f.l,U=f.Ta,W=f.Ua,X=M.width;if(B(f,D,w,T),D=W=[W],r((w=f.C)<(T=d)),r(M.v<M.va),T>M.o&&(T=M.o),w<M.j){var ee=M.j-w;w=M.j,D[0]+=ee*X}if(w>=T?w=0:(D[0]+=4*M.v,M.ka=w-M.j,M.U=M.va-M.v,M.T=T-w,w=1),w){if(W=W[0],11>(w=f.ca).S){var de=w.f.RGBA,Se=(T=w.S,D=M.U,M=M.T,ee=de.eb,de.A),Ae=M;for(de=de.fb+f.Ma*de.A;0<Ae--;){var xe=U,De=W,Fe=D,pe=ee,me=de;switch(T){case v0:xn(xe,De,Fe,pe,me);break;case w0:sn(xe,De,Fe,pe,me);break;case ql:sn(xe,De,Fe,pe,me),Hn(pe,me,0,Fe,1,0);break;case dc:Ii(xe,De,Fe,pe,me);break;case y0:rr(xe,De,Fe,pe,me,1);break;case Gl:rr(xe,De,Fe,pe,me,1),Hn(pe,me,0,Fe,1,0);break;case b0:rr(xe,De,Fe,pe,me,0);break;case _0:rr(xe,De,Fe,pe,me,0),Hn(pe,me,1,Fe,1,0);break;case Hl:Ji(xe,De,Fe,pe,me);break;case Vl:Ji(xe,De,Fe,pe,me),nr(pe,me,Fe,1,0);break;case pc:Pi(xe,De,Fe,pe,me);break;default:r(0)}W+=X,de+=Se}f.Ma+=M}else alert("todo:EmitRescaledRowsYUVA");r(f.Ma<=w.height)}}f.C=d,r(f.C<=f.i)}function K(f){var d;if(0<f.ua)return 0;for(d=0;d<f.Wb;++d){var w=f.Ya[d].G,T=f.Ya[d].H;if(0<w[1][T[1]+0].g||0<w[2][T[2]+0].g||0<w[3][T[3]+0].g)return 0}return 1}function Z(f,d,w,T,D,M){if(f.Z!=0){var U=f.qd,W=f.rd;for(r(ta[f.Z]!=null);d<w;++d)ta[f.Z](U,W,T,D,T,D,M),U=T,W=D,D+=M;f.qd=U,f.rd=W}}function te(f,d){var w=f.l.ma,T=w.Z==0||w.Z==1?f.l.j:f.C;if(T=f.C<T?T:f.C,r(d<=f.l.o),d>T){var D=f.l.width,M=w.ca,U=w.tb+D*T,W=f.V,X=f.Ba+f.c*T,ee=f.gc;r(f.ab==1),r(ee[0].hc==3),d0(ee[0],T,d,W,X,M,U),Z(w,T,d,M,U,D)}f.C=f.Ma=d}function ie(f,d,w,T,D,M,U){var W=f.$/T,X=f.$%T,ee=f.m,de=f.s,Se=w+f.$,Ae=Se;D=w+T*D;var xe=w+T*M,De=280+de.ua,Fe=f.Pb?W:16777216,pe=0<de.ua?de.Wa:null,me=de.wc,Ie=Se<xe?cr(de,X,W):null;r(f.C<M),r(xe<=D);var Be=!1;e:for(;;){for(;Be||Se<xe;){var Oe=0;if(W>=Fe){var st=Se-w;r((Fe=f).Pb),Fe.wd=Fe.m,Fe.xd=st,0<Fe.s.ua&&Ee(Fe.s.Wa,Fe.s.vb),Fe=W+gd}if(X&me||(Ie=cr(de,X,W)),r(Ie!=null),Ie.Qb&&(d[Se]=Ie.qb,Be=!0),!Be)if(q(ee),Ie.jc){Oe=ee,st=d;var Je=Se,pt=Ie.pd[C(Oe)&zr-1];r(Ie.jc),256>pt.g?(O(Oe,Oe.u+pt.g),st[Je]=pt.value,Oe=0):(O(Oe,Oe.u+pt.g-256),r(256<=pt.value),Oe=pt.value),Oe==0&&(Be=!0)}else Oe=$r(Ie.G[0],Ie.H[0],ee);if(ee.h)break;if(Be||256>Oe){if(!Be)if(Ie.nd)d[Se]=(Ie.qb|Oe<<8)>>>0;else{if(q(ee),Be=$r(Ie.G[1],Ie.H[1],ee),q(ee),st=$r(Ie.G[2],Ie.H[2],ee),Je=$r(Ie.G[3],Ie.H[3],ee),ee.h)break;d[Se]=(Je<<24|Be<<16|Oe<<8|st)>>>0}if(Be=!1,++Se,++X>=T&&(X=0,++W,U!=null&&W<=M&&!(W%16)&&U(f,W),pe!=null))for(;Ae<Se;)Oe=d[Ae++],pe.X[(506832829*Oe&4294967295)>>>pe.Mb]=Oe}else if(280>Oe){if(Oe=Nn(Oe-256,ee),st=$r(Ie.G[4],Ie.H[4],ee),q(ee),st=pn(T,st=Nn(st,ee)),ee.h)break;if(Se-w<st||D-Se<Oe)break e;for(Je=0;Je<Oe;++Je)d[Se+Je]=d[Se+Je-st];for(Se+=Oe,X+=Oe;X>=T;)X-=T,++W,U!=null&&W<=M&&!(W%16)&&U(f,W);if(r(Se<=D),X&me&&(Ie=cr(de,X,W)),pe!=null)for(;Ae<Se;)Oe=d[Ae++],pe.X[(506832829*Oe&4294967295)>>>pe.Mb]=Oe}else{if(!(Oe<De))break e;for(Be=Oe-280,r(pe!=null);Ae<Se;)Oe=d[Ae++],pe.X[(506832829*Oe&4294967295)>>>pe.Mb]=Oe;Oe=Se,r(!(Be>>>(st=pe).Xa)),d[Oe]=st.X[Be],Be=!0}Be||r(ee.h==k(ee))}if(f.Pb&&ee.h&&Se<D)r(f.m.h),f.a=5,f.m=f.wd,f.$=f.xd,0<f.s.ua&&Ee(f.s.vb,f.s.Wa);else{if(ee.h)break e;U!=null&&U(f,W>M?M:W),f.a=0,f.$=Se-w}return 1}return f.a=3,0}function _e(f){r(f!=null),f.vc=null,f.yc=null,f.Ya=null;var d=f.Wa;d!=null&&(d.X=null),f.vb=null,r(f!=null)}function Le(){var f=new Ul;return f==null?null:(f.a=0,f.xb=xc,jn("Predictor","VP8LPredictors"),jn("Predictor","VP8LPredictors_C"),jn("PredictorAdd","VP8LPredictorsAdd"),jn("PredictorAdd","VP8LPredictorsAdd_C"),h0=Ct,Ea=gt,xn=et,sn=Cr,Ji=It,Pi=dn,Ii=zt,I.VP8LMapColor32b=cs,I.VP8LMapColor8b=p0,f)}function be(f,d,w,T,D){var M=1,U=[f],W=[d],X=T.m,ee=T.s,de=null,Se=0;e:for(;;){if(w)for(;M&&ge(X,1);){var Ae=U,xe=W,De=T,Fe=1,pe=De.m,me=De.gc[De.ab],Ie=ge(pe,2);if(De.Oc&1<<Ie)M=0;else{switch(De.Oc|=1<<Ie,me.hc=Ie,me.Ea=Ae[0],me.nc=xe[0],me.K=[null],++De.ab,r(4>=De.ab),Ie){case 0:case 1:me.b=ge(pe,3)+2,Fe=be(it(me.Ea,me.b),it(me.nc,me.b),0,De,me.K),me.K=me.K[0];break;case 3:var Be,Oe=ge(pe,8)+1,st=16<Oe?0:4<Oe?1:2<Oe?2:3;if(Ae[0]=it(me.Ea,st),me.b=st,Be=Fe=be(Oe,1,0,De,me.K)){var Je,pt=Oe,Qe=me,Bt=1<<(8>>Qe.b),qt=a(Bt);if(qt==null)Be=0;else{var Rt=Qe.K[0],Pt=Qe.w;for(qt[0]=Qe.K[0][0],Je=1;Je<1*pt;++Je)qt[Je]=Ue(Rt[Pt+Je],qt[Je-1]);for(;Je<4*Bt;++Je)qt[Je]=0;Qe.K[0]=null,Qe.K[0]=qt,Be=1}}Fe=Be;break;case 2:break;default:r(0)}M=Fe}}if(U=U[0],W=W[0],M&&ge(X,1)&&!(M=1<=(Se=ge(X,4))&&11>=Se)){T.a=3;break e}var er;if(er=M)t:{var Jt,Nt,Nr,vn=T,Tr=U,wn=W,Gt=Se,Fn=w,Cn=vn.m,Rr=vn.s,Wr=[null],ln=1,Vn=0,yi=pd[Gt];r:for(;;){if(Fn&&ge(Cn,1)){var jr=ge(Cn,3)+2,ji=it(Tr,jr),Pa=it(wn,jr),gs=ji*Pa;if(!be(ji,Pa,0,vn,Wr))break r;for(Wr=Wr[0],Rr.xc=jr,Jt=0;Jt<gs;++Jt){var ra=Wr[Jt]>>8&65535;Wr[Jt]=ra,ra>=ln&&(ln=ra+1)}}if(Cn.h)break r;for(Nt=0;5>Nt;++Nt){var hr=gc[Nt];!Nt&&0<Gt&&(hr+=1<<Gt),Vn<hr&&(Vn=hr)}var Kl=s(ln*yi,N),Nc=ln,Tc=s(Nc,Y);if(Tc==null)var T0=null;else r(65536>=Nc),T0=Tc;var uo=a(Vn);if(T0==null||uo==null||Kl==null){vn.a=1;break r}var E0=Kl;for(Jt=Nr=0;Jt<ln;++Jt){var ni=T0[Jt],ms=ni.G,xs=ni.H,Ec=0,L0=1,Lc=0;for(Nt=0;5>Nt;++Nt){hr=gc[Nt],ms[Nt]=E0,xs[Nt]=Nr,!Nt&&0<Gt&&(hr+=1<<Gt);i:{var F0,Jl=hr,C0=vn,ho=uo,Dd=E0,Rd=Nr,Zl=0,na=C0.m,jd=ge(na,1);if(i(ho,0,0,Jl),jd){var Md=ge(na,1)+1,Bd=ge(na,1),Fc=ge(na,Bd==0?1:8);ho[Fc]=1,Md==2&&(ho[Fc=ge(na,8)]=1);var k0=1}else{var Cc=a(19),kc=ge(na,4)+4;if(19<kc){C0.a=3;var P0=0;break i}for(F0=0;F0<kc;++F0)Cc[hd[F0]]=ge(na,3);var Ql=void 0,po=void 0,Pc=C0,Ud=Cc,I0=Jl,Ic=ho,ef=0,ia=Pc.m,Oc=8,Dc=s(128,N);n:for(;E(Dc,0,7,Ud,19);){if(ge(ia,1)){var zd=2+2*ge(ia,3);if((Ql=2+ge(ia,zd))>I0)break n}else Ql=I0;for(po=0;po<I0&&Ql--;){q(ia);var Rc=Dc[0+(127&C(ia))];O(ia,ia.u+Rc.g);var vs=Rc.value;if(16>vs)Ic[po++]=vs,vs!=0&&(Oc=vs);else{var Wd=vs==16,jc=vs-16,Hd=cd[jc],Mc=ge(ia,fd[jc])+Hd;if(po+Mc>I0)break n;for(var qd=Wd?Oc:0;0<Mc--;)Ic[po++]=qd}}ef=1;break n}ef||(Pc.a=3),k0=ef}(k0=k0&&!na.h)&&(Zl=E(Dd,Rd,8,ho,Jl)),k0&&Zl!=0?P0=Zl:(C0.a=3,P0=0)}if(P0==0)break r;if(L0&&ud[Nt]==1&&(L0=E0[Nr].g==0),Ec+=E0[Nr].g,Nr+=P0,3>=Nt){var go,tf=uo[0];for(go=1;go<hr;++go)uo[go]>tf&&(tf=uo[go]);Lc+=tf}}if(ni.nd=L0,ni.Qb=0,L0&&(ni.qb=(ms[3][xs[3]+0].value<<24|ms[1][xs[1]+0].value<<16|ms[2][xs[2]+0].value)>>>0,Ec==0&&256>ms[0][xs[0]+0].value&&(ni.Qb=1,ni.qb+=ms[0][xs[0]+0].value<<8)),ni.jc=!ni.Qb&&6>Lc,ni.jc){var O0,Mi=ni;for(O0=0;O0<zr;++O0){var aa=O0,sa=Mi.pd[aa],D0=Mi.G[0][Mi.H[0]+aa];256<=D0.value?(sa.g=D0.g+256,sa.value=D0.value):(sa.g=0,sa.value=0,aa>>=mr(D0,8,sa),aa>>=mr(Mi.G[1][Mi.H[1]+aa],16,sa),aa>>=mr(Mi.G[2][Mi.H[2]+aa],0,sa),mr(Mi.G[3][Mi.H[3]+aa],24,sa))}}}Rr.vc=Wr,Rr.Wb=ln,Rr.Ya=T0,Rr.yc=Kl,er=1;break t}er=0}if(!(M=er)){T.a=3;break e}if(0<Se){if(ee.ua=1<<Se,!$e(ee.Wa,Se)){T.a=1,M=0;break e}}else ee.ua=0;var rf=T,Bc=U,Gd=W,nf=rf.s,af=nf.xc;if(rf.c=Bc,rf.i=Gd,nf.md=it(Bc,af),nf.wc=af==0?-1:(1<<af)-1,w){T.xb=_d;break e}if((de=a(U*W))==null){T.a=1,M=0;break e}M=(M=ie(T,de,0,U,W,W,null))&&!X.h;break e}return M?(D!=null?D[0]=de:(r(de==null),r(w)),T.$=0,w||_e(ee)):_e(ee),M}function Ne(f,d){var w=f.c*f.i,T=w+d+16*d;return r(f.c<=d),f.V=a(T),f.V==null?(f.Ta=null,f.Ua=0,f.a=1,0):(f.Ta=f.V,f.Ua=f.Ba+w+d,1)}function Te(f,d){var w=f.C,T=d-w,D=f.V,M=f.Ba+f.c*w;for(r(d<=f.l.o);0<T;){var U=16<T?16:T,W=f.l.ma,X=f.l.width,ee=X*U,de=W.ca,Se=W.tb+X*w,Ae=f.Ta,xe=f.Ua;B(f,U,D,M),wr(Ae,xe,de,Se,ee),Z(W,w,w+U,de,Se,X),T-=U,D+=U*f.c,w+=U}r(w==d),f.C=f.Ma=d}function We(){this.ub=this.yd=this.td=this.Rb=0}function Ve(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function rt(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function qe(){this.Yb=(function(){var f=[];return(function d(w,T,D){for(var M=D[T],U=0;U<M&&(w.push(D.length>T+1?[]:0),!(D.length<T+1));U++)d(w[U],T+1,D)})(f,0,[3,11]),f})()}function tt(){this.jb=a(3),this.Wc=o([4,8],qe),this.Xc=o([4,17],qe)}function xt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Wt(){this.ld=this.La=this.dd=this.tc=0}function Kt(){this.Na=this.la=0}function Sr(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Jn(){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 Fi(){this.uc=this.M=this.Nb=0,this.wa=Array(new Wt),this.Y=0,this.ya=Array(new Jn),this.aa=0,this.l=new mi}function gi(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Zn(){this.cb=this.a=0,this.sc="",this.m=new ye,this.Od=new We,this.Kc=new Ve,this.ed=new xt,this.Qa=new rt,this.Ic=this.$c=this.Aa=0,this.D=new Fi,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,ye),this.ia=0,this.pb=s(4,Sr),this.Pa=new tt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new gi),this.Hd=0,this.rb=Array(new Kt),this.sb=0,this.wa=Array(new Wt),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 Jn),this.L=this.aa=0,this.gd=o([4,2],Wt),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 mi(){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 Tn(){var f=new Zn;return f!=null&&(f.a=0,f.sc="OK",f.cb=0,f.Xb=0,fo||(fo=Jo)),f}function xr(f,d,w){return f.a==0&&(f.a=d,f.sc=w,f.cb=0),0}function $o(f,d,w){return 3<=w&&f[d+0]==157&&f[d+1]==1&&f[d+2]==42}function Ko(f,d){if(f==null)return 0;if(f.a=0,f.sc="OK",d==null)return xr(f,2,"null VP8Io passed to VP8GetHeaders()");var w=d.data,T=d.w,D=d.ha;if(4>D)return xr(f,7,"Truncated header.");var M=w[T+0]|w[T+1]<<8|w[T+2]<<16,U=f.Od;if(U.Rb=!(1&M),U.td=M>>1&7,U.yd=M>>4&1,U.ub=M>>5,3<U.td)return xr(f,3,"Incorrect keyframe parameters.");if(!U.yd)return xr(f,4,"Frame not displayable.");T+=3,D-=3;var W=f.Kc;if(U.Rb){if(7>D)return xr(f,7,"cannot parse picture header");if(!$o(w,T,D))return xr(f,3,"Bad code word");W.c=16383&(w[T+4]<<8|w[T+3]),W.Td=w[T+4]>>6,W.i=16383&(w[T+6]<<8|w[T+5]),W.Ud=w[T+6]>>6,T+=7,D-=7,f.za=W.c+15>>4,f.Ub=W.i+15>>4,d.width=W.c,d.height=W.i,d.Da=0,d.j=0,d.v=0,d.va=d.width,d.o=d.height,d.da=0,d.ib=d.width,d.hb=d.height,d.U=d.width,d.T=d.height,i((M=f.Pa).jb,0,255,M.jb.length),r((M=f.Qa)!=null),M.Cb=0,M.Bb=0,M.Fb=1,i(M.Zb,0,0,M.Zb.length),i(M.Lb,0,0,M.Lb)}if(U.ub>D)return xr(f,7,"bad partition length");fe(M=f.m,w,T,U.ub),T+=U.ub,D-=U.ub,U.Rb&&(W.Ld=ce(M),W.Kd=ce(M)),W=f.Qa;var X,ee=f.Pa;if(r(M!=null),r(W!=null),W.Cb=ce(M),W.Cb){if(W.Bb=ce(M),ce(M)){for(W.Fb=ce(M),X=0;4>X;++X)W.Zb[X]=ce(M)?J(M,7):0;for(X=0;4>X;++X)W.Lb[X]=ce(M)?J(M,6):0}if(W.Bb)for(X=0;3>X;++X)ee.jb[X]=ce(M)?Q(M,8):255}else W.Bb=0;if(M.Ka)return xr(f,3,"cannot parse segment header");if((W=f.ed).zd=ce(M),W.Tb=Q(M,6),W.wb=Q(M,3),W.Pc=ce(M),W.Pc&&ce(M)){for(ee=0;4>ee;++ee)ce(M)&&(W.vd[ee]=J(M,6));for(ee=0;4>ee;++ee)ce(M)&&(W.od[ee]=J(M,6))}if(f.L=W.Tb==0?0:W.zd?1:2,M.Ka)return xr(f,3,"cannot parse filter header");var de=D;if(D=X=T,T=X+de,W=de,f.Xb=(1<<Q(f.m,2))-1,de<3*(ee=f.Xb))w=7;else{for(X+=3*ee,W-=3*ee,de=0;de<ee;++de){var Se=w[D+0]|w[D+1]<<8|w[D+2]<<16;Se>W&&(Se=W),fe(f.Jc[+de],w,X,Se),X+=Se,W-=Se,D+=3}fe(f.Jc[+ee],w,X,W),w=X<T?0:5}if(w!=0)return xr(f,w,"cannot parse partitions");for(w=Q(X=f.m,7),D=ce(X)?J(X,4):0,T=ce(X)?J(X,4):0,W=ce(X)?J(X,4):0,ee=ce(X)?J(X,4):0,X=ce(X)?J(X,4):0,de=f.Qa,Se=0;4>Se;++Se){if(de.Cb){var Ae=de.Zb[Se];de.Fb||(Ae+=w)}else{if(0<Se){f.pb[Se]=f.pb[0];continue}Ae=w}var xe=f.pb[Se];xe.Sc[0]=Xl[En(Ae+D,127)],xe.Sc[1]=Yl[En(Ae+0,127)],xe.Eb[0]=2*Xl[En(Ae+T,127)],xe.Eb[1]=101581*Yl[En(Ae+W,127)]>>16,8>xe.Eb[1]&&(xe.Eb[1]=8),xe.Qc[0]=Xl[En(Ae+ee,117)],xe.Qc[1]=Yl[En(Ae+X,127)],xe.lc=Ae+X}if(!U.Rb)return xr(f,4,"Not a key frame.");for(ce(M),U=f.Pa,w=0;4>w;++w){for(D=0;8>D;++D)for(T=0;3>T;++T)for(W=0;11>W;++W)ee=ue(M,yd[w][D][T][W])?Q(M,8):vd[w][D][T][W],U.Wc[w][D].Yb[T][W]=ee;for(D=0;17>D;++D)U.Xc[w][D]=U.Wc[w][bd[D]]}return f.kc=ce(M),f.kc&&(f.Bd=Q(M,8)),f.cb=1}function Jo(f,d,w,T,D,M,U){var W=d[D].Yb[w];for(w=0;16>D;++D){if(!ue(f,W[w+0]))return D;for(;!ue(f,W[w+1]);)if(W=d[++D].Yb[0],w=0,D==16)return 16;var X=d[D+1].Yb;if(ue(f,W[w+2])){var ee=f,de=0;if(ue(ee,(Ae=W)[(Se=w)+3]))if(ue(ee,Ae[Se+6])){for(W=0,Se=2*(de=ue(ee,Ae[Se+8]))+(Ae=ue(ee,Ae[Se+9+de])),de=0,Ae=md[Se];Ae[W];++W)de+=de+ue(ee,Ae[W]);de+=3+(8<<Se)}else ue(ee,Ae[Se+7])?(de=7+2*ue(ee,165),de+=ue(ee,145)):de=5+ue(ee,159);else de=ue(ee,Ae[Se+4])?3+ue(ee,Ae[Se+5]):2;W=X[2]}else de=1,W=X[1];X=U+xd[D],0>(ee=f).b&&le(ee);var Se,Ae=ee.b,xe=(Se=ee.Ca>>1)-(ee.I>>Ae)>>31;--ee.b,ee.Ca+=xe,ee.Ca|=1,ee.I-=(Se+1&xe)<<Ae,M[X]=((de^xe)-xe)*T[(0<D)+0]}return 16}function Us(f){var d=f.rb[f.sb-1];d.la=0,d.Na=0,i(f.zc,0,0,f.zc.length),f.ja=0}function Sl(f,d){if(f==null)return 0;if(d==null)return xr(f,2,"NULL VP8Io parameter in VP8Decode().");if(!f.cb&&!Ko(f,d))return 0;if(r(f.cb),d.ac==null||d.ac(d)){d.ob&&(f.L=0);var w=N0[f.L];if(f.L==2?(f.yb=0,f.zb=0):(f.yb=d.v-w>>4,f.zb=d.j-w>>4,0>f.yb&&(f.yb=0),0>f.zb&&(f.zb=0)),f.Va=d.o+15+w>>4,f.Hb=d.va+15+w>>4,f.Hb>f.za&&(f.Hb=f.za),f.Va>f.Ub&&(f.Va=f.Ub),0<f.L){var T=f.ed;for(w=0;4>w;++w){var D;if(f.Qa.Cb){var M=f.Qa.Lb[w];f.Qa.Fb||(M+=T.Tb)}else M=T.Tb;for(D=0;1>=D;++D){var U=f.gd[w][D],W=M;if(T.Pc&&(W+=T.vd[0],D&&(W+=T.od[0])),0<(W=0>W?0:63<W?63:W)){var X=W;0<T.wb&&(X=4<T.wb?X>>2:X>>1)>9-T.wb&&(X=9-T.wb),1>X&&(X=1),U.dd=X,U.tc=2*W+X,U.ld=40<=W?2:15<=W?1:0}else U.tc=0;U.La=D}}}w=0}else xr(f,6,"Frame setup failed"),w=f.a;if(w=w==0){if(w){f.$c=0,0<f.Aa||(f.Ic=Od);e:{w=f.Ic,T=4*(X=f.za);var ee=32*X,de=X+1,Se=0<f.L?X*(0<f.Aa?2:1):0,Ae=(f.Aa==2?2:1)*X;if((U=T+832+(D=3*(16*w+N0[f.L])/2*ee)+(M=f.Fa!=null&&0<f.Fa.length?f.Kc.c*f.Kc.i:0))!=U)w=0;else{if(U>f.Vb){if(f.Vb=0,f.Ec=a(U),f.Fc=0,f.Ec==null){w=xr(f,1,"no memory during frame initialization.");break e}f.Vb=U}U=f.Ec,W=f.Fc,f.Ac=U,f.Bc=W,W+=T,f.Gd=s(ee,gi),f.Hd=0,f.rb=s(de+1,Kt),f.sb=1,f.wa=Se?s(Se,Wt):null,f.Y=0,f.D.Nb=0,f.D.wa=f.wa,f.D.Y=f.Y,0<f.Aa&&(f.D.Y+=X),r(!0),f.oc=U,f.pc=W,W+=832,f.ya=s(Ae,Jn),f.aa=0,f.D.ya=f.ya,f.D.aa=f.aa,f.Aa==2&&(f.D.aa+=X),f.R=16*X,f.B=8*X,X=(ee=N0[f.L])*f.R,ee=ee/2*f.B,f.sa=U,f.ta=W+X,f.qa=f.sa,f.ra=f.ta+16*w*f.R+ee,f.Ha=f.qa,f.Ia=f.ra+8*w*f.B+ee,f.$c=0,W+=D,f.mb=M?U:null,f.nb=M?W:null,r(W+M<=f.Fc+f.Vb),Us(f),i(f.Ac,f.Bc,0,T),w=1}}if(w){if(d.ka=0,d.y=f.sa,d.O=f.ta,d.f=f.qa,d.N=f.ra,d.ea=f.Ha,d.Vd=f.Ia,d.fa=f.R,d.Rc=f.B,d.F=null,d.J=0,!m0){for(w=-255;255>=w;++w)Pr[255+w]=0>w?-w:w;for(w=-1020;1020>=w;++w)Di[1020+w]=-128>w?-128:127<w?127:w;for(w=-112;112>=w;++w)lo[112+w]=-16>w?-16:15<w?15:w;for(w=-255;510>=w;++w)ps[255+w]=0>w?0:255<w?255:w;m0=1}us=Tl,Oi=Al,ao=Qo,on=Nl,zn=e0,vr=Zo,hs=Vs,g0=Na,so=Bl,La=Xs,Fa=Ml,Zi=rs,Ca=Ys,ds=f0,ka=l0,Qi=vi,oo=ki,Wn=jl,ri[0]=xi,ri[1]=El,ri[2]=kl,ri[3]=Pl,ri[4]=n0,ri[5]=es,ri[6]=i0,ri[7]=Hs,ri[8]=Ol,ri[9]=Il,ea[0]=t0,ea[1]=Fl,ea[2]=Ci,ea[3]=Za,ea[4]=Kr,ea[5]=Cl,ea[6]=r0,Ri[0]=Xi,Ri[1]=Ll,Ri[2]=Dl,Ri[3]=qs,Ri[4]=Aa,Ri[5]=Rl,Ri[6]=Gs,w=1}else w=0}w&&(w=(function(xe,De){for(xe.M=0;xe.M<xe.Va;++xe.M){var Fe,pe=xe.Jc[xe.M&xe.Xb],me=xe.m,Ie=xe;for(Fe=0;Fe<Ie.za;++Fe){var Be=me,Oe=Ie,st=Oe.Ac,Je=Oe.Bc+4*Fe,pt=Oe.zc,Qe=Oe.ya[Oe.aa+Fe];if(Oe.Qa.Bb?Qe.$b=ue(Be,Oe.Pa.jb[0])?2+ue(Be,Oe.Pa.jb[2]):ue(Be,Oe.Pa.jb[1]):Qe.$b=0,Oe.kc&&(Qe.Ad=ue(Be,Oe.Bd)),Qe.Za=!ue(Be,145)+0,Qe.Za){var Bt=Qe.Ob,qt=0;for(Oe=0;4>Oe;++Oe){var Rt,Pt=pt[0+Oe];for(Rt=0;4>Rt;++Rt){Pt=wd[st[Je+Rt]][Pt];for(var er=mc[ue(Be,Pt[0])];0<er;)er=mc[2*er+ue(Be,Pt[er])];Pt=-er,st[Je+Rt]=Pt}n(Bt,qt,st,Je,4),qt+=4,pt[0+Oe]=Pt}}else Pt=ue(Be,156)?ue(Be,128)?1:3:ue(Be,163)?2:0,Qe.Ob[0]=Pt,i(st,Je,Pt,4),i(pt,0,Pt,4);Qe.Dd=ue(Be,142)?ue(Be,114)?ue(Be,183)?1:3:2:0}if(Ie.m.Ka)return xr(xe,7,"Premature end-of-partition0 encountered.");for(;xe.ja<xe.za;++xe.ja){if(Ie=pe,Be=(me=xe).rb[me.sb-1],st=me.rb[me.sb+me.ja],Fe=me.ya[me.aa+me.ja],Je=me.kc?Fe.Ad:0)Be.la=st.la=0,Fe.Za||(Be.Na=st.Na=0),Fe.Hc=0,Fe.Gc=0,Fe.ia=0;else{var Jt,Nt;if(Be=st,st=Ie,Je=me.Pa.Xc,pt=me.ya[me.aa+me.ja],Qe=me.pb[pt.$b],Oe=pt.ad,Bt=0,qt=me.rb[me.sb-1],Pt=Rt=0,i(Oe,Bt,0,384),pt.Za)var Nr=0,vn=Je[3];else{er=a(16);var Tr=Be.Na+qt.Na;if(Tr=fo(st,Je[1],Tr,Qe.Eb,0,er,0),Be.Na=qt.Na=(0<Tr)+0,1<Tr)us(er,0,Oe,Bt);else{var wn=er[0]+3>>3;for(er=0;256>er;er+=16)Oe[Bt+er]=wn}Nr=1,vn=Je[0]}var Gt=15&Be.la,Fn=15&qt.la;for(er=0;4>er;++er){var Cn=1&Fn;for(wn=Nt=0;4>wn;++wn)Gt=Gt>>1|(Cn=(Tr=fo(st,vn,Tr=Cn+(1&Gt),Qe.Sc,Nr,Oe,Bt))>Nr)<<7,Nt=Nt<<2|(3<Tr?3:1<Tr?2:Oe[Bt+0]!=0),Bt+=16;Gt>>=4,Fn=Fn>>1|Cn<<7,Rt=(Rt<<8|Nt)>>>0}for(vn=Gt,Nr=Fn>>4,Jt=0;4>Jt;Jt+=2){for(Nt=0,Gt=Be.la>>4+Jt,Fn=qt.la>>4+Jt,er=0;2>er;++er){for(Cn=1&Fn,wn=0;2>wn;++wn)Tr=Cn+(1&Gt),Gt=Gt>>1|(Cn=0<(Tr=fo(st,Je[2],Tr,Qe.Qc,0,Oe,Bt)))<<3,Nt=Nt<<2|(3<Tr?3:1<Tr?2:Oe[Bt+0]!=0),Bt+=16;Gt>>=2,Fn=Fn>>1|Cn<<5}Pt|=Nt<<4*Jt,vn|=Gt<<4<<Jt,Nr|=(240&Fn)<<Jt}Be.la=vn,qt.la=Nr,pt.Hc=Rt,pt.Gc=Pt,pt.ia=43690&Pt?0:Qe.ia,Je=!(Rt|Pt)}if(0<me.L&&(me.wa[me.Y+me.ja]=me.gd[Fe.$b][Fe.Za],me.wa[me.Y+me.ja].La|=!Je),Ie.Ka)return xr(xe,7,"Premature end-of-file encountered.")}if(Us(xe),me=De,Ie=1,Fe=(pe=xe).D,Be=0<pe.L&&pe.M>=pe.zb&&pe.M<=pe.Va,pe.Aa==0)e:{if(Fe.M=pe.M,Fe.uc=Be,eo(pe,Fe),Ie=1,Fe=(Nt=pe.D).Nb,Be=(Pt=N0[pe.L])*pe.R,st=Pt/2*pe.B,er=16*Fe*pe.R,wn=8*Fe*pe.B,Je=pe.sa,pt=pe.ta-Be+er,Qe=pe.qa,Oe=pe.ra-st+wn,Bt=pe.Ha,qt=pe.Ia-st+wn,Fn=(Gt=Nt.M)==0,Rt=Gt>=pe.Va-1,pe.Aa==2&&eo(pe,Nt),Nt.uc)for(Cn=(Tr=pe).D.M,r(Tr.D.uc),Nt=Tr.yb;Nt<Tr.Hb;++Nt){Nr=Nt,vn=Cn;var Rr=(Wr=(hr=Tr).D).Nb;Jt=hr.R;var Wr=Wr.wa[Wr.Y+Nr],ln=hr.sa,Vn=hr.ta+16*Rr*Jt+16*Nr,yi=Wr.dd,jr=Wr.tc;if(jr!=0)if(r(3<=jr),hr.L==1)0<Nr&&Qi(ln,Vn,Jt,jr+4),Wr.La&&Wn(ln,Vn,Jt,jr),0<vn&&ka(ln,Vn,Jt,jr+4),Wr.La&&oo(ln,Vn,Jt,jr);else{var ji=hr.B,Pa=hr.qa,gs=hr.ra+8*Rr*ji+8*Nr,ra=hr.Ha,hr=hr.Ia+8*Rr*ji+8*Nr;Rr=Wr.ld,0<Nr&&(g0(ln,Vn,Jt,jr+4,yi,Rr),La(Pa,gs,ra,hr,ji,jr+4,yi,Rr)),Wr.La&&(Zi(ln,Vn,Jt,jr,yi,Rr),ds(Pa,gs,ra,hr,ji,jr,yi,Rr)),0<vn&&(hs(ln,Vn,Jt,jr+4,yi,Rr),so(Pa,gs,ra,hr,ji,jr+4,yi,Rr)),Wr.La&&(Fa(ln,Vn,Jt,jr,yi,Rr),Ca(Pa,gs,ra,hr,ji,jr,yi,Rr))}}if(pe.ia&&alert("todo:DitherRow"),me.put!=null){if(Nt=16*Gt,Gt=16*(Gt+1),Fn?(me.y=pe.sa,me.O=pe.ta+er,me.f=pe.qa,me.N=pe.ra+wn,me.ea=pe.Ha,me.W=pe.Ia+wn):(Nt-=Pt,me.y=Je,me.O=pt,me.f=Qe,me.N=Oe,me.ea=Bt,me.W=qt),Rt||(Gt-=Pt),Gt>me.o&&(Gt=me.o),me.F=null,me.J=null,pe.Fa!=null&&0<pe.Fa.length&&Nt<Gt&&(me.J=Zs(pe,me,Nt,Gt-Nt),me.F=pe.mb,me.F==null&&me.F.length==0)){Ie=xr(pe,3,"Could not decode alpha data.");break e}Nt<me.j&&(Pt=me.j-Nt,Nt=me.j,r(!(1&Pt)),me.O+=pe.R*Pt,me.N+=pe.B*(Pt>>1),me.W+=pe.B*(Pt>>1),me.F!=null&&(me.J+=me.width*Pt)),Nt<Gt&&(me.O+=me.v,me.N+=me.v>>1,me.W+=me.v>>1,me.F!=null&&(me.J+=me.v),me.ka=Nt-me.j,me.U=me.va-me.v,me.T=Gt-Nt,Ie=me.put(me))}Fe+1!=pe.Ic||Rt||(n(pe.sa,pe.ta-Be,Je,pt+16*pe.R,Be),n(pe.qa,pe.ra-st,Qe,Oe+8*pe.B,st),n(pe.Ha,pe.Ia-st,Bt,qt+8*pe.B,st))}if(!Ie)return xr(xe,6,"Output aborted.")}return 1})(f,d)),d.bc!=null&&d.bc(d),w&=1}return w?(f.cb=0,w):0}function Qn(f,d,w,T,D){D=f[d+w+32*T]+(D>>3),f[d+w+32*T]=-256&D?0>D?0:255:D}function Ja(f,d,w,T,D,M){Qn(f,d,0,w,T+D),Qn(f,d,1,w,T+M),Qn(f,d,2,w,T-M),Qn(f,d,3,w,T-D)}function gn(f){return(20091*f>>16)+f}function zs(f,d,w,T){var D,M=0,U=a(16);for(D=0;4>D;++D){var W=f[d+0]+f[d+8],X=f[d+0]-f[d+8],ee=(35468*f[d+4]>>16)-gn(f[d+12]),de=gn(f[d+4])+(35468*f[d+12]>>16);U[M+0]=W+de,U[M+1]=X+ee,U[M+2]=X-ee,U[M+3]=W-de,M+=4,d++}for(D=M=0;4>D;++D)W=(f=U[M+0]+4)+U[M+8],X=f-U[M+8],ee=(35468*U[M+4]>>16)-gn(U[M+12]),Qn(w,T,0,0,W+(de=gn(U[M+4])+(35468*U[M+12]>>16))),Qn(w,T,1,0,X+ee),Qn(w,T,2,0,X-ee),Qn(w,T,3,0,W-de),M++,T+=32}function Zo(f,d,w,T){var D=f[d+0]+4,M=35468*f[d+4]>>16,U=gn(f[d+4]),W=35468*f[d+1]>>16;Ja(w,T,0,D+U,f=gn(f[d+1]),W),Ja(w,T,1,D+M,f,W),Ja(w,T,2,D-M,f,W),Ja(w,T,3,D-U,f,W)}function Al(f,d,w,T,D){zs(f,d,w,T),D&&zs(f,d+16,w,T+4)}function Qo(f,d,w,T){Oi(f,d+0,w,T,1),Oi(f,d+32,w,T+128,1)}function Nl(f,d,w,T){var D;for(f=f[d+0]+4,D=0;4>D;++D)for(d=0;4>d;++d)Qn(w,T,d,D,f)}function e0(f,d,w,T){f[d+0]&&on(f,d+0,w,T),f[d+16]&&on(f,d+16,w,T+4),f[d+32]&&on(f,d+32,w,T+128),f[d+48]&&on(f,d+48,w,T+128+4)}function Tl(f,d,w,T){var D,M=a(16);for(D=0;4>D;++D){var U=f[d+0+D]+f[d+12+D],W=f[d+4+D]+f[d+8+D],X=f[d+4+D]-f[d+8+D],ee=f[d+0+D]-f[d+12+D];M[0+D]=U+W,M[8+D]=U-W,M[4+D]=ee+X,M[12+D]=ee-X}for(D=0;4>D;++D)U=(f=M[0+4*D]+3)+M[3+4*D],W=M[1+4*D]+M[2+4*D],X=M[1+4*D]-M[2+4*D],ee=f-M[3+4*D],w[T+0]=U+W>>3,w[T+16]=ee+X>>3,w[T+32]=U-W>>3,w[T+48]=ee-X>>3,T+=64}function Ws(f,d,w){var T,D=d-32,M=Ln,U=255-f[D-1];for(T=0;T<w;++T){var W,X=M,ee=U+f[d-1];for(W=0;W<w;++W)f[d+W]=X[ee+f[D+W]];d+=32}}function El(f,d){Ws(f,d,4)}function Ll(f,d){Ws(f,d,8)}function Fl(f,d){Ws(f,d,16)}function Ci(f,d){var w;for(w=0;16>w;++w)n(f,d+32*w,f,d-32,16)}function Za(f,d){var w;for(w=16;0<w;--w)i(f,d,f[d-1],16),d+=32}function Qa(f,d,w){var T;for(T=0;16>T;++T)i(d,w+32*T,f,16)}function t0(f,d){var w,T=16;for(w=0;16>w;++w)T+=f[d-1+32*w]+f[d+w-32];Qa(T>>5,f,d)}function Kr(f,d){var w,T=8;for(w=0;16>w;++w)T+=f[d-1+32*w];Qa(T>>4,f,d)}function Cl(f,d){var w,T=8;for(w=0;16>w;++w)T+=f[d+w-32];Qa(T>>4,f,d)}function r0(f,d){Qa(128,f,d)}function yt(f,d,w){return f+2*d+w+2>>2}function kl(f,d){var w,T=d-32;for(T=new Uint8Array([yt(f[T-1],f[T+0],f[T+1]),yt(f[T+0],f[T+1],f[T+2]),yt(f[T+1],f[T+2],f[T+3]),yt(f[T+2],f[T+3],f[T+4])]),w=0;4>w;++w)n(f,d+32*w,T,0,T.length)}function Pl(f,d){var w=f[d-1],T=f[d-1+32],D=f[d-1+64],M=f[d-1+96];we(f,d+0,16843009*yt(f[d-1-32],w,T)),we(f,d+32,16843009*yt(w,T,D)),we(f,d+64,16843009*yt(T,D,M)),we(f,d+96,16843009*yt(D,M,M))}function xi(f,d){var w,T=4;for(w=0;4>w;++w)T+=f[d+w-32]+f[d-1+32*w];for(T>>=3,w=0;4>w;++w)i(f,d+32*w,T,4)}function n0(f,d){var w=f[d-1+0],T=f[d-1+32],D=f[d-1+64],M=f[d-1-32],U=f[d+0-32],W=f[d+1-32],X=f[d+2-32],ee=f[d+3-32];f[d+0+96]=yt(T,D,f[d-1+96]),f[d+1+96]=f[d+0+64]=yt(w,T,D),f[d+2+96]=f[d+1+64]=f[d+0+32]=yt(M,w,T),f[d+3+96]=f[d+2+64]=f[d+1+32]=f[d+0+0]=yt(U,M,w),f[d+3+64]=f[d+2+32]=f[d+1+0]=yt(W,U,M),f[d+3+32]=f[d+2+0]=yt(X,W,U),f[d+3+0]=yt(ee,X,W)}function i0(f,d){var w=f[d+1-32],T=f[d+2-32],D=f[d+3-32],M=f[d+4-32],U=f[d+5-32],W=f[d+6-32],X=f[d+7-32];f[d+0+0]=yt(f[d+0-32],w,T),f[d+1+0]=f[d+0+32]=yt(w,T,D),f[d+2+0]=f[d+1+32]=f[d+0+64]=yt(T,D,M),f[d+3+0]=f[d+2+32]=f[d+1+64]=f[d+0+96]=yt(D,M,U),f[d+3+32]=f[d+2+64]=f[d+1+96]=yt(M,U,W),f[d+3+64]=f[d+2+96]=yt(U,W,X),f[d+3+96]=yt(W,X,X)}function es(f,d){var w=f[d-1+0],T=f[d-1+32],D=f[d-1+64],M=f[d-1-32],U=f[d+0-32],W=f[d+1-32],X=f[d+2-32],ee=f[d+3-32];f[d+0+0]=f[d+1+64]=M+U+1>>1,f[d+1+0]=f[d+2+64]=U+W+1>>1,f[d+2+0]=f[d+3+64]=W+X+1>>1,f[d+3+0]=X+ee+1>>1,f[d+0+96]=yt(D,T,w),f[d+0+64]=yt(T,w,M),f[d+0+32]=f[d+1+96]=yt(w,M,U),f[d+1+32]=f[d+2+96]=yt(M,U,W),f[d+2+32]=f[d+3+96]=yt(U,W,X),f[d+3+32]=yt(W,X,ee)}function Hs(f,d){var w=f[d+0-32],T=f[d+1-32],D=f[d+2-32],M=f[d+3-32],U=f[d+4-32],W=f[d+5-32],X=f[d+6-32],ee=f[d+7-32];f[d+0+0]=w+T+1>>1,f[d+1+0]=f[d+0+64]=T+D+1>>1,f[d+2+0]=f[d+1+64]=D+M+1>>1,f[d+3+0]=f[d+2+64]=M+U+1>>1,f[d+0+32]=yt(w,T,D),f[d+1+32]=f[d+0+96]=yt(T,D,M),f[d+2+32]=f[d+1+96]=yt(D,M,U),f[d+3+32]=f[d+2+96]=yt(M,U,W),f[d+3+64]=yt(U,W,X),f[d+3+96]=yt(W,X,ee)}function Il(f,d){var w=f[d-1+0],T=f[d-1+32],D=f[d-1+64],M=f[d-1+96];f[d+0+0]=w+T+1>>1,f[d+2+0]=f[d+0+32]=T+D+1>>1,f[d+2+32]=f[d+0+64]=D+M+1>>1,f[d+1+0]=yt(w,T,D),f[d+3+0]=f[d+1+32]=yt(T,D,M),f[d+3+32]=f[d+1+64]=yt(D,M,M),f[d+3+64]=f[d+2+64]=f[d+0+96]=f[d+1+96]=f[d+2+96]=f[d+3+96]=M}function Ol(f,d){var w=f[d-1+0],T=f[d-1+32],D=f[d-1+64],M=f[d-1+96],U=f[d-1-32],W=f[d+0-32],X=f[d+1-32],ee=f[d+2-32];f[d+0+0]=f[d+2+32]=w+U+1>>1,f[d+0+32]=f[d+2+64]=T+w+1>>1,f[d+0+64]=f[d+2+96]=D+T+1>>1,f[d+0+96]=M+D+1>>1,f[d+3+0]=yt(W,X,ee),f[d+2+0]=yt(U,W,X),f[d+1+0]=f[d+3+32]=yt(w,U,W),f[d+1+32]=f[d+3+64]=yt(T,w,U),f[d+1+64]=f[d+3+96]=yt(D,T,w),f[d+1+96]=yt(M,D,T)}function Dl(f,d){var w;for(w=0;8>w;++w)n(f,d+32*w,f,d-32,8)}function qs(f,d){var w;for(w=0;8>w;++w)i(f,d,f[d-1],8),d+=32}function Sa(f,d,w){var T;for(T=0;8>T;++T)i(d,w+32*T,f,8)}function Xi(f,d){var w,T=8;for(w=0;8>w;++w)T+=f[d+w-32]+f[d-1+32*w];Sa(T>>4,f,d)}function Rl(f,d){var w,T=4;for(w=0;8>w;++w)T+=f[d+w-32];Sa(T>>3,f,d)}function Aa(f,d){var w,T=4;for(w=0;8>w;++w)T+=f[d-1+32*w];Sa(T>>3,f,d)}function Gs(f,d){Sa(128,f,d)}function ts(f,d,w){var T=f[d-w],D=f[d+0],M=3*(D-T)+Wl[1020+f[d-2*w]-f[d+w]],U=x0[112+(M+4>>3)];f[d-w]=Ln[255+T+x0[112+(M+3>>3)]],f[d+0]=Ln[255+D-U]}function a0(f,d,w,T){var D=f[d+0],M=f[d+w];return qn[255+f[d-2*w]-f[d-w]]>T||qn[255+M-D]>T}function s0(f,d,w,T){return 4*qn[255+f[d-w]-f[d+0]]+qn[255+f[d-2*w]-f[d+w]]<=T}function o0(f,d,w,T,D){var M=f[d-3*w],U=f[d-2*w],W=f[d-w],X=f[d+0],ee=f[d+w],de=f[d+2*w],Se=f[d+3*w];return 4*qn[255+W-X]+qn[255+U-ee]>T?0:qn[255+f[d-4*w]-M]<=D&&qn[255+M-U]<=D&&qn[255+U-W]<=D&&qn[255+Se-de]<=D&&qn[255+de-ee]<=D&&qn[255+ee-X]<=D}function l0(f,d,w,T){var D=2*T+1;for(T=0;16>T;++T)s0(f,d+T,w,D)&&ts(f,d+T,w)}function vi(f,d,w,T){var D=2*T+1;for(T=0;16>T;++T)s0(f,d+T*w,1,D)&&ts(f,d+T*w,1)}function ki(f,d,w,T){var D;for(D=3;0<D;--D)l0(f,d+=4*w,w,T)}function jl(f,d,w,T){var D;for(D=3;0<D;--D)vi(f,d+=4,w,T)}function Yi(f,d,w,T,D,M,U,W){for(M=2*M+1;0<D--;){if(o0(f,d,w,M,U))if(a0(f,d,w,W))ts(f,d,w);else{var X=f,ee=d,de=w,Se=X[ee-2*de],Ae=X[ee-de],xe=X[ee+0],De=X[ee+de],Fe=X[ee+2*de],pe=27*(Ie=Wl[1020+3*(xe-Ae)+Wl[1020+Se-De]])+63>>7,me=18*Ie+63>>7,Ie=9*Ie+63>>7;X[ee-3*de]=Ln[255+X[ee-3*de]+Ie],X[ee-2*de]=Ln[255+Se+me],X[ee-de]=Ln[255+Ae+pe],X[ee+0]=Ln[255+xe-pe],X[ee+de]=Ln[255+De-me],X[ee+2*de]=Ln[255+Fe-Ie]}d+=T}}function ei(f,d,w,T,D,M,U,W){for(M=2*M+1;0<D--;){if(o0(f,d,w,M,U))if(a0(f,d,w,W))ts(f,d,w);else{var X=f,ee=d,de=w,Se=X[ee-de],Ae=X[ee+0],xe=X[ee+de],De=x0[112+((Fe=3*(Ae-Se))+4>>3)],Fe=x0[112+(Fe+3>>3)],pe=De+1>>1;X[ee-2*de]=Ln[255+X[ee-2*de]+pe],X[ee-de]=Ln[255+Se+Fe],X[ee+0]=Ln[255+Ae-De],X[ee+de]=Ln[255+xe-pe]}d+=T}}function Vs(f,d,w,T,D,M){Yi(f,d,w,1,16,T,D,M)}function Na(f,d,w,T,D,M){Yi(f,d,1,w,16,T,D,M)}function Ml(f,d,w,T,D,M){var U;for(U=3;0<U;--U)ei(f,d+=4*w,w,1,16,T,D,M)}function rs(f,d,w,T,D,M){var U;for(U=3;0<U;--U)ei(f,d+=4,1,w,16,T,D,M)}function Bl(f,d,w,T,D,M,U,W){Yi(f,d,D,1,8,M,U,W),Yi(w,T,D,1,8,M,U,W)}function Xs(f,d,w,T,D,M,U,W){Yi(f,d,1,D,8,M,U,W),Yi(w,T,1,D,8,M,U,W)}function Ys(f,d,w,T,D,M,U,W){ei(f,d+4*D,D,1,8,M,U,W),ei(w,T+4*D,D,1,8,M,U,W)}function f0(f,d,w,T,D,M,U,W){ei(f,d+4,1,D,8,M,U,W),ei(w,T+4,1,D,8,M,U,W)}function ns(){this.ba=new An,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Qt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function $s(){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 Ks(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function c0(){this.ua=0,this.Wa=new se,this.vb=new se,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Y,this.yc=new N}function Ul(){this.xb=this.a=0,this.l=new mi,this.ca=new An,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new b,this.Pb=0,this.wd=new b,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new c0,this.ab=0,this.gc=s(4,Ks),this.Oc=0}function is(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new mi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Ta(f,d,w,T,D,M,U){for(f=f==null?0:f[d+0],d=0;d<U;++d)D[M+d]=f+w[T+d]&255,f=D[M+d]}function Js(f,d,w,T,D,M,U){var W;if(f==null)Ta(null,null,w,T,D,M,U);else for(W=0;W<U;++W)D[M+W]=f[d+W]+w[T+W]&255}function $i(f,d,w,T,D,M,U){if(f==null)Ta(null,null,w,T,D,M,U);else{var W,X=f[d+0],ee=X,de=X;for(W=0;W<U;++W)ee=de+(X=f[d+W])-ee,de=w[T+W]+(-256&ee?0>ee?0:255:ee)&255,ee=X,D[M+W]=de}}function Zs(f,d,w,T){var D=d.width,M=d.o;if(r(f!=null&&d!=null),0>w||0>=T||w+T>M)return null;if(!f.Cc){if(f.ga==null){var U;if(f.ga=new is,(U=f.ga==null)||(U=d.width*d.o,r(f.Gb.length==0),f.Gb=a(U),f.Uc=0,f.Gb==null?U=0:(f.mb=f.Gb,f.nb=f.Uc,f.rc=null,U=1),U=!U),!U){U=f.ga;var W=f.Fa,X=f.P,ee=f.qc,de=f.mb,Se=f.nb,Ae=X+1,xe=ee-1,De=U.l;if(r(W!=null&&de!=null&&d!=null),ta[0]=null,ta[1]=Ta,ta[2]=Js,ta[3]=$i,U.ca=de,U.tb=Se,U.c=d.width,U.i=d.height,r(0<U.c&&0<U.i),1>=ee)d=0;else if(U.$a=W[X+0]>>0&3,U.Z=W[X+0]>>2&3,U.Lc=W[X+0]>>4&3,X=W[X+0]>>6&3,0>U.$a||1<U.$a||4<=U.Z||1<U.Lc||X)d=0;else if(De.put=Mn,De.ac=kr,De.bc=Bn,De.ma=U,De.width=d.width,De.height=d.height,De.Da=d.Da,De.v=d.v,De.va=d.va,De.j=d.j,De.o=d.o,U.$a)e:{r(U.$a==1),d=Le();t:for(;;){if(d==null){d=0;break e}if(r(U!=null),U.mc=d,d.c=U.c,d.i=U.i,d.l=U.l,d.l.ma=U,d.l.width=U.c,d.l.height=U.i,d.a=0,oe(d.m,W,Ae,xe),!be(U.c,U.i,1,d,null)||(d.ab==1&&d.gc[0].hc==3&&K(d.s)?(U.ic=1,W=d.c*d.i,d.Ta=null,d.Ua=0,d.V=a(W),d.Ba=0,d.V==null?(d.a=1,d=0):d=1):(U.ic=0,d=Ne(d,U.c)),!d))break t;d=1;break e}U.mc=null,d=0}else d=xe>=U.c*U.i;U=!d}if(U)return null;f.ga.Lc!=1?f.Ga=0:T=M-w}r(f.ga!=null),r(w+T<=M);e:{if(d=(W=f.ga).c,M=W.l.o,W.$a==0){if(Ae=f.rc,xe=f.Vc,De=f.Fa,X=f.P+1+w*d,ee=f.mb,de=f.nb+w*d,r(X<=f.P+f.qc),W.Z!=0)for(r(ta[W.Z]!=null),U=0;U<T;++U)ta[W.Z](Ae,xe,De,X,ee,de,d),Ae=ee,xe=de,de+=d,X+=d;else for(U=0;U<T;++U)n(ee,de,De,X,d),Ae=ee,xe=de,de+=d,X+=d;f.rc=Ae,f.Vc=xe}else{if(r(W.mc!=null),d=w+T,r((U=W.mc)!=null),r(d<=U.i),U.C>=d)d=1;else if(W.ic||ve(),W.ic){W=U.V,Ae=U.Ba,xe=U.c;var Fe=U.i,pe=(De=1,X=U.$/xe,ee=U.$%xe,de=U.m,Se=U.s,U.$),me=xe*Fe,Ie=xe*d,Be=Se.wc,Oe=pe<Ie?cr(Se,ee,X):null;r(pe<=me),r(d<=Fe),r(K(Se));t:for(;;){for(;!de.h&&pe<Ie;){if(ee&Be||(Oe=cr(Se,ee,X)),r(Oe!=null),q(de),256>(Fe=$r(Oe.G[0],Oe.H[0],de)))W[Ae+pe]=Fe,++pe,++ee>=xe&&(ee=0,++X<=d&&!(X%16)&&te(U,X));else{if(!(280>Fe)){De=0;break t}Fe=Nn(Fe-256,de);var st,Je=$r(Oe.G[4],Oe.H[4],de);if(q(de),!(pe>=(Je=pn(xe,Je=Nn(Je,de)))&&me-pe>=Fe)){De=0;break t}for(st=0;st<Fe;++st)W[Ae+pe+st]=W[Ae+pe+st-Je];for(pe+=Fe,ee+=Fe;ee>=xe;)ee-=xe,++X<=d&&!(X%16)&&te(U,X);pe<Ie&&ee&Be&&(Oe=cr(Se,ee,X))}r(de.h==k(de))}te(U,X>d?d:X);break t}!De||de.h&&pe<me?(De=0,U.a=de.h?5:3):U.$=pe,d=De}else d=ie(U,U.V,U.Ba,U.c,U.i,d,Te);if(!d){T=0;break e}}w+T>=M&&(f.Cc=1),T=1}if(!T)return null;if(f.Cc&&((T=f.ga)!=null&&(T.mc=null),f.ga=null,0<f.Ga))return alert("todo:WebPDequantizeLevels"),null}return f.nb+w*D}function x(f,d,w,T,D,M){for(;0<D--;){var U,W=f,X=d+(w?1:0),ee=f,de=d+(w?0:3);for(U=0;U<T;++U){var Se=ee[de+4*U];Se!=255&&(Se*=32897,W[X+4*U+0]=W[X+4*U+0]*Se>>23,W[X+4*U+1]=W[X+4*U+1]*Se>>23,W[X+4*U+2]=W[X+4*U+2]*Se>>23)}d+=M}}function R(f,d,w,T,D){for(;0<T--;){var M;for(M=0;M<w;++M){var U=f[d+2*M+0],W=15&(ee=f[d+2*M+1]),X=4369*W,ee=(240&ee|ee>>4)*X>>16;f[d+2*M+0]=(240&U|U>>4)*X>>16&240|(15&U|U<<4)*X>>16>>4&15,f[d+2*M+1]=240&ee|W}d+=D}}function ae(f,d,w,T,D,M,U,W){var X,ee,de=255;for(ee=0;ee<D;++ee){for(X=0;X<T;++X){var Se=f[d+X];M[U+4*X]=Se,de&=Se}d+=w,U+=W}return de!=255}function he(f,d,w,T,D){var M;for(M=0;M<D;++M)w[T+M]=f[d+M]>>8}function ve(){Hn=x,nr=R,ir=ae,wr=he}function Ce(f,d,w){I[f]=function(T,D,M,U,W,X,ee,de,Se,Ae,xe,De,Fe,pe,me,Ie,Be){var Oe,st=Be-1>>1,Je=W[X+0]|ee[de+0]<<16,pt=Se[Ae+0]|xe[De+0]<<16;r(T!=null);var Qe=3*Je+pt+131074>>2;for(d(T[D+0],255&Qe,Qe>>16,Fe,pe),M!=null&&(Qe=3*pt+Je+131074>>2,d(M[U+0],255&Qe,Qe>>16,me,Ie)),Oe=1;Oe<=st;++Oe){var Bt=W[X+Oe]|ee[de+Oe]<<16,qt=Se[Ae+Oe]|xe[De+Oe]<<16,Rt=Je+Bt+pt+qt+524296,Pt=Rt+2*(Bt+pt)>>3;Qe=Pt+Je>>1,Je=(Rt=Rt+2*(Je+qt)>>3)+Bt>>1,d(T[D+2*Oe-1],255&Qe,Qe>>16,Fe,pe+(2*Oe-1)*w),d(T[D+2*Oe-0],255&Je,Je>>16,Fe,pe+(2*Oe-0)*w),M!=null&&(Qe=Rt+pt>>1,Je=Pt+qt>>1,d(M[U+2*Oe-1],255&Qe,Qe>>16,me,Ie+(2*Oe-1)*w),d(M[U+2*Oe+0],255&Je,Je>>16,me,Ie+(2*Oe+0)*w)),Je=Bt,pt=qt}1&Be||(Qe=3*Je+pt+131074>>2,d(T[D+Be-1],255&Qe,Qe>>16,Fe,pe+(Be-1)*w),M!=null&&(Qe=3*pt+Je+131074>>2,d(M[U+Be-1],255&Qe,Qe>>16,me,Ie+(Be-1)*w)))}}function ze(){Gn[v0]=Sd,Gn[w0]=vc,Gn[dc]=Ad,Gn[y0]=wc,Gn[b0]=yc,Gn[Hl]=bc,Gn[pc]=Nd,Gn[ql]=vc,Gn[Gl]=wc,Gn[_0]=yc,Gn[Vl]=bc}function at(f){return f&-16384?0>f?0:255:f>>Td}function ut(f,d){return at((19077*f>>8)+(26149*d>>8)-14234)}function St(f,d,w){return at((19077*f>>8)-(6419*d>>8)-(13320*w>>8)+8708)}function bt(f,d){return at((19077*f>>8)+(33050*d>>8)-17685)}function Ot(f,d,w,T,D){T[D+0]=ut(f,w),T[D+1]=St(f,d,w),T[D+2]=bt(f,d)}function fr(f,d,w,T,D){T[D+0]=bt(f,d),T[D+1]=St(f,d,w),T[D+2]=ut(f,w)}function ur(f,d,w,T,D){var M=St(f,d,w);d=M<<3&224|bt(f,d)>>3,T[D+0]=248&ut(f,w)|M>>5,T[D+1]=d}function Ar(f,d,w,T,D){var M=240&bt(f,d)|15;T[D+0]=240&ut(f,w)|St(f,d,w)>>4,T[D+1]=M}function Jr(f,d,w,T,D){T[D+0]=255,Ot(f,d,w,T,D+1)}function Dr(f,d,w,T,D){fr(f,d,w,T,D),T[D+3]=255}function ti(f,d,w,T,D){Ot(f,d,w,T,D),T[D+3]=255}function En(f,d){return 0>f?0:f>d?d:f}function wi(f,d,w){I[f]=function(T,D,M,U,W,X,ee,de,Se){for(var Ae=de+(-2&Se)*w;de!=Ae;)d(T[D+0],M[U+0],W[X+0],ee,de),d(T[D+1],M[U+0],W[X+0],ee,de+w),D+=2,++U,++X,de+=2*w;1&Se&&d(T[D+0],M[U+0],W[X+0],ee,de)}}function u0(f,d,w){return w==0?f==0?d==0?6:5:d==0?4:0:w}function Qs(f,d,w,T,D){switch(f>>>30){case 3:Oi(d,w,T,D,0);break;case 2:vr(d,w,T,D);break;case 1:on(d,w,T,D)}}function eo(f,d){var w,T,D=d.M,M=d.Nb,U=f.oc,W=f.pc+40,X=f.oc,ee=f.pc+584,de=f.oc,Se=f.pc+600;for(w=0;16>w;++w)U[W+32*w-1]=129;for(w=0;8>w;++w)X[ee+32*w-1]=129,de[Se+32*w-1]=129;for(0<D?U[W-1-32]=X[ee-1-32]=de[Se-1-32]=129:(i(U,W-32-1,127,21),i(X,ee-32-1,127,9),i(de,Se-32-1,127,9)),T=0;T<f.za;++T){var Ae=d.ya[d.aa+T];if(0<T){for(w=-1;16>w;++w)n(U,W+32*w-4,U,W+32*w+12,4);for(w=-1;8>w;++w)n(X,ee+32*w-4,X,ee+32*w+4,4),n(de,Se+32*w-4,de,Se+32*w+4,4)}var xe=f.Gd,De=f.Hd+T,Fe=Ae.ad,pe=Ae.Hc;if(0<D&&(n(U,W-32,xe[De].y,0,16),n(X,ee-32,xe[De].f,0,8),n(de,Se-32,xe[De].ea,0,8)),Ae.Za){var me=U,Ie=W-32+16;for(0<D&&(T>=f.za-1?i(me,Ie,xe[De].y[15],4):n(me,Ie,xe[De+1].y,0,4)),w=0;4>w;w++)me[Ie+128+w]=me[Ie+256+w]=me[Ie+384+w]=me[Ie+0+w];for(w=0;16>w;++w,pe<<=2)me=U,Ie=W+Sc[w],ri[Ae.Ob[w]](me,Ie),Qs(pe,Fe,16*+w,me,Ie)}else if(me=u0(T,D,Ae.Ob[0]),ea[me](U,W),pe!=0)for(w=0;16>w;++w,pe<<=2)Qs(pe,Fe,16*+w,U,W+Sc[w]);for(w=Ae.Gc,me=u0(T,D,Ae.Dd),Ri[me](X,ee),Ri[me](de,Se),pe=Fe,me=X,Ie=ee,255&(Ae=w>>0)&&(170&Ae?ao(pe,256,me,Ie):zn(pe,256,me,Ie)),Ae=de,pe=Se,255&(w>>=8)&&(170&w?ao(Fe,320,Ae,pe):zn(Fe,320,Ae,pe)),D<f.Ub-1&&(n(xe[De].y,0,U,W+480,16),n(xe[De].f,0,X,ee+224,8),n(xe[De].ea,0,de,Se+224,8)),w=8*M*f.B,xe=f.sa,De=f.ta+16*T+16*M*f.R,Fe=f.qa,Ae=f.ra+8*T+w,pe=f.Ha,me=f.Ia+8*T+w,w=0;16>w;++w)n(xe,De+w*f.R,U,W+32*w,16);for(w=0;8>w;++w)n(Fe,Ae+w*f.B,X,ee+32*w,8),n(pe,me+w*f.B,de,Se+32*w,8)}}function as(f,d,w,T,D,M,U,W,X){var ee=[0],de=[0],Se=0,Ae=X!=null?X.kd:0,xe=X??new $s;if(f==null||12>w)return 7;xe.data=f,xe.w=d,xe.ha=w,d=[d],w=[w],xe.gb=[xe.gb];e:{var De=d,Fe=w,pe=xe.gb;if(r(f!=null),r(Fe!=null),r(pe!=null),pe[0]=0,12<=Fe[0]&&!t(f,De[0],"RIFF")){if(t(f,De[0]+8,"WEBP")){pe=3;break e}var me=He(f,De[0]+4);if(12>me||4294967286<me){pe=3;break e}if(Ae&&me>Fe[0]-8){pe=7;break e}pe[0]=me,De[0]+=12,Fe[0]-=12}pe=0}if(pe!=0)return pe;for(me=0<xe.gb[0],w=w[0];;){e:{var Ie=f;Fe=d,pe=w;var Be=ee,Oe=de,st=De=[0];if((Qe=Se=[Se])[0]=0,8>pe[0])pe=7;else{if(!t(Ie,Fe[0],"VP8X")){if(He(Ie,Fe[0]+4)!=10){pe=3;break e}if(18>pe[0]){pe=7;break e}var Je=He(Ie,Fe[0]+8),pt=1+Re(Ie,Fe[0]+12);if(2147483648<=pt*(Ie=1+Re(Ie,Fe[0]+15))){pe=3;break e}st!=null&&(st[0]=Je),Be!=null&&(Be[0]=pt),Oe!=null&&(Oe[0]=Ie),Fe[0]+=18,pe[0]-=18,Qe[0]=1}pe=0}}if(Se=Se[0],De=De[0],pe!=0)return pe;if(Fe=!!(2&De),!me&&Se)return 3;if(M!=null&&(M[0]=!!(16&De)),U!=null&&(U[0]=Fe),W!=null&&(W[0]=0),U=ee[0],De=de[0],Se&&Fe&&X==null){pe=0;break}if(4>w){pe=7;break}if(me&&Se||!me&&!Se&&!t(f,d[0],"ALPH")){w=[w],xe.na=[xe.na],xe.P=[xe.P],xe.Sa=[xe.Sa];e:{Je=f,pe=d,me=w;var Qe=xe.gb;Be=xe.na,Oe=xe.P,st=xe.Sa,pt=22,r(Je!=null),r(me!=null),Ie=pe[0];var Bt=me[0];for(r(Be!=null),r(st!=null),Be[0]=null,Oe[0]=null,st[0]=0;;){if(pe[0]=Ie,me[0]=Bt,8>Bt){pe=7;break e}var qt=He(Je,Ie+4);if(4294967286<qt){pe=3;break e}var Rt=8+qt+1&-2;if(pt+=Rt,0<Qe&&pt>Qe){pe=3;break e}if(!t(Je,Ie,"VP8 ")||!t(Je,Ie,"VP8L")){pe=0;break e}if(Bt[0]<Rt){pe=7;break e}t(Je,Ie,"ALPH")||(Be[0]=Je,Oe[0]=Ie+8,st[0]=qt),Ie+=Rt,Bt-=Rt}}if(w=w[0],xe.na=xe.na[0],xe.P=xe.P[0],xe.Sa=xe.Sa[0],pe!=0)break}w=[w],xe.Ja=[xe.Ja],xe.xa=[xe.xa];e:if(Qe=f,pe=d,me=w,Be=xe.gb[0],Oe=xe.Ja,st=xe.xa,Je=pe[0],Ie=!t(Qe,Je,"VP8 "),pt=!t(Qe,Je,"VP8L"),r(Qe!=null),r(me!=null),r(Oe!=null),r(st!=null),8>me[0])pe=7;else{if(Ie||pt){if(Qe=He(Qe,Je+4),12<=Be&&Qe>Be-12){pe=3;break e}if(Ae&&Qe>me[0]-8){pe=7;break e}Oe[0]=Qe,pe[0]+=8,me[0]-=8,st[0]=pt}else st[0]=5<=me[0]&&Qe[Je+0]==47&&!(Qe[Je+4]>>5),Oe[0]=me[0];pe=0}if(w=w[0],xe.Ja=xe.Ja[0],xe.xa=xe.xa[0],d=d[0],pe!=0)break;if(4294967286<xe.Ja)return 3;if(W==null||Fe||(W[0]=xe.xa?2:1),U=[U],De=[De],xe.xa){if(5>w){pe=7;break}W=U,Ae=De,Fe=M,f==null||5>w?f=0:5<=w&&f[d+0]==47&&!(f[d+4]>>5)?(me=[0],Qe=[0],Be=[0],oe(Oe=new b,f,d,w),dt(Oe,me,Qe,Be)?(W!=null&&(W[0]=me[0]),Ae!=null&&(Ae[0]=Qe[0]),Fe!=null&&(Fe[0]=Be[0]),f=1):f=0):f=0}else{if(10>w){pe=7;break}W=De,f==null||10>w||!$o(f,d+3,w-3)?f=0:(Ae=f[d+0]|f[d+1]<<8|f[d+2]<<16,Fe=16383&(f[d+7]<<8|f[d+6]),f=16383&(f[d+9]<<8|f[d+8]),1&Ae||3<(Ae>>1&7)||!(Ae>>4&1)||Ae>>5>=xe.Ja||!Fe||!f?f=0:(U&&(U[0]=Fe),W&&(W[0]=f),f=1))}if(!f||(U=U[0],De=De[0],Se&&(ee[0]!=U||de[0]!=De)))return 3;X!=null&&(X[0]=xe,X.offset=d-X.w,r(4294967286>d-X.w),r(X.offset==X.ha-w));break}return pe==0||pe==7&&Se&&X==null?(M!=null&&(M[0]|=xe.na!=null&&0<xe.na.length),T!=null&&(T[0]=U),D!=null&&(D[0]=De),0):pe}function to(f,d,w){var T=d.width,D=d.height,M=0,U=0,W=T,X=D;if(d.Da=f!=null&&0<f.Da,d.Da&&(W=f.cd,X=f.bd,M=f.v,U=f.j,11>w||(M&=-2,U&=-2),0>M||0>U||0>=W||0>=X||M+W>T||U+X>D))return 0;if(d.v=M,d.j=U,d.va=M+W,d.o=U+X,d.U=W,d.T=X,d.da=f!=null&&0<f.da,d.da){if(!je(W,X,w=[f.ib],M=[f.hb]))return 0;d.ib=w[0],d.hb=M[0]}return d.ob=f!=null&&f.ob,d.Kb=f==null||!f.Sd,d.da&&(d.ob=d.ib<3*T/4&&d.hb<3*D/4,d.Kb=0),1}function ro(f){if(f==null)return 2;if(11>f.S){var d=f.f.RGBA;d.fb+=(f.height-1)*d.A,d.A=-d.A}else d=f.f.kb,f=f.height,d.O+=(f-1)*d.fa,d.fa=-d.fa,d.N+=(f-1>>1)*d.Ab,d.Ab=-d.Ab,d.W+=(f-1>>1)*d.Db,d.Db=-d.Db,d.F!=null&&(d.J+=(f-1)*d.lb,d.lb=-d.lb);return 0}function ss(f,d,w,T){if(T==null||0>=f||0>=d)return 2;if(w!=null){if(w.Da){var D=w.cd,M=w.bd,U=-2&w.v,W=-2&w.j;if(0>U||0>W||0>=D||0>=M||U+D>f||W+M>d)return 2;f=D,d=M}if(w.da){if(!je(f,d,D=[w.ib],M=[w.hb]))return 2;f=D[0],d=M[0]}}T.width=f,T.height=d;e:{var X=T.width,ee=T.height;if(f=T.S,0>=X||0>=ee||!(f>=v0&&13>f))f=2;else{if(0>=T.Rd&&T.sd==null){U=M=D=d=0;var de=(W=X*Ac[f])*ee;if(11>f||(M=(ee+1)/2*(d=(X+1)/2),f==12&&(U=(D=X)*ee)),(ee=a(de+2*M+U))==null){f=1;break e}T.sd=ee,11>f?((X=T.f.RGBA).eb=ee,X.fb=0,X.A=W,X.size=de):((X=T.f.kb).y=ee,X.O=0,X.fa=W,X.Fd=de,X.f=ee,X.N=0+de,X.Ab=d,X.Cd=M,X.ea=ee,X.W=0+de+M,X.Db=d,X.Ed=M,f==12&&(X.F=ee,X.J=0+de+2*M),X.Tc=U,X.lb=D)}if(d=1,D=T.S,M=T.width,U=T.height,D>=v0&&13>D)if(11>D)f=T.f.RGBA,d&=(W=Math.abs(f.A))*(U-1)+M<=f.size,d&=W>=M*Ac[D],d&=f.eb!=null;else{f=T.f.kb,W=(M+1)/2,de=(U+1)/2,X=Math.abs(f.fa),ee=Math.abs(f.Ab);var Se=Math.abs(f.Db),Ae=Math.abs(f.lb),xe=Ae*(U-1)+M;d&=X*(U-1)+M<=f.Fd,d&=ee*(de-1)+W<=f.Cd,d=(d&=Se*(de-1)+W<=f.Ed)&X>=M&ee>=W&Se>=W,d&=f.y!=null,d&=f.f!=null,d&=f.ea!=null,D==12&&(d&=Ae>=M,d&=xe<=f.Tc,d&=f.F!=null)}else d=0;f=d?0:2}}return f!=0||w!=null&&w.fd&&(f=ro(T)),f}var zr=64,os=[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],ls=24,fs=32,no=8,mn=[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];Ge("Predictor0","PredictorAdd0"),I.Predictor0=function(){return 4278190080},I.Predictor1=function(f){return f},I.Predictor2=function(f,d,w){return d[w+0]},I.Predictor3=function(f,d,w){return d[w+1]},I.Predictor4=function(f,d,w){return d[w-1]},I.Predictor5=function(f,d,w){return Ze(Ze(f,d[w+1]),d[w+0])},I.Predictor6=function(f,d,w){return Ze(f,d[w-1])},I.Predictor7=function(f,d,w){return Ze(f,d[w+0])},I.Predictor8=function(f,d,w){return Ze(d[w-1],d[w+0])},I.Predictor9=function(f,d,w){return Ze(d[w+0],d[w+1])},I.Predictor10=function(f,d,w){return Ze(Ze(f,d[w-1]),Ze(d[w+0],d[w+1]))},I.Predictor11=function(f,d,w){var T=d[w+0];return 0>=vt(T>>24&255,f>>24&255,(d=d[w-1])>>24&255)+vt(T>>16&255,f>>16&255,d>>16&255)+vt(T>>8&255,f>>8&255,d>>8&255)+vt(255&T,255&f,255&d)?T:f},I.Predictor12=function(f,d,w){var T=d[w+0];return(lt((f>>24&255)+(T>>24&255)-((d=d[w-1])>>24&255))<<24|lt((f>>16&255)+(T>>16&255)-(d>>16&255))<<16|lt((f>>8&255)+(T>>8&255)-(d>>8&255))<<8|lt((255&f)+(255&T)-(255&d)))>>>0},I.Predictor13=function(f,d,w){var T=d[w-1];return(ct((f=Ze(f,d[w+0]))>>24&255,T>>24&255)<<24|ct(f>>16&255,T>>16&255)<<16|ct(f>>8&255,T>>8&255)<<8|ct(f>>0&255,T>>0&255))>>>0};var zl=I.PredictorAdd0;I.PredictorAdd1=At,Ge("Predictor2","PredictorAdd2"),Ge("Predictor3","PredictorAdd3"),Ge("Predictor4","PredictorAdd4"),Ge("Predictor5","PredictorAdd5"),Ge("Predictor6","PredictorAdd6"),Ge("Predictor7","PredictorAdd7"),Ge("Predictor8","PredictorAdd8"),Ge("Predictor9","PredictorAdd9"),Ge("Predictor10","PredictorAdd10"),Ge("Predictor11","PredictorAdd11"),Ge("Predictor12","PredictorAdd12"),Ge("Predictor13","PredictorAdd13");var io=I.PredictorAdd2;Et("ColorIndexInverseTransform","MapARGB","32b",(function(f){return f>>8&255}),(function(f){return f})),Et("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(f){return f}),(function(f){return f>>8&255}));var h0,Un=I.ColorIndexInverseTransform,cs=I.MapARGB,d0=I.VP8LColorIndexInverseTransformAlpha,p0=I.MapAlpha,Ki=I.VP8LPredictorsAdd=[];Ki.length=16,(I.VP8LPredictors=[]).length=16,(I.VP8LPredictorsAdd_C=[]).length=16,(I.VP8LPredictors_C=[]).length=16;var Ea,xn,sn,Ji,Pi,Ii,us,Oi,vr,ao,on,zn,hs,g0,so,La,Fa,Zi,Ca,ds,ka,Qi,oo,Wn,Hn,nr,ir,wr,Pr=a(511),Di=a(2041),lo=a(225),ps=a(767),m0=0,Wl=Di,x0=lo,Ln=ps,qn=Pr,v0=0,w0=1,dc=2,y0=3,b0=4,Hl=5,pc=6,ql=7,Gl=8,_0=9,Vl=10,fd=[2,3,7],cd=[3,3,11],gc=[280,256,256,256,40],ud=[0,1,1,1,0],hd=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],dd=[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],pd=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],gd=8,Xl=[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],Yl=[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],fo=null,md=[[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]],xd=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],mc=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],vd=[[[[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]]]],wd=[[[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]]],yd=[[[[255,255,255,255,255,255,255,255,255,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]]]],bd=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ea=[],ri=[],Ri=[],_d=1,xc=2,ta=[],Gn=[];Ce("UpsampleRgbLinePair",Ot,3),Ce("UpsampleBgrLinePair",fr,3),Ce("UpsampleRgbaLinePair",ti,4),Ce("UpsampleBgraLinePair",Dr,4),Ce("UpsampleArgbLinePair",Jr,4),Ce("UpsampleRgba4444LinePair",Ar,2),Ce("UpsampleRgb565LinePair",ur,2);var Sd=I.UpsampleRgbLinePair,Ad=I.UpsampleBgrLinePair,vc=I.UpsampleRgbaLinePair,wc=I.UpsampleBgraLinePair,yc=I.UpsampleArgbLinePair,bc=I.UpsampleRgba4444LinePair,Nd=I.UpsampleRgb565LinePair,S0=16,A0=1<<S0-1,co=-227,$l=482,Td=6,_c=0,Ed=a(256),Ld=a(256),Fd=a(256),Cd=a(256),kd=a($l-co),Pd=a($l-co);wi("YuvToRgbRow",Ot,3),wi("YuvToBgrRow",fr,3),wi("YuvToRgbaRow",ti,4),wi("YuvToBgraRow",Dr,4),wi("YuvToArgbRow",Jr,4),wi("YuvToRgba4444Row",Ar,2),wi("YuvToRgb565Row",ur,2);var Sc=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],N0=[0,2,8],Id=[8,7,6,4,4,2,2,2,1,1,1,1],Od=1;this.WebPDecodeRGBA=function(f,d,w,T,D){var M=w0,U=new ns,W=new An;U.ba=W,W.S=M,W.width=[W.width],W.height=[W.height];var X=W.width,ee=W.height,de=new Kn;if(de==null||f==null)var Se=2;else r(de!=null),Se=as(f,d,w,de.width,de.height,de.Pd,de.Qd,de.format,null);if(Se!=0?X=0:(X!=null&&(X[0]=de.width[0]),ee!=null&&(ee[0]=de.height[0]),X=1),X){W.width=W.width[0],W.height=W.height[0],T!=null&&(T[0]=W.width),D!=null&&(D[0]=W.height);e:{if(T=new mi,(D=new $s).data=f,D.w=d,D.ha=w,D.kd=1,d=[0],r(D!=null),((f=as(D.data,D.w,D.ha,null,null,null,d,null,D))==0||f==7)&&d[0]&&(f=4),(d=f)==0){if(r(U!=null),T.data=D.data,T.w=D.w+D.offset,T.ha=D.ha-D.offset,T.put=Mn,T.ac=kr,T.bc=Bn,T.ma=U,D.xa){if((f=Le())==null){U=1;break e}if((function(Ae,xe){var De=[0],Fe=[0],pe=[0];t:for(;;){if(Ae==null)return 0;if(xe==null)return Ae.a=2,0;if(Ae.l=xe,Ae.a=0,oe(Ae.m,xe.data,xe.w,xe.ha),!dt(Ae.m,De,Fe,pe)){Ae.a=3;break t}if(Ae.xb=xc,xe.width=De[0],xe.height=Fe[0],!be(De[0],Fe[0],1,Ae,null))break t;return 1}return r(Ae.a!=0),0})(f,T)){if(T=(d=ss(T.width,T.height,U.Oa,U.ba))==0){t:{T=f;r:for(;;){if(T==null){T=0;break t}if(r(T.s.yc!=null),r(T.s.Ya!=null),r(0<T.s.Wb),r((w=T.l)!=null),r((D=w.ma)!=null),T.xb!=0){if(T.ca=D.ba,T.tb=D.tb,r(T.ca!=null),!to(D.Oa,w,y0)){T.a=2;break r}if(!Ne(T,w.width)||w.da)break r;if((w.da||Dt(T.ca.S))&&ve(),11>T.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),T.ca.f.kb.F!=null&&ve()),T.Pb&&0<T.s.ua&&T.s.vb.X==null&&!$e(T.s.vb,T.s.Wa.Xa)){T.a=1;break r}T.xb=0}if(!ie(T,T.V,T.Ba,T.c,T.i,w.o,re))break r;D.Dc=T.Ma,T=1;break t}r(T.a!=0),T=0}T=!T}T&&(d=f.a)}else d=f.a}else{if((f=new Tn)==null){U=1;break e}if(f.Fa=D.na,f.P=D.P,f.qc=D.Sa,Ko(f,T)){if((d=ss(T.width,T.height,U.Oa,U.ba))==0){if(f.Aa=0,w=U.Oa,r((D=f)!=null),w!=null){if(0<(X=0>(X=w.Md)?0:100<X?255:255*X/100)){for(ee=de=0;4>ee;++ee)12>(Se=D.pb[ee]).lc&&(Se.ia=X*Id[0>Se.lc?0:Se.lc]>>3),de|=Se.ia;de&&(alert("todo:VP8InitRandom"),D.ia=1)}D.Ga=w.Id,100<D.Ga?D.Ga=100:0>D.Ga&&(D.Ga=0)}Sl(f,T)||(d=f.a)}}else d=f.a}d==0&&U.Oa!=null&&U.Oa.fd&&(d=ro(U.ba))}U=d}M=U!=0?null:11>M?W.f.RGBA.eb:W.f.kb.y}else M=null;return M};var Ac=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(I,j){for(var V="",E=0;E<4;E++)V+=String.fromCharCode(I[j++]);return V}function h(I,j){return(I[j+0]<<0|I[j+1]<<8|I[j+2]<<16)>>>0}function p(I,j){return(I[j+0]<<0|I[j+1]<<8|I[j+2]<<16|I[j+3]<<24)>>>0}new l;var g=[0],u=[0],v=[],m=new l,y=e,_=(function(I,j){var V={},E=0,N=!1,H=0,Y=0;if(V.frames=[],!(function(C,k,O,q){for(var le=0;le<q;le++)if(C[k+le]!=O.charCodeAt(le))return!0;return!1})(I,j,"RIFF",4)){var fe,Q;for(p(I,j+=4),j+=8;j<I.length;){var J=c(I,j),oe=p(I,j+=4);j+=4;var ne=oe+(1&oe);switch(J){case"VP8 ":case"VP8L":V.frames[E]===void 0&&(V.frames[E]={}),(b=V.frames[E]).src_off=N?Y:j-8,b.src_size=H+oe+8,E++,N&&(N=!1,H=0,Y=0);break;case"VP8X":(b=V.header={}).feature_flags=I[j];var ge=j+4;b.canvas_width=1+h(I,ge),ge+=3,b.canvas_height=1+h(I,ge),ge+=3;break;case"ALPH":N=!0,H=ne+8,Y=j-8;break;case"ANIM":(b=V.header).bgcolor=p(I,j),ge=j+4,b.loop_count=(fe=I)[(Q=ge)+0]<<0|fe[Q+1]<<8,ge+=2;break;case"ANMF":var ye,b;(b=V.frames[E]={}).offset_x=2*h(I,j),j+=3,b.offset_y=2*h(I,j),j+=3,b.width=1+h(I,j),j+=3,b.height=1+h(I,j),j+=3,b.duration=h(I,j),j+=3,ye=I[j++],b.dispose=1&ye,b.blend=ye>>1&1}J!="ANMF"&&(j+=ne)}return V}})(y,0);_.response=y,_.rgbaoutput=!0,_.dataurl=!1;var S=_.header?_.header:null,A=_.frames?_.frames:null;if(S){S.loop_counter=S.loop_count,g=[S.canvas_height],u=[S.canvas_width];for(var P=0;P<A.length&&A[P].blend!=0;P++);}var z=A[0],G=m.WebPDecodeRGBA(y,z.src_off,z.src_size,u,g);z.rgba=G,z.imgwidth=u[0],z.imgheight=g[0];for(var L=0;L<u[0]*g[0]*4;L++)v[L]=G[L];return this.width=u,this.height=g,this.data=v,this}(function(e){var r=function(){return typeof Cf=="function"},t=function(g,u,v,m){var y=4,_=s;switch(m){case e.image_compression.FAST:y=1,_=a;break;case e.image_compression.MEDIUM:y=6,_=o;break;case e.image_compression.SLOW:y=9,_=l}g=n(g,u,v,_);var S=Cf(g,{level:y});return e.__addimage__.arrayBufferToBinaryString(S)},n=function(g,u,v,m){for(var y,_,S,A=g.length/u,P=new Uint8Array(g.length+A),z=h(),G=0;G<A;G+=1){if(S=G*u,y=g.subarray(S,S+u),m)P.set(m(y,v,_),S+G);else{for(var L,I=z.length,j=[];L<I;L+=1)j[L]=z[L](y,v,_);var V=p(j.concat());P.set(j[V],S+G)}_=y}return P},i=function(g){var u=Array.apply([],g);return u.unshift(0),u},a=function(g,u){var v,m=[],y=g.length;m[0]=1;for(var _=0;_<y;_+=1)v=g[_-u]||0,m[_+1]=g[_]-v+256&255;return m},s=function(g,u,v){var m,y=[],_=g.length;y[0]=2;for(var S=0;S<_;S+=1)m=v&&v[S]||0,y[S+1]=g[S]-m+256&255;return y},o=function(g,u,v){var m,y,_=[],S=g.length;_[0]=3;for(var A=0;A<S;A+=1)m=g[A-u]||0,y=v&&v[A]||0,_[A+1]=g[A]+256-(m+y>>>1)&255;return _},l=function(g,u,v){var m,y,_,S,A=[],P=g.length;A[0]=4;for(var z=0;z<P;z+=1)m=g[z-u]||0,y=v&&v[z]||0,_=v&&v[z-u]||0,S=c(m,y,_),A[z+1]=g[z]-S+256&255;return A},c=function(g,u,v){if(g===u&&u===v)return g;var m=Math.abs(u-v),y=Math.abs(g-v),_=Math.abs(g+u-v-v);return m<=y&&m<=_?g:y<=_?u:v},h=function(){return[i,a,s,o,l]},p=function(g){var u=g.map((function(v){return v.reduce((function(m,y){return m+Math.abs(y)}),0)}));return u.indexOf(Math.min.apply(null,u))};e.processPNG=function(g,u,v,m){var y,_,S,A,P,z,G,L,I,j,V,E,N,H,Y,fe=this.decode.FLATE_DECODE,Q="";if(this.__addimage__.isArrayBuffer(g)&&(g=new Uint8Array(g)),this.__addimage__.isArrayBufferView(g)){if(g=(S=new op(g)).imgData,_=S.bits,y=S.colorSpace,P=S.colors,[4,6].indexOf(S.colorType)!==-1){if(S.bits===8){I=(L=S.pixelBitlength==32?new Uint32Array(S.decodePixels().buffer):S.pixelBitlength==16?new Uint16Array(S.decodePixels().buffer):new Uint8Array(S.decodePixels().buffer)).length,V=new Uint8Array(I*S.colors),j=new Uint8Array(I);var J,oe=S.pixelBitlength-S.bits;for(H=0,Y=0;H<I;H++){for(N=L[H],J=0;J<oe;)V[Y++]=N>>>J&255,J+=S.bits;j[H]=N>>>J&255}}if(S.bits===16){I=(L=new Uint32Array(S.decodePixels().buffer)).length,V=new Uint8Array(I*(32/S.pixelBitlength)*S.colors),j=new Uint8Array(I*(32/S.pixelBitlength)),E=S.colors>1,H=0,Y=0;for(var ne=0;H<I;)N=L[H++],V[Y++]=N>>>0&255,E&&(V[Y++]=N>>>16&255,N=L[H++],V[Y++]=N>>>0&255),j[ne++]=N>>>16&255;_=8}m!==e.image_compression.NONE&&r()?(g=t(V,S.width*S.colors,S.colors,m),G=t(j,S.width,1,m)):(g=V,G=j,fe=void 0)}if(S.colorType===3&&(y=this.color_spaces.INDEXED,z=S.palette,S.transparency.indexed)){var ge=S.transparency.indexed,ye=0;for(H=0,I=ge.length;H<I;++H)ye+=ge[H];if((ye/=255)===I-1&&ge.indexOf(0)!==-1)A=[ge.indexOf(0)];else if(ye!==I){for(L=S.decodePixels(),j=new Uint8Array(L.length),H=0,I=L.length;H<I;H++)j[H]=ge[L[H]];G=t(j,S.width,1)}}var b=(function(C){var k;switch(C){case e.image_compression.FAST:k=11;break;case e.image_compression.MEDIUM:k=13;break;case e.image_compression.SLOW:k=14;break;default:k=12}return k})(m);return fe===this.decode.FLATE_DECODE&&(Q="/Predictor "+b+" "),Q+="/Colors "+P+" /BitsPerComponent "+_+" /Columns "+S.width,(this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),(G&&this.__addimage__.isArrayBuffer(G)||this.__addimage__.isArrayBufferView(G))&&(G=this.__addimage__.arrayBufferToBinaryString(G)),{alias:v,data:g,index:u,filter:fe,decodeParameters:Q,transparency:A,palette:z,sMask:G,predictor:b,width:S.width,height:S.height,bitsPerComponent:_,colorSpace:y}}}})(ht.API),(function(e){e.processGIF89A=function(r,t,n,i){var a=new lp(r),s=a.width,o=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:s,height:o},h=new gf(100).encode(c,100);return e.processJPEG.call(this,h,t,n,i)},e.processGIF87A=e.processGIF89A})(ht.API),ai.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 r=0;r<e;r++){var t=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[r]={red:i,green:n,blue:t,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ai.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,r=this.width*this.height*4;this.data=new Uint8Array(r),this[e]()}catch(t){tr.log("bit decode error:"+t)}},ai.prototype.bit1=function(){var e,r=Math.ceil(this.width/8),t=r%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,i=0;i<r;i++)for(var a=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+8*i*4,o=0;o<8&&8*i+o<this.width;o++){var l=this.palette[a>>7-o&1];this.data[s+4*o]=l.blue,this.data[s+4*o+1]=l.green,this.data[s+4*o+2]=l.red,this.data[s+4*o+3]=255}t!==0&&(this.pos+=4-t)}},ai.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),r=e%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+2*i*4,o=a>>4,l=15&a,c=this.palette[o];if(this.data[s]=c.blue,this.data[s+1]=c.green,this.data[s+2]=c.red,this.data[s+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[s+4]=c.blue,this.data[s+4+1]=c.green,this.data[s+4+2]=c.red,this.data[s+4+3]=255}r!==0&&(this.pos+=4-r)}},ai.prototype.bit8=function(){for(var e=this.width%4,r=this.height-1;r>=0;r--){for(var t=this.bottom_up?r:this.height-1-r,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;if(i<this.palette.length){var s=this.palette[i];this.data[a]=s.red,this.data[a+1]=s.green,this.data[a+2]=s.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)}},ai.prototype.bit15=function(){for(var e=this.width%3,r=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&r)/r*255|0,o=(a>>5&r)/r*255|0,l=(a>>10&r)/r*255|0,c=a>>15?255:0,h=n*this.width*4+4*i;this.data[h]=l,this.data[h+1]=o,this.data[h+2]=s,this.data[h+3]=c}this.pos+=e}},ai.prototype.bit16=function(){for(var e=this.width%3,r=parseInt("11111",2),t=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 s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&r)/r*255|0,l=(s>>5&t)/t*255|0,c=(s>>11)/r*255|0,h=i*this.width*4+4*a;this.data[h]=c,this.data[h+1]=l,this.data[h+2]=o,this.data[h+3]=255}this.pos+=e}},ai.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,t=0;t<this.width;t++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+4*t;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=255}this.pos+=this.width%4}},ai.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var r=this.bottom_up?e:this.height-1-e,t=0;t<this.width;t++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+4*t;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=n,this.data[o+3]=s}},ai.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(r,t,n,i){var a=new ai(r,!1),s=a.width,o=a.height,l={data:a.getData(),width:s,height:o},c=new gf(100).encode(l,100);return e.processJPEG.call(this,c,t,n,i)}})(ht.API),su.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(r,t,n,i){var a=new su(r),s=a.width,o=a.height,l={data:a.getData(),width:s,height:o},c=new gf(100).encode(l,100);return e.processJPEG.call(this,c,t,n,i)}})(ht.API),ht.API.processRGBA=function(e,r,t){for(var n=e.data,i=n.length,a=new Uint8Array(i/4*3),s=new Uint8Array(i/4),o=0,l=0,c=0;c<i;c+=4){var h=n[c],p=n[c+1],g=n[c+2],u=n[c+3];a[o++]=h,a[o++]=p,a[o++]=g,s[l++]=u}var v=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:v,index:r,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},ht.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},ys=ht.API,B0=ys.getCharWidthsArray=function(e,r){var t,n,i=(r=r||{}).font||this.internal.getFont(),a=r.fontSize||this.internal.getFontSize(),s=r.charSpace||this.internal.getCharSpace(),o=r.widths?r.widths:i.metadata.Unicode.widths,l=o.fof?o.fof:1,c=r.kerning?r.kerning:i.metadata.Unicode.kerning,h=c.fof?c.fof:1,p=r.doKerning!==!1,g=0,u=e.length,v=0,m=o[0]||l,y=[];for(t=0;t<u;t++)n=e.charCodeAt(t),typeof i.metadata.widthOfString=="function"?y.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+s*(1e3/a)||0)/1e3):(g=p&&Ht(c[n])==="object"&&!isNaN(parseInt(c[n][v],10))?c[n][v]/h:0,y.push((o[n]||m)/l+g)),v=n;return y},ru=ys.getStringUnitWidth=function(e,r){var t=(r=r||{}).fontSize||this.internal.getFontSize(),n=r.font||this.internal.getFont(),i=r.charSpace||this.internal.getCharSpace();return ys.processArabic&&(e=ys.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,t,i)/t:B0.apply(this,arguments).reduce((function(a,s){return a+s}),0)},nu=function(e,r,t,n){for(var i=[],a=0,s=e.length,o=0;a!==s&&o+r[a]<t;)o+=r[a],a++;i.push(e.slice(0,a));var l=a;for(o=0;a!==s;)o+r[a]>n&&(i.push(e.slice(l,a)),o=0,l=a),o+=r[a],a++;return l!==a&&i.push(e.slice(l,a)),i},iu=function(e,r,t){t||(t={});var n,i,a,s,o,l,c,h=[],p=[h],g=t.textIndent||0,u=0,v=0,m=e.split(" "),y=B0.apply(this,[" ",t])[0];if(l=t.lineIndent===-1?m[0].length+2:t.lineIndent||0){var _=Array(l).join(" "),S=[];m.map((function(P){(P=P.split(/\s*\n/)).length>1?S=S.concat(P.map((function(z,G){return(G&&z.length?`
214
+ `:"")+z}))):S.push(P[0])})),m=S,l=ru.apply(this,[_,t])}for(a=0,s=m.length;a<s;a++){var A=0;if(n=m[a],l&&n[0]==`
215
+ `&&(n=n.substr(1),A=1),g+u+(v=(i=B0.apply(this,[n,t])).reduce((function(P,z){return P+z}),0))>r||A){if(v>r){for(o=nu.apply(this,[n,i,r-(g+u),r]),h.push(o.shift()),h=[o.pop()];o.length;)p.push([o.shift()]);v=i.slice(n.length-(h[0]?h[0].length:0)).reduce((function(P,z){return P+z}),0)}else h=[n];p.push(h),g=v+l,u=y}else h.push(n),g+=u+v,u=y}return c=l?function(P,z){return(z?_:"")+P.join(" ")}:function(P){return P.join(" ")},p.map(c)},ys.splitTextToSize=function(e,r,t){var n,i=(t=t||{}).fontSize||this.internal.getFontSize(),a=(function(h){if(h.widths&&h.kerning)return{widths:h.widths,kerning:h.kerning};var p=this.internal.getFont(h.fontName,h.fontStyle);return p.metadata.Unicode?{widths:p.metadata.Unicode.widths||{0:1},kerning:p.metadata.Unicode.kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var s=1*this.internal.scaleFactor*r/i;a.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=t.lineIndent;var o,l,c=[];for(o=0,l=n.length;o<l;o++)c=c.concat(iu.apply(this,[n[o],s,a]));return c},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var r="klmnopqrstuvwxyz",t={},n={},i=0;i<r.length;i++)t[r[i]]="0123456789abcdef"[i],n["0123456789abcdef"[i]]=r[i];var a=function(p){return"0x"+parseInt(p,10).toString(16)},s=e.__fontmetrics__.compress=function(p){var g,u,v,m,y=["{"];for(var _ in p){if(g=p[_],isNaN(parseInt(_,10))?u="'"+_+"'":(_=parseInt(_,10),u=(u=a(_).slice(2)).slice(0,-1)+n[u.slice(-1)]),typeof g=="number")g<0?(v=a(g).slice(3),m="-"):(v=a(g).slice(2),m=""),v=m+v.slice(0,-1)+n[v.slice(-1)];else{if(Ht(g)!=="object")throw new Error("Don't know what to do with value type "+Ht(g)+".");v=s(g)}y.push(u+v)}return y.push("}"),y.join("")},o=e.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var g,u,v,m,y={},_=1,S=y,A=[],P="",z="",G=p.length-1,L=1;L<G;L+=1)(m=p[L])=="'"?g?(v=g.join(""),g=void 0):g=[]:g?g.push(m):m=="{"?(A.push([S,v]),S={},v=void 0):m=="}"?((u=A.pop())[0][u[1]]=S,v=void 0,S=u[0]):m=="-"?_=-1:v===void 0?t.hasOwnProperty(m)?(P+=t[m],v=parseInt(P,16)*_,_=1,P=""):P+=m:t.hasOwnProperty(m)?(z+=t[m],S[v]=parseInt(z,16)*_,_=1,v=void 0,z=""):z+=m;return y},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:o("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},h={Unicode:{"Courier-Oblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":o("{'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":o("{'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:o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":o("{'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:o("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:o("{'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":o("{'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:o("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":o("{'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":o("{'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":o("{'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(p){var g=p.font,u=h.Unicode[g.postScriptName];u&&(g.metadata.Unicode={},g.metadata.Unicode.widths=u.widths,g.metadata.Unicode.kerning=u.kerning);var v=c.Unicode[g.postScriptName];v&&(g.metadata.Unicode.encoding=v,g.encoding=v.codePages[0])}])})(ht.API),(function(e){var r=function(t){for(var n=t.length,i=new Uint8Array(n),a=0;a<n;a++)i[a]=t.charCodeAt(a);return i};e.API.events.push(["addFont",function(t){var n=void 0,i=t.font,a=t.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(s,o){o=/^\x00\x01\x00\x00/.test(o)?r(o):r(_o(o)),s.metadata=e.API.TTFFont.open(o),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(i,n)}}])})(ht),(function(e){function r(){return(mt.canvg?Promise.resolve(mt.canvg):Promise.resolve().then(()=>require("./index.es-CY8u-2bk.js"))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}ht.API.addSvgAsImage=function(t,n,i,a,s,o,l,c){if(isNaN(n)||isNaN(i))throw tr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(a)||isNaN(s))throw tr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=a,h.height=s;var p=h.getContext("2d");p.fillStyle="#fff",p.fillRect(0,0,h.width,h.height);var g={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},u=this;return r().then((function(v){return v.fromString(p,t,g)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(v){return v.render(g)})).then((function(){u.addImage(h.toDataURL("image/jpeg",1),n,i,a,s,l,c)}))}})(),ht.API.putTotalPages=function(e){var r,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(r=new RegExp(e,"g"),t=this.internal.getNumberOfPages()):(r=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),t=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(r,t);return this},ht.API.viewerPreferences=function(e,r){var t;e=e||{},r=r||!1;var n,i,a,s={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}},o=Object.keys(s),l=[],c=0,h=0,p=0;function g(v,m){var y,_=!1;for(y=0;y<v.length;y+=1)v[y]===m&&(_=!0);return _}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,e==="reset"||r===!0){var u=o.length;for(p=0;p<u;p+=1)t[o[p]].value=t[o[p]].defaultValue,t[o[p]].explicitSet=!1}if(Ht(e)==="object"){for(i in e)if(a=e[i],g(o,i)&&a!==void 0){if(t[i].type==="boolean"&&typeof a=="boolean")t[i].value=a;else if(t[i].type==="name"&&g(t[i].valueSet,a))t[i].value=a;else if(t[i].type==="integer"&&Number.isInteger(a))t[i].value=a;else if(t[i].type==="array"){for(c=0;c<a.length;c+=1)if(n=!0,a[c].length===1&&typeof a[c][0]=="number")l.push(String(a[c]-1));else if(a[c].length>1){for(h=0;h<a[c].length;h+=1)typeof a[c][h]!="number"&&(n=!1);n===!0&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}t[i].value="["+l.join(" ")+"]"}else t[i].value=t[i].defaultValue;t[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){var v,m=[];for(v in t)t[v].explicitSet===!0&&(t[v].type==="name"?m.push("/"+v+" /"+t[v].value):m.push("/"+v+" "+t[v].value));m.length!==0&&this.internal.write(`/ViewerPreferences
216
+ <<
217
+ `+m.join(`
218
+ `)+`
219
+ >>`)})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},(function(e){var r=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)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),o=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),c=a.length+s.length+o.length+i.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(i+a+s+o+l),this.internal.write("endstream"),this.internal.write("endobj")},t=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",t),this.internal.events.subscribe("postPutResources",r)),this}})(ht.API),(function(e){var r=e.API,t=r.pdfEscape16=function(a,s){for(var o,l=s.metadata.Unicode.widths,c=["","0","00","000","0000"],h=[""],p=0,g=a.length;p<g;++p){if(o=s.metadata.characterToGlyph(a.charCodeAt(p)),s.metadata.glyIdsUsed.push(o),s.metadata.toUnicode[o]=a.charCodeAt(p),l.indexOf(o)==-1&&(l.push(o),l.push([parseInt(s.metadata.widthOfGlyph(o),10)])),o=="0")return h.join("");o=o.toString(16),h.push(c[4-o.length],o)}return h.join("")},n=function(a){var s,o,l,c,h,p,g;for(h=`/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=[],p=0,g=(o=Object.keys(a).sort((function(u,v){return u-v}))).length;p<g;p++)s=o[p],l.length>=100&&(h+=`
232
+ `+l.length+` beginbfchar
233
+ `+l.join(`
234
+ `)+`
235
+ endbfchar`,l=[]),a[s]!==void 0&&a[s]!==null&&typeof a[s].toString=="function"&&(c=("0000"+a[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),l.push("<"+s+"><"+c+">"));return l.length&&(h+=`
236
+ `+l.length+` beginbfchar
237
+ `+l.join(`
238
+ `)+`
239
+ endbfchar
240
+ `),h+=`endcmap
241
+ CMapName currentdict /CMap defineresource pop
242
+ end
243
+ end`};r.events.push(["putFont",function(a){(function(s){var o=s.font,l=s.out,c=s.newObject,h=s.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="Identity-H"){for(var p=o.metadata.Unicode.widths,g=o.metadata.subset.encode(o.metadata.glyIdsUsed,1),u="",v=0;v<g.length;v++)u+=String.fromCharCode(g[v]);var m=c();h({data:u,addLength1:!0,objectId:m}),l("endobj");var y=c();h({data:n(o.metadata.toUnicode),addLength1:!0,objectId:y}),l("endobj");var _=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+Ns(o.fontName)),l("/FontFile2 "+m+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(o.metadata.bbox)),l("/Flags "+o.metadata.flags),l("/StemV "+o.metadata.stemV),l("/ItalicAngle "+o.metadata.italicAngle),l("/Ascent "+o.metadata.ascender),l("/Descent "+o.metadata.decender),l("/CapHeight "+o.metadata.capHeight),l(">>"),l("endobj");var S=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+Ns(o.fontName)),l("/FontDescriptor "+_+" 0 R"),l("/W "+e.API.PDFObject.convert(p)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+o.encoding+")"),l(">>"),l(">>"),l("endobj"),o.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+y+" 0 R"),l("/BaseFont /"+Ns(o.fontName)),l("/Encoding /"+o.encoding),l("/DescendantFonts ["+S+" 0 R]"),l(">>"),l("endobj"),o.isAlreadyPutted=!0}})(a)}]),r.events.push(["putFont",function(a){(function(s){var o=s.font,l=s.out,c=s.newObject,h=s.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="WinAnsiEncoding"){for(var p=o.metadata.rawData,g="",u=0;u<p.length;u++)g+=String.fromCharCode(p[u]);var v=c();h({data:g,addLength1:!0,objectId:v}),l("endobj");var m=c();h({data:n(o.metadata.toUnicode),addLength1:!0,objectId:m}),l("endobj");var y=c();l("<<"),l("/Descent "+o.metadata.decender),l("/CapHeight "+o.metadata.capHeight),l("/StemV "+o.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+v+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(o.metadata.bbox)),l("/FontName /"+Ns(o.fontName)),l("/ItalicAngle "+o.metadata.italicAngle),l("/Ascent "+o.metadata.ascender),l(">>"),l("endobj"),o.objectNumber=c();for(var _=0;_<o.metadata.hmtx.widths.length;_++)o.metadata.hmtx.widths[_]=parseInt(o.metadata.hmtx.widths[_]*(1e3/o.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+m+" 0 R/BaseFont/"+Ns(o.fontName)+"/FontDescriptor "+y+" 0 R/Encoding/"+o.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(o.metadata.hmtx.widths)+">>"),l("endobj"),o.isAlreadyPutted=!0}})(a)}]);var i=function(a){var s,o=a.text||"",l=a.x,c=a.y,h=a.options||{},p=a.mutex||{},g=p.pdfEscape,u=p.activeFontKey,v=p.fonts,m=u,y="",_=0,S="",A=v[m].encoding;if(v[m].encoding!=="Identity-H")return{text:o,x:l,y:c,options:h,mutex:p};for(S=o,m=u,Array.isArray(o)&&(S=o[0]),_=0;_<S.length;_+=1)v[m].metadata.hasOwnProperty("cmap")&&(s=v[m].metadata.cmap.unicode.codeMap[S[_].charCodeAt(0)]),s||S[_].charCodeAt(0)<256&&v[m].metadata.hasOwnProperty("Unicode")?y+=S[_]:y+="";var P="";return parseInt(m.slice(1))<14||A==="WinAnsiEncoding"?P=g(y,m).split("").map((function(z){return z.charCodeAt(0).toString(16)})).join(""):A==="Identity-H"&&(P=t(y,v[m])),p.isHex=!0,{text:P,x:l,y:c,options:h,mutex:p}};r.events.push(["postProcessText",function(a){var s=a.text||"",o=[],l={text:s,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(s)){var c=0;for(c=0;c<s.length;c+=1)Array.isArray(s[c])&&s[c].length===3?o.push([i(Object.assign({},l,{text:s[c][0]})).text,s[c][1],s[c][2]]):o.push(i(Object.assign({},l,{text:s[c]})).text);a.text=o}else a.text=i(Object.assign({},l,{text:s})).text}])})(ht),(function(e){var r=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(t){return r.call(this),this.internal.vFS[t]!==void 0},e.addFileToVFS=function(t,n){return r.call(this),this.internal.vFS[t]=n,this},e.getFileFromVFS=function(t){return r.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}})(ht.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var i,a,s,o,l,c,h,p=r,g=[[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]],u=[[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]],v={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},m={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},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)$/),S=!1,A=0;this.__bidiEngine__={};var P=function(E){var N=E.charCodeAt(),H=N>>8,Y=m[H];return Y!==void 0?p[256*Y+(255&N)]:H===252||H===253?"AL":_.test(H)?"L":H===8?"R":"N"},z=function(E){for(var N,H=0;H<E.length;H++){if((N=P(E.charAt(H)))==="L")return!1;if(N==="R")return!0}return!1},G=function(E,N,H,Y){var fe,Q,J,oe,ne=N[Y];switch(ne){case"L":case"R":S=!1;break;case"N":case"AN":break;case"EN":S&&(ne="AN");break;case"AL":S=!0,ne="R";break;case"WS":ne="N";break;case"CS":Y<1||Y+1>=N.length||(fe=H[Y-1])!=="EN"&&fe!=="AN"||(Q=N[Y+1])!=="EN"&&Q!=="AN"?ne="N":S&&(Q="AN"),ne=Q===fe?Q:"N";break;case"ES":ne=(fe=Y>0?H[Y-1]:"B")==="EN"&&Y+1<N.length&&N[Y+1]==="EN"?"EN":"N";break;case"ET":if(Y>0&&H[Y-1]==="EN"){ne="EN";break}if(S){ne="N";break}for(J=Y+1,oe=N.length;J<oe&&N[J]==="ET";)J++;ne=J<oe&&N[J]==="EN"?"EN":"N";break;case"NSM":if(s&&!o){for(oe=N.length,J=Y+1;J<oe&&N[J]==="NSM";)J++;if(J<oe){var ge=E[Y],ye=ge>=1425&&ge<=2303||ge===64286;if(fe=N[J],ye&&(fe==="R"||fe==="AL")){ne="R";break}}}ne=Y<1||(fe=N[Y-1])==="B"?"N":H[Y-1];break;case"B":S=!1,i=!0,ne=A;break;case"S":a=!0,ne="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":S=!1;break;case"BN":ne="N"}return ne},L=function(E,N,H){var Y=E.split("");return H&&I(Y,H,{hiLevel:A}),Y.reverse(),N&&N.reverse(),Y.join("")},I=function(E,N,H){var Y,fe,Q,J,oe,ne=-1,ge=E.length,ye=0,b=[],C=A?u:g,k=[];for(S=!1,i=!1,a=!1,fe=0;fe<ge;fe++)k[fe]=P(E[fe]);for(Q=0;Q<ge;Q++){if(oe=ye,b[Q]=G(E,k,b,Q),Y=240&(ye=C[oe][v[b[Q]]]),ye&=15,N[Q]=J=C[ye][5],Y>0)if(Y===16){for(fe=ne;fe<Q;fe++)N[fe]=1;ne=-1}else ne=-1;if(C[ye][6])ne===-1&&(ne=Q);else if(ne>-1){for(fe=ne;fe<Q;fe++)N[fe]=J;ne=-1}k[Q]==="B"&&(N[Q]=0),H.hiLevel|=J}a&&(function(O,q,le){for(var ce=0;ce<le;ce++)if(O[ce]==="S"){q[ce]=A;for(var ue=ce-1;ue>=0&&O[ue]==="WS";ue--)q[ue]=A}})(k,N,ge)},j=function(E,N,H,Y,fe){if(!(fe.hiLevel<E)){if(E===1&&A===1&&!i)return N.reverse(),void(H&&H.reverse());for(var Q,J,oe,ne,ge=N.length,ye=0;ye<ge;){if(Y[ye]>=E){for(oe=ye+1;oe<ge&&Y[oe]>=E;)oe++;for(ne=ye,J=oe-1;ne<J;ne++,J--)Q=N[ne],N[ne]=N[J],N[J]=Q,H&&(Q=H[ne],H[ne]=H[J],H[J]=Q);ye=oe}ye++}}},V=function(E,N,H){var Y=E.split(""),fe={hiLevel:A};return H||(H=[]),I(Y,H,fe),(function(Q,J,oe){if(oe.hiLevel!==0&&h)for(var ne,ge=0;ge<Q.length;ge++)J[ge]===1&&(ne=y.indexOf(Q[ge]))>=0&&(Q[ge]=y[ne+1])})(Y,H,fe),j(2,Y,N,H,fe),j(1,Y,N,H,fe),Y.join("")};return this.__bidiEngine__.doBidiReorder=function(E,N,H){if((function(fe,Q){if(Q)for(var J=0;J<fe.length;J++)Q[J]=J;o===void 0&&(o=z(fe)),c===void 0&&(c=z(fe))})(E,N),s||!l||c)if(s&&l&&o^c)A=o?1:0,E=L(E,N,H);else if(!s&&l&&c)A=o?1:0,E=V(E,N,H),E=L(E,N);else if(!s||o||l||c){if(s&&!l&&o^c)E=L(E,N),o?(A=0,E=V(E,N,H)):(A=1,E=V(E,N,H),E=L(E,N));else if(s&&o&&!l&&c)A=1,E=V(E,N,H),E=L(E,N);else if(!s&&!l&&o^c){var Y=h;o?(A=1,E=V(E,N,H),A=0,h=!1,E=V(E,N,H),h=Y):(A=0,E=V(E,N,H),E=L(E,N),A=1,h=!1,E=V(E,N,H),h=Y,E=L(E,N))}}else A=0,E=V(E,N,H);else A=o?1:0,E=V(E,N,H);return E},this.__bidiEngine__.setOptions=function(E){E&&(s=E.isInputVisual,l=E.isOutputVisual,o=E.isInputRtl,c=E.isOutputRtl,h=E.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var r=["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"],t=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var i=n.text,a=(n.x,n.y,n.options||{}),s=(n.mutex,a.lang,[]);if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,t.setOptions(a),Object.prototype.toString.call(i)==="[object Array]"){var o=0;for(s=[],o=0;o<i.length;o+=1)Object.prototype.toString.call(i[o])==="[object Array]"?s.push([t.doBidiReorder(i[o][0]),i[o][1],i[o][2]]):s.push([t.doBidiReorder(i[o])]);n.text=s}else n.text=t.doBidiReorder(i);t.setOptions({isInputVisual:!0})}])})(ht),ht.API.TTFFont=(function(){function e(r){var t;if(this.rawData=r,t=this.contents=new va(r),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new Sp(this),this.registerTTF()}return e.open=function(r){return new e(r)},e.prototype.parse=function(){return this.directory=new fp(this.contents),this.head=new up(this),this.name=new mp(this),this.cmap=new _h(this),this.toUnicode={},this.hhea=new hp(this),this.maxp=new xp(this),this.hmtx=new vp(this),this.post=new pp(this),this.os2=new dp(this),this.loca=new _p(this),this.glyf=new wp(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 r,t,n,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,o,l,c;for(c=[],s=0,o=(l=this.bbox).length;s<o;s++)r=l[s],c.push(Math.round(r*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),(32768&(t=i>>16))!=0&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+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(r){var t;return((t=this.cmap.unicode)!=null?t.codeMap[r]:void 0)||0},e.prototype.widthOfGlyph=function(r){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(r).advance*t},e.prototype.widthOfString=function(r,t,n){var i,a,s,o;for(s=0,a=0,o=(r=""+r).length;0<=o?a<o:a>o;a=0<=o?++a:--a)i=r.charCodeAt(a),s+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/t)||0;return s*(t/1e3)},e.prototype.lineHeight=function(r,t){var n;return t==null&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*r},e})();var di,va=(function(){function e(r){this.data=r??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(r){return this.data[this.pos++]=r},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(r){return this.writeByte(r>>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt32=function(){var r;return(r=this.readUInt32())>=2147483648?r-4294967296:r},e.prototype.writeInt32=function(r){return r<0&&(r+=4294967296),this.writeUInt32(r)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(r){return this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt16=function(){var r;return(r=this.readUInt16())>=32768?r-65536:r},e.prototype.writeInt16=function(r){return r<0&&(r+=65536),this.writeUInt16(r)},e.prototype.readString=function(r){var t,n;for(n=[],t=0;0<=r?t<r:t>r;t=0<=r?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(r){var t,n,i;for(i=[],t=0,n=r.length;0<=n?t<n:t>n;t=0<=n?++t:--t)i.push(this.writeByte(r.charCodeAt(t)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(r){return this.writeInt16(r)},e.prototype.readLongLong=function(){var r,t,n,i,a,s,o,l;return r=this.readByte(),t=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),s=this.readByte(),o=this.readByte(),l=this.readByte(),128&r?-1*(72057594037927940*(255^r)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^a)+65536*(255^s)+256*(255^o)+(255^l)+1):72057594037927940*r+281474976710656*t+1099511627776*n+4294967296*i+16777216*a+65536*s+256*o+l},e.prototype.writeLongLong=function(r){var t,n;return t=Math.floor(r/4294967296),n=4294967295&r,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),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(r){return this.writeInt32(r)},e.prototype.read=function(r){var t,n;for(t=[],n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(r){var t,n,i,a;for(a=[],n=0,i=r.length;n<i;n++)t=r[n],a.push(this.writeByte(t));return a},e})(),fp=(function(){var e;function r(t){var n,i,a;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},i=0,a=this.tableCount;0<=a?i<a:i>a;i=0<=a?++i:--i)n={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[n.tag]=n}return r.prototype.encode=function(t){var n,i,a,s,o,l,c,h,p,g,u,v,m;for(m in u=Object.keys(t).length,l=Math.log(2),p=16*Math.floor(Math.log(u)/l),s=Math.floor(p/l),h=16*u-p,(i=new va).writeInt(this.scalarType),i.writeShort(u),i.writeShort(p),i.writeShort(s),i.writeShort(h),a=16*u,c=i.pos+a,o=null,v=[],t)for(g=t[m],i.writeString(m),i.writeInt(e(g)),i.writeInt(c),i.writeInt(g.length),v=v.concat(g),m==="head"&&(o=c),c+=g.length;c%4;)v.push(0),c++;return i.write(v),n=2981146554-e(i.data),i.pos=o+8,i.writeUInt32(n),i.data},e=function(t){var n,i,a,s;for(t=Sh.call(t);t.length%4;)t.push(0);for(a=new va(t),i=0,n=0,s=t.length;n<s;n=n+=4)i+=a.readUInt32();return 4294967295&i},r})(),cp={}.hasOwnProperty,Ei=function(e,r){for(var t in r)cp.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,e};di=(function(){function e(r){var t;this.file=r,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.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 up=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="head",r.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},r.prototype.encode=function(t){var n;return(n=new va).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(t),n.writeShort(this.glyphDataFormat),n.data},r})(),ou=(function(){function e(r,t){var n,i,a,s,o,l,c,h,p,g,u,v,m,y,_,S,A;switch(this.platformID=r.readUInt16(),this.encodingID=r.readShort(),this.offset=t+r.readInt(),p=r.pos,r.pos=this.offset,this.format=r.readUInt16(),this.length=r.readUInt16(),this.language=r.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]=r.readByte();break;case 4:for(u=r.readUInt16(),g=u/2,r.pos+=6,a=(function(){var P,z;for(z=[],l=P=0;0<=g?P<g:P>g;l=0<=g?++P:--P)z.push(r.readUInt16());return z})(),r.pos+=2,m=(function(){var P,z;for(z=[],l=P=0;0<=g?P<g:P>g;l=0<=g?++P:--P)z.push(r.readUInt16());return z})(),c=(function(){var P,z;for(z=[],l=P=0;0<=g?P<g:P>g;l=0<=g?++P:--P)z.push(r.readUInt16());return z})(),h=(function(){var P,z;for(z=[],l=P=0;0<=g?P<g:P>g;l=0<=g?++P:--P)z.push(r.readUInt16());return z})(),i=(this.length-r.pos+this.offset)/2,o=(function(){var P,z;for(z=[],l=P=0;0<=i?P<i:P>i;l=0<=i?++P:--P)z.push(r.readUInt16());return z})(),l=_=0,A=a.length;_<A;l=++_)for(y=a[l],n=S=v=m[l];v<=y?S<=y:S>=y;n=v<=y?++S:--S)h[l]===0?s=n+c[l]:(s=o[h[l]/2+(n-v)-(g-l)]||0)!==0&&(s+=c[l]),this.codeMap[n]=65535&s}r.pos=p}return e.encode=function(r,t){var n,i,a,s,o,l,c,h,p,g,u,v,m,y,_,S,A,P,z,G,L,I,j,V,E,N,H,Y,fe,Q,J,oe,ne,ge,ye,b,C,k,O,q,le,ce,ue,we,Pe,Re;switch(Y=new va,s=Object.keys(r).sort((function(He,$e){return He-$e})),t){case"macroman":for(m=0,y=(function(){var He=[];for(v=0;v<256;++v)He.push(0);return He})(),S={0:0},a={},fe=0,ne=s.length;fe<ne;fe++)S[ue=r[i=s[fe]]]==null&&(S[ue]=++m),a[i]={old:r[i],new:S[r[i]]},y[i]=S[r[i]];return Y.writeUInt16(1),Y.writeUInt16(0),Y.writeUInt32(12),Y.writeUInt16(0),Y.writeUInt16(262),Y.writeUInt16(0),Y.write(y),{charMap:a,subtable:Y.data,maxGlyphID:m+1};case"unicode":for(N=[],p=[],A=0,S={},n={},_=c=null,Q=0,ge=s.length;Q<ge;Q++)S[z=r[i=s[Q]]]==null&&(S[z]=++A),n[i]={old:z,new:S[z]},o=S[z]-i,_!=null&&o===c||(_&&p.push(_),N.push(i),c=o),_=i;for(_&&p.push(_),p.push(65535),N.push(65535),V=2*(j=N.length),I=2*Math.pow(Math.log(j)/Math.LN2,2),g=Math.log(I/2)/Math.LN2,L=2*j-I,l=[],G=[],u=[],v=J=0,ye=N.length;J<ye;v=++J){if(E=N[v],h=p[v],E===65535){l.push(0),G.push(0);break}if(E-(H=n[E].new)>=32768)for(l.push(0),G.push(2*(u.length+j-v)),i=oe=E;E<=h?oe<=h:oe>=h;i=E<=h?++oe:--oe)u.push(n[i].new);else l.push(H-E),G.push(0)}for(Y.writeUInt16(3),Y.writeUInt16(1),Y.writeUInt32(12),Y.writeUInt16(4),Y.writeUInt16(16+8*j+2*u.length),Y.writeUInt16(0),Y.writeUInt16(V),Y.writeUInt16(I),Y.writeUInt16(g),Y.writeUInt16(L),le=0,b=p.length;le<b;le++)i=p[le],Y.writeUInt16(i);for(Y.writeUInt16(0),ce=0,C=N.length;ce<C;ce++)i=N[ce],Y.writeUInt16(i);for(we=0,k=l.length;we<k;we++)o=l[we],Y.writeUInt16(o);for(Pe=0,O=G.length;Pe<O;Pe++)P=G[Pe],Y.writeUInt16(P);for(Re=0,q=u.length;Re<q;Re++)m=u[Re],Y.writeUInt16(m);return{charMap:n,subtable:Y.data,maxGlyphID:A+1}}},e})(),_h=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="cmap",r.prototype.parse=function(t){var n,i,a;for(t.pos=this.offset,this.version=t.readUInt16(),a=t.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=a?i<a:i>a;i=0<=a?++i:--i)n=new ou(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},r.encode=function(t,n){var i,a;return n==null&&(n="macroman"),i=ou.encode(t,n),(a=new va).writeUInt16(0),a.writeUInt16(1),i.table=a.data.concat(i.subtable),i},r})(),hp=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="hhea",r.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},r})(),dp=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="OS/2",r.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=(function(){var n,i;for(i=[],n=0;n<10;++n)i.push(t.readByte());return i})(),this.charRange=(function(){var n,i;for(i=[],n=0;n<4;++n)i.push(t.readInt());return i})(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=(function(){var n,i;for(i=[],n=0;n<2;n=++n)i.push(t.readInt());return i})(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},r})(),pp=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="post",r.prototype.parse=function(t){var n,i,a;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var s;for(i=t.readUInt16(),this.glyphNameIndex=[],s=0;0<=i?s<i:s>i;s=0<=i?++s:--s)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],a=[];t.pos<this.offset+this.length;)n=t.readByte(),a.push(this.names.push(t.readString(n)));return a;case 151552:return i=t.readUInt16(),this.offsets=t.read(i);case 196608:break;case 262144:return this.map=(function(){var o,l,c;for(c=[],s=o=0,l=this.file.maxp.numGlyphs;0<=l?o<l:o>l;s=0<=l?++o:--o)c.push(t.readUInt32());return c}).call(this)}},r})(),gp=function(e,r){this.raw=e,this.length=e.length,this.platformID=r.platformID,this.encodingID=r.encodingID,this.languageID=r.languageID},mp=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="name",r.prototype.parse=function(t){var n,i,a,s,o,l,c,h,p,g,u;for(t.pos=this.offset,t.readShort(),n=t.readShort(),l=t.readShort(),i=[],s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)i.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+l+t.readShort()});for(c={},s=p=0,g=i.length;p<g;s=++p)a=i[s],t.pos=a.offset,h=t.readString(a.length),o=new gp(h,a),c[u=a.nameID]==null&&(c[u]=[]),c[a.nameID].push(o);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},r})(),xp=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="maxp",r.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},r})(),vp=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="hmtx",r.prototype.parse=function(t){var n,i,a,s,o,l,c;for(t.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:t.readUInt16(),lsb:t.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var h,p;for(p=[],n=h=0;0<=a?h<a:h>a;n=0<=a?++h:--h)p.push(t.readInt16());return p})(),this.widths=(function(){var h,p,g,u;for(u=[],h=0,p=(g=this.metrics).length;h<p;h++)s=g[h],u.push(s.advance);return u}).call(this),i=this.widths[this.widths.length-1],c=[],n=o=0;0<=a?o<a:o>a;n=0<=a?++o:--o)c.push(this.widths.push(i));return c},r.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},r})(),Sh=[].slice,wp=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="glyf",r.prototype.parse=function(){return this.cache={}},r.prototype.glyphFor=function(t){var n,i,a,s,o,l,c,h,p,g;return t in this.cache?this.cache[t]:(s=this.file.loca,n=this.file.contents,i=s.indexOf(t),(a=s.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+i,o=(l=new va(n.read(a))).readShort(),h=l.readShort(),g=l.readShort(),c=l.readShort(),p=l.readShort(),this.cache[t]=o===-1?new bp(l,h,g,c,p):new yp(l,o,h,g,c,p),this.cache[t]))},r.prototype.encode=function(t,n,i){var a,s,o,l,c;for(o=[],s=[],l=0,c=n.length;l<c;l++)a=t[n[l]],s.push(o.length),a&&(o=o.concat(a.encode(i)));return s.push(o.length),{table:o,offsets:s}},r})(),yp=(function(){function e(r,t,n,i,a,s){this.raw=r,this.numberOfContours=t,this.xMin=n,this.yMin=i,this.xMax=a,this.yMax=s,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),bp=(function(){function e(r,t,n,i,a){var s,o;for(this.raw=r,this.xMin=t,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;o=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&o;)s.pos+=1&o?4:2,128&o?s.pos+=8:64&o?s.pos+=4:8&o&&(s.pos+=2)}return e.prototype.encode=function(){var r,t,n;for(t=new va(Sh.call(this.raw.data)),r=0,n=this.glyphIDs.length;r<n;++r)t.pos=this.glyphOffsets[r];return t.data},e})(),_p=(function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return Ei(r,di),r.prototype.tag="loca",r.prototype.parse=function(t){var n,i;return t.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var a,s;for(s=[],i=0,a=this.length;i<a;i+=2)s.push(2*t.readUInt16());return s}).call(this):(function(){var a,s;for(s=[],i=0,a=this.length;i<a;i+=4)s.push(t.readUInt32());return s}).call(this)},r.prototype.indexOf=function(t){return this.offsets[t]},r.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},r.prototype.encode=function(t,n){for(var i=new Uint32Array(this.offsets.length),a=0,s=0,o=0;o<i.length;++o)if(i[o]=a,s<n.length&&n[s]==o){++s,i[o]=a;var l=this.offsets[o],c=this.offsets[o+1]-l;c>0&&(a+=c)}for(var h=new Array(4*i.length),p=0;p<i.length;++p)h[4*p+3]=255&i[p],h[4*p+2]=(65280&i[p])>>8,h[4*p+1]=(16711680&i[p])>>16,h[4*p]=(4278190080&i[p])>>24;return h},r})(),Sp=(function(){function e(r){this.font=r,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var r,t,n,i,a;for(t in i=this.font.cmap.tables[0].codeMap,r={},a=this.subset)n=a[t],r[t]=i[n];return r},e.prototype.glyphsFor=function(r){var t,n,i,a,s,o,l;for(i={},s=0,o=r.length;s<o;s++)i[a=r[s]]=this.font.glyf.glyphFor(a);for(a in t=[],i)(n=i[a])!=null&&n.compound&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(a in l=this.glyphsFor(t))n=l[a],i[a]=n;return i},e.prototype.encode=function(r,t){var n,i,a,s,o,l,c,h,p,g,u,v,m,y,_;for(i in n=_h.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(r),u={0:0},_=n.charMap)u[(l=_[i]).old]=l.new;for(v in g=n.maxGlyphID,s)v in u||(u[v]=g++);return h=(function(S){var A,P;for(A in P={},S)P[S[A]]=A;return P})(u),p=Object.keys(h).sort((function(S,A){return S-A})),m=(function(){var S,A,P;for(P=[],S=0,A=p.length;S<A;S++)o=p[S],P.push(h[o]);return P})(),a=this.font.glyf.encode(s,m,u),c=this.font.loca.encode(a.offsets,m),y={cmap:this.font.cmap.raw(),glyf:a.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(y["OS/2"]=this.font.os2.raw()),this.font.directory.encode(y)},e})();ht.API.PDFObject=(function(){var e;function r(){}return e=function(t,n){return(Array(n+1).join("0")+t).slice(-n)},r.convert=function(t){var n,i,a,s;if(Array.isArray(t))return"["+(function(){var o,l,c;for(c=[],o=0,l=t.length;o<l;o++)n=t[o],c.push(r.convert(n));return c})().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t!=null&&t.isString)return"("+t+")";if(t instanceof Date)return"(D:"+e(t.getUTCFullYear(),4)+e(t.getUTCMonth(),2)+e(t.getUTCDate(),2)+e(t.getUTCHours(),2)+e(t.getUTCMinutes(),2)+e(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(i in a=["<<"],t)s=t[i],a.push("/"+i+" "+r.convert(s));return a.push(">>"),a.join(`
244
+ `)}return""+t},r})();const Ap=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:tp,AcroFormAppearance:ot,AcroFormButton:Or,AcroFormCheckBox:No,AcroFormChoiceField:Ra,AcroFormComboBox:Ma,AcroFormEditBox:So,AcroFormListBox:ja,AcroFormPasswordField:To,AcroFormPushButton:Ao,AcroFormRadioButton:Ba,AcroFormTextField:ma,GState:Oo,ShadingPattern:ha,TilingPattern:Da,default:ht,jsPDF:ht},Symbol.toStringTag,{value:"Module"}));var Ah=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Np(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Tp(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var t=function n(){return this instanceof n?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),t}var $0={exports:{}};const Ep=Tp(Ap);/*!
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 lu=$0.exports,fu;function Lp(){return fu||(fu=1,(function(e,r){(function(n,i){e.exports=i((function(){try{return Ep}catch{}})())})(typeof globalThis<"u"?globalThis:typeof lu<"u"?lu:typeof window<"u"?window:typeof self<"u"?self:Ah,function(t){return(function(){var n={172:(function(o,l){var c=this&&this.__extends||(function(){var g=function(u,v){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var _ in y)Object.prototype.hasOwnProperty.call(y,_)&&(m[_]=y[_])},g(u,v)};return function(u,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");g(u,v);function m(){this.constructor=u}u.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}})();Object.defineProperty(l,"__esModule",{value:!0}),l.CellHookData=l.HookData=void 0;var h=(function(){function g(u,v,m){this.table=v,this.pageNumber=v.pageNumber,this.pageCount=this.pageNumber,this.settings=v.settings,this.cursor=m,this.doc=u.getDocument()}return g})();l.HookData=h;var p=(function(g){c(u,g);function u(v,m,y,_,S,A){var P=g.call(this,v,m,A)||this;return P.cell=y,P.row=_,P.column=S,P.section=_.section,P}return u})(h);l.CellHookData=p}),340:(function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0});var h=c(4),p=c(136),g=c(744),u=c(776),v=c(664),m=c(972);function y(_){_.API.autoTable=function(){for(var S=[],A=0;A<arguments.length;A++)S[A]=arguments[A];var P;S.length===1?P=S[0]:(console.error("Use of deprecated autoTable initiation"),P=S[2]||{},P.columns=S[0],P.body=S[1]);var z=(0,u.parseInput)(this,P),G=(0,m.createTable)(this,z);return(0,v.drawTable)(this,G),this},_.API.lastAutoTable=!1,_.API.previousAutoTable=!1,_.API.autoTable.previous=!1,_.API.autoTableText=function(S,A,P,z){(0,p.default)(S,A,P,z,this)},_.API.autoTableSetDefaults=function(S){return g.DocHandler.setDefaults(S,this),this},_.autoTableSetDefaults=function(S,A){g.DocHandler.setDefaults(S,A)},_.API.autoTableHtmlToJson=function(S,A){var P;if(A===void 0&&(A=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var z=new g.DocHandler(this),G=(0,h.parseHtml)(z,S,window,A,!1),L=G.head,I=G.body,j=((P=L[0])===null||P===void 0?void 0:P.map(function(V){return V.content}))||[];return{columns:j,rows:I,data:I}},_.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var S=this.lastAutoTable;return S&&S.finalY?S.finalY:0},_.API.autoTableAddPageContent=function(S){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),_.API.autoTable.globalDefaults||(_.API.autoTable.globalDefaults={}),_.API.autoTable.globalDefaults.addPageContent=S,this},_.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}l.default=y}),136:(function(o,l){Object.defineProperty(l,"__esModule",{value:!0});function c(h,p,g,u,v){u=u||{};var m=1.15,y=v.internal.scaleFactor,_=v.internal.getFontSize()/y,S=v.getLineHeightFactor?v.getLineHeightFactor():m,A=_*S,P=/\r\n|\r|\n/g,z="",G=1;if((u.valign==="middle"||u.valign==="bottom"||u.halign==="center"||u.halign==="right")&&(z=typeof h=="string"?h.split(P):h,G=z.length||1),g+=_*(2-m),u.valign==="middle"?g-=G/2*A:u.valign==="bottom"&&(g-=G*A),u.halign==="center"||u.halign==="right"){var L=_;if(u.halign==="center"&&(L*=.5),z&&G>=1){for(var I=0;I<z.length;I++)v.text(z[I],p-v.getStringUnitWidth(z[I])*L,g),g+=A;return v}p-=v.getStringUnitWidth(h)*L}return u.halign==="justify"?v.text(h,p,g,{maxWidth:u.maxWidth||100,align:"justify"}):v.text(h,p,g),v}l.default=c}),420:(function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.getPageAvailableWidth=l.parseSpacing=l.getFillStyle=l.addTableBorder=l.getStringWidth=void 0;function c(v,m,y){y.applyStyles(m,!0);var _=Array.isArray(v)?v:[v],S=_.map(function(A){return y.getTextWidth(A)}).reduce(function(A,P){return Math.max(A,P)},0);return S}l.getStringWidth=c;function h(v,m,y,_){var S=m.settings.tableLineWidth,A=m.settings.tableLineColor;v.applyStyles({lineWidth:S,lineColor:A});var P=p(S,!1);P&&v.rect(y.x,y.y,m.getWidth(v.pageSize().width),_.y-y.y,P)}l.addTableBorder=h;function p(v,m){var y=v>0,_=m||m===0;return y&&_?"DF":y?"S":_?"F":null}l.getFillStyle=p;function g(v,m){var y,_,S,A;if(v=v||m,Array.isArray(v)){if(v.length>=4)return{top:v[0],right:v[1],bottom:v[2],left:v[3]};if(v.length===3)return{top:v[0],right:v[1],bottom:v[2],left:v[1]};if(v.length===2)return{top:v[0],right:v[1],bottom:v[0],left:v[1]};v.length===1?v=v[0]:v=m}return typeof v=="object"?(typeof v.vertical=="number"&&(v.top=v.vertical,v.bottom=v.vertical),typeof v.horizontal=="number"&&(v.right=v.horizontal,v.left=v.horizontal),{left:(y=v.left)!==null&&y!==void 0?y:m,top:(_=v.top)!==null&&_!==void 0?_:m,right:(S=v.right)!==null&&S!==void 0?S:m,bottom:(A=v.bottom)!==null&&A!==void 0?A:m}):(typeof v!="number"&&(v=m),{top:v,right:v,bottom:v,left:v})}l.parseSpacing=g;function u(v,m){var y=g(m.settings.margin,0);return v.pageSize().width-(y.left+y.right)}l.getPageAvailableWidth=u}),796:(function(o,l){var c=this&&this.__extends||(function(){var u=function(v,m){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,_){y.__proto__=_}||function(y,_){for(var S in _)Object.prototype.hasOwnProperty.call(_,S)&&(y[S]=_[S])},u(v,m)};return function(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");u(v,m);function y(){this.constructor=v}v.prototype=m===null?Object.create(m):(y.prototype=m.prototype,new y)}})();Object.defineProperty(l,"__esModule",{value:!0}),l.getTheme=l.defaultStyles=l.HtmlRowInput=void 0;var h=(function(u){c(v,u);function v(m){var y=u.call(this)||this;return y._element=m,y}return v})(Array);l.HtmlRowInput=h;function p(u){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/u,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}l.defaultStyles=p;function g(u){var v={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 v[u]}l.getTheme=g}),903:(function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.parseCss=void 0;var h=c(420);function p(y,_,S,A,P){var z={},G=1.3333333333333333,L=u(_,function(ne){return P.getComputedStyle(ne).backgroundColor});L!=null&&(z.fillColor=L);var I=u(_,function(ne){return P.getComputedStyle(ne).color});I!=null&&(z.textColor=I);var j=m(A,S);j&&(z.cellPadding=j);var V="borderTopColor",E=G*S,N=A.borderTopWidth;if(A.borderBottomWidth===N&&A.borderRightWidth===N&&A.borderLeftWidth===N){var H=(parseFloat(N)||0)/E;H&&(z.lineWidth=H)}else z.lineWidth={top:(parseFloat(A.borderTopWidth)||0)/E,right:(parseFloat(A.borderRightWidth)||0)/E,bottom:(parseFloat(A.borderBottomWidth)||0)/E,left:(parseFloat(A.borderLeftWidth)||0)/E},z.lineWidth.top||(z.lineWidth.right?V="borderRightColor":z.lineWidth.bottom?V="borderBottomColor":z.lineWidth.left&&(V="borderLeftColor"));var Y=u(_,function(ne){return P.getComputedStyle(ne)[V]});Y!=null&&(z.lineColor=Y);var fe=["left","right","center","justify"];fe.indexOf(A.textAlign)!==-1&&(z.halign=A.textAlign),fe=["middle","bottom","top"],fe.indexOf(A.verticalAlign)!==-1&&(z.valign=A.verticalAlign);var Q=parseInt(A.fontSize||"");isNaN(Q)||(z.fontSize=Q/G);var J=g(A);J&&(z.fontStyle=J);var oe=(A.fontFamily||"").toLowerCase();return y.indexOf(oe)!==-1&&(z.font=oe),z}l.parseCss=p;function g(y){var _="";return(y.fontWeight==="bold"||y.fontWeight==="bolder"||parseInt(y.fontWeight)>=700)&&(_="bold"),(y.fontStyle==="italic"||y.fontStyle==="oblique")&&(_+="italic"),_}function u(y,_){var S=v(y,_);if(!S)return null;var A=S.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!A||!Array.isArray(A))return null;var P=[parseInt(A[1]),parseInt(A[2]),parseInt(A[3])],z=parseInt(A[4]);return z===0||isNaN(P[0])||isNaN(P[1])||isNaN(P[2])?null:P}function v(y,_){var S=_(y);return S==="rgba(0, 0, 0, 0)"||S==="transparent"||S==="initial"||S==="inherit"?y.parentElement==null?null:v(y.parentElement,_):S}function m(y,_){var S=[y.paddingTop,y.paddingRight,y.paddingBottom,y.paddingLeft],A=96/(72/_),P=(parseInt(y.lineHeight)-parseInt(y.fontSize))/_/2,z=S.map(function(L){return parseInt(L||"0")/A}),G=(0,h.parseSpacing)(z,0);return P>G.top&&(G.top=P),P>G.bottom&&(G.bottom=P),G}}),744:(function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.DocHandler=void 0;var c={},h=(function(){function p(g){this.jsPDFDocument=g,this.userStyles={textColor:g.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:g.internal.getFontSize(),fontStyle:g.internal.getFont().fontStyle,font:g.internal.getFont().fontName,lineWidth:g.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:g.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return p.setDefaults=function(g,u){u===void 0&&(u=null),u?u.__autoTableDocumentDefaults=g:c=g},p.unifyColor=function(g){return Array.isArray(g)?g:typeof g=="number"?[g,g,g]:typeof g=="string"?[g]:null},p.prototype.applyStyles=function(g,u){var v,m,y;u===void 0&&(u=!1),g.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(g.fontStyle);var _=this.jsPDFDocument.internal.getFont(),S=_.fontStyle,A=_.fontName;if(g.font&&(A=g.font),g.fontStyle){S=g.fontStyle;var P=this.getFontList()[A];P&&P.indexOf(S)===-1&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(P[0]),S=P[0])}if(this.jsPDFDocument.setFont(A,S),g.fontSize&&this.jsPDFDocument.setFontSize(g.fontSize),!u){var z=p.unifyColor(g.fillColor);z&&(v=this.jsPDFDocument).setFillColor.apply(v,z),z=p.unifyColor(g.textColor),z&&(m=this.jsPDFDocument).setTextColor.apply(m,z),z=p.unifyColor(g.lineColor),z&&(y=this.jsPDFDocument).setDrawColor.apply(y,z),typeof g.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(g.lineWidth)}},p.prototype.splitTextToSize=function(g,u,v){return this.jsPDFDocument.splitTextToSize(g,u,v)},p.prototype.rect=function(g,u,v,m,y){return this.jsPDFDocument.rect(g,u,v,m,y)},p.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},p.prototype.getTextWidth=function(g){return this.jsPDFDocument.getTextWidth(g)},p.prototype.getDocument=function(){return this.jsPDFDocument},p.prototype.setPage=function(g){this.jsPDFDocument.setPage(g)},p.prototype.addPage=function(){return this.jsPDFDocument.addPage()},p.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},p.prototype.getGlobalOptions=function(){return c||{}},p.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},p.prototype.pageSize=function(){var g=this.jsPDFDocument.internal.pageSize;return g.width==null&&(g={width:g.getWidth(),height:g.getHeight()}),g},p.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},p.prototype.getLineHeightFactor=function(){var g=this.jsPDFDocument;return g.getLineHeightFactor?g.getLineHeightFactor():1.15},p.prototype.getLineHeight=function(g){return g/this.scaleFactor()*this.getLineHeightFactor()},p.prototype.pageNumber=function(){var g=this.jsPDFDocument.internal.getCurrentPageInfo();return g?g.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},p})();l.DocHandler=h}),4:(function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.parseHtml=void 0;var h=c(903),p=c(796);function g(m,y,_,S,A){var P,z;S===void 0&&(S=!1),A===void 0&&(A=!1);var G;typeof y=="string"?G=_.document.querySelector(y):G=y;var L=Object.keys(m.getFontList()),I=m.scaleFactor(),j=[],V=[],E=[];if(!G)return console.error("Html table could not be found with input: ",y),{head:j,body:V,foot:E};for(var N=0;N<G.rows.length;N++){var H=G.rows[N],Y=(z=(P=H==null?void 0:H.parentElement)===null||P===void 0?void 0:P.tagName)===null||z===void 0?void 0:z.toLowerCase(),fe=u(L,I,_,H,S,A);fe&&(Y==="thead"?j.push(fe):Y==="tfoot"?E.push(fe):V.push(fe))}return{head:j,body:V,foot:E}}l.parseHtml=g;function u(m,y,_,S,A,P){for(var z=new p.HtmlRowInput(S),G=0;G<S.cells.length;G++){var L=S.cells[G],I=_.getComputedStyle(L);if(A||I.display!=="none"){var j=void 0;P&&(j=(0,h.parseCss)(m,L,y,I,_)),z.push({rowSpan:L.rowSpan,colSpan:L.colSpan,styles:j,_element:L,content:v(L)})}}var V=_.getComputedStyle(S);if(z.length>0&&(A||V.display!=="none"))return z}function v(m){var y=m.cloneNode(!0);return y.innerHTML=y.innerHTML.replace(/\n/g,"").replace(/ +/g," "),y.innerHTML=y.innerHTML.split(/<br.*?>/).map(function(_){return _.trim()}).join(`
253
+ `),y.innerText||y.textContent||""}}),776:(function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.parseInput=void 0;var h=c(4),p=c(356),g=c(420),u=c(744),v=c(792);function m(G,L){var I=new u.DocHandler(G),j=I.getDocumentOptions(),V=I.getGlobalOptions();(0,v.default)(I,V,j,L);var E=(0,p.assign)({},V,j,L),N;typeof window<"u"&&(N=window);var H=y(V,j,L),Y=_(V,j,L),fe=S(I,E),Q=P(I,E,N);return{id:L.tableId,content:Q,hooks:Y,styles:H,settings:fe}}l.parseInput=m;function y(G,L,I){for(var j={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},V=function(Y){if(Y==="columnStyles"){var fe=G[Y],Q=L[Y],J=I[Y];j.columnStyles=(0,p.assign)({},fe,Q,J)}else{var oe=[G,L,I],ne=oe.map(function(ge){return ge[Y]||{}});j[Y]=(0,p.assign)({},ne[0],ne[1],ne[2])}},E=0,N=Object.keys(j);E<N.length;E++){var H=N[E];V(H)}return j}function _(G,L,I){for(var j=[G,L,I],V={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},E=0,N=j;E<N.length;E++){var H=N[E];H.didParseCell&&V.didParseCell.push(H.didParseCell),H.willDrawCell&&V.willDrawCell.push(H.willDrawCell),H.didDrawCell&&V.didDrawCell.push(H.didDrawCell),H.willDrawPage&&V.willDrawPage.push(H.willDrawPage),H.didDrawPage&&V.didDrawPage.push(H.didDrawPage)}return V}function S(G,L){var I,j,V,E,N,H,Y,fe,Q,J,oe,ne,ge=(0,g.parseSpacing)(L.margin,40/G.scaleFactor()),ye=(I=A(G,L.startY))!==null&&I!==void 0?I:ge.top,b;L.showFoot===!0?b="everyPage":L.showFoot===!1?b="never":b=(j=L.showFoot)!==null&&j!==void 0?j:"everyPage";var C;L.showHead===!0?C="everyPage":L.showHead===!1?C="never":C=(V=L.showHead)!==null&&V!==void 0?V:"everyPage";var k=(E=L.useCss)!==null&&E!==void 0?E:!1,O=L.theme||(k?"plain":"striped"),q=!!L.horizontalPageBreak,le=(N=L.horizontalPageBreakRepeat)!==null&&N!==void 0?N:null;return{includeHiddenHtml:(H=L.includeHiddenHtml)!==null&&H!==void 0?H:!1,useCss:k,theme:O,startY:ye,margin:ge,pageBreak:(Y=L.pageBreak)!==null&&Y!==void 0?Y:"auto",rowPageBreak:(fe=L.rowPageBreak)!==null&&fe!==void 0?fe:"auto",tableWidth:(Q=L.tableWidth)!==null&&Q!==void 0?Q:"auto",showHead:C,showFoot:b,tableLineWidth:(J=L.tableLineWidth)!==null&&J!==void 0?J:0,tableLineColor:(oe=L.tableLineColor)!==null&&oe!==void 0?oe:200,horizontalPageBreak:q,horizontalPageBreakRepeat:le,horizontalPageBreakBehaviour:(ne=L.horizontalPageBreakBehaviour)!==null&&ne!==void 0?ne:"afterAllRows"}}function A(G,L){var I=G.getLastAutoTable(),j=G.scaleFactor(),V=G.pageNumber(),E=!1;if(I&&I.startPageNumber){var N=I.startPageNumber+I.pageNumber-1;E=N===V}return typeof L=="number"?L:(L==null||L===!1)&&E&&(I==null?void 0:I.finalY)!=null?I.finalY+20/j:null}function P(G,L,I){var j=L.head||[],V=L.body||[],E=L.foot||[];if(L.html){var N=L.includeHiddenHtml;if(I){var H=(0,h.parseHtml)(G,L.html,I,N,L.useCss)||{};j=H.head||j,V=H.body||j,E=H.foot||j}else console.error("Cannot parse html in non browser environment")}var Y=L.columns||z(j,V,E);return{columns:Y,head:j,body:V,foot:E}}function z(G,L,I){var j=G[0]||L[0]||I[0]||[],V=[];return Object.keys(j).filter(function(E){return E!=="_element"}).forEach(function(E){var N=1,H;Array.isArray(j)?H=j[parseInt(E)]:H=j[E],typeof H=="object"&&!Array.isArray(H)&&(N=(H==null?void 0:H.colSpan)||1);for(var Y=0;Y<N;Y++){var fe=void 0;Array.isArray(j)?fe=V.length:fe=E+(Y>0?"_".concat(Y):"");var Q={dataKey:fe};V.push(Q)}}),V}}),792:(function(o,l){Object.defineProperty(l,"__esModule",{value:!0});function c(p,g,u,v){for(var m=function(A){A&&typeof A!="object"&&console.error("The options parameter should be of type object, is: "+typeof A),typeof A.extendWidth<"u"&&(A.tableWidth=A.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),typeof A.margins<"u"&&(typeof A.margin>"u"&&(A.margin=A.margins),console.error("Use of deprecated option: margins, use margin instead.")),A.startY&&typeof A.startY!="number"&&(console.error("Invalid value for startY option",A.startY),delete A.startY),!A.didDrawPage&&(A.afterPageContent||A.beforePageContent||A.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),A.didDrawPage=function(E){p.applyStyles(p.userStyles),A.beforePageContent&&A.beforePageContent(E),p.applyStyles(p.userStyles),A.afterPageContent&&A.afterPageContent(E),p.applyStyles(p.userStyles),A.afterPageAdd&&E.pageNumber>1&&E.afterPageAdd(E),p.applyStyles(p.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach(function(E){A[E]&&console.error('The "'.concat(E,'" 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(E){var N=E[0],H=E[1];A[H]&&(console.error("Use of deprecated option ".concat(H,". Use ").concat(N," instead")),A[N]=A[H])}),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(E){var N=typeof E=="string"?E:E[0],H=typeof E=="string"?E:E[1];typeof A[N]<"u"&&(typeof A.styles[H]>"u"&&(A.styles[H]=A[N]),console.error("Use of deprecated option: "+N+", use the style "+H+" instead."))});for(var P=0,z=["styles","bodyStyles","headStyles","footStyles"];P<z.length;P++){var G=z[P];h(A[G]||{})}for(var L=A.columnStyles||{},I=0,j=Object.keys(L);I<j.length;I++){var V=j[I];h(L[V]||{})}},y=0,_=[g,u,v];y<_.length;y++){var S=_[y];m(S)}}l.default=c;function h(p){p.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),p.minCellHeight||(p.minCellHeight=p.rowHeight)):p.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),p.cellWidth||(p.cellWidth=p.columnWidth))}}),260:(function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.Column=l.Cell=l.Row=l.Table=void 0;var h=c(796),p=c(172),g=c(420),u=(function(){function _(S,A){this.pageNumber=1,this.pageCount=1,this.id=S.id,this.settings=S.settings,this.styles=S.styles,this.hooks=S.hooks,this.columns=A.columns,this.head=A.head,this.body=A.body,this.foot=A.foot}return _.prototype.getHeadHeight=function(S){return this.head.reduce(function(A,P){return A+P.getMaxCellHeight(S)},0)},_.prototype.getFootHeight=function(S){return this.foot.reduce(function(A,P){return A+P.getMaxCellHeight(S)},0)},_.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},_.prototype.callCellHooks=function(S,A,P,z,G,L){for(var I=0,j=A;I<j.length;I++){var V=j[I],E=new p.CellHookData(S,this,P,z,G,L),N=V(E)===!1;if(P.text=Array.isArray(P.text)?P.text:[P.text],N)return!1}return!0},_.prototype.callEndPageHooks=function(S,A){S.applyStyles(S.userStyles);for(var P=0,z=this.hooks.didDrawPage;P<z.length;P++){var G=z[P];G(new p.HookData(S,this,A))}},_.prototype.callWillDrawPageHooks=function(S,A){for(var P=0,z=this.hooks.willDrawPage;P<z.length;P++){var G=z[P];G(new p.HookData(S,this,A))}},_.prototype.getWidth=function(S){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var A=this.columns.reduce(function(z,G){return z+G.wrappedWidth},0);return A}else{var P=this.settings.margin;return S-P.left-P.right}},_})();l.Table=u;var v=(function(){function _(S,A,P,z,G){G===void 0&&(G=!1),this.height=0,this.raw=S,S instanceof h.HtmlRowInput&&(this.raw=S._element,this.element=S._element),this.index=A,this.section=P,this.cells=z,this.spansMultiplePages=G}return _.prototype.getMaxCellHeight=function(S){var A=this;return S.reduce(function(P,z){var G;return Math.max(P,((G=A.cells[z.index])===null||G===void 0?void 0:G.height)||0)},0)},_.prototype.hasRowSpan=function(S){var A=this;return S.filter(function(P){var z=A.cells[P.index];return z?z.rowSpan>1:!1}).length>0},_.prototype.canEntireRowFit=function(S,A){return this.getMaxCellHeight(A)<=S},_.prototype.getMinimumRowHeight=function(S,A){var P=this;return S.reduce(function(z,G){var L=P.cells[G.index];if(!L)return 0;var I=A.getLineHeight(L.styles.fontSize),j=L.padding("vertical"),V=j+I;return V>z?V:z},0)},_})();l.Row=v;var m=(function(){function _(S,A,P){var z,G;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=A,this.section=P,this.raw=S;var L=S;S!=null&&typeof S=="object"&&!Array.isArray(S)?(this.rowSpan=S.rowSpan||1,this.colSpan=S.colSpan||1,L=(G=(z=S.content)!==null&&z!==void 0?z:S.title)!==null&&G!==void 0?G:S,S._element&&(this.raw=S._element)):(this.rowSpan=1,this.colSpan=1);var I=L!=null?""+L:"",j=/\r\n|\r|\n/g;this.text=I.split(j)}return _.prototype.getTextPos=function(){var S;if(this.styles.valign==="top")S=this.y+this.padding("top");else if(this.styles.valign==="bottom")S=this.y+this.height-this.padding("bottom");else{var A=this.height-this.padding("vertical");S=this.y+A/2+this.padding("top")}var P;if(this.styles.halign==="right")P=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var z=this.width-this.padding("horizontal");P=this.x+z/2+this.padding("left")}else P=this.x+this.padding("left");return{x:P,y:S}},_.prototype.getContentHeight=function(S,A){A===void 0&&(A=1.15);var P=Array.isArray(this.text)?this.text.length:1,z=this.styles.fontSize/S*A,G=P*z+this.padding("vertical");return Math.max(G,this.styles.minCellHeight)},_.prototype.padding=function(S){var A=(0,g.parseSpacing)(this.styles.cellPadding,0);return S==="vertical"?A.top+A.bottom:S==="horizontal"?A.left+A.right:A[S]},_})();l.Cell=m;var y=(function(){function _(S,A,P){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=S,this.raw=A,this.index=P}return _.prototype.getMaxCustomCellWidth=function(S){for(var A=0,P=0,z=S.allRows();P<z.length;P++){var G=z[P],L=G.cells[this.index];L&&typeof L.styles.cellWidth=="number"&&(A=Math.max(A,L.styles.cellWidth))}return A},_})();l.Column=y}),356:(function(o,l){Object.defineProperty(l,"__esModule",{value:!0}),l.assign=void 0;function c(h,p,g,u,v){if(h==null)throw new TypeError("Cannot convert undefined or null to object");for(var m=Object(h),y=1;y<arguments.length;y++){var _=arguments[y];if(_!=null)for(var S in _)Object.prototype.hasOwnProperty.call(_,S)&&(m[S]=_[S])}return m}l.assign=c}),972:(function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.createTable=void 0;var h=c(744),p=c(260),g=c(324),u=c(796),v=c(356);function m(G,L){var I=new h.DocHandler(G),j=y(L,I.scaleFactor()),V=new p.Table(L,j);return(0,g.calculateWidths)(I,V),I.applyStyles(I.userStyles),V}l.createTable=m;function y(G,L){var I=G.content,j=P(I.columns);if(I.head.length===0){var V=S(j,"head");V&&I.head.push(V)}if(I.foot.length===0){var V=S(j,"foot");V&&I.foot.push(V)}var E=G.settings.theme,N=G.styles;return{columns:j,head:_("head",I.head,j,N,E,L),body:_("body",I.body,j,N,E,L),foot:_("foot",I.foot,j,N,E,L)}}function _(G,L,I,j,V,E){var N={},H=L.map(function(Y,fe){for(var Q=0,J={},oe=0,ne=0,ge=0,ye=I;ge<ye.length;ge++){var b=ye[ge];if(N[b.index]==null||N[b.index].left===0)if(ne===0){var C=void 0;Array.isArray(Y)?C=Y[b.index-oe-Q]:C=Y[b.dataKey];var k={};typeof C=="object"&&!Array.isArray(C)&&(k=(C==null?void 0:C.styles)||{});var O=z(G,b,fe,V,j,E,k),q=new p.Cell(C,O,G);J[b.dataKey]=q,J[b.index]=q,ne=q.colSpan-1,N[b.index]={left:q.rowSpan-1,times:ne}}else ne--,oe++;else N[b.index].left--,ne=N[b.index].times,Q++}return new p.Row(Y,fe,G,J)});return H}function S(G,L){var I={};return G.forEach(function(j){if(j.raw!=null){var V=A(L,j.raw);V!=null&&(I[j.dataKey]=V)}}),Object.keys(I).length>0?I:null}function A(G,L){if(G==="head"){if(typeof L=="object")return L.header||L.title||null;if(typeof L=="string"||typeof L=="number")return L}else if(G==="foot"&&typeof L=="object")return L.footer;return null}function P(G){return G.map(function(L,I){var j,V,E;return typeof L=="object"?E=(V=(j=L.dataKey)!==null&&j!==void 0?j:L.key)!==null&&V!==void 0?V:I:E=I,new p.Column(E,L,I)})}function z(G,L,I,j,V,E,N){var H=(0,u.getTheme)(j),Y;G==="head"?Y=V.headStyles:G==="body"?Y=V.bodyStyles:G==="foot"&&(Y=V.footStyles);var fe=(0,v.assign)({},H.table,H[G],V.styles,Y),Q=V.columnStyles[L.dataKey]||V.columnStyles[L.index]||{},J=G==="body"?Q:{},oe=G==="body"&&I%2===0?(0,v.assign)({},H.alternateRow,V.alternateRowStyles):{},ne=(0,u.defaultStyles)(E),ge=(0,v.assign)({},ne,fe,oe,J);return(0,v.assign)(ge,N)}}),664:(function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.addPage=l.drawTable=void 0;var h=c(420),p=c(260),g=c(744),u=c(356),v=c(136),m=c(224);function y(Q,J){var oe=J.settings,ne=oe.startY,ge=oe.margin,ye={x:ge.left,y:ne},b=J.getHeadHeight(J.columns)+J.getFootHeight(J.columns),C=ne+ge.bottom+b;if(oe.pageBreak==="avoid"){var k=J.body,O=k.reduce(function(ce,ue){return ce+ue.height},0);C+=O}var q=new g.DocHandler(Q);(oe.pageBreak==="always"||oe.startY!=null&&C>q.pageSize().height)&&(fe(q),ye.y=ge.top),J.callWillDrawPageHooks(q,ye);var le=(0,u.assign)({},ye);J.startPageNumber=q.pageNumber(),oe.horizontalPageBreak?_(q,J,le,ye):(q.applyStyles(q.userStyles),(oe.showHead==="firstPage"||oe.showHead==="everyPage")&&J.head.forEach(function(ce){return V(q,J,ce,ye,J.columns)}),q.applyStyles(q.userStyles),J.body.forEach(function(ce,ue){var we=ue===J.body.length-1;j(q,J,ce,we,le,ye,J.columns)}),q.applyStyles(q.userStyles),(oe.showFoot==="lastPage"||oe.showFoot==="everyPage")&&J.foot.forEach(function(ce){return V(q,J,ce,ye,J.columns)})),(0,h.addTableBorder)(q,J,le,ye),J.callEndPageHooks(q,ye),J.finalY=ye.y,Q.lastAutoTable=J,Q.previousAutoTable=J,Q.autoTable&&(Q.autoTable.previous=J),q.applyStyles(q.userStyles)}l.drawTable=y;function _(Q,J,oe,ne){var ge=(0,m.calculateAllColumnsCanFitInPage)(Q,J),ye=J.settings;if(ye.horizontalPageBreakBehaviour==="afterAllRows")ge.forEach(function(O,q){Q.applyStyles(Q.userStyles),q>0?Y(Q,J,oe,ne,O.columns,!0):S(Q,J,ne,O.columns),A(Q,J,oe,ne,O.columns),z(Q,J,ne,O.columns)});else for(var b=-1,C=ge[0],k=function(){var O=b;if(C){Q.applyStyles(Q.userStyles);var q=C.columns;b>=0?Y(Q,J,oe,ne,q,!0):S(Q,J,ne,q),O=P(Q,J,b+1,ne,q),z(Q,J,ne,q)}var le=O-b;ge.slice(1).forEach(function(ce){Q.applyStyles(Q.userStyles),Y(Q,J,oe,ne,ce.columns,!0),P(Q,J,b+1,ne,ce.columns,le),z(Q,J,ne,ce.columns)}),b=O};b<J.body.length-1;)k()}function S(Q,J,oe,ne){var ge=J.settings;Q.applyStyles(Q.userStyles),(ge.showHead==="firstPage"||ge.showHead==="everyPage")&&J.head.forEach(function(ye){return V(Q,J,ye,oe,ne)})}function A(Q,J,oe,ne,ge){Q.applyStyles(Q.userStyles),J.body.forEach(function(ye,b){var C=b===J.body.length-1;j(Q,J,ye,C,oe,ne,ge)})}function P(Q,J,oe,ne,ge,ye){Q.applyStyles(Q.userStyles),ye=ye??J.body.length;var b=Math.min(oe+ye,J.body.length),C=-1;return J.body.slice(oe,b).forEach(function(k,O){var q=oe+O===J.body.length-1,le=H(Q,J,q,ne);k.canEntireRowFit(le,ge)&&(V(Q,J,k,ne,ge),C=oe+O)}),C}function z(Q,J,oe,ne){var ge=J.settings;Q.applyStyles(Q.userStyles),(ge.showFoot==="lastPage"||ge.showFoot==="everyPage")&&J.foot.forEach(function(ye){return V(Q,J,ye,oe,ne)})}function G(Q,J,oe){var ne=oe.getLineHeight(Q.styles.fontSize),ge=Q.padding("vertical"),ye=Math.floor((J-ge)/ne);return Math.max(0,ye)}function L(Q,J,oe,ne){var ge={};Q.spansMultiplePages=!0,Q.height=0;for(var ye=0,b=0,C=oe.columns;b<C.length;b++){var k=C[b],O=Q.cells[k.index];if(O){Array.isArray(O.text)||(O.text=[O.text]);var q=new p.Cell(O.raw,O.styles,O.section);q=(0,u.assign)(q,O),q.text=[];var le=G(O,J,ne);O.text.length>le&&(q.text=O.text.splice(le,O.text.length));var ce=ne.scaleFactor(),ue=ne.getLineHeightFactor();O.contentHeight=O.getContentHeight(ce,ue),O.contentHeight>=J&&(O.contentHeight=J,q.styles.minCellHeight-=J),O.contentHeight>Q.height&&(Q.height=O.contentHeight),q.contentHeight=q.getContentHeight(ce,ue),q.contentHeight>ye&&(ye=q.contentHeight),ge[k.index]=q}}var we=new p.Row(Q.raw,-1,Q.section,ge,!0);we.height=ye;for(var Pe=0,Re=oe.columns;Pe<Re.length;Pe++){var k=Re[Pe],q=we.cells[k.index];q&&(q.height=we.height);var O=Q.cells[k.index];O&&(O.height=Q.height)}return we}function I(Q,J,oe,ne){var ge=Q.pageSize().height,ye=ne.settings.margin,b=ye.top+ye.bottom,C=ge-b;J.section==="body"&&(C-=ne.getHeadHeight(ne.columns)+ne.getFootHeight(ne.columns));var k=J.getMinimumRowHeight(ne.columns,Q),O=k<oe;if(k>C)return console.error("Will not be able to print row ".concat(J.index," correctly since it's minimum height is larger than page height")),!0;if(!O)return!1;var q=J.hasRowSpan(ne.columns),le=J.getMaxCellHeight(ne.columns)>C;return le?(q&&console.error("The content of row ".concat(J.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):!(q||ne.settings.rowPageBreak==="avoid")}function j(Q,J,oe,ne,ge,ye,b){var C=H(Q,J,ne,ye);if(oe.canEntireRowFit(C,b))V(Q,J,oe,ye,b);else if(I(Q,oe,C,J)){var k=L(oe,C,J,Q);V(Q,J,oe,ye,b),Y(Q,J,ge,ye,b),j(Q,J,k,ne,ge,ye,b)}else Y(Q,J,ge,ye,b),j(Q,J,oe,ne,ge,ye,b)}function V(Q,J,oe,ne,ge){ne.x=J.settings.margin.left;for(var ye=0,b=ge;ye<b.length;ye++){var C=b[ye],k=oe.cells[C.index];if(!k){ne.x+=C.width;continue}Q.applyStyles(k.styles),k.x=ne.x,k.y=ne.y;var O=J.callCellHooks(Q,J.hooks.willDrawCell,k,oe,C,ne);if(O===!1){ne.x+=C.width;continue}E(Q,k,ne);var q=k.getTextPos();(0,v.default)(k.text,q.x,q.y,{halign:k.styles.halign,valign:k.styles.valign,maxWidth:Math.ceil(k.width-k.padding("left")-k.padding("right"))},Q.getDocument()),J.callCellHooks(Q,J.hooks.didDrawCell,k,oe,C,ne),ne.x+=C.width}ne.y+=oe.height}function E(Q,J,oe){var ne=J.styles;if(Q.getDocument().setFillColor(Q.getDocument().getFillColor()),typeof ne.lineWidth=="number"){var ge=(0,h.getFillStyle)(ne.lineWidth,ne.fillColor);ge&&Q.rect(J.x,oe.y,J.width,J.height,ge)}else typeof ne.lineWidth=="object"&&(ne.fillColor&&Q.rect(J.x,oe.y,J.width,J.height,"F"),N(Q,J,oe,ne.lineWidth))}function N(Q,J,oe,ne){var ge,ye,b,C;ne.top&&(ge=oe.x,ye=oe.y,b=oe.x+J.width,C=oe.y,ne.right&&(b+=.5*ne.right),ne.left&&(ge-=.5*ne.left),k(ne.top,ge,ye,b,C)),ne.bottom&&(ge=oe.x,ye=oe.y+J.height,b=oe.x+J.width,C=oe.y+J.height,ne.right&&(b+=.5*ne.right),ne.left&&(ge-=.5*ne.left),k(ne.bottom,ge,ye,b,C)),ne.left&&(ge=oe.x,ye=oe.y,b=oe.x,C=oe.y+J.height,ne.top&&(ye-=.5*ne.top),ne.bottom&&(C+=.5*ne.bottom),k(ne.left,ge,ye,b,C)),ne.right&&(ge=oe.x+J.width,ye=oe.y,b=oe.x+J.width,C=oe.y+J.height,ne.top&&(ye-=.5*ne.top),ne.bottom&&(C+=.5*ne.bottom),k(ne.right,ge,ye,b,C));function k(O,q,le,ce,ue){Q.getDocument().setLineWidth(O),Q.getDocument().line(q,le,ce,ue,"S")}}function H(Q,J,oe,ne){var ge=J.settings.margin.bottom,ye=J.settings.showFoot;return(ye==="everyPage"||ye==="lastPage"&&oe)&&(ge+=J.getFootHeight(J.columns)),Q.pageSize().height-ne.y-ge}function Y(Q,J,oe,ne,ge,ye){ge===void 0&&(ge=[]),ye===void 0&&(ye=!1),Q.applyStyles(Q.userStyles),J.settings.showFoot==="everyPage"&&!ye&&J.foot.forEach(function(C){return V(Q,J,C,ne,ge)}),J.callEndPageHooks(Q,ne);var b=J.settings.margin;(0,h.addTableBorder)(Q,J,oe,ne),fe(Q),J.pageNumber++,J.pageCount++,ne.x=b.left,ne.y=b.top,oe.y=b.top,J.callWillDrawPageHooks(Q,ne),J.settings.showHead==="everyPage"&&(J.head.forEach(function(C){return V(Q,J,C,ne,ge)}),Q.applyStyles(Q.userStyles))}l.addPage=Y;function fe(Q){var J=Q.pageNumber();Q.setPage(J+1);var oe=Q.pageNumber();return oe===J?(Q.addPage(),!0):!1}}),224:(function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.calculateAllColumnsCanFitInPage=void 0;var h=c(420);function p(u,v,m){var y;m===void 0&&(m={});var _=(0,h.getPageAvailableWidth)(u,v),S=new Map,A=[],P=[],z=[];v.settings.horizontalPageBreakRepeat,Array.isArray(v.settings.horizontalPageBreakRepeat)?z=v.settings.horizontalPageBreakRepeat:(typeof v.settings.horizontalPageBreakRepeat=="string"||typeof v.settings.horizontalPageBreakRepeat=="number")&&(z=[v.settings.horizontalPageBreakRepeat]),z.forEach(function(j){var V=v.columns.find(function(E){return E.dataKey===j||E.index===j});V&&!S.has(V.index)&&(S.set(V.index,!0),A.push(V.index),P.push(v.columns[V.index]),_-=V.wrappedWidth)});for(var G=!0,L=(y=m==null?void 0:m.start)!==null&&y!==void 0?y:0;L<v.columns.length;){if(S.has(L)){L++;continue}var I=v.columns[L].wrappedWidth;if(G||_>=I)G=!1,A.push(L),P.push(v.columns[L]),_-=I;else break;L++}return{colIndexes:A,columns:P,lastIndex:L-1}}function g(u,v){for(var m=[],y=0;y<v.columns.length;y++){var _=p(u,v,{start:y});_.columns.length&&(m.push(_),y=_.lastIndex)}return m}l.calculateAllColumnsCanFitInPage=g}),324:(function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.ellipsize=l.resizeColumns=l.calculateWidths=void 0;var h=c(420);function p(A,P){g(A,P);var z=[],G=0;P.columns.forEach(function(I){var j=I.getMaxCustomCellWidth(P);j?I.width=j:(I.width=I.wrappedWidth,z.push(I)),G+=I.width});var L=P.getWidth(A.pageSize().width)-G;L&&(L=u(z,L,function(I){return Math.max(I.minReadableWidth,I.minWidth)})),L&&(L=u(z,L,function(I){return I.minWidth})),L=Math.abs(L),!P.settings.horizontalPageBreak&&L>.1/A.scaleFactor()&&(L=L<1?L:Math.round(L),console.warn("Of the table content, ".concat(L," units width could not fit page"))),m(P),y(P,A),v(P)}l.calculateWidths=p;function g(A,P){var z=A.scaleFactor(),G=P.settings.horizontalPageBreak,L=(0,h.getPageAvailableWidth)(A,P);P.allRows().forEach(function(I){for(var j=0,V=P.columns;j<V.length;j++){var E=V[j],N=I.cells[E.index];if(N){var H=P.hooks.didParseCell;P.callCellHooks(A,H,N,I,E,null);var Y=N.padding("horizontal");N.contentWidth=(0,h.getStringWidth)(N.text,N.styles,A)+Y;var fe=(0,h.getStringWidth)(N.text.join(" ").split(/[^\S\u00A0]+/),N.styles,A);if(N.minReadableWidth=fe+N.padding("horizontal"),typeof N.styles.cellWidth=="number")N.minWidth=N.styles.cellWidth,N.wrappedWidth=N.styles.cellWidth;else if(N.styles.cellWidth==="wrap"||G===!0)N.contentWidth>L?(N.minWidth=L,N.wrappedWidth=L):(N.minWidth=N.contentWidth,N.wrappedWidth=N.contentWidth);else{var Q=10/z;N.minWidth=N.styles.minCellWidth||Q,N.wrappedWidth=N.contentWidth,N.minWidth>N.wrappedWidth&&(N.wrappedWidth=N.minWidth)}}}}),P.allRows().forEach(function(I){for(var j=0,V=P.columns;j<V.length;j++){var E=V[j],N=I.cells[E.index];if(N&&N.colSpan===1)E.wrappedWidth=Math.max(E.wrappedWidth,N.wrappedWidth),E.minWidth=Math.max(E.minWidth,N.minWidth),E.minReadableWidth=Math.max(E.minReadableWidth,N.minReadableWidth);else{var H=P.styles.columnStyles[E.dataKey]||P.styles.columnStyles[E.index]||{},Y=H.cellWidth||H.minCellWidth;Y&&typeof Y=="number"&&(E.minWidth=Y,E.wrappedWidth=Y)}N&&(N.colSpan>1&&!E.minWidth&&(E.minWidth=N.minWidth),N.colSpan>1&&!E.wrappedWidth&&(E.wrappedWidth=N.minWidth))}})}function u(A,P,z){for(var G=P,L=A.reduce(function(Q,J){return Q+J.wrappedWidth},0),I=0;I<A.length;I++){var j=A[I],V=j.wrappedWidth/L,E=G*V,N=j.width+E,H=z(j),Y=N<H?H:N;P-=Y-j.width,j.width=Y}if(P=Math.round(P*1e10)/1e10,P){var fe=A.filter(function(Q){return P<0?Q.width>z(Q):!0});fe.length&&(P=u(fe,P,z))}return P}l.resizeColumns=u;function v(A){for(var P={},z=1,G=A.allRows(),L=0;L<G.length;L++)for(var I=G[L],j=0,V=A.columns;j<V.length;j++){var E=V[j],N=P[E.index];if(z>1)z--,delete I.cells[E.index];else if(N)N.cell.height+=I.height,z=N.cell.colSpan,delete I.cells[E.index],N.left--,N.left<=1&&delete P[E.index];else{var H=I.cells[E.index];if(!H)continue;if(H.height=I.height,H.rowSpan>1){var Y=G.length-L,fe=H.rowSpan>Y?Y:H.rowSpan;P[E.index]={cell:H,left:fe,row:I}}}}}function m(A){for(var P=A.allRows(),z=0;z<P.length;z++)for(var G=P[z],L=null,I=0,j=0,V=0;V<A.columns.length;V++){var E=A.columns[V];if(j-=1,j>1&&A.columns[V+1])I+=E.width,delete G.cells[E.index];else if(L){var N=L;delete G.cells[E.index],L=null,N.width=E.width+I}else{var N=G.cells[E.index];if(!N)continue;if(j=N.colSpan,I=0,N.colSpan>1){L=N,I+=E.width;continue}N.width=E.width+I}}}function y(A,P){for(var z={count:0,height:0},G=0,L=A.allRows();G<L.length;G++){for(var I=L[G],j=0,V=A.columns;j<V.length;j++){var E=V[j],N=I.cells[E.index];if(N){P.applyStyles(N.styles,!0);var H=N.width-N.padding("horizontal");if(N.styles.overflow==="linebreak")N.text=P.splitTextToSize(N.text,H+1/P.scaleFactor(),{fontSize:N.styles.fontSize});else if(N.styles.overflow==="ellipsize")N.text=_(N.text,H,N.styles,P,"...");else if(N.styles.overflow==="hidden")N.text=_(N.text,H,N.styles,P,"");else if(typeof N.styles.overflow=="function"){var Y=N.styles.overflow(N.text,H);typeof Y=="string"?N.text=[Y]:N.text=Y}N.contentHeight=N.getContentHeight(P.scaleFactor(),P.getLineHeightFactor());var fe=N.contentHeight/N.rowSpan;N.rowSpan>1&&z.count*z.height<fe*N.rowSpan?z={height:fe,count:N.rowSpan}:z&&z.count>0&&z.height>fe&&(fe=z.height),fe>I.height&&(I.height=fe)}}z.count--}}function _(A,P,z,G,L){return A.map(function(I){return S(I,P,z,G,L)})}l.ellipsize=_;function S(A,P,z,G,L){var I=1e4*G.scaleFactor();if(P=Math.ceil(P*I)/I,P>=(0,h.getStringWidth)(A,z,G))return A;for(;P<(0,h.getStringWidth)(A+L,z,G)&&!(A.length<=1);)A=A.substring(0,A.length-1);return A.trim()+L}}),964:(function(o){if(typeof t>"u"){var l=new Error("Cannot find module 'undefined'");throw l.code="MODULE_NOT_FOUND",l}o.exports=t})},i={};function a(o){var l=i[o];if(l!==void 0)return l.exports;var c=i[o]={exports:{}};return n[o].call(c.exports,c,c.exports,a),c.exports}var s={};return(function(){var o=s;Object.defineProperty(o,"__esModule",{value:!0}),o.Cell=o.Column=o.Row=o.Table=o.CellHookData=o.__drawTable=o.__createTable=o.applyPlugin=void 0;var l=a(340),c=a(776),h=a(664),p=a(972),g=a(260);Object.defineProperty(o,"Table",{enumerable:!0,get:function(){return g.Table}});var u=a(172);Object.defineProperty(o,"CellHookData",{enumerable:!0,get:function(){return u.CellHookData}});var v=a(260);Object.defineProperty(o,"Cell",{enumerable:!0,get:function(){return v.Cell}}),Object.defineProperty(o,"Column",{enumerable:!0,get:function(){return v.Column}}),Object.defineProperty(o,"Row",{enumerable:!0,get:function(){return v.Row}});function m(P){(0,l.default)(P)}o.applyPlugin=m;function y(P,z){var G=(0,c.parseInput)(P,z),L=(0,p.createTable)(P,G);(0,h.drawTable)(P,L)}function _(P,z){var G=(0,c.parseInput)(P,z);return(0,p.createTable)(P,G)}o.__createTable=_;function S(P,z){(0,h.drawTable)(P,z)}o.__drawTable=S;try{var A=a(964);A.jsPDF&&(A=A.jsPDF),m(A)}catch{}o.default=y})(),s})()})})($0)),$0.exports}Lp();function Fp({title:e,subtitle:r,headers:t,rows:n,filename:i,orientation:a="portrait"}){const s=new ht(a);s.setFontSize(18),s.setTextColor(30,41,59),s.text(e,14,22),r&&(s.setFontSize(10),s.setTextColor(100,116,139),s.text(r,14,30)),s.autoTable({startY:r?36:30,head:[t],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 o=s.internal.getNumberOfPages();for(let l=1;l<=o;l++)s.setPage(l),s.setFontSize(8),s.setTextColor(148,163,184),s.text(`Generated on ${new Date().toLocaleDateString()} | Page ${l} of ${o}`,14,s.internal.pageSize.height-10);s.save(`${i}.pdf`)}function Cp({student:e,exams:r,schoolName:t}){var a;const n=new ht;n.setFontSize(16),n.setTextColor(30,41,59),n.text(t||"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;(r||[]).forEach(s=>{n.setFontSize(11),n.setTextColor(30,41,59),n.text(s.name,14,i),i+=4,s.subjects&&s.subjects.length>0&&(n.autoTable({startY:i,head:[["Subject","Marks","Total","Grade"]],body:s.subjects.map(o=>[o.name,o.marks,o.total,o.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 kp({student:e,payment:r,schoolName:t}){const n=new ht;n.setFontSize(16),n.text(t||"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",r.ref||r.reference||`RCP-${Date.now()}`],["Date",r.date||new Date().toLocaleDateString()],["Amount Paid",`Rs. ${(r.amount||0).toLocaleString()}`],["Payment Method",r.method||"Online"],["Status",r.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 Pp({className:e,date:r,records:t,summary:n}){const i=new ht;i.setFontSize(16),i.text("Attendance Report",14,20),i.setFontSize(10),i.setTextColor(71,85,105),i.text(`Class: ${e} | Date: ${r}`,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: ${(t==null?void 0:t.length)||0}`,14,34),i.autoTable({startY:42,head:[["Roll No","Student Name","Status"]],body:(t||[]).map(a=>[a.roll_number||"",a.full_name||"",a.status||""]),styles:{fontSize:9},headStyles:{fillColor:[14,165,233]}}),i.save(`attendance-${e}-${r}.pdf`)}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var J0={};J0.version="0.18.5";var Nh=1252,Ip=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Th=function(e){Ip.indexOf(e)!=-1&&(Nh=e)};function Op(){Th(1252)}var Do=function(e){Th(e)};function Dp(){Do(1200),Op()}var U0=function(r){return String.fromCharCode(r)},cu=function(r){return String.fromCharCode(r)},Z0,pa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Ro(e){for(var r="",t=0,n=0,i=0,a=0,s=0,o=0,l=0,c=0;c<e.length;)t=e.charCodeAt(c++),a=t>>2,n=e.charCodeAt(c++),s=(t&3)<<4|n>>4,i=e.charCodeAt(c++),o=(n&15)<<2|i>>6,l=i&63,isNaN(n)?o=l=64:isNaN(i)&&(l=64),r+=pa.charAt(a)+pa.charAt(s)+pa.charAt(o)+pa.charAt(l);return r}function qi(e){var r="",t=0,n=0,i=0,a=0,s=0,o=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<e.length;)a=pa.indexOf(e.charAt(c++)),s=pa.indexOf(e.charAt(c++)),t=a<<2|s>>4,r+=String.fromCharCode(t),o=pa.indexOf(e.charAt(c++)),n=(s&15)<<4|o>>2,o!==64&&(r+=String.fromCharCode(n)),l=pa.indexOf(e.charAt(c++)),i=(o&3)<<6|l,l!==64&&(r+=String.fromCharCode(i));return r}var Ut=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),Vi=(function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(r,t){return t?new Buffer(r,t):new Buffer(r)}:Buffer.from.bind(Buffer)}return function(){}})();function Wa(e){return Ut?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function uu(e){return Ut?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var fi=function(r){return Ut?Vi(r,"binary"):r.split("").map(function(t){return t.charCodeAt(0)&255})};function gl(e){if(typeof ArrayBuffer>"u")return fi(e);for(var r=new ArrayBuffer(e.length),t=new Uint8Array(r),n=0;n!=e.length;++n)t[n]=e.charCodeAt(n)&255;return r}function Ho(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var r=[],t=0;t<e.length;++t)r[t]=String.fromCharCode(e[t]);return r.join("")}function Rp(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var Gr=Ut?function(e){return Buffer.concat(e.map(function(r){return Buffer.isBuffer(r)?r:Vi(r)}))}:function(e){if(typeof Uint8Array<"u"){var r=0,t=0;for(r=0;r<e.length;++r)t+=e[r].length;var n=new Uint8Array(t),i=0;for(r=0,t=0;r<e.length;t+=i,++r)if(i=e[r].length,e[r]instanceof Uint8Array)n.set(e[r],t);else{if(typeof e[r]=="string")throw"wtf";n.set(new Uint8Array(e[r]),t)}return n}return[].concat.apply([],e.map(function(a){return Array.isArray(a)?a:[].slice.call(a)}))};function jp(e){for(var r=[],t=0,n=e.length+250,i=Wa(e.length+255),a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s<128)i[t++]=s;else if(s<2048)i[t++]=192|s>>6&31,i[t++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var o=e.charCodeAt(++a)&1023;i[t++]=240|s>>8&7,i[t++]=128|s>>2&63,i[t++]=128|o>>6&15|(s&3)<<4,i[t++]=128|o&63}else i[t++]=224|s>>12&15,i[t++]=128|s>>6&63,i[t++]=128|s&63;t>n&&(r.push(i.slice(0,t)),t=0,i=Wa(65535),n=65530)}return r.push(i.slice(0,t)),Gr(r)}var Eo=/\u0000/g,z0=/[\u0001-\u0006]/g;function Fs(e){for(var r="",t=e.length-1;t>=0;)r+=e.charAt(t--);return r}function ci(e,r){var t=""+e;return t.length>=r?t:pr("0",r-t.length)+t}function Gf(e,r){var t=""+e;return t.length>=r?t:pr(" ",r-t.length)+t}function Q0(e,r){var t=""+e;return t.length>=r?t:t+pr(" ",r-t.length)}function Mp(e,r){var t=""+Math.round(e);return t.length>=r?t:pr("0",r-t.length)+t}function Bp(e,r){var t=""+e;return t.length>=r?t:pr("0",r-t.length)+t}var hu=Math.pow(2,32);function bs(e,r){if(e>hu||e<-hu)return Mp(e,r);var t=Math.round(e);return Bp(t,r)}function el(e,r){return r=r||0,e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var du=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],mf=[["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 Up(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 gr={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"秒 "'},pu={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},zp={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 tl(e,r,t){for(var n=e<0?-1:1,i=e*n,a=0,s=1,o=0,l=1,c=0,h=0,p=Math.floor(i);c<r&&(p=Math.floor(i),o=p*s+a,h=p*c+l,!(i-p<5e-8));)i=1/(i-p),a=s,s=o,l=c,c=h;if(h>r&&(c>r?(h=l,o=a):(h=c,o=s)),!t)return[0,n*o,h];var g=Math.floor(n*o/h);return[g,n*o-g*h,h]}function W0(e,r,t){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),a=0,s=[],o={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(o.u)<1e-6&&(o.u=0),r&&r.date1904&&(n+=1462),o.u>.9999&&(o.u=0,++i==86400&&(o.T=i=0,++n,++o.D)),n===60)s=t?[1317,10,29]:[1900,2,29],a=3;else if(n===0)s=t?[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),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),n<60&&(a=(a+6)%7),t&&(a=Yp(l,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.S=i%60,i=Math.floor(i/60),o.M=i%60,i=Math.floor(i/60),o.H=i,o.q=a,o}var Eh=new Date(1899,11,31,0,0,0),Wp=Eh.getTime(),Hp=new Date(1900,2,1,0,0,0);function Lh(e,r){var t=e.getTime();return r?t-=1461*24*60*60*1e3:e>=Hp&&(t+=1440*60*1e3),(t-(Wp+(e.getTimezoneOffset()-Eh.getTimezoneOffset())*6e4))/(1440*60*1e3)}function Vf(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function qp(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Gp(e){var r=e<0?12:11,t=Vf(e.toFixed(12));return t.length<=r||(t=e.toPrecision(10),t.length<=r)?t:e.toExponential(5)}function Vp(e){var r=Vf(e.toFixed(11));return r.length>(e<0?12:11)||r==="0"||r==="-0"?e.toPrecision(6):r}function Xp(e){var r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),t;return r>=-4&&r<=-1?t=e.toPrecision(10+r):Math.abs(r)<=9?t=Gp(e):r===10?t=e.toFixed(10).substr(0,12):t=Vp(e),Vf(qp(t.toUpperCase()))}function jf(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Xp(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return wa(14,Lh(e,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+e)}function Yp(e,r){r[0]-=581;var t=e.getDay();return e<60&&(t=(t+6)%7),t}function $p(e,r,t,n){var i="",a=0,s=0,o=t.y,l,c=0;switch(e){case 98:o=t.y+543;case 121:switch(r.length){case 1:case 2:l=o%100,c=2;break;default:l=o%1e4,c=4;break}break;case 109:switch(r.length){case 1:case 2:l=t.m,c=r.length;break;case 3:return mf[t.m-1][1];case 5:return mf[t.m-1][0];default:return mf[t.m-1][2]}break;case 100:switch(r.length){case 1:case 2:l=t.d,c=r.length;break;case 3:return du[t.q][0];default:return du[t.q][1]}break;case 104:switch(r.length){case 1:case 2:l=1+(t.H+11)%12,c=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:l=t.H,c=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:l=t.M,c=r.length;break;default:throw"bad minute format: "+r}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;return t.u===0&&(r=="s"||r=="ss")?ci(t.S,r.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,a=Math.round(s*(t.S+t.u)),a>=60*s&&(a=0),r==="s"?a===0?"0":""+a/s:(i=ci(a,2+n),r==="ss"?i.substr(0,2):"."+i.substr(2,r.length-1)));case 90:switch(r){case"[h]":case"[hh]":l=t.D*24+t.H;break;case"[m]":case"[mm]":l=(t.D*24+t.H)*60+t.M;break;case"[s]":case"[ss]":l=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r}c=r.length===3?1:2;break;case 101:l=o,c=1;break}var h=c>0?ci(l,c):"";return h}function ga(e){var r=3;if(e.length<=r)return e;for(var t=e.length%r,n=e.substr(0,t);t!=e.length;t+=r)n+=(n.length>0?",":"")+e.substr(t,r);return n}var Fh=/%/g;function Kp(e,r,t){var n=r.replace(Fh,""),i=r.length-n.length;return zi(e,n,t*Math.pow(10,2*i))+pr("%",i)}function Jp(e,r,t){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return zi(e,r.substr(0,n),t/Math.pow(10,3*(r.length-n)))}function Ch(e,r){var t,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+Ch(e,-r);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(r)*Math.LOG10E)%i;if(a<0&&(a+=i),t=(r/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),t.indexOf("e")===-1){var s=Math.floor(Math.log(r)*Math.LOG10E);for(t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+a):t+="E+"+(s-a);t.substr(0,2)==="0.";)t=t.charAt(0)+t.substr(2,i)+"."+t.substr(2+i),t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,c,h){return l+c+h.substr(0,(i+a)%i)+"."+h.substr(a)+"E"})}else t=r.toExponential(n);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}var kh=/# (\?+)( ?)\/( ?)(\d+)/;function Zp(e,r,t){var n=parseInt(e[4],10),i=Math.round(r*n),a=Math.floor(i/n),s=i-a*n,o=n;return t+(a===0?"":""+a)+" "+(s===0?pr(" ",e[1].length+1+e[4].length):Gf(s,e[1].length)+e[2]+"/"+e[3]+ci(o,e[4].length))}function Qp(e,r,t){return t+(r===0?"":""+r)+pr(" ",e[1].length+2+e[4].length)}var Ph=/^#*0*\.([0#]+)/,Ih=/\).*[0#]/,Oh=/\(###\) ###\\?-####/;function cn(e){for(var r="",t,n=0;n!=e.length;++n)switch(t=e.charCodeAt(n)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function gu(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function mu(e,r){var t=e-Math.floor(e),n=Math.pow(10,r);return r<(""+Math.round(t*n)).length?0:Math.round(t*n)}function e5(e,r){return r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length?1:0}function t5(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function Xn(e,r,t){if(e.charCodeAt(0)===40&&!r.match(Ih)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?Xn("n",n,t):"("+Xn("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return Jp(e,r,t);if(r.indexOf("%")!==-1)return Kp(e,r,t);if(r.indexOf("E")!==-1)return Ch(r,t);if(r.charCodeAt(0)===36)return"$"+Xn(e,r.substr(r.charAt(1)==" "?2:1),t);var i,a,s,o,l=Math.abs(t),c=t<0?"-":"";if(r.match(/^00+$/))return c+bs(l,r.length);if(r.match(/^[#?]+$/))return i=bs(t,0),i==="0"&&(i=""),i.length>r.length?i:cn(r.substr(0,r.length-i.length))+i;if(a=r.match(kh))return Zp(a,l,c);if(r.match(/^#+0+$/))return c+bs(l,r.length-r.indexOf("0"));if(a=r.match(Ph))return i=gu(t,a[1].length).replace(/^([^\.]+)$/,"$1."+cn(a[1])).replace(/\.$/,"."+cn(a[1])).replace(/\.(\d*)$/,function(v,m){return"."+m+pr("0",cn(a[1]).length-m.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),a=r.match(/^(0*)\.(#*)$/))return c+gu(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=r.match(/^#{1,3},##0(\.?)$/))return c+ga(bs(l,0));if(a=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+Xn(e,r,-t):ga(""+(Math.floor(t)+e5(t,a[1].length)))+"."+ci(mu(t,a[1].length),a[1].length);if(a=r.match(/^#,#*,#0/))return Xn(e,r.replace(/^#,#*,/,""),t);if(a=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Fs(Xn(e,r.replace(/[\\-]/g,""),t)),s=0,Fs(Fs(r.replace(/\\/g,"")).replace(/[0#]/g,function(v){return s<i.length?i.charAt(s++):v==="0"?"0":""}));if(r.match(Oh))return i=Xn(e,"##########",t),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var h="";if(a=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=tl(l,Math.pow(10,s)-1,!1),i=""+c,h=zi("n",a[1],o[1]),h.charAt(h.length-1)==" "&&(h=h.substr(0,h.length-1)+"0"),i+=h+a[2]+"/"+a[3],h=Q0(o[2],s),h.length<a[4].length&&(h=cn(a[4].substr(a[4].length-h.length))+h),i+=h,i;if(a=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),o=tl(l,Math.pow(10,s)-1,!0),c+(o[0]||(o[1]?"":"0"))+" "+(o[1]?Gf(o[1],s)+a[2]+"/"+a[3]+Q0(o[2],s):pr(" ",2*s+1+a[2].length+a[3].length));if(a=r.match(/^[#0?]+$/))return i=bs(t,0),r.length<=i.length?i:cn(r.substr(0,r.length-i.length))+i;if(a=r.match(/^([#0?]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var p=r.indexOf(".")-s,g=r.length-i.length-p;return cn(r.substr(0,p)+i+r.substr(r.length-g))}if(a=r.match(/^00,000\.([#0]*0)$/))return s=mu(t,a[1].length),t<0?"-"+Xn(e,r,-t):ga(t5(t)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?ci(0,3-v.length):"")+v})+"."+ci(s,a[1].length);switch(r){case"###,##0.00":return Xn(e,"#,##0.00",t);case"###,###":case"##,###":case"#,###":var u=ga(bs(l,0));return u!=="0"?c+u:"";case"###,###.00":return Xn(e,"###,##0.00",t).replace(/^0\./,".");case"#,###.00":return Xn(e,"#,##0.00",t).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function r5(e,r,t){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return zi(e,r.substr(0,n),t/Math.pow(10,3*(r.length-n)))}function n5(e,r,t){var n=r.replace(Fh,""),i=r.length-n.length;return zi(e,n,t*Math.pow(10,2*i))+pr("%",i)}function Dh(e,r){var t,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+Dh(e,-r);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(r)*Math.LOG10E)%i;if(a<0&&(a+=i),t=(r/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),!t.match(/[Ee]/)){var s=Math.floor(Math.log(r)*Math.LOG10E);t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+a):t+="E+"+(s-a),t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,c,h){return l+c+h.substr(0,(i+a)%i)+"."+h.substr(a)+"E"})}else t=r.toExponential(n);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}function _i(e,r,t){if(e.charCodeAt(0)===40&&!r.match(Ih)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?_i("n",n,t):"("+_i("n",n,-t)+")"}if(r.charCodeAt(r.length-1)===44)return r5(e,r,t);if(r.indexOf("%")!==-1)return n5(e,r,t);if(r.indexOf("E")!==-1)return Dh(r,t);if(r.charCodeAt(0)===36)return"$"+_i(e,r.substr(r.charAt(1)==" "?2:1),t);var i,a,s,o,l=Math.abs(t),c=t<0?"-":"";if(r.match(/^00+$/))return c+ci(l,r.length);if(r.match(/^[#?]+$/))return i=""+t,t===0&&(i=""),i.length>r.length?i:cn(r.substr(0,r.length-i.length))+i;if(a=r.match(kh))return Qp(a,l,c);if(r.match(/^#+0+$/))return c+ci(l,r.length-r.indexOf("0"));if(a=r.match(Ph))return i=(""+t).replace(/^([^\.]+)$/,"$1."+cn(a[1])).replace(/\.$/,"."+cn(a[1])),i=i.replace(/\.(\d*)$/,function(v,m){return"."+m+pr("0",cn(a[1]).length-m.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),a=r.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=r.match(/^#{1,3},##0(\.?)$/))return c+ga(""+l);if(a=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+_i(e,r,-t):ga(""+t)+"."+pr("0",a[1].length);if(a=r.match(/^#,#*,#0/))return _i(e,r.replace(/^#,#*,/,""),t);if(a=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Fs(_i(e,r.replace(/[\\-]/g,""),t)),s=0,Fs(Fs(r.replace(/\\/g,"")).replace(/[0#]/g,function(v){return s<i.length?i.charAt(s++):v==="0"?"0":""}));if(r.match(Oh))return i=_i(e,"##########",t),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var h="";if(a=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=tl(l,Math.pow(10,s)-1,!1),i=""+c,h=zi("n",a[1],o[1]),h.charAt(h.length-1)==" "&&(h=h.substr(0,h.length-1)+"0"),i+=h+a[2]+"/"+a[3],h=Q0(o[2],s),h.length<a[4].length&&(h=cn(a[4].substr(a[4].length-h.length))+h),i+=h,i;if(a=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),o=tl(l,Math.pow(10,s)-1,!0),c+(o[0]||(o[1]?"":"0"))+" "+(o[1]?Gf(o[1],s)+a[2]+"/"+a[3]+Q0(o[2],s):pr(" ",2*s+1+a[2].length+a[3].length));if(a=r.match(/^[#0?]+$/))return i=""+t,r.length<=i.length?i:cn(r.substr(0,r.length-i.length))+i;if(a=r.match(/^([#0]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var p=r.indexOf(".")-s,g=r.length-i.length-p;return cn(r.substr(0,p)+i+r.substr(r.length-g))}if(a=r.match(/^00,000\.([#0]*0)$/))return t<0?"-"+_i(e,r,-t):ga(""+t).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?ci(0,3-v.length):"")+v})+"."+ci(0,a[1].length);switch(r){case"###,###":case"##,###":case"#,###":var u=ga(""+l);return u!=="0"?c+u:"";default:if(r.match(/\.[0#?]*$/))return _i(e,r.slice(0,r.lastIndexOf(".")),t)+cn(r.slice(r.lastIndexOf(".")))}throw new Error("unsupported format |"+r+"|")}function zi(e,r,t){return(t|0)===t?_i(e,r,t):Xn(e,r,t)}function i5(e){for(var r=[],t=!1,n=0,i=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:t=!t;break;case 95:case 42:case 92:++n;break;case 59:r[r.length]=e.substr(i,n-i),i=n+1}if(r[r.length]=e.substr(i),t===!0)throw new Error("Format |"+e+"| unterminated string ");return r}var Rh=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function jh(e){for(var r=0,t="",n="";r<e.length;)switch(t=e.charAt(r)){case"G":el(e,r)&&(r+=6),r++;break;case'"':for(;e.charCodeAt(++r)!==34&&r<e.length;);++r;break;case"\\":r+=2;break;case"_":r+=2;break;case"@":++r;break;case"B":case"b":if(e.charAt(r+1)==="1"||e.charAt(r+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(r,3).toUpperCase()==="A/P"||e.substr(r,5).toUpperCase()==="AM/PM"||e.substr(r,5).toUpperCase()==="上午/下午")return!0;++r;break;case"[":for(n=t;e.charAt(r++)!=="]"&&r<e.length;)n+=e.charAt(r);if(n.match(Rh))return!0;break;case".":case"0":case"#":for(;r<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++r))>-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1););break;case"?":for(;e.charAt(++r)===t;);break;case"*":++r,(e.charAt(r)==" "||e.charAt(r)=="*")&&++r;break;case"(":case")":++r;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;r<e.length&&"0123456789".indexOf(e.charAt(++r))>-1;);break;case" ":++r;break;default:++r;break}return!1}function a5(e,r,t,n){for(var i=[],a="",s=0,o="",l="t",c,h,p,g="H";s<e.length;)switch(o=e.charAt(s)){case"G":if(!el(e,s))throw new Error("unrecognized character "+o+" in "+e);i[i.length]={t:"G",v:"General"},s+=7;break;case'"':for(a="";(p=e.charCodeAt(++s))!==34&&s<e.length;)a+=String.fromCharCode(p);i[i.length]={t:"t",v:a},++s;break;case"\\":var u=e.charAt(++s),v=u==="("||u===")"?u:"t";i[i.length]={t:v,v:u},++s;break;case"_":i[i.length]={t:"t",v:" "},s+=2;break;case"@":i[i.length]={t:"T",v:r},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(c==null&&(c=W0(r,t,e.charAt(s+1)==="2"),c==null))return"";i[i.length]={t:"X",v:e.substr(s,2)},l=o,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(r<0||c==null&&(c=W0(r,t),c==null))return"";for(a=o;++s<e.length&&e.charAt(s).toLowerCase()===o;)a+=o;o==="m"&&l.toLowerCase()==="h"&&(o="M"),o==="h"&&(o=g),i[i.length]={t:o,v:a},l=o;break;case"A":case"a":case"上":var m={t:o,v:o};if(c==null&&(c=W0(r,t)),e.substr(s,3).toUpperCase()==="A/P"?(c!=null&&(m.v=c.H>=12?"P":"A"),m.t="T",g="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(c!=null&&(m.v=c.H>=12?"PM":"AM"),m.t="T",s+=5,g="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(c!=null&&(m.v=c.H>=12?"下午":"上午"),m.t="T",s+=5,g="h"):(m.t="t",++s),c==null&&m.t==="T")return"";i[i.length]=m,l=o;break;case"[":for(a=o;e.charAt(s++)!=="]"&&s<e.length;)a+=e.charAt(s);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(Rh)){if(c==null&&(c=W0(r,t),c==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},l=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",jh(e)||(i[i.length]={t:"t",v:a}));break;case".":if(c!=null){for(a=o;++s<e.length&&(o=e.charAt(s))==="0";)a+=o;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=o;++s<e.length&&"0#?.,E+-%".indexOf(o=e.charAt(s))>-1;)a+=o;i[i.length]={t:"n",v:a};break;case"?":for(a=o;e.charAt(++s)===o;)a+=o;i[i.length]={t:o,v:a},l=o;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":i[i.length]={t:n===1?"t":o,v:o},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=o;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)a+=e.charAt(s);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:o,v:o},++s;break;case"$":i[i.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+e);i[i.length]={t:"t",v:o},++s;break}var y=0,_=0,S;for(s=i.length-1,l="t";s>=0;--s)switch(i[s].t){case"h":case"H":i[s].t=g,l="h",y<1&&(y=1);break;case"s":(S=i[s].v.match(/\.0+$/))&&(_=Math.max(_,S[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":l=i[s].t;break;case"m":l==="s"&&(i[s].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&i[s].v.match(/[Hh]/)&&(y=1),y<2&&i[s].v.match(/[Mm]/)&&(y=2),y<3&&i[s].v.match(/[Ss]/)&&(y=3)}switch(y){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var A="",P;for(s=0;s<i.length;++s)switch(i[s].t){case"t":case"T":case" ":case"D":break;case"X":i[s].v="",i[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[s].v=$p(i[s].t.charCodeAt(0),i[s].v,c,_),i[s].t="t";break;case"n":case"?":for(P=s+1;i[P]!=null&&((o=i[P].t)==="?"||o==="D"||(o===" "||o==="t")&&i[P+1]!=null&&(i[P+1].t==="?"||i[P+1].t==="t"&&i[P+1].v==="/")||i[s].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(i[P].v==="/"||i[P].v===" "&&i[P+1]!=null&&i[P+1].t=="?"));)i[s].v+=i[P].v,i[P]={v:"",t:";"},++P;A+=i[s].v,s=P-1;break;case"G":i[s].t="t",i[s].v=jf(r,t);break}var z="",G,L;if(A.length>0){A.charCodeAt(0)==40?(G=r<0&&A.charCodeAt(0)===45?-r:r,L=zi("n",A,G)):(G=r<0&&n>1?-r:r,L=zi("n",A,G),G<0&&i[0]&&i[0].t=="t"&&(L=L.substr(1),i[0].v="-"+i[0].v)),P=L.length-1;var I=i.length;for(s=0;s<i.length;++s)if(i[s]!=null&&i[s].t!="t"&&i[s].v.indexOf(".")>-1){I=s;break}var j=i.length;if(I===i.length&&L.indexOf("E")===-1){for(s=i.length-1;s>=0;--s)i[s]==null||"n?".indexOf(i[s].t)===-1||(P>=i[s].v.length-1?(P-=i[s].v.length,i[s].v=L.substr(P+1,i[s].v.length)):P<0?i[s].v="":(i[s].v=L.substr(0,P+1),P=-1),i[s].t="t",j=s);P>=0&&j<i.length&&(i[j].v=L.substr(0,P+1)+i[j].v)}else if(I!==i.length&&L.indexOf("E")===-1){for(P=L.indexOf(".")-1,s=I;s>=0;--s)if(!(i[s]==null||"n?".indexOf(i[s].t)===-1)){for(h=i[s].v.indexOf(".")>-1&&s===I?i[s].v.indexOf(".")-1:i[s].v.length-1,z=i[s].v.substr(h+1);h>=0;--h)P>=0&&(i[s].v.charAt(h)==="0"||i[s].v.charAt(h)==="#")&&(z=L.charAt(P--)+z);i[s].v=z,i[s].t="t",j=s}for(P>=0&&j<i.length&&(i[j].v=L.substr(0,P+1)+i[j].v),P=L.indexOf(".")+1,s=I;s<i.length;++s)if(!(i[s]==null||"n?(".indexOf(i[s].t)===-1&&s!==I)){for(h=i[s].v.indexOf(".")>-1&&s===I?i[s].v.indexOf(".")+1:0,z=i[s].v.substr(0,h);h<i[s].v.length;++h)P<L.length&&(z+=L.charAt(P++));i[s].v=z,i[s].t="t",j=s}}}for(s=0;s<i.length;++s)i[s]!=null&&"n?".indexOf(i[s].t)>-1&&(G=n>1&&r<0&&s>0&&i[s-1].v==="-"?-r:r,i[s].v=zi(i[s].t,i[s].v,G),i[s].t="t");var V="";for(s=0;s!==i.length;++s)i[s]!=null&&(V+=i[s].v);return V}var xu=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function vu(e,r){if(r==null)return!1;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return!0;break;case">":if(e>t)return!0;break;case"<":if(e<t)return!0;break;case"<>":if(e!=t)return!0;break;case">=":if(e>=t)return!0;break;case"<=":if(e<=t)return!0;break}return!1}function s5(e,r){var t=i5(e),n=t.length,i=t[n-1].indexOf("@");if(n<4&&i>-1&&--n,t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof r!="number")return[4,t.length===4||i>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=i>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=i>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=i>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break}var a=r>0?t[0]:r<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[n,a];if(t[0].match(/\[[=<>]/)!=null||t[1].match(/\[[=<>]/)!=null){var s=t[0].match(xu),o=t[1].match(xu);return vu(r,s)?[n,t[0]]:vu(r,o)?[n,t[1]]:[n,t[s!=null&&o!=null?2:1]]}return[n,a]}function wa(e,r,t){t==null&&(t={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&t.dateNF?n=t.dateNF:n=e;break;case"number":e==14&&t.dateNF?n=t.dateNF:n=(t.table!=null?t.table:gr)[e],n==null&&(n=t.table&&t.table[pu[e]]||gr[pu[e]]),n==null&&(n=zp[e]||"General");break}if(el(n,0))return jf(r,t);r instanceof Date&&(r=Lh(r,t.date1904));var i=s5(n,r);if(el(i[1]))return jf(r,t);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return a5(i[1],r,t,i[0])}function Mh(e,r){if(typeof r!="number"){r=+r||-1;for(var t=0;t<392;++t){if(gr[t]==null){r<0&&(r=t);continue}if(gr[t]==e){r=t;break}}r<0&&(r=391)}return gr[r]=e,r}function ml(e){for(var r=0;r!=392;++r)e[r]!==void 0&&Mh(e[r],r)}function xl(){gr=Up()}var Bh=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function o5(e){var r=typeof e=="number"?gr[e]:e;return r=r.replace(Bh,"(\\d+)"),new RegExp("^"+r+"$")}function l5(e,r,t){var n=-1,i=-1,a=-1,s=-1,o=-1,l=-1;(r.match(Bh)||[]).forEach(function(p,g){var u=parseInt(t[g+1],10);switch(p.toLowerCase().charAt(0)){case"y":n=u;break;case"d":a=u;break;case"h":s=u;break;case"s":l=u;break;case"m":s>=0?o=u:i=u;break}}),l>=0&&o==-1&&i>=0&&(o=i,i=-1);var c=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);c.length==7&&(c="0"+c),c.length==8&&(c="20"+c);var h=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return s==-1&&o==-1&&l==-1?c:n==-1&&i==-1&&a==-1?h:c+"T"+h}var f5=(function(){var e={};e.version="1.2.0";function r(){for(var L=0,I=new Array(256),j=0;j!=256;++j)L=j,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,L=L&1?-306674912^L>>>1:L>>>1,I[j]=L;return typeof Int32Array<"u"?new Int32Array(I):I}var t=r();function n(L){var I=0,j=0,V=0,E=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(V=0;V!=256;++V)E[V]=L[V];for(V=0;V!=256;++V)for(j=L[V],I=256+V;I<4096;I+=256)j=E[I]=j>>>8^L[j&255];var N=[];for(V=1;V!=16;++V)N[V-1]=typeof Int32Array<"u"?E.subarray(V*256,V*256+256):E.slice(V*256,V*256+256);return N}var i=n(t),a=i[0],s=i[1],o=i[2],l=i[3],c=i[4],h=i[5],p=i[6],g=i[7],u=i[8],v=i[9],m=i[10],y=i[11],_=i[12],S=i[13],A=i[14];function P(L,I){for(var j=I^-1,V=0,E=L.length;V<E;)j=j>>>8^t[(j^L.charCodeAt(V++))&255];return~j}function z(L,I){for(var j=I^-1,V=L.length-15,E=0;E<V;)j=A[L[E++]^j&255]^S[L[E++]^j>>8&255]^_[L[E++]^j>>16&255]^y[L[E++]^j>>>24]^m[L[E++]]^v[L[E++]]^u[L[E++]]^g[L[E++]]^p[L[E++]]^h[L[E++]]^c[L[E++]]^l[L[E++]]^o[L[E++]]^s[L[E++]]^a[L[E++]]^t[L[E++]];for(V+=15;E<V;)j=j>>>8^t[(j^L[E++])&255];return~j}function G(L,I){for(var j=I^-1,V=0,E=L.length,N=0,H=0;V<E;)N=L.charCodeAt(V++),N<128?j=j>>>8^t[(j^N)&255]:N<2048?(j=j>>>8^t[(j^(192|N>>6&31))&255],j=j>>>8^t[(j^(128|N&63))&255]):N>=55296&&N<57344?(N=(N&1023)+64,H=L.charCodeAt(V++)&1023,j=j>>>8^t[(j^(240|N>>8&7))&255],j=j>>>8^t[(j^(128|N>>2&63))&255],j=j>>>8^t[(j^(128|H>>6&15|(N&3)<<4))&255],j=j>>>8^t[(j^(128|H&63))&255]):(j=j>>>8^t[(j^(224|N>>12&15))&255],j=j>>>8^t[(j^(128|N>>6&63))&255],j=j>>>8^t[(j^(128|N&63))&255]);return~j}return e.table=t,e.bstr=P,e.buf=z,e.str=G,e})(),Zt=(function(){var r={};r.version="1.2.1";function t(B,re){for(var K=B.split("/"),Z=re.split("/"),te=0,ie=0,_e=Math.min(K.length,Z.length);te<_e;++te){if(ie=K[te].length-Z[te].length)return ie;if(K[te]!=Z[te])return K[te]<Z[te]?-1:1}return K.length-Z.length}function n(B){if(B.charAt(B.length-1)=="/")return B.slice(0,-1).indexOf("/")===-1?B:n(B.slice(0,-1));var re=B.lastIndexOf("/");return re===-1?B:B.slice(0,re+1)}function i(B){if(B.charAt(B.length-1)=="/")return i(B.slice(0,-1));var re=B.lastIndexOf("/");return re===-1?B:B.slice(re+1)}function a(B,re){typeof re=="string"&&(re=new Date(re));var K=re.getHours();K=K<<6|re.getMinutes(),K=K<<5|re.getSeconds()>>>1,B.write_shift(2,K);var Z=re.getFullYear()-1980;Z=Z<<4|re.getMonth()+1,Z=Z<<5|re.getDate(),B.write_shift(2,Z)}function s(B){var re=B.read_shift(2)&65535,K=B.read_shift(2)&65535,Z=new Date,te=K&31;K>>>=5;var ie=K&15;K>>>=4,Z.setMilliseconds(0),Z.setFullYear(K+1980),Z.setMonth(ie-1),Z.setDate(te);var _e=re&31;re>>>=5;var Le=re&63;return re>>>=6,Z.setHours(re),Z.setMinutes(Le),Z.setSeconds(_e<<1),Z}function o(B){Pn(B,0);for(var re={},K=0;B.l<=B.length-4;){var Z=B.read_shift(2),te=B.read_shift(2),ie=B.l+te,_e={};switch(Z){case 21589:K=B.read_shift(1),K&1&&(_e.mtime=B.read_shift(4)),te>5&&(K&2&&(_e.atime=B.read_shift(4)),K&4&&(_e.ctime=B.read_shift(4))),_e.mtime&&(_e.mt=new Date(_e.mtime*1e3));break}B.l=ie,re[Z]=_e}return re}var l;function c(){return l||(l={})}function h(B,re){if(B[0]==80&&B[1]==75)return ar(B,re);if((B[0]|32)==109&&(B[1]|32)==105)return Bn(B,re);if(B.length<512)throw new Error("CFB file size "+B.length+" < 512");var K=3,Z=512,te=0,ie=0,_e=0,Le=0,be=0,Ne=[],Te=B.slice(0,512);Pn(Te,0);var We=p(Te);switch(K=We[0],K){case 3:Z=512;break;case 4:Z=4096;break;case 0:if(We[1]==0)return ar(B,re);default:throw new Error("Major Version: Expected 3 or 4 saw "+K)}Z!==512&&(Te=B.slice(0,Z),Pn(Te,28));var Ve=B.slice(0,Z);g(Te,K);var rt=Te.read_shift(4,"i");if(K===3&&rt!==0)throw new Error("# Directory Sectors: Expected 0 saw "+rt);Te.l+=4,_e=Te.read_shift(4,"i"),Te.l+=4,Te.chk("00100000","Mini Stream Cutoff Size: "),Le=Te.read_shift(4,"i"),te=Te.read_shift(4,"i"),be=Te.read_shift(4,"i"),ie=Te.read_shift(4,"i");for(var qe=-1,tt=0;tt<109&&(qe=Te.read_shift(4,"i"),!(qe<0));++tt)Ne[tt]=qe;var xt=u(B,Z);y(be,ie,xt,Z,Ne);var Wt=S(xt,_e,Ne,Z);Wt[_e].name="!Directory",te>0&&Le!==H&&(Wt[Le].name="!MiniFAT"),Wt[Ne[0]].name="!FAT",Wt.fat_addrs=Ne,Wt.ssz=Z;var Kt={},Sr=[],Jn=[],Fi=[];A(_e,Wt,xt,Sr,te,Kt,Jn,Le),v(Jn,Fi,Sr),Sr.shift();var gi={FileIndex:Jn,FullPaths:Fi};return re&&re.raw&&(gi.raw={header:Ve,sectors:xt}),gi}function p(B){if(B[B.l]==80&&B[B.l+1]==75)return[0,0];B.chk(Y,"Header Signature: "),B.l+=16;var re=B.read_shift(2,"u");return[B.read_shift(2,"u"),re]}function g(B,re){var K=9;switch(B.l+=2,K=B.read_shift(2)){case 9:if(re!=3)throw new Error("Sector Shift: Expected 9 saw "+K);break;case 12:if(re!=4)throw new Error("Sector Shift: Expected 12 saw "+K);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+K)}B.chk("0600","Mini Sector Shift: "),B.chk("000000000000","Reserved: ")}function u(B,re){for(var K=Math.ceil(B.length/re)-1,Z=[],te=1;te<K;++te)Z[te-1]=B.slice(te*re,(te+1)*re);return Z[K-1]=B.slice(K*re),Z}function v(B,re,K){for(var Z=0,te=0,ie=0,_e=0,Le=0,be=K.length,Ne=[],Te=[];Z<be;++Z)Ne[Z]=Te[Z]=Z,re[Z]=K[Z];for(;Le<Te.length;++Le)Z=Te[Le],te=B[Z].L,ie=B[Z].R,_e=B[Z].C,Ne[Z]===Z&&(te!==-1&&Ne[te]!==te&&(Ne[Z]=Ne[te]),ie!==-1&&Ne[ie]!==ie&&(Ne[Z]=Ne[ie])),_e!==-1&&(Ne[_e]=Z),te!==-1&&Z!=Ne[Z]&&(Ne[te]=Ne[Z],Te.lastIndexOf(te)<Le&&Te.push(te)),ie!==-1&&Z!=Ne[Z]&&(Ne[ie]=Ne[Z],Te.lastIndexOf(ie)<Le&&Te.push(ie));for(Z=1;Z<be;++Z)Ne[Z]===Z&&(ie!==-1&&Ne[ie]!==ie?Ne[Z]=Ne[ie]:te!==-1&&Ne[te]!==te&&(Ne[Z]=Ne[te]));for(Z=1;Z<be;++Z)if(B[Z].type!==0){if(Le=Z,Le!=Ne[Le])do Le=Ne[Le],re[Z]=re[Le]+"/"+re[Z];while(Le!==0&&Ne[Le]!==-1&&Le!=Ne[Le]);Ne[Z]=-1}for(re[0]+="/",Z=1;Z<be;++Z)B[Z].type!==2&&(re[Z]+="/")}function m(B,re,K){for(var Z=B.start,te=B.size,ie=[],_e=Z;K&&te>0&&_e>=0;)ie.push(re.slice(_e*N,_e*N+N)),te-=N,_e=Oa(K,_e*4);return ie.length===0?ke(0):Gr(ie).slice(0,B.size)}function y(B,re,K,Z,te){var ie=H;if(B===H){if(re!==0)throw new Error("DIFAT chain shorter than expected")}else if(B!==-1){var _e=K[B],Le=(Z>>>2)-1;if(!_e)return;for(var be=0;be<Le&&(ie=Oa(_e,be*4))!==H;++be)te.push(ie);y(Oa(_e,Z-4),re-1,K,Z,te)}}function _(B,re,K,Z,te){var ie=[],_e=[];te||(te=[]);var Le=Z-1,be=0,Ne=0;for(be=re;be>=0;){te[be]=!0,ie[ie.length]=be,_e.push(B[be]);var Te=K[Math.floor(be*4/Z)];if(Ne=be*4&Le,Z<4+Ne)throw new Error("FAT boundary crossed: "+be+" 4 "+Z);if(!B[Te])break;be=Oa(B[Te],Ne)}return{nodes:ie,data:Tu([_e])}}function S(B,re,K,Z){var te=B.length,ie=[],_e=[],Le=[],be=[],Ne=Z-1,Te=0,We=0,Ve=0,rt=0;for(Te=0;Te<te;++Te)if(Le=[],Ve=Te+re,Ve>=te&&(Ve-=te),!_e[Ve]){be=[];var qe=[];for(We=Ve;We>=0;){qe[We]=!0,_e[We]=!0,Le[Le.length]=We,be.push(B[We]);var tt=K[Math.floor(We*4/Z)];if(rt=We*4&Ne,Z<4+rt)throw new Error("FAT boundary crossed: "+We+" 4 "+Z);if(!B[tt]||(We=Oa(B[tt],rt),qe[We]))break}ie[Ve]={nodes:Le,data:Tu([be])}}return ie}function A(B,re,K,Z,te,ie,_e,Le){for(var be=0,Ne=Z.length?2:0,Te=re[B].data,We=0,Ve=0,rt;We<Te.length;We+=128){var qe=Te.slice(We,We+128);Pn(qe,64),Ve=qe.read_shift(2),rt=Jf(qe,0,Ve-Ne),Z.push(rt);var tt={name:rt,type:qe.read_shift(1),color:qe.read_shift(1),L:qe.read_shift(4,"i"),R:qe.read_shift(4,"i"),C:qe.read_shift(4,"i"),clsid:qe.read_shift(16),state:qe.read_shift(4,"i"),start:0,size:0},xt=qe.read_shift(2)+qe.read_shift(2)+qe.read_shift(2)+qe.read_shift(2);xt!==0&&(tt.ct=P(qe,qe.l-8));var Wt=qe.read_shift(2)+qe.read_shift(2)+qe.read_shift(2)+qe.read_shift(2);Wt!==0&&(tt.mt=P(qe,qe.l-8)),tt.start=qe.read_shift(4,"i"),tt.size=qe.read_shift(4,"i"),tt.size<0&&tt.start<0&&(tt.size=tt.type=0,tt.start=H,tt.name=""),tt.type===5?(be=tt.start,te>0&&be!==H&&(re[be].name="!StreamData")):tt.size>=4096?(tt.storage="fat",re[tt.start]===void 0&&(re[tt.start]=_(K,tt.start,re.fat_addrs,re.ssz)),re[tt.start].name=tt.name,tt.content=re[tt.start].data.slice(0,tt.size)):(tt.storage="minifat",tt.size<0?tt.size=0:be!==H&&tt.start!==H&&re[be]&&(tt.content=m(tt,re[be].data,(re[Le]||{}).data))),tt.content&&Pn(tt.content,0),ie[rt]=tt,_e.push(tt)}}function P(B,re){return new Date((On(B,re+4)/1e7*Math.pow(2,32)+On(B,re)/1e7-11644473600)*1e3)}function z(B,re){return c(),h(l.readFileSync(B),re)}function G(B,re){var K=re&&re.type;switch(K||Ut&&Buffer.isBuffer(B)&&(K="buffer"),K||"base64"){case"file":return z(B,re);case"base64":return h(fi(qi(B)),re);case"binary":return h(fi(B),re)}return h(B,re)}function L(B,re){var K=re||{},Z=K.root||"Root Entry";if(B.FullPaths||(B.FullPaths=[]),B.FileIndex||(B.FileIndex=[]),B.FullPaths.length!==B.FileIndex.length)throw new Error("inconsistent CFB structure");B.FullPaths.length===0&&(B.FullPaths[0]=Z+"/",B.FileIndex[0]={name:Z,type:5}),K.CLSID&&(B.FileIndex[0].clsid=K.CLSID),I(B)}function I(B){var re="Sh33tJ5";if(!Zt.find(B,"/"+re)){var K=ke(4);K[0]=55,K[1]=K[3]=50,K[2]=54,B.FileIndex.push({name:re,type:2,content:K,size:4,L:69,R:69,C:69}),B.FullPaths.push(B.FullPaths[0]+re),j(B)}}function j(B,re){L(B);for(var K=!1,Z=!1,te=B.FullPaths.length-1;te>=0;--te){var ie=B.FileIndex[te];switch(ie.type){case 0:Z?K=!0:(B.FileIndex.pop(),B.FullPaths.pop());break;case 1:case 2:case 5:Z=!0,isNaN(ie.R*ie.L*ie.C)&&(K=!0),ie.R>-1&&ie.L>-1&&ie.R==ie.L&&(K=!0);break;default:K=!0;break}}if(!(!K&&!re)){var _e=new Date(1987,1,19),Le=0,be=Object.create?Object.create(null):{},Ne=[];for(te=0;te<B.FullPaths.length;++te)be[B.FullPaths[te]]=!0,B.FileIndex[te].type!==0&&Ne.push([B.FullPaths[te],B.FileIndex[te]]);for(te=0;te<Ne.length;++te){var Te=n(Ne[te][0]);Z=be[Te],Z||(Ne.push([Te,{name:i(Te).replace("/",""),type:1,clsid:Q,ct:_e,mt:_e,content:null}]),be[Te]=!0)}for(Ne.sort(function(rt,qe){return t(rt[0],qe[0])}),B.FullPaths=[],B.FileIndex=[],te=0;te<Ne.length;++te)B.FullPaths[te]=Ne[te][0],B.FileIndex[te]=Ne[te][1];for(te=0;te<Ne.length;++te){var We=B.FileIndex[te],Ve=B.FullPaths[te];if(We.name=i(Ve).replace("/",""),We.L=We.R=We.C=-(We.color=1),We.size=We.content?We.content.length:0,We.start=0,We.clsid=We.clsid||Q,te===0)We.C=Ne.length>1?1:-1,We.size=0,We.type=5;else if(Ve.slice(-1)=="/"){for(Le=te+1;Le<Ne.length&&n(B.FullPaths[Le])!=Ve;++Le);for(We.C=Le>=Ne.length?-1:Le,Le=te+1;Le<Ne.length&&n(B.FullPaths[Le])!=n(Ve);++Le);We.R=Le>=Ne.length?-1:Le,We.type=1}else n(B.FullPaths[te+1]||"")==n(Ve)&&(We.R=te+1),We.type=2}}}function V(B,re){var K=re||{};if(K.fileType=="mad")return dt(B,K);switch(j(B),K.fileType){case"zip":return Kn(B,K)}var Z=(function(rt){for(var qe=0,tt=0,xt=0;xt<rt.FileIndex.length;++xt){var Wt=rt.FileIndex[xt];if(Wt.content){var Kt=Wt.content.length;Kt>0&&(Kt<4096?qe+=Kt+63>>6:tt+=Kt+511>>9)}}for(var Sr=rt.FullPaths.length+3>>2,Jn=qe+7>>3,Fi=qe+127>>7,gi=Jn+tt+Sr+Fi,Zn=gi+127>>7,mi=Zn<=109?0:Math.ceil((Zn-109)/127);gi+Zn+mi+127>>7>Zn;)mi=++Zn<=109?0:Math.ceil((Zn-109)/127);var Tn=[1,mi,Zn,Fi,Sr,tt,qe,0];return rt.FileIndex[0].size=qe<<6,Tn[7]=(rt.FileIndex[0].start=Tn[0]+Tn[1]+Tn[2]+Tn[3]+Tn[4]+Tn[5])+(Tn[6]+7>>3),Tn})(B),te=ke(Z[7]<<9),ie=0,_e=0;{for(ie=0;ie<8;++ie)te.write_shift(1,fe[ie]);for(ie=0;ie<8;++ie)te.write_shift(2,0);for(te.write_shift(2,62),te.write_shift(2,3),te.write_shift(2,65534),te.write_shift(2,9),te.write_shift(2,6),ie=0;ie<3;++ie)te.write_shift(2,0);for(te.write_shift(4,0),te.write_shift(4,Z[2]),te.write_shift(4,Z[0]+Z[1]+Z[2]+Z[3]-1),te.write_shift(4,0),te.write_shift(4,4096),te.write_shift(4,Z[3]?Z[0]+Z[1]+Z[2]-1:H),te.write_shift(4,Z[3]),te.write_shift(-4,Z[1]?Z[0]-1:H),te.write_shift(4,Z[1]),ie=0;ie<109;++ie)te.write_shift(-4,ie<Z[2]?Z[1]+ie:-1)}if(Z[1])for(_e=0;_e<Z[1];++_e){for(;ie<236+_e*127;++ie)te.write_shift(-4,ie<Z[2]?Z[1]+ie:-1);te.write_shift(-4,_e===Z[1]-1?H:_e+1)}var Le=function(rt){for(_e+=rt;ie<_e-1;++ie)te.write_shift(-4,ie+1);rt&&(++ie,te.write_shift(-4,H))};for(_e=ie=0,_e+=Z[1];ie<_e;++ie)te.write_shift(-4,J.DIFSECT);for(_e+=Z[2];ie<_e;++ie)te.write_shift(-4,J.FATSECT);Le(Z[3]),Le(Z[4]);for(var be=0,Ne=0,Te=B.FileIndex[0];be<B.FileIndex.length;++be)Te=B.FileIndex[be],Te.content&&(Ne=Te.content.length,!(Ne<4096)&&(Te.start=_e,Le(Ne+511>>9)));for(Le(Z[6]+7>>3);te.l&511;)te.write_shift(-4,J.ENDOFCHAIN);for(_e=ie=0,be=0;be<B.FileIndex.length;++be)Te=B.FileIndex[be],Te.content&&(Ne=Te.content.length,!(!Ne||Ne>=4096)&&(Te.start=_e,Le(Ne+63>>6)));for(;te.l&511;)te.write_shift(-4,J.ENDOFCHAIN);for(ie=0;ie<Z[4]<<2;++ie){var We=B.FullPaths[ie];if(!We||We.length===0){for(be=0;be<17;++be)te.write_shift(4,0);for(be=0;be<3;++be)te.write_shift(4,-1);for(be=0;be<12;++be)te.write_shift(4,0);continue}Te=B.FileIndex[ie],ie===0&&(Te.start=Te.size?Te.start-1:H);var Ve=ie===0&&K.root||Te.name;if(Ne=2*(Ve.length+1),te.write_shift(64,Ve,"utf16le"),te.write_shift(2,Ne),te.write_shift(1,Te.type),te.write_shift(1,Te.color),te.write_shift(-4,Te.L),te.write_shift(-4,Te.R),te.write_shift(-4,Te.C),Te.clsid)te.write_shift(16,Te.clsid,"hex");else for(be=0;be<4;++be)te.write_shift(4,0);te.write_shift(4,Te.state||0),te.write_shift(4,0),te.write_shift(4,0),te.write_shift(4,0),te.write_shift(4,0),te.write_shift(4,Te.start),te.write_shift(4,Te.size),te.write_shift(4,0)}for(ie=1;ie<B.FileIndex.length;++ie)if(Te=B.FileIndex[ie],Te.size>=4096)if(te.l=Te.start+1<<9,Ut&&Buffer.isBuffer(Te.content))Te.content.copy(te,te.l,0,Te.size),te.l+=Te.size+511&-512;else{for(be=0;be<Te.size;++be)te.write_shift(1,Te.content[be]);for(;be&511;++be)te.write_shift(1,0)}for(ie=1;ie<B.FileIndex.length;++ie)if(Te=B.FileIndex[ie],Te.size>0&&Te.size<4096)if(Ut&&Buffer.isBuffer(Te.content))Te.content.copy(te,te.l,0,Te.size),te.l+=Te.size+63&-64;else{for(be=0;be<Te.size;++be)te.write_shift(1,Te.content[be]);for(;be&63;++be)te.write_shift(1,0)}if(Ut)te.l=te.length;else for(;te.l<te.length;)te.write_shift(1,0);return te}function E(B,re){var K=B.FullPaths.map(function(be){return be.toUpperCase()}),Z=K.map(function(be){var Ne=be.split("/");return Ne[Ne.length-(be.slice(-1)=="/"?2:1)]}),te=!1;re.charCodeAt(0)===47?(te=!0,re=K[0].slice(0,-1)+re):te=re.indexOf("/")!==-1;var ie=re.toUpperCase(),_e=te===!0?K.indexOf(ie):Z.indexOf(ie);if(_e!==-1)return B.FileIndex[_e];var Le=!ie.match(z0);for(ie=ie.replace(Eo,""),Le&&(ie=ie.replace(z0,"!")),_e=0;_e<K.length;++_e)if((Le?K[_e].replace(z0,"!"):K[_e]).replace(Eo,"")==ie||(Le?Z[_e].replace(z0,"!"):Z[_e]).replace(Eo,"")==ie)return B.FileIndex[_e];return null}var N=64,H=-2,Y="d0cf11e0a1b11ae1",fe=[208,207,17,224,161,177,26,225],Q="00000000000000000000000000000000",J={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:H,FREESECT:-1,HEADER_SIGNATURE:Y,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:Q,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function oe(B,re,K){c();var Z=V(B,K);l.writeFileSync(re,Z)}function ne(B){for(var re=new Array(B.length),K=0;K<B.length;++K)re[K]=String.fromCharCode(B[K]);return re.join("")}function ge(B,re){var K=V(B,re);switch(re&&re.type||"buffer"){case"file":return c(),l.writeFileSync(re.filename,K),K;case"binary":return typeof K=="string"?K:ne(K);case"base64":return Ro(typeof K=="string"?K:ne(K));case"buffer":if(Ut)return Buffer.isBuffer(K)?K:Vi(K);case"array":return typeof K=="string"?fi(K):K}return K}var ye;function b(B){try{var re=B.InflateRaw,K=new re;if(K._processChunk(new Uint8Array([3,0]),K._finishFlushFlag),K.bytesRead)ye=B;else throw new Error("zlib does not expose bytesRead")}catch(Z){console.error("cannot use native zlib: "+(Z.message||Z))}}function C(B,re){if(!ye)return Dt(B,re);var K=ye.InflateRaw,Z=new K,te=Z._processChunk(B.slice(B.l),Z._finishFlushFlag);return B.l+=Z.bytesRead,te}function k(B){return ye?ye.deflateRawSync(B):Et(B)}var O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],q=[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],le=[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 ce(B){var re=(B<<1|B<<11)&139536|(B<<5|B<<15)&558144;return(re>>16|re>>8|re)&255}for(var ue=typeof Uint8Array<"u",we=ue?new Uint8Array(256):[],Pe=0;Pe<256;++Pe)we[Pe]=ce(Pe);function Re(B,re){var K=we[B&255];return re<=8?K>>>8-re:(K=K<<8|we[B>>8&255],re<=16?K>>>16-re:(K=K<<8|we[B>>16&255],K>>>24-re))}function He(B,re){var K=re&7,Z=re>>>3;return(B[Z]|(K<=6?0:B[Z+1]<<8))>>>K&3}function $e(B,re){var K=re&7,Z=re>>>3;return(B[Z]|(K<=5?0:B[Z+1]<<8))>>>K&7}function Ee(B,re){var K=re&7,Z=re>>>3;return(B[Z]|(K<=4?0:B[Z+1]<<8))>>>K&15}function se(B,re){var K=re&7,Z=re>>>3;return(B[Z]|(K<=3?0:B[Z+1]<<8))>>>K&31}function je(B,re){var K=re&7,Z=re>>>3;return(B[Z]|(K<=1?0:B[Z+1]<<8))>>>K&127}function it(B,re,K){var Z=re&7,te=re>>>3,ie=(1<<K)-1,_e=B[te]>>>Z;return K<8-Z||(_e|=B[te+1]<<8-Z,K<16-Z)||(_e|=B[te+2]<<16-Z,K<24-Z)||(_e|=B[te+3]<<24-Z),_e&ie}function Ue(B,re,K){var Z=re&7,te=re>>>3;return Z<=5?B[te]|=(K&7)<<Z:(B[te]|=K<<Z&255,B[te+1]=(K&7)>>8-Z),re+3}function Ge(B,re,K){var Z=re&7,te=re>>>3;return K=(K&1)<<Z,B[te]|=K,re+1}function Ke(B,re,K){var Z=re&7,te=re>>>3;return K<<=Z,B[te]|=K&255,K>>>=8,B[te+1]=K,re+8}function Ze(B,re,K){var Z=re&7,te=re>>>3;return K<<=Z,B[te]|=K&255,K>>>=8,B[te+1]=K&255,B[te+2]=K>>>8,re+16}function lt(B,re){var K=B.length,Z=2*K>re?2*K:re+5,te=0;if(K>=re)return B;if(Ut){var ie=uu(Z);if(B.copy)B.copy(ie);else for(;te<B.length;++te)ie[te]=B[te];return ie}else if(ue){var _e=new Uint8Array(Z);if(_e.set)_e.set(B);else for(;te<K;++te)_e[te]=B[te];return _e}return B.length=Z,B}function ct(B){for(var re=new Array(B),K=0;K<B;++K)re[K]=0;return re}function vt(B,re,K){var Z=1,te=0,ie=0,_e=0,Le=0,be=B.length,Ne=ue?new Uint16Array(32):ct(32);for(ie=0;ie<32;++ie)Ne[ie]=0;for(ie=be;ie<K;++ie)B[ie]=0;be=B.length;var Te=ue?new Uint16Array(be):ct(be);for(ie=0;ie<be;++ie)Ne[te=B[ie]]++,Z<te&&(Z=te),Te[ie]=0;for(Ne[0]=0,ie=1;ie<=Z;++ie)Ne[ie+16]=Le=Le+Ne[ie-1]<<1;for(ie=0;ie<be;++ie)Le=B[ie],Le!=0&&(Te[ie]=Ne[Le+16]++);var We=0;for(ie=0;ie<be;++ie)if(We=B[ie],We!=0)for(Le=Re(Te[ie],Z)>>Z-We,_e=(1<<Z+4-We)-1;_e>=0;--_e)re[Le|_e<<We]=We&15|ie<<4;return Z}var At=ue?new Uint16Array(512):ct(512),Ct=ue?new Uint16Array(32):ct(32);if(!ue){for(var kt=0;kt<512;++kt)At[kt]=0;for(kt=0;kt<32;++kt)Ct[kt]=0}(function(){for(var B=[],re=0;re<32;re++)B.push(5);vt(B,Ct,32);var K=[];for(re=0;re<=143;re++)K.push(8);for(;re<=255;re++)K.push(9);for(;re<=279;re++)K.push(7);for(;re<=287;re++)K.push(8);vt(K,At,288)})();var gt=(function(){for(var re=ue?new Uint8Array(32768):[],K=0,Z=0;K<le.length-1;++K)for(;Z<le[K+1];++Z)re[Z]=K;for(;Z<32768;++Z)re[Z]=29;var te=ue?new Uint8Array(259):[];for(K=0,Z=0;K<q.length-1;++K)for(;Z<q[K+1];++Z)te[Z]=K;function ie(Le,be){for(var Ne=0;Ne<Le.length;){var Te=Math.min(65535,Le.length-Ne),We=Ne+Te==Le.length;for(be.write_shift(1,+We),be.write_shift(2,Te),be.write_shift(2,~Te&65535);Te-- >0;)be[be.l++]=Le[Ne++]}return be.l}function _e(Le,be){for(var Ne=0,Te=0,We=ue?new Uint16Array(32768):[];Te<Le.length;){var Ve=Math.min(65535,Le.length-Te);if(Ve<10){for(Ne=Ue(be,Ne,+(Te+Ve==Le.length)),Ne&7&&(Ne+=8-(Ne&7)),be.l=Ne/8|0,be.write_shift(2,Ve),be.write_shift(2,~Ve&65535);Ve-- >0;)be[be.l++]=Le[Te++];Ne=be.l*8;continue}Ne=Ue(be,Ne,+(Te+Ve==Le.length)+2);for(var rt=0;Ve-- >0;){var qe=Le[Te];rt=(rt<<5^qe)&32767;var tt=-1,xt=0;if((tt=We[rt])&&(tt|=Te&-32768,tt>Te&&(tt-=32768),tt<Te))for(;Le[tt+xt]==Le[Te+xt]&&xt<250;)++xt;if(xt>2){qe=te[xt],qe<=22?Ne=Ke(be,Ne,we[qe+1]>>1)-1:(Ke(be,Ne,3),Ne+=5,Ke(be,Ne,we[qe-23]>>5),Ne+=3);var Wt=qe<8?0:qe-4>>2;Wt>0&&(Ze(be,Ne,xt-q[qe]),Ne+=Wt),qe=re[Te-tt],Ne=Ke(be,Ne,we[qe]>>3),Ne-=3;var Kt=qe<4?0:qe-2>>1;Kt>0&&(Ze(be,Ne,Te-tt-le[qe]),Ne+=Kt);for(var Sr=0;Sr<xt;++Sr)We[rt]=Te&32767,rt=(rt<<5^Le[Te])&32767,++Te;Ve-=xt-1}else qe<=143?qe=qe+48:Ne=Ge(be,Ne,1),Ne=Ke(be,Ne,we[qe]),We[rt]=Te&32767,++Te}Ne=Ke(be,Ne,0)-1}return be.l=(Ne+7)/8|0,be.l}return function(be,Ne){return be.length<8?ie(be,Ne):_e(be,Ne)}})();function Et(B){var re=ke(50+Math.floor(B.length*1.1)),K=gt(B,re);return re.slice(0,K)}var et=ue?new Uint16Array(32768):ct(32768),Cr=ue?new Uint16Array(32768):ct(32768),It=ue?new Uint16Array(128):ct(128),dn=1,zt=1;function rr(B,re){var K=se(B,re)+257;re+=5;var Z=se(B,re)+1;re+=5;var te=Ee(B,re)+4;re+=4;for(var ie=0,_e=ue?new Uint8Array(19):ct(19),Le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],be=1,Ne=ue?new Uint8Array(8):ct(8),Te=ue?new Uint8Array(8):ct(8),We=_e.length,Ve=0;Ve<te;++Ve)_e[O[Ve]]=ie=$e(B,re),be<ie&&(be=ie),Ne[ie]++,re+=3;var rt=0;for(Ne[0]=0,Ve=1;Ve<=be;++Ve)Te[Ve]=rt=rt+Ne[Ve-1]<<1;for(Ve=0;Ve<We;++Ve)(rt=_e[Ve])!=0&&(Le[Ve]=Te[rt]++);var qe=0;for(Ve=0;Ve<We;++Ve)if(qe=_e[Ve],qe!=0){rt=we[Le[Ve]]>>8-qe;for(var tt=(1<<7-qe)-1;tt>=0;--tt)It[rt|tt<<qe]=qe&7|Ve<<3}var xt=[];for(be=1;xt.length<K+Z;)switch(rt=It[je(B,re)],re+=rt&7,rt>>>=3){case 16:for(ie=3+He(B,re),re+=2,rt=xt[xt.length-1];ie-- >0;)xt.push(rt);break;case 17:for(ie=3+$e(B,re),re+=3;ie-- >0;)xt.push(0);break;case 18:for(ie=11+je(B,re),re+=7;ie-- >0;)xt.push(0);break;default:xt.push(rt),be<rt&&(be=rt);break}var Wt=xt.slice(0,K),Kt=xt.slice(K);for(Ve=K;Ve<286;++Ve)Wt[Ve]=0;for(Ve=Z;Ve<30;++Ve)Kt[Ve]=0;return dn=vt(Wt,et,286),zt=vt(Kt,Cr,30),re}function jn(B,re){if(B[0]==3&&!(B[1]&3))return[Wa(re),2];for(var K=0,Z=0,te=uu(re||1<<18),ie=0,_e=te.length>>>0,Le=0,be=0;(Z&1)==0;){if(Z=$e(B,K),K+=3,Z>>>1)Z>>1==1?(Le=9,be=5):(K=rr(B,K),Le=dn,be=zt);else{K&7&&(K+=8-(K&7));var Ne=B[K>>>3]|B[(K>>>3)+1]<<8;if(K+=32,Ne>0)for(!re&&_e<ie+Ne&&(te=lt(te,ie+Ne),_e=te.length);Ne-- >0;)te[ie++]=B[K>>>3],K+=8;continue}for(;;){!re&&_e<ie+32767&&(te=lt(te,ie+32767),_e=te.length);var Te=it(B,K,Le),We=Z>>>1==1?At[Te]:et[Te];if(K+=We&15,We>>>=4,(We>>>8&255)===0)te[ie++]=We;else{if(We==256)break;We-=257;var Ve=We<8?0:We-4>>2;Ve>5&&(Ve=0);var rt=ie+q[We];Ve>0&&(rt+=it(B,K,Ve),K+=Ve),Te=it(B,K,be),We=Z>>>1==1?Ct[Te]:Cr[Te],K+=We&15,We>>>=4;var qe=We<4?0:We-2>>1,tt=le[We];for(qe>0&&(tt+=it(B,K,qe),K+=qe),!re&&_e<rt&&(te=lt(te,rt+100),_e=te.length);ie<rt;)te[ie]=te[ie-tt],++ie}}}return re?[te,K+7>>>3]:[te.slice(0,ie),K+7>>>3]}function Dt(B,re){var K=B.slice(B.l||0),Z=jn(K,re);return B.l+=Z[1],Z[0]}function pi(B,re){if(B)typeof console<"u"&&console.error(re);else throw new Error(re)}function ar(B,re){var K=B;Pn(K,0);var Z=[],te=[],ie={FileIndex:Z,FullPaths:te};L(ie,{root:re.root});for(var _e=K.length-4;(K[_e]!=80||K[_e+1]!=75||K[_e+2]!=5||K[_e+3]!=6)&&_e>=0;)--_e;K.l=_e+4,K.l+=4;var Le=K.read_shift(2);K.l+=6;var be=K.read_shift(4);for(K.l=be,_e=0;_e<Le;++_e){K.l+=20;var Ne=K.read_shift(4),Te=K.read_shift(4),We=K.read_shift(2),Ve=K.read_shift(2),rt=K.read_shift(2);K.l+=8;var qe=K.read_shift(4),tt=o(K.slice(K.l+We,K.l+We+Ve));K.l+=We+Ve+rt;var xt=K.l;K.l=qe+4,An(K,Ne,Te,ie,tt),K.l=xt}return ie}function An(B,re,K,Z,te){B.l+=2;var ie=B.read_shift(2),_e=B.read_shift(2),Le=s(B);if(ie&8257)throw new Error("Unsupported ZIP encryption");for(var be=B.read_shift(4),Ne=B.read_shift(4),Te=B.read_shift(4),We=B.read_shift(2),Ve=B.read_shift(2),rt="",qe=0;qe<We;++qe)rt+=String.fromCharCode(B[B.l++]);if(Ve){var tt=o(B.slice(B.l,B.l+Ve));(tt[21589]||{}).mt&&(Le=tt[21589].mt),((te||{})[21589]||{}).mt&&(Le=te[21589].mt)}B.l+=Ve;var xt=B.slice(B.l,B.l+Ne);switch(_e){case 8:xt=C(B,Te);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+_e)}var Wt=!1;ie&8&&(be=B.read_shift(4),be==134695760&&(be=B.read_shift(4),Wt=!0),Ne=B.read_shift(4),Te=B.read_shift(4)),Ne!=re&&pi(Wt,"Bad compressed size: "+re+" != "+Ne),Te!=K&&pi(Wt,"Bad uncompressed size: "+K+" != "+Te),pn(Z,rt,xt,{unsafe:!0,mt:Le})}function Kn(B,re){var K=re||{},Z=[],te=[],ie=ke(1),_e=K.compression?8:0,Le=0,be=0,Ne=0,Te=0,We=0,Ve=B.FullPaths[0],rt=Ve,qe=B.FileIndex[0],tt=[],xt=0;for(be=1;be<B.FullPaths.length;++be)if(rt=B.FullPaths[be].slice(Ve.length),qe=B.FileIndex[be],!(!qe.size||!qe.content||rt=="Sh33tJ5")){var Wt=Te,Kt=ke(rt.length);for(Ne=0;Ne<rt.length;++Ne)Kt.write_shift(1,rt.charCodeAt(Ne)&127);Kt=Kt.slice(0,Kt.l),tt[We]=f5.buf(qe.content,0);var Sr=qe.content;_e==8&&(Sr=k(Sr)),ie=ke(30),ie.write_shift(4,67324752),ie.write_shift(2,20),ie.write_shift(2,Le),ie.write_shift(2,_e),qe.mt?a(ie,qe.mt):ie.write_shift(4,0),ie.write_shift(-4,tt[We]),ie.write_shift(4,Sr.length),ie.write_shift(4,qe.content.length),ie.write_shift(2,Kt.length),ie.write_shift(2,0),Te+=ie.length,Z.push(ie),Te+=Kt.length,Z.push(Kt),Te+=Sr.length,Z.push(Sr),ie=ke(46),ie.write_shift(4,33639248),ie.write_shift(2,0),ie.write_shift(2,20),ie.write_shift(2,Le),ie.write_shift(2,_e),ie.write_shift(4,0),ie.write_shift(-4,tt[We]),ie.write_shift(4,Sr.length),ie.write_shift(4,qe.content.length),ie.write_shift(2,Kt.length),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(4,0),ie.write_shift(4,Wt),xt+=ie.l,te.push(ie),xt+=Kt.length,te.push(Kt),++We}return ie=ke(22),ie.write_shift(4,101010256),ie.write_shift(2,0),ie.write_shift(2,0),ie.write_shift(2,We),ie.write_shift(2,We),ie.write_shift(4,xt),ie.write_shift(4,Te),ie.write_shift(2,0),Gr([Gr(Z),Gr(te),ie])}var Qt={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 wt(B,re){if(B.ctype)return B.ctype;var K=B.name||"",Z=K.match(/\.([^\.]+)$/);return Z&&Qt[Z[1]]||re&&(Z=(K=re).match(/[\.\\]([^\.\\])+$/),Z&&Qt[Z[1]])?Qt[Z[1]]:"application/octet-stream"}function jt(B){for(var re=Ro(B),K=[],Z=0;Z<re.length;Z+=76)K.push(re.slice(Z,Z+76));return K.join(`\r
254
+ `)+`\r
255
+ `}function Li(B){var re=B.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Ne){var Te=Ne.charCodeAt(0).toString(16).toUpperCase();return"="+(Te.length==1?"0"+Te:Te)});re=re.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),re.charAt(0)==`
256
+ `&&(re="=0D"+re.slice(1)),re=re.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
257
+ =0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var K=[],Z=re.split(`\r
258
+ `),te=0;te<Z.length;++te){var ie=Z[te];if(ie.length==0){K.push("");continue}for(var _e=0;_e<ie.length;){var Le=76,be=ie.slice(_e,_e+Le);be.charAt(Le-1)=="="?Le--:be.charAt(Le-2)=="="?Le-=2:be.charAt(Le-3)=="="&&(Le-=3),be=ie.slice(_e,_e+Le),_e+=Le,_e<ie.length&&(be+="="),K.push(be)}}return K.join(`\r
259
+ `)}function kr(B){for(var re=[],K=0;K<B.length;++K){for(var Z=B[K];K<=B.length&&Z.charAt(Z.length-1)=="=";)Z=Z.slice(0,Z.length-1)+B[++K];re.push(Z)}for(var te=0;te<re.length;++te)re[te]=re[te].replace(/[=][0-9A-Fa-f]{2}/g,function(ie){return String.fromCharCode(parseInt(ie.slice(1),16))});return fi(re.join(`\r
260
+ `))}function Mn(B,re,K){for(var Z="",te="",ie="",_e,Le=0;Le<10;++Le){var be=re[Le];if(!be||be.match(/^\s*$/))break;var Ne=be.match(/^(.*?):\s*([^\s].*)$/);if(Ne)switch(Ne[1].toLowerCase()){case"content-location":Z=Ne[2].trim();break;case"content-type":ie=Ne[2].trim();break;case"content-transfer-encoding":te=Ne[2].trim();break}}switch(++Le,te.toLowerCase()){case"base64":_e=fi(qi(re.slice(Le).join("")));break;case"quoted-printable":_e=kr(re.slice(Le));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+te)}var Te=pn(B,Z.slice(K.length),_e,{unsafe:!0});ie&&(Te.ctype=ie)}function Bn(B,re){if(ne(B.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var K=re&&re.root||"",Z=(Ut&&Buffer.isBuffer(B)?B.toString("binary"):ne(B)).split(`\r
261
+ `),te=0,ie="";for(te=0;te<Z.length;++te)if(ie=Z[te],!!/^Content-Location:/i.test(ie)&&(ie=ie.slice(ie.indexOf("file")),K||(K=ie.slice(0,ie.lastIndexOf("/")+1)),ie.slice(0,K.length)!=K))for(;K.length>0&&(K=K.slice(0,K.length-1),K=K.slice(0,K.lastIndexOf("/")+1),ie.slice(0,K.length)!=K););var _e=(Z[1]||"").match(/boundary="(.*?)"/);if(!_e)throw new Error("MAD cannot find boundary");var Le="--"+(_e[1]||""),be=[],Ne=[],Te={FileIndex:be,FullPaths:Ne};L(Te);var We,Ve=0;for(te=0;te<Z.length;++te){var rt=Z[te];rt!==Le&&rt!==Le+"--"||(Ve++&&Mn(Te,Z.slice(We,te),K),We=te)}return Te}function dt(B,re){var K=re||{},Z=K.boundary||"SheetJS";Z="------="+Z;for(var te=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+Z.slice(2)+'"',"","",""],ie=B.FullPaths[0],_e=ie,Le=B.FileIndex[0],be=1;be<B.FullPaths.length;++be)if(_e=B.FullPaths[be].slice(ie.length),Le=B.FileIndex[be],!(!Le.size||!Le.content||_e=="Sh33tJ5")){_e=_e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(xt){return"_x"+xt.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(xt){return"_u"+xt.charCodeAt(0).toString(16)+"_"});for(var Ne=Le.content,Te=Ut&&Buffer.isBuffer(Ne)?Ne.toString("binary"):ne(Ne),We=0,Ve=Math.min(1024,Te.length),rt=0,qe=0;qe<=Ve;++qe)(rt=Te.charCodeAt(qe))>=32&&rt<128&&++We;var tt=We>=Ve*4/5;te.push(Z),te.push("Content-Location: "+(K.root||"file:///C:/SheetJS/")+_e),te.push("Content-Transfer-Encoding: "+(tt?"quoted-printable":"base64")),te.push("Content-Type: "+wt(Le,_e)),te.push(""),te.push(tt?Li(Te):jt(Te))}return te.push(Z+`--\r
262
+ `),te.join(`\r
263
+ `)}function Nn(B){var re={};return L(re,B),re}function pn(B,re,K,Z){var te=Z&&Z.unsafe;te||L(B);var ie=!te&&Zt.find(B,re);if(!ie){var _e=B.FullPaths[0];re.slice(0,_e.length)==_e?_e=re:(_e.slice(-1)!="/"&&(_e+="/"),_e=(_e+re).replace("//","/")),ie={name:i(re),type:2},B.FileIndex.push(ie),B.FullPaths.push(_e),te||Zt.utils.cfb_gc(B)}return ie.content=K,ie.size=K?K.length:0,Z&&(Z.CLSID&&(ie.clsid=Z.CLSID),Z.mt&&(ie.mt=Z.mt),Z.ct&&(ie.ct=Z.ct)),ie}function $r(B,re){L(B);var K=Zt.find(B,re);if(K){for(var Z=0;Z<B.FileIndex.length;++Z)if(B.FileIndex[Z]==K)return B.FileIndex.splice(Z,1),B.FullPaths.splice(Z,1),!0}return!1}function mr(B,re,K){L(B);var Z=Zt.find(B,re);if(Z){for(var te=0;te<B.FileIndex.length;++te)if(B.FileIndex[te]==Z)return B.FileIndex[te].name=i(K),B.FullPaths[te]=K,!0}return!1}function cr(B){j(B,!0)}return r.find=E,r.read=G,r.parse=h,r.write=ge,r.writeFile=oe,r.utils={cfb_new:Nn,cfb_add:pn,cfb_del:$r,cfb_mov:mr,cfb_gc:cr,ReadShift:Fo,CheckField:n1,prep_blob:Pn,bconcat:Gr,use_zlib:b,_deflateRaw:Et,_inflateRaw:Dt,consts:J},r})();function c5(e){return typeof e=="string"?gl(e):Array.isArray(e)?Rp(e):e}function qo(e,r,t){if(typeof Deno<"u"){if(t&&typeof r=="string")switch(t){case"utf8":r=new TextEncoder(t).encode(r);break;case"binary":r=gl(r);break;default:throw new Error("Unsupported encoding "+t)}return Deno.writeFileSync(e,r)}var n=t=="utf8"?Mo(r):r;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([c5(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 s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var o=File(e);return o.open("w"),o.encoding="binary",Array.isArray(r)&&(r=Ho(r)),o.write(r),o.close(),r}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function Yr(e){for(var r=Object.keys(e),t=[],n=0;n<r.length;++n)Object.prototype.hasOwnProperty.call(e,r[n])&&t.push(r[n]);return t}function wu(e,r){for(var t=[],n=Yr(e),i=0;i!==n.length;++i)t[e[n[i]][r]]==null&&(t[e[n[i]][r]]=n[i]);return t}function Xf(e){for(var r=[],t=Yr(e),n=0;n!==t.length;++n)r[e[t[n]]]=t[n];return r}function vl(e){for(var r=[],t=Yr(e),n=0;n!==t.length;++n)r[e[t[n]]]=parseInt(t[n],10);return r}function u5(e){for(var r=[],t=Yr(e),n=0;n!==t.length;++n)r[e[t[n]]]==null&&(r[e[t[n]]]=[]),r[e[t[n]]].push(t[n]);return r}var rl=new Date(1899,11,30,0,0,0);function bn(e,r){var t=e.getTime(),n=rl.getTime()+(e.getTimezoneOffset()-rl.getTimezoneOffset())*6e4;return(t-n)/(1440*60*1e3)}var Uh=new Date,h5=rl.getTime()+(Uh.getTimezoneOffset()-rl.getTimezoneOffset())*6e4,yu=Uh.getTimezoneOffset();function zh(e){var r=new Date;return r.setTime(e*24*60*60*1e3+h5),r.getTimezoneOffset()!==yu&&r.setTime(r.getTime()+(r.getTimezoneOffset()-yu)*6e4),r}var bu=new Date("2017-02-19T19:06:09.000Z"),Wh=isNaN(bu.getFullYear())?new Date("2/19/17"):bu,d5=Wh.getFullYear()==2017;function hn(e,r){var t=new Date(e);if(d5)return r>0?t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3):r<0&&t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3),t;if(e instanceof Date)return e;if(Wh.getFullYear()==1917&&!isNaN(t.getFullYear())){var n=t.getFullYear();return e.indexOf(""+n)>-1||t.setFullYear(t.getFullYear()+100),t}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 wl(e,r){if(Ut&&Buffer.isBuffer(e))return e.toString("binary");if(typeof TextDecoder<"u")try{var t={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(a){return t[a]||a})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function _n(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=_n(e[t]));return r}function pr(e,r){for(var t="";t.length<r;)t+=e;return t}function Wi(e){var r=Number(e);if(!isNaN(r))return isFinite(r)?r:NaN;if(!/\d/.test(e))return r;var t=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return t*=100,""});return!isNaN(r=Number(n))||(n=n.replace(/[(](.*)[)]/,function(i,a){return t=-t,a}),!isNaN(r=Number(n)))?r/t:r}var p5=["january","february","march","april","may","june","july","august","september","october","november","december"];function jo(e){var r=new Date(e),t=new Date(NaN),n=r.getYear(),i=r.getMonth(),a=r.getDate();if(isNaN(a))return t;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&p5.indexOf(s)==-1)return t}else if(s.match(/[a-z]/))return t;return n<0||n>8099?t:(i>0||a>1)&&n!=101?r:e.match(/[^-0-9:,\/\\]/)?t:r}function Lt(e,r,t){if(e.FullPaths){if(typeof t=="string"){var n;return Ut?n=Vi(t):n=jp(t),Zt.utils.cfb_add(e,r,n)}Zt.utils.cfb_add(e,r,t)}else e.file(r,t)}function Yf(){return Zt.utils.cfb_new()}var Fr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
264
+ `,g5={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},$f=Xf(g5),Kf=/[&<>'"]/g,m5=/[\u0000-\u0008\u000b-\u001f]/g;function Yt(e){var r=e+"";return r.replace(Kf,function(t){return $f[t]}).replace(m5,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function _u(e){return Yt(e).replace(/ /g,"_x0020_")}var Hh=/[\u0000-\u001f]/g;function x5(e){var r=e+"";return r.replace(Kf,function(t){return $f[t]}).replace(/\n/g,"<br/>").replace(Hh,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function v5(e){var r=e+"";return r.replace(Kf,function(t){return $f[t]}).replace(Hh,function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"})}function w5(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function y5(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function xf(e){for(var r="",t=0,n=0,i=0,a=0,s=0,o=0;t<e.length;){if(n=e.charCodeAt(t++),n<128){r+=String.fromCharCode(n);continue}if(i=e.charCodeAt(t++),n>191&&n<224){s=(n&31)<<6,s|=i&63,r+=String.fromCharCode(s);continue}if(a=e.charCodeAt(t++),n<240){r+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}s=e.charCodeAt(t++),o=((n&7)<<18|(i&63)<<12|(a&63)<<6|s&63)-65536,r+=String.fromCharCode(55296+(o>>>10&1023)),r+=String.fromCharCode(56320+(o&1023))}return r}function Su(e){var r=Wa(2*e.length),t,n,i=1,a=0,s=0,o;for(n=0;n<e.length;n+=i)i=1,(o=e.charCodeAt(n))<128?t=o:o<224?(t=(o&31)*64+(e.charCodeAt(n+1)&63),i=2):o<240?(t=(o&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),i=3):(i=4,t=(o&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),t-=65536,s=55296+(t>>>10&1023),t=56320+(t&1023)),s!==0&&(r[a++]=s&255,r[a++]=s>>>8,s=0),r[a++]=t%256,r[a++]=t>>>8;return r.slice(0,a).toString("ucs2")}function Au(e){return Vi(e,"binary").toString("utf8")}var H0="foo bar baz☃🍣",Lo=Ut&&(Au(H0)==xf(H0)&&Au||Su(H0)==xf(H0)&&Su)||xf,Mo=Ut?function(e){return Vi(e,"utf8").toString("binary")}:function(e){for(var r=[],t=0,n=0,i=0;t<e.length;)switch(n=e.charCodeAt(t++),!0){case n<128:r.push(String.fromCharCode(n));break;case n<2048:r.push(String.fromCharCode(192+(n>>6))),r.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=e.charCodeAt(t++)-56320+(n<<10),r.push(String.fromCharCode(240+(i>>18&7))),r.push(String.fromCharCode(144+(i>>12&63))),r.push(String.fromCharCode(128+(i>>6&63))),r.push(String.fromCharCode(128+(i&63)));break;default:r.push(String.fromCharCode(224+(n>>12))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(n&63)))}return r.join("")},b5=(function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
265
+ `).replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}})(),qh=/(^\s|\s$|\n)/;function Vr(e,r){return"<"+e+(r.match(qh)?' xml:space="preserve"':"")+">"+r+"</"+e+">"}function Bo(e){return Yr(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function Xe(e,r,t){return"<"+e+(t!=null?Bo(t):"")+(r!=null?(r.match(qh)?' xml:space="preserve"':"")+">"+r+"</"+e:"/")+">"}function Mf(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function _5(e,r){switch(typeof e){case"string":var t=Xe("vt:lpwstr",Yt(e));return t=t.replace(/&quot;/g,"_x0022_"),t;case"number":return Xe((e|0)==e?"vt:i4":"vt:r8",Yt(String(e)));case"boolean":return Xe("vt:bool",e?"true":"false")}if(e instanceof Date)return Xe("vt:filetime",Mf(e));throw new Error("Unable to serialize "+e)}var Mr={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"},Rs=["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"],In={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 S5(e,r){for(var t=1-2*(e[r+7]>>>7),n=((e[r+7]&127)<<4)+(e[r+6]>>>4&15),i=e[r+6]&15,a=5;a>=0;--a)i=i*256+e[r+a];return n==2047?i==0?t*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),t*Math.pow(2,n-52)*i)}function A5(e,r,t){var n=(r<0||1/r==-1/0?1:0)<<7,i=0,a=0,s=n?-r:r;isFinite(s)?s==0?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*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(r)?26985:0);for(var o=0;o<=5;++o,a/=256)e[t+o]=a&255;e[t+6]=(i&15)<<4|a&15,e[t+7]=i>>4|n}var Nu=function(e){for(var r=[],t=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,a=e[0][n].length;i<a;i+=t)r.push.apply(r,e[0][n].slice(i,i+t));return r},Tu=Ut?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(r){return Buffer.isBuffer(r)?r:Vi(r)})):Nu(e)}:Nu,Eu=function(e,r,t){for(var n=[],i=r;i<t;i+=2)n.push(String.fromCharCode(bo(e,i)));return n.join("").replace(Eo,"")},Jf=Ut?function(e,r,t){return Buffer.isBuffer(e)?e.toString("utf16le",r,t).replace(Eo,""):Eu(e,r,t)}:Eu,Lu=function(e,r,t){for(var n=[],i=r;i<r+t;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},Gh=Ut?function(e,r,t){return Buffer.isBuffer(e)?e.toString("hex",r,r+t):Lu(e,r,t)}:Lu,Fu=function(e,r,t){for(var n=[],i=r;i<t;i++)n.push(String.fromCharCode(Ts(e,i)));return n.join("")},Go=Ut?function(r,t,n){return Buffer.isBuffer(r)?r.toString("utf8",t,n):Fu(r,t,n)}:Fu,Vh=function(e,r){var t=On(e,r);return t>0?Go(e,r+4,r+4+t-1):""},Xh=Vh,Yh=function(e,r){var t=On(e,r);return t>0?Go(e,r+4,r+4+t-1):""},$h=Yh,Kh=function(e,r){var t=2*On(e,r);return t>0?Go(e,r+4,r+4+t-1):""},Jh=Kh,Zh=function(r,t){var n=On(r,t);return n>0?Jf(r,t+4,t+4+n):""},Qh=Zh,e1=function(e,r){var t=On(e,r);return t>0?Go(e,r+4,r+4+t):""},t1=e1,r1=function(e,r){return S5(e,r)},nl=r1,Zf=function(r){return Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array};Ut&&(Xh=function(r,t){if(!Buffer.isBuffer(r))return Vh(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},$h=function(r,t){if(!Buffer.isBuffer(r))return Yh(r,t);var n=r.readUInt32LE(t);return n>0?r.toString("utf8",t+4,t+4+n-1):""},Jh=function(r,t){if(!Buffer.isBuffer(r))return Kh(r,t);var n=2*r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n-1)},Qh=function(r,t){if(!Buffer.isBuffer(r))return Zh(r,t);var n=r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+n)},t1=function(r,t){if(!Buffer.isBuffer(r))return e1(r,t);var n=r.readUInt32LE(t);return r.toString("utf8",t+4,t+4+n)},nl=function(r,t){return Buffer.isBuffer(r)?r.readDoubleLE(t):r1(r,t)},Zf=function(r){return Buffer.isBuffer(r)||Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array});var Ts=function(e,r){return e[r]},bo=function(e,r){return e[r+1]*256+e[r]},N5=function(e,r){var t=e[r+1]*256+e[r];return t<32768?t:(65535-t+1)*-1},On=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]},Oa=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]},T5=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function Fo(e,r){var t="",n,i,a=[],s,o,l,c;switch(r){case"dbcs":if(c=this.l,Ut&&Buffer.isBuffer(this))t=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)t+=String.fromCharCode(bo(this,c)),c+=2;e*=2;break;case"utf8":t=Go(this,this.l,this.l+e);break;case"utf16le":e*=2,t=Jf(this,this.l,this.l+e);break;case"wstr":return Fo.call(this,e,"dbcs");case"lpstr-ansi":t=Xh(this,this.l),e=4+On(this,this.l);break;case"lpstr-cp":t=$h(this,this.l),e=4+On(this,this.l);break;case"lpwstr":t=Jh(this,this.l),e=4+2*On(this,this.l);break;case"lpp4":e=4+On(this,this.l),t=Qh(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+On(this,this.l),t=t1(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,t="";(s=Ts(this,this.l+e++))!==0;)a.push(U0(s));t=a.join("");break;case"_wstr":for(e=0,t="";(s=bo(this,this.l+e))!==0;)a.push(U0(s)),e+=2;e+=2,t=a.join("");break;case"dbcs-cont":for(t="",c=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return s=Ts(this,c),this.l=c+1,o=Fo.call(this,e-l,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push(U0(bo(this,c))),c+=2}t=a.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(t="",c=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return s=Ts(this,c),this.l=c+1,o=Fo.call(this,e-l,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push(U0(Ts(this,c))),c+=1}t=a.join("");break;default:switch(e){case 1:return n=Ts(this,this.l),this.l++,n;case 2:return n=(r==="i"?N5:bo)(this,this.l),this.l+=2,n;case 4:case-4:return r==="i"||(this[this.l+3]&128)===0?(n=(e>0?Oa:T5)(this,this.l),this.l+=4,n):(i=On(this,this.l),this.l+=4,i);case 8:case-8:if(r==="f")return e==8?i=nl(this,this.l):i=nl([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:t=Gh(this,this.l,e);break}}return this.l+=e,t}var E5=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24&255},L5=function(e,r,t){e[t]=r&255,e[t+1]=r>>8&255,e[t+2]=r>>16&255,e[t+3]=r>>24&255},F5=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255};function C5(e,r,t){var n=0,i=0;if(t==="dbcs"){for(i=0;i!=r.length;++i)F5(this,r.charCodeAt(i),this.l+2*i);n=2*r.length}else if(t==="sbcs"){for(r=r.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=r.length;++i)this[this.l+i]=r.charCodeAt(i)&255;n=r.length}else if(t==="hex"){for(;i<e;++i)this[this.l++]=parseInt(r.slice(2*i,2*i+2),16)||0;return this}else if(t==="utf16le"){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(r.length,e);++i){var s=r.charCodeAt(i);this[this.l++]=s&255,this[this.l++]=s>>8}for(;this.l<a;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=r&255;break;case 2:n=2,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255;break;case 3:n=3,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255,r>>>=8,this[this.l+2]=r&255;break;case 4:n=4,E5(this,r,this.l);break;case 8:if(n=8,t==="f"){A5(this,r,this.l);break}case 16:break;case-4:n=4,L5(this,r,this.l);break}return this.l+=n,this}function n1(e,r){var t=Gh(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function Pn(e,r){e.l=r,e.read_shift=Fo,e.chk=n1,e.write_shift=C5}function Ti(e,r){e.l+=r}function ke(e){var r=Wa(e);return Pn(r,0),r}function yn(){var e=[],r=Ut?256:2048,t=function(c){var h=ke(c);return Pn(h,0),h},n=t(r),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(c){return n&&c<n.length-n.l?n:(i(),n=t(Math.max(c+1,r)))},s=function(){return i(),Gr(e)},o=function(c){i(),n=c,n.l==null&&(n.l=n.length),a(r)};return{next:a,push:o,end:s,_bufs:e}}function Me(e,r,t,n){var i=+r,a;if(!isNaN(i)){n||(n=Sw[i].p||(t||[]).length||0),a=1+(i>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var s=e.next(a);i<=127?s.write_shift(1,i):(s.write_shift(1,(i&127)+128),s.write_shift(1,i>>7));for(var o=0;o!=4;++o)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&Zf(t)&&e.push(t)}}function Co(e,r,t){var n=_n(e);if(r.s?(n.cRel&&(n.c+=r.s.c),n.rRel&&(n.r+=r.s.r)):(n.cRel&&(n.c+=r.c),n.rRel&&(n.r+=r.r)),!t||t.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Cu(e,r,t){var n=_n(e);return n.s=Co(n.s,r.s,t),n.e=Co(n.e,r.s,t),n}function ko(e,r){if(e.cRel&&e.c<0)for(e=_n(e);e.c<0;)e.c+=r>8?16384:256;if(e.rRel&&e.r<0)for(e=_n(e);e.r<0;)e.r+=r>8?1048576:r>5?65536:16384;var t=$t(e);return!e.cRel&&e.cRel!=null&&(t=I5(t)),!e.rRel&&e.rRel!=null&&(t=k5(t)),t}function vf(e,r){return e.s.r==0&&!e.s.rRel&&e.e.r==(r.biff>=12?1048575:r.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+nn(e.s.c)+":"+(e.e.cRel?"":"$")+nn(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(r.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Xr(e.s.r)+":"+(e.e.rRel?"":"$")+Xr(e.e.r):ko(e.s,r.biff)+":"+ko(e.e,r.biff)}function Qf(e){return parseInt(P5(e),10)-1}function Xr(e){return""+(e+1)}function k5(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function P5(e){return e.replace(/\$(\d+)$/,"$1")}function ec(e){for(var r=O5(e),t=0,n=0;n!==r.length;++n)t=26*t+r.charCodeAt(n)-64;return t-1}function nn(e){if(e<0)throw new Error("invalid column "+e);var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function I5(e){return e.replace(/^([A-Z])/,"$$$1")}function O5(e){return e.replace(/^\$([A-Z])/,"$1")}function D5(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Br(e){for(var r=0,t=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);i>=48&&i<=57?r=10*r+(i-48):i>=65&&i<=90&&(t=26*t+(i-64))}return{c:t-1,r:r-1}}function $t(e){for(var r=e.c+1,t="";r;r=(r-1)/26|0)t=String.fromCharCode((r-1)%26+65)+t;return t+(e.r+1)}function Rn(e){var r=e.indexOf(":");return r==-1?{s:Br(e),e:Br(e)}:{s:Br(e.slice(0,r)),e:Br(e.slice(r+1))}}function Lr(e,r){return typeof r>"u"||typeof r=="number"?Lr(e.s,e.e):(typeof e!="string"&&(e=$t(e)),typeof r!="string"&&(r=$t(r)),e==r?e:e+":"+r)}function lr(e){var r={s:{c:0,r:0},e:{c:0,r:0}},t=0,n=0,i=0,a=e.length;for(t=0;n<a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)t=26*t+i;for(r.s.c=--t,t=0;n<a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)t=10*t+i;if(r.s.r=--t,n===a||i!=10)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++n,t=0;n!=a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)t=26*t+i;for(r.e.c=--t,t=0;n!=a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)t=10*t+i;return r.e.r=--t,r}function ku(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=wa(e.z,t?bn(r):r)}catch{}try{return e.w=wa((e.XF||{}).numFmtId||(t?14:0),t?bn(r):r)}catch{return""+r}}function Gi(e,r,t){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&t&&t.dateNF&&(e.z=t.dateNF),e.t=="e"?Vo[e.v]||e.v:r==null?ku(e,e.v):ku(e,r))}function Va(e,r){var t=r&&r.sheet?r.sheet:"Sheet1",n={};return n[t]=e,{SheetNames:[t],Sheets:n}}function i1(e,r,t){var n=t||{},i=e?Array.isArray(e):n.dense,a=e||(i?[]:{}),s=0,o=0;if(a&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?Br(n.origin):n.origin;s=l.r,o=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var h=lr(a["!ref"]);c.s.c=h.s.c,c.s.r=h.s.r,c.e.c=Math.max(c.e.c,h.e.c),c.e.r=Math.max(c.e.r,h.e.r),s==-1&&(c.e.r=s=h.e.r+1)}for(var p=0;p!=r.length;++p)if(r[p]){if(!Array.isArray(r[p]))throw new Error("aoa_to_sheet expects an array of arrays");for(var g=0;g!=r[p].length;++g)if(!(typeof r[p][g]>"u")){var u={v:r[p][g]},v=s+p,m=o+g;if(c.s.r>v&&(c.s.r=v),c.s.c>m&&(c.s.c=m),c.e.r<v&&(c.e.r=v),c.e.c<m&&(c.e.c=m),r[p][g]&&typeof r[p][g]=="object"&&!Array.isArray(r[p][g])&&!(r[p][g]instanceof Date))u=r[p][g];else if(Array.isArray(u.v)&&(u.f=r[p][g][1],u.v=u.v[0]),u.v===null)if(u.f)u.t="n";else if(n.nullError)u.t="e",u.v=0;else if(n.sheetStubs)u.t="z";else continue;else typeof u.v=="number"?u.t="n":typeof u.v=="boolean"?u.t="b":u.v instanceof Date?(u.z=n.dateNF||gr[14],n.cellDates?(u.t="d",u.w=wa(u.z,bn(u.v))):(u.t="n",u.v=bn(u.v),u.w=wa(u.z,u.v))):u.t="s";if(i)a[v]||(a[v]=[]),a[v][m]&&a[v][m].z&&(u.z=a[v][m].z),a[v][m]=u;else{var y=$t({c:m,r:v});a[y]&&a[y].z&&(u.z=a[y].z),a[y]=u}}}return c.s.c<1e7&&(a["!ref"]=Lr(c)),a}function js(e,r){return i1(null,e,r)}function R5(e){return e.read_shift(4,"i")}function ui(e,r){return r||(r=ke(4)),r.write_shift(4,e),r}function an(e){var r=e.read_shift(4);return r===0?"":e.read_shift(r,"dbcs")}function Ur(e,r){var t=!1;return r==null&&(t=!0,r=ke(4+2*e.length)),r.write_shift(4,e.length),e.length>0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}function j5(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function M5(e,r){return r||(r=ke(4)),r.write_shift(2,0),r.write_shift(2,0),r}function tc(e,r){var t=e.l,n=e.read_shift(1),i=an(e),a=[],s={t:i,h:i};if((n&1)!==0){for(var o=e.read_shift(4),l=0;l!=o;++l)a.push(j5(e));s.r=a}else s.r=[{ich:0,ifnt:0}];return e.l=t+r,s}function B5(e,r){var t=!1;return r==null&&(t=!0,r=ke(15+4*e.t.length)),r.write_shift(1,0),Ur(e.t,r),t?r.slice(0,r.l):r}var U5=tc;function z5(e,r){var t=!1;return r==null&&(t=!0,r=ke(23+4*e.t.length)),r.write_shift(1,1),Ur(e.t,r),r.write_shift(4,1),M5({},r),t?r.slice(0,r.l):r}function $n(e){var r=e.read_shift(4),t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:r,iStyleRef:t}}function Xa(e,r){return r==null&&(r=ke(8)),r.write_shift(-4,e.c),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}function Ya(e){var r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:r}}function $a(e,r){return r==null&&(r=ke(4)),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}var W5=an,a1=Ur;function rc(e){var r=e.read_shift(4);return r===0||r===4294967295?"":e.read_shift(r,"dbcs")}function il(e,r){var t=!1;return r==null&&(t=!0,r=ke(127)),r.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}var H5=an,Bf=rc,nc=il;function s1(e){var r=e.slice(e.l,e.l+4),t=r[0]&1,n=r[0]&2;e.l+=4;var i=n===0?nl([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):Oa(r,0)>>2;return t?i/100:i}function o1(e,r){r==null&&(r=ke(4));var t=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,t=1),n)r.write_shift(-4,((t?i:e)<<2)+(t+2));else throw new Error("unsupported RkNumber "+e)}function l1(e){var r={s:{},e:{}};return r.s.r=e.read_shift(4),r.e.r=e.read_shift(4),r.s.c=e.read_shift(4),r.e.c=e.read_shift(4),r}function q5(e,r){return r||(r=ke(16)),r.write_shift(4,e.s.r),r.write_shift(4,e.e.r),r.write_shift(4,e.s.c),r.write_shift(4,e.e.c),r}var Ka=l1,Ms=q5;function Bs(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Ha(e,r){return(r||ke(8)).write_shift(8,e,"f")}function G5(e){var r={},t=e.read_shift(1),n=t>>>1,i=e.read_shift(1),a=e.read_shift(2,"i"),s=e.read_shift(1),o=e.read_shift(1),l=e.read_shift(1);switch(e.l++,n){case 0:r.auto=1;break;case 1:r.index=i;var c=eg[i];c&&(r.rgb=Wu(c));break;case 2:r.rgb=Wu([s,o,l]);break;case 3:r.theme=i;break}return a!=0&&(r.tint=a>0?a/32767:a/32768),r}function al(e,r){if(r||(r=ke(8)),!e||e.auto)return r.write_shift(4,0),r.write_shift(4,0),r;e.index!=null?(r.write_shift(1,2),r.write_shift(1,e.index)):e.theme!=null?(r.write_shift(1,6),r.write_shift(1,e.theme)):(r.write_shift(1,5),r.write_shift(1,0));var t=e.tint||0;if(t>0?t*=32767:t<0&&(t*=32768),r.write_shift(2,t),!e.rgb||e.theme!=null)r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),r.write_shift(1,parseInt(n.slice(0,2),16)),r.write_shift(1,parseInt(n.slice(2,4),16)),r.write_shift(1,parseInt(n.slice(4,6),16)),r.write_shift(1,255)}return r}function V5(e){var r=e.read_shift(1);e.l++;var t={fBold:r&1,fItalic:r&2,fUnderline:r&4,fStrikeout:r&8,fOutline:r&16,fShadow:r&32,fCondense:r&64,fExtend:r&128};return t}function X5(e,r){r||(r=ke(2));var t=(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 r.write_shift(1,t),r.write_shift(1,0),r}var f1=2,kn=3,q0=11,sl=19,G0=64,Y5=65,$5=71,K5=4108,J5=4126,qr=80,Pu={1:{n:"CodePage",t:f1},2:{n:"Category",t:qr},3:{n:"PresentationFormat",t:qr},4:{n:"ByteCount",t:kn},5:{n:"LineCount",t:kn},6:{n:"ParagraphCount",t:kn},7:{n:"SlideCount",t:kn},8:{n:"NoteCount",t:kn},9:{n:"HiddenCount",t:kn},10:{n:"MultimediaClipCount",t:kn},11:{n:"ScaleCrop",t:q0},12:{n:"HeadingPairs",t:K5},13:{n:"TitlesOfParts",t:J5},14:{n:"Manager",t:qr},15:{n:"Company",t:qr},16:{n:"LinksUpToDate",t:q0},17:{n:"CharacterCount",t:kn},19:{n:"SharedDoc",t:q0},22:{n:"HyperlinksChanged",t:q0},23:{n:"AppVersion",t:kn,p:"version"},24:{n:"DigSig",t:Y5},26:{n:"ContentType",t:qr},27:{n:"ContentStatus",t:qr},28:{n:"Language",t:qr},29:{n:"Version",t:qr},255:{},2147483648:{n:"Locale",t:sl},2147483651:{n:"Behavior",t:sl},1919054434:{}},Iu={1:{n:"CodePage",t:f1},2:{n:"Title",t:qr},3:{n:"Subject",t:qr},4:{n:"Author",t:qr},5:{n:"Keywords",t:qr},6:{n:"Comments",t:qr},7:{n:"Template",t:qr},8:{n:"LastAuthor",t:qr},9:{n:"RevNumber",t:qr},10:{n:"EditTime",t:G0},11:{n:"LastPrinted",t:G0},12:{n:"CreatedDate",t:G0},13:{n:"ModifiedDate",t:G0},14:{n:"PageCount",t:kn},15:{n:"WordCount",t:kn},16:{n:"CharCount",t:kn},17:{n:"Thumbnail",t:$5},18:{n:"Application",t:qr},19:{n:"DocSecurity",t:kn},255:{},2147483648:{n:"Locale",t:sl},2147483651:{n:"Behavior",t:sl},1919054434:{}};function Z5(e){return e.map(function(r){return[r>>16&255,r>>8&255,r&255]})}var Q5=Z5([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]),eg=_n(Q5),Vo={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},tg={"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"},V0={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 c1(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function u1(e,r){var t=u5(tg),n=[],i;n[n.length]=Fr,n[n.length]=Xe("Types",null,{xmlns:Mr.CT,"xmlns:xsd":Mr.xsd,"xmlns:xsi":Mr.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 Xe("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]=Xe("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:V0[l][r.bookType]||V0[l].xlsx}))},s=function(l){(e[l]||[]).forEach(function(c){n[n.length]=Xe("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:V0[l][r.bookType]||V0[l].xlsx})})},o=function(l){(e[l]||[]).forEach(function(c){n[n.length]=Xe("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:t[l][0]})})};return a("workbooks"),s("sheets"),s("charts"),o("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),s("metadata"),o("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var Mt={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 h1(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function Cs(e){var r=[Fr,Xe("Relationships",null,{xmlns:Mr.RELS})];return Yr(e["!id"]).forEach(function(t){r[r.length]=Xe("Relationship",null,e["!id"][t])}),r.length>2&&(r[r.length]="</Relationships>",r[1]=r[1].replace("/>",">")),r.join("")}function Xt(e,r,t,n,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),r<0)for(r=e["!idx"];e["!id"]["rId"+r];++r);if(e["!idx"]=r+1,i.Id="rId"+r,i.Type=n,i.Target=t,[Mt.HLINK,Mt.XPATH,Mt.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+r);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,r}function rg(e){var r=[Fr];r.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
266
+ `),r.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
267
+ `);for(var t=0;t<e.length;++t)r.push(' <manifest:file-entry manifest:full-path="'+e[t][0]+'" manifest:media-type="'+e[t][1]+`"/>
268
+ `);return r.push("</manifest:manifest>"),r.join("")}function Ou(e,r,t){return[' <rdf:Description rdf:about="'+e+`">
269
+ `,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(t||"odf")+"#"+r+`"/>
270
+ `,` </rdf:Description>
271
+ `].join("")}function ng(e,r){return[' <rdf:Description rdf:about="'+e+`">
272
+ `,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+r+`"/>
273
+ `,` </rdf:Description>
274
+ `].join("")}function ig(e){var r=[Fr];r.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
275
+ `);for(var t=0;t!=e.length;++t)r.push(Ou(e[t][0],e[t][1])),r.push(ng("",e[t][0]));return r.push(Ou("","Document","pkg")),r.push("</rdf:RDF>"),r.join("")}function d1(){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 '+J0.version+"</meta:generator></office:meta></office:document-meta>"}var Ua=[["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 wf(e,r,t,n,i){i[e]!=null||r==null||r===""||(i[e]=r,r=Yt(r),n[n.length]=t?Xe(e,r,t):Vr(e,r))}function p1(e,r){var t=r||{},n=[Fr,Xe("cp:coreProperties",null,{"xmlns:cp":Mr.CORE_PROPS,"xmlns:dc":Mr.dc,"xmlns:dcterms":Mr.dcterms,"xmlns:dcmitype":Mr.dcmitype,"xmlns:xsi":Mr.xsi})],i={};if(!e&&!t.Props)return n.join("");e&&(e.CreatedDate!=null&&wf("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:Mf(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&wf("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:Mf(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=Ua.length;++a){var s=Ua[a],o=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;o===!0?o="1":o===!1?o="0":typeof o=="number"&&(o=String(o)),o!=null&&wf(s[0],o,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var ks=[["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"]],g1=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function m1(e){var r=[],t=Xe;return e||(e={}),e.Application="SheetJS",r[r.length]=Fr,r[r.length]=Xe("Properties",null,{xmlns:Mr.EXT_PROPS,"xmlns:vt":Mr.vt}),ks.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Yt(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(r[r.length]=t(n[0],i))}}),r[r.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+t("vt:variant",t("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),r[r.length]=t("TitlesOfParts",t("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+Yt(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}function x1(e){var r=[Fr,Xe("Properties",null,{xmlns:Mr.CUST_PROPS,"xmlns:vt":Mr.vt})];if(!e)return r.join("");var t=1;return Yr(e).forEach(function(i){++t,r[r.length]=Xe("property",_5(e[i]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:Yt(i)})}),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var Du={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 ag(e,r){var t=[];return Yr(Du).map(function(n){for(var i=0;i<Ua.length;++i)if(Ua[i][1]==n)return Ua[i];for(i=0;i<ks.length;++i)if(ks[i][1]==n)return ks[i];throw n}).forEach(function(n){if(e[n[1]]!=null){var i=r&&r.Props&&r.Props[n[1]]!=null?r.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/,"")),t.push(Vr(Du[n[1]]||n[1],i))}}),Xe("DocumentProperties",t.join(""),{xmlns:In.o})}function sg(e,r){var t=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&Yr(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)){for(var s=0;s<Ua.length;++s)if(a==Ua[s][1])return;for(s=0;s<ks.length;++s)if(a==ks[s][1])return;for(s=0;s<t.length;++s)if(a==t[s])return;var o=e[a],l="string";typeof o=="number"?(l="float",o=String(o)):o===!0||o===!1?(l="boolean",o=o?"1":"0"):o=String(o),i.push(Xe(_u(a),o,{"dt:dt":l}))}}),r&&Yr(r).forEach(function(a){if(Object.prototype.hasOwnProperty.call(r,a)&&!(e&&Object.prototype.hasOwnProperty.call(e,a))){var s=r[a],o="string";typeof s=="number"?(o="float",s=String(s)):s===!0||s===!1?(o="boolean",s=s?"1":"0"):s instanceof Date?(o="dateTime.tz",s=s.toISOString()):s=String(s),i.push(Xe(_u(a),s,{"dt:dt":o}))}}),"<"+n+' xmlns="'+In.o+'">'+i.join("")+"</"+n+">"}function og(e){var r=typeof e=="string"?new Date(Date.parse(e)):e,t=r.getTime()/1e3+11644473600,n=t%Math.pow(2,32),i=(t-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 s=ke(8);return s.write_shift(4,n),s.write_shift(4,i),s}function Ru(e,r){var t=ke(4),n=ke(4);switch(t.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,r);break;case 5:n=ke(8),n.write_shift(8,r,"f");break;case 11:n.write_shift(4,r?1:0);break;case 64:n=og(r);break;case 31:case 80:for(n=ke(4+2*(r.length+1)+(r.length%2?0:2)),n.write_shift(4,r.length+1),n.write_shift(0,r,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+r)}return Gr([t,n])}var v1=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function lg(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 ju(e,r,t){var n=ke(8),i=[],a=[],s=8,o=0,l=ke(8),c=ke(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),a.push(l),i.push(c),s+=8+l.length,!r){c=ke(8),c.write_shift(4,0),i.unshift(c);var h=[ke(4)];for(h[0].write_shift(4,e.length),o=0;o<e.length;++o){var p=e[o][0];for(l=ke(8+2*(p.length+1)+(p.length%2?0:2)),l.write_shift(4,o+2),l.write_shift(4,p.length+1),l.write_shift(0,p,"dbcs");l.l!=l.length;)l.write_shift(1,0);h.push(l)}l=Gr(h),a.unshift(l),s+=8+l.length}for(o=0;o<e.length;++o)if(!(r&&!r[e[o][0]])&&!(v1.indexOf(e[o][0])>-1||g1.indexOf(e[o][0])>-1)&&e[o][1]!=null){var g=e[o][1],u=0;if(r){u=+r[e[o][0]];var v=t[u];if(v.p=="version"&&typeof g=="string"){var m=g.split(".");g=(+m[0]<<16)+(+m[1]||0)}l=Ru(v.t,g)}else{var y=lg(g);y==-1&&(y=31,g=String(g)),l=Ru(y,g)}a.push(l),c=ke(8),c.write_shift(4,r?u:2+o),i.push(c),s+=8+l.length}var _=8*(a.length+1);for(o=0;o<a.length;++o)i[o].write_shift(4,_),_+=a[o].length;return n.write_shift(4,s),n.write_shift(4,a.length),Gr([n].concat(i).concat(a))}function Mu(e,r,t,n,i,a){var s=ke(i?68:48),o=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,Zt.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,i?2:1),s.write_shift(16,r,"hex"),s.write_shift(4,i?68:48);var l=ju(e,t,n);if(o.push(l),i){var c=ju(i,null,null);s.write_shift(16,a,"hex"),s.write_shift(4,68+l.length),o.push(c)}return Gr(o)}function fg(e,r){r||(r=ke(e));for(var t=0;t<e;++t)r.write_shift(1,0);return r}function cg(e,r){return e.read_shift(r)===1}function un(e,r){return r||(r=ke(2)),r.write_shift(2,+!!e),r}function w1(e){return e.read_shift(2,"u")}function Yn(e,r){return r||(r=ke(2)),r.write_shift(2,e),r}function y1(e,r,t){return t||(t=ke(2)),t.write_shift(1,r=="e"?+e:+!!e),t.write_shift(1,r=="e"?1:0),t}function b1(e,r,t){var n=e.read_shift(t&&t.biff>=12?2:1),i="sbcs-cont";if(t&&t.biff>=8,!t||t.biff==8){var a=e.read_shift(1);a&&(i="dbcs-cont")}else t.biff==12&&(i="wstr");t.biff>=2&&t.biff<=5&&(i="cpstr");var s=n?e.read_shift(n,i):"";return s}function ug(e){var r=e.t||"",t=ke(3);t.write_shift(2,r.length),t.write_shift(1,1);var n=ke(2*r.length);n.write_shift(2*r.length,r,"utf16le");var i=[t,n];return Gr(i)}function hg(e,r,t){var n;if(t){if(t.biff>=2&&t.biff<=5)return e.read_shift(r,"cpstr");if(t.biff>=12)return e.read_shift(r,"dbcs-cont")}var i=e.read_shift(1);return i===0?n=e.read_shift(r,"sbcs-cont"):n=e.read_shift(r,"dbcs-cont"),n}function dg(e,r,t){var n=e.read_shift(t&&t.biff==2?1:2);return n===0?(e.l++,""):hg(e,n,t)}function pg(e,r,t){if(t.biff>5)return dg(e,r,t);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function _1(e,r,t){return t||(t=ke(3+2*e.length)),t.write_shift(2,e.length),t.write_shift(1,1),t.write_shift(31,e,"utf16le"),t}function Bu(e,r){r||(r=ke(6+e.length*2)),r.write_shift(4,1+e.length);for(var t=0;t<e.length;++t)r.write_shift(2,e.charCodeAt(t));return r.write_shift(2,0),r}function gg(e){var r=ke(512),t=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}r.write_shift(4,2),r.write_shift(4,a);var s=[8,6815827,6619237,4849780,83];for(t=0;t<s.length;++t)r.write_shift(4,s[t]);if(a==28)n=n.slice(1),Bu(n,r);else if(a&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),t=0;t<s.length;++t)r.write_shift(1,parseInt(s[t],16));var o=i>-1?n.slice(0,i):n;for(r.write_shift(4,2*(o.length+1)),t=0;t<o.length;++t)r.write_shift(2,o.charCodeAt(t));r.write_shift(2,0),a&8&&Bu(i>-1?n.slice(i+1):"",r)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),t=0;t<s.length;++t)r.write_shift(1,parseInt(s[t],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(r.write_shift(2,l),r.write_shift(4,n.length-3*l+1),t=0;t<n.length-3*l;++t)r.write_shift(1,n.charCodeAt(t+3*l)&255);for(r.write_shift(1,0),r.write_shift(2,65535),r.write_shift(2,57005),t=0;t<6;++t)r.write_shift(4,0)}return r.slice(0,r.l)}function qa(e,r,t,n){return n||(n=ke(6)),n.write_shift(2,e),n.write_shift(2,r),n.write_shift(2,t||0),n}function mg(e,r,t){var n=t.biff>8?4:2,i=e.read_shift(n),a=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[i,a,s]}function xg(e){var r=e.read_shift(2),t=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return{s:{c:n,r},e:{c:i,r:t}}}function S1(e,r){return r||(r=ke(8)),r.write_shift(2,e.s.r),r.write_shift(2,e.e.r),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c),r}function ic(e,r,t){var n=1536,i=16;switch(t.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=ke(i);return a.write_shift(2,n),a.write_shift(2,r),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 vg(e,r){var t=!r||r.biff==8,n=ke(t?112:54);for(n.write_shift(r.biff==8?2:1,7),t&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(t?0:536870912));n.l<n.length;)n.write_shift(1,t?0:32);return n}function wg(e,r){var t=!r||r.biff>=8?2:1,n=ke(8+t*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),r.biff>=8&&n.write_shift(1,1),n.write_shift(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function yg(e,r){var t=ke(8);t.write_shift(4,e.Count),t.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=ug(e[i]);var a=Gr([t].concat(n));return a.parts=[t.length].concat(n.map(function(s){return s.length})),a}function bg(){var e=ke(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 _g(e){var r=ke(18),t=1718;return e&&e.RTL&&(t|=64),r.write_shift(2,t),r.write_shift(4,0),r.write_shift(4,64),r.write_shift(4,0),r.write_shift(4,0),r}function Sg(e,r){var t=e.name||"Arial",n=r&&r.biff==5,i=n?15+t.length:16+2*t.length,a=ke(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,t.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*t.length,t,n?"sbcs":"utf16le"),a}function Ag(e,r,t,n){var i=ke(10);return qa(e,r,n,i),i.write_shift(4,t),i}function Ng(e,r,t,n,i){var a=!i||i.biff==8,s=ke(8+ +a+(1+a)*t.length);return qa(e,r,n,s),s.write_shift(2,t.length),a&&s.write_shift(1,1),s.write_shift((1+a)*t.length,t,a?"utf16le":"sbcs"),s}function Tg(e,r,t,n){var i=t&&t.biff==5;n||(n=ke(i?3+r.length:5+2*r.length)),n.write_shift(2,e),n.write_shift(i?1:2,r.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*r.length,r,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 Eg(e,r){var t=r.biff==8||!r.biff?4:2,n=ke(2*t+6);return n.write_shift(t,e.s.r),n.write_shift(t,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 Uu(e,r,t,n){var i=t&&t.biff==5;n||(n=ke(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,r<<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 Lg(e){var r=ke(8);return r.write_shift(4,0),r.write_shift(2,0),r.write_shift(2,0),r}function Fg(e,r,t,n,i,a){var s=ke(8);return qa(e,r,n,s),y1(t,a,s),s}function Cg(e,r,t,n){var i=ke(14);return qa(e,r,n,i),Ha(t,i),i}function kg(e,r,t){if(t.biff<8)return Pg(e,r,t);for(var n=[],i=e.l+r,a=e.read_shift(t.biff>8?4:2);a--!==0;)n.push(mg(e,t.biff>8?12:6,t));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function Pg(e,r,t){e[e.l+1]==3&&e[e.l]++;var n=b1(e,r,t);return n.charCodeAt(0)==3?n.slice(1):n}function Ig(e){var r=ke(2+e.length*8);r.write_shift(2,e.length);for(var t=0;t<e.length;++t)S1(e[t],r);return r}function Og(e){var r=ke(24),t=Br(e[0]);r.write_shift(2,t.r),r.write_shift(2,t.r),r.write_shift(2,t.c),r.write_shift(2,t.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)r.write_shift(1,parseInt(n[i],16));return Gr([r,gg(e[1])])}function Dg(e){var r=e[1].Tooltip,t=ke(10+2*(r.length+1));t.write_shift(2,2048);var n=Br(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var i=0;i<r.length;++i)t.write_shift(2,r.charCodeAt(i));return t.write_shift(2,0),t}function Rg(e){return e||(e=ke(4)),e.write_shift(2,1),e.write_shift(2,1),e}function jg(e,r,t){if(!t.cellStyles)return Ti(e,r);var n=t&&t.biff>=12?4:2,i=e.read_shift(n),a=e.read_shift(n),s=e.read_shift(n),o=e.read_shift(n),l=e.read_shift(2);n==2&&(e.l+=2);var c={s:i,e:a,w:s,ixfe:o,flags:l};return(t.biff>=5||!t.biff)&&(c.level=l>>8&7),c}function Mg(e,r){var t=ke(12);t.write_shift(2,r),t.write_shift(2,r),t.write_shift(2,e.width*256),t.write_shift(2,0);var n=0;return e.hidden&&(n|=1),t.write_shift(1,n),n=e.level||0,t.write_shift(1,n),t.write_shift(2,0),t}function Bg(e){for(var r=ke(2*e),t=0;t<e;++t)r.write_shift(2,t+1);return r}function Ug(e,r,t){var n=ke(15);return Yo(n,e,r),n.write_shift(8,t,"f"),n}function zg(e,r,t){var n=ke(9);return Yo(n,e,r),n.write_shift(2,t),n}var Wg=(function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},r=Xf({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function t(o,l){var c=[],h=Wa(1);switch(l.type){case"base64":h=fi(qi(o));break;case"binary":h=fi(o);break;case"buffer":case"array":h=o;break}Pn(h,0);var p=h.read_shift(1),g=!!(p&136),u=!1,v=!1;switch(p){case 2:break;case 3:break;case 48:u=!0,g=!0;break;case 49:u=!0,g=!0;break;case 131:break;case 139:break;case 140:v=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+p.toString(16))}var m=0,y=521;p==2&&(m=h.read_shift(2)),h.l+=3,p!=2&&(m=h.read_shift(4)),m>1048576&&(m=1e6),p!=2&&(y=h.read_shift(2));var _=h.read_shift(2),S=l.codepage||1252;p!=2&&(h.l+=16,h.read_shift(1),h[h.l]!==0&&(S=e[h[h.l]]),h.l+=1,h.l+=2),v&&(h.l+=36);for(var A=[],P={},z=Math.min(h.length,p==2?521:y-10-(u?264:0)),G=v?32:11;h.l<z&&h[h.l]!=13;)switch(P={},P.name=Z0.utils.decode(S,h.slice(h.l,h.l+G)).replace(/[\u0000\r\n].*$/g,""),h.l+=G,P.type=String.fromCharCode(h.read_shift(1)),p!=2&&!v&&(P.offset=h.read_shift(4)),P.len=h.read_shift(1),p==2&&(P.offset=h.read_shift(2)),P.dec=h.read_shift(1),P.name.length&&A.push(P),p!=2&&(h.l+=v?13:14),P.type){case"B":(!u||P.len!=8)&&l.WTF&&console.log("Skipping "+P.name+":"+P.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+P.name+":"+P.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: "+P.type)}if(h[h.l]!==13&&(h.l=y-1),h.read_shift(1)!==13)throw new Error("DBF Terminator not found "+h.l+" "+h[h.l]);h.l=y;var L=0,I=0;for(c[0]=[],I=0;I!=A.length;++I)c[0][I]=A[I].name;for(;m-- >0;){if(h[h.l]===42){h.l+=_;continue}for(++h.l,c[++L]=[],I=0,I=0;I!=A.length;++I){var j=h.slice(h.l,h.l+A[I].len);h.l+=A[I].len,Pn(j,0);var V=Z0.utils.decode(S,j);switch(A[I].type){case"C":V.trim().length&&(c[L][I]=V.replace(/\s+$/,""));break;case"D":V.length===8?c[L][I]=new Date(+V.slice(0,4),+V.slice(4,6)-1,+V.slice(6,8)):c[L][I]=V;break;case"F":c[L][I]=parseFloat(V.trim());break;case"+":case"I":c[L][I]=v?j.read_shift(-4,"i")^2147483648:j.read_shift(4,"i");break;case"L":switch(V.trim().toUpperCase()){case"Y":case"T":c[L][I]=!0;break;case"N":case"F":c[L][I]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+V+"|")}break;case"M":if(!g)throw new Error("DBF Unexpected MEMO for type "+p.toString(16));c[L][I]="##MEMO##"+(v?parseInt(V.trim(),10):j.read_shift(4));break;case"N":V=V.replace(/\u0000/g,"").trim(),V&&V!="."&&(c[L][I]=+V||0);break;case"@":c[L][I]=new Date(j.read_shift(-8,"f")-621356832e5);break;case"T":c[L][I]=new Date((j.read_shift(4)-2440588)*864e5+j.read_shift(4));break;case"Y":c[L][I]=j.read_shift(4,"i")/1e4+j.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[L][I]=-j.read_shift(-8,"f");break;case"B":if(u&&A[I].len==8){c[L][I]=j.read_shift(8,"f");break}case"G":case"P":j.l+=A[I].len;break;case"0":if(A[I].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+A[I].type)}}}if(p!=2&&h.l<h.length&&h[h.l++]!=26)throw new Error("DBF EOF Marker missing "+(h.l-1)+" of "+h.length+" "+h[h.l-1].toString(16));return l&&l.sheetRows&&(c=c.slice(0,l.sheetRows)),l.DBF=A,c}function n(o,l){var c=l||{};c.dateNF||(c.dateNF="yyyymmdd");var h=js(t(o,c),c);return h["!cols"]=c.DBF.map(function(p){return{wch:p.len,DBF:p}}),delete c.DBF,h}function i(o,l){try{return Va(n(o,l),l)}catch(c){if(l&&l.WTF)throw c}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function s(o,l){var c=l||{};if(+c.codepage>=0&&Do(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var h=yn(),p=ul(o,{header:1,raw:!0,cellDates:!0}),g=p[0],u=p.slice(1),v=o["!cols"]||[],m=0,y=0,_=0,S=1;for(m=0;m<g.length;++m){if(((v[m]||{}).DBF||{}).name){g[m]=v[m].DBF.name,++_;continue}if(g[m]!=null){if(++_,typeof g[m]=="number"&&(g[m]=g[m].toString(10)),typeof g[m]!="string")throw new Error("DBF Invalid column name "+g[m]+" |"+typeof g[m]+"|");if(g.indexOf(g[m])!==m){for(y=0;y<1024;++y)if(g.indexOf(g[m]+"_"+y)==-1){g[m]+="_"+y;break}}}}var A=lr(o["!ref"]),P=[],z=[],G=[];for(m=0;m<=A.e.c-A.s.c;++m){var L="",I="",j=0,V=[];for(y=0;y<u.length;++y)u[y][m]!=null&&V.push(u[y][m]);if(V.length==0||g[m]==null){P[m]="?";continue}for(y=0;y<V.length;++y){switch(typeof V[y]){case"number":I="B";break;case"string":I="C";break;case"boolean":I="L";break;case"object":I=V[y]instanceof Date?"D":"C";break;default:I="C"}j=Math.max(j,String(V[y]).length),L=L&&L!=I?"C":I}j>250&&(j=250),I=((v[m]||{}).DBF||{}).type,I=="C"&&v[m].DBF.len>j&&(j=v[m].DBF.len),L=="B"&&I=="N"&&(L="N",G[m]=v[m].DBF.dec,j=v[m].DBF.len),z[m]=L=="C"||I=="N"?j:a[L]||0,S+=z[m],P[m]=L}var E=h.next(32);for(E.write_shift(4,318902576),E.write_shift(4,u.length),E.write_shift(2,296+32*_),E.write_shift(2,S),m=0;m<4;++m)E.write_shift(4,0);for(E.write_shift(4,0|(+r[Nh]||3)<<8),m=0,y=0;m<g.length;++m)if(g[m]!=null){var N=h.next(32),H=(g[m].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);N.write_shift(1,H,"sbcs"),N.write_shift(1,P[m]=="?"?"C":P[m],"sbcs"),N.write_shift(4,y),N.write_shift(1,z[m]||a[P[m]]||0),N.write_shift(1,G[m]||0),N.write_shift(1,2),N.write_shift(4,0),N.write_shift(1,0),N.write_shift(4,0),N.write_shift(4,0),y+=z[m]||a[P[m]]||0}var Y=h.next(264);for(Y.write_shift(4,13),m=0;m<65;++m)Y.write_shift(4,0);for(m=0;m<u.length;++m){var fe=h.next(S);for(fe.write_shift(1,0),y=0;y<g.length;++y)if(g[y]!=null)switch(P[y]){case"L":fe.write_shift(1,u[m][y]==null?63:u[m][y]?84:70);break;case"B":fe.write_shift(8,u[m][y]||0,"f");break;case"N":var Q="0";for(typeof u[m][y]=="number"&&(Q=u[m][y].toFixed(G[y]||0)),_=0;_<z[y]-Q.length;++_)fe.write_shift(1,32);fe.write_shift(1,Q,"sbcs");break;case"D":u[m][y]?(fe.write_shift(4,("0000"+u[m][y].getFullYear()).slice(-4),"sbcs"),fe.write_shift(2,("00"+(u[m][y].getMonth()+1)).slice(-2),"sbcs"),fe.write_shift(2,("00"+u[m][y].getDate()).slice(-2),"sbcs")):fe.write_shift(8,"00000000","sbcs");break;case"C":var J=String(u[m][y]!=null?u[m][y]:"").slice(0,z[y]);for(fe.write_shift(1,J,"sbcs"),_=0;_<z[y]-J.length;++_)fe.write_shift(1,32);break}}return h.next(1).write_shift(1,26),h.end()}return{to_workbook:i,to_sheet:n,from_sheet:s}})(),Hg=(function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},r=new RegExp("\x1BN("+Yr(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(g,u){var v=e[u];return typeof v=="number"?cu(v):v},n=function(g,u,v){var m=u.charCodeAt(0)-32<<4|v.charCodeAt(0)-48;return m==59?g:cu(m)};e["|"]=254;function i(g,u){switch(u.type){case"base64":return a(qi(g),u);case"binary":return a(g,u);case"buffer":return a(Ut&&Buffer.isBuffer(g)?g.toString("binary"):Ho(g),u);case"array":return a(wl(g),u)}throw new Error("Unrecognized type "+u.type)}function a(g,u){var v=g.split(/[\n\r]+/),m=-1,y=-1,_=0,S=0,A=[],P=[],z=null,G={},L=[],I=[],j=[],V=0,E;for(+u.codepage>=0&&Do(+u.codepage);_!==v.length;++_){V=0;var N=v[_].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(r,t),H=N.replace(/;;/g,"\0").split(";").map(function(O){return O.replace(/\u0000/g,";")}),Y=H[0],fe;if(N.length>0)switch(Y){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":H[1].charAt(0)=="P"&&P.push(N.slice(3).replace(/;;/g,";"));break;case"C":var Q=!1,J=!1,oe=!1,ne=!1,ge=-1,ye=-1;for(S=1;S<H.length;++S)switch(H[S].charAt(0)){case"A":break;case"X":y=parseInt(H[S].slice(1))-1,J=!0;break;case"Y":for(m=parseInt(H[S].slice(1))-1,J||(y=0),E=A.length;E<=m;++E)A[E]=[];break;case"K":fe=H[S].slice(1),fe.charAt(0)==='"'?fe=fe.slice(1,fe.length-1):fe==="TRUE"?fe=!0:fe==="FALSE"?fe=!1:isNaN(Wi(fe))?isNaN(jo(fe).getDate())||(fe=hn(fe)):(fe=Wi(fe),z!==null&&jh(z)&&(fe=zh(fe))),Q=!0;break;case"E":ne=!0;var b=zm(H[S].slice(1),{r:m,c:y});A[m][y]=[A[m][y],b];break;case"S":oe=!0,A[m][y]=[A[m][y],"S5S"];break;case"G":break;case"R":ge=parseInt(H[S].slice(1))-1;break;case"C":ye=parseInt(H[S].slice(1))-1;break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+N)}if(Q&&(A[m][y]&&A[m][y].length==2?A[m][y][0]=fe:A[m][y]=fe,z=null),oe){if(ne)throw new Error("SYLK shared formula cannot have own formula");var C=ge>-1&&A[ge][ye];if(!C||!C[1])throw new Error("SYLK shared formula cannot find base");A[m][y][1]=Wm(C[1],{r:m-ge,c:y-ye})}break;case"F":var k=0;for(S=1;S<H.length;++S)switch(H[S].charAt(0)){case"X":y=parseInt(H[S].slice(1))-1,++k;break;case"Y":for(m=parseInt(H[S].slice(1))-1,E=A.length;E<=m;++E)A[E]=[];break;case"M":V=parseInt(H[S].slice(1))/20;break;case"F":break;case"G":break;case"P":z=P[parseInt(H[S].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(j=H[S].slice(1).split(" "),E=parseInt(j[0],10);E<=parseInt(j[1],10);++E)V=parseInt(j[2],10),I[E-1]=V===0?{hidden:!0}:{wch:V},ac(I[E-1]);break;case"C":y=parseInt(H[S].slice(1))-1,I[y]||(I[y]={});break;case"R":m=parseInt(H[S].slice(1))-1,L[m]||(L[m]={}),V>0?(L[m].hpt=V,L[m].hpx=L1(V)):V===0&&(L[m].hidden=!0);break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+N)}k<1&&(z=null);break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+N)}}return L.length>0&&(G["!rows"]=L),I.length>0&&(G["!cols"]=I),u&&u.sheetRows&&(A=A.slice(0,u.sheetRows)),[A,G]}function s(g,u){var v=i(g,u),m=v[0],y=v[1],_=js(m,u);return Yr(y).forEach(function(S){_[S]=y[S]}),_}function o(g,u){return Va(s(g,u),u)}function l(g,u,v,m){var y="C;Y"+(v+1)+";X"+(m+1)+";K";switch(g.t){case"n":y+=g.v||0,g.f&&!g.F&&(y+=";E"+oc(g.f,{r:v,c:m}));break;case"b":y+=g.v?"TRUE":"FALSE";break;case"e":y+=g.w||g.v;break;case"d":y+='"'+(g.w||g.v)+'"';break;case"s":y+='"'+g.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return y}function c(g,u){u.forEach(function(v,m){var y="F;W"+(m+1)+" "+(m+1)+" ";v.hidden?y+="0":(typeof v.width=="number"&&!v.wpx&&(v.wpx=ol(v.width)),typeof v.wpx=="number"&&!v.wch&&(v.wch=ll(v.wpx)),typeof v.wch=="number"&&(y+=Math.round(v.wch))),y.charAt(y.length-1)!=" "&&g.push(y)})}function h(g,u){u.forEach(function(v,m){var y="F;";v.hidden?y+="M0;":v.hpt?y+="M"+20*v.hpt+";":v.hpx&&(y+="M"+20*fl(v.hpx)+";"),y.length>2&&g.push(y+"R"+(m+1))})}function p(g,u){var v=["ID;PWXL;N;E"],m=[],y=lr(g["!ref"]),_,S=Array.isArray(g),A=`\r
276
+ `;v.push("P;PGeneral"),v.push("F;P0;DG0G8;M255"),g["!cols"]&&c(v,g["!cols"]),g["!rows"]&&h(v,g["!rows"]),v.push("B;Y"+(y.e.r-y.s.r+1)+";X"+(y.e.c-y.s.c+1)+";D"+[y.s.c,y.s.r,y.e.c,y.e.r].join(" "));for(var P=y.s.r;P<=y.e.r;++P)for(var z=y.s.c;z<=y.e.c;++z){var G=$t({r:P,c:z});_=S?(g[P]||[])[z]:g[G],!(!_||_.v==null&&(!_.f||_.F))&&m.push(l(_,g,P,z))}return v.join(A)+A+m.join(A)+A+"E"+A}return{to_workbook:o,to_sheet:s,from_sheet:p}})(),qg=(function(){function e(a,s){switch(s.type){case"base64":return r(qi(a),s);case"binary":return r(a,s);case"buffer":return r(Ut&&Buffer.isBuffer(a)?a.toString("binary"):Ho(a),s);case"array":return r(wl(a),s)}throw new Error("Unrecognized type "+s.type)}function r(a,s){for(var o=a.split(`
277
+ `),l=-1,c=-1,h=0,p=[];h!==o.length;++h){if(o[h].trim()==="BOT"){p[++l]=[],c=0;continue}if(!(l<0)){var g=o[h].trim().split(","),u=g[0],v=g[1];++h;for(var m=o[h]||"";(m.match(/["]/g)||[]).length&1&&h<o.length-1;)m+=`
278
+ `+o[++h];switch(m=m.trim(),+u){case-1:if(m==="BOT"){p[++l]=[],c=0;continue}else if(m!=="EOD")throw new Error("Unrecognized DIF special command "+m);break;case 0:m==="TRUE"?p[l][c]=!0:m==="FALSE"?p[l][c]=!1:isNaN(Wi(v))?isNaN(jo(v).getDate())?p[l][c]=v:p[l][c]=hn(v):p[l][c]=Wi(v),++c;break;case 1:m=m.slice(1,m.length-1),m=m.replace(/""/g,'"'),m&&m.match(/^=".*"$/)&&(m=m.slice(2,-1)),p[l][c++]=m!==""?m:null;break}if(m==="EOD")break}}return s&&s.sheetRows&&(p=p.slice(0,s.sheetRows)),p}function t(a,s){return js(e(a,s),s)}function n(a,s){return Va(t(a,s),s)}var i=(function(){var a=function(l,c,h,p,g){l.push(c),l.push(h+","+p),l.push('"'+g.replace(/"/g,'""')+'"')},s=function(l,c,h,p){l.push(c+","+h),l.push(c==1?'"'+p.replace(/"/g,'""')+'"':p)};return function(l){var c=[],h=lr(l["!ref"]),p,g=Array.isArray(l);a(c,"TABLE",0,1,"sheetjs"),a(c,"VECTORS",0,h.e.r-h.s.r+1,""),a(c,"TUPLES",0,h.e.c-h.s.c+1,""),a(c,"DATA",0,0,"");for(var u=h.s.r;u<=h.e.r;++u){s(c,-1,0,"BOT");for(var v=h.s.c;v<=h.e.c;++v){var m=$t({r:u,c:v});if(p=g?(l[u]||[])[v]:l[m],!p){s(c,1,0,"");continue}switch(p.t){case"n":var y=p.w;!y&&p.v!=null&&(y=p.v),y==null?p.f&&!p.F?s(c,1,0,"="+p.f):s(c,1,0,""):s(c,0,y,"V");break;case"b":s(c,0,p.v?1:0,p.v?"TRUE":"FALSE");break;case"s":s(c,1,0,isNaN(p.v)?p.v:'="'+p.v+'"');break;case"d":p.w||(p.w=wa(p.z||gr[14],bn(hn(p.v)))),s(c,0,p.w,"V");break;default:s(c,1,0,"")}}}s(c,-1,0,"EOD");var _=`\r
279
+ `,S=c.join(_);return S}})();return{to_workbook:n,to_sheet:t,from_sheet:i}})(),A1=(function(){function e(p){return p.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
280
+ `)}function r(p){return p.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(p,g){for(var u=p.split(`
281
+ `),v=-1,m=-1,y=0,_=[];y!==u.length;++y){var S=u[y].trim().split(":");if(S[0]==="cell"){var A=Br(S[1]);if(_.length<=A.r)for(v=_.length;v<=A.r;++v)_[v]||(_[v]=[]);switch(v=A.r,m=A.c,S[2]){case"t":_[v][m]=e(S[3]);break;case"v":_[v][m]=+S[3];break;case"vtf":var P=S[S.length-1];case"vtc":switch(S[3]){case"nl":_[v][m]=!!+S[4];break;default:_[v][m]=+S[4];break}S[2]=="vtf"&&(_[v][m]=[_[v][m],P])}}}return g&&g.sheetRows&&(_=_.slice(0,g.sheetRows)),_}function n(p,g){return js(t(p,g),g)}function i(p,g){return Va(n(p,g),g)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
282
+ `),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
283
+ `)+`
284
+ `,o=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
285
+ `),l="--SocialCalcSpreadsheetControlSave--";function c(p){if(!p||!p["!ref"])return"";for(var g=[],u=[],v,m="",y=Rn(p["!ref"]),_=Array.isArray(p),S=y.s.r;S<=y.e.r;++S)for(var A=y.s.c;A<=y.e.c;++A)if(m=$t({r:S,c:A}),v=_?(p[S]||[])[A]:p[m],!(!v||v.v==null||v.t==="z")){switch(u=["cell",m,"t"],v.t){case"s":case"str":u.push(r(v.v));break;case"n":v.f?(u[2]="vtf",u[3]="n",u[4]=v.v,u[5]=r(v.f)):(u[2]="v",u[3]=v.v);break;case"b":u[2]="vt"+(v.f?"f":"c"),u[3]="nl",u[4]=v.v?"1":"0",u[5]=r(v.f||(v.v?"TRUE":"FALSE"));break;case"d":var P=bn(hn(v.v));u[2]="vtc",u[3]="nd",u[4]=""+P,u[5]=v.w||wa(v.z||gr[14],P);break;case"e":continue}g.push(u.join(":"))}return g.push("sheet:c:"+(y.e.c-y.s.c+1)+":r:"+(y.e.r-y.s.r+1)+":tvf:1"),g.push("valueformat:1:text-wiki"),g.join(`
286
+ `)}function h(p){return[a,s,o,s,c(p),l].join(`
287
+ `)}return{to_workbook:i,to_sheet:n,from_sheet:h}})(),Gg=(function(){function e(h,p,g,u,v){v.raw?p[g][u]=h:h===""||(h==="TRUE"?p[g][u]=!0:h==="FALSE"?p[g][u]=!1:isNaN(Wi(h))?isNaN(jo(h).getDate())?p[g][u]=h:p[g][u]=hn(h):p[g][u]=Wi(h))}function r(h,p){var g=p||{},u=[];if(!h||h.length===0)return u;for(var v=h.split(/[\r\n]/),m=v.length-1;m>=0&&v[m].length===0;)--m;for(var y=10,_=0,S=0;S<=m;++S)_=v[S].indexOf(" "),_==-1?_=v[S].length:_++,y=Math.max(y,_);for(S=0;S<=m;++S){u[S]=[];var A=0;for(e(v[S].slice(0,y).trim(),u,S,A,g),A=1;A<=(v[S].length-y)/10+1;++A)e(v[S].slice(y+(A-1)*10,y+A*10).trim(),u,S,A,g)}return g.sheetRows&&(u=u.slice(0,g.sheetRows)),u}var t={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(h){for(var p={},g=!1,u=0,v=0;u<h.length;++u)(v=h.charCodeAt(u))==34?g=!g:!g&&v in t&&(p[v]=(p[v]||0)+1);v=[];for(u in p)Object.prototype.hasOwnProperty.call(p,u)&&v.push([p[u],u]);if(!v.length){p=n;for(u in p)Object.prototype.hasOwnProperty.call(p,u)&&v.push([p[u],u])}return v.sort(function(m,y){return m[0]-y[0]||n[m[1]]-n[y[1]]}),t[v.pop()[1]]||44}function a(h,p){var g=p||{},u="",v=g.dense?[]:{},m={s:{c:0,r:0},e:{c:0,r:0}};h.slice(0,4)=="sep="?h.charCodeAt(5)==13&&h.charCodeAt(6)==10?(u=h.charAt(4),h=h.slice(7)):h.charCodeAt(5)==13||h.charCodeAt(5)==10?(u=h.charAt(4),h=h.slice(6)):u=i(h.slice(0,1024)):g&&g.FS?u=g.FS:u=i(h.slice(0,1024));var y=0,_=0,S=0,A=0,P=0,z=u.charCodeAt(0),G=!1,L=0,I=h.charCodeAt(0);h=h.replace(/\r\n/mg,`
288
+ `);var j=g.dateNF!=null?o5(g.dateNF):null;function V(){var E=h.slice(A,P),N={};if(E.charAt(0)=='"'&&E.charAt(E.length-1)=='"'&&(E=E.slice(1,-1).replace(/""/g,'"')),E.length===0)N.t="z";else if(g.raw)N.t="s",N.v=E;else if(E.trim().length===0)N.t="s",N.v=E;else if(E.charCodeAt(0)==61)E.charCodeAt(1)==34&&E.charCodeAt(E.length-1)==34?(N.t="s",N.v=E.slice(2,-1).replace(/""/g,'"')):Hm(E)?(N.t="n",N.f=E.slice(1)):(N.t="s",N.v=E);else if(E=="TRUE")N.t="b",N.v=!0;else if(E=="FALSE")N.t="b",N.v=!1;else if(!isNaN(S=Wi(E)))N.t="n",g.cellText!==!1&&(N.w=E),N.v=S;else if(!isNaN(jo(E).getDate())||j&&E.match(j)){N.z=g.dateNF||gr[14];var H=0;j&&E.match(j)&&(E=l5(E,g.dateNF,E.match(j)||[]),H=1),g.cellDates?(N.t="d",N.v=hn(E,H)):(N.t="n",N.v=bn(hn(E,H))),g.cellText!==!1&&(N.w=wa(N.z,N.v instanceof Date?bn(N.v):N.v)),g.cellNF||delete N.z}else N.t="s",N.v=E;if(N.t=="z"||(g.dense?(v[y]||(v[y]=[]),v[y][_]=N):v[$t({c:_,r:y})]=N),A=P+1,I=h.charCodeAt(A),m.e.c<_&&(m.e.c=_),m.e.r<y&&(m.e.r=y),L==z)++_;else if(_=0,++y,g.sheetRows&&g.sheetRows<=y)return!0}e:for(;P<h.length;++P)switch(L=h.charCodeAt(P)){case 34:I===34&&(G=!G);break;case z:case 10:case 13:if(!G&&V())break e;break}return P-A>0&&V(),v["!ref"]=Lr(m),v}function s(h,p){return!(p&&p.PRN)||p.FS||h.slice(0,4)=="sep="||h.indexOf(" ")>=0||h.indexOf(",")>=0||h.indexOf(";")>=0?a(h,p):js(r(h,p),p)}function o(h,p){var g="",u=p.type=="string"?[0,0,0,0]:n3(h,p);switch(p.type){case"base64":g=qi(h);break;case"binary":g=h;break;case"buffer":p.codepage==65001?g=h.toString("utf8"):p.codepage&&typeof Z0<"u"||(g=Ut&&Buffer.isBuffer(h)?h.toString("binary"):Ho(h));break;case"array":g=wl(h);break;case"string":g=h;break;default:throw new Error("Unrecognized type "+p.type)}return u[0]==239&&u[1]==187&&u[2]==191?g=Lo(g.slice(3)):p.type!="string"&&p.type!="buffer"&&p.codepage==65001?g=Lo(g):p.type=="binary"&&typeof Z0<"u",g.slice(0,19)=="socialcalc:version:"?A1.to_sheet(p.type=="string"?g:Lo(g),p):s(g,p)}function l(h,p){return Va(o(h,p),p)}function c(h){for(var p=[],g=lr(h["!ref"]),u,v=Array.isArray(h),m=g.s.r;m<=g.e.r;++m){for(var y=[],_=g.s.c;_<=g.e.c;++_){var S=$t({r:m,c:_});if(u=v?(h[m]||[])[_]:h[S],!u||u.v==null){y.push(" ");continue}for(var A=(u.w||(Gi(u),u.w)||"").slice(0,10);A.length<10;)A+=" ";y.push(A+(_===0?" ":""))}p.push(y.join(""))}return p.join(`
289
+ `)}return{to_workbook:l,to_sheet:o,from_sheet:c}})(),zu=(function(){function e(b,C,k){if(b){Pn(b,b.l||0);for(var O=k.Enum||ge;b.l<b.length;){var q=b.read_shift(2),le=O[q]||O[65535],ce=b.read_shift(2),ue=b.l+ce,we=le.f&&le.f(b,ce,k);if(b.l=ue,C(we,le,q))return}}}function r(b,C){switch(C.type){case"base64":return t(fi(qi(b)),C);case"binary":return t(fi(b),C);case"buffer":case"array":return t(b,C)}throw"Unsupported type "+C.type}function t(b,C){if(!b)return b;var k=C||{},O=k.dense?[]:{},q="Sheet1",le="",ce=0,ue={},we=[],Pe=[],Re={s:{r:0,c:0},e:{r:0,c:0}},He=k.sheetRows||0;if(b[2]==0&&(b[3]==8||b[3]==9)&&b.length>=16&&b[14]==5&&b[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(b[2]==2)k.Enum=ge,e(b,function(je,it,Ue){switch(Ue){case 0:k.vers=je,je>=4096&&(k.qpro=!0);break;case 6:Re=je;break;case 204:je&&(le=je);break;case 222:le=je;break;case 15:case 51:k.qpro||(je[1].v=je[1].v.slice(1));case 13:case 14:case 16:Ue==14&&(je[2]&112)==112&&(je[2]&15)>1&&(je[2]&15)<15&&(je[1].z=k.dateNF||gr[14],k.cellDates&&(je[1].t="d",je[1].v=zh(je[1].v))),k.qpro&&je[3]>ce&&(O["!ref"]=Lr(Re),ue[q]=O,we.push(q),O=k.dense?[]:{},Re={s:{r:0,c:0},e:{r:0,c:0}},ce=je[3],q=le||"Sheet"+(ce+1),le="");var Ge=k.dense?(O[je[0].r]||[])[je[0].c]:O[$t(je[0])];if(Ge){Ge.t=je[1].t,Ge.v=je[1].v,je[1].z!=null&&(Ge.z=je[1].z),je[1].f!=null&&(Ge.f=je[1].f);break}k.dense?(O[je[0].r]||(O[je[0].r]=[]),O[je[0].r][je[0].c]=je[1]):O[$t(je[0])]=je[1];break}},k);else if(b[2]==26||b[2]==14)k.Enum=ye,b[2]==14&&(k.qpro=!0,b.l=0),e(b,function(je,it,Ue){switch(Ue){case 204:q=je;break;case 22:je[1].v=je[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(je[3]>ce&&(O["!ref"]=Lr(Re),ue[q]=O,we.push(q),O=k.dense?[]:{},Re={s:{r:0,c:0},e:{r:0,c:0}},ce=je[3],q="Sheet"+(ce+1)),He>0&&je[0].r>=He)break;k.dense?(O[je[0].r]||(O[je[0].r]=[]),O[je[0].r][je[0].c]=je[1]):O[$t(je[0])]=je[1],Re.e.c<je[0].c&&(Re.e.c=je[0].c),Re.e.r<je[0].r&&(Re.e.r=je[0].r);break;case 27:je[14e3]&&(Pe[je[14e3][0]]=je[14e3][1]);break;case 1537:Pe[je[0]]=je[1],je[0]==ce&&(q=je[1]);break}},k);else throw new Error("Unrecognized LOTUS BOF "+b[2]);if(O["!ref"]=Lr(Re),ue[le||q]=O,we.push(le||q),!Pe.length)return{SheetNames:we,Sheets:ue};for(var $e={},Ee=[],se=0;se<Pe.length;++se)ue[we[se]]?(Ee.push(Pe[se]||we[se]),$e[Pe[se]]=ue[Pe[se]]||ue[we[se]]):(Ee.push(Pe[se]),$e[Pe[se]]={"!ref":"A1"});return{SheetNames:Ee,Sheets:$e}}function n(b,C){var k=C||{};if(+k.codepage>=0&&Do(+k.codepage),k.type=="string")throw new Error("Cannot write WK1 to JS string");var O=yn(),q=lr(b["!ref"]),le=Array.isArray(b),ce=[];Ye(O,0,a(1030)),Ye(O,6,l(q));for(var ue=Math.min(q.e.r,8191),we=q.s.r;we<=ue;++we)for(var Pe=Xr(we),Re=q.s.c;Re<=q.e.c;++Re){we===q.s.r&&(ce[Re]=nn(Re));var He=ce[Re]+Pe,$e=le?(b[we]||[])[Re]:b[He];if(!(!$e||$e.t=="z"))if($e.t=="n")($e.v|0)==$e.v&&$e.v>=-32768&&$e.v<=32767?Ye(O,13,u(we,Re,$e.v)):Ye(O,14,m(we,Re,$e.v));else{var Ee=Gi($e);Ye(O,15,p(we,Re,Ee.slice(0,239)))}}return Ye(O,1),O.end()}function i(b,C){var k=C||{};if(+k.codepage>=0&&Do(+k.codepage),k.type=="string")throw new Error("Cannot write WK3 to JS string");var O=yn();Ye(O,0,s(b));for(var q=0,le=0;q<b.SheetNames.length;++q)(b.Sheets[b.SheetNames[q]]||{})["!ref"]&&Ye(O,27,ne(b.SheetNames[q],le++));var ce=0;for(q=0;q<b.SheetNames.length;++q){var ue=b.Sheets[b.SheetNames[q]];if(!(!ue||!ue["!ref"])){for(var we=lr(ue["!ref"]),Pe=Array.isArray(ue),Re=[],He=Math.min(we.e.r,8191),$e=we.s.r;$e<=He;++$e)for(var Ee=Xr($e),se=we.s.c;se<=we.e.c;++se){$e===we.s.r&&(Re[se]=nn(se));var je=Re[se]+Ee,it=Pe?(ue[$e]||[])[se]:ue[je];if(!(!it||it.t=="z"))if(it.t=="n")Ye(O,23,V($e,se,ce,it.v));else{var Ue=Gi(it);Ye(O,22,L($e,se,ce,Ue.slice(0,239)))}}++ce}}return Ye(O,1),O.end()}function a(b){var C=ke(2);return C.write_shift(2,b),C}function s(b){var C=ke(26);C.write_shift(2,4096),C.write_shift(2,4),C.write_shift(4,0);for(var k=0,O=0,q=0,le=0;le<b.SheetNames.length;++le){var ce=b.SheetNames[le],ue=b.Sheets[ce];if(!(!ue||!ue["!ref"])){++q;var we=Rn(ue["!ref"]);k<we.e.r&&(k=we.e.r),O<we.e.c&&(O=we.e.c)}}return k>8191&&(k=8191),C.write_shift(2,k),C.write_shift(1,q),C.write_shift(1,O),C.write_shift(2,0),C.write_shift(2,0),C.write_shift(1,1),C.write_shift(1,2),C.write_shift(4,0),C.write_shift(4,0),C}function o(b,C,k){var O={s:{c:0,r:0},e:{c:0,r:0}};return C==8&&k.qpro?(O.s.c=b.read_shift(1),b.l++,O.s.r=b.read_shift(2),O.e.c=b.read_shift(1),b.l++,O.e.r=b.read_shift(2),O):(O.s.c=b.read_shift(2),O.s.r=b.read_shift(2),C==12&&k.qpro&&(b.l+=2),O.e.c=b.read_shift(2),O.e.r=b.read_shift(2),C==12&&k.qpro&&(b.l+=2),O.s.c==65535&&(O.s.c=O.e.c=O.s.r=O.e.r=0),O)}function l(b){var C=ke(8);return C.write_shift(2,b.s.c),C.write_shift(2,b.s.r),C.write_shift(2,b.e.c),C.write_shift(2,b.e.r),C}function c(b,C,k){var O=[{c:0,r:0},{t:"n",v:0},0,0];return k.qpro&&k.vers!=20768?(O[0].c=b.read_shift(1),O[3]=b.read_shift(1),O[0].r=b.read_shift(2),b.l+=2):(O[2]=b.read_shift(1),O[0].c=b.read_shift(2),O[0].r=b.read_shift(2)),O}function h(b,C,k){var O=b.l+C,q=c(b,C,k);if(q[1].t="s",k.vers==20768){b.l++;var le=b.read_shift(1);return q[1].v=b.read_shift(le,"utf8"),q}return k.qpro&&b.l++,q[1].v=b.read_shift(O-b.l,"cstr"),q}function p(b,C,k){var O=ke(7+k.length);O.write_shift(1,255),O.write_shift(2,C),O.write_shift(2,b),O.write_shift(1,39);for(var q=0;q<O.length;++q){var le=k.charCodeAt(q);O.write_shift(1,le>=128?95:le)}return O.write_shift(1,0),O}function g(b,C,k){var O=c(b,C,k);return O[1].v=b.read_shift(2,"i"),O}function u(b,C,k){var O=ke(7);return O.write_shift(1,255),O.write_shift(2,C),O.write_shift(2,b),O.write_shift(2,k,"i"),O}function v(b,C,k){var O=c(b,C,k);return O[1].v=b.read_shift(8,"f"),O}function m(b,C,k){var O=ke(13);return O.write_shift(1,255),O.write_shift(2,C),O.write_shift(2,b),O.write_shift(8,k,"f"),O}function y(b,C,k){var O=b.l+C,q=c(b,C,k);if(q[1].v=b.read_shift(8,"f"),k.qpro)b.l=O;else{var le=b.read_shift(2);P(b.slice(b.l,b.l+le),q),b.l+=le}return q}function _(b,C,k){var O=C&32768;return C&=-32769,C=(O?b:0)+(C>=8192?C-16384:C),(O?"":"$")+(k?nn(C):Xr(C))}var S={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]},A=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function P(b,C){Pn(b,0);for(var k=[],O=0,q="",le="",ce="",ue="";b.l<b.length;){var we=b[b.l++];switch(we){case 0:k.push(b.read_shift(8,"f"));break;case 1:le=_(C[0].c,b.read_shift(2),!0),q=_(C[0].r,b.read_shift(2),!1),k.push(le+q);break;case 2:{var Pe=_(C[0].c,b.read_shift(2),!0),Re=_(C[0].r,b.read_shift(2),!1);le=_(C[0].c,b.read_shift(2),!0),q=_(C[0].r,b.read_shift(2),!1),k.push(Pe+Re+":"+le+q)}break;case 3:if(b.l<b.length){console.error("WK1 premature formula end");return}break;case 4:k.push("("+k.pop()+")");break;case 5:k.push(b.read_shift(2));break;case 6:{for(var He="";we=b[b.l++];)He+=String.fromCharCode(we);k.push('"'+He.replace(/"/g,'""')+'"')}break;case 8:k.push("-"+k.pop());break;case 23:k.push("+"+k.pop());break;case 22:k.push("NOT("+k.pop()+")");break;case 20:case 21:ue=k.pop(),ce=k.pop(),k.push(["AND","OR"][we-20]+"("+ce+","+ue+")");break;default:if(we<32&&A[we])ue=k.pop(),ce=k.pop(),k.push(ce+A[we]+ue);else if(S[we]){if(O=S[we][1],O==69&&(O=b[b.l++]),O>k.length){console.error("WK1 bad formula parse 0x"+we.toString(16)+":|"+k.join("|")+"|");return}var $e=k.slice(-O);k.length-=O,k.push(S[we][0]+"("+$e.join(",")+")")}else return we<=7?console.error("WK1 invalid opcode "+we.toString(16)):we<=24?console.error("WK1 unsupported op "+we.toString(16)):we<=30?console.error("WK1 invalid opcode "+we.toString(16)):we<=115?console.error("WK1 unsupported function opcode "+we.toString(16)):console.error("WK1 unrecognized opcode "+we.toString(16))}}k.length==1?C[1].f=""+k[0]:console.error("WK1 bad formula parse |"+k.join("|")+"|")}function z(b){var C=[{c:0,r:0},{t:"n",v:0},0];return C[0].r=b.read_shift(2),C[3]=b[b.l++],C[0].c=b[b.l++],C}function G(b,C){var k=z(b);return k[1].t="s",k[1].v=b.read_shift(C-4,"cstr"),k}function L(b,C,k,O){var q=ke(6+O.length);q.write_shift(2,b),q.write_shift(1,k),q.write_shift(1,C),q.write_shift(1,39);for(var le=0;le<O.length;++le){var ce=O.charCodeAt(le);q.write_shift(1,ce>=128?95:ce)}return q.write_shift(1,0),q}function I(b,C){var k=z(b);k[1].v=b.read_shift(2);var O=k[1].v>>1;if(k[1].v&1)switch(O&7){case 0:O=(O>>3)*5e3;break;case 1:O=(O>>3)*500;break;case 2:O=(O>>3)/20;break;case 3:O=(O>>3)/200;break;case 4:O=(O>>3)/2e3;break;case 5:O=(O>>3)/2e4;break;case 6:O=(O>>3)/16;break;case 7:O=(O>>3)/64;break}return k[1].v=O,k}function j(b,C){var k=z(b),O=b.read_shift(4),q=b.read_shift(4),le=b.read_shift(2);if(le==65535)return O===0&&q===3221225472?(k[1].t="e",k[1].v=15):O===0&&q===3489660928?(k[1].t="e",k[1].v=42):k[1].v=0,k;var ce=le&32768;return le=(le&32767)-16446,k[1].v=(1-ce*2)*(q*Math.pow(2,le+32)+O*Math.pow(2,le)),k}function V(b,C,k,O){var q=ke(14);if(q.write_shift(2,b),q.write_shift(1,k),q.write_shift(1,C),O==0)return q.write_shift(4,0),q.write_shift(4,0),q.write_shift(2,65535),q;var le=0,ce=0,ue=0,we=0;return O<0&&(le=1,O=-O),ce=Math.log2(O)|0,O/=Math.pow(2,ce-31),we=O>>>0,(we&2147483648)==0&&(O/=2,++ce,we=O>>>0),O-=we,we|=2147483648,we>>>=0,O*=Math.pow(2,32),ue=O>>>0,q.write_shift(4,ue),q.write_shift(4,we),ce+=16383+(le?32768:0),q.write_shift(2,ce),q}function E(b,C){var k=j(b);return b.l+=C-14,k}function N(b,C){var k=z(b),O=b.read_shift(4);return k[1].v=O>>6,k}function H(b,C){var k=z(b),O=b.read_shift(8,"f");return k[1].v=O,k}function Y(b,C){var k=H(b);return b.l+=C-10,k}function fe(b,C){return b[b.l+C-1]==0?b.read_shift(C,"cstr"):""}function Q(b,C){var k=b[b.l++];k>C-1&&(k=C-1);for(var O="";O.length<k;)O+=String.fromCharCode(b[b.l++]);return O}function J(b,C,k){if(!(!k.qpro||C<21)){var O=b.read_shift(1);b.l+=17,b.l+=1,b.l+=2;var q=b.read_shift(C-21,"cstr");return[O,q]}}function oe(b,C){for(var k={},O=b.l+C;b.l<O;){var q=b.read_shift(2);if(q==14e3){for(k[q]=[0,""],k[q][0]=b.read_shift(2);b[b.l];)k[q][1]+=String.fromCharCode(b[b.l]),b.l++;b.l++}}return k}function ne(b,C){var k=ke(5+b.length);k.write_shift(2,14e3),k.write_shift(2,C);for(var O=0;O<b.length;++O){var q=b.charCodeAt(O);k[k.l++]=q>127?95:q}return k[k.l++]=0,k}var ge={0:{n:"BOF",f:w1},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:o},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:g},14:{n:"NUMBER",f:v},15:{n:"LABEL",f:h},16:{n:"FORMULA",f:y},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:h},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:fe},222:{n:"SHEETNAMELP",f:Q},65535:{n:""}},ye={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:G},23:{n:"NUMBER17",f:j},24:{n:"NUMBER18",f:I},25:{n:"FORMULA19",f:E},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:oe},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:N},38:{n:"??"},39:{n:"NUMBER27",f:H},40:{n:"FORMULA28",f:Y},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:fe},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:J},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:r}})(),Vg=/^\s|\s$|[\t\n\r]/;function N1(e,r){if(!r.bookSST)return"";var t=[Fr];t[t.length]=Xe("sst",null,{xmlns:Rs[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(Vg)&&(a+=' xml:space="preserve"'),a+=">"+Yt(i.t)+"</t>"),a+="</si>",t[t.length]=a}return t.length>2&&(t[t.length]="</sst>",t[1]=t[1].replace("/>",">")),t.join("")}function Xg(e){return[e.read_shift(4),e.read_shift(4)]}function Yg(e,r){return r||(r=ke(8)),r.write_shift(4,e.Count),r.write_shift(4,e.Unique),r}var $g=B5;function Kg(e){var r=yn();Me(r,159,Yg(e));for(var t=0;t<e.length;++t)Me(r,19,$g(e[t]));return Me(r,160),r.end()}function Jg(e){for(var r=[],t=e.split(""),n=0;n<t.length;++n)r[n]=t[n].charCodeAt(0);return r}function T1(e){var r=0,t,n=Jg(e),i=n.length+1,a,s,o,l,c;for(t=Wa(i),t[0]=n.length,a=1;a!=i;++a)t[a]=n[a-1];for(a=i-1;a>=0;--a)s=t[a],o=(r&16384)===0?0:1,l=r<<1&32767,c=o|l,r=c^s;return r^52811}var Zg=(function(){function e(i,a){switch(a.type){case"base64":return r(qi(i),a);case"binary":return r(i,a);case"buffer":return r(Ut&&Buffer.isBuffer(i)?i.toString("binary"):Ho(i),a);case"array":return r(wl(i),a)}throw new Error("Unrecognized type "+a.type)}function r(i,a){var s=a||{},o=s.dense?[]:{},l=i.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var c={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(h,p){Array.isArray(o)&&(o[p]=[]);for(var g=/\\\w+\b/g,u=0,v,m=-1;v=g.exec(h);){switch(v[0]){case"\\cell":var y=h.slice(u,g.lastIndex-v[0].length);if(y[0]==" "&&(y=y.slice(1)),++m,y.length){var _={v:y,t:"s"};Array.isArray(o)?o[p][m]=_:o[$t({r:p,c:m})]=_}break}u=g.lastIndex}m>c.e.c&&(c.e.c=m)}),o["!ref"]=Lr(c),o}function t(i,a){return Va(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],s=lr(i["!ref"]),o,l=Array.isArray(i),c=s.s.r;c<=s.e.r;++c){a.push("\\trowd\\trautofit1");for(var h=s.s.c;h<=s.e.c;++h)a.push("\\cellx"+(h+1));for(a.push("\\pard\\intbl"),h=s.s.c;h<=s.e.c;++h){var p=$t({r:c,c:h});o=l?(i[c]||[])[h]:i[p],!(!o||o.v==null&&(!o.f||o.F))&&(a.push(" "+(o.w||(Gi(o),o.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:n}})();function Wu(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().slice(1)}var Qg=6,Hi=Qg;function ol(e){return Math.floor((e+Math.round(128/Hi)/256)*Hi)}function ll(e){return Math.floor((e-5)/Hi*100+.5)/100}function Uf(e){return Math.round((e*Hi+5)/Hi*256)/256}function ac(e){e.width?(e.wpx=ol(e.width),e.wch=ll(e.wpx),e.MDW=Hi):e.wpx?(e.wch=ll(e.wpx),e.width=Uf(e.wch),e.MDW=Hi):typeof e.wch=="number"&&(e.width=Uf(e.wch),e.wpx=ol(e.width),e.MDW=Hi),e.customWidth&&delete e.customWidth}var em=96,E1=em;function fl(e){return e*96/E1}function L1(e){return e*E1/96}function tm(e){var r=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var n=t[0];n<=t[1];++n)e[n]!=null&&(r[r.length]=Xe("numFmt",null,{numFmtId:n,formatCode:Yt(e[n])}))}),r.length===1?"":(r[r.length]="</numFmts>",r[0]=Xe("numFmts",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function rm(e){var r=[];return r[r.length]=Xe("cellXfs",null),e.forEach(function(t){r[r.length]=Xe("xf",null,t)}),r[r.length]="</cellXfs>",r.length===2?"":(r[0]=Xe("cellXfs",null,{count:r.length-2}).replace("/>",">"),r.join(""))}function F1(e,r){var t=[Fr,Xe("styleSheet",null,{xmlns:Rs[0],"xmlns:vt":Mr.vt})],n;return e.SSF&&(n=tm(e.SSF))!=null&&(t[t.length]=n),t[t.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',t[t.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',t[t.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',t[t.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=rm(r.cellXfs))&&(t[t.length]=n),t[t.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',t[t.length]='<dxfs count="0"/>',t[t.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',t.length>2&&(t[t.length]="</styleSheet>",t[1]=t[1].replace("/>",">")),t.join("")}function nm(e,r){var t=e.read_shift(2),n=an(e);return[t,n]}function im(e,r,t){t||(t=ke(6+4*r.length)),t.write_shift(2,e),Ur(r,t);var n=t.length>t.l?t.slice(0,t.l):t;return t.l==null&&(t.l=t.length),n}function am(e,r,t){var n={};n.sz=e.read_shift(2)/20;var i=V5(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 s=e.read_shift(1);s!=0&&(n.underline=s);var o=e.read_shift(1);o>0&&(n.family=o);var l=e.read_shift(1);switch(l>0&&(n.charset=l),e.l++,n.color=G5(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=an(e),n}function sm(e,r){r||(r=ke(153)),r.write_shift(2,e.sz*20),X5(e,r),r.write_shift(2,e.bold?700:400);var t=0;e.vertAlign=="superscript"?t=1:e.vertAlign=="subscript"&&(t=2),r.write_shift(2,t),r.write_shift(1,e.underline||0),r.write_shift(1,e.family||0),r.write_shift(1,e.charset||0),r.write_shift(1,0),al(e.color,r);var n=0;return n=2,r.write_shift(1,n),Ur(e.name,r),r.length>r.l?r.slice(0,r.l):r}var om=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],yf,lm=Ti;function Hu(e,r){r||(r=ke(84)),yf||(yf=Xf(om));var t=yf[e.patternType];t==null&&(t=40),r.write_shift(4,t);var n=0;if(t!=40)for(al({auto:1},r),al({auto:1},r);n<12;++n)r.write_shift(4,0);else{for(;n<4;++n)r.write_shift(4,0);for(;n<12;++n)r.write_shift(4,0)}return r.length>r.l?r.slice(0,r.l):r}function fm(e,r){var t=e.l+r,n=e.read_shift(2),i=e.read_shift(2);return e.l=t,{ixfe:n,numFmtId:i}}function C1(e,r,t){t||(t=ke(16)),t.write_shift(2,r||0),t.write_shift(2,e.numFmtId||0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);var n=0;return t.write_shift(1,n),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t}function yo(e,r){return r||(r=ke(10)),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(4,0),r}var cm=Ti;function um(e,r){return r||(r=ke(51)),r.write_shift(1,0),yo(null,r),yo(null,r),yo(null,r),yo(null,r),yo(null,r),r.length>r.l?r.slice(0,r.l):r}function hm(e,r){return r||(r=ke(52)),r.write_shift(4,e.xfId),r.write_shift(2,1),r.write_shift(1,0),r.write_shift(1,0),il(e.name||"",r),r.length>r.l?r.slice(0,r.l):r}function dm(e,r,t){var n=ke(2052);return n.write_shift(4,e),il(r,n),il(t,n),n.length>n.l?n.slice(0,n.l):n}function pm(e,r){if(r){var t=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&++t}),t!=0&&(Me(e,615,ui(t)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&Me(e,44,im(i,r[i]))}),Me(e,616))}}function gm(e){var r=1;Me(e,611,ui(r)),Me(e,43,sm({sz:12,color:{theme:1},name:"Calibri",family:2})),Me(e,612)}function mm(e){var r=2;Me(e,603,ui(r)),Me(e,45,Hu({patternType:"none"})),Me(e,45,Hu({patternType:"gray125"})),Me(e,604)}function xm(e){var r=1;Me(e,613,ui(r)),Me(e,46,um()),Me(e,614)}function vm(e){var r=1;Me(e,626,ui(r)),Me(e,47,C1({numFmtId:0},65535)),Me(e,627)}function wm(e,r){Me(e,617,ui(r.length)),r.forEach(function(t){Me(e,47,C1(t,0))}),Me(e,618)}function ym(e){var r=1;Me(e,619,ui(r)),Me(e,48,hm({xfId:0,name:"Normal"})),Me(e,620)}function bm(e){var r=0;Me(e,505,ui(r)),Me(e,506)}function _m(e){var r=0;Me(e,508,dm(r,"TableStyleMedium9","PivotStyleMedium4")),Me(e,509)}function Sm(e,r){var t=yn();return Me(t,278),pm(t,e.SSF),gm(t),mm(t),xm(t),vm(t),wm(t,r.cellXfs),ym(t),bm(t),_m(t),Me(t,279),t.end()}function k1(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var t=[Fr];return t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',t[t.length]="<a:themeElements>",t[t.length]='<a:clrScheme name="Office">',t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',t[t.length]="</a:clrScheme>",t[t.length]='<a:fontScheme name="Office">',t[t.length]="<a:majorFont>",t[t.length]='<a:latin typeface="Cambria"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>',t[t.length]='<a:font script="Hans" typeface="宋体"/>',t[t.length]='<a:font script="Hant" typeface="新細明體"/>',t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>',t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Times New Roman"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:majorFont>",t[t.length]="<a:minorFont>",t[t.length]='<a:latin typeface="Calibri"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',t[t.length]='<a:font script="Hang" typeface="맑은 고딕"/>',t[t.length]='<a:font script="Hans" typeface="宋体"/>',t[t.length]='<a:font script="Hant" typeface="新細明體"/>',t[t.length]='<a:font script="Arab" typeface="Arial"/>',t[t.length]='<a:font script="Hebr" typeface="Arial"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="DaunPenh"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Arial"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:minorFont>",t[t.length]="</a:fontScheme>",t[t.length]='<a:fmtScheme name="Office">',t[t.length]="<a:fillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="1"/>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="0"/>',t[t.length]="</a:gradFill>",t[t.length]="</a:fillStyleLst>",t[t.length]="<a:lnStyleLst>",t[t.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]="</a:lnStyleLst>",t[t.length]="<a:effectStyleLst>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',t[t.length]="</a:effectStyle>",t[t.length]="</a:effectStyleLst>",t[t.length]="<a:bgFillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]="</a:bgFillStyleLst>",t[t.length]="</a:fmtScheme>",t[t.length]="</a:themeElements>",t[t.length]="<a:objectDefaults>",t[t.length]="<a:spDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',t[t.length]="</a:spDef>",t[t.length]="<a:lnDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',t[t.length]="</a:lnDef>",t[t.length]="</a:objectDefaults>",t[t.length]="<a:extraClrSchemeLst/>",t[t.length]="</a:theme>",t.join("")}function Am(e,r){return{flags:e.read_shift(4),version:e.read_shift(4),name:an(e)}}function Nm(e){var r=ke(12+2*e.name.length);return r.write_shift(4,e.flags),r.write_shift(4,e.version),Ur(e.name,r),r.slice(0,r.l)}function Tm(e){for(var r=[],t=e.read_shift(4);t-- >0;)r.push([e.read_shift(4),e.read_shift(4)]);return r}function Em(e){var r=ke(4+8*e.length);r.write_shift(4,e.length);for(var t=0;t<e.length;++t)r.write_shift(4,e[t][0]),r.write_shift(4,e[t][1]);return r}function Lm(e,r){var t=ke(8+2*r.length);return t.write_shift(4,e),Ur(r,t),t.slice(0,t.l)}function Fm(e){return e.l+=4,e.read_shift(4)!=0}function Cm(e,r){var t=ke(8);return t.write_shift(4,e),t.write_shift(4,1),t}function km(){var e=yn();return Me(e,332),Me(e,334,ui(1)),Me(e,335,Nm({name:"XLDAPR",version:12e4,flags:3496657072})),Me(e,336),Me(e,339,Lm(1,"XLDAPR")),Me(e,52),Me(e,35,ui(514)),Me(e,4096,ui(0)),Me(e,4097,Yn(1)),Me(e,36),Me(e,53),Me(e,340),Me(e,337,Cm(1)),Me(e,51,Em([[1,0]])),Me(e,338),Me(e,333),e.end()}function P1(){var e=[Fr];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 Pm(e){var r={};r.i=e.read_shift(4);var t={};t.r=e.read_shift(4),t.c=e.read_shift(4),r.r=$t(t);var n=e.read_shift(1);return n&2&&(r.l="1"),n&8&&(r.a="1"),r}var Es=1024;function I1(e,r){for(var t=[21600,21600],n=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(","),i=[Xe("xml",null,{"xmlns:v":In.v,"xmlns:o":In.o,"xmlns:x":In.x,"xmlns:mv":In.mv}).replace(/\/>/,">"),Xe("o:shapelayout",Xe("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Xe("v:shapetype",[Xe("v:stroke",null,{joinstyle:"miter"}),Xe("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:n})];Es<e*1e3;)Es+=1e3;return r.forEach(function(a){var s=Br(a[0]),o={color2:"#BEFF82",type:"gradient"};o.type=="gradient"&&(o.angle="-180");var l=o.type=="gradient"?Xe("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=Xe("v:fill",l,o),h={on:"t",obscured:"t"};++Es,i=i.concat(["<v:shape"+Bo({id:"_x0000_s"+Es,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"})+">",c,Xe("v:shadow",null,h),Xe("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Vr("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),Vr("x:AutoFill","False"),Vr("x:Row",String(s.r)),Vr("x:Column",String(s.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function O1(e){var r=[Fr,Xe("comments",null,{xmlns:Rs[0]})],t=[];return r.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var a=Yt(i.a);t.indexOf(a)==-1&&(t.push(a),r.push("<author>"+a+"</author>")),i.T&&i.ID&&t.indexOf("tc="+i.ID)==-1&&(t.push("tc="+i.ID),r.push("<author>tc="+i.ID+"</author>"))})}),t.length==0&&(t.push("SheetJ5"),r.push("<author>SheetJ5</author>")),r.push("</authors>"),r.push("<commentList>"),e.forEach(function(n){var i=0,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=t.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(i=t.indexOf(Yt(l.a))),a.push(l.t||"")}),r.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),a.length<=1)r.push(Vr("t",Yt(a[0]||"")));else{for(var s=`Comment:
308
+ `+a[0]+`
309
+ `,o=1;o<a.length;++o)s+=`Reply:
310
+ `+a[o]+`
311
+ `;r.push(Vr("t",Yt(s)))}r.push("</text></comment>")}),r.push("</commentList>"),r.length>2&&(r[r.length]="</comments>",r[1]=r[1].replace("/>",">")),r.join("")}function Im(e,r,t){var n=[Fr,Xe("ThreadedComments",null,{xmlns:Mr.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var a="";(i[1]||[]).forEach(function(s,o){if(!s.T){delete s.ID;return}s.a&&r.indexOf(s.a)==-1&&r.push(s.a);var l={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+t.tcid++).slice(-12)+"}"};o==0?a=l.id:l.parentId=a,s.ID=l.id,s.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(s.a)).slice(-12)+"}"),n.push(Xe("threadedComment",Vr("text",s.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function Om(e){var r=[Fr,Xe("personList",null,{xmlns:Mr.TCMNT,"xmlns:x":Rs[0]}).replace(/[\/]>/,">")];return e.forEach(function(t,n){r.push(Xe("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:t,providerId:"None"}))}),r.push("</personList>"),r.join("")}function Dm(e){var r={};r.iauthor=e.read_shift(4);var t=Ka(e);return r.rfx=t.s,r.ref=$t(t.s),e.l+=16,r}function Rm(e,r){return r==null&&(r=ke(36)),r.write_shift(4,e[1].iauthor),Ms(e[0],r),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r}var jm=an;function Mm(e){return Ur(e.slice(0,54))}function Bm(e){var r=yn(),t=[];return Me(r,628),Me(r,630),e.forEach(function(n){n[1].forEach(function(i){t.indexOf(i.a)>-1||(t.push(i.a.slice(0,54)),Me(r,632,Mm(i.a)))})}),Me(r,631),Me(r,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=t.indexOf(i.a);var a={s:Br(n[0]),e:Br(n[0])};Me(r,635,Rm([a,i])),i.t&&i.t.length>0&&Me(r,637,z5(i)),Me(r,636),delete i.iauthor})}),Me(r,634),Me(r,629),r.end()}function Um(e,r){r.FullPaths.forEach(function(t,n){if(n!=0){var i=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&Zt.utils.cfb_add(e,i,r.FileIndex[n].content)}})}var D1=["xlsb","xlsm","xlam","biff8","xla"],zm=(function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,r={r:0,c:0};function t(n,i,a,s){var o=!1,l=!1;a.length==0?l=!0:a.charAt(0)=="["&&(l=!0,a=a.slice(1,-1)),s.length==0?o=!0:s.charAt(0)=="["&&(o=!0,s=s.slice(1,-1));var c=a.length>0?parseInt(a,10)|0:0,h=s.length>0?parseInt(s,10)|0:0;return o?h+=r.c:--h,l?c+=r.r:--c,i+(o?"":"$")+nn(h)+(l?"":"$")+Xr(c)}return function(i,a){return r=a,i.replace(e,t)}})(),sc=/(^|[^._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,oc=(function(){return function(r,t){return r.replace(sc,function(n,i,a,s,o,l){var c=ec(s)-(a?0:t.c),h=Qf(l)-(o?0:t.r),p=h==0?"":o?h+1:"["+h+"]",g=c==0?"":a?c+1:"["+c+"]";return i+"R"+p+"C"+g})}})();function Wm(e,r){return e.replace(sc,function(t,n,i,a,s,o){return n+(i=="$"?i+a:nn(ec(a)+r.c))+(s=="$"?s+o:Xr(Qf(o)+r.r))})}function Hm(e){return e.length!=1}function Er(e){e.l+=1}function ya(e,r){var t=e.read_shift(2);return[t&16383,t>>14&1,t>>15&1]}function R1(e,r,t){var n=2;if(t){if(t.biff>=2&&t.biff<=5)return j1(e);t.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),s=ya(e),o=ya(e);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function j1(e){var r=ya(e),t=ya(e),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:r[0],c:n,cRel:r[1],rRel:r[2]},e:{r:t[0],c:i,cRel:t[1],rRel:t[2]}}}function qm(e,r,t){if(t.biff<8)return j1(e);var n=e.read_shift(t.biff==12?4:2),i=e.read_shift(t.biff==12?4:2),a=ya(e),s=ya(e);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function M1(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return Gm(e);var n=e.read_shift(t&&t.biff==12?4:2),i=ya(e);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function Gm(e){var r=ya(e),t=e.read_shift(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function Vm(e){var r=e.read_shift(2),t=e.read_shift(2);return{r,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}function Xm(e,r,t){var n=t&&t.biff?t.biff:8;if(n>=2&&n<=5)return Ym(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),s=(a&16384)>>14,o=(a&32768)>>15;if(a&=16383,o==1)for(;i>524287;)i-=1048576;if(s==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:s,rRel:o}}function Ym(e){var r=e.read_shift(2),t=e.read_shift(1),n=(r&32768)>>15,i=(r&16384)>>14;return r&=16383,n==1&&r>=8192&&(r=r-16384),i==1&&t>=128&&(t=t-256),{r,c:t,cRel:i,rRel:n}}function $m(e,r,t){var n=(e[e.l++]&96)>>5,i=R1(e,t.biff>=2&&t.biff<=5?6:8,t);return[n,i]}function Km(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),a=8;if(t)switch(t.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var s=R1(e,a,t);return[n,i,s]}function Jm(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t&&t.biff>8?12:t.biff<8?6:8,[n]}function Zm(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=8;if(t)switch(t.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[n,i]}function Qm(e,r,t){var n=(e[e.l++]&96)>>5,i=qm(e,r-1,t);return[n,i]}function ex(e,r,t){var n=(e[e.l++]&96)>>5;return e.l+=t.biff==2?6:t.biff==12?14:7,[n]}function qu(e){var r=e[e.l+1]&1,t=1;return e.l+=4,[r,t]}function tx(e,r,t){e.l+=2;for(var n=e.read_shift(t&&t.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(e.read_shift(t&&t.biff==2?1:2));return i}function rx(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(t&&t.biff==2?1:2)]}function nx(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(t&&t.biff==2?1:2)]}function ix(e){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(2)]}function ax(e,r,t){var n=e[e.l+1]&255?1:0;return e.l+=t&&t.biff==2?3:4,[n]}function B1(e){var r=e.read_shift(1),t=e.read_shift(1);return[r,t]}function sx(e){return e.read_shift(2),B1(e)}function ox(e){return e.read_shift(2),B1(e)}function lx(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=M1(e,0,t);return[n,i]}function fx(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=Xm(e,0,t);return[n,i]}function cx(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);t&&t.biff==5&&(e.l+=12);var a=M1(e,0,t);return[n,i,a]}function ux(e,r,t){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(t&&t.biff<=3?1:2);return[uv[i],W1[i],n]}function hx(e,r,t){var n=e[e.l++],i=e.read_shift(1),a=t&&t.biff<=3?[n==88?-1:0,e.read_shift(1)]:dx(e);return[i,(a[0]===0?W1:cv)[a[1]]]}function dx(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function px(e,r,t){e.l+=t&&t.biff==2?3:4}function gx(e,r,t){if(e.l++,t&&t.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function mx(e){return e.l++,Vo[e.read_shift(1)]}function xx(e){return e.l++,e.read_shift(2)}function vx(e){return e.l++,e.read_shift(1)!==0}function wx(e){return e.l++,Bs(e)}function yx(e,r,t){return e.l++,b1(e,r-1,t)}function bx(e,r){var t=[e.read_shift(1)];if(r==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break}switch(t[0]){case 4:t[1]=cg(e,1)?"TRUE":"FALSE",r!=12&&(e.l+=7);break;case 37:case 16:t[1]=Vo[e[e.l]],e.l+=r==12?4:8;break;case 0:e.l+=8;break;case 1:t[1]=Bs(e);break;case 2:t[1]=pg(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function _x(e,r,t){for(var n=e.read_shift(t.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((t.biff==12?Ka:xg)(e));return i}function Sx(e,r,t){var n=0,i=0;t.biff==12?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),t.biff>=2&&t.biff<8&&(--n,--i==0&&(i=256));for(var a=0,s=[];a!=n&&(s[a]=[]);++a)for(var o=0;o!=i;++o)s[a][o]=bx(e,t.biff);return s}function Ax(e,r,t){var n=e.read_shift(1)>>>5&3,i=!t||t.biff>=8?4:2,a=e.read_shift(i);switch(t.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,a]}function Nx(e,r,t){if(t.biff==5)return Tx(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function Tx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[r,t,n]}function Ex(e,r,t){var n=e.read_shift(1)>>>5&3;e.l+=t&&t.biff==2?3:4;var i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function Lx(e,r,t){var n=e.read_shift(1)>>>5&3,i=e.read_shift(t&&t.biff==2?1:2);return[n,i]}function Fx(e,r,t){var n=e.read_shift(1)>>>5&3;return e.l+=4,t.biff<8&&e.l--,t.biff==12&&(e.l+=2),[n]}function Cx(e,r,t){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=4;if(t)switch(t.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[n,i]}var kx=Ti,Px=Ti,Ix=Ti;function Xo(e,r,t){return e.l+=2,[Vm(e)]}function lc(e){return e.l+=6,[]}var Ox=Xo,Dx=lc,Rx=lc,jx=Xo;function U1(e){return e.l+=2,[w1(e),e.read_shift(2)&1]}var Mx=Xo,Bx=U1,Ux=lc,zx=Xo,Wx=Xo,Hx=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function qx(e){e.l+=2;var r=e.read_shift(2),t=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2),s=Hx[t>>2&31];return{ixti:r,coltype:t&3,rt:s,idx:n,c:i,C:a}}function Gx(e){return e.l+=2,[e.read_shift(4)]}function Vx(e,r,t){return e.l+=5,e.l+=2,e.l+=t.biff==2?1:4,["PTGSHEET"]}function Xx(e,r,t){return e.l+=t.biff==2?4:5,["PTGENDSHEET"]}function Yx(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function $x(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function Kx(e){return e.l+=4,[0,0]}var Gu={1:{n:"PtgExp",f:gx},2:{n:"PtgTbl",f:Ix},3:{n:"PtgAdd",f:Er},4:{n:"PtgSub",f:Er},5:{n:"PtgMul",f:Er},6:{n:"PtgDiv",f:Er},7:{n:"PtgPower",f:Er},8:{n:"PtgConcat",f:Er},9:{n:"PtgLt",f:Er},10:{n:"PtgLe",f:Er},11:{n:"PtgEq",f:Er},12:{n:"PtgGe",f:Er},13:{n:"PtgGt",f:Er},14:{n:"PtgNe",f:Er},15:{n:"PtgIsect",f:Er},16:{n:"PtgUnion",f:Er},17:{n:"PtgRange",f:Er},18:{n:"PtgUplus",f:Er},19:{n:"PtgUminus",f:Er},20:{n:"PtgPercent",f:Er},21:{n:"PtgParen",f:Er},22:{n:"PtgMissArg",f:Er},23:{n:"PtgStr",f:yx},26:{n:"PtgSheet",f:Vx},27:{n:"PtgEndSheet",f:Xx},28:{n:"PtgErr",f:mx},29:{n:"PtgBool",f:vx},30:{n:"PtgInt",f:xx},31:{n:"PtgNum",f:wx},32:{n:"PtgArray",f:ex},33:{n:"PtgFunc",f:ux},34:{n:"PtgFuncVar",f:hx},35:{n:"PtgName",f:Ax},36:{n:"PtgRef",f:lx},37:{n:"PtgArea",f:$m},38:{n:"PtgMemArea",f:Ex},39:{n:"PtgMemErr",f:kx},40:{n:"PtgMemNoMem",f:Px},41:{n:"PtgMemFunc",f:Lx},42:{n:"PtgRefErr",f:Fx},43:{n:"PtgAreaErr",f:Jm},44:{n:"PtgRefN",f:fx},45:{n:"PtgAreaN",f:Qm},46:{n:"PtgMemAreaN",f:Yx},47:{n:"PtgMemNoMemN",f:$x},57:{n:"PtgNameX",f:Nx},58:{n:"PtgRef3d",f:cx},59:{n:"PtgArea3d",f:Km},60:{n:"PtgRefErr3d",f:Cx},61:{n:"PtgAreaErr3d",f:Zm},255:{}},Jx={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},Zx={1:{n:"PtgElfLel",f:U1},2:{n:"PtgElfRw",f:zx},3:{n:"PtgElfCol",f:Ox},6:{n:"PtgElfRwV",f:Wx},7:{n:"PtgElfColV",f:jx},10:{n:"PtgElfRadical",f:Mx},11:{n:"PtgElfRadicalS",f:Ux},13:{n:"PtgElfColS",f:Dx},15:{n:"PtgElfColSV",f:Rx},16:{n:"PtgElfRadicalLel",f:Bx},25:{n:"PtgList",f:qx},29:{n:"PtgSxName",f:Gx},255:{}},Qx={0:{n:"PtgAttrNoop",f:Kx},1:{n:"PtgAttrSemi",f:ax},2:{n:"PtgAttrIf",f:nx},4:{n:"PtgAttrChoose",f:tx},8:{n:"PtgAttrGoto",f:rx},16:{n:"PtgAttrSum",f:px},32:{n:"PtgAttrBaxcel",f:qu},33:{n:"PtgAttrBaxcel",f:qu},64:{n:"PtgAttrSpace",f:sx},65:{n:"PtgAttrSpaceSemi",f:ox},128:{n:"PtgAttrIfError",f:ix},255:{}};function ev(e,r,t,n){if(n.biff<8)return Ti(e,r);for(var i=e.l+r,a=[],s=0;s!==t.length;++s)switch(t[s][0]){case"PtgArray":t[s][1]=Sx(e,0,n),a.push(t[s][1]);break;case"PtgMemArea":t[s][2]=_x(e,t[s][1],n),a.push(t[s][2]);break;case"PtgExp":n&&n.biff==12&&(t[s][1][1]=e.read_shift(4),a.push(t[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+t[s][0]}return r=i-e.l,r!==0&&a.push(Ti(e,r)),a}function tv(e,r,t){for(var n=e.l+r,i,a,s=[];n!=e.l;)r=n-e.l,a=e[e.l],i=Gu[a]||Gu[Jx[a]],(a===24||a===25)&&(i=(a===24?Zx:Qx)[e[e.l+1]]),!i||!i.f?Ti(e,r):s.push([i.n,i.f(e,r,t)]);return s}function rv(e){for(var r=[],t=0;t<e.length;++t){for(var n=e[t],i=[],a=0;a<n.length;++a){var s=n[a];if(s)switch(s[0]){case 2:i.push('"'+s[1].replace(/"/g,'""')+'"');break;default:i.push(s[1])}else i.push("")}r.push(i.join(","))}return r.join(";")}var nv={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function iv(e,r){if(!e&&!(r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function z1(e,r,t){if(!e)return"SH33TJSERR0";if(t.biff>8&&(!e.XTI||!e.XTI[r]))return e.SheetNames[r];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[r];if(t.biff<8)return r>1e4&&(r-=65536),r<0&&(r=-r),r==0?"":e.XTI[r-1];if(!n)return"SH33TJSERR1";var i="";if(t.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 t.SID!=null?e.SheetNames[t.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 Vu(e,r,t){var n=z1(e,r,t);return n=="#REF"?n:iv(n,t)}function Os(e,r,t,n,i){var a=i&&i.biff||8,s={s:{c:0,r:0}},o=[],l,c,h,p=0,g=0,u,v="";if(!e[0]||!e[0][0])return"";for(var m=-1,y="",_=0,S=e[0].length;_<S;++_){var A=e[0][_];switch(A[0]){case"PtgUminus":o.push("-"+o.pop());break;case"PtgUplus":o.push("+"+o.pop());break;case"PtgPercent":o.push(o.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=o.pop(),c=o.pop(),m>=0){switch(e[0][m][1][0]){case 0:y=pr(" ",e[0][m][1][1]);break;case 1:y=pr("\r",e[0][m][1][1]);break;default:if(y="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}c=c+y,m=-1}o.push(c+nv[A[0]]+l);break;case"PtgIsect":l=o.pop(),c=o.pop(),o.push(c+" "+l);break;case"PtgUnion":l=o.pop(),c=o.pop(),o.push(c+","+l);break;case"PtgRange":l=o.pop(),c=o.pop(),o.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":h=Co(A[1][1],s,i),o.push(ko(h,a));break;case"PtgRefN":h=t?Co(A[1][1],t,i):A[1][1],o.push(ko(h,a));break;case"PtgRef3d":p=A[1][1],h=Co(A[1][2],s,i),v=Vu(n,p,i),o.push(v+"!"+ko(h,a));break;case"PtgFunc":case"PtgFuncVar":var P=A[1][0],z=A[1][1];P||(P=0),P&=127;var G=P==0?[]:o.slice(-P);o.length-=P,z==="User"&&(z=G.shift()),o.push(z+"("+G.join(",")+")");break;case"PtgBool":o.push(A[1]?"TRUE":"FALSE");break;case"PtgInt":o.push(A[1]);break;case"PtgNum":o.push(String(A[1]));break;case"PtgStr":o.push('"'+A[1].replace(/"/g,'""')+'"');break;case"PtgErr":o.push(A[1]);break;case"PtgAreaN":u=Cu(A[1][1],t?{s:t}:s,i),o.push(vf(u,i));break;case"PtgArea":u=Cu(A[1][1],s,i),o.push(vf(u,i));break;case"PtgArea3d":p=A[1][1],u=A[1][2],v=Vu(n,p,i),o.push(v+"!"+vf(u,i));break;case"PtgAttrSum":o.push("SUM("+o.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":g=A[1][2];var L=(n.names||[])[g-1]||(n[0]||[])[g],I=L?L.Name:"SH33TJSNAME"+String(g);I&&I.slice(0,6)=="_xlfn."&&!i.xlfn&&(I=I.slice(6)),o.push(I);break;case"PtgNameX":var j=A[1][1];g=A[1][2];var V;if(i.biff<=5)j<0&&(j=-j),n[j]&&(V=n[j][g]);else{var E="";if(((n[j]||[])[0]||[])[0]==14849||(((n[j]||[])[0]||[])[0]==1025?n[j][g]&&n[j][g].itab>0&&(E=n.SheetNames[n[j][g].itab-1]+"!"):E=n.SheetNames[g-1]+"!"),n[j]&&n[j][g])E+=n[j][g].Name;else if(n[0]&&n[0][g])E+=n[0][g].Name;else{var N=(z1(n,j,i)||"").split(";;");N[g-1]?E=N[g-1]:E+="SH33TJSERRX"}o.push(E);break}V||(V={Name:"SH33TJSERRY"}),o.push(V.Name);break;case"PtgParen":var H="(",Y=")";if(m>=0){switch(y="",e[0][m][1][0]){case 2:H=pr(" ",e[0][m][1][1])+H;break;case 3:H=pr("\r",e[0][m][1][1])+H;break;case 4:Y=pr(" ",e[0][m][1][1])+Y;break;case 5:Y=pr("\r",e[0][m][1][1])+Y;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}o.push(H+o.pop()+Y);break;case"PtgRefErr":o.push("#REF!");break;case"PtgRefErr3d":o.push("#REF!");break;case"PtgExp":h={c:A[1][1],r:A[1][0]};var fe={c:t.c,r:t.r};if(n.sharedf[$t(h)]){var Q=n.sharedf[$t(h)];o.push(Os(Q,s,fe,n,i))}else{var J=!1;for(l=0;l!=n.arrayf.length;++l)if(c=n.arrayf[l],!(h.c<c[0].s.c||h.c>c[0].e.c)&&!(h.r<c[0].s.r||h.r>c[0].e.r)){o.push(Os(c[1],s,fe,n,i)),J=!0;break}J||o.push(A[1])}break;case"PtgArray":o.push("{"+rv(A[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=_;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":o.push("");break;case"PtgAreaErr":o.push("#REF!");break;case"PtgAreaErr3d":o.push("#REF!");break;case"PtgList":o.push("Table"+A[1].idx+"[#"+A[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(A));default:throw new Error("Unrecognized Formula Token: "+String(A))}var oe=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&m>=0&&oe.indexOf(e[0][_][0])==-1){A=e[0][m];var ne=!0;switch(A[1][0]){case 4:ne=!1;case 0:y=pr(" ",A[1][1]);break;case 5:ne=!1;case 1:y=pr("\r",A[1][1]);break;default:if(y="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+A[1][0])}o.push((ne?y:"")+o.pop()+(ne?"":y)),m=-1}}if(o.length>1&&i.WTF)throw new Error("bad formula stack");return o[0]}function av(e){if(e==null){var r=ke(8);return r.write_shift(1,3),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,65535),r}else if(typeof e=="number")return Ha(e);return Ha(0)}function sv(e,r,t,n,i){var a=qa(r,t,i),s=av(e.v),o=ke(6),l=33;o.write_shift(2,l),o.write_shift(4,0);for(var c=ke(e.bf.length),h=0;h<e.bf.length;++h)c[h]=e.bf[h];var p=Gr([a,s,o,c]);return p}function yl(e,r,t){var n=e.read_shift(4),i=tv(e,n,t),a=e.read_shift(4),s=a>0?ev(e,a,i,t):null;return[i,s]}var ov=yl,bl=yl,lv=yl,fv=yl,cv={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"},W1={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"},uv={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 hv(e){var r="of:="+e.replace(sc,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function dv(e){return e.replace(/\./,"!")}var Po=typeof Map<"u";function fc(e,r,t){var n=0,i=e.length;if(t){if(Po?t.has(r):Object.prototype.hasOwnProperty.call(t,r)){for(var a=Po?t.get(r):t[r];n<a.length;++n)if(e[a[n]].t===r)return e.Count++,a[n]}}else for(;n<i;++n)if(e[n].t===r)return e.Count++,n;return e[i]={t:r},e.Count++,e.Unique++,t&&(Po?(t.has(r)||t.set(r,[]),t.get(r).push(i)):(Object.prototype.hasOwnProperty.call(t,r)||(t[r]=[]),t[r].push(i))),i}function _l(e,r){var t={min:e+1,max:e+1},n=-1;return r.MDW&&(Hi=r.MDW),r.width!=null?t.customWidth=1:r.wpx!=null?n=ll(r.wpx):r.wch!=null&&(n=r.wch),n>-1?(t.width=Uf(n),t.customWidth=1):r.width!=null&&(t.width=r.width),r.hidden&&(t.hidden=!0),r.level!=null&&(t.outlineLevel=t.level=r.level),t}function H1(e,r){if(e){var t=[.7,.7,.75,.75,.3,.3];e.left==null&&(e.left=t[0]),e.right==null&&(e.right=t[1]),e.top==null&&(e.top=t[2]),e.bottom==null&&(e.bottom=t[3]),e.header==null&&(e.header=t[4]),e.footer==null&&(e.footer=t[5])}}function _a(e,r,t){var n=t.revssf[r.z!=null?r.z:"General"],i=60,a=e.length;if(n==null&&t.ssf){for(;i<392;++i)if(t.ssf[i]==null){Mh(r.z,i),t.ssf[i]=r.z,t.revssf[r.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 pv(e,r,t){if(e&&e["!ref"]){var n=lr(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+t+"): "+e["!ref"])}}function gv(e){if(e.length===0)return"";for(var r='<mergeCells count="'+e.length+'">',t=0;t!=e.length;++t)r+='<mergeCell ref="'+Lr(e[t])+'"/>';return r+"</mergeCells>"}function mv(e,r,t,n,i){var a=!1,s={},o=null;if(n.bookType!=="xlsx"&&r.vbaraw){var l=r.SheetNames[t];try{r.Workbook&&(l=r.Workbook.Sheets[t].CodeName||l)}catch{}a=!0,s.codeName=Mo(Yt(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),o=(o||"")+Xe("outlinePr",null,c)}!a&&!o||(i[i.length]=Xe("sheetPr",o,s))}var xv=["objects","scenarios","selectLockedCells","selectUnlockedCells"],vv=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function wv(e){var r={sheet:1};return xv.forEach(function(t){e[t]!=null&&e[t]&&(r[t]="1")}),vv.forEach(function(t){e[t]!=null&&!e[t]&&(r[t]="0")}),e.password&&(r.password=T1(e.password).toString(16).toUpperCase()),Xe("sheetProtection",null,r)}function yv(e){return H1(e),Xe("pageMargins",null,e)}function bv(e,r){for(var t=["<cols>"],n,i=0;i!=r.length;++i)(n=r[i])&&(t[t.length]=Xe("col",null,_l(i,n)));return t[t.length]="</cols>",t.join("")}function _v(e,r,t,n){var i=typeof e.ref=="string"?e.ref:Lr(e.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var a=t.Workbook.Names,s=Rn(i);s.s.r==s.e.r&&(s.e.r=Rn(r["!ref"]).e.r,i=Lr(s));for(var o=0;o<a.length;++o){var l=a[o];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+t.SheetNames[n]+"'!"+i;break}}return o==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+t.SheetNames[n]+"'!"+i}),Xe("autoFilter",null,{ref:i})}function Sv(e,r,t,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Xe("sheetViews",Xe("sheetView",null,i),{})}function Av(e,r,t,n){if(e.c&&t["!comments"].push([r,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var i="",a=e.t,s=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=Vo[e.v];break;case"d":n&&n.cellDates?i=hn(e.v,-1).toISOString():(e=_n(e),e.t="n",i=""+(e.v=bn(hn(e.v)))),typeof e.z>"u"&&(e.z=gr[14]);break;default:i=e.v;break}var o=Vr("v",Yt(i)),l={r},c=_a(n.cellXfs,e,n);switch(c!==0&&(l.s=c),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){o=Vr("v",""+fc(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=a&&(e.t=a,e.v=s),typeof e.f=="string"&&e.f){var h=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;o=Xe("f",Yt(e.f),h)+(e.v!=null?o:"")}return e.l&&t["!links"].push([r,e.l]),e.D&&(l.cm=1),Xe("c",o,l)}function Nv(e,r,t,n){var i=[],a=[],s=lr(e["!ref"]),o="",l,c="",h=[],p=0,g=0,u=e["!rows"],v=Array.isArray(e),m={r:c},y,_=-1;for(g=s.s.c;g<=s.e.c;++g)h[g]=nn(g);for(p=s.s.r;p<=s.e.r;++p){for(a=[],c=Xr(p),g=s.s.c;g<=s.e.c;++g){l=h[g]+c;var S=v?(e[p]||[])[g]:e[l];S!==void 0&&(o=Av(S,l,e,r))!=null&&a.push(o)}(a.length>0||u&&u[p])&&(m={r:c},u&&u[p]&&(y=u[p],y.hidden&&(m.hidden=1),_=-1,y.hpx?_=fl(y.hpx):y.hpt&&(_=y.hpt),_>-1&&(m.ht=_,m.customHeight=1),y.level&&(m.outlineLevel=y.level)),i[i.length]=Xe("row",a.join(""),m))}if(u)for(;p<u.length;++p)u&&u[p]&&(m={r:p+1},y=u[p],y.hidden&&(m.hidden=1),_=-1,y.hpx?_=fl(y.hpx):y.hpt&&(_=y.hpt),_>-1&&(m.ht=_,m.customHeight=1),y.level&&(m.outlineLevel=y.level),i[i.length]=Xe("row","",m));return i.join("")}function q1(e,r,t,n){var i=[Fr,Xe("worksheet",null,{xmlns:Rs[0],"xmlns:r":Mr.r})],a=t.SheetNames[e],s=0,o="",l=t.Sheets[a];l==null&&(l={});var c=l["!ref"]||"A1",h=lr(c);if(h.e.c>16383||h.e.r>1048575){if(r.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");h.e.c=Math.min(h.e.c,16383),h.e.r=Math.min(h.e.c,1048575),c=Lr(h)}n||(n={}),l["!comments"]=[];var p=[];mv(l,t,e,r,i),i[i.length]=Xe("dimension",null,{ref:c}),i[i.length]=Sv(l,r,e,t),r.sheetFormat&&(i[i.length]=Xe("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(i[i.length]=bv(l,l["!cols"])),i[s=i.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(o=Nv(l,r),o.length>0&&(i[i.length]=o)),i.length>s+1&&(i[i.length]="</sheetData>",i[s]=i[s].replace("/>",">")),l["!protect"]&&(i[i.length]=wv(l["!protect"])),l["!autofilter"]!=null&&(i[i.length]=_v(l["!autofilter"],l,t,e)),l["!merges"]!=null&&l["!merges"].length>0&&(i[i.length]=gv(l["!merges"]));var g=-1,u,v=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(m){m[1].Target&&(u={ref:m[0]},m[1].Target.charAt(0)!="#"&&(v=Xt(n,-1,Yt(m[1].Target).replace(/#.*$/,""),Mt.HLINK),u["r:id"]="rId"+v),(g=m[1].Target.indexOf("#"))>-1&&(u.location=Yt(m[1].Target.slice(g+1))),m[1].Tooltip&&(u.tooltip=Yt(m[1].Tooltip)),i[i.length]=Xe("hyperlink",null,u))}),i[i.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(i[i.length]=yv(l["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&(i[i.length]=Vr("ignoredErrors",Xe("ignoredError",null,{numberStoredAsText:1,sqref:c}))),p.length>0&&(v=Xt(n,-1,"../drawings/drawing"+(e+1)+".xml",Mt.DRAW),i[i.length]=Xe("drawing",null,{"r:id":"rId"+v}),l["!drawing"]=p),l["!comments"].length>0&&(v=Xt(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Mt.VML),i[i.length]=Xe("legacyDrawing",null,{"r:id":"rId"+v}),l["!legacy"]=v),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function Tv(e,r){var t={},n=e.l+r;t.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&&(t.level=a&7),a&16&&(t.hidden=!0),a&32&&(t.hpt=i/20),t}function Ev(e,r,t){var n=ke(145),i=(t["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var a=320;i.hpx?a=fl(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var s=0;i.level&&(s|=i.level),i.hidden&&(s|=16),(i.hpx||i.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var o=0,l=n.l;n.l+=4;for(var c={r:e,c:0},h=0;h<16;++h)if(!(r.s.c>h+1<<10||r.e.c<h<<10)){for(var p=-1,g=-1,u=h<<10;u<h+1<<10;++u){c.c=u;var v=Array.isArray(t)?(t[c.r]||[])[c.c]:t[$t(c)];v&&(p<0&&(p=u),g=u)}p<0||(++o,n.write_shift(4,p),n.write_shift(4,g))}var m=n.l;return n.l=l,n.write_shift(4,o),n.l=m,n.length>n.l?n.slice(0,n.l):n}function Lv(e,r,t,n){var i=Ev(n,t,r);(i.length>17||(r["!rows"]||[])[n])&&Me(e,0,i)}var Fv=Ka,Cv=Ms;function kv(){}function Pv(e,r){var t={},n=e[e.l];return++e.l,t.above=!(n&64),t.left=!(n&128),e.l+=18,t.name=W5(e),t}function Iv(e,r,t){t==null&&(t=ke(84+4*e.length));var n=192;r&&(r.above&&(n&=-65),r.left&&(n&=-129)),t.write_shift(1,n);for(var i=1;i<3;++i)t.write_shift(1,0);return al({auto:1},t),t.write_shift(-4,-1),t.write_shift(-4,-1),a1(e,t),t.slice(0,t.l)}function Ov(e){var r=$n(e);return[r]}function Dv(e,r,t){return t==null&&(t=ke(8)),Xa(r,t)}function Rv(e){var r=Ya(e);return[r]}function jv(e,r,t){return t==null&&(t=ke(4)),$a(r,t)}function Mv(e){var r=$n(e),t=e.read_shift(1);return[r,t,"b"]}function Bv(e,r,t){return t==null&&(t=ke(9)),Xa(r,t),t.write_shift(1,e.v?1:0),t}function Uv(e){var r=Ya(e),t=e.read_shift(1);return[r,t,"b"]}function zv(e,r,t){return t==null&&(t=ke(5)),$a(r,t),t.write_shift(1,e.v?1:0),t}function Wv(e){var r=$n(e),t=e.read_shift(1);return[r,t,"e"]}function Hv(e,r,t){return t==null&&(t=ke(9)),Xa(r,t),t.write_shift(1,e.v),t}function qv(e){var r=Ya(e),t=e.read_shift(1);return[r,t,"e"]}function Gv(e,r,t){return t==null&&(t=ke(8)),$a(r,t),t.write_shift(1,e.v),t.write_shift(2,0),t.write_shift(1,0),t}function Vv(e){var r=$n(e),t=e.read_shift(4);return[r,t,"s"]}function Xv(e,r,t){return t==null&&(t=ke(12)),Xa(r,t),t.write_shift(4,r.v),t}function Yv(e){var r=Ya(e),t=e.read_shift(4);return[r,t,"s"]}function $v(e,r,t){return t==null&&(t=ke(8)),$a(r,t),t.write_shift(4,r.v),t}function Kv(e){var r=$n(e),t=Bs(e);return[r,t,"n"]}function Jv(e,r,t){return t==null&&(t=ke(16)),Xa(r,t),Ha(e.v,t),t}function Zv(e){var r=Ya(e),t=Bs(e);return[r,t,"n"]}function Qv(e,r,t){return t==null&&(t=ke(12)),$a(r,t),Ha(e.v,t),t}function e4(e){var r=$n(e),t=s1(e);return[r,t,"n"]}function t4(e,r,t){return t==null&&(t=ke(12)),Xa(r,t),o1(e.v,t),t}function r4(e){var r=Ya(e),t=s1(e);return[r,t,"n"]}function n4(e,r,t){return t==null&&(t=ke(8)),$a(r,t),o1(e.v,t),t}function i4(e){var r=$n(e),t=tc(e);return[r,t,"is"]}function a4(e){var r=$n(e),t=an(e);return[r,t,"str"]}function s4(e,r,t){return t==null&&(t=ke(12+4*e.v.length)),Xa(r,t),Ur(e.v,t),t.length>t.l?t.slice(0,t.l):t}function o4(e){var r=Ya(e),t=an(e);return[r,t,"str"]}function l4(e,r,t){return t==null&&(t=ke(8+4*e.v.length)),$a(r,t),Ur(e.v,t),t.length>t.l?t.slice(0,t.l):t}function f4(e,r,t){var n=e.l+r,i=$n(e);i.r=t["!row"];var a=e.read_shift(1),s=[i,a,"b"];if(t.cellFormula){e.l+=2;var o=bl(e,n-e.l,t);s[3]=Os(o,null,i,t.supbooks,t)}else e.l=n;return s}function c4(e,r,t){var n=e.l+r,i=$n(e);i.r=t["!row"];var a=e.read_shift(1),s=[i,a,"e"];if(t.cellFormula){e.l+=2;var o=bl(e,n-e.l,t);s[3]=Os(o,null,i,t.supbooks,t)}else e.l=n;return s}function u4(e,r,t){var n=e.l+r,i=$n(e);i.r=t["!row"];var a=Bs(e),s=[i,a,"n"];if(t.cellFormula){e.l+=2;var o=bl(e,n-e.l,t);s[3]=Os(o,null,i,t.supbooks,t)}else e.l=n;return s}function h4(e,r,t){var n=e.l+r,i=$n(e);i.r=t["!row"];var a=an(e),s=[i,a,"str"];if(t.cellFormula){e.l+=2;var o=bl(e,n-e.l,t);s[3]=Os(o,null,i,t.supbooks,t)}else e.l=n;return s}var d4=Ka,p4=Ms;function g4(e,r){return r==null&&(r=ke(4)),r.write_shift(4,e),r}function m4(e,r){var t=e.l+r,n=Ka(e),i=rc(e),a=an(e),s=an(e),o=an(e);e.l=t;var l={rfx:n,relId:i,loc:a,display:o};return s&&(l.Tooltip=s),l}function x4(e,r){var t=ke(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Ms({s:Br(e[0]),e:Br(e[0])},t),nc("rId"+r,t);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return Ur(i||"",t),Ur(e[1].Tooltip||"",t),Ur("",t),t.slice(0,t.l)}function v4(){}function w4(e,r,t){var n=e.l+r,i=l1(e),a=e.read_shift(1),s=[i];if(s[2]=a,t.cellFormula){var o=ov(e,n-e.l,t);s[1]=o}else e.l=n;return s}function y4(e,r,t){var n=e.l+r,i=Ka(e),a=[i];if(t.cellFormula){var s=fv(e,n-e.l,t);a[1]=s,e.l=n}else e.l=n;return a}function b4(e,r,t){t==null&&(t=ke(18));var n=_l(e,r);t.write_shift(-4,e),t.write_shift(-4,e),t.write_shift(4,(n.width||10)*256),t.write_shift(4,0);var i=0;return r.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),r.level&&(i|=r.level<<8),t.write_shift(2,i),t}var G1=["left","right","top","bottom","header","footer"];function _4(e){var r={};return G1.forEach(function(t){r[t]=Bs(e)}),r}function S4(e,r){return r==null&&(r=ke(48)),H1(e),G1.forEach(function(t){Ha(e[t],r)}),r}function A4(e){var r=e.read_shift(2);return e.l+=28,{RTL:r&32}}function N4(e,r,t){t==null&&(t=ke(30));var n=924;return(((r||{}).Views||[])[0]||{}).RTL&&(n|=32),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,100),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(4,0),t}function T4(e){var r=ke(24);return r.write_shift(4,4),r.write_shift(4,1),Ms(e,r),r}function E4(e,r){return r==null&&(r=ke(66)),r.write_shift(2,e.password?T1(e.password):0),r.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(t){t[1]?r.write_shift(4,e[t[0]]!=null&&!e[t[0]]?1:0):r.write_shift(4,e[t[0]]!=null&&e[t[0]]?0:1)}),r}function L4(){}function F4(){}function C4(e,r,t,n,i,a,s){if(r.v===void 0)return!1;var o="";switch(r.t){case"b":o=r.v?"1":"0";break;case"d":r=_n(r),r.z=r.z||gr[14],r.v=bn(hn(r.v)),r.t="n";break;case"n":case"e":o=""+r.v;break;default:o=r.v;break}var l={r:t,c:n};switch(l.s=_a(i.cellXfs,r,i),r.l&&a["!links"].push([$t(l),r.l]),r.c&&a["!comments"].push([$t(l),r.c]),r.t){case"s":case"str":return i.bookSST?(o=fc(i.Strings,r.v,i.revStrings),l.t="s",l.v=o,s?Me(e,18,$v(r,l)):Me(e,7,Xv(r,l))):(l.t="str",s?Me(e,17,l4(r,l)):Me(e,6,s4(r,l))),!0;case"n":return r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3?s?Me(e,13,n4(r,l)):Me(e,2,t4(r,l)):s?Me(e,16,Qv(r,l)):Me(e,5,Jv(r,l)),!0;case"b":return l.t="b",s?Me(e,15,zv(r,l)):Me(e,4,Bv(r,l)),!0;case"e":return l.t="e",s?Me(e,14,Gv(r,l)):Me(e,3,Hv(r,l)),!0}return s?Me(e,12,jv(r,l)):Me(e,1,Dv(r,l)),!0}function k4(e,r,t,n){var i=lr(r["!ref"]||"A1"),a,s="",o=[];Me(e,145);var l=Array.isArray(r),c=i.e.r;r["!rows"]&&(c=Math.max(i.e.r,r["!rows"].length-1));for(var h=i.s.r;h<=c;++h){s=Xr(h),Lv(e,r,i,h);var p=!1;if(h<=i.e.r)for(var g=i.s.c;g<=i.e.c;++g){h===i.s.r&&(o[g]=nn(g)),a=o[g]+s;var u=l?(r[h]||[])[g]:r[a];if(!u){p=!1;continue}p=C4(e,u,h,g,n,r,p)}}Me(e,146)}function P4(e,r){!r||!r["!merges"]||(Me(e,177,g4(r["!merges"].length)),r["!merges"].forEach(function(t){Me(e,176,p4(t))}),Me(e,178))}function I4(e,r){!r||!r["!cols"]||(Me(e,390),r["!cols"].forEach(function(t,n){t&&Me(e,60,b4(n,t))}),Me(e,391))}function O4(e,r){!r||!r["!ref"]||(Me(e,648),Me(e,649,T4(lr(r["!ref"]))),Me(e,650))}function D4(e,r,t){r["!links"].forEach(function(n){if(n[1].Target){var i=Xt(t,-1,n[1].Target.replace(/#.*$/,""),Mt.HLINK);Me(e,494,x4(n,i))}}),delete r["!links"]}function R4(e,r,t,n){if(r["!comments"].length>0){var i=Xt(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Mt.VML);Me(e,551,nc("rId"+i)),r["!legacy"]=i}}function j4(e,r,t,n){if(r["!autofilter"]){var i=r["!autofilter"],a=typeof i.ref=="string"?i.ref:Lr(i.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var s=t.Workbook.Names,o=Rn(a);o.s.r==o.e.r&&(o.e.r=Rn(r["!ref"]).e.r,a=Lr(o));for(var l=0;l<s.length;++l){var c=s[l];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==n){c.Ref="'"+t.SheetNames[n]+"'!"+a;break}}l==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+t.SheetNames[n]+"'!"+a}),Me(e,161,Ms(lr(a))),Me(e,162)}}function M4(e,r,t){Me(e,133),Me(e,137,N4(r,t)),Me(e,138),Me(e,134)}function B4(e,r){r["!protect"]&&Me(e,535,E4(r["!protect"]))}function U4(e,r,t,n){var i=yn(),a=t.SheetNames[e],s=t.Sheets[a]||{},o=a;try{t&&t.Workbook&&(o=t.Workbook.Sheets[e].CodeName||o)}catch{}var l=lr(s["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(r.WTF)throw new Error("Range "+(s["!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 s["!links"]=[],s["!comments"]=[],Me(i,129),(t.vbaraw||s["!outline"])&&Me(i,147,Iv(o,s["!outline"])),Me(i,148,Cv(l)),M4(i,s,t.Workbook),I4(i,s),k4(i,s,e,r),B4(i,s),j4(i,s,t,e),P4(i,s),D4(i,s,n),s["!margins"]&&Me(i,476,S4(s["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&O4(i,s),R4(i,s,e,n),Me(i,130),i.end()}function z4(e,r){e.l+=10;var t=an(e);return{name:t}}var W4=[["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 H4(e){return!e.Workbook||!e.Workbook.WBProps?"false":y5(e.Workbook.WBProps.date1904)?"true":"false"}var q4="][*?/\\".split("");function V1(e,r){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var t=!0;return q4.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),t}function G4(e,r,t){e.forEach(function(n,i){V1(n);for(var a=0;a<i;++a)if(n==e[a])throw new Error("Duplicate Sheet Name: "+n);if(t){var s=r&&r[i]&&r[i].CodeName||n;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function V4(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var r=e.Workbook&&e.Workbook.Sheets||[];G4(e.SheetNames,r,!!e.vbaraw);for(var t=0;t<e.SheetNames.length;++t)pv(e.Sheets[e.SheetNames[t]],e.SheetNames[t],t)}function X1(e){var r=[Fr];r[r.length]=Xe("workbook",null,{xmlns:Rs[0],"xmlns:r":Mr.r});var t=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(W4.forEach(function(o){e.Workbook.WBProps[o[0]]!=null&&e.Workbook.WBProps[o[0]]!=o[1]&&(n[o[0]]=e.Workbook.WBProps[o[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),r[r.length]=Xe("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(r[r.length]="<bookViews>",a=0;a!=e.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==e.SheetNames.length&&(a=0),r[r.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',r[r.length]="</bookViews>"}for(r[r.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var s={name:Yt(e.SheetNames[a].slice(0,31))};if(s.sheetId=""+(a+1),s["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}r[r.length]=Xe("sheet",null,s)}return r[r.length]="</sheets>",t&&(r[r.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(o){var l={name:o.Name};o.Comment&&(l.comment=o.Comment),o.Sheet!=null&&(l.localSheetId=""+o.Sheet),o.Hidden&&(l.hidden="1"),o.Ref&&(r[r.length]=Xe("definedName",Yt(o.Ref),l))}),r[r.length]="</definedNames>"),r.length>2&&(r[r.length]="</workbook>",r[1]=r[1].replace("/>",">")),r.join("")}function X4(e,r){var t={};return t.Hidden=e.read_shift(4),t.iTabID=e.read_shift(4),t.strRelID=Bf(e),t.name=an(e),t}function Y4(e,r){return r||(r=ke(127)),r.write_shift(4,e.Hidden),r.write_shift(4,e.iTabID),nc(e.strRelID,r),Ur(e.name.slice(0,31),r),r.length>r.l?r.slice(0,r.l):r}function $4(e,r){var t={},n=e.read_shift(4);t.defaultThemeVersion=e.read_shift(4);var i=r>8?an(e):"";return i.length>0&&(t.CodeName=i),t.autoCompressPictures=!!(n&65536),t.backupFile=!!(n&64),t.checkCompatibility=!!(n&4096),t.date1904=!!(n&1),t.filterPrivacy=!!(n&8),t.hidePivotFieldList=!!(n&1024),t.promptedSolutions=!!(n&16),t.publishItems=!!(n&2048),t.refreshAllConnections=!!(n&262144),t.saveExternalLinkValues=!!(n&128),t.showBorderUnselectedTables=!!(n&4),t.showInkAnnotation=!!(n&32),t.showObjects=["all","placeholders","none"][n>>13&3],t.showPivotChartFilter=!!(n&32768),t.updateLinks=["userSet","never","always"][n>>8&3],t}function K4(e,r){r||(r=ke(72));var t=0;return e&&e.filterPrivacy&&(t|=8),r.write_shift(4,t),r.write_shift(4,0),a1(e&&e.CodeName||"ThisWorkbook",r),r.slice(0,r.l)}function J4(e,r,t){var n=e.l+r;e.l+=4,e.l+=1;var i=e.read_shift(4),a=H5(e),s=lv(e,0,t),o=rc(e);e.l=n;var l={Name:a,Ptg:s};return i<268435455&&(l.Sheet=i),o&&(l.Comment=o),l}function Z4(e,r){Me(e,143);for(var t=0;t!=r.SheetNames.length;++t){var n=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0,i={Hidden:n,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};Me(e,156,Y4(i))}Me(e,144)}function Q4(e,r){r||(r=ke(127));for(var t=0;t!=4;++t)r.write_shift(4,0);return Ur("SheetJS",r),Ur(J0.version,r),Ur(J0.version,r),Ur("7262",r),r.length>r.l?r.slice(0,r.l):r}function ew(e,r){r||(r=ke(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,e),r.write_shift(4,e);var t=120;return r.write_shift(1,t),r.length>r.l?r.slice(0,r.l):r}function tw(e,r){if(!(!r.Workbook||!r.Workbook.Sheets)){for(var t=r.Workbook.Sheets,n=0,i=-1,a=-1;n<t.length;++n)!t[n]||!t[n].Hidden&&i==-1?i=n:t[n].Hidden==1&&a==-1&&(a=n);a>i||(Me(e,135),Me(e,158,ew(i)),Me(e,136))}}function rw(e,r){var t=yn();return Me(t,131),Me(t,128,Q4()),Me(t,153,K4(e.Workbook&&e.Workbook.WBProps||null)),tw(t,e),Z4(t,e),Me(t,132),t.end()}function nw(e,r,t){return(r.slice(-4)===".bin"?rw:X1)(e)}function iw(e,r,t,n,i){return(r.slice(-4)===".bin"?U4:q1)(e,t,n,i)}function aw(e,r,t){return(r.slice(-4)===".bin"?Sm:F1)(e,t)}function sw(e,r,t){return(r.slice(-4)===".bin"?Kg:N1)(e,t)}function ow(e,r,t){return(r.slice(-4)===".bin"?Bm:O1)(e)}function lw(e){return(e.slice(-4)===".bin"?km:P1)()}function fw(e,r){var t=[];return e.Props&&t.push(ag(e.Props,r)),e.Custprops&&t.push(sg(e.Props,e.Custprops)),t.join("")}function cw(){return""}function uw(e,r){var t=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return r.cellXfs.forEach(function(n,i){var a=[];a.push(Xe("NumberFormat",null,{"ss:Format":Yt(gr[n.numFmtId])}));var s={"ss:ID":"s"+(21+i)};t.push(Xe("Style",a.join(""),s))}),Xe("Styles",t.join(""))}function Y1(e){return Xe("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+oc(e.Ref,{r:0,c:0})})}function hw(e){if(!((e||{}).Workbook||{}).Names)return"";for(var r=e.Workbook.Names,t=[],n=0;n<r.length;++n){var i=r[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||t.push(Y1(i)))}return Xe("Names",t.join(""))}function dw(e,r,t,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,a=[],s=0;s<i.length;++s){var o=i[s];o.Sheet==t&&(o.Name.match(/^_xlfn\./)||a.push(Y1(o)))}return a.join("")}function pw(e,r,t,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(Xe("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(Xe("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(Xe("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[t])if(n.Workbook.Sheets[t].Hidden)i.push(Xe("Visible",n.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<t&&!(n.Workbook.Sheets[a]&&!n.Workbook.Sheets[a].Hidden);++a);a==t&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(Vr("ProtectContents","True")),e["!protect"].objects&&i.push(Vr("ProtectObjects","True")),e["!protect"].scenarios&&i.push(Vr("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(Vr("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(Vr("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(s){e["!protect"][s[0]]&&i.push("<"+s[1]+"/>")})),i.length==0?"":Xe("WorksheetOptions",i.join(""),{xmlns:In.x})}function gw(e){return e.map(function(r){var t=w5(r.t||""),n=Xe("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return Xe("Comment",n,{"ss:Author":r.a})}).join("")}function mw(e,r,t,n,i,a,s){if(!e||e.v==null&&e.f==null)return"";var o={};if(e.f&&(o["ss:Formula"]="="+Yt(oc(e.f,s))),e.F&&e.F.slice(0,r.length)==r){var l=Br(e.F.slice(r.length+1));o["ss:ArrayRange"]="RC:R"+(l.r==s.r?"":"["+(l.r-s.r)+"]")+"C"+(l.c==s.c?"":"["+(l.c-s.c)+"]")}if(e.l&&e.l.Target&&(o["ss:HRef"]=Yt(e.l.Target),e.l.Tooltip&&(o["x:HRefScreenTip"]=Yt(e.l.Tooltip))),t["!merges"])for(var c=t["!merges"],h=0;h!=c.length;++h)c[h].s.c!=s.c||c[h].s.r!=s.r||(c[h].e.c>c[h].s.c&&(o["ss:MergeAcross"]=c[h].e.c-c[h].s.c),c[h].e.r>c[h].s.r&&(o["ss:MergeDown"]=c[h].e.r-c[h].s.r));var p="",g="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":p="Number",g=String(e.v);break;case"b":p="Boolean",g=e.v?"1":"0";break;case"e":p="Error",g=Vo[e.v];break;case"d":p="DateTime",g=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||gr[14]);break;case"s":p="String",g=v5(e.v||"");break}var u=_a(n.cellXfs,e,n);o["ss:StyleID"]="s"+(21+u),o["ss:Index"]=s.c+1;var v=e.v!=null?g:"",m=e.t=="z"?"":'<Data ss:Type="'+p+'">'+v+"</Data>";return(e.c||[]).length>0&&(m+=gw(e.c)),Xe("Cell",m,o)}function xw(e,r){var t='<Row ss:Index="'+(e+1)+'"';return r&&(r.hpt&&!r.hpx&&(r.hpx=L1(r.hpt)),r.hpx&&(t+=' ss:AutoFitHeight="0" ss:Height="'+r.hpx+'"'),r.hidden&&(t+=' ss:Hidden="1"')),t+">"}function vw(e,r,t,n){if(!e["!ref"])return"";var i=lr(e["!ref"]),a=e["!merges"]||[],s=0,o=[];e["!cols"]&&e["!cols"].forEach(function(y,_){ac(y);var S=!!y.width,A=_l(_,y),P={"ss:Index":_+1};S&&(P["ss:Width"]=ol(A.width)),y.hidden&&(P["ss:Hidden"]="1"),o.push(Xe("Column",null,P))});for(var l=Array.isArray(e),c=i.s.r;c<=i.e.r;++c){for(var h=[xw(c,(e["!rows"]||[])[c])],p=i.s.c;p<=i.e.c;++p){var g=!1;for(s=0;s!=a.length;++s)if(!(a[s].s.c>p)&&!(a[s].s.r>c)&&!(a[s].e.c<p)&&!(a[s].e.r<c)){(a[s].s.c!=p||a[s].s.r!=c)&&(g=!0);break}if(!g){var u={r:c,c:p},v=$t(u),m=l?(e[c]||[])[p]:e[v];h.push(mw(m,v,e,r,t,n,u))}}h.push("</Row>"),h.length>2&&o.push(h.join(""))}return o.join("")}function ww(e,r,t){var n=[],i=t.SheetNames[e],a=t.Sheets[i],s=a?dw(a,r,e,t):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=a?vw(a,r,e,t):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(pw(a,r,e,t)),n.join("")}function yw(e,r){r||(r={}),e.SSF||(e.SSF=_n(gr)),e.SSF&&(xl(),ml(e.SSF),r.revssf=vl(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF,r.cellXfs=[],_a(r.cellXfs,{},{revssf:{General:0}}));var t=[];t.push(fw(e,r)),t.push(cw()),t.push(""),t.push("");for(var n=0;n<e.SheetNames.length;++n)t.push(Xe("Worksheet",ww(n,r,e),{"ss:Name":Yt(e.SheetNames[n])}));return t[2]=uw(e,r),t[3]=hw(e),Fr+Xe("Workbook",t.join(""),{xmlns:In.ss,"xmlns:o":In.o,"xmlns:x":In.x,"xmlns:ss":In.ss,"xmlns:dt":In.dt,"xmlns:html":In.html})}var bf={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function bw(e,r){var t=[],n=[],i=[],a=0,s,o=wu(Pu,"n"),l=wu(Iu,"n");if(e.Props)for(s=Yr(e.Props),a=0;a<s.length;++a)(Object.prototype.hasOwnProperty.call(o,s[a])?t:Object.prototype.hasOwnProperty.call(l,s[a])?n:i).push([s[a],e.Props[s[a]]]);if(e.Custprops)for(s=Yr(e.Custprops),a=0;a<s.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},s[a])||(Object.prototype.hasOwnProperty.call(o,s[a])?t:Object.prototype.hasOwnProperty.call(l,s[a])?n:i).push([s[a],e.Custprops[s[a]]]);var c=[];for(a=0;a<i.length;++a)v1.indexOf(i[a][0])>-1||g1.indexOf(i[a][0])>-1||i[a][1]!=null&&c.push(i[a]);n.length&&Zt.utils.cfb_add(r,"/SummaryInformation",Mu(n,bf.SI,l,Iu)),(t.length||c.length)&&Zt.utils.cfb_add(r,"/DocumentSummaryInformation",Mu(t,bf.DSI,o,Pu,c.length?c:null,bf.UDI))}function _w(e,r){var t=r||{},n=Zt.utils.cfb_new({root:"R"}),i="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":t.bookType||(t.bookType="xla");case"biff8":i="/Workbook",t.biff=8;break;case"biff5":i="/Book",t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB")}return Zt.utils.cfb_add(n,i,$1(e,t)),t.biff==8&&(e.Props||e.Custprops)&&bw(e,n),t.biff==8&&e.vbaraw&&Um(n,Zt.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var Sw={0:{f:Tv},1:{f:Ov},2:{f:e4},3:{f:Wv},4:{f:Mv},5:{f:Kv},6:{f:a4},7:{f:Vv},8:{f:h4},9:{f:u4},10:{f:f4},11:{f:c4},12:{f:Rv},13:{f:r4},14:{f:qv},15:{f:Uv},16:{f:Zv},17:{f:o4},18:{f:Yv},19:{f:tc},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:J4},40:{},42:{},43:{f:am},44:{f:nm},45:{f:lm},46:{f:cm},47:{f:fm},48:{},49:{f:R5},50:{},51:{f:Tm},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:jg},62:{f:i4},63:{f:Pm},64:{f:L4},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Ti,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:A4},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:Pv},148:{f:Fv,p:16},151:{f:v4},152:{},153:{f:$4},154:{},155:{},156:{f:X4},157:{},158:{},159:{T:1,f:Xg},160:{T:-1},161:{T:1,f:Ka},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:d4},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:Am},336:{T:-1},337:{f:Fm,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:Bf},357:{},358:{},359:{},360:{T:1},361:{},362:{f:kg},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:w4},427:{f:y4},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:_4},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:kv},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:m4},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:Bf},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:jm},633:{T:1},634:{T:-1},635:{T:1,f:Dm},636:{T:-1},637:{f:U5},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:z4},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:F4},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 Ye(e,r,t,n){var i=r;if(!isNaN(i)){var a=n||(t||[]).length||0,s=e.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&Zf(t)&&e.push(t)}}function Aw(e,r,t,n){var i=(t||[]).length||0;if(i<=8224)return Ye(e,r,t,i);var a=r;if(!isNaN(a)){for(var s=t.parts||[],o=0,l=0,c=0;c+(s[o]||8224)<=8224;)c+=s[o]||8224,o++;var h=e.next(4);for(h.write_shift(2,a),h.write_shift(2,c),e.push(t.slice(l,l+c)),l+=c;l<i;){for(h=e.next(4),h.write_shift(2,60),c=0;c+(s[o]||8224)<=8224;)c+=s[o]||8224,o++;h.write_shift(2,c),e.push(t.slice(l,l+c)),l+=c}}}function Yo(e,r,t){return e||(e=ke(7)),e.write_shift(2,r),e.write_shift(2,t),e.write_shift(2,0),e.write_shift(1,0),e}function Nw(e,r,t,n){var i=ke(9);return Yo(i,e,r),y1(t,n||"b",i),i}function Tw(e,r,t){var n=ke(8+2*t.length);return Yo(n,e,r),n.write_shift(1,t.length),n.write_shift(t.length,t,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function Ew(e,r,t,n){if(r.v!=null)switch(r.t){case"d":case"n":var i=r.t=="d"?bn(hn(r.v)):r.v;i==(i|0)&&i>=0&&i<65536?Ye(e,2,zg(t,n,i)):Ye(e,3,Ug(t,n,i));return;case"b":case"e":Ye(e,5,Nw(t,n,r.v,r.t));return;case"s":case"str":Ye(e,4,Tw(t,n,(r.v||"").slice(0,255)));return}Ye(e,1,Yo(null,t,n))}function Lw(e,r,t,n){var i=Array.isArray(r),a=lr(r["!ref"]||"A1"),s,o="",l=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(r["!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),s=Lr(a)}for(var c=a.s.r;c<=a.e.r;++c){o=Xr(c);for(var h=a.s.c;h<=a.e.c;++h){c===a.s.r&&(l[h]=nn(h)),s=l[h]+o;var p=i?(r[c]||[])[h]:r[s];p&&Ew(e,p,c,h)}}}function Fw(e,r){for(var t=r||{},n=yn(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==t.sheet&&(i=a);if(i==0&&t.sheet&&e.SheetNames[0]!=t.sheet)throw new Error("Sheet not found: "+t.sheet);return Ye(n,t.biff==4?1033:t.biff==3?521:9,ic(e,16,t)),Lw(n,e.Sheets[e.SheetNames[i]],i,t),Ye(n,10),n.end()}function Cw(e,r,t){Ye(e,49,Sg({sz:12,name:"Arial"},t))}function kw(e,r,t){r&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&Ye(e,1054,Tg(i,r[i],t))})}function Pw(e,r){var t=ke(19);t.write_shift(4,2151),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,1),t.write_shift(4,0),Ye(e,2151,t),t=ke(39),t.write_shift(4,2152),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(2,1),t.write_shift(4,4),t.write_shift(2,0),S1(lr(r["!ref"]||"A1"),t),t.write_shift(4,4),Ye(e,2152,t)}function Iw(e,r){for(var t=0;t<16;++t)Ye(e,224,Uu({numFmtId:0,style:!0},0,r));r.cellXfs.forEach(function(n){Ye(e,224,Uu(n,0,r))})}function Ow(e,r){for(var t=0;t<r["!links"].length;++t){var n=r["!links"][t];Ye(e,440,Og(n)),n[1].Tooltip&&Ye(e,2048,Dg(n))}delete r["!links"]}function Dw(e,r){if(r){var t=0;r.forEach(function(n,i){++t<=256&&n&&Ye(e,125,Mg(_l(i,n),i))})}}function Rw(e,r,t,n,i){var a=16+_a(i.cellXfs,r,i);if(r.v==null&&!r.bf){Ye(e,513,qa(t,n,a));return}if(r.bf)Ye(e,6,sv(r,t,n,i,a));else switch(r.t){case"d":case"n":var s=r.t=="d"?bn(hn(r.v)):r.v;Ye(e,515,Cg(t,n,s,a));break;case"b":case"e":Ye(e,517,Fg(t,n,r.v,a,i,r.t));break;case"s":case"str":if(i.bookSST){var o=fc(i.Strings,r.v,i.revStrings);Ye(e,253,Ag(t,n,o,a))}else Ye(e,516,Ng(t,n,(r.v||"").slice(0,255),a,i));break;default:Ye(e,513,qa(t,n,a))}}function jw(e,r,t){var n=yn(),i=t.SheetNames[e],a=t.Sheets[i]||{},s=(t||{}).Workbook||{},o=(s.Sheets||[])[e]||{},l=Array.isArray(a),c=r.biff==8,h,p="",g=[],u=lr(a["!ref"]||"A1"),v=c?65536:16384;if(u.e.c>255||u.e.r>=v){if(r.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");u.e.c=Math.min(u.e.c,255),u.e.r=Math.min(u.e.c,v-1)}Ye(n,2057,ic(t,16,r)),Ye(n,13,Yn(1)),Ye(n,12,Yn(100)),Ye(n,15,un(!0)),Ye(n,17,un(!1)),Ye(n,16,Ha(.001)),Ye(n,95,un(!0)),Ye(n,42,un(!1)),Ye(n,43,un(!1)),Ye(n,130,Yn(1)),Ye(n,128,Lg()),Ye(n,131,un(!1)),Ye(n,132,un(!1)),c&&Dw(n,a["!cols"]),Ye(n,512,Eg(u,r)),c&&(a["!links"]=[]);for(var m=u.s.r;m<=u.e.r;++m){p=Xr(m);for(var y=u.s.c;y<=u.e.c;++y){m===u.s.r&&(g[y]=nn(y)),h=g[y]+p;var _=l?(a[m]||[])[y]:a[h];_&&(Rw(n,_,m,y,r),c&&_.l&&a["!links"].push([h,_.l]))}}var S=o.CodeName||o.name||i;return c&&Ye(n,574,_g((s.Views||[])[0])),c&&(a["!merges"]||[]).length&&Ye(n,229,Ig(a["!merges"])),c&&Ow(n,a),Ye(n,442,_1(S)),c&&Pw(n,a),Ye(n,10),n.end()}function Mw(e,r,t){var n=yn(),i=(e||{}).Workbook||{},a=i.Sheets||[],s=i.WBProps||{},o=t.biff==8,l=t.biff==5;if(Ye(n,2057,ic(e,5,t)),t.bookType=="xla"&&Ye(n,135),Ye(n,225,o?Yn(1200):null),Ye(n,193,fg(2)),l&&Ye(n,191),l&&Ye(n,192),Ye(n,226),Ye(n,92,vg("SheetJS",t)),Ye(n,66,Yn(o?1200:1252)),o&&Ye(n,353,Yn(0)),o&&Ye(n,448),Ye(n,317,Bg(e.SheetNames.length)),o&&e.vbaraw&&Ye(n,211),o&&e.vbaraw){var c=s.CodeName||"ThisWorkbook";Ye(n,442,_1(c))}Ye(n,156,Yn(17)),Ye(n,25,un(!1)),Ye(n,18,un(!1)),Ye(n,19,Yn(0)),o&&Ye(n,431,un(!1)),o&&Ye(n,444,Yn(0)),Ye(n,61,bg()),Ye(n,64,un(!1)),Ye(n,141,Yn(0)),Ye(n,34,un(H4(e)=="true")),Ye(n,14,un(!0)),o&&Ye(n,439,un(!1)),Ye(n,218,Yn(0)),Cw(n,e,t),kw(n,e.SSF,t),Iw(n,t),o&&Ye(n,352,un(!1));var h=n.end(),p=yn();o&&Ye(p,140,Rg()),o&&t.Strings&&Aw(p,252,yg(t.Strings)),Ye(p,10);var g=p.end(),u=yn(),v=0,m=0;for(m=0;m<e.SheetNames.length;++m)v+=(o?12:11)+(o?2:1)*e.SheetNames[m].length;var y=h.length+v+g.length;for(m=0;m<e.SheetNames.length;++m){var _=a[m]||{};Ye(u,133,wg({pos:y,hs:_.Hidden||0,dt:0,name:e.SheetNames[m]},t)),y+=r[m].length}var S=u.end();if(v!=S.length)throw new Error("BS8 "+v+" != "+S.length);var A=[];return h.length&&A.push(h),S.length&&A.push(S),g.length&&A.push(g),Gr(A)}function Bw(e,r){var t=r||{},n=[];e&&!e.SSF&&(e.SSF=_n(gr)),e&&e.SSF&&(xl(),ml(e.SSF),t.revssf=vl(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,cc(t),t.cellXfs=[],_a(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=jw(i,t,e);return n.unshift(Mw(e,n,t)),Gr(n)}function $1(e,r){for(var t=0;t<=e.SheetNames.length;++t){var n=e.Sheets[e.SheetNames[t]];if(!(!n||!n["!ref"])){var i=Rn(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[t]+"' extends beyond column IV (255). Data may be lost.")}}var a=r||{};switch(a.biff||2){case 8:case 5:return Bw(e,r);case 4:case 3:case 2:return Fw(e,r)}throw new Error("invalid type "+a.bookType+" for BIFF")}function Uw(e,r,t,n){for(var i=e["!merges"]||[],a=[],s=r.s.c;s<=r.e.c;++s){for(var o=0,l=0,c=0;c<i.length;++c)if(!(i[c].s.r>t||i[c].s.c>s)&&!(i[c].e.r<t||i[c].e.c<s)){if(i[c].s.r<t||i[c].s.c<s){o=-1;break}o=i[c].e.r-i[c].s.r+1,l=i[c].e.c-i[c].s.c+1;break}if(!(o<0)){var h=$t({r:t,c:s}),p=n.dense?(e[t]||[])[s]:e[h],g=p&&p.v!=null&&(p.h||x5(p.w||(Gi(p),p.w)||""))||"",u={};o>1&&(u.rowspan=o),l>1&&(u.colspan=l),n.editable?g='<span contenteditable="true">'+g+"</span>":p&&(u["data-t"]=p&&p.t||"z",p.v!=null&&(u["data-v"]=p.v),p.z!=null&&(u["data-z"]=p.z),p.l&&(p.l.Target||"#").charAt(0)!="#"&&(g='<a href="'+p.l.Target+'">'+g+"</a>")),u.id=(n.id||"sjs")+"-"+h,a.push(Xe("td",g,u))}}var v="<tr>";return v+a.join("")+"</tr>"}var zw='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Ww="</body></html>";function Hw(e,r,t){var n=[];return n.join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}function K1(e,r){var t=r||{},n=t.header!=null?t.header:zw,i=t.footer!=null?t.footer:Ww,a=[n],s=Rn(e["!ref"]);t.dense=Array.isArray(e),a.push(Hw(e,s,t));for(var o=s.s.r;o<=s.e.r;++o)a.push(Uw(e,s,o,t));return a.push("</table>"+i),a.join("")}function J1(e,r,t){var n=t||{},i=0,a=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var s=typeof n.origin=="string"?Br(n.origin):n.origin;i=s.r,a=s.c}var o=r.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,o.length),c={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var h=Rn(e["!ref"]);c.s.r=Math.min(c.s.r,h.s.r),c.s.c=Math.min(c.s.c,h.s.c),c.e.r=Math.max(c.e.r,h.e.r),c.e.c=Math.max(c.e.c,h.e.c),i==-1&&(c.e.r=i=h.e.r+1)}var p=[],g=0,u=e["!rows"]||(e["!rows"]=[]),v=0,m=0,y=0,_=0,S=0,A=0;for(e["!cols"]||(e["!cols"]=[]);v<o.length&&m<l;++v){var P=o[v];if(Xu(P)){if(n.display)continue;u[m]={hidden:!0}}var z=P.children;for(y=_=0;y<z.length;++y){var G=z[y];if(!(n.display&&Xu(G))){var L=G.hasAttribute("data-v")?G.getAttribute("data-v"):G.hasAttribute("v")?G.getAttribute("v"):b5(G.innerHTML),I=G.getAttribute("data-z")||G.getAttribute("z");for(g=0;g<p.length;++g){var j=p[g];j.s.c==_+a&&j.s.r<m+i&&m+i<=j.e.r&&(_=j.e.c+1-a,g=-1)}A=+G.getAttribute("colspan")||1,((S=+G.getAttribute("rowspan")||1)>1||A>1)&&p.push({s:{r:m+i,c:_+a},e:{r:m+i+(S||1)-1,c:_+a+(A||1)-1}});var V={t:"s",v:L},E=G.getAttribute("data-t")||G.getAttribute("t")||"";L!=null&&(L.length==0?V.t=E||"z":n.raw||L.trim().length==0||E=="s"||(L==="TRUE"?V={t:"b",v:!0}:L==="FALSE"?V={t:"b",v:!1}:isNaN(Wi(L))?isNaN(jo(L).getDate())||(V={t:"d",v:hn(L)},n.cellDates||(V={t:"n",v:bn(V.v)}),V.z=n.dateNF||gr[14]):V={t:"n",v:Wi(L)})),V.z===void 0&&I!=null&&(V.z=I);var N="",H=G.getElementsByTagName("A");if(H&&H.length)for(var Y=0;Y<H.length&&!(H[Y].hasAttribute("href")&&(N=H[Y].getAttribute("href"),N.charAt(0)!="#"));++Y);N&&N.charAt(0)!="#"&&(V.l={Target:N}),n.dense?(e[m+i]||(e[m+i]=[]),e[m+i][_+a]=V):e[$t({c:_+a,r:m+i})]=V,c.e.c<_+a&&(c.e.c=_+a),_+=A}}++m}return p.length&&(e["!merges"]=(e["!merges"]||[]).concat(p)),c.e.r=Math.max(c.e.r,m-1+i),e["!ref"]=Lr(c),m>=l&&(e["!fullref"]=Lr((c.e.r=o.length-v+m-1+i,c))),e}function Z1(e,r){var t=r||{},n=t.dense?[]:{};return J1(n,e,r)}function qw(e,r){return Va(Z1(e,r),r)}function Xu(e){var r="",t=Gw(e);return t&&(r=t(e).getPropertyValue("display")),r||(r=e.style&&e.style.display),r==="none"}function Gw(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var Vw=(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(""),r="<office:document-styles "+Bo({"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 Fr+r}})(),Yu=(function(){var e=function(a){return Yt(a).replace(/ +/g,function(s){return'<text:s text:c="'+s.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},r=` <table:table-cell />
312
+ `,t=` <table:covered-table-cell/>
313
+ `,n=function(a,s,o){var l=[];l.push(' <table:table table:name="'+Yt(s.SheetNames[o])+`" table:style-name="ta1">
314
+ `);var c=0,h=0,p=Rn(a["!ref"]||"A1"),g=a["!merges"]||[],u=0,v=Array.isArray(a);if(a["!cols"])for(h=0;h<=p.e.c;++h)l.push(" <table:table-column"+(a["!cols"][h]?' table:style-name="co'+a["!cols"][h].ods+'"':"")+`></table:table-column>
315
+ `);var m="",y=a["!rows"]||[];for(c=0;c<p.s.r;++c)m=y[c]?' table:style-name="ro'+y[c].ods+'"':"",l.push(" <table:table-row"+m+`></table:table-row>
316
+ `);for(;c<=p.e.r;++c){for(m=y[c]?' table:style-name="ro'+y[c].ods+'"':"",l.push(" <table:table-row"+m+`>
317
+ `),h=0;h<p.s.c;++h)l.push(r);for(;h<=p.e.c;++h){var _=!1,S={},A="";for(u=0;u!=g.length;++u)if(!(g[u].s.c>h)&&!(g[u].s.r>c)&&!(g[u].e.c<h)&&!(g[u].e.r<c)){(g[u].s.c!=h||g[u].s.r!=c)&&(_=!0),S["table:number-columns-spanned"]=g[u].e.c-g[u].s.c+1,S["table:number-rows-spanned"]=g[u].e.r-g[u].s.r+1;break}if(_){l.push(t);continue}var P=$t({r:c,c:h}),z=v?(a[c]||[])[h]:a[P];if(z&&z.f&&(S["table:formula"]=Yt(hv(z.f)),z.F&&z.F.slice(0,P.length)==P)){var G=Rn(z.F);S["table:number-matrix-columns-spanned"]=G.e.c-G.s.c+1,S["table:number-matrix-rows-spanned"]=G.e.r-G.s.r+1}if(!z){l.push(r);continue}switch(z.t){case"b":A=z.v?"TRUE":"FALSE",S["office:value-type"]="boolean",S["office:boolean-value"]=z.v?"true":"false";break;case"n":A=z.w||String(z.v||0),S["office:value-type"]="float",S["office:value"]=z.v||0;break;case"s":case"str":A=z.v==null?"":z.v,S["office:value-type"]="string";break;case"d":A=z.w||hn(z.v).toISOString(),S["office:value-type"]="date",S["office:date-value"]=hn(z.v).toISOString(),S["table:style-name"]="ce1";break;default:l.push(r);continue}var L=e(A);if(z.l&&z.l.Target){var I=z.l.Target;I=I.charAt(0)=="#"?"#"+dv(I.slice(1)):I,I.charAt(0)!="#"&&!I.match(/^\w+:/)&&(I="../"+I),L=Xe("text:a",L,{"xlink:href":I.replace(/&/g,"&amp;")})}l.push(" "+Xe("table:table-cell",Xe("text:p",L,{}),S)+`
318
+ `)}l.push(` </table:table-row>
319
+ `)}return l.push(` </table:table>
320
+ `),l.join("")},i=function(a,s){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 o=0;s.SheetNames.map(function(c){return s.Sheets[c]}).forEach(function(c){if(c&&c["!cols"]){for(var h=0;h<c["!cols"].length;++h)if(c["!cols"][h]){var p=c["!cols"][h];if(p.width==null&&p.wpx==null&&p.wch==null)continue;ac(p),p.ods=o;var g=c["!cols"][h].wpx+"px";a.push(' <style:style style:name="co'+o+`" style:family="table-column">
329
+ `),a.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+g+`"/>
330
+ `),a.push(` </style:style>
331
+ `),++o}}});var l=0;s.SheetNames.map(function(c){return s.Sheets[c]}).forEach(function(c){if(c&&c["!rows"]){for(var h=0;h<c["!rows"].length;++h)if(c["!rows"][h]){c["!rows"][h].ods=l;var p=c["!rows"][h].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="'+p+`"/>
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(s,o){var l=[Fr],c=Bo({"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"}),h=Bo({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});o.bookType=="fods"?(l.push("<office:document"+c+h+`>
340
+ `),l.push(d1().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+c+`>
341
+ `),i(l,s),l.push(` <office:body>
342
+ `),l.push(` <office:spreadsheet>
343
+ `);for(var p=0;p!=s.SheetNames.length;++p)l.push(n(s.Sheets[s.SheetNames[p]],s,p));return l.push(` </office:spreadsheet>
344
+ `),l.push(` </office:body>
345
+ `),o.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}})();function Q1(e,r){if(r.bookType=="fods")return Yu(e,r);var t=Yf(),n="",i=[],a=[];return n="mimetype",Lt(t,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Lt(t,n,Yu(e,r)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",Lt(t,n,Vw(e,r)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",Lt(t,n,Fr+d1()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",Lt(t,n,ig(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Lt(t,n,rg(i)),t}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function cl(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Xw(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):fi(Mo(e))}function Yw(e,r){e:for(var t=0;t<=e.length-r.length;++t){for(var n=0;n<r.length;++n)if(e[t+n]!=r[n])continue e;return!0}return!1}function ba(e){var r=e.reduce(function(i,a){return i+a.length},0),t=new Uint8Array(r),n=0;return e.forEach(function(i){t.set(i,n),n+=i.length}),t}function $w(e,r,t){var n=Math.floor(t==0?0:Math.LOG10E*Math.log(Math.abs(t)))+6176-20,i=t/Math.pow(10,n-6176);e[r+15]|=n>>7,e[r+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)e[r+a]=i&255;e[r+15]|=t>=0?0:128}function Uo(e,r){var t=r?r[0]:0,n=e[t]&127;e:if(e[t++]>=128&&(n|=(e[t]&127)<<7,e[t++]<128||(n|=(e[t]&127)<<14,e[t++]<128)||(n|=(e[t]&127)<<21,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,28),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,35),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,42),++t,e[t++]<128)))break e;return r&&(r[0]=t),n}function Vt(e){var r=new Uint8Array(7);r[0]=e&127;var t=1;e:if(e>127){if(r[t-1]|=128,r[t]=e>>7&127,++t,e<=16383||(r[t-1]|=128,r[t]=e>>14&127,++t,e<=2097151)||(r[t-1]|=128,r[t]=e>>21&127,++t,e<=268435455)||(r[t-1]|=128,r[t]=e/256>>>21&127,++t,e<=34359738367)||(r[t-1]|=128,r[t]=e/65536>>>21&127,++t,e<=4398046511103))break e;r[t-1]|=128,r[t]=e/16777216>>>21&127,++t}return r.slice(0,t)}function Ps(e){var r=0,t=e[r]&127;e:if(e[r++]>=128){if(t|=(e[r]&127)<<7,e[r++]<128||(t|=(e[r]&127)<<14,e[r++]<128)||(t|=(e[r]&127)<<21,e[r++]<128))break e;t|=(e[r]&127)<<28}return t}function Ir(e){for(var r=[],t=[0];t[0]<e.length;){var n=t[0],i=Uo(e,t),a=i&7;i=Math.floor(i/8);var s=0,o;if(i==0)break;switch(a){case 0:{for(var l=t[0];e[t[0]++]>=128;);o=e.slice(l,t[0])}break;case 5:s=4,o=e.slice(t[0],t[0]+s),t[0]+=s;break;case 1:s=8,o=e.slice(t[0],t[0]+s),t[0]+=s;break;case 2:s=Uo(e,t),o=e.slice(t[0],t[0]+s),t[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(n))}var c={data:o,type:a};r[i]==null?r[i]=[c]:r[i].push(c)}return r}function Hr(e){var r=[];return e.forEach(function(t,n){t.forEach(function(i){i.data&&(r.push(Vt(n*8+i.type)),i.type==2&&r.push(Vt(i.data.length)),r.push(i.data))})}),ba(r)}function si(e){for(var r,t=[],n=[0];n[0]<e.length;){var i=Uo(e,n),a=Ir(e.slice(n[0],n[0]+i));n[0]+=i;var s={id:Ps(a[1][0].data),messages:[]};a[2].forEach(function(o){var l=Ir(o.data),c=Ps(l[3][0].data);s.messages.push({meta:l,data:e.slice(n[0],n[0]+c)}),n[0]+=c}),(r=a[3])!=null&&r[0]&&(s.merge=Ps(a[3][0].data)>>>0>0),t.push(s)}return t}function _s(e){var r=[];return e.forEach(function(t){var n=[];n[1]=[{data:Vt(t.id),type:0}],n[2]=[],t.merge!=null&&(n[3]=[{data:Vt(+!!t.merge),type:0}]);var i=[];t.messages.forEach(function(s){i.push(s.data),s.meta[3]=[{type:0,data:Vt(s.data.length)}],n[2].push({data:Hr(s.meta),type:2})});var a=Hr(n);r.push(Vt(a.length)),r.push(a),i.forEach(function(s){return r.push(s)})}),ba(r)}function Kw(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],n=Uo(r,t),i=[];t[0]<r.length;){var a=r[t[0]]&3;if(a==0){var s=r[t[0]++]>>2;if(s<60)++s;else{var o=s-59;s=r[t[0]],o>1&&(s|=r[t[0]+1]<<8),o>2&&(s|=r[t[0]+2]<<16),o>3&&(s|=r[t[0]+3]<<24),s>>>=0,s++,t[0]+=o}i.push(r.slice(t[0],t[0]+s)),t[0]+=s;continue}else{var l=0,c=0;if(a==1?(c=(r[t[0]]>>2&7)+4,l=(r[t[0]++]&224)<<3,l|=r[t[0]++]):(c=(r[t[0]++]>>2)+1,a==2?(l=r[t[0]]|r[t[0]+1]<<8,t[0]+=2):(l=(r[t[0]]|r[t[0]+1]<<8|r[t[0]+2]<<16|r[t[0]+3]<<24)>>>0,t[0]+=4)),i=[ba(i)],l==0)throw new Error("Invalid offset 0");if(l>i[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(i.push(i[0].slice(-l)),c-=l;c>=i[i.length-1].length;)i.push(i[i.length-1]),c-=i[i.length-1].length;i.push(i[0].slice(-l,-l+c))}}var h=ba(i);if(h.length!=n)throw new Error("Unexpected length: ".concat(h.length," != ").concat(n));return h}function oi(e){for(var r=[],t=0;t<e.length;){var n=e[t++],i=e[t]|e[t+1]<<8|e[t+2]<<16;t+=3,r.push(Kw(n,e.slice(t,t+i))),t+=i}if(t!==e.length)throw new Error("data is not a valid framed stream!");return ba(r)}function Ss(e){for(var r=[],t=0;t<e.length;){var n=Math.min(e.length-t,268435455),i=new Uint8Array(4);r.push(i);var a=Vt(n),s=a.length;r.push(a),n<=60?(s++,r.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,r.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,r.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,r.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,r.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),r.push(e.slice(t,t+n)),s+=n,i[0]=0,i[1]=s&255,i[2]=s>>8&255,i[3]=s>>16&255,t+=n}return ba(r)}function _f(e,r){var t=new Uint8Array(32),n=cl(t),i=12,a=0;switch(t[0]=5,e.t){case"n":t[1]=2,$w(t,i,e.v),a|=1,i+=16;break;case"b":t[1]=6,n.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(r.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));t[1]=3,n.setUint32(i,r.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),t.slice(0,i)}function Sf(e,r){var t=new Uint8Array(32),n=cl(t),i=12,a=0;switch(t[0]=3,e.t){case"n":t[2]=2,n.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":t[2]=6,n.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(r.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));t[2]=3,n.setUint32(i,r.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,a,!0),t.slice(0,i)}function ua(e){var r=Ir(e);return Uo(r[1][0].data)}function Jw(e,r,t){var n,i,a,s;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var o=((s=(a=e[8])==null?void 0:a[0])==null?void 0:s.data)&&Ps(e[8][0].data)>0||!1;if(o)throw"Math only works with normal offsets";for(var l=0,c=cl(e[7][0].data),h=0,p=[],g=cl(e[4][0].data),u=0,v=[],m=0;m<r.length;++m){if(r[m]==null){c.setUint16(m*2,65535,!0),g.setUint16(m*2,65535);continue}c.setUint16(m*2,h,!0),g.setUint16(m*2,u,!0);var y,_;switch(typeof r[m]){case"string":y=_f({t:"s",v:r[m]},t),_=Sf({t:"s",v:r[m]},t);break;case"number":y=_f({t:"n",v:r[m]},t),_=Sf({t:"n",v:r[m]},t);break;case"boolean":y=_f({t:"b",v:r[m]},t),_=Sf({t:"b",v:r[m]},t);break;default:throw new Error("Unsupported value "+r[m])}p.push(y),h+=y.length,v.push(_),u+=_.length,++l}for(e[2][0].data=Vt(l);m<e[7][0].data.length/2;++m)c.setUint16(m*2,65535,!0),g.setUint16(m*2,65535,!0);return e[6][0].data=ba(p),e[3][0].data=ba(v),l}function Zw(e,r){if(!r||!r.numbers)throw new Error("Must pass a `numbers` option -- check the README");var t=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=Rn(t["!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(Lr(n)));var a=ul(t,{range:n,header:1}),s=["~Sh33tJ5~"];a.forEach(function(C){return C.forEach(function(k){typeof k=="string"&&s.push(k)})});var o={},l=[],c=Zt.read(r.numbers,{type:"base64"});c.FileIndex.map(function(C,k){return[C,c.FullPaths[k]]}).forEach(function(C){var k=C[0],O=C[1];if(k.type==2&&k.name.match(/\.iwa/)){var q=k.content,le=oi(q),ce=si(le);ce.forEach(function(ue){l.push(ue.id),o[ue.id]={deps:[],location:O,type:Ps(ue.messages[0].meta[1][0].data)}})}}),l.sort(function(C,k){return C-k});var h=l.filter(function(C){return C>1}).map(function(C){return[C,Vt(C)]});c.FileIndex.map(function(C,k){return[C,c.FullPaths[k]]}).forEach(function(C){var k=C[0];if(C[1],!!k.name.match(/\.iwa/)){var O=si(oi(k.content));O.forEach(function(q){q.messages.forEach(function(le){h.forEach(function(ce){q.messages.some(function(ue){return Ps(ue.meta[1][0].data)!=11006&&Yw(ue.data,ce[1])})&&o[ce[0]].deps.push(q.id)})})})}});for(var p=Zt.find(c,o[1].location),g=si(oi(p.content)),u,v=0;v<g.length;++v){var m=g[v];m.id==1&&(u=m)}var y=ua(Ir(u.messages[0].data)[1][0].data);for(p=Zt.find(c,o[y].location),g=si(oi(p.content)),v=0;v<g.length;++v)m=g[v],m.id==y&&(u=m);for(y=ua(Ir(u.messages[0].data)[2][0].data),p=Zt.find(c,o[y].location),g=si(oi(p.content)),v=0;v<g.length;++v)m=g[v],m.id==y&&(u=m);for(y=ua(Ir(u.messages[0].data)[2][0].data),p=Zt.find(c,o[y].location),g=si(oi(p.content)),v=0;v<g.length;++v)m=g[v],m.id==y&&(u=m);var _=Ir(u.messages[0].data);{_[6][0].data=Vt(n.e.r+1),_[7][0].data=Vt(n.e.c+1);var S=ua(_[46][0].data),A=Zt.find(c,o[S].location),P=si(oi(A.content));{for(var z=0;z<P.length&&P[z].id!=S;++z);if(P[z].id!=S)throw"Bad ColumnRowUIDMapArchive";var G=Ir(P[z].messages[0].data);G[1]=[],G[2]=[],G[3]=[];for(var L=0;L<=n.e.c;++L){var I=[];I[1]=I[2]=[{type:0,data:Vt(L+420690)}],G[1].push({type:2,data:Hr(I)}),G[2].push({type:0,data:Vt(L)}),G[3].push({type:0,data:Vt(L)})}G[4]=[],G[5]=[],G[6]=[];for(var j=0;j<=n.e.r;++j)I=[],I[1]=I[2]=[{type:0,data:Vt(j+726270)}],G[4].push({type:2,data:Hr(I)}),G[5].push({type:0,data:Vt(j)}),G[6].push({type:0,data:Vt(j)});P[z].messages[0].data=Hr(G)}A.content=Ss(_s(P)),A.size=A.content.length,delete _[46];var V=Ir(_[4][0].data);{V[7][0].data=Vt(n.e.r+1);var E=Ir(V[1][0].data),N=ua(E[2][0].data);A=Zt.find(c,o[N].location),P=si(oi(A.content));{if(P[0].id!=N)throw"Bad HeaderStorageBucket";var H=Ir(P[0].messages[0].data);for(j=0;j<a.length;++j){var Y=Ir(H[2][0].data);Y[1][0].data=Vt(j),Y[4][0].data=Vt(a[j].length),H[2][j]={type:H[2][0].type,data:Hr(Y)}}P[0].messages[0].data=Hr(H)}A.content=Ss(_s(P)),A.size=A.content.length;var fe=ua(V[2][0].data);A=Zt.find(c,o[fe].location),P=si(oi(A.content));{if(P[0].id!=fe)throw"Bad HeaderStorageBucket";for(H=Ir(P[0].messages[0].data),L=0;L<=n.e.c;++L)Y=Ir(H[2][0].data),Y[1][0].data=Vt(L),Y[4][0].data=Vt(n.e.r+1),H[2][L]={type:H[2][0].type,data:Hr(Y)};P[0].messages[0].data=Hr(H)}A.content=Ss(_s(P)),A.size=A.content.length;var Q=ua(V[4][0].data);(function(){for(var C=Zt.find(c,o[Q].location),k=si(oi(C.content)),O,q=0;q<k.length;++q){var le=k[q];le.id==Q&&(O=le)}var ce=Ir(O.messages[0].data);{ce[3]=[];var ue=[];s.forEach(function(Re,He){ue[1]=[{type:0,data:Vt(He)}],ue[2]=[{type:0,data:Vt(1)}],ue[3]=[{type:2,data:Xw(Re)}],ce[3].push({type:2,data:Hr(ue)})})}O.messages[0].data=Hr(ce);var we=_s(k),Pe=Ss(we);C.content=Pe,C.size=C.content.length})();var J=Ir(V[3][0].data);{var oe=J[1][0];delete J[2];var ne=Ir(oe.data);{var ge=ua(ne[2][0].data);(function(){for(var C=Zt.find(c,o[ge].location),k=si(oi(C.content)),O,q=0;q<k.length;++q){var le=k[q];le.id==ge&&(O=le)}var ce=Ir(O.messages[0].data);{delete ce[6],delete J[7];var ue=new Uint8Array(ce[5][0].data);ce[5]=[];for(var we=0,Pe=0;Pe<=n.e.r;++Pe){var Re=Ir(ue);we+=Jw(Re,a[Pe],s),Re[1][0].data=Vt(Pe),ce[5].push({data:Hr(Re),type:2})}ce[1]=[{type:0,data:Vt(n.e.c+1)}],ce[2]=[{type:0,data:Vt(n.e.r+1)}],ce[3]=[{type:0,data:Vt(we)}],ce[4]=[{type:0,data:Vt(n.e.r+1)}]}O.messages[0].data=Hr(ce);var He=_s(k),$e=Ss(He);C.content=$e,C.size=C.content.length})()}oe.data=Hr(ne)}V[3][0].data=Hr(J)}_[4][0].data=Hr(V)}u.messages[0].data=Hr(_);var ye=_s(g),b=Ss(ye);return p.content=b,p.size=p.content.length,c}function Qw(e){return function(t){for(var n=0;n!=e.length;++n){var i=e[n];t[i[0]]===void 0&&(t[i[0]]=i[1]),i[2]==="n"&&(t[i[0]]=Number(t[i[0]]))}}}function cc(e){Qw([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function e3(e,r){return r.bookType=="ods"?Q1(e,r):r.bookType=="numbers"?Zw(e,r):r.bookType=="xlsb"?t3(e,r):r3(e,r)}function t3(e,r){Es=1024,e&&!e.SSF&&(e.SSF=_n(gr)),e&&e.SSF&&(xl(),ml(e.SSF),r.revssf=vl(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Po?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t=r.bookType=="xlsb"?"bin":"xml",n=D1.indexOf(r.bookType)>-1,i=c1();cc(r=r||{});var a=Yf(),s="",o=0;if(r.cellXfs=[],_a(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Lt(a,s,p1(e.Props,r)),i.coreprops.push(s),Xt(r.rels,2,s,Mt.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,Lt(a,s,m1(e.Props)),i.extprops.push(s),Xt(r.rels,3,s,Mt.EXT_PROPS),e.Custprops!==e.Props&&Yr(e.Custprops||{}).length>0&&(s="docProps/custom.xml",Lt(a,s,x1(e.Custprops)),i.custprops.push(s),Xt(r.rels,4,s,Mt.CUST_PROPS)),o=1;o<=e.SheetNames.length;++o){var h={"!id":{}},p=e.Sheets[e.SheetNames[o-1]],g=(p||{})["!type"]||"sheet";switch(g){case"chart":default:s="xl/worksheets/sheet"+o+"."+t,Lt(a,s,iw(o-1,s,r,e,h)),i.sheets.push(s),Xt(r.wbrels,-1,"worksheets/sheet"+o+"."+t,Mt.WS[0])}if(p){var u=p["!comments"],v=!1,m="";u&&u.length>0&&(m="xl/comments"+o+"."+t,Lt(a,m,ow(u,m)),i.comments.push(m),Xt(h,-1,"../comments"+o+"."+t,Mt.CMNT),v=!0),p["!legacy"]&&v&&Lt(a,"xl/drawings/vmlDrawing"+o+".vml",I1(o,p["!comments"])),delete p["!comments"],delete p["!legacy"]}h["!id"].rId1&&Lt(a,h1(s),Cs(h))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,Lt(a,s,sw(r.Strings,s,r)),i.strs.push(s),Xt(r.wbrels,-1,"sharedStrings."+t,Mt.SST)),s="xl/workbook."+t,Lt(a,s,nw(e,s)),i.workbooks.push(s),Xt(r.rels,1,s,Mt.WB),s="xl/theme/theme1.xml",Lt(a,s,k1(e.Themes,r)),i.themes.push(s),Xt(r.wbrels,-1,"theme/theme1.xml",Mt.THEME),s="xl/styles."+t,Lt(a,s,aw(e,s,r)),i.styles.push(s),Xt(r.wbrels,-1,"styles."+t,Mt.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Lt(a,s,e.vbaraw),i.vba.push(s),Xt(r.wbrels,-1,"vbaProject.bin",Mt.VBA)),s="xl/metadata."+t,Lt(a,s,lw(s)),i.metadata.push(s),Xt(r.wbrels,-1,"metadata."+t,Mt.XLMETA),Lt(a,"[Content_Types].xml",u1(i,r)),Lt(a,"_rels/.rels",Cs(r.rels)),Lt(a,"xl/_rels/workbook."+t+".rels",Cs(r.wbrels)),delete r.revssf,delete r.ssf,a}function r3(e,r){Es=1024,e&&!e.SSF&&(e.SSF=_n(gr)),e&&e.SSF&&(xl(),ml(e.SSF),r.revssf=vl(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Po?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t="xml",n=D1.indexOf(r.bookType)>-1,i=c1();cc(r=r||{});var a=Yf(),s="",o=0;if(r.cellXfs=[],_a(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Lt(a,s,p1(e.Props,r)),i.coreprops.push(s),Xt(r.rels,2,s,Mt.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,Lt(a,s,m1(e.Props)),i.extprops.push(s),Xt(r.rels,3,s,Mt.EXT_PROPS),e.Custprops!==e.Props&&Yr(e.Custprops||{}).length>0&&(s="docProps/custom.xml",Lt(a,s,x1(e.Custprops)),i.custprops.push(s),Xt(r.rels,4,s,Mt.CUST_PROPS));var h=["SheetJ5"];for(r.tcid=0,o=1;o<=e.SheetNames.length;++o){var p={"!id":{}},g=e.Sheets[e.SheetNames[o-1]],u=(g||{})["!type"]||"sheet";switch(u){case"chart":default:s="xl/worksheets/sheet"+o+"."+t,Lt(a,s,q1(o-1,r,e,p)),i.sheets.push(s),Xt(r.wbrels,-1,"worksheets/sheet"+o+"."+t,Mt.WS[0])}if(g){var v=g["!comments"],m=!1,y="";if(v&&v.length>0){var _=!1;v.forEach(function(S){S[1].forEach(function(A){A.T==!0&&(_=!0)})}),_&&(y="xl/threadedComments/threadedComment"+o+"."+t,Lt(a,y,Im(v,h,r)),i.threadedcomments.push(y),Xt(p,-1,"../threadedComments/threadedComment"+o+"."+t,Mt.TCMNT)),y="xl/comments"+o+"."+t,Lt(a,y,O1(v)),i.comments.push(y),Xt(p,-1,"../comments"+o+"."+t,Mt.CMNT),m=!0}g["!legacy"]&&m&&Lt(a,"xl/drawings/vmlDrawing"+o+".vml",I1(o,g["!comments"])),delete g["!comments"],delete g["!legacy"]}p["!id"].rId1&&Lt(a,h1(s),Cs(p))}return r.Strings!=null&&r.Strings.length>0&&(s="xl/sharedStrings."+t,Lt(a,s,N1(r.Strings,r)),i.strs.push(s),Xt(r.wbrels,-1,"sharedStrings."+t,Mt.SST)),s="xl/workbook."+t,Lt(a,s,X1(e)),i.workbooks.push(s),Xt(r.rels,1,s,Mt.WB),s="xl/theme/theme1.xml",Lt(a,s,k1(e.Themes,r)),i.themes.push(s),Xt(r.wbrels,-1,"theme/theme1.xml",Mt.THEME),s="xl/styles."+t,Lt(a,s,F1(e,r)),i.styles.push(s),Xt(r.wbrels,-1,"styles."+t,Mt.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Lt(a,s,e.vbaraw),i.vba.push(s),Xt(r.wbrels,-1,"vbaProject.bin",Mt.VBA)),s="xl/metadata."+t,Lt(a,s,P1()),i.metadata.push(s),Xt(r.wbrels,-1,"metadata."+t,Mt.XLMETA),h.length>1&&(s="xl/persons/person.xml",Lt(a,s,Om(h)),i.people.push(s),Xt(r.wbrels,-1,"persons/person.xml",Mt.PEOPLE)),Lt(a,"[Content_Types].xml",u1(i,r)),Lt(a,"_rels/.rels",Cs(r.rels)),Lt(a,"xl/_rels/workbook."+t+".rels",Cs(r.wbrels)),delete r.revssf,delete r.ssf,a}function n3(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=qi(e.slice(0,12));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function ed(e,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return qo(r.file,Zt.write(e,{type:Ut?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return Zt.write(e,r)}function i3(e,r){var t=_n(r||{}),n=e3(e,t);return a3(n,t)}function a3(e,r){var t={},n=Ut?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(r.compression&&(t.compression="DEFLATE"),r.password)t.type=n;else switch(r.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":case"file":t.type=n;break;default:throw new Error("Unrecognized type "+r.type)}var i=e.FullPaths?Zt.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!r.compression}):e.generate(t);if(typeof Deno<"u"&&typeof i=="string"){if(r.type=="binary"||r.type=="base64")return i;i=new Uint8Array(gl(i))}return r.password&&typeof encrypt_agile<"u"?ed(encrypt_agile(i,r.password),r):r.type==="file"?qo(r.file,i):r.type=="string"?Lo(i):i}function s3(e,r){var t=r||{},n=_w(e,t);return ed(n,t)}function Si(e,r,t){t||(t="");var n=t+e;switch(r.type){case"base64":return Ro(Mo(n));case"binary":return Mo(n);case"string":return e;case"file":return qo(r.file,n,"utf8");case"buffer":return Ut?Vi(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Si(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function o3(e,r){switch(r.type){case"base64":return Ro(e);case"binary":return e;case"string":return e;case"file":return qo(r.file,e,"binary");case"buffer":return Ut?Vi(e,"binary"):e.split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function X0(e,r){switch(r.type){case"string":case"base64":case"binary":for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return r.type=="base64"?Ro(t):r.type=="string"?Lo(t):t;case"file":return qo(r.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+r.type)}}function td(e,r){Dp(),V4(e);var t=_n(r||{});if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),t.type=="array"){t.type="binary";var n=td(e,t);return t.type="array",gl(n)}var i=0;if(t.sheet&&(typeof t.sheet=="number"?i=t.sheet:i=e.SheetNames.indexOf(t.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+t.sheet+" : "+typeof t.sheet);switch(t.bookType||"xlsb"){case"xml":case"xlml":return Si(yw(e,t),t);case"slk":case"sylk":return Si(Hg.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"htm":case"html":return Si(K1(e.Sheets[e.SheetNames[i]],t),t);case"txt":return o3(nd(e.Sheets[e.SheetNames[i]],t),t);case"csv":return Si(uc(e.Sheets[e.SheetNames[i]],t),t,"\uFEFF");case"dif":return Si(qg.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"dbf":return X0(Wg.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"prn":return Si(Gg.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"rtf":return Si(Zg.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"eth":return Si(A1.from_sheet(e.Sheets[e.SheetNames[i]],t),t);case"fods":return Si(Q1(e,t),t);case"wk1":return X0(zu.sheet_to_wk1(e.Sheets[e.SheetNames[i]],t),t);case"wk3":return X0(zu.book_to_wk3(e,t),t);case"biff2":t.biff||(t.biff=2);case"biff3":t.biff||(t.biff=3);case"biff4":return t.biff||(t.biff=4),X0($1(e,t),t);case"biff5":t.biff||(t.biff=5);case"biff8":case"xla":case"xls":return t.biff||(t.biff=8),s3(e,t);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return i3(e,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|")}}function l3(e){if(!e.bookType){var r={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(e.bookType=t.slice(1)),e.bookType=r[e.bookType]||e.bookType}}function rd(e,r,t){var n={};return n.type="file",n.file=r,l3(n),td(e,n)}function f3(e,r,t,n,i,a,s,o){var l=Xr(t),c=o.defval,h=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),p=!0,g=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(g,"__rowNum__",{value:t,enumerable:!1})}catch{g.__rowNum__=t}else g.__rowNum__=t;if(!s||e[t])for(var u=r.s.c;u<=r.e.c;++u){var v=s?e[t][u]:e[n[u]+l];if(v===void 0||v.t===void 0){if(c===void 0)continue;a[u]!=null&&(g[a[u]]=c);continue}var m=v.v;switch(v.t){case"z":if(m==null)break;continue;case"e":m=m==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+v.t)}if(a[u]!=null){if(m==null)if(v.t=="e"&&m===null)g[a[u]]=null;else if(c!==void 0)g[a[u]]=c;else if(h&&m===null)g[a[u]]=null;else continue;else g[a[u]]=h&&(v.t!=="n"||v.t==="n"&&o.rawNumbers!==!1)?m:Gi(v,m,o);m!=null&&(p=!1)}}return{row:g,isempty:p}}function ul(e,r){if(e==null||e["!ref"]==null)return[];var t={t:"n",v:0},n=0,i=1,a=[],s=0,o="",l={s:{r:0,c:0},e:{r:0,c:0}},c=r||{},h=c.range!=null?c.range:e["!ref"];switch(c.header===1?n=1:c.header==="A"?n=2:Array.isArray(c.header)?n=3:c.header==null&&(n=0),typeof h){case"string":l=lr(h);break;case"number":l=lr(e["!ref"]),l.s.r=h;break;default:l=h}n>0&&(i=0);var p=Xr(l.s.r),g=[],u=[],v=0,m=0,y=Array.isArray(e),_=l.s.r,S=0,A={};y&&!e[_]&&(e[_]=[]);var P=c.skipHidden&&e["!cols"]||[],z=c.skipHidden&&e["!rows"]||[];for(S=l.s.c;S<=l.e.c;++S)if(!(P[S]||{}).hidden)switch(g[S]=nn(S),t=y?e[_][S]:e[g[S]+p],n){case 1:a[S]=S-l.s.c;break;case 2:a[S]=g[S];break;case 3:a[S]=c.header[S-l.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),o=s=Gi(t,null,c),m=A[s]||0,!m)A[s]=1;else{do o=s+"_"+m++;while(A[o]);A[s]=m,A[o]=1}a[S]=o}for(_=l.s.r+i;_<=l.e.r;++_)if(!(z[_]||{}).hidden){var G=f3(e,l,_,g,n,a,y,c);(G.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(u[v++]=G.row)}return u.length=v,u}var $u=/"/g;function c3(e,r,t,n,i,a,s,o){for(var l=!0,c=[],h="",p=Xr(t),g=r.s.c;g<=r.e.c;++g)if(n[g]){var u=o.dense?(e[t]||[])[g]:e[n[g]+p];if(u==null)h="";else if(u.v!=null){l=!1,h=""+(o.rawNumbers&&u.t=="n"?u.v:Gi(u,null,o));for(var v=0,m=0;v!==h.length;++v)if((m=h.charCodeAt(v))===i||m===a||m===34||o.forceQuotes){h='"'+h.replace($u,'""')+'"';break}h=="ID"&&(h='"ID"')}else u.f!=null&&!u.F?(l=!1,h="="+u.f,h.indexOf(",")>=0&&(h='"'+h.replace($u,'""')+'"')):h="";c.push(h)}return o.blankrows===!1&&l?null:c.join(s)}function uc(e,r){var t=[],n=r??{};if(e==null||e["!ref"]==null)return"";var i=lr(e["!ref"]),a=n.FS!==void 0?n.FS:",",s=a.charCodeAt(0),o=n.RS!==void 0?n.RS:`
346
+ `,l=o.charCodeAt(0),c=new RegExp((a=="|"?"\\|":a)+"+$"),h="",p=[];n.dense=Array.isArray(e);for(var g=n.skipHidden&&e["!cols"]||[],u=n.skipHidden&&e["!rows"]||[],v=i.s.c;v<=i.e.c;++v)(g[v]||{}).hidden||(p[v]=nn(v));for(var m=0,y=i.s.r;y<=i.e.r;++y)(u[y]||{}).hidden||(h=c3(e,i,y,p,s,l,a,n),h!=null&&(n.strip&&(h=h.replace(c,"")),(h||n.blankrows!==!1)&&t.push((m++?o:"")+h)));return delete n.dense,t.join("")}function nd(e,r){r||(r={}),r.FS=" ",r.RS=`
347
+ `;var t=uc(e,r);return t}function u3(e){var r="",t,n="";if(e==null||e["!ref"]==null)return[];var i=lr(e["!ref"]),a="",s=[],o,l=[],c=Array.isArray(e);for(o=i.s.c;o<=i.e.c;++o)s[o]=nn(o);for(var h=i.s.r;h<=i.e.r;++h)for(a=Xr(h),o=i.s.c;o<=i.e.c;++o)if(r=s[o]+a,t=c?(e[h]||[])[o]:e[r],n="",t!==void 0){if(t.F!=null){if(r=t.F,!t.f)continue;n=t.f,r.indexOf(":")==-1&&(r=r+":"+r)}if(t.f!=null)n=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)n=""+t.v;else if(t.t=="b")n=t.v?"TRUE":"FALSE";else if(t.w!==void 0)n="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?n="'"+t.v:n=""+t.v}}l[l.length]=r+"="+n}return l}function id(e,r,t){var n=t||{},i=+!n.skipHeader,a=e||{},s=0,o=0;if(a&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?Br(n.origin):n.origin;s=l.r,o=l.c}var c,h={s:{c:0,r:0},e:{c:o,r:s+r.length-1+i}};if(a["!ref"]){var p=lr(a["!ref"]);h.e.c=Math.max(h.e.c,p.e.c),h.e.r=Math.max(h.e.r,p.e.r),s==-1&&(s=p.e.r+1,h.e.r=s+r.length-1+i)}else s==-1&&(s=0,h.e.r=r.length-1+i);var g=n.header||[],u=0;r.forEach(function(m,y){Yr(m).forEach(function(_){(u=g.indexOf(_))==-1&&(g[u=g.length]=_);var S=m[_],A="z",P="",z=$t({c:o+u,r:s+y+i});c=zo(a,z),S&&typeof S=="object"&&!(S instanceof Date)?a[z]=S:(typeof S=="number"?A="n":typeof S=="boolean"?A="b":typeof S=="string"?A="s":S instanceof Date?(A="d",n.cellDates||(A="n",S=bn(S)),P=n.dateNF||gr[14]):S===null&&n.nullError&&(A="e",S=0),c?(c.t=A,c.v=S,delete c.w,delete c.R,P&&(c.z=P)):a[z]=c={t:A,v:S},P&&(c.z=P))})}),h.e.c=Math.max(h.e.c,o+g.length-1);var v=Xr(s);if(i)for(u=0;u<g.length;++u)a[nn(u+o)+v]={t:"s",v:g[u]};return a["!ref"]=Lr(h),a}function h3(e,r){return id(null,e,r)}function zo(e,r,t){if(typeof r=="string"){if(Array.isArray(e)){var n=Br(r);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[r]||(e[r]={t:"z"})}return typeof r!="number"?zo(e,$t(r)):zo(e,$t({r,c:t||0}))}function d3(e,r){if(typeof r=="number"){if(r>=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}function p3(){return{SheetNames:[],Sheets:{}}}function g3(e,r,t,n){var i=1;if(!t)for(;i<=65535&&e.SheetNames.indexOf(t="Sheet"+i)!=-1;++i,t=void 0);if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(t)>=0){var a=t.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||t;for(++i;i<=65535&&e.SheetNames.indexOf(t=s+i)!=-1;++i);}if(V1(t),e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return e.SheetNames.push(t),e.Sheets[t]=r,t}function m3(e,r,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=d3(e,r);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}e.Workbook.Sheets[n].Hidden=t}function x3(e,r){return e.z=r,e}function ad(e,r,t){return r?(e.l={Target:r},t&&(e.l.Tooltip=t)):delete e.l,e}function v3(e,r,t){return ad(e,"#"+r,t)}function w3(e,r,t){e.c||(e.c=[]),e.c.push({t:r,a:t||"SheetJS"})}function y3(e,r,t,n){for(var i=typeof r!="string"?r:lr(r),a=typeof r=="string"?r:Lr(r),s=i.s.r;s<=i.e.r;++s)for(var o=i.s.c;o<=i.e.c;++o){var l=zo(e,s,o);l.t="n",l.F=a,delete l.v,s==i.s.r&&o==i.s.c&&(l.f=t,n&&(l.D=!0))}return e}var Is={encode_col:nn,encode_row:Xr,encode_cell:$t,encode_range:Lr,decode_col:ec,decode_row:Qf,split_cell:D5,decode_cell:Br,decode_range:Rn,format_cell:Gi,sheet_add_aoa:i1,sheet_add_json:id,sheet_add_dom:J1,aoa_to_sheet:js,json_to_sheet:h3,table_to_sheet:Z1,table_to_book:qw,sheet_to_csv:uc,sheet_to_txt:nd,sheet_to_json:ul,sheet_to_html:K1,sheet_to_formulae:u3,sheet_to_row_object_array:ul,sheet_get_cell:zo,book_new:p3,book_append_sheet:g3,book_set_sheet_visibility:m3,cell_set_number_format:x3,cell_set_hyperlink:ad,cell_set_internal_link:v3,cell_add_comment:w3,sheet_set_array_formula:y3,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function b3(e,r,t,n="Sheet1"){const i=[r,...t],a=Is.aoa_to_sheet(i),s=Is.book_new();Is.book_append_sheet(s,a,n),rd(s,`${e}.xlsx`)}function _3(e,r){const t=Is.book_new();r.forEach(({name:n,headers:i,rows:a})=>{const s=[i,...a],o=Is.aoa_to_sheet(s);Is.book_append_sheet(t,o,n)}),rd(t,`${e}.xlsx`)}function S3(e,r){const[t,n]=nt.useState(()=>{try{const a=window.localStorage.getItem(e);return a?JSON.parse(a):r}catch{return r}}),i=nt.useCallback(a=>{const s=a instanceof Function?a(t):a;n(s);try{window.localStorage.setItem(e,JSON.stringify(s))}catch{}},[e,t]);return[t,i]}function A3(e){nt.useEffect(()=>{const r=t=>{e.forEach(({key:n,ctrl:i,meta:a,shift:s,handler:o})=>{const l=t.key.toLowerCase()===n.toLowerCase(),c=i?t.ctrlKey||t.metaKey:!0,h=s?t.shiftKey:!0;l&&c&&h&&(t.preventDefault(),o())})};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e])}function N3(e,r={}){const t=`form-draft-${e}`,[n,i]=nt.useState(()=>{try{return!!localStorage.getItem(t)}catch{return!1}}),a=nt.useCallback(l=>{try{localStorage.setItem(t,JSON.stringify({data:l,savedAt:Date.now()})),i(!0)}catch{}},[t]),s=nt.useCallback(()=>{try{const l=localStorage.getItem(t);if(!l)return null;const c=JSON.parse(l);return Date.now()-c.savedAt>1440*60*1e3?(localStorage.removeItem(t),i(!1),null):c.data}catch{return null}},[t]),o=nt.useCallback(()=>{try{localStorage.removeItem(t)}catch{}i(!1)},[t]);return{hasDraft:n,saveDraft:a,loadDraft:s,clearDraft:o}}const Af="recently-viewed",T3=8;function E3(){const[e,r]=nt.useState(()=>{try{return JSON.parse(localStorage.getItem(Af))||[]}catch{return[]}}),t=nt.useCallback(i=>{r(a=>{const s=a.filter(l=>l.id!==i.id||l.type!==i.type),o=[{...i,viewedAt:Date.now()},...s].slice(0,T3);try{localStorage.setItem(Af,JSON.stringify(o))}catch{}return o})},[]),n=nt.useCallback(()=>{r([]);try{localStorage.removeItem(Af)}catch{}},[]);return{items:e,addItem:t,clearAll:n}}function L3(e="tab",r=0){const t=()=>{try{const o=new URLSearchParams(window.location.search).get(e);return o!=null?Number(o):r}catch{return r}},[n,i]=nt.useState(t),a=nt.useCallback(s=>{i(s);try{const o=new URL(window.location.href);s===0?o.searchParams.delete(e):o.searchParams.set(e,String(s)),window.history.replaceState({},"",o.toString())}catch{}},[e]);return[n,a]}function F3(e,r=null){const[t,n]=nt.useState(r);return{sortedData:nt.useMemo(()=>{if(!t||!e)return e||[];const{key:s,direction:o}=t;return[...e].sort((l,c)=>{const h=l[s]??"",p=c[s]??"";return h<p?o==="asc"?-1:1:h>p?o==="asc"?1:-1:0})},[e,t]),sortConfig:t,requestSort:s=>{n(o=>{if((o==null?void 0:o.key)===s){if(o.direction==="asc")return{key:s,direction:"desc"};if(o.direction==="desc")return null}return{key:s,direction:"asc"}})}}}function C3(e=20){const[r,t]=nt.useState(0),[n,i]=nt.useState(e),a=nt.useCallback(()=>t(0),[]),s={page:r+1,page_size:n};return{page:r,pageSize:n,setPage:t,setPageSize:i,params:s,reset:a}}const k3={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"},P3={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 Wo({children:e,variant:r="primary",size:t="md",icon:n,loading:i,disabled:a,className:s,...o}){return F.jsxs("button",{disabled:a||i,className:Ft("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",k3[r],P3[t],s),...o,children:[i?F.jsx(ft.Loader2,{size:16,className:"animate-spin"}):n&&F.jsx(n,{size:16}),e]})}function I3({children:e,className:r,hover:t=!1,interactive:n=!1,...i}){return F.jsx("div",{className:Ft("bg-white rounded-xl shadow-soft border border-slate-100 p-6 transition-all duration-200",t&&"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",r),...i,children:e})}function O3({children:e,className:r}){return F.jsx("div",{className:Ft("pb-4 mb-4 border-b border-slate-200",r),children:e})}function D3({children:e,className:r}){return F.jsx("div",{className:Ft(r),children:e})}function R3({children:e,className:r}){return F.jsx("h3",{className:Ft("text-lg font-semibold text-slate-900",r),children:e})}const j3={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"},M3={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 B3({children:e,variant:r,status:t,className:n}){const i=r||M3[t||e]||"neutral";return F.jsx("span",{className:Ft("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium transition-colors",j3[i],n),children:e||t})}function U3({items:e,className:r}){return F.jsx("nav",{className:Ft("flex items-center gap-1 text-xs text-slate-500 mb-2",r),children:e.map((t,n)=>F.jsxs("span",{className:"flex items-center gap-1",children:[n>0&&F.jsx(ft.ChevronRight,{size:12,className:"text-slate-400"}),t.href?F.jsx("a",{href:t.href,className:"hover:text-primary-600 transition-colors duration-150",children:t.label}):F.jsx("span",{className:"text-slate-800 font-medium",children:t.label})]},n))})}function sd({label:e,error:r,icon:t,className:n,...i}){return F.jsxs("div",{className:"space-y-1.5",children:[e&&F.jsx("label",{className:"text-sm font-medium text-slate-700",children:e}),F.jsxs("div",{className:"relative",children:[t&&F.jsx(t,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),F.jsx("input",{className:Ft("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",t&&"pl-9",r&&"border-danger-500 focus:ring-danger-500",n),...i})]}),r&&F.jsx("p",{className:"text-xs text-danger-500",children:r})]})}function z3({value:e,onChange:r,placeholder:t="Search...",className:n}){return F.jsx(sd,{icon:ft.Search,value:e,onChange:i=>r(i.target.value),placeholder:t,className:n})}function W3({label:e,options:r=[],value:t,onChange:n,placeholder:i="Select...",error:a,className:s,...o}){return F.jsxs("div",{className:"space-y-1.5",children:[e&&F.jsx("label",{className:"text-sm font-medium text-slate-700",children:e}),F.jsxs("div",{className:"relative",children:[F.jsxs("select",{value:t,onChange:l=>n(l.target.value),className:Ft("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",s),...o,children:[F.jsx("option",{value:"",children:i}),r.map(l=>F.jsx("option",{value:l.value??l,children:l.label??l},l.value??l))]}),F.jsx(ft.ChevronDown,{size:16,className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"})]}),a&&F.jsx("p",{className:"text-xs text-danger-500",children:a})]})}const H3={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl"};function hc({open:e,onClose:r,title:t,children:n,footer:i,size:a="md"}){const s=nt.useRef(null),o=nt.useRef(null),l=nt.useCallback(h=>{var p,g,u;if(h.key==="Escape"&&(h.stopPropagation(),r()),h.key==="Enter"&&i&&s.current){const m=((g=(p=document.activeElement)==null?void 0:p.tagName)==null?void 0:g.toLowerCase())==="textarea",y=((u=document.activeElement)==null?void 0:u.getAttribute("contenteditable"))==="true";if(!m&&!y){const _=s.current.querySelectorAll('.flex.items-center.justify-end button, [class*="justify-end"] button'),S=_.length>0?_[_.length-1]:null;S&&!S.disabled&&(h.preventDefault(),S.click())}}if(h.key==="Tab"&&s.current){const v=s.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(v.length===0)return;const m=v[0],y=v[v.length-1];h.shiftKey&&document.activeElement===m?(h.preventDefault(),y.focus()):!h.shiftKey&&document.activeElement===y&&(h.preventDefault(),m.focus())}},[r,i]),c=nt.useRef(!1);return nt.useEffect(()=>{if(!e){c.current=!1;return}return document.body.style.overflow="hidden",document.addEventListener("keydown",l),()=>{document.body.style.overflow="",document.removeEventListener("keydown",l)}},[e,l]),nt.useEffect(()=>{if(!(!e||c.current))return c.current=!0,o.current=document.activeElement,setTimeout(()=>{var p;const h=(p=s.current)==null?void 0:p.querySelectorAll('input, textarea, select, [tabindex]:not([tabindex="-1"])');h!=null&&h.length&&h[0].focus()},50),()=>{var h;(h=o.current)==null||h.focus()}},[e]),e?F.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",role:"presentation",children:[F.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-[2px] animate-fade-in-up",style:{animationDuration:"0.15s"},onClick:r,"aria-hidden":"true"}),F.jsxs("div",{ref:s,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",className:Ft("relative bg-white rounded-xl shadow-2xl w-full animate-fade-in-up",H3[a]),children:[F.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-200",children:[F.jsx("h2",{id:"modal-title",className:"text-lg font-semibold text-slate-900",children:t}),F.jsx("button",{onClick:r,"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:F.jsx(ft.X,{size:16,className:"text-slate-500"})})]}),F.jsx("div",{className:"px-6 py-4",children:n}),i&&F.jsx("div",{className:"flex items-center justify-end gap-3 px-6 py-4 border-t border-slate-200",children:i})]})]}):null}function q3({columns:e=[],rows:r,data:t,page:n,totalPages:i,totalCount:a,pageSize:s,onPageChange:o,emptyMessage:l="No data found",className:c}){const h=r||t||[],p=e.map(u=>({key:u.key||u.header||u.label||"",label:u.label||u.header||u.key||"",align:u.align,render:u.render||(typeof u.accessor=="function"?u.accessor:void 0),accessor:typeof u.accessor=="string"?u.accessor:void 0})),g=(u,v)=>v.render?v.render(u):v.accessor?u[v.accessor]:v.key&&u[v.key]!==void 0?u[v.key]:"";return F.jsxs("div",{className:Ft("overflow-x-auto rounded-xl border border-slate-200 bg-white",c),children:[F.jsxs("table",{className:"w-full text-sm",children:[F.jsx("thead",{children:F.jsx("tr",{className:"bg-slate-50 border-b border-slate-200",children:p.map((u,v)=>F.jsx("th",{className:Ft("px-4 py-3 text-xs font-semibold text-slate-500 uppercase tracking-wider text-left",u.align==="center"&&"text-center",u.align==="right"&&"text-right"),children:u.label},u.key||v))})}),F.jsx("tbody",{className:"divide-y divide-slate-100",children:h.length===0?F.jsx("tr",{children:F.jsx("td",{colSpan:p.length,className:"px-4 py-12 text-center text-slate-400",children:l})}):h.map((u,v)=>F.jsx("tr",{className:"hover:bg-primary-50/40 transition-colors duration-150",children:p.map((m,y)=>F.jsx("td",{className:Ft("px-4 py-3 text-slate-600",m.align==="center"&&"text-center",m.align==="right"&&"text-right"),children:g(u,m)},m.key||y))},u.id||v))})]}),i>1&&o&&F.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-t border-slate-200 bg-slate-50",children:[F.jsx("span",{className:"text-xs text-slate-500",children:a!=null?`Showing ${(n||0)*(s||h.length)+1}–${Math.min(((n||0)+1)*(s||h.length),a)} of ${a}`:`Page ${(n||0)+1} of ${i}`}),F.jsxs("div",{className:"flex gap-1",children:[F.jsx("button",{onClick:()=>o(n-1),disabled:!n,className:"p-1.5 rounded-lg hover:bg-slate-200 disabled:opacity-30 transition-colors duration-150",children:F.jsx(ft.ChevronLeft,{size:16})}),F.jsx("button",{onClick:()=>o(n+1),disabled:n>=i-1,className:"p-1.5 rounded-lg hover:bg-slate-200 disabled:opacity-30 transition-colors duration-150",children:F.jsx(ft.ChevronRight,{size:16})})]})]})]})}function G3({items:e,brand:r,user:t,collapsed:n,onToggle:i,onLogout:a,onSettings:s}){const o=za.useLocation();e.findIndex(v=>o.pathname.startsWith(v.path)),nt.useEffect(()=>{const v=o.pathname,m=e.find(y=>v.startsWith(y.path));if(m)try{const y=JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]"),_=[m.path,...y.filter(S=>S!==m.path)].slice(0,5);sessionStorage.setItem("sidebar-recent",JSON.stringify(_))}catch{}},[o.pathname,e]);const[l,c]=nt.useState(!1);nt.useEffect(()=>{const v=setTimeout(()=>c(!0),50);return()=>clearTimeout(v)},[]);const h=e.some(v=>v.group),p=h?e.reduce((v,m)=>{const y=m.group||"Other";return v[y]||(v[y]=[]),v[y].push(m),v},{}):null,g=(v,m)=>{const y=v.icon;return F.jsxs(za.NavLink,{to:v.path,onClick:()=>navigate(v.path),style:{animationDelay:`${m*50}ms`,animationFillMode:"forwards"},className:({isActive:_})=>Ft("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",_?"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:[y&&F.jsx(y,{size:20,className:Ft("flex-shrink-0 transition-all duration-200",o.pathname.startsWith(v.path)&&"drop-shadow-[0_0_6px_rgba(255,255,255,0.5)]")}),F.jsx("span",{className:Ft("truncate transition-all duration-200 overflow-hidden whitespace-nowrap",n?"w-0 opacity-0":"w-auto opacity-100"),style:{transitionDelay:n?"0ms":"100ms"},children:v.label}),n&&F.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:v.label})]},v.path)},u=()=>{if(h&&p){let v=0;return Object.entries(p).map(([m,y])=>F.jsxs("div",{children:[!n&&F.jsx("p",{className:"text-[10px] uppercase tracking-wider text-slate-500 px-3 pt-4 pb-1 font-semibold",children:m}),y.map(_=>{const S=v;return v++,g(_,S)})]},m))}return e.map((v,m)=>g(v,m))};return F.jsxs(F.Fragment,{children:[F.jsxs("aside",{className:Ft("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:[F.jsxs("div",{className:"flex items-center justify-between px-4 h-[72px]",children:[!n&&F.jsxs("div",{className:"flex flex-col",children:[F.jsx("span",{className:"text-lg font-bold tracking-tight",children:r}),F.jsx("span",{className:"text-[10px] text-slate-400 font-medium tracking-wide uppercase",children:"Admin Portal"})]}),F.jsx("button",{onClick:i,className:"p-1.5 rounded-lg hover:bg-white/10 transition-all duration-200",children:F.jsx("span",{className:Ft("block transition-transform duration-200",n&&"rotate-180"),children:n?F.jsx(ft.PanelLeft,{size:18}):F.jsx(ft.PanelLeftClose,{size:18})})})]}),F.jsx("div",{className:"mx-4 h-px bg-gradient-to-r from-transparent via-slate-600/50 to-transparent"}),t&&F.jsx("div",{className:Ft("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:()=>{s&&s()},children:F.jsxs("div",{className:"flex items-center gap-3",children:[F.jsxs("div",{className:"relative flex-shrink-0",children:[F.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:(t.name||"").slice(0,2).toUpperCase()}),F.jsx("span",{className:"absolute bottom-0 right-0 w-3 h-3 bg-emerald-400 border-2 border-slate-900 rounded-full"})]}),!n&&F.jsxs("div",{className:"overflow-hidden",children:[F.jsx("p",{className:"text-sm font-semibold truncate",children:t.name}),F.jsx("p",{className:"text-xs text-slate-400 truncate",children:t.email}),t.role&&F.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:t.role})]})]})}),F.jsx("div",{className:"mx-4 h-px bg-gradient-to-r from-transparent via-slate-600/50 to-transparent"}),F.jsx("nav",{className:"relative flex-1 overflow-y-auto py-4 px-2 space-y-1.5",children:u()}),a&&F.jsx("div",{className:"px-2 py-4 mt-2 border-t border-slate-700/30",children:F.jsxs("button",{onClick:a,className:Ft("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:[F.jsx(ft.LogOut,{size:20}),!n&&F.jsx("span",{children:"Logout"}),n&&F.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"})]})})]}),F.jsx(V3,{items:e,onLogout:a})]})}function V3({items:e,onLogout:r}){const[t,n]=nt.useState(!1),i=e.slice(0,4),a=e.slice(4);return F.jsxs(F.Fragment,{children:[F.jsx("nav",{className:"fixed bottom-0 left-0 right-0 z-40 bg-white border-t border-slate-200 md:hidden",children:F.jsxs("div",{className:"flex items-center justify-around px-2 py-1.5",children:[i.map(s=>{const o=s.icon;return F.jsxs(za.NavLink,{to:s.path,className:({isActive:l})=>Ft("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:[o&&F.jsx(o,{size:20}),F.jsx("span",{className:"truncate",children:s.label.split(" ")[0]})]},s.path)}),a.length>0&&F.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:[F.jsx(ft.MoreHorizontal,{size:20}),F.jsx("span",{children:"More"})]})]})}),t&&F.jsxs("div",{className:"fixed inset-0 z-50 md:hidden",onClick:()=>n(!1),children:[F.jsx("div",{className:"fixed inset-0 bg-black/40"}),F.jsxs("div",{className:"fixed bottom-0 left-0 right-0 bg-white rounded-t-2xl p-4 animate-fade-in-up",children:[F.jsxs("div",{className:"flex items-center justify-between mb-4",children:[F.jsx("h3",{className:"text-sm font-semibold text-slate-900",children:"More Options"}),F.jsx("button",{onClick:()=>n(!1),className:"p-1.5 rounded-lg hover:bg-slate-100 transition-colors",children:F.jsx(ft.X,{size:16,className:"text-slate-500"})})]}),F.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[a.map(s=>{const o=s.icon;return F.jsxs(za.NavLink,{to:s.path,onClick:()=>n(!1),className:({isActive:l})=>Ft("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:[o&&F.jsx(o,{size:22}),F.jsx("span",{className:"text-center leading-tight",children:s.label})]},s.path)}),r&&F.jsxs("button",{onClick:()=>{n(!1),r()},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:[F.jsx(ft.LogOut,{size:22}),F.jsx("span",{children:"Logout"})]})]})]})]})]})}function X3({title:e,subtitle:r,user:t,notificationCount:n=0,onLogout:i,onProfile:a,onSettings:s,onChangePassword:o,navItems:l=[]}){const[c,h]=nt.useState(!1),p=nt.useRef(null),g=za.useNavigate(),u=(()=>{try{return JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]").slice(0,5)}catch{return[]}})();return nt.useEffect(()=>{const v=m=>{p.current&&!p.current.contains(m.target)&&h(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[]),F.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:[F.jsxs("div",{children:[F.jsx("h1",{className:"text-base font-semibold text-slate-900",children:e}),r&&F.jsx("p",{className:"text-xs text-slate-500",children:r})]}),F.jsxs("div",{className:"flex items-center gap-3",children:[F.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:[F.jsx(ft.Search,{size:14}),F.jsx("span",{children:"Search..."}),F.jsx("kbd",{className:"ml-4 text-[10px] bg-white border border-slate-200 px-1.5 py-0.5 rounded text-slate-400",children:"⌘K"})]}),F.jsxs("button",{className:"relative p-2 rounded-lg hover:bg-slate-100 transition-colors duration-150",children:[F.jsx(ft.Bell,{size:20,className:"text-slate-600"}),n>0&&F.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:n})]}),t&&F.jsxs("div",{ref:p,className:"relative",children:[F.jsxs("button",{onClick:()=>h(!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:[F.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:(t.name||"").slice(0,2).toUpperCase()}),F.jsxs("div",{className:"hidden sm:block text-left",children:[F.jsx("p",{className:"text-xs font-medium text-slate-900",children:t.name}),F.jsx("p",{className:"text-[10px] text-slate-500 capitalize",children:t.role})]}),F.jsx(ft.ChevronDown,{size:14,className:`text-slate-400 transition-transform duration-150 ${c?"rotate-180":""}`})]}),c&&F.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:[F.jsxs("div",{className:"px-4 py-3 border-b border-slate-100 bg-slate-50/50",children:[F.jsx("p",{className:"text-sm font-semibold text-slate-900",children:t.name}),F.jsx("p",{className:"text-xs text-slate-500 capitalize",children:t.role})]}),F.jsxs("div",{className:"py-1.5",children:[a&&F.jsxs("button",{onClick:()=>{h(!1),a()},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:[F.jsx(ft.User,{size:16,className:"text-slate-400"}),"My Profile"]}),s&&F.jsxs("button",{onClick:()=>{h(!1),s()},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-slate-700 hover:bg-slate-50 transition-colors duration-150",children:[F.jsx(ft.Settings,{size:16,className:"text-slate-400"}),"Settings"]}),o&&F.jsxs("button",{onClick:()=>{h(!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:[F.jsx(ft.KeyRound,{size:16,className:"text-slate-400"}),"Change Password"]}),u.length>0&&F.jsxs(F.Fragment,{children:[F.jsx("div",{className:"border-t border-slate-100 my-1"}),F.jsxs("div",{className:"px-4 py-2",children:[F.jsxs("p",{className:"text-[10px] uppercase tracking-wider text-slate-400 font-semibold flex items-center gap-1 mb-1.5",children:[F.jsx(ft.Clock,{size:10})," Recents"]}),u.map(v=>{const m=l.find(_=>_.path===v);if(!m)return null;const y=m.icon;return F.jsxs("button",{onClick:()=>{h(!1),g(v)},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&&F.jsx(y,{size:14,className:"text-slate-400"}),m.label]},v)})]})]}),i&&F.jsxs(F.Fragment,{children:[F.jsx("div",{className:"border-t border-slate-100 my-1"}),F.jsxs("button",{onClick:()=>{h(!1),i()},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:[F.jsx(ft.LogOut,{size:16,className:"text-red-400"}),"Logout"]})]})]})]})]})]})]})}function fn({className:e}){return F.jsx("div",{className:Ft("rounded-lg bg-gradient-to-r from-slate-200 via-slate-100 to-slate-200 bg-[length:200%_100%] animate-shimmer",e)})}function Y3(){return F.jsxs("div",{className:"bg-white rounded-xl shadow-soft border border-slate-100 p-6 space-y-3",children:[F.jsx(fn,{className:"h-4 w-1/3"}),F.jsx(fn,{className:"h-8 w-1/2"}),F.jsx(fn,{className:"h-3 w-2/3"})]})}function $3(){return F.jsxs("div",{className:"space-y-6",children:[F.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Array.from({length:4}).map((e,r)=>F.jsxs("div",{className:"bg-white rounded-xl border border-slate-100 p-5 flex items-center gap-4",children:[F.jsx(fn,{className:"w-11 h-11 rounded-xl"}),F.jsxs("div",{className:"space-y-2 flex-1",children:[F.jsx(fn,{className:"h-3 w-2/3"}),F.jsx(fn,{className:"h-6 w-1/2"})]})]},r))}),F.jsxs("div",{className:"bg-white rounded-xl border border-slate-100 p-5",children:[F.jsx(fn,{className:"h-4 w-1/4 mb-4"}),F.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:Array.from({length:4}).map((e,r)=>F.jsx(fn,{className:"h-20 rounded-xl"},r))})]}),F.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4",children:[F.jsxs("div",{className:"md:col-span-7 bg-white rounded-xl border border-slate-100 p-5",children:[F.jsx(fn,{className:"h-4 w-1/4 mb-4"}),F.jsx(fn,{className:"h-48 w-full"})]}),F.jsxs("div",{className:"md:col-span-5 bg-white rounded-xl border border-slate-100 p-5",children:[F.jsx(fn,{className:"h-4 w-1/3 mb-4"}),F.jsx(fn,{className:"h-48 w-full"})]})]})]})}function K3({rows:e=5,cols:r=4}){return F.jsxs("div",{className:"rounded-xl border border-slate-200 overflow-hidden",children:[F.jsx("div",{className:"flex gap-4 px-4 py-3 bg-slate-50 border-b border-slate-200",children:Array.from({length:r}).map((t,n)=>F.jsx(fn,{className:"h-3 flex-1"},n))}),Array.from({length:e}).map((t,n)=>F.jsx("div",{className:"flex gap-4 px-4 py-3 border-b border-slate-100 last:border-0",children:Array.from({length:r}).map((i,a)=>F.jsx(fn,{className:"h-3 flex-1"},a))},n))]})}function J3({children:e,user:r,allowedRoles:t,redirectTo:n="/login"}){return r?t&&!t.includes(r.role)?F.jsx(za.Navigate,{to:n,replace:!0}):e:F.jsx(za.Navigate,{to:n,replace:!0})}function Z3({activities:e=[],className:r}){return e.length===0?null:F.jsx("div",{className:Ft("space-y-1",r),children:e.map((t,n)=>F.jsxs("div",{className:"flex items-start gap-3 py-3 border-b border-surface-50 last:border-0",children:[F.jsx("div",{className:Ft("w-8 h-8 rounded flex items-center justify-center flex-shrink-0",t.bgColor||"bg-info-100"),children:t.icon||F.jsx(ft.Activity,{className:"w-3.5 h-3.5 text-info-600"})}),F.jsxs("div",{className:"flex-1 min-w-0",children:[F.jsx("p",{className:"text-sm font-medium text-surface-800 truncate",children:t.title}),F.jsx("p",{className:"text-xs text-surface-500",children:t.description})]}),F.jsxs("div",{className:"text-right flex-shrink-0",children:[F.jsx("p",{className:"text-2xs text-surface-400",children:t.time}),t.tag&&F.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:t.tag})]})]},n))})}const od=nt.createContext(null),Q3={success:ft.CheckCircle,error:ft.AlertCircle,warning:ft.AlertTriangle,info:ft.Info},ey={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"},ty={success:"border-l-emerald-500",error:"border-l-red-500",warning:"border-l-amber-500",info:"border-l-blue-500"};function ry({id:e,type:r="info",message:t,onRemove:n}){const i=Q3[r]||ft.Info,[a,s]=nt.useState(!1),[o,l]=nt.useState(100);nt.useEffect(()=>{const p=setInterval(()=>{l(u=>u<=0?(clearInterval(p),0):u-1)},50),g=setTimeout(()=>{s(!0),setTimeout(()=>n(e),300)},5e3);return()=>{clearInterval(p),clearTimeout(g)}},[e,n]);const c=()=>{s(!0),setTimeout(()=>n(e),300)};return F.jsxs("div",{className:`flex items-start gap-3 px-4 py-3.5 bg-white border border-slate-200 border-l-4 ${ty[r]} 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:[F.jsx("div",{className:`w-8 h-8 rounded-lg ${ey[r]} flex items-center justify-center flex-shrink-0`,children:F.jsx(i,{size:16})}),F.jsxs("div",{className:"flex-1 min-w-0",children:[F.jsx("p",{className:"text-sm font-medium text-slate-900",children:t}),F.jsx("div",{className:"w-full h-0.5 bg-slate-100 rounded-full mt-2 overflow-hidden",children:F.jsx("div",{className:`h-full rounded-full transition-all duration-100 ${r==="success"?"bg-emerald-400":r==="error"?"bg-red-400":r==="warning"?"bg-amber-400":"bg-blue-400"}`,style:{width:`${o}%`}})})]}),F.jsx("button",{onClick:c,className:"shrink-0 p-1 rounded-lg hover:bg-slate-100 transition-colors duration-150 mt-0.5",children:F.jsx(ft.X,{size:14,className:"text-slate-400"})})]})}function ny({id:e,message:r,onConfirm:t,onUndo:n,timeout:i=5e3,onRemove:a}){const[s,o]=nt.useState(i),[l,c]=nt.useState(!1),h=nt.useRef(!1);nt.useEffect(()=>{const g=setInterval(()=>{o(u=>u<=100?(clearInterval(g),h.current||(t(),c(!0),setTimeout(()=>a(e),300)),0):u-100)},100);return()=>clearInterval(g)},[e,t,a,i]);const p=()=>{h.current=!0,n(),c(!0),setTimeout(()=>a(e),300)};return F.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:[F.jsxs("div",{className:"flex-1 min-w-0",children:[F.jsx("p",{className:"text-sm font-medium",children:r}),F.jsx("div",{className:"w-full h-1 bg-slate-700 rounded-full mt-2 overflow-hidden",children:F.jsx("div",{className:"h-full bg-primary-400 rounded-full transition-all duration-100",style:{width:`${s/i*100}%`}})})]}),F.jsx("button",{onClick:p,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 iy({children:e}){const[r,t]=nt.useState([]),[n,i]=nt.useState([]),a=nt.useCallback((h,p="info")=>{const g=Date.now()+Math.random();t(u=>[...u,{id:g,message:h,type:p}])},[]),s=nt.useCallback(h=>{t(p=>p.filter(g=>g.id!==h))},[]),o=nt.useCallback((h,p,g,u=5e3)=>{const v=Date.now()+Math.random();i(m=>[...m,{id:v,message:h,onConfirm:p,onUndo:g,timeout:u}])},[]),l=nt.useCallback(h=>{i(p=>p.filter(g=>g.id!==h))},[]),c=nt.useMemo(()=>({success:h=>a(h,"success"),error:h=>a(h,"error"),warning:h=>a(h,"warning"),info:h=>a(h,"info"),undoable:(h,p,g,u)=>o(h,p,g,u)}),[a,o]);return F.jsxs(od.Provider,{value:c,children:[e,F.jsxs("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-3",children:[r.map(h=>F.jsx(ry,{...h,onRemove:s},h.id)),n.map(h=>F.jsx(ny,{...h,onRemove:l},h.id))]})]})}function ay(){const e=nt.useContext(od);if(!e)throw new Error("useToast must be used within ToastProvider");return e}function sy({open:e,onClose:r,onConfirm:t,title:n="Confirm Delete",message:i="Are you sure you want to delete this? This action cannot be undone.",confirmText:a="Delete",loading:s=!1}){return F.jsxs(hc,{open:e,onClose:r,title:n,size:"sm",children:[F.jsxs("div",{className:"flex flex-col items-center text-center py-2",children:[F.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mb-3",children:F.jsx(ft.AlertTriangle,{className:"w-6 h-6 text-red-600"})}),F.jsx("p",{className:"text-sm text-slate-600",children:i})]}),F.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[F.jsx(Wo,{variant:"ghost",onClick:r,children:"Cancel"}),F.jsx(Wo,{variant:"primary",onClick:t,disabled:s,className:"!bg-red-600 hover:!bg-red-700",children:s?"Deleting...":a})]})]})}function oy({value:e,onChange:r,options:t=[],onSearch:n,placeholder:i="Search...",labelKey:a="label",valueKey:s="value",renderOption:o,loading:l=!1,showSearch:c}){const[h,p]=nt.useState(!1),[g,u]=nt.useState(""),v=nt.useRef(null),m=nt.useRef(null),y=c===!0||c!==!1&&t.length>5,_=t.find(G=>G[s]===e);nt.useEffect(()=>{const G=L=>{v.current&&!v.current.contains(L.target)&&p(!1)};return document.addEventListener("mousedown",G),()=>document.removeEventListener("mousedown",G)},[]);const S=G=>{u(G),n&&(clearTimeout(m.current),m.current=setTimeout(()=>n(G),300))},A=G=>{r(G[s]),p(!1),u("")},P=G=>{G.stopPropagation(),r(""),u("")},z=g&&!n?t.filter(G=>(G[a]||"").toLowerCase().includes(g.toLowerCase())):t;return F.jsxs("div",{ref:v,className:"relative",children:[F.jsxs("div",{role:"combobox","aria-expanded":h,"aria-haspopup":"listbox",tabIndex:0,onClick:()=>p(!h),onKeyDown:G=>{(G.key==="Enter"||G.key===" ")&&(G.preventDefault(),p(!h)),G.key==="Escape"&&p(!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:[F.jsx("span",{className:_?"text-slate-800":"text-slate-400",children:_?o?o(_):_[a]:i}),F.jsxs("div",{className:"flex items-center gap-1",children:[e&&F.jsx("button",{onClick:P,"aria-label":"Clear selection",className:"p-0.5 hover:bg-slate-100 rounded transition-colors duration-150",children:F.jsx(ft.X,{size:12,className:"text-slate-400"})}),F.jsx(ft.ChevronDown,{size:16,className:`text-slate-400 transition-transform duration-150 ${h?"rotate-180":""}`})]})]}),h&&F.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:[y&&F.jsx("div",{className:"p-2 border-b border-slate-100",children:F.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:[F.jsx(ft.Search,{size:14,className:"text-slate-400"}),F.jsx("input",{autoFocus:!0,value:g,onChange:G=>S(G.target.value),onKeyDown:G=>{G.key==="Escape"&&p(!1)},placeholder:"Type to search...",className:"w-full text-sm outline-none","aria-label":"Search options"})]})}),F.jsxs("div",{className:"overflow-y-auto max-h-44",role:"listbox",children:[l&&F.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"Loading..."}),!l&&z.length===0&&F.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"No results found"}),z.map(G=>F.jsx("div",{role:"option","aria-selected":G[s]===e,onClick:()=>A(G),className:`px-3 py-2 text-sm cursor-pointer transition-colors duration-150 ${G[s]===e?"bg-primary-50 text-primary-700 font-medium":"text-slate-700 hover:bg-slate-50"}`,children:o?o(G):G[a]},G[s]))]})]})]})}function ly({tabs:e,active:r,onChange:t,className:n}){return F.jsx("div",{className:Ft("flex gap-1 bg-slate-100/80 rounded-xl p-1.5 w-fit overflow-x-auto",n),children:e.map((i,a)=>{const s=r===a,o=typeof i=="string"?i:i.label,l=typeof i=="object"?i.icon:null;return F.jsxs("button",{onClick:()=>t(a),className:Ft("flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 whitespace-nowrap",s?"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&&F.jsx(l,{size:15,className:s?"text-primary-600":"text-slate-400"}),o,typeof i=="object"&&i.count!=null&&F.jsx("span",{className:Ft("text-[10px] font-bold px-1.5 py-0.5 rounded-full min-w-[18px] text-center",s?"bg-primary-100 text-primary-700":"bg-slate-200 text-slate-500"),children:i.count})]},o)})})}function fy({checked:e,onChange:r,label:t,description:n,disabled:i,className:a}){return F.jsxs("label",{className:Ft("flex items-center gap-3 cursor-pointer group",i&&"opacity-50 cursor-not-allowed",a),children:[F.jsxs("div",{className:"relative",children:[F.jsx("input",{type:"checkbox",checked:e,onChange:r,disabled:i,className:"sr-only peer"}),F.jsx("div",{className:Ft("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&&F.jsx(ft.Check,{size:13,className:"text-white",strokeWidth:3})})]}),(t||n)&&F.jsxs("div",{children:[t&&F.jsx("span",{className:"text-sm font-medium text-slate-700 group-hover:text-slate-900 transition-colors",children:t}),n&&F.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:n})]})]})}function ld({children:e,className:r}){return F.jsxs("div",{className:Ft("bg-white border border-slate-200 rounded-xl px-4 py-3 mb-6 flex flex-wrap items-center gap-3",r),children:[F.jsxs("div",{className:"flex items-center gap-1.5 text-slate-400 mr-1",children:[F.jsx(ft.Filter,{size:15}),F.jsx("span",{className:"text-xs font-medium hidden sm:inline",children:"Filters"})]}),e]})}ld.Item=function({children:r,className:t}){return F.jsx("div",{className:Ft("min-w-[160px]",t),children:r})};function cy({value:e,onChange:r,label:t,placeholder:n,min:i,max:a,className:s,disabled:o}){return F.jsxs("div",{className:s,children:[t&&F.jsx("label",{className:"text-xs font-medium text-slate-500 mb-1.5 block",children:t}),F.jsxs("div",{className:"relative group",children:[F.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:F.jsx(ft.Calendar,{size:15,className:"text-primary-500 transition-transform duration-200 group-hover:scale-110"})}),F.jsx("input",{type:"date",value:e||"",onChange:l=>r(l.target.value),min:i,max:a,disabled:o,placeholder:n,className:Ft("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 uy({value:e,onChange:r,label:t,className:n,disabled:i}){return F.jsxs("div",{className:n,children:[t&&F.jsx("label",{className:"text-xs font-medium text-slate-500 mb-1.5 block",children:t}),F.jsxs("div",{className:"relative",children:[F.jsx(ft.Clock,{size:15,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"}),F.jsx("input",{type:"time",value:e||"",onChange:a=>r(a.target.value),disabled:i,className:Ft("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 hy extends nt.Component{constructor(r){super(r),this.state={hasError:!1,error:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,t){console.error("ErrorBoundary caught:",r,t)}render(){return this.state.hasError?F.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] p-8",children:[F.jsx("div",{className:"w-16 h-16 rounded-full bg-red-50 flex items-center justify-center mb-4",children:F.jsx("svg",{className:"w-8 h-8 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:F.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"})})}),F.jsx("h2",{className:"text-lg font-bold text-slate-900 mb-2",children:"Something went wrong"}),F.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."}),F.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 dy(){const[e,r]=nt.useState(navigator.onLine),[t,n]=nt.useState(!1);return nt.useEffect(()=>{const i=()=>{r(!0),n(!0),setTimeout(()=>n(!1),3e3)},a=()=>r(!1);return window.addEventListener("online",i),window.addEventListener("offline",a),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",a)}},[]),e&&!t?null:F.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?F.jsxs(F.Fragment,{children:[F.jsx(ft.Wifi,{size:16,className:"mr-2"})," Back online"]}):F.jsxs(F.Fragment,{children:[F.jsx(ft.WifiOff,{size:16,className:"mr-2"})," You're offline. Some features may not work."]})})}function py({label:e,sortKey:r,sortConfig:t,onSort:n,className:i}){const a=(t==null?void 0:t.key)===r,s=a?t.direction:null;return F.jsxs("button",{onClick:()=>n(r),className:Ft("flex items-center gap-1 text-xs font-semibold text-slate-500 uppercase tracking-wider hover:text-slate-700 transition-colors",i),children:[e,F.jsxs("span",{className:"text-slate-300",children:[!a&&F.jsx(ft.ChevronsUpDown,{size:12}),s==="asc"&&F.jsx(ft.ChevronUp,{size:12,className:"text-primary-500"}),s==="desc"&&F.jsx(ft.ChevronDown,{size:12,className:"text-primary-500"})]})]})}function gy({children:e,content:r,className:t}){const[n,i]=nt.useState(!1),[a,s]=nt.useState({top:0,left:0}),o=nt.useRef(null),l=nt.useRef(null),c=()=>{clearTimeout(l.current),l.current=setTimeout(()=>{if(o.current){const p=o.current.getBoundingClientRect();s({top:p.bottom+8,left:Math.min(p.left,window.innerWidth-320)})}i(!0)},400)},h=()=>{clearTimeout(l.current),l.current=setTimeout(()=>i(!1),200)};return F.jsxs(F.Fragment,{children:[F.jsx("span",{ref:o,onMouseEnter:c,onMouseLeave:h,className:Ft("inline-block",t),children:e}),n&&F.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:h,children:r})]})}const Ku={noData:F.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[F.jsx("rect",{x:"40",y:"30",width:"120",height:"90",rx:"8",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),F.jsx("rect",{x:"55",y:"50",width:"90",height:"8",rx:"4",fill:"#e2e8f0"}),F.jsx("rect",{x:"55",y:"65",width:"70",height:"8",rx:"4",fill:"#e2e8f0"}),F.jsx("rect",{x:"55",y:"80",width:"50",height:"8",rx:"4",fill:"#e2e8f0"}),F.jsx("circle",{cx:"100",cy:"105",r:"4",fill:"#cbd5e1"}),F.jsx("path",{d:"M85 100 L100 112 L115 100",stroke:"#cbd5e1",strokeWidth:"2",strokeLinecap:"round"})]}),noStudents:F.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[F.jsx("circle",{cx:"100",cy:"55",r:"25",fill:"#e0f2fe",stroke:"#bae6fd",strokeWidth:"2"}),F.jsx("circle",{cx:"100",cy:"48",r:"10",fill:"#7dd3fc"}),F.jsx("path",{d:"M80 72 Q100 85 120 72",stroke:"#7dd3fc",strokeWidth:"3",fill:"none"}),F.jsx("rect",{x:"60",y:"90",width:"80",height:"40",rx:"6",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),F.jsx("line",{x1:"75",y1:"102",x2:"125",y2:"102",stroke:"#e2e8f0",strokeWidth:"2"}),F.jsx("line",{x1:"75",y1:"112",x2:"110",y2:"112",stroke:"#e2e8f0",strokeWidth:"2"}),F.jsx("line",{x1:"75",y1:"122",x2:"95",y2:"122",stroke:"#e2e8f0",strokeWidth:"2"})]}),noResults:F.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[F.jsx("circle",{cx:"85",cy:"70",r:"30",stroke:"#e2e8f0",strokeWidth:"3",fill:"#f8fafc"}),F.jsx("line",{x1:"107",y1:"92",x2:"130",y2:"115",stroke:"#cbd5e1",strokeWidth:"4",strokeLinecap:"round"}),F.jsx("path",{d:"M75 65 L80 75 L95 60",stroke:"#94a3b8",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}),noSchedule:F.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[F.jsx("rect",{x:"50",y:"30",width:"100",height:"100",rx:"8",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),F.jsx("rect",{x:"50",y:"30",width:"100",height:"25",rx:"8",fill:"#e0f2fe"}),F.jsx("circle",{cx:"70",cy:"70",r:"4",fill:"#cbd5e1"}),F.jsx("circle",{cx:"100",cy:"70",r:"4",fill:"#cbd5e1"}),F.jsx("circle",{cx:"130",cy:"70",r:"4",fill:"#cbd5e1"}),F.jsx("circle",{cx:"70",cy:"90",r:"4",fill:"#cbd5e1"}),F.jsx("circle",{cx:"100",cy:"90",r:"4",fill:"#0ea5e9"}),F.jsx("circle",{cx:"130",cy:"90",r:"4",fill:"#cbd5e1"}),F.jsx("circle",{cx:"70",cy:"110",r:"4",fill:"#cbd5e1"}),F.jsx("circle",{cx:"100",cy:"110",r:"4",fill:"#cbd5e1"}),F.jsx("circle",{cx:"130",cy:"110",r:"4",fill:"#cbd5e1"})]}),success:F.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[F.jsx("circle",{cx:"100",cy:"75",r:"40",fill:"#dcfce7",stroke:"#86efac",strokeWidth:"2"}),F.jsx("path",{d:"M80 75 L95 90 L120 60",stroke:"#22c55e",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})]})};function my({type:e="noData",title:r,message:t,action:n,className:i}){return F.jsxs("div",{className:Ft("flex flex-col items-center justify-center py-12 text-center",i),children:[Ku[e]||Ku.noData,r&&F.jsx("p",{className:"text-base font-semibold text-slate-700 mt-4",children:r}),t&&F.jsx("p",{className:"text-sm text-slate-400 mt-1 max-w-sm",children:t}),n&&F.jsx("div",{className:"mt-4",children:n})]})}function xy({title:e,children:r,className:t}){return F.jsxs("div",{className:Ft("bg-white border border-slate-200 rounded-xl p-5 transition-all duration-200 hover:shadow-sm",t),children:[F.jsxs("h3",{className:"text-sm font-bold text-slate-900 mb-4 flex items-center gap-2",children:[F.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary-500"}),e]}),r]})}function vy({tokenExpiresAt:e,onLogout:r,warningMinutes:t=5}){const[n,i]=nt.useState(!1),[a,s]=nt.useState(0),o=nt.useRef(null);if(nt.useEffect(()=>{if(!e)return;const h=()=>{const p=Date.now(),u=(typeof e=="number"?e:new Date(e).getTime())-p,v=t*60*1e3;u<=0?(i(!1),r==null||r()):u<=v?(i(!0),s(Math.ceil(u/1e3))):i(!1)};return h(),o.current=setInterval(h,1e3),()=>clearInterval(o.current)},[e,t,r]),!n)return null;const l=Math.floor(a/60),c=a%60;return F.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:F.jsxs("div",{className:"flex items-start gap-3",children:[F.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-100 flex items-center justify-center flex-shrink-0",children:F.jsx(ft.Clock,{size:16,className:"text-amber-600"})}),F.jsxs("div",{className:"flex-1",children:[F.jsx("p",{className:"text-sm font-semibold text-amber-800",children:"Session Expiring Soon"}),F.jsxs("p",{className:"text-xs text-amber-600 mt-0.5",children:["Your session will expire in ",l,":",c.toString().padStart(2,"0")]}),F.jsxs("div",{className:"flex gap-2 mt-2",children:[F.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"}),F.jsx("button",{onClick:r,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 wy=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Y0(e){if(!e)return"";const[r,t]=e.split(":"),n=parseInt(r);return`${n>12?n-12:n}:${t} ${n>=12?"PM":"AM"}`}function yy({periods:e=[],timetable:r={},days:t=wy,editable:n=!1,onSlotClick:i,onEmptyClick:a,onDrop:s}){e.filter(c=>!c.is_break);const o=[...e].sort((c,h)=>(c.start_time||"").localeCompare(h.start_time||"")),l=(c,h)=>{const p=r[h];return p&&p[c]||null};return o.length===0?F.jsx("div",{className:"bg-white border border-slate-200 rounded-xl p-8 text-center text-slate-400",children:"No timetable configured yet"}):F.jsx("div",{className:"bg-white border border-slate-200 rounded-xl overflow-auto shadow-soft",children:F.jsxs("div",{className:"grid min-w-[900px]",style:{gridTemplateColumns:`220px repeat(${t.length}, 1fr)`},children:[F.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:F.jsx("p",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Time / Day"})}),t.map(c=>{const h=new Date().toLocaleDateString("en-US",{weekday:"long"})===c;return F.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:F.jsx("div",{className:`px-4 py-2 rounded-lg text-center ${h?"bg-primary-500 shadow-glow-primary":"bg-white shadow-sm border border-slate-100"}`,children:F.jsx("p",{className:`text-sm font-semibold ${h?"text-white":"text-slate-800"}`,children:c})})},c)}),o.map((c,h)=>{const p=o.filter((g,u)=>u<h&&!g.is_break).length;return c.is_break?F.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:[F.jsxs("span",{className:"text-sm font-bold text-red-500",children:["☕ ",c.name||"Break"]}),F.jsxs("span",{className:"text-sm text-red-400",children:["(",Y0(c.start_time)," – ",Y0(c.end_time),")"]})]},c.id||`break-${h}`):F.jsxs(nt.Fragment,{children:[F.jsxs("div",{className:"p-4 border-b border-slate-100 bg-slate-50/50 flex items-center gap-3",children:[F.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:p+1}),F.jsxs("div",{children:[F.jsx("p",{className:"text-sm font-bold text-slate-900",children:c.name||`Period ${p+1}`}),F.jsxs("p",{className:"text-xs font-medium text-slate-600",children:[Y0(c.start_time)," – ",Y0(c.end_time)]})]})]}),t.map(g=>{const u=l(p,g);return F.jsx("div",{className:"p-1.5 border-b border-l border-slate-100 flex items-center justify-center min-h-[90px]",children:u?F.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(p,g,u),children:[F.jsx("p",{className:"text-sm font-bold text-slate-900",children:u.subject||""}),F.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:u.teacher_name||u.teacher||""}),(u.slot_type||u.type)&&(u.slot_type||u.type)!=="class"&&F.jsx("span",{className:"inline-block mt-1 text-[10px] px-1.5 py-0.5 rounded bg-slate-200 text-slate-600",children:u.slot_type||u.type})]}):n?F.jsx("div",{onClick:()=>a&&a(p,g),onDragOver:v=>{v.preventDefault(),v.currentTarget.classList.add("border-primary-400","bg-primary-50")},onDragLeave:v=>{v.currentTarget.classList.remove("border-primary-400","bg-primary-50")},onDrop:v=>{if(v.preventDefault(),v.currentTarget.classList.remove("border-primary-400","bg-primary-50"),s)try{const m=JSON.parse(v.dataTransfer.getData("application/json"));s(p,g,m)}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:F.jsx("span",{className:"text-xs text-slate-400 font-medium",children:"+ Add"})}):F.jsx("div",{className:"w-full h-full min-h-[70px] flex items-center justify-center",children:F.jsx("span",{className:"text-xs text-slate-300",children:"—"})})},`${c.id||h}-${g}`)})]},c.id||`period-${h}`)})]})})}function by({page:e=0,totalPages:r=1,totalCount:t,pageSize:n=20,onPageChange:i}){if(r<=1)return null;const a=e*n+1,s=Math.min((e+1)*n,t||(e+1)*n),o=()=>{const l=[];if(r<=5)for(let c=0;c<r;c++)l.push(c);else{l.push(0),e>2&&l.push("...");const c=Math.max(1,e-1),h=Math.min(r-2,e+1);for(let p=c;p<=h;p++)l.push(p);e<r-3&&l.push("..."),l.push(r-1)}return l};return F.jsxs("div",{className:"flex items-center justify-between py-2.5",children:[F.jsx("p",{className:"text-[11px] text-slate-400 font-medium tracking-wide",children:t!=null?F.jsxs(F.Fragment,{children:[F.jsxs("span",{className:"text-slate-600 font-semibold",children:[a,"–",s]})," of ",F.jsx("span",{className:"text-slate-600 font-semibold",children:t})," results"]}):F.jsxs(F.Fragment,{children:["Page ",F.jsx("span",{className:"text-slate-600 font-semibold",children:e+1})," of ",F.jsx("span",{className:"text-slate-600 font-semibold",children:r})]})}),F.jsxs("div",{className:"flex items-center",children:[F.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:F.jsx(ft.ChevronLeft,{size:14,className:"text-slate-500"})}),o().map((l,c)=>l==="..."?F.jsx("span",{className:"w-8 h-8 border-y border-slate-200 flex items-center justify-center text-[10px] text-slate-300",children:"•••"},`e-${c}`):F.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)),F.jsx("button",{onClick:()=>i(e+1),disabled:e>=r-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:F.jsx(ft.ChevronRight,{size:14,className:"text-slate-500"})})]})]})}function _y({title:e="Portal",subtitle:r="Sign in to your account",icon:t,gradientFrom:n="from-indigo-500",gradientTo:i="to-purple-700",accentColor:a="indigo",buttonColor:s="bg-teal-600 hover:bg-teal-700 shadow-teal-500/20 hover:shadow-teal-500/30",onSubmit:o,loading:l=!1,error:c=null,supportEmail:h="support@theinquisitive.in"}){const[p,g]=nt.useState(""),[u,v]=nt.useState(""),[m,y]=nt.useState(!1),[_,S]=nt.useState(""),[A,P]=nt.useState(""),z=G=>{if(G.preventDefault(),S(""),P(""),!p){S("Email is required");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p)){S("Invalid email");return}if(!u){P("Password is required");return}o({email:p,password:u})};return F.jsxs("div",{className:`min-h-screen flex items-center justify-center bg-gradient-to-br ${n} ${i} relative overflow-hidden`,children:[F.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[F.jsx("div",{className:"absolute -top-40 -right-40 w-80 h-80 rounded-full bg-white/5"}),F.jsx("div",{className:"absolute -bottom-32 -left-32 w-64 h-64 rounded-full bg-white/5"})]}),F.jsxs("div",{className:"relative bg-white rounded-2xl shadow-2xl p-8 w-full max-w-[420px] text-center mx-4",children:[t&&F.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:F.jsx(t,{className:`w-7 h-7 text-${a}-600`})}),F.jsx("h1",{className:"text-xl font-bold text-slate-800 mb-0.5",children:e}),F.jsx("p",{className:"text-sm text-slate-400 mb-6",children:r}),c&&F.jsx("div",{className:"bg-red-50 border border-red-200 text-red-700 text-sm rounded-lg p-3 mb-4 text-left",children:c}),F.jsxs("form",{onSubmit:z,className:"space-y-4",children:[F.jsxs("div",{children:[F.jsxs("div",{className:"relative",children:[F.jsx(ft.Mail,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),F.jsx("input",{type:"email",placeholder:"Email Address",value:p,onChange:G=>{g(G.target.value),S("")},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 ${_?"border-red-400":"border-slate-300"}`})]}),_&&F.jsx("p",{className:"text-xs text-red-500 mt-1 text-left",children:_})]}),F.jsxs("div",{children:[F.jsxs("div",{className:"relative",children:[F.jsx(ft.Lock,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),F.jsx("input",{type:m?"text":"password",placeholder:"Password",value:u,onChange:G=>{v(G.target.value),P("")},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 ${A?"border-red-400":"border-slate-300"}`}),F.jsx("button",{type:"button",onClick:()=>y(!m),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600",children:m?F.jsx(ft.EyeOff,{className:"w-4 h-4"}):F.jsx(ft.Eye,{className:"w-4 h-4"})})]}),A&&F.jsx("p",{className:"text-xs text-red-500 mt-1 text-left",children:A})]}),F.jsx("button",{type:"submit",disabled:l,className:`w-full py-3 ${s} 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"})]}),F.jsx("div",{className:"mt-6 pt-5 border-t border-slate-100",children:F.jsxs("p",{className:"text-xs text-slate-400",children:["Having technical issues?"," ",F.jsx("a",{href:`mailto:${h}`,className:`text-${a}-500 hover:underline font-medium`,children:"Contact support"})]})})]})]})}function Sy({open:e,onClose:r,onSubmit:t,loading:n,error:i}){const[a,s]=nt.useState({current_password:"",new_password:"",confirm_password:""}),[o,l]=nt.useState(!1),[c,h]=nt.useState(!1),[p,g]=nt.useState(!1),[u,v]=nt.useState({}),m=()=>{const S={};return a.current_password||(S.current_password="Current password is required"),a.new_password?a.new_password.length<6&&(S.new_password="Password must be at least 6 characters"):S.new_password="New password is required",a.confirm_password?a.new_password!==a.confirm_password&&(S.confirm_password="Passwords do not match"):S.confirm_password="Please confirm your new password",S},y=()=>{const S=m();v(S),!(Object.keys(S).length>0)&&t(a)},_=()=>{s({current_password:"",new_password:"",confirm_password:""}),v({}),l(!1),h(!1),g(!1),r()};return F.jsxs(hc,{open:e,onClose:_,title:"Change Password",size:"sm",children:[F.jsxs("div",{className:"space-y-4",children:[i&&F.jsx("div",{className:"p-3 rounded-lg bg-red-50 border border-red-200",children:F.jsx("p",{className:"text-sm text-red-600",children:i})}),F.jsxs("div",{className:"space-y-1.5",children:[F.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Current Password"}),F.jsxs("div",{className:"relative",children:[F.jsx(ft.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),F.jsx("input",{type:o?"text":"password",value:a.current_password,onChange:S=>s({...a,current_password:S.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 ${u.current_password?"border-red-400":"border-slate-300"}`}),F.jsx("button",{type:"button",onClick:()=>l(!o),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:o?F.jsx(ft.EyeOff,{size:16}):F.jsx(ft.Eye,{size:16})})]}),u.current_password&&F.jsx("p",{className:"text-xs text-red-500",children:u.current_password})]}),F.jsxs("div",{className:"space-y-1.5",children:[F.jsx("label",{className:"text-sm font-medium text-slate-700",children:"New Password"}),F.jsxs("div",{className:"relative",children:[F.jsx(ft.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),F.jsx("input",{type:c?"text":"password",value:a.new_password,onChange:S=>s({...a,new_password:S.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 ${u.new_password?"border-red-400":"border-slate-300"}`}),F.jsx("button",{type:"button",onClick:()=>h(!c),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:c?F.jsx(ft.EyeOff,{size:16}):F.jsx(ft.Eye,{size:16})})]}),u.new_password&&F.jsx("p",{className:"text-xs text-red-500",children:u.new_password})]}),F.jsxs("div",{className:"space-y-1.5",children:[F.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Confirm New Password"}),F.jsxs("div",{className:"relative",children:[F.jsx(ft.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),F.jsx("input",{type:p?"text":"password",value:a.confirm_password,onChange:S=>s({...a,confirm_password:S.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 ${u.confirm_password?"border-red-400":"border-slate-300"}`}),F.jsx("button",{type:"button",onClick:()=>g(!p),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:p?F.jsx(ft.EyeOff,{size:16}):F.jsx(ft.Eye,{size:16})})]}),u.confirm_password&&F.jsx("p",{className:"text-xs text-red-500",children:u.confirm_password})]})]}),F.jsxs("div",{className:"flex justify-end gap-2 mt-6 pt-4 border-t border-slate-100",children:[F.jsx(Wo,{variant:"ghost",onClick:_,disabled:n,children:"Cancel"}),F.jsx(Wo,{onClick:y,loading:n,icon:ft.Lock,children:"Change Password"})]})]})}function Ay({name:e,subtitle:r,avatarInitials:t,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 F.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:F.jsxs("div",{className:"flex justify-between items-start",children:[F.jsxs("div",{className:"flex gap-4 items-center",children:[F.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:t||(e||"").slice(0,2).toUpperCase()}),F.jsxs("div",{children:[F.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[F.jsx("h2",{className:"text-xl font-bold text-slate-900",children:e}),n.map((s,o)=>F.jsx("span",{className:`text-xs font-semibold px-2.5 py-0.5 rounded-full ${a[s.variant]||a.primary}`,children:s.label},o))]}),r&&F.jsx("p",{className:"text-sm text-slate-500 mt-0.5",children:r})]})]}),i&&F.jsx("div",{className:"flex-shrink-0",children:i})]})})}function Ny({title:e,titleIcon:r,titleIconColor:t,titleIconBg:n,items:i=[],columns:a=2}){const s=a===3?"grid grid-cols-1 md:grid-cols-3 gap-4":"grid grid-cols-1 md:grid-cols-2 gap-4";return F.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&&F.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[r&&F.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:F.jsx(r,{className:`w-3.5 h-3.5 ${t||"text-slate-600"}`})}),F.jsx("h3",{className:"text-sm font-bold text-slate-900",children:e})]}),F.jsx("div",{className:s,children:i.map((o,l)=>F.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:[o.icon&&F.jsx("div",{className:"w-9 h-9 rounded-lg bg-white border border-slate-200 flex items-center justify-center flex-shrink-0",children:F.jsx(o.icon,{className:"w-4 h-4 text-slate-500"})}),F.jsxs("div",{children:[F.jsx("p",{className:"text-[11px] text-slate-400",children:o.label}),F.jsx("p",{className:"text-sm font-medium text-slate-900",children:o.value||"N/A"})]})]},l))})]})}exports.Badge=B3;exports.Breadcrumb=U3;exports.Button=Wo;exports.Card=I3;exports.CardContent=D3;exports.CardHeader=O3;exports.CardTitle=R3;exports.ChangePasswordModal=Sy;exports.Checkbox=fy;exports.ConfirmDialog=sy;exports.DataTable=q3;exports.DateInput=cy;exports.EmptyState=my;exports.ErrorBoundary=hy;exports.FilterBar=ld;exports.HoverCard=gy;exports.Input=sd;exports.LoginPage=_y;exports.Modal=hc;exports.NetworkStatus=dy;exports.Pagination=by;exports.ProfileHeader=Ay;exports.ProfileInfoGrid=Ny;exports.ProtectedRoute=J3;exports.RecentActivities=Z3;exports.SearchInput=z3;exports.SearchableSelect=oy;exports.SectionCard=xy;exports.Select=W3;exports.SessionTimeout=vy;exports.Sidebar=G3;exports.Skeleton=fn;exports.SkeletonCard=Y3;exports.SkeletonDashboard=$3;exports.SkeletonTable=K3;exports.SortableHeader=py;exports.Tabs=ly;exports.TimeInput=uy;exports.TimetableGrid=yy;exports.ToastProvider=iy;exports.Topbar=X3;exports._typeof=Ht;exports.cn=Ft;exports.commonjsGlobal=Ah;exports.exportMultiSheetExcel=_3;exports.exportToCsv=N2;exports.exportToExcel=b3;exports.generateAttendanceReport=Pp;exports.generateFeeReceipt=kp;exports.generatePdf=Fp;exports.generateStudentReportCard=Cp;exports.getDefaultExportFromCjs=Np;exports.useFormDraft=N3;exports.useKeyboardShortcuts=A3;exports.useLocalStorage=S3;exports.usePagination=C3;exports.useRecentlyViewed=E3;exports.useSortableData=F3;exports.useTabState=L3;exports.useToast=ay;