/*
    *
    * Wijmo Library 5.20181.436
    * http://wijmo.com/
    *
    * Copyright(c) GrapeCity, Inc.  All rights reserved.
    *
    * Licensed under the GrapeCity Commercial License.
    * sales@wijmo.com
    * wijmo.com/products/wijmo-5/license/
    *
    */
var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();define(["require","exports","wijmo/wijmo","wijmo/wijmo.pdf"],function(t,e,n,r){"use strict";function i(t){return.75*n.asNumber(t)}function o(t,r){void 0===r&&(r=!0);var i;return i=t?t instanceof n.Color?r?n.Color.fromRgba(t.r,t.g,t.b,t.a):t:n.Color.fromString(t):n.Color.fromRgba(0,0,0),n.assert(i instanceof n.Color,e._Errors.InvalidArg("colorOrString")),i}function a(t,r){return void 0===r&&(r=!0),(n.isString(t)||t instanceof n.Color)&&(t=new L(t)),n.assert(null==t&&r||t instanceof L,e._Errors.InvalidArg("penOrColor")),t}function s(t,r){return void 0===r&&(r=!0),(n.isString(t)||t instanceof n.Color)&&(t=new B(t)),n.assert(null==t&&r||t instanceof P,e._Errors.InvalidArg("brushOrColor")),t}function u(t,r){return void 0===r&&(r=!0),n.assert(null==t&&r||t instanceof R,e._Errors.InvalidArg("font")),t}function l(t,r,o){void 0===r&&(r=!0),void 0===o&&(o=0);var a=!t&&0!==t;if(n.assert(!a||r,e._Errors.ValueCannotBeEmpty("value")),a)return o;if(n.isNumber(t)){if(t===t)return t}else if(n.isString(t)){if(E[t])return E[t];var s=parseFloat(t);if(s===s){if(t.match(/(px)$/i))return i(s);if(t==s||t.match(/(pt)$/i))return s}}n.assert(!1,e._Errors.InvalidFormat(t))}function c(t,e){var n={},r=0;return t=t.replace(/&&/g,function(t,e,i){return n[e-2*r+r]=!0,r++,"&"}),t=t.replace(/&\[(\S+?)\]/g,function(t,r,i,o){var a=e[r];return a&&!n[i]?a:t})}function h(t,e){if(n.isObject(t)&&n.isObject(e)){for(var r in t)if(!r||"_"!==r[0]){var i=t[r];if(!(i&&n.isFunction(i.equals)?i.equals(e[r]):h(i,e[r])))return!1}return!0}if(n.isArray(t)&&n.isArray(e)){if(t.length!==e.length)return!1;for(var o=0;o<t.length;o++)if(!h(t[o],e[o]))return!1;return!0}return t===e}function f(t){var e={};if(t)for(var n in t)e[n]=t[n];return e}function d(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t}function p(t){return t&&(t=t.trim().replace(/\s+/gm," ")),t}function g(t,e){return t&&e&&!/(^[a-z][a-z0-9]*:)?\/\//i.test(t)&&(t=e(t)),t}Object.defineProperty(e,"__esModule",{value:!0});var _=r||e;window.wijmo=window.wijmo||{},window.wijmo.pdf=_,function(t){if("object"==typeof localExports&&"undefined"!=typeof localModule)localModule.localExports=t();else if("function"==typeof localDefine&&localDefine.amd)localDefine([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).PDFDocument=t()}}(function(){return function t(e,n,r){function i(a,s){if(!n[a]){if(!e[a]){var u="function"==typeof localRequire&&localRequire;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find localModule '"+a+"'");throw l.code="localModule_NOT_FOUND",l}var c=n[a]={localExports:{}};e[a][0].call(c.localExports,function(t){var n=e[a][1][t];return i(n||t)},c,c.localExports,t,e,n,r)}return n[a].localExports}for(var o="function"==typeof localRequire&&localRequire,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,e,n){var r;r=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.byteAt=function(t){return this.data[t]},t.prototype.readBool=function(){return!!this.readByte()},t.prototype.writeBool=function(t){return this.writeByte(t?1:0)},t.prototype.readUInt32=function(){var t,e,n,r;return t=16777216*this.readByte(),e=this.readByte()<<16,n=this.readByte()<<8,r=this.readByte(),t+e+n+r},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){var t,e;return t=this.readByte()<<8,e=this.readByte(),t|e},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n,r;for(n=[],e=r=0;0<=t?r<t:r>t;e=0<=t?++r:--r)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,r,i;for(i=[],e=n=0,r=t.length;0<=r?n<r:n>r;e=0<=r?++n:--n)i.push(this.writeByte(t.charCodeAt(e)));return i},t.prototype.stringAt=function(t,e){return this.pos=t,this.readString(e)},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,r,i,o,a,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^a)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*r+16777216*i+65536*o+256*a+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.slice=function(t,e){return this.data.slice(t,e)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:n>t;0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.writeByte(e));return i},t}(),e.localExports=r},{}],2:[function(t,e,n){(function(n){var r,i,o,a,s,u,l={}.hasOwnProperty,c=function(t,e){function n(){this.constructor=t}for(var r in e)l.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};u=t("stream"),s=t("fs"),i=t("./object"),a=t("./reference"),o=t("./page"),r=function(e){function r(t){var e,n,i,o;if(this.options=null!=t?t:{},r.__super__.constructor.apply(this,arguments),this.version=1.3,this.compress=null==(i=this.options.compress)||i,this._pageBuffer=[],this._pageBufferStart=0,this._offsets=[],this._waiting=0,this._ended=!1,this._offset=0,this._root=this.ref({Type:"Catalog",Pages:this.ref({Type:"Pages",Count:0,Kids:[]})}),this.page=null,this.initColor(),this.initVector(),this.initFonts(),this.initText(),this.initImages(),this.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},this.options.info){o=this.options.info;for(e in o)n=o[e],this.info[e]=n}this._write("%PDF-"+this.version),this._write("%ÿÿÿÿ"),this.options.pageAdding&&this.on("pageAdding",this.options.pageAdding),this.options.pageAdded&&this.on("pageAdded",this.options.pageAdded),!1!==this.options.autoFirstPage&&this.addPage()}var u;return c(r,e),(u=function(t){var e,n,i;i=[];for(n in t)e=t[n],i.push(r.prototype[n]=e);return i})(t("./mixins/color")),u(t("./mixins/vector")),u(t("./mixins/fonts")),u(t("./mixins/text")),u(t("./mixins/images")),u(t("./mixins/annotations")),r.prototype.addPage=function(t){var e;return null==t&&(t=this.options),this.emit("pageAdding",this,t),this.options.bufferPages||this.flushPages(),this.page=new o(this,t),this._pageBuffer.push(this.page),(e=this._root.data.Pages.data).Kids.push(this.page.dictionary),e.Count++,this.x=this.page.margins.left,this.y=this.page.margins.top,this._ctm=[1,0,0,1,0,0],this.transform(1,0,0,-1,0,this.page.height),this.emit("pageAdded",this),this},r.prototype.bufferedPageRange=function(){return{start:this._pageBufferStart,count:this._pageBuffer.length}},r.prototype.switchToPage=function(t){var e;if(!(e=this._pageBuffer[t-this._pageBufferStart]))throw new Error("switchToPage("+t+") out of bounds, current buffer covers pages "+this._pageBufferStart+" to "+(this._pageBufferStart+this._pageBuffer.length-1));return this.page=e},r.prototype.flushPages=function(){var t,e,n;for(t=this._pageBuffer,this._pageBuffer=[],this._pageBufferStart+=t.length,e=0,n=t.length;e<n;e++)t[e].end()},r.prototype.ref=function(t){var e;return e=new a(this,this._offsets.length+1,t),this._offsets.push(null),this._waiting++,e},r.prototype._read=function(){},r.prototype._write=function(t){return n.isBuffer(t)||(t=new n(t+"\n","binary")),this.push(t),this._offset+=t.length},r.prototype.addContent=function(t){return this.page.write(t),this},r.prototype._refEnd=function(t){if(this._offsets[t.id-1]=t.offset,0==--this._waiting&&this._ended)return this._finalize(),this._ended=!1},r.prototype.write=function(t,e){var n;return n=new Error("PDFDocument#write is deprecated, and will be removed in a future version of PDFKit. Please pipe the document into a Node stream."),console.warn(n.stack),this.pipe(s.createWriteStream(t)),this.end(),this.once("end",e)},r.prototype.output=function(t){throw new Error("PDFDocument#output is deprecated, and has been removed from PDFKit. Please pipe the document into a Node stream.")},r.prototype.end=function(){var t,e,n,r,i;this.emit("ending"),this.flushPages(),this._info=this.ref(),r=this.info;for(t in r)"string"==typeof(n=r[t])&&(n=new String(n)),this._info.data[t]=n;this._info.end(),i=this._fontFamilies;for(e in i)i[e].finalize();return this._root.end(),this._root.data.Pages.end(),0===this._waiting?this._finalize():this._ended=!0},r.prototype._finalize=function(t){var e,n,r,o,a;for(n=this._offset,this._write("xref"),this._write("0 "+(this._offsets.length+1)),this._write("0000000000 65535 f "),r=0,o=(a=this._offsets).length;r<o;r++)e=("0000000000"+(e=a[r])).slice(-10),this._write(e+" 00000 n ");return this._write("trailer"),this._write(i.convert({Size:this._offsets.length+1,Root:this._root,Info:this._info})),this._write("startxref"),this._write(""+n),this._write("%%EOF"),this.push(null)},r.prototype.toString=function(){return"[object PDFDocument]"},r}(u.Readable),e.localExports=r}).call(this,t("buffer").Buffer)},{"./mixins/annotations":12,"./mixins/color":13,"./mixins/fonts":14,"./mixins/images":15,"./mixins/text":16,"./mixins/vector":17,"./object":18,"./page":19,"./reference":21,buffer:60,fs:59,stream:216}],3:[function(t,e,n){(function(n){var r,i,o,a;a=t("fontkit"),i=function(){function t(){throw new Error("Cannot construct a PDFFont directly.")}return t.open=function(t,e,i,s){var u;if("string"==typeof e){if(o.isStandardFont(e))return new o(t,e,s)}else n.isBuffer(e)?u=a.create(e,i):e instanceof Uint8Array?u=a.create(new n(e),i):e instanceof ArrayBuffer&&(u=a.create(new n(new Uint8Array(e)),i));if(null==u)throw new Error("Not a supported font format or standard PDF font.");return new r(t,u,s)},t.prototype.encode=function(t){throw new Error("Must be implemented by subclasses")},t.prototype.widthOfString=function(t){throw new Error("Must be implemented by subclasses")},t.prototype.ref=function(){return null!=this.dictionary?this.dictionary:this.dictionary=this.document.ref()},t.prototype.finalize=function(){if(!this.embedded&&null!=this.dictionary)return this.embed(),this.embedded=!0},t.prototype.embed=function(){throw new Error("Must be implemented by subclasses")},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.descender)/1e3*t},t.prototype.getAscender=function(t){return this.ascender/1e3*t},t.prototype.getBBox=function(t){return{llx:this.bbox[0]/1e3*t,lly:this.bbox[1]/1e3*t,urx:this.bbox[2]/1e3*t,ury:this.bbox[3]/1e3*t}},t}(),e.localExports=i,o=t("./font/standard"),r=t("./font/embedded")}).call(this,t("buffer").Buffer)},{"./font/embedded":5,"./font/standard":6,buffer:60,fontkit:165}],4:[function(t,e,n){var r;t("base64-js");r=function(){function t(t){this.bbox=this._parseFontBBox(t[1]),this.ascender=t[4],this.descender=t[5],this.glyphWidths=this._parseGlyphWidths(t[6]),this.charWidths=this._getCharWidths(),this.kernPairs=this._parseKerningPairs(t[7]),this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}var e={402:131,8211:150,8212:151,8216:145,8217:146,8218:130,8220:147,8221:148,8222:132,8224:134,8225:135,8226:149,8230:133,8364:128,8240:137,8249:139,8250:155,710:136,8482:153,338:140,339:156,732:152,352:138,353:154,376:159,381:142,382:158},n="space:exclam:quotedbl:numbersign:dollar:percent:ampersand:quoteright:parenleft:parenright:asterisk:plus:comma:hyphen:period:slash:zero:one:two:three:four:five:six:seven:eight:nine:colon:semicolon:less:equal:greater:question:at:A:B:C:D:E:F:G:H:I:J:K:L:M:N:O:P:Q:R:S:T:U:V:W:X:Y:Z:bracketleft:backslash:bracketright:asciicircum:underscore:quoteleft:a:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:braceleft:bar:braceright:asciitilde:exclamdown:cent:sterling:fraction:yen:florin:section:currency:quotesingle:quotedblleft:guillemotleft:guilsinglleft:guilsinglright:fi:fl:endash:dagger:daggerdbl:periodcentered:paragraph:bullet:quotesinglbase:quotedblbase:quotedblright:guillemotright:ellipsis:perthousand:questiondown:grave:acute:circumflex:tilde:macron:breve:dotaccent:dieresis:ring:cedilla:hungarumlaut:ogonek:caron:emdash:AE:ordfeminine:Lslash:Oslash:OE:ordmasculine:ae:dotlessi:lslash:oslash:oe:germandbls:Idieresis:eacute:abreve:uhungarumlaut:ecaron:Ydieresis:divide:Yacute:Acircumflex:aacute:Ucircumflex:yacute:scommaaccent:ecircumflex:Uring:Udieresis:aogonek:Uacute:uogonek:Edieresis:Dcroat:commaaccent:copyright:Emacron:ccaron:aring:Ncommaaccent:lacute:agrave:Tcommaaccent:Cacute:atilde:Edotaccent:scaron:scedilla:iacute:lozenge:Rcaron:Gcommaaccent:ucircumflex:acircumflex:Amacron:rcaron:ccedilla:Zdotaccent:Thorn:Omacron:Racute:Sacute:dcaron:Umacron:uring:threesuperior:Ograve:Agrave:Abreve:multiply:uacute:Tcaron:partialdiff:ydieresis:Nacute:icircumflex:Ecircumflex:adieresis:edieresis:cacute:nacute:umacron:Ncaron:Iacute:plusminus:brokenbar:registered:Gbreve:Idotaccent:summation:Egrave:racute:omacron:Zacute:Zcaron:greaterequal:Eth:Ccedilla:lcommaaccent:tcaron:eogonek:Uogonek:Aacute:Adieresis:egrave:zacute:iogonek:Oacute:oacute:amacron:sacute:idieresis:Ocircumflex:Ugrave:Delta:thorn:twosuperior:Odieresis:mu:igrave:ohungarumlaut:Eogonek:dcroat:threequarters:Scedilla:lcaron:Kcommaaccent:Lacute:trademark:edotaccent:Igrave:Imacron:Lcaron:onehalf:lessequal:ocircumflex:ntilde:Uhungarumlaut:Eacute:emacron:gbreve:onequarter:Scaron:Scommaaccent:Ohungarumlaut:degree:ograve:Ccaron:ugrave:radical:Dcaron:rcommaaccent:Ntilde:otilde:Rcommaaccent:Lcommaaccent:Atilde:Aogonek:Aring:Otilde:zdotaccent:Ecaron:Iogonek:kcommaaccent:minus:Icircumflex:ncaron:tcommaaccent:logicalnot:odieresis:udieresis:notequal:gcommaaccent:eth:zcaron:ncommaaccent:onesuperior:imacron:Euro:universal:existential:suchthat:asteriskmath:congruent:Alpha:Beta:Chi:Epsilon:Phi:Gamma:Eta:Iota:theta1:Kappa:Lambda:Mu:Nu:Omicron:Pi:Theta:Rho:Sigma:Tau:Upsilon:sigma1:Omega:Xi:Psi:Zeta:therefore:perpendicular:radicalex:alpha:beta:chi:delta:epsilon:phi:gamma:eta:iota:phi1:kappa:lambda:nu:omicron:pi:theta:rho:sigma:tau:upsilon:omega1:omega:xi:psi:zeta:similar:Upsilon1:minute:infinity:club:diamond:heart:spade:arrowboth:arrowleft:arrowup:arrowright:arrowdown:second:proportional:equivalence:approxequal:arrowvertex:arrowhorizex:carriagereturn:aleph:Ifraktur:Rfraktur:weierstrass:circlemultiply:circleplus:emptyset:intersection:union:propersuperset:reflexsuperset:notsubset:propersubset:reflexsubset:element:notelement:angle:gradient:registerserif:copyrightserif:trademarkserif:product:dotmath:logicaland:logicalor:arrowdblboth:arrowdblleft:arrowdblup:arrowdblright:arrowdbldown:angleleft:registersans:copyrightsans:trademarksans:parenlefttp:parenleftex:parenleftbt:bracketlefttp:bracketleftex:bracketleftbt:bracelefttp:braceleftmid:braceleftbt:braceex:angleright:integral:integraltp:integralex:integralbt:parenrighttp:parenrightex:parenrightbt:bracketrighttp:bracketrightex:bracketrightbt:bracerighttp:bracerightmid:bracerightbt:apple:a1:a2:a202:a3:a4:a5:a119:a118:a117:a11:a12:a13:a14:a15:a16:a105:a17:a18:a19:a20:a21:a22:a23:a24:a25:a26:a27:a28:a6:a7:a8:a9:a10:a29:a30:a31:a32:a33:a34:a35:a36:a37:a38:a39:a40:a41:a42:a43:a44:a45:a46:a47:a48:a49:a50:a51:a52:a53:a54:a55:a56:a57:a58:a59:a60:a61:a62:a63:a64:a65:a66:a67:a68:a69:a70:a71:a72:a73:a74:a203:a75:a204:a76:a77:a78:a79:a81:a82:a83:a84:a97:a98:a99:a100:a89:a90:a93:a94:a91:a92:a205:a85:a206:a86:a87:a88:a95:a96:a101:a102:a103:a104:a106:a107:a108:a112:a111:a110:a109:a120:a121:a122:a123:a124:a125:a126:a127:a128:a129:a130:a131:a132:a133:a134:a135:a136:a137:a138:a139:a140:a141:a142:a143:a144:a145:a146:a147:a148:a149:a150:a151:a152:a153:a154:a155:a156:a157:a158:a159:a160:a161:a163:a164:a196:a165:a192:a166:a167:a168:a169:a170:a171:a172:a173:a162:a174:a175:a176:a177:a178:a179:a193:a180:a199:a181:a200:a182:a201:a183:a184:a197:a185:a194:a198:a186:a195:a187:a188:a189:a190:a191".split(":"),r=".notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef space exclam quotedbl numbersign dollar percent ampersand quotesingle parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bracketleft backslash bracketright asciicircum underscore grave a b c d e f g h i j k l m n o p q r s t u v w x y z braceleft bar braceright asciitilde .notdef Euro .notdef quotesinglbase florin quotedblbase ellipsis dagger daggerdbl circumflex perthousand Scaron guilsinglleft OE .notdef Zcaron .notdef .notdef quoteleft quoteright quotedblleft quotedblright bullet endash emdash tilde trademark scaron guilsinglright oe .notdef zcaron ydieresis space exclamdown cent sterling currency yen brokenbar section dieresis copyright ordfeminine guillemotleft logicalnot hyphen registered macron degree plusminus twosuperior threesuperior acute mu paragraph periodcentered cedilla onesuperior ordmasculine guillemotright onequarter onehalf threequarters questiondown Agrave Aacute Acircumflex Atilde Adieresis Aring AE Ccedilla Egrave Eacute Ecircumflex Edieresis Igrave Iacute Icircumflex Idieresis Eth Ntilde Ograve Oacute Ocircumflex Otilde Odieresis multiply Oslash Ugrave Uacute Ucircumflex Udieresis Yacute Thorn germandbls agrave aacute acircumflex atilde adieresis aring ae ccedilla egrave eacute ecircumflex edieresis igrave iacute icircumflex idieresis eth ntilde ograve oacute ocircumflex otilde odieresis divide oslash ugrave uacute ucircumflex udieresis yacute thorn ydieresis".split(" ");return t.prototype.encodeText=function(t){for(var n=[],r=0;r<t.length;r++){var i=t.charCodeAt(r);i=e[i]||i,n.push(i.toString(16))}return n},t.prototype.glyphsForString=function(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);e.push(this.characterToGlyph(r))}return e},t.prototype.characterToGlyph=function(t){return r[e[t]||t]||".notdef"},t.prototype.widthOfGlyph=function(t){return this.glyphWidths[t]||0},t.prototype.getKernPair=function(t,e){return this.kernPairs[t+"\0"+e]||0},t.prototype.advancesForGlyphs=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],i=t[n+1];e.push(this.widthOfGlyph(r)+this.getKernPair(r,i))}return e},t.prototype._parseFontBBox=function(t){for(var e=t.split(":"),n=[],r=0;r<e.length;r++)n.push(parseInt(e[r]));return n},t.prototype._getCharWidths=function(){for(var t=[],e=0;e<=255;e++)t.push(this.glyphWidths[r[e]]);return t},t.prototype._parseGlyphWidths=function(t){var e,r=t.split(","),i={};if(1===r.length){var o=r[0].match(/(^\d+)-(\d+):(\d+)$/),a=parseInt(o[1]),s=parseInt(o[2]);e=parseInt(o[3]);for(l=a;l<=s;l++)i[n[l]]=e}else for(var u=0,l=0;l<r.length;l++){var c=r[l].split(":");1==c.length?e=parseInt(c[0]):(u=parseInt(c[0]),e=parseInt(c[1])),i[n[u++]]=e}return i},t.prototype._parseKerningPairs=function(t){return{}},t}(),e.localExports=r},{"base64-js":45}],5:[function(t,e,n){var r,i,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s=[].slice;i=t("../font"),t("../object"),r=function(t){function e(t,e,n){this.document=t,this.font=e,this.id=n,this.subset=this.font.createSubset(),this.unicode=[[0]],this.widths=[this.font.getGlyph(0).advanceWidth],this.name=this.font.postscriptName,this.scale=1e3/this.font.unitsPerEm,this.ascender=this.font.ascent*this.scale,this.descender=this.font.descent*this.scale,this.lineGap=this.font.lineGap*this.scale,this.bbox=this.font.bbox,this.layoutCache=Object.create(null)}var n;return a(e,i),e.prototype.layoutRun=function(t,e){var n,r,i,o,a,s,u;for(n=a=0,s=(u=(o=this.font.layout(t,e)).positions).length;a<s;n=++a){i=u[n];for(r in i)i[r]*=this.scale;i.advanceWidth=o.glyphs[n].advanceWidth*this.scale}return o},e.prototype.layoutCached=function(t){var e,n;return(e=this.layoutCache[t])?e:(n=this.layoutRun(t),this.layoutCache[t]=n,n)},e.prototype.layout=function(t,e,n){var r,i,o,a,s,u,l;if(null==n&&(n=!1),e)return this.layoutRun(t,e);for(i=n?null:[],s=n?null:[],r=0,a=0,o=0;o<=t.length;)o===t.length&&a<o||" "===(l=t.charAt(o))||"\t"===l?(u=this.layoutCached(t.slice(a,++o)),n||(i.push.apply(i,u.glyphs),s.push.apply(s,u.positions)),r+=u.advanceWidth,a=o):o++;return{glyphs:i,positions:s,advanceWidth:r}},e.prototype.encode=function(t,e){var n,r,i,o,a,s,u,l,c,h,f;for(i=(f=this.layout(t,e)).glyphs,a=f.positions,s=[],o=c=0,h=i.length;c<h;o=++c)r=i[o],n=this.subset.includeGlyph(r.id),s.push(("0000"+n.toString(16)).slice(-4)),null==(u=this.widths)[n]&&(u[n]=r.advanceWidth*this.scale),null==(l=this.unicode)[n]&&(l[n]=r.codePoints);return[s,a]},e.prototype.widthOfString=function(t,e,n){var r,i;return i=this.layout(t,n,!0).advanceWidth,r=e/1e3,i*r},e.prototype.embed=function(){var t,e,n,r,i,o,a,s,u,l;return o=this.document.ref(),this.subset.encodeStream().pipe(o),r=((null!=(l=this.font["OS/2"])?l.sFamilyClass:void 0)||0)>>8,i=0,this.font.post.isFixedPitch&&(i|=1),1<=r&&r<=7&&(i|=2),i|=4,10===r&&(i|=8),this.font.head.macStyle.italic&&(i|=64),u=function(){var t,e;for(e=[],a=t=0;t<6;a=++t)e.push(String.fromCharCode(26*Math.random()+65));return e}().join(""),s=u+"+"+this.font.postscriptName,t=this.font.bbox,n=this.document.ref({Type:"FontDescriptor",FontName:s,Flags:i,FontBBox:[t.minX*this.scale,t.minY*this.scale,t.maxX*this.scale,t.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0}),n.data.FontFile2=o,n.end(),(e=this.document.ref({Type:"Font",Subtype:"CIDFontType2",BaseFont:s,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:n,W:[0,this.widths]})).end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:s,Encoding:"Identity-H",DescendantFonts:[e],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()},n=function(){var t,e;return e=1<=arguments.length?s.call(arguments,0):[],function(){var n,r,i;for(i=[],n=0,r=e.length;n<r;n++)t=e[n],i.push(("0000"+t.toString(16)).slice(-4));return i}().join("")},e.prototype.toUnicodeCmap=function(){var t,e,r,i,o,a,s,u,l,c;for(t=this.document.ref(),i=[],a=0,u=(c=this.unicode).length;a<u;a++){for(r=[],s=0,l=(e=c[a]).length;s<l;s++)(o=e[s])>65535&&(o-=65536,r.push(n(o>>>10&1023|55296)),o=56320|1023&o),r.push(n(o));i.push("<"+r.join(" ")+">")}return t.end("/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\n1 beginbfrange\n<0000> <"+n(i.length-1)+"> ["+i.join(" ")+"]\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"),t},e}(),e.localExports=r},{"../font":3,"../object":18}],6:[function(t,e,n){var r,i,o,a={}.hasOwnProperty,s=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=t("./afm"),i=t("../font"),t("fs"),o=function(t){function e(t,e,i){var o;this.document=t,this.name=e,this.id=i,this.font=new r(n[this.name]()),o=this.font,this.ascender=o.ascender,this.descender=o.descender,this.bbox=o.bbox,this.lineGap=o.lineGap}var n;return s(e,i),e.prototype.embed=function(){return this.dictionary.data={Type:"Font",BaseFont:this.name,Subtype:"Type1",Encoding:"WinAnsiEncoding"},this.dictionary.end()},e.prototype.encode=function(t){var e,n,r,i,o,a,s,u;for(n=this.font.encodeText(t),i=this.font.glyphsForString(""+t),e=this.font.advancesForGlyphs(i),a=[],o=s=0,u=i.length;s<u;o=++s)r=i[o],a.push({xAdvance:e[o],yAdvance:0,xOffset:0,yOffset:0,advanceWidth:this.font.widthOfGlyph(r)});return[n,a]},e.prototype.widthOfString=function(t,e){var n,r,i,o,a,s;for(r=this.font.glyphsForString(""+t),o=0,a=0,s=(n=this.font.advancesForGlyphs(r)).length;a<s;a++)o+=n[a];return i=e/1e3,o*i},e.isStandardFont=function(t){return t in n},n={Courier:function(){return[0,"-23:-250:715:805",562,426,629,-157,"0-314:600"]},"Courier-Bold":function(){return[0,"-113:-250:749:801",562,439,629,-157,"0-314:600"]},"Courier-Oblique":function(){return[-12,"-27:-250:849:805",562,426,629,-157,"0-314:600"]},"Courier-BoldOblique":function(){return[-12,"-57:-250:869:801",562,439,629,-157,"0-314:600"]},Helvetica:function(){return[0,"-166:-225:1000:931",718,523,718,-207,"278,278,355,556,556,889,667,222,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,222,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,167,556,556,556,556,191,333,556,333,333,500,500,556,556,556,278,537,350,222,333,333,556,1000,1000,611,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,370,556,778,1000,365,889,278,222,611,944,611,278,556,556,556,556,667,584,667,667,556,722,500,500,556,722,722,556,722,556,667,722,250,737,667,500,556,722,222,556,611,722,556,667,500,500,278,471,722,778,556,556,667,333,500,611,667,778,722,667,643,722,556,333,778,667,667,584,556,611,476,500,722,278,667,556,556,500,556,556,722,278,584,260,737,778,278,600,667,333,556,611,611,549,722,722,222,317,556,722,667,667,556,500,222,778,556,556,500,278,778,722,612,556,333,778,556,278,556,667,556,834,667,299,667,556,1000,556,278,278,556,834,549,556,556,722,667,556,556,834,667,667,778,400,556,722,556,453,722,333,722,556,722,556,667,667,667,778,500,667,278,500,584,278,556,278,584,556,556,549,556,556,500,556,333,278,556"]},"Helvetica-Bold":function(){return[0,"-170:-228:1003:962",718,532,718,-207,"278,333,474,556,556,889,722,278,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,278,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,167,556,556,556,556,238,500,556,333,333,611,611,556,556,556,278,556,350,278,500,500,556,1000,1000,611,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,370,611,778,1000,365,889,278,278,611,944,611,278,556,556,611,556,667,584,667,722,556,722,556,556,556,722,722,556,722,611,667,722,250,737,667,556,556,722,278,556,611,722,556,667,556,556,278,494,722,778,611,556,722,389,556,611,667,778,722,667,743,722,611,333,778,722,722,584,611,611,494,556,722,278,667,556,556,556,611,611,722,278,584,280,737,778,278,600,667,389,611,611,611,549,722,722,278,389,556,722,722,722,556,500,278,778,611,556,556,278,778,722,612,611,333,778,611,278,611,667,611,834,667,400,722,611,1000,556,278,278,611,834,549,611,611,722,667,556,611,834,667,667,778,400,611,722,611,549,722,389,722,611,722,611,722,722,722,778,500,667,278,556,584,278,611,333,584,611,611,549,611,611,500,611,333,278,556"]},"Helvetica-Oblique":function(){return[-12,"-170:-225:1116:931",718,523,718,-207,"278,278,355,556,556,889,667,222,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,222,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,167,556,556,556,556,191,333,556,333,333,500,500,556,556,556,278,537,350,222,333,333,556,1000,1000,611,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,370,556,778,1000,365,889,278,222,611,944,611,278,556,556,556,556,667,584,667,667,556,722,500,500,556,722,722,556,722,556,667,722,250,737,667,500,556,722,222,556,611,722,556,667,500,500,278,471,722,778,556,556,667,333,500,611,667,778,722,667,643,722,556,333,778,667,667,584,556,611,476,500,722,278,667,556,556,500,556,556,722,278,584,260,737,778,278,600,667,333,556,611,611,549,722,722,222,317,556,722,667,667,556,500,222,778,556,556,500,278,778,722,612,556,333,778,556,278,556,667,556,834,667,299,667,556,1000,556,278,278,556,834,549,556,556,722,667,556,556,834,667,667,778,400,556,722,556,453,722,333,722,556,722,556,667,667,667,778,500,667,278,500,584,278,556,278,584,556,556,549,556,556,500,556,333,278,556"]},"Helvetica-BoldOblique":function(){return[-12,"-174:-228:1114:962",718,532,718,-207,"278,333,474,556,556,889,722,278,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,278,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,167,556,556,556,556,238,500,556,333,333,611,611,556,556,556,278,556,350,278,500,500,556,1000,1000,611,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,370,611,778,1000,365,889,278,278,611,944,611,278,556,556,611,556,667,584,667,722,556,722,556,556,556,722,722,556,722,611,667,722,250,737,667,556,556,722,278,556,611,722,556,667,556,556,278,494,722,778,611,556,722,389,556,611,667,778,722,667,743,722,611,333,778,722,722,584,611,611,494,556,722,278,667,556,556,556,611,611,722,278,584,280,737,778,278,600,667,389,611,611,611,549,722,722,278,389,556,722,722,722,556,500,278,778,611,556,556,278,778,722,612,611,333,778,611,278,611,667,611,834,667,400,722,611,1000,556,278,278,611,834,549,611,611,722,667,556,611,834,667,667,778,400,611,722,611,549,722,389,722,611,722,611,722,722,722,778,500,667,278,556,584,278,611,333,584,611,611,549,611,611,500,611,333,278,556"]},"Times-Roman":function(){return[0,"-168:-218:1000:898",662,450,683,-217,"250,333,408,500,500,833,778,333,333,333,500,564,250,333,250,278,500,500,500,500,500,500,500,500,500,500,278,278,564,564,564,444,921,722,667,667,722,611,556,722,722,333,389,722,611,889,722,722,556,722,667,556,611,722,722,944,722,722,611,333,278,333,469,500,333,444,500,444,500,444,333,500,500,278,278,500,278,778,500,500,500,500,333,389,278,500,500,722,500,500,444,480,200,480,541,333,500,500,167,500,500,500,500,180,444,500,333,333,556,556,500,500,500,250,453,350,333,444,444,500,1000,1000,444,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,889,276,611,722,889,310,667,278,278,500,722,500,333,444,444,500,444,722,564,722,722,444,722,500,389,444,722,722,444,722,500,611,722,250,760,611,444,444,722,278,444,611,667,444,611,389,389,278,471,667,722,500,444,722,333,444,611,556,722,667,556,588,722,500,300,722,722,722,564,500,611,476,500,722,278,611,444,444,444,500,500,722,333,564,200,760,722,333,600,611,333,500,611,611,549,722,667,278,326,444,722,722,722,444,444,278,722,500,444,389,278,722,722,612,500,300,722,500,278,500,611,500,750,556,344,722,611,980,444,333,333,611,750,549,500,500,722,611,444,500,750,556,556,722,400,500,667,500,453,722,333,722,500,667,611,722,722,722,722,444,611,333,500,564,333,500,278,564,500,500,549,500,500,444,500,300,278,500"]},"Times-Bold":function(){return[0,"-168:-218:1000:935",676,461,683,-217,"250,333,555,500,500,1000,833,333,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,930,722,667,722,722,667,611,778,778,389,500,778,667,944,722,778,611,778,722,556,667,722,722,1000,722,722,667,333,278,333,581,500,333,500,556,444,556,444,333,500,556,278,333,556,278,833,556,500,556,556,444,389,333,556,500,722,500,500,444,394,220,394,520,333,500,500,167,500,500,500,500,278,500,500,333,333,556,556,500,500,500,250,540,350,333,500,500,500,1000,1000,500,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,1000,300,667,778,1000,330,722,278,278,500,722,556,389,444,500,556,444,722,570,722,722,500,722,500,389,444,722,722,500,722,556,667,722,250,747,667,444,500,722,278,500,667,722,500,667,389,389,278,494,722,778,556,500,722,444,444,667,611,778,722,556,672,722,556,300,778,722,722,570,556,667,494,500,722,278,667,500,444,444,556,556,722,389,570,220,747,778,389,600,667,444,500,667,667,549,722,722,278,416,444,722,722,722,444,444,278,778,500,500,389,278,778,722,612,556,300,778,556,278,500,667,556,750,556,394,778,667,1000,444,389,389,667,750,549,500,556,722,667,444,500,750,556,556,778,400,500,722,556,549,722,444,722,500,722,667,722,722,722,778,444,667,389,556,570,389,556,333,570,500,556,549,500,500,444,556,300,278,500"]},"Times-Italic":function(){return[-15.5,"-169:-217:1010:883",653,441,683,-217,"250,333,420,500,500,833,778,333,333,333,500,675,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,675,675,675,500,920,611,611,667,722,611,611,722,722,333,444,667,556,833,667,722,611,722,611,500,556,722,611,833,611,556,556,389,278,389,422,500,333,500,500,444,500,444,278,500,500,278,278,444,278,722,500,500,500,500,389,389,278,500,444,667,444,444,389,400,275,400,541,389,500,500,167,500,500,500,500,214,556,500,333,333,500,500,500,500,500,250,523,350,333,556,556,500,889,1000,500,333,333,333,333,333,333,333,333,333,333,333,333,333,889,889,276,556,722,944,310,667,278,278,500,667,500,333,444,500,500,444,556,675,556,611,500,722,444,389,444,722,722,500,722,500,611,722,250,760,611,444,500,667,278,500,556,667,500,611,389,389,278,471,611,722,500,500,611,389,444,556,611,722,611,500,544,722,500,300,722,611,611,675,500,556,476,444,667,278,611,500,444,444,500,500,667,333,675,275,760,722,333,600,611,389,500,556,556,549,722,667,278,300,444,722,611,611,444,389,278,722,500,500,389,278,722,722,612,500,300,722,500,278,500,611,500,750,500,300,667,556,980,444,333,333,611,750,549,500,500,722,611,444,500,750,500,500,722,400,500,667,500,453,722,389,667,500,611,556,611,611,611,722,389,611,333,444,675,333,500,278,675,500,500,549,500,500,389,500,300,278,500"]},"Times-BoldItalic":function(){return[-15,"-200:-218:996:921",669,462,683,-217,"250,389,555,500,500,833,778,333,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,832,667,667,667,722,667,667,722,778,389,500,667,611,889,722,722,611,722,667,556,611,722,667,889,667,611,611,333,278,333,570,500,333,500,500,444,500,444,333,500,556,278,278,500,278,778,556,500,500,500,389,389,278,556,444,667,500,444,389,348,220,348,570,389,500,500,167,500,500,500,500,278,500,500,333,333,556,556,500,500,500,250,500,350,333,500,500,500,1000,1000,500,333,333,333,333,333,333,333,333,333,333,333,333,333,1000,944,266,611,722,944,300,722,278,278,500,722,500,389,444,500,556,444,611,570,611,667,500,722,444,389,444,722,722,500,722,556,667,722,250,747,667,444,500,722,278,500,611,667,500,667,389,389,278,494,667,722,556,500,667,389,444,611,611,722,667,556,608,722,556,300,722,667,667,570,556,611,494,444,722,278,667,500,444,444,556,556,722,389,570,220,747,722,389,600,667,389,500,611,611,549,722,667,278,366,444,722,667,667,444,389,278,722,500,500,389,278,722,722,612,500,300,722,576,278,500,667,500,750,556,382,667,611,1000,444,389,389,611,750,549,500,556,722,667,444,500,750,556,556,722,400,500,667,556,549,722,389,722,500,667,611,667,667,667,722,389,667,389,500,606,389,556,278,606,500,556,549,500,500,389,556,300,278,500"]},Symbol:function(){return[0,"-180:-293:1090:1010",0,0,0,0,"250,333,315:713,3:500,316:549,5:833,778,317:439,8:333,333,318:500,11:549,250,300:549,14:250,278,500,500,500,500,500,500,500,500,500,500,278,278,549,549,549,444,319:549,722,667,722,250:612,323:611,763,603,722,333,631,722,686,889,722,722,768,741,556,592,611,690,439,768,645,795,611,59:333,345:863,61:333,346:658,63:500,347:500,631,549,549,494,439,521,411,603,329,603,549,549,254:576,360:521,549,549,521,549,603,439,576,713,686,493,686,494,91:480,200,480,373:549,314:750,374:620,247,270:549,98:167,376:713,100:500,377:753,753,753,753,1042,987,603,987,603,281:400,220:549,386:411,231:549,205:549,387:713,208:494,115:460,155:549,307:549,388:549,549,120:1000,390:603,1000,658,823,686,795,987,768,768,823,768,768,713,713,713,713,713,713,713,768,713,790,790,890,823,285:549,415:250,304:713,416:603,603,1042,987,603,987,603,185:494,423:329,790,790,786,225:713,427:384,384,384,384,384,384,494,494,494,494,329,274,686,686,686,384,384,384,384,384,384,494,494,494,790"]},ZapfDingbats:function(){return[0,"-1:-143:981:820",0,0,0,0,"278,452:974,961,974,980,719,789,790,791,690,960,939,549,855,911,933,911,945,974,755,846,762,761,571,677,763,760,759,754,494,552,537,577,692,786,788,788,790,793,794,816,823,789,841,823,833,816,831,923,744,723,749,790,792,695,776,768,792,759,707,708,682,701,826,815,789,789,707,687,696,689,786,787,713,791,785,791,873,761,762,762,759,759,892,892,788,784,438,138,277,415,392,392,668,668,390,390,317,317,276,276,509,509,410,410,234,234,334,334,732,544,544,910,667,760,760,776,595,694,626,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,894,838,1016,458,748,924,748,918,927,928,928,834,873,828,924,924,917,930,931,463,883,836,836,867,867,696,696,874,874,760,946,771,865,771,888,967,888,831,873,927,970,918"]}},e}(),e.localExports=o},{"../font":3,"./afm":4,fs:59}],7:[function(t,e,n){var r,i,o,a={}.hasOwnProperty,s=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=function(){function t(t){this.doc=t,this.stops=[],this.embedded=!1,this.transform=[1,0,0,1,0,0],this._colorSpace="DeviceRGB"}return t.prototype.stop=function(t,e,n){return null==n&&(n=1),n=Math.max(0,Math.min(1,n)),this.stops.push([t,this.doc._normalizeColor(e),n]),this},t.prototype.embed=function(){var t,e,n,r,i,o,a,s,u,l,c,h,f,d,p,g,_,y,m,v,b,w,x,k,S,C,E,A,P,j,O,I,T,B,L,R;if(!this.embedded&&0!==this.stops.length){for(this.embedded=!0,(c=this.stops[this.stops.length-1])[0]<1&&this.stops.push([1,c[1],c[2]]),t=[],r=[],P=[],l=O=0,B=this.stops.length-1;0<=B?O<B:O>B;l=0<=B?++O:--O)r.push(0,1),l+2!==this.stops.length&&t.push(this.stops[l+1][0]),i=this.doc.ref({FunctionType:2,Domain:[0,1],C0:this.stops[l+0][1],C1:this.stops[l+1][1],N:1}),P.push(i),i.end();if(1===P.length?i=P[0]:(i=this.doc.ref({FunctionType:3,Domain:[0,1],Functions:P,Bounds:t,Encode:r})).end(),this.id="Sh"+ ++this.doc._gradCount,h=this.doc._ctm.slice(),f=h[0],d=h[1],_=h[2],v=h[3],b=h[4],w=h[5],L=this.transform,p=L[0],g=L[1],y=L[2],m=L[3],e=L[4],n=L[5],h[0]=f*p+_*g,h[1]=d*p+v*g,h[2]=f*y+_*m,h[3]=d*y+v*m,h[4]=f*e+_*n+b,h[5]=d*e+v*n+w,(E=this.shader(i)).end(),k=this.doc.ref({Type:"Pattern",PatternType:2,Shading:E,Matrix:function(){var t,e,n;for(n=[],t=0,e=h.length;t<e;t++)j=h[t],n.push(+j.toFixed(5));return n}()}),this.doc.page.patterns[this.id]=k,k.end(),this.stops.some(function(t){return t[2]<1})){for((a=this.opacityGradient())._colorSpace="DeviceGray",I=0,T=(R=this.stops).length;I<T;I++)A=R[I],a.stop(A[0],[A[2]]);a=a.embed(),(s=this.doc.ref({Type:"Group",S:"Transparency",CS:"DeviceGray"})).end(),(S=this.doc.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Shading:{Sh1:a.data.Shading}})).end(),(o=this.doc.ref({Type:"XObject",Subtype:"Form",FormType:1,BBox:[0,0,this.doc.page.width,this.doc.page.height],Group:s,Resources:S})).end("/Sh1 sh"),(C=this.doc.ref({Type:"Mask",S:"Luminosity",G:o})).end(),u=this.doc.ref({Type:"ExtGState",SMask:C}),this.opacity_id=++this.doc._opacityCount,x="Gs"+this.opacity_id,this.doc.page.ext_gstates[x]=u,u.end()}return k}},t.prototype.apply=function(t){if(this.embedded||this.embed(),this.doc.addContent("/"+this.id+" "+t),this.opacity_id)return this.doc.addContent("/Gs"+this.opacity_id+" gs"),this.doc._sMasked=!0},t}(),i=function(t){function e(t,n,r,i,o){this.doc=t,this.x1=n,this.y1=r,this.x2=i,this.y2=o,e.__super__.constructor.apply(this,arguments)}return s(e,r),e.prototype.shader=function(t){return this.doc.ref({ShadingType:2,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.x2,this.y2],Function:t,Extend:[!0,!0]})},e.prototype.opacityGradient=function(){return new e(this.doc,this.x1,this.y1,this.x2,this.y2)},e}(),o=function(t){function e(t,n,r,i,o,a,s){this.doc=t,this.x1=n,this.y1=r,this.r1=i,this.x2=o,this.y2=a,this.r2=s,e.__super__.constructor.apply(this,arguments)}return s(e,r),e.prototype.shader=function(t){return this.doc.ref({ShadingType:3,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.r1,this.x2,this.y2,this.r2],Function:t,Extend:[!0,!0]})},e.prototype.opacityGradient=function(){return new e(this.doc,this.x1,this.y1,this.r1,this.x2,this.y2,this.r2)},e}(),e.localExports={PDFGradient:r,PDFLinearGradient:i,PDFRadialGradient:o}},{}],8:[function(t,e,n){(function(n){var r,i,o,a;a=t("fs"),t("./data"),r=t("./image/jpeg"),o=t("./image/png"),i=function(){function t(){}return t.open=function(t,e){var i,s;if(n.isBuffer(t))i=t;else if(t instanceof ArrayBuffer)i=new n(new Uint8Array(t));else if(s=/^data:.+;base64,(.*)$/.exec(t))i=new n(s[1],"base64");else if(!(i=a.readFileSync(t)))return;if(255===i[0]&&216===i[1])return new r(i,e);if(137===i[0]&&"PNG"===i.toString("ascii",1,4))return new o(i,e);throw new Error("Unknown image format.")},t}(),e.localExports=i}).call(this,t("buffer").Buffer)},{"./data":1,"./image/jpeg":9,"./image/png":10,buffer:60,fs:59}],9:[function(t,e,n){var r,i=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1};t("fs"),r=function(){function t(t,n){var r,o,a;if(this.data=t,this.label=n,65496!==this.data.readUInt16BE(0))throw"SOI not found in JPEG";for(a=2;a<this.data.length&&(o=this.data.readUInt16BE(a),a+=2,!(i.call(e,o)>=0));)a+=this.data.readUInt16BE(a);if(i.call(e,o)<0)throw"Invalid JPEG.";a+=2,this.bits=this.data[a++],this.height=this.data.readUInt16BE(a),a+=2,this.width=this.data.readUInt16BE(a),a+=2,r=this.data[a++],this.colorSpace=function(){switch(r){case 1:return"DeviceGray";case 3:return"DeviceRGB";case 4:return"DeviceCMYK"}}(),this.obj=null}var e;return e=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487],t.prototype.embed=function(t){if(!this.obj)return this.obj=t.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:this.bits,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode"}),"DeviceCMYK"===this.colorSpace&&(this.obj.data.Decode=[1,0,1,0,1,0,1,0]),this.obj.end(this.data),this.data=null},t}(),e.localExports=r},{fs:59}],10:[function(t,e,n){(function(n){var r,i,o;o=t("zlib"),r=t("png-js"),i=function(){function t(t,e){this.label=e,this.image=new r(t),this.width=this.image.width,this.height=this.image.height,this.imgData=this.image.imgData,this.obj=null}return t.prototype.embed=function(t){var e,r,i,o,a,s,u,l;if(this.document=t,!this.obj){if(this.obj=this.document.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:this.image.bits,Width:this.width,Height:this.height,Filter:"FlateDecode"}),this.image.hasAlphaChannel||(i=this.document.ref({Predictor:15,Colors:this.image.colors,BitsPerComponent:this.image.bits,Columns:this.width}),this.obj.data.DecodeParms=i,i.end()),0===this.image.palette.length?this.obj.data.ColorSpace=this.image.colorSpace:((r=this.document.ref()).end(new n(this.image.palette)),this.obj.data.ColorSpace=["Indexed","DeviceRGB",this.image.palette.length/3-1,r]),this.image.transparency.grayscale)return a=this.image.transparency.greyscale,this.obj.data.Mask=[a,a];if(this.image.transparency.rgb){for(e=[],u=0,l=(o=this.image.transparency.rgb).length;u<l;u++)s=o[u],e.push(s,s);return this.obj.data.Mask=e}return this.image.transparency.indexed?this.loadIndexedAlphaChannel():this.image.hasAlphaChannel?this.splitAlphaChannel():this.finalize()}},t.prototype.finalize=function(){var t;return this.alphaChannel&&((t=this.document.ref({Type:"XObject",Subtype:"Image",Height:this.height,Width:this.width,BitsPerComponent:8,Filter:"FlateDecode",ColorSpace:"DeviceGray",Decode:[0,1]})).end(this.alphaChannel),this.obj.data.SMask=t),this.obj.end(this.imgData),this.image=null,this.imgData=null},t.prototype.splitAlphaChannel=function(){return this.image.decodePixels(function(t){return function(e){var r,i,a,s,u,l,c,h,f;for(a=t.image.colors*t.image.bits/8,f=t.width*t.height,l=new n(f*a),i=new n(f),u=h=r=0,c=e.length;u<c;)l[h++]=e[u++],l[h++]=e[u++],l[h++]=e[u++],i[r++]=e[u++];return s=0,o.deflate(l,function(e,n){if(t.imgData=n,e)throw e;if(2==++s)return t.finalize()}),o.deflate(i,function(e,n){if(t.alphaChannel=n,e)throw e;if(2==++s)return t.finalize()})}}(this))},t.prototype.loadIndexedAlphaChannel=function(t){var e;return e=this.image.transparency.indexed,this.image.decodePixels(function(t){return function(r){var i,a,s,u,l;for(i=new n(t.width*t.height),a=0,s=u=0,l=r.length;u<l;s=u+=1)i[a++]=e[r[s]];return o.deflate(i,function(e,n){if(t.alphaChannel=n,e)throw e;return t.finalize()})}}(this))},t}(),e.localExports=i}).call(this,t("buffer").Buffer)},{buffer:60,"png-js":186,zlib:58}],11:[function(t,e,n){var r,i,o,a={}.hasOwnProperty,s=function(t,e){function n(){this.constructor=t}for(var r in e)a.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};r=t("events").EventEmitter,i=t("linebreak"),o=function(t){function e(t,e){var n;this.document=t,this.indent=e.indent||0,this.characterSpacing=e.characterSpacing||0,this.wordSpacing=0===e.wordSpacing,this.columns=e.columns||1,this.columnGap=null!=(n=e.columnGap)?n:18,this.lineWidth=(e.width-this.columnGap*(this.columns-1))/this.columns,this.spaceLeft=this.lineWidth,this.startX=this.document.x,this.startY=this.document.y,this.column=1,this.ellipsis=e.ellipsis,this.continuedX=0,this.features=e.features,null!=e.height?(this.height=e.height,this.maxY=this.startY+e.height):this.maxY=this.document.page.maxY(),this.on("firstLine",function(t){return function(e){var n;return n=t.continuedX||t.indent,t.document.x+=n,t.lineWidth-=n,t.once("line",function(){if(t.document.x-=n,t.lineWidth+=n,e.continued&&!t.continuedX&&(t.continuedX=t.indent),!e.continued)return t.continuedX=0})}}(this)),this.on("lastLine",function(t){return function(e){var n;return"justify"===(n=e.align)&&(e.align="left"),t.lastLine=!0,t.once("line",function(){return t.document.y+=e.paragraphGap||0,e.align=n,t.lastLine=!1})}}(this))}return s(e,r),e.prototype.wordWidth=function(t){return this.document.widthOfString(t,this)+this.characterSpacing+this.wordSpacing},e.prototype.eachWord=function(t,e){var n,r,o,a,s,u,l,c,h,f;for(r=new i(t),s=null,f=Object.create(null);n=r.nextBreak();){if(h=t.slice((null!=s?s.position:void 0)||0,n.position),(c=null!=f[h]?f[h]:f[h]=this.wordWidth(h))>this.lineWidth+this.continuedX)for(u=s,o={};h.length;){for(a=h.length;c>this.spaceLeft;)c=this.wordWidth(h.slice(0,--a));if(o.required=a<h.length,l=e(h.slice(0,a),c,o,u),u={required:!1},h=h.slice(a),c=this.wordWidth(h),!1===l)break}else l=e(h,c,n,s);if(!1===l)break;s=n}},e.prototype.wrap=function(t,e){var n,r,i,o,a,s,u;return null!=e.indent&&(this.indent=e.indent),null!=e.characterSpacing&&(this.characterSpacing=e.characterSpacing),null!=e.wordSpacing&&(this.wordSpacing=e.wordSpacing),null!=e.ellipsis&&(this.ellipsis=e.ellipsis),o=this.document.y+this.document.currentLineHeight(!0),(this.document.y>this.maxY||o>this.maxY)&&this.nextSection(),n="",a=0,s=0,i=0,u=this.document.y,r=function(t){return function(){return e.textWidth=a+t.wordSpacing*(s-1),e.wordCount=s,e.lineWidth=t.lineWidth,u=t.document.y,t.emit("line",n,e,t),i++}}(this),this.emit("sectionStart",e,this),this.eachWord(t,function(t){return function(i,o,u,l){var c;if((null==l||l.required)&&(t.emit("firstLine",e,t),t.spaceLeft=t.lineWidth),o<=t.spaceLeft&&(n+=i,a+=o,s++),u.required||o>t.spaceLeft){if(u.required&&t.emit("lastLine",e,t),c=t.document.currentLineHeight(!0),null!=t.height&&t.ellipsis&&t.document.y+2*c>t.maxY&&t.column>=t.columns){for(!0===t.ellipsis&&(t.ellipsis="вЂ¦"),n=n.replace(/\s+$/,""),a=t.wordWidth(n+t.ellipsis);a>t.lineWidth;)n=n.slice(0,-1).replace(/\s+$/,""),a=t.wordWidth(n+t.ellipsis);n+=t.ellipsis}return r(),t.maxY-(t.document.y+c)<-1e-6&&!t.nextSection()?(s=0,n="",!1):u.required?(o>t.spaceLeft&&(n=i,a=o,s=1,r()),t.spaceLeft=t.lineWidth,n="",a=0,s=0):(t.spaceLeft=t.lineWidth-o,n=i,a=o,s=1)}return t.spaceLeft-=o}}(this)),s>0&&(this.emit("lastLine",e,this),r()),this.emit("sectionEnd",e,this),!0===e.continued?(i>1&&(this.continuedX=0),this.continuedX+=e.textWidth,this.document.y=u):this.document.x=this.startX},e.prototype.nextSection=function(t){var e;if(this.emit("sectionEnd",t,this),++this.column>this.columns){if(null!=this.height)return!1;this.document.addPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.document.x=this.startX,this.document._fillColor&&(e=this.document).fillColor.apply(e,this.document._fillColor),this.emit("pageBreak",t,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",t,this);return this.emit("sectionStart",t,this),!0},e}(),e.localExports=o},{events:164,linebreak:173}],12:[function(t,e,n){e.localExports={annotate:function(t,e,n,r,i){var o,a,s;i.Type="Annot",i.Rect=this._convertRect(t,e,n,r),i.Border=[0,0,0],"Link"!==i.Subtype&&null==i.C&&(i.C=this._normalizeColor(i.color||[0,0,0])),delete i.color,"string"==typeof i.Dest&&(i.Dest=new String(i.Dest));for(o in i)s=i[o],i[o[0].toUpperCase()+o.slice(1)]=s;return a=this.ref(i),this.page.annotations.push(a),a.end(),this},note:function(t,e,n,r,i,o){return null==o&&(o={}),o.Subtype="Text",o.Contents=new String(i),o.Name="Comment",null==o.color&&(o.color=[243,223,92]),this.annotate(t,e,n,r,o)},link:function(t,e,n,r,i,o){return null==o&&(o={}),o.Subtype="Link",o.A=this.ref({S:"URI",URI:new String(i)}),o.A.end(),this.annotate(t,e,n,r,o)},_markup:function(t,e,n,r,i){var o,a,s,u,l;return null==i&&(i={}),l=this._convertRect(t,e,n,r),o=l[0],s=l[1],a=l[2],u=l[3],i.QuadPoints=[o,u,a,u,o,s,a,s],i.Contents=new String,this.annotate(t,e,n,r,i)},highlight:function(t,e,n,r,i){return null==i&&(i={}),i.Subtype="Highlight",null==i.color&&(i.color=[241,238,148]),this._markup(t,e,n,r,i)},underline:function(t,e,n,r,i){return null==i&&(i={}),i.Subtype="Underline",this._markup(t,e,n,r,i)},strike:function(t,e,n,r,i){return null==i&&(i={}),i.Subtype="StrikeOut",this._markup(t,e,n,r,i)},lineAnnotation:function(t,e,n,r,i){return null==i&&(i={}),i.Subtype="Line",i.Contents=new String,i.L=[t,this.page.height-e,n,this.page.height-r],this.annotate(t,e,n,r,i)},rectAnnotation:function(t,e,n,r,i){return null==i&&(i={}),i.Subtype="Square",i.Contents=new String,this.annotate(t,e,n,r,i)},ellipseAnnotation:function(t,e,n,r,i){return null==i&&(i={}),i.Subtype="Circle",i.Contents=new String,this.annotate(t,e,n,r,i)},textAnnotation:function(t,e,n,r,i,o){return null==o&&(o={}),o.Subtype="FreeText",o.Contents=new String(i),o.DA=new String,this.annotate(t,e,n,r,o)},_convertRect:function(t,e,n,r){var i,o,a,s,u,l,c,h,f;return h=e,e+=r,c=t+n,f=this._ctm,i=f[0],o=f[1],a=f[2],s=f[3],u=f[4],l=f[5],t=i*t+a*e+u,e=o*t+s*e+l,c=i*c+a*h+u,h=o*c+s*h+l,[t,e,c,h]}}},{}],13:[function(t,e,n){var r,i,o,a,s;s=t("../gradient"),r=s.PDFGradient,i=s.PDFLinearGradient,o=s.PDFRadialGradient,e.localExports={initColor:function(){return this._opacityRegistry={},this._opacityCount=0,this._gradCount=0},_normalizeColor:function(t){var e,n;return t instanceof r?t:("string"==typeof t&&("#"===t.charAt(0)?(4===t.length&&(t=t.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i,"#$1$1$2$2$3$3")),e=parseInt(t.slice(1),16),t=[e>>16,e>>8&255,255&e]):a[t]&&(t=a[t])),Array.isArray(t)?(3===t.length?t=function(){var e,r,i;for(i=[],e=0,r=t.length;e<r;e++)n=t[e],i.push(n/255);return i}():4===t.length&&(t=function(){var e,r,i;for(i=[],e=0,r=t.length;e<r;e++)n=t[e],i.push(n/100);return i}()),t):null)},_setColor:function(t,e){var n,i,o,a;return!!(t=this._normalizeColor(t))&&(this._sMasked&&((n=this.ref({Type:"ExtGState",SMask:"None"})).end(),i="Gs"+ ++this._opacityCount,this.page.ext_gstates[i]=n,this.addContent("/"+i+" gs"),this._sMasked=!1),o=e?"SCN":"scn",t instanceof r?(this._setColorSpace("Pattern",e),t.apply(o)):(a=4===t.length?"DeviceCMYK":"DeviceRGB",this._setColorSpace(a,e),t=t.join(" "),this.addContent(t+" "+o)),!0)},_setColorSpace:function(t,e){var n;return n=e?"CS":"cs",this.addContent("/"+t+" "+n)},fillColor:function(t,e){return null==e&&(e=1),this._setColor(t,!1)&&this.fillOpacity(e),this._fillColor=[t,e],this},strokeColor:function(t,e){return null==e&&(e=1),this._setColor(t,!0)&&this.strokeOpacity(e),this},opacity:function(t){return this._doOpacity(t,t),this},fillOpacity:function(t){return this._doOpacity(t,null),this},strokeOpacity:function(t){return this._doOpacity(null,t),this},_doOpacity:function(t,e){var n,r,i,o;if(null!=t||null!=e)return null!=t&&(t=Math.max(0,Math.min(1,t))),null!=e&&(e=Math.max(0,Math.min(1,e))),r=t+"_"+e,this._opacityRegistry[r]?(n=(o=this._opacityRegistry[r])[0],i=o[1]):(n={Type:"ExtGState"},null!=t&&(n.ca=t),null!=e&&(n.CA=e),(n=this.ref(n)).end(),i="Gs"+ ++this._opacityCount,this._opacityRegistry[r]=[n,i]),this.page.ext_gstates[i]=n,this.addContent("/"+i+" gs")},linearGradient:function(t,e,n,r){return new i(this,t,e,n,r)},radialGradient:function(t,e,n,r,i,a){return new o(this,t,e,n,r,i,a)}},a={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{"../gradient":7}],14:[function(t,e,n){var r;r=t("../font"),e.localExports={initFonts:function(){return this._fontFamilies={},this._fontCount=0,this._fontSize=12,this._font=null,this._registeredFonts={},this.font("Helvetica")},font:function(t,e,n){var i,o,a,s;return"number"==typeof e&&(n=e,e=null),"string"==typeof t&&this._registeredFonts[t]?(i=t,t=(s=this._registeredFonts[t]).src,e=s.family):"string"!=typeof(i=e||t)&&(i=null),null!=n&&this.fontSize(n),(o=this._fontFamilies[i])?(this._font=o,this):(a="F"+ ++this._fontCount,this._font=r.open(this,t,e,a),(o=this._fontFamilies[this._font.name])?(this._font=o,this):(i&&(this._fontFamilies[i]=this._font),this._fontFamilies[this._font.name]=this._font,this))},fontSize:function(t){return this._fontSize=t,this},currentLineHeight:function(t){return null==t&&(t=!1),this._font.lineHeight(this._fontSize,t)},currentFontAscender:function(){return this._font.getAscender(this._fontSize)},currentFontBBox:function(){return this._font.getBBox(this._fontSize)},currentFontSize:function(){return this._fontSize},registerFont:function(t,e,n){return this._registeredFonts[t]={src:e,family:n},this}}},{"../font":3}],15:[function(t,e,n){(function(n){var r;r=t("../image"),e.localExports={initImages:function(){return this._imageRegistry={},this._imageCount=0},image:function(t,e,i,o){var a,s,u,l,c,h,f,d,p,g,_,y,m;null==o&&(o={}),"object"==typeof e&&(o=e,e=null),e=null!=(_=null!=e?e:o.x)?_:this.x,i=null!=(y=null!=i?i:o.y)?y:this.y,n.isBuffer(t)||(c=this._imageRegistry[t]),c||((c=r.open(t,"I"+ ++this._imageCount)).embed(this),n.isBuffer(t)||(this._imageRegistry[t]=c)),null==(p=this.page.xobjects)[g=c.label]&&(p[g]=c.obj);var v=.75*c.width,b=.75*c.height;return f=o.width||v,u=o.height||b,o.width&&!o.height?(f=v*(d=f/v),u=b*d):o.height&&!o.width?(f=v*(l=u/b),u=b*l):o.scale?(f=v*o.scale,u=b*o.scale):o.fit&&((h=v/b)>(s=(m=o.fit)[0])/(a=m[1])?(f=s,u=s/h):(u=a,f=a*h),"center"===o.align?e=e+s/2-f/2:"right"===o.align&&(e=e+s-f),"center"===o.valign?i=i+a/2-u/2:"bottom"===o.valign&&(i=i+a-u)),this.y===i&&(this.y+=u),this.save(),this.transform(f,0,0,-u,e,i+u),this.addContent("/"+c.label+" Do"),this.restore(),this}}}).call(this,{isBuffer:t("../../node_modules/is-buffer/index.js")})},{"../../node_modules/is-buffer/index.js":168,"../image":8}],16:[function(t,e,n){var r;r=t("../line_wrapper"),e.localExports={initText:function(){return this.x=0,this.y=0,this._lineGap=0},currentLineGap:function(){return this._lineGap},lineGap:function(t){return this._lineGap=t,this},moveDown:function(t){return null==t&&(t=1),this.y+=this.currentLineHeight(!0)*t+this._lineGap,this},moveUp:function(t){return null==t&&(t=1),this.y-=this.currentLineHeight(!0)*t+this._lineGap,this},_text:function(t,e,n,i,o){var a,s,u,l;if(i=this._initOptions(e,n,i),t=""+t,i.wordSpacing&&(t=t.replace(/\s{2,}/g," ")),i.width)(a=this._wrapper)||(a=new r(this,i)).on("line",o),this._wrapper=i.continued?a:null,this._textOptions=i.continued?i:null,a.wrap(t,i);else for(s=0,u=(l=t.split("\n")).length;s<u;s++)o(l[s],i);return this},text:function(t,e,n,r){return this._text(t,e,n,r,this._line.bind(this))},widthOfString:function(t,e){return null==e&&(e={}),this._font.widthOfString(t,this._fontSize,e.features)+(e.characterSpacing||0)*(t.length-1)},heightOfString:function(t,e){var n,r,i,o;return null==e&&(e={}),i=this.x,o=this.y,e=this._initOptions(e),e.height=1/0,r=e.lineGap||this._lineGap||0,this._text(t,this.x,this.y,e,function(t){return function(e,n){return t.y+=t.currentLineHeight(!0)+r}}(this)),n=this.y-o,this.x=i,this.y=o,n},textAndMeasure:function(t,e,n,r,i){r=r||{},null==e&&(e=this.x,n=this.y);var o=this,a=this.x,s=this.y,u={width:0,height:0,charCount:0},l=r.lineGap||this._lineGap||0,c=r.columnGap||18,h=null==e?this.x:e,f=[],d=0;return i&&null==r.height&&(r.height=1/0),this._text(t,e,n,r,function(n,r,a){u.charCount+=n.length,o.x===e&&(u.height+=o.currentLineHeight(!0)+l),r.textWidth&&(o.x>h&&(h=o.x,f[d++]=r.lineWidth),f[d]=Math.max(f[d]||0,r.textWidth)),i?a?o.y+=o.currentLineHeight(!0)+l:o.x+=o.widthOfString(t):o._line.apply(o,arguments)}),f.length?(f.forEach(function(t){u.width+=t+c}),u.width-=c):u.width=this.x-a,!1===r.includeLastLineExternalLeading&&(u.height-=this.currentLineHeight(!0)-this.currentLineHeight(!1)),u.height=Math.max(0,u.height),i&&(this.x=a,this.y=s),u},list:function(t,e,n,i,o){var a,s,u,l,c,h,f,d;return i=this._initOptions(e,n,i),d=Math.round(this._font.ascender/1e3*this._fontSize/3),u=i.textIndent||5*d,l=i.bulletIndent||8*d,h=1,c=[],f=[],(a=function(t){var e,n,r,i,o;for(o=[],e=r=0,i=t.length;r<i;e=++r)n=t[e],Array.isArray(n)?(h++,a(n),o.push(h--)):(c.push(n),o.push(f.push(h)));return o})(t),(o=new r(this,i)).on("line",this._line.bind(this)),h=1,s=0,o.on("firstLine",function(t){return function(){var e,n;return(n=f[s++])!==h&&(e=l*(n-h),t.x+=e,o.lineWidth-=e,h=n),t.circle(t.x-u+d,t.y+d+d/2,d),t.fill()}}(this)),o.on("sectionStart",function(t){return function(){var e;return e=u+l*(h-1),t.x+=e,o.lineWidth-=e}}(this)),o.on("sectionEnd",function(t){return function(){var e;return e=u+l*(h-1),t.x-=e,o.lineWidth+=e}}(this)),o.wrap(c.join("\n"),i),this},_initOptions:function(t,e,n){var r,i,o,a;if(null==t&&(t={}),null==n&&(n={}),"object"==typeof t&&(n=t,t=null),n=function(){var t,e,r;e={};for(t in n)r=n[t],e[t]=r;return e}(),this._textOptions){a=this._textOptions;for(r in a)o=a[r],"continued"!==r&&null==n[r]&&(n[r]=o)}return null!=t&&(this.x=t),null!=e&&(this.y=e),!1!==n.lineBreak&&(i=this.page.margins,null==n.width&&(n.width=this.page.width-this.x-i.right,n.width=Math.max(n.width,0))),n.columns||(n.columns=0),null==n.columnGap&&(n.columnGap=18),n},_line:function(t,e,n){var r;return null==e&&(e={}),this._fragment(t,this.x,this.y,e),r=e.lineGap||this._lineGap||0,n?this.y+=this.currentLineHeight(!0)+r:this.x+=this.widthOfString(t)},_fragment:function(t,e,n,r){var i,o,a,s,u,l,c,h,f,d,p,g,_,y,m,v,b,w,x,k,S,C,E,A,P,j,O,I,T,B,L,R;if(0!==(t=(""+t).replace(/\n/g,"")).length){if(o=r.align||"left",E=r.wordSpacing||0,a=r.characterSpacing||0,r.width)switch(o){case"right":S=this.widthOfString(t.replace(/\s+$/,""),r),e+=r.lineWidth-S;break;case"center":e+=r.lineWidth/2-r.textWidth/2;break;case"justify":A=t.trim().split(/\s+/),S=this.widthOfString(t.replace(/\s+/g,""),r),k=this.widthOfString(" ")+a,E=Math.max(0,(r.lineWidth-S)/Math.max(1,A.length-1)-k)}if(w=r.textWidth+E*(r.wordCount-1)+a*(t.length-1),r.link&&this.link(e,n,w,this.currentLineHeight(),r.link),(r.underline||r.strike)&&(this.save(),r.stroke||this.strokeColor.apply(this,this._fillColor),g=this._fontSize<10?.5:Math.floor(this._fontSize/10),this.lineWidth(g),u=r.underline?1:2,_=n+this.currentLineHeight()/u,r.underline&&(_-=g),this.moveTo(e,_),this.lineTo(e+w,_),this.stroke(),this.restore()),this.save(),this.transform(1,0,0,-1,0,this.page.height),n=this.page.height-n-this._font.ascender/1e3*this._fontSize,null==(P=this.page.fonts)[B=this._font.id]&&(P[B]=this._font.ref()),this.addContent("BT"),this.addContent("1 0 0 1 "+e+" "+n+" Tm"),this.addContent("/"+this._font.id+" "+this._fontSize+" Tf"),(y=r.fill&&r.stroke?2:r.stroke?1:0)&&this.addContent(y+" Tr"),a&&this.addContent(a+" Tc"),E)for(A=t.trim().split(/\s+/),E+=this.widthOfString(" ")+a,E*=1e3/this._fontSize,l=[],v=[],j=0,I=A.length;j<I;j++)C=A[j],c=(L=this._font.encode(C,r.features))[0],b=L[1],l.push.apply(l,c),v.push.apply(v,b),v[v.length-1].xAdvance+=E;else R=this._font.encode(t,r.features),l=R[0],v=R[1];for(x=this._fontSize/1e3,s=[],p=0,f=!1,i=function(t){var e,n;return p<t&&(n=l.slice(p,t).join(""),e=v[t-1].xAdvance-v[t-1].advanceWidth,s.push("<"+n+"> "+-e)),p=t},h=function(t){return function(e){if(i(e),s.length>0)return t.addContent("["+s.join(" ")+"] TJ"),s.length=0}}(this),d=O=0,T=v.length;O<T;d=++O)(m=v[d]).xOffset||m.yOffset?(h(d),this.addContent("1 0 0 1 "+(e+m.xOffset*x)+" "+(n+m.yOffset*x)+" Tm"),h(d+1),f=!0):(f&&(this.addContent("1 0 0 1 "+e+" "+n+" Tm"),f=!1),m.xAdvance-m.advanceWidth!=0&&i(d+1)),e+=m.xAdvance*x;return h(d),this.addContent("ET"),this.restore()}}}},{"../line_wrapper":11}],17:[function(t,e,n){var r,i,o=[].slice;i=t("../path"),r=(Math.sqrt(2)-1)/3*4,e.localExports={initVector:function(){return this._ctm=[1,0,0,1,0,0],this._ctmStack=[]},save:function(){return this._ctmStack.push(this._ctm.slice()),this.addContent("q")},restore:function(){return this._ctm=this._ctmStack.pop()||[1,0,0,1,0,0],this.addContent("Q")},closePath:function(){return this.addContent("h")},lineWidth:function(t){return this.addContent(t+" w")},_CAP_STYLES:{BUTT:0,ROUND:1,SQUARE:2},lineCap:function(t){return"string"==typeof t&&(t=this._CAP_STYLES[t.toUpperCase()]),this.addContent(t+" J")},_JOIN_STYLES:{MITER:0,ROUND:1,BEVEL:2},lineJoin:function(t){return"string"==typeof t&&(t=this._JOIN_STYLES[t.toUpperCase()]),this.addContent(t+" j")},miterLimit:function(t){return this.addContent(t+" M")},dash:function(t,e){var n,r,i;return null==e&&(e={}),null==t?this:(r=null!=(i=e.space)?i:t,n=e.phase||0,this.addContent("["+t+" "+r+"] "+n+" d"))},undash:function(){return this.addContent("[] 0 d")},moveTo:function(t,e){return this.addContent(t+" "+e+" m")},lineTo:function(t,e){return this.addContent(t+" "+e+" l")},bezierCurveTo:function(t,e,n,r,i,o){return this.addContent(t+" "+e+" "+n+" "+r+" "+i+" "+o+" c")},quadraticCurveTo:function(t,e,n,r){return this.addContent(t+" "+e+" "+n+" "+r+" v")},rect:function(t,e,n,r){return this.addContent(t+" "+e+" "+n+" "+r+" re")},roundedRect:function(t,e,n,r,i){return null==i&&(i=0),this.moveTo(t+i,e),this.lineTo(t+n-i,e),this.quadraticCurveTo(t+n,e,t+n,e+i),this.lineTo(t+n,e+r-i),this.quadraticCurveTo(t+n,e+r,t+n-i,e+r),this.lineTo(t+i,e+r),this.quadraticCurveTo(t,e+r,t,e+r-i),this.lineTo(t,e+i),this.quadraticCurveTo(t,e,t+i,e)},ellipse:function(t,e,n,i){var o,a,s,u,l,c;return null==i&&(i=n),t-=n,e-=i,o=n*r,a=i*r,s=t+2*n,l=e+2*i,u=t+n,c=e+i,this.moveTo(t,c),this.bezierCurveTo(t,c-a,u-o,e,u,e),this.bezierCurveTo(u+o,e,s,c-a,s,c),this.bezierCurveTo(s,c+a,u+o,l,u,l),this.bezierCurveTo(u-o,l,t,c+a,t,c),this.closePath()},circle:function(t,e,n){return this.ellipse(t,e,n)},polygon:function(){var t,e,n,r;for(e=1<=arguments.length?o.call(arguments,0):[],this.moveTo.apply(this,e.shift()),n=0,r=e.length;n<r;n++)t=e[n],this.lineTo.apply(this,t);return this.closePath()},path:function(t){return i.apply(this,t),this},_windingRule:function(t){return/even-?odd/.test(t)?"*":""},fill:function(t,e){return/(even-?odd)|(non-?zero)/.test(t)&&(e=t,t=null),t&&this.fillColor(t),this.addContent("f"+this._windingRule(e))},stroke:function(t){return t&&this.strokeColor(t),this.addContent("S")},fillAndStroke:function(t,e,n){var r;return null==e&&(e=t),(r=/(even-?odd)|(non-?zero)/).test(t)&&(n=t,t=null),r.test(e)&&(n=e,e=t),t&&(this.fillColor(t),this.strokeColor(e)),this.addContent("B"+this._windingRule(n))},clip:function(t){return this.addContent("W"+this._windingRule(t)+" n")},transform:function(t,e,n,r,i,o){var a,s,u,l,c,h,f,d,p;return a=this._ctm,s=a[0],u=a[1],l=a[2],c=a[3],h=a[4],f=a[5],a[0]=s*t+l*e,a[1]=u*t+c*e,a[2]=s*n+l*r,a[3]=u*n+c*r,a[4]=s*i+l*o+h,a[5]=u*i+c*o+f,p=function(){var a,s,u,l;for(l=[],a=0,s=(u=[t,e,n,r,i,o]).length;a<s;a++)d=u[a],l.push(+d.toFixed(5));return l}().join(" "),this.addContent(p+" cm")},translate:function(t,e){return this.transform(1,0,0,1,t,e)},rotate:function(t,e){var n,r,i,o,a,s,u;return null==e&&(e={}),r=t*Math.PI/180,n=Math.cos(r),i=Math.sin(r),o=a=0,null!=e.origin&&(s=(o=(u=e.origin)[0])*i+(a=u[1])*n,o-=o*n-a*i,a-=s),this.transform(n,i,-i,n,o,a)},scale:function(t,e,n){var r,i,o;return null==e&&(e=t),null==n&&(n={}),2===arguments.length&&(n=e=t),r=i=0,null!=n.origin&&(r=(o=n.origin)[0],i=o[1],r-=t*r,i-=e*i),this.transform(t,0,0,e,r,i)}}},{"../path":20}],18:[function(t,e,n){(function(n){var r,i;r=function(){function t(){}var e,r,o,a;return o=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},r=/[\n\r\t\b\f\(\)\\]/g,e={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},a=function(t){var e,n,r,i,o;if(1&(r=t.length))throw new Error("Buffer length must be even");for(n=i=0,o=r-1;i<o;n=i+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;return t},t.convert=function(s){var u,l,c,h,f,d,p,g,_;if("string"==typeof s)return"/"+s;if(s instanceof String){for(c=!1,l=g=0,_=(d=s.replace(r,function(t){return e[t]})).length;g<_;l=g+=1)if(d.charCodeAt(l)>127){c=!0;break}return c&&(d=a(new n("\ufeff"+d,"utf16le")).toString("binary")),"("+d+")"}if(n.isBuffer(s))return"<"+s.toString("hex")+">";if(s instanceof i)return s.toString();if(s instanceof Date)return"(D:"+o(s.getUTCFullYear(),4)+o(s.getUTCMonth()+1,2)+o(s.getUTCDate(),2)+o(s.getUTCHours(),2)+o(s.getUTCMinutes(),2)+o(s.getUTCSeconds(),2)+"Z)";if(Array.isArray(s))return"["+function(){var e,n,r;for(r=[],e=0,n=s.length;e<n;e++)u=s[e],r.push(t.convert(u));return r}().join(" ")+"]";if("[object Object]"==={}.toString.call(s)){f=["<<"];for(h in s)p=s[h],f.push("/"+h+" "+t.convert(p));return f.push(">>"),f.join("\n")}return""+s},t}(),e.localExports=r,i=t("./reference")}).call(this,t("buffer").Buffer)},{"./reference":21,buffer:60}],19:[function(t,e,n){var r;r=function(){function t(t,r){var i;this.document=t,null==r&&(r={}),this.size=r.size||"letter",this.layout=r.layout||"portrait","number"==typeof r.margin?this.margins={top:r.margin,left:r.margin,bottom:r.margin,right:r.margin}:(this.margins=r.margins||e,this.margins={top:this.margins.top,left:this.margins.left,bottom:this.margins.bottom,right:this.margins.right}),i=Array.isArray(this.size)?this.size:n[this.size.toUpperCase()],this.width=i["portrait"===this.layout?0:1],this.height=i["portrait"===this.layout?1:0],this.content=this.document.ref(),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),Object.defineProperties(this,{fonts:{get:function(t){return function(){var e;return null!=(e=t.resources.data).Font?e.Font:e.Font={}}}(this)},xobjects:{get:function(t){return function(){var e;return null!=(e=t.resources.data).XObject?e.XObject:e.XObject={}}}(this)},ext_gstates:{get:function(t){return function(){var e;return null!=(e=t.resources.data).ExtGState?e.ExtGState:e.ExtGState={}}}(this)},patterns:{get:function(t){return function(){var e;return null!=(e=t.resources.data).Pattern?e.Pattern:e.Pattern={}}}(this)},annotations:{get:function(t){return function(){var e;return null!=(e=t.dictionary.data).Annots?e.Annots:e.Annots=[]}}(this)}}),this.dictionary=this.document.ref({Type:"Page",Parent:this.document._root.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources})}var e,n;return t.prototype.maxY=function(){return this.height-this.margins.bottom},t.prototype.write=function(t){return this.content.write(t)},t.prototype.end=function(){return this.dictionary.end(),this.resources.end(),this.content.end()},e={top:72,left:72,bottom:72,right:72},n={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],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],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]},t}(),e.localExports=r},{}],20:[function(t,e,n){var r;r=function(){function t(){}var e,n,r,i,o,a,s,u,l,c,h,f,d,p;return t.apply=function(t,n){var r;return r=s(n),e(r,t)},a={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},s=function(t){var e,n,r,i,o,s,u,l,c;for(u=[],e=[],i="",o=!1,s=0,l=0,c=t.length;l<c;l++)if(n=t[l],null!=a[n])s=a[n],r&&(i.length>0&&(e[e.length]=+i),u[u.length]={cmd:r,args:e},e=[],i="",o=!1),r=n;else if(" "===n||","===n||"-"===n&&i.length>0&&"e"!==i[i.length-1]||"."===n&&o){if(0===i.length)continue;e.length===s?(u[u.length]={cmd:r,args:e},e=[+i],"M"===r&&(r="L"),"m"===r&&(r="l")):e[e.length]=+i,o="."===n,i="-"===n||"."===n?n:""}else i+=n,"."===n&&(o=!0);return i.length>0&&(e.length===s?(u[u.length]={cmd:r,args:e},e=[+i],"M"===r&&(r="L"),"m"===r&&(r="l")):e[e.length]=+i),u[u.length]={cmd:r,args:e},u},r=i=u=l=d=p=0,e=function(t,e){var n,o,a,s,h;for(r=i=u=l=d=p=0,o=a=0,s=t.length;a<s;o=++a)n=t[o],"function"==typeof c[h=n.cmd]&&c[h](e,n.args);return r=i=u=l=0},c={M:function(t,e){return r=e[0],i=e[1],u=l=null,d=r,p=i,t.moveTo(r,i)},m:function(t,e){return r+=e[0],i+=e[1],u=l=null,d=r,p=i,t.moveTo(r,i)},C:function(t,e){return r=e[4],i=e[5],u=e[2],l=e[3],t.bezierCurveTo.apply(t,e)},c:function(t,e){return t.bezierCurveTo(e[0]+r,e[1]+i,e[2]+r,e[3]+i,e[4]+r,e[5]+i),u=r+e[2],l=i+e[3],r+=e[4],i+=e[5]},S:function(t,e){return null===u&&(u=r,l=i),t.bezierCurveTo(r-(u-r),i-(l-i),e[0],e[1],e[2],e[3]),u=e[0],l=e[1],r=e[2],i=e[3]},s:function(t,e){return null===u&&(u=r,l=i),t.bezierCurveTo(r-(u-r),i-(l-i),r+e[0],i+e[1],r+e[2],i+e[3]),u=r+e[0],l=i+e[1],r+=e[2],i+=e[3]},Q:function(t,e){return u=e[0],l=e[1],r=e[2],i=e[3],t.quadraticCurveTo(e[0],e[1],r,i)},q:function(t,e){return t.quadraticCurveTo(e[0]+r,e[1]+i,e[2]+r,e[3]+i),u=r+e[0],l=i+e[1],r+=e[2],i+=e[3]},T:function(t,e){return null===u?(u=r,l=i):(u=r-(u-r),l=i-(l-i)),t.quadraticCurveTo(u,l,e[0],e[1]),u=r-(u-r),l=i-(l-i),r=e[0],i=e[1]},t:function(t,e){return null===u?(u=r,l=i):(u=r-(u-r),l=i-(l-i)),t.quadraticCurveTo(u,l,r+e[0],i+e[1]),r+=e[0],i+=e[1]},A:function(t,e){return f(t,r,i,e),r=e[5],i=e[6]},a:function(t,e){return e[5]+=r,e[6]+=i,f(t,r,i,e),r=e[5],i=e[6]},L:function(t,e){return r=e[0],i=e[1],u=l=null,t.lineTo(r,i)},l:function(t,e){return r+=e[0],i+=e[1],u=l=null,t.lineTo(r,i)},H:function(t,e){return r=e[0],u=l=null,t.lineTo(r,i)},h:function(t,e){return r+=e[0],u=l=null,t.lineTo(r,i)},V:function(t,e){return i=e[0],u=l=null,t.lineTo(r,i)},v:function(t,e){return i+=e[0],u=l=null,t.lineTo(r,i)},Z:function(t){return t.closePath(),r=d,i=p},z:function(t){return t.closePath(),r=d,i=p}},f=function(t,e,r,i){var o,a,s,u,l,c,f,d,p,g,_,y,m;for(c=i[0],f=i[1],l=i[2],u=i[3],g=i[4],a=i[5],s=i[6],m=[],_=0,y=(p=n(a,s,c,f,u,g,l,e,r)).length;_<y;_++)d=p[_],o=h.apply(null,d),m.push(t.bezierCurveTo.apply(t,o));return m},n=function(t,e,n,r,i,o,a,s,c){var h,f,d,p,g,_,y,m,v,b,w,x,k,S,C,E,A,P,j,O,I,T,B,L;for(k=a*(Math.PI/180),x=Math.sin(k),g=Math.cos(k),n=Math.abs(n),r=Math.abs(r),(y=(u=g*(s-t)*.5+x*(c-e)*.5)*u/(n*n)+(l=g*(c-e)*.5-x*(s-t)*.5)*l/(r*r))>1&&(n*=y=Math.sqrt(y),r*=y),(w=1/(((j=(h=g/n)*t+(f=x/n)*e)-(P=h*s+f*c))*(j-P)+((T=(d=-x/r)*t+(p=g/r)*e)-(I=d*s+p*c))*(T-I))-.25)<0&&(w=0),b=Math.sqrt(w),o===i&&(b=-b),O=.5*(P+j)-b*(T-I),B=.5*(I+T)+b*(j-P),S=Math.atan2(I-B,P-O),(A=Math.atan2(T-B,j-O)-S)<0&&1===o?A+=2*Math.PI:A>0&&0===o&&(A-=2*Math.PI),v=Math.ceil(Math.abs(A/(.5*Math.PI+.001))),m=[],_=L=0;0<=v?L<v:L>v;_=0<=v?++L:--L)C=S+_*A/v,E=S+(_+1)*A/v,m[_]=[O,B,C,E,n,r,x,g];return m},h=function(t,e,n,r,i,a,s,u){var l,c,h,f,d,p,g,_,y,m,v,b;return l=u*i,c=-s*a,h=s*i,f=u*a,p=.5*(r-n),d=8/3*Math.sin(.5*p)*Math.sin(.5*p)/Math.sin(p),g=o(t+Math.cos(n)-d*Math.sin(n)),m=o(e+Math.sin(n)+d*Math.cos(n)),y=o(t+Math.cos(r)),b=o(e+Math.sin(r)),_=o(y+d*Math.sin(r)),v=o(b-d*Math.cos(r)),[l*g+c*m,h*g+f*m,l*_+c*v,h*_+f*v,l*y+c*b,h*y+f*b]},o=function(t){return Math.abs(Math.round(t)-t)<1e-13?Math.round(t):t},t}(),e.localExports=r},{}],21:[function(t,e,n){(function(n){var r,i,o,a=function(t,e){return function(){return t.apply(e,arguments)}},s={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)s.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};o=t("zlib"),i=function(t){function e(t,n,r){this.document=t,this.id=n,this.data=null!=r?r:{},this.finalize=a(this.finalize,this),e.__super__.constructor.call(this,{decodeStrings:!1}),this.gen=0,this.deflate=null,this.compress=this.document.compress&&!this.data.Filter,this.uncompressedLength=0,this.chunks=[]}return u(e,t),e.prototype.initDeflate=function(){return this.data.Filter="FlateDecode",this.deflate=o.createDeflate(),this.deflate.on("data",function(t){return function(e){return t.chunks.push(e),t.data.Length+=e.length}}(this)),this.deflate.on("end",this.finalize)},e.prototype._write=function(t,e,r){var i;return n.isBuffer(t)||(t=new n(t+"\n","binary")),this.uncompressedLength+=t.length,null==(i=this.data).Length&&(i.Length=0),this.compress?(this.deflate||this.initDeflate(),this.deflate.write(t)):(this.chunks.push(t),this.data.Length+=t.length),r()},e.prototype.end=function(t){return e.__super__.end.apply(this,arguments),this.deflate?this.deflate.end():this.finalize()},e.prototype.finalize=function(){var t,e,n,i;if(this.offset=this.document._offset,this.document._write(this.id+" "+this.gen+" obj"),this.document._write(r.convert(this.data)),this.chunks.length){for(this.document._write("stream"),e=0,n=(i=this.chunks).length;e<n;e++)t=i[e],this.document._write(t);this.chunks.length=0,this.document._write("\nendstream")}return this.document._write("endobj"),this.document._refEnd(this)},e.prototype.toString=function(){return this.id+" "+this.gen+" R"},e}(t("stream").Writable),e.localExports=i,r=t("./object")}).call(this,t("buffer").Buffer)},{"./object":18,buffer:60,stream:216,zlib:58}],22:[function(t,e,n){function r(t,e){return d.isUndefined(e)?""+e:d.isNumber(e)&&!isFinite(e)?e.toString():d.isFunction(e)||d.isRegExp(e)?e.toString():e}function i(t,e){return d.isString(t)?t.length<e?t:t.slice(0,e):t}function o(t){return i(JSON.stringify(t.actual,r),128)+" "+t.operator+" "+i(JSON.stringify(t.expected,r),128)}function a(t,e,n,r,i){throw new _.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:i})}function s(t,e){t||a(t,!0,e,"==",_.ok)}function u(t,e){if(t===e)return!0;if(d.isBuffer(t)&&d.isBuffer(e)){if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return d.isDate(t)&&d.isDate(e)?t.getTime()===e.getTime():d.isRegExp(t)&&d.isRegExp(e)?t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase:d.isObject(t)||d.isObject(e)?c(t,e):t==e}function l(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function c(t,e){if(d.isNullOrUndefined(t)||d.isNullOrUndefined(e))return!1;if(t.prototype!==e.prototype)return!1;if(d.isPrimitive(t)||d.isPrimitive(e))return t===e;var n=l(t),r=l(e);if(n&&!r||!n&&r)return!1;if(n)return t=p.call(t),e=p.call(e),u(t,e);var i,o,a=y(t),s=y(e);if(a.length!=s.length)return!1;for(a.sort(),s.sort(),o=a.length-1;o>=0;o--)if(a[o]!=s[o])return!1;for(o=a.length-1;o>=0;o--)if(i=a[o],!u(t[i],e[i]))return!1;return!0}function h(t,e){return!(!t||!e)&&("[object RegExp]"==Object.prototype.toString.call(e)?e.test(t):t instanceof e||!0===e.call({},t))}function f(t,e,n,r){var i;d.isString(n)&&(r=n,n=null);try{e()}catch(t){i=t}if(r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&a(i,n,"Missing expected exception"+r),!t&&h(i,n)&&a(i,n,"Got unwanted exception"+r),t&&i&&n&&!h(i,n)||!t&&i)throw i}var d=t("util/"),p=Array.prototype.slice,g=Object.prototype.hasOwnProperty,_=e.localExports=s;_.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=o(this),this.generatedMessage=!0);var e=t.stackStartFunction||a;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=e.name,s=r.indexOf("\n"+i);if(s>=0){var u=r.indexOf("\n",s+1);r=r.substring(u+1)}this.stack=r}}},d.inherits(_.AssertionError,Error),_.fail=a,_.ok=s,_.equal=function(t,e,n){t!=e&&a(t,e,n,"==",_.equal)},_.notEqual=function(t,e,n){t==e&&a(t,e,n,"!=",_.notEqual)},_.deepEqual=function(t,e,n){u(t,e)||a(t,e,n,"deepEqual",_.deepEqual)},_.notDeepEqual=function(t,e,n){u(t,e)&&a(t,e,n,"notDeepEqual",_.notDeepEqual)},_.strictEqual=function(t,e,n){t!==e&&a(t,e,n,"===",_.strictEqual)},_.notStrictEqual=function(t,e,n){t===e&&a(t,e,n,"!==",_.notStrictEqual)},_.throws=function(t,e,n){f.apply(this,[!0].concat(p.call(arguments)))},_.doesNotThrow=function(t,e){f.apply(this,[!1].concat(p.call(arguments)))},_.ifError=function(t){if(t)throw t};var y=Object.keys||function(t){var e=[];for(var n in t)g.call(t,n)&&e.push(n);return e}},{"util/":224}],23:[function(t,e,n){e.localExports={default:t("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":62}],24:[function(t,e,n){e.localExports={default:t("core-js/library/fn/get-iterator"),__esModule:!0}},{"core-js/library/fn/get-iterator":63}],25:[function(t,e,n){e.localExports={default:t("core-js/library/fn/is-iterable"),__esModule:!0}},{"core-js/library/fn/is-iterable":64}],26:[function(t,e,n){e.localExports={default:t("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":65}],27:[function(t,e,n){e.localExports={default:t("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":66}],28:[function(t,e,n){e.localExports={default:t("core-js/library/fn/object/define-properties"),__esModule:!0}},{"core-js/library/fn/object/define-properties":67}],29:[function(t,e,n){e.localExports={default:t("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":68}],30:[function(t,e,n){e.localExports={default:t("core-js/library/fn/object/freeze"),__esModule:!0}},{"core-js/library/fn/object/freeze":69}],31:[function(t,e,n){e.localExports={default:t("core-js/library/fn/object/get-own-property-descriptor"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-descriptor":70}],32:[function(t,e,n){e.localExports={default:t("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":71}],33:[function(t,e,n){e.localExports={default:t("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":72}],34:[function(t,e,n){e.localExports={default:t("core-js/library/fn/object/set-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/set-prototype-of":73}],35:[function(t,e,n){e.localExports={default:t("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":74}],36:[function(t,e,n){e.localExports={default:t("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":75}],37:[function(t,e,n){n.__esModule=!0,n.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},{}],38:[function(t,e,n){n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(t("../core-js/object/define-property"));n.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),r.default(t,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},{"../core-js/object/define-property":29}],39:[function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=r(t("../core-js/object/get-prototype-of")),o=r(t("../core-js/object/get-own-property-descriptor"));n.default=function t(e,n,r){null===e&&(e=Function.prototype);var a=o.default(e,n);if(void 0===a){var s=i.default(e);return null===s?void 0:t(s,n,r)}if("value"in a)return a.value;var u=a.get;if(void 0!==u)return u.call(r)}},{"../core-js/object/get-own-property-descriptor":31,"../core-js/object/get-prototype-of":32}],40:[function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=r(t("../core-js/object/set-prototype-of")),o=r(t("../core-js/object/create")),a=r(t("../helpers/typeof"));n.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":a.default(e)));t.prototype=o.default(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?i.default(t,e):t.__proto__=e)}},{"../core-js/object/create":27,"../core-js/object/set-prototype-of":34,"../helpers/typeof":44}],41:[function(t,e,n){n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(t("../helpers/typeof"));n.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":r.default(e))&&"function"!=typeof e?t:e}},{"../helpers/typeof":44}],42:[function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=r(t("../core-js/is-iterable")),o=r(t("../core-js/get-iterator"));n.default=function(){function t(t,e){var n=[],r=!0,i=!1,a=void 0;try{for(var s,u=o.default(t);!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}return n}return function(e,n){if(Array.isArray(e))return e;if(i.default(Object(e)))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},{"../core-js/get-iterator":24,"../core-js/is-iterable":25}],43:[function(t,e,n){n.__esModule=!0;var r=function(t){return t&&t.__esModule?t:{default:t}}(t("../core-js/array/from"));n.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return r.default(t)}},{"../core-js/array/from":23}],44:[function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=r(t("../core-js/symbol/iterator")),o=r(t("../core-js/symbol")),a="function"==typeof o.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default?"symbol":typeof t};n.default="function"==typeof o.default&&"symbol"===a(i.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default?"symbol":void 0===t?"undefined":a(t)}},{"../core-js/symbol":35,"../core-js/symbol/iterator":36}],45:[function(t,e,n){function r(t){return o[t>>18&63]+o[t>>12&63]+o[t>>6&63]+o[63&t]}function i(t,e,n){for(var i,o=[],a=e;a<n;a+=3)i=(t[a]<<16)+(t[a+1]<<8)+t[a+2],o.push(r(i));return o.join("")}n.toByteArray=function(t){var e,n,r,i,o,u,l=t.length;if(l%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[l-2]?2:"="===t[l-1]?1:0,u=new s(3*l/4-o),r=o>0?l-4:l;var c=0;for(e=0,n=0;e<r;e+=4,n+=3)i=a[t.charCodeAt(e)]<<18|a[t.charCodeAt(e+1)]<<12|a[t.charCodeAt(e+2)]<<6|a[t.charCodeAt(e+3)],u[c++]=i>>16&255,u[c++]=i>>8&255,u[c++]=255&i;return 2===o?(i=a[t.charCodeAt(e)]<<2|a[t.charCodeAt(e+1)]>>4,u[c++]=255&i):1===o&&(i=a[t.charCodeAt(e)]<<10|a[t.charCodeAt(e+1)]<<4|a[t.charCodeAt(e+2)]>>2,u[c++]=i>>8&255,u[c++]=255&i),u},n.fromByteArray=function(t){for(var e,n=t.length,r=n%3,a="",s=[],u=0,l=n-r;u<l;u+=16383)s.push(i(t,u,u+16383>l?l:u+16383));return 1===r?(e=t[n-1],a+=o[e>>2],a+=o[e<<4&63],a+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],a+=o[e>>10],a+=o[e>>4&63],a+=o[e<<2&63],a+="="),s.push(a),s.join("")};var o=[],a=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array;!function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e<n;++e)o[e]=t[e],a[t.charCodeAt(e)]=e;a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63}()},{}],56:[function(t,e,n){},{}],57:[function(t,e,n){(function(e,r){function i(t){if(t<n.DEFLATE||t>n.UNZIP)throw new TypeError("Bad argument");this.mode=t,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function o(t,e){for(var n=0;n<t.length;n++)this[e+n]=t[n]}var a=t("pako/lib/zlib/messages"),s=t("pako/lib/zlib/zstream"),u=t("pako/lib/zlib/deflate.js"),l=t("pako/lib/zlib/inflate.js"),c=t("pako/lib/zlib/constants");for(var h in c)n[h]=c[h];n.NONE=0,n.DEFLATE=1,n.INFLATE=2,n.GZIP=3,n.GUNZIP=4,n.DEFLATERAW=5,n.INFLATERAW=6,n.UNZIP=7,i.prototype.init=function(t,e,r,i,o){switch(this.windowBits=t,this.level=e,this.memLevel=r,this.strategy=i,this.mode!==n.GZIP&&this.mode!==n.GUNZIP||(this.windowBits+=16),this.mode===n.UNZIP&&(this.windowBits+=32),this.mode!==n.DEFLATERAW&&this.mode!==n.INFLATERAW||(this.windowBits=-this.windowBits),this.strm=new s,this.mode){case n.DEFLATE:case n.GZIP:case n.DEFLATERAW:a=u.deflateInit2(this.strm,this.level,n.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case n.INFLATE:case n.GUNZIP:case n.INFLATERAW:case n.UNZIP:var a=l.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}a===n.Z_OK?(this.write_in_progress=!1,this.init_done=!0):this._error(a)},i.prototype.params=function(){throw new Error("deflateParams Not supported")},i.prototype._writeCheck=function(){if(!this.init_done)throw new Error("write before init");if(this.mode===n.NONE)throw new Error("already finalized");if(this.write_in_progress)throw new Error("write already in progress");if(this.pending_close)throw new Error("close is pending")},i.prototype.write=function(t,n,r,i,o,a,s){this._writeCheck(),this.write_in_progress=!0;var u=this;return e.nextTick(function(){u.write_in_progress=!1;var e=u._write(t,n,r,i,o,a,s);u.callback(e[0],e[1]),u.pending_close&&u.close()}),this},i.prototype.writeSync=function(t,e,n,r,i,o,a){return this._writeCheck(),this._write(t,e,n,r,i,o,a)},i.prototype._write=function(t,e,i,a,s,c,h){if(this.write_in_progress=!0,t!==n.Z_NO_FLUSH&&t!==n.Z_PARTIAL_FLUSH&&t!==n.Z_SYNC_FLUSH&&t!==n.Z_FULL_FLUSH&&t!==n.Z_FINISH&&t!==n.Z_BLOCK)throw new Error("Invalid flush value");null==e&&(e=new r(0),a=0,i=0),s._set?s.set=s._set:s.set=o;var f=this.strm;switch(f.avail_in=a,f.input=e,f.next_in=i,f.avail_out=h,f.output=s,f.next_out=c,this.mode){case n.DEFLATE:case n.GZIP:case n.DEFLATERAW:d=u.deflate(f,t);break;case n.UNZIP:case n.INFLATE:case n.GUNZIP:case n.INFLATERAW:var d=l.inflate(f,t);break;default:throw new Error("Unknown mode "+this.mode)}return d!==n.Z_STREAM_END&&d!==n.Z_OK&&this._error(d),this.write_in_progress=!1,[f.avail_in,f.avail_out]},i.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,this.mode===n.DEFLATE||this.mode===n.GZIP||this.mode===n.DEFLATERAW?u.deflateEnd(this.strm):l.inflateEnd(this.strm),this.mode=n.NONE)},i.prototype.reset=function(){switch(this.mode){case n.DEFLATE:case n.DEFLATERAW:t=u.deflateReset(this.strm);break;case n.INFLATE:case n.INFLATERAW:var t=l.inflateReset(this.strm)}t!==n.Z_OK&&this._error(t)},i.prototype._error=function(t){this.onerror(a[t]+": "+this.strm.msg,t),this.write_in_progress=!1,this.pending_close&&this.close()},n.Zlib=i}).call(this,t("_process"),t("buffer").Buffer)},{_process:188,buffer:60,"pako/lib/zlib/constants":177,"pako/lib/zlib/deflate.js":179,"pako/lib/zlib/inflate.js":181,"pako/lib/zlib/messages":183,"pako/lib/zlib/zstream":185}],58:[function(t,e,n){(function(e,r){function i(t,e,n){function i(){for(var e;null!==(e=t.read());)a.push(e),s+=e.length;t.once("readable",i)}function o(){var e=r.concat(a,s);a=[],n(null,e),t.close()}var a=[],s=0;t.on("error",function(e){t.removeListener("end",o),t.removeListener("readable",i),n(e)}),t.on("end",o),t.end(e),i()}function o(t,e){if("string"==typeof e&&(e=new r(e)),!r.isBuffer(e))throw new TypeError("Not a string or buffer");var n=g.Z_FINISH;return t._processChunk(e,n)}function a(t){if(!(this instanceof a))return new a(t);d.call(this,t,g.DEFLATE)}function s(t){if(!(this instanceof s))return new s(t);d.call(this,t,g.INFLATE)}function u(t){if(!(this instanceof u))return new u(t);d.call(this,t,g.GZIP)}function l(t){if(!(this instanceof l))return new l(t);d.call(this,t,g.GUNZIP)}function c(t){if(!(this instanceof c))return new c(t);d.call(this,t,g.DEFLATERAW)}function h(t){if(!(this instanceof h))return new h(t);d.call(this,t,g.INFLATERAW)}function f(t){if(!(this instanceof f))return new f(t);d.call(this,t,g.UNZIP)}function d(t,e){if(this._opts=t=t||{},this._chunkSize=t.chunkSize||n.Z_DEFAULT_CHUNK,p.call(this,t),t.flush&&t.flush!==g.Z_NO_FLUSH&&t.flush!==g.Z_PARTIAL_FLUSH&&t.flush!==g.Z_SYNC_FLUSH&&t.flush!==g.Z_FULL_FLUSH&&t.flush!==g.Z_FINISH&&t.flush!==g.Z_BLOCK)throw new Error("Invalid flush flag: "+t.flush);if(this._flushFlag=t.flush||g.Z_NO_FLUSH,t.chunkSize&&(t.chunkSize<n.Z_MIN_CHUNK||t.chunkSize>n.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBits<n.Z_MIN_WINDOWBITS||t.windowBits>n.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.level<n.Z_MIN_LEVEL||t.level>n.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevel<n.Z_MIN_MEMLEVEL||t.memLevel>n.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=n.Z_FILTERED&&t.strategy!=n.Z_HUFFMAN_ONLY&&t.strategy!=n.Z_RLE&&t.strategy!=n.Z_FIXED&&t.strategy!=n.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!r.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._binding=new g.Zlib(e);var i=this;this._hadError=!1,this._binding.onerror=function(t,e){i._binding=null,i._hadError=!0;var r=new Error(t);r.errno=e,r.code=n.codes[e],i.emit("error",r)};var o=n.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(o=t.level);var a=n.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(a=t.strategy),this._binding.init(t.windowBits||n.Z_DEFAULT_WINDOWBITS,o,t.memLevel||n.Z_DEFAULT_MEMLEVEL,a,t.dictionary),this._buffer=new r(this._chunkSize),this._offset=0,this._closed=!1,this._level=o,this._strategy=a,this.once("end",this.close)}var p=t("_stream_transform"),g=t("./binding"),_=t("util"),y=t("assert").ok;g.Z_MIN_WINDOWBITS=8,g.Z_MAX_WINDOWBITS=15,g.Z_DEFAULT_WINDOWBITS=15,g.Z_MIN_CHUNK=64,g.Z_MAX_CHUNK=1/0,g.Z_DEFAULT_CHUNK=16384,g.Z_MIN_MEMLEVEL=1,g.Z_MAX_MEMLEVEL=9,g.Z_DEFAULT_MEMLEVEL=8,g.Z_MIN_LEVEL=-1,g.Z_MAX_LEVEL=9,g.Z_DEFAULT_LEVEL=g.Z_DEFAULT_COMPRESSION,Object.keys(g).forEach(function(t){t.match(/^Z/)&&(n[t]=g[t])}),n.codes={Z_OK:g.Z_OK,Z_STREAM_END:g.Z_STREAM_END,Z_NEED_DICT:g.Z_NEED_DICT,Z_ERRNO:g.Z_ERRNO,Z_STREAM_ERROR:g.Z_STREAM_ERROR,Z_DATA_ERROR:g.Z_DATA_ERROR,Z_MEM_ERROR:g.Z_MEM_ERROR,Z_BUF_ERROR:g.Z_BUF_ERROR,Z_VERSION_ERROR:g.Z_VERSION_ERROR},Object.keys(n.codes).forEach(function(t){n.codes[n.codes[t]]=t}),n.Deflate=a,n.Inflate=s,n.Gzip=u,n.Gunzip=l,n.DeflateRaw=c,n.InflateRaw=h,n.Unzip=f,n.createDeflate=function(t){return new a(t)},n.createInflate=function(t){return new s(t)},n.createDeflateRaw=function(t){return new c(t)},n.createInflateRaw=function(t){return new h(t)},n.createGzip=function(t){return new u(t)},n.createGunzip=function(t){return new l(t)},n.createUnzip=function(t){return new f(t)},n.deflate=function(t,e,n){return"function"==typeof e&&(n=e,e={}),i(new a(e),t,n)},n.deflateSync=function(t,e){return o(new a(e),t)},n.gzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),i(new u(e),t,n)},n.gzipSync=function(t,e){return o(new u(e),t)},n.deflateRaw=function(t,e,n){return"function"==typeof e&&(n=e,e={}),i(new c(e),t,n)},n.deflateRawSync=function(t,e){return o(new c(e),t)},n.unzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),i(new f(e),t,n)},n.unzipSync=function(t,e){return o(new f(e),t)},n.inflate=function(t,e,n){return"function"==typeof e&&(n=e,e={}),i(new s(e),t,n)},n.inflateSync=function(t,e){return o(new s(e),t)},n.gunzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),i(new l(e),t,n)},n.gunzipSync=function(t,e){return o(new l(e),t)},n.inflateRaw=function(t,e,n){return"function"==typeof e&&(n=e,e={}),i(new h(e),t,n)},n.inflateRawSync=function(t,e){return o(new h(e),t)},_.inherits(d,p),d.prototype.params=function(t,r,i){if(t<n.Z_MIN_LEVEL||t>n.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+t);if(r!=n.Z_FILTERED&&r!=n.Z_HUFFMAN_ONLY&&r!=n.Z_RLE&&r!=n.Z_FIXED&&r!=n.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==t||this._strategy!==r){var o=this;this.flush(g.Z_SYNC_FLUSH,function(){o._binding.params(t,r),o._hadError||(o._level=t,o._strategy=r,i&&i())})}else e.nextTick(i)},d.prototype.reset=function(){return this._binding.reset()},d.prototype._flush=function(t){this._transform(new r(0),"",t)},d.prototype.flush=function(t,n){var i=this._writableState;if(("function"==typeof t||void 0===t&&!n)&&(n=t,t=g.Z_FULL_FLUSH),i.ended)n&&e.nextTick(n);else if(i.ending)n&&this.once("end",n);else if(i.needDrain){var o=this;this.once("drain",function(){o.flush(n)})}else this._flushFlag=t,this.write(new r(0),"",n)},d.prototype.close=function(t){if(t&&e.nextTick(t),!this._closed){this._closed=!0,this._binding.close();var n=this;e.nextTick(function(){n.emit("close")})}},d.prototype._transform=function(t,e,n){var i,o=this._writableState,a=(o.ending||o.ended)&&(!t||o.length===t.length);if(null===!t&&!r.isBuffer(t))return n(new Error("invalid input"));a?i=g.Z_FINISH:(i=this._flushFlag,t.length>=o.length&&(this._flushFlag=this._opts.flush||g.Z_NO_FLUSH));this._processChunk(t,i,n)},d.prototype._processChunk=function(t,e,n){function i(c,d){if(!u._hadError){var p=a-d;if(y(p>=0,"have should not go down"),p>0){var g=u._buffer.slice(u._offset,u._offset+p);u._offset+=p,l?u.push(g):(h.push(g),f+=g.length)}if((0===d||u._offset>=u._chunkSize)&&(a=u._chunkSize,u._offset=0,u._buffer=new r(u._chunkSize)),0===d){if(s+=o-c,o=c,!l)return!0;var _=u._binding.write(e,t,s,o,u._buffer,u._offset,u._chunkSize);return _.callback=i,void(_.buffer=t)}if(!l)return!1;n()}}var o=t&&t.length,a=this._chunkSize-this._offset,s=0,u=this,l="function"==typeof n;if(!l){var c,h=[],f=0;this.on("error",function(t){c=t});do{var d=this._binding.writeSync(e,t,s,o,this._buffer,this._offset,a)}while(!this._hadError&&i(d[0],d[1]));if(this._hadError)throw c;var p=r.concat(h,f);return this.close(),p}var g=this._binding.write(e,t,s,o,this._buffer,this._offset,a);g.buffer=t,g.callback=i},_.inherits(a,d),_.inherits(s,d),_.inherits(u,d),_.inherits(l,d),_.inherits(c,d),_.inherits(h,d),_.inherits(f,d)}).call(this,t("_process"),t("buffer").Buffer)},{"./binding":57,_process:188,_stream_transform:197,assert:22,buffer:60,util:224}],59:[function(t,e,n){arguments[4][56][0].apply(n,arguments)},{dup:56}],60:[function(t,e,n){(function(e){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=o.prototype:(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return a(this,t,e,n)}function a(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?f(t,e,n,r):"string"==typeof e?c(t,e,n):d(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e,n,r){return s(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function l(t,e){if(s(e),t=i(t,e<0?0:0|p(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function c(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|g(e,n),a=(t=i(t,r)).write(e,n);return a!==r&&(t=t.slice(0,a)),t}function h(t,e){var n=e.length<0?0:0|p(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function f(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),o.TYPED_ARRAY_SUPPORT?(t=e).__proto__=o.prototype:t=h(t,e),t}function d(t,e){if(o.isBuffer(e)){var n=0|p(e.length);return 0===(t=i(t,n)).length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||V(e.length)?i(t,0):h(t,e);if("Buffer"===e.type&&J(e.data))return h(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function g(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(r)return H(t).length;e=(""+e).toLowerCase(),r=!0}}function _(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return j(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function m(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}var l;if(i){var c=-1;for(l=n;l<s;l++)if(o(t,l)===o(e,-1===c?0:l-c)){if(-1===c&&(c=l),l-c+1===u)return c*a}else-1!==c&&(l-=l-c),c=-1}else for(n+u>s&&(n=s-u),l=n;l>=0;l--){for(var h=!0,f=0;f<u;f++)if(o(t,l+f)!==o(e,f)){h=!1;break}if(h)return l}return-1}function b(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function w(t,e,n,r){return Y(H(e,t.length-n),t,n,r)}function x(t,e,n,r){return Y(q(e),t,n,r)}function k(t,e,n,r){return x(t,e,n,r)}function S(t,e,n,r){return Y(W(e),t,n,r)}function C(t,e,n,r){return Y(Z(e,t.length-n),t,n,r)}function E(t,e,n){return 0===e&&n===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=n){var u,l,c,h;switch(s){case 1:o<128&&(a=o);break;case 2:128==(192&(u=t[i+1]))&&(h=(31&o)<<6|63&u)>127&&(a=h);break;case 3:u=t[i+1],l=t[i+2],128==(192&u)&&128==(192&l)&&(h=(15&o)<<12|(63&u)<<6|63&l)>2047&&(h<55296||h>57343)&&(a=h);break;case 4:u=t[i+1],l=t[i+2],c=t[i+3],128==(192&u)&&128==(192&l)&&128==(192&c)&&(h=(15&o)<<18|(63&u)<<12|(63&l)<<6|63&c)>65535&&h<1114112&&(a=h)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return P(r)}function P(t){var e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=Q));return n}function j(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function O(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function I(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=G(t[o]);return i}function T(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function B(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,r,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function R(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function M(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function N(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,r,i){return i||N(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,i){return i||N(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(t,e,n,r,52,8),n+8}function z(t){if((t=U(t).replace($,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}function U(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function G(t){return t<16?"0"+t.toString(16):t.toString(16)}function H(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Z(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=(n=t.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}function W(t){return K.toByteArray(z(t))}function Y(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function V(t){return t!==t}var K=t("base64-js"),X=t("ieee754"),J=t("isarray");n.Buffer=o,n.SlowBuffer=function(t){return+t!=t&&(t=0),o.alloc(+t)},n.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),n.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return l(null,t)},o.allocUnsafeSlow=function(t){return l(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i<a;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!J(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},o.byteLength=g,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):_.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,r,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,s=n-e,u=Math.min(a,s),l=this.slice(r,i),c=t.slice(e,n),h=0;h<u;++h)if(l[h]!==c[h]){a=l[h],s=c[h];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return m(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return m(this,t,e,n,!1)},o.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":return x(this,t,e,n);case"latin1":case"binary":return k(this,t,e,n);case"base64":return S(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||B(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||B(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||B(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||B(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||B(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||B(t,4,this.length),X.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||B(t,4,this.length),X.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||B(t,8,this.length),X.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||B(t,8,this.length),X.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||L(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||L(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):M(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):M(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,a=r-n;if(this===t&&n<e&&e<r)for(i=a-1;i>=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:H(new o(t,r).toString()),u=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%u]}return this};var $=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":45,ieee754:166,isarray:169}],61:[function(t,e,n){(function(t){var n=function(){function e(n,i,o,a){function s(n,o){if(null===n)return null;if(0==o)return n;var h,f;if("object"!=typeof n)return n;if(e.__isArray(n))h=[];else if(e.__isRegExp(n))h=new RegExp(n.source,r(n)),n.lastIndex&&(h.lastIndex=n.lastIndex);else if(e.__isDate(n))h=new Date(n.getTime());else{if(c&&t.isBuffer(n))return h=new t(n.length),n.copy(h),h;void 0===a?(f=Object.getPrototypeOf(n),h=Object.create(f)):(h=Object.create(a),f=a)}if(i){var d=u.indexOf(n);if(-1!=d)return l[d];u.push(n),l.push(h)}for(var p in n){var g;f&&(g=Object.getOwnPropertyDescriptor(f,p)),g&&null==g.set||(h[p]=s(n[p],o-1))}return h}"object"==typeof i&&(o=i.depth,a=i.prototype,i.filter,i=i.circular);var u=[],l=[],c=void 0!==t;return void 0===i&&(i=!0),void 0===o&&(o=1/0),s(n,o)}function n(t){return Object.prototype.toString.call(t)}function r(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return e.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},e.__objToStr=n,e.__isDate=function(t){return"object"==typeof t&&"[object Date]"===n(t)},e.__isArray=function(t){return"object"==typeof t&&"[object Array]"===n(t)},e.__isRegExp=function(t){return"object"==typeof t&&"[object RegExp]"===n(t)},e.__getRegExpFlags=r,e}();"object"==typeof e&&e.localExports&&(e.localExports=n)}).call(this,t("buffer").Buffer)},{buffer:60}],62:[function(t,e,n){t("../../modules/es6.string.iterator"),t("../../modules/es6.array.from"),e.localExports=t("../../modules/_core").Array.from},{"../../modules/_core":82,"../../modules/es6.array.from":143,"../../modules/es6.string.iterator":155}],63:[function(t,e,n){t("../modules/web.dom.iterable"),t("../modules/es6.string.iterator"),e.localExports=t("../modules/core.get-iterator")},{"../modules/core.get-iterator":141,"../modules/es6.string.iterator":155,"../modules/web.dom.iterable":159}],64:[function(t,e,n){t("../modules/web.dom.iterable"),t("../modules/es6.string.iterator"),e.localExports=t("../modules/core.is-iterable")},{"../modules/core.is-iterable":142,"../modules/es6.string.iterator":155,"../modules/web.dom.iterable":159}],65:[function(t,e,n){t("../../modules/es6.object.assign"),e.localExports=t("../../modules/_core").Object.assign},{"../../modules/_core":82,"../../modules/es6.object.assign":145}],66:[function(t,e,n){t("../../modules/es6.object.create");var r=t("../../modules/_core").Object;e.localExports=function(t,e){return r.create(t,e)}},{"../../modules/_core":82,"../../modules/es6.object.create":146}],67:[function(t,e,n){t("../../modules/es6.object.define-properties");var r=t("../../modules/_core").Object;e.localExports=function(t,e){return r.defineProperties(t,e)}},{"../../modules/_core":82,"../../modules/es6.object.define-properties":147}],68:[function(t,e,n){t("../../modules/es6.object.define-property");var r=t("../../modules/_core").Object;e.localExports=function(t,e,n){return r.defineProperty(t,e,n)}},{"../../modules/_core":82,"../../modules/es6.object.define-property":148}],69:[function(t,e,n){t("../../modules/es6.object.freeze"),e.localExports=t("../../modules/_core").Object.freeze},{"../../modules/_core":82,"../../modules/es6.object.freeze":149}],70:[function(t,e,n){t("../../modules/es6.object.get-own-property-descriptor");var r=t("../../modules/_core").Object;e.localExports=function(t,e){return r.getOwnPropertyDescriptor(t,e)}},{"../../modules/_core":82,"../../modules/es6.object.get-own-property-descriptor":150}],71:[function(t,e,n){t("../../modules/es6.object.get-prototype-of"),e.localExports=t("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":82,"../../modules/es6.object.get-prototype-of":151}],72:[function(t,e,n){t("../../modules/es6.object.keys"),e.localExports=t("../../modules/_core").Object.keys},{"../../modules/_core":82,"../../modules/es6.object.keys":152}],73:[function(t,e,n){t("../../modules/es6.object.set-prototype-of"),e.localExports=t("../../modules/_core").Object.setPrototypeOf},{"../../modules/_core":82,"../../modules/es6.object.set-prototype-of":153}],74:[function(t,e,n){t("../../modules/es6.symbol"),t("../../modules/es6.object.to-string"),t("../../modules/es7.symbol.async-iterator"),t("../../modules/es7.symbol.observable"),e.localExports=t("../../modules/_core").Symbol},{"../../modules/_core":82,"../../modules/es6.object.to-string":154,"../../modules/es6.symbol":156,"../../modules/es7.symbol.async-iterator":157,"../../modules/es7.symbol.observable":158}],75:[function(t,e,n){t("../../modules/es6.string.iterator"),t("../../modules/web.dom.iterable"),e.localExports=t("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":138,"../../modules/es6.string.iterator":155,"../../modules/web.dom.iterable":159}],76:[function(t,e,n){e.localExports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],77:[function(t,e,n){e.localExports=function(){}},{}],78:[function(t,e,n){var r=t("./_is-object");e.localExports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":100}],79:[function(t,e,n){var r=t("./_to-iobject"),i=t("./_to-length"),o=t("./_to-index");e.localExports=function(t){return function(e,n,a){var s,u=r(e),l=i(u.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},{"./_to-index":130,"./_to-iobject":132,"./_to-length":133}],80:[function(t,e,n){var r=t("./_cof"),i=t("./_wks")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};e.localExports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},{"./_cof":81,"./_wks":139}],81:[function(t,e,n){var r={}.toString;e.localExports=function(t){return r.call(t).slice(8,-1)}},{}],82:[function(t,e,n){var r,i=e.localExports={version:"2.4.0"};"number"==typeof r&&(r=i)},{}],83:[function(t,e,n){var r=t("./_object-dp"),i=t("./_property-desc");e.localExports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},{"./_object-dp":112,"./_property-desc":123}],84:[function(t,e,n){var r=t("./_a-function");e.localExports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":76}],85:[function(t,e,n){e.localExports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},{}],86:[function(t,e,n){e.localExports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":91}],87:[function(t,e,n){var r=t("./_is-object"),i=t("./_global").document,o=r(i)&&r(i.createElement);e.localExports=function(t){return o?i.createElement(t):{}}},{"./_global":92,"./_is-object":100}],88:[function(t,e,n){e.localExports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],89:[function(t,e,n){var r=t("./_object-keys"),i=t("./_object-gops"),o=t("./_object-pie");e.localExports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),u=o.f,l=0;s.length>l;)u.call(t,a=s[l++])&&e.push(a);return e}},{"./_object-gops":117,"./_object-keys":120,"./_object-pie":121}],90:[function(t,e,n){var r=t("./_global"),i=t("./_core"),o=t("./_ctx"),a=t("./_hide"),s=function(t,e,n){var u,l,c,h=t&s.F,f=t&s.G,d=t&s.S,p=t&s.P,g=t&s.B,_=t&s.W,y=f?i:i[e]||(i[e]={}),m=y.prototype,v=f?r:d?r[e]:(r[e]||{}).prototype;f&&(n=e);for(u in n)(l=!h&&v&&void 0!==v[u])&&u in y||(c=l?v[u]:n[u],y[u]=f&&"function"!=typeof v[u]?n[u]:g&&l?o(c,r):_&&v[u]==c?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):p&&"function"==typeof c?o(Function.call,c):c,p&&((y.virtual||(y.virtual={}))[u]=c,t&s.R&&m&&!m[u]&&a(m,u,c)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.localExports=s},{"./_core":82,"./_ctx":84,"./_global":92,"./_hide":94}],91:[function(t,e,n){e.localExports=function(t){try{return!!t()}catch(t){return!0}}},{}],92:[function(t,e,n){var r,i=e.localExports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof r&&(r=i)},{}],93:[function(t,e,n){var r={}.hasOwnProperty;e.localExports=function(t,e){return r.call(t,e)}},{}],94:[function(t,e,n){var r=t("./_object-dp"),i=t("./_property-desc");e.localExports=t("./_descriptors")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},{"./_descriptors":86,"./_object-dp":112,"./_property-desc":123}],95:[function(t,e,n){e.localExports=t("./_global").document&&document.documentElement},{"./_global":92}],96:[function(t,e,n){e.localExports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":86,"./_dom-create":87,"./_fails":91}],97:[function(t,e,n){var r=t("./_cof");e.localExports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},{"./_cof":81}],98:[function(t,e,n){var r=t("./_iterators"),i=t("./_wks")("iterator"),o=Array.prototype;e.localExports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},{"./_iterators":106,"./_wks":139}],99:[function(t,e,n){var r=t("./_cof");e.localExports=Array.isArray||function(t){return"Array"==r(t)}},{"./_cof":81}],100:[function(t,e,n){e.localExports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],101:[function(t,e,n){var r=t("./_an-object");e.localExports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},{"./_an-object":78}],102:[function(t,e,n){var r=t("./_object-create"),i=t("./_property-desc"),o=t("./_set-to-string-tag"),a={};t("./_hide")(a,t("./_wks")("iterator"),function(){return this}),e.localExports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},{"./_hide":94,"./_object-create":111,"./_property-desc":123,"./_set-to-string-tag":126,"./_wks":139}],103:[function(t,e,n){var r=t("./_library"),i=t("./_export"),o=t("./_redefine"),a=t("./_hide"),s=t("./_has"),u=t("./_iterators"),l=t("./_iter-create"),c=t("./_set-to-string-tag"),h=t("./_object-gpo"),f=t("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.localExports=function(t,e,n,g,_,y,m){l(n,e,g);var v,b,w,x=function(t){if(!d&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",S="values"==_,C=!1,E=t.prototype,A=E[f]||E["@@iterator"]||_&&E[_],P=A||x(_),j=_?S?x("entries"):P:void 0,O="Array"==e?E.entries||A:A;if(O&&(w=h(O.call(new t)))!==Object.prototype&&(c(w,k,!0),r||s(w,f)||a(w,f,p)),S&&A&&"values"!==A.name&&(C=!0,P=function(){return A.call(this)}),r&&!m||!d&&!C&&E[f]||a(E,f,P),u[e]=P,u[k]=p,_)if(v={values:S?P:x("values"),keys:y?P:x("keys"),entries:j},m)for(b in v)b in E||o(E,b,v[b]);else i(i.P+i.F*(d||C),e,v);return v}},{"./_export":90,"./_has":93,"./_hide":94,"./_iter-create":102,"./_iterators":106,"./_library":108,"./_object-gpo":118,"./_redefine":124,"./_set-to-string-tag":126,"./_wks":139}],104:[function(t,e,n){var r=t("./_wks")("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}e.localExports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},{"./_wks":139}],105:[function(t,e,n){e.localExports=function(t,e){return{value:e,done:!!t}}},{}],106:[function(t,e,n){e.localExports={}},{}],107:[function(t,e,n){var r=t("./_object-keys"),i=t("./_to-iobject");e.localExports=function(t,e){for(var n,o=i(t),a=r(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===e)return n}},{"./_object-keys":120,"./_to-iobject":132}],108:[function(t,e,n){e.localExports=!0},{}],109:[function(t,e,n){var r=t("./_uid")("meta"),i=t("./_is-object"),o=t("./_has"),a=t("./_object-dp").f,s=0,u=Object.isExtensible||function(){return!0},l=!t("./_fails")(function(){return u(Object.preventExtensions({}))}),c=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},h=e.localExports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[r].w},onFreeze:function(t){return l&&h.NEED&&u(t)&&!o(t,r)&&c(t),t}}},{"./_fails":91,"./_has":93,"./_is-object":100,"./_object-dp":112,"./_uid":136}],110:[function(t,e,n){var r=t("./_object-keys"),i=t("./_object-gops"),o=t("./_object-pie"),a=t("./_to-object"),s=t("./_iobject"),u=Object.assign;e.localExports=!u||t("./_fails")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=a(t),u=arguments.length,l=1,c=i.f,h=o.f;u>l;)for(var f,d=s(arguments[l++]),p=c?r(d).concat(c(d)):r(d),g=p.length,_=0;g>_;)h.call(d,f=p[_++])&&(n[f]=d[f]);return n}:u},{"./_fails":91,"./_iobject":97,"./_object-gops":117,"./_object-keys":120,"./_object-pie":121,"./_to-object":134}],111:[function(t,e,n){var r=t("./_an-object"),i=t("./_object-dps"),o=t("./_enum-bug-keys"),a=t("./_shared-key")("IE_PROTO"),s=function(){},u=function(){var e,n=t("./_dom-create")("iframe"),r=o.length;for(n.style.display="none",t("./_html").appendChild(n),n.src="javascript:",(e=n.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.localExports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},{"./_an-object":78,"./_dom-create":87,"./_enum-bug-keys":88,"./_html":95,"./_object-dps":113,"./_shared-key":127}],112:[function(t,e,n){var r=t("./_an-object"),i=t("./_ie8-dom-define"),o=t("./_to-primitive"),a=Object.defineProperty;n.f=t("./_descriptors")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},{"./_an-object":78,"./_descriptors":86,"./_ie8-dom-define":96,"./_to-primitive":135}],113:[function(t,e,n){var r=t("./_object-dp"),i=t("./_an-object"),o=t("./_object-keys");e.localExports=t("./_descriptors")?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},{"./_an-object":78,"./_descriptors":86,"./_object-dp":112,"./_object-keys":120}],114:[function(t,e,n){var r=t("./_object-pie"),i=t("./_property-desc"),o=t("./_to-iobject"),a=t("./_to-primitive"),s=t("./_has"),u=t("./_ie8-dom-define"),l=Object.getOwnPropertyDescriptor;n.f=t("./_descriptors")?l:function(t,e){if(t=o(t),e=a(e,!0),u)try{return l(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},{"./_descriptors":86,"./_has":93,"./_ie8-dom-define":96,"./_object-pie":121,"./_property-desc":123,"./_to-iobject":132,"./_to-primitive":135}],115:[function(t,e,n){var r=t("./_to-iobject"),i=t("./_object-gopn").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};e.localExports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},{"./_object-gopn":116,"./_to-iobject":132}],116:[function(t,e,n){var r=t("./_object-keys-internal"),i=t("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},{"./_enum-bug-keys":88,"./_object-keys-internal":119}],117:[function(t,e,n){n.f=Object.getOwnPropertySymbols},{}],118:[function(t,e,n){var r=t("./_has"),i=t("./_to-object"),o=t("./_shared-key")("IE_PROTO"),a=Object.prototype;e.localExports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},{"./_has":93,"./_shared-key":127,"./_to-object":134}],119:[function(t,e,n){var r=t("./_has"),i=t("./_to-iobject"),o=t("./_array-includes")(!1),a=t("./_shared-key")("IE_PROTO");e.localExports=function(t,e){var n,s=i(t),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},{"./_array-includes":79,"./_has":93,"./_shared-key":127,"./_to-iobject":132}],120:[function(t,e,n){var r=t("./_object-keys-internal"),i=t("./_enum-bug-keys");e.localExports=Object.keys||function(t){return r(t,i)}},{"./_enum-bug-keys":88,"./_object-keys-internal":119}],121:[function(t,e,n){n.f={}.propertyIsEnumerable},{}],122:[function(t,e,n){var r=t("./_export"),i=t("./_core"),o=t("./_fails");e.localExports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},{"./_core":82,"./_export":90,"./_fails":91}],123:[function(t,e,n){e.localExports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],124:[function(t,e,n){e.localExports=t("./_hide")},{"./_hide":94}],125:[function(t,e,n){var r=t("./_is-object"),i=t("./_an-object"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};e.localExports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,n,r){try{(r=t("./_ctx")(Function.call,t("./_object-gopd").f(Object.prototype,"__proto__").set,2))(e,[]),n=!(e instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},{"./_an-object":78,"./_ctx":84,"./_is-object":100,"./_object-gopd":114}],126:[function(t,e,n){var r=t("./_object-dp").f,i=t("./_has"),o=t("./_wks")("toStringTag");e.localExports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},{"./_has":93,"./_object-dp":112,"./_wks":139}],127:[function(t,e,n){var r=t("./_shared")("keys"),i=t("./_uid");e.localExports=function(t){return r[t]||(r[t]=i(t))}},{"./_shared":128,"./_uid":136}],128:[function(t,e,n){var r=t("./_global"),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.localExports=function(t){return i[t]||(i[t]={})}},{"./_global":92}],129:[function(t,e,n){var r=t("./_to-integer"),i=t("./_defined");e.localExports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},{"./_defined":85,"./_to-integer":131}],130:[function(t,e,n){var r=t("./_to-integer"),i=Math.max,o=Math.min;e.localExports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},{"./_to-integer":131}],131:[function(t,e,n){var r=Math.ceil,i=Math.floor;e.localExports=function(t){return isNaN(t=+t)?0:(t>0?i:r)(t)}},{}],132:[function(t,e,n){var r=t("./_iobject"),i=t("./_defined");e.localExports=function(t){return r(i(t))}},{"./_defined":85,"./_iobject":97}],133:[function(t,e,n){var r=t("./_to-integer"),i=Math.min;e.localExports=function(t){return t>0?i(r(t),9007199254740991):0}},{"./_to-integer":131}],134:[function(t,e,n){var r=t("./_defined");e.localExports=function(t){return Object(r(t))}},{"./_defined":85}],135:[function(t,e,n){var r=t("./_is-object");e.localExports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":100}],136:[function(t,e,n){var r=0,i=Math.random();e.localExports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+i).toString(36))}},{}],137:[function(t,e,n){var r=t("./_global"),i=t("./_core"),o=t("./_library"),a=t("./_wks-ext"),s=t("./_object-dp").f;e.localExports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},{"./_core":82,"./_global":92,"./_library":108,"./_object-dp":112,"./_wks-ext":138}],138:[function(t,e,n){n.f=t("./_wks")},{"./_wks":139}],139:[function(t,e,n){var r=t("./_shared")("wks"),i=t("./_uid"),o=t("./_global").Symbol,a="function"==typeof o;(e.localExports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},{"./_global":92,"./_shared":128,"./_uid":136}],140:[function(t,e,n){var r=t("./_classof"),i=t("./_wks")("iterator"),o=t("./_iterators");e.localExports=t("./_core").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},{"./_classof":80,"./_core":82,"./_iterators":106,"./_wks":139}],141:[function(t,e,n){var r=t("./_an-object"),i=t("./core.get-iterator-method");e.localExports=t("./_core").getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},{"./_an-object":78,"./_core":82,"./core.get-iterator-method":140}],142:[function(t,e,n){var r=t("./_classof"),i=t("./_wks")("iterator"),o=t("./_iterators");e.localExports=t("./_core").isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(r(e))}},{"./_classof":80,"./_core":82,"./_iterators":106,"./_wks":139}],143:[function(t,e,n){var r=t("./_ctx"),i=t("./_export"),o=t("./_to-object"),a=t("./_iter-call"),s=t("./_is-array-iter"),u=t("./_to-length"),l=t("./_create-property"),c=t("./core.get-iterator-method");i(i.S+i.F*!t("./_iter-detect")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,h,f=o(t),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,_=void 0!==g,y=0,m=c(f);if(_&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==m||d==Array&&s(m))for(n=new d(e=u(f.length));e>y;y++)l(n,y,_?g(f[y],y):f[y]);else for(h=m.call(f),n=new d;!(i=h.next()).done;y++)l(n,y,_?a(h,g,[i.value,y],!0):i.value);return n.length=y,n}})},{"./_create-property":83,"./_ctx":84,"./_export":90,"./_is-array-iter":98,"./_iter-call":101,"./_iter-detect":104,"./_to-length":133,"./_to-object":134,"./core.get-iterator-method":140}],144:[function(t,e,n){var r=t("./_add-to-unscopables"),i=t("./_iter-step"),o=t("./_iterators"),a=t("./_to-iobject");e.localExports=t("./_iter-define")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},{"./_add-to-unscopables":77,"./_iter-define":103,"./_iter-step":105,"./_iterators":106,"./_to-iobject":132}],145:[function(t,e,n){var r=t("./_export");r(r.S+r.F,"Object",{assign:t("./_object-assign")})},{"./_export":90,"./_object-assign":110}],146:[function(t,e,n){var r=t("./_export");r(r.S,"Object",{create:t("./_object-create")})},{"./_export":90,"./_object-create":111}],147:[function(t,e,n){var r=t("./_export");r(r.S+r.F*!t("./_descriptors"),"Object",{defineProperties:t("./_object-dps")})},{"./_descriptors":86,"./_export":90,"./_object-dps":113}],148:[function(t,e,n){var r=t("./_export");r(r.S+r.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":86,"./_export":90,"./_object-dp":112}],149:[function(t,e,n){var r=t("./_is-object"),i=t("./_meta").onFreeze;t("./_object-sap")("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},{"./_is-object":100,"./_meta":109,"./_object-sap":122}],150:[function(t,e,n){var r=t("./_to-iobject"),i=t("./_object-gopd").f;t("./_object-sap")("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},{"./_object-gopd":114,"./_object-sap":122,"./_to-iobject":132}],151:[function(t,e,n){var r=t("./_to-object"),i=t("./_object-gpo");t("./_object-sap")("getPrototypeOf",function(){return function(t){return i(r(t))}})},{"./_object-gpo":118,"./_object-sap":122,"./_to-object":134}],152:[function(t,e,n){var r=t("./_to-object"),i=t("./_object-keys");t("./_object-sap")("keys",function(){return function(t){return i(r(t))}})},{"./_object-keys":120,"./_object-sap":122,"./_to-object":134}],153:[function(t,e,n){var r=t("./_export");r(r.S,"Object",{setPrototypeOf:t("./_set-proto").set})},{"./_export":90,"./_set-proto":125}],154:[function(t,e,n){arguments[4][56][0].apply(n,arguments)},{dup:56}],155:[function(t,e,n){var r=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":103,"./_string-at":129}],156:[function(t,e,n){var r=t("./_global"),i=t("./_has"),o=t("./_descriptors"),a=t("./_export"),s=t("./_redefine"),u=t("./_meta").KEY,l=t("./_fails"),c=t("./_shared"),h=t("./_set-to-string-tag"),f=t("./_uid"),d=t("./_wks"),p=t("./_wks-ext"),g=t("./_wks-define"),_=t("./_keyof"),y=t("./_enum-keys"),m=t("./_is-array"),v=t("./_an-object"),b=t("./_to-iobject"),w=t("./_to-primitive"),x=t("./_property-desc"),k=t("./_object-create"),S=t("./_object-gopn-ext"),C=t("./_object-gopd"),E=t("./_object-dp"),A=t("./_object-keys"),P=C.f,j=E.f,O=S.f,I=r.Symbol,T=r.JSON,B=T&&T.stringify,L=d("_hidden"),R=d("toPrimitive"),M={}.propertyIsEnumerable,N=c("symbol-registry"),D=c("symbols"),F=c("op-symbols"),z=Object.prototype,U="function"==typeof I,G=r.QObject,H=!G||!G.prototype||!G.prototype.findChild,q=o&&l(function(){return 7!=k(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(z,e);r&&delete z[e],j(t,e,n),r&&t!==z&&j(z,e,r)}:j,Z=function(t){var e=D[t]=k(I.prototype);return e._k=t,e},W=U&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},Y=function(t,e,n){return t===z&&Y(F,e,n),v(t),e=w(e,!0),v(n),i(D,e)?(n.enumerable?(i(t,L)&&t[L][e]&&(t[L][e]=!1),n=k(n,{enumerable:x(0,!1)})):(i(t,L)||j(t,L,x(1,{})),t[L][e]=!0),q(t,e,n)):j(t,e,n)},V=function(t,e){v(t);for(var n,r=y(e=b(e)),i=0,o=r.length;o>i;)Y(t,n=r[i++],e[n]);return t},K=function(t){var e=M.call(this,t=w(t,!0));return!(this===z&&i(D,t)&&!i(F,t))&&(!(e||!i(this,t)||!i(D,t)||i(this,L)&&this[L][t])||e)},X=function(t,e){if(t=b(t),e=w(e,!0),t!==z||!i(D,e)||i(F,e)){var n=P(t,e);return!n||!i(D,e)||i(t,L)&&t[L][e]||(n.enumerable=!0),n}},J=function(t){for(var e,n=O(b(t)),r=[],o=0;n.length>o;)i(D,e=n[o++])||e==L||e==u||r.push(e);return r},Q=function(t){for(var e,n=t===z,r=O(n?F:b(t)),o=[],a=0;r.length>a;)!i(D,e=r[a++])||n&&!i(z,e)||o.push(D[e]);return o};U||(s((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(F,n),i(this,L)&&i(this[L],t)&&(this[L][t]=!1),q(this,t,x(1,n))};return o&&H&&q(z,t,{configurable:!0,set:e}),Z(t)}).prototype,"toString",function(){return this._k}),C.f=X,E.f=Y,t("./_object-gopn").f=S.f=J,t("./_object-pie").f=K,t("./_object-gops").f=Q,o&&!t("./_library")&&s(z,"propertyIsEnumerable",K,!0),p.f=function(t){return Z(d(t))}),a(a.G+a.W+a.F*!U,{Symbol:I});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)d($[tt++]);for(var $=A(d.store),tt=0;$.length>tt;)g($[tt++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return i(N,t+="")?N[t]:N[t]=I(t)},keyFor:function(t){if(W(t))return _(N,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!U,"Object",{create:function(t,e){return void 0===e?k(t):V(k(t),e)},defineProperty:Y,defineProperties:V,getOwnPropertyDescriptor:X,getOwnPropertyNames:J,getOwnPropertySymbols:Q}),T&&a(a.S+a.F*(!U||l(function(){var t=I();return"[null]"!=B([t])||"{}"!=B({a:t})||"{}"!=B(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!W(t)){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return"function"==typeof(e=r[1])&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!W(e))return e}),r[1]=e,B.apply(T,r)}}}),I.prototype[R]||t("./_hide")(I.prototype,R,I.prototype.valueOf),h(I,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},{"./_an-object":78,"./_descriptors":86,"./_enum-keys":89,"./_export":90,"./_fails":91,"./_global":92,"./_has":93,"./_hide":94,"./_is-array":99,"./_keyof":107,"./_library":108,"./_meta":109,"./_object-create":111,"./_object-dp":112,"./_object-gopd":114,"./_object-gopn":116,"./_object-gopn-ext":115,"./_object-gops":117,"./_object-keys":120,"./_object-pie":121,"./_property-desc":123,"./_redefine":124,"./_set-to-string-tag":126,"./_shared":128,"./_to-iobject":132,"./_to-primitive":135,"./_uid":136,"./_wks":139,"./_wks-define":137,"./_wks-ext":138}],157:[function(t,e,n){t("./_wks-define")("asyncIterator")},{"./_wks-define":137}],158:[function(t,e,n){t("./_wks-define")("observable")},{"./_wks-define":137}],159:[function(t,e,n){t("./es6.array.iterator");for(var r=t("./_global"),i=t("./_hide"),o=t("./_iterators"),a=t("./_wks")("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var l=s[u],c=r[l],h=c&&c.prototype;h&&!h[a]&&i(h,a,l),o[l]=o.Array}},{"./_global":92,"./_hide":94,"./_iterators":106,"./_wks":139,"./es6.array.iterator":144}],160:[function(t,e,n){(function(t){function e(t){return Object.prototype.toString.call(t)}n.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},n.isBoolean=function(t){return"boolean"==typeof t},n.isNull=function(t){return null===t},n.isNullOrUndefined=function(t){return null==t},n.isNumber=function(t){return"number"==typeof t},n.isString=function(t){return"string"==typeof t},n.isSymbol=function(t){return"symbol"==typeof t},n.isUndefined=function(t){return void 0===t},n.isRegExp=function(t){return"[object RegExp]"===e(t)},n.isObject=function(t){return"object"==typeof t&&null!==t},n.isDate=function(t){return"[object Date]"===e(t)},n.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},n.isFunction=function(t){return"function"==typeof t},n.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},n.isBuffer=t.isBuffer}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":168}],164:[function(t,e,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function o(t){return"number"==typeof t}function a(t){return"object"==typeof t&&null!==t}function s(t){return void 0===t}e.localExports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(t){if(!o(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},r.prototype.emit=function(t){var e,n,r,o,u,l;if(this._events||(this._events={}),"error"===t&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}if(n=this._events[t],s(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),n.apply(this,o)}else if(a(n))for(o=Array.prototype.slice.call(arguments,1),r=(l=n.slice()).length,u=0;u<r;u++)l[u].apply(this,o);return!0},r.prototype.addListener=function(t,e){var n;if(!i(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(e.listener)?e.listener:e),this._events[t]?a(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,a(this._events[t])&&!this._events[t].warned&&(n=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(t,e){function n(){this.removeListener(t,n),r||(r=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var r=!1;return n.listener=e,this.on(t,n),this},r.prototype.removeListener=function(t,e){var n,r,o,s;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],o=n.length,r=-1,n===e||i(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(a(n)){for(s=o;s-- >0;)if(n[s]===e||n[s].listener&&n[s].listener===e){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},r.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],i(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},r.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},r.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},r.listenerCount=function(t,e){return t.listenerCount(e)}},{}],165:[function(t,e,n){(function(n,r){function i(t){return t&&"object"==typeof t&&"default"in t?t.default:t}function o(t,e,n){var r=n.get;n.get=function(){var t=r.call(this);return m(this,e,{value:t}),t}}function a(t,e){for(var n=[];t<e;)n.push(t++);return n}function s(t){for(var e=t.length,n=0;n<e;){var r=t.charCodeAt(n++);if(55296<=r&&r<=56319&&n<e){var i=t.charCodeAt(n);56320<=i&&i<=57343&&(n++,r=((1023&r)<<10)+(1023&i)+65536)}var o=A.getScript(r);if("Common"!==o&&"Inherited"!==o&&"Unknown"!==o)return st[o]}return st.Unknown}function u(t){for(var e=0;e<t.length;e++){var n=t[e],r=A.getScript(n);if("Common"!==r&&"Inherited"!==r&&"Unknown"!==r)return st[r]}return st.Unknown}function l(t){return"ltr"}function c(t){var e=gt[t];return e||dt}function h(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(t){o[t]=r[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(t,e,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}function f(t,e,n,r,i){var o={};return Object.keys(r).forEach(function(t){o[t]=r[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(t,e,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}var d=i(t("restructure")),p=i(t("babel-runtime/core-js/object/get-own-property-descriptor")),g=i(t("babel-runtime/core-js/object/freeze")),_=i(t("babel-runtime/core-js/object/keys")),y=i(t("babel-runtime/helpers/typeof")),m=i(t("babel-runtime/core-js/object/define-property")),v=i(t("babel-runtime/helpers/classCallCheck")),b=i(t("babel-runtime/helpers/createClass")),w=i(t("babel-runtime/core-js/object/get-prototype-of")),x=i(t("babel-runtime/helpers/possibleConstructorReturn")),k=i(t("babel-runtime/helpers/inherits")),S=(i(t("babel-runtime/core-js/object/define-properties")),i(t("babel-runtime/helpers/get"))),C=i(t("babel-runtime/core-js/object/assign")),E=i(t("babel-runtime/helpers/toConsumableArray")),A=i(t("unicode-properties")),P=i(t("babel-runtime/helpers/slicedToArray")),j=i(t("clone")),O={};O.logErrors=!1;var I=[];O.registerFormat=function(t){I.push(t)},O.create=function(t,e){for(var n=0;n<I.length;n++){var r=I[n];if(r.probe(t)){var i=new r(new d.DecodeStream(t));return e?i.getFont(e):i}}throw new Error("Unknown font format")};var T=new d.Struct({firstCode:d.uint16,entryCount:d.uint16,idDelta:d.int16,idRangeOffset:d.uint16}),B=new d.Struct({startCharCode:d.uint32,endCharCode:d.uint32,glyphID:d.uint32}),L=(new d.Struct({startUnicodeValue:d.uint24,additionalCount:d.uint8}),new d.Struct({unicodeValue:d.uint24,glyphID:d.uint16}),new d.VersionedStruct(d.uint16,{0:{length:d.uint16,language:d.uint16,codeMap:new d.LazyArray(d.uint8,256)},2:{length:d.uint16,language:d.uint16,subHeaderKeys:new d.Array(d.uint16,256),subHeaderCount:function(t){return Math.max.apply(Math,t.subHeaderKeys)},subHeaders:new d.LazyArray(T,"subHeaderCount"),glyphIndexArray:new d.LazyArray(d.uint16,"subHeaderCount")},4:{length:d.uint16,language:d.uint16,segCountX2:d.uint16,segCount:function(t){return t.segCountX2>>1},searchRange:d.uint16,entrySelector:d.uint16,rangeShift:d.uint16,endCode:new d.LazyArray(d.uint16,"segCount"),reservedPad:new d.Reserved(d.uint16),startCode:new d.LazyArray(d.uint16,"segCount"),idDelta:new d.LazyArray(d.int16,"segCount"),idRangeOffset:new d.LazyArray(d.uint16,"segCount"),glyphIndexArray:new d.LazyArray(d.uint16,function(t){return(t.length-t._currentOffset)/2})},6:{length:d.uint16,language:d.uint16,firstCode:d.uint16,entryCount:d.uint16,glyphIndices:new d.LazyArray(d.uint16,"entryCount")},8:{reserved:new d.Reserved(d.uint16),length:d.uint32,language:d.uint16,is32:new d.LazyArray(d.uint8,8192),nGroups:d.uint32,groups:new d.LazyArray(B,"nGroups")},10:{reserved:new d.Reserved(d.uint16),length:d.uint32,language:d.uint32,firstCode:d.uint32,entryCount:d.uint32,glyphIndices:new d.LazyArray(d.uint16,"numChars")},12:{reserved:new d.Reserved(d.uint16),length:d.uint32,language:d.uint32,nGroups:d.uint32,groups:new d.LazyArray(B,"nGroups")},13:{reserved:new d.Reserved(d.uint16),length:d.uint32,language:d.uint32,nGroups:d.uint32,groups:new d.LazyArray(B,"nGroups")}})),R=new d.Struct({platformID:d.uint16,encodingID:d.uint16,table:new d.Pointer(d.uint32,L,{type:"parent",lazy:!0})}),M=new d.Struct({version:d.uint16,numSubtables:d.uint16,tables:new d.Array(R,"numSubtables")}),N=new d.Struct({version:d.int32,revision:d.int32,checkSumAdjustment:d.uint32,magicNumber:d.uint32,flags:d.uint16,unitsPerEm:d.uint16,created:new d.Array(d.int32,2),modified:new d.Array(d.int32,2),xMin:d.int16,yMin:d.int16,xMax:d.int16,yMax:d.int16,macStyle:new d.Bitfield(d.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:d.uint16,fontDirectionHint:d.int16,indexToLocFormat:d.int16,glyphDataFormat:d.int16}),D=new d.Struct({version:d.int32,ascent:d.int16,descent:d.int16,lineGap:d.int16,advanceWidthMax:d.uint16,minLeftSideBearing:d.int16,minRightSideBearing:d.int16,xMaxExtent:d.int16,caretSlopeRise:d.int16,caretSlopeRun:d.int16,caretOffset:d.int16,reserved:new d.Reserved(d.int16,4),metricDataFormat:d.int16,numberOfMetrics:d.uint16}),F=new d.Struct({advance:d.uint16,bearing:d.int16}),z=new d.Struct({metrics:new d.LazyArray(F,function(t){return t.parent.hhea.numberOfMetrics}),bearings:new d.LazyArray(d.int16,function(t){return t.parent.maxp.numGlyphs-t.parent.hhea.numberOfMetrics})}),U=new d.Struct({version:d.int32,numGlyphs:d.uint16,maxPoints:d.uint16,maxContours:d.uint16,maxComponentPoints:d.uint16,maxComponentContours:d.uint16,maxZones:d.uint16,maxTwilightPoints:d.uint16,maxStorage:d.uint16,maxFunctionDefs:d.uint16,maxInstructionDefs:d.uint16,maxStackElements:d.uint16,maxSizeOfInstructions:d.uint16,maxComponentElements:d.uint16,maxComponentDepth:d.uint16}),G=new d.Struct({platformID:d.uint16,encodingID:d.uint16,languageID:d.uint16,nameID:d.uint16,length:d.uint16,string:new d.Pointer(d.uint16,new d.String("length",function(t){return W[t.platformID][t.encodingID]}),{type:"parent",relativeTo:"parent.stringOffset",allowNull:!1})}),H=new d.Struct({length:d.uint16,tag:new d.Pointer(d.uint16,new d.String("length","utf16be"),{type:"parent",relativeTo:"stringOffset"})}),q=new d.VersionedStruct(d.uint16,{0:{count:d.uint16,stringOffset:d.uint16,records:new d.Array(G,"count")},1:{count:d.uint16,stringOffset:d.uint16,records:new d.Array(G,"count"),langTagCount:d.uint16,langTags:new d.Array(H,"langTagCount")}}),Z=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"],W=[["utf16be","utf16be","utf16be","utf16be","utf16be","utf16be"],["macroman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","macgreek","maccyrillic","symbol","Devanagari","Gurmukhi","Gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","macthai","Laotian","Georgian","Armenian","gb-2312-80","Tibetan","Mongolian","Geez","maccyrillic","Vietnamese","Sindhi"],["ascii"],["symbol","utf16be","shift-jis","gb18030","big5","wansung","johab",null,null,null,"ucs-4"]],Y=[[],{0:"English",59:"Pashto",1:"French",60:"Kurdish",2:"German",61:"Kashmiri",3:"Italian",62:"Sindhi",4:"Dutch",63:"Tibetan",5:"Swedish",64:"Nepali",6:"Spanish",65:"Sanskrit",7:"Danish",66:"Marathi",8:"Portuguese",67:"Bengali",9:"Norwegian",68:"Assamese",10:"Hebrew",69:"Gujarati",11:"Japanese",70:"Punjabi",12:"Arabic",71:"Oriya",13:"Finnish",72:"Malayalam",14:"Greek",73:"Kannada",15:"Icelandic",74:"Tamil",16:"Maltese",75:"Telugu",17:"Turkish",76:"Sinhalese",18:"Croatian",77:"Burmese",19:"Chinese (Traditional)",78:"Khmer",20:"Urdu",79:"Lao",21:"Hindi",80:"Vietnamese",22:"Thai",81:"Indonesian",23:"Korean",82:"Tagalong",24:"Lithuanian",83:"Malay (Roman script)",25:"Polish",84:"Malay (Arabic script)",26:"Hungarian",85:"Amharic",27:"Estonian",86:"Tigrinya",28:"Latvian",87:"Galla",29:"Sami",88:"Somali",30:"Faroese",89:"Swahili",31:"Farsi/Persian",90:"Kinyarwanda/Ruanda",32:"Russian",91:"Rundi",33:"Chinese (Simplified)",92:"Nyanja/Chewa",34:"Flemish",93:"Malagasy",35:"Irish Gaelic",94:"Esperanto",36:"Albanian",128:"Welsh",37:"Romanian",129:"Basque",38:"Czech",130:"Catalan",39:"Slovak",131:"Latin",40:"Slovenian",132:"Quenchua",41:"Yiddish",133:"Guarani",42:"Serbian",134:"Aymara",43:"Macedonian",135:"Tatar",44:"Bulgarian",136:"Uighur",45:"Ukrainian",137:"Dzongkha",46:"Byelorussian",138:"Javanese (Roman script)",47:"Uzbek",139:"Sundanese (Roman script)",48:"Kazakh",140:"Galician",49:"Azerbaijani (Cyrillic script)",141:"Afrikaans",50:"Azerbaijani (Arabic script)",142:"Breton",51:"Armenian",143:"Inuktitut",52:"Georgian",144:"Scottish Gaelic",53:"Moldavian",145:"Manx Gaelic",54:"Kirghiz",146:"Irish Gaelic (with dot above)",55:"Tajiki",147:"Tongan",56:"Turkmen",148:"Greek (polytonic)",57:"Mongolian (Mongolian script)",149:"Greenlandic",58:"Mongolian (Cyrillic script)",150:"Azerbaijani (Roman script)"},[],{1078:"Afrikaans",1107:"Khmer",1052:"Albanian",1158:"K'iche",1156:"Alsatian",1159:"Kinyarwanda",1118:"Amharic",1089:"Kiswahili",5121:"Arabic",1111:"Konkani",15361:"Arabic",1042:"Korean",3073:"Arabic",1088:"Kyrgyz",2049:"Arabic",1108:"Lao",11265:"Arabic",1062:"Latvian",13313:"Arabic",1063:"Lithuanian",12289:"Arabic",2094:"Lower Sorbian",4097:"Arabic",1134:"Luxembourgish",6145:"Arabic",1071:"Macedonian (FYROM)",8193:"Arabic",2110:"Malay",16385:"Arabic",1086:"Malay",1025:"Arabic",1100:"Malayalam",10241:"Arabic",1082:"Maltese",7169:"Arabic",1153:"Maori",14337:"Arabic",1146:"Mapudungun",9217:"Arabic",1102:"Marathi",1067:"Armenian",1148:"Mohawk",1101:"Assamese",1104:"Mongolian (Cyrillic)",2092:"Azeri (Cyrillic)",2128:"Mongolian (Traditional)",1068:"Azeri (Latin)",1121:"Nepali",1133:"Bashkir",1044:"Norwegian (Bokmal)",1069:"Basque",2068:"Norwegian (Nynorsk)",1059:"Belarusian",1154:"Occitan",2117:"Bengali",1096:"Odia (formerly Oriya)",1093:"Bengali",1123:"Pashto",8218:"Bosnian (Cyrillic)",1045:"Polish",5146:"Bosnian (Latin)",1046:"Portuguese",1150:"Breton",2070:"Portuguese",1026:"Bulgarian",1094:"Punjabi",1027:"Catalan",1131:"Quechua",3076:"Chinese",2155:"Quechua",5124:"Chinese",3179:"Quechua",2052:"Chinese",1048:"Romanian",4100:"Chinese",1047:"Romansh",1028:"Chinese",1049:"Russian",1155:"Corsican",9275:"Sami (Inari)",1050:"Croatian",4155:"Sami (Lule)",4122:"Croatian (Latin)",5179:"Sami (Lule)",1029:"Czech",3131:"Sami (Northern)",1030:"Danish",1083:"Sami (Northern)",1164:"Dari",2107:"Sami (Northern)",1125:"Divehi",8251:"Sami (Skolt)",2067:"Dutch",6203:"Sami (Southern)",1043:"Dutch",7227:"Sami (Southern)",3081:"English",1103:"Sanskrit",10249:"English",7194:"Serbian (Cyrillic)",4105:"English",3098:"Serbian (Cyrillic)",9225:"English",6170:"Serbian (Latin)",16393:"English",2074:"Serbian (Latin)",6153:"English",1132:"Sesotho sa Leboa",8201:"English",1074:"Setswana",17417:"English",1115:"Sinhala",5129:"English",1051:"Slovak",13321:"English",1060:"Slovenian",18441:"English",11274:"Spanish",7177:"English",16394:"Spanish",11273:"English",13322:"Spanish",2057:"English",9226:"Spanish",1033:"English",5130:"Spanish",12297:"English",7178:"Spanish",1061:"Estonian",12298:"Spanish",1080:"Faroese",17418:"Spanish",1124:"Filipino",4106:"Spanish",1035:"Finnish",18442:"Spanish",2060:"French",2058:"Spanish",3084:"French",19466:"Spanish",1036:"French",6154:"Spanish",5132:"French",15370:"Spanish",6156:"French",10250:"Spanish",4108:"French",20490:"Spanish",1122:"Frisian",3082:"Spanish (Modern Sort)",1110:"Galician",1034:"Spanish (Traditional Sort)",1079:"Georgian",21514:"Spanish",3079:"German",14346:"Spanish",1031:"German",8202:"Spanish",5127:"German",2077:"Sweden",4103:"German",1053:"Swedish",2055:"German",1114:"Syriac",1032:"Greek",1064:"Tajik (Cyrillic)",1135:"Greenlandic",2143:"Tamazight (Latin)",1095:"Gujarati",1097:"Tamil",1128:"Hausa (Latin)",1092:"Tatar",1037:"Hebrew",1098:"Telugu",1081:"Hindi",1054:"Thai",1038:"Hungarian",1105:"Tibetan",1039:"Icelandic",1055:"Turkish",1136:"Igbo",1090:"Turkmen",1057:"Indonesian",1152:"Uighur",1117:"Inuktitut",1058:"Ukrainian",2141:"Inuktitut (Latin)",1070:"Upper Sorbian",2108:"Irish",1056:"Urdu",1076:"isiXhosa",2115:"Uzbek (Cyrillic)",1077:"isiZulu",1091:"Uzbek (Latin)",1040:"Italian",1066:"Vietnamese",2064:"Italian",1106:"Welsh",1041:"Japanese",1160:"Wolof",1099:"Kannada",1157:"Yakut",1087:"Kazakh",1144:"Yi",1130:"Yoruba"}];q.process=function(t){for(var e={},n=0,r=Object.keys(this.records);n<r.length;n++){var i=this.records[r[n]],o=Y[i.platformID][i.languageID];if(null==o&&null!=this.langTags&&i.languageID>=32768&&(o=this.langTags[i.languageID-32768].tag),null==o&&(o=i.platformID+"-"+i.languageID),i.nameID>=256)null==e.fontFeatures&&(e.fontFeatures={}),(null!=e.fontFeatures[o]?e.fontFeatures[o]:e.fontFeatures[o]={})[i.nameID]=i.string;else{var a=Z[i.nameID]||i.nameID;null==e[a]&&(e[a]={}),e[a][o]=i.string}}this.records=e},q.preEncode=function(){if(!Array.isArray(this.records)){this.version=0;var t=[];for(var n in this.records){var i=this.records[n];"fontFeatures"!==n&&(t.push({platformID:3,encodingID:1,languageID:1033,nameID:Z.indexOf(n),length:r.byteLength(i.English,"utf16le"),string:i.English}),"postscriptName"===n&&t.push({platformID:1,encodingID:0,languageID:0,nameID:Z.indexOf(n),length:i.English.length,string:i.English}))}this.records=t,this.count=t.length,this.stringOffset=e.localExports.size(this,null,!1)}};var V=new d.VersionedStruct(d.uint16,{header:{xAvgCharWidth:d.int16,usWeightClass:d.uint16,usWidthClass:d.uint16,fsType:new d.Bitfield(d.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:d.int16,ySubscriptYSize:d.int16,ySubscriptXOffset:d.int16,ySubscriptYOffset:d.int16,ySuperscriptXSize:d.int16,ySuperscriptYSize:d.int16,ySuperscriptXOffset:d.int16,ySuperscriptYOffset:d.int16,yStrikeoutSize:d.int16,yStrikeoutPosition:d.int16,sFamilyClass:d.int16,panose:new d.Array(d.uint8,10),ulCharRange:new d.Array(d.uint32,4),vendorID:new d.String(4),fsSelection:new d.Bitfield(d.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:d.uint16,usLastCharIndex:d.uint16},0:{},1:{typoAscender:d.int16,typoDescender:d.int16,typoLineGap:d.int16,winAscent:d.uint16,winDescent:d.uint16,codePageRange:new d.Array(d.uint32,2)},2:{typoAscender:d.int16,typoDescender:d.int16,typoLineGap:d.int16,winAscent:d.uint16,winDescent:d.uint16,codePageRange:new d.Array(d.uint32,2),xHeight:d.int16,capHeight:d.int16,defaultChar:d.uint16,breakChar:d.uint16,maxContent:d.uint16},5:{typoAscender:d.int16,typoDescender:d.int16,typoLineGap:d.int16,winAscent:d.uint16,winDescent:d.uint16,codePageRange:new d.Array(d.uint32,2),xHeight:d.int16,capHeight:d.int16,defaultChar:d.uint16,breakChar:d.uint16,maxContent:d.uint16,usLowerOpticalPointSize:d.uint16,usUpperOpticalPointSize:d.uint16}}),K=V.versions;K[3]=K[4]=K[2];var X=new d.VersionedStruct(d.fixed32,{header:{italicAngle:d.fixed32,underlinePosition:d.int16,underlineThickness:d.int16,isFixedPitch:d.uint32,minMemType42:d.uint32,maxMemType42:d.uint32,minMemType1:d.uint32,maxMemType1:d.uint32},1:{},2:{numberOfGlyphs:d.uint16,glyphNameIndex:new d.Array(d.uint16,"numberOfGlyphs"),names:new d.Array(new d.String(d.uint8))},2.5:{numberOfGlyphs:d.uint16,offsets:new d.Array(d.uint8,"numberOfGlyphs")},3:{},4:{map:new d.Array(d.uint32,function(t){return t.parent.maxp.numGlyphs})}}),J=new d.VersionedStruct("head.indexToLocFormat",{0:{offsets:new d.Array(d.uint16)},1:{offsets:new d.Array(d.uint32)}});J.process=function(){if(0===this.version)for(var t=0;t<this.offsets.length;t++)this.offsets[t]<<=1},J.preEncode=function(){if(null==this.version&&(this.version=this.offsets[this.offsets.length-1]>65535?1:0,0===this.version))for(var t=0;t<this.offsets.length;t++)this.offsets[t]>>>=1};var Q=new d.Array(new d.Buffer),$={};$.cmap=M,$.head=N,$.hhea=D,$.hmtx=z,$.maxp=U,$.name=q,$["OS/2"]=V,$.post=X,$.loca=J,$.glyf=Q;var tt=new d.Struct({tag:new d.String(4),checkSum:d.uint32,offset:new d.Pointer(d.uint32,"void",{type:"global"}),length:d.uint32}),et=new d.Struct({tag:new d.String(4),numTables:d.uint16,searchRange:d.uint16,entrySelector:d.uint16,rangeShift:d.uint16,tables:new d.Array(tt,"numTables")});et.process=function(){var t=this,e={};Object.keys(this.tables).forEach(function(n){var r=t.tables[n];e[r.tag]=r}),this.tables=e},et.preEncode=function(t){var e=[];for(var n in this.tables){var r=this.tables[n];r&&e.push({tag:n,checkSum:0,offset:new d.VoidPointer($[n],r),length:$[n].size(r)})}this.tag="true",this.numTables=e.length,this.tables=e,this.searchRange=16*Math.floor(Math.log(this.numTables)/Math.LN2),this.entrySelector=Math.floor(this.searchRange/Math.LN2),this.rangeShift=16*this.numTables-this.searchRange};for(var nt=function(){function t(e){v(this,t),this._characterSet=null;for(var n=Object.keys(e.tables),r=0;r<n.length;r++)if(0===(M=e.tables[n[r]]).platformID&&(4===M.encodingID||6===M.encodingID)||3===M.platformID&&10===M.encodingID)return void(this.cmap=M.table);for(r=0;r<n.length;r++)if(0===(M=e.tables[n[r]]).platformID||3===M.platformID&&1===M.encodingID)return void(this.cmap=M.table);throw new Error("Could not find a unicode cmap")}return b(t,[{key:"lookup",value:function(t){var e=this.cmap;switch(e.version){case 0:return e.codeMap.get(t)||0;case 4:for(var n=0,r=e.segCount-1;n<=r;){var i=n+r>>1;if(t<e.startCode.get(i))r=i-1;else{if(!(t>e.endCode.get(i))){var o=e.idRangeOffset.get(i),a=void 0;if(0===o)a=t+e.idDelta.get(i);else{var s=o/2+(t-e.startCode.get(i))-(e.segCount-i);0!==(a=e.glyphIndexArray.get(s)||0)&&(a+=e.idDelta.get(i))}return 65535&a}n=i+1}}return 0;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return e.glyphIndices.get(t-e.firstCode)||0;case 12:case 13:for(var u=0,l=e.nGroups-1;u<=l;){var c=u+l>>1,h=e.groups.get(c);if(t<h.startCharCode)l=c-1;else{if(!(t>h.endCharCode))return 12===e.version?h.glyphID+(t-h.startCharCode):h.glyphID;u=c+1}}return 0;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format "+e.version)}}},{key:"getCharacterSet",value:function(){if(this._characterSet)return this._characterSet;var t=this.cmap;switch(t.version){case 0:return this._characterSet=a(0,t.codeMap.length);case 4:for(var e=[],n=t.endCode.toArray(),r=0;r<n.length;r++){var i=n[r]+1,o=t.startCode.get(r);e.push.apply(e,E(a(o,i)))}return this._characterSet=e;case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return this._characterSet=a(t.firstCode,t.firstCode+t.glyphIndices.length);case 12:case 13:for(var s=[],u=t.groups.toArray(),r=0;r<u.length;r++){var l=u[r];s.push.apply(s,E(a(l.startCharCode,l.endCharCode+1)))}return this._characterSet=s;case 14:throw new Error("TODO: cmap format 14");default:throw new Error("Unknown cmap format "+t.version)}}}]),t}(),rt=function(){function t(e){v(this,t),this.font=e}return b(t,[{key:"positionGlyphs",value:function(t,e){for(var n=0,r=0,i=0;i<t.length;i++)t[i].isMark?r=i:(n!==r&&this.positionCluster(t,e,n,r),n=r=i);return n!==r&&this.positionCluster(t,e,n,r),e}},{key:"positionCluster",value:function(t,e,n,r){var i=t[n],o=i.cbox.copy();i.codePoints.length>1&&(o.minX+=(i.codePoints.length-1)*o.width/i.codePoints.length);for(var a=-e[n].xAdvance,s=0,u=this.font.unitsPerEm/16,l=n+1;l<=r;l++){var c=t[l],h=c.cbox,f=e[l],d=this.getCombiningClass(c.codePoints[0]);if("Not_Reordered"!==d){switch(f.xOffset=f.yOffset=0,d){case"Double_Above":case"Double_Below":f.xOffset+=o.minX-h.width/2-h.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":f.xOffset+=o.minX-h.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":f.xOffset+=o.maxX-h.width-h.minX;break;default:f.xOffset+=o.minX+(o.width-h.width)/2-h.minX}switch(d){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":"Attached_Below_Left"!==d&&"Attached_Below"!==d||(o.minY+=u),f.yOffset=-o.minY-h.maxY,o.minY+=h.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":"Attached_Above"!==d&&"Attached_Above_Right"!==d||(o.maxY+=u),f.yOffset=o.maxY-h.minY,o.maxY+=h.height}f.xAdvance=f.yAdvance=0,f.xOffset+=a,f.yOffset+=s}else a-=f.xAdvance,s-=f.yAdvance}}},{key:"getCombiningClass",value:function(t){var e=A.getCombiningClass(t);if(3584==(-256&t))if("Not_Reordered"===e)switch(t){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(3642===t)return"Below_Right";switch(e){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":return"Below";case"CCC23":return"Attached_Above";case"CCC24":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":return"Above";case"CCC21":break;case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":return"Above";case"CCC29":case"CCC32":return"Below";case"CCC103":return"Below_Right";case"CCC107":return"Above_Right";case"CCC118":return"Below";case"CCC122":return"Above";case"CCC129":case"CCC132":return"Below";case"CCC130":return"Above"}return e}}]),t}(),it=function(){function t(e,n,r,i){var o=arguments.length<=0||void 0===arguments[0]?1/0:arguments[0],a=arguments.length<=1||void 0===arguments[1]?1/0:arguments[1],s=arguments.length<=2||void 0===arguments[2]?-1/0:arguments[2],u=arguments.length<=3||void 0===arguments[3]?-1/0:arguments[3];v(this,t),this.minX=o,this.minY=a,this.maxX=s,this.maxY=u}return b(t,[{key:"addPoint",value:function(t,e){t<this.minX&&(this.minX=t),e<this.minY&&(this.minY=e),t>this.maxX&&(this.maxX=t),e>this.maxY&&(this.maxY=e)}},{key:"copy",value:function(){return new t(this.minX,this.minY,this.maxX,this.maxY)}},{key:"width",get:function(){return this.maxX-this.minX}},{key:"height",get:function(){return this.maxY-this.minY}}]),t}(),ot=function(){function t(e,n){v(this,t),this.glyphs=e,this.positions=n}return b(t,[{key:"advanceWidth",get:function(){var t=this,e=0;return Object.keys(this.positions).forEach(function(n){e+=t.positions[n].xAdvance}),e}},{key:"advanceHeight",get:function(){var t=this,e=0;return Object.keys(this.positions).forEach(function(n){e+=t.positions[n].yAdvance}),e}},{key:"bbox",get:function(){for(var t=new it,e=0,n=0,r=0;r<this.glyphs.length;r++){var i=this.glyphs[r],o=this.positions[r],a=i.bbox;t.addPoint(a.minX+e+o.xOffset,a.minY+n+o.yOffset),t.addPoint(a.maxX+e+o.xOffset,a.maxY+n+o.yOffset),e+=o.xAdvance,n+=o.yAdvance}return t}}]),t}(),at=function t(){var e=arguments.length<=0||void 0===arguments[0]?0:arguments[0],n=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=arguments.length<=2||void 0===arguments[2]?0:arguments[2],i=arguments.length<=3||void 0===arguments[3]?0:arguments[3];v(this,t),this.xAdvance=e,this.yAdvance=n,this.xOffset=r,this.yOffset=i},st={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:"orya",Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:"taml",Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi  ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"},ut=function(){function t(e,n,r){v(this,t),this.font=e,this.script=n,this.language=r,this.direction=l(n),this.stages=[],this.globalFeatures={},this.allFeatures={}}return b(t,[{key:"_addFeatures",value:function(t){var e=this,n=this.stages[this.stages.length-1];Object.keys(t).forEach(function(r){var i=t[r];e.allFeatures[i]||(n.push(i),e.allFeatures[i]=!0)})}},{key:"_addGlobal",value:function(t){var e=this;Object.keys(t).forEach(function(n){var r=t[n];e.globalFeatures[r]=!0})}},{key:"add",value:function(t){var e=arguments.length<=1||void 0===arguments[1]||arguments[1];if(0===this.stages.length&&this.stages.push([]),"string"==typeof t&&(t=[t]),Array.isArray(t))this._addFeatures(t),e&&this._addGlobal(t);else{if("object"!==(void 0===t?"undefined":y(t)))throw new Error("Unsupported argument to ShapingPlan#add");var n=(t.global||[]).concat(t.local||[]);this._addFeatures(n),t.global&&this._addGlobal(t.global)}}},{key:"addStage",value:function(t,e){"function"==typeof t?this.stages.push(t,[]):(this.stages.push([]),this.add(t,e))}},{key:"assignGlobalFeatures",value:function(t){var e=this;Object.keys(t).forEach(function(n){var r=t[n];for(var i in e.globalFeatures)r.features[i]=!0})}},{key:"process",value:function(t,e,n){var r=this;t.selectScript(this.script,this.language),Object.keys(this.stages).forEach(function(i){var o=r.stages[i];"function"==typeof o?o(e,n):o.length>0&&t.applyFeatures(o,e,n)})}}]),t}(),lt=["ccmp","locl","rlig","mark","mkmk"],ct=["frac","numr","dnom"],ht=["calt","clig","liga","rclt","curs","kern"],ft={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},dt=function(){function t(){v(this,t)}return b(t,null,[{key:"plan",value:function(t,e,n){this.planPreprocessing(t),this.planFeatures(t),this.planPostprocessing(t,n),t.assignGlobalFeatures(e),this.assignFeatures(t,e)}},{key:"planPreprocessing",value:function(t){t.add({global:ft[t.direction],local:ct})}},{key:"planFeatures",value:function(t){}},{key:"planPostprocessing",value:function(t,e){t.add([].concat(lt,ht,E(e)))}},{key:"assignFeatures",value:function(t,e){for(var n=0;n<e.length;){var r=e[n];if(8260===r.codePoints[0]){for(var i=n-1,o=n+1;i>=0&&A.isDigit(e[i].codePoints[0]);)e[i].features.numr=!0,e[i].features.frac=!0,i--;for(;o<e.length&&A.isDigit(e[o].codePoints[0]);)e[o].features.dnom=!0,e[o].features.frac=!0,o++;r.features.frac=!0,n=o-1}else n++}}}]),t}(),pt=function t(e){var n=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],r=arguments.length<=2||void 0===arguments[2]?[]:arguments[2];if(v(this,t),this.id=e,this.codePoints=n,this.isMark=this.codePoints.every(A.isMark),this.isLigature=this.codePoints.length>1,this.features={},Array.isArray(r))for(var i=0;i<r.length;i++){var o=r[i];this.features[o]=!0}else"object"===(void 0===r?"undefined":y(r))&&C(this.features,r);this.ligatureID=null,this.ligatureComponent=null,this.cursiveAttachment=null,this.markAttachment=null},gt={latn:dt,DFLT:dt},_t=function(){function t(e,n){v(this,t),this.glyphs=e,this.reset(n)}return b(t,[{key:"reset",value:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.flags=t,this.index=0}},{key:"shouldIgnore",value:function(t,e){return e.ignoreMarks&&t.isMark||e.ignoreBaseGlyphs&&!t.isMark||e.ignoreLigatures&&t.isLigature}},{key:"move",value:function(t){for(this.index+=t;0<=this.index&&this.index<this.glyphs.length&&this.shouldIgnore(this.glyphs[this.index],this.flags);)this.index+=t;return 0>this.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]}},{key:"next",value:function(){return this.move(1)}},{key:"prev",value:function(){return this.move(-1)}},{key:"peek",value:function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0],e=this.index,n=this.increment(t);return this.index=e,n}},{key:"peekIndex",value:function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0],e=this.index;this.increment(t);var n=this.index;return this.index=e,n}},{key:"increment",value:function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0],e=t<0?-1:1;for(t=Math.abs(t);t--;)this.move(e);return this.glyphs[this.index]}},{key:"cur",get:function(){return this.glyphs[this.index]||null}}]),t}(),yt=["DFLT","dflt","latn"],mt=(function(){function t(e,n){v(this,t),this.font=e,this.table=n,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1}b(t,[{key:"findScript",value:function(t){if(null==this.table.scriptList)return null;Array.isArray(t)||(t=[t]);for(var e=0,n=Object.keys(this.table.scriptList);e<n.length;e++)for(var r=this.table.scriptList[n[e]],i=0,o=Object.keys(t);i<o.length;i++){var a=t[o[i]];if(r.tag===a)return r}return null}},{key:"selectScript",value:function(t,e){var n=this,r=!1,i=void 0;if(!this.script||t!==this.scriptTag){if(i=this.findScript(t),t&&(i=this.findScript(t)),i||(i=this.findScript(yt)),!i)return;this.scriptTag=i.tag,this.script=i.script,this.direction=l(t),this.language=null,r=!0}if(!e&&e!==this.langugeTag)for(var o=0,a=Object.keys(this.script.langSysRecords);o<a.length;o++){var s=this.script.langSysRecords[a[o]];if(s.tag===e){this.language=s.langSys,this.langugeTag=s.tag,r=!0;break}}this.language||(this.language=this.script.defaultLangSys),r&&(this.features={},this.language&&Object.keys(this.language.featureIndexes).forEach(function(t){var e=n.language.featureIndexes[t],r=n.table.featureList[e];n.features[r.tag]=r.feature}))}},{key:"lookupsForFeatures",value:function(){for(var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],e=arguments[1],n=[],r=0,i=Object.keys(t);r<i.length;r++){var o=t[i[r]],a=this.features[o];if(a)for(var s=0,u=Object.keys(a.lookupListIndexes);s<u.length;s++){var l=a.lookupListIndexes[u[s]];e&&-1!==e.indexOf(l)||n.push({feature:o,index:l,lookup:this.table.lookupList.get(l)})}}return n.sort(function(t,e){return t.index-e.index}),n}},{key:"applyFeatures",value:function(t,e,n){var r=this.lookupsForFeatures(t);this.applyLookups(r,e,n)}},{key:"applyLookups",value:function(t,e,n){this.glyphs=e,this.positions=n,this.glyphIterator=new _t(e);for(var r=0,i=Object.keys(t);r<i.length;r++){var o=t[i[r]],a=o.feature,s=o.lookup;for(this.glyphIterator.reset(s.flags);this.glyphIterator.index<e.length;)if(a in this.glyphIterator.cur.features){for(var u=0,l=Object.keys(s.subTables);u<l.length;u++){var c=s.subTables[l[u]];if(this.applyLookup(s.lookupType,c))break}this.glyphIterator.index++}else this.glyphIterator.index++}}},{key:"applyLookup",value:function(t,e){throw new Error("applyLookup must be implemented by subclasses")}},{key:"applyLookupList",value:function(t){var e=this,n=this.glyphIterator.index;Object.keys(t).forEach(function(r){var i=t[r];e.glyphIterator.index=n+i.sequenceIndex;var o=e.table.lookupList.get(i.lookupListIndex);Object.keys(o.subTables).forEach(function(t){var n=o.subTables[t];e.applyLookup(o.lookupType,n)})}),this.glyphIterator.index=n}},{key:"coverageIndex",value:function(t,e){switch(null==e&&(e=this.glyphIterator.cur.id),t.version){case 1:return t.glyphs.indexOf(e);case 2:for(var n=0,r=Object.keys(t.rangeRecords);n<r.length;n++){var i=t.rangeRecords[r[n]];if(i.start<=e&&e<=i.end)return i.startCoverageIndex+e-i.start}}return-1}},{key:"match",value:function(t,e,n,r){for(var i=this.glyphIterator.index,o=this.glyphIterator.increment(t),a=0;a<e.length&&o&&n(e[a],o.id);)r&&r.push(this.glyphIterator.index),a++,o=this.glyphIterator.next();return this.glyphIterator.index=i,!(a<e.length)&&(r||!0)}},{key:"sequenceMatches",value:function(t,e){return this.match(t,e,function(t,e){return t===e})}},{key:"sequenceMatchIndices",value:function(t,e){return this.match(t,e,function(t,e){return t===e},[])}},{key:"coverageSequenceMatches",value:function(t,e){var n=this;return this.match(t,e,function(t,e){return n.coverageIndex(t,e)>=0})}},{key:"getClassID",value:function(t,e){switch(e.version){case 1:for(var n=e.startGlyph,r=0,i=Object.keys(e.classValueArray);r<i.length;r++){var o=e.classValueArray[i[r]];if(t===n++)return o}break;case 2:for(var r=0,i=Object.keys(e.classRangeRecord);r<i.length;r++){var a=e.classRangeRecord[i[r]];if(a.start<=t&&t<=a.end)return a.class}}return-1}},{key:"classSequenceMatches",value:function(t,e,n){var r=this;return this.match(t,e,function(t,e){return t===r.getClassID(e,n)})}},{key:"applyContext",value:function(t){switch(t.version){case 1:var e=this.coverageIndex(t.coverage);if(-1===e)return;for(var n=t.ruleSets[e],r=0,i=Object.keys(n);r<i.length;r++){o=n[i[r]];if(this.sequenceMatches(1,o.input))return this.applyLookupList(o.lookupRecords)}break;case 2:if(-1===this.coverageIndex(t.coverage))return;if(-1===(e=this.getClassID(this.glyphIterator.cur.id,t.classDef)))return;n=t.classSet[e];for(var r=0,i=Object.keys(n);r<i.length;r++){var o=n[i[r]];if(this.classSequenceMatches(1,o.classes,t.classDef))return this.applyLookupList(o.lookupRecords)}break;case 3:if(this.coverageSequenceMatches(0,t.coverages))return this.applyLookupList(t.lookupRecords)}}},{key:"applyChainingContext",value:function(t){switch(t.version){case 1:var e=this.coverageIndex(t.coverage);if(-1===e)return;for(var n=t.chainRuleSets[e],r=0,i=Object.keys(n);r<i.length;r++){a=n[i[r]];if(this.sequenceMatches(-a.backtrack.length,a.backtrack)&&this.sequenceMatches(1,a.input)&&this.sequenceMatches(1+a.input.length,a.lookahead))return this.applyLookupList(a.lookupRecords)}break;case 2:if(-1===this.coverageIndex(t.coverage))return;if(-1===(e=this.getClassID(this.glyphIterator.cur.id,t.inputClassDef)))return;for(var o=t.chainClassSet[e],r=0,i=Object.keys(o);r<i.length;r++){var a=o[i[r]];if(this.classSequenceMatches(-a.backtrack.length,a.backtrack,t.backtrackClassDef)&&this.classSequenceMatches(1,a.input,t.inputClassDef)&&this.classSequenceMatches(1+a.input.length,a.lookahead,t.lookaheadClassDef))return this.applyLookupList(a.lookupRecords)}break;case 3:if(this.coverageSequenceMatches(-t.backtrackGlyphCount,t.backtrackCoverage)&&this.coverageSequenceMatches(0,t.inputCoverage)&&this.coverageSequenceMatches(t.inputGlyphCount,t.lookaheadCoverage))return this.applyLookupList(t.lookupRecords)}}}])}(),function(){function t(e){v(this,t),this.font=e,this.glyphInfos=null,this.plan=null}b(t,[{key:"setup",value:function(t,e,n,r){this.glyphInfos=t.map(function(t){return new pt(t.id,[].concat(E(t.codePoints)))});var i=c(n);return this.plan=new ut(this.font,n,r),i.plan(this.plan,this.glyphInfos,e)}},{key:"substitute",value:function(t){return t}},{key:"position",value:function(t,e){return"rtl"===this.plan.direction&&(t.reverse(),e.reverse()),this.GPOSProcessor&&this.GPOSProcessor.features}},{key:"cleanup",value:function(){this.glyphInfos=null,this.plan=null}},{key:"getAvailableFeatures",value:function(t,e){return[]}}])}(),function(){function t(e){v(this,t),this.font=e,this.unicodeLayoutEngine=null}return b(t,[{key:"layout",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],n=arguments[2],r=arguments[3];if("string"==typeof e&&(r=n=e,e=[]),"string"==typeof t){null==n&&(n=s(t));c=this.font.glyphsForString(t)}else{if(null==n){for(var i=[],o=0,a=Object.keys(t);o<a.length;o++){var l=t[a[o]];i.push.apply(i,E(l.codePoints))}n=u(i)}var c=t}if(0===c.length)return new ot(c,[]);c=this.substitute(c,e,n,r);var h=this.position(c,e,n,r);return new ot(c,h)}},{key:"substitute",value:function(t,e,n,r){return t}},{key:"position",value:function(t,e,n,r){var i=t.map(function(t){return new at(t.advanceWidth)});return this.unicodeLayoutEngine||(this.unicodeLayoutEngine=new rt(this.font)),this.unicodeLayoutEngine.positionGlyphs(t,i),i}},{key:"getAvailableFeatures",value:function(t,e){return[]}}]),t}()),vt=function(){function t(){v(this,t),this.commands=[],this._bbox=null,this._cbox=null}return b(t,[{key:"toFunction",value:function(){var t=this.commands.map(function(t){return"  ctx."+t.command+"("+t.args.join(", ")+");"});return new Function("ctx",t.join("\n"))}},{},{key:"cbox",get:function(){if(!this._cbox){for(var t=new it,e=0,n=Object.keys(this.commands);e<n.length;e++)for(var r=this.commands[e],i=0;i<r.args.length;i+=2)t.addPoint(r.args[i],r.args[i+1]);this._cbox=g(t)}return this._cbox}},{key:"bbox",get:function(){if(this._bbox)return this._bbox;for(var t=new it,e=0,n=0,r=function(t){return Math.pow(1-t,3)*w[i]+3*Math.pow(1-t,2)*t*x[i]+3*(1-t)*Math.pow(t,2)*k[i]+Math.pow(t,3)*S[i]},i=0,o=Object.keys(this.commands);i<o.length;i++){var a=this.commands[o[i]];switch(a.command){case"moveTo":case"lineTo":var s=P(a.args,2),u=s[0],l=s[1];t.addPoint(u,l),e=u,n=l;break;case"quadraticCurveTo":case"bezierCurveTo":if("quadraticCurveTo"===a.command)var c=P(a.args,4),h=c[0],f=c[1],d=e+2/3*(h-e),p=n+2/3*(f-n),_=(v=c[2])+2/3*(h-v),y=(b=c[3])+2/3*(f-b);else var m=P(a.args,6),d=m[0],p=m[1],_=m[2],y=m[3],v=m[4],b=m[5];t.addPoint(v,b);for(var w=[e,n],x=[d,p],k=[_,y],S=[v,b],C=0;C<=1;C++){var E=6*w[C]-12*x[C]+6*k[C],A=-3*w[C]+9*x[C]-9*k[C]+3*S[C],i=C;if(a=3*x[C]-3*w[C],0!==A){var j=Math.pow(E,2)-4*a*A;if(!(j<0)){var O=(-E+Math.sqrt(j))/(2*A);0<O&&O<1&&(0===C?t.addPoint(r(O),t.maxY):1===C&&t.addPoint(t.maxX,r(O)));var I=(-E-Math.sqrt(j))/(2*A);0<I&&I<1&&(0===C?t.addPoint(r(I),t.maxY):1===C&&t.addPoint(t.maxX,r(I)))}}else{if(0===E)continue;var T=-a/E;0<T&&T<1&&(0===C?t.addPoint(r(T),t.maxY):1===C&&t.addPoint(t.maxX,r(T)))}}e=v,n=b}}return this._bbox=g(t)}}]),t}(),bt=["moveTo","lineTo","quadraticCurveTo","bezierCurveTo","closePath"],wt=0;wt<bt.length;wt++)!function(){var t=bt[wt];vt.prototype[t]=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return this._bbox=this._cbox=null,this.commands.push({command:t,args:n}),this}}();var xt,kt,St=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"],Ct=(xt=function(){function t(e,n,r){v(this,t),this.id=e,this.codePoints=n,this._font=r,this.isMark=this.codePoints.every(A.isMark),this.isLigature=this.codePoints.length>1}return b(t,[{key:"_getPath",value:function(){return new vt}},{key:"_getCBox",value:function(){return this.path.cbox}},{key:"_getBBox",value:function(){return this.path.bbox}},{key:"_getTableMetrics",value:function(t){if(this.id<t.metrics.length)return t.metrics.get(this.id);var e=t.metrics.get(t.metrics.length-1);return{advance:e?e.advance:0,bearing:t.bearings.get(this.id-t.metrics.length)||0}}},{key:"_getMetrics",value:function(t){if(this._metrics)return this._metrics;var e=this._getTableMetrics(this._font.hmtx),n=e.advance,r=e.bearing,i=void 0;if(void 0!==t&&null!==t||(t=this.cbox),(i=this._font["OS/2"])&&i.version>0)var o=Math.abs(i.typoAscender-i.typoDescender),a=i.typoAscender-t.maxY;else var s=this._font.hhea,o=Math.abs(s.ascent-s.descent),a=s.ascent-t.maxY;return this._metrics={advanceWidth:n,advanceHeight:o,leftBearing:r,topBearing:a}}},{key:"_getName",value:function(){var t=this._font.post;if(!t)return null;switch(t.version){case 1:return St[this.id];case 2:var e=t.glyphNameIndex[this.id];return e<St.length?St[e]:t.names[e-St.length];case 2.5:return St[this.id+t.offsets[this.id]];case 4:return String.fromCharCode(t.map[this.id])}}},{key:"cbox",get:function(){return this._getCBox()}},{key:"bbox",get:function(){return this._getBBox()}},{key:"path",get:function(){return this._getPath()}},{key:"advanceWidth",get:function(){return this._getMetrics().advanceWidth}},{key:"advanceHeight",get:function(){return this._getMetrics().advanceHeight}},{key:"ligatureCaretPositions",get:function(){}},{key:"name",get:function(){return this._getName()}}]),t}(),h(xt.prototype,"cbox",[o],p(xt.prototype,"cbox"),xt.prototype),h(xt.prototype,"bbox",[o],p(xt.prototype,"bbox"),xt.prototype),h(xt.prototype,"path",[o],p(xt.prototype,"path"),xt.prototype),h(xt.prototype,"advanceWidth",[o],p(xt.prototype,"advanceWidth"),xt.prototype),h(xt.prototype,"advanceHeight",[o],p(xt.prototype,"advanceHeight"),xt.prototype),h(xt.prototype,"name",[o],p(xt.prototype,"name"),xt.prototype),xt),Et=new d.Struct({numberOfContours:d.int16,xMin:d.int16,yMin:d.int16,xMax:d.int16,yMax:d.int16}),At=function(){function t(e,n,r,i){var o=arguments.length<=2||void 0===arguments[2]?0:arguments[2],a=arguments.length<=3||void 0===arguments[3]?0:arguments[3];v(this,t),this.onCurve=e,this.endContour=n,this.x=o,this.y=a}return b(t,[{key:"copy",value:function(){return new t(this.onCurve,this.endContour,this.x,this.y)}}]),t}(),Pt=function t(e,n,r){v(this,t),this.glyphID=e,this.dx=n,this.dy=r,this.pos=0,this.scale=this.xScale=this.yScale=this.scale01=this.scale10=null},jt=function(t){function e(){return v(this,e),x(this,(e.__proto__||w(e)).apply(this,arguments))}return k(e,Ct),b(e,[{key:"_getCBox",value:function(t){var e=this._font._getTableStream("glyf");e.pos+=this._font.loca.offsets[this.id];var n=Et.decode(e),r=new it(n.xMin,n.yMin,n.xMax,n.yMax);return g(r)}},{key:"_parseGlyphCoord",value:function(t,e,n,r){if(n){i=t.readUInt8();r||(i=-i),i+=e}else if(r)i=e;else var i=e+t.readInt16BE();return i}},{key:"_decode",value:function(){var t=this._font.loca.offsets[this.id];if(t===this._font.loca.offsets[this.id+1])return null;var e=this._font._getTableStream("glyf");e.pos+=t;var n=e.pos,r=Et.decode(e);return r.numberOfContours>0?this._decodeSimple(r,e):r.numberOfContours<0&&this._decodeComposite(r,e,n),r}},{key:"_decodeSimple",value:function(t,e){t.points=[];for(var n=new d.Array(d.uint16,t.numberOfContours).decode(e),r=(new d.Array(d.uint8,d.uint16).decode(e),[]),i=n[n.length-1]+1;r.length<i;){s=e.readUInt8();if(r.push(s),8&s)for(var o=e.readUInt8(),a=0;a<o;a++)r.push(s)}for(c=0;c<r.length;c++){var s=r[c],u=new At(!!(1&s),n.indexOf(c)>=0,0,0);t.points.push(u)}for(var l=0,c=0;c<r.length;c++){s=r[c];t.points[c].x=l=this._parseGlyphCoord(e,l,2&s,16&s)}for(var h=0,c=0;c<r.length;c++){s=r[c];t.points[c].y=h=this._parseGlyphCoord(e,h,4&s,32&s)}}},{key:"_decodeComposite",value:function(t,e){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2];t.components=[];for(var r=!1,i=32;32&i;){i=e.readUInt16BE();var o=e.pos-n,a=e.readUInt16BE();if(r||(r=0!=(256&i)),1&i)var s=e.readInt16BE(),u=e.readInt16BE();else var s=e.readInt8(),u=e.readInt8();var l=new Pt(a,s,u);l.pos=o,l.scaleX=l.scaleY=1,l.scale01=l.scale10=0,8&i?l.scaleX=l.scaleY=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824:64&i?(l.scaleX=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824,l.scaleY=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824):128&i&&(l.scaleX=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824,l.scale01=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824,l.scale10=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824,l.scaleY=(e.readUInt8()<<24|e.readUInt8()<<16)/1073741824),t.components.push(l)}return r}},{key:"_getPhantomPoints",value:function(t){var e=this._getCBox(!0);null==this._metrics&&(this._metrics=Ct.prototype._getMetrics.call(this,e));var n=this._metrics,r=n.advanceWidth,i=n.advanceHeight,o=n.leftBearing,a=n.topBearing;return[new At(!1,!0,t.xMin-o,0),new At(!1,!0,t.xMin-o+r,0),new At(!1,!0,0,t.yMax+a),new At(!1,!0,0,t.yMax+a+i)]}},{key:"_getContours",value:function(){var t=this._decode();if(!t)return[];if(t.numberOfContours<0)for(var e=[],n=0,r=Object.keys(t.components);n<r.length;n++)for(var i=t.components[r[n]],o=0,a=Object.keys(t.points);o<a.length;o++){c=t.points[r[o]];e.push(new At(c.onCurve,c.endContour,c.x+i.dx,c.y+i.dy))}else e=t.points;for(var s=[],u=[],l=0;l<e.length;l++){var c=e[l];u.push(c),c.endContour&&(s.push(u),u=[])}return s}},{key:"_getMetrics",value:function(){if(this._metrics)return this._metrics;var t=this._getCBox(!0);return S(e.prototype.__proto__||w(e.prototype),"_getMetrics",this).call(this,t),this._metrics}},{key:"_getPath",value:function(){for(var t=this._getContours(),e=new vt,n=0;n<t.length;n++){var r=t[n],i=r[0],o=r[r.length-1],a=0;if(i.onCurve){f=null;a=1}else f=i=o.onCurve?o:new At(!1,!1,(i.x+o.x)/2,(i.y+o.y)/2);e.moveTo(i.x,i.y);for(var s=a;s<r.length;s++){var u=r[s],l=0===s?i:r[s-1];if(l.onCurve&&u.onCurve)e.lineTo(u.x,u.y);else if(l.onCurve&&!u.onCurve)f=u;else if(l.onCurve||u.onCurve){if(l.onCurve||!u.onCurve)throw new Error("Unknown TTF path state");e.quadraticCurveTo(f.x,f.y,u.x,u.y);f=null}else{var c=(l.x+u.x)/2,h=(l.y+u.y)/2;e.quadraticCurveTo(l.x,l.y,c,h);var f=u}}i!==o&&(f?e.quadraticCurveTo(f.x,f.y,i.x,i.y):e.lineTo(i.x,i.y))}return e.closePath(),e}}]),e}(),Ot=function(){function t(e){v(this,t),this.font=e,this.glyphs=[],this.mapping={},this.includeGlyph(0)}return b(t,[{key:"includeGlyph",value:function(t){return"object"===(void 0===t?"undefined":y(t))&&(t=t.id),null==this.mapping[t]&&(this.glyphs.push(t),this.mapping[t]=this.glyphs.length-1),this.mapping[t]}},{key:"encodeStream",value:function(){var t=this,e=new d.EncodeStream;return n.nextTick(function(){return t.encode(e),e.end()}),e}}]),t}(),It=function(t){function e(){return v(this,e),x(this,(e.__proto__||w(e)).apply(this,arguments))}return k(e,Ot),b(e,[{key:"_addGlyph",value:function(t){var e=this.font.getGlyph(t)._decode(),n=this.font.loca.offsets[t],i=this.font.loca.offsets[t+1],o=this.font._getTableStream("glyf");o.pos+=n;var a=o.readBuffer(i-n);if(e&&e.numberOfContours<0){a=new r(a);for(var s=0,u=Object.keys(e.components);s<u.length;s++){var l=e.components[u[s]];t=this.includeGlyph(l.glyphID),a.writeUInt16BE(t,l.pos)}}return this.glyf.push(a),this.loca.offsets.push(this.offset),t<this.font.hmtx.metrics.length?this.hmtx.metrics.push(this.font.hmtx.metrics.get(t)):this.hmtx.metrics.push({advance:this.font.hmtx.metrics.get(this.font.hmtx.metrics.length-1).advance,bearing:this.font.hmtx.bearings.get(t-this.font.hmtx.metrics.length)}),this.offset+=a.length,this.glyf.length-1}},{key:"encode",value:function(t){this.glyf=[],this.offset=0,this.loca={offsets:[]},this.hmtx={metrics:[],bearings:[]};for(var e=0;e<this.glyphs.length;)this._addGlyph(this.glyphs[e++]);var n=j(this.font.maxp);n.numGlyphs=this.glyf.length,this.loca.offsets.push(this.offset),$.loca.preEncode.call(this.loca);var r=j(this.font.head);r.indexToLocFormat=this.loca.version;var i=j(this.font.hhea);i.numberOfMetrics=this.hmtx.metrics.length,et.encode(t,{tables:{head:r,hhea:i,loca:this.loca,maxp:n,"cvt ":this.font["cvt "],prep:this.font.prep,glyf:this.glyf,hmtx:this.hmtx,fpgm:this.font.fpgm}})}}]),e}(),Tt=(kt=function(){function t(e,n){arguments.length<=1||void 0===arguments[1]||arguments[1];v(this,t),this.stream=e,this._directoryPos=this.stream.pos,this._tables={},this._glyphs={},this._decodeDirectory();for(var r in this.directory.tables){var i=this.directory.tables[r];$[r]&&i.length>0&&m(this,r,{get:this._getTable.bind(this,i)})}}return b(t,null,[{key:"probe",value:function(t){var e=t.toString("ascii",0,4);return"true"===e||"OTTO"===e||e===String.fromCharCode(0,1,0,0)}}]),b(t,[{key:"_getTable",value:function(t){if(!(t.tag in this._tables))try{this._tables[t.tag]=this._decodeTable(t)}catch(e){O.logErrors&&(console.error("Error decoding table "+t.tag),console.error(e.stack))}return this._tables[t.tag]}},{key:"_getTableStream",value:function(t){var e=this.directory.tables[t];return e?(this.stream.pos=e.offset,this.stream):null}},{key:"_decodeDirectory",value:function(){return this.directory=et.decode(this.stream,{_startOffset:0})}},{key:"_decodeTable",value:function(t){var e=this.stream.pos,n=this._getTableStream(t.tag),r=$[t.tag].decode(n,this,t.length);return this.stream.pos=e,r}},{key:"getName",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?"English":arguments[1],n=this.name.records[t];return n?n[e]:null}},{key:"hasGlyphForCodePoint",value:function(t){return!!this._cmapProcessor.lookup(t)}},{key:"glyphForCodePoint",value:function(t){return this.getGlyph(this._cmapProcessor.lookup(t),[t])}},{key:"glyphsForString",value:function(t){for(var e=[],n=t.length,r=0;r<n;){var i=t.charCodeAt(r++);if(55296<=i&&i<=56319&&r<n){var o=t.charCodeAt(r);56320<=o&&o<=57343&&(r++,i=((1023&i)<<10)+(1023&o)+65536)}e.push(this.glyphForCodePoint(i))}return e}},{key:"layout",value:function(t,e,n,r){return this._layoutEngine.layout(t,e,n,r)}},{key:"_getBaseGlyph",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?[]:arguments[1];return this._glyphs[t]||this.directory.tables.glyf&&(this._glyphs[t]=new jt(t,e,this)),this._glyphs[t]||null}},{key:"getGlyph",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?[]:arguments[1];return this._glyphs[t]||this._getBaseGlyph(t,e),this._glyphs[t]||null}},{key:"createSubset",value:function(){return new It(this)}},{key:"getVariation",value:function(e){if(!this.directory.tables.fvar||!this.directory.tables.gvar||!this.directory.tables.glyf)throw new Error("Variations require a font with the fvar, gvar, and glyf tables.");if("string"==typeof e&&(e=this.namedVariations[e]),"object"!==(void 0===e?"undefined":y(e)))throw new Error("Variation settings must be either a variation name or settings object.");var n=new d.DecodeStream(this.stream.buffer);n.pos=this._directoryPos;var r=new t(n);return r._tables=this._tables,r}},{key:"getFont",value:function(t){return this.getVariation(t)}},{key:"postscriptName",get:function(){var t=this.name.records.postscriptName;return t[_(t)[0]]}},{key:"fullName",get:function(){return this.getName("fullName")}},{key:"familyName",get:function(){return this.getName("fontFamily")}},{key:"subfamilyName",get:function(){return this.getName("fontSubfamily")}},{key:"copyright",get:function(){return this.getName("copyright")}},{key:"version",get:function(){return this.getName("version")}},{key:"ascent",get:function(){return this.hhea.ascent}},{key:"descent",get:function(){return this.hhea.descent}},{key:"lineGap",get:function(){return this.hhea.lineGap}},{key:"underlinePosition",get:function(){return this.post.underlinePosition}},{key:"underlineThickness",get:function(){return this.post.underlineThickness}},{key:"italicAngle",get:function(){return this.post.italicAngle}},{key:"capHeight",get:function(){var t=this["OS/2"];return t?t.capHeight:this.ascent}},{key:"xHeight",get:function(){var t=this["OS/2"];return t?t.xHeight:0}},{key:"numGlyphs",get:function(){return this.maxp.numGlyphs}},{key:"unitsPerEm",get:function(){return this.head.unitsPerEm}},{key:"bbox",get:function(){return g(new it(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax))}},{key:"_cmapProcessor",get:function(){return new nt(this.cmap)}},{key:"characterSet",get:function(){return this._cmapProcessor.getCharacterSet()}},{key:"_layoutEngine",get:function(){return new mt(this)}},{key:"availableFeatures",get:function(){return this._layoutEngine.getAvailableFeatures()}},{key:"variationAxes",get:function(){return{}}},{key:"namedVariations",get:function(){return{}}}]),t}(),f(kt.prototype,"bbox",[o],p(kt.prototype,"bbox"),kt.prototype),f(kt.prototype,"_cmapProcessor",[o],p(kt.prototype,"_cmapProcessor"),kt.prototype),f(kt.prototype,"characterSet",[o],p(kt.prototype,"characterSet"),kt.prototype),f(kt.prototype,"_layoutEngine",[o],p(kt.prototype,"_layoutEngine"),kt.prototype),kt),Bt=new d.VersionedStruct(d.uint32,{65536:{numFonts:d.uint32,offsets:new d.Array(d.uint32,"numFonts")},131072:{numFonts:d.uint32,offsets:new d.Array(d.uint32,"numFonts"),dsigTag:d.uint32,dsigLength:d.uint32,dsigOffset:d.uint32}}),Lt=function(){function t(e){if(v(this,t),this.stream=e,"ttcf"!==e.readString(4))throw new Error("Not a TrueType collection");this.header=Bt.decode(e)}return b(t,null,[{key:"probe",value:function(t){return"ttcf"===t.toString("ascii",0,4)}}]),b(t,[{key:"getFont",value:function(t){for(var e=0,n=Object.keys(this.header.offsets);e<n.length;e++){var r=this.header.offsets[n[e]],i=new d.DecodeStream(this.stream.buffer);i.pos=r;var o=new Tt(i);if(o.postscriptName===t)return o}return null}},{key:"fonts",get:function(){for(var t=[],e=0,n=Object.keys(this.header.offsets);e<n.length;e++){var r=this.header.offsets[n[e]],i=new d.DecodeStream(this.stream.buffer);i.pos=r,t.push(new Tt(i))}return t}}]),t}(),Rt=new d.String(d.uint8),Mt=(new d.Struct({len:d.uint32,buf:new d.Buffer("len")}),new d.Struct({id:d.uint16,nameOffset:d.int16,attr:d.uint8,dataOffset:d.uint24,handle:d.uint32})),Nt=new d.Struct({name:new d.String(4),maxTypeIndex:d.uint16,refList:new d.Pointer(d.uint16,new d.Array(Mt,function(t){return t.maxTypeIndex+1}),{type:"parent"})}),Dt=new d.Struct({length:d.uint16,types:new d.Array(Nt,function(t){return t.length+1})}),Ft=new d.Struct({reserved:new d.Reserved(d.uint8,24),typeList:new d.Pointer(d.uint16,Dt),nameListOffset:new d.Pointer(d.uint16,"void")}),zt=new d.Struct({dataOffset:d.uint32,map:new d.Pointer(d.uint32,Ft),dataLength:d.uint32,mapLength:d.uint32}),Ut=function(){function t(e){v(this,t),this.stream=e,this.header=zt.decode(this.stream);for(var n=0,r=Object.keys(this.header.map.typeList.types);n<r.length;n++){for(var i=this.header.map.typeList.types[r[n]],o=0,a=Object.keys(i.refList);o<a.length;o++){var s=i.refList[a[o]];s.nameOffset>=0?(this.stream.pos=s.nameOffset+this.header.map.nameListOffset,s.name=Rt.decode(this.stream)):s.name=null}"sfnt"===i.name&&(this.sfnt=i)}}return b(t,null,[{key:"probe",value:function(t){var e=new d.DecodeStream(t);try{var n=zt.decode(e)}catch(t){return!1}for(var r=0,i=Object.keys(n.map.typeList.types);r<i.length;r++)if("sfnt"===n.map.typeList.types[i[r]].name)return!0;return!1}}]),b(t,[{key:"getFont",value:function(t){if(!this.sfnt)return null;for(var e=0,n=Object.keys(this.sfnt.refList);e<n.length;e++){var r=this.sfnt.refList[n[e]],i=this.header.dataOffset+r.dataOffset+4,o=new d.DecodeStream(this.stream.buffer.slice(i)),a=new Tt(o);if(a.postscriptName===t)return a}return null}},{key:"fonts",get:function(){for(var t=[],e=0,n=Object.keys(this.sfnt.refList);e<n.length;e++){var r=this.sfnt.refList[n[e]],i=this.header.dataOffset+r.dataOffset+4,o=new d.DecodeStream(this.stream.buffer.slice(i));t.push(new Tt(o))}return t}}]),t}();O.registerFormat(Tt),O.registerFormat(Lt),O.registerFormat(Ut),e.localExports=O}).call(this,t("_process"),t("buffer").Buffer)},{_process:188,"babel-runtime/core-js/get-iterator":24,"babel-runtime/core-js/object/assign":26,"babel-runtime/core-js/object/define-properties":28,"babel-runtime/core-js/object/define-property":29,"babel-runtime/core-js/object/freeze":30,"babel-runtime/core-js/object/get-own-property-descriptor":31,"babel-runtime/core-js/object/get-prototype-of":32,"babel-runtime/core-js/object/keys":33,"babel-runtime/helpers/classCallCheck":37,"babel-runtime/helpers/createClass":38,"babel-runtime/helpers/get":39,"babel-runtime/helpers/inherits":40,"babel-runtime/helpers/possibleConstructorReturn":41,"babel-runtime/helpers/slicedToArray":42,"babel-runtime/helpers/toConsumableArray":43,"babel-runtime/helpers/typeof":44,buffer:60,clone:61,restructure:199,"restructure/src/utils":215,"tiny-inflate":218,"unicode-properties":220,"unicode-trie":221}],166:[function(t,e,n){n.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},n.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+d]=255&a,d+=p,a/=256,l-=8);t[n+d-p]|=128*g}},{}],167:[function(t,e,n){"function"==typeof Object.create?e.localExports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.localExports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],168:[function(t,e,n){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function i(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}e.localExports=function(t){return null!=t&&(r(t)||i(t)||!!t._isBuffer)}},{}],169:[function(t,e,n){var r={}.toString;e.localExports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},{}],172:[function(t,e,n){(function(){n.OP=0,n.CL=1,n.CP=2,n.QU=3,n.GL=4,n.NS=5,n.EX=6,n.SY=7,n.IS=8,n.PR=9,n.PO=10,n.NU=11,n.AL=12,n.HL=13,n.ID=14,n.IN=15,n.HY=16,n.BA=17,n.BB=18,n.B2=19,n.ZW=20,n.CM=21,n.WJ=22,n.H2=23,n.H3=24,n.JL=25,n.JV=26,n.JT=27,n.RI=28,n.AI=29,n.BK=30,n.CB=31,n.CJ=32,n.CR=33,n.LF=34,n.NL=35,n.SA=36,n.SG=37,n.SP=38,n.XX=39}).call(this)},{}],173:[function(t,e,n){(function(){var n,r,i,o,a,s,u,l,c,h,f,d,p,g,_,y,m,v,b,w,x,k,S,C,E;b=t("unicode-trie");var A=t("buffer").Buffer;k=new b(new A(" ","base64")),C=t("./classes"),o=C.BK,c=C.CR,d=C.LF,g=C.NL,a=C.CB,i=C.BA,v=C.SP,w=C.WJ,v=C.SP,o=C.BK,d=C.LF,g=C.NL,n=C.AI,r=C.AL,y=C.SA,m=C.SG,x=C.XX,u=C.CJ,C.ID,_=C.NS,C.characterClasses,E=t("./pairs"),h=E.DI_BRK,f=E.IN_BRK,s=E.CI_BRK,l=E.CP_BRK,E.PR_BRK,S=E.pairTable,p=function(){function t(t){this.string=t,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null}var e,p,b;return t.prototype.nextCodePoint=function(){var t,e;return t=this.string.charCodeAt(this.pos++),e=this.string.charCodeAt(this.pos),55296<=t&&t<=56319&&56320<=e&&e<=57343?(this.pos++,1024*(t-55296)+(e-56320)+65536):t},p=function(t){switch(t){case n:return r;case y:case m:case x:return r;case u:return _;default:return t}},b=function(t){switch(t){case d:case g:return o;case a:return i;case v:return w;default:return t}},t.prototype.nextCharClass=function(t){return null==t&&(t=!1),p(k.get(this.nextCodePoint()))},e=function(){return function(t,e){this.position=t,this.required=null!=e&&e}}(),t.prototype.nextBreak=function(){var t,n,r;for(null==this.curClass&&(this.curClass=b(this.nextCharClass()));this.pos<this.string.length;){if(this.lastPos=this.pos,n=this.nextClass,this.nextClass=this.nextCharClass(),this.curClass===o||this.curClass===c&&this.nextClass!==d)return this.curClass=b(p(this.nextClass)),new e(this.lastPos,!0);if(null==(t=function(){switch(this.nextClass){case v:return this.curClass;case o:case d:case g:return o;case c:return c;case a:return i}}.call(this))){switch(r=!1,S[this.curClass][this.nextClass]){case h:r=!0;break;case f:r=n===v;break;case s:if(!(r=n===v))continue;break;case l:if(n!==v)continue}if(this.curClass=this.nextClass,r)return new e(this.lastPos)}else if(this.curClass=t,this.nextClass===a)return new e(this.lastPos)}if(this.pos>=this.string.length)return this.lastPos<this.string.length?(this.lastPos=this.string.length,new e(this.string.length)):null},t}(),e.localExports=p}).call(this)},{buffer:60,"./classes":172,"./pairs":174,"unicode-trie":221}],174:[function(t,e,n){(function(){n.DI_BRK=0,n.IN_BRK=1,n.CI_BRK=2,n.CP_BRK=3,n.PR_BRK=4,n.pairTable=[[4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4],[0,4,4,1,1,4,4,4,4,1,1,0,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,1,4,4,4,4,1,1,1,1,1,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[4,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,1,1,4,4,4,0,0,1,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,1,1,4,4,4,0,0,1,1,1,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,1,0,1,1,0,0,4,2,4,1,1,1,1,1,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,0,1,4,4,4,0,0,1,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[0,4,4,1,0,1,4,4,4,0,0,0,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,0,1,1,0,4,4,2,4,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,1,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,1,1,1,1,0,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,1,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,0,1,1,0,0,4,2,4,0,0,0,0,0,1]]}).call(this)},{}],175:[function(t,e,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},o={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],176:[function(t,e,n){e.localExports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},{}],177:[function(t,e,n){e.localExports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],178:[function(t,e,n){var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.localExports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},{}],179:[function(t,e,n){function r(t,e){return t.msg=P[e],e}function i(t){return(t<<1)-(t>4?9:0)}function o(t){for(var e=t.length;--e>=0;)t[e]=0}function a(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(S.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function s(t,e){C._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,a(t.strm)}function u(t,e){t.pending_buf[t.pending++]=e}function l(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function c(t,e,n,r){var i=t.avail_in;return i>r&&(i=r),0===i?0:(t.avail_in-=i,S.arraySet(e,t.input,t.next_in,i,n),1===t.state.wrap?t.adler=E(t.adler,e,i,n):2===t.state.wrap&&(t.adler=A(t.adler,e,i,n)),t.next_in+=i,t.total_in+=i,i)}function h(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-rt?t.strstart-(t.w_size-rt):0,l=t.window,c=t.w_mask,h=t.prev,f=t.strstart+nt,d=l[o+a-1],p=l[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(n=e,l[n+a]===p&&l[n+a-1]===d&&l[n]===l[o]&&l[++n]===l[o+1]){o+=2,n++;do{}while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&o<f);if(r=nt-(f-o),o=f-nt,r>a){if(t.match_start=e,a=r,r>=s)break;d=l[o+a-1],p=l[o+a]}}}while((e=h[e&c])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function f(t){var e,n,r,i,o,a=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-rt)){S.arraySet(t.window,t.window,a,a,0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=a?r-a:0}while(--n);e=n=a;do{r=t.prev[--e],t.prev[e]=r>=a?r-a:0}while(--n);i+=a}if(0===t.strm.avail_in)break;if(n=c(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=et)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+et-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<et)););}while(t.lookahead<rt&&0!==t.strm.avail_in)}function d(t,e){for(var n,r;;){if(t.lookahead<rt){if(f(t),t.lookahead<rt&&e===j)return ft;if(0===t.lookahead)break}if(n=0,t.lookahead>=et&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+et-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-rt&&(t.match_length=h(t,n)),t.match_length>=et)if(r=C._tr_tally(t,t.strstart-t.match_start,t.match_length-et),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=et){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+et-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=C._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(s(t,!1),0===t.strm.avail_out))return ft}return t.insert=t.strstart<et-1?t.strstart:et-1,e===T?(s(t,!0),0===t.strm.avail_out?pt:gt):t.last_lit&&(s(t,!1),0===t.strm.avail_out)?ft:dt}function p(t,e){for(var n,r,i;;){if(t.lookahead<rt){if(f(t),t.lookahead<rt&&e===j)return ft;if(0===t.lookahead)break}if(n=0,t.lookahead>=et&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+et-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=et-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-rt&&(t.match_length=h(t,n),t.match_length<=5&&(t.strategy===z||t.match_length===et&&t.strstart-t.match_start>4096)&&(t.match_length=et-1)),t.prev_length>=et&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-et,r=C._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-et),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+et-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=et-1,t.strstart++,r&&(s(t,!1),0===t.strm.avail_out))return ft}else if(t.match_available){if((r=C._tr_tally(t,0,t.window[t.strstart-1]))&&s(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return ft}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=C._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<et-1?t.strstart:et-1,e===T?(s(t,!0),0===t.strm.avail_out?pt:gt):t.last_lit&&(s(t,!1),0===t.strm.avail_out)?ft:dt}function g(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=nt){if(f(t),t.lookahead<=nt&&e===j)return ft;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=et&&t.strstart>0&&(i=t.strstart-1,(r=a[i])===a[++i]&&r===a[++i]&&r===a[++i])){o=t.strstart+nt;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=nt-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=et?(n=C._tr_tally(t,1,t.match_length-et),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=C._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(s(t,!1),0===t.strm.avail_out))return ft}return t.insert=0,e===T?(s(t,!0),0===t.strm.avail_out?pt:gt):t.last_lit&&(s(t,!1),0===t.strm.avail_out)?ft:dt}function _(t,e){for(var n;;){if(0===t.lookahead&&(f(t),0===t.lookahead)){if(e===j)return ft;break}if(t.match_length=0,n=C._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(s(t,!1),0===t.strm.avail_out))return ft}return t.insert=0,e===T?(s(t,!0),0===t.strm.avail_out?pt:gt):t.last_lit&&(s(t,!1),0===t.strm.avail_out)?ft:dt}function y(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function m(t){t.window_size=2*t.w_size,o(t.head),t.max_lazy_match=k[t.level].max_lazy,t.good_match=k[t.level].good_length,t.nice_match=k[t.level].nice_length,t.max_chain_length=k[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=et-1,t.match_available=0,t.ins_h=0}function v(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=W,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new S.Buf16(2*$),this.dyn_dtree=new S.Buf16(2*(2*J+1)),this.bl_tree=new S.Buf16(2*(2*Q+1)),o(this.dyn_ltree),o(this.dyn_dtree),o(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new S.Buf16(tt+1),this.heap=new S.Buf16(2*X+1),o(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new S.Buf16(2*X+1),o(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function b(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=Z,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?ot:ct,t.adler=2===e.wrap?0:1,e.last_flush=j,C._tr_init(e),L):r(t,M)}function w(t){var e=b(t);return e===L&&m(t.state),e}function x(t,e,n,i,o,a){if(!t)return M;var s=1;if(e===F&&(e=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),o<1||o>Y||n!==W||i<8||i>15||e<0||e>9||a<0||a>H)return r(t,M);8===i&&(i=9);var u=new v;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=i,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+et-1)/et),u.window=new S.Buf8(2*u.w_size),u.head=new S.Buf16(u.hash_size),u.prev=new S.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new S.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=a,u.method=n,w(t)}var k,S=t("../utils/common"),C=t("./trees"),E=t("./adler32"),A=t("./crc32"),P=t("./messages"),j=0,O=1,I=3,T=4,B=5,L=0,R=1,M=-2,N=-3,D=-5,F=-1,z=1,U=2,G=3,H=4,q=0,Z=2,W=8,Y=9,V=15,K=8,X=286,J=30,Q=19,$=2*X+1,tt=15,et=3,nt=258,rt=nt+et+1,it=32,ot=42,at=69,st=73,ut=91,lt=103,ct=113,ht=666,ft=1,dt=2,pt=3,gt=4,_t=3;k=[new y(0,0,0,0,function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(f(t),0===t.lookahead&&e===j)return ft;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,s(t,!1),0===t.strm.avail_out))return ft;if(t.strstart-t.block_start>=t.w_size-rt&&(s(t,!1),0===t.strm.avail_out))return ft}return t.insert=0,e===T?(s(t,!0),0===t.strm.avail_out?pt:gt):(t.strstart>t.block_start&&(s(t,!1),t.strm.avail_out),ft)}),new y(4,4,8,4,d),new y(4,5,16,8,d),new y(4,6,32,32,d),new y(4,4,16,16,p),new y(8,16,32,32,p),new y(8,16,128,128,p),new y(8,32,128,256,p),new y(32,128,258,1024,p),new y(32,258,258,4096,p)],n.deflateInit=function(t,e){return x(t,e,W,V,K,q)},n.deflateInit2=x,n.deflateReset=w,n.deflateResetKeep=b,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?M:(t.state.gzhead=e,L):M},n.deflate=function(t,e){var n,s,c,h;if(!t||!t.state||e>B||e<0)return t?r(t,M):M;if(s=t.state,!t.output||!t.input&&0!==t.avail_in||s.status===ht&&e!==T)return r(t,0===t.avail_out?D:M);if(s.strm=t,n=s.last_flush,s.last_flush=e,s.status===ot)if(2===s.wrap)t.adler=0,u(s,31),u(s,139),u(s,8),s.gzhead?(u(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),u(s,255&s.gzhead.time),u(s,s.gzhead.time>>8&255),u(s,s.gzhead.time>>16&255),u(s,s.gzhead.time>>24&255),u(s,9===s.level?2:s.strategy>=U||s.level<2?4:0),u(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&(u(s,255&s.gzhead.extra.length),u(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(t.adler=A(t.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=at):(u(s,0),u(s,0),u(s,0),u(s,0),u(s,0),u(s,9===s.level?2:s.strategy>=U||s.level<2?4:0),u(s,_t),s.status=ct);else{var f=W+(s.w_bits-8<<4)<<8;f|=(s.strategy>=U||s.level<2?0:s.level<6?1:6===s.level?2:3)<<6,0!==s.strstart&&(f|=it),f+=31-f%31,s.status=ct,l(s,f),0!==s.strstart&&(l(s,t.adler>>>16),l(s,65535&t.adler)),t.adler=1}if(s.status===at)if(s.gzhead.extra){for(c=s.pending;s.gzindex<(65535&s.gzhead.extra.length)&&(s.pending!==s.pending_buf_size||(s.gzhead.hcrc&&s.pending>c&&(t.adler=A(t.adler,s.pending_buf,s.pending-c,c)),a(t),c=s.pending,s.pending!==s.pending_buf_size));)u(s,255&s.gzhead.extra[s.gzindex]),s.gzindex++;s.gzhead.hcrc&&s.pending>c&&(t.adler=A(t.adler,s.pending_buf,s.pending-c,c)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=st)}else s.status=st;if(s.status===st)if(s.gzhead.name){c=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>c&&(t.adler=A(t.adler,s.pending_buf,s.pending-c,c)),a(t),c=s.pending,s.pending===s.pending_buf_size)){h=1;break}h=s.gzindex<s.gzhead.name.length?255&s.gzhead.name.charCodeAt(s.gzindex++):0,u(s,h)}while(0!==h);s.gzhead.hcrc&&s.pending>c&&(t.adler=A(t.adler,s.pending_buf,s.pending-c,c)),0===h&&(s.gzindex=0,s.status=ut)}else s.status=ut;if(s.status===ut)if(s.gzhead.comment){c=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>c&&(t.adler=A(t.adler,s.pending_buf,s.pending-c,c)),a(t),c=s.pending,s.pending===s.pending_buf_size)){h=1;break}h=s.gzindex<s.gzhead.comment.length?255&s.gzhead.comment.charCodeAt(s.gzindex++):0,u(s,h)}while(0!==h);s.gzhead.hcrc&&s.pending>c&&(t.adler=A(t.adler,s.pending_buf,s.pending-c,c)),0===h&&(s.status=lt)}else s.status=lt;if(s.status===lt&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&a(t),s.pending+2<=s.pending_buf_size&&(u(s,255&t.adler),u(s,t.adler>>8&255),t.adler=0,s.status=ct)):s.status=ct),0!==s.pending){if(a(t),0===t.avail_out)return s.last_flush=-1,L}else if(0===t.avail_in&&i(e)<=i(n)&&e!==T)return r(t,D);if(s.status===ht&&0!==t.avail_in)return r(t,D);if(0!==t.avail_in||0!==s.lookahead||e!==j&&s.status!==ht){var d=s.strategy===U?_(s,e):s.strategy===G?g(s,e):k[s.level].func(s,e);if(d!==pt&&d!==gt||(s.status=ht),d===ft||d===pt)return 0===t.avail_out&&(s.last_flush=-1),L;if(d===dt&&(e===O?C._tr_align(s):e!==B&&(C._tr_stored_block(s,0,0,!1),e===I&&(o(s.head),0===s.lookahead&&(s.strstart=0,s.block_start=0,s.insert=0))),a(t),0===t.avail_out))return s.last_flush=-1,L}return e!==T?L:s.wrap<=0?R:(2===s.wrap?(u(s,255&t.adler),u(s,t.adler>>8&255),u(s,t.adler>>16&255),u(s,t.adler>>24&255),u(s,255&t.total_in),u(s,t.total_in>>8&255),u(s,t.total_in>>16&255),u(s,t.total_in>>24&255)):(l(s,t.adler>>>16),l(s,65535&t.adler)),a(t),s.wrap>0&&(s.wrap=-s.wrap),0!==s.pending?L:R)},n.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==ot&&e!==at&&e!==st&&e!==ut&&e!==lt&&e!==ct&&e!==ht?r(t,M):(t.state=null,e===ct?r(t,N):L):M},n.deflateSetDictionary=function(t,e){var n,r,i,a,s,u,l,c,h=e.length;if(!t||!t.state)return M;if(n=t.state,2===(a=n.wrap)||1===a&&n.status!==ot||n.lookahead)return M;for(1===a&&(t.adler=E(t.adler,e,h,0)),n.wrap=0,h>=n.w_size&&(0===a&&(o(n.head),n.strstart=0,n.block_start=0,n.insert=0),c=new S.Buf8(n.w_size),S.arraySet(c,e,h-n.w_size,n.w_size,0),e=c,h=n.w_size),s=t.avail_in,u=t.next_in,l=t.input,t.avail_in=h,t.next_in=0,t.input=e,f(n);n.lookahead>=et;){r=n.strstart,i=n.lookahead-(et-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+et-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=et-1,f(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=et-1,n.match_available=0,t.next_in=u,t.input=l,t.avail_in=s,n.wrap=a,L},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":175,"./adler32":176,"./crc32":178,"./messages":183,"./trees":184}],180:[function(t,e,n){e.localExports=function(t,e){var n,r,i,o,a,s,u,l,c,h,f,d,p,g,_,y,m,v,b,w,x,k,S,C,E;n=t.state,r=t.next_in,C=t.input,i=r+(t.avail_in-5),o=t.next_out,E=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=n.dmax,l=n.wsize,c=n.whave,h=n.wnext,f=n.window,d=n.hold,p=n.bits,g=n.lencode,_=n.distcode,y=(1<<n.lenbits)-1,m=(1<<n.distbits)-1;t:do{p<15&&(d+=C[r++]<<p,p+=8,d+=C[r++]<<p,p+=8),v=g[d&y];e:for(;;){if(b=v>>>24,d>>>=b,p-=b,0===(b=v>>>16&255))E[o++]=65535&v;else{if(!(16&b)){if(0==(64&b)){v=g[(65535&v)+(d&(1<<b)-1)];continue e}if(32&b){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&v,(b&=15)&&(p<b&&(d+=C[r++]<<p,p+=8),w+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=C[r++]<<p,p+=8,d+=C[r++]<<p,p+=8),v=_[d&m];n:for(;;){if(b=v>>>24,d>>>=b,p-=b,!(16&(b=v>>>16&255))){if(0==(64&b)){v=_[(65535&v)+(d&(1<<b)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&v,b&=15,p<b&&(d+=C[r++]<<p,(p+=8)<b&&(d+=C[r++]<<p,p+=8)),(x+=d&(1<<b)-1)>u){t.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=b,p-=b,b=o-a,x>b){if((b=x-b)>c&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=0,S=f,0===h){if(k+=l-b,b<w){w-=b;do{E[o++]=f[k++]}while(--b);k=o-x,S=E}}else if(h<b){if(k+=l+h-b,(b-=h)<w){w-=b;do{E[o++]=f[k++]}while(--b);if(k=0,h<w){w-=b=h;do{E[o++]=f[k++]}while(--b);k=o-x,S=E}}}else if(k+=h-b,b<w){w-=b;do{E[o++]=f[k++]}while(--b);k=o-x,S=E}for(;w>2;)E[o++]=S[k++],E[o++]=S[k++],E[o++]=S[k++],w-=3;w&&(E[o++]=S[k++],w>1&&(E[o++]=S[k++]))}else{k=o-x;do{E[o++]=E[k++],E[o++]=E[k++],E[o++]=E[k++],w-=3}while(w>2);w&&(E[o++]=E[k++],w>1&&(E[o++]=E[k++]))}break}}break}}while(r<i&&o<s);r-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=d,n.bits=p}},{}],181:[function(t,e,n){function r(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function i(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new d.Buf16(320),this.work=new d.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function o(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=T,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new d.Buf32(ct),e.distcode=e.distdyn=new d.Buf32(ht),e.sane=1,e.back=-1,S):A}function a(t){var e;return t&&t.state?(e=t.state,e.wsize=0,e.whave=0,e.wnext=0,o(t)):A}function s(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?A:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,a(t))):A}function u(t,e){var n,r;return t?(r=new i,t.state=r,r.window=null,(n=s(t,e))!==S&&(t.state=null),n):A}function l(t){if(dt){var e;for(h=new d.Buf32(512),f=new d.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(y(v,t.lens,0,288,h,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;y(b,t.lens,0,32,f,0,t.work,{bits:5}),dt=!1}t.lencode=h,t.lenbits=9,t.distcode=f,t.distbits=5}function c(t,e,n,r){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new d.Buf8(o.wsize)),r>=o.wsize?(d.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),d.arraySet(o.window,e,n-r,i,o.wnext),(r-=i)?(d.arraySet(o.window,e,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}var h,f,d=t("../utils/common"),p=t("./adler32"),g=t("./crc32"),_=t("./inffast"),y=t("./inftrees"),m=0,v=1,b=2,w=4,x=5,k=6,S=0,C=1,E=2,A=-2,P=-3,j=-4,O=-5,I=8,T=1,B=2,L=3,R=4,M=5,N=6,D=7,F=8,z=9,U=10,G=11,H=12,q=13,Z=14,W=15,Y=16,V=17,K=18,X=19,J=20,Q=21,$=22,tt=23,et=24,nt=25,rt=26,it=27,ot=28,at=29,st=30,ut=31,lt=32,ct=852,ht=592,ft=15,dt=!0;n.inflateReset=a,n.inflateReset2=s,n.inflateResetKeep=o,n.inflateInit=function(t){return u(t,ft)},n.inflateInit2=u,n.inflate=function(t,e){var n,i,o,a,s,u,h,f,ct,ht,ft,dt,pt,gt,_t,yt,mt,vt,bt,wt,xt,kt,St,Ct,Et=0,At=new d.Buf8(4),Pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return A;(n=t.state).mode===H&&(n.mode=q),s=t.next_out,o=t.output,h=t.avail_out,a=t.next_in,i=t.input,u=t.avail_in,f=n.hold,ct=n.bits,ht=u,ft=h,kt=S;t:for(;;)switch(n.mode){case T:if(0===n.wrap){n.mode=q;break}for(;ct<16;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}if(2&n.wrap&&35615===f){n.check=0,At[0]=255&f,At[1]=f>>>8&255,n.check=g(n.check,At,2,0),f=0,ct=0,n.mode=B;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&f)<<8)+(f>>8))%31){t.msg="incorrect header check",n.mode=st;break}if((15&f)!==I){t.msg="unknown compression method",n.mode=st;break}if(f>>>=4,ct-=4,xt=8+(15&f),0===n.wbits)n.wbits=xt;else if(xt>n.wbits){t.msg="invalid window size",n.mode=st;break}n.dmax=1<<xt,t.adler=n.check=1,n.mode=512&f?U:H,f=0,ct=0;break;case B:for(;ct<16;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}if(n.flags=f,(255&n.flags)!==I){t.msg="unknown compression method",n.mode=st;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=st;break}n.head&&(n.head.text=f>>8&1),512&n.flags&&(At[0]=255&f,At[1]=f>>>8&255,n.check=g(n.check,At,2,0)),f=0,ct=0,n.mode=L;case L:for(;ct<32;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}n.head&&(n.head.time=f),512&n.flags&&(At[0]=255&f,At[1]=f>>>8&255,At[2]=f>>>16&255,At[3]=f>>>24&255,n.check=g(n.check,At,4,0)),f=0,ct=0,n.mode=R;case R:for(;ct<16;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}n.head&&(n.head.xflags=255&f,n.head.os=f>>8),512&n.flags&&(At[0]=255&f,At[1]=f>>>8&255,n.check=g(n.check,At,2,0)),f=0,ct=0,n.mode=M;case M:if(1024&n.flags){for(;ct<16;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}n.length=f,n.head&&(n.head.extra_len=f),512&n.flags&&(At[0]=255&f,At[1]=f>>>8&255,n.check=g(n.check,At,2,0)),f=0,ct=0}else n.head&&(n.head.extra=null);n.mode=N;case N:if(1024&n.flags&&((dt=n.length)>u&&(dt=u),dt&&(n.head&&(xt=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),d.arraySet(n.head.extra,i,a,dt,xt)),512&n.flags&&(n.check=g(n.check,i,dt,a)),u-=dt,a+=dt,n.length-=dt),n.length))break t;n.length=0,n.mode=D;case D:if(2048&n.flags){if(0===u)break t;dt=0;do{xt=i[a+dt++],n.head&&xt&&n.length<65536&&(n.head.name+=String.fromCharCode(xt))}while(xt&&dt<u);if(512&n.flags&&(n.check=g(n.check,i,dt,a)),u-=dt,a+=dt,xt)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=F;case F:if(4096&n.flags){if(0===u)break t;dt=0;do{xt=i[a+dt++],n.head&&xt&&n.length<65536&&(n.head.comment+=String.fromCharCode(xt))}while(xt&&dt<u);if(512&n.flags&&(n.check=g(n.check,i,dt,a)),u-=dt,a+=dt,xt)break t}else n.head&&(n.head.comment=null);n.mode=z;case z:if(512&n.flags){for(;ct<16;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}if(f!==(65535&n.check)){t.msg="header crc mismatch",n.mode=st;break}f=0,ct=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=H;break;case U:for(;ct<32;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}t.adler=n.check=r(f),f=0,ct=0,n.mode=G;case G:if(0===n.havedict)return t.next_out=s,t.avail_out=h,t.next_in=a,t.avail_in=u,n.hold=f,n.bits=ct,E;t.adler=n.check=1,n.mode=H;case H:if(e===x||e===k)break t;case q:if(n.last){f>>>=7&ct,ct-=7&ct,n.mode=it;break}for(;ct<3;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}switch(n.last=1&f,f>>>=1,ct-=1,3&f){case 0:n.mode=Z;break;case 1:if(l(n),n.mode=J,e===k){f>>>=2,ct-=2;break t}break;case 2:n.mode=V;break;case 3:t.msg="invalid block type",n.mode=st}f>>>=2,ct-=2;break;case Z:for(f>>>=7&ct,ct-=7&ct;ct<32;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}if((65535&f)!=(f>>>16^65535)){t.msg="invalid stored block lengths",n.mode=st;break}if(n.length=65535&f,f=0,ct=0,n.mode=W,e===k)break t;case W:n.mode=Y;case Y:if(dt=n.length){if(dt>u&&(dt=u),dt>h&&(dt=h),0===dt)break t;d.arraySet(o,i,a,dt,s),u-=dt,a+=dt,h-=dt,s+=dt,n.length-=dt;break}n.mode=H;break;case V:for(;ct<14;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}if(n.nlen=257+(31&f),f>>>=5,ct-=5,n.ndist=1+(31&f),f>>>=5,ct-=5,n.ncode=4+(15&f),f>>>=4,ct-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=st;break}n.have=0,n.mode=K;case K:for(;n.have<n.ncode;){for(;ct<3;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}n.lens[Pt[n.have++]]=7&f,f>>>=3,ct-=3}for(;n.have<19;)n.lens[Pt[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,St={bits:n.lenbits},kt=y(m,n.lens,0,19,n.lencode,0,n.work,St),n.lenbits=St.bits,kt){t.msg="invalid code lengths set",n.mode=st;break}n.have=0,n.mode=X;case X:for(;n.have<n.nlen+n.ndist;){for(;Et=n.lencode[f&(1<<n.lenbits)-1],_t=Et>>>24,yt=Et>>>16&255,mt=65535&Et,!(_t<=ct);){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}if(mt<16)f>>>=_t,ct-=_t,n.lens[n.have++]=mt;else{if(16===mt){for(Ct=_t+2;ct<Ct;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}if(f>>>=_t,ct-=_t,0===n.have){t.msg="invalid bit length repeat",n.mode=st;break}xt=n.lens[n.have-1],dt=3+(3&f),f>>>=2,ct-=2}else if(17===mt){for(Ct=_t+3;ct<Ct;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}ct-=_t,xt=0,dt=3+(7&(f>>>=_t)),f>>>=3,ct-=3}else{for(Ct=_t+7;ct<Ct;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}ct-=_t,xt=0,dt=11+(127&(f>>>=_t)),f>>>=7,ct-=7}if(n.have+dt>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=st;break}for(;dt--;)n.lens[n.have++]=xt}}if(n.mode===st)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=st;break}if(n.lenbits=9,St={bits:n.lenbits},kt=y(v,n.lens,0,n.nlen,n.lencode,0,n.work,St),n.lenbits=St.bits,kt){t.msg="invalid literal/lengths set",n.mode=st;break}if(n.distbits=6,n.distcode=n.distdyn,St={bits:n.distbits},kt=y(b,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,St),n.distbits=St.bits,kt){t.msg="invalid distances set",n.mode=st;break}if(n.mode=J,e===k)break t;case J:n.mode=Q;case Q:if(u>=6&&h>=258){t.next_out=s,t.avail_out=h,t.next_in=a,t.avail_in=u,n.hold=f,n.bits=ct,_(t,ft),s=t.next_out,o=t.output,h=t.avail_out,a=t.next_in,i=t.input,u=t.avail_in,f=n.hold,ct=n.bits,n.mode===H&&(n.back=-1);break}for(n.back=0;Et=n.lencode[f&(1<<n.lenbits)-1],_t=Et>>>24,yt=Et>>>16&255,mt=65535&Et,!(_t<=ct);){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}if(yt&&0==(240&yt)){for(vt=_t,bt=yt,wt=mt;Et=n.lencode[wt+((f&(1<<vt+bt)-1)>>vt)],_t=Et>>>24,yt=Et>>>16&255,mt=65535&Et,!(vt+_t<=ct);){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}f>>>=vt,ct-=vt,n.back+=vt}if(f>>>=_t,ct-=_t,n.back+=_t,n.length=mt,0===yt){n.mode=rt;break}if(32&yt){n.back=-1,n.mode=H;break}if(64&yt){t.msg="invalid literal/length code",n.mode=st;break}n.extra=15&yt,n.mode=$;case $:if(n.extra){for(Ct=n.extra;ct<Ct;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}n.length+=f&(1<<n.extra)-1,f>>>=n.extra,ct-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=tt;case tt:for(;Et=n.distcode[f&(1<<n.distbits)-1],_t=Et>>>24,yt=Et>>>16&255,mt=65535&Et,!(_t<=ct);){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}if(0==(240&yt)){for(vt=_t,bt=yt,wt=mt;Et=n.distcode[wt+((f&(1<<vt+bt)-1)>>vt)],_t=Et>>>24,yt=Et>>>16&255,mt=65535&Et,!(vt+_t<=ct);){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}f>>>=vt,ct-=vt,n.back+=vt}if(f>>>=_t,ct-=_t,n.back+=_t,64&yt){t.msg="invalid distance code",n.mode=st;break}n.offset=mt,n.extra=15&yt,n.mode=et;case et:if(n.extra){for(Ct=n.extra;ct<Ct;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}n.offset+=f&(1<<n.extra)-1,f>>>=n.extra,ct-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=st;break}n.mode=nt;case nt:if(0===h)break t;if(dt=ft-h,n.offset>dt){if((dt=n.offset-dt)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=st;break}dt>n.wnext?(dt-=n.wnext,pt=n.wsize-dt):pt=n.wnext-dt,dt>n.length&&(dt=n.length),gt=n.window}else gt=o,pt=s-n.offset,dt=n.length;dt>h&&(dt=h),h-=dt,n.length-=dt;do{o[s++]=gt[pt++]}while(--dt);0===n.length&&(n.mode=Q);break;case rt:if(0===h)break t;o[s++]=n.length,h--,n.mode=Q;break;case it:if(n.wrap){for(;ct<32;){if(0===u)break t;u--,f|=i[a++]<<ct,ct+=8}if(ft-=h,t.total_out+=ft,n.total+=ft,ft&&(t.adler=n.check=n.flags?g(n.check,o,ft,s-ft):p(n.check,o,ft,s-ft)),ft=h,(n.flags?f:r(f))!==n.check){t.msg="incorrect data check",n.mode=st;break}f=0,ct=0}n.mode=ot;case ot:if(n.wrap&&n.flags){for(;ct<32;){if(0===u)break t;u--,f+=i[a++]<<ct,ct+=8}if(f!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=st;break}f=0,ct=0}n.mode=at;case at:kt=C;break t;case st:kt=P;break t;case ut:return j;case lt:default:return A}return t.next_out=s,t.avail_out=h,t.next_in=a,t.avail_in=u,n.hold=f,n.bits=ct,(n.wsize||ft!==t.avail_out&&n.mode<st&&(n.mode<it||e!==w))&&c(t,t.output,t.next_out,ft-t.avail_out)?(n.mode=ut,j):(ht-=t.avail_in,ft-=t.avail_out,t.total_in+=ht,t.total_out+=ft,n.total+=ft,n.wrap&&ft&&(t.adler=n.check=n.flags?g(n.check,o,ft,t.next_out-ft):p(n.check,o,ft,t.next_out-ft)),t.data_type=n.bits+(n.last?64:0)+(n.mode===H?128:0)+(n.mode===J||n.mode===W?256:0),(0===ht&&0===ft||e===w)&&kt===S&&(kt=O),kt)},n.inflateEnd=function(t){if(!t||!t.state)return A;var e=t.state;return e.window&&(e.window=null),t.state=null,S},n.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?A:(n.head=e,e.done=!1,S):A},n.inflateSetDictionary=function(t,e){var n,r,i=e.length;return t&&t.state?0!==(n=t.state).wrap&&n.mode!==G?A:n.mode===G&&(r=1,(r=p(r,e,i,0))!==n.check)?P:c(t,e,i,i)?(n.mode=ut,j):(n.havedict=1,S):A},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":175,"./adler32":176,"./crc32":178,"./inffast":180,"./inftrees":182}],182:[function(t,e,n){var r=t("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.localExports=function(t,e,n,u,l,c,h,f){var d,p,g,_,y,m,v,b,w,x=f.bits,k=0,S=0,C=0,E=0,A=0,P=0,j=0,O=0,I=0,T=0,B=null,L=0,R=new r.Buf16(16),M=new r.Buf16(16),N=null,D=0;for(k=0;k<=15;k++)R[k]=0;for(S=0;S<u;S++)R[e[n+S]]++;for(A=x,E=15;E>=1&&0===R[E];E--);if(A>E&&(A=E),0===E)return l[c++]=20971520,l[c++]=20971520,f.bits=1,0;for(C=1;C<E&&0===R[C];C++);for(A<C&&(A=C),O=1,k=1;k<=15;k++)if(O<<=1,(O-=R[k])<0)return-1;if(O>0&&(0===t||1!==E))return-1;for(M[1]=0,k=1;k<15;k++)M[k+1]=M[k]+R[k];for(S=0;S<u;S++)0!==e[n+S]&&(h[M[e[n+S]]++]=S);if(0===t?(B=N=h,m=19):1===t?(B=i,L-=257,N=o,D-=257,m=256):(B=a,N=s,m=-1),T=0,S=0,k=C,y=c,P=A,j=0,g=-1,I=1<<A,_=I-1,1===t&&I>852||2===t&&I>592)return 1;for(;;){0,v=k-j,h[S]<m?(b=0,w=h[S]):h[S]>m?(b=N[D+h[S]],w=B[L+h[S]]):(b=96,w=0),d=1<<k-j,C=p=1<<P;do{l[y+(T>>j)+(p-=d)]=v<<24|b<<16|w|0}while(0!==p);for(d=1<<k-1;T&d;)d>>=1;if(0!==d?(T&=d-1,T+=d):T=0,S++,0==--R[k]){if(k===E)break;k=e[n+h[S]]}if(k>A&&(T&_)!==g){for(0===j&&(j=A),y+=C,O=1<<(P=k-j);P+j<E&&!((O-=R[P+j])<=0);)P++,O<<=1;if(I+=1<<P,1===t&&I>852||2===t&&I>592)return 1;l[g=T&_]=A<<24|P<<16|y-c|0}}return 0!==T&&(l[y+T]=k-j<<24|64<<16|0),f.bits=A,0}},{"../utils/common":175}],183:[function(t,e,n){e.localExports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],184:[function(t,e,n){function r(t){for(var e=t.length;--e>=0;)t[e]=0}function i(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function o(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function a(t){return t<256?et[t]:et[256+(t>>>7)]}function s(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function u(t,e,n){t.bi_valid>H-n?(t.bi_buf|=e<<t.bi_valid&65535,s(t,t.bi_buf),t.bi_buf=e>>H-t.bi_valid,t.bi_valid+=n-H):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function l(t,e,n){u(t,n[2*e],n[2*e+1])}function c(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function h(t){16===t.bi_valid?(s(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}function f(t,e){var n,r,i,o,a,s,u=e.dyn_tree,l=e.max_code,c=e.stat_desc.static_tree,h=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(o=0;o<=G;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<U;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,g++),u[2*r+1]=o,r>l||(t.bl_count[o]++,a=0,r>=d&&(a=f[r-d]),s=u[2*r],t.opt_len+=s*(o+a),h&&(t.static_len+=s*(c[2*r+1]+a)));if(0!==g){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>l||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}function d(t,e,n){var r,i,o=new Array(G+1),a=0;for(r=1;r<=G;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=c(o[s]++,s))}}function p(){var t,e,n,r,o,a=new Array(G+1);for(n=0,r=0;r<M-1;r++)for(rt[r]=n,t=0;t<1<<K[r];t++)nt[n++]=r;for(nt[n-1]=r,o=0,r=0;r<16;r++)for(it[r]=o,t=0;t<1<<X[r];t++)et[o++]=r;for(o>>=7;r<F;r++)for(it[r]=o<<7,t=0;t<1<<X[r]-7;t++)et[256+o++]=r;for(e=0;e<=G;e++)a[e]=0;for(t=0;t<=143;)$[2*t+1]=8,t++,a[8]++;for(;t<=255;)$[2*t+1]=9,t++,a[9]++;for(;t<=279;)$[2*t+1]=7,t++,a[7]++;for(;t<=287;)$[2*t+1]=8,t++,a[8]++;for(d($,D+1,a),t=0;t<F;t++)tt[2*t+1]=5,tt[2*t]=c(t,5);ot=new i($,K,N+1,D,G),at=new i(tt,X,0,F,G),st=new i(new Array(0),J,0,z,q)}function g(t){var e;for(e=0;e<D;e++)t.dyn_ltree[2*e]=0;for(e=0;e<F;e++)t.dyn_dtree[2*e]=0;for(e=0;e<z;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*Z]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function _(t){t.bi_valid>8?s(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function y(t,e,n,r){_(t),r&&(s(t,n),s(t,~n)),P.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}function m(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function v(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&m(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!m(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function b(t,e,n){var r,i,o,s,c=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*c]<<8|t.pending_buf[t.d_buf+2*c+1],i=t.pending_buf[t.l_buf+c],c++,0===r?l(t,i,e):(l(t,(o=nt[i])+N+1,e),0!==(s=K[o])&&u(t,i-=rt[o],s),l(t,o=a(--r),n),0!==(s=X[o])&&u(t,r-=it[o],s))}while(c<t.last_lit);l(t,Z,e)}function w(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,l=-1;for(t.heap_len=0,t.heap_max=U,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=l=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=l<2?++l:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=l,n=t.heap_len>>1;n>=1;n--)v(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],v(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,v(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],f(t,e),d(o,l,t.bl_count)}function x(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<l?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*W]++):s<=10?t.bl_tree[2*Y]++:t.bl_tree[2*V]++,s=0,o=i,0===a?(u=138,l=3):i===a?(u=6,l=3):(u=7,l=4))}function k(t,e,n){var r,i,o=-1,a=e[1],s=0,c=7,h=4;for(0===a&&(c=138,h=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<c&&i===a)){if(s<h)do{l(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(l(t,i,t.bl_tree),s--),l(t,W,t.bl_tree),u(t,s-3,2)):s<=10?(l(t,Y,t.bl_tree),u(t,s-3,3)):(l(t,V,t.bl_tree),u(t,s-11,7));s=0,o=i,0===a?(c=138,h=3):i===a?(c=6,h=3):(c=7,h=4)}}function S(t){var e;for(x(t,t.dyn_ltree,t.l_desc.max_code),x(t,t.dyn_dtree,t.d_desc.max_code),w(t,t.bl_desc),e=z-1;e>=3&&0===t.bl_tree[2*Q[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}function C(t,e,n,r){var i;for(u(t,e-257,5),u(t,n-1,5),u(t,r-4,4),i=0;i<r;i++)u(t,t.bl_tree[2*Q[i]+1],3);k(t,t.dyn_ltree,e-1),k(t,t.dyn_dtree,n-1)}function E(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return O;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return I;for(e=32;e<N;e++)if(0!==t.dyn_ltree[2*e])return I;return O}function A(t,e,n,r){u(t,(B<<1)+(r?1:0),3),y(t,e,n,!0)}var P=t("../utils/common"),j=4,O=0,I=1,T=2,B=0,L=1,R=2,M=29,N=256,D=N+1+M,F=30,z=19,U=2*D+1,G=15,H=16,q=7,Z=256,W=16,Y=17,V=18,K=[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],X=[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],J=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=new Array(2*(D+2));r($);var tt=new Array(2*F);r(tt);var et=new Array(512);r(et);var nt=new Array(256);r(nt);var rt=new Array(M);r(rt);var it=new Array(F);r(it);var ot,at,st,ut=!1;n._tr_init=function(t){ut||(p(),ut=!0),t.l_desc=new o(t.dyn_ltree,ot),t.d_desc=new o(t.dyn_dtree,at),t.bl_desc=new o(t.bl_tree,st),t.bi_buf=0,t.bi_valid=0,g(t)},n._tr_stored_block=A,n._tr_flush_block=function(t,e,n,r){var i,o,a=0;t.level>0?(t.strm.data_type===T&&(t.strm.data_type=E(t)),w(t,t.l_desc),w(t,t.d_desc),a=S(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?A(t,e,n,r):t.strategy===j||o===i?(u(t,(L<<1)+(r?1:0),3),b(t,$,tt)):(u(t,(R<<1)+(r?1:0),3),C(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),b(t,t.dyn_ltree,t.dyn_dtree)),g(t),r&&_(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(nt[n]+N+1)]++,t.dyn_dtree[2*a(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){u(t,L<<1,3),l(t,Z,$),h(t)}},{"../utils/common":175}],185:[function(t,e,n){e.localExports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],186:[function(t,e,n){(function(n){(function(){var r,i;r=t("fs"),i=t("zlib"),e.localExports=function(){function t(t){var e,r,i,o,a,s,u,l,c,h;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.text={};;){switch(e=this.readUInt32(),function(){var t,e;for(e=[],i=t=0;t<4;i=++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.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"PLTE":this.palette=this.read(e);break;case"IDAT":for(i=l=0;l<e;i=l+=1)this.imgData.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(this.transparency.indexed=this.read(e),(s=255-this.transparency.indexed.length)>0)for(i=c=0;0<=s?c<s:c>s;i=0<=s?++c:--c)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":o=(u=this.read(e)).indexOf(0),a=String.fromCharCode.apply(String,u.slice(0,o)),this.text[a]=String.fromCharCode.apply(String,u.slice(o+1));break;case"IEND":return 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===(h=this.colorType)||6===h,r=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*r,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new n(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}return t.decode=function(e,n){return r.readFile(e,function(e,r){return new t(r).decode(function(t){return n(t)})})},t.load=function(e){var n;return n=r.readFileSync(e),new t(n)},t.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},t.prototype.readUInt32=function(){var t,e,n,r;return t=this.data[this.pos++]<<24,e=this.data[this.pos++]<<16,n=this.data[this.pos++]<<8,r=this.data[this.pos++],t|e|n|r},t.prototype.readUInt16=function(){var t,e;return t=this.data[this.pos++]<<8,e=this.data[this.pos++],t|e},t.prototype.decodePixels=function(t){var e=this;return i.inflate(this.imgData,function(r,i){var o,a,s,u,l,c,h,f,d,p,g,_,y,m,v,b,w,x,k,S,C,E,A;if(r)throw r;for(b=(_=e.pixelBitlength/8)*e.width,y=new n(b*e.height),c=i.length,v=0,m=0,a=0;m<c;){switch(i[m++]){case 0:for(u=k=0;k<b;u=k+=1)y[a++]=i[m++];break;case 1:for(u=S=0;S<b;u=S+=1)o=i[m++],l=u<_?0:y[a-_],y[a++]=(o+l)%256;break;case 2:for(u=C=0;C<b;u=C+=1)o=i[m++],s=(u-u%_)/_,w=v&&y[(v-1)*b+s*_+u%_],y[a++]=(w+o)%256;break;case 3:for(u=E=0;E<b;u=E+=1)o=i[m++],s=(u-u%_)/_,l=u<_?0:y[a-_],w=v&&y[(v-1)*b+s*_+u%_],y[a++]=(o+Math.floor((l+w)/2))%256;break;case 4:for(u=A=0;A<b;u=A+=1)o=i[m++],s=(u-u%_)/_,l=u<_?0:y[a-_],0===v?w=x=0:(w=y[(v-1)*b+s*_+u%_],x=s&&y[(v-1)*b+(s-1)*_+u%_]),h=l+w-x,f=Math.abs(h-l),p=Math.abs(h-w),g=Math.abs(h-x),d=f<=p&&f<=g?l:p<=g?w:x,y[a++]=(o+d)%256;break;default:throw new Error("Invalid filter algorithm: "+i[m-1])}v++}return t(y)})},t.prototype.decodePalette=function(){var t,e,r,i,o,a,s,u,l;for(r=this.palette,a=this.transparency.indexed||[],o=new n(a.length+r.length),i=0,r.length,t=0,e=s=0,u=r.length;s<u;e=s+=3)o[i++]=r[e],o[i++]=r[e+1],o[i++]=r[e+2],o[i++]=null!=(l=a[t++])?l:255;return o},t.prototype.copyToImageData=function(t,e){var n,r,i,o,a,s,u,l,c,h,f;if(r=this.colors,c=null,n=this.hasAlphaChannel,this.palette.length&&(c=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),r=4,n=!0),i=(null!=t?t.data:void 0)||t,l=i.length,a=c||e,o=s=0,1===r)for(;o<l;)u=c?4*e[o/4]:s,h=a[u++],i[o++]=h,i[o++]=h,i[o++]=h,i[o++]=n?a[u++]:255,s=u;else for(;o<l;)u=c?4*e[o/4]:s,i[o++]=a[u++],i[o++]=a[u++],i[o++]=a[u++],i[o++]=n?a[u++]:255,s=u},t.prototype.decode=function(t){var e,r=this;return e=new n(this.width*this.height*4),this.decodePixels(function(n){return r.copyToImageData(e,n),t(e)})},t}()}).call(this)}).call(this,t("buffer").Buffer)},{buffer:60,fs:59,zlib:58}],187:[function(t,e,n){(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.localExports=function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,i)});default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick(function(){e.apply(null,o)})}}:e.localExports=t.nextTick}).call(this,t("_process"))},{_process:188}],188:[function(t,e,n){function r(t){if(l===setTimeout)return setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function i(t){if(c===clearTimeout)return clearTimeout(t);try{return c(t)}catch(e){try{return c.call(null,t)}catch(e){return c.call(this,t)}}}function o(){p&&f&&(p=!1,f.length?d=f.concat(d):g=-1,d.length&&a())}function a(){if(!p){var t=r(o);p=!0;for(var e=d.length;e;){for(f=d,d=[];++g<e;)f&&f[g].run();g=-1,e=d.length}f=null,p=!1,i(t)}}function s(t,e){this.fun=t,this.array=e}function u(){}var l,c,h=e.localExports={};!function(){try{l=setTimeout}catch(t){l=function(){throw new Error("setTimeout is not defined")}}try{c=clearTimeout}catch(t){c=function(){throw new Error("clearTimeout is not defined")}}}();var f,d=[],p=!1,g=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new s(t,e)),1!==d.length||p||r(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=u,h.addListener=u,h.once=u,h.off=u,h.removeListener=u,h.removeAllListeners=u,h.emit=u,h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}],189:[function(t,e,n){e.localExports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":190}],190:[function(t,e,n){function r(t){if(!(this instanceof r))return new r(t);l.call(this,t),c.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||s(o,this)}function o(t){t.end()}var a=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};e.localExports=r;var s=t("process-nextick-args"),u=t("core-util-is");u.inherits=t("inherits");var l=t("./_stream_readable"),c=t("./_stream_writable");u.inherits(r,l);for(var h=a(c.prototype),f=0;f<h.length;f++){var d=h[f];r.prototype[d]||(r.prototype[d]=c.prototype[d])}},{"./_stream_readable":192,"./_stream_writable":194,"core-util-is":160,inherits:167,"process-nextick-args":187}],191:[function(t,e,n){function r(t){if(!(this instanceof r))return new r(t);i.call(this,t)}e.localExports=r;var i=t("./_stream_transform"),o=t("core-util-is");o.inherits=t("inherits"),o.inherits(r,i),r.prototype._transform=function(t,e,n){n(null,t)}},{"./_stream_transform":193,"core-util-is":160,inherits:167}],192:[function(t,e,n){(function(n){function r(e,n){L=L||t("./_stream_duplex"),e=e||{},this.objectMode=!!e.objectMode,n instanceof L&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(B||(B=t("string_decoder/").StringDecoder),this.decoder=new B(e.encoding),this.encoding=e.encoding)}function i(e){if(L=L||t("./_stream_duplex"),!(this instanceof i))return new i(e);this._readableState=new r(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),P.call(this)}function o(t,e,n,r,i){var o=l(e,n);if(o)t.emit("error",o);else if(null===n)e.reading=!1,c(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!i){s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&i){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else{var u;!e.decoder||i||r||(n=e.decoder.write(n),u=!e.objectMode&&0===n.length),i||(e.reading=!1),u||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&h(t))),d(t,e)}else i||(e.reading=!1);return a(e)}function a(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function s(t){return t>=R?t=R:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function u(t,e){return 0===e.length&&e.ended?0:e.objectMode?0===t?0:1:null===t||isNaN(t)?e.flowing&&e.buffer.length?e.buffer[0].length:e.length:t<=0?0:(t>e.highWaterMark&&(e.highWaterMark=s(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function l(t,e){var n=null;return A.isBuffer(e)||"string"==typeof e||null===e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function c(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,h(t)}}function h(t,e){var n=t._readableState;n.needReadable=!1,n.emittedReadable||(T("emitReadable",n.flowing),n.emittedReadable=!0,n.sync?C(f,t):f(t))}function f(t){T("emit readable"),t.emit("readable"),v(t)}function d(t,e){e.readingMore||(e.readingMore=!0,C(p,t,e))}function p(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(T("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function g(t){return function(){var e=t._readableState;T("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&j(t,"data")&&(e.flowing=!0,v(t))}}function _(t){T("readable nexttick read 0"),t.read(0)}function y(t,e){e.resumeScheduled||(e.resumeScheduled=!0,C(m,t,e))}function m(t,e){e.reading||(T("resume read 0"),t.read(0)),e.resumeScheduled=!1,t.emit("resume"),v(t),e.flowing&&!e.reading&&t.read(0)}function v(t){var e=t._readableState;if(T("flow",e.flowing),e.flowing)do{var n=t.read()}while(null!==n&&e.flowing)}function b(t,e){var n,r=e.buffer,i=e.length,o=!!e.decoder,a=!!e.objectMode;if(0===r.length)return null;if(0===i)n=null;else if(a)n=r.shift();else if(!t||t>=i)n=o?r.join(""):1===r.length?r[0]:A.concat(r,i),r.length=0;else if(t<r[0].length)n=(c=r[0]).slice(0,t),r[0]=c.slice(t);else if(t===r[0].length)n=r.shift();else{n=o?"":new A(t);for(var s=0,u=0,l=r.length;u<l&&s<t;u++){var c=r[0],h=Math.min(t-s,c.length);o?n+=c.slice(0,h):c.copy(n,s,0,h),h<c.length?r[0]=c.slice(h):r.shift(),s+=h}}return n}function w(t){var e=t._readableState;if(e.length>0)throw new Error("endReadable called on non-empty stream");e.endEmitted||(e.ended=!0,C(x,e,t))}function x(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function k(t,e){for(var n=0,r=t.length;n<r;n++)e(t[n],n)}function S(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}e.localExports=i;var C=t("process-nextick-args"),E=t("isarray"),A=t("buffer").Buffer;i.ReadableState=r;t("events");var P,j=function(t,e){return t.listeners(e).length};!function(){try{P=t("stream")}catch(t){}finally{P||(P=t("events").EventEmitter)}}();var A=t("buffer").Buffer,O=t("core-util-is");O.inherits=t("inherits");var I=t("util"),T=void 0;T=I&&I.debuglog?I.debuglog("stream"):function(){};var B;O.inherits(i,P);var L;i.prototype.push=function(t,e){var n=this._readableState;return n.objectMode||"string"!=typeof t||(e=e||n.defaultEncoding)!==n.encoding&&(t=new A(t,e),e=""),o(this,n,t,e,!1)},i.prototype.unshift=function(t){return o(this,this._readableState,t,"",!0)},i.prototype.isPaused=function(){return!1===this._readableState.flowing},i.prototype.setEncoding=function(e){return B||(B=t("string_decoder/").StringDecoder),this._readableState.decoder=new B(e),this._readableState.encoding=e,this};var R=8388608;i.prototype.read=function(t){T("read",t);var e=this._readableState,n=t;if(("number"!=typeof t||t>0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return T("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?w(this):h(this),null;if(0===(t=u(t,e))&&e.ended)return 0===e.length&&w(this),null;var r=e.needReadable;T("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&T("length less than watermark",r=!0),(e.ended||e.reading)&&T("reading or ended",r=!1),r&&(T("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),r&&!e.reading&&(t=u(n,e));var i;return null===(i=t>0?b(t,e):null)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),n!==t&&e.ended&&0===e.length&&w(this),null!==i&&this.emit("data",i),i},i.prototype._read=function(t){this.emit("error",new Error("not implemented"))},i.prototype.pipe=function(t,e){function r(t){T("onunpipe"),t===h&&o()}function i(){T("onend"),t.end()}function o(){T("cleanup"),t.removeListener("close",u),t.removeListener("finish",l),t.removeListener("drain",p),t.removeListener("error",s),t.removeListener("unpipe",r),h.removeListener("end",i),h.removeListener("end",o),h.removeListener("data",a),_=!0,!f.awaitDrain||t._writableState&&!t._writableState.needDrain||p()}function a(e){T("ondata"),!1===t.write(e)&&(1!==f.pipesCount||f.pipes[0]!==t||1!==h.listenerCount("data")||_||(T("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++),h.pause())}function s(e){T("onerror",e),c(),t.removeListener("error",s),0===j(t,"error")&&t.emit("error",e)}function u(){t.removeListener("finish",l),c()}function l(){T("onfinish"),t.removeListener("close",u),c()}function c(){T("unpipe"),h.unpipe(t)}var h=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=t;break;case 1:f.pipes=[f.pipes,t];break;default:f.pipes.push(t)}f.pipesCount+=1,T("pipe count=%d opts=%j",f.pipesCount,e);var d=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?i:o;f.endEmitted?C(d):h.once("end",d),t.on("unpipe",r);var p=g(h);t.on("drain",p);var _=!1;return h.on("data",a),t._events&&t._events.error?E(t._events.error)?t._events.error.unshift(s):t._events.error=[s,t._events.error]:t.on("error",s),t.once("close",u),t.once("finish",l),t.emit("pipe",h),f.flowing||(T("pipe resume"),h.resume()),t},i.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}var o=S(e.pipes,t);return-1===o?this:(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this),this)},i.prototype.on=function(t,e){var n=P.prototype.on.call(this,t,e);if("data"===t&&!1!==this._readableState.flowing&&this.resume(),"readable"===t&&!this._readableState.endEmitted){var r=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&h(this):C(_,this))}return n},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){var t=this._readableState;return t.flowing||(T("resume"),t.flowing=!0,y(this,t)),this},i.prototype.pause=function(){return T("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(T("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(t){var e=this._readableState,n=!1,r=this;t.on("end",function(){if(T("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),t.on("data",function(i){T("wrapped data"),e.decoder&&(i=e.decoder.write(i)),(!e.objectMode||null!==i&&void 0!==i)&&(e.objectMode||i&&i.length)&&(r.push(i)||(n=!0,t.pause()))});for(var i in t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));return k(["error","close","destroy","pause","resume"],function(e){t.on(e,r.emit.bind(r,e))}),r._read=function(e){T("wrapped _read",e),n&&(n=!1,t.resume())},r},i._fromList=b}).call(this,t("_process"))},{"./_stream_duplex":190,_process:188,buffer:60,"core-util-is":160,events:164,inherits:167,isarray:169,"process-nextick-args":187,"string_decoder/":217,util:56}],193:[function(t,e,n){function r(t){this.afterTransform=function(e,n){return i(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(t,e,n){var r=t._transformState;r.transforming=!1;var i=r.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&t.push(n),i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);s.call(this,t),this._transformState=new r(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(t){a(e,t)}):a(e)})}function a(t,e){if(e)return t.emit("error",e);var n=t._writableState,r=t._transformState;if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return t.push(null)}e.localExports=o;var s=t("./_stream_duplex"),u=t("core-util-is");u.inherits=t("inherits"),u.inherits(o,s),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,s.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,n){throw new Error("not implemented")},o.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0}},{"./_stream_duplex":190,"core-util-is":160,inherits:167}],194:[function(t,e,n){(function(n){function r(){}function i(t,e,n){this.chunk=t,this.encoding=e,this.callback=n,this.next=null}function o(e,n){j=j||t("./_stream_duplex"),e=e||{},this.objectMode=!!e.objectMode,n instanceof j&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){p(n,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new x(this),this.corkedRequestsFree.next=new x(this)}function a(e){if(j=j||t("./_stream_duplex"),!(this instanceof a||this instanceof j))return new a(e);this._writableState=new o(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),A.call(this)}function s(t,e){var n=new Error("write after end");t.emit("error",n),k(e,n)}function u(t,e,n,r){var i=!0;if(!C.isBuffer(n)&&"string"!=typeof n&&null!==n&&void 0!==n&&!e.objectMode){var o=new TypeError("Invalid non-string/buffer chunk");t.emit("error",o),k(r,o),i=!1}return i}function l(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=new C(e,n)),e}function c(t,e,n,r,o){n=l(e,n,r),C.isBuffer(n)&&(r="buffer");var a=e.objectMode?1:n.length;e.length+=a;var s=e.length<e.highWaterMark;if(s||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest=new i(n,r,o),u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else h(t,e,!1,a,n,r,o);return s}function h(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function f(t,e,n,r,i){--e.pendingcb,n?k(i,r):i(r),t._writableState.errorEmitted=!0,t.emit("error",r)}function d(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function p(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(d(n),e)f(t,n,r,e,i);else{var o=m(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||y(t,n),r?S(g,t,n,o,i):g(t,n,o,i)}}function g(t,e,n,r){n||_(t,e),e.pendingcb--,r(),b(t,e)}function _(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function y(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var a=0;n;)i[a]=n,n=n.next,a+=1;h(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,e.corkedRequestsFree=o.next,o.next=null}else{for(;n;){var s=n.chunk,u=n.encoding,l=n.callback;if(h(t,e,!1,e.objectMode?1:s.length,s,u,l),n=n.next,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=n,e.bufferProcessing=!1}function m(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function v(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function b(t,e){var n=m(e);return n&&(0===e.pendingcb?(v(t,e),e.finished=!0,t.emit("finish")):v(t,e)),n}function w(t,e,n){e.ending=!0,b(t,e),n&&(e.finished?k(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function x(t){var e=this;this.next=null,this.entry=null,this.finish=function(n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}e.localExports=a;var k=t("process-nextick-args"),S=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:k,C=t("buffer").Buffer;a.WritableState=o;var E=t("core-util-is");E.inherits=t("inherits");var A,P={deprecate:t("util-deprecate")};!function(){try{A=t("stream")}catch(t){}finally{A||(A=t("events").EventEmitter)}}();C=t("buffer").Buffer;E.inherits(a,A);o.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(o.prototype,"buffer",{get:P.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(t){}}();var j;a.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},a.prototype.write=function(t,e,n){var i=this._writableState,o=!1;return"function"==typeof e&&(n=e,e=null),C.isBuffer(t)?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=r),i.ended?s(this,n):u(this,i,t,n)&&(i.pendingcb++,o=c(this,i,t,e,n)),o},a.prototype.cork=function(){this._writableState.corked++},a.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||y(this,t))},a.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);this._writableState.defaultEncoding=t},a.prototype._write=function(t,e,n){n(new Error("not implemented"))},a.prototype._writev=null,a.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||w(this,r,n)}}).call(this,t("_process"))},{"./_stream_duplex":190,_process:188,buffer:60,"core-util-is":160,events:164,inherits:167,"process-nextick-args":187,"util-deprecate":222}],195:[function(t,e,n){e.localExports=t("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":191}],196:[function(t,e,n){var r=function(){try{return t("stream")}catch(t){}}();(n=e.localExports=t("./lib/_stream_readable.js")).Stream=r||n,n.Readable=n,n.Writable=t("./lib/_stream_writable.js"),n.Duplex=t("./lib/_stream_duplex.js"),n.Transform=t("./lib/_stream_transform.js"),n.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":190,"./lib/_stream_passthrough.js":191,"./lib/_stream_readable.js":192,"./lib/_stream_transform.js":193,"./lib/_stream_writable.js":194}],197:[function(t,e,n){e.localExports=t("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":193}],198:[function(t,e,n){e.localExports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":194}],199:[function(t,e,n){(function(){var e,r,i,o;n.EncodeStream=t("./src/EncodeStream"),n.DecodeStream=t("./src/DecodeStream"),n.Array=t("./src/Array"),n.LazyArray=t("./src/LazyArray"),n.Bitfield=t("./src/Bitfield"),n.Boolean=t("./src/Boolean"),n.Buffer=t("./src/Buffer"),n.Enum=t("./src/Enum"),n.Optional=t("./src/Optional"),n.Reserved=t("./src/Reserved"),n.String=t("./src/String"),n.Struct=t("./src/Struct"),n.VersionedStruct=t("./src/VersionedStruct"),i=t("./src/Number");for(e in i)r=i[e],n[e]=r;o=t("./src/Pointer");for(e in o)r=o[e],n[e]=r}).call(this)},{"./src/Array":200,"./src/Bitfield":201,"./src/Boolean":202,"./src/Buffer":203,"./src/DecodeStream":204,"./src/EncodeStream":205,"./src/Enum":206,"./src/LazyArray":207,"./src/Number":208,"./src/Optional":209,"./src/Pointer":210,"./src/Reserved":211,"./src/String":212,"./src/Struct":213,"./src/VersionedStruct":214}],200:[function(t,e,n){(function(){var n,r,i;r=t("./Number").Number,i=t("./utils"),n=function(){function t(t,e,n){this.type=t,this.length=e,this.lengthType=null!=n?n:"count"}return t.prototype.decode=function(t,e){var n,o,a,s,u,l;if(a=t.pos,s=[],n=e,null!=this.length&&(o=i.resolveLength(this.length,t,e)),this.length instanceof r&&(Object.defineProperties(s,{parent:{value:e},_startOffset:{value:a},_currentOffset:{value:0,writable:!0},_length:{value:o}}),n=s),null==o||"bytes"===this.lengthType)for(u=null!=o?t.pos+o:(null!=e?e._length:void 0)?e._startOffset+e._length:t.length;t.pos<u;)s.push(this.type.decode(t,n));else for(l=0;l<o;l+=1)s.push(this.type.decode(t,n));return s},t.prototype.size=function(t,e){var n,o,a,s;if(!t)return this.type.size(null,e)*i.resolveLength(this.length,null,e);for(o=0,this.length instanceof r&&(o+=this.length.size(),e={parent:e}),a=0,s=t.length;a<s;a++)n=t[a],o+=this.type.size(n,e);return o},t.prototype.encode=function(t,e,n){var i,o,a,s,u,l;for(i=n,this.length instanceof r&&((i={pointers:[],startOffset:t.pos,parent:n}).pointerOffset=t.pos+this.size(e,i),this.length.encode(t,e.length)),u=0,l=e.length;u<l;u++)a=e[u],this.type.encode(t,a,i);if(this.length instanceof r)for(o=0;o<i.pointers.length;)(s=i.pointers[o++]).type.encode(t,s.val)},t}(),e.localExports=n}).call(this)},{"./Number":208,"./utils":215}],201:[function(t,e,n){(function(){var t;t=function(){function t(t,e){this.type=t,this.flags=null!=e?e:[]}return t.prototype.decode=function(t){var e,n,r,i,o,a,s;for(i=this.type.decode(t),r={},n=o=0,a=(s=this.flags).length;o<a;n=++o)null!=(e=s[n])&&(r[e]=!!(i&1<<n));return r},t.prototype.size=function(){return this.type.size()},t.prototype.encode=function(t,e){var n,r,i,o,a,s;for(i=0,r=o=0,a=(s=this.flags).length;o<a;r=++o)null!=(n=s[r])&&e[n]&&(i|=1<<r);return this.type.encode(t,i)},t}(),e.localExports=t}).call(this)},{}],202:[function(t,e,n){(function(){var t;t=function(){function t(t){this.type=t}return t.prototype.decode=function(t,e){return!!this.type.decode(t,e)},t.prototype.size=function(t,e){return this.type.size(t,e)},t.prototype.encode=function(t,e,n){return this.type.encode(t,+e,n)},t}(),e.localExports=t}).call(this)},{}],203:[function(t,e,n){(function(){var n,r,i;i=t("./utils"),r=t("./Number").Number,n=function(){function t(t){this.length=t}return t.prototype.decode=function(t,e){var n;return n=i.resolveLength(this.length,t,e),t.readBuffer(n)},t.prototype.size=function(t,e){return t?t.length:i.resolveLength(this.length,null,e)},t.prototype.encode=function(t,e,n){return this.length instanceof r&&this.length.encode(t,e.length),t.writeBuffer(e)},t}(),e.localExports=n}).call(this)},{"./Number":208,"./utils":215}],204:[function(t,e,n){(function(t){(function(){var n,r;try{r=function(){throw new Error("Cannot find module 'iconv-lite' from '/Users/devongovett/projects/PDFKit/node_modules/restructure/src'")}()}catch(t){}n=function(){function e(t){this.buffer=t,this.pos=0,this.length=this.buffer.length}var n;e.TYPES={UInt8:1,UInt16:2,UInt24:3,UInt32:4,Int8:1,Int16:2,Int24:3,Int32:4,Float:4,Double:8};for(n in t.prototype)"read"===n.slice(0,4)&&function(t){var n;n=e.TYPES[t.replace(/read|[BL]E/g,"")],e.prototype[t]=function(){var e;return e=this.buffer[t](this.pos),this.pos+=n,e}}(n);return e.prototype.readString=function(e,n){var i,o,a,s,u;switch(null==n&&(n="ascii"),n){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.buffer.toString(n,this.pos,this.pos+=e);case"utf16be":for(a=s=0,u=(i=new t(this.readBuffer(e))).length-1;s<u;a=s+=2)o=i[a],i[a]=i[a+1],i[a+1]=o;return i.toString("utf16le");default:return i=this.readBuffer(e),r?r.decode(i,n):i}},e.prototype.readBuffer=function(t){return this.buffer.slice(this.pos,this.pos+=t)},e.prototype.readUInt24BE=function(){return(this.readUInt16BE()<<8)+this.readUInt8()},e.prototype.readUInt24LE=function(){return this.readUInt16LE()+(this.readUInt8()<<16)},e.prototype.readInt24BE=function(){return(this.readInt16BE()<<8)+this.readUInt8()},e.prototype.readInt24LE=function(){return this.readUInt16LE()+(this.readInt8()<<16)},e}(),e.localExports=n}).call(this)}).call(this,t("buffer").Buffer)},{buffer:60}],205:[function(t,e,n){(function(n){(function(){var r,i,o,a,s={}.hasOwnProperty,u=function(t,e){function n(){this.constructor=t}for(var r in e)s.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};a=t("stream"),r=t("./DecodeStream");try{o=function(){throw new Error("Cannot find module 'iconv-lite' from '/Users/devongovett/projects/PDFKit/node_modules/restructure/src'")}()}catch(t){}i=function(t){function e(){e.__super__.constructor.apply(this,arguments),this.pos=0}var i;u(e,t);for(i in n.prototype)"write"===i.slice(0,5)&&function(t){var i;i=r.TYPES[t.replace(/write|[BL]E/g,"")],e.prototype[t]=function(e){var r;return(r=new n(+i))[t](e,0),this.writeBuffer(r)}}(i);return e.prototype._read=function(){},e.prototype.writeBuffer=function(t){return this.push(t),this.pos+=t.length},e.prototype.writeString=function(t,e){var r,i,a,s,u;switch(null==e&&(e="ascii"),e){case"utf16le":case"ucs2":case"utf8":case"ascii":return this.writeBuffer(new n(t,e));case"utf16be":for(a=s=0,u=(r=new n(t,"utf16le")).length-1;s<u;a=s+=2)i=r[a],r[a]=r[a+1],r[a+1]=i;return this.writeBuffer(r);default:if(o)return this.writeBuffer(o.encode(t,e));throw new Error("Install iconv-lite to enable additional string encodings.")}},e.prototype.writeUInt24BE=function(t){var e;return e=new n(3),e[0]=t>>>16&255,e[1]=t>>>8&255,e[2]=255&t,this.writeBuffer(e)},e.prototype.writeUInt24LE=function(t){var e;return e=new n(3),e[0]=255&t,e[1]=t>>>8&255,e[2]=t>>>16&255,this.writeBuffer(e)},e.prototype.writeInt24BE=function(t){return t>=0?this.writeUInt24BE(t):this.writeUInt24BE(t+16777215+1)},e.prototype.writeInt24LE=function(t){return t>=0?this.writeUInt24LE(t):this.writeUInt24LE(t+16777215+1)},e.prototype.fill=function(t,e){var r;return(r=new n(e)).fill(t),this.writeBuffer(r)},e.prototype.end=function(){return this.push(null)},e}(a.Readable),e.localExports=i}).call(this)}).call(this,t("buffer").Buffer)},{"./DecodeStream":204,buffer:60,stream:216}],206:[function(t,e,n){(function(){var t;t=function(){function t(t,e){this.type=t,this.options=null!=e?e:[]}return t.prototype.decode=function(t){var e;return e=this.type.decode(t),this.options[e]||e},t.prototype.size=function(){return this.type.size()},t.prototype.encode=function(t,e){var n;if(-1===(n=this.options.indexOf(e)))throw new Error("Unknown option in enum: "+e);return this.type.encode(t,n)},t}(),e.localExports=t}).call(this)},{}],207:[function(t,e,n){(function(){var n,r,i,o,a,s,u={}.hasOwnProperty,l=function(t,e){function n(){this.constructor=t}for(var r in e)u.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};n=t("./Array"),o=t("./Number").Number,s=t("./utils"),a=t("util").inspect,i=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return l(e,n),e.prototype.decode=function(t,e){var n,i,a;return i=t.pos,n=s.resolveLength(this.length,t,e),this.length instanceof o&&(e={parent:e,_startOffset:i,_currentOffset:0,_length:n}),a=new r(this.type,n,t,e),t.pos+=n*this.type.size(null,e),a},e.prototype.size=function(t,n){return t instanceof r&&(t=t.toArray()),e.__super__.size.call(this,t,n)},e.prototype.encode=function(t,n,i){return n instanceof r&&(n=n.toArray()),e.__super__.encode.call(this,t,n,i)},e}(),r=function(){function t(t,e,n,r){this.type=t,this.length=e,this.stream=n,this.ctx=r,this.base=this.stream.pos,this.items=[]}return t.prototype.get=function(t){var e;if(!(t<0||t>=this.length))return null==this.items[t]&&(e=this.stream.pos,this.stream.pos=this.base+this.type.size(null,this.ctx)*t,this.items[t]=this.type.decode(this.stream,this.ctx),this.stream.pos=e),this.items[t]},t.prototype.toArray=function(){var t,e,n,r;for(r=[],t=e=0,n=this.length;e<n;t=e+=1)r.push(this.get(t));return r},t.prototype.inspect=function(){return a(this.toArray())},t}(),e.localExports=i}).call(this)},{"./Array":200,"./Number":208,"./utils":215,util:224}],208:[function(t,e,n){(function(){var e,r,i,o={}.hasOwnProperty,a=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};e=t("./DecodeStream"),i=function(){function t(t,e){this.type=t,this.endian=null!=e?e:"BE",this.fn=this.type,"8"!==this.type[this.type.length-1]&&(this.fn+=this.endian)}return t.prototype.size=function(){return e.TYPES[this.type]},t.prototype.decode=function(t){return t["read"+this.fn]()},t.prototype.encode=function(t,e){return t["write"+this.fn](e)},t}(),n.Number=i,n.uint8=new i("UInt8"),n.uint16be=n.uint16=new i("UInt16","BE"),n.uint16le=new i("UInt16","LE"),n.uint24be=n.uint24=new i("UInt24","BE"),n.uint24le=new i("UInt24","LE"),n.uint32be=n.uint32=new i("UInt32","BE"),n.uint32le=new i("UInt32","LE"),n.int8=new i("Int8"),n.int16be=n.int16=new i("Int16","BE"),n.int16le=new i("Int16","LE"),n.int24be=n.int24=new i("Int24","BE"),n.int24le=new i("Int24","LE"),n.int32be=n.int32=new i("Int32","BE"),n.int32le=new i("Int32","LE"),n.floatbe=n.float=new i("Float","BE"),n.floatle=new i("Float","LE"),n.doublebe=n.double=new i("Double","BE"),n.doublele=new i("Double","LE"),r=function(t){function e(t,n,r){null==r&&(r=t>>1),e.__super__.constructor.call(this,"Int"+t,n),this._point=1<<r}return a(e,i),e.prototype.decode=function(t){return e.__super__.decode.call(this,t)/this._point},e.prototype.encode=function(t,n){return e.__super__.encode.call(this,t,n*this._point|0)},e}(),n.Fixed=r,n.fixed16be=n.fixed16=new r(16,"BE"),n.fixed16le=new r(16,"LE"),n.fixed32be=n.fixed32=new r(32,"BE"),n.fixed32le=new r(32,"LE")}).call(this)},{"./DecodeStream":204}],209:[function(t,e,n){(function(){var t;t=function(){function t(t,e){this.type=t,this.condition=null==e||e}return t.prototype.decode=function(t,e){var n;if("function"==typeof(n=this.condition)&&(n=n.call(e,e)),n)return this.type.decode(t,e)},t.prototype.size=function(t,e){var n;return"function"==typeof(n=this.condition)&&(n=n.call(e,e)),n?this.type.size(t,e):0},t.prototype.encode=function(t,e,n){var r;if("function"==typeof(r=this.condition)&&(r=r.call(n,n)),r)return this.type.encode(t,e,n)},t}(),e.localExports=t}).call(this)},{}],210:[function(t,e,n){(function(){var e,r,i;i=t("./utils"),e=function(){function t(t,e,n){var r,i,o,a;this.offsetType=t,this.type=e,this.options=null!=n?n:{},"void"===this.type&&(this.type=null),null==(r=this.options).type&&(r.type="local"),null==(i=this.options).allowNull&&(i.allowNull=!0),null==(o=this.options).nullValue&&(o.nullValue=0),null==(a=this.options).lazy&&(a.lazy=!1),this.options.relativeTo&&(this.relativeToGetter=new Function("ctx","return ctx."+this.options.relativeTo))}return t.prototype.decode=function(t,e){var n,r,o,a,s,u;return(o=this.offsetType.decode(t))===this.options.nullValue&&this.options.allowNull?null:(s=function(){switch(this.options.type){case"local":return e._startOffset;case"immediate":return t.pos-this.offsetType.size();case"parent":return e.parent._startOffset;default:for(n=e;n.parent;)n=n.parent;return n._startOffset||0}}.call(this),this.options.relativeTo&&(s+=this.relativeToGetter(e)),a=o+s,null!=this.type?(u=null,r=function(n){return function(){var r;return null!=u?u:(r=t.pos,t.pos=a,u=n.type.decode(t,e),t.pos=r,u)}}(this),this.options.lazy?new i.PropertyDescriptor({get:r}):r()):a)},t.prototype.size=function(t,e){var n,i;switch(n=e,this.options.type){case"local":case"immediate":break;case"parent":e=e.parent;break;default:for(;e.parent;)e=e.parent}if(null==(i=this.type)){if(!(t instanceof r))throw new Error("Must be a VoidPointer");i=t.type,t=t.value}return t&&e&&(e.pointerSize+=i.size(t,n)),this.offsetType.size()},t.prototype.encode=function(t,e,n){var i,o,a;i=n;if(null!=e){switch(this.options.type){case"local":o=n.startOffset;break;case"immediate":o=t.pos+this.offsetType.size(e,i);break;case"parent":o=(n=n.parent).startOffset;break;default:for(o=0;n.parent;)n=n.parent}if(this.options.relativeTo&&(o+=this.relativeToGetter(i.val)),this.offsetType.encode(t,n.pointerOffset-o),null==(a=this.type)){if(!(e instanceof r))throw new Error("Must be a VoidPointer");a=e.type,e=e.value}return n.pointers.push({type:a,val:e,parent:i}),n.pointerOffset+=a.size(e,i)}this.offsetType.encode(t,this.options.nullValue)},t}(),r=function(){return function(t,e){this.type=t,this.value=e}}(),n.Pointer=e,n.VoidPointer=r}).call(this)},{"./utils":215}],211:[function(t,e,n){(function(){var n,r;r=t("./utils"),n=function(){function t(t,e){this.type=t,this.count=null!=e?e:1}return t.prototype.decode=function(t,e){t.pos+=this.size(null,e)},t.prototype.size=function(t,e){var n;return n=r.resolveLength(this.count,null,e),this.type.size()*n},t.prototype.encode=function(t,e,n){return t.fill(0,this.size(e,n))},t}(),e.localExports=n}).call(this)},{"./utils":215}],212:[function(t,e,n){(function(n){(function(){var r,i,o;r=t("./Number").Number,o=t("./utils"),i=function(){function t(t,e){this.length=t,this.encoding=null!=e?e:"ascii"}return t.prototype.decode=function(t,e){var n,r,i,a,s;return i=function(){if(null!=this.length)return o.resolveLength(this.length,t,e);for(n=t.buffer,i=t.length,a=t.pos;a<i&&0!==n[a];)++a;return a-t.pos}.call(this),"function"==typeof(r=this.encoding)&&(r=r.call(e,e)||"ascii"),s=t.readString(i,r),null==this.length&&t.pos<t.length&&t.pos++,s},t.prototype.size=function(t,e){var i,a;return t?("function"==typeof(i=this.encoding)&&(i=i.call(null!=e?e.val:void 0,null!=e?e.val:void 0)||"ascii"),"utf16be"===i&&(i="utf16le"),a=n.byteLength(t,i),this.length instanceof r&&(a+=this.length.size()),null==this.length&&a++,a):o.resolveLength(this.length,null,e)},t.prototype.encode=function(t,e,i){var o;if("function"==typeof(o=this.encoding)&&(o=o.call(null!=i?i.val:void 0,null!=i?i.val:void 0)||"ascii"),this.length instanceof r&&this.length.encode(t,n.byteLength(e,o)),t.writeString(e,o),null==this.length)return t.writeUInt8(0)},t}(),e.localExports=i}).call(this)}).call(this,t("buffer").Buffer)},{"./Number":208,"./utils":215,buffer:60}],213:[function(t,e,n){(function(){var n,r;r=t("./utils"),n=function(){function t(t){this.fields=null!=t?t:{}}return t.prototype.decode=function(t,e,n){var r,i;return null==n&&(n=0),r=this._setup(t,e,n),this._parseFields(t,r,this.fields),null!=(i=this.process)&&i.call(r,t),r},t.prototype._setup=function(t,e,n){var r;return r={},Object.defineProperties(r,{parent:{value:e},_startOffset:{value:t.pos},_currentOffset:{value:0,writable:!0},_length:{value:n}}),r},t.prototype._parseFields=function(t,e,n){var i,o,a;for(i in n)void 0!==(a="function"==typeof(o=n[i])?o.call(e,e):o.decode(t,e))&&(a instanceof r.PropertyDescriptor?Object.defineProperty(e,i,a):e[i]=a),e._currentOffset=t.pos-e._startOffset},t.prototype.size=function(t,e,n){var r,i,o,a,s;null==t&&(t={}),null==n&&(n=!0),r={parent:e,val:t,pointerSize:0},o=0,s=this.fields;for(i in s)null!=(a=s[i]).size&&(o+=a.size(t[i],r));return n&&(o+=r.pointerSize),o},t.prototype.encode=function(t,e,n){var r,i,o,a,s,u,l;null!=(u=this.preEncode)&&u.call(e,t),(r={pointers:[],startOffset:t.pos,parent:n,val:e,pointerSize:0}).pointerOffset=t.pos+this.size(e,r,!1),l=this.fields;for(o in l)null!=(s=l[o]).encode&&s.encode(t,e[o],r);for(i=0;i<r.pointers.length;)(a=r.pointers[i++]).type.encode(t,a.val,a.parent)},t}(),e.localExports=n}).call(this)},{"./utils":215}],214:[function(t,e,n){(function(){var n,r,i={}.hasOwnProperty,o=function(t,e){function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};n=t("./Struct"),r=function(t){function e(t,e){this.type=t,this.versions=null!=e?e:{},"string"==typeof this.type&&(this.versionGetter=new Function("parent","return parent."+this.type),this.versionSetter=new Function("parent","version","return parent."+this.type+" = version"))}return o(e,n),e.prototype.decode=function(t,n,r){var i,o,a;if(null==r&&(r=0),o=this._setup(t,n,r),"string"==typeof this.type?o.version=this.versionGetter(n):o.version=this.type.decode(t),this.versions.header&&this._parseFields(t,o,this.versions.header),null==(i=this.versions[o.version]))throw new Error("Unknown version "+o.version);return i instanceof e?i.decode(t,n):(this._parseFields(t,o,i),null!=(a=this.process)&&a.call(o,t),o)},e.prototype.size=function(t,e,n){var r,i,o,a,s,u;if(null==n&&(n=!0),!t)throw new Error("Not a fixed size");if(r={parent:e,val:t,pointerSize:0},a=0,"string"!=typeof this.type&&(a+=this.type.size(t.version,r)),this.versions.header){u=this.versions.header;for(o in u)null!=(s=u[o]).size&&(a+=s.size(t[o],r))}if(null==(i=this.versions[t.version]))throw new Error("Unknown version "+t.version);for(o in i)null!=(s=i[o]).size&&(a+=s.size(t[o],r));return n&&(a+=r.pointerSize),a},e.prototype.encode=function(t,e,n){var r,i,o,a,s,u,l,c;if(null!=(l=this.preEncode)&&l.call(e,t),r={pointers:[],startOffset:t.pos,parent:n,val:e,pointerSize:0},r.pointerOffset=t.pos+this.size(e,r,!1),"string"!=typeof this.type&&this.type.encode(t,e.version),this.versions.header){c=this.versions.header;for(a in c)null!=(u=c[a]).encode&&u.encode(t,e[a],r)}i=this.versions[e.version];for(a in i)null!=(u=i[a]).encode&&u.encode(t,e[a],r);for(o=0;o<r.pointers.length;)(s=r.pointers[o++]).type.encode(t,s.val,s.parent)},e}(),e.localExports=r}).call(this)},{"./Struct":213}],215:[function(t,e,n){(function(){var e,r;e=t("./Number").Number,n.resolveLength=function(t,n,r){var i;if("number"==typeof t?i=t:"function"==typeof t?i=t.call(r,r):r&&"string"==typeof t?i=r[t]:n&&t instanceof e&&(i=t.decode(n)),isNaN(i))throw new Error("Not a fixed size");return i},r=function(){return function(t){var e,n;null==t&&(t={}),this.enumerable=!0,this.configurable=!0;for(e in t)n=t[e],this[e]=n}}(),n.PropertyDescriptor=r}).call(this)},{"./Number":208}],216:[function(t,e,n){function r(){i.call(this)}e.localExports=r;var i=t("events").EventEmitter;t("inherits")(r,i),r.Readable=t("readable-stream/readable.js"),r.Writable=t("readable-stream/writable.js"),r.Duplex=t("readable-stream/duplex.js"),r.Transform=t("readable-stream/transform.js"),r.PassThrough=t("readable-stream/passthrough.js"),r.Stream=r,r.prototype.pipe=function(t,e){function n(e){t.writable&&!1===t.write(e)&&l.pause&&l.pause()}function r(){l.readable&&l.resume&&l.resume()}function o(){c||(c=!0,t.end())}function a(){c||(c=!0,"function"==typeof t.destroy&&t.destroy())}function s(t){if(u(),0===i.listenerCount(this,"error"))throw t}function u(){l.removeListener("data",n),t.removeListener("drain",r),l.removeListener("end",o),l.removeListener("close",a),l.removeListener("error",s),t.removeListener("error",s),l.removeListener("end",u),l.removeListener("close",u),t.removeListener("close",u)}var l=this;l.on("data",n),t.on("drain",r),t._isStdio||e&&!1===e.end||(l.on("end",o),l.on("close",a));var c=!1;return l.on("error",s),t.on("error",s),l.on("end",u),l.on("close",u),t.on("close",u),t.emit("pipe",l),t}},{events:164,inherits:167,"readable-stream/duplex.js":189,"readable-stream/passthrough.js":195,"readable-stream/readable.js":196,"readable-stream/transform.js":197,"readable-stream/writable.js":198}],217:[function(t,e,n){function r(t){if(t&&!u(t))throw new Error("Unknown encoding: "+t)}function i(t){return t.toString(this.encoding)}function o(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function a(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}var s=t("buffer").Buffer,u=s.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},l=n.StringDecoder=function(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),r(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=a;break;default:return void(this.write=i)}this.charBuffer=new s(6),this.charReceived=0,this.charLength=0};l.prototype.write=function(t){for(var e="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(t=t.slice(n,t.length),!((i=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);r=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,r),r-=this.charReceived);var r=(e+=t.toString(this.encoding,0,r)).length-1,i=e.charCodeAt(r);if(i>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,r)}return e},l.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},l.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;e+=r.slice(0,n).toString(i)}return e}},{buffer:60}],218:[function(t,e,n){function r(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(t,e){this.source=t,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=e,this.destLen=0,this.ltree=new r,this.dtree=new r}function o(t,e,n,r){var i,o;for(i=0;i<n;++i)t[i]=0;for(i=0;i<30-n;++i)t[i+n]=i/n|0;for(o=r,i=0;i<30;++i)e[i]=o,o+=1<<t[i]}function a(t,e,n,r){var i,o;for(i=0;i<16;++i)t.table[i]=0;for(i=0;i<r;++i)t.table[e[n+i]]++;for(t.table[0]=0,o=0,i=0;i<16;++i)S[i]=o,o+=t.table[i];for(i=0;i<r;++i)e[n+i]&&(t.trans[S[e[n+i]]++]=i)}function s(t){t.bitcount--||(t.tag=t.source[t.sourceIndex++],t.bitcount=7);var e=1&t.tag;return t.tag>>>=1,e}function u(t,e,n){if(!e)return n;for(;t.bitcount<24;)t.tag|=t.source[t.sourceIndex++]<<t.bitcount,t.bitcount+=8;var r=t.tag&65535>>>16-e;return t.tag>>>=e,t.bitcount-=e,r+n}function l(t,e){for(;t.bitcount<24;)t.tag|=t.source[t.sourceIndex++]<<t.bitcount,t.bitcount+=8;var n=0,r=0,i=0,o=t.tag;do{r=2*r+(1&o),o>>>=1,++i,n+=e.table[i],r-=e.table[i]}while(r>=0);return t.tag=o,t.bitcount-=i,e.trans[n+r]}function c(t,e,n){var r,i,o,s,c,h;for(r=u(t,5,257),i=u(t,5,1),o=u(t,4,4),s=0;s<19;++s)k[s]=0;for(s=0;s<o;++s){var f=u(t,3,0);k[w[s]]=f}for(a(x,k,0,19),c=0;c<r+i;){var d=l(t,x);switch(d){case 16:var p=k[c-1];for(h=u(t,2,3);h;--h)k[c++]=p;break;case 17:for(h=u(t,3,3);h;--h)k[c++]=0;break;case 18:for(h=u(t,7,11);h;--h)k[c++]=0;break;default:k[c++]=d}}a(e,k,0,r),a(n,k,r,i)}function h(t,e,n){for(;;){var r=l(t,e);if(256===r)return d;if(r<256)t.dest[t.destLen++]=r;else{var i,o,a,s;for(i=u(t,y[r-=257],m[r]),o=l(t,n),s=a=t.destLen-u(t,v[o],b[o]);s<a+i;++s)t.dest[t.destLen++]=t.dest[s]}}}function f(t){for(var e,n,r;t.bitcount>8;)t.sourceIndex--,t.bitcount-=8;if(e=t.source[t.sourceIndex+1],e=256*e+t.source[t.sourceIndex],n=t.source[t.sourceIndex+3],n=256*n+t.source[t.sourceIndex+2],e!==(65535&~n))return p;for(t.sourceIndex+=4,r=e;r;--r)t.dest[t.destLen++]=t.source[t.sourceIndex++];return t.bitcount=0,d}var d=0,p=-3,g=new r,_=new r,y=new Uint8Array(30),m=new Uint16Array(30),v=new Uint8Array(30),b=new Uint16Array(30),w=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),x=new r,k=new Uint8Array(320),S=new Uint16Array(16);!function(t,e){var n;for(n=0;n<7;++n)t.table[n]=0;for(t.table[7]=24,t.table[8]=152,t.table[9]=112,n=0;n<24;++n)t.trans[n]=256+n;for(n=0;n<144;++n)t.trans[24+n]=n;for(n=0;n<8;++n)t.trans[168+n]=280+n;for(n=0;n<112;++n)t.trans[176+n]=144+n;for(n=0;n<5;++n)e.table[n]=0;for(e.table[5]=32,n=0;n<32;++n)e.trans[n]=n}(g,_),o(y,m,4,3),o(v,b,2,1),y[28]=0,m[28]=258,e.localExports=function(t,e){var n,r,o=new i(t,e);do{switch(n=s(o),u(o,2,0)){case 0:r=f(o);break;case 1:r=h(o,g,_);break;case 2:c(o,o.ltree,o.dtree),r=h(o,o.ltree,o.dtree);break;default:r=p}if(r!==d)throw new Error("Data error")}while(!n);return o.destLen<o.dest.length?"function"==typeof o.dest.slice?o.dest.slice(0,o.destLen):o.dest.subarray(0,o.destLen):o.dest}},{}],219:[function(t,e,n){e.localExports={categories:["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],combiningClasses:["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],scripts:["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Tirhuta","Siddham","Modi","Takri","Ahom","Warang_Citi","Pau_Cin_Hau","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Miao","Duployan","SignWriting","Mende_Kikakui"],eaw:["N","Na","A","W","H","F"]}},{}],220:[function(t,e,n){(function(e){var r,i,o,a,s,u,l,c,h,f,d,p,g,_,y,m;p=t("unicode-trie"),_=t("./data.json"),m=new p(e(" ","base64")),y=Math.log2||function(t){return Math.log(t)/Math.LN2},r=(g=function(t){return y(t)+1|0})(_.categories.length-1),a=g(_.combiningClasses.length-1),h=g(_.scripts.length-1),l=g(_.eaw.length-1),o=a+h+l+10,u=h+l+10,d=l+10,i=(1<<r)-1,s=(1<<a)-1,f=(1<<h)-1,c=(1<<l)-1,n.getCategory=function(t){var e;return e=m.get(t),_.categories[e>>o&i]},n.getCombiningClass=function(t){var e;return e=m.get(t),_.combiningClasses[e>>u&s]},n.getScript=function(t){var e;return e=m.get(t),_.scripts[e>>d&f]},n.getEastAsianWidth=function(t){var e;return e=m.get(t),_.eaw[e>>10&c]},n.getNumericValue=function(t){var e,n,r,i,o;if(o=m.get(t),0===(r=1023&o))return null;if(r<=50)return r-1;if(r<480)return i=(r>>4)-12,e=1+(15&r),i/e;if(r<768){for(o=(r>>5)-14,n=2+(31&r);n>0;)o*=10,n--;return o}for(o=(r>>2)-191,n=1+(3&r);n>0;)o*=60,n--;return o},n.isAlphabetic=function(t){var e;return"Lu"===(e=n.getCategory(t))||"Ll"===e||"Lt"===e||"Lm"===e||"Lo"===e||"Nl"===e},n.isDigit=function(t){return"Nd"===n.getCategory(t)},n.isPunctuation=function(t){var e;return"Pc"===(e=n.getCategory(t))||"Pd"===e||"Pe"===e||"Pf"===e||"Pi"===e||"Po"===e||"Ps"===e},n.isLowerCase=function(t){return"Ll"===n.getCategory(t)},n.isUpperCase=function(t){return"Lu"===n.getCategory(t)},n.isTitleCase=function(t){return"Lt"===n.getCategory(t)},n.isWhiteSpace=function(t){var e;return"Zs"===(e=n.getCategory(t))||"Zl"===e||"Zp"===e},n.isBaseForm=function(t){var e;return"Nd"===(e=n.getCategory(t))||"No"===e||"Nl"===e||"Lu"===e||"Ll"===e||"Lt"===e||"Lm"===e||"Lo"===e||"Me"===e||"Mc"===e},n.isMark=function(t){var e;return"Mn"===(e=n.getCategory(t))||"Me"===e||"Mc"===e}}).call(this,t("buffer").Buffer)},{"./data.json":219,buffer:60,"unicode-trie":221}],221:[function(t,e,n){var r,i;i=t("tiny-inflate"),r=function(){function t(t){var e,n,r;(e="function"==typeof t.readUInt32BE&&"function"==typeof t.slice)||t instanceof Uint8Array?(e?(this.highStart=t.readUInt32BE(0),this.errorValue=t.readUInt32BE(4),n=t.readUInt32BE(8),t=t.slice(12)):(r=new DataView(t.buffer),this.highStart=r.getUint32(0),this.errorValue=r.getUint32(4),n=r.getUint32(8),t=t.subarray(12)),t=i(t,new Uint8Array(n)),t=i(t,new Uint8Array(n)),this.data=new Uint32Array(t.buffer)):(this.data=t.data,this.highStart=t.highStart,this.errorValue=t.errorValue)}return 11,5,6,32,64,63,2,32,31,2048,32,2080,2080,32,2112,4,t.prototype.get=function(t){var e;return t<0||t>1114111?this.errorValue:t<55296||t>56319&&t<=65535?(e=(this.data[t>>5]<<2)+(31&t),this.data[e]):t<=65535?(e=(this.data[2048+(t-55296>>5)]<<2)+(31&t),this.data[e]):t<this.highStart?(e=this.data[2080+(t>>11)],e=this.data[e+(t>>5&63)],e=(e<<2)+(31&t),this.data[e]):this.data[this.data.length-4]},t}(),e.localExports=r},{"tiny-inflate":218}],222:[function(t,e,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(t){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.localExports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],223:[function(t,e,n){e.localExports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],224:[function(t,e,n){(function(e,r){function i(t,e){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(e)?r.showHidden=e:e&&n._extend(r,e),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),u(r,t,r.depth)}function o(t,e){var n=i.styles[e];return n?"["+i.colors[n][0]+"m"+t+"["+i.colors[n][1]+"m":t}function a(t,e){return t}function s(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function u(t,e,r){if(t.customInspect&&e&&S(e.inspect)&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(r,t);return m(i)||(i=u(t,i,r)),i}var o=l(t,e);if(o)return o;var a=Object.keys(e),g=s(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),k(e)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(e);if(0===a.length){if(S(e)){var _=e.name?": "+e.name:"";return t.stylize("[Function"+_+"]","special")}if(b(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(x(e))return t.stylize(Date.prototype.toString.call(e),"date");if(k(e))return c(e)}var y="",v=!1,w=["{","}"];if(p(e)&&(v=!0,w=["[","]"]),S(e)&&(y=" [Function"+(e.name?": "+e.name:"")+"]"),b(e)&&(y=" "+RegExp.prototype.toString.call(e)),x(e)&&(y=" "+Date.prototype.toUTCString.call(e)),k(e)&&(y=" "+c(e)),0===a.length&&(!v||0==e.length))return w[0]+y+w[1];if(r<0)return b(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var C;return C=v?h(t,e,r,g,a):a.map(function(n){return f(t,e,r,g,n,v)}),t.seen.pop(),d(C,y,w)}function l(t,e){if(v(e))return t.stylize("undefined","undefined");if(m(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return y(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):_(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,r,i){for(var o=[],a=0,s=e.length;a<s;++a)P(e,String(a))?o.push(f(t,e,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(f(t,e,n,r,i,!0))}),o}function f(t,e,n,r,i,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),P(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(l.value)<0?(s=_(n)?u(t,l.value,null):u(t,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(t){return"  "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return"   "+t}).join("\n")):s=t.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function d(t,e,n){var r=0;return t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function p(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function _(t){return null===t}function y(t){return"number"==typeof t}function m(t){return"string"==typeof t}function v(t){return void 0===t}function b(t){return w(t)&&"[object RegExp]"===C(t)}function w(t){return"object"==typeof t&&null!==t}function x(t){return w(t)&&"[object Date]"===C(t)}function k(t){return w(t)&&("[object Error]"===C(t)||t instanceof Error)}function S(t){return"function"==typeof t}function C(t){return Object.prototype.toString.call(t)}function E(t){return t<10?"0"+t.toString(10):t.toString(10)}function A(){var t=new Date,e=[E(t.getHours()),E(t.getMinutes()),E(t.getSeconds())].join(":");return[t.getDate(),T[t.getMonth()],e].join(" ")}function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var j=/%[sdj%]/g;n.format=function(t){if(!m(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(i(arguments[n]));return e.join(" ")}for(var n=1,r=arguments,o=r.length,a=String(t).replace(j,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),s=r[n];n<o;s=r[++n])_(s)||!w(s)?a+=" "+s:a+=" "+i(s);return a},n.deprecate=function(t,i){if(v(r.process))return function(){return n.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var o=!1;return function(){if(!o){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),o=!0}return t.apply(this,arguments)}};var O,I={};n.debuglog=function(t){if(v(O)&&(O=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!I[t])if(new RegExp("\\b"+t+"\\b","i").test(O)){var r=e.pid;I[t]=function(){var e=n.format.apply(n,arguments);console.error("%s %d: %s",t,r,e)}}else I[t]=function(){};return I[t]},n.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=p,n.isBoolean=g,n.isNull=_,n.isNullOrUndefined=function(t){return null==t},n.isNumber=y,n.isString=m,n.isSymbol=function(t){return"symbol"==typeof t},n.isUndefined=v,n.isRegExp=b,n.isObject=w,n.isDate=x,n.isError=k,n.isFunction=S,n.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},n.isBuffer=t("./support/isBuffer");var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){console.log("%s - %s",A(),n.format.apply(n,arguments))},n.inherits=t("inherits"),n._extend=function(t,e){if(!e||!w(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":223,_process:188,inherits:167}]},{},[2])(2)});var y;!function(t){t[t.Butt=0]="Butt",t[t.Round=1]="Round",t[t.Square=2]="Square"}(y=e.PdfLineCapStyle||(e.PdfLineCapStyle={}));var m;!function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"}(m=e.PdfLineJoinStyle||(e.PdfLineJoinStyle={}));var v;!function(t){t[t.NonZero=0]="NonZero",t[t.EvenOdd=1]="EvenOdd"}(v=e.PdfFillRule||(e.PdfFillRule={}));var b;!function(t){t[t.Portrait=0]="Portrait",t[t.Landscape=1]="Landscape"}(b=e.PdfPageOrientation||(e.PdfPageOrientation={}));var w;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(w=e.PdfImageHorizontalAlign||(e.PdfImageHorizontalAlign={}));var x;!function(t){t[t.Top=0]="Top",t[t.Center=1]="Center",t[t.Bottom=2]="Bottom"}(x=e.PdfImageVerticalAlign||(e.PdfImageVerticalAlign={}));var k;!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right",t[t.Justify=3]="Justify"}(k=e.PdfTextHorizontalAlign||(e.PdfTextHorizontalAlign={}));var S;!function(t){t[t.Top=0]="Top",t[t.Alphabetic=1]="Alphabetic"}(S=e._PdfTextBaseline||(e._PdfTextBaseline={}));var C;!function(t){t[t.A0=0]="A0",t[t.A1=1]="A1",t[t.A2=2]="A2",t[t.A3=3]="A3",t[t.A4=4]="A4",t[t.A5=5]="A5",t[t.A6=6]="A6",t[t.A7=7]="A7",t[t.A8=8]="A8",t[t.A9=9]="A9",t[t.A10=10]="A10",t[t.B0=11]="B0",t[t.B1=12]="B1",t[t.B2=13]="B2",t[t.B3=14]="B3",t[t.B4=15]="B4",t[t.B5=16]="B5",t[t.B6=17]="B6",t[t.B7=18]="B7",t[t.B8=19]="B8",t[t.B9=20]="B9",t[t.B10=21]="B10",t[t.C0=22]="C0",t[t.C1=23]="C1",t[t.C2=24]="C2",t[t.C3=25]="C3",t[t.C4=26]="C4",t[t.C5=27]="C5",t[t.C6=28]="C6",t[t.C7=29]="C7",t[t.C8=30]="C8",t[t.C9=31]="C9",t[t.C10=32]="C10",t[t.RA0=33]="RA0",t[t.RA1=34]="RA1",t[t.RA2=35]="RA2",t[t.RA3=36]="RA3",t[t.RA4=37]="RA4",t[t.SRA0=38]="SRA0",t[t.SRA1=39]="SRA1",t[t.SRA2=40]="SRA2",t[t.SRA3=41]="SRA3",t[t.SRA4=42]="SRA4",t[t.Executive=43]="Executive",t[t.Folio=44]="Folio",t[t.Legal=45]="Legal",t[t.Letter=46]="Letter",t[t.Tabloid=47]="Tabloid"}(C=e.PdfPageSize||(e.PdfPageSize={})),e._Errors={InvalidArg:function(t){return'Invalid argument: "'+t+'".'},InvalidFormat:function(t){return'"'+t+'" is not in the correct format.'},ValueCannotBeEmpty:function(t){return'Value cannot be empty: "'+t+'".'},PathStarted:"This method can not be used until the current path is finished.",BufferPagesMustBeEnabled:"The bufferPages property must be enabled to render headers and footers.",AbstractMethod:"This is an abstract method, it should not be called.",FontNameMustBeSet:"The font name must be set.",FontSourceMustBeStringArrayBuffer:"The font source must be of type string or ArrayBuffer.",FontSourceMustBeString:"The font source must be of type string.",FontSourceMustBeArrayBuffer:"The font source must be of type ArrayBuffer.",EmptyUrl:"URL can not be empty.",UndefinedMimeType:"MIME-type must be set.",InvalidImageDataUri:"Invalid Data URI. It should be base64 encoded string that represents JPG or PNG image.",InvalidImageFormat:"Invalid image format. Only JPG and PNG formats are supported."},e._IE="ActiveXObject"in window;var E={"xx-small":7,"x-small":7.5,small:10,medium:12,large:13.5,"x-large":18,"xx-large":24};e.saveBlob=function(t,e){if(t&&t instanceof Blob&&e)if(navigator.msSaveBlob)navigator.msSaveBlob(t,e);else{var n=document.createElement("a"),r=function(t){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.dispatchEvent(e)};if("download"in n){var i=window.URL||window.webkitURL||window,o=i.createObjectURL(t);n.href=o,n.download=e,r(n),n=null,window.setTimeout(function(){i.revokeObjectURL(o)},3e4)}else{var a=new FileReader;a.onloadend=function(t){n.download=e,n.href=a.result,r(n),n=null},a.readAsDataURL(t)}}},e.ptToPx=function(t){return n.asNumber(t)/.75},e.pxToPt=i,e._asColor=o,e._asPdfPen=a,e._asPdfBrush=s,e._asPdfFont=u,e._asPt=l,e._formatMacros=c,e._compare=h,e._shallowCopy=f,e._toTitleCase=d;var A=function(){function t(t,e,n){void 0===t&&(t=null),void 0===e&&(e=t),void 0===n&&(n=0),this.dash=t,this.gap=e,this.phase=n}return Object.defineProperty(t.prototype,"dash",{get:function(){return this._dash},set:function(t){this._dash=n.asNumber(t,!0,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gap",{get:function(){return this._gap},set:function(t){this._gap=n.asNumber(t,!0,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"phase",{get:function(){return this._phase},set:function(t){this._phase=n.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this._dash,this._gap,this._phase)},t.prototype.equals=function(e){return e instanceof t&&this._dash===e.dash&&this._gap===e.gap&&this._phase===e.phase},t}();e.PdfDashPattern=A;var P=function(){function t(){}return t.prototype.clone=function(){throw e._Errors.AbstractMethod},t.prototype.equals=function(t){throw e._Errors.AbstractMethod},t.prototype._getBrushObject=function(t){throw e._Errors.AbstractMethod},t}();e.PdfBrush=P;var j=function(){function t(t,e,r){this.offset=t||0,this.color=e||n.Color.fromRgba(0,0,0),this.opacity=null==r?1:r}return Object.defineProperty(t.prototype,"offset",{get:function(){return this._offset},set:function(t){this._offset=n.clamp(n.asNumber(t,!1,!0),0,1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(t){this._color=o(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this._opacity},set:function(t){this._opacity=n.clamp(n.asNumber(t,!1,!0),0,1)},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this.offset,this.color,this.opacity)},t.prototype.equals=function(e){return e instanceof t&&this._offset===e._offset&&this._color.equals(e._color)&&this._opacity===e._opacity},t}();e.PdfGradientStop=j;var O=function(t){function r(e,n){var r=t.call(this)||this;return r.stops=e||[],r.opacity=null==n?1:n,r}return __extends(r,t),Object.defineProperty(r.prototype,"opacity",{get:function(){return this._opacity},set:function(t){this._opacity=n.clamp(n.asNumber(t,!1,!0),0,1)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"stops",{get:function(){return this._stops},set:function(t){n.assert(n.isArray(t),e._Errors.InvalidArg("value")),this._stops=this._cloneStopsArray(t)},enumerable:!0,configurable:!0}),r.prototype.equals=function(t){return t instanceof r&&this._opacity===t.opacity&&h(this._stops,t._stops)},r.prototype._cloneStopsArray=function(t){for(var r=[],i=0;i<t.length;i++){var o=t[i];n.assert(o instanceof j,e._Errors.InvalidArg("stops["+i+"]")),r.push(t[i].clone())}return r},r}(P);e.PdfGradientBrush=O;var I=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o,a)||this;return s.x1=e,s.y1=n,s.x2=r,s.y2=i,s}return __extends(e,t),Object.defineProperty(e.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=n.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=n.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=n.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=n.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return new e(this._x1,this._y1,this._x2,this._y2,this.stops,this.opacity)},e.prototype.equals=function(n){return n instanceof e&&this._x1===n._x1&&this._y1===n._y1&&this._x2===n._x2&&this._y2===n._y2&&t.prototype.equals.call(this,n)},e.prototype._getBrushObject=function(t){for(var e=t._pdfdoc._document.linearGradient(this._x1+t._offset.x,this._y1+t._offset.y,this._x2+t._offset.x,this._y2+t._offset.y),n=this.stops,r=0;r<n.length;r++){var i=n[r];i&&e.stop(i.offset,[i.color.r,i.color.g,i.color.b],i.color.a)}return e},e}(O);e.PdfLinearGradientBrush=I;var T=function(t){function e(e,n,r,i,o,a,s,u){var l=t.call(this,s,u)||this;return l.x1=e,l.y1=n,l.r1=r,l.x2=i,l.y2=o,l.r2=a,l}return __extends(e,t),Object.defineProperty(e.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=n.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=n.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"r1",{get:function(){return this._r1},set:function(t){this._r1=n.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=n.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=n.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"r2",{get:function(){return this._r2},set:function(t){this._r2=n.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return new e(this._x1,this._y1,this._r1,this._x2,this._y2,this._r2,this.stops,this.opacity)},e.prototype.equals=function(n){return n instanceof e&&this._x1===n._x1&&this._y1===n._y1&&this._r1===n._r1&&this._x2===n._x2&&this._y2===n._y2&&this._r2===n._r2&&t.prototype.equals.call(this,n)},e.prototype._getBrushObject=function(t){for(var e=t._pdfdoc._document.radialGradient(this._x1+t._offset.x,this._y2+t._offset.y,this._r1,this._x2+t._offset.x,this._y2+t._offset.y,this._r2),n=this.stops,r=0;r<n.length;r++){var i=n[r];i&&e.stop(i.offset,[i.color.r,i.color.g,i.color.b],i.color.a)}return e},e}(O);e.PdfRadialGradientBrush=T;var B=function(t){function e(e){var r=t.call(this)||this;return r.color=e||n.Color.fromRgba(0,0,0),r}return __extends(e,t),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color=o(t)},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return new e(this._color)},e.prototype.equals=function(t){return t instanceof e&&this._color.equals(t._color)},e.prototype._getBrushObject=function(t){return this._color},e}(P);e.PdfSolidBrush=B;var L=function(){function t(t,e,r,i,o,a){if(null==t&&(t=n.Color.fromRgba(0,0,0)),null==e&&(e=1),null==r&&(r=new A(null,null,0)),null==i&&(i=y.Butt),null==o&&(o=m.Miter),null==a&&(a=10),!n.isObject(t)||t instanceof n.Color||t instanceof P)t instanceof P?this.brush=t:this.color=t,this.width=e,this.cap=i,this.join=o,this.miterLimit=a,this.dashPattern=r;else{var s=t;this.color=s.color,this.brush=s.brush,this.width=null!=s.width?s.width:e,this.cap=null!=s.cap?s.cap:i,this.join=null!=s.join?s.join:o,this.miterLimit=null!=s.miterLimit?s.miterLimit:a,this.dashPattern=s.dashPattern||r}this._color=this._color||n.Color.fromRgba(0,0,0)}return Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(t){this._color=o(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this._brush},set:function(t){t=s(t,!0),this._brush=t?t.clone():null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(t){this._width=n.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cap",{get:function(){return this._cap},set:function(t){this._cap=n.asEnum(t,y)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"join",{get:function(){return this._join},set:function(t){this._join=n.asEnum(t,m)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(t){this._miterLimit=n.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashPattern",{get:function(){return this._dashPattern},set:function(t){n.assert(t instanceof A,e._Errors.InvalidArg("value")),this._dashPattern=t.clone()},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=new t(this._color,this._width,this._dashPattern,this._cap,this._join,this._miterLimit);return e.brush=this._brush,e},t.prototype.equals=function(e){return e instanceof t&&this._color.equals(e._color)&&(this._brush?this._brush.equals(e._brush):this._brush===e._brush)&&this._width===e._width&&this._cap===e._cap&&this._join===e._join&&this._miterLimit===e._miterLimit&&this._dashPattern.equals(e._dashPattern)},t}();e.PdfPen=L;var R=function(){function t(t,e,n,r){void 0===t&&(t="times"),void 0===e&&(e=10),void 0===n&&(n="normal"),void 0===r&&(r="normal"),this.family=t,this.size=e,this.style=n,this.weight=r}return Object.defineProperty(t.prototype,"family",{get:function(){return this._family},set:function(t){this._family=n.asString(t,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){this._size=n.asNumber(t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this._style},set:function(r){(r=n.asString(r,!1))&&n.assert(!!t._KNOWN_STYLES[(r||"").toLowerCase()],e._Errors.InvalidArg("value")),this._style=r},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weight",{get:function(){return this._weight},set:function(r){(r=n.asString(r,!1))&&n.assert(!!t._KNOWN_WEIGHTS[(r||"").toLowerCase()],e._Errors.InvalidArg("value")),this._weight=r},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this.family,this.size,this.style,this.weight)},t.prototype.equals=function(e){return e instanceof t&&this._family===e._family&&this._size===e._size&&this._style===e._style&&this._weight===e._weight},t._DEF_NATIVE_NAME="Times-Roman",t._DEF_FAMILY_NAME="times",t._KNOWN_WEIGHTS={normal:1,bold:1,100:1,200:1,300:1,400:1,500:1,600:1,700:1,800:1,900:1},t._KNOWN_STYLES={normal:1,italic:1,oblique:1},t._DEF_PDFKIT_FONT=new t("helvetica",12),t._DEF_FONT=new t,t}();e.PdfFont=R;var M=function(){function t(t){if(this._values=[],this._keys={},t)for(var e=0;e<t.length;e++){var n=t[e];this._keys[n.key]=e,this._values.push({key:n.key,value:n.value})}}return t.prototype.hasKey=function(t){var e=this._keys[t];return void 0!==e?this._values[e].value:null},t.prototype.add=function(t,e){return this.hasKey(t)?null:(this._keys[t]=this._values.length,this._values.push({key:t,value:e}),e)},t.prototype.each=function(t){if(t)for(var e=0;e<this._values.length;e++){var n=this._values[e];if(!1===t(n.key,n.value))break}},t.prototype.eachReverse=function(t){if(t)for(var e=this._values.length-1;e>=0;e--){var n=this._values[e];if(!1===t(n.key,n.value))break}},t}(),N=function(){function t(t){var e=this;this._fonts=new M([{key:"zapfdingbats",value:{attributes:{fantasy:!0},normal:{400:"ZapfDingbats"}}},{key:"symbol",value:{attributes:{serif:!0},normal:{400:"Symbol"}}},{key:"courier",value:{attributes:{serif:!0,monospace:!0},normal:{400:"Courier",700:"Courier-Bold"},oblique:{400:"Courier-Oblique",700:"Courier-BoldOblique"}}},{key:"helvetica",value:{attributes:{sansSerif:!0},normal:{400:"Helvetica",700:"Helvetica-Bold"},oblique:{400:"Helvetica-Oblique",700:"Helvetica-BoldOblique"}}},{key:"times",value:{attributes:{serif:!0},normal:{400:"Times-Roman",700:"Times-Bold"},italic:{400:"Times-Italic",700:"Times-BoldItalic"}}}]),this._weightNameToNum={normal:400,bold:700},this._findFontCache={},this._internalFontNames={},this._doc=t,this._fonts.each(function(t,n){var r=function(t){for(var n in t)e._internalFontNames[t[n]]=1};r(n.normal)||r(n.italic)||r(n.oblique)})}return t.prototype.registerFont=function(t){n.assert(!!t,e._Errors.ValueCannotBeEmpty("font")),n.asString(t.name),n.assert(t.source instanceof ArrayBuffer,e._Errors.FontSourceMustBeArrayBuffer),t=f(t);var r=this._normalizeFontSelector(t.name,t.style,t.weight),i=this._fonts.hasKey(r.name);i||(i=this._fonts.add(r.name,{attributes:t}));var o=i[r.style];o||(o=i[r.style]={});var a=this._makeInternalName(r);return o[r.weight]||(this._doc.registerFont(a,t.source,t.family),this._findFontCache={},o[r.weight]=a,this._internalFontNames[a]=1),a},t.prototype.findFont=function(t,e,n){var r=this._normalizeFontSelector(t,e,n),i=this._makeInternalName(r);if(this._findFontCache[i])return this._findFontCache[i];r.name+=","+R._DEF_FAMILY_NAME;for(var o=0,a=r.name.split(",");o<a.length;o++){var s=this._findFont(a[o].replace(/["']/g,"").trim(),r.style,r.weight);if(s)return this._findFontCache[i]=s}return this._findFontCache[i]=this._internalFontNames[t]?t:R._DEF_NATIVE_NAME},t.prototype._normalizeFontSelector=function(t,e,n){return{name:(t||"").toLowerCase(),style:(e||R._DEF_FONT.style).toLowerCase(),weight:parseInt(this._weightNameToNum[n]||n)||parseInt(this._weightNameToNum[R._DEF_FONT.weight])}},t.prototype._findFont=function(t,e,n){var r,i=this,o=[];switch(e){case"italic":o=["italic","oblique","normal"];break;case"oblique":o=["oblique","italic","normal"];break;default:o=["normal","oblique","italic"]}switch(t){case"cursive":case"fantasy":case"monospace":case"serif":case"sans-serif":this._fonts.eachReverse(function(e,a){var s="sans-serif"===t?"sansSerif":t;if(a.attributes[s])for(var u=0;u<o.length;u++)if(r=i._findFontWeightFallback(e,o[u],n))return!1});break;default:if(this._fonts.hasKey(t))for(var a=0;a<o.length&&!r;a++)r=this._findFontWeightFallback(t,o[a],n)}return r},t.prototype._findFontWeightFallback=function(t,e,n,r){var i=this._fonts.hasKey(t);if(i&&i[e]){var o=i[e];if(o[n])return o[n];if(!r){r=[];for(var a in o)r.push(parseFloat(a));r.sort(function(t,e){return t-e})}if(n>500){for(var s=0,u=0;u<r.length;u++){if((c=r[u])>n)return o[c];s=c}if(s)return o[s]}else{if(!(n<400))return 400==n?o[500]?o[500]:this._findFontWeightFallback(t,e,300,r):o[400]?o[400]:this._findFontWeightFallback(t,e,300,r);for(var l=0,u=r.length-1;u>=0;u--){var c=r[u];if(c<n)return o[c];l=c}if(l)return o[l]}}return null},t.prototype._makeInternalName=function(t){return t.name+"-"+t.style+"-"+t.weight},t}();e._PdfFontRegistrar=N;var D=function(){function t(){this._ctxProps={xo:0,yo:0,lineGap:0}}return Object.defineProperty(t.prototype,"x",{get:function(){this._switchCtx();var t=this._pdfdoc._document.x-this._offset.x;return this._saveCtx(),t},set:function(t){t=n.asNumber(t),this._switchCtx(),this._pdfdoc._document.x=t+this._offset.x,this._saveCtx()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){this._switchCtx();var t=this._pdfdoc._document.y-this._offset.y;return this._saveCtx(),t},set:function(t){t=n.asNumber(t),this._switchCtx(),this._pdfdoc._document.y=t+this._offset.y,this._saveCtx()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineGap",{get:function(){return this._ctxProps.lineGap},set:function(t){this._ctxProps.lineGap=t=n.asNumber(t,!1,!0),this._pdfdoc&&this._pdfdoc._document&&(this._switchCtx(),this._pdfdoc._document.lineGap(t),this._saveCtx())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var t=this._pdfdoc._document.page;return Math.max(0,t.height-t.margins.top-t.margins.bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){var t=this._pdfdoc._document.page;return Math.max(t.width-t.margins.left-t.margins.right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paths",{get:function(){return this._graphics},enumerable:!0,configurable:!0}),t.prototype.drawText=function(t,e,r,i){if(this._assertPathStarted(),t=n.asString(t)){i=i||{};var o,l=this._pdfdoc,c=l._document,h=i.stroke&&i.fill?2:i.stroke?1:0;!i.strike&&!i.underline||i.stroke||(h=2),this._switchCtx();try{this._drawingText=!0,1&h||l._toggleBrush(s(i.brush)),3&h&&l._togglePen(a(i.pen)),l._toggleFont(u(i.font));var f=this._textOptionsToNative(i),d=i._baseline===S.Alphabetic?c.currentFontAscender():0;null==e?(c.y-=d,o=c.textAndMeasure(t,null,null,f)):o=c.textAndMeasure(t,n.asNumber(e)+this._offset.x,n.asNumber(r)+this._offset.y-d,f)}finally{this._drawingText=!1,this._saveCtx()}return{charCount:o.charCount||0,size:new n.Size(o.width||0,o.height||0)}}},t.prototype.drawImage=function(t,e,r,i){if(this._assertPathStarted(),!(t=n.asString(t)))return this;var o=U.getDataUri(t);this._switchCtx();try{var a={};if(i){switch(n.asEnum(i.align,w,!0)){case w.Center:a.align="center";break;case w.Right:a.align="right";break;default:a.align="left"}switch(n.asEnum(i.vAlign,x,!0)){case x.Center:a.valign="center";break;case x.Bottom:a.valign="bottom";break;default:a.valign="top"}var s=n.asNumber(i.width,!0,!0),u=n.asNumber(i.height,!0,!0);s&&u&&n.asBoolean(i.stretchProportionally,!0)?a.fit=[s,u]:(a.width=s,a.height=u)}null==e?this._pdfdoc._document.image(o,a):this._pdfdoc._document.image(o,n.asNumber(e)+this._offset.x,n.asNumber(r)+this._offset.y,a)}finally{this._saveCtx()}return this},t.prototype.drawSvg=function(t,e,r,i){if(i=i||{},this._assertPathStarted(),!(t=n.asString(t)))return this;var o;if(t.indexOf("data:image/svg")>=0)o=function(t){return decodeURIComponent(Array.prototype.map.call(atob(t),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}(t.substring(t.indexOf(",")+1));else{var a;if(o=Z.text(t,function(t){return a=t.statusText}),a)throw a}if(!o)return this;var s,u,l=new Ut(o,this,n.asFunction(i.urlResolver)),c=null==r,e=null!=e?e:this.x,r=null!=r?r:this.y,h=this.y,f=this.x,d=n.asNumber(i.width,!0,!0),p=n.asNumber(i.height,!0,!0),g=l.root.width.hasVal?l.root.width.val:void 0,_=l.root.height.hasVal?l.root.height.val:void 0;if((d||p)&&g&&_)if(s=d/g,u=p/_,d&&p){if(i.stretchProportionally){var y=Math.min(s,u);if(s===y)switch(n.asEnum(i.vAlign,x,!0)){case x.Center:r+=p/2-_*s/2;break;case x.Bottom:r+=p-_*s}if(u===y)switch(n.asEnum(i.align,w,!0)){case w.Center:e+=d/2-g*u/2;break;case w.Right:e+=d-g*u}s=u=y}}else i.width?u=s:s=u;s=s||1,u=u||1,this._switchCtx(),this._pdfdoc.saveState();try{this.translate(e,r),this.scale(s,u),l.render()}finally{this._pdfdoc.restoreState(),this._saveCtx()}if(this.x=f,this.y=h,c){var m=null!=p?p:null!=_?_*u:void 0;this.y+=m||0}return this},t.prototype.lineHeight=function(t){var e=this._pdfdoc;e._toggleFont(u(t)),this._switchCtx();var n=e._document.currentLineHeight();return this._saveCtx(),n},t.prototype.measureText=function(t,e,r){var i={};if(t=n.asString(t)){var o=this._pdfdoc;o._toggleFont(u(e)),this._switchCtx();try{i=o._document.textAndMeasure(t,null,null,this._textOptionsToNative(r),!0)}finally{this._saveCtx()}}return{charCount:i.charCount||0,size:new n.Size(i.width||0,i.height||0)}},t.prototype.moveDown=function(t,e){if(void 0===t&&(t=1),t=n.asNumber(t,!1,!0)){var r=this._pdfdoc;r._toggleFont(u(e)),this._switchCtx();try{r._document.moveDown(t)}finally{this._saveCtx()}}return this},t.prototype.moveUp=function(t,e){if(void 0===t&&(t=1),t=n.asNumber(t,!1,!0)){var r=this._pdfdoc;r._toggleFont(u(e)),this._switchCtx();try{r._document.moveUp(t)}finally{this._saveCtx()}}return this},t.prototype.scale=function(t,e,r){void 0===e&&(e=t),this._assertPathStarted(),r=r||new n.Point(0,0);var i=n.asNumber(r.x)+this._offset.x,o=n.asNumber(r.y)+this._offset.y;return t=n.asNumber(t,!1),e=n.asNumber(e,!1),this._pdfdoc._document.scale(t,e,{origin:[i,o]}),this},t.prototype.translate=function(t,e){return this._assertPathStarted(),t=n.asNumber(t),e=n.asNumber(e),this._pdfdoc._document.translate(t,e),this},t.prototype.transform=function(t,e,r,i,o,a){this._assertPathStarted(),t=n.asNumber(t),e=n.asNumber(e),r=n.asNumber(r),i=n.asNumber(i),o=n.asNumber(o),a=n.asNumber(a);var s=this._offset.x,u=this._offset.y;return this._pdfdoc._document.transform(t,e,r,i,o-t*s+s-r*u,a-e*s-i*u+u),this},t.prototype.rotate=function(t,e){this._assertPathStarted(),e=e||new n.Point(0,0);var r=n.asNumber(e.x)+this._offset.x,i=n.asNumber(e.y)+this._offset.y;return t=n.asNumber(t),this._pdfdoc._document.rotate(t,{origin:[r,i]}),this},t.prototype._assertPathStarted=function(){n.assert(!this.paths._hasPathBuffer(),e._Errors.PathStarted)},t.prototype._initialize=function(t,e,r){this._pdfdoc=t,this._offset=new n.Point(e,r),this._ctxProps={xo:e,yo:r,lineGap:this._ctxProps.lineGap},this._graphics=new G(this._pdfdoc,this._offset)},t.prototype._isDrawingText=function(){return this._drawingText},t.prototype._switchCtx=function(){this._pdfdoc._switchTextFlowCtx(this._ctxProps)},t.prototype._saveCtx=function(){this._ctxProps=this._pdfdoc._getTextFlowCtxState()},t.prototype._textOptionsToNative=function(t){var e=f(t=t||{});return null!=t.align&&(e.align=(k[n.asEnum(t.align,k)]||"").toLowerCase()),e},t}();e.PdfPageArea=D;var F=function(){function t(t,e,n){this.text=t||"",this.font=e||new R,this.brush=n||new B}return Object.defineProperty(t.prototype,"font",{get:function(){return this._font},set:function(t){t=u(t,!0),this._font=t?t.clone():t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(t){this._text=n.asString(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this._brush},set:function(t){t=s(t),this._brush=t?t.clone():t},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this.text,this.font,this.brush)},t.prototype.equals=function(e){return e instanceof t&&this._text===e.text&&(this._brush?this._brush.equals(e._brush):this._brush===e._brush)&&(this._font?this._font.equals(e._font):this._font===e._font)},t}();e.PdfRunningTitleDeclarativeContent=F;var z=function(t){function r(e){var r=t.call(this)||this;return r._height=24,r._declarative=new F,r._heightChanged=new n.Event,n.copy(r,e),r}return __extends(r,t),Object.defineProperty(r.prototype,"declarative",{get:function(){return this._declarative},set:function(t){null!=t&&(n.assert(t instanceof F,e._Errors.InvalidArg("value")),t=t.clone()),this._declarative=t},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this._height},set:function(t){t!==this._height&&(this._height=n.asNumber(t,!1,!0),this._heightChanged.raise(this,n.EventArgs.empty))},enumerable:!0,configurable:!0}),r.prototype.drawText=function(e,n,r,i){return i=i||{},i.height=1/0,t.prototype.drawText.call(this,e,n,r,i)},r}(D);e.PdfRunningTitle=z;var U=function(){function t(){}return t.getDataUri=function(r){if(n.assert(!!(r=n.asString(r)),e._Errors.EmptyUrl),t.DATAURI_CACHE[r])return t.DATAURI_CACHE[r];var i="";if(0===r.indexOf("data:")){if(!r.match(/^data:image\/(png|jpeg|jpg);base64,/))throw e._Errors.InvalidImageDataUri;i=r}else{var o,a=Z.arrayBuffer(r,function(t){return o=t.statusText});if(o)throw o;try{var s=new Uint16Array(a,0,2);if(55551!==s[0]&&(20617!==s[0]||18254!==s[1]))throw"";var u=t._toBase64(a);i="data:"+(55551===s[0]?"image/jpeg":"image/png")+";base64,"+u}catch(t){throw e._Errors.InvalidImageFormat}}return t.DATAURI_CACHE[r]=i},t._toBase64=function(t){for(var e="",n=new Uint8Array(t),r=0;r<n.byteLength;r++)e+=String.fromCharCode(n[r]);return window.btoa(e)},t.DATAURI_CACHE={},t}();e._PdfImageHelper=U;var G=function(){function t(t,e){this._pathBuffer=[],this._doc=t,this._offset=e}return t.prototype.moveTo=function(t,e){return this._pathBuffer.push({func:this._doc._document.moveTo,params:[n.asNumber(t)+this._offset.x,n.asNumber(e)+this._offset.y]}),this},t.prototype.lineTo=function(t,e){return this._pathBuffer.push({func:this._doc._document.lineTo,params:[n.asNumber(t)+this._offset.x,n.asNumber(e)+this._offset.y]}),this},t.prototype.quadraticCurveTo=function(t,e,r,i){return this._pathBuffer.push({func:this._doc._document.quadraticCurveTo,params:[n.asNumber(t)+this._offset.x,n.asNumber(e)+this._offset.y,n.asNumber(r)+this._offset.x,n.asNumber(i)+this._offset.y]}),this},t.prototype.bezierCurveTo=function(t,e,r,i,o,a){return this._pathBuffer.push({func:this._doc._document.bezierCurveTo,params:[n.asNumber(t)+this._offset.x,n.asNumber(e)+this._offset.y,n.asNumber(r)+this._offset.x,n.asNumber(i)+this._offset.y,n.asNumber(o)+this._offset.x,n.asNumber(a)+this._offset.y]}),this},t.prototype.svgPath=function(t){if(t){var e=H.offset(n.asString(t),this._offset);this._pathBuffer.push({func:this._doc._document.path,params:[n.asString(e)]})}return this},t.prototype.closePath=function(){return this._writePathBuffer(),this._doc._document.closePath(),this},t.prototype.rect=function(t,e,r,i){return this._pathBuffer.push({func:this._doc._document.rect,params:[n.asNumber(t)+this._offset.x,n.asNumber(e)+this._offset.y,n.asNumber(r,!1,!0),n.asNumber(i,!1,!0)]}),this},t.prototype.roundedRect=function(t,e,r,i,o){return void 0===o&&(o=0),this._pathBuffer.push({func:this._doc._document.roundedRect,params:[n.asNumber(t)+this._offset.x,n.asNumber(e)+this._offset.y,n.asNumber(r,!1,!0),n.asNumber(i,!1,!0),n.asNumber(o,!1,!0)]}),this},t.prototype.ellipse=function(t,e,r,i){return void 0===i&&(i=r),this._pathBuffer.push({func:this._doc._document.ellipse,params:[n.asNumber(t)+this._offset.x,n.asNumber(e)+this._offset.y,n.asNumber(r,!1,!0),n.asNumber(i,!1,!0)]}),this},t.prototype.circle=function(t,e,r){return this._pathBuffer.push({func:this._doc._document.circle,params:[n.asNumber(t)+this._offset.x,n.asNumber(e)+this._offset.y,n.asNumber(r,!1,!0)]}),this},t.prototype.polygon=function(t){if(t)for(var e=0;e<t.length;e++){var n=t[e];n[0]=n[0]+this._offset.x,n[1]=n[1]+this._offset.y}return this._pathBuffer.push({func:this._doc._document.polygon,params:t}),this},t.prototype.clip=function(t){return void 0===t&&(t=v.NonZero),this._writePathBuffer(),this._doc._document.clip(t===v.EvenOdd?"even-odd":"non-zero"),this},t.prototype.fill=function(t,e){return this._doc._toggleBrush(s(t)),this._writePathBuffer(),this._doc._document.fill(e===v.EvenOdd?"even-odd":"non-zero"),this},t.prototype.fillAndStroke=function(t,e,n){return this._doc._toggleBrush(s(t)),this._doc._togglePen(a(e)),this._writePathBuffer(),this._doc._document.fillAndStroke(n===v.EvenOdd?"even-odd":"non-zero"),this},t.prototype.stroke=function(t){return this._doc._togglePen(a(t)),this._writePathBuffer(),this._doc._document.stroke(),this},t.prototype._hasPathBuffer=function(){return this._pathBuffer.length>0},t.prototype._writePathBuffer=function(){for(var t=this._doc._document,e=0;e<this._pathBuffer.length;e++){var n=this._pathBuffer[e];n.func.apply(t,n.params)}this._pathBuffer=[]},t}();e.PdfPaths=G;var H=function(){function t(){}return t.offset=function(t,e){var n=this;return this._processPath(t,function(t,r,i,o){return t=n._updateOffset(t,e,r,i,o)})},t.scale=function(t,e){return this._processPath(t,function(t,n,r,i){if("a"===n||"A"===n){var o=i%7;if(o>=2&&o<=4)return t}return t*e})},t._processPath=function(t,e){for(var r,i=this._getTokenizer(t),o="",a="",s=-1,u=-1;r=i();){if(1===r.length&&/[a-zA-Z]/.test(r))u++,o=r,s=-1;else{s++;var l=e(parseFloat(r),o,u,s);r=n.toFixed(l,7,!1)+""}a+=r+" "}return a},t._getTokenizer=function(t){var e=t.length,n=0;return function(){if(n>=e)return"";for(;n<e&&(/\s/.test(t[n])||","==t[n]);)n++;for(var r=n;n<e&&/[0-9\.\-eE\+]/.test(t[n]);)n++;return n!=r?t.substr(r,n-r):t.substr(n++,1)}},t._updateOffset=function(t,e,n,r,i){var o=0;switch(n){case"m":0===r&&(0===i?o=-1:1===i&&(o=1));break;case"L":case"M":case"C":case"S":case"Q":case"T":o=i%2==0?-1:1;break;case"A":i%7==5?o=-1:i%7==6&&(o=1);break;case"H":o=-1;break;case"V":o=1}return o?-1===o?t+e.x:t+e.y:t},t}();e._PdfSvgPathHelper=H;var q=!!(new XMLHttpRequest).overrideMimeType,Z=function(){function t(){}return t.arrayBufferAsync=function(t,e,n){var r={method:"GET",responseType:"arraybuffer",async:!0};this._getData(t,r,e,n)},t.arrayBuffer=function(t,n){var r,i={method:"GET",async:!1};return e._IE||!q?(i.responseType="arraybuffer",this._getData(t,i,function(t,e){r=e},n)):(i.overrideMimeType="text/plain; charset=x-user-defined",this._getData(t,i,function(t,e){r=new ArrayBuffer(e.length);for(var n=new Uint8Array(r),i=0,o=e.length;i<o;i++)n[i]=255&e.charCodeAt(i)},n)),r},t.text=function(t,e){var n={method:"GET",async:!1},r="";return this._getData(t,n,function(t,e){return r=e},e),r},t._getData=function(t,e,n,r){var i=new XMLHttpRequest;if(e=e||{},i.open(e.method,t,e.async,e.user,e.password),i.addEventListener("load",function(){if(4===i.readyState){var t=i.status;t>=200&&t<300||304===t?n&&n(i,i.response):r&&r(i)}}),e.headers)for(var o in e.headers)i.setRequestHeader(o,e.headers[o]);e.responseType&&(i.responseType=e.responseType),e.overrideMimeType&&i.overrideMimeType&&i.overrideMimeType(e.overrideMimeType),i.send(e.data)},t}();e._XhrHelper=Z;var W=function(t){function e(e){var n=t.call(this)||this;return n._chunks=e,n}return __extends(e,t),Object.defineProperty(e.prototype,"blob",{get:function(){return this._blob||(this._blob=new Blob(this._chunks,{type:"application/pdf"})),this._blob},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chunks",{get:function(){return this._chunks},enumerable:!0,configurable:!0}),e}(n.EventArgs);e.PdfDocumentEndedEventArgs=W;var Y=function(t){function r(e){var r=t.call(this)||this;r._docInitialized=!1,r._compress=!0,r._bufferPages=!0,r._chunks=[],r._pageIndex=-1,r._graphicsStack=[],r._currentGS={},r.info={author:void 0,creationDate:void 0,keywords:void 0,modDate:void 0,subject:void 0,title:void 0},r.pageSettings={layout:b.Portrait,size:C.Letter,margins:{top:72,left:72,bottom:72,right:72},_copy:function(t,e){if("size"===t)return this.size=e,!0}},r.ended=new n.Event,r.pageAdded=new n.Event,r._runtimeProperties=["pageIndex","x","y"],n.copy(r,e);var i=function(t){r._doc=t,r._fontReg=new N(r._doc)},o=function(){r.setPen(r._currentGS[r._pageIndex].pen),r.setBrush(r._currentGS[r._pageIndex].brush),r._curFont=R._DEF_PDFKIT_FONT,r.setFont(new R)},a=!1,s={compress:r._compress,bufferPages:r._bufferPages,pageAdding:r._ehOnPageAdding=function(t,e){r._docInitialized||(a=!0,i(t)),r._onPageAdding(t,e)},pageAdded:r._ehOnPageAdded=function(t){var e=r._isDrawingText()?r._currentGS[r._pageIndex].brush:new B;r._currentGS[++r._pageIndex]={pen:new L,brush:e},r._docInitialized||o(),r._onPageAdded(t)}};return r._doc=new PDFDocument(s),a||(i(r._doc),o()),r._doc.on("data",r._ehOnDocData=function(t){r._onDocData(t)}).on("ending",r._ehOnDocEnding=function(){r._onDocEnding()}).on("end",r._ehOnDocEnded=function(){r._onDocEnded()}),r._docInitialized=!0,r}return __extends(r,t),Object.defineProperty(r.prototype,"compress",{get:function(){return this._compress},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"bufferPages",{get:function(){return this._bufferPages},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"header",{get:function(){var t=this;return this._header||(this._header=new z({_heightChanged:function(){t._docInitialized&&t._resetAreasOffset(t._doc)}})),this._header},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"footer",{get:function(){var t=this;return this._footer||(this._footer=new z({_heightChanged:function(){t._docInitialized&&t._resetAreasOffset(t._doc)}})),this._footer},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"pageIndex",{get:function(){return this._pageIndex},set:function(t){t=n.asNumber(t,!1,!0),this._pageIndex!==t&&(this._doc.switchToPage(t),this._pageIndex=t)},enumerable:!0,configurable:!0}),r.prototype.onEnded=function(t){this.ended&&this.ended.raise(this,t)},r.prototype.onPageAdded=function(t){this.pageAdded&&this.pageAdded.raise(this,t)},r.prototype.dispose=function(){this._doc&&(this._doc.removeListener("data",this._ehOnDocData).removeListener("ending",this._ehOnDocEnding).removeListener("end",this._ehOnDocEnded).removeListener("pageAdding",this._ehOnPageAdding).removeListener("pageAdded",this._ehOnPageAdded),this._doc=null,this._chunks=null)},Object.defineProperty(r.prototype,"currentPageSettings",{get:function(){var t=this._doc.page;return{layout:"landscape"===t.layout?b.Landscape:b.Portrait,size:n.isArray(t.size)?new n.Size(t.size[0],t.size[1]):C[t.size.match(/\d+/)?t.size:d(t.size)],margins:{left:t.margins.left,right:t.margins.right,top:t.margins.top-this.header.height,bottom:t.margins.bottom-this.footer.height}}},enumerable:!0,configurable:!0}),r.prototype.addPage=function(t){var e=this._pageSettingsToNative(t||this.pageSettings);return this._doc.addPage(e),this},r.prototype.bufferedPageRange=function(){return this._doc.bufferedPageRange()},r.prototype.end=function(){this._doc.end()},r.prototype.setBrush=function(t){return this._assertAreasPathStarted(),this._setCurBrush(this._defBrush=s(t,!1).clone()),this},r.prototype.setPen=function(t){return this._assertAreasPathStarted(),this._setCurPen(this._defPen=a(t,!1).clone()),this},r.prototype.setFont=function(t){return this._setCurFont(this._defFont=u(t,!1).clone()),this},r.prototype._getFont=function(){return this._curFont},r.prototype.registerFont=function(t){n.assert(!!t,e._Errors.ValueCannotBeEmpty("font"));var r;if(n.isString(t.source)){var i;if(r=Z.arrayBuffer(t.source,function(t){return i=t.statusText}),i)throw i}else{if(!(t.source instanceof ArrayBuffer))throw e._Errors.FontSourceMustBeStringArrayBuffer;r=t.source}return t=f(t),t.source=r,this._fontReg.registerFont(t),this},r.prototype.registerFontAsync=function(t,r){var i=this;n.assert("string"==typeof t.source,e._Errors.FontSourceMustBeString),n.asFunction(r,!1),Z.arrayBufferAsync(t.source,function(e,n){var o=f(t);o.source=n,i._fontReg.registerFont(o),r(t)})},r.prototype.saveState=function(){return this._assertAreasPathStarted(),this._graphicsStack.push(this._currentGS[this._pageIndex].pen.clone(),this._defPen.clone(),this._currentGS[this._pageIndex].brush.clone(),this._defBrush.clone()),this._pdfdoc._document.save(),this},r.prototype.restoreState=function(){return this._assertAreasPathStarted(),this._graphicsStack.length&&(this._defBrush=this._graphicsStack.pop(),this._currentGS[this._pageIndex].brush=this._graphicsStack.pop(),this._defPen=this._graphicsStack.pop(),this._currentGS[this._pageIndex].pen=this._graphicsStack.pop()),this._pdfdoc._document.restore(),this},r.prototype._copy=function(t,e){return"compress"===t?(this._compress=n.asBoolean(e),!0):"bufferPages"===t?(this._bufferPages=n.asBoolean(e),!0):this._runtimeProperties.indexOf(t)>=0},Object.defineProperty(r.prototype,"_document",{get:function(){return this._doc},enumerable:!0,configurable:!0}),r.prototype._switchTextFlowCtx=function(t){this._doc.x=t.xo,this._doc.y=t.yo,this._doc.lineGap(t.lineGap)},r.prototype._getTextFlowCtxState=function(){return{xo:this._doc.x,yo:this._doc.y,lineGap:this._doc.currentLineGap()}},r.prototype._toggleBrush=function(t){t?this._setCurBrush(t):this._setCurBrush(this._defBrush)},r.prototype._togglePen=function(t){t?this._setCurPen(t):this._setCurPen(this._defPen)},r.prototype._toggleFont=function(t){t?this._setCurFont(t):this._setCurFont(this._defFont)},r.prototype._onDocData=function(t){this._chunks.push(t)},r.prototype._onDocEnding=function(){if(this._processHeadersFooters(),this.info){var t;(t=this.info.author)&&(this._doc.info.Author=t),(t=this.info.creationDate)&&(this._doc.info.CreationDate=t),(t=this.info.keywords)&&(this._doc.info.Keywords=t),(t=this.info.modDate)&&(this._doc.info.ModDate=t),(t=this.info.subject)&&(this._doc.info.Subject=t),(t=this.info.title)&&(this._doc.info.Title=t)}},r.prototype._onDocEnded=function(){if(e._IE&&this._chunks.length&&!this._chunks[0].buffer)for(var t=0;t<this._chunks.length;t++){for(var n=this._chunks[t],r=new Uint8Array(n.length),i=0;i<n.length;i++)r[i]=n[i];this._chunks[t]=r.buffer}this.onEnded(new W(this._chunks)),this._chunks=[]},r.prototype._onPageAdding=function(t,e){if(this.pageSettings){var n=this._pageSettingsToNative(this.pageSettings);e.layout=t.options.layout=n.layout,e.margins=t.options.margins=n.margins,e.size=t.options.size=n.size}},r.prototype._onPageAdded=function(t){t.page.originalMargins=f(t.page.margins),this._resetAreasOffset(t),this.onPageAdded(n.EventArgs.empty)},r.prototype._assertAreasPathStarted=function(){this._docInitialized&&(this._assertPathStarted(),this.header._assertPathStarted(),this.footer._assertPathStarted())},r.prototype._pageSettingsToNative=function(t){var e={};if(t){var r=n.asEnum(t.layout,b,!0);null!=r&&(e.layout=(b[r]||"").toLowerCase());var i=t.margins;i&&(e.margins={left:n.asNumber(i.left,!1,!0),right:n.asNumber(i.right,!1,!0),top:n.asNumber(i.top,!1,!0),bottom:n.asNumber(i.bottom,!1,!0)});var o=t.size;null!=o&&(o instanceof n.Size?e.size=[n.asNumber(o.width,!1,!0),n.asNumber(o.height,!1,!0)]:(o=n.asEnum(o,C),e.size=(C[o]||"").toUpperCase()))}return e},r.prototype._processHeadersFooters=function(){var t=this.header,r=this.footer;if(t.height>0||r.height>0){var i=this._doc;n.assert(i.options.bufferPages,e._Errors.BufferPagesMustBeEnabled);for(var o=i.bufferedPageRange(),a=o.start;a<o.count;a++){var s={Page:a+1,Pages:o.count};this.pageIndex=a,this._renderHeaderFooter(t,s,!0),this._renderHeaderFooter(r,s,!1)}}},r.prototype._renderHeaderFooter=function(t,e,n){if(t.height>0&&t.declarative&&t.declarative.text){var r=c(t.declarative.text,e).split("\t");r.length>0&&r[0]&&this._renderHeaderFooterPart(t,r[0],k.Left,n),r.length>1&&r[1]&&this._renderHeaderFooterPart(t,r[1],k.Center,n),r.length>2&&r[2]&&this._renderHeaderFooterPart(t,r[2],k.Right,n)}},r.prototype._renderHeaderFooterPart=function(t,e,n,r){var i={font:t.declarative.font,brush:t.declarative.brush,width:t.width,height:t.height,align:n};if(r)this.header.drawText(e,0,0,i);else{i.includeLastLineExternalLeading=!1;var o=this.footer.measureText(e,i.font,i);this.footer.drawText(e,0,this.footer.height-o.size.height,i)}},r.prototype._setCurBrush=function(t){this._currentGS[this.pageIndex].brush.equals(t)||(this._setNativeDocBrush(t,!1),this._currentGS[this.pageIndex].brush=t.clone())},r.prototype._setCurFont=function(t){if(!this._curFont.equals(t)){var e=this._fontReg.findFont(t.family,t.style,t.weight);this._doc.font(e,t.size||R._DEF_FONT.size),this._curFont=t.clone()}},r.prototype._setCurPen=function(t){var e=this._doc,n=this._currentGS[this.pageIndex].pen;!t.brush||n.brush&&n.brush.equals(t.brush)?(n.brush&&!t.brush||!n.brush&&!n.color.equals(t.color))&&e.strokeColor([t.color.r,t.color.g,t.color.b],t.color.a):this._setNativeDocBrush(t.brush,!0),n.width!==t.width&&e.lineWidth(t.width),n.miterLimit!==t.miterLimit&&e.miterLimit(t.miterLimit),n.cap!==t.cap&&e.lineCap(t.cap),n.join!==t.join&&e.lineJoin(t.join),n.dashPattern.equals(t.dashPattern)||(null!=t.dashPattern.dash?e.dash(t.dashPattern.dash,{space:t.dashPattern.gap,phase:t.dashPattern.phase}):null!=n.dashPattern.dash&&e.undash()),this._currentGS[this.pageIndex].pen=t.clone()},r.prototype._setNativeDocBrush=function(t,e){var r=this._doc,i=t._getBrushObject(this),o=1;i instanceof n.Color?(o=i.a,i=[i.r,i.g,i.b]):t instanceof O&&(o=t.opacity),e?r.strokeColor(i,o):r.fillColor(i,o)},r.prototype._resetAreasOffset=function(t){t.page.margins.top=t.page.originalMargins.top+this.header.height,t.y=t.page.margins.top,t.page.margins.bottom=t.page.originalMargins.bottom+this.footer.height,this._header._initialize(this,t.page.margins.left,t.page.originalMargins.top),this._initialize(this,t.page.margins.left,t.page.margins.top),this._footer._initialize(this,t.page.margins.left,t.page.height-t.page.margins.bottom)},r}(D);e.PdfDocument=Y,e._compressSpaces=p,e._resolveUrlIfRelative=g;var V=function(){function t(t,e){this.selector=t,this.declarations={},this._fillDeclarations(e)}return t.prototype._fillDeclarations=function(t){var e=this;t&&t.split(";").forEach(function(t){if(t){var n=t.split(":");if(2===n.length){var r=n[0].trim().toLowerCase(),i=n[1].trim();if(r&&i){var o=/!important$/i.test(i);o&&(i=i.replace(/!important$/i,"").trim()),i&&(e.declarations[r]={value:i,important:o})}}}})},t}();e._SvgCssRule=V;var K=function(){function t(){}return t.matchesSelector=function(t,e){var n=!1;try{n=(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}catch(t){}return n},t.getSpecificity=function(t){var e=0,n=0,r=0,i=function(e){var n=(t.match(e)||[]).length;return n&&(t=t.replace(e,"")),n};return t=t.replace(/:not\(([^\)]*)\)/g,function(t,e){return" "+e+" "}),n+=i(/(\[[^\]]+\])/g),e+=i(/(#[^\s\+>~\.\[:]+)/g),n+=i(/(\.[^\s\+>~\.\[:]+)/g),r+=i(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi),n+=i(/(:[\w-]+\([^\)]*\))/gi),n+=i(/(:[^\s\+>~\.\[:]+)/g),t=t.replace(/[\*\s\+>~]/g," "),t=t.replace(/[#\.]/g," "),r+=i(/([^\s\+>~\.\[:]+)/g),e<<16|n<<8|r},t.getComputedStyle=function(t,e){var n=this,r={},i=[];if(t.className)for(var i=[],o=0,a=Object.keys(e);o<a.length;o++){var s=a[o];this.matchesSelector(t,s)&&i.push(e[s])}i.sort(function(t,e){return n.getSpecificity(t.selector)-n.getSpecificity(e.selector)});var u=t.getAttribute("style");u&&i.push(new V("_inline_",p(u)));for(o=0;o<i.length;o++)for(var l=i[o],c=0,a=Object.keys(l.declarations);c<a.length;c++){var h=a[c],f=l.declarations[h];null!=r[h]&&!f.important&&r[h].important||(r[h]=f)}for(var d={},o=0,a=Object.keys(r);o<a.length;o++)d[h=a[o]]=r[h].value;return d},t.registerFontFace=function(t,e,n){var r=e.declarations;r["font-family"]&&r.src&&r.src.value.split(",").every(function(e){if(e.match(/format\(\s*['"]?truetype['"]?\s*\)/i)){var i=e.match(/url\(\s*['"]?([^'"\)]+)['"]?\s*\)/i);if(i){var o=i[1].trim(),a=!1;if(o=g(o,n)){var s={name:r["font-family"].value,source:o,weight:r["font-weight"]?r["font-weight"].value.toLowerCase():"normal",style:r["font-style"]?r["font-style"].value.toLowerCase():"normal"};try{t.registerFont(s),a=!0}catch(t){}}return!a}}return!0})},t}();e._SvgCssHelper=K;var X;!function(t){t[t.Default=1]="Default",t[t.None=2]="None",t[t.Px=3]="Px"}(X=e._SvgNumConversion||(e._SvgNumConversion={}));var J;!function(t){t[t.Width=1]="Width",t[t.Height=2]="Height",t[t.Other=3]="Other"}(J=e._SvgLengthContext||(e._SvgLengthContext={}));var Q;!function(t){t[t.Number=1]="Number",t[t.String=2]="String"}(Q=e._SvgAttrType||(e._SvgAttrType={}));var $=function(){function t(t,r,i,o,a,s,u){void 0===o&&(o=void 0),void 0===a&&(a=X.Default),void 0===s&&(s=J.Other),void 0===u&&(u=!1),n.assert(!!t,e._Errors.ValueCannotBeEmpty("owner")),n.assert(!!r,e._Errors.ValueCannotBeEmpty("propName")),this._owner=t,this._propName=r,this._propType=i,this._defValue=o,this._inheritable=u,this._nc=a,this._pCtx=s,this._searchValue=!0}return t.parseValue=function(t,n,r,i,o){if(null==t)return t;if(n&Q.Number){var a,s;if("number"==typeof t)a=t;else{var u=t.match(/^([\+-]?[\d\.]+)(em|ex|px|pt|pc|cm|mm|in|%)?$/);u&&(a=parseFloat(u[1]),s=u[2])}if(null!=a&&a===a){if(o!==X.Default){if(s)throw e._Errors.InvalidFormat(t);if(o===X.None)return a}switch(s){case"mm":return 72*a/25.4;case"cm":return 72*a/2.54;case"in":return 72*a;case"pt":return a;case"pc":return 12*a;case"%":switch(i){case J.Height:a*=r.height/100;break;case J.Width:a*=r.width/100;break;case J.Other:a*=Math.sqrt(r.width*r.width+r.height*r.height)/Math.sqrt(2)/100}return a;case"px":default:return.75*a}}}if(n&Q.String)return t+"";throw e._Errors.InvalidFormat(t)},Object.defineProperty(t.prototype,"hasVal",{get:function(){return null!=this._val},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"val",{get:function(){if(null!=this._val)return this._val;var t=n.isFunction(this._defValue)?this._defValue.call(this,this._owner.ctx):this._defValue;return this._parse(t)},set:function(t){this._searchValue=!1,this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_val",{get:function(){if(this._searchValue){this._searchValue=!1;for(var t,e=this._owner;e&&(t=e.attr(this._propName),this._inheritable&&(null==t||"inherit"==t));e=e.parent);this._value="inherit"===t?void 0:this._parse(t)}return this._value},enumerable:!0,configurable:!0}),t.prototype.reset=function(){this._value=void 0,this._searchValue=!0},t.prototype._parse=function(e,n){return e=t.parseValue(e,this._propType,this._owner.viewport,this._pCtx,n||this._nc)},t}();e._SvgAttr=$;var tt=function(t){function e(e,n,r,i,o,a){return void 0===r&&(r=void 0),void 0===i&&(i=X.Default),void 0===o&&(o=J.Other),t.call(this,e,n,Q.Number,r,i,o,a)||this}return __extends(e,t),e}($);e._SvgNumAttr=tt;var et=function(t){function e(e,n,r,i){return t.call(this,e,n,Q.String,r,void 0,void 0,i)||this}return __extends(e,t),e}($);e._SvgStrAttr=et;var nt=function(t){function e(e,n,r,i){return void 0===r&&(r=void 0),void 0===i&&(i=!0),t.call(this,e,n,Q.String,r,X.None,J.Other,i)||this}return __extends(e,t),e.prototype.asHref=function(){var t=this.val.match(/url\((.+)\)/);return t?t[1]:null},e.prototype._parse=function(e){if(""!==e&&"null"!==e&&"undefined"!==e)return t.prototype._parse.call(this,e)},e}($);e._SvgColorAttr=nt;var rt=function(t){function e(e){return t.call(this,e,"stroke-dasharray",Q.Number,void 0,X.Px,J.Other,!0)||this}return __extends(e,t),e.prototype._parse=function(e){var n,r=(e||"").trim().split(/[\s,]+/);if(r.length){n=[];try{for(var i=0;i<r.length;i++)r[i]&&n.push(t.prototype._parse.call(this,r[i]))}catch(t){return}return n.length?n:void 0}return n},e}($);e._SvgDashArrayAttr=rt;var it=function(t){function e(e,n){return t.call(this,e,n,Q.String,v.NonZero,void 0,void 0,!0)||this}return __extends(e,t),e.prototype._parse=function(t){if(n.isNumber(t))return t;var e=(t||"").match(/(nonzero|evenodd)/i);return e?"nonzero"===e[1]?v.NonZero:v.EvenOdd:void 0},e}($);e._SvgFillRuleAttr=it;var ot=function(t){function e(e,n){return t.call(this,e,n)||this}return __extends(e,t),e.prototype._parse=function(t){var e=(t=(t||"").trim()).match(/url\((.+)\)/);return e&&(t=e[1].trim()),t=t.replace(/["']/g,"")},e}(et);e._SvgHRefAttr=ot;var at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype._parse=function(e){if((e=t.prototype._parse.call(this,e))&&"#"===e[0])return e.substring(1)},e}(ot);e._SvgIdRefAttr=at;var st=function(t){function e(e,n){return t.call(this,e,n,Q.Number,void 0,X.Px)||this}return __extends(e,t),e.prototype._parse=function(e){var r,i=(e||"").trim().split(/[\s,]+/),o=2*Math.floor(i.length/2);if(o){r=[];try{for(var a=0;a<o-1;a+=2)r.push(new n.Point(t.prototype._parse.call(this,i[a]),t.prototype._parse.call(this,i[a+1])))}catch(t){return}}return r},e}($);e._SvgPointsArrayAttr=st;var ut=function(t){function e(e){return t.call(this,e,"transform",Q.Number,void 0,X.None)||this}return __extends(e,t),e.prototype.apply=function(t){var e=t.ctx.area;this.hasVal&&this.val.forEach(function(t){t(e)})},e.prototype._parse=function(e){var r=this,i=[],o=(e||"").match(/((matrix|translate|scale|rotate|skewX|skewY)\([^\)]+\))+/g);if(o)for(var a=0;a<o.length;a++){var s=o[a].match(/(\w+)\(([^\)]+)\)/),u=[];try{s[2].trim().split(/[\s,]+/).forEach(function(e){e&&u.push(t.prototype._parse.call(r,e,X.None))})}catch(t){return}if(u.length)switch(s[1]){case"matrix":i.push(function(t,e,n,r,i,o){return function(a){a.transform(t,e,n,r,i,o)}}(u[0],u[1],u[2],u[3],t.prototype._parse.call(this,u[4],X.Px),t.prototype._parse.call(this,u[5],X.Px)));break;case"translate":i.push(function(t,e){return function(n){n.translate(t,e)}}(t.prototype._parse.call(this,u[0],X.Px),t.prototype._parse.call(this,u[1]||0,X.Px)));break;case"scale":i.push(function(t,e){return function(n){n.scale(t,e)}}(u[0],u[1]));break;case"rotate":i.push(function(t,e){return function(n){n.rotate(t,e)}}(u[0],new n.Point(t.prototype._parse.call(this,u[1]||0,X.Px),t.prototype._parse.call(this,u[2]||0,X.Px))));break;case"skewX":i.push(function(t){return function(e){e.transform(1,0,t,1,0,0)}}(Math.tan(u[0]*Math.PI/180)));break;case"skewY":i.push(function(t){return function(e){e.transform(1,t,0,1,0,0)}}(Math.tan(u[0]*Math.PI/180)))}}return i.length?i:void 0},e}($);e._SvgTransformAttr=ut;var lt=function(t){function e(e){return t.call(this,e,"text-decoration",Q.String,void 0,X.None)||this}return __extends(e,t),e.prototype._parse=function(t){var e,n=(t||"").trim().toLowerCase().split(/[\s,]+/);if(n.length){e=[];for(var r=0;r<n.length;r++)/line-through|overline|underline/.test(n[r])&&e.push(n[r])}return e&&e.length?e:void 0},e}($);e._SvgTextDecorationAttr=lt;var ct=function(t){function e(e){return t.call(this,e,"viewBox",Q.Number,void 0,X.Px)||this}return __extends(e,t),e.prototype._parse=function(e){var n,r=(e||"").trim().split(/[\s,]+/);return 4===r.length&&(n={minX:t.prototype._parse.call(this,r[0]),minY:t.prototype._parse.call(this,r[1]),width:t.prototype._parse.call(this,r[2]),height:t.prototype._parse.call(this,r[3])}),n},e}($);e._SvgViewboxAttr=ct;var ht=function(t){function e(e){return t.call(this,e,"preserveAspectRatio",Q.Number,"xMidYMid meet")||this}return __extends(e,t),e.prototype._parse=function(t){var e;if("string"==typeof t){var n=t.replace(/^defer\s+/,"").trim().split(/\s+/);e={align:n[0],meet:!n[1]||"meet"===n[1]}}else e=t;return e},e}($);e._SvgPreserveAspectRatioAttr=ht;var ft=function(){function t(t){this._owner=t,this.aspect=new ht(this._owner),this.viewBox=new ct(this._owner)}return t.prototype.apply=function(t){var e=t.ctx.area,r=t.viewport,i=this.viewBox.val;if(r&&i){if(i.width&&i.height){var o=this.aspect.val,a=r.width/i.width,s=r.height/i.height,u=Math.min(a,s),l=Math.max(a,s),c=i.width*(o.meet?u:l),h=i.height*(o.meet?u:l);if("none"===o.align)e.scale(a,s);else{var f=o.meet?u:l,d=0,p=0;o.align.match(/^xMid/)&&f===s?d=r.width/2-c/2:o.align.match(/^xMax/)&&f===s&&(d=r.width-c),o.align.match(/YMid$/)&&f===a?p=r.height/2-h/2:o.align.match(/YMax$/)&&f===a&&(p=r.height-h),(d||p)&&e.translate(d,p),o.meet?e.scale(u,u):e.scale(l,l),(i.minX||i.minY)&&e.translate(-i.minX,-i.minY)}}return new n.Size(i.width,i.height)}return r},t}();e._SvgScaleAttributes=ft;var dt=function(){function t(t){this._owner=t,this.color=new nt(this._owner,"stroke","none"),this.dashArray=new rt(this._owner),this.dashOffset=new tt(this._owner,"stroke-dashoffset",0,X.Default,J.Other,!0),this.lineCap=new et(this._owner,"stroke-linecap","butt",!0),this.lineJoin=new et(this._owner,"stroke-linejoin","miter",!0),this.miterLimit=new tt(this._owner,"stroke-miterlimit",4,X.None,J.Other,!0),this.opacity=new tt(this._owner,"stroke-opacity",1,X.None,J.Other,!0),this.width=new tt(this._owner,"stroke-width",1,X.Default,J.Other,!0)}return t.prototype.toPen=function(t){var e=new n.Color(this.color.val);this.opacity.hasVal&&(e.a=this.opacity.val);var r=new L(e,this.width.val);if(this.dashArray.hasVal){var i=this.dashArray.val;i.length&&(r.dashPattern=new A(i[0],i.length>1?i[1]:void 0,this.dashOffset.val))}switch(this.lineCap.val){case"butt":r.cap=y.Butt;break;case"round":r.cap=y.Round;break;case"square":r.cap=y.Square}switch(this.lineJoin.val){case"miter":r.join=m.Miter;break;case"round":r.join=m.Round;break;case"bevel":r.join=m.Bevel}return r.miterLimit=this.miterLimit.val,r},t}();e._SvgStrokeAttributes=dt;var pt=function(){function t(t){this._owner=t,this.color=new nt(this._owner,"fill","black"),this.opacity=new tt(this._owner,"fill-opacity",1,X.None,void 0,!0),this.rule=new it(this._owner,"fill-rule")}return t.prototype.toBrush=function(t){var e,r=this.color.asHref();if(r&&t){var i=t.ctx.getElement(r);if(i instanceof Tt)return i.toBrush(t)}return e=new n.Color(this.color.val),this.opacity.hasVal&&(e.a=this.opacity.val),new B(e)},t}();e._SvgFillAttributes=pt;var gt=function(){function t(t){this._owner=t,this.family=new et(this._owner,"font-family",function(t){var e=t.area._pdfdoc._getFont();return e?e.family:void 0},!0),this.size=new $(this._owner,"font-size",Q.Number|Q.String,"medium",void 0,J.Other,!0),this.style=new et(this._owner,"font-style","normal",!0),this.weight=new et(this._owner,"font-weight","normal",!0)}return t.prototype.toFont=function(){var t=l(this.size.val);return new R(this.family.val,t,this.style.val,this.weight.val)},t}();e._SvgFontAttributes=gt;var _t=function(){function t(t){this._owner=t,this.clipRule=new it(this._owner,"clip-rule"),this.fill=new pt(this._owner),this.font=new gt(this._owner),this.stroke=new dt(this._owner)}return t.prototype.apply=function(t,e,r){var i=t.ctx.area;t.renderMode===yt.Clip||(e&&r&&"none"!==this.fill.color.val&&"none"!==this.stroke.color.val?i.paths.fillAndStroke(this.fill.toBrush(t),this.stroke.toPen(t),this.fill.rule.val):e&&"none"!==this.fill.color.val?i.paths.fill(this.fill.toBrush(t),this.fill.rule.val):r&&"none"!==this.stroke.color.val?i.paths.stroke(this.stroke.toPen(t)):i.paths.stroke(n.Color.fromRgba(0,0,0,0)))},t}();e._SvgStyleAttributes=_t;var yt;!function(t){t[t.Render=0]="Render",t[t.Ignore=1]="Ignore",t[t.Clip=2]="Clip"}(yt=e._SvgRenderMode||(e._SvgRenderMode={}));var mt=function(){function t(t,e,n){void 0===n&&(n=yt.Render),this._children=[],this._attributes={},this._defRenderMode=n,this._ctx=t}return Object.defineProperty(t.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ctx",{get:function(){return this._ctx},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},set:function(t){this._parent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this._style||(this._style=new _t(this)),this._style},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewport",{get:function(){return this._viewport},set:function(t){this._viewport=t.clone()},enumerable:!0,configurable:!0}),t.prototype.attr=function(t,e){return t=t.toLowerCase(),arguments.length>1&&(this._attributes[t]=e),this._attributes[t]},t.prototype.appendNode=function(t){t&&t!==this&&t.parent!==this&&(t.remove(),this.children.push(t),t.parent=this)},t.prototype.copyAttributesFrom=function(t,e){if(t){var n=t._attributes,r=this._attributes;for(var i in n)n.hasOwnProperty(i)&&null==r[i]&&(!e||e.indexOf(i)<0)&&(r[i]=n[i])}},t.prototype.clone=function(){var t=new(Function.prototype.bind.call(this.constructor,null,this.ctx,null));return t.copyAttributesFrom(this),this._children.forEach(function(e){t.appendNode(e.clone())}),t},t.prototype.remove=function(){var t=this.parent;if(t){for(var e=0;e<t.children.length;e++)if(t.children[e]===this){t.children.splice(e,1);break}this.parent=null}},t.prototype.clearAttr=function(t){delete this._attributes[t.toLowerCase()]},t.prototype.render=function(t,e){this._viewport=t.clone(),(this._curRenderMode=e||this._defRenderMode)!==yt.Ignore&&this._render()},Object.defineProperty(t.prototype,"renderMode",{get:function(){return this._curRenderMode},enumerable:!0,configurable:!0}),t.prototype._render=function(){this._renderContent()},t.prototype._renderContent=function(){for(var t=0;t<this._children.length;t++)this._children[t].render(this.viewport,this.renderMode)},t}();e._SvgElementBase=mt;var vt=function(t){function e(e,n,r){void 0===r&&(r=yt.Render);var i=t.call(this,e,n,r)||this;return i._clipPath=new at(i,"clip-path"),i}return __extends(e,t),e.prototype._render=function(){var e,n=this.ctx.area;if(this._clipPath.val){var r=this.ctx.getElement(this._clipPath.val);(e=!!(r&&r instanceof jt))&&(n._pdfdoc.saveState(),r.render(this.viewport,yt.Clip),n.paths.clip(this.style.clipRule.val))}t.prototype._render.call(this),e&&n._pdfdoc.restoreState()},e}(mt);e._SvgClippableElementBase=vt;var bt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r._transform=new ut(r),r}return __extends(e,t),e.prototype._render=function(){var e=this._transform.hasVal&&this.renderMode!==yt.Clip;e&&(this.ctx.area._pdfdoc.saveState(),this._transform.apply(this)),t.prototype._render.call(this),e&&this.ctx.area._pdfdoc.restoreState()},e}(vt);e._SvgTransformableElementBase=bt;var wt=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e._fill=!0,e._stroke=!0,e}return __extends(r,t),r.prototype._renderContent=function(){this._draw(),this.style.apply(this,this._fill,this._stroke)},r.prototype._draw=function(){n.assert(!1,e._Errors.AbstractMethod)},r}(bt);e._SvgShapeElementBase=wt;var xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype._draw=function(){var t=new tt(this,"r",0).val;if(t>0){var e=new tt(this,"cx",0,X.Default,J.Width).val,n=new tt(this,"cy",0,X.Default,J.Height).val;this.ctx.area.paths.circle(e,n,t)}},e}(wt);e._SvgCircleElementImpl=xt;var kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype._draw=function(){var t=new tt(this,"rx",0,X.Default,J.Width).val,e=new tt(this,"ry",0,X.Default,J.Height).val;if(t>0&&e>0){var n=new tt(this,"cx",0,X.Default,J.Width).val,r=new tt(this,"cy",0,X.Default,J.Height).val;this.ctx.area.paths.ellipse(n,r,t,e)}},e}(wt);e._SvgEllipseElementImpl=kt;var St=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r._fill=!1,r}return __extends(e,t),e.prototype._draw=function(){var t=new tt(this,"x1",0,X.Default,J.Width).val,e=new tt(this,"y1",0,X.Default,J.Height).val,n=new tt(this,"x2",0,X.Default,J.Width).val,r=new tt(this,"y2",0,X.Default,J.Height).val;this.ctx.area.paths.moveTo(t,e).lineTo(n,r)},e}(wt);e._SvgLineElementImpl=St;var Ct=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r._d=new et(r,"d"),r}return __extends(e,t),e.prototype._renderContent=function(){var e=this.ctx.area;if(this.renderMode===yt.Clip){if(this._d.hasVal){var n=H.scale(this._d.val,.75);this.attr("d",n),this._d.reset()}t.prototype._renderContent.call(this)}else e._pdfdoc.saveState(),e.scale(.75),t.prototype._renderContent.call(this),e._pdfdoc.restoreState()},e.prototype._draw=function(){this._d.hasVal&&this.ctx.area.paths.svgPath(this._d.val)},e}(wt);e._SvgPathElementImpl=Ct;var Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype._draw=function(){var t=new st(this,"points");if(t.hasVal){var e=t.val,n=this.ctx.area;if(e.length>1){for(var r=0;r<e.length;r++)0==r?n.paths.moveTo(e[r].x,e[r].y):n.paths.lineTo(e[r].x,e[r].y);return!0}}return!1},e}(wt);e._SvgPolylineElementImpl=Et;var At=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype._draw=function(){return!!t.prototype._draw.call(this)&&(this.ctx.area.paths.closePath(),!0)},e}(Et);e._SvgPolygonElementImpl=At;var Pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype._draw=function(){var t=new tt(this,"width",0,X.Default,J.Width).val,e=new tt(this,"height",0,X.Default,J.Height).val;if(t>0&&e>0){var n=new tt(this,"x",0,X.Default,J.Width).val,r=new tt(this,"y",0,X.Default,J.Height).val,i=Math.max(new tt(this,"rx",0,X.Default,J.Width).val,0),o=Math.max(new tt(this,"ry",0,X.Default,J.Height).val,0),a=this.ctx.area.paths;i||o?(i=Math.min(i||o,t/2),o=Math.min(o||i,e/2),a.moveTo(n+i,r),a.lineTo(n+t-i,r),a.quadraticCurveTo(n+t,r,n+t,r+o),a.lineTo(n+t,r+e-o),a.quadraticCurveTo(n+t,r+e,n+t-i,r+e),a.lineTo(n+i,r+e),a.quadraticCurveTo(n,r+e,n,r+e-o),a.lineTo(n,r+o),a.quadraticCurveTo(n,r,n+i,r)):a.rect(n,r,t,e)}},e}(wt);e._SvgRectElementImpl=Pt;var jt=function(t){function e(e,n){return t.call(this,e,n,yt.Ignore)||this}return __extends(e,t),e}(mt);e._SvgClipPathElementImpl=jt;var Ot=function(t){function e(e,n){return t.call(this,e,n,yt.Ignore)||this}return __extends(e,t),e}(vt);e._SvgDefsElementImpl=Ot;var It=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e}(bt);e._SvgGElementImpl=It;var Tt=function(t){function e(e,n){var r=t.call(this,e,n,yt.Ignore)||this;return r._x1=new et(r,"x1","0%"),r._x2=new et(r,"x2","100%"),r._y1=new et(r,"y1","0%"),r._y2=new et(r,"y2","0%"),r._gradientUnits=new et(r,"gradientUnits","objectBoundingBox"),r}return __extends(e,t),e.prototype.toBrush=function(t){for(var e=new n.Rect(new tt(t,"x",0,X.Default,J.Width).val,new tt(t,"y",0,X.Default,J.Height).val,new tt(t,"width",0,X.Default,J.Width).val,new tt(t,"height",0,X.Default,J.Height).val),r="objectBoundingBox"===this._gradientUnits.val?new n.Size(e.width,e.height):t.viewport.clone(),i=tt.parseValue(this._x1.val,Q.Number,r,J.Width,X.Default),o=tt.parseValue(this._x2.val,Q.Number,r,J.Width,X.Default),a=tt.parseValue(this._y1.val,Q.Number,r,J.Height,X.Default),s=tt.parseValue(this._y2.val,Q.Number,r,J.Height,X.Default),u=[],l=0;l<this.children.length;l++)if(this.children[l]instanceof Bt){var c=this.children[l];u.push(new j(tt.parseValue(c.offset.val,Q.Number,r,J.Other,X.Default),c.color.val,c.opacity.val))}return new I(e.left+i,e.top+a,e.left+o,e.top+s,u)},e}(mt);e._SvgLinearGradientElementImpl=Tt;var Bt=function(t){function e(e,n){var r=t.call(this,e,n,yt.Ignore)||this;return r.color=new nt(r,"stop-color","black"),r.opacity=new tt(r,"stop-opacity",1,X.None,void 0,!0),r.offset=new et(r,"offset","0"),r}return __extends(e,t),e}(mt);e._SvgStopElementImpl=Bt;var Lt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r._x=new tt(r,"x",0,X.Default,J.Width),r._y=new tt(r,"y",0,X.Default,J.Height),r._width=new tt(r,"width",0,X.Default,J.Width),r._height=new tt(r,"height",0,X.Default,J.Height),r._href=new ot(r,"xlink:href"),r._par=new ht(r),r}return __extends(e,t),e.prototype._renderContent=function(){var t=this._width.val,e=this._height.val;if(t>0&&e>0&&this._href.hasVal){var r=g(this._href.val,this.ctx.urlResolver);if(r){this.ctx.area._pdfdoc.saveState(),(this._x.val||this._y.val)&&this.ctx.area.translate(this._x.val,this._y.val),this.viewport=new n.Size(t,e);try{this._href.val.match(/\.svg$/i)?this._renderSvgImage(r):this._renderRasterImage(r)}catch(t){}this.ctx.area._pdfdoc.restoreState()}}},e.prototype._renderSvgImage=function(t){var e,n=Z.text(t,function(t){return e=t.statusText});if(e)throw e;var r=new Ut(n,this.ctx.area),i=r.root;this.attr("viewBox",i.attr("viewBox")),i.clearAttr("viewBox"),i.clearAttr("x"),i.clearAttr("y"),i.clearAttr("width"),i.clearAttr("height"),i.clearAttr("preserveAspectRatio"),i.clearAttr("clip"),i.clearAttr("overflow"),this.ctx.area.paths.rect(0,0,this.viewport.width,this.viewport.height).clip();var o=new ft(this);r.render(o.apply(this))},e.prototype._renderRasterImage=function(t){var e=U.getDataUri(t),n=this._par.val,r={width:this.viewport.width,height:this.viewport.height,align:w.Left,vAlign:x.Top};"none"===n.align?r.stretchProportionally=!1:(r.stretchProportionally=!0,n.align.match(/^xMid/)?r.align=w.Center:n.align.match(/^xMax/)&&(r.align=w.Right),n.align.match(/YMid$/)?r.vAlign=x.Center:n.align.match(/YMax$/)&&(r.vAlign=x.Bottom)),this.ctx.area.drawImage(e,0,0,r)},e}(bt);e._SvgImageElementImpl=Lt;var Rt=function(t){function e(e,n){var r=t.call(this,e,n,yt.Ignore)||this;if(n&&(!n.type||"text/css"===n.type)){for(var i="",o=0;o<n.childNodes.length;o++)i+=n.childNodes[o].textContent;var a=(i=(i=p(i)).replace(/\/\*([^*]|\*+[^*/])*\*+\//gm,"")).match(/[^{}]*{[^}]*}/g);if(a)for(o=0;o<a.length;o++){var s=a[o].match(/([^{}]*){([^}]*)}/);if(s){var u=s[1].trim().split(","),l=s[2].trim();u.length&&l&&u.forEach(function(t){(t=t.trim())&&r.ctx.registerCssRule(new V(t,l))})}}}return r}return __extends(e,t),e}(mt);e._SvgStyleElementImpl=Rt;var Mt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r._x=new tt(r,"x",0,X.Default,J.Width),r._y=new tt(r,"y",0,X.Default,J.Height),r._width=new tt(r,"width","100%",X.Default,J.Width),r._height=new tt(r,"height","100%",X.Default,J.Height),r._scale=new ft(r),r._overflow=new et(r,"overflow","hidden"),r}return __extends(e,t),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),e.prototype._render=function(){var e=this.ctx.area;e._pdfdoc.saveState();var r=this._width.val,i=this._height.val,o=this._x.val,a=this._y.val;this.parent&&(o||a)&&e.translate(o,a),this.viewport=new n.Size(r,i),"visible"!==this._overflow.val&&e.paths.rect(0,0,r,i).clip(),this.viewport=this._scale.apply(this),this.viewport.width>0&&this.viewport.height>0&&t.prototype._render.call(this),e._pdfdoc.restoreState()},e}(vt);e._SvgSvgElementImpl=Mt;var Nt=function(t){function e(e,n){return t.call(this,e,n,yt.Ignore)||this}return __extends(e,t),e}(vt);e._SvgSymbolElementImpl=Nt;var Dt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r._xlink=new at(r,"xlink:href"),r}return __extends(e,t),e.prototype._render=function(){var t,e;if(this._xlink.hasVal&&(t=this.ctx.getElement(this._xlink.val))){var r=new It(this.ctx,null);if(r.parent=this.parent,r.copyAttributesFrom(this,["x","y","width","height","xlink:href"]),null!=this.attr("x")||null!=this.attr("y")){var i=n.format("translate({x},{y})",{x:this.attr("x")||0,y:this.attr("y")||0});r.attr("transform",(e=r.attr("transform"))?e+" "+i:i)}if(t instanceof Nt){var o=new Mt(this.ctx,null);o.copyAttributesFrom(t);for(var a=0;a<t.children.length;a++)o.appendNode(t.children[a].clone());r.appendNode(o),o.attr("width",this.attr("width")||"100%"),o.attr("height",this.attr("height")||"100%")}else t=t.clone(),r.appendNode(t),t instanceof Mt&&(null!=(e=this.attr("width"))&&t.attr("width",e),null!=(e=this.attr("height"))&&t.attr("height",e));r.render(this.viewport,this.renderMode)}},e}(mt);e._SvgUseElementImpl=Dt;var Ft=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r._x=new tt(r,"x",0,X.Default,J.Width),r._y=new tt(r,"y",0,X.Default,J.Height),r._dx=new tt(r,"dx",0,X.Default,J.Width),r._dy=new tt(r,"dy",0,X.Default,J.Height),r._textDecoration=new lt(r),r}return __extends(e,t),e.prototype._render=function(){this.renderMode===yt.Render&&t.prototype._render.call(this)},e.prototype._renderContent=function(){var t=this;this._prepareNodes();for(var e=this._x.val+this._dx.val,n=this._y.val+this._dy.val,r=function(i,o){if(i._x.hasVal&&(e=i._x.val),i._y.hasVal&&(n=i._y.val),e+=i._dx.val,n+=i._dy.val,i._text)i._cx=e,i._cy=n,i._setDecorators(o),i.render(t.viewport,t.renderMode),e+=t.ctx.area.measureText(i._text,i.style.font.toFont(),{width:1/0,height:1/0,includeLastLineExternalLeading:!1}).size.width;else for(var a=0;a<i.children.length;a++){var s=o.slice();s.push({decoration:i._textDecoration,style:i.style}),r(i.children[a],s)}},i=0;i<this.children.length;i++)r(this.children[i],[{decoration:this._textDecoration,style:this.style}])},e.prototype._prepareNodes=function(){var t=function(e){for(var n=0;n<e.children.length;n++){var r=e.children[n];!r._text&&t(r)&&r.remove()}return 0===e.children.length},e=[],n=function(t){for(var r=0;r<t.children.length;r++){var i=t.children[r];i._text?e.push(i):n(i)}};t(this),n(this);for(var r=0;r<e.length;r++){var i=e.length;" "===e[r]._text&&(0===r||r===i-1||r<i-1&&" "===e[r+1]._text)&&(e[r].remove(),e.splice(r,1),r--)}},e}(bt);e._SvgTextElementImpl=Ft;var zt=function(t){function e(e,r,i){var o=t.call(this,e,r)||this;return o._textDecoration=new lt(o),o._text=n.asString(i),o._x=new tt(o,"x",0,X.Default,J.Width),o._y=new tt(o,"y",0,X.Default,J.Height),o._dx=new tt(o,"dx",0,X.Default,J.Width),o._dy=new tt(o,"dy",0,X.Default,J.Height),o._textDecoration=new lt(o),o}return __extends(e,t),e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e._text=this._text,e},e.prototype._setDecorators=function(t){this._decorators=t},e.prototype._renderContent=function(){if(this._text){var t={font:this.style.font.toFont(),width:1/0,height:1/0,lineBreak:!1,fill:"none"!==this.style.fill.color.val,stroke:"none"!==this.style.stroke.color.val,_baseline:S.Alphabetic};this._decorate(),(t.fill||t.stroke)&&(t.fill&&(t.brush=this.style.fill.toBrush(this)),t.stroke&&(t.pen=this.style.stroke.toPen(this)),this.ctx.area.drawText(this._text,this._cx,this._cy,t))}},e.prototype._decorate=function(){var t=this.ctx.area,e=!1;this._decorators.push({decoration:this._textDecoration,style:this.style});for(var n=0;n<this._decorators.length&&!e;n++)e=null!=this._decorators[n].decoration.val;if(e){t._pdfdoc.saveState();for(var r,i=t._pdfdoc._document,o=t.measureText(this._text,this.style.font.toFont(),{width:1/0,height:1/0,includeLastLineExternalLeading:!1}).size,a=Math.max(i.currentFontSize()/20,.1),s=i.currentFontAscender(),u=this._cx;r=this._decorators.shift();){var l=r.decoration.val;if(l){for(var c=0;c<l.length;c++){var h=this._cy-s;switch(l[c]){case"line-through":h=h+o.height/2-a/2;break;case"overline":h-=i.currentFontBBox().ury-i.currentFontAscender();break;case"underline":h=h+o.height-1.5*a}t.paths.rect(u,h,o.width,a)}r.style.apply(this,!0,!0)}}t._pdfdoc.restoreState()}},e}(vt);e._SvgTspanElementImpl=zt;var Ut=function(){function t(t,r,i){var o=this;this._elementsById={},this._registeredCssRules={},n.assert(null!=r,e._Errors.ValueCannotBeEmpty("svgString")),this._doc=r._pdfdoc;var a=this._parse(t);a&&(this._svg=new Mt({area:r,urlResolver:i,getElement:this._getElementById.bind(this),registerCssRule:function(t){o._registerCssRule(t,i)}},null),this._copyAttributes(a,this._svg),this._buildTree(a,this._svg),this._svg.viewport=new n.Size(r.width,r.height))}return Object.defineProperty(t.prototype,"root",{get:function(){return this._svg},enumerable:!0,configurable:!0}),t.prototype.render=function(t){this._svg&&this._svg.render(t||this._svg.viewport)},t.prototype._parse=function(t){if(t){var e=new DOMParser;return e.async=!1,e.parseFromString(t,"text/xml").getElementsByTagName("svg")[0]}},t.prototype._buildTree=function(t,e,n){for(var r=0;t.childNodes&&r<t.childNodes.length;r++){var i=t.childNodes.item(r),o=i.nodeName;if(1===i.nodeType){var a=this._getClassName(o);if(_[a]){var s=new _[a](e.ctx,i);this._copyAttributes(i,s),e.appendNode(s);var u;(u=i.getAttribute("id"))&&(this._elementsById[u]=s),this._buildTree(i,s,"text"===o||n&&"tspan"===o)}}else if(3===i.nodeType&&n){var l=i.textContent.trim();if(l){0!=r&&1===t.childNodes[r-1].nodeType&&i.textContent.match(/^\s/)&&e.appendNode(new zt(e.ctx,null," "));var c=p(i.textContent);e.appendNode(new zt(e.ctx,null,c))}l&&!i.textContent.match(/\s$/)||e.appendNode(new zt(e.ctx,null," "))}}},t.prototype._getClassName=function(t){return"_Svg"+t.charAt(0).toUpperCase()+t.substring(1)+"ElementImpl"},t.prototype._copyAttributes=function(t,e){for(i=0;i<t.attributes.length;i++){var n=t.attributes.item(i);e.attr(n.name,n.value)}for(var r=K.getComputedStyle(t,this._registeredCssRules),i=0,o=Object.keys(r);i<o.length;i++){var a=o[i];e.attr(a,r[a])}},t.prototype._getElementById=function(t){return t=(t||"").replace("#",""),this._elementsById[t]},t.prototype._registerCssRule=function(t,e){"@"!==t.selector[0]?this._registeredCssRules[t.selector]=t:"@font-face"===t.selector&&K.registerFontFace(this._doc,t,e)},t}();e._SvgRenderer=Ut});