import{b as _e,c as Ms}from"./@babel-6419d65b.js";import{z as Vo}from"./fflate-79449187.js";import{d as nc}from"./fast-png-e349d887.js";const ic="modulepreload",ac=function(n,e){return new URL(n,e).href},Es={},Eo=function(e,i,a){if(!i||i.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(i.map(u=>{if(u=ac(u,a),u in Es)return;Es[u]=!0;const d=u.endsWith(".css"),l=d?'[rel="stylesheet"]':"";if(!!a)for(let N=s.length-1;N>=0;N--){const P=s[N];if(P.href===u&&(!d||P.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${l}`))return;const v=document.createElement("link");if(v.rel=d?"stylesheet":ic,d||(v.as="script",v.crossOrigin=""),v.href=u,document.head.appendChild(v),d)return new Promise((N,P)=>{v.addEventListener("load",N),v.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${u}`)))})})).then(()=>e()).catch(u=>{const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u})};var Gt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function qo(){Gt.console&&typeof Gt.console.log=="function"&&Gt.console.log.apply(Gt.console,arguments)}var Se={log:qo,warn:function(n){Gt.console&&(typeof Gt.console.warn=="function"?Gt.console.warn.apply(Gt.console,arguments):qo.call(null,arguments))},error:function(n){Gt.console&&(typeof Gt.console.error=="function"?Gt.console.error.apply(Gt.console,arguments):qo(n))}};function Ro(n,e,i){var a=new XMLHttpRequest;a.open("GET",n),a.responseType="blob",a.onload=function(){li(a.response,e,i)},a.onerror=function(){Se.error("could not download file")},a.send()}function qs(n){var e=new XMLHttpRequest;e.open("HEAD",n,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Va(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(e)}}var li=Gt.saveAs||((typeof window>"u"?"undefined":_e(window))!=="object"||window!==Gt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,e,i){var a=Gt.URL||Gt.webkitURL,s=document.createElement("a");e=e||n.name||"download",s.download=e,s.rel="noopener",typeof n=="string"?(s.href=n,s.origin!==location.origin?qs(s.href)?Ro(n,e,i):Va(s,s.target="_blank"):Va(s)):(s.href=a.createObjectURL(n),setTimeout(function(){a.revokeObjectURL(s.href)},4e4),setTimeout(function(){Va(s)},0))}:"msSaveOrOpenBlob"in navigator?function(n,e,i){if(e=e||n.name||"download",typeof n=="string")if(qs(n))Ro(n,e,i);else{var a=document.createElement("a");a.href=n,a.target="_blank",setTimeout(function(){Va(a)})}else navigator.msSaveOrOpenBlob(function(s,u){return u===void 0?u={autoBom:!1}:_e(u)!=="object"&&(Se.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob([String.fromCharCode(65279),s],{type:s.type}):s}(n,i),e)}:function(n,e,i,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),typeof n=="string")return Ro(n,e,i);var s=n.type==="application/octet-stream",u=/constructor/i.test(Gt.HTMLElement)||Gt.safari,d=/CriOS\/[\d]+/.test(navigator.userAgent);if((d||s&&u)&&(typeof FileReader>"u"?"undefined":_e(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var N=l.result;N=d?N:N.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=N:location=N,a=null},l.readAsDataURL(n)}else{var h=Gt.URL||Gt.webkitURL,v=h.createObjectURL(n);a?a.location=v:location.href=v,a=null,setTimeout(function(){h.revokeObjectURL(v)},4e4)}});/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function su(n){var e;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;for(var i=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],a=0;a<i.length;a++){var s=i[a].re,u=i[a].process,d=s.exec(n);d&&(e=u(d),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var l=this.r.toString(16),h=this.g.toString(16),v=this.b.toString(16);return l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),v.length==1&&(v="0"+v),"#"+l+h+v}}var Xa=Gt.atob.bind(Gt),Rs=Gt.btoa.bind(Gt);/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */function Do(n,e){var i=n[0],a=n[1],s=n[2],u=n[3];i=hr(i,a,s,u,e[0],7,-680876936),u=hr(u,i,a,s,e[1],12,-389564586),s=hr(s,u,i,a,e[2],17,606105819),a=hr(a,s,u,i,e[3],22,-1044525330),i=hr(i,a,s,u,e[4],7,-176418897),u=hr(u,i,a,s,e[5],12,1200080426),s=hr(s,u,i,a,e[6],17,-1473231341),a=hr(a,s,u,i,e[7],22,-45705983),i=hr(i,a,s,u,e[8],7,1770035416),u=hr(u,i,a,s,e[9],12,-1958414417),s=hr(s,u,i,a,e[10],17,-42063),a=hr(a,s,u,i,e[11],22,-1990404162),i=hr(i,a,s,u,e[12],7,1804603682),u=hr(u,i,a,s,e[13],12,-40341101),s=hr(s,u,i,a,e[14],17,-1502002290),i=fr(i,a=hr(a,s,u,i,e[15],22,1236535329),s,u,e[1],5,-165796510),u=fr(u,i,a,s,e[6],9,-1069501632),s=fr(s,u,i,a,e[11],14,643717713),a=fr(a,s,u,i,e[0],20,-373897302),i=fr(i,a,s,u,e[5],5,-701558691),u=fr(u,i,a,s,e[10],9,38016083),s=fr(s,u,i,a,e[15],14,-660478335),a=fr(a,s,u,i,e[4],20,-405537848),i=fr(i,a,s,u,e[9],5,568446438),u=fr(u,i,a,s,e[14],9,-1019803690),s=fr(s,u,i,a,e[3],14,-187363961),a=fr(a,s,u,i,e[8],20,1163531501),i=fr(i,a,s,u,e[13],5,-1444681467),u=fr(u,i,a,s,e[2],9,-51403784),s=fr(s,u,i,a,e[7],14,1735328473),i=dr(i,a=fr(a,s,u,i,e[12],20,-1926607734),s,u,e[5],4,-378558),u=dr(u,i,a,s,e[8],11,-2022574463),s=dr(s,u,i,a,e[11],16,1839030562),a=dr(a,s,u,i,e[14],23,-35309556),i=dr(i,a,s,u,e[1],4,-1530992060),u=dr(u,i,a,s,e[4],11,1272893353),s=dr(s,u,i,a,e[7],16,-155497632),a=dr(a,s,u,i,e[10],23,-1094730640),i=dr(i,a,s,u,e[13],4,681279174),u=dr(u,i,a,s,e[0],11,-358537222),s=dr(s,u,i,a,e[3],16,-722521979),a=dr(a,s,u,i,e[6],23,76029189),i=dr(i,a,s,u,e[9],4,-640364487),u=dr(u,i,a,s,e[12],11,-421815835),s=dr(s,u,i,a,e[15],16,530742520),i=pr(i,a=dr(a,s,u,i,e[2],23,-995338651),s,u,e[0],6,-198630844),u=pr(u,i,a,s,e[7],10,1126891415),s=pr(s,u,i,a,e[14],15,-1416354905),a=pr(a,s,u,i,e[5],21,-57434055),i=pr(i,a,s,u,e[12],6,1700485571),u=pr(u,i,a,s,e[3],10,-1894986606),s=pr(s,u,i,a,e[10],15,-1051523),a=pr(a,s,u,i,e[1],21,-2054922799),i=pr(i,a,s,u,e[8],6,1873313359),u=pr(u,i,a,s,e[15],10,-30611744),s=pr(s,u,i,a,e[6],15,-1560198380),a=pr(a,s,u,i,e[13],21,1309151649),i=pr(i,a,s,u,e[4],6,-145523070),u=pr(u,i,a,s,e[11],10,-1120210379),s=pr(s,u,i,a,e[2],15,718787259),a=pr(a,s,u,i,e[9],21,-343485551),n[0]=Rn(i,n[0]),n[1]=Rn(a,n[1]),n[2]=Rn(s,n[2]),n[3]=Rn(u,n[3])}function ro(n,e,i,a,s,u){return e=Rn(Rn(e,n),Rn(a,u)),Rn(e<<s|e>>>32-s,i)}function hr(n,e,i,a,s,u,d){return ro(e&i|~e&a,n,e,s,u,d)}function fr(n,e,i,a,s,u,d){return ro(e&a|i&~a,n,e,s,u,d)}function dr(n,e,i,a,s,u,d){return ro(e^i^a,n,e,s,u,d)}function pr(n,e,i,a,s,u,d){return ro(i^(e|~a),n,e,s,u,d)}function uu(n){var e,i=n.length,a=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=n.length;e+=64)Do(a,oc(n.substring(e-64,e)));n=n.substring(e-64);var s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<n.length;e++)s[e>>2]|=n.charCodeAt(e)<<(e%4<<3);if(s[e>>2]|=128<<(e%4<<3),e>55)for(Do(a,s),e=0;e<16;e++)s[e]=0;return s[14]=8*i,Do(a,s),a}function oc(n){var e,i=[];for(e=0;e<64;e+=4)i[e>>2]=n.charCodeAt(e)+(n.charCodeAt(e+1)<<8)+(n.charCodeAt(e+2)<<16)+(n.charCodeAt(e+3)<<24);return i}var Ds="0123456789abcdef".split("");function sc(n){for(var e="",i=0;i<4;i++)e+=Ds[n>>8*i+4&15]+Ds[n>>8*i&15];return e}function uc(n){return String.fromCharCode(255&n,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function Go(n){return uu(n).map(uc).join("")}var cc=function(n){for(var e=0;e<n.length;e++)n[e]=sc(n[e]);return n.join("")}(uu("hello"))!="5d41402abc4b2a76b9719d911017c592";function Rn(n,e){if(cc){var i=(65535&n)+(65535&e);return(n>>16)+(e>>16)+(i>>16)<<16|65535&i}return n+e&4294967295}/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function Jo(n,e){var i,a,s,u;if(n!==i){for(var d=(s=n,u=1+(256/n.length|0),new Array(u+1).join(s)),l=[],h=0;h<256;h++)l[h]=h;var v=0;for(h=0;h<256;h++){var N=l[h];v=(v+N+d.charCodeAt(h))%256,l[h]=l[v],l[v]=N}i=n,a=l}else l=a;var P=e.length,M=0,p=0,z="";for(h=0;h<P;h++)p=(p+(N=l[M=(M+1)%256]))%256,l[M]=l[p],l[p]=N,d=l[(l[M]+l[p])%256],z+=String.fromCharCode(e.charCodeAt(h)^d);return z}/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var Ts={print:4,modify:8,copy:16,"annot-forms":32};function Fi(n,e,i,a){this.v=1,this.r=2;var s=192;n.forEach(function(l){if(Ts.perm!==void 0)throw new Error("Invalid permission: "+l);s+=Ts[l]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var u=(e+this.padding).substr(0,32),d=(i+this.padding).substr(0,32);this.O=this.processOwnerPassword(u,d),this.P=-(1+(255^s)),this.encryptionKey=Go(u+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=Jo(this.encryptionKey,this.padding)}function Ii(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var e="",i=n.length,a=0;a<i;a++){var s=n.charCodeAt(a);e+=s<33||s===35||s===37||s===40||s===41||s===47||s===60||s===62||s===91||s===93||s===123||s===125||s>126?"#"+("0"+s.toString(16)).slice(-2):n[a]}return e}function zs(n){if(_e(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(i,a,s){if(s=s||!1,typeof i!="string"||typeof a!="function"||typeof s!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(i)||(e[i]={});var u=Math.random().toString(35);return e[i][u]=[a,!!s],u},this.unsubscribe=function(i){for(var a in e)if(e[a][i])return delete e[a][i],Object.keys(e[a]).length===0&&delete e[a],!0;return!1},this.publish=function(i){if(e.hasOwnProperty(i)){var a=Array.prototype.slice.call(arguments,1),s=[];for(var u in e[i]){var d=e[i][u];try{d[0].apply(n,a)}catch(l){Gt.console&&Se.error("jsPDF PubSub Error",l.message,l)}d[1]&&s.push(u)}s.length&&s.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function to(n){if(!(this instanceof to))return new to(n);var e="opacity,stroke-opacity".split(",");for(var i in n)n.hasOwnProperty(i)&&e.indexOf(i)>=0&&(this[i]=n[i]);this.id="",this.objectNumber=-1}function cu(n,e){this.gState=n,this.matrix=e,this.id="",this.objectNumber=-1}function hi(n,e,i,a,s){if(!(this instanceof hi))return new hi(n,e,i,a,s);this.type=n==="axial"?2:3,this.coords=e,this.colors=i,cu.call(this,a,s)}function Ci(n,e,i,a,s){if(!(this instanceof Ci))return new Ci(n,e,i,a,s);this.boundingBox=n,this.xStep=e,this.yStep=i,this.stream="",this.cloneIndex=0,cu.call(this,a,s)}function qt(n){var e,i=typeof arguments[0]=="string"?arguments[0]:"p",a=arguments[1],s=arguments[2],u=arguments[3],d=[],l=1,h=16,v="S",N=null;_e(n=n||{})==="object"&&(i=n.orientation,a=n.unit||a,s=n.format||s,u=n.compress||n.compressPdf||u,(N=n.encryption||null)!==null&&(N.userPassword=N.userPassword||"",N.ownerPassword=N.ownerPassword||"",N.userPermissions=N.userPermissions||[]),l=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(e=n.precision),n.floatPrecision!==void 0&&(h=n.floatPrecision),v=n.defaultPathOperation||"S"),d=n.filters||(u===!0?["FlateEncode"]:d),a=a||"mm",i=(""+(i||"P")).toLowerCase();var P=n.putOnlyUsedFonts||!1,M={},p={internal:{},__private__:{}};p.__private__.PubSub=zs;var z="1.3",O=p.__private__.getPdfVersion=function(){return z};p.__private__.setPdfVersion=function(o){z=o};var T={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 T};var I=p.__private__.getPageFormat=function(o){return T[o]};s=s||"a4";var Z="compat",Q="advanced",rt=Z;function Lt(){this.saveGraphicsState(),j(new Wt(Vt,0,0,-Vt,0,$n()*Vt).toString()+" cm"),this.setFontSize(this.getFontSize()/Vt),v="n",rt=Q}function xt(){this.restoreGraphicsState(),v="S",rt=Z}var Ut=p.__private__.combineFontStyleAndFontWeight=function(o,g){if(o=="bold"&&g=="normal"||o=="bold"&&g==400||o=="normal"&&g=="italic"||o=="bold"&&g=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return g&&(o=g==400||g==="normal"?o==="italic"?"italic":"normal":g!=700&&g!=="bold"||o!=="normal"?(g==700?"bold":g)+""+o:"bold"),o};p.advancedAPI=function(o){var g=rt===Z;return g&&Lt.call(this),typeof o!="function"||(o(this),g&&xt.call(this)),this},p.compatAPI=function(o){var g=rt===Q;return g&&xt.call(this),typeof o!="function"||(o(this),g&&Lt.call(this)),this},p.isAdvancedAPI=function(){return rt===Q};var ut,J=function(o){if(rt!==Q)throw new Error(o+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},mt=p.roundToPrecision=p.__private__.roundToPrecision=function(o,g){var k=e||g;if(isNaN(o)||isNaN(k))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return o.toFixed(k).replace(/0+$/,"")};ut=p.hpf=p.__private__.hpf=typeof h=="number"?function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.hpf");return mt(o,h)}:h==="smart"?function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.hpf");return mt(o,o>-1&&o<1?16:5)}:function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.hpf");return mt(o,16)};var x=p.f2=p.__private__.f2=function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.f2");return mt(o,2)},F=p.__private__.f3=function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.f3");return mt(o,3)},R=p.scale=p.__private__.scale=function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.scale");return rt===Z?o*Vt:rt===Q?o:void 0},D=function(o){return R(function(g){return rt===Z?$n()-g:rt===Q?g:void 0}(o))};p.__private__.setPrecision=p.setPrecision=function(o){typeof parseInt(o,10)=="number"&&(e=parseInt(o,10))};var it,lt="00000000000000000000000000000000",dt=p.__private__.getFileId=function(){return lt},$=p.__private__.setFileId=function(o){return lt=o!==void 0&&/^[a-fA-F0-9]{32}$/.test(o)?o.toUpperCase():lt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),N!==null&&(Re=new Fi(N.userPermissions,N.userPassword,N.ownerPassword,lt)),lt};p.setFileId=function(o){return $(o),this},p.getFileId=function(){return dt()};var ht=p.__private__.convertDateToPDFDate=function(o){var g=o.getTimezoneOffset(),k=g<0?"+":"-",E=Math.floor(Math.abs(g/60)),W=Math.abs(g%60),st=[k,B(E),"'",B(W),"'"].join("");return["D:",o.getFullYear(),B(o.getMonth()+1),B(o.getDate()),B(o.getHours()),B(o.getMinutes()),B(o.getSeconds()),st].join("")},Nt=p.__private__.convertPDFDateToDate=function(o){var g=parseInt(o.substr(2,4),10),k=parseInt(o.substr(6,2),10)-1,E=parseInt(o.substr(8,2),10),W=parseInt(o.substr(10,2),10),st=parseInt(o.substr(12,2),10),gt=parseInt(o.substr(14,2),10);return new Date(g,k,E,W,st,gt,0)},bt=p.__private__.setCreationDate=function(o){var g;if(o===void 0&&(o=new Date),o instanceof Date)g=ht(o);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(o))throw new Error("Invalid argument passed to jsPDF.setCreationDate");g=o}return it=g},w=p.__private__.getCreationDate=function(o){var g=it;return o==="jsDate"&&(g=Nt(it)),g};p.setCreationDate=function(o){return bt(o),this},p.getCreationDate=function(o){return w(o)};var C,B=p.__private__.padd2=function(o){return("0"+parseInt(o)).slice(-2)},H=p.__private__.padd2Hex=function(o){return("00"+(o=o.toString())).substr(o.length)},V=0,K=[],et=[],tt=0,ft=[],wt=[],_t=!1,Pt=et;p.__private__.setCustomOutputDestination=function(o){_t=!0,Pt=o};var at=function(o){_t||(Pt=o)};p.__private__.resetCustomOutputDestination=function(){_t=!1,Pt=et};var j=p.__private__.out=function(o){return o=o.toString(),tt+=o.length+1,Pt.push(o),Pt},ue=p.__private__.write=function(o){return j(arguments.length===1?o.toString():Array.prototype.join.call(arguments," "))},ne=p.__private__.getArrayBuffer=function(o){for(var g=o.length,k=new ArrayBuffer(g),E=new Uint8Array(k);g--;)E[g]=o.charCodeAt(g);return k},zt=[["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 zt};var yt=n.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(o){return yt=rt===Q?o/Vt:o,this};var Et,St=p.__private__.getFontSize=p.getFontSize=function(){return rt===Z?yt:yt*Vt},ie=n.R2L||!1;p.__private__.setR2L=p.setR2L=function(o){return ie=o,this},p.__private__.getR2L=p.getR2L=function(){return ie};var Tt,de=p.__private__.setZoomMode=function(o){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(o))Et=o;else if(isNaN(o)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(o)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+o+'" is not recognized.');Et=o}else Et=parseInt(o,10)};p.__private__.getZoomMode=function(){return Et};var $t,Qt=p.__private__.setPageMode=function(o){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(o)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+o+'" is not recognized.');Tt=o};p.__private__.getPageMode=function(){return Tt};var we=p.__private__.setLayoutMode=function(o){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(o)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+o+'" is not recognized.');$t=o};p.__private__.getLayoutMode=function(){return $t},p.__private__.setDisplayMode=p.setDisplayMode=function(o,g,k){return de(o),we(g),Qt(k),this};var ae={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(o){if(Object.keys(ae).indexOf(o)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ae[o]},p.__private__.getDocumentProperties=function(){return ae},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(o){for(var g in ae)ae.hasOwnProperty(g)&&o[g]&&(ae[g]=o[g]);return this},p.__private__.setDocumentProperty=function(o,g){if(Object.keys(ae).indexOf(o)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ae[o]=g};var Rt,Vt,Dt,Pe,pe,Bt={},te={},Le=[],Ht={},ce={},ee={},qe={},Xe=null,Ne=0,Yt=[],me=new zs(p),Tn=n.hotfixes||[],ur={},on={},Xr=[],Wt=function o(g,k,E,W,st,gt){if(!(this instanceof o))return new o(g,k,E,W,st,gt);isNaN(g)&&(g=1),isNaN(k)&&(k=0),isNaN(E)&&(E=0),isNaN(W)&&(W=1),isNaN(st)&&(st=0),isNaN(gt)&&(gt=0),this._matrix=[g,k,E,W,st,gt]};Object.defineProperty(Wt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(o){this._matrix[0]=o}}),Object.defineProperty(Wt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(o){this._matrix[1]=o}}),Object.defineProperty(Wt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(o){this._matrix[2]=o}}),Object.defineProperty(Wt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(o){this._matrix[3]=o}}),Object.defineProperty(Wt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(o){this._matrix[4]=o}}),Object.defineProperty(Wt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(o){this._matrix[5]=o}}),Object.defineProperty(Wt.prototype,"a",{get:function(){return this._matrix[0]},set:function(o){this._matrix[0]=o}}),Object.defineProperty(Wt.prototype,"b",{get:function(){return this._matrix[1]},set:function(o){this._matrix[1]=o}}),Object.defineProperty(Wt.prototype,"c",{get:function(){return this._matrix[2]},set:function(o){this._matrix[2]=o}}),Object.defineProperty(Wt.prototype,"d",{get:function(){return this._matrix[3]},set:function(o){this._matrix[3]=o}}),Object.defineProperty(Wt.prototype,"e",{get:function(){return this._matrix[4]},set:function(o){this._matrix[4]=o}}),Object.defineProperty(Wt.prototype,"f",{get:function(){return this._matrix[5]},set:function(o){this._matrix[5]=o}}),Object.defineProperty(Wt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Wt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Wt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Wt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Wt.prototype.join=function(o){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ut).join(o)},Wt.prototype.multiply=function(o){var g=o.sx*this.sx+o.shy*this.shx,k=o.sx*this.shy+o.shy*this.sy,E=o.shx*this.sx+o.sy*this.shx,W=o.shx*this.shy+o.sy*this.sy,st=o.tx*this.sx+o.ty*this.shx+this.tx,gt=o.tx*this.shy+o.ty*this.sy+this.ty;return new Wt(g,k,E,W,st,gt)},Wt.prototype.decompose=function(){var o=this.sx,g=this.shy,k=this.shx,E=this.sy,W=this.tx,st=this.ty,gt=Math.sqrt(o*o+g*g),It=(o/=gt)*k+(g/=gt)*E;k-=o*It,E-=g*It;var Ot=Math.sqrt(k*k+E*E);return It/=Ot,o*(E/=Ot)<g*(k/=Ot)&&(o=-o,g=-g,It=-It,gt=-gt),{scale:new Wt(gt,0,0,Ot,0,0),translate:new Wt(1,0,0,1,W,st),rotate:new Wt(o,g,-g,o,0,0),skew:new Wt(1,0,It,1,0,0)}},Wt.prototype.toString=function(o){return this.join(" ")},Wt.prototype.inversed=function(){var o=this.sx,g=this.shy,k=this.shx,E=this.sy,W=this.tx,st=this.ty,gt=1/(o*E-g*k),It=E*gt,Ot=-g*gt,Jt=-k*gt,Kt=o*gt;return new Wt(It,Ot,Jt,Kt,-It*W-Jt*st,-Ot*W-Kt*st)},Wt.prototype.applyToPoint=function(o){var g=o.x*this.sx+o.y*this.shx+this.tx,k=o.x*this.shy+o.y*this.sy+this.ty;return new Kn(g,k)},Wt.prototype.applyToRectangle=function(o){var g=this.applyToPoint(o),k=this.applyToPoint(new Kn(o.x+o.w,o.y+o.h));return new Gi(g.x,g.y,k.x-g.x,k.y-g.y)},Wt.prototype.clone=function(){var o=this.sx,g=this.shy,k=this.shx,E=this.sy,W=this.tx,st=this.ty;return new Wt(o,g,k,E,W,st)},p.Matrix=Wt;var sn=p.matrixMult=function(o,g){return g.multiply(o)},un=new Wt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=un;var Ir=function(o,g){if(!ce[o]){var k=(g instanceof hi?"Sh":"P")+(Object.keys(Ht).length+1).toString(10);g.id=k,ce[o]=k,Ht[k]=g,me.publish("addPattern",g)}};p.ShadingPattern=hi,p.TilingPattern=Ci,p.addShadingPattern=function(o,g){return J("addShadingPattern()"),Ir(o,g),this},p.beginTilingPattern=function(o){J("beginTilingPattern()"),Ji(o.boundingBox[0],o.boundingBox[1],o.boundingBox[2]-o.boundingBox[0],o.boundingBox[3]-o.boundingBox[1],o.matrix)},p.endTilingPattern=function(o,g){J("endTilingPattern()"),g.stream=wt[C].join(`
`),Ir(o,g),me.publish("endTilingPattern",g),Xr.pop().restore()};var Cr,je=p.__private__.newObject=function(){var o=er();return nr(o,!0),o},er=p.__private__.newObjectDeferred=function(){return V++,K[V]=function(){return tt},V},nr=function(o,g){return g=typeof g=="boolean"&&g,K[o]=tt,g&&j(o+" 0 obj"),o},zn=p.__private__.newAdditionalObject=function(){var o={objId:er(),content:""};return ft.push(o),o},wn=er(),Dr=er(),Kr=p.__private__.decodeColorString=function(o){var g=o.split(" ");if(g.length!==2||g[1]!=="g"&&g[1]!=="G")g.length!==5||g[4]!=="k"&&g[4]!=="K"||(g=[(1-g[0])*(1-g[3]),(1-g[1])*(1-g[3]),(1-g[2])*(1-g[3]),"r"]);else{var k=parseFloat(g[0]);g=[k,k,k,"r"]}for(var E="#",W=0;W<3;W++)E+=("0"+Math.floor(255*parseFloat(g[W])).toString(16)).slice(-2);return E},Tr=p.__private__.encodeColorString=function(o){var g;typeof o=="string"&&(o={ch1:o});var k=o.ch1,E=o.ch2,W=o.ch3,st=o.ch4,gt=o.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof k=="string"&&k.charAt(0)!=="#"){var It=new su(k);if(It.ok)k=It.toHex();else if(!/^\d*\.?\d*$/.test(k))throw new Error('Invalid color "'+k+'" passed to jsPDF.encodeColorString.')}if(typeof k=="string"&&/^#[0-9A-Fa-f]{3}$/.test(k)&&(k="#"+k[1]+k[1]+k[2]+k[2]+k[3]+k[3]),typeof k=="string"&&/^#[0-9A-Fa-f]{6}$/.test(k)){var Ot=parseInt(k.substr(1),16);k=Ot>>16&255,E=Ot>>8&255,W=255&Ot}if(E===void 0||st===void 0&&k===E&&E===W)g=typeof k=="string"?k+" "+gt[0]:o.precision===2?x(k/255)+" "+gt[0]:F(k/255)+" "+gt[0];else if(st===void 0||_e(st)==="object"){if(st&&!isNaN(st.a)&&st.a===0)return["1.","1.","1.",gt[1]].join(" ");g=typeof k=="string"?[k,E,W,gt[1]].join(" "):o.precision===2?[x(k/255),x(E/255),x(W/255),gt[1]].join(" "):[F(k/255),F(E/255),F(W/255),gt[1]].join(" ")}else g=typeof k=="string"?[k,E,W,st,gt[2]].join(" "):o.precision===2?[x(k),x(E),x(W),x(st),gt[2]].join(" "):[F(k),F(E),F(W),F(st),gt[2]].join(" ");return g},zr=p.__private__.getFilters=function(){return d},jr=p.__private__.putStream=function(o){var g=(o=o||{}).data||"",k=o.filters||zr(),E=o.alreadyAppliedFilters||[],W=o.addLength1||!1,st=g.length,gt=o.objectId,It=function(Ke){return Ke};if(N!==null&&gt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");N!==null&&(It=Re.encryptor(gt,0));var Ot={};k===!0&&(k=["FlateEncode"]);var Jt=o.additionalKeyValues||[],Kt=(Ot=qt.API.processDataByFilters!==void 0?qt.API.processDataByFilters(g,k):{data:g,reverseChain:[]}).reverseChain+(Array.isArray(E)?E.join(" "):E.toString());if(Ot.data.length!==0&&(Jt.push({key:"Length",value:Ot.data.length}),W===!0&&Jt.push({key:"Length1",value:st})),Kt.length!=0)if(Kt.split("/").length-1==1)Jt.push({key:"Filter",value:Kt});else{Jt.push({key:"Filter",value:"["+Kt+"]"});for(var ge=0;ge<Jt.length;ge+=1)if(Jt[ge].key==="DecodeParms"){for(var Ce=[],Je=0;Je<Ot.reverseChain.split("/").length-1;Je+=1)Ce.push("null");Ce.push(Jt[ge].value),Jt[ge].value="["+Ce.join(" ")+"]"}}j("<<");for(var ke=0;ke<Jt.length;ke++)j("/"+Jt[ke].key+" "+Jt[ke].value);j(">>"),Ot.data.length!==0&&(j("stream"),j(It(Ot.data)),j("endstream"))},Un=p.__private__.putPage=function(o){var g=o.number,k=o.data,E=o.objId,W=o.contentsObjId;nr(E,!0),j("<</Type /Page"),j("/Parent "+o.rootDictionaryObjId+" 0 R"),j("/Resources "+o.resourceDictionaryObjId+" 0 R"),j("/MediaBox ["+parseFloat(ut(o.mediaBox.bottomLeftX))+" "+parseFloat(ut(o.mediaBox.bottomLeftY))+" "+ut(o.mediaBox.topRightX)+" "+ut(o.mediaBox.topRightY)+"]"),o.cropBox!==null&&j("/CropBox ["+ut(o.cropBox.bottomLeftX)+" "+ut(o.cropBox.bottomLeftY)+" "+ut(o.cropBox.topRightX)+" "+ut(o.cropBox.topRightY)+"]"),o.bleedBox!==null&&j("/BleedBox ["+ut(o.bleedBox.bottomLeftX)+" "+ut(o.bleedBox.bottomLeftY)+" "+ut(o.bleedBox.topRightX)+" "+ut(o.bleedBox.topRightY)+"]"),o.trimBox!==null&&j("/TrimBox ["+ut(o.trimBox.bottomLeftX)+" "+ut(o.trimBox.bottomLeftY)+" "+ut(o.trimBox.topRightX)+" "+ut(o.trimBox.topRightY)+"]"),o.artBox!==null&&j("/ArtBox ["+ut(o.artBox.bottomLeftX)+" "+ut(o.artBox.bottomLeftY)+" "+ut(o.artBox.topRightX)+" "+ut(o.artBox.topRightY)+"]"),typeof o.userUnit=="number"&&o.userUnit!==1&&j("/UserUnit "+o.userUnit),me.publish("putPage",{objId:E,pageContext:Yt[g],pageNumber:g,page:k}),j("/Contents "+W+" 0 R"),j(">>"),j("endobj");var st=k.join(`
`);return rt===Q&&(st+=`
Q`),nr(W,!0),jr({data:st,filters:zr(),objectId:W}),j("endobj"),E},Zr=p.__private__.putPages=function(){var o,g,k=[];for(o=1;o<=Ne;o++)Yt[o].objId=er(),Yt[o].contentsObjId=er();for(o=1;o<=Ne;o++)k.push(Un({number:o,data:wt[o],objId:Yt[o].objId,contentsObjId:Yt[o].contentsObjId,mediaBox:Yt[o].mediaBox,cropBox:Yt[o].cropBox,bleedBox:Yt[o].bleedBox,trimBox:Yt[o].trimBox,artBox:Yt[o].artBox,userUnit:Yt[o].userUnit,rootDictionaryObjId:wn,resourceDictionaryObjId:Dr}));nr(wn,!0),j("<</Type /Pages");var E="/Kids [";for(g=0;g<Ne;g++)E+=k[g]+" 0 R ";j(E+"]"),j("/Count "+Ne),j(">>"),j("endobj"),me.publish("postPutPages")},Hn=function(o){me.publish("putFont",{font:o,out:j,newObject:je,putStream:jr}),o.isAlreadyPutted!==!0&&(o.objectNumber=je(),j("<<"),j("/Type /Font"),j("/BaseFont /"+Ii(o.postScriptName)),j("/Subtype /Type1"),typeof o.encoding=="string"&&j("/Encoding /"+o.encoding),j("/FirstChar 32"),j("/LastChar 255"),j(">>"),j("endobj"))},pi=function(o){o.objectNumber=je();var g=[];g.push({key:"Type",value:"/XObject"}),g.push({key:"Subtype",value:"/Form"}),g.push({key:"BBox",value:"["+[ut(o.x),ut(o.y),ut(o.x+o.width),ut(o.y+o.height)].join(" ")+"]"}),g.push({key:"Matrix",value:"["+o.matrix.toString()+"]"});var k=o.pages[1].join(`
`);jr({data:k,additionalKeyValues:g,objectId:o.objectNumber}),j("endobj")},gi=function(o,g){g||(g=21);var k=je(),E=function(gt,It){var Ot,Jt=[],Kt=1/(It-1);for(Ot=0;Ot<1;Ot+=Kt)Jt.push(Ot);if(Jt.push(1),gt[0].offset!=0){var ge={offset:0,color:gt[0].color};gt.unshift(ge)}if(gt[gt.length-1].offset!=1){var Ce={offset:1,color:gt[gt.length-1].color};gt.push(Ce)}for(var Je="",ke=0,Ke=0;Ke<Jt.length;Ke++){for(Ot=Jt[Ke];Ot>gt[ke+1].offset;)ke++;var Ye=gt[ke].offset,ir=(Ot-Ye)/(gt[ke+1].offset-Ye),Br=gt[ke].color,br=gt[ke+1].color;Je+=H(Math.round((1-ir)*Br[0]+ir*br[0]).toString(16))+H(Math.round((1-ir)*Br[1]+ir*br[1]).toString(16))+H(Math.round((1-ir)*Br[2]+ir*br[2]).toString(16))}return Je.trim()}(o.colors,g),W=[];W.push({key:"FunctionType",value:"0"}),W.push({key:"Domain",value:"[0.0 1.0]"}),W.push({key:"Size",value:"["+g+"]"}),W.push({key:"BitsPerSample",value:"8"}),W.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),W.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),jr({data:E,additionalKeyValues:W,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:k}),j("endobj"),o.objectNumber=je(),j("<< /ShadingType "+o.type),j("/ColorSpace /DeviceRGB");var st="/Coords ["+ut(parseFloat(o.coords[0]))+" "+ut(parseFloat(o.coords[1]))+" ";o.type===2?st+=ut(parseFloat(o.coords[2]))+" "+ut(parseFloat(o.coords[3])):st+=ut(parseFloat(o.coords[2]))+" "+ut(parseFloat(o.coords[3]))+" "+ut(parseFloat(o.coords[4]))+" "+ut(parseFloat(o.coords[5])),j(st+="]"),o.matrix&&j("/Matrix ["+o.matrix.toString()+"]"),j("/Function "+k+" 0 R"),j("/Extend [true true]"),j(">>"),j("endobj")},mi=function(o,g){var k=er(),E=je();g.push({resourcesOid:k,objectOid:E}),o.objectNumber=E;var W=[];W.push({key:"Type",value:"/Pattern"}),W.push({key:"PatternType",value:"1"}),W.push({key:"PaintType",value:"1"}),W.push({key:"TilingType",value:"1"}),W.push({key:"BBox",value:"["+o.boundingBox.map(ut).join(" ")+"]"}),W.push({key:"XStep",value:ut(o.xStep)}),W.push({key:"YStep",value:ut(o.yStep)}),W.push({key:"Resources",value:k+" 0 R"}),o.matrix&&W.push({key:"Matrix",value:"["+o.matrix.toString()+"]"}),jr({data:o.stream,additionalKeyValues:W,objectId:o.objectNumber}),j("endobj")},no=function(o){for(var g in o.objectNumber=je(),j("<<"),o)switch(g){case"opacity":j("/ca "+x(o[g]));break;case"stroke-opacity":j("/CA "+x(o[g]))}j(">>"),j("endobj")},Ei=function(o){nr(o.resourcesOid,!0),j("<<"),j("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var g in j("/Font <<"),Bt)Bt.hasOwnProperty(g)&&(P===!1||P===!0&&M.hasOwnProperty(g))&&j("/"+g+" "+Bt[g].objectNumber+" 0 R");j(">>")}(),function(){if(Object.keys(Ht).length>0){for(var g in j("/Shading <<"),Ht)Ht.hasOwnProperty(g)&&Ht[g]instanceof hi&&Ht[g].objectNumber>=0&&j("/"+g+" "+Ht[g].objectNumber+" 0 R");me.publish("putShadingPatternDict"),j(">>")}}(),function(g){if(Object.keys(Ht).length>0){for(var k in j("/Pattern <<"),Ht)Ht.hasOwnProperty(k)&&Ht[k]instanceof p.TilingPattern&&Ht[k].objectNumber>=0&&Ht[k].objectNumber<g&&j("/"+k+" "+Ht[k].objectNumber+" 0 R");me.publish("putTilingPatternDict"),j(">>")}}(o.objectOid),function(){if(Object.keys(ee).length>0){var g;for(g in j("/ExtGState <<"),ee)ee.hasOwnProperty(g)&&ee[g].objectNumber>=0&&j("/"+g+" "+ee[g].objectNumber+" 0 R");me.publish("putGStateDict"),j(">>")}}(),function(){for(var g in j("/XObject <<"),ur)ur.hasOwnProperty(g)&&ur[g].objectNumber>=0&&j("/"+g+" "+ur[g].objectNumber+" 0 R");me.publish("putXobjectDict"),j(">>")}(),j(">>"),j("endobj")},la=function(o){te[o.fontName]=te[o.fontName]||{},te[o.fontName][o.fontStyle]=o.id},ha=function(o,g,k,E,W){var st={id:"F"+(Object.keys(Bt).length+1).toString(10),postScriptName:o,fontName:g,fontStyle:k,encoding:E,isStandardFont:W||!1,metadata:{}};return me.publish("addFont",{font:st,instance:this}),Bt[st.id]=st,la(st),st.id},Or=p.__private__.pdfEscape=p.pdfEscape=function(o,g){return function(k,E){var W,st,gt,It,Ot,Jt,Kt,ge,Ce;if(gt=(E=E||{}).sourceEncoding||"Unicode",Ot=E.outputEncoding,(E.autoencode||Ot)&&Bt[Rt].metadata&&Bt[Rt].metadata[gt]&&Bt[Rt].metadata[gt].encoding&&(It=Bt[Rt].metadata[gt].encoding,!Ot&&Bt[Rt].encoding&&(Ot=Bt[Rt].encoding),!Ot&&It.codePages&&(Ot=It.codePages[0]),typeof Ot=="string"&&(Ot=It[Ot]),Ot)){for(Kt=!1,Jt=[],W=0,st=k.length;W<st;W++)(ge=Ot[k.charCodeAt(W)])?Jt.push(String.fromCharCode(ge)):Jt.push(k[W]),Jt[W].charCodeAt(0)>>8&&(Kt=!0);k=Jt.join("")}for(W=k.length;Kt===void 0&&W!==0;)k.charCodeAt(W-1)>>8&&(Kt=!0),W--;if(!Kt)return k;for(Jt=E.noBOM?[]:[254,255],W=0,st=k.length;W<st;W++){if((Ce=(ge=k.charCodeAt(W))>>8)>>8)throw new Error("Character at position "+W+" of string '"+k+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Jt.push(Ce),Jt.push(ge-(Ce<<8))}return String.fromCharCode.apply(void 0,Jt)}(o,g).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},qi=p.__private__.beginPage=function(o){wt[++Ne]=[],Yt[Ne]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(o[0]),topRightY:Number(o[1])}},da(Ne),at(wt[C])},fa=function(o,g){var k,E,W;switch(i=g||i,typeof o=="string"&&(k=I(o.toLowerCase()),Array.isArray(k)&&(E=k[0],W=k[1])),Array.isArray(o)&&(E=o[0]*Vt,W=o[1]*Vt),isNaN(E)&&(E=s[0],W=s[1]),(E>14400||W>14400)&&(Se.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),E=Math.min(14400,E),W=Math.min(14400,W)),s=[E,W],i.substr(0,1)){case"l":W>E&&(s=[W,E]);break;case"p":E>W&&(s=[W,E])}qi(s),fo(Ui),j(bi),Wi!==0&&j(Wi+" J"),Vi!==0&&j(Vi+" j"),me.publish("addPage",{pageNumber:Ne})},Ri=function(o){o>0&&o<=Ne&&(wt.splice(o,1),Yt.splice(o,1),Ne--,C>Ne&&(C=Ne),this.setPage(C))},da=function(o){o>0&&o<=Ne&&(C=o)},pa=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return wt.length-1},ga=function(o,g,k){var E,W=void 0;return k=k||{},o=o!==void 0?o:Bt[Rt].fontName,g=g!==void 0?g:Bt[Rt].fontStyle,E=o.toLowerCase(),te[E]!==void 0&&te[E][g]!==void 0?W=te[E][g]:te[o]!==void 0&&te[o][g]!==void 0?W=te[o][g]:k.disableWarning===!1&&Se.warn("Unable to look up font label for font '"+o+"', '"+g+"'. Refer to getFontList() for available fonts."),W||k.noFallback||(W=te.times[g])==null&&(W=te.times.normal),W},vi=p.__private__.putInfo=function(){var o=je(),g=function(E){return E};for(var k in N!==null&&(g=Re.encryptor(o,0)),j("<<"),j("/Producer ("+Or(g("jsPDF "+qt.version))+")"),ae)ae.hasOwnProperty(k)&&ae[k]&&j("/"+k.substr(0,1).toUpperCase()+k.substr(1)+" ("+Or(g(ae[k]))+")");j("/CreationDate ("+Or(g(it))+")"),j(">>"),j("endobj")},io=p.__private__.putCatalog=function(o){var g=(o=o||{}).rootDictionaryObjId||wn;switch(je(),j("<<"),j("/Type /Catalog"),j("/Pages "+g+" 0 R"),Et||(Et="fullwidth"),Et){case"fullwidth":j("/OpenAction [3 0 R /FitH null]");break;case"fullheight":j("/OpenAction [3 0 R /FitV null]");break;case"fullpage":j("/OpenAction [3 0 R /Fit]");break;case"original":j("/OpenAction [3 0 R /XYZ null null 1]");break;default:var k=""+Et;k.substr(k.length-1)==="%"&&(Et=parseInt(Et)/100),typeof Et=="number"&&j("/OpenAction [3 0 R /XYZ null null "+x(Et)+"]")}switch($t||($t="continuous"),$t){case"continuous":j("/PageLayout /OneColumn");break;case"single":j("/PageLayout /SinglePage");break;case"two":case"twoleft":j("/PageLayout /TwoColumnLeft");break;case"tworight":j("/PageLayout /TwoColumnRight")}Tt&&j("/PageMode /"+Tt),me.publish("putCatalog"),j(">>"),j("endobj")},Ge=p.__private__.putTrailer=function(){j("trailer"),j("<<"),j("/Size "+(V+1)),j("/Root "+V+" 0 R"),j("/Info "+(V-1)+" 0 R"),N!==null&&j("/Encrypt "+Re.oid+" 0 R"),j("/ID [ <"+lt+"> <"+lt+"> ]"),j(">>")},ma=p.__private__.putHeader=function(){j("%PDF-"+z),j("%ºß¬à")},va=p.__private__.putXRef=function(){var o="0000000000";j("xref"),j("0 "+(V+1)),j("0000000000 65535 f ");for(var g=1;g<=V;g++)typeof K[g]=="function"?j((o+K[g]()).slice(-10)+" 00000 n "):K[g]!==void 0?j((o+K[g]).slice(-10)+" 00000 n "):j("0000000000 00000 n ")},cn=p.__private__.buildDocument=function(){var o;V=0,tt=0,et=[],K=[],ft=[],wn=er(),Dr=er(),at(et),me.publish("buildDocument"),ma(),Zr(),function(){me.publish("putAdditionalObjects");for(var k=0;k<ft.length;k++){var E=ft[k];nr(E.objId,!0),j(E.content),j("endobj")}me.publish("postPutAdditionalObjects")}(),o=[],function(){for(var k in Bt)Bt.hasOwnProperty(k)&&(P===!1||P===!0&&M.hasOwnProperty(k))&&Hn(Bt[k])}(),function(){var k;for(k in ee)ee.hasOwnProperty(k)&&no(ee[k])}(),function(){for(var k in ur)ur.hasOwnProperty(k)&&pi(ur[k])}(),function(k){var E;for(E in Ht)Ht.hasOwnProperty(E)&&(Ht[E]instanceof hi?gi(Ht[E]):Ht[E]instanceof Ci&&mi(Ht[E],k))}(o),me.publish("putResources"),o.forEach(Ei),Ei({resourcesOid:Dr,objectOid:Number.MAX_SAFE_INTEGER}),me.publish("postPutResources"),N!==null&&(Re.oid=je(),j("<<"),j("/Filter /Standard"),j("/V "+Re.v),j("/R "+Re.r),j("/U <"+Re.toHexString(Re.U)+">"),j("/O <"+Re.toHexString(Re.O)+">"),j("/P "+Re.P),j(">>"),j("endobj")),vi(),io();var g=tt;return va(),Ge(),j("startxref"),j(""+g),j("%%EOF"),at(wt[C]),et.join(`
`)},Wn=p.__private__.getBlob=function(o){return new Blob([ne(o)],{type:"application/pdf"})},Ur=p.output=p.__private__.output=(Cr=function(o,g){switch(typeof(g=g||{})=="string"?g={filename:g}:g.filename=g.filename||"generated.pdf",o){case void 0:return cn();case"save":p.save(g.filename);break;case"arraybuffer":return ne(cn());case"blob":return Wn(cn());case"bloburi":case"bloburl":if(Gt.URL!==void 0&&typeof Gt.URL.createObjectURL=="function")return Gt.URL&&Gt.URL.createObjectURL(Wn(cn()))||void 0;Se.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var k="",E=cn();try{k=Rs(E)}catch{k=Rs(unescape(encodeURIComponent(E)))}return"data:application/pdf;filename="+g.filename+";base64,"+k;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Gt)==="[object Window]"){var W="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",st=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';g.pdfObjectUrl&&(W=g.pdfObjectUrl,st="");var gt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+W+'"'+st+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(g)+");<\/script></body></html>",It=Gt.open();return It!==null&&It.document.write(gt),It}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Gt)==="[object Window]"){var Ot='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(g.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+g.filename+'" width="500px" height="400px" /></body></html>',Jt=Gt.open();if(Jt!==null){Jt.document.write(Ot);var Kt=this;Jt.document.documentElement.querySelector("#pdfViewer").onload=function(){Jt.document.title=g.filename,Jt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Kt.output("bloburl"))}}return Jt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Gt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ge='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",g)+'"></iframe></body></html>',Ce=Gt.open();if(Ce!==null&&(Ce.document.write(ge),Ce.document.title=g.filename),Ce||typeof safari>"u")return Ce;break;case"datauri":case"dataurl":return Gt.document.location.href=this.output("datauristring",g);default:return null}},Cr.foo=function(){try{return Cr.apply(this,arguments)}catch(k){var o=k.stack||"";~o.indexOf(" at ")&&(o=o.split(" at ")[1]);var g="Error in function "+o.split(`
`)[0].split("<")[0]+": "+k.message;if(!Gt.console)throw new Error(g);Gt.console.error(g,k),Gt.alert&&alert(g)}},Cr.foo.bar=Cr,Cr.foo),Vn=function(o){return Array.isArray(Tn)===!0&&Tn.indexOf(o)>-1};switch(a){case"pt":Vt=1;break;case"mm":Vt=72/25.4;break;case"cm":Vt=72/2.54;break;case"in":Vt=72;break;case"px":Vt=Vn("px_scaling")==1?.75:96/72;break;case"pc":case"em":Vt=12;break;case"ex":Vt=6;break;default:if(typeof a!="number")throw new Error("Invalid unit: "+a);Vt=a}var Re=null;bt(),$();var Di=p.__private__.getPageInfo=p.getPageInfo=function(o){if(isNaN(o)||o%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Yt[o].objId,pageNumber:o,pageContext:Yt[o]}},ao=p.__private__.getPageInfoByObjId=function(o){if(isNaN(o)||o%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var g in Yt)if(Yt[g].objId===o)break;return Di(g)},oo=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Yt[C].objId,pageNumber:C,pageContext:Yt[C]}};p.addPage=function(){return fa.apply(this,arguments),this},p.setPage=function(){return da.apply(this,arguments),at.call(this,wt[C]),this},p.insertPage=function(o){return this.addPage(),this.movePage(C,o),this},p.movePage=function(o,g){var k,E;if(o>g){k=wt[o],E=Yt[o];for(var W=o;W>g;W--)wt[W]=wt[W-1],Yt[W]=Yt[W-1];wt[g]=k,Yt[g]=E,this.setPage(g)}else if(o<g){k=wt[o],E=Yt[o];for(var st=o;st<g;st++)wt[st]=wt[st+1],Yt[st]=Yt[st+1];wt[g]=k,Yt[g]=E,this.setPage(g)}return this},p.deletePage=function(){return Ri.apply(this,arguments),this},p.__private__.text=p.text=function(o,g,k,E,W){var st,gt,It,Ot,Jt,Kt,ge,Ce,Je,ke=(E=E||{}).scope||this;if(typeof o=="number"&&typeof g=="number"&&(typeof k=="string"||Array.isArray(k))){var Ke=k;k=g,g=o,o=Ke}if(arguments[3]instanceof Wt==0?(It=arguments[4],Ot=arguments[5],_e(ge=arguments[3])==="object"&&ge!==null||(typeof It=="string"&&(Ot=It,It=null),typeof ge=="string"&&(Ot=ge,ge=null),typeof ge=="number"&&(It=ge,ge=null),E={flags:ge,angle:It,align:Ot})):(J("The transform parameter of text() with a Matrix value"),Je=W),isNaN(g)||isNaN(k)||o==null)throw new Error("Invalid arguments passed to jsPDF.text");if(o.length===0)return ke;var Ye,ir="",Br=typeof E.lineHeightFactor=="number"?E.lineHeightFactor:Jn,br=ke.internal.scaleFactor;function Sa(ve){return ve=ve.split("	").join(Array(E.TabLen||9).join(" ")),Or(ve,ge)}function Ni(ve){for(var Ae,Te=ve.concat(),Ze=[],mn=Te.length;mn--;)typeof(Ae=Te.shift())=="string"?Ze.push(Ae):Array.isArray(ve)&&(Ae.length===1||Ae[1]===void 0&&Ae[2]===void 0)?Ze.push(Ae[0]):Ze.push([Ae[0],Ae[1],Ae[2]]);return Ze}function Qn(ve,Ae){var Te;if(typeof ve=="string")Te=Ae(ve)[0];else if(Array.isArray(ve)){for(var Ze,mn,na=ve.concat(),Si=[],ka=na.length;ka--;)typeof(Ze=na.shift())=="string"?Si.push(Ae(Ze)[0]):Array.isArray(Ze)&&typeof Ze[0]=="string"&&(mn=Ae(Ze[0],Ze[1],Ze[2]),Si.push([mn[0],mn[1],mn[2]]));Te=Si}return Te}var An=!1,ti=!0;if(typeof o=="string")An=!0;else if(Array.isArray(o)){var ei=o.concat();gt=[];for(var ri,cr=ei.length;cr--;)(typeof(ri=ei.shift())!="string"||Array.isArray(ri)&&typeof ri[0]!="string")&&(ti=!1);An=ti}if(An===!1)throw new Error('Type of text must be string or Array. "'+o+'" is not recognized.');typeof o=="string"&&(o=o.match(/[\r?\n]/)?o.split(/\r\n|\r|\n/g):[o]);var ni=yt/ke.internal.scaleFactor,ii=ni*(Br-1);switch(E.baseline){case"bottom":k-=ii;break;case"top":k+=ni-ii;break;case"hanging":k+=ni-2*ii;break;case"middle":k+=ni/2-ii}if((Kt=E.maxWidth||0)>0&&(typeof o=="string"?o=ke.splitTextToSize(o,Kt):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce(function(ve,Ae){return ve.concat(ke.splitTextToSize(Ae,Kt))},[]))),st={text:o,x:g,y:k,options:E,mutex:{pdfEscape:Or,activeFontKey:Rt,fonts:Bt,activeFontSize:yt}},me.publish("preProcessText",st),o=st.text,It=(E=st.options).angle,Je instanceof Wt==0&&It&&typeof It=="number"){It*=Math.PI/180,E.rotationDirection===0&&(It=-It),rt===Q&&(It=-It);var Yi=Math.cos(It),Xi=Math.sin(It);Je=new Wt(Yi,Xi,-Xi,Yi,0,0)}else It&&It instanceof Wt&&(Je=It);rt!==Q||Je||(Je=un),(Jt=E.charSpace||wi)!==void 0&&(ir+=ut(R(Jt))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Ce=E.horizontalScale)!==void 0&&(ir+=ut(100*Ce)+` Tz
`),E.lang;var Oe=-1,pn=E.renderingMode!==void 0?E.renderingMode:E.stroke,Ai=ke.internal.getCurrentPageInfo().pageContext;switch(pn){case 0:case!1:case"fill":Oe=0;break;case 1:case!0:case"stroke":Oe=1;break;case 2:case"fillThenStroke":Oe=2;break;case 3:case"invisible":Oe=3;break;case 4:case"fillAndAddForClipping":Oe=4;break;case 5:case"strokeAndAddPathForClipping":Oe=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Oe=6;break;case 7:case"addToPathForClipping":Oe=7}var _a=Ai.usedRenderingMode!==void 0?Ai.usedRenderingMode:-1;Oe!==-1?ir+=Oe+` Tr
`:_a!==-1&&(ir+=`0 Tr
`),Oe!==-1&&(Ai.usedRenderingMode=Oe),Ot=E.align||"left";var Mr,ai=yt*Br,Ki=ke.internal.pageSize.getWidth(),Zi=Bt[Rt];Jt=E.charSpace||wi,Kt=E.maxWidth||0,ge=Object.assign({autoencode:!0,noBOM:!0},E.flags);var xn=[],oi=function(ve){return ke.getStringUnitWidth(ve,{font:Zi,charSpace:Jt,fontSize:yt,doKerning:!1})*yt/br};if(Object.prototype.toString.call(o)==="[object Array]"){var Nr;gt=Ni(o),Ot!=="left"&&(Mr=gt.map(oi));var Ar,Sn=0;if(Ot==="right"){g-=Mr[0],o=[],cr=gt.length;for(var gn=0;gn<cr;gn++)gn===0?(Ar=ln(g),Nr=hn(k)):(Ar=R(Sn-Mr[gn]),Nr=-ai),o.push([gt[gn],Ar,Nr]),Sn=Mr[gn]}else if(Ot==="center"){g-=Mr[0]/2,o=[],cr=gt.length;for(var _n=0;_n<cr;_n++)_n===0?(Ar=ln(g),Nr=hn(k)):(Ar=R((Sn-Mr[_n])/2),Nr=-ai),o.push([gt[_n],Ar,Nr]),Sn=Mr[_n]}else if(Ot==="left"){o=[],cr=gt.length;for(var $i=0;$i<cr;$i++)o.push(gt[$i])}else if(Ot==="justify"&&Zi.encoding==="Identity-H"){o=[],cr=gt.length,Kt=Kt!==0?Kt:Ki;for(var xi=0,De=0;De<cr;De++)if(Nr=De===0?hn(k):-ai,Ar=De===0?ln(g):xi,De<cr-1){var Pa=R((Kt-Mr[De])/(gt[De].split(" ").length-1)),Qr=gt[De].split(" ");o.push([Qr[0]+" ",Ar,Nr]),xi=0;for(var tn=1;tn<Qr.length;tn++){var Qi=(oi(Qr[tn-1]+" "+Qr[tn])-oi(Qr[tn]))*br+Pa;tn==Qr.length-1?o.push([Qr[tn],Qi,0]):o.push([Qr[tn]+" ",Qi,0]),xi-=Qi}}else o.push([gt[De],Ar,Nr]);o.push(["",xi,0])}else{if(Ot!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(o=[],cr=gt.length,Kt=Kt!==0?Kt:Ki,De=0;De<cr;De++){Nr=De===0?hn(k):-ai,Ar=De===0?ln(g):0;var ta=gt[De].split(" ").length-1,ea=ta>0?(Kt-Mr[De])/ta:0;De<cr-1?xn.push(ut(R(ea))):xn.push(0),o.push([gt[De],Ar,Nr])}}}(typeof E.R2L=="boolean"?E.R2L:ie)===!0&&(o=Qn(o,function(ve,Ae,Te){return[ve.split("").reverse().join(""),Ae,Te]})),st={text:o,x:g,y:k,options:E,mutex:{pdfEscape:Or,activeFontKey:Rt,fonts:Bt,activeFontSize:yt}},me.publish("postProcessText",st),o=st.text,Ye=st.mutex.isHex||!1;var ra=Bt[Rt].encoding;ra!=="WinAnsiEncoding"&&ra!=="StandardEncoding"||(o=Qn(o,function(ve,Ae,Te){return[Sa(ve),Ae,Te]})),gt=Ni(o),o=[];for(var Pn,kn,Fn,si=Array.isArray(gt[0])?1:0,In="",ui=function(ve,Ae,Te){var Ze="";return Te instanceof Wt?(Te=typeof E.angle=="number"?sn(Te,new Wt(1,0,0,1,ve,Ae)):sn(new Wt(1,0,0,1,ve,Ae),Te),rt===Q&&(Te=sn(new Wt(1,0,0,-1,0,0),Te)),Ze=Te.join(" ")+` Tm
`):Ze=ut(ve)+" "+ut(Ae)+` Td
`,Ze},Er=0;Er<gt.length;Er++){switch(In="",si){case 1:Fn=(Ye?"<":"(")+gt[Er][0]+(Ye?">":")"),Pn=parseFloat(gt[Er][1]),kn=parseFloat(gt[Er][2]);break;case 0:Fn=(Ye?"<":"(")+gt[Er]+(Ye?">":")"),Pn=ln(g),kn=hn(k)}xn!==void 0&&xn[Er]!==void 0&&(In=xn[Er]+` Tw
`),Er===0?o.push(In+ui(Pn,kn,Je)+Fn):si===0?o.push(In+Fn):si===1&&o.push(In+ui(Pn,kn,Je)+Fn)}o=si===0?o.join(` Tj
T* `):o.join(` Tj
`),o+=` Tj
`;var en=`BT
/`;return en+=Rt+" "+yt+` Tf
`,en+=ut(yt*Br)+` TL
`,en+=Yn+`
`,en+=ir,en+=o,j(en+="ET"),M[Rt]=!0,ke};var so=p.__private__.clip=p.clip=function(o){return j(o==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return so("evenodd")},p.__private__.discardPath=p.discardPath=function(){return j("n"),this};var $r=p.__private__.isValidStyle=function(o){var g=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(o)!==-1&&(g=!0),g};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(o){return $r(o)&&(v=o),this};var ba=p.__private__.getStyle=p.getStyle=function(o){var g=v;switch(o){case"D":case"S":g="S";break;case"F":g="f";break;case"FD":case"DF":g="B";break;case"f":case"f*":case"B":case"B*":g=o}return g},ya=p.close=function(){return j("h"),this};p.stroke=function(){return j("S"),this},p.fill=function(o){return Ln("f",o),this},p.fillEvenOdd=function(o){return Ln("f*",o),this},p.fillStroke=function(o){return Ln("B",o),this},p.fillStrokeEvenOdd=function(o){return Ln("B*",o),this};var Ln=function(o,g){_e(g)==="object"?co(g,o):j(o)},Ti=function(o){o===null||rt===Q&&o===void 0||(o=ba(o),j(o))};function uo(o,g,k,E,W){var st=new Ci(g||this.boundingBox,k||this.xStep,E||this.yStep,this.gState,W||this.matrix);st.stream=this.stream;var gt=o+"$$"+this.cloneIndex+++"$$";return Ir(gt,st),st}var co=function(o,g){var k=ce[o.key],E=Ht[k];if(E instanceof hi)j("q"),j(lo(g)),E.gState&&p.setGState(E.gState),j(o.matrix.toString()+" cm"),j("/"+k+" sh"),j("Q");else if(E instanceof Ci){var W=new Wt(1,0,0,-1,0,$n());o.matrix&&(W=W.multiply(o.matrix||un),k=uo.call(E,o.key,o.boundingBox,o.xStep,o.yStep,W).id),j("q"),j("/Pattern cs"),j("/"+k+" scn"),E.gState&&p.setGState(E.gState),j(g),j("Q")}},lo=function(o){switch(o){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"}},zi=p.moveTo=function(o,g){return j(ut(R(o))+" "+ut(D(g))+" m"),this},Gn=p.lineTo=function(o,g){return j(ut(R(o))+" "+ut(D(g))+" l"),this},Nn=p.curveTo=function(o,g,k,E,W,st){return j([ut(R(o)),ut(D(g)),ut(R(k)),ut(D(E)),ut(R(W)),ut(D(st)),"c"].join(" ")),this};p.__private__.line=p.line=function(o,g,k,E,W){if(isNaN(o)||isNaN(g)||isNaN(k)||isNaN(E)||!$r(W))throw new Error("Invalid arguments passed to jsPDF.line");return rt===Z?this.lines([[k-o,E-g]],o,g,[1,1],W||"S"):this.lines([[k-o,E-g]],o,g,[1,1]).stroke()},p.__private__.lines=p.lines=function(o,g,k,E,W,st){var gt,It,Ot,Jt,Kt,ge,Ce,Je,ke,Ke,Ye,ir;if(typeof o=="number"&&(ir=k,k=g,g=o,o=ir),E=E||[1,1],st=st||!1,isNaN(g)||isNaN(k)||!Array.isArray(o)||!Array.isArray(E)||!$r(W)||typeof st!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(zi(g,k),gt=E[0],It=E[1],Jt=o.length,Ke=g,Ye=k,Ot=0;Ot<Jt;Ot++)(Kt=o[Ot]).length===2?(Ke=Kt[0]*gt+Ke,Ye=Kt[1]*It+Ye,Gn(Ke,Ye)):(ge=Kt[0]*gt+Ke,Ce=Kt[1]*It+Ye,Je=Kt[2]*gt+Ke,ke=Kt[3]*It+Ye,Ke=Kt[4]*gt+Ke,Ye=Kt[5]*It+Ye,Nn(ge,Ce,Je,ke,Ke,Ye));return st&&ya(),Ti(W),this},p.path=function(o){for(var g=0;g<o.length;g++){var k=o[g],E=k.c;switch(k.op){case"m":zi(E[0],E[1]);break;case"l":Gn(E[0],E[1]);break;case"c":Nn.apply(this,E);break;case"h":ya()}}return this},p.__private__.rect=p.rect=function(o,g,k,E,W){if(isNaN(o)||isNaN(g)||isNaN(k)||isNaN(E)||!$r(W))throw new Error("Invalid arguments passed to jsPDF.rect");return rt===Z&&(E=-E),j([ut(R(o)),ut(D(g)),ut(R(k)),ut(R(E)),"re"].join(" ")),Ti(W),this},p.__private__.triangle=p.triangle=function(o,g,k,E,W,st,gt){if(isNaN(o)||isNaN(g)||isNaN(k)||isNaN(E)||isNaN(W)||isNaN(st)||!$r(gt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[k-o,E-g],[W-k,st-E],[o-W,g-st]],o,g,[1,1],gt,!0),this},p.__private__.roundedRect=p.roundedRect=function(o,g,k,E,W,st,gt){if(isNaN(o)||isNaN(g)||isNaN(k)||isNaN(E)||isNaN(W)||isNaN(st)||!$r(gt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var It=4/3*(Math.SQRT2-1);return W=Math.min(W,.5*k),st=Math.min(st,.5*E),this.lines([[k-2*W,0],[W*It,0,W,st-st*It,W,st],[0,E-2*st],[0,st*It,-W*It,st,-W,st],[2*W-k,0],[-W*It,0,-W,-st*It,-W,-st],[0,2*st-E],[0,-st*It,W*It,-st,W,-st]],o+W,g,[1,1],gt,!0),this},p.__private__.ellipse=p.ellipse=function(o,g,k,E,W){if(isNaN(o)||isNaN(g)||isNaN(k)||isNaN(E)||!$r(W))throw new Error("Invalid arguments passed to jsPDF.ellipse");var st=4/3*(Math.SQRT2-1)*k,gt=4/3*(Math.SQRT2-1)*E;return zi(o+k,g),Nn(o+k,g-gt,o+st,g-E,o,g-E),Nn(o-st,g-E,o-k,g-gt,o-k,g),Nn(o-k,g+gt,o-st,g+E,o,g+E),Nn(o+st,g+E,o+k,g+gt,o+k,g),Ti(W),this},p.__private__.circle=p.circle=function(o,g,k,E){if(isNaN(o)||isNaN(g)||isNaN(k)||!$r(E))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(o,g,k,k,E)},p.setFont=function(o,g,k){return k&&(g=Ut(g,k)),Rt=ga(o,g,{disableWarning:!1}),this};var ho=p.__private__.getFont=p.getFont=function(){return Bt[ga.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var o,g,k={};for(o in te)if(te.hasOwnProperty(o))for(g in k[o]=[],te[o])te[o].hasOwnProperty(g)&&k[o].push(g);return k},p.addFont=function(o,g,k,E,W){var st=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&st.indexOf(arguments[3])!==-1?W=arguments[3]:arguments[3]&&st.indexOf(arguments[3])==-1&&(k=Ut(k,E)),ha.call(this,o,g,k,W=W||"Identity-H")};var Jn,Ui=n.lineWidth||.200025,Xt=p.__private__.getLineWidth=p.getLineWidth=function(){return Ui},fo=p.__private__.setLineWidth=p.setLineWidth=function(o){return Ui=o,j(ut(R(o))+" w"),this};p.__private__.setLineDash=qt.API.setLineDash=qt.API.setLineDashPattern=function(o,g){if(o=o||[],g=g||0,isNaN(g)||!Array.isArray(o))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return o=o.map(function(k){return ut(R(k))}).join(" "),g=ut(R(g)),j("["+o+"] "+g+" d"),this};var po=p.__private__.getLineHeight=p.getLineHeight=function(){return yt*Jn};p.__private__.getLineHeight=p.getLineHeight=function(){return yt*Jn};var go=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(o){return typeof(o=o||1.15)=="number"&&(Jn=o),this},mo=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return Jn};go(n.lineHeight);var ln=p.__private__.getHorizontalCoordinate=function(o){return R(o)},hn=p.__private__.getVerticalCoordinate=function(o){return rt===Q?o:Yt[C].mediaBox.topRightY-Yt[C].mediaBox.bottomLeftY-R(o)},vo=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(o){return ut(ln(o))},bo=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(o){return ut(hn(o))},bi=n.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return Kr(bi)},p.__private__.setStrokeColor=p.setDrawColor=function(o,g,k,E){return bi=Tr({ch1:o,ch2:g,ch3:k,ch4:E,pdfColorType:"draw",precision:2}),j(bi),this};var Hi=n.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return Kr(Hi)},p.__private__.setFillColor=p.setFillColor=function(o,g,k,E){return Hi=Tr({ch1:o,ch2:g,ch3:k,ch4:E,pdfColorType:"fill",precision:2}),j(Hi),this};var Yn=n.textColor||"0 g",yi=p.__private__.getTextColor=p.getTextColor=function(){return Kr(Yn)};p.__private__.setTextColor=p.setTextColor=function(o,g,k,E){return Yn=Tr({ch1:o,ch2:g,ch3:k,ch4:E,pdfColorType:"text",precision:3}),this};var wi=n.charSpace,yo=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(wi||0)};p.__private__.setCharSpace=p.setCharSpace=function(o){if(isNaN(o))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return wi=o,this};var Wi=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(o){var g=p.CapJoinStyles[o];if(g===void 0)throw new Error("Line cap style of '"+o+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Wi=g,j(g+" J"),this};var Vi=0;p.__private__.setLineJoin=p.setLineJoin=function(o){var g=p.CapJoinStyles[o];if(g===void 0)throw new Error("Line join style of '"+o+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Vi=g,j(g+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(o){if(o=o||0,isNaN(o))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return j(ut(R(o))+" M"),this},p.GState=to,p.setGState=function(o){(o=typeof o=="string"?ee[qe[o]]:Xn(null,o)).equals(Xe)||(j("/"+o.id+" gs"),Xe=o)};var Xn=function(o,g){if(!o||!qe[o]){var k=!1;for(var E in ee)if(ee.hasOwnProperty(E)&&ee[E].equals(g)){k=!0;break}if(k)g=ee[E];else{var W="GS"+(Object.keys(ee).length+1).toString(10);ee[W]=g,g.id=W}return o&&(qe[o]=g.id),me.publish("addGState",g),g}};p.addGState=function(o,g){return Xn(o,g),this},p.saveGraphicsState=function(){return j("q"),Le.push({key:Rt,size:yt,color:Yn}),this},p.restoreGraphicsState=function(){j("Q");var o=Le.pop();return Rt=o.key,yt=o.size,Yn=o.color,Xe=null,this},p.setCurrentTransformationMatrix=function(o){return j(o.toString()+" cm"),this},p.comment=function(o){return j("#"+o),this};var Kn=function(o,g){var k=o||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return k},set:function(st){isNaN(st)||(k=parseFloat(st))}});var E=g||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return E},set:function(st){isNaN(st)||(E=parseFloat(st))}});var W="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return W},set:function(st){W=st.toString()}}),this},Gi=function(o,g,k,E){Kn.call(this,o,g),this.type="rect";var W=k||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return W},set:function(gt){isNaN(gt)||(W=parseFloat(gt))}});var st=E||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return st},set:function(gt){isNaN(gt)||(st=parseFloat(gt))}}),this},Li=function(){this.page=Ne,this.currentPage=C,this.pages=wt.slice(0),this.pagesContext=Yt.slice(0),this.x=Dt,this.y=Pe,this.matrix=pe,this.width=wa(C),this.height=fn(C),this.outputDestination=Pt,this.id="",this.objectNumber=-1};Li.prototype.restore=function(){Ne=this.page,C=this.currentPage,Yt=this.pagesContext,wt=this.pages,Dt=this.x,Pe=this.y,pe=this.matrix,La(C,this.width),dn(C,this.height),Pt=this.outputDestination};var Ji=function(o,g,k,E,W){Xr.push(new Li),Ne=C=0,wt=[],Dt=o,Pe=g,pe=W,qi([k,E])};for(var Zn in p.beginFormObject=function(o,g,k,E,W){return Ji(o,g,k,E,W),this},p.endFormObject=function(o){return function(g){if(on[g])Xr.pop().restore();else{var k=new Li,E="Xo"+(Object.keys(ur).length+1).toString(10);k.id=E,on[g]=E,ur[E]=k,me.publish("addFormObject",k),Xr.pop().restore()}}(o),this},p.doFormObject=function(o,g){var k=ur[on[o]];return j("q"),j(g.toString()+" cm"),j("/"+k.id+" Do"),j("Q"),this},p.getFormObject=function(o){var g=ur[on[o]];return{x:g.x,y:g.y,width:g.width,height:g.height,matrix:g.matrix}},p.save=function(o,g){return o=o||"generated.pdf",(g=g||{}).returnPromise=g.returnPromise||!1,g.returnPromise===!1?(li(Wn(cn()),o),typeof li.unload=="function"&&Gt.setTimeout&&setTimeout(li.unload,911),this):new Promise(function(k,E){try{var W=li(Wn(cn()),o);typeof li.unload=="function"&&Gt.setTimeout&&setTimeout(li.unload,911),k(W)}catch(st){E(st.message)}})},qt.API)qt.API.hasOwnProperty(Zn)&&(Zn==="events"&&qt.API.events.length?function(o,g){var k,E,W;for(W=g.length-1;W!==-1;W--)k=g[W][0],E=g[W][1],o.subscribe.apply(o,[k].concat(typeof E=="function"?[E]:E))}(me,qt.API.events):p[Zn]=qt.API[Zn]);function wa(o){return Yt[o].mediaBox.topRightX-Yt[o].mediaBox.bottomLeftX}function La(o,g){Yt[o].mediaBox.topRightX=g+Yt[o].mediaBox.bottomLeftX}function fn(o){return Yt[o].mediaBox.topRightY-Yt[o].mediaBox.bottomLeftY}function dn(o,g){Yt[o].mediaBox.topRightY=g+Yt[o].mediaBox.bottomLeftY}var Na=p.getPageWidth=function(o){return wa(o=o||C)/Vt},Aa=p.setPageWidth=function(o,g){La(o,g*Vt)},$n=p.getPageHeight=function(o){return fn(o=o||C)/Vt},xa=p.setPageHeight=function(o,g){dn(o,g*Vt)};return p.internal={pdfEscape:Or,getStyle:ba,getFont:ho,getFontSize:St,getCharSpace:yo,getTextColor:yi,getLineHeight:po,getLineHeightFactor:mo,getLineWidth:Xt,write:ue,getHorizontalCoordinate:ln,getVerticalCoordinate:hn,getCoordinateString:vo,getVerticalCoordinateString:bo,collections:{},newObject:je,newAdditionalObject:zn,newObjectDeferred:er,newObjectDeferredBegin:nr,getFilters:zr,putStream:jr,events:me,scaleFactor:Vt,pageSize:{getWidth:function(){return Na(C)},setWidth:function(o){Aa(C,o)},getHeight:function(){return $n(C)},setHeight:function(o){xa(C,o)}},encryptionOptions:N,encryption:Re,getEncryptor:function(o){return N!==null?Re.encryptor(o,0):function(g){return g}},output:Ur,getNumberOfPages:pa,pages:wt,out:j,f2:x,f3:F,getPageInfo:Di,getPageInfoByObjId:ao,getCurrentPageInfo:oo,getPDFVersion:O,Point:Kn,Rectangle:Gi,Matrix:Wt,hasHotfix:Vn},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return Na(C)},set:function(o){Aa(C,o)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return $n(C)},set:function(o){xa(C,o)},enumerable:!0,configurable:!0}),(function(o){for(var g=0,k=zt.length;g<k;g++){var E=ha.call(this,o[g][0],o[g][1],o[g][2],zt[g][3],!0);P===!1&&(M[E]=!0);var W=o[g][0].split("-");la({id:E,fontName:W[0],fontStyle:W[1]||""})}me.publish("addFonts",{fonts:Bt,dictionary:te})}).call(p,zt),Rt="F1",fa(s,i),me.publish("initialized"),p}Fi.prototype.lsbFirstWord=function(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)},Fi.prototype.toHexString=function(n){return n.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Fi.prototype.hexToBytes=function(n){for(var e=[],i=0;i<n.length;i+=2)e.push(String.fromCharCode(parseInt(n.substr(i,2),16)));return e.join("")},Fi.prototype.processOwnerPassword=function(n,e){return Jo(Go(e).substr(0,5),n)},Fi.prototype.encryptor=function(n,e){var i=Go(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&e,e>>8&255)).substr(0,10);return function(a){return Jo(i,a)}},to.prototype.equals=function(n){var e,i="id,objectNumber,equals";if(!n||_e(n)!==_e(this))return!1;var a=0;for(e in this)if(!(i.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!n.hasOwnProperty(e)||this[e]!==n[e])return!1;a++}for(e in n)n.hasOwnProperty(e)&&i.indexOf(e)<0&&a--;return a===0},qt.API={events:[]},qt.version="3.0.3";var Ee=qt.API,Ko=1,di=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Pi=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Zt=function(n){return n.toFixed(2)},qn=function(n){return n.toFixed(5)};Ee.__acroform__={};var Lr=function(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n},Us=function(n){return n*Ko},rn=function(n){var e=new hu,i=Ft.internal.getHeight(n)||0,a=Ft.internal.getWidth(n)||0;return e.BBox=[0,0,Number(Zt(a)),Number(Zt(i))],e},lc=Ee.__acroform__.setBit=function(n,e){if(n=n||0,e=e||0,isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return n|1<<e},hc=Ee.__acroform__.clearBit=function(n,e){if(n=n||0,e=e||0,isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return n&~(1<<e)},fc=Ee.__acroform__.getBit=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return n&1<<e?1:0},He=Ee.__acroform__.getBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return fc(n,e-1)},We=Ee.__acroform__.setBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return lc(n,e-1)},Ve=Ee.__acroform__.clearBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return hc(n,e-1)},dc=Ee.__acroform__.calculateCoordinates=function(n,e){var i=e.internal.getHorizontalCoordinate,a=e.internal.getVerticalCoordinate,s=n[0],u=n[1],d=n[2],l=n[3],h={};return h.lowerLeft_X=i(s)||0,h.lowerLeft_Y=a(u+l)||0,h.upperRight_X=i(s+d)||0,h.upperRight_Y=a(u)||0,[Number(Zt(h.lowerLeft_X)),Number(Zt(h.lowerLeft_Y)),Number(Zt(h.upperRight_X)),Number(Zt(h.upperRight_Y))]},pc=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var e=[],i=n._V||n.DV,a=Yo(n,i),s=n.scope.internal.getFont(n.fontName,n.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(n.scope.__private__.encodeColorString(n.color)),e.push("/"+s+" "+Zt(a.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(a.text),e.push("ET"),e.push("Q"),e.push("EMC");var u=rn(n);return u.scope=n.scope,u.stream=e.join(`
`),u}},Yo=function(n,e){var i=n.fontSize===0?n.maxFontSize:n.fontSize,a={text:"",fontSize:""},s=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");s=n.multiline?s.map(function(x){return x.split(`
`)}):s.map(function(x){return[x]});var u=i,d=Ft.internal.getHeight(n)||0;d=d<0?-d:d;var l=Ft.internal.getWidth(n)||0;l=l<0?-l:l;var h=function(x,F,R){if(x+1<s.length){var D=F+" "+s[x+1][0];return Ga(D,n,R).width<=l-4}return!1};u++;t:for(;u>0;){e="",u--;var v,N,P=Ga("3",n,u).height,M=n.multiline?d-u:(d-P)/2,p=M+=2,z=0,O=0,T=0;if(u<=0){e=`(...) Tj
`,e+="% Width of Text: "+Ga(e,n,u=12).width+", FieldWidth:"+l+`
`;break}for(var I="",Z=0,Q=0;Q<s.length;Q++)if(s.hasOwnProperty(Q)){var rt=!1;if(s[Q].length!==1&&T!==s[Q].length-1){if((P+2)*(Z+2)+2>d)continue t;I+=s[Q][T],rt=!0,O=Q,Q--}else{I=(I+=s[Q][T]+" ").substr(I.length-1)==" "?I.substr(0,I.length-1):I;var Lt=parseInt(Q),xt=h(Lt,I,u),Ut=Q>=s.length-1;if(xt&&!Ut){I+=" ",T=0;continue}if(xt||Ut){if(Ut)O=Lt;else if(n.multiline&&(P+2)*(Z+2)+2>d)continue t}else{if(!n.multiline||(P+2)*(Z+2)+2>d)continue t;O=Lt}}for(var ut="",J=z;J<=O;J++){var mt=s[J];if(n.multiline){if(J===O){ut+=mt[T]+" ",T=(T+1)%mt.length;continue}if(J===z){ut+=mt[mt.length-1]+" ";continue}}ut+=mt[0]+" "}switch(ut=ut.substr(ut.length-1)==" "?ut.substr(0,ut.length-1):ut,N=Ga(ut,n,u).width,n.textAlign){case"right":v=l-N-2;break;case"center":v=(l-N)/2;break;default:v=2}e+=Zt(v)+" "+Zt(p)+` Td
`,e+="("+di(ut)+`) Tj
`,e+=-Zt(v)+` 0 Td
`,p=-(u+2),N=0,z=rt?O:O+1,Z++,I=""}break}return a.text=e,a.fontSize=u,a},Ga=function(n,e,i){var a=e.scope.internal.getFont(e.fontName,e.fontStyle),s=e.scope.getStringUnitWidth(n,{font:a,fontSize:parseFloat(i),charSpace:0})*parseFloat(i);return{height:e.scope.getStringUnitWidth("3",{font:a,fontSize:parseFloat(i),charSpace:0})*parseFloat(i)*1.5,width:s}},gc={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},mc=function(n,e){var i={type:"reference",object:n};e.internal.getPageInfo(n.page).pageContext.annotations.find(function(a){return a.type===i.type&&a.object===i.object})===void 0&&e.internal.getPageInfo(n.page).pageContext.annotations.push(i)},vc=function(n,e){if(e.scope=n,n.internal!==void 0&&(n.internal.acroformPlugin===void 0||n.internal.acroformPlugin.isInitialized===!1)){if(Jr.FieldNum=0,n.internal.acroformPlugin=JSON.parse(JSON.stringify(gc)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ko=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new fu,n.internal.acroformPlugin.acroFormDictionaryRoot.scope=n,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",function(){(function(i){i.internal.events.unsubscribe(i.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete i.internal.acroformPlugin.acroFormDictionaryRoot._eventID,i.internal.acroformPlugin.printedOut=!0})(n)}),n.internal.events.subscribe("buildDocument",function(){(function(i){i.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var a=i.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var s in a)if(a.hasOwnProperty(s)){var u=a[s];u.objId=void 0,u.hasAnnotation&&mc(u,i)}})(n)}),n.internal.events.subscribe("putCatalog",function(){(function(i){if(i.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");i.internal.write("/AcroForm "+i.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(n)}),n.internal.events.subscribe("postPutPages",function(i){(function(a,s){var u=!a;for(var d in a||(s.internal.newObjectDeferredBegin(s.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),s.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),a=a||s.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(a.hasOwnProperty(d)){var l=a[d],h=[],v=l.Rect;if(l.Rect&&(l.Rect=dc(l.Rect,s)),s.internal.newObjectDeferredBegin(l.objId,!0),l.DA=Ft.createDefaultAppearanceStream(l),_e(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(h=l.getKeyValueListForStream()),l.Rect=v,l.hasAppearanceStream&&!l.appearanceStreamContent){var N=pc(l);h.push({key:"AP",value:"<</N "+N+">>"}),s.internal.acroformPlugin.xForms.push(N)}if(l.appearanceStreamContent){var P="";for(var M in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(M)){var p=l.appearanceStreamContent[M];if(P+="/"+M+" ",P+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var d in p)if(p.hasOwnProperty(d)){var z=p[d];typeof z=="function"&&(z=z.call(s,l)),P+="/"+d+" "+z+" ",s.internal.acroformPlugin.xForms.indexOf(z)>=0||s.internal.acroformPlugin.xForms.push(z)}}else typeof(z=p)=="function"&&(z=z.call(s,l)),P+="/"+d+" "+z,s.internal.acroformPlugin.xForms.indexOf(z)>=0||s.internal.acroformPlugin.xForms.push(z);P+=">>"}h.push({key:"AP",value:`<<
`+P+">>"})}s.internal.putStream({additionalKeyValues:h,objectId:l.objId}),s.internal.out("endobj")}u&&function(O,T){for(var I in O)if(O.hasOwnProperty(I)){var Z=I,Q=O[I];T.internal.newObjectDeferredBegin(Q.objId,!0),_e(Q)==="object"&&typeof Q.putStream=="function"&&Q.putStream(),delete O[Z]}}(s.internal.acroformPlugin.xForms,s)})(i,n)}),n.internal.acroformPlugin.isInitialized=!0}},lu=Ee.__acroform__.arrayToPdfArray=function(n,e,i){var a=function(d){return d};if(Array.isArray(n)){for(var s="[",u=0;u<n.length;u++)switch(u!==0&&(s+=" "),_e(n[u])){case"boolean":case"number":case"object":s+=n[u].toString();break;case"string":n[u].substr(0,1)!=="/"?(e!==void 0&&i&&(a=i.internal.getEncryptor(e)),s+="("+di(a(n[u].toString()))+")"):s+=n[u].toString()}return s+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},To=function(n,e,i){var a=function(s){return s};return e!==void 0&&i&&(a=i.internal.getEncryptor(e)),(n=n||"").toString(),"("+di(a(n))+")"},nn=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(n){this._objId=n}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};nn.prototype.toString=function(){return this.objId+" 0 R"},nn.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},nn.prototype.getKeyValueListForStream=function(){var n=[],e=Object.getOwnPropertyNames(this).filter(function(u){return u!="content"&&u!="appearanceStreamContent"&&u!="scope"&&u!="objId"&&u.substring(0,1)!="_"});for(var i in e)if(Object.getOwnPropertyDescriptor(this,e[i]).configurable===!1){var a=e[i],s=this[a];s&&(Array.isArray(s)?n.push({key:a,value:lu(s,this.objId,this.scope)}):s instanceof nn?(s.scope=this.scope,n.push({key:a,value:s.objId+" 0 R"})):typeof s!="function"&&n.push({key:a,value:s}))}return n};var hu=function(){nn.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 n,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(i){n=i.trim()},get:function(){return n||null}})};Lr(hu,nn);var fu=function(){nn.call(this);var n,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(n){var i=function(a){return a};return this.scope&&(i=this.scope.internal.getEncryptor(this.objId)),"("+di(i(n))+")"}},set:function(i){n=i}})};Lr(fu,nn);var Jr=function n(){nn.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(I){if(isNaN(I))throw new Error('Invalid value "'+I+'" for attribute F supplied.');e=I}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!He(e,3)},set:function(I){I?this.F=We(e,3):this.F=Ve(e,3)}});var i=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return i},set:function(I){if(isNaN(I))throw new Error('Invalid value "'+I+'" for attribute Ff supplied.');i=I}});var a=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(a.length!==0)return a},set:function(I){a=I!==void 0?I:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[0])?0:a[0]},set:function(I){a[0]=I}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[1])?0:a[1]},set:function(I){a[1]=I}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[2])?0:a[2]},set:function(I){a[2]=I}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[3])?0:a[3]},set:function(I){a[3]=I}});var s="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return s},set:function(I){switch(I){case"/Btn":case"/Tx":case"/Ch":case"/Sig":s=I;break;default:throw new Error('Invalid value "'+I+'" for attribute FT supplied.')}}});var u=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!u||u.length<1){if(this instanceof eo)return;u="FieldObject"+n.FieldNum++}var I=function(Z){return Z};return this.scope&&(I=this.scope.internal.getEncryptor(this.objId)),"("+di(I(u))+")"},set:function(I){u=I.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return u},set:function(I){u=I}});var d="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return d},set:function(I){d=I}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(I){l=I}});var h=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return h},set:function(I){h=I}});var v=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return v===void 0?50/Ko:v},set:function(I){v=I}});var N="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return N},set:function(I){N=I}});var P="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!P||this instanceof eo||this instanceof fi))return To(P,this.objId,this.scope)},set:function(I){I=I.toString(),P=I}});var M=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(M)return this instanceof rr==0?To(M,this.objId,this.scope):M},set:function(I){I=I.toString(),M=this instanceof rr==0?I.substr(0,1)==="("?Pi(I.substr(1,I.length-2)):Pi(I):I}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof rr==1?Pi(M.substr(1,M.length-1)):M},set:function(I){I=I.toString(),M=this instanceof rr==1?"/"+I:I}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(I){this.V=I}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof rr==0?To(p,this.objId,this.scope):p},set:function(I){I=I.toString(),p=this instanceof rr==0?I.substr(0,1)==="("?Pi(I.substr(1,I.length-2)):Pi(I):I}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof rr==1?Pi(p.substr(1,p.length-1)):p},set:function(I){I=I.toString(),p=this instanceof rr==1?"/"+I:I}}),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 z,O=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return O},set:function(I){I=!!I,O=I}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(z)return z},set:function(I){z=I}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,1)},set:function(I){I?this.Ff=We(this.Ff,1):this.Ff=Ve(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,2)},set:function(I){I?this.Ff=We(this.Ff,2):this.Ff=Ve(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,3)},set:function(I){I?this.Ff=We(this.Ff,3):this.Ff=Ve(this.Ff,3)}});var T=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(T!==null)return T},set:function(I){if([0,1,2].indexOf(I)===-1)throw new Error('Invalid value "'+I+'" for attribute Q supplied.');T=I}}),Object.defineProperty(this,"textAlign",{get:function(){var I;switch(T){case 0:default:I="left";break;case 1:I="center";break;case 2:I="right"}return I},configurable:!0,enumerable:!0,set:function(I){switch(I){case"right":case 2:T=2;break;case"center":case 1:T=1;break;default:T=0}}})};Lr(Jr,nn);var ji=function(){Jr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var n=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return n},set:function(i){n=i}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return n},set:function(i){n=i}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return lu(e,this.objId,this.scope)},set:function(i){var a,s;s=[],typeof(a=i)=="string"&&(s=function(u,d,l){l||(l=1);for(var h,v=[];h=d.exec(u);)v.push(h[l]);return v}(a,/\((.*?)\)/g)),e=s}}),this.getOptions=function(){return e},this.setOptions=function(i){e=i,this.sort&&e.sort()},this.addOption=function(i){i=(i=i||"").toString(),e.push(i),this.sort&&e.sort()},this.removeOption=function(i,a){for(a=a||!1,i=(i=i||"").toString();e.indexOf(i)!==-1&&(e.splice(e.indexOf(i),1),a!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,18)},set:function(i){i?this.Ff=We(this.Ff,18):this.Ff=Ve(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,19)},set:function(i){this.combo===!0&&(i?this.Ff=We(this.Ff,19):this.Ff=Ve(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,20)},set:function(i){i?(this.Ff=We(this.Ff,20),e.sort()):this.Ff=Ve(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,22)},set:function(i){i?this.Ff=We(this.Ff,22):this.Ff=Ve(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,23)},set:function(i){i?this.Ff=We(this.Ff,23):this.Ff=Ve(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,27)},set:function(i){i?this.Ff=We(this.Ff,27):this.Ff=Ve(this.Ff,27)}}),this.hasAppearanceStream=!1};Lr(ji,Jr);var Oi=function(){ji.call(this),this.fontName="helvetica",this.combo=!1};Lr(Oi,ji);var Bi=function(){Oi.call(this),this.combo=!0};Lr(Bi,Oi);var Ka=function(){Bi.call(this),this.edit=!0};Lr(Ka,Bi);var rr=function(){Jr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,15)},set:function(i){i?this.Ff=We(this.Ff,15):this.Ff=Ve(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,16)},set:function(i){i?this.Ff=We(this.Ff,16):this.Ff=Ve(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,17)},set:function(i){i?this.Ff=We(this.Ff,17):this.Ff=Ve(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,26)},set:function(i){i?this.Ff=We(this.Ff,26):this.Ff=Ve(this.Ff,26)}});var n,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(u){return u};if(this.scope&&(i=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var a,s=[];for(a in s.push("<<"),e)s.push("/"+a+" ("+di(i(e[a]))+")");return s.push(">>"),s.join(`
`)}},set:function(i){_e(i)==="object"&&(e=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(i){typeof i=="string"&&(e.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(i){n=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(i){n="/"+i}})};Lr(rr,Jr);var Za=function(){rr.call(this),this.pushButton=!0};Lr(Za,rr);var Mi=function(){rr.call(this),this.radio=!0,this.pushButton=!1;var n=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e!==void 0?e:[]}})};Lr(Mi,rr);var eo=function(){var n,e;Jr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(s){n=s}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(s){e=s}});var i,a={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var s=function(l){return l};this.scope&&(s=this.scope.internal.getEncryptor(this.objId));var u,d=[];for(u in d.push("<<"),a)d.push("/"+u+" ("+di(s(a[u]))+")");return d.push(">>"),d.join(`
`)},set:function(s){_e(s)==="object"&&(a=s)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return a.CA||""},set:function(s){typeof s=="string"&&(a.CA=s)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return i},set:function(s){i=s}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return i.substr(1,i.length-1)},set:function(s){i="/"+s}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ft.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Lr(eo,Jr),Mi.prototype.setAppearance=function(n){if(!("createAppearanceStream"in n)||!("getCA"in n))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var i=this.Kids[e];i.appearanceStreamContent=n.createAppearanceStream(i.optionName),i.caption=n.getCA()}},Mi.prototype.createOption=function(n){var e=new eo;return e.Parent=this,e.optionName=n,this.Kids.push(e),bc.call(this.scope,e),e};var $a=function(){rr.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ft.CheckBox.createAppearanceStream()};Lr($a,rr);var fi=function(){Jr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,13)},set:function(e){e?this.Ff=We(this.Ff,13):this.Ff=Ve(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,21)},set:function(e){e?this.Ff=We(this.Ff,21):this.Ff=Ve(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,23)},set:function(e){e?this.Ff=We(this.Ff,23):this.Ff=Ve(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,24)},set:function(e){e?this.Ff=We(this.Ff,24):this.Ff=Ve(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,25)},set:function(e){e?this.Ff=We(this.Ff,25):this.Ff=Ve(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,26)},set:function(e){e?this.Ff=We(this.Ff,26):this.Ff=Ve(this.Ff,26)}});var n=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return n},set:function(e){Number.isInteger(e)&&(n=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Lr(fi,Jr);var Qa=function(){fi.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!He(this.Ff,14)},set:function(n){n?this.Ff=We(this.Ff,14):this.Ff=Ve(this.Ff,14)}}),this.password=!0};Lr(Qa,fi);var Ft={CheckBox:{createAppearanceStream:function(){return{N:{On:Ft.CheckBox.YesNormal},D:{On:Ft.CheckBox.YesPushDown,Off:Ft.CheckBox.OffPushDown}}},YesPushDown:function(n){var e=rn(n);e.scope=n.scope;var i=[],a=n.scope.internal.getFont(n.fontName,n.fontStyle).id,s=n.scope.__private__.encodeColorString(n.color),u=Yo(n,n.caption);return i.push("0.749023 g"),i.push("0 0 "+Zt(Ft.internal.getWidth(n))+" "+Zt(Ft.internal.getHeight(n))+" re"),i.push("f"),i.push("BMC"),i.push("q"),i.push("0 0 1 rg"),i.push("/"+a+" "+Zt(u.fontSize)+" Tf "+s),i.push("BT"),i.push(u.text),i.push("ET"),i.push("Q"),i.push("EMC"),e.stream=i.join(`
`),e},YesNormal:function(n){var e=rn(n);e.scope=n.scope;var i=n.scope.internal.getFont(n.fontName,n.fontStyle).id,a=n.scope.__private__.encodeColorString(n.color),s=[],u=Ft.internal.getHeight(n),d=Ft.internal.getWidth(n),l=Yo(n,n.caption);return s.push("1 g"),s.push("0 0 "+Zt(d)+" "+Zt(u)+" re"),s.push("f"),s.push("q"),s.push("0 0 1 rg"),s.push("0 0 "+Zt(d-1)+" "+Zt(u-1)+" re"),s.push("W"),s.push("n"),s.push("0 g"),s.push("BT"),s.push("/"+i+" "+Zt(l.fontSize)+" Tf "+a),s.push(l.text),s.push("ET"),s.push("Q"),e.stream=s.join(`
`),e},OffPushDown:function(n){var e=rn(n);e.scope=n.scope;var i=[];return i.push("0.749023 g"),i.push("0 0 "+Zt(Ft.internal.getWidth(n))+" "+Zt(Ft.internal.getHeight(n))+" re"),i.push("f"),e.stream=i.join(`
`),e}},RadioButton:{Circle:{createAppearanceStream:function(n){var e={D:{Off:Ft.RadioButton.Circle.OffPushDown},N:{}};return e.N[n]=Ft.RadioButton.Circle.YesNormal,e.D[n]=Ft.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(n){var e=rn(n);e.scope=n.scope;var i=[],a=Ft.internal.getWidth(n)<=Ft.internal.getHeight(n)?Ft.internal.getWidth(n)/4:Ft.internal.getHeight(n)/4;a=Number((.9*a).toFixed(5));var s=Ft.internal.Bezier_C,u=Number((a*s).toFixed(5));return i.push("q"),i.push("1 0 0 1 "+qn(Ft.internal.getWidth(n)/2)+" "+qn(Ft.internal.getHeight(n)/2)+" cm"),i.push(a+" 0 m"),i.push(a+" "+u+" "+u+" "+a+" 0 "+a+" c"),i.push("-"+u+" "+a+" -"+a+" "+u+" -"+a+" 0 c"),i.push("-"+a+" -"+u+" -"+u+" -"+a+" 0 -"+a+" c"),i.push(u+" -"+a+" "+a+" -"+u+" "+a+" 0 c"),i.push("f"),i.push("Q"),e.stream=i.join(`
`),e},YesPushDown:function(n){var e=rn(n);e.scope=n.scope;var i=[],a=Ft.internal.getWidth(n)<=Ft.internal.getHeight(n)?Ft.internal.getWidth(n)/4:Ft.internal.getHeight(n)/4;a=Number((.9*a).toFixed(5));var s=Number((2*a).toFixed(5)),u=Number((s*Ft.internal.Bezier_C).toFixed(5)),d=Number((a*Ft.internal.Bezier_C).toFixed(5));return i.push("0.749023 g"),i.push("q"),i.push("1 0 0 1 "+qn(Ft.internal.getWidth(n)/2)+" "+qn(Ft.internal.getHeight(n)/2)+" cm"),i.push(s+" 0 m"),i.push(s+" "+u+" "+u+" "+s+" 0 "+s+" c"),i.push("-"+u+" "+s+" -"+s+" "+u+" -"+s+" 0 c"),i.push("-"+s+" -"+u+" -"+u+" -"+s+" 0 -"+s+" c"),i.push(u+" -"+s+" "+s+" -"+u+" "+s+" 0 c"),i.push("f"),i.push("Q"),i.push("0 g"),i.push("q"),i.push("1 0 0 1 "+qn(Ft.internal.getWidth(n)/2)+" "+qn(Ft.internal.getHeight(n)/2)+" cm"),i.push(a+" 0 m"),i.push(a+" "+d+" "+d+" "+a+" 0 "+a+" c"),i.push("-"+d+" "+a+" -"+a+" "+d+" -"+a+" 0 c"),i.push("-"+a+" -"+d+" -"+d+" -"+a+" 0 -"+a+" c"),i.push(d+" -"+a+" "+a+" -"+d+" "+a+" 0 c"),i.push("f"),i.push("Q"),e.stream=i.join(`
`),e},OffPushDown:function(n){var e=rn(n);e.scope=n.scope;var i=[],a=Ft.internal.getWidth(n)<=Ft.internal.getHeight(n)?Ft.internal.getWidth(n)/4:Ft.internal.getHeight(n)/4;a=Number((.9*a).toFixed(5));var s=Number((2*a).toFixed(5)),u=Number((s*Ft.internal.Bezier_C).toFixed(5));return i.push("0.749023 g"),i.push("q"),i.push("1 0 0 1 "+qn(Ft.internal.getWidth(n)/2)+" "+qn(Ft.internal.getHeight(n)/2)+" cm"),i.push(s+" 0 m"),i.push(s+" "+u+" "+u+" "+s+" 0 "+s+" c"),i.push("-"+u+" "+s+" -"+s+" "+u+" -"+s+" 0 c"),i.push("-"+s+" -"+u+" -"+u+" -"+s+" 0 -"+s+" c"),i.push(u+" -"+s+" "+s+" -"+u+" "+s+" 0 c"),i.push("f"),i.push("Q"),e.stream=i.join(`
`),e}},Cross:{createAppearanceStream:function(n){var e={D:{Off:Ft.RadioButton.Cross.OffPushDown},N:{}};return e.N[n]=Ft.RadioButton.Cross.YesNormal,e.D[n]=Ft.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(n){var e=rn(n);e.scope=n.scope;var i=[],a=Ft.internal.calculateCross(n);return i.push("q"),i.push("1 1 "+Zt(Ft.internal.getWidth(n)-2)+" "+Zt(Ft.internal.getHeight(n)-2)+" re"),i.push("W"),i.push("n"),i.push(Zt(a.x1.x)+" "+Zt(a.x1.y)+" m"),i.push(Zt(a.x2.x)+" "+Zt(a.x2.y)+" l"),i.push(Zt(a.x4.x)+" "+Zt(a.x4.y)+" m"),i.push(Zt(a.x3.x)+" "+Zt(a.x3.y)+" l"),i.push("s"),i.push("Q"),e.stream=i.join(`
`),e},YesPushDown:function(n){var e=rn(n);e.scope=n.scope;var i=Ft.internal.calculateCross(n),a=[];return a.push("0.749023 g"),a.push("0 0 "+Zt(Ft.internal.getWidth(n))+" "+Zt(Ft.internal.getHeight(n))+" re"),a.push("f"),a.push("q"),a.push("1 1 "+Zt(Ft.internal.getWidth(n)-2)+" "+Zt(Ft.internal.getHeight(n)-2)+" re"),a.push("W"),a.push("n"),a.push(Zt(i.x1.x)+" "+Zt(i.x1.y)+" m"),a.push(Zt(i.x2.x)+" "+Zt(i.x2.y)+" l"),a.push(Zt(i.x4.x)+" "+Zt(i.x4.y)+" m"),a.push(Zt(i.x3.x)+" "+Zt(i.x3.y)+" l"),a.push("s"),a.push("Q"),e.stream=a.join(`
`),e},OffPushDown:function(n){var e=rn(n);e.scope=n.scope;var i=[];return i.push("0.749023 g"),i.push("0 0 "+Zt(Ft.internal.getWidth(n))+" "+Zt(Ft.internal.getHeight(n))+" re"),i.push("f"),e.stream=i.join(`
`),e}}},createDefaultAppearanceStream:function(n){var e=n.scope.internal.getFont(n.fontName,n.fontStyle).id,i=n.scope.__private__.encodeColorString(n.color);return"/"+e+" "+n.fontSize+" Tf "+i}};Ft.internal={Bezier_C:.551915024494,calculateCross:function(n){var e=Ft.internal.getWidth(n),i=Ft.internal.getHeight(n),a=Math.min(e,i);return{x1:{x:(e-a)/2,y:(i-a)/2+a},x2:{x:(e-a)/2+a,y:(i-a)/2},x3:{x:(e-a)/2,y:(i-a)/2},x4:{x:(e-a)/2+a,y:(i-a)/2+a}}}},Ft.internal.getWidth=function(n){var e=0;return _e(n)==="object"&&(e=Us(n.Rect[2])),e},Ft.internal.getHeight=function(n){var e=0;return _e(n)==="object"&&(e=Us(n.Rect[3])),e};var bc=Ee.addField=function(n){if(vc(this,n),!(n instanceof Jr))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=n).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),n.page=n.scope.internal.getCurrentPageInfo().pageNumber,this};Ee.AcroFormChoiceField=ji,Ee.AcroFormListBox=Oi,Ee.AcroFormComboBox=Bi,Ee.AcroFormEditBox=Ka,Ee.AcroFormButton=rr,Ee.AcroFormPushButton=Za,Ee.AcroFormRadioButton=Mi,Ee.AcroFormCheckBox=$a,Ee.AcroFormTextField=fi,Ee.AcroFormPasswordField=Qa,Ee.AcroFormAppearance=Ft,Ee.AcroForm={ChoiceField:ji,ListBox:Oi,ComboBox:Bi,EditBox:Ka,Button:rr,PushButton:Za,RadioButton:Mi,CheckBox:$a,TextField:fi,PasswordField:Qa,Appearance:Ft},qt.AcroForm={ChoiceField:ji,ListBox:Oi,ComboBox:Bi,EditBox:Ka,Button:rr,PushButton:Za,RadioButton:Mi,CheckBox:$a,TextField:fi,PasswordField:Qa,Appearance:Ft};function du(n){return n.reduce(function(e,i,a){return e[i]=a,e},{})}(function(n){var e="addImage_";n.__addimage__={};var i="UNKNOWN",a={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]]},s=n.__addimage__.getImageFileTypeByImageData=function(x,F){var R,D,it,lt,dt,$=i;if((F=F||i)==="RGBA"||x.data!==void 0&&x.data instanceof Uint8ClampedArray&&"height"in x&&"width"in x)return"RGBA";if(xt(x))for(dt in a)for(it=a[dt],R=0;R<it.length;R+=1){for(lt=!0,D=0;D<it[R].length;D+=1)if(it[R][D]!==void 0&&it[R][D]!==x[D]){lt=!1;break}if(lt===!0){$=dt;break}}else for(dt in a)for(it=a[dt],R=0;R<it.length;R+=1){for(lt=!0,D=0;D<it[R].length;D+=1)if(it[R][D]!==void 0&&it[R][D]!==x.charCodeAt(D)){lt=!1;break}if(lt===!0){$=dt;break}}return $===i&&F!==i&&($=F),$},u=function x(F){for(var R=this.internal.write,D=this.internal.putStream,it=(0,this.internal.getFilters)();it.indexOf("FlateEncode")!==-1;)it.splice(it.indexOf("FlateEncode"),1);F.objectId=this.internal.newObject();var lt=[];if(lt.push({key:"Type",value:"/XObject"}),lt.push({key:"Subtype",value:"/Image"}),lt.push({key:"Width",value:F.width}),lt.push({key:"Height",value:F.height}),F.colorSpace===I.INDEXED?lt.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(F.palette.length/3-1)+" "+("sMask"in F&&F.sMask!==void 0?F.objectId+2:F.objectId+1)+" 0 R]"}):(lt.push({key:"ColorSpace",value:"/"+F.colorSpace}),F.colorSpace===I.DEVICE_CMYK&&lt.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),lt.push({key:"BitsPerComponent",value:F.bitsPerComponent}),"decodeParameters"in F&&F.decodeParameters!==void 0&&lt.push({key:"DecodeParms",value:"<<"+F.decodeParameters+">>"}),"transparency"in F&&Array.isArray(F.transparency)&&F.transparency.length>0){for(var dt="",$=0,ht=F.transparency.length;$<ht;$++)dt+=F.transparency[$]+" "+F.transparency[$]+" ";lt.push({key:"Mask",value:"["+dt+"]"})}F.sMask!==void 0&&lt.push({key:"SMask",value:F.objectId+1+" 0 R"});var Nt=F.filter!==void 0?["/"+F.filter]:void 0;if(D({data:F.data,additionalKeyValues:lt,alreadyAppliedFilters:Nt,objectId:F.objectId}),R("endobj"),"sMask"in F&&F.sMask!==void 0){var bt,w=(bt=F.sMaskBitsPerComponent)!==null&&bt!==void 0?bt:F.bitsPerComponent,C={width:F.width,height:F.height,colorSpace:"DeviceGray",bitsPerComponent:w,data:F.sMask};"filter"in F&&(C.decodeParameters="/Predictor ".concat(F.predictor," /Colors 1 /BitsPerComponent ").concat(w," /Columns ").concat(F.width),C.filter=F.filter),x.call(this,C)}if(F.colorSpace===I.INDEXED){var B=this.internal.newObject();D({data:ut(new Uint8Array(F.palette)),objectId:B}),R("endobj")}},d=function(){var x=this.internal.collections[e+"images"];for(var F in x)u.call(this,x[F])},l=function(){var x,F=this.internal.collections[e+"images"],R=this.internal.write;for(var D in F)R("/I"+(x=F[D]).index,x.objectId,"0","R")},h=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",d),this.internal.events.subscribe("putXobjectDict",l))},v=function(){var x=this.internal.collections[e+"images"];return h.call(this),x},N=function(){return Object.keys(this.internal.collections[e+"images"]).length},P=function(x){return typeof n["process"+x.toUpperCase()]=="function"},M=function(x){return _e(x)==="object"&&x.nodeType===1},p=function(x,F){if(x.nodeName==="IMG"&&x.hasAttribute("src")){var R=""+x.getAttribute("src");if(R.indexOf("data:image/")===0)return Xa(unescape(R).split("base64,").pop());var D=n.loadFile(R,!0);if(D!==void 0)return D}if(x.nodeName==="CANVAS"){if(x.width===0||x.height===0)throw new Error("Given canvas must have data. Canvas width: "+x.width+", height: "+x.height);var it;switch(F){case"PNG":it="image/png";break;case"WEBP":it="image/webp";break;default:it="image/jpeg"}return Xa(x.toDataURL(it,1).split("base64,").pop())}},z=function(x){var F=this.internal.collections[e+"images"];if(F){for(var R in F)if(x===F[R].alias)return F[R]}},O=function(x,F,R){return x||F||(x=-96,F=-96),x<0&&(x=-1*R.width*72/x/this.internal.scaleFactor),F<0&&(F=-1*R.height*72/F/this.internal.scaleFactor),x===0&&(x=F*R.width/R.height),F===0&&(F=x*R.height/R.width),[x,F]},T=function(x,F,R,D,it,lt){var dt=O.call(this,R,D,it),$=this.internal.getCoordinateString,ht=this.internal.getVerticalCoordinateString,Nt=v.call(this);if(R=dt[0],D=dt[1],Nt[it.index]=it,lt){lt*=Math.PI/180;var bt=Math.cos(lt),w=Math.sin(lt),C=function(H){return H.toFixed(4)},B=[C(bt),C(w),C(-1*w),C(bt),0,0,"cm"]}this.internal.write("q"),lt?(this.internal.write([1,"0","0",1,$(x),ht(F+D),"cm"].join(" ")),this.internal.write(B.join(" ")),this.internal.write([$(R),"0","0",$(D),"0","0","cm"].join(" "))):this.internal.write([$(R),"0","0",$(D),$(x),ht(F+D),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+it.index+" Do"),this.internal.write("Q")},I=n.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"};n.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 Z=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Q=n.__addimage__.sHashCode=function(x){var F,R,D=0;if(typeof x=="string")for(R=x.length,F=0;F<R;F++)D=(D<<5)-D+x.charCodeAt(F),D|=0;else if(xt(x))for(R=x.byteLength/2,F=0;F<R;F++)D=(D<<5)-D+x[F],D|=0;return D},rt=n.__addimage__.validateStringAsBase64=function(x){(x=x||"").toString().trim();var F=!0;return x.length===0&&(F=!1),x.length%4!=0&&(F=!1),/^[A-Za-z0-9+/]+$/.test(x.substr(0,x.length-2))===!1&&(F=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(x.substr(-2))===!1&&(F=!1),F},Lt=n.__addimage__.extractImageFromDataUrl=function(x){if(x==null||!(x=x.trim()).startsWith("data:"))return null;var F=x.indexOf(",");return F<0?null:x.substring(0,F).trim().endsWith("base64")?x.substring(F+1):null};n.__addimage__.isArrayBuffer=function(x){return x instanceof ArrayBuffer};var xt=n.__addimage__.isArrayBufferView=function(x){return x instanceof Int8Array||x instanceof Uint8Array||x instanceof Uint8ClampedArray||x instanceof Int16Array||x instanceof Uint16Array||x instanceof Int32Array||x instanceof Uint32Array||x instanceof Float32Array||x instanceof Float64Array},Ut=n.__addimage__.binaryStringToUint8Array=function(x){for(var F=x.length,R=new Uint8Array(F),D=0;D<F;D++)R[D]=x.charCodeAt(D);return R},ut=n.__addimage__.arrayBufferToBinaryString=function(x){for(var F="",R=xt(x)?x:new Uint8Array(x),D=0;D<R.length;D+=8192)F+=String.fromCharCode.apply(null,R.subarray(D,D+8192));return F};n.addImage=function(){var x,F,R,D,it,lt,dt,$,ht;if(typeof arguments[1]=="number"?(F=i,R=arguments[1],D=arguments[2],it=arguments[3],lt=arguments[4],dt=arguments[5],$=arguments[6],ht=arguments[7]):(F=arguments[1],R=arguments[2],D=arguments[3],it=arguments[4],lt=arguments[5],dt=arguments[6],$=arguments[7],ht=arguments[8]),_e(x=arguments[0])==="object"&&!M(x)&&"imageData"in x){var Nt=x;x=Nt.imageData,F=Nt.format||F||i,R=Nt.x||R||0,D=Nt.y||D||0,it=Nt.w||Nt.width||it,lt=Nt.h||Nt.height||lt,dt=Nt.alias||dt,$=Nt.compression||$,ht=Nt.rotation||Nt.angle||ht}var bt=this.internal.getFilters();if($===void 0&&bt.indexOf("FlateEncode")!==-1&&($="SLOW"),isNaN(R)||isNaN(D))throw new Error("Invalid coordinates passed to jsPDF.addImage");h.call(this);var w=J.call(this,x,F,dt,$);return T.call(this,R,D,it,lt,w,ht),this};var J=function(x,F,R,D){var it,lt,dt;if(typeof x=="string"&&s(x)===i){x=unescape(x);var $=mt(x,!1);($!==""||($=n.loadFile(x,!0))!==void 0)&&(x=$)}if(M(x)&&(x=p(x,F)),F=s(x,F),!P(F))throw new Error("addImage does not support files of type '"+F+"', please ensure that a plugin for '"+F+"' support is added.");if(((dt=R)==null||dt.length===0)&&(R=function(ht){return typeof ht=="string"||xt(ht)?Q(ht):xt(ht.data)?Q(ht.data):null}(x)),(it=z.call(this,R))||(x instanceof Uint8Array||F==="RGBA"||(lt=x,x=Ut(x)),it=this["process"+F.toUpperCase()](x,N.call(this),R,function(ht){return ht&&typeof ht=="string"&&(ht=ht.toUpperCase()),ht in n.image_compression?ht:Z.NONE}(D),lt)),!it)throw new Error("An unknown error occurred whilst processing the image.");return it},mt=n.__addimage__.convertBase64ToBinaryString=function(x,F){F=typeof F!="boolean"||F;var R,D="";if(typeof x=="string"){var it;R=(it=Lt(x))!==null&&it!==void 0?it:x;try{D=Xa(R)}catch(lt){if(F)throw rt(R)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+lt.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return D};n.getImageProperties=function(x){var F,R,D="";if(M(x)&&(x=p(x)),typeof x=="string"&&s(x)===i&&((D=mt(x,!1))===""&&(D=n.loadFile(x)||""),x=D),R=s(x),!P(R))throw new Error("addImage does not support files of type '"+R+"', please ensure that a plugin for '"+R+"' support is added.");if(x instanceof Uint8Array||(x=Ut(x)),!(F=this["process"+R.toUpperCase()](x)))throw new Error("An unknown error occurred whilst processing the image");return F.fileType=R,F}})(qt.API),function(n){var e=function(i){if(i!==void 0&&i!="")return!0};qt.API.events.push(["addPage",function(i){this.internal.getPageInfo(i.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(i){for(var a,s,u,d=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,h=this.internal.getPageInfoByObjId(i.objId),v=i.pageContext.annotations,N=!1,P=0;P<v.length&&!N;P++)switch((a=v[P]).type){case"link":(e(a.options.url)||e(a.options.pageNumber))&&(N=!0);break;case"reference":case"text":case"freetext":N=!0}if(N!=0){this.internal.write("/Annots [");for(var M=0;M<v.length;M++){a=v[M];var p=this.internal.pdfEscape,z=this.internal.getEncryptor(i.objId);switch(a.type){case"reference":this.internal.write(" "+a.object.objId+" 0 R ");break;case"text":var O=this.internal.newAdditionalObject(),T=this.internal.newAdditionalObject(),I=this.internal.getEncryptor(O.objId),Z=a.title||"Note";u="<</Type /Annot /Subtype /Text "+(s="/Rect ["+d(a.bounds.x)+" "+l(a.bounds.y+a.bounds.h)+" "+d(a.bounds.x+a.bounds.w)+" "+l(a.bounds.y)+"] ")+"/Contents ("+p(I(a.contents))+")",u+=" /Popup "+T.objId+" 0 R",u+=" /P "+h.objId+" 0 R",u+=" /T ("+p(I(Z))+") >>",O.content=u;var Q=O.objId+" 0 R";u="<</Type /Annot /Subtype /Popup "+(s="/Rect ["+d(a.bounds.x+30)+" "+l(a.bounds.y+a.bounds.h)+" "+d(a.bounds.x+a.bounds.w+30)+" "+l(a.bounds.y)+"] ")+" /Parent "+Q,a.open&&(u+=" /Open true"),u+=" >>",T.content=u,this.internal.write(O.objId,"0 R",T.objId,"0 R");break;case"freetext":s="/Rect ["+d(a.bounds.x)+" "+l(a.bounds.y)+" "+d(a.bounds.x+a.bounds.w)+" "+l(a.bounds.y+a.bounds.h)+"] ";var rt=a.color||"#000000";u="<</Type /Annot /Subtype /FreeText "+s+"/Contents ("+p(z(a.contents))+")",u+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+rt+")",u+=" /Border [0 0 0]",u+=" >>",this.internal.write(u);break;case"link":if(a.options.name){var Lt=this.annotations._nameMap[a.options.name];a.options.pageNumber=Lt.page,a.options.top=Lt.y}else a.options.top||(a.options.top=0);if(s="/Rect ["+a.finalBounds.x+" "+a.finalBounds.y+" "+a.finalBounds.w+" "+a.finalBounds.h+"] ",u="",a.options.url)u="<</Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /A <</S /URI /URI ("+p(z(a.options.url))+") >>";else if(a.options.pageNumber)switch(u="<</Type /Annot /Subtype /Link "+s+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(a.options.pageNumber).objId+" 0 R",a.options.magFactor=a.options.magFactor||"XYZ",a.options.magFactor){case"Fit":u+=" /Fit]";break;case"FitH":u+=" /FitH "+a.options.top+"]";break;case"FitV":a.options.left=a.options.left||0,u+=" /FitV "+a.options.left+"]";break;default:var xt=l(a.options.top);a.options.left=a.options.left||0,a.options.zoom===void 0&&(a.options.zoom=0),u+=" /XYZ "+a.options.left+" "+xt+" "+a.options.zoom+"]"}u!=""&&(u+=" >>",this.internal.write(u))}}this.internal.write("]")}}]),n.createAnnotation=function(i){var a=this.internal.getCurrentPageInfo();switch(i.type){case"link":this.link(i.bounds.x,i.bounds.y,i.bounds.w,i.bounds.h,i);break;case"text":case"freetext":a.pageContext.annotations.push(i)}},n.link=function(i,a,s,u,d){var l=this.internal.getCurrentPageInfo(),h=this.internal.getCoordinateString,v=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:h(i),y:v(a),w:h(i+s),h:v(a+u)},options:d,type:"link"})},n.textWithLink=function(i,a,s,u){var d,l,h=this.getTextWidth(i),v=this.internal.getLineHeight()/this.internal.scaleFactor;if(u.maxWidth!==void 0){l=u.maxWidth;var N=this.splitTextToSize(i,l).length;d=Math.ceil(v*N)}else l=h,d=v;return this.text(i,a,s,u),s+=.2*v,u.align==="center"&&(a-=h/2),u.align==="right"&&(a-=h),this.link(a,s-v,l,d,u),h},n.getTextWidth=function(i){var a=this.internal.getFontSize();return this.getStringUnitWidth(i)*a/this.internal.scaleFactor}}(qt.API),function(n){var e={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]},i={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}},a={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},s=[1570,1571,1573,1575];n.__arabicParser__={};var u=n.__arabicParser__.isInArabicSubstitutionA=function(O){return e[O.charCodeAt(0)]!==void 0},d=n.__arabicParser__.isArabicLetter=function(O){return typeof O=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(O)},l=n.__arabicParser__.isArabicEndLetter=function(O){return d(O)&&u(O)&&e[O.charCodeAt(0)].length<=2},h=n.__arabicParser__.isArabicAlfLetter=function(O){return d(O)&&s.indexOf(O.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(O){return d(O)&&u(O)&&e[O.charCodeAt(0)].length>=1};var v=n.__arabicParser__.arabicLetterHasFinalForm=function(O){return d(O)&&u(O)&&e[O.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(O){return d(O)&&u(O)&&e[O.charCodeAt(0)].length>=3};var N=n.__arabicParser__.arabicLetterHasMedialForm=function(O){return d(O)&&u(O)&&e[O.charCodeAt(0)].length==4},P=n.__arabicParser__.resolveLigatures=function(O){var T=0,I=i,Z="",Q=0;for(T=0;T<O.length;T+=1)I[O.charCodeAt(T)]!==void 0?(Q++,typeof(I=I[O.charCodeAt(T)])=="number"&&(Z+=String.fromCharCode(I),I=i,Q=0),T===O.length-1&&(I=i,Z+=O.charAt(T-(Q-1)),T-=Q-1,Q=0)):(I=i,Z+=O.charAt(T-Q),T-=Q,Q=0);return Z};n.__arabicParser__.isArabicDiacritic=function(O){return O!==void 0&&a[O.charCodeAt(0)]!==void 0};var M=n.__arabicParser__.getCorrectForm=function(O,T,I){return d(O)?u(O)===!1?-1:!v(O)||!d(T)&&!d(I)||!d(I)&&l(T)||l(O)&&!d(T)||l(O)&&h(T)||l(O)&&l(T)?0:N(O)&&d(T)&&!l(T)&&d(I)&&v(I)?3:l(O)||!d(I)?1:2:-1},p=function(O){var T=0,I=0,Z=0,Q="",rt="",Lt="",xt=(O=O||"").split("\\s+"),Ut=[];for(T=0;T<xt.length;T+=1){for(Ut.push(""),I=0;I<xt[T].length;I+=1)Q=xt[T][I],rt=xt[T][I-1],Lt=xt[T][I+1],d(Q)?(Z=M(Q,rt,Lt),Ut[T]+=Z!==-1?String.fromCharCode(e[Q.charCodeAt(0)][Z]):Q):Ut[T]+=Q;Ut[T]=P(Ut[T])}return Ut.join(" ")},z=n.__arabicParser__.processArabic=n.processArabic=function(){var O,T=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,I=[];if(Array.isArray(T)){var Z=0;for(I=[],Z=0;Z<T.length;Z+=1)Array.isArray(T[Z])?I.push([p(T[Z][0]),T[Z][1],T[Z][2]]):I.push([p(T[Z])]);O=I}else O=p(T);return typeof arguments[0]=="string"?O:(arguments[0].text=O,arguments[0])};n.events.push(["preProcessText",z])}(qt.API),qt.API.autoPrint=function(n){var e;return(n=n||{}).variant=n.variant||"non-conform",n.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){e=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 "+e+" 0 R")})),this},function(n){var e=function(){var i=void 0;Object.defineProperty(this,"pdf",{get:function(){return i},set:function(l){i=l}});var a=150;Object.defineProperty(this,"width",{get:function(){return a},set:function(l){a=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=a+1)}});var s=300;Object.defineProperty(this,"height",{get:function(){return s},set:function(l){s=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=s+1)}});var u=[];Object.defineProperty(this,"childNodes",{get:function(){return u},set:function(l){u=l}});var d={};Object.defineProperty(this,"style",{get:function(){return d},set:function(l){d=l}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(i,a){var s;if((i=i||"2d")!=="2d")return null;for(s in a)this.pdf.context2d.hasOwnProperty(s)&&(this.pdf.context2d[s]=a[s]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(qt.API),function(n){var e={left:0,top:0,bottom:0,right:0},i=!1,a=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({},e),this.internal.__cell__.margins.width=this.getPageWidth(),s.call(this))},s=function(){this.internal.__cell__.lastCell=new u,this.internal.__cell__.pages=1},u=function(){var h=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return h},set:function(O){h=O}});var v=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return v},set:function(O){v=O}});var N=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return N},set:function(O){N=O}});var P=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return P},set:function(O){P=O}});var M=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return M},set:function(O){M=O}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(O){p=O}});var z=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return z},set:function(O){z=O}}),this};u.prototype.clone=function(){return new u(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},u.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(h){return a.call(this),this.internal.__cell__.headerFunction=typeof h=="function"?h:void 0,this},n.getTextDimensions=function(h,v){a.call(this);var N=(v=v||{}).fontSize||this.getFontSize(),P=v.font||this.getFont(),M=v.scaleFactor||this.internal.scaleFactor,p=0,z=0,O=0,T=this;if(!Array.isArray(h)&&typeof h!="string"){if(typeof h!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");h=String(h)}var I=v.maxWidth;I>0?typeof h=="string"?h=this.splitTextToSize(h,I):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(Q,rt){return Q.concat(T.splitTextToSize(rt,I))},[])):h=Array.isArray(h)?h:[h];for(var Z=0;Z<h.length;Z++)p<(O=this.getStringUnitWidth(h[Z],{font:P})*N)&&(p=O);return p!==0&&(z=h.length),{w:p/=M,h:Math.max((z*N*this.getLineHeightFactor()-N*(this.getLineHeightFactor()-1))/M,0)}},n.cellAddPage=function(){a.call(this),this.addPage();var h=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new u(h.left,h.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var d=n.cell=function(){var h;h=arguments[0]instanceof u?arguments[0]:new u(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),a.call(this);var v=this.internal.__cell__.lastCell,N=this.internal.__cell__.padding,P=this.internal.__cell__.margins||e,M=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return v.lineNumber!==void 0&&(v.lineNumber===h.lineNumber?(h.x=(v.x||0)+(v.width||0),h.y=v.y||0):v.y+v.height+h.height+P.bottom>this.getPageHeight()?(this.cellAddPage(),h.y=P.top,p&&M&&(this.printHeaderRow(h.lineNumber,!0),h.y+=M[0].height)):h.y=v.y+v.height||h.y),h.text[0]!==void 0&&(this.rect(h.x,h.y,h.width,h.height,i===!0?"FD":void 0),h.align==="right"?this.text(h.text,h.x+h.width-N,h.y+N,{align:"right",baseline:"top"}):h.align==="center"?this.text(h.text,h.x+h.width/2,h.y+N,{align:"center",baseline:"top",maxWidth:h.width-N-N}):this.text(h.text,h.x+N,h.y+N,{align:"left",baseline:"top",maxWidth:h.width-N-N})),this.internal.__cell__.lastCell=h,this};n.table=function(h,v,N,P,M){if(a.call(this),!N)throw new Error("No data for PDF table.");var p,z,O,T,I=[],Z=[],Q=[],rt={},Lt={},xt=[],Ut=[],ut=(M=M||{}).autoSize||!1,J=M.printHeaders!==!1,mt=M.css&&M.css["font-size"]!==void 0?16*M.css["font-size"]:M.fontSize||12,x=M.margins||Object.assign({width:this.getPageWidth()},e),F=typeof M.padding=="number"?M.padding:3,R=M.headerBackgroundColor||"#c8c8c8",D=M.headerTextColor||"#000";if(s.call(this),this.internal.__cell__.printHeaders=J,this.internal.__cell__.margins=x,this.internal.__cell__.table_font_size=mt,this.internal.__cell__.padding=F,this.internal.__cell__.headerBackgroundColor=R,this.internal.__cell__.headerTextColor=D,this.setFontSize(mt),P==null)Z=I=Object.keys(N[0]),Q=I.map(function(){return"left"});else if(Array.isArray(P)&&_e(P[0])==="object")for(I=P.map(function(Nt){return Nt.name}),Z=P.map(function(Nt){return Nt.prompt||Nt.name||""}),Q=P.map(function(Nt){return Nt.align||"left"}),p=0;p<P.length;p+=1)Lt[P[p].name]=.7499990551181103*P[p].width;else Array.isArray(P)&&typeof P[0]=="string"&&(Z=I=P,Q=I.map(function(){return"left"}));if(ut||Array.isArray(P)&&typeof P[0]=="string")for(p=0;p<I.length;p+=1){for(rt[T=I[p]]=N.map(function(Nt){return Nt[T]}),this.setFont(void 0,"bold"),xt.push(this.getTextDimensions(Z[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),z=rt[T],this.setFont(void 0,"normal"),O=0;O<z.length;O+=1)xt.push(this.getTextDimensions(z[O],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Lt[T]=Math.max.apply(null,xt)+F+F,xt=[]}if(J){var it={};for(p=0;p<I.length;p+=1)it[I[p]]={},it[I[p]].text=Z[p],it[I[p]].align=Q[p];var lt=l.call(this,it,Lt);Ut=I.map(function(Nt){return new u(h,v,Lt[Nt],lt,it[Nt].text,void 0,it[Nt].align)}),this.setTableHeaderRow(Ut),this.printHeaderRow(1,!1)}var dt=P.reduce(function(Nt,bt){return Nt[bt.name]=bt.align,Nt},{});for(p=0;p<N.length;p+=1){"rowStart"in M&&M.rowStart instanceof Function&&M.rowStart({row:p,data:N[p]},this);var $=l.call(this,N[p],Lt);for(O=0;O<I.length;O+=1){var ht=N[p][I[O]];"cellStart"in M&&M.cellStart instanceof Function&&M.cellStart({row:p,col:O,data:ht},this),d.call(this,new u(h,v,Lt[I[O]],$,ht,p+2,dt[I[O]]))}}return this.internal.__cell__.table_x=h,this.internal.__cell__.table_y=v,this};var l=function(h,v){var N=this.internal.__cell__.padding,P=this.internal.__cell__.table_font_size,M=this.internal.scaleFactor;return Object.keys(h).map(function(p){var z=h[p];return this.splitTextToSize(z.hasOwnProperty("text")?z.text:z,v[p]-N-N)},this).map(function(p){return this.getLineHeightFactor()*p.length*P/M+N+N},this).reduce(function(p,z){return Math.max(p,z)},0)};n.setTableHeaderRow=function(h){a.call(this),this.internal.__cell__.tableHeaderRow=h},n.printHeaderRow=function(h,v){if(a.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var N;if(i=!0,typeof this.internal.__cell__.headerFunction=="function"){var P=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new u(P[0],P[1],P[2],P[3],void 0,-1)}this.setFont(void 0,"bold");for(var M=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){N=this.internal.__cell__.tableHeaderRow[p].clone(),v&&(N.y=this.internal.__cell__.margins.top||0,M.push(N)),N.lineNumber=h;var z=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),d.call(this,N),this.setTextColor(z)}M.length>0&&this.setTableHeaderRow(M),this.setFont(void 0,"normal"),i=!1}}(qt.API);var pu={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},gu=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Xo=du(gu),mu=[100,200,300,400,500,600,700,800,900],yc=du(mu);function zo(n){var e=n.family.replace(/"|'/g,"").toLowerCase(),i=function(u){return pu[u=u||"normal"]?u:"normal"}(n.style),a=function(u){return u?typeof u=="number"?u>=100&&u<=900&&u%100==0?u:400:/^\d00$/.test(u)?parseInt(u):u==="bold"?700:400:400}(n.weight),s=function(u){return typeof Xo[u=u||"normal"]=="number"?u:"normal"}(n.stretch);return{family:e,style:i,weight:a,stretch:s,src:n.src||[],ref:n.ref||{name:e,style:[s,i,a].join(" ")}}}function Hs(n,e,i,a){var s;for(s=i;s>=0&&s<e.length;s+=a)if(n[e[s]])return n[e[s]];for(s=i;s>=0&&s<e.length;s-=a)if(n[e[s]])return n[e[s]]}var wc={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ws={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Vs(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function Gs(n){return n.trimLeft()}function Lc(n,e){for(var i=0;i<n.length;){if(n.charAt(i)===e)return[n.substring(0,i),n.substring(i+1)];i+=1}return null}function Nc(n){var e=n.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],n.substring(e[0].length)]}var Ja,Js,Ys,ki,Ya,Xs,Ks,Zs,Uo=["times"];function $s(n,e,i,a,s){var u=4,d=tu;switch(s){case qt.API.image_compression.FAST:u=1,d=Qs;break;case qt.API.image_compression.MEDIUM:u=6,d=eu;break;case qt.API.image_compression.SLOW:u=9,d=ru}n=function(h,v,N,P){for(var M,p=h.length/v,z=new Uint8Array(h.length+p),O=[Ac,Qs,tu,eu,ru],T=0;T<p;T+=1){var I=T*v,Z=h.subarray(I,I+v);if(P)z.set(P(Z,N,M),I+T);else{for(var Q=O.length,rt=[],Lt=0;Lt<Q;Lt+=1)rt[Lt]=O[Lt](Z,N,M);var xt=Sc(rt.concat());z.set(rt[xt],I+T)}M=Z}return z}(n,e,Math.ceil(i*a/8),d);var l=Vo(n,{level:u});return qt.API.__addimage__.arrayBufferToBinaryString(l)}function Ac(n){var e=Array.apply([],n);return e.unshift(0),e}function Qs(n,e){var i=n.length,a=[];a[0]=1;for(var s=0;s<i;s+=1){var u=n[s-e]||0;a[s+1]=n[s]-u+256&255}return a}function tu(n,e,i){var a=n.length,s=[];s[0]=2;for(var u=0;u<a;u+=1){var d=i&&i[u]||0;s[u+1]=n[u]-d+256&255}return s}function eu(n,e,i){var a=n.length,s=[];s[0]=3;for(var u=0;u<a;u+=1){var d=n[u-e]||0,l=i&&i[u]||0;s[u+1]=n[u]+256-(d+l>>>1)&255}return s}function ru(n,e,i){var a=n.length,s=[];s[0]=4;for(var u=0;u<a;u+=1){var d=xc(n[u-e]||0,i&&i[u]||0,i&&i[u-e]||0);s[u+1]=n[u]-d+256&255}return s}function xc(n,e,i){if(n===e&&e===i)return n;var a=Math.abs(e-i),s=Math.abs(n-i),u=Math.abs(n+e-i-i);return a<=s&&a<=u?n:s<=u?e:i}function Sc(n){var e=n.map(function(i){return i.reduce(function(a,s){return a+Math.abs(s)},0)});return e.indexOf(Math.min.apply(null,e))}function Ho(n,e,i){var a=e*i,s=Math.floor(a/8),u=16-(a-8*s+i),d=(1<<i)-1;return vu(n,s)>>u&d}function nu(n,e,i,a){var s=i*a,u=Math.floor(s/8),d=16-(s-8*u+a),l=(1<<a)-1,h=(e&l)<<d;(function(v,N,P){if(N+1<v.byteLength)v.setUint16(N,P,!1);else{var M=P>>8&255;v.setUint8(N,M)}})(n,u,vu(n,u)&~(l<<d)&65535|h)}function vu(n,e){return e+1<n.byteLength?n.getUint16(e,!1):n.getUint8(e)<<8}function _c(n){var e=0;if(n[e++]!==71||n[e++]!==73||n[e++]!==70||n[e++]!==56||(n[e++]+1&253)!=56||n[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var i=n[e++]|n[e++]<<8,a=n[e++]|n[e++]<<8,s=n[e++],u=s>>7,d=1<<1+(7&s);n[e++],n[e++];var l=null,h=null;u&&(l=e,h=d,e+=3*d);var v=!0,N=[],P=0,M=null,p=0,z=null;for(this.width=i,this.height=a;v&&e<n.length;)switch(n[e++]){case 33:switch(n[e++]){case 255:if(n[e]!==11||n[e+1]==78&&n[e+2]==69&&n[e+3]==84&&n[e+4]==83&&n[e+5]==67&&n[e+6]==65&&n[e+7]==80&&n[e+8]==69&&n[e+9]==50&&n[e+10]==46&&n[e+11]==48&&n[e+12]==3&&n[e+13]==1&&n[e+16]==0)e+=14,z=n[e++]|n[e++]<<8,e++;else for(e+=12;;){if(!((x=n[e++])>=0))throw Error("Invalid block size");if(x===0)break;e+=x}break;case 249:if(n[e++]!==4||n[e+4]!==0)throw new Error("Invalid graphics extension block.");var O=n[e++];P=n[e++]|n[e++]<<8,M=n[e++],1&O||(M=null),p=O>>2&7,e++;break;case 254:for(;;){if(!((x=n[e++])>=0))throw Error("Invalid block size");if(x===0)break;e+=x}break;default:throw new Error("Unknown graphic control label: 0x"+n[e-1].toString(16))}break;case 44:var T=n[e++]|n[e++]<<8,I=n[e++]|n[e++]<<8,Z=n[e++]|n[e++]<<8,Q=n[e++]|n[e++]<<8,rt=n[e++],Lt=rt>>6&1,xt=1<<1+(7&rt),Ut=l,ut=h,J=!1;rt>>7&&(J=!0,Ut=e,ut=xt,e+=3*xt);var mt=e;for(e++;;){var x;if(!((x=n[e++])>=0))throw Error("Invalid block size");if(x===0)break;e+=x}N.push({x:T,y:I,width:Z,height:Q,has_local_palette:J,palette_offset:Ut,palette_size:ut,data_offset:mt,data_length:e-mt,transparent_index:M,interlaced:!!Lt,delay:P,disposal:p});break;case 59:v=!1;break;default:throw new Error("Unknown gif block: 0x"+n[e-1].toString(16))}this.numFrames=function(){return N.length},this.loopCount=function(){return z},this.frameInfo=function(F){if(F<0||F>=N.length)throw new Error("Frame index out of range.");return N[F]},this.decodeAndBlitFrameBGRA=function(F,R){var D=this.frameInfo(F),it=D.width*D.height,lt=new Uint8Array(it);iu(n,D.data_offset,lt,it);var dt=D.palette_offset,$=D.transparent_index;$===null&&($=256);var ht=D.width,Nt=i-ht,bt=ht,w=4*(D.y*i+D.x),C=4*((D.y+D.height)*i+D.x),B=w,H=4*Nt;D.interlaced===!0&&(H+=4*i*7);for(var V=8,K=0,et=lt.length;K<et;++K){var tt=lt[K];if(bt===0&&(bt=ht,(B+=H)>=C&&(H=4*Nt+4*i*(V-1),B=w+(ht+Nt)*(V<<1),V>>=1)),tt===$)B+=4;else{var ft=n[dt+3*tt],wt=n[dt+3*tt+1],_t=n[dt+3*tt+2];R[B++]=_t,R[B++]=wt,R[B++]=ft,R[B++]=255}--bt}},this.decodeAndBlitFrameRGBA=function(F,R){var D=this.frameInfo(F),it=D.width*D.height,lt=new Uint8Array(it);iu(n,D.data_offset,lt,it);var dt=D.palette_offset,$=D.transparent_index;$===null&&($=256);var ht=D.width,Nt=i-ht,bt=ht,w=4*(D.y*i+D.x),C=4*((D.y+D.height)*i+D.x),B=w,H=4*Nt;D.interlaced===!0&&(H+=4*i*7);for(var V=8,K=0,et=lt.length;K<et;++K){var tt=lt[K];if(bt===0&&(bt=ht,(B+=H)>=C&&(H=4*Nt+4*i*(V-1),B=w+(ht+Nt)*(V<<1),V>>=1)),tt===$)B+=4;else{var ft=n[dt+3*tt],wt=n[dt+3*tt+1],_t=n[dt+3*tt+2];R[B++]=ft,R[B++]=wt,R[B++]=_t,R[B++]=255}--bt}}}function iu(n,e,i,a){for(var s=n[e++],u=1<<s,d=u+1,l=d+1,h=s+1,v=(1<<h)-1,N=0,P=0,M=0,p=n[e++],z=new Int32Array(4096),O=null;;){for(;N<16&&p!==0;)P|=n[e++]<<N,N+=8,p===1?p=n[e++]:--p;if(N<h)break;var T=P&v;if(P>>=h,N-=h,T!==u){if(T===d)break;for(var I=T<l?T:O,Z=0,Q=I;Q>u;)Q=z[Q]>>8,++Z;var rt=Q;if(M+Z+(I!==T?1:0)>a)return void Se.log("Warning, gif stream longer than expected.");i[M++]=rt;var Lt=M+=Z;for(I!==T&&(i[M++]=rt),Q=I;Z--;)Q=z[Q],i[--Lt]=255&Q,Q>>=8;O!==null&&l<4096&&(z[l++]=O<<8|rt,l>=v+1&&h<12&&(++h,v=v<<1|1)),O=T}else l=d+1,v=(1<<(h=s+1))-1,O=null}return M!==a&&Se.log("Warning, gif stream shorter than expected."),i}/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

  Redistribution and use in source and binary forms, with or without 
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
  
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the 
    documentation and/or other materials provided with the distribution.
  
  * Neither the name of Adobe Systems Incorporated nor the names of its 
    contributors may be used to endorse or promote products derived from 
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function Wo(n){var e,i,a,s,u,d=Math.floor,l=new Array(64),h=new Array(64),v=new Array(64),N=new Array(64),P=new Array(65535),M=new Array(65535),p=new Array(64),z=new Array(64),O=[],T=0,I=7,Z=new Array(64),Q=new Array(64),rt=new Array(64),Lt=new Array(256),xt=new Array(2048),Ut=[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],ut=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],J=[0,1,2,3,4,5,6,7,8,9,10,11],mt=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],x=[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],F=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],D=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],it=[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 lt(w,C){for(var B=0,H=0,V=new Array,K=1;K<=16;K++){for(var et=1;et<=w[K];et++)V[C[H]]=[],V[C[H]][0]=B,V[C[H]][1]=K,H++,B++;B*=2}return V}function dt(w){for(var C=w[0],B=w[1]-1;B>=0;)C&1<<B&&(T|=1<<I),B--,--I<0&&(T==255?($(255),$(0)):$(T),I=7,T=0)}function $(w){O.push(w)}function ht(w){$(w>>8&255),$(255&w)}function Nt(w,C,B,H,V){for(var K,et=V[0],tt=V[240],ft=function(yt,Et){var St,ie,Tt,de,$t,Qt,we,ae,Rt,Vt,Dt=0;for(Rt=0;Rt<8;++Rt){St=yt[Dt],ie=yt[Dt+1],Tt=yt[Dt+2],de=yt[Dt+3],$t=yt[Dt+4],Qt=yt[Dt+5],we=yt[Dt+6];var Pe=St+(ae=yt[Dt+7]),pe=St-ae,Bt=ie+we,te=ie-we,Le=Tt+Qt,Ht=Tt-Qt,ce=de+$t,ee=de-$t,qe=Pe+ce,Xe=Pe-ce,Ne=Bt+Le,Yt=Bt-Le;yt[Dt]=qe+Ne,yt[Dt+4]=qe-Ne;var me=.707106781*(Yt+Xe);yt[Dt+2]=Xe+me,yt[Dt+6]=Xe-me;var Tn=.382683433*((qe=ee+Ht)-(Yt=te+pe)),ur=.5411961*qe+Tn,on=1.306562965*Yt+Tn,Xr=.707106781*(Ne=Ht+te),Wt=pe+Xr,sn=pe-Xr;yt[Dt+5]=sn+ur,yt[Dt+3]=sn-ur,yt[Dt+1]=Wt+on,yt[Dt+7]=Wt-on,Dt+=8}for(Dt=0,Rt=0;Rt<8;++Rt){St=yt[Dt],ie=yt[Dt+8],Tt=yt[Dt+16],de=yt[Dt+24],$t=yt[Dt+32],Qt=yt[Dt+40],we=yt[Dt+48];var un=St+(ae=yt[Dt+56]),Ir=St-ae,Cr=ie+we,je=ie-we,er=Tt+Qt,nr=Tt-Qt,zn=de+$t,wn=de-$t,Dr=un+zn,Kr=un-zn,Tr=Cr+er,zr=Cr-er;yt[Dt]=Dr+Tr,yt[Dt+32]=Dr-Tr;var jr=.707106781*(zr+Kr);yt[Dt+16]=Kr+jr,yt[Dt+48]=Kr-jr;var Un=.382683433*((Dr=wn+nr)-(zr=je+Ir)),Zr=.5411961*Dr+Un,Hn=1.306562965*zr+Un,pi=.707106781*(Tr=nr+je),gi=Ir+pi,mi=Ir-pi;yt[Dt+40]=mi+Zr,yt[Dt+24]=mi-Zr,yt[Dt+8]=gi+Hn,yt[Dt+56]=gi-Hn,Dt++}for(Rt=0;Rt<64;++Rt)Vt=yt[Rt]*Et[Rt],p[Rt]=Vt>0?Vt+.5|0:Vt-.5|0;return p}(w,C),wt=0;wt<64;++wt)z[Ut[wt]]=ft[wt];var _t=z[0]-B;B=z[0],_t==0?dt(H[0]):(dt(H[M[K=32767+_t]]),dt(P[K]));for(var Pt=63;Pt>0&&z[Pt]==0;)Pt--;if(Pt==0)return dt(et),B;for(var at,j=1;j<=Pt;){for(var ue=j;z[j]==0&&j<=Pt;)++j;var ne=j-ue;if(ne>=16){at=ne>>4;for(var zt=1;zt<=at;++zt)dt(tt);ne&=15}K=32767+z[j],dt(V[(ne<<4)+M[K]]),dt(P[K]),j++}return Pt!=63&&dt(et),B}function bt(w){w=Math.min(Math.max(w,1),100),u!=w&&(function(C){for(var B=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],H=0;H<64;H++){var V=d((B[H]*C+50)/100);V=Math.min(Math.max(V,1),255),l[Ut[H]]=V}for(var K=[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],et=0;et<64;et++){var tt=d((K[et]*C+50)/100);tt=Math.min(Math.max(tt,1),255),h[Ut[et]]=tt}for(var ft=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],wt=0,_t=0;_t<8;_t++)for(var Pt=0;Pt<8;Pt++)v[wt]=1/(l[Ut[wt]]*ft[_t]*ft[Pt]*8),N[wt]=1/(h[Ut[wt]]*ft[_t]*ft[Pt]*8),wt++}(w<50?Math.floor(5e3/w):Math.floor(200-2*w)),u=w)}this.encode=function(w,C){C&&bt(C),O=new Array,T=0,I=7,ht(65496),ht(65504),ht(16),$(74),$(70),$(73),$(70),$(0),$(1),$(1),$(0),ht(1),ht(1),$(0),$(0),function(){ht(65499),ht(132),$(0);for(var ie=0;ie<64;ie++)$(l[ie]);$(1);for(var Tt=0;Tt<64;Tt++)$(h[Tt])}(),function(ie,Tt){ht(65472),ht(17),$(8),ht(Tt),ht(ie),$(3),$(1),$(17),$(0),$(2),$(17),$(1),$(3),$(17),$(1)}(w.width,w.height),function(){ht(65476),ht(418),$(0);for(var ie=0;ie<16;ie++)$(ut[ie+1]);for(var Tt=0;Tt<=11;Tt++)$(J[Tt]);$(16);for(var de=0;de<16;de++)$(mt[de+1]);for(var $t=0;$t<=161;$t++)$(x[$t]);$(1);for(var Qt=0;Qt<16;Qt++)$(F[Qt+1]);for(var we=0;we<=11;we++)$(R[we]);$(17);for(var ae=0;ae<16;ae++)$(D[ae+1]);for(var Rt=0;Rt<=161;Rt++)$(it[Rt])}(),ht(65498),ht(12),$(3),$(1),$(0),$(2),$(17),$(3),$(17),$(0),$(63),$(0);var B=0,H=0,V=0;T=0,I=7,this.encode.displayName="_encode_";for(var K,et,tt,ft,wt,_t,Pt,at,j,ue=w.data,ne=w.width,zt=w.height,yt=4*ne,Et=0;Et<zt;){for(K=0;K<yt;){for(wt=yt*Et+K,Pt=-1,at=0,j=0;j<64;j++)_t=wt+(at=j>>3)*yt+(Pt=4*(7&j)),Et+at>=zt&&(_t-=yt*(Et+1+at-zt)),K+Pt>=yt&&(_t-=K+Pt-yt+4),et=ue[_t++],tt=ue[_t++],ft=ue[_t++],Z[j]=(xt[et]+xt[tt+256|0]+xt[ft+512|0]>>16)-128,Q[j]=(xt[et+768|0]+xt[tt+1024|0]+xt[ft+1280|0]>>16)-128,rt[j]=(xt[et+1280|0]+xt[tt+1536|0]+xt[ft+1792|0]>>16)-128;B=Nt(Z,v,B,e,a),H=Nt(Q,N,H,i,s),V=Nt(rt,N,V,i,s),K+=32}Et+=8}if(I>=0){var St=[];St[1]=I+1,St[0]=(1<<I+1)-1,dt(St)}return ht(65497),new Uint8Array(O)},n=n||50,function(){for(var w=String.fromCharCode,C=0;C<256;C++)Lt[C]=w(C)}(),e=lt(ut,J),i=lt(F,R),a=lt(mt,x),s=lt(D,it),function(){for(var w=1,C=2,B=1;B<=15;B++){for(var H=w;H<C;H++)M[32767+H]=B,P[32767+H]=[],P[32767+H][1]=B,P[32767+H][0]=H;for(var V=-(C-1);V<=-w;V++)M[32767+V]=B,P[32767+V]=[],P[32767+V][1]=B,P[32767+V][0]=C-1+V;w<<=1,C<<=1}}(),function(){for(var w=0;w<256;w++)xt[w]=19595*w,xt[w+256|0]=38470*w,xt[w+512|0]=7471*w+32768,xt[w+768|0]=-11059*w,xt[w+1024|0]=-21709*w,xt[w+1280|0]=32768*w+8421375,xt[w+1536|0]=-27439*w,xt[w+1792|0]=-5329*w}(),bt(n)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function Gr(n,e){if(this.pos=0,this.buffer=n,this.datav=new DataView(n.buffer),this.is_with_alpha=!!e,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 au(n){function e(J){if(!J)throw Error("assert :P")}function i(J,mt,x){for(var F=0;4>F;F++)if(J[mt+F]!=x.charCodeAt(F))return!0;return!1}function a(J,mt,x,F,R){for(var D=0;D<R;D++)J[mt+D]=x[F+D]}function s(J,mt,x,F){for(var R=0;R<F;R++)J[mt+R]=x}function u(J){return new Int32Array(J)}function d(J,mt){for(var x=[],F=0;F<J;F++)x.push(new mt);return x}function l(J,mt){var x=[];return function F(R,D,it){for(var lt=it[D],dt=0;dt<lt&&(R.push(it.length>D+1?[]:new mt),!(it.length<D+1));dt++)F(R[dt],D+1,it)}(x,0,J),x}var h=function(){var J=this;function mt(t,r){for(var c=1<<r-1>>>0;t&c;)c>>>=1;return c?(t&c-1)+c:t}function x(t,r,c,f,m){e(!(f%c));do t[r+(f-=c)]=m;while(0<f)}function F(t,r,c,f,m){if(e(2328>=m),512>=m)var b=u(512);else if((b=u(m))==null)return 0;return function(y,L,A,S,q,X){var _,U,G=L,nt=1<<A,Y=u(16),ot=u(16);for(e(q!=0),e(S!=null),e(y!=null),e(0<A),U=0;U<q;++U){if(15<S[U])return 0;++Y[S[U]]}if(Y[0]==q)return 0;for(ot[1]=0,_=1;15>_;++_){if(Y[_]>1<<_)return 0;ot[_+1]=ot[_]+Y[_]}for(U=0;U<q;++U)_=S[U],0<S[U]&&(X[ot[_]++]=U);if(ot[15]==1)return(S=new R).g=0,S.value=X[0],x(y,G,1,nt,S),nt;var ct,vt=-1,pt=nt-1,Mt=0,kt=1,oe=1,Ct=1<<A;for(U=0,_=1,q=2;_<=A;++_,q<<=1){if(kt+=oe<<=1,0>(oe-=Y[_]))return 0;for(;0<Y[_];--Y[_])(S=new R).g=_,S.value=X[U++],x(y,G+Mt,q,Ct,S),Mt=mt(Mt,_)}for(_=A+1,q=2;15>=_;++_,q<<=1){if(kt+=oe<<=1,0>(oe-=Y[_]))return 0;for(;0<Y[_];--Y[_]){if(S=new R,(Mt&pt)!=vt){for(G+=Ct,ct=1<<(vt=_)-A;15>vt&&!(0>=(ct-=Y[vt]));)++vt,ct<<=1;nt+=Ct=1<<(ct=vt-A),y[L+(vt=Mt&pt)].g=ct+A,y[L+vt].value=G-L-vt}S.g=_-A,S.value=X[U++],x(y,G+(Mt>>A),q,Ct,S),Mt=mt(Mt,_)}}return kt!=2*ot[15]-1?0:nt}(t,r,c,f,m,b)}function R(){this.value=this.g=0}function D(){this.value=this.g=0}function it(){this.G=d(5,R),this.H=u(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=d(oi,D)}function lt(t,r,c,f){e(t!=null),e(r!=null),e(2147483648>f),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=r,t.pa=c,t.Jd=r,t.Yc=c+f,t.Zc=4<=f?c+f-4+1:c,et(t)}function dt(t,r){for(var c=0;0<r--;)c|=ft(t,128)<<r;return c}function $(t,r){var c=dt(t,r);return tt(t)?-c:c}function ht(t,r,c,f){var m,b=0;for(e(t!=null),e(r!=null),e(4294967288>f),t.Sb=f,t.Ra=0,t.u=0,t.h=0,4<f&&(f=4),m=0;m<f;++m)b+=r[c+m]<<8*m;t.Ra=b,t.bb=f,t.oa=r,t.pa=c}function Nt(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<Sn-8>>>0,++t.bb,t.u-=8;H(t)&&(t.h=1,t.u=0)}function bt(t,r){if(e(0<=r),!t.h&&r<=Ar){var c=B(t)&Nr[r];return t.u+=r,Nt(t),c}return t.h=1,t.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function C(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function B(t){return t.Ra>>>(t.u&Sn-1)>>>0}function H(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>Sn}function V(t,r){t.u=r,t.h=H(t)}function K(t){t.u>=gn&&(e(t.u>=gn),Nt(t))}function et(t){e(t!=null&&t.oa!=null),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(t!=null&&t.oa!=null),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function tt(t){return dt(t,1)}function ft(t,r){var c=t.Ca;0>t.b&&et(t);var f=t.b,m=c*r>>>8,b=(t.I>>>f>m)+0;for(b?(c-=m,t.I-=m+1<<f>>>0):c=m+1,f=c,m=0;256<=f;)m+=8,f>>=8;return f=7^m+_n[f],t.b-=f,t.Ca=(c<<f)-1,b}function wt(t,r,c){t[r+0]=c>>24&255,t[r+1]=c>>16&255,t[r+2]=c>>8&255,t[r+3]=255&c}function _t(t,r){return t[r+0]|t[r+1]<<8}function Pt(t,r){return _t(t,r)|t[r+2]<<16}function at(t,r){return _t(t,r)|_t(t,r+2)<<16}function j(t,r){var c=1<<r;return e(t!=null),e(0<r),t.X=u(c),t.X==null?0:(t.Mb=32-r,t.Xa=r,1)}function ue(t,r){e(t!=null),e(r!=null),e(t.Xa==r.Xa),a(r.X,0,t.X,0,1<<r.Xa)}function ne(){this.X=[],this.Xa=this.Mb=0}function zt(t,r,c,f){e(c!=null),e(f!=null);var m=c[0],b=f[0];return m==0&&(m=(t*b+r/2)/r),b==0&&(b=(r*m+t/2)/t),0>=m||0>=b?0:(c[0]=m,f[0]=b,1)}function yt(t,r){return t+(1<<r)-1>>>r}function Et(t,r){return((4278255360&t)+(4278255360&r)>>>0&4278255360)+((16711935&t)+(16711935&r)>>>0&16711935)>>>0}function St(t,r){J[r]=function(c,f,m,b,y,L,A){var S;for(S=0;S<y;++S){var q=J[t](L[A+S-1],m,b+S);L[A+S]=Et(c[f+S],q)}}}function ie(){this.ud=this.hd=this.jd=0}function Tt(t,r){return((4278124286&(t^r))>>>1)+(t&r)>>>0}function de(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function $t(t,r){return de(t+(t-r+.5>>1))}function Qt(t,r,c){return Math.abs(r-c)-Math.abs(t-c)}function we(t,r,c,f,m,b,y){for(f=b[y-1],c=0;c<m;++c)b[y+c]=f=Et(t[r+c],f)}function ae(t,r,c,f,m){var b;for(b=0;b<c;++b){var y=t[r+b],L=y>>8&255,A=16711935&(A=(A=16711935&y)+((L<<16)+L));f[m+b]=(4278255360&y)+A>>>0}}function Rt(t,r){r.jd=255&t,r.hd=t>>8&255,r.ud=t>>16&255}function Vt(t,r,c,f,m,b){var y;for(y=0;y<f;++y){var L=r[c+y],A=L>>>8,S=L,q=255&(q=(q=L>>>16)+((t.jd<<24>>24)*(A<<24>>24)>>>5));S=255&(S=(S+=(t.hd<<24>>24)*(A<<24>>24)>>>5)+((t.ud<<24>>24)*(q<<24>>24)>>>5)),m[b+y]=(4278255360&L)+(q<<16)+S}}function Dt(t,r,c,f,m){J[r]=function(b,y,L,A,S,q,X,_,U){for(A=X;A<_;++A)for(X=0;X<U;++X)S[q++]=m(L[f(b[y++])])},J[t]=function(b,y,L,A,S,q,X){var _=8>>b.b,U=b.Ea,G=b.K[0],nt=b.w;if(8>_)for(b=(1<<b.b)-1,nt=(1<<_)-1;y<L;++y){var Y,ot=0;for(Y=0;Y<U;++Y)Y&b||(ot=f(A[S++])),q[X++]=m(G[ot&nt]),ot>>=_}else J["VP8LMapColor"+c](A,S,G,nt,q,X,y,L,U)}}function Pe(t,r,c,f,m){for(c=r+c;r<c;){var b=t[r++];f[m++]=b>>16&255,f[m++]=b>>8&255,f[m++]=255&b}}function pe(t,r,c,f,m){for(c=r+c;r<c;){var b=t[r++];f[m++]=b>>16&255,f[m++]=b>>8&255,f[m++]=255&b,f[m++]=b>>24&255}}function Bt(t,r,c,f,m){for(c=r+c;r<c;){var b=(y=t[r++])>>16&240|y>>12&15,y=240&y|y>>28&15;f[m++]=b,f[m++]=y}}function te(t,r,c,f,m){for(c=r+c;r<c;){var b=(y=t[r++])>>16&248|y>>13&7,y=y>>5&224|y>>3&31;f[m++]=b,f[m++]=y}}function Le(t,r,c,f,m){for(c=r+c;r<c;){var b=t[r++];f[m++]=255&b,f[m++]=b>>8&255,f[m++]=b>>16&255}}function Ht(t,r,c,f,m,b){if(b==0)for(c=r+c;r<c;)wt(f,((b=t[r++])[0]>>24|b[1]>>8&65280|b[2]<<8&16711680|b[3]<<24)>>>0),m+=32;else a(f,m,t,r,c)}function ce(t,r){J[r][0]=J[t+"0"],J[r][1]=J[t+"1"],J[r][2]=J[t+"2"],J[r][3]=J[t+"3"],J[r][4]=J[t+"4"],J[r][5]=J[t+"5"],J[r][6]=J[t+"6"],J[r][7]=J[t+"7"],J[r][8]=J[t+"8"],J[r][9]=J[t+"9"],J[r][10]=J[t+"10"],J[r][11]=J[t+"11"],J[r][12]=J[t+"12"],J[r][13]=J[t+"13"],J[r][14]=J[t+"0"],J[r][15]=J[t+"0"]}function ee(t){return t==No||t==Ao||t==Ba||t==xo}function qe(){this.eb=[],this.size=this.A=this.fb=0}function Xe(){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 Ne(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new qe,this.f.kb=new Xe,this.sd=null}function Yt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function me(){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 Tn(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ur(t,r){var c=t.T,f=r.ba.f.RGBA,m=f.eb,b=f.fb+t.ka*f.A,y=Rr[r.ba.S],L=t.y,A=t.O,S=t.f,q=t.N,X=t.ea,_=t.W,U=r.cc,G=r.dc,nt=r.Mc,Y=r.Nc,ot=t.ka,ct=t.ka+t.T,vt=t.U,pt=vt+1>>1;for(ot==0?y(L,A,null,null,S,q,X,_,S,q,X,_,m,b,null,null,vt):(y(r.ec,r.fc,L,A,U,G,nt,Y,S,q,X,_,m,b-f.A,m,b,vt),++c);ot+2<ct;ot+=2)U=S,G=q,nt=X,Y=_,q+=t.Rc,_+=t.Rc,b+=2*f.A,y(L,(A+=2*t.fa)-t.fa,L,A,U,G,nt,Y,S,q,X,_,m,b-f.A,m,b,vt);return A+=t.fa,t.j+ct<t.o?(a(r.ec,r.fc,L,A,vt),a(r.cc,r.dc,S,q,pt),a(r.Mc,r.Nc,X,_,pt),c--):1&ct||y(L,A,null,null,S,q,X,_,S,q,X,_,m,b+f.A,null,null,vt),c}function on(t,r,c){var f=t.F,m=[t.J];if(f!=null){var b=t.U,y=r.ba.S,L=y==Oa||y==Ba;r=r.ba.f.RGBA;var A=[0],S=t.ka;A[0]=t.T,t.Kb&&(S==0?--A[0]:(--S,m[0]-=t.width),t.j+t.ka+t.T==t.o&&(A[0]=t.o-t.j-S));var q=r.eb;S=r.fb+S*r.A,t=is(f,m[0],t.width,b,A,q,S+(L?0:3),r.A),e(c==A),t&&ee(y)&&ia(q,S,L,b,A,r.A)}return 0}function Xr(t){var r=t.ma,c=r.ba.S,f=11>c,m=c==Ca||c==ja||c==Oa||c==Lo||c==12||ee(c);if(r.memory=null,r.Ib=null,r.Jb=null,r.Nd=null,!Ki(r.Oa,t,m?11:12))return 0;if(m&&ee(c)&&Sa(),t.da)alert("todo:use_scaling");else{if(f){if(r.Ib=Tn,t.Kb){if(c=t.U+1>>1,r.memory=u(t.U+2*c),r.memory==null)return 0;r.ec=r.memory,r.fc=0,r.cc=r.ec,r.dc=r.fc+t.U,r.Mc=r.cc,r.Nc=r.dc+c,r.Ib=ur,Sa()}}else alert("todo:EmitYUV");m&&(r.Jb=on,f&&Br())}if(f&&!Ls){for(t=0;256>t;++t)Ru[t]=89858*(t-128)+Ea>>Ma,zu[t]=-22014*(t-128)+Ea,Tu[t]=-45773*(t-128),Du[t]=113618*(t-128)+Ea>>Ma;for(t=oa;t<Po;++t)r=76283*(t-16)+Ea>>Ma,Uu[t-oa]=Oe(r,255),Hu[t-oa]=Oe(r+8>>4,15);Ls=1}return 1}function Wt(t){var r=t.ma,c=t.U,f=t.T;return e(!(1&t.ka)),0>=c||0>=f?0:(c=r.Ib(t,r),r.Jb!=null&&r.Jb(t,r,c),r.Dc+=c,1)}function sn(t){t.ma.memory=null}function un(t,r,c,f){return bt(t,8)!=47?0:(r[0]=bt(t,14)+1,c[0]=bt(t,14)+1,f[0]=bt(t,1),bt(t,3)!=0?0:!t.h)}function Ir(t,r){if(4>t)return t+1;var c=t-2>>1;return(2+(1&t)<<c)+bt(r,c)+1}function Cr(t,r){return 120<r?r-120:1<=(c=((c=xu[r-1])>>4)*t+(8-(15&c)))?c:1;var c}function je(t,r,c){var f=B(c),m=t[r+=255&f].g-8;return 0<m&&(V(c,c.u+8),f=B(c),r+=t[r].value,r+=f&(1<<m)-1),V(c,c.u+t[r].g),t[r].value}function er(t,r,c){return c.g+=t.g,c.value+=t.value<<r>>>0,e(8>=c.g),t.g}function nr(t,r,c){var f=t.xc;return e((r=f==0?0:t.vc[t.md*(c>>f)+(r>>f)])<t.Wb),t.Ya[r]}function zn(t,r,c,f){var m=t.ab,b=t.c*r,y=t.C;r=y+r;var L=c,A=f;for(f=t.Ta,c=t.Ua;0<m--;){var S=t.gc[m],q=y,X=r,_=L,U=A,G=(A=f,L=c,S.Ea);switch(e(q<X),e(X<=S.nc),S.hc){case 2:De(_,U,(X-q)*G,A,L);break;case 0:var nt=q,Y=X,ot=A,ct=L,vt=(Ct=S).Ea;nt==0&&($i(_,U,null,null,1,ot,ct),we(_,U+1,0,0,vt-1,ot,ct+1),U+=vt,ct+=vt,++nt);for(var pt=1<<Ct.b,Mt=pt-1,kt=yt(vt,Ct.b),oe=Ct.K,Ct=Ct.w+(nt>>Ct.b)*kt;nt<Y;){var le=oe,$e=Ct,se=1;for(xi(_,U,ot,ct-vt,1,ot,ct);se<vt;){var jt=(se&~Mt)+pt;jt>vt&&(jt=vt),(0,ta[le[$e++]>>8&15])(_,U+ +se,ot,ct+se-vt,jt-se,ot,ct+se),se=jt}U+=vt,ct+=vt,++nt&Mt||(Ct+=kt)}X!=S.nc&&a(A,L-G,A,L+(X-q-1)*G,G);break;case 1:for(G=_,Y=U,vt=(_=S.Ea)-(ct=_&~(ot=(U=1<<S.b)-1)),nt=yt(_,S.b),pt=S.K,S=S.w+(q>>S.b)*nt;q<X;){for(Mt=pt,kt=S,oe=new ie,Ct=Y+ct,le=Y+_;Y<Ct;)Rt(Mt[kt++],oe),ea(oe,G,Y,U,A,L),Y+=U,L+=U;Y<le&&(Rt(Mt[kt++],oe),ea(oe,G,Y,vt,A,L),Y+=vt,L+=vt),++q&ot||(S+=nt)}break;case 3:if(_==A&&U==L&&0<S.b){for(Y=A,_=G=L+(X-q)*G-(ct=(X-q)*yt(S.Ea,S.b)),U=A,ot=L,nt=[],ct=(vt=ct)-1;0<=ct;--ct)nt[ct]=U[ot+ct];for(ct=vt-1;0<=ct;--ct)Y[_+ct]=nt[ct];Pa(S,q,X,A,G,A,L)}else Pa(S,q,X,_,U,A,L)}L=f,A=c}A!=c&&a(f,c,L,A,b)}function wn(t,r){var c=t.V,f=t.Ba+t.c*t.C,m=r-t.C;if(e(r<=t.l.o),e(16>=m),0<m){var b=t.l,y=t.Ta,L=t.Ua,A=b.width;if(zn(t,m,c,f),m=L=[L],e((c=t.C)<(f=r)),e(b.v<b.va),f>b.o&&(f=b.o),c<b.j){var S=b.j-c;c=b.j,m[0]+=S*A}if(c>=f?c=0:(m[0]+=4*b.v,b.ka=c-b.j,b.U=b.va-b.v,b.T=f-c,c=1),c){if(L=L[0],11>(c=t.ca).S){var q=c.f.RGBA,X=(f=c.S,m=b.U,b=b.T,S=q.eb,q.A),_=b;for(q=q.fb+t.Ma*q.A;0<_--;){var U=y,G=L,nt=m,Y=S,ot=q;switch(f){case Ia:ra(U,G,nt,Y,ot);break;case Ca:Pn(U,G,nt,Y,ot);break;case No:Pn(U,G,nt,Y,ot),ia(Y,ot,0,nt,1,0);break;case hs:si(U,G,nt,Y,ot);break;case ja:Ht(U,G,nt,Y,ot,1);break;case Ao:Ht(U,G,nt,Y,ot,1),ia(Y,ot,0,nt,1,0);break;case Oa:Ht(U,G,nt,Y,ot,0);break;case Ba:Ht(U,G,nt,Y,ot,0),ia(Y,ot,1,nt,1,0);break;case Lo:kn(U,G,nt,Y,ot);break;case xo:kn(U,G,nt,Y,ot),ns(Y,ot,nt,1,0);break;case fs:Fn(U,G,nt,Y,ot);break;default:e(0)}L+=A,q+=X}t.Ma+=b}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=c.height)}}t.C=r,e(t.C<=t.i)}function Dr(t){var r;if(0<t.ua)return 0;for(r=0;r<t.Wb;++r){var c=t.Ya[r].G,f=t.Ya[r].H;if(0<c[1][f[1]+0].g||0<c[2][f[2]+0].g||0<c[3][f[3]+0].g)return 0}return 1}function Kr(t,r,c,f,m,b){if(t.Z!=0){var y=t.qd,L=t.rd;for(e(jn[t.Z]!=null);r<c;++r)jn[t.Z](y,L,f,m,f,m,b),y=f,L=m,m+=b;t.qd=y,t.rd=L}}function Tr(t,r){var c=t.l.ma,f=c.Z==0||c.Z==1?t.l.j:t.C;if(f=t.C<f?f:t.C,e(r<=t.l.o),r>f){var m=t.l.width,b=c.ca,y=c.tb+m*f,L=t.V,A=t.Ba+t.c*f,S=t.gc;e(t.ab==1),e(S[0].hc==3),tn(S[0],f,r,L,A,b,y),Kr(c,f,r,b,y,m)}t.C=t.Ma=r}function zr(t,r,c,f,m,b,y){var L=t.$/f,A=t.$%f,S=t.m,q=t.s,X=c+t.$,_=X;m=c+f*m;var U=c+f*b,G=280+q.ua,nt=t.Pb?L:16777216,Y=0<q.ua?q.Wa:null,ot=q.wc,ct=X<U?nr(q,A,L):null;e(t.C<b),e(U<=m);var vt=!1;t:for(;;){for(;vt||X<U;){var pt=0;if(L>=nt){var Mt=X-c;e((nt=t).Pb),nt.wd=nt.m,nt.xd=Mt,0<nt.s.ua&&ue(nt.s.Wa,nt.s.vb),nt=L+_u}if(A&ot||(ct=nr(q,A,L)),e(ct!=null),ct.Qb&&(r[X]=ct.qb,vt=!0),!vt)if(K(S),ct.jc){pt=S,Mt=r;var kt=X,oe=ct.pd[B(pt)&oi-1];e(ct.jc),256>oe.g?(V(pt,pt.u+oe.g),Mt[kt]=oe.value,pt=0):(V(pt,pt.u+oe.g-256),e(256<=oe.value),pt=oe.value),pt==0&&(vt=!0)}else pt=je(ct.G[0],ct.H[0],S);if(S.h)break;if(vt||256>pt){if(!vt)if(ct.nd)r[X]=(ct.qb|pt<<8)>>>0;else{if(K(S),vt=je(ct.G[1],ct.H[1],S),K(S),Mt=je(ct.G[2],ct.H[2],S),kt=je(ct.G[3],ct.H[3],S),S.h)break;r[X]=(kt<<24|vt<<16|pt<<8|Mt)>>>0}if(vt=!1,++X,++A>=f&&(A=0,++L,y!=null&&L<=b&&!(L%16)&&y(t,L),Y!=null))for(;_<X;)pt=r[_++],Y.X[(506832829*pt&4294967295)>>>Y.Mb]=pt}else if(280>pt){if(pt=Ir(pt-256,S),Mt=je(ct.G[4],ct.H[4],S),K(S),Mt=Cr(f,Mt=Ir(Mt,S)),S.h)break;if(X-c<Mt||m-X<pt)break t;for(kt=0;kt<pt;++kt)r[X+kt]=r[X+kt-Mt];for(X+=pt,A+=pt;A>=f;)A-=f,++L,y!=null&&L<=b&&!(L%16)&&y(t,L);if(e(X<=m),A&ot&&(ct=nr(q,A,L)),Y!=null)for(;_<X;)pt=r[_++],Y.X[(506832829*pt&4294967295)>>>Y.Mb]=pt}else{if(!(pt<G))break t;for(vt=pt-280,e(Y!=null);_<X;)pt=r[_++],Y.X[(506832829*pt&4294967295)>>>Y.Mb]=pt;pt=X,e(!(vt>>>(Mt=Y).Xa)),r[pt]=Mt.X[vt],vt=!0}vt||e(S.h==H(S))}if(t.Pb&&S.h&&X<m)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&ue(t.s.vb,t.s.Wa);else{if(S.h)break t;y!=null&&y(t,L>b?b:L),t.a=0,t.$=X-c}return 1}return t.a=3,0}function jr(t){e(t!=null),t.vc=null,t.yc=null,t.Ya=null;var r=t.Wa;r!=null&&(r.X=null),t.vb=null,e(t!=null)}function Un(){var t=new Ot;return t==null?null:(t.a=0,t.xb=gs,ce("Predictor","VP8LPredictors"),ce("Predictor","VP8LPredictors_C"),ce("PredictorAdd","VP8LPredictorsAdd"),ce("PredictorAdd","VP8LPredictorsAdd_C"),De=ae,ea=Vt,ra=Pe,Pn=pe,kn=Bt,Fn=te,si=Le,J.VP8LMapColor32b=Qr,J.VP8LMapColor8b=Qi,t)}function Zr(t,r,c,f,m){var b=1,y=[t],L=[r],A=f.m,S=f.s,q=null,X=0;t:for(;;){if(c)for(;b&&bt(A,1);){var _=y,U=L,G=f,nt=1,Y=G.m,ot=G.gc[G.ab],ct=bt(Y,2);if(G.Oc&1<<ct)b=0;else{switch(G.Oc|=1<<ct,ot.hc=ct,ot.Ea=_[0],ot.nc=U[0],ot.K=[null],++G.ab,e(4>=G.ab),ct){case 0:case 1:ot.b=bt(Y,3)+2,nt=Zr(yt(ot.Ea,ot.b),yt(ot.nc,ot.b),0,G,ot.K),ot.K=ot.K[0];break;case 3:var vt,pt=bt(Y,8)+1,Mt=16<pt?0:4<pt?1:2<pt?2:3;if(_[0]=yt(ot.Ea,Mt),ot.b=Mt,vt=nt=Zr(pt,1,0,G,ot.K)){var kt,oe=pt,Ct=ot,le=1<<(8>>Ct.b),$e=u(le);if($e==null)vt=0;else{var se=Ct.K[0],jt=Ct.w;for($e[0]=Ct.K[0][0],kt=1;kt<1*oe;++kt)$e[kt]=Et(se[jt+kt],$e[kt-1]);for(;kt<4*le;++kt)$e[kt]=0;Ct.K[0]=null,Ct.K[0]=$e,vt=1}}nt=vt;break;case 2:break;default:e(0)}b=nt}}if(y=y[0],L=L[0],b&&bt(A,1)&&!(b=1<=(X=bt(A,4))&&11>=X)){f.a=3;break t}var At;if(At=b)e:{var ze,re,he,Ie=f,ar=y,gr=L,Be=X,lr=c,mr=Ie.m,Qe=Ie.s,fe=[null],be=1,Me=0,ye=Su[Be];r:for(;;){if(lr&&bt(mr,1)){var or=bt(mr,3)+2,Wr=yt(ar,or),Ue=yt(gr,or),yr=Wr*Ue;if(!Zr(Wr,Ue,0,Ie,fe))break r;for(fe=fe[0],Qe.xc=or,ze=0;ze<yr;++ze){var xe=fe[ze]>>8&65535;fe[ze]=xe,xe>=be&&(be=xe+1)}}if(mr.h)break r;for(re=0;5>re;++re){var tr=ds[re];!re&&0<Be&&(tr+=1<<Be),Me<tr&&(Me=tr)}var Sr=d(be*ye,R),vr=be,_r=d(vr,it);if(_r==null)var Pr=null;else e(65536>=vr),Pr=_r;var wr=u(Me);if(Pr==null||wr==null||Sr==null){Ie.a=1;break r}var kr=Sr;for(ze=he=0;ze<be;++ze){var Fe=Pr[ze],Fr=Fe.G,Vr=Fe.H,ci=0,bn=1,sr=0;for(re=0;5>re;++re){tr=ds[re],Fr[re]=kr,Vr[re]=he,!re&&0<Be&&(tr+=1<<Be);i:{var Ra,ko=tr,Da=Ie,sa=wr,Gu=kr,Ju=he,Fo=0,On=Da.m,Yu=bt(On,1);if(s(sa,0,0,ko),Yu){var Xu=bt(On,1)+1,Ku=bt(On,1),xs=bt(On,Ku==0?1:8);sa[xs]=1,Xu==2&&(sa[xs=bt(On,8)]=1);var Ta=1}else{var Ss=u(19),_s=bt(On,4)+4;if(19<_s){Da.a=3;var za=0;break i}for(Ra=0;Ra<_s;++Ra)Ss[Au[Ra]]=bt(On,3);var Io=void 0,ua=void 0,Ps=Da,Zu=Ss,Ua=ko,ks=sa,Co=0,Bn=Ps.m,Fs=8,Is=d(128,R);n:for(;F(Is,0,7,Zu,19);){if(bt(Bn,1)){var $u=2+2*bt(Bn,3);if((Io=2+bt(Bn,$u))>Ua)break n}else Io=Ua;for(ua=0;ua<Ua&&Io--;){K(Bn);var Cs=Is[0+(127&B(Bn))];V(Bn,Bn.u+Cs.g);var _i=Cs.value;if(16>_i)ks[ua++]=_i,_i!=0&&(Fs=_i);else{var Qu=_i==16,js=_i-16,tc=Lu[js],Os=bt(Bn,wu[js])+tc;if(ua+Os>Ua)break n;for(var ec=Qu?Fs:0;0<Os--;)ks[ua++]=ec}}Co=1;break n}Co||(Ps.a=3),Ta=Co}(Ta=Ta&&!On.h)&&(Fo=F(Gu,Ju,8,sa,ko)),Ta&&Fo!=0?za=Fo:(Da.a=3,za=0)}if(za==0)break r;if(bn&&Nu[re]==1&&(bn=kr[he].g==0),ci+=kr[he].g,he+=za,3>=re){var ca,jo=wr[0];for(ca=1;ca<tr;++ca)wr[ca]>jo&&(jo=wr[ca]);sr+=jo}}if(Fe.nd=bn,Fe.Qb=0,bn&&(Fe.qb=(Fr[3][Vr[3]+0].value<<24|Fr[1][Vr[1]+0].value<<16|Fr[2][Vr[2]+0].value)>>>0,ci==0&&256>Fr[0][Vr[0]+0].value&&(Fe.Qb=1,Fe.qb+=Fr[0][Vr[0]+0].value<<8)),Fe.jc=!Fe.Qb&&6>sr,Fe.jc){var Ha,yn=Fe;for(Ha=0;Ha<oi;++Ha){var Mn=Ha,En=yn.pd[Mn],Wa=yn.G[0][yn.H[0]+Mn];256<=Wa.value?(En.g=Wa.g+256,En.value=Wa.value):(En.g=0,En.value=0,Mn>>=er(Wa,8,En),Mn>>=er(yn.G[1][yn.H[1]+Mn],16,En),Mn>>=er(yn.G[2][yn.H[2]+Mn],0,En),er(yn.G[3][yn.H[3]+Mn],24,En))}}}Qe.vc=fe,Qe.Wb=be,Qe.Ya=Pr,Qe.yc=Sr,At=1;break e}At=0}if(!(b=At)){f.a=3;break t}if(0<X){if(S.ua=1<<X,!j(S.Wa,X)){f.a=1,b=0;break t}}else S.ua=0;var Oo=f,Bs=y,rc=L,Bo=Oo.s,Mo=Bo.xc;if(Oo.c=Bs,Oo.i=rc,Bo.md=yt(Bs,Mo),Bo.wc=Mo==0?-1:(1<<Mo)-1,c){f.xb=Ou;break t}if((q=u(y*L))==null){f.a=1,b=0;break t}b=(b=zr(f,q,0,y,L,L,null))&&!A.h;break t}return b?(m!=null?m[0]=q:(e(q==null),e(c)),f.$=0,c||jr(S)):jr(S),b}function Hn(t,r){var c=t.c*t.i,f=c+r+16*r;return e(t.c<=r),t.V=u(f),t.V==null?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+c+r,1)}function pi(t,r){var c=t.C,f=r-c,m=t.V,b=t.Ba+t.c*c;for(e(r<=t.l.o);0<f;){var y=16<f?16:f,L=t.l.ma,A=t.l.width,S=A*y,q=L.ca,X=L.tb+A*c,_=t.Ta,U=t.Ua;zn(t,y,m,b),as(_,U,q,X,S),Kr(L,c,c+y,q,X,A),f-=y,m+=y*t.c,c+=y}e(c==r),t.C=t.Ma=r}function gi(){this.ub=this.yd=this.td=this.Rb=0}function mi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function no(){this.Fb=this.Bb=this.Cb=0,this.Zb=u(4),this.Lb=u(4)}function Ei(){this.Yb=function(){var t=[];return function r(c,f,m){for(var b=m[f],y=0;y<b&&(c.push(m.length>f+1?[]:0),!(m.length<f+1));y++)r(c[y],f+1,m)}(t,0,[3,11]),t}()}function la(){this.jb=u(3),this.Wc=l([4,8],Ei),this.Xc=l([4,17],Ei)}function ha(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new u(4),this.od=new u(4)}function Or(){this.ld=this.La=this.dd=this.tc=0}function qi(){this.Na=this.la=0}function fa(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ri(){this.ad=u(384),this.Za=0,this.Ob=u(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function da(){this.uc=this.M=this.Nb=0,this.wa=Array(new Or),this.Y=0,this.ya=Array(new Ri),this.aa=0,this.l=new vi}function pa(){this.y=u(16),this.f=u(8),this.ea=u(8)}function ga(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new gi,this.Kc=new mi,this.ed=new ha,this.Qa=new no,this.Ic=this.$c=this.Aa=0,this.D=new da,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=d(8,w),this.ia=0,this.pb=d(4,fa),this.Pa=new la,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new pa),this.Hd=0,this.rb=Array(new qi),this.sb=0,this.wa=Array(new Or),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 Ri),this.L=this.aa=0,this.gd=l([4,2],Or),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 vi(){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 io(){var t=new ga;return t!=null&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,aa||(aa=cn)),t}function Ge(t,r,c){return t.a==0&&(t.a=r,t.sc=c,t.cb=0),0}function ma(t,r,c){return 3<=c&&t[r+0]==157&&t[r+1]==1&&t[r+2]==42}function va(t,r){if(t==null)return 0;if(t.a=0,t.sc="OK",r==null)return Ge(t,2,"null VP8Io passed to VP8GetHeaders()");var c=r.data,f=r.w,m=r.ha;if(4>m)return Ge(t,7,"Truncated header.");var b=c[f+0]|c[f+1]<<8|c[f+2]<<16,y=t.Od;if(y.Rb=!(1&b),y.td=b>>1&7,y.yd=b>>4&1,y.ub=b>>5,3<y.td)return Ge(t,3,"Incorrect keyframe parameters.");if(!y.yd)return Ge(t,4,"Frame not displayable.");f+=3,m-=3;var L=t.Kc;if(y.Rb){if(7>m)return Ge(t,7,"cannot parse picture header");if(!ma(c,f,m))return Ge(t,3,"Bad code word");L.c=16383&(c[f+4]<<8|c[f+3]),L.Td=c[f+4]>>6,L.i=16383&(c[f+6]<<8|c[f+5]),L.Ud=c[f+6]>>6,f+=7,m-=7,t.za=L.c+15>>4,t.Ub=L.i+15>>4,r.width=L.c,r.height=L.i,r.Da=0,r.j=0,r.v=0,r.va=r.width,r.o=r.height,r.da=0,r.ib=r.width,r.hb=r.height,r.U=r.width,r.T=r.height,s((b=t.Pa).jb,0,255,b.jb.length),e((b=t.Qa)!=null),b.Cb=0,b.Bb=0,b.Fb=1,s(b.Zb,0,0,b.Zb.length),s(b.Lb,0,0,b.Lb)}if(y.ub>m)return Ge(t,7,"bad partition length");lt(b=t.m,c,f,y.ub),f+=y.ub,m-=y.ub,y.Rb&&(L.Ld=tt(b),L.Kd=tt(b)),L=t.Qa;var A,S=t.Pa;if(e(b!=null),e(L!=null),L.Cb=tt(b),L.Cb){if(L.Bb=tt(b),tt(b)){for(L.Fb=tt(b),A=0;4>A;++A)L.Zb[A]=tt(b)?$(b,7):0;for(A=0;4>A;++A)L.Lb[A]=tt(b)?$(b,6):0}if(L.Bb)for(A=0;3>A;++A)S.jb[A]=tt(b)?dt(b,8):255}else L.Bb=0;if(b.Ka)return Ge(t,3,"cannot parse segment header");if((L=t.ed).zd=tt(b),L.Tb=dt(b,6),L.wb=dt(b,3),L.Pc=tt(b),L.Pc&&tt(b)){for(S=0;4>S;++S)tt(b)&&(L.vd[S]=$(b,6));for(S=0;4>S;++S)tt(b)&&(L.od[S]=$(b,6))}if(t.L=L.Tb==0?0:L.zd?1:2,b.Ka)return Ge(t,3,"cannot parse filter header");var q=m;if(m=A=f,f=A+q,L=q,t.Xb=(1<<dt(t.m,2))-1,q<3*(S=t.Xb))c=7;else{for(A+=3*S,L-=3*S,q=0;q<S;++q){var X=c[m+0]|c[m+1]<<8|c[m+2]<<16;X>L&&(X=L),lt(t.Jc[+q],c,A,X),A+=X,L-=X,m+=3}lt(t.Jc[+S],c,A,L),c=A<f?0:5}if(c!=0)return Ge(t,c,"cannot parse partitions");for(c=dt(A=t.m,7),m=tt(A)?$(A,4):0,f=tt(A)?$(A,4):0,L=tt(A)?$(A,4):0,S=tt(A)?$(A,4):0,A=tt(A)?$(A,4):0,q=t.Qa,X=0;4>X;++X){if(q.Cb){var _=q.Zb[X];q.Fb||(_+=c)}else{if(0<X){t.pb[X]=t.pb[0];continue}_=c}var U=t.pb[X];U.Sc[0]=So[Oe(_+m,127)],U.Sc[1]=_o[Oe(_+0,127)],U.Eb[0]=2*So[Oe(_+f,127)],U.Eb[1]=101581*_o[Oe(_+L,127)]>>16,8>U.Eb[1]&&(U.Eb[1]=8),U.Qc[0]=So[Oe(_+S,117)],U.Qc[1]=_o[Oe(_+A,127)],U.lc=_+A}if(!y.Rb)return Ge(t,4,"Not a key frame.");for(tt(b),y=t.Pa,c=0;4>c;++c){for(m=0;8>m;++m)for(f=0;3>f;++f)for(L=0;11>L;++L)S=ft(b,Cu[c][m][f][L])?dt(b,8):Fu[c][m][f][L],y.Wc[c][m].Yb[f][L]=S;for(m=0;17>m;++m)y.Xc[c][m]=y.Wc[c][ju[m]]}return t.kc=tt(b),t.kc&&(t.Bd=dt(b,8)),t.cb=1}function cn(t,r,c,f,m,b,y){var L=r[m].Yb[c];for(c=0;16>m;++m){if(!ft(t,L[c+0]))return m;for(;!ft(t,L[c+1]);)if(L=r[++m].Yb[0],c=0,m==16)return 16;var A=r[m+1].Yb;if(ft(t,L[c+2])){var S=t,q=0;if(ft(S,(_=L)[(X=c)+3]))if(ft(S,_[X+6])){for(L=0,X=2*(q=ft(S,_[X+8]))+(_=ft(S,_[X+9+q])),q=0,_=Pu[X];_[L];++L)q+=q+ft(S,_[L]);q+=3+(8<<X)}else ft(S,_[X+7])?(q=7+2*ft(S,165),q+=ft(S,145)):q=5+ft(S,159);else q=ft(S,_[X+4])?3+ft(S,_[X+5]):2;L=A[2]}else q=1,L=A[1];A=y+ku[m],0>(S=t).b&&et(S);var X,_=S.b,U=(X=S.Ca>>1)-(S.I>>_)>>31;--S.b,S.Ca+=U,S.Ca|=1,S.I-=(X+1&U)<<_,b[A]=((q^U)-U)*f[(0<m)+0]}return 16}function Wn(t){var r=t.rb[t.sb-1];r.la=0,r.Na=0,s(t.zc,0,0,t.zc.length),t.ja=0}function Ur(t,r,c,f,m){m=t[r+c+32*f]+(m>>3),t[r+c+32*f]=-256&m?0>m?0:255:m}function Vn(t,r,c,f,m,b){Ur(t,r,0,c,f+m),Ur(t,r,1,c,f+b),Ur(t,r,2,c,f-b),Ur(t,r,3,c,f-m)}function Re(t){return(20091*t>>16)+t}function Di(t,r,c,f){var m,b=0,y=u(16);for(m=0;4>m;++m){var L=t[r+0]+t[r+8],A=t[r+0]-t[r+8],S=(35468*t[r+4]>>16)-Re(t[r+12]),q=Re(t[r+4])+(35468*t[r+12]>>16);y[b+0]=L+q,y[b+1]=A+S,y[b+2]=A-S,y[b+3]=L-q,b+=4,r++}for(m=b=0;4>m;++m)L=(t=y[b+0]+4)+y[b+8],A=t-y[b+8],S=(35468*y[b+4]>>16)-Re(y[b+12]),Ur(c,f,0,0,L+(q=Re(y[b+4])+(35468*y[b+12]>>16))),Ur(c,f,1,0,A+S),Ur(c,f,2,0,A-S),Ur(c,f,3,0,L-q),b++,f+=32}function ao(t,r,c,f){var m=t[r+0]+4,b=35468*t[r+4]>>16,y=Re(t[r+4]),L=35468*t[r+1]>>16;Vn(c,f,0,m+y,t=Re(t[r+1]),L),Vn(c,f,1,m+b,t,L),Vn(c,f,2,m-b,t,L),Vn(c,f,3,m-y,t,L)}function oo(t,r,c,f,m){Di(t,r,c,f),m&&Di(t,r+16,c,f+4)}function so(t,r,c,f){ui(t,r+0,c,f,1),ui(t,r+32,c,f+128,1)}function $r(t,r,c,f){var m;for(t=t[r+0]+4,m=0;4>m;++m)for(r=0;4>r;++r)Ur(c,f,r,m,t)}function ba(t,r,c,f){t[r+0]&&ve(t,r+0,c,f),t[r+16]&&ve(t,r+16,c,f+4),t[r+32]&&ve(t,r+32,c,f+128),t[r+48]&&ve(t,r+48,c,f+128+4)}function ya(t,r,c,f){var m,b=u(16);for(m=0;4>m;++m){var y=t[r+0+m]+t[r+12+m],L=t[r+4+m]+t[r+8+m],A=t[r+4+m]-t[r+8+m],S=t[r+0+m]-t[r+12+m];b[0+m]=y+L,b[8+m]=y-L,b[4+m]=S+A,b[12+m]=S-A}for(m=0;4>m;++m)y=(t=b[0+4*m]+3)+b[3+4*m],L=b[1+4*m]+b[2+4*m],A=b[1+4*m]-b[2+4*m],S=t-b[3+4*m],c[f+0]=y+L>>3,c[f+16]=S+A>>3,c[f+32]=y-L>>3,c[f+48]=S-A>>3,f+=64}function Ln(t,r,c){var f,m=r-32,b=xr,y=255-t[m-1];for(f=0;f<c;++f){var L,A=b,S=y+t[r-1];for(L=0;L<c;++L)t[r+L]=A[S+t[m+L]];r+=32}}function Ti(t,r){Ln(t,r,4)}function uo(t,r){Ln(t,r,8)}function co(t,r){Ln(t,r,16)}function lo(t,r){var c;for(c=0;16>c;++c)a(t,r+32*c,t,r-32,16)}function zi(t,r){var c;for(c=16;0<c;--c)s(t,r,t[r-1],16),r+=32}function Gn(t,r,c){var f;for(f=0;16>f;++f)s(r,c+32*f,t,16)}function Nn(t,r){var c,f=16;for(c=0;16>c;++c)f+=t[r-1+32*c]+t[r+c-32];Gn(f>>5,t,r)}function ho(t,r){var c,f=8;for(c=0;16>c;++c)f+=t[r-1+32*c];Gn(f>>4,t,r)}function Jn(t,r){var c,f=8;for(c=0;16>c;++c)f+=t[r+c-32];Gn(f>>4,t,r)}function Ui(t,r){Gn(128,t,r)}function Xt(t,r,c){return t+2*r+c+2>>2}function fo(t,r){var c,f=r-32;for(f=new Uint8Array([Xt(t[f-1],t[f+0],t[f+1]),Xt(t[f+0],t[f+1],t[f+2]),Xt(t[f+1],t[f+2],t[f+3]),Xt(t[f+2],t[f+3],t[f+4])]),c=0;4>c;++c)a(t,r+32*c,f,0,f.length)}function po(t,r){var c=t[r-1],f=t[r-1+32],m=t[r-1+64],b=t[r-1+96];wt(t,r+0,16843009*Xt(t[r-1-32],c,f)),wt(t,r+32,16843009*Xt(c,f,m)),wt(t,r+64,16843009*Xt(f,m,b)),wt(t,r+96,16843009*Xt(m,b,b))}function go(t,r){var c,f=4;for(c=0;4>c;++c)f+=t[r+c-32]+t[r-1+32*c];for(f>>=3,c=0;4>c;++c)s(t,r+32*c,f,4)}function mo(t,r){var c=t[r-1+0],f=t[r-1+32],m=t[r-1+64],b=t[r-1-32],y=t[r+0-32],L=t[r+1-32],A=t[r+2-32],S=t[r+3-32];t[r+0+96]=Xt(f,m,t[r-1+96]),t[r+1+96]=t[r+0+64]=Xt(c,f,m),t[r+2+96]=t[r+1+64]=t[r+0+32]=Xt(b,c,f),t[r+3+96]=t[r+2+64]=t[r+1+32]=t[r+0+0]=Xt(y,b,c),t[r+3+64]=t[r+2+32]=t[r+1+0]=Xt(L,y,b),t[r+3+32]=t[r+2+0]=Xt(A,L,y),t[r+3+0]=Xt(S,A,L)}function ln(t,r){var c=t[r+1-32],f=t[r+2-32],m=t[r+3-32],b=t[r+4-32],y=t[r+5-32],L=t[r+6-32],A=t[r+7-32];t[r+0+0]=Xt(t[r+0-32],c,f),t[r+1+0]=t[r+0+32]=Xt(c,f,m),t[r+2+0]=t[r+1+32]=t[r+0+64]=Xt(f,m,b),t[r+3+0]=t[r+2+32]=t[r+1+64]=t[r+0+96]=Xt(m,b,y),t[r+3+32]=t[r+2+64]=t[r+1+96]=Xt(b,y,L),t[r+3+64]=t[r+2+96]=Xt(y,L,A),t[r+3+96]=Xt(L,A,A)}function hn(t,r){var c=t[r-1+0],f=t[r-1+32],m=t[r-1+64],b=t[r-1-32],y=t[r+0-32],L=t[r+1-32],A=t[r+2-32],S=t[r+3-32];t[r+0+0]=t[r+1+64]=b+y+1>>1,t[r+1+0]=t[r+2+64]=y+L+1>>1,t[r+2+0]=t[r+3+64]=L+A+1>>1,t[r+3+0]=A+S+1>>1,t[r+0+96]=Xt(m,f,c),t[r+0+64]=Xt(f,c,b),t[r+0+32]=t[r+1+96]=Xt(c,b,y),t[r+1+32]=t[r+2+96]=Xt(b,y,L),t[r+2+32]=t[r+3+96]=Xt(y,L,A),t[r+3+32]=Xt(L,A,S)}function vo(t,r){var c=t[r+0-32],f=t[r+1-32],m=t[r+2-32],b=t[r+3-32],y=t[r+4-32],L=t[r+5-32],A=t[r+6-32],S=t[r+7-32];t[r+0+0]=c+f+1>>1,t[r+1+0]=t[r+0+64]=f+m+1>>1,t[r+2+0]=t[r+1+64]=m+b+1>>1,t[r+3+0]=t[r+2+64]=b+y+1>>1,t[r+0+32]=Xt(c,f,m),t[r+1+32]=t[r+0+96]=Xt(f,m,b),t[r+2+32]=t[r+1+96]=Xt(m,b,y),t[r+3+32]=t[r+2+96]=Xt(b,y,L),t[r+3+64]=Xt(y,L,A),t[r+3+96]=Xt(L,A,S)}function bo(t,r){var c=t[r-1+0],f=t[r-1+32],m=t[r-1+64],b=t[r-1+96];t[r+0+0]=c+f+1>>1,t[r+2+0]=t[r+0+32]=f+m+1>>1,t[r+2+32]=t[r+0+64]=m+b+1>>1,t[r+1+0]=Xt(c,f,m),t[r+3+0]=t[r+1+32]=Xt(f,m,b),t[r+3+32]=t[r+1+64]=Xt(m,b,b),t[r+3+64]=t[r+2+64]=t[r+0+96]=t[r+1+96]=t[r+2+96]=t[r+3+96]=b}function bi(t,r){var c=t[r-1+0],f=t[r-1+32],m=t[r-1+64],b=t[r-1+96],y=t[r-1-32],L=t[r+0-32],A=t[r+1-32],S=t[r+2-32];t[r+0+0]=t[r+2+32]=c+y+1>>1,t[r+0+32]=t[r+2+64]=f+c+1>>1,t[r+0+64]=t[r+2+96]=m+f+1>>1,t[r+0+96]=b+m+1>>1,t[r+3+0]=Xt(L,A,S),t[r+2+0]=Xt(y,L,A),t[r+1+0]=t[r+3+32]=Xt(c,y,L),t[r+1+32]=t[r+3+64]=Xt(f,c,y),t[r+1+64]=t[r+3+96]=Xt(m,f,c),t[r+1+96]=Xt(b,m,f)}function Hi(t,r){var c;for(c=0;8>c;++c)a(t,r+32*c,t,r-32,8)}function Yn(t,r){var c;for(c=0;8>c;++c)s(t,r,t[r-1],8),r+=32}function yi(t,r,c){var f;for(f=0;8>f;++f)s(r,c+32*f,t,8)}function wi(t,r){var c,f=8;for(c=0;8>c;++c)f+=t[r+c-32]+t[r-1+32*c];yi(f>>4,t,r)}function yo(t,r){var c,f=4;for(c=0;8>c;++c)f+=t[r+c-32];yi(f>>3,t,r)}function Wi(t,r){var c,f=4;for(c=0;8>c;++c)f+=t[r-1+32*c];yi(f>>3,t,r)}function Vi(t,r){yi(128,t,r)}function Xn(t,r,c){var f=t[r-c],m=t[r+0],b=3*(m-f)+wo[1020+t[r-2*c]-t[r+c]],y=Fa[112+(b+4>>3)];t[r-c]=xr[255+f+Fa[112+(b+3>>3)]],t[r+0]=xr[255+m-y]}function Kn(t,r,c,f){var m=t[r+0],b=t[r+c];return qr[255+t[r-2*c]-t[r-c]]>f||qr[255+b-m]>f}function Gi(t,r,c,f){return 4*qr[255+t[r-c]-t[r+0]]+qr[255+t[r-2*c]-t[r+c]]<=f}function Li(t,r,c,f,m){var b=t[r-3*c],y=t[r-2*c],L=t[r-c],A=t[r+0],S=t[r+c],q=t[r+2*c],X=t[r+3*c];return 4*qr[255+L-A]+qr[255+y-S]>f?0:qr[255+t[r-4*c]-b]<=m&&qr[255+b-y]<=m&&qr[255+y-L]<=m&&qr[255+X-q]<=m&&qr[255+q-S]<=m&&qr[255+S-A]<=m}function Ji(t,r,c,f){var m=2*f+1;for(f=0;16>f;++f)Gi(t,r+f,c,m)&&Xn(t,r+f,c)}function Zn(t,r,c,f){var m=2*f+1;for(f=0;16>f;++f)Gi(t,r+f*c,1,m)&&Xn(t,r+f*c,1)}function wa(t,r,c,f){var m;for(m=3;0<m;--m)Ji(t,r+=4*c,c,f)}function La(t,r,c,f){var m;for(m=3;0<m;--m)Zn(t,r+=4,c,f)}function fn(t,r,c,f,m,b,y,L){for(b=2*b+1;0<m--;){if(Li(t,r,c,b,y))if(Kn(t,r,c,L))Xn(t,r,c);else{var A=t,S=r,q=c,X=A[S-2*q],_=A[S-q],U=A[S+0],G=A[S+q],nt=A[S+2*q],Y=27*(ct=wo[1020+3*(U-_)+wo[1020+X-G]])+63>>7,ot=18*ct+63>>7,ct=9*ct+63>>7;A[S-3*q]=xr[255+A[S-3*q]+ct],A[S-2*q]=xr[255+X+ot],A[S-q]=xr[255+_+Y],A[S+0]=xr[255+U-Y],A[S+q]=xr[255+G-ot],A[S+2*q]=xr[255+nt-ct]}r+=f}}function dn(t,r,c,f,m,b,y,L){for(b=2*b+1;0<m--;){if(Li(t,r,c,b,y))if(Kn(t,r,c,L))Xn(t,r,c);else{var A=t,S=r,q=c,X=A[S-q],_=A[S+0],U=A[S+q],G=Fa[112+(4+(nt=3*(_-X))>>3)],nt=Fa[112+(nt+3>>3)],Y=G+1>>1;A[S-2*q]=xr[255+A[S-2*q]+Y],A[S-q]=xr[255+X+nt],A[S+0]=xr[255+_-G],A[S+q]=xr[255+U-Y]}r+=f}}function Na(t,r,c,f,m,b){fn(t,r,c,1,16,f,m,b)}function Aa(t,r,c,f,m,b){fn(t,r,1,c,16,f,m,b)}function $n(t,r,c,f,m,b){var y;for(y=3;0<y;--y)dn(t,r+=4*c,c,1,16,f,m,b)}function xa(t,r,c,f,m,b){var y;for(y=3;0<y;--y)dn(t,r+=4,1,c,16,f,m,b)}function o(t,r,c,f,m,b,y,L){fn(t,r,m,1,8,b,y,L),fn(c,f,m,1,8,b,y,L)}function g(t,r,c,f,m,b,y,L){fn(t,r,1,m,8,b,y,L),fn(c,f,1,m,8,b,y,L)}function k(t,r,c,f,m,b,y,L){dn(t,r+4*m,m,1,8,b,y,L),dn(c,f+4*m,m,1,8,b,y,L)}function E(t,r,c,f,m,b,y,L){dn(t,r+4,1,m,8,b,y,L),dn(c,f+4,1,m,8,b,y,L)}function W(){this.ba=new Ne,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new me,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function st(){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 gt(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function It(){this.ua=0,this.Wa=new ne,this.vb=new ne,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new it,this.yc=new R}function Ot(){this.xb=this.a=0,this.l=new vi,this.ca=new Ne,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new C,this.Pb=0,this.wd=new C,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new It,this.ab=0,this.gc=d(4,gt),this.Oc=0}function Jt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new vi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Kt(t,r,c,f,m,b,y){for(t=t==null?0:t[r+0],r=0;r<y;++r)m[b+r]=t+c[f+r]&255,t=m[b+r]}function ge(t,r,c,f,m,b,y){var L;if(t==null)Kt(null,null,c,f,m,b,y);else for(L=0;L<y;++L)m[b+L]=t[r+L]+c[f+L]&255}function Ce(t,r,c,f,m,b,y){if(t==null)Kt(null,null,c,f,m,b,y);else{var L,A=t[r+0],S=A,q=A;for(L=0;L<y;++L)S=q+(A=t[r+L])-S,q=c[f+L]+(-256&S?0>S?0:255:S)&255,S=A,m[b+L]=q}}function Je(t,r,c,f){var m=r.width,b=r.o;if(e(t!=null&&r!=null),0>c||0>=f||c+f>b)return null;if(!t.Cc){if(t.ga==null){var y;if(t.ga=new Jt,(y=t.ga==null)||(y=r.width*r.o,e(t.Gb.length==0),t.Gb=u(y),t.Uc=0,t.Gb==null?y=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,y=1),y=!y),!y){y=t.ga;var L=t.Fa,A=t.P,S=t.qc,q=t.mb,X=t.nb,_=A+1,U=S-1,G=y.l;if(e(L!=null&&q!=null&&r!=null),jn[0]=null,jn[1]=Kt,jn[2]=ge,jn[3]=Ce,y.ca=q,y.tb=X,y.c=r.width,y.i=r.height,e(0<y.c&&0<y.i),1>=S)r=0;else if(y.$a=3&L[A+0],y.Z=L[A+0]>>2&3,y.Lc=L[A+0]>>4&3,A=L[A+0]>>6&3,0>y.$a||1<y.$a||4<=y.Z||1<y.Lc||A)r=0;else if(G.put=Wt,G.ac=Xr,G.bc=sn,G.ma=y,G.width=r.width,G.height=r.height,G.Da=r.Da,G.v=r.v,G.va=r.va,G.j=r.j,G.o=r.o,y.$a)t:{e(y.$a==1),r=Un();e:for(;;){if(r==null){r=0;break t}if(e(y!=null),y.mc=r,r.c=y.c,r.i=y.i,r.l=y.l,r.l.ma=y,r.l.width=y.c,r.l.height=y.i,r.a=0,ht(r.m,L,_,U),!Zr(y.c,y.i,1,r,null)||(r.ab==1&&r.gc[0].hc==3&&Dr(r.s)?(y.ic=1,L=r.c*r.i,r.Ta=null,r.Ua=0,r.V=u(L),r.Ba=0,r.V==null?(r.a=1,r=0):r=1):(y.ic=0,r=Hn(r,y.c)),!r))break e;r=1;break t}y.mc=null,r=0}else r=U>=y.c*y.i;y=!r}if(y)return null;t.ga.Lc!=1?t.Ga=0:f=b-c}e(t.ga!=null),e(c+f<=b);t:{if(r=(L=t.ga).c,b=L.l.o,L.$a==0){if(_=t.rc,U=t.Vc,G=t.Fa,A=t.P+1+c*r,S=t.mb,q=t.nb+c*r,e(A<=t.P+t.qc),L.Z!=0)for(e(jn[L.Z]!=null),y=0;y<f;++y)jn[L.Z](_,U,G,A,S,q,r),_=S,U=q,q+=r,A+=r;else for(y=0;y<f;++y)a(S,q,G,A,r),_=S,U=q,q+=r,A+=r;t.rc=_,t.Vc=U}else{if(e(L.mc!=null),r=c+f,e((y=L.mc)!=null),e(r<=y.i),y.C>=r)r=1;else if(L.ic||Br(),L.ic){L=y.V,_=y.Ba,U=y.c;var nt=y.i,Y=(G=1,A=y.$/U,S=y.$%U,q=y.m,X=y.s,y.$),ot=U*nt,ct=U*r,vt=X.wc,pt=Y<ct?nr(X,S,A):null;e(Y<=ot),e(r<=nt),e(Dr(X));e:for(;;){for(;!q.h&&Y<ct;){if(S&vt||(pt=nr(X,S,A)),e(pt!=null),K(q),256>(nt=je(pt.G[0],pt.H[0],q)))L[_+Y]=nt,++Y,++S>=U&&(S=0,++A<=r&&!(A%16)&&Tr(y,A));else{if(!(280>nt)){G=0;break e}nt=Ir(nt-256,q);var Mt,kt=je(pt.G[4],pt.H[4],q);if(K(q),!(Y>=(kt=Cr(U,kt=Ir(kt,q)))&&ot-Y>=nt)){G=0;break e}for(Mt=0;Mt<nt;++Mt)L[_+Y+Mt]=L[_+Y+Mt-kt];for(Y+=nt,S+=nt;S>=U;)S-=U,++A<=r&&!(A%16)&&Tr(y,A);Y<ct&&S&vt&&(pt=nr(X,S,A))}e(q.h==H(q))}Tr(y,A>r?r:A);break e}!G||q.h&&Y<ot?(G=0,y.a=q.h?5:3):y.$=Y,r=G}else r=zr(y,y.V,y.Ba,y.c,y.i,r,pi);if(!r){f=0;break t}}c+f>=b&&(t.Cc=1),f=1}if(!f)return null;if(t.Cc&&((f=t.ga)!=null&&(f.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+c*m}function ke(t,r,c,f,m,b){for(;0<m--;){var y,L=t,A=r+(c?1:0),S=t,q=r+(c?0:3);for(y=0;y<f;++y){var X=S[q+4*y];X!=255&&(X*=32897,L[A+4*y+0]=L[A+4*y+0]*X>>23,L[A+4*y+1]=L[A+4*y+1]*X>>23,L[A+4*y+2]=L[A+4*y+2]*X>>23)}r+=b}}function Ke(t,r,c,f,m){for(;0<f--;){var b;for(b=0;b<c;++b){var y=t[r+2*b+0],L=15&(S=t[r+2*b+1]),A=4369*L,S=(240&S|S>>4)*A>>16;t[r+2*b+0]=(240&y|y>>4)*A>>16&240|(15&y|y<<4)*A>>16>>4&15,t[r+2*b+1]=240&S|L}r+=m}}function Ye(t,r,c,f,m,b,y,L){var A,S,q=255;for(S=0;S<m;++S){for(A=0;A<f;++A){var X=t[r+A];b[y+4*A]=X,q&=X}r+=c,y+=L}return q!=255}function ir(t,r,c,f,m){var b;for(b=0;b<m;++b)c[f+b]=t[r+b]>>8}function Br(){ia=ke,ns=Ke,is=Ye,as=ir}function br(t,r,c){J[t]=function(f,m,b,y,L,A,S,q,X,_,U,G,nt,Y,ot,ct,vt){var pt,Mt=vt-1>>1,kt=L[A+0]|S[q+0]<<16,oe=X[_+0]|U[G+0]<<16;e(f!=null);var Ct=3*kt+oe+131074>>2;for(r(f[m+0],255&Ct,Ct>>16,nt,Y),b!=null&&(Ct=3*oe+kt+131074>>2,r(b[y+0],255&Ct,Ct>>16,ot,ct)),pt=1;pt<=Mt;++pt){var le=L[A+pt]|S[q+pt]<<16,$e=X[_+pt]|U[G+pt]<<16,se=kt+le+oe+$e+524296,jt=se+2*(le+oe)>>3;Ct=jt+kt>>1,kt=(se=se+2*(kt+$e)>>3)+le>>1,r(f[m+2*pt-1],255&Ct,Ct>>16,nt,Y+(2*pt-1)*c),r(f[m+2*pt-0],255&kt,kt>>16,nt,Y+(2*pt-0)*c),b!=null&&(Ct=se+oe>>1,kt=jt+$e>>1,r(b[y+2*pt-1],255&Ct,Ct>>16,ot,ct+(2*pt-1)*c),r(b[y+2*pt+0],255&kt,kt>>16,ot,ct+(2*pt+0)*c)),kt=le,oe=$e}1&vt||(Ct=3*kt+oe+131074>>2,r(f[m+vt-1],255&Ct,Ct>>16,nt,Y+(vt-1)*c),b!=null&&(Ct=3*oe+kt+131074>>2,r(b[y+vt-1],255&Ct,Ct>>16,ot,ct+(vt-1)*c)))}}function Sa(){Rr[Ia]=Bu,Rr[Ca]=ms,Rr[hs]=Mu,Rr[ja]=vs,Rr[Oa]=bs,Rr[Lo]=ys,Rr[fs]=Eu,Rr[No]=ms,Rr[Ao]=vs,Rr[Ba]=bs,Rr[xo]=ys}function Ni(t){return t&~qu?0>t?0:255:t>>ws}function Qn(t,r){return Ni((19077*t>>8)+(26149*r>>8)-14234)}function An(t,r,c){return Ni((19077*t>>8)-(6419*r>>8)-(13320*c>>8)+8708)}function ti(t,r){return Ni((19077*t>>8)+(33050*r>>8)-17685)}function ei(t,r,c,f,m){f[m+0]=Qn(t,c),f[m+1]=An(t,r,c),f[m+2]=ti(t,r)}function ri(t,r,c,f,m){f[m+0]=ti(t,r),f[m+1]=An(t,r,c),f[m+2]=Qn(t,c)}function cr(t,r,c,f,m){var b=An(t,r,c);r=b<<3&224|ti(t,r)>>3,f[m+0]=248&Qn(t,c)|b>>5,f[m+1]=r}function ni(t,r,c,f,m){var b=240&ti(t,r)|15;f[m+0]=240&Qn(t,c)|An(t,r,c)>>4,f[m+1]=b}function ii(t,r,c,f,m){f[m+0]=255,ei(t,r,c,f,m+1)}function Yi(t,r,c,f,m){ri(t,r,c,f,m),f[m+3]=255}function Xi(t,r,c,f,m){ei(t,r,c,f,m),f[m+3]=255}function Oe(t,r){return 0>t?0:t>r?r:t}function pn(t,r,c){J[t]=function(f,m,b,y,L,A,S,q,X){for(var _=q+(-2&X)*c;q!=_;)r(f[m+0],b[y+0],L[A+0],S,q),r(f[m+1],b[y+0],L[A+0],S,q+c),m+=2,++y,++A,q+=2*c;1&X&&r(f[m+0],b[y+0],L[A+0],S,q)}}function Ai(t,r,c){return c==0?t==0?r==0?6:5:r==0?4:0:c}function _a(t,r,c,f,m){switch(t>>>30){case 3:ui(r,c,f,m,0);break;case 2:Er(r,c,f,m);break;case 1:ve(r,c,f,m)}}function Mr(t,r){var c,f,m=r.M,b=r.Nb,y=t.oc,L=t.pc+40,A=t.oc,S=t.pc+584,q=t.oc,X=t.pc+600;for(c=0;16>c;++c)y[L+32*c-1]=129;for(c=0;8>c;++c)A[S+32*c-1]=129,q[X+32*c-1]=129;for(0<m?y[L-1-32]=A[S-1-32]=q[X-1-32]=129:(s(y,L-32-1,127,21),s(A,S-32-1,127,9),s(q,X-32-1,127,9)),f=0;f<t.za;++f){var _=r.ya[r.aa+f];if(0<f){for(c=-1;16>c;++c)a(y,L+32*c-4,y,L+32*c+12,4);for(c=-1;8>c;++c)a(A,S+32*c-4,A,S+32*c+4,4),a(q,X+32*c-4,q,X+32*c+4,4)}var U=t.Gd,G=t.Hd+f,nt=_.ad,Y=_.Hc;if(0<m&&(a(y,L-32,U[G].y,0,16),a(A,S-32,U[G].f,0,8),a(q,X-32,U[G].ea,0,8)),_.Za){var ot=y,ct=L-32+16;for(0<m&&(f>=t.za-1?s(ot,ct,U[G].y[15],4):a(ot,ct,U[G+1].y,0,4)),c=0;4>c;c++)ot[ct+128+c]=ot[ct+256+c]=ot[ct+384+c]=ot[ct+0+c];for(c=0;16>c;++c,Y<<=2)ot=y,ct=L+Ns[c],Hr[_.Ob[c]](ot,ct),_a(Y,nt,16*+c,ot,ct)}else if(ot=Ai(f,m,_.Ob[0]),Cn[ot](y,L),Y!=0)for(c=0;16>c;++c,Y<<=2)_a(Y,nt,16*+c,y,L+Ns[c]);for(c=_.Gc,ot=Ai(f,m,_.Dd),vn[ot](A,S),vn[ot](q,X),Y=nt,ot=A,ct=S,255&(_=0|c)&&(170&_?en(Y,256,ot,ct):Ae(Y,256,ot,ct)),_=q,Y=X,255&(c>>=8)&&(170&c?en(nt,320,_,Y):Ae(nt,320,_,Y)),m<t.Ub-1&&(a(U[G].y,0,y,L+480,16),a(U[G].f,0,A,S+224,8),a(U[G].ea,0,q,X+224,8)),c=8*b*t.B,U=t.sa,G=t.ta+16*f+16*b*t.R,nt=t.qa,_=t.ra+8*f+c,Y=t.Ha,ot=t.Ia+8*f+c,c=0;16>c;++c)a(U,G+c*t.R,y,L+32*c,16);for(c=0;8>c;++c)a(nt,_+c*t.B,A,S+32*c,8),a(Y,ot+c*t.B,q,X+32*c,8)}}function ai(t,r,c,f,m,b,y,L,A){var S=[0],q=[0],X=0,_=A!=null?A.kd:0,U=A??new st;if(t==null||12>c)return 7;U.data=t,U.w=r,U.ha=c,r=[r],c=[c],U.gb=[U.gb];t:{var G=r,nt=c,Y=U.gb;if(e(t!=null),e(nt!=null),e(Y!=null),Y[0]=0,12<=nt[0]&&!i(t,G[0],"RIFF")){if(i(t,G[0]+8,"WEBP")){Y=3;break t}var ot=at(t,G[0]+4);if(12>ot||4294967286<ot){Y=3;break t}if(_&&ot>nt[0]-8){Y=7;break t}Y[0]=ot,G[0]+=12,nt[0]-=12}Y=0}if(Y!=0)return Y;for(ot=0<U.gb[0],c=c[0];;){t:{var ct=t;nt=r,Y=c;var vt=S,pt=q,Mt=G=[0];if((Ct=X=[X])[0]=0,8>Y[0])Y=7;else{if(!i(ct,nt[0],"VP8X")){if(at(ct,nt[0]+4)!=10){Y=3;break t}if(18>Y[0]){Y=7;break t}var kt=at(ct,nt[0]+8),oe=1+Pt(ct,nt[0]+12);if(2147483648<=oe*(ct=1+Pt(ct,nt[0]+15))){Y=3;break t}Mt!=null&&(Mt[0]=kt),vt!=null&&(vt[0]=oe),pt!=null&&(pt[0]=ct),nt[0]+=18,Y[0]-=18,Ct[0]=1}Y=0}}if(X=X[0],G=G[0],Y!=0)return Y;if(nt=!!(2&G),!ot&&X)return 3;if(b!=null&&(b[0]=!!(16&G)),y!=null&&(y[0]=nt),L!=null&&(L[0]=0),y=S[0],G=q[0],X&&nt&&A==null){Y=0;break}if(4>c){Y=7;break}if(ot&&X||!ot&&!X&&!i(t,r[0],"ALPH")){c=[c],U.na=[U.na],U.P=[U.P],U.Sa=[U.Sa];t:{kt=t,Y=r,ot=c;var Ct=U.gb;vt=U.na,pt=U.P,Mt=U.Sa,oe=22,e(kt!=null),e(ot!=null),ct=Y[0];var le=ot[0];for(e(vt!=null),e(Mt!=null),vt[0]=null,pt[0]=null,Mt[0]=0;;){if(Y[0]=ct,ot[0]=le,8>le){Y=7;break t}var $e=at(kt,ct+4);if(4294967286<$e){Y=3;break t}var se=8+$e+1&-2;if(oe+=se,0<Ct&&oe>Ct){Y=3;break t}if(!i(kt,ct,"VP8 ")||!i(kt,ct,"VP8L")){Y=0;break t}if(le[0]<se){Y=7;break t}i(kt,ct,"ALPH")||(vt[0]=kt,pt[0]=ct+8,Mt[0]=$e),ct+=se,le-=se}}if(c=c[0],U.na=U.na[0],U.P=U.P[0],U.Sa=U.Sa[0],Y!=0)break}c=[c],U.Ja=[U.Ja],U.xa=[U.xa];t:if(Ct=t,Y=r,ot=c,vt=U.gb[0],pt=U.Ja,Mt=U.xa,kt=Y[0],ct=!i(Ct,kt,"VP8 "),oe=!i(Ct,kt,"VP8L"),e(Ct!=null),e(ot!=null),e(pt!=null),e(Mt!=null),8>ot[0])Y=7;else{if(ct||oe){if(Ct=at(Ct,kt+4),12<=vt&&Ct>vt-12){Y=3;break t}if(_&&Ct>ot[0]-8){Y=7;break t}pt[0]=Ct,Y[0]+=8,ot[0]-=8,Mt[0]=oe}else Mt[0]=5<=ot[0]&&Ct[kt+0]==47&&!(Ct[kt+4]>>5),pt[0]=ot[0];Y=0}if(c=c[0],U.Ja=U.Ja[0],U.xa=U.xa[0],r=r[0],Y!=0)break;if(4294967286<U.Ja)return 3;if(L==null||nt||(L[0]=U.xa?2:1),y=[y],G=[G],U.xa){if(5>c){Y=7;break}L=y,_=G,nt=b,t==null||5>c?t=0:5<=c&&t[r+0]==47&&!(t[r+4]>>5)?(ot=[0],Ct=[0],vt=[0],ht(pt=new C,t,r,c),un(pt,ot,Ct,vt)?(L!=null&&(L[0]=ot[0]),_!=null&&(_[0]=Ct[0]),nt!=null&&(nt[0]=vt[0]),t=1):t=0):t=0}else{if(10>c){Y=7;break}L=G,t==null||10>c||!ma(t,r+3,c-3)?t=0:(_=t[r+0]|t[r+1]<<8|t[r+2]<<16,nt=16383&(t[r+7]<<8|t[r+6]),t=16383&(t[r+9]<<8|t[r+8]),1&_||3<(_>>1&7)||!(_>>4&1)||_>>5>=U.Ja||!nt||!t?t=0:(y&&(y[0]=nt),L&&(L[0]=t),t=1))}if(!t||(y=y[0],G=G[0],X&&(S[0]!=y||q[0]!=G)))return 3;A!=null&&(A[0]=U,A.offset=r-A.w,e(4294967286>r-A.w),e(A.offset==A.ha-c));break}return Y==0||Y==7&&X&&A==null?(b!=null&&(b[0]|=U.na!=null&&0<U.na.length),f!=null&&(f[0]=y),m!=null&&(m[0]=G),0):Y}function Ki(t,r,c){var f=r.width,m=r.height,b=0,y=0,L=f,A=m;if(r.Da=t!=null&&0<t.Da,r.Da&&(L=t.cd,A=t.bd,b=t.v,y=t.j,11>c||(b&=-2,y&=-2),0>b||0>y||0>=L||0>=A||b+L>f||y+A>m))return 0;if(r.v=b,r.j=y,r.va=b+L,r.o=y+A,r.U=L,r.T=A,r.da=t!=null&&0<t.da,r.da){if(!zt(L,A,c=[t.ib],b=[t.hb]))return 0;r.ib=c[0],r.hb=b[0]}return r.ob=t!=null&&t.ob,r.Kb=t==null||!t.Sd,r.da&&(r.ob=r.ib<3*f/4&&r.hb<3*m/4,r.Kb=0),1}function Zi(t){if(t==null)return 2;if(11>t.S){var r=t.f.RGBA;r.fb+=(t.height-1)*r.A,r.A=-r.A}else r=t.f.kb,t=t.height,r.O+=(t-1)*r.fa,r.fa=-r.fa,r.N+=(t-1>>1)*r.Ab,r.Ab=-r.Ab,r.W+=(t-1>>1)*r.Db,r.Db=-r.Db,r.F!=null&&(r.J+=(t-1)*r.lb,r.lb=-r.lb);return 0}function xn(t,r,c,f){if(f==null||0>=t||0>=r)return 2;if(c!=null){if(c.Da){var m=c.cd,b=c.bd,y=-2&c.v,L=-2&c.j;if(0>y||0>L||0>=m||0>=b||y+m>t||L+b>r)return 2;t=m,r=b}if(c.da){if(!zt(t,r,m=[c.ib],b=[c.hb]))return 2;t=m[0],r=b[0]}}f.width=t,f.height=r;t:{var A=f.width,S=f.height;if(t=f.S,0>=A||0>=S||!(t>=Ia&&13>t))t=2;else{if(0>=f.Rd&&f.sd==null){y=b=m=r=0;var q=(L=A*As[t])*S;if(11>t||(b=(S+1)/2*(r=(A+1)/2),t==12&&(y=(m=A)*S)),(S=u(q+2*b+y))==null){t=1;break t}f.sd=S,11>t?((A=f.f.RGBA).eb=S,A.fb=0,A.A=L,A.size=q):((A=f.f.kb).y=S,A.O=0,A.fa=L,A.Fd=q,A.f=S,A.N=0+q,A.Ab=r,A.Cd=b,A.ea=S,A.W=0+q+b,A.Db=r,A.Ed=b,t==12&&(A.F=S,A.J=0+q+2*b),A.Tc=y,A.lb=m)}if(r=1,m=f.S,b=f.width,y=f.height,m>=Ia&&13>m)if(11>m)t=f.f.RGBA,r&=(L=Math.abs(t.A))*(y-1)+b<=t.size,r&=L>=b*As[m],r&=t.eb!=null;else{t=f.f.kb,L=(b+1)/2,q=(y+1)/2,A=Math.abs(t.fa),S=Math.abs(t.Ab);var X=Math.abs(t.Db),_=Math.abs(t.lb),U=_*(y-1)+b;r&=A*(y-1)+b<=t.Fd,r&=S*(q-1)+L<=t.Cd,r=(r&=X*(q-1)+L<=t.Ed)&A>=b&S>=L&X>=L,r&=t.y!=null,r&=t.f!=null,r&=t.ea!=null,m==12&&(r&=_>=b,r&=U<=t.Tc,r&=t.F!=null)}else r=0;t=r?0:2}}return t!=0||c!=null&&c.fd&&(t=Zi(f)),t}var oi=64,Nr=[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],Ar=24,Sn=32,gn=8,_n=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];St("Predictor0","PredictorAdd0"),J.Predictor0=function(){return 4278190080},J.Predictor1=function(t){return t},J.Predictor2=function(t,r,c){return r[c+0]},J.Predictor3=function(t,r,c){return r[c+1]},J.Predictor4=function(t,r,c){return r[c-1]},J.Predictor5=function(t,r,c){return Tt(Tt(t,r[c+1]),r[c+0])},J.Predictor6=function(t,r,c){return Tt(t,r[c-1])},J.Predictor7=function(t,r,c){return Tt(t,r[c+0])},J.Predictor8=function(t,r,c){return Tt(r[c-1],r[c+0])},J.Predictor9=function(t,r,c){return Tt(r[c+0],r[c+1])},J.Predictor10=function(t,r,c){return Tt(Tt(t,r[c-1]),Tt(r[c+0],r[c+1]))},J.Predictor11=function(t,r,c){var f=r[c+0];return 0>=Qt(f>>24&255,t>>24&255,(r=r[c-1])>>24&255)+Qt(f>>16&255,t>>16&255,r>>16&255)+Qt(f>>8&255,t>>8&255,r>>8&255)+Qt(255&f,255&t,255&r)?f:t},J.Predictor12=function(t,r,c){var f=r[c+0];return(de((t>>24&255)+(f>>24&255)-((r=r[c-1])>>24&255))<<24|de((t>>16&255)+(f>>16&255)-(r>>16&255))<<16|de((t>>8&255)+(f>>8&255)-(r>>8&255))<<8|de((255&t)+(255&f)-(255&r)))>>>0},J.Predictor13=function(t,r,c){var f=r[c-1];return($t((t=Tt(t,r[c+0]))>>24&255,f>>24&255)<<24|$t(t>>16&255,f>>16&255)<<16|$t(t>>8&255,f>>8&255)<<8|$t(255&t,255&f))>>>0};var $i=J.PredictorAdd0;J.PredictorAdd1=we,St("Predictor2","PredictorAdd2"),St("Predictor3","PredictorAdd3"),St("Predictor4","PredictorAdd4"),St("Predictor5","PredictorAdd5"),St("Predictor6","PredictorAdd6"),St("Predictor7","PredictorAdd7"),St("Predictor8","PredictorAdd8"),St("Predictor9","PredictorAdd9"),St("Predictor10","PredictorAdd10"),St("Predictor11","PredictorAdd11"),St("Predictor12","PredictorAdd12"),St("Predictor13","PredictorAdd13");var xi=J.PredictorAdd2;Dt("ColorIndexInverseTransform","MapARGB","32b",function(t){return t>>8&255},function(t){return t}),Dt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(t){return t},function(t){return t>>8&255});var De,Pa=J.ColorIndexInverseTransform,Qr=J.MapARGB,tn=J.VP8LColorIndexInverseTransformAlpha,Qi=J.MapAlpha,ta=J.VP8LPredictorsAdd=[];ta.length=16,(J.VP8LPredictors=[]).length=16,(J.VP8LPredictorsAdd_C=[]).length=16,(J.VP8LPredictors_C=[]).length=16;var ea,ra,Pn,kn,Fn,si,In,ui,Er,en,ve,Ae,Te,Ze,mn,na,Si,ka,Zo,$o,Qo,ts,es,rs,ia,ns,is,as,os=u(511),ss=u(2041),us=u(225),cs=u(767),ls=0,wo=ss,Fa=us,xr=cs,qr=os,Ia=0,Ca=1,hs=2,ja=3,Oa=4,Lo=5,fs=6,No=7,Ao=8,Ba=9,xo=10,wu=[2,3,7],Lu=[3,3,11],ds=[280,256,256,256,40],Nu=[0,1,1,1,0],Au=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],xu=[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],Su=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],_u=8,So=[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],_o=[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],aa=null,Pu=[[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]],ku=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ps=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Fu=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Iu=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Cu=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],ju=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Cn=[],Hr=[],vn=[],Ou=1,gs=2,jn=[],Rr=[];br("UpsampleRgbLinePair",ei,3),br("UpsampleBgrLinePair",ri,3),br("UpsampleRgbaLinePair",Xi,4),br("UpsampleBgraLinePair",Yi,4),br("UpsampleArgbLinePair",ii,4),br("UpsampleRgba4444LinePair",ni,2),br("UpsampleRgb565LinePair",cr,2);var Bu=J.UpsampleRgbLinePair,Mu=J.UpsampleBgrLinePair,ms=J.UpsampleRgbaLinePair,vs=J.UpsampleBgraLinePair,bs=J.UpsampleArgbLinePair,ys=J.UpsampleRgba4444LinePair,Eu=J.UpsampleRgb565LinePair,Ma=16,Ea=1<<Ma-1,oa=-227,Po=482,ws=6,qu=(256<<ws)-1,Ls=0,Ru=u(256),Du=u(256),Tu=u(256),zu=u(256),Uu=u(Po-oa),Hu=u(Po-oa);pn("YuvToRgbRow",ei,3),pn("YuvToBgrRow",ri,3),pn("YuvToRgbaRow",Xi,4),pn("YuvToBgraRow",Yi,4),pn("YuvToArgbRow",ii,4),pn("YuvToRgba4444Row",ni,2),pn("YuvToRgb565Row",cr,2);var Ns=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],qa=[0,2,8],Wu=[8,7,6,4,4,2,2,2,1,1,1,1],Vu=1;this.WebPDecodeRGBA=function(t,r,c,f,m){var b=Ca,y=new W,L=new Ne;y.ba=L,L.S=b,L.width=[L.width],L.height=[L.height];var A=L.width,S=L.height,q=new Yt;if(q==null||t==null)var X=2;else e(q!=null),X=ai(t,r,c,q.width,q.height,q.Pd,q.Qd,q.format,null);if(X!=0?A=0:(A!=null&&(A[0]=q.width[0]),S!=null&&(S[0]=q.height[0]),A=1),A){L.width=L.width[0],L.height=L.height[0],f!=null&&(f[0]=L.width),m!=null&&(m[0]=L.height);t:{if(f=new vi,(m=new st).data=t,m.w=r,m.ha=c,m.kd=1,r=[0],e(m!=null),((t=ai(m.data,m.w,m.ha,null,null,null,r,null,m))==0||t==7)&&r[0]&&(t=4),(r=t)==0){if(e(y!=null),f.data=m.data,f.w=m.w+m.offset,f.ha=m.ha-m.offset,f.put=Wt,f.ac=Xr,f.bc=sn,f.ma=y,m.xa){if((t=Un())==null){y=1;break t}if(function(_,U){var G=[0],nt=[0],Y=[0];e:for(;;){if(_==null)return 0;if(U==null)return _.a=2,0;if(_.l=U,_.a=0,ht(_.m,U.data,U.w,U.ha),!un(_.m,G,nt,Y)){_.a=3;break e}if(_.xb=gs,U.width=G[0],U.height=nt[0],!Zr(G[0],nt[0],1,_,null))break e;return 1}return e(_.a!=0),0}(t,f)){if(f=(r=xn(f.width,f.height,y.Oa,y.ba))==0){e:{f=t;r:for(;;){if(f==null){f=0;break e}if(e(f.s.yc!=null),e(f.s.Ya!=null),e(0<f.s.Wb),e((c=f.l)!=null),e((m=c.ma)!=null),f.xb!=0){if(f.ca=m.ba,f.tb=m.tb,e(f.ca!=null),!Ki(m.Oa,c,ja)){f.a=2;break r}if(!Hn(f,c.width)||c.da)break r;if((c.da||ee(f.ca.S))&&Br(),11>f.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),f.ca.f.kb.F!=null&&Br()),f.Pb&&0<f.s.ua&&f.s.vb.X==null&&!j(f.s.vb,f.s.Wa.Xa)){f.a=1;break r}f.xb=0}if(!zr(f,f.V,f.Ba,f.c,f.i,c.o,wn))break r;m.Dc=f.Ma,f=1;break e}e(f.a!=0),f=0}f=!f}f&&(r=t.a)}else r=t.a}else{if((t=new io)==null){y=1;break t}if(t.Fa=m.na,t.P=m.P,t.qc=m.Sa,va(t,f)){if((r=xn(f.width,f.height,y.Oa,y.ba))==0){if(t.Aa=0,c=y.Oa,e((m=t)!=null),c!=null){if(0<(A=0>(A=c.Md)?0:100<A?255:255*A/100)){for(S=q=0;4>S;++S)12>(X=m.pb[S]).lc&&(X.ia=A*Wu[0>X.lc?0:X.lc]>>3),q|=X.ia;q&&(alert("todo:VP8InitRandom"),m.ia=1)}m.Ga=c.Id,100<m.Ga?m.Ga=100:0>m.Ga&&(m.Ga=0)}(function(_,U){if(_==null)return 0;if(U==null)return Ge(_,2,"NULL VP8Io parameter in VP8Decode().");if(!_.cb&&!va(_,U))return 0;if(e(_.cb),U.ac==null||U.ac(U)){U.ob&&(_.L=0);var G=qa[_.L];if(_.L==2?(_.yb=0,_.zb=0):(_.yb=U.v-G>>4,_.zb=U.j-G>>4,0>_.yb&&(_.yb=0),0>_.zb&&(_.zb=0)),_.Va=U.o+15+G>>4,_.Hb=U.va+15+G>>4,_.Hb>_.za&&(_.Hb=_.za),_.Va>_.Ub&&(_.Va=_.Ub),0<_.L){var nt=_.ed;for(G=0;4>G;++G){var Y;if(_.Qa.Cb){var ot=_.Qa.Lb[G];_.Qa.Fb||(ot+=nt.Tb)}else ot=nt.Tb;for(Y=0;1>=Y;++Y){var ct=_.gd[G][Y],vt=ot;if(nt.Pc&&(vt+=nt.vd[0],Y&&(vt+=nt.od[0])),0<(vt=0>vt?0:63<vt?63:vt)){var pt=vt;0<nt.wb&&(pt=4<nt.wb?pt>>2:pt>>1)>9-nt.wb&&(pt=9-nt.wb),1>pt&&(pt=1),ct.dd=pt,ct.tc=2*vt+pt,ct.ld=40<=vt?2:15<=vt?1:0}else ct.tc=0;ct.La=Y}}}G=0}else Ge(_,6,"Frame setup failed"),G=_.a;if(G=G==0){if(G){_.$c=0,0<_.Aa||(_.Ic=Vu);e:{G=_.Ic,nt=4*(pt=_.za);var Mt=32*pt,kt=pt+1,oe=0<_.L?pt*(0<_.Aa?2:1):0,Ct=(_.Aa==2?2:1)*pt;if((ct=nt+832+(Y=3*(16*G+qa[_.L])/2*Mt)+(ot=_.Fa!=null&&0<_.Fa.length?_.Kc.c*_.Kc.i:0))!=ct)G=0;else{if(ct>_.Vb){if(_.Vb=0,_.Ec=u(ct),_.Fc=0,_.Ec==null){G=Ge(_,1,"no memory during frame initialization.");break e}_.Vb=ct}ct=_.Ec,vt=_.Fc,_.Ac=ct,_.Bc=vt,vt+=nt,_.Gd=d(Mt,pa),_.Hd=0,_.rb=d(kt+1,qi),_.sb=1,_.wa=oe?d(oe,Or):null,_.Y=0,_.D.Nb=0,_.D.wa=_.wa,_.D.Y=_.Y,0<_.Aa&&(_.D.Y+=pt),e(!0),_.oc=ct,_.pc=vt,vt+=832,_.ya=d(Ct,Ri),_.aa=0,_.D.ya=_.ya,_.D.aa=_.aa,_.Aa==2&&(_.D.aa+=pt),_.R=16*pt,_.B=8*pt,pt=(Mt=qa[_.L])*_.R,Mt=Mt/2*_.B,_.sa=ct,_.ta=vt+pt,_.qa=_.sa,_.ra=_.ta+16*G*_.R+Mt,_.Ha=_.qa,_.Ia=_.ra+8*G*_.B+Mt,_.$c=0,vt+=Y,_.mb=ot?ct:null,_.nb=ot?vt:null,e(vt+ot<=_.Fc+_.Vb),Wn(_),s(_.Ac,_.Bc,0,nt),G=1}}if(G){if(U.ka=0,U.y=_.sa,U.O=_.ta,U.f=_.qa,U.N=_.ra,U.ea=_.Ha,U.Vd=_.Ia,U.fa=_.R,U.Rc=_.B,U.F=null,U.J=0,!ls){for(G=-255;255>=G;++G)os[255+G]=0>G?-G:G;for(G=-1020;1020>=G;++G)ss[1020+G]=-128>G?-128:127<G?127:G;for(G=-112;112>=G;++G)us[112+G]=-16>G?-16:15<G?15:G;for(G=-255;510>=G;++G)cs[255+G]=0>G?0:255<G?255:G;ls=1}In=ya,ui=oo,en=so,ve=$r,Ae=ba,Er=ao,Te=Na,Ze=Aa,mn=o,na=g,Si=$n,ka=xa,Zo=k,$o=E,Qo=Ji,ts=Zn,es=wa,rs=La,Hr[0]=go,Hr[1]=Ti,Hr[2]=fo,Hr[3]=po,Hr[4]=mo,Hr[5]=hn,Hr[6]=ln,Hr[7]=vo,Hr[8]=bi,Hr[9]=bo,Cn[0]=Nn,Cn[1]=co,Cn[2]=lo,Cn[3]=zi,Cn[4]=ho,Cn[5]=Jn,Cn[6]=Ui,vn[0]=wi,vn[1]=uo,vn[2]=Hi,vn[3]=Yn,vn[4]=Wi,vn[5]=yo,vn[6]=Vi,G=1}else G=0}G&&(G=function(le,$e){for(le.M=0;le.M<le.Va;++le.M){var se,jt=le.Jc[le.M&le.Xb],At=le.m,ze=le;for(se=0;se<ze.za;++se){var re=At,he=ze,Ie=he.Ac,ar=he.Bc+4*se,gr=he.zc,Be=he.ya[he.aa+se];if(he.Qa.Bb?Be.$b=ft(re,he.Pa.jb[0])?2+ft(re,he.Pa.jb[2]):ft(re,he.Pa.jb[1]):Be.$b=0,he.kc&&(Be.Ad=ft(re,he.Bd)),Be.Za=!ft(re,145)+0,Be.Za){var lr=Be.Ob,mr=0;for(he=0;4>he;++he){var Qe,fe=gr[0+he];for(Qe=0;4>Qe;++Qe){fe=Iu[Ie[ar+Qe]][fe];for(var be=ps[ft(re,fe[0])];0<be;)be=ps[2*be+ft(re,fe[be])];fe=-be,Ie[ar+Qe]=fe}a(lr,mr,Ie,ar,4),mr+=4,gr[0+he]=fe}}else fe=ft(re,156)?ft(re,128)?1:3:ft(re,163)?2:0,Be.Ob[0]=fe,s(Ie,ar,fe,4),s(gr,0,fe,4);Be.Dd=ft(re,142)?ft(re,114)?ft(re,183)?1:3:2:0}if(ze.m.Ka)return Ge(le,7,"Premature end-of-partition0 encountered.");for(;le.ja<le.za;++le.ja){if(ze=jt,re=(At=le).rb[At.sb-1],Ie=At.rb[At.sb+At.ja],se=At.ya[At.aa+At.ja],ar=At.kc?se.Ad:0)re.la=Ie.la=0,se.Za||(re.Na=Ie.Na=0),se.Hc=0,se.Gc=0,se.ia=0;else{var Me,ye;if(re=Ie,Ie=ze,ar=At.Pa.Xc,gr=At.ya[At.aa+At.ja],Be=At.pb[gr.$b],he=gr.ad,lr=0,mr=At.rb[At.sb-1],fe=Qe=0,s(he,lr,0,384),gr.Za)var or=0,Wr=ar[3];else{be=u(16);var Ue=re.Na+mr.Na;if(Ue=aa(Ie,ar[1],Ue,Be.Eb,0,be,0),re.Na=mr.Na=(0<Ue)+0,1<Ue)In(be,0,he,lr);else{var yr=be[0]+3>>3;for(be=0;256>be;be+=16)he[lr+be]=yr}or=1,Wr=ar[0]}var xe=15&re.la,tr=15&mr.la;for(be=0;4>be;++be){var Sr=1&tr;for(yr=ye=0;4>yr;++yr)xe=xe>>1|(Sr=(Ue=aa(Ie,Wr,Ue=Sr+(1&xe),Be.Sc,or,he,lr))>or)<<7,ye=ye<<2|(3<Ue?3:1<Ue?2:he[lr+0]!=0),lr+=16;xe>>=4,tr=tr>>1|Sr<<7,Qe=(Qe<<8|ye)>>>0}for(Wr=xe,or=tr>>4,Me=0;4>Me;Me+=2){for(ye=0,xe=re.la>>4+Me,tr=mr.la>>4+Me,be=0;2>be;++be){for(Sr=1&tr,yr=0;2>yr;++yr)Ue=Sr+(1&xe),xe=xe>>1|(Sr=0<(Ue=aa(Ie,ar[2],Ue,Be.Qc,0,he,lr)))<<3,ye=ye<<2|(3<Ue?3:1<Ue?2:he[lr+0]!=0),lr+=16;xe>>=2,tr=tr>>1|Sr<<5}fe|=ye<<4*Me,Wr|=xe<<4<<Me,or|=(240&tr)<<Me}re.la=Wr,mr.la=or,gr.Hc=Qe,gr.Gc=fe,gr.ia=43690&fe?0:Be.ia,ar=!(Qe|fe)}if(0<At.L&&(At.wa[At.Y+At.ja]=At.gd[se.$b][se.Za],At.wa[At.Y+At.ja].La|=!ar),ze.Ka)return Ge(le,7,"Premature end-of-file encountered.")}if(Wn(le),At=$e,ze=1,se=(jt=le).D,re=0<jt.L&&jt.M>=jt.zb&&jt.M<=jt.Va,jt.Aa==0)e:{if(se.M=jt.M,se.uc=re,Mr(jt,se),ze=1,se=(ye=jt.D).Nb,re=(fe=qa[jt.L])*jt.R,Ie=fe/2*jt.B,be=16*se*jt.R,yr=8*se*jt.B,ar=jt.sa,gr=jt.ta-re+be,Be=jt.qa,he=jt.ra-Ie+yr,lr=jt.Ha,mr=jt.Ia-Ie+yr,tr=(xe=ye.M)==0,Qe=xe>=jt.Va-1,jt.Aa==2&&Mr(jt,ye),ye.uc)for(Sr=(Ue=jt).D.M,e(Ue.D.uc),ye=Ue.yb;ye<Ue.Hb;++ye){or=ye,Wr=Sr;var vr=(_r=(sr=Ue).D).Nb;Me=sr.R;var _r=_r.wa[_r.Y+or],Pr=sr.sa,wr=sr.ta+16*vr*Me+16*or,kr=_r.dd,Fe=_r.tc;if(Fe!=0)if(e(3<=Fe),sr.L==1)0<or&&ts(Pr,wr,Me,Fe+4),_r.La&&rs(Pr,wr,Me,Fe),0<Wr&&Qo(Pr,wr,Me,Fe+4),_r.La&&es(Pr,wr,Me,Fe);else{var Fr=sr.B,Vr=sr.qa,ci=sr.ra+8*vr*Fr+8*or,bn=sr.Ha,sr=sr.Ia+8*vr*Fr+8*or;vr=_r.ld,0<or&&(Ze(Pr,wr,Me,Fe+4,kr,vr),na(Vr,ci,bn,sr,Fr,Fe+4,kr,vr)),_r.La&&(ka(Pr,wr,Me,Fe,kr,vr),$o(Vr,ci,bn,sr,Fr,Fe,kr,vr)),0<Wr&&(Te(Pr,wr,Me,Fe+4,kr,vr),mn(Vr,ci,bn,sr,Fr,Fe+4,kr,vr)),_r.La&&(Si(Pr,wr,Me,Fe,kr,vr),Zo(Vr,ci,bn,sr,Fr,Fe,kr,vr))}}if(jt.ia&&alert("todo:DitherRow"),At.put!=null){if(ye=16*xe,xe=16*(xe+1),tr?(At.y=jt.sa,At.O=jt.ta+be,At.f=jt.qa,At.N=jt.ra+yr,At.ea=jt.Ha,At.W=jt.Ia+yr):(ye-=fe,At.y=ar,At.O=gr,At.f=Be,At.N=he,At.ea=lr,At.W=mr),Qe||(xe-=fe),xe>At.o&&(xe=At.o),At.F=null,At.J=null,jt.Fa!=null&&0<jt.Fa.length&&ye<xe&&(At.J=Je(jt,At,ye,xe-ye),At.F=jt.mb,At.F==null&&At.F.length==0)){ze=Ge(jt,3,"Could not decode alpha data.");break e}ye<At.j&&(fe=At.j-ye,ye=At.j,e(!(1&fe)),At.O+=jt.R*fe,At.N+=jt.B*(fe>>1),At.W+=jt.B*(fe>>1),At.F!=null&&(At.J+=At.width*fe)),ye<xe&&(At.O+=At.v,At.N+=At.v>>1,At.W+=At.v>>1,At.F!=null&&(At.J+=At.v),At.ka=ye-At.j,At.U=At.va-At.v,At.T=xe-ye,ze=At.put(At))}se+1!=jt.Ic||Qe||(a(jt.sa,jt.ta-re,ar,gr+16*jt.R,re),a(jt.qa,jt.ra-Ie,Be,he+8*jt.B,Ie),a(jt.Ha,jt.Ia-Ie,lr,mr+8*jt.B,Ie))}if(!ze)return Ge(le,6,"Output aborted.")}return 1}(_,U)),U.bc!=null&&U.bc(U),G&=1}return G?(_.cb=0,G):0})(t,f)||(r=t.a)}}else r=t.a}r==0&&y.Oa!=null&&y.Oa.fd&&(r=Zi(y.ba))}y=r}b=y!=0?null:11>b?L.f.RGBA.eb:L.f.kb.y}else b=null;return b};var As=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function v(J,mt){for(var x="",F=0;F<4;F++)x+=String.fromCharCode(J[mt++]);return x}function N(J,mt){return J[mt+0]|J[mt+1]<<8}function P(J,mt){return(J[mt+0]|J[mt+1]<<8|J[mt+2]<<16)>>>0}function M(J,mt){return(J[mt+0]|J[mt+1]<<8|J[mt+2]<<16|J[mt+3]<<24)>>>0}new h;var p=[0],z=[0],O=[],T=new h,I=n,Z=function(J,mt){var x={},F=0,R=!1,D=0,it=0;if(x.frames=[],!function(w,C){for(var B=0;B<4;B++)if(w[C+B]!="RIFF".charCodeAt(B))return!0;return!1}(J,mt)){for(M(J,mt+=4),mt+=8;mt<J.length;){var lt=v(J,mt),dt=M(J,mt+=4);mt+=4;var $=dt+(1&dt);switch(lt){case"VP8 ":case"VP8L":x.frames[F]===void 0&&(x.frames[F]={}),(bt=x.frames[F]).src_off=R?it:mt-8,bt.src_size=D+dt+8,F++,R&&(R=!1,D=0,it=0);break;case"VP8X":(bt=x.header={}).feature_flags=J[mt];var ht=mt+4;bt.canvas_width=1+P(J,ht),ht+=3,bt.canvas_height=1+P(J,ht),ht+=3;break;case"ALPH":R=!0,D=$+8,it=mt-8;break;case"ANIM":(bt=x.header).bgcolor=M(J,mt),ht=mt+4,bt.loop_count=N(J,ht),ht+=2;break;case"ANMF":var Nt,bt;(bt=x.frames[F]={}).offset_x=2*P(J,mt),mt+=3,bt.offset_y=2*P(J,mt),mt+=3,bt.width=1+P(J,mt),mt+=3,bt.height=1+P(J,mt),mt+=3,bt.duration=P(J,mt),mt+=3,Nt=J[mt++],bt.dispose=1&Nt,bt.blend=Nt>>1&1}lt!="ANMF"&&(mt+=$)}return x}}(I,0);Z.response=I,Z.rgbaoutput=!0,Z.dataurl=!1;var Q=Z.header?Z.header:null,rt=Z.frames?Z.frames:null;if(Q){Q.loop_counter=Q.loop_count,p=[Q.canvas_height],z=[Q.canvas_width];for(var Lt=0;Lt<rt.length&&rt[Lt].blend!=0;Lt++);}var xt=rt[0],Ut=T.WebPDecodeRGBA(I,xt.src_off,xt.src_size,z,p);xt.rgba=Ut,xt.imgwidth=z[0],xt.imgheight=p[0];for(var ut=0;ut<z[0]*p[0]*4;ut++)O[ut]=Ut[ut];return this.width=z,this.height=p,this.data=O,this}(function(n){var e,i,a,s,u,d,l,h,v,N=function(w){return w=w||{},this.isStrokeTransparent=w.isStrokeTransparent||!1,this.strokeOpacity=w.strokeOpacity||1,this.strokeStyle=w.strokeStyle||"#000000",this.fillStyle=w.fillStyle||"#000000",this.isFillTransparent=w.isFillTransparent||!1,this.fillOpacity=w.fillOpacity||1,this.font=w.font||"10px sans-serif",this.textBaseline=w.textBaseline||"alphabetic",this.textAlign=w.textAlign||"left",this.lineWidth=w.lineWidth||1,this.lineJoin=w.lineJoin||"miter",this.lineCap=w.lineCap||"butt",this.path=w.path||[],this.transform=w.transform!==void 0?w.transform.clone():new h,this.globalCompositeOperation=w.globalCompositeOperation||"normal",this.globalAlpha=w.globalAlpha||1,this.clip_path=w.clip_path||[],this.currentPoint=w.currentPoint||new d,this.miterLimit=w.miterLimit||10,this.lastPoint=w.lastPoint||new d,this.lineDashOffset=w.lineDashOffset||0,this.lineDash=w.lineDash||[],this.margin=w.margin||[0,0,0,0],this.prevPageLastElemOffset=w.prevPageLastElemOffset||0,this.ignoreClearRect=typeof w.ignoreClearRect!="boolean"||w.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new P(this),e=this.internal.f2,i=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,s=this.internal.getHorizontalCoordinate,u=this.internal.getVerticalCoordinate,d=this.internal.Point,l=this.internal.Rectangle,h=this.internal.Matrix,v=new N}]);var P=function(w){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var C=w;Object.defineProperty(this,"pdf",{get:function(){return C}});var B=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return B},set:function(at){B=!!at}});var H=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return H},set:function(at){H=!!at}});var V=0;Object.defineProperty(this,"posX",{get:function(){return V},set:function(at){isNaN(at)||(V=at)}});var K=0;Object.defineProperty(this,"posY",{get:function(){return K},set:function(at){isNaN(at)||(K=at)}}),Object.defineProperty(this,"margin",{get:function(){return v.margin},set:function(at){var j;typeof at=="number"?j=[at,at,at,at]:((j=new Array(4))[0]=at[0],j[1]=at.length>=2?at[1]:j[0],j[2]=at.length>=3?at[2]:j[0],j[3]=at.length>=4?at[3]:j[1]),v.margin=j}});var et=!1;Object.defineProperty(this,"autoPaging",{get:function(){return et},set:function(at){et=at}});var tt=0;Object.defineProperty(this,"lastBreak",{get:function(){return tt},set:function(at){tt=at}});var ft=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ft},set:function(at){ft=at}}),Object.defineProperty(this,"ctx",{get:function(){return v},set:function(at){at instanceof N&&(v=at)}}),Object.defineProperty(this,"path",{get:function(){return v.path},set:function(at){v.path=at}});var wt=[];Object.defineProperty(this,"ctxStack",{get:function(){return wt},set:function(at){wt=at}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(at){var j;j=M(at),this.ctx.fillStyle=j.style,this.ctx.isFillTransparent=j.a===0,this.ctx.fillOpacity=j.a,this.pdf.setFillColor(j.r,j.g,j.b,{a:j.a}),this.pdf.setTextColor(j.r,j.g,j.b,{a:j.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(at){var j=M(at);this.ctx.strokeStyle=j.style,this.ctx.isStrokeTransparent=j.a===0,this.ctx.strokeOpacity=j.a,j.a===0?this.pdf.setDrawColor(255,255,255):(j.a,this.pdf.setDrawColor(j.r,j.g,j.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(at){["butt","round","square"].indexOf(at)!==-1&&(this.ctx.lineCap=at,this.pdf.setLineCap(at))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(at){isNaN(at)||(this.ctx.lineWidth=at,this.pdf.setLineWidth(at))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(at){["bevel","round","miter"].indexOf(at)!==-1&&(this.ctx.lineJoin=at,this.pdf.setLineJoin(at))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(at){isNaN(at)||(this.ctx.miterLimit=at,this.pdf.setMiterLimit(at))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(at){this.ctx.textBaseline=at}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(at){["right","end","center","left","start"].indexOf(at)!==-1&&(this.ctx.textAlign=at)}});var _t=null,Pt=null;Object.defineProperty(this,"fontFaces",{get:function(){return Pt},set:function(at){_t=null,Pt=at}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(at){var j;if(this.ctx.font=at,(j=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(at))!==null){var ue=j[1];j[2];var ne=j[3],zt=j[4];j[5];var yt=j[6],Et=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(zt)[2];zt=Math.floor(Et==="px"?parseFloat(zt)*this.pdf.internal.scaleFactor:Et==="em"?parseFloat(zt)*this.pdf.getFontSize():parseFloat(zt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(zt);var St=function(Vt){var Dt,Pe,pe=[],Bt=Vt.trim();if(Bt==="")return Uo;if(Bt in Ws)return[Ws[Bt]];for(;Bt!=="";){switch(Pe=null,Dt=(Bt=Gs(Bt)).charAt(0)){case'"':case"'":Pe=Lc(Bt.substring(1),Dt);break;default:Pe=Nc(Bt)}if(Pe===null||(pe.push(Pe[0]),(Bt=Gs(Pe[1]))!==""&&Bt.charAt(0)!==","))return Uo;Bt=Bt.replace(/^,/,"")}return pe}(yt);if(this.fontFaces){var ie=function(Vt,Dt){if(_t===null){var Pe=function(pe){var Bt=[];return Object.keys(pe).forEach(function(te){pe[te].forEach(function(Le){var Ht=null;switch(Le){case"bold":Ht={family:te,weight:"bold"};break;case"italic":Ht={family:te,style:"italic"};break;case"bolditalic":Ht={family:te,weight:"bold",style:"italic"};break;case"":case"normal":Ht={family:te}}Ht!==null&&(Ht.ref={name:te,style:Le},Bt.push(Ht))})}),Bt}(Vt.getFontList());_t=function(pe){for(var Bt={},te=0;te<pe.length;++te){var Le=zo(pe[te]),Ht=Le.family,ce=Le.stretch,ee=Le.style,qe=Le.weight;Bt[Ht]=Bt[Ht]||{},Bt[Ht][ce]=Bt[Ht][ce]||{},Bt[Ht][ce][ee]=Bt[Ht][ce][ee]||{},Bt[Ht][ce][ee][qe]=Le}return Bt}(Pe.concat(Dt))}return _t}(this.pdf,this.fontFaces),Tt=St.map(function(Vt){return{family:Vt,stretch:"normal",weight:ne,style:ue}}),de=function(Vt,Dt,Pe){for(var pe=(Pe=Pe||{}).defaultFontFamily||"times",Bt=Object.assign({},wc,Pe.genericFontFamilies||{}),te=null,Le=null,Ht=0;Ht<Dt.length;++Ht)if(Bt[(te=zo(Dt[Ht])).family]&&(te.family=Bt[te.family]),Vt.hasOwnProperty(te.family)){Le=Vt[te.family];break}if(!(Le=Le||Vt[pe]))throw new Error("Could not find a font-family for the rule '"+Vs(te)+"' and default family '"+pe+"'.");if(Le=function(ce,ee){if(ee[ce])return ee[ce];var qe=Xo[ce],Xe=qe<=Xo.normal?-1:1,Ne=Hs(ee,gu,qe,Xe);if(!Ne)throw new Error("Could not find a matching font-stretch value for "+ce);return Ne}(te.stretch,Le),Le=function(ce,ee){if(ee[ce])return ee[ce];for(var qe=pu[ce],Xe=0;Xe<qe.length;++Xe)if(ee[qe[Xe]])return ee[qe[Xe]];throw new Error("Could not find a matching font-style for "+ce)}(te.style,Le),!(Le=function(ce,ee){if(ee[ce])return ee[ce];if(ce===400&&ee[500])return ee[500];if(ce===500&&ee[400])return ee[400];var qe=yc[ce],Xe=Hs(ee,mu,qe,ce<400?-1:1);if(!Xe)throw new Error("Could not find a matching font-weight for value "+ce);return Xe}(te.weight,Le)))throw new Error("Failed to resolve a font for the rule '"+Vs(te)+"'.");return Le}(ie,Tt);this.pdf.setFont(de.ref.name,de.ref.style)}else{var $t="";(ne==="bold"||parseInt(ne,10)>=700||ue==="bold")&&($t="bold"),ue==="italic"&&($t+="italic"),$t.length===0&&($t="normal");for(var Qt="",we={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ae=0;ae<St.length;ae++){if(this.pdf.internal.getFont(St[ae],$t,{noFallback:!0,disableWarning:!0})!==void 0){Qt=St[ae];break}if($t==="bolditalic"&&this.pdf.internal.getFont(St[ae],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Qt=St[ae],$t="bold";else if(this.pdf.internal.getFont(St[ae],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Qt=St[ae],$t="normal";break}}if(Qt===""){for(var Rt=0;Rt<St.length;Rt++)if(we[St[Rt]]){Qt=we[St[Rt]];break}}Qt=Qt===""?"Times":Qt,this.pdf.setFont(Qt,$t)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(at){this.ctx.globalCompositeOperation=at}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(at){this.ctx.globalAlpha=at}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(at){this.ctx.lineDashOffset=at,bt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(at){this.ctx.lineDash=at,bt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(at){this.ctx.ignoreClearRect=!!at}})};P.prototype.setLineDash=function(w){this.lineDash=w},P.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},P.prototype.fill=function(){rt.call(this,"fill",!1)},P.prototype.stroke=function(){rt.call(this,"stroke",!1)},P.prototype.beginPath=function(){this.path=[{type:"begin"}]},P.prototype.moveTo=function(w,C){if(isNaN(w)||isNaN(C))throw Se.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var B=this.ctx.transform.applyToPoint(new d(w,C));this.path.push({type:"mt",x:B.x,y:B.y}),this.ctx.lastPoint=new d(w,C)},P.prototype.closePath=function(){var w=new d(0,0),C=0;for(C=this.path.length-1;C!==-1;C--)if(this.path[C].type==="begin"&&_e(this.path[C+1])==="object"&&typeof this.path[C+1].x=="number"){w=new d(this.path[C+1].x,this.path[C+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new d(w.x,w.y)},P.prototype.lineTo=function(w,C){if(isNaN(w)||isNaN(C))throw Se.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var B=this.ctx.transform.applyToPoint(new d(w,C));this.path.push({type:"lt",x:B.x,y:B.y}),this.ctx.lastPoint=new d(B.x,B.y)},P.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),rt.call(this,null,!0)},P.prototype.quadraticCurveTo=function(w,C,B,H){if(isNaN(B)||isNaN(H)||isNaN(w)||isNaN(C))throw Se.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var V=this.ctx.transform.applyToPoint(new d(B,H)),K=this.ctx.transform.applyToPoint(new d(w,C));this.path.push({type:"qct",x1:K.x,y1:K.y,x:V.x,y:V.y}),this.ctx.lastPoint=new d(V.x,V.y)},P.prototype.bezierCurveTo=function(w,C,B,H,V,K){if(isNaN(V)||isNaN(K)||isNaN(w)||isNaN(C)||isNaN(B)||isNaN(H))throw Se.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var et=this.ctx.transform.applyToPoint(new d(V,K)),tt=this.ctx.transform.applyToPoint(new d(w,C)),ft=this.ctx.transform.applyToPoint(new d(B,H));this.path.push({type:"bct",x1:tt.x,y1:tt.y,x2:ft.x,y2:ft.y,x:et.x,y:et.y}),this.ctx.lastPoint=new d(et.x,et.y)},P.prototype.arc=function(w,C,B,H,V,K){if(isNaN(w)||isNaN(C)||isNaN(B)||isNaN(H)||isNaN(V))throw Se.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(K=!!K,!this.ctx.transform.isIdentity){var et=this.ctx.transform.applyToPoint(new d(w,C));w=et.x,C=et.y;var tt=this.ctx.transform.applyToPoint(new d(0,B)),ft=this.ctx.transform.applyToPoint(new d(0,0));B=Math.sqrt(Math.pow(tt.x-ft.x,2)+Math.pow(tt.y-ft.y,2))}Math.abs(V-H)>=2*Math.PI&&(H=0,V=2*Math.PI),this.path.push({type:"arc",x:w,y:C,radius:B,startAngle:H,endAngle:V,counterclockwise:K})},P.prototype.arcTo=function(w,C,B,H,V){throw new Error("arcTo not implemented.")},P.prototype.rect=function(w,C,B,H){if(isNaN(w)||isNaN(C)||isNaN(B)||isNaN(H))throw Se.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(w,C),this.lineTo(w+B,C),this.lineTo(w+B,C+H),this.lineTo(w,C+H),this.lineTo(w,C),this.lineTo(w+B,C),this.lineTo(w,C)},P.prototype.fillRect=function(w,C,B,H){if(isNaN(w)||isNaN(C)||isNaN(B)||isNaN(H))throw Se.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var V={};this.lineCap!=="butt"&&(V.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(V.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(w,C,B,H),this.fill(),V.hasOwnProperty("lineCap")&&(this.lineCap=V.lineCap),V.hasOwnProperty("lineJoin")&&(this.lineJoin=V.lineJoin)}},P.prototype.strokeRect=function(w,C,B,H){if(isNaN(w)||isNaN(C)||isNaN(B)||isNaN(H))throw Se.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");z.call(this)||(this.beginPath(),this.rect(w,C,B,H),this.stroke())},P.prototype.clearRect=function(w,C,B,H){if(isNaN(w)||isNaN(C)||isNaN(B)||isNaN(H))throw Se.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(w,C,B,H))},P.prototype.save=function(w){w=typeof w!="boolean"||w;for(var C=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("q");if(this.pdf.setPage(C),w){this.ctx.fontSize=this.pdf.internal.getFontSize();var H=new N(this.ctx);this.ctxStack.push(this.ctx),this.ctx=H}},P.prototype.restore=function(w){w=typeof w!="boolean"||w;for(var C=this.pdf.internal.getCurrentPageInfo().pageNumber,B=0;B<this.pdf.internal.getNumberOfPages();B++)this.pdf.setPage(B+1),this.pdf.internal.out("Q");this.pdf.setPage(C),w&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},P.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var M=function(w){var C,B,H,V;if(w.isCanvasGradient===!0&&(w=w.getColor()),!w)return{r:0,g:0,b:0,a:0,style:w};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(w))C=0,B=0,H=0,V=0;else{var K=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(w);if(K!==null)C=parseInt(K[1]),B=parseInt(K[2]),H=parseInt(K[3]),V=1;else if((K=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(w))!==null)C=parseInt(K[1]),B=parseInt(K[2]),H=parseInt(K[3]),V=parseFloat(K[4]);else{if(V=1,typeof w=="string"&&w.charAt(0)!=="#"){var et=new su(w);w=et.ok?et.toHex():"#000000"}w.length===4?(C=w.substring(1,2),C+=C,B=w.substring(2,3),B+=B,H=w.substring(3,4),H+=H):(C=w.substring(1,3),B=w.substring(3,5),H=w.substring(5,7)),C=parseInt(C,16),B=parseInt(B,16),H=parseInt(H,16)}}return{r:C,g:B,b:H,a:V,style:w}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},z=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};P.prototype.fillText=function(w,C,B,H){if(isNaN(C)||isNaN(B)||typeof w!="string")throw Se.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(H=isNaN(H)?void 0:H,!p.call(this)){var V=$(this.ctx.transform.rotation),K=this.ctx.transform.scaleX;F.call(this,{text:w,x:C,y:B,scale:K,angle:V,align:this.textAlign,maxWidth:H})}},P.prototype.strokeText=function(w,C,B,H){if(isNaN(C)||isNaN(B)||typeof w!="string")throw Se.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!z.call(this)){H=isNaN(H)?void 0:H;var V=$(this.ctx.transform.rotation),K=this.ctx.transform.scaleX;F.call(this,{text:w,x:C,y:B,scale:K,renderingMode:"stroke",angle:V,align:this.textAlign,maxWidth:H})}},P.prototype.measureText=function(w){if(typeof w!="string")throw Se.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var C=this.pdf,B=this.pdf.internal.scaleFactor,H=C.internal.getFontSize(),V=C.getStringUnitWidth(w)*H/C.internal.scaleFactor;return new function(K){var et=(K=K||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return et}}),this}({width:V*=Math.round(96*B/72*1e4)/1e4})},P.prototype.scale=function(w,C){if(isNaN(w)||isNaN(C))throw Se.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var B=new h(w,0,0,C,0,0);this.ctx.transform=this.ctx.transform.multiply(B)},P.prototype.rotate=function(w){if(isNaN(w))throw Se.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var C=new h(Math.cos(w),Math.sin(w),-Math.sin(w),Math.cos(w),0,0);this.ctx.transform=this.ctx.transform.multiply(C)},P.prototype.translate=function(w,C){if(isNaN(w)||isNaN(C))throw Se.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var B=new h(1,0,0,1,w,C);this.ctx.transform=this.ctx.transform.multiply(B)},P.prototype.transform=function(w,C,B,H,V,K){if(isNaN(w)||isNaN(C)||isNaN(B)||isNaN(H)||isNaN(V)||isNaN(K))throw Se.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var et=new h(w,C,B,H,V,K);this.ctx.transform=this.ctx.transform.multiply(et)},P.prototype.setTransform=function(w,C,B,H,V,K){w=isNaN(w)?1:w,C=isNaN(C)?0:C,B=isNaN(B)?0:B,H=isNaN(H)?1:H,V=isNaN(V)?0:V,K=isNaN(K)?0:K,this.ctx.transform=new h(w,C,B,H,V,K)};var O=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};P.prototype.drawImage=function(w,C,B,H,V,K,et,tt,ft){var wt=this.pdf.getImageProperties(w),_t=1,Pt=1,at=1,j=1;H!==void 0&&tt!==void 0&&(at=tt/H,j=ft/V,_t=wt.width/H*tt/H,Pt=wt.height/V*ft/V),K===void 0&&(K=C,et=B,C=0,B=0),H!==void 0&&tt===void 0&&(tt=H,ft=V),H===void 0&&tt===void 0&&(tt=wt.width,ft=wt.height);for(var ue,ne=this.ctx.transform.decompose(),zt=$(ne.rotate.shx),yt=new h,Et=(yt=(yt=(yt=yt.multiply(ne.translate)).multiply(ne.skew)).multiply(ne.scale)).applyToRectangle(new l(K-C*at,et-B*j,H*_t,V*Pt)),St=T.call(this,Et),ie=[],Tt=0;Tt<St.length;Tt+=1)ie.indexOf(St[Tt])===-1&&ie.push(St[Tt]);if(Q(ie),this.autoPaging)for(var de=ie[0],$t=ie[ie.length-1],Qt=de;Qt<$t+1;Qt++){this.pdf.setPage(Qt);var we=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ae=Qt===1?this.posY+this.margin[0]:this.margin[0],Rt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Vt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Dt=Qt===1?0:Rt+(Qt-2)*Vt;if(this.ctx.clip_path.length!==0){var Pe=this.path;ue=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Z(ue,this.posX+this.margin[3],-Dt+ae+this.ctx.prevPageLastElemOffset),Lt.call(this,"fill",!0),this.path=Pe}var pe=JSON.parse(JSON.stringify(Et));pe=Z([pe],this.posX+this.margin[3],-Dt+ae+this.ctx.prevPageLastElemOffset)[0];var Bt=(Qt>de||Qt<$t)&&O.call(this);Bt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],we,Vt,null).clip().discardPath()),this.pdf.addImage(w,"JPEG",pe.x,pe.y,pe.w,pe.h,null,null,zt),Bt&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(w,"JPEG",Et.x,Et.y,Et.w,Et.h,null,null,zt)};var T=function(w,C,B){var H=[];C=C||this.pdf.internal.pageSize.width,B=B||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var V=this.posY+this.ctx.prevPageLastElemOffset;switch(w.type){default:case"mt":case"lt":H.push(Math.floor((w.y+V)/B)+1);break;case"arc":H.push(Math.floor((w.y+V-w.radius)/B)+1),H.push(Math.floor((w.y+V+w.radius)/B)+1);break;case"qct":var K=ht(this.ctx.lastPoint.x,this.ctx.lastPoint.y,w.x1,w.y1,w.x,w.y);H.push(Math.floor((K.y+V)/B)+1),H.push(Math.floor((K.y+K.h+V)/B)+1);break;case"bct":var et=Nt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,w.x1,w.y1,w.x2,w.y2,w.x,w.y);H.push(Math.floor((et.y+V)/B)+1),H.push(Math.floor((et.y+et.h+V)/B)+1);break;case"rect":H.push(Math.floor((w.y+V)/B)+1),H.push(Math.floor((w.y+w.h+V)/B)+1)}for(var tt=0;tt<H.length;tt+=1)for(;this.pdf.internal.getNumberOfPages()<H[tt];)I.call(this);return H},I=function(){var w=this.fillStyle,C=this.strokeStyle,B=this.font,H=this.lineCap,V=this.lineWidth,K=this.lineJoin;this.pdf.addPage(),this.fillStyle=w,this.strokeStyle=C,this.font=B,this.lineCap=H,this.lineWidth=V,this.lineJoin=K},Z=function(w,C,B){for(var H=0;H<w.length;H++)switch(w[H].type){case"bct":w[H].x2+=C,w[H].y2+=B;case"qct":w[H].x1+=C,w[H].y1+=B;default:w[H].x+=C,w[H].y+=B}return w},Q=function(w){return w.sort(function(C,B){return C-B})},rt=function(w,C){for(var B,H,V=this.fillStyle,K=this.strokeStyle,et=this.lineCap,tt=this.lineWidth,ft=Math.abs(tt*this.ctx.transform.scaleX),wt=this.lineJoin,_t=JSON.parse(JSON.stringify(this.path)),Pt=JSON.parse(JSON.stringify(this.path)),at=[],j=0;j<Pt.length;j++)if(Pt[j].x!==void 0)for(var ue=T.call(this,Pt[j]),ne=0;ne<ue.length;ne+=1)at.indexOf(ue[ne])===-1&&at.push(ue[ne]);for(var zt=0;zt<at.length;zt++)for(;this.pdf.internal.getNumberOfPages()<at[zt];)I.call(this);if(Q(at),this.autoPaging)for(var yt=at[0],Et=at[at.length-1],St=yt;St<Et+1;St++){this.pdf.setPage(St),this.fillStyle=V,this.strokeStyle=K,this.lineCap=et,this.lineWidth=ft,this.lineJoin=wt;var ie=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Tt=St===1?this.posY+this.margin[0]:this.margin[0],de=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],$t=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Qt=St===1?0:de+(St-2)*$t;if(this.ctx.clip_path.length!==0){var we=this.path;B=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Z(B,this.posX+this.margin[3],-Qt+Tt+this.ctx.prevPageLastElemOffset),Lt.call(this,w,!0),this.path=we}if(H=JSON.parse(JSON.stringify(_t)),this.path=Z(H,this.posX+this.margin[3],-Qt+Tt+this.ctx.prevPageLastElemOffset),C===!1||St===0){var ae=(St>yt||St<Et)&&O.call(this);ae&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ie,$t,null).clip().discardPath()),Lt.call(this,w,C),ae&&this.pdf.restoreGraphicsState()}this.lineWidth=tt}else this.lineWidth=ft,Lt.call(this,w,C),this.lineWidth=tt;this.path=_t},Lt=function(w,C){if((w!=="stroke"||C||!z.call(this))&&(w==="stroke"||C||!p.call(this))){for(var B,H,V=[],K=this.path,et=0;et<K.length;et++){var tt=K[et];switch(tt.type){case"begin":V.push({begin:!0});break;case"close":V.push({close:!0});break;case"mt":V.push({start:tt,deltas:[],abs:[]});break;case"lt":var ft=V.length;if(K[et-1]&&!isNaN(K[et-1].x)&&(B=[tt.x-K[et-1].x,tt.y-K[et-1].y],ft>0)){for(;ft>=0;ft--)if(V[ft-1].close!==!0&&V[ft-1].begin!==!0){V[ft-1].deltas.push(B),V[ft-1].abs.push(tt);break}}break;case"bct":B=[tt.x1-K[et-1].x,tt.y1-K[et-1].y,tt.x2-K[et-1].x,tt.y2-K[et-1].y,tt.x-K[et-1].x,tt.y-K[et-1].y],V[V.length-1].deltas.push(B);break;case"qct":var wt=K[et-1].x+2/3*(tt.x1-K[et-1].x),_t=K[et-1].y+2/3*(tt.y1-K[et-1].y),Pt=tt.x+2/3*(tt.x1-tt.x),at=tt.y+2/3*(tt.y1-tt.y),j=tt.x,ue=tt.y;B=[wt-K[et-1].x,_t-K[et-1].y,Pt-K[et-1].x,at-K[et-1].y,j-K[et-1].x,ue-K[et-1].y],V[V.length-1].deltas.push(B);break;case"arc":V.push({deltas:[],abs:[],arc:!0}),Array.isArray(V[V.length-1].abs)&&V[V.length-1].abs.push(tt)}}H=C?null:w==="stroke"?"stroke":"fill";for(var ne=!1,zt=0;zt<V.length;zt++)if(V[zt].arc)for(var yt=V[zt].abs,Et=0;Et<yt.length;Et++){var St=yt[Et];St.type==="arc"?ut.call(this,St.x,St.y,St.radius,St.startAngle,St.endAngle,St.counterclockwise,void 0,C,!ne):R.call(this,St.x,St.y),ne=!0}else if(V[zt].close===!0)this.pdf.internal.out("h"),ne=!1;else if(V[zt].begin!==!0){var ie=V[zt].start.x,Tt=V[zt].start.y;D.call(this,V[zt].deltas,ie,Tt),ne=!0}H&&J.call(this,H),C&&mt.call(this)}},xt=function(w){var C=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,B=C*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return w-B;case"top":return w+C-B;case"hanging":return w+C-2*B;case"middle":return w+C/2-B;default:return w}},Ut=function(w){return w+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};P.prototype.createLinearGradient=function(){var w=function(){};return w.colorStops=[],w.addColorStop=function(C,B){this.colorStops.push([C,B])},w.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},w.isCanvasGradient=!0,w},P.prototype.createPattern=function(){return this.createLinearGradient()},P.prototype.createRadialGradient=function(){return this.createLinearGradient()};var ut=function(w,C,B,H,V,K,et,tt,ft){for(var wt=lt.call(this,B,H,V,K),_t=0;_t<wt.length;_t++){var Pt=wt[_t];_t===0&&(ft?x.call(this,Pt.x1+w,Pt.y1+C):R.call(this,Pt.x1+w,Pt.y1+C)),it.call(this,w,C,Pt.x2,Pt.y2,Pt.x3,Pt.y3,Pt.x4,Pt.y4)}tt?mt.call(this):J.call(this,et)},J=function(w){switch(w){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},mt=function(){this.pdf.clip(),this.pdf.discardPath()},x=function(w,C){this.pdf.internal.out(i(w)+" "+a(C)+" m")},F=function(w){var C;switch(w.align){case"right":case"end":C="right";break;case"center":C="center";break;default:C="left"}var B=this.pdf.getTextDimensions(w.text),H=xt.call(this,w.y),V=Ut.call(this,H)-B.h,K=this.ctx.transform.applyToPoint(new d(w.x,H)),et=this.ctx.transform.decompose(),tt=new h;tt=(tt=(tt=tt.multiply(et.translate)).multiply(et.skew)).multiply(et.scale);for(var ft,wt,_t,Pt=this.ctx.transform.applyToRectangle(new l(w.x,H,B.w,B.h)),at=tt.applyToRectangle(new l(w.x,V,B.w,B.h)),j=T.call(this,at),ue=[],ne=0;ne<j.length;ne+=1)ue.indexOf(j[ne])===-1&&ue.push(j[ne]);if(Q(ue),this.autoPaging)for(var zt=ue[0],yt=ue[ue.length-1],Et=zt;Et<yt+1;Et++){this.pdf.setPage(Et);var St=Et===1?this.posY+this.margin[0]:this.margin[0],ie=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Tt=this.pdf.internal.pageSize.height-this.margin[2],de=Tt-this.margin[0],$t=this.pdf.internal.pageSize.width-this.margin[1],Qt=$t-this.margin[3],we=Et===1?0:ie+(Et-2)*de;if(this.ctx.clip_path.length!==0){var ae=this.path;ft=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Z(ft,this.posX+this.margin[3],-1*we+St),Lt.call(this,"fill",!0),this.path=ae}var Rt=Z([JSON.parse(JSON.stringify(at))],this.posX+this.margin[3],-we+St+this.ctx.prevPageLastElemOffset)[0];w.scale>=.01&&(wt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(wt*w.scale),_t=this.lineWidth,this.lineWidth=_t*w.scale);var Vt=this.autoPaging!=="text";if(Vt||Rt.y+Rt.h<=Tt){if(Vt||Rt.y>=St&&Rt.x<=$t){var Dt=Vt?w.text:this.pdf.splitTextToSize(w.text,w.maxWidth||$t-Rt.x)[0],Pe=Z([JSON.parse(JSON.stringify(Pt))],this.posX+this.margin[3],-we+St+this.ctx.prevPageLastElemOffset)[0],pe=Vt&&(Et>zt||Et<yt)&&O.call(this);pe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Qt,de,null).clip().discardPath()),this.pdf.text(Dt,Pe.x,Pe.y,{angle:w.angle,align:C,renderingMode:w.renderingMode}),pe&&this.pdf.restoreGraphicsState()}}else Rt.y<Tt&&(this.ctx.prevPageLastElemOffset+=Tt-Rt.y);w.scale>=.01&&(this.pdf.setFontSize(wt),this.lineWidth=_t)}else w.scale>=.01&&(wt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(wt*w.scale),_t=this.lineWidth,this.lineWidth=_t*w.scale),this.pdf.text(w.text,K.x+this.posX,K.y+this.posY,{angle:w.angle,align:C,renderingMode:w.renderingMode,maxWidth:w.maxWidth}),w.scale>=.01&&(this.pdf.setFontSize(wt),this.lineWidth=_t)},R=function(w,C,B,H){B=B||0,H=H||0,this.pdf.internal.out(i(w+B)+" "+a(C+H)+" l")},D=function(w,C,B){return this.pdf.lines(w,C,B,null,null)},it=function(w,C,B,H,V,K,et,tt){this.pdf.internal.out([e(s(B+w)),e(u(H+C)),e(s(V+w)),e(u(K+C)),e(s(et+w)),e(u(tt+C)),"c"].join(" "))},lt=function(w,C,B,H){for(var V=2*Math.PI,K=Math.PI/2;C>B;)C-=V;var et=Math.abs(B-C);et<V&&H&&(et=V-et);for(var tt=[],ft=H?-1:1,wt=C;et>1e-5;){var _t=wt+ft*Math.min(et,K);tt.push(dt.call(this,w,wt,_t)),et-=Math.abs(_t-wt),wt=_t}return tt},dt=function(w,C,B){var H=(B-C)/2,V=w*Math.cos(H),K=w*Math.sin(H),et=V,tt=-K,ft=et*et+tt*tt,wt=ft+et*V+tt*K,_t=4/3*(Math.sqrt(2*ft*wt)-wt)/(et*K-tt*V),Pt=et-_t*tt,at=tt+_t*et,j=Pt,ue=-at,ne=H+C,zt=Math.cos(ne),yt=Math.sin(ne);return{x1:w*Math.cos(C),y1:w*Math.sin(C),x2:Pt*zt-at*yt,y2:Pt*yt+at*zt,x3:j*zt-ue*yt,y3:j*yt+ue*zt,x4:w*Math.cos(B),y4:w*Math.sin(B)}},$=function(w){return 180*w/Math.PI},ht=function(w,C,B,H,V,K){var et=w+.5*(B-w),tt=C+.5*(H-C),ft=V+.5*(B-V),wt=K+.5*(H-K),_t=Math.min(w,V,et,ft),Pt=Math.max(w,V,et,ft),at=Math.min(C,K,tt,wt),j=Math.max(C,K,tt,wt);return new l(_t,at,Pt-_t,j-at)},Nt=function(w,C,B,H,V,K,et,tt){var ft,wt,_t,Pt,at,j,ue,ne,zt,yt,Et,St,ie,Tt,de=B-w,$t=H-C,Qt=V-B,we=K-H,ae=et-V,Rt=tt-K;for(wt=0;wt<41;wt++)zt=(ue=(_t=w+(ft=wt/40)*de)+ft*((at=B+ft*Qt)-_t))+ft*(at+ft*(V+ft*ae-at)-ue),yt=(ne=(Pt=C+ft*$t)+ft*((j=H+ft*we)-Pt))+ft*(j+ft*(K+ft*Rt-j)-ne),wt==0?(Et=zt,St=yt,ie=zt,Tt=yt):(Et=Math.min(Et,zt),St=Math.min(St,yt),ie=Math.max(ie,zt),Tt=Math.max(Tt,yt));return new l(Math.round(Et),Math.round(St),Math.round(ie-Et),Math.round(Tt-St))},bt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var w,C,B=(w=this.ctx.lineDash,C=this.ctx.lineDashOffset,JSON.stringify({lineDash:w,lineDashOffset:C}));this.prevLineDash!==B&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=B)}}})(qt.API),function(n){var e=function(d){var l,h,v,N,P,M,p,z,O,T;for(h=[],v=0,N=(d+=l="\0\0\0\0".slice(d.length%4||4)).length;N>v;v+=4)(P=(d.charCodeAt(v)<<24)+(d.charCodeAt(v+1)<<16)+(d.charCodeAt(v+2)<<8)+d.charCodeAt(v+3))!==0?(M=(P=((P=((P=((P=(P-(T=P%85))/85)-(O=P%85))/85)-(z=P%85))/85)-(p=P%85))/85)%85,h.push(M+33,p+33,z+33,O+33,T+33)):h.push(122);return function(I,Z){for(var Q=Z;Q>0;Q--)I.pop()}(h,l.length),String.fromCharCode.apply(String,h)+"~>"},i=function(d){var l,h,v,N,P,M=String,p="length",z=255,O="charCodeAt",T="slice",I="replace";for(d[T](-2),d=d[T](0,-2)[I](/\s/g,"")[I]("z","!!!!!"),v=[],N=0,P=(d+=l="uuuuu"[T](d[p]%5||5))[p];P>N;N+=5)h=52200625*(d[O](N)-33)+614125*(d[O](N+1)-33)+7225*(d[O](N+2)-33)+85*(d[O](N+3)-33)+(d[O](N+4)-33),v.push(z&h>>24,z&h>>16,z&h>>8,z&h);return function(Z,Q){for(var rt=Q;rt>0;rt--)Z.pop()}(v,l[p]),M.fromCharCode.apply(M,v)},a=function(d){return d.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},s=function(d){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((d=d.replace(/\s/g,"")).indexOf(">")!==-1&&(d=d.substr(0,d.indexOf(">"))),d.length%2&&(d+="0"),l.test(d)===!1)return"";for(var h="",v=0;v<d.length;v+=2)h+=String.fromCharCode("0x"+(d[v]+d[v+1]));return h},u=function(d){for(var l=new Uint8Array(d.length),h=d.length;h--;)l[h]=d.charCodeAt(h);return(l=Vo(l)).reduce(function(v,N){return v+String.fromCharCode(N)},"")};n.processDataByFilters=function(d,l){var h=0,v=d||"",N=[];for(typeof(l=l||[])=="string"&&(l=[l]),h=0;h<l.length;h+=1)switch(l[h]){case"ASCII85Decode":case"/ASCII85Decode":v=i(v),N.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":v=e(v),N.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":v=s(v),N.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":v=a(v),N.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":v=u(v),N.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[h]+'" is not implemented')}return{data:v,reverseChain:N.reverse().join(" ")}}}(qt.API),function(n){n.loadFile=function(e,i,a){return function(s,u,d){u=u!==!1,d=typeof d=="function"?d:function(){};var l=void 0;try{l=function(h,v,N){var P=new XMLHttpRequest,M=0,p=function(z){var O=z.length,T=[],I=String.fromCharCode;for(M=0;M<O;M+=1)T.push(I(255&z.charCodeAt(M)));return T.join("")};if(P.open("GET",h,!v),P.overrideMimeType("text/plain; charset=x-user-defined"),v===!1&&(P.onload=function(){P.status===200?N(p(this.responseText)):N(void 0)}),P.send(null),v&&P.status===200)return p(P.responseText)}(s,u,d)}catch{}return l}(e,i,a)},n.loadImageFile=n.loadFile}(qt.API),function(n){function e(){return(Gt.html2canvas?Promise.resolve(Gt.html2canvas):Eo(()=>import("./html2canvas-e0a7d97b.js"),[],import.meta.url)).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function i(){return(Gt.DOMPurify?Promise.resolve(Gt.DOMPurify):Eo(()=>import("./dompurify-96e69d58.js"),[],import.meta.url)).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var a=function(l){var h=_e(l);return h==="undefined"?"undefined":h==="string"||l instanceof String?"string":h==="number"||l instanceof Number?"number":h==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":h==="object"?"object":"unknown"},s=function(l,h){var v=document.createElement(l);for(var N in h.className&&(v.className=h.className),h.innerHTML&&h.dompurify&&(v.innerHTML=h.dompurify.sanitize(h.innerHTML)),h.style)v.style[N]=h.style[N];return v},u=function l(h,v){for(var N=h.nodeType===3?document.createTextNode(h.nodeValue):h.cloneNode(!1),P=h.firstChild;P;P=P.nextSibling)v!==!0&&P.nodeType===1&&P.nodeName==="SCRIPT"||N.appendChild(l(P,v));return h.nodeType===1&&(h.nodeName==="CANVAS"?(N.width=h.width,N.height=h.height,N.getContext("2d").drawImage(h,0,0)):h.nodeName!=="TEXTAREA"&&h.nodeName!=="SELECT"||(N.value=h.value),N.addEventListener("load",function(){N.scrollTop=h.scrollTop,N.scrollLeft=h.scrollLeft},!0)),N},d=function l(h){var v=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),N=l.convert(Promise.resolve(),v);return(N=N.setProgress(1,l,1,[l])).set(h)};(d.prototype=Object.create(Promise.prototype)).constructor=d,d.convert=function(l,h){return l.__proto__=h||d.prototype,l},d.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"}},d.prototype.from=function(l,h){return this.then(function(){switch(h=h||function(v){switch(a(v)){case"string":return"string";case"element":return v.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(l),h){case"string":return this.then(i).then(function(v){return this.set({src:s("div",{innerHTML:l,dompurify:v})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},d.prototype.to=function(l){switch(l){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},d.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var l={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},h=u(this.prop.src,this.opt.html2canvas.javascriptEnabled);h.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(h),this.prop.container.firstChild.appendChild(s("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"})},d.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(e).then(function(h){var v=Object.assign({},this.opt.html2canvas);return delete v.onrendered,h(this.prop.container,v)}).then(function(h){(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)})},d.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(e).then(function(h){var v=this.opt.jsPDF,N=this.opt.fontFaces,P=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,M=Object.assign({async:!0,allowTaint:!0,scale:P,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 M.onrendered,v.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,v.context2d.posX=this.opt.x,v.context2d.posY=this.opt.y,v.context2d.margin=this.opt.margin,v.context2d.fontFaces=N,N)for(var p=0;p<N.length;++p){var z=N[p],O=z.src.find(function(T){return T.format==="truetype"});O&&v.addFont(O.url,z.ref.name,z.ref.style)}return M.windowHeight=M.windowHeight||0,M.windowHeight=M.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):M.windowHeight,v.context2d.save(!0),h(this.prop.container,M)}).then(function(h){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(h),this.prop.canvas=h,document.body.removeChild(this.prop.overlay)})},d.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},d.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},d.prototype.output=function(l,h,v){return(v=v||"pdf").toLowerCase()==="img"||v.toLowerCase()==="image"?this.outputImg(l,h):this.outputPdf(l,h)},d.prototype.outputPdf=function(l,h){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,h)})},d.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+l+'" is not supported.'}})},d.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},d.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},d.prototype.set=function(l){if(a(l)!=="object")return this;var h=Object.keys(l||{}).map(function(v){if(v in d.template.prop)return function(){this.prop[v]=l[v]};switch(v){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[v]=l[v]}}},this);return this.then(function(){return this.thenList(h)})},d.prototype.get=function(l,h){return this.then(function(){var v=l in d.template.prop?this.prop[l]:this.opt[l];return h?h(v):v})},d.prototype.setMargin=function(l){return this.then(function(){switch(a(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},d.prototype.setPageSize=function(l){function h(v,N){return Math.floor(v*N/72*96)}return this.then(function(){(l=l||qt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:h(l.inner.width,l.k),height:h(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},d.prototype.setProgress=function(l,h,v,N){return l!=null&&(this.progress.val=l),h!=null&&(this.progress.state=h),v!=null&&(this.progress.n=v),N!=null&&(this.progress.stack=N),this.progress.ratio=this.progress.val/this.progress.state,this},d.prototype.updateProgress=function(l,h,v,N){return this.setProgress(l?this.progress.val+l:null,h||null,v?this.progress.n+v:null,N?this.progress.stack.concat(N):null)},d.prototype.then=function(l,h){var v=this;return this.thenCore(l,h,function(N,P){return v.updateProgress(null,null,1,[N]),Promise.prototype.then.call(this,function(M){return v.updateProgress(null,N),M}).then(N,P).then(function(M){return v.updateProgress(1),M})})},d.prototype.thenCore=function(l,h,v){v=v||Promise.prototype.then;var N=this;l&&(l=l.bind(N)),h&&(h=h.bind(N));var P=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?N:d.convert(Object.assign({},N),Promise.prototype),M=v.call(P,l,h);return d.convert(M,N.__proto__)},d.prototype.thenExternal=function(l,h){return Promise.prototype.then.call(this,l,h)},d.prototype.thenList=function(l){var h=this;return l.forEach(function(v){h=h.thenCore(v)}),h},d.prototype.catch=function(l){l&&(l=l.bind(this));var h=Promise.prototype.catch.call(this,l);return d.convert(h,this)},d.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},d.prototype.error=function(l){return this.then(function(){throw new Error(l)})},d.prototype.using=d.prototype.set,d.prototype.saveAs=d.prototype.save,d.prototype.export=d.prototype.output,d.prototype.run=d.prototype.then,qt.getPageSize=function(l,h,v){if(_e(l)==="object"){var N=l;l=N.orientation,h=N.unit||h,v=N.format||v}h=h||"mm",v=v||"a4",l=(""+(l||"P")).toLowerCase();var P,M=(""+v).toLowerCase(),p={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(h){case"pt":P=1;break;case"mm":P=72/25.4;break;case"cm":P=72/2.54;break;case"in":P=72;break;case"px":P=.75;break;case"pc":case"em":P=12;break;case"ex":P=6;break;default:throw"Invalid unit: "+h}var z,O=0,T=0;if(p.hasOwnProperty(M))O=p[M][1]/P,T=p[M][0]/P;else try{O=v[1],T=v[0]}catch{throw new Error("Invalid format: "+v)}if(l==="p"||l==="portrait")l="p",T>O&&(z=T,T=O,O=z);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",O>T&&(z=T,T=O,O=z)}return{width:T,height:O,unit:h,k:P,orientation:l}},n.html=function(l,h){(h=h||{}).callback=h.callback||function(){},h.html2canvas=h.html2canvas||{},h.html2canvas.canvas=h.html2canvas.canvas||this.canvas,h.jsPDF=h.jsPDF||this,h.fontFaces=h.fontFaces?h.fontFaces.map(zo):null;var v=new d(h);return h.worker?v:v.from(l).doCallback()}}(qt.API),qt.API.addJS=function(n){return Ys=n,this.internal.events.subscribe("postPutResources",function(){Ja=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Ja+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Js=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ys+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Ja!==void 0&&Js!==void 0&&this.internal.out("/Names <</JavaScript "+Ja+" 0 R>>")}),this},function(n){var e;n.events.push(["postPutResources",function(){var i=this,a=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var s=i.outline.render().split(/\r\n/),u=0;u<s.length;u++){var d=s[u],l=a.exec(d);if(l!=null){var h=l[1];i.internal.newObjectDeferredBegin(h,!1)}i.internal.write(d)}if(this.outline.createNamedDestinations){var v=this.internal.pages.length,N=[];for(u=0;u<v;u++){var P=i.internal.newObject();N.push(P);var M=i.internal.getPageInfo(u+1);i.internal.write("<< /D["+M.objId+" 0 R /XYZ null null null]>> endobj")}var p=i.internal.newObject();for(i.internal.write("<< /Names [ "),u=0;u<N.length;u++)i.internal.write("(page_"+(u+1)+")"+N[u]+" 0 R");i.internal.write(" ] >>","endobj"),e=i.internal.newObject(),i.internal.write("<< /Dests "+p+" 0 R"),i.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var i=this;i.outline.root.children.length>0&&(i.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&i.internal.write("/Names "+e+" 0 R"))}]),n.events.push(["initialized",function(){var i=this;i.outline={createNamedDestinations:!1,root:{children:[]}},i.outline.add=function(a,s,u){var d={title:s,options:u,children:[]};return a==null&&(a=this.root),a.children.push(d),d},i.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=i,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},i.outline.genIds_r=function(a){a.id=i.internal.newObjectDeferred();for(var s=0;s<a.children.length;s++)this.genIds_r(a.children[s])},i.outline.renderRoot=function(a){this.objStart(a),this.line("/Type /Outlines"),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1]))),this.line("/Count "+this.count_r({count:0},a)),this.objEnd()},i.outline.renderItems=function(a){for(var s=this.ctx.pdf.internal.getVerticalCoordinateString,u=0;u<a.children.length;u++){var d=a.children[u];this.objStart(d),this.line("/Title "+this.makeString(d.title)),this.line("/Parent "+this.makeRef(a)),u>0&&this.line("/Prev "+this.makeRef(a.children[u-1])),u<a.children.length-1&&this.line("/Next "+this.makeRef(a.children[u+1])),d.children.length>0&&(this.line("/First "+this.makeRef(d.children[0])),this.line("/Last "+this.makeRef(d.children[d.children.length-1])));var l=this.count=this.count_r({count:0},d);if(l>0&&this.line("/Count "+l),d.options&&d.options.pageNumber){var h=i.internal.getPageInfo(d.options.pageNumber);this.line("/Dest ["+h.objId+" 0 R /XYZ 0 "+s(0)+" 0]")}this.objEnd()}for(var v=0;v<a.children.length;v++)this.renderItems(a.children[v])},i.outline.line=function(a){this.ctx.val+=a+`\r
`},i.outline.makeRef=function(a){return a.id+" 0 R"},i.outline.makeString=function(a){return"("+i.internal.pdfEscape(a)+")"},i.outline.objStart=function(a){this.ctx.val+=`\r
`+a.id+` 0 obj\r
<<\r
`},i.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},i.outline.count_r=function(a,s){for(var u=0;u<s.children.length;u++)a.count++,this.count_r(a,s.children[u]);return a.count}}])}(qt.API),function(n){var e=[192,193,194,195,196,197,198,199];n.processJPEG=function(i,a,s,u,d,l){var h,v=this.decode.DCT_DECODE,N=null;if(typeof i=="string"||this.__addimage__.isArrayBuffer(i)||this.__addimage__.isArrayBufferView(i)){switch(i=d||i,i=this.__addimage__.isArrayBuffer(i)?new Uint8Array(i):i,h=function(P){for(var M,p=256*P.charCodeAt(4)+P.charCodeAt(5),z=P.length,O={width:0,height:0,numcomponents:1},T=4;T<z;T+=2){if(T+=p,e.indexOf(P.charCodeAt(T+1))!==-1){M=256*P.charCodeAt(T+5)+P.charCodeAt(T+6),O={width:256*P.charCodeAt(T+7)+P.charCodeAt(T+8),height:M,numcomponents:P.charCodeAt(T+9)};break}p=256*P.charCodeAt(T+2)+P.charCodeAt(T+3)}return O}(i=this.__addimage__.isArrayBufferView(i)?this.__addimage__.arrayBufferToBinaryString(i):i),h.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}N={data:i,width:h.width,height:h.height,colorSpace:l,bitsPerComponent:8,filter:v,index:a,alias:s}}return N}}(qt.API),qt.API.processPNG=function(n,e,i,a){if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){var s,u=nc(n,{checkCrc:!0}),d=u.width,l=u.height,h=u.channels,v=u.palette,N=u.depth;s=v&&h===1?function(ut){for(var J=ut.width,mt=ut.height,x=ut.data,F=ut.palette,R=ut.depth,D=!1,it=[],lt=[],dt=void 0,$=!1,ht=0,Nt=0;Nt<F.length;Nt++){var bt=Ms(F[Nt],4),w=bt[0],C=bt[1],B=bt[2],H=bt[3];it.push(w,C,B),H!=null&&(H===0?(ht++,lt.length<1&&lt.push(Nt)):H<255&&($=!0))}if($||ht>1){D=!0,lt=void 0;var V=J*mt;dt=new Uint8Array(V);for(var K=new DataView(x.buffer),et=0;et<V;et++){var tt=Ho(K,et,R),ft=Ms(F[tt],4)[3];dt[et]=ft}}else ht===0&&(lt=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:D?8:void 0,colorBytes:x,alphaBytes:dt,needSMask:D,palette:it,mask:lt}}(u):h===2||h===4?function(ut){for(var J=ut.data,mt=ut.width,x=ut.height,F=ut.channels,R=ut.depth,D=F===2?"DeviceGray":"DeviceRGB",it=F-1,lt=mt*x,dt=it,$=lt*dt,ht=1*lt,Nt=Math.ceil($*R/8),bt=Math.ceil(ht*R/8),w=new Uint8Array(Nt),C=new Uint8Array(bt),B=new DataView(J.buffer),H=new DataView(w.buffer),V=new DataView(C.buffer),K=!1,et=0;et<lt;et++){for(var tt=et*F,ft=0;ft<dt;ft++)nu(H,Ho(B,tt+ft,R),et*dt+ft,R);var wt=Ho(B,tt+dt,R);wt<(1<<R)-1&&(K=!0),nu(V,wt,1*et,R)}return{colorSpace:D,colorsPerPixel:it,sMaskBitsPerComponent:K?R:void 0,colorBytes:w,alphaBytes:C,needSMask:K}}(u):function(ut){var J=ut.data,mt=ut.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:mt,colorsPerPixel:mt==="DeviceGray"?1:3,colorBytes:J instanceof Uint16Array?function(x){for(var F=x.length,R=new Uint8Array(2*F),D=new DataView(R.buffer,R.byteOffset,R.byteLength),it=0;it<F;it++)D.setUint16(2*it,x[it],!1);return R}(J):J,needSMask:!1}}(u);var P,M,p,z=s,O=z.colorSpace,T=z.colorsPerPixel,I=z.sMaskBitsPerComponent,Z=z.colorBytes,Q=z.alphaBytes,rt=z.needSMask,Lt=z.palette,xt=z.mask,Ut=null;return a!==qt.API.image_compression.NONE&&typeof Vo=="function"?(Ut=function(ut){var J;switch(ut){case qt.API.image_compression.FAST:J=11;break;case qt.API.image_compression.MEDIUM:J=13;break;case qt.API.image_compression.SLOW:J=14;break;default:J=12}return J}(a),P=this.decode.FLATE_DECODE,M="/Predictor ".concat(Ut," /Colors ").concat(T," /BitsPerComponent ").concat(N," /Columns ").concat(d),n=$s(Z,Math.ceil(d*T*N/8),T,N,a),rt&&(p=$s(Q,Math.ceil(d*I/8),1,I,a))):(P=void 0,M=void 0,n=Z,rt&&(p=Q)),(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:i,data:n,index:e,filter:P,decodeParameters:M,transparency:xt,palette:Lt,sMask:p,predictor:Ut,width:d,height:l,bitsPerComponent:N,sMaskBitsPerComponent:I,colorSpace:O}}},function(n){n.processGIF89A=function(e,i,a,s){var u=new _c(e),d=u.width,l=u.height,h=[];u.decodeAndBlitFrameRGBA(0,h);var v={data:h,width:d,height:l},N=new Wo(100).encode(v,100);return n.processJPEG.call(this,N,i,a,s)},n.processGIF87A=n.processGIF89A}(qt.API),Gr.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 n=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(n);for(var e=0;e<n;e++){var i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:s,green:a,blue:i,quad:u}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Gr.prototype.parseBGR=function(){this.pos=this.offset;try{var n="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[n]()}catch(i){Se.log("bit decode error:"+i)}},Gr.prototype.bit1=function(){var n,e=Math.ceil(this.width/8),i=e%4;for(n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,s=0;s<e;s++)for(var u=this.datav.getUint8(this.pos++,!0),d=a*this.width*4+8*s*4,l=0;l<8&&8*s+l<this.width;l++){var h=this.palette[u>>7-l&1];this.data[d+4*l]=h.blue,this.data[d+4*l+1]=h.green,this.data[d+4*l+2]=h.red,this.data[d+4*l+3]=255}i!==0&&(this.pos+=4-i)}},Gr.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),e=n%4,i=this.height-1;i>=0;i--){for(var a=this.bottom_up?i:this.height-1-i,s=0;s<n;s++){var u=this.datav.getUint8(this.pos++,!0),d=a*this.width*4+2*s*4,l=u>>4,h=15&u,v=this.palette[l];if(this.data[d]=v.blue,this.data[d+1]=v.green,this.data[d+2]=v.red,this.data[d+3]=255,2*s+1>=this.width)break;v=this.palette[h],this.data[d+4]=v.blue,this.data[d+4+1]=v.green,this.data[d+4+2]=v.red,this.data[d+4+3]=255}e!==0&&(this.pos+=4-e)}},Gr.prototype.bit8=function(){for(var n=this.width%4,e=this.height-1;e>=0;e--){for(var i=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var s=this.datav.getUint8(this.pos++,!0),u=i*this.width*4+4*a;if(s<this.palette.length){var d=this.palette[s];this.data[u]=d.red,this.data[u+1]=d.green,this.data[u+2]=d.blue,this.data[u+3]=255}else this.data[u]=255,this.data[u+1]=255,this.data[u+2]=255,this.data[u+3]=255}n!==0&&(this.pos+=4-n)}},Gr.prototype.bit15=function(){for(var n=this.width%3,e=parseInt("11111",2),i=this.height-1;i>=0;i--){for(var a=this.bottom_up?i:this.height-1-i,s=0;s<this.width;s++){var u=this.datav.getUint16(this.pos,!0);this.pos+=2;var d=(u&e)/e*255|0,l=(u>>5&e)/e*255|0,h=(u>>10&e)/e*255|0,v=u>>15?255:0,N=a*this.width*4+4*s;this.data[N]=h,this.data[N+1]=l,this.data[N+2]=d,this.data[N+3]=v}this.pos+=n}},Gr.prototype.bit16=function(){for(var n=this.width%3,e=parseInt("11111",2),i=parseInt("111111",2),a=this.height-1;a>=0;a--){for(var s=this.bottom_up?a:this.height-1-a,u=0;u<this.width;u++){var d=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(d&e)/e*255|0,h=(d>>5&i)/i*255|0,v=(d>>11)/e*255|0,N=s*this.width*4+4*u;this.data[N]=v,this.data[N+1]=h,this.data[N+2]=l,this.data[N+3]=255}this.pos+=n}},Gr.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),d=e*this.width*4+4*i;this.data[d]=u,this.data[d+1]=s,this.data[d+2]=a,this.data[d+3]=255}this.pos+=this.width%4}},Gr.prototype.bit32=function(){for(var n=this.height-1;n>=0;n--)for(var e=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),d=this.datav.getUint8(this.pos++,!0),l=e*this.width*4+4*i;this.data[l]=u,this.data[l+1]=s,this.data[l+2]=a,this.data[l+3]=d}},Gr.prototype.getData=function(){return this.data},function(n){n.processBMP=function(e,i,a,s){var u=new Gr(e,!1),d=u.width,l=u.height,h={data:u.getData(),width:d,height:l},v=new Wo(100).encode(h,100);return n.processJPEG.call(this,v,i,a,s)}}(qt.API),au.prototype.getData=function(){return this.data},function(n){n.processWEBP=function(e,i,a,s){var u=new au(e),d=u.width,l=u.height,h={data:u.getData(),width:d,height:l},v=new Wo(100).encode(h,100);return n.processJPEG.call(this,v,i,a,s)}}(qt.API),qt.API.processRGBA=function(n,e,i){for(var a=n.data,s=a.length,u=new Uint8Array(s/4*3),d=new Uint8Array(s/4),l=0,h=0,v=0;v<s;v+=4){var N=a[v],P=a[v+1],M=a[v+2],p=a[v+3];u[l++]=N,u[l++]=P,u[l++]=M,d[h++]=p}var z=this.__addimage__.arrayBufferToBinaryString(u);return{alpha:this.__addimage__.arrayBufferToBinaryString(d),data:z,index:e,alias:i,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},qt.API.setLanguage=function(n){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[n]!==void 0&&(this.internal.languageSettings.languageCode=n,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},ki=qt.API,Ya=ki.getCharWidthsArray=function(n,e){var i,a,s=(e=e||{}).font||this.internal.getFont(),u=e.fontSize||this.internal.getFontSize(),d=e.charSpace||this.internal.getCharSpace(),l=e.widths?e.widths:s.metadata.Unicode.widths,h=l.fof?l.fof:1,v=e.kerning?e.kerning:s.metadata.Unicode.kerning,N=v.fof?v.fof:1,P=e.doKerning!==!1,M=0,p=n.length,z=0,O=l[0]||h,T=[];for(i=0;i<p;i++)a=n.charCodeAt(i),typeof s.metadata.widthOfString=="function"?T.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(a))+d*(1e3/u)||0)/1e3):(M=P&&_e(v[a])==="object"&&!isNaN(parseInt(v[a][z],10))?v[a][z]/N:0,T.push((l[a]||O)/h+M)),z=a;return T},Xs=ki.getStringUnitWidth=function(n,e){var i=(e=e||{}).fontSize||this.internal.getFontSize(),a=e.font||this.internal.getFont(),s=e.charSpace||this.internal.getCharSpace();return ki.processArabic&&(n=ki.processArabic(n)),typeof a.metadata.widthOfString=="function"?a.metadata.widthOfString(n,i,s)/i:Ya.apply(this,arguments).reduce(function(u,d){return u+d},0)},Ks=function(n,e,i,a){for(var s=[],u=0,d=n.length,l=0;u!==d&&l+e[u]<i;)l+=e[u],u++;s.push(n.slice(0,u));var h=u;for(l=0;u!==d;)l+e[u]>a&&(s.push(n.slice(h,u)),l=0,h=u),l+=e[u],u++;return h!==u&&s.push(n.slice(h,u)),s},Zs=function(n,e,i){i||(i={});var a,s,u,d,l,h,v,N=[],P=[N],M=i.textIndent||0,p=0,z=0,O=n.split(" "),T=Ya.apply(this,[" ",i])[0];if(h=i.lineIndent===-1?O[0].length+2:i.lineIndent||0){var I=Array(h).join(" "),Z=[];O.map(function(rt){(rt=rt.split(/\s*\n/)).length>1?Z=Z.concat(rt.map(function(Lt,xt){return(xt&&Lt.length?`
`:"")+Lt})):Z.push(rt[0])}),O=Z,h=Xs.apply(this,[I,i])}for(u=0,d=O.length;u<d;u++){var Q=0;if(a=O[u],h&&a[0]==`
`&&(a=a.substr(1),Q=1),M+p+(z=(s=Ya.apply(this,[a,i])).reduce(function(rt,Lt){return rt+Lt},0))>e||Q){if(z>e){for(l=Ks.apply(this,[a,s,e-(M+p),e]),N.push(l.shift()),N=[l.pop()];l.length;)P.push([l.shift()]);z=s.slice(a.length-(N[0]?N[0].length:0)).reduce(function(rt,Lt){return rt+Lt},0)}else N=[a];P.push(N),M=z+h,p=T}else N.push(a),M+=p+z,p=T}return v=h?function(rt,Lt){return(Lt?I:"")+rt.join(" ")}:function(rt){return rt.join(" ")},P.map(v)},ki.splitTextToSize=function(n,e,i){var a,s=(i=i||{}).fontSize||this.internal.getFontSize(),u=(function(N){if(N.widths&&N.kerning)return{widths:N.widths,kerning:N.kerning};var P=this.internal.getFont(N.fontName,N.fontStyle),M="Unicode";return P.metadata[M]?{widths:P.metadata[M].widths||{0:1},kerning:P.metadata[M].kerning||{}}:{font:P.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,i);a=Array.isArray(n)?n:String(n).split(/\r?\n/);var d=1*this.internal.scaleFactor*e/s;u.textIndent=i.textIndent?1*i.textIndent*this.internal.scaleFactor/s:0,u.lineIndent=i.lineIndent;var l,h,v=[];for(l=0,h=a.length;l<h;l++)v=v.concat(Zs.apply(this,[a[l],d,u]));return v},function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var e="0123456789abcdef",i="klmnopqrstuvwxyz",a={},s={},u=0;u<16;u++)a[i[u]]=e[u],s[e[u]]=i[u];var d=function(M){return"0x"+parseInt(M,10).toString(16)},l=n.__fontmetrics__.compress=function(M){var p,z,O,T,I=["{"];for(var Z in M){if(p=M[Z],isNaN(parseInt(Z,10))?z="'"+Z+"'":(Z=parseInt(Z,10),z=(z=d(Z).slice(2)).slice(0,-1)+s[z.slice(-1)]),typeof p=="number")p<0?(O=d(p).slice(3),T="-"):(O=d(p).slice(2),T=""),O=T+O.slice(0,-1)+s[O.slice(-1)];else{if(_e(p)!=="object")throw new Error("Don't know what to do with value type "+_e(p)+".");O=l(p)}I.push(z+O)}return I.push("}"),I.join("")},h=n.__fontmetrics__.uncompress=function(M){if(typeof M!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,z,O,T,I={},Z=1,Q=I,rt=[],Lt="",xt="",Ut=M.length-1,ut=1;ut<Ut;ut+=1)(T=M[ut])=="'"?p?(O=p.join(""),p=void 0):p=[]:p?p.push(T):T=="{"?(rt.push([Q,O]),Q={},O=void 0):T=="}"?((z=rt.pop())[0][z[1]]=Q,O=void 0,Q=z[0]):T=="-"?Z=-1:O===void 0?a.hasOwnProperty(T)?(Lt+=a[T],O=parseInt(Lt,16)*Z,Z=1,Lt=""):Lt+=T:a.hasOwnProperty(T)?(xt+=a[T],Q[O]=parseInt(xt,16)*Z,Z=1,O=void 0,xt=""):xt+=T;return I},v={codePages:["WinAnsiEncoding"],WinAnsiEncoding:h("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},N={Unicode:{Courier:v,"Courier-Bold":v,"Courier-BoldOblique":v,"Courier-Oblique":v,Helvetica:v,"Helvetica-Bold":v,"Helvetica-BoldOblique":v,"Helvetica-Oblique":v,"Times-Roman":v,"Times-Bold":v,"Times-BoldItalic":v,"Times-Italic":v}},P={Unicode:{"Courier-Oblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":h("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":h("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'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:h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":h("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:h("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:h("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'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":h("{'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:h("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":h("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":h("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":h("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":h("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'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}}}")}};n.events.push(["addFont",function(M){var p=M.font,z=P.Unicode[p.postScriptName];z&&(p.metadata.Unicode={},p.metadata.Unicode.widths=z.widths,p.metadata.Unicode.kerning=z.kerning);var O=N.Unicode[p.postScriptName];O&&(p.metadata.Unicode.encoding=O,p.encoding=O.codePages[0])}])}(qt.API),function(n){var e=function(i){for(var a=i.length,s=new Uint8Array(a),u=0;u<a;u++)s[u]=i.charCodeAt(u);return s};n.API.events.push(["addFont",function(i){var a=void 0,s=i.font,u=i.instance;if(!s.isStandardFont){if(u===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");if(typeof(a=u.existsFileInVFS(s.postScriptName)===!1?u.loadFile(s.postScriptName):u.getFileFromVFS(s.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");(function(d,l){l=/^\x00\x01\x00\x00/.test(l)?e(l):e(Xa(l)),d.metadata=n.API.TTFFont.open(l),d.metadata.Unicode=d.metadata.Unicode||{encoding:{},kerning:{},widths:[]},d.metadata.glyIdsUsed=[0]})(s,a)}}])}(qt),qt.API.addSvgAsImage=function(n,e,i,a,s,u,d,l){if(isNaN(e)||isNaN(i))throw Se.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(a)||isNaN(s))throw Se.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=a,h.height=s;var v=h.getContext("2d");v.fillStyle="#fff",v.fillRect(0,0,h.width,h.height);var N={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},P=this;return(Gt.canvg?Promise.resolve(Gt.canvg):Eo(()=>import("./canvg-325c611f.js"),["./canvg-325c611f.js","./core-js-2d8c9565.js","./@babel-6419d65b.js","./raf-e570db70.js","./performance-now-d3893907.js","./rgbcolor-adea6685.js","./svg-pathdata-801e7ebc.js","./stackblur-canvas-7b6438f0.js"],import.meta.url)).catch(function(M){return Promise.reject(new Error("Could not load canvg: "+M))}).then(function(M){return M.default?M.default:M}).then(function(M){return M.fromString(v,n,N)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(M){return M.render(N)}).then(function(){P.addImage(h.toDataURL("image/jpeg",1),e,i,a,s,d,l)})},qt.API.putTotalPages=function(n){var e,i=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(n,"g"),i=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),i=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var s=0;s<this.internal.pages[a].length;s++)this.internal.pages[a][s]=this.internal.pages[a][s].replace(e,i);return this},qt.API.viewerPreferences=function(n,e){var i;n=n||{},e=e||!1;var a,s,u,d={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(d),h=[],v=0,N=0,P=0;function M(z,O){var T,I=!1;for(T=0;T<z.length;T+=1)z[T]===O&&(I=!0);return I}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(d)),this.internal.viewerpreferences.isSubscribed=!1),i=this.internal.viewerpreferences.configuration,n==="reset"||e===!0){var p=l.length;for(P=0;P<p;P+=1)i[l[P]].value=i[l[P]].defaultValue,i[l[P]].explicitSet=!1}if(_e(n)==="object"){for(s in n)if(u=n[s],M(l,s)&&u!==void 0){if(i[s].type==="boolean"&&typeof u=="boolean")i[s].value=u;else if(i[s].type==="name"&&M(i[s].valueSet,u))i[s].value=u;else if(i[s].type==="integer"&&Number.isInteger(u))i[s].value=u;else if(i[s].type==="array"){for(v=0;v<u.length;v+=1)if(a=!0,u[v].length===1&&typeof u[v][0]=="number")h.push(String(u[v]-1));else if(u[v].length>1){for(N=0;N<u[v].length;N+=1)typeof u[v][N]!="number"&&(a=!1);a===!0&&h.push([u[v][0]-1,u[v][1]-1].join(" "))}i[s].value="["+h.join(" ")+"]"}else i[s].value=i[s].defaultValue;i[s].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var z,O=[];for(z in i)i[z].explicitSet===!0&&(i[z].type==="name"?O.push("/"+z+" /"+i[z].value):O.push("/"+z+" "+i[z].value));O.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+O.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=i,this},function(n){var e=function(){var a='<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>',s=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),u=unescape(encodeURIComponent(a)),d=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),l=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),h=unescape(encodeURIComponent("</x:xmpmeta>")),v=u.length+d.length+l.length+s.length+h.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+v+" >>"),this.internal.write("stream"),this.internal.write(s+u+d+l+h),this.internal.write("endstream"),this.internal.write("endobj")},i=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};n.addMetadata=function(a,s){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:a,namespaceuri:s||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",i),this.internal.events.subscribe("postPutResources",e)),this}}(qt.API),function(n){var e=n.API,i=e.pdfEscape16=function(u,d){for(var l,h=d.metadata.Unicode.widths,v=["","0","00","000","0000"],N=[""],P=0,M=u.length;P<M;++P){if(l=d.metadata.characterToGlyph(u.charCodeAt(P)),d.metadata.glyIdsUsed.push(l),d.metadata.toUnicode[l]=u.charCodeAt(P),h.indexOf(l)==-1&&(h.push(l),h.push([parseInt(d.metadata.widthOfGlyph(l),10)])),l=="0")return N.join("");l=l.toString(16),N.push(v[4-l.length],l)}return N.join("")},a=function(u){var d,l,h,v,N,P,M;for(N=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,h=[],P=0,M=(l=Object.keys(u).sort(function(p,z){return p-z})).length;P<M;P++)d=l[P],h.length>=100&&(N+=`
`+h.length+` beginbfchar
`+h.join(`
`)+`
endbfchar`,h=[]),u[d]!==void 0&&u[d]!==null&&typeof u[d].toString=="function"&&(v=("0000"+u[d].toString(16)).slice(-4),d=("0000"+(+d).toString(16)).slice(-4),h.push("<"+d+"><"+v+">"));return h.length&&(N+=`
`+h.length+` beginbfchar
`+h.join(`
`)+`
endbfchar
`),N+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};e.events.push(["putFont",function(u){(function(d){var l=d.font,h=d.out,v=d.newObject,N=d.putStream;if(l.metadata instanceof n.API.TTFFont&&l.encoding==="Identity-H"){for(var P=l.metadata.Unicode.widths,M=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),p="",z=0;z<M.length;z++)p+=String.fromCharCode(M[z]);var O=v();N({data:p,addLength1:!0,objectId:O}),h("endobj");var T=v();N({data:a(l.metadata.toUnicode),addLength1:!0,objectId:T}),h("endobj");var I=v();h("<<"),h("/Type /FontDescriptor"),h("/FontName /"+Ii(l.fontName)),h("/FontFile2 "+O+" 0 R"),h("/FontBBox "+n.API.PDFObject.convert(l.metadata.bbox)),h("/Flags "+l.metadata.flags),h("/StemV "+l.metadata.stemV),h("/ItalicAngle "+l.metadata.italicAngle),h("/Ascent "+l.metadata.ascender),h("/Descent "+l.metadata.decender),h("/CapHeight "+l.metadata.capHeight),h(">>"),h("endobj");var Z=v();h("<<"),h("/Type /Font"),h("/BaseFont /"+Ii(l.fontName)),h("/FontDescriptor "+I+" 0 R"),h("/W "+n.API.PDFObject.convert(P)),h("/CIDToGIDMap /Identity"),h("/DW 1000"),h("/Subtype /CIDFontType2"),h("/CIDSystemInfo"),h("<<"),h("/Supplement 0"),h("/Registry (Adobe)"),h("/Ordering ("+l.encoding+")"),h(">>"),h(">>"),h("endobj"),l.objectNumber=v(),h("<<"),h("/Type /Font"),h("/Subtype /Type0"),h("/ToUnicode "+T+" 0 R"),h("/BaseFont /"+Ii(l.fontName)),h("/Encoding /"+l.encoding),h("/DescendantFonts ["+Z+" 0 R]"),h(">>"),h("endobj"),l.isAlreadyPutted=!0}})(u)}]),e.events.push(["putFont",function(u){(function(d){var l=d.font,h=d.out,v=d.newObject,N=d.putStream;if(l.metadata instanceof n.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var P=l.metadata.rawData,M="",p=0;p<P.length;p++)M+=String.fromCharCode(P[p]);var z=v();N({data:M,addLength1:!0,objectId:z}),h("endobj");var O=v();N({data:a(l.metadata.toUnicode),addLength1:!0,objectId:O}),h("endobj");var T=v();h("<<"),h("/Descent "+l.metadata.decender),h("/CapHeight "+l.metadata.capHeight),h("/StemV "+l.metadata.stemV),h("/Type /FontDescriptor"),h("/FontFile2 "+z+" 0 R"),h("/Flags 96"),h("/FontBBox "+n.API.PDFObject.convert(l.metadata.bbox)),h("/FontName /"+Ii(l.fontName)),h("/ItalicAngle "+l.metadata.italicAngle),h("/Ascent "+l.metadata.ascender),h(">>"),h("endobj"),l.objectNumber=v();for(var I=0;I<l.metadata.hmtx.widths.length;I++)l.metadata.hmtx.widths[I]=parseInt(l.metadata.hmtx.widths[I]*(1e3/l.metadata.head.unitsPerEm));h("<</Subtype/TrueType/Type/Font/ToUnicode "+O+" 0 R/BaseFont/"+Ii(l.fontName)+"/FontDescriptor "+T+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),h("endobj"),l.isAlreadyPutted=!0}})(u)}]);var s=function(u){var d,l=u.text||"",h=u.x,v=u.y,N=u.options||{},P=u.mutex||{},M=P.pdfEscape,p=P.activeFontKey,z=P.fonts,O=p,T="",I=0,Z="",Q=z[O].encoding;if(z[O].encoding!=="Identity-H")return{text:l,x:h,y:v,options:N,mutex:P};for(Z=l,O=p,Array.isArray(l)&&(Z=l[0]),I=0;I<Z.length;I+=1)z[O].metadata.hasOwnProperty("cmap")&&(d=z[O].metadata.cmap.unicode.codeMap[Z[I].charCodeAt(0)]),d||Z[I].charCodeAt(0)<256&&z[O].metadata.hasOwnProperty("Unicode")?T+=Z[I]:T+="";var rt="";return parseInt(O.slice(1))<14||Q==="WinAnsiEncoding"?rt=M(T,O).split("").map(function(Lt){return Lt.charCodeAt(0).toString(16)}).join(""):Q==="Identity-H"&&(rt=i(T,z[O])),P.isHex=!0,{text:rt,x:h,y:v,options:N,mutex:P}};e.events.push(["postProcessText",function(u){var d=u.text||"",l=[],h={text:d,x:u.x,y:u.y,options:u.options,mutex:u.mutex};if(Array.isArray(d)){var v=0;for(v=0;v<d.length;v+=1)Array.isArray(d[v])&&d[v].length===3?l.push([s(Object.assign({},h,{text:d[v][0]})).text,d[v][1],d[v][2]]):l.push(s(Object.assign({},h,{text:d[v]})).text);u.text=l}else u.text=s(Object.assign({},h,{text:d})).text}])}(qt),function(n){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};n.existsFileInVFS=function(i){return e.call(this),this.internal.vFS[i]!==void 0},n.addFileToVFS=function(i,a){return e.call(this),this.internal.vFS[i]=a,this},n.getFileFromVFS=function(i){return e.call(this),this.internal.vFS[i]!==void 0?this.internal.vFS[i]:null}}(qt.API),function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(a){var s,u,d,l,h,v,N,P=e,M=[[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]],z={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},O={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},T=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],I=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)$/),Z=!1,Q=0;this.__bidiEngine__={};var rt=function(x){var F=x.charCodeAt(),R=F>>8,D=O[R];return D!==void 0?P[256*D+(255&F)]:R===252||R===253?"AL":I.test(R)?"L":R===8?"R":"N"},Lt=function(x){for(var F,R=0;R<x.length;R++){if((F=rt(x.charAt(R)))==="L")return!1;if(F==="R")return!0}return!1},xt=function(x,F,R,D){var it,lt,dt,$,ht=F[D];switch(ht){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Z=!1;break;case"N":case"AN":break;case"EN":Z&&(ht="AN");break;case"AL":Z=!0,ht="R";break;case"WS":case"BN":ht="N";break;case"CS":D<1||D+1>=F.length||(it=R[D-1])!=="EN"&&it!=="AN"||(lt=F[D+1])!=="EN"&&lt!=="AN"?ht="N":Z&&(lt="AN"),ht=lt===it?lt:"N";break;case"ES":ht=(it=D>0?R[D-1]:"B")==="EN"&&D+1<F.length&&F[D+1]==="EN"?"EN":"N";break;case"ET":if(D>0&&R[D-1]==="EN"){ht="EN";break}if(Z){ht="N";break}for(dt=D+1,$=F.length;dt<$&&F[dt]==="ET";)dt++;ht=dt<$&&F[dt]==="EN"?"EN":"N";break;case"NSM":if(d&&!l){for($=F.length,dt=D+1;dt<$&&F[dt]==="NSM";)dt++;if(dt<$){var Nt=x[D],bt=Nt>=1425&&Nt<=2303||Nt===64286;if(it=F[dt],bt&&(it==="R"||it==="AL")){ht="R";break}}}ht=D<1||(it=F[D-1])==="B"?"N":R[D-1];break;case"B":Z=!1,s=!0,ht=Q;break;case"S":u=!0,ht="N"}return ht},Ut=function(x,F,R){var D=x.split("");return R&&ut(D,R,{hiLevel:Q}),D.reverse(),F&&F.reverse(),D.join("")},ut=function(x,F,R){var D,it,lt,dt,$,ht=-1,Nt=x.length,bt=0,w=[],C=Q?p:M,B=[];for(Z=!1,s=!1,u=!1,it=0;it<Nt;it++)B[it]=rt(x[it]);for(lt=0;lt<Nt;lt++){if($=bt,w[lt]=xt(x,B,w,lt),D=240&(bt=C[$][z[w[lt]]]),bt&=15,F[lt]=dt=C[bt][5],D>0)if(D===16){for(it=ht;it<lt;it++)F[it]=1;ht=-1}else ht=-1;if(C[bt][6])ht===-1&&(ht=lt);else if(ht>-1){for(it=ht;it<lt;it++)F[it]=dt;ht=-1}B[lt]==="B"&&(F[lt]=0),R.hiLevel|=dt}u&&function(H,V,K){for(var et=0;et<K;et++)if(H[et]==="S"){V[et]=Q;for(var tt=et-1;tt>=0&&H[tt]==="WS";tt--)V[tt]=Q}}(B,F,Nt)},J=function(x,F,R,D,it){if(!(it.hiLevel<x)){if(x===1&&Q===1&&!s)return F.reverse(),void(R&&R.reverse());for(var lt,dt,$,ht,Nt=F.length,bt=0;bt<Nt;){if(D[bt]>=x){for($=bt+1;$<Nt&&D[$]>=x;)$++;for(ht=bt,dt=$-1;ht<dt;ht++,dt--)lt=F[ht],F[ht]=F[dt],F[dt]=lt,R&&(lt=R[ht],R[ht]=R[dt],R[dt]=lt);bt=$}bt++}}},mt=function(x,F,R){var D=x.split(""),it={hiLevel:Q};return R||(R=[]),ut(D,R,it),function(lt,dt,$){if($.hiLevel!==0&&N)for(var ht,Nt=0;Nt<lt.length;Nt++)dt[Nt]===1&&(ht=T.indexOf(lt[Nt]))>=0&&(lt[Nt]=T[ht+1])}(D,R,it),J(2,D,F,R,it),J(1,D,F,R,it),D.join("")};return this.__bidiEngine__.doBidiReorder=function(x,F,R){if(function(it,lt){if(lt)for(var dt=0;dt<it.length;dt++)lt[dt]=dt;l===void 0&&(l=Lt(it)),v===void 0&&(v=Lt(it))}(x,F),d||!h||v)if(d&&h&&l^v)Q=l?1:0,x=Ut(x,F,R);else if(!d&&h&&v)Q=l?1:0,x=mt(x,F,R),x=Ut(x,F);else if(!d||l||h||v){if(d&&!h&&l^v)x=Ut(x,F),l?(Q=0,x=mt(x,F,R)):(Q=1,x=mt(x,F,R),x=Ut(x,F));else if(d&&l&&!h&&v)Q=1,x=mt(x,F,R),x=Ut(x,F);else if(!d&&!h&&l^v){var D=N;l?(Q=1,x=mt(x,F,R),Q=0,N=!1,x=mt(x,F,R),N=D):(Q=0,x=mt(x,F,R),x=Ut(x,F),Q=1,N=!1,x=mt(x,F,R),N=D,x=Ut(x,F))}}else Q=0,x=mt(x,F,R);else Q=l?1:0,x=mt(x,F,R);return x},this.__bidiEngine__.setOptions=function(x){x&&(d=x.isInputVisual,h=x.isOutputVisual,l=x.isInputRtl,v=x.isOutputRtl,N=x.isSymmetricSwapping)},this.__bidiEngine__.setOptions(a),this.__bidiEngine__};var e=["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"],i=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(a){var s=a.text;a.x,a.y;var u=a.options||{};a.mutex,u.lang;var d=[];if(u.isInputVisual=typeof u.isInputVisual!="boolean"||u.isInputVisual,i.setOptions(u),Object.prototype.toString.call(s)==="[object Array]"){var l=0;for(d=[],l=0;l<s.length;l+=1)Object.prototype.toString.call(s[l])==="[object Array]"?d.push([i.doBidiReorder(s[l][0]),s[l][1],s[l][2]]):d.push([i.doBidiReorder(s[l])]);a.text=d}else a.text=i.doBidiReorder(s);i.setOptions({isInputVisual:!0})}])}(qt),qt.API.TTFFont=function(){function n(e){var i;if(this.rawData=e,i=this.contents=new Dn(e),this.contents.pos=4,i.readString(4)==="ttcf")throw new Error("TTCF not supported.");i.pos=0,this.parse(),this.subset=new zc(this),this.registerTTF()}return n.open=function(e){return new n(e)},n.prototype.parse=function(){return this.directory=new Pc(this.contents),this.head=new Fc(this),this.name=new Bc(this),this.cmap=new bu(this),this.toUnicode={},this.hhea=new Ic(this),this.maxp=new Mc(this),this.hmtx=new Ec(this),this.post=new jc(this),this.os2=new Cc(this),this.loca=new Tc(this),this.glyf=new qc(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]},n.prototype.registerTTF=function(){var e,i,a,s,u;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var d,l,h,v;for(v=[],d=0,l=(h=this.bbox).length;d<l;d++)e=h[d],v.push(Math.round(e*this.scaleFactor));return v}).call(this),this.stemV=0,this.post.exists?(a=255&(s=this.post.italic_angle),32768&(i=s>>16)&&(i=-(1+(65535^i))),this.italicAngle=+(i+"."+a)):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=(u=this.familyClass)===1||u===2||u===3||u===4||u===5||u===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")},n.prototype.characterToGlyph=function(e){var i;return((i=this.cmap.unicode)!=null?i.codeMap[e]:void 0)||0},n.prototype.widthOfGlyph=function(e){var i;return i=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*i},n.prototype.widthOfString=function(e,i,a){var s,u,d,l;for(d=0,u=0,l=(e=""+e).length;0<=l?u<l:u>l;u=0<=l?++u:--u)s=e.charCodeAt(u),d+=this.widthOfGlyph(this.characterToGlyph(s))+a*(1e3/i)||0;return d*(i/1e3)},n.prototype.lineHeight=function(e,i){var a;return i==null&&(i=!1),a=i?this.lineGap:0,(this.ascender+a-this.decender)/1e3*e},n}();var Yr,Dn=function(){function n(e){this.data=e??[],this.pos=0,this.length=this.data.length}return n.prototype.readByte=function(){return this.data[this.pos++]},n.prototype.writeByte=function(e){return this.data[this.pos++]=e},n.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},n.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},n.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},n.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},n.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},n.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},n.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},n.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},n.prototype.readString=function(e){var i,a;for(a=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)a[i]=String.fromCharCode(this.readByte());return a.join("")},n.prototype.writeString=function(e){var i,a,s;for(s=[],i=0,a=e.length;0<=a?i<a:i>a;i=0<=a?++i:--i)s.push(this.writeByte(e.charCodeAt(i)));return s},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(e){return this.writeInt16(e)},n.prototype.readLongLong=function(){var e,i,a,s,u,d,l,h;return e=this.readByte(),i=this.readByte(),a=this.readByte(),s=this.readByte(),u=this.readByte(),d=this.readByte(),l=this.readByte(),h=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^i)+1099511627776*(255^a)+4294967296*(255^s)+16777216*(255^u)+65536*(255^d)+256*(255^l)+(255^h)+1):72057594037927940*e+281474976710656*i+1099511627776*a+4294967296*s+16777216*u+65536*d+256*l+h},n.prototype.writeLongLong=function(e){var i,a;return i=Math.floor(e/4294967296),a=4294967295&e,this.writeByte(i>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i),this.writeByte(a>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(e){return this.writeInt32(e)},n.prototype.read=function(e){var i,a;for(i=[],a=0;0<=e?a<e:a>e;a=0<=e?++a:--a)i.push(this.readByte());return i},n.prototype.write=function(e){var i,a,s,u;for(u=[],a=0,s=e.length;a<s;a++)i=e[a],u.push(this.writeByte(i));return u},n}(),Pc=function(){var n;function e(i){var a,s,u;for(this.scalarType=i.readInt(),this.tableCount=i.readShort(),this.searchRange=i.readShort(),this.entrySelector=i.readShort(),this.rangeShift=i.readShort(),this.tables={},s=0,u=this.tableCount;0<=u?s<u:s>u;s=0<=u?++s:--s)a={tag:i.readString(4),checksum:i.readInt(),offset:i.readInt(),length:i.readInt()},this.tables[a.tag]=a}return e.prototype.encode=function(i){var a,s,u,d,l,h,v,N,P,M,p,z,O;for(O in p=Object.keys(i).length,h=Math.log(2),P=16*Math.floor(Math.log(p)/h),d=Math.floor(P/h),N=16*p-P,(s=new Dn).writeInt(this.scalarType),s.writeShort(p),s.writeShort(P),s.writeShort(d),s.writeShort(N),u=16*p,v=s.pos+u,l=null,z=[],i)for(M=i[O],s.writeString(O),s.writeInt(n(M)),s.writeInt(v),s.writeInt(M.length),z=z.concat(M),O==="head"&&(l=v),v+=M.length;v%4;)z.push(0),v++;return s.write(z),a=2981146554-n(s.data),s.pos=l+8,s.writeUInt32(a),s.data},n=function(i){var a,s,u,d;for(i=yu.call(i);i.length%4;)i.push(0);for(u=new Dn(i),s=0,a=0,d=i.length;a<d;a=a+=4)s+=u.readUInt32();return 4294967295&s},e}(),kc={}.hasOwnProperty,an=function(n,e){for(var i in e)kc.call(e,i)&&(n[i]=e[i]);function a(){this.constructor=n}return a.prototype=e.prototype,n.prototype=new a,n.__super__=e.prototype,n};Yr=function(){function n(e){var i;this.file=e,i=this.file.directory.tables[this.tag],this.exists=!!i,i&&(this.offset=i.offset,this.length=i.length,this.parse(this.file.contents))}return n.prototype.parse=function(){},n.prototype.encode=function(){},n.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},n}();var Fc=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return an(n,Yr),n.prototype.tag="head",n.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},n.prototype.encode=function(e){var i;return(i=new Dn).writeInt(this.version),i.writeInt(this.revision),i.writeInt(this.checkSumAdjustment),i.writeInt(this.magicNumber),i.writeShort(this.flags),i.writeShort(this.unitsPerEm),i.writeLongLong(this.created),i.writeLongLong(this.modified),i.writeShort(this.xMin),i.writeShort(this.yMin),i.writeShort(this.xMax),i.writeShort(this.yMax),i.writeShort(this.macStyle),i.writeShort(this.lowestRecPPEM),i.writeShort(this.fontDirectionHint),i.writeShort(e),i.writeShort(this.glyphDataFormat),i.data},n}(),ou=function(){function n(e,i){var a,s,u,d,l,h,v,N,P,M,p,z,O,T,I,Z,Q;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=i+e.readInt(),P=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(h=0;h<256;++h)this.codeMap[h]=e.readByte();break;case 4:for(p=e.readUInt16(),M=p/2,e.pos+=6,u=function(){var rt,Lt;for(Lt=[],h=rt=0;0<=M?rt<M:rt>M;h=0<=M?++rt:--rt)Lt.push(e.readUInt16());return Lt}(),e.pos+=2,O=function(){var rt,Lt;for(Lt=[],h=rt=0;0<=M?rt<M:rt>M;h=0<=M?++rt:--rt)Lt.push(e.readUInt16());return Lt}(),v=function(){var rt,Lt;for(Lt=[],h=rt=0;0<=M?rt<M:rt>M;h=0<=M?++rt:--rt)Lt.push(e.readUInt16());return Lt}(),N=function(){var rt,Lt;for(Lt=[],h=rt=0;0<=M?rt<M:rt>M;h=0<=M?++rt:--rt)Lt.push(e.readUInt16());return Lt}(),s=(this.length-e.pos+this.offset)/2,l=function(){var rt,Lt;for(Lt=[],h=rt=0;0<=s?rt<s:rt>s;h=0<=s?++rt:--rt)Lt.push(e.readUInt16());return Lt}(),h=I=0,Q=u.length;I<Q;h=++I)for(T=u[h],a=Z=z=O[h];z<=T?Z<=T:Z>=T;a=z<=T?++Z:--Z)N[h]===0?d=a+v[h]:(d=l[N[h]/2+(a-z)-(M-h)]||0)!==0&&(d+=v[h]),this.codeMap[a]=65535&d}e.pos=P}return n.encode=function(e,i){var a,s,u,d,l,h,v,N,P,M,p,z,O,T,I,Z,Q,rt,Lt,xt,Ut,ut,J,mt,x,F,R,D,it,lt,dt,$,ht,Nt,bt,w,C,B,H,V,K,et,tt,ft,wt,_t;switch(D=new Dn,d=Object.keys(e).sort(function(Pt,at){return Pt-at}),i){case"macroman":for(O=0,T=function(){var Pt=[];for(z=0;z<256;++z)Pt.push(0);return Pt}(),Z={0:0},u={},it=0,ht=d.length;it<ht;it++)Z[tt=e[s=d[it]]]==null&&(Z[tt]=++O),u[s]={old:e[s],new:Z[e[s]]},T[s]=Z[e[s]];return D.writeUInt16(1),D.writeUInt16(0),D.writeUInt32(12),D.writeUInt16(0),D.writeUInt16(262),D.writeUInt16(0),D.write(T),{charMap:u,subtable:D.data,maxGlyphID:O+1};case"unicode":for(F=[],P=[],Q=0,Z={},a={},I=v=null,lt=0,Nt=d.length;lt<Nt;lt++)Z[Lt=e[s=d[lt]]]==null&&(Z[Lt]=++Q),a[s]={old:Lt,new:Z[Lt]},l=Z[Lt]-s,I!=null&&l===v||(I&&P.push(I),F.push(s),v=l),I=s;for(I&&P.push(I),P.push(65535),F.push(65535),mt=2*(J=F.length),ut=2*Math.pow(Math.log(J)/Math.LN2,2),M=Math.log(ut/2)/Math.LN2,Ut=2*J-ut,h=[],xt=[],p=[],z=dt=0,bt=F.length;dt<bt;z=++dt){if(x=F[z],N=P[z],x===65535){h.push(0),xt.push(0);break}if(x-(R=a[x].new)>=32768)for(h.push(0),xt.push(2*(p.length+J-z)),s=$=x;x<=N?$<=N:$>=N;s=x<=N?++$:--$)p.push(a[s].new);else h.push(R-x),xt.push(0)}for(D.writeUInt16(3),D.writeUInt16(1),D.writeUInt32(12),D.writeUInt16(4),D.writeUInt16(16+8*J+2*p.length),D.writeUInt16(0),D.writeUInt16(mt),D.writeUInt16(ut),D.writeUInt16(M),D.writeUInt16(Ut),K=0,w=P.length;K<w;K++)s=P[K],D.writeUInt16(s);for(D.writeUInt16(0),et=0,C=F.length;et<C;et++)s=F[et],D.writeUInt16(s);for(ft=0,B=h.length;ft<B;ft++)l=h[ft],D.writeUInt16(l);for(wt=0,H=xt.length;wt<H;wt++)rt=xt[wt],D.writeUInt16(rt);for(_t=0,V=p.length;_t<V;_t++)O=p[_t],D.writeUInt16(O);return{charMap:a,subtable:D.data,maxGlyphID:Q+1}}},n}(),bu=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return an(n,Yr),n.prototype.tag="cmap",n.prototype.parse=function(e){var i,a,s;for(e.pos=this.offset,this.version=e.readUInt16(),s=e.readUInt16(),this.tables=[],this.unicode=null,a=0;0<=s?a<s:a>s;a=0<=s?++a:--a)i=new ou(e,this.offset),this.tables.push(i),i.isUnicode&&this.unicode==null&&(this.unicode=i);return!0},n.encode=function(e,i){var a,s;return i==null&&(i="macroman"),a=ou.encode(e,i),(s=new Dn).writeUInt16(0),s.writeUInt16(1),a.table=s.data.concat(a.subtable),a},n}(),Ic=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return an(n,Yr),n.prototype.tag="hhea",n.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},n}(),Cc=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return an(n,Yr),n.prototype.tag="OS/2",n.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var i,a;for(a=[],i=0;i<10;++i)a.push(e.readByte());return a}(),this.charRange=function(){var i,a;for(a=[],i=0;i<4;++i)a.push(e.readInt());return a}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var i,a;for(a=[],i=0;i<2;i=++i)a.push(e.readInt());return a}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},n}(),jc=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return an(n,Yr),n.prototype.tag="post",n.prototype.parse=function(e){var i,a,s;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var u;for(a=e.readUInt16(),this.glyphNameIndex=[],u=0;0<=a?u<a:u>a;u=0<=a?++u:--u)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],s=[];e.pos<this.offset+this.length;)i=e.readByte(),s.push(this.names.push(e.readString(i)));return s;case 151552:return a=e.readUInt16(),this.offsets=e.read(a);case 262144:return this.map=(function(){var d,l,h;for(h=[],u=d=0,l=this.file.maxp.numGlyphs;0<=l?d<l:d>l;u=0<=l?++d:--d)h.push(e.readUInt32());return h}).call(this)}},n}(),Oc=function(n,e){this.raw=n,this.length=n.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Bc=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return an(n,Yr),n.prototype.tag="name",n.prototype.parse=function(e){var i,a,s,u,d,l,h,v,N,P,M;for(e.pos=this.offset,e.readShort(),i=e.readShort(),l=e.readShort(),a=[],u=0;0<=i?u<i:u>i;u=0<=i?++u:--u)a.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+l+e.readShort()});for(h={},u=N=0,P=a.length;N<P;u=++N)s=a[u],e.pos=s.offset,v=e.readString(s.length),d=new Oc(v,s),h[M=s.nameID]==null&&(h[M]=[]),h[s.nameID].push(d);this.strings=h,this.copyright=h[0],this.fontFamily=h[1],this.fontSubfamily=h[2],this.uniqueSubfamily=h[3],this.fontName=h[4],this.version=h[5];try{this.postscriptName=h[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=h[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=h[7],this.manufacturer=h[8],this.designer=h[9],this.description=h[10],this.vendorUrl=h[11],this.designerUrl=h[12],this.license=h[13],this.licenseUrl=h[14],this.preferredFamily=h[15],this.preferredSubfamily=h[17],this.compatibleFull=h[18],this.sampleText=h[19]},n}(),Mc=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return an(n,Yr),n.prototype.tag="maxp",n.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},n}(),Ec=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return an(n,Yr),n.prototype.tag="hmtx",n.prototype.parse=function(e){var i,a,s,u,d,l,h;for(e.pos=this.offset,this.metrics=[],i=0,l=this.file.hhea.numberOfMetrics;0<=l?i<l:i>l;i=0<=l?++i:--i)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(s=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var v,N;for(N=[],i=v=0;0<=s?v<s:v>s;i=0<=s?++v:--v)N.push(e.readInt16());return N}(),this.widths=(function(){var v,N,P,M;for(M=[],v=0,N=(P=this.metrics).length;v<N;v++)u=P[v],M.push(u.advance);return M}).call(this),a=this.widths[this.widths.length-1],h=[],i=d=0;0<=s?d<s:d>s;i=0<=s?++d:--d)h.push(this.widths.push(a));return h},n.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},n}(),yu=[].slice,qc=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return an(n,Yr),n.prototype.tag="glyf",n.prototype.parse=function(){return this.cache={}},n.prototype.glyphFor=function(e){var i,a,s,u,d,l,h,v,N,P;return e in this.cache?this.cache[e]:(u=this.file.loca,i=this.file.contents,a=u.indexOf(e),(s=u.lengthOf(e))===0?this.cache[e]=null:(i.pos=this.offset+a,d=(l=new Dn(i.read(s))).readShort(),v=l.readShort(),P=l.readShort(),h=l.readShort(),N=l.readShort(),this.cache[e]=d===-1?new Dc(l,v,P,h,N):new Rc(l,d,v,P,h,N),this.cache[e]))},n.prototype.encode=function(e,i,a){var s,u,d,l,h;for(d=[],u=[],l=0,h=i.length;l<h;l++)s=e[i[l]],u.push(d.length),s&&(d=d.concat(s.encode(a)));return u.push(d.length),{table:d,offsets:u}},n}(),Rc=function(){function n(e,i,a,s,u,d){this.raw=e,this.numberOfContours=i,this.xMin=a,this.yMin=s,this.xMax=u,this.yMax=d,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n}(),Dc=function(){function n(e,i,a,s,u){var d,l;for(this.raw=e,this.xMin=i,this.yMin=a,this.xMax=s,this.yMax=u,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],d=this.raw;l=d.readShort(),this.glyphOffsets.push(d.pos),this.glyphIDs.push(d.readUInt16()),32&l;)d.pos+=1&l?4:2,128&l?d.pos+=8:64&l?d.pos+=4:8&l&&(d.pos+=2)}return n.prototype.encode=function(){var e,i,a;for(i=new Dn(yu.call(this.raw.data)),e=0,a=this.glyphIDs.length;e<a;++e)i.pos=this.glyphOffsets[e];return i.data},n}(),Tc=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return an(n,Yr),n.prototype.tag="loca",n.prototype.parse=function(e){var i,a;return e.pos=this.offset,i=this.file.head.indexToLocFormat,this.offsets=i===0?(function(){var s,u;for(u=[],a=0,s=this.length;a<s;a+=2)u.push(2*e.readUInt16());return u}).call(this):(function(){var s,u;for(u=[],a=0,s=this.length;a<s;a+=4)u.push(e.readUInt32());return u}).call(this)},n.prototype.indexOf=function(e){return this.offsets[e]},n.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},n.prototype.encode=function(e,i){for(var a=new Uint32Array(this.offsets.length),s=0,u=0,d=0;d<a.length;++d)if(a[d]=s,u<i.length&&i[u]==d){++u,a[d]=s;var l=this.offsets[d],h=this.offsets[d+1]-l;h>0&&(s+=h)}for(var v=new Array(4*a.length),N=0;N<a.length;++N)v[4*N+3]=255&a[N],v[4*N+2]=(65280&a[N])>>8,v[4*N+1]=(16711680&a[N])>>16,v[4*N]=(4278190080&a[N])>>24;return v},n}(),zc=function(){function n(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var e,i,a,s,u;for(i in s=this.font.cmap.tables[0].codeMap,e={},u=this.subset)a=u[i],e[i]=s[a];return e},n.prototype.glyphsFor=function(e){var i,a,s,u,d,l,h;for(s={},d=0,l=e.length;d<l;d++)s[u=e[d]]=this.font.glyf.glyphFor(u);for(u in i=[],s)(a=s[u])!=null&&a.compound&&i.push.apply(i,a.glyphIDs);if(i.length>0)for(u in h=this.glyphsFor(i))a=h[u],s[u]=a;return s},n.prototype.encode=function(e,i){var a,s,u,d,l,h,v,N,P,M,p,z,O,T,I;for(s in a=bu.encode(this.generateCmap(),"unicode"),d=this.glyphsFor(e),p={0:0},I=a.charMap)p[(h=I[s]).old]=h.new;for(z in M=a.maxGlyphID,d)z in p||(p[z]=M++);return N=function(Z){var Q,rt;for(Q in rt={},Z)rt[Z[Q]]=Q;return rt}(p),P=Object.keys(N).sort(function(Z,Q){return Z-Q}),O=function(){var Z,Q,rt;for(rt=[],Z=0,Q=P.length;Z<Q;Z++)l=P[Z],rt.push(N[l]);return rt}(),u=this.font.glyf.encode(d,O,p),v=this.font.loca.encode(u.offsets,O),T={cmap:this.font.cmap.raw(),glyf:u.table,loca:v,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(i)},this.font.os2.exists&&(T["OS/2"]=this.font.os2.raw()),this.font.directory.encode(T)},n}();qt.API.PDFObject=function(){var n;function e(){}return n=function(i,a){return(Array(a+1).join("0")+i).slice(-a)},e.convert=function(i){var a,s,u,d;if(Array.isArray(i))return"["+function(){var l,h,v;for(v=[],l=0,h=i.length;l<h;l++)a=i[l],v.push(e.convert(a));return v}().join(" ")+"]";if(typeof i=="string")return"/"+i;if(i!=null&&i.isString)return"("+i+")";if(i instanceof Date)return"(D:"+n(i.getUTCFullYear(),4)+n(i.getUTCMonth(),2)+n(i.getUTCDate(),2)+n(i.getUTCHours(),2)+n(i.getUTCMinutes(),2)+n(i.getUTCSeconds(),2)+"Z)";if({}.toString.call(i)==="[object Object]"){for(s in u=["<<"],i)d=i[s],u.push("/"+s+" "+e.convert(d));return u.push(">>"),u.join(`
`)}return""+i},e}();export{qt as E,hi as M,to as O,Ci as q};
