PageSourceSearch

https://demotelemed.lovable.app/assets/Appointment-Cuucc4c-.js

js demotelemed.lovable.app collected 2026-10-03 03:25:28 UTC 537,052 bytes, 215 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-DVqNJz2u.js","assets/index-42OYDF60.js","assets/index-DWt7QvQJ.css","assets/Layout-CvY-dOeA.js","assets/phone-CUz94ybs.js","assets/menu-CkpBHtij.js","assets/mail-T8cR2-w0.js","assets/dialog-BPqr1XfL.js","assets/button-EfpS49lo.js","assets/trash-2-B3_ksNI2.js","assets/minus-LiessKcH.js","assets/plus-UlO-Lz9K.js","assets/dr-sohag-portrait-DrD5K1Td.js","assets/chevron-right-BCpiW409.js","assets/sparkles-CVmnDczg.js","assets/circle-check-9IzNzBLR.js","assets/calendar-D6MUKLwk.js","assets/clock-DQFeazs3.js","assets/user-BBBANPrE.js","assets/file-text-Cr0S7K06.js","assets/copy-B12tt65m.js","assets/pencil-DccT4vhR.js","assets/pill-Csifgd9q.js","assets/heart-pulse-CuBxqn0f.js"])))=>i.map(i=>d[i]);
2var S2=Object.defineProperty;var L2=(e,n,t)=>n in e?S2(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var kt=(e,n,t)=>L2(e,typeof n!="symbol"?n+"":n,t);import{c as po,_ as xc,r as Ue,j as C,n as Dn,b as k2,d as Ed,A as Md,u as Id,P as jd,e as $o,w as Fd,D as P2,C as C2,h as E2,m as M2,R as I2,k as j2,l as F2,q as Rr}from"./index-42OYDF60.js";import{L as D2,a as Dd,C as O2}from"./Layout-CvY-dOeA.js";import{d as T2,B as R2}from"./dr-sohag-portrait-DrD5K1Td.js";import{b as Yf}from"./button-EfpS49lo.js";import{C as Od,a as lu}from"./chevron-right-BCpiW409.js";import{h as B2,R as U2,u as q2,F as z2,a as W2}from"./dialog-BPqr1XfL.js";import{S as Td}from"./sparkles-CVmnDczg.js";import{C as Vf}from"./circle-check-9IzNzBLR.js";import{C as Gf}from"./calendar-D6MUKLwk.js";import{C as H2}from"./clock-DQFeazs3.js";import{U as $f}from"./user-BBBANPrE.js";import{P as Y2,M as Zf}from"./phone-CUz94ybs.js";import{F as V2}from"./file-text-Cr0S7K06.js";import{C as G2}from"./copy-B12tt65m.js";import{P as $2}from"./pencil-DccT4vhR.js";import{P as Z2,A as K2}from"./pill-Csifgd9q.js";import{H as X2}from"./heart-pulse-CuBxqn0f.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 J2=po("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
8 * @license lucide-react v0.462.0 - ISC
9 *
10 * This source code is licensed under the ISC license.
11 * See the LICENSE file in the root directory of this source tree.
12 */const Q2=po("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
13 * @license lucide-react v0.462.0 - ISC
14 *
15 * This source code is licensed under the ISC license.
16 * See the LICENSE file in the root directory of this source tree.
17 */const e5=po("PartyPopper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]);/**
18 * @license lucide-react v0.462.0 - ISC
19 *
20 * This source code is licensed under the ISC license.
21 * See the LICENSE file in the root directory of this source tree.
22 */const t5=po("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
23 * @license lucide-react v0.462.0 - ISC
24 *
25 * This source code is licensed under the ISC license.
26 * See the LICENSE file in the root directory of this source tree.
27 */const n5=po("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/**
28 * @license lucide-react v0.462.0 - ISC
29 *
30 * This source code is licensed under the ISC license.
31 * See the LICENSE file in the root directory of this source tree.
32 */const r5=po("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);function _t(e){const n=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&n==="[object Date]"?new e.constructor(+e):typeof e=="number"||n==="[object Number]"||typeof e=="string"||n==="[object String]"?new Date(e):new Date(NaN)}function nr(e,n){return e instanceof Date?new e.constructor(n):new Date(n)}function On(e,n){const t=_t(e);return isNaN(n)?nr(e,NaN):(n&&t.setDate(t.getDate()+n),t)}function Nr(e,n){const t=_t(e);if(isNaN(n))return nr(e,NaN);if(!n)return t;const r=t.getDate(),i=nr(e,t.getTime());i.setMonth(t.getMonth()+n+1,0);const a=i.getDate();return r>=a?i:(t.setFullYear(i.getFullYear(),i.getMonth(),r),t)}const Iu=6048e5,i5=864e5;let a5={};function us(){return a5}function Vr(e,n){var s,c,f,d;const t=us(),r=(n==null?void 0:n.weekStartsOn)??((c=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??t.weekStartsOn??((d=(f=t.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)??0,i=_t(e),a=i.getDay(),l=(a<r?7:0)+a-r;return i.setDate(i.getDate()-l),i.setHours(0,0,0,0),i}function pa(e){return Vr(e,{weekStartsOn:1}
32)}function Rd(e){const n=_t(e),t=n.getFullYear(),r=nr(e,0);r.setFullYear(t+1,0,4),r.setHours(0,0,0,0);const i=pa(r),a=nr(e,0);a.setFullYear(t,0,4),a.setHours(0,0,0,0);const l=pa(a);return n.getTime()>=i.getTime()?t+1:n.getTime()>=l.getTime()?t:t-1}function io(e){const n=_t(e);return n.setHours(0,0,0,0),n}function _l(e){const n=_t(e),t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+e-+t}function zr(e,n){const t=io(e),r=io(n),i=+t-_l(t),a=+r-_l(r);return Math.round((i-a)/i5)}function o5(e){const n=Rd(e),t=nr(e,0);return t.setFullYear(n,0,4),t.setHours(0,0,0,0),pa(t)}function cu(e,n){const t=n*7;return On(e,t)}function s5(e,n){return Nr(e,n*12)}function l5(e){let n;return e.forEach(function(t){const r=_t(t);(n===void 0||n<r||isNaN(Number(r)))&&(n=r)}),n||new Date(NaN)}function c5(e){let n;return e.forEach(t=>{const r=_t(t);(!n||n>r||isNaN(+r))&&(n=r)}),n||new Date(NaN)}function qn(e,n){const t=io(e),r=io(n);return+t==+r}function ju(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function u5(e){if(!ju(e)&&typeof e!="number")return!1;const n=_t(e);return!isNaN(Number(n))}function es(e,n){const t=_t(e),r=_t(n),i=t.getFullYear()-r.getFullYear(),a=t.getMonth()-r.getMonth();return i*12+a}function f5(e,n,t){const r=Vr(e,t),i=Vr(n,t),a=+r-_l(r),l=+i-_l(i);return Math.round((a-l)/Iu)}function Fu(e){const n=_t(e),t=n.getMonth();return n.setFullYear(n.getFullYear(),t+1,0),n.setHours(23,59,59,999),n}function Wn(e){const n=_t(e);return n.setDate(1),n.setHours(0,0,0,0),n}function Bd(e){const n=_t(e),t=nr(e,0);return t.setFullYear(n.getFullYear(),0,1),t.setHours(0,0,0,0),t}function Du(e,n){var s,c,f,d;const t=us(),r=(n==null?void 0:n.weekStartsOn)??((c=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??t.weekStartsOn??((d=(f=t.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)??0,i=_t(e),a=i.getDay(),l=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+l),i.setHours(23,59,59,999),i}function Ud(e){return Du(e,{weekStartsOn:1})}const h5={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},d5=(e,n,t)=>{let r;const i=h5[e];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",n.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function Nc(e){return(n={})=>{const t=n.width?String(n.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}const p5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},g5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},m5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},v5={date:Nc({formats:p5,defaultWidth:"full"}),time:Nc({formats:g5,defaultWidth:"full"}),dateTime:Nc({formats:m5,defaultWidth:"full"})},b5={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},w5=(e,n,t,r)=>b5[e];function qo(e){return(n,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,s=t!=null&&t.width?String(t.width):l;i=e.formattingValues[s]||e.formattingValues[l]}else{const l=e.defaultWidth,s=t!=null&&t.width?String(t.width):e.defaultWidth;i=e.values[s]||e.values[l]}const a=e.argumentCallback?e.argumentCallback(n):n;return i[a]}}const y5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},x5={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},N5={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
32ay","Saturday"]},A5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},S5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},L5=(e,n)=>{const t=Number(e),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},k5={ordinalNumber:L5,era:qo({values:y5,defaultWidth:"wide"}),quarter:qo({values:_5,defaultWidth:"wide",argumentCallback:e=>e-1}),month:qo({values:x5,defaultWidth:"wide"}),day:qo({values:N5,defaultWidth:"wide"}),dayPeriod:qo({values:A5,defaultWidth:"wide",formattingValues:S5,defaultFormattingWidth:"wide"})};function zo(e){return(n,t={})=>{const r=t.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=n.match(i);if(!a)return null;const l=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?C5(s,b=>b.test(l)):P5(s,b=>b.test(l));let f;f=e.valueCallback?e.valueCallback(c):c,f=t.valueCallback?t.valueCallback(f):f;const d=n.slice(l.length);return{value:f,rest:d}}}function P5(e,n){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n(e[t]))return t}function C5(e,n){for(let t=0;t<e.length;t++)if(n(e[t]))return t}function E5(e){return(n,t={})=>{const r=n.match(e.matchPattern);if(!r)return null;const i=r[0],a=n.match(e.parsePattern);if(!a)return null;let l=e.valueCallback?e.valueCallback(a[0]):a[0];l=t.valueCallback?t.valueCallback(l):l;const s=n.slice(i.length);return{value:l,rest:s}}}const M5=/^(\d+)(th|st|nd|rd)?/i,I5=/\d+/i,j5={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},F5={any:[/^b/i,/^(a|c)/i]},D5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},O5={any:[/1/i,/2/i,/3/i,/4/i]},T5={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},R5={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},B5={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},U5={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},q5={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},z5={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},W5={ordinalNumber:E5({matchPattern:M5,parsePattern:I5,valueCallback:e=>parseInt(e,10)}),era:zo({matchPatterns:j5,defaultMatchWidth:"wide",parsePatterns:F5,defaultParseWidth:"any"}),quarter:zo({matchPatterns:D5,defaultMatchWidth:"wide",parsePatterns:O5,defaultParseWidth:"any",valueCallback:e=>e+1}),month:zo({matchPatterns:T5,defaultMatchWidth:"wide",parsePatterns:R5,defaultParseWidth:"any"}),day:zo({matchPatterns:B5,defaultMatchWidth:"wide",parsePatterns:U5,defaultParseWidth:"any"}),dayPeriod:zo({matchPatterns:q5,defaultMatchWidth:"any",parsePatterns:z5,defaultParseWidth:"any"})},qd={code:"en-US",formatDistance:d5,formatLong:v5,formatRelative:w5,localize:k5,match:W5,options:{weekStartsOn:0,firstWeekContainsDate:1}};function H5(e){const n=_t(e);return zr(n,Bd(n))+1}function zd(e){const n=_t(e),t=+pa(n)-+o5(n);return Math.round(t/Iu)+1}function Wd(e,n){var d,b,v,p;const t=_t(e),r=t.getFullYear(),i=us(),a=(n==null?void 0:n.firstWeekContainsDate)??((b=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:b.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(v=i.locale)==null?void 0:v.options)==null?void 0:p.firstWeekContainsDate)??1,l=nr(e,0);l.setFullYear(r+1,0,a),l.setHours(0,0,0,0);const s=Vr(l,n),c=nr(e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const f=Vr(c,n);return t.getTime()>=s.getTime()?r+1:t.getTime()>=f.getTime()?r:r-1}function Y5(e,n){var s,c,f,d;const t=us(),r=(n==null?void 0:n.firstWeekContainsDate)??((c=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??t.firstWeekContainsDate??((d=(f=t.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??1,i=Wd(e,n),a=nr(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Vr(a,n)}function Hd(e,n){const t=_t(e),r=+Vr(t,n)-+Y5(t,n);return Math.round(r/Iu)+1}function Pt(e,n){const t=e<0?"-":"",r=Math.abs(e).toString().padStart(n,"0");return t+r}const Ci={y(e,n){const t=e.getFullYear(),r=t>0?t:1-t;return Pt(n==="yy"?r%100:r,n.length)},M(e,n){const t=e.getMonth();return n==="M"?String(t+1):Pt(t+1,2)},d(e,n){return Pt(e.getDate(),n.length)},a(e,n){const t=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,n){return Pt(e.getHours()%12||12,n.length)},H(e,n){return Pt(e.getHours(),n.length)},m(e,n){return Pt(e.getMinutes(),n.length)},s(e,n){return Pt(e.getSeconds(),n.length)},S(e,n){const t=n.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,t-3));return Pt(i,n.length)}},Wa={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Kf={G:function(e,n,t){const r=e.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(e,n,t){if(n==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return t.ordinalNumber(i,{unit:"year"})}
vendor: 4,329 bytes, line 32
32return Ci.y(e,n)},Y:function(e,n,t,r){const i=Wd(e,r),a=i>0?i:1-i;if(n==="YY"){const l=a%100;return Pt(l,2)}return n==="Yo"?t.ordinalNumber(a,{unit:"year"}):Pt(a,n.length)},R:function(e,n){const t=Rd(e);return Pt(t,n.length)},u:function(e,n){const t=e.getFullYear();return Pt(t,n.length)},Q:function(e,n,t){const r=Math.ceil((e.getMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return Pt(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,t){const r=Math.ceil((e.getMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return Pt(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,t){const r=e.getMonth();switch(n){case"M":case"MM":return Ci.M(e,n);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,t){const r=e.getMonth();switch(n){case"L":return String(r+1);case"LL":return Pt(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,t,r){const i=Hd(e,r);return n==="wo"?t.ordinalNumber(i,{unit:"week"}):Pt(i,n.length)},I:function(e,n,t){const r=zd(e);return n==="Io"?t.ordinalNumber(r,{unit:"week"}):Pt(r,n.length)},d:function(e,n,t){return n==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):Ci.d(e,n)},D:function(e,n,t){const r=H5(e);return n==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):Pt(r,n.length)},E:function(e,n,t){const r=e.getDay();switch(n){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,t,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Pt(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(i,{width:"short",context:"formatting"});case"eeee":default:return t.day(i,{width:"wide",context:"formatting"})}},c:function(e,n,t,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Pt(a,n.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(i,{width:"narrow",context:"standalone"});case"cccccc":return t.day(i,{width:"short",context:"standalone"});case"cccc":default:return t.day(i,{width:"wide",context:"standalone"})}},i:function(e,n,t){const r=e.getDay(),i=r===0?7:r;switch(n){case"i":return String(i);case"ii":return Pt(i,n.length);case"io":return t.ordinalNumber(i,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,t){const i=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,n,t){const r=e.getHours();let i;switch(r===12?i=Wa.noon:r===0?i=Wa.midnight:i=r/12>
vendor: 4,693 bytes, line 32
32=1?"pm":"am",n){case"b":case"bb":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,n,t){const r=e.getHours();let i;switch(r>=17?i=Wa.evening:r>=12?i=Wa.afternoon:r>=4?i=Wa.morning:i=Wa.night,n){case"B":case"BB":case"BBB":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,n,t){if(n==="ho"){let r=e.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return Ci.h(e,n)},H:function(e,n,t){return n==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):Ci.H(e,n)},K:function(e,n,t){const r=e.getHours()%12;return n==="Ko"?t.ordinalNumber(r,{unit:"hour"}):Pt(r,n.length)},k:function(e,n,t){let r=e.getHours();return r===0&&(r=24),n==="ko"?t.ordinalNumber(r,{unit:"hour"}):Pt(r,n.length)},m:function(e,n,t){return n==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ci.m(e,n)},s:function(e,n,t){return n==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):Ci.s(e,n)},S:function(e,n){return Ci.S(e,n)},X:function(e,n,t){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(n){case"X":return Jf(r);case"XXXX":case"XX":return sa(r);case"XXXXX":case"XXX":default:return sa(r,":")}},x:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"x":return Jf(r);case"xxxx":case"xx":return sa(r);case"xxxxx":case"xxx":default:return sa(r,":")}},O:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Xf(r,":");case"OOOO":default:return"GMT"+sa(r,":")}},z:function(e,n,t){const r=e.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Xf(r,":");case"zzzz":default:return"GMT"+sa(r,":")}},t:function(e,n,t){const r=Math.trunc(e.getTime()/1e3);return Pt(r,n.length)},T:function(e,n,t){const r=e.getTime();return Pt(r,n.length)}};function Xf(e,n=""){const t=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?t+String(i):t+String(i)+n+Pt(a,2)}function Jf(e,n){return e%60===0?(e>0?"-":"+")+Pt(Math.abs(e)/60,2):sa(e,n)}function sa(e,n=""){const t=e>0?"-":"+",r=Math.abs(e),i=Pt(Math.trunc(r/60),2),a=Pt(r%60,2);return t+i+n+a}const Qf=(e,n)=>{switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Yd=(e,n)=>{switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},V5=(e,n)=>{const t=e.match(/(P+)(p+)?/)||[],r=t[1],i=t[2];if(!i)return Qf(e,n);let a;switch(r){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Qf(r,n)).replace("{{time}}",Yd(i,n))},G5={p:Yd,P:V5},$5=/^D+$/,Z5=/^Y+$/,K5=["D","DD","YY","YYYY"];function X5(e){return $5.test(e)}function J5(e){return Z5.test(e)}function Q5(e,n,t){const r=ep(e,n,t);if(console.warn(r),K5.includes(e))throw new RangeError(r)}function ep(e,n,t){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${n}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const tp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,np=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rp=/^'([^]*?)'?$/,ip=/''/g,ap=/[a-zA-Z]/;function fr(e,n,t){var d,b,v,p,N,L,E,_;const r=us(),i=(t==null?void 0:t.locale)??r.locale??qd,a=(t==null?void 0:t.firstWeekContainsDate)??((b=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:b.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(v=r.locale)==null?void 0:v.options)==null?void 0:p.firstWeekContainsDate)??1,l=(t==null?void 0:t.weekStartsOn)??((L=(N=t==null?void 0:t.locale)==null?void 0:N.options)==null?void 0:L.weekStartsOn)??r.weekStartsOn??((_=(E=r.locale)==null?void 0:E.options)==null?void 0:_.weekStartsOn)??0,s=_t(e);if(!u5(s))throw new RangeError("Invalid time value");let c=n.match(np).map(U=>{const B=U[0];if(B==="p"||B==="P"){const F=G5[B];return F(U,i.formatLong)}return U}).join("").match(tp).map(U=>{if(U==="''")return{isToken:!1,value:"'"};const B=U[0];if(B==="'")return{isToken:!1,value:op(U)};if(Kf[B])return{isToken:!0,value:U};
32if(B.match(ap))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return{isToken:!1,value:U}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const f={firstWeekContainsDate:a,weekStartsOn:l,locale:i};return c.map(U=>{if(!U.isToken)return U.value;const B=U.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&J5(B)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&X5(B))&&Q5(B,n,String(e));const F=Kf[B[0]];return F(s,B,i.localize,f)}).join("")}function op(e){const n=e.match(rp);return n?n[1].replace(ip,"'"):e}function sp(e){const n=_t(e),t=n.getFullYear(),r=n.getMonth(),i=nr(e,0);return i.setFullYear(t,r+1,0),i.setHours(0,0,0,0),i.getDate()}function lp(e){return Math.trunc(+_t(e)/1e3)}function cp(e){const n=_t(e),t=n.getMonth();return n.setFullYear(n.getFullYear(),t+1,0),n.setHours(0,0,0,0),n}function up(e,n){return f5(cp(e),Wn(e),n)+1}function uu(e,n){const t=_t(e),r=_t(n);return t.getTime()>r.getTime()}function Vd(e,n){const t=_t(e),r=_t(n);return+t<+r}function Ou(e,n){const t=_t(e),r=_t(n);return t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()}function fp(e,n){const t=_t(e),r=_t(n);return t.getFullYear()===r.getFullYear()}function Ac(e,n){return On(e,-n)}function Sc(e,n){const t=_t(e),r=t.getFullYear(),i=t.getDate(),a=nr(e,0);a.setFullYear(r,n,15),a.setHours(0,0,0,0);const l=sp(a);return t.setMonth(n,Math.min(i,l)),t}function eh(e,n){const t=_t(e);return isNaN(+t)?nr(e,NaN):(t.setFullYear(n),t)}function Ct(e){"@babel/helpers - typeof";return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ct(e)}var Ar=Uint8Array,er=Uint16Array,Tu=Int32Array,Ru=new Ar([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]),Bu=new Ar([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]),th=new Ar([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Gd=function(e,n){for(var t=new er(31),r=0;r<31;++r)t[r]=n+=1<<e[r-1];for(var i=new Tu(t[30]),r=1;r<30;++r)for(var a=t[r];a<t[r+1];++a)i[a]=a-t[r]<<5|r;return{b:t,r:i}},$d=Gd(Ru,2),hp=$d.b,fu=$d.r;hp[28]=258,fu[258]=28;var dp=Gd(Bu,0),nh=dp.r,hu=new er(32768);for(var qt=0;qt<32768;++qt){var Ei=(qt&43690)>>1|(qt&21845)<<1;Ei=(Ei&52428)>>2|(Ei&13107)<<2,Ei=(Ei&61680)>>4|(Ei&3855)<<4,hu[qt]=((Ei&65280)>>8|(Ei&255)<<8)>>1}var Zo=function(e,n,t){for(var r=e.length,i=0,a=new er(n);i<r;++i)e[i]&&++a[e[i]-1];var l=new er(n);for(i=1;i<n;++i)l[i]=l[i-1]+a[i-1]<<1;var s;if(t){s=new er(1<<n);var c=15-n;for(i=0;i<r;++i)if(e[i])for(var f=i<<4|e[i],d=n-e[i],b=l[e[i]-1]++<<d,v=b|(1<<d)-1;b<=v;++b)s[hu[b]>>c]=f}else for(s=new er(r),i=0;i<r;++i)e[i]&&(s[i]=hu[l[e[i]-1]++]>>15-e[i]);return s},ga=new Ar(288);for(var qt=0;qt<144;++qt)ga[qt]=8;for(var qt=144;qt<256;++qt)ga[qt]=9;for(var qt=256;qt<280;++qt)ga[qt]=7;for(var qt=280;qt<288;++qt)ga[qt]=8;var xl=new Ar(32);for(var qt=0;qt<32;++qt)xl[qt]=5;var pp=Zo(ga,9,0),gp=Zo(xl,5,0),Zd=function(e){return(e+7)/8|0},mp=function(e,n,t){return(t==null||t>e.length)&&(t=e.length),new Ar(e.subarray(n,t))},ci=function(e,n,t){t<<=n&7;var r=n/8|0;e[r]|=t,e[r+1]|=t>>8},Wo=function(e,n,t){t<<=n&7;var r=n/8|0;e[r]|=t,e[r+1]|=t>>8,e[r+2]|=t>>16},Lc=function(e,n){for(var t=[],r=0;r<e.length;++r)e[r]&&t.push({s:r,f:e[r]});var i=t.length,a=t.slice();if(!i)return{t:Xd,l:0};if(i==1){var l=new Ar(t[0].s+1);return l[t[0].s]=1,{t:l,l:1}}t.sort(function(ee,le){return ee.f-le.f}),t.push({s:-1,f:25001});var s=t[0],c=t[1],f=0,d=1,b=2;for(t[0]={s:-1,f:s.f+c.f,l:s,r:c};d!=i-1;)s=t[t[f].f<t[b].f?f++:b++],c=t[f!=d&&t[f].f<t[b].f?f++:b++],t[d++]={s:-1,f:s.f+c.f,l:s,r:c};for(var v=a[0].s,r=1;r<i;++r)a[r].s>v&&(v=a[r].s);var p=new er(v+1),N=du(t[d-1],p,0);if(N>n){var r=0,L=0,E=N-n,_=1<<E;for(a.sort(function(le,oe){return p[oe.s]-p[le.s]||le.f-oe.f});r<i;++r){var U=a[r].s;if(p[U]>n)L+=_-(1<<N-p[U]),p[U]=n;else break}for(L>>=E;L>0;){var B=a[r].s;p[B]<n?L-=1<<n-p[B]++-1:++r}for(;r>=0&&L;--r){var F=a[r].s;p[F]==n&&(--p[F],++L)}N=n}return{t:new Ar(p),l:N}},du=function(e,n,t){return e.s==-1?Math.max(du(e.l,n,t+1),du(e.r,n,t+1)):n[e.s]=t},rh=function(e){for(var n=e.length;n&&!e[--n];);for(var t=new er(++n),r=0,i=e[0],a=1,l=function(c){t[r++]=c},s=1;s<=n;++s)if(e[s]==i&&s!=n)++a;else{if(!i&&a>2){for(;a>138;a-=138)l(32754);a>
vendor: 12,077 bytes, lines 32-33
322&&(l(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(l(i),--a;a>6;a-=6)l(8304);a>2&&(l(a-3<<5|8208),a=0)}for(;a--;)l(i);a=1,i=e[s]}return{c:t.subarray(0,r),n}},Ho=function(e,n){for(var t=0,r=0;r<n.length;++r)t+=e[r]*n[r];return t},Kd=function(e,n,t){var r=t.length,i=Zd(n+2);e[i]=r&255,e[i+1]=r>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<r;++a)e[i+a+4]=t[a];return(i+4+r)*8},ih=function(e,n,t,r,i,a,l,s,c,f,d){ci(n,d++,t),++i[256];for(var b=Lc(i,15),v=b.t,p=b.l,N=Lc(a,15),L=N.t,E=N.l,_=rh(v),U=_.c,B=_.n,F=rh(L),ee=F.c,le=F.n,oe=new er(19),K=0;K<U.length;++K)++oe[U[K]&31];for(var K=0;K<ee.length;++K)++oe[ee[K]&31];for(var I=Lc(oe,7),V=I.t,S=I.l,j=19;j>4&&!V[th[j-1]];--j);var W=f+5<<3,H=Ho(i,ga)+Ho(a,xl)+l,se=Ho(i,v)+Ho(a,L)+l+14+3*j+Ho(oe,V)+2*oe[16]+3*oe[17]+7*oe[18];if(c>=0&&W<=H&&W<=se)return Kd(n,d,e.subarray(c,c+f));var fe,te,G,he;if(ci(n,d,1+(se<H)),d+=2,se<H){fe=Zo(v,p,0),te=v,G=Zo(L,E,0),he=L;var Ae=Zo(V,S,0);ci(n,d,B-257),ci(n,d+5,le-1),ci(n,d+10,j-4),d+=14;for(var K=0;K<j;++K)ci(n,d+3*K,V[th[K]]);d+=3*j;for(var be=[U,ee],k=0;k<2;++k)for(var q=be[k],K=0;K<q.length;++K){var z=q[K]&31;ci(n,d,Ae[z]),d+=V[z],z>15&&(ci(n,d,q[K]>>5&127),d+=q[K]>>12)}}else fe=pp,te=ga,G=gp,he=xl;for(var K=0;K<s;++K){var $=r[K];if($>255){var z=$>>18&31;Wo(n,d,fe[z+257]),d+=te[z+257],z>7&&(ci(n,d,$>>23&31),d+=Ru[z]);var J=$&31;Wo(n,d,G[J]),d+=he[J],J>3&&(Wo(n,d,$>>5&8191),d+=Bu[J])}else Wo(n,d,fe[$]),d+=te[$]}return Wo(n,d,fe[256]),d+te[256]},vp=new Tu([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Xd=new Ar(0),bp=function(e,n,t,r,i,a){var l=a.z||e.length,s=new Ar(r+l+5*(1+Math.ceil(l/7e3))+i),c=s.subarray(r,s.length-i),f=a.l,d=(a.r||0)&7;if(n){d&&(c[0]=a.r>>3);for(var b=vp[n-1],v=b>>13,p=b&8191,N=(1<<t)-1,L=a.p||new er(32768),E=a.h||new er(N+1),_=Math.ceil(t/3),U=2*_,B=function(qe){return(e[qe]^e[qe+1]<<_^e[qe+2]<<U)&N},F=new Tu(25e3),ee=new er(288),le=new er(32),oe=0,K=0,I=a.i||0,V=0,S=a.w||0,j=0;I+2<l;++I){var W=B(I),H=I&32767,se=E[W];if(L[H]=se,E[W]=H,S<=I){var fe=l-I;if((oe>7e3||V>24576)&&(fe>423||!f)){d=ih(e,c,0,F,ee,le,K,V,j,I-j,d),V=oe=K=0,j=I;for(var te=0;te<286;++te)ee[te]=0;for(var te=0;te<30;++te)le[te]=0}var G=2,he=0,Ae=p,be=H-se&32767;if(fe>2&&W==B(I-be))for(var k=Math.min(v,fe)-1,q=Math.min(32767,I),z=Math.min(258,fe);be<=q&&--Ae&&H!=se;){if(e[I+G]==e[I+G-be]){for(var $=0;$<z&&e[I+$]==e[I+$-be];++$);if($>G){if(G=$,he=be,$>k)break;for(var J=Math.min(be,$-2),re=0,te=0;te<J;++te){var ce=I-be+te&32767,ue=L[ce],ve=ce-ue&32767;ve>re&&(re=ve,se=ce)}}}H=se,se=L[H],be+=H-se&32767}if(he){F[V++]=268435456|fu[G]<<18|nh[he];var Ne=fu[G]&31,Pe=nh[he]&31;K+=Ru[Ne]+Bu[Pe],++ee[257+Ne],++le[Pe],S=I+G,++oe}else F[V++]=e[I],++ee[e[I]]}}for(I=Math.max(I,S);I<l;++I)F[V++]=e[I],++ee[e[I]];d=ih(e,c,f,F,ee,le,K,V,j,I-j,d),f||(a.r=d&7|c[d/8|0]<<3,d-=7,a.h=E,a.p=L,a.i=I,a.w=S)}else{for(var I=a.w||0;I<l+f;I+=65535){var ke=I+65535;ke>=l&&(c[d/8|0]=f,ke=l),d=Kd(c,d+1,e.subarray(I,ke))}a.i=l}return mp(s,0,r+Zd(d)+i)},Jd=function(){var e=1,n=0;return{p:function(t){for(var r=e,i=n,a=t.length|0,l=0;l!=a;){for(var s=Math.min(l+2655,a);l<s;++l)i+=r+=t[l];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}e=r,n=i},d:function(){return e%=65521,n%=65521,(e&255)<<24|(e&65280)<<8|(n&255)<<8|n>>8}}},wp=function(e,n,t,r,i){if(!i&&(i={l:1},n.dictionary)){var a=n.dictionary.subarray(-32768),l=new Ar(a.length+e.length);l.set(a),l.set(e,a.length),e=l,i.w=a.length}return bp(e,n.level==null?6:n.level,n.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+n.mem,t,r,i)},Qd=function(e,n,t){for(;t;++n)e[n]=t,t>>>=8},yp=function(e,n){var t=n.level,r=t==0?0:t<6?1:t==9?3:2;if(e[0]=120,e[1]=r<<6|(n.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,n.dictionary){var i=Jd();i.p(n.dictionary),Qd(e,2,i.d())}};function pu(e,n){n||(n={});var t=Jd();t.p(e);var r=wp(e,n,n.dictionary?6:2,4);return yp(r,n),Qd(r,r.length-4,t.d()),r}var _p=typeof TextDecoder<"u"&&new TextDecoder,xp=0;try{_p.decode(Xd,{stream:!0}),xp=1}catch{}function Np(e){if(Array.isArray(e))return e}function Ap(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var r,i,a,l,s=[],c=!0,f=!1;try{if(a=(t=t.call(e)).next,n!==0)for(;!(c=(r=a.call(t)).done)&&(s.push(r.value),s.length!==n);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&t.return!=null&&(l=t.return(),Object(l)!==l))return}finally{if(f)throw i}}return s}}function ah(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function Sp(e,n){if(e){if(typeof e=="string")return ah(e,n);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ah(e,n):void 0}}function Lp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oh(e,n){return Np(e)||Ap(e,n)||Sp(e,n)||Lp()}function sh(e,n="utf8"){return new TextDecoder(n).decode(e)}const kp=new TextEncoder;function Pp(e){return kp.encode(e)}const Cp=1024*8,Ep=(()=>{const e=new Uint8Array(4),n=new Uint32Array(e.buffer);return!((n[0]=1)&e[0])})(),kc={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 Uu{constructor(n=Cp,t={}){kt(this,"buffer");kt(this,"byteLength");kt(this,"byteOffset");kt(this,"length");kt(this,"offset");kt(this,"lastWrittenByte");kt(this,"littleEndian");kt(this,"_data");kt(this,"_mark");kt(this,"_marks");let r=!1;typeof n=="number"?n=new ArrayBuffer(n):(r=!0,this.lastWrittenByte=n.byteLength);const i=t.offset?t.offset>>>0:0,a=n.byteLength-i;let l=i;(ArrayBuffer.isView(n)||n instanceof Uu)&&(n.byteLength!==n.buffer.byteLength&&(l=n.byteOffset+i),n=n.buffer),r?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=n,this.length=a,this.byteLength=a,this.byteOffset=l,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,l,a),this._mark=0,this._marks=[]}available(n=1){return this.offset+n<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(n=1){return this.offset+=n,this}back(n=1){return this.offset-=n,this}seek(n){return this.offset=n,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 n=this._marks.pop();if(n===void 0)throw new Error("Mark stack empty");return this.seek(n),this}rewind(){return this.offset=0,this}ensureAvailable(n=1){if(!this.available(n)){const r=(this.offset+n)*2,i=new Uint8Array(r);i.set(new Uint8Array(this.buffer)),this.buffer=i.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(n=1){return this.readArray(n,"uint8")}readArray(n,t){const r=kc[t].BYTES_PER_ELEMENT*n,i=this.byteOffset+this.offset,a=this.buffer.slice(i,i+r);if(this.littleEndian===Ep&&t!=="uint8"&&t!=="int8"){const s=new Uint8Array(this.buffer.slice(i,i+r));s.reverse();const c=new kc[t](s.buffer);return this.offset+=r,c.reverse(),c}const l=new kc[t](a);return this.offset+=r,l}readInt16(){const n=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,n}readUint16(){const n=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,n}readInt32(){const n=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,n}readUint32(){const n=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat32(){const n=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat64(){const n=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,n}readBigInt64(){const n=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,n}readBigUint64(){const n=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,n}readChar(){return String.fromCharCode(this.readInt8())}readChars(n=1){let t="";for(let r=0;r<n;r++)t+=this.readChar();return t}readUtf8(n=1){return sh(this.readBytes(n))}decodeText(n=1,t="utf8"){return sh(this.readBytes(n),t)}writeBoolean(n){return this.writeUint8(n?255:0),this}writeInt8(n){return this.ensureAvailable(1),this._data.setInt8(this.offset++,n),this._updateLastWrittenByte(),this}writeUint8(n){return this.ensureAvailable(1),this._data.setUint8(this.offset++,n),this._updateLastWrittenByte(),this}writeByte(n){return this.writeUint8(n)}writeBytes(n){this.ensureAvailable(n.length);for(let t=0;t<n.length;t++)this._data.setUint8(this.offset++,n[t]);return this._updateLastWrittenByte(),this}writeInt16(n){return this.ensureAvailable(2),this._data.setInt16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(n){return this.ensureAvailable(2),this._data.setUint16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(n){return this.ensureAvailable(4),this._data.setInt32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(n){return this.ensureAvailable(4),this._data.setUint32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(n){return this.ensureAvailable(4),this._data.setFloat32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(n){return this.ensureAvailable(8),this._data.setFloat64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(n){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(n){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(n){return this.writeUint8(n.charCodeAt(0))}writeChars(n){for(let t=0;t<n.length;t++)this.writeUint8(n.charCodeAt(t));return this}writeUtf8(n){return this.writeBytes(Pp(n))}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 Mp=4,lh=0,ch=1,Ip=2;function go(e){let n=e.length;for(;--n>=0;)e[n]=0}const jp=0,e1=1,Fp=2,Dp=3,Op=258,qu=29,fs=256,ts=fs+1+qu,Qa=30,zu=19,t1=2*ts+1,ua=15,Pc=16,Tp=7,Wu=256,n1=16,r1=17,i1=18,gu=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]),dl=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]),Rp=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),a1=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bp=512,hi=new Array((ts+2)*2);go(hi);const Ko=new Array(Qa*2);go(Ko);const ns=new Array(Bp);go(ns);const rs=new Array(Op-Dp+1);go(rs);const Hu=new Array(qu);go(Hu);const Nl=new Array(Qa);go(Nl);function Cc(e,n,t,r,i){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let o1,s1,l1;function Ec(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const c1=e=>e<256?ns[e]:ns[256+(e>>>7)],is=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},zn=(e,n,t)=>{e.bi_valid>Pc-t?(e.bi_buf|=n<<e.bi_valid&65535,is(e,e.bi_buf),e.bi_buf=n>>Pc-e.bi_valid,e.bi_valid+=t-Pc):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)},qr=(e,n,t)=>{zn(e,t[n*2],t[n*2+1])},u1=(e,n)=>{let t=0;do t|=e&1,e>>
vendor: 44,792 bytes, line 33
33>=1,t<<=1;while(--n>0);return t>>>1},Up=e=>{e.bi_valid===16?(is(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},qp=(e,n)=>{const t=n.dyn_tree,r=n.max_code,i=n.stat_desc.static_tree,a=n.stat_desc.has_stree,l=n.stat_desc.extra_bits,s=n.stat_desc.extra_base,c=n.stat_desc.max_length;let f,d,b,v,p,N,L=0;for(v=0;v<=ua;v++)e.bl_count[v]=0;for(t[e.heap[e.heap_max]*2+1]=0,f=e.heap_max+1;f<t1;f++)d=e.heap[f],v=t[t[d*2+1]*2+1]+1,v>c&&(v=c,L++),t[d*2+1]=v,!(d>r)&&(e.bl_count[v]++,p=0,d>=s&&(p=l[d-s]),N=t[d*2],e.opt_len+=N*(v+p),a&&(e.static_len+=N*(i[d*2+1]+p)));if(L!==0){do{for(v=c-1;e.bl_count[v]===0;)v--;e.bl_count[v]--,e.bl_count[v+1]+=2,e.bl_count[c]--,L-=2}while(L>0);for(v=c;v!==0;v--)for(d=e.bl_count[v];d!==0;)b=e.heap[--f],!(b>r)&&(t[b*2+1]!==v&&(e.opt_len+=(v-t[b*2+1])*t[b*2],t[b*2+1]=v),d--)}},f1=(e,n,t)=>{const r=new Array(ua+1);let i=0,a,l;for(a=1;a<=ua;a++)i=i+t[a-1]<<1,r[a]=i;for(l=0;l<=n;l++){let s=e[l*2+1];s!==0&&(e[l*2]=u1(r[s]++,s))}},zp=()=>{let e,n,t,r,i;const a=new Array(ua+1);for(t=0,r=0;r<qu-1;r++)for(Hu[r]=t,e=0;e<1<<gu[r];e++)rs[t++]=r;for(rs[t-1]=r,i=0,r=0;r<16;r++)for(Nl[r]=i,e=0;e<1<<dl[r];e++)ns[i++]=r;for(i>>=7;r<Qa;r++)for(Nl[r]=i<<7,e=0;e<1<<dl[r]-7;e++)ns[256+i++]=r;for(n=0;n<=ua;n++)a[n]=0;for(e=0;e<=143;)hi[e*2+1]=8,e++,a[8]++;for(;e<=255;)hi[e*2+1]=9,e++,a[9]++;for(;e<=279;)hi[e*2+1]=7,e++,a[7]++;for(;e<=287;)hi[e*2+1]=8,e++,a[8]++;for(f1(hi,ts+1,a),e=0;e<Qa;e++)Ko[e*2+1]=5,Ko[e*2]=u1(e,5);o1=new Cc(hi,gu,fs+1,ts,ua),s1=new Cc(Ko,dl,0,Qa,ua),l1=new Cc(new Array(0),Rp,0,zu,Tp)},h1=e=>{let n;for(n=0;n<ts;n++)e.dyn_ltree[n*2]=0;for(n=0;n<Qa;n++)e.dyn_dtree[n*2]=0;for(n=0;n<zu;n++)e.bl_tree[n*2]=0;e.dyn_ltree[Wu*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},d1=e=>{e.bi_valid>8?is(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},uh=(e,n,t,r)=>{const i=n*2,a=t*2;return e[i]<e[a]||e[i]===e[a]&&r[n]<=r[t]},Mc=(e,n,t)=>{const r=e.heap[t];let i=t<<1;for(;i<=e.heap_len&&(i<e.heap_len&&uh(n,e.heap[i+1],e.heap[i],e.depth)&&i++,!uh(n,r,e.heap[i],e.depth));)e.heap[t]=e.heap[i],t=i,i<<=1;e.heap[t]=r},fh=(e,n,t)=>{let r,i,a=0,l,s;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+a++]&255,r+=(e.pending_buf[e.sym_buf+a++]&255)<<8,i=e.pending_buf[e.sym_buf+a++],r===0?qr(e,i,n):(l=rs[i],qr(e,l+fs+1,n),s=gu[l],s!==0&&(i-=Hu[l],zn(e,i,s)),r--,l=c1(r),qr(e,l,t),s=dl[l],s!==0&&(r-=Nl[l],zn(e,r,s)));while(a<e.sym_next);qr(e,Wu,n)},mu=(e,n)=>{const t=n.dyn_tree,r=n.stat_desc.static_tree,i=n.stat_desc.has_stree,a=n.stat_desc.elems;let l,s,c=-1,f;for(e.heap_len=0,e.heap_max=t1,l=0;l<a;l++)t[l*2]!==0?(e.heap[++e.heap_len]=c=l,e.depth[l]=0):t[l*2+1]=0;for(;e.heap_len<2;)f=e.heap[++e.heap_len]=c<2?++c:0,t[f*2]=1,e.depth[f]=0,e.opt_len--,i&&(e.static_len-=r[f*2+1]);for(n.max_code=c,l=e.heap_len>>1;l>=1;l--)Mc(e,t,l);f=a;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Mc(e,t,1),s=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=s,t[f*2]=t[l*2]+t[s*2],e.depth[f]=(e.depth[l]>=e.depth[s]?e.depth[l]:e.depth[s])+1,t[l*2+1]=t[s*2+1]=f,e.heap[1]=f++,Mc(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],qp(e,n),f1(t,c,e.bl_count)},hh=(e,n,t)=>{let r,i=-1,a,l=n[0*2+1],s=0,c=7,f=4;for(l===0&&(c=138,f=3),n[(t+1)*2+1]=65535,r=0;r<=t;r++)a=l,l=n[(r+1)*2+1],!(++s<c&&a===l)&&(s<f?e.bl_tree[a*2]+=s:a!==0?(a!==i&&e.bl_tree[a*2]++,e.bl_tree[n1*2]++):s<=10?e.bl_tree[r1*2]++:e.bl_tree[i1*2]++,s=0,i=a,l===0?(c=138,f=3):a===l?(c=6,f=3):(c=7,f=4))},dh=(e,n,t)=>{let r,i=-1,a,l=n[0*2+1],s=0,c=7,f=4;for(l===0&&(c=138,f=3),r=0;r<=t;r++)if(a=l,l=n[(r+1)*2+1],!(++s<c&&a===l)){if(s<f)do qr(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==i&&(qr(e,a,e.bl_tree),s--),qr(e,n1,e.bl_tree),zn(e,s-3,2)):s<=10?(qr(e,r1,e.bl_tree),zn(e,s-3,3)):(qr(e,i1,e.bl_tree),zn(e,s-11,7));s=0,i=a,l===0?(c=138,f=3):a===l?(c=6,f=3):(c=7,f=4)}},Wp=e=>{let n;for(hh(e,e.dyn_ltree,e.l_desc.max_code),hh(e,e.dyn_dtree,e.d_desc.max_code),mu(e,e.bl_desc),n=zu-1;n>=3&&e.bl_tree[a1[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},Hp=(e,n,t,r)=>{let i;for(zn(e,n-257,5),zn(e,t-1,5),zn(e,r-4,4),i=0;i<r;i++)zn(e,e.bl_tree[a1[i]*2+1],3);dh(e,e.dyn_ltree,n-1),dh(e,e.dyn_dtree,t-1)},Yp=e=>{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return lh;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return ch;for(t=32;t<fs;t++)if(e.dyn_ltree[t*2]!==0)return ch;return lh};let ph=!1;const Vp=e=>{ph||(zp(),ph=!0),e.l_desc=new Ec(e.dyn_ltree,o1),e.d_desc=new Ec(e.dyn_dtree,s1),e.bl_desc=new Ec(e.bl_tree,l1),e.bi_buf=0,e.bi_valid=0,h1(e)},p1=(e,n,t,r)=>{zn(e,(jp<<1)+(r?1:0),3),d1(e),is(e,t),is(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},Gp=e=>{zn(e,e1<<1,3),qr(e,Wu,hi),Up(e)},$p=(e,n,t,r)=>{let i,a,l=0;e.level>0?(e.strm.data_type===Ip&&(e.strm.data_type=Yp(e)),mu(e,e.l_desc),mu(e,e.d_desc),l=Wp(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=t+5,t+4<=i&&n!==-1?p1(e,n,t,r):e.strategy===Mp||a===i?(zn(e,(e1<<1)+(r?1:0),3),fh(e,hi,Ko)):(zn(e,(Fp<<1)+(r?1:0),3),Hp(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),fh(e,e.dyn_ltree,e.dyn_dtree)),h1(e),r&&d1(e)},Zp=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[(rs[t]+fs+1)*2]++,e.dyn_dtree[c1(n)*2]++),e.sym_next===e.sym_end);var Kp=Vp,Xp=p1,Jp=$p,Qp=Zp,eg=Gp,tg={_tr_init:Kp,_tr_stored_block:Xp,_tr_flush_block:Jp,_tr_tally:Qp,_tr_align:eg};const ng=(e,n,t,r)=>{let i=e&65535|0,a=e>>>16&65535|0,l=0;for(;t!==0;){l=t>2e3?2e3:t,t-=l;do i=i+n[r++]|0,a=a+i|0;while(--l);i%=65521,a%=65521}return i|a<<16|0};var as=ng;const rg=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},ig=new Uint32Array(rg()),ag=(e,n,t,r)=>{const i=ig,a=r+t;e^=-1;for(let l=r;l<a;l++)e=e>>>8^i[(e^n[l])&255];return e^-1};var dn=ag,ao={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"},hs={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:og,_tr_stored_block:vu,_tr_flush_block:sg,_tr_tally:Oi,_tr_align:lg}=tg,{Z_NO_FLUSH:Ti,Z_PARTIAL_FLUSH:cg,Z_FULL_FLUSH:ug,Z_FINISH:hr,Z_BLOCK:gh,Z_OK:yn,Z_STREAM_END:mh,Z_STREAM_ERROR:Hr,Z_DATA_ERROR:fg,Z_BUF_ERROR:Ic,Z_DEFAULT_COMPRESSION:hg,Z_FILTERED:dg,Z_HUFFMAN_ONLY:tl,Z_RLE:pg,Z_FIXED:gg,Z_DEFAULT_STRATEGY:mg,Z_UNKNOWN:vg,Z_DEFLATED:Ml}=hs,bg=9,wg=15,yg=8,_g=29,xg=256,bu=xg+1+_g,Ng=30,Ag=19,Sg=2*bu+1,Lg=15,mt=3,ji=258,Yr=ji+mt+1,kg=32,oo=42,Yu=57,wu=69,yu=73,_u=91,xu=103,fa=113,Vo=666,Tn=1,mo=2,ma=3,vo=4,Pg=3,ha=(e,n)=>(e.msg=ao[n],n),vh=e=>e*2-(e>4?9:0),Ii=e=>{let n=e.length;for(;--n>=0;)e[n]=0},Cg=e=>{let n,t,r,i=e.w_size;n=e.hash_size,r=n;do t=e.head[--r],e.head[r]=t>=i?t-i:0;while(--n);n=i,r=n;do t=e.prev[--r],e.prev[r]=t>=i?t-i:0;while(--n)};let Eg=(e,n,t)=>(n<<e.hash_shift^t)&e.hash_mask,Ri=Eg;const Qn=e=>{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},tr=(e,n)=>{sg(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,Qn(e.strm)},xt=(e,n)=>{e.pending_buf[e.pending++]=n},Yo=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},Nu=(e,n,t,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,n.set(e.input.subarray(e.next_in,e.next_in+i),t),e.state.wrap===1?e.adler=as(e.adler,n,i,t):e.state.wrap===2&&(e.adler=dn(e.adler,n,i,t)),e.next_in+=i,e.total_in+=i,i)},g1=(e,n)=>{let t=e.max_chain_length,r=e.strstart,i,a,l=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-Yr?e.strstart-(e.w_size-Yr):0,f=e.window,d=e.w_mask,b=e.prev,v=e.strstart+ji;let p=f[r+l-1],N=f[r+l];e.prev_length>=e.good_match&&(t>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=n,!(f[i+l]!==N||f[i+l-1]!==p||f[i]!==f[r]||f[++i]!==f[r+1])){r+=2,i++;do;while(f[++r]===f[++i]&&f[++r]===f[++i]&&f[++r]===f[++i]&&f[++r]===f[++i]&&f[++r]===f[++i]&&f[++r]===f[++i]&&f[++r]===f[++i]&&f[++r]===f[++i]&&r<v);if(a=ji-(v-r),r=v-ji,a>l){if(e.match_start=n,l=a,a>=s)break;p=f[r+l-1],N=f[r+l]}}while((n=b[n&d])>c&&--t!==0);return l<=e.lookahead?l:e.lookahead},so=e=>{const n=e.w_size;let t,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-Yr)&&(e.window.set(e.window.subarray(n,n+n-r),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),Cg(e),r+=n),e.strm.avail_in===0)break;if(t=Nu(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=t,e.lookahead+e.insert>=mt)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Ri(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Ri(e,e.ins_h,e.window[i+mt-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<mt)););}while(e.lookahead<Yr&&e.strm.avail_in!==0)},m1=(e,n)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,a,l=0,s=e.strm.avail_in;do{if(r=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>a&&(r=a),r<t&&(r===0&&n!==hr||n===Ti||r!==i+e.strm.avail_in)))break;l=n===hr&&r===i+e.strm.avail_in?1:0,vu(e,0,0,l),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Qn(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(Nu(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(l===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),l?vo:n!==Ti&&n!==hr&&e.strm.avail_in===0&&e.strstart===e.block_start?mo:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(Nu(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,t=a>e.w_size?e.w_size:a,i=e.strstart-e.block_start,(i>=t||(i||n===hr)&&n!==Ti&&e.strm.avail_in===0&&i<=a)&&(r=i>a?a:i,l=n===hr&&e.strm.avail_in===0&&r===i?1:0,vu(e,e.block_start,r,l),e.block_start+=r,Qn(e.strm)),l?ma:Tn)},jc=(e,n)=>{let t,r;for(;;){if(e.lookahead<Yr){if(so(e),e.lookahead<Yr&&n===Ti)return Tn;if(e.lookahead===0)break}if(t=0,e.lookahead>=mt&&(e.ins_h=Ri(e,e.ins_h,e.window[e.strstart+mt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-Yr&&(e.match_length=g1(e,t)),e.match_length>=mt)if(r=Oi(e,e.strstart-e.match_start,e.match_length-mt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=mt){e.match_length--;do e.strstart++,e.ins_h=Ri(e,e.ins_h,e.window[e.strstart+mt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Ri(e,e.ins_h,e.window[e.strstart+1]);else r=Oi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(tr(e,!1),e.strm.avail_out===0))return Tn}return e.insert=e.strstart<mt-1?e.strstart:mt-1,n===hr?(tr(e,!0),e.strm.avail_out===0?ma:vo):e.sym_next&&(tr(e,!1),e.strm.avail_out===0)?Tn:mo},Ha=(e,n)=>{let t,r,i;for(;;){if(e.lookahead<Yr){if(so(e),e.lookahead<Yr&&n===Ti)return Tn;if(e.lookahead===0)break}if(t=0,e.lookahead>=mt&&(e.ins_h=Ri(e,e.ins_h,e.window[e.strstart+mt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=mt-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-Yr&&(e.match_length=g1(e,t),e.match_length<=5&&(e.strategy===dg||e.match_length===mt&&e.strstart-e.match_start>4096)&&(e.match_length=mt-1)),e.prev_length>=mt&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-mt,r=Oi(e,e.strstart-1-e.prev_match,e.prev_length-mt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Ri(e,e.ins_h,e.window[e.strstart+mt-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=mt-1,e.strstart++,r&&(tr(e,!1),e.strm.avail_out===0))return Tn}else if(e.match_available){if(r=Oi(e,0,e.window[e.strstart-1]),r&&tr(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Tn}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Oi(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<mt-1?e.strstart:mt-1,n===hr?(tr(e,!0),e.strm.avail_out===0?ma:vo):e.sym_next&&(tr(e,!1),e.strm.avail_out===0)?Tn:mo},Mg=(e,n)=>{let t,r,i,a;const l=e.window;for(;;){if(e.lookahead<=ji){if(so(e),e.lookahead<=ji&&n===Ti)return Tn;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=mt&&e.strstart>0&&(i=e.strstart-1,r=l[i],r===l[++i]&&r===l[++i]&&r===l[++i])){a=e.strstart+ji;do;while(r===l[++i]&&r===l[++i]&&r===l[++i]&&r===l[++i]&&r===l[++i]&&r===l[++i]&&r===l[++i]&&r===l[++i]&&i<a);e.match_length=ji-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=mt?(t=Oi(e,1,e.match_length-mt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=Oi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(tr(e,!1),e.strm.avail_out===0))return Tn}return e.insert=0,n===hr?(tr(e,!0),e.strm.avail_out===0?ma:vo):e.sym_next&&(tr(e,!1),e.strm.avail_out===0)?Tn:mo},Ig=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(so(e),e.lookahead===0)){if(n===Ti)return Tn;break}if(e.match_length=0,t=Oi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(tr(e,!1),e.strm.avail_out===0))return Tn}return e.insert=0,n===hr?(tr(e,!0),e.strm.avail_out===0?ma:vo):e.sym_next&&(tr(e,!1),e.strm.avail_out===0)?Tn:mo};function Br(e,n,t,r,i){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=r,this.func=i}const Go=[new Br(0,0,0,0,m1),new Br(4,4,8,4,jc),new Br(4,5,16,8,jc),new Br(4,6,32,32,jc),new Br(4,4,16,16,Ha),new Br(8,16,32,32,Ha),new Br(8,16,128,128,Ha),new Br(8,32,128,256,Ha),new Br(32,128,258,1024,Ha),new Br(32,258,258,4096,Ha)],jg=e=>{e.window_size=2*e.w_size,Ii(e.head),e.max_lazy_match=Go[e.level].max_lazy,e.good_match=Go[e.level].good_length,e.nice_match=Go[e.level].nice_length,e.max_chain_length=Go[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=mt-1,e.match_available=0,e.ins_h=0};function Fg(){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=Ml,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(Sg*2),this.dyn_dtree=new Uint16Array((2*Ng+1)*2),this.bl_tree=new Uint16Array((2*Ag+1)*2),Ii(this.dyn_ltree),Ii(this.dyn_dtree),Ii(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Lg+1),this.heap=new Uint16Array(2*bu+1),Ii(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*bu+1),Ii(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 ds=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==oo&&n.status!==Yu&&n.status!==wu&&n.status!==yu&&n.status!==_u&&n.status!==xu&&n.status!==fa&&n.status!==Vo?1:0},v1=e=>{if(ds(e))return ha(e,Hr);e.total_in=e.total_out=0,e.data_type=vg;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?Yu:n.wrap?oo:fa,e.adler=n.wrap===2?0:1,n.last_flush=-2,og(n),yn},b1=e=>{const n=v1(e);return n===yn&&jg(e.state),n},Dg=(e,n)=>ds(e)||e.state.wrap!==2?Hr:(e.state.gzhead=n,yn),w1=(e,n,t,r,i,a)=>{if(!e)return Hr;let l=1;if(n===hg&&(n=6),r<0?(l=0,r=-r):r>15&&(l=2,r-=16),i<1||i>bg||t!==Ml||r<8||r>15||n<0||n>9||a<0||a>gg||r===8&&l!==1)return ha(e,Hr);r===8&&(r=9);const s=new Fg;return e.state=s,s.strm=e,s.status=oo,s.wrap=l,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+mt-1)/mt),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=n,s.strategy=a,s.method=t,b1(e)},Og=(e,n)=>w1(e,n,Ml,wg,yg,mg),Tg=(e,n)=>{if(ds(e)||n>gh||n<0)return e?ha(e,Hr):Hr;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===Vo&&n!==hr)return ha(e,e.avail_out===0?Ic:Hr);const r=t.last_flush;if(t.last_flush=n,t.pending!==0){if(Qn(e),e.avail_out===0)return t.last_flush=-1,yn}else if(e.avail_in===0&&vh(n)<=vh(r)&&n!==hr)return ha(e,Ic);if(t.status===Vo&&e.avail_in!==0)return ha(e,Ic);if(t.status===oo&&t.wrap===0&&(t.status=fa),t.status===oo){let i=Ml+(t.w_bits-8<<4)<<8,a=-1;if(t.strategy>=tl||t.level<2?a=0:t.level<6?a=1:t.level===6?a=2:a=3,i|=a<<6,t.strstart!==0&&(i|=kg),i+=31-i%31,Yo(t,i),t.strstart!==0&&(Yo(t,e.adler>>>16),Yo(t,e.adler&65535)),e.adler=1,t.status=fa,Qn(e),t.pending!==0)return t.last_flush=-1,yn}if(t.status===Yu){if(e.adler=0,xt(t,31),xt(t,139),xt(t,8),t.gzhead)xt(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),xt(t,t.gzhead.time&255),xt(t,t.gzhead.time>>8&255),xt(t,t.gzhead.time>>16&255),xt(t,t.gzhead.time>>24&255),xt(t,t.level===9?2:t.strategy>=tl||t.level<2?4:0),xt(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(xt(t,t.gzhead.extra.length&255),xt(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=dn(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=wu;else if(xt(t,0),xt(t,0),xt(t,0),xt(t,0),xt(t,0),xt(t,t.level===9?2:t.strategy>=tl||t.level<2?4:0),xt(t,Pg),t.status=fa,Qn(e),t.pending!==0)return t.last_flush=-1,yn}if(t.status===wu){if(t.gzhead.extra){let i=t.pending,a=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+a>t.pending_buf_size;){let s=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+s),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>i&&(e.adler=dn(e.adler,t.pending_buf,t.pending-i,i)),t.gzindex+=s,Qn(e),t.pending!==0)return t.last_flush=-1,yn;i=0,a-=s}let l=new Uint8Array(t.gzhead.extra);t.pending_buf.set(l.subarray(t.gzindex,t.gzindex+a),t.pending),t.pending+=a,t.gzhead.hcrc&&t.pending>i&&(e.adler=dn(e.adler,t.pending_buf,t.pending-i,i)),t.gzindex=0}t.status=yu}if(t.status===yu){if(t.gzhead.name){let i=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>i&&(e.adler=dn(e.adler,t.pending_buf,t.pending-i,i)),Qn(e),t.pending!==0)return t.last_flush=-1,yn;i=0}t.gzindex<t.gzhead.name.length?a=t.gzhead.name.charCodeAt(t.gzindex++)&255:a=0,xt(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>i&&(e.adler=dn(e.adler,t.pending_buf,t.pending-i,i)),t.gzindex=0}t.status=_u}if(t.status===_u){if(t.gzhead.comment){let i=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>i&&(e.adler=dn(e.adler,t.pending_buf,t.pending-i,i)),Qn(e),t.pending!==0)return t.last_flush=-1,yn;i=0}t.gzindex<t.gzhead.comment.length?a=t.gzhead.comment.charCodeAt(t.gzindex++)&255:a=0,xt(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>i&&(e.adler=dn(e.adler,t.pending_buf,t.pending-i,i))}t.status=xu}if(t.status===xu){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Qn(e),t.pending!==0))return t.last_flush=-1,yn;xt(t,e.adler&255),xt(t,e.adler>>8&255),e.adler=0}if(t.status=fa,Qn(e),t.pending!==0)return t.last_flush=-1,yn}if(e.avail_in!==0||t.lookahead!==0||n!==Ti&&t.status!==Vo){let i=t.level===0?m1(t,n):t.strategy===tl?Ig(t,n):t.strategy===pg?Mg(t,n):Go[t.level].func(t,n);if((i===ma||i===vo)&&(t.status=Vo),i===Tn||i===ma)return e.avail_out===0&&(t.last_flush=-1),yn;if(i===mo&&(n===cg?lg(t):n!==gh&&(vu(t,0,0,!1),n===ug&&(Ii(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Qn(e),e.avail_out===0))return t.last_flush=-1,yn}return n!==hr?yn:t.wrap<=0?mh:(t.wrap===2?(xt(t,e.adler&255),xt(t,e.adler>>8&255),xt(t,e.adler>>16&255),xt(t,e.adler>>24&255),xt(t,e.total_in&255),xt(t,e.total_in>>8&255),xt(t,e.total_in>>16&255),xt(t,e.total_in>>24&255)):(Yo(t,e.adler>>>16),Yo(t,e.adler&65535)),Qn(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?yn:mh)},Rg=e=>{if(ds(e))return Hr;const n=e.state.status;return e.state=null,n===fa?ha(e,fg):yn},Bg=(e,n)=>{let t=n.length;if(ds(e))return Hr;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==oo||r.lookahead)return Hr;if(i===1&&(e.adler=as(e.adler,n,t,0)),r.wrap=0,t>=r.w_size){i===0&&(Ii(r.head),r.strstart=0,r.block_start=0,r.insert=0);let c=new Uint8Array(r.w_size);c.set(n.subarray(t-r.w_size,t),0),n=c,t=r.w_size}const a=e.avail_in,l=e.next_in,s=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,so(r);r.lookahead>=mt;){let c=r.strstart,f=r.lookahead-(mt-1);do r.ins_h=Ri(r,r.ins_h,r.window[c+mt-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++;while(--f);r.strstart=c,r.lookahead=mt-1,so(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=mt-1,r.match_available=0,e.next_in=l,e.input=s,e.avail_in=a,r.wrap=i,yn};var Ug=Og,qg=w1,zg=b1,Wg=v1,Hg=Dg,Yg=Tg,Vg=Rg,Gg=Bg,$g="pako deflate (from Nodeca project)",Xo={deflateInit:Ug,deflateInit2:qg,deflateReset:zg,deflateResetKeep:Wg,deflateSetHeader:Hg,deflate:Yg,deflateEnd:Vg,deflateSetDictionary:Gg,deflateInfo:$g};const Zg=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var Kg=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const r in t)Zg(t,r)&&(e[r]=t[r])}}return e},Xg=e=>{let n=0;for(let r=0,i=e.length;r<i;r++)n+=e[r].length;const t=new Uint8Array(n);for(let r=0,i=0,a=e.length;r<a;r++){let l=e[r];t.set(l,i),i+=l.length}return t},Il={assign:Kg,flattenChunks:Xg};let y1=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{y1=!1}const os=new Uint8Array(256);for(let e=0;e<256;e++)os[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;os[254]=os[254]=1;var Jg=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,r,i,a,l=e.length,s=0;for(i=0;i<l;i++)t=e.charCodeAt(i),(t&64512)===55296&&i+1<l&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),i++)),s+=t<128?1:t<2048?2:t<65536?3:4;for(n=new Uint8Array(s),a=0,i=0;a<s;i++)t=e.charCodeAt(i),(t&64512)===55296&&i+1<l&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),i++)),t<128?n[a++]=t:t<2048?(n[a++]=192|t>>>6,n[a++]=128|t&63):t<65536?(n[a++]=224|t>>>12,n[a++]=128|t>>>6&63,n[a++]=128|t&63):(n[a++]=240|t>>>18,n[a++]=128|t>>>12&63,n[a++]=128|t>>>6&63,n[a++]=128|t&63);return n};const Qg=(e,n)=>{if(n<65534&&e.subarray&&y1)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let r=0;r<n;r++)t+=String.fromCharCode(e[r]);return t};var em=(e,n)=>{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let r,i;const a=new Array(t*2);for(i=0,r=0;r<t;){let l=e[r++];if(l<128){a[i++]=l;continue}let s=os[l];if(s>4){a[i++]=65533,r+=s-1;continue}for(l&=s===2?31:s===3?15:7;s>1&&r<t;)l=l<<6|e[r++]&63,s--;if(s>1){a[i++]=65533;continue}l<65536?a[i++]=l:(l-=65536,a[i++]=55296|l>>10&1023,a[i++]=56320|l&1023)}return Qg(a,i)},tm=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+os[e[t]]>n?t:n},ss={string2buf:Jg,buf2string:em,utf8border:tm};function nm(){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 _1=nm;const x1=Object.prototype.toString,{Z_NO_FLUSH:rm,Z_SYNC_FLUSH:im,Z_FULL_FLUSH:am,Z_FINISH:om,Z_OK:Al,Z_STREAM_END:sm,Z_DEFAULT_COMPRESSION:lm,Z_DEFAULT_STRATEGY:cm,Z_DEFLATED:um}=hs;function Vu(e){this.options=Il.assign({level:lm,method:um,chunkSize:16384,windowBits:15,memLevel:8,strategy:cm},e||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _1,this.strm.avail_out=0;let t=Xo.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==Al)throw new Error(ao[t]);if(n.header&&Xo.deflateSetHeader(this.strm,n.header),n.dictionary){let r;if(typeof n.dictionary=="string"?r=ss.string2buf(n.dictionary):x1.call(n.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(n.dictionary):r=n.dictionary,t=Xo.deflateSetDictionary(this.strm,r),t!==Al)throw new Error(ao[t]);this._dict_set=!0}}Vu.prototype.push=function(e,n){const t=this.strm,r=this.options.chunkSize;let i,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?om:rm,typeof e=="string"?t.input=ss.string2buf(e):x1.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(r),t.next_out=0,t.avail_out=r),(a===im||a===am)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(i=Xo.deflate(t,a),i===sm)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),i=Xo.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Al;if(t.avail_out===0){this.onData(t.output);continue}if(a>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};Vu.prototype.onData=function(e){this.chunks.push(e)};Vu.prototype.onEnd=function(e){e===Al&&(this.result=Il.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};const nl=16209,fm=16191;var hm=function(n,t){let r,i,a,l,s,c,f,d,b,v,p,N,L,E,_,U,B,F,ee,le,oe,K,I,V;const S=n.state;r=n.next_in,I=n.input,i=r+(n.avail_in-5),a=n.next_out,V=n.output,l=a-(t-n.avail_out),s=a+(n.avail_out-257),c=S.dmax,f=S.wsize,d=S.whave,b=S.wnext,v=S.window,p=S.hold,N=S.bits,L=S.lencode,E=S.distcode,_=(1<<S.lenbits)-1,U=(1<<S.distbits)-1;e:do{N<15&&(p+=I[r++]<<N,N+=8,p+=I[r++]<<N,N+=8),B=L[p&_];t:for(;;){if(F=B>>>24,p>>>=F,N-=F,F=B>>>16&255,F===0)V[a++]=B&65535;else if(F&16){ee=B&65535,F&=15,F&&(N<F&&(p+=I[r++]<<N,N+=8),ee+=p&(1<<F)-1,p>>>=F,N-=F),N<15&&(p+=I[r++]<<N,N+=8,p+=I[r++]<<N,N+=8),B=E[p&U];n:for(;;){if(F=B>>>24,p>>>=F,N-=F,F=B>>>16&255,F&16){if(le=B&65535,F&=15,N<F&&(p+=I[r++]<<N,N+=8,N<F&&(p+=I[r++]<<N,N+=8)),le+=p&(1<<F)-1,le>c){n.msg="invalid distance too far back",S.mode=nl;break e}if(p>>>=F,N-=F,F=a-l,le>F){if(F=le-F,F>d&&S.sane){n.msg="invalid distance too far back",S.mode=nl;break e}if(oe=0,K=v,b===0){if(oe+=f-F,F<ee){ee-=F;do V[a++]=v[oe++];while(--F);oe=a-le,K=V}}else if(b<F){if(oe+=f+b-F,F-=b,F<ee){ee-=F;do V[a++]=v[oe++];while(--F);if(oe=0,b<ee){F=b,ee-=F;do V[a++]=v[oe++];while(--F);oe=a-le,K=V}}}else if(oe+=b-F,F<ee){ee-=F;do V[a++]=v[oe++];while(--F);oe=a-le,K=V}for(;ee>2;)V[a++]=K[oe++],V[a++]=K[oe++],V[a++]=K[oe++],ee-=3;ee&&(V[a++]=K[oe++],ee>1&&(V[a++]=K[oe++]))}else{oe=a-le;do V[a++]=V[oe++],V[a++]=V[oe++],V[a++]=V[oe++],ee-=3;while(ee>2);ee&&(V[a++]=V[oe++],ee>1&&(V[a++]=V[oe++]))}}else if(F&64){n.msg="invalid distance code",S.mode=nl;break e}else{B=E[(B&65535)+(p&(1<<F)-1)];continue n}break}}else if(F&64)if(F&32){S.mode=fm;break e}else{n.msg="invalid literal/length code",S.mode=nl;break e}else{B=L[(B&65535)+(p&(1<<F)-1)];continue t}break}}while(r<i&&a<s);ee=N>>3,r-=ee,N-=ee<<3,p&=(1<<N)-1,n.next_in=r,n.next_out=a,n.avail_in=r<i?5+(i-r):5-(r-i),n.avail_out=a<s?257+(s-a):257-(a-s),S.hold=p,S.bits=N};const Ya=15,bh=852,wh=592,yh=0,Fc=1,_h=2,dm=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]),pm=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]),gm=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]),mm=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]),vm=(e,n,t,r,i,a,l,s)=>{const c=s.bits;let f=0,d=0,b=0,v=0,p=0,N=0,L=0,E=0,_=0,U=0,B,F,ee,le,oe,K=null,I;const V=new Uint16Array(Ya+1),S=new Uint16Array(Ya+1);let j=null,W,H,se;for(f=0;f<=Ya;f++)V[f]=0;for(d=0;d<r;d++)V[n[t+d]]++;for(p=c,v=Ya;v>=1&&V[v]===0;v--);if(p>v&&(p=v),v===0)return i[a++]=1<<24|64<<16|0,i[a++]=1<<24|64<<16|0,s.bits=1,0;for(b=1;b<v&&V[b]===0;b++);for(p<b&&(p=b),E=1,f=1;f<=Ya;f++)if(E<<=1,E-=V[f],E<0)return-1;if(E>0&&(e===yh||v!==1))return-1;for(S[1]=0,f=1;f<Ya;f++)S[f+1]=S[f]+V[f];for(d=0;d<r;d++)n[t+d]!==0&&(l[S[n[t+d]]++]=d);if(e===yh?(K=j=l,I=20):e===Fc?(K=dm,j=pm,I=257):(K=gm,j=mm,I=0),U=0,d=0,f=b,oe=a,N=p,L=0,ee=-1,_=1<<p,le=_-1,e===Fc&&_>bh||e===_h&&_>wh)return 1;for(;;){W=f-L,l[d]+1<I?(H=0,se=l[d]):l[d]>=I?(H=j[l[d]-I],se=K[l[d]-I]):(H=96,se=0),B=1<<f-L,F=1<<N,b=F;do F-=B,i[oe+(U>>L)+F]=W<<24|H<<16|se|0;while(F!==0);for(B=1<<f-1;U&B;)B>>=1;if(B!==0?(U&=B-1,U+=B):U=0,d++,--V[f]===0){if(f===v)break;f=n[t+l[d]]}if(f>p&&(U&le)!==ee){for(L===0&&(L=p),oe+=b,N=f-L,E=1<<N;N+L<v&&(E-=V[N+L],!(E<=0));)N++,E<<=1;if(_+=1<<N,e===Fc&&_>bh||e===_h&&_>wh)return 1;ee=U&le,i[ee]=p<<24|N<<16|oe-a|0}}return U!==0&&(i[oe+U]=f-L<<24|64<<16|0),s.bits=p,0};var Jo=vm;const bm=0,N1=1,A1=2,{Z_FINISH:xh,Z_BLOCK:wm,Z_TREES:rl,Z_OK:va,Z_STREAM_END:ym,Z_NEED_DICT:_m,Z_STREAM_ERROR:dr,Z_DATA_ERROR:S1,Z_MEM_ERROR:L1,Z_BUF_ERROR:xm,Z_DEFLATED:Nh}=hs,jl=16180,Ah=16181,Sh=16182,Lh=16183,kh=16184,Ph=16185,Ch=16186,Eh=16187,Mh=16188,Ih=16189,Sl=16190,ui=16191,Dc=16192,jh=16193,Oc=16194,Fh=16195,Dh=16196,Oh=16197,Th=16198,il=16199,al=16200,Rh=16201,Bh=16202,Uh=16203,qh=16204,zh=16205,Tc=16206,Wh=16207,Hh=16208,Ht=16209,k1=16210,P1=16211,Nm=852,Am=592,Sm=15,Lm=Sm,Yh=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function km(){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 wa=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.mode<jl||n.mode>P1?1:0},C1=e=>{if(wa(e))return dr;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=jl,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(Nm),n.distcode=n.distdyn=new Int32Array(Am),n.sane=1,n.back=-1,va},E1=e=>{if(wa(e))return dr;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,C1(e)},M1=(e,n)=>{let t;if(wa(e))return dr;const r=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?dr:(r.window!==null&&r.wbits!==n&&(r.window=null),r.wrap=t,r.wbits=n,E1(e))},I1=(e,n)=>{if(!e)return dr;const t=new km;e.state=t,t.strm=e,t.window=null,t.mode=jl;const r=M1(e,n);return r!==va&&(e.state=null),r},Pm=e=>I1(e,Lm);let Vh=!0,Rc,Bc;const Cm=e=>{if(Vh){Rc=new Int32Array(512),Bc=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(Jo(N1,e.lens,0,288,Rc,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;Jo(A1,e.lens,0,32,Bc,0,e.work,{bits:5}),Vh=!1}e.lencode=Rc,e.lenbits=9,e.distcode=Bc,e.distbits=5},j1=(e,n,t,r)=>{let i;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(n.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(n.subarray(t-r,t-r+i),a.wnext),r-=i,r?(a.window.set(n.subarray(t-r,t),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},Em=(e,n)=>{let t,r,i,a,l,s,c,f,d,b,v,p,N,L,E=0,_,U,B,F,ee,le,oe,K;const I=new Uint8Array(4);let V,S;const j=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(wa(e)||!e.output||!e.input&&e.avail_in!==0)return dr;t=e.state,t.mode===ui&&(t.mode=Dc),l=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,f=t.hold,d=t.bits,b=s,v=c,K=va;e:for(;;)switch(t.mode){case jl:if(t.wrap===0){t.mode=Dc;break}for(;d<16;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}if(t.wrap&2&&f===35615){t.wbits===0&&(t.wbits=15),t.check=0,I[0]=f&255,I[1]=f>>>8&255,t.check=dn(t.check,I,2,0),f=0,d=0,t.mode=Ah;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((f&255)<<8)+(f>>8))%31){e.msg="incorrect header check",t.mode=Ht;break}if((f&15)!==Nh){e.msg="unknown compression method",t.mode=Ht;break}if(f>>>=4,d-=4,oe=(f&15)+8,t.wbits===0&&(t.wbits=oe),oe>15||oe>t.wbits){e.msg="invalid window size",t.mode=Ht;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=f&512?Ih:ui,f=0,d=0;break;case Ah:for(;d<16;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}if(t.flags=f,(t.flags&255)!==Nh){e.msg="unknown compression method",t.mode=Ht;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=Ht;break}t.head&&(t.head.text=f>>8&1),t.flags&512&&t.wrap&4&&(I[0]=f&255,I[1]=f>>>8&255,t.check=dn(t.check,I,2,0)),f=0,d=0,t.mode=Sh;case Sh:for(;d<32;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}t.head&&(t.head.time=f),t.flags&512&&t.wrap&4&&(I[0]=f&255,I[1]=f>>>8&255,I[2]=f>>>16&255,I[3]=f>>>24&255,t.check=dn(t.check,I,4,0)),f=0,d=0,t.mode=Lh;case Lh:for(;d<16;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}t.head&&(t.head.xflags=f&255,t.head.os=f>>8),t.flags&512&&t.wrap&4&&(I[0]=f&255,I[1]=f>>>8&255,t.check=dn(t.check,I,2,0)),f=0,d=0,t.mode=kh;case kh:if(t.flags&1024){for(;d<16;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}t.length=f,t.head&&(t.head.extra_len=f),t.flags&512&&t.wrap&4&&(I[0]=f&255,I[1]=f>>>8&255,t.check=dn(t.check,I,2,0)),f=0,d=0}else t.head&&(t.head.extra=null);t.mode=Ph;case Ph:if(t.flags&1024&&(p=t.length,p>s&&(p=s),p&&(t.head&&(oe=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(r.subarray(a,a+p),oe)),t.flags&512&&t.wrap&4&&(t.check=dn(t.check,r,p,a)),s-=p,a+=p,t.length-=p),t.length))break e;t.length=0,t.mode=Ch;case Ch:if(t.flags&2048){if(s===0)break e;p=0;do oe=r[a+p++],t.head&&oe&&t.length<65536&&(t.head.name+=String.fromCharCode(oe));while(oe&&p<s);if(t.flags&512&&t.wrap&4&&(t.check=dn(t.check,r,p,a)),s-=p,a+=p,oe)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=Eh;case Eh:if(t.flags&4096){if(s===0)break e;p=0;do oe=r[a+p++],t.head&&oe&&t.length<65536&&(t.head.comment+=String.fromCharCode(oe));while(oe&&p<s);if(t.flags&512&&t.wrap&4&&(t.check=dn(t.check,r,p,a)),s-=p,a+=p,oe)break e}else t.head&&(t.head.comment=null);t.mode=Mh;case Mh:if(t.flags&512){for(;d<16;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}if(t.wrap&4&&f!==(t.check&65535)){e.msg="header crc mismatch",t.mode=Ht;break}f=0,d=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=ui;break;case Ih:for(;d<32;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}e.adler=t.check=Yh(f),f=0,d=0,t.mode=Sl;case Sl:if(t.havedict===0)return e.next_out=l,e.avail_out=c,e.next_in=a,e.avail_in=s,t.hold=f,t.bits=d,_m;e.adler=t.check=1,t.mode=ui;case ui:if(n===wm||n===rl)break e;case Dc:if(t.last){f>>>=d&7,d-=d&7,t.mode=Tc;break}for(;d<3;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}switch(t.last=f&1,f>>>=1,d-=1,f&3){case 0:t.mode=jh;break;case 1:if(Cm(t),t.mode=il,n===rl){f>>>=2,d-=2;break e}break;case 2:t.mode=Dh;break;case 3:e.msg="invalid block type",t.mode=Ht}f>>>=2,d-=2;break;case jh:for(f>>>=d&7,d-=d&7;d<32;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}if((f&65535)!==(f>>>16^65535)){e.msg="invalid stored block lengths",t.mode=Ht;break}if(t.length=f&65535,f=0,d=0,t.mode=Oc,n===rl)break e;case Oc:t.mode=Fh;case Fh:if(p=t.length,p){if(p>s&&(p=s),p>c&&(p=c),p===0)break e;i.set(r.subarray(a,a+p),l),s-=p,a+=p,c-=p,l+=p,t.length-=p;break}t.mode=ui;break;case Dh:for(;d<14;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}if(t.nlen=(f&31)+257,f>>>=5,d-=5,t.ndist=(f&31)+1,f>>>=5,d-=5,t.ncode=(f&15)+4,f>>>=4,d-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=Ht;break}t.have=0,t.mode=Oh;case Oh:for(;t.have<t.ncode;){for(;d<3;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}t.lens[j[t.have++]]=f&7,f>>>=3,d-=3}for(;t.have<19;)t.lens[j[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,V={bits:t.lenbits},K=Jo(bm,t.lens,0,19,t.lencode,0,t.work,V),t.lenbits=V.bits,K){e.msg="invalid code lengths set",t.mode=Ht;break}t.have=0,t.mode=Th;case Th:for(;t.have<t.nlen+t.ndist;){for(;E=t.lencode[f&(1<<t.lenbits)-1],_=E>>>24,U=E>>>16&255,B=E&65535,!(_<=d);){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}if(B<16)f>>>=_,d-=_,t.lens[t.have++]=B;else{if(B===16){for(S=_+2;d<S;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}if(f>>>=_,d-=_,t.have===0){e.msg="invalid bit length repeat",t.mode=Ht;break}oe=t.lens[t.have-1],p=3+(f&3),f>>>=2,d-=2}else if(B===17){for(S=_+3;d<S;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}f>>>=_,d-=_,oe=0,p=3+(f&7),f>>>=3,d-=3}else{for(S=_+7;d<S;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}f>>>=_,d-=_,oe=0,p=11+(f&127),f>>>=7,d-=7}if(t.have+p>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=Ht;break}for(;p--;)t.lens[t.have++]=oe}}if(t.mode===Ht)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=Ht;break}if(t.lenbits=9,V={bits:t.lenbits},K=Jo(N1,t.lens,0,t.nlen,t.lencode,0,t.work,V),t.lenbits=V.bits,K){e.msg="invalid literal/lengths set",t.mode=Ht;break}if(t.distbits=6,t.distcode=t.distdyn,V={bits:t.distbits},K=Jo(A1,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,V),t.distbits=V.bits,K){e.msg="invalid distances set",t.mode=Ht;break}if(t.mode=il,n===rl)break e;case il:t.mode=al;case al:if(s>=6&&c>=258){e.next_out=l,e.avail_out=c,e.next_in=a,e.avail_in=s,t.hold=f,t.bits=d,hm(e,v),l=e.next_out,i=e.output,c=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,f=t.hold,d=t.bits,t.mode===ui&&(t.back=-1);break}for(t.back=0;E=t.lencode[f&(1<<t.lenbits)-1],_=E>>>24,U=E>>>16&255,B=E&65535,!(_<=d);){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}if(U&&!(U&240)){for(F=_,ee=U,le=B;E=t.lencode[le+((f&(1<<F+ee)-1)>>F)],_=E>>>24,U=E>>>16&255,B=E&65535,!(F+_<=d);){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}f>>>=F,d-=F,t.back+=F}if(f>>>=_,d-=_,t.back+=_,t.length=B,U===0){t.mode=zh;break}if(U&32){t.back=-1,t.mode=ui;break}if(U&64){e.msg="invalid literal/length code",t.mode=Ht;break}t.extra=U&15,t.mode=Rh;case Rh:if(t.extra){for(S=t.extra;d<S;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}t.length+=f&(1<<t.extra)-1,f>>>=t.extra,d-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=Bh;case Bh:for(;E=t.distcode[f&(1<<t.distbits)-1],_=E>>>24,U=E>>>16&255,B=E&65535,!(_<=d);){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}if(!(U&240)){for(F=_,ee=U,le=B;E=t.distcode[le+((f&(1<<F+ee)-1)>>F)],_=E>>>24,U=E>>>16&255,B=E&65535,!(F+_<=d);){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}f>>>=F,d-=F,t.back+=F}if(f>>>=_,d-=_,t.back+=_,U&64){e.msg="invalid distance code",t.mode=Ht;break}t.offset=B,t.extra=U&15,t.mode=Uh;case Uh:if(t.extra){for(S=t.extra;d<S;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}t.offset+=f&(1<<t.extra)-1,f>>>=t.extra,d-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=Ht;break}t.mode=qh;case qh:if(c===0)break e;if(p=v-c,t.offset>p){if(p=t.offset-p,p>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=Ht;break}p>t.wnext?(p-=t.wnext,N=t.wsize-p):N=t.wnext-p,p>t.length&&(p=t.length),L=t.window}else L=i,N=l-t.offset,p=t.length;p>c&&(p=c),c-=p,t.length-=p;do i[l++]=L[N++];while(--p);t.length===0&&(t.mode=al);break;case zh:if(c===0)break e;i[l++]=t.length,c--,t.mode=al;break;case Tc:if(t.wrap){for(;d<32;){if(s===0)break e;s--,f|=r[a++]<<d,d+=8}if(v-=c,e.total_out+=v,t.total+=v,t.wrap&4&&v&&(e.adler=t.check=t.flags?dn(t.check,i,v,l-v):as(t.check,i,v,l-v)),v=c,t.wrap&4&&(t.flags?f:Yh(f))!==t.check){e.msg="incorrect data check",t.mode=Ht;break}f=0,d=0}t.mode=Wh;case Wh:if(t.wrap&&t.flags){for(;d<32;){if(s===0)break e;s--,f+=r[a++]<<d,d+=8}if(t.wrap&4&&f!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=Ht;break}f=0,d=0}t.mode=Hh;case Hh:K=ym;break e;case Ht:K=S1;break e;case k1:return L1;case P1:default:return dr}return e.next_out=l,e.avail_out=c,e.next_in=a,e.avail_in=s,t.hold=f,t.bits=d,(t.wsize||v!==e.avail_out&&t.mode<Ht&&(t.mode<Tc||n!==xh))&&j1(e,e.output,e.next_out,v-e.avail_out),b-=e.avail_in,v-=e.avail_out,e.total_in+=b,e.total_out+=v,t.total+=v,t.wrap&4&&v&&(e.adler=t.check=t.flags?dn(t.check,i,v,e.next_out-v):as(t.check,i,v,e.next_out-v)),e.data_type=t.bits+(t.last?64:0)+(t.mode===ui?128:0)+(t.mode===il||t.mode===Oc?256:0),(b===0&&v===0||n===xh)&&K===va&&(K=xm),K},Mm=e=>{if(wa(e))return dr;let n=e.state;return n.window&&(n.window=null),e.state=null,va},Im=(e,n)=>{if(wa(e))return dr;const t=e.state;return t.wrap&2?(t.head=n,n.done=!1,va):dr},jm=(e,n)=>{const t=n.length;let r,i,a;return wa(e)||(r=e.state,r.wrap!==0&&r.mode!==Sl)?dr:r.mode===Sl&&(i=1,i=as(i,n,t,0),i!==r.check)?S1:(a=j1(e,n,t,t),a?(r.mode=k1,L1):(r.havedict=1,va))};var Fm=E1,Dm=M1,Om=C1,Tm=Pm,Rm=I1,Bm=Em,Um=Mm,qm=Im,zm=jm,Wm="pako inflate (from Nodeca project)",di={inflateReset:Fm,inflateReset2:Dm,inflateResetKeep:Om,inflateInit:Tm,inflateInit2:Rm,inflate:Bm,inflateEnd:Um,inflateGetHeader:qm,inflateSetDictionary:zm,inflateInfo:Wm};function Hm(){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 Ym=Hm;const F1=Object.prototype.toString,{Z_NO_FLUSH:Vm,Z_FINISH:Gm,Z_OK:ls,Z_STREAM_END:Uc,Z_NEED_DICT:qc,Z_STREAM_ERROR:$m,Z_DATA_ERROR:Gh,Z_MEM_ERROR:Zm}=hs;function ps(e){this.options=Il.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _1,this.strm.avail_out=0;let t=di.inflateInit2(this.strm,n.windowBits);if(t!==ls)throw new Error(ao[t]);if(this.header=new Ym,di.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=ss.string2buf(n.dictionary):F1.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=di.inflateSetDictionary(this.strm,n.dictionary),t!==ls)))throw new Error(ao[t])}ps.prototype.push=function(e,n){const t=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let a,l,s;if(this.ended)return!1;for(n===~~n?l=n:l=n===!0?Gm:Vm,F1.call(e)==="[object ArrayBuffer]"?t.input=new 
vendor: 10,086 bytes, line 33
33Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(r),t.next_out=0,t.avail_out=r),a=di.inflate(t,l),a===qc&&i&&(a=di.inflateSetDictionary(t,i),a===ls?a=di.inflate(t,l):a===Gh&&(a=qc));t.avail_in>0&&a===Uc&&t.state.wrap>0&&e[t.next_in]!==0;)di.inflateReset(t),a=di.inflate(t,l);switch(a){case $m:case Gh:case qc:case Zm:return this.onEnd(a),this.ended=!0,!1}if(s=t.avail_out,t.next_out&&(t.avail_out===0||a===Uc))if(this.options.to==="string"){let c=ss.utf8border(t.output,t.next_out),f=t.next_out-c,d=ss.buf2string(t.output,c);t.next_out=f,t.avail_out=r-f,f&&t.output.set(t.output.subarray(c,c+f),0),this.onData(d)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===ls&&s===0)){if(a===Uc)return a=di.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};ps.prototype.onData=function(e){this.chunks.push(e)};ps.prototype.onEnd=function(e){e===ls&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Il.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Gu(e,n){const t=new ps(n);if(t.push(e),t.err)throw t.msg||ao[t.err];return t.result}function Km(e,n){return n=n||{},n.raw=!0,Gu(e,n)}var Xm=ps,Jm=Gu,Qm=Km,ev=Gu,tv=hs,nv={Inflate:Xm,inflate:Jm,inflateRaw:Qm,ungzip:ev,constants:tv};const{Inflate:rv,inflate:iv,inflateRaw:b4,ungzip:w4}=nv;var $h=rv,av=iv;const D1=[];for(let e=0;e<256;e++){let n=e;for(let t=0;t<8;t++)n&1?n=3988292384^n>>>1:n=n>>>1;D1[e]=n}const Zh=4294967295;function ov(e,n,t){let r=e;for(let i=0;i<t;i++)r=D1[(r^n[i])&255]^r>>>8;return r}function sv(e,n){return(ov(Zh,e,n)^Zh)>>>0}function Kh(e,n,t){const r=e.readUint32(),i=sv(new Uint8Array(e.buffer,e.byteOffset+e.offset-n-4,n),n);if(i!==r)throw new Error(`CRC mismatch for chunk ${t}. Expected ${r}, found ${i}`)}function O1(e,n,t){for(let r=0;r<t;r++)n[r]=e[r]}function T1(e,n,t,r){let i=0;for(;i<r;i++)n[i]=e[i];for(;i<t;i++)n[i]=e[i]+n[i-r]&255}function R1(e,n,t,r){let i=0;if(t.length===0)for(;i<r;i++)n[i]=e[i];else for(;i<r;i++)n[i]=e[i]+t[i]&255}function B1(e,n,t,r,i){let a=0;if(t.length===0){for(;a<i;a++)n[a]=e[a];for(;a<r;a++)n[a]=e[a]+(n[a-i]>>1)&255}else{for(;a<i;a++)n[a]=e[a]+(t[a]>>1)&255;for(;a<r;a++)n[a]=e[a]+(n[a-i]+t[a]>>1)&255}}function U1(e,n,t,r,i){let a=0;if(t.length===0){for(;a<i;a++)n[a]=e[a];for(;a<r;a++)n[a]=e[a]+n[a-i]&255}else{for(;a<i;a++)n[a]=e[a]+t[a]&255;for(;a<r;a++)n[a]=e[a]+lv(n[a-i],t[a],t[a-i])&255}}function lv(e,n,t){const r=e+n-t,i=Math.abs(r-e),a=Math.abs(r-n),l=Math.abs(r-t);return i<=a&&i<=l?e:a<=l?n:t}function cv(e,n,t,r,i,a){switch(e){case 0:O1(n,t,i);break;case 1:T1(n,t,i,a);break;case 2:R1(n,t,r,i);break;case 3:B1(n,t,r,i,a);break;case 4:U1(n,t,r,i,a);break;default:throw new Error(`Unsupported filter: ${e}`)}}const uv=new Uint16Array([255]),fv=new Uint8Array(uv.buffer),hv=fv[0]===255;function dv(e){const{data:n,width:t,height:r,channels:i,depth:a}=e,l=[{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}],s=Math.ceil(a/8)*i,c=new Uint8Array(r*t*s);let f=0;for(let d=0;d<7;d++){const b=l[d],v=Math.ceil((t-b.x)/b.xStep),p=Math.ceil((r-b.y)/b.yStep);if(v<=0||p<=0)continue;const N=v*s,L=new Uint8Array(N);for(let E=0;E<p;E++){const _=n[f++],U=n.subarray(f,f+N);f+=N;const B=new Uint8Array(N);cv(_,U,B,L,N,s),L.set(B);for(let F=0;F<v;F++){const ee=b.x+F*b.xStep,le=b.y+E*b.yStep;if(!(ee>=t||le>=r))for(let oe=0;oe<s;oe++)c[(le*t+ee)*s+oe]=B[F*s+oe]}}}if(a===16){const d=new Uint16Array(c.buffer);if(hv)for(let b=0;b<d.length;b++)d[b]=pv(d[b]);return d}else return c}function pv(e){return(e&255)<<8|e>>8&255}const gv=new Uint16Array([255]),mv=new Uint8Array(gv.buffer),vv=mv[0]===255,bv=new Uint8Array(0);function Xh(e){const{data:n,width:t,height:r,channels:i,depth:a}=e,l=Math.ceil(a/8)*i,s=Math.ceil(a/8*i*t),c=new Uint8Array(r*s);let f=bv,d=0,b,v;for(let p=0;p<r;p++){switch(b=n.subarray(d+1,d+1+s),v=c.subarray(p*s,(p+1)*s),n[d]){case 0:O1(b,v,s);break;case 1:T1(b,v,s,l);break;case 2:R1(b,v,f,s);break;case 3:B1(b,v,f,s,l);break;case 4:U1(b,v,f,s,l);break;default:throw new Error(`Unsupported filter: ${n[d]}`)}f=v,d+=s+1}if(a===16){const p=new Uint16Array(c.buffer);if(vv)for(let N=0;N<p.length;N++)p[N]=wv(p[N]);return p}else return c}function wv(e){return(e&255)<<8|e>>8&255}const pl=Uint8Array.of(137,80,78,71,13,10,26,10);function Jh(e){if(!yv(e.readBytes(pl.length)))throw new Error("wrong PNG signature")}function yv(e){if(e.length<pl.length)return!1;for(let n=0;n<pl.length;n++)if(e[n]!==pl[n])return!1;return!0}const _v="tEXt",xv=0,q1=new TextDecoder("latin1");function Nv(e){if(Sv(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const Av=/^[\u0000-\u00FF]*$/;function Sv(e){if(!Av.test(e))throw new Error("invalid latin1 text")}function Lv(e,n,t){const r=z1(n);e[r]=kv(n,t-r.length-1)}function z1(e){for(e.mark();e.readByte()!==xv;);const n=e.offset;e.reset();const t=q1.decode(e.readBytes(n-e.offset-1));return e.skip(1),Nv(t),t}function kv(e,n){return q1.decode(e.readBytes(n))}const Jn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},zc={UNKNOWN:-1,DEFLATE:0},Qh={UNKNOWN:-1,ADAPTIVE:0},Wc={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},ol={NONE:0,BACKGROUND:1,PREVIOUS:2},Hc={SOURCE:0,OVER:1};class Pv extends Uu{constructor(t,r={}){super(t);kt(this,"_checkCrc");kt(this,"_inflator");kt(this,"_png");kt(this,"_apng");kt(this,"_end");kt(this,"_hasPalette");kt(this,"_palette");kt(this,"_hasTransparency");kt(this,"_transparency");kt(this,"_compressionMethod");kt(this,"_filterMethod");kt(this,"_interlaceMethod");kt(this,"_colorType");kt(this,"_isAnimated");kt(this,"_numberOfFrames");kt(this,"_numberOfPlays");kt(this,"_frames");kt(this,"_writingDataChunks");const{checkCrc:i=!1}=r;this._checkCrc=i,this._inflator=new $h,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=zc.UNKNOWN,this._filterMethod=Qh.UNKNOWN,this._interlaceMethod=Wc.UNKNOWN,this._colorType=Jn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Jh(this);!this._end;){const t=this.readUint32(),r=this.readChars(4);this.decodeChunk(t,r)}return this.decodeImage(),this._png}decodeApng(){for(Jh(this);!this._end;){const t=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(t,r)}return this.decodeApngImage(),this._apng}decodeChunk(t,r){const i=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case _v:Lv(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-i!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Kh(this,t+4,r):this.skip(4)}decodeApngChunk(t,r){const i=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(t);break;default:this.decodeChunk(t,r),this.offset=i+t;break}if(this.offset-i!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Kh(this,t+4,r):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=Cv(this.readUint8());const r=this.readUint8();this._colorType=r;let i;switch(r){case Jn.GREYSCALE:i=1;break;case Jn.TRUECOLOUR:i=3;break;case Jn.INDEXED_COLOUR:i=1;break;case Jn.GREYSCALE_ALPHA:i=2;break;case Jn.TRUECOLOUR_ALPHA:i=4;break;case Jn.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==zc.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 t={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(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const r=t/3;this._hasPalette=!0;const i=[];this._palette=i;for(let a=0;a<r;a++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const r=t,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let r=t,i=this.offset+this.byteOffset;if(i+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case Jn.GREYSCALE:case Jn.TRUECOLOUR:{if(t%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let r=0;r<t/2;r++)this._transparency[r]=this.readUint16();break}case Jn.INDEXED_COLOUR:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alph
33a values than there are palette colors (${t} vs ${this._palette.length})`);let r=0;for(;r<t;r++){const i=this.readByte();this._palette[r].push(i)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case Jn.UNKNOWN:case Jn.GREYSCALE_ALPHA:case Jn.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const r=z1(this),i=this.readUint8();if(i!==zc.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const a=this.readBytes(t-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:av(a)}}decodepHYs(){const t=this.readUint32(),r=this.readUint32(),i=this.readByte();this._png.resolution={x:t,y:r,unit:i}}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 t=0;t<this._numberOfFrames;t++){const r={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].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)},i=this._frames.at(t);if(i){if(i.data=Xh({data:i.data,width:i.width,height:i.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),t===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)r.data=i.data;else{const a=this._apng.frames.at(t-1);this.disposeFrame(i,a,r),this.addFrameDataToCanvas(r,i)}this._apng.frames.push(r)}}return this._apng}disposeFrame(t,r,i){switch(t.disposeOp){case ol.NONE:break;case ol.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let l=0;l<this._png.width;l++){const s=(a*t.width+l)*this._png.channels;for(let c=0;c<this._png.channels;c++)i.data[s+c]=0}break;case ol.PREVIOUS:i.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,r){const i=1<<this._png.depth,a=(l,s)=>{const c=((l+r.yOffset)*this._png.width+r.xOffset+s)*this._png.channels,f=(l*r.width+s)*this._png.channels;return{index:c,frameIndex:f}};switch(r.blendOp){case Hc.SOURCE:for(let l=0;l<r.height;l++)for(let s=0;s<r.width;s++){const{index:c,frameIndex:f}=a(l,s);for(let d=0;d<this._png.channels;d++)t.data[c+d]=r.data[f+d]}break;case Hc.OVER:for(let l=0;l<r.height;l++)for(let s=0;s<r.width;s++){const{index:c,frameIndex:f}=a(l,s);for(let d=0;d<this._png.channels;d++){const b=r.data[f+this._png.channels-1]/i,v=d%(this._png.channels-1)===0?1:r.data[f+d],p=Math.floor(b*v+(1-b)*t.data[c+d]);t.data[c+d]+=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 t=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==Qh.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Wc.NO_INTERLACE)this._png.data=Xh({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Wc.ADAM7)this._png.data=dv({data:t,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 t=this._inflator.result,r=this._frames.at(-1);r?r.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:ol.NONE,blendOp:Hc.SOURCE,data:t}),this._inflator=new $h,this._writingDataChunks=!1}}function Cv(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var ed;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(ed||(ed={}));function Ev(e,n){return new Pv(e,n).decode()}var Je=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Yc(){Je.console&&typeof Je.console.log=="function"&&Je.console.log.apply(Je.console,arguments)}var jt={log:Yc,warn:function(e){Je.console&&(typeof Je.console.warn=="function"?Je.console.warn.apply(Je.console,arguments):Yc.call(null,arguments))},error:function(e){Je.console&&(typeof Je.console.error=="function"?Je.console.error.apply(Je.console,arguments):Yc(e))}};function Vc(e,n,t){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){la(r.response,n,t)},r.onerror=function(){jt.error("could not download file")},r.send()}function td(e){var n=new XMLHttpRequest;n.open("HEAD",e,!1);try{n.send()}catch{}return n.status>=200&&n.status<=299}function sl(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");
vendor: 3,407 bytes, lines 33-38
33n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}var la=Je.saveAs||((typeof window>"u"?"undefined":Ct(window))!=="object"||window!==Je?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,n,t){var r=Je.URL||Je.webkitURL,i=document.createElement("a");n=n||e.name||"download",i.download=n,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?td(i.href)?Vc(e,n,t):sl(i,i.target="_blank"):sl(i)):(i.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){sl(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,t){if(n=n||e.name||"download",typeof e=="string")if(td(e))Vc(e,n,t);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){sl(r)})}else navigator.msSaveOrOpenBlob(function(i,a){return a===void 0?a={autoBom:!1}:Ct(a)!=="object"&&(jt.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(e,t),n)}:function(e,n,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Vc(e,n,t);var i=e.type==="application/octet-stream",a=/constructor/i.test(Je.HTMLElement)||Je.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||i&&a)&&(typeof FileReader>"u"?"undefined":Ct(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var d=s.result;d=l?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=d:location=d,r=null},s.readAsDataURL(e)}else{var c=Je.URL||Je.webkitURL,f=c.createObjectURL(e);r?r.location=f:location.href=f,r=null,setTimeout(function(){c.revokeObjectURL(f)},4e4)}});/**
34 * A class to parse color values
35 * @author Stoyan Stefanov <[email protected]>
36 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
37 * @license Use it if you like it
38 */function W1(e){var n;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee9
380",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],r=0;r<t.length;r++){var i=t[r].re,a=t[r].process,l=i.exec(e);l&&(n=a(l),this.r=n[0],this.g=n[1],this.b=n[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),c=this.g.toString(16),f=this.b.toString(16);return s.length==1&&(s="0"+s),c.length==1&&(c="0"+c),f.length==1&&(f="0"+f),"#"+s+c+f}}var gl=Je.atob.bind(Je),nd=Je.btoa.bind(Je);/**
39 * @license
40 * Joseph Myers does not specify a particular license for his work.
41 *
42 * Author: Joseph Myers
43 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
44 *
45 * Modified by: Owen Leong
46 */function Gc(e,n){var t=e[0],r=e[1],i=e[2],a=e[3];t=Ln(t,r,i,a,n[0],7,-680876936),a=Ln(a,t,r,i,n[1],12,-389564586),i=Ln(i,a,t,r,n[2],17,606105819),r=Ln(r,i,a,t,n[3],22,-1044525330),t=Ln(t,r,i,a,n[4],7,-176418897),a=Ln(a,t,r,i,n[5],12,1200080426),i=Ln(i,a,t,r,n[6],17,-1473231341),r=Ln(r,i,a,t,n[7],22,-45705983),t=Ln(t,r,i,a,n[8],7,1770035416),a=Ln(a,t,r,i,n[9],12,-1958414417),i=Ln(i,a,t,r,n[10],17,-42063),r=Ln(r,i,a,t,n[11],22,-1990404162),t=Ln(t,r,i,a,n[12],7,1804603682),a=Ln(a,t,r,i,n[13],12,-40341101),i=Ln(i,a,t,r,n[14],17,-1502002290),t=kn(t,r=Ln(r,i,a,t,n[15],22,1236535329),i,a,n[1],5,-165796510),a=kn(a,t,r,i,n[6],9,-1069501632),i=kn(i,a,t,r,n[11],14,643717713),r=kn(r,i,a,t,n[0],20,-373897302),t=kn(t,r,i,a,n[5],5,-701558691),a=kn(a,t,r,i,n[10],9,38016083),i=kn(i,a,t,r,n[15],14,-660478335),r=kn(r,i,a,t,n[4],20,-405537848),t=kn(t,r,i,a,n[9],5,568446438),a=kn(a,t,r,i,n[14],9,-1019803690),i=kn(i,a,t,r,n[3],14,-187363961),r=kn(r,i,a,t,n[8],20,1163531501),t=kn(t,r,i,a,n[13],5,-1444681467),a=kn(a,t,r,i,n[2],9,-51403784),i=kn(i,a,t,r,n[7],14,1735328473),t=Pn(t,r=kn(r,i,a,t,n[12],20,-1926607734),i,a,n[5],4,-378558),a=Pn(a,t,r,i,n[8],11,-2022574463),i=Pn(i,a,t,r,n[11],16,1839030562),r=Pn(r,i,a,t,n[14],23,-35309556),t=Pn(t,r,i,a,n[1],4,-1530992060),a=Pn(a,t,r,i,n[4],11,1272893353),i=Pn(i,a,t,r,n[7],16,-155497632),r=Pn(r,i,a,t,n[10],23,-1094730640),t=Pn(t,r,i,a,n[13],4,681279174),a=Pn(a,t,r,i,n[0],11,-358537222),i=Pn(i,a,t,r,n[3],16,-722521979),r=Pn(r,i,a,t,n[6],23,76029189),t=Pn(t,r,i,a,n[9],4,-640364487),a=Pn(a,t,r,i,n[12],11,-421815835),i=Pn(i,a,t,r,n[15],16,530742520),t=Cn(t,r=Pn(r,i,a,t,n[2],23,-995338651),i,a,n[0],6,-198630844),a=Cn(a,t,r,i,n[7],10,1126891415),i=Cn(i,a,t,r,n[14],15,-1416354905),r=Cn(r,i,a,t,n[5],21,-57434055),t=Cn(t,r,i,a,n[12],6,1700485571),a=Cn(a,t,r,i,n[3],10,-1894986606),i=Cn(i,a,t,r,n[10],15,-1051523),r=Cn(r,i,a,t,n[1],21,-2054922799),t=Cn(t,r,i,a,n[8],6,1873313359),a=Cn(a,t,r,i,n[15],10,-30611744),i=Cn(i,a,t,r,n[6],15,-1560198380),r=Cn(r,i,a,t,n[13],21,1309151649),t=Cn(t,r,i,a,n[4],6,-145523070),a=Cn(a,t,r,i,n[11],10,-1120210379),i=Cn(i,a,t,r,n[2],15,718787259),r=Cn(r,i,a,t,n[9],21,-343485551),e[0]=Fi(t,e[0]),e[1]=Fi(r,e[1]),e[2]=Fi(i,e[2]),e[3]=Fi(a,e[3])}function Fl(e,n,t,r,i,a){return n=Fi(Fi(n,e),Fi(r,a)),Fi(n<<i|n>>>32-i,t)}function Ln(e,n,t,r,i,a,l){return Fl(n&t|~n&r,e,n,i,a,l)}function kn(e,n,t,r,i,a,l){return Fl(n&r|t&~r,e,n,i,a,l)}function Pn(e,n,t,r,i,a,l){return Fl(n^t^r,e,n,i,a,l)}function Cn(e,n,t,r,i,a,l){return Fl(t^(n|~r),e,n,i,a,l)}function H1(e){var n,t=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=e.length;n+=64)Gc(r,Mv(e.substring(n-64,n)));e=e.substring(n-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<e.length;n++)i[n>>2]|=e.charCodeAt(n)<<(n%4<<3);if(i[n>>2]|=128<<(n%4<<3),n>55)for(Gc(r,i),n=0;n<16;n++)i[n]=0;return i[14]=8*t,Gc(r,i),r}function Mv(e){var n,t=[];for(n=0;n<64;n+=4)t[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return t}var rd="0123456789abcdef".split("");function Iv(e){for(var n="",t=0;t<4;t++)n+=rd[e>>8*t+4&15]+rd[e>>8*t&15];return n}function jv(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Au(e){return H1(e).map(jv).join("")}var Fv=function(e){for(var n=0;n<e.length;n++)e[n]=Iv(e[n]);return e.join("")}(H1("hello"))!="5d41402abc4b2a76b9719d911017c592";function Fi(e,n){if(Fv){var t=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(t>>16)<<16|65535&t}return e+n&4294967295}/**
47 * @license
48 * FPDF is released under a permissive license: there is no usage restriction.
49 * You may embed it freely in your application (commercial or not), with or
50 * without modifications.
51 *
52 * Reference: http://www.fpdf.org/en/script/script37.php
53 */function Su(e,n){var t,r,i,a;if(e!==t){for(var l=(i=e,a=1+(256/e.length|0),new Array(a+1).join(i)),s=[],c=0;c<256;c++)s[c]=c;var f=0;for(c=0;c<256;c++){var d=s[c];f=(f+d+l.charCodeAt(c))%256,s[c]=s[f],s[f]=d}t=e,r=s}else s=r;var b=n.length,v=0,p=0,N="";for(c=0;c<b;c++)p=(p+(d=s[v=(v+1)%256]))%256,s[v]=s[p],s[p]=d,l=s[(s[v]+s[p])%256],N+=String.fromCharCode(n.charCodeAt(c)^l);return N}/**
54 * @license
55 * Licensed under the MIT License.
56 * http://opensource.org/licenses/mit-license
57 * Author: Owen Leong (@owenl131)
58 * Date: 15 Oct 2020
59 * References:
60 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
61 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
62 * http://www.fpdf.org/en/script/script37.php
63 */var id={print:4,modify:8,copy:16,"annot-forms":32};function Ka(e,n,t,r){this.v=1,this.r=2;var i=192;e.forEach(function(s){if(id.perm!==void 0)throw new Error("Invalid permission: "+s);i+=id[s]}),this.padding="(¿N^NuŠAd\0NVÿú�\b..\0¶Ðh>€/\f©þdSiz";var a=(n+this.padding).substr(0,32),l=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,l),this.P=-(1+(255^i)),this.encryptionKey=Au(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Su(this.encryptionKey,this.padding)}function Xa(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var n="",t=e.length,r=0;r<t;r++){var i=e.charCodeAt(r);n+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?"#"+("0"+i.toString(16)).slice(-2):e[r]}return n}function ad(e){if(Ct(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(t,r,i){if(i=i||!1,typeof t!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(t)||(n[t]={});var a=Math.random().toString(35);return n[t][a]=[r,!!i],a},this.unsubscribe=function(t){for(var r in n)if(n[r][t])return delete n[r][t],Object.keys(n[r]).length===0&&delete n[r],!0;return!1},this.publish=function(t){if(n.hasOwnProperty(t)){var r=Array.prototype.slice.call(arguments,1
vendor: 4,098 bytes, line 63
63),i=[];for(var a in n[t]){var l=n[t][a];try{l[0].apply(e,r)}catch(s){Je.console&&jt.error("jsPDF PubSub Error",s.message,s)}l[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function Ll(e){if(!(this instanceof Ll))return new Ll(e);var n="opacity,stroke-opacity".split(",");for(var t in e)e.hasOwnProperty(t)&&n.indexOf(t)>=0&&(this[t]=e[t]);this.id="",this.objectNumber=-1}function Y1(e,n){this.gState=e,this.matrix=n,this.id="",this.objectNumber=-1}function ca(e,n,t,r,i){if(!(this instanceof ca))return new ca(e,n,t,r,i);this.type=e==="axial"?2:3,this.coords=n,this.colors=t,Y1.call(this,r,i)}function Ja(e,n,t,r,i){if(!(this instanceof Ja))return new Ja(e,n,t,r,i);this.boundingBox=e,this.xStep=n,this.yStep=t,this.stream="",this.cloneIndex=0,Y1.call(this,r,i)}function Be(e){var n,t=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],a=arguments[3],l=[],s=1,c=16,f="S",d=null;Ct(e=e||{})==="object"&&(t=e.orientation,r=e.unit||r,i=e.format||i,a=e.compress||e.compressPdf||a,(d=e.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),s=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(n=e.precision),e.floatPrecision!==void 0&&(c=e.floatPrecision),f=e.defaultPathOperation||"S"),l=e.filters||(a===!0?["FlateEncode"]:l),r=r||"mm",t=(""+(t||"P")).toLowerCase();var b=e.putOnlyUsedFonts||!1,v={},p={internal:{},__private__:{}};p.__private__.PubSub=ad;var N="1.3",L=p.__private__.getPdfVersion=function(){return N};p.__private__.setPdfVersion=function(h){N=h};var E={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 E};var _=p.__private__.getPageFormat=function(h){return E[h]};i=i||"a4";var U="compat",B="advanced",F=U;function ee(){this.saveGraphicsState(),D(new $e(at,0,0,-at,0,$i()*at).toString()+" cm"),this.setFontSize(this.getFontSize()/at),f="n",F=B}function le(){this.restoreGraphicsState(),f="S",F=U}var oe=p.__private__.combineFontStyleAndFontWeight=function(h,w){if(h=="bold"&&w=="normal"||h=="bold"&&w==400||h=="normal"&&w=="italic"||h=="bold"&&w=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return w&&(h=w==400||w==="normal"?h==="italic"?"italic":"normal":w!=700&&w!=="bold"||h!=="normal"?(w==700?"bold":w)+""+h:"bold"),h};p.advancedAPI=function(h){var w=F===U;return w&&ee.call(this),typeof h!="function"||(h(this),w&&le.call(this)),this},p.compatAPI=function(h){var w=F===B;return w&&le.call(this),typeof h!="function"||(h(this),w&&ee.call(this)),this},p.isAdvancedAPI=function(){return F===B};var K,I=function(h){if(F!==B)throw new Error(h+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},V=p.roundToPrecision=p.__private__.roundToPrecision=function(h,w){var O=n||w;if(isNaN(h)||isNaN(O))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return h.toFixed(O).replace(/0+$/,"")};K=p.hpf=p.__private__.hpf=typeof c=="number"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return V(h,c)}:c==="smart"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return V(h,h>-1&&h<1?16:5)}:function(h){if(isNaN(h))throw new Error("Invalid argument passed to 
63jsPDF.hpf");return V(h,16)};var S=p.f2=p.__private__.f2=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f2");return V(h,2)},j=p.__private__.f3=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f3");return V(h,3)},W=p.scale=p.__private__.scale=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.scale");return F===U?h*at:F===B?h:void 0},H=function(h){return W(function(w){return F===U?$i()-w:F===B?w:void 0}(h))};p.__private__.setPrecision=p.setPrecision=function(h){typeof parseInt(h,10)=="number"&&(n=parseInt(h,10))};var se,fe="00000000000000000000000000000000",te=p.__private__.getFileId=function(){return fe},G=p.__private__.setFileId=function(h){return fe=h!==void 0&&/^[a-fA-F0-9]{32}$/.test(h)?h.toUpperCase():fe.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(mn=new Ka(d.userPermissions,d.userPassword,d.ownerPassword,fe)),fe};p.setFileId=function(h){return G(h),this},p.getFileId=function(){return te()};var he=p.__private__.convertDateToPDFDate=function(h){var w=h.getTimezoneOffset(),O=w<0?"+":"-",Y=Math.floor(Math.abs(w/60)),Q=Math.abs(w%60),de=[O,z(Y),"'",z(Q),"'"].join("");return["D:",h.getFullYear(),z(h.getMonth()+1),z(h.getDate()),z(h.getHours()),z(h.getMinutes()),z(h.getSeconds()),de].join("")},Ae=p.__private__.convertPDFDateToDate=function(h){var w=parseInt(h.substr(2,4),10),O=parseInt(h.substr(6,2),10)-1,Y=parseInt(h.substr(8,2),10),Q=parseInt(h.substr(10,2),10),de=parseInt(h.substr(12,2),10),we=parseInt(h.substr(14,2),10);return new Date(w,O,Y,Q,de,we,0)},be=p.__private__.setCreationDate=function(h){var w;if(h===void 0&&(h=new Date),h instanceof Date)w=he(h);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(h))throw new Error("Invalid argument passed to jsPDF.setCreationDate");w=h}return se=w},k=p.__private__.getCreationDate=function(h){var w=se;return h==="jsDate"&&(w=Ae(se)),w};p.setCreationDate=function(h){return be(h),this},p.getCreationDate=function(h){return k(h)};var q,z=p.__private__.padd2=function(h){return("0"+parseInt(h)).slice(-2)},$=p.__private__.padd2Hex=function(h){return("00"+(h=h.toString())).substr(h.length)},J=0,re=[],ce=[],ue=0,ve=[],Ne=[],Pe=!1,ke=ce;p.__private__.setCustomOutputDestination=function(h){Pe=!0,ke=h};var qe=function(h){Pe||(ke=h)};p.__private__.resetCustomOutputDestination=function(){Pe=!1,ke=ce};var D=p.__private__.out=function(h){return h=h.toString(),ue+=h.length+1,ke.push(h),ke},Le=p.__private__.write=function(h){return D(arguments.length===1?h.toString():Array.prototype.join.call(arguments," "))},lt=p.__private__.getArrayBuffer=function(h){for(var w=h.length,O=new ArrayBuffer(w),Y=new Uint8Array(O);w--;)Y[w]=h.charCodeAt(w);return O},Ye=[["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 Ye};var _e=e.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(h){return _e=F===B?h/at:h,this};var Ve,Ee=p.__private__.getFontSize=p.getFontSize=function(){return F===U?_e:_e*at},He=e.R2L||!1;p.__private__.setR2L=p.setR2L=function(h){return He=h,this},p.__private__.getR2L=p.getR2L=function(){return He};var ze,Nt=p.__private__.setZoomMode=function(h){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(h))Ve=h;else if(isNaN(h)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(h)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+h+'" is not recognized.');Ve=h}else Ve=parseInt(h,10)};p.__private__.getZoomMode=function(){return Ve};var ht,tt=p.__private__.setPageMode=function(h){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(h)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+h+'" is not recognized.');ze=h};p.__private__.getPageMode=function(){return ze};var pt=p.__private__.setLayoutMode=function(h){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(h)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+h+'" is not recognized.');ht=h};p.__private__.getLayoutMode=function(){return ht},p.__private__.setDisplayMode=p.setDisplayMode=function(h,w,O){return Nt(h),pt(w),tt(O),this};
vendor: 16,448 bytes, lines 63-67
63var dt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(h){if(Object.keys(dt).indexOf(h)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return dt[h]},p.__private__.getDocumentProperties=function(){return dt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(h){for(var w in dt)dt.hasOwnProperty(w)&&h[w]&&(dt[w]=h[w]);return this},p.__private__.setDocumentProperty=function(h,w){if(Object.keys(dt).indexOf(h)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return dt[h]=w};var Oe,at,Re,Xt,wt,ct={},ut={},zt=[],We={},Ft={},Ze={},nt={},Wt=null,ft=0,Ge=[],At=new ad(p),zi=e.hotfixes||[],_n={},Zr={},Pr=[],$e=function h(w,O,Y,Q,de,we){if(!(this instanceof h))return new h(w,O,Y,Q,de,we);isNaN(w)&&(w=1),isNaN(O)&&(O=0),isNaN(Y)&&(Y=0),isNaN(Q)&&(Q=1),isNaN(de)&&(de=0),isNaN(we)&&(we=0),this._matrix=[w,O,Y,Q,de,we]};Object.defineProperty($e.prototype,"sx",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty($e.prototype,"shy",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty($e.prototype,"shx",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty($e.prototype,"sy",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty($e.prototype,"tx",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty($e.prototype,"ty",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty($e.prototype,"a",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty($e.prototype,"b",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty($e.prototype,"c",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty($e.prototype,"d",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty($e.prototype,"e",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty($e.prototype,"f",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty($e.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty($e.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty($e.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty($e.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),$e.prototype.join=function(h){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(K).join(h)},$e.prototype.multiply=function(h){var w=h.sx*this.sx+h.shy*this.shx,O=h.sx*this.shy+h.shy*this.sy,Y=h.shx*this.sx+h.sy*this.shx,Q=h.shx*this.shy+h.sy*this.sy,de=h.tx*this.sx+h.ty*this.shx+this.tx,we=h.tx*this.shy+h.ty*this.sy+this.ty;return new $e(w,O,Y,Q,de,we)},$e.prototype.decompose=function(){var h=this.sx,w=this.shy,O=this.shx,Y=this.sy,Q=this.tx,de=this.ty,we=Math.sqrt(h*h+w*w),je=(h/=we)*O+(w/=we)*Y;O-=h*je,Y-=w*je;var Ie=Math.sqrt(O*O+Y*Y);return je/=Ie,h*(Y/=Ie)<w*(O/=Ie)&&(h=-h,w=-w,je=-je,we=-we),{scale:new $e(we,0,0,Ie,0,0),translate:new $e(1,0,0,1,Q,de),rotate:new $e(h,w,-w,h,0,0),skew:new $e(1,0,je,1,0,0)}},$e.prototype.toString=function(h){return this.join(" ")},$e.prototype.inversed=function(){var h=this.sx,w=this.shy,O=this.shx,Y=this.sy,Q=this.tx,de=this.ty,we=1/(h*Y-w*O),je=Y*we,Ie=-w*we,Qe=-O*we,rt=h*we;return new $e(je,Ie,Qe,rt,-je*Q-Qe*de,-Ie*Q-rt*de)},$e.prototype.applyToPoint=function(h){var w=h.x*this.sx+h.y*this.shx+this.tx,O=h.x*this.shy+h.y*this.sy+this.ty;return new Gi(w,O)},$e.prototype.applyToRectangle=function(h){var w=this.applyToPoint(h),O=this.applyToPoint(new Gi(h.x+h.w,h.y+h.h));return new Lo(w.x,w.y,O.x-w.x,O.y-w.y)},$e.prototype.clone=function(){var h=this.sx,w=this.shy,O=this.shx,Y=this.sy,Q=this.tx,de=this.ty;return new $e(h,w,O,Y,Q,de)},p.Matrix=$e;var Kr=p.matrixMult=function(h,w){return w.multiply(h)},Xr=new $e(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Xr;var ir=function(h,w){if(!Ft[h]){var O=(w instanceof ca?"Sh":"P")+(Object.keys(We).length+1).toString(10);w.id=O,Ft[h]=O,We[O]=w,At.publish("addPattern",w)}};p.ShadingPattern=ca,p.TilingPattern=Ja,p.addShadingPattern=function(h,w){return I("addShadingPattern()"),ir(h,w),this},p.beginTilingPattern=function(h){I("beginTilingPattern()"),ko(h.boundingBox[0],h.boundingBox[1],h.boundingBox[2]-h.boundingBox[0],h.boundingBox[3]-h.boundingBox[1],h.matrix)},p.endTilingPattern=function(h,w){I("endTilingPattern()"),w.stream=Ne[q].join(`
64`),ir(h,w),At.publish("endTilingPattern",w),Pr.pop().restore()};var ar,Gt=p.__private__.newObject=function(){var h=hn();return gn(h,!0),h},hn=p.__private__.newObjectDeferred=function(){return J++,re[J]=function(){return ue},J},gn=function(h,w){return w=typeof w=="boolean"&&w,re[h]=ue,w&&D(h+" 0 obj"),h},Wi=p.__private__.newAdditionalObject=function(){var h={objId:hn(),content:""};return ve.push(h),h},pi=hn(),pr=hn(),Cr=p.__private__.decodeColorString=function(h){var w=h.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 O=parseFloat(w[0]);w=[O,O,O,"r"]}for(var Y="#",Q=0;Q<3;Q++)Y+=("0"+Math.floor(255*parseFloat(w[Q])).toString(16)).slice(-2);return Y},gr=p.__private__.encodeColorString=function(h){var w;typeof h=="string"&&(h={ch1:h});var O=h.ch1,Y=h.ch2,Q=h.ch3,de=h.ch4,we=h.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof O=="string"&&O.charAt(0)!=="#"){var je=new W1(O);if(je.ok)O=je.toHex();else if(!/^\d*\.?\d*$/.test(O))throw new Error('Invalid color "'+O+'" passed to jsPDF.encodeColorString.')}if(typeof O=="string"&&/^#[0-9A-Fa-f]{3}$/.test(O)&&(O="#"+O[1]+O[1]+O[2]+O[2]+O[3]+O[3]),typeof O=="string"&&/^#[0-9A-Fa-f]{6}$/.test(O)){var Ie=parseInt(O.substr(1),16);O=Ie>>16&255,Y=Ie>>8&255,Q=255&Ie}if(Y===void 0||de===void 0&&O===Y&&Y===Q)w=typeof O=="string"?O+" "+we[0]:h.precision===2?S(O/255)+" "+we[0]:j(O/255)+" "+we[0];else if(de===void 0||Ct(de)==="object"){if(de&&!isNaN(de.a)&&de.a===0)return["1.","1.","1.",we[1]].join(" ");w=typeof O=="string"?[O,Y,Q,we[1]].join(" "):h.precision===2?[S(O/255),S(Y/255),S(Q/255),we[1]].join(" "):[j(O/255),j(Y/255),j(Q/255),we[1]].join(" ")}else w=typeof O=="string"?[O,Y,Q,de,we[2]].join(" "):h.precision===2?[S(O),S(Y),S(Q),S(de),we[2]].join(" "):[j(O),j(Y),j(Q),j(de),we[2]].join(" ");return w},mr=p.__private__.getFilters=function(){return l},or=p.__private__.putStream=function(h){var w=(h=h||{}).data||"",O=h.filters||mr(),Y=h.alreadyAppliedFilters||[],Q=h.addLength1||!1,de=w.length,we=h.objectId,je=function(Bt){return Bt};if(d!==null&&we===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&(je=mn.encryptor(we,0));var Ie={};O===!0&&(O=["FlateEncode"]);var Qe=h.additionalKeyValues||[],rt=(Ie=Be.API.processDataByFilters!==void 0?Be.API.processDataByFilters(w,O):{data:w,reverseChain:[]}).reverseChain+(Array.isArray(Y)?Y.join(" "):Y.toString());if(Ie.data.length!==0&&(Qe.push({key:"Length",value:Ie.data.length}),Q===!0&&Qe.push({key:"Length1",value:de})),rt.length!=0)if(rt.split("/").length-1==1)Qe.push({key:"Filter",value:rt});else{Qe.push({key:"Filter",value:"["+rt+"]"});for(var vt=0;vt<Qe.length;vt+=1)if(Qe[vt].key==="DecodeParms"){for(var on=[],Mt=0;Mt<Ie.reverseChain.split("/").length-1;Mt+=1)on.push("null");on.push(Qe[vt].value),Qe[vt].value="["+on.join(" ")+"]"}}D("<<");for(var Et=0;Et<Qe.length;Et++)D("/"+Qe[Et].key+" "+Qe[Et].value);D(">>"),Ie.data.length!==0&&(D("stream"),D(je(Ie.data)),D("endstream"))},Hi=p.__private__.putPage=function(h){var w=h.number,O=h.data,Y=h.objId,Q=h.contentsObjId;gn(Y,!0),D("<</Type /Page"),D("/Parent "+h.rootDictionaryObjId+" 0 R"),D("/Resources "+h.resourceDictionaryObjId+" 0 R"),D("/MediaBox ["+parseFloat(K(h.mediaBox.bottomLeftX))+" "+parseFloat(K(h.mediaBox.bottomLeftY))+" "+K(h.mediaBox.topRightX)+" "+K(h.mediaBox.topRightY)+"]"),h.cropBox!==null&&D("/CropBox ["+K(h.cropBox.bottomLeftX)+" "+K(h.cropBox.bottomLeftY)+" "+K(h.cropBox.topRightX)+" "+K(h.cropBox.topRightY)+"]"),h.bleedBox!==null&&D("/BleedBox ["+K(h.bleedBox.bottomLeftX)+" "+K(h.bleedBox.bottomLeftY)+" "+K(h.bleedBox.topRightX)+" "+K(h.bleedBox.topRightY)+"]"),h.trimBox!==null&&D("/TrimBox ["+K(h.trimBox.bottomLeftX)+" "+K(h.trimBox.bottomLeftY)+" "+K(h.trimBox.topRightX)+" "+K(h.trimBox.topRightY)+"]"),h.artBox!==null&&D("/ArtBox ["+K(h.artBox.bottomLeftX)+" "+K(h.artBox.bottomLeftY)+" "+K(h.artBox.topRightX)+" "+K(h.artBox.topRightY)+"]"),typeof h.userUnit=="number"&&h.userUnit!==1&&D("/UserUnit "+h.userUnit),At.publish("putPage",{objId:Y,pageContext:Ge[w],pageNumber:w,page:O}),D("/Contents "+Q+" 0 R"),D(">>"),D("endobj");var de=O.join(`
65`);return F===B&&(de+=`
66Q`),gn(Q,!0),or({data:de,filters:mr(),objectId:Q}),D("endobj"),Y},Er=p.__private__.putPages=function(){var h,w,O=[];for(h=1;h<=ft;h++)Ge[h].objId=hn(),Ge[h].contentsObjId=hn();for(h=1;h<=ft;h++)O.push(Hi({number:h,data:Ne[h],objId:Ge[h].objId,contentsObjId:Ge[h].contentsObjId,mediaBox:Ge[h].mediaBox,cropBox:Ge[h].cropBox,bleedBox:Ge[h].bleedBox,trimBox:Ge[h].trimBox,artBox:Ge[h].artBox,userUnit:Ge[h].userUnit,rootDictionaryObjId:pi,resourceDictionaryObjId:pr}));gn(pi,!0),D("<</Type /Pages");var Y="/Kids [";for(w=0;w<ft;w++)Y+=O[w]+" 0 R ";D(Y+"]"),D("/Count "+ft),D(">>"),D("endobj"),At.publish("postPutPages")},Yi=function(h){At.publish("putFont",{font:h,out:D,newObject:Gt,putStream:or}),h.isAlreadyPutted!==!0&&(h.objectNumber=Gt(),D("<<"),D("/Type /Font"),D("/BaseFont /"+Xa(h.postScriptName)),D("/Subtype /Type1"),typeof h.encoding=="string"&&D("/Encoding /"+h.encoding),D("/FirstChar 32"),D("/LastChar 255"),D(">>"),D("endobj"))},_a=function(h){h.objectNumber=Gt();var w=[];w.push({key:"Type",value:"/XObject"}),w.push({key:"Subtype",value:"/Form"}),w.push({key:"BBox",value:"["+[K(h.x),K(h.y),K(h.x+h.width),K(h.y+h.height)].join(" ")+"]"}),w.push({key:"Matrix",value:"["+h.matrix.toString()+"]"});var O=h.pages[1].join(`
67`);or({data:O,additionalKeyValues:w,objectId:h.objectNumber}),D("endobj")},xa=function(h,w){w||(w=21);var O=Gt(),Y=function(we,je){var Ie,Qe=[],rt=1/(je-1);for(Ie=0;Ie<1;Ie+=rt)Qe.push(Ie);if(Qe.push(1),we[0].offset!=0){var vt={offset:0,color:we[0].color};we.unshift(vt)}if(we[we.length-1].offset!=1){var on={offset:1,color:we[we.length-1].color};we.push(on)}for(var Mt="",Et=0,Bt=0;Bt<Qe.length;Bt++){for(Ie=Qe[Bt];Ie>we[Et+1].offset;)Et++;var Yt=we[Et].offset,Vt=(Ie-Yt)/(we[Et+1].offset-Yt),xn=we[Et].color,ri=we[Et+1].color;Mt+=$(Math.round((1-Vt)*xn[0]+Vt*ri[0]).toString(16))+$(Math.round((1-Vt)*xn[1]+Vt*ri[1]).toString(16))+$(Math.round((1-Vt)*xn[2]+Vt*ri[2]).toString(16))}return Mt.trim()}(h.colors,w),Q=[];Q.push({key:"FunctionType",value:"0"}),Q.push({key:"Domain",value:"[0.0 1.0]"}),Q.push({key:"Size",value:"["+w+"]"}),Q.push({key:"BitsPerSample",value:"8"}),Q.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Q.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),or({data:Y,additionalKeyValues:Q,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:O}),D("endobj"),h.objectNumber=Gt(),D("<< /ShadingType "+h.type),D("/ColorSpace /DeviceRGB");var de="/Coords ["+K(parseFloat(h.coords[0]))+" "+K(parseFloat(h.coords[1]))+" ";h.type===2?de+=K(parseFloat(h.coords[2]))+" "+K(parseFloat(h.coords[3])):de+=K(parseFloat(h.coords[2]))+" "+K(parseFloat(h.coords[3]))+" "+K(parseFloat(h.coords[4]))+" "+K(parseFloat(h.coords[5])),D(de+="]"),h.matrix&&D("/Matrix ["+h.matrix.toString()+"]"),D("/Function "+O+" 0 R"),D("/Extend [true true]"),D(">>"),D("endobj")},Na=function(h,w){var O=hn(),Y=Gt();w.push({resourcesOid:O,objectOid:Y}),h.objectNumber=Y;var Q=[];Q.push({key:"Type",value:"/Pattern"}),Q.push({key:"PatternType",value:"1"}),Q.push({key:"PaintType",value:"1"}),Q.push({key:"TilingType",value:"1"}),Q.push({key:"BBox",value:"["+h.boundingBox.map(K).join(" ")+"]"}),Q.push({key:"XStep",value:K(h.xStep)}),Q.push({key:"YStep",value:K(h.yStep)}),Q.push({key:"Resources",value:O+" 0 R"}),h.matrix&&Q.push({key:"Matrix",value:"["+h.matrix.toString()+"]"}),or({data:h.stream,additionalKeyValues:Q,objectId:h.objectNumber}),D("endobj")},ql=function(h){for(var w in h.objectNumber=Gt(),D("<<"),h)switch(w){case"opacity":D("/ca "+S(h[w]));break;case"stroke-opacity":D("/CA "+S(h[w]))}D(">>"),D("endobj")},bo=function(h){gn(h.resourcesOid,!0),D("<<"),D("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var w in D("/Font <<"),ct)ct.hasOwnProperty(w)&&(b===!1||b===!0&&v.hasOwnProperty(w))&&D("/"+w+" "+ct[w].objectNumber+" 0 R");D(">>")}(),function(){if(Object.keys(We).length>0){for(var w in D("/Shading <<"),We)We.hasOwnProperty(w)&&We[w]instanceof ca&&We[w].objectNumber>=0&&D("/"+w+" "+We[w].objectNumber+" 0 R");At.publish("putShadingPatternDict"),D(">>")}}(),function(w){if(Object.keys(We).length>0){for(var O in D("/Pattern <<"),We)We.hasOwnProperty(O)&&We[O]instanceof p.TilingPattern&&We[O].objectNumber>=0&&We[O].objectNumber<w&&D("/"+O+" "+We[O].objectNumber+" 0 R");At.publish("putTilingPatternDict"),D(">>")}}(h.objectOid),function(){if(Object.keys(Ze).length>0){var w;for(w in D("/ExtGState <<"),Ze)Ze.hasOwnProperty(w)&&Ze[w].objectNumber>=0&&D("/"+w+" "+Ze[w].objectNumber+" 0 R");At.publish("putGStateDict"),D(">>")}}(),function(){for(var w in D("/XObject <<"),_n)_n.hasOwnProperty(w)&&_n[w].objectNumber>=0&&D("/"+w+" "+_n[w].objectNumber+" 0 R");At.publish("putXobjectDict"),D(">>")}(),D(">>"),D("endobj")},_s=function(h){ut[h.fontName]=ut[h.fontName]||{},ut[h.fontName][h.fontStyle]=h.id},xs=function(h,w,O,Y,Q){var de={id:"F"+(Object.keys(ct).length+1).toString(10),postScriptName:h,fontName:w,fontStyle:O,encoding:Y,isStandardFont:Q||!1,metadata:{}};return At.publish("addFont",{font:de,instance:this}),ct[de.id]=de,_s(de),de.id},sr=p.__private__.pdfEscape=p.pdfEscape=function(h,w){return function(O,Y){var Q,de,we,je,Ie,Qe,rt,vt,on;if(we=(Y=Y||{}).sourceEncoding||"Unicode",Ie=Y.outputEncoding,(Y.autoencode||Ie)&&ct[Oe].metadata&&ct[Oe].metadata[we]&&ct[Oe].metadata[we].encoding&&(je=ct[Oe].metadata[we].encoding,!Ie&&ct[Oe].encoding&&(Ie=ct[Oe].encoding),!Ie&&je.codePages&&(Ie=je.codePages[0]),typeof Ie=="string"&&(Ie=je[Ie]),Ie)){for(rt=!1,Qe=[],Q=0,de=O.length;Q<de;Q++)(vt=Ie[O.charCodeAt(Q)])?Qe.push(String.fromCharCode(vt)):Qe.push(O[Q]),Qe[Q].charCodeAt(0)>>8&&(rt=!0);O=Qe.join("")}for(Q=O.length;rt===void 0&&Q!==0;)O.charCodeAt(Q-1)>>8&&(rt=!0),Q--;if(!rt)return O;for(Qe=Y.noBOM?[]:[254,255],Q=0,de=O.length;Q<de;Q++){if((on=(vt=O.charCodeAt(Q))>>8)>>8)throw new Error("Character at position "+Q+" of string '"+O+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Qe.push(on),Qe.push(vt-(on<<8))}return String.fromCharCode.apply(void 0,Qe)}(h,w).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},wo=p.__private__.beginPage=function(h){Ne[++ft]=[],Ge[ft]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(h[0]),topRightY:Number(h[1])}},As(ft),qe(Ne[q])},Ns=function(h,w){var O,Y,Q;switch(t=w||t,typeof h=="string"&&(O=_(h.toLowerCase()),Array.isArray(O)&&(Y=O[0],Q=O[1])),Array.isArray(h)&&(Y=h[0]*at,Q=h[1]*at),isNaN(Y)&&(Y=i[0],Q=i[1]),(Y>14400||Q>14400)&&(jt.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Y=Math.min(14400,Y),Q=Math.min(14400,Q)),i=[Y,Q],t.substr(0,1)){case"l":Q>Y&&(i=[Q,Y]);break;case"p":Y>Q&&(i=[Q,Y])}wo(i),Xl(Xe),D(Ca),Ao!==0&&D(Ao+" J"),vi!==0&&D(vi+" j"),At.publish("addPage",{pageNumber:ft})},yo=function(h){h>0&&h<=ft&&(Ne.splice(h,1),Ge.splice(h,1),ft--,q>ft&&(q=ft),this.setPage(q))},As=function(h){h>0&&h<=ft&&(q=h)},Ss=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Ne.length-1},Ls=function(h,w,O){var Y,Q=void 0;return O=O||{},h=h!==void 0?h:ct[Oe].fontName,w=w!==void 0?w:ct[Oe].fontStyle,Y=h.toLowerCase(),ut[Y]!==void 0&&ut[Y][w]!==void 0?Q=ut[Y][w]:ut[h]!==void 0&&ut[h][w]!==void 0?Q=ut[h][w]:O.disableWarning===!1&&jt.warn("Unable to look up font label for font '"+h+"', '"+w+"'. Refer to getFontList(
67) for available fonts."),Q||O.noFallback||(Q=ut.times[w])==null&&(Q=ut.times.normal),Q},Mr=p.__private__.putInfo=function(){var h=Gt(),w=function(Y){return Y};for(var O in d!==null&&(w=mn.encryptor(h,0)),D("<<"),D("/Producer ("+sr(w("jsPDF "+Be.version))+")"),dt)dt.hasOwnProperty(O)&&dt[O]&&D("/"+O.substr(0,1).toUpperCase()+O.substr(1)+" ("+sr(w(dt[O]))+")");D("/CreationDate ("+sr(w(se))+")"),D(">>"),D("endobj")},Aa=p.__private__.putCatalog=function(h){var w=(h=h||{}).rootDictionaryObjId||pi;switch(Gt(),D("<<"),D("/Type /Catalog"),D("/Pages "+w+" 0 R"),Ve||(Ve="fullwidth"),Ve){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 O=""+Ve;O.substr(O.length-1)==="%"&&(Ve=parseInt(Ve)/100),typeof Ve=="number"&&D("/OpenAction [3 0 R /XYZ null null "+S(Ve)+"]")}switch(ht||(ht="continuous"),ht){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")}ze&&D("/PageMode /"+ze),At.publish("putCatalog"),D(">>"),D("endobj")},zl=p.__private__.putTrailer=function(){D("trailer"),D("<<"),D("/Size "+(J+1)),D("/Root "+J+" 0 R"),D("/Info "+(J-1)+" 0 R"),d!==null&&D("/Encrypt "+mn.oid+" 0 R"),D("/ID [ <"+fe+"> <"+fe+"> ]"),D(">>")},an=p.__private__.putHeader=function(){D("%PDF-"+N),D("%ºß¬à")},ks=p.__private__.putXRef=function(){var h="0000000000";D("xref"),D("0 "+(J+1)),D("0000000000 65535 f ");for(var w=1;w<=J;w++)typeof re[w]=="function"?D((h+re[w]()).slice(-10)+" 00000 n "):re[w]!==void 0?D((h+re[w]).slice(-10)+" 00000 n "):D("0000000000 00000 n ")},Ir=p.__private__.buildDocument=function(){var h;J=0,ue=0,ce=[],re=[],ve=[],pi=hn(),pr=hn(),qe(ce),At.publish("buildDocument"),an(),Er(),function(){At.publish("putAdditionalObjects");for(var O=0;O<ve.length;O++){var Y=ve[O];gn(Y.objId,!0),D(Y.content),D("endobj")}At.publish("postPutAdditionalObjects")}(),h=[],function(){for(var O in ct)ct.hasOwnProperty(O)&&(b===!1||b===!0&&v.hasOwnProperty(O))&&Yi(ct[O])}(),function(){var O;for(O in Ze)Ze.hasOwnProperty(O)&&ql(Ze[O])}(),function(){for(var O in _n)_n.hasOwnProperty(O)&&_a(_n[O])}(),function(O){var Y;for(Y in We)We.hasOwnProperty(Y)&&(We[Y]instanceof ca?xa(We[Y]):We[Y]instanceof Ja&&Na(We[Y],O))}(h),At.publish("putResources"),h.forEach(bo),bo({resourcesOid:pr,objectOid:Number.MAX_SAFE_INTEGER}),At.publish("postPutResources"),d!==null&&(mn.oid=Gt(),D("<<"),D("/Filter /Standard"),D("/V "+mn.v),D("/R "+mn.r),D("/U <"+mn.toHexString(mn.U)+">"),D("/O <"+mn.toHexString(mn.O)+">"),D("/P "+mn.P),D(">>"),D("endobj")),Mr(),Aa();var w=ue;return ks(),zl(),D("startxref"),D(""+w),D("%%EOF"),qe(Ne[q]),ce.join(`
68`)},Sa=p.__private__.getBlob=function(h){return new Blob([lt(h)],{type:"application/pdf"})},_o=function(h){for(;h.firstChild;)h.removeChild(h.firstChild)},Yn=function(h){var w,O=h.document,Y=O.documentElement,Q=O.head,de=O.body;return Q||(Q=O.createElement("head"),Y.appendChild(Q)),de||(de=O.createElement("body"),Y.appendChild(de)),_o(Q),_o(de),(w=O.createElement("style")).appendChild(O.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),Q.appendChild(w),{document:O,body:de}},La=p.output=p.__private__.output=(ar=function(h,w){switch(typeof(w=w||{})=="string"?w={filename:w}:w.filename=w.filename||"generated.pdf",h){case void 0:return Ir();case"save":p.save(w.filename);break;case"arraybuffer":return lt(Ir());case"blob":return Sa(Ir());case"bloburi":case"bloburl":if(Je.URL!==void 0&&typeof Je.URL.createObjectURL=="function")return Je.URL&&Je.URL.createObjectURL(Sa(Ir()))||void 0;jt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var O="",Y=Ir();try{O=nd(Y)}catch{O=nd(unescape(encodeURIComponent(Y)))}return"data:application/pdf;filename="+encodeURIComponent(w.filename)+";base64,"+O;
vendor: 5,012 bytes, lines 68-69
68case"pdfobjectnewwindow":if(Object.prototype.toString.call(Je)==="[object Window]"){var Q="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",de=!w.pdfObjectUrl;de||(Q=w.pdfObjectUrl);var we=Je.open();if(we!==null){var je=Yn(we),Ie=je.document.createElement("script"),Qe=this;Ie.src=Q,de&&(Ie.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Ie.crossOrigin="anonymous"),Ie.onload=function(){we.PDFObject.embed(Qe.output("dataurlstring"),w)},je.body.appendChild(Ie)}return we}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Je)==="[object Window]"){var rt=w.pdfJsUrl||"examples/PDF.js/web/viewer.html",vt=Je.open();if(vt!==null){var on=Yn(vt),Mt=on.document.createElement("iframe"),Et=rt.indexOf("?")===-1?"?":"&";Qe=this,Mt.id="pdfViewer",Mt.width="500px",Mt.height="400px",Mt.src=rt+Et+"file=&downloadName="+encodeURIComponent(w.filename),Mt.onload=function(){vt.document.title=w.filename,Mt.contentWindow.PDFViewerApplication.open(Qe.output("bloburl"))},on.body.appendChild(Mt)}return vt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Je)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Bt=Je.open();if(Bt!==null){var Yt=Yn(Bt),Vt=Yt.document.createElement("iframe");Vt.src=this.output("datauristring",w),Yt.body.appendChild(Vt),Bt.document.title=w.filename}if(Bt||typeof safari>"u")return Bt;break;case"datauri":case"dataurl":return Je.document.location.href=this.output("datauristring",w);default:return null}},ar.foo=function(){try{return ar.apply(this,arguments)}catch(O){var h=O.stack||"";~h.indexOf(" at ")&&(h=h.split(" at ")[1]);var w="Error in function "+h.split(`
69`)[0].split("<")[0]+": "+O.message;if(!Je.console)throw new Error(w);Je.console.error(w,O),Je.alert&&alert(w)}},ar.foo.bar=ar,ar.foo),Jr=function(h){return Array.isArray(zi)===!0&&zi.indexOf(h)>-1};switch(r){case"pt":at=1;break;case"mm":at=72/25.4;break;case"cm":at=72/2.54;break;case"in":at=72;break;case"px":at=Jr("px_scaling")==1?.75:96/72;break;case"pc":case"em":at=12;break;case"ex":at=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);at=r}var mn=null;be(),G();var Ps=p.__private__.getPageInfo=p.getPageInfo=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ge[h].objId,pageNumber:h,pageContext:Ge[h]}},Wl=p.__private__.getPageInfoByObjId=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var w in Ge)if(Ge[w].objId===h)break;return Ps(w)},Hl=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Ge[q].objId,pageNumber:q,pageContext:Ge[q]}};p.addPage=function(){return Ns.apply(this,arguments),this},p.setPage=function(){return As.apply(this,arguments),qe.call(this,Ne[q]),this},p.insertPage=function(h){return this.addPage(),this.movePage(q,h),this},p.movePage=function(h,w){var O,Y;if(h>w){O=Ne[h],Y=Ge[h];for(var Q=h;Q>w;Q--)Ne[Q]=Ne[Q-1],Ge[Q]=Ge[Q-1];Ne[w]=O,Ge[w]=Y,this.setPage(w)}else if(h<w){O=Ne[h],Y=Ge[h];for(var de=h;de<w;de++)Ne[de]=Ne[de+1],Ge[de]=Ge[de+1];Ne[w]=O,Ge[w]=Y,this.setPage(w)}return this},p.deletePage=function(){return yo.apply(this,arguments),this},p.__private__.text=p.text=function(h,w,O,Y,Q){var de,we,je,Ie,Qe,rt,vt,on,Mt,Et=(Y=Y||{}).scope||this;if(typeof h=="number"&&typeof w=="number"&&(typeof O=="string"||Array.isArray(O))){var Bt=O;O=w,w=h,h=Bt}if(arguments[3]instanceof $e==0?(je=arguments[4],Ie=arguments[5],Ct(vt=arguments[3])==="object"&&vt!==null||(typeof je=="string"&&(Ie=je,je=null),typeof vt=="string"&&(Ie=vt,vt=null),typeof vt=="number"&&(je=vt,vt=null),Y={flags:vt,angle:je,align:Ie})):(I("The transform parameter of text() with a Matrix value"),Mt=Q),isNaN(w)||isNaN(O)||h==null)throw new Error("Invalid arguments passed to jsPDF.text");if(h.length===0)return Et;var Yt,Vt="",xn=typeof Y.lineHeightFactor=="number"?Y.lineHeightFactor:Vi,ri=Et.internal.scaleFactor;function Po(Dt){return Dt=Dt.split("	").join(Array(Y.TabLen||9).join(" ")),sr(Dt,vt)}function Zi(Dt){for(var Ot,Jt=Dt.concat(),ln=[],ai=Jt.length;ai--;)typeof(Ot=Jt.shift())=="string"?ln.push(Ot):Array.isArray(Dt)&&(Ot.length===1||Ot[1]===void 0&&Ot[2]===void 0)?ln.push(Ot[0]):ln.push([Ot[0],Ot[1],Ot[2]]);return ln}function Ki(Dt,Ot){var Jt;if(typeof Dt=="string")Jt=Ot(Dt)[0];else if(Array.isArray(Dt)){for(var ln,ai,Fo=Dt.concat(),qa=[],Rs=Fo.length;Rs--;)typeof(ln=Fo.shift())=="string"?qa.push(Ot(ln)[0]):Array.isArray(ln)&&typeof ln[0]=="string"&&(ai=Ot(ln[0],ln[1],ln[2]),qa.push([ai[0],ai[1],ai[2]]));Jt=qa}return Jt}var bi=!1,Xi=!0;if(typeof h=="string")bi=!0;else if(Array.isArray(h)){var ja=h.concat();we=[];for(var Fa,Nn=ja.length;Nn--;)(typeof(Fa=ja.shift())!="string"||Array.isArray(Fa)&&typeof Fa[0]!="str
69ing")&&(Xi=!1);bi=Xi}if(bi===!1)throw new Error('Type of text must be string or Array. "'+h+'" is not recognized.');typeof h=="string"&&(h=h.match(/[\r?\n]/)?h.split(/\r\n|\r|\n/g):[h]);var Ji=_e/Et.internal.scaleFactor,Qi=Ji*(xn-1);switch(Y.baseline){case"bottom":O-=Qi;break;case"top":O+=Ji-Qi;break;case"hanging":O+=Ji-2*Qi;break;case"middle":O+=Ji/2-Qi}if((rt=Y.maxWidth||0)>0&&(typeof h=="string"?h=Et.splitTextToSize(h,rt):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(Dt,Ot){return Dt.concat(Et.splitTextToSize(Ot,rt))},[]))),de={text:h,x:w,y:O,options:Y,mutex:{pdfEscape:sr,activeFontKey:Oe,fonts:ct,activeFontSize:_e}},At.publish("preProcessText",de),h=de.text,je=(Y=de.options).angle,Mt instanceof $e==0&&je&&typeof je=="number"){je*=Math.PI/180,Y.rotationDirection===0&&(je=-je),F===B&&(je=-je);var Co=Math.cos(je),Dr=Math.sin(je);Mt=new $e(Co,Dr,-Dr,Co,0,0)}else je&&je instanceof $e&&(Mt=je);F!==B||Mt||(Mt=Xr),(Qe=Y.charSpace||Ea)!==void 0&&(Vt+=K(W(Qe))+` Tc
70`,this.setCharSpace(this.getCharSpace()||0)),(on=Y.horizontalScale)!==void 0&&(Vt+=K(100*on)+` Tz
71`),Y.lang;var En=-1,Os=Y.renderingMode!==void 0?Y.renderingMode:Y.stroke,Da=Et.internal.getCurrentPageInfo().pageContext;switch(Os){case 0:case!1:case"fill":En=0;break;case 1:case!0:case"stroke":En=1;break;case 2:case"fillThenStroke":En=2;break;case 3:case"invisible":En=3;break;case 4:case"fillAndAddForClipping":En=4;break;case 5:case"strokeAndAddPathForClipping":En=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":En=6;break;case 7:case"addToPathForClipping":En=7}var Ts=Da.usedRenderingMode!==void 0?Da.usedRenderingMode:-1;En!==-1?Vt+=En+` Tr
72`:Ts!==-1&&(Vt+=`0 Tr
73`),En!==-1&&(Da.usedRenderingMode=En),Ie=Y.align||"left";var lr,ea=_e*xn,Eo=Et.internal.pageSize.getWidth(),Oa=ct[Oe];Qe=Y.charSpace||Ea,rt=Y.maxWidth||0,vt=Object.assign({autoencode:!0,noBOM:!0},Y.flags);var ta=[],Mo=function(Dt){return Et.getStringUnitWidth(Dt,{font:Oa,charSpace:Qe,fontSize:_e,doKerning:!1})*_e/ri};if(Object.prototype.toString.call(h)==="[object Array]"){var Mn;we=Zi(h),Ie!=="left"&&(lr=we.map(Mo));var Rn,Ta=0;if(Ie==="right"){w-=lr[0],h=[],Nn=we.length;for(var wi=0;wi<Nn;wi++)wi===0?(Rn=Qr(w),Mn=ei(O)):(Rn=W(Ta-lr[wi]),Mn=-ea),h.push([we[wi],Rn,Mn]),Ta=lr[wi]}else if(Ie==="center"){w-=lr[0]/2,h=[],Nn=we.length;for(var yi=0;yi<Nn;yi++)yi===0?(Rn=Qr(w),Mn=ei(O)):(Rn=W((Ta-lr[yi])/2),Mn=-ea),h.push([we[yi],Rn,Mn]),Ta=lr[yi]}else if(Ie==="left"){h=[],Nn=we.length;for(var Ra=0;Ra<Nn;Ra++)h.push(we[Ra])}else if(Ie==="justify"&&Oa.encoding==="Identity-H"){h=[],Nn=we.length,rt=rt!==0?rt:Eo;for(var na=0,sn=0;sn<Nn;sn++)if(Mn=sn===0?ei(O):-ea,Rn=sn===0?Qr(w):na,sn<Nn-1){var ac=W((rt-lr[sn])/(we[sn].split(" ").length-1)),Or=we[sn].split(" ");h.push([Or[0]+" ",Rn,Mn]),na=0;for(var vr=1;vr<Or.length;vr++){var ra=(Mo(Or[vr-1]+" "+Or[vr])-Mo(Or[vr]))*ri+ac;vr==Or.length-1?h.push([Or[vr],ra,0]):h.push([Or[vr]+" ",ra,0]),na-=ra}}else h.push([we[sn],Rn,Mn]);h.push(["",na,0])}else{if(Ie!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(h=[],Nn=we.length,rt=rt!==0?rt:Eo,sn=0;sn<Nn;sn++){Mn=sn===0?ei(O):-ea,Rn=sn===0?Qr(w):0;var Io=we[sn].split(" ").length-1,jo=Io>0?(rt-lr[sn])/Io:0;sn<Nn-1?ta.push(K(W(jo))):ta.push(0),h.push([we[sn],Rn,Mn])}}}(typeof Y.R2L=="boolean"?Y.R2L:He)===!0&&(h=Ki(h,function(Dt,Ot,Jt){return[Dt.split("").reverse().join(""),Ot,Jt]})),de={text:h,x:w,y:O,options:Y,mutex:{pdfEscape:sr,activeFontKey:Oe,fonts:ct,activeFontSize:_e}},At.publish("postProcessText",de),h=de.text,Yt=de.mutex.isHex||!1;var Ba=ct[Oe].encoding;Ba!=="WinAnsiEncoding"&&Ba!=="StandardEncoding"||(h=Ki(h,function(Dt,Ot,Jt){return[Po(Dt),Ot,Jt]})),we=Zi(h),h=[];for(var ia,aa,_i,ii=Array.isArray(we[0])?1:0,xi="",Ua=function(Dt,Ot,Jt){var ln="";return Jt instanceof $e?(Jt=typeof Y.angle=="number"?Kr(Jt,new $e(1,0,0,1,Dt,Ot)):Kr(new $e(1,0,0,1,Dt,Ot),Jt),F===B&&(Jt=Kr(new $e(1,0,0,-1,0,0),Jt)),ln=Jt.join(" ")+` Tm
74`):ln=K(Dt)+" "+K(Ot)+` Td
75`,ln},An=0;An<we.length;An++){switch(xi="",ii){case 1:_i=(Yt?"<":"(")+we[An][0]+(Yt?">":")"),ia=parseFloat(we[An][1]),aa=parseFloat(we[An][2]);break;case 0:_i=(Yt?"<":"(")+we[An]+(Yt?">":")"),ia=Qr(w),aa=ei(O)}ta!==void 0&&ta[An]!==void 0&&(xi=ta[An]+` Tw
76`),An===0?h.push(xi+Ua(ia,aa,Mt)+_i):ii===0?h.push(xi+_i):ii===1&&h.push(xi+Ua(ia,aa,Mt)+_i)}h=ii===0?h.join(` Tj
77T* `):h.join(` Tj
78`),h+=` Tj
79`;var Tr=`BT
80/`;return Tr+=Oe+" "+_e+` Tf
81`,Tr+=K(_e*xn)+` TL
82`,Tr+=Fr+`
83`,Tr+=Vt,Tr+=h,D(Tr+="ET"),v[Oe]=!0,Et};var Yl=p.__private__.clip=p.clip=function(h){return D(h==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return Yl("evenodd")},p.__private__.discardPath=p.discardPath=function(){return D("n"),this};var jr=p.__private__.isValidStyle=function(h){var w=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(h)!==-1&&(w=!0),w};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(h){return jr(h)&&(f=h),this};var Cs=p.__private__.getStyle=p.getStyle=function(h){var w=f;switch(h){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=h}return w},ka=p.close=function(){return D("h"),this};p.stroke=function(){return D("S"),this},p.fill=function(h){return Pa("f",h),this},p.fillEvenOdd=function(h){return Pa("f*",h),this},p.fillStroke=function(h){return Pa("B",h),this},p.fillStrokeEvenOdd=function(h){return Pa("B*",h),this};var Pa=function(h,w){Ct(w)==="object"?Gl(w,h):D(h)},xo=function(h){h===null||F===B&&h===void 0||(h=Cs(h),D(h))};function Vl(h,w,O,Y,Q){var de=new Ja(w||this.boundingBox,O||this.xStep,Y||this.yStep,this.gState,Q||this.matrix
vendor: 16,206 bytes, lines 83-85
83);de.stream=this.stream;var we=h+"$$"+this.cloneIndex+++"$$";return ir(we,de),de}var Gl=function(h,w){var O=Ft[h.key],Y=We[O];if(Y instanceof ca)D("q"),D($l(w)),Y.gState&&p.setGState(Y.gState),D(h.matrix.toString()+" cm"),D("/"+O+" sh"),D("Q");else if(Y instanceof Ja){var Q=new $e(1,0,0,-1,0,$i());h.matrix&&(Q=Q.multiply(h.matrix||Xr),O=Vl.call(Y,h.key,h.boundingBox,h.xStep,h.yStep,Q).id),D("q"),D("/Pattern cs"),D("/"+O+" scn"),Y.gState&&p.setGState(Y.gState),D(w),D("Q")}},$l=function(h){switch(h){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"}},gi=p.moveTo=function(h,w){return D(K(W(h))+" "+K(H(w))+" m"),this},Es=p.lineTo=function(h,w){return D(K(W(h))+" "+K(H(w))+" l"),this},mi=p.curveTo=function(h,w,O,Y,Q,de){return D([K(W(h)),K(H(w)),K(W(O)),K(H(Y)),K(W(Q)),K(H(de)),"c"].join(" ")),this};p.__private__.line=p.line=function(h,w,O,Y,Q){if(isNaN(h)||isNaN(w)||isNaN(O)||isNaN(Y)||!jr(Q))throw new Error("Invalid arguments passed to jsPDF.line");return F===U?this.lines([[O-h,Y-w]],h,w,[1,1],Q||"S"):this.lines([[O-h,Y-w]],h,w,[1,1]).stroke()},p.__private__.lines=p.lines=function(h,w,O,Y,Q,de){var we,je,Ie,Qe,rt,vt,on,Mt,Et,Bt,Yt,Vt;if(typeof h=="number"&&(Vt=O,O=w,w=h,h=Vt),Y=Y||[1,1],de=de||!1,isNaN(w)||isNaN(O)||!Array.isArray(h)||!Array.isArray(Y)||!jr(Q)||typeof de!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(gi(w,O),we=Y[0],je=Y[1],Qe=h.length,Bt=w,Yt=O,Ie=0;Ie<Qe;Ie++)(rt=h[Ie]).length===2?(Bt=rt[0]*we+Bt,Yt=rt[1]*je+Yt,Es(Bt,Yt)):(vt=rt[0]*we+Bt,on=rt[1]*je+Yt,Mt=rt[2]*we+Bt,Et=rt[3]*je+Yt,Bt=rt[4]*we+Bt,Yt=rt[5]*je+Yt,mi(vt,on,Mt,Et,Bt,Yt));return de&&ka(),xo(Q),this},p.path=function(h){for(var w=0;w<h.length;w++){var O=h[w],Y=O.c;switch(O.op){case"m":gi(Y[0],Y[1]);break;case"l":Es(Y[0],Y[1]);break;case"c":mi.apply(this,Y);break;case"h":ka()}}return this},p.__private__.rect=p.rect=function(h,w,O,Y,Q){if(isNaN(h)||isNaN(w)||isNaN(O)||isNaN(Y)||!jr(Q))throw new Error("Invalid arguments passed to jsPDF.rect");return F===U&&(Y=-Y),D([K(W(h)),K(H(w)),K(W(O)),K(W(Y)),"re"].join(" ")),xo(Q),this},p.__private__.triangle=p.triangle=function(h,w,O,Y,Q,de,we){if(isNaN(h)||isNaN(w)||isNaN(O)||isNaN(Y)||isNaN(Q)||isNaN(de)||!jr(we))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[O-h,Y-w],[Q-O,de-Y],[h-Q,w-de]],h,w,[1,1],we,!0),this},p.__private__.roundedRect=p.roundedRect=function(h,w,O,Y,Q,de,we){if(isNaN(h)||isNaN(w)||isNaN(O)||isNaN(Y)||isNaN(Q)||isNaN(de)||!jr(we))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var je=4/3*(Math.SQRT2-1);return Q=Math.min(Q,.5*O),de=Math.min(de,.5*Y),this.lines([[O-2*Q,0],[Q*je,0,Q,de-de*je,Q,de],[0,Y-2*de],[0,de*je,-Q*je,de,-Q,de],[2*Q-O,0],[-Q*je,0,-Q,-de*je,-Q,-de],[0,2*de-Y],[0,-de*je,Q*je,-de,Q,-de]],h+Q,w,[1,1],we,!0),this},p.__private__.ellipse=p.ellipse=function(h,w,O,Y,Q){if(isNaN(h)||isNaN(w)||isNaN(O)||isNaN(Y)||!jr(Q))throw new Error("Invalid arguments passed to jsPDF.ellipse");var de=4/3*(Math.SQRT2-1)*O,we=4/3*(Math.SQRT2-1)*Y;return gi(h+O,w),mi(h+O,w-we,h+de,w-Y,h,w-Y),mi(h-de,w-Y,h-O,w-we,h-O,w),mi(h-O,w+we,h-de,w+Y,h,w+Y),mi(h+de,w+Y,h+O,w+we,h+O,w),xo(Q),this},p.__private__.circle=p.circle=function(h,w,O,Y){if(isNaN(h)||isNaN(w)||isNaN(O)||!jr(Y))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(h,w,O,O,Y)},p.setFont=function(h,w,O){return O&&(w=oe(w,O)),Oe=Ls(h,w,{disableWarning:!1}),this};var Zl=p.__private__.getFont=p.getFont=function(){return ct[Ls.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var h,w,O={};for(h in ut)if(ut.hasOwnProperty(h))for(w in O[h]=[],ut[h])ut[h].hasOwnProperty(w)&&O[h].push(w);return O},p.addFont=function(h,w,O,Y,Q){var de=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&de.indexOf(arguments[3])!==-1?Q=arguments[3]:arguments[3]&&de.indexOf(arguments[3])==-1&&(O=oe(O,Y)),xs.call(this,h,w,O,Q=Q||"Identity-H")};var Vi,Xe=e.lineWidth||.200025,Kl=p.__private__.getLineWidth=p.getLineWidth=function(){return Xe},Xl=p.__private__.setLineWidth=p.setLineWidth=function(h){return Xe=h,D(K(W(h))+" w"),this};p.__private__.setLineDash=Be.API.setLineDash=Be.API.setLineDashPattern=function(h,w){if(h=h||[],w=w||0,isNaN(w)||!Array.isArray(h))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return h=h.map(function(O){return K(W(O))}).join(" "),w=K(W(w)),D("["+h+"] "+w+" d"),this};var Jl=p.__private__.getLineHeight=p.getLineHeight=function(){return _e*Vi};p.__private__.getLineHeight=p.getLineHeight=function(){return _e*Vi};var Ql=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(h){return typeof(h=h||1.15)=="number"&&(Vi=h),this},ec=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return Vi};Ql(e.lineHeight);var Qr=p.__private__.getHorizontalCoordinate=function(h){return W(h)},ei=p.__private__.getVerticalCoordinate=function(h){return F===B?h:Ge[q].mediaBox.topRightY-Ge[q].mediaBox.bottomLeftY-W(h)},tc=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(h){return K(Qr(h))},nc=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(h){return K(ei(h))},Ca=e.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return Cr(Ca)},p.__private__.setStrokeColor=p.setDrawColor=function(h,w,O,Y){return Ca=gr({ch1:h,ch2:w,ch3:O,ch4:Y,pdfColorType:"draw",precision:2}),D(Ca),this};var No=e.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return Cr(No)},p.__private__.setFillColor=p.setFillColor=function(h,w,O,Y){return No=gr({ch1:h,ch2:w,ch3:O,ch4:Y,pdfColorType:"fill",precision:2}),D(No),this};var Fr=e.textColor||"0 g",rc=p.__private__.getTextColor=p.getTextColor=function(){return Cr(Fr)};p.__private__.setTextColor=p.setTextColor=function(h,w,O,Y){return Fr=gr({ch1:h,ch2:w,ch3:O,ch4:Y,pdfColorType:"text",precision:3}),this};var Ea=e.charSpace,ic=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(Ea||0)};p.__private__.setCharSpace=p.setCharSpace=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ea=h,this};var Ao=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(h){var w=p.CapJoinStyles[h];if(w===void 0)throw new Error("Line cap style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ao=w,D(w+" J"),this};var vi=0;p.__private__.setLineJoin=p.setLineJoin=function(h){var w=p.CapJoinStyles[h];if(w===void 0)throw new Error("Line join style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return vi=w,D(w+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(h){if(h=h||0,isNaN(h))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return D(K(W(h))+" M"),this},p.GState=Ll,p.setGState=function(h){(h=typeof h=="string"?Ze[nt[h]]:So(null,h)).equals(Wt)||(D("/"+h.id+" gs"),Wt=h)};var So=function(h,w){if(!h||!nt[h]){var O=!1;for(var Y in Ze)if(Ze.hasOwnProperty(Y)&&Ze[Y].equals(w)){O=!0;break}if(O)w=Ze[Y];else{var Q="GS"+(Object.keys(Ze).length+1).toString(10);Ze[Q]=w,w.id=Q}return h&&(nt[h]=w.id),At.publish("addGState",w),w}};p.addGState=function(h,w){return So(h,w),this},p.saveGraphicsState=function(){return D("q"),zt.push({key:Oe,size:_e,color:Fr}),this},p.restoreGraphicsState=function(){D("Q");var h=zt.pop();return Oe=h.key,_e=h.size,Fr=h.color,Wt=null,this},p.setCurrentTransformationMatrix=function(h){return D(h.toString()+" cm"),this},p.comment=function(h){return D("#"+h),this};var Gi=function(h,w){var O=h||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return O},set:function(de){isNaN(de)||(O=parseFloat(de))}});var Y=w||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Y},set:function(de){isNaN(de)||(Y=parseFloat(de))}});var Q="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Q},set:function(de){Q=de.toString()}}),this},Lo=function(h,w,O,Y){Gi.call(this,h,w),this.type="rect";var Q=O||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Q},set:function(we){isNaN(we)||(Q=parseFloat(we))}});var de=Y||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return de},set:function(we){isNaN(we)||(de=parseFloat(we))}}),this},Ma=function(){this.page=ft,this.currentPage=q,this.pages=Ne.slice(0),this.pagesContext=Ge.slice(0),this.x=Re,this.y=Xt,this.matrix=wt,this.width=Ms(q),this.height=ni(q),this.outputDestination=ke,this.id="",this.objectNumber=-1};Ma.prototype.restore=function(){ft=this.page,q=this.currentPage,Ge=this.pagesContext,Ne=this.pages,Re=this.x,Xt=this.y,wt=this.matrix,ti(q,this.width),Is(q,this.height),ke=this.outputDestination};var ko=function(h,w,O,Y,Q){Pr.push(new Ma),ft=q=0,Ne=[],Re=h,Xt=w,wt=Q,wo([O,Y])};for(var Ia in p.beginFormObject=function(h,w,O,Y,Q){return ko(h,w,O,Y,Q),this},p.endFormObject=function(h){return function(w){if(Zr[w])Pr.pop().restore();else{var O=new Ma,Y="Xo"+(Object.keys(_n).length+1).toString(10);O.id=Y,Zr[w]=Y,_n[Y]=O,At.publish("addFormObject",O),Pr.pop().restore()}}(h),this},p.doFormObject=function(h,w){var O=_n[Zr[h]];return D("q"),D(w.toString()+" cm"),D("/"+O.id+" Do"),D("Q"),this},p.getFormObject=function(h){var w=_n[Zr[h]];return{x:w.x,y:w.y,width:w.width,height:w.height,matrix:w.matrix}},p.save=function(h,w){return h=h||"generated.pdf",(w=w||{}).returnPromise=w.returnPromise||!1,w.returnPromise===!1?(la(Sa(Ir()),h),typeof la.unload=="function"&&Je.setTimeout&&setTimeout(la.unload,911),this):new Promise(function(O,Y){try{var Q=la(Sa(Ir()),h);typeof la.unload=="function"&&Je.setTimeout&&setTimeout(la.unload,911),O(Q)}catch(de){Y(de.message)}})},Be.API)Be.API.hasOwnProperty(Ia)&&(Ia==="events"&&Be.API.events.length?function(h,w){var O,Y,Q;for(Q=w.length-1;Q!==-1;Q--)O=w[Q][0],Y=w[Q][1],h.subscribe.apply(h,[O].concat(typeof Y=="function"?[Y]:Y))}(At,Be.API.events):p[Ia]=Be.API[Ia]);function Ms(h){return Ge[h].mediaBox.topRightX-Ge[h].mediaBox.bottomLeftX}function ti(h,w){Ge[h].mediaBox.topRightX=w+Ge[h].mediaBox.bottomLeftX}function ni(h){return Ge[h].mediaBox.topRightY-Ge[h].mediaBox.bottomLeftY}function Is(h,w){Ge[h].mediaBox.topRightY=w+Ge[h].mediaBox.bottomLeftY}var js=p.getPageWidth=function(h){return Ms(h=h||q)/at},Fs=p.setPageWidth=function(h,w){ti(h,w*at)},$i=p.getPageHeight=function(h){return ni(h=h||q)/at},Ds=p.setPageHeight=function(h,w){Is(h,w*at)};return p.internal={pdfEscape:sr,getStyle:Cs,getFont:Zl,getFontSize:Ee,getCharSpace:ic,getTextColor:rc,getLineHeight:Jl,getLineHeightFactor:ec,getLineWidth:Kl,write:Le,getHorizontalCoordinate:Qr,getVerticalCoordinate:ei,getCoordinateString:tc,getVerticalCoordinateString:nc,collections:{},newObject:Gt,newAdditionalObject:Wi,newObjectDeferred:hn,newObjectDeferredBegin:gn,getFilters:mr,putStream:or,events:At,scaleFactor:at,pageSize:{getWidth:function(){return js(q)},setWidth:function(h){Fs(q,h)},getHeight:function(){return $i(q)},setHeight:function(h){Ds(q,h)}},encryptionOptions:d,encryption:mn,getEncryptor:function(h){return d!==null?mn.encryptor(h,0):function(w){return w}},output:La,getNumberOfPages:Ss,get pages(){return Ne},out:D,f2:S,f3:j,getPageInfo:Ps,getPageInfoByObjId:Wl,getCurrentPageInfo:Hl,getPDFVersion:L,Point:Gi,Rectangle:Lo,Matrix:$e,hasHotfix:Jr},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return js(q)},set:function(h){Fs(q,h)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return $i(q)},set:function(h){Ds(q,h)},enumerable:!0,configurable:!0}),(function(h){for(var w=0,O=Ye.length;w<O;w++){var Y=xs.call(this,h[w][0],h[w][1],h[w][2],Ye[w][3],!0);b===!1&&(v[Y]=!0);var Q=h[w][0].split("-");_s({id:Y,fontName:Q[0],fontStyle:Q[1]||""})}At.publish("addFonts",{fonts:ct,dictionary:ut})}).call(p,Ye),Oe="F1",Ns(i,t),At.publish("initialized"),p}Ka.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Ka.prototype.toHexString=function(e){return e.split("").map(function(n){return("0"+(255&n.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ka.prototype.hexToBytes=function(e){for(var n=[],t=0;t<e.length;t+=2)n.push(String.fromCharCode(parseInt(e.substr(t,2),16)));return n.join("")},Ka.prototype.processOwnerPassword=function(e,n){return Su(Au(n).substr(0,5),e)},Ka.prototype.encryptor=function(e,n){var t=Au(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&n,n>>8&255)).substr(0,10);return function(r){return Su(t,r)}},Ll.prototype.equals=function(e){var n,t="id,objectNumber,equals";if(!e||Ct(e)!==Ct(this))return!1;var r=0;for(n in this)if(!(t.indexOf(n)>=0)){if(this.hasOwnProperty(n)&&!e.hasOwnProperty(n)||this[n]!==e[n])return!1;r++}for(n in e)e.hasOwnProperty(n)&&t.indexOf(n)<0&&r--;return r===0},Be.API={events:[]},Be.version="4.2.1";var Kt=Be.API,$u=1,ya=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Va=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ba=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(n){var t=n.charCodeAt(0).toString(16).toUpperCase();return"#"+(t.length===1?"0"+t:t)})},et=function(e){return e.toFixed(2)},Mi=function(e){return e.toFixed(5)};Kt.__acroform__={};var Hn=function(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e},od=function(e){return e*$u},Ur=function(e){var n=new G1,t=Me.internal.getHeight(e)||0,r=Me.internal.getWidth(e)||0;return n.BBox=[0,0,Number(et(r)),Number(et(t))],n},Dv=Kt.__acroform__.setBit=function(e,n){if(e=e||0,n=n||0,isNaN(e)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<n},Ov=Kt.__acroform__.clearBit=function(e,n){if(e=e||0,n=n||0,isNaN(e)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<n)},Tv=Kt.__acroform__.getBit=function(e,n){if(isNaN(e)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<n?1:0},tn=Kt.__acroform__.getBitForPdf=function(e,n){if(isNaN(e)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Tv(e,n-1)},nn=Kt.__acroform__.setBitForPdf=function(e,n){if(isNaN(e)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Dv(e,n-1)},rn=Kt.__acroform__.clearBitForPdf=function(e,n){if(isNaN(e)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ov(e,n-1)},Rv=Kt.__acroform__.calculateCoordinates=function(e,n){var t=n.internal.getHorizontalCoordinate,r=n.internal.getVerticalCoordinate,i=e[0],a=e[1],l=e[2],s=e[3],c={};return c.lowerLeft_X=t(i)||0,c.lowerLeft_Y=r(a+s)||0,c.upperRight_X=t(i+l)||0,c.upperRight_Y=r(a)||0,[Number(et(c.lowerLeft_X)),Number(et(c.lowerLeft_Y)),Number(et(c.upperRight_X)),Number(et(c.upperRight_Y))]},Bv=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var n=[],t=e._V||e.DV,r=Lu(e,t),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;n.push("/Tx BMC"),n.push("q"),n.push("BT"),n.push(e.scope.__private__.encodeColorString(e.color)),n.push("/"+i+" "+et(r.fontSize)+" Tf"),n.push("1 0 0 1 0 0 Tm"),n.push(r.text),n.push("ET"),n.push("Q"),n.push("EMC");var a=Ur(e);return a.scope=e.scope,a.stream=n.join(`
84`),a}},Lu=function(e,n){var t=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},i=(n=(n=n.substr(0,1)=="("?n.substr(1):n).substr(n.length-1)==")"?n.substr(0,n.length-1):n).split(" ");i=e.multiline?i.map(function(S){return S.split(`
85`)}):i.map(function(S){return[S]});var a=t,l=Me.internal.getHeight(e)||0;l=l<0?-l:l;var s=Me.internal.getWidth(e)||0;s=s<0?-s:s;var c=function(S,j,W){if(S+1<i.length){var H=j+" "+i[S+1][0];return ll(H,e,W).width<=s-4}return!1};a++;e:for(;a>0;){n="",a--;var f,d,b=ll("3",e,a).height,v=e.multiline?l-a:(l-b)/2,p=v+=2,N=0,L=0,E=0;if(a<=0){n=`(...) Tj
86`,n+="% Width of Text: "+ll(n,e,a=12).width+", FieldWidth:"+s+`
87`;break}for(var _="",U=0,B=0;B<i.length;B++)if(i.hasOwnProperty(B)){var F=!1;if(i[B].length!==1&&E!==i[B].length-1){if((b+2)*(U+2)+2>l)continue e;_+=i[B][E],F=!0,L=B,B--}else{_=(_+=i[B][E]+" ").substr(_.length-1)==" "?_.substr(0,_.length-1):_;var ee=parseInt(B),le=c(ee,_,a),oe=B>=i.length-1;if(le&&!oe){_+=" ",E=0;continue}if(le||oe){if(oe)L=ee;else if(e.multiline&&(b+2)*(U+2)+2>l)continue e}else{if(!e.multiline||(b+2)*(U+2)+2>l)continue e;L=ee}}for(var K="",I=N;I<=L;I++){var V=i[I];if(e.multiline){if(I===L){K+=V[E]+" ",E=(E+1)%V.length;continue}if(I===N){K+=V[V.length-1]+" ";continue}}K+=V[0]+" "}switch(K=K.substr(K.length-1)==" "?K.substr(0,K.length-1):K,d=ll(K,e,a).width,e.textAlign){case"right":f=s-d-2;break;case"center":f=(s-d)/2;break;default:f=2}n+=et(f)+" "+et(p)+` Td
88`,n+="("+ya(K)+`) Tj
89`,n+=-et(f)+` 0 Td
90`,p=-(a+2),d=0,N=F?L:L+1,U++,_=""}break}return r.text=n,r.fontSize=a,r},ll=function(e,n,t){var r=n.scope.internal.getFont(n.fontName,n.fontStyle),i=n.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:n.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:i}},Uv={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},qv=function(e,n){var t={type:"reference",object:e};n.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===t.type&&r.object===t.object})===void 0&&n.internal.getPageInfo(e.page).pageContext.annotations.push(t)},zv=function(e,n){if(n.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(Lr.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Uv)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");$u=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new $1,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];a.objId=void 0,a.hasAnnotation&&qv(a,t)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(t){(function(r,i){var a=!r;for(var l in r||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(l)){var s=r[l],c=[],f=s.Rect;if(s.Rect&&(s.Rect=Rv(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=Me.createDefaultAppearanceStream(s),Ct(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(c=s.getKeyValueListForStream()),s.Rect=f,s.hasAppearanceStream&&!s.appearanceStreamContent){var d=Bv(s);c.push({key:"AP",value:"<</N "+d+">>"}),i.internal.acroformPlugin.xForms.push(d)}if(s.appearanceStreamContent){var b="";for(var v in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(v)){var p=s.appearanceStreamContent[v];if(b+="/"+v+" ",b+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var l in p)if(p.hasOwnProperty(l)){var N=p[l];typeof N=="function"&&(N=N.call(i,s)),b+="/"+l+" "+N+" ",i.internal.acroformPlugin.xForms.indexOf(N)>=0||i.internal.acroformPlugin.xForms.push(N)}}else typeof(N=p)=="function"&&(N=N.call(i,s)),b+="/"+l+" "+N,i.internal.acroformPlugin.xForms.indexOf(N)>=0||i.internal.acroformPlugin.xForms.push(N);b+=">>"}c.push({key:"AP",value:`<<
91`+b+">>"})}i.internal.putStream({additionalKeyValues:c,objectId:s.objId}),i.internal.out("endobj")}a&&function(L,E){for(var _ in L)if(L.hasOwnProperty(_)){var U=_,B=L[_];E.internal.newObjectDeferredBegin(B.objId,!0),Ct(B)==="object"&&typeof B.putStream=="function"&&B.putStream(),delete L[U]}}(i.internal.acroformPlugin.xForms,i)})(t,e)}),e.internal.acroformPlugin.isInitialized=!0}},V1=Kt.__acroform__.arrayToPdfArray=function(e,n,t){var r=function(l){return l};if(Array.isArray(e)){for(var i="[",a=0;a<e.length;a++)switch(a!==0&&(i+=" "),Ct(e[a])){case"boolean":case"number":case"object":i+=e[a].toString();break;case"string":e[a].substr(0,1)==="/"?i+="/"+ba(e[a].substr(1)):(n!==void 0&&t&&(r=t.internal.getEncryptor(n)),i+="("+ya(r
vendor: 21,905 bytes, lines 91-102
91(e[a].toString()))+")")}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},$c=function(e,n,t){var r=function(i){return i};return n!==void 0&&t&&(r=t.internal.getEncryptor(n)),(e=e||"").toString(),"("+ya(r(e))+")"},Wr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Wr.prototype.toString=function(){return this.objId+" 0 R"},Wr.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Wr.prototype.getKeyValueListForStream=function(){var e=[],n=Object.getOwnPropertyNames(this).filter(function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"});for(var t in n)if(Object.getOwnPropertyDescriptor(this,n[t]).configurable===!1){var r=n[t],i=this[r];i&&(Array.isArray(i)?e.push({key:r,value:V1(i,this.objId,this.scope)}):i instanceof Wr?(i.scope=this.scope,e.push({key:r,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:r,value:i}))}return e};var G1=function(){Wr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,n=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};Hn(G1,Wr);var $1=function(){Wr.call(this);var e,n=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return n.length>0?n:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return n}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(r){return r};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+ya(t(e))+")"}},set:function(t){e=t}})};Hn($1,Wr);var Lr=function e(){Wr.call(this);var n=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return n},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute F supplied.');n=_}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!tn(n,3)},set:function(_){_?this.F=nn(n,3):this.F=rn(n,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(_){if(isNaN(_))throw new Error('Invalid value "'+_+'" for attribute Ff supplied.');t=_}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(_){r=_!==void 0?_:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(_){r[0]=_}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(_){r[1]=_}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(_){r[2]=_}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(_){r[3]=_}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(_){switch(_){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=_;break;default:throw new Error('Invalid value "'+_+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof kl)return;a="FieldObject"+e.FieldNum++}var _=function(U){return U};return this.scope&&(_=this.scope.internal.getEncryptor(this.objId)),"("+ya(_(a))+")"},set:function(_){a=_.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(_){a=_}});var l="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return l},set:function(_){l=_}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(_){s=_}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(_){c=_}});var f=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return f===void 0?50/$u:f},set:function(_){f=_}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(_){d=_}});var b="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!b||this instanceof kl||this instanceof da))return $c(b,this.objId,this.scope)},set:function(_){_=_.toString(),b=_}});var v=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(v)return this instanceof pn==0?$c(v,this.objId,this.scope):v},set:function(_){_=_.toString(),v=this instanceof pn==0?_.substr(0,1)==="("?Va(_.substr(1,_.length-2)):Va(_):_}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof pn==1?Va(v.substr(1,v.length-1)):v},set:function(_){_=_.toString(),v=this instanceof pn==1?"/"+ba(_):_}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(_){this.V=_}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof pn==0?$c(p,this.objId,this.scope):p},set:function(_){_=_.toString(),p=this instanceof pn==0?_.substr(0,1)==="("?Va(_.substr(1,_.length-2)):Va(_):_}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof pn==1?Va(p.substr(1,p.length-1)):p},set:function(_){_=_.toString(),p=this instanceof pn==1?"/"+ba(_):_}}),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 N,L=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return L},set:function(_){_=!!_,L=_}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(N)return N},set:function(_){N=_}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,1)},set:function(_){_?this.Ff=nn(this.Ff,1):this.Ff=rn(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,2)},set:function(_){_?this.Ff=nn(this.Ff,2):this.Ff=rn(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,3)},set:function(_){_?this.Ff=nn(this.Ff,3):this.Ff=rn(this.Ff,3)}});var E=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(E!==null)return E},set:function(_){if([0,1,2].indexOf(_)===-1)throw new Error('Invalid value "'+_+'" for attribute Q supplied.');E=_}}),Object.defineProperty(this,"textAlign",{get:function(){var _;switch(E){case 0:default:_="left";break;case 1:_="center";break;case 2:_="right"}return _},configurable:!0,enumerable:!0,set:function(_){switch(_){case"right":case 2:E=2;break;case"center":case 1:E=1;break;default:E=0}}})};Hn(Lr,Wr);var eo=function(){Lr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var n=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return V1(n,this.objId,this.scope)},set:function(t){var r,i;i=[],typeof(r=t)=="string"&&(i=function(a,l,s){s||(s=1);for(var c,f=[];c=l.exec(a);)f.push(c[s]);return f}(r,/\((.*?)\)/g)),n=i}}),this.getOptions=function(){return n},this.setOptions=function(t){n=t,this.sort&&n.sort()},this.addOption=function(t){t=(t=t||"").toString(),n.push(t),this.sort&&n.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();n.indexOf(t)!==-1&&(n.splice(n.indexOf(t),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,18)},set:function(t){t?this.Ff=nn(this.Ff,18):this.Ff=rn(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=nn(this.Ff,19):this.Ff=rn(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,20)},set:function(t){t?(this.Ff=nn(this.Ff,20),n.sort()):this.Ff=rn(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,22)},set:function(t){t?this.Ff=nn(this.Ff,22):this.Ff=rn(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,23)},set:function(t){t?this.Ff=nn(this.Ff,23):this.Ff=rn(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,27)},set:function(t){t?this.Ff=nn(this.Ff,27):this.Ff=rn(this.Ff,27)}}),this.hasAppearanceStream=!1};Hn(eo,Lr);var to=function(){eo.call(this),this.fontName="helvetica",this.combo=!1};Hn(to,eo);var no=function(){to.call(this),this.combo=!0};Hn(no,to);var ml=function(){no.call(this),this.edit=!0};Hn(ml,no);var pn=function(){Lr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,15)},set:function(t){t?this.Ff=nn(this.Ff,15):this.Ff=rn(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,16)},set:function(t){t?this.Ff=nn(this.Ff,16):this.Ff=rn(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,17)},set:function(t){t?this.Ff=nn(this.Ff,17):this.Ff=rn(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,26)},set:function(t){t?this.Ff=nn(this.Ff,26):this.Ff=rn(this.Ff,26)}});var e,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(a){return a};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(n).length!==0){var r,i=[];for(r in i.push("<<"),n)i.push("/"+r+" ("+ya(t(n[r]))+")");return i.push(">>"),i.join(`
92`)}},set:function(t){Ct(t)==="object"&&(n=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(t){typeof t=="string"&&(n.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){var r=t==null?"":t.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),e="/"+ba(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+ba(t)}})};Hn(pn,Lr);var vl=function(){pn.call(this),this.pushButton=!0};Hn(vl,pn);var ro=function(){pn.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(n){e=n!==void 0?n:[]}})};Hn(ro,pn);var kl=function(){var e,n;Lr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(i){n=i}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(s){return s};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var a,l=[];for(a in l.push("<<"),r)l.push("/"+a+" ("+ya(i(r[a]))+")");return l.push(">>"),l.join(`
93`)},set:function(i){Ct(i)==="object"&&(r=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(i){typeof i=="string"&&(r.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(i){var a=i==null?"":i.toString();a.substr(0,1)==="/"&&(a=a.substr(1)),t="/"+ba(a)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(i){var a=i==null?"":i.toString();a.substr(0,1)==="/"&&(a=a.substr(1)),t="/"+ba(a)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Me.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Hn(kl,Lr),ro.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var n in this.Kids)if(this.Kids.hasOwnProperty(n)){var t=this.Kids[n];t.appearanceStreamContent=e.createAppearanceStream(t.optionName),t.caption=e.getCA()}},ro.prototype.createOption=function(e){var n=new kl;return n.Parent=this,n.optionName=e,this.Kids.push(n),Wv.call(this.scope,n),n};var bl=function(){pn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Me.CheckBox.createAppearanceStream()};Hn(bl,pn);var da=function(){Lr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,13)},set:function(n){n?this.Ff=nn(this.Ff,13):this.Ff=rn(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,21)},set:function(n){n?this.Ff=nn(this.Ff,21):this.Ff=rn(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,23)},set:function(n){n?this.Ff=nn(this.Ff,23):this.Ff=rn(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,24)},set:function(n){n?this.Ff=nn(this.Ff,24):this.Ff=rn(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,25)},set:function(n){n?this.Ff=nn(this.Ff,25):this.Ff=rn(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,26)},set:function(n){n?this.Ff=nn(this.Ff,26):this.Ff=rn(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(n){Number.isInteger(n)&&(e=n)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Hn(da,Lr);var wl=function(){da.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,14)},set:function(e){e?this.Ff=nn(this.Ff,14):this.Ff=rn(this.Ff,14)}}),this.password=!0};Hn(wl,da);var Me={CheckBox:{createAppearanceStream:function(){return{N:{On:Me.CheckBox.YesNormal},D:{On:Me.CheckBox.YesPushDown,Off:Me.CheckBox.OffPushDown}}},YesPushDown:function(e){var n=Ur(e);n.scope=e.scope;var t=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=Lu(e,e.caption);return t.push("0.749023 g"),t.push("0 0 "+et(Me.internal.getWidth(e))+" "+et(Me.internal.getHeight(e))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+r+" "+et(a.fontSize)+" Tf "+i),t.push("BT"),t.push(a.text),t.push("ET"),t.push("Q"),t.push("EMC"),n.stream=t.join(`
94`),n},YesNormal:function(e){var n=Ur(e);n.scope=e.scope;var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),i=[],a=Me.internal.getHeight(e),l=Me.internal.getWidth(e),s=Lu(e,e.caption);return i.push("1 g"),i.push("0 0 "+et(l)+" "+et(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+et(l-1)+" "+et(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+t+" "+et(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),n.stream=i.join(`
95`),n},OffPushDown:function(e){var n=Ur(e);n.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+et(Me.internal.getWidth(e))+" "+et(Me.internal.getHeight(e))+" re"),t.push("f"),n.stream=t.join(`
96`),n}},RadioButton:{Circle:{createAppearanceStream:function(e){var n={D:{Off:Me.RadioButton.Circle.OffPushDown},N:{}};return n.N[e]=Me.RadioButton.Circle.YesNormal,n.D[e]=Me.RadioButton.Circle.YesPushDown,n},getCA:function(){return"l"},YesNormal:function(e){var n=Ur(e);n.scope=e.scope;var t=[],r=Me.internal.getWidth(e)<=Me.internal.getHeight(e)?Me.internal.getWidth(e)/4:Me.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Me.internal.Bezier_C,a=Number((r*i).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+Mi(Me.internal.getWidth(e)/2)+" "+Mi(Me.internal.getHeight(e)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),t.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),t.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),t.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),t.push("f"),t.push("Q"),n.stream=t.join(`
97`),n},YesPushDown:function(e){var n=Ur(e);n.scope=e.scope;var t=[],r=Me.internal.getWidth(e)<=Me.internal.getHeight(e)?Me.internal.getWidth(e)/4:Me.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*Me.internal.Bezier_C).toFixed(5)),l=Number((r*Me.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Mi(Me.internal.getWidth(e)/2)+" "+Mi(Me.internal.getHeight(e)/2)+" cm"),t.push(i+" 0 m"),t.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),t.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),t.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),t.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+Mi(Me.internal.getWidth(e)/2)+" "+Mi(Me.internal.getHeight(e)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+l+" "+l+" "+r+" 0 "+r+" c"),t.push("-"+l+" "+r+" -"+r+" "+l+" -"+r+" 0 c"),t.push("-"+r+" -"+l+" -"+l+" -"+r+" 0 -"+r+" c"),t.push(l+" -"+r+" "+r+" -"+l+" "+r+" 0 c"),t.push("f"),t.push("Q"),n.stream=t.join(`
98`),n},OffPushDown:function(e){var n=Ur(e);n.scope=e.scope;var t=[],r=Me.internal.getWidth(e)<=Me.internal.getHeight(e)?Me.internal.getWidth(e)/4:Me.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*Me.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Mi(Me.internal.getWidth(e)/2)+" "+Mi(Me.internal.getHeight(e)/2)+" cm"),t.push(i+" 0 m"),t.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),t.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),t.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),t.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),t.push("f"),t.push("Q"),n.stream=t.join(`
99`),n}},Cross:{createAppearanceStream:function(e){var n={D:{Off:Me.RadioButton.Cross.OffPushDown},N:{}};return n.N[e]=Me.RadioButton.Cross.YesNormal,n.D[e]=Me.RadioButton.Cross.YesPushDown,n},getCA:function(){return"8"},YesNormal:function(e){var n=Ur(e);n.scope=e.scope;var t=[],r=Me.internal.calculateCross(e);return t.push("q"),t.push("1 1 "+et(Me.internal.getWidth(e)-2)+" "+et(Me.internal.getHeight(e)-2)+" re"),t.push("W"),t.push("n"),t.push(et(r.x1.x)+" "+et(r.x1.y)+" m"),t.push(et(r.x2.x)+" "+et(r.x2.y)+" l"),t.push(et(r.x4.x)+" "+et(r.x4.y)+" m"),t.push(et(r.x3.x)+" "+et(r.x3.y)+" l"),t.push("s"),t.push("Q"),n.stream=t.join(`
100`),n},YesPushDown:function(e){var n=Ur(e);n.scope=e.scope;var t=Me.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+et(Me.internal.getWidth(e))+" "+et(Me.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+et(Me.internal.getWidth(e)-2)+" "+et(Me.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(et(t.x1.x)+" "+et(t.x1.y)+" m"),r.push(et(t.x2.x)+" "+et(t.x2.y)+" l"),r.push(et(t.x4.x)+" "+et(t.x4.y)+" m"),r.push(et(t.x3.x)+" "+et(t.x3.y)+" l"),r.push("s"),r.push("Q"),n.stream=r.join(`
101`),n},OffPushDown:function(e){var n=Ur(e);n.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+et(Me.internal.getWidth(e))+" "+et(Me.internal.getHeight(e))+" re"),t.push("f"),n.stream=t.join(`
102`),n}}},createDefaultAppearanceStream:function(e){var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,t=e.scope.__private__.encodeColorString(e.color);return"/"+n+" "+e.fontSize+" Tf "+t}};Me.internal={Bezier_C:.551915024494,calculateCross:function(e){var n=Me.internal.getWidth(e),t=Me.internal.getHeight(e),r=Math.min(n,t);return{x1:{x:(n-r)/2,y:(t-r)/2+r},x2:{x:(n-r)/2+r,y:(t-r)/2},x3:{x:(n-r)/2,y:(t-r)/2},x4:{x:(n-r)/2+r,y:(t-r)/2+r}}}},Me.internal.getWidth=function(e){var n=0;return Ct(e)==="object"&&(n=od(e.Rect[2])),n},Me.internal.getHeight=function(e){var n=0;return Ct(e)==="object"&&(n=od(e.Rect[3])),n};var Wv=Kt.addField=function(e){if(zv(this,e),!(e instanceof Lr))throw new Error("Invalid argument passed to 
102jsPDF.addField.");var n;return(n=e).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=!1,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Kt.AcroFormChoiceField=eo,Kt.AcroFormListBox=to,Kt.AcroFormComboBox=no,Kt.AcroFormEditBox=ml,Kt.AcroFormButton=pn,Kt.AcroFormPushButton=vl,Kt.AcroFormRadioButton=ro,Kt.AcroFormCheckBox=bl,Kt.AcroFormTextField=da,Kt.AcroFormPasswordField=wl,Kt.AcroFormAppearance=Me,Kt.AcroForm={ChoiceField:eo,ListBox:to,ComboBox:no,EditBox:ml,Button:pn,PushButton:vl,RadioButton:ro,CheckBox:bl,TextField:da,PasswordField:wl,Appearance:Me},Be.AcroForm={ChoiceField:eo,ListBox:to,ComboBox:no,EditBox:ml,Button:pn,PushButton:vl,RadioButton:ro,CheckBox:bl,TextField:da,PasswordField:wl,Appearance:Me};function Z1(e){return e.reduce(function(n,t,r){return n[t]=r,n},{})}(function(e){var n="addImage_";e.__addimage__={};var t="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.__addimage__.getImageFileTypeByImageData=function(S,j){var W,H,se,fe,te,G=t;if((j=j||t)==="RGBA"||S.data!==void 0&&S.data instanceof Uint8ClampedArray&&"height"in S&&"width"in S)return"RGBA";if(le(S))for(te in r)for(se=r[te],W=0;W<se.length;W+=1){for(fe=!0,H=0;H<se[W].length;H+=1)if(se[W][H]!==void 0&&se[W][H]!==S[H]){fe=!1;break}if(fe===!0){G=te;break}}else for(te in r)for(se=r[te],W=0;W<se.length;W+=1){for(fe=!0,H=0;H<se[W].length;H+=1)if(se[W][H]!==void 0&&se[W][H]!==S.charCodeAt(H)){fe=!1;break}if(fe===!0){G=te;break}}return G===t&&j!==t&&(G=j),G},a=function S(j){for(var W=this.internal.write,H=this.internal.putStream,se=(0,this.internal.getFilters)();se.indexOf("FlateEncode")!==-1;)se.splice(se.indexOf("FlateEncode"),1);j.objectId=this.internal.newObject();var fe=[];if(fe.push({key:"Type",value:"/XObject"}),fe.push({key:"Subtype",value:"/Image"}),fe.push({key:"Width",value:j.width}),fe.push({key:"Height",value:j.height}
vendor: 83,531 bytes, lines 102-139
102),j.colorSpace===_.INDEXED?fe.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(j.palette.length/3-1)+" "+("sMask"in j&&j.sMask!==void 0?j.objectId+2:j.objectId+1)+" 0 R]"}):(fe.push({key:"ColorSpace",value:"/"+j.colorSpace}),j.colorSpace===_.DEVICE_CMYK&&fe.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),fe.push({key:"BitsPerComponent",value:j.bitsPerComponent}),"decodeParameters"in j&&j.decodeParameters!==void 0&&fe.push({key:"DecodeParms",value:"<<"+j.decodeParameters+">>"}),"transparency"in j&&Array.isArray(j.transparency)&&j.transparency.length>0){for(var te="",G=0,he=j.transparency.length;G<he;G++)te+=j.transparency[G]+" "+j.transparency[G]+" ";fe.push({key:"Mask",value:"["+te+"]"})}j.sMask!==void 0&&fe.push({key:"SMask",value:j.objectId+1+" 0 R"});var Ae=j.filter!==void 0?["/"+j.filter]:void 0;if(H({data:j.data,additionalKeyValues:fe,alreadyAppliedFilters:Ae,objectId:j.objectId}),W("endobj"),"sMask"in j&&j.sMask!==void 0){var be,k=(be=j.sMaskBitsPerComponent)!==null&&be!==void 0?be:j.bitsPerComponent,q={width:j.width,height:j.height,colorSpace:"DeviceGray",bitsPerComponent:k,data:j.sMask};"filter"in j&&(q.decodeParameters="/Predictor ".concat(j.predictor," /Colors 1 /BitsPerComponent ").concat(k," /Columns ").concat(j.width),q.filter=j.filter),S.call(this,q)}if(j.colorSpace===_.INDEXED){var z=this.internal.newObject();H({data:K(new Uint8Array(j.palette)),objectId:z}),W("endobj")}},l=function(){var S=this.internal.collections[n+"images"];for(var j in S)a.call(this,S[j])},s=function(){var S,j=this.internal.collections[n+"images"],W=this.internal.write;for(var H in j)W("/I"+(S=j[H]).index,S.objectId,"0","R")},c=function(){this.internal.collections[n+"images"]||(this.internal.collections[n+"images"]={},this.internal.events.subscribe("putResources",l),this.internal.events.subscribe("putXobjectDict",s))},f=function(){var S=this.internal.collections[n+"images"];return c.call(this),S},d=function(){return Object.keys(this.internal.collections[n+"images"]).length},b=function(S){return typeof e["process"+S.toUpperCase()]=="function"},v=function(S){return Ct(S)==="object"&&S.nodeType===1},p=function(S,j){if(S.nodeName==="IMG"&&S.hasAttribute("src")){var W=""+S.getAttribute("src");if(W.indexOf("data:image/")===0)return gl(unescape(W).split("base64,").pop());var H=e.loadFile(W,!0);if(H!==void 0)return H}if(S.nodeName==="CANVAS"){if(S.width===0||S.height===0)throw new Error("Given canvas must have data. Canvas width: "+S.width+", height: "+S.height);var se;switch(j){case"PNG":se="image/png";break;case"WEBP":se="image/webp";break;default:se="image/jpeg"}return gl(S.toDataURL(se,1).split("base64,").pop())}},N=function(S){var j=this.internal.collections[n+"images"];if(j){for(var W in j)if(S===j[W].alias)return j[W]}},L=function(S,j,W){return S||j||(S=-96,j=-96),S<0&&(S=-1*W.width*72/S/this.internal.scaleFactor),j<0&&(j=-1*W.height*72/j/this.internal.scaleFactor),S===0&&(S=j*W.width/W.height),j===0&&(j=S*W.height/W.width),[S,j]},E=function(S,j,W,H,se,fe){var te=L.call(this,W,H,se),G=this.internal.getCoordinateString,he=this.internal.getVerticalCoordinateString,Ae=f.call(this);if(W=te[0],H=te[1],Ae[se.index]=se,fe){fe*=Math.PI/180;var be=Math.cos(fe),k=Math.sin(fe),q=function($){return $.toFixed(4)},z=[q(be),q(k),q(-1*k),q(be),0,0,"cm"]}this.internal.write("q"),fe?(this.internal.write([1,"0","0",1,G(S),he(j+H),"cm"].join(" ")),this.internal.write(z.join(" ")),this.internal.write([G(W),"0","0",G(H),"0","0","cm"].join(" "))):this.internal.write([G(W),"0","0",G(H),G(S),he(j+H),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+se.index+" Do"),this.internal.write("Q")},_=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var U=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},B=e.__addimage__.sHashCode=function(S){var j,W,H=0;if(typeof S=="string")for(W=S.length,j=0;j<W;j++)H=(H<<5)-H+S.charCodeAt(j),H|=0;else if(le(S))for(W=S.byteLength/2,j=0;j<W;j++)H=(H<<5)-H+S[j],H|=0;return H},F=e.__addimage__.validateStringAsBase64=function(S){(S=S||"").toString().trim();var j=!0;return S.length===0&&(j=!1),S.length%4!=0&&(j=!1),/^[A-Za-z0-9+/]+$/.test(S.substr(0,S.length-2))===!1&&(j=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(S.substr(-2))===!1&&(j=!1),j},ee=e.__addimage__.extractImageFromDataUrl=function(S){if(S==null||!(S=S.trim()).startsWith("data:"))return null;var j=S.indexOf(",");return j<0?null:S.substring(0,j).trim().endsWith("base64")?S.substring(j+1):null};e.__addimage__.isArrayBuffer=function(S){return S instanceof ArrayBuffer};var le=e.__addimage__.isArrayBufferView=function(S){return S instanceof Int8Array||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int16Array||S instanceof Uint16Array||S instanceof Int32Array||S instanceof Uint32Array||S instanceof Float32Array||S instanceof Float64Array},oe=e.__addimage__.binaryStringToUint8Array=function(S){for(var j=S.length,W=new Uint8Array(j),H=0;H<j;H++)W[H]=S.charCodeAt(H);return W},K=e.__addimage__.arrayBufferToBinaryString=function(S){for(var j="",W=le(S)?S:new Uint8Array(S),H=0;H<W.length;H+=8192)j+=String.fromCharCode.apply(null,W.subarray(H,H+8192));return j};e.addImage=function(){var S,j,W,H,se,fe,te,G,he;if(typeof arguments[1]=="number"?(j=t,W=arguments[1],H=arguments[2],se=arguments[3],fe=arguments[4],te=arguments[5],G=arguments[6],he=arguments[7]):(j=arguments[1],W=arguments[2],H=arguments[3],se=arguments[4],fe=arguments[5],te=arguments[6],G=arguments[7],he=arguments[8]),Ct(S=arguments[0])==="object"&&!v(S)&&"imageData"in S){var Ae=S;S=Ae.imageData,j=Ae.format||j||t,W=Ae.x||W||0,H=Ae.y||H||0,se=Ae.w||Ae.width||se,fe=Ae.h||Ae.height||fe,te=Ae.alias||te,G=Ae.compression||G,he=Ae.rotation||Ae.angle||he}var be=this.internal.getFilters();if(G===void 0&&be.indexOf("FlateEncode")!==-1&&(G="SLOW"),isNaN(W)||isNaN(H))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var k=I.call(this,S,j,te,G);return E.call(this,W,H,se,fe,k,he),this};var I=function(S,j,W,H){var se,fe,te;if(typeof S=="string"&&i(S)===t){S=unescape(S);var G=V(S,!1);(G!==""||(G=e.loadFile(S,!0))!==void 0)&&(S=G)}if(v(S)&&(S=p(S,j)),j=i(S,j),!b(j))throw new Error("addImage does not support files of type '"+j+"', please ensure that a plugin for '"+j+"' support is added.");if(((te=W)==null||te.length===0)&&(W=function(he){return typeof he=="string"||le(he)?B(he):le(he.data)?B(he.data):null}(S)),(se=N.call(this,W))||(S instanceof Uint8Array||j==="RGBA"||(fe=S,S=oe(S)),se=this["process"+j.toUpperCase()](S,d.call(this),W,function(he){return he&&typeof he=="string"&&(he=he.toUpperCase()),he in e.image_compression?he:U.NONE}(H),fe)),!se)throw new Error("An unknown error occurred whilst processing the image.");return se},V=e.__addimage__.convertBase64ToBinaryString=function(S,j){j=typeof j!="boolean"||j;var W,H="";if(typeof S=="string"){var se;W=(se=ee(S))!==null&&se!==void 0?se:S;try{H=gl(W)}catch(fe){if(j)throw F(W)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+fe.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return H};e.getImageProperties=function(S){var j,W,H="";if(v(S)&&(S=p(S)),typeof S=="string"&&i(S)===t&&((H=V(S,!1))===""&&(H=e.loadFile(S)||""),S=H),W=i(S),!b(W))throw new Error("addImage does not support files of type '"+W+"', please ensure that a plugin for '"+W+"' support is added.");if(S instanceof Uint8Array||(S=oe(S)),!(j=this["process"+W.toUpperCase()](S)))throw new Error("An unknown error occurred whilst processing the image");return j.fileType=W,j}})(Be.API),function(e){var n=function(t){if(t!==void 0&&t!="")return!0};Be.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(t){for(var r,i,a,l=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(t.objId),f=t.pageContext.annotations,d=!1,b=0;b<f.length&&!d;b++)switch((r=f[b]).type){case"link":(n(r.options.url)||n(r.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(d!=0){this.internal.write("/Annots [");for(var v=0;v<f.length;v++){r=f[v];var p=this.internal.pdfEscape,N=this.internal.getEncryptor(t.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var L=this.internal.newAdditionalObject(),E=this.internal.newAdditionalObject(),_=this.internal.getEncryptor(L.objId),U=r.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+l(r.bounds.x)+" "+s(r.bounds.y+r.bounds.h)+" "+l(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y)+"] ")+"/Contents ("+p(_(r.contents))+")",a+=" /Popup "+E.objId+" 0 R",a+=" /P "+c.objId+" 0 R",a+=" /T ("+p(_(U))+") >>",L.content=a;var B=L.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+l(r.bounds.x+30)+" "+s(r.bounds.y+r.bounds.h)+" "+l(r.bounds.x+r.bounds.w+30)+" "+s(r.bounds.y)+"] ")+" /Parent "+B,r.open&&(a+=" /Open true"),a+=" >>",E.content=a,this.internal.write(L.objId,"0 R",E.objId,"0 R");break;case"freetext":i="/Rect ["+l(r.bounds.x)+" "+s(r.bounds.y)+" "+l(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y+r.bounds.h)+"] ";var F="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+p(N(r.contents))+")",a+=" /DS("+p(N(F))+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(r.options.name){var ee=this.annotations._nameMap[r.options.name];r.options.pageNumber=ee.page,r.options.top=ee.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",a="",r.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+p(N(r.options.url))+") >>";else if(r.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/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":a+=" /Fit]";break;case"FitH":a+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,a+=" /FitV "+r.options.left+"]";break;default:var le=s(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),a+=" /XYZ "+r.options.left+" "+le+" "+r.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),e.createAnnotation=function(t){var r=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":r.pageContext.annotations.push(t)}},e.link=function(t,r,i,a,l){var s=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,f=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:c(t),y:f(r),w:c(t+i),h:f(r+a)},options:l,type:"link"})},e.textWithLink=function(t,r,i,a){var l,s,c=this.getTextWidth(t),f=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){s=a.maxWidth;var d=this.splitTextToSize(t,s).length;l=Math.ceil(f*d)}else s=c,l=f;return this.text(t,r,i,a),i+=.2*f,a.align==="center"&&(r-=c/2),a.align==="right"&&(r-=c),this.link(r,i-f,s,l,a),c},e.getTextWidth=function(t){var r=this.internal.getFontSize();return this.getStringUnitWidth(t)*r/this.internal.scaleFactor}}(Be.API),function(e){var n={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},t={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var a=e.__arabicParser__.isInArabicSubstitutionA=function(L){return n[L.charCodeAt(0)]!==void 0},l=e.__arabicParser__.isArabicLetter=function(L){return typeof L=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(L)},s=e.__arabicParser__.isArabicEndLetter=function(L){return l(L)&&a(L)&&n[L.charCodeAt(0)].length<=2},c=e.__arabicParser__.isArabicAlfLetter=function(L){return l(L)&&i.indexOf(L.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(L){return l(L)&&a(L)&&n[L.charCodeAt(0)].length>=1};var f=e.__arabicParser__.arabicLetterHasFinalForm=function(L){return l(L)&&a(L)&&n[L.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(L){return l(L)&&a(L)&&n[L.charCodeAt(0)].length>=3};var d=e.__arabicParser__.arabicLetterHasMedialForm=function(L){return l(L)&&a(L)&&n[L.charCodeAt(0)].length==4},b=e.__arabicParser__.resolveLigatures=function(L){var E=0,_=t,U="",B=0;for(E=0;E<L.length;E+=1)_[L.charCodeAt(E)]!==void 0?(B++,typeof(_=_[L.charCodeAt(E)])=="number"&&(U+=String.fromCharCode(_),_=t,B=0),E===L.length-1&&(_=t,U+=L.charAt(E-(B-1)),E-=B-1,B=0)):(_=t,U+=L.charAt(E-B),E-=B,B=0);return U};e.__arabicParser__.isArabicDiacritic=function(L){return L!==void 0&&r[L.charCodeAt(0)]!==void 0};var v=e.__arabicParser__.getCorrectForm=function(L,E,_){return l(L)?a(L)===!1?-1:!f(L)||!l(E)&&!l(_)||!l(_)&&s(E)||s(L)&&!l(E)||s(L)&&c(E)||s(L)&&s(E)?0:d(L)&&l(E)&&!s(E)&&l(_)&&f(_)?3:s(L)||!l(_)?1:2:-1},p=function(L){var E=0,_=0,U=0,B="",F="",ee="",le=(L=L||"").split("\\s+"),oe=[];for(E=0;E<le.length;E+=1){for(oe.push(""),_=0;_<le[E].length;_+=1)B=le[E][_],F=le[E][_-1],ee=le[E][_+1],l(B)?(U=v(B,F,ee),oe[E]+=U!==-1?String.fromCharCode(n[B.charCodeAt(0)][U]):B):oe[E]+=B;oe[E]=b(oe[E])}return oe.join(" ")},N=e.__arabicParser__.processArabic=e.processArabic=function(){var L,E=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,_=[];if(Array.isArray(E)){var U=0;for(_=[],U=0;U<E.length;U+=1)Array.isArray(E[U])?_.push([p(E[U][0]),E[U][1],E[U][2]]):_.push([p(E[U])]);L=_}else L=p(E);return typeof arguments[0]=="string"?L:(arguments[0].text=L,arguments[0])};e.events.push(["preProcessText",N])}(Be.API),Be.API.autoPrint=function(e){var n;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){n=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 "+n+" 0 R")})),this},function(e){var n=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(s){t=s}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(s){r=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(s){i=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(s){a=s}});var l={};Object.defineProperty(this,"style",{get:function(){return l},set:function(s){l=s}}),Object.defineProperty(this,"parentNode",{})};n.prototype.getContext=function(t,r){var i;if((t=t||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this}])}(Be.API),function(e){var n={left:0,top:0,bottom:0,right:0},t=!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({},n),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(L){c=L}});var f=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return f},set:function(L){f=L}});var d=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return d},set:function(L){d=L}});var b=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return b},set:function(L){b=L}});var v=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return v},set:function(L){v=L}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(L){p=L}});var N=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return N},set:function(L){N=L}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(c){return r.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},e.getTextDimensions=function(c,f){r.call(this);var d=(f=f||{}).fontSize||this.getFontSize(),b=f.font||this.getFont(),v=f.scaleFactor||this.internal.scaleFactor,p=0,N=0,L=0,E=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c)}var _=f.maxWidth;_>0?typeof c=="string"?c=this.splitTextToSize(c,_):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(B,F){return B.concat(E.splitTextToSize(F,_))},[])):c=Array.isArray(c)?c:[c];for(var U=0;U<c.length;U++)p<(L=this.getStringUnitWidth(c[U],{font:b})*d)&&(p=L);return p!==0&&(N=c.length),{w:p/=v,h:Math.max((N*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/v,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var c=this.internal.__cell__.margins||n;return this.internal.__cell__.lastCell=new a(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var l=e.cell=function(){var c;c=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var f=this.internal.__cell__.lastCell,d=this.internal.__cell__.padding,b=this.internal.__cell__.margins||n,v=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return f.lineNumber!==void 0&&(f.lineNumber===c.lineNumber?(c.x=(f.x||0)+(f.width||0),c.y=f.y||0):f.y+f.height+c.height+b.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=b.top,p&&v&&(this.printHeaderRow(c.lineNumber,!0),c.y+=v[0].height)):c.y=f.y+f.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,t===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-d,c.y+d,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+d,{align:"center",baseline:"top",maxWidth:c.width-d-d}):this.text(c.text,c.x+d,c.y+d,{align:"left",baseline:"top",maxWidth:c.width-d-d})),this.internal.__cell__.lastCell=c,this};e.table=function(c,f,d,b,v){if(r.call(this),!d)throw new Error("No data for PDF table.");var p,N,L,E,_=[],U=[],B=[],F={},ee={},le=[],oe=[],K=(v=v||{}).autoSize||!1,I=v.printHeaders!==!1,V=v.css&&v.css["font-size"]!==void 0?16*v.css["font-size"]:v.fontSize||12,S=v.margins||Object.assign({width:this.getPageWidth()},n),j=typeof v.padding=="number"?v.padding:3,W=v.headerBackgroundColor||"#c8c8c8",H=v.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=I,this.internal.__cell__.margins=S,this.internal.__cell__.table_font_size=V,this.internal.__cell__.padding=j,this.internal.__cell__.headerBackgroundColor=W,this.internal.__cell__.headerTextColor=H,this.setFontSize(V),b==null)U=_=Object.keys(d[0]),B=_.map(function(){return"left"});else if(Array.isArray(b)&&Ct(b[0])==="object")for(_=b.map(function(Ae){return Ae.name}),U=b.map(function(Ae){return Ae.prompt||Ae.name||""}),B=b.map(function(Ae){return Ae.align||"left"}),p=0;p<b.length;p+=1)ee[b[p].name]=.7499990551181103*b[p].width;else Array.isArray(b)&&typeof b[0]=="string"&&(U=_=b,B=_.map(function(){return"left"}));if(K||Array.isArray(b)&&typeof b[0]=="string")for(p=0;p<_.length;p+=1){for(F[E=_[p]]=d.map(function(Ae){return Ae[E]}),this.setFont(void 0,"bold"),le.push(this.getTextDimensions(U[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),N=F[E],this.setFont(void 0,"normal"),L=0;L<N.length;L+=1)le.push(this.getTextDimensions(N[L],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ee[E]=Math.max.apply(null,le)+j+j,le=[]}if(I){var se={};for(p=0;p<_.length;p+=1)se[_[p]]={},se[_[p]].text=U[p],se[_[p]].align=B[p];var fe=s.call(this,se,ee);oe=_.map(function(Ae){return new a(c,f,ee[Ae],fe,se[Ae].text,void 0,se[Ae].align)}),this.setTableHeaderRow(oe),this.printHeaderRow(1,!1)}var te=b.reduce(function(Ae,be){return Ae[be.name]=be.align,Ae},{});for(p=0;p<d.length;p+=1){"rowStart"in v&&v.rowStart instanceof Function&&v.rowStart({row:p,data:d[p]},this);var G=s.call(this,d[p],ee);for(L=0;L<_.length;L+=1){var he=d[p][_[L]];"cellStart"in v&&v.cellStart instanceof Function&&v.cellStart({row:p,col:L,data:he},this),l.call(this,new a(c,f,ee[_[L]],G,he,p+2,te[_[L]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=f,this};var s=function(c,f){var d=this.internal.__cell__.padding,b=this.internal.__cell__.table_font_size,v=this.internal.scaleFactor;return Object.keys(c).map(function(p){var N=c[p];return this.splitTextToSize(N.hasOwnProperty("text")?N.text:N,f[p]-d-d)},this).map(function(p){return this.getLineHeightFactor()*p.length*b/v+d+d},this).reduce(function(p,N){return Math.max(p,N)},0)};e.setTableHeaderRow=function(c){r.call(this),this.internal.__cell__.tableHeaderRow=c},e.printHeaderRow=function(c,f){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var d;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var b=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(b[0],b[1],b[2],b[3],void 0,-1)}this.setFont(void 0,"bold");for(var v=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){d=this.internal.__cell__.tableHeaderRow[p].clone(),f&&(d.y=this.internal.__cell__.margins.top||0,v.push(d)),d.lineNumber=c;var N=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),l.call(this,d),this.setTextColor(N)}v.length>0&&this.setTableHeaderRow(v),this.setFont(void 0,"normal"),t=!1}}(Be.API);var K1={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},X1=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ku=Z1(X1),J1=[100,200,300,400,500,600,700,800,900],Hv=Z1(J1);function Zc(e){var n=e.family.replace(/"|'/g,"").toLowerCase(),t=function(a){return K1[a=a||"normal"]?a:"normal"}(e.style),r=function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400}(e.weight),i=function(a){return typeof ku[a=a||"normal"]=="number"?a:"normal"}(e.stretch);return{family:n,style:t,weight:r,stretch:i,src:e.src||[],ref:e.ref||{name:n,style:[i,t,r].join(" ")}}}function sd(e,n,t,r){var i;for(i=t;i>=0&&i<n.length;i+=r)if(e[n[i]])return e[n[i]];for(i=t;i>=0&&i<n.length;i-=r)if(e[n[i]])return e[n[i]]}var Yv={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},ld={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function cd(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function ud(e){return e.trimLeft()}function Vv(e,n){for(var t=0;t<e.length;){if(e.charAt(t)===n)return[e.substring(0,t),e.substring(t+1)];t+=1}return null}function Gv(e){var n=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return n===null?null:[n[0],e.substring(n[0].length)]}var Ga,cl,fd,hd,dd,Kc=["times"];function pd(e,n,t,r,i){var a=4,l=md;switch(i){case Be.API.image_compression.FAST:a=1,l=gd;break;case Be.API.image_compression.MEDIUM:a=6,l=vd;break;case Be.API.image_compression.SLOW:a=9,l=bd}e=function(c,f,d,b){for(var v,p=c.length/f,N=new Uint8Array(c.length+p),L=[$v,gd,md,vd,bd],E=0;E<p;E+=1){var _=E*f,U=c.subarray(_,_+f);if(b)N.set(b(U,d,v),_+E);else{for(var B=L.length,F=[],ee=0;ee<B;ee+=1)F[ee]=L[ee](U,d,v);var le=Kv(F.concat());N.set(F[le],_+E)}v=U}return N}(e,n,Math.ceil(t*r/8),l);var s=pu(e,{level:a});return Be.API.__addimage__.arrayBufferToBinaryString(s)}function $v(e){var n=Array.apply([],e);return n.unshift(0),n}function gd(e,n){var t=e.length,r=[];r[0]=1;for(var i=0;i<t;i+=1){var a=e[i-n]||0;r[i+1]=e[i]-a+256&255}return r}function md(e,n,t){var r=e.length,i=[];i[0]=2;for(var a=0;a<r;a+=1){var l=t&&t[a]||0;i[a+1]=e[a]-l+256&255}return i}function vd(e,n,t){var r=e.length,i=[];i[0]=3;for(var a=0;a<r;a+=1){var l=e[a-n]||0,s=t&&t[a]||0;i[a+1]=e[a]+256-(l+s>>>1)&255}return i}function bd(e,n,t){var r=e.length,i=[];i[0]=4;for(var a=0;a<r;a+=1){var l=Zv(e[a-n]||0,t&&t[a]||0,t&&t[a-n]||0);i[a+1]=e[a]-l+256&255}return i}function Zv(e,n,t){if(e===n&&n===t)return e;var r=Math.abs(n-t),i=Math.abs(e-t),a=Math.abs(e+n-t-t);return r<=i&&r<=a?e:i<=a?n:t}function Kv(e){var n=e.map(function(t){return t.reduce(function(r,i){return r+Math.abs(i)},0)});return n.indexOf(Math.min.apply(null,n))}function Xc(e,n,t){var r=n*t,i=Math.floor(r/8),a=16-(r-8*i+t),l=(1<<t)-1;return Q1(e,i)>>a&l}function wd(e,n,t,r){var i=t*r,a=Math.floor(i/8),l=16-(i-8*a+r),s=(1<<r)-1,c=(n&s)<<l;(function(f,d,b){if(d+1<f.byteLength)f.setUint16(d,b,!1);else{var v=b>>8&255;f.setUint8(d,v)}})(e,a,Q1(e,a)&~(s<<l)&65535|c)}function Q1(e,n){return n+1<e.byteLength?e.getUint16(n,!1):e.getUint8(n)<<8}function Xv(e){var n=0;if(e[n++]!==71||e[n++]!==73||e[n++]!==70||e[n++]!==56||(e[n++]+1&253)!=56||e[n++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[n++]|e[n++]<<8,r=e[n++]|e[n++]<<8,i=e[n++],a=i>>7,l=1<<1+(7&i);e[n++],e[n++];var s=null,c=null;a&&(s=n,c=l,n+=3*l);var f=!0,d=[],b=0,v=null,p=0,N=null;for(this.width=t,this.height=r;f&&n<e.length;)switch(e[n++]){case 33:switch(e[n++]){case 255:if(e[n]!==11||e[n+1]==78&&e[n+2]==69&&e[n+3]==84&&e[n+4]==83&&e[n+5]==67&&e[n+6]==65&&e[n+7]==80&&e[n+8]==69&&e[n+9]==50&&e[n+10]==46&&e[n+11]==48&&e[n+12]==3&&e[n+13]==1&&e[n+16]==0)n+=14,N=e[n++]|e[n++]<<8,n++;else for(n+=12;;){if(!((S=e[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}break;case 249:if(e[n++]!==4||e[n+4]!==0)throw new Error("Invalid graphics extension block.");var L=e[n++];b=e[n++]|e[n++]<<8,v=e[n++],1&L||(v=null),p=L>>2&7,n++;break;case 254:for(;;){if(!((S=e[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}break;default:throw new Error("Unknown graphic control label: 0x"+e[n-1].toString(16))}break;case 44:var E=e[n++]|e[n++]<<8,_=e[n++]|e[n++]<<8,U=e[n++]|e[n++]<<8,B=e[n++]|e[n++]<<8,F=e[n++],ee=F>>6&1,le=1<<1+(7&F),oe=s,K=c,I=!1;F>>7&&(I=!0,oe=n,K=le,n+=3*le);var V=n;for(n++;;){var S;if(!((S=e[n++])>=0))throw Error("Invalid block size");if(S===0)break;n+=S}d.push({x:E,y:_,width:U,height:B,has_local_palette:I,palette_offset:oe,palette_size:K,data_offset:V,data_length:n-V,transparent_index:v,interlaced:!!ee,delay:b,disposal:p});break;case 59:f=!1;break;default:throw new Error("Unknown gif block: 0x"+e[n-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return N},this.frameInfo=function(j){if(j<0||j>=d.length)throw new Error("Frame index out of range.");return d[j]},this.decodeAndBlitFrameBGRA=function(j,W){var H=this.frameInfo(j),se=H.width*H.height;if(se>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var fe=new Uint8Array(se);yd(e,H.data_offset,fe,se);var te=H.palette_offset,G=H.transparent_index;G===null&&(G=256);var he=H.width,Ae=t-he,be=he,k=4*(H.y*t+H.x),q=4*((H.y+H.height)*t+H.x),z=k,$=4*Ae;H.interlaced===!0&&($+=4*t*7);for(var J=8,re=0,ce=fe.length;re<ce;++re){var ue=fe[re];if(be===0&&(be=he,(z+=$)>=q&&($=4*Ae+4*t*(J-1),z=k+(he+Ae)*(J<<1),J>>=1)),ue===G)z+=4;else{var ve=e[te+3*ue],Ne=e[te+3*ue+1],Pe=e[te+3*ue+2];W[z++]=Pe,W[z++]=Ne,W[z++]=ve,W[z++]=255}--be}},this.decodeAndBlitFrameRGBA=function(j,W){var H=this.frameInfo(j),se=H.width*H.height;if(se>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var fe=new Uint8Array(se);yd(e,H.data_offset,fe,se);var te=H.palette_offset,G=H.transparent_index;G===null&&(G=256);var he=H.width,Ae=t-he,be=he,k=4*(H.y*t+H.x),q=4*((H.y+H.height)*t+H.x),z=k,$=4*Ae;H.interlaced===!0&&($+=4*t*7);for(var J=8,re=0,ce=fe.length;re<ce;++re){var ue=fe[re];if(be===0&&(be=he,(z+=$)>=q&&($=4*Ae+4*t*(J-1),z=k+(he+Ae)*(J<<1),J>>=1)),ue===G)z+=4;else{var ve=e[te+3*ue],Ne=e[te+3*ue+1],Pe=e[te+3*ue+2];W[z++]=ve,W[z++]=Ne,W[z++]=Pe,W[z++]=255}--be}}}function yd(e,n,t,r){for(var i=e[n++],a=1<<i,l=a+1,s=l+1,c=i+1,f=(1<<c)-1,d=0,b=0,v=0,p=e[n++],N=new Int32Array(4096),L=null;;){for(;d<16&&p!==0;)b|=e[n++]<<d,d+=8,p===1?p=e[n++]:--p;if(d<c)break;var E=b&f;if(b>>=c,d-=c,E!==a){if(E===l)break;for(var _=E<s?E:L,U=0,B=_;B>a;)B=N[B]>>8,++U;var F=B;if(v+U+(_!==E?1:0)>r)return void jt.log("Warning, gif stream longer than expected.");t[v++]=F;var ee=v+=U;for(_!==E&&(t[v++]=F),B=_;U--;)B=N[B],t[--ee]=255&B,B>>=8;L!==null&&s<4096&&(N[s++]=L<<8|F,s>=f+1&&c<12&&(++c,f=f<<1|1)),L=E}else s=l+1,f=(1<<(c=i+1))-1,L=null}return v!==r&&jt.log("Warning, gif stream shorter than expected."),t}/**
103 * @license
104  Copyright (c) 2008, Adobe Systems Incorporated
105  All rights reserved.
106
107  Redistribution and use in source and binary forms, with or without 
108  modification, are permitted provided that the following conditions are
109  met:
110
111  * Redistributions of source code must retain the above copyright notice, 
112    this list of conditions and the following disclaimer.
113  
114  * Redistributions in binary form must reproduce the above copyright
115    notice, this list of conditions and the following disclaimer in the 
116    documentation and/or other materials provided with the distribution.
117  
118  * Neither the name of Adobe Systems Incorporated nor the names of its 
119    contributors may be used to endorse or promote products derived from 
120    this software without specific prior written permission.
121
122  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
123  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
124  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
125  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
126  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
127  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
128  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
129  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
130  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
131  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
132  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
133*/function Jc(e){var n,t,r,i,a,l=Math.floor,s=new Array(64),c=new Array(64),f=new Array(64),d=new Array(64),b=new Array(65535),v=new Array(65535),p=new Array(64),N=new Array(64),L=[],E=0,_=7,U=new Array(64),B=new Array(64),F=new Array(64),ee=new Array(256),le=new Array(2048),oe=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],K=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],I=[0,1,2,3,4,5,6,7,8,9,10,11],V=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[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],j=[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],H=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],se=[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 fe(k,q){for(var z=0,$=0,J=new Array,re=1;re<=16;re++){for(var ce=1;ce<=k[re];ce++)J[q[$]]=[],J[q[$]][0]=z,J[q[$]][1]=re,$++,z++;z*=2}return J}function te(k){for(var q=k[0],z=k[1]-1;z>=0;)q&1<<z&&(E|=1<<_),z--,--_<0&&(E==255?(G(255),G(0)):G(E),_=7,E=0)}function G(k){L.push(k)}function he(k){G(k>>8&255),G(255&k)}function Ae(k,q,z,$,J){for(var re,ce=J[0],ue=J[240],ve=function(_e,Ve){var Ee,He,ze,Nt,ht,tt,pt,dt,Oe,at,Re=0;for(Oe=0;Oe<8;++Oe){Ee=_e[Re],He=_e[Re+1],ze=_e[Re+2],Nt=_e[Re+3],ht=_e[Re+4],tt=_e[Re+5],pt=_e[Re+6];var Xt=Ee+(dt=_e[Re+7]),wt=Ee-dt,ct=He+pt,ut=He-pt,zt=ze+tt,We=ze-tt,Ft=Nt+ht,Ze=Nt-ht,nt=Xt+Ft,Wt=Xt-Ft,ft=ct+zt,Ge=ct-zt;_e[Re]=nt+ft,_e[Re+4]=nt-ft;var At=.707106781*(Ge+Wt);_e[Re+2]=Wt+At,_e[Re+6]=Wt-At;var zi=.382683433*((nt=Ze+We)-(Ge=ut+wt)),_n=.5411961*nt+zi,Zr=1.306562965*Ge+zi,Pr=.707106781*(ft=We+ut),$e=wt+Pr,Kr=wt-Pr;_e[Re+5]=Kr+_n,_e[Re+3]=Kr-_n,_e[Re+1]=$e+Zr,_e[Re+7]=$e-Zr,Re+=8}for(Re=0,Oe=0;Oe<8;++Oe){Ee=_e[Re],He=_e[Re+8],ze=_e[Re+16],Nt=_e[Re+24],ht=_e[Re+32],tt=_e[Re+40],pt=_e[Re+48];var Xr=Ee+(dt=_e[Re+56]),ir=Ee-dt,ar=He+pt,Gt=He-pt,hn=ze+tt,gn=ze-tt,Wi=Nt+ht,pi=Nt-ht,pr=Xr+Wi,Cr=Xr-Wi,gr=ar+hn,mr=ar-hn;_e[Re]=pr+gr,_e[Re+32]=pr-gr;var or=.707106781*(mr+Cr);_e[Re+16]=Cr+or,_e[Re+48]=Cr-or;var Hi=.382683433*((pr=pi+gn)-(mr=Gt+ir)),Er=.5411961*pr+Hi,Yi=1.306562965*mr+Hi,_a=.707106781*(gr=gn+Gt),xa=ir+_a,Na=ir-_a;_e[Re+40]=Na+Er,_e[Re+24]=Na-Er,_e[Re+8]=xa+Yi,_e[Re+56]=xa-Yi,Re++}for(Oe=0;Oe<64;++Oe)at=_e[Oe]*Ve[Oe],p[Oe]=at>0?at+.5|0:at-.5|0;return p}(k,q),Ne=0;Ne<64;++Ne)N[oe[Ne]]=ve[Ne];var Pe=N[0]-z;z=N[0],Pe==0?te($[0]):(te($[v[re=32767+Pe]]),te(b[re]));for(var ke=63;ke>0&&N[ke]==0;)ke--;if(ke==0)return te(ce),z;for(var qe,D=1;D<=ke;){for(var Le=D;N[D]==0&&D<=ke;)++D;var lt=D-Le;if(lt>=16){qe=lt>>4;for(var Ye=1;Ye<=qe;++Ye)te(ue);lt&=15}re=32767+N[D],te(J[(lt<<4)+v[re]]),te(b[re]),D++}return ke!=63&&te(ce),z}function be(k){k=Math.min(Math.max(k,1),100),a!=k&&(function(q){for(var z=[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],$=0;$<64;$++){var J=l((z[$]*q+50)/100);J=Math.min(Math.max(J,1),255),s[oe[$]]=J}for(var re=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ce=0;ce<64;ce++){var ue=l((re[ce]*q+50)/100);ue=Math.min(Math.max(ue,1),255),c[oe[ce]]=ue}for(var ve=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Ne=0,Pe=0;Pe<8;Pe++)for(var ke=0;ke<8;ke++)f[Ne]=1/(s[oe[Ne]]*ve[Pe]*ve[ke]*8),d[Ne]=1/(c[oe[Ne]]*ve[Pe]*ve[ke]*8),Ne++}(k<50?Math.floor(5e3/k):Math.floor(200-2*k)),a=k)}this.encode=function(k,q){q&&be(q),L=new Array,E=0,_=7,he(65496),he(65504),he(16),G(74),G(70),G(73),G(70),G(0),G(1),G(1),G(0),he(1),he(1),G(0),G(0),function(){he(65499),he(132),G(0);for(var He=0;He<64;He++)G(s[He]);G(1);for(var ze=0;ze<64;ze++)G(c[ze])}(),function(He,ze){he(65472),he(17),G(8),he(ze),he(He),G(3),G(1),G(17),G(0),G(2),G(17),G(1),G(3),G(17),G(1)}(k.width,k.height),function(){he(65476),he(418),G(0);for(var He=0;He<16;He++)G(K[He+1]);for(var ze=0;ze<=11;ze++)G(I[ze]);G(16);for(var Nt=0;Nt<16;Nt++)G(V[Nt+1]);for(var ht=0;ht<=161;ht++)G(S[ht]);G(1);for(var tt=0;tt<16;tt++)G(j[tt+1]);for(var pt=0;pt<=11;pt++)G(W[pt]);G(17);for(var dt=0;dt<16;dt++)G(H[dt+1]);for(var Oe=0;Oe<=161;Oe++)G(se[Oe])}(),he(65498),he(12),G(3),G(1),G(0),G(2),G(17),G(3),G(17),G(0),G(63),G(0);var z=0,$=0,J=0;E=0,_=7,this.encode.displayName="_encode_";for(var re,ce,ue,ve,Ne,Pe,ke,qe,D,Le=k.data,lt=k.width,Ye=k.height,_e=4*lt,Ve=0;Ve<Ye;){for(re=0;re<_e;){for(Ne=_e*Ve+re,ke=-1,qe=0,D=0;D<64;D++)Pe=Ne+(qe=D>>3)*_e+(ke=4*(7&D)),Ve+qe>=Ye&&(Pe-=_e*(Ve+1+qe-Ye)),re+ke>=_e&&(Pe-=re+ke-_e+4),ce=Le[Pe++],ue=Le[Pe++],ve=Le[Pe++],U[D]=(le[ce]+le[ue+256|0]+le[ve+512|0]>>16)-128,B[D]=(le[ce+768|0]+le[ue+1024|0]+le[ve+1280|0]>>16)-128,F[D]=(le[ce+1280|0]+le[ue+1536|0]+le[ve+1792|0]>>16)-128;z=Ae(U,f,z,n,r),$=Ae(B,d,$,t,i),J=Ae(F,d,J,t,i),re+=32}Ve+=8}if(_>=0){var Ee=[];Ee[1]=_+1,Ee[0]=(1<<_+1)-1,te(Ee)}return he(65497),new Uint8Array(L)},e=e||50,function(){for(var k=String.fromCharCode,q=0;q<256;q++)ee[q]=k(q)}(),n=fe(K,I),t=fe(j,W),r=fe(V,S),i=fe(H,se),function(){for(var k=1,q=2,z=1;z<=15;z++){for(var $=k;$<q;$++)v[32767+$]=z,b[32767+$]=[],b[32767+$][1]=z,b[32767+$][0]=$;for(var J=-(q-1);J<=-k;J++)v[32767+J]=z,b[32767+J]=[],b[32767+J][1]=z,b[32767+J][0]=q-1+J;k<<=1,q<<=1}}(),function(){for(var k=0;k<256;k++)le[k]=19595*k,le[k+256|0]=38470*k,le[k+512|0]=7471*k+32768,le[k+768|0]=-11059*k,le[k+1024|0]=-21709*k,le[k+1280|0]=32768*k+8421375,le[k+1536|0]=-27439*k,le[k+1792|0]=-5329*k}(),be(e)}/**
134 * @license
135 * Copyright (c) 2017 Aras Abbasi
136 *
137 * Licensed under the MIT License.
138 * http://opensource.org/licenses/mit-license
139 */function _r(e,n){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!n,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 _d(e){function n(I){if(!I)throw Error("assert :P")}function t(I,V,S){for(var j=0;4>j;j++)if(I[V+j]!=S.charCodeAt(j))return!0;return!1}function r(I,V,S,j,W){for(var H=0;H<W;H++)I[V+H]=S[j+H]}function i(I,V,S,j){for(var W=0;W<j;W++)I[V+W]=S}function a(I){return new Int32Array(I)}function l(I,V){for(var S=[],j=0;j<I;j++)S.push(new V);return S}function s(I,V){var S=[];return function j(W,H,se){for(var fe=se[H],te=0;te<fe&&(W.push(se.length>H+1?[]:new V),!(se.length<H+1));te++)j(W[te],H+1,se)}(S,0,I),S}var c=function(){var I=this;function V(o,u){for(var g=1<<u-1>>>0;o&g;)g>>>=1;return g?(o&g-1)+g:o}function S(o,u,g,m,y){n(!(m%g));do o[u+(m-=g)]=y;while(0<m)}function j(o,u,g,m,y){if(n(2328>=y),512>=y)var x=a(512);else if((x=a(y))==null)return 0;return function(A,P,M,T,Z,ae){var R,X,ne=P,pe=1<<M,ie=a(16),ge=a(16);for(n(Z!=0),n(T!=null),n(A!=null),n(0<M),X=0;X<Z;++X){if(15<T[X])return 0;++ie[T[X]]}if(ie[0]==Z)return 0;for(ge[1]=0,R=1;15>R;++R){if(ie[R]>1<<R)return 0;ge[R+1]=ge[R]+ie[R]}for(X=0;X<Z;++X)R=T[X],0<T[X]&&(ae[ge[R]++]=X);if(ge[15]==1)return(T=new W).g=0,T.value=ae[0],S(A,ne,1,pe,T),pe;var me,xe=-1,ye=pe-1,Te=0,Ce=1,ot=1,Fe=1<<M;for(X=0,R=1,Z=2;R<=M;++R,Z<<=1){if(Ce+=ot<<=1,0>(ot-=ie[R]))return 0;for(;0<ie[R];--ie[R])(T=new W).g=R,T.value=ae[X++],S(A,ne+Te,Z,Fe,T),Te=V(Te,R)}for(R=M+1,Z=2;15>=R;++R,Z<<=1){if(Ce+=ot<<=1,0>(ot-=ie[R]))return 0;for(;0<ie[R];--ie[R]){if(T=new W,(Te&ye)!=xe){for(ne+=Fe,me=1<<(xe=R)-M;15>xe&&!(0>=(me-=ie[xe]));)++xe,me<<=1;pe+=Fe=1<<(me=xe-M),A[P+(xe=Te&ye)].g=me+M,A[P+xe].value=ne-P-xe}T.g=R-M,T.value=ae[X++],S(A,ne+(Te>>M),Z,Fe,T),Te=V(Te,R)}}return Ce!=2*ge[15]-1?0:pe}(o,u,g,m,y,x)}function W(){this.value=this.g=0}function H(){this.value=this.g=0}function se(){this.G=l(5,W),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=l(Oa,H)}function fe(o,u,g,m){n(o!=null),n(u!=null),n(2147483648>m),o.Ca=254,o.I=0,o.b=-8,o.Ka=0,o.oa=u,o.pa=g,o.Jd=u,o.Yc=g+m,o.Zc=4<=m?g+m-4+1:g,ce(o)}function te(o,u){for(var g=0;0<u--;)g|=ve(o,128)<<u;return g}function G(o,u){var g=te(o,u);return ue(o)?-g:g}function he(o,u,g,m){var y,x=0;for(n(o!=null),n(u!=null),n(4294967288>m),o.Sb=m,o.Ra=0,o.u=0,o.h=0,4<m&&(m=4),y=0;y<m;++y)x+=u[g+y]<<8*y;o.Ra=x,o.bb=m,o.oa=u,o.pa=g}function Ae(o){for(;8<=o.u&&o.bb<o.Sb;)o.Ra>>>=8,o.Ra+=o.oa[o.pa+o.bb]<<Mn-8>>>0,++o.bb,o.u-=8;$(o)&&(o.h=1,o.u=0)}function be(o,u){if(n(0<=u),!o.h&&u<=Mo){var g=z(o)&ta[u];return o.u+=u,Ae(o),g}return o.h=1,o.u=0}function k(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function q(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function z(o){return o.Ra>>>(o.u&Mn-1)>>>0}function $(o){return n(o.bb<=o.Sb),o.h||o.bb==o.Sb&&o.u>Mn}function J(o,u){o.u=u,o.h=$(o)}function re(o){o.u>=Rn&&(n(o.u>=Rn),Ae(o))}function ce(o){n(o!=null&&o.oa!=null),o.pa<o.Zc?(o.I=(o.oa[o.pa++]|o.I<<8)>>>0,o.b+=8):(n(o!=null&&o.oa!=null),o.pa<o.Yc?(o.b+=8,o.I=o.oa[o.pa++]|o.I<<8):o.Ka?o.b=0:(o.I<<=8,o.b+=8,o.Ka=1))}function ue(o){return te(o,1)}function ve(o,u){var g=o.Ca;0>o.b&&ce(o);var m=o.b,y=g*u>>>8,x=(o.I>>>m>y)+0;for(x?(g-=y,o.I-=y+1<<m>>>0):g=y+1,m=g,y=0;256<=m;)y+=8,m>>=8;return m=7^y+Ta[m],o.b-=m,o.Ca=(g<<m)-1,x}function Ne(o,u,g){o[u+0]=g>>24&255,o[u+1]=g>>16&255,o[u+2]=g>>8&255,o[u+3]=255&g}function Pe(o,u){return o[u+0]|o[u+1]<<8}function ke(o,u){return Pe(o,u)|o[u+2]<<16}function qe(o,u){return Pe(o,u)|Pe(o,u+2)<<16}function D(o,u){var g=1<<u;return n(o!=null),n(0<u),o.X=a(g),o.X==null?0:(o.Mb=32-u,o.Xa=u,1)}function Le(o,u){n(o!=null),n(u!=null),n(o.Xa==u.Xa),r(u.X,0,o.X,0,1<<u.Xa)}function lt(){this.X=[],this.Xa=this.Mb=0}function Ye(o,u,g,m){n(g!=null),n(m!=null);var y=g[0],x=m[0];return y==0&&(y=(o*x+u/2)/u),x==0&&(x=(u*y+o/2)/o),0>=y||0>=x?0:(g[0]=y,m[0]=x,1)}function _e(o,u){return o+(1<<u)-1>>>u}function Ve(o,u){return((4278255360&o)+(4278255360&u)>>>0&4278255360)+((16711935&o)+(16711935&u)>>>0&16711935)>>>0}function Ee(o,u){I[u]=function(g,m,y,x,A,P,M){var T;for(T=0;T<A;++T){var Z=I[o](P[M+T-1],y,x+T);P[M+T]=Ve(g[m+T],Z)}}}function He(){this.ud=this.hd=this.jd=0}function ze(o,u){return((4278124286&(o^u))>>>1)+(o&u)>>>0}function Nt(o){return 0<=o&&256>o?o:0>o?0:255<o?255:void 0}function ht(o,u){return Nt(o+(o-u+.5>>1))}function tt(o,u,g){return Math.abs(u-g)-Math.abs(o-g)}function pt(o,u,g,m,y,x,A){for(m=x[A-1],g=0;g<y;++g)x[A+g]=m=Ve(o[u+g],m)}function dt(o,u,g,m,y){var x;for(x=0;x<g;++x){var A=o[u+x],P=A>>8&255,M=16711935&(M=(M=16711935&A)+((P<<16)+P));m[y+x]=(4278255360&A)+M>>>0}}function Oe(o,u){u.jd=255&o,u.hd=o>>8&255,u.ud=o>>16&255}function at(o,u,g,m,y,x){var A;for(A=0;A<m;++A){var P=u[g+A],M=P>>>8,T=P,Z=255&(Z=(Z=P>>>16)+((o.jd<<24>>24)*(M<<24>>24)>>>5));T=255&(T=(T+=(o.hd<<24>>24)*(M<<24>>24)>>>5)+((o.ud<<24>>24)*(Z<<24>>24)>>>5)),y[x+A]=(4278255360&P)+(Z<<16)+T}}function Re(o,u,g,m,y){I[u]=function(x,A,P,M,T,Z,ae,R,X){for(M=ae;M<R;++M)for(ae=0;ae<X;++ae)T[Z++]=y(P[m(x[A++])])},I[o]=function(x,A,P,M,T,Z,ae){var R=8>>x.b,X=x.Ea,ne=x.K[0],pe=x.w;if(8>R)for(x=(1<<x.b)-1,pe=(1<<R)-1;A<P;++A){var ie,ge=0;for(ie=0;ie<X;++ie)ie&x||(ge=m(M[T++])),Z[ae++]=y(ne[ge&pe]),ge>>=R}else I["VP8LMapColor"+g](M,T,ne,pe,Z,ae,A,P,X)}}function Xt(o,u,g,m,y){for(g=u+g;u<g;){var x=o[u++];m[y++]=x>>16&255,m[y++]=x>>8&255,m[y++]=255&x}}function wt(o,u,g,m,y){for(g=u+g;u<g;){var x=o[u++];m[y++]=x>>16&255,m[y++]=x>>8&255,m[y++]=255&x,m[y++]=x>>24&255}}function ct(o,u,g,m,y){for(g=u+g;u<g;){var x=(A=o[u++])>>16&240|A>>12&15,A=240&A|A>>28&15;m[y++]=x,m[y++]=A}}function ut(o,u,g,m,y){for(g=u+g;u<g;){var x=(A=o[u++])>>16&248|A>>13&7,A=A>>5&224|A>>3&31;m[y++]=x,m[y++]=A}}function zt(o,u,g,m,y){for(g=u+g;u<g;){var x=o[u++];m[y++]=255&x,m[y++]=x>>8&255,m[y++]=x>>16&255}}function We(o,u,g,m,y,x){if(x==0)for(g=u+g;u<g;)Ne(m,((x=o[u++])[0]>>24|x[1]>>8&65280|x[2]<<8&16711680|x[3]<<24)>>>0),y+=32;else r(m,y,o,u,g)}function Ft(o,u){I[u][0]=I[o+"0"],I[u][1]=I[o+"1"],I[u][2]=I[o+"2"],I[u][3]=I[o+"3"],I[u][4]=I[o+"4"],I[u][5]=I[o+"5"],I[u][6]=I[o+"6"],I[u][7]=I[o+"7"],I[u][8]=I[o+"8"],I[u][9]=I[o+"9"],I[u][10]=I[o+"10"],I[u][11]=I[o+"11"],I[u][12]=I[o+"12"],I[u][13]=I[o+"13"],I[u][14]=I[o+"0"],I[u][15]=I[o+"0"]}function Ze(o){return o==lc||o==cc||o==Hs||o==uc}function nt(){this.eb=[],this.size=this.A=this.fb=0}function Wt(){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 ft(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new nt,this.f.kb=new Wt,this.sd=null}function Ge(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function At(){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 zi(o){return alert("todo:WebPSamplerProcessPlane"),o.T}function _n(o,u){var g=o.T,m=u.ba.f.RGBA,y=m.eb,x=m.fb+o.ka*m.A,A=ur[u.ba.S],P=o.y,M=o.O,T=o.f,Z=o.N,ae=o.ea,R=o.W,X=u.cc,ne=u.dc,pe=u.Mc,ie=u.Nc,ge=o.ka,me=o.ka+o.T,xe=o.U,ye=xe+1>>1;for(ge==0?A(P,M,null,null,T,Z,ae,R,T,Z,ae,R,y,x,null,null,xe):(A(u.ec,u.fc,P,M,X,ne,pe,ie,T,Z,ae,R,y,x-m.A,y,x,xe),++g);ge+2<me;ge+=2)X=T,ne=Z,pe=ae,ie=R,Z+=o.Rc,R+=o.Rc,x+=2*m.A,A(P,(M+=2*o.fa)-o.fa,P,M,X,ne,pe,ie,T,Z,ae,R,y,x-m.A,y,x,xe);return M+=o.fa,o.j+me<o.o?(r(u.ec,u.fc,P,M,xe),r(u.cc,u.dc,T,Z,ye),r(u.Mc,u.Nc,ae,R,ye),g--):1&me||A(P,M,null,null,T,Z,ae,R,T,Z,ae,R,y,x+m.A,null,null,xe),g}function Zr(o,u,g){var m=o.F,y=[o.J];if(m!=null){var x=o.U,A=u.ba.S,P=A==Ws||A==Hs;u=u.ba.f.RGBA;var M=[0],T=o.ka;M[0]=o.T,o.Kb&&(T==0?--M[0]:(--T,y[0]-=o.width),o.j+o.ka+o.T==o.o&&(M[0]=o.o-o.j-T));var Z=u.eb;T=u.fb+T*u.A,o=pf(m,y[0],o.width,x,M,Z,T+(P?0:3),u.A),n(g==M),o&&Ze(A)&&Do(Z,T,P,x,M,u.A)}return 0}function Pr(o){var u=o.ma,g=u.ba.S,m=11>g,y=g==qs||g==zs||g==Ws||g==sc||g==12||Ze(g);if(u.memory=null,u.Ib=null,u.Jb=null,u.Nd=null,!lr(u.Oa,o,y?11:12))return 0;if(y&&Ze(g)&&ri(),o.da)alert("todo:use_scaling");else{if(m){if(u.Ib=zi,o.Kb){if(g=o.U+1>>1,u.memory=a(o.U+2*g),u.memory==null)return 0;u.ec=u.memory,u.fc=0,u.cc=u.ec,u.dc=u.fc+o.U,u.Mc=u.cc,u.Nc=u.dc+g,u.Ib=_n,ri()}}else alert("todo:EmitYUV");y&&(u.Jb=Zr,m&&Vt())}if(m&&!Mf){for(o=0;256>o;++o)o2[o]=89858*(o-128)+Vs>>Ys,c2[o]=-22014*(o-128)+Vs,l2[o]=-45773*(o-128),s2[o]=113618*(o-128)+Vs>>Ys;for(o=To;o<dc;++o)u=76283*(o-16)+Vs>>Ys,u2[o-To]=Mr(u,255),f2[o-To]=Mr(u+8>>4,15);Mf=1}return 1}function $e(o){var u=o.ma,g=o.U,m=o.T;return n(!(1&o.ka)),0>=g||0>=m?0:(g=u.Ib(o,u),u.Jb!=null&&u.Jb(o,u,g),u.Dc+=g,1)}function Kr(o){o.ma.memory=null}function Xr(o,u,g,m){return be(o,8)!=47?0:(u[0]=be(o,14)+1,g[0]=be(o,14)+1,m[0]=be(o,1),be(o,3)!=0?0:!o.h)}function ir(o,u){if(4>o)return o+1;var g=o-2>>1;return(2+(1&o)<<g)+be(u,g)+1}function ar(o,u){return 120<u?u-120:1<=(g=((g=V0[u-1])>>4)*o+(8-(15&g)))?g:1;var g}function Gt(o,u,g){var m=z(g),y=o[u+=255&m].g-8;return 0<y&&(J(g,g.u+8),m=z(g),u+=o[u].value,u+=m&(1<<y)-1),J(g,g.u+o[u].g),o[u].value}function hn(o,u,g){return g.g+=o.g,g.value+=o.value<<u>>>0,n(8>=g.g),o.g}function gn(o,u,g){var m=o.xc;return n((u=m==0?0:o.vc[o.md*(g>>m)+(u>>m)])<o.Wb),o.Ya[u]}function Wi(o,u,g,m){var y=o.ab,x=o.c*u,A=o.C;u=A+u;var P=g,M=m;for(m=o.Ta,g=o.Ua;0<y--;){var T=o.gc[y],Z=A,ae=u,R=P,X=M,ne=(M=m,P=g,T.Ea);switch(n(Z<ae),n(ae<=T.nc),T.hc){case 2:Ra(R,X,(ae-Z)*ne,M,P);break;case 0:var pe=Z,ie=ae,ge=M,me=P,xe=(Fe=T).Ea;pe==0&&(wi(R,X,null,null,1,ge,me),pt(R,X+1,0,0,xe-1,ge,me+1),X+=xe,me+=xe,++pe);for(var ye=1<<Fe.b,Te=ye-1,Ce=_e(xe,Fe.b),ot=Fe.K,Fe=Fe.w+(pe>>Fe.b)*Ce;pe<ie;){var gt=ot,cn=Fe,st=1;for(yi(R,X,ge,me-xe,1,ge,me);st<xe;){var De=(st&~Te)+ye;De>xe&&(De=xe),(0,vr[gt[cn++]>>8&15])(R,X+ +st,ge,me+st-xe,De-st,ge,me+st),st=De}X+=xe,me+=xe,++pe&Te||(Fe+=Ce)}ae!=T.nc&&r(M,P-ne,M,P+(ae-Z-1)*ne,ne);break;case 1:for(ne=R,ie=X,xe=(R=T.Ea)-(me=R&~(ge=(X=1<<T.b)-1)),pe=_e(R,T.b),ye=T.K,T=T.w+(Z>>T.b)*pe;Z<ae;){for(Te=ye,Ce=T,ot=new He,Fe=ie+me,gt=ie+R;ie<Fe;)Oe(Te[Ce++],ot),ra(ot,ne,ie,X,M,P),ie+=X,P+=X;ie<gt&&(Oe(Te[Ce++],ot),ra(ot,ne,ie,xe,M,P),ie+=xe,P+=xe),++Z&ge||(T+=pe)}break;case 3:if(R==M&&X==P&&0<T.b){for(ie=M,R=ne=P+(ae-Z)*ne-(me=(ae-Z)*_e(T.Ea,T.b)),X=M,ge=P,pe=[],me=(xe=me)-1;0<=me;--me)pe[me]=X[ge+me];for(me=xe-1;0<=me;--me)ie[R+me]=pe[me];na(T,Z,ae,M,ne,M,P)}else na(T,Z,ae,R,X,M,P)}P=m,M=g}M!=g&&r(m,g,P,M,x)}function pi(o,u){var g=o.V,m=o.Ba+o.c*o.C,y=u-o.C;if(n(u<=o.l.o),n(16>=y),0<y){var x=o.l,A=o.Ta,P=o.Ua,M=x.width;if(Wi(o,y,g,m),y=P=[P],n((g=o.C)<(m=u)),n(x.v<x.va),m>x.o&&(m=x.o),g<x.j){var T=x.j-g;g=x.j,y[0]+=T*M}if(g>=m?g=0:(y[0]+=4*x.v,x.ka=g-x.j,x.U=x.va-x.v,x.T=m-g,g=1),g){if(P=P[0],11>(g=o.ca).S){var Z=g.f.RGBA,ae=(m=g.S,y=x.U,x=x.T,T=Z.eb,Z.A),R=x;for(Z=Z.fb+o.Ma*Z.A;0<R--;){var X=A,ne=P,pe=y,ie=T,ge=Z;switch(m){case Us:Io(X,ne,pe,ie,ge);break;case qs:jo(X,ne,pe,ie,ge);break;case lc:jo(X,ne,pe,ie,ge),Do(ie,ge,0,pe,1,0);break;case _f:aa(X,ne,pe,ie,ge);break;case zs:We(X,ne,pe,ie,ge,1);break;case cc:We(X,ne,pe,ie,ge,1),Do(ie,ge,0,pe,1,0);break;case Ws:We(X,ne,pe,ie,ge,0);break;case Hs:We(X,ne,pe,ie,ge,0),Do(ie,ge,1,pe,1,0);break;case sc:Ba(X,ne,pe,ie,ge);break;case uc:Ba(X,ne,pe,ie,ge),df(ie,ge,pe,1,0);break;case xf:ia(X,ne,pe,ie,ge);break;default:n(0)}P+=M,Z+=ae}o.Ma+=x}else alert("todo:EmitRescaledRowsYUVA");n(o.Ma<=g.height)}}o.C=u,n(o.C<=o.i)}function pr(o){var u;if(0<o.ua)return 0;for(u=0;u<o.Wb;++u){var g=o.Ya[u].G,m=o.Ya[u].H;if(0<g[1][m[1]+0].g||0<g[2][m[2]+0].g||0<g[3][m[3]+0].g)return 0}return 1}function Cr(o,u,g,m,y,x){if(o.Z!=0){var A=o.qd,P=o.rd;for(n(Ai[o.Z]!=null);u<g;++u)Ai[o.Z](A,P,m,y,m,y,x),A=m,P=y,y+=x;o.qd=A,o.rd=P}}function gr(o,u){var g=o.l.ma,m=g.Z==0||g.Z==1?o.l.j:o.C;if(m=o.C<m?m:o.C,n(u<=o.l.o),u>m){var y=o.l.width,x=g.ca,A=g.tb+y*m,P=o.V,M=o.Ba+o.c*m,T=o.gc;n(o.ab==1),n(T[0].hc==3),ac(T[0],m,u,P,M,x,A),Cr(g,m,u,x,A,y)}o.C=o.Ma=u}function mr(o,u,g,m,y,x,A){var P=o.$/m,M=o.$%m,T=o.m,Z=o.s,ae=g+o.$,R=ae;y=g+m*y;var X=g+m*x,ne=280+Z.ua,pe=o.Pb?P:16777216,ie=0<Z.ua?Z.Wa:null,ge=Z.wc,me=ae<X?gn(Z,M,P):null;n(o.C<x),n(X<=y);var xe=!1;e:for(;;){for(;xe||ae<X;){var ye=0;if(P>=pe){var Te=ae-g;n((pe=o).Pb),pe.wd=pe.m,pe.xd=Te,0<pe.s.ua&&Le(pe.s.Wa,pe.s.vb),pe=P+$0}if(M&ge||(me=gn(Z,M,P)),n(me!=null),me.Qb&&(u[ae]=me.qb,xe=!0),!xe)if(re(T),me.jc){ye=T,Te=u;var Ce=ae,ot=me.pd[z(ye)&Oa-1];n(me.jc),256>ot.g?(J(ye,ye.u+ot.g),Te[Ce]=ot.value,ye=0):(J(ye,ye.u+ot.g-256),n(256<=ot.value),ye=ot.value),ye==0&&(xe=!0)}else ye=Gt(me.G[0],me.H[0],T);if(T.h)break;if(xe||256>ye){if(!xe)if(me.nd)u[ae]=(me.qb|ye<<8)>>>0;else{if(re(T),xe=Gt(me.G[1],me.H[1],T),re(T),Te=Gt(me.G[2],me.H[2],T),Ce=Gt(me.G[3],me.H[3],T),T.h)break;u[ae]=(Ce<<24|xe<<16|ye<<8|Te)>>>0}if(xe=!1,++ae,++M>=m&&(M=0,++P,A!=null&&P<=x&&!(P%16)&&A(o,P),ie!=null))for(;R<ae;)ye=u[R++],ie.X[(506832829*ye&4294967295)>>>ie.Mb]=ye}else if(280>ye){if(ye=ir(ye-256,T),Te=Gt(me.G[4],me.H[4],T),re(T),Te=ar(m,Te=ir(Te,T)),T.h)break;if(ae-g<Te||y-ae<ye)break e;for(Ce=0;Ce<ye;++Ce)u[ae+Ce]=u[ae+Ce-Te];for(ae+=ye,M+=ye;M>=m;)M-=m,++P,A!=null&&P<=x&&!(P%16)&&A(o,P);if(n(ae<=y),M&ge&&(me=gn(Z,M,P)),ie!=null)for(;R<ae;)ye=u[R++],ie.X[(506832829*ye&4294967295)>>>ie.Mb]=ye}else{if(!(ye<ne))break e;for(xe=ye-280,n(ie!=null);R<ae;)ye=u[R++],ie.X[(506832829*ye&4294967295)>>>ie.Mb]=ye;ye=ae,n(!(xe>>>(Te=ie).Xa)),u[ye]=Te.X[xe],xe=!0}xe||n(T.h==$(T))}if(o.Pb&&T.h&&ae<y)n(o.m.h),o.a=5,o.m=o.wd,o.$=o.xd,0<o.s.ua&&Le(o.s.vb,o.s.Wa);else{if(T.h)break e;A!=null&&A(o,P>x?x:P),o.a=0,o.$=ae-g}return 1}return o.a=3,0}function or(o){n(o!=null),o.vc=null,o.yc=null,o.Ya=null;var u=o.Wa;u!=null&&(u.X=null),o.vb=null,n(o!=null)}function Hi(){var o=new je;return o==null?null:(o.a=0,o.xb=Sf,Ft("Predictor","VP8LPredictors"),Ft("Predictor","VP8LPredictors_C"),Ft("PredictorAdd","VP8LPredictorsAdd"),Ft("PredictorAdd","VP8LPredictorsAdd_C"),Ra=dt,ra=at,Io=Xt,jo=wt,Ba=ct,ia=ut,aa=zt,I.VP8LMapColor32b=sn,I.VP8LMapColor8b=Or,o)}function Er(o,u,g,m,y){var x=1,A=[o],P=[u],M=m.m,T=m.s,Z=null,ae=0;e:for(;;){if(g)for(;x&&be(M,1);){var R=A,X=P,ne=m,pe=1,ie=ne.m,ge=ne.gc[ne.ab],me=be(ie,2);if(ne.Oc&1<<me)x=0;else{switch(ne.Oc|=1<<me,ge.hc=me,ge.Ea=R[0],ge.nc=X[0],ge.K=[null],++ne.ab,n(4>=ne.ab),me){case 0:case 1:ge.b=be(ie,3)+2,pe=Er(_e(ge.Ea,ge.b),_e(ge.nc,ge.b),0,ne,ge.K),ge.K=ge.K[0];break;case 3:var xe,ye=be(ie,8)+1,Te=16<ye?0:4<ye?1:2<ye?2:3;if(R[0]=_e(ge.Ea,Te),ge.b=Te,xe=pe=Er(ye,1,0,ne,ge.K)){var Ce,ot=ye,Fe=ge,gt=1<<(8>>Fe.b),cn=a(gt);if(cn==null)xe=0;else{var st=Fe.K[0],De=Fe.w;for(cn[0]=Fe.K[0][0],Ce=1;Ce<1*ot;++Ce)cn[Ce]=Ve(st[De+Ce],cn[Ce-1]);for(;Ce<4*gt;++Ce)cn[Ce]=0;Fe.K[0]=null,Fe.K[0]=cn,xe=1}}pe=xe;break;case 2:break;default:n(0)}x=pe}}if(A=A[0],P=P[0],x&&be(M,1)&&!(x=1<=(ae=be(M,4))&&11>=ae)){m.a=3;break e}var Se;if(Se=x)t:{var Qt,it,bt,Ut=m,vn=A,In=P,$t=ae,Sn=g,jn=Ut.m,un=Ut.s,yt=[null],St=1,Zt=0,Lt=G0[$t];n:for(;;){if(Sn&&be(jn,1)){var bn=be(jn,3)+2,wr=_e(vn,bn),en=_e(In,bn),Bn=wr*en;if(!Er(wr,en,0,Ut,yt))break n;for(yt=yt[0],un.xc=bn,Qt=0;Qt<Bn;++Qt){var It=yt[Qt]>>8&65535;yt[Qt]=It,It>=St&&(St=It+1)}}if(jn.h)break n;for(it=0;5>it;++it){var fn=Nf[it];!it&&0<$t&&(fn+=1<<$t),Zt<fn&&(Zt=fn)}var Gn=l(St*Lt,W),Fn=St,$n=l(Fn,se);if($n==null)var Zn=null;else n(65536>=Fn),Zn=$n;var Un=a(Zt);if(Zn==null||Un==null||Gn==null){Ut.a=1;break n}var Kn=Gn;for(Qt=bt=0;Qt<St;++Qt){var Tt=Zn[Qt],Xn=Tt.G,yr=Tt.H,oa=0,si=1,wn=0;for(it=0;5>it;++it){fn=Nf[it],Xn[it]=Kn,yr[it]=bt,!it&&0<$t&&(fn+=1<<$t);i:{var $s,pc=fn,Zs=Ut,Ro=Un,p2=Kn,g2=bt,gc=0,Si=Zs.m,m2=be(Si,1);if(i(Ro,0,0,pc),m2){var v2=be(Si,1)+1,b2=be(Si,1),Ff=be(Si,b2==0?1:8);Ro[Ff]=1,v2==2&&(Ro[Ff=be(Si,8)]=1);var Ks=1}else{var Df=a(19),Of=be(Si,4)+4;if(19<Of){Zs.a=3;var Xs=0;break i}for($s=0;$s<Of;++$s)Df[Y0[$s]]=be(Si,3);var mc=void 0,Bo=void 0,Tf=Zs,w2=Df,Js=pc,Rf=Ro,vc=0,Li=Tf.m,Bf=8,Uf=l(128,W);r:for(;j(Uf,0,7,w2,19);){if(be(Li,1)){var y2=2+2*be(Li,3);if((mc=2+be(Li,y2))>Js)break r}else mc=Js;for(Bo=0;Bo<Js&&mc--;){re(Li);var qf=Uf[0+(127&z(Li))];J(Li,Li.u+qf.g);var za=qf.value;if(16>za)Rf[Bo++]=za,za!=0&&(Bf=za);else{var _2=za==16,zf=za-16,x2=W0[zf],Wf=be(Li,z0[zf])+x2;if(Bo+Wf>Js)break r;for(var N2=_2?Bf:0;0<Wf--;)Rf[Bo++]=N2}}vc=1;break r}vc||(Tf.a=3),Ks=vc}(Ks=Ks&&!Si.h)&&(gc=j(p2,g2,8,Ro,pc)),Ks&&gc!=0?Xs=gc:(Zs.a=3,Xs=0)}if(Xs==0)break n;if(si&&H0[it]==1&&(si=Kn[bt].g==0),oa+=Kn[bt].g,bt+=Xs,3>=it){var Uo,bc=Un[0];for(Uo=1;Uo<fn;++Uo)Un[Uo]>bc&&(bc=Un[Uo]);wn+=bc}}if(Tt.nd=si,Tt.Qb=0,si&&(Tt.qb=(Xn[3][yr[3]+0].value<<24|Xn[1][yr[1]+0].value<<16|Xn[2][yr[2]+0].value)>>>0,oa==0&&256>Xn[0][yr[0]+0].value&&(Tt.Qb=1,Tt.qb+=Xn[0][yr[0]+0].value<<8)),Tt.jc=!Tt.Qb&&6>wn,Tt.jc){var Qs,li=Tt;for(Qs=0;Qs<Oa;++Qs){var ki=Qs,Pi=li.pd[ki],el=li.G[0][li.H[0]+ki];256<=el.value?(Pi.g=el.g+256,Pi.value=el.value):(Pi.g=0,Pi.value=0,ki>>=hn(el,8,Pi),ki>>=hn(li.G[1][li.H[1]+ki],16,Pi),ki>>=hn(li.G[2][li.H[2]+ki],0,Pi),hn(li.G[3][li.H[3]+ki],24,Pi))}}}un.vc=yt,un.Wb=St,un.Ya=Zn,un.yc=Gn,Se=1;break t}Se=0}if(!(x=Se)){m.a=3;break e}if(0<ae){if(T.ua=1<<ae,!D(T.Wa,ae)){m.a=1,x=0;break e}}else T.ua=0;var wc=m,Hf=A,A2=P,yc=wc.s,_c=yc.xc;if(wc.c=Hf,wc.i=A2,yc.md=_e(Hf,_c),yc.wc=_c==0?-1:(1<<_c)-1,g){m.xb=t2;break e}if((Z=a(A*P))==null){m.a=1,x=0;break e}x=(x=mr(m,Z,0,A,P,P,null))&&!M.h;break e}return x?(y!=null?y[0]=Z:(n(Z==null),n(g)),m.$=0,g||or(T)):or(T),x}function Yi(o,u){var g=o.c*o.i,m=g+u+16*u;return n(o.c<=u),o.V=a(m),o.V==null?(o.Ta=null,o.Ua=0,o.a=1,0):(o.Ta=o.V,o.Ua=o.Ba+g+u,1)}function _a(o,u){var g=o.C,m=u-g,y=o.V,x=o.Ba+o.c*g;for(n(u<=o.l.o);0<m;){var A=16<m?16:m,P=o.l.ma,M=o.l.width,T=M*A,Z=P.ca,ae=P.tb+M*g,R=o.Ta,X=o.Ua;Wi(o,A,y,x),gf(R,X,Z,ae,T),Cr(P,g,g+A,Z,ae,M),m-=A,y+=A*o.c,g+=A}n(g==u),o.C=o.Ma=u}function xa(){this.ub=this.yd=this.td=this.Rb=0}function Na(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ql(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function bo(){this.Yb=function(){var o=[];return function u(g,m,y){for(var x=y[m],A=0;A<x&&(g.push(y.length>m+1?[]:0),!(y.length<m+1));A++)u(g[A],m+1,y)}(o,0,[3,11]),o}()}function _s(){this.jb=a(3),this.Wc=s([4,8],bo),this.Xc=s([4,17],bo)}function xs(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function sr(){this.ld=this.La=this.dd=this.tc=0}function wo(){this.Na=this.la=0}function Ns(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function yo(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function As(){this.uc=this.M=this.Nb=0,this.wa=Array(new sr),this.Y=0,this.ya=Array(new yo),this.aa=0,this.l=new Aa}function Ss(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Ls(){this.cb=this.a=0,this.sc="",this.m=new k,this.Od=new xa,this.Kc=new Na,this.ed=new xs,this.Qa=new ql,this.Ic=this.$c=this.Aa=0,this.D=new As,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=l(8,k),this.ia=0,this.pb=l(4,Ns),this.Pa=new _s,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ss),this.Hd=0,this.rb=Array(new wo),this.sb=0,this.wa=Array(new sr),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 yo),this.L=this.aa=0,this.gd=s([4,2],sr),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 Mr(o,u){return 0>o?0:o>u?u:o}function Aa(){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 zl(){var o=new Ls;return o!=null&&(o.a=0,o.sc="OK",o.cb=0,o.Xb=0,Oo||(Oo=Sa)),o}function an(o,u,g){return o.a==0&&(o.a=u,o.sc=g,o.cb=0),0}function ks(o,u,g){return 3<=g&&o[u+0]==157&&o[u+1]==1&&o[u+2]==42}function Ir(o,u){if(o==null)return 0;if(o.a=0,o.sc="OK",u==null)return an(o,2,"null VP8Io passed to VP8GetHeaders()");var g=u.data,m=u.w,y=u.ha;if(4>y)return an(o,7,"Truncated header.");var x=g[m+0]|g[m+1]<<8|g[m+2]<<16,A=o.Od;if(A.Rb=!(1&x),A.td=x>>1&7,A.yd=x>>4&1,A.ub=x>>5,3<A.td)return an(o,3,"Incorrect keyframe parameters.");if(!A.yd)return an(o,4,"Frame not displayable.");m+=3,y-=3;var P=o.Kc;if(A.Rb){if(7>y)return an(o,7,"cannot parse picture header");if(!ks(g,m,y))return an(o,3,"Bad code word");P.c=16383&(g[m+4]<<8|g[m+3]),P.Td=g[m+4]>>6,P.i=16383&(g[m+6]<<8|g[m+5]),P.Ud=g[m+6]>>6,m+=7,y-=7,o.za=P.c+15>>4,o.Ub=P.i+15>>4,u.width=P.c,u.height=P.i,u.Da=0,u.j=0,u.v=0,u.va=u.width,u.o=u.height,u.da=0,u.ib=u.width,u.hb=u.height,u.U=u.width,u.T=u.height,i((x=o.Pa).jb,0,255,x.jb.length),n((x=o.Qa)!=null),x.Cb=0,x.Bb=0,x.Fb=1,i(x.Zb,0,0,x.Zb.length),i(x.Lb,0,0,x.Lb)}if(A.ub>y)return an(o,7,"bad partition length");fe(x=o.m,g,m,A.ub),m+=A.ub,y-=A.ub,A.Rb&&(P.Ld=ue(x),P.Kd=ue(x)),P=o.Qa;var M,T=o.Pa;if(n(x!=null),n(P!=null),P.Cb=ue(x),P.Cb){if(P.Bb=ue(x),ue(x)){for(P.Fb=ue(x),M=0;4>M;++M)P.Zb[M]=ue(x)?G(x,7):0;for(M=0;4>M;++M)P.Lb[M]=ue(x)?G(x,6):0}if(P.Bb)for(M=0;3>M;++M)T.jb[M]=ue(x)?te(x,8):255}else P.Bb=0;if(x.Ka)return an(o,3,"cannot parse segment header");if((P=o.ed).zd=ue(x),P.Tb=te(x,6),P.wb=te(x,3),P.Pc=ue(x),P.Pc&&ue(x)){for(T=0;4>T;++T)ue(x)&&(P.vd[T]=G(x,6));for(T=0;4>T;++T)ue(x)&&(P.od[T]=G(x,6))}if(o.L=P.Tb==0?0:P.zd?1:2,x.Ka)return an(o,3,"cannot parse filter header");var Z=y;if(y=M=m,m=M+Z,P=Z,o.Xb=(1<<te(o.m,2))-1,Z<3*(T=o.Xb))g=7;else{for(M+=3*T,P-=3*T,Z=0;Z<T;++Z){var ae=g[y+0]|g[y+1]<<8|g[y+2]<<16;ae>P&&(ae=P),fe(o.Jc[+Z],g,M,ae),M+=ae,P-=ae,y+=3}fe(o.Jc[+T],g,M,P),g=M<m?0:5}if(g!=0)return an(o,g,"cannot parse partitions");for(g=te(M=o.m,7),y=ue(M)?G(M,4):0,m=ue(M)?G(M,4):0,P=ue(M)?G(M,4):0,T=ue(M)?G(M,4):0,M=ue(M)?G(M,4):0,Z=o.Qa,ae=0;4>ae;++ae){if(Z.Cb){var R=Z.Zb[ae];Z.Fb||(R+=g)}else{if(0<ae){o.pb[ae]=o.pb[0];continue}R=g}var X=o.pb[ae];X.Sc[0]=fc[Mr(R+y,127)],X.Sc[1]=hc[Mr(R+0,127)],X.Eb[0]=2*fc[Mr(R+m,127)],X.Eb[1]=101581*hc[Mr(R+P,127)]>>16,8>X.Eb[1]&&(X.Eb[1]=8),X.Qc[0]=fc[Mr(R+T,117)],X.Qc[1]=hc[Mr(R+M,127)],X.lc=R+M}if(!A.Rb)return an(o,4,"Not a key frame.");for(ue(x),A=o.Pa,g=0;4>g;++g){for(y=0;8>y;++y)for(m=0;3>m;++m)for(P=0;11>P;++P)T=ve(x,Q0[g][y][m][P])?te(x,8):X0[g][y][m][P],A.Wc[g][y].Yb[m][P]=T;for(y=0;17>y;++y)A.Xc[g][y]=A.Wc[g][e2[y]]}return o.kc=ue(x),o.kc&&(o.Bd=te(x,8)),o.cb=1}function Sa(o,u,g,m,y,x,A){var P=u[y].Yb[g];for(g=0;16>y;++y){if(!ve(o,P[g+0]))return y;for(;!ve(o,P[g+1]);)if(P=u[++y].Yb[0],g=0,y==16)return 16;var M=u[y+1].Yb;if(ve(o,P[g+2])){var T=o,Z=0;if(ve(T,(R=P)[(ae=g)+3]))if(ve(T,R[ae+6])){for(P=0,ae=2*(Z=ve(T,R[ae+8]))+(R=ve(T,R[ae+9+Z])),Z=0,R=Z0[ae];R[P];++P)Z+=Z+ve(T,R[P]);Z+=3+(8<<ae)}else ve(T,R[ae+7])?(Z=7+2*ve(T,165),Z+=ve(T,145)):Z=5+ve(T,159);else Z=ve(T,R[ae+4])?3+ve(T,R[ae+5]):2;P=M[2]}else Z=1,P=M[1];M=A+K0[y],0>(T=o).b&&ce(T);var ae,R=T.b,X=(ae=T.Ca>>1)-(T.I>>R)>>31;--T.b,T.Ca+=X,T.Ca|=1,T.I-=(ae+1&X)<<R,x[M]=((Z^X)-X)*m[(0<y)+0]}return 16}function _o(o){var u=o.rb[o.sb-1];u.la=0,u.Na=0,i(o.zc,0,0,o.zc.length),o.ja=0}function Yn(o,u,g,m,y){y=o[u+g+32*m]+(y>>3),o[u+g+32*m]=-256&y?0>y?0:255:y}function La(o,u,g,m,y,x){Yn(o,u,0,g,m+y),Yn(o,u,1,g,m+x),Yn(o,u,2,g,m-x),Yn(o,u,3,g,m-y)}function Jr(o){return(20091*o>>16)+o}function mn(o,u,g,m){var y,x=0,A=a(16);for(y=0;4>y;++y){var P=o[u+0]+o[u+8],M=o[u+0]-o[u+8],T=(35468*o[u+4]>>16)-Jr(o[u+12]),Z=Jr(o[u+4])+(35468*o[u+12]>>16);A[x+0]=P+Z,A[x+1]=M+T,A[x+2]=M-T,A[x+3]=P-Z,x+=4,u++}for(y=x=0;4>y;++y)P=(o=A[x+0]+4)+A[x+8],M=o-A[x+8],T=(35468*A[x+4]>>16)-Jr(A[x+12]),Yn(g,m,0,0,P+(Z=Jr(A[x+4])+(35468*A[x+12]>>16))),Yn(g,m,1,0,M+T),Yn(g,m,2,0,M-T),Yn(g,m,3,0,P-Z),x++,m+=32}function Ps(o,u,g,m){var y=o[u+0]+4,x=35468*o[u+4]>>16,A=Jr(o[u+4]),P=35468*o[u+1]>>16;La(g,m,0,y+A,o=Jr(o[u+1]),P),La(g,m,1,y+x,o,P),La(g,m,2,y-x,o,P),La(g,m,3,y-A,o,P)}function Wl(o,u,g,m,y){mn(o,u,g,m),y&&mn(o,u+16,g,m+4)}function Hl(o,u,g,m){ii(o,u+0,g,m,1),ii(o,u+32,g,m+128,1)}function Yl(o,u,g,m){var y;for(o=o[u+0]+4,y=0;4>y;++y)for(u=0;4>u;++u)Yn(g,m,u,y,o)}function jr(o,u,g,m){o[u+0]&&An(o,u+0,g,m),o[u+16]&&An(o,u+16,g,m+4),o[u+32]&&An(o,u+32,g,m+128),o[u+48]&&An(o,u+48,g,m+128+4)}function Cs(o,u,g,m){var y,x=a(16);for(y=0;4>y;++y){var A=o[u+0+y]+o[u+12+y],P=o[u+4+y]+o[u+8+y],M=o[u+4+y]-o[u+8+y],T=o[u+0+y]-o[u+12+y];x[0+y]=A+P,x[8+y]=A-P,x[4+y]=T+M,x[12+y]=T-M}for(y=0;4>y;++y)A=(o=x[0+4*y]+3)+x[3+4*y],P=x[1+4*y]+x[2+4*y],M=x[1+4*y]-x[2+4*y],T=o-x[3+4*y],g[m+0]=A+P>>3,g[m+16]=T+M>>3,g[m+32]=A-P>>3,g[m+48]=T-M>>3,m+=64}function ka(o,u,g){var m,y=u-32,x=Vn,A=255-o[y-1];for(m=0;m<g;++m){var P,M=x,T=A+o[u-1];for(P=0;P<g;++P)o[u+P]=M[T+o[y+P]];u+=32}}function Pa(o,u){ka(o,u,4)}function xo(o,u){ka(o,u,8)}function Vl(o,u){ka(o,u,16)}function Gl(o,u){var g;for(g=0;16>g;++g)r(o,u+32*g,o,u-32,16)}function $l(o,u){var g;for(g=16;0<g;--g)i(o,u,o[u-1],16),u+=32}function gi(o,u,g){var m;for(m=0;16>m;++m)i(u,g+32*m,o,16)}function Es(o,u){var g,m=16;for(g=0;16>g;++g)m+=o[u-1+32*g]+o[u+g-32];gi(m>>5,o,u)}function mi(o,u){var g,m=8;for(g=0;16>g;++g)m+=o[u-1+32*g];gi(m>>4,o,u)}function Zl(o,u){var g,m=8;for(g=0;16>g;++g)m+=o[u+g-32];gi(m>>4,o,u)}function Vi(o,u){gi(128,o,u)}function Xe(o,u,g){return o+2*u+g+2>>2}function Kl(o,u){var g,m=u-32;for(m=new Uint8Array([Xe(o[m-1],o[m+0],o[m+1]),Xe(o[m+0],o[m+1],o[m+2]),Xe(o[m+1],o[m+2],o[m+3]),Xe(o[m+2],o[m+3],o[m+4])]),g=0;4>g;++g)r(o,u+32*g,m,0,m.length)}function Xl(o,u){var g=o[u-1],m=o[u-1+32],y=o[u-1+64],x=o[u-1+96];Ne(o,u+0,16843009*Xe(o[u-1-32],g,m)),Ne(o,u+32,16843009*Xe(g,m,y)),Ne(o,u+64,16843009*Xe(m,y,x)),Ne(o,u+96,16843009*Xe(y,x,x))}function Jl(o,u){var g,m=4;for(g=0;4>g;++g)m+=o[u+g-32]+o[u-1+32*g];for(m>>=3,g=0;4>g;++g)i(o,u+32*g,m,4)}function Ql(o,u){var g=o[u-1+0],m=o[u-1+32],y=o[u-1+64],x=o[u-1-32],A=o[u+0-32],P=o[u+1-32],M=o[u+2-32],T=o[u+3-32];o[u+0+96]=Xe(m,y,o[u-1+96]),o[u+1+96]=o[u+0+64]=Xe(g,m,y),o[u+2+96]=o[u+1+64]=o[u+0+32]=Xe(x,g,m),o[u+3+96]=o[u+2+64]=o[u+1+32]=o[u+0+0]=Xe(A,x,g),o[u+3+64]=o[u+2+32]=o[u+1+0]=Xe(P,A,x),o[u+3+32]=o[u+2+0]=Xe(M,P,A),o[u+3+0]=Xe(T,M,P)}function ec(o,u){var g=o[u+1-32],m=o[u+2-32],y=o[u+3-32],x=o[u+4-32],A=o[u+5-32],P=o[u+6-32],M=o[u+7-32];o[u+0+0]=Xe(o[u+0-32],g,m),o[u+1+0]=o[u+0+32]=Xe(g,m,y),o[u+2+0]=o[u+1+32]=o[u+0+64]=Xe(m,y,x),o[u+3+0]=o[u+2+32]=o[u+1+64]=o[u+0+96]=Xe(y,x,A),o[u+3+32]=o[u+2+64]=o[u+1+96]=Xe(x,A,P),o[u+3+64]=o[u+2+96]=Xe(A,P,M),o[u+3+96]=Xe(P,M,M)}function Qr(o,u){var g=o[u-1+0],m=o[u-1+32],y=o[u-1+64],x=o[u-1-32],A=o[u+0-32],P=o[u+1-32],M=o[u+2-32],T=o[u+3-32];o[u+0+0]=o[u+1+64]=x+A+1>>1,o[u+1+0]=o[u+2+64]=A+P+1>>1,o[u+2+0]=o[u+3+64]=P+M+1>>1,o[u+3+0]=M+T+1>>1,o[u+0+96]=Xe(y,m,g),o[u+0+64]=Xe(m,g,x),o[u+0+32]=o[u+1+96]=Xe(g,x,A),o[u+1+32]=o[u+2+96]=Xe(x,A,P),o[u+2+32]=o[u+3+96]=Xe(A,P,M),o[u+3+32]=Xe(P,M,T)}function ei(o,u){var g=o[u+0-32],m=o[u+1-32],y=o[u+2-32],x=o[u+3-32],A=o[u+4-32],P=o[u+5-32],M=o[u+6-32],T=o[u+7-32];o[u+0+0]=g+m+1>>1,o[u+1+0]=o[u+0+64]=m+y+1>>1,o[u+2+0]=o[u+1+64]=y+x+1>>1,o[u+3+0]=o[u+2+64]=x+A+1>>1,o[u+0+32]=Xe(g,m,y),o[u+1+32]=o[u+0+96]=Xe(m,y,x),o[u+2+32]=o[u+1+96]=Xe(y,x,A),o[u+3+32]=o[u+2+96]=Xe(x,A,P),o[u+3+64]=Xe(A,P,M),o[u+3+96]=Xe(P,M,T)}function tc(o,u){var g=o[u-1+0],m=o[u-1+32],y=o[u-1+64],x=o[u-1+96];o[u+0+0]=g+m+1>>1,o[u+2+0]=o[u+0+32]=m+y+1>>1,o[u+2+32]=o[u+0+64]=y+x+1>>1,o[u+1+0]=Xe(g,m,y),o[u+3+0]=o[u+1+32]=Xe(m,y,x),o[u+3+32]=o[u+1+64]=Xe(y,x,x),o[u+3+64]=o[u+2+64]=o[u+0+96]=o[u+1+96]=o[u+2+96]=o[u+3+96]=x}function nc(o,u){var g=o[u-1+0],m=o[u-1+32],y=o[u-1+64],x=o[u-1+96],A=o[u-1-32],P=o[u+0-32],M=o[u+1-32],T=o[u+2-32];o[u+0+0]=o[u+2+32]=g+A+1>>1,o[u+0+32]=o[u+2+64]=m+g+1>>1,o[u+0+64]=o[u+2+96]=y+m+1>>1,o[u+0+96]=x+y+1>>1,o[u+3+0]=Xe(P,M,T),o[u+2+0]=Xe(A,P,M),o[u+1+0]=o[u+3+32]=Xe(g,A,P),o[u+1+32]=o[u+3+64]=Xe(m,g,A),o[u+1+64]=o[u+3+96]=Xe(y,m,g),o[u+1+96]=Xe(x,y,m)}function Ca(o,u){var g;for(g=0;8>g;++g)r(o,u+32*g,o,u-32,8)}function No(o,u){var g;for(g=0;8>g;++g)i(o,u,o[u-1],8),u+=32}function Fr(o,u,g){var m;for(m=0;8>m;++m)i(u,g+32*m,o,8)}function rc(o,u){var g,m=8;for(g=0;8>g;++g)m+=o[u+g-32]+o[u-1+32*g];Fr(m>>4,o,u)}function Ea(o,u){var g,m=4;for(g=0;8>g;++g)m+=o[u+g-32];Fr(m>>3,o,u)}function ic(o,u){var g,m=4;for(g=0;8>g;++g)m+=o[u-1+32*g];Fr(m>>3,o,u)}function Ao(o,u){Fr(128,o,u)}function vi(o,u,g){var m=o[u-g],y=o[u+0],x=3*(y-m)+oc[1020+o[u-2*g]-o[u+g]],A=Bs[112+(x+4>>3)];o[u-g]=Vn[255+m+Bs[112+(x+3>>3)]],o[u+0]=Vn[255+y-A]}function So(o,u,g,m){var y=o[u+0],x=o[u+g];return cr[255+o[u-2*g]-o[u-g]]>m||cr[255+x-y]>m}function Gi(o,u,g,m){return 4*cr[255+o[u-g]-o[u+0]]+cr[255+o[u-2*g]-o[u+g]]<=m}function Lo(o,u,g,m,y){var x=o[u-3*g],A=o[u-2*g],P=o[u-g],M=o[u+0],T=o[u+g],Z=o[u+2*g],ae=o[u+3*g];return 4*cr[255+P-M]+cr[255+A-T]>m?0:cr[255+o[u-4*g]-x]<=y&&cr[255+x-A]<=y&&cr[255+A-P]<=y&&cr[255+ae-Z]<=y&&cr[255+Z-T]<=y&&cr[255+T-M]<=y}function Ma(o,u,g,m){var y=2*m+1;for(m=0;16>m;++m)Gi(o,u+m,g,y)&&vi(o,u+m,g)}function ko(o,u,g,m){var y=2*m+1;for(m=0;16>m;++m)Gi(o,u+m*g,1,y)&&vi(o,u+m*g,1)}function Ia(o,u,g,m){var y;for(y=3;0<y;--y)Ma(o,u+=4*g,g,m)}function Ms(o,u,g,m){var y;for(y=3;0<y;--y)ko(o,u+=4,g,m)}function ti(o,u,g,m,y,x,A,P){for(x=2*x+1;0<y--;){if(Lo(o,u,g,x,A))if(So(o,u,g,P))vi(o,u,g);else{var M=o,T=u,Z=g,ae=M[T-2*Z],R=M[T-Z],X=M[T+0],ne=M[T+Z],pe=M[T+2*Z],ie=27*(me=oc[1020+3*(X-R)+oc[1020+ae-ne]])+63>>7,ge=18*me+63>>7,me=9*me+63>>7;M[T-3*Z]=Vn[255+M[T-3*Z]+me],M[T-2*Z]=Vn[255+ae+ge],M[T-Z]=Vn[255+R+ie],M[T+0]=Vn[255+X-ie],M[T+Z]=Vn[255+ne-ge],M[T+2*Z]=Vn[255+pe-me]}u+=m}}function ni(o,u,g,m,y,x,A,P){for(x=2*x+1;0<y--;){if(Lo(o,u,g,x,A))if(So(o,u,g,P))vi(o,u,g);else{var M=o,T=u,Z=g,ae=M[T-Z],R=M[T+0],X=M[T+Z],ne=Bs[112+(4+(pe=3*(R-ae))>>3)],pe=Bs[112+(pe+3>>3)],ie=ne+1>>1;M[T-2*Z]=Vn[255+M[T-2*Z]+ie],M[T-Z]=Vn[255+ae+pe],M[T+0]=Vn[255+R-ne],M[T+Z]=Vn[255+X-ie]}u+=m}}function Is(o,u,g,m,y,x){ti(o,u,g,1,16,m,y,x)}function js(o,u,g,m,y,x){ti(o,u,1,g,16,m,y,x)}function Fs(o,u,g,m,y,x){var A;for(A=3;0<A;--A)ni(o,u+=4*g,g,1,16,m,y,x)}function $i(o,u,g,m,y,x){var A;for(A=3;0<A;--A)ni(o,u+=4,1,g,16,m,y,x)}function Ds(o,u,g,m,y,x,A,P){ti(o,u,y,1,8,x,A,P),ti(g,m,y,1,8,x,A,P)}function h(o,u,g,m,y,x,A,P){ti(o,u,1,y,8,x,A,P),ti(g,m,1,y,8,x,A,P)}function w(o,u,g,m,y,x,A,P){ni(o,u+4*y,y,1,8,x,A,P),ni(g,m+4*y,y,1,8,x,A,P)}function O(o,u,g,m,y,x,A,P){ni(o,u+4,1,y,8,x,A,P),ni(g,m+4,1,y,8,x,A,P)}function Y(){this.ba=new ft,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new At,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Q(){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 de(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function we(){this.ua=0,this.Wa=new lt,this.vb=new lt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new se,this.yc=new W}function je(){this.xb=this.a=0,this.l=new Aa,this.ca=new ft,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new q,this.Pb=0,this.wd=new q,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new we,this.ab=0,this.gc=l(4,de),this.Oc=0}function Ie(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Aa,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Qe(o,u,g,m,y,x,A){for(o=o==null?0:o[u+0],u=0;u<A;++u)y[x+u]=o+g[m+u]&255,o=y[x+u]}function rt(o,u,g,m,y,x,A){var P;if(o==null)Qe(null,null,g,m,y,x,A);else for(P=0;P<A;++P)y[x+P]=o[u+P]+g[m+P]&255}function vt(o,u,g,m,y,x,A){if(o==null)Qe(null,null,g,m,y,x,A);else{var P,M=o[u+0],T=M,Z=M;for(P=0;P<A;++P)T=Z+(M=o[u+P])-T,Z=g[m+P]+(-256&T?0>T?0:255:T)&255,T=M,y[x+P]=Z}}function on(o,u,g,m){var y=u.width,x=u.o;if(n(o!=null&&u!=null),0>g||0>=m||g+m>x)return null;if(!o.Cc){if(o.ga==null){var A;if(o.ga=new Ie,(A=o.ga==null)||(A=u.width*u.o,n(o.Gb.length==0),o.Gb=a(A),o.Uc=0,o.Gb==null?A=0:(o.mb=o.Gb,o.nb=o.Uc,o.rc=null,A=1),A=!A),!A){A=o.ga;var P=o.Fa,M=o.P,T=o.qc,Z=o.mb,ae=o.nb,R=M+1,X=T-1,ne=A.l;if(n(P!=null&&Z!=null&&u!=null),Ai[0]=null,Ai[1]=Qe,Ai[2]=rt,Ai[3]=vt,A.ca=Z,A.tb=ae,A.c=u.width,A.i=u.height,n(0<A.c&&0<A.i),1>=T)u=0;else if(A.$a=3&P[M+0],A.Z=P[M+0]>>2&3,A.Lc=P[M+0]>>4&3,M=P[M+0]>>6&3,0>A.$a||1<A.$a||4<=A.Z||1<A.Lc||M)u=0;else if(ne.put=$e,ne.ac=Pr,ne.bc=Kr,ne.ma=A,ne.width=u.width,ne.height=u.height,ne.Da=u.Da,ne.v=u.v,ne.va=u.va,ne.j=u.j,ne.o=u.o,A.$a)e:{n(A.$a==1),u=Hi();t:for(;;){if(u==null){u=0;break e}if(n(A!=null),A.mc=u,u.c=A.c,u.i=A.i,u.l=A.l,u.l.ma=A,u.l.width=A.c,u.l.height=A.i,u.a=0,he(u.m,P,R,X),!Er(A.c,A.i,1,u,null)||(u.ab==1&&u.gc[0].hc==3&&pr(u.s)?(A.ic=1,P=u.c*u.i,u.Ta=null,u.Ua=0,u.V=a(P),u.Ba=0,u.V==null?(u.a=1,u=0):u=1):(A.ic=0,u=Yi(u,A.c)),!u))break t;u=1;break e}A.mc=null,u=0}else u=X>=A.c*A.i;A=!u}if(A)return null;o.ga.Lc!=1?o.Ga=0:m=x-g}n(o.ga!=null),n(g+m<=x);e:{if(u=(P=o.ga).c,x=P.l.o,P.$a==0){if(R=o.rc,X=o.Vc,ne=o.Fa,M=o.P+1+g*u,T=o.mb,Z=o.nb+g*u,n(M<=o.P+o.qc),P.Z!=0)for(n(Ai[P.Z]!=null),A=0;A<m;++A)Ai[P.Z](R,X,ne,M,T,Z,u),R=T,X=Z,Z+=u,M+=u;else for(A=0;A<m;++A)r(T,Z,ne,M,u),R=T,X=Z,Z+=u,M+=u;o.rc=R,o.Vc=X}else{if(n(P.mc!=null),u=g+m,n((A=P.mc)!=null),n(u<=A.i),A.C>=u)u=1;else if(P.ic||Vt(),P.ic){P=A.V,R=A.Ba,X=A.c;var pe=A.i,ie=(ne=1,M=A.$/X,T=A.$%X,Z=A.m,ae=A.s,A.$),ge=X*pe,me=X*u,xe=ae.wc,ye=ie<me?gn(ae,T,M):null;n(ie<=ge),n(u<=pe),n(pr(ae));t:for(;;){for(;!Z.h&&ie<me;){if(T&xe||(ye=gn(ae,T,M)),n(ye!=null),re(Z),256>(pe=Gt(ye.G[0],ye.H[0],Z)))P[R+ie]=pe,++ie,++T>=X&&(T=0,++M<=u&&!(M%16)&&gr(A,M));else{if(!(280>pe)){ne=0;break t}pe=ir(pe-256,Z);var Te,Ce=Gt(ye.G[4],ye.H[4],Z);if(re(Z),!(ie>=(Ce=ar(X,Ce=ir(Ce,Z)))&&ge-ie>=pe)){ne=0;break t}for(Te=0;Te<pe;++Te)P[R+ie+Te]=P[R+ie+Te-Ce];for(ie+=pe,T+=pe;T>=X;)T-=X,++M<=u&&!(M%16)&&gr(A,M);ie<me&&T&xe&&(ye=gn(ae,T,M))}n(Z.h==$(Z))}gr(A,M>u?u:M);break t}!ne||Z.h&&ie<ge?(ne=0,A.a=Z.h?5:3):A.$=ie,u=ne}else u=mr(A,A.V,A.Ba,A.c,A.i,u,_a);if(!u){m=0;break e}}g+m>=x&&(o.Cc=1),m=1}if(!m)return null;if(o.Cc&&((m=o.ga)!=null&&(m.mc=null),o.ga=null,0<o.Ga))return alert("todo:WebPDequantizeLevels"),null}return o.nb+g*y}function Mt(o,u,g,m,y,x){for(;0<y--;){var A,P=o,M=u+(g?1:0),T=o,Z=u+(g?0:3);for(A=0;A<m;++A){var ae=T[Z+4*A];ae!=255&&(ae*=32897,P[M+4*A+0]=P[M+4*A+0]*ae>>23,P[M+4*A+1]=P[M+4*A+1]*ae>>23,P[M+4*A+2]=P[M+4*A+2]*ae>>23)}u+=x}}function Et(o,u,g,m,y){for(;0<m--;){var x;for(x=0;x<g;++x){var A=o[u+2*x+0],P=15&(T=o[u+2*x+1]),M=4369*P,T=(240&T|T>>4)*M>>16;o[u+2*x+0]=(240&A|A>>4)*M>>16&240|(15&A|A<<4)*M>>16>>4&15,o[u+2*x+1]=240&T|P}u+=y}}function Bt(o,u,g,m,y,x,A,P){var M,T,Z=255;for(T=0;T<y;++T){for(M=0;M<m;++M){var ae=o[u+M];x[A+4*M]=ae,Z&=ae}u+=g,A+=P}return Z!=255}function Yt(o,u,g,m,y){var x;for(x=0;x<y;++x)g[m+x]=o[u+x]>>8}function Vt(){Do=Mt,df=Et,pf=Bt,gf=Yt}function xn(o,u,g){I[o]=function(m,y,x,A,P,M,T,Z,ae,R,X,ne,pe,ie,ge,me,xe){var ye,Te=xe-1>>1,Ce=P[M+0]|T[Z+0]<<16,ot=ae[R+0]|X[ne+0]<<16;n(m!=null);var Fe=3*Ce+ot+131074>>2;for(u(m[y+0],255&Fe,Fe>>16,pe,ie),x!=null&&(Fe=3*ot+Ce+131074>>2,u(x[A+0],255&Fe,Fe>>16,ge,me)),ye=1;ye<=Te;++ye){var gt=P[M+ye]|T[Z+ye]<<16,cn=ae[R+ye]|X[ne+ye]<<16,st=Ce+gt+ot+cn+524296,De=st+2*(gt+ot)>>3;Fe=De+Ce>>1,Ce=(st=st+2*(Ce+cn)>>3)+gt>>1,u(m[y+2*ye-1],255&Fe,Fe>>16,pe,ie+(2*ye-1)*g),u(m[y+2*ye-0],255&Ce,Ce>>16,pe,ie+(2*ye-0)*g),x!=null&&(Fe=st+ot>>1,Ce=De+cn>>1,u(x[A+2*ye-1],255&Fe,Fe>>16,ge,me+(2*ye-1)*g),u(x[A+2*ye+0],255&Ce,Ce>>16,ge,me+(2*ye+0)*g)),Ce=gt,ot=cn}1&xe||(Fe=3*Ce+ot+131074>>2,u(m[y+xe-1],255&Fe,Fe>>16,pe,ie+(xe-1)*g),x!=null&&(Fe=3*ot+Ce+131074>>2,u(x[A+xe-1],255&Fe,Fe>>16,ge,me+(xe-1)*g)))}}function ri(){ur[Us]=n2,ur[qs]=Lf,ur[_f]=r2,ur[zs]=kf,ur[Ws]=Pf,ur[sc]=Cf,ur[xf]=i2,ur[lc]=Lf,ur[cc]=kf,ur[Hs]=Pf,ur[uc]=Cf}function Po(o){return o&~a2?0>o?0:255:o>>Ef}function Zi(o,u){return Po((19077*o>>8)+(26149*u>>8)-14234)}function Ki(o,u,g){return Po((19077*o>>8)-(6419*u>>8)-(13320*g>>8)+8708)}function bi(o,u){return Po((19077*o>>8)+(33050*u>>8)-17685)}function Xi(o,u,g,m,y){m[y+0]=Zi(o,g),m[y+1]=Ki(o,u,g),m[y+2]=bi(o,u)}function ja(o,u,g,m,y){m[y+0]=bi(o,u),m[y+1]=Ki(o,u,g),m[y+2]=Zi(o,g)}function Fa(o,u,g,m,y){var x=Ki(o,u,g);u=x<<3&224|bi(o,u)>>3,m[y+0]=248&Zi(o,g)|x>>5,m[y+1]=u}function Nn(o,u,g,m,y){var x=240&bi(o,u)|15;m[y+0]=240&Zi(o,g)|Ki(o,u,g)>>4,m[y+1]=x}function Ji(o,u,g,m,y){m[y+0]=255,Xi(o,u,g,m,y+1)}function Qi(o,u,g,m,y){ja(o,u,g,m,y),m[y+3]=255}function Co(o,u,g,m,y){Xi(o,u,g,m,y),m[y+3]=255}function Dr(o,u,g){I[o]=function(m,y,x,A,P,M,T,Z,ae){for(var R=Z+(-2&ae)*g;Z!=R;)u(m[y+0],x[A+0],P[M+0],T,Z),u(m[y+1],x[A+0],P[M+0],T,Z+g),y+=2,++A,++M,Z+=2*g;1&ae&&u(m[y+0],x[A+0],P[M+0],T,Z)}}function En(o,u,g){return g==0?o==0?u==0?6:5:u==0?4:0:g}function Os(o,u,g,m,y){switch(o>>>30){case 3:ii(u,g,m,y,0);break;case 2:xi(u,g,m,y);break;case 1:An(u,g,m,y)}}function Da(o,u){var g,m,y=u.M,x=u.Nb,A=o.oc,P=o.pc+40,M=o.oc,T=o.pc+584,Z=o.oc,ae=o.pc+600;for(g=0;16>g;++g)A[P+32*g-1]=129;for(g=0;8>g;++g)M[T+32*g-1]=129,Z[ae+32*g-1]=129;for(0<y?A[P-1-32]=M[T-1-32]=Z[ae-1-32]=129:(i(A,P-32-1,127,21),i(M,T-32-1,127,9),i(Z,ae-32-1,127,9)),m=0;m<o.za;++m){var R=u.ya[u.aa+m];if(0<m){for(g=-1;16>g;++g)r(A,P+32*g-4,A,P+32*g+12,4);for(g=-1;8>g;++g)r(M,T+32*g-4,M,T+32*g+4,4),r(Z,ae+32*g-4,Z,ae+32*g+4,4)}var X=o.Gd,ne=o.Hd+m,pe=R.ad,ie=R.Hc;if(0<y&&(r(A,P-32,X[ne].y,0,16),r(M,T-32,X[ne].f,0,8),r(Z,ae-32,X[ne].ea,0,8)),R.Za){var ge=A,me=P-32+16;for(0<y&&(m>=o.za-1?i(ge,me,X[ne].y[15],4):r(ge,me,X[ne+1].y,0,4)),g=0;4>g;g++)ge[me+128+g]=ge[me+256+g]=ge[me+384+g]=ge[me+0+g];for(g=0;16>g;++g,ie<<=2)ge=A,me=P+If[g],br[R.Ob[g]](ge,me),Os(ie,pe,16*+g,ge,me)}else if(ge=En(m,y,R.Ob[0]),Ni[ge](A,P),ie!=0)for(g=0;16>g;++g,ie<<=2)Os(ie,pe,16*+g,A,P+If[g]);for(g=R.Gc,ge=En(m,y,R.Dd),oi[ge](M,T),oi[ge](Z,ae),ie=pe,ge=M,me=T,255&(R=0|g)&&(170&R?Ua(ie,256,ge,me):Tr(ie,256,ge,me)),R=Z,ie=ae,255&(g>>=8)&&(170&g?Ua(pe,320,R,ie):Tr(pe,320,R,ie)),y<o.Ub-1&&(r(X[ne].y,0,A,P+480,16),r(X[ne].f,0,M,T+224,8),r(X[ne].ea,0,Z,ae+224,8)),g=8*x*o.B,X=o.sa,ne=o.ta+16*m+16*x*o.R,pe=o.qa,R=o.ra+8*m+g,ie=o.Ha,ge=o.Ia+8*m+g,g=0;16>g;++g)r(X,ne+g*o.R,A,P+32*g,16);for(g=0;8>g;++g)r(pe,R+g*o.B,M,T+32*g,8),r(ie,ge+g*o.B,Z,ae+32*g,8)}}function Ts(o,u,g,m,y,x,A,P,M){var T=[0],Z=[0],ae=0,R=M!=null?M.kd:0,X=M??new Q;if(o==null||12>g)return 7;X.data=o,X.w=u,X.ha=g,u=[u],g=[g],X.gb=[X.gb];e:{var ne=u,pe=g,ie=X.gb;if(n(o!=null),n(pe!=null),n(ie!=null),ie[0]=0,12<=pe[0]&&!t(o,ne[0],"RIFF")){if(t(o,ne[0]+8,"WEBP")){ie=3;break e}var ge=qe(o,ne[0]+4);if(12>ge||4294967286<ge){ie=3;break e}if(R&&ge>pe[0]-8){ie=7;break e}ie[0]=ge,ne[0]+=12,pe[0]-=12}ie=0}if(ie!=0)return ie;for(ge=0<X.gb[0],g=g[0];;){e:{var me=o;pe=u,ie=g;var xe=T,ye=Z,Te=ne=[0];if((Fe=ae=[ae])[0]=0,8>ie[0])ie=7;else{if(!t(me,pe[0],"VP8X")){if(qe(me,pe[0]+4)!=10){ie=3;break e}if(18>ie[0]){ie=7;break e}var Ce=qe(me,pe[0]+8),ot=1+ke(me,pe[0]+12);if(2147483648<=ot*(me=1+ke(me,pe[0]+15))){ie=3;break e}Te!=null&&(Te[0]=Ce),xe!=null&&(xe[0]=ot),ye!=null&&(ye[0]=me),pe[0]+=18,ie[0]-=18,Fe[0]=1}ie=0}}if(ae=ae[0],ne=ne[0],ie!=0)return ie;if(pe=!!(2&ne),!ge&&ae)return 3;if(x!=null&&(x[0]=!!(16&ne)),A!=null&&(A[0]=pe),P!=null&&(P[0]=0),A=T[0],ne=Z[0],ae&&pe&&M==null){ie=0;break}if(4>g){ie=7;break}if(ge&&ae||!ge&&!ae&&!t(o,u[0],"ALPH")){g=[g],X.na=[X.na],X.P=[X.P],X.Sa=[X.Sa];e:{Ce=o,ie=u,ge=g;var Fe=X.gb;xe=X.na,ye=X.P,Te=X.Sa,ot=22,n(Ce!=null),n(ge!=null),me=ie[0];var gt=ge[0];for(n(xe!=null),n(Te!=null),xe[0]=null,ye[0]=null,Te[0]=0;;){if(ie[0]=me,ge[0]=gt,8>gt){ie=7;break e}var cn=qe(Ce,me+4);if(4294967286<cn){ie=3;break e}var st=8+cn+1&-2;if(ot+=st,0<Fe&&ot>Fe){ie=3;break e}if(!t(Ce,me,"VP8 ")||!t(Ce,me,"VP8L")){ie=0;break e}if(gt[0]<st){ie=7;break e}t(Ce,me,"ALPH")||(xe[0]=Ce,ye[0]=me+8,Te[0]=cn),me+=st,gt-=st}}if(g=g[0],X.na=X.na[0],X.P=X.P[0],X.Sa=X.Sa[0],ie!=0)break}g=[g],X.Ja=[X.Ja],X.xa=[X.xa];e:if(Fe=o,ie=u,ge=g,xe=X.gb[0],ye=X.Ja,Te=X.xa,Ce=ie[0],me=!t(Fe,Ce,"VP8 "),ot=!t(Fe,Ce,"VP8L"),n(Fe!=null),n(ge!=null),n(ye!=null),n(Te!=null),8>ge[0])ie=7;else{if(me||ot){if(Fe=qe(Fe,Ce+4),12<=xe&&Fe>xe-12){ie=3;break e}if(R&&Fe>ge[0]-8){ie=7;break e}ye[0]=Fe,ie[0]+=8,ge[0]-=8,Te[0]=ot}else Te[0]=5<=ge[0]&&Fe[Ce+0]==47&&!(Fe[Ce+4]>>5),ye[0]=ge[0];ie=0}if(g=g[0],X.Ja=X.Ja[0],X.xa=X.xa[0],u=u[0],ie!=0)break;if(4294967286<X.Ja)return 3;if(P==null||pe||(P[0]=X.xa?2:1),A=[A],ne=[ne],X.xa){if(5>g){ie=7;break}P=A,R=ne,pe=x,o==null||5>g?o=0:5<=g&&o[u+0]==47&&!(o[u+4]>>5)?(ge=[0],Fe=[0],xe=[0],he(ye=new q,o,u,g),Xr(ye,ge,Fe,xe)?(P!=null&&(P[0]=ge[0]),R!=null&&(R[0]=Fe[0]),pe!=null&&(pe[0]=xe[0]),o=1):o=0):o=0}else{if(10>g){ie=7;break}P=ne,o==null||10>g||!ks(o,u+3,g-3)?o=0:(R=o[u+0]|o[u+1]<<8|o[u+2]<<16,pe=16383&(o[u+7]<<8|o[u+6]),o=16383&(o[u+9]<<8|o[u+8]),1&R||3<(R>>1&7)||!(R>>4&1)||R>>5>=X.Ja||!pe||!o?o=0:(A&&(A[0]=pe),P&&(P[0]=o),o=1))}if(!o||(A=A[0],ne=ne[0],ae&&(T[0]!=A||Z[0]!=ne)))return 3;M!=null&&(M[0]=X,M.offset=u-M.w,n(4294967286>u-M.w),n(M.offset==M.ha-g));break}return ie==0||ie==7&&ae&&M==null?(x!=null&&(x[0]|=X.na!=null&&0<X.na.length),m!=null&&(m[0]=A),y!=null&&(y[0]=ne),0):ie}function lr(o,u,g){var m=u.width,y=u.height,x=0,A=0,P=m,M=y;if(u.Da=o!=null&&0<o.Da,u.Da&&(P=o.cd,M=o.bd,x=o.v,A=o.j,11>g||(x&=-2,A&=-2),0>x||0>A||0>=P||0>=M||x+P>m||A+M>y))return 0;if(u.v=x,u.j=A,u.va=x+P,u.o=A+M,u.U=P,u.T=M,u.da=o!=null&&0<o.da,u.da){if(!Ye(P,M,g=[o.ib],x=[o.hb]))return 0;u.ib=g[0],u.hb=x[0]}return u.ob=o!=null&&o.ob,u.Kb=o==null||!o.Sd,u.da&&(u.ob=u.ib<3*m/4&&u.hb<3*y/4,u.Kb=0),1}function ea(o){if(o==null)return 2;if(11>o.S){var u=o.f.RGBA;u.fb+=(o.height-1)*u.A,u.A=-u.A}else u=o.f.kb,o=o.height,u.O+=(o-1)*u.fa,u.fa=-u.fa,u.N+=(o-1>>1)*u.Ab,u.Ab=-u.Ab,u.W+=(o-1>>1)*u.Db,u.Db=-u.Db,u.F!=null&&(u.J+=(o-1)*u.lb,u.lb=-u.lb);return 0}function Eo(o,u,g,m){if(m==null||0>=o||0>=u)return 2;if(g!=null){if(g.Da){var y=g.cd,x=g.bd,A=-2&g.v,P=-2&g.j;if(0>A||0>P||0>=y||0>=x||A+y>o||P+x>u)return 2;o=y,u=x}if(g.da){if(!Ye(o,u,y=[g.ib],x=[g.hb]))return 2;o=y[0],u=x[0]}}m.width=o,m.height=u;e:{var M=m.width,T=m.height;if(o=m.S,0>=M||0>=T||!(o>=Us&&13>o))o=2;else{if(0>=m.Rd&&m.sd==null){A=x=y=u=0;var Z=(P=M*jf[o])*T;if(11>o||(x=(T+1)/2*(u=(M+1)/2),o==12&&(A=(y=M)*T)),(T=a(Z+2*x+A))==null){o=1;break e}m.sd=T,11>o?((M=m.f.RGBA).eb=T,M.fb=0,M.A=P,M.size=Z):((M=m.f.kb).y=T,M.O=0,M.fa=P,M.Fd=Z,M.f=T,M.N=0+Z,M.Ab=u,M.Cd=x,M.ea=T,M.W=0+Z+x,M.Db=u,M.Ed=x,o==12&&(M.F=T,M.J=0+Z+2*x),M.Tc=A,M.lb=y)}if(u=1,y=m.S,x=m.width,A=m.height,y>=Us&&13>y)if(11>y)o=m.f.RGBA,u&=(P=Math.abs(o.A))*(A-1)+x<=o.size,u&=P>=x*jf[y],u&=o.eb!=null;else{o=m.f.kb,P=(x+1)/2,Z=(A+1)/2,M=Math.abs(o.fa),T=Math.abs(o.Ab);var ae=Math.abs(o.Db),R=Math.abs(o.lb),X=R*(A-1)+x;u&=M*(A-1)+x<=o.Fd,u&=T*(Z-1)+P<=o.Cd,u=(u&=ae*(Z-1)+P<=o.Ed)&M>=x&T>=P&ae>=P,u&=o.y!=null,u&=o.f!=null,u&=o.ea!=null,y==12&&(u&=R>=x,u&=X<=o.Tc,u&=o.F!=null)}else u=0;o=u?0:2}}return o!=0||g!=null&&g.fd&&(o=ea(m)),o}var Oa=64,ta=[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],Mo=24,Mn=32,Rn=8,Ta=[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: 7,287 bytes, line 139
1396,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];Ee("Predictor0","PredictorAdd0"),I.Predictor0=function(){return 4278190080},I.Predictor1=function(o){return o},I.Predictor2=function(o,u,g){return u[g+0]},I.Predictor3=function(o,u,g){return u[g+1]},I.Predictor4=function(o,u,g){return u[g-1]},I.Predictor5=function(o,u,g){return ze(ze(o,u[g+1]),u[g+0])},I.Predictor6=function(o,u,g){return ze(o,u[g-1])},I.Predictor7=function(o,u,g){return ze(o,u[g+0])},I.Predictor8=function(o,u,g){return ze(u[g-1],u[g+0])},I.Predictor9=function(o,u,g){return ze(u[g+0],u[g+1])},I.Predictor10=function(o,u,g){return ze(ze(o,u[g-1]),ze(u[g+0],u[g+1]))},I.Predictor11=function(o,u,g){var m=u[g+0];return 0>=tt(m>>24&255,o>>24&255,(u=u[g-1])>>24&255)+tt(m>>16&255,o>>16&255,u>>16&255)+tt(m>>8&255,o>>8&255,u>>8&255)+tt(255&m,255&o,255&u)?m:o},I.Predictor12=function(o,u,g){var m=u[g+0];return(Nt((o>>24&255)+(m>>24&255)-((u=u[g-1])>>24&255))<<24|Nt((o>>16&255)+(m>>16&255)-(u>>16&255))<<16|Nt((o>>8&255)+(m>>8&255)-(u>>8&255))<<8|Nt((255&o)+(255&m)-(255&u)))>>>0},I.Predictor13=function(o,u,g){var m=u[g-1];return(ht((o=ze(o,u[g+0]))>>24&255,m>>24&255)<<24|ht(o>>16&255,m>>16&255)<<16|ht(o>>8&255,m>>8&255)<<8|ht(255&o,255&m))>>>0};var wi=I.PredictorAdd0;I.PredictorAdd1=pt,Ee("Predictor2","PredictorAdd2"),Ee("Predictor3","PredictorAdd3"),Ee("Predictor4","PredictorAdd4"),Ee("Predictor5","PredictorAdd5"),Ee("Predictor6","PredictorAdd6"),Ee("Predictor7","PredictorAdd7"),Ee("Predictor8","PredictorAdd8"),Ee("Predictor9","PredictorAdd9"),Ee("Predictor10","PredictorAdd10"),Ee("Predictor11","PredictorAdd11"),Ee("Predictor12","PredictorAdd12"),Ee("Predictor13","PredictorAdd13");var yi=I.PredictorAdd2;Re("ColorIndexInverseTransform","MapARGB","32b",function(o){return o>>8&255},function(o){return o}),Re("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(o){return o},function(o){return o>>8&255});var Ra,na=I.ColorIndexInverseTransform,sn=I.MapARGB,ac=I.VP8LColorIndexInverseTransformAlpha,Or=I.MapAlpha,vr=I.VP8LPredictorsAdd=[];vr.length=16,(I.VP8LPredictors=[]).length=16,(I.VP8LPredictorsAdd_C=[]).length=16,(I.VP8LPredictors_C=[]).length=16;var ra,Io,jo,Ba,ia,aa,_i,ii,xi,Ua,An,Tr,Dt,Ot,Jt,ln,ai,Fo,qa,Rs,cf,uf,ff,hf,Do,df,pf,gf,mf=a(511),vf=a(2041),bf=a(225),wf=a(767),yf=0,oc=vf,Bs=bf,Vn=wf,cr=mf,Us=0,qs=1,_f=2,zs=3,Ws=4,sc=5,xf=6,lc=7,cc=8,Hs=9,uc=10,z0=[2,3,7],W0=[3,3,11],Nf=[280,256,256,256,40],H0=[0,1,1,1,0],Y0=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],V0=[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],G0=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],$0=8,fc=[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],hc=[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],Oo=null,Z0=[[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]],K0=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Af=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],X0=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,25
1395,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]]]],J0=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,
1391,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]]],Q0=[[[[255,255,255,255,255,255,255,255,255,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: 23,710 bytes, lines 139-163
1395,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]]]],e2=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ni=[],br=[],oi=[],t2=1,Sf=2,Ai=[],ur=[];xn("UpsampleRgbLinePair",Xi,3),xn("UpsampleBgrLinePair",ja,3),xn("UpsampleRgbaLinePair",Co,4),xn("UpsampleBgraLinePair",Qi,4),xn("UpsampleArgbLinePair",Ji,4),xn("UpsampleRgba4444LinePair",Nn,2),xn("UpsampleRgb565LinePair",Fa,2);var n2=I.UpsampleRgbLinePair,r2=I.UpsampleBgrLinePair,Lf=I.UpsampleRgbaLinePair,kf=I.UpsampleBgraLinePair,Pf=I.UpsampleArgbLinePair,Cf=I.UpsampleRgba4444LinePair,i2=I.UpsampleRgb565LinePair,Ys=16,Vs=1<<Ys-1,To=-227,dc=482,Ef=6,a2=(256<<Ef)-1,Mf=0,o2=a(256),s2=a(256),l2=a(256),c2=a(256),u2=a(dc-To),f2=a(dc-To);Dr("YuvToRgbRow",Xi,3),Dr("YuvToBgrRow",ja,3),Dr("YuvToRgbaRow",Co,4),Dr("YuvToBgraRow",Qi,4),Dr("YuvToArgbRow",Ji,4),Dr("YuvToRgba4444Row",Nn,2),Dr("YuvToRgb565Row",Fa,2);var If=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Gs=[0,2,8],h2=[8,7,6,4,4,2,2,2,1,1,1,1],d2=1;this.WebPDecodeRGBA=function(o,u,g,m,y){var x=qs,A=new Y,P=new ft;A.ba=P,P.S=x,P.width=[P.width],P.height=[P.height];var M=P.width,T=P.height,Z=new Ge;if(Z==null||o==null)var ae=2;else n(Z!=null),ae=Ts(o,u,g,Z.width,Z.height,Z.Pd,Z.Qd,Z.format,null);if(ae!=0?M=0:(M!=null&&(M[0]=Z.width[0]),T!=null&&(T[0]=Z.height[0]),M=1),M){P.width=P.width[0],P.height=P.height[0],m!=null&&(m[0]=P.width),y!=null&&(y[0]=P.height);e:{if(m=new Aa,(y=new Q).data=o,y.w=u,y.ha=g,y.kd=1,u=[0],n(y!=null),((o=Ts(y.data,y.w,y.ha,null,null,null,u,null,y))==0||o==7)&&u[0]&&(o=4),(u=o)==0){if(n(A!=null),m.data=y.data,m.w=y.w+y.offset,m.ha=y.ha-y.offset,m.put=$e,m.ac=Pr,m.bc=Kr,m.ma=A,y.xa){if((o=Hi())==null){A=1;break e}if(function(R,X){var ne=[0],pe=[0],ie=[0];t:for(;;){if(R==null)return 0;if(X==null)return R.a=2,0;if(R.l=X,R.a=0,he(R.m,X.data,X.w,X.ha),!Xr(R.m,ne,pe,ie)){R.a=3;break t}if(R.xb=Sf,X.width=ne[0],X.height=pe[0],!Er(ne[0],pe[0],1,R,null))break t;return 1}return n(R.a!=0),0}(o,m)){if(m=(u=Eo(m.width,m.height,A.Oa,A.ba))==0){t:{m=o;n:for(;;){if(m==null){m=0;break t}if(n(m.s.yc!=null),n(m.s.Ya!=null),n(0<m.s.Wb),n((g=m.l)!=null),n((y=g.ma)!=null),m.xb!=0){if(m.ca=y.ba,m.tb=y.tb,n(m.ca!=null),!lr(y.Oa,g,zs)){m.a=2;break n}if(!Yi(m,g.width)||g.da)break n;if((g.da||Ze(m.ca.S))&&Vt(),11>m.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),m.ca.f.kb.F!=null&&Vt()),m.Pb&&0<m.s.ua&&m.s.vb.X==null&&!D(m.s.vb,m.s.Wa.Xa)){m.a=1;break n}m.xb=0}if(!mr(m,m.V,m.Ba,m.c,m.i,g.o,pi))break n;y.Dc=m.Ma,m=1;break t}n(m.a!=0),m=0}m=!m}m&&(u=o.a)}else u=o.a}else{if((o=new zl)==null){A=1;break e}if(o.Fa=y.na,o.P=y.P,o.qc=y.Sa,Ir(o,m)){if((u=Eo(m.width,m.height,A.Oa,A.ba))==0){if(o.Aa=0,g=A.Oa,n((y=o)!=null),g!=null){if(0<(M=0>(M=g.Md)?0:100<M?255:255*M/100)){for(T=Z=0;4>T;++T)12>(ae=y.pb[T]).lc&&(ae.ia=M*h2[0>ae.lc?0:ae.lc]>>3),Z|=ae.ia;Z&&(alert("todo:VP8InitRandom"),y.ia=1)}y.Ga=g.Id,100<y.Ga?y.Ga=100:0>y.Ga&&(y.Ga=0)}(function(R,X){if(R==null)return 0;if(X==null)return an(R,2,"NULL VP8Io parameter in VP8Decode().");if(!R.cb&&!Ir(R,X))return 0;if(n(R.cb),X.ac==null||X.ac(X)){X.ob&&(R.L=0);var ne=Gs[R.L];if(R.L==2?(R.yb=0,R.zb=0):(R.yb=X.v-ne>>4,R.zb=X.j-ne>>4,0>R.yb&&(R.yb=0),0>R.zb&&(R.zb=0)),R.Va=X.o+15+ne>>4,R.Hb=X.va+15+ne>>4,R.Hb>R.za&&(R.Hb=R.za),R.Va>R.Ub&&(R.Va=R.Ub),0<R.L){var pe=R.ed;for(ne=0;4>ne;++ne){var ie;if(R.Qa.Cb){var ge=R.Qa.Lb[ne];R.Qa.Fb||(ge+=pe.Tb)}else ge=pe.Tb;for(ie=0;1>=ie;++ie){var me=R.gd[ne][ie],xe=ge;if(pe.Pc&&(xe+=pe.vd[0],ie&&(xe+=pe.od[0])),0<(xe=0>xe?0:63<xe?63:xe)){var ye=xe;0<pe.wb&&(ye=4<pe.wb?ye>>2:ye>>1)>9-pe.wb&&(ye=9-pe.wb),1>ye&&(ye=1),me.dd=ye,me.tc=2*xe+ye,me.ld=40<=xe?2:15<=xe?1:0}else me.tc=0;me.La=ie}}}ne=0}else an(R,6,"Frame setup failed"),ne=R.a;if(ne=ne==0){if(ne){R.$c=0,0<R.Aa||(R.Ic=d2);t:{ne=R.Ic,pe=4*(ye=R.za);var Te=32*ye,Ce=ye+1,ot=0<R.L?ye*(0<R.Aa?2:1):0,Fe=(R.Aa==2?2:1)*ye;if((me=pe+832+(ie=3*(16*ne+Gs[R.L])/2*Te)+(ge=R.Fa!=null&&0<R.Fa.length?R.Kc.c*R.Kc.i:0))!=me)ne=0;else{if(me>R.Vb){if(R.Vb=0,R.Ec=a(me),R.Fc=0,R.Ec==null){ne=an(R,1,"no memory during frame initialization.");break t}R.Vb=me}me=R.Ec,xe=R.Fc,R.Ac=me,R.Bc=xe,xe+=pe,R.Gd=l(Te,Ss),R.Hd=0,R.rb=l(Ce+1,wo),R.sb=1,R.wa=ot?l(ot,sr):null,R.Y=0,R.D.Nb=0,R.D.wa=R.wa,R.D.Y=R.Y,0<R.Aa&&(R.D.Y+=ye),n(!0),R.oc=me,R.pc=xe,xe+=832,R.ya=l(Fe,yo),R.aa=0,R.D.ya=R.ya,R.D.aa=R.aa,R.Aa==2&&(R.D.aa+=ye),R.R=16*ye,R.B=8*ye,ye=(Te=Gs[R.L])*R.R,Te=Te/2*R.B,R.sa=me,R.ta=xe+ye,R.qa=R.sa,R.ra=R.ta+16*ne*R.R+Te,R.Ha=R.qa,R.Ia=R.ra+8*ne*R.B+Te,R.$c=0,xe+=ie,R.mb=ge?me:null,R.nb=ge?xe:null,n(xe+ge<=R.Fc+R.Vb),_o(R),i(R.Ac,R.Bc,0,pe),ne=1}}if(ne){if(X.ka=0,X.y=R.sa,X.O=R.ta,X.f=R.qa,X.N=R.ra,X.ea=R.Ha,X.Vd=R.Ia,X.fa=R.R,X.Rc=R.B,X.F=null,X.J=0,!yf){for(ne=-255;255>=ne;++ne)mf[255+ne]=0>ne?-ne:ne;for(ne=-1020;1020>=ne;++ne)vf[1020+ne]=-128>ne?-128:127<ne?127:ne;for(ne=-112;112>=ne;++ne)bf[112+ne]=-16>ne?-16:15<ne?15:ne;for(ne=-255;510>=ne;++ne)wf[255+ne]=0>ne?0:255<ne?255:ne;yf=1}_i=Cs,ii=Wl,Ua=Hl,An=Yl,Tr=jr,xi=Ps,Dt=Is,Ot=js,Jt=Ds,ln=h,ai=Fs,Fo=$i,qa=w,Rs=O,cf=Ma,uf=ko,ff=Ia,hf=Ms,br[0]=Jl,br[1]=Pa,br[2]=Kl,br[3]=Xl,br[4]=Ql,br[5]=Qr,br[6]=ec,br[7]=ei,br[8]=nc,br[9]=tc,Ni[0]=Es,Ni[1]=Vl,Ni[2]=Gl,Ni[3]=$l,Ni[4]=mi,Ni[5]=Zl,Ni[6]=Vi,oi[0]=rc,oi[1]=xo,oi[2]=Ca,oi[3]=No,oi[4]=ic,oi[5]=Ea,oi[6]=Ao,ne=1}else ne=0}ne&&(ne=function(gt,cn){for(gt.M=0;gt.M<gt.Va;++gt.M){var st,De=gt.Jc[gt.M&gt.Xb],Se=gt.m,Qt=gt;for(st=0;st<Qt.za;++st){var it=Se,bt=Qt,Ut=bt.Ac,vn=bt.Bc+4*st,In=bt.zc,$t=bt.ya[bt.aa+st];if(bt.Qa.Bb?$t.$b=ve(it,bt.Pa.jb[0])?2+ve(it,bt.Pa.jb[2]):ve(it,bt.Pa.jb[1]):$t.$b=0,bt.kc&&($t.Ad=ve(it,bt.Bd)),$t.Za=!ve(it,145)+0,$t.Za){var Sn=$t.Ob,jn=0;for(bt=0;4>bt;++bt){var un,yt=In[0+bt];for(un=0;4>un;++un){yt=J0[Ut[vn+un]][yt];for(var St=Af[ve(it,yt[0])];0<St;)St=Af[2*St+ve(it,yt[St])];yt=-St,Ut[vn+un]=yt}r(Sn,jn,Ut,vn,4),jn+=4,In[0+bt]=yt}}else yt=ve(it,156)?ve(it,128)?1:3:ve(it,163)?2:0,$t.Ob[0]=yt,i(Ut,vn,yt,4),i(In,0,yt,4);$t.Dd=ve(it,142)?ve(it,114)?ve(it,183)?1:3:2:0}if(Qt.m.Ka)return an(gt,7,"Premature end-of-partition0 encountered.");for(;gt.ja<gt.za;++gt.ja){if(Qt=De,it=(Se=gt).rb[Se.sb-1],Ut=Se.rb[Se.sb+Se.ja],st=Se.ya[Se.aa+Se.ja],vn=Se.kc?st.Ad:0)it.la=Ut.la=0,st.Za||(it.Na=Ut.Na=0),st.Hc=0,st.Gc=0,st.ia=0;else{var Zt,Lt;if(it=Ut,Ut=Qt,vn=Se.Pa.Xc,In=Se.ya[Se.aa+Se.ja],$t=Se.pb[In.$b],bt=In.ad,Sn=0,jn=Se.rb[Se.sb-1],yt=un=0,i(bt,Sn,0,384),In.Za)var bn=0,wr=vn[3];else{St=a(16);var en=it.Na+jn.Na;if(en=Oo(Ut,vn[1],en,$t.Eb,0,St,0),it.Na=jn.Na=(0<en)+0,1<en)_i(St,0,bt,Sn);else{var Bn=St[0]+3>>3;for(St=0;256>St;St+=16)bt[Sn+St]=Bn}bn=1,wr=vn[0]}var It=15&it.la,fn=15&jn.la;for(St=0;4>St;++St){var Gn=1&fn;for(Bn=Lt=0;4>Bn;++Bn)It=It>>1|(Gn=(en=Oo(Ut,wr,en=Gn+(1&It),$t.Sc,bn,bt,Sn))>bn)<<7,Lt=Lt<<2|(3<en?3:1<en?2:bt[Sn+0]!=0),Sn+=16;It>>=4,fn=fn>>1|Gn<<7,un=(un<<8|Lt)>>>0}for(wr=It,bn=fn>>4,Zt=0;4>Zt;Zt+=2){for(Lt=0,It=it.la>>4+Zt,fn=jn.la>>4+Zt,St=0;2>St;++St){for(Gn=1&fn,Bn=0;2>Bn;++Bn)en=Gn+(1&It),It=It>>1|(Gn=0<(en=Oo(Ut,vn[2],en,$t.Qc,0,bt,Sn)))<<3,Lt=Lt<<2|(3<en?3:1<en?2:bt[Sn+0]!=0),Sn+=16;It>>=2,fn=fn>>1|Gn<<5}yt|=Lt<<4*Zt,wr|=It<<4<<Zt,bn|=(240&fn)<<Zt}it.la=wr,jn.la=bn,In.Hc=un,In.Gc=yt,In.ia=43690&yt?0:$t.ia,vn=!(un|yt)}if(0<Se.L&&(Se.wa[Se.Y+Se.ja]=Se.gd[st.$b][st.Za],Se.wa[Se.Y+Se.ja].La|=!vn),Qt.Ka)return an(gt,7,"Premature end-of-file encountered.")}if(_o(gt),Se=cn,Qt=1,st=(De=gt).D,it=0<De.L&&De.M>=De.zb&&De.M<=De.Va,De.Aa==0)t:{if(st.M=De.M,st.uc=it,Da(De,st),Qt=1,st=(Lt=De.D).Nb,it=(yt=Gs[De.L])*De.R,Ut=yt/2*De.B,St=16*st*De.R,Bn=8*st*De.B,vn=De.sa,In=De.ta-it+St,$t=De.qa,bt=De.ra-Ut+Bn,Sn=De.Ha,jn=De.Ia-Ut+Bn,fn=(It=Lt.M)==0,un=It>=De.Va-1,De.Aa==2&&Da(De,Lt),Lt.uc)for(Gn=(en=De).D.M,n(en.D.uc),Lt=en.yb;Lt<en.Hb;++Lt){bn=Lt,wr=Gn;var Fn=($n=(wn=en).D).Nb;Zt=wn.R;var $n=$n.wa[$n.Y+bn],Zn=wn.sa,Un=wn.ta+16*Fn*Zt+16*bn,Kn=$n.dd,Tt=$n.tc;if(Tt!=0)if(n(3<=Tt),wn.L==1)0<bn&&uf(Zn,Un,Zt,Tt+4),$n.La&&hf(Zn,Un,Zt,Tt),0<wr&&cf(Zn,Un,Zt,Tt+4),$n.La&&ff(Zn,Un,Zt,Tt);else{var Xn=wn.B,yr=wn.qa,oa=wn.ra+8*Fn*Xn+8*bn,si=wn.Ha,wn=wn.Ia+8*Fn*Xn+8*bn;Fn=$n.ld,0<bn&&(Ot(Zn,Un,Zt,Tt+4,Kn,Fn),ln(yr,oa,si,wn,Xn,Tt+4,Kn,Fn)),$n.La&&(Fo(Zn,Un,Zt,Tt,Kn,Fn),Rs(yr,oa,si,wn,Xn,Tt,Kn,Fn)),0<wr&&(Dt(Zn,Un,Zt,Tt+4,Kn,Fn),Jt(yr,oa,si,wn,Xn,Tt+4,Kn,Fn)),$n.La&&(ai(Zn,Un,Zt,Tt,Kn,Fn),qa(yr,oa,si,wn,Xn,Tt,Kn,Fn))}}if(De.ia&&alert("todo:DitherRow"),Se.put!=null){if(Lt=16*It,It=16*(It+1),fn?(Se.y=De.sa,Se.O=De.ta+St,Se.f=De.qa,Se.N=De.ra+Bn,Se.ea=De.Ha,Se.W=De.Ia+Bn):(Lt-=yt,Se.y=vn,Se.O=In,Se.f=$t,Se.N=bt,Se.ea=Sn,Se.W=jn),un||(It-=yt),It>Se.o&&(It=Se.o),Se.F=null,Se.J=null,De.Fa!=null&&0<De.Fa.length&&Lt<It&&(Se.J=on(De,Se,Lt,It-Lt),Se.F=De.mb,Se.F==null&&Se.F.length==0)){Qt=an(De,3,"Could not decode alpha data.");break t}Lt<Se.j&&(yt=Se.j-Lt,Lt=Se.j,n(!(1&yt)),Se.O+=De.R*yt,Se.N+=De.B*(yt>>1),Se.W+=De.B*(yt>>1),Se.F!=null&&(Se.J+=Se.width*yt)),Lt<It&&(Se.O+=Se.v,Se.N+=Se.v>>1,Se.W+=Se.v>>1,Se.F!=null&&(Se.J+=Se.v),Se.ka=Lt-Se.j,Se.U=Se.va-Se.v,Se.T=It-Lt,Qt=Se.put(Se))}st+1!=De.Ic||un||(r(De.sa,De.ta-it,vn,In+16*De.R,it),r(De.qa,De.ra-Ut,$t,bt+8*De.B,Ut),r(De.Ha,De.Ia-Ut,Sn,jn+8*De.B,Ut))}if(!Qt)return an(gt,6,"Output aborted.")}return 1}(R,X)),X.bc!=null&&X.bc(X),ne&=1}return ne?(R.cb=0,ne):0})(o,m)||(u=o.a)}}else u=o.a}u==0&&A.Oa!=null&&A.Oa.fd&&(u=ea(A.ba))}A=u}x=A!=0?null:11>x?P.f.RGBA.eb:P.f.kb.y}else x=null;return x};var jf=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function f(I,V){for(var S="",j=0;j<4;j++)S+=String.fromCharCode(I[V++]);return S}function d(I,V){return I[V+0]|I[V+1]<<8}function b(I,V){return(I[V+0]|I[V+1]<<8|I[V+2]<<16)>>>0}function v(I,V){return(I[V+0]|I[V+1]<<8|I[V+2]<<16|I[V+3]<<24)>>>0}new c;var p=[0],N=[0],L=[],E=new c,_=e,U=function(I,V){var S={},j=0,W=!1,H=0,se=0;if(S.frames=[],!function(k,q){for(var z=0;z<4;z++)if(k[q+z]!="RIFF".charCodeAt(z))return!0;return!1}(I,V)){for(v(I,V+=4),V+=8;V<I.length;){var fe=f(I,V),te=v(I,V+=4);V+=4;var G=te+(1&te);switch(fe){case"VP8 ":case"VP8L":S.frames[j]===void 0&&(S.frames[j]={}),(be=S.frames[j]).src_off=W?se:V-8,be.src_size=H+te+8,j++,W&&(W=!1,H=0,se=0);break;case"VP8X":(be=S.header={}).feature_flags=I[V];var he=V+4;be.canvas_width=1+b(I,he),he+=3,be.canvas_height=1+b(I,he),he+=3;break;case"ALPH":W=!0,H=G+8,se=V-8;break;case"ANIM":(be=S.header).bgcolor=v(I,V),he=V+4,be.loop_count=d(I,he),he+=2;break;case"ANMF":var Ae,be;(be=S.frames[j]={}).offset_x=2*b(I,V),V+=3,be.offset_y=2*b(I,V),V+=3,be.width=1+b(I,V),V+=3,be.height=1+b(I,V),V+=3,be.duration=b(I,V),V+=3,Ae=I[V++],be.dispose=1&Ae,be.blend=Ae>>1&1}fe!="ANMF"&&(V+=G)}return S}}(_,0);U.response=_,U.rgbaoutput=!0,U.dataurl=!1;var B=U.header?U.header:null,F=U.frames?U.frames:null;if(B){B.loop_counter=B.loop_count,p=[B.canvas_height],N=[B.canvas_width];for(var ee=0;ee<F.length&&F[ee].blend!=0;ee++);}var le=F[0],oe=E.WebPDecodeRGBA(_,le.src_off,le.src_size,N,p);le.rgba=oe,le.imgwidth=N[0],le.imgheight=p[0];for(var K=0;K<N[0]*p[0]*4;K++)L[K]=oe[K];return this.width=N,this.height=p,this.data=L,this}/** ====================================================================
140 * @license
141 * jsPDF XMP metadata plugin
142 * Copyright (c) 2016 Jussi Utunen, [email protected]
143 *
144 * Permission is hereby granted, free of charge, to any person obtaining
145 * a copy of this software and associated documentation files (the
146 * "Software"), to deal in the Software without restriction, including
147 * without limitation the rights to use, copy, modify, merge, publish,
148 * distribute, sublicense, and/or sell copies of the Software, and to
149 * permit persons to whom the Software is furnished to do so, subject to
150 * the following conditions:
151 *
152 * The above copyright notice and this permission notice shall be
153 * included in all copies or substantial portions of the Software.
154 *
155 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
156 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
157 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
158 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
159 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
160 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
161 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
162 * ====================================================================
163 */function Jv(){var e,n=this.internal.__metadata__.metadata,t=unescape(encodeURIComponent(n));e=this.internal.__metadata__.rawXml?t:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><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>'+t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function Qv(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var n,t,r,i,a,l,s,c,f,d=function(k){return k=k||{},this.isStrokeTransparent=k.isStrokeTransparent||!1,this.strokeOpacity=k.strokeOpacity||1,this.strokeStyle=k.strokeStyle||"#000000",this.fillStyle=k.fillStyle||"#000000",this.isFillTransparent=k.isFillTransparent||!1,this.fillOpacity=k.fillOpacity||1,this.font=k.font||"10px sans-serif",this.textBaseline=k.textBaseline||"alphabetic",this.textAlign=k.textAlign||"left",this.lineWidth=k.lineWidth||1,this.lineJoin=k.lineJoin||"miter",this.lineCap=k.lineCap||"butt",this.path=k.path||[],this.transform=k.transform!==void 0?k.transform.clone():new c,this.globalCompositeOperation=k.globalCompositeOperation||"normal",this.globalAlpha=k.globalAlpha||1,this.clip_path=k.clip_path||[],this.currentPoint=k.currentPoint||new l,this.miterLimit=k.miterLimit||10,this.lastPoint=k.lastPoint||new l,this.lineDashOffset=k.lineDashOffset||0,this.lineDash=k.lineDash||[],this.margin=k.margin||[0,0,0,0],this.prevPageLastElemOffset=k.prevPageLastElemOffset||0,this.ignoreClearRect=typeof k.ignoreClearRect!="boolean"||k.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new b(this),n=this.internal.f2,t=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,l=this.internal.Point,s=this.internal.Rectangle,c=this.internal.Matrix,f=new d}]);var b=function(k){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var q=k;Object.defineProperty(this,"pdf",{get:function(){return q}});var z=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return z},set:function(D){z=!!D}});var $=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return $},set:function(D){$=!!D}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(D){isNaN(D)||(J=D)}});var re=0;Object.defineProperty(this,"posY",{get:function(){return re},set:function(D){isNaN(D)||(re=D)}}),Object.defineProperty(this,"margin",{get:function(){return f.margin},set:function(D){var Le;typeof D=="number"?Le=[D,D,D,D]:((Le=new Array(4))[0]=D[0],Le[1]=D.length>=2?D[1]:Le[0],Le[2]=D.length>=3?D[2]:Le[0],Le[3]=D.length>=4?D[3]:Le[1]),f.margin=Le}});var ce=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ce},set:function(D){ce=D}});var ue=0;Object.defineProperty(this,"lastBreak",{get:function(){return ue},set:function(D){ue=D}});var ve=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ve},set:function(D){ve=D}}),Object.defineProperty(this,"ctx",{get:function(){return f},set:function(D){D instanceof d&&(f=D)}}),Object.defineProperty(this,"path",{get:function(){return f.path},set:function(D){f.path=D}});var Ne=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ne},set:function(D){Ne=D}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(D){var Le;Le=v(D),this.ctx.fillStyle=Le.style,this.ctx.isFillTransparent=Le.a===0,this.ctx.fillOpacity=Le.a,this.pdf.setFillColor(Le.r,Le.g,Le.b,{a:Le.a}),this.pdf.setTextColor(Le.r,Le.g,Le.b,{a:Le.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(D){var Le=v(D);this.ctx.strokeStyle=Le.style,this.ctx.isStrokeTransparent=Le.a===0,this.ctx.strokeOpacity=Le.a,Le.a===0?this.pdf.setDrawColor(255,255,255):(Le.a,this.pdf.setDrawColor(Le.r,Le.g,Le.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(D){["butt","round","square"].indexOf(D)!==-1&&(this.ctx.lineCap=D,this.pdf.setLineCap(D))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(D){isNaN(D)||(this.ctx.lineWidth=D,this.pdf.setLineWidth(D))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(D){["bevel","round","miter"].indexOf(D)!==-1&&(this.ctx.lineJoin=D,this.pdf.setLineJoin(D))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(D){isNaN(D)||(this.ctx.miterLimit=D,this.pdf.setMiterLimit(D))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(D){this.ctx.textBaseline=D}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(D){["right","end","center","left","start"].indexOf(D)!==-1&&(this.ctx.textAlign=D)}});var Pe=null,ke=null,qe=null;Object.defineProperty(this,"fontFaces",{get:function(){return qe},set:function(D){Pe=null,ke=null,qe=D}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(D){var Le;if(this.ctx.font=D,(Le=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(D))!==null){var lt=Le[1];Le[2];var Ye=Le[3],_e=Le[4];Le[5];var Ve=Le[6],Ee=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(_e)[2];_e=Math.floor(Ee==="px"?parseFloat(_e)*this.pdf.internal.scaleFactor:Ee==="em"?parseFloat(_e)*this.pdf.getFontSize():parseFloat(_e)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(_e);var He=function(Re){var Xt,wt,ct=[],ut=Re.trim();if(ut==="")return Kc;if(ut in ld)return[ld[ut]];for(;ut!=="";){switch(wt=null,Xt=(ut=ud(ut)).charAt(0)){case'"':case"'":wt=Vv(ut.substring(1),Xt);break;default:wt=Gv(ut)}if(wt===null||(ct.push(wt[0]),(ut=ud(wt[1]))!==""&&ut.charAt(0)!==","))return Kc;ut=ut.replace(/^,/,"")}return ct}(Ve);if(this.fontFaces){var ze=function(Re,Xt){var wt=Re.getFontList(),ct=JSON.stringify(wt);if(Pe===null||ke!==ct){var ut=function(zt){var We=[];return Object.keys(zt).forEach(function(Ft){zt[Ft].forEach(function(Ze){var nt=null;switch(Ze){case"bold":nt={family:Ft,weight:"bold"};break;case"italic":nt={family:Ft,style:"italic"};break;case"bolditalic":nt={family:Ft,weight:"bold",style:"italic"};break;case"":case"normal":nt={family:Ft}}nt!==null&&(nt.ref={name:Ft,style:Ze},We.push(nt))})}),We}(wt);Pe=function(zt){for(var We={},Ft=0;Ft<zt.length;++Ft){var Ze=Zc(zt[Ft]),nt=Ze.family,Wt=Ze.stretch,ft=Ze.style,Ge=Ze.weight;We[nt]=We[nt]||{},We[nt][Wt]=We[nt][Wt]||{},We[nt][Wt][ft]=We[nt][Wt][ft]||{},We[nt][Wt][ft][Ge]=Ze}return We}(ut.concat(Xt)),ke=ct}return Pe}(this.pdf,this.fontFaces),Nt=He.map(function(Re){return{family:Re,stretch:"normal",weight:Ye,style:lt}}),ht=function(Re,Xt,wt){for(var ct=(wt=wt||{}).defaultFontFamily||"times",ut=Object.assign({},Yv,wt.genericFontFamilies||{}),zt=null,We=null,Ft=0;Ft<Xt.length;++Ft)if(ut[(zt=Zc(Xt[Ft])).family]&&(zt.family=ut[zt.family]),Re.hasOwnProperty(zt.family)){We=Re[zt.family];break}if(!(We=We||Re[ct]))throw new Error("Could not find a font-family for the rule '"+cd(zt)+"' and default family '"+ct+"'.");if(We=function(Ze,nt){if(nt[Ze])return nt[Ze];var Wt=ku[Ze],ft=Wt<=ku.normal?-1:1,Ge=sd(nt,X1,Wt,ft);if(!Ge)throw new Error("Could not find a matching font-stretch value for "+Ze);return Ge}(zt.stretch,We),We=function(Ze,nt){if(nt[Ze])return nt[Ze];for(var Wt=K1[Ze],ft=0;ft<Wt.length;++ft)if(nt[Wt[ft]])return nt[Wt[ft]];throw new Error("Could not find a matching font-style for "+Ze)}(zt.style,We),!(We=function(Ze,nt){if(nt[Ze])return nt[Ze];if(Ze===400&&nt[500])return nt[500];if(Ze===500&&nt[400])return nt[400];var Wt=Hv[Ze],ft=sd(nt,J1,Wt,Ze<400?-1:1);if(!ft)throw new Error("Could not find a matching font-weight for value "+Ze);return ft}(zt.weight,We)))throw new Error("Failed to resolve a font for the rule '"+cd(zt)+"'.");return We}(ze,Nt);this.pdf.setFont(ht.ref.name,ht.ref.style)}else{var tt="";(Ye==="bold"||parseInt(Ye,10)>=700||lt==="bold")&&(tt="bold"),lt==="italic"&&(tt+="italic"),tt.length===0&&(tt="normal");for(var pt="",dt={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"},Oe=0;Oe<He.length;Oe++){if(this.pdf.internal.getFont(He[Oe],tt,{noFallback:!0,disableWarning:!0})!==void 0){pt=He[Oe];break}if(tt==="bolditalic"&&this.pdf.internal.getFont(He[Oe],"bold",{noFallback:!0,disableWarning:!0})!==void 0)pt=He[Oe],tt="bold";else if(this.pdf.internal.getFont(He[Oe],"normal",{noFallback:!0,disableWarning:!0})!==void 0){pt=He[Oe],tt="normal";break}}if(pt===""){for(var at=0;at<He.length;at++)if(dt[He[at]]){pt=dt[He[at]];break}}pt=pt===""?"Times":pt,this.pdf.setFont(pt,tt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(D){this.ctx.globalCompositeOperation=D}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(D){this.ctx.globalAlpha=D}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(D){this.ctx.lineDashOffset=D,be.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(D){this.ctx.lineDash=D,be.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(D){this.ctx.ignoreClearRect=!!D}})};b.prototype.setLineDash=function(k){this.lineDash=k},b.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},b.prototype.fill=function(){F.call(this,"fill",!1)},b.prototype.stroke=function(){F.call(this,"stroke",!1)},b.prototype.beginPath=function(){this.path=[{type:"begin"}]},b.prototype.moveTo=function(k,q){if(isNaN(k)||isNaN(q))throw jt.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to 
163jsPDF.context2d.moveTo");var z=this.ctx.transform.applyToPoint(new l(k,q));this.path.push({type:"mt",x:z.x,y:z.y}),this.ctx.lastPoint=new l(k,q)},b.prototype.closePath=function(){var k=new l(0,0),q=0;for(q=this.path.length-1;q!==-1;q--)if(this.path[q].type==="begin"&&Ct(this.path[q+1])==="object"&&typeof this.path[q+1].x=="number"){k=new l(this.path[q+1].x,this.path[q+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new l(k.x,k.y)},b.prototype.lineTo=function(k,q){if(isNaN(k)||isNaN(q))throw jt.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var z=this.ctx.transform.applyToPoint(new l(k,q));this.path.push({type:"lt",x:z.x,y:z.y}),this.ctx.lastPoint=new l(z.x,z.y)},b.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),F.call(this,null,!0)},b.prototype.quadraticCurveTo=function(k,q,z,$){if(isNaN(z)||isNaN($)||isNaN(k)||isNaN(q))throw jt.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var J=this.ctx.transform.applyToPoint(new l(z,$)),re=this.ctx.transform.applyToPoint(new l(k,q));this.path.push({type:"qct",x1:re.x,y1:re.y,x:J.x,y:J.y}),this.ctx.lastPoint=new l(J.x,J.y)},b.prototype.bezierCurveTo=function(k,q,z,$,J,re){if(isNaN(J)||isNaN(re)||isNaN(k)||isNaN(q)||isNaN(z)||isNaN($))throw jt.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ce=this.ctx.transform.applyToPoint(new l(J,re)),ue=this.ctx.transform.applyToPoint(new l(k,q)),ve=this.ctx.transform.applyToPoint(new l(z,$));this.path.push({type:"bct",x1:ue.x,y1:ue.y,x2:ve.x,y2:ve.y,x:ce.x,y:ce.y}),this.ctx.lastPoint=new l(ce.x,ce.y)},b.prototype.arc=function(k,q,z,$,J,re){if(isNaN(k)||isNaN(q)||isNaN(z)||isNaN($)||isNaN(J))throw jt.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(re=!!re,!this.ctx.transform.isIdentity){var ce=this.ctx.transform.applyToPoint(new l(k,q));k=ce.x,q=ce.y;var ue=this.ctx.transform.applyToPoint(new l(0,z)),ve=this.ctx.transform.applyToPoint(new l(0,0));z=Math.sqrt(Math.pow(ue.x-ve.x,2)+Math.pow(ue.y-ve.y,2))}Math.abs(J-$)>=2*Math.PI&&($=0,J=2*Math.PI),this.path.push({type:"arc",x:k,y:q,radius:z,startAngle:$,endAngle:J,counterclockwise:re})},b.prototype.arcTo=function(k,q,z,$,J){throw new Error("arcTo not implemented.")},b.prototype.rect=function(k,q,z,$){if(isNaN(k)||isNaN(q)||isNaN(z)||isNaN($))throw jt.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(k,q),this.lineTo(k+z,q),this.lineTo(k+z,q+$),this.lineTo(k,q+$),this.lineTo(k,q),this.lineTo(k+z,q),this.lineTo(k,q)},b.prototype.fillRect=function(k,q,z,$){if(isNaN(k)||isNaN(q)||isNaN(z)||isNaN($))throw jt.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var J={};this.lineCap!=="butt"&&(J.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(J.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(k,q,z,$),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},b.prototype.strokeRect=function(k,q,z,$){if(isNaN(k)||isNaN(q)||isNaN(z)||isNaN($))throw jt.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");N.call(this)||(this.beginPath(),this.rect(k,q,z,$),this.stroke())},b.prototype.clearRect=function(k,q,z,$){if(isNaN(k)||isNaN(q)||isNaN(z)||isNaN($))throw jt.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(k,q,z,$))},b.prototype.save=function(k){k=typeof k!="boolean"||k;for(var q=this.pdf.internal.getCurrentPageInfo().pageNumber,z=0;z<this.pdf.internal.getNumberOfPages();z++)this.pdf.setPage(z+1),this.pdf.internal.out("q");
vendor: 4,149 bytes, line 163
163if(this.pdf.setPage(q),k){this.ctx.fontSize=this.pdf.internal.getFontSize();var $=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=$}},b.prototype.restore=function(k){k=typeof k!="boolean"||k;for(var q=this.pdf.internal.getCurrentPageInfo().pageNumber,z=0;z<this.pdf.internal.getNumberOfPages();z++)this.pdf.setPage(z+1),this.pdf.internal.out("Q");this.pdf.setPage(q),k&&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)},b.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var v=function(k){var q,z,$,J;if(k.isCanvasGradient===!0&&(k=k.getColor()),!k)return{r:0,g:0,b:0,a:0,style:k};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(k))q=0,z=0,$=0,J=0;else{var re=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(k);if(re!==null)q=parseInt(re[1]),z=parseInt(re[2]),$=parseInt(re[3]),J=1;else if((re=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(k))!==null)q=parseInt(re[1]),z=parseInt(re[2]),$=parseInt(re[3]),J=parseFloat(re[4]);else{if(J=1,typeof k=="string"&&k.charAt(0)!=="#"){var ce=new W1(k);k=ce.ok?ce.toHex():"#000000"}k.length===4?(q=k.substring(1,2),q+=q,z=k.substring(2,3),z+=z,$=k.substring(3,4),$+=$):(q=k.substring(1,3),z=k.substring(3,5),$=k.substring(5,7)),q=parseInt(q,16),z=parseInt(z,16),$=parseInt($,16)}}return{r:q,g:z,b:$,a:J,style:k}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},N=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};b.prototype.fillText=function(k,q,z,$){if(isNaN(q)||isNaN(z)||typeof k!="string")throw jt.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if($=isNaN($)?void 0:$,!p.call(this)){var J=G(this.ctx.transform.rotation),re=this.ctx.transform.scaleX;j.call(this,{text:k,x:q,y:z,scale:re,angle:J,align:this.textAlign,maxWidth:$})}},b.prototype.strokeText=function(k,q,z,$){if(isNaN(q)||isNaN(z)||typeof k!="string")throw jt.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!N.call(this)){$=isNaN($)?void 0:$;var J=G(this.ctx.transform.rotation),re=this.ctx.transform.scaleX;j.call(this,{text:k,x:q,y:z,scale:re,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:$})}},b.prototype.measureText=function(k){if(typeof k!="string")throw jt.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var q=this.pdf,z=this.pdf.internal.scaleFactor,$=q.internal.getFontSize(),J=q.getStringUnitWidth(k)*$/q.internal.scaleFactor;return new function(re){var ce=(re=re||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ce}}),this}({width:J*=Math.round(96*z/72*1e4)/1e4})},b.prototype.scale=function(k,q){if(isNaN(k)||isNaN(q))throw jt.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var z=new c(k,0,0,q,0,0);this.ctx.transform=this.ctx.transform.multiply(z)},b.prototype.rotate=function(k){if(isNaN(k))throw jt.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var q=new c(Math.cos(k),Math.sin(k),-Math.sin(k),Math.cos(k),0,0);this.ctx.transform=this.ctx.transform.multiply(q)},b.prototype.translate=function(k,q){if(isNaN(k)||isNaN(q))throw jt.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var z=new c(1,0,0,1,k,q);this.ctx.transform=this.ctx.transform.multiply(z)},b.prototype.transform=function(k,q,z,$,J,re){if(isNaN(k)||isNaN(q)||isNaN(z)||isNaN($)||isNaN(J)||isNaN(re))throw jt.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to 
163jsPDF.context2d.transform");var ce=new c(k,q,z,$,J,re);this.ctx.transform=this.ctx.transform.multiply(ce)},b.prototype.setTransform=function(k,q,z,$,J,re){k=isNaN(k)?1:k,q=isNaN(q)?0:q,z=isNaN(z)?0:z,$=isNaN($)?1:$,J=isNaN(J)?0:J,re=isNaN(re)?0:re,this.ctx.transform=new c(k,q,z,$,J,re)};var L=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};b.prototype.drawImage=function(k,q,z,$,J,re,ce,ue,ve){var Ne=this.pdf.getImageProperties(k),Pe=1,ke=1,qe=1,D=1;$!==void 0&&ue!==void 0&&(qe=ue/$,D=ve/J,Pe=Ne.width/$*ue/$,ke=Ne.height/J*ve/J),re===void 0&&(re=q,ce=z,q=0,z=0),$!==void 0&&ue===void 0&&(ue=$,ve=J),$===void 0&&ue===void 0&&(ue=Ne.width,ve=Ne.height);var Le=this.ctx.transform.decompose(),lt=G(Le.rotate.shx),Ye=new c,_e=(Ye=(Ye=(Ye=Ye.multiply(Le.translate)).multiply(Le.skew)).multiply(Le.scale)).applyToRectangle(new s(re-q*qe,ce-z*D,$*Pe,J*ke));if(this.autoPaging){for(var Ve,Ee=E.call(this,_e),He=[],ze=0;ze<Ee.length;ze+=1)He.indexOf(Ee[ze])===-1&&He.push(Ee[ze]);B(He);for(var Nt=He[0],ht=He[He.length-1],tt=Nt;tt<ht+1;tt++){this.pdf.setPage(tt);var pt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],dt=tt===1?this.posY+this.margin[0]:this.margin[0],Oe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],at=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Re=tt===1?0:Oe+(tt-2)*at;if(this.ctx.clip_path.length!==0){var Xt=this.path;Ve=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=U(Ve,this.posX+this.margin[3],-Re+dt+this.ctx.prevPageLastElemOffset),ee.call(this,"fill",!0),this.path=Xt}var wt=JSON.parse(JSON.stringify(_e));wt=U([wt],this.posX+this.margin[3],-Re+dt+this.ctx.prevPageLastElemOffset)[0];var ct=(tt>Nt||tt<ht)&&L.call(this);ct&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],pt,at,null).clip().discardPath()),this.pdf.addImage(k,"JPEG",wt.x,wt.y,wt.w,wt.h,null,null,lt),ct&&this.pdf.restoreGraphicsState()}}
vendor: 39,550 bytes, lines 163-169
163else this.pdf.addImage(k,"JPEG",_e.x,_e.y,_e.w,_e.h,null,null,lt)};var E=function(k,q,z){var $=[];q=q||this.pdf.internal.pageSize.width,z=z||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var J=this.posY+this.ctx.prevPageLastElemOffset;switch(k.type){default:case"mt":case"lt":$.push(Math.floor((k.y+J)/z)+1);break;case"arc":$.push(Math.floor((k.y+J-k.radius)/z)+1),$.push(Math.floor((k.y+J+k.radius)/z)+1);break;case"qct":var re=he(this.ctx.lastPoint.x,this.ctx.lastPoint.y,k.x1,k.y1,k.x,k.y);$.push(Math.floor((re.y+J)/z)+1),$.push(Math.floor((re.y+re.h+J)/z)+1);break;case"bct":var ce=Ae(this.ctx.lastPoint.x,this.ctx.lastPoint.y,k.x1,k.y1,k.x2,k.y2,k.x,k.y);$.push(Math.floor((ce.y+J)/z)+1),$.push(Math.floor((ce.y+ce.h+J)/z)+1);break;case"rect":$.push(Math.floor((k.y+J)/z)+1),$.push(Math.floor((k.y+k.h+J)/z)+1)}for(var ue=0;ue<$.length;ue+=1)for(;this.pdf.internal.getNumberOfPages()<$[ue];)_.call(this);return $},_=function(){var k=this.fillStyle,q=this.strokeStyle,z=this.font,$=this.lineCap,J=this.lineWidth,re=this.lineJoin;this.pdf.addPage(),this.fillStyle=k,this.strokeStyle=q,this.font=z,this.lineCap=$,this.lineWidth=J,this.lineJoin=re},U=function(k,q,z){for(var $=0;$<k.length;$++)switch(k[$].type){case"bct":k[$].x2+=q,k[$].y2+=z;case"qct":k[$].x1+=q,k[$].y1+=z;default:k[$].x+=q,k[$].y+=z}return k},B=function(k){return k.sort(function(q,z){return q-z})},F=function(k,q){var z=this.fillStyle,$=this.strokeStyle,J=this.lineCap,re=this.lineWidth,ce=Math.abs(re*this.ctx.transform.scaleX),ue=this.lineJoin;if(this.autoPaging){for(var ve,Ne,Pe=JSON.parse(JSON.stringify(this.path)),ke=JSON.parse(JSON.stringify(this.path)),qe=[],D=0;D<ke.length;D++)if(ke[D].x!==void 0)for(var Le=E.call(this,ke[D]),lt=0;lt<Le.length;lt+=1)qe.indexOf(Le[lt])===-1&&qe.push(Le[lt]);for(var Ye=0;Ye<qe.length;Ye++)for(;this.pdf.internal.getNumberOfPages()<qe[Ye];)_.call(this);B(qe);for(var _e=qe[0],Ve=qe[qe.length-1],Ee=_e;Ee<Ve+1;Ee++){this.pdf.setPage(Ee),this.fillStyle=z,this.strokeStyle=$,this.lineCap=J,this.lineWidth=ce,this.lineJoin=ue;var He=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ze=Ee===1?this.posY+this.margin[0]:this.margin[0],Nt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ht=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],tt=Ee===1?0:Nt+(Ee-2)*ht;if(this.ctx.clip_path.length!==0){var pt=this.path;ve=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=U(ve,this.posX+this.margin[3],-tt+ze+this.ctx.prevPageLastElemOffset),ee.call(this,k,!0),this.path=pt}if(Ne=JSON.parse(JSON.stringify(Pe)),this.path=U(Ne,this.posX+this.margin[3],-tt+ze+this.ctx.prevPageLastElemOffset),q===!1||Ee===0){var dt=(Ee>_e||Ee<Ve)&&L.call(this);dt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],He,ht,null).clip().discardPath()),ee.call(this,k,q),dt&&this.pdf.restoreGraphicsState()}this.lineWidth=re}this.path=Pe}else this.lineWidth=ce,ee.call(this,k,q),this.lineWidth=re},ee=function(k,q){if((k!=="stroke"||q||!N.call(this))&&(k==="stroke"||q||!p.call(this))){for(var z,$,J=[],re=this.path,ce=0;ce<re.length;ce++){var ue=re[ce];switch(ue.type){case"begin":J.push({begin:!0});break;case"close":J.push({close:!0});break;case"mt":J.push({start:ue,deltas:[],abs:[]});break;case"lt":var ve=J.length;if(re[ce-1]&&!isNaN(re[ce-1].x)&&(z=[ue.x-re[ce-1].x,ue.y-re[ce-1].y],ve>0)){for(;ve>=0;ve--)if(J[ve-1].close!==!0&&J[ve-1].begin!==!0){J[ve-1].deltas.push(z),J[ve-1].abs.push(ue);break}}break;case"bct":z=[ue.x1-re[ce-1].x,ue.y1-re[ce-1].y,ue.x2-re[ce-1].x,ue.y2-re[ce-1].y,ue.x-re[ce-1].x,ue.y-re[ce-1].y],J[J.length-1].deltas.push(z);break;case"qct":var Ne=re[ce-1].x+2/3*(ue.x1-re[ce-1].x),Pe=re[ce-1].y+2/3*(ue.y1-re[ce-1].y),ke=ue.x+2/3*(ue.x1-ue.x),qe=ue.y+2/3*(ue.y1-ue.y),D=ue.x,Le=ue.y;z=[Ne-re[ce-1].x,Pe-re[ce-1].y,ke-re[ce-1].x,qe-re[ce-1].y,D-re[ce-1].x,Le-re[ce-1].y],J[J.length-1].deltas.push(z);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(ue)}}$=q?null:k==="stroke"?"stroke":"fill";for(var lt=!1,Ye=0;Ye<J.length;Ye++)if(J[Ye].arc)for(var _e=J[Ye].abs,Ve=0;Ve<_e.length;Ve++){var Ee=_e[Ve];Ee.type==="arc"?K.call(this,Ee.x,Ee.y,Ee.radius,Ee.startAngle,Ee.endAngle,Ee.counterclockwise,void 0,q,!lt):W.call(this,Ee.x,Ee.y),lt=!0}else if(J[Ye].close===!0)this.pdf.internal.out("h"),lt=!1;else if(J[Ye].begin!==!0){var He=J[Ye].start.x,ze=J[Ye].start.y;H.call(this,J[Ye].deltas,He,ze),lt=!0}$&&I.call(this,$),q&&V.call(this)}},le=function(k){var q=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,z=q*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return k-z;case"top":return k+q-z;case"hanging":return k+q-2*z;case"middle":return k+q/2-z;default:return k}},oe=function(k){return k+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};b.prototype.createLinearGradient=function(){var k=function(){};return k.colorStops=[],k.addColorStop=function(q,z){this.colorStops.push([q,z])},k.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},k.isCanvasGradient=!0,k},b.prototype.createPattern=function(){return this.createLinearGradient()},b.prototype.createRadialGradient=function(){return this.createLinearGradient()};var K=function(k,q,z,$,J,re,ce,ue,ve){for(var Ne=fe.call(this,z,$,J,re),Pe=0;Pe<Ne.length;Pe++){var ke=Ne[Pe];Pe===0&&(ve?S.call(this,ke.x1+k,ke.y1+q):W.call(this,ke.x1+k,ke.y1+q)),se.call(this,k,q,ke.x2,ke.y2,ke.x3,ke.y3,ke.x4,ke.y4)}ue?V.call(this):I.call(this,ce)},I=function(k){switch(k){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},V=function(){this.pdf.clip(),this.pdf.discardPath()},S=function(k,q){this.pdf.internal.out(t(k)+" "+r(q)+" m")},j=function(k){var q;switch(k.align){case"right":case"end":q="right";break;case"center":q="center";break;default:q="left"}var z,$,J,re=this.pdf.getTextDimensions(k.text),ce=le.call(this,k.y),ue=oe.call(this,ce)-re.h,ve=this.ctx.transform.applyToPoint(new l(k.x,ce));if(this.autoPaging){var Ne=this.ctx.transform.decompose(),Pe=new c;Pe=(Pe=(Pe=Pe.multiply(Ne.translate)).multiply(Ne.skew)).multiply(Ne.scale);for(var ke=this.ctx.transform.applyToRectangle(new s(k.x,ce,re.w,re.h)),qe=Pe.applyToRectangle(new s(k.x,ue,re.w,re.h)),D=E.call(this,qe),Le=[],lt=0;lt<D.length;lt+=1)Le.indexOf(D[lt])===-1&&Le.push(D[lt]);B(Le);for(var Ye=Le[0],_e=Le[Le.length-1],Ve=Ye;Ve<_e+1;Ve++){this.pdf.setPage(Ve);var Ee=Ve===1?this.posY+this.margin[0]:this.margin[0],He=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ze=this.pdf.internal.pageSize.height-this.margin[2],Nt=ze-this.margin[0],ht=this.pdf.internal.pageSize.width-this.margin[1],tt=ht-this.margin[3],pt=Ve===1?0:He+(Ve-2)*Nt;if(this.ctx.clip_path.length!==0){var dt=this.path;z=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=U(z,this.posX+this.margin[3],-1*pt+Ee),ee.call(this,"fill",!0),this.path=dt}var Oe=U([JSON.parse(JSON.stringify(qe))],this.posX+this.margin[3],-pt+Ee+this.ctx.prevPageLastElemOffset)[0];k.scale>=.01&&($=this.pdf.internal.getFontSize(),this.pdf.setFontSize($*k.scale),J=this.lineWidth,this.lineWidth=J*k.scale);var at=this.autoPaging!=="text";if(at||Oe.y+Oe.h<=ze){if(at||Oe.y>=Ee&&Oe.x<=ht){var Re=at?k.text:this.pdf.splitTextToSize(k.text,k.maxWidth||ht-Oe.x)[0],Xt=U([JSON.parse(JSON.stringify(ke))],this.posX+this.margin[3],-pt+Ee+this.ctx.prevPageLastElemOffset)[0],wt=at&&(Ve>Ye||Ve<_e)&&L.call(this);wt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],tt,Nt,null).clip().discardPath()),this.pdf.text(Re,Xt.x,Xt.y,{angle:k.angle,align:q,renderingMode:k.renderingMode}),wt&&this.pdf.restoreGraphicsState()}}else Oe.y<ze&&(this.ctx.prevPageLastElemOffset+=ze-Oe.y);k.scale>=.01&&(this.pdf.setFontSize($),this.lineWidth=J)}}else k.scale>=.01&&($=this.pdf.internal.getFontSize(),this.pdf.setFontSize($*k.scale),J=this.lineWidth,this.lineWidth=J*k.scale),this.pdf.text(k.text,ve.x+this.posX,ve.y+this.posY,{angle:k.angle,align:q,renderingMode:k.renderingMode,maxWidth:k.maxWidth}),k.scale>=.01&&(this.pdf.setFontSize($),this.lineWidth=J)},W=function(k,q,z,$){z=z||0,$=$||0,this.pdf.internal.out(t(k+z)+" "+r(q+$)+" l")},H=function(k,q,z){return this.pdf.lines(k,q,z,null,null)},se=function(k,q,z,$,J,re,ce,ue){this.pdf.internal.out([n(i(z+k)),n(a($+q)),n(i(J+k)),n(a(re+q)),n(i(ce+k)),n(a(ue+q)),"c"].join(" "))},fe=function(k,q,z,$){for(var J=2*Math.PI,re=Math.PI/2;q>z;)q-=J;var ce=Math.abs(z-q);ce<J&&$&&(ce=J-ce);for(var ue=[],ve=$?-1:1,Ne=q;ce>1e-5;){var Pe=Ne+ve*Math.min(ce,re);ue.push(te.call(this,k,Ne,Pe)),ce-=Math.abs(Pe-Ne),Ne=Pe}return ue},te=function(k,q,z){var $=(z-q)/2,J=k*Math.cos($),re=k*Math.sin($),ce=J,ue=-re,ve=ce*ce+ue*ue,Ne=ve+ce*J+ue*re,Pe=4/3*(Math.sqrt(2*ve*Ne)-Ne)/(ce*re-ue*J),ke=ce-Pe*ue,qe=ue+Pe*ce,D=ke,Le=-qe,lt=$+q,Ye=Math.cos(lt),_e=Math.sin(lt);return{x1:k*Math.cos(q),y1:k*Math.sin(q),x2:ke*Ye-qe*_e,y2:ke*_e+qe*Ye,x3:D*Ye-Le*_e,y3:D*_e+Le*Ye,x4:k*Math.cos(z),y4:k*Math.sin(z)}},G=function(k){return 180*k/Math.PI},he=function(k,q,z,$,J,re){var ce=k+.5*(z-k),ue=q+.5*($-q),ve=J+.5*(z-J),Ne=re+.5*($-re),Pe=Math.min(k,J,ce,ve),ke=Math.max(k,J,ce,ve),qe=Math.min(q,re,ue,Ne),D=Math.max(q,re,ue,Ne);return new s(Pe,qe,ke-Pe,D-qe)},Ae=function(k,q,z,$,J,re,ce,ue){var ve,Ne,Pe,ke,qe,D,Le,lt,Ye,_e,Ve,Ee,He,ze,Nt=z-k,ht=$-q,tt=J-z,pt=re-$,dt=ce-J,Oe=ue-re;for(Ne=0;Ne<41;Ne++)Ye=(Le=(Pe=k+(ve=Ne/40)*Nt)+ve*((qe=z+ve*tt)-Pe))+ve*(qe+ve*(J+ve*dt-qe)-Le),_e=(lt=(ke=q+ve*ht)+ve*((D=$+ve*pt)-ke))+ve*(D+ve*(re+ve*Oe-D)-lt),Ne==0?(Ve=Ye,Ee=_e,He=Ye,ze=_e):(Ve=Math.min(Ve,Ye),Ee=Math.min(Ee,_e),He=Math.max(He,Ye),ze=Math.max(ze,_e));return new s(Math.round(Ve),Math.round(Ee),Math.round(He-Ve),Math.round(ze-Ee))},be=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var k,q,z=(k=this.ctx.lineDash,q=this.ctx.lineDashOffset,JSON.stringify({lineDash:k,lineDashOffset:q}));this.prevLineDash!==z&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=z)}}})(Be.API),function(e){var n=function(l){var s,c,f,d,b,v,p,N,L,E;for(c=[],f=0,d=(l+=s="\0\0\0\0".slice(l.length%4||4)).length;d>f;f+=4)(b=(l.charCodeAt(f)<<24)+(l.charCodeAt(f+1)<<16)+(l.charCodeAt(f+2)<<8)+l.charCodeAt(f+3))!==0?(v=(b=((b=((b=((b=(b-(E=b%85))/85)-(L=b%85))/85)-(N=b%85))/85)-(p=b%85))/85)%85,c.push(v+33,p+33,N+33,L+33,E+33)):c.push(122);return function(_,U){for(var B=U;B>0;B--)_.pop()}(c,s.length),String.fromCharCode.apply(String,c)+"~>"},t=function(l){var s,c,f,d,b,v=String,p="length",N=255,L="charCodeAt",E="slice",_="replace";for(l[E](-2),l=l[E](0,-2)[_](/\s/g,"")[_]("z","!!!!!"),f=[],d=0,b=(l+=s="uuuuu"[E](l[p]%5||5))[p];b>d;d+=5)c=52200625*(l[L](d)-33)+614125*(l[L](d+1)-33)+7225*(l[L](d+2)-33)+85*(l[L](d+3)-33)+(l[L](d+4)-33),f.push(N&c>>24,N&c>>16,N&c>>8,N&c);return function(U,B){for(var F=B;F>0;F--)U.pop()}(f,s[p]),v.fromCharCode.apply(v,f)},r=function(l){return l.split("").map(function(s){return("0"+s.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(l){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((l=l.replace(/\s/g,"")).indexOf(">")!==-1&&(l=l.substr(0,l.indexOf(">"))),l.length%2&&(l+="0"),s.test(l)===!1)return"";for(var c="",f=0;f<l.length;f+=2)c+=String.fromCharCode("0x"+(l[f]+l[f+1]));return c},a=function(l){for(var s=new Uint8Array(l.length),c=l.length;c--;)s[c]=l.charCodeAt(c);return(s=pu(s)).reduce(function(f,d){return f+String.fromCharCode(d)},"")};e.processDataByFilters=function(l,s){var c=0,f=l||"",d=[];for(typeof(s=s||[])=="string"&&(s=[s]),c=0;c<s.length;c+=1)switch(s[c]){case"ASCII85Decode":case"/ASCII85Decode":f=t(f),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":f=n(f),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":f=i(f),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":f=r(f),d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":f=a(f),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[c]+'" is not implemented')}return{data:f,reverseChain:d.reverse().join(" ")}}}(Be.API),function(e){e.loadFile=function(n,t,r){return function(i,a,l){a=a!==!1,l=typeof l=="function"?l:function(){};var s=void 0;try{s=function(c,f,d){var b=new XMLHttpRequest,v=0,p=function(N){var L=N.length,E=[],_=String.fromCharCode;for(v=0;v<L;v+=1)E.push(_(255&N.charCodeAt(v)));return E.join("")};if(b.open("GET",c,!f),b.overrideMimeType("text/plain; charset=x-user-defined"),f===!1&&(b.onload=function(){b.status===200?d(p(this.responseText)):d(void 0)}),b.send(null),f&&b.status===200)return p(b.responseText)}(i,a,l)}catch{}return s}(n,t,r)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(Be.API),function(e){function n(){return(Je.html2canvas?Promise.resolve(Je.html2canvas):xc(()=>import("./html2canvas.esm-CBrSDip1.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function t(){return(Je.DOMPurify?Promise.resolve(Je.DOMPurify):xc(()=>import("./purify.es-dhnUglUx.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var c=Ct(s);return c==="undefined"?"undefined":c==="string"||s instanceof String?"string":c==="number"||s instanceof Number?"number":c==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":c==="object"?"object":"unknown"},i=function(s,c){var f=document.createElement(s);for(var d in c.className&&(f.className=c.className),c.innerHTML&&c.dompurify&&(f.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)f.style[d]=c.style[d];return f},a=function s(c,f){for(var d=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),b=c.firstChild;b;b=b.nextSibling)f!==!0&&b.nodeType===1&&b.nodeName==="SCRIPT"||d.appendChild(s(b,f));return c.nodeType===1&&(c.nodeName==="CANVAS"?(d.width=c.width,d.height=c.height,d.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(d.value=c.value),d.addEventListener("load",function(){d.scrollTop=c.scrollTop,d.scrollLeft=c.scrollLeft},!0)),d},l=function s(c){var f=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),d=s.convert(Promise.resolve(),f);return(d=d.setProgress(1,s,1,[s])).set(c)};(l.prototype=Object.create(Promise.prototype)).constructor=l,l.convert=function(s,c){return s.__proto__=c||l.prototype,s},l.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"}},l.prototype.from=function(s,c){return this.then(function(){switch(c=c||function(f){switch(r(f)){case"string":return"string";case"element":return f.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s),c){case"string":return this.then(t).then(function(f){return this.set({src:i("div",{innerHTML:s,dompurify:f})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},l.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},l.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},c=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},l.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(n).then(function(c){var f=Object.assign({},this.opt.html2canvas);return delete f.onrendered,c(this.prop.container,f)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},l.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(n).then(function(c){var f=this.opt.jsPDF,d=this.opt.fontFaces,b=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,v=Object.assign({async:!0,allowTaint:!0,scale:b,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 v.onrendered,f.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,f.context2d.posX=this.opt.x,f.context2d.posY=this.opt.y,f.context2d.margin=this.opt.margin,f.context2d.fontFaces=d,d)for(var p=0;p<d.length;++p){var N=d[p],L=N.src.find(function(E){return E.format==="truetype"});L&&f.addFont(L.url,N.ref.name,N.ref.style)}return v.windowHeight=v.windowHeight||0,v.windowHeight=v.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):v.windowHeight,f.context2d.save(!0),c(this.prop.container,v)}).then(function(c){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},l.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},l.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},l.prototype.output=function(s,c,f){return(f=f||"pdf").toLowerCase()==="img"||f.toLowerCase()==="image"?this.outputImg(s,c):this.outputPdf(s,c)},l.prototype.outputPdf=function(s,c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,c)})},l.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},l.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},l.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},l.prototype.set=function(s){if(r(s)!=="object")return this;var c=Object.keys(s||{}).map(function(f){if(f in l.template.prop)return function(){this.prop[f]=s[f]};switch(f){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[f]=s[f]}}},this);return this.then(function(){return this.thenList(c)})},l.prototype.get=function(s,c){return this.then(function(){var f=s in l.template.prop?this.prop[s]:this.opt[s];return c?c(f):f})},l.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},l.prototype.setPageSize=function(s){function c(f,d){return Math.floor(f*d/72*96)}return this.then(function(){(s=s||Be.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:c(s.inner.width,s.k),height:c(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},l.prototype.setProgress=function(s,c,f,d){return s!=null&&(this.progress.val=s),c!=null&&(this.progress.state=c),f!=null&&(this.progress.n=f),d!=null&&(this.progress.stack=d),this.progress.ratio=this.progress.val/this.progress.state,this},l.prototype.updateProgress=function(s,c,f,d){return this.setProgress(s?this.progress.val+s:null,c||null,f?this.progress.n+f:null,d?this.progress.stack.concat(d):null)},l.prototype.then=function(s,c){var f=this;return this.thenCore(s,c,function(d,b){return f.updateProgress(null,null,1,[d]),Promise.prototype.then.call(this,function(v){return f.updateProgress(null,d),v}).then(d,b).then(function(v){return f.updateProgress(1),v})})},l.prototype.thenCore=function(s,c,f){f=f||Promise.prototype.then;var d=this;s&&(s=s.bind(d)),c&&(c=c.bind(d));var b=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?d:l.convert(Object.assign({},d),Promise.prototype),v=f.call(b,s,c);return l.convert(v,d.__proto__)},l.prototype.thenExternal=function(s,c){return Promise.prototype.then.call(this,s,c)},l.prototype.thenList=function(s){var c=this;return s.forEach(function(f){c=c.thenCore(f)}),c},l.prototype.catch=function(s){s&&(s=s.bind(this));var c=Promise.prototype.catch.call(this,s);return l.convert(c,this)},l.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},l.prototype.error=function(s){return this.then(function(){throw new Error(s)})},l.prototype.using=l.prototype.set,l.prototype.saveAs=l.prototype.save,l.prototype.export=l.prototype.output,l.prototype.run=l.prototype.then,Be.getPageSize=function(s,c,f){if(Ct(s)==="object"){var d=s;s=d.orientation,c=d.unit||c,f=d.format||f}c=c||"mm",f=f||"a4",s=(""+(s||"P")).toLowerCase();var b,v=(""+f).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(c){case"pt":b=1;break;case"mm":b=72/25.4;break;case"cm":b=72/2.54;break;case"in":b=72;break;case"px":b=.75;break;case"pc":case"em":b=12;break;case"ex":b=6;break;default:throw"Invalid unit: "+c}var N,L=0,E=0;if(p.hasOwnProperty(v))L=p[v][1]/b,E=p[v][0]/b;else try{L=f[1],E=f[0]}catch{throw new Error("Invalid format: "+f)}if(s==="p"||s==="portrait")s="p",E>L&&(N=E,E=L,L=N);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",L>E&&(N=E,E=L,L=N)}return{width:E,height:L,unit:c,k:b,orientation:s}},e.html=function(s,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(Zc):null;var f=new l(c);return c.worker?f:f.from(s).doCallback()}}(Be.API),Be.API.addJS=function(e){var n,t,r=function(i){for(var a="",l=0;l<i.length;l++){var s=i[l];if(s==="("||s===")"){for(var c=0,f=l-1;f>=0&&i[f]==="\\";f--)c++;a+=c%2==0?"\\"+s:s}else a+=s}return a}(e);return this.internal.events.subscribe("postPutResources",function(){n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(n+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){n!==void 0&&t!==void 0&&this.internal.out("/Names <</JavaScript "+n+" 0 R>>")}),this},function(e){var n;e.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=t.outline.render().split(/\r\n/),a=0;a<i.length;a++){var l=i[a],s=r.exec(l);if(s!=null){var c=s[1];t.internal.newObjectDeferredBegin(c,!1)}t.internal.write(l)}if(this.outline.createNamedDestinations){var f=this.internal.pages.length,d=[];for(a=0;a<f;a++){var b=t.internal.newObject();d.push(b);var v=t.internal.getPageInfo(a+1);t.internal.write("<< /D["+v.objId+" 0 R /XYZ null null null]>> endobj")}var p=t.internal.newObject();for(t.internal.write("<< /Names [ "),a=0;a<d.length;a++)t.internal.write("(page_"+(a+1)+")"+d[a]+" 0 R");t.internal.write(" ] >>","endobj"),n=t.internal.newObject(),t.internal.write("<< /Dests "+p+" 0 R"),t.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var t=this;t.outline.root.children.length>0&&(t.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&t.internal.write("/Names "+n+" 0 R"))}]),e.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(r,i,a){var l={title:i,options:a,children:[]};return r==null&&(r=this.root),r.children.push(l),l},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(r){r.id=t.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},t.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()},t.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<r.children.length;a++){var l=r.children[a];this.objStart(l),this.line("/Title "+this.makeString(l.title)),this.line("/Parent "+this.makeRef(r)),a>0&&this.line("/Prev "+this.makeRef(r.children[a-1])),a<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[a+1])),l.children.length>0&&(this.line("/First "+this.makeRef(l.children[0])),this.line("/Last "+this.makeRef(l.children[l.children.length-1])));var s=this.count=this.count_r({count:0},l);if(s>0&&this.line("/Count "+s),l.options&&l.options.pageNumber){var c=t.internal.getPageInfo(l.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var f=0;f<r.children.length;f++)this.renderItems(r.children[f])},t.outline.line=function(r){this.ctx.val+=r+`\r
164`},t.outline.makeRef=function(r){return r.id+" 0 R"},t.outline.makeString=function(r){return"("+t.internal.pdfEscape(r)+")"},t.outline.objStart=function(r){this.ctx.val+=`\r
165`+r.id+` 0 obj\r
166<<\r
167`},t.outline.objEnd=function(){this.ctx.val+=`>> \r
168endobj\r
169`},t.outline.count_r=function(r,i){for(var a=0;a<i.children.length;a++)r.count++,this.count_r(r,i.children[a]);return r.count}}])}(Be.API),function(e){var n=[192,193,194,195,196,197,198,199];e.processJPEG=function(t,r,i,a,l,s){var c,f=this.decode.DCT_DECODE,d=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=l||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,c=function(b){for(var v,p=256*b.charCodeAt(4)+b.charCodeAt(5),N=b.length,L={width:0,height:0,numcomponents:1},E=4;E<N;E+=2){if(E+=p,n.indexOf(b.charCodeAt(E+1))!==-1){v=256*b.charCodeAt(E+5)+b.charCodeAt(E+6),L={width:256*b.charCodeAt(E+7)+b.charCodeAt(E+8),height:v,numcomponents:b.charCodeAt(E+9)};break}p=256*b.charCodeAt(E+2)+b.charCodeAt(E+3)}return L}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t),c.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}d={data:t,width:c.width,height:c.height,colorSpace:s,bitsPerComponent:8,filter:f,index:r,alias:i}}return d}}(Be.API),Be.API.processPNG=function(e,n,t,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,a=Ev(e,{checkCrc:!0}),l=a.width,s=a.height,c=a.channels,f=a.palette,d=a.depth;i=f&&c===1?function(K){for(var I=K.width,V=K.height,S=K.data,j=K.palette,W=K.depth,H=!1,se=[],fe=[],te=void 0,G=!1,he=0,Ae=0;Ae<j.length;Ae++){var be=oh(j[Ae],4),k=be[0],q=be[1],z=be[2],$=be[3];se.push(k,q,z),$!=null&&($===0?(he++,fe.length<1&&fe.push(Ae)):$<255&&(G=!0))}if(G||he>1){H=!0,fe=void 0;var J=I*V;te=new Uint8Array(J);for(var re=new DataView(S.buffer),ce=0;ce<J;ce++){var ue=Xc(re,ce,W),ve=oh(j[ue],4)[3];te[ce]=ve}}else he===0&&(fe=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:H?8:void 0,colorBytes:S,alphaBytes:te,needSMask:H,palette:se,mask:fe}}(a):c===2||c===4?function(K){for(var I=K.data,V=K.width,S=K.height,j=K.channels,W=K.depth,H=j===2?"DeviceGray":"DeviceRGB",se=j-1,fe=V*S,te=se,G=fe*te,he=1*fe,Ae=Math.ceil(G*W/8),be=Math.ceil(he*W/8),k=new Uint8Array(Ae),q=new Uint8Array(be),z=new DataView(I.buffer),$=new DataView(k.buffer),J=new DataView(q.buffer),re=!1,ce=0;ce<fe;ce++){for(var ue=ce*j,ve=0;ve<te;ve++)wd($,Xc(z,ue+ve,W),ce*te+ve,W);var Ne=Xc(z,ue+te,W);Ne<(1<<W)-1&&(re=!0),wd(J,Ne,1*ce,W)}return{colorSpace:H,colorsPerPixel:se,sMaskBitsPerComponent:re?W:void 0,colorBytes:k,alphaBytes:q,needSMask:re}}(a):function(K){var I=K.data,V=K.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:V,colorsPerPixel:V==="DeviceGray"?1:3,colorBytes:I instanceof Uint16Array?function(S){for(var j=S.length,W=new Uint8Array(2*j),H=new DataView(W.buffer,W.byteOffset,W.byteLength),se=0;se<j;se++)H.setUint16(2*se,S[se],!1);return W}(I):I,needSMask:!1}}(a);var b,v,p,N=i,L=N.colorSpace,E=N.colorsPerPixel,_=N.sMaskBitsPerComponent,U=N.colorBytes,B=N.alphaBytes,F=N.needSMask,ee=N.palette,le=N.mask,oe=null;return r!==Be.API.image_compression.NONE&&typeof pu=="function"?(oe=function(K){var I;switch(K){case Be.API.image_compression.FAST:I=11;break;case Be.API.image_compression.MEDIUM:I=13;break;case Be.API.image_compression.SLOW:I=14;break;default:I=12}return I}(r),b=this.decode.FLATE_DECODE,v="/Predictor ".concat(oe," /Colors ").concat(E," /BitsPerComponent ").concat(d," /Columns ").concat(l),e=pd(U,Math.ceil(l*E*d/8),E,d,r),F&&(p=pd(B,Math.ceil(l*_/8),1,_,r))):(b=void 0,v=void 0,e=U,F&&(p=B)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:t,data:e,index:n,filter:b,decodeParameters:v,transparency:le,palette:ee,sMask:p,predictor:oe,width:l,height:s,bitsPerComponent:d,sMaskBitsPerComponent:_,colorSpace:L}}},function(e){e.processGIF89A=function(n,t,r,i){var a=new Xv(n),l=a.width,s=a.height,c=[];a.decodeAndBlitFrameRGBA(0,c);var f={data:c,width:l,height:s},d=new Jc(100).encode(f,100);return e.processJPEG.call(this,d,t,r,i)},e.processGIF87A=e.processGIF89A}(Be.API),_r.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var n=0;n<e;n++){var t=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[n]={red:i,green:r,blue:t,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},_r.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,n=this.width*this.height*4;if(n>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(n);try{this[e]()}catch(t){jt.log("bit decode error:"+t)}},_r.prototype.bit1=function(){var e,n=Math.ceil(this.width/8),t=n%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,i=0;i<n;i++)for(var a=this.datav.getUint8(this.pos++,!0),l=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var c=this.palette[a>>7-s&1];this.data[l+4*s]=c.blue,this.data[l+4*s+1]=c.green,this.data[l+4*s+2]=c.red,this.data[l+4*s+3]=255}t!==0&&(this.pos+=4-t)}},_r.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),n=e%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),l=r*this.width*4+2*i*4,s=a>>4,c=15&a,f=this.palette[s];if(this.data[l]=f.blue,this.data[l+1]=f.green,this.data[l+2]=f.red,this.data[l+3]=255,2*i+1>=this.width)break;f=this.palette[c],this.data[l+4]=f.blue,this.data[l+4+1]=f.green,this.data[l+4+2]=f.red,this.data[l+4+3]=255}n!==0&&(this.pos+=4-n)}},_r.prototype.bit8=function(){for(var e=this.width%4,n=this.height-1;n>=0;n--){for(var t=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*r;if(i<this.palette.length){var l=this.palette[i];this.data[a]=l.red,this.data[a+1]=l.green,this.data[a+2]=l.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}e!==0&&(this.pos+=4-e)}},_r.prototype.bit15=function(){for(var e=this.width%3,n=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(a&n)/n*255|0,s=(a>>5&n)/n*255|0,c=(a>>10&n)/n*255|0,f=a>>15?255:0,d=r*this.width*4+4*i;this.data[d]=c,this.data[d+1]=s,this.data[d+2]=l,this.data[d+3]=f}this.pos+=e}},_r.prototype.bit16=function(){for(var e=this.width%3,n=parseInt("11111",2),t=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var l=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(l&n)/n*255|0,c=(l>>5&t)/t*255|0,f=(l>>11)/n*255|0,d=i*this.width*4+4*a;this.data[d]=f,this.data[d+1]=c,this.data[d+2]=s,this.data[d+3]=255}this.pos+=e}},_r.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),l=n*this.width*4+4*t;this.data[l]=a,this.data[l+1]=i,this.data[l+2]=r,this.data[l+3]=255}this.pos+=this.width%4}},_r.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var n=this.bottom_up?e:this.height-1-e,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+4*t;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=l}},_r.prototype.getData=function(){return this.data},function(e){e.processBMP=function(n,t,r,i){var a=new _r(n,!1),l=a.width,s=a.height,c={data:a.getData(),width:l,height:s},f=new Jc(100).encode(c,100);return e.processJPEG.call(this,f,t,r,i)}}(Be.API),_d.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(n,t,r,i){var a=new _d(n),l=a.width,s=a.height,c={data:a.getData(),width:l,height:s},f=new Jc(100).encode(c,100);return e.processJPEG.call(this,f,t,r,i)}}(Be.API),Be.API.processRGBA=function(e,n,t){for(var r=e.data,i=r.length,a=new Uint8Array(i/4*3),l=new Uint8Array(i/4),s=0,c=0,f=0;f<i;f+=4){var d=r[f],b=r[f+1],v=r[f+2],p=r[f+3];a[s++]=d,a[s++]=b,a[s++]=v,l[c++]=p}var N=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(l),data:N,index:n,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Be.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canad
169a)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Ga=Be.API,cl=Ga.getCharWidthsArray=function(e,n){var t,r,i=(n=n||{}).font||this.internal.getFont(),a=n.fontSize||this.internal.getFontSize(),l=n.charSpace||this.internal.getCharSpace(),s=n.widths?n.widths:i.metadata.Unicode.widths,c=s.fof?s.fof:1,f=n.kerning?n.kerning:i.metadata.Unicode.kerning,d=f.fof?f.fof:1,b=n.doKerning!==!1,v=0,p=e.length,N=0,L=s[0]||c,E=[];for(t=0;t<p;t++)r=e.charCodeAt(t),typeof i.metadata.widthOfString=="function"?E.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+l*(1e3/a)||0)/1e3):(v=b&&Ct(f[r])==="object"&&!isNaN(parseInt(f[r][N],10))?f[r][N]/d:0,E.push((s[r]||L)/c+v)),N=r;return E},fd=Ga.getStringUnitWidth=function(e,n){var t=(n=n||{}).fontSize||this.internal.getFontSize(),r=n.font||this.internal.getFont(),i=n.charSpace||this.internal.getCharSpace();return Ga.processArabic&&(e=Ga.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,t,i)/t:cl.apply(this,arguments).reduce(function(a,l){return a+l},0)},hd=function(e,n,t,r){for(var i=[],a=0,l=e.length,s=0;a!==l&&s+n[a]<t;)s+=n[a],a++;i.push(e.slice(0,a));var c=a;for(s=0;a!==l;)s+n[a]>r&&(i.push(e.slice(c,a)),s=0,c=a),s+=n[a],a++;return c!==a&&i.push(e.slice(c,a)),i},dd=function(e,n,t){t||(t={});var r,i,a,l,s,c,f,d=[],b=[d],v=t.textIndent||0,p=0,N=0,L=e.split(" "),E=cl.apply(this,[" ",t])[0];if(c=t.lineIndent===-1?L[0].length+2:t.lineIndent||0){var _=Array(c).join(" "),U=[];L.map(function(F){(F=F.split(/\s*\n/)).length>1?U=U.concat(F.map(function(ee,le){return(le&&ee.length?`
170`:"")+ee})):U.push(F[0])}),L=U,c=fd.apply(this,[_,t])}for(a=0,l=L.length;a<l;a++){var B=0;if(r=L[a],c&&r[0]==`
171`&&(r=r.substr(1),B=1),v+p+(N=(i=cl.apply(this,[r,t])).reduce(function(F,ee){return F+ee},0))>n||B){if(N>n){for(s=hd.apply(this,[r,i,n-(v+p),n]),d.push(s.shift()),d=[s.pop()];s.length;)b.push([s.shift()]);N=i.slice(r.length-(d[0]?d[0].length:0)).reduce(function(F,ee){return F+ee},0)}else d=[r];b.push(d),v=N+c,p=E}else d.push(r),v+=p+N,p=E}return f=c?function(F,ee){return(ee?_:"")+F.join(" ")}:function(F){return F.join(" ")},b.map(f)},Ga.splitTextToSize=function(e,n,t){var r,i=(t=t||{}).fontSize||this.internal.getFontSize(),a=(function(d){if(d.widths&&d.kerning)return{widths:d.widths,kerning:d.kerning};var b=this.internal.getFont(d.fontName,d.fontStyle),v="Unicode";return b.metadata[v]?{widths:b.metadata[v].widths||{0:1},kerning:b.metadata[v].kerning||{}}:{font:b.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var l=1*this.internal.scaleFactor*n/i;a.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=t.lineIndent;var s,c,f=[];for(s=0,c=r.length;s<c;s++)f=f.concat(dd.apply(this,[r[s],l,a]));return f},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var n="0123456789abcdef",t="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[t[a]]=n[a],i[n[a]]=t[a];var l=function(v){return"0x"+parseInt(v,10).toString(16)},s=e.__fontmetrics__.compress=function(v){var p,N,L,E,_=["{"];for(var U in v){if(p=v[U],isNaN(parseInt(U,10))?N="'"+U+"'":(U=parseInt(U,10),N=(N=l(U).slice(2)).slice(0,-1)+i[N.slice(-1)]),typeof p=="number")p<0?(L=l(p).slice(3),E="-"):(L=l(p).slice(2),E=""),L=E+L.slice(0,-1)+i[L.slice(-1)];
vendor: 1,105 bytes, line 171
171else{if(Ct(p)!=="object")throw new Error("Don't know what to do with value type "+Ct(p)+".");L=s(p)}_.push(N+L)}return _.push("}"),_.join("")},c=e.__fontmetrics__.uncompress=function(v){if(typeof v!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,N,L,E,_={},U=1,B=_,F=[],ee="",le="",oe=v.length-1,K=1;K<oe;K+=1)(E=v[K])=="'"?p?(L=p.join(""),p=void 0):p=[]:p?p.push(E):E=="{"?(F.push([B,L]),B={},L=void 0):E=="}"?((N=F.pop())[0][N[1]]=B,L=void 0,B=N[0]):E=="-"?U=-1:L===void 0?r.hasOwnProperty(E)?(ee+=r[E],L=parseInt(ee,16)*U,U=1,ee=""):ee+=E:r.hasOwnProperty(E)?(le+=r[E],B[L]=parseInt(le,16)*U,U=1,L=void 0,le=""):le+=E;return _},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},b
vendor: 14,727 bytes, line 171
171={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'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":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'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:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'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":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(
vendor: 45,108 bytes, lines 171-199
171v){var p=v.font,N=b.Unicode[p.postScriptName];N&&(p.metadata.Unicode={},p.metadata.Unicode.widths=N.widths,p.metadata.Unicode.kerning=N.kerning);var L=d.Unicode[p.postScriptName];L&&(p.metadata.Unicode.encoding=L,p.encoding=L.codePages[0])}])}(Be.API),function(e){var n=function(t){for(var r=t.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=t.charCodeAt(a);return i};e.API.events.push(["addFont",function(t){var r=void 0,i=t.font,a=t.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(l,s){s=/^\x00\x01\x00\x00/.test(s)?n(s):n(gl(s)),l.metadata=e.API.TTFFont.open(s),l.metadata.Unicode=l.metadata.Unicode||{encoding:{},kerning:{},widths:[]},l.metadata.glyIdsUsed=[0]})(i,r)}}])}(Be),Be.API.addSvgAsImage=function(e,n,t,r,i,a,l,s){if(isNaN(n)||isNaN(t))throw jt.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw jt.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=i;var f=c.getContext("2d");f.fillStyle="#fff",f.fillRect(0,0,c.width,c.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},b=this;return(Je.canvg?Promise.resolve(Je.canvg):xc(()=>import("./index.es-DVqNJz2u.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))).catch(function(v){return Promise.reject(new Error("Could not load canvg: "+v))}).then(function(v){return v.default?v.default:v}).then(function(v){return v.fromString(f,e,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(v){return v.render(d)}).then(function(){b.addImage(c.toDataURL("image/jpeg",1),n,t,r,i,l,s)})},Be.API.putTotalPages=function(e){var n,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(e,"g"),t=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(n,t);return this},Be.API.viewerPreferences=function(e,n){var t;e=e||{},n=n||!1;var r,i,a,l={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(l),c=[],f=0,d=0,b=0;function v(N,L){var E,_=!1;for(E=0;E<N.length;E+=1)N[E]===L&&(_=!0);return _}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(l)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,e==="reset"||n===!0){var p=s.length;for(b=0;b<p;b+=1)t[s[b]].value=t[s[b]].defaultValue,t[s[b]].explicitSet=!1}if(Ct(e)==="object"){for(i in e)if(a=e[i],v(s,i)&&a!==void 0){if(t[i].type==="boolean"&&typeof a=="boolean")t[i].value=a;else if(t[i].type==="name"&&v(t[i].valueSet,a))t[i].value=a;else if(t[i].type==="integer"&&Number.isInteger(a))t[i].value=a;else if(t[i].type==="array"){for(f=0;f<a.length;f+=1)if(r=!0,a[f].length===1&&typeof a[f][0]=="number")c.push(String(a[f]-1));else if(a[f].length>1){for(d=0;d<a[f].length;d+=1)typeof a[f][d]!="number"&&(r=!1);r===!0&&c.push([a[f][0]-1,a[f][1]-1].join(" "))}t[i].value="["+c.join(" ")+"]"}else t[i].value=t[i].defaultValue;t[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var N,L=[];for(N in t)t[N].explicitSet===!0&&(t[N].type==="name"?L.push("/"+N+" /"+t[N].value):L.push("/"+N+" "+t[N].value));L.length!==0&&this.internal.write(`/ViewerPreferences
172<<
173`+L.join(`
174`)+`
175>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},Be.API.addMetadata=function(e,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceUri:n??"http://jspdf.default.namespaceuri/",rawXml:typeof n=="boolean"&&n},this.internal.events.subscribe("putCatalog",Qv),this.internal.events.subscribe("postPutResources",Jv)),this},function(e){var n=e.API,t=n.pdfEscape16=function(a,l){for(var s,c=l.metadata.Unicode.widths,f=["","0","00","000","0000"],d=[""],b=0,v=a.length;b<v;++b){if(s=l.metadata.characterToGlyph(a.charCodeAt(b)),l.metadata.glyIdsUsed.push(s),l.metadata.toUnicode[s]=a.charCodeAt(b),c.indexOf(s)==-1&&(c.push(s),c.push([parseInt(l.metadata.widthOfGlyph(s),10)])),s=="0")return d.join("");s=s.toString(16),d.push(f[4-s.length],s)}return d.join("")},r=function(a){var l,s,c,f,d,b,v;for(d=`/CIDInit /ProcSet findresource begin
17612 dict begin
177begincmap
178/CIDSystemInfo <<
179  /Registry (Adobe)
180  /Ordering (UCS)
181  /Supplement 0
182>> def
183/CMapName /Adobe-Identity-UCS def
184/CMapType 2 def
1851 begincodespacerange
186<0000><ffff>
187endcodespacerange`,c=[],b=0,v=(s=Object.keys(a).sort(function(p,N){return p-N})).length;b<v;b++)l=s[b],c.length>=100&&(d+=`
188`+c.length+` beginbfchar
189`+c.join(`
190`)+`
191endbfchar`,c=[]),a[l]!==void 0&&a[l]!==null&&typeof a[l].toString=="function"&&(f=("0000"+a[l].toString(16)).slice(-4),l=("0000"+(+l).toString(16)).slice(-4),c.push("<"+l+"><"+f+">"));return c.length&&(d+=`
192`+c.length+` beginbfchar
193`+c.join(`
194`)+`
195endbfchar
196`),d+`endcmap
197CMapName currentdict /CMap defineresource pop
198end
199end`};n.events.push(["putFont",function(a){(function(l){var s=l.font,c=l.out,f=l.newObject,d=l.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="Identity-H"){for(var b=s.metadata.Unicode.widths,v=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),p="",N=0;N<v.length;N++)p+=String.fromCharCode(v[N]);var L=f();d({data:p,addLength1:!0,objectId:L}),c("endobj");var E=f();d({data:r(s.metadata.toUnicode),addLength1:!0,objectId:E}),c("endobj");var _=f();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+Xa(s.fontName)),c("/FontFile2 "+L+" 0 R"),c("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),c("/Flags "+s.metadata.flags),c("/StemV "+s.metadata.stemV),c("/ItalicAngle "+s.metadata.italicAngle),c("/Ascent "+s.metadata.ascender),c("/Descent "+s.metadata.decender),c("/CapHeight "+s.metadata.capHeight),c(">>"),c("endobj");var U=f();c("<<"),c("/Type /Font"),c("/BaseFont /"+Xa(s.fontName)),c("/FontDescriptor "+_+" 0 R"),c("/W "+e.API.PDFObject.convert(b)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+s.encoding+")"),c(">>"),c(">>"),c("endobj"),s.objectNumber=f(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+E+" 0 R"),c("/BaseFont /"+Xa(s.fontName)),c("/Encoding /"+s.encoding),c("/DescendantFonts ["+U+" 0 R]"),c(">>"),c("endobj"),s.isAlreadyPutted=!0}})(a)}]),n.events.push(["putFont",function(a){(function(l){var s=l.font,c=l.out,f=l.newObject,d=l.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var b=s.metadata.rawData,v="",p=0;p<b.length;p++)v+=String.fromCharCode(b[p]);var N=f();d({data:v,addLength1:!0,objectId:N}),c("endobj");var L=f();d({data:r(s.metadata.toUnicode),addLength1:!0,objectId:L}),c("endobj");var E=f();c("<<"),c("/Descent "+s.metadata.decender),c("/CapHeight "+s.metadata.capHeight),c("/StemV "+s.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+N+" 0 R"),c("/Flags 96"),c("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),c("/FontName /"+Xa(s.fontName)),c("/ItalicAngle "+s.metadata.italicAngle),c("/Ascent "+s.metadata.ascender),c(">>"),c("endobj"),s.objectNumber=f();for(var _=0;_<s.metadata.hmtx.widths.length;_++)s.metadata.hmtx.widths[_]=parseInt(s.metadata.hmtx.widths[_]*(1e3/s.metadata.head.unitsPerEm));c("<</Subtype/TrueType/Type/Font/ToUnicode "+L+" 0 R/BaseFont/"+Xa(s.fontName)+"/FontDescriptor "+E+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),c("endobj"),s.isAlreadyPutted=!0}})(a)}]);var i=function(a){var l,s=a.text||"",c=a.x,f=a.y,d=a.options||{},b=a.mutex||{},v=b.pdfEscape,p=b.activeFontKey,N=b.fonts,L=p,E="",_=0,U="",B=N[L].encoding;if(N[L].encoding!=="Identity-H")return{text:s,x:c,y:f,options:d,mutex:b};for(U=s,L=p,Array.isArray(s)&&(U=s[0]),_=0;_<U.length;_+=1)N[L].metadata.hasOwnProperty("cmap")&&(l=N[L].metadata.cmap.unicode.codeMap[U[_].charCodeAt(0)]),l||U[_].charCodeAt(0)<256&&N[L].metadata.hasOwnProperty("Unicode")?E+=U[_]:E+="";var F="";return parseInt(L.slice(1))<14||B==="WinAnsiEncoding"?F=v(E,L).split("").map(function(ee){return ee.charCodeAt(0).toString(16)}).join(""):B==="Identity-H"&&(F=t(E,N[L])),b.isHex=!0,{text:F,x:c,y:f,options:d,mutex:b}};n.events.push(["postProcessText",function(a){var l=a.text||"",s=[],c={text:l,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(l)){var f=0;for(f=0;f<l.length;f+=1)Array.isArray(l[f])&&l[f].length===3?s.push([i(Object.assign({},c,{text:l[f][0]})).text,l[f][1],l[f][2]]):s.push(i(Object.assign({},c,{text:l[f]})).text);a.text=s}else a.text=i(Object.assign({},c,{text:l})).text}])}(Be),function(e){var n=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(t){return n.call(this),this.internal.vFS[t]!==void 0},e.addFileToVFS=function(t,r){return n.call(this),this.internal.vFS[t]=r,this},e.getFileFromVFS=function(t){return n.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}}(Be.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var i,a,l,s,c,f,d,b=n,v=[[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]],N={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},L={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},E=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],_=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)$/),U=!1,B=0;this.__bidiEngine__={};var F=function(S){var j=S.charCodeAt(),W=j>>8,H=L[W];return H!==void 0?b[256*H+(255&j)]:W===252||W===253?"AL":_.test(W)?"L":W===8?"R":"N"},ee=function(S){for(var j,W=0;W<S.length;W++){if((j=F(S.charAt(W)))==="L")return!1;if(j==="R")return!0}return!1},le=function(S,j,W,H){var se,fe,te,G,he=j[H];switch(he){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":U=!1;break;case"N":case"AN":break;case"EN":U&&(he="AN");break;case"AL":U=!0,he="R";break;case"WS":case"BN":he="N";break;case"CS":H<1||H+1>=j.length||(se=W[H-1])!=="EN"&&se!=="AN"||(fe=j[H+1])!=="EN"&&fe!=="AN"?he="N":U&&(fe="AN"),he=fe===se?fe:"N";break;case"ES":he=(se=H>0?W[H-1]:"B")==="EN"&&H+1<j.length&&j[H+1]==="EN"?"EN":"N";break;case"ET":if(H>0&&W[H-1]==="EN"){he="EN";break}if(U){he="N";break}for(te=H+1,G=j.length;te<G&&j[te]==="ET";)te++;he=te<G&&j[te]==="EN"?"EN":"N";break;case"NSM":if(l&&!s){for(G=j.length,te=H+1;te<G&&j[te]==="NSM";)te++;if(te<G){var Ae=S[H],be=Ae>=1425&&Ae<=2303||Ae===64286;if(se=j[te],be&&(se==="R"||se==="AL")){he="R";break}}}he=H<1||(se=j[H-1])==="B"?"N":W[H-1];break;case"B":U=!1,i=!0,he=B;break;case"S":a=!0,he="N"}return he},oe=function(S,j,W){var H=S.split("");return W&&K(H,W,{hiLevel:B}),H.reverse(),j&&j.reverse(),H.join("")},K=function(S,j,W){var H,se,fe,te,G,he=-1,Ae=S.length,be=0,k=[],q=B?p:v,z=[];for(U=!1,i=!1,a=!1,se=0;se<Ae;se++)z[se]=F(S[se]);for(fe=0;fe<Ae;fe++){if(G=be,k[fe]=le(S,z,k,fe),H=240&(be=q[G][N[k[fe]]]),be&=15,j[fe]=te=q[be][5],H>0)if(H===16){for(se=he;se<fe;se++)j[se]=1;he=-1}else he=-1;if(q[be][6])he===-1&&(he=fe);else if(he>-1){for(se=he;se<fe;se++)j[se]=te;he=-1}z[fe]==="B"&&(j[fe]=0),W.hiLevel|=te}a&&function($,J,re){for(var ce=0;ce<re;ce++)if($[ce]==="S"){J[ce]=B;for(var ue=ce-1;ue>=0&&$[ue]==="WS";ue--)J[ue]=B}}(z,j,Ae)},I=function(S,j,W,H,se){if(!(se.hiLevel<S)){if(S===1&&B===1&&!i)return j.reverse(),void(W&&W.reverse());for(var fe,te,G,he,Ae=j.length,be=0;be<Ae;){if(H[be]>=S){for(G=be+1;G<Ae&&H[G]>=S;)G++;for(he=be,te=G-1;he<te;he++,te--)fe=j[he],j[he]=j[te],j[te]=fe,W&&(fe=W[he],W[he]=W[te],W[te]=fe);be=G}be++}}},V=function(S,j,W){var H=S.split(""),se={hiLevel:B};return W||(W=[]),K(H,W,se),function(fe,te,G){if(G.hiLevel!==0&&d)for(var he,Ae=0;Ae<fe.length;Ae++)te[Ae]===1&&(he=E.indexOf(fe[Ae]))>=0&&(fe[Ae]=E[he+1])}(H,W,se),I(2,H,j,W,se),I(1,H,j,W,se),H.join("")};return this.__bidiEngine__.doBidiReorder=function(S,j,W){if(function(se,fe){if(fe)for(var te=0;te<se.length;te++)fe[te]=te;s===void 0&&(s=ee(se)),f===void 0&&(f=ee(se))}(S,j),l||!c||f)if(l&&c&&s^f)B=s?1:0,S=oe(S,j,W);else if(!l&&c&&f)B=s?1:0,S=V(S,j,W),S=oe(S,j);else if(!l||s||c||f){if(l&&!c&&s^f)S=oe(S,j),s?(B=0,S=V(S,j,W)):(B=1,S=V(S,j,W),S=oe(S,j));else if(l&&s&&!c&&f)B=1,S=V(S,j,W),S=oe(S,j);else if(!l&&!c&&s^f){var H=d;s?(B=1,S=V(S,j,W),B=0,d=!1,S=V(S,j,W),d=H):(B=0,S=V(S,j,W),S=oe(S,j),B=1,d=!1,S=V(S,j,W),d=H,S=oe(S,j))}}else B=0,S=V(S,j,W);else B=s?1:0,S=V(S,j,W);return S},this.__bidiEngine__.setOptions=function(S){S&&(l=S.isInputVisual,c=S.isOutputVisual,s=S.isInputRtl,f=S.isOutputRtl,d=S.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var n=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],t=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var i=r.text;r.x,r.y;var a=r.options||{};r.mutex,a.lang;var l=[];if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,t.setOptions(a),Object.prototype.toString.call(i)==="[object Array]"){var s=0;for(l=[],s=0;s<i.length;s+=1)Object.prototype.toString.call(i[s])==="[object Array]"?l.push([t.doBidiReorder(i[s][0]),i[s][1],i[s][2]]):l.push([t.doBidiReorder(i[s])]);r.text=l}else r.text=t.doBidiReorder(i);t.setOptions({isInputVisual:!0})}])}(Be),Be.API.TTFFont=function(){function e(n){var t;if(this.rawData=n,t=this.contents=new Bi(n),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new pb(this),this.registerTTF()}return e.open=function(n){return new e(n)},e.prototype.parse=function(){return this.directory=new eb(this.contents),this.head=new nb(this),this.name=new sb(this),this.cmap=new e0(this),this.toUnicode={},this.hhea=new rb(this),this.maxp=new lb(this),this.hmtx=new cb(this),this.post=new ab(this),this.os2=new ib(this),this.loca=new db(this),this.glyf=new ub(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var n,t,r,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var l,s,c,f;for(f=[],l=0,s=(c=this.bbox).length;l<s;l++)n=c[l],f.push(Math.round(n*this.scaleFactor));return f}).call(this),this.stemV=0,this.post.exists?(r=255&(i=this.post.italic_angle),32768&(t=i>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+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=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(n){var t;return((t=this.cmap.unicode)!=null?t.codeMap[n]:void 0)||0},e.prototype.widthOfGlyph=function(n){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(n).advance*t},e.prototype.widthOfString=function(n,t,r){var i,a,l,s;for(l=0,a=0,s=(n=""+n).length;0<=s?a<s:a>s;a=0<=s?++a:--a)i=n.charCodeAt(a),l+=this.widthOfGlyph(this.characterToGlyph(i))+r*(1e3/t)||0;return l*(t/1e3)},e.prototype.lineHeight=function(n,t){var r;return t==null&&(t=!1),r=t?this.lineGap:0,(this.ascender+r-this.decender)/1e3*n},e}();var kr,Bi=function(){function e(n){this.data=n??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(n){return this.data[this.pos++]=n},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(n){return this.writeByte(n>>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt32=function(){var n;return(n=this.readUInt32())>=2147483648?n-4294967296:n},e.prototype.writeInt32=function(n){return n<0&&(n+=4294967296),this.writeUInt32(n)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(n){return this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt16=function(){var n;return(n=this.readUInt16())>=32768?n-65536:n},e.prototype.writeInt16=function(n){return n<0&&(n+=65536),this.writeUInt16(n)},e.prototype.readString=function(n){var t,r;for(r=[],t=0;0<=n?t<n:t>n;t=0<=n?++t:--t)r[t]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(n){var t,r,i;for(i=[],t=0,r=n.length;0<=r?t<r:t>r;t=0<=r?++t:--t)i.push(this.writeByte(n.charCodeAt(t)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(n){return this.writeInt16(n)},e.prototype.readLongLong=function(){var n,t,r,i,a,l,s,c;return n=this.readByte(),t=this.readByte(),r=this.readByte(),i=this.readByte(),a=this.readByte(),l=this.readByte(),s=this.readByte(),c=this.readByte(),128&n?-1*(72057594037927940*(255^n)+281474976710656*(255^t)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^a)+65536*(255^l)+256*(255^s)+(255^c)+1):72057594037927940*n+281474976710656*t+1099511627776*r+4294967296*i+16777216*a+65536*l+256*s+c},e.prototype.writeLongLong=function(n){var t,r;return t=Math.floor(n/4294967296),r=4294967295&n,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(n){return this.writeInt32(n)},e.prototype.read=function(n){var t,r;for(t=[],r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)t.push(this.readByte());return t},e.prototype.write=function(n){var t,r,i,a;for(a=[],r=0,i=n.length;r<i;r++)t=n[r],a.push(this.writeByte(t));return a},e}(),eb=function(){var e;function n(t){var r,i,a;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},i=0,a=this.tableCount;0<=a?i<a:i>a;i=0<=a?++i:--i)r={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[r.tag]=r}return n.prototype.encode=function(t){var r,i,a,l,s,c,f,d,b,v,p,N,L;for(L in p=Object.keys(t).length,c=Math.log(2),b=16*Math.floor(Math.log(p)/c),l=Math.floor(b/c),d=16*p-b,(i=new Bi).writeInt(this.scalarType),i.writeShort(p),i.writeShort(b),i.writeShort(l),i.writeShort(d),a=16*p,f=i.pos+a,s=null,N=[],t)for(v=t[L],i.writeString(L),i.writeInt(e(v)),i.writeInt(f),i.writeInt(v.length),N=N.concat(v),L==="head"&&(s=f),f+=v.length;f%4;)N.push(0),f++;return i.write(N),r=2981146554-e(i.data),i.pos=s+8,i.writeUInt32(r),i.data},e=function(t){var r,i,a,l;for(t=t0.call(t);t.length%4;)t.push(0);for(a=new Bi(t),i=0,r=0,l=t.length;r<l;r=r+=4)i+=a.readUInt32();return 4294967295&i},n}(),tb={}.hasOwnProperty,Gr=function(e,n){for(var t in n)tb.call(n,t)&&(e[t]=n[t]);function r(){this.constructor=e}return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e};kr=function(){function e(n){var t;this.file=n,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var nb=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Gr(e,kr),e.prototype.tag="head",e.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.revision=n.readInt(),this.checkSumAdjustment=n.readInt(),this.magicNumber=n.readInt(),this.flags=n.readShort(),this.unitsPerEm=n.readShort(),this.created=n.readLongLong(),this.modified=n.readLongLong(),this.xMin=n.readShort(),this.yMin=n.readShort(),this.xMax=n.readShort(),this.yMax=n.readShort(),this.macStyle=n.readShort(),this.lowestRecPPEM=n.readShort(),this.fontDirectionHint=n.readShort(),this.indexToLocFormat=n.readShort(),this.glyphDataFormat=n.readShort()},e.prototype.encode=function(n){var t;return(t=new Bi).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(n),t.writeShort(this.glyphDataFormat),t.data},e}(),xd=function(){function e(n,t){var r,i,a,l,s,c,f,d,b,v,p,N,L,E,_,U,B;switch(this.platformID=n.readUInt16(),this.encodingID=n.readShort(),this.offset=t+n.readInt(),b=n.pos,n.pos=this.offset,this.format=n.readUInt16(),this.length=n.readUInt16(),this.language=n.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(c=0;c<256;++c)this.codeMap[c]=n.readByte();break;case 4:for(p=n.readUInt16(),v=p/2,n.pos+=6,a=function(){var F,ee;for(ee=[],c=F=0;0<=v?F<v:F>v;c=0<=v?++F:--F)ee.push(n.readUInt16());return ee}(),n.pos+=2,L=function(){var F,ee;for(ee=[],c=F=0;0<=v?F<v:F>v;c=0<=v?++F:--F)ee.push(n.readUInt16());return ee}(),f=function(){var F,ee;for(ee=[],c=F=0;0<=v?F<v:F>v;c=0<=v?++F:--F)ee.push(n.readUInt16());return ee}(),d=function(){var F,ee;for(ee=[],c=F=0;0<=v?F<v:F>v;c=0<=v?++F:--F)ee.push(n.readUInt16());return ee}(),i=(this.length-n.pos+this.offset)/2,s=function(){var F,ee;for(ee=[],c=F=0;0<=i?F<i:F>i;c=0<=i?++F:--F)ee.push(n.readUInt16());return ee}(),c=_=0,B=a.length;_<B;c=++_)for(E=a[c],r=U=N=L[c];N<=E?U<=E:U>=E;r=N<=E?++U:--U)d[c]===0?l=r+f[c]:(l=s[d[c]/2+(r-N)-(v-c)]||0)!==0&&(l+=f[c]),this.codeMap[r]=65535&l}n.pos=b}return e.encode=function(n,t){var r,i,a,l,s,c,f,d,b,v,p,N,L,E,_,U,B,F,ee,le,oe,K,I,V,S,j,W,H,se,fe,te,G,he,Ae,be,k,q,z,$,J,re,ce,ue,ve,Ne,Pe;switch(H=new Bi,l=Object.keys(n).sort(function(ke,qe){return ke-qe}),t){case"macroman":for(L=0,E=function(){var ke=[];for(N=0;N<256;++N)ke.push(0);return ke}(),U={0:0},a={},se=0,he=l.length;se<he;se++)U[ue=n[i=l[se]]]==null&&(U[ue]=++L),a[i]={old:n[i],new:U[n[i]]},E[i]=U[n[i]];return H.writeUInt16(1),H.writeUInt16(0),H.writeUInt32(12),H.writeUInt16(0),H.writeUInt16(262),H.writeUInt16(0),H.write(E),{charMap:a,subtable:H.data,maxGlyphID:L+1};case"unicode":for(j=[],b=[],B=0,U={},r={},_=f=null,fe=0,Ae=l.length;fe<Ae;fe++)U[ee=n[i=l[fe]]]==null&&(U[ee]=++B),r[i]={old:ee,new:U[ee]},s=U[ee]-i,_!=null&&s===f||(_&&b.push(_),j.push(i),f=s),_=i;for(_&&b.push(_),b.push(65535),j.push(65535),V=2*(I=j.length),K=2*Math.pow(Math.log(I)/Math.LN2,2),v=Math.log(K/2)/Math.LN2,oe=2*I-K,c=[],le=[],p=[],N=te=0,be=j.length;te<be;N=++te){if(S=j[N],d=b[N],S===65535){c.push(0),le.push(0);break}if(S-(W=r[S].new)>=32768)for(c.push(0),le.push(2*(p.length+I-N)),i=G=S;S<=d?G<=d:G>=d;i=S<=d?++G:--G)p.push(r[i].new);else c.push(W-S),le.push(0)}for(H.writeUInt16(3),H.writeUInt16(1),H.writeUInt32(12),H.writeUInt16(4),H.writeUInt16(16+8*I+2*p.length),H.writeUInt16(0),H.writeUInt16(V),H.writeUInt16(K),H.writeUInt16(v),H.writeUInt16(oe),re=0,k=b.length;re<k;re++)i=b[re],H.writeUInt16(i);for(H.writeUInt16(0),ce=0,q=j.length;ce<q;ce++)i=j[ce],H.writeUInt16(i);for(ve=0,z=c.length;ve<z;ve++)s=c[ve],H.writeUInt16(s);for(Ne=0,$=le.length;Ne<$;Ne++)F=le[Ne],H.writeUInt16(F);for(Pe=0,J=p.length;Pe<J;Pe++)L=p[Pe],H.writeUInt16(L);return{charMap:r,subtable:H.data,maxGlyphID:B+1}}},e}(),e0=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Gr(e,kr),e.prototype.tag="cmap",e.prototype.parse=function(n){var t,r,i;for(n.pos=this.offset,this.version=n.readUInt16(),i=n.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=i?r<i:r>i;r=0<=i?++r:--r)t=new xd(n,this.offset),this.tables.push(t),t.isUnicode&&this.unicode==null&&(this.unicode=t);return!0},e.encode=function(n,t){var r,i;return t==null&&(t="macroman"),r=xd.encode(n,t),(i=new Bi).writeUInt16(0),i.writeUInt16(1),r.table=i.data.concat(r.subtable),r},e}(),rb=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Gr(e,kr),e.prototype.tag="hhea",e.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.ascender=n.readShort(),this.decender=n.readShort(),this.lineGap=n.readShort(),this.advanceWidthMax=n.readShort(),this.minLeftSideBearing=n.readShort(),this.minRightSideBearing=n.readShort(),this.xMaxExtent=n.readShort(),this.caretSlopeRise=n.readShort(),this.caretSlopeRun=n.readShort(),this.caretOffset=n.readShort(),n.pos+=8,this.metricDataFormat=n.readShort(),this.numberOfMetrics=n.readUInt16()},e}(),ib=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Gr(e,kr),e.prototype.tag="OS/2",e.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=function(){var t,r;for(r=[],t=0;t<10;++t)r.push(n.readByte());return r}(),this.charRange=function(){var t,r;for(r=[],t=0;t<4;++t)r.push(n.readInt());return r}(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),this.version>0&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=function(){var t,r;for(r=[],t=0;t<2;t=++t)r.push(n.readInt());return r}(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},e}(),ab=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Gr(e,kr),e.prototype.tag="post",e.prototype.parse=function(n){var t,r,i;switch(n.pos=this.offset,this.format=n.readInt(),this.italicAngle=n.readInt(),this.underlinePosition=n.readShort(),this.underlineThickness=n.readShort(),this.isFixedPitch=n.readInt(),this.minMemType42=n.readInt(),this.maxMemType42=n.readInt(),this.minMemType1=n.readInt(),this.maxMemType1=n.readInt(),this.format){case 65536:case 196608:break;case 131072:var a;for(r=n.readUInt16(),this.glyphNameIndex=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],i=[];n.pos<this.offset+this.length;)t=n.readByte(),i.push(this.names.push(n.readString(t)));return i;case 151552:return r=n.readUInt16(),this.offsets=n.read(r);case 262144:return this.map=(function(){var l,s,c;for(c=[],a=l=0,s=this.file.maxp.numGlyphs;0<=s?l<s:l>s;a=0<=s?++l:--l)c.push(n.readUInt32());return c}).call(this)}},e}(),ob=function(e,n){this.raw=e,this.length=e.length,this.platformID=n.platformID,this.encodingID=n.encodingID,this.languageID=n.languageID},sb=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Gr(e,kr),e.prototype.tag="name",e.prototype.parse=function(n){var t,r,i,a,l,s,c,f,d,b,v;for(n.pos=this.offset,n.readShort(),t=n.readShort(),s=n.readShort(),r=[],a=0;0<=t?a<t:a>t;a=0<=t?++a:--a)r.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+s+n.readShort()});for(c={},a=d=0,b=r.length;d<b;a=++d)i=r[a],n.pos=i.offset,f=n.readString(i.length),l=new ob(f,i),c[v=i.nameID]==null&&(c[v]=[]),c[i.nameID].push(l);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},e}(),lb=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Gr(e,kr),e.prototype.tag="maxp",e.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.numGlyphs=n.readUInt16(),this.maxPoints=n.readUInt16(),this.maxContours=n.readUInt16(),this.maxCompositePoints=n.readUInt16(),this.maxComponentContours=n.readUInt16(),this.maxZones=n.readUInt16(),this.maxTwilightPoints=n.readUInt16(),this.maxStorage=n.readUInt16(),this.maxFunctionDefs=n.readUInt16(),this.maxInstructionDefs=n.readUInt16(),this.maxStackElements=n.readUInt16(),this.maxSizeOfInstructions=n.readUInt16(),this.maxComponentElements=n.readUInt16(),this.maxComponentDepth=n.readUInt16()},e}(),cb=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Gr(e,kr),e.prototype.tag="hmtx",e.prototype.parse=function(n){var t,r,i,a,l,s,c;for(n.pos=this.offset,this.metrics=[],t=0,s=this.file.hhea.numberOfMetrics;0<=s?t<s:t>s;t=0<=s?++t:--t)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var f,d;for(d=[],t=f=0;0<=i?f<i:f>i;t=0<=i?++f:--f)d.push(n.readInt16());return d}(),this.widths=(function(){var f,d,b,v;for(v=[],f=0,d=(b=this.metrics).length;f<d;f++)a=b[f],v.push(a.advance);return v}).call(this),r=this.widths[this.widths.length-1],c=[],t=l=0;0<=i?l<i:l>i;t=0<=i?++l:--l)c.push(this.widths.push(r));return c},e.prototype.forGlyph=function(n){return n in this.metrics?this.metrics[n]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[n-this.metrics.length]}},e}(),t0=[].slice,ub=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Gr(e,kr),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(n){var t,r,i,a,l,s,c,f,d,b;return n in this.cache?this.cache[n]:(a=this.file.loca,t=this.file.contents,r=a.indexOf(n),(i=a.lengthOf(n))===0?this.cache[n]=null:(t.pos=this.offset+r,l=(s=new Bi(t.read(i))).readShort(),f=s.readShort(),b=s.readShort(),c=s.readShort(),d=s.readShort(),this.cache[n]=l===-1?new hb(s,f,b,c,d):new fb(s,l,f,b,c,d),this.cache[n]))},e.prototype.encode=function(n,t,r){var i,a,l,s,c;for(l=[],a=[],s=0,c=t.length;s<c;s++)i=n[t[s]],a.push(l.length),i&&(l=l.concat(i.encode(r)));return a.push(l.length),{table:l,offsets:a}},e}(),fb=function(){function e(n,t,r,i,a,l){this.raw=n,this.numberOfContours=t,this.xMin=r,this.yMin=i,this.xMax=a,this.yMax=l,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),hb=function(){function e(n,t,r,i,a){var l,s;for(this.raw=n,this.xMin=t,this.yMin=r,this.xMax=i,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],l=this.raw;s=l.readShort(),this.glyphOffsets.push(l.pos),this.glyphIDs.push(l.readUInt16()),32&s;)l.pos+=1&s?4:2,128&s?l.pos+=8:64&s?l.pos+=4:8&s&&(l.pos+=2)}return e.prototype.encode=function(){var n,t,r;for(t=new Bi(t0.call(this.raw.data)),n=0,r=this.glyphIDs.length;n<r;++n)t.pos=this.glyphOffsets[n];return t.data},e}(),db=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Gr(e,kr),e.prototype.tag="loca",e.prototype.parse=function(n){var t,r;return n.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=t===0?(function(){var i,a;for(a=[],r=0,i=this.length;r<i;r+=2)a.push(2*n.readUInt16());return a}).call(this):(function(){var i,a;for(a=[],r=0,i=this.length;r<i;r+=4)a.push(n.readUInt32());return a}).call(this)},e.prototype.indexOf=function(n){return this.offsets[n]},e.prototype.lengthOf=function(n){return this.offsets[n+1]-this.offsets[n]}
199,e.prototype.encode=function(n,t){for(var r=new Uint32Array(this.offsets.length),i=0,a=0,l=0;l<r.length;++l)if(r[l]=i,a<t.length&&t[a]==l){++a,r[l]=i;var s=this.offsets[l],c=this.offsets[l+1]-s;c>0&&(i+=c)}for(var f=new Array(4*r.length),d=0;d<r.length;++d)f[4*d+3]=255&r[d],f[4*d+2]=(65280&r[d])>>8,f[4*d+1]=(16711680&r[d])>>16,f[4*d]=(4278190080&r[d])>>24;return f},e}(),pb=function(){function e(n){this.font=n,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var n,t,r,i,a;for(t in i=this.font.cmap.tables[0].codeMap,n={},a=this.subset)r=a[t],n[t]=i[r];return n},e.prototype.glyphsFor=function(n){var t,r,i,a,l,s,c;for(i={},l=0,s=n.length;l<s;l++)i[a=n[l]]=this.font.glyf.glyphFor(a);for(a in t=[],i)(r=i[a])!=null&&r.compound&&t.push.apply(t,r.glyphIDs);if(t.length>0)for(a in c=this.glyphsFor(t))r=c[a],i[a]=r;return i},e.prototype.encode=function(n,t){var r,i,a,l,s,c,f,d,b,v,p,N,L,E,_;for(i in r=e0.encode(this.generateCmap(),"unicode"),l=this.glyphsFor(n),p={0:0},_=r.charMap)p[(c=_[i]).old]=c.new;for(N in v=r.maxGlyphID,l)N in p||(p[N]=v++);return d=function(U){var B,F;for(B in F={},U)F[U[B]]=B;return F}(p),b=Object.keys(d).sort(function(U,B){return U-B}),L=function(){var U,B,F;for(F=[],U=0,B=b.length;U<B;U++)s=b[U],F.push(d[s]);return F}(),a=this.font.glyf.encode(l,L,p),f=this.font.loca.encode(a.offsets,L),E={cmap:this.font.cmap.raw(),glyf:a.table,loca:f,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(E["OS/2"]=this.font.os2.raw()),this.font.directory.encode(E)},e}();Be.API.PDFObject=function(){var e;function n(){}return e=function(t,r){return(Array(r+1).join("0")+t).slice(-r)},n.convert=function(t){var r,i,a,l;if(Array.isArray(t))return"["+function(){var s,c,f;for(f=[],s=0,c=t.length;s<c;s++)r=t[s],f.push(n.convert(r));return f}().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t!=null&&t.isString)return"("+t+")";if(t instanceof Date)return"(D:"+e(t.getUTCFullYear(),4)+e(t.getUTCMonth(),2)+e(t.getUTCDate(),2)+e(t.getUTCHours(),2)+e(t.getUTCMinutes(),2)+e(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(i in a=["<<"],t)l=t[i],a.push("/"+i+" "+n.convert(l));return a.push(">>"),a.join(`
200`)}return""+t},n}();var gs={},gb=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},n0={},rr={};let Zu;const mb=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];rr.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17};rr.getSymbolTotalCodewords=function(n){return mb[n]};rr.getBCHDigit=function(e){let n=0;for(;e!==0;)n++,e>>>=1;return n};rr.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');Zu=n};rr.isKanjiModeEnabled=function(){return typeof Zu<"u"};rr.toSJIS=function(n){return Zu(n)};var Dl={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function n(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,i){if(e.isValid(r))return r;try{return n(r)}catch{return i}}})(Dl);function r0(){this.buffer=[],this.length=0}r0.prototype={get:function(e){const n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)===1},put:function(e,n){for(let t=0;t<n;t++)this.putBit((e>>>n-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}};var vb=r0;function ms(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}ms.prototype.set=function(e,n,t,r){const i=e*this.size+n;this.data[i]=t,r&&(this.reservedBit[i]=!0)};ms.prototype.get=function(e,n){return this.data[e*this.size+n]};ms.prototype.xor=function(e,n,t){this.data[e*this.size+n]^=t};ms.prototype.isReserved=function(e,n){return this.reservedBit[e*this.size+n]};var bb=ms,i0={};(function(e){const n=rr.getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,a=n(r),l=a===145?26:Math.ceil((a-13)/(2*i-2))*2,s=[a-7];for(let c=1;c<i-1;c++)s[c]=s[c-1]-l;return s.push(6),s.reverse()},e.getPositions=function(r){const i=[],a=e.getRowColCoords(r),l=a.length;for(let s=0;s<l;s++)for(let c=0;c<l;
vendor: 20,336 bytes, lines 200-206
200c++)s===0&&c===0||s===0&&c===l-1||s===l-1&&c===0||i.push([a[s],a[c]]);return i}})(i0);var a0={};const wb=rr.getSymbolSize,Nd=7;a0.getPositions=function(n){const t=wb(n);return[[0,0],[t-Nd,0],[0,t-Nd]]};var o0={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const a=i.size;let l=0,s=0,c=0,f=null,d=null;for(let b=0;b<a;b++){s=c=0,f=d=null;for(let v=0;v<a;v++){let p=i.get(b,v);p===f?s++:(s>=5&&(l+=n.N1+(s-5)),f=p,s=1),p=i.get(v,b),p===d?c++:(c>=5&&(l+=n.N1+(c-5)),d=p,c=1)}s>=5&&(l+=n.N1+(s-5)),c>=5&&(l+=n.N1+(c-5))}return l},e.getPenaltyN2=function(i){const a=i.size;let l=0;for(let s=0;s<a-1;s++)for(let c=0;c<a-1;c++){const f=i.get(s,c)+i.get(s,c+1)+i.get(s+1,c)+i.get(s+1,c+1);(f===4||f===0)&&l++}return l*n.N2},e.getPenaltyN3=function(i){const a=i.size;let l=0,s=0,c=0;for(let f=0;f<a;f++){s=c=0;for(let d=0;d<a;d++)s=s<<1&2047|i.get(f,d),d>=10&&(s===1488||s===93)&&l++,c=c<<1&2047|i.get(d,f),d>=10&&(c===1488||c===93)&&l++}return l*n.N3},e.getPenaltyN4=function(i){let a=0;const l=i.data.length;for(let c=0;c<l;c++)a+=i.data[c];return Math.abs(Math.ceil(a*100/l/5)-10)*n.N4};function t(r,i,a){switch(r){case e.Patterns.PATTERN000:return(i+a)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(i+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return i*a%2+i*a%3===0;case e.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case e.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,a){const l=a.size;for(let s=0;s<l;s++)for(let c=0;c<l;c++)a.isReserved(c,s)||a.xor(c,s,t(i,c,s))},e.getBestMask=function(i,a){const l=Object.keys(e.Patterns).length;let s=0,c=1/0;for(let f=0;f<l;f++){a(f),e.applyMask(f,i);const d=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(f,i),d<c&&(c=d,s=f)}return s}})(o0);var Ol={};const Di=Dl,ul=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],fl=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Ol.getBlocksCount=function(n,t){switch(t){case Di.L:return ul[(n-1)*4+0];case Di.M:return ul[(n-1)*4+1];case Di.Q:return ul[(n-1)*4+2];case Di.H:return ul[(n-1)*4+3];default:return}};Ol.getTotalCodewordsCount=function(n,t){switch(t){case Di.L:return fl[(n-1)*4+0];case Di.M:return fl[(n-1)*4+1];case Di.Q:return fl[(n-1)*4+2];case Di.H:return fl[(n-1)*4+3];default:return}};var s0={},Tl={};const Qo=new Uint8Array(512),Pl=new Uint8Array(256);(function(){let n=1;for(let t=0;t<255;t++)Qo[t]=n,Pl[n]=t,n<<=1,n&256&&(n^=285);for(let t=255;t<512;t++)Qo[t]=Qo[t-255]})();Tl.log=function(n){if(n<1)throw new Error("log("+n+")");return Pl[n]};Tl.exp=function(n){return Qo[n]};Tl.mul=function(n,t){return n===0||t===0?0:Qo[Pl[n]+Pl[t]]};(function(e){const n=Tl;e.mul=function(r,i){const a=new Uint8Array(r.length+i.length-1);for(let l=0;l<r.length;l++)for(let s=0;s<i.length;s++)a[l+s]^=n.mul(r[l],i[s]);return a},e.mod=function(r,i){let a=new Uint8Array(r);for(;a.length-i.length>=0;){const l=a[0];for(let c=0;c<i.length;c++)a[c]^=n.mul(i[c],l);let s=0;for(;s<a.length&&a[s]===0;)s++;a=a.slice(s)}return a},e.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let a=0;a<r;a++)i=e.mul(i,new Uint8Array([1,n.exp(a)]));return i}})(s0);const l0=s0;function Ku(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Ku.prototype.initialize=function(n){this.degree=n,this.genPoly=l0.generateECPolynomial(this.degree)};Ku.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(n.length+this.degree);t.set(n);const r=l0.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){const a=new Uint8Array(this.degree);return a.set(r,i),a}return r};var yb=Ku,c0={},Ui={},Xu={};Xu.isValid=function(n){return!isNaN(n)&&n>=1&&n<=40};var $r={};const u0="[0-9]+",_b="[A-Z $%*+\\-./:]+";let cs="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";cs=cs.replace(/u/g,"\\u");const xb="(?:(?![A-Z0-9 $%*+\\-./:]|"+cs+`)(?:.|[\r
201]))+`;$r.KANJI=new RegExp(cs,"g");$r.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");$r.BYTE=new RegExp(xb,"g");$r.NUMERIC=new RegExp(u0,"g");$r.ALPHANUMERIC=new RegExp(_b,"g");const Nb=new RegExp("^"+cs+"$"),Ab=new RegExp("^"+u0+"$"),Sb=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");$r.testKanji=function(n){return Nb.test(n)};$r.testNumeric=function(n){return Ab.test(n)};$r.testAlphanumeric=function(n){return Sb.test(n)};(function(e){const n=Xu,t=$r;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,l){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!n.isValid(l))throw new Error("Invalid version: "+l);return l>=1&&l<10?a.ccBits[0]:l<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return t.testNumeric(a)?e.NUMERIC:t.testAlphanumeric(a)?e.ALPHANUMERIC:t.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(a,l){if(e.isValid(a))return a;try{return r(a)}catch{return l}}})(Ui);(function(e){const n=rr,t=Ol,r=Dl,i=Ui,a=Xu,l=7973,s=n.getBCHDigit(l);function c(v,p,N){for(let L=1;L<=40;L++)if(p<=e.getCapacity(L,N,v))return L}function f(v,p){return i.getCharCountIndicator(v,p)+4}function d(v,p){let N=0;return v.forEach(function(L){const E=f(L.mode,p);N+=E+L.getBitsLength()}),N}function b(v,p){for(let N=1;N<=40;N++)if(d(v,N)<=e.getCapacity(N,p,i.MIXED))return N}e.from=function(p,N){return a.isValid(p)?parseInt(p,10):N},e.getCapacity=function(p,N,L){if(!a.isValid(p))throw new Error("Invalid QR Code version");typeof L>"u"&&(L=i.BYTE);const E=n.getSymbolTotalCodewords(p),_=t.getTotalCodewordsCount(p,N),U=(E-_)*8;if(L===i.MIXED)return U;const B=U-f(L,p);switch(L){case i.NUMERIC:return Math.floor(B/10*3);case i.ALPHANUMERIC:return Math.floor(B/11*2);case i.KANJI:return Math.floor(B/13);case i.BYTE:default:return Math.floor(B/8)}},e.getBestVersionForData=function(p,N){let L;const E=r.from(N,r.M);if(Array.isArray(p)){if(p.length>1)return b(p,E);if(p.length===0)return 1;L=p[0]}else L=p;return c(L.mode,L.getLength(),E)},e.getEncodedBits=function(p){if(!a.isValid(p)||p<7)throw new Error("Invalid QR Code version");let N=p<<12;for(;n.getBCHDigit(N)-s>=0;)N^=l<<n.getBCHDigit(N)-s;return p<<12|N}})(c0);var f0={};const Pu=rr,h0=1335,Lb=21522,Ad=Pu.getBCHDigit(h0);f0.getEncodedBits=function(n,t){const r=n.bit<<3|t;let i=r<<10;for(;Pu.getBCHDigit(i)-Ad>=0;)i^=h0<<Pu.getBCHDigit(i)-Ad;return(r<<10|i)^Lb};var d0={};const kb=Ui;function lo(e){this.mode=kb.NUMERIC,this.data=e.toString()}lo.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)};lo.prototype.getLength=function(){return this.data.length};lo.prototype.getBitsLength=function(){return lo.getBitsLength(this.data.length)};lo.prototype.write=function(n){let t,r,i;for(t=0;t+3<=this.data.length;t+=3)r=this.data.substr(t,3),i=parseInt(r,10),n.put(i,10);const a=this.data.length-t;a>0&&(r=this.data.substr(t),i=parseInt(r,10),n.put(i,a*3+1))};var Pb=lo;const Cb=Ui,Qc=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function co(e){this.mode=Cb.ALPHANUMERIC,this.data=e}co.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)};co.prototype.getLength=function(){return this.data.length};co.prototype.getBitsLength=function(){return co.getBitsLength(this.data.length)};co.prototype.write=function(n){let t;for(t=0;t+2<=this.data.length;t+=2){let r=Qc.indexOf(this.data[t])*45;r+=Qc.indexOf(this.data[t+1]),n.put(r,11)}this.data.length%2&&n.put(Qc.indexOf(this.data[t]),6)};var Eb=co;const Mb=Ui;function uo(e){this.mode=Mb.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}uo.getBitsLength=function(n){return n*8};uo.prototype.getLength=function(){return this.data.length};uo.prototype.getBitsLength=function(){return uo.getBitsLength(this.data.length)};uo.prototype.write=function(e){for(let n=0,t=this.data.length;n<t;n++)e.put(this.data[n],8)};var Ib=uo;const jb=Ui,Fb=rr;function fo(e){this.mode=jb.KANJI,this.data=e}fo.getBitsLength=function(n){return n*13};fo.prototype.getLength=function(){return this.data.length};fo.prototype.getBitsLength=function(){return fo.getBitsLength(this.data.length)};fo.prototype.write=function(e){let n;for(n=0;n<this.data.length;n++){let t=Fb.toSJIS(this.data[n]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[n]+`
202Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),e.put(t,13)}};var Db=fo,p0={exports:{}};(function(e){var n={single_source_shortest_paths:function(t,r,i){var a={},l={};l[r]=0;var s=n.PriorityQueue.make();s.push(r,0);for(var c,f,d,b,v,p,N,L,E;!s.empty();){c=s.pop(),f=c.value,b=c.cost,v=t[f]||{};for(d in v)v.hasOwnProperty(d)&&(p=v[d],N=b+p,L=l[d],E=typeof l[d]>"u",(E||L>N)&&(l[d]=N,s.push(d,N),a[d]=f))}if(typeof i<"u"&&typeof l[i]>"u"){var _=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(_)}return a},extract_shortest_path_from_predecessor_list:function(t,r){for(var i=[],a=r;a;)i.push(a),t[a],a=t[a];return i.reverse(),i},find_path:function(t,r,i){var a=n.single_source_shortest_paths(t,r,i);return n.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(t){var r=n.PriorityQueue,i={},a;t=t||{};for(a in r)r.hasOwnProperty(a)&&(i[a]=r[a]);return i.queue=[],i.sorter=t.sorter||r.default_sorter,i},default_sorter:function(t,r){return t.cost-r.cost},push:function(t,r){var i={value:t,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=n})(p0);var Ob=p0.exports;(function(e){const n=Ui,t=Pb,r=Eb,i=Ib,a=Db,l=$r,s=rr,c=Ob;function f(_){return unescape(encodeURIComponent(_)).length}function d(_,U,B){const F=[];let ee;for(;(ee=_.exec(B))!==null;)F.push({data:ee[0],index:ee.index,mode:U,length:ee[0].length});return F}function b(_){const U=d(l.NUMERIC,n.NUMERIC,_),B=d(l.ALPHANUMERIC,n.ALPHANUMERIC,_);let F,ee;return s.isKanjiModeEnabled()?(F=d(l.BYTE,n.BYTE,_),ee=d(l.KANJI,n.KANJI,_)):(F=d(l.BYTE_KANJI,n.BYTE,_),ee=[]),U.concat(B,F,ee).sort(function(oe,K){return oe.index-K.index}).map(function(oe){return{data:oe.data,mode:oe.mode,length:oe.length}})}function v(_,U){switch(U){case n.NUMERIC:return t.getBitsLength(_);case n.ALPHANUMERIC:return r.getBitsLength(_);case n.KANJI:return a.getBitsLength(_);case n.BYTE:return i.getBitsLength(_)}}function p(_){return _.reduce(function(U,B){const F=U.length-1>=0?U[U.length-1]:null;return F&&F.mode===B.mode?(U[U.length-1].data+=B.data,U):(U.push(B),U)},[])}function N(_){const U=[];for(let B=0;B<_.length;B++){const F=_[B];switch(F.mode){case n.NUMERIC:U.push([F,{data:F.data,mode:n.ALPHANUMERIC,length:F.length},{data:F.data,mode:n.BYTE,length:F.length}]);break;case n.ALPHANUMERIC:U.push([F,{data:F.data,mode:n.BYTE,length:F.length}]);break;case n.KANJI:U.push([F,{data:F.data,mode:n.BYTE,length:f(F.data)}]);break;case n.BYTE:U.push([{data:F.data,mode:n.BYTE,length:f(F.data)}])}}return U}function L(_,U){const B={},F={start:{}};let ee=["start"];for(let le=0;le<_.length;le++){const oe=_[le],K=[];for(let I=0;I<oe.length;I++){const V=oe[I],S=""+le+I;K.push(S),B[S]={node:V,lastCount:0},F[S]={};for(let j=0;j<ee.length;j++){const W=ee[j];B[W]&&B[W].node.mode===V.mode?(F[W][S]=v(B[W].lastCount+V.length,V.mode)-v(B[W].lastCount,V.mode),B[W].lastCount+=V.length):(B[W]&&(B[W].lastCount=V.length),F[W][S]=v(V.length,V.mode)+4+n.getCharCountIndicator(V.mode,U))}}ee=K}for(let le=0;le<ee.length;le++)F[ee[le]].end=0;return{map:F,table:B}}function E(_,U){let B;const F=n.getBestModeForData(_);if(B=n.from(U,F),B!==n.BYTE&&B.bit<F.bit)throw new Error('"'+_+'" cannot be encoded with mode '+n.toString(B)+`.
203 Suggested mode is: `+n.toString(F));switch(B===n.KANJI&&!s.isKanjiModeEnabled()&&(B=n.BYTE),B){case n.NUMERIC:return new t(_);case n.ALPHANUMERIC:return new r(_);case n.KANJI:return new a(_);case n.BYTE:return new i(_)}}e.fromArray=function(U){return U.reduce(function(B,F){return typeof F=="string"?B.push(E(F,null)):F.data&&B.push(E(F.data,F.mode)),B},[])},e.fromString=function(U,B){const F=b(U,s.isKanjiModeEnabled()),ee=N(F),le=L(ee,B),oe=c.find_path(le.map,"start","end"),K=[];for(let I=1;I<oe.length-1;I++)K.push(le.table[oe[I]].node);return e.fromArray(p(K))},e.rawSplit=function(U){return e.fromArray(b(U,s.isKanjiModeEnabled()))}})(d0);const Rl=rr,eu=Dl,Tb=vb,Rb=bb,Bb=i0,Ub=a0,Cu=o0,Eu=Ol,qb=yb,Cl=c0,zb=f0,Wb=Ui,tu=d0;function Hb(e,n){const t=e.size,r=Ub.getPositions(n);for(let i=0;i<r.length;i++){const a=r[i][0],l=r[i][1];for(let s=-1;s<=7;s++)if(!(a+s<=-1||t<=a+s))for(let c=-1;c<=7;c++)l+c<=-1||t<=l+c||(s>=0&&s<=6&&(c===0||c===6)||c>=0&&c<=6&&(s===0||s===6)||s>=2&&s<=4&&c>=2&&c<=4?e.set(a+s,l+c,!0,!0):e.set(a+s,l+c,!1,!0))}}function Yb(e){const n=e.size;for(let t=8;t<n-8;t++){const r=t%2===0;e.set(t,6,r,!0),e.set(6,t,r,!0)}}function Vb(e,n){const t=Bb.getPositions(n);for(let r=0;r<t.length;r++){const i=t[r][0],a=t[r][1];for(let l=-2;l<=2;l++)for(let s=-2;s<=2;s++)l===-2||l===2||s===-2||s===2||l===0&&s===0?e.set(i+l,a+s,!0,!0):e.set(i+l,a+s,!1,!0)}}function Gb(e,n){const t=e.size,r=Cl.getEncodedBits(n);let i,a,l;for(let s=0;s<18;s++)i=Math.floor(s/3),a=s%3+t-8-3,l=(r>>s&1)===1,e.set(i,a,l,!0),e.set(a,i,l,!0)}function nu(e,n,t){const r=e.size,i=zb.getEncodedBits(n,t);let a,l;for(a=0;a<15;a++)l=(i>>a&1)===1,a<6?e.set(a,8,l,!0):a<8?e.set(a+1,8,l,!0):e.set(r-15+a,8,l,!0),a<8?e.set(8,r-a-1,l,!0):a<9?e.set(8,15-a-1+1,l,!0):e.set(8,15-a-1,l,!0);e.set(r-8,8,1,!0)}function $b(e,n){const t=e.size;let r=-1,i=t-1,a=7,l=0;for(let s=t-1;s>0;s-=2)for(s===6&&s--;;){for(let c=0;c<2;c++)if(!e.isReserved(i,s-c)){let f=!1;l<n.length&&(f=(n[l]>>>a&1)===1),e.set(i,s-c,f),a--,a===-1&&(l++,a=7)}if(i+=r,i<0||t<=i){i-=r,r=-r;break}}}function Zb(e,n,t){const r=new Tb;t.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),Wb.getCharCountIndicator(c.mode,e)),c.write(r)});const i=Rl.getSymbolTotalCodewords(e),a=Eu.getTotalCodewordsCount(e,n),l=(i-a)*8;for(r.getLengthInBits()+4<=l&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const s=(l-r.getLengthInBits())/8;for(let c=0;c<s;c++)r.put(c%2?17:236,8);return Kb(r,e,n)}function Kb(e,n,t){const r=Rl.getSymbolTotalCodewords(n),i=Eu.getTotalCodewordsCount(n,t),a=r-i,l=Eu.getBlocksCount(n,t),s=r%l,c=l-s,f=Math.floor(r/l),d=Math.floor(a/l),b=d+1,v=f-d,p=new qb(v);let N=0;const L=new Array(l),E=new Array(l);let _=0;const U=new Uint8Array(e.buffer);for(let oe=0;oe<l;oe++){const K=oe<c?d:b;L[oe]=U.slice(N,N+K),E[oe]=p.encode(L[oe]),N+=K,_=Math.max(_,K)}const B=new Uint8Array(r);let F=0,ee,le;for(ee=0;ee<_;ee++)for(le=0;le<l;le++)ee<L[le].length&&(B[F++]=L[le][ee]);for(ee=0;ee<v;ee++)for(le=0;le<l;le++)B[F++]=E[le][ee];return B}function Xb(e,n,t,r){let i;if(Array.isArray(e))i=tu.fromArray(e);else if(typeof e=="string"){let f=n;if(!f){const d=tu.rawSplit(e);f=Cl.getBestVersionForData(d,t)}i=tu.fromString(e,f||40)}else throw new Error("Invalid data");const a=Cl.getBestVersionForData(i,t);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!n)n=a;else if(n<a)throw new Error(`
204The chosen QR Code version cannot contain this amount of data.
205Minimum version required to store current data is: `+a+`.
206`);const l=Zb(n,t,i),s=Rl.getSymbolSize(n),c=new Rb(s);return Hb(c,n),Yb(c),Vb(c,n),nu(c,t,0),n>=7&&Gb(c,n),$b(c,l),isNaN(r)&&(r=Cu.getBestMask(c,nu.bind(null,c,t))),Cu.applyMask(r,c),nu(c,t,r),{modules:c,version:n,errorCorrectionLevel:t,maskPattern:r,segments:i}}n0.create=function(n,t){if(typeof n>"u"||n==="")throw new Error("No input text");let r=eu.M,i,a;return typeof t<"u"&&(r=eu.from(t.errorCorrectionLevel,eu.M),i=Cl.from(t.version),a=Cu.from(t.maskPattern),t.toSJISFunc&&Rl.setToSJISFunction(t.toSJISFunc)),Xb(n,i,r,a)};var g0={},Ju={};(function(e){function n(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let r=t.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+t);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(a){return[a,a]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,a=r.width&&r.width>=21?r.width:void 0,l=r.scale||4;return{width:a,scale:a?4:l,margin:i,color:{dark:n(r.color.dark||"#000000ff"),light:n(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},e.getImageWidth=function(r,i){const a=e.getScale(r,i);return Math.floor((r+i.margin*2)*a)},e.qrToImageData=function(r,i,a){const l=i.modules.size,s=i.modules.data,c=e.getScale(l,a),f=Math.floor((l+a.margin*2)*c),d=a.margin*c,b=[a.color.light,a.color.dark];for(let v=0;v<f;v++)for(let p=0;p<f;p++){let N=(v*f+p)*4,L=a.color.light;if(v>=d&&p>=d&&v<f-d&&p<f-d){const E=Math.floor((v-d)/c),_=Math.floor((p-d)/c);L=b[s[E*l+_]?1:0]}r[N++]=L.r,r[N++]=L.g,r[N++]=L.b,r[N]=L.a}}})(Ju);(function(e){const n=Ju;function t(i,a,l){i.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=l,a.width=l,a.style.height=l+"px",a.style.width=l+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(a,l,s){let c=s,f=l;typeof c>"u"&&(!l||!l.getContext)&&(c=l,l=void 0),l||(f=r()),c=n.getOptions(c);const d=n.getImageWidth(a.modules.size,c),b=f.getContext("2d"),v=b.createImageData(d,d);return n.qrToImageData(v.data,a,c),t(b,f,d),b.putImageData(v,0,0),f},e.renderToDataURL=function(a,l,s){let c=s;typeof c>"u"&&(!l||!l.getContext)&&(c=l,l=void 0),c||(c={});const f=e.render(a,l,c),d=c.type||"image/png",b=c.rendererOpts||{};return f.toDataURL(d,b.quality)}})(g0);var m0={};const Jb=Ju;function Sd(e,n){const t=e.a/255,r=n+'="'+e.hex+'"';return t<1?r+" "+n+'-opacity="'+t.toFixed(2).slice(1)+'"':r}function ru(e,n,t){let r=e+n;return typeof t<"u"&&(r+=" "+t),r}function Qb(e,n,t){let r="",i=0,a=!1,l=0;for(let s=0;s<e.length;s++){const c=Math.floor(s%n),f=Math.floor(s/n);!c&&!a&&(a=!0),e[s]?(l++,s>0&&c>
2060&&e[s-1]||(r+=a?ru("M",c+t,.5+f+t):ru("m",i,0),i=0,a=!1),c+1<n&&e[s+1]||(r+=ru("h",l),l=0)):i++}return r}m0.render=function(n,t,r){const i=Jb.getOptions(t),a=n.modules.size,l=n.modules.data,s=a+i.margin*2,c=i.color.light.a?"<path "+Sd(i.color.light,"fill")+' d="M0 0h'+s+"v"+s+'H0z"/>':"",f="<path "+Sd(i.color.dark,"stroke")+' d="'+Qb(l,a,i.margin)+'"/>',d='viewBox="0 0 '+s+" "+s+'"',v='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+d+' shape-rendering="crispEdges">'+c+f+`</svg>
207`;return typeof r=="function"&&r(null,v),v};const ew=gb,Mu=n0,v0=g0,tw=m0;function Qu(e,n,t,r,i){const a=[].slice.call(arguments,1),l=a.length,s=typeof a[l-1]=="function";if(!s&&!ew())throw new Error("Callback required as last argument");if(s){if(l<2)throw new Error("Too few arguments provided");l===2?(i=t,t=n,n=r=void 0):l===3&&(n.getContext&&typeof i>"u"?(i=r,r=void 0):(i=r,r=t,t=n,n=void 0))}else{if(l<1)throw new Error("Too few arguments provided");return l===1?(t=n,n=r=void 0):l===2&&!n.getContext&&(r=t,t=n,n=void 0),new Promise(function(c,f){try{const d=Mu.create(t,r);c(e(d,n,r))}catch(d){f(d)}})}try{const c=Mu.create(t,r);i(null,e(c,n,r))}catch(c){i(c)}}gs.create=Mu.create;gs.toCanvas=Qu.bind(null,v0.render);gs.toDataURL=Qu.bind(null,v0.renderToDataURL);gs.toString=Qu.bind(null,function(e,n,t){return tw.render(e,t)});const $a=e=>{const n=e.replace("#","");return[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16)]},b0=e=>e?e.split(/\r?\n|\r/).map(n=>n.replace(/^\s*(?:[-•*–—]|\d+[.)])\s*/,"").replace(/\s+/g," ").trim()).filter(n=>n.length>0):[],nw=e=>{const n=typeof window<"u"?window.location.origin:"",t=new URLSearchParams({id:e.orderId,name:e.patientName,phone:e.phone,service:e.service,date:e.date,time:e.time,fee:String(e.fee),trx:e.trxId});return`${n}/verify?${t.toString()}`},rw=async(e,n="download")=>{var I;const t=new Be({unit:"mm",format:"a4"}),r=210,i=297,a=15,l=$a("#0EA5A4"),s=$a("#7C3AED"),c=$a("#0F172A"),f=$a("#64748B"),d=$a("#E2E8F0"),b=$a("#F8FAFC");t.setFillColor(...l),t.rect(0,0,r,32,"F"),t.setFillColor(...s),t.rect(0,30,r,2,"F"),t.setFillColor(255,255,255),t.cir
207cle(a+7,16,7,"F"),t.setTextColor(...l),t.setFont("helvetica","bold"),t.setFontSize(12),t.text("Dr.S",a+7,18,{align:"center"}),t.setTextColor(255,255,255),t.setFont("helvetica","bold"),t.setFontSize(16),t.text("Telemedicine",a+18,14),t.setFont("helvetica","normal"),t.setFontSize(9),t.text("MBBS · Telemedicine Specialist · BMDC Reg.",a+18,19),t.text("Hotline: +880 1842-525924  ·  bKash: 01718276519",a+18,24),t.setFont("times","bolditalic"),t.setFontSize(28),t.text("Rx",r-a,22,{align:"right"});let v=40;t.setDrawColor(...d),t.setFillColor(...b),t.roundedRect(a,v,r-a*2,30,2,2,"FD");const p=["PATIENT NAME","PHONE","AGE / GENDER","BOOKING ID","DATE","TIME"],N=[e.patientName,e.phone,`${e.age||"—"} / ${e.gender||"—"}`,e.orderId,e.date,e.time],L=(r-a*2)/3;p.forEach((V,S)=>{const j=S%3,W=Math.floor(S/3),H=a+5+j*L,se=v+8+W*12;t.setTextColor(...f),t.setFont("helvetica","bold"),t.setFontSize(7),t.text(V,H,se),t.setTextColor(...c),t.setFont("helvetica","normal"),t.setFontSize(10),t.text(String(N[S]||"—").slice(0,28),H,se+5)}),v+=36;const E=V=>{t.setTextColor(...s),t.setFont("helvetica","bold"),t.setFontSize(9),t.text(V,a,v),t.setDrawColor(...s),t.setLineWidth(.4),t.line(a,v+1.2,a+t.getTextWidth(V)+2,v+1.2),v+=5},_=(V,S)=>{t.setTextColor(...S!=null&&S.muted?f:c),t.setFont("helvetica",S!=null&&S.italic?"italic":"normal"),t.setFontSize(10);const j=t.splitTextToSize(V||"—",r-a*2);t.text(j,a,v),v+=j.length*5+3};E("CONSULTATION"),t.setTextColor(...c),t.setFont("helvetica","bold"),t.setFontSize(11),t.text(e.service,a,v),v+=6,E("CHIEF COMPLAINT"),_(e.problem),t.setDrawColor(...d),t.setLineWidth(.3),t.line(a,v,r-a,v),v+=5,t.setTextColor(...l),t.setFont("times","bolditalic"),t.setFontSize(20),t.text("Rx",a,v+1),t.setTextColor(...f),t.setFont("helvetica","italic"),t.setFontSize(8),t.text("Medication & dosage",a+12,v-2),v+=5;const U=b0(e.medicines);if(U.length>0)U.forEach((V,S)=>{t.setFillColor(...b),t.roundedRect(a,v-3.5,r-a*2,7,1,1,"F"),t.setTextColor(...s),t.setFont("helvetica","bold"),t.setFontSize(9),t.text(`${S+1}.`,a+2,v+1),t.setTextColor(...c),t.setFont("helvetica","normal"),t.setFontSize(10);const j=t.splitTextToSize(V,r-a*2-10);t.text(j,a+8,v+1),v+=Math.max(7,j.length*5)+1}),v+=2;else{t.setDrawColor(...d);for(let V=0;V<4;V++)t.line(a,v+V*7,r-a,v+V*7);v+=4*7+2}if(E("INSTRUCTIONS / উপদেশ"),_(e.instructions||"—"),E("DOCTOR'S NOTES"),(I=e.doctorNotes)!=null&&I.trim()){t.setFillColor(254,252,232),t.setDrawColor(234,179,8);const V=t.splitTextToSize(e.doctorNotes,r-a*2-6),S=V.length*5+6;t.roundedRect(a,v-3,r-a*2,S,1.5,1.5,"FD"),t.setTextColor(...c),t.setFont("helvetica","italic"),t.setFontSize(10),t.text(V,a+3,v+1),v+=S+2}else _("—",{muted:!0,italic:!0});const B=i-58,F=(r-a*2-6)/3;t.setFillColor(...l),t.roundedRect(a,B,F,28,2,2,"F"),t.setTextColor(255,255,255),t.setFont("helvetica","bold"),t.setFontSize(7),t.text("PAYMENT CONFIRMED",a+4,B+6),t.setFontSize(14),t.text(`BDT ${e.fee}`,a+4,B+14),t.setFont("helvetica","normal"),t.setFontSize(7),t.text("bKash TrxID:",a+4,B+19),t.text(e.trxId.slice(0,22),a+4,B+23);const ee=nw(e),le=await gs.toDataURL(ee,{margin:0,width:256,color:{dark:"#0F172A",light:"#FFFFFF"},errorCorrectionLevel:"M"}),oe=a+F+3;t.setFillColor(255,255,255),t.setDrawColor(...d),t.roundedRect(oe,B,F,28,2,2,"FD"),t.addImage(le,"PNG",oe+(F-22)/2,B+2,22,22),t.setTextColor(...f),t.setFont("helvetica","bold"),t.setFontSize(6),t.text("SCAN TO VERIFY",oe+F/2,B+26,{align:"center"});const K=oe+F+3;if(t.setDrawColor(...d),t.setFillColor(255,255,255),t.roundedRect(K,B,F,28,2,2,"FD"),t.setDrawColor(...c),t.setLineWidth(.3),t.line(K+3,B+18,K+F-3,B+18),t.setTextColor(...l),t.setFont("helvetica","bold"),t.setFontSize(8),t.text("Telemedicine",K+F/2,B+23,{align:"center"}),t.setTextColor(...f),t.setFont("helvetica","normal"),t.setFontSize(6),t.text("Signature & Seal",K+F/2,B+26,{align:"center"}),t.setDrawColor(...d),t.line(a,i-22,r-a,i-22),t.setTextColor(...f),t.setFont("helvetica","italic"),t.setFontSize(8),t.text("Digital prescription · Verify authenticity by scanning the QR code above.",r/2,i-16,{align:"center"}),t.setFont("helvetica","normal"),t.setFontSize(7),t.text(`Generated ${new Date().toLocaleStr
207ing("en-GB")}  ·  ${ee.slice(0,80)}  ·  Page 1 of 1`,r/2,i-11,{align:"center"}),n==="print"){const V=t.output("bloburl"),S=window.open(V,"_blank");S&&S.addEventListener("load",()=>{try{S.focus(),S.print()}catch{}})}else t.save(`Prescription-${e.orderId}.pdf`)};var Ke=function(){return Ke=Object.assign||function(n){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])}return n},Ke.apply(this,arguments)};function iw(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t}function w0(e,n,t){for(var r=0,i=n.length,a;r<i;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return e.concat(a||Array.prototype.slice.call(n))}function vs(e){return e.mode==="multiple"}function bs(e){return e.mode==="range"}function Bl(e){return e.mode==="single"}var aw={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function ow(e,n){return fr(e,"LLLL y",n)}function sw(e,n){return fr(e,"d",n)}function lw(e,n){return fr(e,"LLLL",n)}function cw(e){return"".concat(e)}function uw(e,n){return fr(e,"cccccc",n)}function fw(e,n){return fr(e,"yyyy",n)}var hw=Object.freeze({__proto__:null,formatCaption:ow,formatDay:sw,formatMonthCaption:lw,formatWeekNumber:cw,formatWeekdayName:uw,formatYearCaption:fw}),dw=function(e,n,t){return fr(e,"do MMMM (EEEE)",t)},pw=function(){return"Month: "},gw=function(){return"Go to next month"},mw=function(){return"Go to previous month"},vw=function(e,n){return fr(e,"cccc",n)},bw=function(e){return"Week n. ".concat(e)},ww=function(){return"Year: "},yw=Object.freeze({__proto__:null,labelDay:dw,labelMonthDropdown:pw,labelNext:gw,labelPrevious:mw,labelWeekNumber:bw,labelWeekday:vw,labelYearDropdown:ww});function _w(){var e="buttons",n=aw,t=qd,r={},i={},a=1,l={},s=new Date;return{captionLayout:e,classNames:n,formatters:hw,labels:yw,locale:t,modifiersClassNames:r,modifiers:i,numberOfMonths:a,styles:l,today:s,mode:"default"}}function xw(e){var n=e.fromYear,t=e.toYear,r=e.fromMonth,i=e.toMonth,a=e.fromDate,l=e.toDate;return r?a=Wn(r):n&&(a=new Date(n,0,1)),i?l=Fu(i):t&&(l=new Date(t,11,31)),{fromDate:a?io(a):void 0,toDate:l?io(l):void 0}}var y0=Ue.createContext(void 0);function Nw(e){var n,t=e.initialProps,r=_w(),i=xw(t),a=i.fromDate,l=i.toDate,s=(n=t.captionLayout)!==null&&n!==void 0?n:r.captionLayout;s!=="buttons"&&(!a||!l)&&(s="buttons");var c;(Bl(t)||vs(t)||bs(t))&&(c=t.onSelect);var f=Ke(Ke(Ke({},r),t),{captionLayout:s,classNames:Ke(Ke({},r.classNames),t.classNames),components:Ke({},t.components),formatters:Ke(Ke({},r.formatters),t.formatters),fromDate:a,labels:Ke(Ke({},r.labels),t.labels),mode:t.mode||r.mode,modifiers:Ke(Ke({},r.modifiers),t.modifiers),modifiersClassNames:Ke(Ke({},r.modifiersClassNames),t.modifiersClassNames),onSelect:c,styles:Ke(Ke({},r.styles),t.styles),toDate:l});return C.jsx(y0.Provider,{value:f,children:e.children})}function Rt(){var e=Ue.useContext(y0);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function _0(e){var n=Rt(),t=n.locale,r=n.classNames,i=n.styles,a=n.formatters.formatCaption;return C.jsx("div",{className:r.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:t})})}function Aw(e){return C.jsx("svg",Ke({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:C.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.7
20778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function x0(e){var n,t,r=e.onChange,i=e.value,a=e.children,l=e.caption,s=e.className,c=e.style,f=Rt(),d=(t=(n=f.components)===null||n===void 0?void 0:n.IconDropdown)!==null&&t!==void 0?t:Aw;return C.jsxs("div",{className:s,style:c,children:[C.jsx("span",{className:f.classNames.vhidden,children:e["aria-label"]}),C.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:f.classNames.dropdown,style:f.styles.dropdown,value:i,onChange:r,children:a}),C.jsxs("div",{className:f.classNames.caption_label,style:f.styles.caption_label,"aria-hidden":"true",children:[l,C.jsx(d,{className:f.classNames.dropdown_icon,style:f.styles.dropdown_icon})]})]})}function Sw(e){var n,t=Rt(),r=t.fromDate,i=t.toDate,a=t.styles,l=t.locale,s=t.formatters.formatMonthCaption,c=t.classNames,f=t.components,d=t.labels.labelMonthDropdown;if(!r)return C.jsx(C.Fragment,{});if(!i)return C.jsx(C.Fragment,{});var b=[];if(fp(r,i))for(var v=Wn(r),p=r.getMonth();p<=i.getMonth();p++)b.push(Sc(v,p));else for(var v=Wn(new Date),p=0;p<=11;p++)b.push(Sc(v,p));var N=function(E){var _=Number(E.target.value),U=Sc(Wn(e.displayMonth),_);e.onChange(U)},L=(n=f==null?void 0:f.Dropdown)!==null&&n!==void 0?n:x0;return C.jsx(L,{name:"months","aria-label":d(),className:c.dropdown_month,style:a.dropdown_month,onChange:N,value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:l}),children:b.map(function(E){return C.jsx("option",{value:E.getMonth(),children:s(E,{locale:l})},E.getMonth())})})}function Lw(e){var n,t=e.displayMonth,r=Rt(),i=r.fromDate,a=r.toDate,l=r.locale,s=r.styles,c=r.classNames,f=r.components,d=r.formatters.formatYearCaption,b=r.labels.labelYearDropdown,v=[];if(!i)return C.jsx(C.Fragment,{});if(!a)return C.jsx(C.Fragment,{});for(var p=i.getFullYear(),N=a.getFullYear(),L=p;L<=N;L++)v.push(eh(Bd(new Date),L));var E=function(U){var B=eh(Wn(t),Number(U.target.value));e.onChange(B)},_=(n=f==null?void 0:f.Dropdown)!==null&&n!==void 0?n:x0;return C.jsx(_,{name:"years","aria-label":b(),className:c.dropdown_year,style:s.dropdown_year,onChange:E,value:t.getFullYear(),caption:d(t,{locale:l}),children:v.map(function(U){return C.jsx("option",{value:U.getFullYear(),children:d(U,{locale:l})},U.getFullYear())})})}function kw(e,n){var t=Ue.useState(e),r=t[0],i=t[1],a=n===void 0?r:n;return[a,i]}function Pw(e){var n=e.month,t=e.defaultMonth,r=e.today,i=n||t||r||new Date,a=e.toDate,l=e.fromDate,s=e.numberOfMonths,c=s===void 0?1:s;if(a&&es(a,i)<0){var f=-1*(c-1);i=Nr(a,f)}return l&&es(i,l)<0&&(i=l),Wn(i)}function Cw(){var e=Rt(),n=Pw(e),t=kw(n,e.month),r=t[0],i=t[1],a=function(l){var s;if(!e.disableNavigation){var c=Wn(l);i(c),(s=e.onMonthChange)===null||s===void 0||s.call(e,c)}};return[r,a]}function Ew(e,n){for(var t=n.reverseMonths,r=n.numberOfMonths,i=Wn(e),a=Wn(Nr(i,r)),l=es(a,i),s=[],c=0;c<l;c++){var f=Nr(i,c);s.push(f)}return t&&(s=s.reverse()),s}function Mw(e,n){if(!n.disableNavigation){var t=n.toDate,r=n.pagedNavigation,i=n.numberOfMonths,a=i===void 0?1:i,l=r?a:1,s=Wn(e);if(!t)return Nr(s,l);var c=es(t,e);if(!(c<a))return Nr(s,l)}}function Iw(e,n){if(!n.disableNavigation){var t=n.fromDate,r=n.pagedNavigation,i=n.numberOfMonths,a=i===void 0?1:i,l=r?a:1,s=Wn(e);if(!t)return Nr(s,-l);var c=es(s,t);if(!(c<=0))return Nr(s,-l)}}var N0=Ue.createContext(void 0);function jw(e){var n=Rt(),t=Cw(),r=t[0],i=t[1],a=Ew(r,n),l=Mw(r,n),s=Iw(r,n),c=function(b){return a.some(function(v){return Ou(b,v)})},f=function(b,v){c(b)||(v&&Vd(b,v)?i(Nr(b,1+n.numberOfMonths*-1)):i(b))},d={currentMonth:r,displayMonths:a,goToMonth:i,goToDate:f,previousMonth:s,nextMonth:l,isDateDisplayed:c};return C.jsx(N0.Provider,{value:d,children:e.children})}function ws(){var e=Ue.useContext(N0);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Ld(e){var n,t=Rt(),r=t.classNames,i=t.styles,a=t.components,l=ws().goToMonth,s=function(d){l(Nr(d,e.displayIndex?-e.dis
207playIndex:0))},c=(n=a==null?void 0:a.CaptionLabel)!==null&&n!==void 0?n:_0,f=C.jsx(c,{id:e.id,displayMonth:e.displayMonth});return C.jsxs("div",{className:r.caption_dropdowns,style:i.caption_dropdowns,children:[C.jsx("div",{className:r.vhidden,children:f}),C.jsx(Sw,{onChange:s,displayMonth:e.displayMonth}),C.jsx(Lw,{onChange:s,displayMonth:e.displayMonth})]})}function Fw(e){return C.jsx("svg",Ke({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:C.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Dw(e){return C.jsx("svg",Ke({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:C.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var El=Ue.forwardRef(function(e,n){var t=Rt(),r=t.classNames,i=t.styles,a=[r.button_reset,r.button];e.className&&a.push(e.className);var l=a.join(" "),s=Ke(Ke({},i.button_reset),i.button);return e.style&&Object.assign(s,e.style),C.jsx("button",Ke({},e,{ref:n,type:"button",className:l,style:s}))});function Ow(e){var n,t,r=Rt(),i=r.dir,a=r.locale,l=r.classNames,s=r.styles,c=r.labels,f=c.labelPrevious,d=c.labelNext,b=r.components;if(!e.nextMonth&&!e.previousMonth)return C.jsx(C.Fragment,{});var v=f(e.previousMonth,{locale:a}),p=[l.nav_button,l.nav_button_previous].join(" "),N=d(e.nextMonth,{locale:a}),L=[l.nav_button,l.nav_button_next].join(" "),E=(n=b==null?void 0:b.IconRight)!==null&&n!==void 0?n:Dw,_=(t=b==null?void 0:b.IconLeft)!==null&&t!==void 0?t:Fw;return C.jsxs("div",{className:l.nav,style:s.nav,children:[!e.hidePrevious&&C.jsx(El,{name:"previous-month","aria-label":v,className:p,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:i==="rtl"?C.jsx(E,{className:l.nav_icon,style:s.nav_icon}):C.jsx(_,{className:l.nav_icon,style:s.nav_icon})}),!e.hideNext&&C.jsx(El,{name:"next-month","aria-label":N,className:L,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:i==="rtl"?C.jsx(_,{className:l.nav_icon,style:s.nav_icon}):C.jsx(E,{className:l.nav_icon,style:s.nav_icon})})]})}function kd(e){var n=Rt().numberOfMonths,t=ws(),r=t.previousMonth,i=t.nextMonth,a=t.goToMonth,l=t.displayMonths,s=l.findIndex(function(N){return Ou(e.displayMonth,N)}),c=s===0,f=s===l.length-1,d=n>1&&(c||!f),b=n>1&&(f||!c),v=function(){r&&a(r)},p=function(){i&&a(i)};return C.jsx(Ow,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:b,nextMonth:i,previousMonth:r,onPreviousClick:v,onNextClick:p})}function Tw(e){var n,t=Rt(),r=t.classNames,i=t.disableNavigation,a=t.styles,l=t.captionLayout,s=t.components,c=(n=s==null?void 0:s.CaptionLabel)!==null&&n!==void 0?n:_0,f;return i?f=C.jsx(c,{id:e.id,displayMonth:e.displayMonth}):l==="dropdown"?f=C.jsx(Ld,{displayMonth:e.displayMonth,id:e.id}):l==="dropdown-buttons"?f=C.jsxs(C.Fragment,{children:[C.jsx(Ld,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),C.jsx(kd,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):f=C.jsxs(C.Fragment,{children:[C.jsx(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),C.jsx(kd,{displayMonth:e.displayMonth,id:e.id})]}),C.jsx("div",{className:r.caption,style:a.caption,children:f})}function Rw(e){var n=Rt(),t=n.footer,r=n.styles,i=n.classNames.tfoot;return t?C.jsx("tfoot",{className:i,style:r.tfoot,children:C.jsx("tr",{children:C.jsx("td",{colSpan:8,children:t})})}):C.jsx(C.Fragment,{})}function Bw(e,n,t){for(var r=t?pa(new Date):Vr(new Date,{locale:e,weekStartsOn:n}),i=[],a=0;a<7;a++){var l=On(r,a);i.push(l)}return i}function Uw(){var e=Rt(),n=e.classNames,t=e.styles,r=e.showWeekNumber,i=e.locale,a=e.weekStartsOn,l=e.ISOWeek,s=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,f=Bw(i,a,l);return C.jsxs("tr",{style:t.head_row,className:n.head_row,children:[r&&C.jsx("td",{style:t.head_cell,className:n.head_cell}),f.map(function(d,b){return C.jsx("th",{scope:"col",className:n.head_cell,style:t.head_cell,"aria-label":c(d,{locale:i}),children:s(d,{locale:i})},b)})]})}function qw(){var e,n=Rt(),t=n.classNames,r=n.styles,i=n.components,a=(e=i==null?void 0:i.HeadRow)!==null&&e!==void 0?e:Uw;return C.jsx("thead",{style:r.head,className:t.head,children:C.jsx(a,{})})}function zw(e){var n=Rt(),t=n.locale,r=n.formatters.formatDay;return C.jsx(C.Fragment,{children:r(e.date,{locale:t})})}var ef=Ue.createContext(void 0);function Ww(e){if(!vs(e.initialProps)){var n={selected:void 0,modifiers:{disabled:[]}};return C.jsx(ef.Provider,{value:n,children:e.children})}return C.jsx(Hw,{initialProps:e.initialProps,children:e.children})}function Hw(e){var n=e.initialProps,t=e.children,r=n.selected,i=n.min,a=n.max,l=function(f,d,b){var v,p;
207(v=n.onDayClick)===null||v===void 0||v.call(n,f,d,b);var N=!!(d.selected&&i&&(r==null?void 0:r.length)===i);if(!N){var L=!!(!d.selected&&a&&(r==null?void 0:r.length)===a);if(!L){var E=r?w0([],r):[];if(d.selected){var _=E.findIndex(function(U){return qn(f,U)});E.splice(_,1)}else E.push(f);(p=n.onSelect)===null||p===void 0||p.call(n,E,f,d,b)}}},s={disabled:[]};r&&s.disabled.push(function(f){var d=a&&r.length>a-1,b=r.some(function(v){return qn(v,f)});return!!(d&&!b)});var c={selected:r,onDayClick:l,modifiers:s};return C.jsx(ef.Provider,{value:c,children:t})}function tf(){var e=Ue.useContext(ef);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function Yw(e,n){var t=n||{},r=t.from,i=t.to;return r&&i?qn(i,e)&&qn(r,e)?void 0:qn(i,e)?{from:i,to:void 0}:qn(r,e)?void 0:uu(r,e)?{from:e,to:i}:{from:r,to:e}:i?uu(e,i)?{from:i,to:e}:{from:e,to:i}:r?Vd(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}var nf=Ue.createContext(void 0);function Vw(e){if(!bs(e.initialProps)){var n={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return C.jsx(nf.Provider,{value:n,children:e.children})}return C.jsx(Gw,{initialProps:e.initialProps,children:e.children})}function Gw(e){var n=e.initialProps,t=e.children,r=n.selected,i=r||{},a=i.from,l=i.to,s=n.min,c=n.max,f=function(p,N,L){var E,_;(E=n.onDayClick)===null||E===void 0||E.call(n,p,N,L);var U=Yw(p,r);(_=n.onSelect)===null||_===void 0||_.call(n,U,p,N,L)},d={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(d.range_start=[a],l?(d.range_end=[l],qn(a,l)||(d.range_middle=[{after:a,before:l}])):d.range_end=[a]):l&&(d.range_start=[l],d.range_end=[l]),s&&(a&&!l&&d.disabled.push({after:Ac(a,s-1),before:On(a,s-1)}),a&&l&&d.disabled.push({after:a,before:On(a,s-1)}),!a&&l&&d.disabled.push({after:Ac(l,s-1),before:On(l,s-1)})),c){if(a&&!l&&(d.disabled.push({before:On(a,-c+1)}),d.disabled.push({after:On(a,c-1)})),a&&l){var b=zr(l,a)+1,v=c-b;d.disabled.push({before:Ac(a,v)}),d.disabled.push({after:On(l,v)})}!a&&l&&(d.disabled.push({before:On(l,-c+1)}),d.disabled.push({after:On(l,c-1)}))}return C.jsx(nf.Provider,{value:{selected:r,onDayClick:f,modifiers:d},children:t})}function rf(){var e=Ue.useContext(nf);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function yl(e){return Array.isArray(e)?w0([],e):e!==void 0?[e]:[]}function $w(e){var n={};return Object.entries(e).forEach(function(t){var r=t[0],i=t[1];n[r]=yl(i)}),n}var Sr;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Sr||(Sr={}));var Zw=Sr.Selected,fi=Sr.Disabled,Kw=Sr.Hidden,Xw=Sr.Today,iu=Sr.RangeEnd,au=Sr.RangeMiddle,ou=Sr.RangeStart,Jw=Sr.Outside;function Qw(e,n,t){var r,i=(r={},r[Zw]=yl(e.selected),r[fi]=yl(e.disabled),r[Kw]=yl(e.hidden),r[Xw]=[e.today],r[iu]=[],r[au]=[],r[ou]=[],r[Jw]=[],r);return e.fromDate&&i[fi].push({before:e.fromDate}),e.toDate&&i[fi].push({after:e.toDate}),vs(e)?i[fi]=i[fi].concat(n.modifiers[fi]):bs(e)&&(i[fi]=i[fi].concat(t.modifiers[fi]),i[ou]=t.modifiers[ou],i[au]=t.modifiers[au],i[iu]=t.modifiers[iu]),i}var A0=Ue.createContext(void 0);function e3(e){var n=Rt(),t=tf(),r=rf(),i=Qw(n,t,r),a=$w(n.modifiers),l=Ke(Ke({},i),a);return C.jsx(A0.Provider,{value:l,children:e.children})}function S0(){var e=Ue.useContext(A0);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function t3(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function n3(e){return!!(e&&typeof e=="object"&&"from"in e)}function r3(e){return!!(e&&typeof e=="object"&&"after"in e)}function i3(e){return!!(e&&typeof e=="object"&&"before"in e)}function a3(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function o3(e,n){var t,r=n.from,i=n.to;if(r&&i){var a=zr(i,r)<0;a&&(t=[i,r],r=t[0],i=t[1]);var l=zr(e,r)>=0&&zr(i,e)>=0;return l}return i?qn(i,e):r?qn(r,e):!1}function s3(e){return ju(e)}function l3(e){return Array.isArray(e)&&e.every(ju)}function c3(e,n){return n.some(function(t){if(typeof t=="boolean")return t;if(s3(t))return qn(e,t);if(l3(t))return t.includes(e);if(n3(t))return o3(e,t);if(a3(t))return t.dayOfWeek.includes(e.getDay());if(t3(t)){var r=zr(t.before,e),i=zr(t.after,e),a=r>0,l=i<0,s=uu(t.before,t.after);return s?l&&a:a||l}return r3(t)?zr(e,t.after)>0:i3(t)?zr(t.before,e)>0:typeof t=="function"?t(e):!1})}function af(e,n,t){var r=Object.keys(n).reduce(function(a,l){var s=n[l];return c3(e,s)&&a.push(l),a},[]),i={};return r.forEach(function(a){return i[a]=!0}),t&&!Ou(e,t)&&(i.outside=!0),i}function u3(e,n){for(var t=Wn(e[0]),r=Fu(e[e.length-1]),i,a,l=t;l<=r;){var s=af(l,n),c=!s.disabled&&!s.hidden;if(!c){l=On(l,1);continue}if(s.selected)return l;s.today&&!a&&(a=l),i||(i=l),l=On(l,1)}return a||i}var f3=365;function L0(e,n){var t=n.moveBy,r=n.direction,i=n.context,a=n.modifiers,l=n.retry,s=l===void 0?{count:0,lastFocused:e}:l,c=i.weekStartsOn,f=i.fromDate,d=i.toDate,b=i.locale,v={day:On,week:cu,month:Nr,year:s5,startOfWeek:function(E){return i.ISOWeek?pa(E):Vr(E,{locale:b,weekStartsOn:c})},endOfWeek:function(E){return i.ISOWeek?Ud(E):Du(E,{locale:b,weekStartsOn:c})}},p=v[t](e,r==="after"?1:-1);r==="before"&&f?p=l5([f,p]):r==="after"&&d&&(p=c5([d,p]));var N=!0;if(a){var L=af(p,a);N=!L.disabled&&!L.hidden}return N?p:s.count>f3?s.lastFocused:L0(p,{moveBy:t,direction:r,context:i,modifiers:a,retry:Ke(Ke({},s),{count:s.count+1})})}var k0=Ue.createContext(void 0);function h3(e){var n=ws(),t=S0(),r=Ue.useState(),i=r[0],a=r[1],l=Ue.useState(),s=l[0],c=l[1],f=u3(n.displayMonths,t),d=i??
207(s&&n.isDateDisplayed(s))?s:f,b=function(){c(i),a(void 0)},v=function(E){a(E)},p=Rt(),N=function(E,_){if(i){var U=L0(i,{moveBy:E,direction:_,context:p,modifiers:t});qn(i,U)||(n.goToDate(U,i),v(U))}},L={focusedDay:i,focusTarget:d,blur:b,focus:v,focusDayAfter:function(){return N("day","after")},focusDayBefore:function(){return N("day","before")},focusWeekAfter:function(){return N("week","after")},focusWeekBefore:function(){return N("week","before")},focusMonthBefore:function(){return N("month","before")},focusMonthAfter:function(){return N("month","after")},focusYearBefore:function(){return N("year","before")},focusYearAfter:function(){return N("year","after")},focusStartOfWeek:function(){return N("startOfWeek","before")},focusEndOfWeek:function(){return N("endOfWeek","after")}};return C.jsx(k0.Provider,{value:L,children:e.children})}function of(){var e=Ue.useContext(k0);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function d3(e,n){var t=S0(),r=af(e,t,n);return r}var sf=Ue.createContext(void 0);function p3(e){if(!Bl(e.initialProps)){var n={selected:void 0};return C.jsx(sf.Provider,{value:n,children:e.children})}return C.jsx(g3,{initialProps:e.initialProps,children:e.children})}function g3(e){var n=e.initialProps,t=e.children,r=function(a,l,s){var c,f,d;if((c=n.onDayClick)===null||c===void 0||c.call(n,a,l,s),l.selected&&!n.required){(f=n.onSelect)===null||f===void 0||f.call(n,void 0,a,l,s);return}(d=n.onSelect)===null||d===void 0||d.call(n,a,a,l,s)},i={selected:n.selected,onDayClick:r};return C.jsx(sf.Provider,{value:i,children:t})}function P0(){var e=Ue.useContext(sf);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function m3(e,n){var t=Rt(),r=P0(),i=tf(),a=rf(),l=of(),s=l.focusDayAfter,c=l.focusDayBefore,f=l.focusWeekAfter,d=l.focusWeekBefore,b=l.blur,v=l.focus,p=l.focusMonthBefore,N=l.focusMonthAfter,L=l.focusYearBefore,E=l.focusYearAfter,_=l.focusStartOfWeek,U=l.focusEndOfWeek,B=function(te){var G,he,Ae,be;Bl(t)?(G=r.onDayClick)===null||G===void 0||G.call(r,e,n,te):vs(t)?(he=i.onDayClick)===null||he===void 0||he.call(i,e,n,te):bs(t)?(Ae=a.onDayClick)===null||Ae===void 0||Ae.call(a,e,n,te):(be=t.onDayClick)===null||be===void 0||be.call(t,e,n,te)},F=function(te){var G;v(e),(G=t.onDayFocus)===null||G===void 0||G.call(t,e,n,te)},ee=function(te){var G;b(),(G=t.onDayBlur)===null||G===void 0||G.call(t,e,n,te)},le=function(te){var G;(G=t.onDayMouseEnter)===null||G===void 0||G.call(t,e,n,te)},oe=function(te){var G;(G=t.onDayMouseLeave)===null||G===void 0||G.call(t,e,n,te)},K=function(te){var G;(G=t.onDayPointerEnter)===null||G===void 0||G.call(t,e,n,te)},I=function(te){var G;(G=t.onDayPointerLeave)===null||G===void 0||G.call(t,e,n,te)},V=function(te){var G;(G=t.onDayTouchCancel)===null||G===void 0||G.call(t,e,n,te)},S=function(te){var G;(G=t.onDayTouchEnd)===null||G===void 0||G.call(t,e,n,te)},j=function(te){var G;(G=t.onDayTouchMove)===null||G===void 0||G.call(t,e,n,te)},W=function(te){var G;(G=t.onDayTouchStart)===null||G===void 0||G.call(t,e,n,te)},H=function(te){var G;(G=t.onDayKeyUp)===null||G===void 0||G.call(t,e,n,te)},se=function(te){var G;switch(te.key){case"ArrowLeft":te.preventDefault(),te.stopPropagation(),t.dir==="rtl"?s():c();break;case"ArrowRight":te.preventDefault(),te.stopPropagation(),t.dir==="rtl"?c():s();break;case"ArrowDown":te.preventDefault(),te.stopPropagation(),f();break;case"ArrowUp":te.preventDefault(),te.stopPropagation(),d();break;case"PageUp":te.preventDefault(),te.stopPropagation(),te.shiftKey?L():p();break;case"PageDown":te.preventDefault(),te.stopPropagation(),te.shiftKey?E():N();break;case"Home":te.preventDefault(),te.stopPropagation(),_();break;case"End":te.preventDefault(),te.stopPropagation(),U();break}(G=t.onDayKeyDown)===null||G===void 0||G.call(t,e,n,te)},fe={onClick:B,onFocus:F,onBlur:ee,onKeyDown:se,onKeyUp:H,onMouseEnter:le,onMouseLeave:oe,onPointerEnter:K,onPointerLeave:I,onTouchCancel:V,onTouchEnd:S,onTouchMove:j,onTouchStart:W};return fe}function v3(){var e=Rt(),n=P0(),t=tf(),r=rf(),i=Bl(e)?n.selected:vs(e)?t.selected:bs(e)?r.selected:void 0;return i}function b3(e){return Object.values(Sr).includes(e)}function w3(e,n){var t=[e.classNames.day];
207return Object.keys(n).forEach(function(r){var i=e.modifiersClassNames[r];if(i)t.push(i);else if(b3(r)){var a=e.classNames["day_".concat(r)];a&&t.push(a)}}),t}function y3(e,n){var t=Ke({},e.styles.day);return Object.keys(n).forEach(function(r){var i;t=Ke(Ke({},t),(i=e.modifiersStyles)===null||i===void 0?void 0:i[r])}),t}function _3(e,n,t){var r,i,a,l=Rt(),s=of(),c=d3(e,n),f=m3(e,c),d=v3(),b=!!(l.onDayClick||l.mode!=="default");Ue.useEffect(function(){var le;c.outside||s.focusedDay&&b&&qn(s.focusedDay,e)&&((le=t.current)===null||le===void 0||le.focus())},[s.focusedDay,e,t,b,c.outside]);var v=w3(l,c).join(" "),p=y3(l,c),N=!!(c.outside&&!l.showOutsideDays||c.hidden),L=(a=(i=l.components)===null||i===void 0?void 0:i.DayContent)!==null&&a!==void 0?a:zw,E=C.jsx(L,{date:e,displayMonth:n,activeModifiers:c}),_={style:p,className:v,children:E,role:"gridcell"},U=s.focusTarget&&qn(s.focusTarget,e)&&!c.outside,B=s.focusedDay&&qn(s.focusedDay,e),F=Ke(Ke(Ke({},_),(r={disabled:c.disabled,role:"gridcell"},r["aria-selected"]=c.selected,r.tabIndex=B||U?0:-1,r)),f),ee={isButton:b,isHidden:N,activeModifiers:c,selectedDays:d,buttonProps:F,divProps:_};return ee}function x3(e){var n=Ue.useRef(null),t=_3(e.date,e.displayMonth,n);return t.isHidden?C.jsx("div",{role:"gridcell"}):t.isButton?C.jsx(El,Ke({name:"day",ref:n},t.buttonProps)):C.jsx("div",Ke({},t.divProps))}function N3(e){var n=e.number,t=e.dates,r=Rt(),i=r.onWeekNumberClick,a=r.styles,l=r.classNames,s=r.locale,c=r.labels.labelWeekNumber,f=r.formatters.formatWeekNumber,d=f(Number(n),{locale:s});if(!i)return C.jsx("span",{className:l.weeknumber,style:a.weeknumber,children:d});var b=c(Number(n),{locale:s}),v=function(p){i(n,t,p)};return C.jsx(El,{name:"week-number","aria-label":b,className:l.weeknumber,style:a.weeknumber,onClick:v,children:d})}function A3(e){var n,t,r=Rt(),i=r.styles,a=r.classNames,l=r.showWeekNumber,s=r.components,c=(n=s==null?void 0:s.Day)!==null&&n!==void 0?n:x3,f=(t=s==null?void 0:s.WeekNumber)!==null&&t!==void 0?t:N3,d;return l&&(d=C.jsx("td",{className:a.cell,style:i.cell,children:C.jsx(f,{number:e.weekNumber,dates:e.dates})})),C.jsxs("tr",{className:a.row,style:i.row,children:[d,e.dates.map(function(b){return C.jsx("td",{className:a.cell,style:i.cell,role:"presentation",children:C.jsx(c,{displayMonth:e.displayMonth,date:b})},lp(b))})]})}function Pd(e,n,t){for(var r=t!=null&&t.ISOWeek?Ud(n):Du(n,t),i=t!=null&&t.ISOWeek?pa(e):Vr(e,t),a=zr(r,i),l=[],s=0;s<=a;s++)l.push(On(i,s));var c=l.reduce(function(f,d){var b=t!=null&&t.ISOWeek?zd(d):Hd(d,t),v=f.find(function(p){return p.weekNumber===b});return v?(v.dates.push(d),f):(f.push({weekNumber:b,dates:[d]}),f)},[]);return c}function S3(e,n){var t=Pd(Wn(e),Fu(e),n);if(n!=null&&n.useFixedWeeks){var r=up(e,n);if(r<6){var i=t[t.length-1],a=i.dates[i.dates.length-1],l=cu(a,6-r),s=Pd(cu(a,1),l,n);t.push.apply(t,s)}}return t}function L3(e){var n,t,r,i=Rt(),a=i.locale,l=i.classNames,s=i.styles,c=i.hideHead,f=i.fixedWeeks,d=i.components,b=i.weekStartsOn,v=i.firstWeekContainsDate,p=i.ISOWeek,N=S3(e.displayMonth,{useFixedWeeks:!!f,ISOWeek:p,locale:a,weekStartsOn:b,firstWeekContainsDate:v}),L=(n=d==null?void 0:d.Head)!==null&&n!==void 0?n:qw,E=(t=d==null?void 0:d.Row)!==null&&t!==void 0?t:A3,_=(r=d==null?void 0:d.Footer)!==null&&r!==void 0?r:Rw;return C.jsxs("table",{id:e.id,className:l.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&C.jsx(L,{}),C.jsx("tbody",{className:l.tbody,style:s.tbody,children:N.map(function(U){return C.jsx(E,{displayMonth:e.displayMonth,dates:U.dates,weekNumber:U.weekNumber},U.weekNumber)})}),C.jsx(_,{displayMonth:e.displayMonth})]})}function k3(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var P3=k3()?Ue.useLayoutEffect:Ue.useEffect,su=!1,C3=0;function Cd(){return"react-day-picker-".concat(++C3)}function E3(e){var n,t=e??(su?Cd():null),r=Ue.useState(t),i=r[0],a=r[1];return P3(function(){i===null&&a(Cd())},[]),Ue.useEffect(function(){su===!1&&(su=!0)},[]),(n=e??i)!==null&&n!==void 0?n:void 0}function M3(e){var n,t,r=Rt(),i=r.dir,a=r.classNames,l=r.styles,s=r.components,c=ws().displayMonths,f=E3(r.id?"".concat(r.id,"-").concat(e.displayIndex):void 0),d=r.id?"".concat(r.id,"-grid-").concat(e.displayIndex):void 0,b=[a.month],v=l.month,p=e.displayIndex===0,N=e.displayIndex===c.length-1,L=!p&&!N;i==="rtl"&&(n=[p,N],N=n[0],p=n[1]),p&&(b.push(a.caption_start),v=Ke(Ke({},v),l.caption_start)),N&&(b.push(a.caption_end),v=Ke(Ke({},v),l.caption_end)),L&&(b.push(a.caption_between),v=Ke(Ke({},v),l.caption_between));var E=(t=s==null?void 0:s.Caption)!==null&&t!==void 0?t:Tw;return C.jsxs("div",{className:b.join(" "),style:v,children:[C.jsx(E,{id:f,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),C.jsx(L3,{id:d,"aria-labelledby":f,displayMonth:e.displayMonth})]},e.displayIndex)}function I3(e){var n=Rt(),t=n.classNames,r=n.styles;return C.jsx("div",{className:t.months,style:r.months,children:e.children})}function j3(e){var n,t,r=e.initialProps,i=Rt(),a=of(),l=ws(),s=Ue.useState(!1),c=s[0],f=s[1];Ue.useEffect(function(){i.initialFocus&&a.focusTarget&&(c||(a.focus(a.focusTarget),f(!0)))},[i.initialFocus,c,a.focus,a.focusTarget,a]);var d=[i.classNames.root,i.className];i.numberOfMonths>1&&d.push(i.classNames.multiple_months),i.showWeekNumber&&d.push(i.classNames.with_weeknumber);var b=Ke(Ke({},i.styles.root),i.style),v=Object.keys(r).filter(function(N){return N.startsWith("data-")}).reduce(function(N,L){var E;return Ke(Ke({},N),(E={},E[L]=r[L],E))},{}),p=(t=(n=r.components)===null||n===void 0?void 0:n.Months)!==null&&t!==void 0?t:I3;return C.jsx("div",Ke({className:d.join(" "),style:b,dir:i.dir,id:i.id,nonce:r.nonce,title:r.title,lang:r.lang},v,{children:C.jsx(p,{children:l.displayMonths.map(function(N,L){return C.jsx(M3,{displayIndex:L,displayMonth:N},L)})})}))}function F3(e){var n=e.children,t=iw(e,["children"]);return C.jsx(Nw,{initialProps:t,children:C.jsx(jw,{children:C.jsx(p3,{initialProps:t,children:C.jsx(Ww,{initialProps:t,children:C.jsx(Vw,{initialProps:t,children:C.jsx(e3,{children:C.jsx(h3,{children:n})})})})})})})}function D3(e){return C.jsx(F3,Ke({},e,{children:C.jsx(j3,{initialProps:e})}))}function C0({className:e,classNames:n,showOutsideDays:t=!0,...r}){return C.jsx(D3,{showOutsideDays:t,className:Dn("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:sp
207ace-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:Dn(Yf({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:Dn(Yf({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...n},components:{IconLeft:({...i})=>C.jsx(Od,{className:"h-4 w-4"}),IconRight:({...i})=>C.jsx(lu,{className:"h-4 w-4"})},...r})}C0.displayName="Calendar";var Ul="Popover",[E0,y4]=k2(Ul,[Ed]),ys=Ed(),[O3,qi]=E0(Ul),M0=e=>{const{__scopePopover:n,children:t,open:r,defaultOpen:i,onOpenChange:a,modal:l=!1}=e,s=ys(n),c=Ue.useRef(null),[f,d]=Ue.useState(!1),[b,v]=M2({prop:r,defaultProp:i??!1,onChange:a,caller:Ul});return C.jsx(I2,{...s,children:C.jsx(O3,{scope:n,contentId:W2(),triggerRef:c,open:b,onOpenChange:v,onOpenToggle:Ue.useCallback(()=>v(p=>!p),[v]),hasCustomAnchor:f,onCustomAnchorAdd:Ue.useCallback(()=>d(!0),[]),onCustomAnchorRemove:Ue.useCallback(()=>d(!1),[]),modal:l,children:t})})};M0.displayName=Ul;var I0="PopoverAnchor",T3=Ue.forwardRef((e,n)=>{const{__scopePopover:t,...r}=e,i=qi(I0,t),a=ys(t),{onCustomAnchorAdd:l,onCustomAnchorRemove:s}=i;return Ue.useEffect(()=>(l(),()=>s()),[l,s]),C.jsx(Md,{...a,...r,ref:n})});T3.displayName=I0;var j0="PopoverTrigger",F0=Ue.forwardRef((e,n)=>{const{__scopePopover:t,...r}=e,i=qi(j0,t),a=ys(t),l=Id(n,i.triggerRef),s=C.jsx(jd.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":B0(i.open),...r,ref:l,onClick:$o(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:C.jsx(Md,{asChild:!0,...a,children:s})});F0.displayName=j0;var lf="PopoverPortal",[R3,B3]=E0(lf,{forceMount:void 0}),D0=e=>{const{__scopePopover:n,forceMount:t,children:r,container:i}=e,a=qi(lf,n);return C.jsx(R3,{scope:n,forceMount:t,children:C.jsx(Fd,{present:t||a.open,children:C.jsx(j2,{asChild:!0,container:i,children:r})})})};D0.displayName=lf;var ho="PopoverContent",O0=Ue.forwardRef((e,n)=>{const t=B3(ho,e.__scopePopover),{forceMount:r=t.forceMount,...i}=e,a=qi(ho,e.__scopePopover);return C.jsx(Fd,{present:r||a.open,children:a.modal?C.jsx(q3,{...i,ref:n}):C.jsx(z3,{...i,ref:n})})});O0.displayName=ho;var U3=F2("PopoverContent.RemoveScroll"),q3=Ue.forwardRef((e,n)=>{const t=qi(ho,e.__scopePopover),r=Ue.useRef(null),i=Id(n,r),a=Ue.useRef(!1);return Ue.useEffect(()=>{const l=r.current;if(l)return B2(l)},[]),C.jsx(U2,{as:U3,allowPinchZoom:!0,children:C.jsx(T0,{...e,ref:i,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$o(e.onCloseAutoFocus,l=>{var s;l.preventDefault(),a.current||(s=t.triggerRef.current)==null||s.focus()}),onPointerDownOutside:$o(e.onPointerDownOutside,l=>{const s=l.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,f=s.button===2||c;a.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:$o(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),z3=Ue.forwardRef((e,n)=>{const t=qi(ho,e.__scopePopover),r=Ue.useRef(!1),i=Ue.useRef(!1);return C.jsx(T0,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var l,s;(l=e.onCloseAutoFocus)==null||l.call(e,a),a.defaultPrevented||(r.current||(s=t.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:a=>{var c,f;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=a.target;((f=t.triggerRef.current)==null?void 0:f.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}
207),T0=Ue.forwardRef((e,n)=>{const{__scopePopover:t,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,...b}=e,v=qi(ho,t),p=ys(t);return q2(),C.jsx(z2,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:C.jsx(P2,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:f,onDismiss:()=>v.onOpenChange(!1),children:C.jsx(C2,{"data-state":B0(v.open),role:"dialog",id:v.contentId,...p,...b,ref:n,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),R0="PopoverClose",W3=Ue.forwardRef((e,n)=>{const{__scopePopover:t,...r}=e,i=qi(R0,t);return C.jsx(jd.button,{type:"button",...r,ref:n,onClick:$o(e.onClick,()=>i.onOpenChange(!1))})});W3.displayName=R0;var H3="PopoverArrow",Y3=Ue.forwardRef((e,n)=>{const{__scopePopover:t,...r}=e,i=ys(t);return C.jsx(E2,{...i,...r,ref:n})});Y3.displayName=H3;function B0(e){return e?"open":"closed"}var V3=M0,G3=F0,$3=D0,U0=O0;const Z3=V3,K3=G3,q0=Ue.forwardRef(({className:e,align:n="center",sideOffset:t=4,...r},i)=>C.jsx($3,{children:C.jsx(U0,{ref:i,align:n,sideOffset:t,className:Dn("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));q0.displayName=U0.displayName;const X3=[{id:"skin",title:"চর্মরোগ ও স্কিন কেয়ার",desc:"দাদ, একজিমা, স্ক্যাবিস, ব্রণ, এলার্জি",fee:250,icon:Td,accent:"from-pink-500/30 to-rose-500/10"},{id:"sex",title:"যৌন স্বাস্থ্য পরামর্শ",desc:"পুরুষ ও মহিলাদের গোপনীয় সমস্যা",fee:250,icon:X2,accent:"from-red-500/30 to-orange-500/10"},{id:"general",title:"জেনারেল ফিজিশিয়ান",desc:"জ্বর, কাশি, পেট ব্যথা, সাধারণ অসুখ",fee:250,icon:Dd,accent:"from-sky-500/30 to-cyan-500/10"},{id:"child",title:"শিশু স্বাস্থ্য",desc:"নবজাতক ও শিশুদের সকল সমস্যা",fee:250,icon:R2,accent:"from-amber-500/30 to-yellow-500/10"},{id:"mental",title:"মানসিক স্বাস্থ্য",desc:"বিষণ্ণতা, ঘুম, এংজাইটি",fee:250,icon:J2,accent:"from-violet-500/30 to-purple-500/10"},{id:"chronic",title:"ডায়াবেটিস ও প্রেসার",desc:"দীর্ঘমেয়াদি রোগ ব্যবস্থাপনা",fee:250,icon:K2,accent:"from-emerald-500/30 to-teal-500/10"}],J3=["10:00 AM","11:00 AM","12:00 PM","03:00 PM","04:00 PM","05:00 PM","06:00 PM","07:00 PM","08:00 PM","09:00 PM","10:00 PM","11:00 PM"],Za=["Service","Date & Time","Your Details","Payment","Confirmed"],Q3=()=>{const[e,n]=Ue.useState(0),[t,r]=Ue.useState(null),[i,a]=Ue.useState(),[l,s]=Ue.useState(""),[c,f]=Ue.useState({name:"",phone:"",age:"",gender:"",problem:"",trxId:""}),[d,b]=Ue.useState(""),[v,p]=Ue.useState({problem:"",medicines:"",instructions:"",doctorNotes:""}),[N,L]=Ue.useState(!1),E=I=>f({...c,[I.target.name]:I.target.value}),_=I=>p({...v,[I.target.name]:I.target.value}),U=()=>{if(e===0&&!t)return Rr.error("একটি সার্ভিস নির্বাচন করুন");if(e===1&&(!i||!l))return Rr.error("তারিখ ও সময় নির্বাচন করুন");if(e===2){if(!c.name.trim()||c.name.trim().length<2)return Rr.error("আপনার নাম লিখুন");if(!/^01[3-9]\d{8}$/.test(c.phone.trim()))return Rr.error("সঠিক ১১ সংখ্যার মোবাইল নম্বর দিন");if(!c.problem.trim()||c.problem.trim().length<5)return Rr.error("আপনার সমস্যা সংক্ষেপে লিখুন")}if(e===3){if(!c.trxId.trim()||c.trxId.trim().length<6)return Rr.error("সঠিক bKash TrxID দিন");const I=`DRS-${Date.now().toString(36).toUpperCase().slice(-6)}`;b(I),p({problem:c.problem,medicines:"",instructions:`পর্যাপ্ত পানি পান করুন।
208সুষম খাবার গ্রহণ করুন।
209নির্দেশিত সময়ে ঔষধ সেবন করুন।`,doctorNotes:""})}n(I=>Math.min(I+1,Za.length-1))},B=()=>n(I=>Math.max(I-1,0)),F=()=>{n(0),r(null),a(void 0),s(""),f({name:"",phone:"",age:"",gender:"",problem:"",trxId:""}),b(""),p({problem:"",medicines:"",instructions:"",doctorNotes:""})},ee=Ue.useMemo(()=>b0(v.medicines),[v.medicines]),le=v.medicines.trim().length>0&&ee.length===0,oe=async I=>{if(!N){if(le){Rr.error("ঔষধের তালিকা পড়া যাচ্ছে না — প্রতি লাইনে একটি ঔষধ লিখুন");return}L(!0);try{await rw({orderId:d,patientName:c.name,phone:c.phone,age:c.age,gender:c.gender,service:(t==null?void 0:t.t
209itle)??"",date:i?fr(i,"do MMMM yyyy"):"",time:l,problem:v.problem,medicines:ee.join(`
210`),instructions:v.instructions,doctorNotes:v.doctorNotes,fee:(t==null?void 0:t.fee)??0,trxId:c.trxId},I),Rr.success(I==="print"?"প্রিন্ট ডায়লগ ওপেন হচ্ছে":"প্রেসক্রিপশন ডাউনলোড শুরু হয়েছে")}catch{Rr.error("PDF তৈরি করতে সমস্যা হয়েছে")}finally{L(!1)}}},K=Ue.useMemo(()=>(e+1)/Za.length*100,[e]);return C.jsx(D2,{children:C.jsxs("section",{className:"container max-w-6xl mx-auto px-4 py-12",children:[C.jsxs("div",{className:"text-center space-y-4 mb-10 animate-fade-in-up",children:[C.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full glass px-4 py-1.5 text-xs font-semibold text-accent-glow",children:[C.jsx(Td,{className:"h-3.5 w-3.5"})," Book Now · ৫ মিনিটে কনফার্ম"]}),C.jsxs("h1",{className:"text-4xl md:text-6xl font-extrabold tracking-tight",children:[C.jsx("span",{className:"gradient-hero-text",children:"Appointment "}),C.jsx("span",{className:"font-serif italic font-normal",children:"Booking"})]}),C.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto",children:"Telemedicine — অনলাইন টেলিমেডিসিন কনসালটেশন। ৪ ধাপে আপনার অ্যাপয়েন্টমেন্ট নিশ্চিত করুন।"})]}),C.jsxs("div",{className:"glass-card rounded-3xl p-5 md:p-6 mb-6",children:[C.jsx("div",{className:"flex items-center justify-between mb-4",children:Za.map((I,V)=>C.jsxs("div",{className:"flex-1 flex items-center",children:[C.jsx("div",{className:Dn("h-9 w-9 rounded-full flex items-center justify-center text-xs font-bold transition-smooth shrink-0",V<e&&"bg-success text-success-foreground",V===e&&"gradient-primary text-primary-foreground shadow-glow scale-110",V>e&&"bg-background/60 border border-border/60 text-muted-foreground"),children:V<e?C.jsx(Vf,{className:"h-4 w-4"}):V+1}),V<Za.length-1&&C.jsx("div",{className:Dn("h-0.5 flex-1 mx-2 transition-smooth",V<e?"bg-success":"bg-border/60")})]},I))}),C.jsxs("div",{className:"flex items-center justify-between text-xs",children:[C.jsxs("span",{className:"font-semibold text-foreground/90",children:["Step ",e+1," / ",Za.length,": ",Za[e]]}),C.jsxs("span",{className:"text-muted-foreground",children:[Math.round(K),"% complete"]})]})]}),C.jsxs("div",{className:"grid lg:grid-cols-[1fr_360px] gap-6",children:[C.jsxs("div",{className:"glass-card rounded-3xl p-6 md:p-8 min-h-[500px]",children:[e===0&&C.jsxs("div",{className:"animate-fade-in-up space-y-5",children:[C.jsxs("div",{children:[C.jsxs("h2",{className:"text-2xl font-extrabold flex items-center gap-2",children:[C.jsx(Dd,{className:"h-6 w-6 text-primary-glow"})," সার্ভিস নির্বাচন করুন"]}),C.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"আপনি কোন বিষয়ে পরামর্শ নিতে চান?"})]}),C.jsx("div",{className:"grid sm:grid-cols-2 gap-3",children:X3.map(I=>{const V=I.icon,S=(t==null?void 0:t.id)===I.id;return C.jsxs("button",{onClick:()=>r(I),className:Dn("text-left rounded-2xl p-4 border transition-smooth relative overflow-hidden group",S?"border-primary-glow shadow-glow bg-primary/5":"border-border/60 hover:border-primary-glow/50 bg-background/40"),children:[C.jsx("div",{className:Dn("absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-100 transition-smooth",I.accent)}),C.jsxs("div",{className:"relative flex items-start gap-3",children:[C.jsx("div",{className:Dn("h-11 w-11 rounded-xl flex items-center justify-center shrink-0",S?"gradient-primary text-primary-foreground":"bg-background/60 border border-border/60"),children:C.jsx(V,{className:"h-5 w-5"})}),C.jsxs("div",{className:"flex-1 min-w-0",children:[C.jsx("div",{className:"font-bold text-sm leading-snug",children:I.title}),C.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:I.desc}),C.jsxs("div",{className:"text-xs font-semibold mt-2 text-primary-glow",children:["ফি: ৳",I.fee]})]}),S&&C.jsx(Vf,{className:"h-5 w-5 text-success shrink-0"})]})]},I.id)})})]}),e===1&&C.jsxs("div",{className:"animate-fade-in-up space-y-5",children:[C.jsxs("div",{children:[C.jsxs("h2",{className:"text-2xl font-extrabold flex items-center gap-2",children:[C.jsx(O2,{className:"h-6 w-6 text-primary-glow"})," তারিখ ও সময় নির্বাচন"]}),C.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"আপনার সুবিধামতো একটি স্লট বেছে নিন।"})]}),C.jsxs("div",{className:"grid md:grid-cols-2 gap-5",children:[C.jsxs("div",{className:"space-y-2",children:[C.jsxs("label",{className:"text-sm font-semibold flex items-center gap-2",children:[C.jsx(Gf,{className:"h-4 w-4"})," তারিখ"]}),C.jsxs(Z3,{children:[C.jsx(K3,{asChild:!0,children:C.jsxs("button",{className:Dn("w-full h-12 rounded-xl bg-background/60 border border-border/60 px-4 text-sm flex items-center justify-between hover:border-primary-glow/50 transition-smooth",!i&&"text-muted-foreground"),children:[i?fr(i,"EEEE, do MMMM yyyy"):"তারিখ নির্বাচন করুন",C.jsx(Gf,{className:"h-4 w-4 opacity-60"})]})}),C.jsx(q0,{className:"w-auto p-0",align:"start",children:C.jsx(C0,{mode:"single",selected:i,onSelect:a,disabled:I=>I<new Date(new Date().setHours(0,0,0,0))||I>new Date(Date.now()+1e3*60*60*24*30),initialFocus:!0,className:Dn("p-3 pointer-events-auto")})})]})]}),C.jsxs("div",{className:"space-y-2",children:[C.jsxs("label",{className:"text-sm font-semibold flex items-center gap-2",children:[C.jsx(H2,{className:"h-4 w-4"})," সময়"]}),C.jsx("div",{className:"grid grid-cols-3 gap-2",children:J3.map(I=>C.jsx("button",{onClick:()=>s(I),className:Dn("h-11 rounded-lg text-xs font-semibold border transition-smooth",l===I?"gradient-primary text-primary-foreground border-transparent shadow-glow":"bg-background/60 border-border/60 hover:border-primary-glow/50"),children:I},I))})]})]})]}
210),e===2&&C.jsxs("div",{className:"animate-fade-in-up space-y-5",children:[C.jsxs("div",{children:[C.jsxs("h2",{className:"text-2xl font-extrabold flex items-center gap-2",children:[C.jsx($f,{className:"h-6 w-6 text-primary-glow"})," আপনার তথ্য"]}),C.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"প্রেসক্রিপশন তৈরির জন্য সঠিক তথ্য দিন।"})]}),C.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[C.jsx(hl,{label:"পূর্ণ নাম",name:"name",value:c.name,onChange:E,placeholder:"Md. Karim Hossain",icon:$f}),C.jsx(hl,{label:"মোবাইল নম্বর",name:"phone",value:c.phone,onChange:E,placeholder:"01XXXXXXXXX",icon:Y2,type:"tel"}),C.jsx(hl,{label:"বয়স",name:"age",value:c.age,onChange:E,placeholder:"যেমন: 28",type:"number"}),C.jsxs("div",{className:"space-y-1.5",children:[C.jsx("label",{className:"text-sm font-semibold",children:"লিঙ্গ"}),C.jsxs("select",{name:"gender",value:c.gender,onChange:E,className:"w-full h-12 rounded-xl bg-background/60 border border-border/60 px-4 text-sm focus:outline-none focus:ring-2 focus:ring-primary-glow/50",children:[C.jsx("option",{value:"",children:"নির্বাচন করুন"}),C.jsx("option",{value:"male",children:"পুরুষ"}),C.jsx("option",{value:"female",children:"মহিলা"}),C.jsx("option",{value:"other",children:"অন্যান্য"})]})]}),C.jsxs("div",{className:"md:col-span-2 space-y-1.5",children:[C.jsxs("label",{className:"text-sm font-semibold flex items-center gap-2",children:[C.jsx(V2,{className:"h-4 w-4"})," আপনার সমস্যা সংক্ষেপে"]}),C.jsx("textarea",{name:"problem",value:c.problem,onChange:E,rows:4,placeholder:"আপনার শারীরিক সমস্যা, কতদিন যাবৎ, পূর্বে কোনো ঔষধ সেবন করেছেন কিনা...",className:"w-full rounded-xl bg-background/60 border border-border/60 px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-primary-glow/50 resize-none"})]})]})]}),e===3&&C.jsxs("div",{className:"animate-fade-in-up space-y-5",children:[C.jsxs("div",{children:[C.jsxs("h2",{className:"text-2xl font-extrabold flex items-center gap-2",children:[C.jsx(r5,{className:"h-6 w-6 text-primary-glow"})," bKash পেমেন্ট"]}),C.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"পেমেন্ট সম্পন্ন করে TrxID সাবমিট করুন।"})]}),C.jsxs("div",{className:"rounded-2xl glass-strong border-gradient p-6 text-center relative overflow-hidden",children:[C.jsx("div",{className:"absolute inset-0 gradient-aurora opacity-20"}),C.jsxs("div",{className:"relative",children:[C.jsx("p",{className:"text-xs text-muted-foreground tracking-wider uppercase font-semibold",children:"bKash Personal Number"}),C.jsxs("div",{className:"flex items-center justify-center gap-3 mt-2",children:[C.jsx("p",{className:"text-3xl font-extrabold gradient-hero-text",children:"01718276519"}),C.jsx("button",{onClick:()=>{navigator.clipboard.writeText("01718276519"),Rr.success("নম্বর কপি হয়েছে")},className:"h-9 w-9 rounded-lg bg-background/60 border border-border/60 flex items-center justify-center hover:border-primary-glow/50 transition-smooth","aria-label":"Copy number",children:C.jsx(G2,{className:"h-4 w-4"})})]}),C.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"(Send Money — Personal)"}),C.jsxs("div",{className:"mt-4 inline-flex items-center gap-2 rounded-full bg-accent/20 border border-accent/40 px-4 py-1.5",children:[C.jsx("span",{className:"text-xs font-semibold",children:"পরিশোধযোগ্য:"}),C.jsxs("span",{className:"text-lg font-extrabold text-accent-glow",children:["৳",(t==null?void 0:t.fee)??0]})]})]})]}),C.jsx("ol",{className:"space-y-2.5 text-sm",children:["bKash অ্যাপ ওপেন করে Send Money সিলেক্ট করুন",`01718276519 নম্বরে ৳${(t==null?void 0:t.fee)??0} পাঠান`,"Reference হিসেবে আপনার নাম লিখুন","প্রাপ্ত TrxID টি নিচে সাবমিট করুন"].map((I,V)=>C.jsxs("li",{className:"flex items-start gap-3",children:[C.jsx("span",{className:"h-6 w-6 rounded-full gradient-primary text-primary-foreground text-xs font-bold flex items-center justify-center shrink-0",children:V+1}
210),C.jsx("span",{className:"text-foreground/90",children:I})]},V))}),C.jsx(hl,{label:"bKash TrxID",name:"trxId",value:c.trxId,onChange:E,placeholder:"যেমন: 9A8B7C6D5E"})]}),e===4&&C.jsxs("div",{className:"animate-fade-in-up text-center space-y-5 py-6",children:[C.jsx("div",{className:"inline-flex h-20 w-20 rounded-full gradient-primary items-center justify-center shadow-glow animate-bounce-slow",children:C.jsx(e5,{className:"h-10 w-10 text-primary-foreground"})}),C.jsxs("div",{children:[C.jsx("h2",{className:"text-3xl font-extrabold gradient-hero-text",children:"অ্যাপয়েন্টমেন্ট কনফার্মড!"}),C.jsxs("p",{className:"text-muted-foreground mt-2",children:["ধন্যবাদ ",c.name,"! আমরা শীঘ্রই আপনার সাথে যোগাযোগ করব।"]})]}),C.jsxs("div",{className:"rounded-2xl glass-strong p-5 text-left max-w-md mx-auto space-y-2.5 text-sm",children:[C.jsx(xr,{k:"Booking ID",v:d,highlight:!0}),C.jsx(xr,{k:"সার্ভিস",v:(t==null?void 0:t.title)??""}),C.jsx(xr,{k:"ডাক্তার",v:"Telemedicine"}),C.jsx(xr,{k:"তারিখ",v:i?fr(i,"do MMMM yyyy"):""}),C.jsx(xr,{k:"সময়",v:l}),C.jsx(xr,{k:"রোগী",v:`${c.name} (${c.phone})`}),C.jsx(xr,{k:"পরিশোধিত",v:`৳${(t==null?void 0:t.fee)??0} · TrxID: ${c.trxId}`})]}),C.jsx("p",{className:"text-xs text-muted-foreground",children:"নির্ধারিত সময়ের ৫ মিনিট আগে আমাদের WhatsApp এ অনলাইন থাকুন।"}),C.jsxs("div",{className:"rounded-2xl glass-strong border-gradient p-6 max-w-2xl mx-auto text-left relative overflow-hidden",children:[C.jsx("div",{className:"absolute inset-0 gradient-aurora opacity-15"}),C.jsxs("div",{className:"relative space-y-4",children:[C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx("div",{className:"h-11 w-11 rounded-2xl gradient-primary flex items-center justify-center shadow-glow shrink-0",children:C.jsx($2,{className:"h-5 w-5 text-primary-foreground"})}),C.jsxs("div",{className:"flex-1 min-w-0",children:[C.jsx("div",{className:"font-extrabold",children:"প্রেসক্রিপশন এডিট করুন"}),C.jsx("p",{className:"text-xs text-muted-foreground",children:"ডাউনলোড বা প্রিন্টের আগে আপনার তথ্য আপডেট করতে পারেন। QR কোড স্ক্যান করে এই বুকিং ভেরিফাই করা যাবে।"})]})]}),C.jsxs("div",{className:"space-y-3",children:[C.jsxs("div",{className:"space-y-1.5",children:[C.jsx("label",{className:"text-xs font-semibold text-muted-foreground",children:"CHIEF COMPLAINT / সমস্যা"}),C.jsx("textarea",{name:"problem",value:v.problem,onChange:_,rows:2,className:"w-full rounded-lg bg-background/60 border border-border/60 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-glow/50 resize-none"})]}),C.jsxs("div",{className:"space-y-1.5",children:[C.jsxs("div",{className:"flex items-center justify-between",children:[C.jsxs("label",{className:"text-xs font-semibold text-muted-foreground",children:["MEDICINES / ঔষধ ",C.jsx("span",{className:"text-[10px] font-normal",children:"(এক লাইনে একটি)"})]}),C.jsxs("span",{className:Dn("text-[10px] font-semibold rounded-full px-2 py-0.5",le?"bg-destructive/15 text-destructive":ee.length>0?"bg-success/15 text-success":"bg-muted/30 text-muted-foreground"),children:[ee.length," item",ee.length===1?"":"s"," detected"]})]}),C.jsx("textarea",{name:"medicines",value:v.medicines,onChange:_,rows:4,placeholder:`যেমন:
211Tab. Napa 500mg — 1+0+1, খাবার পর, ৫ দিন
212Syp. Puridex — 2 চা চামচ দিনে ২ বার, ৭ দিন`,"aria-invalid":le,className:Dn("w-full rounded-lg bg-background/60 border px-3 py-2 text-sm focus:outline-none focus:ring-2 resize-none font-mono",le?"border-destructive/60 focus:ring-destructive/40":"border-border/60 focus:ring-primary-glow/50")}),ee.length>0&&C.jsx("div",{className:"rounded-lg bg-background/40 border border-border/40 p-2 space-y-0.5 max-h-28 overflow-y-auto",children:ee.map((I,V)=>C.jsxs("div",{className:"text-[11px] flex gap-2",children:[C.jsxs("span",{className:"text-accent-glow font-bold shrink-0",children:[V+1,"."]}
212),C.jsx("span",{className:"text-foreground/80 break-words",children:I})]},V))}),le&&C.jsx("p",{className:"text-[11px] text-destructive",children:"কোনো বৈধ ঔষধের লাইন পাওয়া যায়নি। প্রতিটি ঔষধ আলাদা লাইনে লিখুন।"})]}),C.jsxs("div",{className:"grid md:grid-cols-2 gap-3",children:[C.jsxs("div",{className:"space-y-1.5",children:[C.jsx("label",{className:"text-xs font-semibold text-muted-foreground",children:"INSTRUCTIONS / উপদেশ"}),C.jsx("textarea",{name:"instructions",value:v.instructions,onChange:_,rows:4,className:"w-full rounded-lg bg-background/60 border border-border/60 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-glow/50 resize-none"})]}),C.jsxs("div",{className:"space-y-1.5",children:[C.jsx("label",{className:"text-xs font-semibold text-muted-foreground",children:"DOCTOR'S NOTES"}),C.jsx("textarea",{name:"doctorNotes",value:v.doctorNotes,onChange:_,rows:4,placeholder:"ডাক্তারের অতিরিক্ত মন্তব্য, ফলো-আপ তারিখ, সতর্কতা ইত্যাদি...",className:"w-full rounded-lg bg-background/60 border border-border/60 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-glow/50 resize-none"})]})]})]}),C.jsxs("div",{className:"flex items-center justify-between gap-3 pt-2 border-t border-border/40",children:[C.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[C.jsx(n5,{className:"h-4 w-4 text-primary-glow"}),C.jsx("span",{children:"PDF এ ভেরিফিকেশন QR কোড অন্তর্ভুক্ত থাকবে"})]}),C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsxs("button",{onClick:()=>oe("print"),disabled:N,className:"inline-flex items-center gap-2 h-10 px-4 rounded-lg glass border border-border/60 text-sm font-bold hover:border-primary-glow/50 transition-smooth disabled:opacity-50",children:[C.jsx(t5,{className:"h-4 w-4"})," Print"]}),C.jsxs("button",{onClick:()=>oe("download"),disabled:N,className:"inline-flex items-center gap-2 h-10 px-4 rounded-lg gradient-primary text-primary-foreground text-sm font-bold shadow-glow hover:scale-[1.02] transition-bounce disabled:opacity-50",children:[C.jsx(Q2,{className:"h-4 w-4"})," Download PDF"]})]})]})]})]}),C.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3",children:[C.jsxs("a",{href:`https://wa.me/8801842525924?text=${encodeURIComponent(`আমার অ্যাপয়েন্টমেন্ট কনফার্ম করেছি।
213Booking ID: ${d}
214নাম: ${c.name}
215তারিখ: ${i?fr(i,"do MMMM yyyy"):""} ${l}`)}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 h-11 px-5 rounded-xl bg-success text-success-foreground font-bold hover:scale-105 transition-bounce",children:[C.jsx(Zf,{className:"h-4 w-4"})," WhatsApp এ জানান"]}),C.jsx("button",{onClick:F,className:"inline-flex items-center gap-2 h-11 px-5 rounded-xl glass border border-border/60 font-semibold hover:border-primary-glow/50 transition-smooth",children:"আরেকটি বুকিং"})]})]}),e<4&&C.jsxs("div",{className:"flex items-center justify-between mt-8 pt-6 border-t border-border/40",children:[C.jsxs("button",{onClick:B,disabled:e===0,className:"inline-flex items-center gap-2 h-11 px-5 rounded-xl glass border border-border/60 font-semibold hover:border-primary-glow/50 transition-smooth disabled:opacity-40 disabled:cursor-not-allowed",children:[C.jsx(Od,{className:"h-4 w-4"})," পেছনে"]}),C.jsxs("button",{onClick:U,className:"inline-flex items-center gap-2 h-11 px-6 rounded-xl gradient-primary text-primary-foreground font-bold shadow-glow hover:scale-[1.02] transition-bounce",children:[e===3?"কনফার্ম করুন":"পরবর্তী"," ",C.jsx(lu,{className:"h-4 w-4"})]})]})]}),C.jsxs("aside",{className:"space-y-5",children:[C.jsxs("div",{className:"glass-card rounded-3xl p-5 text-center",children:[C.jsx("div",{className:"h-32 w-32 mx-auto rounded-full overflow-hidden ring-4 ring-primary-glow/30 shadow-glow",children:C.jsx("img",{src:T2,alt:"Telemedicine — Telemedicine Specialist",className:"h-full w-full object-cover object-top"})}),C.jsx("h3",{className:"mt-3 font-extrabold",children:"Telemedicine"}),C.jsx("p",{className:"text-xs text-muted-foreground",children:"MBBS, Telemedicine Specialist"}),C.jsxs("div",{className:"flex items-center justify-center gap-1 mt-2 text-xs",children:[C.jsx("span",{className:"text-amber-400",children:"★★★★★"}),C.jsx("span",{className:"text-muted-foreground",children:"5.0 · 2,400+ রোগী"})]})]}),C.jsxs("div",{className:"glass-card rounded-3xl p-5 space-y-3",children:[C.jsxs("h4",{className:"font-bold flex items-center gap-2 text-sm",children:[C.jsx(Z2,{className:"h-4 w-4 text-primary-glow"})," Booking Summary"]}),C.jsxs("div",{className:"space-y-2 text-sm",children:[C.jsx(xr,{k:"সার্ভিস",v:(t==null?void 0:t.t
215itle)??"—"}),C.jsx(xr,{k:"তারিখ",v:i?fr(i,"do MMM yyyy"):"—"}),C.jsx(xr,{k:"সময়",v:l||"—"}),C.jsx("div",{className:"border-t border-border/40 pt-2 mt-2",children:C.jsx(xr,{k:"ফি",v:t?`৳${t.fee}`:"—",highlight:!0})})]})]}),C.jsxs("a",{href:"https://wa.me/8801842525924",target:"_blank",rel:"noopener noreferrer",className:"glass-card rounded-3xl p-4 flex items-center gap-3 hover:shadow-glow transition-smooth group",children:[C.jsx("div",{className:"h-11 w-11 rounded-2xl bg-success flex items-center justify-center shrink-0",children:C.jsx(Zf,{className:"h-5 w-5 text-success-foreground"})}),C.jsxs("div",{className:"flex-1 min-w-0",children:[C.jsx("div",{className:"font-bold text-sm",children:"সাহায্য দরকার?"}),C.jsx("div",{className:"text-xs text-muted-foreground",children:"+88 01842-525924"})]}),C.jsx(lu,{className:"h-4 w-4 text-muted-foreground group-hover:translate-x-1 transition-smooth"})]})]})]})]})})},hl=({label:e,name:n,value:t,onChange:r,placeholder:i,type:a="text",icon:l})=>C.jsxs("div",{className:"space-y-1.5",children:[C.jsxs("label",{className:"text-sm font-semibold flex items-center gap-2",children:[l&&C.jsx(l,{className:"h-4 w-4"})," ",e]}),C.jsx("input",{type:a,name:n,value:t,onChange:r,placeholder:i,className:"w-full h-12 rounded-xl bg-background/60 border border-border/60 px-4 text-sm focus:outline-none focus:ring-2 focus:ring-primary-glow/50"})]}),xr=({k:e,v:n,highlight:t=!1})=>C.jsxs("div",{className:"flex items-center justify-between gap-3",children:[C.jsx("span",{className:"text-xs text-muted-foreground",children:e}),C.jsx("span",{className:Dn("text-sm font-semibold text-right truncate",t&&"gradient-hero-text text-base"),children:n})]}),_4=Object.freeze(Object.defineProperty({__proto__:null,default:Q3},Symbol.toStringTag,{value:"Module"}));export{_4 as A,Ct 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.