PageSourceSearch

https://mojo.com.pl/assets/Audit-ByL-48Jv.js

js mojo.com.pl collected 2026-10-04 08:10:58 UTC 477,088 bytes, 164 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-C8Ms-IwH.js","assets/index-CjcHKCn9.js","assets/index-DtjyZ1x2.css","assets/card-yol5nNiC.js","assets/globe-C0AcWmyT.js","assets/download-RmgXk5Rv.js","assets/calendar-Bu6tZ0em.js","assets/smartphone-AaiAcNST.js","assets/shield-D-2uIQnE.js","assets/chart-column-vBvD7U1j.js"])))=>i.map(i=>d[i]);
2var Kd=Object.defineProperty;var Jd=(t,i,e)=>i in t?Kd(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e;var me=(t,i,e)=>Jd(t,typeof i!="symbol"?i+"":i,e);import{c as Xd,j as v,m as Gu,n as Qd,r as mi,v as $u,B as Er,a as co,Z as Zu,Q as Ku,l as vn,b as Ju,_ as xl,H as t1,A as fs,U as e1,F as i1,D as r1,h as n1,i as a1,k as s1,t as vh,s as bh,J as yl}from"./index-CjcHKCn9.js";import{C as ei,a as ci,b as hi,d as ba,c as ui}from"./card-yol5nNiC.js";import{G as yo}from"./globe-C0AcWmyT.js";import{D as o1}from"./download-RmgXk5Rv.js";import{C as Zl}from"./calendar-Bu6tZ0em.js";import{S as wh}from"./smartphone-AaiAcNST.js";import{S as xh}from"./shield-D-2uIQnE.js";import{C as l1}from"./chart-column-vBvD7U1j.js";/**
3 * @license lucide-react v0.462.0 - ISC
4 *
5 * This source code is licensed under the ISC license.
6 * See the LICENSE file in the root directory of this source tree.
7 */const Jr=Xd("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),c1=Qd("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ii({className:t,variant:i,...e}){return v.jsx("div",{className:Gu(c1({variant:i}),t),...e})}function h1(t,i=[]){let e=[];function r(s,c){const l=mi.createContext(c),h=e.length;e=[...e,c];function d(y){const{scope:A,children:p,...O}=y,P=(A==null?void 0:A[t][h])||l,M=mi.useMemo(()=>O,Object.values(O));return v.jsx(P.Provider,{value:M,children:p})}function m(y,A){const p=(A==null?void 0:A[t][h])||l,O=mi.useContext(p);if(O)return O;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${s}\``)}return d.displayName=s+"Provider",[d,m]}const n=()=>{const s=e.map(c=>mi.createContext(c));return function(l){const h=(l==null?void 0:l[t])||s;return mi.useMemo(()=>({[`__scope${t}`]:{...l,[t]:h}}),[l,h])}};return n.scopeName=t,[r,u1(n,...i)]}function u1(...t){const i=t[0];if(t.length===1)return i;const e=()=>{const r=t.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const c=r.reduce((l,{useScope:h,scopeName:d})=>{const y=h(s)[`__scope${d}`];return{...l,...y}},{});return mi.useMemo(()=>({[`__scope${i.scopeName}`]:c}),[c])}};return e.scopeName=i.scopeName,e}var dc="Progress",pc=100,[f1,Fp]=h1(dc),[d1,p1]=f1(dc),Xu=mi.forwardRef((t,i)=>{const{__scopeProgress:e,value:r=null,max:n,getValueLabel:s=m1,...c}=t;(n||n===0)&&!yh(n)&&console.error(g1(`${n}`,"Progress"));const l=yh(n)?n:pc;r!==null&&!_h(r,l)&&console.error(v1(`${r}`,"Progress"));const h=_h(r,l)?r:null,d=Po(h)?s(h,l):void 0;return v.jsx(d1,{scope:e,value:h,max:l,children:v.jsx($u.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Po(h)?h:void 0,"aria-valuetext":d,role:"progressbar","data-state":ef(h,l),"data-value":h??void 0,"data-max":l,...c,ref:i})})});Xu.displayName=dc;var Qu="ProgressIndicator",tf=mi.forwardRef((t,i)=>{const{__scopeProgress:e,...r}=t,n=p1(Qu,e);return v.jsx($u.div,{"data-state":ef(n.value,n.max),"data-value":n.value??void 0,"data-max":n.max,...r,ref:i})});tf.displayName=Qu;function m1(t,i){return`${Math.round(t/i*100)}%`}function ef(t,i){return t==null?"indeterminate":t===i?"complete":"loading"}function Po(t){return typeof t=="number"}function yh(t){return Po(t)&&!isNaN(t)&&t>0}function _h(t,i){return Po(t)&&!isNaN(t)&&t<=i&&t>=0}function g1(t,i){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${i}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${pc}\`.`}function v1(t,i){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${i}\`. The \`value\` prop must be:
8  - a positive number
9  - less than the value passed to \`max\` (or ${pc} if no \`max\` prop is set)
10  - \`null\` or \`undefined\` if the progress is indeterminate.
11
12Defaulting to \`null\`.`}var rf=Xu,b1=tf;const Na=mi.forwardRef(({className:t,value:i,...e},r)=>v.jsx(rf,{ref:r,className:Gu("relative h-4 w-full overflow-hidden rounded-full bg-secondary",t),...e,children:v.jsx(b1,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(i||0)}%)`}})}));Na.displayName=rf.displayName;const w1=({data:t,onDownloadPDF:i,onBookConsultation:e})=>{const r=c=>c>=90?"text-green-600":c>=50?"text-yellow-600":"text-red-600",n=c=>c>=90?"default":c>=50?"secondary":"destructive",s=c=>c?c.replace(/\*\*(.*?)\*\*/g,'<strong class="font-semibold text-foreground">$1</strong>').replace(/\*(.*?)\*/g,'<em class="italic">$1</em>').replace(/^• (.+)$/gm,'<li class="ml-4">$1</li>').replace(/^## (.+)$/gm,'<h3 class="text-lg font-semibold text-foreground mb-2 mt-4">$1</h3>').replace(/\n\n/g,'</p><p class="mb-3">').replace(/^/,'<p class="mb-3">').replace(/$/,"</p>").replace(/(<li.*?>.*?<\/li>)/gs,'<ul class="list-disc list-inside mb-3 space-y-1">$1</ul>').replace(/<\/li>\s*<li/g,"</li><li").replace(/<ul[^>]*>\s*<ul[^>]*>/g,'<ul class="list-disc list-inside mb-3 space-y-1">').replace(/<\/ul>\s*<\/ul>/g,"</ul>"):"";
12return v.jsxs("div",{className:"w-full max-w-6xl mx-auto space-y-6","data-audit-report":!0,children:[v.jsx(ei,{className:"border-0 bg-gradient-to-r from-[hsl(var(--mojo-purple))] to-[hsl(var(--mojo-purple-light))] text-white",children:v.jsxs(ci,{className:"text-center",children:[v.jsxs(hi,{className:"text-3xl font-bold flex items-center justify-center gap-3",children:[v.jsx(yo,{className:"h-8 w-8"}),"Website Audit Report"]}),v.jsx(ba,{className:"text-white/80 text-lg",children:t.url}),v.jsxs("div",{className:"flex justify-center space-x-4 mt-4",children:[v.jsxs(Er,{onClick:i,variant:"outline",size:"lg",className:"bg-white/10 border-white/20 text-white hover:bg-white/20",children:[v.jsx(o1,{className:"mr-2 h-4 w-4"}),"Download PDF"]}),v.jsxs(Er,{onClick:e,variant:"outline",size:"lg",className:"bg-white text-[hsl(var(--mojo-purple))] border-white hover:bg-white/90",children:[v.jsx(Zl,{className:"mr-2 h-4 w-4"}),"Book Consultation"]})]})]})}),t.aiSummary&&v.jsxs(ei,{className:"border-[hsl(var(--mojo-purple))] bg-gradient-to-r from-[hsl(var(--mojo-purple)/0.05)] to-[hsl(var(--mojo-purple-light)/0.05)]",children:[v.jsx(ci,{children:v.jsxs(hi,{className:"flex items-center gap-2",children:[v.jsx(co,{className:"h-5 w-5 text-[hsl(var(--mojo-purple))]"}),"AI Summary & Insights"]})}),v.jsx(ui,{children:v.jsx("div",{className:"text-muted-foreground leading-relaxed prose prose-sm max-w-none",dangerouslySetInnerHTML:{__html:s(t.aiSummary)}})})]}),v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-5 gap-4",children:[v.jsxs(ei,{children:[v.jsxs(ci,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[v.jsx(hi,{className:"text-sm font-medium",children:"Performance"}),v.jsx(Zu,{className:"h-4 w-4 text-muted-foreground"})]}),v.jsxs(ui,{children:[v.jsx("div",{className:"text-2xl font-bold",children:v.jsx("span",{className:r(t.performance.score),children:t.performance.score})}),v.jsx(Na,{value:t.performance.score,className:"mt-2"})]})]}),v.jsxs(ei,{children:[v.jsxs(ci,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[v.jsx(hi,{className:"text-sm font-medium",children:"SEO"}),v.jsx(Ku,{className:"h-4 w-4 text-muted-foreground"})]}),v.jsxs(ui,{children:[v.jsx("div",{className:"text-2xl font-bold",children:v.jsx("span",{className:r(t.seo.score),children:t.seo.score})}),v.jsx(Na,{value:t.seo.score,className:"mt-2"})]})]}),v.jsxs(ei,{children:[v.jsxs(ci,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[v.jsx(hi,{className:"text-sm font-medium",children:"Accessibility"}),v.jsx(wh,{className:"h-4 w-4 text-muted-foreground"})]}),v.jsxs(ui,{children:[v.jsx("div",{className:"text-2xl font-bold",children:v.jsx("span",{className:r(t.accessibility.score),children:t.accessibility.score})}),v.jsx(Na,{value:t.accessibility.score,className:"mt-2"})]})]}),v.jsxs(ei,{children:[v.jsxs(ci,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[v.jsx(hi,{className:"text-sm font-medium",children:"Best Practices"}),v.jsx(vn,{className:"h-4 w-4 text-muted-foreground"})]}),v.jsxs(ui,{children:[v.jsx("div",{className:"text-2xl font-bold",children:v.jsx("span",{className:r(t.bestPractices.score),children:t.bestPractices.score})}),v.jsx(Na,{value:t.bestPractices.score,className:"mt-2"})]})]}),v.jsxs(ei,{children:[v.jsxs(ci,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[v.jsx(hi,{className:"text-sm font-medium",children:"Security"}),v.jsx(xh,{className:"h-4 w-4 text-muted-foreground"})]}),v.jsxs(ui,{children:[v.jsx("div",{className:"text-2xl font-bold",children:v.jsx("span",{className:r(t.security.score),children:t.security.score})}),v.jsx(Na,{value:t.security.score,className:"mt-2"})]})]})]}),v.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[v.jsxs(ei,{children:[v.jsx(ci,{children:v.jsxs(hi,{className:"flex items-center gap-2",children:[v.jsx(Ju,{className:"h-5 w-5 text-[hsl(var(--mojo-purple))]"}),"Technology Stack"]})}),v.jsx(ui,{className:"space-y-4",children:v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-2",children:"Platform & CMS"}),v.jsxs("div",{className:"flex flex-wrap gap-2 mb-3",children:[v.jsx(ii,{variant:"outline",children:t.technology.platform}),v.jsx(ii,{variant:"outline",children:t.technology.cms})]})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-2",children:"Programming Languages"}),v.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:t.technology.languages.map((c,l)=>v.jsx(ii,{variant:"secondary",children:c},l))})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-2",children:"Frameworks & Libraries"}),v.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:t.technology.frameworks.map((c,l)=>v.jsx(ii,{variant:"secondary",children:c},l))})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-2",children:"Web Server & Database"}),v.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:[...t.technology.webServer,...t.technology.database].map((c,l)=>v.jsx(ii,{variant:"outline",children:c},l))})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-2",children:"Hosting & CDN"}),v.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:[...t.technology.hosting,...t.technology.cdn].map((c,l)=>v.jsx(ii,{variant:"outline",children:c},l))})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-2",children:"Analytics & Marketing"}),v.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:[...t.technology.analytics,...t.technology.marketing].map((c,l)=>v.jsx(ii,{variant:"outline",children:c},l))})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-2",children:"SEO Tools"}),v.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:t.technology.seo.map((c,l)=>v.jsx(ii,{variant:"secondary",children:c},l))})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-2",children:"Security & Social"}),v.jsx("div",{className:"flex flex-wrap gap-2 mb-3",children:[...t.technology.security,...t.technology.socialMedia].map((c,l)=>v.jsx(ii,{variant:"outline",children:c},l))})]})]})})]}),v.jsxs(ei,{children:[v.jsx(ci,{children:v.jsxs(hi,{className:"flex items-center gap-2",children:[v.jsx(co,{className:"h-5 w-5 text-[hsl(var(--mojo-purple))]"}),"Core Web Vitals"]})}),v.jsxs(ui,{className:"space-y-4",children:[v.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-4",children:[v.jsxs("div",{children:[v.jsx("div",{className:"text-sm text-muted-foreground",children:"First Contentful Paint"}),v.jsxs("div",{className:"text-lg font-semibold",children:[t.performance.metrics.fcp,"s"]})]}),v.jsxs("div",{children:[v.jsx("div",{className:"text-sm text-muted-foreground",children:"Largest Contentful Paint"}),v.jsxs("div",{className:"text-lg font-semibold",children:[t.performance.metrics.lcp,"s"]})]}),v.jsxs("div",{children:[v.jsx("div",{className:"text-sm text-muted-foreground",children:"Cumulative Layout Shift"}),v.jsx("div",{className:"text-lg font-semibold",children:t.performance.metrics.cls})]}),v.jsxs("div",{children:[v.jsx("div",{className:"text-sm text-muted-foreground",children:"First Input Delay"}),v.jsxs("div",{className:"text-lg font-semibold",children:[t.performance.metrics.fid,"ms"]})]}),v.jsxs("div",{children:[v.jsx("div",{className:"text-sm text-muted-foreground",children:"Speed Index"}),v.jsxs("div",{className:"text-lg font-semibold",children:[t.performance.metrics.si,"s"]})]}),v.jsxs("div",{children:[v.jsx("div",{className:"text-sm text-muted-foreground",children:"Time to Interactive"}),v.jsxs("div",{className:"text-lg font-semibold",children:[t.performance.metrics.tti,"s"]})]}),v.jsxs("div",{children:[v.jsx("div",{className:"text-sm text-muted-foreground",children:"Total Blocking Time"}),v.jsxs("div",{className:"text-lg font-semibold",children:[t.performance.metrics.tbt,"ms"]})]})]}),t.performance.opportunities&&t.performance.opportunities.length>0&&v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-2",children:"Optimization Opportunities"}),v.jsx("div",{className:"space-y-2",children:t.performance.opportunities.map((c,l)=>v.jsxs("div",{className:"p-3 bg-muted rounded-lg",children:[v.jsxs("div",{className:"flex justify-between items-start mb-1",children:[v.jsx("span",{className:"font-medium",children:c.title}),v.jsx(ii,{variant:c.impact==="High"?"destructive":c.impact==="Medium"?"default":"secondary",children:c.impact})]}),v.jsx("p",{className:"text-sm text-muted-foreground",children:c.description}),c.savings>0&&v.jsxs("p",{className:"text-xs text-primary mt-1",children:["Potential savings: ",c.savings>1e3?`${(c.savings/1e3).toFixed(1)}KB`:`${c.savings}ms`]})]},l))})]})]})]}),v.jsxs(ei,{children:[v.jsx(ci,{children:v.jsxs(hi,{className:"flex items-center gap-2",children:[v.jsx(Jr,{className:"h-5 w-5 text-yellow-600"}),"SEO Issues"]})}),v.jsx(ui,{children:v.jsx("div",{className:"space-y-2",children:t.seo.issues.map((c,l)=>v.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[v.jsx(Jr,{className:"h-4 w-4 text-yellow-600 mt-0.5 flex-shrink-0"}),v.jsx("span",{children:c})]},l))})})]}),v.jsxs(ei,{children:[v.jsx(ci,{children:v.jsxs(hi,{className:"flex items-center gap-2",children:[v.jsx(xh,{className:"h-5 w-5"}),"Security Analysis",v.jsx(ii,{variant:t.security.isSafe?"default":"destructive",children:t.security.isSafe?"Safe":"Threats Found"})]})}),v.jsxs(ui,{children:[v.jsx("div",{className:"mb-4",children:v.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[v.jsx("span",{className:"text-sm font-medium",children:"Security Score:"}),v.jsxs(ii,{variant:n(t.security.score),children:[t.security.score,"/100"]})]})}),t.security.threats.length>0&&v.jsxs("div",{className:"mb-4",children:[v.jsx("h4",{className:"font-semibold mb-2 text-destructive",children:"Detected Threats:"}),v.jsx("div",{className:"space-y-1",children:t.security.threats.map((c,l)=>v.jsxs("div",{className:"flex items-start gap-2 text-sm text-destructive",children:[v.jsx(Jr,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}),v.jsx("span",{children:c.replace(/_/g," ").toLowerCase().replace(/\b\w/g,h=>h.toUpperCase())})]},l))})]}),v.jsx("div",{className:"space-y-2",children:t.security.issues.map((c,l)=>v.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[t.security.isSafe?v.jsx(vn,{className:"h-4 w-4 text-green-600 mt-0.5 flex-shrink-0"}):v.jsx(Jr,{className:"h-4 w-4 text-destructive mt-0.5 flex-shrink-0"}),v.jsx("span",{children:c})]},l))})]})]}),t.mozMetrics&&v.jsx(v.Fragment,{children:v.jsxs(ei,{className:"lg:col-span-2",children:[v.jsxs(ci,{children:[v.jsxs(hi,{className:"flex items-center gap-2",children:[v.jsx(co,{className:"h-5 w-5 text-[hsl(var(--mojo-purple))]"}),"Moz SEO Authority & Link Analysis"]}),v.jsx(ba,{children:"Domain & Page Authority analysis powered by Moz's comprehensive link database"})]}),v.jsxs(ui,{className:"space-y-6",children:[v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[v.jsxs("div",{className:"text-center p-4 bg-muted rounded-lg",children:[v.jsxs("div",{className:"text-2xl font-bold text-[hsl(var(--mojo-purple))]",children:[t.mozMetrics.urlMetrics.domain.domainAuthority,"/100"]}),v.jsx("div",{className:"text-sm text-muted-foreground",children:"Domain Authority"})]}),v.jsxs("div",{className:"text-center p-4 bg-muted rounded-lg",children:[v.jsxs("div",{className:"text-2xl font-bold text-[hsl(var(--mojo-purple))]",children:[t.mozMetrics.urlMetrics.url.pageAuthority,"/100"]}),v.jsx("div",{className:"text-sm text-muted-foreground",children:"Page Authority"})]}),v.jsxs("div",{className:"text-center p-4 bg-muted rounded-lg",children:[v.jsxs("div",{className:"text-2xl font-bold text-orange-600",children:[t.mozMetrics.urlMetrics.url.spamScore,"%"]}),v.jsx("div",{className:"text-sm text-muted-foreground",children:"Spam Score"})]}),v.jsxs("div",{className:"text-center p-4 bg-muted rounded-lg",children:[v.jsx("div",{className:"text-2xl font-bold text-blue-600",children:t.mozMetrics.linkData.linkingDomains.toLocaleStr
12ing()}),v.jsx("div",{className:"text-sm text-muted-foreground",children:"Linking Domains"})]})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-3",children:"Backlink Profile"}),v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-4",children:[v.jsxs("div",{className:"p-3 bg-muted rounded-lg",children:[v.jsx("div",{className:"text-lg font-semibold",children:t.mozMetrics.linkData.totalLinks.toLocaleString()}),v.jsx("div",{className:"text-sm text-muted-foreground",children:"Total Backlinks"})]}),v.jsxs("div",{className:"p-3 bg-muted rounded-lg",children:[v.jsx("div",{className:"text-lg font-semibold",children:t.mozMetrics.urlMetrics.url.rootDomainsToPage}),v.jsx("div",{className:"text-sm text-muted-foreground",children:"Root Domains to Page"})]}),v.jsxs("div",{className:"p-3 bg-muted rounded-lg",children:[v.jsx("div",{className:"text-lg font-semibold",children:t.mozMetrics.urlMetrics.domain.externalLinksToDomain.toLocaleString()}),v.jsx("div",{className:"text-sm text-muted-foreground",children:"External Links to Domain"})]})]}),t.mozMetrics.linkData.topBacklinks.length>0&&v.jsxs("div",{children:[v.jsx("h5",{className:"font-medium mb-2",children:"Top Backlinks"}),v.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:t.mozMetrics.linkData.topBacklinks.slice(0,5).map((c,l)=>v.jsxs("div",{className:"p-2 bg-background border rounded text-sm",children:[v.jsxs("div",{className:"flex justify-between items-start mb-1",children:[v.jsx("span",{className:"font-medium truncate",children:c.sourceDomain}),v.jsxs(ii,{variant:"outline",className:"text-xs",children:["DA: ",c.linkAuthority]})]}),v.jsx("div",{className:"text-muted-foreground truncate",children:c.anchorText||"No anchor text"})]},l))})]})]}),t.mozMetrics.keywordData.totalKeywords>0&&v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-3",children:"Keyword Performance"}),v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-4",children:[v.jsxs("div",{className:"p-3 bg-muted rounded-lg",children:[v.jsx("div",{className:"text-lg font-semibold",children:t.mozMetrics.keywordData.totalKeywords.toLocaleString()}),v.jsx("div",{className:"text-sm text-muted-foreground",children:"Total Keywords"})]}),v.jsxs("div",{className:"p-3 bg-muted rounded-lg",children:[v.jsx("div",{className:"text-lg font-semibold",children:t.mozMetrics.keywordData.averageDifficulty.toFixed(1)}),v.jsx("div",{className:"text-sm text-muted-foreground",children:"Avg. Difficulty"})]}),v.jsxs("div",{className:"p-3 bg-muted rounded-lg",children:[v.jsx("div",{className:"text-lg font-semibold",children:t.mozMetrics.keywordData.topKeywords.reduce((c,l)=>c+l.searchVolume,0).toLocaleString()}),v.jsx("div",{className:"text-sm text-muted-foreground",children:"Total Search Volume"})]})]}),t.mozMetrics.keywordData.topKeywords.length>0&&v.jsxs("div",{children:[v.jsx("h5",{className:"font-medium mb-2",children:"Top Keywords"}),v.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:t.mozMetrics.keywordData.topKeywords.slice(0,8).map((c,l)=>v.jsx("div",{className:"p-2 bg-background border rounded text-sm",children:v.jsxs("div",{className:"flex justify-between items-center",children:[v.jsx("span",{className:"font-medium",children:c.keyword}),v.jsxs("div",{className:"flex gap-2",children:[v.jsxs(ii,{variant:"outline",className:"text-xs",children:["Vol: ",c.searchVolume.toLocaleString()]}),v.jsxs(ii,{variant:"outline",className:"text-xs",children:["Diff: ",c.difficulty]})]})]})},l))})]})]}),v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-3",children:"Moz Insights"}),v.jsx("div",{className:"space-y-2",children:t.mozMetrics.insights.map((c,l)=>v.jsxs("div",{className:"flex items-start gap-2 text-sm p-2 rounded-lg bg-background border",children:[c.type==="positive"&&v.jsx(vn,{className:"h-4 w-4 text-green-600 mt-0.5 flex-shrink-0"}),c.type==="neutral"&&v.jsx(co,{className:"h-4 w-4 text-blue-600 mt-0.5 flex-shrink-0"}),c.type==="warning"&&v.jsx(Jr,{className:"h-4 w-4 text-yellow-600 mt-0.5 flex-shrink-0"}),c.type==="negative"&&v.jsx(Jr,{className:"h-4 w-4 text-red-600 mt-0.5 flex-shrink-0"}),v.jsx("span",{children:c.message})]},l))})]})]})]})}),(t.loadingExperience||t.originLoadingExperience)&&v.jsxs(ei,{className:"lg:col-span-2",children:[v.jsxs(ci,{children:[v.jsxs(hi,{className:"flex items-center gap-2",children:[v.jsx(yo,{className:"h-5 w-5 text-[hsl(var(--mojo-purple))]"}),"Real User Experience (CrUX Data)"]}),v.jsx(ba,{children:"Chrome User Experience Report data from real users"})]}),v.jsxs(ui,{className:"space-y-4",children:[t.loadingExperience&&v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-2",children:"Page Loading Experience"}),v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[t.loadingExperience.overallCategory&&v.jsxs("div",{className:"p-3 bg-muted rounded-lg",children:[v.jsx("div",{className:"text-sm text-muted-foreground",children:"Overall Category"}),v.jsx("div",{className:"text-lg font-semibold",children:t.loadingExperience.overallCategory})]}),t.loadingExperience.metrics&&Object.keys(t.loadingExperience.metrics).map(c=>{const l=t.loadingExperience.metrics[c];return v.jsxs("div",{className:"p-3 bg-muted rounded-lg",children:[v.jsx("div",{className:"text-sm text-muted-foreground",children:c.toUpperCase()}),v.jsxs("div",{className:"text-lg font-semibold",children:[l.median,"ms"]}),v.jsx(ii,{variant:"outline",className:"text-xs",children:l.category})]},c)})]})]}),t.originLoadingExperience&&v.jsxs("div",{children:[v.jsx("h4",{className:"font-semibold mb-2",children:"Origin Loading Experience"}),v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[t.originLoadingExperience.overallCategory&&v.jsxs("div",{className:"p-3 bg-muted rounded-lg",children:[v.jsx("div",{className:"text-sm text-muted-foreground",children:"Overall Category"}),v.jsx("div",{className:"text-lg font-semibold",children:t.originLoadingExperience.overallCategory})]}),t.originLoadingExperience.metrics&&Object.keys(t.originLoadingExperience.metrics).map(c=>{const l=t.originLoadingExperience.metrics[c];return v.jsxs("div",{className:"p-3 bg-muted rounded-lg",children:[v.jsx("div",{className:"text-sm text-muted-foreground",children:c.toUpperCase()}),v.jsxs("div",{className:"text-lg font-semibold",children:[l.median,"ms"]}),v.jsx(ii,{variant:"outline",className:"text-xs",children:l.category})]},c)})]})]})]})]}),v.jsxs(ei,{children:[v.jsx(ci,{children:v.jsxs(hi,{className:"flex items-center gap-2",children:[v.jsx(wh,{className:"h-5 w-5 text-[hsl(var(--mojo-purple))]"}),"Accessibility Analysis"]})}),v.jsxs(ui,{children:[v.jsx("div",{className:"mb-4",children:v.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[v.jsx("span",{className:"text-sm font-medium",children:"Accessibility Score:"}),v.jsxs(ii,{variant:n(t.accessibility.score),children:[t.accessibility.score,"/100"]})]})}),v.jsx("div",{className:"space-y-2",children:t.accessibility.issues.map((c,l)=>v.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[v.jsx(Jr,{className:"h-4 w-4 text-yellow-600 mt-0.5 flex-shrink-0"}),v.jsx("span",{children:c})]},l))})]})]}),v.jsxs(ei,{children:[v.jsx(ci,{children:v.jsxs(hi,{className:"flex items-center gap-2",children:[v.jsx(vn,{className:"h-5 w-5 text-[hsl(var(--mojo-purple))]"}),"Best Practices Analysis"]})}),v.jsxs(ui,{children:[v.jsx("div",{className:"mb-4",children:v.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[v.jsx("span",{className:"text-sm font-medium",children:"Best Practices Score:"}),v.jsxs(ii,{variant:n(t.bestPractices.score),children:[t.bestPractices.score,"/100"]})]})}),v.jsx("div",{className:"space-y-2",children:t.bestPractices.issues.map((c,l)=>v.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[v.jsx(Jr,{className:"h-4 w-4 text-yellow-600 mt-0.5 flex-shrink-0"}),v.jsx("span",{children:c})]},l))})]})]}),t.diagnostics&&t.diagnostics.length>0&&v.jsxs(ei,{className:"lg:col-span-2",children:[v.jsxs(ci,{children:[v.jsxs(hi,{className:"flex items-center gap-2",children:[v.jsx(Jr,{className:"h-5 w-5 text-yellow-600"}),"Performance Diagnostics"]}),v.jsx(ba,{children:"Additional insights to improve your website performance"})]}),v.jsx(ui,{children:v.jsx("div",{className:"space-y-3",children:t.diagnostics.slice(0,8).map((c,l)=>v.jsxs("div",{className:"p-3 bg-muted rounded-lg",children:[v.jsxs("div",{className:"flex justify-between items-start mb-1",children:[v.jsx("span",{className:"font-medium",children:c.title}),c.displayValue&&v.jsx(ii,{variant:"outline",className:"text-xs",children:c.displayValue})]}),c.description&&v.jsx("p",{className:"text-sm text-muted-foreground",children:c.description})]},l))})})]}),t.passedAudits&&t.passedAudits.length>0&&v.jsxs(ei,{children:[v.jsxs(ci,{children:[v.jsxs(hi,{className:"flex items-center gap-2",children:[v.jsx(vn,{className:"h-5 w-5 text-green-600"}),"Passed Audits"]}),v.jsx(ba,{children:"Areas where your website excels"})]}),v.jsx(ui,{children:v.jsx("div",{className:"space-y-2 max-h-64 overflow-y-auto",children:t.passedAudits.slice(0,10).map((c,l)=>v.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[v.jsx(vn,{className:"h-4 w-4 text-green-600 mt-0.5 flex-shrink-0"}),v.jsx("span",{children:c.title})]},l))})})]}),t.environment&&v.jsxs(ei,{children:[v.jsxs(ci,{children:[v.jsxs(hi,{className:"flex items-center gap-2",children:[v.jsx(yo,{className:"h-5 w-5 text-[hsl(var(--mojo-purple))]"}),"Test Environment"]}),v.jsx(ba,{children:"Technical details about the audit environment"})]}),v.jsxs(ui,{className:"space-y-2",children:[t.environment.networkUserAgent&&v.jsxs("div",{className:"text-sm",children:[v.jsx("span",{className:"font-medium",children:"Network User Agent:"}),v.jsx("span",{className:"text-muted-foreground ml-2",children:t.environment.networkUserAgent})]}),t.environment.benchmarkIndex&&v.jsxs("div",{className:"text-sm",children:[v.jsx("span",{className:"font-medium",children:"Benchmark Index:"}),v.jsx("span",{className:"text-muted-foreground ml-2",children:t.environment.benchmarkIndex})]}),t.fetchTime&&v.jsxs("div",{className:"text-sm",children:[v.jsx("span",{className:"font-medium",children:"Test Date:"}),v.jsx("span",{className:"text-muted-foreground ml-2",children:new Date(t.fetchTime).toLocaleStr
vendor: 6,044 bytes, line 12
12ing()})]}),t.lighthouseVersion&&v.jsxs("div",{className:"text-sm",children:[v.jsx("span",{className:"font-medium",children:"Lighthouse Version:"}),v.jsx("span",{className:"text-muted-foreground ml-2",children:t.lighthouseVersion})]})]})]}),v.jsxs(ei,{children:[v.jsx(ci,{children:v.jsxs(hi,{className:"flex items-center gap-2",children:[v.jsx(vn,{className:"h-5 w-5 text-green-600"}),"Recommendations"]})}),v.jsx(ui,{children:v.jsx("div",{className:"space-y-2",children:t.seo.recommendations.map((c,l)=>v.jsxs("div",{className:"flex items-start gap-2 text-sm",children:[v.jsx(vn,{className:"h-4 w-4 text-green-600 mt-0.5 flex-shrink-0"}),v.jsx("span",{children:c})]},l))})})]})]}),v.jsx(ei,{className:"border-[hsl(var(--mojo-purple))] bg-gradient-to-r from-[hsl(var(--mojo-purple)/0.05)] to-[hsl(var(--mojo-purple-light)/0.05)]",children:v.jsxs(ui,{className:"text-center py-8",children:[v.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Ready to Boost Your E-commerce Performance?"}),v.jsx("p",{className:"text-muted-foreground mb-6 max-w-2xl mx-auto",children:"Get personalized recommendations and a detailed action plan to improve your store's performance, SEO rankings, and conversion rates."}),v.jsxs(Er,{onClick:e,size:"lg",className:"bg-gradient-to-r from-[hsl(var(--mojo-purple))] to-[hsl(var(--mojo-purple-light))] hover:opacity-90",children:[v.jsx(Zl,{className:"mr-2 h-4 w-4"}),"Book Free Consultation"]})]})})]})};function Ne(t){"@babel/helpers - typeof";return Ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ne(t)}var gr=Uint8Array,Ki=Uint16Array,mc=Int32Array,gc=new gr([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]),vc=new gr([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]),Nh=new gr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nf=function(t,i){for(var e=new Ki(31),r=0;r<31;++r)e[r]=i+=1<<t[r-1];for(var n=new mc(e[30]),r=1;r<30;++r)for(var s=e[r];s<e[r+1];++s)n[s]=s-e[r]<<5|r;return{b:e,r:n}},af=nf(gc,2),x1=af.b,Kl=af.r;x1[28]=258,Kl[258]=28;var y1=nf(vc,0),Ah=y1.r,Jl=new Ki(32768);for(var Te=0;Te<32768;++Te){var bn=(Te&43690)>>1|(Te&21845)<<1;bn=(bn&52428)>>2|(bn&13107)<<2,bn=(bn&61680)>>4|(bn&3855)<<4,Jl[Te]=((bn&65280)>>8|(bn&255)<<8)>>1}var bs=function(t,i,e){for(var r=t.length,n=0,s=new Ki(i);n<r;++n)t[n]&&++s[t[n]-1];var c=new Ki(i);for(n=1;n<i;++n)c[n]=c[n-1]+s[n-1]<<1;var l;if(e){l=new Ki(1<<i);var h=15-i;for(n=0;n<r;++n)if(t[n])for(var d=n<<4|t[n],m=i-t[n],y=c[t[n]-1]++<<m,A=y|(1<<m)-1;y<=A;++y)l[Jl[y]>>h]=d}else for(l=new Ki(r),n=0;n<r;++n)t[n]&&(l[n]=Jl[c[t[n]-1]++]>>15-t[n]);return l},Kn=new gr(288);for(var Te=0;Te<144;++Te)Kn[Te]=8;for(var Te=144;Te<256;++Te)Kn[Te]=9;for(var Te=256;Te<280;++Te)Kn[Te]=7;for(var Te=280;Te<288;++Te)Kn[Te]=8;var Co=new gr(32);for(var Te=0;Te<32;++Te)Co[Te]=5;var _1=bs(Kn,9,0),N1=bs(Co,5,0),sf=function(t){return(t+7)/8|0},A1=function(t,i,e){return(e==null||e>t.length)&&(e=t.length),new gr(t.subarray(i,e))},Xr=function(t,i,e){e<<=i&7;var r=i/8|0;t[r]|=e,t[r+1]|=e>>8},ds=function(t,i,e){e<<=i&7;var r=i/8|0;t[r]|=e,t[r+1]|=e>>8,t[r+2]|=e>>16},_l=function(t,i){for(var e=[],r=0;r<t.length;++r)t[r]&&e.push({s:r,f:t[r]});var n=e.length,s=e.slice();if(!n)return{t:lf,l:0};if(n==1){var c=new gr(e[0].s+1);return c[e[0].s]=1,{t:c,l:1}}e.sort(function(ot,lt){return ot.f-lt.f}),e.push({s:-1,f:25001});var l=e[0],h=e[1],d=0,m=1,y=2;for(e[0]={s:-1,f:l.f+h.f,l,r:h};m!=n-1;)l=e[e[d].f<e[y].f?d++:y++],h=e[d!=m&&e[d].f<e[y].f?d++:y++],e[m++]={s:-1,f:l.f+h.f,l,r:h};for(var A=s[0].s,r=1;r<n;++r)s[r].s>A&&(A=s[r].s);var p=new Ki(A+1),O=Xl(e[m-1],p,0);if(O>i){var r=0,P=0,M=O-i,j=1<<M;for(s.sort(function(lt,rt){return p[rt.s]-p[lt.s]||lt.f-rt.f});r<n;++r){var G=s[r].s;if(p[G]>i)P+=j-(1<<O-p[G]),p[G]=i;else break}for(P>>=M;P>0;){var V=s[r].s;p[V]<i?P-=1<<i-p[V]++-1:++r}for(;r>=0&&P;--r){var z=s[r].s;p[z]==i&&(--p[z],++P)}O=i}return{t:new gr(p),l:O}},Xl=function(t,i,e){return t.s==-1?Math.max(Xl(t.l,i,e+1),Xl(t.r,i,e+1)):i[t.s]=e},Sh=function(t){for(var i=t.length;i&&!t[--i];);for(var e=new Ki(++i),r=0,n=t[0],s=1,c=function(h){e[r++]=h},l=1;l<=i;++l)if(t[l]==n&&l!=i)++s;else{if(!n&&s>2){for(;s>138;s-=138)c(32754);s>2&&(c(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(c(n),--s;s>6;s-=6)c(8304);s>2&&(c(s-3<<5|8208),s=0)}for(;s--;)c(n);s=1,n=t[l]}return{c:e.subarray(0,r),n:i}},ps=function(t,i){for(var e=0,r=0;r<i.length;++r)e+=t[r]*i[r];return e},of=function(t,i,e){var r=e.length,n=sf(i+2);t[n]=r&255,t[n+1]=r>>8,t[n+2]=t[n]^255,t[n+3]=t[n+1]^255;for(var s=0;s<r;++s)t[n+s+4]=e[s];return(n+4+r)*8},Lh=function(t,i,e,r,n,s,c,l,h,d,m){Xr(i,m++,e),++n[256];for(var y=_l(n,15),A=y.t,p=y.l,O=_l(s,15),P=O.t,M=O.l,j=Sh(A),G=j.c,V=j.n,z=Sh(P),ot=z.c,lt=z.n,rt=new Ki(19),Z=0;Z<G.length;++Z)++rt[G[Z]&31];for(var Z=0;Z<ot.length;++Z)++rt[ot[Z]&31];for(var R=_l(rt,7),Q=R.t,L=R.l,I=19;I>4&&!Q[Nh[I-1]];--I);var W=d+5<<3,U=ps(n,Kn)+ps(s,Co)+c,at=ps(n,A)+ps(s,P)+c+14+3*I+ps(rt,Q)+2*rt[16]+3*rt[17]+7*rt[18];if(h>=0&&W<=U&&W<=at)return of(i,m,t.subarray(h,h+d));var ft,mt,nt,dt;if(Xr(i,m,1+(at<U)),m+=2,at<U){ft=bs(A,p,0),mt=A,nt=bs(P,M,0),dt=P;var St=bs(Q,L,0);Xr(i,m,V-257),Xr(i,m+5,lt-1),Xr(i,m+10,I-4),m+=14;for(var Z=0;Z<I;++Z)Xr(i,m+3*Z,Q[Nh[Z]]);m+=3*I;for(var yt=[G,ot],N=0;N<2;++N)for(var T=yt[N],Z=0;Z<T.length;++Z){var B=T[Z]&31;Xr(i,m,St[B]),m+=Q[B],B>15&&(Xr(i,m,T[Z]>>5&127),m+=T[Z]>>12)}}else ft=_1,mt=Kn,nt=N1,dt=Co;for(var Z=0;Z<l;++Z){var Y=r[Z];if(Y>255){var B=Y>>18&31;ds(i,m,ft[B+257]),m+=mt[B+257],B>7&&(Xr(i,m,Y>>23&31),m+=gc[B]);var K=Y&31;ds(i,m,nt[K]),m+=dt[K],K>3&&(ds(i,m,Y>>5&8191),m+=vc[K])}else ds(i,m,ft[Y]),m+=mt[Y]}return ds(i,m,ft[256]),m+mt[256]},S1=new mc([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),lf=new gr(0),L1=function(t,i,e,r,n,s){var c=s.z||t.length,l=new gr(r+c+5*(1+Math.ceil(c/7e3))+n),h=l.subarray(r,l.length-n),d=s.l,m=(s.r||0)&7;if(i){m&&(h[0]=s.r>>3);for(var y=S1[i-1],A=y>>
vendor: 10,468 bytes, lines 12-13
1213,p=y&8191,O=(1<<e)-1,P=s.p||new Ki(32768),M=s.h||new Ki(O+1),j=Math.ceil(e/3),G=2*j,V=function(ct){return(t[ct]^t[ct+1]<<j^t[ct+2]<<G)&O},z=new mc(25e3),ot=new Ki(288),lt=new Ki(32),rt=0,Z=0,R=s.i||0,Q=0,L=s.w||0,I=0;R+2<c;++R){var W=V(R),U=R&32767,at=M[W];if(P[U]=at,M[W]=U,L<=R){var ft=c-R;if((rt>7e3||Q>24576)&&(ft>423||!d)){m=Lh(t,h,0,z,ot,lt,Z,Q,I,R-I,m),Q=rt=Z=0,I=R;for(var mt=0;mt<286;++mt)ot[mt]=0;for(var mt=0;mt<30;++mt)lt[mt]=0}var nt=2,dt=0,St=p,yt=U-at&32767;if(ft>2&&W==V(R-yt))for(var N=Math.min(A,ft)-1,T=Math.min(32767,R),B=Math.min(258,ft);yt<=T&&--St&&U!=at;){if(t[R+nt]==t[R+nt-yt]){for(var Y=0;Y<B&&t[R+Y]==t[R+Y-yt];++Y);if(Y>nt){if(nt=Y,dt=yt,Y>N)break;for(var K=Math.min(yt,Y-2),tt=0,mt=0;mt<K;++mt){var ht=R-yt+mt&32767,st=P[ht],bt=ht-st&32767;bt>tt&&(tt=bt,at=ht)}}}U=at,at=P[U],yt+=U-at&32767}if(dt){z[Q++]=268435456|Kl[nt]<<18|Ah[dt];var At=Kl[nt]&31,jt=Ah[dt]&31;Z+=gc[At]+vc[jt],++ot[257+At],++lt[jt],L=R+nt,++rt}else z[Q++]=t[R],++ot[t[R]]}}for(R=Math.max(R,L);R<c;++R)z[Q++]=t[R],++ot[t[R]];m=Lh(t,h,d,z,ot,lt,Z,Q,I,R-I,m),d||(s.r=m&7|h[m/8|0]<<3,m-=7,s.h=M,s.p=P,s.i=R,s.w=L)}else{for(var R=s.w||0;R<c+d;R+=65535){var Pt=R+65535;Pt>=c&&(h[m/8|0]=d,Pt=c),m=of(h,m+1,t.subarray(R,Pt))}s.i=c}return A1(l,0,r+sf(m)+n)},cf=function(){var t=1,i=0;return{p:function(e){for(var r=t,n=i,s=e.length|0,c=0;c!=s;){for(var l=Math.min(c+2655,s);c<l;++c)n+=r+=e[c];r=(r&65535)+15*(r>>16),n=(n&65535)+15*(n>>16)}t=r,i=n},d:function(){return t%=65521,i%=65521,(t&255)<<24|(t&65280)<<8|(i&255)<<8|i>>8}}},k1=function(t,i,e,r,n){if(!n&&(n={l:1},i.dictionary)){var s=i.dictionary.subarray(-32768),c=new gr(s.length+t.length);c.set(s),c.set(t,s.length),t=c,n.w=s.length}return L1(t,i.level==null?6:i.level,i.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+i.mem,e,r,n)},hf=function(t,i,e){for(;e;++i)t[i]=e,e>>>=8},j1=function(t,i){var e=i.level,r=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=r<<6|(i.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,i.dictionary){var n=cf();n.p(i.dictionary),hf(t,2,n.d())}};function Ql(t,i){i||(i={});var e=cf();e.p(t);var r=k1(t,i,i.dictionary?6:2,4);return j1(r,i),hf(r,r.length-4,e.d()),r}var P1=typeof TextDecoder<"u"&&new TextDecoder,C1=0;try{P1.decode(lf,{stream:!0}),C1=1}catch{}function E1(t){if(Array.isArray(t))return t}function F1(t,i){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var r,n,s,c,l=[],h=!0,d=!1;try{if(s=(e=e.call(t)).next,i!==0)for(;!(h=(r=s.call(e)).done)&&(l.push(r.value),l.length!==i);h=!0);}catch(m){d=!0,n=m}finally{try{if(!h&&e.return!=null&&(c=e.return(),Object(c)!==c))return}finally{if(d)throw n}}return l}}function kh(t,i){(i==null||i>t.length)&&(i=t.length);for(var e=0,r=Array(i);e<i;e++)r[e]=t[e];return r}function I1(t,i){if(t){if(typeof t=="string")return kh(t,i);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?kh(t,i):void 0}}function O1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jh(t,i){return E1(t)||F1(t,i)||I1(t,i)||O1()}function Ph(t,i="utf8"){return new TextDecoder(i).decode(t)}const T1=new TextEncoder;function D1(t){return T1.encode(t)}const M1=1024*8,R1=(()=>{const t=new Uint8Array(4),i=new Uint32Array(t.buffer);return!((i[0]=1)&t[0])})(),Nl={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class bc{constructor(i=M1,e={}){me(this,"buffer");me(this,"byteLength");me(this,"byteOffset");me(this,"length");me(this,"offset");me(this,"lastWrittenByte");me(this,"littleEndian");me(this,"_data");me(this,"_mark");me(this,"_marks");let r=!1;typeof i=="number"?i=new ArrayBuffer(i):(r=!0,this.lastWrittenByte=i.byteLength);const n=e.offset?e.offset>>>0:0,s=i.byteLength-n;let c=n;(ArrayBuffer.isView(i)||i instanceof bc)&&(i.byteLength!==i.buffer.byteLength&&(c=i.byteOffset+n),i=i.buffer),r?this.lastWrittenByte=s:this.lastWrittenByte=0,this.buffer=i,this.length=s,this.byteLength=s,this.byteOffset=c,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,c,s),this._mark=0,this._marks=[]}available(i=1){return this.offset+i<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(i=1){return this.offset+=i,this}back(i=1){return this.offset-=i,this}seek(i){return this.offset=i,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const i=this._marks.pop();if(i===void 0)throw new Error("Mark stack empty");return this.seek(i),this}rewind(){return this.offset=0,this}ensureAvailable(i=1){if(!this.available(i)){const r=(this.offset+i)*2,n=new Uint8Array(r);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(i=1){return this.readArray(i,"uint8")}readArray(i,e){const r=Nl[e].BYTES_PER_ELEMENT*i,n=this.byteOffset+this.offset,s=this.buffer.slice(n,n+r);if(this.littleEndian===R1&&e!=="uint8"&&e!=="int8"){const l=new Uint8Array(this.buffer.slice(n,n+r));l.reverse();const h=new Nl[e](l.buffer);return this.offset+=r,h.reverse(),h}const c=new Nl[e](s);return this.offset+=r,c}readInt16(){const i=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,i}readUint16(){const i=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,i}readInt32(){const i=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,i}readUint32(){const i=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,i}readFloat32(){const i=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,i}readFloat64(){const i=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,i}readBigInt64(){const i=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,i}readBigUint64(){const i=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,i}readChar(){return String.fromCharCode(this.readInt8())}readChars(i=1){let e="";for(let r=0;r<i;r++)e+=this.readChar();return e}readUtf8(i=1){return Ph(this.readBytes(i))}decodeText(i=1,e="utf8"){return Ph(this.readBytes(i),e)}writeBoolean(i){return this.writeUint8(i?255:0),this}writeInt8(i){return this.ensureAvailable(1),this._data.setInt8(this.offset++,i),this._updateLastWrittenByte(),this}writeUint8(i){return this.ensureAvailable(1),this._data.setUint8(this.offset++,i),this._updateLastWrittenByte(),this}writeByte(i){return this.writeUint8(i)}writeBytes(i){this.ensureAvailable(i.length);for(let e=0;e<i.length;e++)this._data.setUint8(this.offset++,i[e]);return this._updateLastWrittenByte(),this}writeInt16(i){return this.ensureAvailable(2),this._data.setInt16(this.offset,i,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(i){return this.ensureAvailable(2),this._data.setUint16(this.offset,i,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(i){return this.ensureAvailable(4),this._data.setInt32(this.offset,i,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(i){return this.ensureAvailable(4),this._data.setUint32(this.offset,i,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(i){return this.ensureAvailable(4),this._data.setFloat32(this.offset,i,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(i){return this.ensureAvailable(8),this._data.setFloat64(this.offset,i,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(i){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,i,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(i){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,i,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(i){return this.writeUint8(i.charCodeAt(0))}writeChars(i){for(let e=0;e<i.length;e++)this.writeUint8(i.charCodeAt(e));return this}writeUtf8(i){return this.writeBytes(D1(i))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const B1=4,Ch=0,Eh=1,z1=2;function Ta(t){let i=t.length;for(;--i>=0;)t[i]=0}const q1=0,uf=1,U1=2,H1=3,W1=258,wc=29,Cs=256,_s=Cs+1+wc,ka=30,xc=19,ff=2*_s+1,Vn=15,Al=16,Y1=7,yc=256,df=16,pf=17,mf=18,tc=new Uint8Array([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]),_o=new Uint8Array([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]),V1=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),gf=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),G1=512,tn=new Array((_s+2)*2);Ta(tn);const ws=new Array(ka*2);Ta(ws);const Ns=new Array(G1);Ta(Ns);const As=new Array(W1-H1+1);Ta(As);const _c=new Array(wc);Ta(_c);const Eo=new Array(ka);Ta(Eo);function Sl(t,i,e,r,n){this.static_tree=t,this.extra_bits=i,this.extra_base=e,this.elems=r,this.max_length=n,this.has_stree=t&&t.length}let vf,bf,wf;function Ll(t,i){this.dyn_tree=t,this.max_code=0,this.stat_desc=i}const xf=t=>t<256?Ns[t]:Ns[256+(t>>>7)],Ss=(t,i)=>{t.pending_buf[t.pending++]=i&255,t.pending_buf[t.pending++]=i>>>8&255},Ri=(t,i,e)=>{t.bi_valid>Al-e?(t.bi_buf|=i<<t.bi_valid&65535,Ss(t,t.bi_buf),t.bi_buf=i>>Al-t.bi_valid,t.bi_valid+=e-Al):(t.bi_buf|=i<<t.bi_valid&65535,t.bi_valid+=e)},Fr=(t,i,e)=>{Ri(t,e[i*2],e[i*2+1])},yf=(t,i)=>{let e=0;do e|=t&1,t>>>=1,e<<=1;while(--i>0);return e>>>1},$1=t=>{t.bi_valid===16?(Ss(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>
vendor: 23,394 bytes, line 13
13=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},Z1=(t,i)=>{const e=i.dyn_tree,r=i.max_code,n=i.stat_desc.static_tree,s=i.stat_desc.has_stree,c=i.stat_desc.extra_bits,l=i.stat_desc.extra_base,h=i.stat_desc.max_length;let d,m,y,A,p,O,P=0;for(A=0;A<=Vn;A++)t.bl_count[A]=0;for(e[t.heap[t.heap_max]*2+1]=0,d=t.heap_max+1;d<ff;d++)m=t.heap[d],A=e[e[m*2+1]*2+1]+1,A>h&&(A=h,P++),e[m*2+1]=A,!(m>r)&&(t.bl_count[A]++,p=0,m>=l&&(p=c[m-l]),O=e[m*2],t.opt_len+=O*(A+p),s&&(t.static_len+=O*(n[m*2+1]+p)));if(P!==0){do{for(A=h-1;t.bl_count[A]===0;)A--;t.bl_count[A]--,t.bl_count[A+1]+=2,t.bl_count[h]--,P-=2}while(P>0);for(A=h;A!==0;A--)for(m=t.bl_count[A];m!==0;)y=t.heap[--d],!(y>r)&&(e[y*2+1]!==A&&(t.opt_len+=(A-e[y*2+1])*e[y*2],e[y*2+1]=A),m--)}},_f=(t,i,e)=>{const r=new Array(Vn+1);let n=0,s,c;for(s=1;s<=Vn;s++)n=n+e[s-1]<<1,r[s]=n;for(c=0;c<=i;c++){let l=t[c*2+1];l!==0&&(t[c*2]=yf(r[l]++,l))}},K1=()=>{let t,i,e,r,n;const s=new Array(Vn+1);for(e=0,r=0;r<wc-1;r++)for(_c[r]=e,t=0;t<1<<tc[r];t++)As[e++]=r;for(As[e-1]=r,n=0,r=0;r<16;r++)for(Eo[r]=n,t=0;t<1<<_o[r];t++)Ns[n++]=r;for(n>>=7;r<ka;r++)for(Eo[r]=n<<7,t=0;t<1<<_o[r]-7;t++)Ns[256+n++]=r;for(i=0;i<=Vn;i++)s[i]=0;for(t=0;t<=143;)tn[t*2+1]=8,t++,s[8]++;for(;t<=255;)tn[t*2+1]=9,t++,s[9]++;for(;t<=279;)tn[t*2+1]=7,t++,s[7]++;for(;t<=287;)tn[t*2+1]=8,t++,s[8]++;for(_f(tn,_s+1,s),t=0;t<ka;t++)ws[t*2+1]=5,ws[t*2]=yf(t,5);vf=new Sl(tn,tc,Cs+1,_s,Vn),bf=new Sl(ws,_o,0,ka,Vn),wf=new Sl(new Array(0),V1,0,xc,Y1)},Nf=t=>{let i;for(i=0;i<_s;i++)t.dyn_ltree[i*2]=0;for(i=0;i<ka;i++)t.dyn_dtree[i*2]=0;for(i=0;i<xc;i++)t.bl_tree[i*2]=0;t.dyn_ltree[yc*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},Af=t=>{t.bi_valid>8?Ss(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},Fh=(t,i,e,r)=>{const n=i*2,s=e*2;return t[n]<t[s]||t[n]===t[s]&&r[i]<=r[e]},kl=(t,i,e)=>{const r=t.heap[e];let n=e<<1;for(;n<=t.heap_len&&(n<t.heap_len&&Fh(i,t.heap[n+1],t.heap[n],t.depth)&&n++,!Fh(i,r,t.heap[n],t.depth));)t.heap[e]=t.heap[n],e=n,n<<=1;t.heap[e]=r},Ih=(t,i,e)=>{let r,n,s=0,c,l;if(t.sym_next!==0)do r=t.pending_buf[t.sym_buf+s++]&255,r+=(t.pending_buf[t.sym_buf+s++]&255)<<8,n=t.pending_buf[t.sym_buf+s++],r===0?Fr(t,n,i):(c=As[n],Fr(t,c+Cs+1,i),l=tc[c],l!==0&&(n-=_c[c],Ri(t,n,l)),r--,c=xf(r),Fr(t,c,e),l=_o[c],l!==0&&(r-=Eo[c],Ri(t,r,l)));while(s<t.sym_next);Fr(t,yc,i)},ec=(t,i)=>{const e=i.dyn_tree,r=i.stat_desc.static_tree,n=i.stat_desc.has_stree,s=i.stat_desc.elems;let c,l,h=-1,d;for(t.heap_len=0,t.heap_max=ff,c=0;c<s;c++)e[c*2]!==0?(t.heap[++t.heap_len]=h=c,t.depth[c]=0):e[c*2+1]=0;for(;t.heap_len<2;)d=t.heap[++t.heap_len]=h<2?++h:0,e[d*2]=1,t.depth[d]=0,t.opt_len--,n&&(t.static_len-=r[d*2+1]);for(i.max_code=h,c=t.heap_len>>1;c>=1;c--)kl(t,e,c);d=s;do c=t.heap[1],t.heap[1]=t.heap[t.heap_len--],kl(t,e,1),l=t.heap[1],t.heap[--t.heap_max]=c,t.heap[--t.heap_max]=l,e[d*2]=e[c*2]+e[l*2],t.depth[d]=(t.depth[c]>=t.depth[l]?t.depth[c]:t.depth[l])+1,e[c*2+1]=e[l*2+1]=d,t.heap[1]=d++,kl(t,e,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],Z1(t,i),_f(e,h,t.bl_count)},Oh=(t,i,e)=>{let r,n=-1,s,c=i[0*2+1],l=0,h=7,d=4;for(c===0&&(h=138,d=3),i[(e+1)*2+1]=65535,r=0;r<=e;r++)s=c,c=i[(r+1)*2+1],!(++l<h&&s===c)&&(l<d?t.bl_tree[s*2]+=l:s!==0?(s!==n&&t.bl_tree[s*2]++,t.bl_tree[df*2]++):l<=10?t.bl_tree[pf*2]++:t.bl_tree[mf*2]++,l=0,n=s,c===0?(h=138,d=3):s===c?(h=6,d=3):(h=7,d=4))},Th=(t,i,e)=>{let r,n=-1,s,c=i[0*2+1],l=0,h=7,d=4;for(c===0&&(h=138,d=3),r=0;r<=e;r++)if(s=c,c=i[(r+1)*2+1],!(++l<h&&s===c)){if(l<d)do Fr(t,s,t.bl_tree);while(--l!==0);else s!==0?(s!==n&&(Fr(t,s,t.bl_tree),l--),Fr(t,df,t.bl_tree),Ri(t,l-3,2)):l<=10?(Fr(t,pf,t.bl_tree),Ri(t,l-3,3)):(Fr(t,mf,t.bl_tree),Ri(t,l-11,7));l=0,n=s,c===0?(h=138,d=3):s===c?(h=6,d=3):(h=7,d=4)}},J1=t=>{let i;for(Oh(t,t.dyn_ltree,t.l_desc.max_code),Oh(t,t.dyn_dtree,t.d_desc.max_code),ec(t,t.bl_desc),i=xc-1;i>=3&&t.bl_tree[gf[i]*2+1]===0;i--);return t.opt_len+=3*(i+1)+5+5+4,i},X1=(t,i,e,r)=>{let n;for(Ri(t,i-257,5),Ri(t,e-1,5),Ri(t,r-4,4),n=0;n<r;n++)Ri(t,t.bl_tree[gf[n]*2+1],3);Th(t,t.dyn_ltree,i-1),Th(t,t.dyn_dtree,e-1)},Q1=t=>{let i=4093624447,e;for(e=0;e<=31;e++,i>>>=1)if(i&1&&t.dyn_ltree[e*2]!==0)return Ch;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return Eh;for(e=32;e<Cs;e++)if(t.dyn_ltree[e*2]!==0)return Eh;return Ch};let Dh=!1;const t2=t=>{Dh||(K1(),Dh=!0),t.l_desc=new Ll(t.dyn_ltree,vf),t.d_desc=new Ll(t.dyn_dtree,bf),t.bl_desc=new Ll(t.bl_tree,wf),t.bi_buf=0,t.bi_valid=0,Nf(t)},Sf=(t,i,e,r)=>{Ri(t,(q1<<1)+(r?1:0),3),Af(t),Ss(t,e),Ss(t,~e),e&&t.pending_buf.set(t.window.subarray(i,i+e),t.pending),t.pending+=e},e2=t=>{Ri(t,uf<<1,3),Fr(t,yc,tn),$1(t)},i2=(t,i,e,r)=>{let n,s,c=0;t.level>0?(t.strm.data_type===z1&&(t.strm.data_type=Q1(t)),ec(t,t.l_desc),ec(t,t.d_desc),c=J1(t),n=t.opt_len+3+7>>>3,s=t.static_len+3+7>>>3,s<=n&&(n=s)):n=s=e+5,e+4<=n&&i!==-1?Sf(t,i,e,r):t.strategy===B1||s===n?(Ri(t,(uf<<1)+(r?1:0),3),Ih(t,tn,ws)):(Ri(t,(U1<<1)+(r?1:0),3),X1(t,t.l_desc.max_code+1,t.d_desc.max_code+1,c+1),Ih(t,t.dyn_ltree,t.dyn_dtree)),Nf(t),r&&Af(t)},r2=(t,i,e)=>(t.pending_buf[t.sym_buf+t.sym_next++]=i,t.pending_buf[t.sym_buf+t.sym_next++]=i>>8,t.pending_buf[t.sym_buf+t.sym_next++]=e,i===0?t.dyn_ltree[e*2]++:(t.matches++,i--,t.dyn_ltree[(As[e]+Cs+1)*2]++,t.dyn_dtree[xf(i)*2]++),t.sym_next===t.sym_end);var n2=t2,a2=Sf,s2=i2,o2=r2,l2=e2,c2={_tr_init:n2,_tr_stored_block:a2,_tr_flush_block:s2,_tr_tally:o2,_tr_align:l2};const h2=(t,i,e,r)=>{let n=t&65535|0,s=t>>>16&65535|0,c=0;for(;e!==0;){c=e>2e3?2e3:e,e-=c;do n=n+i[r++]|0,s=s+n|0;while(--c);n%=65521,s%=65521}return n|s<<16|0};var Ls=h2;const u2=()=>{let t,i=[];for(var e=0;e<256;e++){t=e;for(var r=0;r<8;r++)t=t&1?3988292384^t>>>1:t>>>1;i[e]=t}return i},f2=new Uint32Array(u2()),d2=(t,i,e,r)=>{const n=f2,s=r+e;t^=-1;for(let c=r;c<s;c++)t=t>>>8^n[(t^i[c])&255];return t^-1};var pi=d2,Fa={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Es={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:p2,_tr_stored_block:ic,_tr_flush_block:m2,_tr_tally:Nn,_tr_align:g2}=c2,{Z_NO_FLUSH:An,Z_PARTIAL_FLUSH:v2,Z_FULL_FLUSH:b2,Z_FINISH:ar,Z_BLOCK:Mh,Z_OK:_i,Z_STREAM_END:Rh,Z_STREAM_ERROR:Or,Z_DATA_ERROR:w2,Z_BUF_ERROR:jl,Z_DEFAULT_COMPRESSION:x2,Z_FILTERED:y2,Z_HUFFMAN_ONLY:ho,Z_RLE:_2,Z_FIXED:N2,Z_DEFAULT_STRATEGY:A2,Z_UNKNOWN:S2,Z_DEFLATED:Do}=Es,L2=9,k2=15,j2=8,P2=29,C2=256,rc=C2+1+P2,E2=30,F2=19,I2=2*rc+1,O2=15,fe=3,yn=258,Tr=yn+fe+1,T2=32,Ia=42,Nc=57,nc=69,ac=73,sc=91,oc=103,Gn=113,gs=666,Ii=1,Da=2,Jn=3,Ma=4,D2=3,$n=(t,i)=>(t.msg=Fa[i],i),Bh=t=>t*2-(t>4?9:0),xn=t=>{let i=t.length;for(;--i>=0;)t[i]=0},M2=t=>{let i,e,r,n=t.w_size;i=t.hash_size,r=i;do e=t.head[--r],t.head[r]=e>=n?e-n:0;while(--i);i=n,r=i;do e=t.prev[--r],t.prev[r]=e>=n?e-n:0;while(--i)};let R2=(t,i,e)=>(i<<t.hash_shift^e)&t.hash_mask,Sn=R2;const Zi=t=>{const i=t.state;let e=i.pending;e>t.avail_out&&(e=t.avail_out),e!==0&&(t.output.set(i.pending_buf.subarray(i.pending_out,i.pending_out+e),t.next_out),t.next_out+=e,i.pending_out+=e,t.total_out+=e,t.avail_out-=e,i.pending-=e,i.pending===0&&(i.pending_out=0))},Ji=(t,i)=>{m2(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,i),t.block_start=t.strstart,Zi(t.strm)},we=(t,i)=>{t.pending_buf[t.pending++]=i},ms=(t,i)=>{t.pending_buf[t.pending++]=i>>>8&255,t.pending_buf[t.pending++]=i&255},lc=(t,i,e,r)=>{let n=t.avail_in;return n>r&&(n=r),n===0?0:(t.avail_in-=n,i.set(t.input.subarray(t.next_in,t.next_in+n),e),t.state.wrap===1?t.adler=Ls(t.adler,i,n,e):t.state.wrap===2&&(t.adler=pi(t.adler,i,n,e)),t.next_in+=n,t.total_in+=n,n)},Lf=(t,i)=>{let e=t.max_chain_length,r=t.strstart,n,s,c=t.prev_length,l=t.nice_match;const h=t.strstart>t.w_size-Tr?t.strstart-(t.w_size-Tr):0,d=t.window,m=t.w_mask,y=t.prev,A=t.strstart+yn;let p=d[r+c-1],O=d[r+c];t.prev_length>=t.good_match&&(e>>=2),l>t.lookahead&&(l=t.lookahead);do if(n=i,!(d[n+c]!==O||d[n+c-1]!==p||d[n]!==d[r]||d[++n]!==d[r+1])){r+=2,n++;do;while(d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&r<A);if(s=yn-(A-r),r=A-yn,s>c){if(t.match_start=i,c=s,s>=l)break;p=d[r+c-1],O=d[r+c]}}while((i=y[i&m])>h&&--e!==0);return c<=t.lookahead?c:t.lookahead},Oa=t=>{const i=t.w_size;let e,r,n;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=i+(i-Tr)&&(t.window.set(t.window.subarray(i,i+i-r),0),t.match_start-=i,t.strstart-=i,t.block_start-=i,t.insert>t.strstart&&(t.insert=t.strstart),M2(t),r+=i),t.strm.avail_in===0)break;if(e=lc(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=e,t.lookahead+t.insert>=fe)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=Sn(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=Sn(t,t.ins_h,t.window[n+fe-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<fe)););}while(t.lookahead<Tr&&t.strm.avail_in!==0)},kf=(t,i)=>{let e=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r,n,s,c=0,l=t.strm.avail_in;do{if(r=65535,s=t.bi_valid+42>>3,t.strm.avail_out<s||(s=t.strm.avail_out-s,n=t.strstart-t.block_start,r>n+t.strm.avail_in&&(r=n+t.strm.avail_in),r>s&&(r=s),r<e&&(r===0&&i!==ar||i===An||r!==n+t.strm.avail_in)))break;c=i===ar&&r===n+t.strm.avail_in?1:0,ic(t,0,0,c),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,Zi(t.strm),n&&(n>r&&(n=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+n),t.strm.next_out),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n,t.block_start+=n,r-=n),r&&(lc(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(c===0);return l-=t.strm.avail_in,l&&(l>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=l&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-l,t.strm.next_in),t.strstart),t.strstart+=l,t.insert+=l>t.w_size-t.insert?t.w_size-t.insert:l),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),c?Ma:i!==An&&i!==ar&&t.strm.avail_in===0&&t.strstart===t.block_start?Da:(s=t.window_size-t.strstart,t.strm.avail_in>s&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,s+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),s>t.strm.avail_in&&(s=t.strm.avail_in),s&&(lc(t.strm,t.window,t.strstart,s),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.high_water<t.strstart&&(t.high_water=t.strstart),s=t.bi_valid+42>>3,s=t.pending_buf_size-s>65535?65535:t.pending_buf_size-s,e=s>t.w_size?t.w_size:s,n=t.strstart-t.block_start,(n>=e||(n||i===ar)&&i!==An&&t.strm.avail_in===0&&n<=s)&&(r=n>s?s:n,c=i===ar&&t.strm.avail_in===0&&r===n?1:0,ic(t,t.block_start,r,c),t.block_start+=r,Zi(t.strm)),c?Jn:Ii)},Pl=(t,i)=>{let e,r;for(;;){if(t.lookahead<Tr){if(Oa(t),t.lookahead<Tr&&i===An)return Ii;if(t.lookahead===0)break}if(e=0,t.lookahead>=fe&&(t.ins_h=Sn(t,t.ins_h,t.window[t.strstart+fe-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),e!==0&&t.strstart-e<=t.w_size-Tr&&(t.match_length=Lf(t,e)),t.match_length>=fe)if(r=Nn(t,t.strstart-t.match_start,t.match_length-fe),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=fe){t.match_length--;do t.strstart++,t.ins_h=Sn(t,t.ins_h,t.window[t.strstart+fe-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Sn(t,t.ins_h,t.window[t.strstart+1]);else r=Nn(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(Ji(t,!1),t.strm.avail_out===0))return Ii}return t.insert=t.strstart<fe-1?t.strstart:fe-1,i===ar?(Ji(t,!0),t.strm.avail_out===0?Jn:Ma):t.sym_next&&(Ji(t,!1),t.strm.avail_out===0)?Ii:Da},wa=(t,i)=>{let e,r,n;for(;;){if(t.lookahead<Tr){if(Oa(t),t.lookahead<Tr&&i===An)return Ii;if(t.lookahead===0)break}if(e=0,t.lookahead>=fe&&(t.ins_h=Sn(t,t.ins_h,t.window[t.strstart+fe-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=fe-1,e!==0&&t.prev_length<t.max_lazy_match&&t.strstart-e<=t.w_size-Tr&&(t.match_length=Lf(t,e),t.match_length<=5&&(t.strategy===y2||t.match_length===fe&&t.strstart-t.match_start>4096)&&(t.match_length=fe-1)),t.prev_length>=fe&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-fe,r=Nn(t,t.strstart-1-t.prev_match,t.prev_length-fe),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=n&&(t.ins_h=Sn(t,t.ins_h,t.window[t.strstart+fe-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=fe-1,t.strstart++,r&&(Ji(t,!1),t.strm.avail_out===0))return Ii}else if(t.match_available){if(r=Nn(t,0,t.window[t.strstart-1]),r&&Ji(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return Ii}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=Nn(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<fe-1?t.strstart:fe-1,i===ar?(Ji(t,!0),t.strm.avail_out===0?Jn:Ma):t.sym_next&&(Ji(t,!1),t.strm.avail_out===0)?Ii:Da},B2=(t,i)=>{let e,r,n,s;const c=t.window;for(;;){if(t.lookahead<=yn){if(Oa(t),t.lookahead<=yn&&i===An)return Ii;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=fe&&t.strstart>0&&(n=t.strstart-1,r=c[n],r===c[++n]&&r===c[++n]&&r===c[++n])){s=t.strstart+yn;do;while(r===c[++n]&&r===c[++n]&&r===c[++n]&&r===c[++n]&&r===c[++n]&&r===c[++n]&&r===c[++n]&&r===c[++n]&&n<s);t.match_length=yn-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=fe?(e=Nn(t,1,t.match_length-fe),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(e=Nn(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),e&&(Ji(t,!1),t.strm.avail_out===0))return Ii}return t.insert=0,i===ar?(Ji(t,!0),t.strm.avail_out===0?Jn:Ma):t.sym_next&&(Ji(t,!1),t.strm.avail_out===0)?Ii:Da},z2=(t,i)=>{let e;for(;;){if(t.lookahead===0&&(Oa(t),t.lookahead===0)){if(i===An)return Ii;break}if(t.match_length=0,e=Nn(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,e&&(Ji(t,!1),t.strm.avail_out===0))return Ii}return t.insert=0,i===ar?(Ji(t,!0),t.strm.avail_out===0?Jn:Ma):t.sym_next&&(Ji(t,!1),t.strm.avail_out===0)?Ii:Da};function Pr(t,i,e,r,n){this.good_length=t,this.max_lazy=i,this.nice_length=e,this.max_chain=r,this.func=n}const vs=[new Pr(0,0,0,0,kf),new Pr(4,4,8,4,Pl),new Pr(4,5,16,8,Pl),new Pr(4,6,32,32,Pl),new Pr(4,4,16,16,wa),new Pr(8,16,32,32,wa),new Pr(8,16,128,128,wa),new Pr(8,32,128,256,wa),new Pr(32,128,258,1024,wa),new Pr(32,258,258,4096,wa)],q2=t=>{t.window_size=2*t.w_size,xn(t.head),t.max_lazy_match=vs[t.level].max_lazy,t.good_match=vs[t.level].good_length,t.nice_match=vs[t.level].nice_length,t.max_chain_length=vs[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=fe-1,t.match_available=0,t.ins_h=0};function U2(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Do,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(I2*2),this.dyn_dtree=new Uint16Array((2*E2+1)*2),this.bl_tree=new Uint16Array((2*F2+1)*2),xn(this.dyn_ltree),xn(this.dyn_dtree),xn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(O2+1),this.heap=new Uint16Array(2*rc+1),xn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*rc+1),xn(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Fs=t=>{if(!t)return 1;const i=t.state;return!i||i.strm!==t||i.status!==Ia&&i.status!==Nc&&i.status!==nc&&i.status!==ac&&i.status!==sc&&i.status!==oc&&i.status!==Gn&&i.status!==gs?1:0},jf=t=>{if(Fs(t))return $n(t,Or);t.total_in=t.total_out=0,t.data_type=S2;const i=t.state;return i.pending=0,i.pending_out=0,i.wrap<0&&(i.wrap=-i.wrap),i.status=i.wrap===2?Nc:i.wrap?Ia:Gn,t.adler=i.wrap===2?0:1,i.last_flush=-2,p2(i),_i},Pf=t=>{const i=jf(t);return i===_i&&q2(t.state),i},H2=(t,i)=>Fs(t)||t.state.wrap!==2?Or:(t.state.gzhead=i,_i),Cf=(t,i,e,r,n,s)=>{if(!t)return Or;let c=1;if(i===x2&&(i=6),r<0?(c=0,r=-r):r>15&&(c=2,r-=16),n<1||n>L2||e!==Do||r<8||r>15||i<0||i>9||s<0||s>N2||r===8&&c!==1)return $n(t,Or);r===8&&(r=9);const l=new U2;return t.state=l,l.strm=t,l.status=Ia,l.wrap=c,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=n+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+fe-1)/fe),l.window=new Uint8Array(l.w_size*2),l.head=new Uint16Array(l.hash_size),l.prev=new Uint16Array(l.w_size),l.lit_bufsize=1<<n+6,l.pending_buf_size=l.lit_bufsize*4,l.pending_buf=new Uint8Array(l.pending_buf_size),l.sym_buf=l.lit_bufsize,l.sym_end=(l.lit_bufsize-1)*3,l.level=i,l.strategy=s,l.method=e,Pf(t)},W2=(t,i)=>Cf(t,i,Do,k2,j2,A2),Y2=(t,i)=>{if(Fs(t)||i>Mh||i<0)return t?$n(t,Or):Or;const e=t.state;if(!t.output||t.avail_in!==0&&!t.input||e.status===gs&&i!==ar)return $n(t,t.avail_out===0?jl:Or);const r=e.last_flush;if(e.last_flush=i,e.pending!==0){if(Zi(t),t.avail_out===0)return e.last_flush=-1,_i}else if(t.avail_in===0&&Bh(i)<=Bh(r)&&i!==ar)return $n(t,jl);if(e.status===gs&&t.avail_in!==0)return $n(t,jl);if(e.status===Ia&&e.wrap===0&&(e.status=Gn),e.status===Ia){let n=Do+(e.w_bits-8<<4)<<8,s=-1;if(e.strategy>=ho||e.level<2?s=0:e.level<6?s=1:e.level===6?s=2:s=3,n|=s<<6,e.strstart!==0&&(n|=T2),n+=31-n%31,ms(e,n),e.strstart!==0&&(ms(e,t.adler>>>16),ms(e,t.adler&65535)),t.adler=1,e.status=Gn,Zi(t),e.pending!==0)return e.last_flush=-1,_i}if(e.status===Nc){if(t.adler=0,we(e,31),we(e,139),we(e,8),e.gzhead)we(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),we(e,e.gzhead.time&255),we(e,e.gzhead.time>>8&255),we(e,e.gzhead.time>>16&255),we(e,e.gzhead.time>>24&255),we(e,e.level===9?2:e.strategy>=ho||e.level<2?4:0),we(e,e.gzhead.os&255),e.gzhead.extra&&e.gzhead.extra.length&&(we(e,e.gzhead.extra.length&255),we(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=pi(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=nc;else if(we(e,0),we(e,0),we(e,0),we(e,0),we(e,0),we(e,e.level===9?2:e.strategy>=ho||e.level<2?4:0),we(e,D2),e.status=Gn,Zi(t),e.pending!==0)return e.last_flush=-1,_i}if(e.status===nc){if(e.gzhead.extra){let n=e.pending,s=(e.gzhead.extra.length&65535)-e.gzindex;for(;e.pending+s>e.pending_buf_size;){let l=e.pending_buf_size-e.pending;if(e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex,e.gzindex+l),e.pending),e.pending=e.pending_buf_size,e.gzhead.hcrc&&e.pending>n&&(t.adler=pi(t.adler,e.pending_buf,e.pending-n,n)),e.gzindex+=l,Zi(t),e.pending!==0)return e.last_flush=-1,_i;n=0,s-=l}let c=new Uint8Array(e.gzhead.extra);e.pending_buf.set(c.subarray(e.gzindex,e.gzindex+s),e.pending),e.pending+=s,e.gzhead.hcrc&&e.pending>n&&(t.adler=pi(t.adler,e.pending_buf,e.pending-n,n)),e.gzindex=0}e.status=ac}if(e.status===ac){if(e.gzhead.name){let n=e.pending,s;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>n&&(t.adler=pi(t.adler,e.pending_buf,e.pending-n,n)),Zi(t),e.pending!==0)return e.last_flush=-1,_i;n=0}e.gzindex<e.gzhead.name.length?s=e.gzhead.name.charCodeAt(e.gzindex++)&255:s=0,we(e,s)}while(s!==0);e.gzhead.hcrc&&e.pending>n&&(t.adler=pi(t.adler,e.pending_buf,e.pending-n,n)),e.gzindex=0}e.status=sc}if(e.status===sc){if(e.gzhead.comment){let n=e.pending,s;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>n&&(t.adler=pi(t.adler,e.pending_buf,e.pending-n,n)),Zi(t),e.pending!==0)return e.last_flush=-1,_i;n=0}e.gzindex<e.gzhead.comment.length?s=e.gzhead.comment.charCodeAt(e.gzindex++)&255:s=0,we(e,s)}while(s!==0);e.gzhead.hcrc&&e.pending>n&&(t.adler=pi(t.adler,e.pending_buf,e.pending-n,n))}e.status=oc}if(e.status===oc){if(e.gzhead.hcrc){if(e.pending+2>e.pending_buf_size&&(Zi(t),e.pending!==0))return e.last_flush=-1,_i;we(e,t.adler&255),we(e,t.adler>>8&255),t.adler=0}if(e.status=Gn,Zi(t),e.pending!==0)return e.last_flush=-1,_i}if(t.avail_in!==0||e.lookahead!==0||i!==An&&e.status!==gs){let n=e.level===0?kf(e,i):e.strategy===ho?z2(e,i):e.strategy===_2?B2(e,i):vs[e.level].func(e,i);if((n===Jn||n===Ma)&&(e.status=gs),n===Ii||n===Jn)return t.avail_out===0&&(e.last_flush=-1),_i;if(n===Da&&(i===v2?g2(e):i!==Mh&&(ic(e,0,0,!1),i===b2&&(xn(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),Zi(t),t.avail_out===0))return e.last_flush=-1,_i}return i!==ar?_i:e.wrap<=0?Rh:(e.wrap===2?(we(e,t.adler&255),we(e,t.adler>>8&255),we(e,t.adler>>16&255),we(e,t.adler>>24&255),we(e,t.total_in&255),we(e,t.total_in>>8&255),we(e,t.total_in>>16&255),we(e,t.total_in>>24&255)):(ms(e,t.adler>>>16),ms(e,t.adler&65535)),Zi(t),e.wrap>0&&(e.wrap=-e.wrap),e.pending!==0?_i:Rh)},V2=t=>{if(Fs(t))return Or;const i=t.state.status;return t.state=null,i===Gn?$n(t,w2):_i},G2=(t,i)=>{let e=i.length;if(Fs(t))return Or;const r=t.state,n=r.wrap;if(n===2||n===1&&r.status!==Ia||r.lookahead)return Or;if(n===1&&(t.adler=Ls(t.adler,i,e,0)),r.wrap=0,e>=r.w_size){n===0&&(xn(r.head),r.strstart=0,r.block_start=0,r.insert=0);let h=new Uint8Array(r.w_size);h.set(i.subarray(e-r.w_size,e),0),i=h,e=r.w_size}const s=t.avail_in,c=t.next_in,l=t.input;for(t.avail_in=e,t.next_in=0,t.input=i,Oa(r);r.lookahead>=fe;){let h=r.strstart,d=r.lookahead-(fe-1);do r.ins_h=Sn(r,r.ins_h,r.window[h+fe-1]),r.prev[h&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=h,h++;while(--d);r.strstart=h,r.lookahead=fe-1,Oa(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=fe-1,r.match_available=0,t.next_in=c,t.input=l,t.avail_in=s,r.wrap=n,_i};var $2=W2,Z2=Cf,K2=Pf,J2=jf,X2=H2,Q2=Y2,t0=V2,e0=G2,i0="pako deflate (from Nodeca project)",xs={deflateInit:$2,deflateInit2:Z2,deflateReset:K2,deflateResetKeep:J2,deflateSetHeader:X2,deflate:Q2,deflateEnd:t0,deflateSetDictionary:e0,deflateInfo:i0};const r0=(t,i)=>Object.prototype.hasOwnProperty.call(t,i);var n0=function(t){const i=Array.prototype.slice.call(arguments,1
vendor: 5,950 bytes, line 13
13);for(;i.length;){const e=i.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const r in e)r0(e,r)&&(t[r]=e[r])}}return t},a0=t=>{let i=0;for(let r=0,n=t.length;r<n;r++)i+=t[r].length;const e=new Uint8Array(i);for(let r=0,n=0,s=t.length;r<s;r++){let c=t[r];e.set(c,n),n+=c.length}return e},Mo={assign:n0,flattenChunks:a0};let Ef=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Ef=!1}const ks=new Uint8Array(256);for(let t=0;t<256;t++)ks[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;ks[254]=ks[254]=1;var s0=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let i,e,r,n,s,c=t.length,l=0;for(n=0;n<c;n++)e=t.charCodeAt(n),(e&64512)===55296&&n+1<c&&(r=t.charCodeAt(n+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),n++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(i=new Uint8Array(l),s=0,n=0;s<l;n++)e=t.charCodeAt(n),(e&64512)===55296&&n+1<c&&(r=t.charCodeAt(n+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),n++)),e<128?i[s++]=e:e<2048?(i[s++]=192|e>>>6,i[s++]=128|e&63):e<65536?(i[s++]=224|e>>>12,i[s++]=128|e>>>6&63,i[s++]=128|e&63):(i[s++]=240|e>>>18,i[s++]=128|e>>>12&63,i[s++]=128|e>>>6&63,i[s++]=128|e&63);return i};const o0=(t,i)=>{if(i<65534&&t.subarray&&Ef)return String.fromCharCode.apply(null,t.length===i?t:t.subarray(0,i));let e="";for(let r=0;r<i;r++)e+=String.fromCharCode(t[r]);return e};var l0=(t,i)=>{const e=i||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,i));let r,n;const s=new Array(e*2);for(n=0,r=0;r<e;){let c=t[r++];if(c<128){s[n++]=c;continue}let l=ks[c];if(l>4){s[n++]=65533,r+=l-1;continue}for(c&=l===2?31:l===3?15:7;l>1&&r<e;)c=c<<6|t[r++]&63,l--;if(l>1){s[n++]=65533;continue}c<65536?s[n++]=c:(c-=65536,s[n++]=55296|c>>10&1023,s[n++]=56320|c&1023)}return o0(s,n)},c0=(t,i)=>{i=i||t.length,i>t.length&&(i=t.length);let e=i-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?i:e+ks[t[e]]>i?e:i},js={string2buf:s0,buf2string:l0,utf8border:c0};function h0(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Ff=h0;const If=Object.prototype.toString,{Z_NO_FLUSH:u0,Z_SYNC_FLUSH:f0,Z_FULL_FLUSH:d0,Z_FINISH:p0,Z_OK:Fo,Z_STREAM_END:m0,Z_DEFAULT_COMPRESSION:g0,Z_DEFAULT_STRATEGY:v0,Z_DEFLATED:b0}=Es;function Ac(t){this.options=Mo.assign({level:g0,method:b0,chunkSize:16384,windowBits:15,memLevel:8,strategy:v0},t||{});let i=this.options;i.raw&&i.windowBits>0?i.windowBits=-i.windowBits:i.gzip&&i.windowBits>0&&i.windowBits<16&&(i.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ff,this.strm.avail_out=0;let e=xs.deflateInit2(this.strm,i.level,i.method,i.windowBits,i.memLevel,i.strategy);if(e!==Fo)throw new Error(Fa[e]);if(i.header&&xs.deflateSetHeader(this.strm,i.header),i.dictionary){let r;if(typeof i.dictionary=="string"?r=js.string2buf(i.dictionary):If.call(i.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(i.dictionary):r=i.dictionary,e=xs.deflateSetDictionary(this.strm,r),e!==Fo)throw new Error(Fa[e]);this._dict_set=!0}}Ac.prototype.push=function(t,i){const e=this.strm,r=this.options.chunkSize;let n,s;if(this.ended)return!1;for(i===~~i?s=i:s=i===!0?p0:u0,typeof t=="string"?e.input=js.string2buf(t):If.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){if(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),(s===f0||s===d0)&&e.avail_out<=6){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(n=xs.deflate(e,s),n===m0)return e.next_out>0&&this.onData(e.output.subarray(0,e.next_out)),n=xs.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Fo;if(e.avail_out===0){this.onData(e.output);continue}if(s>0&&e.next_out>0){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(e.avail_in===0)break}return!0};Ac.prototype.onData=function(t){this.chunks.push(t)};Ac.prototype.onEnd=function(t){t===Fo&&(this.result=Mo.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const uo=16209,w0=16191;var x0=function(i,e){let r,n,s,c,l,h,d,m,y,A,p,O,P,M,j,G,V,z,ot,lt,rt,Z,R,Q;const L=i.state;r=i.next_in,R=i.input,n=r+(i.avail_in-5),s=i.next_out,Q=i.output,c=s-(e-i.avail_out),l=s+(i.avail_out-257),h=L.dmax,d=L.wsize,m=L.whave,y=L.wnext,A=L.window,p=L.hold,O=L.bits,P=L.lencode,M=L.distcode,j=(1<<L.lenbits)-1,G=(1<<L.distbits)-1;t:do{O<15&&(p+=R[r++]<<O,O+=8,p+=R[r++]<<O,O+=8),V=P[p&j];e:for(;;){if(z=V>>>24,p>>>=z,O-=z,z=V>>>16&255,z===0)Q[s++]=V&65535;else if(z&16){ot=V&65535,z&=15,z&&(O<z&&(p+=R[r++]<<O,O+=8),ot+=p&(1<<z)-1,p>>>=z,O-=z),O<15&&(p+=R[r++]<<O,O+=8,p+=R[r++]<<O,O+=8),V=M[p&G];i:for(;;){if(z=V>>>24,p>>>=z,O-=z,z=V>>>16&255,z&16){if(lt=V&65535,z&=15,O<z&&(p+=R[r++]<<O,O+=8,O<z&&(p+=R[r++]<<O,O+=8)),lt+=p&(1<<z)-1,lt>h){i.msg="invalid distance too far back",L.mode=uo;break t}if(p>>>=z,O-=z,z=s-c,lt>z){if(z=lt-z,z>m&&L.sane){i.msg="invalid distance too far back",L.mode=uo;break t}if(rt=0,Z=A,y===0){if(rt+=d-z,z<ot){ot-=z;do Q[s++]=A[rt++];while(--z);rt=s-lt,Z=Q}}else if(y<z){if(rt+=d+y-z,z-=y,z<ot){ot-=z;do Q[s++]=A[rt++];while(--z);if(rt=0,y<ot){z=y,ot-=z;do Q[s++]=A[rt++];while(--z);rt=s-lt,Z=Q}}}else if(rt+=y-z,z<ot){ot-=z;do Q[s++]=A[rt++];while(--z);rt=s-lt,Z=Q}for(;ot>2;)Q[s++]=Z[rt++],Q[s++]=Z[rt++],Q[s++]=Z[rt++],ot-=3;ot&&(Q[s++]=Z[rt++],ot>1&&(Q[s++]=Z[rt++]))}else{rt=s-lt;do Q[s++]=Q[rt++],Q[s++]=Q[rt++],Q[s++]=Q[rt++],ot-=3;while(ot>2);ot&&(Q[s++]=Q[rt++],ot>1&&(Q[s++]=Q[rt++]))}}else if(z&64){i.msg="invalid distance code",L.mode=uo;break t}else{V=M[(V&65535)+(p&(1<<z)-1)];continue i}break}}else if(z&64)if(z&32){L.mode=w0;break t}else{i.msg="invalid literal/length code",L.mode=uo;break t}else{V=P[(V&65535)+(p&(1<<z)-1)];continue e}break}}while(r<n&&s<l);ot=O>>
vendor: 12,096 bytes, line 13
133,r-=ot,O-=ot<<3,p&=(1<<O)-1,i.next_in=r,i.next_out=s,i.avail_in=r<n?5+(n-r):5-(r-n),i.avail_out=s<l?257+(l-s):257-(s-l),L.hold=p,L.bits=O};const xa=15,zh=852,qh=592,Uh=0,Cl=1,Hh=2,y0=new Uint16Array([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,0,0]),_0=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),N0=new Uint16Array([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,0,0]),A0=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),S0=(t,i,e,r,n,s,c,l)=>{const h=l.bits;let d=0,m=0,y=0,A=0,p=0,O=0,P=0,M=0,j=0,G=0,V,z,ot,lt,rt,Z=null,R;const Q=new Uint16Array(xa+1),L=new Uint16Array(xa+1);let I=null,W,U,at;for(d=0;d<=xa;d++)Q[d]=0;for(m=0;m<r;m++)Q[i[e+m]]++;for(p=h,A=xa;A>=1&&Q[A]===0;A--);if(p>A&&(p=A),A===0)return n[s++]=1<<24|64<<16|0,n[s++]=1<<24|64<<16|0,l.bits=1,0;for(y=1;y<A&&Q[y]===0;y++);for(p<y&&(p=y),M=1,d=1;d<=xa;d++)if(M<<=1,M-=Q[d],M<0)return-1;if(M>0&&(t===Uh||A!==1))return-1;for(L[1]=0,d=1;d<xa;d++)L[d+1]=L[d]+Q[d];for(m=0;m<r;m++)i[e+m]!==0&&(c[L[i[e+m]]++]=m);if(t===Uh?(Z=I=c,R=20):t===Cl?(Z=y0,I=_0,R=257):(Z=N0,I=A0,R=0),G=0,m=0,d=y,rt=s,O=p,P=0,ot=-1,j=1<<p,lt=j-1,t===Cl&&j>zh||t===Hh&&j>qh)return 1;for(;;){W=d-P,c[m]+1<R?(U=0,at=c[m]):c[m]>=R?(U=I[c[m]-R],at=Z[c[m]-R]):(U=96,at=0),V=1<<d-P,z=1<<O,y=z;do z-=V,n[rt+(G>>P)+z]=W<<24|U<<16|at|0;while(z!==0);for(V=1<<d-1;G&V;)V>>=1;if(V!==0?(G&=V-1,G+=V):G=0,m++,--Q[d]===0){if(d===A)break;d=i[e+c[m]]}if(d>p&&(G&lt)!==ot){for(P===0&&(P=p),rt+=y,O=d-P,M=1<<O;O+P<A&&(M-=Q[O+P],!(M<=0));)O++,M<<=1;if(j+=1<<O,t===Cl&&j>zh||t===Hh&&j>qh)return 1;ot=G&lt,n[ot]=p<<24|O<<16|rt-s|0}}return G!==0&&(n[rt+G]=d-P<<24|64<<16|0),l.bits=p,0};var ys=S0;const L0=0,Of=1,Tf=2,{Z_FINISH:Wh,Z_BLOCK:k0,Z_TREES:fo,Z_OK:Xn,Z_STREAM_END:j0,Z_NEED_DICT:P0,Z_STREAM_ERROR:sr,Z_DATA_ERROR:Df,Z_MEM_ERROR:Mf,Z_BUF_ERROR:C0,Z_DEFLATED:Yh}=Es,Ro=16180,Vh=16181,Gh=16182,$h=16183,Zh=16184,Kh=16185,Jh=16186,Xh=16187,Qh=16188,tu=16189,Io=16190,Qr=16191,El=16192,eu=16193,Fl=16194,iu=16195,ru=16196,nu=16197,au=16198,po=16199,mo=16200,su=16201,ou=16202,lu=16203,cu=16204,hu=16205,Il=16206,uu=16207,fu=16208,De=16209,Rf=16210,Bf=16211,E0=852,F0=592,I0=15,O0=I0,du=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function T0(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Qn=t=>{if(!t)return 1;const i=t.state;return!i||i.strm!==t||i.mode<Ro||i.mode>Bf?1:0},zf=t=>{if(Qn(t))return sr;const i=t.state;return t.total_in=t.total_out=i.total=0,t.msg="",i.wrap&&(t.adler=i.wrap&1),i.mode=Ro,i.last=0,i.havedict=0,i.flags=-1,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new Int32Array(E0),i.distcode=i.distdyn=new Int32Array(F0),i.sane=1,i.back=-1,Xn},qf=t=>{if(Qn(t))return sr;const i=t.state;return i.wsize=0,i.whave=0,i.wnext=0,zf(t)},Uf=(t,i)=>{let e;if(Qn(t))return sr;const r=t.state;return i<0?(e=0,i=-i):(e=(i>>4)+5,i<48&&(i&=15)),i&&(i<8||i>15)?sr:(r.window!==null&&r.wbits!==i&&(r.window=null),r.wrap=e,r.wbits=i,qf(t))},Hf=(t,i)=>{if(!t)return sr;const e=new T0;t.state=e,e.strm=t,e.window=null,e.mode=Ro;const r=Uf(t,i);return r!==Xn&&(t.state=null),r},D0=t=>Hf(t,O0);let pu=!0,Ol,Tl;const M0=t=>{if(pu){Ol=new Int32Array(512),Tl=new Int32Array(32);let i=0;for(;i<144;)t.lens[i++]=8;for(;i<256;)t.lens[i++]=9;for(;i<280;)t.lens[i++]=7;for(;i<288;)t.lens[i++]=8;for(ys(Of,t.lens,0,288,Ol,0,t.work,{bits:9}),i=0;i<32;)t.lens[i++]=5;ys(Tf,t.lens,0,32,Tl,0,t.work,{bits:5}),pu=!1}t.lencode=Ol,t.lenbits=9,t.distcode=Tl,t.distbits=5},Wf=(t,i,e,r)=>{let n;const s=t.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),r>=s.wsize?(s.window.set(i.subarray(e-s.wsize,e),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>r&&(n=r),s.window.set(i.subarray(e-r,e-r+n),s.wnext),r-=n,r?(s.window.set(i.subarray(e-r,e),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0},R0=(t,i)=>{let e,r,n,s,c,l,h,d,m,y,A,p,O,P,M=0,j,G,V,z,ot,lt,rt,Z;const R=new Uint8Array(4);let Q,L;const I=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Qn(t)||!t.output||!t.input&&t.avail_in!==0)return sr;e=t.state,e.mode===Qr&&(e.mode=El),c=t.next_out,n=t.output,h=t.avail_out,s=t.next_in,r=t.input,l=t.avail_in,d=e.hold,m=e.bits,y=l,A=h,Z=Xn;t:for(;;)switch(e.mode){case Ro:if(e.wrap===0){e.mode=El;break}for(;m<16;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}if(e.wrap&2&&d===35615){e.wbits===0&&(e.wbits=15),e.check=0,R[0]=d&255,R[1]=d>>>8&255,e.check=pi(e.check,R,2,0),d=0,m=0,e.mode=Vh;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((d&255)<<8)+(d>>8))%31){t.msg="incorrect header check",e.mode=De;break}if((d&15)!==Yh){t.msg="unknown compression method",e.mode=De;break}if(d>>>=4,m-=4,rt=(d&15)+8,e.wbits===0&&(e.wbits=rt),rt>15||rt>e.wbits){t.msg="invalid window size",e.mode=De;break}e.dmax=1<<e.wbits,e.flags=0,t.adler=e.check=1,e.mode=d&512?tu:Qr,d=0,m=0;break;case Vh:for(;m<16;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}if(e.flags=d,(e.flags&255)!==Yh){t.msg="unknown compression method",e.mode=De;break}if(e.flags&57344){t.msg="unknown header flags set",e.mode=De;break}e.head&&(e.head.text=d>>8&1),e.flags&512&&e.wrap&4&&(R[0]=d&255,R[1]=d>>>8&255,e.check=pi(e.check,R,2,0)),d=0,m=0,e.mode=Gh;case Gh:for(;m<32;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}e.head&&(e.head.time=d),e.flags&512&&e.wrap&4&&(R[0]=d&255,R[1]=d>>>8&255,R[2]=d>>>16&255,R[3]=d>>>24&255,e.check=pi(e.check,R,4,0)),d=0,m=0,e.mode=$h;case $h:for(;m<16;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}e.head&&(e.head.xflags=d&255,e.head.os=d>>8),e.flags&512&&e.wrap&4&&(R[0]=d&255,R[1]=d>>>8&255,e.check=pi(e.check,R,2,0)),d=0,m=0,e.mode=Zh;case Zh:if(e.flags&1024){for(;m<16;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}e.length=d,e.head&&(e.head.extra_len=d),e.flags&512&&e.wrap&4&&(R[0]=d&255,R[1]=d>>>8&255,e.check=pi(e.check,R,2,0)),d=0,m=0}else e.head&&(e.head.extra=null);e.mode=Kh;case Kh:if(e.flags&1024&&(p=e.length,p>l&&(p=l),p&&(e.head&&(rt=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(s,s+p),rt)),e.flags&512&&e.wrap&4&&(e.check=pi(e.check,r,p,s)),l-=p,s+=p,e.length-=p),e.length))break t;e.length=0,e.mode=Jh;case Jh:if(e.flags&2048){if(l===0)break t;p=0;do rt=r[s+p++],e.head&&rt&&e.length<65536&&(e.head.name+=String.fromCharCode(rt));while(rt&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=pi(e.check,r,p,s)),l-=p,s+=p,rt)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=Xh;case Xh:if(e.flags&4096){if(l===0)break t;p=0;do rt=r[s+p++],e.head&&rt&&e.length<65536&&(e.head.comment+=String.fromCharCode(rt));while(rt&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=pi(e.check,r,p,s)),l-=p,s+=p,rt)break t}else e.head&&(e.head.comment=null);e.mode=Qh;case Qh:if(e.flags&512){for(;m<16;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}if(e.wrap&4&&d!==(e.check&65535)){t.msg="header crc mismatch",e.mode=De;break}d=0,m=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),t.adler=e.check=0,e.mode=Qr;break;case tu:for(;m<32;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}t.adler=e.check=du(d),d=0,m=0,e.mode=Io;case Io:if(e.havedict===0)return t.next_out=c,t.avail_out=h,t.next_in=s,t.avail_in=l,e.hold=d,e.bits=m,P0;t.adler=e.check=1,e.mode=Qr;case Qr:if(i===k0||i===fo)break t;case El:if(e.last){d>>>=m&7,m-=m&7,e.mode=Il;break}for(;m<3;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}switch(e.last=d&1,d>>>=1,m-=1,d&3){case 0:e.mode=eu;break;case 1:if(M0(e),e.mode=po,i===fo){d>>>=2,m-=2;break t}break;case 2:e.mode=ru;break;case 3:t.msg="invalid block type",e.mode=De}d>>>=2,m-=2;break;case eu:for(d>>>=m&7,m-=m&7;m<32;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}if((d&65535)!==(d>>>16^65535)){t.msg="invalid stored block lengths",e.mode=De;break}if(e.length=d&65535,d=0,m=0,e.mode=Fl,i===fo)break t;case Fl:e.mode=iu;case iu:if(p=e.length,p){if(p>l&&(p=l),p>h&&(p=h),p===0)break t;n.set(r.subarray(s,s+p),c),l-=p,s+=p,h-=p,c+=p,e.length-=p;break}e.mode=Qr;break;case ru:for(;m<14;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}if(e.nlen=(d&31)+257,d>>>=5,m-=5,e.ndist=(d&31)+1,d>>>=5,m-=5,e.ncode=(d&15)+4,d>>>=4,m-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=De;break}e.have=0,e.mode=nu;case nu:for(;e.have<e.ncode;){for(;m<3;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}e.lens[I[e.have++]]=d&7,d>>>=3,m-=3}for(;e.have<19;)e.lens[I[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,Q={bits:e.lenbits},Z=ys(L0,e.lens,0,19,e.lencode,0,e.work,Q),e.lenbits=Q.bits,Z){t.msg="invalid code lengths set",e.mode=De;break}e.have=0,e.mode=au;case au:for(;e.have<e.nlen+e.ndist;){for(;M=e.lencode[d&(1<<e.lenbits)-1],j=M>>>24,G=M>>>16&255,V=M&65535,!(j<=m);){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}if(V<16)d>>>=j,m-=j,e.lens[e.have++]=V;else{if(V===16){for(L=j+2;m<L;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}if(d>>>=j,m-=j,e.have===0){t.msg="invalid bit length repeat",e.mode=De;break}rt=e.lens[e.have-1],p=3+(d&3),d>>>=2,m-=2}else if(V===17){for(L=j+3;m<L;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}d>>>=j,m-=j,rt=0,p=3+(d&7),d>>>=3,m-=3}else{for(L=j+7;m<L;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}d>>>=j,m-=j,rt=0,p=11+(d&127),d>>>=7,m-=7}if(e.have+p>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=De;break}for(;p--;)e.lens[e.have++]=rt}}if(e.mode===De)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=De;break}if(e.lenbits=9,Q={bits:e.lenbits},Z=ys(Of,e.lens,0,e.nlen,e.lencode,0,e.work,Q),e.lenbits=Q.bits,Z){t.msg="invalid literal/lengths set",e.mode=De;break}if(e.distbits=6,e.distcode=e.distdyn,Q={bits:e.distbits},Z=ys(Tf,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,Q),e.distbits=Q.bits,Z){t.msg="invalid distances set",e.mode=De;break}if(e.mode=po,i===fo)break t;case po:e.mode=mo;case mo:if(l>=6&&h>=258){t.next_out=c,t.avail_out=h,t.next_in=s,t.avail_in=l,e.hold=d,e.bits=m,x0(t,A),c=t.next_out,n=t.output,h=t.avail_out,s=t.next_in,r=t.input,l=t.avail_in,d=e.hold,m=e.bits,e.mode===Qr&&(e.back=-1);break}for(e.back=0;M=e.lencode[d&(1<<e.lenbits)-1],j=M>>>24,G=M>>>16&255,V=M&65535,!(j<=m);){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}if(G&&!(G&240)){for(z=j,ot=G,lt=V;M=e.lencode[lt+((d&(1<<z+ot)-1)>>z)],j=M>>>24,G=M>>>16&255,V=M&65535,!(z+j<=m);){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}d>>>=z,m-=z,e.back+=z}if(d>>>=j,m-=j,e.back+=j,e.length=V,G===0){e.mode=hu;break}if(G&32){e.back=-1,e.mode=Qr;break}if(G&64){t.msg="invalid literal/length code",e.mode=De;break}e.extra=G&15,e.mode=su;case su:if(e.extra){for(L=e.extra;m<L;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}e.length+=d&(1<<e.extra)-1,d>>>=e.extra,m-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=ou;case ou:for(;M=e.distcode[d&(1<<e.distbits)-1],j=M>>>24,G=M>>>16&255,V=M&65535,!(j<=m);){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}if(!(G&240)){for(z=j,ot=G,lt=V;M=e.distcode[lt+((d&(1<<z+ot)-1)>>z)],j=M>>>24,G=M>>>16&255,V=M&65535,!(z+j<=m);){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}d>>>=z,m-=z,e.back+=z}if(d>>>=j,m-=j,e.back+=j,G&64){t.msg="invalid distance code",e.mode=De;break}e.offset=V,e.extra=G&15,e.mode=lu;case lu:if(e.extra){for(L=e.extra;m<L;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}e.offset+=d&(1<<e.extra)-1,d>>>=e.extra,m-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=De;break}e.mode=cu;case cu:if(h===0)break t;if(p=A-h,e.offset>p){if(p=e.offset-p,p>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=De;break}p>e.wnext?(p-=e.wnext,O=e.wsize-p):O=e.wnext-p,p>e.length&&(p=e.length),P=e.window}
vendor: 13,326 bytes, line 13
13else P=n,O=c-e.offset,p=e.length;p>h&&(p=h),h-=p,e.length-=p;do n[c++]=P[O++];while(--p);e.length===0&&(e.mode=mo);break;case hu:if(h===0)break t;n[c++]=e.length,h--,e.mode=mo;break;case Il:if(e.wrap){for(;m<32;){if(l===0)break t;l--,d|=r[s++]<<m,m+=8}if(A-=h,t.total_out+=A,e.total+=A,e.wrap&4&&A&&(t.adler=e.check=e.flags?pi(e.check,n,A,c-A):Ls(e.check,n,A,c-A)),A=h,e.wrap&4&&(e.flags?d:du(d))!==e.check){t.msg="incorrect data check",e.mode=De;break}d=0,m=0}e.mode=uu;case uu:if(e.wrap&&e.flags){for(;m<32;){if(l===0)break t;l--,d+=r[s++]<<m,m+=8}if(e.wrap&4&&d!==(e.total&4294967295)){t.msg="incorrect length check",e.mode=De;break}d=0,m=0}e.mode=fu;case fu:Z=j0;break t;case De:Z=Df;break t;case Rf:return Mf;case Bf:default:return sr}return t.next_out=c,t.avail_out=h,t.next_in=s,t.avail_in=l,e.hold=d,e.bits=m,(e.wsize||A!==t.avail_out&&e.mode<De&&(e.mode<Il||i!==Wh))&&Wf(t,t.output,t.next_out,A-t.avail_out),y-=t.avail_in,A-=t.avail_out,t.total_in+=y,t.total_out+=A,e.total+=A,e.wrap&4&&A&&(t.adler=e.check=e.flags?pi(e.check,n,A,t.next_out-A):Ls(e.check,n,A,t.next_out-A)),t.data_type=e.bits+(e.last?64:0)+(e.mode===Qr?128:0)+(e.mode===po||e.mode===Fl?256:0),(y===0&&A===0||i===Wh)&&Z===Xn&&(Z=C0),Z},B0=t=>{if(Qn(t))return sr;let i=t.state;return i.window&&(i.window=null),t.state=null,Xn},z0=(t,i)=>{if(Qn(t))return sr;const e=t.state;return e.wrap&2?(e.head=i,i.done=!1,Xn):sr},q0=(t,i)=>{const e=i.length;let r,n,s;return Qn(t)||(r=t.state,r.wrap!==0&&r.mode!==Io)?sr:r.mode===Io&&(n=1,n=Ls(n,i,e,0),n!==r.check)?Df:(s=Wf(t,i,e,e),s?(r.mode=Rf,Mf):(r.havedict=1,Xn))};var U0=qf,H0=Uf,W0=zf,Y0=D0,V0=Hf,G0=R0,$0=B0,Z0=z0,K0=q0,J0="pako inflate (from Nodeca project)",en={inflateReset:U0,inflateReset2:H0,inflateResetKeep:W0,inflateInit:Y0,inflateInit2:V0,inflate:G0,inflateEnd:$0,inflateGetHeader:Z0,inflateSetDictionary:K0,inflateInfo:J0};function X0(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Q0=X0;const Yf=Object.prototype.toString,{Z_NO_FLUSH:t5,Z_FINISH:e5,Z_OK:Ps,Z_STREAM_END:Dl,Z_NEED_DICT:Ml,Z_STREAM_ERROR:i5,Z_DATA_ERROR:mu,Z_MEM_ERROR:r5}=Es;function Is(t){this.options=Mo.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const i=this.options;i.raw&&i.windowBits>=0&&i.windowBits<16&&(i.windowBits=-i.windowBits,i.windowBits===0&&(i.windowBits=-15)),i.windowBits>=0&&i.windowBits<16&&!(t&&t.windowBits)&&(i.windowBits+=32),i.windowBits>15&&i.windowBits<48&&(i.windowBits&15||(i.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ff,this.strm.avail_out=0;let e=en.inflateInit2(this.strm,i.windowBits);if(e!==Ps)throw new Error(Fa[e]);if(this.header=new Q0,en.inflateGetHeader(this.strm,this.header),i.dictionary&&(typeof i.dictionary=="string"?i.dictionary=js.string2buf(i.dictionary):Yf.call(i.dictionary)==="[object ArrayBuffer]"&&(i.dictionary=new Uint8Array(i.dictionary)),i.raw&&(e=en.inflateSetDictionary(this.strm,i.dictionary),e!==Ps)))throw new Error(Fa[e])}Is.prototype.push=function(t,i){const e=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let s,c,l;if(this.ended)return!1;for(i===~~i?c=i:c=i===!0?e5:t5,Yf.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),s=en.inflate(e,c),s===Ml&&n&&(s=en.inflateSetDictionary(e,n),s===Ps?s=en.inflate(e,c):s===mu&&(s=Ml));e.avail_in>0&&s===Dl&&e.state.wrap>0&&t[e.next_in]!==0;)en.inflateReset(e),s=en.inflate(e,c);switch(s){case i5:case mu:case Ml:case r5:return this.onEnd(s),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||s===Dl))if(this.options.to==="string"){let h=js.utf8border(e.output,e.next_out),d=e.next_out-h,m=js.buf2string(e.output,h);e.next_out=d,e.avail_out=r-d,d&&e.output.set(e.output.subarray(h,h+d),0),this.onData(m)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(s===Ps&&l===0)){if(s===Dl)return s=en.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};Is.prototype.onData=function(t){this.chunks.push(t)};Is.prototype.onEnd=function(t){t===Ps&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Mo.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Sc(t,i){const e=new Is(i);if(e.push(t),e.err)throw e.msg||Fa[e.err];return e.result}function n5(t,i){return i=i||{},i.raw=!0,Sc(t,i)}var a5=Is,s5=Sc,o5=n5,l5=Sc,c5=Es,h5={Inflate:a5,inflate:s5,inflateRaw:o5,ungzip:l5,constants:c5};const{Inflate:u5,inflate:f5,inflateRaw:Ip,ungzip:Op}=h5;var gu=u5,d5=f5;const Vf=[];for(let t=0;t<256;t++){let i=t;for(let e=0;e<8;e++)i&1?i=3988292384^i>>>1:i=i>>>1;Vf[t]=i}const vu=4294967295;function p5(t,i,e){let r=t;for(let n=0;n<e;n++)r=Vf[(r^i[n])&255]^r>>>8;return r}function m5(t,i){return(p5(vu,t,i)^vu)>>>0}function bu(t,i,e){const r=t.readUint32(),n=m5(new Uint8Array(t.buffer,t.byteOffset+t.offset-i-4,i),i);if(n!==r)throw new Error(`CRC mismatch for chunk ${e}. Expected ${r}, found ${n}`)}function Gf(t,i,e){for(let r=0;r<e;r++)i[r]=t[r]}function $f(t,i,e,r){let n=0;for(;n<r;n++)i[n]=t[n];for(;n<e;n++)i[n]=t[n]+i[n-r]&255}function Zf(t,i,e,r){let n=0;if(e.length===0)for(;n<r;n++)i[n]=t[n];else for(;n<r;n++)i[n]=t[n]+e[n]&255}function Kf(t,i,e,r,n){let s=0;if(e.length===0){for(;s<n;s++)i[s]=t[s];for(;s<r;s++)i[s]=t[s]+(i[s-n]>>1)&255}else{for(;s<n;s++)i[s]=t[s]+(e[s]>>1)&255;for(;s<r;s++)i[s]=t[s]+(i[s-n]+e[s]>>1)&255}}function Jf(t,i,e,r,n){let s=0;if(e.length===0){for(;s<n;s++)i[s]=t[s];for(;s<r;s++)i[s]=t[s]+i[s-n]&255}else{for(;s<n;s++)i[s]=t[s]+e[s]&255;for(;s<r;s++)i[s]=t[s]+g5(i[s-n],e[s],e[s-n])&255}}function g5(t,i,e){const r=t+i-e,n=Math.abs(r-t),s=Math.abs(r-i),c=Math.abs(r-e);return n<=s&&n<=c?t:s<=c?i:e}function v5(t,i,e,r,n,s){switch(t){case 0:Gf(i,e,n);break;case 1:$f(i,e,n,s);break;case 2:Zf(i,e,r,n);break;case 3:Kf(i,e,r,n,s);break;case 4:Jf(i,e,r,n,s);break;default:throw new Error(`Unsupported filter: ${t}`)}}const b5=new Uint16Array([255]),w5=new Uint8Array(b5.buffer),x5=w5[0]===255;function y5(t){const{data:i,width:e,height:r,channels:n,depth:s}=t,c=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(s/8)*n,h=new Uint8Array(r*e*l);let d=0;for(let m=0;m<7;m++){const y=c[m],A=Math.ceil((e-y.x)/y.xStep),p=Math.ceil((r-y.y)/y.yStep);if(A<=0||p<=0)continue;const O=A*l,P=new Uint8Array(O);for(let M=0;M<p;M++){const j=i[d++],G=i.subarray(d,d+O);d+=O;const V=new Uint8Array(O);v5(j,G,V,P,O,l),P.set(V);for(let z=0;z<A;z++){const ot=y.x+z*y.xStep,lt=y.y+M*y.yStep;if(!(ot>=e||lt>=r))for(let rt=0;rt<l;rt++)h[(lt*e+ot)*l+rt]=V[z*l+rt]}}}if(s===16){const m=new Uint16Array(h.buffer);if(x5)for(let y=0;y<m.length;y++)m[y]=_5(m[y]);return m}else return h}function _5(t){return(t&255)<<8|t>>8&255}const N5=new Uint16Array([255]),A5=new Uint8Array(N5.buffer),S5=A5[0]===255,L5=new Uint8Array(0);function wu(t){const{data:i,width:e,height:r,channels:n,depth:s}=t,c=Math.ceil(s/8)*n,l=Math.ceil(s/8*n*e),h=new Uint8Array(r*l);let d=L5,m=0,y,A;for(let p=0;p<r;p++){switch(y=i.subarray(m+1,m+1+l),A=h.subarray(p*l,(p+1)*l),i[m]){case 0:Gf(y,A,l);break;case 1:$f(y,A,l,c);break;case 2:Zf(y,A,d,l);break;case 3:Kf(y,A,d,l,c);break;case 4:Jf(y,A,d,l,c);break;default:throw new Error(`Unsupported filter: ${i[m]}`)}d=A,m+=l+1}if(s===16){const p=new Uint16Array(h.buffer);if(S5)for(let O=0;O<p.length;O++)p[O]=k5(p[O]);return p}else return h}function k5(t){return(t&255)<<8|t>>8&255}const No=Uint8Array.of(137,80,78,71,13,10,26,10);function xu(t){if(!j5(t.readBytes(No.length)))throw new Error("wrong PNG signature")}function j5(t){if(t.length<No.length)return!1;for(let i=0;i<No.length;i++)if(t[i]!==No[i])return!1;return!0}const P5="tEXt",C5=0,Xf=new TextDecoder("latin1");function E5(t){if(I5(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}const F5=/^[\u0000-\u00FF]*$/;function I5(t){if(!F5.test(t))throw new Error("invalid latin1 text")}function O5(t,i,e){const r=Qf(i);t[r]=T5(i,e-r.length-1)}function Qf(t){for(t.mark();t.readByte()!==C5;);const i=t.offset;t.reset();const e=Xf.decode(t.readBytes(i-t.offset-1));return t.skip(1),E5(e),e}function T5(t,i){return Xf.decode(t.readBytes(i))}const $i={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Rl={UNKNOWN:-1,DEFLATE:0},yu={UNKNOWN:-1,ADAPTIVE:0},Bl={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},go={NONE:0,BACKGROUND:1,PREVIOUS:2},zl={SOURCE:0,OVER:1};class D5 extends bc{constructor(e,r={}){super(e);me(this,"_checkCrc");me(this,"_inflator");me(this,"_png");me(this,"_apng");me(this,"_end");me(this,"_hasPalette");me(this,"_palette");me(this,"_hasTransparency");me(this,"_transparency");me(this,"_compressionMethod");me(this,"_filterMethod");me(this,"_interlaceMethod");me(this,"_colorType");me(this,"_isAnimated");me(this,"_numberOfFrames");me(this,"_numberOfPlays");me(this,"_frames");me(this,"_writingDataChunks");const{checkCrc:n=!1}=r;this._checkCrc=n,this._inflator=new gu,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Rl.UNKNOWN,this._filterMethod=yu.UNKNOWN,this._interlaceMethod=Bl.UNKNOWN,this._colorType=$i.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(xu(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeChunk(e,r)}return this.decodeImage(),this._png}decodeApng(){for(xu(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(e,r)}return this.decodeApngImage(),this._apng}decodeChunk(e,r){const n=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case P5:O5(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e);break}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?bu(this,e+4,r):this.skip(4)}decodeApngChunk(e,r){const n=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,r),this.offset=n+e;break}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?bu(this,e+4,r):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=M5(this.readUint8());const r=this.readUint8();this._colorType=r;let n;switch(r){case $i.GREYSCALE:n=1;break;case $i.TRUECOLOUR:n=3;break;case $i.INDEXED_COLOUR:n=1;break;case $i.GREYSCALE_ALPHA:n=2;break;case $i.TRUECOLOUR_ALPHA:n=4;break;case $i.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==Rl.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const r=e/3;this._hasPalette=!0;const n=[];this._palette=n;for(let s=0;s<r;s++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;const r=e,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let r=e,n=this.offset+this.byteOffset;if(n+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case $i.GREYSCALE:case $i.TRUECOLOUR:{if(e%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let r=0;r<e/2;r++)this._transparency[r]=this.readUint16();break}case $i.INDEXED_COLOUR:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alph
13a values than there are palette colors (${e} vs ${this._palette.length})`);let r=0;for(;r<e;r++){const n=this.readByte();this._palette[r].push(n)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case $i.UNKNOWN:case $i.GREYSCALE_ALPHA:case $i.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const r=Qf(this),n=this.readUint8();if(n!==Rl.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${n}`);const s=this.readBytes(e-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:d5(s)}}decodepHYs(){const e=this.readUint32(),r=this.readUint32(),n=this.readByte();this._png.resolution={x:e,y:r,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){const r={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(e);if(n){if(n.data=wu({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),e===0||n.xOffset===0&&n.yOffset===0&&n.width===this._png.width&&n.height===this._png.height)r.data=n.data;else{const s=this._apng.frames.at(e-1);this.disposeFrame(n,s,r),this.addFrameDataToCanvas(r,n)}this._apng.frames.push(r)}}return this._apng}disposeFrame(e,r,n){switch(e.disposeOp){case go.NONE:break;case go.BACKGROUND:for(let s=0;s<this._png.height;s++)for(let c=0;c<this._png.width;c++){const l=(s*e.width+c)*this._png.channels;for(let h=0;h<this._png.channels;h++)n.data[l+h]=0}break;case go.PREVIOUS:n.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,r){const n=1<<this._png.depth,s=(c,l)=>{const h=((c+r.yOffset)*this._png.width+r.xOffset+l)*this._png.channels,d=(c*r.width+l)*this._png.channels;return{index:h,frameIndex:d}};switch(r.blendOp){case zl.SOURCE:for(let c=0;c<r.height;c++)for(let l=0;l<r.width;l++){const{index:h,frameIndex:d}=s(c,l);for(let m=0;m<this._png.channels;m++)e.data[h+m]=r.data[d+m]}break;case zl.OVER:for(let c=0;c<r.height;c++)for(let l=0;l<r.width;l++){const{index:h,frameIndex:d}=s(c,l);for(let m=0;m<this._png.channels;m++){const y=r.data[d+this._png.channels-1]/n,A=m%(this._png.channels-1)===0?1:r.data[d+m],p=Math.floor(y*A+(1-y)*e.data[h+m]);e.data[h+m]+=p}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var r;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const e=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==yu.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Bl.NO_INTERLACE)this._png.data=wu({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Bl.ADAM7)this._png.data=y5({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const e=this._inflator.result,r=this._frames.at(-1);r?r.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:go.NONE,blendOp:zl.SOURCE,data:e}),this._inflator=new gu,this._writingDataChunks=!1}}function M5(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var _u;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(_u||(_u={}));function R5(t,i){return new D5(t,i).decode()}var $t=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function ql(){$t.console&&typeof $t.console.log=="function"&&$t.console.log.apply($t.console,arguments)}
vendor: 4,091 bytes, lines 13-18
13var Pe={log:ql,warn:function(t){$t.console&&(typeof $t.console.warn=="function"?$t.console.warn.apply($t.console,arguments):ql.call(null,arguments))},error:function(t){$t.console&&(typeof $t.console.error=="function"?$t.console.error.apply($t.console,arguments):ql(t))}};function Ul(t,i,e){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Wn(r.response,i,e)},r.onerror=function(){Pe.error("could not download file")},r.send()}function Nu(t){var i=new XMLHttpRequest;i.open("HEAD",t,!1);try{i.send()}catch{}return i.status>=200&&i.status<=299}function vo(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var Wn=$t.saveAs||((typeof window>"u"?"undefined":Ne(window))!=="object"||window!==$t?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,i,e){var r=$t.URL||$t.webkitURL,n=document.createElement("a");i=i||t.name||"download",n.download=i,n.rel="noopener",typeof t=="string"?(n.href=t,n.origin!==location.origin?Nu(n.href)?Ul(t,i,e):vo(n,n.target="_blank"):vo(n)):(n.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){vo(n)},0))}:"msSaveOrOpenBlob"in navigator?function(t,i,e){if(i=i||t.name||"download",typeof t=="string")if(Nu(t))Ul(t,i,e);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){vo(r)})}else navigator.msSaveOrOpenBlob(function(n,s){return s===void 0?s={autoBom:!1}:Ne(s)!=="object"&&(Pe.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n}(t,e),i)}:function(t,i,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return Ul(t,i,e);var n=t.type==="application/octet-stream",s=/constructor/i.test($t.HTMLElement)||$t.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||n&&s)&&(typeof FileReader>"u"?"undefined":Ne(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var m=l.result;m=c?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=m:location=m,r=null},l.readAsDataURL(t)}else{var h=$t.URL||$t.webkitURL,d=h.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});/**
14 * A class to parse color values
15 * @author Stoyan Stefanov <[email protected]>
16 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
17 * @license Use it if you like it
18 */function td(t){var i;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={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:"90ee9
180",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"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],r=0;r<e.length;r++){var n=e[r].re,s=e[r].process,c=n.exec(t);c&&(i=s(c),this.r=i[0],this.g=i[1],this.b=i[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 l=this.r.toString(16),h=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),d.length==1&&(d="0"+d),"#"+l+h+d}}var Ao=$t.atob.bind($t),Au=$t.btoa.bind($t);/**
19 * @license
20 * Joseph Myers does not specify a particular license for his work.
21 *
22 * Author: Joseph Myers
23 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
24 *
25 * Modified by: Owen Leong
26 */function Hl(t,i){var e=t[0],r=t[1],n=t[2],s=t[3];e=Si(e,r,n,s,i[0],7,-680876936),s=Si(s,e,r,n,i[1],12,-389564586),n=Si(n,s,e,r,i[2],17,606105819),r=Si(r,n,s,e,i[3],22,-1044525330),e=Si(e,r,n,s,i[4],7,-176418897),s=Si(s,e,r,n,i[5],12,1200080426),n=Si(n,s,e,r,i[6],17,-1473231341),r=Si(r,n,s,e,i[7],22,-45705983),e=Si(e,r,n,s,i[8],7,1770035416),s=Si(s,e,r,n,i[9],12,-1958414417),n=Si(n,s,e,r,i[10],17,-42063),r=Si(r,n,s,e,i[11],22,-1990404162),e=Si(e,r,n,s,i[12],7,1804603682),s=Si(s,e,r,n,i[13],12,-40341101),n=Si(n,s,e,r,i[14],17,-1502002290),e=Li(e,r=Si(r,n,s,e,i[15],22,1236535329),n,s,i[1],5,-165796510),s=Li(s,e,r,n,i[6],9,-1069501632),n=Li(n,s,e,r,i[11],14,643717713),r=Li(r,n,s,e,i[0],20,-373897302),e=Li(e,r,n,s,i[5],5,-701558691),s=Li(s,e,r,n,i[10],9,38016083),n=Li(n,s,e,r,i[15],14,-660478335),r=Li(r,n,s,e,i[4],20,-405537848),e=Li(e,r,n,s,i[9],5,568446438),s=Li(s,e,r,n,i[14],9,-1019803690),n=Li(n,s,e,r,i[3],14,-187363961),r=Li(r,n,s,e,i[8],20,1163531501),e=Li(e,r,n,s,i[13],5,-1444681467),s=Li(s,e,r,n,i[2],9,-51403784),n=Li(n,s,e,r,i[7],14,1735328473),e=ki(e,r=Li(r,n,s,e,i[12],20,-1926607734),n,s,i[5],4,-378558),s=ki(s,e,r,n,i[8],11,-2022574463),n=ki(n,s,e,r,i[11],16,1839030562),r=ki(r,n,s,e,i[14],23,-35309556),e=ki(e,r,n,s,i[1],4,-1530992060),s=ki(s,e,r,n,i[4],11,1272893353),n=ki(n,s,e,r,i[7],16,-155497632),r=ki(r,n,s,e,i[10],23,-1094730640),e=ki(e,r,n,s,i[13],4,681279174),s=ki(s,e,r,n,i[0],11,-358537222),n=ki(n,s,e,r,i[3],16,-722521979),r=ki(r,n,s,e,i[6],23,76029189),e=ki(e,r,n,s,i[9],4,-640364487),s=ki(s,e,r,n,i[12],11,-421815835),n=ki(n,s,e,r,i[15],16,530742520),e=ji(e,r=ki(r,n,s,e,i[2],23,-995338651),n,s,i[0],6,-198630844),s=ji(s,e,r,n,i[7],10,1126891415),n=ji(n,s,e,r,i[14],15,-1416354905),r=ji(r,n,s,e,i[5],21,-57434055),e=ji(e,r,n,s,i[12],6,1700485571),s=ji(s,e,r,n,i[3],10,-1894986606),n=ji(n,s,e,r,i[10],15,-1051523),r=ji(r,n,s,e,i[1],21,-2054922799),e=ji(e,r,n,s,i[8],6,1873313359),s=ji(s,e,r,n,i[15],10,-30611744),n=ji(n,s,e,r,i[6],15,-1560198380),r=ji(r,n,s,e,i[13],21,1309151649),e=ji(e,r,n,s,i[4],6,-145523070),s=ji(s,e,r,n,i[11],10,-1120210379),n=ji(n,s,e,r,i[2],15,718787259),r=ji(r,n,s,e,i[9],21,-343485551),t[0]=_n(e,t[0]),t[1]=_n(r,t[1]),t[2]=_n(n,t[2]),t[3]=_n(s,t[3])}function Bo(t,i,e,r,n,s){return i=_n(_n(i,t),_n(r,s)),_n(i<<n|i>>>32-n,e)}function Si(t,i,e,r,n,s,c){return Bo(i&e|~i&r,t,i,n,s,c)}function Li(t,i,e,r,n,s,c){return Bo(i&r|e&~r,t,i,n,s,c)}function ki(t,i,e,r,n,s,c){return Bo(i^e^r,t,i,n,s,c)}function ji(t,i,e,r,n,s,c){return Bo(e^(i|~r),t,i,n,s,c)}function ed(t){var i,e=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(i=64;i<=t.length;i+=64)Hl(r,B5(t.substring(i-64,i)));t=t.substring(i-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i<t.length;i++)n[i>>2]|=t.charCodeAt(i)<<(i%4<<3);if(n[i>>2]|=128<<(i%4<<3),i>55)for(Hl(r,n),i=0;i<16;i++)n[i]=0;return n[14]=8*e,Hl(r,n),r}function B5(t){var i,e=[];for(i=0;i<64;i+=4)e[i>>2]=t.charCodeAt(i)+(t.charCodeAt(i+1)<<8)+(t.charCodeAt(i+2)<<16)+(t.charCodeAt(i+3)<<24);return e}var Su="0123456789abcdef".split("");function z5(t){for(var i="",e=0;e<4;e++)i+=Su[t>>8*e+4&15]+Su[t>>8*e&15];return i}function q5(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function cc(t){return ed(t).map(q5).join("")}var U5=function(t){for(var i=0;i<t.length;i++)t[i]=z5(t[i]);return t.join("")}(ed("hello"))!="5d41402abc4b2a76b9719d911017c592";function _n(t,i){if(U5){var e=(65535&t)+(65535&i);return(t>>16)+(i>>16)+(e>>16)<<16|65535&e}return t+i&4294967295}/**
27 * @license
28 * FPDF is released under a permissive license: there is no usage restriction.
29 * You may embed it freely in your application (commercial or not), with or
30 * without modifications.
31 *
32 * Reference: http://www.fpdf.org/en/script/script37.php
33 */function hc(t,i){var e,r,n,s;if(t!==e){for(var c=(n=t,s=1+(256/t.length|0),new Array(s+1).join(n)),l=[],h=0;h<256;h++)l[h]=h;var d=0;for(h=0;h<256;h++){var m=l[h];d=(d+m+c.charCodeAt(h))%256,l[h]=l[d],l[d]=m}e=t,r=l}else l=r;var y=i.length,A=0,p=0,O="";for(h=0;h<y;h++)p=(p+(m=l[A=(A+1)%256]))%256,l[A]=l[p],l[p]=m,c=l[(l[A]+l[p])%256],O+=String.fromCharCode(i.charCodeAt(h)^c);return O}/**
34 * @license
35 * Licensed under the MIT License.
36 * http://opensource.org/licenses/mit-license
37 * Author: Owen Leong (@owenl131)
38 * Date: 15 Oct 2020
39 * References:
40 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
41 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
42 * http://www.fpdf.org/en/script/script37.php
43 */var Lu={print:4,modify:8,copy:16,"annot-forms":32};function Aa(t,i,e,r){this.v=1,this.r=2;var n=192;t.forEach(function(l){if(Lu.perm!==void 0)throw new Error("Invalid permission: "+l);n+=Lu[l]}),this.padding="(¿N^NuŠAd\0NVÿú�\b..\0¶Ðh>€/\f©þdSiz";var s=(i+this.padding).substr(0,32),c=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,c),this.P=-(1+(255^n)),this.encryptionKey=cc(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=hc(this.encryptionKey,this.padding)}function Sa(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var i="",e=t.length,r=0;r<e;r++){var n=t.charCodeAt(r);i+=n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?"#"+("0"+n.toString(16)).slice(-2):t[r]}return i}function ku(t){if(Ne(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var i={};this.subscribe=function(e,r,n){if(n=n||!1,typeof e!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");i.hasOwnProperty(e)||(i[e]={});var s=Math.random().toString(35);return i[e][s]=[r,!!n],s},this.unsubscribe=function(e){for(var r in i)if(i[r][e])return delete i[r][e],Object.keys(i[r]).length===0&&delete i[r],!0;return!1},this.publish=function(e){if(i.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1
vendor: 4,098 bytes, line 43
43),n=[];for(var s in i[e]){var c=i[e][s];try{c[0].apply(t,r)}catch(l){$t.console&&Pe.error("jsPDF PubSub Error",l.message,l)}c[1]&&n.push(s)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return i}}function Oo(t){if(!(this instanceof Oo))return new Oo(t);var i="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&i.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function id(t,i){this.gState=t,this.matrix=i,this.id="",this.objectNumber=-1}function Yn(t,i,e,r,n){if(!(this instanceof Yn))return new Yn(t,i,e,r,n);this.type=t==="axial"?2:3,this.coords=i,this.colors=e,id.call(this,r,n)}function La(t,i,e,r,n){if(!(this instanceof La))return new La(t,i,e,r,n);this.boundingBox=t,this.xStep=i,this.yStep=e,this.stream="",this.cloneIndex=0,id.call(this,r,n)}function Rt(t){var i,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],s=arguments[3],c=[],l=1,h=16,d="S",m=null;Ne(t=t||{})==="object"&&(e=t.orientation,r=t.unit||r,n=t.format||n,s=t.compress||t.compressPdf||s,(m=t.encryption||null)!==null&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),l=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(i=t.precision),t.floatPrecision!==void 0&&(h=t.floatPrecision),d=t.defaultPathOperation||"S"),c=t.filters||(s===!0?["FlateEncode"]:c),r=r||"mm",e=(""+(e||"P")).toLowerCase();var y=t.putOnlyUsedFonts||!1,A={},p={internal:{},__private__:{}};p.__private__.PubSub=ku;var O="1.3",P=p.__private__.getPdfVersion=function(){return O};p.__private__.setPdfVersion=function(u){O=u};var M={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return M};var j=p.__private__.getPageFormat=function(u){return M[u]};n=n||"a4";var G="compat",V="advanced",z=G;function ot(){this.saveGraphicsState(),D(new Yt(Vt,0,0,-Vt,0,zi()*Vt).toString()+" cm"),this.setFontSize(this.getFontSize()/Vt),d="n",z=V}function lt(){this.restoreGraphicsState(),d="S",z=G}var rt=p.__private__.combineFontStyleAndFontWeight=function(u,w){if(u=="bold"&&w=="normal"||u=="bold"&&w==400||u=="normal"&&w=="italic"||u=="bold"&&w=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return w&&(u=w==400||w==="normal"?u==="italic"?"italic":"normal":w!=700&&w!=="bold"||u!=="normal"?(w==700?"bold":w)+""+u:"bold"),u};p.advancedAPI=function(u){var w=z===G;return w&&ot.call(this),typeof u!="function"||(u(this),w&&lt.call(this)),this},p.compatAPI=function(u){var w=z===V;return w&&lt.call(this),typeof u!="function"||(u(this),w&&ot.call(this)),this},p.isAdvancedAPI=function(){return z===V};var Z,R=function(u){if(z!==V)throw new Error(u+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Q=p.roundToPrecision=p.__private__.roundToPrecision=function(u,w){var F=i||w;if(isNaN(u)||isNaN(F))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return u.toFixed(F).replace(/0+$/,"")};Z=p.hpf=p.__private__.hpf=typeof h=="number"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(u,h)}:h==="smart"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(u,u>-1&&u<1?16:5)}:function(u){if(isNaN(u))throw new Error("Invalid argument passed to 
43jsPDF.hpf");return Q(u,16)};var L=p.f2=p.__private__.f2=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f2");return Q(u,2)},I=p.__private__.f3=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f3");return Q(u,3)},W=p.scale=p.__private__.scale=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.scale");return z===G?u*Vt:z===V?u:void 0},U=function(u){return W(function(w){return z===G?zi()-w:z===V?w:void 0}(u))};p.__private__.setPrecision=p.setPrecision=function(u){typeof parseInt(u,10)=="number"&&(i=parseInt(u,10))};var at,ft="00000000000000000000000000000000",mt=p.__private__.getFileId=function(){return ft},nt=p.__private__.setFileId=function(u){return ft=u!==void 0&&/^[a-fA-F0-9]{32}$/.test(u)?u.toUpperCase():ft.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),m!==null&&(He=new Aa(m.userPermissions,m.userPassword,m.ownerPassword,ft)),ft};p.setFileId=function(u){return nt(u),this},p.getFileId=function(){return mt()};var dt=p.__private__.convertDateToPDFDate=function(u){var w=u.getTimezoneOffset(),F=w<0?"+":"-",q=Math.floor(Math.abs(w/60)),J=Math.abs(w%60),gt=[F,B(q),"'",B(J),"'"].join("");return["D:",u.getFullYear(),B(u.getMonth()+1),B(u.getDate()),B(u.getHours()),B(u.getMinutes()),B(u.getSeconds()),gt].join("")},St=p.__private__.convertPDFDateToDate=function(u){var w=parseInt(u.substr(2,4),10),F=parseInt(u.substr(6,2),10)-1,q=parseInt(u.substr(8,2),10),J=parseInt(u.substr(10,2),10),gt=parseInt(u.substr(12,2),10),xt=parseInt(u.substr(14,2),10);return new Date(w,F,q,J,gt,xt,0)},yt=p.__private__.setCreationDate=function(u){var w;if(u===void 0&&(u=new Date),u instanceof Date)w=dt(u);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(u))throw new Error("Invalid argument passed to jsPDF.setCreationDate");w=u}return at=w},N=p.__private__.getCreationDate=function(u){var w=at;return u==="jsDate"&&(w=St(at)),w};p.setCreationDate=function(u){return yt(u),this},p.getCreationDate=function(u){return N(u)};var T,B=p.__private__.padd2=function(u){return("0"+parseInt(u)).slice(-2)},Y=p.__private__.padd2Hex=function(u){return("00"+(u=u.toString())).substr(u.length)},K=0,tt=[],ht=[],st=0,bt=[],At=[],jt=!1,Pt=ht;p.__private__.setCustomOutputDestination=function(u){jt=!0,Pt=u};var ct=function(u){jt||(Pt=u)};p.__private__.resetCustomOutputDestination=function(){jt=!1,Pt=ht};var D=p.__private__.out=function(u){return u=u.toString(),st+=u.length+1,Pt.push(u),Pt},ce=p.__private__.write=function(u){return D(arguments.length===1?u.toString():Array.prototype.join.call(arguments," "))},re=p.__private__.getArrayBuffer=function(u){for(var w=u.length,F=new ArrayBuffer(w),q=new Uint8Array(F);w--;)q[w]=u.charCodeAt(w);return F},Ht=[["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]];p.__private__.getStandardFonts=function(){return Ht};var Nt=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(u){return Nt=z===V?u/Vt:u,this};var Bt,kt=p.__private__.getFontSize=p.getFontSize=function(){return z===G?Nt:Nt*Vt},ne=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(u){return ne=u,this},p.__private__.getR2L=p.getR2L=function(){return ne};var Ut,ge=p.__private__.setZoomMode=function(u){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(u))Bt=u;else if(isNaN(u)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(u)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+u+'" is not recognized.');Bt=u}else Bt=parseInt(u,10)};p.__private__.getZoomMode=function(){return Bt};var Xt,Qt=p.__private__.setPageMode=function(u){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(u)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+u+'" is not recognized.');Ut=u};p.__private__.getPageMode=function(){return Ut};var Ae=p.__private__.setLayoutMode=function(u){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(u)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+u+'" is not recognized.');Xt=u};p.__private__.getLayoutMode=function(){return Xt},p.__private__.setDisplayMode=p.setDisplayMode=function(u,w,F){return ge(u),Ae(w),Qt(F),this};var ae={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(u){if(Object.keys(ae).indexOf(u)===-1)throw new Error("Invalid argument passed to 
43jsPDF.getDocumentProperty");return ae[u]},p.__private__.getDocumentProperties=function(){return ae},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(u){for(var w in ae)ae.hasOwnProperty(w)&&u[w]&&(ae[w]=u[w]);return this},p.__private__.setDocumentProperty=function(u,w){if(Object.keys(ae).indexOf(u)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ae[u]=w};var zt,Vt,qt,Ce,ve,Dt={},te={},Le=[],Wt={},he={},ee={},Ue={},ri=null,ke=0,Zt=[],xe=new ku(p),kn=t.hotfixes||[],Ni={},Mr={},wr=[],Yt=function u(w,F,q,J,gt,xt){if(!(this instanceof u))return new u(w,F,q,J,gt,xt);isNaN(w)&&(w=1),isNaN(F)&&(F=0),isNaN(q)&&(q=0),isNaN(J)&&(J=1),isNaN(gt)&&(gt=0),isNaN(xt)&&(xt=0),this._matrix=[w,F,q,J,gt,xt]};Object.defineProperty(Yt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(Yt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(Yt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(Yt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(Yt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(Yt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(Yt.prototype,"a",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(Yt.prototype,"b",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(Yt.prototype,"c",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(Yt.prototype,"d",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(Yt.prototype,"e",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(Yt.prototype,"f",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(Yt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Yt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Yt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Yt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Yt.prototype.join=function(u){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Z).join(u)},Yt.prototype.multiply=function(u){var w=u.sx*this.sx+u.shy*this.shx,F=u.sx*this.shy+u.shy*this.sy,q=u.shx*this.sx+u.sy*this.shx,J=u.shx*this.shy+u.sy*this.sy,gt=u.tx*this.sx+u.ty*this.shx+this.tx,xt=u.tx*this.shy+u.ty*this.sy+this.ty;return new Yt(w,F,q,J,gt,xt)},Yt.prototype.decompose=function(){var u=this.sx,w=this.shy,F=this.shx,q=this.sy,J=this.tx,gt=this.ty,xt=Math.sqrt(u*u+w*w),Ft=(u/=xt)*F+(w/=xt)*q;F-=u*Ft,q-=w*Ft;var Tt=Math.sqrt(F*F+q*q);return Ft/=Tt,u*(q/=Tt)<w*(F/=Tt)&&(u=-u,w=-w,Ft=-Ft,xt=-xt),{scale:new Yt(xt,0,0,Tt,0,0),translate:new Yt(1,0,0,1,J,gt),rotate:new Yt(u,w,-w,u,0,0),skew:new Yt(1,0,Ft,1,0,0)}},Yt.prototype.toString=function(u){return this.join(" ")},Yt.prototype.inversed=function(){var u=this.sx,w=this.shy,F=this.shx,q=this.sy,J=this.tx,gt=this.ty,xt=1/(u*q-w*F),Ft=q*xt,Tt=-w*xt,Gt=-F*xt,se=u*xt;return new Yt(Ft,Tt,Gt,se,-Ft*J-Gt*gt,-Tt*J-se*gt)},Yt.prototype.applyToPoint=function(u){var w=u.x*this.sx+u.y*this.shx+this.tx,F=u.x*this.shy+u.y*this.sy+this.ty;return new Mn(w,F)},Yt.prototype.applyToRectangle=function(u){var w=this.applyToPoint(u),F=this.applyToPoint(new Mn(u.x+u.w,u.y+u.h));return new $a(w.x,w.y,F.x-w.x,F.y-w.y)},Yt.prototype.clone=function(){var u=this.sx,w=this.shy,F=this.shx,q=this.sy,J=this.tx,gt=this.ty;return new Yt(u,w,F,q,J,gt)},p.Matrix=Yt;var Rr=p.matrixMult=function(u,w){return w.multiply(u)},Br=new Yt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Br;var Xi=function(u,w){if(!he[u]){var F=(w instanceof Yn?"Sh":"P")+(Object.keys(Wt).length+1).toString(10);w.id=F,he[u]=F,Wt[F]=w,xe.publish("addPattern",w)}};p.ShadingPattern=Yn,p.TilingPattern=La,p.addShadingPattern=function(u,w){return R("addShadingPattern()"),Xi(u,w),this},p.beginTilingPattern=function(u){R("beginTilingPattern()"),Za(u.boundingBox[0],u.boundingBox[1],u.boundingBox[2]-u.boundingBox[0],u.boundingBox[3]-u.boundingBox[1],u.matrix)},p.endTilingPattern=function(u,w){R("endTilingPattern()"),w.stream=At[T].join(`
44`),Xi(u,w),xe.publish("endTilingPattern",w),wr.pop().restore()};var Qi,Re=p.__private__.newObject=function(){var u=fi();return vi(u,!0),u},fi=p.__private__.newObjectDeferred=function(){return K++,tt[K]=function(){return st},K},vi=function(u,w){return w=typeof w=="boolean"&&w,tt[u]=st,w&&D(u+" 0 obj"),u},jn=p.__private__.newAdditionalObject=function(){var u={objId:fi(),content:""};return bt.push(u),u},rn=fi(),or=fi(),xr=p.__private__.decodeColorString=function(u){var w=u.split(" ");if(w.length!==2||w[1]!=="g"&&w[1]!=="G")w.length!==5||w[4]!=="k"&&w[4]!=="K"||(w=[(1-w[0])*(1-w[3]),(1-w[1])*(1-w[3]),(1-w[2])*(1-w[3]),"r"]);else{var F=parseFloat(w[0]);w=[F,F,F,"r"]}for(var q="#",J=0;J<3;J++)q+=("0"+Math.floor(255*parseFloat(w[J])).toString(16)).slice(-2);return q},lr=p.__private__.encodeColorString=function(u){var w;typeof u=="string"&&(u={ch1:u});var F=u.ch1,q=u.ch2,J=u.ch3,gt=u.ch4,xt=u.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof F=="string"&&F.charAt(0)!=="#"){var Ft=new td(F);if(Ft.ok)F=Ft.toHex();else if(!/^\d*\.?\d*$/.test(F))throw new Error('Invalid color "'+F+'" passed to jsPDF.encodeColorString.')}if(typeof F=="string"&&/^#[0-9A-Fa-f]{3}$/.test(F)&&(F="#"+F[1]+F[1]+F[2]+F[2]+F[3]+F[3]),typeof F=="string"&&/^#[0-9A-Fa-f]{6}$/.test(F)){var Tt=parseInt(F.substr(1),16);F=Tt>>16&255,q=Tt>>8&255,J=255&Tt}if(q===void 0||gt===void 0&&F===q&&q===J)w=typeof F=="string"?F+" "+xt[0]:u.precision===2?L(F/255)+" "+xt[0]:I(F/255)+" "+xt[0];else if(gt===void 0||Ne(gt)==="object"){if(gt&&!isNaN(gt.a)&&gt.a===0)return["1.","1.","1.",xt[1]].join(" ");w=typeof F=="string"?[F,q,J,xt[1]].join(" "):u.precision===2?[L(F/255),L(q/255),L(J/255),xt[1]].join(" "):[I(F/255),I(q/255),I(J/255),xt[1]].join(" ")}else w=typeof F=="string"?[F,q,J,gt,xt[2]].join(" "):u.precision===2?[L(F),L(q),L(J),L(gt),xt[2]].join(" "):[I(F),I(q),I(J),I(gt),xt[2]].join(" ");return w},cr=p.__private__.getFilters=function(){return c},tr=p.__private__.putStream=function(u){var w=(u=u||{}).data||"",F=u.filters||cr(),q=u.alreadyAppliedFilters||[],J=u.addLength1||!1,gt=w.length,xt=u.objectId,Ft=function(ni){return ni};if(m!==null&&xt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");m!==null&&(Ft=He.encryptor(xt,0));var Tt={};F===!0&&(F=["FlateEncode"]);var Gt=u.additionalKeyValues||[],se=(Tt=Rt.API.processDataByFilters!==void 0?Rt.API.processDataByFilters(w,F):{data:w,reverseChain:[]}).reverseChain+(Array.isArray(q)?q.join(" "):q.toString());if(Tt.data.length!==0&&(Gt.push({key:"Length",value:Tt.data.length}),J===!0&&Gt.push({key:"Length1",value:gt})),se.length!=0)if(se.split("/").length-1==1)Gt.push({key:"Filter",value:se});else{Gt.push({key:"Filter",value:"["+se+"]"});for(var be=0;be<Gt.length;be+=1)if(Gt[be].key==="DecodeParms"){for(var Me=[],Qe=0;Qe<Tt.reverseChain.split("/").length-1;Qe+=1)Me.push("null");Me.push(Gt[be].value),Gt[be].value="["+Me.join(" ")+"]"}}D("<<");for(var Se=0;Se<Gt.length;Se++)D("/"+Gt[Se].key+" "+Gt[Se].value);D(">>"),Tt.data.length!==0&&(D("stream"),D(Ft(Tt.data)),D("endstream"))},Pn=p.__private__.putPage=function(u){var w=u.number,F=u.data,q=u.objId,J=u.contentsObjId;vi(q,!0),D("<</Type /Page"),D("/Parent "+u.rootDictionaryObjId+" 0 R"),D("/Resources "+u.resourceDictionaryObjId+" 0 R"),D("/MediaBox ["+parseFloat(Z(u.mediaBox.bottomLeftX))+" "+parseFloat(Z(u.mediaBox.bottomLeftY))+" "+Z(u.mediaBox.topRightX)+" "+Z(u.mediaBox.topRightY)+"]"),u.cropBox!==null&&D("/CropBox ["+Z(u.cropBox.bottomLeftX)+" "+Z(u.cropBox.bottomLeftY)+" "+Z(u.cropBox.topRightX)+" "+Z(u.cropBox.topRightY)+"]"),u.bleedBox!==null&&D("/BleedBox ["+Z(u.bleedBox.bottomLeftX)+" "+Z(u.bleedBox.bottomLeftY)+" "+Z(u.bleedBox.topRightX)+" "+Z(u.bleedBox.topRightY)+"]"),u.trimBox!==null&&D("/TrimBox ["+Z(u.trimBox.bottomLeftX)+" "+Z(u.trimBox.bottomLeftY)+" "+Z(u.trimBox.topRightX)+" "+Z(u.trimBox.topRightY)+"]"),u.artBox!==null&&D("/ArtBox ["+Z(u.artBox.bottomLeftX)+" "+Z(u.artBox.bottomLeftY)+" "+Z(u.artBox.topRightX)+" "+Z(u.artBox.topRightY)+"]"),typeof u.userUnit=="number"&&u.userUnit!==1&&D("/UserUnit "+u.userUnit),xe.publish("putPage",{objId:q,pageContext:Zt[w],pageNumber:w,page:F}),D("/Contents "+J+" 0 R"),D(">>"),D("endobj");var gt=F.join(`
45`);return z===V&&(gt+=`
46Q`),vi(J,!0),tr({data:gt,filters:cr(),objectId:J}),D("endobj"),q},yr=p.__private__.putPages=function(){var u,w,F=[];for(u=1;u<=ke;u++)Zt[u].objId=fi(),Zt[u].contentsObjId=fi();for(u=1;u<=ke;u++)F.push(Pn({number:u,data:At[u],objId:Zt[u].objId,contentsObjId:Zt[u].contentsObjId,mediaBox:Zt[u].mediaBox,cropBox:Zt[u].cropBox,bleedBox:Zt[u].bleedBox,trimBox:Zt[u].trimBox,artBox:Zt[u].artBox,userUnit:Zt[u].userUnit,rootDictionaryObjId:rn,resourceDictionaryObjId:or}));vi(rn,!0),D("<</Type /Pages");var q="/Kids [";for(w=0;w<ke;w++)q+=F[w]+" 0 R ";D(q+"]"),D("/Count "+ke),D(">>"),D("endobj"),xe.publish("postPutPages")},Cn=function(u){xe.publish("putFont",{font:u,out:D,newObject:Re,putStream:tr}),u.isAlreadyPutted!==!0&&(u.objectNumber=Re(),D("<<"),D("/Type /Font"),D("/BaseFont /"+Sa(u.postScriptName)),D("/Subtype /Type1"),typeof u.encoding=="string"&&D("/Encoding /"+u.encoding),D("/FirstChar 32"),D("/LastChar 255"),D(">>"),D("endobj"))},ea=function(u){u.objectNumber=Re();var w=[];w.push({key:"Type",value:"/XObject"}),w.push({key:"Subtype",value:"/Form"}),w.push({key:"BBox",value:"["+[Z(u.x),Z(u.y),Z(u.x+u.width),Z(u.y+u.height)].join(" ")+"]"}),w.push({key:"Matrix",value:"["+u.matrix.toString()+"]"});var F=u.pages[1].join(`
47`);tr({data:F,additionalKeyValues:w,objectId:u.objectNumber}),D("endobj")},ia=function(u,w){w||(w=21);var F=Re(),q=function(xt,Ft){var Tt,Gt=[],se=1/(Ft-1);for(Tt=0;Tt<1;Tt+=se)Gt.push(Tt);if(Gt.push(1),xt[0].offset!=0){var be={offset:0,color:xt[0].color};xt.unshift(be)}if(xt[xt.length-1].offset!=1){var Me={offset:1,color:xt[xt.length-1].color};xt.push(Me)}for(var Qe="",Se=0,ni=0;ni<Gt.length;ni++){for(Tt=Gt[ni];Tt>xt[Se+1].offset;)Se++;
vendor: 5,667 bytes, line 47
47var ti=xt[Se].offset,bi=(Tt-ti)/(xt[Se+1].offset-ti),Hr=xt[Se].color,sn=xt[Se+1].color;Qe+=Y(Math.round((1-bi)*Hr[0]+bi*sn[0]).toString(16))+Y(Math.round((1-bi)*Hr[1]+bi*sn[1]).toString(16))+Y(Math.round((1-bi)*Hr[2]+bi*sn[2]).toString(16))}return Qe.trim()}(u.colors,w),J=[];J.push({key:"FunctionType",value:"0"}),J.push({key:"Domain",value:"[0.0 1.0]"}),J.push({key:"Size",value:"["+w+"]"}),J.push({key:"BitsPerSample",value:"8"}),J.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),J.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),tr({data:q,additionalKeyValues:J,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:F}),D("endobj"),u.objectNumber=Re(),D("<< /ShadingType "+u.type),D("/ColorSpace /DeviceRGB");var gt="/Coords ["+Z(parseFloat(u.coords[0]))+" "+Z(parseFloat(u.coords[1]))+" ";u.type===2?gt+=Z(parseFloat(u.coords[2]))+" "+Z(parseFloat(u.coords[3])):gt+=Z(parseFloat(u.coords[2]))+" "+Z(parseFloat(u.coords[3]))+" "+Z(parseFloat(u.coords[4]))+" "+Z(parseFloat(u.coords[5])),D(gt+="]"),u.matrix&&D("/Matrix ["+u.matrix.toString()+"]"),D("/Function "+F+" 0 R"),D("/Extend [true true]"),D(">>"),D("endobj")},ra=function(u,w){var F=fi(),q=Re();w.push({resourcesOid:F,objectOid:q}),u.objectNumber=q;var J=[];J.push({key:"Type",value:"/Pattern"}),J.push({key:"PatternType",value:"1"}),J.push({key:"PaintType",value:"1"}),J.push({key:"TilingType",value:"1"}),J.push({key:"BBox",value:"["+u.boundingBox.map(Z).join(" ")+"]"}),J.push({key:"XStep",value:Z(u.xStep)}),J.push({key:"YStep",value:Z(u.yStep)}),J.push({key:"Resources",value:F+" 0 R"}),u.matrix&&J.push({key:"Matrix",value:"["+u.matrix.toString()+"]"}),tr({data:u.stream,additionalKeyValues:J,objectId:u.objectNumber}),D("endobj")},zo=function(u){for(var w in u.objectNumber=Re(),D("<<"),u)switch(w){case"opacity":D("/ca "+L(u[w]));break;case"stroke-opacity":D("/CA "+L(u[w]))}D(">>"),D("endobj")},Ra=function(u){vi(u.resourcesOid,!0),D("<<"),D("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var w in D("/Font <<"),Dt)Dt.hasOwnProperty(w)&&(y===!1||y===!0&&A.hasOwnProperty(w))&&D("/"+w+" "+Dt[w].objectNumber+" 0 R");D(">>")}(),function(){if(Object.keys(Wt).length>0){for(var w in D("/Shading <<"),Wt)Wt.hasOwnProperty(w)&&Wt[w]instanceof Yn&&Wt[w].objectNumber>=0&&D("/"+w+" "+Wt[w].objectNumber+" 0 R");xe.publish("putShadingPatternDict"),D(">>")}}(),function(w){if(Object.keys(Wt).length>0){for(var F in D("/Pattern <<"),Wt)Wt.hasOwnProperty(F)&&Wt[F]instanceof p.TilingPattern&&Wt[F].objectNumber>=0&&Wt[F].objectNumber<w&&D("/"+F+" "+Wt[F].objectNumber+" 0 R");xe.publish("putTilingPatternDict"),D(">>")}}(u.objectOid),function(){if(Object.keys(ee).length>0){var w;for(w in D("/ExtGState <<"),ee)ee.hasOwnProperty(w)&&ee[w].objectNumber>=0&&D("/"+w+" "+ee[w].objectNumber+" 0 R");xe.publish("putGStateDict"),D(">>")}}(),function(){for(var w in D("/XObject <<"),Ni)Ni.hasOwnProperty(w)&&Ni[w].objectNumber>=0&&D("/"+w+" "+Ni[w].objectNumber+" 0 R");xe.publish("putXobjectDict"),D(">>")}(),D(">>"),D("endobj")},Os=function(u){te[u.fontName]=te[u.fontName]||{},te[u.fontName][u.fontStyle]=u.id},Ts=function(u,w,F,q,J){var gt={id:"F"+(Object.keys(Dt).length+1).toString(10),postScriptName:u,fontName:w,fontStyle:F,encoding:q,isStandardFont:J||!1,metadata:{}};return xe.publish("addFont",{font:gt,instance:this}),Dt[gt.id]=gt,Os(gt),gt.id},er=p.__private__.pdfEscape=p.pdfEscape=function(u,w){return function(F,q){var J,gt,xt,Ft,Tt,Gt,se,be,Me;if(xt=(q=q||{}).sourceEncoding||"Unicode",Tt=q.outputEncoding,(q.autoencode||Tt)&&Dt[zt].metadata&&Dt[zt].metadata[xt]&&Dt[zt].metadata[xt].encoding&&(Ft=Dt[zt].metadata[xt].encoding,!Tt&&Dt[zt].encoding&&(Tt=Dt[zt].encoding),!Tt&&Ft.codePages&&(Tt=Ft.codePages[0]),typeof Tt=="string"&&(Tt=Ft[Tt]),Tt)){for(se=!1,Gt=[],J=0,gt=F.length;J<gt;J++)(be=Tt[F.charCodeAt(J)])?Gt.push(String.fromCharCode(be)):Gt.push(F[J]),Gt[J].charCodeAt(0)>>8&&(se=!0);F=Gt.join("")}for(J=F.length;se===void 0&&J!==0;)F.charCodeAt(J-1)>>8&&(se=!0),J--;if(!se)return F;for(Gt=q.noBOM?[]:[254,255],J=0,gt=F.length;J<gt;J++){if((Me=(be=F.charCodeAt(J))>>8)>>8)throw new Error("Character at position "+J+" of string '"+F+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Gt.push(Me),Gt.push(be-(Me<<8))}return String.fromCharCode.apply(void 0,Gt)}(u,w).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ba=p.__private__.beginPage=function(u){At[++ke]=[],Zt[ke]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(u[0]),topRightY:Number(u[1])}},Ms(ke),ct(At[T])},Ds=function(u,w){var F,q,J;switch(e=w||e,typeof u=="string"&&(F=j(u.toLowerCase()),Array.isArray(F)&&(q=F[0],J=F[1])),Array.isArray(u)&&(q=u[0]*Vt,J=u[1]*Vt),isNaN(q)&&(q=n[0],J=n[1]),(q>14400||J>14400)&&(Pe.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),q=Math.min(14400,q),J=Math.min(14400,J)),n=[q,J],e.substr(0,1)){case"l":J>q&&(n=[J,q]);break;case"p":q>J&&(n=[J,q])}Ba(n),Zo(Wa),D(aa),Va!==0&&D(Va+" J"),Ga!==0&&D(Ga+" j"),xe.publish("addPage",{pageNumber:ke})},za=function(u){u>0&&u<=ke&&(At.splice(u,1),Zt.splice(u,1),ke--,T>ke&&(T=ke),this.setPage(T))},Ms=function(u){u>0&&u<=ke&&(T=u)},Rs=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return At.length-1},Bs=function(u,w,F){var q,J=void 0;return F=F||{},u=u!==void 0?u:Dt[zt].fontName,w=w!==void 0?w:Dt[zt].fontStyle,q=u.toLowerCase(),te[q]!==void 0&&te[q][w]!==void 0?J=te[q][w]:te[u]!==void 0&&te[u][w]!==void 0?J=te[u][w]:F.disableWarning===!1&&Pe.warn("Unable to look up font label for font '"+u+"', '"+w+"'. Refer to getFontList(
47) for available fonts."),J||F.noFallback||(J=te.times[w])==null&&(J=te.times.normal),J},na=p.__private__.putInfo=function(){var u=Re(),w=function(q){return q};for(var F in m!==null&&(w=He.encryptor(u,0)),D("<<"),D("/Producer ("+er(w("jsPDF "+Rt.version))+")"),ae)ae.hasOwnProperty(F)&&ae[F]&&D("/"+F.substr(0,1).toUpperCase()+F.substr(1)+" ("+er(w(ae[F]))+")");D("/CreationDate ("+er(w(at))+")"),D(">>"),D("endobj")},qo=p.__private__.putCatalog=function(u){var w=(u=u||{}).rootDictionaryObjId||rn;switch(Re(),D("<<"),D("/Type /Catalog"),D("/Pages "+w+" 0 R"),Bt||(Bt="fullwidth"),Bt){case"fullwidth":D("/OpenAction [3 0 R /FitH null]");break;case"fullheight":D("/OpenAction [3 0 R /FitV null]");break;case"fullpage":D("/OpenAction [3 0 R /Fit]");break;case"original":D("/OpenAction [3 0 R /XYZ null null 1]");break;default:var F=""+Bt;F.substr(F.length-1)==="%"&&(Bt=parseInt(Bt)/100),typeof Bt=="number"&&D("/OpenAction [3 0 R /XYZ null null "+L(Bt)+"]")}switch(Xt||(Xt="continuous"),Xt){case"continuous":D("/PageLayout /OneColumn");break;case"single":D("/PageLayout /SinglePage");break;case"two":case"twoleft":D("/PageLayout /TwoColumnLeft");break;case"tworight":D("/PageLayout /TwoColumnRight")}Ut&&D("/PageMode /"+Ut),xe.publish("putCatalog"),D(">>"),D("endobj")},Xe=p.__private__.putTrailer=function(){D("trailer"),D("<<"),D("/Size "+(K+1)),D("/Root "+K+" 0 R"),D("/Info "+(K-1)+" 0 R"),m!==null&&D("/Encrypt "+He.oid+" 0 R"),D("/ID [ <"+ft+"> <"+ft+"> ]"),D(">>")},zs=p.__private__.putHeader=function(){D("%PDF-"+O),D("%ºß¬à")},qs=p.__private__.putXRef=function(){var u="0000000000";D("xref"),D("0 "+(K+1)),D("0000000000 65535 f ");for(var w=1;w<=K;w++)typeof tt[w]=="function"?D((u+tt[w]()).slice(-10)+" 00000 n "):tt[w]!==void 0?D((u+tt[w]).slice(-10)+" 00000 n "):D("0000000000 00000 n ")},zr=p.__private__.buildDocument=function(){var u;K=0,st=0,ht=[],tt=[],bt=[],rn=fi(),or=fi(),ct(ht),xe.publish("buildDocument"),zs(),yr(),function(){xe.publish("putAdditionalObjects");for(var F=0;F<bt.length;F++){var q=bt[F];vi(q.objId,!0),D(q.content),D("endobj")}xe.publish("postPutAdditionalObjects")}(),u=[],function(){for(var F in Dt)Dt.hasOwnProperty(F)&&(y===!1||y===!0&&A.hasOwnProperty(F))&&Cn(Dt[F])}(),function(){var F;for(F in ee)ee.hasOwnProperty(F)&&zo(ee[F])}(),function(){for(var F in Ni)Ni.hasOwnProperty(F)&&ea(Ni[F])}(),function(F){var q;for(q in Wt)Wt.hasOwnProperty(q)&&(Wt[q]instanceof Yn?ia(Wt[q]):Wt[q]instanceof La&&ra(Wt[q],F))}(u),xe.publish("putResources"),u.forEach(Ra),Ra({resourcesOid:or,objectOid:Number.MAX_SAFE_INTEGER}),xe.publish("postPutResources"),m!==null&&(He.oid=Re(),D("<<"),D("/Filter /Standard"),D("/V "+He.v),D("/R "+He.r),D("/U <"+He.toHexString(He.U)+">"),D("/O <"+He.toHexString(He.O)+">"),D("/P "+He.P),D(">>"),D("endobj")),na(),qo();var w=st;return qs(),Xe(),D("startxref"),D(""+w),D("%%EOF"),ct(At[T]),ht.join(`
48`)},En=p.__private__.getBlob=function(u){return new Blob([re(u)],{type:"application/pdf"})},hr=p.output=p.__private__.output=(Qi=function(u,w){switch(typeof(w=w||{})=="string"?w={filename:w}:w.filename=w.filename||"generated.pdf",u){case void 0:return zr();case"save":p.save(w.filename);break;case"arraybuffer":return re(zr());case"blob":return En(zr());case"bloburi":case"bloburl":if($t.URL!==void 0&&typeof $t.URL.createObjectURL=="function")return $t.URL&&$t.URL.createObjectURL(En(zr()))||void 0;Pe.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var F="",q=zr();try{F=Au(q)}catch{F=Au(unescape(encodeURIComponent(q)))}return"data:application/pdf;filename="+w.filename+";base64,"+F;case"pdfobjectnewwindow":if(Object.prototype.toString.call($t)==="[object Window]"){var J="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",gt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';w.pdfObjectUrl&&(J=w.pdfObjectUrl,gt="");var xt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+J+'"'+gt+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(w)+");<\/script></body></html>",Ft=$t.open();return Ft!==null&&Ft.document.write(xt),Ft}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call($t)==="[object Window]"){var Tt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(w.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+w.filename+'" width="500px" height="400px" /></body></html>',Gt=$t.open();if(Gt!==null){Gt.document.write(Tt);var se=this;Gt.document.documentElement.querySelector("#pdfViewer").onload=function(){Gt.document.title=w.filename,Gt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(se.output("bloburl"))}}return Gt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call($t)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var be='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",w)+'"></iframe></body></html>',Me=$t.open();if(Me!==null&&(Me.document.write(be),Me.document.title=w.filename),Me||typeof safari>"u")return Me;break;case"datauri":case"dataurl":return $t.document.location.href=this.output("datauristring",w);default:return null}},Qi.foo=function(){try{return Qi.apply(this,arguments)}catch(F){var u=F.stack||"";~u.indexOf(" at ")&&(u=u.split(" at ")[1]);var w="Error in function "+u.split(`
49`)[0].split("<")[0]+": "+F.message;if(!$t.console)throw new Error(w);$t.console.error(w,F),$t.alert&&alert(w)}},Qi.foo.bar=Qi,Qi.foo),Fn=function(u){return Array.isArray(kn)===!0&&kn.indexOf(u)>-1};switch(r){case"pt":Vt=1;break;case"mm":Vt=72/25.4;break;case"cm":Vt=72/2.54;break;case"in":Vt=72;break;case"px":Vt=Fn("px_scaling")==1?.75:96/72;break;case"pc":case"em":Vt=12;break;case"ex":Vt=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);Vt=r}var He=null;yt(),nt();var qa=p.__private__.getPageInfo=p.getPageInfo=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to 
49jsPDF.getPageInfo");return{objId:Zt[u].objId,pageNumber:u,pageContext:Zt[u]}},Uo=p.__private__.getPageInfoByObjId=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var w in Zt)if(Zt[w].objId===u)break;return qa(w)},Ho=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Zt[T].objId,pageNumber:T,pageContext:Zt[T]}};p.addPage=function(){return Ds.apply(this,arguments),this},p.setPage=function(){return Ms.apply(this,arguments),ct.call(this,At[T]),this},p.insertPage=function(u){return this.addPage(),this.movePage(T,u),this},p.movePage=function(u,w){var F,q;if(u>w){F=At[u],q=Zt[u];for(var J=u;J>w;J--)At[J]=At[J-1],Zt[J]=Zt[J-1];At[w]=F,Zt[w]=q,this.setPage(w)}else if(u<w){F=At[u],q=Zt[u];for(var gt=u;gt<w;gt++)At[gt]=At[gt+1],Zt[gt]=Zt[gt+1];At[w]=F,Zt[w]=q,this.setPage(w)}return this},p.deletePage=function(){return za.apply(this,arguments),this},p.__private__.text=p.text=function(u,w,F,q,J){var gt,xt,Ft,Tt,Gt,se,be,Me,Qe,Se=(q=q||{}).scope||this;if(typeof u=="number"&&typeof w=="number"&&(typeof F=="string"||Array.isArray(F))){var ni=F;F=w,w=u,u=ni}if(arguments[3]instanceof Yt==0?(Ft=arguments[4],Tt=arguments[5],Ne(be=arguments[3])==="object"&&be!==null||(typeof Ft=="string"&&(Tt=Ft,Ft=null),typeof be=="string"&&(Tt=be,be=null),typeof be=="number"&&(Ft=be,be=null),q={flags:be,angle:Ft,align:Tt})):(R("The transform parameter of text() with a Matrix value"),Qe=J),isNaN(w)||isNaN(F)||u==null)throw new Error("Invalid arguments passed to jsPDF.text");if(u.length===0)return Se;var ti,bi="",Hr=typeof q.lineHeightFactor=="number"?q.lineHeightFactor:On,sn=Se.internal.scaleFactor;function il(Ee){return Ee=Ee.split("	").join(Array(q.TabLen||9).join(" ")),er(Ee,be)}function Ws(Ee){for(var Fe,Ye=Ee.concat(),Ve=[],Gr=Ye.length;Gr--;)typeof(Fe=Ye.shift())=="string"?Ve.push(Fe):Array.isArray(Ee)&&(Fe.length===1||Fe[1]===void 0&&Fe[2]===void 0)?Ve.push(Fe[0]):Ve.push([Fe[0],Fe[1],Fe[2]]);return Ve}function Bn(Ee,Fe){var Ye;if(typeof Ee=="string")Ye=Fe(Ee)[0];else if(Array.isArray(Ee)){for(var Ve,Gr,ga=Ee.concat(),jr=[],as=ga.length;as--;)typeof(Ve=ga.shift())=="string"?jr.push(Fe(Ve)[0]):Array.isArray(Ve)&&typeof Ve[0]=="string"&&(Gr=Fe(Ve[0],Ve[1],Ve[2]),jr.push([Gr[0],Gr[1],Gr[2]]));Ye=jr}return Ye}var ur=!1,Xa=!0;if(typeof u=="string")ur=!0;else if(Array.isArray(u)){var ca=u.concat();xt=[];for(var on,di=ca.length;di--;)(typeof(on=ca.shift())!="string"||Array.isArray(on)&&typeof on[0]!="string")&&(Xa=!1);ur=Xa}if(ur===!1)throw new Error('Type of text must be string or Array. "'+u+'" is not recognized.');typeof u=="string"&&(u=u.match(/[\r?\n]/)?u.split(/\r\n|\r|\n/g):[u]);var Wr=Nt/Se.internal.scaleFactor,Yr=Wr*(Hr-1);switch(q.baseline){case"bottom":F-=Yr;break;case"top":F+=Wr-Yr;break;case"hanging":F+=Wr-2*Yr;break;case"middle":F+=Wr/2-Yr}if((se=q.maxWidth||0)>0&&(typeof u=="string"?u=Se.splitTextToSize(u,se):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(Ee,Fe){return Ee.concat(Se.splitTextToSize(Fe,se))},[]))),gt={text:u,x:w,y:F,options:q,mutex:{pdfEscape:er,activeFontKey:zt,fonts:Dt,activeFontSize:Nt}},xe.publish("preProcessText",gt),u=gt.text,Ft=(q=gt.options).angle,Qe instanceof Yt==0&&Ft&&typeof Ft=="number"){Ft*=Math.PI/180,q.rotationDirection===0&&(Ft=-Ft),z===V&&(Ft=-Ft);var ha=Math.cos(Ft),Qa=Math.sin(Ft);Qe=new Yt(ha,Qa,-Qa,ha,0,0)}else Ft&&Ft instanceof Yt&&(Qe=Ft);z!==V||Qe||(Qe=Br),(Gt=q.charSpace||oa)!==void 0&&(bi+=Z(W(Gt))+` Tc
50`,this.setCharSpace(this.getCharSpace()||0)),(Me=q.horizontalScale)!==void 0&&(bi+=Z(100*Me)+` Tz
51`),q.lang;var Pi=-1,Ys=q.renderingMode!==void 0?q.renderingMode:q.stroke,ua=Se.internal.getCurrentPageInfo().pageContext;switch(Ys){case 0:case!1:case"fill":Pi=0;break;case 1:case!0:case"stroke":Pi=1;break;case 2:case"fillThenStroke":Pi=2;break;case 3:case"invisible":Pi=3;break;case 4:case"fillAndAddForClipping":Pi=4;break;case 5:case"strokeAndAddPathForClipping":Pi=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Pi=6;break;case 7:case"addToPathForClipping":Pi=7}var Vs=ua.usedRenderingMode!==void 0?ua.usedRenderingMode:-1;Pi!==-1?bi+=Pi+` Tr
52`:Vs!==-1&&(bi+=`0 Tr
53`),Pi!==-1&&(ua.usedRenderingMode=Pi),Tt=q.align||"left";var ai,ir=Nt*Hr,ts=Se.internal.pageSize.getWidth(),es=Dt[zt];Gt=q.charSpace||oa,se=q.maxWidth||0,be=Object.assign({autoencode:!0,noBOM:!0},q.flags);var ln=[],fa=function(Ee){return Se.getStringUnitWidth(Ee,{font:es,charSpace:Gt,fontSize:Nt,doKerning:!1})*Nt/sn};if(Object.prototype.toString.call(u)==="[object Array]"){var Oi;xt=Ws(u),Tt!=="left"&&(ai=xt.map(fa));var Ti,zn=0;if(Tt==="right"){w-=ai[0],u=[],di=xt.length;for(var Ar=0;Ar<di;Ar++)Ar===0?(Ti=qr(w),Oi=Ur(F)):(Ti=W(zn-ai[Ar]),Oi=-ir),u.push([xt[Ar],Ti,Oi]),zn=ai[Ar]}else if(Tt==="center"){w-=ai[0]/2,u=[],di=xt.length;for(var cn=0;cn<di;cn++)cn===0?(Ti=qr(w),Oi=Ur(F)):(Ti=W((zn-ai[cn])/2),Oi=-ir),u.push([xt[cn],Ti,Oi]),zn=ai[cn]}else if(Tt==="left"){u=[],di=xt.length;for(var is=0;is<di;is++)u.push(xt[is])}else if(Tt==="justify"&&es.encoding==="Identity-H"){u=[],di=xt.length,se=se!==0?se:ts;for(var hn=0,We=0;We<di;We++)if(Oi=We===0?Ur(F):-ir,Ti=We===0?qr(w):hn,We<di-1){var rl=W((se-ai[We])/(xt[We].split(" ").length-1)),Sr=xt[We].split(" ");u.push([Sr[0]+" ",Ti,Oi]),hn=0;for(var Lr=1;Lr<Sr.length;Lr++){var da=(fa(Sr[Lr-1]+" "+Sr[Lr])-fa(Sr[Lr]))*sn+rl;Lr==Sr.length-1?u.push([Sr[Lr],da,0]):u.push([Sr[Lr]+" ",da,0]),hn-=da}}else u.push([xt[We],Ti,Oi]);u.push(["",hn,0])}else{if(Tt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(u=[],di=xt.length,se=se!==0?se:ts,We=0;We<di;We++)Oi=We===0?Ur(F):-ir,Ti=We===0?qr(w):0,We<di-1?ln.push(Z(W((se-ai[We])/(xt[We].split(" ").length-1)))):ln.push(0),u.push([xt[We],Ti,Oi])}}(typeof q.R2L=="boolean"?q.R2L:ne)===!0&&(u=Bn(u,function(Ee,Fe,Ye){return[Ee.split("").reverse().join(""),Fe,Ye]})),gt={text:u,x:w,y:F,options:q,mutex:{pdfEscape:er,activeFontKey:zt,fonts:Dt,activeFontSize:Nt}},xe.publish("postProcessText",gt),u=gt.text,ti=gt.mutex.isHex||!1;var rs=Dt[zt].encoding;rs!=="WinAnsiEncoding"&&rs!=="StandardEncoding"||(u=Bn(u,function(Ee,Fe,Ye){return[il(Ee),Fe,Ye]})),xt=Ws(u),u=[];for(var pa,ma,qn,Un=Array.isArray(xt[0])?1:0,Vr="",ns=function(Ee,Fe,Ye){var Ve="";return Ye instanceof Yt?(Ye=typeof q.angle=="number"?Rr(Ye,new Yt(1,0,0,1,Ee,Fe)):Rr(new Yt(1,0,0,1,Ee,Fe),Ye),z===V&&(Ye=Rr(new Yt(1,0,0,-1,0,0),Ye)),Ve=Ye.join(" ")+` Tm
54`):Ve=Z(Ee)+" "+Z(Fe)+` Td
55`,Ve},qi=0;qi<xt.length;qi++){switch(Vr="",Un){case 1:qn=(ti?"<":"(")+xt[qi][0]+(ti?">":")"),pa=parseFloat(xt[qi][1]),ma=parseFloat(xt[qi][2]);break;case 0:qn=(ti?"<":"(")+xt[qi]+(ti?">":")"),pa=qr(w),ma=Ur(F)}ln!==void 0&&ln[qi]!==void 0&&(Vr=ln[qi]+` Tw
56`),qi===0?u.push(Vr+ns(pa,ma,Qe)+qn):Un===0?u.push(Vr+qn):Un===1&&u.push(Vr+ns(pa,ma,Qe)+qn)}u=Un===0?u.join(` Tj
57T* `):u.join(` Tj
58`),u+=` Tj
59`;var kr=`BT
60/`;return kr+=zt+" "+Nt+` Tf
61`,kr+=Z(Nt*Hr)+` TL
62`,kr+=Tn+`
63`,kr+=bi,kr+=u,D(kr+="ET"),A[zt]=!0,Se};var Wo=p.__private__.clip=p.clip=function(u){return D(u==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return Wo("evenodd")},p.__private__.discardPath=p.discardPath=function(){return D("n"),this};var _r=p.__private__.isValidStyle=function(u){var w=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(u)!==-1&&(w=!0),w};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(u){return _r(u)&&(d=u),this};var Us=p.__private__.getStyle=p.getStyle=function(u){var w=d;switch(u){case"D":case"S":w="S";break;case"F":w="f";break;case"FD":case"DF":w="B";break;case"f":case"f*":case"B":case"B*":w=u}return w},Hs=p.close=function(){return D("h"),this};p.stroke=function(){return D("S"),this},p.fill=function(u){return nn("f",u),this},p.fillEvenOdd=function(u){return nn("f*",u),this},p.fillStroke=function(u){return nn("B",u),this},p.fillStrokeEvenOdd=function(u){return nn("B*",u),this};var nn=function(u,w){Ne(w)==="object"?Vo(w,u):D(u)},Ua=function(u){u===null||z===V&&u===void 0||(u=Us(u),D(u))};function Yo(u,w,F,q,J){var gt=new La(w||this.boundingBox,F||this.xStep,q||this.yStep,this.gState,J||this.matrix
vendor: 13,600 bytes, line 63
63);gt.stream=this.stream;var xt=u+"$$"+this.cloneIndex+++"$$";return Xi(xt,gt),gt}var Vo=function(u,w){var F=he[u.key],q=Wt[F];if(q instanceof Yn)D("q"),D(Go(w)),q.gState&&p.setGState(q.gState),D(u.matrix.toString()+" cm"),D("/"+F+" sh"),D("Q");else if(q instanceof La){var J=new Yt(1,0,0,-1,0,zi());u.matrix&&(J=J.multiply(u.matrix||Br),F=Yo.call(q,u.key,u.boundingBox,u.xStep,u.yStep,J).id),D("q"),D("/Pattern cs"),D("/"+F+" scn"),q.gState&&p.setGState(q.gState),D(w),D("Q")}},Go=function(u){switch(u){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Ha=p.moveTo=function(u,w){return D(Z(W(u))+" "+Z(U(w))+" m"),this},In=p.lineTo=function(u,w){return D(Z(W(u))+" "+Z(U(w))+" l"),this},an=p.curveTo=function(u,w,F,q,J,gt){return D([Z(W(u)),Z(U(w)),Z(W(F)),Z(U(q)),Z(W(J)),Z(U(gt)),"c"].join(" ")),this};p.__private__.line=p.line=function(u,w,F,q,J){if(isNaN(u)||isNaN(w)||isNaN(F)||isNaN(q)||!_r(J))throw new Error("Invalid arguments passed to jsPDF.line");return z===G?this.lines([[F-u,q-w]],u,w,[1,1],J||"S"):this.lines([[F-u,q-w]],u,w,[1,1]).stroke()},p.__private__.lines=p.lines=function(u,w,F,q,J,gt){var xt,Ft,Tt,Gt,se,be,Me,Qe,Se,ni,ti,bi;if(typeof u=="number"&&(bi=F,F=w,w=u,u=bi),q=q||[1,1],gt=gt||!1,isNaN(w)||isNaN(F)||!Array.isArray(u)||!Array.isArray(q)||!_r(J)||typeof gt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Ha(w,F),xt=q[0],Ft=q[1],Gt=u.length,ni=w,ti=F,Tt=0;Tt<Gt;Tt++)(se=u[Tt]).length===2?(ni=se[0]*xt+ni,ti=se[1]*Ft+ti,In(ni,ti)):(be=se[0]*xt+ni,Me=se[1]*Ft+ti,Qe=se[2]*xt+ni,Se=se[3]*Ft+ti,ni=se[4]*xt+ni,ti=se[5]*Ft+ti,an(be,Me,Qe,Se,ni,ti));return gt&&Hs(),Ua(J),this},p.path=function(u){for(var w=0;w<u.length;w++){var F=u[w],q=F.c;switch(F.op){case"m":Ha(q[0],q[1]);break;case"l":In(q[0],q[1]);break;case"c":an.apply(this,q);break;case"h":Hs()}}return this},p.__private__.rect=p.rect=function(u,w,F,q,J){if(isNaN(u)||isNaN(w)||isNaN(F)||isNaN(q)||!_r(J))throw new Error("Invalid arguments passed to jsPDF.rect");return z===G&&(q=-q),D([Z(W(u)),Z(U(w)),Z(W(F)),Z(W(q)),"re"].join(" ")),Ua(J),this},p.__private__.triangle=p.triangle=function(u,w,F,q,J,gt,xt){if(isNaN(u)||isNaN(w)||isNaN(F)||isNaN(q)||isNaN(J)||isNaN(gt)||!_r(xt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[F-u,q-w],[J-F,gt-q],[u-J,w-gt]],u,w,[1,1],xt,!0),this},p.__private__.roundedRect=p.roundedRect=function(u,w,F,q,J,gt,xt){if(isNaN(u)||isNaN(w)||isNaN(F)||isNaN(q)||isNaN(J)||isNaN(gt)||!_r(xt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ft=4/3*(Math.SQRT2-1);return J=Math.min(J,.5*F),gt=Math.min(gt,.5*q),this.lines([[F-2*J,0],[J*Ft,0,J,gt-gt*Ft,J,gt],[0,q-2*gt],[0,gt*Ft,-J*Ft,gt,-J,gt],[2*J-F,0],[-J*Ft,0,-J,-gt*Ft,-J,-gt],[0,2*gt-q],[0,-gt*Ft,J*Ft,-gt,J,-gt]],u+J,w,[1,1],xt,!0),this},p.__private__.ellipse=p.ellipse=function(u,w,F,q,J){if(isNaN(u)||isNaN(w)||isNaN(F)||isNaN(q)||!_r(J))throw new Error("Invalid arguments passed to jsPDF.ellipse");var gt=4/3*(Math.SQRT2-1)*F,xt=4/3*(Math.SQRT2-1)*q;return Ha(u+F,w),an(u+F,w-xt,u+gt,w-q,u,w-q),an(u-gt,w-q,u-F,w-xt,u-F,w),an(u-F,w+xt,u-gt,w+q,u,w+q),an(u+gt,w+q,u+F,w+xt,u+F,w),Ua(J),this},p.__private__.circle=p.circle=function(u,w,F,q){if(isNaN(u)||isNaN(w)||isNaN(F)||!_r(q))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(u,w,F,F,q)},p.setFont=function(u,w,F){return F&&(w=rt(w,F)),zt=Bs(u,w,{disableWarning:!1}),this};var $o=p.__private__.getFont=p.getFont=function(){return Dt[Bs.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var u,w,F={};for(u in te)if(te.hasOwnProperty(u))for(w in F[u]=[],te[u])te[u].hasOwnProperty(w)&&F[u].push(w);return F},p.addFont=function(u,w,F,q,J){var gt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&gt.indexOf(arguments[3])!==-1?J=arguments[3]:arguments[3]&&gt.indexOf(arguments[3])==-1&&(F=rt(F,q)),Ts.call(this,u,w,F,J=J||"Identity-H")};var On,Wa=t.lineWidth||.200025,Kt=p.__private__.getLineWidth=p.getLineWidth=function(){return Wa},Zo=p.__private__.setLineWidth=p.setLineWidth=function(u){return Wa=u,D(Z(W(u))+" w"),this};p.__private__.setLineDash=Rt.API.setLineDash=Rt.API.setLineDashPattern=function(u,w){if(u=u||[],w=w||0,isNaN(w)||!Array.isArray(u))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return u=u.map(function(F){return Z(W(F))}).join(" "),w=Z(W(w)),D("["+u+"] "+w+" d"),this};var Ko=p.__private__.getLineHeight=p.getLineHeight=function(){return Nt*On};p.__private__.getLineHeight=p.getLineHeight=function(){return Nt*On};var Jo=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(u){return typeof(u=u||1.15)=="number"&&(On=u),this},Xo=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return On};Jo(t.lineHeight);var qr=p.__private__.getHorizontalCoordinate=function(u){return W(u)},Ur=p.__private__.getVerticalCoordinate=function(u){return z===V?u:Zt[T].mediaBox.topRightY-Zt[T].mediaBox.bottomLeftY-W(u)},Qo=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(u){return Z(qr(u))},tl=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(u){return Z(Ur(u))},aa=t.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return xr(aa)},p.__private__.setStrokeColor=p.setDrawColor=function(u,w,F,q){return aa=lr({ch1:u,ch2:w,ch3:F,ch4:q,pdfColorType:"draw",precision:2}),D(aa),this};var Ya=t.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return xr(Ya)},p.__private__.setFillColor=p.setFillColor=function(u,w,F,q){return Ya=lr({ch1:u,ch2:w,ch3:F,ch4:q,pdfColorType:"fill",precision:2}),D(Ya),this};var Tn=t.textColor||"0 g",sa=p.__private__.getTextColor=p.getTextColor=function(){return xr(Tn)};p.__private__.setTextColor=p.setTextColor=function(u,w,F,q){return Tn=lr({ch1:u,ch2:w,ch3:F,ch4:q,pdfColorType:"text",precision:3}),this};var oa=t.charSpace,el=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(oa||0)};p.__private__.setCharSpace=p.setCharSpace=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return oa=u,this};var Va=0;p.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},p.__private__.setLineCap=p.setLineCap=function(u){var w=p.CapJoinStyles[u];if(w===void 0)throw new Error("Line cap style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Va=w,D(w+" J"),this};var Ga=0;p.__private__.setLineJoin=p.setLineJoin=function(u){var w=p.CapJoinStyles[u];if(w===void 0)throw new Error("Line join style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ga=w,D(w+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(u){if(u=u||0,isNaN(u))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return D(Z(W(u))+" M"),this},p.GState=Oo,p.setGState=function(u){(u=typeof u=="string"?ee[Ue[u]]:Dn(null,u)).equals(ri)||(D("/"+u.id+" gs"),ri=u)};var Dn=function(u,w){if(!u||!Ue[u]){var F=!1;for(var q in ee)if(ee.hasOwnProperty(q)&&ee[q].equals(w)){F=!0;break}if(F)w=ee[q];else{var J="GS"+(Object.keys(ee).length+1).toString(10);ee[J]=w,w.id=J}return u&&(Ue[u]=w.id),xe.publish("addGState",w),w}};p.addGState=function(u,w){return Dn(u,w),this},p.saveGraphicsState=function(){return D("q"),Le.push({key:zt,size:Nt,color:Tn}),this},p.restoreGraphicsState=function(){D("Q");var u=Le.pop();return zt=u.key,Nt=u.size,Tn=u.color,ri=null,this},p.setCurrentTransformationMatrix=function(u){return D(u.toString()+" cm"),this},p.comment=function(u){return D("#"+u),this};var Mn=function(u,w){var F=u||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return F},set:function(gt){isNaN(gt)||(F=parseFloat(gt))}});var q=w||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return q},set:function(gt){isNaN(gt)||(q=parseFloat(gt))}});var J="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return J},set:function(gt){J=gt.toString()}}),this},$a=function(u,w,F,q){Mn.call(this,u,w),this.type="rect";var J=F||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return J},set:function(xt){isNaN(xt)||(J=parseFloat(xt))}});var gt=q||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return gt},set:function(xt){isNaN(xt)||(gt=parseFloat(xt))}}),this},la=function(){this.page=ke,this.currentPage=T,this.pages=At.slice(0),this.pagesContext=Zt.slice(0),this.x=qt,this.y=Ce,this.matrix=ve,this.width=Ka(T),this.height=zi(T),this.outputDestination=Pt,this.id="",this.objectNumber=-1};la.prototype.restore=function(){ke=this.page,T=this.currentPage,Zt=this.pagesContext,At=this.pages,qt=this.x,Ce=this.y,ve=this.matrix,Ja(T,this.width),Nr(T,this.height),Pt=this.outputDestination};var Za=function(u,w,F,q,J){wr.push(new la),ke=T=0,At=[],qt=u,Ce=w,ve=J,Ba([F,q])};for(var Rn in p.beginFormObject=function(u,w,F,q,J){return Za(u,w,F,q,J),this},p.endFormObject=function(u){return function(w){if(Mr[w])wr.pop().restore();else{var F=new la,q="Xo"+(Object.keys(Ni).length+1).toString(10);F.id=q,Mr[w]=q,Ni[q]=F,xe.publish("addFormObject",F),wr.pop().restore()}}(u),this},p.doFormObject=function(u,w){var F=Ni[Mr[u]];return D("q"),D(w.toString()+" cm"),D("/"+F.id+" Do"),D("Q"),this},p.getFormObject=function(u){var w=Ni[Mr[u]];return{x:w.x,y:w.y,width:w.width,height:w.height,matrix:w.matrix}},p.save=function(u,w){return u=u||"generated.pdf",(w=w||{}).returnPromise=w.returnPromise||!1,w.returnPromise===!1?(Wn(En(zr()),u),typeof Wn.unload=="function"&&$t.setTimeout&&setTimeout(Wn.unload,911),this):new Promise(function(F,q){try{var J=Wn(En(zr()),u);typeof Wn.unload=="function"&&$t.setTimeout&&setTimeout(Wn.unload,911),F(J)}catch(gt){q(gt.message)}})},Rt.API)Rt.API.hasOwnProperty(Rn)&&(Rn==="events"&&Rt.API.events.length?function(u,w){var F,q,J;for(J=w.length-1;J!==-1;J--)F=w[J][0],q=w[J][1],u.subscribe.apply(u,[F].concat(typeof q=="function"?[q]:q))}(xe,Rt.API.events):p[Rn]=Rt.API[Rn]);var Ka=p.getPageWidth=function(u){return(Zt[u=u||T].mediaBox.topRightX-Zt[u].mediaBox.bottomLeftX)/Vt},Ja=p.setPageWidth=function(u,w){Zt[u].mediaBox.topRightX=w*Vt+Zt[u].mediaBox.bottomLeftX},zi=p.getPageHeight=function(u){return(Zt[u=u||T].mediaBox.topRightY-Zt[u].mediaBox.bottomLeftY)/Vt},Nr=p.setPageHeight=function(u,w){Zt[u].mediaBox.topRightY=w*Vt+Zt[u].mediaBox.bottomLeftY};return p.internal={pdfEscape:er,getStyle:Us,getFont:$o,getFontSize:kt,getCharSpace:el,getTextColor:sa,getLineHeight:Ko,getLineHeightFactor:Xo,getLineWidth:Kt,write:ce,getHorizontalCoordinate:qr,getVerticalCoordinate:Ur,getCoordinateString:Qo,getVerticalCoordinateString:tl,collections:{},newObject:Re,newAdditionalObject:jn,newObjectDeferred:fi,newObjectDeferredBegin:vi,getFilters:cr,putStream:tr,events:xe,scaleFactor:Vt,pageSize:{getWidth:function(){return Ka(T)},setWidth:function(u){Ja(T,u)},getHeight:function(){return zi(T)},setHeight:function(u){Nr(T,u)}},encryptionOptions:m,encryption:He,getEncryptor:function(u){return m!==null?He.encryptor(u,0):function(w){return w}},output:hr,getNumberOfPages:Rs,pages:At,out:D,f2:L,f3:I,getPageInfo:qa,getPageInfoByObjId:Uo,getCurrentPageInfo:Ho,getPDFVersion:P,Point:Mn,Rectangle:$a,Matrix:Yt,hasHotfix:Fn},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return Ka(T)},set:function(u){Ja(T,u)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return zi(T)},set:function(u){Nr(T,u)},enumerable:!0,configurable:!0}),(function(u){for(var w=0,F=Ht.length;w<F;w++){var q=Ts.call(this,u[w][0],u[w][1],u[w][2],Ht[w][3],!0);y===!1&&(A[q]=!0);var J=u[w][0].split("-");Os({id:q,fontName:J[0],fontStyle:J[1]||""})}xe.publish("addFonts",{fonts:Dt,dictionary:te})}).call(p,Ht),zt="F1",Ds(n,e),xe.publish("initialized"),p}Aa.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},Aa.prototype.toHexString=function(t){return t.split("").map(function(i){return("0"+(255&i.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Aa.prototype.hexToBytes=function(t){for(var i=[],e=0;e<t.length;e+=2)i.push(String.fromCharCode(parseInt(t.substr(e,2),16)));return i.join("")},Aa.prototype.processOwnerPassword=function(t,i){return hc(cc(i).substr(0,5),t)},Aa.prototype.encryptor=function(t,i){var e=cc(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&i,i>>8&255)).substr(0,10);return function(r){return hc(e,r)}},Oo.prototype.equals=function(t){var i,e="id,objectNumber,equals";if(!t||Ne(t)!==Ne(this))return!1;var r=0;for(i in this)if(!(e.indexOf(i)>=0)){if(this.hasOwnProperty(i)&&!t.hasOwnProperty(i)||this[i]!==t[i])return!1;r++}for(i in t)t.hasOwnProperty(i)&&e.indexOf(i)<0&&r--;return r===0},Rt.API={events:[]},Rt.version="3.0.2";var qe=Rt.API,Lc=1,ta=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ya=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Jt=function(t){return t.toFixed(2)},wn=function(t){return t.toFixed(5)};qe.__acroform__={};var Bi=function(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t},ju=function(t){return t*Lc},Cr=function(t){var i=new nd,e=Et.internal.getHeight(t)||0,r=Et.internal.getWidth(t)||0;return i.BBox=[0,0,Number(Jt(r)),Number(Jt(e))],i},H5=qe.__acroform__.setBit=function(t,i){if(t=t||0,i=i||0,isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to 
63jsPDF.API.__acroform__.setBit");return t|1<<i},W5=qe.__acroform__.clearBit=function(t,i){if(t=t||0,i=i||0,isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<i)},Y5=qe.__acroform__.getBit=function(t,i){if(isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<i?1:0},Ze=qe.__acroform__.getBitForPdf=function(t,i){if(isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Y5(t,i-1)},Ke=qe.__acroform__.setBitForPdf=function(t,i){if(isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return H5(t,i-1)},Je=qe.__acroform__.clearBitForPdf=function(t,i){if(isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return W5(t,i-1)},V5=qe.__acroform__.calculateCoordinates=function(t,i){var e=i.internal.getHorizontalCoordinate,r=i.internal.getVerticalCoordinate,n=t[0],s=t[1],c=t[2],l=t[3],h={};return h.lowerLeft_X=e(n)||0,h.lowerLeft_Y=r(s+l)||0,h.upperRight_X=e(n+c)||0,h.upperRight_Y=r(s)||0,[Number(Jt(h.lowerLeft_X)),Number(Jt(h.lowerLeft_Y)),Number(Jt(h.upperRight_X)),Number(Jt(h.upperRight_Y))]},G5=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var i=[],e=t._V||t.DV,r=uc(t,e),n=t.scope.internal.getFont(t.fontName,t.fontStyle).id;i.push("/Tx BMC"),i.push("q"),i.push("BT"),i.push(t.scope.__private__.encodeColorString(t.color)),i.push("/"+n+" "+Jt(r.fontSize)+" Tf"),i.push("1 0 0 1 0 0 Tm"),i.push(r.text),i.push("ET"),i.push("Q"),i.push("EMC");var s=Cr(t);return s.scope=t.scope,s.stream=i.join(`
64`),s}},uc=function(t,i){var e=t.fontSize===0?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},n=(i=(i=i.substr(0,1)=="("?i.substr(1):i).substr(i.length-1)==")"?i.substr(0,i.length-1):i).split(" ");n=t.multiline?n.map(function(L){return L.split(`
65`)}):n.map(function(L){return[L]});var s=e,c=Et.internal.getHeight(t)||0;c=c<0?-c:c;var l=Et.internal.getWidth(t)||0;l=l<0?-l:l;var h=function(L,I,W){if(L+1<n.length){var U=I+" "+n[L+1][0];return bo(U,t,W).width<=l-4}return!1};s++;t:for(;s>0;){i="",s--;var d,m,y=bo("3",t,s).height,A=t.multiline?c-s:(c-y)/2,p=A+=2,O=0,P=0,M=0;if(s<=0){i=`(...) Tj
66`,i+="% Width of Text: "+bo(i,t,s=12).width+", FieldWidth:"+l+`
67`;break}for(var j="",G=0,V=0;V<n.length;V++)if(n.hasOwnProperty(V)){var z=!1;if(n[V].length!==1&&M!==n[V].length-1){if((y+2)*(G+2)+2>c)continue t;j+=n[V][M],z=!0,P=V,V--}else{j=(j+=n[V][M]+" ").substr(j.length-1)==" "?j.substr(0,j.length-1):j;var ot=parseInt(V),lt=h(ot,j,s),rt=V>=n.length-1;if(lt&&!rt){j+=" ",M=0;continue}if(lt||rt){if(rt)P=ot;else if(t.multiline&&(y+2)*(G+2)+2>c)continue t}else{if(!t.multiline||(y+2)*(G+2)+2>c)continue t;P=ot}}for(var Z="",R=O;R<=P;R++){var Q=n[R];if(t.multiline){if(R===P){Z+=Q[M]+" ",M=(M+1)%Q.length;continue}if(R===O){Z+=Q[Q.length-1]+" ";continue}}Z+=Q[0]+" "}switch(Z=Z.substr(Z.length-1)==" "?Z.substr(0,Z.length-1):Z,m=bo(Z,t,s).width,t.textAlign){case"right":d=l-m-2;break;case"center":d=(l-m)/2;break;default:d=2}i+=Jt(d)+" "+Jt(p)+` Td
68`,i+="("+ta(Z)+`) Tj
69`,i+=-Jt(d)+` 0 Td
70`,p=-(s+2),m=0,O=z?P:P+1,G++,j=""}break}return r.text=i,r.fontSize=s,r},bo=function(t,i,e){var r=i.scope.internal.getFont(i.fontName,i.fontStyle),n=i.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:i.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:n}},$5={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Z5=function(t,i){var e={type:"reference",object:t};i.internal.getPageInfo(t.page).pageContext.annotations.find(function(r){return r.type===e.type&&r.object===e.object})===void 0&&i.internal.getPageInfo(t.page).pageContext.annotations.push(e)},K5=function(t,i){if(i.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(vr.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify($5)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Lc=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new ad,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in r)if(r.hasOwnProperty(n)){var s=r[n];
vendor: 32,775 bytes, lines 70-82
70s.objId=void 0,s.hasAnnotation&&Z5(s,e)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(e){(function(r,n){var s=!r;for(var c in r||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(c)){var l=r[c],h=[],d=l.Rect;if(l.Rect&&(l.Rect=V5(l.Rect,n)),n.internal.newObjectDeferredBegin(l.objId,!0),l.DA=Et.createDefaultAppearanceStream(l),Ne(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(h=l.getKeyValueListForStream()),l.Rect=d,l.hasAppearanceStream&&!l.appearanceStreamContent){var m=G5(l);h.push({key:"AP",value:"<</N "+m+">>"}),n.internal.acroformPlugin.xForms.push(m)}if(l.appearanceStreamContent){var y="";for(var A in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(A)){var p=l.appearanceStreamContent[A];if(y+="/"+A+" ",y+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var c in p)if(p.hasOwnProperty(c)){var O=p[c];typeof O=="function"&&(O=O.call(n,l)),y+="/"+c+" "+O+" ",n.internal.acroformPlugin.xForms.indexOf(O)>=0||n.internal.acroformPlugin.xForms.push(O)}}else typeof(O=p)=="function"&&(O=O.call(n,l)),y+="/"+c+" "+O,n.internal.acroformPlugin.xForms.indexOf(O)>=0||n.internal.acroformPlugin.xForms.push(O);y+=">>"}h.push({key:"AP",value:`<<
71`+y+">>"})}n.internal.putStream({additionalKeyValues:h,objectId:l.objId}),n.internal.out("endobj")}s&&function(P,M){for(var j in P)if(P.hasOwnProperty(j)){var G=j,V=P[j];M.internal.newObjectDeferredBegin(V.objId,!0),Ne(V)==="object"&&typeof V.putStream=="function"&&V.putStream(),delete P[G]}}(n.internal.acroformPlugin.xForms,n)})(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},rd=qe.__acroform__.arrayToPdfArray=function(t,i,e){var r=function(c){return c};if(Array.isArray(t)){for(var n="[",s=0;s<t.length;s++)switch(s!==0&&(n+=" "),Ne(t[s])){case"boolean":case"number":case"object":n+=t[s].toString();break;case"string":t[s].substr(0,1)!=="/"?(i!==void 0&&e&&(r=e.internal.getEncryptor(i)),n+="("+ta(r(t[s].toString()))+")"):n+=t[s].toString()}return n+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Wl=function(t,i,e){var r=function(n){return n};return i!==void 0&&e&&(r=e.internal.getEncryptor(i)),(t=t||"").toString(),"("+ta(r(t))+")"},Ir=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(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Ir.prototype.toString=function(){return this.objId+" 0 R"},Ir.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},Ir.prototype.getKeyValueListForStream=function(){var t=[],i=Object.getOwnPropertyNames(this).filter(function(s){return s!="content"&&s!="appearanceStreamContent"&&s!="scope"&&s!="objId"&&s.substring(0,1)!="_"});for(var e in i)if(Object.getOwnPropertyDescriptor(this,i[e]).configurable===!1){var r=i[e],n=this[r];n&&(Array.isArray(n)?t.push({key:r,value:rd(n,this.objId,this.scope)}):n instanceof Ir?(n.scope=this.scope,t.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&t.push({key:r,value:n}))}return t};var nd=function(){Ir.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 t,i=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return i},set:function(e){i=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};Bi(nd,Ir);var ad=function(){Ir.call(this);var t,i=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return i.length>0?i:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return i}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(r){return r};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+ta(e(t))+")"}},set:function(e){t=e}})};Bi(ad,Ir);var vr=function t(){Ir.call(this);var i=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return i},set:function(j){if(isNaN(j))throw new Error('Invalid value "'+j+'" for attribute F supplied.');i=j}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ze(i,3)},set:function(j){j?this.F=Ke(i,3):this.F=Je(i,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(j){if(isNaN(j))throw new Error('Invalid value "'+j+'" for attribute Ff supplied.');e=j}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(j){r=j!==void 0?j:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(j){r[0]=j}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(j){r[1]=j}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(j){r[2]=j}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(j){r[3]=j}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(j){switch(j){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=j;break;default:throw new Error('Invalid value "'+j+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof To)return;s="FieldObject"+t.FieldNum++}var j=function(G){return G};return this.scope&&(j=this.scope.internal.getEncryptor(this.objId)),"("+ta(j(s))+")"},set:function(j){s=j.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(j){s=j}});var c="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return c},set:function(j){c=j}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(j){l=j}});var h=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return h},set:function(j){h=j}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/Lc:d},set:function(j){d=j}});var m="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return m},set:function(j){m=j}});var y="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!y||this instanceof To||this instanceof Zn))return Wl(y,this.objId,this.scope)},set:function(j){j=j.toString(),y=j}});var A=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(A)return this instanceof gi==0?Wl(A,this.objId,this.scope):A},set:function(j){j=j.toString(),A=this instanceof gi==0?j.substr(0,1)==="("?ya(j.substr(1,j.length-2)):ya(j):j}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof gi==1?ya(A.substr(1,A.length-1)):A},set:function(j){j=j.toString(),A=this instanceof gi==1?"/"+j:j}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(j){this.V=j}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof gi==0?Wl(p,this.objId,this.scope):p},set:function(j){j=j.toString(),p=this instanceof gi==0?j.substr(0,1)==="("?ya(j.substr(1,j.length-2)):ya(j):j}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof gi==1?ya(p.substr(1,p.length-1)):p},set:function(j){j=j.toString(),p=this instanceof gi==1?"/"+j:j}}),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 O,P=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return P},set:function(j){j=!!j,P=j}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(O)return O},set:function(j){O=j}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,1)},set:function(j){j?this.Ff=Ke(this.Ff,1):this.Ff=Je(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,2)},set:function(j){j?this.Ff=Ke(this.Ff,2):this.Ff=Je(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,3)},set:function(j){j?this.Ff=Ke(this.Ff,3):this.Ff=Je(this.Ff,3)}});var M=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(M!==null)return M},set:function(j){if([0,1,2].indexOf(j)===-1)throw new Error('Invalid value "'+j+'" for attribute Q supplied.');M=j}}),Object.defineProperty(this,"textAlign",{get:function(){var j;switch(M){case 0:default:j="left";break;case 1:j="center";break;case 2:j="right"}return j},configurable:!0,enumerable:!0,set:function(j){switch(j){case"right":case 2:M=2;break;case"center":case 1:M=1;break;default:M=0}}})};Bi(vr,Ir);var ja=function(){vr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var i=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return rd(i,this.objId,this.scope)},set:function(e){var r,n;n=[],typeof(r=e)=="string"&&(n=function(s,c,l){l||(l=1);for(var h,d=[];h=c.exec(s);)d.push(h[l]);return d}(r,/\((.*?)\)/g)),i=n}}),this.getOptions=function(){return i},this.setOptions=function(e){i=e,this.sort&&i.sort()},this.addOption=function(e){e=(e=e||"").toString(),i.push(e),this.sort&&i.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();i.indexOf(e)!==-1&&(i.splice(i.indexOf(e),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,18)},set:function(e){e?this.Ff=Ke(this.Ff,18):this.Ff=Je(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=Ke(this.Ff,19):this.Ff=Je(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,20)},set:function(e){e?(this.Ff=Ke(this.Ff,20),i.sort()):this.Ff=Je(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,22)},set:function(e){e?this.Ff=Ke(this.Ff,22):this.Ff=Je(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,23)},set:function(e){e?this.Ff=Ke(this.Ff,23):this.Ff=Je(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,27)},set:function(e){e?this.Ff=Ke(this.Ff,27):this.Ff=Je(this.Ff,27)}}),this.hasAppearanceStream=!1};Bi(ja,vr);var Pa=function(){ja.call(this),this.fontName="helvetica",this.combo=!1};Bi(Pa,ja);var Ca=function(){Pa.call(this),this.combo=!0};Bi(Ca,Pa);var So=function(){Ca.call(this),this.edit=!0};Bi(So,Ca);var gi=function(){vr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,15)},set:function(e){e?this.Ff=Ke(this.Ff,15):this.Ff=Je(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,16)},set:function(e){e?this.Ff=Ke(this.Ff,16):this.Ff=Je(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,17)},set:function(e){e?this.Ff=Ke(this.Ff,17):this.Ff=Je(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,26)},set:function(e){e?this.Ff=Ke(this.Ff,26):this.Ff=Je(this.Ff,26)}});var t,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(s){return s};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(i).length!==0){var r,n=[];for(r in n.push("<<"),i)n.push("/"+r+" ("+ta(e(i[r]))+")");return n.push(">>"),n.join(`
72`)}},set:function(e){Ne(e)==="object"&&(i=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(e){typeof e=="string"&&(i.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};Bi(gi,vr);var Lo=function(){gi.call(this),this.pushButton=!0};Bi(Lo,gi);var Ea=function(){gi.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(i){t=i!==void 0?i:[]}})};Bi(Ea,gi);var To=function(){var t,i;vr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return i},set:function(n){i=n}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(l){return l};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var s,c=[];for(s in c.push("<<"),r)c.push("/"+s+" ("+ta(n(r[s]))+")");return c.push(">>"),c.join(`
73`)},set:function(n){Ne(n)==="object"&&(r=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(n){typeof n=="string"&&(r.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(n){e="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Et.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Bi(To,vr),Ea.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var i in this.Kids)if(this.Kids.hasOwnProperty(i)){var e=this.Kids[i];e.appearanceStreamContent=t.createAppearanceStream(e.optionName),e.caption=t.getCA()}},Ea.prototype.createOption=function(t){var i=new To;return i.Parent=this,i.optionName=t,this.Kids.push(i),J5.call(this.scope,i),i};var ko=function(){gi.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Et.CheckBox.createAppearanceStream()};Bi(ko,gi);var Zn=function(){vr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,13)},set:function(i){i?this.Ff=Ke(this.Ff,13):this.Ff=Je(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,21)},set:function(i){i?this.Ff=Ke(this.Ff,21):this.Ff=Je(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,23)},set:function(i){i?this.Ff=Ke(this.Ff,23):this.Ff=Je(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,24)},set:function(i){i?this.Ff=Ke(this.Ff,24):this.Ff=Je(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,25)},set:function(i){i?this.Ff=Ke(this.Ff,25):this.Ff=Je(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,26)},set:function(i){i?this.Ff=Ke(this.Ff,26):this.Ff=Je(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(i){t=i}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(i){Number.isInteger(i)&&(t=i)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Bi(Zn,vr);var jo=function(){Zn.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,14)},set:function(t){t?this.Ff=Ke(this.Ff,14):this.Ff=Je(this.Ff,14)}}),this.password=!0};Bi(jo,Zn);var Et={CheckBox:{createAppearanceStream:function(){return{N:{On:Et.CheckBox.YesNormal},D:{On:Et.CheckBox.YesPushDown,Off:Et.CheckBox.OffPushDown}}},YesPushDown:function(t){var i=Cr(t);i.scope=t.scope;var e=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),s=uc(t,t.caption);return e.push("0.749023 g"),e.push("0 0 "+Jt(Et.internal.getWidth(t))+" "+Jt(Et.internal.getHeight(t))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+Jt(s.fontSize)+" Tf "+n),e.push("BT"),e.push(s.text),e.push("ET"),e.push("Q"),e.push("EMC"),i.stream=e.join(`
74`),i},YesNormal:function(t){var i=Cr(t);i.scope=t.scope;var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),n=[],s=Et.internal.getHeight(t),c=Et.internal.getWidth(t),l=uc(t,t.caption);return n.push("1 g"),n.push("0 0 "+Jt(c)+" "+Jt(s)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+Jt(c-1)+" "+Jt(s-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+e+" "+Jt(l.fontSize)+" Tf "+r),n.push(l.text),n.push("ET"),n.push("Q"),i.stream=n.join(`
75`),i},OffPushDown:function(t){var i=Cr(t);i.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Jt(Et.internal.getWidth(t))+" "+Jt(Et.internal.getHeight(t))+" re"),e.push("f"),i.stream=e.join(`
76`),i}},RadioButton:{Circle:{createAppearanceStream:function(t){var i={D:{Off:Et.RadioButton.Circle.OffPushDown},N:{}};return i.N[t]=Et.RadioButton.Circle.YesNormal,i.D[t]=Et.RadioButton.Circle.YesPushDown,i},getCA:function(){return"l"},YesNormal:function(t){var i=Cr(t);i.scope=t.scope;var e=[],r=Et.internal.getWidth(t)<=Et.internal.getHeight(t)?Et.internal.getWidth(t)/4:Et.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=Et.internal.Bezier_C,s=Number((r*n).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+wn(Et.internal.getWidth(t)/2)+" "+wn(Et.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),e.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),e.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),e.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),e.push("f"),e.push("Q"),i.stream=e.join(`
77`),i},YesPushDown:function(t){var i=Cr(t);i.scope=t.scope;var e=[],r=Et.internal.getWidth(t)<=Et.internal.getHeight(t)?Et.internal.getWidth(t)/4:Et.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),s=Number((n*Et.internal.Bezier_C).toFixed(5)),c=Number((r*Et.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+wn(Et.internal.getWidth(t)/2)+" "+wn(Et.internal.getHeight(t)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),e.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),e.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),e.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+wn(Et.internal.getWidth(t)/2)+" "+wn(Et.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+c+" "+c+" "+r+" 0 "+r+" c"),e.push("-"+c+" "+r+" -"+r+" "+c+" -"+r+" 0 c"),e.push("-"+r+" -"+c+" -"+c+" -"+r+" 0 -"+r+" c"),e.push(c+" -"+r+" "+r+" -"+c+" "+r+" 0 c"),e.push("f"),e.push("Q"),i.stream=e.join(`
78`),i},OffPushDown:function(t){var i=Cr(t);i.scope=t.scope;var e=[],r=Et.internal.getWidth(t)<=Et.internal.getHeight(t)?Et.internal.getWidth(t)/4:Et.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),s=Number((n*Et.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+wn(Et.internal.getWidth(t)/2)+" "+wn(Et.internal.getHeight(t)/2)+" cm"),e.push(n+" 0 m"),e.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),e.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),e.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),e.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),e.push("f"),e.push("Q"),i.stream=e.join(`
79`),i}},Cross:{createAppearanceStream:function(t){var i={D:{Off:Et.RadioButton.Cross.OffPushDown},N:{}};return i.N[t]=Et.RadioButton.Cross.YesNormal,i.D[t]=Et.RadioButton.Cross.YesPushDown,i},getCA:function(){return"8"},YesNormal:function(t){var i=Cr(t);i.scope=t.scope;var e=[],r=Et.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+Jt(Et.internal.getWidth(t)-2)+" "+Jt(Et.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(Jt(r.x1.x)+" "+Jt(r.x1.y)+" m"),e.push(Jt(r.x2.x)+" "+Jt(r.x2.y)+" l"),e.push(Jt(r.x4.x)+" "+Jt(r.x4.y)+" m"),e.push(Jt(r.x3.x)+" "+Jt(r.x3.y)+" l"),e.push("s"),e.push("Q"),i.stream=e.join(`
80`),i},YesPushDown:function(t){var i=Cr(t);i.scope=t.scope;var e=Et.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+Jt(Et.internal.getWidth(t))+" "+Jt(Et.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Jt(Et.internal.getWidth(t)-2)+" "+Jt(Et.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(Jt(e.x1.x)+" "+Jt(e.x1.y)+" m"),r.push(Jt(e.x2.x)+" "+Jt(e.x2.y)+" l"),r.push(Jt(e.x4.x)+" "+Jt(e.x4.y)+" m"),r.push(Jt(e.x3.x)+" "+Jt(e.x3.y)+" l"),r.push("s"),r.push("Q"),i.stream=r.join(`
81`),i},OffPushDown:function(t){var i=Cr(t);i.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Jt(Et.internal.getWidth(t))+" "+Jt(Et.internal.getHeight(t))+" re"),e.push("f"),i.stream=e.join(`
82`),i}}},createDefaultAppearanceStream:function(t){var i=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+i+" "+t.fontSize+" Tf "+e}};Et.internal={Bezier_C:.551915024494,calculateCross:function(t){var i=Et.internal.getWidth(t),e=Et.internal.getHeight(t),r=Math.min(i,e);return{x1:{x:(i-r)/2,y:(e-r)/2+r},x2:{x:(i-r)/2+r,y:(e-r)/2},x3:{x:(i-r)/2,y:(e-r)/2},x4:{x:(i-r)/2+r,y:(e-r)/2+r}}}},Et.internal.getWidth=function(t){var i=0;return Ne(t)==="object"&&(i=ju(t.Rect[2])),i},Et.internal.getHeight=function(t){var i=0;return Ne(t)==="object"&&(i=ju(t.Rect[3])),i};var J5=qe.addField=function(t){if(K5(this,t),!(t instanceof vr))throw new Error("Invalid argument passed to jsPDF.addField.");var i;return(i=t).scope.internal.acroformPlugin.printedOut&&(i.scope.internal.acroformPlugin.printedOut=!1,i.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),i.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(i),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};qe.AcroFormChoiceField=ja,qe.AcroFormListBox=Pa,qe.AcroFormComboBox=Ca,qe.AcroFormEditBox=So,qe.AcroFormButton=gi,qe.AcroFormPushButton=Lo,qe.AcroFormRadioButton=Ea,qe.AcroFormCheckBox=ko,qe.AcroFormTextField=Zn,qe.AcroFormPasswordField=jo,qe.AcroFormAppearance=Et,qe.AcroForm={ChoiceField:ja,ListBox:Pa,ComboBox:Ca,EditBox:So,Button:gi,PushButton:Lo,RadioButton:Ea,CheckBox:ko,TextField:Zn,PasswordField:jo,Appearance:Et},Rt.AcroForm={ChoiceField:ja,ListBox:Pa,ComboBox:Ca,EditBox:So,Button:gi,PushButton:Lo,RadioButton:Ea,CheckBox:ko,TextField:Zn,PasswordField:jo,Appearance:Et};function sd(t){return t.reduce(function(i,e,r){return i[e]=r,i},{})}(function(t){var i="addImage_";t.__addimage__={};var e="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=t.__addimage__.getImageFileTypeByImageData=function(L,I){var W,U,at,ft,mt,nt=e;if((I=I||e)==="RGBA"||L.data!==void 0&&L.data instanceof Uint8ClampedArray&&"height"in L&&"width"in L)return"RGBA";if(lt(L))for(mt in r)for(at=r[mt],W=0;W<at.length;W+=1){for(ft=!0,U=0;U<at[W].length;U+=1)if(at[W][U]!==void 0&&at[W][U]!==L[U]){ft=!1;break}if(ft===!0){nt=mt;break}}else for(mt in r)for(at=r[mt],W=0;W<at.length;W+=1){for(ft=!0,U=0;U<at[W].length;U+=1)if(at[W][U]!==void 0&&at[W][U]!==L.charCodeAt(U)){ft=!1;break}if(ft===!0){nt=mt;break}}return nt===e&&I!==e&&(nt=I),nt},s=function L(I){for(var W=this.internal.write,U=this.internal.putStream,at=(0,this.internal.getFilters)();at.indexOf("FlateEncode")!==-1;)at.splice(at.indexOf("FlateEncode"),1);I.objectId=this.internal.newObject();var ft=[];if(ft.push({key:"Type",value:"/XObject"}),ft.push({key:"Subtype",value:"/Image"}),ft.push({key:"Width",value:I.width}),ft.push({key:"Height",value:I.height}),I.colorSpace===j.INDEXED?ft.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(I.palette.length/3-1)+" "+("sMask"in I&&I.sMask!==void 0?I.objectId+2:I.objectId+1)+" 0 R]"}):(ft.push({key:"ColorSpace",value:"/"+I.colorSpace}),I.colorSpace===j.DEVICE_CMYK&&ft.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ft.push({key:"BitsPerComponent",value:I.bitsPerComponent}),"decodeParameters"in I&&I.decodeParameters!==void 0&&ft.push({key:"DecodeParms",value:"<<"+I.decodeParameters+">>"}),"transparency"in I&&Array.isArray(I.transparency)){for(var mt="",nt=0,dt=I.transparency.length;nt<dt;nt++)mt+=I.transparency[nt]+" "+I.transparency[nt]+" ";ft.push({key:"Mask",value:"["+mt+"]"})}I.sMask!==void 0&&ft.push({key:"SMask",value:I.objectId+1+" 0 R"});var St=I.filter!==void 0?["/"+I.filter]:void 0;if(U({data:I.data,additionalKeyValues:ft,alreadyAppliedFilters:St,objectId:I.objectId}),W("endobj"),"sMask"in I&&I.sMask!==void 0){var yt=(I.predictor!=null?"/Predictor "+I.predictor:"")+" /Colors 1 /BitsPerComponent 8 /Columns "+I.width,N={width:I.width,height:I.height,colorSpace:"DeviceGray",bitsPerComponent:I.bitsPerComponent,decodeParameters:yt,data:I.sMask};"filter"in I&&(N.filter=I.filter),L.call(this,N)}if(I.colorSpace===j.INDEXED){var T=this.internal.newObject();U({data:Z(new Uint8Array(I.palette)),objectId:T}),W("endobj")}},c=function(){var L=this.internal.collections[i+"images"];for(var I in L)s.call(this,L[I])},l=function(){var L,I=this.internal.collections[i+"images"],W=this.internal.write;for(var U in I)W("/I"+(L=I[U]).index,L.objectId,"0","R")},h=function(){this.internal.collections[i+"images"]||(this.internal.collections[i+"images"]={},this.internal.events.subscribe("putResources",c),this.internal.events.subscribe("putXobjectDict",l))},d=function(){var L=this.internal.collections[i+"images"];return h.call(this),L},m=function(){return Object.keys(this.internal.collections[i+"images"]).length},y=function(L){return typeof t["process"+L.toUpperCase()]=="function"},A=function(L){return Ne(L)==="object"&&L.nodeType===1},p=function(L,I){if(L.nodeName==="IMG"&&L.hasAttribute("src")){var W=""+L.getAttribute("src");if(W.indexOf("data:image/")===0)return Ao(unescape(W).split("base64,").pop());var U=t.loadFile(W,!0);if(U!==void 0)return U}if(L.nodeName==="CANVAS"){if(L.width===0||L.height===0)throw new Error("Given canvas must have data. Canvas width: "+L.width+", height: "+L.height);var at;switch(I){case"PNG":at="image/png";break;case"WEBP":at="image/webp";break;default:at="image/jpeg"}return Ao(L.toDataURL(at,1).split("base64,").pop())}},O=function(L){var I=this.internal.collections[i+"images"];if(I){for(var W in I)if(L===I[W].alias)return I[W]}},P=function(L,I,W){return L||I||(L=-96,I=-96),L<0&&(L=-1*W.width*72/L/this.internal.scaleFactor),I<0&&(I=-1*W.height*72/I/this.internal.scaleFactor),L===0&&(L=I*W.width/W.height),I===0&&(I=L*W.height/W.width),[L,I]},M=function(L,I,W,U,at,ft){var mt=P.call(this,W,U,at),nt=this.internal.getCoordinateString,dt=this.internal.getVerticalCoordinateString,St=d.call(this);if(W=mt[0],U=mt[1],St[at.index]=at,ft){ft*=Math.PI/180;var yt=Math.cos(ft),N=Math.sin(ft),T=function(Y){return Y.toFixed(4)},B=[T(yt),T(N),T(-1*N),T(yt),0,0,"cm"]}this.internal.write("q"),ft?(this.internal.write([1,"0","0",1,nt(L),dt(I+U),"cm"].join(" ")),this.internal.write(B.join(" ")),this.internal.write([nt(W),"0","0",nt(U),"0","0","cm"].join(" "))):this.internal.write([nt(W),"0","0",nt(U),nt(L),dt(I+U),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+at.index+" Do"),this.internal.write("Q")},j=t.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"};t.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 G=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},V=t.__addimage__.sHashCode=function(L){var I,W,U=0;if(typeof L=="string")for(W=L.length,I=0;I<W;I++)U=(U<<5)-U+L.charCodeAt(I),U|=0;else if(lt(L))for(W=L.byteLength/2,I=0;I<W;I++)U=(U<<5)-U+L[I],U|=0;return U},z=t.__addimage__.validateStringAsBase64=function(L){(L=L||"").toString().trim();var I=!0;return L.length===0&&(I=!1),L.length%4!=0&&(I=!1),/^[A-Za-z0-9+/]+$/.test(L.substr(0,L.length-2))===!1&&(I=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(L.substr(-2))===!1&&(I=!1),I},ot=t.__addimage__.extractImageFromDataUrl=function(L){if(L==null||!(L=L.trim()).startsWith("data:"))return null;var I=L.indexOf(",");return I<0?null:L.substring(0,I).trim().endsWith("base64")?L.substring(I+1):null};t.__addimage__.isArrayBuffer=function(L){return L instanceof ArrayBuffer};var lt=t.__addimage__.isArrayBufferView=function(L){return L instanceof Int8Array||L instanceof Uint8Array||L instanceof Uint8ClampedArray||L instanceof Int16Array||L instanceof Uint16Array||L instanceof Int32Array||L instanceof Uint32Array||L instanceof Float32Array||L instanceof Float64Array},rt=t.__addimage__.binaryStringToUint8Array=function(L){for(var I=L.length,W=new Uint8Array(I),U=0;U<I;U++)W[U]=L.charCodeAt(U);return W},Z=t.__addimage__.arrayBufferToBinaryString=function(L){for(var I="",W=lt(L)?L:new Uint8Array(L),U=0;U<W.length;U+=8192)I+=String.fromCharCode.apply(null,W.subarray(U,U+8192));return I};t.addImage=function(){var L,I,W,U,at,ft,mt,nt,dt;if(typeof arguments[1]=="number"?(I=e,W=arguments[1],U=arguments[2],at=arguments[3],ft=arguments[4],mt=arguments[5],nt=arguments[6],dt=arguments[7]):(I=arguments[1],W=arguments[2],U=arguments[3],at=arguments[4],ft=arguments[5],mt=arguments[6],nt=arguments[7],dt=arguments[8]),Ne(L=arguments[0])==="object"&&!A(L)&&"imageData"in L){var St=L;L=St.imageData,I=St.format||I||e,W=St.x||W||0,U=St.y||U||0,at=St.w||St.width||at,ft=St.h||St.height||ft,mt=St.alias||mt,nt=St.compression||nt,dt=St.rotation||St.angle||dt}var yt=this.internal.getFilters();if(nt===void 0&&yt.indexOf("FlateEncode")!==-1&&(nt="SLOW"),isNaN(W)||isNaN(U))throw new Error("Invalid coordinates passed to 
82jsPDF.addImage");h.call(this);var N=R.call(this,L,I,mt,nt);return M.call(this,W,U,at,ft,N,dt),this};var R=function(L,I,W,U){var at,ft,mt;if(typeof L=="string"&&n(L)===e){L=unescape(L);var nt=Q(L,!1);(nt!==""||(nt=t.loadFile(L,!0))!==void 0)&&(L=nt)}if(A(L)&&(L=p(L,I)),I=n(L,I),!y(I))throw new Error("addImage does not support files of type '"+I+"', please ensure that a plugin for '"+I+"' support is added.");if(((mt=W)==null||mt.length===0)&&(W=function(dt){return typeof dt=="string"||lt(dt)?V(dt):lt(dt.data)?V(dt.data):null}(L)),(at=O.call(this,W))||(L instanceof Uint8Array||I==="RGBA"||(ft=L,L=rt(L)),at=this["process"+I.toUpperCase()](L,m.call(this),W,function(dt){return dt&&typeof dt=="string"&&(dt=dt.toUpperCase()),dt in t.image_compression?dt:G.NONE}(U),ft)),!at)throw new Error("An unknown error occurred whilst processing the image.");return at},Q=t.__addimage__.convertBase64ToBinaryString=function(L,I){I=typeof I!="boolean"||I;var W,U="";if(typeof L=="string"){var at;W=(at=ot(L))!==null&&at!==void 0?at:L;try{U=Ao(W)}catch(ft){if(I)throw z(W)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ft.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return U};t.getImageProperties=function(L){var I,W,U="";if(A(L)&&(L=p(L)),typeof L=="string"&&n(L)===e&&((U=Q(L,!1))===""&&(U=t.loadFile(L)||""),L=U),W=n(L),!y(W))throw new Error("addImage does not support files of type '"+W+"', please ensure that a plugin for '"+W+"' support is added.");if(L instanceof Uint8Array||(L=rt(L)),!(I=this["process"+W.toUpperCase()](L)))throw new Error("An unknown error occurred whilst processing the image");return I.fileType=W,I}})(Rt.API),function(t){var i=function(e){if(e!==void 0&&e!="")return!0};Rt.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var r,n,s,c=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,h=this.internal.getPageInfoByObjId(e.objId),d=e.pageContext.annotations,m=!1,y=0;y<d.length&&!m;y++)switch((r=d[y]).type){case"link":(i(r.options.url)||i(r.options.pageNumber))&&(m=!0);break;case"reference":case"text":case"freetext":m=!0}if(m!=0){this.internal.write("/Annots [");for(var A=0;A<d.length;A++){r=d[A];var p=this.internal.pdfEscape,O=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var P=this.internal.newAdditionalObject(),M=this.internal.newAdditionalObject(),j=this.internal.getEncryptor(P.objId),G=r.title||"Note";s="<</Type /Annot /Subtype /Text "+(n="/Rect ["+c(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+c(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+p(j(r.contents))+")",s+=" /Popup "+M.objId+" 0 R",s+=" /P "+h.objId+" 0 R",s+=" /T ("+p(j(G))+") >>",P.content=s;var V=P.objId+" 0 R";s="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+c(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+c(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+V,r.open&&(s+=" /Open true"),s+=" >>",M.content=s,this.internal.write(P.objId,"0 R",M.objId,"0 R");break;case"freetext":n="/Rect ["+c(r.bounds.x)+" "+l(r.bounds.y)+" "+c(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var z=r.color||"#000000";s="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+p(O(r.contents))+")",s+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+z+")",s+=" /Border [0 0 0]",s+=" >>",this.internal.write(s);break;case"link":if(r.options.name){var ot=this.annotations._nameMap[r.options.name];r.options.pageNumber=ot.page,r.options.top=ot.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",s="",r.options.url)s="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+p(O(r.options.url))+") >>";else if(r.options.pageNumber)switch(s="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":s+=" /Fit]";break;case"FitH":s+=" /FitH "+r.options.top+"]";break;
vendor: 72,674 bytes, lines 82-119
82case"FitV":r.options.left=r.options.left||0,s+=" /FitV "+r.options.left+"]";break;default:var lt=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),s+=" /XYZ "+r.options.left+" "+lt+" "+r.options.zoom+"]"}s!=""&&(s+=" >>",this.internal.write(s))}}this.internal.write("]")}}]),t.createAnnotation=function(e){var r=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":r.pageContext.annotations.push(e)}},t.link=function(e,r,n,s,c){var l=this.internal.getCurrentPageInfo(),h=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:h(e),y:d(r),w:h(e+n),h:d(r+s)},options:c,type:"link"})},t.textWithLink=function(e,r,n,s){var c,l,h=this.getTextWidth(e),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(s.maxWidth!==void 0){l=s.maxWidth;var m=this.splitTextToSize(e,l).length;c=Math.ceil(d*m)}else l=h,c=d;return this.text(e,r,n,s),n+=.2*d,s.align==="center"&&(r-=h/2),s.align==="right"&&(r-=h),this.link(r,n-d,l,c,s),h},t.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}}(Rt.API),function(t){var i={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]},e={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}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];t.__arabicParser__={};var s=t.__arabicParser__.isInArabicSubstitutionA=function(P){return i[P.charCodeAt(0)]!==void 0},c=t.__arabicParser__.isArabicLetter=function(P){return typeof P=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(P)},l=t.__arabicParser__.isArabicEndLetter=function(P){return c(P)&&s(P)&&i[P.charCodeAt(0)].length<=2},h=t.__arabicParser__.isArabicAlfLetter=function(P){return c(P)&&n.indexOf(P.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(P){return c(P)&&s(P)&&i[P.charCodeAt(0)].length>=1};var d=t.__arabicParser__.arabicLetterHasFinalForm=function(P){return c(P)&&s(P)&&i[P.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(P){return c(P)&&s(P)&&i[P.charCodeAt(0)].length>=3};var m=t.__arabicParser__.arabicLetterHasMedialForm=function(P){return c(P)&&s(P)&&i[P.charCodeAt(0)].length==4},y=t.__arabicParser__.resolveLigatures=function(P){var M=0,j=e,G="",V=0;for(M=0;M<P.length;M+=1)j[P.charCodeAt(M)]!==void 0?(V++,typeof(j=j[P.charCodeAt(M)])=="number"&&(G+=String.fromCharCode(j),j=e,V=0),M===P.length-1&&(j=e,G+=P.charAt(M-(V-1)),M-=V-1,V=0)):(j=e,G+=P.charAt(M-V),M-=V,V=0);return G};t.__arabicParser__.isArabicDiacritic=function(P){return P!==void 0&&r[P.charCodeAt(0)]!==void 0};var A=t.__arabicParser__.getCorrectForm=function(P,M,j){return c(P)?s(P)===!1?-1:!d(P)||!c(M)&&!c(j)||!c(j)&&l(M)||l(P)&&!c(M)||l(P)&&h(M)||l(P)&&l(M)?0:m(P)&&c(M)&&!l(M)&&c(j)&&d(j)?3:l(P)||!c(j)?1:2:-1},p=function(P){var M=0,j=0,G=0,V="",z="",ot="",lt=(P=P||"").split("\\s+"),rt=[];for(M=0;M<lt.length;M+=1){for(rt.push(""),j=0;j<lt[M].length;j+=1)V=lt[M][j],z=lt[M][j-1],ot=lt[M][j+1],c(V)?(G=A(V,z,ot),rt[M]+=G!==-1?String.fromCharCode(i[V.charCodeAt(0)][G]):V):rt[M]+=V;rt[M]=y(rt[M])}return rt.join(" ")},O=t.__arabicParser__.processArabic=t.processArabic=function(){var P,M=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,j=[];if(Array.isArray(M)){var G=0;for(j=[],G=0;G<M.length;G+=1)Array.isArray(M[G])?j.push([p(M[G][0]),M[G][1],M[G][2]]):j.push([p(M[G])]);P=j}else P=p(M);return typeof arguments[0]=="string"?P:(arguments[0].text=P,arguments[0])};t.events.push(["preProcessText",O])}(Rt.API),Rt.API.autoPrint=function(t){var i;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){i=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 "+i+" 0 R")})),this},function(t){var i=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(l){r=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(l){n=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(l){s=l}});var c={};Object.defineProperty(this,"style",{get:function(){return c},set:function(l){c=l}}),Object.defineProperty(this,"parentNode",{})};i.prototype.getContext=function(e,r){var n;if((e=e||"2d")!=="2d")return null;for(n in r)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=r[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},i.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new i,this.canvas.pdf=this}])}(Rt.API),function(t){var i={left:0,top:0,bottom:0,right:0},e=!1,r=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({},i),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var h=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return h},set:function(P){h=P}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(P){d=P}});var m=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return m},set:function(P){m=P}});var y=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return y},set:function(P){y=P}});var A=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return A},set:function(P){A=P}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(P){p=P}});var O=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return O},set:function(P){O=P}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(h){return r.call(this),this.internal.__cell__.headerFunction=typeof h=="function"?h:void 0,this},t.getTextDimensions=function(h,d){r.call(this);var m=(d=d||{}).fontSize||this.getFontSize(),y=d.font||this.getFont(),A=d.scaleFactor||this.internal.scaleFactor,p=0,O=0,P=0,M=this;if(!Array.isArray(h)&&typeof h!="string"){if(typeof h!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");h=String(h)}var j=d.maxWidth;j>0?typeof h=="string"?h=this.splitTextToSize(h,j):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(V,z){return V.concat(M.splitTextToSize(z,j))},[])):h=Array.isArray(h)?h:[h];for(var G=0;G<h.length;G++)p<(P=this.getStringUnitWidth(h[G],{font:y})*m)&&(p=P);return p!==0&&(O=h.length),{w:p/=A,h:Math.max((O*m*this.getLineHeightFactor()-m*(this.getLineHeightFactor()-1))/A,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var h=this.internal.__cell__.margins||i;return this.internal.__cell__.lastCell=new s(h.left,h.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var c=t.cell=function(){var h;h=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var d=this.internal.__cell__.lastCell,m=this.internal.__cell__.padding,y=this.internal.__cell__.margins||i,A=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===h.lineNumber?(h.x=(d.x||0)+(d.width||0),h.y=d.y||0):d.y+d.height+h.height+y.bottom>this.getPageHeight()?(this.cellAddPage(),h.y=y.top,p&&A&&(this.printHeaderRow(h.lineNumber,!0),h.y+=A[0].height)):h.y=d.y+d.height||h.y),h.text[0]!==void 0&&(this.rect(h.x,h.y,h.width,h.height,e===!0?"FD":void 0),h.align==="right"?this.text(h.text,h.x+h.width-m,h.y+m,{align:"right",baseline:"top"}):h.align==="center"?this.text(h.text,h.x+h.width/2,h.y+m,{align:"center",baseline:"top",maxWidth:h.width-m-m}):this.text(h.text,h.x+m,h.y+m,{align:"left",baseline:"top",maxWidth:h.width-m-m})),this.internal.__cell__.lastCell=h,this};t.table=function(h,d,m,y,A){if(r.call(this),!m)throw new Error("No data for PDF table.");var p,O,P,M,j=[],G=[],V=[],z={},ot={},lt=[],rt=[],Z=(A=A||{}).autoSize||!1,R=A.printHeaders!==!1,Q=A.css&&A.css["font-size"]!==void 0?16*A.css["font-size"]:A.fontSize||12,L=A.margins||Object.assign({width:this.getPageWidth()},i),I=typeof A.padding=="number"?A.padding:3,W=A.headerBackgroundColor||"#c8c8c8",U=A.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=R,this.internal.__cell__.margins=L,this.internal.__cell__.table_font_size=Q,this.internal.__cell__.padding=I,this.internal.__cell__.headerBackgroundColor=W,this.internal.__cell__.headerTextColor=U,this.setFontSize(Q),y==null)G=j=Object.keys(m[0]),V=j.map(function(){return"left"});else if(Array.isArray(y)&&Ne(y[0])==="object")for(j=y.map(function(St){return St.name}),G=y.map(function(St){return St.prompt||St.name||""}),V=y.map(function(St){return St.align||"left"}),p=0;p<y.length;p+=1)ot[y[p].name]=.7499990551181103*y[p].width;else Array.isArray(y)&&typeof y[0]=="string"&&(G=j=y,V=j.map(function(){return"left"}));if(Z||Array.isArray(y)&&typeof y[0]=="string")for(p=0;p<j.length;p+=1){for(z[M=j[p]]=m.map(function(St){return St[M]}),this.setFont(void 0,"bold"),lt.push(this.getTextDimensions(G[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),O=z[M],this.setFont(void 0,"normal"),P=0;P<O.length;P+=1)lt.push(this.getTextDimensions(O[P],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ot[M]=Math.max.apply(null,lt)+I+I,lt=[]}if(R){var at={};for(p=0;p<j.length;p+=1)at[j[p]]={},at[j[p]].text=G[p],at[j[p]].align=V[p];var ft=l.call(this,at,ot);rt=j.map(function(St){return new s(h,d,ot[St],ft,at[St].text,void 0,at[St].align)}),this.setTableHeaderRow(rt),this.printHeaderRow(1,!1)}var mt=y.reduce(function(St,yt){return St[yt.name]=yt.align,St},{});for(p=0;p<m.length;p+=1){"rowStart"in A&&A.rowStart instanceof Function&&A.rowStart({row:p,data:m[p]},this);var nt=l.call(this,m[p],ot);for(P=0;P<j.length;P+=1){var dt=m[p][j[P]];"cellStart"in A&&A.cellStart instanceof Function&&A.cellStart({row:p,col:P,data:dt},this),c.call(this,new s(h,d,ot[j[P]],nt,dt,p+2,mt[j[P]]))}}return this.internal.__cell__.table_x=h,this.internal.__cell__.table_y=d,this};var l=function(h,d){var m=this.internal.__cell__.padding,y=this.internal.__cell__.table_font_size,A=this.internal.scaleFactor;return Object.keys(h).map(function(p){var O=h[p];return this.splitTextToSize(O.hasOwnProperty("text")?O.text:O,d[p]-m-m)},this).map(function(p){return this.getLineHeightFactor()*p.length*y/A+m+m},this).reduce(function(p,O){return Math.max(p,O)},0)};t.setTableHeaderRow=function(h){r.call(this),this.internal.__cell__.tableHeaderRow=h},t.printHeaderRow=function(h,d){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var m;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var y=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(y[0],y[1],y[2],y[3],void 0,-1)}this.setFont(void 0,"bold");for(var A=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){m=this.internal.__cell__.tableHeaderRow[p].clone(),d&&(m.y=this.internal.__cell__.margins.top||0,A.push(m)),m.lineNumber=h;var O=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),c.call(this,m),this.setTextColor(O)}A.length>0&&this.setTableHeaderRow(A),this.setFont(void 0,"normal"),e=!1}}(Rt.API);var od={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},ld=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],fc=sd(ld),cd=[100,200,300,400,500,600,700,800,900],X5=sd(cd);function Yl(t){var i=t.family.replace(/"|'/g,"").toLowerCase(),e=function(s){return od[s=s||"normal"]?s:"normal"}(t.style),r=function(s){return s?typeof s=="number"?s>=100&&s<=900&&s%100==0?s:400:/^\d00$/.test(s)?parseInt(s):s==="bold"?700:400:400}(t.weight),n=function(s){return typeof fc[s=s||"normal"]=="number"?s:"normal"}(t.stretch);return{family:i,style:e,weight:r,stretch:n,src:t.src||[],ref:t.ref||{name:i,style:[n,e,r].join(" ")}}}function Pu(t,i,e,r){var n;for(n=e;n>=0&&n<i.length;n+=r)if(t[i[n]])return t[i[n]];for(n=e;n>=0&&n<i.length;n-=r)if(t[i[n]])return t[i[n]]}var Q5={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Cu={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Eu(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Fu(t){return t.trimLeft()}function tp(t,i){for(var e=0;e<t.length;){if(t.charAt(e)===i)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function ep(t){var i=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return i===null?null:[i[0],t.substring(i[0].length)]}var wo,Iu,Ou,_a,xo,Tu,Du,Mu,Vl=["times"];function Ru(t,i,e,r){var n=4,s=zu;switch(r){case Rt.API.image_compression.FAST:n=1,s=Bu;break;case Rt.API.image_compression.MEDIUM:n=6,s=qu;break;case Rt.API.image_compression.SLOW:n=9,s=Uu}t=function(l,h,d,m){for(var y,A=l.length/h,p=new Uint8Array(l.length+A),O=[ip,Bu,zu,qu,Uu],P=0;P<A;P+=1){var M=P*h,j=l.subarray(M,M+h);if(m)p.set(m(j,d,y),M+P);else{for(var G=O.length,V=[],z=0;z<G;z+=1)V[z]=O[z](j,d,y);var ot=np(V.concat());p.set(V[ot],M+P)}y=j}return p}(t,i,e,s);var c=Ql(t,{level:n});return Rt.API.__addimage__.arrayBufferToBinaryString(c)}function ip(t){var i=Array.apply([],t);return i.unshift(0),i}function Bu(t,i){var e=t.length,r=[];r[0]=1;for(var n=0;n<e;n+=1){var s=t[n-i]||0;r[n+1]=t[n]-s+256&255}return r}function zu(t,i,e){var r=t.length,n=[];n[0]=2;for(var s=0;s<r;s+=1){var c=e&&e[s]||0;n[s+1]=t[s]-c+256&255}return n}function qu(t,i,e){var r=t.length,n=[];n[0]=3;for(var s=0;s<r;s+=1){var c=t[s-i]||0,l=e&&e[s]||0;n[s+1]=t[s]+256-(c+l>>>1)&255}return n}function Uu(t,i,e){var r=t.length,n=[];n[0]=4;for(var s=0;s<r;s+=1){var c=rp(t[s-i]||0,e&&e[s]||0,e&&e[s-i]||0);n[s+1]=t[s]-c+256&255}return n}function rp(t,i,e){if(t===i&&i===e)return t;var r=Math.abs(i-e),n=Math.abs(t-e),s=Math.abs(t+i-e-e);return r<=n&&r<=s?t:n<=s?i:e}function np(t){var i=t.map(function(e){return e.reduce(function(r,n){return r+Math.abs(n)},0)});return i.indexOf(Math.min.apply(null,i))}function Gl(t,i,e){var r=i*e,n=Math.floor(r/8),s=16-(r-8*n+e),c=(1<<e)-1;return hd(t,n)>>s&c}function Hu(t,i,e,r){var n=e*r,s=Math.floor(n/8),c=16-(n-8*s+r),l=(1<<r)-1,h=(i&l)<<c;(function(d,m,y){if(m+1<d.byteLength)d.setUint16(m,y,!1);else{var A=y>>8&255;d.setUint8(m,A)}})(t,s,hd(t,s)&~(l<<c)&65535|h)}function hd(t,i){return i+1<t.byteLength?t.getUint16(i,!1):t.getUint8(i)<<8}function ap(t){var i=0;if(t[i++]!==71||t[i++]!==73||t[i++]!==70||t[i++]!==56||(t[i++]+1&253)!=56||t[i++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[i++]|t[i++]<<8,r=t[i++]|t[i++]<<8,n=t[i++],s=n>>7,c=1<<1+(7&n);t[i++],t[i++];var l=null,h=null;s&&(l=i,h=c,i+=3*c);var d=!0,m=[],y=0,A=null,p=0,O=null;for(this.width=e,this.height=r;d&&i<t.length;)switch(t[i++]){case 33:switch(t[i++]){case 255:if(t[i]!==11||t[i+1]==78&&t[i+2]==69&&t[i+3]==84&&t[i+4]==83&&t[i+5]==67&&t[i+6]==65&&t[i+7]==80&&t[i+8]==69&&t[i+9]==50&&t[i+10]==46&&t[i+11]==48&&t[i+12]==3&&t[i+13]==1&&t[i+16]==0)i+=14,O=t[i++]|t[i++]<<8,i++;else for(i+=12;;){if(!((L=t[i++])>=0))throw Error("Invalid block size");if(L===0)break;i+=L}break;case 249:if(t[i++]!==4||t[i+4]!==0)throw new Error("Invalid graphics extension block.");var P=t[i++];y=t[i++]|t[i++]<<8,A=t[i++],1&P||(A=null),p=P>>2&7,i++;break;case 254:for(;;){if(!((L=t[i++])>=0))throw Error("Invalid block size");if(L===0)break;i+=L}break;default:throw new Error("Unknown graphic control label: 0x"+t[i-1].toString(16))}break;case 44:var M=t[i++]|t[i++]<<8,j=t[i++]|t[i++]<<8,G=t[i++]|t[i++]<<8,V=t[i++]|t[i++]<<8,z=t[i++],ot=z>>6&1,lt=1<<1+(7&z),rt=l,Z=h,R=!1;z>>7&&(R=!0,rt=i,Z=lt,i+=3*lt);var Q=i;for(i++;;){var L;if(!((L=t[i++])>=0))throw Error("Invalid block size");if(L===0)break;i+=L}m.push({x:M,y:j,width:G,height:V,has_local_palette:R,palette_offset:rt,palette_size:Z,data_offset:Q,data_length:i-Q,transparent_index:A,interlaced:!!ot,delay:y,disposal:p});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+t[i-1].toString(16))}this.numFrames=function(){return m.length},this.loopCount=function(){return O},this.frameInfo=function(I){if(I<0||I>=m.length)throw new Error("Frame index out of range.");return m[I]},this.decodeAndBlitFrameBGRA=function(I,W){var U=this.frameInfo(I),at=U.width*U.height,ft=new Uint8Array(at);Wu(t,U.data_offset,ft,at);var mt=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var dt=U.width,St=e-dt,yt=dt,N=4*(U.y*e+U.x),T=4*((U.y+U.height)*e+U.x),B=N,Y=4*St;U.interlaced===!0&&(Y+=4*e*7);for(var K=8,tt=0,ht=ft.length;tt<ht;++tt){var st=ft[tt];if(yt===0&&(yt=dt,(B+=Y)>=T&&(Y=4*St+4*e*(K-1),B=N+(dt+St)*(K<<1),K>>=1)),st===nt)B+=4;else{var bt=t[mt+3*st],At=t[mt+3*st+1],jt=t[mt+3*st+2];W[B++]=jt,W[B++]=At,W[B++]=bt,W[B++]=255}--yt}},this.decodeAndBlitFrameRGBA=function(I,W){var U=this.frameInfo(I),at=U.width*U.height,ft=new Uint8Array(at);Wu(t,U.data_offset,ft,at);var mt=U.palette_offset,nt=U.transparent_index;nt===null&&(nt=256);var dt=U.width,St=e-dt,yt=dt,N=4*(U.y*e+U.x),T=4*((U.y+U.height)*e+U.x),B=N,Y=4*St;U.interlaced===!0&&(Y+=4*e*7);for(var K=8,tt=0,ht=ft.length;tt<ht;++tt){var st=ft[tt];if(yt===0&&(yt=dt,(B+=Y)>=T&&(Y=4*St+4*e*(K-1),B=N+(dt+St)*(K<<1),K>>=1)),st===nt)B+=4;else{var bt=t[mt+3*st],At=t[mt+3*st+1],jt=t[mt+3*st+2];W[B++]=bt,W[B++]=At,W[B++]=jt,W[B++]=255}--yt}}}function Wu(t,i,e,r){for(var n=t[i++],s=1<<n,c=s+1,l=c+1,h=n+1,d=(1<<h)-1,m=0,y=0,A=0,p=t[i++],O=new Int32Array(4096),P=null;;){for(;m<16&&p!==0;)y|=t[i++]<<m,m+=8,p===1?p=t[i++]:--p;if(m<h)break;var M=y&d;if(y>>=h,m-=h,M!==s){if(M===c)break;for(var j=M<l?M:P,G=0,V=j;V>s;)V=O[V]>>8,++G;var z=V;if(A+G+(j!==M?1:0)>r)return void Pe.log("Warning, gif stream longer than expected.");e[A++]=z;var ot=A+=G;for(j!==M&&(e[A++]=z),V=j;G--;)V=O[V],e[--ot]=255&V,V>>=8;P!==null&&l<4096&&(O[l++]=P<<8|z,l>=d+1&&h<12&&(++h,d=d<<1|1)),P=M}else l=c+1,d=(1<<(h=n+1))-1,P=null}return A!==r&&Pe.log("Warning, gif stream shorter than expected."),e}/**
83 * @license
84  Copyright (c) 2008, Adobe Systems Incorporated
85  All rights reserved.
86
87  Redistribution and use in source and binary forms, with or without 
88  modification, are permitted provided that the following conditions are
89  met:
90
91  * Redistributions of source code must retain the above copyright notice, 
92    this list of conditions and the following disclaimer.
93  
94  * Redistributions in binary form must reproduce the above copyright
95    notice, this list of conditions and the following disclaimer in the 
96    documentation and/or other materials provided with the distribution.
97  
98  * Neither the name of Adobe Systems Incorporated nor the names of its 
99    contributors may be used to endorse or promote products derived from 
100    this software without specific prior written permission.
101
102  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
103  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
104  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
105  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
106  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
107  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
108  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
109  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
110  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
111  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
112  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
113*/function $l(t){var i,e,r,n,s,c=Math.floor,l=new Array(64),h=new Array(64),d=new Array(64),m=new Array(64),y=new Array(65535),A=new Array(65535),p=new Array(64),O=new Array(64),P=[],M=0,j=7,G=new Array(64),V=new Array(64),z=new Array(64),ot=new Array(256),lt=new Array(2048),rt=[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],Z=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],Q=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[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],I=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],W=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],at=[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 ft(N,T){for(var B=0,Y=0,K=new Array,tt=1;tt<=16;tt++){for(var ht=1;ht<=N[tt];ht++)K[T[Y]]=[],K[T[Y]][0]=B,K[T[Y]][1]=tt,Y++,B++;B*=2}return K}function mt(N){for(var T=N[0],B=N[1]-1;B>=0;)T&1<<B&&(M|=1<<j),B--,--j<0&&(M==255?(nt(255),nt(0)):nt(M),j=7,M=0)}function nt(N){P.push(N)}function dt(N){nt(N>>8&255),nt(255&N)}function St(N,T,B,Y,K){for(var tt,ht=K[0],st=K[240],bt=function(Nt,Bt){var kt,ne,Ut,ge,Xt,Qt,Ae,ae,zt,Vt,qt=0;for(zt=0;zt<8;++zt){kt=Nt[qt],ne=Nt[qt+1],Ut=Nt[qt+2],ge=Nt[qt+3],Xt=Nt[qt+4],Qt=Nt[qt+5],Ae=Nt[qt+6];var Ce=kt+(ae=Nt[qt+7]),ve=kt-ae,Dt=ne+Ae,te=ne-Ae,Le=Ut+Qt,Wt=Ut-Qt,he=ge+Xt,ee=ge-Xt,Ue=Ce+he,ri=Ce-he,ke=Dt+Le,Zt=Dt-Le;Nt[qt]=Ue+ke,Nt[qt+4]=Ue-ke;var xe=.707106781*(Zt+ri);Nt[qt+2]=ri+xe,Nt[qt+6]=ri-xe;var kn=.382683433*((Ue=ee+Wt)-(Zt=te+ve)),Ni=.5411961*Ue+kn,Mr=1.306562965*Zt+kn,wr=.707106781*(ke=Wt+te),Yt=ve+wr,Rr=ve-wr;Nt[qt+5]=Rr+Ni,Nt[qt+3]=Rr-Ni,Nt[qt+1]=Yt+Mr,Nt[qt+7]=Yt-Mr,qt+=8}for(qt=0,zt=0;zt<8;++zt){kt=Nt[qt],ne=Nt[qt+8],Ut=Nt[qt+16],ge=Nt[qt+24],Xt=Nt[qt+32],Qt=Nt[qt+40],Ae=Nt[qt+48];var Br=kt+(ae=Nt[qt+56]),Xi=kt-ae,Qi=ne+Ae,Re=ne-Ae,fi=Ut+Qt,vi=Ut-Qt,jn=ge+Xt,rn=ge-Xt,or=Br+jn,xr=Br-jn,lr=Qi+fi,cr=Qi-fi;Nt[qt]=or+lr,Nt[qt+32]=or-lr;var tr=.707106781*(cr+xr);Nt[qt+16]=xr+tr,Nt[qt+48]=xr-tr;var Pn=.382683433*((or=rn+vi)-(cr=Re+Xi)),yr=.5411961*or+Pn,Cn=1.306562965*cr+Pn,ea=.707106781*(lr=vi+Re),ia=Xi+ea,ra=Xi-ea;Nt[qt+40]=ra+yr,Nt[qt+24]=ra-yr,Nt[qt+8]=ia+Cn,Nt[qt+56]=ia-Cn,qt++}for(zt=0;zt<64;++zt)Vt=Nt[zt]*Bt[zt],p[zt]=Vt>0?Vt+.5|0:Vt-.5|0;return p}(N,T),At=0;At<64;++At)O[rt[At]]=bt[At];var jt=O[0]-B;B=O[0],jt==0?mt(Y[0]):(mt(Y[A[tt=32767+jt]]),mt(y[tt]));for(var Pt=63;Pt>0&&O[Pt]==0;)Pt--;if(Pt==0)return mt(ht),B;for(var ct,D=1;D<=Pt;){for(var ce=D;O[D]==0&&D<=Pt;)++D;var re=D-ce;if(re>=16){ct=re>>4;for(var Ht=1;Ht<=ct;++Ht)mt(st);re&=15}tt=32767+O[D],mt(K[(re<<4)+A[tt]]),mt(y[tt]),D++}return Pt!=63&&mt(ht),B}function yt(N){N=Math.min(Math.max(N,1),100),s!=N&&(function(T){for(var B=[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],Y=0;Y<64;Y++){var K=c((B[Y]*T+50)/100);K=Math.min(Math.max(K,1),255),l[rt[Y]]=K}for(var tt=[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],ht=0;ht<64;ht++){var st=c((tt[ht]*T+50)/100);st=Math.min(Math.max(st,1),255),h[rt[ht]]=st}for(var bt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],At=0,jt=0;jt<8;jt++)for(var Pt=0;Pt<8;Pt++)d[At]=1/(l[rt[At]]*bt[jt]*bt[Pt]*8),m[At]=1/(h[rt[At]]*bt[jt]*bt[Pt]*8),At++}(N<50?Math.floor(5e3/N):Math.floor(200-2*N)),s=N)}this.encode=function(N,T){T&&yt(T),P=new Array,M=0,j=7,dt(65496),dt(65504),dt(16),nt(74),nt(70),nt(73),nt(70),nt(0),nt(1),nt(1),nt(0),dt(1),dt(1),nt(0),nt(0),function(){dt(65499),dt(132),nt(0);for(var ne=0;ne<64;ne++)nt(l[ne]);nt(1);for(var Ut=0;Ut<64;Ut++)nt(h[Ut])}(),function(ne,Ut){dt(65472),dt(17),nt(8),dt(Ut),dt(ne),nt(3),nt(1),nt(17),nt(0),nt(2),nt(17),nt(1),nt(3),nt(17),nt(1)}(N.width,N.height),function(){dt(65476),dt(418),nt(0);for(var ne=0;ne<16;ne++)nt(Z[ne+1]);for(var Ut=0;Ut<=11;Ut++)nt(R[Ut]);nt(16);for(var ge=0;ge<16;ge++)nt(Q[ge+1]);for(var Xt=0;Xt<=161;Xt++)nt(L[Xt]);nt(1);for(var Qt=0;Qt<16;Qt++)nt(I[Qt+1]);for(var Ae=0;Ae<=11;Ae++)nt(W[Ae]);nt(17);for(var ae=0;ae<16;ae++)nt(U[ae+1]);for(var zt=0;zt<=161;zt++)nt(at[zt])}(),dt(65498),dt(12),nt(3),nt(1),nt(0),nt(2),nt(17),nt(3),nt(17),nt(0),nt(63),nt(0);var B=0,Y=0,K=0;M=0,j=7,this.encode.displayName="_encode_";for(var tt,ht,st,bt,At,jt,Pt,ct,D,ce=N.data,re=N.width,Ht=N.height,Nt=4*re,Bt=0;Bt<Ht;){for(tt=0;tt<Nt;){for(At=Nt*Bt+tt,Pt=-1,ct=0,D=0;D<64;D++)jt=At+(ct=D>>3)*Nt+(Pt=4*(7&D)),Bt+ct>=Ht&&(jt-=Nt*(Bt+1+ct-Ht)),tt+Pt>=Nt&&(jt-=tt+Pt-Nt+4),ht=ce[jt++],st=ce[jt++],bt=ce[jt++],G[D]=(lt[ht]+lt[st+256|0]+lt[bt+512|0]>>16)-128,V[D]=(lt[ht+768|0]+lt[st+1024|0]+lt[bt+1280|0]>>16)-128,z[D]=(lt[ht+1280|0]+lt[st+1536|0]+lt[bt+1792|0]>>16)-128;B=St(G,d,B,i,r),Y=St(V,m,Y,e,n),K=St(z,m,K,e,n),tt+=32}Bt+=8}if(j>=0){var kt=[];kt[1]=j+1,kt[0]=(1<<j+1)-1,mt(kt)}return dt(65497),new Uint8Array(P)},t=t||50,function(){for(var N=String.fromCharCode,T=0;T<256;T++)ot[T]=N(T)}(),i=ft(Z,R),e=ft(I,W),r=ft(Q,L),n=ft(U,at),function(){for(var N=1,T=2,B=1;B<=15;B++){for(var Y=N;Y<T;Y++)A[32767+Y]=B,y[32767+Y]=[],y[32767+Y][1]=B,y[32767+Y][0]=Y;for(var K=-(T-1);K<=-N;K++)A[32767+K]=B,y[32767+K]=[],y[32767+K][1]=B,y[32767+K][0]=T-1+K;N<<=1,T<<=1}}(),function(){for(var N=0;N<256;N++)lt[N]=19595*N,lt[N+256|0]=38470*N,lt[N+512|0]=7471*N+32768,lt[N+768|0]=-11059*N,lt[N+1024|0]=-21709*N,lt[N+1280|0]=32768*N+8421375,lt[N+1536|0]=-27439*N,lt[N+1792|0]=-5329*N}(),yt(t)}/**
114 * @license
115 * Copyright (c) 2017 Aras Abbasi
116 *
117 * Licensed under the MIT License.
118 * http://opensource.org/licenses/mit-license
119 */function mr(t,i){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!i,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 Yu(t){function i(R){if(!R)throw Error("assert :P")}function e(R,Q,L){for(var I=0;4>I;I++)if(R[Q+I]!=L.charCodeAt(I))return!0;return!1}function r(R,Q,L,I,W){for(var U=0;U<W;U++)R[Q+U]=L[I+U]}function n(R,Q,L,I){for(var W=0;W<I;W++)R[Q+W]=L}function s(R){return new Int32Array(R)}function c(R,Q){for(var L=[],I=0;I<R;I++)L.push(new Q);return L}function l(R,Q){var L=[];return function I(W,U,at){for(var ft=at[U],mt=0;mt<ft&&(W.push(at.length>U+1?[]:new Q),!(at.length<U+1));mt++)I(W[mt],U+1,at)}(L,0,R),L}var h=function(){var R=this;function Q(a,o){for(var f=1<<o-1>>>0;a&f;)f>>>=1;return f?(a&f-1)+f:a}function L(a,o,f,g,b){i(!(g%f));do a[o+(g-=f)]=b;while(0<g)}function I(a,o,f,g,b){if(i(2328>=b),512>=b)var x=s(512);else if((x=s(b))==null)return 0;return function(_,S,k,C,H,it){var E,$,X=S,ut=1<<k,et=s(16),pt=s(16);for(i(H!=0),i(C!=null),i(_!=null),i(0<k),$=0;$<H;++$){if(15<C[$])return 0;++et[C[$]]}if(et[0]==H)return 0;for(pt[1]=0,E=1;15>E;++E){if(et[E]>1<<E)return 0;pt[E+1]=pt[E]+et[E]}for($=0;$<H;++$)E=C[$],0<C[$]&&(it[pt[E]++]=$);if(pt[15]==1)return(C=new W).g=0,C.value=it[0],L(_,X,1,ut,C),ut;var vt,_t=-1,wt=ut-1,Mt=0,Ct=1,oe=1,It=1<<k;for($=0,E=1,H=2;E<=k;++E,H<<=1){if(Ct+=oe<<=1,0>(oe-=et[E]))return 0;for(;0<et[E];--et[E])(C=new W).g=E,C.value=it[$++],L(_,X+Mt,H,It,C),Mt=Q(Mt,E)}for(E=k+1,H=2;15>=E;++E,H<<=1){if(Ct+=oe<<=1,0>(oe-=et[E]))return 0;for(;0<et[E];--et[E]){if(C=new W,(Mt&wt)!=_t){for(X+=It,vt=1<<(_t=E)-k;15>_t&&!(0>=(vt-=et[_t]));)++_t,vt<<=1;ut+=It=1<<(vt=_t-k),_[S+(_t=Mt&wt)].g=vt+k,_[S+_t].value=X-S-_t}C.g=E-k,C.value=it[$++],L(_,X+(Mt>>k),H,It,C),Mt=Q(Mt,E)}}return Ct!=2*pt[15]-1?0:ut}(a,o,f,g,b,x)}function W(){this.value=this.g=0}function U(){this.value=this.g=0}function at(){this.G=c(5,W),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=c(Ar,U)}function ft(a,o,f,g){i(a!=null),i(o!=null),i(2147483648>g),a.Ca=254,a.I=0,a.b=-8,a.Ka=0,a.oa=o,a.pa=f,a.Jd=o,a.Yc=f+g,a.Zc=4<=g?f+g-4+1:f,ht(a)}function mt(a,o){for(var f=0;0<o--;)f|=bt(a,128)<<o;return f}function nt(a,o){var f=mt(a,o);return st(a)?-f:f}function dt(a,o,f,g){var b,x=0;for(i(a!=null),i(o!=null),i(4294967288>g),a.Sb=g,a.Ra=0,a.u=0,a.h=0,4<g&&(g=4),b=0;b<g;++b)x+=o[f+b]<<8*b;a.Ra=x,a.bb=g,a.oa=o,a.pa=f}function St(a){for(;8<=a.u&&a.bb<a.Sb;)a.Ra>>>=8,a.Ra+=a.oa[a.pa+a.bb]<<hn-8>>>0,++a.bb,a.u-=8;Y(a)&&(a.h=1,a.u=0)}function yt(a,o){if(i(0<=o),!a.h&&o<=is){var f=B(a)&cn[o];return a.u+=o,St(a),f}return a.h=1,a.u=0}function N(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function T(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function B(a){return a.Ra>>>(a.u&hn-1)>>>0}function Y(a){return i(a.bb<=a.Sb),a.h||a.bb==a.Sb&&a.u>hn}function K(a,o){a.u=o,a.h=Y(a)}function tt(a){a.u>=We&&(i(a.u>=We),St(a))}function ht(a){i(a!=null&&a.oa!=null),a.pa<a.Zc?(a.I=(a.oa[a.pa++]|a.I<<8)>>>0,a.b+=8):(i(a!=null&&a.oa!=null),a.pa<a.Yc?(a.b+=8,a.I=a.oa[a.pa++]|a.I<<8):a.Ka?a.b=0:(a.I<<=8,a.b+=8,a.Ka=1))}function st(a){return mt(a,1)}function bt(a,o){var f=a.Ca;0>a.b&&ht(a);var g=a.b,b=f*o>>>8,x=(a.I>>>g>b)+0;for(x?(f-=b,a.I-=b+1<<g>>>0):f=b+1,g=f,b=0;256<=g;)b+=8,g>>=8;return g=7^b+rl[g],a.b-=g,a.Ca=(f<<g)-1,x}function At(a,o,f){a[o+0]=f>>24&255,a[o+1]=f>>16&255,a[o+2]=f>>8&255,a[o+3]=255&f}function jt(a,o){return a[o+0]|a[o+1]<<8}function Pt(a,o){return jt(a,o)|a[o+2]<<16}function ct(a,o){return jt(a,o)|jt(a,o+2)<<16}function D(a,o){var f=1<<o;return i(a!=null),i(0<o),a.X=s(f),a.X==null?0:(a.Mb=32-o,a.Xa=o,1)}function ce(a,o){i(a!=null),i(o!=null),i(a.Xa==o.Xa),r(o.X,0,a.X,0,1<<o.Xa)}function re(){this.X=[],this.Xa=this.Mb=0}function Ht(a,o,f,g){i(f!=null),i(g!=null);var b=f[0],x=g[0];return b==0&&(b=(a*x+o/2)/o),x==0&&(x=(o*b+a/2)/a),0>=b||0>=x?0:(f[0]=b,g[0]=x,1)}function Nt(a,o){return a+(1<<o)-1>>>o}function Bt(a,o){return((4278255360&a)+(4278255360&o)>>>0&4278255360)+((16711935&a)+(16711935&o)>>>0&16711935)>>>0}function kt(a,o){R[o]=function(f,g,b,x,_,S,k){var C;for(C=0;C<_;++C){var H=R[a](S[k+C-1],b,x+C);S[k+C]=Bt(f[g+C],H)}}}function ne(){this.ud=this.hd=this.jd=0}function Ut(a,o){return((4278124286&(a^o))>>>1)+(a&o)>>>0}function ge(a){return 0<=a&&256>a?a:0>a?0:255<a?255:void 0}function Xt(a,o){return ge(a+(a-o+.5>>1))}function Qt(a,o,f){return Math.abs(o-f)-Math.abs(a-f)}function Ae(a,o,f,g,b,x,_){for(g=x[_-1],f=0;f<b;++f)x[_+f]=g=Bt(a[o+f],g)}function ae(a,o,f,g,b){var x;for(x=0;x<f;++x){var _=a[o+x],S=_>>8&255,k=16711935&(k=(k=16711935&_)+((S<<16)+S));g[b+x]=(4278255360&_)+k>>>0}}function zt(a,o){o.jd=255&a,o.hd=a>>8&255,o.ud=a>>16&255}function Vt(a,o,f,g,b,x){var _;for(_=0;_<g;++_){var S=o[f+_],k=S>>>8,C=S,H=255&(H=(H=S>>>16)+((a.jd<<24>>24)*(k<<24>>24)>>>5));C=255&(C=(C+=(a.hd<<24>>24)*(k<<24>>24)>>>5)+((a.ud<<24>>24)*(H<<24>>24)>>>5)),b[x+_]=(4278255360&S)+(H<<16)+C}}function qt(a,o,f,g,b){R[o]=function(x,_,S,k,C,H,it,E,$){for(k=it;k<E;++k)for(it=0;it<$;++it)C[H++]=b(S[g(x[_++])])},R[a]=function(x,_,S,k,C,H,it){var E=8>>x.b,$=x.Ea,X=x.K[0],ut=x.w;if(8>E)for(x=(1<<x.b)-1,ut=(1<<E)-1;_<S;++_){var et,pt=0;for(et=0;et<$;++et)et&x||(pt=g(k[C++])),H[it++]=b(X[pt&ut]),pt>>=E}else R["VP8LMapColor"+f](k,C,X,ut,H,it,_,S,$)}}function Ce(a,o,f,g,b){for(f=o+f;o<f;){var x=a[o++];g[b++]=x>>16&255,g[b++]=x>>8&255,g[b++]=255&x}}function ve(a,o,f,g,b){for(f=o+f;o<f;){var x=a[o++];g[b++]=x>>16&255,g[b++]=x>>8&255,g[b++]=255&x,g[b++]=x>>24&255}}function Dt(a,o,f,g,b){for(f=o+f;o<f;){var x=(_=a[o++])>>16&240|_>>12&15,_=240&_|_>>28&15;g[b++]=x,g[b++]=_}}function te(a,o,f,g,b){for(f=o+f;o<f;){var x=(_=a[o++])>>16&248|_>>13&7,_=_>>5&224|_>>3&31;g[b++]=x,g[b++]=_}}function Le(a,o,f,g,b){for(f=o+f;o<f;){var x=a[o++];g[b++]=255&x,g[b++]=x>>8&255,g[b++]=x>>16&255}}function Wt(a,o,f,g,b,x){if(x==0)for(f=o+f;o<f;)At(g,((x=a[o++])[0]>>24|x[1]>>8&65280|x[2]<<8&16711680|x[3]<<24)>>>0),b+=32;else r(g,b,a,o,f)}function he(a,o){R[o][0]=R[a+"0"],R[o][1]=R[a+"1"],R[o][2]=R[a+"2"],R[o][3]=R[a+"3"],R[o][4]=R[a+"4"],R[o][5]=R[a+"5"],R[o][6]=R[a+"6"],R[o][7]=R[a+"7"],R[o][8]=R[a+"8"],R[o][9]=R[a+"9"],R[o][10]=R[a+"10"],R[o][11]=R[a+"11"],R[o][12]=R[a+"12"],R[o][13]=R[a+"13"],R[o][14]=R[a+"0"],R[o][15]=R[a+"0"]}function ee(a){return a==sl||a==ol||a==Xs||a==ll}function Ue(){this.eb=[],this.size=this.A=this.fb=0}function ri(){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 ke(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ue,this.f.kb=new ri,this.sd=null}function Zt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function xe(){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 kn(a){return alert("todo:WebPSamplerProcessPlane"),a.T}function Ni(a,o){var f=a.T,g=o.ba.f.RGBA,b=g.eb,x=g.fb+a.ka*g.A,_=nr[o.ba.S],S=a.y,k=a.O,C=a.f,H=a.N,it=a.ea,E=a.W,$=o.cc,X=o.dc,ut=o.Mc,et=o.Nc,pt=a.ka,vt=a.ka+a.T,_t=a.U,wt=_t+1>>1;for(pt==0?_(S,k,null,null,C,H,it,E,C,H,it,E,b,x,null,null,_t):(_(o.ec,o.fc,S,k,$,X,ut,et,C,H,it,E,b,x-g.A,b,x,_t),++f);pt+2<vt;pt+=2)$=C,X=H,ut=it,et=E,H+=a.Rc,E+=a.Rc,x+=2*g.A,_(S,(k+=2*a.fa)-a.fa,S,k,$,X,ut,et,C,H,it,E,b,x-g.A,b,x,_t);return k+=a.fa,a.j+vt<a.o?(r(o.ec,o.fc,S,k,_t),r(o.cc,o.dc,C,H,wt),r(o.Mc,o.Nc,it,E,wt),f--):1&vt||_(S,k,null,null,C,H,it,E,C,H,it,E,b,x+g.A,null,null,_t),f}function Mr(a,o,f){var g=a.F,b=[a.J];if(g!=null){var x=a.U,_=o.ba.S,S=_==Js||_==Xs;o=o.ba.f.RGBA;var k=[0],C=a.ka;k[0]=a.T,a.Kb&&(C==0?--k[0]:(--C,b[0]-=a.width),a.j+a.ka+a.T==a.o&&(k[0]=a.o-a.j-C));var H=o.eb;C=o.fb+C*o.A,a=zc(g,b[0],a.width,x,k,H,C+(S?0:3),o.A),i(f==k),a&&ee(_)&&ss(H,C,S,x,k,o.A)}return 0}function wr(a){var o=a.ma,f=o.ba.S,g=11>f,b=f==Zs||f==Ks||f==Js||f==al||f==12||ee(f);if(o.memory=null,o.Ib=null,o.Jb=null,o.Nd=null,!Oi(o.Oa,a,b?11:12))return 0;if(b&&ee(f)&&Xa(),a.da)alert("todo:use_scaling");else{if(g){if(o.Ib=kn,a.Kb){if(f=a.U+1>>1,o.memory=s(a.U+2*f),o.memory==null)return 0;o.ec=o.memory,o.fc=0,o.cc=o.ec,o.dc=o.fc+a.U,o.Mc=o.cc,o.Nc=o.dc+f,o.Ib=Ni,Xa()}}else alert("todo:EmitYUV");b&&(o.Jb=Mr,g&&Bn())}if(g&&!rh){for(a=0;256>a;++a)Ed[a]=89858*(a-128)+to>>Qs,Od[a]=-22014*(a-128)+to,Id[a]=-45773*(a-128),Fd[a]=113618*(a-128)+to>>Qs;for(a=ls;a<ul;++a)o=76283*(a-16)+to>>Qs,Td[a-ls]=ai(o,255),Dd[a-ls]=ai(o+8>>4,15);rh=1}return 1}function Yt(a){var o=a.ma,f=a.U,g=a.T;return i(!(1&a.ka)),0>=f||0>=g?0:(f=o.Ib(a,o),o.Jb!=null&&o.Jb(a,o,f),o.Dc+=f,1)}function Rr(a){a.ma.memory=null}function Br(a,o,f,g){return yt(a,8)!=47?0:(o[0]=yt(a,14)+1,f[0]=yt(a,14)+1,g[0]=yt(a,1),yt(a,3)!=0?0:!a.h)}function Xi(a,o){if(4>a)return a+1;var f=a-2>>1;return(2+(1&a)<<f)+yt(o,f)+1}function Qi(a,o){return 120<o?o-120:1<=(f=((f=vd[o-1])>>4)*a+(8-(15&f)))?f:1;var f}function Re(a,o,f){var g=B(f),b=a[o+=255&g].g-8;return 0<b&&(K(f,f.u+8),g=B(f),o+=a[o].value,o+=g&(1<<b)-1),K(f,f.u+a[o].g),a[o].value}function fi(a,o,f){return f.g+=a.g,f.value+=a.value<<o>>>0,i(8>=f.g),a.g}function vi(a,o,f){var g=a.xc;return i((o=g==0?0:a.vc[a.md*(f>>g)+(o>>g)])<a.Wb),a.Ya[o]}function jn(a,o,f,g){var b=a.ab,x=a.c*o,_=a.C;o=_+o;var S=f,k=g;for(g=a.Ta,f=a.Ua;0<b--;){var C=a.gc[b],H=_,it=o,E=S,$=k,X=(k=g,S=f,C.Ea);switch(i(H<it),i(it<=C.nc),C.hc){case 2:da(E,$,(it-H)*X,k,S);break;case 0:var ut=H,et=it,pt=k,vt=S,_t=(It=C).Ea;ut==0&&(Sr(E,$,null,null,1,pt,vt),Ae(E,$+1,0,0,_t-1,pt,vt+1),$+=_t,vt+=_t,++ut);for(var wt=1<<It.b,Mt=wt-1,Ct=Nt(_t,It.b),oe=It.K,It=It.w+(ut>>It.b)*Ct;ut<et;){var ue=oe,si=It,le=1;for(Lr(E,$,pt,vt-_t,1,pt,vt);le<_t;){var Ot=(le&~Mt)+wt;Ot>_t&&(Ot=_t),(0,Un[ue[si++]>>8&15])(E,$+ +le,pt,vt+le-_t,Ot-le,pt,vt+le),le=Ot}$+=_t,vt+=_t,++ut&Mt||(It+=Ct)}it!=C.nc&&r(k,S-X,k,S+(it-H-1)*X,X);break;case 1:for(X=E,et=$,_t=(E=C.Ea)-(vt=E&~(pt=($=1<<C.b)-1)),ut=Nt(E,C.b),wt=C.K,C=C.w+(H>>C.b)*ut;H<it;){for(Mt=wt,Ct=C,oe=new ne,It=et+vt,ue=et+E;et<It;)zt(Mt[Ct++],oe),Vr(oe,X,et,$,k,S),et+=$,S+=$;et<ue&&(zt(Mt[Ct++],oe),Vr(oe,X,et,_t,k,S),et+=_t,S+=_t),++H&pt||(C+=ut)}break;case 3:if(E==k&&$==S&&0<C.b){for(et=k,E=X=S+(it-H)*X-(vt=(it-H)*Nt(C.Ea,C.b)),$=k,pt=S,ut=[],vt=(_t=vt)-1;0<=vt;--vt)ut[vt]=$[pt+vt];for(vt=_t-1;0<=vt;--vt)et[E+vt]=ut[vt];rs(C,H,it,k,X,k,S)}else rs(C,H,it,E,$,k,S)}S=g,k=f}k!=f&&r(g,f,S,k,x)}function rn(a,o){var f=a.V,g=a.Ba+a.c*a.C,b=o-a.C;if(i(o<=a.l.o),i(16>=b),0<b){var x=a.l,_=a.Ta,S=a.Ua,k=x.width;if(jn(a,b,f,g),b=S=[S],i((f=a.C)<(g=o)),i(x.v<x.va),g>x.o&&(g=x.o),f<x.j){var C=x.j-f;f=x.j,b[0]+=C*k}if(f>=g?f=0:(b[0]+=4*x.v,x.ka=f-x.j,x.U=x.va-x.v,x.T=g-f,f=1),f){if(S=S[0],11>(f=a.ca).S){var H=f.f.RGBA,it=(g=f.S,b=x.U,x=x.T,C=H.eb,H.A),E=x;for(H=H.fb+a.Ma*H.A;0<E--;){var $=_,X=S,ut=b,et=C,pt=H;switch(g){case $s:ns($,X,ut,et,pt);break;case Zs:qi($,X,ut,et,pt);break;case sl:qi($,X,ut,et,pt),ss(et,pt,0,ut,1,0);break;case Gc:Fe($,X,ut,et,pt);break;case Ks:Wt($,X,ut,et,pt,1);break;case ol:Wt($,X,ut,et,pt,1),ss(et,pt,0,ut,1,0);break;case Js:Wt($,X,ut,et,pt,0);break;case Xs:Wt($,X,ut,et,pt,0),ss(et,pt,1,ut,1,0);break;case al:kr($,X,ut,et,pt);break;case ll:kr($,X,ut,et,pt),Bc(et,pt,ut,1,0);break;case $c:Ee($,X,ut,et,pt);break;default:i(0)}S+=k,H+=it}a.Ma+=x}else alert("todo:EmitRescaledRowsYUVA");i(a.Ma<=f.height)}}a.C=o,i(a.C<=a.i)}function or(a){var o;if(0<a.ua)return 0;for(o=0;o<a.Wb;++o){var f=a.Ya[o].G,g=a.Ya[o].H;if(0<f[1][g[1]+0].g||0<f[2][g[2]+0].g||0<f[3][g[3]+0].g)return 0}return 1}function xr(a,o,f,g,b,x){if(a.Z!=0){var _=a.qd,S=a.rd;for(i(fn[a.Z]!=null);o<f;++o)fn[a.Z](_,S,g,b,g,b,x),_=g,S=b,b+=x;a.qd=_,a.rd=S}}function lr(a,o){var f=a.l.ma,g=f.Z==0||f.Z==1?a.l.j:a.C;if(g=a.C<g?g:a.C,i(o<=a.l.o),o>g){var b=a.l.width,x=f.ca,_=f.tb+b*g,S=a.V,k=a.Ba+a.c*g,C=a.gc;i(a.ab==1),i(C[0].hc==3),ma(C[0],g,o,S,k,x,_),xr(f,g,o,x,_,b)}a.C=a.Ma=o}function cr(a,o,f,g,b,x,_){var S=a.$/g,k=a.$%g,C=a.m,H=a.s,it=f+a.$,E=it;b=f+g*b;var $=f+g*x,X=280+H.ua,ut=a.Pb?S:16777216,et=0<H.ua?H.Wa:null,pt=H.wc,vt=it<$?vi(H,k,S):null;i(a.C<x),i($<=b);var _t=!1;t:for(;;){for(;_t||it<$;){var wt=0;if(S>=ut){var Mt=it-f;i((ut=a).Pb),ut.wd=ut.m,ut.xd=Mt,0<ut.s.ua&&ce(ut.s.Wa,ut.s.vb),ut=S+wd}if(k&pt||(vt=vi(H,k,S)),i(vt!=null),vt.Qb&&(o[it]=vt.qb,_t=!0),!_t)if(tt(C),vt.jc){wt=C,Mt=o;var Ct=it,oe=vt.pd[B(wt)&Ar-1];i(vt.jc),256>oe.g?(K(wt,wt.u+oe.g),Mt[Ct]=oe.value,wt=0):(K(wt,wt.u+oe.g-256),i(256<=oe.value),wt=oe.value),wt==0&&(_t=!0)}else wt=Re(vt.G[0],vt.H[0],C);if(C.h)break;if(_t||256>wt){if(!_t)if(vt.nd)o[it]=(vt.qb|wt<<8)>>>0;else{if(tt(C),_t=Re(vt.G[1],vt.H[1],C),tt(C),Mt=Re(vt.G[2],vt.H[2],C),Ct=Re(vt.G[3],vt.H[3],C),C.h)break;o[it]=(Ct<<24|_t<<16|wt<<8|Mt)>>>0}if(_t=!1,++it,++k>=g&&(k=0,++S,_!=null&&S<=x&&!(S%16)&&_(a,S),et!=null))for(;E<it;)wt=o[E++],et.X[(506832829*wt&4294967295)>>>et.Mb]=wt}else if(280>wt){if(wt=Xi(wt-256,C),Mt=Re(vt.G[4],vt.H[4],C),tt(C),Mt=Qi(g,Mt=Xi(Mt,C)),C.h)break;if(it-f<Mt||b-it<wt)break t;for(Ct=0;Ct<wt;++Ct)o[it+Ct]=o[it+Ct-Mt];for(it+=wt,k+=wt;k>=g;)k-=g,++S,_!=null&&S<=x&&!(S%16)&&_(a,S);if(i(it<=b),k&pt&&(vt=vi(H,k,S)),et!=null)for(;E<it;)wt=o[E++],et.X[(506832829*wt&4294967295)>>>et.Mb]=wt}else{if(!(wt<X))break t;for(_t=wt-280,i(et!=null);E<it;)wt=o[E++],et.X[(506832829*wt&4294967295)>>>et.Mb]=wt;wt=it,i(!(_t>>>(Mt=et).Xa)),o[wt]=Mt.X[_t],_t=!0}_t||i(C.h==Y(C))}if(a.Pb&&C.h&&it<b)i(a.m.h),a.a=5,a.m=a.wd,a.$=a.xd,0<a.s.ua&&ce(a.s.vb,a.s.Wa);else{if(C.h)break t;_!=null&&_(a,S>x?x:S),a.a=0,a.$=it-f}return 1}return a.a=3,0}function tr(a){i(a!=null),a.vc=null,a.yc=null,a.Ya=null;var o=a.Wa;o!=null&&(o.X=null),a.vb=null,i(a!=null)}function Pn(){var a=new Me;return a==null?null:(a.a=0,a.xb=Jc,he("Predictor","VP8LPredictors"),he("Predictor","VP8LPredictors_C"),he("PredictorAdd","VP8LPredictorsAdd"),he("PredictorAdd","VP8LPredictorsAdd_C"),da=ae,Vr=Vt,ns=Ce,qi=ve,kr=Dt,Ee=te,Fe=Le,R.VP8LMapColor32b=pa,R.VP8LMapColor8b=qn,a)}function yr(a,o,f,g,b){var x=1,_=[a],S=[o],k=g.m,C=g.s,H=null,it=0;t:for(;;){if(f)for(;x&&yt(k,1);){var E=_,$=S,X=g,ut=1,et=X.m,pt=X.gc[X.ab],vt=yt(et,2);if(X.Oc&1<<vt)x=0;else{switch(X.Oc|=1<<vt,pt.hc=vt,pt.Ea=E[0],pt.nc=$[0],pt.K=[null],++X.ab,i(4>=X.ab),vt){case 0:case 1:pt.b=yt(et,3)+2,ut=yr(Nt(pt.Ea,pt.b),Nt(pt.nc,pt.b),0,X,pt.K),pt.K=pt.K[0];break;case 3:var _t,wt=yt(et,8)+1,Mt=16<wt?0:4<wt?1:2<wt?2:3;if(E[0]=Nt(pt.Ea,Mt),pt.b=Mt,_t=ut=yr(wt,1,0,X,pt.K)){var Ct,oe=wt,It=pt,ue=1<<(8>>It.b),si=s(ue);if(si==null)_t=0;else{var le=It.K[0],Ot=It.w;for(si[0]=It.K[0][0],Ct=1;Ct<1*oe;++Ct)si[Ct]=Bt(le[Ot+Ct],si[Ct-1]);for(;Ct<4*ue;++Ct)si[Ct]=0;It.K[0]=null,It.K[0]=si,_t=1}}ut=_t;break;case 2:break;default:i(0)}x=ut}}if(_=_[0],S=S[0],x&&yt(k,1)&&!(x=1<=(it=yt(k,4))&&11>=it)){g.a=3;break t}var Lt;if(Lt=x)e:{var Ge,ie,de,Oe=g,wi=_,Ci=S,Be=it,Ai=f,Ei=Oe.m,oi=Oe.s,pe=[null],ye=1,ze=0,_e=bd[Be];i:for(;;){if(Ai&&yt(Ei,1)){var xi=yt(Ei,3)+2,dr=Nt(wi,xi),$e=Nt(Ci,xi),Di=dr*$e;if(!yr(dr,$e,0,Oe,pe))break i;for(pe=pe[0],oi.xc=xi,Ge=0;Ge<Di;++Ge){var je=pe[Ge]>>8&65535;pe[Ge]=je,je>=ye&&(ye=je+1)}}if(Ei.h)break i;for(ie=0;5>ie;++ie){var li=Zc[ie];!ie&&0<Be&&(li+=1<<Be),ze<li&&(ze=li)}var Hi=c(ye*_e,W),Fi=ye,Wi=c(Fi,at);if(Wi==null)var Yi=null;else i(65536>=Fi),Yi=Wi;var Mi=s(ze);if(Yi==null||Mi==null||Hi==null){Oe.a=1;break i}var Vi=Hi;for(Ge=de=0;Ge<ye;++Ge){var Ie=Yi[Ge],Gi=Ie.G,pr=Ie.H,Hn=0,Zr=1,yi=0;for(ie=0;5>ie;++ie){li=Zc[ie],Gi[ie]=Vi,pr[ie]=de,!ie&&0<Be&&(li+=1<<Be);n:{var io,fl=li,ro=Oe,cs=Mi,Bd=Vi,zd=de,dl=0,dn=ro.m,qd=yt(dn,1);if(n(cs,0,0,fl),qd){var Ud=yt(dn,1)+1,Hd=yt(dn,1),sh=yt(dn,Hd==0?1:8);cs[sh]=1,Ud==2&&(cs[sh=yt(dn,8)]=1);var no=1}else{var oh=s(19),lh=yt(dn,4)+4;if(19<lh){ro.a=3;var ao=0;break n}for(io=0;io<lh;++io)oh[gd[io]]=yt(dn,3);var pl=void 0,hs=void 0,ch=ro,Wd=oh,so=fl,hh=cs,ml=0,pn=ch.m,uh=8,fh=c(128,W);r:for(;I(fh,0,7,Wd,19);){if(yt(pn,1)){var Yd=2+2*yt(pn,3);if((pl=2+yt(pn,Yd))>so)break r}else pl=so;for(hs=0;hs<so&&pl--;){tt(pn);var dh=fh[0+(127&B(pn))];K(pn,pn.u+dh.g);var va=dh.value;if(16>va)hh[hs++]=va,va!=0&&(uh=va);else{var Vd=va==16,ph=va-16,Gd=pd[ph],mh=yt(pn,dd[ph])+Gd;if(hs+mh>so)break r;for(var $d=Vd?uh:0;0<mh--;)hh[hs++]=$d}}ml=1;break r}ml||(ch.a=3),no=ml}(no=no&&!dn.h)&&(dl=I(Bd,zd,8,cs,fl)),no&&dl!=0?ao=dl:(ro.a=3,ao=0)}if(ao==0)break i;if(Zr&&md[ie]==1&&(Zr=Vi[de].g==0),Hn+=Vi[de].g,de+=ao,3>=ie){var us,gl=Mi[0];for(us=1;us<li;++us)Mi[us]>gl&&(gl=Mi[us]);yi+=gl}}if(Ie.nd=Zr,Ie.Qb=0,Zr&&(Ie.qb=(Gi[3][pr[3]+0].value<<24|Gi[1][pr[1]+0].value<<16|Gi[2][pr[2]+0].value)>>>0,Hn==0&&256>Gi[0][pr[0]+0].value&&(Ie.Qb=1,Ie.qb+=Gi[0][pr[0]+0].value<<8)),Ie.jc=!Ie.Qb&&6>yi,Ie.jc){var oo,Kr=Ie;for(oo=0;oo<Ar;++oo){var mn=oo,gn=Kr.pd[mn],lo=Kr.G[0][Kr.H[0]+mn];256<=lo.value?(gn.g=lo.g+256,gn.value=lo.value):(gn.g=0,gn.value=0,mn>>=fi(lo,8,gn),mn>>=fi(Kr.G[1][Kr.H[1]+mn],16,gn),mn>>=fi(Kr.G[2][Kr.H[2]+mn],0,gn),fi(Kr.G[3][Kr.H[3]+mn],24,gn))}}}oi.vc=pe,oi.Wb=ye,oi.Ya=Yi,oi.yc=Hi,Lt=1;break e}Lt=0}if(!(x=Lt)){g.a=3;break t}if(0<it){if(C.ua=1<<it,!D(C.Wa,it)){g.a=1,x=0;break t}}else C.ua=0;var vl=g,gh=_,Zd=S,bl=vl.s,wl=bl.xc;if(vl.c=gh,vl.i=Zd,bl.md=Nt(gh,wl),bl.wc=wl==0?-1:(1<<wl)-1,f){g.xb=Ld;break t}if((H=s(_*S))==null){g.a=1,x=0;break t}x=(x=cr(g,H,0,_,S,S,null))&&!k.h;break t}return x?(b!=null?b[0]=H:(i(H==null),i(f)),g.$=0,f||tr(C)):tr(C),x}function Cn(a,o){var f=a.c*a.i,g=f+o+16*o;return i(a.c<=o),a.V=s(g),a.V==null?(a.Ta=null,a.Ua=0,a.a=1,0):(a.Ta=a.V,a.Ua=a.Ba+f+o,1)}function ea(a,o){var f=a.C,g=o-f,b=a.V,x=a.Ba+a.c*f;for(i(o<=a.l.o);0<g;){var _=16<g?16:g,S=a.l.ma,k=a.l.width,C=k*_,H=S.ca,it=S.tb+k*f,E=a.Ta,$=a.Ua;jn(a,_,b,x),qc(E,$,H,it,C),xr(S,f,f+_,H,it,k),g-=_,b+=_*a.c,f+=_}i(f==o),a.C=a.Ma=o}function ia(){this.ub=this.yd=this.td=this.Rb=0}function ra(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function zo(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function Ra(){this.Yb=function(){var a=[];return function o(f,g,b){for(var x=b[g],_=0;_<x&&(f.push(b.length>g+1?[]:0),!(b.length<g+1));_++)o(f[_],g+1,b)}(a,0,[3,11]),a}()}function Os(){this.jb=s(3),this.Wc=l([4,8],Ra),this.Xc=l([4,17],Ra)}function Ts(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function er(){this.ld=this.La=this.dd=this.tc=0}function Ba(){this.Na=this.la=0}function Ds(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function za(){this.ad=s(384),this.Za=0,this.Ob=s(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ms(){this.uc=this.M=this.Nb=0,this.wa=Array(new er),this.Y=0,this.ya=Array(new za),this.aa=0,this.l=new na}function Rs(){this.y=s(16),this.f=s(8),this.ea=s(8)}function Bs(){this.cb=this.a=0,this.sc="",this.m=new N,this.Od=new ia,this.Kc=new ra,this.ed=new Ts,this.Qa=new zo,this.Ic=this.$c=this.Aa=0,this.D=new Ms,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=c(8,N),this.ia=0,this.pb=c(4,Ds),this.Pa=new Os,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Rs),this.Hd=0,this.rb=Array(new Ba),this.sb=0,this.wa=Array(new er),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new za),this.L=this.aa=0,this.gd=l([4,2],er),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function na(){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 qo(){var a=new Bs;return a!=null&&(a.a=0,a.sc="OK",a.cb=0,a.Xb=0,os||(os=zr)),a}function Xe(a,o,f){return a.a==0&&(a.a=o,a.sc=f,a.cb=0),0}function zs(a,o,f){return 3<=f&&a[o+0]==157&&a[o+1]==1&&a[o+2]==42}function qs(a,o){if(a==null)return 0;if(a.a=0,a.sc="OK",o==null)return Xe(a,2,"null VP8Io passed to VP8GetHeaders()");var f=o.data,g=o.w,b=o.ha;if(4>b)return Xe(a,7,"Truncated header.");var x=f[g+0]|f[g+1]<<8|f[g+2]<<16,_=a.Od;if(_.Rb=!(1&x),_.td=x>>1&7,_.yd=x>>4&1,_.ub=x>>5,3<_.td)return Xe(a,3,"Incorrect keyframe parameters.");if(!_.yd)return Xe(a,4,"Frame not displayable.");g+=3,b-=3;var S=a.Kc;if(_.Rb){if(7>b)return Xe(a,7,"cannot parse picture header");if(!zs(f,g,b))return Xe(a,3,"Bad code word");S.c=16383&(f[g+4]<<8|f[g+3]),S.Td=f[g+4]>>6,S.i=16383&(f[g+6]<<8|f[g+5]),S.Ud=f[g+6]>>6,g+=7,b-=7,a.za=S.c+15>>4,a.Ub=S.i+15>>4,o.width=S.c,o.height=S.i,o.Da=0,o.j=0,o.v=0,o.va=o.width,o.o=o.height,o.da=0,o.ib=o.width,o.hb=o.height,o.U=o.width,o.T=o.height,n((x=a.Pa).jb,0,255,x.jb.length),i((x=a.Qa)!=null),x.Cb=0,x.Bb=0,x.Fb=1,n(x.Zb,0,0,x.Zb.length),n(x.Lb,0,0,x.Lb)}if(_.ub>b)return Xe(a,7,"bad partition length");ft(x=a.m,f,g,_.ub),g+=_.ub,b-=_.ub,_.Rb&&(S.Ld=st(x),S.Kd=st(x)),S=a.Qa;var k,C=a.Pa;if(i(x!=null),i(S!=null),S.Cb=st(x),S.Cb){if(S.Bb=st(x),st(x)){for(S.Fb=st(x),k=0;4>k;++k)S.Zb[k]=st(x)?nt(x,7):0;for(k=0;4>k;++k)S.Lb[k]=st(x)?nt(x,6):0}if(S.Bb)for(k=0;3>k;++k)C.jb[k]=st(x)?mt(x,8):255}else S.Bb=0;if(x.Ka)return Xe(a,3,"cannot parse segment header");if((S=a.ed).zd=st(x),S.Tb=mt(x,6),S.wb=mt(x,3),S.Pc=st(x),S.Pc&&st(x)){for(C=0;4>C;++C)st(x)&&(S.vd[C]=nt(x,6));for(C=0;4>C;++C)st(x)&&(S.od[C]=nt(x,6))}if(a.L=S.Tb==0?0:S.zd?1:2,x.Ka)return Xe(a,3,"cannot parse filter header");var H=b;if(b=k=g,g=k+H,S=H,a.Xb=(1<<mt(a.m,2))-1,H<3*(C=a.Xb))f=7;else{for(k+=3*C,S-=3*C,H=0;H<C;++H){var it=f[b+0]|f[b+1]<<8|f[b+2]<<16;it>S&&(it=S),ft(a.Jc[+H],f,k,it),k+=it,S-=it,b+=3}ft(a.Jc[+C],f,k,S),f=k<g?0:5}if(f!=0)return Xe(a,f,"cannot parse partitions");for(f=mt(k=a.m,7),b=st(k)?nt(k,4):0,g=st(k)?nt(k,4):0,S=st(k)?nt(k,4):0,C=st(k)?nt(k,4):0,k=st(k)?nt(k,4):0,H=a.Qa,it=0;4>it;++it){if(H.Cb){var E=H.Zb[it];H.Fb||(E+=f)}else{if(0<it){a.pb[it]=a.pb[0];continue}E=f}var $=a.pb[it];$.Sc[0]=cl[ai(E+b,127)],$.Sc[1]=hl[ai(E+0,127)],$.Eb[0]=2*cl[ai(E+g,127)],$.Eb[1]=101581*hl[ai(E+S,127)]>>16,8>$.Eb[1]&&($.Eb[1]=8),$.Qc[0]=cl[ai(E+C,117)],$.Qc[1]=hl[ai(E+k,127)],$.lc=E+k}if(!_.Rb)return Xe(a,4,"Not a key frame.");for(st(x),_=a.Pa,f=0;4>f;++f){for(b=0;8>b;++b)for(g=0;3>g;++g)for(S=0;11>S;++S)C=bt(x,Ad[f][b][g][S])?mt(x,8):_d[f][b][g][S],_.Wc[f][b].Yb[g][S]=C;for(b=0;17>b;++b)_.Xc[f][b]=_.Wc[f][Sd[b]]}return a.kc=st(x),a.kc&&(a.Bd=mt(x,8)),a.cb=1}function zr(a,o,f,g,b,x,_){var S=o[b].Yb[f];for(f=0;16>b;++b){if(!bt(a,S[f+0]))return b;for(;!bt(a,S[f+1]);)if(S=o[++b].Yb[0],f=0,b==16)return 16;var k=o[b+1].Yb;if(bt(a,S[f+2])){var C=a,H=0;if(bt(C,(E=S)[(it=f)+3]))if(bt(C,E[it+6])){for(S=0,it=2*(H=bt(C,E[it+8]))+(E=bt(C,E[it+9+H])),H=0,E=xd[it];E[S];++S)H+=H+bt(C,E[S]);H+=3+(8<<it)}else bt(C,E[it+7])?(H=7+2*bt(C,165),H+=bt(C,145)):H=5+bt(C,159);else H=bt(C,E[it+4])?3+bt(C,E[it+5]):2;S=k[2]}else H=1,S=k[1];k=_+yd[b],0>(C=a).b&&ht(C);var it,E=C.b,$=(it=C.Ca>>1)-(C.I>>E)>>31;--C.b,C.Ca+=$,C.Ca|=1,C.I-=(it+1&$)<<E,x[k]=((H^$)-$)*g[(0<b)+0]}return 16}function En(a){var o=a.rb[a.sb-1];o.la=0,o.Na=0,n(a.zc,0,0,a.zc.length),a.ja=0}function hr(a,o,f,g,b){b=a[o+f+32*g]+(b>>3),a[o+f+32*g]=-256&b?0>b?0:255:b}function Fn(a,o,f,g,b,x){hr(a,o,0,f,g+b),hr(a,o,1,f,g+x),hr(a,o,2,f,g-x),hr(a,o,3,f,g-b)}function He(a){return(20091*a>>16)+a}function qa(a,o,f,g){var b,x=0,_=s(16);for(b=0;4>b;++b){var S=a[o+0]+a[o+8],k=a[o+0]-a[o+8],C=(35468*a[o+4]>>16)-He(a[o+12]),H=He(a[o+4])+(35468*a[o+12]>>16);_[x+0]=S+H,_[x+1]=k+C,_[x+2]=k-C,_[x+3]=S-H,x+=4,o++}for(b=x=0;4>b;++b)S=(a=_[x+0]+4)+_[x+8],k=a-_[x+8],C=(35468*_[x+4]>>16)-He(_[x+12]),hr(f,g,0,0,S+(H=He(_[x+4])+(35468*_[x+12]>>16))),hr(f,g,1,0,k+C),hr(f,g,2,0,k-C),hr(f,g,3,0,S-H),x++,g+=32}function Uo(a,o,f,g){var b=a[o+0]+4,x=35468*a[o+4]>>16,_=He(a[o+4]),S=35468*a[o+1]>>16;Fn(f,g,0,b+_,a=He(a[o+1]),S),Fn(f,g,1,b+x,a,S),Fn(f,g,2,b-x,a,S),Fn(f,g,3,b-_,a,S)}function Ho(a,o,f,g,b){qa(a,o,f,g),b&&qa(a,o+16,f,g+4)}function Wo(a,o,f,g){Ve(a,o+0,f,g,1),Ve(a,o+32,f,g+128,1)}function _r(a,o,f,g){var b;for(a=a[o+0]+4,b=0;4>b;++b)for(o=0;4>o;++o)hr(f,g,o,b,a)}function Us(a,o,f,g){a[o+0]&&jr(a,o+0,f,g),a[o+16]&&jr(a,o+16,f,g+4),a[o+32]&&jr(a,o+32,f,g+128),a[o+48]&&jr(a,o+48,f,g+128+4)}function Hs(a,o,f,g){var b,x=s(16);for(b=0;4>b;++b){var _=a[o+0+b]+a[o+12+b],S=a[o+4+b]+a[o+8+b],k=a[o+4+b]-a[o+8+b],C=a[o+0+b]-a[o+12+b];x[0+b]=_+S,x[8+b]=_-S,x[4+b]=C+k,x[12+b]=C-k}for(b=0;4>b;++b)_=(a=x[0+4*b]+3)+x[3+4*b],S=x[1+4*b]+x[2+4*b],k=x[1+4*b]-x[2+4*b],C=a-x[3+4*b],f[g+0]=_+S>>3,f[g+16]=C+k>>3,f[g+32]=_-S>>3,f[g+48]=C-k>>3,g+=64}function nn(a,o,f){var g,b=o-32,x=Ui,_=255-a[b-1];for(g=0;g<f;++g){var S,k=x,C=_+a[o-1];for(S=0;S<f;++S)a[o+S]=k[C+a[b+S]];o+=32}}function Ua(a,o){nn(a,o,4)}function Yo(a,o){nn(a,o,8)}function Vo(a,o){nn(a,o,16)}function Go(a,o){var f;for(f=0;16>f;++f)r(a,o+32*f,a,o-32,16)}function Ha(a,o){var f;for(f=16;0<f;--f)n(a,o,a[o-1],16),o+=32}function In(a,o,f){var g;for(g=0;16>g;++g)n(o,f+32*g,a,16)}function an(a,o){var f,g=16;for(f=0;16>f;++f)g+=a[o-1+32*f]+a[o+f-32];In(g>>5,a,o)}function $o(a,o){var f,g=8;for(f=0;16>f;++f)g+=a[o-1+32*f];In(g>>4,a,o)}function On(a,o){var f,g=8;for(f=0;16>f;++f)g+=a[o+f-32];In(g>>4,a,o)}function Wa(a,o){In(128,a,o)}function Kt(a,o,f){return a+2*o+f+2>>2}function Zo(a,o){var f,g=o-32;for(g=new Uint8Array([Kt(a[g-1],a[g+0],a[g+1]),Kt(a[g+0],a[g+1],a[g+2]),Kt(a[g+1],a[g+2],a[g+3]),Kt(a[g+2],a[g+3],a[g+4])]),f=0;4>f;++f)r(a,o+32*f,g,0,g.length)}function Ko(a,o){var f=a[o-1],g=a[o-1+32],b=a[o-1+64],x=a[o-1+96];At(a,o+0,16843009*Kt(a[o-1-32],f,g)),At(a,o+32,16843009*Kt(f,g,b)),At(a,o+64,16843009*Kt(g,b,x)),At(a,o+96,16843009*Kt(b,x,x))}function Jo(a,o){var f,g=4;for(f=0;4>f;++f)g+=a[o+f-32]+a[o-1+32*f];for(g>>=3,f=0;4>f;++f)n(a,o+32*f,g,4)}function Xo(a,o){var f=a[o-1+0],g=a[o-1+32],b=a[o-1+64],x=a[o-1-32],_=a[o+0-32],S=a[o+1-32],k=a[o+2-32],C=a[o+3-32];a[o+0+96]=Kt(g,b,a[o-1+96]),a[o+1+96]=a[o+0+64]=Kt(f,g,b),a[o+2+96]=a[o+1+64]=a[o+0+32]=Kt(x,f,g),a[o+3+96]=a[o+2+64]=a[o+1+32]=a[o+0+0]=Kt(_,x,f),a[o+3+64]=a[o+2+32]=a[o+1+0]=Kt(S,_,x),a[o+3+32]=a[o+2+0]=Kt(k,S,_),a[o+3+0]=Kt(C,k,S)}function qr(a,o){var f=a[o+1-32],g=a[o+2-32],b=a[o+3-32],x=a[o+4-32],_=a[o+5-32],S=a[o+6-32],k=a[o+7-32];a[o+0+0]=Kt(a[o+0-32],f,g),a[o+1+0]=a[o+0+32]=Kt(f,g,b),a[o+2+0]=a[o+1+32]=a[o+0+64]=Kt(g,b,x),a[o+3+0]=a[o+2+32]=a[o+1+64]=a[o+0+96]=Kt(b,x,_),a[o+3+32]=a[o+2+64]=a[o+1+96]=Kt(x,_,S),a[o+3+64]=a[o+2+96]=Kt(_,S,k),a[o+3+96]=Kt(S,k,k)}function Ur(a,o){var f=a[o-1+0],g=a[o-1+32],b=a[o-1+64],x=a[o-1-32],_=a[o+0-32],S=a[o+1-32],k=a[o+2-32],C=a[o+3-32];a[o+0+0]=a[o+1+64]=x+_+1>>1,a[o+1+0]=a[o+2+64]=_+S+1>>1,a[o+2+0]=a[o+3+64]=S+k+1>>1,a[o+3+0]=k+C+1>>1,a[o+0+96]=Kt(b,g,f),a[o+0+64]=Kt(g,f,x),a[o+0+32]=a[o+1+96]=Kt(f,x,_),a[o+1+32]=a[o+2+96]=Kt(x,_,S),a[o+2+32]=a[o+3+96]=Kt(_,S,k),a[o+3+32]=Kt(S,k,C)}function Qo(a,o){var f=a[o+0-32],g=a[o+1-32],b=a[o+2-32],x=a[o+3-32],_=a[o+4-32],S=a[o+5-32],k=a[o+6-32],C=a[o+7-32];a[o+0+0]=f+g+1>>1,a[o+1+0]=a[o+0+64]=g+b+1>>1,a[o+2+0]=a[o+1+64]=b+x+1>>1,a[o+3+0]=a[o+2+64]=x+_+1>>1,a[o+0+32]=Kt(f,g,b),a[o+1+32]=a[o+0+96]=Kt(g,b,x),a[o+2+32]=a[o+1+96]=Kt(b,x,_),a[o+3+32]=a[o+2+96]=Kt(x,_,S),a[o+3+64]=Kt(_,S,k),a[o+3+96]=Kt(S,k,C)}function tl(a,o){var f=a[o-1+0],g=a[o-1+32],b=a[o-1+64],x=a[o-1+96];a[o+0+0]=f+g+1>>1,a[o+2+0]=a[o+0+32]=g+b+1>>1,a[o+2+32]=a[o+0+64]=b+x+1>>1,a[o+1+0]=Kt(f,g,b),a[o+3+0]=a[o+1+32]=Kt(g,b,x),a[o+3+32]=a[o+1+64]=Kt(b,x,x),a[o+3+64]=a[o+2+64]=a[o+0+96]=a[o+1+96]=a[o+2+96]=a[o+3+96]=x}function aa(a,o){var f=a[o-1+0],g=a[o-1+32],b=a[o-1+64],x=a[o-1+96],_=a[o-1-32],S=a[o+0-32],k=a[o+1-32],C=a[o+2-32];a[o+0+0]=a[o+2+32]=f+_+1>>1,a[o+0+32]=a[o+2+64]=g+f+1>>1,a[o+0+64]=a[o+2+96]=b+g+1>>1,a[o+0+96]=x+b+1>>1,a[o+3+0]=Kt(S,k,C),a[o+2+0]=Kt(_,S,k),a[o+1+0]=a[o+3+32]=Kt(f,_,S),a[o+1+32]=a[o+3+64]=Kt(g,f,_),a[o+1+64]=a[o+3+96]=Kt(b,g,f),a[o+1+96]=Kt(x,b,g)}function Ya(a,o){var f;for(f=0;8>f;++f)r(a,o+32*f,a,o-32,8)}function Tn(a,o){var f;for(f=0;8>f;++f)n(a,o,a[o-1],8),o+=32}function sa(a,o,f){var g;for(g=0;8>g;++g)n(o,f+32*g,a,8)}function oa(a,o){var f,g=8;for(f=0;8>f;++f)g+=a[o+f-32]+a[o-1+32*f];sa(g>>4,a,o)}function el(a,o){var f,g=4;for(f=0;8>f;++f)g+=a[o+f-32];sa(g>>3,a,o)}function Va(a,o){var f,g=4;for(f=0;8>f;++f)g+=a[o-1+32*f];sa(g>>3,a,o)}function Ga(a,o){sa(128,a,o)}function Dn(a,o,f){var g=a[o-f],b=a[o+0],x=3*(b-g)+nl[1020+a[o-2*f]-a[o+f]],_=Gs[112+(x+4>>3)];a[o-f]=Ui[255+g+Gs[112+(x+3>>3)]],a[o+0]=Ui[255+b-_]}function Mn(a,o,f,g){var b=a[o+0],x=a[o+f];return rr[255+a[o-2*f]-a[o-f]]>g||rr[255+x-b]>g}function $a(a,o,f,g){return 4*rr[255+a[o-f]-a[o+0]]+rr[255+a[o-2*f]-a[o+f]]<=g}function la(a,o,f,g,b){var x=a[o-3*f],_=a[o-2*f],S=a[o-f],k=a[o+0],C=a[o+f],H=a[o+2*f],it=a[o+3*f];return 4*rr[255+S-k]+rr[255+_-C]>g?0:rr[255+a[o-4*f]-x]<=b&&rr[255+x-_]<=b&&rr[255+_-S]<=b&&rr[255+it-H]<=b&&rr[255+H-C]<=b&&rr[255+C-k]<=b}function Za(a,o,f,g){var b=2*g+1;for(g=0;16>g;++g)$a(a,o+g,f,b)&&Dn(a,o+g,f)}function Rn(a,o,f,g){var b=2*g+1;for(g=0;16>g;++g)$a(a,o+g*f,1,b)&&Dn(a,o+g*f,1)}function Ka(a,o,f,g){var b;for(b=3;0<b;--b)Za(a,o+=4*f,f,g)}function Ja(a,o,f,g){var b;for(b=3;0<b;--b)Rn(a,o+=4,f,g)}function zi(a,o,f,g,b,x,_,S){for(x=2*x+1;0<b--;){if(la(a,o,f,x,_))if(Mn(a,o,f,S))Dn(a,o,f);else{var k=a,C=o,H=f,it=k[C-2*H],E=k[C-H],$=k[C+0],X=k[C+H],ut=k[C+2*H],et=27*(vt=nl[1020+3*($-E)+nl[1020+it-X]])+63>>7,pt=18*vt+63>>7,vt=9*vt+63>>7;k[C-3*H]=Ui[255+k[C-3*H]+vt],k[C-2*H]=Ui[255+it+pt],k[C-H]=Ui[255+E+et],k[C+0]=Ui[255+$-et],k[C+H]=Ui[255+X-pt],k[C+2*H]=Ui[255+ut-vt]}o+=g}}function Nr(a,o,f,g,b,x,_,S){for(x=2*x+1;0<b--;){if(la(a,o,f,x,_))if(Mn(a,o,f,S))Dn(a,o,f);else{var k=a,C=o,H=f,it=k[C-H],E=k[C+0],$=k[C+H],X=Gs[112+(4+(ut=3*(E-it))>>3)],ut=Gs[112+(ut+3>>3)],et=X+1>>1;k[C-2*H]=Ui[255+k[C-2*H]+et],k[C-H]=Ui[255+it+ut],k[C+0]=Ui[255+E-X],k[C+H]=Ui[255+$-et]}o+=g}}function u(a,o,f,g,b,x){zi(a,o,f,1,16,g,b,x)}function w(a,o,f,g,b,x){zi(a,o,1,f,16,g,b,x)}function F(a,o,f,g,b,x){var _;for(_=3;0<_;--_)Nr(a,o+=4*f,f,1,16,g,b,x)}function q(a,o,f,g,b,x){var _;for(_=3;0<_;--_)Nr(a,o+=4,1,f,16,g,b,x)}function J(a,o,f,g,b,x,_,S){zi(a,o,b,1,8,x,_,S),zi(f,g,b,1,8,x,_,S)}function gt(a,o,f,g,b,x,_,S){zi(a,o,1,b,8,x,_,S),zi(f,g,1,b,8,x,_,S)}function xt(a,o,f,g,b,x,_,S){Nr(a,o+4*b,b,1,8,x,_,S),Nr(f,g+4*b,b,1,8,x,_,S)}function Ft(a,o,f,g,b,x,_,S){Nr(a,o+4,1,b,8,x,_,S),Nr(f,g+4,1,b,8,x,_,S)}function Tt(){this.ba=new ke,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new xe,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Gt(){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 se(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function be(){this.ua=0,this.Wa=new re,this.vb=new re,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new at,this.yc=new W}function Me(){this.xb=this.a=0,this.l=new na,this.ca=new ke,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new T,this.Pb=0,this.wd=new T,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new be,this.ab=0,this.gc=c(4,se),this.Oc=0}function Qe(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new na,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Se(a,o,f,g,b,x,_){for(a=a==null?0:a[o+0],o=0;o<_;++o)b[x+o]=a+f[g+o]&255,a=b[x+o]}function ni(a,o,f,g,b,x,_){var S;if(a==null)Se(null,null,f,g,b,x,_);else for(S=0;S<_;++S)b[x+S]=a[o+S]+f[g+S]&255}function ti(a,o,f,g,b,x,_){if(a==null)Se(null,null,f,g,b,x,_);else{var S,k=a[o+0],C=k,H=k;for(S=0;S<_;++S)C=H+(k=a[o+S])-C,H=f[g+S]+(-256&C?0>C?0:255:C)&255,C=k,b[x+S]=H}}function bi(a,o,f,g){var b=o.width,x=o.o;if(i(a!=null&&o!=null),0>f||0>=g||f+g>x)return null;if(!a.Cc){if(a.ga==null){var _;if(a.ga=new Qe,(_=a.ga==null)||(_=o.width*o.o,i(a.Gb.length==0),a.Gb=s(_),a.Uc=0,a.Gb==null?_=0:(a.mb=a.Gb,a.nb=a.Uc,a.rc=null,_=1),_=!_),!_){_=a.ga;var S=a.Fa,k=a.P,C=a.qc,H=a.mb,it=a.nb,E=k+1,$=C-1,X=_.l;if(i(S!=null&&H!=null&&o!=null),fn[0]=null,fn[1]=Se,fn[2]=ni,fn[3]=ti,_.ca=H,_.tb=it,_.c=o.width,_.i=o.height,i(0<_.c&&0<_.i),1>=C)o=0;else if(_.$a=3&S[k+0],_.Z=S[k+0]>>2&3,_.Lc=S[k+0]>>4&3,k=S[k+0]>>6&3,0>_.$a||1<_.$a||4<=_.Z||1<_.Lc||k)o=0;else if(X.put=Yt,X.ac=wr,X.bc=Rr,X.ma=_,X.width=o.width,X.height=o.height,X.Da=o.Da,X.v=o.v,X.va=o.va,X.j=o.j,X.o=o.o,_.$a)t:{i(_.$a==1),o=Pn();e:for(;;){if(o==null){o=0;break t}if(i(_!=null),_.mc=o,o.c=_.c,o.i=_.i,o.l=_.l,o.l.ma=_,o.l.width=_.c,o.l.height=_.i,o.a=0,dt(o.m,S,E,$),!yr(_.c,_.i,1,o,null)||(o.ab==1&&o.gc[0].hc==3&&or(o.s)?(_.ic=1,S=o.c*o.i,o.Ta=null,o.Ua=0,o.V=s(S),o.Ba=0,o.V==null?(o.a=1,o=0):o=1):(_.ic=0,o=Cn(o,_.c)),!o))break e;o=1;break t}_.mc=null,o=0}else o=$>=_.c*_.i;_=!o}if(_)return null;a.ga.Lc!=1?a.Ga=0:g=x-f}i(a.ga!=null),i(f+g<=x);t:{if(o=(S=a.ga).c,x=S.l.o,S.$a==0){if(E=a.rc,$=a.Vc,X=a.Fa,k=a.P+1+f*o,C=a.mb,H=a.nb+f*o,i(k<=a.P+a.qc),S.Z!=0)for(i(fn[S.Z]!=null),_=0;_<g;++_)fn[S.Z](E,$,X,k,C,H,o),E=C,$=H,H+=o,k+=o;else for(_=0;_<g;++_)r(C,H,X,k,o),E=C,$=H,H+=o,k+=o;a.rc=E,a.Vc=$}else{if(i(S.mc!=null),o=f+g,i((_=S.mc)!=null),i(o<=_.i),_.C>=o)o=1;else if(S.ic||Bn(),S.ic){S=_.V,E=_.Ba,$=_.c;var ut=_.i,et=(X=1,k=_.$/$,C=_.$%$,H=_.m,it=_.s,_.$),pt=$*ut,vt=$*o,_t=it.wc,wt=et<vt?vi(it,C,k):null;i(et<=pt),i(o<=ut),i(or(it));e:for(;;){for(;!H.h&&et<vt;){if(C&_t||(wt=vi(it,C,k)),i(wt!=null),tt(H),256>(ut=Re(wt.G[0],wt.H[0],H)))S[E+et]=ut,++et,++C>=$&&(C=0,++k<=o&&!(k%16)&&lr(_,k));else{if(!(280>ut)){X=0;break e}ut=Xi(ut-256,H);var Mt,Ct=Re(wt.G[4],wt.H[4],H);if(tt(H),!(et>=(Ct=Qi($,Ct=Xi(Ct,H)))&&pt-et>=ut)){X=0;break e}for(Mt=0;Mt<ut;++Mt)S[E+et+Mt]=S[E+et+Mt-Ct];for(et+=ut,C+=ut;C>=$;)C-=$,++k<=o&&!(k%16)&&lr(_,k);et<vt&&C&_t&&(wt=vi(it,C,k))}i(H.h==Y(H))}lr(_,k>o?o:k);break e}!X||H.h&&et<pt?(X=0,_.a=H.h?5:3):_.$=et,o=X}else o=cr(_,_.V,_.Ba,_.c,_.i,o,ea);if(!o){g=0;break t}}f+g>=x&&(a.Cc=1),g=1}if(!g)return null;if(a.Cc&&((g=a.ga)!=null&&(g.mc=null),a.ga=null,0<a.Ga))return alert("todo:WebPDequantizeLevels"),null}return a.nb+f*b}function Hr(a,o,f,g,b,x){for(;0<b--;){var _,S=a,k=o+(f?1:0),C=a,H=o+(f?0:3);for(_=0;_<g;++_){var it=C[H+4*_];it!=255&&(it*=32897,S[k+4*_+0]=S[k+4*_+0]*it>>23,S[k+4*_+1]=S[k+4*_+1]*it>>23,S[k+4*_+2]=S[k+4*_+2]*it>>23)}o+=x}}function sn(a,o,f,g,b){for(;0<g--;){var x;for(x=0;x<f;++x){var _=a[o+2*x+0],S=15&(C=a[o+2*x+1]),k=4369*S,C=(240&C|C>>4)*k>>16;a[o+2*x+0]=(240&_|_>>4)*k>>16&240|(15&_|_<<4)*k>>16>>4&15,a[o+2*x+1]=240&C|S}o+=b}}function il(a,o,f,g,b,x,_,S){var k,C,H=255;for(C=0;C<b;++C){for(k=0;k<g;++k){var it=a[o+k];x[_+4*k]=it,H&=it}o+=f,_+=S}return H!=255}function Ws(a,o,f,g,b){var x;for(x=0;x<b;++x)f[g+x]=a[o+x]>>8}function Bn(){ss=Hr,Bc=sn,zc=il,qc=Ws}function ur(a,o,f){R[a]=function(g,b,x,_,S,k,C,H,it,E,$,X,ut,et,pt,vt,_t){var wt,Mt=_t-1>>1,Ct=S[k+0]|C[H+0]<<16,oe=it[E+0]|$[X+0]<<16;i(g!=null);var It=3*Ct+oe+131074>>2;for(o(g[b+0],255&It,It>>16,ut,et),x!=null&&(It=3*oe+Ct+131074>>2,o(x[_+0],255&It,It>>16,pt,vt)),wt=1;wt<=Mt;++wt){var ue=S[k+wt]|C[H+wt]<<16,si=it[E+wt]|$[X+wt]<<16,le=Ct+ue+oe+si+524296,Ot=le+2*(ue+oe)>>3;It=Ot+Ct>>1,Ct=(le=le+2*(Ct+si)>>3)+ue>>1,o(g[b+2*wt-1],255&It,It>>16,ut,et+(2*wt-1)*f),o(g[b+2*wt-0],255&Ct,Ct>>16,ut,et+(2*wt-0)*f),x!=null&&(It=le+oe>>1,Ct=Ot+si>>1,o(x[_+2*wt-1],255&It,It>>16,pt,vt+(2*wt-1)*f),o(x[_+2*wt+0],255&Ct,Ct>>16,pt,vt+(2*wt+0)*f)),Ct=ue,oe=si}1&_t||(It=3*Ct+oe+131074>>2,o(g[b+_t-1],255&It,It>>16,ut,et+(_t-1)*f),x!=null&&(It=3*oe+Ct+131074>>2,o(x[_+_t-1],255&It,It>>16,pt,vt+(_t-1)*f)))}}function Xa(){nr[$s]=kd,nr[Zs]=Xc,nr[Gc]=jd,nr[Ks]=Qc,nr[Js]=th,nr[al]=eh,nr[$c]=Pd,nr[sl]=Xc,nr[ol]=Qc,nr[Xs]=th,nr[ll]=eh}function ca(a){return a&~Cd?0>a?0:255:a>>ih}function on(a,o){return ca((19077*a>>8)+(26149*o>>8)-14234)}function di(a,o,f){return ca((19077*a>>8)-(6419*o>>8)-(13320*f>>8)+8708)}function Wr(a,o){return ca((19077*a>>8)+(33050*o>>8)-17685)}function Yr(a,o,f,g,b){g[b+0]=on(a,f),g[b+1]=di(a,o,f),g[b+2]=Wr(a,o)}function ha(a,o,f,g,b){g[b+0]=Wr(a,o),g[b+1]=di(a,o,f),g[b+2]=on(a,f)}function Qa(a,o,f,g,b){var x=di(a,o,f);o=x<<3&224|Wr(a,o)>>3,g[b+0]=248&on(a,f)|x>>5,g[b+1]=o}function Pi(a,o,f,g,b){var x=240&Wr(a,o)|15;g[b+0]=240&on(a,f)|di(a,o,f)>>4,g[b+1]=x}function Ys(a,o,f,g,b){g[b+0]=255,Yr(a,o,f,g,b+1)}function ua(a,o,f,g,b){ha(a,o,f,g,b),g[b+3]=255}function Vs(a,o,f,g,b){Yr(a,o,f,g,b),g[b+3]=255}function ai(a,o){return 0>a?0:a>o?o:a}function ir(a,o,f){R[a]=function(g,b,x,_,S,k,C,H,it){for(var E=H+(-2&it)*f;H!=E;)o(g[b+0],x[_+0],S[k+0],C,H),o(g[b+1],x[_+0],S[k+0],C,H+f),b+=2,++_,++k,H+=2*f;1&it&&o(g[b+0],x[_+0],S[k+0],C,H)}}function ts(a,o,f){return f==0?a==0?o==0?6:5:o==0?4:0:f}function es(a,o,f,g,b){switch(a>>>30){case 3:Ve(o,f,g,b,0);break;case 2:Gr(o,f,g,b);break;case 1:jr(o,f,g,b)}}function ln(a,o){var f,g,b=o.M,x=o.Nb,_=a.oc,S=a.pc+40,k=a.oc,C=a.pc+584,H=a.oc,it=a.pc+600;for(f=0;16>f;++f)_[S+32*f-1]=129;for(f=0;8>f;++f)k[C+32*f-1]=129,H[it+32*f-1]=129;for(0<b?_[S-1-32]=k[C-1-32]=H[it-1-32]=129:(n(_,S-32-1,127,21),n(k,C-32-1,127,9),n(H,it-32-1,127,9)),g=0;g<a.za;++g){var E=o.ya[o.aa+g];if(0<g){for(f=-1;16>f;++f)r(_,S+32*f-4,_,S+32*f+12,4);for(f=-1;8>f;++f)r(k,C+32*f-4,k,C+32*f+4,4),r(H,it+32*f-4,H,it+32*f+4,4)}var $=a.Gd,X=a.Hd+g,ut=E.ad,et=E.Hc;if(0<b&&(r(_,S-32,$[X].y,0,16),r(k,C-32,$[X].f,0,8),r(H,it-32,$[X].ea,0,8)),E.Za){var pt=_,vt=S-32+16;for(0<b&&(g>=a.za-1?n(pt,vt,$[X].y[15],4):r(pt,vt,$[X+1].y,0,4)),f=0;4>f;f++)pt[vt+128+f]=pt[vt+256+f]=pt[vt+384+f]=pt[vt+0+f];for(f=0;16>f;++f,et<<=2)pt=_,vt=S+nh[f],fr[E.Ob[f]](pt,vt),es(et,ut,16*+f,pt,vt)}else if(pt=ts(g,b,E.Ob[0]),un[pt](_,S),et!=0)for(f=0;16>f;++f,et<<=2)es(et,ut,16*+f,_,S+nh[f]);for(f=E.Gc,pt=ts(g,b,E.Dd),$r[pt](k,C),$r[pt](H,it),et=ut,pt=k,vt=C,255&(E=0|f)&&(170&E?ga(et,256,pt,vt):as(et,256,pt,vt)),E=H,et=it,255&(f>>=8)&&(170&f?ga(ut,320,E,et):as(ut,320,E,et)),b<a.Ub-1&&(r($[X].y,0,_,S+480,16),r($[X].f,0,k,C+224,8),r($[X].ea,0,H,it+224,8)),f=8*x*a.B,$=a.sa,X=a.ta+16*g+16*x*a.R,ut=a.qa,E=a.ra+8*g+f,et=a.Ha,pt=a.Ia+8*g+f,f=0;16>f;++f)r($,X+f*a.R,_,S+32*f,16);for(f=0;8>f;++f)r(ut,E+f*a.B,k,C+32*f,8),r(et,pt+f*a.B,H,it+32*f,8)}}function fa(a,o,f,g,b,x,_,S,k){var C=[0],H=[0],it=0,E=k!=null?k.kd:0,$=k??new Gt;if(a==null||12>f)return 7;$.data=a,$.w=o,$.ha=f,o=[o],f=[f],$.gb=[$.gb];t:{var X=o,ut=f,et=$.gb;if(i(a!=null),i(ut!=null),i(et!=null),et[0]=0,12<=ut[0]&&!e(a,X[0],"RIFF")){if(e(a,X[0]+8,"WEBP")){et=3;break t}var pt=ct(a,X[0]+4);if(12>pt||4294967286<pt){et=3;break t}if(E&&pt>ut[0]-8){et=7;break t}et[0]=pt,X[0]+=12,ut[0]-=12}et=0}if(et!=0)return et;for(pt=0<$.gb[0],f=f[0];;){t:{var vt=a;ut=o,et=f;var _t=C,wt=H,Mt=X=[0];if((It=it=[it])[0]=0,8>et[0])et=7;else{if(!e(vt,ut[0],"VP8X")){if(ct(vt,ut[0]+4)!=10){et=3;break t}if(18>et[0]){et=7;break t}var Ct=ct(vt,ut[0]+8),oe=1+Pt(vt,ut[0]+12);if(2147483648<=oe*(vt=1+Pt(vt,ut[0]+15))){et=3;break t}Mt!=null&&(Mt[0]=Ct),_t!=null&&(_t[0]=oe),wt!=null&&(wt[0]=vt),ut[0]+=18,et[0]-=18,It[0]=1}et=0}}if(it=it[0],X=X[0],et!=0)return et;if(ut=!!(2&X),!pt&&it)return 3;if(x!=null&&(x[0]=!!(16&X)),_!=null&&(_[0]=ut),S!=null&&(S[0]=0),_=C[0],X=H[0],it&&ut&&k==null){et=0;break}if(4>f){et=7;break}if(pt&&it||!pt&&!it&&!e(a,o[0],"ALPH")){f=[f],$.na=[$.na],$.P=[$.P],$.Sa=[$.Sa];t:{Ct=a,et=o,pt=f;var It=$.gb;_t=$.na,wt=$.P,Mt=$.Sa,oe=22,i(Ct!=null),i(pt!=null),vt=et[0];var ue=pt[0];for(i(_t!=null),i(Mt!=null),_t[0]=null,wt[0]=null,Mt[0]=0;;){if(et[0]=vt,pt[0]=ue,8>ue){et=7;break t}var si=ct(Ct,vt+4);if(4294967286<si){et=3;break t}var le=8+si+1&-2;if(oe+=le,0<It&&oe>It){et=3;break t}if(!e(Ct,vt,"VP8 ")||!e(Ct,vt,"VP8L")){et=0;break t}if(ue[0]<le){et=7;break t}e(Ct,vt,"ALPH")||(_t[0]=Ct,wt[0]=vt+8,Mt[0]=si),vt+=le,ue-=le}}if(f=f[0],$.na=$.na[0],$.P=$.P[0],$.Sa=$.Sa[0],et!=0)break}f=[f],$.Ja=[$.Ja],$.xa=[$.xa];t:if(It=a,et=o,pt=f,_t=$.gb[0],wt=$.Ja,Mt=$.xa,Ct=et[0],vt=!e(It,Ct,"VP8 "),oe=!e(It,Ct,"VP8L"),i(It!=null),i(pt!=null),i(wt!=null),i(Mt!=null),8>pt[0])et=7;else{if(vt||oe){if(It=ct(It,Ct+4),12<=_t&&It>_t-12){et=3;break t}if(E&&It>pt[0]-8){et=7;break t}wt[0]=It,et[0]+=8,pt[0]-=8,Mt[0]=oe}else Mt[0]=5<=pt[0]&&It[Ct+0]==47&&!(It[Ct+4]>>5),wt[0]=pt[0];et=0}if(f=f[0],$.Ja=$.Ja[0],$.xa=$.xa[0],o=o[0],et!=0)break;if(4294967286<$.Ja)return 3;if(S==null||ut||(S[0]=$.xa?2:1),_=[_],X=[X],$.xa){if(5>f){et=7;break}S=_,E=X,ut=x,a==null||5>f?a=0:5<=f&&a[o+0]==47&&!(a[o+4]>>5)?(pt=[0],It=[0],_t=[0],dt(wt=new T,a,o,f),Br(wt,pt,It,_t)?(S!=null&&(S[0]=pt[0]),E!=null&&(E[0]=It[0]),ut!=null&&(ut[0]=_t[0]),a=1):a=0):a=0}else{if(10>f){et=7;break}S=X,a==null||10>f||!zs(a,o+3,f-3)?a=0:(E=a[o+0]|a[o+1]<<8|a[o+2]<<16,ut=16383&(a[o+7]<<8|a[o+6]),a=16383&(a[o+9]<<8|a[o+8]),1&E||3<(E>>1&7)||!(E>>4&1)||E>>5>=$.Ja||!ut||!a?a=0:(_&&(_[0]=ut),S&&(S[0]=a),a=1))}if(!a||(_=_[0],X=X[0],it&&(C[0]!=_||H[0]!=X)))return 3;k!=null&&(k[0]=$,k.offset=o-k.w,i(4294967286>o-k.w),i(k.offset==k.ha-f));break}return et==0||et==7&&it&&k==null?(x!=null&&(x[0]|=$.na!=null&&0<$.na.length),g!=null&&(g[0]=_),b!=null&&(b[0]=X),0):et}function Oi(a,o,f){var g=o.width,b=o.height,x=0,_=0,S=g,k=b;if(o.Da=a!=null&&0<a.Da,o.Da&&(S=a.cd,k=a.bd,x=a.v,_=a.j,11>f||(x&=-2,_&=-2),0>x||0>_||0>=S||0>=k||x+S>g||_+k>b))return 0;if(o.v=x,o.j=_,o.va=x+S,o.o=_+k,o.U=S,o.T=k,o.da=a!=null&&0<a.da,o.da){if(!Ht(S,k,f=[a.ib],x=[a.hb]))return 0;o.ib=f[0],o.hb=x[0]}return o.ob=a!=null&&a.ob,o.Kb=a==null||!a.Sd,o.da&&(o.ob=o.ib<3*g/4&&o.hb<3*b/4,o.Kb=0),1}function Ti(a){if(a==null)return 2;if(11>a.S){var o=a.f.RGBA;o.fb+=(a.height-1)*o.A,o.A=-o.A}else o=a.f.kb,a=a.height,o.O+=(a-1)*o.fa,o.fa=-o.fa,o.N+=(a-1>>1)*o.Ab,o.Ab=-o.Ab,o.W+=(a-1>>1)*o.Db,o.Db=-o.Db,o.F!=null&&(o.J+=(a-1)*o.lb,o.lb=-o.lb);return 0}function zn(a,o,f,g){if(g==null||0>=a||0>=o)return 2;if(f!=null){if(f.Da){var b=f.cd,x=f.bd,_=-2&f.v,S=-2&f.j;if(0>_||0>S||0>=b||0>=x||_+b>a||S+x>o)return 2;a=b,o=x}if(f.da){if(!Ht(a,o,b=[f.ib],x=[f.hb]))return 2;a=b[0],o=x[0]}}g.width=a,g.height=o;t:{var k=g.width,C=g.height;if(a=g.S,0>=k||0>=C||!(a>=$s&&13>a))a=2;else{if(0>=g.Rd&&g.sd==null){_=x=b=o=0;var H=(S=k*ah[a])*C;if(11>a||(x=(C+1)/2*(o=(k+1)/2),a==12&&(_=(b=k)*C)),(C=s(H+2*x+_))==null){a=1;break t}g.sd=C,11>a?((k=g.f.RGBA).eb=C,k.fb=0,k.A=S,k.size=H):((k=g.f.kb).y=C,k.O=0,k.fa=S,k.Fd=H,k.f=C,k.N=0+H,k.Ab=o,k.Cd=x,k.ea=C,k.W=0+H+x,k.Db=o,k.Ed=x,a==12&&(k.F=C,k.J=0+H+2*x),k.Tc=_,k.lb=b)}if(o=1,b=g.S,x=g.width,_=g.height,b>=$s&&13>b)if(11>b)a=g.f.RGBA,o&=(S=Math.abs(a.A))*(_-1)+x<=a.size,o&=S>=x*ah[b],o&=a.eb!=null;else{a=g.f.kb,S=(x+1)/2,H=(_+1)/2,k=Math.abs(a.fa),C=Math.abs(a.Ab);var it=Math.abs(a.Db),E=Math.abs(a.lb),$=E*(_-1)+x;o&=k*(_-1)+x<=a.Fd,o&=C*(H-1)+S<=a.Cd,o=(o&=it*(H-1)+S<=a.Ed)&k>=x&C>=S&it>=S,o&=a.y!=null,o&=a.f!=null,o&=a.ea!=null,b==12&&(o&=E>=x,o&=$<=a.Tc,o&=a.F!=null)}else o=0;a=o?0:2}}return a!=0||f!=null&&f.fd&&(a=Ti(g)),a}var Ar=64,cn=[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],is=24,hn=32,We=8,rl=[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,
vendor: 4,755 bytes, line 119
1196,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];kt("Predictor0","PredictorAdd0"),R.Predictor0=function(){return 4278190080},R.Predictor1=function(a){return a},R.Predictor2=function(a,o,f){return o[f+0]},R.Predictor3=function(a,o,f){return o[f+1]},R.Predictor4=function(a,o,f){return o[f-1]},R.Predictor5=function(a,o,f){return Ut(Ut(a,o[f+1]),o[f+0])},R.Predictor6=function(a,o,f){return Ut(a,o[f-1])},R.Predictor7=function(a,o,f){return Ut(a,o[f+0])},R.Predictor8=function(a,o,f){return Ut(o[f-1],o[f+0])},R.Predictor9=function(a,o,f){return Ut(o[f+0],o[f+1])},R.Predictor10=function(a,o,f){return Ut(Ut(a,o[f-1]),Ut(o[f+0],o[f+1]))},R.Predictor11=function(a,o,f){var g=o[f+0];return 0>=Qt(g>>24&255,a>>24&255,(o=o[f-1])>>24&255)+Qt(g>>16&255,a>>16&255,o>>16&255)+Qt(g>>8&255,a>>8&255,o>>8&255)+Qt(255&g,255&a,255&o)?g:a},R.Predictor12=function(a,o,f){var g=o[f+0];return(ge((a>>24&255)+(g>>24&255)-((o=o[f-1])>>24&255))<<24|ge((a>>16&255)+(g>>16&255)-(o>>16&255))<<16|ge((a>>8&255)+(g>>8&255)-(o>>8&255))<<8|ge((255&a)+(255&g)-(255&o)))>>>0},R.Predictor13=function(a,o,f){var g=o[f-1];return(Xt((a=Ut(a,o[f+0]))>>24&255,g>>24&255)<<24|Xt(a>>16&255,g>>16&255)<<16|Xt(a>>8&255,g>>8&255)<<8|Xt(255&a,255&g))>>>0};var Sr=R.PredictorAdd0;R.PredictorAdd1=Ae,kt("Predictor2","PredictorAdd2"),kt("Predictor3","PredictorAdd3"),kt("Predictor4","PredictorAdd4"),kt("Predictor5","PredictorAdd5"),kt("Predictor6","PredictorAdd6"),kt("Predictor7","PredictorAdd7"),kt("Predictor8","PredictorAdd8"),kt("Predictor9","PredictorAdd9"),kt("Predictor10","PredictorAdd10"),kt("Predictor11","PredictorAdd11"),kt("Predictor12","PredictorAdd12"),kt("Predictor13","PredictorAdd13");var Lr=R.PredictorAdd2;qt("ColorIndexInverseTransform","MapARGB","32b",function(a){return a>>8&255},function(a){return a}),qt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(a){return a},function(a){return a>>8&255});var da,rs=R.ColorIndexInverseTransform,pa=R.MapARGB,ma=R.VP8LColorIndexInverseTransformAlpha,qn=R.MapAlpha,Un=R.VP8LPredictorsAdd=[];Un.length=16,(R.VP8LPredictors=[]).length=16,(R.VP8LPredictorsAdd_C=[]).length=16,(R.VP8LPredictors_C=[]).length=16;var Vr,ns,qi,kr,Ee,Fe,Ye,Ve,Gr,ga,jr,as,kc,jc,Pc,Cc,Ec,Fc,Ic,Oc,Tc,Dc,Mc,Rc,ss,Bc,zc,qc,Uc=s(511),Hc=s(2041),Wc=s(225),Yc=s(767),Vc=0,nl=Hc,Gs=Wc,Ui=Yc,rr=Uc,$s=0,Zs=1,Gc=2,Ks=3,Js=4,al=5,$c=6,sl=7,ol=8,Xs=9,ll=10,dd=[2,3,7],pd=[3,3,11],Zc=[280,256,256,256,40],md=[0,1,1,1,0],gd=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],vd=[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],bd=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],wd=8,cl=[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],hl=[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],os=null,xd=[[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]],yd=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Kc=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],_d=[[[[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,25
1195,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]]]],Nd=[[[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,25
1195,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]]],Ad=[[[[255,255,255,255,255,255,255,255,255,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,25
vendor: 22,445 bytes, line 119
1195,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]]]],Sd=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],un=[],fr=[],$r=[],Ld=1,Jc=2,fn=[],nr=[];ur("UpsampleRgbLinePair",Yr,3),ur("UpsampleBgrLinePair",ha,3),ur("UpsampleRgbaLinePair",Vs,4),ur("UpsampleBgraLinePair",ua,4),ur("UpsampleArgbLinePair",Ys,4),ur("UpsampleRgba4444LinePair",Pi,2),ur("UpsampleRgb565LinePair",Qa,2);var kd=R.UpsampleRgbLinePair,jd=R.UpsampleBgrLinePair,Xc=R.UpsampleRgbaLinePair,Qc=R.UpsampleBgraLinePair,th=R.UpsampleArgbLinePair,eh=R.UpsampleRgba4444LinePair,Pd=R.UpsampleRgb565LinePair,Qs=16,to=1<<Qs-1,ls=-227,ul=482,ih=6,Cd=(256<<ih)-1,rh=0,Ed=s(256),Fd=s(256),Id=s(256),Od=s(256),Td=s(ul-ls),Dd=s(ul-ls);ir("YuvToRgbRow",Yr,3),ir("YuvToBgrRow",ha,3),ir("YuvToRgbaRow",Vs,4),ir("YuvToBgraRow",ua,4),ir("YuvToArgbRow",Ys,4),ir("YuvToRgba4444Row",Pi,2),ir("YuvToRgb565Row",Qa,2);var nh=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],eo=[0,2,8],Md=[8,7,6,4,4,2,2,2,1,1,1,1],Rd=1;this.WebPDecodeRGBA=function(a,o,f,g,b){var x=Zs,_=new Tt,S=new ke;_.ba=S,S.S=x,S.width=[S.width],S.height=[S.height];var k=S.width,C=S.height,H=new Zt;if(H==null||a==null)var it=2;else i(H!=null),it=fa(a,o,f,H.width,H.height,H.Pd,H.Qd,H.format,null);if(it!=0?k=0:(k!=null&&(k[0]=H.width[0]),C!=null&&(C[0]=H.height[0]),k=1),k){S.width=S.width[0],S.height=S.height[0],g!=null&&(g[0]=S.width),b!=null&&(b[0]=S.height);t:{if(g=new na,(b=new Gt).data=a,b.w=o,b.ha=f,b.kd=1,o=[0],i(b!=null),((a=fa(b.data,b.w,b.ha,null,null,null,o,null,b))==0||a==7)&&o[0]&&(a=4),(o=a)==0){if(i(_!=null),g.data=b.data,g.w=b.w+b.offset,g.ha=b.ha-b.offset,g.put=Yt,g.ac=wr,g.bc=Rr,g.ma=_,b.xa){if((a=Pn())==null){_=1;break t}if(function(E,$){var X=[0],ut=[0],et=[0];e:for(;;){if(E==null)return 0;if($==null)return E.a=2,0;if(E.l=$,E.a=0,dt(E.m,$.data,$.w,$.ha),!Br(E.m,X,ut,et)){E.a=3;break e}if(E.xb=Jc,$.width=X[0],$.height=ut[0],!yr(X[0],ut[0],1,E,null))break e;return 1}return i(E.a!=0),0}(a,g)){if(g=(o=zn(g.width,g.height,_.Oa,_.ba))==0){e:{g=a;i:for(;;){if(g==null){g=0;break e}if(i(g.s.yc!=null),i(g.s.Ya!=null),i(0<g.s.Wb),i((f=g.l)!=null),i((b=f.ma)!=null),g.xb!=0){if(g.ca=b.ba,g.tb=b.tb,i(g.ca!=null),!Oi(b.Oa,f,Ks)){g.a=2;break i}if(!Cn(g,f.width)||f.da)break i;if((f.da||ee(g.ca.S))&&Bn(),11>g.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),g.ca.f.kb.F!=null&&Bn()),g.Pb&&0<g.s.ua&&g.s.vb.X==null&&!D(g.s.vb,g.s.Wa.Xa)){g.a=1;break i}g.xb=0}if(!cr(g,g.V,g.Ba,g.c,g.i,f.o,rn))break i;b.Dc=g.Ma,g=1;break e}i(g.a!=0),g=0}g=!g}g&&(o=a.a)}else o=a.a}else{if((a=new qo)==null){_=1;break t}if(a.Fa=b.na,a.P=b.P,a.qc=b.Sa,qs(a,g)){if((o=zn(g.width,g.height,_.Oa,_.ba))==0){if(a.Aa=0,f=_.Oa,i((b=a)!=null),f!=null){if(0<(k=0>(k=f.Md)?0:100<k?255:255*k/100)){for(C=H=0;4>C;++C)12>(it=b.pb[C]).lc&&(it.ia=k*Md[0>it.lc?0:it.lc]>>3),H|=it.ia;H&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=f.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0)}(function(E,$){if(E==null)return 0;if($==null)return Xe(E,2,"NULL VP8Io parameter in VP8Decode().");if(!E.cb&&!qs(E,$))return 0;if(i(E.cb),$.ac==null||$.ac($)){$.ob&&(E.L=0);var X=eo[E.L];if(E.L==2?(E.yb=0,E.zb=0):(E.yb=$.v-X>>4,E.zb=$.j-X>>4,0>E.yb&&(E.yb=0),0>E.zb&&(E.zb=0)),E.Va=$.o+15+X>>4,E.Hb=$.va+15+X>>4,E.Hb>E.za&&(E.Hb=E.za),E.Va>E.Ub&&(E.Va=E.Ub),0<E.L){var ut=E.ed;for(X=0;4>X;++X){var et;if(E.Qa.Cb){var pt=E.Qa.Lb[X];E.Qa.Fb||(pt+=ut.Tb)}else pt=ut.Tb;for(et=0;1>=et;++et){var vt=E.gd[X][et],_t=pt;if(ut.Pc&&(_t+=ut.vd[0],et&&(_t+=ut.od[0])),0<(_t=0>_t?0:63<_t?63:_t)){var wt=_t;0<ut.wb&&(wt=4<ut.wb?wt>>2:wt>>1)>9-ut.wb&&(wt=9-ut.wb),1>wt&&(wt=1),vt.dd=wt,vt.tc=2*_t+wt,vt.ld=40<=_t?2:15<=_t?1:0}else vt.tc=0;vt.La=et}}}X=0}else Xe(E,6,"Frame setup failed"),X=E.a;if(X=X==0){if(X){E.$c=0,0<E.Aa||(E.Ic=Rd);e:{X=E.Ic,ut=4*(wt=E.za);var Mt=32*wt,Ct=wt+1,oe=0<E.L?wt*(0<E.Aa?2:1):0,It=(E.Aa==2?2:1)*wt;if((vt=ut+832+(et=3*(16*X+eo[E.L])/2*Mt)+(pt=E.Fa!=null&&0<E.Fa.length?E.Kc.c*E.Kc.i:0))!=vt)X=0;else{if(vt>E.Vb){if(E.Vb=0,E.Ec=s(vt),E.Fc=0,E.Ec==null){X=Xe(E,1,"no memory during frame initialization.");break e}E.Vb=vt}vt=E.Ec,_t=E.Fc,E.Ac=vt,E.Bc=_t,_t+=ut,E.Gd=c(Mt,Rs),E.Hd=0,E.rb=c(Ct+1,Ba),E.sb=1,E.wa=oe?c(oe,er):null,E.Y=0,E.D.Nb=0,E.D.wa=E.wa,E.D.Y=E.Y,0<E.Aa&&(E.D.Y+=wt),i(!0),E.oc=vt,E.pc=_t,_t+=832,E.ya=c(It,za),E.aa=0,E.D.ya=E.ya,E.D.aa=E.aa,E.Aa==2&&(E.D.aa+=wt),E.R=16*wt,E.B=8*wt,wt=(Mt=eo[E.L])*E.R,Mt=Mt/2*E.B,E.sa=vt,E.ta=_t+wt,E.qa=E.sa,E.ra=E.ta+16*X*E.R+Mt,E.Ha=E.qa,E.Ia=E.ra+8*X*E.B+Mt,E.$c=0,_t+=et,E.mb=pt?vt:null,E.nb=pt?_t:null,i(_t+pt<=E.Fc+E.Vb),En(E),n(E.Ac,E.Bc,0,ut),X=1}}if(X){if($.ka=0,$.y=E.sa,$.O=E.ta,$.f=E.qa,$.N=E.ra,$.ea=E.Ha,$.Vd=E.Ia,$.fa=E.R,$.Rc=E.B,$.F=null,$.J=0,!Vc){for(X=-255;255>=X;++X)Uc[255+X]=0>X?-X:X;for(X=-1020;1020>=X;++X)Hc[1020+X]=-128>X?-128:127<X?127:X;for(X=-112;112>=X;++X)Wc[112+X]=-16>X?-16:15<X?15:X;for(X=-255;510>=X;++X)Yc[255+X]=0>X?0:255<X?255:X;Vc=1}Ye=Hs,Ve=Ho,ga=Wo,jr=_r,as=Us,Gr=Uo,kc=u,jc=w,Pc=J,Cc=gt,Ec=F,Fc=q,Ic=xt,Oc=Ft,Tc=Za,Dc=Rn,Mc=Ka,Rc=Ja,fr[0]=Jo,fr[1]=Ua,fr[2]=Zo,fr[3]=Ko,fr[4]=Xo,fr[5]=Ur,fr[6]=qr,fr[7]=Qo,fr[8]=aa,fr[9]=tl,un[0]=an,un[1]=Vo,un[2]=Go,un[3]=Ha,un[4]=$o,un[5]=On,un[6]=Wa,$r[0]=oa,$r[1]=Yo,$r[2]=Ya,$r[3]=Tn,$r[4]=Va,$r[5]=el,$r[6]=Ga,X=1}else X=0}X&&(X=function(ue,si){for(ue.M=0;ue.M<ue.Va;++ue.M){var le,Ot=ue.Jc[ue.M&ue.Xb],Lt=ue.m,Ge=ue;for(le=0;le<Ge.za;++le){var ie=Lt,de=Ge,Oe=de.Ac,wi=de.Bc+4*le,Ci=de.zc,Be=de.ya[de.aa+le];if(de.Qa.Bb?Be.$b=bt(ie,de.Pa.jb[0])?2+bt(ie,de.Pa.jb[2]):bt(ie,de.Pa.jb[1]):Be.$b=0,de.kc&&(Be.Ad=bt(ie,de.Bd)),Be.Za=!bt(ie,145)+0,Be.Za){var Ai=Be.Ob,Ei=0;for(de=0;4>de;++de){var oi,pe=Ci[0+de];for(oi=0;4>oi;++oi){pe=Nd[Oe[wi+oi]][pe];for(var ye=Kc[bt(ie,pe[0])];0<ye;)ye=Kc[2*ye+bt(ie,pe[ye])];pe=-ye,Oe[wi+oi]=pe}r(Ai,Ei,Oe,wi,4),Ei+=4,Ci[0+de]=pe}}else pe=bt(ie,156)?bt(ie,128)?1:3:bt(ie,163)?2:0,Be.Ob[0]=pe,n(Oe,wi,pe,4),n(Ci,0,pe,4);Be.Dd=bt(ie,142)?bt(ie,114)?bt(ie,183)?1:3:2:0}if(Ge.m.Ka)return Xe(ue,7,"Premature end-of-partition0 encountered.");for(;ue.ja<ue.za;++ue.ja){if(Ge=Ot,ie=(Lt=ue).rb[Lt.sb-1],Oe=Lt.rb[Lt.sb+Lt.ja],le=Lt.ya[Lt.aa+Lt.ja],wi=Lt.kc?le.Ad:0)ie.la=Oe.la=0,le.Za||(ie.Na=Oe.Na=0),le.Hc=0,le.Gc=0,le.ia=0;else{var ze,_e;if(ie=Oe,Oe=Ge,wi=Lt.Pa.Xc,Ci=Lt.ya[Lt.aa+Lt.ja],Be=Lt.pb[Ci.$b],de=Ci.ad,Ai=0,Ei=Lt.rb[Lt.sb-1],pe=oi=0,n(de,Ai,0,384),Ci.Za)var xi=0,dr=wi[3];else{ye=s(16);var $e=ie.Na+Ei.Na;if($e=os(Oe,wi[1],$e,Be.Eb,0,ye,0),ie.Na=Ei.Na=(0<$e)+0,1<$e)Ye(ye,0,de,Ai);else{var Di=ye[0]+3>>3;for(ye=0;256>ye;ye+=16)de[Ai+ye]=Di}xi=1,dr=wi[0]}var je=15&ie.la,li=15&Ei.la;for(ye=0;4>ye;++ye){var Hi=1&li;for(Di=_e=0;4>Di;++Di)je=je>>1|(Hi=($e=os(Oe,dr,$e=Hi+(1&je),Be.Sc,xi,de,Ai))>xi)<<7,_e=_e<<2|(3<$e?3:1<$e?2:de[Ai+0]!=0),Ai+=16;je>>=4,li=li>>1|Hi<<7,oi=(oi<<8|_e)>>>0}for(dr=je,xi=li>>4,ze=0;4>ze;ze+=2){for(_e=0,je=ie.la>>4+ze,li=Ei.la>>4+ze,ye=0;2>ye;++ye){for(Hi=1&li,Di=0;2>Di;++Di)$e=Hi+(1&je),je=je>>1|(Hi=0<($e=os(Oe,wi[2],$e,Be.Qc,0,de,Ai)))<<3,_e=_e<<2|(3<$e?3:1<$e?2:de[Ai+0]!=0),Ai+=16;je>>=2,li=li>>1|Hi<<5}pe|=_e<<4*ze,dr|=je<<4<<ze,xi|=(240&li)<<ze}ie.la=dr,Ei.la=xi,Ci.Hc=oi,Ci.Gc=pe,Ci.ia=43690&pe?0:Be.ia,wi=!(oi|pe)}if(0<Lt.L&&(Lt.wa[Lt.Y+Lt.ja]=Lt.gd[le.$b][le.Za],Lt.wa[Lt.Y+Lt.ja].La|=!wi),Ge.Ka)return Xe(ue,7,"Premature end-of-file encountered.")}if(En(ue),Lt=si,Ge=1,le=(Ot=ue).D,ie=0<Ot.L&&Ot.M>=Ot.zb&&Ot.M<=Ot.Va,Ot.Aa==0)e:{if(le.M=Ot.M,le.uc=ie,ln(Ot,le),Ge=1,le=(_e=Ot.D).Nb,ie=(pe=eo[Ot.L])*Ot.R,Oe=pe/2*Ot.B,ye=16*le*Ot.R,Di=8*le*Ot.B,wi=Ot.sa,Ci=Ot.ta-ie+ye,Be=Ot.qa,de=Ot.ra-Oe+Di,Ai=Ot.Ha,Ei=Ot.Ia-Oe+Di,li=(je=_e.M)==0,oi=je>=Ot.Va-1,Ot.Aa==2&&ln(Ot,_e),_e.uc)for(Hi=($e=Ot).D.M,i($e.D.uc),_e=$e.yb;_e<$e.Hb;++_e){xi=_e,dr=Hi;var Fi=(Wi=(yi=$e).D).Nb;ze=yi.R;var Wi=Wi.wa[Wi.Y+xi],Yi=yi.sa,Mi=yi.ta+16*Fi*ze+16*xi,Vi=Wi.dd,Ie=Wi.tc;if(Ie!=0)if(i(3<=Ie),yi.L==1)0<xi&&Dc(Yi,Mi,ze,Ie+4),Wi.La&&Rc(Yi,Mi,ze,Ie),0<dr&&Tc(Yi,Mi,ze,Ie+4),Wi.La&&Mc(Yi,Mi,ze,Ie);else{var Gi=yi.B,pr=yi.qa,Hn=yi.ra+8*Fi*Gi+8*xi,Zr=yi.Ha,yi=yi.Ia+8*Fi*Gi+8*xi;Fi=Wi.ld,0<xi&&(jc(Yi,Mi,ze,Ie+4,Vi,Fi),Cc(pr,Hn,Zr,yi,Gi,Ie+4,Vi,Fi)),Wi.La&&(Fc(Yi,Mi,ze,Ie,Vi,Fi),Oc(pr,Hn,Zr,yi,Gi,Ie,Vi,Fi)),0<dr&&(kc(Yi,Mi,ze,Ie+4,Vi,Fi),Pc(pr,Hn,Zr,yi,Gi,Ie+4,Vi,Fi)),Wi.La&&(Ec(Yi,Mi,ze,Ie,Vi,Fi),Ic(pr,Hn,Zr,yi,Gi,Ie,Vi,Fi))}}if(Ot.ia&&alert("todo:DitherRow"),Lt.put!=null){if(_e=16*je,je=16*(je+1),li?(Lt.y=Ot.sa,Lt.O=Ot.ta+ye,Lt.f=Ot.qa,Lt.N=Ot.ra+Di,Lt.ea=Ot.Ha,Lt.W=Ot.Ia+Di):(_e-=pe,Lt.y=wi,Lt.O=Ci,Lt.f=Be,Lt.N=de,Lt.ea=Ai,Lt.W=Ei),oi||(je-=pe),je>Lt.o&&(je=Lt.o),Lt.F=null,Lt.J=null,Ot.Fa!=null&&0<Ot.Fa.length&&_e<je&&(Lt.J=bi(Ot,Lt,_e,je-_e),Lt.F=Ot.mb,Lt.F==null&&Lt.F.length==0)){Ge=Xe(Ot,3,"Could not decode alpha data.");break e}_e<Lt.j&&(pe=Lt.j-_e,_e=Lt.j,i(!(1&pe)),Lt.O+=Ot.R*pe,Lt.N+=Ot.B*(pe>>1),Lt.W+=Ot.B*(pe>>1),Lt.F!=null&&(Lt.J+=Lt.width*pe)),_e<je&&(Lt.O+=Lt.v,Lt.N+=Lt.v>>1,Lt.W+=Lt.v>>1,Lt.F!=null&&(Lt.J+=Lt.v),Lt.ka=_e-Lt.j,Lt.U=Lt.va-Lt.v,Lt.T=je-_e,Ge=Lt.put(Lt))}le+1!=Ot.Ic||oi||(r(Ot.sa,Ot.ta-ie,wi,Ci+16*Ot.R,ie),r(Ot.qa,Ot.ra-Oe,Be,de+8*Ot.B,Oe),r(Ot.Ha,Ot.Ia-Oe,Ai,Ei+8*Ot.B,Oe))}if(!Ge)return Xe(ue,6,"Output aborted.")}return 1}(E,$)),$.bc!=null&&$.bc($),X&=1}return X?(E.cb=0,X):0})(a,g)||(o=a.a)}}else o=a.a}o==0&&_.Oa!=null&&_.Oa.fd&&(o=Ti(_.ba))}_=o}x=_!=0?null:11>x?S.f.RGBA.eb:S.f.kb.y}else x=null;return x};var ah=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(R,Q){for(var L="",I=0;I<4;I++)L+=String.fromCharCode(R[Q++]);return L}function m(R,Q){return R[Q+0]|R[Q+1]<<8}function y(R,Q){return(R[Q+0]|R[Q+1]<<8|R[Q+2]<<16)>>>0}function A(R,Q){return(R[Q+0]|R[Q+1]<<8|R[Q+2]<<16|R[Q+3]<<24)>>>0}new h;var p=[0],O=[0],P=[],M=new h,j=t,G=function(R,Q){var L={},I=0,W=!1,U=0,at=0;if(L.frames=[],!function(N,T){for(var B=0;B<4;B++)if(N[T+B]!="RIFF".charCodeAt(B))return!0;return!1}(R,Q)){for(A(R,Q+=4),Q+=8;Q<R.length;){var ft=d(R,Q),mt=A(R,Q+=4);Q+=4;var nt=mt+(1&mt);switch(ft){case"VP8 ":case"VP8L":L.frames[I]===void 0&&(L.frames[I]={}),(yt=L.frames[I]).src_off=W?at:Q-8,yt.src_size=U+mt+8,I++,W&&(W=!1,U=0,at=0);break;case"VP8X":(yt=L.header={}).feature_flags=R[Q];var dt=Q+4;yt.canvas_width=1+y(R,dt),dt+=3,yt.canvas_height=1+y(R,dt),dt+=3;break;case"ALPH":W=!0,U=nt+8,at=Q-8;break;case"ANIM":(yt=L.header).bgcolor=A(R,Q),dt=Q+4,yt.loop_count=m(R,dt),dt+=2;break;case"ANMF":var St,yt;(yt=L.frames[I]={}).offset_x=2*y(R,Q),Q+=3,yt.offset_y=2*y(R,Q),Q+=3,yt.width=1+y(R,Q),Q+=3,yt.height=1+y(R,Q),Q+=3,yt.duration=y(R,Q),Q+=3,St=R[Q++],yt.dispose=1&St,yt.blend=St>>1&1}ft!="ANMF"&&(Q+=nt)}return L}}(j,0);G.response=j,G.rgbaoutput=!0,G.dataurl=!1;var V=G.header?G.header:null,z=G.frames?G.frames:null;if(V){V.loop_counter=V.loop_count,p=[V.canvas_height],O=[V.canvas_width];for(var ot=0;ot<z.length&&z[ot].blend!=0;ot++);}var lt=z[0],rt=M.WebPDecodeRGBA(j,lt.src_off,lt.src_size,O,p);lt.rgba=rt,lt.imgwidth=O[0],lt.imgheight=p[0];for(var Z=0;Z<O[0]*p[0]*4;Z++)P[Z]=rt[Z];return this.width=O,this.height=p,this.data=P,this}(function(t){var i,e,r,n,s,c,l,h,d,m=function(N){return N=N||{},this.isStrokeTransparent=N.isStrokeTransparent||!1,this.strokeOpacity=N.strokeOpacity||1,this.strokeStyle=N.strokeStyle||"#000000",this.fillStyle=N.fillStyle||"#000000",this.isFillTransparent=N.isFillTransparent||!1,this.fillOpacity=N.fillOpacity||1,this.font=N.font||"10px sans-serif",this.textBaseline=N.textBaseline||"alphabetic",this.textAlign=N.textAlign||"left",this.lineWidth=N.lineWidth||1,this.lineJoin=N.lineJoin||"miter",this.lineCap=N.lineCap||"butt",this.path=N.path||[],this.transform=N.transform!==void 0?N.transform.clone():new h,this.globalCompositeOperation=N.globalCompositeOperation||"normal",this.globalAlpha=N.globalAlpha||1,this.clip_path=N.clip_path||[],this.currentPoint=N.currentPoint||new c,this.miterLimit=N.miterLimit||10,this.lastPoint=N.lastPoint||new c,this.lineDashOffset=N.lineDashOffset||0,this.lineDash=N.lineDash||[],this.margin=N.margin||[0,0,0,0],this.prevPageLastElemOffset=N.prevPageLastElemOffset||0,this.ignoreClearRect=typeof N.ignoreClearRect!="boolean"||N.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new y(this),i=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,c=this.internal.Point,l=this.internal.Rectangle,h=this.internal.Matrix,d=new m}]);var y=function(N){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var T=N;Object.defineProperty(this,"pdf",{get:function(){return T}});var B=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return B},set:function(ct){B=!!ct}});var Y=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Y},set:function(ct){Y=!!ct}});var K=0;Object.defineProperty(this,"posX",{get:function(){return K},set:function(ct){isNaN(ct)||(K=ct)}});var tt=0;Object.defineProperty(this,"posY",{get:function(){return tt},set:function(ct){isNaN(ct)||(tt=ct)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(ct){var D;typeof ct=="number"?D=[ct,ct,ct,ct]:((D=new Array(4))[0]=ct[0],D[1]=ct.length>=2?ct[1]:D[0],D[2]=ct.length>=3?ct[2]:D[0],D[3]=ct.length>=4?ct[3]:D[1]),d.margin=D}});var ht=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ht},set:function(ct){ht=ct}});var st=0;Object.defineProperty(this,"lastBreak",{get:function(){return st},set:function(ct){st=ct}});var bt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return bt},set:function(ct){bt=ct}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(ct){ct instanceof m&&(d=ct)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(ct){d.path=ct}});var At=[];Object.defineProperty(this,"ctxStack",{get:function(){return At},set:function(ct){At=ct}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ct){var D;D=A(ct),this.ctx.fillStyle=D.style,this.ctx.isFillTransparent=D.a===0,this.ctx.fillOpacity=D.a,this.pdf.setFillColor(D.r,D.g,D.b,{a:D.a}),this.pdf.setTextColor(D.r,D.g,D.b,{a:D.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ct){var D=A(ct);this.ctx.strokeStyle=D.style,this.ctx.isStrokeTransparent=D.a===0,this.ctx.strokeOpacity=D.a,D.a===0?this.pdf.setDrawColor(255,255,255):(D.a,this.pdf.setDrawColor(D.r,D.g,D.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ct){["butt","round","square"].indexOf(ct)!==-1&&(this.ctx.lineCap=ct,this.pdf.setLineCap(ct))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ct){isNaN(ct)||(this.ctx.lineWidth=ct,this.pdf.setLineWidth(ct))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ct){["bevel","round","miter"].indexOf(ct)!==-1&&(this.ctx.lineJoin=ct,this.pdf.setLineJoin(ct))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ct){isNaN(ct)||(this.ctx.miterLimit=ct,this.pdf.setMiterLimit(ct))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ct){this.ctx.textBaseline=ct}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ct){["right","end","center","left","start"].indexOf(ct)!==-1&&(this.ctx.textAlign=ct)}});var jt=null,Pt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Pt},set:function(ct){jt=null,Pt=ct}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ct){var D;if(this.ctx.font=ct,(D=/^\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(ct))!==null){var ce=D[1];D[2];var re=D[3],Ht=D[4];D[5];var Nt=D[6],Bt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ht)[2];Ht=Math.floor(Bt==="px"?parseFloat(Ht)*this.pdf.internal.scaleFactor:Bt==="em"?parseFloat(Ht)*this.pdf.getFontSize():parseFloat(Ht)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ht);var kt=function(Vt){var qt,Ce,ve=[],Dt=Vt.trim();if(Dt==="")return Vl;if(Dt in Cu)return[Cu[Dt]];for(;Dt!=="";){switch(Ce=null,qt=(Dt=Fu(Dt)).charAt(0)){case'"':case"'":Ce=tp(Dt.substring(1),qt);break;default:Ce=ep(Dt)}if(Ce===null||(ve.push(Ce[0]),(Dt=Fu(Ce[1]))!==""&&Dt.charAt(0)!==","))return Vl;Dt=Dt.replace(/^,/,"")}return ve}(Nt);if(this.fontFaces){var ne=function(Vt,qt){if(jt===null){var Ce=function(ve){var Dt=[];return Object.keys(ve).forEach(function(te){ve[te].forEach(function(Le){var Wt=null;switch(Le){case"bold":Wt={family:te,weight:"bold"};break;case"italic":Wt={family:te,style:"italic"};break;case"bolditalic":Wt={family:te,weight:"bold",style:"italic"};break;case"":case"normal":Wt={family:te}}Wt!==null&&(Wt.ref={name:te,style:Le},Dt.push(Wt))})}),Dt}(Vt.getFontList());jt=function(ve){for(var Dt={},te=0;te<ve.length;++te){var Le=Yl(ve[te]),Wt=Le.family,he=Le.stretch,ee=Le.style,Ue=Le.weight;Dt[Wt]=Dt[Wt]||{},Dt[Wt][he]=Dt[Wt][he]||{},Dt[Wt][he][ee]=Dt[Wt][he][ee]||{},Dt[Wt][he][ee][Ue]=Le}return Dt}(Ce.concat(qt))}return jt}(this.pdf,this.fontFaces),Ut=kt.map(function(Vt){return{family:Vt,stretch:"normal",weight:re,style:ce}}),ge=function(Vt,qt,Ce){for(var ve=(Ce=Ce||{}).defaultFontFamily||"times",Dt=Object.assign({},Q5,Ce.genericFontFamilies||{}),te=null,Le=null,Wt=0;Wt<qt.length;++Wt)if(Dt[(te=Yl(qt[Wt])).family]&&(te.family=Dt[te.family]),Vt.hasOwnProperty(te.family)){Le=Vt[te.family];break}if(!(Le=Le||Vt[ve]))throw new Error("Could not find a font-family for the rule '"+Eu(te)+"' and default family '"+ve+"'.");if(Le=function(he,ee){if(ee[he])return ee[he];var Ue=fc[he],ri=Ue<=fc.normal?-1:1,ke=Pu(ee,ld,Ue,ri);if(!ke)throw new Error("Could not find a matching font-stretch value for "+he);return ke}(te.stretch,Le),Le=function(he,ee){if(ee[he])return ee[he];for(var Ue=od[he],ri=0;ri<Ue.length;++ri)if(ee[Ue[ri]])return ee[Ue[ri]];throw new Error("Could not find a matching font-style for "+he)}(te.style,Le),!(Le=function(he,ee){if(ee[he])return ee[he];if(he===400&&ee[500])return ee[500];if(he===500&&ee[400])return ee[400];var Ue=X5[he],ri=Pu(ee,cd,Ue,he<400?-1:1);if(!ri)throw new Error("Could not find a matching font-weight for value "+he);return ri}(te.weight,Le)))throw new Error("Failed to resolve a font for the rule '"+Eu(te)+"'.");return Le}(ne,Ut);this.pdf.setFont(ge.ref.name,ge.ref.style)}else{var Xt="";(re==="bold"||parseInt(re,10)>=700||ce==="bold")&&(Xt="bold"),ce==="italic"&&(Xt+="italic"),Xt.length===0&&(Xt="normal");for(var Qt="",Ae={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"},ae=0;ae<kt.length;ae++){if(this.pdf.internal.getFont(kt[ae],Xt,{noFallback:!0,disableWarning:!0})!==void 0){Qt=kt[ae];break}if(Xt==="bolditalic"&&this.pdf.internal.getFont(kt[ae],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Qt=kt[ae],Xt="bold";else if(this.pdf.internal.getFont(kt[ae],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Qt=kt[ae],Xt="normal";break}}if(Qt===""){for(var zt=0;zt<kt.length;zt++)if(Ae[kt[zt]]){Qt=Ae[kt[zt]];break}}Qt=Qt===""?"Times":Qt,this.pdf.setFont(Qt,Xt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ct){this.ctx.globalCompositeOperation=ct}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ct){this.ctx.globalAlpha=ct}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ct){this.ctx.lineDashOffset=ct,yt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ct){this.ctx.lineDash=ct,yt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ct){this.ctx.ignoreClearRect=!!ct}})};y.prototype.setLineDash=function(N){this.lineDash=N},y.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},y.prototype.fill=function(){z.call(this,"fill",!1)},y.prototype.stroke=function(){z.call(this,"stroke",!1)},y.prototype.beginPath=function(){this.path=[{type:"begin"}]},y.prototype.moveTo=function(N,T){if(isNaN(N)||isNaN(T))throw Pe.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var B=this.ctx.transform.applyToPoint(new c(N,T));this.path.push({type:"mt",x:B.x,y:B.y}),this.ctx.lastPoint=new c(N,T)},y.prototype.closePath=function(){var N=new c(0,0),T=0;for(T=this.path.length-1;T!==-1;T--)if(this.path[T].type==="begin"&&Ne(this.path[T+1])==="object"&&typeof this.path[T+1].x=="number"){N=new c(this.path[T+1].x,this.path[T+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new c(N.x,N.y)},y.prototype.lineTo=function(N,T){if(isNaN(N)||isNaN(T))throw Pe.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var B=this.ctx.transform.applyToPoint(new c(N,T));this.path.push({type:"lt",x:B.x,y:B.y}),this.ctx.lastPoint=new c(B.x,B.y)},y.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),z.call(this,null,!0)},y.prototype.quadraticCurveTo=function(N,T,B,Y){if(isNaN(B)||isNaN(Y)||isNaN(N)||isNaN(T))throw Pe.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to 
119jsPDF.context2d.quadraticCurveTo");var K=this.ctx.transform.applyToPoint(new c(B,Y)),tt=this.ctx.transform.applyToPoint(new c(N,T));this.path.push({type:"qct",x1:tt.x,y1:tt.y,x:K.x,y:K.y}),this.ctx.lastPoint=new c(K.x,K.y)},y.prototype.bezierCurveTo=function(N,T,B,Y,K,tt){if(isNaN(K)||isNaN(tt)||isNaN(N)||isNaN(T)||isNaN(B)||isNaN(Y))throw Pe.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ht=this.ctx.transform.applyToPoint(new c(K,tt)),st=this.ctx.transform.applyToPoint(new c(N,T)),bt=this.ctx.transform.applyToPoint(new c(B,Y));this.path.push({type:"bct",x1:st.x,y1:st.y,x2:bt.x,y2:bt.y,x:ht.x,y:ht.y}),this.ctx.lastPoint=new c(ht.x,ht.y)},y.prototype.arc=function(N,T,B,Y,K,tt){if(isNaN(N)||isNaN(T)||isNaN(B)||isNaN(Y)||isNaN(K))throw Pe.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(tt=!!tt,!this.ctx.transform.isIdentity){var ht=this.ctx.transform.applyToPoint(new c(N,T));N=ht.x,T=ht.y;var st=this.ctx.transform.applyToPoint(new c(0,B)),bt=this.ctx.transform.applyToPoint(new c(0,0));B=Math.sqrt(Math.pow(st.x-bt.x,2)+Math.pow(st.y-bt.y,2))}Math.abs(K-Y)>=2*Math.PI&&(Y=0,K=2*Math.PI),this.path.push({type:"arc",x:N,y:T,radius:B,startAngle:Y,endAngle:K,counterclockwise:tt})},y.prototype.arcTo=function(N,T,B,Y,K){throw new Error("arcTo not implemented.")},y.prototype.rect=function(N,T,B,Y){if(isNaN(N)||isNaN(T)||isNaN(B)||isNaN(Y))throw Pe.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(N,T),this.lineTo(N+B,T),this.lineTo(N+B,T+Y),this.lineTo(N,T+Y),this.lineTo(N,T),this.lineTo(N+B,T),this.lineTo(N,T)},y.prototype.fillRect=function(N,T,B,Y){if(isNaN(N)||isNaN(T)||isNaN(B)||isNaN(Y))throw Pe.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var K={};this.lineCap!=="butt"&&(K.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(K.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(N,T,B,Y),this.fill(),K.hasOwnProperty("lineCap")&&(this.lineCap=K.lineCap),K.hasOwnProperty("lineJoin")&&(this.lineJoin=K.lineJoin)}},y.prototype.strokeRect=function(N,T,B,Y){if(isNaN(N)||isNaN(T)||isNaN(B)||isNaN(Y))throw Pe.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");O.call(this)||(this.beginPath(),this.rect(N,T,B,Y),this.stroke())},y.prototype.clearRect=function(N,T,B,Y){if(isNaN(N)||isNaN(T)||isNaN(B)||isNaN(Y))throw Pe.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(N,T,B,Y))},y.prototype.save=function(N){N=typeof N!="boolean"||N;for(var T=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("q");if(this.pdf.setPage(T),N){this.ctx.fontSize=this.pdf.internal.getFontSize();var Y=new m(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Y}},y.prototype.restore=function(N){N=typeof N!="boolean"||N;for(var T=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("Q");this.pdf.setPage(T),N&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},y.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var A=function(N){var T,B,Y,K;if(N.isCanvasGradient===!0&&(N=N.getColor()),!N)return{r:0,g:0,b:0,a:0,style:N};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(N))T=0,B=0,Y=0,K=0;else{var tt=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(N);if(tt!==null)T=parseInt(tt[1]),B=parseInt(tt[2]),Y=parseInt(tt[3]),K=1;else if((tt=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(N))!==null)T=parseInt(tt[1]),B=parseInt(tt[2]),Y=parseInt(tt[3]),K=parseFloat(tt[4]);else{if(K=1,typeof N=="string"&&N.charAt(0)!=="#"){var ht=new td(N);N=ht.ok?ht.toHex():"#000000"}N.length===4?(T=N.substring(1,2),T+=T,B=N.substring(2,3),B+=B,Y=N.substring(3,4),Y+=Y):(T=N.substring(1,3),B=N.substring(3,5),Y=N.substring(5,7)),T=parseInt(T,16),B=parseInt(B,16),Y=parseInt(Y,16)}}return{r:T,g:B,b:Y,a:K,style:N}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},O=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};y.prototype.fillText=function(N,T,B,Y){if(isNaN(T)||isNaN(B)||typeof N!="str
119ing")throw Pe.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Y=isNaN(Y)?void 0:Y,!p.call(this)){var K=nt(this.ctx.transform.rotation),tt=this.ctx.transform.scaleX;I.call(this,{text:N,x:T,y:B,scale:tt,angle:K,align:this.textAlign,maxWidth:Y})}},y.prototype.strokeText=function(N,T,B,Y){if(isNaN(T)||isNaN(B)||typeof N!="string")throw Pe.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!O.call(this)){Y=isNaN(Y)?void 0:Y;var K=nt(this.ctx.transform.rotation),tt=this.ctx.transform.scaleX;I.call(this,{text:N,x:T,y:B,scale:tt,renderingMode:"stroke",angle:K,align:this.textAlign,maxWidth:Y})}},y.prototype.measureText=function(N){if(typeof N!="string")throw Pe.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var T=this.pdf,B=this.pdf.internal.scaleFactor,Y=T.internal.getFontSize(),K=T.getStringUnitWidth(N)*Y/T.internal.scaleFactor;return new function(tt){var ht=(tt=tt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ht}}),this}({width:K*=Math.round(96*B/72*1e4)/1e4})},y.prototype.scale=function(N,T){if(isNaN(N)||isNaN(T))throw Pe.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var B=new h(N,0,0,T,0,0);this.ctx.transform=this.ctx.transform.multiply(B)},y.prototype.rotate=function(N){if(isNaN(N))throw Pe.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var T=new h(Math.cos(N),Math.sin(N),-Math.sin(N),Math.cos(N),0,0);this.ctx.transform=this.ctx.transform.multiply(T)},y.prototype.translate=function(N,T){if(isNaN(N)||isNaN(T))throw Pe.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var B=new h(1,0,0,1,N,T);this.ctx.transform=this.ctx.transform.multiply(B)},y.prototype.transform=function(N,T,B,Y,K,tt){if(isNaN(N)||isNaN(T)||isNaN(B)||isNaN(Y)||isNaN(K)||isNaN(tt))throw Pe.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ht=new h(N,T,B,Y,K,tt);this.ctx.transform=this.ctx.transform.multiply(ht)},y.prototype.setTransform=function(N,T,B,Y,K,tt){N=isNaN(N)?1:N,T=isNaN(T)?0:T,B=isNaN(B)?0:B,Y=isNaN(Y)?1:Y,K=isNaN(K)?0:K,tt=isNaN(tt)?0:tt,this.ctx.transform=new h(N,T,B,Y,K,tt)};var P=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};y.prototype.drawImage=function(N,T,B,Y,K,tt,ht,st,bt){var At=this.pdf.getImageProperties(N),jt=1,Pt=1,ct=1,D=1;Y!==void 0&&st!==void 0&&(ct=st/Y,D=bt/K,jt=At.width/Y*st/Y,Pt=At.height/K*bt/K),tt===void 0&&(tt=T,ht=B,T=0,B=0),Y!==void 0&&st===void 0&&(st=Y,bt=K),Y===void 0&&st===void 0&&(st=At.width,bt=At.height);for(var ce,re=this.ctx.transform.decompose(),Ht=nt(re.rotate.shx),Nt=new h,Bt=(Nt=(Nt=(Nt=Nt.multiply(re.translate)).multiply(re.skew)).multiply(re.scale)).applyToRectangle(new l(tt-T*ct,ht-B*D,Y*jt,K*Pt)),kt=M.call(this,Bt),ne=[],Ut=0;Ut<kt.length;Ut+=1)ne.indexOf(kt[Ut])===-1&&ne.push(kt[Ut]);if(V(ne),this.autoPaging)for(var ge=ne[0],Xt=ne[ne.length-1],Qt=ge;Qt<Xt+1;Qt++){this.pdf.setPage(Qt);var Ae=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ae=Qt===1?this.posY+this.margin[0]:this.margin[0],zt=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],qt=Qt===1?0:zt+(Qt-2)*Vt;if(this.ctx.clip_path.length!==0){var Ce=this.path;ce=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(ce,this.posX+this.margin[3],-qt+ae+this.ctx.prevPageLastElemOffset),ot.call(this,"fill",!0),this.path=Ce}var ve=JSON.parse(JSON.stringify(Bt));ve=G([ve],this.posX+this.margin[3],-qt+ae+this.ctx.prevPageLastElemOffset)[0];var Dt=(Qt>ge||Qt<Xt)&&P.call(this);Dt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ae,Vt,null).clip().discardPath()),this.pdf.addImage(N,"JPEG",ve.x,ve.y,ve.w,ve.h,null,
vendor: 40,676 bytes, lines 119-125
119null,Ht),Dt&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(N,"JPEG",Bt.x,Bt.y,Bt.w,Bt.h,null,null,Ht)};var M=function(N,T,B){var Y=[];T=T||this.pdf.internal.pageSize.width,B=B||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var K=this.posY+this.ctx.prevPageLastElemOffset;switch(N.type){default:case"mt":case"lt":Y.push(Math.floor((N.y+K)/B)+1);break;case"arc":Y.push(Math.floor((N.y+K-N.radius)/B)+1),Y.push(Math.floor((N.y+K+N.radius)/B)+1);break;case"qct":var tt=dt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x,N.y);Y.push(Math.floor((tt.y+K)/B)+1),Y.push(Math.floor((tt.y+tt.h+K)/B)+1);break;case"bct":var ht=St(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x2,N.y2,N.x,N.y);Y.push(Math.floor((ht.y+K)/B)+1),Y.push(Math.floor((ht.y+ht.h+K)/B)+1);break;case"rect":Y.push(Math.floor((N.y+K)/B)+1),Y.push(Math.floor((N.y+N.h+K)/B)+1)}for(var st=0;st<Y.length;st+=1)for(;this.pdf.internal.getNumberOfPages()<Y[st];)j.call(this);return Y},j=function(){var N=this.fillStyle,T=this.strokeStyle,B=this.font,Y=this.lineCap,K=this.lineWidth,tt=this.lineJoin;this.pdf.addPage(),this.fillStyle=N,this.strokeStyle=T,this.font=B,this.lineCap=Y,this.lineWidth=K,this.lineJoin=tt},G=function(N,T,B){for(var Y=0;Y<N.length;Y++)switch(N[Y].type){case"bct":N[Y].x2+=T,N[Y].y2+=B;case"qct":N[Y].x1+=T,N[Y].y1+=B;default:N[Y].x+=T,N[Y].y+=B}return N},V=function(N){return N.sort(function(T,B){return T-B})},z=function(N,T){for(var B,Y,K=this.fillStyle,tt=this.strokeStyle,ht=this.lineCap,st=this.lineWidth,bt=Math.abs(st*this.ctx.transform.scaleX),At=this.lineJoin,jt=JSON.parse(JSON.stringify(this.path)),Pt=JSON.parse(JSON.stringify(this.path)),ct=[],D=0;D<Pt.length;D++)if(Pt[D].x!==void 0)for(var ce=M.call(this,Pt[D]),re=0;re<ce.length;re+=1)ct.indexOf(ce[re])===-1&&ct.push(ce[re]);for(var Ht=0;Ht<ct.length;Ht++)for(;this.pdf.internal.getNumberOfPages()<ct[Ht];)j.call(this);if(V(ct),this.autoPaging)for(var Nt=ct[0],Bt=ct[ct.length-1],kt=Nt;kt<Bt+1;kt++){this.pdf.setPage(kt),this.fillStyle=K,this.strokeStyle=tt,this.lineCap=ht,this.lineWidth=bt,this.lineJoin=At;var ne=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ut=kt===1?this.posY+this.margin[0]:this.margin[0],ge=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Xt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Qt=kt===1?0:ge+(kt-2)*Xt;if(this.ctx.clip_path.length!==0){var Ae=this.path;B=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(B,this.posX+this.margin[3],-Qt+Ut+this.ctx.prevPageLastElemOffset),ot.call(this,N,!0),this.path=Ae}if(Y=JSON.parse(JSON.stringify(jt)),this.path=G(Y,this.posX+this.margin[3],-Qt+Ut+this.ctx.prevPageLastElemOffset),T===!1||kt===0){var ae=(kt>Nt||kt<Bt)&&P.call(this);ae&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ne,Xt,null).clip().discardPath()),ot.call(this,N,T),ae&&this.pdf.restoreGraphicsState()}this.lineWidth=st}else this.lineWidth=bt,ot.call(this,N,T),this.lineWidth=st;this.path=jt},ot=function(N,T){if((N!=="stroke"||T||!O.call(this))&&(N==="stroke"||T||!p.call(this))){for(var B,Y,K=[],tt=this.path,ht=0;ht<tt.length;ht++){var st=tt[ht];switch(st.type){case"begin":K.push({begin:!0});break;case"close":K.push({close:!0});break;case"mt":K.push({start:st,deltas:[],abs:[]});break;case"lt":var bt=K.length;if(tt[ht-1]&&!isNaN(tt[ht-1].x)&&(B=[st.x-tt[ht-1].x,st.y-tt[ht-1].y],bt>0)){for(;bt>=0;bt--)if(K[bt-1].close!==!0&&K[bt-1].begin!==!0){K[bt-1].deltas.push(B),K[bt-1].abs.push(st);break}}break;case"bct":B=[st.x1-tt[ht-1].x,st.y1-tt[ht-1].y,st.x2-tt[ht-1].x,st.y2-tt[ht-1].y,st.x-tt[ht-1].x,st.y-tt[ht-1].y],K[K.length-1].deltas.push(B);break;case"qct":var At=tt[ht-1].x+2/3*(st.x1-tt[ht-1].x),jt=tt[ht-1].y+2/3*(st.y1-tt[ht-1].y),Pt=st.x+2/3*(st.x1-st.x),ct=st.y+2/3*(st.y1-st.y),D=st.x,ce=st.y;B=[At-tt[ht-1].x,jt-tt[ht-1].y,Pt-tt[ht-1].x,ct-tt[ht-1].y,D-tt[ht-1].x,ce-tt[ht-1].y],K[K.length-1].deltas.push(B);break;case"arc":K.push({deltas:[],abs:[],arc:!0}),Array.isArray(K[K.length-1].abs)&&K[K.length-1].abs.push(st)}}Y=T?null:N==="stroke"?"stroke":"fill";for(var re=!1,Ht=0;Ht<K.length;Ht++)if(K[Ht].arc)for(var Nt=K[Ht].abs,Bt=0;Bt<Nt.length;Bt++){var kt=Nt[Bt];kt.type==="arc"?Z.call(this,kt.x,kt.y,kt.radius,kt.startAngle,kt.endAngle,kt.counterclockwise,void 0,T,!re):W.call(this,kt.x,kt.y),re=!0}else if(K[Ht].close===!0)this.pdf.internal.out("h"),re=!1;else if(K[Ht].begin!==!0){var ne=K[Ht].start.x,Ut=K[Ht].start.y;U.call(this,K[Ht].deltas,ne,Ut),re=!0}Y&&R.call(this,Y),T&&Q.call(this)}},lt=function(N){var T=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,B=T*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return N-B;case"top":return N+T-B;case"hanging":return N+T-2*B;case"middle":return N+T/2-B;default:return N}},rt=function(N){return N+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};y.prototype.createLinearGradient=function(){var N=function(){};return N.colorStops=[],N.addColorStop=function(T,B){this.colorStops.push([T,B])},N.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},N.isCanvasGradient=!0,N},y.prototype.createPattern=function(){return this.createLinearGradient()},y.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Z=function(N,T,B,Y,K,tt,ht,st,bt){for(var At=ft.call(this,B,Y,K,tt),jt=0;jt<At.length;jt++){var Pt=At[jt];jt===0&&(bt?L.call(this,Pt.x1+N,Pt.y1+T):W.call(this,Pt.x1+N,Pt.y1+T)),at.call(this,N,T,Pt.x2,Pt.y2,Pt.x3,Pt.y3,Pt.x4,Pt.y4)}st?Q.call(this):R.call(this,ht)},R=function(N){switch(N){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Q=function(){this.pdf.clip(),this.pdf.discardPath()},L=function(N,T){this.pdf.internal.out(e(N)+" "+r(T)+" m")},I=function(N){var T;switch(N.align){case"right":case"end":T="right";break;case"center":T="center";break;default:T="left"}var B=this.pdf.getTextDimensions(N.text),Y=lt.call(this,N.y),K=rt.call(this,Y)-B.h,tt=this.ctx.transform.applyToPoint(new c(N.x,Y)),ht=this.ctx.transform.decompose(),st=new h;st=(st=(st=st.multiply(ht.translate)).multiply(ht.skew)).multiply(ht.scale);for(var bt,At,jt,Pt=this.ctx.transform.applyToRectangle(new l(N.x,Y,B.w,B.h)),ct=st.applyToRectangle(new l(N.x,K,B.w,B.h)),D=M.call(this,ct),ce=[],re=0;re<D.length;re+=1)ce.indexOf(D[re])===-1&&ce.push(D[re]);if(V(ce),this.autoPaging)for(var Ht=ce[0],Nt=ce[ce.length-1],Bt=Ht;Bt<Nt+1;Bt++){this.pdf.setPage(Bt);var kt=Bt===1?this.posY+this.margin[0]:this.margin[0],ne=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ut=this.pdf.internal.pageSize.height-this.margin[2],ge=Ut-this.margin[0],Xt=this.pdf.internal.pageSize.width-this.margin[1],Qt=Xt-this.margin[3],Ae=Bt===1?0:ne+(Bt-2)*ge;if(this.ctx.clip_path.length!==0){var ae=this.path;bt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=G(bt,this.posX+this.margin[3],-1*Ae+kt),ot.call(this,"fill",!0),this.path=ae}var zt=G([JSON.parse(JSON.stringify(ct))],this.posX+this.margin[3],-Ae+kt+this.ctx.prevPageLastElemOffset)[0];N.scale>=.01&&(At=this.pdf.internal.getFontSize(),this.pdf.setFontSize(At*N.scale),jt=this.lineWidth,this.lineWidth=jt*N.scale);var Vt=this.autoPaging!=="text";if(Vt||zt.y+zt.h<=Ut){if(Vt||zt.y>=kt&&zt.x<=Xt){var qt=Vt?N.text:this.pdf.splitTextToSize(N.text,N.maxWidth||Xt-zt.x)[0],Ce=G([JSON.parse(JSON.stringify(Pt))],this.posX+this.margin[3],-Ae+kt+this.ctx.prevPageLastElemOffset)[0],ve=Vt&&(Bt>Ht||Bt<Nt)&&P.call(this);ve&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Qt,ge,null).clip().discardPath()),this.pdf.text(qt,Ce.x,Ce.y,{angle:N.angle,align:T,renderingMode:N.renderingMode}),ve&&this.pdf.restoreGraphicsState()}}else zt.y<Ut&&(this.ctx.prevPageLastElemOffset+=Ut-zt.y);N.scale>=.01&&(this.pdf.setFontSize(At),this.lineWidth=jt)}else N.scale>=.01&&(At=this.pdf.internal.getFontSize(),this.pdf.setFontSize(At*N.scale),jt=this.lineWidth,this.lineWidth=jt*N.scale),this.pdf.text(N.text,tt.x+this.posX,tt.y+this.posY,{angle:N.angle,align:T,renderingMode:N.renderingMode,maxWidth:N.maxWidth}),N.scale>=.01&&(this.pdf.setFontSize(At),this.lineWidth=jt)},W=function(N,T,B,Y){B=B||0,Y=Y||0,this.pdf.internal.out(e(N+B)+" "+r(T+Y)+" l")},U=function(N,T,B){return this.pdf.lines(N,T,B,null,null)},at=function(N,T,B,Y,K,tt,ht,st){this.pdf.internal.out([i(n(B+N)),i(s(Y+T)),i(n(K+N)),i(s(tt+T)),i(n(ht+N)),i(s(st+T)),"c"].join(" "))},ft=function(N,T,B,Y){for(var K=2*Math.PI,tt=Math.PI/2;T>B;)T-=K;var ht=Math.abs(B-T);ht<K&&Y&&(ht=K-ht);for(var st=[],bt=Y?-1:1,At=T;ht>1e-5;){var jt=At+bt*Math.min(ht,tt);st.push(mt.call(this,N,At,jt)),ht-=Math.abs(jt-At),At=jt}return st},mt=function(N,T,B){var Y=(B-T)/2,K=N*Math.cos(Y),tt=N*Math.sin(Y),ht=K,st=-tt,bt=ht*ht+st*st,At=bt+ht*K+st*tt,jt=4/3*(Math.sqrt(2*bt*At)-At)/(ht*tt-st*K),Pt=ht-jt*st,ct=st+jt*ht,D=Pt,ce=-ct,re=Y+T,Ht=Math.cos(re),Nt=Math.sin(re);return{x1:N*Math.cos(T),y1:N*Math.sin(T),x2:Pt*Ht-ct*Nt,y2:Pt*Nt+ct*Ht,x3:D*Ht-ce*Nt,y3:D*Nt+ce*Ht,x4:N*Math.cos(B),y4:N*Math.sin(B)}},nt=function(N){return 180*N/Math.PI},dt=function(N,T,B,Y,K,tt){var ht=N+.5*(B-N),st=T+.5*(Y-T),bt=K+.5*(B-K),At=tt+.5*(Y-tt),jt=Math.min(N,K,ht,bt),Pt=Math.max(N,K,ht,bt),ct=Math.min(T,tt,st,At),D=Math.max(T,tt,st,At);return new l(jt,ct,Pt-jt,D-ct)},St=function(N,T,B,Y,K,tt,ht,st){var bt,At,jt,Pt,ct,D,ce,re,Ht,Nt,Bt,kt,ne,Ut,ge=B-N,Xt=Y-T,Qt=K-B,Ae=tt-Y,ae=ht-K,zt=st-tt;for(At=0;At<41;At++)Ht=(ce=(jt=N+(bt=At/40)*ge)+bt*((ct=B+bt*Qt)-jt))+bt*(ct+bt*(K+bt*ae-ct)-ce),Nt=(re=(Pt=T+bt*Xt)+bt*((D=Y+bt*Ae)-Pt))+bt*(D+bt*(tt+bt*zt-D)-re),At==0?(Bt=Ht,kt=Nt,ne=Ht,Ut=Nt):(Bt=Math.min(Bt,Ht),kt=Math.min(kt,Nt),ne=Math.max(ne,Ht),Ut=Math.max(Ut,Nt));return new l(Math.round(Bt),Math.round(kt),Math.round(ne-Bt),Math.round(Ut-kt))},yt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var N,T,B=(N=this.ctx.lineDash,T=this.ctx.lineDashOffset,JSON.stringify({lineDash:N,lineDashOffset:T}));this.prevLineDash!==B&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=B)}}})(Rt.API),function(t){var i=function(c){var l,h,d,m,y,A,p,O,P,M;for(h=[],d=0,m=(c+=l="\0\0\0\0".slice(c.length%4||4)).length;m>d;d+=4)(y=(c.charCodeAt(d)<<24)+(c.charCodeAt(d+1)<<16)+(c.charCodeAt(d+2)<<8)+c.charCodeAt(d+3))!==0?(A=(y=((y=((y=((y=(y-(M=y%85))/85)-(P=y%85))/85)-(O=y%85))/85)-(p=y%85))/85)%85,h.push(A+33,p+33,O+33,P+33,M+33)):h.push(122);return function(j,G){for(var V=G;V>0;V--)j.pop()}(h,l.length),String.fromCharCode.apply(String,h)+"~>"},e=function(c){var l,h,d,m,y,A=String,p="length",O=255,P="charCodeAt",M="slice",j="replace";for(c[M](-2),c=c[M](0,-2)[j](/\s/g,"")[j]("z","!!!!!"),d=[],m=0,y=(c+=l="uuuuu"[M](c[p]%5||5))[p];y>m;m+=5)h=52200625*(c[P](m)-33)+614125*(c[P](m+1)-33)+7225*(c[P](m+2)-33)+85*(c[P](m+3)-33)+(c[P](m+4)-33),d.push(O&h>>24,O&h>>16,O&h>>8,O&h);return function(G,V){for(var z=V;z>0;z--)G.pop()}(d,l[p]),A.fromCharCode.apply(A,d)},r=function(c){return c.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},n=function(c){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((c=c.replace(/\s/g,"")).indexOf(">")!==-1&&(c=c.substr(0,c.indexOf(">"))),c.length%2&&(c+="0"),l.test(c)===!1)return"";for(var h="",d=0;d<c.length;d+=2)h+=String.fromCharCode("0x"+(c[d]+c[d+1]));return h},s=function(c){for(var l=new Uint8Array(c.length),h=c.length;h--;)l[h]=c.charCodeAt(h);return(l=Ql(l)).reduce(function(d,m){return d+String.fromCharCode(m)},"")};t.processDataByFilters=function(c,l){var h=0,d=c||"",m=[];for(typeof(l=l||[])=="string"&&(l=[l]),h=0;h<l.length;h+=1)switch(l[h]){case"ASCII85Decode":case"/ASCII85Decode":d=e(d),m.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":d=i(d),m.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":d=n(d),m.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":d=r(d),m.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":d=s(d),m.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[h]+'" is not implemented')}return{data:d,reverseChain:m.reverse().join(" ")}}}(Rt.API),function(t){t.loadFile=function(i,e,r){return function(n,s,c){s=s!==!1,c=typeof c=="function"?c:function(){};var l=void 0;try{l=function(h,d,m){var y=new XMLHttpRequest,A=0,p=function(O){var P=O.length,M=[],j=String.fromCharCode;for(A=0;A<P;A+=1)M.push(j(255&O.charCodeAt(A)));return M.join("")};if(y.open("GET",h,!d),y.overrideMimeType("text/plain; charset=x-user-defined"),d===!1&&(y.onload=function(){y.status===200?m(p(this.responseText)):m(void 0)}),y.send(null),d&&y.status===200)return p(y.responseText)}(n,s,c)}catch{}return l}(i,e,r)},t.loadImageFile=t.loadFile}(Rt.API),function(t){function i(){return($t.html2canvas?Promise.resolve($t.html2canvas):xl(()=>import("./html2canvas.esm-CBrSDip1.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function e(){return($t.DOMPurify?Promise.resolve($t.DOMPurify):xl(()=>import("./purify.es-BFmuJLeH.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var r=function(l){var h=Ne(l);return h==="undefined"?"undefined":h==="string"||l instanceof String?"string":h==="number"||l instanceof Number?"number":h==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":h==="object"?"object":"unknown"},n=function(l,h){var d=document.createElement(l);for(var m in h.className&&(d.className=h.className),h.innerHTML&&h.dompurify&&(d.innerHTML=h.dompurify.sanitize(h.innerHTML)),h.style)d.style[m]=h.style[m];return d},s=function l(h,d){for(var m=h.nodeType===3?document.createTextNode(h.nodeValue):h.cloneNode(!1),y=h.firstChild;y;y=y.nextSibling)d!==!0&&y.nodeType===1&&y.nodeName==="SCRIPT"||m.appendChild(l(y,d));return h.nodeType===1&&(h.nodeName==="CANVAS"?(m.width=h.width,m.height=h.height,m.getContext("2d").drawImage(h,0,0)):h.nodeName!=="TEXTAREA"&&h.nodeName!=="SELECT"||(m.value=h.value),m.addEventListener("load",function(){m.scrollTop=h.scrollTop,m.scrollLeft=h.scrollLeft},!0)),m},c=function l(h){var d=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),m=l.convert(Promise.resolve(),d);return(m=m.setProgress(1,l,1,[l])).set(h)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(l,h){return l.__proto__=h||c.prototype,l},c.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"}},c.prototype.from=function(l,h){return this.then(function(){switch(h=h||function(d){switch(r(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(l),h){case"string":return this.then(e).then(function(d){return this.set({src:n("div",{innerHTML:l,dompurify:d})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},c.prototype.to=function(l){switch(l){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.")}},c.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 l={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},h=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);h.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(h),this.prop.container.firstChild.appendChild(n("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"})},c.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(i).then(function(h){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,h(this.prop.container,d)}).then(function(h){(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)})},c.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(i).then(function(h){var d=this.opt.jsPDF,m=this.opt.fontFaces,y=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,A=Object.assign({async:!0,allowTaint:!0,scale:y,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 A.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=m,m)for(var p=0;p<m.length;++p){var O=m[p],P=O.src.find(function(M){return M.format==="truetype"});P&&d.addFont(P.url,O.ref.name,O.ref.style)}return A.windowHeight=A.windowHeight||0,A.windowHeight=A.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):A.windowHeight,d.context2d.save(!0),h(this.prop.container,A)}).then(function(h){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)})},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},c.prototype.output=function(l,h,d){return(d=d||"pdf").toLowerCase()==="img"||d.toLowerCase()==="image"?this.outputImg(l,h):this.outputPdf(l,h)},c.prototype.outputPdf=function(l,h){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,h)})},c.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){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 "'+l+'" is not supported.'}})},c.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},c.prototype.set=function(l){if(r(l)!=="object")return this;var h=Object.keys(l||{}).map(function(d){if(d in c.template.prop)return function(){this.prop[d]=l[d]};switch(d){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[d]=l[d]}}},this);return this.then(function(){return this.thenList(h)})},c.prototype.get=function(l,h){return this.then(function(){var d=l in c.template.prop?this.prop[l]:this.opt[l];return h?h(d):d})},c.prototype.setMargin=function(l){return this.then(function(){switch(r(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},c.prototype.setPageSize=function(l){function h(d,m){return Math.floor(d*m/72*96)}return this.then(function(){(l=l||Rt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:h(l.inner.width,l.k),height:h(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},c.prototype.setProgress=function(l,h,d,m){return l!=null&&(this.progress.val=l),h!=null&&(this.progress.state=h),d!=null&&(this.progress.n=d),m!=null&&(this.progress.stack=m),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(l,h,d,m){return this.setProgress(l?this.progress.val+l:null,h||null,d?this.progress.n+d:null,m?this.progress.stack.concat(m):null)},c.prototype.then=function(l,h){var d=this;return this.thenCore(l,h,function(m,y){return d.updateProgress(null,null,1,[m]),Promise.prototype.then.call(this,function(A){return d.updateProgress(null,m),A}).then(m,y).then(function(A){return d.updateProgress(1),A})})},c.prototype.thenCore=function(l,h,d){d=d||Promise.prototype.then;var m=this;l&&(l=l.bind(m)),h&&(h=h.bind(m));var y=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?m:c.convert(Object.assign({},m),Promise.prototype),A=d.call(y,l,h);return c.convert(A,m.__proto__)},c.prototype.thenExternal=function(l,h){return Promise.prototype.then.call(this,l,h)},c.prototype.thenList=function(l){var h=this;return l.forEach(function(d){h=h.thenCore(d)}),h},c.prototype.catch=function(l){l&&(l=l.bind(this));var h=Promise.prototype.catch.call(this,l);return c.convert(h,this)},c.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},c.prototype.error=function(l){return this.then(function(){throw new Error(l)})},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,Rt.getPageSize=function(l,h,d){if(Ne(l)==="object"){var m=l;l=m.orientation,h=m.unit||h,d=m.format||d}h=h||"mm",d=d||"a4",l=(""+(l||"P")).toLowerCase();var y,A=(""+d).toLowerCase(),p={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(h){case"pt":y=1;break;case"mm":y=72/25.4;break;case"cm":y=72/2.54;break;case"in":y=72;break;case"px":y=.75;break;case"pc":case"em":y=12;break;case"ex":y=6;break;default:throw"Invalid unit: "+h}var O,P=0,M=0;if(p.hasOwnProperty(A))P=p[A][1]/y,M=p[A][0]/y;else try{P=d[1],M=d[0]}catch{throw new Error("Invalid format: "+d)}if(l==="p"||l==="portrait")l="p",M>P&&(O=M,M=P,P=O);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",P>M&&(O=M,M=P,P=O)}return{width:M,height:P,unit:h,k:y,orientation:l}},t.html=function(l,h){(h=h||{}).callback=h.callback||function(){},h.html2canvas=h.html2canvas||{},h.html2canvas.canvas=h.html2canvas.canvas||this.canvas,h.jsPDF=h.jsPDF||this,h.fontFaces=h.fontFaces?h.fontFaces.map(Yl):null;var d=new c(h);return h.worker?d:d.from(l).doCallback()}}(Rt.API),Rt.API.addJS=function(t){return Ou=t,this.internal.events.subscribe("postPutResources",function(){wo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(wo+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Iu=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ou+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){wo!==void 0&&Iu!==void 0&&this.internal.out("/Names <</JavaScript "+wo+" 0 R>>")}),this},function(t){var i;t.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=e.outline.render().split(/\r\n/),s=0;s<n.length;s++){var c=n[s],l=r.exec(c);if(l!=null){var h=l[1];e.internal.newObjectDeferredBegin(h,!1)}e.internal.write(c)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,m=[];for(s=0;s<d;s++){var y=e.internal.newObject();m.push(y);var A=e.internal.getPageInfo(s+1);e.internal.write("<< /D["+A.objId+" 0 R /XYZ null null null]>> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),s=0;s<m.length;s++)e.internal.write("(page_"+(s+1)+")"+m[s]+" 0 R");e.internal.write(" ] >>","endobj"),i=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+i+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,n,s){var c={title:n,options:s,children:[]};return r==null&&(r=this.root),r.children.push(c),c},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var n=0;n<r.children.length;n++)this.genIds_r(r.children[n])},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},e.outline.renderItems=function(r){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s<r.children.length;s++){var c=r.children[s];this.objStart(c),this.line("/Title "+this.makeString(c.title)),this.line("/Parent "+this.makeRef(r)),s>0&&this.line("/Prev "+this.makeRef(r.children[s-1])),s<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[s+1])),c.children.length>0&&(this.line("/First "+this.makeRef(c.children[0])),this.line("/Last "+this.makeRef(c.children[c.children.length-1])));var l=this.count=this.count_r({count:0},c);if(l>0&&this.line("/Count "+l),c.options&&c.options.pageNumber){var h=e.internal.getPageInfo(c.options.pageNumber);this.line("/Dest ["+h.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var d=0;d<r.children.length;d++)this.renderItems(r.children[d])},e.outline.line=function(r){this.ctx.val+=r+`\r
120`},e.outline.makeRef=function(r){return r.id+" 0 R"},e.outline.makeString=function(r){return"("+e.internal.pdfEscape(r)+")"},e.outline.objStart=function(r){this.ctx.val+=`\r
121`+r.id+` 0 obj\r
122<<\r
123`},e.outline.objEnd=function(){this.ctx.val+=`>> \r
124endobj\r
125`},e.outline.count_r=function(r,n){for(var s=0;s<n.children.length;s++)r.count++,this.count_r(r,n.children[s]);return r.count}}])}(Rt.API),function(t){var i=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,r,n,s,c,l){var h,d=this.decode.DCT_DECODE,m=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=c||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,h=function(y){for(var A,p=256*y.charCodeAt(4)+y.charCodeAt(5),O=y.length,P={width:0,height:0,numcomponents:1},M=4;M<O;M+=2){if(M+=p,i.indexOf(y.charCodeAt(M+1))!==-1){A=256*y.charCodeAt(M+5)+y.charCodeAt(M+6),P={width:256*y.charCodeAt(M+7)+y.charCodeAt(M+8),height:A,numcomponents:y.charCodeAt(M+9)};break}p=256*y.charCodeAt(M+2)+y.charCodeAt(M+3)}return P}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),h.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}m={data:e,width:h.width,height:h.height,colorSpace:l,bitsPerComponent:8,filter:d,index:r,alias:n}}return m}}(Rt.API),Rt.API.processPNG=function(t,i,e,r){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var n,s=R5(t,{checkCrc:!0}),c=s.width,l=s.height,h=s.channels,d=s.palette,m=s.depth;n=d&&h===1?function(rt){for(var Z=rt.width,R=rt.height,Q=rt.data,L=rt.palette,I=rt.depth,W=!1,U=[],at=[],ft=void 0,mt=!1,nt=0,dt=0;dt<L.length;dt++){var St=jh(L[dt],4),yt=St[0],N=St[1],T=St[2],B=St[3];U.push(yt,N,T),B!=null&&(B===0?(nt++,at.length<1&&at.push(dt)):B<255&&(mt=!0))}if(mt||nt>1){W=!0,at=void 0;var Y=Z*R;ft=new Uint8Array(Y);for(var K=new DataView(Q.buffer),tt=0;tt<Y;tt++){var ht=Gl(K,tt,I),st=jh(L[ht],4)[3];ft[tt]=st}}return{colorSpace:"Indexed",colorsPerPixel:1,colorBytes:Q,alphaBytes:ft,needSMask:W,palette:U,mask:at}}(s):h===2||h===4?function(rt){for(var Z=rt.data,R=rt.width,Q=rt.height,L=rt.channels,I=rt.depth,W=L===2?"DeviceGray":"DeviceRGB",U=L-1,at=R*Q,ft=U,mt=at*ft,nt=1*at,dt=Math.ceil(mt*I/8),St=Math.ceil(nt*I/8),yt=new Uint8Array(dt),N=new Uint8Array(St),T=new DataView(Z.buffer),B=new DataView(yt.buffer),Y=new DataView(N.buffer),K=!1,tt=0;tt<at;tt++){for(var ht=tt*L,st=0;st<ft;st++)Hu(B,Gl(T,ht+st,I),tt*ft+st,I);var bt=Gl(T,ht+ft,I);bt<(1<<I)-1&&(K=!0),Hu(Y,bt,1*tt,I)}return{colorSpace:W,colorsPerPixel:U,colorBytes:yt,alphaBytes:N,needSMask:K}}(s):function(rt){var Z=rt.data,R=rt.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:R,colorsPerPixel:R==="DeviceGray"?1:3,colorBytes:Z instanceof Uint8Array?Z:new Uint8Array(Z.buffer),needSMask:!1}}(s);var y,A,p,O=n,P=O.colorSpace,M=O.colorsPerPixel,j=O.colorBytes,G=O.alphaBytes,V=O.needSMask,z=O.palette,ot=O.mask,lt=null;return r!==Rt.API.image_compression.NONE&&typeof Ql=="function"?(lt=function(rt){var Z;switch(rt){case Rt.API.image_compression.FAST:Z=11;break;case Rt.API.image_compression.MEDIUM:Z=13;break;case Rt.API.image_compression.SLOW:Z=14;break;default:Z=12}return Z}(r),y=this.decode.FLATE_DECODE,A="/Predictor ".concat(lt," "),t=Ru(j,c*M,M,r),V&&(p=Ru(G,c,1,r))):(y=void 0,A="",t=j,V&&(p=G)),A+="/Colors ".concat(M," /BitsPerComponent ").concat(m," /Columns ").concat(c),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:e,data:t,index:i,filter:y,decodeParameters:A,transparency:ot,palette:z,sMask:p,predictor:lt,width:c,height:l,bitsPerComponent:m,colorSpace:P}}},function(t){t.processGIF89A=function(i,e,r,n){var s=new ap(i),c=s.width,l=s.height,h=[];s.decodeAndBlitFrameRGBA(0,h);var d={data:h,width:c,height:l},m=new $l(100).encode(d,100);return t.processJPEG.call(this,m,e,r,n)},t.processGIF87A=t.processGIF89A}(Rt.API),mr.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 t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var i=0;i<t;i++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0);this.palette[i]={red:n,green:r,blue:e,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},mr.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,i=this.width*this.height*4;this.data=new Uint8Array(i),this[t]()}catch(e){Pe.log("bit decode error:"+e)}},mr.prototype.bit1=function(){var t,i=Math.ceil(this.width/8),e=i%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<i;n++)for(var s=this.datav.getUint8(this.pos++,!0),c=r*this.width*4+8*n*4,l=0;l<8&&8*n+l<this.width;l++){var h=this.palette[s>>7-l&1];this.data[c+4*l]=h.blue,this.data[c+4*l+1]=h.green,this.data[c+4*l+2]=h.red,this.data[c+4*l+3]=255}e!==0&&(this.pos+=4-e)}},mr.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),i=t%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<t;n++){var s=this.datav.getUint8(this.pos++,!0),c=r*this.width*4+2*n*4,l=s>>4,h=15&s,d=this.palette[l];if(this.data[c]=d.blue,this.data[c+1]=d.green,this.data[c+2]=d.red,this.data[c+3]=255,2*n+1>=this.width)break;d=this.palette[h],this.data[c+4]=d.blue,this.data[c+4+1]=d.green,this.data[c+4+2]=d.red,this.data[c+4+3]=255}i!==0&&(this.pos+=4-i)}},mr.prototype.bit8=function(){for(var t=this.width%4,i=this.height-1;i>=0;i--){for(var e=this.bottom_up?i:this.height-1-i,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*r;if(n<this.palette.length){var c=this.palette[n];this.data[s]=c.red,this.data[s+1]=c.green,this.data[s+2]=c.blue,this.data[s+3]=255}else this.data[s]=255,this.data[s+1]=255,this.data[s+2]=255,this.data[s+3]=255}t!==0&&(this.pos+=4-t)}},mr.prototype.bit15=function(){for(var t=this.width%3,i=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var c=(s&i)/i*255|0,l=(s>>5&i)/i*255|0,h=(s>>10&i)/i*255|0,d=s>>15?255:0,m=r*this.width*4+4*n;this.data[m]=h,this.data[m+1]=l,this.data[m+2]=c,this.data[m+3]=d}this.pos+=t}},mr.prototype.bit16=function(){for(var t=this.width%3,i=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,s=0;s<this.width;s++){var c=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(c&i)/i*255|0,h=(c>>5&e)/e*255|0,d=(c>>11)/i*255|0,m=n*this.width*4+4*s;this.data[m]=d,this.data[m+1]=h,this.data[m+2]=l,this.data[m+3]=255}this.pos+=t}},mr.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),c=i*this.width*4+4*e;this.data[c]=s,this.data[c+1]=n,this.data[c+2]=r,this.data[c+3]=255}this.pos+=this.width%4}},mr.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var i=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),l=i*this.width*4+4*e;this.data[l]=s,this.data[l+1]=n,this.data[l+2]=r,this.data[l+3]=c}},mr.prototype.getData=function(){return this.data},function(t){t.processBMP=function(i,e,r,n){var s=new mr(i,!1),c=s.width,l=s.height,h={data:s.getData(),width:c,height:l},d=new $l(100).encode(h,100);return t.processJPEG.call(this,d,e,r,n)}}(Rt.API),Yu.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(i,e,r,n){var s=new Yu(i),c=s.width,l=s.height,h={data:s.getData(),width:c,height:l},d=new $l(100).encode(h,100);return t.processJPEG.call(this,d,e,r,n)}}(Rt.API),Rt.API.processRGBA=function(t,i,e){for(var r=t.data,n=r.length,s=new Uint8Array(n/4*3),c=new Uint8Array(n/4),l=0,h=0,d=0;d<n;d+=4){var m=r[d],y=r[d+1],A=r[d+2],p=r[d+3];s[l++]=m,s[l++]=y,s[l++]=A,c[h++]=p}var O=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(c),data:O,index:i,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Rt.API.setLanguage=function(t){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:"Rh
125aeto-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"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,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},_a=Rt.API,xo=_a.getCharWidthsArray=function(t,i){var e,r,n=(i=i||{}).font||this.internal.getFont(),s=i.fontSize||this.internal.getFontSize(),c=i.charSpace||this.internal.getCharSpace(),l=i.widths?i.widths:n.metadata.Unicode.widths,h=l.fof?l.fof:1,d=i.kerning?i.kerning:n.metadata.Unicode.kerning,m=d.fof?d.fof:1,y=i.doKerning!==!1,A=0,p=t.length,O=0,P=l[0]||h,M=[];for(e=0;e<p;e++)r=t.charCodeAt(e),typeof n.metadata.widthOfString=="function"?M.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+c*(1e3/s)||0)/1e3):(A=y&&Ne(d[r])==="object"&&!isNaN(parseInt(d[r][O],10))?d[r][O]/m:0,M.push((l[r]||P)/h+A)),O=r;return M},Tu=_a.getStringUnitWidth=function(t,i){var e=(i=i||{}).fontSize||this.internal.getFontSize(),r=i.font||this.internal.getFont(),n=i.charSpace||this.internal.getCharSpace();return _a.processArabic&&(t=_a.processArabic(t)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(t,e,n)/e:xo.apply(this,arguments).reduce(function(s,c){return s+c},0)},Du=function(t,i,e,r){for(var n=[],s=0,c=t.length,l=0;s!==c&&l+i[s]<e;)l+=i[s],s++;n.push(t.slice(0,s));var h=s;for(l=0;s!==c;)l+i[s]>r&&(n.push(t.slice(h,s)),l=0,h=s),l+=i[s],s++;return h!==s&&n.push(t.slice(h,s)),n},Mu=function(t,i,e){e||(e={});var r,n,s,c,l,h,d,m=[],y=[m],A=e.textIndent||0,p=0,O=0,P=t.split(" "),M=xo.apply(this,[" ",e])[0];if(h=e.lineIndent===-1?P[0].length+2:e.lineIndent||0){var j=Array(h).join(" "),G=[];P.map(function(z){(z=z.split(/\s*\n/)).length>1?G=G.concat(z.map(function(ot,lt){return(lt&&ot.length?`
126`:"")+ot})):G.push(z[0])}),P=G,h=Tu.apply(this,[j,e])}for(s=0,c=P.length;s<c;s++){var V=0;if(r=P[s],h&&r[0]==`
127`&&(r=r.substr(1),V=1),A+p+(O=(n=xo.apply(this,[r,e])).reduce(function(z,ot){return z+ot},0))>i||V){if(O>i){for(l=Du.apply(this,[r,n,i-(A+p),i]),m.push(l.shift()),m=[l.pop()];l.length;)y.push([l.shift()]);O=n.slice(r.length-(m[0]?m[0].length:0)).reduce(function(z,ot){return z+ot},0)}else m=[r];y.push(m),A=O+h,p=M}else m.push(r),A+=p+O,p=M}return d=h?function(z,ot){return(ot?j:"")+z.join(" ")}:function(z){return z.join(" ")},y.map(d)},_a.splitTextToSize=function(t,i,e){var r,n=(e=e||{}).fontSize||this.internal.getFontSize(),s=(function(m){if(m.widths&&m.kerning)return{widths:m.widths,kerning:m.kerning};var y=this.internal.getFont(m.fontName,m.fontStyle),A="Unicode";return y.metadata[A]?{widths:y.metadata[A].widths||{0:1},kerning:y.metadata[A].kerning||{}}:{font:y.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var c=1*this.internal.scaleFactor*i/n;s.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/n:0,s.lineIndent=e.lineIndent;var l,h,d=[];for(l=0,h=r.length;l<h;l++)d=d.concat(Mu.apply(this,[r[l],c,s]));return d},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var i="0123456789abcdef",e="klmnopqrstuvwxyz",r={},n={},s=0;s<16;s++)r[e[s]]=i[s],n[i[s]]=e[s];var c=function(A){return"0x"+parseInt(A,10).toString(16)},l=t.__fontmetrics__.compress=function(A){var p,O,P,M,j=["{"];for(var G in A){if(p=A[G],isNaN(parseInt(G,10))?O="'"+G+"'":(G=parseInt(G,10),O=(O=c(G).slice(2)).slice(0,-1)+n[O.slice(-1)]),typeof p=="number")p<0?(P=c(p).slice(3),M="-"):(P=c(p).slice(2),M=""),P=M+P.slice(0,-1)+n[P.slice(-1)];
vendor: 3,672 bytes, line 127
127else{if(Ne(p)!=="object")throw new Error("Don't know what to do with value type "+Ne(p)+".");P=l(p)}j.push(O+P)}return j.push("}"),j.join("")},h=t.__fontmetrics__.uncompress=function(A){if(typeof A!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,O,P,M,j={},G=1,V=j,z=[],ot="",lt="",rt=A.length-1,Z=1;Z<rt;Z+=1)(M=A[Z])=="'"?p?(P=p.join(""),p=void 0):p=[]:p?p.push(M):M=="{"?(z.push([V,P]),V={},P=void 0):M=="}"?((O=z.pop())[0][O[1]]=V,P=void 0,V=O[0]):M=="-"?G=-1:P===void 0?r.hasOwnProperty(M)?(ot+=r[M],P=parseInt(ot,16)*G,G=1,ot=""):ot+=M:r.hasOwnProperty(M)?(lt+=r[M],V[P]=parseInt(lt,16)*G,G=1,P=void 0,lt=""):lt+=M;return j},d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:h("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},m={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},y={Unicode:{"Courier-Oblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":h("{'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":h("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
127dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'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:h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":h("{'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:h("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:h("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
127dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'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":h("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
127dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'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:h("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":h("{'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}
127fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":h("{'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":h("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
127dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'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}}}")}};t.events.push(["addFont",function(A){var p=A.font,O=y.Unicode[p.postScriptName];O&&(p.metadata.Unicode={},p.metadata.Unicode.widths=O.widths,p.metadata.Unicode.kerning=O.kerning);var P=m.Unicode[p.postScriptName];P&&(p.metadata.Unicode.encoding=P,p.encoding=P.codePages[0])}])}(Rt.API),function(t){var i=function(e){for(var r=e.length,n=new Uint8Array(r),s=0;s<r;s++)n[s]=e.charCodeAt(s);return n};t.API.events.push(["addFont",function(e){var r=void 0,n=e.font,s=e.instance;if(!n.isStandardFont){if(s===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(r=s.existsFileInVFS(n.postScriptName)===!1?s.loadFile(n.postScriptName):s.getFileFromVFS(n.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");(function(c,l){l=/^\x00\x01\x00\x00/.test(l)?i(l):i(Ao(l)),c.metadata=t.API.TTFFont.open(l),c.metadata.Unicode=c.metadata.Unicode||{encoding:{},kerning:{},widths:[]},c.metadata.glyIdsUsed=[0]})(n,r)}}])}(Rt),Rt.API.addSvgAsImage=function(t,i,e,r,n,s,c,l){if(isNaN(i)||isNaN(e))throw Pe.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(n))throw Pe.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=r,h.height=n;var d=h.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,h.width,h.height);var m={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},y=this;return($t.canvg?Promise.resolve($t.canvg):xl(()=>import("./index.es-C8Ms-IwH.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))).catch(function(A){return Promise.reject(new Error("Could not load canvg: "+A))}).then(function(A){return A.default?A.default:A}).then(function(A){return A.fromString(d,t,m)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(A){return A.render(m)}).then(function(){y.addImage(h.toDataURL("image/jpeg",1),i,e,r,n,c,l)})},Rt.API.putTotalPages=function(t){var i,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(i=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(i=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var n=0;n<this.internal.pages[r].length;n++)this.internal.pages[r][n]=this.internal.pages[r][n].replace(i,e);return this},Rt.API.viewerPreferences=function(t,i){var e;t=t||{},i=i||!1;var r,n,s,c={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}},l=Object.keys(c),h=[],d=0,m=0,y=0;function A(O,P){var M,j=!1;for(M=0;M<O.length;M+=1)O[M]===P&&(j=!0);return j}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(c)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||i===!0){var p=l.length;for(y=0;y<p;
vendor: 40,878 bytes, lines 127-155
127y+=1)e[l[y]].value=e[l[y]].defaultValue,e[l[y]].explicitSet=!1}if(Ne(t)==="object"){for(n in t)if(s=t[n],A(l,n)&&s!==void 0){if(e[n].type==="boolean"&&typeof s=="boolean")e[n].value=s;else if(e[n].type==="name"&&A(e[n].valueSet,s))e[n].value=s;else if(e[n].type==="integer"&&Number.isInteger(s))e[n].value=s;else if(e[n].type==="array"){for(d=0;d<s.length;d+=1)if(r=!0,s[d].length===1&&typeof s[d][0]=="number")h.push(String(s[d]-1));else if(s[d].length>1){for(m=0;m<s[d].length;m+=1)typeof s[d][m]!="number"&&(r=!1);r===!0&&h.push([s[d][0]-1,s[d][1]-1].join(" "))}e[n].value="["+h.join(" ")+"]"}else e[n].value=e[n].defaultValue;e[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var O,P=[];for(O in e)e[O].explicitSet===!0&&(e[O].type==="name"?P.push("/"+O+" /"+e[O].value):P.push("/"+O+" "+e[O].value));P.length!==0&&this.internal.write(`/ViewerPreferences
128<<
129`+P.join(`
130`)+`
131>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},function(t){var i=function(){var r='<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>',n=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),s=unescape(encodeURIComponent(r)),c=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),l=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),h=unescape(encodeURIComponent("</x:xmpmeta>")),d=s.length+c.length+l.length+n.length+h.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+d+" >>"),this.internal.write("stream"),this.internal.write(n+s+c+l+h),this.internal.write("endstream"),this.internal.write("endobj")},e=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(r,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",e),this.internal.events.subscribe("postPutResources",i)),this}}(Rt.API),function(t){var i=t.API,e=i.pdfEscape16=function(s,c){for(var l,h=c.metadata.Unicode.widths,d=["","0","00","000","0000"],m=[""],y=0,A=s.length;y<A;++y){if(l=c.metadata.characterToGlyph(s.charCodeAt(y)),c.metadata.glyIdsUsed.push(l),c.metadata.toUnicode[l]=s.charCodeAt(y),h.indexOf(l)==-1&&(h.push(l),h.push([parseInt(c.metadata.widthOfGlyph(l),10)])),l=="0")return m.join("");l=l.toString(16),m.push(d[4-l.length],l)}return m.join("")},r=function(s){var c,l,h,d,m,y,A;for(m=`/CIDInit /ProcSet findresource begin
13212 dict begin
133begincmap
134/CIDSystemInfo <<
135  /Registry (Adobe)
136  /Ordering (UCS)
137  /Supplement 0
138>> def
139/CMapName /Adobe-Identity-UCS def
140/CMapType 2 def
1411 begincodespacerange
142<0000><ffff>
143endcodespacerange`,h=[],y=0,A=(l=Object.keys(s).sort(function(p,O){return p-O})).length;y<A;y++)c=l[y],h.length>=100&&(m+=`
144`+h.length+` beginbfchar
145`+h.join(`
146`)+`
147endbfchar`,h=[]),s[c]!==void 0&&s[c]!==null&&typeof s[c].toString=="function"&&(d=("0000"+s[c].toString(16)).slice(-4),c=("0000"+(+c).toString(16)).slice(-4),h.push("<"+c+"><"+d+">"));return h.length&&(m+=`
148`+h.length+` beginbfchar
149`+h.join(`
150`)+`
151endbfchar
152`),m+`endcmap
153CMapName currentdict /CMap defineresource pop
154end
155end`};i.events.push(["putFont",function(s){(function(c){var l=c.font,h=c.out,d=c.newObject,m=c.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="Identity-H"){for(var y=l.metadata.Unicode.widths,A=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),p="",O=0;O<A.length;O++)p+=String.fromCharCode(A[O]);var P=d();m({data:p,addLength1:!0,objectId:P}),h("endobj");var M=d();m({data:r(l.metadata.toUnicode),addLength1:!0,objectId:M}),h("endobj");var j=d();h("<<"),h("/Type /FontDescriptor"),h("/FontName /"+Sa(l.fontName)),h("/FontFile2 "+P+" 0 R"),h("/FontBBox "+t.API.PDFObject.convert(l.metadata.bbox)),h("/Flags "+l.metadata.flags),h("/StemV "+l.metadata.stemV),h("/ItalicAngle "+l.metadata.italicAngle),h("/Ascent "+l.metadata.ascender),h("/Descent "+l.metadata.decender),h("/CapHeight "+l.metadata.capHeight),h(">>"),h("endobj");var G=d();h("<<"),h("/Type /Font"),h("/BaseFont /"+Sa(l.fontName)),h("/FontDescriptor "+j+" 0 R"),h("/W "+t.API.PDFObject.convert(y)),h("/CIDToGIDMap /Identity"),h("/DW 1000"),h("/Subtype /CIDFontType2"),h("/CIDSystemInfo"),h("<<"),h("/Supplement 0"),h("/Registry (Adobe)"),h("/Ordering ("+l.encoding+")"),h(">>"),h(">>"),h("endobj"),l.objectNumber=d(),h("<<"),h("/Type /Font"),h("/Subtype /Type0"),h("/ToUnicode "+M+" 0 R"),h("/BaseFont /"+Sa(l.fontName)),h("/Encoding /"+l.encoding),h("/DescendantFonts ["+G+" 0 R]"),h(">>"),h("endobj"),l.isAlreadyPutted=!0}})(s)}]),i.events.push(["putFont",function(s){(function(c){var l=c.font,h=c.out,d=c.newObject,m=c.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var y=l.metadata.rawData,A="",p=0;p<y.length;p++)A+=String.fromCharCode(y[p]);var O=d();m({data:A,addLength1:!0,objectId:O}),h("endobj");var P=d();m({data:r(l.metadata.toUnicode),addLength1:!0,objectId:P}),h("endobj");var M=d();h("<<"),h("/Descent "+l.metadata.decender),h("/CapHeight "+l.metadata.capHeight),h("/StemV "+l.metadata.stemV),h("/Type /FontDescriptor"),h("/FontFile2 "+O+" 0 R"),h("/Flags 96"),h("/FontBBox "+t.API.PDFObject.convert(l.metadata.bbox)),h("/FontName /"+Sa(l.fontName)),h("/ItalicAngle "+l.metadata.italicAngle),h("/Ascent "+l.metadata.ascender),h(">>"),h("endobj"),l.objectNumber=d();for(var j=0;j<l.metadata.hmtx.widths.length;j++)l.metadata.hmtx.widths[j]=parseInt(l.metadata.hmtx.widths[j]*(1e3/l.metadata.head.unitsPerEm));h("<</Subtype/TrueType/Type/Font/ToUnicode "+P+" 0 R/BaseFont/"+Sa(l.fontName)+"/FontDescriptor "+M+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),h("endobj"),l.isAlreadyPutted=!0}})(s)}]);var n=function(s){var c,l=s.text||"",h=s.x,d=s.y,m=s.options||{},y=s.mutex||{},A=y.pdfEscape,p=y.activeFontKey,O=y.fonts,P=p,M="",j=0,G="",V=O[P].encoding;if(O[P].encoding!=="Identity-H")return{text:l,x:h,y:d,options:m,mutex:y};for(G=l,P=p,Array.isArray(l)&&(G=l[0]),j=0;j<G.length;j+=1)O[P].metadata.hasOwnProperty("cmap")&&(c=O[P].metadata.cmap.unicode.codeMap[G[j].charCodeAt(0)]),c||G[j].charCodeAt(0)<256&&O[P].metadata.hasOwnProperty("Unicode")?M+=G[j]:M+="";var z="";return parseInt(P.slice(1))<14||V==="WinAnsiEncoding"?z=A(M,P).split("").map(function(ot){return ot.charCodeAt(0).toString(16)}).join(""):V==="Identity-H"&&(z=e(M,O[P])),y.isHex=!0,{text:z,x:h,y:d,options:m,mutex:y}};i.events.push(["postProcessText",function(s){var c=s.text||"",l=[],h={text:c,x:s.x,y:s.y,options:s.options,mutex:s.mutex};if(Array.isArray(c)){var d=0;for(d=0;d<c.length;d+=1)Array.isArray(c[d])&&c[d].length===3?l.push([n(Object.assign({},h,{text:c[d][0]})).text,c[d][1],c[d][2]]):l.push(n(Object.assign({},h,{text:c[d]})).text);s.text=l}else s.text=n(Object.assign({},h,{text:c})).text}])}(Rt),function(t){var i=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(e){return i.call(this),this.internal.vFS[e]!==void 0},t.addFileToVFS=function(e,r){return i.call(this),this.internal.vFS[e]=r,this},t.getFileFromVFS=function(e){return i.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}}(Rt.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(r){var n,s,c,l,h,d,m,y=i,A=[[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]],p=[[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]],O={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},P={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},M=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],j=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)$/),G=!1,V=0;this.__bidiEngine__={};var z=function(L){var I=L.charCodeAt(),W=I>>8,U=P[W];return U!==void 0?y[256*U+(255&I)]:W===252||W===253?"AL":j.test(W)?"L":W===8?"R":"N"},ot=function(L){for(var I,W=0;W<L.length;W++){if((I=z(L.charAt(W)))==="L")return!1;if(I==="R")return!0}return!1},lt=function(L,I,W,U){var at,ft,mt,nt,dt=I[U];switch(dt){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":G=!1;break;case"N":case"AN":break;case"EN":G&&(dt="AN");break;case"AL":G=!0,dt="R";break;case"WS":case"BN":dt="N";break;case"CS":U<1||U+1>=I.length||(at=W[U-1])!=="EN"&&at!=="AN"||(ft=I[U+1])!=="EN"&&ft!=="AN"?dt="N":G&&(ft="AN"),dt=ft===at?ft:"N";break;case"ES":dt=(at=U>0?W[U-1]:"B")==="EN"&&U+1<I.length&&I[U+1]==="EN"?"EN":"N";break;case"ET":if(U>0&&W[U-1]==="EN"){dt="EN";break}if(G){dt="N";break}for(mt=U+1,nt=I.length;mt<nt&&I[mt]==="ET";)mt++;dt=mt<nt&&I[mt]==="EN"?"EN":"N";break;case"NSM":if(c&&!l){for(nt=I.length,mt=U+1;mt<nt&&I[mt]==="NSM";)mt++;if(mt<nt){var St=L[U],yt=St>=1425&&St<=2303||St===64286;if(at=I[mt],yt&&(at==="R"||at==="AL")){dt="R";break}}}dt=U<1||(at=I[U-1])==="B"?"N":W[U-1];break;case"B":G=!1,n=!0,dt=V;break;case"S":s=!0,dt="N"}return dt},rt=function(L,I,W){var U=L.split("");return W&&Z(U,W,{hiLevel:V}),U.reverse(),I&&I.reverse(),U.join("")},Z=function(L,I,W){var U,at,ft,mt,nt,dt=-1,St=L.length,yt=0,N=[],T=V?p:A,B=[];for(G=!1,n=!1,s=!1,at=0;at<St;at++)B[at]=z(L[at]);for(ft=0;ft<St;ft++){if(nt=yt,N[ft]=lt(L,B,N,ft),U=240&(yt=T[nt][O[N[ft]]]),yt&=15,I[ft]=mt=T[yt][5],U>0)if(U===16){for(at=dt;at<ft;at++)I[at]=1;dt=-1}else dt=-1;if(T[yt][6])dt===-1&&(dt=ft);else if(dt>-1){for(at=dt;at<ft;at++)I[at]=mt;dt=-1}B[ft]==="B"&&(I[ft]=0),W.hiLevel|=mt}s&&function(Y,K,tt){for(var ht=0;ht<tt;ht++)if(Y[ht]==="S"){K[ht]=V;for(var st=ht-1;st>=0&&Y[st]==="WS";st--)K[st]=V}}(B,I,St)},R=function(L,I,W,U,at){if(!(at.hiLevel<L)){if(L===1&&V===1&&!n)return I.reverse(),void(W&&W.reverse());for(var ft,mt,nt,dt,St=I.length,yt=0;yt<St;){if(U[yt]>=L){for(nt=yt+1;nt<St&&U[nt]>=L;)nt++;for(dt=yt,mt=nt-1;dt<mt;dt++,mt--)ft=I[dt],I[dt]=I[mt],I[mt]=ft,W&&(ft=W[dt],W[dt]=W[mt],W[mt]=ft);yt=nt}yt++}}},Q=function(L,I,W){var U=L.split(""),at={hiLevel:V};return W||(W=[]),Z(U,W,at),function(ft,mt,nt){if(nt.hiLevel!==0&&m)for(var dt,St=0;St<ft.length;St++)mt[St]===1&&(dt=M.indexOf(ft[St]))>=0&&(ft[St]=M[dt+1])}(U,W,at),R(2,U,I,W,at),R(1,U,I,W,at),U.join("")};return this.__bidiEngine__.doBidiReorder=function(L,I,W){if(function(at,ft){if(ft)for(var mt=0;mt<at.length;mt++)ft[mt]=mt;l===void 0&&(l=ot(at)),d===void 0&&(d=ot(at))}(L,I),c||!h||d)if(c&&h&&l^d)V=l?1:0,L=rt(L,I,W);else if(!c&&h&&d)V=l?1:0,L=Q(L,I,W),L=rt(L,I);else if(!c||l||h||d){if(c&&!h&&l^d)L=rt(L,I),l?(V=0,L=Q(L,I,W)):(V=1,L=Q(L,I,W),L=rt(L,I));else if(c&&l&&!h&&d)V=1,L=Q(L,I,W),L=rt(L,I);else if(!c&&!h&&l^d){var U=m;l?(V=1,L=Q(L,I,W),V=0,m=!1,L=Q(L,I,W),m=U):(V=0,L=Q(L,I,W),L=rt(L,I),V=1,m=!1,L=Q(L,I,W),m=U,L=rt(L,I))}}else V=0,L=Q(L,I,W);else V=l?1:0,L=Q(L,I,W);return L},this.__bidiEngine__.setOptions=function(L){L&&(c=L.isInputVisual,h=L.isOutputVisual,l=L.isInputRtl,d=L.isOutputRtl,m=L.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var i=["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"],e=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(r){var n=r.text;r.x,r.y;var s=r.options||{};r.mutex,s.lang;var c=[];if(s.isInputVisual=typeof s.isInputVisual!="boolean"||s.isInputVisual,e.setOptions(s),Object.prototype.toString.call(n)==="[object Array]"){var l=0;for(c=[],l=0;l<n.length;l+=1)Object.prototype.toString.call(n[l])==="[object Array]"?c.push([e.doBidiReorder(n[l][0]),n[l][1],n[l][2]]):c.push([e.doBidiReorder(n[l])]);r.text=c}else r.text=e.doBidiReorder(n);e.setOptions({isInputVisual:!0})}])}(Rt),Rt.API.TTFFont=function(){function t(i){var e;if(this.rawData=i,e=this.contents=new Ln(i),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new xp(this),this.registerTTF()}return t.open=function(i){return new t(i)},t.prototype.parse=function(){return this.directory=new sp(this.contents),this.head=new lp(this),this.name=new dp(this),this.cmap=new ud(this),this.toUnicode={},this.hhea=new cp(this),this.maxp=new pp(this),this.hmtx=new mp(this),this.post=new up(this),this.os2=new hp(this),this.loca=new wp(this),this.glyf=new gp(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]},t.prototype.registerTTF=function(){var i,e,r,n,s;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var c,l,h,d;for(d=[],c=0,l=(h=this.bbox).length;c<l;c++)i=h[c],d.push(Math.round(i*this.scaleFactor));return d}).call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(e=n>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+r)):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=(s=this.familyClass)===1||s===2||s===3||s===4||s===5||s===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")},t.prototype.characterToGlyph=function(i){var e;return((e=this.cmap.unicode)!=null?e.codeMap[i]:void 0)||0},t.prototype.widthOfGlyph=function(i){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(i).advance*e},t.prototype.widthOfString=function(i,e,r){var n,s,c,l;for(c=0,s=0,l=(i=""+i).length;0<=l?s<l:s>l;s=0<=l?++s:--s)n=i.charCodeAt(s),c+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/e)||0;return c*(e/1e3)},t.prototype.lineHeight=function(i,e){var r;return e==null&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*i},t}();var br,Ln=function(){function t(i){this.data=i??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(i){return this.data[this.pos++]=i},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(i){return this.writeByte(i>>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},t.prototype.readInt32=function(){var i;return(i=this.readUInt32())>=2147483648?i-4294967296:i},t.prototype.writeInt32=function(i){return i<0&&(i+=4294967296),this.writeUInt32(i)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(i){return this.writeByte(i>>8&255),this.writeByte(255&i)},t.prototype.readInt16=function(){var i;return(i=this.readUInt16())>=32768?i-65536:i},t.prototype.writeInt16=function(i){return i<0&&(i+=65536),this.writeUInt16(i)},t.prototype.readString=function(i){var e,r;for(r=[],e=0;0<=i?e<i:e>i;e=0<=i?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(i){var e,r,n;for(n=[],e=0,r=i.length;0<=r?e<r:e>r;e=0<=r?++e:--e)n.push(this.writeByte(i.charCodeAt(e)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(i){return this.writeInt16(i)},t.prototype.readLongLong=function(){var i,e,r,n,s,c,l,h;return i=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),s=this.readByte(),c=this.readByte(),l=this.readByte(),h=this.readByte(),128&i?-1*(72057594037927940*(255^i)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^s)+65536*(255^c)+256*(255^l)+(255^h)+1):72057594037927940*i+281474976710656*e+1099511627776*r+4294967296*n+16777216*s+65536*c+256*l+h},t.prototype.writeLongLong=function(i){var e,r;return e=Math.floor(i/4294967296),r=4294967295&i,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(i){return this.writeInt32(i)},t.prototype.read=function(i){var e,r;for(e=[],r=0;0<=i?r<i:r>i;r=0<=i?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(i){var e,r,n,s;for(s=[],r=0,n=i.length;r<n;r++)e=i[r],s.push(this.writeByte(e));return s},t}(),sp=function(){var t;function i(e){var r,n,s;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,s=this.tableCount;0<=s?n<s:n>s;n=0<=s?++n:--n)r={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[r.tag]=r}return i.prototype.encode=function(e){var r,n,s,c,l,h,d,m,y,A,p,O,P;for(P in p=Object.keys(e).length,h=Math.log(2),y=16*Math.floor(Math.log(p)/h),c=Math.floor(y/h),m=16*p-y,(n=new Ln).writeInt(this.scalarType),n.writeShort(p),n.writeShort(y),n.writeShort(c),n.writeShort(m),s=16*p,d=n.pos+s,l=null,O=[],e)for(A=e[P],n.writeString(P),n.writeInt(t(A)),n.writeInt(d),n.writeInt(A.length),O=O.concat(A),P==="head"&&(l=d),d+=A.length;d%4;)O.push(0),d++;return n.write(O),r=2981146554-t(n.data),n.pos=l+8,n.writeUInt32(r),n.data},t=function(e){var r,n,s,c;for(e=fd.call(e);e.length%4;)e.push(0);for(s=new Ln(e),n=0,r=0,c=e.length;r<c;r=r+=4)n+=s.readUInt32();return 4294967295&n},i}(),op={}.hasOwnProperty,Dr=function(t,i){for(var e in i)op.call(i,e)&&(t[e]=i[e]);function r(){this.constructor=t}return r.prototype=i.prototype,t.prototype=new r,t.__super__=i.prototype,t};br=function(){function t(i){var e;this.file=i,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var lp=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Dr(t,br),t.prototype.tag="head",t.prototype.parse=function(i){return i.pos=this.offset,this.version=i.readInt(),this.revision=i.readInt(),this.checkSumAdjustment=i.readInt(),this.magicNumber=i.readInt(),this.flags=i.readShort(),this.unitsPerEm=i.readShort(),this.created=i.readLongLong(),this.modified=i.readLongLong(),this.xMin=i.readShort(),this.yMin=i.readShort(),this.xMax=i.readShort(),this.yMax=i.readShort(),this.macStyle=i.readShort(),this.lowestRecPPEM=i.readShort(),this.fontDirectionHint=i.readShort(),this.indexToLocFormat=i.readShort(),this.glyphDataFormat=i.readShort()},t.prototype.encode=function(i){var e;return(e=new Ln).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(i),e.writeShort(this.glyphDataFormat),e.data},t}(),Vu=function(){function t(i,e){var r,n,s,c,l,h,d,m,y,A,p,O,P,M,j,G,V;switch(this.platformID=i.readUInt16(),this.encodingID=i.readShort(),this.offset=e+i.readInt(),y=i.pos,i.pos=this.offset,this.format=i.readUInt16(),this.length=i.readUInt16(),this.language=i.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(h=0;h<256;++h)this.codeMap[h]=i.readByte();break;case 4:for(p=i.readUInt16(),A=p/2,i.pos+=6,s=function(){var z,ot;for(ot=[],h=z=0;0<=A?z<A:z>A;h=0<=A?++z:--z)ot.push(i.readUInt16());return ot}(),i.pos+=2,P=function(){var z,ot;for(ot=[],h=z=0;0<=A?z<A:z>A;h=0<=A?++z:--z)ot.push(i.readUInt16());return ot}(),d=function(){var z,ot;for(ot=[],h=z=0;0<=A?z<A:z>A;h=0<=A?++z:--z)ot.push(i.readUInt16());return ot}(),m=function(){var z,ot;for(ot=[],h=z=0;0<=A?z<A:z>A;h=0<=A?++z:--z)ot.push(i.readUInt16());return ot}(),n=(this.length-i.pos+this.offset)/2,l=function(){var z,ot;for(ot=[],h=z=0;0<=n?z<n:z>n;h=0<=n?++z:--z)ot.push(i.readUInt16());return ot}(),h=j=0,V=s.length;j<V;h=++j)for(M=s[h],r=G=O=P[h];O<=M?G<=M:G>=M;r=O<=M?++G:--G)m[h]===0?c=r+d[h]:(c=l[m[h]/2+(r-O)-(A-h)]||0)!==0&&(c+=d[h]),this.codeMap[r]=65535&c}i.pos=y}return t.encode=function(i,e){var r,n,s,c,l,h,d,m,y,A,p,O,P,M,j,G,V,z,ot,lt,rt,Z,R,Q,L,I,W,U,at,ft,mt,nt,dt,St,yt,N,T,B,Y,K,tt,ht,st,bt,At,jt;switch(U=new Ln,c=Object.keys(i).sort(function(Pt,ct){return Pt-ct}),e){case"macroman":for(P=0,M=function(){var Pt=[];for(O=0;O<256;++O)Pt.push(0);return Pt}(),G={0:0},s={},at=0,dt=c.length;at<dt;at++)G[st=i[n=c[at]]]==null&&(G[st]=++P),s[n]={old:i[n],new:G[i[n]]},M[n]=G[i[n]];return U.writeUInt16(1),U.writeUInt16(0),U.writeUInt32(12),U.writeUInt16(0),U.writeUInt16(262),U.writeUInt16(0),U.write(M),{charMap:s,subtable:U.data,maxGlyphID:P+1};case"unicode":for(I=[],y=[],V=0,G={},r={},j=d=null,ft=0,St=c.length;ft<St;ft++)G[ot=i[n=c[ft]]]==null&&(G[ot]=++V),r[n]={old:ot,new:G[ot]},l=G[ot]-n,j!=null&&l===d||(j&&y.push(j),I.push(n),d=l),j=n;for(j&&y.push(j),y.push(65535),I.push(65535),Q=2*(R=I.length),Z=2*Math.pow(Math.log(R)/Math.LN2,2),A=Math.log(Z/2)/Math.LN2,rt=2*R-Z,h=[],lt=[],p=[],O=mt=0,yt=I.length;mt<yt;O=++mt){if(L=I[O],m=y[O],L===65535){h.push(0),lt.push(0);break}if(L-(W=r[L].new)>=32768)for(h.push(0),lt.push(2*(p.length+R-O)),n=nt=L;L<=m?nt<=m:nt>=m;n=L<=m?++nt:--nt)p.push(r[n].new);else h.push(W-L),lt.push(0)}for(U.writeUInt16(3),U.writeUInt16(1),U.writeUInt32(12),U.writeUInt16(4),U.writeUInt16(16+8*R+2*p.length),U.writeUInt16(0),U.writeUInt16(Q),U.writeUInt16(Z),U.writeUInt16(A),U.writeUInt16(rt),tt=0,N=y.length;tt<N;tt++)n=y[tt],U.writeUInt16(n);for(U.writeUInt16(0),ht=0,T=I.length;ht<T;ht++)n=I[ht],U.writeUInt16(n);for(bt=0,B=h.length;bt<B;bt++)l=h[bt],U.writeUInt16(l);for(At=0,Y=lt.length;At<Y;At++)z=lt[At],U.writeUInt16(z);for(jt=0,K=p.length;jt<K;jt++)P=p[jt],U.writeUInt16(P);return{charMap:r,subtable:U.data,maxGlyphID:V+1}}},t}(),ud=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Dr(t,br),t.prototype.tag="cmap",t.prototype.parse=function(i){var e,r,n;for(i.pos=this.offset,this.version=i.readUInt16(),n=i.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)e=new Vu(i,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},t.encode=function(i,e){var r,n;return e==null&&(e="macroman"),r=Vu.encode(i,e),(n=new Ln).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},t}(),cp=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Dr(t,br),t.prototype.tag="hhea",t.prototype.parse=function(i){return i.pos=this.offset,this.version=i.readInt(),this.ascender=i.readShort(),this.decender=i.readShort(),this.lineGap=i.readShort(),this.advanceWidthMax=i.readShort(),this.minLeftSideBearing=i.readShort(),this.minRightSideBearing=i.readShort(),this.xMaxExtent=i.readShort(),this.caretSlopeRise=i.readShort(),this.caretSlopeRun=i.readShort(),this.caretOffset=i.readShort(),i.pos+=8,this.metricDataFormat=i.readShort(),this.numberOfMetrics=i.readUInt16()},t}(),hp=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Dr(t,br),t.prototype.tag="OS/2",t.prototype.parse=function(i){if(i.pos=this.offset,this.version=i.readUInt16(),this.averageCharWidth=i.readShort(),this.weightClass=i.readUInt16(),this.widthClass=i.readUInt16(),this.type=i.readShort(),this.ySubscriptXSize=i.readShort(),this.ySubscriptYSize=i.readShort(),this.ySubscriptXOffset=i.readShort(),this.ySubscriptYOffset=i.readShort(),this.ySuperscriptXSize=i.readShort(),this.ySuperscriptYSize=i.readShort(),this.ySuperscriptXOffset=i.readShort(),this.ySuperscriptYOffset=i.readShort(),this.yStrikeoutSize=i.readShort(),this.yStrikeoutPosition=i.readShort(),this.familyClass=i.readShort(),this.panose=function(){var e,r;for(r=[],e=0;e<10;++e)r.push(i.readByte());return r}(),this.charRange=function(){var e,r;for(r=[],e=0;e<4;++e)r.push(i.readInt());return r}(),this.vendorID=i.readString(4),this.selection=i.readShort(),this.firstCharIndex=i.readShort(),this.lastCharIndex=i.readShort(),this.version>0&&(this.ascent=i.readShort(),this.descent=i.readShort(),this.lineGap=i.readShort(),this.winAscent=i.readShort(),this.winDescent=i.readShort(),this.codePageRange=function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(i.readInt());return r}(),this.version>1))return this.xHeight=i.readShort(),this.capHeight=i.readShort(),this.defaultChar=i.readShort(),this.breakChar=i.readShort(),this.maxContext=i.readShort()},t}(),up=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Dr(t,br),t.prototype.tag="post",t.prototype.parse=function(i){var e,r,n;switch(i.pos=this.offset,this.format=i.readInt(),this.italicAngle=i.readInt(),this.underlinePosition=i.readShort(),this.underlineThickness=i.readShort(),this.isFixedPitch=i.readInt(),this.minMemType42=i.readInt(),this.maxMemType42=i.readInt(),this.minMemType1=i.readInt(),this.maxMemType1=i.readInt(),this.format){case 65536:case 196608:break;case 131072:var s;for(r=i.readUInt16(),this.glyphNameIndex=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)this.glyphNameIndex.push(i.readUInt16());for(this.names=[],n=[];i.pos<this.offset+this.length;)e=i.readByte(),n.push(this.names.push(i.readString(e)));return n;case 151552:return r=i.readUInt16(),this.offsets=i.read(r);case 262144:return this.map=(function(){var c,l,h;for(h=[],s=c=0,l=this.file.maxp.numGlyphs;0<=l?c<l:c>l;s=0<=l?++c:--c)h.push(i.readUInt32());return h}).call(this)}},t}(),fp=function(t,i){this.raw=t,this.length=t.length,this.platformID=i.platformID,this.encodingID=i.encodingID,this.languageID=i.languageID},dp=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Dr(t,br),t.prototype.tag="name",t.prototype.parse=function(i){var e,r,n,s,c,l,h,d,m,y,A;for(i.pos=this.offset,i.readShort(),e=i.readShort(),l=i.readShort(),r=[],s=0;0<=e?s<e:s>e;s=0<=e?++s:--s)r.push({platformID:i.readShort(),encodingID:i.readShort(),languageID:i.readShort(),nameID:i.readShort(),length:i.readShort(),offset:this.offset+l+i.readShort()});for(h={},s=m=0,y=r.length;m<y;s=++m)n=r[s],i.pos=n.offset,d=i.readString(n.length),c=new fp(d,n),h[A=n.nameID]==null&&(h[A]=[]),h[n.nameID].push(c);this.strings=h,this.copyright=h[0],this.fontFamily=h[1],this.fontSubfamily=h[2],this.uniqueSubfamily=h[3],this.fontName=h[4],this.version=h[5];try{this.postscriptName=h[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=h[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=h[7],this.manufacturer=h[8],this.designer=h[9],this.description=h[10],this.vendorUrl=h[11],this.designerUrl=h[12],this.license=h[13],this.licenseUrl=h[14],this.preferredFamily=h[15],this.preferredSubfamily=h[17],this.compatibleFull=h[18],this.sampleText=h[19]},t}(),pp=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Dr(t,br),t.prototype.tag="maxp",t.prototype.parse=function(i){return i.pos=this.offset,this.version=i.readInt(),this.numGlyphs=i.readUInt16(),this.maxPoints=i.readUInt16(),this.maxContours=i.readUInt16(),this.maxCompositePoints=i.readUInt16(),this.maxComponentContours=i.readUInt16(),this.maxZones=i.readUInt16(),this.maxTwilightPoints=i.readUInt16(),this.maxStorage=i.readUInt16(),this.maxFunctionDefs=i.readUInt16(),this.maxInstructionDefs=i.readUInt16(),this.maxStackElements=i.readUInt16(),this.maxSizeOfInstructions=i.readUInt16(),this.maxComponentElements=i.readUInt16(),this.maxComponentDepth=i.readUInt16()},t}(),mp=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Dr(t,br),t.prototype.tag="hmtx",t.prototype.parse=function(i){var e,r,n,s,c,l,h;for(i.pos=this.offset,this.metrics=[],e=0,l=this.file.hhea.numberOfMetrics;0<=l?e<l:e>l;e=0<=l?++e:--e)this.metrics.push({advance:i.readUInt16(),lsb:i.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var d,m;for(m=[],e=d=0;0<=n?d<n:d>n;e=0<=n?++d:--d)m.push(i.readInt16());return m}(),this.widths=(function(){var d,m,y,A;for(A=[],d=0,m=(y=this.metrics).length;d<m;d++)s=y[d],A.push(s.advance);return A}).call(this),r=this.widths[this.widths.length-1],h=[],e=c=0;0<=n?c<n:c>n;e=0<=n?++c:--c)h.push(this.widths.push(r));return h},t.prototype.forGlyph=function(i){return i in this.metrics?this.metrics[i]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[i-this.metrics.length]}},t}(),fd=[].slice,gp=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Dr(t,br),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(i){var e,r,n,s,c,l,h,d,m,y;return i in this.cache?this.cache[i]:(s=this.file.loca,e=this.file.contents,r=s.indexOf(i),(n=s.lengthOf(i))===0?this.cache[i]=null:(e.pos=this.offset+r,c=(l=new Ln(e.read(n))).readShort(),d=l.readShort(),y=l.readShort(),h=l.readShort(),m=l.readShort(),this.cache[i]=c===-1?new bp(l,d,y,h,m):new vp(l,c,d,y,h,m),this.cache[i]))},t.prototype.encode=function(i,e,r){var n,s,c,l,h;for(c=[],s=[],l=0,h=e.length;l<h;l++)n=i[e[l]],s.push(c.length),n&&(c=c.concat(n.encode(r)));return s.push(c.length),{table:c,offsets:s}},t}(),vp=function(){function t(i,e,r,n,s,c){this.raw=i,this.numberOfContours=e,this.xMin=r,this.yMin=n,this.xMax=s,this.yMax=c,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),bp=function(){function t(i,e,r,n,s){var c,l;for(this.raw=i,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=s,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],c=this.raw;l=c.readShort(),this.glyphOffsets.push(c.pos),this.glyphIDs.push(c.readUInt16()),32&l;)c.pos+=1&l?4:2,128&l?c.pos+=8:64&l?c.pos+=4:8&l&&(c.pos+=2)}return t.prototype.encode=function(){var i,e,r;for(e=new Ln(fd.call(this.raw.data)),i=0,r=this.glyphIDs.length;i<r;++i)e.pos=this.glyphOffsets[i];return e.data},t}(),wp=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Dr(t,br),t.prototype.tag="loca",t.prototype.parse=function(i){var e,r;return i.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?(function(){var n,s;for(s=[],r=0,n=this.length;r<n;r+=2)s.push(2*i.readUInt16());return s}).call(this):(function(){var n,s;for(s=[],r=0,n=this.length;r<n;r+=4)s.push(i.readUInt32());return s}).call(this)},t.prototype.indexOf=function(i){return this.offsets[i]},t.prototype.lengthOf=function(i){return this.offsets[i+1]-this.offsets[i]}
155,t.prototype.encode=function(i,e){for(var r=new Uint32Array(this.offsets.length),n=0,s=0,c=0;c<r.length;++c)if(r[c]=n,s<e.length&&e[s]==c){++s,r[c]=n;var l=this.offsets[c],h=this.offsets[c+1]-l;h>0&&(n+=h)}for(var d=new Array(4*r.length),m=0;m<r.length;++m)d[4*m+3]=255&r[m],d[4*m+2]=(65280&r[m])>>8,d[4*m+1]=(16711680&r[m])>>16,d[4*m]=(4278190080&r[m])>>24;return d},t}(),xp=function(){function t(i){this.font=i,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var i,e,r,n,s;for(e in n=this.font.cmap.tables[0].codeMap,i={},s=this.subset)r=s[e],i[e]=n[r];return i},t.prototype.glyphsFor=function(i){var e,r,n,s,c,l,h;for(n={},c=0,l=i.length;c<l;c++)n[s=i[c]]=this.font.glyf.glyphFor(s);for(s in e=[],n)(r=n[s])!=null&&r.compound&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(s in h=this.glyphsFor(e))r=h[s],n[s]=r;return n},t.prototype.encode=function(i,e){var r,n,s,c,l,h,d,m,y,A,p,O,P,M,j;for(n in r=ud.encode(this.generateCmap(),"unicode"),c=this.glyphsFor(i),p={0:0},j=r.charMap)p[(h=j[n]).old]=h.new;for(O in A=r.maxGlyphID,c)O in p||(p[O]=A++);return m=function(G){var V,z;for(V in z={},G)z[G[V]]=V;return z}(p),y=Object.keys(m).sort(function(G,V){return G-V}),P=function(){var G,V,z;for(z=[],G=0,V=y.length;G<V;G++)l=y[G],z.push(m[l]);return z}(),s=this.font.glyf.encode(c,P,p),d=this.font.loca.encode(s.offsets,P),M={cmap:this.font.cmap.raw(),glyf:s.table,loca:d,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(e)},this.font.os2.exists&&(M["OS/2"]=this.font.os2.raw()),this.font.directory.encode(M)},t}();Rt.API.PDFObject=function(){var t;function i(){}return t=function(e,r){return(Array(r+1).join("0")+e).slice(-r)},i.convert=function(e){var r,n,s,c;if(Array.isArray(e))return"["+function(){var l,h,d;for(d=[],l=0,h=e.length;l<h;l++)r=e[l],d.push(i.convert(r));return d}().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e!=null&&e.isString)return"("+e+")";if(e instanceof Date)return"(D:"+t(e.getUTCFullYear(),4)+t(e.getUTCMonth(),2)+t(e.getUTCDate(),2)+t(e.getUTCHours(),2)+t(e.getUTCMinutes(),2)+t(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(n in s=["<<"],e)c=e[n],s.push("/"+n+" "+i.convert(c));return s.push(">>"),s.join(`
156`)}return""+e},i}();class yp{constructor(i){me(this,"doc");me(this,"pageWidth");me(this,"pageHeight");me(this,"currentY",0);this.options=i,this.doc=new Rt("p","mm","a4"),this.pageWidth=this.doc.internal.pageSize.getWidth(),this.pageHeight=this.doc.internal.pageSize.getHeight()}async generate(){this.addHeader(),this.addExecutiveSummary(),this.addScoreOverview(),this.addPerformanceMetrics(),this.addMozAnalysis(),this.addLoadingExperience(),this.addDetailedOpportunities(),this.addTechnologyStack(),this.addSEOAnalysis(),this.addAccessibilityAnalysis(),this.addBestPracticesAnalysis(),this.addSecurityAnalysis(),this.addDiagnostics(),this.addPassedAudits(),this.addEnvironmentInfo(),this.addRecommendations(),this.addFooterWithCTA();const e=`Website-Audit-${new URL(this.options.auditData.url).hostname}-${new Date().toISOString().split("T")[0]}.pdf`;this.doc.save(e)}addHeader(){this.doc.setFillColor(76,29,149),this.doc.rect(0,0,this.pageWidth,70,"F"),this.doc.setTextColor(255,255,255),this.doc.setFontSize(20),this.doc.setFont("helvetica","bold"),this.doc.text("MOJO",25,35),this.doc.setFontSize(28),this.doc.setFont("helvetica","bold"),this.doc.text("Website Performance Report",70,35),this.doc.setFontSize(14),this.doc.setFont("helvetica","normal"),this.doc.text("Professional Digital Audit by MOJO Digital Agency",70,50),this.doc.setDrawColor(255,255,255),this.doc.setLineWidth(1),this.doc.line(25,60,this.pageWidth-25,60),this.currentY=90}addExecutiveSummary(){this.addSectionHeader("Executive Summary","1F4CA"),this.doc.setFillColor(248,250,252),this.doc.rect(20,this.currentY-5,this.pageWidth-40,80,"F"),this.doc.setFillColor(76,29,149),this.doc.rect(20,this.currentY-5,4,80,"F");const i=`This comprehensive digital audit analyzes your website across critical performance metrics. Our analysis identifies strategic opportunities to enhance your online presence and drive business growth.
157
158Key Performance Indicators:
159• Website Performance: ${this.options.auditData.performance.score}
159/100 - ${this.getScoreDescription(this.options.auditData.performance.score)}
160• Search Engine Optimization: ${this.options.auditData.seo.score}/100 - ${this.getScoreDescription(this.options.auditData.seo.score)}
161• User Accessibility: ${this.options.auditData.accessibility.score}/100 - ${this.getScoreDescription(this.options.auditData.accessibility.score)}
162• Security Standards: ${this.options.auditData.security.score}/100 - ${this.getScoreDescription(this.options.auditData.security.score)}
163
164This report provides actionable insights to optimize your digital performance and competitive position.`;this.doc.setFontSize(11),this.doc.setFont("helvetica","normal"),this.doc.setTextColor(45,55,72);const e=this.doc.splitTextToSize(i,this.pageWidth-70);this.doc.text(e,30,this.currentY+5),this.currentY+=90}addScoreOverview(){var n,s;this.addSectionHeader("Performance Dashboard","1F4C8");const i=[{name:"Performance",score:this.options.auditData.performance.score,color:this.getScoreColor(this.options.auditData.performance.score)},{name:"SEO",score:this.options.auditData.seo.score,color:this.getScoreColor(this.options.auditData.seo.score)}
164,{name:"Accessibility",score:this.options.auditData.accessibility.score,color:this.getScoreColor(this.options.auditData.accessibility.score)},{name:"Best Practices",score:((n=this.options.auditData.bestPractices)==null?void 0:n.score)||85,color:this.getScoreColor(((s=this.options.auditData.bestPractices)==null?void 0:s.score)||85)},{name:"Security",score:this.options.auditData.security.score,color:this.getScoreColor(this.options.auditData.security.score)}],e=25,r=(this.pageWidth-60)/5;i.forEach((c,l)=>{const h=e+l*r;this.doc.setFillColor(255,255,255),this.doc.rect(h,this.currentY,r-10,50,"F"),this.doc.setDrawColor(230,230,230),this.doc.setLineWidth(.5),this.doc.rect(h,this.currentY,r-10,50,"S"),this.doc.setFillColor(c.color[0],c.color[1],c.color[2]),this.doc.rect(h,this.currentY,r-10,8,"F"),this.doc.setTextColor(c.color[0],c.color[1],c.color[2]),this.doc.setFontSize(24),this.doc.setFont("helvetica","bold"),this.doc.text(c.score.toString(),h+(r-10)/2,this.currentY+28,{align:"center"}),this.doc.setTextColor(100,100,100),this.doc.setFontSize(9),this.doc.setFont("helvetica","normal"),this.doc.text(c.name.toUpperCase(),h+(r-10)/2,this.currentY+42,{align:"center"})}),this.currentY+=70}addPerformanceMetrics(){this.addSectionHeader("Core Web Vitals","26A1");const i=[{label:"First Contentful Paint",value:`${this.options.auditData.performance.metrics.fcp}s`,benchmark:"< 1.8s"},{label:"Largest Contentful Paint",value:`${this.options.auditData.performance.metrics.lcp}s`,benchmark:"< 2.5s"},{label:"Cumulative Layout Shift",value:this.options.auditData.performance.metrics.cls.toString(),benchmark:"< 0.1"},{label:"First Input Delay",value:`${this.options.auditData.performance.metrics.fid}ms`,benchmark:"< 100ms"},{label:"Speed Index",value:`${this.options.auditData.performance.metrics.si}s`,benchmark:"< 3.4s"},{label:"Time to Interactive",value:`${this.options.auditData.performance.metrics.tti}s`,benchmark:"< 3.8s"}];this.doc.setFillColor(248,250,252),this.doc.rect(25,this.currentY,this.pageWidth-50,8,"F"),this.doc.setFontSize(9),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(60,60,60),this.doc.text("Metric",30,this.currentY+5),this.doc.text("Current",100,this.currentY+5),this.doc.text("Benchmark",140,this.currentY+5),this.currentY+=12,i.forEach((e,r)=>{const n=this.currentY+r*8;this.doc.setFontSize(8),this.doc.setFont("helvetica","normal"),this.doc.setTextColor(80,80,80),this.doc.text(e.label,30,n),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(76,29,149),this.doc.text(e.value,100,n),this.doc.setFont("helvetica","normal"),this.doc.setTextColor(120,120,120),this.doc.text(e.benchmark,140,n)}),this.currentY+=i.length*8+20}addMozAnalysis(){const i=this.options.auditData;if(!i.mozMetrics)return;this.addSectionHeader("Moz SEO Authority & Link Analysis","1F517");const e=i.mozMetrics;this.doc.setFontSize(12),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(60,60,60),this.doc.text("SEO Authority Metrics",25,this.currentY),this.currentY+=10;const r=[{label:"Domain Authority",value:`${e.urlMetrics.domain.domainAuthority}/100`,description:this.getAuthorityDescription(e.urlMetrics.domain.domainAuthority)},{label:"Page Authority",value:`${e.urlMetrics.url.pageAuthority}/100`,description:this.getAuthorityDescription(e.urlMetrics.url.pageAuthority)},{label:"Spam Score",value:`${e.urlMetrics.url.spamScore}%`,description:this.getSpamScoreDescription(e.urlMetrics.url.spamScore)}];this.doc.setFillColor(248,250,252),this.doc.rect(25,this.currentY,this.pageWidth-50,8,"F"),this.doc.setFontSize(9),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(60,60,60),this.doc.text("Metric",30,this.currentY+5),this.doc.text("Score",90,this.currentY+5),this.doc.text("Assessment",130,this.currentY+5),this.currentY+=12,r.forEach((l,h)=>{const d=this.currentY+h*8;this.doc.setFontSize(8),this.doc.setFont("helvetica","normal"),this.doc.setTextColor(80,80,80),this.doc.text(l.label,30,d),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(76,29,149),this.doc.text(l.value,90,d),this.doc.setFont("helvetica","normal"),this.doc.setTextColor(100,100,100),this.doc.text(l.description,130,d)}),this.currentY+=r.length*8+15,this.doc.setFontSize(12),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(60,60,60),this.doc.text("Backlink Profile Analysis",25,this.currentY),this.currentY+=10;const n=[{label:"Total Backlinks",value:e.linkData.totalLinks.toLocaleStr
164ing()},{label:"Linking Domains",value:e.linkData.linkingDomains.toLocaleString()},{label:"Root Domains to Page",value:e.urlMetrics.url.rootDomainsToPage.toLocaleString()},{label:"External Links to Domain",value:e.urlMetrics.domain.externalLinksToDomain.toLocaleString()}],s=25,c=(this.pageWidth-60)/2;n.forEach((l,h)=>{const d=Math.floor(h/2),m=h%2,y=s+m*c,A=this.currentY+d*25;this.doc.setFillColor(255,255,255),this.doc.rect(y,A,c-10,20,"F"),this.doc.setDrawColor(230,230,230),this.doc.setLineWidth(.5),this.doc.rect(y,A,c-10,20,"S"),this.doc.setTextColor(76,29,149),this.doc.setFontSize(12),this.doc.setFont("helvetica","bold"),this.doc.text(l.value,y+(c-10)/2,A+8,{align:"center"}),this.doc.setTextColor(100,100,100),this.doc.setFontSize(8),this.doc.setFont("helvetica","normal"),this.doc.text(l.label,y+(c-10)/2,A+16,{align:"center"})}),this.currentY+=55,e.insights&&e.insights.length>0&&(this.doc.setFontSize(12),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(60,60,60),this.doc.text("Moz SEO Insights",25,this.currentY),this.currentY+=10,e.insights.slice(0,5).forEach(l=>{const h=this.getInsightColor(l.type),d=this.getInsightIcon(l.type);this.doc.setFontSize(9),this.doc.setFont("helvetica","normal"),this.doc.setTextColor(h[0],h[1],h[2]),this.doc.text(d,30,this.currentY),this.doc.setTextColor(80,80,80);const m=this.doc.splitTextToSize(l.message,this.pageWidth-70);this.doc.text(m,38,this.currentY),this.currentY+=m.length*5+3})),this.currentY+=20}addLoadingExperience(){const i=this.options.auditData;!i.loadingExperience&&!i.originLoadingExperience||(this.addSectionHeader("Real User Experience (CrUX Data)","1F30D"),i.loadingExperience&&this.addLoadingExperienceSection("Page Loading Experience",i.loadingExperience),i.originLoadingExperience&&this.addLoadingExperienceSection("Origin Loading Experience",i.originLoadingExperience))}addLoadingExperienceSection(i,e){this.doc.setFontSize(12),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(60,60,60),this.doc.text(i,25,this.currentY),this.currentY+=8,e.overallCategory&&(this.doc.setFontSize(10),this.doc.setFont("helvetica","normal"),this.doc.text(`Overall Category: ${e.overallCategory}`,30,this.currentY),this.currentY+=6),e.metrics&&Object.keys(e.metrics).forEach(r=>{const n=e.metrics[r];this.doc.text(`${r.toUpperCase()}: ${n.median}ms (${n.category})`,30,this.currentY),this.currentY+=5}),this.currentY+=10}addDetailedOpportunities(){const i=this.options.auditData;!i.opportunities||i.opportunities.length===0||(this.addSectionHeader("Performance Opportunities","1F4C8"),i.opportunities.slice(0,8).forEach(e=>{if(this.doc.setFontSize(11),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(220,38,127),this.doc.text(e.title,25,this.currentY),this.currentY+=6,e.savings&&(e.savings.ms>0||e.savings.bytes>0)){this.doc.setFontSize(9),this.doc.setFont("helvetica","normal"),this.doc.setTextColor(100,100,100);let r="Potential savings: ";e.savings.ms>0&&(r+=`${Math.round(e.savings.ms)}ms`),e.savings.bytes>0&&(e.savings.ms>0&&(r+=", "),r+=`${Math.round(e.savings.bytes/1024)}KB`),this.doc.text(r,30,this.currentY),this.currentY+=5}if(e.description){this.doc.setFontSize(8);const r=this.doc.splitTextToSize(e.description,this.pageWidth-60);this.doc.text(r,30,this.currentY),this.currentY+=r.length*4+8}this.checkPageBreak(20)}),this.currentY+=10)}addTechnologyStack(){this.addSectionHeader("Technology Analysis","1F4BB"),[{title:"Platform",items:[this.options.auditData.technology.platform,this.options.auditData.technology.cms].filter(Boolean)},{title:"Languages",items:this.options.auditData.technology.languages},{title:"Frameworks",items:this.options.auditData.technology.frameworks},{title:"Analytics",items:this.options.auditData.technology.analytics}].forEach(e=>{if(e.items.length>0){this.doc.setFontSize(10),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(60,60,60),this.doc.text(e.title,25,this.currentY),this.currentY+=5,this.doc.setFontSize(9),this.doc.setFont("helvetica","normal"),this.doc.setTextColor(100,100,100);const r=e.items.join(", "),n=this.doc.splitTextToSize(r,this.pageWidth-60);this.doc.text(n,30,this.currentY),this.currentY+=n.length*4+8}}),this.currentY+=15}addSEOAnalysis(){this.addSectionHeader("SEO Performance","1F50D"),this.doc.setFontSize(12),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(60,60,60),this.doc.text(`Overall SEO Score: ${this.options.auditData.seo.score}/100`,25,this.currentY),this.currentY+=12;const i=this.options.auditData.seo.issues.length>0?this.options.auditData.seo.issues:this.generateSEORecommendations();this.doc.setFontSize(10),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(220,38,127),this.doc.text("SEO Analysis & Recommendations:",25,this.currentY),this.currentY+=8,this.doc.setFont("helvetica","normal"),this.doc.setTextColor(100,100,100),i.slice(0,8).forEach(e
164=>{const r=this.doc.splitTextToSize(`• ${e}`,this.pageWidth-60);this.doc.text(r,30,this.currentY),this.currentY+=r.length*5+2}),this.currentY+=15}addAccessibilityAnalysis(){this.addSectionHeader("Accessibility Analysis","267F"),this.doc.setFontSize(12),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(60,60,60),this.doc.text(`Accessibility Score: ${this.options.auditData.accessibility.score}/100`,25,this.currentY),this.currentY+=12,this.options.auditData.accessibility.issues.length>0&&(this.doc.setFontSize(10),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(220,38,127),this.doc.text("Accessibility Issues:",25,this.currentY),this.currentY+=8,this.doc.setFont("helvetica","normal"),this.doc.setTextColor(100,100,100),this.options.auditData.accessibility.issues.forEach(e=>{const r=this.doc.splitTextToSize(`• ${e}`,this.pageWidth-60);this.doc.text(r,30,this.currentY),this.currentY+=r.length*5+2}));const i=["Ensure all images have descriptive alt text","Maintain proper color contrast ratios (4.5:1 for normal text)","Use semantic HTML elements for better screen reader support","Provide keyboard navigation for all interactive elements","Add focus indicators for better usability","Include skip links for navigation","Use proper heading hierarchy (H1, H2, H3)","Ensure form labels are associated with inputs"];this.doc.setFontSize(10),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(34,197,94),this.doc.text("Accessibility Best Practices:",25,this.currentY),this.currentY+=8,this.doc.setFont("helvetica","normal"),this.doc.setTextColor(100,100,100),i.slice(0,5).forEach(e=>{const r=this.doc.splitTextToSize(`✓ ${e}`,this.pageWidth-60);this.doc.text(r,30,this.currentY),this.currentY+=r.length*5+2}),this.currentY+=15}addBestPracticesAnalysis(){var r;this.addSectionHeader("Best Practices Analysis","2705");const i=this.options.auditData;this.doc.setFontSize(12),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(60,60,60),this.doc.text(`Best Practices Score: ${((r=i.bestPractices)==null?void 0:r.score)||85}/100`,25,this.currentY),this.currentY+=12;const e=["Use HTTPS for secure data transmission","Avoid libraries with known security vulnerabilities","Use modern JavaScript features and APIs","Optimize images and use appropriate formats","Minim
164ize third-party resources","Implement proper error handling","Use efficient CSS and JavaScript","Follow progressive enhancement principles"];this.doc.setFontSize(10),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(34,197,94),this.doc.text("Web Development Best Practices:",25,this.currentY),this.currentY+=8,this.doc.setFont("helvetica","normal"),this.doc.setTextColor(100,100,100),e.slice(0,6).forEach(n=>{const s=this.doc.splitTextToSize(`✓ ${n}`,this.pageWidth-60);this.doc.text(s,30,this.currentY),this.currentY+=s.length*5+2}),this.currentY+=15}addDiagnostics(){const i=this.options.auditData;if(!i.diagnostics||i.diagnostics.length===0)return;this.addSectionHeader("Performance Diagnostics","1F50D"),i.diagnostics.filter(r=>["main-thread-tasks","network-requests","critical-request-chains","third-party-summary"].includes(r.id)).slice(0,4).forEach(r=>{if(this.doc.setFontSize(11),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(76,29,149),this.doc.text(r.title,25,this.currentY),this.currentY+=6,r.displayValue&&(this.doc.setFontSize(9),this.doc.setFont("helvetica","normal"),this.doc.setTextColor(100,100,100),this.doc.text(r.displayValue,30,this.currentY),this.currentY+=5),r.description){this.doc.setFontSize(8);const n=this.doc.splitTextToSize(r.description,this.pageWidth-60);this.doc.text(n,30,this.currentY),this.currentY+=n.length*4+8}this.checkPageBreak(20)}),this.currentY+=10}addPassedAudits(){const i=this.options.auditData;if(!i.passedAudits||i.passedAudits.length===0)return;this.addSectionHeader("Passed Audits","2705"),this.doc.setFontSize(10),this.doc.setFont("helvetica","normal"),this.doc.setTextColor(34,197,94),this.doc.text("Your website successfully passes these performance and quality checks:",25,this.currentY),this.currentY+=10,i.passedAudits.filter(r=>r.id.includes("https")||r.id.includes("image")||r.id.includes("meta")||r.id.includes("title")||r.id.includes("lang")).slice(0,8).forEach(r=>{this.doc.setFontSize(9),this.doc.setTextColor(100,100,100);const n=this.doc.splitTextToSize(`✓ ${r.title}`,this.pageWidth-60);this.doc.text(n,30,this.currentY),this.currentY+=n.length*4+2}),this.doc.setFontSize(9),this.doc.setFont("helvetica","italic"),this.doc.setTextColor(120,120,120),this.doc.text(`Total passed audits: ${i.passedAudits.length}`,25,this.currentY),this.currentY+=15}addEnvironmentInfo(){const i=this.options.auditData;if(!i.environment)return;this.addSectionHeader("Analysis Environment","2699");const e=i.environment;this.doc.setFontSize(9),this.doc.setFont("helvetica","normal"),this.doc.setTextColor(100,100,100),e.fetchTime&&(this.doc.text(`Analysis Date: ${new Date(e.fetchTime).toLocaleString()}`,25,this.currentY),this.currentY+=5),e.formFactor&&(this.doc.text(`Device Type: ${e.formFactor}`,25,this.currentY),this.currentY+=5),e.benchmarkIndex&&(this.doc.text(`Benchmark Index: ${e.benchmarkIndex}`,25,this.currentY),this.currentY+=5),e.channel&&(this.doc.text(`Analysis Tool: ${e.channel}`,25,this.currentY),this.currentY+=5),this.currentY+=15}generateSEORecommendations(){return["Optimize meta descriptions for better click-through rates","Implement structured data markup for rich snippets","Improve internal linking structure for better page authority","Add alt text to images for better accessibility and SEO","Optimize page loading speed for better user experience","Create high-quality, keyword-rich content regularly","Implement proper heading hierarchy (H1, H2, H3)","Set up Google Analytics and Search Console tracking"]}addSecurityAnalysis(){this.addSectionHeader("Security Assessment","1F6E1");const i=this.options.auditData.security.isSafe?"SECURE":"REQUIRES ATTENTION",e=this.options.auditData.security.isSafe?[34,197,94]:[239,68,68];this.doc.setFontSize(12),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(60,60,60),this.doc.text(`Security Score: ${this.options.auditData.security.score}/100`,25,this.currentY),this.doc.setTextColor(e[0],e[1],e[2]),this.doc.text(`Status: ${i}`,25,this.currentY+8),this.currentY+=25}addRecommendations(){this.addSectionHeader("Strategic Recommendations","1F4A1"),this.doc.setFontSize(9),this.doc.setFont("helvetica","normal"),this.doc.setTextColor(80,80,80),this.options.auditData.seo.recommendations.slice(0,5).forEac
164h(e=>{this.doc.text(`✓ ${e}`,25,this.currentY),this.currentY+=7}),this.currentY+=20}addFooterWithCTA(){this.doc.setFillColor(76,29,149),this.doc.rect(0,this.pageHeight-60,this.pageWidth,60,"F"),this.doc.setTextColor(255,255,255),this.doc.setFontSize(18),this.doc.setFont("helvetica","bold"),this.doc.text("Ready to Optimize Your Digital Performance?",this.pageWidth/2,this.pageHeight-42,{align:"center"}),this.doc.setFontSize(13),this.doc.setFont("helvetica","normal"),this.doc.text("Schedule your FREE strategic consultation with MOJO experts",this.pageWidth/2,this.pageHeight-28,{align:"center"}),this.doc.setFontSize(11),this.doc.setTextColor(200,200,255),this.doc.textWithLink("Visit: https://www.mojo.com.pl/contact",this.pageWidth/2,this.pageHeight-15,{url:"https://www.mojo.com.pl/contact",align:"center"}),this.doc.setFontSize(8),this.doc.setTextColor(180,180,200),this.doc.text("MOJO Digital Agency - Your Growth Partner",this.pageWidth/2,this.pageHeight-5,{align:"center"})}addSectionHeader(i,e){this.checkPageBreak(20),this.doc.setFillColor(248,250,252),this.doc.rect(20,this.currentY-2,this.pageWidth-40,12,"F"),this.doc.setFontSize(14),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(76,29,149),this.doc.text(i,25,this.currentY+6),this.currentY+=20}checkPageBreak(i){this.currentY+i>this.pageHeight-70&&(this.doc.addPage(),this.currentY=30)}getScoreColor(i){return i>=90?[34,197,94]:i>=50?[251,191,36]:[239,68,68]}getScoreDescription(i){return i>=90?"Excellent":i>=70?"Good":i>=50?"Needs Improvement":"Poor"}getAuthorityDescription(i){return i>=80?"Excellent":i>=60?"Strong":i>=40?"Moderate":i>=20?"Weak":"Very Low"}getSpamScoreDescription(i){return i<=1?"Very Low Risk":i<=3?"Low Risk":i<=7?"Moderate Risk":i<=15?"High Risk":"Very High Risk"}getInsightColor(i){switch(i){case"positive":return[34,197,94];case"warning":return[251,191,36];case"negative":return[239,68,68];default:return[100,100,100]}}getInsightIcon(i){switch(i){case"positive":return"✓";case"warning":return"⚠";case"negative":return"✗";default:return"•"}}}const _p=()=>{const[t,i]=mi.useState(""),[e,r]=mi.useState(""),[n,s]=mi.useState(""),[c,l]=mi.useState({}),[h,d]=mi.useState(!1),[m,y]=mi.useState(null),[A,p]=mi.useState(!1),[O,P]=mi.useState(""),[M,j]=mi.useState(!1),G=()=>{const lt={};return(!e.trim()||e.trim().length<2)&&(lt.name="Name is required"),(!n.trim()||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n))&&(lt.email="Valid email is required"),t.trim()||(lt.url="Website URL is required"),l(lt),Object.keys(lt).length===0},V=async lt=>{var Z;if(lt.preventDefault(),!G())return;let rt=t.trim();rt.match(/^https?:\/\//)||(rt=`https://${rt}`),i(rt),p(!0),z(),d(!0),y(null),vh("audit_started",{url:rt});try{const{data:R,error:Q}=await bh.functions.invoke("website-audit",{body:{url:rt}});if(Q)throw Q;y(R);const L=((Z=R==null?void 0:R.performance)==null?void 0:Z.score)||0;await bh.from("audit_leads").insert({url_audited:rt,visitor_email:n.trim().toLowerCase(),visitor_name:e.trim(),audit_score:L,audit_result_json:R,source_page:"audit"}),vh("audit_completed",{url:rt,score:L}),p(!1)}catch(R){console.error("Error:",R),yl.error("Failed to analyze website. Please try again."),p(!1)}finally{window.quoteInterval&&(clearInterval(window.quoteInterval),window.quoteInterval=null),d(!1)}},z=()=>{const lt=["Did you know that 75% of users judge a company's credibility based on website design? Our Web Design & Development services create stunning, conversion-focused websites that establish trust and drive results.","Your website could be losing 40% of potential customers due to slow loading times. Our Performance Optimization solutions have helped businesses increase conversions by 60% in just 3 months.","Ready to dominate Google search results? Our SEO & Content Marketing strategies have helped clients achieve #1 rankings for competitive keywords, resulting in 200%+ organic traffic growth.","Are you spending money on ads without seeing results? Our PPC & Paid Advertising experts optimize campaigns that deliver 3-5x return on ad spend for businesses like yours.","Transform browsers into buyers with our Marketplace & E‑commerce Marketing solutions. We've helped online stores increase sales by 150% through strategic optimization.","Don't let technical issues hurt your business. Our CMS Maintenance services keep your website secure, fast, and running smoothly while you focus on growing your business.","Turn one-time customers into lifelong advocates with our Loyalty Cards program. Businesses see 25-30% increase in repeat purchases within the first 6 months.","Reach customers on-the-go with our Mobile App Development services. Mobile apps can increase customer engagement by 3x compared to mobile websites.","Streamline your operations with our System Integrations. We connect your tools and automate workflows, saving businesses 15-20 hours per week on manual tasks.","Ready to generate qualified leads consistently? Our Lead Generation & Traffic solutions have helped B2B companies increase qualified leads by 400% using proven strategies."];let rt=0;P(lt[0]),j(!1);const Z=setInterval(()=>{rt=(rt+1)%lt.length,j(!0),setTimeout(()=>{P(lt[rt]),j(!1)},500)},6e3);window.quoteInterval=Z},ot=async()=>
164{if(m)try{const rt=await(await fetch("/static-images/mojo-logo.png")).blob(),Z=await new Promise(Q=>{const L=new FileReader;L.onloadend=()=>Q(L.result),L.readAsDataURL(rt)});await new yp({auditData:m,logoBase64:Z.split(",")[1]}).generate(),yl.success("Professional PDF report has been generated and downloaded.")}catch(lt){console.error("Error generating PDF:",lt),yl.error("Failed to generate PDF report. Please try again.")}};return v.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-background via-muted/20 to-background",children:[v.jsx(t1,{}),v.jsxs("main",{className:"pt-24",children:[v.jsx("div",{className:"container mx-auto px-4 py-12",children:v.jsxs("div",{className:"max-w-4xl mx-auto",children:[v.jsxs("div",{className:"text-center mb-12",children:[v.jsx("h1",{className:"text-4xl md:text-6xl font-bold mb-6 bg-gradient-to-r from-purple-600 to-pink-600 bg-clip-text text-transparent",children:"Free Website Audit"}),v.jsx("p",{className:"text-xl text-muted-foreground mb-8",children:"Get instant insights into your website's performance, SEO, and security"})]}),v.jsx("div",{className:"bg-card rounded-xl p-8 shadow-lg border mb-12",children:v.jsxs("form",{onSubmit:V,className:"space-y-5",children:[v.jsxs("div",{children:[v.jsx("label",{htmlFor:"url",className:"block text-sm font-medium mb-2",children:"Website URL *"}),v.jsx("input",{type:"text",id:"url",value:t,onChange:lt=>{i(lt.target.value),l(rt=>({...rt,url:void 0}))},placeholder:"https://example.com",className:`w-full px-4 py-3 border rounded-lg focus:outline-none focus:ring-2 focus:ring-teal-200 focus:border-teal-500 bg-background ${c.url?"border-red-400":"border-input"}`}),c.url&&v.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.url})]}),v.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[v.jsxs("div",{children:[v.jsx("label",{htmlFor:"visitorName",className:"block text-sm font-medium mb-2",children:"Your Name *"}),v.jsx("input",{type:"text",id:"visitorName",value:e,onChange:lt=>{r(lt.target.value),l(rt=>({...rt,name:void 0}))},placeholder:"John Smith",className:`w-full px-4 py-3 border rounded-lg focus:outline-none focus:ring-2 focus:ring-teal-200 focus:border-teal-500 bg-background ${c.name?"border-red-400":"border-input"}`}),c.name&&v.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.name})]}),v.jsxs("div",{children:[v.jsx("label",{htmlFor:"visitorEmail",className:"block text-sm font-medium mb-2",children:"Your Email *"}),v.jsx("input",{type:"email",id:"visitorEmail",value:n,onChange:lt=>{s(lt.target.value),l(rt=>({...rt,email:void 0}))},placeholder:"[email protected]",className:`w-full px-4 py-3 border rounded-lg focus:outline-none focus:ring-2 focus:ring-teal-200 focus:border-teal-500 bg-background ${c.email?"border-red-400":"border-input"}`}),c.email&&v.jsx("p",{className:"text-red-500 text-xs mt-1",children:c.email})]})]}),v.jsx("p",{className:"text-xs text-gray-500",children:"We'll send your full audit report to your email along with actionable improvement tips."}),v.jsx(Er,{type:"submit",disabled:h,className:"w-full py-3 text-lg bg-gradient-to-r from-teal-600 to-blue-600 hover:from-teal-700 hover:to-blue-700 text-white",children:h?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-white mr-2"}),"Analyzing..."]}):"Start Free Audit"})]})}),m&&v.jsx(w1,{data:m,onDownloadPDF:ot,onBookConsultation:()=>window.location.href="/contact?service=audit-consultation"})]})}),v.jsx("div",{className:"bg-gradient-to-r from-purple-50 to-pink-50 py-16",children:v.jsxs("div",{className:"container mx-auto px-4",children:[v.jsxs("div",{className:"text-center mb-12",children:[v.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"More Creative Solutions for Your Business"}),v.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Beyond website audits, discover our comprehensive digital solutions that drive real business growth"})]}),v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-6xl mx-auto",children:[v.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-lg border hover:shadow-xl transition-shadow",children:[v.jsx("div",{className:"w-12 h-12 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center mb-4",children:v.jsx(yo,{className:"h-6 w-6 text-white"})}),v.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Web Development"}),v.jsx("p",{className:"text-muted-foreground mb-4",children:"Modern, responsive websites that convert visitors into customers"}),v.jsxs(Er,{variant:"outline",className:"w-full",onClick:()=>window.open("/services/web-development","_blank"),children:["Learn More ",v.jsx(fs,{className:"h-4 w-4 ml-2"})]})]}),v.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-lg border hover:shadow-xl transition-shadow",children:[v.jsx("div",{className:"w-12 h-12 bg-gradient-to-r from-green-500 to-blue-600 rounded-lg flex items-center justify-center mb-4",children:v.jsx(Ku,{className:"h-6 w-6 text-white"})}),v.jsx("h3",{className:"text-xl font-semibold mb-2",children:"SEO & Marketing"}),v.jsx("p",{className:"text-muted-foreground mb-4",children:"Dominate search results and drive organic traffic to your business"}),v.jsxs(Er,{variant:"outline",className:"w-full",onClick:()=>window.open("/services/seo-marketing","_blank"),children:["Learn More ",v.jsx(fs,{className:"h-4 w-4 ml-2"})]})]}),v.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-lg border hover:shadow-xl transition-shadow",children:[v.jsx("div",{className:"w-12 h-12 bg-gradient-to-r from-orange-500 to-red-600 rounded-lg flex items-center justify-center mb-4",children:v.jsx(Ju,{className:"h-6 w-4 text-white"})}),v.jsx("h3",{className:"text-xl font-semibold mb-2",children:"E-commerce Solutions"}),v.jsx("p",{className:"text-muted-foreground mb-4",children:"Transform browsers into buyers with optimized online stores"}),v.jsxs(Er,{variant:"outline",className:"w-full",onClick:()=>window.open("/services/ecommerce-marketing","_blank"),children:["Learn More ",v.jsx(fs,{className:"h-4 w-4 ml-2"})]})]}),v.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-lg border hover:shadow-xl transition-shadow",children:[v.jsx("div",{className:"w-12 h-12 bg-gradient-to-r from-purple-500 to-pink-600 rounded-lg flex items-center justify-center mb-4",children:v.jsx(Zu,{className:"h-6 w-6 text-white"})}),v.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Performance Optimization"}),v.jsx("p",{className:"text-muted-foreground mb-4",children:"Lightning-fast websites that improve user experience and rankings"}),v.jsxs(Er,{variant:"outline",className:"w-full",onClick:()=>window.open("/services/web-development","_blank"),children:["Learn More ",v.jsx(fs,{className:"h-4 w-4 ml-2"})]})]}),v.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-lg border hover:shadow-xl transition-shadow",children:[v.jsx("div",{className:"w-12 h-12 bg-gradient-to-r from-indigo-500 to-purple-600 rounded-lg flex items-center justify-center mb-4",children:v.jsx(l1,{className:"h-6 w-6 text-white"})}),v.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Analytics & Insights"}),v.jsx("p",{className:"text-muted-foreground mb-4",children:"Data-driven decisions that maximize your digital ROI"}),v.jsxs(Er,{variant:"outline",className:"w-full",onClick:()=>window.open("/services/trust-mate","_blank"),children:["Learn More ",v.jsx(fs,{className:"h-4 w-4 ml-2"})]})]}),v.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-lg border hover:shadow-xl transition-shadow",children:[v.jsx("div",{className:"w-12 h-12 bg-gradient-to-r from-pink-500 to-red-600 rounded-lg flex items-center justify-center mb-4",children:v.jsx(e1,{className:"h-6 w-6 text-white"})}),v.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Free Consultation"}),v.jsx("p",{className:"text-muted-foreground mb-4",children:"Get personalized advice from our digital marketing experts"}),v.jsxs(Er,{className:"w-full bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 text-white",onClick:()=>window.open("/contact","_blank"),children:["Book Now ",v.jsx(Zl,{className:"h-4 w-4 ml-2"})]})]})]})]})})]}),v.jsx(i1,{}),v.jsx(r1,{open:A,onOpenChange:()=>{},children:v.jsxs(n1,{className:"sm:max-w-lg animate-scale-in border-none bg-gradient-to-br from-background to-muted/30 backdrop-blur-xl",children:[v.jsxs(a1,{className:"text-center pb-2",children:[v.jsx(s1,{className:"text-2xl font-bold bg-gradient-to-r from-[hsl(var(--mojo-purple))] to-[hsl(var(--mojo-purple-light))] bg-clip-text text-transparent",children:"Analyzing Your Website"}),v.jsx("p",{className:"text-muted-foreground",children:"Discovering optimization opportunities..."})]}),v.jsxs("div",{className:"space-y-6 py-4",children:[v.jsx("div",{className:"flex justify-center",children:v.jsxs("div",{className:"relative",children:[v.jsx("div",{className:"w-16 h-16 border-4 border-muted rounded-full"}),v.jsx("div",{className:"w-16 h-16 border-4 border-[hsl(var(--mojo-purple))] border-t-transparent roun
164ded-full animate-spin absolute top-0 left-0"}),v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:v.jsx("div",{className:"w-8 h-8 bg-gradient-to-r from-[hsl(var(--mojo-purple))] to-[hsl(var(--mojo-purple-light))] rounded-full animate-pulse"})})]})}),v.jsxs("div",{className:"relative min-h-[120px] flex items-center",children:[v.jsx("div",{className:"absolute top-0 left-0 text-6xl text-[hsl(var(--mojo-purple))] opacity-10 font-serif",children:'"'}),v.jsx("div",{className:"px-8 py-4",children:M?v.jsxs("div",{className:"space-y-3 animate-pulse",children:[v.jsx("div",{className:"h-4 bg-muted rounded w-full"}),v.jsx("div",{className:"h-4 bg-muted rounded w-5/6"}),v.jsx("div",{className:"h-4 bg-muted rounded w-4/6"})]}):v.jsx("p",{className:"text-muted-foreground leading-relaxed italic animate-fade-in text-center",children:O})}),v.jsx("div",{className:"absolute bottom-0 right-0 text-6xl text-[hsl(var(--mojo-purple))] opacity-10 font-serif",children:'"'})]}),v.jsx("div",{className:"text-center",children:v.jsxs("div",{className:"inline-flex items-center gap-2 bg-gradient-to-r from-[hsl(var(--mojo-purple))] to-[hsl(var(--mojo-purple-light))] text-white px-4 py-2 rounded-full text-sm font-semibold",children:[v.jsx("div",{className:"w-2 h-2 bg-white rounded-full animate-bounce"}),"MOJO AI is working...",v.jsx("div",{className:"w-2 h-2 bg-white rounded-full animate-bounce",style:{animationDelay:"0.1s"}})]})})]})]})})]})},Tp=Object.freeze(Object.defineProperty({__proto__:null,default:_p},Symbol.toStringTag,{value:"Module"}));export{Tp as A,Ne as _};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.