(self.webpackChunkportalnet_automotriz=self.webpackChunkportalnet_automotriz||[]).push([["default-node_modules_jspdf_dist_jspdf_es_min_js"],{46308:function(ll){
/*!
       * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
       * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
       * Released under MIT License
       */
ll.exports=function(){"use strict";
/*! *****************************************************************************
        Copyright (c) Microsoft Corporation.
          Permission to use, copy, modify, and/or distribute this software for any
        purpose with or without fee is hereby granted.
          THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
        REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
        AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
        INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
        LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
        OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
        PERFORMANCE OF THIS SOFTWARE.
        ***************************************************************************** */var va=function(i,n){return(va=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,a){s.__proto__=a}||function(s,a){for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(s[d]=a[d])})(i,n)};function At(i,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=i}va(i,n),i.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)}var Se=function(){return Se=Object.assign||function(n){for(var s,a=1,d=arguments.length;a<d;a++)for(var C in s=arguments[a])Object.prototype.hasOwnProperty.call(s,C)&&(n[C]=s[C]);return n},Se.apply(this,arguments)};function Et(i,n,s,a){return new(s||(s=Promise))(function(C,I){function P(aA){try{eA(a.next(aA))}catch(uA){I(uA)}}function O(aA){try{eA(a.throw(aA))}catch(uA){I(uA)}}function eA(aA){aA.done?C(aA.value):function d(C){return C instanceof s?C:new s(function(I){I(C)})}(aA.value).then(P,O)}eA((a=a.apply(i,n||[])).next())})}function It(i,n){var a,d,C,I,s={label:0,sent:function(){if(1&C[0])throw C[1];return C[1]},trys:[],ops:[]};return I={next:P(0),throw:P(1),return:P(2)},"function"==typeof Symbol&&(I[Symbol.iterator]=function(){return this}),I;function P(eA){return function(aA){return function O(eA){if(a)throw new TypeError("Generator is already executing.");for(;s;)try{if(a=1,d&&(C=2&eA[0]?d.return:eA[0]?d.throw||((C=d.return)&&C.call(d),0):d.next)&&!(C=C.call(d,eA[1])).done)return C;switch(d=0,C&&(eA=[2&eA[0],C.value]),eA[0]){case 0:case 1:C=eA;break;case 4:return s.label++,{value:eA[1],done:!1};case 5:s.label++,d=eA[1],eA=[0];continue;case 7:eA=s.ops.pop(),s.trys.pop();continue;default:if(!(C=(C=s.trys).length>0&&C[C.length-1])&&(6===eA[0]||2===eA[0])){s=0;continue}if(3===eA[0]&&(!C||eA[1]>C[0]&&eA[1]<C[3])){s.label=eA[1];break}if(6===eA[0]&&s.label<C[1]){s.label=C[1],C=eA;break}if(C&&s.label<C[2]){s.label=C[2],s.ops.push(eA);break}C[2]&&s.ops.pop(),s.trys.pop();continue}eA=n.call(i,s)}catch(aA){eA=[6,aA],d=0}finally{a=C=0}if(5&eA[0])throw eA[1];return{value:eA[0]?eA[1]:void 0,done:!0}}([eA,aA])}}}function Le(i,n,s){if(s||2===arguments.length)for(var C,a=0,d=n.length;a<d;a++)(C||!(a in n))&&(C||(C=Array.prototype.slice.call(n,0,a)),C[a]=n[a]);return i.concat(C||n)}for(var Je=function(){function i(n,s,a,d){this.left=n,this.top=s,this.width=a,this.height=d}return i.prototype.add=function(n,s,a,d){return new i(this.left+n,this.top+s,this.width+a,this.height+d)},i.fromClientRect=function(n,s){return new i(s.left+n.windowBounds.left,s.top+n.windowBounds.top,s.width,s.height)},i.fromDOMRectList=function(n,s){var a=Array.from(s).find(function(d){return 0!==d.width});return a?new i(a.left+n.windowBounds.left,a.top+n.windowBounds.top,a.width,a.height):i.EMPTY},i.EMPTY=new i(0,0,0,0),i}(),In=function(i,n){return Je.fromClientRect(i,n.getBoundingClientRect())},nn=function(i){for(var n=[],s=0,a=i.length;s<a;){var d=i.charCodeAt(s++);if(d>=55296&&d<=56319&&s<a){var C=i.charCodeAt(s++);56320==(64512&C)?n.push(((1023&d)<<10)+(1023&C)+65536):(n.push(d),s--)}else n.push(d)}return n},Re=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(String.fromCodePoint)return String.fromCodePoint.apply(String,i);var s=i.length;if(!s)return"";for(var a=[],d=-1,C="";++d<s;){var I=i[d];I<=65535?a.push(I):a.push(55296+((I-=65536)>>10),I%1024+56320),(d+1===s||a.length>16384)&&(C+=String.fromCharCode.apply(String,a),a.length=0)}return C},wo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hc=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ti=0;Ti<64;Ti++)hc[wo.charCodeAt(Ti)]=Ti;for(var ma="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oi=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ca=0;Ca<64;Ca++)Oi[ma.charCodeAt(Ca)]=Ca;for(var Qe=function(i,n,s){return i.slice?i.slice(n,s):new Uint16Array(Array.prototype.slice.call(i,n,s))},Mi=function(){function i(n,s,a,d,C,I){this.initialValue=n,this.errorValue=s,this.highStart=a,this.highValueIndex=d,this.index=C,this.data=I}return i.prototype.get=function(n){var s;if(n>=0){if(n<55296||n>56319&&n<=65535)return this.data[s=((s=this.index[n>>5])<<2)+(31&n)];if(n<=65535)return this.data[s=((s=this.index[2048+(n-55296>>5)])<<2)+(31&n)];if(n<this.highStart)return s=this.index[s=2080+(n>>11)],this.data[s=((s=this.index[s+=n>>5&63])<<2)+(31&n)];if(n<=1114111)return this.data[this.highValueIndex]}return this.errorValue},i}(),ya="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cs=typeof Uint8Array>"u"?[]:new Uint8Array(256),ki=0;ki<64;ki++)cs[ya.charCodeAt(ki)]=ki;var s,a,d,I,P,Er=10,Fo=13,ti=15,Bs=17,Ia=18,Cu=19,mc=20,Kr=21,ri=22,xa=24,or=25,Ot=26,it=27,Hn=28,Nn=30,Sa=32,Ha=33,gs=34,ds=35,ps=37,Fc=38,ws=39,ni=40,Qu=42,Na=[9001,65288],Fe="\xd7",vs=(s=function(i){var a,C,I,P,O,n=.75*i.length,s=i.length,d=0;"="===i[i.length-1]&&(n--,"="===i[i.length-2]&&n--);var eA=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(n):new Array(n),aA=Array.isArray(eA)?eA:new Uint8Array(eA);for(a=0;a<s;a+=4)C=Oi[i.charCodeAt(a)],I=Oi[i.charCodeAt(a+1)],P=Oi[i.charCodeAt(a+2)],O=Oi[i.charCodeAt(a+3)],aA[d++]=C<<2|I>>4,aA[d++]=(15&I)<<4|P>>2,aA[d++]=(3&P)<<6|63&O;return eA}("[encoded data, 52888 characters]"),a=Array.isArray(s)?function(i){for(var n=i.length,s=[],a=0;a<n;a+=4)s.push(i[a+3]<<24|i[a+2]<<16|i[a+1]<<8|i[a]);return s}(s):new Uint32Array(s),d=Array.isArray(s)?function(i){for(var n=i.length,s=[],a=0;a<n;a+=2)s.push(i[a+1]<<8|i[a]);return s}(s):new Uint16Array(s),I=Qe(d,12,a[4]/2),P=2===a[5]?Qe(d,(24+a[4])/2):function(i,n,s){return i.slice?i.slice(n,s):new Uint32Array(Array.prototype.slice.call(i,n,s))}(a,Math.ceil((24+a[4])/4)),new Mi(a[0],a[1],a[2],a[3],I,P)),_n=[Nn,36],bc=[1,2,3,5],Lc=[Er,8],ms=[it,Ot],hl=bc.concat(Lc),yu=[Fc,ws,ni,gs,ds],Bl=[ti,Fo],Ec=function(i,n,s,a){var d=a[s];if(Array.isArray(i)?-1!==i.indexOf(d):i===d)for(var C=s;C<=a.length;){if((I=a[++C])===n)return!0;if(I!==Er)break}if(d===Er)for(C=s;C>0;){var P=a[--C];if(Array.isArray(i)?-1!==i.indexOf(P):i===P)for(var O=s;O<=a.length;){var I;if((I=a[++O])===n)return!0;if(I!==Er)break}if(P!==Er)break}return!1},Uu=function(i,n){for(var s=i;s>=0;){var a=n[s];if(a!==Er)return a;s--}return 0},bu=function(i,n,s,a,d){if(0===s[a])return Fe;var C=a-1;if(Array.isArray(d)&&!0===d[C])return Fe;var I=C-1,P=C+1,O=n[C],eA=I>=0?n[I]:0,aA=n[P];if(2===O&&3===aA)return Fe;if(-1!==bc.indexOf(O))return"!";if(-1!==bc.indexOf(aA)||-1!==Lc.indexOf(aA))return Fe;if(8===Uu(C,n))return"\xf7";if(11===vs.get(i[C])||(O===Sa||O===Ha)&&11===vs.get(i[P])||7===O||7===aA||9===O||-1===[Er,Fo,ti].indexOf(O)&&9===aA||-1!==[Bs,Ia,Cu,xa,Hn].indexOf(aA)||Uu(C,n)===ri||Ec(23,ri,C,n)||Ec([Bs,Ia],Kr,C,n)||Ec(12,12,C,n))return Fe;if(O===Er)return"\xf7";if(23===O||23===aA)return Fe;if(16===aA||16===O)return"\xf7";if(-1!==[Fo,ti,Kr].indexOf(aA)||14===O||36===eA&&-1!==Bl.indexOf(O)||O===Hn&&36===aA||aA===mc||-1!==_n.indexOf(aA)&&O===or||-1!==_n.indexOf(O)&&aA===or||O===it&&-1!==[ps,Sa,Ha].indexOf(aA)||-1!==[ps,Sa,Ha].indexOf(O)&&aA===Ot||-1!==_n.indexOf(O)&&-1!==ms.indexOf(aA)||-1!==ms.indexOf(O)&&-1!==_n.indexOf(aA)||-1!==[it,Ot].indexOf(O)&&(aA===or||-1!==[ri,ti].indexOf(aA)&&n[P+1]===or)||-1!==[ri,ti].indexOf(O)&&aA===or||O===or&&-1!==[or,Hn,xa].indexOf(aA))return Fe;if(-1!==[or,Hn,xa,Bs,Ia].indexOf(aA))for(var uA=C;uA>=0;){if((e=n[uA])===or)return Fe;if(-1===[Hn,xa].indexOf(e))break;uA--}if(-1!==[it,Ot].indexOf(aA))for(uA=-1!==[Bs,Ia].indexOf(O)?I:C;uA>=0;){var e;if((e=n[uA])===or)return Fe;if(-1===[Hn,xa].indexOf(e))break;uA--}if(Fc===O&&-1!==[Fc,ws,gs,ds].indexOf(aA)||-1!==[ws,gs].indexOf(O)&&-1!==[ws,ni].indexOf(aA)||-1!==[ni,ds].indexOf(O)&&aA===ni||-1!==yu.indexOf(O)&&-1!==[mc,Ot].indexOf(aA)||-1!==yu.indexOf(aA)&&O===it||-1!==_n.indexOf(O)&&-1!==_n.indexOf(aA)||O===xa&&-1!==_n.indexOf(aA)||-1!==_n.concat(or).indexOf(O)&&aA===ri&&-1===Na.indexOf(i[P])||-1!==_n.concat(or).indexOf(aA)&&O===Ia)return Fe;if(41===O&&41===aA){for(var c=s[C],f=1;c>0&&41===n[--c];)f++;if(f%2!=0)return Fe}return O===Sa&&aA===Ha?Fe:"\xf7"},Cs=function(i,n){n||(n={lineBreak:"normal",wordBreak:"normal"});var s=function(i,n){void 0===n&&(n="strict");var s=[],a=[],d=[];return i.forEach(function(C,I){var P=vs.get(C);if(P>50?(d.push(!0),P-=50):d.push(!1),-1!==["normal","auto","loose"].indexOf(n)&&-1!==[8208,8211,12316,12448].indexOf(C))return a.push(I),s.push(16);if(4===P||11===P){if(0===I)return a.push(I),s.push(Nn);var O=s[I-1];return-1===hl.indexOf(O)?(a.push(a[I-1]),s.push(O)):(a.push(I),s.push(Nn))}return a.push(I),31===P?s.push("strict"===n?Kr:ps):P===Qu||29===P?s.push(Nn):43===P?s.push(C>=131072&&C<=196605||C>=196608&&C<=262141?ps:Nn):void s.push(P)}),[a,s,d]}(i,n.lineBreak),a=s[0],d=s[1],C=s[2];return("break-all"===n.wordBreak||"break-word"===n.wordBreak)&&(d=d.map(function(P){return-1!==[or,Nn,Qu].indexOf(P)?ps:P})),[a,d,"keep-all"===n.wordBreak?C.map(function(P,O){return P&&i[O]>=19968&&i[O]<=40959}):void 0]},gl=function(){function i(n,s,a,d){this.codePoints=n,this.required="!"===s,this.start=a,this.end=d}return i.prototype.slice=function(){return Re.apply(void 0,this.codePoints.slice(this.start,this.end))},i}(),at=function(i){return i>=48&&i<=57},ci=function(i){return at(i)||i>=65&&i<=70||i>=97&&i<=102},Ae=function(i){return 10===i||9===i||32===i},Ve=function(i){return function(i){return function(i){return i>=97&&i<=122}(i)||function(i){return i>=65&&i<=90}(i)}(i)||function(i){return i>=128}(i)||95===i},Es=function(i){return Ve(i)||at(i)||45===i},li=function(i){return i>=0&&i<=8||11===i||i>=14&&i<=31||127===i},Ar=function(i,n){return 92===i&&10!==n},ne=function(i,n,s){return 45===i?Ve(n)||Ar(n,s):!!Ve(i)||!(92!==i||!Ar(i,n))},Rr=function(i,n,s){return 43===i||45===i?!!at(n)||46===n&&at(s):at(46===i?n:i)},Xt=function(i){var n=0,s=1;(43===i[n]||45===i[n])&&(45===i[n]&&(s=-1),n++);for(var a=[];at(i[n]);)a.push(i[n++]);var d=a.length?parseInt(Re.apply(void 0,a),10):0;46===i[n]&&n++;for(var C=[];at(i[n]);)C.push(i[n++]);var I=C.length,P=I?parseInt(Re.apply(void 0,C),10):0;(69===i[n]||101===i[n])&&n++;var O=1;(43===i[n]||45===i[n])&&(45===i[n]&&(O=-1),n++);for(var eA=[];at(i[n]);)eA.push(i[n++]);var aA=eA.length?parseInt(Re.apply(void 0,eA),10):0;return s*(d+P*Math.pow(10,-I))*Math.pow(10,O*aA)},kc={type:2},Gr={type:3},xu={type:4},Su={type:13},Hu={type:8},st={type:21},ot={type:9},ct={type:10},Nu={type:11},_u={type:12},xo={type:14},fi={type:23},Du={type:1},Tu={type:25},Ou={type:24},Pu={type:26},Kc={type:27},So={type:28},jr={type:29},Rc={type:31},Is={type:32},cr=function(){function i(){this._value=[]}return i.prototype.write=function(n){this._value=this._value.concat(nn(n))},i.prototype.read=function(){for(var n=[],s=this.consumeToken();s!==Is;)n.push(s),s=this.consumeToken();return n},i.prototype.consumeToken=function(){var n=this.consumeCodePoint();switch(n){case 34:return this.consumeStringToken(34);case 35:var s=this.peekCodePoint(0),a=this.peekCodePoint(1),d=this.peekCodePoint(2);if(Es(s)||Ar(a,d)){var C=ne(s,a,d)?2:1;return{type:5,value:this.consumeName(),flags:C}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Su;break;case 39:return this.consumeStringToken(39);case 40:return kc;case 41:return Gr;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),xo;break;case 43:if(Rr(n,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(n),this.consumeNumericToken();break;case 44:return xu;case 45:var P=n,O=this.peekCodePoint(0),eA=this.peekCodePoint(1);if(Rr(P,O,eA))return this.reconsumeCodePoint(n),this.consumeNumericToken();if(ne(P,O,eA))return this.reconsumeCodePoint(n),this.consumeIdentLikeToken();if(45===O&&62===eA)return this.consumeCodePoint(),this.consumeCodePoint(),Ou;break;case 46:if(Rr(n,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(n),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var aA=this.consumeCodePoint();if(42===aA&&47===(aA=this.consumeCodePoint()))return this.consumeToken();if(-1===aA)return this.consumeToken()}break;case 58:return Pu;case 59:return Kc;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),Tu;break;case 64:var uA=this.peekCodePoint(0),e=this.peekCodePoint(1),c=this.peekCodePoint(2);if(ne(uA,e,c))return{type:7,value:this.consumeName()};break;case 91:return So;case 92:if(Ar(n,this.peekCodePoint(0)))return this.reconsumeCodePoint(n),this.consumeIdentLikeToken();break;case 93:return jr;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Hu;break;case 123:return Nu;case 125:return _u;case 117:case 85:var f=this.peekCodePoint(0),w=this.peekCodePoint(1);return 43===f&&(ci(w)||63===w)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(n),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ot;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),st;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ct;break;case-1:return Is}return Ae(n)?(this.consumeWhiteSpace(),Rc):at(n)?(this.reconsumeCodePoint(n),this.consumeNumericToken()):Ve(n)?(this.reconsumeCodePoint(n),this.consumeIdentLikeToken()):{type:6,value:Re(n)}},i.prototype.consumeCodePoint=function(){var n=this._value.shift();return typeof n>"u"?-1:n},i.prototype.reconsumeCodePoint=function(n){this._value.unshift(n)},i.prototype.peekCodePoint=function(n){return n>=this._value.length?-1:this._value[n]},i.prototype.consumeUnicodeRangeToken=function(){for(var n=[],s=this.consumeCodePoint();ci(s)&&n.length<6;)n.push(s),s=this.consumeCodePoint();for(var a=!1;63===s&&n.length<6;)n.push(s),s=this.consumeCodePoint(),a=!0;if(a)return{type:30,start:parseInt(Re.apply(void 0,n.map(function(O){return 63===O?48:O})),16),end:parseInt(Re.apply(void 0,n.map(function(O){return 63===O?70:O})),16)};var I=parseInt(Re.apply(void 0,n),16);if(45===this.peekCodePoint(0)&&ci(this.peekCodePoint(1))){this.consumeCodePoint(),s=this.consumeCodePoint();for(var P=[];ci(s)&&P.length<6;)P.push(s),s=this.consumeCodePoint();return{type:30,start:I,end:parseInt(Re.apply(void 0,P),16)}}return{type:30,start:I,end:I}},i.prototype.consumeIdentLikeToken=function(){var n=this.consumeName();return"url"===n.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:n}):{type:20,value:n}},i.prototype.consumeUrlToken=function(){var n=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var s=this.peekCodePoint(0);if(39===s||34===s){var a=this.consumeStringToken(this.consumeCodePoint());return 0===a.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:a.value}):(this.consumeBadUrlRemnants(),fi)}for(;;){var d=this.consumeCodePoint();if(-1===d||41===d)return{type:22,value:Re.apply(void 0,n)};if(Ae(d))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:Re.apply(void 0,n)}):(this.consumeBadUrlRemnants(),fi);if(34===d||39===d||40===d||li(d))return this.consumeBadUrlRemnants(),fi;if(92===d){if(!Ar(d,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),fi;n.push(this.consumeEscapedCodePoint())}else n.push(d)}},i.prototype.consumeWhiteSpace=function(){for(;Ae(this.peekCodePoint(0));)this.consumeCodePoint()},i.prototype.consumeBadUrlRemnants=function(){for(;;){var n=this.consumeCodePoint();if(41===n||-1===n)return;Ar(n,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},i.prototype.consumeStringSlice=function(n){for(var a="";n>0;){var d=Math.min(5e4,n);a+=Re.apply(void 0,this._value.splice(0,d)),n-=d}return this._value.shift(),a},i.prototype.consumeStringToken=function(n){for(var s="",a=0;;){var d=this._value[a];if(-1===d||void 0===d||d===n)return{type:0,value:s+=this.consumeStringSlice(a)};if(10===d)return this._value.splice(0,a),Du;if(92===d){var C=this._value[a+1];-1!==C&&void 0!==C&&(10===C?(s+=this.consumeStringSlice(a),a=-1,this._value.shift()):Ar(d,C)&&(s+=this.consumeStringSlice(a),s+=Re(this.consumeEscapedCodePoint()),a=-1))}a++}},i.prototype.consumeNumber=function(){var n=[],s=4,a=this.peekCodePoint(0);for((43===a||45===a)&&n.push(this.consumeCodePoint());at(this.peekCodePoint(0));)n.push(this.consumeCodePoint());a=this.peekCodePoint(0);var d=this.peekCodePoint(1);if(46===a&&at(d))for(n.push(this.consumeCodePoint(),this.consumeCodePoint()),s=8;at(this.peekCodePoint(0));)n.push(this.consumeCodePoint());a=this.peekCodePoint(0),d=this.peekCodePoint(1);var C=this.peekCodePoint(2);if((69===a||101===a)&&((43===d||45===d)&&at(C)||at(d)))for(n.push(this.consumeCodePoint(),this.consumeCodePoint()),s=8;at(this.peekCodePoint(0));)n.push(this.consumeCodePoint());return[Xt(n),s]},i.prototype.consumeNumericToken=function(){var n=this.consumeNumber(),s=n[0],a=n[1],d=this.peekCodePoint(0),C=this.peekCodePoint(1),I=this.peekCodePoint(2);return ne(d,C,I)?{type:15,number:s,flags:a,unit:this.consumeName()}:37===d?(this.consumeCodePoint(),{type:16,number:s,flags:a}):{type:17,number:s,flags:a}},i.prototype.consumeEscapedCodePoint=function(){var n=this.consumeCodePoint();if(ci(n)){for(var s=Re(n);ci(this.peekCodePoint(0))&&s.length<6;)s+=Re(this.consumeCodePoint());Ae(this.peekCodePoint(0))&&this.consumeCodePoint();var a=parseInt(s,16);return 0===a||function(i){return i>=55296&&i<=57343}(a)||a>1114111?65533:a}return-1===n?65533:n},i.prototype.consumeName=function(){for(var n="";;){var s=this.consumeCodePoint();if(Es(s))n+=Re(s);else{if(!Ar(s,this.peekCodePoint(0)))return this.reconsumeCodePoint(s),n;n+=Re(this.consumeEscapedCodePoint())}}},i}(),Pn=function(){function i(n){this._tokens=n}return i.create=function(n){var s=new cr;return s.write(n),new i(s.read())},i.parseValue=function(n){return i.create(n).parseComponentValue()},i.parseValues=function(n){return i.create(n).parseComponentValues()},i.prototype.parseComponentValue=function(){for(var n=this.consumeToken();31===n.type;)n=this.consumeToken();if(32===n.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(n);var s=this.consumeComponentValue();do{n=this.consumeToken()}while(31===n.type);if(32===n.type)return s;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},i.prototype.parseComponentValues=function(){for(var n=[];;){var s=this.consumeComponentValue();if(32===s.type)return n;n.push(s),n.push()}},i.prototype.consumeComponentValue=function(){var n=this.consumeToken();switch(n.type){case 11:case 28:case 2:return this.consumeSimpleBlock(n.type);case 19:return this.consumeFunction(n)}return n},i.prototype.consumeSimpleBlock=function(n){for(var s={type:n,values:[]},a=this.consumeToken();;){if(32===a.type||kn(a,n))return s;this.reconsumeToken(a),s.values.push(this.consumeComponentValue()),a=this.consumeToken()}},i.prototype.consumeFunction=function(n){for(var s={name:n.value,values:[],type:18};;){var a=this.consumeToken();if(32===a.type||3===a.type)return s;this.reconsumeToken(a),s.values.push(this.consumeComponentValue())}},i.prototype.consumeToken=function(){var n=this._tokens.shift();return typeof n>"u"?Is:n},i.prototype.reconsumeToken=function(n){this._tokens.unshift(n)},i}(),Ir=function(i){return 15===i.type},ur=function(i){return 17===i.type},Ee=function(i){return 20===i.type},Bt=function(i){return 0===i.type},hi=function(i,n){return Ee(i)&&i.value===n},Mn=function(i){return 31!==i.type},on=function(i){return 31!==i.type&&4!==i.type},Jt=function(i){var n=[],s=[];return i.forEach(function(a){if(4===a.type){if(0===s.length)throw new Error("Error parsing function args, zero tokens for arg");return n.push(s),void(s=[])}31!==a.type&&s.push(a)}),s.length&&n.push(s),n},kn=function(i,n){return 11===n&&12===i.type||28===n&&29===i.type||2===n&&3===i.type},lr=function(i){return 17===i.type||15===i.type},OA=function(i){return 16===i.type||lr(i)},Gc=function(i){return i.length>1?[i[0],i[1]]:[i[0]]},yt={type:17,number:0,flags:4},xs={type:16,number:50,flags:4},cn={type:16,number:100,flags:4},ji=function(i,n,s){var a=i[0],d=i[1];return[De(a,n),De(typeof d<"u"?d:a,s)]},De=function(i,n){if(16===i.type)return i.number/100*n;if(Ir(i))switch(i.unit){case"rem":case"em":return 16*i.number;default:return i.number}return i.number},Hs_parse=function(i,n){if(15===n.type)switch(n.unit){case"deg":return Math.PI*n.number/180;case"grad":return Math.PI/200*n.number;case"rad":return n.number;case"turn":return 2*Math.PI*n.number}throw new Error("Unsupported angle type")},_o=function(i){return 15===i.type&&("deg"===i.unit||"grad"===i.unit||"rad"===i.unit||"turn"===i.unit)},Do=function(i){switch(i.filter(Ee).map(function(s){return s.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[yt,yt];case"to top":case"bottom":return fr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[yt,cn];case"to right":case"left":return fr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[cn,cn];case"to bottom":case"top":return fr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[cn,yt];case"to left":case"right":return fr(270)}return 0},fr=function(i){return Math.PI*i/180},un_parse=function(i,n){if(18===n.type){var s=Ns[n.name];if(typeof s>"u")throw new Error('Attempting to parse an unsupported color function "'+n.name+'"');return s(i,n.values)}if(5===n.type){if(3===n.value.length){var a=n.value.substring(0,1),d=n.value.substring(1,2),C=n.value.substring(2,3);return xr(parseInt(a+a,16),parseInt(d+d,16),parseInt(C+C,16),1)}if(4===n.value.length){a=n.value.substring(0,1),d=n.value.substring(1,2),C=n.value.substring(2,3);var I=n.value.substring(3,4);return xr(parseInt(a+a,16),parseInt(d+d,16),parseInt(C+C,16),parseInt(I+I,16)/255)}if(6===n.value.length)return a=n.value.substring(0,2),d=n.value.substring(2,4),C=n.value.substring(4,6),xr(parseInt(a,16),parseInt(d,16),parseInt(C,16),1);if(8===n.value.length)return a=n.value.substring(0,2),d=n.value.substring(2,4),C=n.value.substring(4,6),I=n.value.substring(6,8),xr(parseInt(a,16),parseInt(d,16),parseInt(C,16),parseInt(I,16)/255)}if(20===n.type){var P=Vr[n.value.toUpperCase()];if(typeof P<"u")return P}return Vr.TRANSPARENT},Kn=function(i){return 0==(255&i)},vt=function(i){var n=255&i,s=255&i>>8,a=255&i>>16,d=255&i>>24;return n<255?"rgba("+d+","+a+","+s+","+n/255+")":"rgb("+d+","+a+","+s+")"},xr=function(i,n,s,a){return(i<<24|n<<16|s<<8|Math.round(255*a)<<0)>>>0},To=function(i,n){if(17===i.type)return i.number;if(16===i.type){var s=3===n?1:255;return 3===n?i.number/100*s:Math.round(i.number/100*s)}return 0},Oo=function(i,n){var s=n.filter(on);if(3===s.length){var a=s.map(To);return xr(a[0],a[1],a[2],1)}if(4===s.length){var P=s.map(To);return xr(P[0],P[1],P[2],P[3])}return 0};function Ma(i,n,s){return s<0&&(s+=1),s>=1&&(s-=1),s<1/6?(n-i)*s*6+i:s<.5?n:s<2/3?6*(n-i)*(2/3-s)+i:i}var Bi=function(i,n){var s=n.filter(on),a=s[0],d=s[1],C=s[2],I=s[3],P=(17===a.type?fr(a.number):Hs_parse(i,a))/(2*Math.PI),O=OA(d)?d.number/100:0,eA=OA(C)?C.number/100:0,aA=typeof I<"u"&&OA(I)?De(I,1):1;if(0===O)return xr(255*eA,255*eA,255*eA,1);var uA=eA<=.5?eA*(O+1):eA+O-eA*O,e=2*eA-uA,c=Ma(e,uA,P+1/3),f=Ma(e,uA,P),w=Ma(e,uA,P-1/3);return xr(255*c,255*f,255*w,aA)},Ns={hsl:Bi,hsla:Bi,rgb:Oo,rgba:Oo},Vi=function(i,n){return un_parse(i,Pn.create(n).parseComponentValue())},Vr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Vc={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(i,n){return n.map(function(s){if(Ee(s))switch(s.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Mu={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_s=function(i,n){var s=un_parse(i,n[0]),a=n[1];return a&&OA(a)?{color:s,stop:a}:{color:s,stop:null}},Po=function(i,n){var s=i[0],a=i[i.length-1];null===s.stop&&(s.stop=yt),null===a.stop&&(a.stop=cn);for(var d=[],C=0,I=0;I<i.length;I++){var P=i[I].stop;if(null!==P){var O=De(P,n);d.push(O>C?O:C),C=O}else d.push(null)}var eA=null;for(I=0;I<d.length;I++){var aA=d[I];if(null===aA)null===eA&&(eA=I);else if(null!==eA){for(var uA=I-eA,c=(aA-d[eA-1])/(uA+1),f=1;f<=uA;f++)d[eA+f-1]=c*f;eA=null}}return i.map(function(w,Q){return{color:w.color,stop:Math.max(Math.min(1,d[Q]/n),0)}})},Sr=function(i,n,s){var a="number"==typeof i?i:function(i,n,s){var a=n/2,d=s/2,C=De(i[0],n)-a,I=d-De(i[1],s);return(Math.atan2(I,C)+2*Math.PI)%(2*Math.PI)}(i,n,s),d=Math.abs(n*Math.sin(a))+Math.abs(s*Math.cos(a)),C=n/2,I=s/2,P=d/2,O=Math.sin(a-Math.PI/2)*P,eA=Math.cos(a-Math.PI/2)*P;return[d,C-eA,C+eA,I-O,I+O]},hr=function(i,n){return Math.sqrt(i*i+n*n)},Br=function(i,n,s,a,d){return[[0,0],[0,n],[i,0],[i,n]].reduce(function(I,P){var aA=hr(s-P[0],a-P[1]);return(d?aA<I.optimumDistance:aA>I.optimumDistance)?{optimumCorner:P,optimumDistance:aA}:I},{optimumDistance:d?1/0:-1/0,optimumCorner:null}).optimumCorner},Ds=function(i,n){var s=fr(180),a=[];return Jt(n).forEach(function(d,C){if(0===C){var I=d[0];if(20===I.type&&-1!==["top","left","right","bottom"].indexOf(I.value))return void(s=Do(d));if(_o(I))return void(s=(Hs_parse(i,I)+fr(270))%fr(360))}var P=_s(i,d);a.push(P)}),{angle:s,stops:a,type:1}},qc="closest-side",ko="farthest-side",Ko="closest-corner",zc="farthest-corner",Xc="ellipse",Yc="contain",Ts=function(i,n){var s=0,a=3,d=[],C=[];return Jt(n).forEach(function(I,P){var O=!0;if(0===P?O=I.reduce(function(aA,uA){if(Ee(uA))switch(uA.value){case"center":return C.push(xs),!1;case"top":case"left":return C.push(yt),!1;case"right":case"bottom":return C.push(cn),!1}else if(OA(uA)||lr(uA))return C.push(uA),!1;return aA},O):1===P&&(O=I.reduce(function(aA,uA){if(Ee(uA))switch(uA.value){case"circle":return s=0,!1;case Xc:return s=1,!1;case Yc:case qc:return a=0,!1;case ko:return a=1,!1;case Ko:return a=2,!1;case"cover":case zc:return a=3,!1}else if(lr(uA)||OA(uA))return Array.isArray(a)||(a=[]),a.push(uA),!1;return aA},O)),O){var eA=_s(i,I);d.push(eA)}}),{size:a,shape:s,stops:d,position:C,type:2}},Ro_parse=function(i,n){if(22===n.type){var s={url:n.value,type:0};return i.cache.addImage(n.value),s}if(18===n.type){var a=$c[n.name];if(typeof a>"u")throw new Error('Attempting to parse an unsupported image function "'+n.name+'"');return a(i,n.values)}throw new Error("Unsupported image type "+n.type)};for(var $c={"linear-gradient":function(i,n){var s=fr(180),a=[];return Jt(n).forEach(function(d,C){if(0===C){var I=d[0];if(20===I.type&&"to"===I.value)return void(s=Do(d));if(_o(I))return void(s=Hs_parse(i,I))}var P=_s(i,d);a.push(P)}),{angle:s,stops:a,type:1}},"-moz-linear-gradient":Ds,"-ms-linear-gradient":Ds,"-o-linear-gradient":Ds,"-webkit-linear-gradient":Ds,"radial-gradient":function(i,n){var s=0,a=3,d=[],C=[];return Jt(n).forEach(function(I,P){var O=!0;if(0===P){var eA=!1;O=I.reduce(function(uA,e){if(eA)if(Ee(e))switch(e.value){case"center":return C.push(xs),uA;case"top":case"left":return C.push(yt),uA;case"right":case"bottom":return C.push(cn),uA}else(OA(e)||lr(e))&&C.push(e);else if(Ee(e))switch(e.value){case"circle":return s=0,!1;case Xc:return s=1,!1;case"at":return eA=!0,!1;case qc:return a=0,!1;case"cover":case ko:return a=1,!1;case Yc:case Ko:return a=2,!1;case zc:return a=3,!1}else if(lr(e)||OA(e))return Array.isArray(a)||(a=[]),a.push(e),!1;return uA},O)}if(O){var aA=_s(i,I);d.push(aA)}}),{size:a,shape:s,stops:d,position:C,type:2}},"-moz-radial-gradient":Ts,"-ms-radial-gradient":Ts,"-o-radial-gradient":Ts,"-webkit-radial-gradient":Ts,"-webkit-gradient":function(i,n){var s=fr(180),a=[],d=1;return Jt(n).forEach(function(O,eA){var aA=O[0];if(0===eA){if(Ee(aA)&&"linear"===aA.value)return void(d=1);if(Ee(aA)&&"radial"===aA.value)return void(d=2)}if(18===aA.type)if("from"===aA.name){var uA=un_parse(i,aA.values[0]);a.push({stop:yt,color:uA})}else if("to"===aA.name)uA=un_parse(i,aA.values[0]),a.push({stop:cn,color:uA});else if("color-stop"===aA.name){var e=aA.values.filter(on);if(2===e.length){uA=un_parse(i,e[1]);var c=e[0];ur(c)&&a.push({stop:{type:16,number:100*c.number,flags:c.flags},color:uA})}}}),1===d?{angle:(s+fr(180))%fr(360),stops:a,type:d}:{size:3,shape:0,stops:a,position:[],type:d}}},ju={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(i,n){if(0===n.length)return[];var s=n[0];return 20===s.type&&"none"===s.value?[]:n.filter(function(a){return on(a)&&function Gu(i){return!(20===i.type&&"none"===i.value||18===i.type&&!$c[i.name])}(a)}).map(function(a){return Ro_parse(i,a)})}},Vu={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(i,n){return n.map(function(s){if(Ee(s))switch(s.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},r={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(i,n){return Jt(n).map(function(s){return s.filter(OA)}).map(Gc)}},A={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(i,n){return Jt(n).map(function(s){return s.filter(Ee).map(function(a){return a.value}).join(" ")}).map(t)}},t=function(i){switch(i){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},o=function(i){return i.AUTO="auto",i.CONTAIN="contain",i.COVER="cover",i}(o||{}),l={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(i,n){return Jt(n).map(function(s){return s.filter(u)})}},u=function(i){return Ee(i)||OA(i)},B=function(i){return{name:"border-"+i+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},g=B("top"),p=B("right"),m=B("bottom"),U=B("left"),b=function(i){return{name:"border-radius-"+i,initialValue:"0 0",prefix:!1,type:1,parse:function(n,s){return Gc(s.filter(OA))}}},H=b("top-left"),v=b("top-right"),K=b("bottom-right"),T=b("bottom-left"),R=function(i){return{name:"border-"+i+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(n,s){switch(s){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},N=R("top"),j=R("right"),rA=R("bottom"),cA=R("left"),vA=function(i){return{name:"border-"+i+"-width",initialValue:"0",type:0,prefix:!1,parse:function(n,s){return Ir(s)?s.number:0}}},SA=vA("top"),lA=vA("right"),J=vA("bottom"),fA=vA("left"),bA={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},D={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(i,n){return"rtl"===n?1:0}},M={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(i,n){return n.filter(Ee).reduce(function(s,a){return s|tA(a.value)},0)}},tA=function(i){switch(i){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},X={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(i,n){switch(n){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},mA={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(i,n){return 20===n.type&&"normal"===n.value?0:17===n.type||15===n.type?n.number:0}},dA=function(i){return i.NORMAL="normal",i.STRICT="strict",i}(dA||{}),yA={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(i,n){return"strict"===n?dA.STRICT:dA.NORMAL}},hA={name:"line-height",initialValue:"normal",prefix:!1,type:4},UA=function(i,n){return Ee(i)&&"normal"===i.value?1.2*n:17===i.type?n*i.number:OA(i)?De(i,n):n},IA={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(i,n){return 20===n.type&&"none"===n.value?null:Ro_parse(i,n)}},qA={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(i,n){return"inside"===n?0:1}},x={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(i,n){switch(n){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},G=function(i){return{name:"margin-"+i,initialValue:"0",prefix:!1,type:4}},q=G("top"),AA=G("right"),sA=G("bottom"),BA=G("left"),pA={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(i,n){return n.filter(Ee).map(function(s){switch(s.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},wA={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(i,n){return"break-word"===n?"break-word":"normal"}},DA=function(i){return{name:"padding-"+i,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},_A=DA("top"),VA=DA("right"),GA=DA("bottom"),re=DA("left"),EA={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(i,n){switch(n){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},z={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(i,n){switch(n){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},le={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(i,n){return 1===n.length&&hi(n[0],"none")?[]:Jt(n).map(function(s){for(var a={color:Vr.TRANSPARENT,offsetX:yt,offsetY:yt,blur:yt},d=0,C=0;C<s.length;C++){var I=s[C];lr(I)?(0===d?a.offsetX=I:1===d?a.offsetY=I:a.blur=I,d++):a.color=un_parse(i,I)}return a})}},YA={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(i,n){switch(n){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},NA={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(i,n){if(20===n.type&&"none"===n.value)return null;if(18===n.type){var s=jA[n.name];if(typeof s>"u")throw new Error('Attempting to parse an unsupported transform function "'+n.name+'"');return s(n.values)}return null}},jA={matrix:function(i){var n=i.filter(function(s){return 17===s.type}).map(function(s){return s.number});return 6===n.length?n:null},matrix3d:function(i){var n=i.filter(function(O){return 17===O.type}).map(function(O){return O.number});return 16===n.length?[n[0],n[1],n[4],n[5],n[12],n[13]]:null}},ZA={type:16,number:50,flags:4},ce=[ZA,ZA],Be={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(i,n){var s=n.filter(OA);return 2!==s.length?ce:[s[0],s[1]]}},de={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(i,n){switch(n){case"hidden":return 1;case"collapse":return 2;default:return 0}}},ve=function(i){return i.NORMAL="normal",i.BREAK_ALL="break-all",i.KEEP_ALL="keep-all",i}(ve||{}),Te={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(i,n){switch(n){case"break-all":return ve.BREAK_ALL;case"keep-all":return ve.KEEP_ALL;default:return ve.NORMAL}}},ie={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(i,n){if(20===n.type)return{auto:!0,order:0};if(ur(n))return{auto:!1,order:n.number};throw new Error("Invalid z-index number parsed")}},pe={name:"time",parse:function(i,n){if(15===n.type)switch(n.unit.toLowerCase()){case"s":return 1e3*n.number;case"ms":return n.number}throw new Error("Unsupported time type")}},WA={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(i,n){return ur(n)?n.number:1}},Ht={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ie={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(i,n){return n.filter(Ee).map(function(s){switch(s.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(s){return 0!==s})}},Hr={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(i,n){var s=[],a=[];return n.forEach(function(d){switch(d.type){case 20:case 0:s.push(d.value);break;case 17:s.push(d.number.toString());break;case 4:a.push(s.join(" ")),s.length=0}}),s.length&&a.push(s.join(" ")),a.map(function(d){return-1===d.indexOf(" ")?d:"'"+d+"'"})}},Pe={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},We={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(i,n){return ur(n)?n.number:Ee(n)&&"bold"===n.value?700:400}},zr={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(i,n){return n.filter(Ee).map(function(s){return s.value})}},Ne={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(i,n){switch(n){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},qe=function(i,n){return 0!=(i&n)},et={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(i,n){if(0===n.length)return[];var s=n[0];return 20===s.type&&"none"===s.value?[]:n}},Nr={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(i,n){if(0===n.length)return null;var s=n[0];if(20===s.type&&"none"===s.value)return null;for(var a=[],d=n.filter(Mn),C=0;C<d.length;C++){var I=d[C],P=d[C+1];if(20===I.type){var O=P&&ur(P)?P.number:1;a.push({counter:I.value,increment:O})}}return a}},ln={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(i,n){if(0===n.length)return[];for(var s=[],a=n.filter(Mn),d=0;d<a.length;d++){var C=a[d],I=a[d+1];if(Ee(C)&&"none"!==C.value){var P=I&&ur(I)?I.number:0;s.push({counter:C.value,reset:P})}}return s}},tt={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(i,n){return n.filter(Ir).map(function(s){return pe.parse(i,s)})}},ue={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(i,n){if(0===n.length)return null;var s=n[0];if(20===s.type&&"none"===s.value)return null;var a=[],d=n.filter(Bt);if(d.length%2!=0)return null;for(var C=0;C<d.length;C+=2)a.push({open:d[C].value,close:d[C+1].value});return a}},He=function(i,n,s){if(!i)return"";var a=i[Math.min(n,i.length-1)];return a?s?a.open:a.close:""},gi={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(i,n){return 1===n.length&&hi(n[0],"none")?[]:Jt(n).map(function(s){for(var a={color:255,offsetX:yt,offsetY:yt,blur:yt,spread:yt,inset:!1},d=0,C=0;C<s.length;C++){var I=s[C];hi(I,"inset")?a.inset=!0:lr(I)?(0===d?a.offsetX=I:1===d?a.offsetY=I:2===d?a.blur=I:a.spread=I,d++):a.color=un_parse(i,I)}return a})}},Ut={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(i,n){var a=[];return n.filter(Ee).forEach(function(d){switch(d.value){case"stroke":a.push(1);break;case"fill":a.push(0);break;case"markers":a.push(2)}}),[0,1,2].forEach(function(d){-1===a.indexOf(d)&&a.push(d)}),a}},Wr={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Xr={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(i,n){return Ir(n)?n.number:0}},ee=function(){function i(n,s){var a,d;this.animationDuration=kA(n,tt,s.animationDuration),this.backgroundClip=kA(n,Vc,s.backgroundClip),this.backgroundColor=kA(n,Mu,s.backgroundColor),this.backgroundImage=kA(n,ju,s.backgroundImage),this.backgroundOrigin=kA(n,Vu,s.backgroundOrigin),this.backgroundPosition=kA(n,r,s.backgroundPosition),this.backgroundRepeat=kA(n,A,s.backgroundRepeat),this.backgroundSize=kA(n,l,s.backgroundSize),this.borderTopColor=kA(n,g,s.borderTopColor),this.borderRightColor=kA(n,p,s.borderRightColor),this.borderBottomColor=kA(n,m,s.borderBottomColor),this.borderLeftColor=kA(n,U,s.borderLeftColor),this.borderTopLeftRadius=kA(n,H,s.borderTopLeftRadius),this.borderTopRightRadius=kA(n,v,s.borderTopRightRadius),this.borderBottomRightRadius=kA(n,K,s.borderBottomRightRadius),this.borderBottomLeftRadius=kA(n,T,s.borderBottomLeftRadius),this.borderTopStyle=kA(n,N,s.borderTopStyle),this.borderRightStyle=kA(n,j,s.borderRightStyle),this.borderBottomStyle=kA(n,rA,s.borderBottomStyle),this.borderLeftStyle=kA(n,cA,s.borderLeftStyle),this.borderTopWidth=kA(n,SA,s.borderTopWidth),this.borderRightWidth=kA(n,lA,s.borderRightWidth),this.borderBottomWidth=kA(n,J,s.borderBottomWidth),this.borderLeftWidth=kA(n,fA,s.borderLeftWidth),this.boxShadow=kA(n,gi,s.boxShadow),this.color=kA(n,bA,s.color),this.direction=kA(n,D,s.direction),this.display=kA(n,M,s.display),this.float=kA(n,X,s.cssFloat),this.fontFamily=kA(n,Hr,s.fontFamily),this.fontSize=kA(n,Pe,s.fontSize),this.fontStyle=kA(n,Ne,s.fontStyle),this.fontVariant=kA(n,zr,s.fontVariant),this.fontWeight=kA(n,We,s.fontWeight),this.letterSpacing=kA(n,mA,s.letterSpacing),this.lineBreak=kA(n,yA,s.lineBreak),this.lineHeight=kA(n,hA,s.lineHeight),this.listStyleImage=kA(n,IA,s.listStyleImage),this.listStylePosition=kA(n,qA,s.listStylePosition),this.listStyleType=kA(n,x,s.listStyleType),this.marginTop=kA(n,q,s.marginTop),this.marginRight=kA(n,AA,s.marginRight),this.marginBottom=kA(n,sA,s.marginBottom),this.marginLeft=kA(n,BA,s.marginLeft),this.opacity=kA(n,WA,s.opacity);var C=kA(n,pA,s.overflow);this.overflowX=C[0],this.overflowY=C[C.length>1?1:0],this.overflowWrap=kA(n,wA,s.overflowWrap),this.paddingTop=kA(n,_A,s.paddingTop),this.paddingRight=kA(n,VA,s.paddingRight),this.paddingBottom=kA(n,GA,s.paddingBottom),this.paddingLeft=kA(n,re,s.paddingLeft),this.paintOrder=kA(n,Ut,s.paintOrder),this.position=kA(n,z,s.position),this.textAlign=kA(n,EA,s.textAlign),this.textDecorationColor=kA(n,Ht,null!==(a=s.textDecorationColor)&&void 0!==a?a:s.color),this.textDecorationLine=kA(n,Ie,null!==(d=s.textDecorationLine)&&void 0!==d?d:s.textDecoration),this.textShadow=kA(n,le,s.textShadow),this.textTransform=kA(n,YA,s.textTransform),this.transform=kA(n,NA,s.transform),this.transformOrigin=kA(n,Be,s.transformOrigin),this.visibility=kA(n,de,s.visibility),this.webkitTextStrokeColor=kA(n,Wr,s.webkitTextStrokeColor),this.webkitTextStrokeWidth=kA(n,Xr,s.webkitTextStrokeWidth),this.wordBreak=kA(n,Te,s.wordBreak),this.zIndex=kA(n,ie,s.zIndex)}return i.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},i.prototype.isTransparent=function(){return Kn(this.backgroundColor)},i.prototype.isTransformed=function(){return null!==this.transform},i.prototype.isPositioned=function(){return 0!==this.position},i.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},i.prototype.isFloating=function(){return 0!==this.float},i.prototype.isInlineLevel=function(){return qe(this.display,4)||qe(this.display,33554432)||qe(this.display,268435456)||qe(this.display,536870912)||qe(this.display,67108864)||qe(this.display,134217728)},i}(),_r=function i(n,s){this.content=kA(n,et,s.content),this.quotes=kA(n,ue,s.quotes)},Dr=function i(n,s){this.counterIncrement=kA(n,Nr,s.counterIncrement),this.counterReset=kA(n,ln,s.counterReset)},kA=function(i,n,s){var a=new cr,d=null!==s&&typeof s<"u"?s.toString():n.initialValue;a.write(d);var C=new Pn(a.read());switch(n.type){case 2:var I=C.parseComponentValue();return n.parse(i,Ee(I)?I.value:n.initialValue);case 0:return n.parse(i,C.parseComponentValue());case 1:return n.parse(i,C.parseComponentValues());case 4:return C.parseComponentValue();case 3:switch(n.format){case"angle":return Hs_parse(i,C.parseComponentValue());case"color":return un_parse(i,C.parseComponentValue());case"image":return Ro_parse(i,C.parseComponentValue());case"length":var P=C.parseComponentValue();return lr(P)?P:yt;case"length-percentage":var O=C.parseComponentValue();return OA(O)?O:yt;case"time":return pe.parse(i,C.parseComponentValue())}}},Pt=function(i,n){var s=function(i){switch(i.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(i);return 1===s||n===s},Mt=function i(n,s){this.context=n,this.textNodes=[],this.elements=[],this.flags=0,Pt(s,3),this.styles=new ee(n,window.getComputedStyle(s,null)),oA(s)&&(this.styles.animationDuration.some(function(a){return a>0})&&(s.style.animationDuration="0s"),null!==this.styles.transform&&(s.style.transform="none")),this.bounds=In(this.context,s),Pt(s,4)&&(this.flags|=16)},gr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kt=typeof Uint8Array>"u"?[]:new Uint8Array(256),Yt=0;Yt<64;Yt++)kt[gr.charCodeAt(Yt)]=Yt;for(var pi=function(i,n,s){return i.slice?i.slice(n,s):new Uint16Array(Array.prototype.slice.call(i,n,s))},ks=function(){function i(n,s,a,d,C,I){this.initialValue=n,this.errorValue=s,this.highStart=a,this.highValueIndex=d,this.index=C,this.data=I}return i.prototype.get=function(n){var s;if(n>=0){if(n<55296||n>56319&&n<=65535)return this.data[s=((s=this.index[n>>5])<<2)+(31&n)];if(n<=65535)return this.data[s=((s=this.index[2048+(n-55296>>5)])<<2)+(31&n)];if(n<this.highStart)return s=this.index[s=2080+(n>>11)],this.data[s=((s=this.index[s+=n>>5&63])<<2)+(31&n)];if(n<=1114111)return this.data[this.highValueIndex]}return this.errorValue},i}(),Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ks=typeof Uint8Array>"u"?[]:new Uint8Array(256),Vn=0;Vn<64;Vn++)Ks[Ra.charCodeAt(Vn)]=Vn;var Gs=8,Xi=9,ja=11,js=12,hn=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(String.fromCodePoint)return String.fromCodePoint.apply(String,i);var s=i.length;if(!s)return"";for(var a=[],d=-1,C="";++d<s;){var I=i[d];I<=65535?a.push(I):a.push(55296+((I-=65536)>>10),I%1024+56320),(d+1===s||a.length>16384)&&(C+=String.fromCharCode.apply(String,a),a.length=0)}return C},Yi=function(i,n){var s=function(i){var a,C,I,P,O,n=.75*i.length,s=i.length,d=0;"="===i[i.length-1]&&(n--,"="===i[i.length-2]&&n--);var eA=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(n):new Array(n),aA=Array.isArray(eA)?eA:new Uint8Array(eA);for(a=0;a<s;a+=4)C=kt[i.charCodeAt(a)],I=kt[i.charCodeAt(a+1)],P=kt[i.charCodeAt(a+2)],O=kt[i.charCodeAt(a+3)],aA[d++]=C<<2|I>>4,aA[d++]=(15&I)<<4|P>>2,aA[d++]=(3&P)<<6|63&O;return eA}(i),a=Array.isArray(s)?function(i){for(var n=i.length,s=[],a=0;a<n;a+=4)s.push(i[a+3]<<24|i[a+2]<<16|i[a+1]<<8|i[a]);return s}(s):new Uint32Array(s),d=Array.isArray(s)?function(i){for(var n=i.length,s=[],a=0;a<n;a+=2)s.push(i[a+1]<<8|i[a]);return s}(s):new Uint16Array(s),I=pi(d,12,a[4]/2),P=2===a[5]?pi(d,(24+a[4])/2):function(i,n,s){return i.slice?i.slice(n,s):new Uint32Array(Array.prototype.slice.call(i,n,s))}(a,Math.ceil((24+a[4])/4));return new ks(a[0],a[1],a[2],a[3],I,P)}("[encoded data, 26156 characters]"),Nt=function(i){return Yi.get(i)},Jo=function(i,n,s){var a=s-2,d=n[a],C=n[s-1],I=n[s];if(2===C&&3===I)return"\xd7";if(2===C||3===C||4===C||2===I||3===I||4===I)return"\xf7";if(C===Gs&&-1!==[Gs,Xi,ja,js].indexOf(I)||(C===ja||C===Xi)&&(I===Xi||10===I)||(C===js||10===C)&&10===I||13===I||5===I||7===I||1===C)return"\xd7";if(13===C&&14===I){for(;5===d;)d=n[--a];if(14===d)return"\xd7"}if(15===C&&15===I){for(var P=0;15===d;)P++,d=n[--a];if(P%2==0)return"\xd7"}return"\xf7"},qs=function(i){var n=function(i){for(var n=[],s=0,a=i.length;s<a;){var d=i.charCodeAt(s++);if(d>=55296&&d<=56319&&s<a){var C=i.charCodeAt(s++);56320==(64512&C)?n.push(((1023&d)<<10)+(1023&C)+65536):(n.push(d),s--)}else n.push(d)}return n}(i),s=n.length,a=0,d=0,C=n.map(Nt);return{next:function(){if(a>=s)return{done:!0,value:null};for(var I="\xd7";a<s&&"\xd7"===(I=Jo(0,C,++a)););if("\xd7"!==I||a===s){var P=hn.apply(null,n.slice(d,a));return d=a,{value:P,done:!1}}return{done:!0,value:null}}}},wi=function(i){return 0===i[0]&&255===i[1]&&0===i[2]&&255===i[3]},za=function(i,n,s,a,d){var C="http://www.w3.org/2000/svg",I=document.createElementNS(C,"svg"),P=document.createElementNS(C,"foreignObject");return I.setAttributeNS(null,"width",i.toString()),I.setAttributeNS(null,"height",n.toString()),P.setAttributeNS(null,"width","100%"),P.setAttributeNS(null,"height","100%"),P.setAttributeNS(null,"x",s.toString()),P.setAttributeNS(null,"y",a.toString()),P.setAttributeNS(null,"externalResourcesRequired","true"),I.appendChild(P),P.appendChild(d),I},Xs=function(i){return new Promise(function(n,s){var a=new Image;a.onload=function(){return n(a)},a.onerror=s,a.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(i))})},dt={get SUPPORT_RANGE_BOUNDS(){var i=function(i){if(i.createRange){var s=i.createRange();if(s.getBoundingClientRect){var a=i.createElement("boundtest");a.style.height="123px",a.style.display="block",i.body.appendChild(a),s.selectNode(a);var d=s.getBoundingClientRect(),C=Math.round(d.height);if(i.body.removeChild(a),123===C)return!0}}return!1}(document);return Object.defineProperty(dt,"SUPPORT_RANGE_BOUNDS",{value:i}),i},get SUPPORT_WORD_BREAKING(){var i=dt.SUPPORT_RANGE_BOUNDS&&function(i){var n=i.createElement("boundtest");n.style.width="50px",n.style.display="block",n.style.fontSize="12px",n.style.letterSpacing="0px",n.style.wordSpacing="0px",i.body.appendChild(n);var s=i.createRange();n.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var a=n.firstChild,d=nn(a.data).map(function(O){return Re(O)}),C=0,I={},P=d.every(function(O,eA){s.setStart(a,C),s.setEnd(a,C+O.length);var aA=s.getBoundingClientRect();C+=O.length;var uA=aA.x>I.x||aA.y>I.y;return I=aA,0===eA||uA});return i.body.removeChild(n),P}(document);return Object.defineProperty(dt,"SUPPORT_WORD_BREAKING",{value:i}),i},get SUPPORT_SVG_DRAWING(){var i=function(i){var n=new Image,s=i.createElement("canvas"),a=s.getContext("2d");if(!a)return!1;n.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{a.drawImage(n,0,0),s.toDataURL()}catch{return!1}return!0}(document);return Object.defineProperty(dt,"SUPPORT_SVG_DRAWING",{value:i}),i},get SUPPORT_FOREIGNOBJECT_DRAWING(){var i="function"==typeof Array.from&&"function"==typeof window.fetch?function(i){var n=i.createElement("canvas"),s=100;n.width=s,n.height=s;var a=n.getContext("2d");if(!a)return Promise.reject(!1);a.fillStyle="rgb(0, 255, 0)",a.fillRect(0,0,s,s);var d=new Image,C=n.toDataURL();d.src=C;var I=za(s,s,0,0,d);return a.fillStyle="red",a.fillRect(0,0,s,s),Xs(I).then(function(P){a.drawImage(P,0,0);var O=a.getImageData(0,0,s,s).data;a.fillStyle="red",a.fillRect(0,0,s,s);var eA=i.createElement("div");return eA.style.backgroundImage="url("+C+")",eA.style.height=s+"px",wi(O)?Xs(za(s,s,0,0,eA)):Promise.reject(!1)}).then(function(P){return a.drawImage(P,0,0),wi(a.getImageData(0,0,s,s).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(dt,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:i}),i},get SUPPORT_CORS_IMAGES(){var i=typeof(new Image).crossOrigin<"u";return Object.defineProperty(dt,"SUPPORT_CORS_IMAGES",{value:i}),i},get SUPPORT_RESPONSE_TYPE(){var i="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(dt,"SUPPORT_RESPONSE_TYPE",{value:i}),i},get SUPPORT_CORS_XHR(){var i="withCredentials"in new XMLHttpRequest;return Object.defineProperty(dt,"SUPPORT_CORS_XHR",{value:i}),i},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var i=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(dt,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:i}),i}},Bn=function i(n,s){this.text=n,this.bounds=s},zn=function(i,n){var s=n.ownerDocument;if(s){var a=s.createElement("html2canvaswrapper");a.appendChild(n.cloneNode(!0));var d=n.parentNode;if(d){d.replaceChild(a,n);var C=In(i,a);return a.firstChild&&d.replaceChild(a.firstChild,a),C}}return Je.EMPTY},Js=function(i,n,s){var a=i.ownerDocument;if(!a)throw new Error("Node has no owner document");var d=a.createRange();return d.setStart(i,n),d.setEnd(i,n+s),d},gn=function(i){if(dt.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(n.segment(i)).map(function(s){return s.segment})}return function(i){for(var a,n=qs(i),s=[];!(a=n.next()).done;)a.value&&s.push(a.value.slice());return s}(i)},$i=function(i,n){return 0!==n.letterSpacing?gn(i):function(i,n){if(dt.SUPPORT_NATIVE_TEXT_SEGMENTATION){var s=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(s.segment(i)).map(function(a){return a.segment})}return Zs(i,n)}(i,n)},Ys=[32,160,4961,65792,65793,4153,4241],Zs=function(i,n){for(var d,s=function(i,n){var s=nn(i),a=Cs(s,n),d=a[0],C=a[1],I=a[2],P=s.length,O=0,eA=0;return{next:function(){if(eA>=P)return{done:!0,value:null};for(var aA=Fe;eA<P&&(aA=bu(s,C,d,++eA,I))===Fe;);if(aA!==Fe||eA===P){var uA=new gl(s,aA,O,eA);return O=eA,{value:uA,done:!1}}return{done:!0,value:null}}}}(i,{lineBreak:n.lineBreak,wordBreak:"break-word"===n.overflowWrap?"break-word":n.wordBreak}),a=[],C=function(){if(d.value){var I=d.value.slice(),P=nn(I),O="";P.forEach(function(eA){-1===Ys.indexOf(eA)?O+=Re(eA):(O.length&&a.push(O),a.push(Re(eA)),O="")}),O.length&&a.push(O)}};!(d=s.next()).done;)C();return a},$s=function i(n,s,a){this.text=Ao(s.data,a.textTransform),this.textBounds=function(i,n,s,a){var d=$i(n,s),C=[],I=0;return d.forEach(function(P){if(s.textDecorationLine.length||P.trim().length>0)if(dt.SUPPORT_RANGE_BOUNDS){var O=Js(a,I,P.length).getClientRects();if(O.length>1){var eA=gn(P),aA=0;eA.forEach(function(e){C.push(new Bn(e,Je.fromDOMRectList(i,Js(a,aA+I,e.length).getClientRects()))),aA+=e.length})}else C.push(new Bn(P,Je.fromDOMRectList(i,O)))}else{var uA=a.splitText(P.length);C.push(new Bn(P,zn(i,a))),a=uA}else dt.SUPPORT_RANGE_BOUNDS||(a=a.splitText(P.length));I+=P.length}),C}(n,this.text,a,s)},Ao=function(i,n){switch(n){case 1:return i.toLowerCase();case 3:return i.replace($r,dn);case 2:return i.toUpperCase();default:return i}},$r=/(^|\s|:|-|\(|\))([a-z])/g,dn=function(i,n,s){return i.length>0?n+s.toUpperCase():i},eo=function(i){function n(s,a){var d=i.call(this,s,a)||this;return d.src=a.currentSrc||a.src,d.intrinsicWidth=a.naturalWidth,d.intrinsicHeight=a.naturalHeight,d.context.cache.addImage(d.src),d}return At(n,i),n}(Mt),pn=function(i){function n(s,a){var d=i.call(this,s,a)||this;return d.canvas=a,d.intrinsicWidth=a.width,d.intrinsicHeight=a.height,d}return At(n,i),n}(Mt),pr=function(i){function n(s,a){var d=i.call(this,s,a)||this,C=new XMLSerializer,I=In(s,a);return a.setAttribute("width",I.width+"px"),a.setAttribute("height",I.height+"px"),d.svg="data:image/svg+xml,"+encodeURIComponent(C.serializeToString(a)),d.intrinsicWidth=a.width.baseVal.value,d.intrinsicHeight=a.height.baseVal.value,d.context.cache.addImage(d.svg),d}return At(n,i),n}(Mt),Aa=function(i){function n(s,a){var d=i.call(this,s,a)||this;return d.value=a.value,d}return At(n,i),n}(Mt),wn=function(i){function n(s,a){var d=i.call(this,s,a)||this;return d.start=a.start,d.reversed="boolean"==typeof a.reversed&&!0===a.reversed,d}return At(n,i),n}(Mt),$o=[{type:15,flags:0,unit:"px",number:3}],ea=[{type:16,flags:0,number:50}],Wn="checkbox",mi="radio",ta="password",ra=707406591,Ci=function(i){function n(s,a){var d=i.call(this,s,a)||this;switch(d.type=a.type.toLowerCase(),d.checked=a.checked,d.value=function(i){var n=i.type===ta?new Array(i.value.length+1).join("\u2022"):i.value;return 0===n.length?i.placeholder||"":n}(a),(d.type===Wn||d.type===mi)&&(d.styles.backgroundColor=3739148031,d.styles.borderTopColor=d.styles.borderRightColor=d.styles.borderBottomColor=d.styles.borderLeftColor=2779096575,d.styles.borderTopWidth=d.styles.borderRightWidth=d.styles.borderBottomWidth=d.styles.borderLeftWidth=1,d.styles.borderTopStyle=d.styles.borderRightStyle=d.styles.borderBottomStyle=d.styles.borderLeftStyle=1,d.styles.backgroundClip=[0],d.styles.backgroundOrigin=[0],d.bounds=function(i){return i.width>i.height?new Je(i.left+(i.width-i.height)/2,i.top,i.height,i.height):i.width<i.height?new Je(i.left,i.top+(i.height-i.width)/2,i.width,i.width):i}(d.bounds)),d.type){case Wn:d.styles.borderTopRightRadius=d.styles.borderTopLeftRadius=d.styles.borderBottomRightRadius=d.styles.borderBottomLeftRadius=$o;break;case mi:d.styles.borderTopRightRadius=d.styles.borderTopLeftRadius=d.styles.borderBottomRightRadius=d.styles.borderBottomLeftRadius=ea}return d}return At(n,i),n}(Mt),Ja=function(i){function n(s,a){var d=i.call(this,s,a)||this,C=a.options[a.selectedIndex||0];return d.value=C&&C.text||"",d}return At(n,i),n}(Mt),to=function(i){function n(s,a){var d=i.call(this,s,a)||this;return d.value=a.value,d}return At(n,i),n}(Mt),Qi=function(i){function n(s,a){var d=i.call(this,s,a)||this;d.src=a.src,d.width=parseInt(a.width,10)||0,d.height=parseInt(a.height,10)||0,d.backgroundColor=d.styles.backgroundColor;try{if(a.contentWindow&&a.contentWindow.document&&a.contentWindow.document.documentElement){d.tree=na(s,a.contentWindow.document.documentElement);var C=a.contentWindow.document.documentElement?Vi(s,getComputedStyle(a.contentWindow.document.documentElement).backgroundColor):Vr.TRANSPARENT,I=a.contentWindow.document.body?Vi(s,getComputedStyle(a.contentWindow.document.body).backgroundColor):Vr.TRANSPARENT;d.backgroundColor=Kn(C)?Kn(I)?d.styles.backgroundColor:I:C}}catch{}return d}return At(n,i),n}(Mt),Fi=["OL","UL","MENU"],Xn=function(i,n,s,a){for(var d=n.firstChild,C=void 0;d;d=C)if(C=d.nextSibling,V(d)&&d.data.trim().length>0)s.textNodes.push(new $s(i,d,s.styles));else if(Z(d))if(Ya(d)&&d.assignedNodes)d.assignedNodes().forEach(function(P){return Xn(i,P,s,a)});else{var I=vn(i,d);I.styles.isVisible()&&(h(d,I,a)?I.flags|=4:L(I.styles)&&(I.flags|=2),-1!==Fi.indexOf(d.tagName)&&(I.flags|=8),s.elements.push(I),d.shadowRoot?Xn(i,d.shadowRoot,I,a):!_t(d)&&!oe(d)&&!rr(d)&&Xn(i,d,I,a))}},vn=function(i,n){return rt(n)?new eo(i,n):Xe(n)?new pn(i,n):oe(n)?new pr(i,n):HA(n)?new Aa(i,n):XA(n)?new wn(i,n):$A(n)?new Ci(i,n):rr(n)?new Ja(i,n):_t(n)?new to(i,n):Lt(n)?new Qi(i,n):new Mt(i,n)},na=function(i,n){var s=vn(i,n);return s.flags|=4,Xn(i,n,s,s),s},h=function(i,n,s){return n.styles.isPositionedWithZIndex()||n.styles.opacity<1||n.styles.isTransformed()||me(i)&&s.styles.isTransparent()},L=function(i){return i.isPositioned()||i.isFloating()},V=function(i){return i.nodeType===Node.TEXT_NODE},Z=function(i){return i.nodeType===Node.ELEMENT_NODE},oA=function(i){return Z(i)&&typeof i.style<"u"&&!CA(i)},CA=function(i){return"object"==typeof i.className},HA=function(i){return"LI"===i.tagName},XA=function(i){return"OL"===i.tagName},$A=function(i){return"INPUT"===i.tagName},oe=function(i){return"svg"===i.tagName},me=function(i){return"BODY"===i.tagName},Xe=function(i){return"CANVAS"===i.tagName},Ye=function(i){return"VIDEO"===i.tagName},rt=function(i){return"IMG"===i.tagName},Lt=function(i){return"IFRAME"===i.tagName},pt=function(i){return"STYLE"===i.tagName},_t=function(i){return"TEXTAREA"===i.tagName},rr=function(i){return"SELECT"===i.tagName},Ya=function(i){return"SLOT"===i.tagName},ia=function(i){return i.tagName.indexOf("-")>0},Za=function(){function i(){this.counters={}}return i.prototype.getCounterValue=function(n){var s=this.counters[n];return s&&s.length?s[s.length-1]:1},i.prototype.getCounterValues=function(n){return this.counters[n]||[]},i.prototype.pop=function(n){var s=this;n.forEach(function(a){return s.counters[a].pop()})},i.prototype.parse=function(n){var s=this,a=n.counterIncrement,d=n.counterReset,C=!0;null!==a&&a.forEach(function(P){var O=s.counters[P.counter];O&&0!==P.increment&&(C=!1,O.length||O.push(1),O[Math.max(0,O.length-1)]+=P.increment)});var I=[];return C&&d.forEach(function(P){var O=s.counters[P.counter];I.push(P.counter),O||(O=s.counters[P.counter]=[]),O.push(P.reset)}),I},i}(),yi={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},aa={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},$a={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},sa={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},nt=function(i,n,s,a,d,C){return i<n||i>s?mr(i,d,C.length>0):a.integers.reduce(function(I,P,O){for(;i>=P;)i-=P,I+=a.values[O];return I},"")+C},Ui=function(i,n,s,a){var d="";do{s||i--,d=a(i)+d,i/=n}while(i*n>=n);return d},ke=function(i,n,s,a,d){var C=s-n+1;return(i<0?"-":"")+(Ui(Math.abs(i),C,a,function(I){return Re(Math.floor(I%C)+n)})+d)},wr=function(i,n,s){void 0===s&&(s=". ");var a=n.length;return Ui(Math.abs(i),a,!1,function(d){return n[Math.floor(d%a)]})+s},vr=function(i,n,s,a,d,C){if(i<-9999||i>9999)return mr(i,4,d.length>0);var I=Math.abs(i),P=d;if(0===I)return n[0]+P;for(var O=0;I>0&&O<=4;O++){var eA=I%10;0===eA&&qe(C,1)&&""!==P?P=n[eA]+P:eA>1||1===eA&&0===O||1===eA&&1===O&&qe(C,2)||1===eA&&1===O&&qe(C,4)&&i>100||1===eA&&O>1&&qe(C,8)?P=n[eA]+(O>0?s[O-1]:"")+P:1===eA&&O>0&&(P=s[O-1]+P),I=Math.floor(I/10)}return(i<0?a:"")+P},oa="\ub9c8\uc774\ub108\uc2a4",mr=function(i,n,s){var a=s?". ":"",d=s?"\u3001":"",C=s?", ":"",I=s?" ":"";switch(n){case 0:return"\u2022"+I;case 1:return"\u25e6"+I;case 2:return"\u25fe"+I;case 5:var P=ke(i,48,57,!0,a);return P.length<4?"0"+P:P;case 4:return wr(i,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",d);case 6:return nt(i,1,3999,yi,3,a).toLowerCase();case 7:return nt(i,1,3999,yi,3,a);case 8:return ke(i,945,969,!1,a);case 9:return ke(i,97,122,!1,a);case 10:return ke(i,65,90,!1,a);case 11:return ke(i,1632,1641,!0,a);case 12:case 49:return nt(i,1,9999,aa,3,a);case 35:return nt(i,1,9999,aa,3,a).toLowerCase();case 13:return ke(i,2534,2543,!0,a);case 14:case 30:return ke(i,6112,6121,!0,a);case 15:return wr(i,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",d);case 16:return wr(i,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",d);case 17:case 48:return vr(i,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\u8ca0",d,14);case 47:return vr(i,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396","\u62fe\u4f70\u4edf\u842c","\u8ca0",d,15);case 42:return vr(i,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\u8d1f",d,14);case 41:return vr(i,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396","\u62fe\u4f70\u4edf\u842c","\u8d1f",d,15);case 26:return vr(i,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07","\u30de\u30a4\u30ca\u30b9",d,0);case 25:return vr(i,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07","\u30de\u30a4\u30ca\u30b9",d,7);case 31:return vr(i,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc",oa,C,7);case 33:return vr(i,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c",oa,C,0);case 32:return vr(i,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343",oa,C,7);case 18:return ke(i,2406,2415,!0,a);case 20:return nt(i,1,19999,sa,3,a);case 21:return ke(i,2790,2799,!0,a);case 22:return ke(i,2662,2671,!0,a);case 22:return nt(i,1,10999,$a,3,a);case 23:return wr(i,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case 24:return wr(i,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case 27:return ke(i,3302,3311,!0,a);case 28:return wr(i,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",d);case 29:return wr(i,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",d);case 34:return ke(i,3792,3801,!0,a);case 37:return ke(i,6160,6169,!0,a);case 38:return ke(i,4160,4169,!0,a);case 39:return ke(i,2918,2927,!0,a);case 40:return ke(i,1776,1785,!0,a);case 43:return ke(i,3046,3055,!0,a);case 44:return ke(i,3174,3183,!0,a);case 45:return ke(i,3664,3673,!0,a);case 46:return ke(i,3872,3881,!0,a);default:return ke(i,48,57,!0,a)}},Jn="data-html2canvas-ignore",Rt=function(){function i(n,s,a){if(this.context=n,this.options=a,this.scrolledElements=[],this.referenceElement=s,this.counters=new Za,this.quoteDepth=0,!s.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(s.ownerDocument.documentElement,!1)}return i.prototype.toIFrame=function(n,s){var a=this,d=Yn(n,s);if(!d.contentWindow)return Promise.reject("Unable to find iframe window");var C=n.defaultView.pageXOffset,I=n.defaultView.pageYOffset,P=d.contentWindow,O=P.document,eA=ca(d).then(function(){return Et(a,void 0,void 0,function(){var aA,uA;return It(this,function(e){switch(e.label){case 0:return this.scrolledElements.forEach(Cr),P&&(P.scrollTo(s.left,s.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(P.scrollY!==s.top||P.scrollX!==s.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(P.scrollX-s.left,P.scrollY-s.top,0,0))),aA=this.options.onclone,typeof(uA=this.clonedReferenceElement)>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:O.fonts&&O.fonts.ready?[4,O.fonts.ready]:[3,2];case 1:e.sent(),e.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Qn(O)]:[3,4];case 3:e.sent(),e.label=4;case 4:return"function"==typeof aA?[2,Promise.resolve().then(function(){return aA(O,uA)}).then(function(){return d})]:[2,d]}})})});return O.open(),O.write(es(document.doctype)+"<html></html>"),Gt(this.referenceElement.ownerDocument,C,I),O.replaceChild(O.adoptNode(this.documentElement),O.documentElement),O.close(),eA},i.prototype.createElementClone=function(n){if(Pt(n,2),Xe(n))return this.createCanvasClone(n);if(Ye(n))return this.createVideoClone(n);if(pt(n))return this.createStyleClone(n);var s=n.cloneNode(!1);return rt(s)&&(rt(n)&&n.currentSrc&&n.currentSrc!==n.src&&(s.src=n.currentSrc,s.srcset=""),"lazy"===s.loading&&(s.loading="eager")),ia(s)?this.createCustomElementClone(s):s},i.prototype.createCustomElementClone=function(n){var s=document.createElement("html2canvascustomelement");return Ze(n.style,s),s},i.prototype.createStyleClone=function(n){try{var s=n.sheet;if(s&&s.cssRules){var a=[].slice.call(s.cssRules,0).reduce(function(C,I){return I&&"string"==typeof I.cssText?C+I.cssText:C},""),d=n.cloneNode(!1);return d.textContent=a,d}}catch(C){if(this.context.logger.error("Unable to access cssRules property",C),"SecurityError"!==C.name)throw C}return n.cloneNode(!1)},i.prototype.createCanvasClone=function(n){var s;if(this.options.inlineImages&&n.ownerDocument){var a=n.ownerDocument.createElement("img");try{return a.src=n.toDataURL(),a}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",n)}}var d=n.cloneNode(!1);try{d.width=n.width,d.height=n.height;var C=n.getContext("2d"),I=d.getContext("2d");if(I)if(!this.options.allowTaint&&C)I.putImageData(C.getImageData(0,0,n.width,n.height),0,0);else{var P=null!==(s=n.getContext("webgl2"))&&void 0!==s?s:n.getContext("webgl");if(P){var O=P.getContextAttributes();!1===O?.preserveDrawingBuffer&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",n)}I.drawImage(n,0,0)}return d}catch{this.context.logger.info("Unable to clone canvas as it is tainted",n)}return d},i.prototype.createVideoClone=function(n){var s=n.ownerDocument.createElement("canvas");s.width=n.offsetWidth,s.height=n.offsetHeight;var a=s.getContext("2d");try{return a&&(a.drawImage(n,0,0,s.width,s.height),this.options.allowTaint||a.getImageData(0,0,s.width,s.height)),s}catch{this.context.logger.info("Unable to clone video as it is tainted",n)}var d=n.ownerDocument.createElement("canvas");return d.width=n.offsetWidth,d.height=n.offsetHeight,d},i.prototype.appendChildNode=function(n,s,a){(!Z(s)||!function(i){return"SCRIPT"===i.tagName}(s)&&!s.hasAttribute(Jn)&&("function"!=typeof this.options.ignoreElements||!this.options.ignoreElements(s)))&&(!this.options.copyStyles||!Z(s)||!pt(s))&&n.appendChild(this.cloneNode(s,a))},i.prototype.cloneChildNodes=function(n,s,a){for(var d=this,C=n.shadowRoot?n.shadowRoot.firstChild:n.firstChild;C;C=C.nextSibling)if(Z(C)&&Ya(C)&&"function"==typeof C.assignedNodes){var I=C.assignedNodes();I.length&&I.forEach(function(P){return d.appendChildNode(s,P,a)})}else this.appendChildNode(s,C,a)},i.prototype.cloneNode=function(n,s){if(V(n))return document.createTextNode(n.data);if(!n.ownerDocument)return n.cloneNode(!1);var a=n.ownerDocument.defaultView;if(a&&Z(n)&&(oA(n)||CA(n))){var d=this.createElementClone(n);d.style.transitionProperty="none";var C=a.getComputedStyle(n),I=a.getComputedStyle(n,":before"),P=a.getComputedStyle(n,":after");this.referenceElement===n&&oA(d)&&(this.clonedReferenceElement=d),me(d)&&$n(d);var O=this.counters.parse(new Dr(this.context,C)),eA=this.resolvePseudoContent(n,d,I,mt.BEFORE);ia(n)&&(s=!0),Ye(n)||this.cloneChildNodes(n,d,s),eA&&d.insertBefore(eA,d.firstChild);var aA=this.resolvePseudoContent(n,d,P,mt.AFTER);return aA&&d.appendChild(aA),this.counters.pop(O),(C&&(this.options.copyStyles||CA(n))&&!Lt(n)||s)&&Ze(C,d),(0!==n.scrollTop||0!==n.scrollLeft)&&this.scrolledElements.push([d,n.scrollLeft,n.scrollTop]),(_t(n)||rr(n))&&(_t(d)||rr(d))&&(d.value=n.value),d}return n.cloneNode(!1)},i.prototype.resolvePseudoContent=function(n,s,a,d){var C=this;if(a){var I=a.content,P=s.ownerDocument;if(P&&I&&"none"!==I&&"-moz-alt-content"!==I&&"none"!==a.display){this.counters.parse(new Dr(this.context,a));var O=new _r(this.context,a),eA=P.createElement("html2canvaspseudoelement");Ze(a,eA),O.content.forEach(function(uA){if(0===uA.type)eA.appendChild(P.createTextNode(uA.value));else if(22===uA.type){var e=P.createElement("img");e.src=uA.value,e.style.opacity="1",eA.appendChild(e)}else if(18===uA.type){if("attr"===uA.name){var c=uA.values.filter(Ee);c.length&&eA.appendChild(P.createTextNode(n.getAttribute(c[0].value)||""))}else if("counter"===uA.name){var f=uA.values.filter(on),Q=f[1];if((w=f[0])&&Ee(w)){var F=C.counters.getCounterValue(w.value),y=Q&&Ee(Q)?x.parse(C.context,Q.value):3;eA.appendChild(P.createTextNode(mr(F,y,!1)))}}else if("counters"===uA.name){var w,E=uA.values.filter(on),S=E[1];if(Q=E[2],(w=E[0])&&Ee(w)){var _=C.counters.getCounterValues(w.value),k=Q&&Ee(Q)?x.parse(C.context,Q.value):3,nA=S&&0===S.type?S.value:"",iA=_.map(function(gA){return mr(gA,k,!1)}).join(nA);eA.appendChild(P.createTextNode(iA))}}}else if(20===uA.type)switch(uA.value){case"open-quote":eA.appendChild(P.createTextNode(He(O.quotes,C.quoteDepth++,!0)));break;case"close-quote":eA.appendChild(P.createTextNode(He(O.quotes,--C.quoteDepth,!1)));break;default:eA.appendChild(P.createTextNode(uA.value))}}),eA.className=Li+" "+yn;var aA=d===mt.BEFORE?" "+Li:" "+yn;return CA(s)?s.className.baseValue+=aA:s.className+=aA,eA}}},i.destroy=function(n){return!!n.parentNode&&(n.parentNode.removeChild(n),!0)},i}(),mt=function(i){return i[i.BEFORE=0]="BEFORE",i[i.AFTER=1]="AFTER",i}(mt||{}),Yn=function(i,n){var s=i.createElement("iframe");return s.className="html2canvas-container",s.style.visibility="hidden",s.style.position="fixed",s.style.left="-10000px",s.style.top="0px",s.style.border="0",s.width=n.width.toString(),s.height=n.height.toString(),s.scrolling="no",s.setAttribute(Jn,"true"),i.body.appendChild(s),s},Cn=function(i){return new Promise(function(n){i.complete?n():i.src?(i.onload=n,i.onerror=n):n()})},Qn=function(i){return Promise.all([].slice.call(i.images,0).map(Cn))},ca=function(i){return new Promise(function(n,s){var a=i.contentWindow;if(!a)return s("No window assigned for iframe");var d=a.document;a.onload=i.onload=function(){a.onload=i.onload=null;var C=setInterval(function(){d.body.childNodes.length>0&&"complete"===d.readyState&&(clearInterval(C),n(i))},50)}})},Fn=["all","d","content"],Ze=function(i,n){for(var s=i.length-1;s>=0;s--){var a=i.item(s);-1===Fn.indexOf(a)&&n.style.setProperty(a,i.getPropertyValue(a))}return n},es=function(i){var n="";return i&&(n+="<!DOCTYPE ",i.name&&(n+=i.name),i.internalSubset&&(n+=i.internalSubset),i.publicId&&(n+='"'+i.publicId+'"'),i.systemId&&(n+='"'+i.systemId+'"'),n+=">"),n},Gt=function(i,n,s){i&&i.defaultView&&(n!==i.defaultView.pageXOffset||s!==i.defaultView.pageYOffset)&&i.defaultView.scrollTo(n,s)},Cr=function(i){var n=i[0],a=i[2];n.scrollLeft=i[1],n.scrollTop=a},Li="___html2canvas___pseudoelement_before",yn="___html2canvas___pseudoelement_after",Zn='{\n    content: "" !important;\n    display: none !important;\n}',$n=function(i){Ei(i,"."+Li+":before"+Zn+"\n         ."+yn+":after"+Zn)},Ei=function(i,n){var s=i.ownerDocument;if(s){var a=s.createElement("style");a.textContent=n,i.appendChild(a)}},Ii=function(){function i(){}return i.getOrigin=function(n){var s=i._link;return s?(s.href=n,s.href=s.href,s.protocol+s.hostname+s.port):"about:blank"},i.isSameOrigin=function(n){return i.getOrigin(n)===i._origin},i.setContext=function(n){i._link=n.document.createElement("a"),i._origin=i.getOrigin(n.location.href)},i._origin="about:blank",i}(),xi=function(){function i(n,s){this.context=n,this._options=s,this._cache={}}return i.prototype.addImage=function(n){var s=Promise.resolve();return this.has(n)||($e(n)||Fr(n))&&(this._cache[n]=this.loadImage(n)).catch(function(){}),s},i.prototype.match=function(n){return this._cache[n]},i.prototype.loadImage=function(n){return Et(this,void 0,void 0,function(){var s,a,d,C,I=this;return It(this,function(P){switch(P.label){case 0:return s=Ii.isSameOrigin(n),a=!Oe(n)&&!0===this._options.useCORS&&dt.SUPPORT_CORS_IMAGES&&!s,d=!Oe(n)&&!s&&!$e(n)&&"string"==typeof this._options.proxy&&dt.SUPPORT_CORS_XHR&&!a,s||!1!==this._options.allowTaint||Oe(n)||$e(n)||d||a?(C=n,d?[4,this.proxy(C)]:[3,2]):[2];case 1:C=P.sent(),P.label=2;case 2:return this.context.logger.debug("Added image "+n.substring(0,256)),[4,new Promise(function(O,eA){var aA=new Image;aA.onload=function(){return O(aA)},aA.onerror=eA,(Ke(C)||a)&&(aA.crossOrigin="anonymous"),aA.src=C,!0===aA.complete&&setTimeout(function(){return O(aA)},500),I._options.imageTimeout>0&&setTimeout(function(){return eA("Timed out ("+I._options.imageTimeout+"ms) loading image")},I._options.imageTimeout)})];case 3:return[2,P.sent()]}})})},i.prototype.has=function(n){return typeof this._cache[n]<"u"},i.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},i.prototype.proxy=function(n){var s=this,a=this._options.proxy;if(!a)throw new Error("No proxy defined");var d=n.substring(0,256);return new Promise(function(C,I){var P=dt.SUPPORT_RESPONSE_TYPE?"blob":"text",O=new XMLHttpRequest;O.onload=function(){if(200===O.status)if("text"===P)C(O.response);else{var uA=new FileReader;uA.addEventListener("load",function(){return C(uA.result)},!1),uA.addEventListener("error",function(e){return I(e)},!1),uA.readAsDataURL(O.response)}else I("Failed to proxy resource "+d+" with status code "+O.status)},O.onerror=I;var eA=a.indexOf("?")>-1?"&":"?";if(O.open("GET",""+a+eA+"url="+encodeURIComponent(n)+"&responseType="+P),"text"!==P&&O instanceof XMLHttpRequest&&(O.responseType=P),s._options.imageTimeout){var aA=s._options.imageTimeout;O.timeout=aA,O.ontimeout=function(){return I("Timed out ("+aA+"ms) proxying "+d)}}O.send()})},i}(),Ai=/^data:image\/svg\+xml/i,ts=/^data:image\/.*;base64,/i,Qr=/^data:image\/.*/i,Fr=function(i){return dt.SUPPORT_SVG_DRAWING||!wt(i)},Oe=function(i){return Qr.test(i)},Ke=function(i){return ts.test(i)},$e=function(i){return"blob"===i.substr(0,4)},wt=function(i){return"svg"===i.substr(-3).toLowerCase()||Ai.test(i)},KA=function(){function i(n,s){this.type=0,this.x=n,this.y=s}return i.prototype.add=function(n,s){return new i(this.x+n,this.y+s)},i}(),tn=function(i,n,s){return new KA(i.x+(n.x-i.x)*s,i.y+(n.y-i.y)*s)},Un=function(){function i(n,s,a,d){this.type=1,this.start=n,this.startControl=s,this.endControl=a,this.end=d}return i.prototype.subdivide=function(n,s){var a=tn(this.start,this.startControl,n),d=tn(this.startControl,this.endControl,n),C=tn(this.endControl,this.end,n),I=tn(a,d,n),P=tn(d,C,n),O=tn(I,P,n);return s?new i(this.start,a,I,O):new i(O,P,C,this.end)},i.prototype.add=function(n,s){return new i(this.start.add(n,s),this.startControl.add(n,s),this.endControl.add(n,s),this.end.add(n,s))},i.prototype.reverse=function(){return new i(this.end,this.endControl,this.startControl,this.start)},i}(),jt=function(i){return 1===i.type},ec=function i(n){var s=n.styles,a=n.bounds,d=ji(s.borderTopLeftRadius,a.width,a.height),C=d[0],I=d[1],P=ji(s.borderTopRightRadius,a.width,a.height),O=P[0],eA=P[1],aA=ji(s.borderBottomRightRadius,a.width,a.height),uA=aA[0],e=aA[1],c=ji(s.borderBottomLeftRadius,a.width,a.height),f=c[0],w=c[1],Q=[];Q.push((C+O)/a.width),Q.push((f+uA)/a.width),Q.push((I+w)/a.height),Q.push((eA+e)/a.height);var F=Math.max.apply(Math,Q);F>1&&(C/=F,I/=F,O/=F,eA/=F,uA/=F,e/=F,f/=F,w/=F);var y=a.width-O,E=a.height-e,S=a.width-uA,_=a.height-w,k=s.borderTopWidth,nA=s.borderRightWidth,iA=s.borderBottomWidth,W=s.borderLeftWidth,QA=De(s.paddingTop,n.bounds.width),gA=De(s.paddingRight,n.bounds.width),$=De(s.paddingBottom,n.bounds.width),Y=De(s.paddingLeft,n.bounds.width);this.topLeftBorderDoubleOuterBox=C>0||I>0?Ce(a.left+W/3,a.top+k/3,C-W/3,I-k/3,xe.TOP_LEFT):new KA(a.left+W/3,a.top+k/3),this.topRightBorderDoubleOuterBox=C>0||I>0?Ce(a.left+y,a.top+k/3,O-nA/3,eA-k/3,xe.TOP_RIGHT):new KA(a.left+a.width-nA/3,a.top+k/3),this.bottomRightBorderDoubleOuterBox=uA>0||e>0?Ce(a.left+S,a.top+E,uA-nA/3,e-iA/3,xe.BOTTOM_RIGHT):new KA(a.left+a.width-nA/3,a.top+a.height-iA/3),this.bottomLeftBorderDoubleOuterBox=f>0||w>0?Ce(a.left+W/3,a.top+_,f-W/3,w-iA/3,xe.BOTTOM_LEFT):new KA(a.left+W/3,a.top+a.height-iA/3),this.topLeftBorderDoubleInnerBox=C>0||I>0?Ce(a.left+2*W/3,a.top+2*k/3,C-2*W/3,I-2*k/3,xe.TOP_LEFT):new KA(a.left+2*W/3,a.top+2*k/3),this.topRightBorderDoubleInnerBox=C>0||I>0?Ce(a.left+y,a.top+2*k/3,O-2*nA/3,eA-2*k/3,xe.TOP_RIGHT):new KA(a.left+a.width-2*nA/3,a.top+2*k/3),this.bottomRightBorderDoubleInnerBox=uA>0||e>0?Ce(a.left+S,a.top+E,uA-2*nA/3,e-2*iA/3,xe.BOTTOM_RIGHT):new KA(a.left+a.width-2*nA/3,a.top+a.height-2*iA/3),this.bottomLeftBorderDoubleInnerBox=f>0||w>0?Ce(a.left+2*W/3,a.top+_,f-2*W/3,w-2*iA/3,xe.BOTTOM_LEFT):new KA(a.left+2*W/3,a.top+a.height-2*iA/3),this.topLeftBorderStroke=C>0||I>0?Ce(a.left+W/2,a.top+k/2,C-W/2,I-k/2,xe.TOP_LEFT):new KA(a.left+W/2,a.top+k/2),this.topRightBorderStroke=C>0||I>0?Ce(a.left+y,a.top+k/2,O-nA/2,eA-k/2,xe.TOP_RIGHT):new KA(a.left+a.width-nA/2,a.top+k/2),this.bottomRightBorderStroke=uA>0||e>0?Ce(a.left+S,a.top+E,uA-nA/2,e-iA/2,xe.BOTTOM_RIGHT):new KA(a.left+a.width-nA/2,a.top+a.height-iA/2),this.bottomLeftBorderStroke=f>0||w>0?Ce(a.left+W/2,a.top+_,f-W/2,w-iA/2,xe.BOTTOM_LEFT):new KA(a.left+W/2,a.top+a.height-iA/2),this.topLeftBorderBox=C>0||I>0?Ce(a.left,a.top,C,I,xe.TOP_LEFT):new KA(a.left,a.top),this.topRightBorderBox=O>0||eA>0?Ce(a.left+y,a.top,O,eA,xe.TOP_RIGHT):new KA(a.left+a.width,a.top),this.bottomRightBorderBox=uA>0||e>0?Ce(a.left+S,a.top+E,uA,e,xe.BOTTOM_RIGHT):new KA(a.left+a.width,a.top+a.height),this.bottomLeftBorderBox=f>0||w>0?Ce(a.left,a.top+_,f,w,xe.BOTTOM_LEFT):new KA(a.left,a.top+a.height),this.topLeftPaddingBox=C>0||I>0?Ce(a.left+W,a.top+k,Math.max(0,C-W),Math.max(0,I-k),xe.TOP_LEFT):new KA(a.left+W,a.top+k),this.topRightPaddingBox=O>0||eA>0?Ce(a.left+Math.min(y,a.width-nA),a.top+k,y>a.width+nA?0:Math.max(0,O-nA),Math.max(0,eA-k),xe.TOP_RIGHT):new KA(a.left+a.width-nA,a.top+k),this.bottomRightPaddingBox=uA>0||e>0?Ce(a.left+Math.min(S,a.width-W),a.top+Math.min(E,a.height-iA),Math.max(0,uA-nA),Math.max(0,e-iA),xe.BOTTOM_RIGHT):new KA(a.left+a.width-nA,a.top+a.height-iA),this.bottomLeftPaddingBox=f>0||w>0?Ce(a.left+W,a.top+Math.min(_,a.height-iA),Math.max(0,f-W),Math.max(0,w-iA),xe.BOTTOM_LEFT):new KA(a.left+W,a.top+a.height-iA),this.topLeftContentBox=C>0||I>0?Ce(a.left+W+Y,a.top+k+QA,Math.max(0,C-(W+Y)),Math.max(0,I-(k+QA)),xe.TOP_LEFT):new KA(a.left+W+Y,a.top+k+QA),this.topRightContentBox=O>0||eA>0?Ce(a.left+Math.min(y,a.width+W+Y),a.top+k+QA,y>a.width+W+Y?0:O-W+Y,eA-(k+QA),xe.TOP_RIGHT):new KA(a.left+a.width-(nA+gA),a.top+k+QA),this.bottomRightContentBox=uA>0||e>0?Ce(a.left+Math.min(S,a.width-(W+Y)),a.top+Math.min(E,a.height+k+QA),Math.max(0,uA-(nA+gA)),e-(iA+$),xe.BOTTOM_RIGHT):new KA(a.left+a.width-(nA+gA),a.top+a.height-(iA+$)),this.bottomLeftContentBox=f>0||w>0?Ce(a.left+W+Y,a.top+_,Math.max(0,f-(W+Y)),w-(iA+$),xe.BOTTOM_LEFT):new KA(a.left+W+Y,a.top+a.height-(iA+$))},xe=function(i){return i[i.TOP_LEFT=0]="TOP_LEFT",i[i.TOP_RIGHT=1]="TOP_RIGHT",i[i.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",i[i.BOTTOM_LEFT=3]="BOTTOM_LEFT",i}(xe||{}),Ce=function(i,n,s,a,d){var C=(Math.sqrt(2)-1)/3*4,I=s*C,P=a*C,O=i+s,eA=n+a;switch(d){case xe.TOP_LEFT:return new Un(new KA(i,eA),new KA(i,eA-P),new KA(O-I,n),new KA(O,n));case xe.TOP_RIGHT:return new Un(new KA(i,n),new KA(i+I,n),new KA(O,eA-P),new KA(O,eA));case xe.BOTTOM_RIGHT:return new Un(new KA(O,n),new KA(O,n+P),new KA(i+I,eA),new KA(i,eA));default:return new Un(new KA(O,eA),new KA(O-I,eA),new KA(i,n+P),new KA(i,n))}},Vt=function(i){return[i.topLeftBorderBox,i.topRightBorderBox,i.bottomRightBorderBox,i.bottomLeftBorderBox]},Si=function(i){return[i.topLeftPaddingBox,i.topRightPaddingBox,i.bottomRightPaddingBox,i.bottomLeftPaddingBox]},Au=function i(n,s,a){this.offsetX=n,this.offsetY=s,this.matrix=a,this.type=0,this.target=6},Hi=function i(n,s){this.path=n,this.target=s,this.type=1},io=function i(n){this.opacity=n,this.type=2,this.target=6},rc=function(i){return 1===i.type},ao=function(i,n){return i.length===n.length&&i.some(function(s,a){return s===n[a]})},oo=function i(n){this.element=n,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},eu=function(){function i(n,s){if(this.container=n,this.parent=s,this.effects=[],this.curves=new ec(this.container),this.container.styles.opacity<1&&this.effects.push(new io(this.container.styles.opacity)),null!==this.container.styles.transform&&this.effects.push(new Au(this.container.bounds.left+this.container.styles.transformOrigin[0].number,this.container.bounds.top+this.container.styles.transformOrigin[1].number,this.container.styles.transform)),0!==this.container.styles.overflowX){var I=Vt(this.curves),P=Si(this.curves);ao(I,P)?this.effects.push(new Hi(I,6)):(this.effects.push(new Hi(I,2)),this.effects.push(new Hi(P,4)))}}return i.prototype.getEffects=function(n){for(var s=-1===[2,3].indexOf(this.container.styles.position),a=this.parent,d=this.effects.slice(0);a;){var C=a.effects.filter(function(O){return!rc(O)});if(s||0!==a.container.styles.position||!a.parent){if(d.unshift.apply(d,C),s=-1===[2,3].indexOf(a.container.styles.position),0!==a.container.styles.overflowX){var I=Vt(a.curves),P=Si(a.curves);ao(I,P)||d.unshift(new Hi(P,6))}}else d.unshift.apply(d,C);a=a.parent}return d.filter(function(O){return qe(O.target,n)})},i}(),ic=function(i,n,s,a){i.container.elements.forEach(function(d){var C=qe(d.flags,4),I=qe(d.flags,2),P=new eu(d,i);qe(d.styles.display,2048)&&a.push(P);var O=qe(d.flags,8)?[]:a;if(C||I){var eA=C||d.styles.isPositioned()?s:n,aA=new oo(P);if(d.styles.isPositioned()||d.styles.opacity<1||d.styles.isTransformed()){var uA=d.styles.zIndex.order;if(uA<0){var e=0;eA.negativeZIndex.some(function(f,w){return uA>f.element.container.styles.zIndex.order?(e=w,!1):e>0}),eA.negativeZIndex.splice(e,0,aA)}else if(uA>0){var c=0;eA.positiveZIndex.some(function(f,w){return uA>=f.element.container.styles.zIndex.order?(c=w+1,!1):c>0}),eA.positiveZIndex.splice(c,0,aA)}else eA.zeroOrAutoZIndexOrTransformedOrOpacity.push(aA)}else d.styles.isFloating()?eA.nonPositionedFloats.push(aA):eA.nonPositionedInlineLevel.push(aA);ic(P,aA,C?aA:s,O)}else d.styles.isInlineLevel()?n.inlineLevel.push(P):n.nonInlineLevel.push(P),ic(P,n,s,O);qe(d.flags,8)&&ac(d,O)})},ac=function(i,n){for(var s=i instanceof wn?i.start:1,a=i instanceof wn&&i.reversed,d=0;d<n.length;d++){var C=n[d];C.container instanceof Aa&&"number"==typeof C.container.value&&0!==C.container.value&&(s=C.container.value),C.listValue=mr(s,C.container.styles.listStyleType,!0),s+=a?-1:1}},tu=function(i,n){switch(n){case 0:return Zt(i.topLeftBorderBox,i.topLeftPaddingBox,i.topRightBorderBox,i.topRightPaddingBox);case 1:return Zt(i.topRightBorderBox,i.topRightPaddingBox,i.bottomRightBorderBox,i.bottomRightPaddingBox);case 2:return Zt(i.bottomRightBorderBox,i.bottomRightPaddingBox,i.bottomLeftBorderBox,i.bottomLeftPaddingBox);default:return Zt(i.bottomLeftBorderBox,i.bottomLeftPaddingBox,i.topLeftBorderBox,i.topLeftPaddingBox)}},la=function(i,n){var s=[];return jt(i)?s.push(i.subdivide(.5,!1)):s.push(i),jt(n)?s.push(n.subdivide(.5,!0)):s.push(n),s},Zt=function(i,n,s,a){var d=[];return jt(i)?d.push(i.subdivide(.5,!1)):d.push(i),jt(s)?d.push(s.subdivide(.5,!0)):d.push(s),jt(a)?d.push(a.subdivide(.5,!0).reverse()):d.push(a),jt(n)?d.push(n.subdivide(.5,!1).reverse()):d.push(n),d},fa=function(i){var s=i.styles;return i.bounds.add(s.borderLeftWidth,s.borderTopWidth,-(s.borderRightWidth+s.borderLeftWidth),-(s.borderTopWidth+s.borderBottomWidth))},co=function(i){var n=i.styles,s=i.bounds,a=De(n.paddingLeft,s.width),d=De(n.paddingRight,s.width),C=De(n.paddingTop,s.width),I=De(n.paddingBottom,s.width);return s.add(a+n.borderLeftWidth,C+n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth+a+d),-(n.borderTopWidth+n.borderBottomWidth+C+I))},sc=function(i,n,s){var a=function(i,n){return 0===i?n.bounds:2===i?co(n):fa(n)}(ir(i.styles.backgroundOrigin,n),i),d=function(i,n){return 0===i?n.bounds:2===i?co(n):fa(n)}(ir(i.styles.backgroundClip,n),i),C=Yu(ir(i.styles.backgroundSize,n),s,a),I=C[0],P=C[1],O=ji(ir(i.styles.backgroundPosition,n),a.width-I,a.height-P);return[Or(ir(i.styles.backgroundRepeat,n),O,C,a,d),Math.round(a.left+O[0]),Math.round(a.top+O[1]),I,P]},ha=function(i){return Ee(i)&&i.value===o.AUTO},uo=function(i){return"number"==typeof i},Yu=function(i,n,s){var a=n[0],d=n[1],C=n[2],I=i[0],P=i[1];if(!I)return[0,0];if(OA(I)&&P&&OA(P))return[De(I,s.width),De(P,s.height)];var O=uo(C);if(Ee(I)&&(I.value===o.CONTAIN||I.value===o.COVER))return uo(C)?s.width/s.height<C!=(I.value===o.COVER)?[s.width,s.width/C]:[s.height*C,s.height]:[s.width,s.height];var aA=uo(a),uA=uo(d),e=aA||uA;if(ha(I)&&(!P||ha(P)))return aA&&uA?[a,d]:O||e?e&&O?[aA?a:d*C,uA?d:a/C]:[aA?a:s.width,uA?d:s.height]:[s.width,s.height];if(O){var F=0,y=0;return OA(I)?F=De(I,s.width):OA(P)&&(y=De(P,s.height)),ha(I)?F=y*C:(!P||ha(P))&&(y=F/C),[F,y]}var E=null,S=null;if(OA(I)?E=De(I,s.width):P&&OA(P)&&(S=De(P,s.height)),null!==E&&(!P||ha(P))&&(S=aA&&uA?E/a*d:s.height),null!==S&&ha(I)&&(E=aA&&uA?S/d*a:s.width),null!==E&&null!==S)return[E,S];throw new Error("Unable to calculate background-size for element")},ir=function(i,n){var s=i[n];return typeof s>"u"?i[0]:s},Or=function(i,n,s,a,d){var C=n[0],I=n[1],P=s[0],O=s[1];switch(i){case 2:return[new KA(Math.round(a.left),Math.round(a.top+I)),new KA(Math.round(a.left+a.width),Math.round(a.top+I)),new KA(Math.round(a.left+a.width),Math.round(O+a.top+I)),new KA(Math.round(a.left),Math.round(O+a.top+I))];case 3:return[new KA(Math.round(a.left+C),Math.round(a.top)),new KA(Math.round(a.left+C+P),Math.round(a.top)),new KA(Math.round(a.left+C+P),Math.round(a.height+a.top)),new KA(Math.round(a.left+C),Math.round(a.height+a.top))];case 1:return[new KA(Math.round(a.left+C),Math.round(a.top+I)),new KA(Math.round(a.left+C+P),Math.round(a.top+I)),new KA(Math.round(a.left+C+P),Math.round(a.top+I+O)),new KA(Math.round(a.left+C),Math.round(a.top+I+O))];default:return[new KA(Math.round(d.left),Math.round(d.top)),new KA(Math.round(d.left+d.width),Math.round(d.top)),new KA(Math.round(d.left+d.width),Math.round(d.height+d.top)),new KA(Math.round(d.left),Math.round(d.height+d.top))]}},nu="Hidden Text",iu=function(){function i(n){this._data={},this._document=n}return i.prototype.parseMetrics=function(n,s){var a=this._document.createElement("div"),d=this._document.createElement("img"),C=this._document.createElement("span"),I=this._document.body;a.style.visibility="hidden",a.style.fontFamily=n,a.style.fontSize=s,a.style.margin="0",a.style.padding="0",a.style.whiteSpace="nowrap",I.appendChild(a),d.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",d.width=1,d.height=1,d.style.margin="0",d.style.padding="0",d.style.verticalAlign="baseline",C.style.fontFamily=n,C.style.fontSize=s,C.style.margin="0",C.style.padding="0",C.appendChild(this._document.createTextNode(nu)),a.appendChild(C),a.appendChild(d);var P=d.offsetTop-C.offsetTop+2;a.removeChild(C),a.appendChild(this._document.createTextNode(nu)),a.style.lineHeight="normal",d.style.verticalAlign="super";var O=d.offsetTop-a.offsetTop+2;return I.removeChild(a),{baseline:P,middle:O}},i.prototype.getMetrics=function(n,s){var a=n+" "+s;return typeof this._data[a]>"u"&&(this._data[a]=this.parseMetrics(n,s)),this._data[a]},i}(),Ln=function i(n,s){this.context=n,this.options=s},Zu=function(i){function n(s,a){var d=i.call(this,s,a)||this;return d._activeEffects=[],d.canvas=a.canvas?a.canvas:document.createElement("canvas"),d.ctx=d.canvas.getContext("2d"),a.canvas||(d.canvas.width=Math.floor(a.width*a.scale),d.canvas.height=Math.floor(a.height*a.scale),d.canvas.style.width=a.width+"px",d.canvas.style.height=a.height+"px"),d.fontMetrics=new iu(document),d.ctx.scale(d.options.scale,d.options.scale),d.ctx.translate(-a.x,-a.y),d.ctx.textBaseline="bottom",d._activeEffects=[],d.context.logger.debug("Canvas renderer initialized ("+a.width+"x"+a.height+") with scale "+a.scale),d}return At(n,i),n.prototype.applyEffects=function(s){for(var a=this;this._activeEffects.length;)this.popEffect();s.forEach(function(d){return a.applyEffect(d)})},n.prototype.applyEffect=function(s){this.ctx.save(),function(i){return 2===i.type}(s)&&(this.ctx.globalAlpha=s.opacity),function(i){return 0===i.type}(s)&&(this.ctx.translate(s.offsetX,s.offsetY),this.ctx.transform(s.matrix[0],s.matrix[1],s.matrix[2],s.matrix[3],s.matrix[4],s.matrix[5]),this.ctx.translate(-s.offsetX,-s.offsetY)),rc(s)&&(this.path(s.path),this.ctx.clip()),this._activeEffects.push(s)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(s){return Et(this,void 0,void 0,function(){return It(this,function(d){switch(d.label){case 0:return s.element.container.styles.isVisible()?[4,this.renderStackContent(s)]:[3,2];case 1:d.sent(),d.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(s){return Et(this,void 0,void 0,function(){return It(this,function(a){switch(a.label){case 0:return qe(s.container.flags,16),s.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(s)]:[3,3];case 1:return a.sent(),[4,this.renderNodeContent(s)];case 2:a.sent(),a.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(s,a,d){var C=this;0===a?this.ctx.fillText(s.text,s.bounds.left,s.bounds.top+d):gn(s.text).reduce(function(P,O){return C.ctx.fillText(O,P,s.bounds.top+d),P+C.ctx.measureText(O).width},s.bounds.left)},n.prototype.createFontStyle=function(s){var a=s.fontVariant.filter(function(I){return"normal"===I||"small-caps"===I}).join(""),d=cu(s.fontFamily).join(", "),C=Ir(s.fontSize)?""+s.fontSize.number+s.fontSize.unit:s.fontSize.number+"px";return[[s.fontStyle,a,s.fontWeight,C,d].join(" "),d,C]},n.prototype.renderTextNode=function(s,a){return Et(this,void 0,void 0,function(){var d,I,P,O,eA,aA,uA,e=this;return It(this,function(c){return d=this.createFontStyle(a),I=d[1],P=d[2],this.ctx.font=d[0],this.ctx.direction=1===a.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",O=this.fontMetrics.getMetrics(I,P),eA=O.baseline,aA=O.middle,uA=a.paintOrder,s.textBounds.forEach(function(f){uA.forEach(function(w){switch(w){case 0:e.ctx.fillStyle=vt(a.color),e.renderTextWithLetterSpacing(f,a.letterSpacing,eA);var Q=a.textShadow;Q.length&&f.text.trim().length&&(Q.slice(0).reverse().forEach(function(F){e.ctx.shadowColor=vt(F.color),e.ctx.shadowOffsetX=F.offsetX.number*e.options.scale,e.ctx.shadowOffsetY=F.offsetY.number*e.options.scale,e.ctx.shadowBlur=F.blur.number,e.renderTextWithLetterSpacing(f,a.letterSpacing,eA)}),e.ctx.shadowColor="",e.ctx.shadowOffsetX=0,e.ctx.shadowOffsetY=0,e.ctx.shadowBlur=0),a.textDecorationLine.length&&(e.ctx.fillStyle=vt(a.textDecorationColor||a.color),a.textDecorationLine.forEach(function(F){switch(F){case 1:e.ctx.fillRect(f.bounds.left,Math.round(f.bounds.top+eA),f.bounds.width,1);break;case 2:e.ctx.fillRect(f.bounds.left,Math.round(f.bounds.top),f.bounds.width,1);break;case 3:e.ctx.fillRect(f.bounds.left,Math.ceil(f.bounds.top+aA),f.bounds.width,1)}}));break;case 1:a.webkitTextStrokeWidth&&f.text.trim().length&&(e.ctx.strokeStyle=vt(a.webkitTextStrokeColor),e.ctx.lineWidth=a.webkitTextStrokeWidth,e.ctx.lineJoin=window.chrome?"miter":"round",e.ctx.strokeText(f.text,f.bounds.left,f.bounds.top+eA)),e.ctx.strokeStyle="",e.ctx.lineWidth=0,e.ctx.lineJoin="miter"}})}),[2]})})},n.prototype.renderReplacedElement=function(s,a,d){if(d&&s.intrinsicWidth>0&&s.intrinsicHeight>0){var C=co(s),I=Si(a);this.path(I),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(d,0,0,s.intrinsicWidth,s.intrinsicHeight,C.left,C.top,C.width,C.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(s){return Et(this,void 0,void 0,function(){var a,d,C,I,P,aA,uA,e,f,w,Q,F,y,E,S,_;return It(this,function(k){switch(k.label){case 0:this.applyEffects(s.getEffects(4)),d=s.curves,C=(a=s.container).styles,I=0,P=a.textNodes,k.label=1;case 1:return I<P.length?[4,this.renderTextNode(P[I],C)]:[3,4];case 2:k.sent(),k.label=3;case 3:return I++,[3,1];case 4:if(!(a instanceof eo))return[3,8];k.label=5;case 5:return k.trys.push([5,7,,8]),[4,this.context.cache.match(a.src)];case 6:return y=k.sent(),this.renderReplacedElement(a,d,y),[3,8];case 7:return k.sent(),this.context.logger.error("Error loading image "+a.src),[3,8];case 8:if(a instanceof pn&&this.renderReplacedElement(a,d,a.canvas),!(a instanceof pr))return[3,12];k.label=9;case 9:return k.trys.push([9,11,,12]),[4,this.context.cache.match(a.svg)];case 10:return y=k.sent(),this.renderReplacedElement(a,d,y),[3,12];case 11:return k.sent(),this.context.logger.error("Error loading svg "+a.svg.substring(0,255)),[3,12];case 12:return a instanceof Qi&&a.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:a.backgroundColor,x:0,y:0,width:a.width,height:a.height}).render(a.tree)]:[3,14];case 13:aA=k.sent(),a.width&&a.height&&this.ctx.drawImage(aA,0,0,a.width,a.height,a.bounds.left,a.bounds.top,a.bounds.width,a.bounds.height),k.label=14;case 14:if(a instanceof Ci&&(uA=Math.min(a.bounds.width,a.bounds.height),a.type===Wn?a.checked&&(this.ctx.save(),this.path([new KA(a.bounds.left+.39363*uA,a.bounds.top+.79*uA),new KA(a.bounds.left+.16*uA,a.bounds.top+.5549*uA),new KA(a.bounds.left+.27347*uA,a.bounds.top+.44071*uA),new KA(a.bounds.left+.39694*uA,a.bounds.top+.5649*uA),new KA(a.bounds.left+.72983*uA,a.bounds.top+.23*uA),new KA(a.bounds.left+.84*uA,a.bounds.top+.34085*uA),new KA(a.bounds.left+.39363*uA,a.bounds.top+.79*uA)]),this.ctx.fillStyle=vt(ra),this.ctx.fill(),this.ctx.restore()):a.type===mi&&a.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(a.bounds.left+uA/2,a.bounds.top+uA/2,uA/4,0,2*Math.PI,!0),this.ctx.fillStyle=vt(ra),this.ctx.fill(),this.ctx.restore())),$u(a)&&a.value.length){switch(e=this.createFontStyle(C),f=this.fontMetrics.getMetrics(S=e[0],e[1]).baseline,this.ctx.font=S,this.ctx.fillStyle=vt(C.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=su(a.styles.textAlign),_=co(a),w=0,a.styles.textAlign){case 1:w+=_.width/2;break;case 2:w+=_.width}Q=_.add(w,0,0,-_.height/2+1),this.ctx.save(),this.path([new KA(_.left,_.top),new KA(_.left+_.width,_.top),new KA(_.left+_.width,_.top+_.height),new KA(_.left,_.top+_.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Bn(a.value,Q),C.letterSpacing,f),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!qe(a.styles.display,2048))return[3,20];if(null===a.styles.listStyleImage)return[3,19];if(0!==(F=a.styles.listStyleImage).type)return[3,18];y=void 0,E=F.url,k.label=15;case 15:return k.trys.push([15,17,,18]),[4,this.context.cache.match(E)];case 16:return y=k.sent(),this.ctx.drawImage(y,a.bounds.left-(y.width+10),a.bounds.top),[3,18];case 17:return k.sent(),this.context.logger.error("Error loading list-style-image "+E),[3,18];case 18:return[3,20];case 19:s.listValue&&-1!==a.styles.listStyleType&&(S=this.createFontStyle(C)[0],this.ctx.font=S,this.ctx.fillStyle=vt(C.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",_=new Je(a.bounds.left,a.bounds.top+De(a.styles.paddingTop,a.bounds.width),a.bounds.width,UA(C.lineHeight,C.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Bn(s.listValue,_),C.letterSpacing,UA(C.lineHeight,C.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),k.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(s){return Et(this,void 0,void 0,function(){var a,d,C,I,P,O,eA,aA,uA,e,c,f,w,Q;return It(this,function(y){switch(y.label){case 0:return qe(s.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(s.element)];case 1:y.sent(),a=0,d=s.negativeZIndex,y.label=2;case 2:return a<d.length?[4,this.renderStack(d[a])]:[3,5];case 3:y.sent(),y.label=4;case 4:return a++,[3,2];case 5:return[4,this.renderNodeContent(s.element)];case 6:y.sent(),C=0,I=s.nonInlineLevel,y.label=7;case 7:return C<I.length?[4,this.renderNode(I[C])]:[3,10];case 8:y.sent(),y.label=9;case 9:return C++,[3,7];case 10:P=0,O=s.nonPositionedFloats,y.label=11;case 11:return P<O.length?[4,this.renderStack(O[P])]:[3,14];case 12:y.sent(),y.label=13;case 13:return P++,[3,11];case 14:eA=0,aA=s.nonPositionedInlineLevel,y.label=15;case 15:return eA<aA.length?[4,this.renderStack(aA[eA])]:[3,18];case 16:y.sent(),y.label=17;case 17:return eA++,[3,15];case 18:uA=0,e=s.inlineLevel,y.label=19;case 19:return uA<e.length?[4,this.renderNode(e[uA])]:[3,22];case 20:y.sent(),y.label=21;case 21:return uA++,[3,19];case 22:c=0,f=s.zeroOrAutoZIndexOrTransformedOrOpacity,y.label=23;case 23:return c<f.length?[4,this.renderStack(f[c])]:[3,26];case 24:y.sent(),y.label=25;case 25:return c++,[3,23];case 26:w=0,Q=s.positiveZIndex,y.label=27;case 27:return w<Q.length?[4,this.renderStack(Q[w])]:[3,30];case 28:y.sent(),y.label=29;case 29:return w++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(s){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(s.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(s){this.ctx.beginPath(),this.formatPath(s),this.ctx.closePath()},n.prototype.formatPath=function(s){var a=this;s.forEach(function(d,C){var I=jt(d)?d.start:d;0===C?a.ctx.moveTo(I.x,I.y):a.ctx.lineTo(I.x,I.y),jt(d)&&a.ctx.bezierCurveTo(d.startControl.x,d.startControl.y,d.endControl.x,d.endControl.y,d.end.x,d.end.y)})},n.prototype.renderRepeat=function(s,a,d,C){this.path(s),this.ctx.fillStyle=a,this.ctx.translate(d,C),this.ctx.fill(),this.ctx.translate(-d,-C)},n.prototype.resizeImage=function(s,a,d){var C;if(s.width===a&&s.height===d)return s;var P=(null!==(C=this.canvas.ownerDocument)&&void 0!==C?C:document).createElement("canvas");return P.width=Math.max(1,a),P.height=Math.max(1,d),P.getContext("2d").drawImage(s,0,0,s.width,s.height,0,0,a,d),P},n.prototype.renderBackgroundImage=function(s){return Et(this,void 0,void 0,function(){var a,d,C,I,P;return It(this,function(eA){switch(eA.label){case 0:a=s.styles.backgroundImage.length-1,d=function(aA){var uA,e,c,f,w,Q,F,y,E,S,_,k,nA,iA,W,QA,gA,$,Y,FA,xA,LA,PA,TA,JA,MA,we,ye,ge,he,Ue;return It(this,function(be){switch(be.label){case 0:if(0!==aA.type)return[3,5];uA=void 0,e=aA.url,be.label=1;case 1:return be.trys.push([1,3,,4]),[4,C.context.cache.match(e)];case 2:return uA=be.sent(),[3,4];case 3:return be.sent(),C.context.logger.error("Error loading background-image "+e),[3,4];case 4:return uA&&(c=sc(s,a,[uA.width,uA.height,uA.width/uA.height]),QA=c[0],LA=c[1],PA=c[2],iA=C.ctx.createPattern(C.resizeImage(uA,Y=c[3],FA=c[4]),"repeat"),C.renderRepeat(QA,iA,LA,PA)),[3,6];case 5:!function(i){return 1===i.type}(aA)?function(i){return 2===i.type}(aA)&&(W=sc(s,a,[null,null,null]),QA=W[0],gA=W[1],$=W[2],FA=W[4],LA=De((xA=0===aA.position.length?[xs]:aA.position)[0],Y=W[3]),PA=De(xA[xA.length-1],FA),TA=function(i,n,s,a,d){var C=0,I=0;switch(i.size){case 0:0===i.shape?C=I=Math.min(Math.abs(n),Math.abs(n-a),Math.abs(s),Math.abs(s-d)):1===i.shape&&(C=Math.min(Math.abs(n),Math.abs(n-a)),I=Math.min(Math.abs(s),Math.abs(s-d)));break;case 2:if(0===i.shape)C=I=Math.min(hr(n,s),hr(n,s-d),hr(n-a,s),hr(n-a,s-d));else if(1===i.shape){var P=Math.min(Math.abs(s),Math.abs(s-d))/Math.min(Math.abs(n),Math.abs(n-a)),O=Br(a,d,n,s,!0);I=P*(C=hr(O[0]-n,(O[1]-s)/P))}break;case 1:0===i.shape?C=I=Math.max(Math.abs(n),Math.abs(n-a),Math.abs(s),Math.abs(s-d)):1===i.shape&&(C=Math.max(Math.abs(n),Math.abs(n-a)),I=Math.max(Math.abs(s),Math.abs(s-d)));break;case 3:if(0===i.shape)C=I=Math.max(hr(n,s),hr(n,s-d),hr(n-a,s),hr(n-a,s-d));else if(1===i.shape){P=Math.max(Math.abs(s),Math.abs(s-d))/Math.max(Math.abs(n),Math.abs(n-a));var uA=Br(a,d,n,s,!1);I=P*(C=hr(uA[0]-n,(uA[1]-s)/P))}}return Array.isArray(i.size)&&(C=De(i.size[0],a),I=2===i.size.length?De(i.size[1],d):C),[C,I]}(aA,LA,PA,Y,FA),MA=TA[1],(JA=TA[0])>0&&MA>0&&(we=C.ctx.createRadialGradient(gA+LA,$+PA,0,gA+LA,$+PA,JA),Po(aA.stops,2*JA).forEach(function(ae){return we.addColorStop(ae.stop,vt(ae.color))}),C.path(QA),C.ctx.fillStyle=we,JA!==MA?(ye=s.bounds.left+.5*s.bounds.width,ge=s.bounds.top+.5*s.bounds.height,Ue=1/(he=MA/JA),C.ctx.save(),C.ctx.translate(ye,ge),C.ctx.transform(1,0,0,he,0,0),C.ctx.translate(-ye,-ge),C.ctx.fillRect(gA,Ue*($-ge)+ge,Y,FA*Ue),C.ctx.restore()):C.ctx.fill())):(f=sc(s,a,[null,null,null]),QA=f[0],LA=f[1],PA=f[2],w=Sr(aA.angle,Y=f[3],FA=f[4]),Q=w[0],F=w[1],y=w[2],E=w[3],S=w[4],(_=document.createElement("canvas")).width=Y,_.height=FA,k=_.getContext("2d"),nA=k.createLinearGradient(F,E,y,S),Po(aA.stops,Q).forEach(function(ae){return nA.addColorStop(ae.stop,vt(ae.color))}),k.fillStyle=nA,k.fillRect(0,0,Y,FA),Y>0&&FA>0&&(iA=C.ctx.createPattern(_,"repeat"),C.renderRepeat(QA,iA,LA,PA))),be.label=6;case 6:return a--,[2]}})},C=this,I=0,P=s.styles.backgroundImage.slice(0).reverse(),eA.label=1;case 1:return I<P.length?[5,d(P[I])]:[3,4];case 2:eA.sent(),eA.label=3;case 3:return I++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(s,a,d){return Et(this,void 0,void 0,function(){return It(this,function(C){return this.path(tu(d,a)),this.ctx.fillStyle=vt(s),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(s,a,d,C){return Et(this,void 0,void 0,function(){var I,P;return It(this,function(O){switch(O.label){case 0:return a<3?[4,this.renderSolidBorder(s,d,C)]:[3,2];case 1:return O.sent(),[2];case 2:return I=function(i,n){switch(n){case 0:return Zt(i.topLeftBorderBox,i.topLeftBorderDoubleOuterBox,i.topRightBorderBox,i.topRightBorderDoubleOuterBox);case 1:return Zt(i.topRightBorderBox,i.topRightBorderDoubleOuterBox,i.bottomRightBorderBox,i.bottomRightBorderDoubleOuterBox);case 2:return Zt(i.bottomRightBorderBox,i.bottomRightBorderDoubleOuterBox,i.bottomLeftBorderBox,i.bottomLeftBorderDoubleOuterBox);default:return Zt(i.bottomLeftBorderBox,i.bottomLeftBorderDoubleOuterBox,i.topLeftBorderBox,i.topLeftBorderDoubleOuterBox)}}(C,d),this.path(I),this.ctx.fillStyle=vt(s),this.ctx.fill(),P=function(i,n){switch(n){case 0:return Zt(i.topLeftBorderDoubleInnerBox,i.topLeftPaddingBox,i.topRightBorderDoubleInnerBox,i.topRightPaddingBox);case 1:return Zt(i.topRightBorderDoubleInnerBox,i.topRightPaddingBox,i.bottomRightBorderDoubleInnerBox,i.bottomRightPaddingBox);case 2:return Zt(i.bottomRightBorderDoubleInnerBox,i.bottomRightPaddingBox,i.bottomLeftBorderDoubleInnerBox,i.bottomLeftPaddingBox);default:return Zt(i.bottomLeftBorderDoubleInnerBox,i.bottomLeftPaddingBox,i.topLeftBorderDoubleInnerBox,i.topLeftPaddingBox)}}(C,d),this.path(P),this.ctx.fill(),[2]}})})},n.prototype.renderNodeBackgroundAndBorders=function(s){return Et(this,void 0,void 0,function(){var a,d,C,I,P,O,eA,aA,uA=this;return It(this,function(e){switch(e.label){case 0:return this.applyEffects(s.getEffects(2)),d=!Kn((a=s.container.styles).backgroundColor)||a.backgroundImage.length,C=[{style:a.borderTopStyle,color:a.borderTopColor,width:a.borderTopWidth},{style:a.borderRightStyle,color:a.borderRightColor,width:a.borderRightWidth},{style:a.borderBottomStyle,color:a.borderBottomColor,width:a.borderBottomWidth},{style:a.borderLeftStyle,color:a.borderLeftColor,width:a.borderLeftWidth}],I=au(ir(a.backgroundClip,0),s.curves),d||a.boxShadow.length?(this.ctx.save(),this.path(I),this.ctx.clip(),Kn(a.backgroundColor)||(this.ctx.fillStyle=vt(a.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(s.container)]):[3,2];case 1:e.sent(),this.ctx.restore(),a.boxShadow.slice(0).reverse().forEach(function(c){uA.ctx.save();var f=Vt(s.curves),w=c.inset?0:1e4,Q=function(i,n,s,a,d){return i.map(function(C,I){switch(I){case 0:return C.add(n,s);case 1:return C.add(n+a,s);case 2:return C.add(n+a,s+d);case 3:return C.add(n,s+d)}return C})}(f,(c.inset?1:-1)*c.spread.number-w,(c.inset?1:-1)*c.spread.number,c.spread.number*(c.inset?-2:2),c.spread.number*(c.inset?-2:2));c.inset?(uA.path(f),uA.ctx.clip(),uA.mask(Q)):(uA.mask(f),uA.ctx.clip(),uA.path(Q)),uA.ctx.shadowOffsetX=c.offsetX.number+w,uA.ctx.shadowOffsetY=c.offsetY.number,uA.ctx.shadowColor=vt(c.color),uA.ctx.shadowBlur=c.blur.number,uA.ctx.fillStyle=c.inset?vt(c.color):"rgba(0,0,0,1)",uA.ctx.fill(),uA.ctx.restore()}),e.label=2;case 2:P=0,O=0,eA=C,e.label=3;case 3:return O<eA.length?0!==(aA=eA[O]).style&&!Kn(aA.color)&&aA.width>0?2!==aA.style?[3,5]:[4,this.renderDashedDottedBorder(aA.color,aA.width,P,s.curves,2)]:[3,11]:[3,13];case 4:return e.sent(),[3,11];case 5:return 3!==aA.style?[3,7]:[4,this.renderDashedDottedBorder(aA.color,aA.width,P,s.curves,3)];case 6:return e.sent(),[3,11];case 7:return 4!==aA.style?[3,9]:[4,this.renderDoubleBorder(aA.color,aA.width,P,s.curves)];case 8:return e.sent(),[3,11];case 9:return[4,this.renderSolidBorder(aA.color,P,s.curves)];case 10:e.sent(),e.label=11;case 11:P++,e.label=12;case 12:return O++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(s,a,d,C,I){return Et(this,void 0,void 0,function(){var P,O,eA,aA,uA,e,c,f,w,Q,F,y,E,S,_,k;return It(this,function(nA){return this.ctx.save(),P=function(i,n){switch(n){case 0:return la(i.topLeftBorderStroke,i.topRightBorderStroke);case 1:return la(i.topRightBorderStroke,i.bottomRightBorderStroke);case 2:return la(i.bottomRightBorderStroke,i.bottomLeftBorderStroke);default:return la(i.bottomLeftBorderStroke,i.topLeftBorderStroke)}}(C,d),O=tu(C,d),2===I&&(this.path(O),this.ctx.clip()),jt(O[0])?(eA=O[0].start.x,aA=O[0].start.y):(eA=O[0].x,aA=O[0].y),jt(O[1])?(uA=O[1].end.x,e=O[1].end.y):(uA=O[1].x,e=O[1].y),c=0===d||2===d?Math.abs(eA-uA):Math.abs(aA-e),this.ctx.beginPath(),this.formatPath(3===I?P:O.slice(0,2)),f=a<3?3*a:2*a,w=a<3?2*a:a,3===I&&(f=a,w=a),Q=!0,c<=2*f?Q=!1:c<=2*f+w?(f*=F=c/(2*f+w),w*=F):(y=Math.floor((c+w)/(f+w)),E=(c-y*f)/(y-1),w=(S=(c-(y+1)*f)/y)<=0||Math.abs(w-E)<Math.abs(w-S)?E:S),Q&&this.ctx.setLineDash(3===I?[0,f+w]:[f,w]),3===I?(this.ctx.lineCap="round",this.ctx.lineWidth=a):this.ctx.lineWidth=2*a+1.1,this.ctx.strokeStyle=vt(s),this.ctx.stroke(),this.ctx.setLineDash([]),2===I&&(jt(O[0])&&(_=O[3],k=O[0],this.ctx.beginPath(),this.formatPath([new KA(_.end.x,_.end.y),new KA(k.start.x,k.start.y)]),this.ctx.stroke()),jt(O[1])&&(_=O[1],k=O[2],this.ctx.beginPath(),this.formatPath([new KA(_.end.x,_.end.y),new KA(k.start.x,k.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(s){return Et(this,void 0,void 0,function(){var a;return It(this,function(d){switch(d.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=vt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),a=function(i){var n=new eu(i,null),s=new oo(n),a=[];return ic(n,s,s,a),ac(n.container,a),s}(s),[4,this.renderStack(a)];case 1:return d.sent(),this.applyEffects([]),[2,this.canvas]}})})},n}(Ln),$u=function(i){return i instanceof to||i instanceof Ja||i instanceof Ci&&i.type!==mi&&i.type!==Wn},au=function(i,n){switch(i){case 0:return Vt(n);case 2:return function(i){return[i.topLeftContentBox,i.topRightContentBox,i.bottomRightContentBox,i.bottomLeftContentBox]}(n);default:return Si(n)}},su=function(i){switch(i){case 1:return"center";case 2:return"right";default:return"left"}},ou=["-apple-system","system-ui"],cu=function(i){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?i.filter(function(n){return-1===ou.indexOf(n)}):i},Al=function(i){function n(s,a){var d=i.call(this,s,a)||this;return d.canvas=a.canvas?a.canvas:document.createElement("canvas"),d.ctx=d.canvas.getContext("2d"),d.options=a,d.canvas.width=Math.floor(a.width*a.scale),d.canvas.height=Math.floor(a.height*a.scale),d.canvas.style.width=a.width+"px",d.canvas.style.height=a.height+"px",d.ctx.scale(d.options.scale,d.options.scale),d.ctx.translate(-a.x,-a.y),d.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+a.width+"x"+a.height+" at "+a.x+","+a.y+") with scale "+a.scale),d}return At(n,i),n.prototype.render=function(s){return Et(this,void 0,void 0,function(){var a,d;return It(this,function(C){switch(C.label){case 0:return a=za(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,s),[4,lo(a)];case 1:return d=C.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=vt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(d,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(Ln),lo=function(i){return new Promise(function(n,s){var a=new Image;a.onload=function(){n(a)},a.onerror=s,a.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(i))})},fo=function(){function i(n){var a=n.enabled;this.id=n.id,this.enabled=a,this.start=Date.now()}return i.prototype.debug=function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];this.enabled&&(typeof window<"u"&&window.console&&"function"==typeof console.debug?console.debug.apply(console,Le([this.id,this.getTime()+"ms"],n)):this.info.apply(this,n))},i.prototype.getTime=function(){return Date.now()-this.start},i.prototype.info=function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];this.enabled&&typeof window<"u"&&window.console&&"function"==typeof console.info&&console.info.apply(console,Le([this.id,this.getTime()+"ms"],n))},i.prototype.warn=function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];this.enabled&&(typeof window<"u"&&window.console&&"function"==typeof console.warn?console.warn.apply(console,Le([this.id,this.getTime()+"ms"],n)):this.info.apply(this,n))},i.prototype.error=function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];this.enabled&&(typeof window<"u"&&window.console&&"function"==typeof console.error?console.error.apply(console,Le([this.id,this.getTime()+"ms"],n)):this.info.apply(this,n))},i.instances={},i}(),rs=function(){function i(n,s){var a;this.windowBounds=s,this.instanceName="#"+i.instanceCount++,this.logger=new fo({id:this.instanceName,enabled:n.logging}),this.cache=null!==(a=n.cache)&&void 0!==a?a:new xi(this,n)}return i.instanceCount=1,i}();typeof window<"u"&&Ii.setContext(window);var uu=function(i,n){return Et(void 0,void 0,void 0,function(){var s,a,d,C,I,P,O,eA,aA,uA,e,c,f,w,Q,F,y,E,S,_,k,iA,W,QA,gA,$,Y,FA,xA,LA,PA,TA,JA,MA,we,ye,ge,he;return It(this,function(Ue){switch(Ue.label){case 0:if(!i||"object"!=typeof i)return[2,Promise.reject("Invalid element provided as first argument")];if(!(s=i.ownerDocument))throw new Error("Element is not attached to a Document");if(!(a=s.defaultView))throw new Error("Document is not attached to a Window");return d={allowTaint:null!==(iA=n.allowTaint)&&void 0!==iA&&iA,imageTimeout:null!==(W=n.imageTimeout)&&void 0!==W?W:15e3,proxy:n.proxy,useCORS:null!==(QA=n.useCORS)&&void 0!==QA&&QA},C=Se({logging:null===(gA=n.logging)||void 0===gA||gA,cache:n.cache},d),I={windowWidth:null!==($=n.windowWidth)&&void 0!==$?$:a.innerWidth,windowHeight:null!==(Y=n.windowHeight)&&void 0!==Y?Y:a.innerHeight,scrollX:null!==(FA=n.scrollX)&&void 0!==FA?FA:a.pageXOffset,scrollY:null!==(xA=n.scrollY)&&void 0!==xA?xA:a.pageYOffset},P=new Je(I.scrollX,I.scrollY,I.windowWidth,I.windowHeight),O=new rs(C,P),eA=null!==(LA=n.foreignObjectRendering)&&void 0!==LA&&LA,aA={allowTaint:null!==(PA=n.allowTaint)&&void 0!==PA&&PA,onclone:n.onclone,ignoreElements:n.ignoreElements,inlineImages:eA,copyStyles:eA},O.logger.debug("Starting document clone with size "+P.width+"x"+P.height+" scrolled to "+-P.left+","+-P.top),uA=new Rt(O,i,aA),(e=uA.clonedReferenceElement)?[4,uA.toIFrame(s,P)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return c=Ue.sent(),f=me(e)||function(i){return"HTML"===i.tagName}(e)?function(i){var n=i.body,s=i.documentElement;if(!n||!s)throw new Error("Unable to get document size");var a=Math.max(Math.max(n.scrollWidth,s.scrollWidth),Math.max(n.offsetWidth,s.offsetWidth),Math.max(n.clientWidth,s.clientWidth)),d=Math.max(Math.max(n.scrollHeight,s.scrollHeight),Math.max(n.offsetHeight,s.offsetHeight),Math.max(n.clientHeight,s.clientHeight));return new Je(0,0,a,d)}(e.ownerDocument):In(O,e),w=f.width,Q=f.height,F=f.left,y=f.top,E=el(O,e,n.backgroundColor),S={canvas:n.canvas,backgroundColor:E,scale:null!==(JA=null!==(TA=n.scale)&&void 0!==TA?TA:a.devicePixelRatio)&&void 0!==JA?JA:1,x:(null!==(MA=n.x)&&void 0!==MA?MA:0)+F,y:(null!==(we=n.y)&&void 0!==we?we:0)+y,width:null!==(ye=n.width)&&void 0!==ye?ye:Math.ceil(w),height:null!==(ge=n.height)&&void 0!==ge?ge:Math.ceil(Q)},eA?(O.logger.debug("Document cloned, using foreign object rendering"),[4,new Al(O,S).render(e)]):[3,3];case 2:return _=Ue.sent(),[3,5];case 3:return O.logger.debug("Document cloned, element located at "+F+","+y+" with size "+w+"x"+Q+" using computed rendering"),O.logger.debug("Starting DOM parsing"),k=na(O,e),E===k.styles.backgroundColor&&(k.styles.backgroundColor=Vr.TRANSPARENT),O.logger.debug("Starting renderer for element at "+S.x+","+S.y+" with size "+S.width+"x"+S.height),[4,new Zu(O,S).render(k)];case 4:_=Ue.sent(),Ue.label=5;case 5:return(!(null!==(he=n.removeContainer)&&void 0!==he)||he)&&(Rt.destroy(c)||O.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),O.logger.debug("Finished rendering"),[2,_]}})})},el=function(i,n,s){var a=n.ownerDocument,d=a.documentElement?Vi(i,getComputedStyle(a.documentElement).backgroundColor):Vr.TRANSPARENT,C=a.body?Vi(i,getComputedStyle(a.body).backgroundColor):Vr.TRANSPARENT,I="string"==typeof s?Vi(i,s):null===s?Vr.TRANSPARENT:4294967295;return n===a.documentElement?Kn(d)?Kn(C)?I:C:d:I};return function(i,n){return void 0===n&&(n={}),uu(i,n)}}()},18184:(ll,va,At)=>{"use strict";function Se(r){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(r)}At.r(va),At.d(va,{AcroForm:()=>yt,AcroFormAppearance:()=>OA,AcroFormButton:()=>Bt,AcroFormCheckBox:()=>Jt,AcroFormChoiceField:()=>Pn,AcroFormComboBox:()=>ur,AcroFormEditBox:()=>Ee,AcroFormListBox:()=>Ir,AcroFormPasswordField:()=>lr,AcroFormPushButton:()=>hi,AcroFormRadioButton:()=>Mn,AcroFormTextField:()=>kn,GState:()=>Pa,ShadingPattern:()=>On,TilingPattern:()=>ui,default:()=>Vu,jsPDF:()=>Ae});var Le=Uint8Array,Je=Uint16Array,In=Int32Array,Di=new Le([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),nn=new Le([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Re=new Le([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wo=function(r,A){for(var t=new Je(31),o=0;o<31;++o)t[o]=A+=1<<r[o-1];var l=new In(t[30]);for(o=1;o<30;++o)for(var u=t[o];u<t[o+1];++u)l[u]=u-t[o]<<5|o;return{b:t,r:l}},hc=wo(Di,2),Ti=hc.b,ma=hc.r;Ti[28]=258,ma[258]=28;for(var Oi=wo(nn,0),Ca=Oi.b,vo=Oi.r,Qa=new Je(32768),Ge=0;Ge<32768;++Ge){var zt=(43690&Ge)>>1|(21845&Ge)<<1;Qa[Ge]=((65280&(zt=(61680&(zt=(52428&zt)>>2|(13107&zt)<<2))>>4|(3855&zt)<<4))>>8|(255&zt)<<8)>>1}var Wt=function(r,A,t){for(var o=r.length,l=0,u=new Je(A);l<o;++l)r[l]&&++u[r[l]-1];var g,B=new Je(A);for(l=1;l<A;++l)B[l]=B[l-1]+u[l-1]<<1;if(t){g=new Je(1<<A);var p=15-A;for(l=0;l<o;++l)if(r[l])for(var m=l<<4|r[l],U=A-r[l],b=B[r[l]-1]++<<U,H=b|(1<<U)-1;b<=H;++b)g[Qa[b]>>p]=m}else for(g=new Je(o),l=0;l<o;++l)r[l]&&(g[l]=Qa[B[r[l]-1]++]>>15-r[l]);return g},Lr=new Le(288);for(Ge=0;Ge<144;++Ge)Lr[Ge]=8;for(Ge=144;Ge<256;++Ge)Lr[Ge]=9;for(Ge=256;Ge<280;++Ge)Lr[Ge]=7;for(Ge=280;Ge<288;++Ge)Lr[Ge]=8;var Pi=new Le(32);for(Ge=0;Ge<32;++Ge)Pi[Ge]=5;var mo=Wt(Lr,9,0),Bc=Wt(Lr,9,1),is=Wt(Pi,5,0),gc=Wt(Pi,5,1),as=function(r){for(var A=r[0],t=1;t<r.length;++t)r[t]>A&&(A=r[t]);return A},sr=function(r,A,t){var o=A/8|0;return(r[o]|r[o+1]<<8)>>(7&A)&t},ss=function(r,A){var t=A/8|0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>(7&A)},Fa=function(r){return(r+7)/8|0},xn=function(r,A,t){return(null==A||A<0)&&(A=0),(null==t||t>r.length)&&(t=r.length),new Le(r.subarray(A,t))},dc=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Qe=function(r,A,t){var o=new Error(A||dc[r]);if(o.code=r,Error.captureStackTrace&&Error.captureStackTrace(o,Qe),!t)throw o;return o},kr=function(r,A,t){var o=A/8|0;r[o]|=t<<=7&A,r[o+1]|=t>>8},Mi=function(r,A,t){var o=A/8|0;r[o]|=t<<=7&A,r[o+1]|=t>>8,r[o+2]|=t>>16},ya=function(r,A){for(var t=[],o=0;o<r.length;++o)r[o]&&t.push({s:o,f:r[o]});var l=t.length,u=t.slice();if(!l)return{t:ls,l:0};if(1==l){var B=new Le(t[0].s+1);return B[t[0].s]=1,{t:B,l:1}}t.sort(function(vA,SA){return vA.f-SA.f}),t.push({s:-1,f:25001});var g=t[0],p=t[1],m=0,U=1,b=2;for(t[0]={s:-1,f:g.f+p.f,l:g,r:p};U!=l-1;)g=t[t[m].f<t[b].f?m++:b++],p=t[m!=U&&t[m].f<t[b].f?m++:b++],t[U++]={s:-1,f:g.f+p.f,l:g,r:p};var H=u[0].s;for(o=1;o<l;++o)u[o].s>H&&(H=u[o].s);var v=new Je(H+1),K=cs(t[U-1],v,0);if(K>A){o=0;var T=0,R=K-A,N=1<<R;for(u.sort(function(SA,lA){return v[lA.s]-v[SA.s]||SA.f-lA.f});o<l;++o){var j=u[o].s;if(!(v[j]>A))break;T+=N-(1<<K-v[j]),v[j]=A}for(T>>=R;T>0;){var rA=u[o].s;v[rA]<A?T-=1<<A-v[rA]++-1:++o}for(;o>=0&&T;--o){var cA=u[o].s;v[cA]==A&&(--v[cA],++T)}K=A}return{t:new Le(v),l:K}},cs=function(r,A,t){return-1==r.s?Math.max(cs(r.l,A,t+1),cs(r.r,A,t+1)):A[r.s]=t},ki=function(r){for(var A=r.length;A&&!r[--A];);for(var t=new Je(++A),o=0,l=r[0],u=1,B=function(p){t[o++]=p},g=1;g<=A;++g)if(r[g]==l&&g!=A)++u;else{if(!l&&u>2){for(;u>138;u-=138)B(32754);u>2&&(B(u>10?u-11<<5|28690:u-3<<5|12305),u=0)}else if(u>3){for(B(l),--u;u>6;u-=6)B(8304);u>2&&(B(u-3<<5|8208),u=0)}for(;u--;)B(l);u=1,l=r[g]}return{c:t.subarray(0,o),n:A}},Ki=function(r,A){for(var t=0,o=0;o<A.length;++o)t+=r[o]*A[o];return t},us=function(r,A,t){var o=t.length,l=Fa(A+2);r[l]=255&o,r[l+1]=o>>8,r[l+2]=255^r[l],r[l+3]=255^r[l+1];for(var u=0;u<o;++u)r[l+u+4]=t[u];return 8*(l+4+o)},Co=function(r,A,t,o,l,u,B,g,p,m,U){kr(A,U++,t),++l[256];for(var b=ya(l,15),H=b.t,v=b.l,K=ya(u,15),T=K.t,R=K.l,N=ki(H),j=N.c,rA=N.n,cA=ki(T),vA=cA.c,SA=cA.n,lA=new Je(19),J=0;J<j.length;++J)++lA[31&j[J]];for(J=0;J<vA.length;++J)++lA[31&vA[J]];for(var fA=ya(lA,7),bA=fA.t,D=fA.l,M=19;M>4&&!bA[Re[M-1]];--M);var dA,yA,hA,UA,tA=m+5<<3,X=Ki(l,Lr)+Ki(u,Pi)+B,mA=Ki(l,H)+Ki(u,T)+B+14+3*M+Ki(lA,bA)+2*lA[16]+3*lA[17]+7*lA[18];if(p>=0&&tA<=X&&tA<=mA)return us(A,U,r.subarray(p,p+m));if(kr(A,U,1+(mA<X)),U+=2,mA<X){dA=Wt(H,v,0),yA=H,hA=Wt(T,R,0),UA=T;var IA=Wt(bA,D,0);for(kr(A,U,rA-257),kr(A,U+5,SA-1),kr(A,U+10,M-4),U+=14,J=0;J<M;++J)kr(A,U+3*J,bA[Re[J]]);U+=3*M;for(var qA=[j,vA],x=0;x<2;++x){var G=qA[x];for(J=0;J<G.length;++J)kr(A,U,IA[q=31&G[J]]),U+=bA[q],q>15&&(kr(A,U,G[J]>>5&127),U+=G[J]>>12)}}else dA=mo,yA=Lr,hA=is,UA=Pi;for(J=0;J<g;++J){var AA=o[J];if(AA>255){var q;Mi(A,U,dA[257+(q=AA>>18&31)]),U+=yA[q+257],q>7&&(kr(A,U,AA>>23&31),U+=Di[q]);var sA=31&AA;Mi(A,U,hA[sA]),U+=UA[sA],sA>3&&(Mi(A,U,AA>>5&8191),U+=nn[sA])}else Mi(A,U,dA[AA]),U+=yA[AA]}return Mi(A,U,dA[256]),U+yA[256]},Qo=new In([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ls=new Le(0),fs=function(){var r=1,A=0;return{p:function(t){for(var o=r,l=A,u=0|t.length,B=0;B!=u;){for(var g=Math.min(B+2655,u);B<g;++B)l+=o+=t[B];o=(65535&o)+15*(o>>16),l=(65535&l)+15*(l>>16)}r=o,A=l},d:function(){return(255&(r%=65521))<<24|(65280&r)<<8|(255&(A%=65521))<<8|A>>8}}},ba=function(r,A,t,o,l){if(!l&&(l={l:1},A.dictionary)){var u=A.dictionary.subarray(-32768),B=new Le(u.length+r.length);B.set(u),B.set(r,u.length),r=B,l.w=u.length}return function(r,A,t,o,l,u){var B=u.z||r.length,g=new Le(o+B+5*(1+Math.ceil(B/7e3))+l),p=g.subarray(o,g.length-l),m=u.l,U=7&(u.r||0);if(A){U&&(p[0]=u.r>>3);for(var b=Qo[A-1],H=b>>13,v=8191&b,K=(1<<t)-1,T=u.p||new Je(32768),R=u.h||new Je(K+1),N=Math.ceil(t/3),j=2*N,rA=function(re){return(r[re]^r[re+1]<<N^r[re+2]<<j)&K},cA=new In(25e3),vA=new Je(288),SA=new Je(32),lA=0,J=0,fA=u.i||0,bA=0,D=u.w||0,M=0;fA+2<B;++fA){var tA=rA(fA),X=32767&fA,mA=R[tA];if(T[X]=mA,R[tA]=X,D<=fA){var dA=B-fA;if((lA>7e3||bA>24576)&&(dA>423||!m)){U=Co(r,p,0,cA,vA,SA,J,bA,M,fA-M,U),bA=lA=J=0,M=fA;for(var yA=0;yA<286;++yA)vA[yA]=0;for(yA=0;yA<30;++yA)SA[yA]=0}var hA=2,UA=0,IA=v,qA=X-mA&32767;if(dA>2&&tA==rA(fA-qA))for(var x=Math.min(H,dA)-1,G=Math.min(32767,fA),q=Math.min(258,dA);qA<=G&&--IA&&X!=mA;){if(r[fA+hA]==r[fA+hA-qA]){for(var AA=0;AA<q&&r[fA+AA]==r[fA+AA-qA];++AA);if(AA>hA){if(hA=AA,UA=qA,AA>x)break;var sA=Math.min(qA,AA-2),BA=0;for(yA=0;yA<sA;++yA){var pA=fA-qA+yA&32767,DA=pA-T[pA]&32767;DA>BA&&(BA=DA,mA=pA)}}}qA+=(X=mA)-(mA=T[X])&32767}if(UA){cA[bA++]=268435456|ma[hA]<<18|vo[UA];var _A=31&ma[hA],VA=31&vo[UA];J+=Di[_A]+nn[VA],++vA[257+_A],++SA[VA],D=fA+hA,++lA}else cA[bA++]=r[fA],++vA[r[fA]]}}for(fA=Math.max(fA,D);fA<B;++fA)cA[bA++]=r[fA],++vA[r[fA]];U=Co(r,p,m,cA,vA,SA,J,bA,M,fA-M,U),m||(u.r=7&U|p[U/8|0]<<3,U-=7,u.h=R,u.p=T,u.i=fA,u.w=D)}else{for(fA=u.w||0;fA<B+m;fA+=65535){var GA=fA+65535;GA>=B&&(p[U/8|0]=m,GA=B),U=us(p,U+1,r.subarray(fA,GA))}u.i=B}return xn(g,0,o+Fa(U)+l)}(r,null==A.level?6:A.level,null==A.mem?l.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):20:12+A.mem,t,o,l)},ze=function(r,A,t){for(;t;++A)r[A]=t,t>>>=8};function _a(r,A){A||(A={});var t=fs();t.p(r);var o=ba(r,A,A.dictionary?6:2,4);return function(r,A){var t=A.level,o=0==t?0:t<6?1:9==t?3:2;if(r[0]=120,r[1]=o<<6|(A.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,A.dictionary){var l=fs();l.p(A.dictionary),ze(r,2,l.d())}}(o,A),ze(o,o.length-4,t.d()),o}function Cs(r,A){return function(r,A,t,o){var l=r.length,u=o?o.length:0;if(!l||A.f&&!A.l)return t||new Le(0);var B=!t,g=B||2!=A.i,p=A.i;B&&(t=new Le(3*l));var m=function(_A){var VA=t.length;if(_A>VA){var GA=new Le(Math.max(2*VA,_A));GA.set(t),t=GA}},U=A.f||0,b=A.p||0,H=A.b||0,v=A.l,K=A.d,T=A.m,R=A.n,N=8*l;do{if(!v){U=sr(r,b,1);var j=sr(r,b+1,3);if(b+=3,!j){var cA=r[(rA=Fa(b)+4)-4]|r[rA-3]<<8,vA=rA+cA;if(vA>l){p&&Qe(0);break}g&&m(H+cA),t.set(r.subarray(rA,vA),H),A.b=H+=cA,A.p=b=8*vA,A.f=U;continue}if(1==j)v=Bc,K=gc,T=9,R=5;else if(2==j){var SA=sr(r,b,31)+257,lA=sr(r,b+10,15)+4,J=SA+sr(r,b+5,31)+1;b+=14;for(var fA=new Le(J),bA=new Le(19),D=0;D<lA;++D)bA[Re[D]]=sr(r,b+3*D,7);b+=3*lA;var M=as(bA),tA=(1<<M)-1,X=Wt(bA,M,1);for(D=0;D<J;){var rA,mA=X[sr(r,b,tA)];if(b+=15&mA,(rA=mA>>4)<16)fA[D++]=rA;else{var dA=0,yA=0;for(16==rA?(yA=3+sr(r,b,3),b+=2,dA=fA[D-1]):17==rA?(yA=3+sr(r,b,7),b+=3):18==rA&&(yA=11+sr(r,b,127),b+=7);yA--;)fA[D++]=dA}}var hA=fA.subarray(0,SA),UA=fA.subarray(SA);T=as(hA),R=as(UA),v=Wt(hA,T,1),K=Wt(UA,R,1)}else Qe(1);if(b>N){p&&Qe(0);break}}g&&m(H+131072);for(var IA=(1<<T)-1,qA=(1<<R)-1,x=b;;x=b){var G=(dA=v[ss(r,b)&IA])>>4;if((b+=15&dA)>N){p&&Qe(0);break}if(dA||Qe(2),G<256)t[H++]=G;else{if(256==G){x=b,v=null;break}var q=G-254;G>264&&(q=sr(r,b,(1<<(AA=Di[D=G-257]))-1)+Ti[D],b+=AA);var sA=K[ss(r,b)&qA],BA=sA>>4;if(sA||Qe(3),b+=15&sA,UA=Ca[BA],BA>3){var AA=nn[BA];UA+=ss(r,b)&(1<<AA)-1,b+=AA}if(b>N){p&&Qe(0);break}g&&m(H+131072);var pA=H+q;if(H<UA){var wA=u-UA,DA=Math.min(UA,pA);for(wA+H<0&&Qe(3);H<DA;++H)t[H]=o[wA+H]}for(;H<pA;++H)t[H]=t[H-UA]}}A.l=v,A.p=x,A.b=H,A.f=U,v&&(U=1,A.m=T,A.d=K,A.n=R)}while(!U);return H!=t.length&&B?xn(t,0,H):t.subarray(0,H)}(r.subarray(function(r,A){return(8!=(15&r[0])||r[0]>>4>7||(r[0]<<8|r[1])%31)&&Qe(6,"invalid zlib data"),(r[1]>>5&1)==+!A&&Qe(6,"invalid zlib data: "+(32&r[1]?"need":"unexpected")+" dictionary"),2+(r[1]>>3&4)}(r,A&&A.dictionary),-4),{i:2},A&&A.out,A&&A.dictionary)}var Ri=typeof TextDecoder<"u"&&new TextDecoder;try{Ri.decode(ls,{stream:!0})}catch{}"function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout&&setTimeout;
/** @license
       *
       * jsPDF - PDF Document creation from JavaScript
       * Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
       *                      CommitID 00000000
       *
       * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
       *               2015-2021 yWorks GmbH, http://www.yworks.com
       *               2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
       *               2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
       *               2010 Aaron Spike, https://github.com/acspike
       *               2012 Willow Systems Corporation, https://github.com/willowsystems
       *               2012 Pablo Hess, https://github.com/pablohess
       *               2012 Florian Jenett, https://github.com/fjenett
       *               2013 Warren Weckesser, https://github.com/warrenweckesser
       *               2013 Youssef Beddad, https://github.com/lifof
       *               2013 Lee Driscoll, https://github.com/lsdriscoll
       *               2013 Stefan Slonevskiy, https://github.com/stefslon
       *               2013 Jeremy Morel, https://github.com/jmorel
       *               2013 Christoph Hartmann, https://github.com/chris-rock
       *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
       *               2014 James Makes, https://github.com/dollaruw
       *               2014 Diego Casorran, https://github.com/diegocr
       *               2014 Steven Spungin, https://github.com/Flamenco
       *               2014 Kenneth Glassey, https://github.com/Gavvers
       *
       * Permission is hereby granted, free of charge, to any person obtaining
       * a copy of this software and associated documentation files (the
       * "Software"), to deal in the Software without restriction, including
       * without limitation the rights to use, copy, modify, merge, publish,
       * distribute, sublicense, and/or sell copies of the Software, and to
       * permit persons to whom the Software is furnished to do so, subject to
       * the following conditions:
       *
       * The above copyright notice and this permission notice shall be
       * included in all copies or substantial portions of the Software.
       *
       * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
       * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
       * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
       * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
       * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
       * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
       * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
       *
       * Contributor(s):
       *    siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
       *    kim3er, mfo, alnorth, Flamenco
       */
var te=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function ys(){te.console&&"function"==typeof te.console.log&&te.console.log.apply(te.console,arguments)}var _e={log:ys,warn:function(r){te.console&&("function"==typeof te.console.warn?te.console.warn.apply(te.console,arguments):ys.call(null,arguments))},error:function(r){te.console&&("function"==typeof te.console.error?te.console.error.apply(te.console,arguments):ys(r))}};function an(r,A,t){var o=new XMLHttpRequest;o.open("GET",r),o.responseType="blob",o.onload=function(){oi(o.response,A,t)},o.onerror=function(){_e.error("could not download file")},o.send()}function Nc(r){var A=new XMLHttpRequest;A.open("HEAD",r,!1);try{A.send()}catch{}return A.status>=200&&A.status<=299}function Us(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(A)}}var Oa,si,oi=te.saveAs||("object"!==(typeof window>"u"?"undefined":Se(window))||window!==te?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(r,A,t){var o=te.URL||te.webkitURL,l=document.createElement("a");l.download=A=A||r.name||"download",l.rel="noopener","string"==typeof r?(l.href=r,l.origin!==location.origin?Nc(l.href)?an(r,A,t):Us(l,l.target="_blank"):Us(l)):(l.href=o.createObjectURL(r),setTimeout(function(){o.revokeObjectURL(l.href)},4e4),setTimeout(function(){Us(l)},0))}:"msSaveOrOpenBlob"in navigator?function(r,A,t){if(A=A||r.name||"download","string"==typeof r)if(Nc(r))an(r,A,t);else{var o=document.createElement("a");o.href=r,o.target="_blank",setTimeout(function(){Us(o)})}else navigator.msSaveOrOpenBlob((l=r,void 0===(u=t)?u={autoBom:!1}:"object"!==Se(u)&&(_e.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(l.type)?new Blob([String.fromCharCode(65279),l],{type:l.type}):l),A);var l,u}:function(r,A,t,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof r)return an(r,A,t);var l="application/octet-stream"===r.type,u=/constructor/i.test(te.HTMLElement)||te.safari,B=/CriOS\/[\d]+/.test(navigator.userAgent);if((B||l&&u)&&"object"===(typeof FileReader>"u"?"undefined":Se(FileReader))){var g=new FileReader;g.onloadend=function(){var U=g.result;U=B?U:U.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=U:location=U,o=null},g.readAsDataURL(r)}else{var p=te.URL||te.webkitURL,m=p.createObjectURL(r);o?o.location=m:location.href=m,o=null,setTimeout(function(){p.revokeObjectURL(m)},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 _c(r){var A;r=r||"",this.ok=!1,"#"==r.charAt(0)&&(r=r.substr(1,6)),r={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"}[r=(r=r.replace(/ /g,"")).toLowerCase()]||r;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(g){return[parseInt(g[1]),parseInt(g[2]),parseInt(g[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(g){return[parseInt(g[1],16),parseInt(g[2],16),parseInt(g[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(g){return[parseInt(g[1]+g[1],16),parseInt(g[2]+g[2],16),parseInt(g[3]+g[3],16)]}}],o=0;o<t.length;o++){var u=t[o].process,B=t[o].re.exec(r);B&&(A=u(B),this.r=A[0],this.g=A[1],this.b=A[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 g=this.r.toString(16),p=this.g.toString(16),m=this.b.toString(16);return 1==g.length&&(g="0"+g),1==p.length&&(p="0"+p),1==m.length&&(m="0"+m),"#"+g+p+m}}
/**
       * @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 Lo(r,A){var t=r[0],o=r[1],l=r[2],u=r[3];t=xt(t,o,l,u,A[0],7,-680876936),u=xt(u,t,o,l,A[1],12,-389564586),l=xt(l,u,t,o,A[2],17,606105819),o=xt(o,l,u,t,A[3],22,-1044525330),t=xt(t,o,l,u,A[4],7,-176418897),u=xt(u,t,o,l,A[5],12,1200080426),l=xt(l,u,t,o,A[6],17,-1473231341),o=xt(o,l,u,t,A[7],22,-45705983),t=xt(t,o,l,u,A[8],7,1770035416),u=xt(u,t,o,l,A[9],12,-1958414417),l=xt(l,u,t,o,A[10],17,-42063),o=xt(o,l,u,t,A[11],22,-1990404162),t=xt(t,o,l,u,A[12],7,1804603682),u=xt(u,t,o,l,A[13],12,-40341101),l=xt(l,u,t,o,A[14],17,-1502002290),t=St(t,o=xt(o,l,u,t,A[15],22,1236535329),l,u,A[1],5,-165796510),u=St(u,t,o,l,A[6],9,-1069501632),l=St(l,u,t,o,A[11],14,643717713),o=St(o,l,u,t,A[0],20,-373897302),t=St(t,o,l,u,A[5],5,-701558691),u=St(u,t,o,l,A[10],9,38016083),l=St(l,u,t,o,A[15],14,-660478335),o=St(o,l,u,t,A[4],20,-405537848),t=St(t,o,l,u,A[9],5,568446438),u=St(u,t,o,l,A[14],9,-1019803690),l=St(l,u,t,o,A[3],14,-187363961),o=St(o,l,u,t,A[8],20,1163531501),t=St(t,o,l,u,A[13],5,-1444681467),u=St(u,t,o,l,A[2],9,-51403784),l=St(l,u,t,o,A[7],14,1735328473),t=je(t,o=St(o,l,u,t,A[12],20,-1926607734),l,u,A[5],4,-378558),u=je(u,t,o,l,A[8],11,-2022574463),l=je(l,u,t,o,A[11],16,1839030562),o=je(o,l,u,t,A[14],23,-35309556),t=je(t,o,l,u,A[1],4,-1530992060),u=je(u,t,o,l,A[4],11,1272893353),l=je(l,u,t,o,A[7],16,-155497632),o=je(o,l,u,t,A[10],23,-1094730640),t=je(t,o,l,u,A[13],4,681279174),u=je(u,t,o,l,A[0],11,-358537222),l=je(l,u,t,o,A[3],16,-722521979),o=je(o,l,u,t,A[6],23,76029189),t=je(t,o,l,u,A[9],4,-640364487),u=je(u,t,o,l,A[12],11,-421815835),l=je(l,u,t,o,A[15],16,530742520),t=Ft(t,o=je(o,l,u,t,A[2],23,-995338651),l,u,A[0],6,-198630844),u=Ft(u,t,o,l,A[7],10,1126891415),l=Ft(l,u,t,o,A[14],15,-1416354905),o=Ft(o,l,u,t,A[5],21,-57434055),t=Ft(t,o,l,u,A[12],6,1700485571),u=Ft(u,t,o,l,A[3],10,-1894986606),l=Ft(l,u,t,o,A[10],15,-1051523),o=Ft(o,l,u,t,A[1],21,-2054922799),t=Ft(t,o,l,u,A[8],6,1873313359),u=Ft(u,t,o,l,A[15],10,-30611744),l=Ft(l,u,t,o,A[6],15,-1560198380),o=Ft(o,l,u,t,A[13],21,1309151649),t=Ft(t,o,l,u,A[4],6,-145523070),u=Ft(u,t,o,l,A[11],10,-1120210379),l=Ft(l,u,t,o,A[2],15,718787259),o=Ft(o,l,u,t,A[9],21,-343485551),r[0]=sn(t,r[0]),r[1]=sn(o,r[1]),r[2]=sn(l,r[2]),r[3]=sn(u,r[3])}function bs(r,A,t,o,l,u){return A=sn(sn(A,r),sn(o,u)),sn(A<<l|A>>>32-l,t)}function xt(r,A,t,o,l,u,B){return bs(A&t|~A&o,r,A,l,u,B)}function St(r,A,t,o,l,u,B){return bs(A&o|t&~o,r,A,l,u,B)}function je(r,A,t,o,l,u,B){return bs(A^t^o,r,A,l,u,B)}function Ft(r,A,t,o,l,u,B){return bs(t^(A|~o),r,A,l,u,B)}function Eo(r){var A,t=r.length,o=[1732584193,-271733879,-1732584194,271733878];for(A=64;A<=r.length;A+=64)Lo(o,Dc(r.substring(A-64,A)));r=r.substring(A-64);var l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(A=0;A<r.length;A++)l[A>>2]|=r.charCodeAt(A)<<(A%4<<3);if(l[A>>2]|=128<<(A%4<<3),A>55)for(Lo(o,l),A=0;A<16;A++)l[A]=0;return l[14]=8*t,Lo(o,l),o}function Dc(r){var A,t=[];for(A=0;A<64;A+=4)t[A>>2]=r.charCodeAt(A)+(r.charCodeAt(A+1)<<8)+(r.charCodeAt(A+2)<<16)+(r.charCodeAt(A+3)<<24);return t}Oa=te.atob.bind(te),si=te.btoa.bind(te);var Tc="0123456789abcdef".split("");function Eu(r){for(var A="",t=0;t<4;t++)A+=Tc[r>>8*t+4&15]+Tc[r>>8*t&15];return A}function Iu(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function Ls(r){return Eo(r).map(Iu).join("")}var Oc="5d41402abc4b2a76b9719d911017c592"!=function(r){for(var A=0;A<r.length;A++)r[A]=Eu(r[A]);return r.join("")}(Eo("hello"));function sn(r,A){if(Oc){var t=(65535&r)+(65535&A);return(r>>16)+(A>>16)+(t>>16)<<16|65535&t}return r+A&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 Io(r,A){var t,o,l;if(r!==t){for(var B=(l=r,new Array(1+(256/r.length>>0)+1).join(l)),g=[],p=0;p<256;p++)g[p]=p;var m=0;for(p=0;p<256;p++){var U=g[p];m=(m+U+B.charCodeAt(p))%256,g[p]=g[m],g[m]=U}t=r,o=g}else g=o;var b=A.length,H=0,v=0,K="";for(p=0;p<b;p++)v=(v+(U=g[H=(H+1)%256]))%256,g[H]=g[v],g[v]=U,B=g[(g[H]+g[v])%256],K+=String.fromCharCode(A.charCodeAt(p)^B);return K}
/**
       * @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 Pc={print:4,modify:8,copy:16,"annot-forms":32};function at(r,A,t,o){this.v=1,this.r=2;var l=192;r.forEach(function(g){if(void 0!==Pc.perm)throw new Error("Invalid permission: "+g);l+=Pc[g]}),this.padding="(\xbfN^Nu\x8aAd\0NV\xff\xfa\x01\b..\0\xb6\xd0h>\x80/\f\xa9\xfedSiz";var u=(A+this.padding).substr(0,32),B=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(u,B),this.P=-(1+(255^l)),this.encryptionKey=Ls(u+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(o)).substr(0,5),this.U=Io(this.encryptionKey,this.padding)}function Gi(r){if(/[^\u0000-\u00ff]/.test(r))throw new Error("Invalid PDF Name Object: "+r+", Only accept ASCII characters.");for(var A="",t=r.length,o=0;o<t;o++){var l=r.charCodeAt(o);A+=l<33||35===l||37===l||40===l||41===l||47===l||60===l||62===l||91===l||93===l||123===l||125===l||l>126?"#"+("0"+l.toString(16)).slice(-2):r[o]}return A}function ci(r){if("object"!==Se(r))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var A={};this.subscribe=function(t,o,l){if(l=l||!1,"string"!=typeof t||"function"!=typeof o||"boolean"!=typeof l)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");A.hasOwnProperty(t)||(A[t]={});var u=Math.random().toString(35);return A[t][u]=[o,!!l],u},this.unsubscribe=function(t){for(var o in A)if(A[o][t])return delete A[o][t],0===Object.keys(A[o]).length&&delete A[o],!0;return!1},this.publish=function(t){if(A.hasOwnProperty(t)){var o=Array.prototype.slice.call(arguments,1),l=[];for(var u in A[t]){var B=A[t][u];try{B[0].apply(r,o)}catch(g){te.console&&_e.error("jsPDF PubSub Error",g.message,g)}B[1]&&l.push(u)}l.length&&l.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function Pa(r){if(!(this instanceof Pa))return new Pa(r);var A="opacity,stroke-opacity".split(",");for(var t in r)r.hasOwnProperty(t)&&A.indexOf(t)>=0&&(this[t]=r[t]);this.id="",this.objectNumber=-1}function Mc(r,A){this.gState=r,this.matrix=A,this.id="",this.objectNumber=-1}function On(r,A,t,o,l){if(!(this instanceof On))return new On(r,A,t,o,l);this.type="axial"===r?2:3,this.coords=A,this.colors=t,Mc.call(this,o,l)}function ui(r,A,t,o,l){if(!(this instanceof ui))return new ui(r,A,t,o,l);this.boundingBox=r,this.xStep=A,this.yStep=t,this.stream="",this.cloneIndex=0,Mc.call(this,o,l)}function Ae(r){var A,t="string"==typeof arguments[0]?arguments[0]:"p",o=arguments[1],l=arguments[2],u=arguments[3],B=[],g=1,p=16,m="S",U=null;"object"===Se(r=r||{})&&(t=r.orientation,o=r.unit||o,l=r.format||l,u=r.compress||r.compressPdf||u,null!==(U=r.encryption||null)&&(U.userPassword=U.userPassword||"",U.ownerPassword=U.ownerPassword||"",U.userPermissions=U.userPermissions||[]),g="number"==typeof r.userUnit?Math.abs(r.userUnit):1,void 0!==r.precision&&(A=r.precision),void 0!==r.floatPrecision&&(p=r.floatPrecision),m=r.defaultPathOperation||"S"),B=r.filters||(!0===u?["FlateEncode"]:B),o=o||"mm",t=(""+(t||"P")).toLowerCase();var b=r.putOnlyUsedFonts||!1,H={},v={internal:{},__private__:{}};v.__private__.PubSub=ci;var K="1.3",T=v.__private__.getPdfVersion=function(){return K};v.__private__.setPdfVersion=function(h){K=h};var R={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]};v.__private__.getPageFormats=function(){return R};var N=v.__private__.getPageFormat=function(h){return R[h]};l=l||"a4";var rA="compat";function cA(){this.saveGraphicsState(),z(new ee(WA,0,0,-WA,0,vn()*WA).toString()+" cm"),this.setFontSize(this.getFontSize()/WA),m="n",rA="advanced"}function vA(){this.restoreGraphicsState(),m="S",rA="compat"}var SA=v.__private__.combineFontStyleAndFontWeight=function(h,L){if("bold"==h&&"normal"==L||"bold"==h&&400==L||"normal"==h&&"italic"==L||"bold"==h&&"italic"==L)throw new Error("Invalid Combination of fontweight and fontstyle");return L&&(h=400==L||"normal"===L?"italic"===h?"italic":"normal":700!=L&&"bold"!==L||"normal"!==h?(700==L?"bold":L)+""+h:"bold"),h};v.advancedAPI=function(h){var L="compat"===rA;return L&&cA.call(this),"function"!=typeof h||(h(this),L&&vA.call(this)),this},v.compatAPI=function(h){var L="advanced"===rA;return L&&vA.call(this),"function"!=typeof h||(h(this),L&&cA.call(this)),this},v.isAdvancedAPI=function(){return"advanced"===rA};var lA,J=function(h){if("advanced"!==rA)throw new Error(h+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},fA=v.roundToPrecision=v.__private__.roundToPrecision=function(h,L){var V=A||L;if(isNaN(h)||isNaN(V))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return h.toFixed(V).replace(/0+$/,"")};lA=v.hpf=v.__private__.hpf="number"==typeof p?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return fA(h,p)}:"smart"===p?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return fA(h,h>-1&&h<1?16:5)}:function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return fA(h,16)};var bA=v.f2=v.__private__.f2=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f2");return fA(h,2)},D=v.__private__.f3=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f3");return fA(h,3)},M=v.scale=v.__private__.scale=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.scale");return"compat"===rA?h*WA:"advanced"===rA?h:void 0},X=function(h){return M(function(h){return"compat"===rA?vn()-h:"advanced"===rA?h:void 0}(h))};v.__private__.setPrecision=v.setPrecision=function(h){"number"==typeof parseInt(h,10)&&(A=parseInt(h,10))};var mA,dA="00000000000000000000000000000000",yA=v.__private__.getFileId=function(){return dA},hA=v.__private__.setFileId=function(h){return dA=void 0!==h&&/^[a-fA-F0-9]{32}$/.test(h)?h.toUpperCase():dA.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==U&&(Nt=new at(U.userPermissions,U.userPassword,U.ownerPassword,dA)),dA};v.setFileId=function(h){return hA(h),this},v.getFileId=function(){return yA()};var UA=v.__private__.convertDateToPDFDate=function(h){var L=h.getTimezoneOffset(),V=L<0?"+":"-",Z=Math.floor(Math.abs(L/60)),oA=Math.abs(L%60),CA=[V,q(Z),"'",q(oA),"'"].join("");return["D:",h.getFullYear(),q(h.getMonth()+1),q(h.getDate()),q(h.getHours()),q(h.getMinutes()),q(h.getSeconds()),CA].join("")},IA=v.__private__.convertPDFDateToDate=function(h){var L=parseInt(h.substr(2,4),10),V=parseInt(h.substr(6,2),10)-1,Z=parseInt(h.substr(8,2),10),oA=parseInt(h.substr(10,2),10),CA=parseInt(h.substr(12,2),10),HA=parseInt(h.substr(14,2),10);return new Date(L,V,Z,oA,CA,HA,0)},qA=v.__private__.setCreationDate=function(h){var L;if(void 0===h&&(h=new Date),h instanceof Date)L=UA(h);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(h))throw new Error("Invalid argument passed to jsPDF.setCreationDate");L=h}return mA=L},x=v.__private__.getCreationDate=function(h){var L=mA;return"jsDate"===h&&(L=IA(mA)),L};v.setCreationDate=function(h){return qA(h),this},v.getCreationDate=function(h){return x(h)};var G,q=v.__private__.padd2=function(h){return("0"+parseInt(h)).slice(-2)},AA=v.__private__.padd2Hex=function(h){return("00"+(h=h.toString())).substr(h.length)},sA=0,BA=[],pA=[],wA=0,DA=[],_A=[],VA=!1,GA=pA;v.__private__.setCustomOutputDestination=function(h){VA=!0,GA=h};var EA=function(h){VA||(GA=h)};v.__private__.resetCustomOutputDestination=function(){VA=!1,GA=pA};var z=v.__private__.out=function(h){return h=h.toString(),wA+=h.length+1,GA.push(h),GA},le=v.__private__.write=function(h){return z(1===arguments.length?h.toString():Array.prototype.join.call(arguments," "))},YA=v.__private__.getArrayBuffer=function(h){for(var L=h.length,V=new ArrayBuffer(L),Z=new Uint8Array(V);L--;)Z[L]=h.charCodeAt(L);return V},NA=[["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]];v.__private__.getStandardFonts=function(){return NA};var RA=r.fontSize||16;v.__private__.setFontSize=v.setFontSize=function(h){return RA="advanced"===rA?h/WA:h,this};var zA,jA=v.__private__.getFontSize=v.getFontSize=function(){return"compat"===rA?RA:RA*WA},ZA=r.R2L||!1;v.__private__.setR2L=v.setR2L=function(h){return ZA=h,this},v.__private__.getR2L=v.getR2L=function(){return ZA};var ce,Be=v.__private__.setZoomMode=function(h){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(h))zA=h;else if(isNaN(h)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(h))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+h+'" is not recognized.');zA=h}else zA=parseInt(h,10)};v.__private__.getZoomMode=function(){return zA};var de,ve=v.__private__.setPageMode=function(h){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(h))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+h+'" is not recognized.');ce=h};v.__private__.getPageMode=function(){return ce};var Te=v.__private__.setLayoutMode=function(h){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(h))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+h+'" is not recognized.');de=h};v.__private__.getLayoutMode=function(){return de},v.__private__.setDisplayMode=v.setDisplayMode=function(h,L,V){return Be(h),Te(L),ve(V),this};var ie={title:"",subject:"",author:"",keywords:"",creator:""};v.__private__.getDocumentProperty=function(h){if(-1===Object.keys(ie).indexOf(h))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ie[h]},v.__private__.getDocumentProperties=function(){return ie},v.__private__.setDocumentProperties=v.setProperties=v.setDocumentProperties=function(h){for(var L in ie)ie.hasOwnProperty(L)&&h[L]&&(ie[L]=h[L]);return this},v.__private__.setDocumentProperty=function(h,L){if(-1===Object.keys(ie).indexOf(h))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ie[h]=L};var pe,WA,Ht,Ie,Hr,Pe={},We={},zr=[],Ne={},qe={},et={},Nr={},ln=null,tt=0,ue=[],He=new ci(v),gi=r.hotfixes||[],Ut={},Wr={},Xr=[],ee=function h(L,V,Z,oA,CA,HA){if(!(this instanceof h))return new h(L,V,Z,oA,CA,HA);isNaN(L)&&(L=1),isNaN(V)&&(V=0),isNaN(Z)&&(Z=0),isNaN(oA)&&(oA=1),isNaN(CA)&&(CA=0),isNaN(HA)&&(HA=0),this._matrix=[L,V,Z,oA,CA,HA]};Object.defineProperty(ee.prototype,"sx",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(ee.prototype,"shy",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(ee.prototype,"shx",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(ee.prototype,"sy",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(ee.prototype,"tx",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(ee.prototype,"ty",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(ee.prototype,"a",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(ee.prototype,"b",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(ee.prototype,"c",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(ee.prototype,"d",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(ee.prototype,"e",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(ee.prototype,"f",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(ee.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ee.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ee.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ee.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),ee.prototype.join=function(h){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(lA).join(h)},ee.prototype.multiply=function(h){return new ee(h.sx*this.sx+h.shy*this.shx,h.sx*this.shy+h.shy*this.sy,h.shx*this.sx+h.sy*this.shx,h.shx*this.shy+h.sy*this.sy,h.tx*this.sx+h.ty*this.shx+this.tx,h.tx*this.shy+h.ty*this.sy+this.ty)},ee.prototype.decompose=function(){var h=this.sx,L=this.shy,V=this.shx,Z=this.sy,oA=this.tx,CA=this.ty,HA=Math.sqrt(h*h+L*L),XA=(h/=HA)*V+(L/=HA)*Z;V-=h*XA,Z-=L*XA;var $A=Math.sqrt(V*V+Z*Z);return XA/=$A,h*(Z/=$A)<L*(V/=$A)&&(h=-h,L=-L,XA=-XA,HA=-HA),{scale:new ee(HA,0,0,$A,0,0),translate:new ee(1,0,0,1,oA,CA),rotate:new ee(h,L,-L,h,0,0),skew:new ee(1,0,XA,1,0,0)}},ee.prototype.toString=function(h){return this.join(" ")},ee.prototype.inversed=function(){var h=this.sx,L=this.shy,V=this.shx,Z=this.sy,oA=this.tx,CA=this.ty,HA=1/(h*Z-L*V),XA=Z*HA,$A=-L*HA,fe=-V*HA,oe=h*HA;return new ee(XA,$A,fe,oe,-XA*oA-fe*CA,-$A*oA-oe*CA)},ee.prototype.applyToPoint=function(h){return new ta(h.x*this.sx+h.y*this.shx+this.tx,h.x*this.shy+h.y*this.sy+this.ty)},ee.prototype.applyToRectangle=function(h){var L=this.applyToPoint(h),V=this.applyToPoint(new ta(h.x+h.w,h.y+h.h));return new ra(L.x,L.y,V.x-L.x,V.y-L.y)},ee.prototype.clone=function(){return new ee(this.sx,this.shy,this.shx,this.sy,this.tx,this.ty)},v.Matrix=ee;var _r=v.matrixMult=function(h,L){return L.multiply(h)},Dr=new ee(1,0,0,1,0,0);v.unitMatrix=v.identityMatrix=Dr;var kA=function(h,L){if(!qe[h]){var V=(L instanceof On?"Sh":"P")+(Object.keys(Ne).length+1).toString(10);L.id=V,qe[h]=V,Ne[V]=L,He.publish("addPattern",L)}};v.ShadingPattern=On,v.TilingPattern=ui,v.addShadingPattern=function(h,L){return J("addShadingPattern()"),kA(h,L),this},v.beginTilingPattern=function(h){J("beginTilingPattern()"),Ja(h.boundingBox[0],h.boundingBox[1],h.boundingBox[2]-h.boundingBox[0],h.boundingBox[3]-h.boundingBox[1],h.matrix)},v.endTilingPattern=function(h,L){J("endTilingPattern()"),L.stream=_A[G].join("\n"),kA(h,L),He.publish("endTilingPattern",L),Xr.pop().restore()};var h,gt=v.__private__.newObject=function(){var h=ft();return Pt(h,!0),h},ft=v.__private__.newObjectDeferred=function(){return sA++,BA[sA]=function(){return wA},sA},Pt=function(h,L){return L="boolean"==typeof L&&L,BA[h]=wA,L&&z(h+" 0 obj"),h},Mt=v.__private__.newAdditionalObject=function(){var h={objId:ft(),content:""};return DA.push(h),h},fn=ft(),gr=ft(),kt=v.__private__.decodeColorString=function(h){var L=h.split(" ");if(2!==L.length||"g"!==L[1]&&"G"!==L[1])5===L.length&&("k"===L[4]||"K"===L[4])&&(L=[(1-L[0])*(1-L[3]),(1-L[1])*(1-L[3]),(1-L[2])*(1-L[3]),"r"]);else{var V=parseFloat(L[0]);L=[V,V,V,"r"]}for(var Z="#",oA=0;oA<3;oA++)Z+=("0"+Math.floor(255*parseFloat(L[oA])).toString(16)).slice(-2);return Z},Yt=v.__private__.encodeColorString=function(h){var L;"string"==typeof h&&(h={ch1:h});var V=h.ch1,Z=h.ch2,oA=h.ch3,CA=h.ch4,HA="draw"===h.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof V&&"#"!==V.charAt(0)){var XA=new _c(V);if(XA.ok)V=XA.toHex();else if(!/^\d*\.?\d*$/.test(V))throw new Error('Invalid color "'+V+'" passed to jsPDF.encodeColorString.')}if("string"==typeof V&&/^#[0-9A-Fa-f]{3}$/.test(V)&&(V="#"+V[1]+V[1]+V[2]+V[2]+V[3]+V[3]),"string"==typeof V&&/^#[0-9A-Fa-f]{6}$/.test(V)){var $A=parseInt(V.substr(1),16);V=$A>>16&255,Z=$A>>8&255,oA=255&$A}if(void 0===Z||void 0===CA&&V===Z&&Z===oA)L="string"==typeof V?V+" "+HA[0]:2===h.precision?bA(V/255)+" "+HA[0]:D(V/255)+" "+HA[0];else if(void 0===CA||"object"===Se(CA)){if(CA&&!isNaN(CA.a)&&0===CA.a)return["1.","1.","1.",HA[1]].join(" ");L="string"==typeof V?[V,Z,oA,HA[1]].join(" "):2===h.precision?[bA(V/255),bA(Z/255),bA(oA/255),HA[1]].join(" "):[D(V/255),D(Z/255),D(oA/255),HA[1]].join(" ")}else L="string"==typeof V?[V,Z,oA,CA,HA[2]].join(" "):2===h.precision?[bA(V),bA(Z),bA(oA),bA(CA),HA[2]].join(" "):[D(V),D(Z),D(oA),D(CA),HA[2]].join(" ");return L},Jr=v.__private__.getFilters=function(){return B},dr=v.__private__.putStream=function(h){var L=(h=h||{}).data||"",V=h.filters||Jr(),Z=h.alreadyAppliedFilters||[],oA=h.addLength1||!1,CA=L.length,HA=h.objectId,XA=function(Lt){return Lt};if(null!==U&&void 0===HA)throw new Error("ObjectId must be passed to putStream for file encryption");null!==U&&(XA=Nt.encryptor(HA,0));var $A={};!0===V&&(V=["FlateEncode"]);var fe=h.additionalKeyValues||[],oe=($A=void 0!==Ae.API.processDataByFilters?Ae.API.processDataByFilters(L,V):{data:L,reverseChain:[]}).reverseChain+(Array.isArray(Z)?Z.join(" "):Z.toString());if(0!==$A.data.length&&(fe.push({key:"Length",value:$A.data.length}),!0===oA&&fe.push({key:"Length1",value:CA})),0!=oe.length)if(oe.split("/").length-1==1)fe.push({key:"Filter",value:oe});else{fe.push({key:"Filter",value:"["+oe+"]"});for(var me=0;me<fe.length;me+=1)if("DecodeParms"===fe[me].key){for(var Xe=[],Ye=0;Ye<$A.reverseChain.split("/").length-1;Ye+=1)Xe.push("null");Xe.push(fe[me].value),fe[me].value="["+Xe.join(" ")+"]"}}z("<<");for(var rt=0;rt<fe.length;rt++)z("/"+fe[rt].key+" "+fe[rt].value);z(">>"),0!==$A.data.length&&(z("stream"),z(XA($A.data)),z("endstream"))},Yr=v.__private__.putPage=function(h){var L=h.number,V=h.data,Z=h.objId,oA=h.contentsObjId;Pt(Z,!0),z("<</Type /Page"),z("/Parent "+h.rootDictionaryObjId+" 0 R"),z("/Resources "+h.resourceDictionaryObjId+" 0 R"),z("/MediaBox ["+parseFloat(lA(h.mediaBox.bottomLeftX))+" "+parseFloat(lA(h.mediaBox.bottomLeftY))+" "+lA(h.mediaBox.topRightX)+" "+lA(h.mediaBox.topRightY)+"]"),null!==h.cropBox&&z("/CropBox ["+lA(h.cropBox.bottomLeftX)+" "+lA(h.cropBox.bottomLeftY)+" "+lA(h.cropBox.topRightX)+" "+lA(h.cropBox.topRightY)+"]"),null!==h.bleedBox&&z("/BleedBox ["+lA(h.bleedBox.bottomLeftX)+" "+lA(h.bleedBox.bottomLeftY)+" "+lA(h.bleedBox.topRightX)+" "+lA(h.bleedBox.topRightY)+"]"),null!==h.trimBox&&z("/TrimBox ["+lA(h.trimBox.bottomLeftX)+" "+lA(h.trimBox.bottomLeftY)+" "+lA(h.trimBox.topRightX)+" "+lA(h.trimBox.topRightY)+"]"),null!==h.artBox&&z("/ArtBox ["+lA(h.artBox.bottomLeftX)+" "+lA(h.artBox.bottomLeftY)+" "+lA(h.artBox.topRightX)+" "+lA(h.artBox.topRightY)+"]"),"number"==typeof h.userUnit&&1!==h.userUnit&&z("/UserUnit "+h.userUnit),He.publish("putPage",{objId:Z,pageContext:ue[L],pageNumber:L,page:V}),z("/Contents "+oA+" 0 R"),z(">>"),z("endobj");var CA=V.join("\n");return"advanced"===rA&&(CA+="\nQ"),Pt(oA,!0),dr({data:CA,filters:Jr(),objectId:oA}),z("endobj"),Z},er=v.__private__.putPages=function(){var h,L,V=[];for(h=1;h<=tt;h++)ue[h].objId=ft(),ue[h].contentsObjId=ft();for(h=1;h<=tt;h++)V.push(Yr({number:h,data:_A[h],objId:ue[h].objId,contentsObjId:ue[h].contentsObjId,mediaBox:ue[h].mediaBox,cropBox:ue[h].cropBox,bleedBox:ue[h].bleedBox,trimBox:ue[h].trimBox,artBox:ue[h].artBox,userUnit:ue[h].userUnit,rootDictionaryObjId:fn,resourceDictionaryObjId:gr}));Pt(fn,!0),z("<</Type /Pages");var Z="/Kids [";for(L=0;L<tt;L++)Z+=V[L]+" 0 R ";z(Z+"]"),z("/Count "+tt),z(">>"),z("endobj"),He.publish("postPutPages")},Gn=function(h){He.publish("putFont",{font:h,out:z,newObject:gt,putStream:dr}),!0!==h.isAlreadyPutted&&(h.objectNumber=gt(),z("<<"),z("/Type /Font"),z("/BaseFont /"+Gi(h.postScriptName)),z("/Subtype /Type1"),"string"==typeof h.encoding&&z("/Encoding /"+h.encoding),z("/FirstChar 32"),z("/LastChar 255"),z(">>"),z("endobj"))},qi=function(h){h.objectNumber=gt();var L=[];L.push({key:"Type",value:"/XObject"}),L.push({key:"Subtype",value:"/Form"}),L.push({key:"BBox",value:"["+[lA(h.x),lA(h.y),lA(h.x+h.width),lA(h.y+h.height)].join(" ")+"]"}),L.push({key:"Matrix",value:"["+h.matrix.toString()+"]"});var V=h.pages[1].join("\n");dr({data:V,additionalKeyValues:L,objectId:h.objectNumber}),z("endobj")},ka=function(h,L){L||(L=21);var V=gt(),Z=function(h,L){var V,Z=[],oA=1/(L-1);for(V=0;V<1;V+=oA)Z.push(V);Z.push(1),0!=h[0].offset&&h.unshift({offset:0,color:h[0].color}),1!=h[h.length-1].offset&&h.push({offset:1,color:h[h.length-1].color});for(var XA="",$A=0,fe=0;fe<Z.length;fe++){for(V=Z[fe];V>h[$A+1].offset;)$A++;var oe=h[$A].offset,me=(V-oe)/(h[$A+1].offset-oe),Xe=h[$A].color,Ye=h[$A+1].color;XA+=AA(Math.round((1-me)*Xe[0]+me*Ye[0]).toString(16))+AA(Math.round((1-me)*Xe[1]+me*Ye[1]).toString(16))+AA(Math.round((1-me)*Xe[2]+me*Ye[2]).toString(16))}return XA.trim()}(h.colors,L),oA=[];oA.push({key:"FunctionType",value:"0"}),oA.push({key:"Domain",value:"[0.0 1.0]"}),oA.push({key:"Size",value:"["+L+"]"}),oA.push({key:"BitsPerSample",value:"8"}),oA.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),oA.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),dr({data:Z,additionalKeyValues:oA,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:V}),z("endobj"),h.objectNumber=gt(),z("<< /ShadingType "+h.type),z("/ColorSpace /DeviceRGB");var CA="/Coords ["+lA(parseFloat(h.coords[0]))+" "+lA(parseFloat(h.coords[1]))+" ";CA+=2===h.type?lA(parseFloat(h.coords[2]))+" "+lA(parseFloat(h.coords[3])):lA(parseFloat(h.coords[2]))+" "+lA(parseFloat(h.coords[3]))+" "+lA(parseFloat(h.coords[4]))+" "+lA(parseFloat(h.coords[5])),z(CA+="]"),h.matrix&&z("/Matrix ["+h.matrix.toString()+"]"),z("/Function "+V+" 0 R"),z("/Extend [true true]"),z(">>"),z("endobj")},Go=function(h,L){var V=ft(),Z=gt();L.push({resourcesOid:V,objectOid:Z}),h.objectNumber=Z;var oA=[];oA.push({key:"Type",value:"/Pattern"}),oA.push({key:"PatternType",value:"1"}),oA.push({key:"PaintType",value:"1"}),oA.push({key:"TilingType",value:"1"}),oA.push({key:"BBox",value:"["+h.boundingBox.map(lA).join(" ")+"]"}),oA.push({key:"XStep",value:lA(h.xStep)}),oA.push({key:"YStep",value:lA(h.yStep)}),oA.push({key:"Resources",value:V+" 0 R"}),h.matrix&&oA.push({key:"Matrix",value:"["+h.matrix.toString()+"]"}),dr({data:h.stream,additionalKeyValues:oA,objectId:h.objectNumber}),z("endobj")},Ps=function(h){for(var L in h.objectNumber=gt(),z("<<"),h)switch(L){case"opacity":z("/ca "+bA(h[L]));break;case"stroke-opacity":z("/CA "+bA(h[L]))}z(">>"),z("endobj")},ut=function(h){Pt(h.resourcesOid,!0),z("<<"),z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var h in z("/Font <<"),Pe)Pe.hasOwnProperty(h)&&(!1===b||!0===b&&H.hasOwnProperty(h))&&z("/"+h+" "+Pe[h].objectNumber+" 0 R");z(">>")}(),function(){if(Object.keys(Ne).length>0){for(var h in z("/Shading <<"),Ne)Ne.hasOwnProperty(h)&&Ne[h]instanceof On&&Ne[h].objectNumber>=0&&z("/"+h+" "+Ne[h].objectNumber+" 0 R");He.publish("putShadingPatternDict"),z(">>")}}(),function(h){if(Object.keys(Ne).length>0){for(var L in z("/Pattern <<"),Ne)Ne.hasOwnProperty(L)&&Ne[L]instanceof v.TilingPattern&&Ne[L].objectNumber>=0&&Ne[L].objectNumber<h&&z("/"+L+" "+Ne[L].objectNumber+" 0 R");He.publish("putTilingPatternDict"),z(">>")}}(h.objectOid),function(){if(Object.keys(et).length>0){var h;for(h in z("/ExtGState <<"),et)et.hasOwnProperty(h)&&et[h].objectNumber>=0&&z("/"+h+" "+et[h].objectNumber+" 0 R");He.publish("putGStateDict"),z(">>")}}(),function(){for(var h in z("/XObject <<"),Ut)Ut.hasOwnProperty(h)&&Ut[h].objectNumber>=0&&z("/"+h+" "+Ut[h].objectNumber+" 0 R");He.publish("putXobjectDict"),z(">>")}(),z(">>"),z("endobj")},Ks=function(h){We[h.fontName]=We[h.fontName]||{},We[h.fontName][h.fontStyle]=h.id},Vn=function(h,L,V,Z,oA){var CA={id:"F"+(Object.keys(Pe).length+1).toString(10),postScriptName:h,fontName:L,fontStyle:V,encoding:Z,isStandardFont:oA||!1,metadata:{}};return He.publish("addFont",{font:CA,instance:this}),Pe[CA.id]=CA,Ks(CA),CA.id},Kt=v.__private__.pdfEscape=v.pdfEscape=function(h,L){return function(h,L){var V,Z,oA,CA,HA,XA,$A,fe,oe;if(oA=(L=L||{}).sourceEncoding||"Unicode",HA=L.outputEncoding,(L.autoencode||HA)&&Pe[pe].metadata&&Pe[pe].metadata[oA]&&Pe[pe].metadata[oA].encoding&&(CA=Pe[pe].metadata[oA].encoding,!HA&&Pe[pe].encoding&&(HA=Pe[pe].encoding),!HA&&CA.codePages&&(HA=CA.codePages[0]),"string"==typeof HA&&(HA=CA[HA]),HA)){for($A=!1,XA=[],V=0,Z=h.length;V<Z;V++)(fe=HA[h.charCodeAt(V)])?XA.push(String.fromCharCode(fe)):XA.push(h[V]),XA[V].charCodeAt(0)>>8&&($A=!0);h=XA.join("")}for(V=h.length;void 0===$A&&0!==V;)h.charCodeAt(V-1)>>8&&($A=!0),V--;if(!$A)return h;for(XA=L.noBOM?[]:[254,255],V=0,Z=h.length;V<Z;V++){if((oe=(fe=h.charCodeAt(V))>>8)>>8)throw new Error("Character at position "+V+" of string '"+h+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");XA.push(oe),XA.push(fe-(oe<<8))}return String.fromCharCode.apply(void 0,XA)}(h,L).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Wi=v.__private__.beginPage=function(h){_A[++tt]=[],ue[tt]={objId:0,contentsObjId:0,userUnit:Number(g),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(h[0]),topRightY:Number(h[1])}},Xi(tt),EA(_A[G])},Rs=function(h,L){var V,Z,oA;switch(t=L||t,"string"==typeof h&&(V=N(h.toLowerCase()),Array.isArray(V)&&(Z=V[0],oA=V[1])),Array.isArray(h)&&(Z=h[0]*WA,oA=h[1]*WA),isNaN(Z)&&(Z=l[0],oA=l[1]),(Z>14400||oA>14400)&&(_e.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Z=Math.min(14400,Z),oA=Math.min(14400,oA)),l=[Z,oA],t.substr(0,1)){case"l":oA>Z&&(l=[oA,Z]);break;case"p":Z>oA&&(l=[oA,Z])}Wi(l),Ys(Wa),z(pr),0!==Xa&&z(Xa+" J"),0!==Wn&&z(Wn+" j"),He.publish("addPage",{pageNumber:tt})},Gs=function(h){h>0&&h<=tt&&(_A.splice(h,1),ue.splice(h,1),tt--,G>tt&&(G=tt),this.setPage(G))},Xi=function(h){h>0&&h<=tt&&(G=h)},Ga=v.__private__.getNumberOfPages=v.getNumberOfPages=function(){return _A.length-1},ja=function(h,L,V){var Z,oA=void 0;return V=V||{},L=void 0!==L?L:Pe[pe].fontStyle,Z=(h=void 0!==h?h:Pe[pe].fontName).toLowerCase(),void 0!==We[Z]&&void 0!==We[Z][L]?oA=We[Z][L]:void 0!==We[h]&&void 0!==We[h][L]?oA=We[h][L]:!1===V.disableWarning&&_e.warn("Unable to look up font label for font '"+h+"', '"+L+"'. Refer to getFontList() for available fonts."),oA||V.noFallback||null==(oA=We.times[L])&&(oA=We.times.normal),oA},js=v.__private__.putInfo=function(){var h=gt(),L=function(Z){return Z};for(var V in null!==U&&(L=Nt.encryptor(h,0)),z("<<"),z("/Producer ("+Kt(L("jsPDF "+Ae.version))+")"),ie)ie.hasOwnProperty(V)&&ie[V]&&z("/"+V.substr(0,1).toUpperCase()+V.substr(1)+" ("+Kt(L(ie[V]))+")");z("/CreationDate ("+Kt(L(mA))+")"),z(">>"),z("endobj")},Ji=v.__private__.putCatalog=function(h){var L=(h=h||{}).rootDictionaryObjId||fn;switch(gt(),z("<<"),z("/Type /Catalog"),z("/Pages "+L+" 0 R"),zA||(zA="fullwidth"),zA){case"fullwidth":z("/OpenAction [3 0 R /FitH null]");break;case"fullheight":z("/OpenAction [3 0 R /FitV null]");break;case"fullpage":z("/OpenAction [3 0 R /Fit]");break;case"original":z("/OpenAction [3 0 R /XYZ null null 1]");break;default:var V=""+zA;"%"===V.substr(V.length-1)&&(zA=parseInt(zA)/100),"number"==typeof zA&&z("/OpenAction [3 0 R /XYZ null null "+bA(zA)+"]")}switch(de||(de="continuous"),de){case"continuous":z("/PageLayout /OneColumn");break;case"single":z("/PageLayout /SinglePage");break;case"two":case"twoleft":z("/PageLayout /TwoColumnLeft");break;case"tworight":z("/PageLayout /TwoColumnRight")}ce&&z("/PageMode /"+ce),He.publish("putCatalog"),z(">>"),z("endobj")},Vs=v.__private__.putTrailer=function(){z("trailer"),z("<<"),z("/Size "+(sA+1)),z("/Root "+sA+" 0 R"),z("/Info "+(sA-1)+" 0 R"),null!==U&&z("/Encrypt "+Nt.oid+" 0 R"),z("/ID [ <"+dA+"> <"+dA+"> ]"),z(">>")},Va=v.__private__.putHeader=function(){z("%PDF-"+K),z("%\xba\xdf\xac\xe0")},Xo=v.__private__.putXRef=function(){var h="0000000000";z("xref"),z("0 "+(sA+1)),z("0000000000 65535 f ");for(var L=1;L<=sA;L++)z("function"==typeof BA[L]?(h+BA[L]()).slice(-10)+" 00000 n ":void 0!==BA[L]?(h+BA[L]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},hn=v.__private__.buildDocument=function(){sA=0,wA=0,pA=[],BA=[],DA=[],fn=ft(),gr=ft(),EA(pA),He.publish("buildDocument"),Va(),er(),function(){He.publish("putAdditionalObjects");for(var h=0;h<DA.length;h++){var L=DA[h];Pt(L.objId,!0),z(L.content),z("endobj")}He.publish("postPutAdditionalObjects")}(),function(){var h=[];(function(){for(var h in Pe)Pe.hasOwnProperty(h)&&(!1===b||!0===b&&H.hasOwnProperty(h))&&Gn(Pe[h])})(),function(){var h;for(h in et)et.hasOwnProperty(h)&&Ps(et[h])}(),function(){for(var h in Ut)Ut.hasOwnProperty(h)&&qi(Ut[h])}(),function(h){var L;for(L in Ne)Ne.hasOwnProperty(L)&&(Ne[L]instanceof On?ka(Ne[L]):Ne[L]instanceof ui&&Go(Ne[L],h))}(h),He.publish("putResources"),h.forEach(ut),ut({resourcesOid:gr,objectOid:Number.MAX_SAFE_INTEGER}),He.publish("postPutResources")}(),null!==U&&(Nt.oid=gt(),z("<<"),z("/Filter /Standard"),z("/V "+Nt.v),z("/R "+Nt.r),z("/U <"+Nt.toHexString(Nt.U)+">"),z("/O <"+Nt.toHexString(Nt.O)+">"),z("/P "+Nt.P),z(">>"),z("endobj")),js(),Ji();var h=wA;return Xo(),Vs(),z("startxref"),z(""+h),z("%%EOF"),EA(_A[G]),pA.join("\n")},Yi=v.__private__.getBlob=function(h){return new Blob([YA(h)],{type:"application/pdf"})},bt=v.output=v.__private__.output=((h=function(h,L){switch("string"==typeof(L=L||{})?L={filename:L}:L.filename=L.filename||"generated.pdf",h){case void 0:return hn();case"save":v.save(L.filename);break;case"arraybuffer":return YA(hn());case"blob":return Yi(hn());case"bloburi":case"bloburl":if(void 0!==te.URL&&"function"==typeof te.URL.createObjectURL)return te.URL&&te.URL.createObjectURL(Yi(hn()))||void 0;_e.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var V="",Z=hn();try{V=si(Z)}catch{V=si(unescape(encodeURIComponent(Z)))}return"data:application/pdf;filename="+L.filename+";base64,"+V;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(te)){var oA="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",CA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';L.pdfObjectUrl&&(oA=L.pdfObjectUrl,CA="");var HA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+oA+'"'+CA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(L)+");<\/script></body></html>",XA=te.open();return null!==XA&&XA.document.write(HA),XA}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(te)){var $A='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(L.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+L.filename+'" width="500px" height="400px" /></body></html>',fe=te.open();if(null!==fe){fe.document.write($A);var oe=this;fe.document.documentElement.querySelector("#pdfViewer").onload=function(){fe.document.title=L.filename,fe.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(oe.output("bloburl"))}}return fe}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(te))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var me='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",L)+'"></iframe></body></html>',Xe=te.open();if(null!==Xe&&(Xe.document.write(me),Xe.document.title=L.filename),Xe||typeof safari>"u")return Xe;break;case"datauri":case"dataurl":return te.document.location.href=this.output("datauristring",L);default:return null}}).foo=function(){try{return h.apply(this,arguments)}catch(Z){var L=Z.stack||"";~L.indexOf(" at ")&&(L=L.split(" at ")[1]);var V="Error in function "+L.split("\n")[0].split("<")[0]+": "+Z.message;if(!te.console)throw new Error(V);te.console.error(V,Z),te.alert&&alert(V)}},h.foo.bar=h,h.foo),Zi=function(h){return!0===Array.isArray(gi)&&gi.indexOf(h)>-1};switch(o){case"pt":WA=1;break;case"mm":WA=72/25.4;break;case"cm":WA=72/2.54;break;case"in":WA=72;break;case"px":WA=1==Zi("px_scaling")?.75:96/72;break;case"pc":case"em":WA=12;break;case"ex":WA=6;break;default:if("number"!=typeof o)throw new Error("Invalid unit: "+o);WA=o}var Nt=null;qA(),hA();var qs=v.__private__.getPageInfo=v.getPageInfo=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ue[h].objId,pageNumber:h,pageContext:ue[h]}},se=v.__private__.getPageInfoByObjId=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var L in ue)if(ue[L].objId===h)break;return qs(L)},Yo=v.__private__.getCurrentPageInfo=v.getCurrentPageInfo=function(){return{objId:ue[G].objId,pageNumber:G,pageContext:ue[G]}};v.addPage=function(){return Rs.apply(this,arguments),this},v.setPage=function(){return Xi.apply(this,arguments),EA.call(this,_A[G]),this},v.insertPage=function(h){return this.addPage(),this.movePage(G,h),this},v.movePage=function(h,L){var V,Z;if(h>L){V=_A[h],Z=ue[h];for(var oA=h;oA>L;oA--)_A[oA]=_A[oA-1],ue[oA]=ue[oA-1];_A[L]=V,ue[L]=Z,this.setPage(L)}else if(h<L){V=_A[h],Z=ue[h];for(var CA=h;CA<L;CA++)_A[CA]=_A[CA+1],ue[CA]=ue[CA+1];_A[L]=V,ue[L]=Z,this.setPage(L)}return this},v.deletePage=function(){return Gs.apply(this,arguments),this},v.__private__.text=v.text=function(h,L,V,Z,oA){var CA,HA,XA,$A,fe,oe,me,Xe,Ye,rt=(Z=Z||{}).scope||this;if("number"==typeof h&&"number"==typeof L&&("string"==typeof V||Array.isArray(V))){var Lt=V;V=L,L=h,h=Lt}if(arguments[3]instanceof ee?(J("The transform parameter of text() with a Matrix value"),Ye=oA):(XA=arguments[4],$A=arguments[5],"object"===Se(me=arguments[3])&&null!==me||("string"==typeof XA&&($A=XA,XA=null),"string"==typeof me&&($A=me,me=null),"number"==typeof me&&(XA=me,me=null),Z={flags:me,angle:XA,align:$A})),isNaN(L)||isNaN(V)||null==h)throw new Error("Invalid arguments passed to jsPDF.text");if(0===h.length)return rt;var Tr,pt="",_t="number"==typeof Z.lineHeightFactor?Z.lineHeightFactor:gn,rr=rt.internal.scaleFactor;function Ya(Oe){return Oe=Oe.split("\t").join(Array(Z.TabLen||9).join(" ")),Kt(Oe,me)}function ia(Oe){for(var Ke,$e=Oe.concat(),wt=[],KA=$e.length;KA--;)"string"==typeof(Ke=$e.shift())?wt.push(Ke):Array.isArray(Oe)&&(1===Ke.length||void 0===Ke[1]&&void 0===Ke[2])?wt.push(Ke[0]):wt.push([Ke[0],Ke[1],Ke[2]]);return wt}function Za(Oe,Ke){var $e;if("string"==typeof Oe)$e=Ke(Oe)[0];else if(Array.isArray(Oe)){for(var wt,KA,tn=Oe.concat(),Un=[],jt=tn.length;jt--;)"string"==typeof(wt=tn.shift())?Un.push(Ke(wt)[0]):Array.isArray(wt)&&"string"==typeof wt[0]&&(KA=Ke(wt[0],wt[1],wt[2]),Un.push([KA[0],KA[1],KA[2]]));$e=Un}return $e}var yi=!1,aa=!0;if("string"==typeof h)yi=!0;else if(Array.isArray(h)){var $a=h.concat();HA=[];for(var sa,nt=$a.length;nt--;)("string"!=typeof(sa=$a.shift())||Array.isArray(sa)&&"string"!=typeof sa[0])&&(aa=!1);yi=aa}if(!1===yi)throw new Error('Type of text must be string or Array. "'+h+'" is not recognized.');"string"==typeof h&&(h=h.match(/[\r?\n]/)?h.split(/\r\n|\r|\n/g):[h]);var Ui=RA/rt.internal.scaleFactor,ke=Ui*(_t-1);switch(Z.baseline){case"bottom":V-=ke;break;case"top":V+=Ui-ke;break;case"hanging":V+=Ui-2*ke;break;case"middle":V+=Ui/2-ke}if((oe=Z.maxWidth||0)>0&&("string"==typeof h?h=rt.splitTextToSize(h,oe):"[object Array]"===Object.prototype.toString.call(h)&&(h=h.reduce(function(Oe,Ke){return Oe.concat(rt.splitTextToSize(Ke,oe))},[]))),He.publish("preProcessText",CA={text:h,x:L,y:V,options:Z,mutex:{pdfEscape:Kt,activeFontKey:pe,fonts:Pe,activeFontSize:RA}}),h=CA.text,XA=(Z=CA.options).angle,Ye instanceof ee||!XA||"number"!=typeof XA)XA&&XA instanceof ee&&(Ye=XA);else{XA*=Math.PI/180,0===Z.rotationDirection&&(XA=-XA),"advanced"===rA&&(XA=-XA);var wr=Math.cos(XA),An=Math.sin(XA);Ye=new ee(wr,An,-An,wr,0,0)}"advanced"!==rA||Ye||(Ye=Dr),void 0!==(fe=Z.charSpace||ea)&&(pt+=lA(M(fe))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(Xe=Z.horizontalScale)&&(pt+=lA(100*Xe)+" Tz\n");var lt=-1,en=void 0!==Z.renderingMode?Z.renderingMode:Z.stroke,mn=rt.internal.getCurrentPageInfo().pageContext;switch(en){case 0:case!1:case"fill":lt=0;break;case 1:case!0:case"stroke":lt=1;break;case 2:case"fillThenStroke":lt=2;break;case 3:case"invisible":lt=3;break;case 4:case"fillAndAddForClipping":lt=4;break;case 5:case"strokeAndAddPathForClipping":lt=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":lt=6;break;case 7:case"addToPathForClipping":lt=7}-1!==lt?pt+=lt+" Tr\n":-1!==(void 0!==mn.usedRenderingMode?mn.usedRenderingMode:-1)&&(pt+="0 Tr\n"),-1!==lt&&(mn.usedRenderingMode=lt),$A=Z.align||"left";var nr,bi=RA*_t,As=rt.internal.pageSize.getWidth(),oa=Pe[pe];fe=Z.charSpace||ea,oe=Z.maxWidth||0,me=Object.assign({autoencode:!0,noBOM:!0},Z.flags);var mr=[],Jn=function(Oe){return rt.getStringUnitWidth(Oe,{font:oa,charSpace:fe,fontSize:RA,doKerning:!1})*RA/rr};if("[object Array]"===Object.prototype.toString.call(h)){var Rt;HA=ia(h),"left"!==$A&&(nr=HA.map(Jn));var mt,Yn=0;if("right"===$A){L-=nr[0],h=[],nt=HA.length;for(var Cn=0;Cn<nt;Cn++)0===Cn?(mt=$r(L),Rt=dn(V)):(mt=M(Yn-nr[Cn]),Rt=-bi),h.push([HA[Cn],mt,Rt]),Yn=nr[Cn]}else if("center"===$A){L-=nr[0]/2,h=[],nt=HA.length;for(var Qn=0;Qn<nt;Qn++)0===Qn?(mt=$r(L),Rt=dn(V)):(mt=M((Yn-nr[Qn])/2),Rt=-bi),h.push([HA[Qn],mt,Rt]),Yn=nr[Qn]}else if("left"===$A){h=[],nt=HA.length;for(var ca=0;ca<nt;ca++)h.push(HA[ca])}else if("justify"===$A&&"Identity-H"===oa.encoding){h=[],nt=HA.length,oe=0!==oe?oe:As;for(var Fn=0,Ze=0;Ze<nt;Ze++)if(Rt=0===Ze?dn(V):-bi,mt=0===Ze?$r(L):Fn,Ze<nt-1){var es=M((oe-nr[Ze])/(HA[Ze].split(" ").length-1)),Gt=HA[Ze].split(" ");h.push([Gt[0]+" ",mt,Rt]),Fn=0;for(var Cr=1;Cr<Gt.length;Cr++){var ua=(Jn(Gt[Cr-1]+" "+Gt[Cr])-Jn(Gt[Cr]))*rr+es;h.push(Cr==Gt.length-1?[Gt[Cr],ua,0]:[Gt[Cr]+" ",ua,0]),Fn-=ua}}else h.push([HA[Ze],mt,Rt]);h.push(["",Fn,0])}else{if("justify"!==$A)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(h=[],nt=HA.length,oe=0!==oe?oe:As,Ze=0;Ze<nt;Ze++)Rt=0===Ze?dn(V):-bi,mt=0===Ze?$r(L):0,mr.push(Ze<nt-1?lA(M((oe-nr[Ze])/(HA[Ze].split(" ").length-1))):0),h.push([HA[Ze],mt,Rt])}}!0===("boolean"==typeof Z.R2L?Z.R2L:ZA)&&(h=Za(h,function(Oe,Ke,$e){return[Oe.split("").reverse().join(""),Ke,$e]})),He.publish("postProcessText",CA={text:h,x:L,y:V,options:Z,mutex:{pdfEscape:Kt,activeFontKey:pe,fonts:Pe,activeFontSize:RA}}),h=CA.text,Tr=CA.mutex.isHex||!1;var Li=Pe[pe].encoding;"WinAnsiEncoding"!==Li&&"StandardEncoding"!==Li||(h=Za(h,function(Oe,Ke,$e){return[Ya(Oe),Ke,$e]})),HA=ia(h),h=[];for(var yn,Zn,$n,xi=Array.isArray(HA[0])?1:0,Ai="",ts=function(Oe,Ke,$e){var wt="";return $e instanceof ee?($e="number"==typeof Z.angle?_r($e,new ee(1,0,0,1,Oe,Ke)):_r(new ee(1,0,0,1,Oe,Ke),$e),"advanced"===rA&&($e=_r(new ee(1,0,0,-1,0,0),$e)),wt=$e.join(" ")+" Tm\n"):wt=lA(Oe)+" "+lA(Ke)+" Td\n",wt},Qr=0;Qr<HA.length;Qr++){switch(Ai="",xi){case 1:$n=(Tr?"<":"(")+HA[Qr][0]+(Tr?">":")"),yn=parseFloat(HA[Qr][1]),Zn=parseFloat(HA[Qr][2]);break;case 0:$n=(Tr?"<":"(")+HA[Qr]+(Tr?">":")"),yn=$r(L),Zn=dn(V)}void 0!==mr&&void 0!==mr[Qr]&&(Ai=mr[Qr]+" Tw\n"),0===Qr?h.push(Ai+ts(yn,Zn,Ye)+$n):0===xi?h.push(Ai+$n):1===xi&&h.push(Ai+ts(yn,Zn,Ye)+$n)}h=h.join(0===xi?" Tj\nT* ":" Tj\n"),h+=" Tj\n";var Fr="BT\n/";return Fr+=pe+" "+RA+" Tf\n",Fr+=lA(RA*_t)+" TL\n",Fr+=wn+"\n",Fr+=pt,Fr+=h,z(Fr+="ET"),H[pe]=!0,rt};var Zo=v.__private__.clip=v.clip=function(h){return z("evenodd"===h?"W*":"W"),this};v.clipEvenOdd=function(){return Zo("evenodd")},v.__private__.discardPath=v.discardPath=function(){return z("n"),this};var Zr=v.__private__.isValidStyle=function(h){var L=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(h)&&(L=!0),L};v.__private__.setDefaultPathOperation=v.setDefaultPathOperation=function(h){return Zr(h)&&(m=h),this};var zs=v.__private__.getStyle=v.getStyle=function(h){var L=m;switch(h){case"D":case"S":L="S";break;case"F":L="f";break;case"FD":case"DF":L="B";break;case"f":case"f*":case"B":case"B*":L=h}return L},Ws=v.close=function(){return z("h"),this};v.stroke=function(){return z("S"),this},v.fill=function(h){return wi("f",h),this},v.fillEvenOdd=function(h){return wi("f*",h),this},v.fillStroke=function(h){return wi("B",h),this},v.fillStrokeEvenOdd=function(h){return wi("B*",h),this};var wi=function(h,L){"object"===Se(L)?Xs(L,h):z(h)},qa=function(h){null===h||"advanced"===rA&&void 0===h||(h=zs(h),z(h))};function za(h,L,V,Z,oA){var CA=new ui(L||this.boundingBox,V||this.xStep,Z||this.yStep,this.gState,oA||this.matrix);CA.stream=this.stream;var HA=h+"$$"+this.cloneIndex+++"$$";return kA(HA,CA),CA}var Xs=function(h,L){var V=qe[h.key],Z=Ne[V];if(Z instanceof On)z("q"),z(dt(L)),Z.gState&&v.setGState(Z.gState),z(h.matrix.toString()+" cm"),z("/"+V+" sh"),z("Q");else if(Z instanceof ui){var oA=new ee(1,0,0,-1,0,vn());h.matrix&&(oA=oA.multiply(h.matrix||Dr),V=za.call(Z,h.key,h.boundingBox,h.xStep,h.yStep,oA).id),z("q"),z("/Pattern cs"),z("/"+V+" scn"),Z.gState&&v.setGState(Z.gState),z(L),z("Q")}},dt=function(h){switch(h){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Bn=v.moveTo=function(h,L){return z(lA(M(h))+" "+lA(X(L))+" m"),this},vi=v.lineTo=function(h,L){return z(lA(M(h))+" "+lA(X(L))+" l"),this},zn=v.curveTo=function(h,L,V,Z,oA,CA){return z([lA(M(h)),lA(X(L)),lA(M(V)),lA(X(Z)),lA(M(oA)),lA(X(CA)),"c"].join(" ")),this};v.__private__.line=v.line=function(h,L,V,Z,oA){if(isNaN(h)||isNaN(L)||isNaN(V)||isNaN(Z)||!Zr(oA))throw new Error("Invalid arguments passed to jsPDF.line");return"compat"===rA?this.lines([[V-h,Z-L]],h,L,[1,1],oA||"S"):this.lines([[V-h,Z-L]],h,L,[1,1]).stroke()},v.__private__.lines=v.lines=function(h,L,V,Z,oA,CA){var HA,XA,$A,fe,oe,Lt,pt,Tr;if("number"==typeof h&&(Tr=V,V=L,L=h,h=Tr),Z=Z||[1,1],CA=CA||!1,isNaN(L)||isNaN(V)||!Array.isArray(h)||!Array.isArray(Z)||!Zr(oA)||"boolean"!=typeof CA)throw new Error("Invalid arguments passed to jsPDF.lines");for(Bn(L,V),HA=Z[0],XA=Z[1],fe=h.length,Lt=L,pt=V,$A=0;$A<fe;$A++)2===(oe=h[$A]).length?vi(Lt=oe[0]*HA+Lt,pt=oe[1]*XA+pt):zn(oe[0]*HA+Lt,oe[1]*XA+pt,oe[2]*HA+Lt,oe[3]*XA+pt,Lt=oe[4]*HA+Lt,pt=oe[5]*XA+pt);return CA&&Ws(),qa(oA),this},v.path=function(h){for(var L=0;L<h.length;L++){var V=h[L],Z=V.c;switch(V.op){case"m":Bn(Z[0],Z[1]);break;case"l":vi(Z[0],Z[1]);break;case"c":zn.apply(this,Z);break;case"h":Ws()}}return this},v.__private__.rect=v.rect=function(h,L,V,Z,oA){if(isNaN(h)||isNaN(L)||isNaN(V)||isNaN(Z)||!Zr(oA))throw new Error("Invalid arguments passed to jsPDF.rect");return"compat"===rA&&(Z=-Z),z([lA(M(h)),lA(X(L)),lA(M(V)),lA(M(Z)),"re"].join(" ")),qa(oA),this},v.__private__.triangle=v.triangle=function(h,L,V,Z,oA,CA,HA){if(isNaN(h)||isNaN(L)||isNaN(V)||isNaN(Z)||isNaN(oA)||isNaN(CA)||!Zr(HA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[V-h,Z-L],[oA-V,CA-Z],[h-oA,L-CA]],h,L,[1,1],HA,!0),this},v.__private__.roundedRect=v.roundedRect=function(h,L,V,Z,oA,CA,HA){if(isNaN(h)||isNaN(L)||isNaN(V)||isNaN(Z)||isNaN(oA)||isNaN(CA)||!Zr(HA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var XA=4/3*(Math.SQRT2-1);return oA=Math.min(oA,.5*V),CA=Math.min(CA,.5*Z),this.lines([[V-2*oA,0],[oA*XA,0,oA,CA-CA*XA,oA,CA],[0,Z-2*CA],[0,CA*XA,-oA*XA,CA,-oA,CA],[2*oA-V,0],[-oA*XA,0,-oA,-CA*XA,-oA,-CA],[0,2*CA-Z],[0,-CA*XA,oA*XA,-CA,oA,-CA]],h+oA,L,[1,1],HA,!0),this},v.__private__.ellipse=v.ellipse=function(h,L,V,Z,oA){if(isNaN(h)||isNaN(L)||isNaN(V)||isNaN(Z)||!Zr(oA))throw new Error("Invalid arguments passed to jsPDF.ellipse");var CA=4/3*(Math.SQRT2-1)*V,HA=4/3*(Math.SQRT2-1)*Z;return Bn(h+V,L),zn(h+V,L-HA,h+CA,L-Z,h,L-Z),zn(h-CA,L-Z,h-V,L-HA,h-V,L),zn(h-V,L+HA,h-CA,L+Z,h,L+Z),zn(h+CA,L+Z,h+V,L+HA,h+V,L),qa(oA),this},v.__private__.circle=v.circle=function(h,L,V,Z){if(isNaN(h)||isNaN(L)||isNaN(V)||!Zr(Z))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(h,L,V,V,Z)},v.setFont=function(h,L,V){return V&&(L=SA(L,V)),pe=ja(h,L,{disableWarning:!1}),this};var Js=v.__private__.getFont=v.getFont=function(){return Pe[ja.apply(v,arguments)]};v.__private__.getFontList=v.getFontList=function(){var h,L,V={};for(h in We)if(We.hasOwnProperty(h))for(L in V[h]=[],We[h])We[h].hasOwnProperty(L)&&V[h].push(L);return V},v.addFont=function(h,L,V,Z,oA){var CA=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==CA.indexOf(arguments[3])?oA=arguments[3]:arguments[3]&&-1==CA.indexOf(arguments[3])&&(V=SA(V,Z)),Vn.call(this,h,L,V,oA=oA||"Identity-H")};var gn,Wa=r.lineWidth||.200025,$i=v.__private__.getLineWidth=v.getLineWidth=function(){return Wa},Ys=v.__private__.setLineWidth=v.setLineWidth=function(h){return Wa=h,z(lA(M(h))+" w"),this};v.__private__.setLineDash=Ae.API.setLineDash=Ae.API.setLineDashPattern=function(h,L){if(h=h||[],L=L||0,isNaN(L)||!Array.isArray(h))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return h=h.map(function(V){return lA(M(V))}).join(" "),L=lA(M(L)),z("["+h+"] "+L+" d"),this};var Zs=v.__private__.getLineHeight=v.getLineHeight=function(){return RA*gn};v.__private__.getLineHeight=v.getLineHeight=function(){return RA*gn};var $s=v.__private__.setLineHeightFactor=v.setLineHeightFactor=function(h){return"number"==typeof(h=h||1.15)&&(gn=h),this},Ao=v.__private__.getLineHeightFactor=v.getLineHeightFactor=function(){return gn};$s(r.lineHeight);var $r=v.__private__.getHorizontalCoordinate=function(h){return M(h)},dn=v.__private__.getVerticalCoordinate=function(h){return"advanced"===rA?h:ue[G].mediaBox.topRightY-ue[G].mediaBox.bottomLeftY-M(h)},eo=v.__private__.getHorizontalCoordinateString=v.getHorizontalCoordinateString=function(h){return lA($r(h))},pn=v.__private__.getVerticalCoordinateString=v.getVerticalCoordinateString=function(h){return lA(dn(h))},pr=r.strokeColor||"0 G";v.__private__.getStrokeColor=v.getDrawColor=function(){return kt(pr)},v.__private__.setStrokeColor=v.setDrawColor=function(h,L,V,Z){return pr=Yt({ch1:h,ch2:L,ch3:V,ch4:Z,pdfColorType:"draw",precision:2}),z(pr),this};var Aa=r.fillColor||"0 g";v.__private__.getFillColor=v.getFillColor=function(){return kt(Aa)},v.__private__.setFillColor=v.setFillColor=function(h,L,V,Z){return Aa=Yt({ch1:h,ch2:L,ch3:V,ch4:Z,pdfColorType:"fill",precision:2}),z(Aa),this};var wn=r.textColor||"0 g",$o=v.__private__.getTextColor=v.getTextColor=function(){return kt(wn)};v.__private__.setTextColor=v.setTextColor=function(h,L,V,Z){return wn=Yt({ch1:h,ch2:L,ch3:V,ch4:Z,pdfColorType:"text",precision:3}),this};var ea=r.charSpace,Ac=v.__private__.getCharSpace=v.getCharSpace=function(){return parseFloat(ea||0)};v.__private__.setCharSpace=v.setCharSpace=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ea=h,this};var Xa=0;v.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},v.__private__.setLineCap=v.setLineCap=function(h){var L=v.CapJoinStyles[h];if(void 0===L)throw new Error("Line cap style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Xa=L,z(L+" J"),this};var Wn=0;v.__private__.setLineJoin=v.setLineJoin=function(h){var L=v.CapJoinStyles[h];if(void 0===L)throw new Error("Line join style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Wn=L,z(L+" j"),this},v.__private__.setLineMiterLimit=v.__private__.setMiterLimit=v.setLineMiterLimit=v.setMiterLimit=function(h){if(h=h||0,isNaN(h))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return z(lA(M(h))+" M"),this},v.GState=Pa,v.setGState=function(h){(h="string"==typeof h?et[Nr[h]]:mi(null,h)).equals(ln)||(z("/"+h.id+" gs"),ln=h)};var mi=function(h,L){if(!h||!Nr[h]){var V=!1;for(var Z in et)if(et.hasOwnProperty(Z)&&et[Z].equals(L)){V=!0;break}if(V)L=et[Z];else{var oA="GS"+(Object.keys(et).length+1).toString(10);et[oA]=L,L.id=oA}return h&&(Nr[h]=L.id),He.publish("addGState",L),L}};v.addGState=function(h,L){return mi(h,L),this},v.saveGraphicsState=function(){return z("q"),zr.push({key:pe,size:RA,color:wn}),this},v.restoreGraphicsState=function(){z("Q");var h=zr.pop();return pe=h.key,RA=h.size,wn=h.color,ln=null,this},v.setCurrentTransformationMatrix=function(h){return z(h.toString()+" cm"),this},v.comment=function(h){return z("#"+h),this};var ta=function(h,L){var V=h||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return V},set:function(CA){isNaN(CA)||(V=parseFloat(CA))}});var Z=L||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Z},set:function(CA){isNaN(CA)||(Z=parseFloat(CA))}});var oA="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return oA},set:function(CA){oA=CA.toString()}}),this},ra=function(h,L,V,Z){ta.call(this,h,L),this.type="rect";var oA=V||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return oA},set:function(HA){isNaN(HA)||(oA=parseFloat(HA))}});var CA=Z||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return CA},set:function(HA){isNaN(HA)||(CA=parseFloat(HA))}}),this},Ci=function(){this.page=tt,this.currentPage=G,this.pages=_A.slice(0),this.pagesContext=ue.slice(0),this.x=Ht,this.y=Ie,this.matrix=Hr,this.width=Fi(G),this.height=vn(G),this.outputDestination=GA,this.id="",this.objectNumber=-1};Ci.prototype.restore=function(){tt=this.page,ue=this.pagesContext,_A=this.pages,Ht=this.x,Ie=this.y,Hr=this.matrix,Xn(G=this.currentPage,this.width),na(G,this.height),GA=this.outputDestination};var Ja=function(h,L,V,Z,oA){Xr.push(new Ci),tt=G=0,_A=[],Ht=h,Ie=L,Hr=oA,Wi([V,Z])};for(var Qi in v.beginFormObject=function(h,L,V,Z,oA){return Ja(h,L,V,Z,oA),this},v.endFormObject=function(h){return function(h){if(Wr[h])Xr.pop().restore();else{var L=new Ci,V="Xo"+(Object.keys(Ut).length+1).toString(10);L.id=V,Wr[h]=V,Ut[V]=L,He.publish("addFormObject",L),Xr.pop().restore()}}(h),this},v.doFormObject=function(h,L){var V=Ut[Wr[h]];return z("q"),z(L.toString()+" cm"),z("/"+V.id+" Do"),z("Q"),this},v.getFormObject=function(h){var L=Ut[Wr[h]];return{x:L.x,y:L.y,width:L.width,height:L.height,matrix:L.matrix}},v.save=function(h,L){return h=h||"generated.pdf",(L=L||{}).returnPromise=L.returnPromise||!1,!1===L.returnPromise?(oi(Yi(hn()),h),"function"==typeof oi.unload&&te.setTimeout&&setTimeout(oi.unload,911),this):new Promise(function(V,Z){try{var oA=oi(Yi(hn()),h);"function"==typeof oi.unload&&te.setTimeout&&setTimeout(oi.unload,911),V(oA)}catch(CA){Z(CA.message)}})},Ae.API)Ae.API.hasOwnProperty(Qi)&&("events"===Qi&&Ae.API.events.length?function(h,L){var Z,oA;for(oA=L.length-1;-1!==oA;oA--)h.subscribe.apply(h,[L[oA][0]].concat("function"==typeof(Z=L[oA][1])?[Z]:Z))}(He,Ae.API.events):v[Qi]=Ae.API[Qi]);var Fi=v.getPageWidth=function(h){return(ue[h=h||G].mediaBox.topRightX-ue[h].mediaBox.bottomLeftX)/WA},Xn=v.setPageWidth=function(h,L){ue[h].mediaBox.topRightX=L*WA+ue[h].mediaBox.bottomLeftX},vn=v.getPageHeight=function(h){return(ue[h=h||G].mediaBox.topRightY-ue[h].mediaBox.bottomLeftY)/WA},na=v.setPageHeight=function(h,L){ue[h].mediaBox.topRightY=L*WA+ue[h].mediaBox.bottomLeftY};return v.internal={pdfEscape:Kt,getStyle:zs,getFont:Js,getFontSize:jA,getCharSpace:Ac,getTextColor:$o,getLineHeight:Zs,getLineHeightFactor:Ao,getLineWidth:$i,write:le,getHorizontalCoordinate:$r,getVerticalCoordinate:dn,getCoordinateString:eo,getVerticalCoordinateString:pn,collections:{},newObject:gt,newAdditionalObject:Mt,newObjectDeferred:ft,newObjectDeferredBegin:Pt,getFilters:Jr,putStream:dr,events:He,scaleFactor:WA,pageSize:{getWidth:function(){return Fi(G)},setWidth:function(h){Xn(G,h)},getHeight:function(){return vn(G)},setHeight:function(h){na(G,h)}},encryptionOptions:U,encryption:Nt,getEncryptor:function(h){return null!==U?Nt.encryptor(h,0):function(L){return L}},output:bt,getNumberOfPages:Ga,pages:_A,out:z,f2:bA,f3:D,getPageInfo:qs,getPageInfoByObjId:se,getCurrentPageInfo:Yo,getPDFVersion:T,Point:ta,Rectangle:ra,Matrix:ee,hasHotfix:Zi},Object.defineProperty(v.internal.pageSize,"width",{get:function(){return Fi(G)},set:function(h){Xn(G,h)},enumerable:!0,configurable:!0}),Object.defineProperty(v.internal.pageSize,"height",{get:function(){return vn(G)},set:function(h){na(G,h)},enumerable:!0,configurable:!0}),function(h){for(var L=0,V=NA.length;L<V;L++){var Z=Vn.call(this,h[L][0],h[L][1],h[L][2],NA[L][3],!0);!1===b&&(H[Z]=!0);var oA=h[L][0].split("-");Ks({id:Z,fontName:oA[0],fontStyle:oA[1]||""})}He.publish("addFonts",{fonts:Pe,dictionary:We})}.call(v,NA),pe="F1",Rs(l,t),He.publish("initialized"),v}at.prototype.lsbFirstWord=function(r){return String.fromCharCode(r>>0&255,r>>8&255,r>>16&255,r>>24&255)},at.prototype.toHexString=function(r){return r.split("").map(function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)}).join("")},at.prototype.hexToBytes=function(r){for(var A=[],t=0;t<r.length;t+=2)A.push(String.fromCharCode(parseInt(r.substr(t,2),16)));return A.join("")},at.prototype.processOwnerPassword=function(r,A){return Io(Ls(A).substr(0,5),r)},at.prototype.encryptor=function(r,A){var t=Ls(this.encryptionKey+String.fromCharCode(255&r,r>>8&255,r>>16&255,255&A,A>>8&255)).substr(0,10);return function(o){return Io(t,o)}},Pa.prototype.equals=function(r){var A,t="id,objectNumber,equals";if(!r||Se(r)!==Se(this))return!1;var o=0;for(A in this)if(!(t.indexOf(A)>=0)){if(this.hasOwnProperty(A)&&!r.hasOwnProperty(A)||this[A]!==r[A])return!1;o++}for(A in r)r.hasOwnProperty(A)&&t.indexOf(A)<0&&o--;return 0===o},Ae.API={events:[]},Ae.version="2.5.2";var Ve=Ae.API,Es=1,li=function(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ar=function(r){return r.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ne=function(r){return r.toFixed(2)},Rr=function(r){return r.toFixed(5)};Ve.__acroform__={};var Xt=function(r,A){r.prototype=Object.create(A.prototype),r.prototype.constructor=r},kc=function(r){return r*Es},Gr=function(r){var A=new Rc,t=OA.internal.getHeight(r)||0,o=OA.internal.getWidth(r)||0;return A.BBox=[0,0,Number(ne(o)),Number(ne(t))],A},xu=Ve.__acroform__.setBit=function(r,A){if(r=r||0,A=A||0,isNaN(r)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return r|1<<A},Su=Ve.__acroform__.clearBit=function(r,A){if(r=r||0,A=A||0,isNaN(r)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return r&~(1<<A)},Hu=Ve.__acroform__.getBit=function(r,A){if(isNaN(r)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return r&1<<A?1:0},st=Ve.__acroform__.getBitForPdf=function(r,A){if(isNaN(r)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Hu(r,A-1)},ot=Ve.__acroform__.setBitForPdf=function(r,A){if(isNaN(r)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return xu(r,A-1)},ct=Ve.__acroform__.clearBitForPdf=function(r,A){if(isNaN(r)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Su(r,A-1)},Nu=Ve.__acroform__.calculateCoordinates=function(r,A){var t=A.internal.getHorizontalCoordinate,o=A.internal.getVerticalCoordinate,l=r[0],u=r[1],B=r[2],g=r[3],p={};return p.lowerLeft_X=t(l)||0,p.lowerLeft_Y=o(u+g)||0,p.upperRight_X=t(l+B)||0,p.upperRight_Y=o(u)||0,[Number(ne(p.lowerLeft_X)),Number(ne(p.lowerLeft_Y)),Number(ne(p.upperRight_X)),Number(ne(p.upperRight_Y))]},_u=function(r){if(r.appearanceStreamContent)return r.appearanceStreamContent;if(r.V||r.DV){var A=[],o=xo(r,r._V||r.DV),l=r.scope.internal.getFont(r.fontName,r.fontStyle).id;A.push("/Tx BMC"),A.push("q"),A.push("BT"),A.push(r.scope.__private__.encodeColorString(r.color)),A.push("/"+l+" "+ne(o.fontSize)+" Tf"),A.push("1 0 0 1 0 0 Tm"),A.push(o.text),A.push("ET"),A.push("Q"),A.push("EMC");var u=Gr(r);return u.scope=r.scope,u.stream=A.join("\n"),u}},xo=function(r,A){var t=0===r.fontSize?r.maxFontSize:r.fontSize,o={text:"",fontSize:""},l=(A=")"==(A="("==A.substr(0,1)?A.substr(1):A).substr(A.length-1)?A.substr(0,A.length-1):A).split(" ");l=l.map(r.multiline?function(D){return D.split("\n")}:function(D){return[D]});var u=t,B=OA.internal.getHeight(r)||0;B=B<0?-B:B;var D,g=OA.internal.getWidth(r)||0;g=g<0?-g:g,u++;A:for(;u>0;){A="",u--;var m,U,b=fi("3",r,u).height,H=r.multiline?B-u:(B-b)/2,v=H+=2,K=0,T=0,R=0;if(u<=0){A="(...) Tj\n",A+="% Width of Text: "+fi(A,r,u=12).width+", FieldWidth:"+g+"\n";break}for(var N="",j=0,rA=0;rA<l.length;rA++)if(l.hasOwnProperty(rA)){var cA=!1;if(1!==l[rA].length&&R!==l[rA].length-1){if((b+2)*(j+2)+2>B)continue A;N+=l[rA][R],cA=!0,T=rA,rA--}else{N=" "==(N+=l[rA][R]+" ").substr(N.length-1)?N.substr(0,N.length-1):N;var vA=parseInt(rA),SA=(D=vA)+1<l.length&&fi(N+" "+l[D+1][0],r,u).width<=g-4,lA=rA>=l.length-1;if(SA&&!lA){N+=" ",R=0;continue}if(SA||lA){if(lA)T=vA;else if(r.multiline&&(b+2)*(j+2)+2>B)continue A}else{if(!r.multiline||(b+2)*(j+2)+2>B)continue A;T=vA}}for(var J="",fA=K;fA<=T;fA++){var bA=l[fA];if(r.multiline){if(fA===T){J+=bA[R]+" ",R=(R+1)%bA.length;continue}if(fA===K){J+=bA[bA.length-1]+" ";continue}}J+=bA[0]+" "}switch(J=" "==J.substr(J.length-1)?J.substr(0,J.length-1):J,U=fi(J,r,u).width,r.textAlign){case"right":m=g-U-2;break;case"center":m=(g-U)/2;break;default:m=2}A+=ne(m)+" "+ne(v)+" Td\n",A+="("+li(J)+") Tj\n",A+=-ne(m)+" 0 Td\n",v=-(u+2),U=0,K=cA?T:T+1,j++,N=""}break}return o.text=A,o.fontSize=u,o},fi=function(r,A,t){var o=A.scope.internal.getFont(A.fontName,A.fontStyle),l=A.scope.getStringUnitWidth(r,{font:o,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:A.scope.getStringUnitWidth("3",{font:o,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:l}},Du={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Tu=function(r,A){var t={type:"reference",object:r};void 0===A.internal.getPageInfo(r.page).pageContext.annotations.find(function(o){return o.type===t.type&&o.object===t.object})&&A.internal.getPageInfo(r.page).pageContext.annotations.push(t)},Kc=Ve.__acroform__.arrayToPdfArray=function(r,A,t){var o=function(B){return B};if(Array.isArray(r)){for(var l="[",u=0;u<r.length;u++)switch(0!==u&&(l+=" "),Se(r[u])){case"boolean":case"number":case"object":l+=r[u].toString();break;case"string":"/"!==r[u].substr(0,1)?(void 0!==A&&t&&(o=t.internal.getEncryptor(A)),l+="("+li(o(r[u].toString()))+")"):l+=r[u].toString()}return l+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},So=function(r,A,t){var o=function(l){return l};return void 0!==A&&t&&(o=t.internal.getEncryptor(A)),(r=r||"").toString(),"("+li(o(r))+")"},jr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(r){this._objId=r}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};jr.prototype.toString=function(){return this.objId+" 0 R"},jr.prototype.putStream=function(){var r=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:r,objectId:this.objId}),this.scope.internal.out("endobj")},jr.prototype.getKeyValueListForStream=function(){var r=[],A=Object.getOwnPropertyNames(this).filter(function(u){return"content"!=u&&"appearanceStreamContent"!=u&&"scope"!=u&&"objId"!=u&&"_"!=u.substring(0,1)});for(var t in A)if(!1===Object.getOwnPropertyDescriptor(this,A[t]).configurable){var o=A[t],l=this[o];l&&(Array.isArray(l)?r.push({key:o,value:Kc(l,this.objId,this.scope)}):l instanceof jr?(l.scope=this.scope,r.push({key:o,value:l.objId+" 0 R"})):"function"!=typeof l&&r.push({key:o,value:l}))}return r};var Rc=function(){jr.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 r,A=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){r=t.trim()},get:function(){return r||null}})};Xt(Rc,jr);var Is=function(){jr.call(this);var r,A=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return A.length>0?A:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return A}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(r){var t=function(o){return o};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+li(t(r))+")"}},set:function(t){r=t}})};Xt(Is,jr);var cr=function r(){jr.call(this);var A=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return A},set:function(N){if(isNaN(N))throw new Error('Invalid value "'+N+'" for attribute F supplied.');A=N}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!st(A,3)},set:function(N){this.F=N?ot(A,3):ct(A,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(N){if(isNaN(N))throw new Error('Invalid value "'+N+'" for attribute Ff supplied.');t=N}});var o=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==o.length)return o},set:function(N){o=void 0!==N?N:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!o||isNaN(o[0])?0:o[0]},set:function(N){o[0]=N}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!o||isNaN(o[1])?0:o[1]},set:function(N){o[1]=N}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!o||isNaN(o[2])?0:o[2]},set:function(N){o[2]=N}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!o||isNaN(o[3])?0:o[3]},set:function(N){o[3]=N}});var l="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return l},set:function(N){switch(N){case"/Btn":case"/Tx":case"/Ch":case"/Sig":l=N;break;default:throw new Error('Invalid value "'+N+'" 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 on)return;u="FieldObject"+r.FieldNum++}var N=function(j){return j};return this.scope&&(N=this.scope.internal.getEncryptor(this.objId)),"("+li(N(u))+")"},set:function(N){u=N.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return u},set:function(N){u=N}});var B="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return B},set:function(N){B=N}});var g="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return g},set:function(N){g=N}});var p=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return p},set:function(N){p=N}});var m=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===m?50/Es:m},set:function(N){m=N}});var U="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return U},set:function(N){U=N}});var b="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!b||this instanceof on||this instanceof kn))return So(b,this.objId,this.scope)},set:function(N){N=N.toString(),b=N}});var H=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(H)return this instanceof Bt?H:So(H,this.objId,this.scope)},set:function(N){N=N.toString(),H=this instanceof Bt?N:"("===N.substr(0,1)?Ar(N.substr(1,N.length-2)):Ar(N)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Bt?Ar(H.substr(1,H.length-1)):H},set:function(N){N=N.toString(),H=this instanceof Bt?"/"+N:N}});var v=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(v)return v},set:function(N){this.V=N}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(v)return this instanceof Bt?v:So(v,this.objId,this.scope)},set:function(N){N=N.toString(),v=this instanceof Bt?N:"("===N.substr(0,1)?Ar(N.substr(1,N.length-2)):Ar(N)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Bt?Ar(v.substr(1,v.length-1)):v},set:function(N){N=N.toString(),v=this instanceof Bt?"/"+N:N}}),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 K,T=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return T},set:function(N){T=N=!!N}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(K)return K},set:function(N){K=N}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,1)},set:function(N){this.Ff=N?ot(this.Ff,1):ct(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,2)},set:function(N){this.Ff=N?ot(this.Ff,2):ct(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,3)},set:function(N){this.Ff=N?ot(this.Ff,3):ct(this.Ff,3)}});var R=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==R)return R},set:function(N){if(-1===[0,1,2].indexOf(N))throw new Error('Invalid value "'+N+'" for attribute Q supplied.');R=N}}),Object.defineProperty(this,"textAlign",{get:function(){var N;switch(R){case 0:default:N="left";break;case 1:N="center";break;case 2:N="right"}return N},configurable:!0,enumerable:!0,set:function(N){switch(N){case"right":case 2:R=2;break;case"center":case 1:R=1;break;default:R=0}}})};Xt(cr,jr);var Pn=function(){cr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var r=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return r},set:function(t){r=t}});var A=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Kc(A,this.objId,this.scope)},set:function(t){var o,l;l=[],"string"==typeof(o=t)&&(l=function(u,B,g){g||(g=1);for(var p,m=[];p=B.exec(u);)m.push(p[g]);return m}(o,/\((.*?)\)/g)),A=l}}),this.getOptions=function(){return A},this.setOptions=function(t){A=t,this.sort&&A.sort()},this.addOption=function(t){t=(t=t||"").toString(),A.push(t),this.sort&&A.sort()},this.removeOption=function(t,o){for(o=o||!1,t=(t=t||"").toString();-1!==A.indexOf(t)&&(A.splice(A.indexOf(t),1),!1!==o););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,18)},set:function(t){this.Ff=t?ot(this.Ff,18):ct(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,19)},set:function(t){!0===this.combo&&(this.Ff=t?ot(this.Ff,19):ct(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,20)},set:function(t){t?(this.Ff=ot(this.Ff,20),A.sort()):this.Ff=ct(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,22)},set:function(t){this.Ff=t?ot(this.Ff,22):ct(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,23)},set:function(t){this.Ff=t?ot(this.Ff,23):ct(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,27)},set:function(t){this.Ff=t?ot(this.Ff,27):ct(this.Ff,27)}}),this.hasAppearanceStream=!1};Xt(Pn,cr);var Ir=function(){Pn.call(this),this.fontName="helvetica",this.combo=!1};Xt(Ir,Pn);var ur=function(){Ir.call(this),this.combo=!0};Xt(ur,Ir);var Ee=function(){ur.call(this),this.edit=!0};Xt(Ee,ur);var Bt=function(){cr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,15)},set:function(t){this.Ff=t?ot(this.Ff,15):ct(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,16)},set:function(t){this.Ff=t?ot(this.Ff,16):ct(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,17)},set:function(t){this.Ff=t?ot(this.Ff,17):ct(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,26)},set:function(t){this.Ff=t?ot(this.Ff,26):ct(this.Ff,26)}});var r,A={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(u){return u};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(A).length){var o,l=[];for(o in l.push("<<"),A)l.push("/"+o+" ("+li(t(A[o]))+")");return l.push(">>"),l.join("\n")}},set:function(t){"object"===Se(t)&&(A=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return A.CA||""},set:function(t){"string"==typeof t&&(A.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(t){r="/"+t}})};Xt(Bt,cr);var hi=function(){Bt.call(this),this.pushButton=!0};Xt(hi,Bt);var Mn=function(){Bt.call(this),this.radio=!0,this.pushButton=!1;var r=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return r},set:function(A){r=void 0!==A?A:[]}})};Xt(Mn,Bt);var on=function(){var r,A;cr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return r},set:function(l){r=l}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(l){A=l}});var t,o={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var l=function(g){return g};this.scope&&(l=this.scope.internal.getEncryptor(this.objId));var u,B=[];for(u in B.push("<<"),o)B.push("/"+u+" ("+li(l(o[u]))+")");return B.push(">>"),B.join("\n")},set:function(l){"object"===Se(l)&&(o=l)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return o.CA||""},set:function(l){"string"==typeof l&&(o.CA=l)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(l){t=l}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(l){t="/"+l}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=OA.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Xt(on,cr),Mn.prototype.setAppearance=function(r){if(!("createAppearanceStream"in r)||!("getCA"in r))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var A in this.Kids)if(this.Kids.hasOwnProperty(A)){var t=this.Kids[A];t.appearanceStreamContent=r.createAppearanceStream(t.optionName),t.caption=r.getCA()}},Mn.prototype.createOption=function(r){var A=new on;return A.Parent=this,A.optionName=r,this.Kids.push(A),Gc.call(this.scope,A),A};var Jt=function(){Bt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=OA.CheckBox.createAppearanceStream()};Xt(Jt,Bt);var kn=function(){cr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,13)},set:function(A){this.Ff=A?ot(this.Ff,13):ct(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,21)},set:function(A){this.Ff=A?ot(this.Ff,21):ct(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,23)},set:function(A){this.Ff=A?ot(this.Ff,23):ct(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,24)},set:function(A){this.Ff=A?ot(this.Ff,24):ct(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,25)},set:function(A){this.Ff=A?ot(this.Ff,25):ct(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,26)},set:function(A){this.Ff=A?ot(this.Ff,26):ct(this.Ff,26)}});var r=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return r},set:function(A){r=A}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return r},set:function(A){Number.isInteger(A)&&(r=A)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Xt(kn,cr);var lr=function(){kn.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!st(this.Ff,14)},set:function(r){this.Ff=r?ot(this.Ff,14):ct(this.Ff,14)}}),this.password=!0};Xt(lr,kn);var OA={CheckBox:{createAppearanceStream:function(){return{N:{On:OA.CheckBox.YesNormal},D:{On:OA.CheckBox.YesPushDown,Off:OA.CheckBox.OffPushDown}}},YesPushDown:function(r){var A=Gr(r);A.scope=r.scope;var t=[],o=r.scope.internal.getFont(r.fontName,r.fontStyle).id,l=r.scope.__private__.encodeColorString(r.color),u=xo(r,r.caption);return t.push("0.749023 g"),t.push("0 0 "+ne(OA.internal.getWidth(r))+" "+ne(OA.internal.getHeight(r))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+o+" "+ne(u.fontSize)+" Tf "+l),t.push("BT"),t.push(u.text),t.push("ET"),t.push("Q"),t.push("EMC"),A.stream=t.join("\n"),A},YesNormal:function(r){var A=Gr(r);A.scope=r.scope;var t=r.scope.internal.getFont(r.fontName,r.fontStyle).id,o=r.scope.__private__.encodeColorString(r.color),l=[],u=OA.internal.getHeight(r),B=OA.internal.getWidth(r),g=xo(r,r.caption);return l.push("1 g"),l.push("0 0 "+ne(B)+" "+ne(u)+" re"),l.push("f"),l.push("q"),l.push("0 0 1 rg"),l.push("0 0 "+ne(B-1)+" "+ne(u-1)+" re"),l.push("W"),l.push("n"),l.push("0 g"),l.push("BT"),l.push("/"+t+" "+ne(g.fontSize)+" Tf "+o),l.push(g.text),l.push("ET"),l.push("Q"),A.stream=l.join("\n"),A},OffPushDown:function(r){var A=Gr(r);A.scope=r.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+ne(OA.internal.getWidth(r))+" "+ne(OA.internal.getHeight(r))+" re"),t.push("f"),A.stream=t.join("\n"),A}},RadioButton:{Circle:{createAppearanceStream:function(r){var A={D:{Off:OA.RadioButton.Circle.OffPushDown},N:{}};return A.N[r]=OA.RadioButton.Circle.YesNormal,A.D[r]=OA.RadioButton.Circle.YesPushDown,A},getCA:function(){return"l"},YesNormal:function(r){var A=Gr(r);A.scope=r.scope;var t=[],o=OA.internal.getWidth(r)<=OA.internal.getHeight(r)?OA.internal.getWidth(r)/4:OA.internal.getHeight(r)/4;o=Number((.9*o).toFixed(5));var u=Number((o*OA.internal.Bezier_C).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+Rr(OA.internal.getWidth(r)/2)+" "+Rr(OA.internal.getHeight(r)/2)+" cm"),t.push(o+" 0 m"),t.push(o+" "+u+" "+u+" "+o+" 0 "+o+" c"),t.push("-"+u+" "+o+" -"+o+" "+u+" -"+o+" 0 c"),t.push("-"+o+" -"+u+" -"+u+" -"+o+" 0 -"+o+" c"),t.push(u+" -"+o+" "+o+" -"+u+" "+o+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join("\n"),A},YesPushDown:function(r){var A=Gr(r);A.scope=r.scope;var t=[],o=OA.internal.getWidth(r)<=OA.internal.getHeight(r)?OA.internal.getWidth(r)/4:OA.internal.getHeight(r)/4;o=Number((.9*o).toFixed(5));var l=Number((2*o).toFixed(5)),u=Number((l*OA.internal.Bezier_C).toFixed(5)),B=Number((o*OA.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Rr(OA.internal.getWidth(r)/2)+" "+Rr(OA.internal.getHeight(r)/2)+" cm"),t.push(l+" 0 m"),t.push(l+" "+u+" "+u+" "+l+" 0 "+l+" c"),t.push("-"+u+" "+l+" -"+l+" "+u+" -"+l+" 0 c"),t.push("-"+l+" -"+u+" -"+u+" -"+l+" 0 -"+l+" c"),t.push(u+" -"+l+" "+l+" -"+u+" "+l+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+Rr(OA.internal.getWidth(r)/2)+" "+Rr(OA.internal.getHeight(r)/2)+" cm"),t.push(o+" 0 m"),t.push(o+" "+B+" "+B+" "+o+" 0 "+o+" c"),t.push("-"+B+" "+o+" -"+o+" "+B+" -"+o+" 0 c"),t.push("-"+o+" -"+B+" -"+B+" -"+o+" 0 -"+o+" c"),t.push(B+" -"+o+" "+o+" -"+B+" "+o+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join("\n"),A},OffPushDown:function(r){var A=Gr(r);A.scope=r.scope;var t=[],o=OA.internal.getWidth(r)<=OA.internal.getHeight(r)?OA.internal.getWidth(r)/4:OA.internal.getHeight(r)/4;o=Number((.9*o).toFixed(5));var l=Number((2*o).toFixed(5)),u=Number((l*OA.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Rr(OA.internal.getWidth(r)/2)+" "+Rr(OA.internal.getHeight(r)/2)+" cm"),t.push(l+" 0 m"),t.push(l+" "+u+" "+u+" "+l+" 0 "+l+" c"),t.push("-"+u+" "+l+" -"+l+" "+u+" -"+l+" 0 c"),t.push("-"+l+" -"+u+" -"+u+" -"+l+" 0 -"+l+" c"),t.push(u+" -"+l+" "+l+" -"+u+" "+l+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join("\n"),A}},Cross:{createAppearanceStream:function(r){var A={D:{Off:OA.RadioButton.Cross.OffPushDown},N:{}};return A.N[r]=OA.RadioButton.Cross.YesNormal,A.D[r]=OA.RadioButton.Cross.YesPushDown,A},getCA:function(){return"8"},YesNormal:function(r){var A=Gr(r);A.scope=r.scope;var t=[],o=OA.internal.calculateCross(r);return t.push("q"),t.push("1 1 "+ne(OA.internal.getWidth(r)-2)+" "+ne(OA.internal.getHeight(r)-2)+" re"),t.push("W"),t.push("n"),t.push(ne(o.x1.x)+" "+ne(o.x1.y)+" m"),t.push(ne(o.x2.x)+" "+ne(o.x2.y)+" l"),t.push(ne(o.x4.x)+" "+ne(o.x4.y)+" m"),t.push(ne(o.x3.x)+" "+ne(o.x3.y)+" l"),t.push("s"),t.push("Q"),A.stream=t.join("\n"),A},YesPushDown:function(r){var A=Gr(r);A.scope=r.scope;var t=OA.internal.calculateCross(r),o=[];return o.push("0.749023 g"),o.push("0 0 "+ne(OA.internal.getWidth(r))+" "+ne(OA.internal.getHeight(r))+" re"),o.push("f"),o.push("q"),o.push("1 1 "+ne(OA.internal.getWidth(r)-2)+" "+ne(OA.internal.getHeight(r)-2)+" re"),o.push("W"),o.push("n"),o.push(ne(t.x1.x)+" "+ne(t.x1.y)+" m"),o.push(ne(t.x2.x)+" "+ne(t.x2.y)+" l"),o.push(ne(t.x4.x)+" "+ne(t.x4.y)+" m"),o.push(ne(t.x3.x)+" "+ne(t.x3.y)+" l"),o.push("s"),o.push("Q"),A.stream=o.join("\n"),A},OffPushDown:function(r){var A=Gr(r);A.scope=r.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+ne(OA.internal.getWidth(r))+" "+ne(OA.internal.getHeight(r))+" re"),t.push("f"),A.stream=t.join("\n"),A}}},createDefaultAppearanceStream:function(r){var A=r.scope.internal.getFont(r.fontName,r.fontStyle).id,t=r.scope.__private__.encodeColorString(r.color);return"/"+A+" "+r.fontSize+" Tf "+t}};OA.internal={Bezier_C:.551915024494,calculateCross:function(r){var A=OA.internal.getWidth(r),t=OA.internal.getHeight(r),o=Math.min(A,t);return{x1:{x:(A-o)/2,y:(t-o)/2+o},x2:{x:(A-o)/2+o,y:(t-o)/2},x3:{x:(A-o)/2,y:(t-o)/2},x4:{x:(A-o)/2+o,y:(t-o)/2+o}}}},OA.internal.getWidth=function(r){var A=0;return"object"===Se(r)&&(A=kc(r.Rect[2])),A},OA.internal.getHeight=function(r){var A=0;return"object"===Se(r)&&(A=kc(r.Rect[3])),A};var Gc=Ve.addField=function(r){if(function(r,A){if(A.scope=r,void 0!==r.internal&&(void 0===r.internal.acroformPlugin||!1===r.internal.acroformPlugin.isInitialized)){if(cr.FieldNum=0,r.internal.acroformPlugin=JSON.parse(JSON.stringify(Du)),r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Es=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new Is,r.internal.acroformPlugin.acroFormDictionaryRoot.scope=r,r.internal.acroformPlugin.acroFormDictionaryRoot._eventID=r.internal.events.subscribe("postPutResources",function(){var t;(t=r).internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}),r.internal.events.subscribe("buildDocument",function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var o=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var l in o)if(o.hasOwnProperty(l)){var u=o[l];u.objId=void 0,u.hasAnnotation&&Tu(u,t)}}(r)}),r.internal.events.subscribe("putCatalog",function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(r)}),r.internal.events.subscribe("postPutPages",function(t){!function(o,l){var u=!o;for(var B in o||(l.internal.newObjectDeferredBegin(l.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),l.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),o=o||l.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(o.hasOwnProperty(B)){var g=o[B],p=[],m=g.Rect;if(g.Rect&&(g.Rect=Nu(g.Rect,l)),l.internal.newObjectDeferredBegin(g.objId,!0),g.DA=OA.createDefaultAppearanceStream(g),"object"===Se(g)&&"function"==typeof g.getKeyValueListForStream&&(p=g.getKeyValueListForStream()),g.Rect=m,g.hasAppearanceStream&&!g.appearanceStreamContent){var U=_u(g);p.push({key:"AP",value:"<</N "+U+">>"}),l.internal.acroformPlugin.xForms.push(U)}if(g.appearanceStreamContent){var b="";for(var H in g.appearanceStreamContent)if(g.appearanceStreamContent.hasOwnProperty(H)){var v=g.appearanceStreamContent[H];if(b+="/"+H+" ",b+="<<",Object.keys(v).length>=1||Array.isArray(v)){for(var B in v)if(v.hasOwnProperty(B)){var K=v[B];"function"==typeof K&&(K=K.call(l,g)),b+="/"+B+" "+K+" ",l.internal.acroformPlugin.xForms.indexOf(K)>=0||l.internal.acroformPlugin.xForms.push(K)}}else"function"==typeof(K=v)&&(K=K.call(l,g)),b+="/"+B+" "+K,l.internal.acroformPlugin.xForms.indexOf(K)>=0||l.internal.acroformPlugin.xForms.push(K);b+=">>"}p.push({key:"AP",value:"<<\n"+b+">>"})}l.internal.putStream({additionalKeyValues:p,objectId:g.objId}),l.internal.out("endobj")}u&&function(r,A){for(var t in r)if(r.hasOwnProperty(t)){var o=t,l=r[t];A.internal.newObjectDeferredBegin(l.objId,!0),"object"===Se(l)&&"function"==typeof l.putStream&&l.putStream(),delete r[o]}}(l.internal.acroformPlugin.xForms,l)}(t,r)}),r.internal.acroformPlugin.isInitialized=!0}}(this,r),!(r instanceof cr))throw new Error("Invalid argument passed to jsPDF.addField.");var A;return(A=r).scope.internal.acroformPlugin.printedOut&&(A.scope.internal.acroformPlugin.printedOut=!1,A.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),A.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A),r.page=r.scope.internal.getCurrentPageInfo().pageNumber,this};Ve.AcroFormChoiceField=Pn,Ve.AcroFormListBox=Ir,Ve.AcroFormComboBox=ur,Ve.AcroFormEditBox=Ee,Ve.AcroFormButton=Bt,Ve.AcroFormPushButton=hi,Ve.AcroFormRadioButton=Mn,Ve.AcroFormCheckBox=Jt,Ve.AcroFormTextField=kn,Ve.AcroFormPasswordField=lr,Ve.AcroFormAppearance=OA,Ve.AcroForm={ChoiceField:Pn,ListBox:Ir,ComboBox:ur,EditBox:Ee,Button:Bt,PushButton:hi,RadioButton:Mn,CheckBox:Jt,TextField:kn,PasswordField:lr,Appearance:OA};var r,A,yt=Ae.AcroForm={ChoiceField:Pn,ListBox:Ir,ComboBox:ur,EditBox:Ee,Button:Bt,PushButton:hi,RadioButton:Mn,CheckBox:Jt,TextField:kn,PasswordField:lr,Appearance:OA};function xs(r){return r.reduce(function(A,t,o){return A[t]=o,A},{})}(function(r){r.__addimage__={};var A="UNKNOWN",t={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},o=r.__addimage__.getImageFileTypeByImageData=function(D,M){var tA,X,mA,dA,yA,hA=A;if("RGBA"===(M=M||A)||void 0!==D.data&&D.data instanceof Uint8ClampedArray&&"height"in D&&"width"in D)return"RGBA";if(SA(D))for(yA in t)for(mA=t[yA],tA=0;tA<mA.length;tA+=1){for(dA=!0,X=0;X<mA[tA].length;X+=1)if(void 0!==mA[tA][X]&&mA[tA][X]!==D[X]){dA=!1;break}if(!0===dA){hA=yA;break}}else for(yA in t)for(mA=t[yA],tA=0;tA<mA.length;tA+=1){for(dA=!0,X=0;X<mA[tA].length;X+=1)if(void 0!==mA[tA][X]&&mA[tA][X]!==D.charCodeAt(X)){dA=!1;break}if(!0===dA){hA=yA;break}}return hA===A&&M!==A&&(hA=M),hA},l=function D(M){for(var tA=this.internal.write,X=this.internal.putStream,mA=(0,this.internal.getFilters)();-1!==mA.indexOf("FlateEncode");)mA.splice(mA.indexOf("FlateEncode"),1);M.objectId=this.internal.newObject();var dA=[];if(dA.push({key:"Type",value:"/XObject"}),dA.push({key:"Subtype",value:"/Image"}),dA.push({key:"Width",value:M.width}),dA.push({key:"Height",value:M.height}),M.colorSpace===R.INDEXED?dA.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(M.palette.length/3-1)+" "+("sMask"in M&&void 0!==M.sMask?M.objectId+2:M.objectId+1)+" 0 R]"}):(dA.push({key:"ColorSpace",value:"/"+M.colorSpace}),M.colorSpace===R.DEVICE_CMYK&&dA.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),dA.push({key:"BitsPerComponent",value:M.bitsPerComponent}),"decodeParameters"in M&&void 0!==M.decodeParameters&&dA.push({key:"DecodeParms",value:"<<"+M.decodeParameters+">>"}),"transparency"in M&&Array.isArray(M.transparency)){for(var yA="",hA=0,UA=M.transparency.length;hA<UA;hA++)yA+=M.transparency[hA]+" "+M.transparency[hA]+" ";dA.push({key:"Mask",value:"["+yA+"]"})}if(void 0!==M.sMask&&dA.push({key:"SMask",value:M.objectId+1+" 0 R"}),X({data:M.data,additionalKeyValues:dA,alreadyAppliedFilters:void 0!==M.filter?["/"+M.filter]:void 0,objectId:M.objectId}),tA("endobj"),"sMask"in M&&void 0!==M.sMask){var x={width:M.width,height:M.height,colorSpace:"DeviceGray",bitsPerComponent:M.bitsPerComponent,decodeParameters:"/Predictor "+M.predictor+" /Colors 1 /BitsPerComponent "+M.bitsPerComponent+" /Columns "+M.width,data:M.sMask};"filter"in M&&(x.filter=M.filter),D.call(this,x)}if(M.colorSpace===R.INDEXED){var G=this.internal.newObject();X({data:J(new Uint8Array(M.palette)),objectId:G}),tA("endobj")}},u=function(){var D=this.internal.collections.addImage_images;for(var M in D)l.call(this,D[M])},B=function(){var D,M=this.internal.collections.addImage_images,tA=this.internal.write;for(var X in M)tA("/I"+(D=M[X]).index,D.objectId,"0","R")},g=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",u),this.internal.events.subscribe("putXobjectDict",B))},p=function(){var D=this.internal.collections.addImage_images;return g.call(this),D},m=function(){return Object.keys(this.internal.collections.addImage_images).length},U=function(D){return"function"==typeof r["process"+D.toUpperCase()]},b=function(D){return"object"===Se(D)&&1===D.nodeType},H=function(D,M){if("IMG"===D.nodeName&&D.hasAttribute("src")){var tA=""+D.getAttribute("src");if(0===tA.indexOf("data:image/"))return Oa(unescape(tA).split("base64,").pop());var X=r.loadFile(tA,!0);if(void 0!==X)return X}if("CANVAS"===D.nodeName){if(0===D.width||0===D.height)throw new Error("Given canvas must have data. Canvas width: "+D.width+", height: "+D.height);var mA;switch(M){case"PNG":mA="image/png";break;case"WEBP":mA="image/webp";break;default:mA="image/jpeg"}return Oa(D.toDataURL(mA,1).split("base64,").pop())}},v=function(D){var M=this.internal.collections.addImage_images;if(M)for(var tA in M)if(D===M[tA].alias)return M[tA]},K=function(D,M,tA){return D||M||(D=-96,M=-96),D<0&&(D=-1*tA.width*72/D/this.internal.scaleFactor),M<0&&(M=-1*tA.height*72/M/this.internal.scaleFactor),0===D&&(D=M*tA.width/tA.height),0===M&&(M=D*tA.height/tA.width),[D,M]},T=function(D,M,tA,X,mA,dA){var yA=K.call(this,tA,X,mA),hA=this.internal.getCoordinateString,UA=this.internal.getVerticalCoordinateString,IA=p.call(this);if(tA=yA[0],X=yA[1],IA[mA.index]=mA,dA){dA*=Math.PI/180;var qA=Math.cos(dA),x=Math.sin(dA),G=function(AA){return AA.toFixed(4)},q=[G(qA),G(x),G(-1*x),G(qA),0,0,"cm"]}this.internal.write("q"),dA?(this.internal.write([1,"0","0",1,hA(D),UA(M+X),"cm"].join(" ")),this.internal.write(q.join(" ")),this.internal.write([hA(tA),"0","0",hA(X),"0","0","cm"].join(" "))):this.internal.write([hA(tA),"0","0",hA(X),hA(D),UA(M+X),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+mA.index+" Do"),this.internal.write("Q")},R=r.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"};r.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 N=r.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},j=r.__addimage__.sHashCode=function(D){var M,tA,X=0;if("string"==typeof D)for(tA=D.length,M=0;M<tA;M++)X=(X<<5)-X+D.charCodeAt(M),X|=0;else if(SA(D))for(tA=D.byteLength/2,M=0;M<tA;M++)X=(X<<5)-X+D[M],X|=0;return X},rA=r.__addimage__.validateStringAsBase64=function(D){(D=D||"").toString().trim();var M=!0;return 0===D.length&&(M=!1),D.length%4!=0&&(M=!1),!1===/^[A-Za-z0-9+/]+$/.test(D.substr(0,D.length-2))&&(M=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(D.substr(-2))&&(M=!1),M},cA=r.__addimage__.extractImageFromDataUrl=function(D){var M=(D=D||"").split("base64,"),tA=null;if(2===M.length){var X=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(M[0]);Array.isArray(X)&&(tA={mimeType:X[1],charset:X[2],data:M[1]})}return tA},vA=r.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};r.__addimage__.isArrayBuffer=function(D){return vA()&&D instanceof ArrayBuffer};var SA=r.__addimage__.isArrayBufferView=function(D){return vA()&&typeof Uint32Array<"u"&&(D instanceof Int8Array||D instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&D instanceof Uint8ClampedArray||D instanceof Int16Array||D instanceof Uint16Array||D instanceof Int32Array||D instanceof Uint32Array||D instanceof Float32Array||D instanceof Float64Array)},lA=r.__addimage__.binaryStringToUint8Array=function(D){for(var M=D.length,tA=new Uint8Array(M),X=0;X<M;X++)tA[X]=D.charCodeAt(X);return tA},J=r.__addimage__.arrayBufferToBinaryString=function(D){for(var M="",tA=SA(D)?D:new Uint8Array(D),X=0;X<tA.length;X+=8192)M+=String.fromCharCode.apply(null,tA.subarray(X,X+8192));return M};r.addImage=function(){var D,M,tA,X,mA,dA,yA,hA,UA;if("number"==typeof arguments[1]?(M=A,tA=arguments[1],X=arguments[2],mA=arguments[3],dA=arguments[4],yA=arguments[5],hA=arguments[6],UA=arguments[7]):(M=arguments[1],tA=arguments[2],X=arguments[3],mA=arguments[4],dA=arguments[5],yA=arguments[6],hA=arguments[7],UA=arguments[8]),"object"===Se(D=arguments[0])&&!b(D)&&"imageData"in D){var IA=D;D=IA.imageData,M=IA.format||M||A,tA=IA.x||tA||0,X=IA.y||X||0,mA=IA.w||IA.width||mA,dA=IA.h||IA.height||dA,yA=IA.alias||yA,hA=IA.compression||hA,UA=IA.rotation||IA.angle||UA}var qA=this.internal.getFilters();if(void 0===hA&&-1!==qA.indexOf("FlateEncode")&&(hA="SLOW"),isNaN(tA)||isNaN(X))throw new Error("Invalid coordinates passed to jsPDF.addImage");g.call(this);var x=fA.call(this,D,M,yA,hA);return T.call(this,tA,X,mA,dA,x,UA),this};var fA=function(D,M,tA,X){var mA,dA,yA,UA;if("string"==typeof D&&o(D)===A){D=unescape(D);var hA=bA(D,!1);(""!==hA||void 0!==(hA=r.loadFile(D,!0)))&&(D=hA)}if(b(D)&&(D=H(D,M)),M=o(D,M),!U(M))throw new Error("addImage does not support files of type '"+M+"', please ensure that a plugin for '"+M+"' support is added.");if((null==(yA=tA)||0===yA.length)&&(tA="string"==typeof(UA=D)||SA(UA)?j(UA):SA(UA.data)?j(UA.data):null),(mA=v.call(this,tA))||(vA()&&(D instanceof Uint8Array||"RGBA"===M||(dA=D,D=lA(D))),mA=this["process"+M.toUpperCase()](D,m.call(this),tA,function(UA){return UA&&"string"==typeof UA&&(UA=UA.toUpperCase()),UA in r.image_compression?UA:N.NONE}(X),dA)),!mA)throw new Error("An unknown error occurred whilst processing the image.");return mA},bA=r.__addimage__.convertBase64ToBinaryString=function(D,M){var tA;M="boolean"!=typeof M||M;var X,mA="";if("string"==typeof D){X=null!==(tA=cA(D))?tA.data:D;try{mA=Oa(X)}catch(dA){if(M)throw rA(X)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+dA.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return mA};r.getImageProperties=function(D){var M,tA,X="";if(b(D)&&(D=H(D)),"string"==typeof D&&o(D)===A&&(""===(X=bA(D,!1))&&(X=r.loadFile(D)||""),D=X),tA=o(D),!U(tA))throw new Error("addImage does not support files of type '"+tA+"', please ensure that a plugin for '"+tA+"' support is added.");if(!vA()||D instanceof Uint8Array||(D=lA(D)),!(M=this["process"+tA.toUpperCase()](D)))throw new Error("An unknown error occurred whilst processing the image");return M.fileType=tA,M}})(Ae.API),
/**
       * @license
       * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
       *
       * Licensed under the MIT License.
       * http://opensource.org/licenses/mit-license
       */
r=Ae.API,A=function(t){if(void 0!==t&&""!=t)return!0},Ae.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),r.events.push(["putPage",function(t){for(var o,l,u,B=this.internal.getCoordinateString,g=this.internal.getVerticalCoordinateString,p=this.internal.getPageInfoByObjId(t.objId),m=t.pageContext.annotations,U=!1,b=0;b<m.length&&!U;b++)switch((o=m[b]).type){case"link":(A(o.options.url)||A(o.options.pageNumber))&&(U=!0);break;case"reference":case"text":case"freetext":U=!0}if(0!=U){this.internal.write("/Annots [");for(var H=0;H<m.length;H++){o=m[H];var v=this.internal.pdfEscape,K=this.internal.getEncryptor(t.objId);switch(o.type){case"reference":this.internal.write(" "+o.object.objId+" 0 R ");break;case"text":var T=this.internal.newAdditionalObject(),R=this.internal.newAdditionalObject(),N=this.internal.getEncryptor(T.objId),j=o.title||"Note";u="<</Type /Annot /Subtype /Text "+(l="/Rect ["+B(o.bounds.x)+" "+g(o.bounds.y+o.bounds.h)+" "+B(o.bounds.x+o.bounds.w)+" "+g(o.bounds.y)+"] ")+"/Contents ("+v(N(o.contents))+")",u+=" /Popup "+R.objId+" 0 R",u+=" /P "+p.objId+" 0 R",u+=" /T ("+v(N(j))+") >>",T.content=u;var rA=T.objId+" 0 R";u="<</Type /Annot /Subtype /Popup "+(l="/Rect ["+B(o.bounds.x+30)+" "+g(o.bounds.y+o.bounds.h)+" "+B(o.bounds.x+o.bounds.w+30)+" "+g(o.bounds.y)+"] ")+" /Parent "+rA,o.open&&(u+=" /Open true"),R.content=u+=" >>",this.internal.write(T.objId,"0 R",R.objId,"0 R");break;case"freetext":l="/Rect ["+B(o.bounds.x)+" "+g(o.bounds.y)+" "+B(o.bounds.x+o.bounds.w)+" "+g(o.bounds.y+o.bounds.h)+"] ";var cA=o.color||"#000000";u="<</Type /Annot /Subtype /FreeText "+l+"/Contents ("+v(K(o.contents))+")",u+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+cA+")",u+=" /Border [0 0 0]",this.internal.write(u+=" >>");break;case"link":if(o.options.name){var vA=this.annotations._nameMap[o.options.name];o.options.pageNumber=vA.page,o.options.top=vA.y}else o.options.top||(o.options.top=0);if(l="/Rect ["+o.finalBounds.x+" "+o.finalBounds.y+" "+o.finalBounds.w+" "+o.finalBounds.h+"] ",u="",o.options.url)u="<</Type /Annot /Subtype /Link "+l+"/Border [0 0 0] /A <</S /URI /URI ("+v(K(o.options.url))+") >>";else if(o.options.pageNumber)switch(u="<</Type /Annot /Subtype /Link "+l+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(o.options.pageNumber).objId+" 0 R",o.options.magFactor=o.options.magFactor||"XYZ",o.options.magFactor){case"Fit":u+=" /Fit]";break;case"FitH":u+=" /FitH "+o.options.top+"]";break;case"FitV":o.options.left=o.options.left||0,u+=" /FitV "+o.options.left+"]";break;default:var SA=g(o.options.top);o.options.left=o.options.left||0,void 0===o.options.zoom&&(o.options.zoom=0),u+=" /XYZ "+o.options.left+" "+SA+" "+o.options.zoom+"]"}""!=u&&this.internal.write(u+=" >>")}}this.internal.write("]")}}]),r.createAnnotation=function(t){var o=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":o.pageContext.annotations.push(t)}},r.link=function(t,o,l,u,B){var g=this.internal.getCurrentPageInfo(),p=this.internal.getCoordinateString,m=this.internal.getVerticalCoordinateString;g.pageContext.annotations.push({finalBounds:{x:p(t),y:m(o),w:p(t+l),h:m(o+u)},options:B,type:"link"})},r.textWithLink=function(t,o,l,u){var B,g,p=this.getTextWidth(t),m=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==u.maxWidth){var U=this.splitTextToSize(t,g=u.maxWidth).length;B=Math.ceil(m*U)}else g=p,B=m;return this.text(t,o,l,u),"center"===u.align&&(o-=p/2),"right"===u.align&&(o-=p),this.link(o,(l+=.2*m)-m,g,B,u),p},r.getTextWidth=function(t){var o=this.internal.getFontSize();return this.getStringUnitWidth(t)*o/this.internal.scaleFactor},
/**
       * @license
       * Copyright (c) 2017 Aras Abbasi
       *
       * Licensed under the MIT License.
       * http://opensource.org/licenses/mit-license
       */
function(r){var A={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},t={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},o={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},l=[1570,1571,1573,1575];r.__arabicParser__={};var u=r.__arabicParser__.isInArabicSubstitutionA=function(T){return void 0!==A[T.charCodeAt(0)]},B=r.__arabicParser__.isArabicLetter=function(T){return"string"==typeof T&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(T)},g=r.__arabicParser__.isArabicEndLetter=function(T){return B(T)&&u(T)&&A[T.charCodeAt(0)].length<=2},p=r.__arabicParser__.isArabicAlfLetter=function(T){return B(T)&&l.indexOf(T.charCodeAt(0))>=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(T){return B(T)&&u(T)&&A[T.charCodeAt(0)].length>=1};var m=r.__arabicParser__.arabicLetterHasFinalForm=function(T){return B(T)&&u(T)&&A[T.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(T){return B(T)&&u(T)&&A[T.charCodeAt(0)].length>=3};var U=r.__arabicParser__.arabicLetterHasMedialForm=function(T){return B(T)&&u(T)&&4==A[T.charCodeAt(0)].length},b=r.__arabicParser__.resolveLigatures=function(T){var R=0,N=t,j="",rA=0;for(R=0;R<T.length;R+=1)void 0!==N[T.charCodeAt(R)]?(rA++,"number"==typeof(N=N[T.charCodeAt(R)])&&(j+=String.fromCharCode(N),N=t,rA=0),R===T.length-1&&(N=t,j+=T.charAt(R-(rA-1)),R-=rA-1,rA=0)):(N=t,j+=T.charAt(R-rA),R-=rA,rA=0);return j};r.__arabicParser__.isArabicDiacritic=function(T){return void 0!==T&&void 0!==o[T.charCodeAt(0)]};var H=r.__arabicParser__.getCorrectForm=function(T,R,N){return B(T)?!1===u(T)?-1:!m(T)||!B(R)&&!B(N)||!B(N)&&g(R)||g(T)&&!B(R)||g(T)&&p(R)||g(T)&&g(R)?0:U(T)&&B(R)&&!g(R)&&B(N)&&m(N)?3:g(T)||!B(N)?1:2:-1},v=function(T){var R=0,N=0,j=0,rA="",cA="",vA="",SA=(T=T||"").split("\\s+"),lA=[];for(R=0;R<SA.length;R+=1){for(lA.push(""),N=0;N<SA[R].length;N+=1)cA=SA[R][N-1],vA=SA[R][N+1],B(rA=SA[R][N])?(j=H(rA,cA,vA),lA[R]+=-1!==j?String.fromCharCode(A[rA.charCodeAt(0)][j]):rA):lA[R]+=rA;lA[R]=b(lA[R])}return lA.join(" ")},K=r.__arabicParser__.processArabic=r.processArabic=function(){var T,R="string"==typeof arguments[0]?arguments[0]:arguments[0].text,N=[];if(Array.isArray(R)){var j=0;for(N=[],j=0;j<R.length;j+=1)Array.isArray(R[j])?N.push([v(R[j][0]),R[j][1],R[j][2]]):N.push([v(R[j])]);T=N}else T=v(R);return"string"==typeof arguments[0]?T:(arguments[0].text=T,arguments[0])};r.events.push(["preProcessText",K])}(Ae.API),Ae.API.autoPrint=function(r){var A;return"javascript"===((r=r||{}).variant=r.variant||"non-conform",r.variant)?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){A=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 "+A+" 0 R")})),this},
/**
       * @license
       * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
       *
       * Licensed under the MIT License.
       * http://opensource.org/licenses/mit-license
       */
function(r){var A=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(g){t=g}});var o=150;Object.defineProperty(this,"width",{get:function(){return o},set:function(g){o=isNaN(g)||!1===Number.isInteger(g)||g<0?150:g,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=o+1)}});var l=300;Object.defineProperty(this,"height",{get:function(){return l},set:function(g){l=isNaN(g)||!1===Number.isInteger(g)||g<0?300:g,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=l+1)}});var u=[];Object.defineProperty(this,"childNodes",{get:function(){return u},set:function(g){u=g}});var B={};Object.defineProperty(this,"style",{get:function(){return B},set:function(g){B=g}}),Object.defineProperty(this,"parentNode",{})};A.prototype.getContext=function(t,o){var l;if("2d"!==(t=t||"2d"))return null;for(l in o)this.pdf.context2d.hasOwnProperty(l)&&(this.pdf.context2d[l]=o[l]);return this.pdf.context2d._canvas=this,this.pdf.context2d},A.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},r.events.push(["initialized",function(){this.canvas=new A,this.canvas.pdf=this}])}(Ae.API),function(r){var A={left:0,top:0,bottom:0,right:0},t=!1,o=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},A),this.internal.__cell__.margins.width=this.getPageWidth(),l.call(this))},l=function(){this.internal.__cell__.lastCell=new u,this.internal.__cell__.pages=1},u=function(){var p=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return p},set:function(T){p=T}});var m=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return m},set:function(T){m=T}});var U=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return U},set:function(T){U=T}});var b=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return b},set:function(T){b=T}});var H=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return H},set:function(T){H=T}});var v=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return v},set:function(T){v=T}});var K=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return K},set:function(T){K=T}}),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]},r.setHeaderFunction=function(p){return o.call(this),this.internal.__cell__.headerFunction="function"==typeof p?p:void 0,this},r.getTextDimensions=function(p,m){o.call(this);var U=(m=m||{}).fontSize||this.getFontSize(),b=m.font||this.getFont(),H=m.scaleFactor||this.internal.scaleFactor,v=0,K=0,T=0,R=this;if(!Array.isArray(p)&&"string"!=typeof p){if("number"!=typeof p)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");p=String(p)}var N=m.maxWidth;N>0?"string"==typeof p?p=this.splitTextToSize(p,N):"[object Array]"===Object.prototype.toString.call(p)&&(p=p.reduce(function(rA,cA){return rA.concat(R.splitTextToSize(cA,N))},[])):p=Array.isArray(p)?p:[p];for(var j=0;j<p.length;j++)v<(T=this.getStringUnitWidth(p[j],{font:b})*U)&&(v=T);return 0!==v&&(K=p.length),{w:v/=H,h:Math.max((K*U*this.getLineHeightFactor()-U*(this.getLineHeightFactor()-1))/H,0)}},r.cellAddPage=function(){o.call(this),this.addPage();var p=this.internal.__cell__.margins||A;return this.internal.__cell__.lastCell=new u(p.left,p.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var B=r.cell=function(){var p;p=arguments[0]instanceof u?arguments[0]:new u(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),o.call(this);var m=this.internal.__cell__.lastCell,U=this.internal.__cell__.padding,b=this.internal.__cell__.margins||A,H=this.internal.__cell__.tableHeaderRow,v=this.internal.__cell__.printHeaders;return void 0!==m.lineNumber&&(m.lineNumber===p.lineNumber?(p.x=(m.x||0)+(m.width||0),p.y=m.y||0):m.y+m.height+p.height+b.bottom>this.getPageHeight()?(this.cellAddPage(),p.y=b.top,v&&H&&(this.printHeaderRow(p.lineNumber,!0),p.y+=H[0].height)):p.y=m.y+m.height||p.y),void 0!==p.text[0]&&(this.rect(p.x,p.y,p.width,p.height,!0===t?"FD":void 0),"right"===p.align?this.text(p.text,p.x+p.width-U,p.y+U,{align:"right",baseline:"top"}):"center"===p.align?this.text(p.text,p.x+p.width/2,p.y+U,{align:"center",baseline:"top",maxWidth:p.width-U-U}):this.text(p.text,p.x+U,p.y+U,{align:"left",baseline:"top",maxWidth:p.width-U-U})),this.internal.__cell__.lastCell=p,this};r.table=function(p,m,U,b,H){if(o.call(this),!U)throw new Error("No data for PDF table.");var v,K,T,R,N=[],j=[],rA=[],cA={},vA={},SA=[],lA=[],J=(H=H||{}).autoSize||!1,fA=!1!==H.printHeaders,bA=H.css&&void 0!==H.css["font-size"]?16*H.css["font-size"]:H.fontSize||12,D=H.margins||Object.assign({width:this.getPageWidth()},A),M="number"==typeof H.padding?H.padding:3,tA=H.headerBackgroundColor||"#c8c8c8",X=H.headerTextColor||"#000";if(l.call(this),this.internal.__cell__.printHeaders=fA,this.internal.__cell__.margins=D,this.internal.__cell__.table_font_size=bA,this.internal.__cell__.padding=M,this.internal.__cell__.headerBackgroundColor=tA,this.internal.__cell__.headerTextColor=X,this.setFontSize(bA),null==b)j=N=Object.keys(U[0]),rA=N.map(function(){return"left"});else if(Array.isArray(b)&&"object"===Se(b[0]))for(N=b.map(function(IA){return IA.name}),j=b.map(function(IA){return IA.prompt||IA.name||""}),rA=b.map(function(IA){return IA.align||"left"}),v=0;v<b.length;v+=1)vA[b[v].name]=b[v].width*(19.049976/25.4);else Array.isArray(b)&&"string"==typeof b[0]&&(j=N=b,rA=N.map(function(){return"left"}));if(J||Array.isArray(b)&&"string"==typeof b[0])for(v=0;v<N.length;v+=1){for(cA[R=N[v]]=U.map(function(IA){return IA[R]}),this.setFont(void 0,"bold"),SA.push(this.getTextDimensions(j[v],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),K=cA[R],this.setFont(void 0,"normal"),T=0;T<K.length;T+=1)SA.push(this.getTextDimensions(K[T],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);vA[R]=Math.max.apply(null,SA)+M+M,SA=[]}if(fA){var mA={};for(v=0;v<N.length;v+=1)mA[N[v]]={},mA[N[v]].text=j[v],mA[N[v]].align=rA[v];var dA=g.call(this,mA,vA);lA=N.map(function(IA){return new u(p,m,vA[IA],dA,mA[IA].text,void 0,mA[IA].align)}),this.setTableHeaderRow(lA),this.printHeaderRow(1,!1)}var yA=b.reduce(function(IA,qA){return IA[qA.name]=qA.align,IA},{});for(v=0;v<U.length;v+=1){"rowStart"in H&&H.rowStart instanceof Function&&H.rowStart({row:v,data:U[v]},this);var hA=g.call(this,U[v],vA);for(T=0;T<N.length;T+=1){var UA=U[v][N[T]];"cellStart"in H&&H.cellStart instanceof Function&&H.cellStart({row:v,col:T,data:UA},this),B.call(this,new u(p,m,vA[N[T]],hA,UA,v+2,yA[N[T]]))}}return this.internal.__cell__.table_x=p,this.internal.__cell__.table_y=m,this};var g=function(p,m){var U=this.internal.__cell__.padding,b=this.internal.__cell__.table_font_size,H=this.internal.scaleFactor;return Object.keys(p).map(function(v){var K=p[v];return this.splitTextToSize(K.hasOwnProperty("text")?K.text:K,m[v]-U-U)},this).map(function(v){return this.getLineHeightFactor()*v.length*b/H+U+U},this).reduce(function(v,K){return Math.max(v,K)},0)};r.setTableHeaderRow=function(p){o.call(this),this.internal.__cell__.tableHeaderRow=p},r.printHeaderRow=function(p,m){if(o.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var U;if(t=!0,"function"==typeof this.internal.__cell__.headerFunction){var b=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new u(b[0],b[1],b[2],b[3],void 0,-1)}this.setFont(void 0,"bold");for(var H=[],v=0;v<this.internal.__cell__.tableHeaderRow.length;v+=1){U=this.internal.__cell__.tableHeaderRow[v].clone(),m&&(U.y=this.internal.__cell__.margins.top||0,H.push(U)),U.lineNumber=p;var K=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),B.call(this,U),this.setTextColor(K)}H.length>0&&this.setTableHeaderRow(H),this.setFont(void 0,"normal"),t=!1}}(Ae.API);var cn={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},ji=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],De=xs(ji),Ho=[100,200,300,400,500,600,700,800,900],jc=xs(Ho);function Ss(r){var u,A=r.family.replace(/"|'/g,"").toLowerCase(),t=cn[u=(u=r.style)||"normal"]?u:"normal",o=function(u){return u?"number"==typeof u?u>=100&&u<=900&&u%100==0?u:400:/^\d00$/.test(u)?parseInt(u):"bold"===u?700:400:400}(r.weight),l=function(u){return"number"==typeof De[u=u||"normal"]?u:"normal"}(r.stretch);return{family:A,style:t,weight:o,stretch:l,src:r.src||[],ref:r.ref||{name:A,style:[l,t,o].join(" ")}}}function No(r,A,t,o){var l;for(l=t;l>=0&&l<A.length;l+=o)if(r[A[l]])return r[A[l]];for(l=t;l>=0&&l<A.length;l-=o)if(r[A[l]])return r[A[l]]}var Hs={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},_o={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Do(r){return[r.stretch,r.style,r.weight,r.family].join(" ")}function un(r){return r.trimLeft()}function Kn(r,A){for(var t=0;t<r.length;){if(r.charAt(t)===A)return[r.substring(0,t),r.substring(t+1)];t+=1}return null}function vt(r){var A=r.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===A?null:[A[0],r.substring(A[0].length)]}var xr,To,Oo,Ma=["times"];(function(r){var A,t,o,l,u,B,g,p,m,U=function(x){return this.isStrokeTransparent=(x=x||{}).isStrokeTransparent||!1,this.strokeOpacity=x.strokeOpacity||1,this.strokeStyle=x.strokeStyle||"#000000",this.fillStyle=x.fillStyle||"#000000",this.isFillTransparent=x.isFillTransparent||!1,this.fillOpacity=x.fillOpacity||1,this.font=x.font||"10px sans-serif",this.textBaseline=x.textBaseline||"alphabetic",this.textAlign=x.textAlign||"left",this.lineWidth=x.lineWidth||1,this.lineJoin=x.lineJoin||"miter",this.lineCap=x.lineCap||"butt",this.path=x.path||[],this.transform=void 0!==x.transform?x.transform.clone():new p,this.globalCompositeOperation=x.globalCompositeOperation||"normal",this.globalAlpha=x.globalAlpha||1,this.clip_path=x.clip_path||[],this.currentPoint=x.currentPoint||new B,this.miterLimit=x.miterLimit||10,this.lastPoint=x.lastPoint||new B,this.lineDashOffset=x.lineDashOffset||0,this.lineDash=x.lineDash||[],this.margin=x.margin||[0,0,0,0],this.prevPageLastElemOffset=x.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof x.ignoreClearRect||x.ignoreClearRect,this};r.events.push(["initialized",function(){this.context2d=new b(this),A=this.internal.f2,t=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,l=this.internal.getHorizontalCoordinate,u=this.internal.getVerticalCoordinate,B=this.internal.Point,g=this.internal.Rectangle,p=this.internal.Matrix,m=new U}]);var b=function(x){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var G=x;Object.defineProperty(this,"pdf",{get:function(){return G}});var q=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return q},set:function(EA){q=!!EA}});var AA=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return AA},set:function(EA){AA=!!EA}});var sA=0;Object.defineProperty(this,"posX",{get:function(){return sA},set:function(EA){isNaN(EA)||(sA=EA)}});var BA=0;Object.defineProperty(this,"posY",{get:function(){return BA},set:function(EA){isNaN(EA)||(BA=EA)}}),Object.defineProperty(this,"margin",{get:function(){return m.margin},set:function(EA){var z;"number"==typeof EA?z=[EA,EA,EA,EA]:((z=new Array(4))[0]=EA[0],z[1]=EA.length>=2?EA[1]:z[0],z[2]=EA.length>=3?EA[2]:z[0],z[3]=EA.length>=4?EA[3]:z[1]),m.margin=z}});var pA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return pA},set:function(EA){pA=EA}});var wA=0;Object.defineProperty(this,"lastBreak",{get:function(){return wA},set:function(EA){wA=EA}});var DA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return DA},set:function(EA){DA=EA}}),Object.defineProperty(this,"ctx",{get:function(){return m},set:function(EA){EA instanceof U&&(m=EA)}}),Object.defineProperty(this,"path",{get:function(){return m.path},set:function(EA){m.path=EA}});var _A=[];Object.defineProperty(this,"ctxStack",{get:function(){return _A},set:function(EA){_A=EA}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(EA){var z;z=H(EA),this.ctx.fillStyle=z.style,this.ctx.isFillTransparent=0===z.a,this.ctx.fillOpacity=z.a,this.pdf.setFillColor(z.r,z.g,z.b,{a:z.a}),this.pdf.setTextColor(z.r,z.g,z.b,{a:z.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(EA){var z=H(EA);this.ctx.strokeStyle=z.style,this.ctx.isStrokeTransparent=0===z.a,this.ctx.strokeOpacity=z.a,0===z.a?this.pdf.setDrawColor(255,255,255):this.pdf.setDrawColor(z.r,z.g,z.b)}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(EA){-1!==["butt","round","square"].indexOf(EA)&&(this.ctx.lineCap=EA,this.pdf.setLineCap(EA))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(EA){isNaN(EA)||(this.ctx.lineWidth=EA,this.pdf.setLineWidth(EA))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(EA){-1!==["bevel","round","miter"].indexOf(EA)&&(this.ctx.lineJoin=EA,this.pdf.setLineJoin(EA))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(EA){isNaN(EA)||(this.ctx.miterLimit=EA,this.pdf.setMiterLimit(EA))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(EA){this.ctx.textBaseline=EA}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(EA){-1!==["right","end","center","left","start"].indexOf(EA)&&(this.ctx.textAlign=EA)}});var VA=null,re=null;Object.defineProperty(this,"fontFaces",{get:function(){return re},set:function(EA){VA=null,re=EA}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(EA){var z;if(this.ctx.font=EA,null!==(z=/^\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(EA))){var le=z[1],YA=z[3],NA=z[4],RA=z[6],zA=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(NA)[2];NA=Math.floor("px"===zA?parseFloat(NA)*this.pdf.internal.scaleFactor:"em"===zA?parseFloat(NA)*this.pdf.getFontSize():parseFloat(NA)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(NA);var jA=function(ie){var pe,WA,Ht=[],Ie=ie.trim();if(""===Ie)return Ma;if(Ie in _o)return[_o[Ie]];for(;""!==Ie;){switch(WA=null,pe=(Ie=un(Ie)).charAt(0)){case'"':case"'":WA=Kn(Ie.substring(1),pe);break;default:WA=vt(Ie)}if(null===WA||(Ht.push(WA[0]),""!==(Ie=un(WA[1]))&&","!==Ie.charAt(0)))return Ma;Ie=Ie.replace(/^,/,"")}return Ht}(RA);if(this.fontFaces){var ZA=function fr(r,A,t){for(var o=(t=t||{}).defaultFontFamily||"times",l=Object.assign({},Hs,t.genericFontFamilies||{}),u=null,B=null,g=0;g<A.length;++g)if(l[(u=Ss(A[g])).family]&&(u.family=l[u.family]),r.hasOwnProperty(u.family)){B=r[u.family];break}if(!(B=B||r[o]))throw new Error("Could not find a font-family for the rule '"+Do(u)+"' and default family '"+o+"'.");if(B=function(p,m){if(m[p])return m[p];var U=De[p],H=No(m,ji,U,U<=De.normal?-1:1);if(!H)throw new Error("Could not find a matching font-stretch value for "+p);return H}(u.stretch,B),B=function(p,m){if(m[p])return m[p];for(var U=cn[p],b=0;b<U.length;++b)if(m[U[b]])return m[U[b]];throw new Error("Could not find a matching font-style for "+p)}(u.style,B),!(B=function(p,m){if(m[p])return m[p];if(400===p&&m[500])return m[500];if(500===p&&m[400])return m[400];var b=No(m,Ho,jc[p],p<400?-1:1);if(!b)throw new Error("Could not find a matching font-weight for value "+p);return b}(u.weight,B)))throw new Error("Failed to resolve a font for the rule '"+Do(u)+"'.");return B}(function GA(EA,z){if(null===VA){var le=(YA=EA.getFontList(),NA=[],Object.keys(YA).forEach(function(RA){YA[RA].forEach(function(zA){var jA=null;switch(zA){case"bold":jA={family:RA,weight:"bold"};break;case"italic":jA={family:RA,style:"italic"};break;case"bolditalic":jA={family:RA,weight:"bold",style:"italic"};break;case"":case"normal":jA={family:RA}}null!==jA&&(jA.ref={name:RA,style:zA},NA.push(jA))})}),NA);VA=function(YA){for(var NA={},RA=0;RA<YA.length;++RA){var zA=Ss(YA[RA]),jA=zA.family,ZA=zA.stretch,ce=zA.style,Be=zA.weight;NA[jA]=NA[jA]||{},NA[jA][ZA]=NA[jA][ZA]||{},NA[jA][ZA][ce]=NA[jA][ZA][ce]||{},NA[jA][ZA][ce][Be]=zA}return NA}(le.concat(z))}var YA,NA;return VA}(this.pdf,this.fontFaces),jA.map(function(ie){return{family:ie,stretch:"normal",weight:YA,style:le}}));this.pdf.setFont(ZA.ref.name,ZA.ref.style)}else{var ce="";("bold"===YA||parseInt(YA,10)>=700||"bold"===le)&&(ce="bold"),"italic"===le&&(ce+="italic"),0===ce.length&&(ce="normal");for(var Be="",de={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"},ve=0;ve<jA.length;ve++){if(void 0!==this.pdf.internal.getFont(jA[ve],ce,{noFallback:!0,disableWarning:!0})){Be=jA[ve];break}if("bolditalic"===ce&&void 0!==this.pdf.internal.getFont(jA[ve],"bold",{noFallback:!0,disableWarning:!0}))Be=jA[ve],ce="bold";else if(void 0!==this.pdf.internal.getFont(jA[ve],"normal",{noFallback:!0,disableWarning:!0})){Be=jA[ve],ce="normal";break}}if(""===Be)for(var Te=0;Te<jA.length;Te++)if(de[jA[Te]]){Be=de[jA[Te]];break}this.pdf.setFont(Be=""===Be?"Times":Be,ce)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(EA){this.ctx.globalCompositeOperation=EA}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(EA){this.ctx.globalAlpha=EA}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(EA){this.ctx.lineDashOffset=EA,qA.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(EA){this.ctx.lineDash=EA,qA.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(EA){this.ctx.ignoreClearRect=!!EA}})};b.prototype.setLineDash=function(x){this.lineDash=x},b.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},b.prototype.fill=function(){cA.call(this,"fill",!1)},b.prototype.stroke=function(){cA.call(this,"stroke",!1)},b.prototype.beginPath=function(){this.path=[{type:"begin"}]},b.prototype.moveTo=function(x,G){if(isNaN(x)||isNaN(G))throw _e.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var q=this.ctx.transform.applyToPoint(new B(x,G));this.path.push({type:"mt",x:q.x,y:q.y}),this.ctx.lastPoint=new B(x,G)},b.prototype.closePath=function(){var x=new B(0,0),G=0;for(G=this.path.length-1;-1!==G;G--)if("begin"===this.path[G].type&&"object"===Se(this.path[G+1])&&"number"==typeof this.path[G+1].x){x=new B(this.path[G+1].x,this.path[G+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new B(x.x,x.y)},b.prototype.lineTo=function(x,G){if(isNaN(x)||isNaN(G))throw _e.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var q=this.ctx.transform.applyToPoint(new B(x,G));this.path.push({type:"lt",x:q.x,y:q.y}),this.ctx.lastPoint=new B(q.x,q.y)},b.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),cA.call(this,null,!0)},b.prototype.quadraticCurveTo=function(x,G,q,AA){if(isNaN(q)||isNaN(AA)||isNaN(x)||isNaN(G))throw _e.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var sA=this.ctx.transform.applyToPoint(new B(q,AA)),BA=this.ctx.transform.applyToPoint(new B(x,G));this.path.push({type:"qct",x1:BA.x,y1:BA.y,x:sA.x,y:sA.y}),this.ctx.lastPoint=new B(sA.x,sA.y)},b.prototype.bezierCurveTo=function(x,G,q,AA,sA,BA){if(isNaN(sA)||isNaN(BA)||isNaN(x)||isNaN(G)||isNaN(q)||isNaN(AA))throw _e.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var pA=this.ctx.transform.applyToPoint(new B(sA,BA)),wA=this.ctx.transform.applyToPoint(new B(x,G)),DA=this.ctx.transform.applyToPoint(new B(q,AA));this.path.push({type:"bct",x1:wA.x,y1:wA.y,x2:DA.x,y2:DA.y,x:pA.x,y:pA.y}),this.ctx.lastPoint=new B(pA.x,pA.y)},b.prototype.arc=function(x,G,q,AA,sA,BA){if(isNaN(x)||isNaN(G)||isNaN(q)||isNaN(AA)||isNaN(sA))throw _e.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(BA=!!BA,!this.ctx.transform.isIdentity){var pA=this.ctx.transform.applyToPoint(new B(x,G));x=pA.x,G=pA.y;var wA=this.ctx.transform.applyToPoint(new B(0,q)),DA=this.ctx.transform.applyToPoint(new B(0,0));q=Math.sqrt(Math.pow(wA.x-DA.x,2)+Math.pow(wA.y-DA.y,2))}Math.abs(sA-AA)>=2*Math.PI&&(AA=0,sA=2*Math.PI),this.path.push({type:"arc",x,y:G,radius:q,startAngle:AA,endAngle:sA,counterclockwise:BA})},b.prototype.arcTo=function(x,G,q,AA,sA){throw new Error("arcTo not implemented.")},b.prototype.rect=function(x,G,q,AA){if(isNaN(x)||isNaN(G)||isNaN(q)||isNaN(AA))throw _e.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,G),this.lineTo(x+q,G),this.lineTo(x+q,G+AA),this.lineTo(x,G+AA),this.lineTo(x,G),this.lineTo(x+q,G),this.lineTo(x,G)},b.prototype.fillRect=function(x,G,q,AA){if(isNaN(x)||isNaN(G)||isNaN(q)||isNaN(AA))throw _e.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!v.call(this)){var sA={};"butt"!==this.lineCap&&(sA.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(sA.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(x,G,q,AA),this.fill(),sA.hasOwnProperty("lineCap")&&(this.lineCap=sA.lineCap),sA.hasOwnProperty("lineJoin")&&(this.lineJoin=sA.lineJoin)}},b.prototype.strokeRect=function(x,G,q,AA){if(isNaN(x)||isNaN(G)||isNaN(q)||isNaN(AA))throw _e.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");K.call(this)||(this.beginPath(),this.rect(x,G,q,AA),this.stroke())},b.prototype.clearRect=function(x,G,q,AA){if(isNaN(x)||isNaN(G)||isNaN(q)||isNaN(AA))throw _e.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(x,G,q,AA))},b.prototype.save=function(x){x="boolean"!=typeof x||x;for(var G=this.pdf.internal.getCurrentPageInfo().pageNumber,q=0;q<this.pdf.internal.getNumberOfPages();q++)this.pdf.setPage(q+1),this.pdf.internal.out("q");if(this.pdf.setPage(G),x){this.ctx.fontSize=this.pdf.internal.getFontSize();var AA=new U(this.ctx);this.ctxStack.push(this.ctx),this.ctx=AA}},b.prototype.restore=function(x){x="boolean"!=typeof x||x;for(var G=this.pdf.internal.getCurrentPageInfo().pageNumber,q=0;q<this.pdf.internal.getNumberOfPages();q++)this.pdf.setPage(q+1),this.pdf.internal.out("Q");this.pdf.setPage(G),x&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},b.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var H=function(x){var G,q,AA,sA;if(!0===x.isCanvasGradient&&(x=x.getColor()),!x)return{r:0,g:0,b:0,a:0,style:x};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(x))G=0,q=0,AA=0,sA=0;else{var BA=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(x);if(null!==BA)G=parseInt(BA[1]),q=parseInt(BA[2]),AA=parseInt(BA[3]),sA=1;else if(null!==(BA=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(x)))G=parseInt(BA[1]),q=parseInt(BA[2]),AA=parseInt(BA[3]),sA=parseFloat(BA[4]);else{if(sA=1,"string"==typeof x&&"#"!==x.charAt(0)){var pA=new _c(x);x=pA.ok?pA.toHex():"#000000"}4===x.length?(G=x.substring(1,2),G+=G,q=x.substring(2,3),q+=q,AA=x.substring(3,4),AA+=AA):(G=x.substring(1,3),q=x.substring(3,5),AA=x.substring(5,7)),G=parseInt(G,16),q=parseInt(q,16),AA=parseInt(AA,16)}}return{r:G,g:q,b:AA,a:sA,style:x}},v=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},K=function(){return!(!this.ctx.isStrokeTransparent&&0!=this.globalAlpha)};b.prototype.fillText=function(x,G,q,AA){if(isNaN(G)||isNaN(q)||"string"!=typeof x)throw _e.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(AA=isNaN(AA)?void 0:AA,!v.call(this)){var sA=hA(this.ctx.transform.rotation);M.call(this,{text:x,x:G,y:q,scale:this.ctx.transform.scaleX,angle:sA,align:this.textAlign,maxWidth:AA})}},b.prototype.strokeText=function(x,G,q,AA){if(isNaN(G)||isNaN(q)||"string"!=typeof x)throw _e.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!K.call(this)){AA=isNaN(AA)?void 0:AA;var sA=hA(this.ctx.transform.rotation);M.call(this,{text:x,x:G,y:q,scale:this.ctx.transform.scaleX,renderingMode:"stroke",angle:sA,align:this.textAlign,maxWidth:AA})}},b.prototype.measureText=function(x){if("string"!=typeof x)throw _e.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var G=this.pdf,q=this.pdf.internal.scaleFactor,AA=G.internal.getFontSize(),sA=G.getStringUnitWidth(x)*AA/G.internal.scaleFactor;return new function(pA){var wA=(pA=pA||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return wA}}),this}({width:sA*=Math.round(96*q/72*1e4)/1e4})},b.prototype.scale=function(x,G){if(isNaN(x)||isNaN(G))throw _e.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var q=new p(x,0,0,G,0,0);this.ctx.transform=this.ctx.transform.multiply(q)},b.prototype.rotate=function(x){if(isNaN(x))throw _e.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var G=new p(Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0);this.ctx.transform=this.ctx.transform.multiply(G)},b.prototype.translate=function(x,G){if(isNaN(x)||isNaN(G))throw _e.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var q=new p(1,0,0,1,x,G);this.ctx.transform=this.ctx.transform.multiply(q)},b.prototype.transform=function(x,G,q,AA,sA,BA){if(isNaN(x)||isNaN(G)||isNaN(q)||isNaN(AA)||isNaN(sA)||isNaN(BA))throw _e.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var pA=new p(x,G,q,AA,sA,BA);this.ctx.transform=this.ctx.transform.multiply(pA)},b.prototype.setTransform=function(x,G,q,AA,sA,BA){x=isNaN(x)?1:x,G=isNaN(G)?0:G,q=isNaN(q)?0:q,AA=isNaN(AA)?1:AA,sA=isNaN(sA)?0:sA,BA=isNaN(BA)?0:BA,this.ctx.transform=new p(x,G,q,AA,sA,BA)};var T=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};b.prototype.drawImage=function(x,G,q,AA,sA,BA,pA,wA,DA){var _A=this.pdf.getImageProperties(x),VA=1,GA=1,re=1,EA=1;void 0!==AA&&void 0!==wA&&(re=wA/AA,EA=DA/sA,VA=_A.width/AA*wA/AA,GA=_A.height/sA*DA/sA),void 0===BA&&(BA=G,pA=q,G=0,q=0),void 0!==AA&&void 0===wA&&(wA=AA,DA=sA),void 0===AA&&void 0===wA&&(wA=_A.width,DA=_A.height);for(var z,le=this.ctx.transform.decompose(),YA=hA(le.rotate.shx),NA=new p,RA=(NA=(NA=(NA=NA.multiply(le.translate)).multiply(le.skew)).multiply(le.scale)).applyToRectangle(new g(BA-G*re,pA-q*EA,AA*VA,sA*GA)),zA=R.call(this,RA),jA=[],ZA=0;ZA<zA.length;ZA+=1)-1===jA.indexOf(zA[ZA])&&jA.push(zA[ZA]);if(rA(jA),this.autoPaging)for(var ce=jA[0],Be=jA[jA.length-1],de=ce;de<Be+1;de++){this.pdf.setPage(de);var ve=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Te=1===de?this.posY+this.margin[0]:this.margin[0],pe=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],WA=1===de?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(de-2)*pe;if(0!==this.ctx.clip_path.length){var Ht=this.path;z=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=j(z,this.posX+this.margin[3],-WA+Te+this.ctx.prevPageLastElemOffset),vA.call(this,"fill",!0),this.path=Ht}var Ie=JSON.parse(JSON.stringify(RA));Ie=j([Ie],this.posX+this.margin[3],-WA+Te+this.ctx.prevPageLastElemOffset)[0];var Hr=(de>ce||de<Be)&&T.call(this);Hr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ve,pe,null).clip().discardPath()),this.pdf.addImage(x,"JPEG",Ie.x,Ie.y,Ie.w,Ie.h,null,null,YA),Hr&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(x,"JPEG",RA.x,RA.y,RA.w,RA.h,null,null,YA)};var R=function(x,G,q){var AA=[];G=G||this.pdf.internal.pageSize.width,q=q||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var sA=this.posY+this.ctx.prevPageLastElemOffset;switch(x.type){default:case"mt":case"lt":AA.push(Math.floor((x.y+sA)/q)+1);break;case"arc":AA.push(Math.floor((x.y+sA-x.radius)/q)+1),AA.push(Math.floor((x.y+sA+x.radius)/q)+1);break;case"qct":var BA=UA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x,x.y);AA.push(Math.floor((BA.y+sA)/q)+1),AA.push(Math.floor((BA.y+BA.h+sA)/q)+1);break;case"bct":var pA=IA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x2,x.y2,x.x,x.y);AA.push(Math.floor((pA.y+sA)/q)+1),AA.push(Math.floor((pA.y+pA.h+sA)/q)+1);break;case"rect":AA.push(Math.floor((x.y+sA)/q)+1),AA.push(Math.floor((x.y+x.h+sA)/q)+1)}for(var wA=0;wA<AA.length;wA+=1)for(;this.pdf.internal.getNumberOfPages()<AA[wA];)N.call(this);return AA},N=function(){var x=this.fillStyle,G=this.strokeStyle,q=this.font,AA=this.lineCap,sA=this.lineWidth,BA=this.lineJoin;this.pdf.addPage(),this.fillStyle=x,this.strokeStyle=G,this.font=q,this.lineCap=AA,this.lineWidth=sA,this.lineJoin=BA},j=function(x,G,q){for(var AA=0;AA<x.length;AA++)switch(x[AA].type){case"bct":x[AA].x2+=G,x[AA].y2+=q;case"qct":x[AA].x1+=G,x[AA].y1+=q;default:x[AA].x+=G,x[AA].y+=q}return x},rA=function(x){return x.sort(function(G,q){return G-q})},cA=function(x,G){for(var q,AA,sA=this.fillStyle,BA=this.strokeStyle,pA=this.lineCap,wA=this.lineWidth,DA=Math.abs(wA*this.ctx.transform.scaleX),_A=this.lineJoin,VA=JSON.parse(JSON.stringify(this.path)),GA=JSON.parse(JSON.stringify(this.path)),re=[],EA=0;EA<GA.length;EA++)if(void 0!==GA[EA].x)for(var z=R.call(this,GA[EA]),le=0;le<z.length;le+=1)-1===re.indexOf(z[le])&&re.push(z[le]);for(var YA=0;YA<re.length;YA++)for(;this.pdf.internal.getNumberOfPages()<re[YA];)N.call(this);if(rA(re),this.autoPaging)for(var NA=re[0],RA=re[re.length-1],zA=NA;zA<RA+1;zA++){this.pdf.setPage(zA),this.fillStyle=sA,this.strokeStyle=BA,this.lineCap=pA,this.lineWidth=DA,this.lineJoin=_A;var jA=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ZA=1===zA?this.posY+this.margin[0]:this.margin[0],Be=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],de=1===zA?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(zA-2)*Be;if(0!==this.ctx.clip_path.length){var ve=this.path;q=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=j(q,this.posX+this.margin[3],-de+ZA+this.ctx.prevPageLastElemOffset),vA.call(this,x,!0),this.path=ve}if(AA=JSON.parse(JSON.stringify(VA)),this.path=j(AA,this.posX+this.margin[3],-de+ZA+this.ctx.prevPageLastElemOffset),!1===G||0===zA){var Te=(zA>NA||zA<RA)&&T.call(this);Te&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],jA,Be,null).clip().discardPath()),vA.call(this,x,G),Te&&this.pdf.restoreGraphicsState()}this.lineWidth=wA}else this.lineWidth=DA,vA.call(this,x,G),this.lineWidth=wA;this.path=VA},vA=function(x,G){if(("stroke"!==x||G||!K.call(this))&&("stroke"===x||G||!v.call(this))){for(var q,AA,sA=[],BA=this.path,pA=0;pA<BA.length;pA++){var wA=BA[pA];switch(wA.type){case"begin":sA.push({begin:!0});break;case"close":sA.push({close:!0});break;case"mt":sA.push({start:wA,deltas:[],abs:[]});break;case"lt":var DA=sA.length;if(BA[pA-1]&&!isNaN(BA[pA-1].x)&&(q=[wA.x-BA[pA-1].x,wA.y-BA[pA-1].y],DA>0))for(;DA>=0;DA--)if(!0!==sA[DA-1].close&&!0!==sA[DA-1].begin){sA[DA-1].deltas.push(q),sA[DA-1].abs.push(wA);break}break;case"bct":sA[sA.length-1].deltas.push(q=[wA.x1-BA[pA-1].x,wA.y1-BA[pA-1].y,wA.x2-BA[pA-1].x,wA.y2-BA[pA-1].y,wA.x-BA[pA-1].x,wA.y-BA[pA-1].y]);break;case"qct":sA[sA.length-1].deltas.push(q=[BA[pA-1].x+2/3*(wA.x1-BA[pA-1].x)-BA[pA-1].x,BA[pA-1].y+2/3*(wA.y1-BA[pA-1].y)-BA[pA-1].y,wA.x+2/3*(wA.x1-wA.x)-BA[pA-1].x,wA.y+2/3*(wA.y1-wA.y)-BA[pA-1].y,wA.x-BA[pA-1].x,wA.y-BA[pA-1].y]);break;case"arc":sA.push({deltas:[],abs:[],arc:!0}),Array.isArray(sA[sA.length-1].abs)&&sA[sA.length-1].abs.push(wA)}}AA=G?null:"stroke"===x?"stroke":"fill";for(var le=!1,YA=0;YA<sA.length;YA++)if(sA[YA].arc)for(var NA=sA[YA].abs,RA=0;RA<NA.length;RA++){var zA=NA[RA];"arc"===zA.type?J.call(this,zA.x,zA.y,zA.radius,zA.startAngle,zA.endAngle,zA.counterclockwise,void 0,G,!le):tA.call(this,zA.x,zA.y),le=!0}else!0===sA[YA].close?(this.pdf.internal.out("h"),le=!1):!0!==sA[YA].begin&&(X.call(this,sA[YA].deltas,sA[YA].start.x,sA[YA].start.y),le=!0);AA&&fA.call(this,AA),G&&bA.call(this)}},SA=function(x){var G=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,q=G*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return x-q;case"top":return x+G-q;case"hanging":return x+G-2*q;case"middle":return x+G/2-q;default:return x}},lA=function(x){return x+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};b.prototype.createLinearGradient=function(){var x=function(){};return x.colorStops=[],x.addColorStop=function(G,q){this.colorStops.push([G,q])},x.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},x.isCanvasGradient=!0,x},b.prototype.createPattern=function(){return this.createLinearGradient()},b.prototype.createRadialGradient=function(){return this.createLinearGradient()};var J=function(x,G,q,AA,sA,BA,pA,wA,DA){for(var _A=dA.call(this,q,AA,sA,BA),VA=0;VA<_A.length;VA++){var GA=_A[VA];0===VA&&(DA?D.call(this,GA.x1+x,GA.y1+G):tA.call(this,GA.x1+x,GA.y1+G)),mA.call(this,x,G,GA.x2,GA.y2,GA.x3,GA.y3,GA.x4,GA.y4)}wA?bA.call(this):fA.call(this,pA)},fA=function(x){switch(x){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},bA=function(){this.pdf.clip(),this.pdf.discardPath()},D=function(x,G){this.pdf.internal.out(t(x)+" "+o(G)+" m")},M=function(x){var G;switch(x.align){case"right":case"end":G="right";break;case"center":G="center";break;default:G="left"}var q=this.pdf.getTextDimensions(x.text),AA=SA.call(this,x.y),sA=lA.call(this,AA)-q.h,BA=this.ctx.transform.applyToPoint(new B(x.x,AA)),pA=this.ctx.transform.decompose(),wA=new p;wA=(wA=(wA=wA.multiply(pA.translate)).multiply(pA.skew)).multiply(pA.scale);for(var DA,_A,VA,GA=this.ctx.transform.applyToRectangle(new g(x.x,AA,q.w,q.h)),re=wA.applyToRectangle(new g(x.x,sA,q.w,q.h)),EA=R.call(this,re),z=[],le=0;le<EA.length;le+=1)-1===z.indexOf(EA[le])&&z.push(EA[le]);if(rA(z),this.autoPaging)for(var YA=z[0],NA=z[z.length-1],RA=YA;RA<NA+1;RA++){this.pdf.setPage(RA);var zA=1===RA?this.posY+this.margin[0]:this.margin[0],ZA=this.pdf.internal.pageSize.height-this.margin[2],ce=ZA-this.margin[0],Be=this.pdf.internal.pageSize.width-this.margin[1],de=Be-this.margin[3],ve=1===RA?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(RA-2)*ce;if(0!==this.ctx.clip_path.length){var Te=this.path;DA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=j(DA,this.posX+this.margin[3],-1*ve+zA),vA.call(this,"fill",!0),this.path=Te}var ie=j([JSON.parse(JSON.stringify(re))],this.posX+this.margin[3],-ve+zA+this.ctx.prevPageLastElemOffset)[0];x.scale>=.01&&(_A=this.pdf.internal.getFontSize(),this.pdf.setFontSize(_A*x.scale),this.lineWidth=(VA=this.lineWidth)*x.scale);var pe="text"!==this.autoPaging;if(pe||ie.y+ie.h<=ZA){if(pe||ie.y>=zA&&ie.x<=Be){var WA=pe?x.text:this.pdf.splitTextToSize(x.text,x.maxWidth||Be-ie.x)[0],Ht=j([JSON.parse(JSON.stringify(GA))],this.posX+this.margin[3],-ve+zA+this.ctx.prevPageLastElemOffset)[0],Ie=pe&&(RA>YA||RA<NA)&&T.call(this);Ie&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],de,ce,null).clip().discardPath()),this.pdf.text(WA,Ht.x,Ht.y,{angle:x.angle,align:G,renderingMode:x.renderingMode}),Ie&&this.pdf.restoreGraphicsState()}}else ie.y<ZA&&(this.ctx.prevPageLastElemOffset+=ZA-ie.y);x.scale>=.01&&(this.pdf.setFontSize(_A),this.lineWidth=VA)}else x.scale>=.01&&(_A=this.pdf.internal.getFontSize(),this.pdf.setFontSize(_A*x.scale),this.lineWidth=(VA=this.lineWidth)*x.scale),this.pdf.text(x.text,BA.x+this.posX,BA.y+this.posY,{angle:x.angle,align:G,renderingMode:x.renderingMode,maxWidth:x.maxWidth}),x.scale>=.01&&(this.pdf.setFontSize(_A),this.lineWidth=VA)},tA=function(x,G,q,AA){AA=AA||0,this.pdf.internal.out(t(x+(q=q||0))+" "+o(G+AA)+" l")},X=function(x,G,q){return this.pdf.lines(x,G,q,null,null)},mA=function(x,G,q,AA,sA,BA,pA,wA){this.pdf.internal.out([A(l(q+x)),A(u(AA+G)),A(l(sA+x)),A(u(BA+G)),A(l(pA+x)),A(u(wA+G)),"c"].join(" "))},dA=function(x,G,q,AA){for(var sA=2*Math.PI,BA=Math.PI/2;G>q;)G-=sA;var pA=Math.abs(q-G);pA<sA&&AA&&(pA=sA-pA);for(var wA=[],DA=AA?-1:1,_A=G;pA>1e-5;){var VA=_A+DA*Math.min(pA,BA);wA.push(yA.call(this,x,_A,VA)),pA-=Math.abs(VA-_A),_A=VA}return wA},yA=function(x,G,q){var AA=(q-G)/2,sA=x*Math.cos(AA),BA=x*Math.sin(AA),pA=sA,wA=-BA,DA=pA*pA+wA*wA,_A=DA+pA*sA+wA*BA,VA=4/3*(Math.sqrt(2*DA*_A)-_A)/(pA*BA-wA*sA),GA=pA-VA*wA,re=wA+VA*pA,EA=GA,z=-re,le=AA+G,YA=Math.cos(le),NA=Math.sin(le);return{x1:x*Math.cos(G),y1:x*Math.sin(G),x2:GA*YA-re*NA,y2:GA*NA+re*YA,x3:EA*YA-z*NA,y3:EA*NA+z*YA,x4:x*Math.cos(q),y4:x*Math.sin(q)}},hA=function(x){return 180*x/Math.PI},UA=function(x,G,q,AA,sA,BA){var pA=x+.5*(q-x),wA=G+.5*(AA-G),DA=sA+.5*(q-sA),_A=BA+.5*(AA-BA),VA=Math.min(x,sA,pA,DA),GA=Math.max(x,sA,pA,DA),re=Math.min(G,BA,wA,_A),EA=Math.max(G,BA,wA,_A);return new g(VA,re,GA-VA,EA-re)},IA=function(x,G,q,AA,sA,BA,pA,wA){var DA,_A,VA,GA,re,EA,z,le,YA,NA,RA,zA,jA,ZA,ce=q-x,Be=AA-G,de=sA-q,ve=BA-AA,Te=pA-sA,ie=wA-BA;for(_A=0;_A<41;_A++)YA=(z=(VA=x+(DA=_A/40)*ce)+DA*((re=q+DA*de)-VA))+DA*(re+DA*(sA+DA*Te-re)-z),NA=(le=(GA=G+DA*Be)+DA*((EA=AA+DA*ve)-GA))+DA*(EA+DA*(BA+DA*ie-EA)-le),0==_A?(RA=YA,zA=NA,jA=YA,ZA=NA):(RA=Math.min(RA,YA),zA=Math.min(zA,NA),jA=Math.max(jA,YA),ZA=Math.max(ZA,NA));return new g(Math.round(RA),Math.round(zA),Math.round(jA-RA),Math.round(ZA-zA))},qA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var q=JSON.stringify({lineDash:this.ctx.lineDash,lineDashOffset:this.ctx.lineDashOffset});this.prevLineDash!==q&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=q)}}})(Ae.API),
/**
       * @license
       * jsPDF filters PlugIn
       * Copyright (c) 2014 Aras Abbasi
       *
       * Licensed under the MIT License.
       * http://opensource.org/licenses/mit-license
       */
function(r){var A=function(u){var B,g,p,m,U,b,H,v,K,T;for(/[^\x00-\xFF]/.test(u),g=[],p=0,m=(u+=B="\0\0\0\0".slice(u.length%4||4)).length;m>p;p+=4)0!==(U=(u.charCodeAt(p)<<24)+(u.charCodeAt(p+1)<<16)+(u.charCodeAt(p+2)<<8)+u.charCodeAt(p+3))?(b=(U=((U=((U=((U=(U-(T=U%85))/85)-(K=U%85))/85)-(v=U%85))/85)-(H=U%85))/85)%85,g.push(b+33,H+33,v+33,K+33,T+33)):g.push(122);return function(R,N){for(var j=N;j>0;j--)R.pop()}(g,B.length),String.fromCharCode.apply(String,g)+"~>"},t=function(u){var B,g,p,m,U,b=String,H="length",v=255,K="charCodeAt",T="slice",R="replace";for(u[T](-2),u=u[T](0,-2)[R](/\s/g,"")[R]("z","!!!!!"),p=[],m=0,U=(u+=B="uuuuu"[T](u[H]%5||5))[H];U>m;m+=5)g=52200625*(u[K](m)-33)+614125*(u[K](m+1)-33)+7225*(u[K](m+2)-33)+85*(u[K](m+3)-33)+(u[K](m+4)-33),p.push(v&g>>24,v&g>>16,v&g>>8,v&g);return function(N,j){for(var rA=j;rA>0;rA--)N.pop()}(p,B[H]),b.fromCharCode.apply(b,p)},o=function(u){var B=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(u=u.replace(/\s/g,"")).indexOf(">")&&(u=u.substr(0,u.indexOf(">"))),u.length%2&&(u+="0"),!1===B.test(u))return"";for(var g="",p=0;p<u.length;p+=2)g+=String.fromCharCode("0x"+(u[p]+u[p+1]));return g},l=function(u){for(var B=new Uint8Array(u.length),g=u.length;g--;)B[g]=u.charCodeAt(g);return(B=_a(B)).reduce(function(p,m){return p+String.fromCharCode(m)},"")};r.processDataByFilters=function(u,B){var g=0,p=u||"",m=[];for("string"==typeof(B=B||[])&&(B=[B]),g=0;g<B.length;g+=1)switch(B[g]){case"ASCII85Decode":case"/ASCII85Decode":p=t(p),m.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":p=A(p),m.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":p=o(p),m.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":p=p.split("").map(function(U){return("0"+U.charCodeAt().toString(16)).slice(-2)}).join("")+">",m.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":p=l(p),m.push("/FlateDecode");break;default:throw new Error('The filter: "'+B[g]+'" is not implemented')}return{data:p,reverseChain:m.reverse().join(" ")}}}(Ae.API),
/**
       * @license
       * jsPDF fileloading PlugIn
       * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
       *
       * Licensed under the MIT License.
       * http://opensource.org/licenses/mit-license
       */
function(r){r.loadFile=function(A,t,o){return function(l,u,B){u=!1!==u,B="function"==typeof B?B:function(){};var g=void 0;try{g=function(p,m,U){var b=new XMLHttpRequest,H=0,v=function(K){var T=K.length,R=[],N=String.fromCharCode;for(H=0;H<T;H+=1)R.push(N(255&K.charCodeAt(H)));return R.join("")};if(b.open("GET",p,!m),b.overrideMimeType("text/plain; charset=x-user-defined"),!1===m&&(b.onload=function(){U(200===b.status?v(this.responseText):void 0)}),b.send(null),m&&200===b.status)return v(b.responseText)}(l,u,B)}catch{}return g}(A,t,o)},r.loadImageFile=r.loadFile}(Ae.API),function(r){function A(){return(te.html2canvas?Promise.resolve(te.html2canvas):Promise.resolve().then(At.t.bind(At,46308,23))).catch(function(B){return Promise.reject(new Error("Could not load html2canvas: "+B))}).then(function(B){return B.default?B.default:B})}function t(){return(te.DOMPurify?Promise.resolve(te.DOMPurify):At.e("node_modules_dompurify_dist_purify_js").then(At.t.bind(At,45028,23))).catch(function(B){return Promise.reject(new Error("Could not load dompurify: "+B))}).then(function(B){return B.default?B.default:B})}var o=function(B){var g=Se(B);return"undefined"===g?"undefined":"string"===g||B instanceof String?"string":"number"===g||B instanceof Number?"number":"function"===g||B instanceof Function?"function":B&&B.constructor===Array?"array":B&&1===B.nodeType?"element":"object"===g?"object":"unknown"},l=function(B,g){var p=document.createElement(B);for(var m in g.className&&(p.className=g.className),g.innerHTML&&g.dompurify&&(p.innerHTML=g.dompurify.sanitize(g.innerHTML)),g.style)p.style[m]=g.style[m];return p},u=function B(g){var p=Object.assign(B.convert(Promise.resolve()),JSON.parse(JSON.stringify(B.template))),m=B.convert(Promise.resolve(),p);return(m=m.setProgress(1,B,1,[B])).set(g)};(u.prototype=Object.create(Promise.prototype)).constructor=u,u.convert=function(B,g){return B.__proto__=g||u.prototype,B},u.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"}},u.prototype.from=function(B,g){return this.then(function(){switch(g=g||function(p){switch(o(p)){case"string":return"string";case"element":return"canvas"===p.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(B)){case"string":return this.then(t).then(function(p){return this.set({src:l("div",{innerHTML:B,dompurify:p})})});case"element":return this.set({src:B});case"canvas":return this.set({canvas:B});case"img":return this.set({img:B});default:return this.error("Unknown source type.")}})},u.prototype.to=function(B){switch(B){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.")}},u.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 B={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||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},g=function p(m,U){for(var b=3===m.nodeType?document.createTextNode(m.nodeValue):m.cloneNode(!1),H=m.firstChild;H;H=H.nextSibling)!0!==U&&1===H.nodeType&&"SCRIPT"===H.nodeName||b.appendChild(p(H,U));return 1===m.nodeType&&("CANVAS"===m.nodeName?(b.width=m.width,b.height=m.height,b.getContext("2d").drawImage(m,0,0)):"TEXTAREA"!==m.nodeName&&"SELECT"!==m.nodeName||(b.value=m.value),b.addEventListener("load",function(){b.scrollTop=m.scrollTop,b.scrollLeft=m.scrollLeft},!0)),b}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===g.tagName&&(B.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=l("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=l("div",{className:"html2pdf__container",style:B}),this.prop.container.appendChild(g),this.prop.container.firstChild.appendChild(l("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"})},u.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(A).then(function(g){var p=Object.assign({},this.opt.html2canvas);return delete p.onrendered,g(this.prop.container,p)}).then(function(g){(this.opt.html2canvas.onrendered||function(){})(g),this.prop.canvas=g,document.body.removeChild(this.prop.overlay)})},u.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(A).then(function(g){var p=this.opt.jsPDF,m=this.opt.fontFaces,U="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,b=Object.assign({async:!0,allowTaint:!0,scale:U,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 b.onrendered,p.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,p.context2d.posX=this.opt.x,p.context2d.posY=this.opt.y,p.context2d.margin=this.opt.margin,p.context2d.fontFaces=m,m)for(var H=0;H<m.length;++H){var v=m[H],K=v.src.find(function(T){return"truetype"===T.format});K&&p.addFont(K.url,v.ref.name,v.ref.style)}return b.windowHeight=b.windowHeight||0,b.windowHeight=0==b.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):b.windowHeight,p.context2d.save(!0),g(this.prop.container,b)}).then(function(g){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(g),this.prop.canvas=g,document.body.removeChild(this.prop.overlay)})},u.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var B=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=B})},u.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},u.prototype.output=function(B,g,p){return"img"===(p=p||"pdf").toLowerCase()||"image"===p.toLowerCase()?this.outputImg(B,g):this.outputPdf(B,g)},u.prototype.outputPdf=function(B,g){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(B,g)})},u.prototype.outputImg=function(B){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(B){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 "'+B+'" is not supported.'}})},u.prototype.save=function(B){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(B?{filename:B}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},u.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},u.prototype.set=function(B){if("object"!==o(B))return this;var g=Object.keys(B||{}).map(function(p){if(p in u.template.prop)return function(){this.prop[p]=B[p]};switch(p){case"margin":return this.setMargin.bind(this,B.margin);case"jsPDF":return function(){return this.opt.jsPDF=B.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,B.pageSize);default:return function(){this.opt[p]=B[p]}}},this);return this.then(function(){return this.thenList(g)})},u.prototype.get=function(B,g){return this.then(function(){var p=B in u.template.prop?this.prop[B]:this.opt[B];return g?g(p):p})},u.prototype.setMargin=function(B){return this.then(function(){switch(o(B)){case"number":B=[B,B,B,B];case"array":if(2===B.length&&(B=[B[0],B[1],B[0],B[1]]),4===B.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=B}).then(this.setPageSize)},u.prototype.setPageSize=function(B){function g(p,m){return Math.floor(p*m/72*96)}return this.then(function(){(B=B||Ae.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(B.inner={width:B.width-this.opt.margin[1]-this.opt.margin[3],height:B.height-this.opt.margin[0]-this.opt.margin[2]},B.inner.px={width:g(B.inner.width,B.k),height:g(B.inner.height,B.k)},B.inner.ratio=B.inner.height/B.inner.width),this.prop.pageSize=B})},u.prototype.setProgress=function(B,g,p,m){return null!=B&&(this.progress.val=B),null!=g&&(this.progress.state=g),null!=p&&(this.progress.n=p),null!=m&&(this.progress.stack=m),this.progress.ratio=this.progress.val/this.progress.state,this},u.prototype.updateProgress=function(B,g,p,m){return this.setProgress(B?this.progress.val+B:null,g||null,p?this.progress.n+p:null,m?this.progress.stack.concat(m):null)},u.prototype.then=function(B,g){var p=this;return this.thenCore(B,g,function(m,U){return p.updateProgress(null,null,1,[m]),Promise.prototype.then.call(this,function(b){return p.updateProgress(null,m),b}).then(m,U).then(function(b){return p.updateProgress(1),b})})},u.prototype.thenCore=function(B,g,p){p=p||Promise.prototype.then,B&&(B=B.bind(this)),g&&(g=g.bind(this));var m=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:u.convert(Object.assign({},this),Promise.prototype),U=p.call(m,B,g);return u.convert(U,this.__proto__)},u.prototype.thenExternal=function(B,g){return Promise.prototype.then.call(this,B,g)},u.prototype.thenList=function(B){var g=this;return B.forEach(function(p){g=g.thenCore(p)}),g},u.prototype.catch=function(B){B&&(B=B.bind(this));var g=Promise.prototype.catch.call(this,B);return u.convert(g,this)},u.prototype.catchExternal=function(B){return Promise.prototype.catch.call(this,B)},u.prototype.error=function(B){return this.then(function(){throw new Error(B)})},u.prototype.using=u.prototype.set,u.prototype.saveAs=u.prototype.save,u.prototype.export=u.prototype.output,u.prototype.run=u.prototype.then,Ae.getPageSize=function(B,g,p){if("object"===Se(B)){var m=B;B=m.orientation,g=m.unit||g,p=m.format||p}g=g||"mm",p=p||"a4",B=(""+(B||"P")).toLowerCase();var U,b=(""+p).toLowerCase(),H={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(g){case"pt":U=1;break;case"mm":U=72/25.4;break;case"cm":U=72/2.54;break;case"in":U=72;break;case"px":U=.75;break;case"pc":case"em":U=12;break;case"ex":U=6;break;default:throw"Invalid unit: "+g}var v,K=0,T=0;if(H.hasOwnProperty(b))K=H[b][1]/U,T=H[b][0]/U;else try{K=p[1],T=p[0]}catch{throw new Error("Invalid format: "+p)}if("p"===B||"portrait"===B)B="p",T>K&&(v=T,T=K,K=v);else{if("l"!==B&&"landscape"!==B)throw"Invalid orientation: "+B;B="l",K>T&&(v=T,T=K,K=v)}return{width:T,height:K,unit:g,k:U,orientation:B}},r.html=function(B,g){(g=g||{}).callback=g.callback||function(){},g.html2canvas=g.html2canvas||{},g.html2canvas.canvas=g.html2canvas.canvas||this.canvas,g.jsPDF=g.jsPDF||this,g.fontFaces=g.fontFaces?g.fontFaces.map(Ss):null;var p=new u(g);return g.worker?p:p.from(B).doCallback()}}(Ae.API),Ae.API.addJS=function(r){return Oo=r,this.internal.events.subscribe("postPutResources",function(){xr=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(xr+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),To=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Oo+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==xr&&void 0!==To&&this.internal.out("/Names <</JavaScript "+xr+" 0 R>>")}),this},
/**
       * @license
       * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
       *
       * Licensed under the MIT License.
       * http://opensource.org/licenses/mit-license
       */
function(r){var A;r.events.push(["postPutResources",function(){var t=this,o=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var l=t.outline.render().split(/\r\n/),u=0;u<l.length;u++){var B=l[u],g=o.exec(B);null!=g&&t.internal.newObjectDeferredBegin(g[1],!1),t.internal.write(B)}if(this.outline.createNamedDestinations){var m=this.internal.pages.length,U=[];for(u=0;u<m;u++){var b=t.internal.newObject();U.push(b);var H=t.internal.getPageInfo(u+1);t.internal.write("<< /D["+H.objId+" 0 R /XYZ null null null]>> endobj")}var v=t.internal.newObject();for(t.internal.write("<< /Names [ "),u=0;u<U.length;u++)t.internal.write("(page_"+(u+1)+")"+U[u]+" 0 R");t.internal.write(" ] >>","endobj"),A=t.internal.newObject(),t.internal.write("<< /Dests "+v+" 0 R"),t.internal.write(">>","endobj")}}]),r.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+A+" 0 R"))}]),r.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(o,l,u){var B={title:l,options:u,children:[]};return null==o&&(o=this.root),o.children.push(B),B},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(o){o.id=t.internal.newObjectDeferred();for(var l=0;l<o.children.length;l++)this.genIds_r(o.children[l])},t.outline.renderRoot=function(o){this.objStart(o),this.line("/Type /Outlines"),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1]))),this.line("/Count "+this.count_r({count:0},o)),this.objEnd()},t.outline.renderItems=function(o){for(var l=this.ctx.pdf.internal.getVerticalCoordinateString,u=0;u<o.children.length;u++){var B=o.children[u];this.objStart(B),this.line("/Title "+this.makeString(B.title)),this.line("/Parent "+this.makeRef(o)),u>0&&this.line("/Prev "+this.makeRef(o.children[u-1])),u<o.children.length-1&&this.line("/Next "+this.makeRef(o.children[u+1])),B.children.length>0&&(this.line("/First "+this.makeRef(B.children[0])),this.line("/Last "+this.makeRef(B.children[B.children.length-1])));var g=this.count=this.count_r({count:0},B);if(g>0&&this.line("/Count "+g),B.options&&B.options.pageNumber){var p=t.internal.getPageInfo(B.options.pageNumber);this.line("/Dest ["+p.objId+" 0 R /XYZ 0 "+l(0)+" 0]")}this.objEnd()}for(var m=0;m<o.children.length;m++)this.renderItems(o.children[m])},t.outline.line=function(o){this.ctx.val+=o+"\r\n"},t.outline.makeRef=function(o){return o.id+" 0 R"},t.outline.makeString=function(o){return"("+t.internal.pdfEscape(o)+")"},t.outline.objStart=function(o){this.ctx.val+="\r\n"+o.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(o,l){for(var u=0;u<l.children.length;u++)o.count++,this.count_r(o,l.children[u]);return o.count}}])}(Ae.API),
/**
       * @license
       *
       * Licensed under the MIT License.
       * http://opensource.org/licenses/mit-license
       */
function(r){var A=[192,193,194,195,196,197,198,199];r.processJPEG=function(t,o,l,u,B,g){var p,m=this.decode.DCT_DECODE,U=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=this.__addimage__.isArrayBuffer(t=B||t)?new Uint8Array(t):t,(p=function(b){for(var H,v=256*b.charCodeAt(4)+b.charCodeAt(5),K=b.length,T={width:0,height:0,numcomponents:1},R=4;R<K;R+=2){if(-1!==A.indexOf(b.charCodeAt((R+=v)+1))){H=256*b.charCodeAt(R+5)+b.charCodeAt(R+6),T={width:256*b.charCodeAt(R+7)+b.charCodeAt(R+8),height:H,numcomponents:b.charCodeAt(R+9)};break}v=256*b.charCodeAt(R+2)+b.charCodeAt(R+3)}return T}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:g=this.color_spaces.DEVICE_GRAY;break;case 4:g=this.color_spaces.DEVICE_CMYK;break;case 3:g=this.color_spaces.DEVICE_RGB}U={data:t,width:p.width,height:p.height,colorSpace:g,bitsPerComponent:8,filter:m,index:o,alias:l}}return U}}(Ae.API);var Bi,Ns,Vi,Vr,Vc,Mu=function(){var r,A,t;function o(u){var B,p,m,U,b,H,v,K,T,R,N,j,rA;for(this.data=u,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},b=null;;){switch(B=this.readUInt32(),K=function(){var cA,vA;for(vA=[],cA=0;cA<4;++cA)vA.push(String.fromCharCode(this.data[this.pos++]));return vA}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(B);break;case"fcTL":b&&this.animation.frames.push(b),this.pos+=4,b={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},U=this.readUInt16(),m=this.readUInt16()||100,b.delay=1e3*U/m,b.disposeOp=this.data[this.pos++],b.blendOp=this.data[this.pos++],b.data=[];break;case"IDAT":case"fdAT":for("fdAT"===K&&(this.pos+=4,B-=4),u=b?.data||this.imgData,N=0;0<=B?N<B:N>B;0<=B?++N:--N)u.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(p=this.palette.length/3,this.transparency.indexed=this.read(B),this.transparency.indexed.length>p)throw new Error("More transparent colors than palette size");if((T=p-this.transparency.indexed.length)>0)for(j=0;0<=T?j<T:j>T;0<=T?++j:--j)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(B)[0];break;case 2:this.transparency.rgb=this.read(B)}break;case"tEXt":H=(R=this.read(B)).indexOf(0),v=String.fromCharCode.apply(String,R.slice(0,H)),this.text[v]=String.fromCharCode.apply(String,R.slice(H+1));break;case"IEND":return b&&this.animation.frames.push(b),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(rA=this.colorType)||6===rA,this.pixelBitlength=this.bits*(this.colors+(this.hasAlphaChannel?1:0)),this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=B}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}o.prototype.read=function(u){var B,g;for(g=[],B=0;0<=u?B<u:B>u;0<=u?++B:--B)g.push(this.data[this.pos++]);return g},o.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},o.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},o.prototype.decodePixels=function(u){var B=this.pixelBitlength/8,g=new Uint8Array(this.width*this.height*B),p=0,m=this;if(null==u&&(u=this.imgData),0===u.length)return new Uint8Array(0);function U(b,H,v,K){var T,R,N,j,rA,cA,vA,SA,J,fA,bA,D,M,tA,X,mA,dA,yA,hA,UA,IA=Math.ceil((m.width-b)/v),qA=Math.ceil((m.height-H)/K),x=m.width==IA&&m.height==qA;for(M=B*IA,bA=x?g:new Uint8Array(M*qA),cA=u.length,D=0,R=0;D<qA&&p<cA;){switch(u[p++]){case 0:for(j=mA=0;mA<M;j=mA+=1)bA[R++]=u[p++];break;case 1:for(j=dA=0;dA<M;j=dA+=1)T=u[p++],rA=j<B?0:bA[R-B],bA[R++]=(T+rA)%256;break;case 2:for(j=yA=0;yA<M;j=yA+=1)T=u[p++],N=(j-j%B)/B,bA[R++]=((tA=D&&bA[(D-1)*M+N*B+j%B])+T)%256;break;case 3:for(j=hA=0;hA<M;j=hA+=1)T=u[p++],N=(j-j%B)/B,rA=j<B?0:bA[R-B],tA=D&&bA[(D-1)*M+N*B+j%B],bA[R++]=(T+Math.floor((rA+tA)/2))%256;break;case 4:for(j=UA=0;UA<M;j=UA+=1)T=u[p++],N=(j-j%B)/B,0===D?tA=X=0:(tA=bA[(D-1)*M+N*B+j%B],X=N&&bA[(D-1)*M+(N-1)*B+j%B]),vA=(rA=j<B?0:bA[R-B])+tA-X,SA=Math.abs(vA-rA),J=Math.abs(vA-tA),fA=Math.abs(vA-X),bA[R++]=(T+(SA<=J&&SA<=fA?rA:J<=fA?tA:X))%256;break;default:throw new Error("Invalid filter algorithm: "+u[p-1])}if(!x){var G=((H+D*K)*m.width+b)*B,q=D*M;for(j=0;j<IA;j+=1){for(var AA=0;AA<B;AA+=1)g[G++]=bA[q++];G+=(v-1)*B}}D++}}return u=Cs(u),1==m.interlaceMethod?(U(0,0,8,8),U(4,0,8,8),U(0,4,4,8),U(2,0,4,4),U(0,2,2,4),U(1,0,2,2),U(0,1,1,2)):U(0,0,1,1),g},o.prototype.decodePalette=function(){var u,B,g,p,m,U,b,H,v;for(g=this.palette,U=this.transparency.indexed||[],m=new Uint8Array((U.length||0)+g.length),p=0,u=0,B=b=0,H=g.length;b<H;B=b+=3)m[p++]=g[B],m[p++]=g[B+1],m[p++]=g[B+2],m[p++]=null!=(v=U[u++])?v:255;return m},o.prototype.copyToImageData=function(u,B){var g,p,m,U,b,H,v,K,T,R,N;if(p=this.colors,T=null,g=this.hasAlphaChannel,this.palette.length&&(T=null!=(N=this._decodedPalette)?N:this._decodedPalette=this.decodePalette(),p=4,g=!0),K=(m=u.data||u).length,b=T||B,U=H=0,1===p)for(;U<K;)v=T?4*B[U/4]:H,R=b[v++],m[U++]=R,m[U++]=R,m[U++]=R,m[U++]=g?b[v++]:255,H=v;else for(;U<K;)v=T?4*B[U/4]:H,m[U++]=b[v++],m[U++]=b[v++],m[U++]=b[v++],m[U++]=g?b[v++]:255,H=v},o.prototype.decode=function(){var u;return u=new Uint8Array(this.width*this.height*4),this.copyToImageData(u,this.decodePixels()),u};var l=function(){if("[object Window]"===Object.prototype.toString.call(te)){try{A=te.document.createElement("canvas"),t=A.getContext("2d")}catch{return!1}return!0}return!1};return l(),r=function(u){var B;if(!0===l())return t.width=u.width,t.height=u.height,t.clearRect(0,0,u.width,u.height),t.putImageData(u,0,0),(B=new Image).src=A.toDataURL(),B;throw new Error("This method requires a Browser with Canvas-capability.")},o.prototype.decodeFrames=function(u){var B,g,p,m,U,b,H,v;if(this.animation){for(v=[],g=U=0,b=(H=this.animation.frames).length;U<b;g=++U)p=u.createImageData((B=H[g]).width,B.height),m=this.decodePixels(new Uint8Array(B.data)),this.copyToImageData(p,m),B.imageData=p,v.push(B.image=r(p));return v}},o.prototype.renderFrame=function(u,B){var g,p,m;return g=(p=this.animation.frames)[B],m=p[B-1],0===B&&u.clearRect(0,0,this.width,this.height),1===m?.disposeOp?u.clearRect(m.xOffset,m.yOffset,m.width,m.height):2===m?.disposeOp&&u.putImageData(m.imageData,m.xOffset,m.yOffset),0===g.blendOp&&u.clearRect(g.xOffset,g.yOffset,g.width,g.height),u.drawImage(g.image,g.xOffset,g.yOffset)},o.prototype.animate=function(u){var B,g,p,m,U,b,H=this;return g=0,m=(b=this.animation).numFrames,p=b.frames,U=b.numPlays,(B=function(){var v,K;if(v=g++%m,K=p[v],H.renderFrame(u,v),m>1&&g/m<U)return H.animation._timeout=setTimeout(B,K.delay)})()},o.prototype.stopAnimation=function(){var u;return clearTimeout(null!=(u=this.animation)?u._timeout:void 0)},o.prototype.render=function(u){var B,g;return u._png&&u._png.stopAnimation(),u._png=this,u.width=this.width,u.height=this.height,B=u.getContext("2d"),this.animation?(this.decodeFrames(B),this.animate(B)):(g=B.createImageData(this.width,this.height),this.copyToImageData(g,this.decodePixels()),B.putImageData(g,0,0))},o}();
/**
       * @license
       *
       * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
       *
       * Permission is hereby granted, free of charge, to any person obtaining
       * a copy of this software and associated documentation files (the
       * "Software"), to deal in the Software without restriction, including
       * without limitation the rights to use, copy, modify, merge, publish,
       * distribute, sublicense, and/or sell copies of the Software, and to
       * permit persons to whom the Software is furnished to do so, subject to
       * the following conditions:
       *
       * The above copyright notice and this permission notice shall be
       * included in all copies or substantial portions of the Software.
       *
       * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
       * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
       * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
       * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
       * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
       * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
       * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
       * ====================================================================
       */
/**
       * @license
       * (c) Dean McNamee <dean@gmail.com>, 2013.
       *
       * https://github.com/deanm/omggif
       *
       * Permission is hereby granted, free of charge, to any person obtaining a copy
       * of this software and associated documentation files (the "Software"), to
       * deal in the Software without restriction, including without limitation the
       * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
       * sell copies of the Software, and to permit persons to whom the Software is
       * furnished to do so, subject to the following conditions:
       *
       * The above copyright notice and this permission notice shall be included in
       * all copies or substantial portions of the Software.
       *
       * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
       * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
       * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
       * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
       * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
       * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
       * IN THE SOFTWARE.
       *
       * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
       * including animation and compression.  It does not rely on any specific
       * underlying system, so should run in the browser, Node, or Plask.
       */function _s(r){var A=0;if(71!==r[A++]||73!==r[A++]||70!==r[A++]||56!==r[A++]||56!=(r[A++]+1&253)||97!==r[A++])throw new Error("Invalid GIF 87a/89a header.");var t=r[A++]|r[A++]<<8,o=r[A++]|r[A++]<<8,l=r[A++],B=1<<1+(7&l);A++,A++;var g=null,p=null;l>>7&&(g=A,p=B,A+=3*B);var m=!0,U=[],b=0,H=null,v=0,K=null;for(this.width=t,this.height=o;m&&A<r.length;)switch(r[A++]){case 33:switch(r[A++]){case 255:if(11!==r[A]||78==r[A+1]&&69==r[A+2]&&84==r[A+3]&&83==r[A+4]&&67==r[A+5]&&65==r[A+6]&&80==r[A+7]&&69==r[A+8]&&50==r[A+9]&&46==r[A+10]&&48==r[A+11]&&3==r[A+12]&&1==r[A+13]&&0==r[A+16])A+=14,K=r[A++]|r[A++]<<8,A++;else for(A+=12;;){if(!((D=r[A++])>=0))throw Error("Invalid block size");if(0===D)break;A+=D}break;case 249:if(4!==r[A++]||0!==r[A+4])throw new Error("Invalid graphics extension block.");var T=r[A++];b=r[A++]|r[A++]<<8,H=r[A++],!(1&T)&&(H=null),v=T>>2&7,A++;break;case 254:for(;;){if(!((D=r[A++])>=0))throw Error("Invalid block size");if(0===D)break;A+=D}break;default:throw new Error("Unknown graphic control label: 0x"+r[A-1].toString(16))}break;case 44:var R=r[A++]|r[A++]<<8,N=r[A++]|r[A++]<<8,j=r[A++]|r[A++]<<8,rA=r[A++]|r[A++]<<8,cA=r[A++],vA=cA>>6&1,SA=1<<1+(7&cA),lA=g,J=p,fA=!1;cA>>7&&(fA=!0,lA=A,J=SA,A+=3*SA);var bA=A;for(A++;;){var D;if(!((D=r[A++])>=0))throw Error("Invalid block size");if(0===D)break;A+=D}U.push({x:R,y:N,width:j,height:rA,has_local_palette:fA,palette_offset:lA,palette_size:J,data_offset:bA,data_length:A-bA,transparent_index:H,interlaced:!!vA,delay:b,disposal:v});break;case 59:m=!1;break;default:throw new Error("Unknown gif block: 0x"+r[A-1].toString(16))}this.numFrames=function(){return U.length},this.loopCount=function(){return K},this.frameInfo=function(M){if(M<0||M>=U.length)throw new Error("Frame index out of range.");return U[M]},this.decodeAndBlitFrameBGRA=function(M,tA){var X=this.frameInfo(M),mA=X.width*X.height,dA=new Uint8Array(mA);Po(r,X.data_offset,dA,mA);var yA=X.palette_offset,hA=X.transparent_index;null===hA&&(hA=256);var UA=X.width,IA=t-UA,qA=UA,x=4*(X.y*t+X.x),G=4*((X.y+X.height)*t+X.x),q=x,AA=4*IA;!0===X.interlaced&&(AA+=4*t*7);for(var sA=8,BA=0,pA=dA.length;BA<pA;++BA){var wA=dA[BA];if(0===qA&&(qA=UA,(q+=AA)>=G&&(AA=4*IA+4*t*(sA-1),q=x+(UA+IA)*(sA<<1),sA>>=1)),wA===hA)q+=4;else{var DA=r[yA+3*wA],_A=r[yA+3*wA+1];tA[q++]=r[yA+3*wA+2],tA[q++]=_A,tA[q++]=DA,tA[q++]=255}--qA}},this.decodeAndBlitFrameRGBA=function(M,tA){var X=this.frameInfo(M),mA=X.width*X.height,dA=new Uint8Array(mA);Po(r,X.data_offset,dA,mA);var yA=X.palette_offset,hA=X.transparent_index;null===hA&&(hA=256);var UA=X.width,IA=t-UA,qA=UA,x=4*(X.y*t+X.x),G=4*((X.y+X.height)*t+X.x),q=x,AA=4*IA;!0===X.interlaced&&(AA+=4*t*7);for(var sA=8,BA=0,pA=dA.length;BA<pA;++BA){var wA=dA[BA];if(0===qA&&(qA=UA,(q+=AA)>=G&&(AA=4*IA+4*t*(sA-1),q=x+(UA+IA)*(sA<<1),sA>>=1)),wA===hA)q+=4;else{var _A=r[yA+3*wA+1],VA=r[yA+3*wA+2];tA[q++]=r[yA+3*wA],tA[q++]=_A,tA[q++]=VA,tA[q++]=255}--qA}}}function Po(r,A,t,o){for(var l=r[A++],u=1<<l,B=u+1,g=B+1,p=l+1,m=(1<<p)-1,U=0,b=0,H=0,v=r[A++],K=new Int32Array(4096),T=null;;){for(;U<16&&0!==v;)b|=r[A++]<<U,U+=8,1===v?v=r[A++]:--v;if(U<p)break;var R=b&m;if(b>>=p,U-=p,R!==u){if(R===B)break;for(var N=R<g?R:T,j=0,rA=N;rA>u;)rA=K[rA]>>8,++j;var cA=rA;if(H+j+(N!==R?1:0)>o)return void _e.log("Warning, gif stream longer than expected.");t[H++]=cA;var vA=H+=j;for(N!==R&&(t[H++]=cA),rA=N;j--;)t[--vA]=255&(rA=K[rA]),rA>>=8;null!==T&&g<4096&&(K[g++]=T<<8|cA,g>=m+1&&p<12&&(++p,m=m<<1|1)),T=R}else g=B+1,m=(1<<(p=l+1))-1,T=null}return H!==o&&_e.log("Warning, gif stream shorter than expected."),t
/**
       * @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 Mo(r){var A,t,o,l,u,B=Math.floor,g=new Array(64),p=new Array(64),m=new Array(64),U=new Array(64),b=new Array(65535),H=new Array(65535),v=new Array(64),K=new Array(64),T=[],R=0,N=7,j=new Array(64),rA=new Array(64),cA=new Array(64),vA=new Array(256),SA=new Array(2048),lA=[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],J=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],fA=[0,1,2,3,4,5,6,7,8,9,10,11],bA=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],D=[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],M=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],tA=[0,1,2,3,4,5,6,7,8,9,10,11],X=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],mA=[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 dA(x,G){for(var q=0,AA=0,sA=new Array,BA=1;BA<=16;BA++){for(var pA=1;pA<=x[BA];pA++)sA[G[AA]]=[],sA[G[AA]][0]=q,sA[G[AA]][1]=BA,AA++,q++;q*=2}return sA}function yA(x){for(var G=x[0],q=x[1]-1;q>=0;)G&1<<q&&(R|=1<<N),q--,--N<0&&(255==R?(hA(255),hA(0)):hA(R),N=7,R=0)}function hA(x){T.push(x)}function UA(x){hA(x>>8&255),hA(255&x)}function IA(x,G,q,AA,sA){for(var BA,pA=sA[0],wA=sA[240],DA=function(NA,RA){var zA,jA,ZA,ce,Be,de,ve,Te,ie,pe,WA=0;for(ie=0;ie<8;++ie){var Ht=(zA=NA[WA])+(Te=NA[WA+7]),Ie=zA-Te,Hr=(jA=NA[WA+1])+(ve=NA[WA+6]),Pe=jA-ve,We=(ZA=NA[WA+2])+(de=NA[WA+5]),zr=ZA-de,Ne=(ce=NA[WA+3])+(Be=NA[WA+4]),qe=ce-Be,et=Ht+Ne,Nr=Ht-Ne,ln=Hr+We,tt=Hr-We;NA[WA]=et+ln,NA[WA+4]=et-ln;var ue=.707106781*(tt+Nr);NA[WA+2]=Nr+ue,NA[WA+6]=Nr-ue;var He=.382683433*((et=qe+zr)-(tt=Pe+Ie)),gi=.5411961*et+He,Ut=1.306562965*tt+He,Wr=.707106781*(ln=zr+Pe),Xr=Ie+Wr,ee=Ie-Wr;NA[WA+5]=ee+gi,NA[WA+3]=ee-gi,NA[WA+1]=Xr+Ut,NA[WA+7]=Xr-Ut,WA+=8}for(WA=0,ie=0;ie<8;++ie){var _r=(zA=NA[WA])+(Te=NA[WA+56]),Dr=zA-Te,kA=(jA=NA[WA+8])+(ve=NA[WA+48]),gt=jA-ve,ft=(ZA=NA[WA+16])+(de=NA[WA+40]),Pt=ZA-de,Mt=(ce=NA[WA+24])+(Be=NA[WA+32]),fn=ce-Be,gr=_r+Mt,kt=_r-Mt,Yt=kA+ft,Jr=kA-ft;NA[WA]=gr+Yt,NA[WA+32]=gr-Yt;var dr=.707106781*(Jr+kt);NA[WA+16]=kt+dr,NA[WA+48]=kt-dr;var Yr=.382683433*((gr=fn+Pt)-(Jr=gt+Dr)),er=.5411961*gr+Yr,Gn=1.306562965*Jr+Yr,jn=.707106781*(Yt=Pt+gt),qi=Dr+jn,di=Dr-jn;NA[WA+40]=di+er,NA[WA+24]=di-er,NA[WA+8]=qi+Gn,NA[WA+56]=qi-Gn,WA++}for(ie=0;ie<64;++ie)v[ie]=(pe=NA[ie]*RA[ie])>0?pe+.5|0:pe-.5|0;return v}(x,G),_A=0;_A<64;++_A)K[lA[_A]]=DA[_A];var VA=K[0]-q;q=K[0],0==VA?yA(AA[0]):(yA(AA[H[BA=32767+VA]]),yA(b[BA]));for(var GA=63;GA>0&&0==K[GA];)GA--;if(0==GA)return yA(pA),q;for(var re,EA=1;EA<=GA;){for(var z=EA;0==K[EA]&&EA<=GA;)++EA;var le=EA-z;if(le>=16){re=le>>4;for(var YA=1;YA<=re;++YA)yA(wA);le&=15}yA(sA[(le<<4)+H[BA=32767+K[EA]]]),yA(b[BA]),EA++}return 63!=GA&&yA(pA),q}function qA(x){x=Math.min(Math.max(x,1),100),u!=x&&(function(G){for(var q=[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],AA=0;AA<64;AA++){var sA=B((q[AA]*G+50)/100);sA=Math.min(Math.max(sA,1),255),g[lA[AA]]=sA}for(var BA=[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],pA=0;pA<64;pA++){var wA=B((BA[pA]*G+50)/100);wA=Math.min(Math.max(wA,1),255),p[lA[pA]]=wA}for(var DA=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],_A=0,VA=0;VA<8;VA++)for(var GA=0;GA<8;GA++)m[_A]=1/(g[lA[_A]]*DA[VA]*DA[GA]*8),U[_A]=1/(p[lA[_A]]*DA[VA]*DA[GA]*8),_A++}(x<50?Math.floor(5e3/x):Math.floor(200-2*x)),u=x)}this.encode=function(x,G){var jA,ZA;G&&qA(G),T=new Array,R=0,N=7,UA(65496),UA(65504),UA(16),hA(74),hA(70),hA(73),hA(70),hA(0),hA(1),hA(1),hA(0),UA(1),UA(1),hA(0),hA(0),function(){UA(65499),UA(132),hA(0);for(var jA=0;jA<64;jA++)hA(g[jA]);hA(1);for(var ZA=0;ZA<64;ZA++)hA(p[ZA])}(),jA=x.width,ZA=x.height,UA(65472),UA(17),hA(8),UA(ZA),UA(jA),hA(3),hA(1),hA(17),hA(0),hA(2),hA(17),hA(1),hA(3),hA(17),hA(1),function(){UA(65476),UA(418),hA(0);for(var jA=0;jA<16;jA++)hA(J[jA+1]);for(var ZA=0;ZA<=11;ZA++)hA(fA[ZA]);hA(16);for(var ce=0;ce<16;ce++)hA(bA[ce+1]);for(var Be=0;Be<=161;Be++)hA(D[Be]);hA(1);for(var de=0;de<16;de++)hA(M[de+1]);for(var ve=0;ve<=11;ve++)hA(tA[ve]);hA(17);for(var Te=0;Te<16;Te++)hA(X[Te+1]);for(var ie=0;ie<=161;ie++)hA(mA[ie])}(),UA(65498),UA(12),hA(3),hA(1),hA(0),hA(2),hA(17),hA(3),hA(17),hA(0),hA(63),hA(0);var q=0,AA=0,sA=0;R=0,N=7,this.encode.displayName="_encode_";for(var BA,pA,wA,DA,_A,VA,GA,re,EA,z=x.data,YA=x.height,NA=4*x.width,RA=0;RA<YA;){for(BA=0;BA<NA;){for(_A=NA*RA+BA,GA=-1,re=0,EA=0;EA<64;EA++)VA=_A+(re=EA>>3)*NA+(GA=4*(7&EA)),RA+re>=YA&&(VA-=NA*(RA+1+re-YA)),BA+GA>=NA&&(VA-=BA+GA-NA+4),pA=z[VA++],wA=z[VA++],DA=z[VA++],j[EA]=(SA[pA]+SA[wA+256>>0]+SA[DA+512>>0]>>16)-128,rA[EA]=(SA[pA+768>>0]+SA[wA+1024>>0]+SA[DA+1280>>0]>>16)-128,cA[EA]=(SA[pA+1280>>0]+SA[wA+1536>>0]+SA[DA+1792>>0]>>16)-128;q=IA(j,m,q,A,o),AA=IA(rA,U,AA,t,l),sA=IA(cA,U,sA,t,l),BA+=32}RA+=8}if(N>=0){var zA=[];zA[1]=N+1,zA[0]=(1<<N+1)-1,yA(zA)}return UA(65497),new Uint8Array(T)},r=r||50,function(){for(var x=String.fromCharCode,G=0;G<256;G++)vA[G]=x(G)}(),A=dA(J,fA),t=dA(M,tA),o=dA(bA,D),l=dA(X,mA),function(){for(var x=1,G=2,q=1;q<=15;q++){for(var AA=x;AA<G;AA++)H[32767+AA]=q,b[32767+AA]=[],b[32767+AA][1]=q,b[32767+AA][0]=AA;for(var sA=-(G-1);sA<=-x;sA++)H[32767+sA]=q,b[32767+sA]=[],b[32767+sA][1]=q,b[32767+sA][0]=G-1+sA;x<<=1,G<<=1}}(),function(){for(var x=0;x<256;x++)SA[x]=19595*x,SA[x+256>>0]=38470*x,SA[x+512>>0]=7471*x+32768,SA[x+768>>0]=-11059*x,SA[x+1024>>0]=-21709*x,SA[x+1280>>0]=32768*x+8421375,SA[x+1536>>0]=-27439*x,SA[x+1792>>0]=-5329*x}(),qA(r)}
/**
       * @license
       * Copyright (c) 2017 Aras Abbasi
       *
       * Licensed under the MIT License.
       * http://opensource.org/licenses/mit-license
       */function Sr(r,A){if(this.pos=0,this.buffer=r,this.datav=new DataView(r.buffer),this.is_with_alpha=!!A,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function hr(r){function A(J){if(!J)throw Error("assert :P")}function t(J,fA,bA){for(var D=0;4>D;D++)if(J[fA+D]!=bA.charCodeAt(D))return!0;return!1}function o(J,fA,bA,D,M){for(var tA=0;tA<M;tA++)J[fA+tA]=bA[D+tA]}function l(J,fA,bA,D){for(var M=0;M<D;M++)J[fA+M]=bA}function u(J){return new Int32Array(J)}function B(J,fA){for(var bA=[],D=0;D<J;D++)bA.push(new fA);return bA}function g(J,fA){var bA=[];return function D(M,tA,X){for(var mA=X[tA],dA=0;dA<mA&&(M.push(X.length>tA+1?[]:new fA),!(X.length<tA+1));dA++)D(M[dA],tA+1,X)}(bA,0,J),bA}var p=function(){var J=this;function fA(e,c){for(var f=1<<c-1>>>0;e&f;)f>>>=1;return f?(e&f-1)+f:e}function bA(e,c,f,w,Q){A(!(w%f));do{e[c+(w-=f)]=Q}while(0<w)}function D(e,c,f,w,Q){if(A(2328>=Q),512>=Q)var F=u(512);else if(null==(F=u(Q)))return 0;return function(y,E,S,_,k,nA){var iA,W,QA=E,gA=1<<S,$=u(16),Y=u(16);for(A(0!=k),A(null!=_),A(null!=y),A(0<S),W=0;W<k;++W){if(15<_[W])return 0;++$[_[W]]}if($[0]==k)return 0;for(Y[1]=0,iA=1;15>iA;++iA){if($[iA]>1<<iA)return 0;Y[iA+1]=Y[iA]+$[iA]}for(W=0;W<k;++W)iA=_[W],0<_[W]&&(nA[Y[iA]++]=W);if(1==Y[15])return(_=new M).g=0,_.value=nA[0],bA(y,QA,1,gA,_),gA;var FA,xA=-1,LA=gA-1,PA=0,TA=1,JA=1,MA=1<<S;for(W=0,iA=1,k=2;iA<=S;++iA,k<<=1){if(TA+=JA<<=1,0>(JA-=$[iA]))return 0;for(;0<$[iA];--$[iA])(_=new M).g=iA,_.value=nA[W++],bA(y,QA+PA,k,MA,_),PA=fA(PA,iA)}for(iA=S+1,k=2;15>=iA;++iA,k<<=1){if(TA+=JA<<=1,0>(JA-=$[iA]))return 0;for(;0<$[iA];--$[iA]){if(_=new M,(PA&LA)!=xA){for(QA+=MA,FA=1<<(xA=iA)-S;15>xA&&!(0>=(FA-=$[xA]));)++xA,FA<<=1;gA+=MA=1<<(FA=xA-S),y[E+(xA=PA&LA)].g=FA+S,y[E+xA].value=QA-E-xA}_.g=iA-S,_.value=nA[W++],bA(y,QA+(PA>>S),k,MA,_),PA=fA(PA,iA)}}return TA!=2*Y[15]-1?0:gA}(e,c,f,w,Q,F)}function M(){this.value=this.g=0}function tA(){this.value=this.g=0}function X(){this.G=B(5,M),this.H=u(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=B(nt,tA)}function mA(e,c,f,w){A(null!=e),A(null!=c),A(2147483648>w),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=c,e.pa=f,e.Jd=c,e.Yc=f+w,e.Zc=4<=w?f+w-4+1:f,BA(e)}function dA(e,c){for(var f=0;0<c--;)f|=wA(e,128)<<c;return f}function yA(e,c){var f=dA(e,c);return pA(e)?-f:f}function hA(e,c,f,w){var Q,F=0;for(A(null!=e),A(null!=c),A(4294967288>w),e.Sb=w,e.Ra=0,e.u=0,e.h=0,4<w&&(w=4),Q=0;Q<w;++Q)F+=c[f+Q]<<8*Q;e.Ra=F,e.bb=w,e.oa=c,e.pa=f}function UA(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<wr-8>>>0,++e.bb,e.u-=8;q(e)&&(e.h=1,e.u=0)}function IA(e,c){if(A(0<=c),!e.h&&c<=ke){var f=G(e)&Ui[c];return e.u+=c,UA(e),f}return e.h=1,e.u=0}function qA(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function G(e){return e.Ra>>>(e.u&wr-1)>>>0}function q(e){return A(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>wr}function AA(e,c){e.u=c,e.h=q(e)}function sA(e){e.u>=An&&(A(e.u>=An),UA(e))}function BA(e){A(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(A(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function pA(e){return dA(e,1)}function wA(e,c){var f=e.Ca;0>e.b&&BA(e);var w=e.b,Q=f*c>>>8,F=(e.I>>>w>Q)+0;for(F?(f-=Q,e.I-=Q+1<<w>>>0):f=Q+1,w=f,Q=0;256<=w;)Q+=8,w>>=8;return e.b-=w=7^Q+lt[w],e.Ca=(f<<w)-1,F}function DA(e,c,f){e[c+0]=f>>24&255,e[c+1]=f>>16&255,e[c+2]=f>>8&255,e[c+3]=f>>0&255}function _A(e,c){return e[c+0]<<0|e[c+1]<<8}function VA(e,c){return _A(e,c)|e[c+2]<<16}function GA(e,c){return _A(e,c)|_A(e,c+2)<<16}function re(e,c){var f=1<<c;return A(null!=e),A(0<c),e.X=u(f),null==e.X?0:(e.Mb=32-c,e.Xa=c,1)}function EA(e,c){A(null!=e),A(null!=c),A(e.Xa==c.Xa),o(c.X,0,e.X,0,1<<c.Xa)}function z(){this.X=[],this.Xa=this.Mb=0}function le(e,c,f,w){A(null!=f),A(null!=w);var Q=f[0],F=w[0];return 0==Q&&(Q=(e*F+c/2)/c),0==F&&(F=(c*Q+e/2)/e),0>=Q||0>=F?0:(f[0]=Q,w[0]=F,1)}function YA(e,c){return e+(1<<c)-1>>>c}function NA(e,c){return((4278255360&e)+(4278255360&c)>>>0&4278255360)+((16711935&e)+(16711935&c)>>>0&16711935)>>>0}function RA(e,c){J[c]=function(f,w,Q,F,y,E,S){var _;for(_=0;_<y;++_){var k=J[e](E[S+_-1],Q,F+_);E[S+_]=NA(f[w+_],k)}}}function zA(){this.ud=this.hd=this.jd=0}function jA(e,c){return((4278124286&(e^c))>>>1)+(e&c)>>>0}function ZA(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function ce(e,c){return ZA(e+(e-c+.5>>1))}function Be(e,c,f){return Math.abs(c-f)-Math.abs(e-f)}function de(e,c,f,w,Q,F,y){for(w=F[y-1],f=0;f<Q;++f)F[y+f]=w=NA(e[c+f],w)}function ve(e,c,f,w,Q){var F;for(F=0;F<f;++F){var y=e[c+F],E=y>>8&255,S=16711935&(S=(S=16711935&y)+((E<<16)+E));w[Q+F]=(4278255360&y)+S>>>0}}function Te(e,c){c.jd=e>>0&255,c.hd=e>>8&255,c.ud=e>>16&255}function ie(e,c,f,w,Q,F){var y;for(y=0;y<w;++y){var E=c[f+y],S=E>>>8,_=E,k=255&(k=(k=E>>>16)+((e.jd<<24>>24)*(S<<24>>24)>>>5));_=255&(_=(_+=(e.hd<<24>>24)*(S<<24>>24)>>>5)+((e.ud<<24>>24)*(k<<24>>24)>>>5)),Q[F+y]=(4278255360&E)+(k<<16)+_}}function pe(e,c,f,w,Q){J[c]=function(F,y,E,S,_,k,nA,iA,W){for(S=nA;S<iA;++S)for(nA=0;nA<W;++nA)_[k++]=Q(E[w(F[y++])])},J[e]=function(F,y,E,S,_,k,nA){var iA=8>>F.b,W=F.Ea,QA=F.K[0],gA=F.w;if(8>iA)for(F=(1<<F.b)-1,gA=(1<<iA)-1;y<E;++y){var $,Y=0;for($=0;$<W;++$)$&F||(Y=w(S[_++])),k[nA++]=Q(QA[Y&gA]),Y>>=iA}else J["VP8LMapColor"+f](S,_,QA,gA,k,nA,y,E,W)}}function WA(e,c,f,w,Q){for(f=c+f;c<f;){var F=e[c++];w[Q++]=F>>16&255,w[Q++]=F>>8&255,w[Q++]=F>>0&255}}function Ht(e,c,f,w,Q){for(f=c+f;c<f;){var F=e[c++];w[Q++]=F>>16&255,w[Q++]=F>>8&255,w[Q++]=F>>0&255,w[Q++]=F>>24&255}}function Ie(e,c,f,w,Q){for(f=c+f;c<f;){var F=(y=e[c++])>>16&240|y>>12&15,y=y>>0&240|y>>28&15;w[Q++]=F,w[Q++]=y}}function Hr(e,c,f,w,Q){for(f=c+f;c<f;){var F=(y=e[c++])>>16&248|y>>13&7,y=y>>5&224|y>>3&31;w[Q++]=F,w[Q++]=y}}function Pe(e,c,f,w,Q){for(f=c+f;c<f;){var F=e[c++];w[Q++]=F>>0&255,w[Q++]=F>>8&255,w[Q++]=F>>16&255}}function We(e,c,f,w,Q,F){if(0==F)for(f=c+f;c<f;)DA(w,((F=e[c++])[0]>>24|F[1]>>8&65280|F[2]<<8&16711680|F[3]<<24)>>>0),Q+=32;else o(w,Q,e,c,f)}function zr(e,c){J[c][0]=J[e+"0"],J[c][1]=J[e+"1"],J[c][2]=J[e+"2"],J[c][3]=J[e+"3"],J[c][4]=J[e+"4"],J[c][5]=J[e+"5"],J[c][6]=J[e+"6"],J[c][7]=J[e+"7"],J[c][8]=J[e+"8"],J[c][9]=J[e+"9"],J[c][10]=J[e+"10"],J[c][11]=J[e+"11"],J[c][12]=J[e+"12"],J[c][13]=J[e+"13"],J[c][14]=J[e+"0"],J[c][15]=J[e+"0"]}function Ne(e){return e==nc||e==ao||e==so||e==oo}function qe(){this.eb=[],this.size=this.A=this.fb=0}function et(){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 Nr(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new qe,this.f.kb=new et,this.sd=null}function ln(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function tt(){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 ue(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function He(e,c){var f=e.T,w=c.ba.f.RGBA,Q=w.eb,F=w.fb+e.ka*w.A,y=yr[c.ba.S],E=e.y,S=e.O,_=e.f,k=e.N,nA=e.ea,iA=e.W,W=c.cc,QA=c.dc,gA=c.Mc,$=c.Nc,Y=e.ka,FA=e.ka+e.T,xA=e.U,LA=xA+1>>1;for(0==Y?y(E,S,null,null,_,k,nA,iA,_,k,nA,iA,Q,F,null,null,xA):(y(c.ec,c.fc,E,S,W,QA,gA,$,_,k,nA,iA,Q,F-w.A,Q,F,xA),++f);Y+2<FA;Y+=2)y(E,(S+=2*e.fa)-e.fa,E,S,W=_,QA=k,gA=nA,$=iA,_,k+=e.Rc,nA,iA+=e.Rc,Q,(F+=2*w.A)-w.A,Q,F,xA);return S+=e.fa,e.j+FA<e.o?(o(c.ec,c.fc,E,S,xA),o(c.cc,c.dc,_,k,LA),o(c.Mc,c.Nc,nA,iA,LA),f--):1&FA||y(E,S,null,null,_,k,nA,iA,_,k,nA,iA,Q,F+w.A,null,null,xA),f}function gi(e,c,f){var w=e.F,Q=[e.J];if(null!=w){var F=e.U,y=c.ba.S,E=y==io||y==so;c=c.ba.f.RGBA;var S=[0],_=e.ka;S[0]=e.T,e.Kb&&(0==_?--S[0]:(--_,Q[0]-=e.width),e.j+e.ka+e.T==e.o&&(S[0]=e.o-e.j-_));var k=c.eb;e=Ke(w,Q[0],e.width,F,S,k,(_=c.fb+_*c.A)+(E?0:3),c.A),A(f==S),e&&Ne(y)&&Fr(k,_,E,F,S,c.A)}return 0}function Ut(e){var c=e.ma,f=c.ba.S,w=11>f,Q=f==Si||f==Hi||f==io||f==tc||12==f||Ne(f);if(c.memory=null,c.Ib=null,c.Jb=null,c.Nd=null,!aa(c.Oa,e,Q?11:12))return 0;if(Q&&Ne(f)&&HA(),e.da)alert("todo:use_scaling");else{if(w){if(c.Ib=ue,e.Kb){if(c.memory=u(e.U+2*(f=e.U+1>>1)),null==c.memory)return 0;c.ec=c.memory,c.fc=0,c.cc=c.ec,c.dc=c.fc+e.U,c.Mc=c.cc,c.Nc=c.dc+f,c.Ib=He,HA()}}else alert("todo:EmitYUV");Q&&(c.Jb=gi,w&&oA())}if(w&&!i){for(e=0;256>e;++e)n[e]=89858*(e-128)+fo>>lo,d[e]=-22014*(e-128)+fo,a[e]=-45773*(e-128),s[e]=113618*(e-128)+fo>>lo;for(e=rs;e<oc;++e)C[e-rs]=_t(c=76283*(e-16)+fo>>lo,255),I[e-rs]=_t(c+8>>4,15);i=1}return 1}function Wr(e){var c=e.ma,f=e.U,w=e.T;return A(!(1&e.ka)),0>=f||0>=w?0:(f=c.Ib(e,c),null!=c.Jb&&c.Jb(e,c,f),c.Dc+=f,1)}function Xr(e){e.ma.memory=null}function ee(e,c,f,w){return 47!=IA(e,8)?0:(c[0]=IA(e,14)+1,f[0]=IA(e,14)+1,w[0]=IA(e,1),0!=IA(e,3)?0:!e.h)}function _r(e,c){if(4>e)return e+1;var f=e-2>>1;return(2+(1&e)<<f)+IA(c,f)+1}function Dr(e,c){return 120<c?c-120:1<=(f=((f=zu[c-1])>>4)*e+(8-(15&f)))?f:1;var f}function kA(e,c,f){var w=G(f),Q=e[c+=255&w].g-8;return 0<Q&&(AA(f,f.u+8),w=G(f),c+=e[c].value,c+=w&(1<<Q)-1),AA(f,f.u+e[c].g),e[c].value}function gt(e,c,f){return f.g+=e.g,f.value+=e.value<<c>>>0,A(8>=f.g),e.g}function ft(e,c,f){var w=e.xc;return A((c=0==w?0:e.vc[e.md*(f>>w)+(c>>w)])<e.Wb),e.Ya[c]}function Pt(e,c,f,w){var Q=e.ab,F=e.c*c,y=e.C;c=y+c;var E=f,S=w;for(w=e.Ta,f=e.Ua;0<Q--;){var _=e.gc[Q],k=y,nA=c,iA=E,W=S,QA=(S=w,E=f,_.Ea);switch(A(k<nA),A(nA<=_.nc),_.hc){case 2:vr(iA,W,(nA-k)*QA,S,E);break;case 0:var gA=k,$=nA,Y=S,FA=E,xA=(MA=_).Ea;0==gA&&(en(iA,W,null,null,1,Y,FA),de(iA,W+1,0,0,xA-1,Y,FA+1),W+=xA,FA+=xA,++gA);for(var LA=1<<MA.b,PA=LA-1,TA=YA(xA,MA.b),JA=MA.K,MA=MA.w+(gA>>MA.b)*TA;gA<$;){var we=JA,ye=MA,ge=1;for(mn(iA,W,Y,FA-xA,1,Y,FA);ge<xA;){var he=(ge&~PA)+LA;he>xA&&(he=xA),(0,mr[we[ye++]>>8&15])(iA,W+ +ge,Y,FA+ge-xA,he-ge,Y,FA+ge),ge=he}W+=xA,FA+=xA,++gA&PA||(MA+=TA)}nA!=_.nc&&o(S,E-QA,S,E+(nA-k-1)*QA,QA);break;case 1:for(QA=iA,$=W,xA=(iA=_.Ea)-(FA=iA&~(Y=(W=1<<_.b)-1)),gA=YA(iA,_.b),LA=_.K,_=_.w+(k>>_.b)*gA;k<nA;){for(PA=LA,TA=_,JA=new zA,MA=$+FA,we=$+iA;$<MA;)Te(PA[TA++],JA),Jn(JA,QA,$,W,S,E),$+=W,E+=W;$<we&&(Te(PA[TA++],JA),Jn(JA,QA,$,xA,S,E),$+=xA,E+=xA),++k&Y||(_+=gA)}break;case 3:if(iA==S&&W==E&&0<_.b){for($=S,iA=QA=E+(nA-k)*QA-(FA=(nA-k)*YA(_.Ea,_.b)),W=S,Y=E,gA=[],FA=(xA=FA)-1;0<=FA;--FA)gA[FA]=W[Y+FA];for(FA=xA-1;0<=FA;--FA)$[iA+FA]=gA[FA];nr(_,k,nA,S,QA,S,E)}else nr(_,k,nA,iA,W,S,E)}E=w,S=f}S!=f&&o(w,f,E,S,F)}function Mt(e,c){var f=e.V,w=e.Ba+e.c*e.C,Q=c-e.C;if(A(c<=e.l.o),A(16>=Q),0<Q){var F=e.l,y=e.Ta,E=e.Ua,S=F.width;if(Pt(e,Q,f,w),Q=E=[E],A((f=e.C)<(w=c)),A(F.v<F.va),w>F.o&&(w=F.o),f<F.j){var _=F.j-f;f=F.j,Q[0]+=_*S}if(f>=w?f=0:(Q[0]+=4*F.v,F.ka=f-F.j,F.U=F.va-F.v,F.T=w-f,f=1),f){if(E=E[0],11>(f=e.ca).S){var k=f.f.RGBA,nA=(w=f.S,Q=F.U,F=F.T,_=k.eb,k.A),iA=F;for(k=k.fb+e.Ma*k.A;0<iA--;){var W=y,QA=E,gA=Q,$=_,Y=k;switch(w){case no:Rt(W,QA,gA,$,Y);break;case Si:mt(W,QA,gA,$,Y);break;case nc:mt(W,QA,gA,$,Y),Fr($,Y,0,gA,1,0);break;case Au:Qn(W,QA,gA,$,Y);break;case Hi:We(W,QA,gA,$,Y,1);break;case ao:We(W,QA,gA,$,Y,1),Fr($,Y,0,gA,1,0);break;case io:We(W,QA,gA,$,Y,0);break;case so:We(W,QA,gA,$,Y,0),Fr($,Y,1,gA,1,0);break;case tc:Yn(W,QA,gA,$,Y);break;case oo:Yn(W,QA,gA,$,Y),Oe($,Y,gA,1,0);break;case rc:Cn(W,QA,gA,$,Y);break;default:A(0)}E+=S,k+=nA}e.Ma+=F}else alert("todo:EmitRescaledRowsYUVA");A(e.Ma<=f.height)}}e.C=c,A(e.C<=e.i)}function fn(e){var c;if(0<e.ua)return 0;for(c=0;c<e.Wb;++c){var f=e.Ya[c].G,w=e.Ya[c].H;if(0<f[1][w[1]+0].g||0<f[2][w[2]+0].g||0<f[3][w[3]+0].g)return 0}return 1}function gr(e,c,f,w,Q,F){if(0!=e.Z){var y=e.qd,E=e.rd;for(A(null!=Ln[e.Z]);c<f;++c)Ln[e.Z](y,E,w,Q,w,Q,F),y=w,E=Q,Q+=F;e.qd=y,e.rd=E}}function kt(e,c){var f=e.l.ma,w=0==f.Z||1==f.Z?e.l.j:e.C;if(w=e.C<w?w:e.C,A(c<=e.l.o),c>w){var Q=e.l.width,F=f.ca,y=f.tb+Q*w,E=e.V,S=e.Ba+e.c*w,_=e.gc;A(1==e.ab),A(3==_[0].hc),As(_[0],w,c,E,S,F,y),gr(f,w,c,F,y,Q)}e.C=e.Ma=c}function Yt(e,c,f,w,Q,F,y){var E=e.$/w,S=e.$%w,_=e.m,k=e.s,nA=f+e.$,iA=nA;Q=f+w*Q;var W=f+w*F,QA=280+k.ua,gA=e.Pb?E:16777216,$=0<k.ua?k.Wa:null,Y=k.wc,FA=nA<W?ft(k,S,E):null;A(e.C<F),A(W<=Q);var xA=!1;A:for(;;){for(;xA||nA<W;){var LA=0;if(E>=gA){var PA=nA-f;A((gA=e).Pb),gA.wd=gA.m,gA.xd=PA,0<gA.s.ua&&EA(gA.s.Wa,gA.s.vb),gA=E+Xu}if(S&Y||(FA=ft(k,S,E)),A(null!=FA),FA.Qb&&(c[nA]=FA.qb,xA=!0),!xA)if(sA(_),FA.jc){PA=c;var TA=nA,JA=FA.pd[G(LA=_)&nt-1];A(FA.jc),256>JA.g?(AA(LA,LA.u+JA.g),PA[TA]=JA.value,LA=0):(AA(LA,LA.u+JA.g-256),A(256<=JA.value),LA=JA.value),0==LA&&(xA=!0)}else LA=kA(FA.G[0],FA.H[0],_);if(_.h)break;if(xA||256>LA){if(!xA)if(FA.nd)c[nA]=(FA.qb|LA<<8)>>>0;else{if(sA(_),xA=kA(FA.G[1],FA.H[1],_),sA(_),PA=kA(FA.G[2],FA.H[2],_),TA=kA(FA.G[3],FA.H[3],_),_.h)break;c[nA]=(TA<<24|xA<<16|LA<<8|PA)>>>0}if(xA=!1,++nA,++S>=w&&(S=0,++E,null!=y&&E<=F&&!(E%16)&&y(e,E),null!=$))for(;iA<nA;)LA=c[iA++],$.X[(506832829*LA&4294967295)>>>$.Mb]=LA}else if(280>LA){if(LA=_r(LA-256,_),PA=kA(FA.G[4],FA.H[4],_),sA(_),PA=Dr(w,PA=_r(PA,_)),_.h)break;if(nA-f<PA||Q-nA<LA)break A;for(TA=0;TA<LA;++TA)c[nA+TA]=c[nA+TA-PA];for(nA+=LA,S+=LA;S>=w;)S-=w,++E,null!=y&&E<=F&&!(E%16)&&y(e,E);if(A(nA<=Q),S&Y&&(FA=ft(k,S,E)),null!=$)for(;iA<nA;)LA=c[iA++],$.X[(506832829*LA&4294967295)>>>$.Mb]=LA}else{if(!(LA<QA))break A;for(xA=LA-280,A(null!=$);iA<nA;)LA=c[iA++],$.X[(506832829*LA&4294967295)>>>$.Mb]=LA;LA=nA,A(!(xA>>>(PA=$).Xa)),c[LA]=PA.X[xA],xA=!0}xA||A(_.h==q(_))}if(e.Pb&&_.h&&nA<Q)A(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&EA(e.s.vb,e.s.Wa);else{if(_.h)break A;y?.(e,E>F?F:E),e.a=0,e.$=nA-f}return 1}return e.a=3,0}function Jr(e){A(null!=e),e.vc=null,e.yc=null,e.Ya=null;var c=e.Wa;null!=c&&(c.X=null),e.vb=null,A(null!=e)}function dr(){var e=new to;return null==e?null:(e.a=0,e.xb=iu,zr("Predictor","VP8LPredictors"),zr("Predictor","VP8LPredictors_C"),zr("PredictorAdd","VP8LPredictorsAdd"),zr("PredictorAdd","VP8LPredictorsAdd_C"),vr=ve,Jn=ie,Rt=WA,mt=Ht,Yn=Ie,Cn=Hr,Qn=Pe,J.VP8LMapColor32b=bi,J.VP8LMapColor8b=oa,e)}function Yr(e,c,f,w,Q){var F=1,y=[e],E=[c],S=w.m,_=w.s,k=null,nA=0;A:for(;;){if(f)for(;F&&IA(S,1);){var iA=y,W=E,QA=w,gA=1,$=QA.m,Y=QA.gc[QA.ab],FA=IA($,2);if(QA.Oc&1<<FA)F=0;else{switch(QA.Oc|=1<<FA,Y.hc=FA,Y.Ea=iA[0],Y.nc=W[0],Y.K=[null],++QA.ab,A(4>=QA.ab),FA){case 0:case 1:Y.b=IA($,3)+2,gA=Yr(YA(Y.Ea,Y.b),YA(Y.nc,Y.b),0,QA,Y.K),Y.K=Y.K[0];break;case 3:var xA,LA=IA($,8)+1,PA=16<LA?0:4<LA?1:2<LA?2:3;if(iA[0]=YA(Y.Ea,PA),Y.b=PA,xA=gA=Yr(LA,1,0,QA,Y.K)){var TA,JA=LA,MA=Y,we=1<<(8>>MA.b),ye=u(we);if(null==ye)xA=0;else{var ge=MA.K[0],he=MA.w;for(ye[0]=MA.K[0][0],TA=1;TA<1*JA;++TA)ye[TA]=NA(ge[he+TA],ye[TA-1]);for(;TA<4*we;++TA)ye[TA]=0;MA.K[0]=null,MA.K[0]=ye,xA=1}}gA=xA;break;case 2:break;default:A(0)}F=gA}}if(y=y[0],E=E[0],F&&IA(S,1)&&!(F=1<=(nA=IA(S,4))&&11>=nA)){w.a=3;break A}var Ue;if(Ue=F)e:{var be,ae,Ct,Ur=w,Qt=y,br=E,Me=nA,Pr=f,Mr=Ur.m,Dt=Ur.s,qt=[null],ar=1,rn=0,ei=Wu[Me];t:for(;;){if(Pr&&IA(Mr,1)){var Tt=IA(Mr,3)+2,Ni=YA(Qt,Tt),ns=YA(br,Tt),ho=Ni*ns;if(!Yr(Ni,ns,0,Ur,qt))break t;for(qt=qt[0],Dt.xc=Tt,be=0;be<ho;++be){var Ba=qt[be]>>8&65535;qt[be]=Ba,Ba>=ar&&(ar=Ba+1)}}if(Mr.h)break t;for(ae=0;5>ae;++ae){var ht=ac[ae];!ae&&0<Me&&(ht+=1<<Me),rn<ht&&(rn=ht)}var tl=B(ar*ei,M),Sl=ar,Hl=B(Sl,X);if(null==Hl)var lu=null;else A(65536>=Sl),lu=Hl;var cc=u(rn);if(null==lu||null==cc||null==tl){Ur.a=1;break t}var fu=tl;for(be=Ct=0;be<ar;++be){var En=lu[be],Bo=En.G,go=En.H,Nl=0,hu=1,_l=0;for(ae=0;5>ae;++ae){ht=ac[ae],Bo[ae]=fu,go[ae]=Ct,!ae&&0<Me&&(ht+=1<<Me);n:{var Bu,rl=ht,gu=Ur,uc=cc,ql=fu,zl=Ct,nl=0,ga=gu.m,Wl=IA(ga,1);if(l(uc,0,0,rl),Wl){var Xl=IA(ga,1)+1,Jl=IA(ga,1),Dl=IA(ga,0==Jl?1:8);uc[Dl]=1,2==Xl&&(uc[Dl=IA(ga,8)]=1);var du=1}else{var Tl=u(19),Ol=IA(ga,4)+4;if(19<Ol){gu.a=3;var pu=0;break n}for(Bu=0;Bu<Ol;++Bu)Tl[tu[Bu]]=IA(ga,3);var il=void 0,lc=void 0,Pl=gu,Yl=Tl,wu=rl,Ml=uc,al=0,da=Pl.m,kl=8,Kl=B(128,M);r:for(;D(Kl,0,7,Yl,19);){if(IA(da,1)){var Zl=2+2*IA(da,3);if((il=2+IA(da,Zl))>wu)break r}else il=wu;for(lc=0;lc<wu&&il--;){sA(da);var Rl=Kl[0+(127&G(da))];AA(da,da.u+Rl.g);var po=Rl.value;if(16>po)Ml[lc++]=po,0!=po&&(kl=po);else{var $l=16==po,Gl=po-16,Af=ic[Gl],jl=IA(da,eu[Gl])+Af;if(lc+jl>wu)break r;for(var ef=$l?kl:0;0<jl--;)Ml[lc++]=ef}}al=1;break r}al||(Pl.a=3),du=al}(du=du&&!ga.h)&&(nl=D(ql,zl,8,uc,rl)),du&&0!=nl?pu=nl:(gu.a=3,pu=0)}if(0==pu)break t;if(hu&&1==qu[ae]&&(hu=0==fu[Ct].g),Nl+=fu[Ct].g,Ct+=pu,3>=ae){var fc,sl=cc[0];for(fc=1;fc<ht;++fc)cc[fc]>sl&&(sl=cc[fc]);_l+=sl}}if(En.nd=hu,En.Qb=0,hu&&(En.qb=(Bo[3][go[3]+0].value<<24|Bo[1][go[1]+0].value<<16|Bo[2][go[2]+0].value)>>>0,0==Nl&&256>Bo[0][go[0]+0].value&&(En.Qb=1,En.qb+=Bo[0][go[0]+0].value<<8)),En.jc=!En.Qb&&6>_l,En.jc){var vu,_i=En;for(vu=0;vu<nt;++vu){var pa=vu,wa=_i.pd[pa],mu=_i.G[0][_i.H[0]+pa];256<=mu.value?(wa.g=mu.g+256,wa.value=mu.value):(wa.g=0,wa.value=0,pa>>=gt(mu,8,wa),pa>>=gt(_i.G[1][_i.H[1]+pa],16,wa),pa>>=gt(_i.G[2][_i.H[2]+pa],0,wa),gt(_i.G[3][_i.H[3]+pa],24,wa))}}}Dt.vc=qt,Dt.Wb=ar,Dt.Ya=lu,Dt.yc=tl,Ue=1;break e}Ue=0}if(!(F=Ue)){w.a=3;break A}if(0<nA){if(_.ua=1<<nA,!re(_.Wa,nA)){w.a=1,F=0;break A}}else _.ua=0;var ol=w,Vl=y,tf=E,cl=ol.s,ul=cl.xc;if(ol.c=Vl,ol.i=tf,cl.md=YA(Vl,ul),cl.wc=0==ul?-1:(1<<ul)-1,f){w.xb=nu;break A}if(null==(k=u(y*E))){w.a=1,F=0;break A}F=(F=Yt(w,k,0,y,E,E,null))&&!S.h;break A}return F?(null!=Q?Q[0]=k:(A(null==k),A(f)),w.$=0,f||Jr(_)):Jr(_),F}function er(e,c){var f=e.c*e.i,w=f+c+16*c;return A(e.c<=c),e.V=u(w),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+f+c,1)}function Gn(e,c){var f=e.C,w=c-f,Q=e.V,F=e.Ba+e.c*f;for(A(c<=e.l.o);0<w;){var y=16<w?16:w,E=e.l.ma,S=e.l.width,_=S*y,k=E.ca,nA=E.tb+S*f,iA=e.Ta,W=e.Ua;Pt(e,y,Q,F),$e(iA,W,k,nA,_),gr(E,f,f+y,k,nA,S),w-=y,Q+=y*e.c,f+=y}A(f==c),e.C=e.Ma=c}function jn(){this.ub=this.yd=this.td=this.Rb=0}function qi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function di(){this.Fb=this.Bb=this.Cb=0,this.Zb=u(4),this.Lb=u(4)}function Os(){var e;this.Yb=(function c(f,w,Q){for(var F=Q[w],y=0;y<F&&(f.push(Q.length>w+1?[]:0),!(Q.length<w+1));y++)c(f[y],w+1,Q)}(e=[],0,[3,11]),e)}function ka(){this.jb=u(3),this.Wc=g([4,8],Os),this.Xc=g([4,17],Os)}function Go(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new u(4),this.od=new u(4)}function zi(){this.ld=this.La=this.dd=this.tc=0}function Ps(){this.Na=this.la=0}function jo(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ka(){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 Vo(){this.uc=this.M=this.Nb=0,this.wa=Array(new zi),this.Y=0,this.ya=Array(new Ka),this.aa=0,this.l=new pi}function Ms(){this.y=u(16),this.f=u(8),this.ea=u(8)}function qo(){this.cb=this.a=0,this.sc="",this.m=new qA,this.Od=new jn,this.Kc=new qi,this.ed=new Go,this.Qa=new di,this.Ic=this.$c=this.Aa=0,this.D=new Vo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=B(8,qA),this.ia=0,this.pb=B(4,jo),this.Pa=new ka,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ms),this.Hd=0,this.rb=Array(new Ps),this.sb=0,this.wa=Array(new zi),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 Ka),this.L=this.aa=0,this.gd=g([4,2],zi),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 pi(){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 zo(){var e=new qo;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,fa||(fa=Ks)),e}function ut(e,c,f){return 0==e.a&&(e.a=c,e.sc=f,e.cb=0),0}function ks(e,c,f){return 3<=f&&157==e[c+0]&&1==e[c+1]&&42==e[c+2]}function Ra(e,c){if(null==e)return 0;if(e.a=0,e.sc="OK",null==c)return ut(e,2,"null VP8Io passed to VP8GetHeaders()");var f=c.data,w=c.w,Q=c.ha;if(4>Q)return ut(e,7,"Truncated header.");var F=f[w+0]|f[w+1]<<8|f[w+2]<<16,y=e.Od;if(y.Rb=!(1&F),y.td=F>>1&7,y.yd=F>>4&1,y.ub=F>>5,3<y.td)return ut(e,3,"Incorrect keyframe parameters.");if(!y.yd)return ut(e,4,"Frame not displayable.");w+=3,Q-=3;var E=e.Kc;if(y.Rb){if(7>Q)return ut(e,7,"cannot parse picture header");if(!ks(f,w,Q))return ut(e,3,"Bad code word");E.c=16383&(f[w+4]<<8|f[w+3]),E.Td=f[w+4]>>6,E.i=16383&(f[w+6]<<8|f[w+5]),E.Ud=f[w+6]>>6,w+=7,Q-=7,e.za=E.c+15>>4,e.Ub=E.i+15>>4,c.width=E.c,c.height=E.i,c.Da=0,c.j=0,c.v=0,c.va=c.width,c.o=c.height,c.da=0,c.ib=c.width,c.hb=c.height,c.U=c.width,c.T=c.height,l((F=e.Pa).jb,0,255,F.jb.length),A(null!=(F=e.Qa)),F.Cb=0,F.Bb=0,F.Fb=1,l(F.Zb,0,0,F.Zb.length),l(F.Lb,0,0,F.Lb)}if(y.ub>Q)return ut(e,7,"bad partition length");mA(F=e.m,f,w,y.ub),w+=y.ub,Q-=y.ub,y.Rb&&(E.Ld=pA(F),E.Kd=pA(F)),E=e.Qa;var S,_=e.Pa;if(A(null!=F),A(null!=E),E.Cb=pA(F),E.Cb){if(E.Bb=pA(F),pA(F)){for(E.Fb=pA(F),S=0;4>S;++S)E.Zb[S]=pA(F)?yA(F,7):0;for(S=0;4>S;++S)E.Lb[S]=pA(F)?yA(F,6):0}if(E.Bb)for(S=0;3>S;++S)_.jb[S]=pA(F)?dA(F,8):255}else E.Bb=0;if(F.Ka)return ut(e,3,"cannot parse segment header");if((E=e.ed).zd=pA(F),E.Tb=dA(F,6),E.wb=dA(F,3),E.Pc=pA(F),E.Pc&&pA(F)){for(_=0;4>_;++_)pA(F)&&(E.vd[_]=yA(F,6));for(_=0;4>_;++_)pA(F)&&(E.od[_]=yA(F,6))}if(e.L=0==E.Tb?0:E.zd?1:2,F.Ka)return ut(e,3,"cannot parse filter header");var k=Q;if(Q=S=w,w=S+k,E=k,e.Xb=(1<<dA(e.m,2))-1,k<3*(_=e.Xb))f=7;else{for(S+=3*_,E-=3*_,k=0;k<_;++k){var nA=f[Q+0]|f[Q+1]<<8|f[Q+2]<<16;nA>E&&(nA=E),mA(e.Jc[+k],f,S,nA),S+=nA,E-=nA,Q+=3}mA(e.Jc[+_],f,S,E),f=S<w?0:5}if(0!=f)return ut(e,f,"cannot parse partitions");for(f=dA(S=e.m,7),Q=pA(S)?yA(S,4):0,w=pA(S)?yA(S,4):0,E=pA(S)?yA(S,4):0,_=pA(S)?yA(S,4):0,S=pA(S)?yA(S,4):0,k=e.Qa,nA=0;4>nA;++nA){if(k.Cb){var iA=k.Zb[nA];k.Fb||(iA+=f)}else{if(0<nA){e.pb[nA]=e.pb[0];continue}iA=f}var W=e.pb[nA];W.Sc[0]=la[_t(iA+Q,127)],W.Sc[1]=Zt[_t(iA+0,127)],W.Eb[0]=2*la[_t(iA+w,127)],W.Eb[1]=101581*Zt[_t(iA+E,127)]>>16,8>W.Eb[1]&&(W.Eb[1]=8),W.Qc[0]=la[_t(iA+_,117)],W.Qc[1]=Zt[_t(iA+S,127)],W.lc=iA+S}if(!y.Rb)return ut(e,4,"Not a key frame.");for(pA(F),y=e.Pa,f=0;4>f;++f){for(Q=0;8>Q;++Q)for(w=0;3>w;++w)for(E=0;11>E;++E)_=wA(F,uo[f][Q][w][E])?dA(F,8):sc[f][Q][w][E],y.Wc[f][Q].Yb[w][E]=_;for(Q=0;17>Q;++Q)y.Xc[f][Q]=y.Wc[f][Yu[Q]]}return e.kc=pA(F),e.kc&&(e.Bd=dA(F,8)),e.cb=1}function Ks(e,c,f,w,Q,F,y){var E=c[Q].Yb[f];for(f=0;16>Q;++Q){if(!wA(e,E[f+0]))return Q;for(;!wA(e,E[f+1]);)if(E=c[++Q].Yb[0],f=0,16==Q)return 16;var S=c[Q+1].Yb;if(wA(e,E[f+2])){var _=e,k=0;if(wA(_,(iA=E)[(nA=f)+3]))if(wA(_,iA[nA+6])){for(E=0,nA=2*(k=wA(_,iA[nA+8]))+(iA=wA(_,iA[nA+9+k])),k=0,iA=co[nA];iA[E];++E)k+=k+wA(_,iA[E]);k+=3+(8<<nA)}else wA(_,iA[nA+7])?(k=7+2*wA(_,165),k+=wA(_,145)):k=5+wA(_,159);else k=wA(_,iA[nA+4])?3+wA(_,iA[nA+5]):2;E=S[2]}else k=1,E=S[1];S=y+Ju[Q],0>(_=e).b&&BA(_);var nA,iA=_.b,W=(nA=_.Ca>>1)-(_.I>>iA)>>31;--_.b,_.Ca+=W,_.Ca|=1,_.I-=(nA+1&W)<<iA,F[S]=((k^W)-W)*w[(0<Q)+0]}return 16}function Vn(e){var c=e.rb[e.sb-1];c.la=0,c.Na=0,l(e.zc,0,0,e.zc.length),e.ja=0}function tr(e,c,f,w,Q){e[c+f+32*w]=-256&(Q=e[c+f+32*w]+(Q>>3))?0>Q?0:255:Q}function qn(e,c,f,w,Q,F){tr(e,c,0,f,w+Q),tr(e,c,1,f,w+F),tr(e,c,2,f,w-F),tr(e,c,3,f,w-Q)}function Kt(e){return(20091*e>>16)+e}function Wi(e,c,f,w){var Q,F=0,y=u(16);for(Q=0;4>Q;++Q){var E=e[c+0]+e[c+8],S=e[c+0]-e[c+8],_=(35468*e[c+4]>>16)-Kt(e[c+12]),k=Kt(e[c+4])+(35468*e[c+12]>>16);y[F+0]=E+k,y[F+1]=S+_,y[F+2]=S-_,y[F+3]=E-k,F+=4,c++}for(Q=F=0;4>Q;++Q)E=(e=y[F+0]+4)+y[F+8],S=e-y[F+8],_=(35468*y[F+4]>>16)-Kt(y[F+12]),tr(f,w,0,0,E+(k=Kt(y[F+4])+(35468*y[F+12]>>16))),tr(f,w,1,0,S+_),tr(f,w,2,0,S-_),tr(f,w,3,0,E-k),F++,w+=32}function Rs(e,c,f,w){var Q=e[c+0]+4,F=35468*e[c+4]>>16,y=Kt(e[c+4]),E=35468*e[c+1]>>16;qn(f,w,0,Q+y,e=Kt(e[c+1]),E),qn(f,w,1,Q+F,e,E),qn(f,w,2,Q-F,e,E),qn(f,w,3,Q-y,e,E)}function Gs(e,c,f,w,Q){Wi(e,c,f,w),Q&&Wi(e,c+16,f,w+4)}function Xi(e,c,f,w){Fn(e,c+0,f,w,1),Fn(e,c+32,f,w+128,1)}function Ga(e,c,f,w){var Q;for(e=e[c+0]+4,Q=0;4>Q;++Q)for(c=0;4>c;++c)tr(f,w,c,Q,e)}function ja(e,c,f,w){e[c+0]&&Gt(e,c+0,f,w),e[c+16]&&Gt(e,c+16,f,w+4),e[c+32]&&Gt(e,c+32,f,w+128),e[c+48]&&Gt(e,c+48,f,w+128+4)}function js(e,c,f,w){var Q,F=u(16);for(Q=0;4>Q;++Q){var y=e[c+0+Q]+e[c+12+Q],E=e[c+4+Q]+e[c+8+Q],S=e[c+4+Q]-e[c+8+Q],_=e[c+0+Q]-e[c+12+Q];F[0+Q]=y+E,F[8+Q]=y-E,F[4+Q]=_+S,F[12+Q]=_-S}for(Q=0;4>Q;++Q)y=(e=F[0+4*Q]+3)+F[3+4*Q],S=F[1+4*Q]-F[2+4*Q],_=e-F[3+4*Q],f[w+0]=y+(E=F[1+4*Q]+F[2+4*Q])>>3,f[w+16]=_+S>>3,f[w+32]=y-E>>3,f[w+48]=_-S>>3,w+=64}function Ji(e,c,f){var w,Q=c-32,F=Ce,y=255-e[Q-1];for(w=0;w<f;++w){var E,S=F,_=y+e[c-1];for(E=0;E<f;++E)e[c+E]=S[_+e[Q+E]];c+=32}}function Vs(e,c){Ji(e,c,4)}function Va(e,c){Ji(e,c,8)}function Xo(e,c){Ji(e,c,16)}function hn(e,c){var f;for(f=0;16>f;++f)o(e,c+32*f,e,c-32,16)}function Yi(e,c){var f;for(f=16;0<f;--f)l(e,c,e[c-1],16),c+=32}function bt(e,c,f){var w;for(w=0;16>w;++w)l(c,f+32*w,e,16)}function Zi(e,c){var f,w=16;for(f=0;16>f;++f)w+=e[c-1+32*f]+e[c+f-32];bt(w>>5,e,c)}function Nt(e,c){var f,w=8;for(f=0;16>f;++f)w+=e[c-1+32*f];bt(w>>4,e,c)}function Jo(e,c){var f,w=8;for(f=0;16>f;++f)w+=e[c+f-32];bt(w>>4,e,c)}function qs(e,c){bt(128,e,c)}function se(e,c,f){return e+2*c+f+2>>2}function Yo(e,c){var f,w=c-32;for(w=new Uint8Array([se(e[w-1],e[w+0],e[w+1]),se(e[w+0],e[w+1],e[w+2]),se(e[w+1],e[w+2],e[w+3]),se(e[w+2],e[w+3],e[w+4])]),f=0;4>f;++f)o(e,c+32*f,w,0,w.length)}function Zo(e,c){var f=e[c-1],w=e[c-1+32],Q=e[c-1+64],F=e[c-1+96];DA(e,c+0,16843009*se(e[c-1-32],f,w)),DA(e,c+32,16843009*se(f,w,Q)),DA(e,c+64,16843009*se(w,Q,F)),DA(e,c+96,16843009*se(Q,F,F))}function Zr(e,c){var f,w=4;for(f=0;4>f;++f)w+=e[c+f-32]+e[c-1+32*f];for(w>>=3,f=0;4>f;++f)l(e,c+32*f,w,4)}function zs(e,c){var f=e[c-1+0],w=e[c-1+32],Q=e[c-1+64],F=e[c-1-32],y=e[c+0-32],E=e[c+1-32],S=e[c+2-32],_=e[c+3-32];e[c+0+96]=se(w,Q,e[c-1+96]),e[c+1+96]=e[c+0+64]=se(f,w,Q),e[c+2+96]=e[c+1+64]=e[c+0+32]=se(F,f,w),e[c+3+96]=e[c+2+64]=e[c+1+32]=e[c+0+0]=se(y,F,f),e[c+3+64]=e[c+2+32]=e[c+1+0]=se(E,y,F),e[c+3+32]=e[c+2+0]=se(S,E,y),e[c+3+0]=se(_,S,E)}function Ws(e,c){var f=e[c+1-32],w=e[c+2-32],Q=e[c+3-32],F=e[c+4-32],y=e[c+5-32],E=e[c+6-32],S=e[c+7-32];e[c+0+0]=se(e[c+0-32],f,w),e[c+1+0]=e[c+0+32]=se(f,w,Q),e[c+2+0]=e[c+1+32]=e[c+0+64]=se(w,Q,F),e[c+3+0]=e[c+2+32]=e[c+1+64]=e[c+0+96]=se(Q,F,y),e[c+3+32]=e[c+2+64]=e[c+1+96]=se(F,y,E),e[c+3+64]=e[c+2+96]=se(y,E,S),e[c+3+96]=se(E,S,S)}function wi(e,c){var f=e[c-1+0],w=e[c-1+32],Q=e[c-1+64],F=e[c-1-32],y=e[c+0-32],E=e[c+1-32],S=e[c+2-32],_=e[c+3-32];e[c+0+0]=e[c+1+64]=F+y+1>>1,e[c+1+0]=e[c+2+64]=y+E+1>>1,e[c+2+0]=e[c+3+64]=E+S+1>>1,e[c+3+0]=S+_+1>>1,e[c+0+96]=se(Q,w,f),e[c+0+64]=se(w,f,F),e[c+0+32]=e[c+1+96]=se(f,F,y),e[c+1+32]=e[c+2+96]=se(F,y,E),e[c+2+32]=e[c+3+96]=se(y,E,S),e[c+3+32]=se(E,S,_)}function qa(e,c){var f=e[c+0-32],w=e[c+1-32],Q=e[c+2-32],F=e[c+3-32],y=e[c+4-32],E=e[c+5-32],S=e[c+6-32],_=e[c+7-32];e[c+0+0]=f+w+1>>1,e[c+1+0]=e[c+0+64]=w+Q+1>>1,e[c+2+0]=e[c+1+64]=Q+F+1>>1,e[c+3+0]=e[c+2+64]=F+y+1>>1,e[c+0+32]=se(f,w,Q),e[c+1+32]=e[c+0+96]=se(w,Q,F),e[c+2+32]=e[c+1+96]=se(Q,F,y),e[c+3+32]=e[c+2+96]=se(F,y,E),e[c+3+64]=se(y,E,S),e[c+3+96]=se(E,S,_)}function za(e,c){var f=e[c-1+0],w=e[c-1+32],Q=e[c-1+64],F=e[c-1+96];e[c+0+0]=f+w+1>>1,e[c+2+0]=e[c+0+32]=w+Q+1>>1,e[c+2+32]=e[c+0+64]=Q+F+1>>1,e[c+1+0]=se(f,w,Q),e[c+3+0]=e[c+1+32]=se(w,Q,F),e[c+3+32]=e[c+1+64]=se(Q,F,F),e[c+3+64]=e[c+2+64]=e[c+0+96]=e[c+1+96]=e[c+2+96]=e[c+3+96]=F}function Xs(e,c){var f=e[c-1+0],w=e[c-1+32],Q=e[c-1+64],F=e[c-1+96],y=e[c-1-32],E=e[c+0-32],S=e[c+1-32],_=e[c+2-32];e[c+0+0]=e[c+2+32]=f+y+1>>1,e[c+0+32]=e[c+2+64]=w+f+1>>1,e[c+0+64]=e[c+2+96]=Q+w+1>>1,e[c+0+96]=F+Q+1>>1,e[c+3+0]=se(E,S,_),e[c+2+0]=se(y,E,S),e[c+1+0]=e[c+3+32]=se(f,y,E),e[c+1+32]=e[c+3+64]=se(w,f,y),e[c+1+64]=e[c+3+96]=se(Q,w,f),e[c+1+96]=se(F,Q,w)}function dt(e,c){var f;for(f=0;8>f;++f)o(e,c+32*f,e,c-32,8)}function Bn(e,c){var f;for(f=0;8>f;++f)l(e,c,e[c-1],8),c+=32}function vi(e,c,f){var w;for(w=0;8>w;++w)l(c,f+32*w,e,8)}function zn(e,c){var f,w=8;for(f=0;8>f;++f)w+=e[c+f-32]+e[c-1+32*f];vi(w>>4,e,c)}function Js(e,c){var f,w=4;for(f=0;8>f;++f)w+=e[c+f-32];vi(w>>3,e,c)}function gn(e,c){var f,w=4;for(f=0;8>f;++f)w+=e[c-1+32*f];vi(w>>3,e,c)}function Wa(e,c){vi(128,e,c)}function $i(e,c,f){var w=e[c-f],Q=e[c+0],F=3*(Q-w)+ec[1020+e[c-2*f]-e[c+f]],y=xe[112+(F+4>>3)];e[c-f]=Ce[255+w+xe[112+(F+3>>3)]],e[c+0]=Ce[255+Q-y]}function Ys(e,c,f,w){return Vt[255+e[c-2*f]-e[c-f]]>w||Vt[255+e[c+f]-e[c+0]]>w}function Zs(e,c,f,w){return 4*Vt[255+e[c-f]-e[c+0]]+Vt[255+e[c-2*f]-e[c+f]]<=w}function $s(e,c,f,w,Q){var F=e[c-3*f],y=e[c-2*f],E=e[c-f],S=e[c+0],_=e[c+f],k=e[c+2*f];return 4*Vt[255+E-S]+Vt[255+y-_]>w?0:Vt[255+e[c-4*f]-F]<=Q&&Vt[255+F-y]<=Q&&Vt[255+y-E]<=Q&&Vt[255+e[c+3*f]-k]<=Q&&Vt[255+k-_]<=Q&&Vt[255+_-S]<=Q}function Ao(e,c,f,w){var Q=2*w+1;for(w=0;16>w;++w)Zs(e,c+w,f,Q)&&$i(e,c+w,f)}function $r(e,c,f,w){var Q=2*w+1;for(w=0;16>w;++w)Zs(e,c+w*f,1,Q)&&$i(e,c+w*f,1)}function dn(e,c,f,w){var Q;for(Q=3;0<Q;--Q)Ao(e,c+=4*f,f,w)}function eo(e,c,f,w){var Q;for(Q=3;0<Q;--Q)$r(e,c+=4,f,w)}function pn(e,c,f,w,Q,F,y,E){for(F=2*F+1;0<Q--;){if($s(e,c,f,F,y))if(Ys(e,c,f,E))$i(e,c,f);else{var S=e,_=c,k=f,nA=S[_-2*k],iA=S[_-k],W=S[_+0],QA=S[_+k],gA=S[_+2*k],$=27*(FA=ec[1020+3*(W-iA)+ec[1020+nA-QA]])+63>>7,Y=18*FA+63>>7,FA=9*FA+63>>7;S[_-3*k]=Ce[255+S[_-3*k]+FA],S[_-2*k]=Ce[255+nA+Y],S[_-k]=Ce[255+iA+$],S[_+0]=Ce[255+W-$],S[_+k]=Ce[255+QA-Y],S[_+2*k]=Ce[255+gA-FA]}c+=w}}function pr(e,c,f,w,Q,F,y,E){for(F=2*F+1;0<Q--;){if($s(e,c,f,F,y))if(Ys(e,c,f,E))$i(e,c,f);else{var S=e,_=c,k=f,nA=S[_-k],iA=S[_+0],W=S[_+k],QA=xe[112+(4+(gA=3*(iA-nA))>>3)],gA=xe[112+(gA+3>>3)],$=QA+1>>1;S[_-2*k]=Ce[255+S[_-2*k]+$],S[_-k]=Ce[255+nA+gA],S[_+0]=Ce[255+iA-QA],S[_+k]=Ce[255+W-$]}c+=w}}function Aa(e,c,f,w,Q,F){pn(e,c,f,1,16,w,Q,F)}function wn(e,c,f,w,Q,F){pn(e,c,1,f,16,w,Q,F)}function $o(e,c,f,w,Q,F){var y;for(y=3;0<y;--y)pr(e,c+=4*f,f,1,16,w,Q,F)}function ea(e,c,f,w,Q,F){var y;for(y=3;0<y;--y)pr(e,c+=4,1,f,16,w,Q,F)}function Ac(e,c,f,w,Q,F,y,E){pn(e,c,Q,1,8,F,y,E),pn(f,w,Q,1,8,F,y,E)}function Xa(e,c,f,w,Q,F,y,E){pn(e,c,1,Q,8,F,y,E),pn(f,w,1,Q,8,F,y,E)}function Wn(e,c,f,w,Q,F,y,E){pr(e,c+4*Q,Q,1,8,F,y,E),pr(f,w+4*Q,Q,1,8,F,y,E)}function mi(e,c,f,w,Q,F,y,E){pr(e,c+4,1,Q,8,F,y,E),pr(f,w+4,1,Q,8,F,y,E)}function ta(){this.ba=new Nr,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new tt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ra(){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 Ci(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ja(){this.ua=0,this.Wa=new z,this.vb=new z,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new X,this.yc=new M}function to(){this.xb=this.a=0,this.l=new pi,this.ca=new Nr,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ja,this.ab=0,this.gc=B(4,Ci),this.Oc=0}function Qi(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new pi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Fi(e,c,f,w,Q,F,y){for(e=null==e?0:e[c+0],c=0;c<y;++c)Q[F+c]=e+f[w+c]&255,e=Q[F+c]}function Xn(e,c,f,w,Q,F,y){var E;if(null==e)Fi(null,null,f,w,Q,F,y);else for(E=0;E<y;++E)Q[F+E]=e[c+E]+f[w+E]&255}function vn(e,c,f,w,Q,F,y){if(null==e)Fi(null,null,f,w,Q,F,y);else{var E,S=e[c+0],_=S,k=S;for(E=0;E<y;++E)_=k+(S=e[c+E])-_,k=f[w+E]+(-256&_?0>_?0:255:_)&255,_=S,Q[F+E]=k}}function na(e,c,f,w){var Q=c.width,F=c.o;if(A(null!=e&&null!=c),0>f||0>=w||f+w>F)return null;if(!e.Cc){if(null==e.ga){var y;if(e.ga=new Qi,(y=null==e.ga)||(y=c.width*c.o,A(0==e.Gb.length),e.Gb=u(y),e.Uc=0,null==e.Gb?y=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,y=1),y=!y),!y){var E=e.Fa,S=e.P,_=e.qc,k=e.mb,nA=e.nb,iA=S+1,W=_-1,QA=(y=e.ga).l;if(A(null!=E&&null!=k&&null!=c),Ln[0]=null,Ln[1]=Fi,Ln[2]=Xn,Ln[3]=vn,y.ca=k,y.tb=nA,y.c=c.width,y.i=c.height,A(0<y.c&&0<y.i),1>=_)c=0;else if(y.$a=E[S+0]>>0&3,y.Z=E[S+0]>>2&3,y.Lc=E[S+0]>>4&3,S=E[S+0]>>6&3,0>y.$a||1<y.$a||4<=y.Z||1<y.Lc||S)c=0;else if(QA.put=Wr,QA.ac=Ut,QA.bc=Xr,QA.ma=y,QA.width=c.width,QA.height=c.height,QA.Da=c.Da,QA.v=c.v,QA.va=c.va,QA.j=c.j,QA.o=c.o,y.$a)A:{A(1==y.$a),c=dr();e:for(;;){if(null==c){c=0;break A}if(A(null!=y),y.mc=c,c.c=y.c,c.i=y.i,c.l=y.l,c.l.ma=y,c.l.width=y.c,c.l.height=y.i,c.a=0,hA(c.m,E,iA,W),!Yr(y.c,y.i,1,c,null)||(1==c.ab&&3==c.gc[0].hc&&fn(c.s)?(y.ic=1,E=c.c*c.i,c.Ta=null,c.Ua=0,c.V=u(E),c.Ba=0,null==c.V?(c.a=1,c=0):c=1):(y.ic=0,c=er(c,y.c)),!c))break e;c=1;break A}y.mc=null,c=0}else c=W>=y.c*y.i;y=!c}if(y)return null;1!=e.ga.Lc?e.Ga=0:w=F-f}A(null!=e.ga),A(f+w<=F);A:{if(c=(E=e.ga).c,F=E.l.o,0==E.$a){if(iA=e.rc,W=e.Vc,QA=e.Fa,_=e.mb,k=e.nb+f*c,A((S=e.P+1+f*c)<=e.P+e.qc),0!=E.Z)for(A(null!=Ln[E.Z]),y=0;y<w;++y)Ln[E.Z](iA,W,QA,S,_,k,c),iA=_,W=k,k+=c,S+=c;else for(y=0;y<w;++y)o(_,k,QA,S,c),iA=_,W=k,k+=c,S+=c;e.rc=iA,e.Vc=W}else{if(A(null!=E.mc),c=f+w,A(null!=(y=E.mc)),A(c<=y.i),y.C>=c)c=1;else if(E.ic||oA(),E.ic){E=y.V,iA=y.Ba;var gA=y.i,$=(QA=1,S=y.$/(W=y.c),_=y.$%W,k=y.m,nA=y.s,y.$),Y=W*gA,FA=W*c,xA=nA.wc,LA=$<FA?ft(nA,_,S):null;A($<=Y),A(c<=gA),A(fn(nA));e:for(;;){for(;!k.h&&$<FA;){if(_&xA||(LA=ft(nA,_,S)),A(null!=LA),sA(k),256>(gA=kA(LA.G[0],LA.H[0],k)))E[iA+$]=gA,++$,++_>=W&&(_=0,++S<=c&&!(S%16)&&kt(y,S));else{if(!(280>gA)){QA=0;break e}gA=_r(gA-256,k);var PA,TA=kA(LA.G[4],LA.H[4],k);if(sA(k),!($>=(TA=Dr(W,TA=_r(TA,k)))&&Y-$>=gA)){QA=0;break e}for(PA=0;PA<gA;++PA)E[iA+$+PA]=E[iA+$+PA-TA];for($+=gA,_+=gA;_>=W;)_-=W,++S<=c&&!(S%16)&&kt(y,S);$<FA&&_&xA&&(LA=ft(nA,_,S))}A(k.h==q(k))}kt(y,S>c?c:S);break e}!QA||k.h&&$<Y?(QA=0,y.a=k.h?5:3):y.$=$,c=QA}else c=Yt(y,y.V,y.Ba,y.c,y.i,c,Gn);if(!c){w=0;break A}}f+w>=F&&(e.Cc=1),w=1}if(!w)return null;if(e.Cc&&(null!=(w=e.ga)&&(w.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+f*Q}function h(e,c,f,w,Q,F){for(;0<Q--;){var y,E=e,S=c+(f?1:0),_=e,k=c+(f?0:3);for(y=0;y<w;++y){var nA=_[k+4*y];255!=nA&&(E[S+4*y+0]=E[S+4*y+0]*(nA*=32897)>>23,E[S+4*y+1]=E[S+4*y+1]*nA>>23,E[S+4*y+2]=E[S+4*y+2]*nA>>23)}c+=F}}function L(e,c,f,w,Q){for(;0<w--;){var F;for(F=0;F<f;++F){var y=e[c+2*F+0],E=15&(_=e[c+2*F+1]),S=4369*E,_=(240&_|_>>4)*S>>16;e[c+2*F+0]=(240&y|y>>4)*S>>16&240|(15&y|y<<4)*S>>16>>4&15,e[c+2*F+1]=240&_|E}c+=Q}}function V(e,c,f,w,Q,F,y,E){var S,_,k=255;for(_=0;_<Q;++_){for(S=0;S<w;++S){var nA=e[c+S];F[y+4*S]=nA,k&=nA}c+=f,y+=E}return 255!=k}function Z(e,c,f,w,Q){var F;for(F=0;F<Q;++F)f[w+F]=e[c+F]>>8}function oA(){Fr=h,Oe=L,Ke=V,$e=Z}function CA(e,c,f){J[e]=function(w,Q,F,y,E,S,_,k,nA,iA,W,QA,gA,$,Y,FA,xA){var LA,PA=xA-1>>1,TA=E[S+0]|_[k+0]<<16,JA=nA[iA+0]|W[QA+0]<<16;A(null!=w);var MA=3*TA+JA+131074>>2;for(c(w[Q+0],255&MA,MA>>16,gA,$),null!=F&&c(F[y+0],255&(MA=3*JA+TA+131074>>2),MA>>16,Y,FA),LA=1;LA<=PA;++LA){var we=E[S+LA]|_[k+LA]<<16,ye=nA[iA+LA]|W[QA+LA]<<16,ge=TA+we+JA+ye+524296,he=ge+2*(we+JA)>>3;MA=he+TA>>1,TA=(ge=ge+2*(TA+ye)>>3)+we>>1,c(w[Q+2*LA-1],255&MA,MA>>16,gA,$+(2*LA-1)*f),c(w[Q+2*LA-0],255&TA,TA>>16,gA,$+(2*LA-0)*f),null!=F&&(TA=he+ye>>1,c(F[y+2*LA-1],255&(MA=ge+JA>>1),MA>>16,Y,FA+(2*LA-1)*f),c(F[y+2*LA+0],255&TA,TA>>16,Y,FA+(2*LA+0)*f)),TA=we,JA=ye}1&xA||(c(w[Q+xA-1],255&(MA=3*TA+JA+131074>>2),MA>>16,gA,$+(xA-1)*f),null!=F&&c(F[y+xA-1],255&(MA=3*JA+TA+131074>>2),MA>>16,Y,FA+(xA-1)*f))}}function HA(){yr[no]=Zu,yr[Si]=au,yr[Au]=$u,yr[Hi]=su,yr[io]=ou,yr[tc]=cu,yr[rc]=Al,yr[nc]=au,yr[ao]=su,yr[so]=ou,yr[oo]=cu}function XA(e){return e&~el?0>e?0:255:e>>uu}function $A(e,c){return XA((19077*e>>8)+(26149*c>>8)-14234)}function fe(e,c,f){return XA((19077*e>>8)-(6419*c>>8)-(13320*f>>8)+8708)}function oe(e,c){return XA((19077*e>>8)+(33050*c>>8)-17685)}function me(e,c,f,w,Q){w[Q+0]=$A(e,f),w[Q+1]=fe(e,c,f),w[Q+2]=oe(e,c)}function Xe(e,c,f,w,Q){w[Q+0]=oe(e,c),w[Q+1]=fe(e,c,f),w[Q+2]=$A(e,f)}function Ye(e,c,f,w,Q){var F=fe(e,c,f);c=F<<3&224|oe(e,c)>>3,w[Q+0]=248&$A(e,f)|F>>5,w[Q+1]=c}function rt(e,c,f,w,Q){var F=240&oe(e,c)|15;w[Q+0]=240&$A(e,f)|fe(e,c,f)>>4,w[Q+1]=F}function Lt(e,c,f,w,Q){w[Q+0]=255,me(e,c,f,w,Q+1)}function pt(e,c,f,w,Q){Xe(e,c,f,w,Q),w[Q+3]=255}function Tr(e,c,f,w,Q){me(e,c,f,w,Q),w[Q+3]=255}function _t(e,c){return 0>e?0:e>c?c:e}function rr(e,c,f){J[e]=function(w,Q,F,y,E,S,_,k,nA){for(var iA=k+(-2&nA)*f;k!=iA;)c(w[Q+0],F[y+0],E[S+0],_,k),c(w[Q+1],F[y+0],E[S+0],_,k+f),Q+=2,++y,++S,k+=2*f;1&nA&&c(w[Q+0],F[y+0],E[S+0],_,k)}}function Ya(e,c,f){return 0==f?0==e?0==c?6:5:0==c?4:0:f}function ia(e,c,f,w,Q){switch(e>>>30){case 3:Fn(c,f,w,Q,0);break;case 2:Ze(c,f,w,Q);break;case 1:Gt(c,f,w,Q)}}function Za(e,c){var f,w,Q=c.M,F=c.Nb,y=e.oc,E=e.pc+40,S=e.oc,_=e.pc+584,k=e.oc,nA=e.pc+600;for(f=0;16>f;++f)y[E+32*f-1]=129;for(f=0;8>f;++f)S[_+32*f-1]=129,k[nA+32*f-1]=129;for(0<Q?y[E-1-32]=S[_-1-32]=k[nA-1-32]=129:(l(y,E-32-1,127,21),l(S,_-32-1,127,9),l(k,nA-32-1,127,9)),w=0;w<e.za;++w){var iA=c.ya[c.aa+w];if(0<w){for(f=-1;16>f;++f)o(y,E+32*f-4,y,E+32*f+12,4);for(f=-1;8>f;++f)o(S,_+32*f-4,S,_+32*f+4,4),o(k,nA+32*f-4,k,nA+32*f+4,4)}var W=e.Gd,QA=e.Hd+w,gA=iA.ad,$=iA.Hc;if(0<Q&&(o(y,E-32,W[QA].y,0,16),o(S,_-32,W[QA].f,0,8),o(k,nA-32,W[QA].ea,0,8)),iA.Za){var Y=y,FA=E-32+16;for(0<Q&&(w>=e.za-1?l(Y,FA,W[QA].y[15],4):o(Y,FA,W[QA+1].y,0,4)),f=0;4>f;f++)Y[FA+128+f]=Y[FA+256+f]=Y[FA+384+f]=Y[FA+0+f];for(f=0;16>f;++f,$<<=2)Or[iA.Ob[f]](Y=y,FA=E+P[f]),ia($,gA,16*+f,Y,FA)}else if(Y=Ya(w,Q,iA.Ob[0]),ir[Y](y,E),0!=$)for(f=0;16>f;++f,$<<=2)ia($,gA,16*+f,y,E+P[f]);for(f=iA.Gc,Y=Ya(w,Q,iA.Dd),bn[Y](S,_),bn[Y](k,nA),$=gA,Y=S,FA=_,255&(iA=f>>0)&&(170&iA?es($,256,Y,FA):Cr($,256,Y,FA)),iA=k,$=nA,255&(f>>=8)&&(170&f?es(gA,320,iA,$):Cr(gA,320,iA,$)),Q<e.Ub-1&&(o(W[QA].y,0,y,E+480,16),o(W[QA].f,0,S,_+224,8),o(W[QA].ea,0,k,nA+224,8)),W=e.sa,QA=e.ta+16*w+16*F*e.R,gA=e.qa,iA=e.ra+8*w+(f=8*F*e.B),$=e.Ha,Y=e.Ia+8*w+f,f=0;16>f;++f)o(W,QA+f*e.R,y,E+32*f,16);for(f=0;8>f;++f)o(gA,iA+f*e.B,S,_+32*f,8),o($,Y+f*e.B,k,nA+32*f,8)}}function yi(e,c,f,w,Q,F,y,E,S){var _=[0],k=[0],nA=0,iA=null!=S?S.kd:0,W=S??new ra;if(null==e||12>f)return 7;W.data=e,W.w=c,W.ha=f,c=[c],f=[f],W.gb=[W.gb];A:{var QA=c,gA=f,$=W.gb;if(A(null!=e),A(null!=gA),A(null!=$),$[0]=0,12<=gA[0]&&!t(e,QA[0],"RIFF")){if(t(e,QA[0]+8,"WEBP")){$=3;break A}var Y=GA(e,QA[0]+4);if(12>Y||4294967286<Y){$=3;break A}if(iA&&Y>gA[0]-8){$=7;break A}$[0]=Y,QA[0]+=12,gA[0]-=12}$=0}if(0!=$)return $;for(Y=0<W.gb[0],f=f[0];;){A:{var FA=e;gA=c,$=f;var xA=_,LA=k,PA=QA=[0];if((MA=nA=[nA])[0]=0,8>$[0])$=7;else{if(!t(FA,gA[0],"VP8X")){if(10!=GA(FA,gA[0]+4)){$=3;break A}if(18>$[0]){$=7;break A}var TA=GA(FA,gA[0]+8),JA=1+VA(FA,gA[0]+12);if(2147483648<=JA*(FA=1+VA(FA,gA[0]+15))){$=3;break A}null!=PA&&(PA[0]=TA),null!=xA&&(xA[0]=JA),null!=LA&&(LA[0]=FA),gA[0]+=18,$[0]-=18,MA[0]=1}$=0}}if(nA=nA[0],0!=$)return $;if(gA=!!(2&(QA=QA[0])),!Y&&nA)return 3;if(null!=F&&(F[0]=!!(16&QA)),null!=y&&(y[0]=gA),null!=E&&(E[0]=0),y=_[0],QA=k[0],nA&&gA&&null==S){$=0;break}if(4>f){$=7;break}if(Y&&nA||!Y&&!nA&&!t(e,c[0],"ALPH")){f=[f],W.na=[W.na],W.P=[W.P],W.Sa=[W.Sa];A:{$=c,Y=f;var MA=W.gb;xA=W.na,LA=W.P,PA=W.Sa,JA=22,A(null!=(TA=e)),A(null!=Y),FA=$[0];var we=Y[0];for(A(null!=xA),A(null!=PA),xA[0]=null,LA[0]=null,PA[0]=0;;){if($[0]=FA,Y[0]=we,8>we){$=7;break A}var ye=GA(TA,FA+4);if(4294967286<ye){$=3;break A}var ge=8+ye+1&-2;if(JA+=ge,0<MA&&JA>MA){$=3;break A}if(!t(TA,FA,"VP8 ")||!t(TA,FA,"VP8L")){$=0;break A}if(we[0]<ge){$=7;break A}t(TA,FA,"ALPH")||(xA[0]=TA,LA[0]=FA+8,PA[0]=ye),FA+=ge,we-=ge}}if(f=f[0],W.na=W.na[0],W.P=W.P[0],W.Sa=W.Sa[0],0!=$)break}f=[f],W.Ja=[W.Ja],W.xa=[W.xa];A:if(MA=e,$=c,Y=f,xA=W.gb[0],LA=W.Ja,PA=W.xa,TA=$[0],FA=!t(MA,TA,"VP8 "),JA=!t(MA,TA,"VP8L"),A(null!=MA),A(null!=Y),A(null!=LA),A(null!=PA),8>Y[0])$=7;else{if(FA||JA){if(MA=GA(MA,TA+4),12<=xA&&MA>xA-12){$=3;break A}if(iA&&MA>Y[0]-8){$=7;break A}LA[0]=MA,$[0]+=8,Y[0]-=8,PA[0]=JA}else PA[0]=5<=Y[0]&&47==MA[TA+0]&&!(MA[TA+4]>>5),LA[0]=Y[0];$=0}if(f=f[0],W.Ja=W.Ja[0],W.xa=W.xa[0],c=c[0],0!=$)break;if(4294967286<W.Ja)return 3;if(null==E||gA||(E[0]=W.xa?2:1),y=[y],QA=[QA],W.xa){if(5>f){$=7;break}E=y,iA=QA,gA=F,null==e||5>f?e=0:5<=f&&47==e[c+0]&&!(e[c+4]>>5)?(Y=[0],MA=[0],xA=[0],hA(LA=new x,e,c,f),ee(LA,Y,MA,xA)?(null!=E&&(E[0]=Y[0]),null!=iA&&(iA[0]=MA[0]),null!=gA&&(gA[0]=xA[0]),e=1):e=0):e=0}else{if(10>f){$=7;break}E=QA,null==e||10>f||!ks(e,c+3,f-3)?e=0:(iA=e[c+0]|e[c+1]<<8|e[c+2]<<16,gA=16383&(e[c+7]<<8|e[c+6]),e=16383&(e[c+9]<<8|e[c+8]),1&iA||3<(iA>>1&7)||!(iA>>4&1)||iA>>5>=W.Ja||!gA||!e?e=0:(y&&(y[0]=gA),E&&(E[0]=e),e=1))}if(!e||(y=y[0],QA=QA[0],nA&&(_[0]!=y||k[0]!=QA)))return 3;null!=S&&(S[0]=W,S.offset=c-S.w,A(4294967286>c-S.w),A(S.offset==S.ha-f));break}return 0==$||7==$&&nA&&null==S?(null!=F&&(F[0]|=null!=W.na&&0<W.na.length),null!=w&&(w[0]=y),null!=Q&&(Q[0]=QA),0):$}function aa(e,c,f){var w=c.width,Q=c.height,F=0,y=0,E=w,S=Q;if(c.Da=null!=e&&0<e.Da,c.Da&&(E=e.cd,S=e.bd,F=e.v,y=e.j,11>f||(F&=-2,y&=-2),0>F||0>y||0>=E||0>=S||F+E>w||y+S>Q))return 0;if(c.v=F,c.j=y,c.va=F+E,c.o=y+S,c.U=E,c.T=S,c.da=null!=e&&0<e.da,c.da){if(!le(E,S,f=[e.ib],F=[e.hb]))return 0;c.ib=f[0],c.hb=F[0]}return c.ob=null!=e&&e.ob,c.Kb=null==e||!e.Sd,c.da&&(c.ob=c.ib<3*w/4&&c.hb<3*Q/4,c.Kb=0),1}function $a(e){if(null==e)return 2;if(11>e.S){var c=e.f.RGBA;c.fb+=(e.height-1)*c.A,c.A=-c.A}else(c=e.f.kb).O+=((e=e.height)-1)*c.fa,c.fa=-c.fa,c.N+=(e-1>>1)*c.Ab,c.Ab=-c.Ab,c.W+=(e-1>>1)*c.Db,c.Db=-c.Db,null!=c.F&&(c.J+=(e-1)*c.lb,c.lb=-c.lb);return 0}function sa(e,c,f,w){if(null==w||0>=e||0>=c)return 2;if(null!=f){if(f.Da){var Q=f.cd,F=f.bd,y=-2&f.v,E=-2&f.j;if(0>y||0>E||0>=Q||0>=F||y+Q>e||E+F>c)return 2;e=Q,c=F}if(f.da){if(!le(e,c,Q=[f.ib],F=[f.hb]))return 2;e=Q[0],c=F[0]}}w.width=e,w.height=c;A:{var S=w.width,_=w.height;if(e=w.S,0>=S||0>=_||!(e>=no&&13>e))e=2;else{if(0>=w.Rd&&null==w.sd){y=F=Q=c=0;var k=(E=S*uA[e])*_;if(11>e||(F=(_+1)/2*(c=(S+1)/2),12==e&&(y=(Q=S)*_)),null==(_=u(k+2*F+y))){e=1;break A}w.sd=_,11>e?((S=w.f.RGBA).eb=_,S.fb=0,S.A=E,S.size=k):((S=w.f.kb).y=_,S.O=0,S.fa=E,S.Fd=k,S.f=_,S.N=0+k,S.Ab=c,S.Cd=F,S.ea=_,S.W=0+k+F,S.Db=c,S.Ed=F,12==e&&(S.F=_,S.J=0+k+2*F),S.Tc=y,S.lb=Q)}if(c=1,F=w.width,y=w.height,(Q=w.S)>=no&&13>Q)if(11>Q)e=w.f.RGBA,c&=(E=Math.abs(e.A))*(y-1)+F<=e.size,c&=E>=F*uA[Q],c&=null!=e.eb;else{e=w.f.kb,E=(F+1)/2,k=(y+1)/2,S=Math.abs(e.fa),_=Math.abs(e.Ab);var nA=Math.abs(e.Db),iA=Math.abs(e.lb);c&=S*(y-1)+F<=e.Fd,c&=_*(k-1)+E<=e.Cd,c=(c&=nA*(k-1)+E<=e.Ed)&S>=F&_>=E&nA>=E,c&=null!=e.y,c&=null!=e.f,c&=null!=e.ea,12==Q&&(c&=iA>=F,c&=iA*(y-1)+F<=e.Tc,c&=null!=e.F)}else c=0;e=c?0:2}}return 0!=e||null!=f&&f.fd&&(e=$a(w)),e}var nt=64,Ui=[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],ke=24,wr=32,An=8,lt=[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];RA("Predictor0","PredictorAdd0"),J.Predictor0=function(){return 4278190080},J.Predictor1=function(e){return e},J.Predictor2=function(e,c,f){return c[f+0]},J.Predictor3=function(e,c,f){return c[f+1]},J.Predictor4=function(e,c,f){return c[f-1]},J.Predictor5=function(e,c,f){return jA(jA(e,c[f+1]),c[f+0])},J.Predictor6=function(e,c,f){return jA(e,c[f-1])},J.Predictor7=function(e,c,f){return jA(e,c[f+0])},J.Predictor8=function(e,c,f){return jA(c[f-1],c[f+0])},J.Predictor9=function(e,c,f){return jA(c[f+0],c[f+1])},J.Predictor10=function(e,c,f){return jA(jA(e,c[f-1]),jA(c[f+0],c[f+1]))},J.Predictor11=function(e,c,f){var w=c[f+0];return 0>=Be(w>>24&255,e>>24&255,(c=c[f-1])>>24&255)+Be(w>>16&255,e>>16&255,c>>16&255)+Be(w>>8&255,e>>8&255,c>>8&255)+Be(255&w,255&e,255&c)?w:e},J.Predictor12=function(e,c,f){var w=c[f+0];return(ZA((e>>24&255)+(w>>24&255)-((c=c[f-1])>>24&255))<<24|ZA((e>>16&255)+(w>>16&255)-(c>>16&255))<<16|ZA((e>>8&255)+(w>>8&255)-(c>>8&255))<<8|ZA((255&e)+(255&w)-(255&c)))>>>0},J.Predictor13=function(e,c,f){var w=c[f-1];return(ce((e=jA(e,c[f+0]))>>24&255,w>>24&255)<<24|ce(e>>16&255,w>>16&255)<<16|ce(e>>8&255,w>>8&255)<<8|ce(e>>0&255,w>>0&255))>>>0};var en=J.PredictorAdd0;J.PredictorAdd1=de,RA("Predictor2","PredictorAdd2"),RA("Predictor3","PredictorAdd3"),RA("Predictor4","PredictorAdd4"),RA("Predictor5","PredictorAdd5"),RA("Predictor6","PredictorAdd6"),RA("Predictor7","PredictorAdd7"),RA("Predictor8","PredictorAdd8"),RA("Predictor9","PredictorAdd9"),RA("Predictor10","PredictorAdd10"),RA("Predictor11","PredictorAdd11"),RA("Predictor12","PredictorAdd12"),RA("Predictor13","PredictorAdd13");var mn=J.PredictorAdd2;pe("ColorIndexInverseTransform","MapARGB","32b",function(e){return e>>8&255},function(e){return e}),pe("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(e){return e},function(e){return e>>8&255});var vr,nr=J.ColorIndexInverseTransform,bi=J.MapARGB,As=J.VP8LColorIndexInverseTransformAlpha,oa=J.MapAlpha,mr=J.VP8LPredictorsAdd=[];mr.length=16,(J.VP8LPredictors=[]).length=16,(J.VP8LPredictorsAdd_C=[]).length=16,(J.VP8LPredictors_C=[]).length=16;var Jn,Rt,mt,Yn,Cn,Qn,ca,Fn,Ze,es,Gt,Cr,ua,ro,Li,yn,Zn,$n,Ei,Ii,xi,Ai,ts,Qr,Fr,Oe,Ke,$e,wt=u(511),KA=u(2041),tn=u(225),Un=u(767),jt=0,ec=KA,xe=tn,Ce=Un,Vt=wt,no=0,Si=1,Au=2,Hi=3,io=4,tc=5,rc=6,nc=7,ao=8,so=9,oo=10,eu=[2,3,7],ic=[3,3,11],ac=[280,256,256,256,40],qu=[0,1,1,1,0],tu=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],zu=[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],Wu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Xu=8,la=[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],Zt=[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],fa=null,co=[[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]],Ju=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ru=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],sc=[[[[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]]]],ha=[[[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]]],uo=[[[[255,255,255,255,255,255,255,255,255,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]]]],Yu=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ir=[],Or=[],bn=[],nu=1,iu=2,Ln=[],yr=[];CA("UpsampleRgbLinePair",me,3),CA("UpsampleBgrLinePair",Xe,3),CA("UpsampleRgbaLinePair",Tr,4),CA("UpsampleBgraLinePair",pt,4),CA("UpsampleArgbLinePair",Lt,4),CA("UpsampleRgba4444LinePair",rt,2),CA("UpsampleRgb565LinePair",Ye,2);var Zu=J.UpsampleRgbLinePair,$u=J.UpsampleBgrLinePair,au=J.UpsampleRgbaLinePair,su=J.UpsampleBgraLinePair,ou=J.UpsampleArgbLinePair,cu=J.UpsampleRgba4444LinePair,Al=J.UpsampleRgb565LinePair,lo=16,fo=1<<lo-1,rs=-227,oc=482,uu=6,el=(256<<uu)-1,i=0,n=u(256),s=u(256),a=u(256),d=u(256),C=u(oc-rs),I=u(oc-rs);rr("YuvToRgbRow",me,3),rr("YuvToBgrRow",Xe,3),rr("YuvToRgbaRow",Tr,4),rr("YuvToBgraRow",pt,4),rr("YuvToArgbRow",Lt,4),rr("YuvToRgba4444Row",rt,2),rr("YuvToRgb565Row",Ye,2);var P=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],O=[0,2,8],eA=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(e,c,f,w,Q){var F=Si,y=new ta,E=new Nr;y.ba=E,E.S=F,E.width=[E.width],E.height=[E.height];var S=E.width,_=E.height,k=new ln;if(null==k||null==e)var nA=2;else A(null!=k),nA=yi(e,c,f,k.width,k.height,k.Pd,k.Qd,k.format,null);if(0!=nA?S=0:(null!=S&&(S[0]=k.width[0]),null!=_&&(_[0]=k.height[0]),S=1),S){E.width=E.width[0],E.height=E.height[0],null!=w&&(w[0]=E.width),null!=Q&&(Q[0]=E.height);A:{if(w=new pi,(Q=new ra).data=e,Q.w=c,Q.ha=f,Q.kd=1,c=[0],A(null!=Q),(0==(e=yi(Q.data,Q.w,Q.ha,null,null,null,c,null,Q))||7==e)&&c[0]&&(e=4),0==(c=e)){if(A(null!=y),w.data=Q.data,w.w=Q.w+Q.offset,w.ha=Q.ha-Q.offset,w.put=Wr,w.ac=Ut,w.bc=Xr,w.ma=y,Q.xa){if(null==(e=dr())){y=1;break A}if(function(iA,W){var QA=[0],gA=[0],$=[0];e:for(;;){if(null==iA)return 0;if(null==W)return iA.a=2,0;if(iA.l=W,iA.a=0,hA(iA.m,W.data,W.w,W.ha),!ee(iA.m,QA,gA,$)){iA.a=3;break e}if(iA.xb=iu,W.width=QA[0],W.height=gA[0],!Yr(QA[0],gA[0],1,iA,null))break e;return 1}return A(0!=iA.a),0}(e,w)){if(w=0==(c=sa(w.width,w.height,y.Oa,y.ba))){e:{w=e;t:for(;;){if(null==w){w=0;break e}if(A(null!=w.s.yc),A(null!=w.s.Ya),A(0<w.s.Wb),A(null!=(f=w.l)),A(null!=(Q=f.ma)),0!=w.xb){if(w.ca=Q.ba,w.tb=Q.tb,A(null!=w.ca),!aa(Q.Oa,f,Hi)){w.a=2;break t}if(!er(w,f.width)||f.da)break t;if((f.da||Ne(w.ca.S))&&oA(),11>w.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=w.ca.f.kb.F&&oA()),w.Pb&&0<w.s.ua&&null==w.s.vb.X&&!re(w.s.vb,w.s.Wa.Xa)){w.a=1;break t}w.xb=0}if(!Yt(w,w.V,w.Ba,w.c,w.i,f.o,Mt))break t;Q.Dc=w.Ma,w=1;break e}A(0!=w.a),w=0}w=!w}w&&(c=e.a)}else c=e.a}else{if(null==(e=new zo)){y=1;break A}if(e.Fa=Q.na,e.P=Q.P,e.qc=Q.Sa,Ra(e,w)){if(0==(c=sa(w.width,w.height,y.Oa,y.ba))){if(e.Aa=0,f=y.Oa,A(null!=(Q=e)),null!=f){if(0<(S=0>(S=f.Md)?0:100<S?255:255*S/100)){for(_=k=0;4>_;++_)12>(nA=Q.pb[_]).lc&&(nA.ia=S*eA[0>nA.lc?0:nA.lc]>>3),k|=nA.ia;k&&(alert("todo:VP8InitRandom"),Q.ia=1)}Q.Ga=f.Id,100<Q.Ga?Q.Ga=100:0>Q.Ga&&(Q.Ga=0)}(function Wo(e,c){if(null==e)return 0;if(null==c)return ut(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!Ra(e,c))return 0;if(A(e.cb),null==c.ac||c.ac(c)){c.ob&&(e.L=0);var f=O[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=c.v-f>>4,e.zb=c.j-f>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=c.o+15+f>>4,e.Hb=c.va+15+f>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var w=e.ed;for(f=0;4>f;++f){var Q;if(e.Qa.Cb){var F=e.Qa.Lb[f];e.Qa.Fb||(F+=w.Tb)}else F=w.Tb;for(Q=0;1>=Q;++Q){var y=e.gd[f][Q],E=F;if(w.Pc&&(E+=w.vd[0],Q&&(E+=w.od[0])),0<(E=0>E?0:63<E?63:E)){var S=E;0<w.wb&&(S=4<w.wb?S>>2:S>>1)>9-w.wb&&(S=9-w.wb),1>S&&(S=1),y.dd=S,y.tc=2*E+S,y.ld=40<=E?2:15<=E?1:0}else y.tc=0;y.La=Q}}}f=0}else ut(e,6,"Frame setup failed"),f=e.a;if(f=0==f){if(f){e.$c=0,0<e.Aa||(e.Ic=1);A:{w=4*(S=e.za);var _=32*S,k=S+1,nA=0<e.L?S*(0<e.Aa?2:1):0,iA=(2==e.Aa?2:1)*S;if((y=w+832+(Q=3*(16*(f=e.Ic)+O[e.L])/2*_)+(F=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=y)f=0;else{if(y>e.Vb){if(e.Vb=0,e.Ec=u(y),e.Fc=0,null==e.Ec){f=ut(e,1,"no memory during frame initialization.");break A}e.Vb=y}E=e.Fc,e.Ac=y=e.Ec,e.Bc=E,E+=w,e.Gd=B(_,Ms),e.Hd=0,e.rb=B(k+1,Ps),e.sb=1,e.wa=nA?B(nA,zi):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=S),A(!0),e.oc=y,e.pc=E,E+=832,e.ya=B(iA,Ka),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=S),e.R=16*S,e.B=8*S,S=(_=O[e.L])*e.R,_=_/2*e.B,e.sa=y,e.ta=E+S,e.qa=e.sa,e.ra=e.ta+16*f*e.R+_,e.Ha=e.qa,e.Ia=e.ra+8*f*e.B+_,e.$c=0,E+=Q,e.mb=F?y:null,e.nb=F?E:null,A(E+F<=e.Fc+e.Vb),Vn(e),l(e.Ac,e.Bc,0,w),f=1}}if(f){if(c.ka=0,c.y=e.sa,c.O=e.ta,c.f=e.qa,c.N=e.ra,c.ea=e.Ha,c.Vd=e.Ia,c.fa=e.R,c.Rc=e.B,c.F=null,c.J=0,!jt){for(f=-255;255>=f;++f)wt[255+f]=0>f?-f:f;for(f=-1020;1020>=f;++f)KA[1020+f]=-128>f?-128:127<f?127:f;for(f=-112;112>=f;++f)tn[112+f]=-16>f?-16:15<f?15:f;for(f=-255;510>=f;++f)Un[255+f]=0>f?0:255<f?255:f;jt=1}ca=js,Fn=Gs,es=Xi,Gt=Ga,Cr=ja,Ze=Rs,ua=Aa,ro=wn,Li=Ac,yn=Xa,Zn=$o,$n=ea,Ei=Wn,Ii=mi,xi=Ao,Ai=$r,ts=dn,Qr=eo,Or[0]=Zr,Or[1]=Vs,Or[2]=Yo,Or[3]=Zo,Or[4]=zs,Or[5]=wi,Or[6]=Ws,Or[7]=qa,Or[8]=Xs,Or[9]=za,ir[0]=Zi,ir[1]=Xo,ir[2]=hn,ir[3]=Yi,ir[4]=Nt,ir[5]=Jo,ir[6]=qs,bn[0]=zn,bn[1]=Va,bn[2]=dt,bn[3]=Bn,bn[4]=gn,bn[5]=Js,bn[6]=Wa,f=1}else f=0}f&&(f=function(W,QA){for(W.M=0;W.M<W.Va;++W.M){var gA,$=W.Jc[W.M&W.Xb],Y=W.m,FA=W;for(gA=0;gA<FA.za;++gA){var xA=Y,LA=FA,PA=LA.Ac,TA=LA.Bc+4*gA,JA=LA.zc,MA=LA.ya[LA.aa+gA];if(MA.$b=LA.Qa.Bb?wA(xA,LA.Pa.jb[0])?2+wA(xA,LA.Pa.jb[2]):wA(xA,LA.Pa.jb[1]):0,LA.kc&&(MA.Ad=wA(xA,LA.Bd)),MA.Za=!wA(xA,145)+0,MA.Za){var we=MA.Ob,ye=0;for(LA=0;4>LA;++LA){var ge,he=JA[0+LA];for(ge=0;4>ge;++ge){for(var Ue=ru[wA(xA,(he=ha[PA[TA+ge]][he])[0])];0<Ue;)Ue=ru[2*Ue+wA(xA,he[Ue])];PA[TA+ge]=he=-Ue}o(we,ye,PA,TA,4),ye+=4,JA[0+LA]=he}}else he=wA(xA,156)?wA(xA,128)?1:3:wA(xA,163)?2:0,MA.Ob[0]=he,l(PA,TA,he,4),l(JA,0,he,4);MA.Dd=wA(xA,142)?wA(xA,114)?wA(xA,183)?1:3:2:0}if(FA.m.Ka)return ut(W,7,"Premature end-of-partition0 encountered.");for(;W.ja<W.za;++W.ja){if(FA=$,xA=(Y=W).rb[Y.sb-1],PA=Y.rb[Y.sb+Y.ja],gA=Y.ya[Y.aa+Y.ja],TA=Y.kc?gA.Ad:0)xA.la=PA.la=0,gA.Za||(xA.Na=PA.Na=0),gA.Hc=0,gA.Gc=0,gA.ia=0;else{var be,ae;if(xA=PA,PA=FA,TA=Y.Pa.Xc,MA=Y.pb[(JA=Y.ya[Y.aa+Y.ja]).$b],ye=Y.rb[Y.sb-1],he=ge=0,l(LA=JA.ad,we=0,0,384),JA.Za)var Ct=0,Ur=TA[3];else{Ue=u(16);var Qt=xA.Na+ye.Na;if(Qt=fa(PA,TA[1],Qt,MA.Eb,0,Ue,0),xA.Na=ye.Na=(0<Qt)+0,1<Qt)ca(Ue,0,LA,we);else{var br=Ue[0]+3>>3;for(Ue=0;256>Ue;Ue+=16)LA[we+Ue]=br}Ct=1,Ur=TA[0]}var Me=15&xA.la,Pr=15&ye.la;for(Ue=0;4>Ue;++Ue){var Mr=1&Pr;for(br=ae=0;4>br;++br)Me=Me>>1|(Mr=(Qt=fa(PA,Ur,Qt=Mr+(1&Me),MA.Sc,Ct,LA,we))>Ct)<<7,ae=ae<<2|(3<Qt?3:1<Qt?2:0!=LA[we+0]),we+=16;Me>>=4,Pr=Pr>>1|Mr<<7,ge=(ge<<8|ae)>>>0}for(Ur=Me,Ct=Pr>>4,be=0;4>be;be+=2){for(ae=0,Me=xA.la>>4+be,Pr=ye.la>>4+be,Ue=0;2>Ue;++Ue){for(Mr=1&Pr,br=0;2>br;++br)Me=Me>>1|(Mr=0<(Qt=fa(PA,TA[2],Qt=Mr+(1&Me),MA.Qc,0,LA,we)))<<3,ae=ae<<2|(3<Qt?3:1<Qt?2:0!=LA[we+0]),we+=16;Me>>=2,Pr=Pr>>1|Mr<<5}he|=ae<<4*be,Ur|=Me<<4<<be,Ct|=(240&Pr)<<be}xA.la=Ur,ye.la=Ct,JA.Hc=ge,JA.Gc=he,JA.ia=43690&he?0:MA.ia,TA=!(ge|he)}if(0<Y.L&&(Y.wa[Y.Y+Y.ja]=Y.gd[gA.$b][gA.Za],Y.wa[Y.Y+Y.ja].La|=!TA),FA.Ka)return ut(W,7,"Premature end-of-file encountered.")}if(Vn(W),Y=QA,FA=1,gA=($=W).D,xA=0<$.L&&$.M>=$.zb&&$.M<=$.Va,0==$.Aa)A:{if(gA.M=$.M,gA.uc=xA,Za($,gA),FA=1,gA=(ae=$.D).Nb,xA=(he=O[$.L])*$.R,TA=$.sa,JA=$.ta-xA+(Ue=16*gA*$.R),MA=$.qa,LA=$.ra-(PA=he/2*$.B)+(br=8*gA*$.B),we=$.Ha,ye=$.Ia-PA+br,Pr=0==(Me=ae.M),ge=Me>=$.Va-1,2==$.Aa&&Za($,ae),ae.uc)for(Mr=(Qt=$).D.M,A(Qt.D.uc),ae=Qt.yb;ae<Qt.Hb;++ae){Ur=Mr;var Dt=(qt=(ht=Qt).D).Nb,qt=qt.wa[qt.Y+(Ct=ae)],ar=ht.sa,rn=ht.ta+16*Dt*(be=ht.R)+16*Ct,ei=qt.dd,Tt=qt.tc;if(0!=Tt)if(A(3<=Tt),1==ht.L)0<Ct&&Ai(ar,rn,be,Tt+4),qt.La&&Qr(ar,rn,be,Tt),0<Ur&&xi(ar,rn,be,Tt+4),qt.La&&ts(ar,rn,be,Tt);else{var Ni=ht.B,ns=ht.qa,ho=ht.ra+8*Dt*Ni+8*Ct,Ba=ht.Ha,ht=ht.Ia+8*Dt*Ni+8*Ct;Dt=qt.ld,0<Ct&&(ro(ar,rn,be,Tt+4,ei,Dt),yn(ns,ho,Ba,ht,Ni,Tt+4,ei,Dt)),qt.La&&($n(ar,rn,be,Tt,ei,Dt),Ii(ns,ho,Ba,ht,Ni,Tt,ei,Dt)),0<Ur&&(ua(ar,rn,be,Tt+4,ei,Dt),Li(ns,ho,Ba,ht,Ni,Tt+4,ei,Dt)),qt.La&&(Zn(ar,rn,be,Tt,ei,Dt),Ei(ns,ho,Ba,ht,Ni,Tt,ei,Dt))}}if($.ia&&alert("todo:DitherRow"),null!=Y.put){if(ae=16*Me,Me=16*(Me+1),Pr?(Y.y=$.sa,Y.O=$.ta+Ue,Y.f=$.qa,Y.N=$.ra+br,Y.ea=$.Ha,Y.W=$.Ia+br):(ae-=he,Y.y=TA,Y.O=JA,Y.f=MA,Y.N=LA,Y.ea=we,Y.W=ye),ge||(Me-=he),Me>Y.o&&(Me=Y.o),Y.F=null,Y.J=null,null!=$.Fa&&0<$.Fa.length&&ae<Me&&(Y.J=na($,Y,ae,Me-ae),Y.F=$.mb,null==Y.F&&0==Y.F.length)){FA=ut($,3,"Could not decode alpha data.");break A}ae<Y.j&&(he=Y.j-ae,ae=Y.j,A(!(1&he)),Y.O+=$.R*he,Y.N+=$.B*(he>>1),Y.W+=$.B*(he>>1),null!=Y.F&&(Y.J+=Y.width*he)),ae<Me&&(Y.O+=Y.v,Y.N+=Y.v>>1,Y.W+=Y.v>>1,null!=Y.F&&(Y.J+=Y.v),Y.ka=ae-Y.j,Y.U=Y.va-Y.v,Y.T=Me-ae,FA=Y.put(Y))}gA+1!=$.Ic||ge||(o($.sa,$.ta-xA,TA,JA+16*$.R,xA),o($.qa,$.ra-PA,MA,LA+8*$.B,PA),o($.Ha,$.Ia-PA,we,ye+8*$.B,PA))}if(!FA)return ut(W,6,"Output aborted.")}return 1}(e,c)),null!=c.bc&&c.bc(c),f&=1}return f?(e.cb=0,f):0})(e,w)||(c=e.a)}}else c=e.a}0==c&&null!=y.Oa&&y.Oa.fd&&(c=$a(y.ba))}y=c}F=0!=y?null:11>F?E.f.RGBA.eb:E.f.kb.y}else F=null;return F};var uA=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function m(J,fA){for(var bA="",D=0;D<4;D++)bA+=String.fromCharCode(J[fA++]);return bA}function U(J,fA){return(J[fA+0]<<0|J[fA+1]<<8|J[fA+2]<<16)>>>0}function b(J,fA){return(J[fA+0]<<0|J[fA+1]<<8|J[fA+2]<<16|J[fA+3]<<24)>>>0}new p;var H=[0],v=[0],K=[],T=new p,R=r,N=function(J,fA){var bA={},D=0,M=!1,tA=0,X=0;if(bA.frames=[],!
/** @license
             * Copyright (c) 2017 Dominik Homberger
            Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
            The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
            THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
            https://webpjs.appspot.com
            WebPRiffParser dominikhlbg@gmail.com
            */
function(G,q,AA,sA){for(var BA=0;BA<4;BA++)if(G[q+BA]!="RIFF".charCodeAt(BA))return!0;return!1}(J,fA)){var mA,dA;for(b(J,fA+=4),fA+=8;fA<J.length;){var yA=m(J,fA),hA=b(J,fA+=4);fA+=4;var UA=hA+(1&hA);switch(yA){case"VP8 ":case"VP8L":void 0===bA.frames[D]&&(bA.frames[D]={}),(x=bA.frames[D]).src_off=M?X:fA-8,x.src_size=tA+hA+8,D++,M&&(M=!1,tA=0,X=0);break;case"VP8X":(x=bA.header={}).feature_flags=J[fA];var IA=fA+4;x.canvas_width=1+U(J,IA),x.canvas_height=1+U(J,IA+=3),IA+=3;break;case"ALPH":M=!0,tA=UA+8,X=fA-8;break;case"ANIM":(x=bA.header).bgcolor=b(J,fA),x.loop_count=(mA=J)[(dA=IA=fA+4)+0]<<0|mA[dA+1]<<8,IA+=2;break;case"ANMF":var qA,x;(x=bA.frames[D]={}).offset_x=2*U(J,fA),x.offset_y=2*U(J,fA+=3),x.width=1+U(J,fA+=3),x.height=1+U(J,fA+=3),x.duration=U(J,fA+=3),fA+=3,qA=J[fA++],x.dispose=1&qA,x.blend=qA>>1&1}"ANMF"!=yA&&(fA+=UA)}return bA}}(R,0);N.response=R,N.rgbaoutput=!0,N.dataurl=!1;var j=N.header?N.header:null,rA=N.frames?N.frames:null;if(j){j.loop_counter=j.loop_count,H=[j.canvas_height],v=[j.canvas_width];for(var cA=0;cA<rA.length&&0!=rA[cA].blend;cA++);}var vA=rA[0],SA=T.WebPDecodeRGBA(R,vA.src_off,vA.src_size,v,H);vA.rgba=SA,vA.imgwidth=v[0],vA.imgheight=H[0];for(var lA=0;lA<v[0]*H[0]*4;lA++)K[lA]=SA[lA];return this.width=v,this.height=H,this.data=K,this}(function(r){var t=function(H,v,K,T){var R=4,N=B;switch(T){case r.image_compression.FAST:R=1,N=u;break;case r.image_compression.MEDIUM:R=6,N=g;break;case r.image_compression.SLOW:R=9,N=p}var j=_a(H=o(H,v,K,N),{level:R});return r.__addimage__.arrayBufferToBinaryString(j)},o=function(H,v,K,T){for(var R,N,j,rA=H.length/v,cA=new Uint8Array(H.length+rA),vA=U(),SA=0;SA<rA;SA+=1){if(R=H.subarray(j=SA*v,j+v),T)cA.set(T(R,K,N),j+SA);else{for(var lA,J=vA.length,fA=[];lA<J;lA+=1)fA[lA]=vA[lA](R,K,N);var bA=b(fA.concat());cA.set(fA[bA],j+SA)}N=R}return cA},l=function(H){var v=Array.apply([],H);return v.unshift(0),v},u=function(H,v){var T=[],R=H.length;T[0]=1;for(var N=0;N<R;N+=1)T[N+1]=H[N]-(H[N-v]||0)+256&255;return T},B=function(H,v,K){var R=[],N=H.length;R[0]=2;for(var j=0;j<N;j+=1)R[j+1]=H[j]-(K&&K[j]||0)+256&255;return R},g=function(H,v,K){var N=[],j=H.length;N[0]=3;for(var rA=0;rA<j;rA+=1)N[rA+1]=H[rA]+256-((H[rA-v]||0)+(K&&K[rA]||0)>>>1)&255;return N},p=function(H,v,K){var j,rA=[],cA=H.length;rA[0]=4;for(var vA=0;vA<cA;vA+=1)j=m(H[vA-v]||0,K&&K[vA]||0,K&&K[vA-v]||0),rA[vA+1]=H[vA]-j+256&255;return rA},m=function(H,v,K){if(H===v&&v===K)return H;var T=Math.abs(v-K),R=Math.abs(H-K),N=Math.abs(H+v-K-K);return T<=R&&T<=N?H:R<=N?v:K},U=function(){return[l,u,B,g,p]},b=function(H){var v=H.map(function(K){return K.reduce(function(T,R){return T+Math.abs(R)},0)});return v.indexOf(Math.min.apply(null,v))};r.processPNG=function(H,v,K,T){var R,N,j,rA,cA,vA,SA,lA,J,fA,bA,D,M,tA,X,mA=this.decode.FLATE_DECODE,dA="";if(this.__addimage__.isArrayBuffer(H)&&(H=new Uint8Array(H)),this.__addimage__.isArrayBufferView(H)){if(H=(j=new Mu(H)).imgData,N=j.bits,R=j.colorSpace,cA=j.colors,-1!==[4,6].indexOf(j.colorType)){if(8===j.bits){J=(lA=32==j.pixelBitlength?new Uint32Array(j.decodePixels().buffer):16==j.pixelBitlength?new Uint16Array(j.decodePixels().buffer):new Uint8Array(j.decodePixels().buffer)).length,bA=new Uint8Array(J*j.colors),fA=new Uint8Array(J);var yA,hA=j.pixelBitlength-j.bits;for(tA=0,X=0;tA<J;tA++){for(M=lA[tA],yA=0;yA<hA;)bA[X++]=M>>>yA&255,yA+=j.bits;fA[tA]=M>>>yA&255}}if(16===j.bits){J=(lA=new Uint32Array(j.decodePixels().buffer)).length,bA=new Uint8Array(J*(32/j.pixelBitlength)*j.colors),fA=new Uint8Array(J*(32/j.pixelBitlength)),D=j.colors>1,tA=0,X=0;for(var UA=0;tA<J;)M=lA[tA++],bA[X++]=M>>>0&255,D&&(bA[X++]=M>>>16&255,M=lA[tA++],bA[X++]=M>>>0&255),fA[UA++]=M>>>16&255;N=8}T!==r.image_compression.NONE?(H=t(bA,j.width*j.colors,j.colors,T),SA=t(fA,j.width,1,T)):(H=bA,SA=fA,mA=void 0)}if(3===j.colorType&&(R=this.color_spaces.INDEXED,vA=j.palette,j.transparency.indexed)){var IA=j.transparency.indexed,qA=0;for(tA=0,J=IA.length;tA<J;++tA)qA+=IA[tA];if((qA/=255)==J-1&&-1!==IA.indexOf(0))rA=[IA.indexOf(0)];else if(qA!==J){for(lA=j.decodePixels(),fA=new Uint8Array(lA.length),tA=0,J=lA.length;tA<J;tA++)fA[tA]=IA[lA[tA]];SA=t(fA,j.width,1)}}var x=function(G){var q;switch(G){case r.image_compression.FAST:q=11;break;case r.image_compression.MEDIUM:q=13;break;case r.image_compression.SLOW:q=14;break;default:q=12}return q}(T);return mA===this.decode.FLATE_DECODE&&(dA="/Predictor "+x+" "),dA+="/Colors "+cA+" /BitsPerComponent "+N+" /Columns "+j.width,(this.__addimage__.isArrayBuffer(H)||this.__addimage__.isArrayBufferView(H))&&(H=this.__addimage__.arrayBufferToBinaryString(H)),(SA&&this.__addimage__.isArrayBuffer(SA)||this.__addimage__.isArrayBufferView(SA))&&(SA=this.__addimage__.arrayBufferToBinaryString(SA)),{alias:K,data:H,index:v,filter:mA,decodeParameters:dA,transparency:rA,palette:vA,sMask:SA,predictor:x,width:j.width,height:j.height,bitsPerComponent:N,colorSpace:R}}}})(Ae.API),function(r){r.processGIF89A=function(A,t,o,l){var u=new _s(A),B=u.width,g=u.height,p=[];u.decodeAndBlitFrameRGBA(0,p);var m={data:p,width:B,height:g},U=new Mo(100).encode(m,100);return r.processJPEG.call(this,U,t,o,l)},r.processGIF87A=r.processGIF89A}(Ae.API),Sr.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,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var r=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(r);for(var A=0;A<r;A++){var t=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0);this.palette[A]={red:l,green:o,blue:t,quad:u}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Sr.prototype.parseBGR=function(){this.pos=this.offset;try{var r="bit"+this.bitPP;this.data=new Uint8Array(this.width*this.height*4),this[r]()}catch(t){_e.log("bit decode error:"+t)}},Sr.prototype.bit1=function(){var r,A=Math.ceil(this.width/8),t=A%4;for(r=this.height-1;r>=0;r--){for(var o=this.bottom_up?r:this.height-1-r,l=0;l<A;l++)for(var u=this.datav.getUint8(this.pos++,!0),B=o*this.width*4+8*l*4,g=0;g<8&&8*l+g<this.width;g++){var p=this.palette[u>>7-g&1];this.data[B+4*g]=p.blue,this.data[B+4*g+1]=p.green,this.data[B+4*g+2]=p.red,this.data[B+4*g+3]=255}0!==t&&(this.pos+=4-t)}},Sr.prototype.bit4=function(){for(var r=Math.ceil(this.width/2),A=r%4,t=this.height-1;t>=0;t--){for(var o=this.bottom_up?t:this.height-1-t,l=0;l<r;l++){var u=this.datav.getUint8(this.pos++,!0),B=o*this.width*4+2*l*4,p=15&u,m=this.palette[u>>4];if(this.data[B]=m.blue,this.data[B+1]=m.green,this.data[B+2]=m.red,this.data[B+3]=255,2*l+1>=this.width)break;this.data[B+4]=(m=this.palette[p]).blue,this.data[B+4+1]=m.green,this.data[B+4+2]=m.red,this.data[B+4+3]=255}0!==A&&(this.pos+=4-A)}},Sr.prototype.bit8=function(){for(var r=this.width%4,A=this.height-1;A>=0;A--){for(var t=this.bottom_up?A:this.height-1-A,o=0;o<this.width;o++){var l=this.datav.getUint8(this.pos++,!0),u=t*this.width*4+4*o;if(l<this.palette.length){var B=this.palette[l];this.data[u]=B.red,this.data[u+1]=B.green,this.data[u+2]=B.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}0!==r&&(this.pos+=4-r)}},Sr.prototype.bit15=function(){for(var r=this.width%3,A=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var o=this.bottom_up?t:this.height-1-t,l=0;l<this.width;l++){var u=this.datav.getUint16(this.pos,!0);this.pos+=2;var B=(u&A)/A*255|0,g=(u>>5&A)/A*255|0,m=u>>15?255:0,U=o*this.width*4+4*l;this.data[U]=(u>>10&A)/A*255|0,this.data[U+1]=g,this.data[U+2]=B,this.data[U+3]=m}this.pos+=r}},Sr.prototype.bit16=function(){for(var r=this.width%3,A=parseInt("11111",2),t=parseInt("111111",2),o=this.height-1;o>=0;o--){for(var l=this.bottom_up?o:this.height-1-o,u=0;u<this.width;u++){var B=this.datav.getUint16(this.pos,!0);this.pos+=2;var g=(B&A)/A*255|0,p=(B>>5&t)/t*255|0,U=l*this.width*4+4*u;this.data[U]=(B>>11)/A*255|0,this.data[U+1]=p,this.data[U+2]=g,this.data[U+3]=255}this.pos+=r}},Sr.prototype.bit24=function(){for(var r=this.height-1;r>=0;r--){for(var A=this.bottom_up?r:this.height-1-r,t=0;t<this.width;t++){var o=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),B=A*this.width*4+4*t;this.data[B]=u,this.data[B+1]=l,this.data[B+2]=o,this.data[B+3]=255}this.pos+=this.width%4}},Sr.prototype.bit32=function(){for(var r=this.height-1;r>=0;r--)for(var A=this.bottom_up?r:this.height-1-r,t=0;t<this.width;t++){var o=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),B=this.datav.getUint8(this.pos++,!0),g=A*this.width*4+4*t;this.data[g]=u,this.data[g+1]=l,this.data[g+2]=o,this.data[g+3]=B}},Sr.prototype.getData=function(){return this.data},
/**
       * @license
       * Copyright (c) 2018 Aras Abbasi
       *
       * Licensed under the MIT License.
       * http://opensource.org/licenses/mit-license
       */
function(r){r.processBMP=function(A,t,o,l){var u=new Sr(A,!1),B=u.width,g=u.height,p={data:u.getData(),width:B,height:g},m=new Mo(100).encode(p,100);return r.processJPEG.call(this,m,t,o,l)}}(Ae.API),hr.prototype.getData=function(){return this.data},
/**
       * @license
       * Copyright (c) 2019 Aras Abbasi
       *
       * Licensed under the MIT License.
       * http://opensource.org/licenses/mit-license
       */
function(r){r.processWEBP=function(A,t,o,l){var u=new hr(A,!1),B=u.width,g=u.height,p={data:u.getData(),width:B,height:g},m=new Mo(100).encode(p,100);return r.processJPEG.call(this,m,t,o,l)}}(Ae.API),Ae.API.processRGBA=function(r,A,t){for(var o=r.data,l=o.length,u=new Uint8Array(l/4*3),B=new Uint8Array(l/4),g=0,p=0,m=0;m<l;m+=4){var b=o[m+1],H=o[m+2],v=o[m+3];u[g++]=o[m],u[g++]=b,u[g++]=H,B[p++]=v}var K=this.__addimage__.arrayBufferToBinaryString(u);return{alpha:this.__addimage__.arrayBufferToBinaryString(B),data:K,index:A,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:r.width,height:r.height}},Ae.API.setLanguage=function(r){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={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"}[r]&&(this.internal.languageSettings.languageCode=r,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Ns=(Bi=Ae.API).getCharWidthsArray=function(r,A){var t,o,l=(A=A||{}).font||this.internal.getFont(),u=A.fontSize||this.internal.getFontSize(),B=A.charSpace||this.internal.getCharSpace(),g=A.widths?A.widths:l.metadata.Unicode.widths,p=g.fof?g.fof:1,m=A.kerning?A.kerning:l.metadata.Unicode.kerning,U=m.fof?m.fof:1,b=!1!==A.doKerning,H=0,v=r.length,K=0,T=g[0]||p,R=[];for(t=0;t<v;t++)o=r.charCodeAt(t),"function"==typeof l.metadata.widthOfString?R.push((l.metadata.widthOfGlyph(l.metadata.characterToGlyph(o))+B*(1e3/u)||0)/1e3):(H=b&&"object"===Se(m[o])&&!isNaN(parseInt(m[o][K],10))?m[o][K]/U:0,R.push((g[o]||T)/p+H)),K=o;return R},Vi=Bi.getStringUnitWidth=function(r,A){var t=(A=A||{}).fontSize||this.internal.getFontSize(),o=A.font||this.internal.getFont(),l=A.charSpace||this.internal.getCharSpace();return Bi.processArabic&&(r=Bi.processArabic(r)),"function"==typeof o.metadata.widthOfString?o.metadata.widthOfString(r,t,l)/t:Ns.apply(this,arguments).reduce(function(u,B){return u+B},0)},Vr=function(r,A,t,o){for(var l=[],u=0,B=r.length,g=0;u!==B&&g+A[u]<t;)g+=A[u],u++;l.push(r.slice(0,u));var p=u;for(g=0;u!==B;)g+A[u]>o&&(l.push(r.slice(p,u)),g=0,p=u),g+=A[u],u++;return p!==u&&l.push(r.slice(p,u)),l},Vc=function(r,A,t){t||(t={});var o,l,u,B,g,p,U=[],b=[U],H=t.textIndent||0,v=0,K=0,T=r.split(" "),R=Ns.apply(this,[" ",t])[0];if(p=-1===t.lineIndent?T[0].length+2:t.lineIndent||0){var N=Array(p).join(" "),j=[];T.map(function(cA){(cA=cA.split(/\s*\n/)).length>1?j=j.concat(cA.map(function(vA,SA){return(SA&&vA.length?"\n":"")+vA})):j.push(cA[0])}),T=j,p=Vi.apply(this,[N,t])}for(u=0,B=T.length;u<B;u++){var rA=0;if(o=T[u],p&&"\n"==o[0]&&(o=o.substr(1),rA=1),H+v+(K=(l=Ns.apply(this,[o,t])).reduce(function(cA,vA){return cA+vA},0))>A||rA){if(K>A){for(g=Vr.apply(this,[o,l,A-(H+v),A]),U.push(g.shift()),U=[g.pop()];g.length;)b.push([g.shift()]);K=l.slice(o.length-(U[0]?U[0].length:0)).reduce(function(cA,vA){return cA+vA},0)}else U=[o];b.push(U),H=K+p,v=R}else U.push(o),H+=v+K,v=R}return b.map(p?function(cA,vA){return(vA?N:"")+cA.join(" ")}:function(cA){return cA.join(" ")})},Bi.splitTextToSize=function(r,A,t){var o,l=(t=t||{}).fontSize||this.internal.getFontSize(),u=function(U){if(U.widths&&U.kerning)return{widths:U.widths,kerning:U.kerning};var b=this.internal.getFont(U.fontName,U.fontStyle);return b.metadata.Unicode?{widths:b.metadata.Unicode.widths||{0:1},kerning:b.metadata.Unicode.kerning||{}}:{font:b.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,t);o=Array.isArray(r)?r:String(r).split(/\r?\n/);var B=1*this.internal.scaleFactor*A/l;u.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/l:0,u.lineIndent=t.lineIndent;var g,p,m=[];for(g=0,p=o.length;g<p;g++)m=m.concat(Vc.apply(this,[o[g],B,u]));return m},function(r){r.__fontmetrics__=r.__fontmetrics__||{};for(var A="klmnopqrstuvwxyz",t={},o={},l=0;l<16;l++)t[A[l]]="0123456789abcdef"[l],o["0123456789abcdef"[l]]=A[l];var u=function(b){return"0x"+parseInt(b,10).toString(16)},B=r.__fontmetrics__.compress=function(b){var H,v,K,T,R=["{"];for(var N in b){if(H=b[N],isNaN(parseInt(N,10))?v="'"+N+"'":(N=parseInt(N,10),v=(v=u(N).slice(2)).slice(0,-1)+o[v.slice(-1)]),"number"==typeof H)H<0?(K=u(H).slice(3),T="-"):(K=u(H).slice(2),T=""),K=T+K.slice(0,-1)+o[K.slice(-1)];else{if("object"!==Se(H))throw new Error("Don't know what to do with value type "+Se(H)+".");K=B(H)}R.push(v+K)}return R.push("}"),R.join("")},g=r.__fontmetrics__.uncompress=function(b){if("string"!=typeof b)throw new Error("Invalid argument passed to uncompress.");for(var H,v,K,T,R={},N=1,j=R,rA=[],cA="",vA="",SA=b.length-1,lA=1;lA<SA;lA+=1)"'"==(T=b[lA])?H?(K=H.join(""),H=void 0):H=[]:H?H.push(T):"{"==T?(rA.push([j,K]),j={},K=void 0):"}"==T?((v=rA.pop())[0][v[1]]=j,K=void 0,j=v[0]):"-"==T?N=-1:void 0===K?t.hasOwnProperty(T)?(cA+=t[T],K=parseInt(cA,16)*N,N=1,cA=""):cA+=T:t.hasOwnProperty(T)?(vA+=t[T],j[K]=parseInt(vA,16)*N,N=1,K=void 0,vA=""):vA+=T;return R},p={codePages:["WinAnsiEncoding"],WinAnsiEncoding:g("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},m={Unicode:{Courier:p,"Courier-Bold":p,"Courier-BoldOblique":p,"Courier-Oblique":p,Helvetica:p,"Helvetica-Bold":p,"Helvetica-BoldOblique":p,"Helvetica-Oblique":p,"Times-Roman":p,"Times-Bold":p,"Times-BoldItalic":p,"Times-Italic":p}},U={Unicode:{"Courier-Oblique":g("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":g("{'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":g("{'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:g("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":g("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":g("{'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:g("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:g("{'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":g("{'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:g("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":g("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":g("{'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":g("{'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":g("{'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}}}")}};r.events.push(["addFont",function(b){var H=b.font,v=U.Unicode[H.postScriptName];v&&(H.metadata.Unicode={},H.metadata.Unicode.widths=v.widths,H.metadata.Unicode.kerning=v.kerning);var K=m.Unicode[H.postScriptName];K&&(H.metadata.Unicode.encoding=K,H.encoding=K.codePages[0])}])}(Ae.API),
/**
       * @license
       * Licensed under the MIT License.
       * http://opensource.org/licenses/mit-license
       */
function(r){var A=function(t){for(var o=t.length,l=new Uint8Array(o),u=0;u<o;u++)l[u]=t.charCodeAt(u);return l};r.API.events.push(["addFont",function(t){var B,g,o=void 0,l=t.font,u=t.instance;if(!l.isStandardFont){if(void 0===u)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+l.postScriptName+"').");if("string"!=typeof(o=!1===u.existsFileInVFS(l.postScriptName)?u.loadFile(l.postScriptName):u.getFileFromVFS(l.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+l.postScriptName+"').");B=l,g=/^\x00\x01\x00\x00/.test(g=o)?A(g):A(Oa(g)),B.metadata=r.API.TTFFont.open(g),B.metadata.Unicode=B.metadata.Unicode||{encoding:{},kerning:{},widths:[]},B.metadata.glyIdsUsed=[0]}}])}(Ae),Ae.API.addSvgAsImage=function(t,o,l,u,B,g,p,m){if(isNaN(o)||isNaN(l))throw _e.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(u)||isNaN(B))throw _e.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var U=document.createElement("canvas");U.width=u,U.height=B;var b=U.getContext("2d");b.fillStyle="#fff",b.fillRect(0,0,U.width,U.height);var H={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},v=this;return function A(){return(te.canvg?Promise.resolve(te.canvg):At.e("node_modules_canvg_lib_index_es_js").then(At.bind(At,71612))).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}().then(function(K){return K.fromString(b,t,H)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(K){return K.render(H)}).then(function(){v.addImage(U.toDataURL("image/jpeg",1),o,l,u,B,p,m)})},Ae.API.putTotalPages=function(r){var A,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(A=new RegExp(r,"g"),t=this.internal.getNumberOfPages()):(A=new RegExp(this.pdfEscape16(r,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var o=1;o<=this.internal.getNumberOfPages();o++)for(var l=0;l<this.internal.pages[o].length;l++)this.internal.pages[o][l]=this.internal.pages[o][l].replace(A,t);return this},Ae.API.viewerPreferences=function(r,A){var t;r=r||{},A=A||!1;var o,l,u,B={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}},g=Object.keys(B),p=[],m=0,U=0,b=0;function H(K,T){var R,N=!1;for(R=0;R<K.length;R+=1)K[R]===T&&(N=!0);return N}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(B)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,"reset"===r||!0===A){var v=g.length;for(b=0;b<v;b+=1)t[g[b]].value=t[g[b]].defaultValue,t[g[b]].explicitSet=!1}if("object"===Se(r))for(l in r)if(u=r[l],H(g,l)&&void 0!==u){if("boolean"===t[l].type&&"boolean"==typeof u)t[l].value=u;else if("name"===t[l].type&&H(t[l].valueSet,u))t[l].value=u;else if("integer"===t[l].type&&Number.isInteger(u))t[l].value=u;else if("array"===t[l].type){for(m=0;m<u.length;m+=1)if(o=!0,1===u[m].length&&"number"==typeof u[m][0])p.push(String(u[m]-1));else if(u[m].length>1){for(U=0;U<u[m].length;U+=1)"number"!=typeof u[m][U]&&(o=!1);!0===o&&p.push([u[m][0]-1,u[m][1]-1].join(" "))}t[l].value="["+p.join(" ")+"]"}else t[l].value=t[l].defaultValue;t[l].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var K,T=[];for(K in t)!0===t[K].explicitSet&&T.push("name"===t[K].type?"/"+K+" /"+t[K].value:"/"+K+" "+t[K].value);0!==T.length&&this.internal.write("/ViewerPreferences\n<<\n"+T.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},
/** ====================================================================
       * @license
       * jsPDF XMP metadata plugin
       * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
       *
       * Permission is hereby granted, free of charge, to any person obtaining
       * a copy of this software and associated documentation files (the
       * "Software"), to deal in the Software without restriction, including
       * without limitation the rights to use, copy, modify, merge, publish,
       * distribute, sublicense, and/or sell copies of the Software, and to
       * permit persons to whom the Software is furnished to do so, subject to
       * the following conditions:
       *
       * The above copyright notice and this permission notice shall be
       * included in all copies or substantial portions of the Software.
       *
       * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
       * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
       * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
       * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
       * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
       * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
       * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
       * ====================================================================
       */
function(r){var A=function(){var o='<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>',l=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),u=unescape(encodeURIComponent(o)),B=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),g=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),p=unescape(encodeURIComponent("</x:xmpmeta>")),m=u.length+B.length+g.length+l.length+p.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+m+" >>"),this.internal.write("stream"),this.internal.write(l+u+B+g+p),this.internal.write("endstream"),this.internal.write("endobj")},t=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};r.addMetadata=function(o,l){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:o,namespaceuri:l||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",t),this.internal.events.subscribe("postPutResources",A)),this}}(Ae.API),function(r){var A=r.API,t=A.pdfEscape16=function(u,B){for(var g,p=B.metadata.Unicode.widths,m=["","0","00","000","0000"],U=[""],b=0,H=u.length;b<H;++b){if(g=B.metadata.characterToGlyph(u.charCodeAt(b)),B.metadata.glyIdsUsed.push(g),B.metadata.toUnicode[g]=u.charCodeAt(b),-1==p.indexOf(g)&&(p.push(g),p.push([parseInt(B.metadata.widthOfGlyph(g),10)])),"0"==g)return U.join("");g=g.toString(16),U.push(m[4-g.length],g)}return U.join("")},o=function(u){var B,g,p,m,U,b,H;for(U="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",p=[],b=0,H=(g=Object.keys(u).sort(function(v,K){return v-K})).length;b<H;b++)B=g[b],p.length>=100&&(U+="\n"+p.length+" beginbfchar\n"+p.join("\n")+"\nendbfchar",p=[]),null!=u[B]&&"function"==typeof u[B].toString&&(m=("0000"+u[B].toString(16)).slice(-4),B=("0000"+(+B).toString(16)).slice(-4),p.push("<"+B+"><"+m+">"));return p.length&&(U+="\n"+p.length+" beginbfchar\n"+p.join("\n")+"\nendbfchar\n"),U+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};A.events.push(["putFont",function(u){!function(B){var g=B.font,p=B.out,m=B.newObject,U=B.putStream;if(g.metadata instanceof r.API.TTFFont&&"Identity-H"===g.encoding){for(var b=g.metadata.Unicode.widths,H=g.metadata.subset.encode(g.metadata.glyIdsUsed,1),v="",K=0;K<H.length;K++)v+=String.fromCharCode(H[K]);var T=m();U({data:v,addLength1:!0,objectId:T}),p("endobj");var R=m();U({data:o(g.metadata.toUnicode),addLength1:!0,objectId:R}),p("endobj");var N=m();p("<<"),p("/Type /FontDescriptor"),p("/FontName /"+Gi(g.fontName)),p("/FontFile2 "+T+" 0 R"),p("/FontBBox "+r.API.PDFObject.convert(g.metadata.bbox)),p("/Flags "+g.metadata.flags),p("/StemV "+g.metadata.stemV),p("/ItalicAngle "+g.metadata.italicAngle),p("/Ascent "+g.metadata.ascender),p("/Descent "+g.metadata.decender),p("/CapHeight "+g.metadata.capHeight),p(">>"),p("endobj");var j=m();p("<<"),p("/Type /Font"),p("/BaseFont /"+Gi(g.fontName)),p("/FontDescriptor "+N+" 0 R"),p("/W "+r.API.PDFObject.convert(b)),p("/CIDToGIDMap /Identity"),p("/DW 1000"),p("/Subtype /CIDFontType2"),p("/CIDSystemInfo"),p("<<"),p("/Supplement 0"),p("/Registry (Adobe)"),p("/Ordering ("+g.encoding+")"),p(">>"),p(">>"),p("endobj"),g.objectNumber=m(),p("<<"),p("/Type /Font"),p("/Subtype /Type0"),p("/ToUnicode "+R+" 0 R"),p("/BaseFont /"+Gi(g.fontName)),p("/Encoding /"+g.encoding),p("/DescendantFonts ["+j+" 0 R]"),p(">>"),p("endobj"),g.isAlreadyPutted=!0}}(u)}]),A.events.push(["putFont",function(u){!function(B){var g=B.font,p=B.out,m=B.newObject,U=B.putStream;if(g.metadata instanceof r.API.TTFFont&&"WinAnsiEncoding"===g.encoding){for(var b=g.metadata.rawData,H="",v=0;v<b.length;v++)H+=String.fromCharCode(b[v]);var K=m();U({data:H,addLength1:!0,objectId:K}),p("endobj");var T=m();U({data:o(g.metadata.toUnicode),addLength1:!0,objectId:T}),p("endobj");var R=m();p("<<"),p("/Descent "+g.metadata.decender),p("/CapHeight "+g.metadata.capHeight),p("/StemV "+g.metadata.stemV),p("/Type /FontDescriptor"),p("/FontFile2 "+K+" 0 R"),p("/Flags 96"),p("/FontBBox "+r.API.PDFObject.convert(g.metadata.bbox)),p("/FontName /"+Gi(g.fontName)),p("/ItalicAngle "+g.metadata.italicAngle),p("/Ascent "+g.metadata.ascender),p(">>"),p("endobj"),g.objectNumber=m();for(var N=0;N<g.metadata.hmtx.widths.length;N++)g.metadata.hmtx.widths[N]=parseInt(g.metadata.hmtx.widths[N]*(1e3/g.metadata.head.unitsPerEm));p("<</Subtype/TrueType/Type/Font/ToUnicode "+T+" 0 R/BaseFont/"+Gi(g.fontName)+"/FontDescriptor "+R+" 0 R/Encoding/"+g.encoding+" /FirstChar 29 /LastChar 255 /Widths "+r.API.PDFObject.convert(g.metadata.hmtx.widths)+">>"),p("endobj"),g.isAlreadyPutted=!0}}(u)}]);var l=function(u){var B,g=u.text||"",p=u.x,m=u.y,U=u.options||{},b=u.mutex||{},H=b.pdfEscape,v=b.activeFontKey,K=b.fonts,T=v,R="",N=0,j="",rA=K[T].encoding;if("Identity-H"!==K[T].encoding)return{text:g,x:p,y:m,options:U,mutex:b};for(j=g,T=v,Array.isArray(g)&&(j=g[0]),N=0;N<j.length;N+=1)K[T].metadata.hasOwnProperty("cmap")&&(B=K[T].metadata.cmap.unicode.codeMap[j[N].charCodeAt(0)]),B||j[N].charCodeAt(0)<256&&K[T].metadata.hasOwnProperty("Unicode")?R+=j[N]:R+="";var cA="";return parseInt(T.slice(1))<14||"WinAnsiEncoding"===rA?cA=H(R,T).split("").map(function(vA){return vA.charCodeAt(0).toString(16)}).join(""):"Identity-H"===rA&&(cA=t(R,K[T])),b.isHex=!0,{text:cA,x:p,y:m,options:U,mutex:b}};A.events.push(["postProcessText",function(u){var B=u.text||"",g=[],p={text:B,x:u.x,y:u.y,options:u.options,mutex:u.mutex};if(Array.isArray(B)){var m=0;for(m=0;m<B.length;m+=1)Array.isArray(B[m])&&3===B[m].length?g.push([l(Object.assign({},p,{text:B[m][0]})).text,B[m][1],B[m][2]]):g.push(l(Object.assign({},p,{text:B[m]})).text);u.text=g}else u.text=l(Object.assign({},p,{text:B})).text}])}(Ae),
/**
       * @license
       * jsPDF virtual FileSystem functionality
       *
       * Licensed under the MIT License.
       * http://opensource.org/licenses/mit-license
       */
function(r){var A=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};r.existsFileInVFS=function(t){return A.call(this),void 0!==this.internal.vFS[t]},r.addFileToVFS=function(t,o){return A.call(this),this.internal.vFS[t]=o,this},r.getFileFromVFS=function(t){return A.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(Ae.API),
/**
       * @license
       * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
       * MIT License
       */
function(r){r.__bidiEngine__=r.prototype.__bidiEngine__=function(o){var l,u,B,g,p,m,U,b=A,H=[[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]],v=[[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]],K={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},T={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},R=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],N=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)$/),j=!1,rA=0;this.__bidiEngine__={};var cA=function(D){var M=D.charCodeAt(),tA=M>>8,X=T[tA];return void 0!==X?b[256*X+(255&M)]:252===tA||253===tA?"AL":N.test(tA)?"L":8===tA?"R":"N"},vA=function(D){for(var M,tA=0;tA<D.length;tA++){if("L"===(M=cA(D.charAt(tA))))return!1;if("R"===M)return!0}return!1},SA=function(D,M,tA,X){var mA,dA,yA,hA,UA=M[X];switch(UA){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":j=!1;break;case"N":case"AN":break;case"EN":j&&(UA="AN");break;case"AL":j=!0,UA="R";break;case"WS":case"BN":UA="N";break;case"CS":X<1||X+1>=M.length||"EN"!==(mA=tA[X-1])&&"AN"!==mA||"EN"!==(dA=M[X+1])&&"AN"!==dA?UA="N":j&&(dA="AN"),UA=dA===mA?dA:"N";break;case"ES":UA="EN"===(mA=X>0?tA[X-1]:"B")&&X+1<M.length&&"EN"===M[X+1]?"EN":"N";break;case"ET":if(X>0&&"EN"===tA[X-1]){UA="EN";break}if(j){UA="N";break}for(yA=X+1,hA=M.length;yA<hA&&"ET"===M[yA];)yA++;UA=yA<hA&&"EN"===M[yA]?"EN":"N";break;case"NSM":if(B&&!g){for(hA=M.length,yA=X+1;yA<hA&&"NSM"===M[yA];)yA++;if(yA<hA){var IA=D[X];if(mA=M[yA],(IA>=1425&&IA<=2303||64286===IA)&&("R"===mA||"AL"===mA)){UA="R";break}}}UA=X<1||"B"===(mA=M[X-1])?"N":tA[X-1];break;case"B":j=!1,l=!0,UA=rA;break;case"S":u=!0,UA="N"}return UA},lA=function(D,M,tA){var X=D.split("");return tA&&J(X,tA,{hiLevel:rA}),X.reverse(),M&&M.reverse(),X.join("")},J=function(D,M,tA){var X,mA,dA,yA,hA,UA=-1,IA=D.length,qA=0,x=[],G=rA?v:H,q=[];for(j=!1,l=!1,u=!1,mA=0;mA<IA;mA++)q[mA]=cA(D[mA]);for(dA=0;dA<IA;dA++){if(hA=qA,x[dA]=SA(D,q,x,dA),X=240&(qA=G[hA][K[x[dA]]]),M[dA]=yA=G[qA&=15][5],X>0)if(16===X){for(mA=UA;mA<dA;mA++)M[mA]=1;UA=-1}else UA=-1;if(G[qA][6])-1===UA&&(UA=dA);else if(UA>-1){for(mA=UA;mA<dA;mA++)M[mA]=yA;UA=-1}"B"===q[dA]&&(M[dA]=0),tA.hiLevel|=yA}u&&function(AA,sA,BA){for(var pA=0;pA<BA;pA++)if("S"===AA[pA]){sA[pA]=rA;for(var wA=pA-1;wA>=0&&"WS"===AA[wA];wA--)sA[wA]=rA}}(q,M,IA)},fA=function(D,M,tA,X,mA){if(!(mA.hiLevel<D)){if(1===D&&1===rA&&!l)return M.reverse(),void(tA&&tA.reverse());for(var dA,yA,hA,UA,IA=M.length,qA=0;qA<IA;){if(X[qA]>=D){for(hA=qA+1;hA<IA&&X[hA]>=D;)hA++;for(UA=qA,yA=hA-1;UA<yA;UA++,yA--)dA=M[UA],M[UA]=M[yA],M[yA]=dA,tA&&(dA=tA[UA],tA[UA]=tA[yA],tA[yA]=dA);qA=hA}qA++}}},bA=function(D,M,tA){var X=D.split(""),mA={hiLevel:rA};return tA||(tA=[]),J(X,tA,mA),function(dA,yA,hA){if(0!==hA.hiLevel&&U)for(var UA,IA=0;IA<dA.length;IA++)1===yA[IA]&&(UA=R.indexOf(dA[IA]))>=0&&(dA[IA]=R[UA+1])}(X,tA,mA),fA(2,X,M,tA,mA),fA(1,X,M,tA,mA),X.join("")};return this.__bidiEngine__.doBidiReorder=function(D,M,tA){if(function(mA,dA){if(dA)for(var yA=0;yA<mA.length;yA++)dA[yA]=yA;void 0===g&&(g=vA(mA)),void 0===m&&(m=vA(mA))}(D,M),B||!p||m)if(B&&p&&g^m)rA=g?1:0,D=lA(D,M,tA);else if(!B&&p&&m)rA=g?1:0,D=bA(D,M,tA),D=lA(D,M);else if(!B||g||p||m){if(B&&!p&&g^m)D=lA(D,M),g?(rA=0,D=bA(D,M,tA)):(rA=1,D=bA(D,M,tA),D=lA(D,M));else if(B&&g&&!p&&m)rA=1,D=bA(D,M,tA),D=lA(D,M);else if(!B&&!p&&g^m){var X=U;g?(rA=1,D=bA(D,M,tA),rA=0,U=!1,D=bA(D,M,tA),U=X):(rA=0,D=bA(D,M,tA),D=lA(D,M),rA=1,U=!1,D=bA(D,M,tA),U=X,D=lA(D,M))}}else rA=0,D=bA(D,M,tA);else rA=g?1:0,D=bA(D,M,tA);return D},this.__bidiEngine__.setOptions=function(D){D&&(B=D.isInputVisual,p=D.isOutputVisual,g=D.isInputRtl,m=D.isOutputRtl,U=D.isSymmetricSwapping)},this.__bidiEngine__.setOptions(o),this.__bidiEngine__};var A=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],t=new r.__bidiEngine__({isInputVisual:!0});r.API.events.push(["postProcessText",function(o){var l=o.text,u=o.options||{},B=[];if(u.isInputVisual="boolean"!=typeof u.isInputVisual||u.isInputVisual,t.setOptions(u),"[object Array]"===Object.prototype.toString.call(l)){var g=0;for(B=[],g=0;g<l.length;g+=1)"[object Array]"===Object.prototype.toString.call(l[g])?B.push([t.doBidiReorder(l[g][0]),l[g][1],l[g][2]]):B.push([t.doBidiReorder(l[g])]);o.text=B}else o.text=t.doBidiReorder(l);t.setOptions({isInputVisual:!0})}])}(Ae),Ae.API.TTFFont=function(){function r(A){var t;if(this.rawData=A,t=this.contents=new Rn(A),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new ju(this),this.registerTTF()}return r.open=function(A){return new r(A)},r.prototype.parse=function(){return this.directory=new ku(this.contents),this.head=new qc(this),this.name=new Yc(this),this.cmap=new Ko(this),this.toUnicode={},this.hhea=new zc(this),this.maxp=new Ku(this),this.hmtx=new Ts(this),this.post=new Xc(this),this.os2=new Wc(this),this.loca=new $c(this),this.glyf=new Ru(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]},r.prototype.registerTTF=function(){var t,o,l,u;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var B,g,p,m;for(m=[],B=0,g=(p=this.bbox).length;B<g;B++)m.push(Math.round(p[B]*this.scaleFactor));return m}.call(this),this.stemV=0,this.post.exists?(o=255&(l=this.post.italic_angle),32768&(t=l>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+o)):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=1===(u=this.familyClass)||2===u||3===u||4===u||5===u||7===u,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},r.prototype.characterToGlyph=function(A){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[A]:void 0)||0},r.prototype.widthOfGlyph=function(A){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*t},r.prototype.widthOfString=function(A,t,o){var l,u,B,g;for(B=0,u=0,g=(A=""+A).length;0<=g?u<g:u>g;u=0<=g?++u:--u)l=A.charCodeAt(u),B+=this.widthOfGlyph(this.characterToGlyph(l))+o*(1e3/t)||0;return B*(t/1e3)},r.prototype.lineHeight=function(A,t){return null==t&&(t=!1),(this.ascender+(t?this.lineGap:0)-this.decender)/1e3*A},r}();var Br,Rn=function(){function r(A){this.data=A??[],this.pos=0,this.length=this.data.length}return r.prototype.readByte=function(){return this.data[this.pos++]},r.prototype.writeByte=function(A){return this.data[this.pos++]=A},r.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},r.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},r.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},r.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},r.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},r.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},r.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},r.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},r.prototype.readString=function(A){var t,o;for(o=[],t=0;0<=A?t<A:t>A;t=0<=A?++t:--t)o[t]=String.fromCharCode(this.readByte());return o.join("")},r.prototype.writeString=function(A){var t,o,l;for(l=[],t=0,o=A.length;0<=o?t<o:t>o;t=0<=o?++t:--t)l.push(this.writeByte(A.charCodeAt(t)));return l},r.prototype.readShort=function(){return this.readInt16()},r.prototype.writeShort=function(A){return this.writeInt16(A)},r.prototype.readLongLong=function(){var A,t,o,l,u,B,g,p;return A=this.readByte(),t=this.readByte(),o=this.readByte(),l=this.readByte(),u=this.readByte(),B=this.readByte(),g=this.readByte(),p=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^t)+1099511627776*(255^o)+4294967296*(255^l)+16777216*(255^u)+65536*(255^B)+256*(255^g)+(255^p)+1):72057594037927940*A+281474976710656*t+1099511627776*o+4294967296*l+16777216*u+65536*B+256*g+p},r.prototype.writeLongLong=function(A){var t,o;return t=Math.floor(A/4294967296),o=4294967295&A,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(o>>24&255),this.writeByte(o>>16&255),this.writeByte(o>>8&255),this.writeByte(255&o)},r.prototype.readInt=function(){return this.readInt32()},r.prototype.writeInt=function(A){return this.writeInt32(A)},r.prototype.read=function(A){var t,o;for(t=[],o=0;0<=A?o<A:o>A;o=0<=A?++o:--o)t.push(this.readByte());return t},r.prototype.write=function(A){var o,l,u;for(u=[],o=0,l=A.length;o<l;o++)u.push(this.writeByte(A[o]));return u},r}(),ku=function(){var r;function A(t){var o,l,u;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},l=0,u=this.tableCount;0<=u?l<u:l>u;l=0<=u?++l:--l)o={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[o.tag]=o}return A.prototype.encode=function(t){var o,l,B,g,p,m,U,b,H,v,K,T;for(T in v=Object.keys(t).length,p=Math.log(2),b=16*Math.floor(Math.log(v)/p),B=Math.floor(b/p),U=16*v-b,(l=new Rn).writeInt(this.scalarType),l.writeShort(v),l.writeShort(b),l.writeShort(B),l.writeShort(U),m=l.pos+16*v,g=null,K=[],t)for(H=t[T],l.writeString(T),l.writeInt(r(H)),l.writeInt(m),l.writeInt(H.length),K=K.concat(H),"head"===T&&(g=m),m+=H.length;m%4;)K.push(0),m++;return l.write(K),o=2981146554-r(l.data),l.pos=g+8,l.writeUInt32(o),l.data},r=function(t){var o,l,u,B;for(t=Zc.call(t);t.length%4;)t.push(0);for(u=new Rn(t),l=0,o=0,B=t.length;o<B;o=o+=4)l+=u.readUInt32();return 4294967295&l},A}(),Ds={}.hasOwnProperty,qr=function(r,A){for(var t in A)Ds.call(A,t)&&(r[t]=A[t]);function o(){this.constructor=r}return o.prototype=A.prototype,r.prototype=new o,r.__super__=A.prototype,r};Br=function(){function r(A){var t;this.file=A,this.exists=!!(t=this.file.directory.tables[this.tag]),t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return r.prototype.parse=function(){},r.prototype.encode=function(){},r.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},r}();var qc=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return qr(A,Br),A.prototype.tag="head",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},A.prototype.encode=function(t){var o;return(o=new Rn).writeInt(this.version),o.writeInt(this.revision),o.writeInt(this.checkSumAdjustment),o.writeInt(this.magicNumber),o.writeShort(this.flags),o.writeShort(this.unitsPerEm),o.writeLongLong(this.created),o.writeLongLong(this.modified),o.writeShort(this.xMin),o.writeShort(this.yMin),o.writeShort(this.xMax),o.writeShort(this.yMax),o.writeShort(this.macStyle),o.writeShort(this.lowestRecPPEM),o.writeShort(this.fontDirectionHint),o.writeShort(t),o.writeShort(this.glyphDataFormat),o.data},A}(),ko=function(){function r(A,t){var o,l,u,B,g,p,m,U,b,H,v,K,T,R,N,j,rA;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=t+A.readInt(),b=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(p=0;p<256;++p)this.codeMap[p]=A.readByte();break;case 4:for(v=A.readUInt16(),H=v/2,A.pos+=6,u=function(){var cA,vA;for(vA=[],p=cA=0;0<=H?cA<H:cA>H;p=0<=H?++cA:--cA)vA.push(A.readUInt16());return vA}(),A.pos+=2,T=function(){var cA,vA;for(vA=[],p=cA=0;0<=H?cA<H:cA>H;p=0<=H?++cA:--cA)vA.push(A.readUInt16());return vA}(),m=function(){var cA,vA;for(vA=[],p=cA=0;0<=H?cA<H:cA>H;p=0<=H?++cA:--cA)vA.push(A.readUInt16());return vA}(),U=function(){var cA,vA;for(vA=[],p=cA=0;0<=H?cA<H:cA>H;p=0<=H?++cA:--cA)vA.push(A.readUInt16());return vA}(),l=(this.length-A.pos+this.offset)/2,g=function(){var cA,vA;for(vA=[],p=cA=0;0<=l?cA<l:cA>l;p=0<=l?++cA:--cA)vA.push(A.readUInt16());return vA}(),p=N=0,rA=u.length;N<rA;p=++N)for(R=u[p],o=j=K=T[p];K<=R?j<=R:j>=R;o=K<=R?++j:--j)0===U[p]?B=o+m[p]:0!==(B=g[U[p]/2+(o-K)-(H-p)]||0)&&(B+=m[p]),this.codeMap[o]=65535&B}A.pos=b}return r.encode=function(A,t){var o,l,u,B,g,p,m,U,b,H,v,K,T,R,N,j,rA,vA,SA,lA,J,fA,bA,D,M,tA,X,mA,dA,yA,hA,UA,IA,qA,x,G,q,AA,sA,BA,pA,wA,DA,_A,VA;switch(X=new Rn,B=Object.keys(A).sort(function(GA,re){return GA-re}),t){case"macroman":for(T=0,R=function(){var GA=[];for(K=0;K<256;++K)GA.push(0);return GA}(),j={0:0},u={},mA=0,UA=B.length;mA<UA;mA++)null==j[wA=A[l=B[mA]]]&&(j[wA]=++T),u[l]={old:A[l],new:j[A[l]]},R[l]=j[A[l]];return X.writeUInt16(1),X.writeUInt16(0),X.writeUInt32(12),X.writeUInt16(0),X.writeUInt16(262),X.writeUInt16(0),X.write(R),{charMap:u,subtable:X.data,maxGlyphID:T+1};case"unicode":for(M=[],b=[],rA=0,j={},o={},N=m=null,dA=0,IA=B.length;dA<IA;dA++)null==j[vA=A[l=B[dA]]]&&(j[vA]=++rA),o[l]={old:vA,new:j[vA]},g=j[vA]-l,null!=N&&g===m||(N&&b.push(N),M.push(l),m=g),N=l;for(N&&b.push(N),b.push(65535),M.push(65535),bA=2*(fA=M.length),J=2*Math.pow(Math.log(fA)/Math.LN2,2),H=Math.log(J/2)/Math.LN2,lA=2*fA-J,p=[],SA=[],v=[],K=yA=0,qA=M.length;yA<qA;K=++yA){if(U=b[K],65535===(D=M[K])){p.push(0),SA.push(0);break}if(D-(tA=o[D].new)>=32768)for(p.push(0),SA.push(2*(v.length+fA-K)),l=hA=D;D<=U?hA<=U:hA>=U;l=D<=U?++hA:--hA)v.push(o[l].new);else p.push(tA-D),SA.push(0)}for(X.writeUInt16(3),X.writeUInt16(1),X.writeUInt32(12),X.writeUInt16(4),X.writeUInt16(16+8*fA+2*v.length),X.writeUInt16(0),X.writeUInt16(bA),X.writeUInt16(J),X.writeUInt16(H),X.writeUInt16(lA),BA=0,x=b.length;BA<x;BA++)X.writeUInt16(l=b[BA]);for(X.writeUInt16(0),pA=0,G=M.length;pA<G;pA++)X.writeUInt16(l=M[pA]);for(DA=0,q=p.length;DA<q;DA++)X.writeUInt16(g=p[DA]);for(_A=0,AA=SA.length;_A<AA;_A++)X.writeUInt16(SA[_A]);for(VA=0,sA=v.length;VA<sA;VA++)X.writeUInt16(T=v[VA]);return{charMap:o,subtable:X.data,maxGlyphID:rA+1}}},r}(),Ko=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return qr(A,Br),A.prototype.tag="cmap",A.prototype.parse=function(t){var o,l,u;for(t.pos=this.offset,this.version=t.readUInt16(),u=t.readUInt16(),this.tables=[],this.unicode=null,l=0;0<=u?l<u:l>u;l=0<=u?++l:--l)o=new ko(t,this.offset),this.tables.push(o),o.isUnicode&&null==this.unicode&&(this.unicode=o);return!0},A.encode=function(t,o){var l,u;return null==o&&(o="macroman"),l=ko.encode(t,o),(u=new Rn).writeUInt16(0),u.writeUInt16(1),l.table=u.data.concat(l.subtable),l},A}(),zc=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return qr(A,Br),A.prototype.tag="hhea",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},A}(),Wc=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return qr(A,Br),A.prototype.tag="OS/2",A.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var o,l;for(l=[],o=0;o<10;++o)l.push(t.readByte());return l}(),this.charRange=function(){var o,l;for(l=[],o=0;o<4;++o)l.push(t.readInt());return l}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var o,l;for(l=[],o=0;o<2;o=++o)l.push(t.readInt());return l}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},A}(),Xc=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return qr(A,Br),A.prototype.tag="post",A.prototype.parse=function(t){var o,l,u;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var B;for(l=t.readUInt16(),this.glyphNameIndex=[],B=0;0<=l?B<l:B>l;B=0<=l?++B:--B)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],u=[];t.pos<this.offset+this.length;)o=t.readByte(),u.push(this.names.push(t.readString(o)));return u;case 151552:return l=t.readUInt16(),this.offsets=t.read(l);case 262144:return this.map=function(){var g,p,m;for(m=[],B=g=0,p=this.file.maxp.numGlyphs;0<=p?g<p:g>p;B=0<=p?++g:--g)m.push(t.readUInt32());return m}.call(this)}},A}(),Jc=function(r,A){this.raw=r,this.length=r.length,this.platformID=A.platformID,this.encodingID=A.encodingID,this.languageID=A.languageID},Yc=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return qr(A,Br),A.prototype.tag="name",A.prototype.parse=function(t){var o,l,u,B,g,p,m,U,b,H,v;for(t.pos=this.offset,t.readShort(),o=t.readShort(),p=t.readShort(),l=[],B=0;0<=o?B<o:B>o;B=0<=o?++B:--B)l.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+p+t.readShort()});for(m={},B=b=0,H=l.length;b<H;B=++b)t.pos=(u=l[B]).offset,U=t.readString(u.length),g=new Jc(U,u),null==m[v=u.nameID]&&(m[v]=[]),m[u.nameID].push(g);this.strings=m,this.copyright=m[0],this.fontFamily=m[1],this.fontSubfamily=m[2],this.uniqueSubfamily=m[3],this.fontName=m[4],this.version=m[5];try{this.postscriptName=m[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=m[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=m[7],this.manufacturer=m[8],this.designer=m[9],this.description=m[10],this.vendorUrl=m[11],this.designerUrl=m[12],this.license=m[13],this.licenseUrl=m[14],this.preferredFamily=m[15],this.preferredSubfamily=m[17],this.compatibleFull=m[18],this.sampleText=m[19]},A}(),Ku=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return qr(A,Br),A.prototype.tag="maxp",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},A}(),Ts=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return qr(A,Br),A.prototype.tag="hmtx",A.prototype.parse=function(t){var o,l,u,g,p,m;for(t.pos=this.offset,this.metrics=[],o=0,p=this.file.hhea.numberOfMetrics;0<=p?o<p:o>p;o=0<=p?++o:--o)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(u=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var U,b;for(b=[],o=U=0;0<=u?U<u:U>u;o=0<=u?++U:--U)b.push(t.readInt16());return b}(),this.widths=function(){var U,b,H,v;for(v=[],U=0,b=(H=this.metrics).length;U<b;U++)v.push(H[U].advance);return v}.call(this),l=this.widths[this.widths.length-1],m=[],o=g=0;0<=u?g<u:g>u;o=0<=u?++g:--g)m.push(this.widths.push(l));return m},A.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},A}(),Zc=[].slice,Ru=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return qr(A,Br),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(t){var o,l,u,B,g,p,m,U,b,H;return t in this.cache?this.cache[t]:(o=this.file.contents,l=(B=this.file.loca).indexOf(t),0===(u=B.lengthOf(t))?this.cache[t]=null:(o.pos=this.offset+l,g=(p=new Rn(o.read(u))).readShort(),U=p.readShort(),H=p.readShort(),m=p.readShort(),b=p.readShort(),this.cache[t]=-1===g?new Gu(p,U,H,m,b):new Ro(p,g,U,H,m,b),this.cache[t]))},A.prototype.encode=function(t,o,l){var u,B,g,p,m;for(g=[],B=[],p=0,m=o.length;p<m;p++)u=t[o[p]],B.push(g.length),u&&(g=g.concat(u.encode(l)));return B.push(g.length),{table:g,offsets:B}},A}(),Ro=function(){function r(A,t,o,l,u,B){this.raw=A,this.numberOfContours=t,this.xMin=o,this.yMin=l,this.xMax=u,this.yMax=B,this.compound=!1}return r.prototype.encode=function(){return this.raw.data},r}(),Gu=function(){function r(A,t,o,l,u){var B,g;for(this.raw=A,this.xMin=t,this.yMin=o,this.xMax=l,this.yMax=u,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],B=this.raw;g=B.readShort(),this.glyphOffsets.push(B.pos),this.glyphIDs.push(B.readUInt16()),32&g;)B.pos+=1&g?4:2,128&g?B.pos+=8:64&g?B.pos+=4:8&g&&(B.pos+=2)}return r.prototype.encode=function(){var A,t,o;for(t=new Rn(Zc.call(this.raw.data)),A=0,o=this.glyphIDs.length;A<o;++A)t.pos=this.glyphOffsets[A];return t.data},r}(),$c=function(r){function A(){return A.__super__.constructor.apply(this,arguments)}return qr(A,Br),A.prototype.tag="loca",A.prototype.parse=function(t){var l;return t.pos=this.offset,this.offsets=0===this.file.head.indexToLocFormat?function(){var u,B;for(B=[],l=0,u=this.length;l<u;l+=2)B.push(2*t.readUInt16());return B}.call(this):function(){var u,B;for(B=[],l=0,u=this.length;l<u;l+=4)B.push(t.readUInt32());return B}.call(this)},A.prototype.indexOf=function(t){return this.offsets[t]},A.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},A.prototype.encode=function(t,o){for(var l=new Uint32Array(this.offsets.length),u=0,B=0,g=0;g<l.length;++g)if(l[g]=u,B<o.length&&o[B]==g){++B,l[g]=u;var m=this.offsets[g+1]-this.offsets[g];m>0&&(u+=m)}for(var U=new Array(4*l.length),b=0;b<l.length;++b)U[4*b+3]=255&l[b],U[4*b+2]=(65280&l[b])>>8,U[4*b+1]=(16711680&l[b])>>16,U[4*b]=(4278190080&l[b])>>24;return U},A}(),ju=function(){function r(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return r.prototype.generateCmap=function(){var A,t,l,u;for(t in l=this.font.cmap.tables[0].codeMap,A={},u=this.subset)A[t]=l[u[t]];return A},r.prototype.glyphsFor=function(A){var t,o,l,u,B,g,p;for(l={},B=0,g=A.length;B<g;B++)l[u=A[B]]=this.font.glyf.glyphFor(u);for(u in t=[],l)null!=(o=l[u])&&o.compound&&t.push.apply(t,o.glyphIDs);if(t.length>0)for(u in p=this.glyphsFor(t))l[u]=o=p[u];return l},r.prototype.encode=function(A,t){var o,l,u,B,p,m,U,b,H,v,K,T,R,N;for(l in o=Ko.encode(this.generateCmap(),"unicode"),B=this.glyphsFor(A),v={0:0},N=o.charMap)v[(p=N[l]).old]=p.new;for(K in H=o.maxGlyphID,B)K in v||(v[K]=H++);return U=function(j){var rA,cA;for(rA in cA={},j)cA[j[rA]]=rA;return cA}(v),b=Object.keys(U).sort(function(j,rA){return j-rA}),T=function(){var j,rA,cA;for(cA=[],j=0,rA=b.length;j<rA;j++)cA.push(U[b[j]]);return cA}(),u=this.font.glyf.encode(B,T,v),m=this.font.loca.encode(u.offsets,T),R={cmap:this.font.cmap.raw(),glyf:u.table,loca:m,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(R["OS/2"]=this.font.os2.raw()),this.font.directory.encode(R)},r}();Ae.API.PDFObject=function(){var r;function A(){}return r=function(t,o){return(Array(o+1).join("0")+t).slice(-o)},A.convert=function(t){var l,u;if(Array.isArray(t))return"["+function(){var g,p,m;for(m=[],g=0,p=t.length;g<p;g++)m.push(A.convert(t[g]));return m}().join(" ")+"]";if("string"==typeof t)return"/"+t;if(t?.isString)return"("+t+")";if(t instanceof Date)return"(D:"+r(t.getUTCFullYear(),4)+r(t.getUTCMonth(),2)+r(t.getUTCDate(),2)+r(t.getUTCHours(),2)+r(t.getUTCMinutes(),2)+r(t.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(t)){for(l in u=["<<"],t)u.push("/"+l+" "+A.convert(t[l]));return u.push(">>"),u.join("\n")}return""+t},A}();const Vu=Ae}}]);
//# sourceMappingURL=default-node_modules_jspdf_dist_jspdf_es_min_js.js.map