/*! For license information please see view.js.LICENSE.txt */ (()=>{var A={428:A=>{"use strict";A.exports=window.jQuery},897:(A,t,e)=>{var n,r;n=[e(428),e(5668),e(7837)],void 0===(r=function(A){return function(A,t,e){"use strict";var n=A.fn.dataTable,r=e.createElement("a"),i=function(A){r.href=A;var t=r.host;return-1===t.indexOf("/")&&0!==r.pathname.indexOf("/")&&(t+="/"),r.protocol+"//"+t+r.pathname+r.search};return n.ext.buttons.print={className:"buttons-print",text:function(A){return A.i18n("buttons.print","Print")},action:function(e,n,r,s,o){var a=n.buttons.exportData(A.extend({decodeEntities:!1},s.exportOptions)),B=n.buttons.exportInfo(s),g=n.columns(s.exportOptions.columns).nodes().map((function(A){return A.className})).toArray(),c=function(A,t){for(var e="",n=0,r=A.length;n"+i+""}return e+""},l='';s.header&&(l+=""+a.headerStructure.map((function(A){return""+A.map((function(A){return A?'":""})).join("")+""})).join("")+""),l+="";for(var w=0,E=a.body.length;w",s.footer&&a.footer&&(l+=""+a.footerStructure.map((function(A){return""+A.map((function(A){return A?'":""})).join("")+""})).join("")+""),l+="
'+A.title+"
'+A.title+"
";var h=t.open("","");if(h){h.document.close(),h.document.title=B.title,A('style, link[rel="stylesheet"]').each((function(){let A=this.cloneNode(!0);"link"===A.tagName.toLowerCase()&&(A.href=i(A.href)),h.document.head.appendChild(A)})),s.customScripts&&s.customScripts.forEach((function(A){var t=h.document.createElement("script");t.src=A,h.document.getElementsByTagName("head")[0].appendChild(t)})),h.document.body.innerHTML="

"+B.title+"

"+(B.messageTop||"")+"
"+l+"
"+(B.messageBottom||"")+"
",A(h.document.body).addClass("dt-print-view"),A("img",h.document.body).each((function(A,t){t.setAttribute("src",i(t.getAttribute("src")))})),s.customize&&s.customize(h,s,n);h.setTimeout((function(){s.autoPrint&&(h.print(),h.close())}),1e3),o()}else n.buttons.info(n.i18n("buttons.printErrorTitle","Unable to open print view"),n.i18n("buttons.printErrorMsg","Please allow popups in your browser for this site to be able to view the print view."),5e3)},async:100,title:"*",messageTop:"*",messageBottom:"*",exportOptions:{},header:!0,footer:!0,autoPrint:!0,customize:null},n}(A,window,document)}.apply(t,n))||(A.exports=r)},1710:(A,t,e)=>{A.exports=function A(t,e,n){function r(s,o){if(!e[s]){if(!t[s]){if(i)return i(s,!0);var a=new Error("Cannot find module '"+s+"'");throw a.code="MODULE_NOT_FOUND",a}var B=e[s]={exports:{}};t[s][0].call(B.exports,(function(A){return r(t[s][1][A]||A)}),B,B.exports,A,t,e,n)}return e[s].exports}for(var i=void 0,s=0;s>2,o=(3&t)<<4|e>>4,a=1>6:64,B=2>4,e=(15&s)<<4|(o=i.indexOf(A.charAt(B++)))>>2,n=(3&o)<<6|(a=i.indexOf(A.charAt(B++))),l[g++]=t,64!==o&&(l[g++]=e),64!==a&&(l[g++]=n);return l}},{"./support":30,"./utils":32}],2:[function(A,t,e){"use strict";var n=A("./external"),r=A("./stream/DataWorker"),i=A("./stream/Crc32Probe"),s=A("./stream/DataLengthProbe");function o(A,t,e,n,r){this.compressedSize=A,this.uncompressedSize=t,this.crc32=e,this.compression=n,this.compressedContent=r}o.prototype={getContentWorker:function(){var A=new r(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return A.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),A},getCompressedWorker:function(){return new r(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(A,t,e){return A.pipe(new i).pipe(new s("uncompressedSize")).pipe(t.compressWorker(e)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(A,t,e){"use strict";var n=A("./stream/GenericWorker");e.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},e.DEFLATE=A("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(A,t,e){"use strict";var n=A("./utils"),r=function(){for(var A,t=[],e=0;e<256;e++){A=e;for(var n=0;n<8;n++)A=1&A?3988292384^A>>>1:A>>>1;t[e]=A}return t}();t.exports=function(A,t){return void 0!==A&&A.length?"string"!==n.getTypeOf(A)?function(A,t,e){var n=r,i=0+e;A^=-1;for(var s=0;s>>8^n[255&(A^t[s])];return~A}(0|t,A,A.length):function(A,t,e){var n=r,i=0+e;A^=-1;for(var s=0;s>>8^n[255&(A^t.charCodeAt(s))];return~A}(0|t,A,A.length):0}},{"./utils":32}],5:[function(A,t,e){"use strict";e.base64=!1,e.binary=!1,e.dir=!1,e.createFolders=!0,e.date=null,e.compression=null,e.compressionOptions=null,e.comment=null,e.unixPermissions=null,e.dosPermissions=null},{}],6:[function(A,t,e){"use strict";var n;n="undefined"!=typeof Promise?Promise:A("lie"),t.exports={Promise:n}},{lie:37}],7:[function(A,t,e){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=A("pako"),i=A("./utils"),s=A("./stream/GenericWorker"),o=n?"uint8array":"array";function a(A,t){s.call(this,"FlateWorker/"+A),this._pako=null,this._pakoAction=A,this._pakoOptions=t,this.meta={}}e.magic="\b\0",i.inherits(a,s),a.prototype.processChunk=function(A){this.meta=A.meta,null===this._pako&&this._createPako(),this._pako.push(i.transformTo(o,A.data),!1)},a.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},a.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},a.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var A=this;this._pako.onData=function(t){A.push({data:t,meta:A.meta})}},e.compressWorker=function(A){return new a("Deflate",A)},e.uncompressWorker=function(){return new a("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(A,t,e){"use strict";function n(A,t){var e,n="";for(e=0;e>>=8;return n}function r(A,t,e,r,s,g){var c,l,w=A.file,E=A.compression,h=g!==o.utf8encode,Q=i.transformTo("string",g(w.name)),u=i.transformTo("string",o.utf8encode(w.name)),f=w.comment,C=i.transformTo("string",g(f)),d=i.transformTo("string",o.utf8encode(f)),M=u.length!==w.name.length,D=d.length!==f.length,I="",p="",y="",F=w.dir,Y=w.date,m={crc32:0,compressedSize:0,uncompressedSize:0};t&&!e||(m.crc32=A.crc32,m.compressedSize=A.compressedSize,m.uncompressedSize=A.uncompressedSize);var b=0;t&&(b|=8),h||!M&&!D||(b|=2048);var v=0,z=0;F&&(v|=16),"UNIX"===s?(z=798,v|=function(A,t){var e=A;return A||(e=t?16893:33204),(65535&e)<<16}(w.unixPermissions,F)):(z=20,v|=function(A){return 63&(A||0)}(w.dosPermissions)),c=Y.getUTCHours(),c<<=6,c|=Y.getUTCMinutes(),c<<=5,c|=Y.getUTCSeconds()/2,l=Y.getUTCFullYear()-1980,l<<=4,l|=Y.getUTCMonth()+1,l<<=5,l|=Y.getUTCDate(),M&&(p=n(1,1)+n(a(Q),4)+u,I+="up"+n(p.length,2)+p),D&&(y=n(1,1)+n(a(C),4)+d,I+="uc"+n(y.length,2)+y);var U="";return U+="\n\0",U+=n(b,2),U+=E.magic,U+=n(c,2),U+=n(l,2),U+=n(m.crc32,4),U+=n(m.compressedSize,4),U+=n(m.uncompressedSize,4),U+=n(Q.length,2),U+=n(I.length,2),{fileRecord:B.LOCAL_FILE_HEADER+U+Q+I,dirRecord:B.CENTRAL_FILE_HEADER+n(z,2)+U+n(C.length,2)+"\0\0\0\0"+n(v,4)+n(r,4)+Q+I+C}}var i=A("../utils"),s=A("../stream/GenericWorker"),o=A("../utf8"),a=A("../crc32"),B=A("../signature");function g(A,t,e,n){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=e,this.encodeFileName=n,this.streamFiles=A,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(g,s),g.prototype.push=function(A){var t=A.meta.percent||0,e=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(A):(this.bytesWritten+=A.data.length,s.prototype.push.call(this,{data:A.data,meta:{currentFile:this.currentFile,percent:e?(t+100*(e-n-1))/e:100}}))},g.prototype.openedSource=function(A){this.currentSourceOffset=this.bytesWritten,this.currentFile=A.file.name;var t=this.streamFiles&&!A.file.dir;if(t){var e=r(A,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:e.fileRecord,meta:{percent:0}})}else this.accumulate=!0},g.prototype.closedSource=function(A){this.accumulate=!1;var t=this.streamFiles&&!A.file.dir,e=r(A,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(e.dirRecord),t)this.push({data:function(A){return B.DATA_DESCRIPTOR+n(A.crc32,4)+n(A.compressedSize,4)+n(A.uncompressedSize,4)}(A),meta:{percent:100}});else for(this.push({data:e.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},g.prototype.flush=function(){for(var A=this.bytesWritten,t=0;t=this.index;t--)e=(e<<8)+this.byteAt(t);return this.index+=A,e},readString:function(A){return n.transformTo("string",this.readData(A))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var A=this.readInt(4);return new Date(Date.UTC(1980+(A>>25&127),(A>>21&15)-1,A>>16&31,A>>11&31,A>>5&63,(31&A)<<1))}},t.exports=r},{"../utils":32}],19:[function(A,t,e){"use strict";var n=A("./Uint8ArrayReader");function r(A){n.call(this,A)}A("../utils").inherits(r,n),r.prototype.readData=function(A){this.checkOffset(A);var t=this.data.slice(this.zero+this.index,this.zero+this.index+A);return this.index+=A,t},t.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(A,t,e){"use strict";var n=A("./DataReader");function r(A){n.call(this,A)}A("../utils").inherits(r,n),r.prototype.byteAt=function(A){return this.data.charCodeAt(this.zero+A)},r.prototype.lastIndexOfSignature=function(A){return this.data.lastIndexOf(A)-this.zero},r.prototype.readAndCheckSignature=function(A){return A===this.readData(4)},r.prototype.readData=function(A){this.checkOffset(A);var t=this.data.slice(this.zero+this.index,this.zero+this.index+A);return this.index+=A,t},t.exports=r},{"../utils":32,"./DataReader":18}],21:[function(A,t,e){"use strict";var n=A("./ArrayReader");function r(A){n.call(this,A)}A("../utils").inherits(r,n),r.prototype.readData=function(A){if(this.checkOffset(A),0===A)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+A);return this.index+=A,t},t.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(A,t,e){"use strict";var n=A("../utils"),r=A("../support"),i=A("./ArrayReader"),s=A("./StringReader"),o=A("./NodeBufferReader"),a=A("./Uint8ArrayReader");t.exports=function(A){var t=n.getTypeOf(A);return n.checkSupport(t),"string"!==t||r.uint8array?"nodebuffer"===t?new o(A):r.uint8array?new a(n.transformTo("uint8array",A)):new i(n.transformTo("array",A)):new s(A)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(A,t,e){"use strict";e.LOCAL_FILE_HEADER="PK",e.CENTRAL_FILE_HEADER="PK",e.CENTRAL_DIRECTORY_END="PK",e.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",e.ZIP64_CENTRAL_DIRECTORY_END="PK",e.DATA_DESCRIPTOR="PK\b"},{}],24:[function(A,t,e){"use strict";var n=A("./GenericWorker"),r=A("../utils");function i(A){n.call(this,"ConvertWorker to "+A),this.destType=A}r.inherits(i,n),i.prototype.processChunk=function(A){this.push({data:r.transformTo(this.destType,A.data),meta:A.meta})},t.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(A,t,e){"use strict";var n=A("./GenericWorker"),r=A("../crc32");function i(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}A("../utils").inherits(i,n),i.prototype.processChunk=function(A){this.streamInfo.crc32=r(A.data,this.streamInfo.crc32||0),this.push(A)},t.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(A,t,e){"use strict";var n=A("../utils"),r=A("./GenericWorker");function i(A){r.call(this,"DataLengthProbe for "+A),this.propName=A,this.withStreamInfo(A,0)}n.inherits(i,r),i.prototype.processChunk=function(A){if(A){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+A.data.length}r.prototype.processChunk.call(this,A)},t.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(A,t,e){"use strict";var n=A("../utils"),r=A("./GenericWorker");function i(A){r.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,A.then((function(A){t.dataIsReady=!0,t.data=A,t.max=A&&A.length||0,t.type=n.getTypeOf(A),t.isPaused||t._tickAndRepeat()}),(function(A){t.error(A)}))}n.inherits(i,r),i.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var A=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":A=this.data.substring(this.index,t);break;case"uint8array":A=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":A=this.data.slice(this.index,t)}return this.index=t,this.push({data:A,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(A,t,e){"use strict";function n(A){this.name=A||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(A){this.emit("data",A)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(A){this.emit("error",A)}return!0},error:function(A){return!this.isFinished&&(this.isPaused?this.generatedError=A:(this.isFinished=!0,this.emit("error",A),this.previous&&this.previous.error(A),this.cleanUp()),!0)},on:function(A,t){return this._listeners[A].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(A,t){if(this._listeners[A])for(var e=0;e "+A:A}},t.exports=n},{}],29:[function(A,t,e){"use strict";var n=A("../utils"),r=A("./ConvertWorker"),i=A("./GenericWorker"),s=A("../base64"),o=A("../support"),a=A("../external"),B=null;if(o.nodestream)try{B=A("../nodejs/NodejsStreamOutputAdapter")}catch(A){}function g(A,t,e){var s=t;switch(t){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=t,this._mimeType=e,n.checkSupport(s),this._worker=A.pipe(new r(s)),A.lock()}catch(A){this._worker=new i("error"),this._worker.error(A)}}g.prototype={accumulate:function(A){return function(A,t){return new a.Promise((function(e,r){var i=[],o=A._internalType,a=A._outputType,B=A._mimeType;A.on("data",(function(A,e){i.push(A),t&&t(e)})).on("error",(function(A){i=[],r(A)})).on("end",(function(){try{var A=function(A,t,e){switch(A){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),e);case"base64":return s.encode(t);default:return n.transformTo(A,t)}}(a,function(A,t){var e,n=0,r=null,i=0;for(e=0;e>>6:(e<65536?t[s++]=224|e>>>12:(t[s++]=240|e>>>18,t[s++]=128|e>>>12&63),t[s++]=128|e>>>6&63),t[s++]=128|63&e);return t}(A)},e.utf8decode=function(A){return r.nodebuffer?n.transformTo("nodebuffer",A).toString("utf-8"):function(A){var t,e,r,i,s=A.length,a=new Array(2*s);for(t=e=0;t>10&1023,a[e++]=56320|1023&r)}return a.length!==e&&(a.subarray?a=a.subarray(0,e):a.length=e),n.applyFromCharCode(a)}(A=n.transformTo(r.uint8array?"uint8array":"array",A))},n.inherits(B,s),B.prototype.processChunk=function(A){var t=n.transformTo(r.uint8array?"uint8array":"array",A.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var i=t;(t=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),t.set(i,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var s=function(A,t){var e;for((t=t||A.length)>A.length&&(t=A.length),e=t-1;0<=e&&128==(192&A[e]);)e--;return e<0||0===e?t:e+o[A[e]]>t?e:t}(t),a=t;s!==t.length&&(r.uint8array?(a=t.subarray(0,s),this.leftOver=t.subarray(s,t.length)):(a=t.slice(0,s),this.leftOver=t.slice(s,t.length))),this.push({data:e.utf8decode(a),meta:A.meta})},B.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=B,n.inherits(g,s),g.prototype.processChunk=function(A){this.push({data:e.utf8encode(A.data),meta:A.meta})},e.Utf8EncodeWorker=g},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(A,t,e){"use strict";var n=A("./support"),r=A("./base64"),i=A("./nodejsUtils"),s=A("./external");function o(A){return A}function a(A,t){for(var e=0;e>8;this.dir=!!(16&this.externalFileAttributes),0==A&&(this.dosPermissions=63&this.externalFileAttributes),3==A&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var A=n(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=A.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=A.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=A.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=A.readInt(4))}},readExtraFields:function(A){var t,e,n,r=A.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});A.index+4>>6:(e<65536?t[s++]=224|e>>>12:(t[s++]=240|e>>>18,t[s++]=128|e>>>12&63),t[s++]=128|e>>>6&63),t[s++]=128|63&e);return t},e.buf2binstring=function(A){return a(A,A.length)},e.binstring2buf=function(A){for(var t=new n.Buf8(A.length),e=0,r=t.length;e>10&1023,B[n++]=56320|1023&r)}return a(B,n)},e.utf8border=function(A,t){var e;for((t=t||A.length)>A.length&&(t=A.length),e=t-1;0<=e&&128==(192&A[e]);)e--;return e<0||0===e?t:e+s[A[e]]>t?e:t}},{"./common":41}],43:[function(A,t,e){"use strict";t.exports=function(A,t,e,n){for(var r=65535&A,i=A>>>16&65535,s=0;0!==e;){for(e-=s=2e3>>1:A>>>1;t[e]=A}return t}();t.exports=function(A,t,e,r){var i=n,s=r+e;A^=-1;for(var o=r;o>>8^i[255&(A^t[o])];return~A}},{}],46:[function(A,t,e){"use strict";var n,r=A("../utils/common"),i=A("./trees"),s=A("./adler32"),o=A("./crc32"),a=A("./messages"),B=-2,g=258,c=262,l=113;function w(A,t){return A.msg=a[t],t}function E(A){return(A<<1)-(4A.avail_out&&(e=A.avail_out),0!==e&&(r.arraySet(A.output,t.pending_buf,t.pending_out,e,A.next_out),A.next_out+=e,t.pending_out+=e,A.total_out+=e,A.avail_out-=e,t.pending-=e,0===t.pending&&(t.pending_out=0))}function u(A,t){i._tr_flush_block(A,0<=A.block_start?A.block_start:-1,A.strstart-A.block_start,t),A.block_start=A.strstart,Q(A.strm)}function f(A,t){A.pending_buf[A.pending++]=t}function C(A,t){A.pending_buf[A.pending++]=t>>>8&255,A.pending_buf[A.pending++]=255&t}function d(A,t){var e,n,r=A.max_chain_length,i=A.strstart,s=A.prev_length,o=A.nice_match,a=A.strstart>A.w_size-c?A.strstart-(A.w_size-c):0,B=A.window,l=A.w_mask,w=A.prev,E=A.strstart+g,h=B[i+s-1],Q=B[i+s];A.prev_length>=A.good_match&&(r>>=2),o>A.lookahead&&(o=A.lookahead);do{if(B[(e=t)+s]===Q&&B[e+s-1]===h&&B[e]===B[i]&&B[++e]===B[i+1]){i+=2,e++;do{}while(B[++i]===B[++e]&&B[++i]===B[++e]&&B[++i]===B[++e]&&B[++i]===B[++e]&&B[++i]===B[++e]&&B[++i]===B[++e]&&B[++i]===B[++e]&&B[++i]===B[++e]&&ia&&0!=--r);return s<=A.lookahead?s:A.lookahead}function M(A){var t,e,n,i,a,B,g,l,w,E,h=A.w_size;do{if(i=A.window_size-A.lookahead-A.strstart,A.strstart>=h+(h-c)){for(r.arraySet(A.window,A.window,h,h,0),A.match_start-=h,A.strstart-=h,A.block_start-=h,t=e=A.hash_size;n=A.head[--t],A.head[t]=h<=n?n-h:0,--e;);for(t=e=h;n=A.prev[--t],A.prev[t]=h<=n?n-h:0,--e;);i+=h}if(0===A.strm.avail_in)break;if(B=A.strm,g=A.window,l=A.strstart+A.lookahead,E=void 0,(w=i)<(E=B.avail_in)&&(E=w),e=0===E?0:(B.avail_in-=E,r.arraySet(g,B.input,B.next_in,E,l),1===B.state.wrap?B.adler=s(B.adler,g,E,l):2===B.state.wrap&&(B.adler=o(B.adler,g,E,l)),B.next_in+=E,B.total_in+=E,E),A.lookahead+=e,A.lookahead+A.insert>=3)for(a=A.strstart-A.insert,A.ins_h=A.window[a],A.ins_h=(A.ins_h<=3&&(A.ins_h=(A.ins_h<=3)if(n=i._tr_tally(A,A.strstart-A.match_start,A.match_length-3),A.lookahead-=A.match_length,A.match_length<=A.max_lazy_match&&A.lookahead>=3){for(A.match_length--;A.strstart++,A.ins_h=(A.ins_h<=3&&(A.ins_h=(A.ins_h<=3&&A.match_length<=A.prev_length){for(r=A.strstart+A.lookahead-3,n=i._tr_tally(A,A.strstart-1-A.prev_match,A.prev_length-3),A.lookahead-=A.prev_length-1,A.prev_length-=2;++A.strstart<=r&&(A.ins_h=(A.ins_h<A.pending_buf_size-5&&(e=A.pending_buf_size-5);;){if(A.lookahead<=1){if(M(A),0===A.lookahead&&0===t)return 1;if(0===A.lookahead)break}A.strstart+=A.lookahead,A.lookahead=0;var n=A.block_start+e;if((0===A.strstart||A.strstart>=n)&&(A.lookahead=A.strstart-n,A.strstart=n,u(A,!1),0===A.strm.avail_out))return 1;if(A.strstart-A.block_start>=A.w_size-c&&(u(A,!1),0===A.strm.avail_out))return 1}return A.insert=0,4===t?(u(A,!0),0===A.strm.avail_out?3:4):(A.strstart>A.block_start&&(u(A,!1),A.strm.avail_out),1)})),new p(4,4,8,4,D),new p(4,5,16,8,D),new p(4,6,32,32,D),new p(4,4,16,16,I),new p(8,16,32,32,I),new p(8,16,128,128,I),new p(8,32,128,256,I),new p(32,128,258,1024,I),new p(32,258,258,4096,I)],e.deflateInit=function(A,t){return m(A,t,8,15,8,0)},e.deflateInit2=m,e.deflateReset=Y,e.deflateResetKeep=F,e.deflateSetHeader=function(A,t){return A&&A.state?2!==A.state.wrap?B:(A.state.gzhead=t,0):B},e.deflate=function(A,t){var e,r,s,a;if(!A||!A.state||5>8&255),f(r,r.gzhead.time>>16&255),f(r,r.gzhead.time>>24&255),f(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),f(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(f(r,255&r.gzhead.extra.length),f(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(A.adler=o(A.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(f(r,0),f(r,0),f(r,0),f(r,0),f(r,0),f(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),f(r,3),r.status=l);else{var c=8+(r.w_bits-8<<4)<<8;c|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(c|=32),c+=31-c%31,r.status=l,C(r,c),0!==r.strstart&&(C(r,A.adler>>>16),C(r,65535&A.adler)),A.adler=1}if(69===r.status)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(A.adler=o(A.adler,r.pending_buf,r.pending-s,s)),Q(A),s=r.pending,r.pending!==r.pending_buf_size));)f(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(A.adler=o(A.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(A.adler=o(A.adler,r.pending_buf,r.pending-s,s)),Q(A),s=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzindexs&&(A.adler=o(A.adler,r.pending_buf,r.pending-s,s)),0===a&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(A.adler=o(A.adler,r.pending_buf,r.pending-s,s)),Q(A),s=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzindexs&&(A.adler=o(A.adler,r.pending_buf,r.pending-s,s)),0===a&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Q(A),r.pending+2<=r.pending_buf_size&&(f(r,255&A.adler),f(r,A.adler>>8&255),A.adler=0,r.status=l)):r.status=l),0!==r.pending){if(Q(A),0===A.avail_out)return r.last_flush=-1,0}else if(0===A.avail_in&&E(t)<=E(e)&&4!==t)return w(A,-5);if(666===r.status&&0!==A.avail_in)return w(A,-5);if(0!==A.avail_in||0!==r.lookahead||0!==t&&666!==r.status){var d=2===r.strategy?function(A,t){for(var e;;){if(0===A.lookahead&&(M(A),0===A.lookahead)){if(0===t)return 1;break}if(A.match_length=0,e=i._tr_tally(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++,e&&(u(A,!1),0===A.strm.avail_out))return 1}return A.insert=0,4===t?(u(A,!0),0===A.strm.avail_out?3:4):A.last_lit&&(u(A,!1),0===A.strm.avail_out)?1:2}(r,t):3===r.strategy?function(A,t){for(var e,n,r,s,o=A.window;;){if(A.lookahead<=g){if(M(A),A.lookahead<=g&&0===t)return 1;if(0===A.lookahead)break}if(A.match_length=0,A.lookahead>=3&&0A.lookahead&&(A.match_length=A.lookahead)}if(A.match_length>=3?(e=i._tr_tally(A,1,A.match_length-3),A.lookahead-=A.match_length,A.strstart+=A.match_length,A.match_length=0):(e=i._tr_tally(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++),e&&(u(A,!1),0===A.strm.avail_out))return 1}return A.insert=0,4===t?(u(A,!0),0===A.strm.avail_out?3:4):A.last_lit&&(u(A,!1),0===A.strm.avail_out)?1:2}(r,t):n[r.level].func(r,t);if(3!==d&&4!==d||(r.status=666),1===d||3===d)return 0===A.avail_out&&(r.last_flush=-1),0;if(2===d&&(1===t?i._tr_align(r):5!==t&&(i._tr_stored_block(r,0,0,!1),3===t&&(h(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Q(A),0===A.avail_out))return r.last_flush=-1,0}return 4!==t?0:r.wrap<=0?1:(2===r.wrap?(f(r,255&A.adler),f(r,A.adler>>8&255),f(r,A.adler>>16&255),f(r,A.adler>>24&255),f(r,255&A.total_in),f(r,A.total_in>>8&255),f(r,A.total_in>>16&255),f(r,A.total_in>>24&255)):(C(r,A.adler>>>16),C(r,65535&A.adler)),Q(A),0=e.w_size&&(0===o&&(h(e.head),e.strstart=0,e.block_start=0,e.insert=0),l=new r.Buf8(e.w_size),r.arraySet(l,t,w-e.w_size,e.w_size,0),t=l,w=e.w_size),a=A.avail_in,g=A.next_in,c=A.input,A.avail_in=w,A.next_in=0,A.input=t,M(e);e.lookahead>=3;){for(n=e.strstart,i=e.lookahead-2;e.ins_h=(e.ins_h<>>=d=C>>>24,E-=d,0==(d=C>>>16&255))F[i++]=65535&C;else{if(!(16&d)){if(!(64&d)){C=h[(65535&C)+(w&(1<>>=d,E-=d),E<15&&(w+=y[n++]<>>=d=C>>>24,E-=d,!(16&(d=C>>>16&255))){if(!(64&d)){C=Q[(65535&C)+(w&(1<>>=d,E-=d,(d=i-s)>3,w&=(1<<(E-=M<<3))-1,A.next_in=n,A.next_out=i,A.avail_in=n>>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<24)}function g(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(A){var t;return A&&A.state?(t=A.state,A.total_in=A.total_out=t.total=0,A.msg="",t.wrap&&(A.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):a}function l(A){var t;return A&&A.state?((t=A.state).wsize=0,t.whave=0,t.wnext=0,c(A)):a}function w(A,t){var e,n;return A&&A.state?(n=A.state,t<0?(e=0,t=-t):(e=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=s.wsize?(n.arraySet(s.window,t,e-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(r<(i=s.wsize-s.wnext)&&(i=r),n.arraySet(s.window,t,e-r,i,s.wnext),(r-=i)?(n.arraySet(s.window,t,e-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,e.check=i(e.check,R,2,0),u=Q=0,e.mode=2;break}if(e.flags=0,e.head&&(e.head.done=!1),!(1&e.wrap)||(((255&Q)<<8)+(Q>>8))%31){A.msg="incorrect header check",e.mode=30;break}if(8!=(15&Q)){A.msg="unknown compression method",e.mode=30;break}if(u-=4,z=8+(15&(Q>>>=4)),0===e.wbits)e.wbits=z;else if(z>e.wbits){A.msg="invalid window size",e.mode=30;break}e.dmax=1<>8&1),512&e.flags&&(R[0]=255&Q,R[1]=Q>>>8&255,e.check=i(e.check,R,2,0)),u=Q=0,e.mode=3;case 3:for(;u<32;){if(0===E)break A;E--,Q+=g[l++]<>>8&255,R[2]=Q>>>16&255,R[3]=Q>>>24&255,e.check=i(e.check,R,4,0)),u=Q=0,e.mode=4;case 4:for(;u<16;){if(0===E)break A;E--,Q+=g[l++]<>8),512&e.flags&&(R[0]=255&Q,R[1]=Q>>>8&255,e.check=i(e.check,R,2,0)),u=Q=0,e.mode=5;case 5:if(1024&e.flags){for(;u<16;){if(0===E)break A;E--,Q+=g[l++]<>>8&255,e.check=i(e.check,R,2,0)),u=Q=0}else e.head&&(e.head.extra=null);e.mode=6;case 6:if(1024&e.flags&&(E<(D=e.length)&&(D=E),D&&(e.head&&(z=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),n.arraySet(e.head.extra,g,l,D,z)),512&e.flags&&(e.check=i(e.check,g,D,l)),E-=D,l+=D,e.length-=D),e.length))break A;e.length=0,e.mode=7;case 7:if(2048&e.flags){if(0===E)break A;for(D=0;z=g[l+D++],e.head&&z&&e.length<65536&&(e.head.name+=String.fromCharCode(z)),z&&D>9&1,e.head.done=!0),A.adler=e.check=0,e.mode=12;break;case 10:for(;u<32;){if(0===E)break A;E--,Q+=g[l++]<>>=7&u,u-=7&u,e.mode=27;break}for(;u<3;){if(0===E)break A;E--,Q+=g[l++]<>>=1)){case 0:e.mode=14;break;case 1:if(f(e),e.mode=20,6!==t)break;Q>>>=2,u-=2;break A;case 2:e.mode=17;break;case 3:A.msg="invalid block type",e.mode=30}Q>>>=2,u-=2;break;case 14:for(Q>>>=7&u,u-=7&u;u<32;){if(0===E)break A;E--,Q+=g[l++]<>>16^65535)){A.msg="invalid stored block lengths",e.mode=30;break}if(e.length=65535&Q,u=Q=0,e.mode=15,6===t)break A;case 15:e.mode=16;case 16:if(D=e.length){if(E>>=5,u-=5,e.ndist=1+(31&Q),Q>>>=5,u-=5,e.ncode=4+(15&Q),Q>>>=4,u-=4,286>>=3,u-=3}for(;e.have<19;)e.lens[G[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,P={bits:e.lenbits},U=o(0,e.lens,0,19,e.lencode,0,e.work,P),e.lenbits=P.bits,U){A.msg="invalid code lengths set",e.mode=30;break}e.have=0,e.mode=19;case 19:for(;e.have>>16&255,Y=65535&N,!((y=N>>>24)<=u);){if(0===E)break A;E--,Q+=g[l++]<>>=y,u-=y,e.lens[e.have++]=Y;else{if(16===Y){for(x=y+2;u>>=y,u-=y,0===e.have){A.msg="invalid bit length repeat",e.mode=30;break}z=e.lens[e.have-1],D=3+(3&Q),Q>>>=2,u-=2}else if(17===Y){for(x=y+3;u>>=y)),Q>>>=3,u-=3}else{for(x=y+7;u>>=y)),Q>>>=7,u-=7}if(e.have+D>e.nlen+e.ndist){A.msg="invalid bit length repeat",e.mode=30;break}for(;D--;)e.lens[e.have++]=z}}if(30===e.mode)break;if(0===e.lens[256]){A.msg="invalid code -- missing end-of-block",e.mode=30;break}if(e.lenbits=9,P={bits:e.lenbits},U=o(1,e.lens,0,e.nlen,e.lencode,0,e.work,P),e.lenbits=P.bits,U){A.msg="invalid literal/lengths set",e.mode=30;break}if(e.distbits=6,e.distcode=e.distdyn,P={bits:e.distbits},U=o(2,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,P),e.distbits=P.bits,U){A.msg="invalid distances set",e.mode=30;break}if(e.mode=20,6===t)break A;case 20:e.mode=21;case 21:if(6<=E&&258<=h){A.next_out=w,A.avail_out=h,A.next_in=l,A.avail_in=E,e.hold=Q,e.bits=u,s(A,M),w=A.next_out,c=A.output,h=A.avail_out,l=A.next_in,g=A.input,E=A.avail_in,Q=e.hold,u=e.bits,12===e.mode&&(e.back=-1);break}for(e.back=0;F=(N=e.lencode[Q&(1<>>16&255,Y=65535&N,!((y=N>>>24)<=u);){if(0===E)break A;E--,Q+=g[l++]<>m)])>>>16&255,Y=65535&N,!(m+(y=N>>>24)<=u);){if(0===E)break A;E--,Q+=g[l++]<>>=m,u-=m,e.back+=m}if(Q>>>=y,u-=y,e.back+=y,e.length=Y,0===F){e.mode=26;break}if(32&F){e.back=-1,e.mode=12;break}if(64&F){A.msg="invalid literal/length code",e.mode=30;break}e.extra=15&F,e.mode=22;case 22:if(e.extra){for(x=e.extra;u>>=e.extra,u-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=23;case 23:for(;F=(N=e.distcode[Q&(1<>>16&255,Y=65535&N,!((y=N>>>24)<=u);){if(0===E)break A;E--,Q+=g[l++]<>m)])>>>16&255,Y=65535&N,!(m+(y=N>>>24)<=u);){if(0===E)break A;E--,Q+=g[l++]<>>=m,u-=m,e.back+=m}if(Q>>>=y,u-=y,e.back+=y,64&F){A.msg="invalid distance code",e.mode=30;break}e.offset=Y,e.extra=15&F,e.mode=24;case 24:if(e.extra){for(x=e.extra;u>>=e.extra,u-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){A.msg="invalid distance too far back",e.mode=30;break}e.mode=25;case 25:if(0===h)break A;if(D=M-h,e.offset>D){if((D=e.offset-D)>e.whave&&e.sane){A.msg="invalid distance too far back",e.mode=30;break}I=D>e.wnext?(D-=e.wnext,e.wsize-D):e.wnext-D,D>e.length&&(D=e.length),p=e.window}else p=c,I=w-e.offset,D=e.length;for(hf?(d=G[S+c[p]],P[x+c[p]]):(d=96,0),w=1<>b)+(E-=w)]=C<<24|d<<16|M,0!==E;);for(w=1<>=1;if(0!==w?(U&=w-1,U+=w):U=0,p++,0==--N[I]){if(I===F)break;I=t[e+c[p]]}if(Y>>7)]}function y(A,t){A.pending_buf[A.pending++]=255&t,A.pending_buf[A.pending++]=t>>>8&255}function F(A,t,e){A.bi_valid>16-e?(A.bi_buf|=t<>16-A.bi_valid,A.bi_valid+=e-16):(A.bi_buf|=t<>>=1,e<<=1,0<--t;);return e>>>1}function b(A,t,e){var n,r,i=new Array(16),s=0;for(n=1;n<=a;n++)i[n]=s=s+e[n-1]<<1;for(r=0;r<=t;r++){var o=A[2*r+1];0!==o&&(A[2*r]=m(i[o]++,o))}}function v(A){var t;for(t=0;t>1;1<=e;e--)P(A,i,e);for(r=B;e=A.heap[1],A.heap[1]=A.heap[A.heap_len--],P(A,i,1),n=A.heap[1],A.heap[--A.heap_max]=e,A.heap[--A.heap_max]=n,i[2*r]=i[2*e]+i[2*n],A.depth[r]=(A.depth[e]>=A.depth[n]?A.depth[e]:A.depth[n])+1,i[2*e+1]=i[2*n+1]=r,A.heap[1]=r++,P(A,i,1),2<=A.heap_len;);A.heap[--A.heap_max]=A.heap[1],function(A,t){var e,n,r,i,s,o,B=t.dyn_tree,g=t.max_code,c=t.stat_desc.static_tree,l=t.stat_desc.has_stree,w=t.stat_desc.extra_bits,E=t.stat_desc.extra_base,h=t.stat_desc.max_length,Q=0;for(i=0;i<=a;i++)A.bl_count[i]=0;for(B[2*A.heap[A.heap_max]+1]=0,e=A.heap_max+1;e<573;e++)h<(i=B[2*B[2*(n=A.heap[e])+1]+1]+1)&&(i=h,Q++),B[2*n+1]=i,g>=7;n>>=1)if(1&e&&0!==A.dyn_ltree[2*t])return 0;if(0!==A.dyn_ltree[18]||0!==A.dyn_ltree[20]||0!==A.dyn_ltree[26])return 1;for(t=32;t>>3,(s=A.static_len+3+7>>>3)<=r&&(r=s)):r=s=e+5,e+4<=r&&-1!==t?T(A,t,e,n):4===A.strategy||s===r?(F(A,2+(n?1:0),3),x(A,w,E)):(F(A,4+(n?1:0),3),function(A,t,e,n){var r;for(F(A,t-257,5),F(A,e-1,5),F(A,n-4,4),r=0;r>>8&255,A.pending_buf[A.d_buf+2*A.last_lit+1]=255&t,A.pending_buf[A.l_buf+A.last_lit]=255&e,A.last_lit++,0===t?A.dyn_ltree[2*e]++:(A.matches++,t--,A.dyn_ltree[2*(Q[e]+i+1)]++,A.dyn_dtree[2*p(t)]++),A.last_lit===A.lit_bufsize-1},e._tr_align=function(A){F(A,2,3),Y(A,256,w),function(A){16===A.bi_valid?(y(A,A.bi_buf),A.bi_buf=0,A.bi_valid=0):8<=A.bi_valid&&(A.pending_buf[A.pending++]=255&A.bi_buf,A.bi_buf>>=8,A.bi_valid-=8)}(A)}},{"../utils/common":41}],53:[function(A,t,e){"use strict";t.exports=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}},{}],54:[function(A,t,n){(function(A){!function(A){"use strict";if(!A.setImmediate){var t,e,n,r,i=1,s={},o=!1,a=A.document,B=Object.getPrototypeOf&&Object.getPrototypeOf(A);B=B&&B.setTimeout?B:A,t="[object process]"==={}.toString.call(A.process)?function(A){process.nextTick((function(){c(A)}))}:function(){if(A.postMessage&&!A.importScripts){var t=!0,e=A.onmessage;return A.onmessage=function(){t=!1},A.postMessage("","*"),A.onmessage=e,t}}()?(r="setImmediate$"+Math.random()+"$",A.addEventListener?A.addEventListener("message",l,!1):A.attachEvent("onmessage",l),function(t){A.postMessage(r+t,"*")}):A.MessageChannel?((n=new MessageChannel).port1.onmessage=function(A){c(A.data)},function(A){n.port2.postMessage(A)}):a&&"onreadystatechange"in a.createElement("script")?(e=a.documentElement,function(A){var t=a.createElement("script");t.onreadystatechange=function(){c(A),t.onreadystatechange=null,e.removeChild(t),t=null},e.appendChild(t)}):function(A){setTimeout(c,0,A)},B.setImmediate=function(A){"function"!=typeof A&&(A=new Function(""+A));for(var e=new Array(arguments.length-1),n=0;n{var n,r;n=[e(428),e(5668)],void 0===(r=function(A){return function(A,t,e){"use strict";var n=A.fn.dataTable,r=0,i=0,s=n.ext.buttons,o=null;function a(t,e,n){A.fn.animate?t.stop().fadeIn(e,n):(t.css("display","block"),n&&n.call(t))}function B(t,e,n){A.fn.animate?t.stop().fadeOut(e,n):(t.css("display","none"),n&&n.call(t))}var g,c=function(t,e){if(!n.versionCheck("2"))throw"Warning: Buttons requires DataTables 2 or newer";if(!(this instanceof c))return function(A){return new c(A,t).container()};void 0===e&&(e={}),!0===e&&(e={}),Array.isArray(e)&&(e={buttons:e}),this.c=A.extend(!0,{},c.defaults,e),e.buttons&&(this.c.buttons=e.buttons),this.s={dt:new n.Api(t),buttons:[],listenKeys:"",namespace:"dtb"+r++},this.dom={container:A("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)},this._constructor()};A.extend(c.prototype,{action:function(A,t){var e=this._nodeToButton(A);return void 0===t?e.conf.action:(e.conf.action=t,this)},active:function(t,e){var n=this._nodeToButton(t),r=this.c.dom.button.active,i=A(n.node);return n.inCollection&&this.c.dom.collection.button&&void 0!==this.c.dom.collection.button.active&&(r=this.c.dom.collection.button.active),void 0===e?i.hasClass(r):(i.toggleClass(r,void 0===e||e),this)},add:function(A,t,e){var n=this.s.buttons;if("string"==typeof t){for(var r=t.split("-"),i=this.s,s=0,o=r.length-1;s=0;n--)this.remove(e.buttons[n].node);for(e.conf.prefixButtons&&t.unshift.apply(t,e.conf.prefixButtons),e.conf.postfixButtons&&t.push.apply(t,e.conf.postfixButtons),n=0;n=0;i--)this.remove(e.buttons[i].node);e.conf.destroying=!0,e.conf.destroy&&e.conf.destroy.call(r.button(t),r,A(t),e.conf),this._removeKey(e.conf),A(e.node).remove(),e.inserter&&A(e.inserter).remove();var s=A.inArray(e,n);return n.splice(s,1),this},text:function(t,e){var n=this._nodeToButton(t),r=n.textNode,i=this.s.dt,s=A(n.node),o=function(A){return"function"==typeof A?A(i,s,n.conf):A};return void 0===e?o(n.conf.text):(n.conf.text=e,r.html(o(e)),this)},_constructor:function(){var t=this,n=this.s.dt,r=n.settings()[0],i=this.c.buttons;r._buttons||(r._buttons=[]),r._buttons.push({inst:this,name:this.c.name});for(var s=0,o=i.length;s"),Q.conf._collection=Q.collection,this._expandButton(Q.buttons,Q.conf.buttons,Q.conf.split,!g,g,s,Q.conf)),Q.conf.split){Q.collection=A("<"+c.container.tag+"/>"),Q.conf._collection=Q.collection;for(var u=0;u").addClass("dt-button-spacer "+t.style+" "+E.spacer.className).html(w(t.text));return{conf:t,node:h,nodeChild:null,inserter:h,buttons:[],inCollection:e,isSplit:n,collection:null,textNode:h}}if(t.available&&!t.available(c,t)&&!t.html)return!1;if(t.html)a=A(t.html);else{var Q=function(t,e,n,r,i){r.action.call(e.button(n),t,e,n,r,i),A(e.table().node()).triggerHandler("buttons-action.dt",[e.button(n),e,n,r])},u=function(A,t,e,n){n.async?(B.processing(e[0],!0),setTimeout((function(){Q(A,t,e,n,(function(){B.processing(e[0],!1)}))}),n.async)):Q(A,t,e,n,(function(){}))},f=t.tag||E.tag,C=void 0===t.clickBlurs||t.clickBlurs;if(a=A("<"+f+"/>").addClass(E.className).attr("aria-controls",this.s.dt.table().node().id).on("click.dtb",(function(A){A.preventDefault(),!a.hasClass(E.disabled)&&t.action&&u(A,c,a,t),C&&a.trigger("blur")})).on("keypress.dtb",(function(A){13===A.keyCode&&(A.preventDefault(),!a.hasClass(E.disabled)&&t.action&&u(A,c,a,t))})),"a"===f.toLowerCase()&&a.attr("href","#"),"button"===f.toLowerCase()&&a.attr("type","button"),E.liner.tag){var d=E.liner.tag.toLowerCase(),M=A("<"+d+"/>").html(w(t.text)).addClass(E.liner.className);"a"===d&&M.attr("href","#"),"a"!==d&&"button"!==d||(M.attr("tabindex",this.s.dt.settings()[0].iTabIndex),l=!0),a.append(M),o=M}else a.html(w(t.text)),o=a;l||a.attr("tabindex",this.s.dt.settings()[0].iTabIndex),!1===t.enabled&&a.addClass(E.disabled),t.className&&a.addClass(t.className),t.titleAttr&&a.attr("title",w(t.titleAttr)),t.attr&&a.attr(t.attr),t.namespace||(t.namespace=".dt-button-"+i++),void 0!==t.config&&t.config.split&&(t.split=t.config.split)}var D,I,p=this.c.dom.buttonContainer;if(D=p&&p.tag?A("<"+p.tag+"/>").addClass(p.className).append(a):a,this._addKey(t),this.c.buttonCreated&&(D=this.c.buttonCreated(t,D)),n){var y=e?A.extend(!0,this.c.dom.split,this.c.dom.collection.split):this.c.dom.split,F=y.wrapper;I=A("<"+F.tag+"/>").addClass(F.className).append(a);var Y=A.extend(t,{autoClose:!0,align:y.dropdown.align,attr:{"aria-haspopup":"dialog","aria-expanded":!1},className:y.dropdown.className,closeButton:!1,splitAlignClass:y.dropdown.splitAlignClass,text:y.dropdown.text});this._addKey(Y);var m=function(t,e,n,r){s.split.action.call(e.button(I),t,e,n,r),A(e.table().node()).triggerHandler("buttons-action.dt",[e.button(n),e,n,r]),n.attr("aria-expanded",!0)},b=A('').html(this.c.dom.button.dropHtml).addClass(this.c.dom.button.dropClass).on("click.dtb",(function(A){A.preventDefault(),A.stopPropagation(),b.hasClass(E.disabled)||m(A,c,b,Y),C&&b.trigger("blur")})).on("keypress.dtb",(function(A){13===A.keyCode&&(A.preventDefault(),b.hasClass(E.disabled)||m(A,c,b,Y))}));0===t.split.length&&b.addClass("dtb-hide-drop"),I.append(b).attr(Y.attr)}var v=n?I.get(0):a.get(0);return{conf:t,node:v,nodeChild:v&&v.children&&v.children.length?v.children[0]:null,inserter:n?I:D,buttons:[],inCollection:e,isSplit:n,inSplit:r,collection:null,textNode:o}},_checkSplitEnable:function(t){t||(t=this.s.buttons);for(var e=0;e30)throw"Buttons: Too many iterations"}return Array.isArray(e)?e:A.extend({},e)};for(t=o(t);t&&t.extend;){if(!s[t.extend])throw"Cannot extend unknown button type: "+t.extend;var a=o(s[t.extend]);if(Array.isArray(a))return a;if(!a)return!1;var B=a.className;void 0!==t.config&&void 0!==a.config&&(t.config=A.extend({},a.config,t.config)),t=A.extend({},a,t),B&&t.className!==B&&(t.className=B+" "+t.className),t.extend=a.extend}var g=t.postfixButtons;if(g)for(t.buttons||(t.buttons=[]),e=0,n=g.length;e").addClass(l.containerClassName).addClass(l.collectionLayout).addClass(l.splitAlignClass).addClass(d).css("display","none").attr({"aria-modal":!0,role:"dialog"});n=A(n).addClass(l.contentClassName).attr("role","menu").appendTo(M),E.attr("aria-expanded","true"),h.parents("body")[0]!==e.body&&(h=A(e.body).children("div, section, p").last()),l.popoverTitle?M.prepend('
'+l.popoverTitle+"
"):l.collectionTitle&&M.prepend('
'+l.collectionTitle+"
"),l.closeButton&&M.prepend('
×
').addClass("dtb-collection-closeable"),a(M.insertAfter(h),l.fade);var D=A(r.table().container()),I=M.css("position");if("container"!==l.span&&"dt-container"!==l.align||(h=h.parent(),M.css("width",D.width())),"absolute"===I){var p=A(h[0].offsetParent),y=h.position(),F=h.offset(),Y=p.offset(),m=p.position(),b=t.getComputedStyle(p[0]);Y.height=p.outerHeight(),Y.width=p.width()+parseFloat(b.paddingLeft),Y.right=Y.left+Y.width,Y.bottom=Y.top+Y.height;var v=y.top+h.outerHeight(),z=y.left;M.css({top:v,left:z}),b=t.getComputedStyle(M[0]);var U=M.offset();U.height=M.outerHeight(),U.width=M.outerWidth(),U.right=U.left+U.width,U.bottom=U.top+U.height,U.marginTop=parseFloat(b.marginTop),U.marginBottom=parseFloat(b.marginBottom),l.dropup&&(v=y.top-U.height-U.marginTop-U.marginBottom),("button-right"===l.align||M.hasClass(l.rightAlignClassName))&&(z=y.left-U.width+h.outerWidth()),"dt-container"!==l.align&&"container"!==l.align||zA(t).width()&&(z=A(t).width()-U.width-m.left),F.left+z<0&&(z=-F.left),m.top+v+U.height>A(t).height()+A(t).scrollTop()&&(v=y.top-U.height-U.marginTop-U.marginBottom),p.offset().top+ve&&(n=e),M.css("marginTop",-1*n)};P(),A(t).on("resize.dtb-collection",(function(){P()}))}l.background&&c.background(!0,l.backgroundClassName,l.fade,l.backgroundHost||h),A("div.dt-button-background").on("click.dtb-collection",(function(){})),l.autoClose&&setTimeout((function(){s.on("buttons-action.b-internal",(function(A,t,e,n){n[0]!==h[0]&&Q()}))}),0),A(M).trigger("buttons-popover.dt"),s.on("destroy.dtb-popover",Q),setTimeout((function(){g=!1,A("body").on("click.dtb-collection",(function(t){if(!g){var e=A.fn.addBack?"addBack":"andSelf",r=A(t.target).parent()[0];(!A(t.target).parents()[e]().filter(n).length&&!A(r).hasClass("dt-buttons")||A(t.target).hasClass("dt-button-background"))&&Q()}})).on("keyup.dtb-collection",(function(A){27===A.keyCode&&Q()})).on("keydown.dtb-collection",(function(t){var r=A("a, button",n),i=e.activeElement;9===t.keyCode&&(-1===r.index(i)?(r.first().focus(),t.preventDefault()):t.shiftKey?i===r[0]&&(r.last().focus(),t.preventDefault()):i===r.last()[0]&&(r.first().focus(),t.preventDefault()))}))}),0)}else Q()}}),c.background=function(t,n,r,i){void 0===r&&(r=400),i||(i=e.body),t?a(A("
").addClass(n).css("display","none").insertAfter(i),r):B(A("div."+n),r,(function(){A(this).removeClass(n).remove()}))},c.instanceSelector=function(t,e){if(null==t)return A.map(e,(function(A){return A.inst}));var n=[],r=A.map(e,(function(A){return A.name})),i=function(t){if(Array.isArray(t))for(var s=0,o=t.length;s)|(/))return new t(null,8,A,i);if(A=r.match(/^<\?[\s\S]*?\?>/))return new t(null,7,A,i);if(A=r.match(/^/))return new t(null,10,A,i);if(A=r.match(/^/,!0))return new t("#cdata-section",4,A[1],i);if(A=r.match(/^([^<]+)/,!0))return new t("#text",3,I(A[1]),i)}};for(;n=s();)1!==n.nodeType||e?(1===n.nodeType||3===n.nodeType&&""!==n.nodeValue.trim())&&zA("parseXml: data after document end has been discarded"):e=n;return r.matchAll()&&zA("parseXml: parsing error"),e}function I(A){return A.replace(/&(?:#([0-9]+)|#[xX]([0-9A-Fa-f]+)|([0-9A-Za-z]+));/g,(function(A,t,e,n){return t?String.fromCharCode(parseInt(t,10)):e?String.fromCharCode(parseInt(e,16)):n&&o[n]?String.fromCharCode(o[n]):A}))}function p(A){let t,e;return A=(A||"").trim(),(t=i[A])?e=[t.slice(),1]:(t=A.match(/^cmyk\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)$/i))?(t[1]=parseInt(t[1]),t[2]=parseInt(t[2]),t[3]=parseInt(t[3]),t[4]=parseFloat(t[4]),t[1]<=100&&t[2]<=100&&t[3]<=100&&t[4]<=100&&(e=[t.slice(1,5),1])):(t=A.match(/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)$/i))?(t[1]=parseInt(t[1]),t[2]=parseInt(t[2]),t[3]=parseInt(t[3]),t[4]=parseFloat(t[4]),t[1]<256&&t[2]<256&&t[3]<256&&t[4]<=1&&(e=[t.slice(1,4),t[4]])):(t=A.match(/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)$/i))?(t[1]=parseInt(t[1]),t[2]=parseInt(t[2]),t[3]=parseInt(t[3]),t[1]<256&&t[2]<256&&t[3]<256&&(e=[t.slice(1,4),1])):(t=A.match(/^rgb\(\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/i))?(t[1]=2.55*parseFloat(t[1]),t[2]=2.55*parseFloat(t[2]),t[3]=2.55*parseFloat(t[3]),t[1]<256&&t[2]<256&&t[3]<256&&(e=[t.slice(1,4),1])):(t=A.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?e=[[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)],1]:(t=A.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(e=[[17*parseInt(t[1],16),17*parseInt(t[2],16),17*parseInt(t[3],16)],1]),xA?xA(e,A):e}function y(A,t,e){let n=A[0].slice(),r=A[1]*t;if(e){for(let t=0;t=0;A--)t=F(GA[A].savedMatrix,t);return t}function b(){return(new _).M(0,0).L(A.page.width,0).L(A.page.width,A.page.height).L(0,A.page.height).transform(v(m())).getBoundingBox()}function v(A){let t=A[0]*A[3]-A[1]*A[2];return[A[3]/t,-A[1]/t,-A[2]/t,A[0]/t,(A[2]*A[5]-A[3]*A[4])/t,(A[1]*A[4]-A[0]*A[5])/t]}function z(A){let t=R(A[0]),e=R(A[1]),n=R(A[2]),r=R(A[3]),i=R(A[4]),s=R(A[5]);if(N(t*r-e*n,0))return[t,e,n,r,i,s]}function U(A){let t=A[2]||0,e=A[1]||0,n=A[0]||0;if(x(t,0)&&x(e,0))return[];if(x(t,0))return[-n/e];{let A=e*e-4*t*n;return N(A,0)&&A>0?[(-e+Math.sqrt(A))/(2*t),(-e-Math.sqrt(A))/(2*t)]:x(A,0)?[-e/(2*t)]:[]}}function P(A,t){return(t[0]||0)+(t[1]||0)*A+(t[2]||0)*A*A+(t[3]||0)*A*A*A}function x(A,t){return Math.abs(A-t)<1e-10}function N(A,t){return Math.abs(A-t)>=1e-10}function R(A){return A>-1e21&&A<1e21?Math.round(1e6*A)/1e6:0}function G(A){let t,e=new V((A||"").trim()),n=[1,0,0,1,0,0];for(;t=e.match(/^([A-Za-z]+)\s*[(]([^(]+)[)]/,!0);){let A,r=t[1],i=[],s=new V(t[2].trim());for(;A=s.matchNumber();)i.push(Number(A)),s.matchSeparator();if("matrix"===r&&6===i.length)n=F(n,[i[0],i[1],i[2],i[3],i[4],i[5]]);else if("translate"===r&&2===i.length)n=F(n,[1,0,0,1,i[0],i[1]]);else if("translate"===r&&1===i.length)n=F(n,[1,0,0,1,i[0],0]);else if("scale"===r&&2===i.length)n=F(n,[i[0],0,0,i[1],0,0]);else if("scale"===r&&1===i.length)n=F(n,[i[0],0,0,i[0],0,0]);else if("rotate"===r&&3===i.length){let A=i[0]*Math.PI/180;n=F(n,[1,0,0,1,i[1],i[2]],[Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0],[1,0,0,1,-i[1],-i[2]])}else if("rotate"===r&&1===i.length){let A=i[0]*Math.PI/180;n=F(n,[Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0])}else if("skewX"===r&&1===i.length){let A=i[0]*Math.PI/180;n=F(n,[1,0,Math.tan(A),1,0,0])}else{if("skewY"!==r||1!==i.length)return;{let A=i[0]*Math.PI/180;n=F(n,[1,Math.tan(A),0,1,0,0])}}e.matchSeparator()}if(!e.matchAll())return n}function S(A,t,e,n,r,i){let s=(A||"").trim().match(/^(none)$|^x(Min|Mid|Max)Y(Min|Mid|Max)(?:\s+(meet|slice))?$/)||[],o=s[1]||s[4]||"meet",a=s[2]||"Mid",B=s[3]||"Mid",g=t/n,c=e/r,l={Min:0,Mid:.5,Max:1}[a]-(i||0),w={Min:0,Mid:.5,Max:1}[B]-(i||0);return"slice"===o?c=g=Math.max(g,c):"meet"===o&&(c=g=Math.min(g,c)),[g,0,0,c,l*(t-n*g),w*(e-r*c)]}function T(A){let t=Object.create(null);A=(A||"").trim().split(/;/);for(let e=0;en&&(A=n,n=t,t=A),e>r&&(A=r,r=e,e=A);let i=U(c);for(let A=0;A=0&&i[A]<=1){let e=P(i[A],B);en&&(n=e)}let s=U(l);for(let A=0;A=0&&s[A]<=1){let t=P(s[A],g);tr&&(r=t)}return[t,e,n,r]},this.getPointAtLength=function(A){if(x(A,0))return this.startPoint;if(x(A,this.totalLength))return this.endPoint;if(!(A<0||A>this.totalLength))for(let t=1;t<=a;t++){let e=w[t-1],n=w[t];if(e<=A&&A<=n){let r=(t-(n-A)/(n-e))/a,i=P(r,B),s=P(r,g),o=P(r,c),w=P(r,l);return[i,s,Math.atan2(w,o)]}}}},Z=function(A,t,e,n){this.totalLength=Math.sqrt((e-A)*(e-A)+(n-t)*(n-t)),this.startPoint=[A,t,Math.atan2(n-t,e-A)],this.endPoint=[e,n,Math.atan2(n-t,e-A)],this.getBoundingBox=function(){return[Math.min(this.startPoint[0],this.endPoint[0]),Math.min(this.startPoint[1],this.endPoint[1]),Math.max(this.startPoint[0],this.endPoint[0]),Math.max(this.startPoint[1],this.endPoint[1])]},this.getPointAtLength=function(A){if(A>=0&&A<=this.totalLength){let t=A/this.totalLength||0;return[this.startPoint[0]+t*(this.endPoint[0]-this.startPoint[0]),this.startPoint[1]+t*(this.endPoint[1]-this.startPoint[1]),this.startPoint[2]]}}},_=function(){this.pathCommands=[],this.pathSegments=[],this.startPoint=null,this.endPoint=null,this.totalLength=0;let t,e,n,r=0,i=0,s=0,o=0;this.move=function(A,t){return r=s=A,i=o=t,null},this.line=function(A,t){let e=new Z(s,o,A,t);return s=A,o=t,e},this.curve=function(A,t,e,n,r,i){let a=new X(s,o,A,t,e,n,r,i);return s=r,o=i,a},this.close=function(){let A=new Z(s,o,r,i);return s=r,o=i,A},this.addCommand=function(A){this.pathCommands.push(A);let t=this[A[0]].apply(this,A.slice(3));t&&(t.hasStart=A[1],t.hasEnd=A[2],this.startPoint=this.startPoint||t.startPoint,this.endPoint=t.endPoint,this.pathSegments.push(t),this.totalLength+=t.totalLength)},this.M=function(A,e){return this.addCommand(["move",!0,!0,A,e]),t="M",this},this.m=function(A,t){return this.M(s+A,o+t)},this.Z=this.z=function(){return this.addCommand(["close",!0,!0]),t="Z",this},this.L=function(A,e){return this.addCommand(["line",!0,!0,A,e]),t="L",this},this.l=function(A,t){return this.L(s+A,o+t)},this.H=function(A){return this.L(A,o)},this.h=function(A){return this.L(s+A,o)},this.V=function(A){return this.L(s,A)},this.v=function(A){return this.L(s,o+A)},this.C=function(A,r,i,s,o,a){return this.addCommand(["curve",!0,!0,A,r,i,s,o,a]),t="C",e=i,n=s,this},this.c=function(A,t,e,n,r,i){return this.C(s+A,o+t,s+e,o+n,s+r,o+i)},this.S=function(A,r,i,a){return this.C(s+("C"===t?s-e:0),o+("C"===t?o-n:0),A,r,i,a)},this.s=function(A,r,i,a){return this.C(s+("C"===t?s-e:0),o+("C"===t?o-n:0),s+A,o+r,s+i,o+a)},this.Q=function(A,r,i,a){let B=s+2/3*(A-s),g=o+2/3*(r-o),c=i+2/3*(A-i),l=a+2/3*(r-a);return this.addCommand(["curve",!0,!0,B,g,c,l,i,a]),t="Q",e=A,n=r,this},this.q=function(A,t,e,n){return this.Q(s+A,o+t,s+e,o+n)},this.T=function(A,r){return this.Q(s+("Q"===t?s-e:0),o+("Q"===t?o-n:0),A,r)},this.t=function(A,r){return this.Q(s+("Q"===t?s-e:0),o+("Q"===t?o-n:0),s+A,o+r)},this.A=function(A,e,n,r,i,a,B){if(x(A,0)||x(e,0))this.addCommand(["line",!0,!0,a,B]);else{n*=Math.PI/180,A=Math.abs(A),e=Math.abs(e),r=1*!!r,i=1*!!i;let t=Math.cos(n)*(s-a)/2+Math.sin(n)*(o-B)/2,g=Math.cos(n)*(o-B)/2-Math.sin(n)*(s-a)/2,c=t*t/(A*A)+g*g/(e*e);c>1&&(A*=Math.sqrt(c),e*=Math.sqrt(c));let l=Math.sqrt(Math.max(0,A*A*e*e-A*A*g*g-e*e*t*t)/(A*A*g*g+e*e*t*t)),w=(r===i?-1:1)*l*A*g/e,E=(r===i?1:-1)*l*e*t/A,h=Math.cos(n)*w-Math.sin(n)*E+(s+a)/2,Q=Math.sin(n)*w+Math.cos(n)*E+(o+B)/2,u=Math.atan2((g-E)/e,(t-w)/A),f=Math.atan2((-g-E)/e,(-t-w)/A);0===i&&f-u>0?f-=2*Math.PI:1===i&&f-u<0&&(f+=2*Math.PI);let C=Math.ceil(Math.abs(f-u)/(Math.PI/RA));for(let t=0;tA[2]&&(A[2]=t[2]),t[1]A[3]&&(A[3]=t[3]);var t;return A[0]===1/0&&(A[0]=0),A[1]===1/0&&(A[1]=0),A[2]===-1/0&&(A[2]=0),A[3]===-1/0&&(A[3]=0),A},this.getPointAtLength=function(A){if(A>=0&&A<=this.totalLength){let t;for(let e=0;er.selector.specificity||(t[A]=r.css[A],e[A]=r.selector.specificity)}return t}(A),this.allowedChildren=[],this.attr=function(t){if("function"==typeof A.getAttribute)return A.getAttribute(t)},this.resolveUrl=function(A){let e=(A||"").match(/^\s*(?:url\("(.*)#(.*)"\)|url\('(.*)#(.*)'\)|url\((.*)#(.*)\)|(.*)#(.*))\s*$/)||[],n=e[1]||e[3]||e[5]||e[7],r=e[2]||e[4]||e[6]||e[8];if(r){if(!n){let A=t.getElementById(r);if(A)return-1===this.stack.indexOf(A)?A:void zA('SVGtoPDF: loop of circular references for id "'+r+'"')}if(NA){let A=SA[n];if(!A){A=NA(n),("object"!=typeof(i=A)||null===i||"number"!=typeof i.length)&&(A=[A]);for(let t=0;t=0&&e[3]>=0?e:t},this.getPercent=function(A,t){let e=this.attr(A),n=new V((e||"").trim()),r=n.matchNumber();return r?(n.match("%")&&(r*=.01),n.matchAll()?t:Math.max(0,Math.min(1,r))):t},this.chooseValue=function(A){for(let A=0;A=0&&(e=i);break;case"stroke-miterlimit":i=parseFloat(t),null!=i&&i>=1&&(e=i);break;case"word-spacing":case"letter-spacing":case"stroke-dashoffset":e=this.computeLength(t,this.getViewport())}if(null!=e)return n[A]=e}}return n[A]=r.inherit&&this.inherits?this.inherits.get(A):r.initial},this.getChildren=function(){if(null!=r)return r;let t=[];for(let e=0;e0?A:this.ref?this.ref.getChildren():[]},this.getPaint=function(t,e,r,i){let s="userSpaceOnUse"!==this.attr("patternUnits"),o="objectBoundingBox"===this.attr("patternContentUnits"),a=this.getLength("x",s?1:this.getParentVWidth(),0),B=this.getLength("y",s?1:this.getParentVHeight(),0),g=this.getLength("width",s?1:this.getParentVWidth(),0),w=this.getLength("height",s?1:this.getParentVHeight(),0);o&&!s?(a=(a-t[0])/(t[2]-t[0])||0,B=(B-t[1])/(t[3]-t[1])||0,g=g/(t[2]-t[0])||0,w=w/(t[3]-t[1])||0):!o&&s&&(a=t[0]+a*(t[2]-t[0]),B=t[1]+B*(t[3]-t[1]),g*=t[2]-t[0],w*=t[3]-t[1]);let E=this.getViewbox("viewBox",[0,0,g,w]),Q=F(S((this.attr("preserveAspectRatio")||"").trim(),g,w,E[2],E[3],0),[1,0,0,1,-E[0],-E[1]]),u=G(this.attr("patternTransform"));if(o&&(u=F([t[2]-t[0],0,0,t[3]-t[1],t[0],t[1]],u)),u=F(u,[1,0,0,1,a,B]),(u=z(u))&&(Q=z(Q))&&(g=R(g))&&(w=R(w))){let t=c([0,0,g,w]);return A.transform.apply(A,Q),this.drawChildren(r,i),l(t),[h(t,g,w,u),e]}return n?[n[0],n[1]*e]:void 0},this.getVWidth=function(){let A="userSpaceOnUse"!==this.attr("patternUnits"),t=this.getLength("width",A?1:this.getParentVWidth(),0);return this.getViewbox("viewBox",[0,0,t,0])[2]},this.getVHeight=function(){let A="userSpaceOnUse"!==this.attr("patternUnits"),t=this.getLength("height",A?1:this.getParentVHeight(),0);return this.getViewbox("viewBox",[0,0,0,t])[3]}},BA=function(t,e,n){q.call(this,t,e),this.allowedChildren=["stop"],this.ref=function(){let A=this.getUrl("href")||this.getUrl("xlink:href");if(A&&A.nodeName===t.nodeName)return new BA(A,e,n)}.call(this);let r=this.attr;this.attr=function(A){let t=r.call(this,A);return null!=t||"href"===A||"xlink:href"===A?t:this.ref?this.ref.attr(A):null};let i=this.getChildren;this.getChildren=function(){let A=i.call(this);return A.length>0?A:this.ref?this.ref.getChildren():[]},this.getPaint=function(t,e,r,i){let o=this.getChildren();if(0===o.length)return;if(1===o.length){let A=o[0],t=A.get("stop-color");if("none"===t)return;return y(t,A.get("stop-opacity")*e,i)}let a,B,g,c,l,w,E="userSpaceOnUse"!==this.attr("gradientUnits"),h=G(this.attr("gradientTransform")),Q=this.attr("spreadMethod"),u=0,f=0,C=1;if(E&&(h=F([t[2]-t[0],0,0,t[3]-t[1],t[0],t[1]],h)),h=z(h)){if("linearGradient"===this.name)B=this.getLength("x1",E?1:this.getVWidth(),0),g=this.getLength("x2",E?1:this.getVWidth(),E?1:this.getVWidth()),c=this.getLength("y1",E?1:this.getVHeight(),0),l=this.getLength("y2",E?1:this.getVHeight(),0);else{g=this.getLength("cx",E?1:this.getVWidth(),E?.5:.5*this.getVWidth()),l=this.getLength("cy",E?1:this.getVHeight(),E?.5:.5*this.getVHeight()),w=this.getLength("r",E?1:this.getViewport(),E?.5:.5*this.getViewport()),B=this.getLength("fx",E?1:this.getVWidth(),g),c=this.getLength("fy",E?1:this.getVHeight(),l),w<0&&zA("SvgElemGradient: negative r value");let A=Math.sqrt(Math.pow(g-B,2)+Math.pow(l-c,2)),t=1;A>w&&(t=w/A,B=g+(B-g)*t,c=l+(c-l)*t),w=Math.max(w,A*t*1.000001)}if("reflect"===Q||"repeat"===Q){let A=v(h),e=Y([t[0],t[1]],A),n=Y([t[2],t[1]],A),r=Y([t[2],t[3]],A),i=Y([t[0],t[3]],A);"linearGradient"===this.name?(u=Math.max((e[0]-g)*(g-B)+(e[1]-l)*(l-c),(n[0]-g)*(g-B)+(n[1]-l)*(l-c),(r[0]-g)*(g-B)+(r[1]-l)*(l-c),(i[0]-g)*(g-B)+(i[1]-l)*(l-c))/(Math.pow(g-B,2)+Math.pow(l-c,2)),f=Math.max((e[0]-B)*(B-g)+(e[1]-c)*(c-l),(n[0]-B)*(B-g)+(n[1]-c)*(c-l),(r[0]-B)*(B-g)+(r[1]-c)*(c-l),(i[0]-B)*(B-g)+(i[1]-c)*(c-l))/(Math.pow(g-B,2)+Math.pow(l-c,2))):u=Math.sqrt(Math.max(Math.pow(e[0]-g,2)+Math.pow(e[1]-l,2),Math.pow(n[0]-g,2)+Math.pow(n[1]-l,2),Math.pow(r[0]-g,2)+Math.pow(r[1]-l,2),Math.pow(i[0]-g,2)+Math.pow(i[1]-l,2)))/w-1,u=Math.ceil(u+.5),f=Math.ceil(f+.5),C=f+1+u}a="linearGradient"===this.name?A.linearGradient(B-f*(g-B),c-f*(l-c),g+u*(g-B),l+u*(l-c)):A.radialGradient(B,c,0,g,l,w+u*w);for(let A=0;A0&&a.stop((A+0)/C,g[0],g[1]),a.stop((A+t)/(u+f+1),g[0],g[1]),r===o.length-1&&t<1&&a.stop((A+1)/C,g[0],g[1])}}return a.setTransform.apply(a,h),[a,1]}return n?[n[0],n[1]*e]:void 0}},gA=function(t,e){$.call(this,t,e),this.dashScale=1,this.getBoundingShape=function(){return this.shape},this.getTransformation=function(){return this.get("transform")},this.drawInDocument=function(t,e){if("hidden"!==this.get("visibility")&&this.shape){if(A.save(),"non-scaling-stroke"===this.get("vector-effect")?this.shape.transform(this.getTransformation()):this.transform(),this.clip(),t)this.shape.insertInDocument(),C(s.white),A.fill(this.get("clip-rule"));else{let n;this.mask()&&(n=c(b()));let r=this.shape.getSubPaths(),i=this.getFill(t,e),s=this.getStroke(t,e),o=this.get("stroke-width"),a=this.get("stroke-linecap");if("non-scaling-stroke"===this.get("vector-effect")&&(o/=function(){const t=b();return A.page.width/t[2]}()),i||s){if(i&&C(i),s){for(let t=0;t0&&r[t].startPoint&&r[t].startPoint.length>1){let e=r[t].startPoint[0],n=r[t].startPoint[1];C(s),"square"===a?A.rect(e-.5*o,n-.5*o,o,o):"round"===a&&A.circle(e,n,.5*o),A.fill()}let t=this.get("stroke-dasharray"),e=this.get("stroke-dashoffset");if(N(this.dashScale,1)){for(let A=0;A0&&r[A].insertInDocument();i&&s?A.fillAndStroke(this.get("fill-rule")):i?A.fill(this.get("fill-rule")):s&&A.stroke()}let B=this.get("marker-start"),g=this.get("marker-mid"),E=this.get("marker-end");if("none"!==B||"none"!==g||"none"!==E){let A=this.shape.getMarkers();if("none"!==B&&A.length>0&&new fA(B,null).drawMarker(!1,e,A[0],o),"none"!==g)for(let t=1;t0&&new fA(E,null).drawMarker(!1,e,A[A.length-1],o)}n&&(l(n),w(n))}A.restore()}}},cA=function(A,t){gA.call(this,A,t);let e=this.getLength("x",this.getVWidth(),0),n=this.getLength("y",this.getVHeight(),0),r=this.getLength("width",this.getVWidth(),0),i=this.getLength("height",this.getVHeight(),0),s=this.getLength("rx",this.getVWidth()),o=this.getLength("ry",this.getVHeight());void 0===s&&void 0===o?s=o=0:void 0===s&&void 0!==o?s=o:void 0!==s&&void 0===o&&(o=s),r>0&&i>0?s&&o?(s=Math.min(s,.5*r),o=Math.min(o,.5*i),this.shape=(new _).M(e+s,n).L(e+r-s,n).A(s,o,0,0,1,e+r,n+o).L(e+r,n+i-o).A(s,o,0,0,1,e+r-s,n+i).L(e+s,n+i).A(s,o,0,0,1,e,n+i-o).L(e,n+o).A(s,o,0,0,1,e+s,n).Z()):this.shape=(new _).M(e,n).L(e+r,n).L(e+r,n+i).L(e,n+i).Z():this.shape=new _},lA=function(A,t){gA.call(this,A,t);let e=this.getLength("cx",this.getVWidth(),0),n=this.getLength("cy",this.getVHeight(),0),r=this.getLength("r",this.getViewport(),0);this.shape=r>0?(new _).M(e+r,n).A(r,r,0,0,1,e-r,n).A(r,r,0,0,1,e+r,n).Z():new _},wA=function(A,t){gA.call(this,A,t);let e=this.getLength("cx",this.getVWidth(),0),n=this.getLength("cy",this.getVHeight(),0),r=this.getLength("rx",this.getVWidth(),0),i=this.getLength("ry",this.getVHeight(),0);this.shape=r>0&&i>0?(new _).M(e+r,n).A(r,i,0,0,1,e-r,n).A(r,i,0,0,1,e+r,n).Z():new _},EA=function(A,t){gA.call(this,A,t);let e=this.getLength("x1",this.getVWidth(),0),n=this.getLength("y1",this.getVHeight(),0),r=this.getLength("x2",this.getVWidth(),0),i=this.getLength("y2",this.getVHeight(),0);this.shape=(new _).M(e,n).L(r,i)},hA=function(A,t){gA.call(this,A,t);let e=this.getNumberList("points");this.shape=new _;for(let A=0;A0?e:void 0,this.dashScale=void 0!==this.pathLength?this.shape.totalLength/this.pathLength:1},fA=function(t,e){AA.call(this,t,e);let n=this.getLength("markerWidth",this.getParentVWidth(),3),r=this.getLength("markerHeight",this.getParentVHeight(),3),i=this.getViewbox("viewBox",[0,0,n,r]);this.getVWidth=function(){return i[2]},this.getVHeight=function(){return i[3]},this.drawMarker=function(t,e,s,o){A.save();let a=this.attr("orient"),B=this.attr("markerUnits"),g="auto"===a?s[2]:(parseFloat(a)||0)*Math.PI/180,E="userSpaceOnUse"===B?1:o;A.transform(Math.cos(g)*E,Math.sin(g)*E,-Math.sin(g)*E,Math.cos(g)*E,s[0],s[1]);let h,Q=this.getLength("refX",this.getVWidth(),0),u=this.getLength("refY",this.getVHeight(),0),f=S(this.attr("preserveAspectRatio"),n,r,i[2],i[3],.5);"hidden"===this.get("overflow")&&A.rect(f[0]*(i[0]+i[2]/2-Q)-n/2,f[3]*(i[1]+i[3]/2-u)-r/2,n,r).clip(),A.transform.apply(A,f),A.translate(-Q,-u),this.get("opacity")<1&&!t&&(h=c(b())),this.drawChildren(t,e),h&&(l(h),A.fillOpacity(this.get("opacity")),w(h)),A.restore()}},CA=function(t,e){AA.call(this,t,e),this.useMask=function(t){let e=c(b());A.save(),A.transform.apply(A,this.get("transform")),"objectBoundingBox"===this.attr("clipPathUnits")&&A.transform(t[2]-t[0],0,0,t[3]-t[1],t[0],t[1]),this.clip(),this.drawChildren(!0,!1),A.restore(),l(e),E(e,!0)}},dA=function(t,e){AA.call(this,t,e),this.useMask=function(t){let e,n,r,i,s=c(b());A.save(),"userSpaceOnUse"===this.attr("maskUnits")?(e=this.getLength("x",this.getVWidth(),-.1*(t[2]-t[0])+t[0]),n=this.getLength("y",this.getVHeight(),-.1*(t[3]-t[1])+t[1]),r=this.getLength("width",this.getVWidth(),1.2*(t[2]-t[0])),i=this.getLength("height",this.getVHeight(),1.2*(t[3]-t[1]))):(e=this.getLength("x",this.getVWidth(),-.1)*(t[2]-t[0])+t[0],n=this.getLength("y",this.getVHeight(),-.1)*(t[3]-t[1])+t[1],r=this.getLength("width",this.getVWidth(),1.2)*(t[2]-t[0]),i=this.getLength("height",this.getVHeight(),1.2)*(t[3]-t[1])),"objectBoundingBox"===this.attr("maskContentUnits")&&A.transform(t[2]-t[0],0,0,t[3]-t[1],t[0],t[1]),this.clip(),this.drawChildren(!1,!0),A.restore(),l(s),E(s,!0)}},MA=function(t,e){$.call(this,t,e),this.allowedChildren=["tspan","#text","#cdata-section","a"],this.isText=!0,this.getBoundingShape=function(){let A=new _;for(let t=0;t0?A:this.pathObject.totalLength,this.pathScale=this.pathObject.totalLength/this.pathLength}else if((e=this.getUrl("href")||this.getUrl("xlink:href"))&&"path"===e.nodeName){let A=new uA(e,this);this.pathObject=A.shape.clone().transform(A.get("transform")),this.pathLength=this.chooseValue(A.pathLength,this.pathObject.totalLength),this.pathScale=this.pathObject.totalLength/this.pathLength}},yA=function(t,e){MA.call(this,t,e),this.allowedChildren=["textPath","tspan","#text","#cdata-section","a"],function(e){let n,r,i="",s=t.textContent,o=[],a=[],B=0,g=0;function c(){if(a.length){let A=a[a.length-1],t=a[0],e=A.x+A.width-t.x,i={startltr:0,middleltr:.5,endltr:1,startrtl:1,middlertl:.5,endrtl:0}[n+r]*e||0;for(let A=0;Ae||s<0)A._pos[i].hidden=!0;else{let e=t.getPointAtLength(s*n);N(n,1)&&(A._pos[i].scale*=n,A._pos[i].width*=n),A._pos[i].x=e[0]-.5*A._pos[i].width*Math.cos(e[2])-A._pos[i].y*Math.sin(e[2]),A._pos[i].y=e[1]-.5*A._pos[i].width*Math.sin(e[2])+A._pos[i].y*Math.cos(e[2]),A._pos[i].rotate=e[2]+A._pos[i].rotate,A._pos[i].continuous=!1}}}else for(let t=0;t0&&e<1/0)for(let t=0;t=2){let e=(t-(s-i))/(A.length-1);for(let t=0;ts)throw new RangeError('The value "'+A+'" is invalid for option "size"');const t=new Uint8Array(A);return Object.setPrototypeOf(t,a.prototype),t}function a(A,t,e){if("number"==typeof A){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(A)}return B(A,t,e)}function B(A,t,e){if("string"==typeof A)return function(A,t){if("string"==typeof t&&""!==t||(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const e=0|h(A,t);let n=o(e);const r=n.write(A,t);return r!==e&&(n=n.slice(0,r)),n}(A,t);if(ArrayBuffer.isView(A))return function(A){if(X(A,Uint8Array)){const t=new Uint8Array(A);return w(t.buffer,t.byteOffset,t.byteLength)}return l(A)}(A);if(null==A)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(X(A,ArrayBuffer)||A&&X(A.buffer,ArrayBuffer))return w(A,t,e);if("undefined"!=typeof SharedArrayBuffer&&(X(A,SharedArrayBuffer)||A&&X(A.buffer,SharedArrayBuffer)))return w(A,t,e);if("number"==typeof A)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=A.valueOf&&A.valueOf();if(null!=n&&n!==A)return a.from(n,t,e);const r=function(A){if(a.isBuffer(A)){const t=0|E(A.length),e=o(t);return 0===e.length||A.copy(e,0,0,t),e}return void 0!==A.length?"number"!=typeof A.length||Z(A.length)?o(0):l(A):"Buffer"===A.type&&Array.isArray(A.data)?l(A.data):void 0}(A);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof A[Symbol.toPrimitive])return a.from(A[Symbol.toPrimitive]("string"),t,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}function g(A){if("number"!=typeof A)throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function c(A){return g(A),o(A<0?0:0|E(A))}function l(A){const t=A.length<0?0:0|E(A.length),e=o(t);for(let n=0;n=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|A}function h(A,t){if(a.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||X(A,ArrayBuffer))return A.byteLength;if("string"!=typeof A)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);const e=A.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;let r=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return W(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return K(A).length;default:if(r)return n?-1:W(A).length;t=(""+t).toLowerCase(),r=!0}}function Q(A,t,e){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(t>>>=0))return"";for(A||(A="utf8");;)switch(A){case"hex":return v(this,t,e);case"utf8":case"utf-8":return F(this,t,e);case"ascii":return m(this,t,e);case"latin1":case"binary":return b(this,t,e);case"base64":return y(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,t,e);default:if(n)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),n=!0}}function u(A,t,e){const n=A[t];A[t]=A[e],A[e]=n}function f(A,t,e,n,r){if(0===A.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),Z(e=+e)&&(e=r?0:A.length-1),e<0&&(e=A.length+e),e>=A.length){if(r)return-1;e=A.length-1}else if(e<0){if(!r)return-1;e=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:C(A,t,e,n,r);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(A,t,e):Uint8Array.prototype.lastIndexOf.call(A,t,e):C(A,[t],e,n,r);throw new TypeError("val must be string, number or Buffer")}function C(A,t,e,n,r){let i,s=1,o=A.length,a=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(A.length<2||t.length<2)return-1;s=2,o/=2,a/=2,e/=2}function B(A,t){return 1===s?A[t]:A.readUInt16BE(t*s)}if(r){let n=-1;for(i=e;io&&(e=o-a),i=e;i>=0;i--){let e=!0;for(let n=0;nr&&(n=r):n=r;const i=t.length;let s;for(n>i/2&&(n=i/2),s=0;s>8,r=e%256,i.push(r),i.push(n);return i}(t,A.length-e),A,e,n)}function y(A,t,e){return 0===t&&e===A.length?n.fromByteArray(A):n.fromByteArray(A.slice(t,e))}function F(A,t,e){e=Math.min(A.length,e);const n=[];let r=t;for(;r239?4:t>223?3:t>191?2:1;if(r+s<=e){let e,n,o,a;switch(s){case 1:t<128&&(i=t);break;case 2:e=A[r+1],128==(192&e)&&(a=(31&t)<<6|63&e,a>127&&(i=a));break;case 3:e=A[r+1],n=A[r+2],128==(192&e)&&128==(192&n)&&(a=(15&t)<<12|(63&e)<<6|63&n,a>2047&&(a<55296||a>57343)&&(i=a));break;case 4:e=A[r+1],n=A[r+2],o=A[r+3],128==(192&e)&&128==(192&n)&&128==(192&o)&&(a=(15&t)<<18|(63&e)<<12|(63&n)<<6|63&o,a>65535&&a<1114112&&(i=a))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),r+=s}return function(A){const t=A.length;if(t<=Y)return String.fromCharCode.apply(String,A);let e="",n=0;for(;nn.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(n,r)):Uint8Array.prototype.set.call(n,t,r);else{if(!a.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,r)}r+=t.length}return n},a.byteLength=h,a.prototype._isBuffer=!0,a.prototype.swap16=function(){const A=this.length;if(A%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;te&&(A+=" ... "),""},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(A,t,e,n,r){if(X(A,Uint8Array)&&(A=a.from(A,A.offset,A.byteLength)),!a.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(void 0===t&&(t=0),void 0===e&&(e=A?A.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||e>A.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=e)return 0;if(n>=r)return-1;if(t>=e)return 1;if(this===A)return 0;let i=(r>>>=0)-(n>>>=0),s=(e>>>=0)-(t>>>=0);const o=Math.min(i,s),B=this.slice(n,r),g=A.slice(t,e);for(let A=0;A>>=0,isFinite(e)?(e>>>=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}const r=this.length-t;if((void 0===e||e>r)&&(e=r),A.length>0&&(e<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return d(this,A,t,e);case"utf8":case"utf-8":return M(this,A,t,e);case"ascii":case"latin1":case"binary":return D(this,A,t,e);case"base64":return I(this,A,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p(this,A,t,e);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const Y=4096;function m(A,t,e){let n="";e=Math.min(A.length,e);for(let r=t;rn)&&(e=n);let r="";for(let n=t;ne)throw new RangeError("Trying to access beyond buffer length")}function P(A,t,e,n,r,i){if(!a.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||tA.length)throw new RangeError("Index out of range")}function x(A,t,e,n,r){L(t,n,r,A,e,7);let i=Number(t&BigInt(4294967295));A[e++]=i,i>>=8,A[e++]=i,i>>=8,A[e++]=i,i>>=8,A[e++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return A[e++]=s,s>>=8,A[e++]=s,s>>=8,A[e++]=s,s>>=8,A[e++]=s,e}function N(A,t,e,n,r){L(t,n,r,A,e,7);let i=Number(t&BigInt(4294967295));A[e+7]=i,i>>=8,A[e+6]=i,i>>=8,A[e+5]=i,i>>=8,A[e+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return A[e+3]=s,s>>=8,A[e+2]=s,s>>=8,A[e+1]=s,s>>=8,A[e]=s,e+8}function R(A,t,e,n,r,i){if(e+n>A.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function G(A,t,e,n,i){return t=+t,e>>>=0,i||R(A,0,e,4),r.write(A,t,e,n,23,4),e+4}function S(A,t,e,n,i){return t=+t,e>>>=0,i||R(A,0,e,8),r.write(A,t,e,n,52,8),e+8}a.prototype.slice=function(A,t){const e=this.length;(A=~~A)<0?(A+=e)<0&&(A=0):A>e&&(A=e),(t=void 0===t?e:~~t)<0?(t+=e)<0&&(t=0):t>e&&(t=e),t>>=0,t>>>=0,e||U(A,t,this.length);let n=this[A],r=1,i=0;for(;++i>>=0,t>>>=0,e||U(A,t,this.length);let n=this[A+--t],r=1;for(;t>0&&(r*=256);)n+=this[A+--t]*r;return n},a.prototype.readUint8=a.prototype.readUInt8=function(A,t){return A>>>=0,t||U(A,1,this.length),this[A]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(A,t){return A>>>=0,t||U(A,2,this.length),this[A]|this[A+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(A,t){return A>>>=0,t||U(A,2,this.length),this[A]<<8|this[A+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(A,t){return A>>>=0,t||U(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(A,t){return A>>>=0,t||U(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},a.prototype.readBigUInt64LE=q((function(A){j(A>>>=0,"offset");const t=this[A],e=this[A+7];void 0!==t&&void 0!==e||J(A,this.length-8);const n=t+256*this[++A]+65536*this[++A]+this[++A]*2**24,r=this[++A]+256*this[++A]+65536*this[++A]+e*2**24;return BigInt(n)+(BigInt(r)<>>=0,"offset");const t=this[A],e=this[A+7];void 0!==t&&void 0!==e||J(A,this.length-8);const n=t*2**24+65536*this[++A]+256*this[++A]+this[++A],r=this[++A]*2**24+65536*this[++A]+256*this[++A]+e;return(BigInt(n)<>>=0,t>>>=0,e||U(A,t,this.length);let n=this[A],r=1,i=0;for(;++i=r&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(A,t,e){A>>>=0,t>>>=0,e||U(A,t,this.length);let n=t,r=1,i=this[A+--n];for(;n>0&&(r*=256);)i+=this[A+--n]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*t)),i},a.prototype.readInt8=function(A,t){return A>>>=0,t||U(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},a.prototype.readInt16LE=function(A,t){A>>>=0,t||U(A,2,this.length);const e=this[A]|this[A+1]<<8;return 32768&e?4294901760|e:e},a.prototype.readInt16BE=function(A,t){A>>>=0,t||U(A,2,this.length);const e=this[A+1]|this[A]<<8;return 32768&e?4294901760|e:e},a.prototype.readInt32LE=function(A,t){return A>>>=0,t||U(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},a.prototype.readInt32BE=function(A,t){return A>>>=0,t||U(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},a.prototype.readBigInt64LE=q((function(A){j(A>>>=0,"offset");const t=this[A],e=this[A+7];void 0!==t&&void 0!==e||J(A,this.length-8);const n=this[A+4]+256*this[A+5]+65536*this[A+6]+(e<<24);return(BigInt(n)<>>=0,"offset");const t=this[A],e=this[A+7];void 0!==t&&void 0!==e||J(A,this.length-8);const n=(t<<24)+65536*this[++A]+256*this[++A]+this[++A];return(BigInt(n)<>>=0,t||U(A,4,this.length),r.read(this,A,!0,23,4)},a.prototype.readFloatBE=function(A,t){return A>>>=0,t||U(A,4,this.length),r.read(this,A,!1,23,4)},a.prototype.readDoubleLE=function(A,t){return A>>>=0,t||U(A,8,this.length),r.read(this,A,!0,52,8)},a.prototype.readDoubleBE=function(A,t){return A>>>=0,t||U(A,8,this.length),r.read(this,A,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(A,t,e,n){A=+A,t>>>=0,e>>>=0,n||P(this,A,t,e,Math.pow(2,8*e)-1,0);let r=1,i=0;for(this[t]=255&A;++i>>=0,e>>>=0,n||P(this,A,t,e,Math.pow(2,8*e)-1,0);let r=e-1,i=1;for(this[t+r]=255&A;--r>=0&&(i*=256);)this[t+r]=A/i&255;return t+e},a.prototype.writeUint8=a.prototype.writeUInt8=function(A,t,e){return A=+A,t>>>=0,e||P(this,A,t,1,255,0),this[t]=255&A,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(A,t,e){return A=+A,t>>>=0,e||P(this,A,t,2,65535,0),this[t]=255&A,this[t+1]=A>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(A,t,e){return A=+A,t>>>=0,e||P(this,A,t,2,65535,0),this[t]=A>>>8,this[t+1]=255&A,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(A,t,e){return A=+A,t>>>=0,e||P(this,A,t,4,4294967295,0),this[t+3]=A>>>24,this[t+2]=A>>>16,this[t+1]=A>>>8,this[t]=255&A,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(A,t,e){return A=+A,t>>>=0,e||P(this,A,t,4,4294967295,0),this[t]=A>>>24,this[t+1]=A>>>16,this[t+2]=A>>>8,this[t+3]=255&A,t+4},a.prototype.writeBigUInt64LE=q((function(A,t){return void 0===t&&(t=0),x(this,A,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeBigUInt64BE=q((function(A,t){return void 0===t&&(t=0),N(this,A,t,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeIntLE=function(A,t,e,n){if(A=+A,t>>>=0,!n){const n=Math.pow(2,8*e-1);P(this,A,t,e,n-1,-n)}let r=0,i=1,s=0;for(this[t]=255&A;++r>>=0,!n){const n=Math.pow(2,8*e-1);P(this,A,t,e,n-1,-n)}let r=e-1,i=1,s=0;for(this[t+r]=255&A;--r>=0&&(i*=256);)A<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(A/i|0)-s&255;return t+e},a.prototype.writeInt8=function(A,t,e){return A=+A,t>>>=0,e||P(this,A,t,1,127,-128),A<0&&(A=255+A+1),this[t]=255&A,t+1},a.prototype.writeInt16LE=function(A,t,e){return A=+A,t>>>=0,e||P(this,A,t,2,32767,-32768),this[t]=255&A,this[t+1]=A>>>8,t+2},a.prototype.writeInt16BE=function(A,t,e){return A=+A,t>>>=0,e||P(this,A,t,2,32767,-32768),this[t]=A>>>8,this[t+1]=255&A,t+2},a.prototype.writeInt32LE=function(A,t,e){return A=+A,t>>>=0,e||P(this,A,t,4,2147483647,-2147483648),this[t]=255&A,this[t+1]=A>>>8,this[t+2]=A>>>16,this[t+3]=A>>>24,t+4},a.prototype.writeInt32BE=function(A,t,e){return A=+A,t>>>=0,e||P(this,A,t,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[t]=A>>>24,this[t+1]=A>>>16,this[t+2]=A>>>8,this[t+3]=255&A,t+4},a.prototype.writeBigInt64LE=q((function(A,t){return void 0===t&&(t=0),x(this,A,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeBigInt64BE=q((function(A,t){return void 0===t&&(t=0),N(this,A,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeFloatLE=function(A,t,e){return G(this,A,t,!0,e)},a.prototype.writeFloatBE=function(A,t,e){return G(this,A,t,!1,e)},a.prototype.writeDoubleLE=function(A,t,e){return S(this,A,t,!0,e)},a.prototype.writeDoubleBE=function(A,t,e){return S(this,A,t,!1,e)},a.prototype.copy=function(A,t,e,n){if(!a.isBuffer(A))throw new TypeError("argument should be a Buffer");if(e||(e=0),n||0===n||(n=this.length),t>=A.length&&(t=A.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),A.length-t>>=0,e=void 0===e?this.length:e>>>0,A||(A=0),"number"==typeof A)for(r=t;r=n+4;e-=3)t=`_${A.slice(e-3,e)}${t}`;return`${A.slice(0,e)}${t}`}function L(A,t,e,n,r,i){if(A>e||A3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${t}${n} and <= ${e}${n}`,new T.ERR_OUT_OF_RANGE("value",r,A)}!function(A,t,e){j(t,"offset"),void 0!==A[t]&&void 0!==A[t+e]||J(t,A.length-(e+1))}(n,r,i)}function j(A,t){if("number"!=typeof A)throw new T.ERR_INVALID_ARG_TYPE(t,"number",A)}function J(A,t,e){if(Math.floor(A)!==A)throw j(A,e),new T.ERR_OUT_OF_RANGE(e||"offset","an integer",A);if(t<0)throw new T.ERR_BUFFER_OUT_OF_BOUNDS;throw new T.ERR_OUT_OF_RANGE(e||"offset",`>= ${e?1:0} and <= ${t}`,A)}H("ERR_BUFFER_OUT_OF_BOUNDS",(function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),H("ERR_INVALID_ARG_TYPE",(function(A,t){return`The "${A}" argument must be of type number. Received type ${typeof t}`}),TypeError),H("ERR_OUT_OF_RANGE",(function(A,t,e){let n=`The value of "${A}" is out of range.`,r=e;return Number.isInteger(e)&&Math.abs(e)>2**32?r=k(String(e)):"bigint"==typeof e&&(r=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(r=k(r)),r+="n"),n+=` It must be ${t}. Received ${r}`,n}),RangeError);const O=/[^+/0-9A-Za-z-_]/g;function W(A,t){let e;t=t||1/0;const n=A.length;let r=null;const i=[];for(let s=0;s55295&&e<57344){if(!r){if(e>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}r=e;continue}if(e<56320){(t-=3)>-1&&i.push(239,191,189),r=e;continue}e=65536+(r-55296<<10|e-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,e<128){if((t-=1)<0)break;i.push(e)}else if(e<2048){if((t-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((t-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return i}function K(A){return n.toByteArray(function(A){if((A=(A=A.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function V(A,t,e,n){let r;for(r=0;r=t.length||r>=A.length);++r)t[r+e]=A[r];return r}function X(A,t){return A instanceof t||null!=A&&null!=A.constructor&&null!=A.constructor.name&&A.constructor.name===t.name}function Z(A){return A!=A}const _=function(){const A="0123456789abcdef",t=new Array(256);for(let e=0;e<16;++e){const n=16*e;for(let r=0;r<16;++r)t[n+r]=A[e]+A[r]}return t}();function q(A){return"undefined"==typeof BigInt?$:A}function $(){throw new Error("BigInt not supported")}},4406(A){"use strict";A.exports=class{constructor(A){this.stateTable=A.stateTable,this.accepting=A.accepting,this.tags=A.tags}match(A){var t=this;return{*[Symbol.iterator](){for(var e=1,n=null,r=null,i=null,s=0;s=n&&(yield[n,r,t.tags[i]]),e=t.stateTable[1][o],n=null),0!==e&&null==n&&(n=s),t.accepting[e]&&(r=s),0===e&&(e=1)}null!=n&&null!=r&&r>=n&&(yield[n,r,t.tags[e]])}}}apply(A,t){for(var e of this.match(A)){var n=e[0],r=e[1],i=e[2];for(var s of i)"function"==typeof t[s]&&t[s](n,r,A.slice(n,r+1))}}}},3915(A,t,e){"use strict";e(8376),e(6401),e(2017),function(A){var t="undefined"!=typeof Uint8Array?Uint8Array:Array,e="+".charCodeAt(0),n="/".charCodeAt(0),r="0".charCodeAt(0),i="a".charCodeAt(0),s="A".charCodeAt(0),o="-".charCodeAt(0),a="_".charCodeAt(0);function B(A){var t=A.charCodeAt(0);return t===e||t===o?62:t===n||t===a?63:t0)throw new Error("Invalid string. Length must be a multiple of 4");var a=A.length;s="="===A.charAt(a-2)?2:"="===A.charAt(a-1)?1:0,o=new t(3*A.length/4-s),r=s>0?A.length-4:A.length;var g=0;function c(A){o[g++]=A}for(e=0,n=0;e>16),c((65280&i)>>8),c(255&i);return 2===s?c(255&(i=B(A.charAt(e))<<2|B(A.charAt(e+1))>>4)):1===s&&(c((i=B(A.charAt(e))<<10|B(A.charAt(e+1))<<4|B(A.charAt(e+2))>>2)>>8&255),c(255&i)),o},A.fromByteArray=function(A){var t,e,n,r,i=A.length%3,s="";function o(A){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(A)}for(t=0,n=A.length-i;t>18&63)+o(r>>12&63)+o(r>>6&63)+o(63&r);switch(i){case 1:s+=o((e=A[A.length-1])>>2),s+=o(e<<4&63),s+="==";break;case 2:s+=o((e=(A[A.length-2]<<8)+A[A.length-1])>>10),s+=o(e>>4&63),s+=o(e<<2&63),s+="="}return s}}(t)},182(A,t,e){"use strict";function n(A,t){var e=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(A,t).enumerable}))),e.push.apply(e,n)}return e}function r(A){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(A){var t={data:A,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var A=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,A}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(A){if(0===this.length)return"";for(var t=this.head,e=""+t.data;t=t.next;)e+=A+t.data;return e}},{key:"concat",value:function(A){if(0===this.length)return a.alloc(0);for(var t,e,n,r=a.allocUnsafe(A>>>0),i=this.head,s=0;i;)t=i.data,e=r,n=s,a.prototype.copy.call(t,e,n),s+=i.data.length,i=i.next;return r}},{key:"consume",value:function(A,t){var e;return Ar.length?r.length:A;if(i===r.length?n+=r:n+=r.slice(0,A),0==(A-=i)){i===r.length?(++e,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=r.slice(i));break}++e}return this.length-=e,n}},{key:"_getBuffer",value:function(A){var t=a.allocUnsafe(A),e=this.head,n=1;for(e.data.copy(t),A-=e.data.length;e=e.next;){var r=e.data,i=A>r.length?r.length:A;if(r.copy(t,t.length-A,0,i),0==(A-=i)){i===r.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=r.slice(i));break}++n}return this.length-=n,t}},{key:g,value:function(A,t){return B(this,r(r({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),A}()},5691(A,t,e){"use strict";var n=e(783),r=n.Buffer;function i(A,t){for(var e in A)t[e]=A[e]}function s(A,t,e){return r(A,t,e)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?A.exports=n:(i(n,t),t.Buffer=s),i(r,s),s.from=function(A,t,e){if("number"==typeof A)throw new TypeError("Argument must not be a number");return r(A,t,e)},s.alloc=function(A,t,e){if("number"!=typeof A)throw new TypeError("Argument must be a number");var n=r(A);return void 0!==t?"string"==typeof e?n.fill(t,e):n.fill(t):n.fill(0),n},s.allocUnsafe=function(A){if("number"!=typeof A)throw new TypeError("Argument must be a number");return r(A)},s.allocUnsafeSlow=function(A){if("number"!=typeof A)throw new TypeError("Argument must be a number");return n.SlowBuffer(A)}},7571(A,t,e){"use strict";e(8376),e(6401),e(2017);const n=e(3483),r=e(6016).swap32LE;A.exports=class{constructor(A){const t="function"==typeof A.readUInt32BE&&"function"==typeof A.slice;if(t||A instanceof Uint8Array){let e;if(t)this.highStart=A.readUInt32LE(0),this.errorValue=A.readUInt32LE(4),e=A.readUInt32LE(8),A=A.slice(12);else{const t=new DataView(A.buffer);this.highStart=t.getUint32(0,!0),this.errorValue=t.getUint32(4,!0),e=t.getUint32(8,!0),A=A.subarray(12)}A=n(A,new Uint8Array(e)),A=n(A,new Uint8Array(e)),r(A),this.data=new Uint32Array(A.buffer)}else{var e=A;this.data=e.data,this.highStart=e.highStart,this.errorValue=e.errorValue}}get(A){let t;return A<0||A>1114111?this.errorValue:A<55296||A>56319&&A<=65535?(t=(this.data[A>>5]<<2)+(31&A),this.data[t]):A<=65535?(t=(this.data[2048+(A-55296>>5)]<<2)+(31&A),this.data[t]):A>11)],t=this.data[t+(A>>5&63)],t=(t<<2)+(31&A),this.data[t]):this.data[this.data.length-4]}}},6016(A,t,e){"use strict";e(8376),e(6401),e(2017);const n=18===new Uint8Array(new Uint32Array([305419896]).buffer)[0],r=(A,t,e)=>{let n=A[t];A[t]=A[e],A[e]=n};A.exports={swap32LE:A=>{n&&(A=>{const t=A.length;for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:{};this._items={},this.limits="boolean"!=typeof A.limits||A.limits}add(A,t){return this._items[A]=t}get(A){return this._items[A]}toString(){const A=Object.keys(this._items).sort(((A,t)=>this._compareKeys(A,t))),t=["<<"];if(this.limits&&A.length>1){const e=A[0],n=A[A.length-1];t.push(` /Limits ${D.convert([this._dataForKey(e),this._dataForKey(n)])}`)}t.push(` /${this._keysName()} [`);for(let e of A)t.push(` ${D.convert(this._dataForKey(e))} ${D.convert(this._items[e])}`);return t.push("]"),t.push(">>"),t.join("\n")}_compareKeys(){throw new Error("Must be implemented by subclasses")}_keysName(){throw new Error("Must be implemented by subclasses")}_dataForKey(){throw new Error("Must be implemented by subclasses")}}class f{constructor(A,t,e,n,r,i){this.id="CS"+Object.keys(A.spotColors).length,this.name=t,this.values=[e,n,r,i],this.ref=A.ref(["Separation",this.name,"DeviceCMYK",{Range:[0,1,0,1,0,1,0,1],C0:[0,0,0,0],C1:this.values.map((A=>A/100)),FunctionType:2,Domain:[0,1],N:1}]),this.ref.end()}toString(){return`${this.ref.id} 0 R`}}const C=(A,t)=>(Array(t+1).join("0")+A).slice(-t),d=/[\n\r\t\b\f()\\]/g,M={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"};class D{static convert(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof A)return`/${A}`;if(A instanceof String){let e,r=A,i=!1;for(let A=0,t=r.length;A127){i=!0;break}return e=i?function(A){const t=A.length;if(1&t)throw new Error("Buffer length must be even");for(let e=0,n=t-1;eM[A])),`(${r})`}if(n.isBuffer(A))return`<${A.toString("hex")}>`;if(A instanceof Q||A instanceof u||A instanceof f)return A.toString();if(A instanceof Date){let e=`D:${C(A.getUTCFullYear(),4)}`+C(A.getUTCMonth()+1,2)+C(A.getUTCDate(),2)+C(A.getUTCHours(),2)+C(A.getUTCMinutes(),2)+C(A.getUTCSeconds(),2)+"Z";return t&&(e=t(n.from(e,"ascii")).toString("binary"),e=e.replace(d,(A=>M[A]))),`(${e})`}if(Array.isArray(A))return`[${A.map((A=>D.convert(A,t))).join(" ")}]`;if("[object Object]"==={}.toString.call(A)){const e=["<<"];for(let n in A){const r=A[n];e.push(`/${n} ${D.convert(r,t)}`)}return e.push(">>"),e.join("\n")}return"number"==typeof A?D.number(A):`${A}`}static number(A){if(A>-1e21&&A<1e21)return Math.round(1e6*A)/1e6;throw new Error(`unsupported number: ${A}`)}}class I extends Q{constructor(A,t){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(),this.document=A,this.id=t,this.data=e,this.gen=0,this.compress=this.document.compress&&!this.data.Filter,this.uncompressedLength=0,this.buffer=[]}write(A){A instanceof Uint8Array||(A=n.from(A+"\n","binary")),this.uncompressedLength+=A.length,null==this.data.Length&&(this.data.Length=0),this.buffer.push(A),this.data.Length+=A.length,this.compress&&(this.data.Filter="FlateDecode")}end(A){A&&this.write(A),this.finalize()}finalize(){this.offset=this.document._offset;const A=this.document._security?this.document._security.getEncryptFn(this.id,this.gen):null;this.buffer.length&&(this.buffer=n.concat(this.buffer),this.compress&&(this.buffer=i.default.deflateSync(this.buffer)),A&&(this.buffer=A(this.buffer)),this.data.Length=this.buffer.length),this.document._write(`${this.id} ${this.gen} obj`),this.document._write(D.convert(this.data,A)),this.buffer.length&&(this.document._write("stream"),this.document._write(this.buffer),this.buffer=[],this.document._write("\nendstream")),this.document._write("endobj"),this.document._refEnd(this)}toString(){return`${this.id} ${this.gen} R`}}const p=new Float32Array(1),y=new Uint32Array(p.buffer);function F(A){const t=Math.fround(A);return t<=A?t:(p[0]=A,A<=0?y[0]+=1:y[0]-=1,p[0])}function Y(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A=>A;return(null==A||"object"==typeof A&&0===Object.keys(A).length)&&(A=t),null==A||"object"!=typeof A?A={top:A,right:A,bottom:A,left:A}:Array.isArray(A)&&(A=2===A.length?{vertical:A[0],horizontal:A[1]}:{top:A[0],right:A[1],bottom:A[2],left:A[3]}),("vertical"in A||"horizontal"in A)&&(A={top:A.vertical,right:A.horizontal,bottom:A.vertical,left:A.horizontal}),{top:e(A.top),right:e(A.right),bottom:e(A.bottom),left:e(A.left)}}const m=1/2.54;function b(A){return 0===A?1:90===A?0:180===A?-1:270===A?0:Math.cos(A*Math.PI/180)}function v(A){return 0===A?0:90===A?1:180===A?0:270===A?-1:Math.sin(A*Math.PI/180)}const z={top:72,left:72,bottom:72,right:72},U={"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]};class P{constructor(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.document=A,this._options=t,this.size=t.size||"letter",this.layout=t.layout||"portrait",this.userUnit=t.userUnit||1;const e=Array.isArray(this.size)?this.size:U[this.size.toUpperCase()];this.width=e["portrait"===this.layout?0:1],this.height=e["portrait"===this.layout?1:0],this.content=this.document.ref(),t.font&&A.font(t.font,t.fontFamily),t.fontSize&&A.fontSize(t.fontSize),this.margins=Y(t.margin??t.margins,z,(t=>A.sizeToPoint(t,0,this))),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),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,UserUnit:this.userUnit}),this.markings=[]}get fonts(){const A=this.resources.data;return null!=A.Font?A.Font:A.Font={}}get xobjects(){const A=this.resources.data;return null!=A.XObject?A.XObject:A.XObject={}}get ext_gstates(){const A=this.resources.data;return null!=A.ExtGState?A.ExtGState:A.ExtGState={}}get patterns(){const A=this.resources.data;return null!=A.Pattern?A.Pattern:A.Pattern={}}get colorSpaces(){const A=this.resources.data;return A.ColorSpace||(A.ColorSpace={})}get annotations(){const A=this.dictionary.data;return null!=A.Annots?A.Annots:A.Annots=[]}get structParentTreeKey(){const A=this.dictionary.data;return null!=A.StructParents?A.StructParents:A.StructParents=this.document.createStructParentTreeNextKey()}get contentWidth(){return this.width-this.margins.left-this.margins.right}get contentHeight(){return this.height-this.margins.top-this.margins.bottom}maxY(){return this.height-this.margins.bottom}write(A){return this.content.write(A)}_setTabOrder(){!this.dictionary.Tabs&&this.document.hasMarkInfoDictionary()&&(this.dictionary.data.Tabs="S")}end(){this._setTabOrder(),this.dictionary.end(),this.resources.data.ColorSpace=this.resources.data.ColorSpace||{};for(let A of Object.values(this.document.spotColors))this.resources.data.ColorSpace[A.id]=A;return this.resources.end(),this.content.end()}}class x extends u{_compareKeys(A,t){return A.localeCompare(t)}_keysName(){return"Names"}_dataForKey(A){return new String(A)}}function N(A){return new Uint8Array(o.default.arrayBuffer(A))}function R(A){return(0,a.sha256)(A)}function G(A,t,e){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return(0,B.cbc)(t,e,{disablePadding:!n}).encrypt(A)}function S(A,t){const e=new Uint8Array(256);for(let A=0;A<256;A++)e[A]=A;let n=0;for(let A=0;A<256;A++){n=n+e[A]+t[A%t.length]&255;var r=[e[n],e[A]];e[A]=r[0],e[n]=r[1]}const i=new Uint8Array(A.length);for(let t=0,n=0,r=0;r=t[i]&&A<=t[i+1])return!0;A>t[i+1]?e=r+1:n=r-1}return!1}const H=[545,545,564,591,686,687,751,767,848,863,880,883,886,889,891,893,895,899,907,907,909,909,930,930,975,975,1015,1023,1159,1159,1231,1231,1270,1271,1274,1279,1296,1328,1367,1368,1376,1376,1416,1416,1419,1424,1442,1442,1466,1466,1477,1487,1515,1519,1525,1547,1549,1562,1564,1566,1568,1568,1595,1599,1622,1631,1774,1775,1791,1791,1806,1806,1837,1839,1867,1919,1970,2304,2308,2308,2362,2363,2382,2383,2389,2391,2417,2432,2436,2436,2445,2446,2449,2450,2473,2473,2481,2481,2483,2485,2490,2491,2493,2493,2501,2502,2505,2506,2510,2518,2520,2523,2526,2526,2532,2533,2555,2561,2563,2564,2571,2574,2577,2578,2601,2601,2609,2609,2612,2612,2615,2615,2618,2619,2621,2621,2627,2630,2633,2634,2638,2648,2653,2653,2655,2661,2677,2688,2692,2692,2700,2700,2702,2702,2706,2706,2729,2729,2737,2737,2740,2740,2746,2747,2758,2758,2762,2762,2766,2767,2769,2783,2785,2789,2800,2816,2820,2820,2829,2830,2833,2834,2857,2857,2865,2865,2868,2869,2874,2875,2884,2886,2889,2890,2894,2901,2904,2907,2910,2910,2914,2917,2929,2945,2948,2948,2955,2957,2961,2961,2966,2968,2971,2971,2973,2973,2976,2978,2981,2983,2987,2989,2998,2998,3002,3005,3011,3013,3017,3017,3022,3030,3032,3046,3059,3072,3076,3076,3085,3085,3089,3089,3113,3113,3124,3124,3130,3133,3141,3141,3145,3145,3150,3156,3159,3167,3170,3173,3184,3201,3204,3204,3213,3213,3217,3217,3241,3241,3252,3252,3258,3261,3269,3269,3273,3273,3278,3284,3287,3293,3295,3295,3298,3301,3312,3329,3332,3332,3341,3341,3345,3345,3369,3369,3386,3389,3396,3397,3401,3401,3406,3414,3416,3423,3426,3429,3440,3457,3460,3460,3479,3481,3506,3506,3516,3516,3518,3519,3527,3529,3531,3534,3541,3541,3543,3543,3552,3569,3573,3584,3643,3646,3676,3712,3715,3715,3717,3718,3721,3721,3723,3724,3726,3731,3736,3736,3744,3744,3748,3748,3750,3750,3752,3753,3756,3756,3770,3770,3774,3775,3781,3781,3783,3783,3790,3791,3802,3803,3806,3839,3912,3912,3947,3952,3980,3983,3992,3992,4029,4029,4045,4046,4048,4095,4130,4130,4136,4136,4139,4139,4147,4149,4154,4159,4186,4255,4294,4303,4345,4346,4348,4351,4442,4446,4515,4519,4602,4607,4615,4615,4679,4679,4681,4681,4686,4687,4695,4695,4697,4697,4702,4703,4743,4743,4745,4745,4750,4751,4783,4783,4785,4785,4790,4791,4799,4799,4801,4801,4806,4807,4815,4815,4823,4823,4847,4847,4879,4879,4881,4881,4886,4887,4895,4895,4935,4935,4955,4960,4989,5023,5109,5120,5751,5759,5789,5791,5873,5887,5901,5901,5909,5919,5943,5951,5972,5983,5997,5997,6001,6001,6004,6015,6109,6111,6122,6143,6159,6159,6170,6175,6264,6271,6314,7679,7836,7839,7930,7935,7958,7959,7966,7967,8006,8007,8014,8015,8024,8024,8026,8026,8028,8028,8030,8030,8062,8063,8117,8117,8133,8133,8148,8149,8156,8156,8176,8177,8181,8181,8191,8191,8275,8278,8280,8286,8292,8297,8306,8307,8335,8351,8370,8399,8427,8447,8507,8508,8524,8530,8580,8591,9167,9215,9255,9279,9291,9311,9471,9471,9748,9749,9752,9752,9854,9855,9866,9984,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10079,10080,10133,10135,10160,10160,10175,10191,10220,10223,11008,11903,11930,11930,12020,12031,12246,12271,12284,12287,12352,12352,12439,12440,12544,12548,12589,12592,12687,12687,12728,12783,12829,12831,12868,12880,12924,12926,13004,13007,13055,13055,13175,13178,13278,13279,13311,13311,19894,19967,40870,40959,42125,42127,42183,44031,55204,55295,64046,64047,64107,64255,64263,64274,64280,64284,64311,64311,64317,64317,64319,64319,64322,64322,64325,64325,64434,64466,64832,64847,64912,64913,64968,64975,65021,65023,65040,65055,65060,65071,65095,65096,65107,65107,65127,65127,65132,65135,65141,65141,65277,65278,65280,65280,65471,65473,65480,65481,65488,65489,65496,65497,65501,65503,65511,65511,65519,65528,65536,66303,66335,66335,66340,66351,66379,66559,66598,66599,66638,118783,119030,119039,119079,119081,119262,119807,119893,119893,119965,119965,119968,119969,119971,119972,119975,119976,119981,119981,119994,119994,119996,119996,120001,120001,120004,120004,120070,120070,120075,120076,120085,120085,120093,120093,120122,120122,120127,120127,120133,120133,120135,120137,120145,120145,120484,120487,120778,120781,120832,131069,173783,194559,195102,196605,196608,262141,262144,327677,327680,393213,393216,458749,458752,524285,524288,589821,589824,655357,655360,720893,720896,786429,786432,851965,851968,917501,917504,917504,917506,917535,917632,983037],k=A=>T(A,H),L=[173,173,847,847,6150,6150,6155,6155,6156,6156,6157,6157,8203,8203,8204,8204,8205,8205,8288,8288,65024,65024,65025,65025,65026,65026,65027,65027,65028,65028,65029,65029,65030,65030,65031,65031,65032,65032,65033,65033,65034,65034,65035,65035,65036,65036,65037,65037,65038,65038,65039,65039,65279,65279],j=[160,160,5760,5760,8192,8192,8193,8193,8194,8194,8195,8195,8196,8196,8197,8197,8198,8198,8199,8199,8200,8200,8201,8201,8202,8202,8203,8203,8239,8239,8287,8287,12288,12288],J=[128,159,1757,1757,1807,1807,6158,6158,8204,8204,8205,8205,8232,8232,8233,8233,8288,8288,8289,8289,8290,8290,8291,8291,8298,8303,65279,65279,65529,65532,119155,119162],O=[64976,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1114110,1114111],W=[0,31,127,127,832,832,833,833,8206,8206,8207,8207,8234,8234,8235,8235,8236,8236,8237,8237,8238,8238,8298,8298,8299,8299,8300,8300,8301,8301,8302,8302,8303,8303,12272,12283,55296,57343,57344,63743,65529,65529,65530,65530,65531,65531,65532,65532,65533,65533,917505,917505,917536,917631,983040,1048573,1048576,1114109],K=A=>T(A,j)||T(A,W)||T(A,J)||T(A,O),V=[1470,1470,1472,1472,1475,1475,1488,1514,1520,1524,1563,1563,1567,1567,1569,1594,1600,1610,1645,1647,1649,1749,1757,1757,1765,1766,1786,1790,1792,1805,1808,1808,1810,1836,1920,1957,1969,1969,8207,8207,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65020,65136,65140,65142,65276],X=A=>T(A,V),Z=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,544,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,1013,1024,1154,1162,1230,1232,1269,1272,1273,1280,1295,1329,1366,1369,1375,1377,1415,1417,1417,2307,2307,2309,2361,2365,2368,2377,2380,2384,2384,2392,2401,2404,2416,2434,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2494,2496,2503,2504,2507,2508,2519,2519,2524,2525,2527,2529,2534,2545,2548,2554,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2622,2624,2649,2652,2654,2654,2662,2671,2674,2676,2691,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2752,2761,2761,2763,2764,2768,2768,2784,2784,2790,2799,2818,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2878,2880,2880,2887,2888,2891,2892,2903,2903,2908,2909,2911,2913,2918,2928,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3007,3009,3010,3014,3016,3018,3020,3031,3031,3047,3058,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3137,3140,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3262,3264,3268,3271,3272,3274,3275,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3392,3398,3400,3402,3404,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3535,3537,3544,3551,3570,3572,3585,3632,3634,3635,3648,3654,3663,3675,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3792,3801,3804,3805,3840,3863,3866,3892,3894,3894,3896,3896,3902,3911,3913,3946,3967,3967,3973,3973,3976,3979,4030,4037,4039,4044,4047,4047,4096,4129,4131,4135,4137,4138,4140,4140,4145,4145,4152,4152,4160,4183,4256,4293,4304,4344,4347,4347,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4961,4988,5024,5108,5121,5750,5761,5786,5792,5872,5888,5900,5902,5905,5920,5937,5941,5942,5952,5969,5984,5996,5998,6e3,6016,6070,6078,6085,6087,6088,6100,6106,6108,6108,6112,6121,6160,6169,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8206,8206,8305,8305,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8509,8511,8517,8521,8544,8579,9014,9082,9109,9109,9372,9449,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12588,12593,12686,12688,12727,12784,12828,12832,12867,12896,12923,12927,12976,12992,13003,13008,13054,13056,13174,13179,13277,13280,13310,13312,19893,19968,40869,40960,42124,44032,55203,55296,64045,64048,64106,64256,64262,64275,64279,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,66304,66334,66336,66339,66352,66378,66560,66597,66600,66637,118784,119029,119040,119078,119082,119142,119146,119154,119171,119172,119180,119209,119214,119261,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,12e4,120002,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120483,120488,120777,131072,173782,194560,195101,983040,1048573,1048576,1114109],_=A=>T(A,Z),q=A=>A.codePointAt(0);function $(A){const t=[],e=A.length;for(let n=0;n=55296&&r<=56319&&e>n+1){const e=A.charCodeAt(n+1);if(e>=56320&&e<=57343){t.push(1024*(r-55296)+e-56320+65536),n+=1;continue}}t.push(r)}return t}class AA{static generateFileID(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=`${A.CreationDate.getTime()}\n`;for(let e in A)A.hasOwnProperty(e)&&(t+=`${e}: ${A[e].valueOf()}\n`);return n.from(N(t))}static generateRandomWordArray(A){return function(A){const t=new Uint8Array(A);return globalThis.crypto?.getRandomValues?globalThis.crypto.getRandomValues(t):e(5470).randomFillSync(t),t}(A)}static create(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.ownerPassword||t.userPassword?new AA(A,t):null}constructor(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t.ownerPassword&&!t.userPassword)throw new Error("None of owner password and user password is defined.");this.document=A,this._setupEncryption(t)}_setupEncryption(A){switch(A.pdfVersion){case"1.4":case"1.5":this.version=2;break;case"1.6":case"1.7":this.version=4;break;case"1.7ext3":this.version=5;break;default:this.version=1}const t={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,t,A);break;case 5:this._setupEncryptionV5(t,A)}this.dictionary=this.document.ref(t)}_setupEncryptionV1V2V4(A,t,e){let r,i;switch(A){case 1:r=2,this.keyBits=40,i=function(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=-64;return A.printing&&(t|=4),A.modifying&&(t|=8),A.copying&&(t|=16),A.annotating&&(t|=32),t}(e.permissions);break;case 2:r=3,this.keyBits=128,i=tA(e.permissions);break;case 4:r=4,this.keyBits=128,i=tA(e.permissions)}const o=eA(e.userPassword),a=e.ownerPassword?eA(e.ownerPassword):o,B=function(A,t,e,n){let r=n,i=A>=3?51:1;for(let A=0;A=3?20:1;for(let A=0;A>8&255,i>>16&255,i>>24&255]);let a=(0,s.concatBytes)(n,r,o,new Uint8Array(e));const B=A>=3?51:1,g=t/8;for(let A=0;A=2&&(t.Length=this.keyBits),4===A&&(t.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},t.StmF="StdCF",t.StrF="StdCF"),t.R=r,t.O=n.from(B),t.U=n.from(g),t.P=i}_setupEncryptionV5(A,t){this.keyBits=256;const e=tA(t.permissions),r=nA(t.userPassword),i=t.ownerPassword?nA(t.ownerPassword):r;this.encryptionKey=(0,AA.generateRandomWordArray)(32);const o=function(A,t){const e=t(8),n=t(8),r=R((0,s.concatBytes)(A,e));return(0,s.concatBytes)(r,e,n)}(r,AA.generateRandomWordArray),a=function(A,t,e){return G(e,R((0,s.concatBytes)(A,t)),new Uint8Array(16),!1)}(r,o.slice(40,48),this.encryptionKey),g=function(A,t,e){const n=e(8),r=e(8),i=R((0,s.concatBytes)(A,n,t));return(0,s.concatBytes)(i,n,r)}(i,o,AA.generateRandomWordArray),c=function(A,t,e,n){return G(n,R((0,s.concatBytes)(A,t,e)),new Uint8Array(16),!1)}(i,g.slice(40,48),o,this.encryptionKey),l=function(A,t,e){const n=new Uint8Array(16);n[0]=255&A,n[1]=A>>8&255,n[2]=A>>16&255,n[3]=A>>24&255,n[4]=255,n[5]=255,n[6]=255,n[7]=255,n[8]=84,n[9]=97,n[10]=100,n[11]=98;const r=e(4);return n.set(r,12),function(A,t){return(0,B.ecb)(t,{disablePadding:!0}).encrypt(A)}(n,t)}(e,this.encryptionKey,AA.generateRandomWordArray);A.V=5,A.Length=this.keyBits,A.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},A.StmF="StdCF",A.StrF="StdCF",A.R=5,A.O=n.from(g),A.OE=n.from(c),A.U=n.from(o),A.UE=n.from(a),A.P=e,A.Perms=n.from(l)}getEncryptFn(A,t){let e,r;if(this.version<5){const n=new Uint8Array([255&A,A>>8&255,A>>16&255,255&t,t>>8&255]);e=(0,s.concatBytes)(this.encryptionKey,n)}if(1===this.version||2===this.version){let A=N(e);const t=Math.min(16,this.keyBits/8+5);return A=A.slice(0,t),t=>n.from(S(new Uint8Array(t),A))}if(4===this.version){const A=new Uint8Array([115,65,108,84]);r=N((0,s.concatBytes)(e,A))}else r=this.encryptionKey;const i=AA.generateRandomWordArray(16);return A=>{const t=G(new Uint8Array(A),r,i,!0);return n.from((0,s.concatBytes)(i,t))}}end(){this.dictionary.end()}}function tA(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=-3904;return"lowResolution"===A.printing&&(t|=4),"highResolution"===A.printing&&(t|=2052),A.modifying&&(t|=8),A.copying&&(t|=16),A.annotating&&(t|=32),A.fillingForms&&(t|=256),A.contentAccessibility&&(t|=512),A.documentAssembly&&(t|=1024),t}function eA(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=new Uint8Array(32),e=A.length;let n=0;for(;n255)throw new Error("Password contains one or more invalid characters.");t[n]=e,n++}for(;n<32;)t[n]=rA[n-e],n++;return t}function nA(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";A=unescape(encodeURIComponent(function(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof A)throw new TypeError("Expected string.");if(0===A.length)return"";const e=$(A).map((A=>(A=>T(A,j))(A)?32:A)).filter((A=>!(A=>T(A,L))(A))),n=String.fromCodePoint.apply(null,e).normalize("NFKC"),r=$(n);if(r.some(K))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==t.allowUnassigned&&r.some(k))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");const i=r.some(X),s=r.some(_);if(i&&s)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");const o=X(q(n[0])),a=X(q((B=n)[B.length-1]));var B;if(i&&(!o||!a))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return n}(A)));const t=Math.min(127,A.length),e=new Uint8Array(t);for(let n=0;nA[2]<1))){let A=this.opacityGradient();A._colorSpace="DeviceGray";for(let t of this.stops)A.stop(t[0],[t[2]]);A=A.embed(this.matrix);const t=[0,0,this.doc.page.width,this.doc.page.height],e=this.doc.ref({Type:"XObject",Subtype:"Form",FormType:1,BBox:t,Group:{Type:"Group",S:"Transparency",CS:"DeviceGray"},Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:A}}});e.write("/Pattern cs /Sh1 scn"),e.end(`${t.join(" ")} re f`);const n=this.doc.ref({Type:"ExtGState",SMask:{Type:"Mask",S:"Luminosity",G:e}});n.end();const r=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:1,TilingType:2,BBox:t,XStep:t[2],YStep:t[3],Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:a},ExtGState:{Gs1:n}}});r.write("/Gs1 gs /Pattern cs /Sh1 scn"),r.end(`${t.join(" ")} re f`),this.doc.page.patterns[this.id]=r}else this.doc.page.patterns[this.id]=a;return a}apply(A){const t=this.doc._ctm,e=t[0],n=t[1],r=t[2],i=t[3],s=t[4],o=t[5],a=this.transform,B=a[0],g=a[1],c=a[2],l=a[3],w=a[4],E=a[5],h=[e*B+r*g,n*B+i*g,e*c+r*l,n*c+i*l,e*w+r*E+s,n*w+i*E+o];this.embedded&&h.join(" ")===this.matrix.join(" ")||this.embed(h),this.doc._setColorSpace("Pattern",A);const Q=A?"SCN":"scn";return this.doc.addContent(`/${this.id} ${Q}`)}}class oA extends sA{constructor(A,t,e,n,r){super(A),this.x1=t,this.y1=e,this.x2=n,this.y2=r}shader(A){return this.doc.ref({ShadingType:2,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.x2,this.y2],Function:A,Extend:[!0,!0]})}opacityGradient(){return new oA(this.doc,this.x1,this.y1,this.x2,this.y2)}}class aA extends sA{constructor(A,t,e,n,r,i,s){super(A),this.doc=A,this.x1=t,this.y1=e,this.r1=n,this.x2=r,this.y2=i,this.r2=s}shader(A){return this.doc.ref({ShadingType:3,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.r1,this.x2,this.y2,this.r2],Function:A,Extend:[!0,!0]})}opacityGradient(){return new aA(this.doc,this.x1,this.y1,this.r1,this.x2,this.y2,this.r2)}}var BA={PDFGradient:sA,PDFLinearGradient:oA,PDFRadialGradient:aA};const gA=["DeviceCMYK","DeviceRGB"];const cA=BA.PDFGradient,lA=BA.PDFLinearGradient,wA=BA.PDFRadialGradient,EA=class{constructor(A,t,e,n,r){this.doc=A,this.bBox=t,this.xStep=e,this.yStep=n,this.stream=r}createPattern(){const A=this.doc.ref();A.end();const t=this.doc._ctm,e=t[0],n=t[1],r=t[2],i=t[3],s=[1*e+0*r,1*n+0*i,0*e+1*r,0*n+1*i,0*e+0*r+t[4],0*n+0*i+t[5]],o=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:2,TilingType:2,BBox:this.bBox,XStep:this.xStep,YStep:this.yStep,Matrix:s.map((A=>+A.toFixed(5))),Resources:A});return o.end(this.stream),o}embedPatternColorSpaces(){gA.forEach((A=>{const t=this.getPatternColorSpaceId(A);if(this.doc.page.colorSpaces[t])return;const e=this.doc.ref(["Pattern",A]);e.end(),this.doc.page.colorSpaces[t]=e}))}getPatternColorSpaceId(A){return`CsP${A}`}embed(){this.id||(this.doc._patternCount=this.doc._patternCount+1,this.id="P"+this.doc._patternCount,this.pattern=this.createPattern()),this.doc.page.patterns[this.id]||(this.doc.page.patterns[this.id]=this.pattern)}apply(A,t){this.embedPatternColorSpaces(),this.embed();const e=this.doc._normalizeColor(t);if(!e)throw Error(`invalid pattern color. (value: ${t})`);const n=this.getPatternColorSpaceId(this.doc._getColorSpace(e));this.doc._setColorSpace(n,A);const r=A?"SCN":"scn";return this.doc.addContent(`${e.join(" ")} /${this.id} ${r}`)}};var hA={initColor(){this.spotColors={},this._opacityRegistry={},this._opacityCount=0,this._patternCount=0,this._gradCount=0},_normalizeColor(A){if("string"==typeof A)if("#"===A.charAt(0)){4===A.length&&(A=A.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i,"#$1$1$2$2$3$3"));const t=parseInt(A.slice(1),16);A=[t>>16,t>>8&255,255&t]}else if(QA[A])A=QA[A];else if(this.spotColors[A])return this.spotColors[A];return Array.isArray(A)?(3===A.length?A=A.map((A=>A/255)):4===A.length&&(A=A.map((A=>A/100))),A):null},_setColor(A,t){return A instanceof cA?(A.apply(t),!0):Array.isArray(A)&&A[0]instanceof EA?(A[0].apply(t,A[1]),!0):this._setColorCore(A,t)},_setColorCore(A,t){if(!(A=this._normalizeColor(A)))return!1;const e=t?"SCN":"scn",n=this._getColorSpace(A);return this._setColorSpace(n,t),A instanceof f?(this.page.colorSpaces[A.id]=A.ref,this.addContent(`1 ${e}`)):this.addContent(`${A.join(" ")} ${e}`),!0},_setColorSpace(A,t){const e=t?"CS":"cs";return this.addContent(`/${A} ${e}`)},_getColorSpace:A=>A instanceof f?A.id:4===A.length?"DeviceCMYK":"DeviceRGB",fillColor(A,t){return this._setColor(A,!1)&&this.fillOpacity(t),this._fillColor=[A,t],this},strokeColor(A,t){return this._setColor(A,!0)&&this.strokeOpacity(t),this},opacity(A){return this._doOpacity(A,A),this},fillOpacity(A){return this._doOpacity(A,null),this},strokeOpacity(A){return this._doOpacity(null,A),this},_doOpacity(A,t){let e,n;if(null==A&&null==t)return;null!=A&&(A=Math.max(0,Math.min(1,A))),null!=t&&(t=Math.max(0,Math.min(1,t)));const r=`${A}_${t}`;if(this._opacityRegistry[r]){var i=this._opacityRegistry[r];e=i[0],n=i[1]}else e={Type:"ExtGState"},null!=A&&(e.ca=A),null!=t&&(e.CA=t),e=this.ref(e),e.end(),n="Gs"+ ++this._opacityCount,this._opacityRegistry[r]=[e,n];return this.page.ext_gstates[n]=e,this.addContent(`/${n} gs`)},linearGradient(A,t,e,n){return new lA(this,A,t,e,n)},radialGradient(A,t,e,n,r,i){return new wA(this,A,t,e,n,r,i)},pattern(A,t,e,n){return new EA(this,A,t,e,n)},addSpotColor(A,t,e,n,r){const i=new f(this,A,t,e,n,r);return this.spotColors[A]=i,this}},QA={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]};let uA,fA,CA,dA,MA,DA;uA=fA=CA=dA=MA=DA=0;const IA={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},pA=function(A){return A in IA},yA=function(A){const t=A.codePointAt(0);return 32===t||9===t||13===t||10===t},FA=function(A){const t=A.codePointAt(0);return null!=t&&48<=t&&t<=57},YA=function(A,t){let e=t,n="",r="none";for(;e(uA=t[0],fA=t[1],CA=dA=null,MA=uA,DA=fA,A.moveTo(uA,fA)),m:(A,t)=>(uA+=t[0],fA+=t[1],CA=dA=null,MA=uA,DA=fA,A.moveTo(uA,fA)),C:(A,t)=>(uA=t[4],fA=t[5],CA=t[2],dA=t[3],A.bezierCurveTo(...t)),c:(A,t)=>(A.bezierCurveTo(t[0]+uA,t[1]+fA,t[2]+uA,t[3]+fA,t[4]+uA,t[5]+fA),CA=uA+t[2],dA=fA+t[3],uA+=t[4],fA+=t[5]),S:(A,t)=>(null===CA&&(CA=uA,dA=fA),A.bezierCurveTo(uA-(CA-uA),fA-(dA-fA),t[0],t[1],t[2],t[3]),CA=t[0],dA=t[1],uA=t[2],fA=t[3]),s:(A,t)=>(null===CA&&(CA=uA,dA=fA),A.bezierCurveTo(uA-(CA-uA),fA-(dA-fA),uA+t[0],fA+t[1],uA+t[2],fA+t[3]),CA=uA+t[0],dA=fA+t[1],uA+=t[2],fA+=t[3]),Q:(A,t)=>(CA=t[0],dA=t[1],uA=t[2],fA=t[3],A.quadraticCurveTo(t[0],t[1],uA,fA)),q:(A,t)=>(A.quadraticCurveTo(t[0]+uA,t[1]+fA,t[2]+uA,t[3]+fA),CA=uA+t[0],dA=fA+t[1],uA+=t[2],fA+=t[3]),T:(A,t)=>(null===CA?(CA=uA,dA=fA):(CA=uA-(CA-uA),dA=fA-(dA-fA)),A.quadraticCurveTo(CA,dA,t[0],t[1]),CA=uA-(CA-uA),dA=fA-(dA-fA),uA=t[0],fA=t[1]),t:(A,t)=>(null===CA?(CA=uA,dA=fA):(CA=uA-(CA-uA),dA=fA-(dA-fA)),A.quadraticCurveTo(CA,dA,uA+t[0],fA+t[1]),uA+=t[0],fA+=t[1]),A:(A,t)=>(bA(A,uA,fA,t),uA=t[5],fA=t[6]),a:(A,t)=>(t[5]+=uA,t[6]+=fA,bA(A,uA,fA,t),uA=t[5],fA=t[6]),L:(A,t)=>(uA=t[0],fA=t[1],CA=dA=null,A.lineTo(uA,fA)),l:(A,t)=>(uA+=t[0],fA+=t[1],CA=dA=null,A.lineTo(uA,fA)),H:(A,t)=>(uA=t[0],CA=dA=null,A.lineTo(uA,fA)),h:(A,t)=>(uA+=t[0],CA=dA=null,A.lineTo(uA,fA)),V:(A,t)=>(fA=t[0],CA=dA=null,A.lineTo(uA,fA)),v:(A,t)=>(fA+=t[0],CA=dA=null,A.lineTo(uA,fA)),Z:A=>(A.closePath(),uA=MA,fA=DA),z:A=>(A.closePath(),uA=MA,fA=DA)},bA=function(A,t,e,n){const r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],B=n[5],g=n[6],c=vA(B,g,r,i,o,a,s,t,e);for(let t of c){const e=zA(...t);A.bezierCurveTo(...e)}},vA=function(A,t,e,n,r,i,s,o,a){const B=s*(Math.PI/180),g=Math.sin(B),c=Math.cos(B);e=Math.abs(e),n=Math.abs(n),CA=c*(o-A)*.5+g*(a-t)*.5,dA=c*(a-t)*.5-g*(o-A)*.5;let l=CA*CA/(e*e)+dA*dA/(n*n);l>1&&(l=Math.sqrt(l),e*=l,n*=l);const w=c/e,E=g/e,h=-g/n,Q=c/n,u=w*o+E*a,f=h*o+Q*a,C=w*A+E*t,d=h*A+Q*t;let M=1/((C-u)*(C-u)+(d-f)*(d-f))-.25;M<0&&(M=0);let D=Math.sqrt(M);i===r&&(D=-D);const I=.5*(u+C)-D*(d-f),p=.5*(f+d)+D*(C-u),y=Math.atan2(f-p,u-I);let F=Math.atan2(d-p,C-I)-y;F<0&&1===i?F+=2*Math.PI:F>0&&0===i&&(F-=2*Math.PI);const Y=Math.ceil(Math.abs(F/(.5*Math.PI+.001))),m=[];for(let A=0;A1&&void 0!==arguments[1]?arguments[1]:{};const e=A;if(Array.isArray(A)||(A=[A,t.space||A]),!A.every((A=>Number.isFinite(A)&&A>0)))throw new Error(`dash(${JSON.stringify(e)}, ${JSON.stringify(t)}) invalid, lengths must be numeric and greater than zero`);return A=A.map(PA).join(" "),this.addContent(`[${A}] ${PA(t.phase||0)} d`)},undash(){return this.addContent("[] 0 d")},moveTo(A,t){return this.addContent(`${PA(A)} ${PA(t)} m`)},lineTo(A,t){return this.addContent(`${PA(A)} ${PA(t)} l`)},bezierCurveTo(A,t,e,n,r,i){return this.addContent(`${PA(A)} ${PA(t)} ${PA(e)} ${PA(n)} ${PA(r)} ${PA(i)} c`)},quadraticCurveTo(A,t,e,n){return this.addContent(`${PA(A)} ${PA(t)} ${PA(e)} ${PA(n)} v`)},rect(A,t,e,n){return this.addContent(`${PA(A)} ${PA(t)} ${PA(e)} ${PA(n)} re`)},roundedRect(A,t,e,n,r){null==r&&(r=0);const i=(r=Math.min(r,.5*e,.5*n))*(1-xA);return this.moveTo(A+r,t),this.lineTo(A+e-r,t),this.bezierCurveTo(A+e-i,t,A+e,t+i,A+e,t+r),this.lineTo(A+e,t+n-r),this.bezierCurveTo(A+e,t+n-i,A+e-i,t+n,A+e-r,t+n),this.lineTo(A+r,t+n),this.bezierCurveTo(A+i,t+n,A,t+n-i,A,t+n-r),this.lineTo(A,t+r),this.bezierCurveTo(A,t+i,A+i,t,A+r,t),this.closePath()},ellipse(A,t,e,n){null==n&&(n=e);const r=e*xA,i=n*xA,s=(A-=e)+2*e,o=(t-=n)+2*n,a=A+e,B=t+n;return this.moveTo(A,B),this.bezierCurveTo(A,B-i,a-r,t,a,t),this.bezierCurveTo(a+r,t,s,B-i,s,B),this.bezierCurveTo(s,B+i,a+r,o,a,o),this.bezierCurveTo(a-r,o,A,B+i,A,B),this.closePath()},circle(A,t,e){return this.ellipse(A,t,e)},arc(A,t,e,n,r,i){null==i&&(i=!1);const s=2*Math.PI,o=.5*Math.PI;let a=r-n;Math.abs(a)>s?a=s:0!==a&&i!==a<0&&(a=(i?-1:1)*s+a);const B=Math.ceil(Math.abs(a)/o),g=a/B,c=g/o*xA*e;let l=n,w=-Math.sin(l)*c,E=Math.cos(l)*c,h=A+Math.cos(l)*e,Q=t+Math.sin(l)*e;this.moveTo(h,Q);for(let n=0;n/even-?odd/.test(A)?"*":"",fill(A,t){return/(even-?odd)|(non-?zero)/.test(A)&&(t=A,A=null),A&&this.fillColor(A),this.addContent(`f${this._windingRule(t)}`)},stroke(A){return A&&this.strokeColor(A),this.addContent("S")},fillAndStroke(A,t,e){null==t&&(t=A);const n=/(even-?odd)|(non-?zero)/;return n.test(A)&&(e=A,A=null),n.test(t)&&(e=t,t=A),A&&(this.fillColor(A),this.strokeColor(t)),this.addContent(`B${this._windingRule(e)}`)},clip(A){return this.addContent(`W${this._windingRule(A)} n`)},transform(A,t,e,n,r,i){if(1===A&&0===t&&0===e&&1===n&&0===r&&0===i)return this;const s=this._ctm,o=s[0],a=s[1],B=s[2],g=s[3],c=s[4],l=s[5];s[0]=o*A+B*t,s[1]=a*A+g*t,s[2]=o*e+B*n,s[3]=a*e+g*n,s[4]=o*r+B*i+c,s[5]=a*r+g*i+l;const w=[A,t,e,n,r,i].map((A=>PA(A))).join(" ");return this.addContent(`${w} cm`)},translate(A,t){return this.transform(1,0,0,1,A,t)},rotate(A){let t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=A*Math.PI/180,r=Math.cos(n),i=Math.sin(n);let s=t=0;if(null!=e.origin){var o=e.origin;s=o[0],t=o[1];const A=s*i+t*r;s-=s*r-t*i,t-=A}return this.transform(r,i,-i,r,s,t)},scale(A,t){let e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};null==t&&(t=A),"object"==typeof t&&(n=t,t=A);let r=e=0;if(null!=n.origin){var i=n.origin;r=i[0],e=i[1],r-=A*r,e-=t*e}return this.transform(A,0,0,t,r,e)}};const RA={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},GA=".notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n \nspace exclam quotedbl numbersign\ndollar percent ampersand quotesingle\nparenleft parenright asterisk plus\ncomma hyphen period slash\nzero one two three\nfour five six seven\neight nine colon semicolon\nless equal greater question\n \nat A B C\nD E F G\nH I J K\nL M N O\nP Q R S\nT U V W\nX Y Z bracketleft\nbackslash bracketright asciicircum underscore\n \ngrave a b c\nd e f g\nh i j k\nl m n o\np q r s\nt u v w\nx y z braceleft\nbar braceright asciitilde .notdef\n \nEuro .notdef quotesinglbase florin\nquotedblbase ellipsis dagger daggerdbl\ncircumflex perthousand Scaron guilsinglleft\nOE .notdef Zcaron .notdef\n.notdef quoteleft quoteright quotedblleft\nquotedblright bullet endash emdash\ntilde trademark scaron guilsinglright\noe .notdef zcaron ydieresis\n \nspace exclamdown cent sterling\ncurrency yen brokenbar section\ndieresis copyright ordfeminine guillemotleft\nlogicalnot hyphen registered macron\ndegree plusminus twosuperior threesuperior\nacute mu paragraph periodcentered\ncedilla onesuperior ordmasculine guillemotright\nonequarter onehalf threequarters questiondown\n \nAgrave Aacute Acircumflex Atilde\nAdieresis Aring AE Ccedilla\nEgrave Eacute Ecircumflex Edieresis\nIgrave Iacute Icircumflex Idieresis\nEth Ntilde Ograve Oacute\nOcircumflex Otilde Odieresis multiply\nOslash Ugrave Uacute Ucircumflex\nUdieresis Yacute Thorn germandbls\n \nagrave aacute acircumflex atilde\nadieresis aring ae ccedilla\negrave eacute ecircumflex edieresis\nigrave iacute icircumflex idieresis\neth ntilde ograve oacute\nocircumflex otilde odieresis divide\noslash ugrave uacute ucircumflex\nudieresis yacute thorn ydieresis".split(/\s+/);class SA{constructor(A){this.attributes={},this.glyphWidths={},this.boundingBoxes={},this.kernPairs={},this.parse(A),this.bbox=this.attributes.FontBBox.split(/\s+/).map((A=>+A)),this.ascender=+(this.attributes.Ascender||0),this.descender=+(this.attributes.Descender||0),this.xHeight=+(this.attributes.XHeight||0),this.capHeight=+(this.attributes.CapHeight||0),this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}parse(A){let t="";for(let o of A.split("\n")){var e,n;if(e=o.match(/^Start(\w+)/))t=e[1];else if(e=o.match(/^End(\w+)/))t="";else switch(t){case"FontMetrics":var r=(e=o.match(/(^\w+)\s+(.*)/))[1],i=e[2];(n=this.attributes[r])?(Array.isArray(n)||(n=this.attributes[r]=[n]),n.push(i)):this.attributes[r]=i;break;case"CharMetrics":if(!/^CH?\s/.test(o))continue;var s=o.match(/\bN\s+(\.?\w+)\s*;/)[1];this.glyphWidths[s]=+o.match(/\bWX\s+(\d+)\s*;/)[1];break;case"KernPairs":(e=o.match(/^KPX\s+(\.?\w+)\s+(\.?\w+)\s+(-?\d+)/))&&(this.kernPairs[e[1]+"\0"+e[2]]=parseInt(e[3]))}}}encodeText(A){const t=[];for(let e=0,n=A.length;e1&&void 0!==arguments[1]&&arguments[1]?this.lineGap:0;return(this.ascender+t-this.descender)/1e3*A}}const HA={Courier:()=>h.readFileSync("//data/Courier.afm","utf8"),"Courier-Bold":()=>h.readFileSync("//data/Courier-Bold.afm","utf8"),"Courier-Oblique":()=>h.readFileSync("//data/Courier-Oblique.afm","utf8"),"Courier-BoldOblique":()=>h.readFileSync("//data/Courier-BoldOblique.afm","utf8"),Helvetica:()=>h.readFileSync("//data/Helvetica.afm","utf8"),"Helvetica-Bold":()=>h.readFileSync("//data/Helvetica-Bold.afm","utf8"),"Helvetica-Oblique":()=>h.readFileSync("//data/Helvetica-Oblique.afm","utf8"),"Helvetica-BoldOblique":()=>h.readFileSync("//data/Helvetica-BoldOblique.afm","utf8"),"Times-Roman":()=>h.readFileSync("//data/Times-Roman.afm","utf8"),"Times-Bold":()=>h.readFileSync("//data/Times-Bold.afm","utf8"),"Times-Italic":()=>h.readFileSync("//data/Times-Italic.afm","utf8"),"Times-BoldItalic":()=>h.readFileSync("//data/Times-BoldItalic.afm","utf8"),Symbol:()=>h.readFileSync("//data/Symbol.afm","utf8"),ZapfDingbats:()=>h.readFileSync("//data/ZapfDingbats.afm","utf8")};class kA extends TA{constructor(A,t,e){super(),this.document=A,this.name=t,this.id=e,this.font=new SA(HA[this.name]());var n=this.font;this.ascender=n.ascender,this.descender=n.descender,this.bbox=n.bbox,this.lineGap=n.lineGap,this.xHeight=n.xHeight,this.capHeight=n.capHeight}embed(){return this.dictionary.data={Type:"Font",BaseFont:this.name,Subtype:"Type1",Encoding:"WinAnsiEncoding"},this.dictionary.end()}encode(A){const t=this.font.encodeText(A),e=this.font.glyphsForString(`${A}`),n=this.font.advancesForGlyphs(e),r=[];for(let A=0;A>8;let r=0;this.font.post.isFixedPitch&&(r|=1),1<=e&&e<=7&&(r|=2),r|=4,10===e&&(r|=8),this.font.head.macStyle.italic&&(r|=64);const i=[1,2,3,4,5,6].map((A=>String.fromCharCode((this.id.charCodeAt(A)||73)+17))).join("")+"+"+this.font.postscriptName?.replaceAll(" ","_"),s=this.font.bbox,o=this.document.ref({Type:"FontDescriptor",FontName:i,Flags:r,FontBBox:[s.minX*this.scale,s.minY*this.scale,s.maxX*this.scale,s.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});if(A?o.data.FontFile3=t:o.data.FontFile2=t,this.document.subset&&1===this.document.subset){const A=n.from("FFFFFFFFC0","hex"),t=this.document.ref();t.write(A),t.end(),o.data.CIDSet=t}o.end();const a={Type:"Font",Subtype:"CIDFontType0",BaseFont:i,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:o,W:[0,this.widths]};A||(a.Subtype="CIDFontType2",a.CIDToGIDMap="Identity");const B=this.document.ref(a);return B.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:i,Encoding:"Identity-H",DescendantFonts:[B],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}toUnicodeCmap(){const A=this.document.ref(),t=[];for(let A of this.unicode){const e=[];for(let t of A)t>65535&&(t-=65536,e.push(LA(t>>>10&1023|55296)),t=56320|1023&t),e.push(LA(t));t.push(`<${e.join(" ")}>`)}const e=Math.ceil(t.length/256),n=[];for(let A=0;A <${LA(r-1)}> [${t.slice(e,r).join(" ")}]`)}return A.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>\nendcodespacerange\n${n.length} beginbfrange\n${n.join("\n")}\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend`),A}}class JA{static open(A,t,e,n){let r;if("string"==typeof t){if(kA.isStandardFont(t))return new kA(A,t,n);t=h.readFileSync(t)}if(t instanceof Uint8Array?r=g.create(t,e):t instanceof ArrayBuffer&&(r=g.create(new Uint8Array(t),e)),null==r)throw new Error("Not a supported font format or standard PDF font.");return new jA(A,r,n)}}var OA={initFonts(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Helvetica",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12;this._fontFamilies={},this._fontCount=0,this._fontSource=A,this._fontFamily=t,this._fontSize=e,this._font=null,this._remSize=e,this._registeredFonts={},A&&this.font(A,t)},font(A,t,e){let n,r;if("number"==typeof t&&(e=t,t=null),"string"==typeof A&&this._registeredFonts[A]){n=A;var i=this._registeredFonts[A];A=i.src,t=i.family}else n=t||A,"string"!=typeof n&&(n=null);if(this._fontSource=A,this._fontFamily=t,null!=e&&this.fontSize(e),r=this._fontFamilies[n])return this._font=r,this;const s="F"+ ++this._fontCount;return this._font=JA.open(this,A,t,s),(r=this._fontFamilies[this._font.name])&&(o=this._font,a=r,o.font._tables?.head?.checkSumAdjustment===a.font._tables?.head?.checkSumAdjustment&&JSON.stringify(o.font._tables?.name?.records)===JSON.stringify(a.font._tables?.name?.records))?(this._font=r,this):(n&&(this._fontFamilies[n]=this._font),this._font.name&&(this._fontFamilies[this._font.name]=this._font),this);var o,a},fontSize(A){return this._fontSize=this.sizeToPoint(A),this},currentLineHeight(A){return this._font.lineHeight(this._fontSize,A)},registerFont(A,t,e){return this._registeredFonts[A]={src:t,family:e},this},sizeToPoint(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.page,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;if(n||(n=this._fontSize),"number"!=typeof t&&(t=this.sizeToPoint(t)),void 0===A)return t;if("number"==typeof A)return A;if("boolean"==typeof A)return Number(A);const r=String(A).match(/((\d+)?(\.\d+)?)(em|in|px|cm|mm|pc|ex|ch|rem|vw|vh|vmin|vmax|%|pt)?/);if(!r)throw new Error(`Unsupported size '${A}'`);let i;switch(r[4]){case"em":i=this._fontSize;break;case"in":i=72;break;case"px":i=.75;break;case"cm":i=72*m;break;case"mm":i=.1*m*72;break;case"pc":i=12;break;case"ex":i=this.currentLineHeight();break;case"ch":i=this.widthOfString("0");break;case"rem":i=this._remSize;break;case"vw":i=e.width/100;break;case"vh":i=e.height/100;break;case"vmin":i=Math.min(e.width,e.height)/100;break;case"vmax":i=Math.max(e.width,e.height)/100;break;case"%":i=n/100;break;default:i=1}return i*Number(r[1])}};class WA extends c.EventEmitter{constructor(A,t){super(),this.document=A,this.horizontalScaling=t.horizontalScaling||100,this.indent=(t.indent||0)*this.horizontalScaling/100,this.indentAllLines=t.indentAllLines||!1,this.characterSpacing=(t.characterSpacing||0)*this.horizontalScaling/100,this.wordSpacing=(0===t.wordSpacing)*this.horizontalScaling/100,this.columns=t.columns||1,this.columnGap=(null!=t.columnGap?t.columnGap:18)*this.horizontalScaling/100,this.lineWidth=(t.width*this.horizontalScaling/100-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=t.ellipsis,this.continuedX=0,this.features=t.features,null!=t.height?(this.height=t.height,this.maxY=F(this.startY+t.height)):this.maxY=F(this.document.page.maxY()),this.on("firstLine",(A=>{const t=this.continuedX||this.indent;this.document.x+=t,this.lineWidth-=t,A.indentAllLines||this.once("line",(()=>{this.document.x-=t,this.lineWidth+=t,A.continued&&!this.continuedX&&(this.continuedX=this.indent),A.continued||(this.continuedX=0)}))})),this.on("lastLine",(A=>{const t=A.align;"justify"===t&&(A.align="left"),this.lastLine=!0,this.once("line",(()=>(this.document.y+=A.paragraphGap||0,A.align=t,this.lastLine=!1)))}))}wordWidth(A){return F(this.document.widthOfString(A,this)+this.characterSpacing+this.wordSpacing)}canFit(A,t){return"­"!=A[A.length-1]?t<=this.spaceLeft:t+this.wordWidth("-")<=this.spaceLeft}eachWord(A,t){let e;const n=new l.default(A);let r=null;const i=Object.create(null);for(;e=n.nextBreak();){var s;let n=A.slice((null!=r?r.position:void 0)||0,e.position),B=null!=i[n]?i[n]:i[n]=this.wordWidth(n);if(B>this.lineWidth+this.continuedX){let A=r;const i={};for(;n.length;){var o,a;B>this.spaceLeft?(o=Math.ceil(this.spaceLeft/(B/n.length)),B=this.wordWidth(n.slice(0,o)),a=B<=this.spaceLeft&&othis.spaceLeft&&o>0;for(;r||a;)r?(B=this.wordWidth(n.slice(0,--o)),r=B>this.spaceLeft&&o>0):(B=this.wordWidth(n.slice(0,++o)),r=B>this.spaceLeft&&o>0,a=B<=this.spaceLeft&&othis.maxY||e>this.maxY)&&this.nextSection();let n="",r=0,i=0,s=0,o=this.document.y;const a=()=>(t.textWidth=r+this.wordSpacing*(i-1),t.wordCount=i,t.lineWidth=this.lineWidth,o=this.document.y,this.emit("line",n,t,this),s++);this.emit("sectionStart",t,this),this.eachWord(A,((A,e,s,o)=>{if((null==o||o.required)&&(this.emit("firstLine",t,this),this.spaceLeft=this.lineWidth),this.canFit(A,e)&&(n+=A,r+=e,i++),s.required||!this.canFit(A,e)){const o=this.document.currentLineHeight(!0);if(null!=this.height&&this.ellipsis&&F(this.document.y+2*o)>this.maxY&&this.column>=this.columns){for(!0===this.ellipsis&&(this.ellipsis="…"),n=n.replace(/\s+$/,""),r=this.wordWidth(n+this.ellipsis);n&&r>this.lineWidth;)n=n.slice(0,-1).replace(/\s+$/,""),r=this.wordWidth(n+this.ellipsis);r<=this.lineWidth&&(n+=this.ellipsis),r=this.wordWidth(n)}if(s.required&&(e>this.spaceLeft&&(a(),n=A,r=e,i=1),this.emit("lastLine",t,this)),"­"==n[n.length-1]&&(n=n.slice(0,-1)+"-",this.spaceLeft-=this.wordWidth("-")),a(),F(this.document.y+o)>this.maxY){if(this.emit("sectionEnd",t,this),!this.nextSection())return i=0,n="",!1;this.emit("sectionStart",t,this)}return s.required?(this.spaceLeft=this.lineWidth,n="",r=0,i=0):(this.spaceLeft=this.lineWidth-e,n=A,r=e,i=1)}return this.spaceLeft-=e})),i>0&&(this.emit("lastLine",t,this),a()),this.emit("sectionEnd",t,this),!0===t.continued?(s>1&&(this.continuedX=0),this.continuedX+=t.textWidth||0,this.document.y=o):this.document.x=this.startX}nextSection(A){if(++this.column>this.columns){if(null!=this.height)return!1;if(this.document.continueOnNewPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.indentAllLines){const A=this.continuedX||this.indent;this.document.x+=A,this.lineWidth-=A}else this.document.x=this.startX;this.document._fillColor&&this.document.fillColor(...this.document._fillColor),this.emit("pageBreak",A,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",A,this);return!0}}const KA=D.number;var VA={initText(){this._line=this._line.bind(this),this.x=0,this.y=0,this._lineGap=0},lineGap(A){return this._lineGap=A,this},moveDown(A){return null==A&&(A=1),this.y+=this.currentLineHeight(!0)*A+this._lineGap,this},moveUp(A){return null==A&&(A=1),this.y-=this.currentLineHeight(!0)*A+this._lineGap,this},_text(A,t,e,n,r){A=null==A?"":`${A}`,(n=this._initOptions(t,e,n)).wordSpacing&&(A=A.replace(/\s{2,}/g," "));const i=()=>{n.structParent&&n.structParent.add(this.struct(n.structType||"P",[this.markStructureContent(n.structType||"P")]))};if(0!==n.rotation&&(this.save(),this.rotate(-n.rotation,{origin:[this.x,this.y]})),n.width){let t=this._wrapper;t||(t=new WA(this,n),t.on("line",r),t.on("firstLine",i)),this._wrapper=n.continued?t:null,this._textOptions=n.continued?n:null,t.wrap(A,n)}else for(let t of A.split("\n"))i(),r(t,n);return 0!==n.rotation&&this.restore(),this},text(A,t,e,n){return this._text(A,t,e,n,this._line)},widthOfString(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const e=t.horizontalScaling||100;return(this._font.widthOfString(A,this._fontSize,t.features)+(t.characterSpacing||0)*(A.length-1))*e/100},boundsOfString(A,t,e,n){n=this._initOptions(t,e,n),t=this.x,e=this.y;const r=n.lineGap??this._lineGap??0,i=this.currentLineHeight(!0)+r;let s=0;if(A=String(A??""),n.wordSpacing&&(A=A.replace(/\s{2,}/g," ")),n.width){let t=new WA(this,n);t.on("line",((A,t)=>{if(this.y+=i,(A=A.replace(/\n/g,"")).length){let e=t.wordSpacing??0;const n=t.characterSpacing??0;if(t.width&&"justify"===t.align){const r=A.trim().split(/\s+/),i=this.widthOfString(A.replace(/\s+/g,""),t),s=this.widthOfString(" ")+n;e=Math.max(0,(t.lineWidth-i)/Math.max(1,r.length-1)-s)}s=Math.max(s,t.textWidth+e*(t.wordCount-1)+n*(A.length-1))}})),t.wrap(A,n)}else for(let t of A.split("\n")){const A=this.widthOfString(t,n);this.y+=i,s=Math.max(s,A)}let o=this.y-e;if(n.height&&(o=Math.min(o,n.height)),this.x=t,this.y=e,0===n.rotation)return{x:t,y:e,width:s,height:o};if(90===n.rotation)return{x:t,y:e-s,width:o,height:s};if(180===n.rotation)return{x:t-s,y:e-o,width:s,height:o};if(270===n.rotation)return{x:t-o,y:e,width:o,height:s};const a=b(n.rotation),B=v(n.rotation),g=t,c=e,l=t+s*a,w=e-s*B,E=t+s*a+o*B,h=e-s*B+o*a,Q=t+o*B,u=e+o*a,f=Math.min(g,l,E,Q),C=Math.max(g,l,E,Q),d=Math.min(c,w,h,u);return{x:f,y:d,width:C-f,height:Math.max(c,w,h,u)-d}},heightOfString(A,t){const e=this.x,n=this.y;(t=this._initOptions(t)).height=1/0;const r=t.lineGap||this._lineGap||0;this._text(A,this.x,this.y,t,(()=>{this.y+=this.currentLineHeight(!0)+r}));const i=this.y-n;return this.x=e,this.y=n,i},list(A,t,e,n){const r=(n=this._initOptions(t,e,n)).listType||"bullet",i=Math.round(this._font.ascender/1e3*this._fontSize),s=i/2,o=n.bulletRadius||i/3,a=n.textIndent||("bullet"===r?5*o:2*i),B=n.bulletIndent||("bullet"===r?8*o:2*i);let g=1;const c=[],l=[],w=[];var E=function(A){let t=1;for(let e=0;e{let A,i,c,E,h;if(n.structParent)if(n.structTypes){var Q=n.structTypes;i=Q[0],c=Q[1],E=Q[2]}else i="LI",c="Lbl",E="LBody";if(i?(A=this.struct(i),n.structParent.add(A)):n.structParent&&(A=n.structParent),(h=l[t++])!==g){const A=B*(h-g);this.x+=A,e.lineWidth-=A,g=h}switch(A&&(c||E)&&A.add(this.struct(c||E,[this.markStructureContent(c||E)])),r){case"bullet":this.circle(this.x-a+o,this.y+s,o),this.fill();break;case"numbered":case"lettered":var u=function(A,t){if("numbered"===t)return`${A}.`;var e=String.fromCharCode((A-1)%26+65),n=Math.floor((A-1)/26+1);return`${Array(n+1).join(e)}.`}(w[t-1],r);this._fragment(u,this.x-a,this.y,n)}A&&c&&E&&A.add(this.struct(E,[this.markStructureContent(E)])),A&&A!==n.structParent&&A.end()})),e.on("sectionStart",(()=>{const A=a+B*(g-1);this.x+=A,e.lineWidth-=A})),e.on("sectionEnd",(()=>{const A=a+B*(g-1);this.x-=A,e.lineWidth+=A})),e.wrap(A,n)};for(let A=0;A0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof A&&(e=A,A=null);const n=Object.assign({},e);if(this._textOptions)for(let A in this._textOptions){const t=this._textOptions[A];"continued"!==A&&void 0===n[A]&&(n[A]=t)}return null!=A&&(this.x=A),null!=t&&(this.y=t),!1!==n.lineBreak&&(null==n.width&&(n.width=this.page.width-this.x-this.page.margins.right),n.width=Math.max(n.width,0)),n.columns||(n.columns=0),null==n.columnGap&&(n.columnGap=18),n.rotation=Number(e.rotation??0)%360,n.rotation<0&&(n.rotation+=360),n},_line(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;if(this._fragment(A,this.x,this.y,t),e){const A=t.lineGap||this._lineGap||0;this.y+=this.currentLineHeight(!0)+A}else this.x+=this.widthOfString(A,t)},_fragment(A,t,e,n){let r,i,s,o,a,B;if(0===(A=`${A}`.replace(/\n/g,"")).length)return;const g=n.align||"left";let c=n.wordSpacing||0;const l=n.characterSpacing||0,w=n.horizontalScaling||100;if(n.width)switch(g){case"right":a=this.widthOfString(A.replace(/\s+$/,""),n),t+=n.lineWidth-a;break;case"center":t+=n.lineWidth/2-n.textWidth/2;break;case"justify":B=A.trim().split(/\s+/),a=this.widthOfString(A.replace(/\s+/g,""),n);var E=this.widthOfString(" ")+l;c=Math.max(0,(n.lineWidth-a)/Math.max(1,B.length-1)-E)}if("number"==typeof n.baseline)r=-n.baseline;else{switch(n.baseline){case"svg-middle":r=.5*this._font.xHeight;break;case"middle":case"svg-central":r=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":r=this._font.descender;break;case"alphabetic":r=0;break;case"mathematical":r=.5*this._font.ascender;break;case"hanging":r=.8*this._font.ascender;break;default:r=this._font.ascender}r=r/1e3*this._fontSize}const h=n.textWidth+c*(n.wordCount-1)+l*(A.length-1);if(null!=n.link){const A={};this._currentStructureElement&&"Link"===this._currentStructureElement.dictionary.data.S&&(A.structParent=this._currentStructureElement),this.link(t,e,h,this.currentLineHeight(),n.link,A)}if(null!=n.goTo&&this.goTo(t,e,h,this.currentLineHeight(),n.goTo),null!=n.destination&&this.addNamedDestination(n.destination,"XYZ",t,e,null),n.underline){this.save(),n.stroke||this.strokeColor(...this._fillColor||[]);const A=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(A);let r=e+this.currentLineHeight()-A;this.moveTo(t,r),this.lineTo(t+h,r),this.stroke(),this.restore()}if(n.strike){this.save(),n.stroke||this.strokeColor(...this._fillColor||[]);const A=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(A);let r=e+this.currentLineHeight()/2;this.moveTo(t,r),this.lineTo(t+h,r),this.stroke(),this.restore()}if(this.save(),n.oblique){let A;A="number"==typeof n.oblique?-Math.tan(n.oblique*Math.PI/180):-.25,this.transform(1,0,0,1,t,e),this.transform(1,0,A,1,-A*r,0),this.transform(1,0,0,1,-t,-e)}this.transform(1,0,0,-1,0,this.page.height),e=this.page.height-e-r,null==this.page.fonts[this._font.id]&&(this.page.fonts[this._font.id]=this._font.ref()),this.addContent("BT"),this.addContent(`1 0 0 1 ${KA(t)} ${KA(e)} Tm`),this.addContent(`/${this._font.id} ${KA(this._fontSize)} Tf`);const Q=n.fill&&n.stroke?2:n.stroke?1:0;if(Q&&this.addContent(`${Q} Tr`),l&&this.addContent(`${KA(l)} Tc`),100!==w&&this.addContent(`${w} Tz`),c){B=A.trim().split(/\s+/),c+=this.widthOfString(" ")+l,c*=1e3/this._fontSize,i=[],o=[];for(let A of B){const t=this._font.encode(A,n.features),e=t[0],r=t[1];i=i.concat(e),o=o.concat(r);const s={},a=o[o.length-1];for(let A in a){const t=a[A];s[A]=t}s.xAdvance+=c,o[o.length-1]=s}}else{var u=this._font.encode(A,n.features);i=u[0],o=u[1]}const f=this._fontSize/1e3,C=[];let d=0,M=!1;const D=A=>{if(d ${KA(-e)}`)}d=A},I=A=>{D(A),C.length>0&&(this.addContent(`[${C.join(" ")}] TJ`),C.length=0)};for(s=0;s{if(!A||A.length<20)return null;let t=2;for(;t=A.length-4)return null;const e=A.readUInt16BE(t);if(t+=2,65498===e)return null;if(e>=65488&&e<=65497||65281===e)continue;if(t+2>A.length)return null;const n=A.readUInt16BE(t);if(65505===e&&t+8<=A.length&&"Exif\0\0"===A.subarray(t+2,t+8).toString("binary")){const e=t+8;if(e+8>A.length)return null;const n=A.subarray(e,e+2).toString("ascii"),r="II"===n;if(!r&&"MM"!==n)return null;const i=r?t=>A.readUInt16LE(t):t=>A.readUInt16BE(t),s=r?t=>A.readUInt32LE(t):t=>A.readUInt32BE(t);if(42!==i(e+2))return null;const o=e+s(e+4);if(o+2>A.length)return null;const a=i(o);for(let t=0;tA.length)return null;if(274===i(e)){const A=i(e+8);return A>=1&&A<=8?A:null}}return null}t+=n}return null})(this.data)||1;let n=2;for(;n=this.data.length)break;if(e=this.data.readUInt16BE(n),n+=2,XA.includes(e))break;n+=this.data.readUInt16BE(n)}if(!XA.includes(e))throw"Invalid JPEG.";n+=2,this.bits=this.data[n++],this.height=this.data.readUInt16BE(n),n+=2,this.width=this.data.readUInt16BE(n),n+=2;const r=this.data[n++];this.colorSpace=ZA[r],this.obj=null}embed(A){if(!this.obj)return this.obj=A.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}}class qA{constructor(A,t){this.label=t,this.image=new w.default(A),this.width=this.image.width,this.height=this.image.height,this.imgData=this.image.imgData,this.obj=null}embed(A){let t=!1;if(this.document=A,this.obj)return;const e=this.image.hasAlphaChannel,r=1===this.image.interlaceMethod;if(this.obj=this.document.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:e?8:this.image.bits,Width:this.width,Height:this.height,Filter:"FlateDecode"}),!e){const A=this.document.ref({Predictor:r?1:15,Colors:this.image.colors,BitsPerComponent:this.image.bits,Columns:this.width});this.obj.data.DecodeParms=A,A.end()}if(0===this.image.palette.length)this.obj.data.ColorSpace=this.image.colorSpace;else{const A=this.document.ref();A.end(n.from(this.image.palette)),this.obj.data.ColorSpace=["Indexed","DeviceRGB",this.image.palette.length/3-1,A]}if(null!=this.image.transparency.grayscale){const A=this.image.transparency.grayscale;this.obj.data.Mask=[A,A]}else if(this.image.transparency.rgb){const A=this.image.transparency.rgb,t=[];for(let e of A)t.push(e,e);this.obj.data.Mask=t}else{if(this.image.transparency.indexed)return t=!0,this.loadIndexedAlphaChannel();if(e)return t=!0,this.splitAlphaChannel()}if(r&&!t)return this.decodeData();this.finalize()}finalize(){if(this.alphaChannel){const A=this.document.ref({Type:"XObject",Subtype:"Image",Height:this.height,Width:this.width,BitsPerComponent:8,Filter:"FlateDecode",ColorSpace:"DeviceGray",Decode:[0,1]});A.end(this.alphaChannel),this.obj.data.SMask=A}return this.obj.end(this.imgData),this.image=null,this.imgData=null}splitAlphaChannel(){return this.image.decodePixels((A=>{let t,e;const r=this.image.colors,s=this.width*this.height,o=n.alloc(s*r),a=n.alloc(s);let B=e=t=0;const g=A.length,c=16===this.image.bits?1:0;for(;B{const r=n.alloc(this.width*this.height);let s=0;for(let t=0,n=e.length;t{this.imgData=i.default.deflateSync(A),this.finalize()}))}}class $A{static open(A,t){let e;if(n.isBuffer(A))e=A;else if(A instanceof ArrayBuffer)e=n.from(new Uint8Array(A));else{const t=/^data:.+?;base64,(.*)$/.exec(A);if(t)e=n.from(t[1],"base64");else if(e=h.readFileSync(A),!e)return}if(255===e[0]&&216===e[1])return new _A(e,t);if(137===e[0]&&"PNG"===e.toString("ascii",1,4))return new qA(e,t);throw new Error("Unknown image format.")}}var At={initImages(){this._imageRegistry={},this._imageCount=0},image(A,t,e){let n,r,i,s,o,a,B,g,c,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"object"==typeof t&&(l=t,t=null);const w=l.ignoreOrientation||!1!==l.ignoreOrientation&&this.options.ignoreOrientation,E="number"!=typeof e;t=null!=(a=null!=t?t:l.x)?a:this.x,e=null!=(B=null!=e?e:l.y)?B:this.y,"string"==typeof A&&(s=this._imageRegistry[A]),s||(s=A.width&&A.height?A:this.openImage(A)),s.obj||s.embed(this),null==this.page.xobjects[s.label]&&(this.page.xobjects[s.label]=s.obj);let h=s,Q=h.width,u=h.height;if(!w&&s.orientation>4){var f=[u,Q];Q=f[0],u=f[1]}let C=l.width||Q,d=l.height||u;if(l.width&&!l.height){const A=C/Q;C=Q*A,d=u*A}else if(l.height&&!l.width){const A=d/u;C=Q*A,d=u*A}else if(l.scale)C=Q*l.scale,d=u*l.scale;else if(l.fit){var M=l.fit;i=M[0],n=M[1],r=i/n,o=Q/u,o>r?(C=i,d=i/o):(d=n,C=n*o)}else if(l.cover){var D=l.cover;i=D[0],n=D[1],r=i/n,o=Q/u,o>r?(d=n,C=n*o):(C=i,d=i/o)}(l.fit||l.cover)&&("center"===l.align?t=t+i/2-C/2:"right"===l.align&&(t=t+i-C),"center"===l.valign?e=e+n/2-d/2:"bottom"===l.valign&&(e=e+n-d));let I=0,p=t,y=e,F=d,Y=C;if(w)F=-d,y+=d;else switch(s.orientation){default:case 1:F=-d,y+=d;break;case 2:Y=-C,F=-d,p+=C,y+=d;break;case 3:g=t,c=e,F=-d,p-=C,I=180;break;case 4:break;case 5:g=t,c=e,Y=d,F=C,y-=F,I=90;break;case 6:g=t,c=e,Y=d,F=-C,I=90;break;case 7:g=t,c=e,F=-C,Y=-d,p+=d,I=90;break;case 8:g=t,c=e,Y=d,F=-C,p-=d,y+=C,I=-90}return null!=l.link&&this.link(t,e,C,d,l.link),null!=l.goTo&&this.goTo(t,e,C,d,l.goTo),null!=l.destination&&this.addNamedDestination(l.destination,"XYZ",t,e,null),E&&(this.y+=d),this.save(),I&&this.rotate(I,{origin:[g,c]}),this.transform(Y,0,0,F,p,y),this.addContent(`/${s.label} Do`),this.restore(),this},openImage(A){let t;return"string"==typeof A&&(t=this._imageRegistry[A]),t||(t=$A.open(A,"I"+ ++this._imageCount),"string"==typeof A&&(this._imageRegistry[A]=t)),t}};class tt{constructor(A){this.annotationRef=A}}var et={annotate(A,t,e,n,r){r.Type="Annot",r.Rect=this._convertRect(A,t,e,n),r.Border=[0,0,0],"Link"===r.Subtype&&void 0===r.F&&(r.F=4),"Link"!==r.Subtype&&null==r.C&&(r.C=this._normalizeColor(r.color||[0,0,0])),delete r.color,"string"==typeof r.Dest&&(r.Dest=new String(r.Dest));const i=r.structParent;delete r.structParent;for(let A in r){const t=r[A];r[A[0].toUpperCase()+A.slice(1)]=t}const s=this.ref(r);if(this.page.annotations.push(s),i&&"function"==typeof i.add){const A=new tt(s);i.add(A)}return s.end(),this},note(A,t,e,n,r){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return i.Subtype="Text",i.Contents=new String(r),null==i.Name&&(i.Name="Comment"),null==i.color&&(i.color=[243,223,92]),this.annotate(A,t,e,n,i)},goTo(A,t,e,n,r){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return i.Subtype="Link",i.A=this.ref({S:"GoTo",D:new String(r)}),i.A.end(),this.annotate(A,t,e,n,i)},link(A,t,e,n,r){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(i.Subtype="Link","number"==typeof r){const A=this._root.data.Pages.data;if(!(r>=0&&r4&&void 0!==arguments[4]?arguments[4]:{};const i=this._convertRect(A,t,e,n),s=i[0],o=i[1],a=i[2],B=i[3];return r.QuadPoints=[s,B,a,B,s,o,a,o],r.Contents=new String,this.annotate(A,t,e,n,r)},highlight(A,t,e,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return r.Subtype="Highlight",null==r.color&&(r.color=[241,238,148]),this._markup(A,t,e,n,r)},underline(A,t,e,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return r.Subtype="Underline",this._markup(A,t,e,n,r)},strike(A,t,e,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return r.Subtype="StrikeOut",this._markup(A,t,e,n,r)},lineAnnotation(A,t,e,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return r.Subtype="Line",r.Contents=new String,r.L=[A,this.page.height-t,e,this.page.height-n],this.annotate(A,t,e,n,r)},rectAnnotation(A,t,e,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return r.Subtype="Square",r.Contents=new String,this.annotate(A,t,e,n,r)},ellipseAnnotation(A,t,e,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return r.Subtype="Circle",r.Contents=new String,this.annotate(A,t,e,n,r)},textAnnotation(A,t,e,n,r){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return i.Subtype="FreeText",i.Contents=new String(r),i.DA=new String,this.annotate(A,t,e,n,i)},fileAnnotation(A,t,e,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const s=this.file(r.src,Object.assign({hidden:!0},r));return i.Subtype="FileAttachment",i.FS=s,i.Contents?i.Contents=new String(i.Contents):s.data.Desc&&(i.Contents=s.data.Desc),this.annotate(A,t,e,n,i)},_convertRect(A,t,e,n){let r=t;t+=n;let i=A+e;const s=this._ctm,o=s[0],a=s[1],B=s[2],g=s[3],c=s[4],l=s[5];return i=o*i+B*r+c,r=a*i+g*r+l,[A=o*A+B*t+c,t=a*A+g*t+l,i,r]}};const nt={top:0,left:0,zoom:0,fit:!0,pageNumber:null,expanded:!1};class rt{constructor(A,t,e,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:nt;if(this.document=A,this.options=r,this.outlineData={},null!==n){const A=n.data.MediaBox[2],t=n.data.MediaBox[3]-(r.top||0),e=A-(r.left||0),i=r.zoom||0;this.outlineData.Dest=r.fit?[n,"Fit"]:[n,"XYZ",e,t,i]}null!==t&&(this.outlineData.Parent=t),null!==e&&(this.outlineData.Title=new String(e)),this.dictionary=this.document.ref(this.outlineData),this.children=[]}addItem(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nt;const e=this.document._root.data.Pages.data.Kids,n=null!=t.pageNumber?e[t.pageNumber]:this.document.page.dictionary,r=new rt(this.document,this.dictionary,A,n,t);return this.children.push(r),r}endOutline(){if(this.children.length>0){this.options.expanded&&(this.outlineData.Count=this.children.length);const A=this.children[0],t=this.children[this.children.length-1];this.outlineData.First=A.dictionary,this.outlineData.Last=t.dictionary;for(let A=0,t=this.children.length;A0&&(t.outlineData.Prev=this.children[A-1].dictionary),A0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode=this._root.data.PageMode||"UseOutlines"}};class st{constructor(A,t){this.refs=[{pageRef:A,mcid:t}]}push(A){A.refs.forEach((A=>this.refs.push(A)))}}class ot{constructor(A,t){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.document=A,this._attached=!1,this._ended=!1,this._flushed=!1,this.dictionary=A.ref({S:t});const r=this.dictionary.data;(Array.isArray(e)||this._isValidChild(e))&&(n=e,e={}),void 0!==e.title&&(r.T=new String(e.title)),void 0!==e.lang&&(r.Lang=new String(e.lang)),void 0!==e.alt&&(r.Alt=new String(e.alt)),void 0!==e.expanded&&(r.E=new String(e.expanded)),void 0!==e.actual&&(r.ActualText=new String(e.actual)),this._children=[],n&&(Array.isArray(n)||(n=[n]),n.forEach((A=>this.add(A))),this.end())}add(A){if(this._ended)throw new Error("Cannot add child to already-ended structure element");if(!this._isValidChild(A))throw new Error("Invalid structure element child");return A instanceof ot&&(A.setParent(this.dictionary),this._attached&&A.setAttached()),A instanceof st&&this._addContentToParentTree(A),A instanceof tt&&this._addAnnotationToParentTree(A.annotationRef),"function"==typeof A&&this._attached&&(A=this._contentForClosure(A)),this._children.push(A),this}_addContentToParentTree(A){A.refs.forEach((A=>{let t=A.pageRef,e=A.mcid;this.document.getStructParentTree().get(t.data.StructParents)[e]=this.dictionary}))}_addAnnotationToParentTree(A){const t=this.document.createStructParentTreeNextKey();A.data.StructParent=t,this.document.getStructParentTree().add(t,this.dictionary)}setParent(A){if(this.dictionary.data.P)throw new Error("Structure element added to more than one parent");this.dictionary.data.P=A,this._flush()}setAttached(){this._attached||(this._children.forEach(((A,t)=>{A instanceof ot&&A.setAttached(),"function"==typeof A&&(this._children[t]=this._contentForClosure(A))})),this._attached=!0,this._flush())}end(){this._ended||(this._children.filter((A=>A instanceof ot)).forEach((A=>A.end())),this._ended=!0,this._flush())}_isValidChild(A){return A instanceof ot||A instanceof st||A instanceof tt||"function"==typeof A}_contentForClosure(A){const t=this.document.markStructureContent(this.dictionary.data.S),e=this.document._currentStructureElement;this.document._currentStructureElement=this;const n=this._ended;return this._ended=!1,A(),this._ended=n,this.document._currentStructureElement=e,this.document.endMarkedContent(),this._addContentToParentTree(t),t}_isFlushable(){return!(!this.dictionary.data.P||!this._ended)&&this._children.every((A=>"function"!=typeof A&&(!(A instanceof ot)||A._isFlushable())))}_flush(){!this._flushed&&this._isFlushable()&&(this.dictionary.data.K=[],this._children.forEach((A=>this._flushChild(A))),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)}_flushChild(A){if(A instanceof ot&&this.dictionary.data.K.push(A.dictionary),A instanceof st&&A.refs.forEach((A=>{let t=A.pageRef,e=A.mcid;this.dictionary.data.Pg||(this.dictionary.data.Pg=t),this.dictionary.data.Pg===t?this.dictionary.data.K.push(e):this.dictionary.data.K.push({Type:"MCR",Pg:t,MCID:e})})),A instanceof tt){const t=this.document.page.dictionary,e={Type:"OBJR",Obj:A.annotationRef,Pg:t};this.dictionary.data.K.push(e)}}}class at extends u{_compareKeys(A,t){return parseInt(A)-parseInt(t)}_keysName(){return"Nums"}_dataForKey(A){return parseInt(A)}}var Bt={initMarkings(A){this.structChildren=[],A.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("Artifact"===A||t&&t.mcid){let A=0;for(this.page.markings.forEach((t=>{(A||t.structContent||"Artifact"===t.tag)&&A++}));A--;)this.endMarkedContent()}if(!t)return this.page.markings.push({tag:A}),this.addContent(`/${A} BMC`),this;this.page.markings.push({tag:A,options:t});const e={};return void 0!==t.mcid&&(e.MCID=t.mcid),"Artifact"===A&&("string"==typeof t.type&&(e.Type=t.type),Array.isArray(t.bbox)&&(e.BBox=[t.bbox[0],this.page.height-t.bbox[3],t.bbox[2],this.page.height-t.bbox[1]]),Array.isArray(t.attached)&&t.attached.every((A=>"string"==typeof A))&&(e.Attached=t.attached)),"Span"===A&&(t.lang&&(e.Lang=new String(t.lang)),t.alt&&(e.Alt=new String(t.alt)),t.expanded&&(e.E=new String(t.expanded)),t.actual&&(e.ActualText=new String(t.actual))),this.addContent(`/${A} ${D.convert(e)} BDC`),this},markStructureContent(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const e=this.getStructParentTree().get(this.page.structParentTreeKey),n=e.length;e.push(null),this.markContent(A,{...t,mcid:n});const r=new st(this.page.dictionary,n);return this.page.markings.slice(-1)[0].structContent=r,r},endMarkedContent(){return this.page.markings.pop(),this.addContent("EMC"),this._textOptions&&(delete this._textOptions.link,delete this._textOptions.goTo,delete this._textOptions.destination,delete this._textOptions.underline,delete this._textOptions.strike),this},struct(A){return new ot(this,A,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)},addStructure(A){const t=this.getStructTreeRoot();return A.setParent(t),A.setAttached(),this.structChildren.push(A),t.data.K||(t.data.K=[]),t.data.K.push(A.dictionary),this},initPageMarkings(A){A.forEach((A=>{if(A.structContent){const t=A.structContent,e=this.markStructureContent(A.tag,A.options);t.push(e),this.page.markings.slice(-1)[0].structContent=t}else this.markContent(A.tag,A.options)}))},endPageMarkings(A){const t=A.markings;return t.forEach((()=>A.write("EMC"))),A.markings=[],t},getMarkInfoDictionary(){return this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({})),this._root.data.MarkInfo},hasMarkInfoDictionary(){return!!this._root.data.MarkInfo},getStructTreeRoot(){return this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new at,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey(){this.getMarkInfoDictionary();const A=this.getStructTreeRoot(),t=A.data.ParentTreeNextKey++;return A.data.ParentTree.add(t,[]),t},endMarkings(){const A=this._root.data.StructTreeRoot;A&&(A.end(),this.structChildren.forEach((A=>A.end()))),this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}};const gt={readOnly:1,required:2,noExport:4,multiline:4096,password:8192,toggleToOffButton:16384,radioButton:32768,pushButton:65536,combo:131072,edit:262144,sort:524288,multiSelect:2097152,noSpell:4194304},ct={left:0,center:1,right:2},lt={value:"V",defaultValue:"DV"},wt={zip:"0",zipPlus4:"1",zip4:"1",phone:"2",ssn:"3"},Et={nDec:0,sepComma:!1,negStyle:"MinusBlack",currency:"",currencyPrepend:!0},ht={nDec:0,sepComma:!1};var Qt={initForm(){if(!this._font)throw new Error("Must set a font before calling initForm method");this._acroform={fonts:{},defaultFont:this._font.name},this._acroform.fonts[this._font.id]=this._font.ref();let A={Fields:[],NeedAppearances:!0,DA:new String(`/${this._font.id} 0 Tf 0 g`),DR:{Font:{}}};A.DR.Font[this._font.id]=this._font.ref();const t=this.ref(A);return this._root.data.AcroForm=t,this},endAcroForm(){if(this._root.data.AcroForm){if(!Object.keys(this._acroform.fonts).length&&!this._acroform.defaultFont)throw new Error("No fonts specified for PDF form");let A=this._root.data.AcroForm.data.DR.Font;Object.keys(this._acroform.fonts).forEach((t=>{A[t]=this._acroform.fonts[t]})),this._root.data.AcroForm.data.Fields.forEach((A=>{this._endChild(A)})),this._root.data.AcroForm.end()}return this},_endChild(A){return Array.isArray(A.data.Kids)&&(A.data.Kids.forEach((A=>{this._endChild(A)})),A.end()),this},formField(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=this._fieldDict(A,null,t),n=this.ref(e);return this._addToParent(n),n},formAnnotation(A,t,e,n,r,i){let s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},o=this._fieldDict(A,t,s);o.Subtype="Widget",void 0===o.F&&(o.F=4),this.annotate(e,n,r,i,o);let a=this.page.annotations[this.page.annotations.length-1];return this._addToParent(a)},formText(A,t,e,n,r){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.formAnnotation(A,"text",t,e,n,r,i)},formPushButton(A,t,e,n,r){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.formAnnotation(A,"pushButton",t,e,n,r,i)},formCombo(A,t,e,n,r){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.formAnnotation(A,"combo",t,e,n,r,i)},formList(A,t,e,n,r){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.formAnnotation(A,"list",t,e,n,r,i)},formRadioButton(A,t,e,n,r){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.formAnnotation(A,"radioButton",t,e,n,r,i)},formCheckbox(A,t,e,n,r){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.formAnnotation(A,"checkbox",t,e,n,r,i)},_addToParent(A){let t=A.data.Parent;return t?(t.data.Kids||(t.data.Kids=[]),t.data.Kids.push(A)):this._root.data.AcroForm.data.Fields.push(A),this},_fieldDict(A,t){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._acroform)throw new Error("Call document.initForm() method before adding form elements to document");let n=Object.assign({},e);return null!==t&&(n=this._resolveType(t,e)),n=this._resolveFlags(n),n=this._resolveJustify(n),n=this._resolveFont(n),n=this._resolveStrings(n),n=this._resolveColors(n),n=this._resolveFormat(n),n.T=new String(A),n.parent&&(n.Parent=n.parent,delete n.parent),n},_resolveType(A,t){if("text"===A)t.FT="Tx";else if("pushButton"===A)t.FT="Btn",t.pushButton=!0;else if("radioButton"===A)t.FT="Btn",t.radioButton=!0;else if("checkbox"===A)t.FT="Btn";else if("combo"===A)t.FT="Ch",t.combo=!0;else{if("list"!==A)throw new Error(`Invalid form annotation type '${A}'`);t.FT="Ch"}return t},_resolveFormat(A){const t=A.format;if(t&&t.type){let e,n,r="";if(void 0!==wt[t.type])e="AFSpecial_Keystroke",n="AFSpecial_Format",r=wt[t.type];else{let A=t.type.charAt(0).toUpperCase()+t.type.slice(1);if(e=`AF${A}_Keystroke`,n=`AF${A}_Format`,"date"===t.type)e+="Ex",r=String(t.param);else if("time"===t.type)r=String(t.param);else if("number"===t.type){let A=Object.assign({},Et,t);r=String([String(A.nDec),A.sepComma?"0":"1",'"'+A.negStyle+'"',"null",'"'+A.currency+'"',String(A.currencyPrepend)].join(","))}else if("percent"===t.type){let A=Object.assign({},ht,t);r=String([String(A.nDec),A.sepComma?"0":"1"].join(","))}}A.AA=A.AA?A.AA:{},A.AA.K={S:"JavaScript",JS:new String(`${e}(${r});`)},A.AA.F={S:"JavaScript",JS:new String(`${n}(${r});`)}}return delete A.format,A},_resolveColors(A){let t=this._normalizeColor(A.backgroundColor);return t&&(A.MK||(A.MK={}),A.MK.BG=t),t=this._normalizeColor(A.borderColor),t&&(A.MK||(A.MK={}),A.MK.BC=t),delete A.backgroundColor,delete A.borderColor,A},_resolveFlags(A){let t=0;return Object.keys(A).forEach((e=>{gt[e]&&(A[e]&&(t|=gt[e]),delete A[e])})),0!==t&&(A.Ff=A.Ff?A.Ff:0,A.Ff|=t),A},_resolveJustify(A){let t=0;return void 0!==A.align&&("number"==typeof ct[A.align]&&(t=ct[A.align]),delete A.align),0!==t&&(A.Q=t),A},_resolveFont(A){if(null==this._acroform.fonts[this._font.id]&&(this._acroform.fonts[this._font.id]=this._font.ref()),this._acroform.defaultFont!==this._font.name){A.DR={Font:{}};const t=A.fontSize||0;A.DR.Font[this._font.id]=this._font.ref(),A.DA=new String(`/${this._font.id} ${t} Tf 0 g`)}return A},_resolveStrings(A){let t=[];function e(A){if(Array.isArray(A))for(let e=0;e{void 0!==A[t]&&(A[lt[t]]=A[t],delete A[t])})),["V","DV"].forEach((t=>{"string"==typeof A[t]&&(A[t]=new String(A[t]))})),A.MK&&A.MK.CA&&(A.MK.CA=new String(A.MK.CA)),A.label&&(A.MK=A.MK?A.MK:{},A.MK.CA=new String(A.label),delete A.label),A}},ut={file(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||A,t.relationship=t.relationship||"Unspecified";const e={Type:"EmbeddedFile",Params:{}};let r;if(!A)throw new Error("No src specified");if(n.isBuffer(A))r=A;else if(A instanceof ArrayBuffer)r=n.from(new Uint8Array(A));else{const t=/^data:(.*?);base64,(.*)$/.exec(A);if(t)t[1]&&(e.Subtype=t[1].replace("/","#2F")),r=n.from(t[2],"base64");else{if(r=h.readFileSync(A),!r)throw new Error(`Could not read contents of file at filepath ${A}`);const t=h.statSync(A),n=t.birthtime,i=t.ctime;e.Params.CreationDate=n,e.Params.ModDate=i}}t.creationDate instanceof Date&&(e.Params.CreationDate=t.creationDate),t.modifiedDate instanceof Date&&(e.Params.ModDate=t.modifiedDate),t.type&&(e.Subtype=t.type.replace("/","#2F"));const i=function(A){return(0,o.default)(A)}(new Uint8Array(r));let s;e.Params.CheckSum=new String(i),e.Params.Size=r.byteLength,this._fileRegistry||(this._fileRegistry={});let a=this._fileRegistry[t.name];var B,g;a&&(g=a,(B=e).Subtype===g.Subtype&&B.Params.CheckSum.toString()===g.Params.CheckSum.toString()&&B.Params.Size===g.Params.Size&&B.Params.CreationDate.getTime()===g.Params.CreationDate.getTime()&&(void 0===B.Params.ModDate&&void 0===g.Params.ModDate||B.Params.ModDate.getTime()===g.Params.ModDate.getTime()))?s=a.ref:(s=this.ref(e),s.end(r),this._fileRegistry[t.name]={...e,ref:s});const c={Type:"Filespec",AFRelationship:t.relationship,F:new String(t.name),EF:{F:s},UF:new String(t.name)};t.description&&(c.Desc=new String(t.description));const l=this.ref(c);return l.end(),t.hidden||this.addNamedEmbeddedFile(t.name,l),this._root.data.AF?this._root.data.AF.push(l):this._root.data.AF=[l],l}},ft={initPDFA(A){"-"===A.charAt(A.length-3)?(this.subset_conformance=A.charAt(A.length-1).toUpperCase(),this.subset=parseInt(A.charAt(A.length-2))):(this.subset_conformance="B",this.subset=parseInt(A.charAt(A.length-1)))},endSubset(){this._addPdfaMetadata(),this._addColorOutputIntent()},_addColorOutputIntent(){const A=n("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","base64"),t=this.ref({Length:A.length,N:3});t.write(A),t.end();const e=this.ref({Type:"OutputIntent",S:"GTS_PDFA1",Info:new String("sRGB IEC61966-2.1"),OutputConditionIdentifier:new String("sRGB IEC61966-2.1"),DestOutputProfile:t});e.end(),this._root.data.OutputIntents=[e]},_getPdfaid(){return`\n \n ${this.subset}\n ${this.subset_conformance}\n \n `},_addPdfaMetadata(){this.appendXML(this._getPdfaid())}},Ct={initPDFUA(){this.subset=1},endSubset(){this._addPdfuaMetadata()},_addPdfuaMetadata(){this.appendXML(this._getPdfuaid())},_getPdfuaid(){return`\n \n ${this.subset}\n \n `}},dt={_importSubset(A){Object.assign(this,A)},initSubset(A){switch(A.subset){case"PDF/A-1":case"PDF/A-1a":case"PDF/A-1b":case"PDF/A-2":case"PDF/A-2a":case"PDF/A-2b":case"PDF/A-3":case"PDF/A-3a":case"PDF/A-3b":this._importSubset(ft),this.initPDFA(A.subset);break;case"PDF/UA":this._importSubset(Ct),this.initPDFUA()}}};const Mt=["height","minHeight","maxHeight"],Dt=["width","minWidth","maxWidth"];function It(A,t){const e=new Map;return function(){const n=arguments.length<=0?void 0:arguments[0];return e.has(n)||(e.set(n,A(...arguments)),e.size>t&&e.delete(e.keys().next())),e.get(n)}}function pt(A){return A&&"object"==typeof A&&!Array.isArray(A)}function yt(A){if(!pt(A))return A;A=Ft(A);for(var t=arguments.length,e=new Array(t>1?t-1:0),n=1;n{let t=A[0];return Mt.includes(t)}))),n=Object.fromEntries(Object.entries(t).filter((A=>{let t=A[0];return Dt.includes(t)})));return t.padding=Y(t.padding),t.border=Y(t.border),t.borderColor=Y(t.borderColor),t.align=bt(t.align),{defaultStyle:t,defaultRowStyle:e,defaultColStyle:n}}(t.defaultStyle),r=n.defaultStyle,i=n.defaultColStyle,s=n.defaultRowStyle;let o,a;this._defaultStyle=r,t.columnStyles&&(Array.isArray(t.columnStyles)?o=A=>t.columnStyles[A]:"function"==typeof t.columnStyles?o=It((A=>t.columnStyles(A)),1/0):"object"==typeof t.columnStyles&&(o=()=>t.columnStyles)),o||(o=()=>({})),this._colStyle=mt.bind(this,i,o),t.rowStyles&&(Array.isArray(t.rowStyles)?a=A=>t.rowStyles[A]:"function"==typeof t.rowStyles?a=It((A=>t.rowStyles(A)),10):"object"==typeof t.rowStyles&&(a=()=>t.rowStyles)),a||(a=()=>({})),this._rowStyle=Yt.bind(this,s,a)}function zt(A,t,e){const n=this._colStyle(e);let r=this._rowStyle(t);const i=yt({},n.font,r.font,A.font),s=Object.values(i).filter((A=>null!=A)).length>0,o=this.document,a=o._fontSource,B=o._fontSize,g=o._fontFamily;s&&(i.src&&o.font(i.src,i.family),i.size&&o.fontSize(i.size),r=this._rowStyle(t)),A.padding=Y(A.padding),A.border=Y(A.border),A.borderColor=Y(A.borderColor);const c=yt(this._defaultStyle,n,r,A);var l;return c.rowIndex=t,c.colIndex=e,c.font=i??{},c.customFont=s,c.text=(null!=(l=c.text)&&(l=`${l}`),l),c.rowSpan=c.rowSpan??1,c.colSpan=c.colSpan??1,c.padding=Y(c.padding,"0.25em",(A=>o.sizeToPoint(A,"0.25em"))),c.border=Y(c.border,1,(A=>o.sizeToPoint(A,1))),c.borderColor=Y(c.borderColor,"black",(A=>A??"black")),c.align=bt(c.align),c.align.x=c.align.x??"left",c.align.y=c.align.y??"top",c.textStroke=o.sizeToPoint(c.textStroke,0),c.textStrokeColor=c.textStrokeColor??"black",c.textColor=c.textColor??"black",c.textOptions=c.textOptions??{},c.id=new String(c.id??`${this._id}-${t}-${e}`),c.type="TH"===c.type?.toUpperCase()?"TH":"TD",c.scope&&(c.scope=c.scope.toLowerCase(),"row"===c.scope?c.scope="Row":"both"===c.scope?c.scope="Both":"column"===c.scope&&(c.scope="Column")),"boolean"==typeof this.opts.debug&&(c.debug=this.opts.debug),s&&o.font(a,g,B),c}function Ut(A,t){this._cellClaim||(this._cellClaim=new Set);let e=0;return A.map((A=>{for(null!=A&&"object"==typeof A||(A={text:A});this._cellClaim.has(`${t},${e}`);)e++;A=zt.call(this,A,t,e);for(let n=0;nA+t.colSpan),0)),this._rowHeights=[],this._rowYPos=[this._position.y],this._rowBuffer=new Set}function xt(A){let t=[],e=0,n=this._maxWidth;for(let r=0;rA+1),0);e>=n?t.forEach(((A,t)=>{this._columnWidths[t]=A.minWidth})):r>0&&t.forEach(((A,t)=>{let e=n/r;this._columnWidths[t]=Math.max(e,A.minWidth),A.maxWidth>0&&(this._columnWidths[t]=Math.min(this._columnWidths[t],A.maxWidth)),n-=this._columnWidths[t],r--}));let i=this._position.x;this._columnXPos=Array.from(this._columnWidths,(A=>{const t=i;return i+=A,t}))}function Nt(A,t){A.forEach((A=>this._rowBuffer.add(A))),t>0&&(this._rowYPos[t]=this._rowYPos[t-1]+this._rowHeights[t-1]);const e=this._rowStyle(t);let n=[];this._rowBuffer.forEach((A=>{A.rowIndex+A.rowSpan-1===t&&(n.push(Rt.call(this,A,e.height)),this._rowBuffer.delete(A))}));let r=e.height;"auto"===r&&(r=n.reduce(((A,t)=>{let e=t.textBounds.height+t.padding.top+t.padding.bottom;for(let A=0;A0&&(r=Math.min(r,e.maxHeight)),this._rowHeights[t]=r;let i=!1;return r>this.document.page.contentHeight?(console.warn(new Error(`Row ${t} requested more than the safe page height, row has been clamped`).stack.slice(7)),this._rowHeights[t]=this.document.page.maxY()-this._rowYPos[t]):this._rowYPos[t]+r>=this.document.page.maxY()&&(this._rowYPos[t]=this.document.page.margins.top,i=!0),{newPage:i,toRender:n.map((A=>Rt.call(this,A,r)))}}function Rt(A,t){let e=0;for(let t=0;t180&&A<270?(n=t/(2*i),r=t/(2*s)):(r=t/(2*i),n=t/(2*s));if(s*n+i*r>e){const o=i*i-s*s;0===A||180===A?(n=t,r=e):90===A||270===A?(n=e,r=t):A<90||A>180&&A<270?(n=(t*i-e*s)/o,r=(e*i-t*s)/o):(r=(t*i-e*s)/o,n=(e*i-t*s)/o)}return{width:Math.abs(n),height:Math.abs(r)}}(s,r,i),a=o.width,B=o.height,g={align:A.align.x,ellipsis:!0,stroke:A.textStroke>0,fill:!0,width:a,height:B,rotation:s,...A.textOptions};let c={x:0,y:0,width:0,height:0};if(A.text){const t=this.document._fontSource,e=this.document._fontSize,n=this.document._fontFamily;A.font?.src&&this.document.font(A.font.src,A.font?.family),A.font?.size&&this.document.fontSize(A.font.size);const r=this.document.boundsOfString(A.text,0,0,{...g,rotation:0});g.width=r.width,g.height=r.height,c=this.document.boundsOfString(A.text,0,0,g),this.document.font(t,n,e)}return{...A,textOptions:g,x:this._columnXPos[A.colIndex],y:this._rowYPos[A.rowIndex],textX:this._columnXPos[A.colIndex]+A.padding.left,textY:this._rowYPos[A.rowIndex]+A.padding.top,width:e,height:n,textAllocatedHeight:i,textAllocatedWidth:r,textBounds:c}}function Gt(){const A=this.opts.structParent;A&&(this._tableStruct=this.document.struct("Table"),this._tableStruct.dictionary.data.ID=this._id,A instanceof ot?A.add(this._tableStruct):A instanceof Xt&&A.addStructure(this._tableStruct),this._headerRowLookup={},this._headerColumnLookup={})}function St(){this._tableStruct&&this._tableStruct.end()}function Tt(A,t,e){const n=this.document.struct("TR");n.dictionary.data.ID=new String(`${this._id}-${t}`),this._tableStruct.add(n),A.forEach((A=>e(A,n))),n.end()}function Ht(A,t,e){const n=this.document,r=n.struct(A.type,{title:A.title});r.dictionary.data.ID=A.id,t.add(r);const i=A.padding,s=A.border,o={O:"Table",Width:A.width,Height:A.height,Padding:[i.top,i.bottom,i.left,i.right],RowSpan:A.rowSpan>1?A.rowSpan:void 0,ColSpan:A.colSpan>1?A.colSpan:void 0,BorderThickness:[s.top,s.bottom,s.left,s.right]};if("TH"===A.type){if("Row"===A.scope||"Both"===A.scope){for(let t=0;tthis._headerColumnLookup[A.colIndex+e])).flat(),...Array.from({length:A.rowSpan},((t,e)=>this._headerRowLookup[A.rowIndex+e])).flat()].filter(Boolean));a.size&&(o.Headers=Array.from(a));const B=n._normalizeColor;null!=A.backgroundColor&&(o.BackgroundColor=B(A.backgroundColor));const g=[s.top,s.bottom,s.left,s.right];if(g.some((A=>A))){const t=A.borderColor;o.BorderColor=[g[0]?B(t.top):null,g[1]?B(t.bottom):null,g[2]?B(t.left):null,g[3]?B(t.right):null]}Object.keys(o).forEach((A=>void 0===o[A]&&delete o[A])),r.dictionary.data.A=n.ref(o),r.add(e),r.end(),r.dictionary.data.A.end()}function kt(A,t){return this._tableStruct?Tt.call(this,A,t,Lt.bind(this)):A.forEach((A=>Lt.call(this,A))),this._rowYPos[t]+this._rowHeights[t]}function Lt(A,t){const e=()=>{null!=A.backgroundColor&&this.document.save().fillColor(A.backgroundColor).rect(A.x,A.y,A.width,A.height).fill().restore(),Jt.call(this,A.border,A.borderColor,A.x,A.y,A.width,A.height),A.debug&&(this.document.save(),this.document.dash(1,{space:1}).lineWidth(1).strokeOpacity(.3),this.document.rect(A.x,A.y,A.width,A.height).stroke("green"),this.document.restore()),A.text&&jt.call(this,A)};t?Ht.call(this,A,t,e):e()}function jt(A){const t=this.document,e=t._fontSource,n=t._fontSize,r=t._fontFamily;A.customFont&&(A.font.src&&t.font(A.font.src,A.font.family),A.font.size&&t.fontSize(A.font.size));const i=A.textX,s=A.textY,o=A.textAllocatedHeight,a=A.textAllocatedWidth,B=A.textBounds.width,g=A.textBounds.height,c=-A.textBounds.x,l=-A.textBounds.y,w=(a-B)*("right"===A.align.x?1:"center"===A.align.x?.5:0),E=(o-g)*("bottom"===A.align.y?1:"center"===A.align.y?.5:0),h=w+c,Q=E+l;A.debug&&(t.save(),t.dash(1,{space:1}).lineWidth(1).strokeOpacity(.3),A.text&&t.moveTo(i+w,s).lineTo(i+w,s+o).moveTo(i+w+B,s).lineTo(i+w+B,s+o).stroke("blue").moveTo(i,s+E).lineTo(i+a,s+E).moveTo(i,s+E+g).lineTo(i+a,s+E+g).stroke("green"),t.rect(i,s,a,o).stroke("orange"),t.restore()),t.save().rect(i,s,a,o).clip(),t.fillColor(A.textColor).strokeColor(A.textStrokeColor),A.textStroke>0&&t.lineWidth(A.textStroke),t.text(A.text,i+h,s+Q,A.textOptions),t.restore(),A.font&&t.font(e,r,n)}function Jt(A,t,e,n,r,i,s){A=Object.fromEntries(Object.entries(A).map((A=>{let t=A[0],e=A[1];return[t,s&&!s[t]?0:e]})));const o=this.document;[A.right,A.bottom,A.left].every((t=>t===A.top))?A.top>0&&o.save().lineWidth(A.top).strokeColor(t.top).rect(e,n,r,i).stroke().restore():(A.top>0&&o.save().lineWidth(A.top).moveTo(e,n).strokeColor(t.top).lineTo(e+r,n).stroke().restore(),A.right>0&&o.save().lineWidth(A.right).moveTo(e+r,n).strokeColor(t.right).lineTo(e+r,n+i).stroke().restore(),A.bottom>0&&o.save().lineWidth(A.bottom).moveTo(e+r,n+i).strokeColor(t.bottom).lineTo(e,n+i).stroke().restore(),A.left>0&&o.save().lineWidth(A.left).moveTo(e,n+i).strokeColor(t.left).lineTo(e,n).stroke().restore())}class Ot{constructor(A){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.document=A,this.opts=Object.freeze(t),vt.call(this),Gt.call(this),this._currRowIndex=0,this._ended=!1,t.data){for(const A of t.data)this.row(A);return this.end()}}row(A){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this._ended)throw new Error(`Table was marked as ended on row ${this._currRowIndex}`);A=Array.from(A),A=Ut.call(this,A,this._currRowIndex),0===this._currRowIndex&&Pt.call(this,A);const e=Nt.call(this,A,this._currRowIndex),n=e.newPage,r=e.toRender;n&&this.document.continueOnNewPage();const i=kt.call(this,r,this._currRowIndex);return this.document.x=this._position.x,this.document.y=i,t?this.end():(this._currRowIndex++,this)}end(){for(;this._rowBuffer?.size;)this.row([]);return this._ended=!0,St.call(this),this.document}}var Wt={initTables(){this._tableIndex=0},table(A){return new Ot(this,A)}};class Kt{constructor(){this._metadata='\n \n \n \n '}_closeTags(){this._metadata=this._metadata.concat('\n \n \n \n ')}append(A){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._metadata=this._metadata.concat(A),t&&(this._metadata=this._metadata.concat("\n"))}getXML(){return this._metadata}getLength(){return this._metadata.length}end(){this._closeTags(),this._metadata=this._metadata.trim()}}var Vt={initMetadata(){this.metadata=new Kt},appendXML(A){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.metadata.append(A,t)},_addInfo(){this.appendXML(`\n \n ${this.info.CreationDate.toISOString().split(".")[0]+"Z"}\n ${this.info.Creator}\n \n `),(this.info.Title||this.info.Author||this.info.Subject)&&(this.appendXML('\n \n '),this.info.Title&&this.appendXML(`\n \n \n ${this.info.Title}\n \n \n `),this.info.Author&&this.appendXML(`\n \n \n ${this.info.Author}\n \n \n `),this.info.Subject&&this.appendXML(`\n \n \n ${this.info.Subject}\n \n \n `),this.appendXML("\n \n ")),this.appendXML(`\n \n ${this.info.Creator}`,!1),this.info.Keywords&&this.appendXML(`\n ${this.info.Keywords}`,!1),this.appendXML("\n \n ")},endMetadata(){this._addInfo(),this.metadata.end(),1.3!=this.version&&(this.metadataRef=this.ref({length:this.metadata.getLength(),Type:"Metadata",Subtype:"XML"}),this.metadataRef.compress=!1,this.metadataRef.write(n.from(this.metadata.getXML(),"utf-8")),this.metadataRef.end(),this._root.data.Metadata=this.metadataRef)}};class Xt extends r.default.Readable{constructor(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch(super(A),this.options=A,A.pdfVersion){case"1.4":this.version=1.4;break;case"1.5":this.version=1.5;break;case"1.6":this.version=1.6;break;case"1.7":case"1.7ext3":this.version=1.7;break;default:this.version=1.3}this.compress=null==this.options.compress||this.options.compress,this._pageBuffer=[],this._pageBufferStart=0,this._offsets=[],this._waiting=0,this._ended=!1,this._offset=0;const t=this.ref({Type:"Pages",Count:0,Kids:[]}),e=this.ref({Dests:new x});if(this._root=this.ref({Type:"Catalog",Pages:t,Names:e}),this.options.lang&&(this._root.data.Lang=new String(this.options.lang)),this.options.pageLayout){const A=this.options.pageLayout;this._root.data.PageLayout=A.charAt(0).toUpperCase()+A.slice(1)}if(this.page=null,this.initMetadata(),this.initColor(),this.initVector(),this.initFonts(A.font),this.initText(),this.initImages(),this.initOutline(),this.initMarkings(A),this.initTables(),this.initSubset(A),this.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},this.options.info)for(let A in this.options.info){const t=this.options.info[A];this.info[A]=t}this.options.displayTitle&&(this._root.data.ViewerPreferences=this.ref({DisplayDocTitle:!0})),this._id=AA.generateFileID(this.info),this._security=AA.create(this,A),this._write(`%PDF-${this.version}`),this._write("%ÿÿÿÿ"),!1!==this.options.autoFirstPage&&this.addPage()}addPage(A){null==A&&(A=this.options),this.options.bufferPages||this.flushPages(),this.page=new P(this,A),this._pageBuffer.push(this.page);const t=this._root.data.Pages.data;return t.Kids.push(this.page.dictionary),t.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}continueOnNewPage(A){const t=this.endPageMarkings(this.page);return this.addPage(A??this.page._options),this.initPageMarkings(t),this}bufferedPageRange(){return{start:this._pageBufferStart,count:this._pageBuffer.length}}switchToPage(A){let t;if(!(t=this._pageBuffer[A-this._pageBufferStart]))throw new Error(`switchToPage(${A}) out of bounds, current buffer covers pages ${this._pageBufferStart} to ${this._pageBufferStart+this._pageBuffer.length-1}`);return this.page=t}flushPages(){const A=this._pageBuffer;this._pageBuffer=[],this._pageBufferStart+=A.length;for(let t of A)this.endPageMarkings(t),t.end()}addNamedDestination(A){for(var t=arguments.length,e=new Array(t>1?t-1:0),n=1;n{Object.assign(Xt.prototype,A)};Zt(Vt),Zt(hA),Zt(NA),Zt(OA),Zt(VA),Zt(At),Zt(et),Zt(it),Zt(Bt),Zt(Qt),Zt(ut),Zt(dt),Zt(Wt),Xt.LineWrapper=WA},6092(A,t,e){var n=e(2736),r=e(2022);void 0===r.pdfMake&&(r.pdfMake=n),A.exports=n},656(A,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polyval=t.ghash=void 0,t._toGHASHKey=a;const n=e(5181),r=16,i=new Uint8Array(16),s=(0,n.u32)(i),o=A=>(A>>>0&255)<<24|(A>>>8&255)<<16|(A>>>16&255)<<8|A>>>24&255;function a(A){A.reverse();const t=1&A[15];let e=0;for(let t=0;t>>1|e,e=(1&n)<<7}return A[0]^=225&-t,A}class B{constructor(A,t){this.blockLen=r,this.outputLen=r,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,A=(0,n.toBytes)(A),(0,n.abytes)(A,16);const e=(0,n.createView)(A);let i=e.getUint32(0,!1),s=e.getUint32(4,!1),a=e.getUint32(8,!1),B=e.getUint32(12,!1);const g=[];for(let A=0;A<128;A++)g.push({s0:o(i),s1:o(s),s2:o(a),s3:o(B)}),({s0:i,s1:s,s2:a,s3:B}={s3:(w=a)<<31|(E=B)>>>1,s2:(l=s)<<31|w>>>1,s1:(c=i)<<31|l>>>1,s0:c>>>1^225<<24&-(1&E)});var c,l,w,E;const h=(Q=t||1024)>65536?8:Q>1024?4:2;var Q;if(![1,2,4,8].includes(h))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=h;const u=128/h,f=this.windowSize=2**h,C=[];for(let A=0;A>>h-s-1&1))continue;const{s0:o,s1:a,s2:B,s3:c}=g[h*A+s];e^=o,n^=a,r^=B,i^=c}C.push({s0:e,s1:n,s2:r,s3:i})}this.t=C}_updateBlock(A,t,e,n){A^=this.s0,t^=this.s1,e^=this.s2,n^=this.s3;const{W:r,t:i,windowSize:s}=this;let o=0,a=0,B=0,g=0;const c=(1<>>8*A&255;for(let A=8/r-1;A>=0;A--){const e=t>>>r*A&c,{s0:n,s1:w,s2:E,s3:h}=i[l*s+e];o^=n,a^=w,B^=E,g^=h,l+=1}}this.s0=o,this.s1=a,this.s2=B,this.s3=g}update(A){(0,n.aexists)(this),A=(0,n.toBytes)(A),(0,n.abytes)(A);const t=(0,n.u32)(A),e=Math.floor(A.length/r),o=A.length%r;for(let A=0;AA(e,t.length).update((0,n.toBytes)(t)).digest(),e=A(new Uint8Array(16),0);return t.outputLen=e.outputLen,t.blockLen=e.blockLen,t.create=(t,e)=>A(t,e),t}t.ghash=c(((A,t)=>new B(A,t))),t.polyval=c(((A,t)=>new g(A,t)))},2651(A,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unsafe=t.aeskwp=t.aeskw=t.siv=t.gcmsiv=t.gcm=t.cfb=t.cbc=t.ecb=t.ctr=void 0;const n=e(656),r=e(5181),i=16,s=new Uint8Array(i);function o(A){return A<<1^283&-(A>>7)}function a(A,t){let e=0;for(;t>0;t>>=1)e^=A&-(1&t),A=o(A);return e}const B=(()=>{const A=new Uint8Array(256);for(let t=0,e=1;t<256;t++,e^=o(e))A[t]=e;const t=new Uint8Array(256);t[0]=99;for(let e=0;e<255;e++){let n=A[255-e];n|=n<<8,t[A[e]]=255&(n^n>>4^n>>5^n>>6^n>>7^99)}return(0,r.clean)(A),t})(),g=B.map(((A,t)=>B.indexOf(t))),c=A=>A<<8|A>>>24,l=A=>A<<24&4278190080|A<<8&16711680|A>>>8&65280|A>>>24&255;function w(A,t){if(256!==A.length)throw new Error("Wrong sbox length");const e=new Uint32Array(256).map(((e,n)=>t(A[n]))),n=e.map(c),r=n.map(c),i=r.map(c),s=new Uint32Array(65536),o=new Uint32Array(65536),a=new Uint16Array(65536);for(let t=0;t<256;t++)for(let B=0;B<256;B++){const g=256*t+B;s[g]=e[t]^n[B],o[g]=r[t]^i[B],a[g]=A[t]<<8|A[B]}return{sbox:A,sbox2:a,T0:e,T1:n,T2:r,T3:i,T01:s,T23:o}}const E=w(B,(A=>a(A,3)<<24|A<<16|A<<8|a(A,2))),h=w(g,(A=>a(A,11)<<24|a(A,13)<<16|a(A,9)<<8|a(A,14))),Q=(()=>{const A=new Uint8Array(16);for(let t=0,e=1;t<16;t++,e=o(e))A[t]=e;return A})();function u(A){(0,r.abytes)(A);const t=A.length;if(![16,24,32].includes(t))throw new Error("aes: invalid key size, should be 16, 24 or 32, got "+t);const{sbox2:e}=E,n=[];(0,r.isAligned32)(A)||n.push(A=(0,r.copyBytes)(A));const i=(0,r.u32)(A),s=i.length,o=A=>d(e,A,A,A,A),a=new Uint32Array(t+28);a.set(i);for(let A=s;A>>8)^Q[A/s-1]:s>6&&A%s==4&&(t=o(t)),a[A]=a[A-s]^t}var B;return(0,r.clean)(...n),a}function f(A){const t=u(A),e=t.slice(),n=t.length,{sbox2:i}=E,{T0:s,T1:o,T2:a,T3:B}=h;for(let A=0;A>>8&255]^a[n>>>16&255]^B[n>>>24]}return e}function C(A,t,e,n,r,i){return A[e<<8&65280|n>>>8&255]^t[r>>>8&65280|i>>>24&255]}function d(A,t,e,n,r){return A[255&t|65280&e]|A[n>>>16&255|r>>>16&65280]<<16}function M(A,t,e,n,r){const{sbox2:i,T01:s,T23:o}=E;let a=0;t^=A[a++],e^=A[a++],n^=A[a++],r^=A[a++];const B=A.length/4-2;for(let i=0;i=0;A--)e=e+(255&o[A])|0,o[A]=255&e,e>>>=8;({s0:B,s1:g,s2:c,s3:l}=M(A,a[0],a[1],a[2],a[3]))}const h=i*Math.floor(w.length/4);if(h>>0,B.setUint32(l,E,t),({s0:h,s1:Q,s2:u,s3:f}=M(A,a[0],a[1],a[2],a[3]));const C=i*Math.floor(g.length/4);if(C16)throw new Error("aes/pcks5: wrong padding");const r=A.subarray(0,-n);for(let t=0;te(A,t),decrypt:(A,t)=>e(A,t)}})),t.ecb=(0,r.wrapCipher)({blockSize:16},(function(A,t={}){const e=!t.disablePadding;return{encrypt(t,n){const{b:i,o:s,out:o}=F(t,e,n),a=u(A);let B=0;for(;B+4<=i.length;){const{s0:A,s1:t,s2:e,s3:n}=M(a,i[B+0],i[B+1],i[B+2],i[B+3]);s[B++]=A,s[B++]=t,s[B++]=e,s[B++]=n}if(e){const A=m(t.subarray(4*B)),{s0:e,s1:n,s2:r,s3:i}=M(a,A[0],A[1],A[2],A[3]);s[B++]=e,s[B++]=n,s[B++]=r,s[B++]=i}return(0,r.clean)(a),o},decrypt(t,n){y(t);const i=f(A);n=(0,r.getOutput)(t.length,n);const s=[i];(0,r.isAligned32)(t)||s.push(t=(0,r.copyBytes)(t)),(0,r.complexOverlapBytes)(t,n);const o=(0,r.u32)(t),a=(0,r.u32)(n);for(let A=0;A+4<=o.length;){const{s0:t,s1:e,s2:n,s3:r}=D(i,o[A+0],o[A+1],o[A+2],o[A+3]);a[A++]=t,a[A++]=e,a[A++]=n,a[A++]=r}return(0,r.clean)(...s),Y(n,e)}}})),t.cbc=(0,r.wrapCipher)({blockSize:16,nonceLength:16},(function(A,t,e={}){const n=!e.disablePadding;return{encrypt(e,i){const s=u(A),{b:o,o:a,out:B}=F(e,n,i);let g=t;const c=[s];(0,r.isAligned32)(g)||c.push(g=(0,r.copyBytes)(g));const l=(0,r.u32)(g);let w=l[0],E=l[1],h=l[2],Q=l[3],f=0;for(;f+4<=o.length;)w^=o[f+0],E^=o[f+1],h^=o[f+2],Q^=o[f+3],({s0:w,s1:E,s2:h,s3:Q}=M(s,w,E,h,Q)),a[f++]=w,a[f++]=E,a[f++]=h,a[f++]=Q;if(n){const A=m(e.subarray(4*f));w^=A[0],E^=A[1],h^=A[2],Q^=A[3],({s0:w,s1:E,s2:h,s3:Q}=M(s,w,E,h,Q)),a[f++]=w,a[f++]=E,a[f++]=h,a[f++]=Q}return(0,r.clean)(...c),B},decrypt(e,i){y(e);const s=f(A);let o=t;const a=[s];(0,r.isAligned32)(o)||a.push(o=(0,r.copyBytes)(o));const B=(0,r.u32)(o);i=(0,r.getOutput)(e.length,i),(0,r.isAligned32)(e)||a.push(e=(0,r.copyBytes)(e)),(0,r.complexOverlapBytes)(e,i);const g=(0,r.u32)(e),c=(0,r.u32)(i);let l=B[0],w=B[1],E=B[2],h=B[3];for(let A=0;A+4<=g.length;){const t=l,e=w,n=E,r=h;l=g[A+0],w=g[A+1],E=g[A+2],h=g[A+3];const{s0:i,s1:o,s2:a,s3:B}=D(s,l,w,E,h);c[A++]=i^t,c[A++]=o^e,c[A++]=a^n,c[A++]=B^r}return(0,r.clean)(...a),Y(i,n)}}})),t.cfb=(0,r.wrapCipher)({blockSize:16,nonceLength:16},(function(A,t){function e(e,n,s){(0,r.abytes)(e);const o=e.length;if(s=(0,r.getOutput)(o,s),(0,r.overlapBytes)(e,s))throw new Error("overlapping src and dst not supported.");const a=u(A);let B=t;const g=[a];(0,r.isAligned32)(B)||g.push(B=(0,r.copyBytes)(B)),(0,r.isAligned32)(e)||g.push(e=(0,r.copyBytes)(e));const c=(0,r.u32)(e),l=(0,r.u32)(s),w=n?l:c,E=(0,r.u32)(B);let h=E[0],Q=E[1],f=E[2],C=E[3];for(let A=0;A+4<=c.length;){const{s0:t,s1:e,s2:n,s3:r}=M(a,h,Q,f,C);l[A+0]=c[A+0]^t,l[A+1]=c[A+1]^e,l[A+2]=c[A+2]^n,l[A+3]=c[A+3]^r,h=w[A++],Q=w[A++],f=w[A++],C=w[A++]}const d=i*Math.floor(c.length/4);if(de(A,!0,t),decrypt:(A,t)=>e(A,!1,t)}})),t.gcm=(0,r.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},(function(A,t,e){if(t.length<8)throw new Error("aes/gcm: invalid nonce length");function i(A,t,r){const i=b(n.ghash,!1,A,r,e);for(let A=0;An=>{if(!Number.isSafeInteger(n)||t>n||n>e)throw new Error(A+": expected value in range ["+t+".."+e+"], got "+n)};function z(A){return A instanceof Uint32Array||ArrayBuffer.isView(A)&&"Uint32Array"===A.constructor.name}function U(A,t){if((0,r.abytes)(t,16),!z(A))throw new Error("_encryptBlock accepts result of expandKeyLE");const e=(0,r.u32)(t);let{s0:n,s1:i,s2:s,s3:o}=M(A,e[0],e[1],e[2],e[3]);return e[0]=n,e[1]=i,e[2]=s,e[3]=o,t}function P(A,t){if((0,r.abytes)(t,16),!z(A))throw new Error("_decryptBlock accepts result of expandKeyLE");const e=(0,r.u32)(t);let{s0:n,s1:i,s2:s,s3:o}=D(A,e[0],e[1],e[2],e[3]);return e[0]=n,e[1]=i,e[2]=s,e[3]=o,t}t.gcmsiv=(0,r.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},(function(A,t,e){const i=v("AAD",0,2**36),s=v("plaintext",0,2**36),o=v("nonce",12,12),a=v("ciphertext",16,2**36+16);function B(){const e=u(A),n=new Uint8Array(A.length),i=new Uint8Array(16),s=[e,n];let o=t;(0,r.isAligned32)(o)||s.push(o=(0,r.copyBytes)(o));const a=(0,r.u32)(o);let B=0,g=a[0],c=a[1],l=a[2],w=0;for(const A of[i,n].map(r.u32)){const t=(0,r.u32)(A);for(let A=0;A=2**32)throw new Error("plaintext should be less than 4gb");const e=u(A);if(16===t.length)U(e,t);else{const A=(0,r.u32)(t);let n=A[0],i=A[1];for(let t=0,r=1;t<6;t++)for(let t=2;t=2**32)throw new Error("ciphertext should be less than 4gb");const e=f(A),n=t.length/8-1;if(1===n)P(e,t);else{const A=(0,r.u32)(t);let i=A[0],s=A[1];for(let t=0,r=6*n;t<6;t++)for(let t=2*n;t>=1;t-=2,r--){s^=l(r);const{s0:n,s1:o,s2:a,s3:B}=D(e,i,s,A[t],A[t+1]);i=n,s=o,A[t]=a,A[t+1]=B}A[0]=i,A[1]=s}e.fill(0)}},N=new Uint8Array(8).fill(166);t.aeskw=(0,r.wrapCipher)({blockSize:8},(A=>({encrypt(t){if(!t.length||t.length%8!=0)throw new Error("invalid plaintext length");if(8===t.length)throw new Error("8-byte keys not allowed in AESKW, use AESKWP instead");const e=(0,r.concatBytes)(N,t);return x.encrypt(A,e),e},decrypt(t){if(t.length%8!=0||t.length<24)throw new Error("invalid ciphertext length");const e=(0,r.copyBytes)(t);if(x.decrypt(A,e),!(0,r.equalBytes)(e.subarray(0,8),N))throw new Error("integrity check failed");return e.subarray(0,8).fill(0),e.subarray(8)}})));const R=2790873510;t.aeskwp=(0,r.wrapCipher)({blockSize:8},(A=>({encrypt(t){if(!t.length)throw new Error("invalid plaintext length");const e=8*Math.ceil(t.length/8),n=new Uint8Array(8+e);n.set(t,8);const i=(0,r.u32)(n);return i[0]=R,i[1]=l(t.length),x.encrypt(A,n),n},decrypt(t){if(t.length<16)throw new Error("invalid ciphertext length");const e=(0,r.copyBytes)(t),n=(0,r.u32)(e);x.decrypt(A,e);const i=l(n[1])>>>0,s=8*Math.ceil(i/8);if(n[0]!==R||e.length-8!==s)throw new Error("integrity check failed");for(let A=i;A0&&!t.includes(A.length))throw new Error("Uint8Array expected of length "+t+", got length="+A.length)}function s(A){return new DataView(A.buffer,A.byteOffset,A.byteLength)}Object.defineProperty(t,"__esModule",{value:!0}),t.wrapCipher=t.Hash=t.nextTick=t.isLE=void 0,t.isBytes=e,t.abool=n,t.anumber=r,t.abytes=i,t.ahash=function(A){if("function"!=typeof A||"function"!=typeof A.create)throw new Error("Hash should be wrapped by utils.createHasher");r(A.outputLen),r(A.blockLen)},t.aexists=function(A,t=!0){if(A.destroyed)throw new Error("Hash instance has been destroyed");if(t&&A.finished)throw new Error("Hash#digest() has already been called")},t.aoutput=function(A,t){i(A);const e=t.outputLen;if(A.length"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),a=Array.from({length:256},((A,t)=>t.toString(16).padStart(2,"0")));function B(A){if(i(A),o)return A.toHex();let t="";for(let e=0;e=48&&A<=57?A-48:A>=65&&A<=70?A-55:A>=97&&A<=102?A-87:void 0}function c(A){if("string"!=typeof A)throw new Error("hex string expected, got "+typeof A);if(o)return Uint8Array.fromHex(A);const t=A.length,e=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(e);for(let t=0,r=0;t>r&i),o=Number(e&i),a=n?4:0,B=n?0:4;A.setUint32(t+a,s,n),A.setUint32(t+B,o,n)}function Q(A){return A.byteOffset%4==0}function u(A){return Uint8Array.from(A)}t.nextTick=async()=>{},t.Hash=class{},t.wrapCipher=(A,e)=>{function n(n,...r){if(i(n),!t.isLE)throw new Error("Non little-endian hardware is not yet supported");if(void 0!==A.nonceLength){const t=r[0];if(!t)throw new Error("nonce / iv required");A.varSizeNonce?i(t):i(t,A.nonceLength)}const s=A.tagLength;s&&void 0!==r[1]&&i(r[1]);const o=e(n,...r),a=(A,t)=>{if(void 0!==t){if(2!==A)throw new Error("cipher output not supported");i(t)}};let B=!1;return{encrypt(A,t){if(B)throw new Error("cannot encrypt() twice with same key + nonce");return B=!0,i(A),a(o.encrypt.length,t),o.encrypt(A,t)},decrypt(A,t){if(i(A),s&&A.length>r&i),o=Number(e&i),a=n?4:0,B=n?0:4;A.setUint32(t+a,s,n),A.setUint32(t+B,o,n)}class i extends n.Hash{constructor(A,t,e,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=A,this.outputLen=t,this.padOffset=e,this.isLE=r,this.buffer=new Uint8Array(A),this.view=(0,n.createView)(this.buffer)}update(A){(0,n.aexists)(this),A=(0,n.toBytes)(A),(0,n.abytes)(A);const{view:t,buffer:e,blockLen:r}=this,i=A.length;for(let s=0;si-o&&(this.process(e,0),o=0);for(let A=o;Ac.length)throw new Error("_sha2: outputLen bigger than state");for(let A=0;A>n&e)}:{h:0|Number(A>>n&e),l:0|Number(A&e)}}function i(A,t=!1){const e=A.length;let n=new Uint32Array(e),i=new Uint32Array(e);for(let s=0;sBigInt(A>>>0)<>>0);t.toBig=s;const o=(A,t,e)=>A>>>e;t.shrSH=o;const a=(A,t,e)=>A<<32-e|t>>>e;t.shrSL=a;const B=(A,t,e)=>A>>>e|t<<32-e;t.rotrSH=B;const g=(A,t,e)=>A<<32-e|t>>>e;t.rotrSL=g;const c=(A,t,e)=>A<<64-e|t>>>e-32;t.rotrBH=c;const l=(A,t,e)=>A>>>e-32|t<<64-e;t.rotrBL=l;const w=(A,t)=>t;t.rotr32H=w;const E=(A,t)=>A;t.rotr32L=E;const h=(A,t,e)=>A<>>32-e;t.rotlSH=h;const Q=(A,t,e)=>t<>>32-e;t.rotlSL=Q;const u=(A,t,e)=>t<>>64-e;t.rotlBH=u;const f=(A,t,e)=>A<>>64-e;function C(A,t,e,n){const r=(t>>>0)+(n>>>0);return{h:A+e+(r/2**32|0)|0,l:0|r}}t.rotlBL=f;const d=(A,t,e)=>(A>>>0)+(t>>>0)+(e>>>0);t.add3L=d;const M=(A,t,e,n)=>t+e+n+(A/2**32|0)|0;t.add3H=M;const D=(A,t,e,n)=>(A>>>0)+(t>>>0)+(e>>>0)+(n>>>0);t.add4L=D;const I=(A,t,e,n,r)=>t+e+n+r+(A/2**32|0)|0;t.add4H=I;const p=(A,t,e,n,r)=>(A>>>0)+(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0);t.add5L=p;const y=(A,t,e,n,r,i)=>t+e+n+r+i+(A/2**32|0)|0;t.add5H=y;const F={fromBig:r,split:i,toBig:s,shrSH:o,shrSL:a,rotrSH:B,rotrSL:g,rotrBH:c,rotrBL:l,rotr32H:w,rotr32L:E,rotlSH:h,rotlSL:Q,rotlBH:u,rotlBL:f,add:C,add3L:d,add3H:M,add4L:D,add4H:I,add5H:y,add5L:p};t.default=F},2491(A,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},2650(A,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512_224=t.sha512_256=t.sha384=t.sha512=t.sha224=t.sha256=t.SHA512_256=t.SHA512_224=t.SHA384=t.SHA512=t.SHA224=t.SHA256=void 0;const n=e(6784),r=e(4996),i=e(3973),s=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=new Uint32Array(64);class a extends n.HashMD{constructor(A=32){super(64,A,8,!1),this.A=0|n.SHA256_IV[0],this.B=0|n.SHA256_IV[1],this.C=0|n.SHA256_IV[2],this.D=0|n.SHA256_IV[3],this.E=0|n.SHA256_IV[4],this.F=0|n.SHA256_IV[5],this.G=0|n.SHA256_IV[6],this.H=0|n.SHA256_IV[7]}get(){const{A,B:t,C:e,D:n,E:r,F:i,G:s,H:o}=this;return[A,t,e,n,r,i,s,o]}set(A,t,e,n,r,i,s,o){this.A=0|A,this.B=0|t,this.C=0|e,this.D=0|n,this.E=0|r,this.F=0|i,this.G=0|s,this.H=0|o}process(A,t){for(let e=0;e<16;e++,t+=4)o[e]=A.getUint32(t,!1);for(let A=16;A<64;A++){const t=o[A-15],e=o[A-2],n=(0,i.rotr)(t,7)^(0,i.rotr)(t,18)^t>>>3,r=(0,i.rotr)(e,17)^(0,i.rotr)(e,19)^e>>>10;o[A]=r+o[A-7]+n+o[A-16]|0}let{A:e,B:r,C:a,D:B,E:g,F:c,G:l,H:w}=this;for(let A=0;A<64;A++){const t=w+((0,i.rotr)(g,6)^(0,i.rotr)(g,11)^(0,i.rotr)(g,25))+(0,n.Chi)(g,c,l)+s[A]+o[A]|0,E=((0,i.rotr)(e,2)^(0,i.rotr)(e,13)^(0,i.rotr)(e,22))+(0,n.Maj)(e,r,a)|0;w=l,l=c,c=g,g=B+t|0,B=a,a=r,r=e,e=t+E|0}e=e+this.A|0,r=r+this.B|0,a=a+this.C|0,B=B+this.D|0,g=g+this.E|0,c=c+this.F|0,l=l+this.G|0,w=w+this.H|0,this.set(e,r,a,B,g,c,l,w)}roundClean(){(0,i.clean)(o)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,i.clean)(this.buffer)}}t.SHA256=a;class B extends a{constructor(){super(28),this.A=0|n.SHA224_IV[0],this.B=0|n.SHA224_IV[1],this.C=0|n.SHA224_IV[2],this.D=0|n.SHA224_IV[3],this.E=0|n.SHA224_IV[4],this.F=0|n.SHA224_IV[5],this.G=0|n.SHA224_IV[6],this.H=0|n.SHA224_IV[7]}}t.SHA224=B;const g=(()=>r.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((A=>BigInt(A)))))(),c=(()=>g[0])(),l=(()=>g[1])(),w=new Uint32Array(80),E=new Uint32Array(80);class h extends n.HashMD{constructor(A=64){super(128,A,16,!1),this.Ah=0|n.SHA512_IV[0],this.Al=0|n.SHA512_IV[1],this.Bh=0|n.SHA512_IV[2],this.Bl=0|n.SHA512_IV[3],this.Ch=0|n.SHA512_IV[4],this.Cl=0|n.SHA512_IV[5],this.Dh=0|n.SHA512_IV[6],this.Dl=0|n.SHA512_IV[7],this.Eh=0|n.SHA512_IV[8],this.El=0|n.SHA512_IV[9],this.Fh=0|n.SHA512_IV[10],this.Fl=0|n.SHA512_IV[11],this.Gh=0|n.SHA512_IV[12],this.Gl=0|n.SHA512_IV[13],this.Hh=0|n.SHA512_IV[14],this.Hl=0|n.SHA512_IV[15]}get(){const{Ah:A,Al:t,Bh:e,Bl:n,Ch:r,Cl:i,Dh:s,Dl:o,Eh:a,El:B,Fh:g,Fl:c,Gh:l,Gl:w,Hh:E,Hl:h}=this;return[A,t,e,n,r,i,s,o,a,B,g,c,l,w,E,h]}set(A,t,e,n,r,i,s,o,a,B,g,c,l,w,E,h){this.Ah=0|A,this.Al=0|t,this.Bh=0|e,this.Bl=0|n,this.Ch=0|r,this.Cl=0|i,this.Dh=0|s,this.Dl=0|o,this.Eh=0|a,this.El=0|B,this.Fh=0|g,this.Fl=0|c,this.Gh=0|l,this.Gl=0|w,this.Hh=0|E,this.Hl=0|h}process(A,t){for(let e=0;e<16;e++,t+=4)w[e]=A.getUint32(t),E[e]=A.getUint32(t+=4);for(let A=16;A<80;A++){const t=0|w[A-15],e=0|E[A-15],n=r.rotrSH(t,e,1)^r.rotrSH(t,e,8)^r.shrSH(t,e,7),i=r.rotrSL(t,e,1)^r.rotrSL(t,e,8)^r.shrSL(t,e,7),s=0|w[A-2],o=0|E[A-2],a=r.rotrSH(s,o,19)^r.rotrBH(s,o,61)^r.shrSH(s,o,6),B=r.rotrSL(s,o,19)^r.rotrBL(s,o,61)^r.shrSL(s,o,6),g=r.add4L(i,B,E[A-7],E[A-16]),c=r.add4H(g,n,a,w[A-7],w[A-16]);w[A]=0|c,E[A]=0|g}let{Ah:e,Al:n,Bh:i,Bl:s,Ch:o,Cl:a,Dh:B,Dl:g,Eh:h,El:Q,Fh:u,Fl:f,Gh:C,Gl:d,Hh:M,Hl:D}=this;for(let A=0;A<80;A++){const t=r.rotrSH(h,Q,14)^r.rotrSH(h,Q,18)^r.rotrBH(h,Q,41),I=r.rotrSL(h,Q,14)^r.rotrSL(h,Q,18)^r.rotrBL(h,Q,41),p=h&u^~h&C,y=Q&f^~Q&d,F=r.add5L(D,I,y,l[A],E[A]),Y=r.add5H(F,M,t,p,c[A],w[A]),m=0|F,b=r.rotrSH(e,n,28)^r.rotrBH(e,n,34)^r.rotrBH(e,n,39),v=r.rotrSL(e,n,28)^r.rotrBL(e,n,34)^r.rotrBL(e,n,39),z=e&i^e&o^i&o,U=n&s^n&a^s&a;M=0|C,D=0|d,C=0|u,d=0|f,u=0|h,f=0|Q,({h,l:Q}=r.add(0|B,0|g,0|Y,0|m)),B=0|o,g=0|a,o=0|i,a=0|s,i=0|e,s=0|n;const P=r.add3L(m,v,U);e=r.add3H(P,Y,b,z),n=0|P}({h:e,l:n}=r.add(0|this.Ah,0|this.Al,0|e,0|n)),({h:i,l:s}=r.add(0|this.Bh,0|this.Bl,0|i,0|s)),({h:o,l:a}=r.add(0|this.Ch,0|this.Cl,0|o,0|a)),({h:B,l:g}=r.add(0|this.Dh,0|this.Dl,0|B,0|g)),({h,l:Q}=r.add(0|this.Eh,0|this.El,0|h,0|Q)),({h:u,l:f}=r.add(0|this.Fh,0|this.Fl,0|u,0|f)),({h:C,l:d}=r.add(0|this.Gh,0|this.Gl,0|C,0|d)),({h:M,l:D}=r.add(0|this.Hh,0|this.Hl,0|M,0|D)),this.set(e,n,i,s,o,a,B,g,h,Q,u,f,C,d,M,D)}roundClean(){(0,i.clean)(w,E)}destroy(){(0,i.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=h;class Q extends h{constructor(){super(48),this.Ah=0|n.SHA384_IV[0],this.Al=0|n.SHA384_IV[1],this.Bh=0|n.SHA384_IV[2],this.Bl=0|n.SHA384_IV[3],this.Ch=0|n.SHA384_IV[4],this.Cl=0|n.SHA384_IV[5],this.Dh=0|n.SHA384_IV[6],this.Dl=0|n.SHA384_IV[7],this.Eh=0|n.SHA384_IV[8],this.El=0|n.SHA384_IV[9],this.Fh=0|n.SHA384_IV[10],this.Fl=0|n.SHA384_IV[11],this.Gh=0|n.SHA384_IV[12],this.Gl=0|n.SHA384_IV[13],this.Hh=0|n.SHA384_IV[14],this.Hl=0|n.SHA384_IV[15]}}t.SHA384=Q;const u=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),f=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class C extends h{constructor(){super(28),this.Ah=0|u[0],this.Al=0|u[1],this.Bh=0|u[2],this.Bl=0|u[3],this.Ch=0|u[4],this.Cl=0|u[5],this.Dh=0|u[6],this.Dl=0|u[7],this.Eh=0|u[8],this.El=0|u[9],this.Fh=0|u[10],this.Fl=0|u[11],this.Gh=0|u[12],this.Gl=0|u[13],this.Hh=0|u[14],this.Hl=0|u[15]}}t.SHA512_224=C;class d extends h{constructor(){super(32),this.Ah=0|f[0],this.Al=0|f[1],this.Bh=0|f[2],this.Bl=0|f[3],this.Ch=0|f[4],this.Cl=0|f[5],this.Dh=0|f[6],this.Dl=0|f[7],this.Eh=0|f[8],this.El=0|f[9],this.Fh=0|f[10],this.Fl=0|f[11],this.Gh=0|f[12],this.Gl=0|f[13],this.Hh=0|f[14],this.Hl=0|f[15]}}t.SHA512_256=d,t.sha256=(0,i.createHasher)((()=>new a)),t.sha224=(0,i.createHasher)((()=>new B)),t.sha512=(0,i.createHasher)((()=>new h)),t.sha384=(0,i.createHasher)((()=>new Q)),t.sha512_256=(0,i.createHasher)((()=>new d)),t.sha512_224=(0,i.createHasher)((()=>new C))},7785(A,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.SHA224=t.sha256=t.SHA256=void 0;const n=e(2650);t.SHA256=n.SHA256,t.sha256=n.sha256,t.SHA224=n.SHA224,t.sha224=n.sha224},3973(A,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=r,t.anumber=i,t.abytes=s,t.ahash=function(A){if("function"!=typeof A||"function"!=typeof A.create)throw new Error("Hash should be wrapped by utils.createHasher");i(A.outputLen),i(A.blockLen)},t.aexists=function(A,t=!0){if(A.destroyed)throw new Error("Hash instance has been destroyed");if(t&&A.finished)throw new Error("Hash#digest() has already been called")},t.aoutput=function(A,t){s(A);const e=t.outputLen;if(A.length>>t},t.rotl=function(A,t){return A<>>32-t>>>0},t.byteSwap=o,t.byteSwap32=a,t.bytesToHex=function(A){if(s(A),B)return A.toHex();let t="";for(let e=0;e=0&&A0&&!t.includes(A.length))throw new Error("Uint8Array expected of length "+t+", got length="+A.length)}function o(A){return A<<24&4278190080|A<<8&16711680|A>>>8&65280|A>>>24&255}function a(A){for(let t=0;tA:A=>o(A),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?A=>A:a;const B=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),g=Array.from({length:256},((A,t)=>t.toString(16).padStart(2,"0")));function c(A){return A>=48&&A<=57?A-48:A>=65&&A<=70?A-55:A>=97&&A<=102?A-87:void 0}function l(A){if("string"!=typeof A)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(A))}function w(A){return"string"==typeof A&&(A=l(A)),s(A),A}function E(A){const t=t=>A().update(w(t)).digest(),e=A();return t.outputLen=e.outputLen,t.blockLen=e.blockLen,t.create=()=>A(),t}function h(A){const t=(t,e)=>A(e).update(w(t)).digest(),e=A({});return t.outputLen=e.outputLen,t.blockLen=e.blockLen,t.create=t=>A(t),t}function Q(A){const t=(t,e)=>A(e).update(w(t)).digest(),e=A({});return t.outputLen=e.outputLen,t.blockLen=e.blockLen,t.create=t=>A(t),t}t.nextTick=async()=>{},t.Hash=class{},t.wrapConstructor=E,t.wrapConstructorWithOpts=h,t.wrapXOFConstructorWithOpts=Q},7801(A,t,e){"use strict";var n=e(9964);function r(A){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},r(A)}function i(A,t){for(var e=0;e1?e-1:0),r=1;r1?e-1:0),r=1;r1?e-1:0),r=1;r1?e-1:0),r=1;rA.length)&&(e=A.length),A.substring(e-t.length,e)===t}var C="",d="",M="",D="",I={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function p(A){var t=Object.keys(A),e=Object.create(Object.getPrototypeOf(A));return t.forEach((function(t){e[t]=A[t]})),Object.defineProperty(e,"message",{value:A.message}),e}function y(A){return Q(A,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var F=function(A,t){!function(A,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),t&&w(A,t)}(F,A);var e,r,o,g,c=(e=F,r=l(),function(){var A,t=E(e);if(r){var n=E(this).constructor;A=Reflect.construct(t,arguments,n)}else A=t.apply(this,arguments);return a(this,A)});function F(A){var t;if(function(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}(this,F),"object"!==h(A)||null===A)throw new u("options","Object",A);var e=A.message,r=A.operator,i=A.stackStartFn,s=A.actual,o=A.expected,g=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=e)t=c.call(this,String(e));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(C="",d="",D="",M=""):(C="",d="",D="",M="")),"object"===h(s)&&null!==s&&"object"===h(o)&&null!==o&&"stack"in s&&s instanceof Error&&"stack"in o&&o instanceof Error&&(s=p(s),o=p(o)),"deepStrictEqual"===r||"strictEqual"===r)t=c.call(this,function(A,t,e){var r="",i="",s=0,o="",a=!1,B=y(A),g=B.split("\n"),c=y(t).split("\n"),l=0,w="";if("strictEqual"===e&&"object"===h(A)&&"object"===h(t)&&null!==A&&null!==t&&(e="strictEqualObject"),1===g.length&&1===c.length&&g[0]!==c[0]){var E=g[0].length+c[0].length;if(E<=10){if(!("object"===h(A)&&null!==A||"object"===h(t)&&null!==t||0===A&&0===t))return"".concat(I[e],"\n\n")+"".concat(g[0]," !== ").concat(c[0],"\n")}else if("strictEqualObject"!==e&&E<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;g[0][l]===c[0][l];)l++;l>2&&(w="\n ".concat(function(A,t){if(t=Math.floor(t),0==A.length||0==t)return"";var e=A.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)A+=A,t--;return A+A.substring(0,e-A.length)}(" ",l),"^"),l=0)}}for(var Q=g[g.length-1],u=c[c.length-1];Q===u&&(l++<2?o="\n ".concat(Q).concat(o):r=Q,g.pop(),c.pop(),0!==g.length&&0!==c.length);)Q=g[g.length-1],u=c[c.length-1];var p=Math.max(g.length,c.length);if(0===p){var F=B.split("\n");if(F.length>30)for(F[26]="".concat(C,"...").concat(D);F.length>27;)F.pop();return"".concat(I.notIdentical,"\n\n").concat(F.join("\n"),"\n")}l>3&&(o="\n".concat(C,"...").concat(D).concat(o),a=!0),""!==r&&(o="\n ".concat(r).concat(o),r="");var Y=0,m=I[e]+"\n".concat(d,"+ actual").concat(D," ").concat(M,"- expected").concat(D),b=" ".concat(C,"...").concat(D," Lines skipped");for(l=0;l1&&l>2&&(v>4?(i+="\n".concat(C,"...").concat(D),a=!0):v>3&&(i+="\n ".concat(c[l-2]),Y++),i+="\n ".concat(c[l-1]),Y++),s=l,r+="\n".concat(M,"-").concat(D," ").concat(c[l]),Y++;else if(c.length1&&l>2&&(v>4?(i+="\n".concat(C,"...").concat(D),a=!0):v>3&&(i+="\n ".concat(g[l-2]),Y++),i+="\n ".concat(g[l-1]),Y++),s=l,i+="\n".concat(d,"+").concat(D," ").concat(g[l]),Y++;else{var z=c[l],U=g[l],P=U!==z&&(!f(U,",")||U.slice(0,-1)!==z);P&&f(z,",")&&z.slice(0,-1)===U&&(P=!1,U+=","),P?(v>1&&l>2&&(v>4?(i+="\n".concat(C,"...").concat(D),a=!0):v>3&&(i+="\n ".concat(g[l-2]),Y++),i+="\n ".concat(g[l-1]),Y++),s=l,i+="\n".concat(d,"+").concat(D," ").concat(U),r+="\n".concat(M,"-").concat(D," ").concat(z),Y+=2):(i+=r,r="",1!==v&&0!==l||(i+="\n ".concat(U),Y++))}if(Y>20&&l30)for(w[26]="".concat(C,"...").concat(D);w.length>27;)w.pop();t=1===w.length?c.call(this,"".concat(l," ").concat(w[0])):c.call(this,"".concat(l,"\n\n").concat(w.join("\n"),"\n"))}else{var E=y(s),Q="",Y=I[r];"notDeepEqual"===r||"notEqual"===r?(E="".concat(I[r],"\n\n").concat(E)).length>1024&&(E="".concat(E.slice(0,1021),"...")):(Q="".concat(y(o)),E.length>512&&(E="".concat(E.slice(0,509),"...")),Q.length>512&&(Q="".concat(Q.slice(0,509),"...")),"deepEqual"===r||"equal"===r?E="".concat(Y,"\n\n").concat(E,"\n\nshould equal\n\n"):Q=" ".concat(r," ").concat(Q)),t=c.call(this,"".concat(E).concat(Q))}return Error.stackTraceLimit=g,t.generatedMessage=!e,Object.defineProperty(B(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=s,t.expected=o,t.operator=r,Error.captureStackTrace&&Error.captureStackTrace(B(t),i),t.stack,t.name="AssertionError",a(t)}return o=F,(g=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(A,t){return Q(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&s(o.prototype,g),Object.defineProperty(o,"prototype",{writable:!1}),F}(g(Error),Q.custom);A.exports=F},5403(A,t,e){"use strict";function n(A){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},n(A)}function r(A,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,t){return A.__proto__=t,A},r(A,t)}function i(A){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(A){return A.__proto__||Object.getPrototypeOf(A)},i(A)}var s,o,a={};function B(A,t,e){e||(e=Error);var s=function(e){!function(A,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(t&&t.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),t&&r(A,t)}(g,e);var s,o,a,B=(o=g,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}(),function(){var A,t=i(o);if(a){var e=i(this).constructor;A=Reflect.construct(t,arguments,e)}else A=t.apply(this,arguments);return function(A,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}(A)}(this,A)});function g(e,n,r){var i;return function(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),i=B.call(this,function(A,e,n){return"string"==typeof t?t:t(A,e,n)}(e,n,r)),i.code=A,i}return s=g,Object.defineProperty(s,"prototype",{writable:!1}),s}(e);a[A]=s}function g(A,t){if(Array.isArray(A)){var e=A.length;return A=A.map((function(A){return String(A)})),e>2?"one of ".concat(t," ").concat(A.slice(0,e-1).join(", "),", or ")+A[e-1]:2===e?"one of ".concat(t," ").concat(A[0]," or ").concat(A[1]):"of ".concat(t," ").concat(A[0])}return"of ".concat(t," ").concat(String(A))}B("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),B("ERR_INVALID_ARG_TYPE",(function(A,t,r){var i,o,a,B,c;if(void 0===s&&(s=e(7801)),s("string"==typeof A,"'name' must be a string"),"string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(A,t,e){return(void 0===e||e>A.length)&&(e=A.length),A.substring(e-9,e)===t}(A," argument"))a="The ".concat(A," ").concat(i," ").concat(g(t,"type"));else{var l=("number"!=typeof c&&(c=0),c+1>(B=A).length||-1===B.indexOf(".",c)?"argument":"property");a='The "'.concat(A,'" ').concat(l," ").concat(i," ").concat(g(t,"type"))}return a+". Received type ".concat(n(r))}),TypeError),B("ERR_INVALID_ARG_VALUE",(function(A,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===o&&(o=e(7187));var r=o.inspect(t);return r.length>128&&(r="".concat(r.slice(0,128),"...")),"The argument '".concat(A,"' ").concat(n,". Received ").concat(r)}),TypeError,RangeError),B("ERR_INVALID_RETURN_VALUE",(function(A,t,e){var r;return r=e&&e.constructor&&e.constructor.name?"instance of ".concat(e.constructor.name):"type ".concat(n(e)),"Expected ".concat(A,' to be returned from the "').concat(t,'"')+" function but got ".concat(r,".")}),TypeError),B("ERR_MISSING_ARGS",(function(){for(var A=arguments.length,t=new Array(A),n=0;n0,"At least one arg needs to be specified");var r="The ",i=t.length;switch(t=t.map((function(A){return'"'.concat(A,'"')})),i){case 1:r+="".concat(t[0]," argument");break;case 2:r+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:r+=t.slice(0,i-1).join(", "),r+=", and ".concat(t[i-1]," arguments")}return"".concat(r," must be specified")}),TypeError),A.exports.codes=a},6781(A,t,e){"use strict";function n(A,t){return function(A){if(Array.isArray(A))return A}(A)||function(A,t){var e=null==A?null:"undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(null!=e){var n,r,i,s,o=[],a=!0,B=!1;try{if(i=(e=e.call(A)).next,0===t){if(Object(e)!==e)return;a=!1}else for(;!(a=(n=i.call(e)).done)&&(o.push(n.value),o.length!==t);a=!0);}catch(A){B=!0,r=A}finally{try{if(!a&&null!=e.return&&(s=e.return(),Object(s)!==s))return}finally{if(B)throw r}}return o}}(A,t)||function(A,t){if(A){if("string"==typeof A)return r(A,t);var e=Object.prototype.toString.call(A).slice(8,-1);return"Object"===e&&A.constructor&&(e=A.constructor.name),"Map"===e||"Set"===e?Array.from(A):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(A,t):void 0}}(A,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(A,t){(null==t||t>A.length)&&(t=A.length);for(var e=0,n=new Array(t);e10)return!0;for(var t=0;t57)return!0}return 10===A.length&&A>=Math.pow(2,32)}function P(A){return Object.keys(A).filter(U).concat(g(A).filter(Object.prototype.propertyIsEnumerable.bind(A)))}function x(A,t){if(A===t)return 0;for(var e=A.length,n=t.length,r=0,i=Math.min(e,n);r0?s-4:s;for(e=0;e>16&255,B[g++]=t>>8&255,B[g++]=255&t;return 2===a&&(t=n[A.charCodeAt(e)]<<2|n[A.charCodeAt(e+1)]>>4,B[g++]=255&t),1===a&&(t=n[A.charCodeAt(e)]<<10|n[A.charCodeAt(e+1)]<<4|n[A.charCodeAt(e+2)]>>2,B[g++]=t>>8&255,B[g++]=255&t),B},t.fromByteArray=function(A){for(var t,n=A.length,r=n%3,i=[],s=16383,o=0,B=n-r;oB?B:o+s));return 1===r?(t=A[n-1],i.push(e[t>>2]+e[t<<4&63]+"==")):2===r&&(t=(A[n-2]<<8)+A[n-1],i.push(e[t>>10]+e[t>>4&63]+e[t<<2&63]+"=")),i.join("")};for(var e=[],n=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)e[s]=i[s],n[i.charCodeAt(s)]=s;function o(A){var t=A.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=A.indexOf("=");return-1===e&&(e=t),[e,e===t?0:4-e%4]}function a(A,t,n){for(var r,i,s=[],o=t;o>18&63]+e[i>>12&63]+e[i>>6&63]+e[63&i]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},4097(A){var t=4096,e=new Uint32Array([0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215]);function n(A){this.buf_=new Uint8Array(8224),this.input_=A,this.reset()}n.READ_SIZE=t,n.IBUF_MASK=8191,n.prototype.reset=function(){this.buf_ptr_=0,this.val_=0,this.pos_=0,this.bit_pos_=0,this.bit_end_pos_=0,this.eos_=0,this.readMoreInput();for(var A=0;A<4;A++)this.val_|=this.buf_[this.pos_]<<8*A,++this.pos_;return this.bit_end_pos_>0},n.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var A=this.buf_ptr_,e=this.input_.read(this.buf_,A,t);if(e<0)throw new Error("Unexpected end of input");if(e=8;)this.val_>>>=8,this.val_|=this.buf_[8191&this.pos_]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},n.prototype.readBits=function(A){32-this.bit_pos_>>this.bit_pos_&e[A];return this.bit_pos_+=A,t},A.exports=n},7043(A,t){t.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,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,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,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,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,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,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,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,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,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,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,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,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),t.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},980(A,t,e){var n=e(8197).z,r=e(8197).y,i=e(4097),s=e(614),o=e(1561).z,a=e(1561).u,B=e(7043),g=e(2210),c=e(7984),l=1080,w=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),E=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),h=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),Q=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function u(A){var t;return 0===A.readBits(1)?16:(t=A.readBits(3))>0?17+t:(t=A.readBits(3))>0?8+t:17}function f(A){if(A.readBits(1)){var t=A.readBits(3);return 0===t?1:A.readBits(t)+(1<1&&0===i)throw new Error("Invalid size byte");r.meta_block_length|=i<<8*n}}else for(n=0;n4&&0===s)throw new Error("Invalid size nibble");r.meta_block_length|=s<<4*n}return++r.meta_block_length,r.input_end||r.is_metadata||(r.is_uncompressed=A.readBits(1)),r}function M(A,t,e){var n;return e.fillBitWindow(),(n=A[t+=e.val_>>>e.bit_pos_&255].bits-8)>0&&(e.bit_pos_+=8,t+=A[t].value,t+=e.val_>>>e.bit_pos_&(1<>=1,++g;for(E=0;E0;++E){var C,d=w[E],M=0;n.fillBitWindow(),M+=n.val_>>>n.bit_pos_&15,n.bit_pos_+=f[M].bits,C=f[M].value,h[d]=C,0!==C&&(Q-=32>>C,++u)}if(1!==u&&0!==Q)throw new Error("[ReadHuffmanCode] invalid num_codes or space");!function(A,t,e,n){for(var r=0,i=8,s=0,B=0,g=32768,c=[],l=0;l<32;l++)c.push(new o(0,0));for(a(c,0,5,A,18);r0;){var w,E=0;if(n.readMoreInput(),n.fillBitWindow(),E+=n.val_>>>n.bit_pos_&31,n.bit_pos_+=c[E].bits,(w=255&c[E].value)<16)s=0,e[r++]=w,0!==w&&(i=w,g-=32768>>w);else{var h,Q,u=w-14,f=0;if(16===w&&(f=i),B!==f&&(s=0,B=f),h=s,s>0&&(s-=2,s<<=u),r+(Q=(s+=n.readBits(u)+3)-h)>t)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var C=0;C>>5]),this.htrees=new Uint32Array(t)}function Y(A,t){var e,n,r={num_htrees:null,context_map:null},i=0;t.readMoreInput();var s=r.num_htrees=f(t)+1,a=r.context_map=new Uint8Array(A);if(s<=1)return r;for(t.readBits(1)&&(i=t.readBits(4)+1),e=[],n=0;n=A)throw new Error("[DecodeContextMap] i >= context_map_size");a[n]=0,++n}else a[n]=B-i,++n}return t.readBits(1)&&function(A,t){var e,n=new Uint8Array(256);for(e=0;e<256;++e)n[e]=e;for(e=0;e=A&&(o-=A),n[e]=o,r[a+(1&i[B])]=o,++i[B]}function b(A,t,e,n,r,s){var o,a=r+1,B=e&r,g=s.pos_&i.IBUF_MASK;if(t<8||s.bit_pos_+(t<<3)0;)s.readMoreInput(),n[B++]=s.readBits(8),B===a&&(A.write(n,a),B=0);else{if(s.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;s.bit_pos_<32;)n[B]=s.val_>>>s.bit_pos_,s.bit_pos_+=8,++B,--t;if(g+(o=s.bit_end_pos_-s.bit_pos_>>3)>i.IBUF_MASK){for(var c=i.IBUF_MASK+1-g,l=0;l=a)for(A.write(n,a),B-=a,l=0;l=a;){if(o=a-B,s.input_.read(n,B,o)t.buffer.length){var lA=new Uint8Array(z+q);lA.set(t.buffer),t.buffer=lA}if(U=cA.input_end,k=cA.is_uncompressed,cA.is_metadata)for(v(y);q>0;--q)y.readMoreInput(),y.readBits(8);else if(0!==q)if(k)y.bit_pos_=y.bit_pos_+7&-8,b(t,q,z,E,w,y),z+=q;else{for(e=0;e<3;++e)tA[e]=f(y)+1,tA[e]>=2&&(D(tA[e]+2,Q,e*l,y),D(26,C,e*l,y),$[e]=I(C,e*l,y),nA[e]=1);for(y.readMoreInput(),J=(1<<(L=y.readBits(2)))-1,O=(j=16+(y.readBits(4)<0;){var hA,QA,uA,fA,CA,dA,MA,DA,IA,pA,yA,FA;for(y.readMoreInput(),0===$[1]&&(m(tA[1],Q,1,AA,eA,nA,y),$[1]=I(C,l,y),_=S[1].htrees[AA[1]]),--$[1],(QA=(hA=M(S[1].codes,_,y))>>6)>=2?(QA-=2,MA=-1):MA=0,uA=g.kInsertRangeLut[QA]+(hA>>3&7),fA=g.kCopyRangeLut[QA]+(7&hA),CA=g.kInsertLengthPrefixCode[uA].offset+y.readBits(g.kInsertLengthPrefixCode[uA].nbits),dA=g.kCopyLengthPrefixCode[fA].offset+y.readBits(g.kCopyLengthPrefixCode[fA].nbits),R=E[z-1&w],G=E[z-2&w],IA=0;IA4?3:dA-2))],(MA=M(S[2].codes,S[2].htrees[aA],y))>=j&&(FA=(MA-=j)&J,MA=j+((YA=(2+(1&(MA>>=L))<<(yA=1+(MA>>1)))-4)+y.readBits(yA)<(P=z=s.minDictionaryWordLength&&dA<=s.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+z+" distance: "+DA+" len: "+dA+" bytes left: "+q);var YA=s.offsetsByLength[dA],mA=DA-P-1,bA=s.sizeBitsByLength[dA],vA=mA>>bA;if(YA+=(mA&(1<=h){t.write(E,a);for(var UA=0;UA0&&(x[3&N]=DA,++N),dA>q)throw new Error("Invalid backward reference. pos: "+z+" distance: "+DA+" len: "+dA+" bytes left: "+q);for(IA=0;IA>=1;return(A&e-1)+e}function r(A,t,n,r,i){do{A[t+(r-=n)]=new e(i.bits,i.value)}while(r>0)}function i(A,t,e){for(var n=1<0;--d[B])r(A,t+c,l,Q,new e(255&B,65535&f[g++])),c=n(c,B);for(E=u-1,w=-1,B=s+1,l=2;B<=15;++B,l<<=1)for(;d[B]>0;--d[B])(c&E)!==w&&(t+=Q,u+=Q=1<<(h=i(d,B,s)),A[C+(w=c&E)]=new e(h+s&255,t-C-w&65535)),r(A,t+(c>>s),l,Q,new e(B-s&255,65535&f[g++])),c=n(c,B);return u}},2210(A,t){function e(A,t){this.offset=A,this.nbits=t}t.kBlockLengthPrefixCode=[new e(1,2),new e(5,2),new e(9,2),new e(13,2),new e(17,3),new e(25,3),new e(33,3),new e(41,3),new e(49,4),new e(65,4),new e(81,4),new e(97,4),new e(113,5),new e(145,5),new e(177,5),new e(209,5),new e(241,6),new e(305,6),new e(369,7),new e(497,8),new e(753,9),new e(1265,10),new e(2289,11),new e(4337,12),new e(8433,13),new e(16625,24)],t.kInsertLengthPrefixCode=[new e(0,0),new e(1,0),new e(2,0),new e(3,0),new e(4,0),new e(5,0),new e(6,1),new e(8,1),new e(10,2),new e(14,2),new e(18,3),new e(26,3),new e(34,4),new e(50,4),new e(66,5),new e(98,5),new e(130,6),new e(194,7),new e(322,8),new e(578,9),new e(1090,10),new e(2114,12),new e(6210,14),new e(22594,24)],t.kCopyLengthPrefixCode=[new e(2,0),new e(3,0),new e(4,0),new e(5,0),new e(6,0),new e(7,0),new e(8,0),new e(9,0),new e(10,1),new e(12,1),new e(14,2),new e(18,2),new e(22,3),new e(30,3),new e(38,4),new e(54,4),new e(70,5),new e(102,5),new e(134,6),new e(198,7),new e(326,8),new e(582,9),new e(1094,10),new e(2118,24)],t.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],t.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},8197(A,t){function e(A){this.buffer=A,this.pos=0}function n(A){this.buffer=A,this.pos=0}e.prototype.read=function(A,t,e){this.pos+e>this.buffer.length&&(e=this.buffer.length-this.pos);for(var n=0;nthis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(A.subarray(0,t),this.pos),this.pos+=t,t},t.y=n},7984(A,t,e){var n=e(614),r=10,i=11;function s(A,t,e){this.prefix=new Uint8Array(A.length),this.transform=t,this.suffix=new Uint8Array(e.length);for(var n=0;n'),new s("",0,"\n"),new s("",3,""),new s("",0,"]"),new s("",0," for "),new s("",14,""),new s("",2,""),new s("",0," a "),new s("",0," that "),new s(" ",r,""),new s("",0,". "),new s(".",0,""),new s(" ",0,", "),new s("",15,""),new s("",0," with "),new s("",0,"'"),new s("",0," from "),new s("",0," by "),new s("",16,""),new s("",17,""),new s(" the ",0,""),new s("",4,""),new s("",0,". The "),new s("",i,""),new s("",0," on "),new s("",0," as "),new s("",0," is "),new s("",7,""),new s("",1,"ing "),new s("",0,"\n\t"),new s("",0,":"),new s(" ",0,". "),new s("",0,"ed "),new s("",20,""),new s("",18,""),new s("",6,""),new s("",0,"("),new s("",r,", "),new s("",8,""),new s("",0," at "),new s("",0,"ly "),new s(" the ",0," of "),new s("",5,""),new s("",9,""),new s(" ",r,", "),new s("",r,'"'),new s(".",0,"("),new s("",i," "),new s("",r,'">'),new s("",0,'="'),new s(" ",0,"."),new s(".com/",0,""),new s(" the ",0," of the "),new s("",r,"'"),new s("",0,". This "),new s("",0,","),new s(".",0," "),new s("",r,"("),new s("",r,"."),new s("",0," not "),new s(" ",0,'="'),new s("",0,"er "),new s(" ",i," "),new s("",0,"al "),new s(" ",i,""),new s("",0,"='"),new s("",i,'"'),new s("",r,". "),new s(" ",0,"("),new s("",0,"ful "),new s(" ",r,". "),new s("",0,"ive "),new s("",0,"less "),new s("",i,"'"),new s("",0,"est "),new s(" ",r,"."),new s("",i,'">'),new s(" ",0,"='"),new s("",r,","),new s("",0,"ize "),new s("",i,"."),new s(" ",0,""),new s(" ",0,","),new s("",r,'="'),new s("",i,'="'),new s("",0,"ous "),new s("",i,", "),new s("",r,"='"),new s(" ",r,","),new s(" ",i,'="'),new s(" ",i,", "),new s("",i,","),new s("",i,"("),new s("",i,". "),new s(" ",i,"."),new s("",i,"='"),new s(" ",i,". "),new s(" ",r,'="'),new s(" ",i,"='"),new s(" ",r,"='")];function a(A,t){return A[t]<192?(A[t]>=97&&A[t]<=122&&(A[t]^=32),1):A[t]<224?(A[t+1]^=32,2):(A[t+2]^=5,3)}t.kTransforms=o,t.kNumTransforms=o.length,t.transformDictionaryWord=function(A,t,e,s,B){var g,c=o[B].prefix,l=o[B].suffix,w=o[B].transform,E=w<12?0:w-11,h=0,Q=t;E>s&&(E=s);for(var u=0;u0;){var f=a(A,g);g+=f,s-=f}for(var C=0;Ct.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=A,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,c.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,"close before init"),i(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?o.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||a.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},c.prototype.write=function(A,t,e,n,r,i,s){return this._write(!0,A,t,e,n,r,i,s)},c.prototype.writeSync=function(A,t,e,n,r,i,s){return this._write(!1,A,t,e,n,r,i,s)},c.prototype._write=function(A,e,s,o,a,B,g,c){if(i.equal(arguments.length,8),i(this.init_done,"write before init"),i(this.mode!==t.NONE,"already finalized"),i.equal(!1,this.write_in_progress,"write already in progress"),i.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,i.equal(!1,void 0===e,"must provide flush value"),this.write_in_progress=!0,e!==t.Z_NO_FLUSH&&e!==t.Z_PARTIAL_FLUSH&&e!==t.Z_SYNC_FLUSH&&e!==t.Z_FULL_FLUSH&&e!==t.Z_FINISH&&e!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==s&&(s=n.alloc(0),a=0,o=0),this.strm.avail_in=a,this.strm.input=s,this.strm.next_in=o,this.strm.avail_out=c,this.strm.output=B,this.strm.next_out=g,this.flush=e,!A)return this._process(),this._checkError()?this._afterSync():void 0;var l=this;return r.nextTick((function(){l._process(),l._after()})),this},c.prototype._afterSync=function(){var A=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,A]},c.prototype._process=function(){var A=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=o.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(A=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===A)break;if(31!==this.strm.input[A]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,A++,1===this.strm.avail_in)break;case 1:if(null===A)break;139===this.strm.input[A]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},c.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},c.prototype._after=function(){if(this._checkError()){var A=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,A),this.pending_close&&this.close()}},c.prototype._error=function(A){this.strm.msg&&(A=this.strm.msg),this.onerror(A,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},c.prototype.init=function(A,e,n,r,s){i(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),i(A>=8&&A<=15,"invalid windowBits"),i(e>=-1&&e<=9,"invalid compression level"),i(n>=1&&n<=9,"invalid memlevel"),i(r===t.Z_FILTERED||r===t.Z_HUFFMAN_ONLY||r===t.Z_RLE||r===t.Z_FIXED||r===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(e,A,n,r,s),this._setDictionary()},c.prototype.params=function(){throw new Error("deflateParams Not supported")},c.prototype.reset=function(){this._reset(),this._setDictionary()},c.prototype._init=function(A,e,n,r,i){switch(this.level=A,this.windowBits=e,this.memLevel=n,this.strategy=r,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new s,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=o.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=i,this.write_in_progress=!1,this.init_done=!0},c.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=o.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},c.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=o.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=a.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=c},6729(A,t,e){"use strict";var n=e(9964),r=e(783).Buffer,i=e(9760).Transform,s=e(2908),o=e(7187),a=e(7801).ok,B=e(783).kMaxLength,g="Cannot create final Buffer. It would be larger than 0x"+B.toString(16)+" bytes";s.Z_MIN_WINDOWBITS=8,s.Z_MAX_WINDOWBITS=15,s.Z_DEFAULT_WINDOWBITS=15,s.Z_MIN_CHUNK=64,s.Z_MAX_CHUNK=1/0,s.Z_DEFAULT_CHUNK=16384,s.Z_MIN_MEMLEVEL=1,s.Z_MAX_MEMLEVEL=9,s.Z_DEFAULT_MEMLEVEL=8,s.Z_MIN_LEVEL=-1,s.Z_MAX_LEVEL=9,s.Z_DEFAULT_LEVEL=s.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(s),l=0;l=B?s=new RangeError(g):t=r.concat(n,i),n=[],A.close(),e(s,t)}A.on("error",(function(t){A.removeListener("end",o),A.removeListener("readable",s),e(t)})),A.on("end",o),A.end(t),s()}function C(A,t){if("string"==typeof t&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Not a string or buffer");var e=A._finishFlushFlag;return A._processChunk(t,e)}function d(A){if(!(this instanceof d))return new d(A);m.call(this,A,s.DEFLATE)}function M(A){if(!(this instanceof M))return new M(A);m.call(this,A,s.INFLATE)}function D(A){if(!(this instanceof D))return new D(A);m.call(this,A,s.GZIP)}function I(A){if(!(this instanceof I))return new I(A);m.call(this,A,s.GUNZIP)}function p(A){if(!(this instanceof p))return new p(A);m.call(this,A,s.DEFLATERAW)}function y(A){if(!(this instanceof y))return new y(A);m.call(this,A,s.INFLATERAW)}function F(A){if(!(this instanceof F))return new F(A);m.call(this,A,s.UNZIP)}function Y(A){return A===s.Z_NO_FLUSH||A===s.Z_PARTIAL_FLUSH||A===s.Z_SYNC_FLUSH||A===s.Z_FULL_FLUSH||A===s.Z_FINISH||A===s.Z_BLOCK}function m(A,e){var n=this;if(this._opts=A=A||{},this._chunkSize=A.chunkSize||t.Z_DEFAULT_CHUNK,i.call(this,A),A.flush&&!Y(A.flush))throw new Error("Invalid flush flag: "+A.flush);if(A.finishFlush&&!Y(A.finishFlush))throw new Error("Invalid flush flag: "+A.finishFlush);if(this._flushFlag=A.flush||s.Z_NO_FLUSH,this._finishFlushFlag=void 0!==A.finishFlush?A.finishFlush:s.Z_FINISH,A.chunkSize&&(A.chunkSizet.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+A.chunkSize);if(A.windowBits&&(A.windowBitst.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+A.windowBits);if(A.level&&(A.levelt.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+A.level);if(A.memLevel&&(A.memLevelt.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+A.memLevel);if(A.strategy&&A.strategy!=t.Z_FILTERED&&A.strategy!=t.Z_HUFFMAN_ONLY&&A.strategy!=t.Z_RLE&&A.strategy!=t.Z_FIXED&&A.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+A.strategy);if(A.dictionary&&!r.isBuffer(A.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new s.Zlib(e);var o=this;this._hadError=!1,this._handle.onerror=function(A,e){b(o),o._hadError=!0;var n=new Error(A);n.errno=e,n.code=t.codes[e],o.emit("error",n)};var a=t.Z_DEFAULT_COMPRESSION;"number"==typeof A.level&&(a=A.level);var B=t.Z_DEFAULT_STRATEGY;"number"==typeof A.strategy&&(B=A.strategy),this._handle.init(A.windowBits||t.Z_DEFAULT_WINDOWBITS,a,A.memLevel||t.Z_DEFAULT_MEMLEVEL,B,A.dictionary),this._buffer=r.allocUnsafe(this._chunkSize),this._offset=0,this._level=a,this._strategy=B,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!n._handle},configurable:!0,enumerable:!0})}function b(A,t){t&&n.nextTick(t),A._handle&&(A._handle.close(),A._handle=null)}function v(A){A.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(E),writable:!1}),t.Deflate=d,t.Inflate=M,t.Gzip=D,t.Gunzip=I,t.DeflateRaw=p,t.InflateRaw=y,t.Unzip=F,t.createDeflate=function(A){return new d(A)},t.createInflate=function(A){return new M(A)},t.createDeflateRaw=function(A){return new p(A)},t.createInflateRaw=function(A){return new y(A)},t.createGzip=function(A){return new D(A)},t.createGunzip=function(A){return new I(A)},t.createUnzip=function(A){return new F(A)},t.deflate=function(A,t,e){return"function"==typeof t&&(e=t,t={}),f(new d(t),A,e)},t.deflateSync=function(A,t){return C(new d(t),A)},t.gzip=function(A,t,e){return"function"==typeof t&&(e=t,t={}),f(new D(t),A,e)},t.gzipSync=function(A,t){return C(new D(t),A)},t.deflateRaw=function(A,t,e){return"function"==typeof t&&(e=t,t={}),f(new p(t),A,e)},t.deflateRawSync=function(A,t){return C(new p(t),A)},t.unzip=function(A,t,e){return"function"==typeof t&&(e=t,t={}),f(new F(t),A,e)},t.unzipSync=function(A,t){return C(new F(t),A)},t.inflate=function(A,t,e){return"function"==typeof t&&(e=t,t={}),f(new M(t),A,e)},t.inflateSync=function(A,t){return C(new M(t),A)},t.gunzip=function(A,t,e){return"function"==typeof t&&(e=t,t={}),f(new I(t),A,e)},t.gunzipSync=function(A,t){return C(new I(t),A)},t.inflateRaw=function(A,t,e){return"function"==typeof t&&(e=t,t={}),f(new y(t),A,e)},t.inflateRawSync=function(A,t){return C(new y(t),A)},o.inherits(m,i),m.prototype.params=function(A,e,r){if(At.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+A);if(e!=t.Z_FILTERED&&e!=t.Z_HUFFMAN_ONLY&&e!=t.Z_RLE&&e!=t.Z_FIXED&&e!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+e);if(this._level!==A||this._strategy!==e){var i=this;this.flush(s.Z_SYNC_FLUSH,(function(){a(i._handle,"zlib binding closed"),i._handle.params(A,e),i._hadError||(i._level=A,i._strategy=e,r&&r())}))}else n.nextTick(r)},m.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},m.prototype._flush=function(A){this._transform(r.alloc(0),"",A)},m.prototype.flush=function(A,t){var e=this,i=this._writableState;("function"==typeof A||void 0===A&&!t)&&(t=A,A=s.Z_FULL_FLUSH),i.ended?t&&n.nextTick(t):i.ending?t&&this.once("end",t):i.needDrain?t&&this.once("drain",(function(){return e.flush(A,t)})):(this._flushFlag=A,this.write(r.alloc(0),"",t))},m.prototype.close=function(A){b(this,A),n.nextTick(v,this)},m.prototype._transform=function(A,t,e){var n,i=this._writableState,o=(i.ending||i.ended)&&(!A||i.length===A.length);return null===A||r.isBuffer(A)?this._handle?(o?n=this._finishFlushFlag:(n=this._flushFlag,A.length>=i.length&&(this._flushFlag=this._opts.flush||s.Z_NO_FLUSH)),void this._processChunk(A,n,e)):e(new Error("zlib binding closed")):e(new Error("invalid input"))},m.prototype._processChunk=function(A,t,e){var n=A&&A.length,i=this._chunkSize-this._offset,s=0,o=this,c="function"==typeof e;if(!c){var l,w=[],E=0;this.on("error",(function(A){l=A})),a(this._handle,"zlib binding closed");do{var h=this._handle.writeSync(t,A,s,n,this._buffer,this._offset,i)}while(!this._hadError&&f(h[0],h[1]));if(this._hadError)throw l;if(E>=B)throw b(this),new RangeError(g);var Q=r.concat(w,E);return b(this),Q}a(this._handle,"zlib binding closed");var u=this._handle.write(t,A,s,n,this._buffer,this._offset,i);function f(B,g){if(this&&(this.buffer=null,this.callback=null),!o._hadError){var l=i-g;if(a(l>=0,"have should not go down"),l>0){var h=o._buffer.slice(o._offset,o._offset+l);o._offset+=l,c?o.push(h):(w.push(h),E+=h.length)}if((0===g||o._offset>=o._chunkSize)&&(i=o._chunkSize,o._offset=0,o._buffer=r.allocUnsafe(o._chunkSize)),0===g){if(s+=n-B,n=B,!c)return!0;var Q=o._handle.write(t,A,s,n,o._buffer,o._offset,o._chunkSize);return Q.callback=f,void(Q.buffer=A)}if(!c)return!1;e()}}u.buffer=A,u.callback=f},o.inherits(d,m),o.inherits(M,m),o.inherits(D,m),o.inherits(I,m),o.inherits(p,m),o.inherits(y,m),o.inherits(F,m)},7802(A,t,e){"use strict";var n=e(5049),r=e(3036),i=e(78),s=e(1909);A.exports=s||n.call(i,r)},8619(A,t,e){"use strict";var n=e(5049),r=e(3036),i=e(7802);A.exports=function(){return i(n,r,arguments)}},3036(A){"use strict";A.exports=Function.prototype.apply},78(A){"use strict";A.exports=Function.prototype.call},6688(A,t,e){"use strict";var n=e(5049),r=e(6785),i=e(78),s=e(7802);A.exports=function(A){if(A.length<1||"function"!=typeof A[0])throw new r("a function is required");return s(n,i,A)}},1909(A){"use strict";A.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7913(A,t,e){"use strict";var n=e(8651),r=e(6601),i=r(n("String.prototype.indexOf"));A.exports=function(A,t){var e=n(A,!!t);return"function"==typeof e&&i(A,".prototype.")>-1?r(e):e}},6601(A,t,e){"use strict";var n=e(6255),r=e(9030),i=e(6688),s=e(8619);A.exports=function(A){var t=i(arguments),e=1+A.length-(arguments.length-1);return n(t,e>0?e:0,!0)},r?r(A.exports,"apply",{value:s}):A.exports.apply=s},2774(A,t,e){"use strict";var n=e(8651),r=e(6688),i=r([n("%String.prototype.indexOf%")]);A.exports=function(A,t){var e=n(A,!!t);return"function"==typeof e&&i(A,".prototype.")>-1?r([e]):e}},1613(A,t,e){var n=e(783).Buffer,r=function(){"use strict";function A(A,t){return null!=t&&A instanceof t}var t,e,r;try{t=Map}catch(A){t=function(){}}try{e=Set}catch(A){e=function(){}}try{r=Promise}catch(A){r=function(){}}function i(s,a,B,g,c){"object"==typeof a&&(B=a.depth,g=a.prototype,c=a.includeNonEnumerable,a=a.circular);var l=[],w=[],E=void 0!==n;return void 0===a&&(a=!0),void 0===B&&(B=1/0),function s(B,h){if(null===B)return null;if(0===h)return B;var Q,u;if("object"!=typeof B)return B;if(A(B,t))Q=new t;else if(A(B,e))Q=new e;else if(A(B,r))Q=new r((function(A,t){B.then((function(t){A(s(t,h-1))}),(function(A){t(s(A,h-1))}))}));else if(i.__isArray(B))Q=[];else if(i.__isRegExp(B))Q=new RegExp(B.source,o(B)),B.lastIndex&&(Q.lastIndex=B.lastIndex);else if(i.__isDate(B))Q=new Date(B.getTime());else{if(E&&n.isBuffer(B))return Q=n.allocUnsafe?n.allocUnsafe(B.length):new n(B.length),B.copy(Q),Q;A(B,Error)?Q=Object.create(B):void 0===g?(u=Object.getPrototypeOf(B),Q=Object.create(u)):(Q=Object.create(g),u=g)}if(a){var f=l.indexOf(B);if(-1!=f)return w[f];l.push(B),w.push(Q)}for(var C in A(B,t)&&B.forEach((function(A,t){var e=s(t,h-1),n=s(A,h-1);Q.set(e,n)})),A(B,e)&&B.forEach((function(A){var t=s(A,h-1);Q.add(t)})),B){var d;u&&(d=Object.getOwnPropertyDescriptor(u,C)),d&&null==d.set||(Q[C]=s(B[C],h-1))}if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(B);for(C=0;C3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,B=arguments.length>5?arguments[5]:null,g=arguments.length>6&&arguments[6],c=!!s&&s(A,t);if(n)n(A,t,{configurable:null===B&&c?c.configurable:!B,enumerable:null===o&&c?c.enumerable:!o,value:e,writable:null===a&&c?c.writable:!a});else{if(!g&&(o||a||B))throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");A[t]=e}}},5421(A,t,e){"use strict";var n=e(5643),r="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,s=Array.prototype.concat,o=e(9295),a=e(8890)(),B=function(A,t,e,n){if(t in A)if(!0===n){if(A[t]===e)return}else if("function"!=typeof(r=n)||"[object Function]"!==i.call(r)||!n())return;var r;a?o(A,t,e,!0):o(A,t,e)},g=function(A,t){var e=arguments.length>2?arguments[2]:{},i=n(t);r&&(i=s.call(i,Object.getOwnPropertySymbols(t)));for(var o=0;o0&&s.length>r&&!s.warned){s.warned=!0;var g=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");g.name="MaxListenersExceededWarning",g.emitter=A,g.type=t,g.count=s.length,B=g,console&&console.warn&&console.warn(B)}return A}function g(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(A,t,e){var n={fired:!1,wrapFn:void 0,target:A,type:t,listener:e},r=g.bind(n);return r.listener=e,n.wrapFn=r,r}function l(A,t,e){var n=A._events;if(void 0===n)return[];var r=n[t];return void 0===r?[]:"function"==typeof r?e?[r.listener||r]:[r]:e?function(A){for(var t=new Array(A.length),e=0;e0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var a=i[A];if(void 0===a)return!1;if("function"==typeof a)n(a,this,t);else{var B=a.length,g=E(a,B);for(e=0;e=0;i--)if(e[i]===t||e[i].listener===t){s=e[i].listener,r=i;break}if(r<0)return this;0===r?e.shift():function(A,t){for(;t+1=0;n--)this.removeListener(A,t[n]);return this},i.prototype.listeners=function(A){return l(this,A,!0)},i.prototype.rawListeners=function(A){return l(this,A,!1)},i.listenerCount=function(A,t){return"function"==typeof A.listenerCount?A.listenerCount(t):w.call(A,t)},i.prototype.listenerCount=w,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2022(A,t,e){"use strict";A.exports=function(){if("object"==typeof globalThis)return globalThis;var A;try{A=this||new Function("return this")()}catch(A){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==e.g)return e.g}return A}()},453(A){"use strict";A.exports=function A(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var n,r,i;if(Array.isArray(t)){if((n=t.length)!=e.length)return!1;for(r=n;0!=r--;)if(!A(t[r],e[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){var s=i[r];if(!A(t[s],e[s]))return!1}return!0}return t!=t&&e!=e}},8404(A,t,e){"use strict";var n=e(3746),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty;A.exports=function(A,t,e){if(!n(t))throw new TypeError("iterator must be a function");var s,o;arguments.length>=3&&(s=e),o=A,"[object Array]"===r.call(o)?function(A,t,e){for(var n=0,r=A.length;nt},8651(A,t,e){"use strict";var n,r=e(5846),i=e(5293),s=e(9055),o=e(8888),a=e(7900),B=e(7770),g=e(6785),c=e(4055),l=e(716),w=e(7450),E=e(3774),h=e(7552),Q=e(5874),u=e(9292),f=e(6071),C=Function,d=function(A){try{return C('"use strict"; return ('+A+").constructor;")()}catch(A){}},M=e(8109),D=e(9030),I=function(){throw new g},p=M?function(){try{return I}catch(A){try{return M(arguments,"callee").get}catch(A){return I}}}():I,y=e(3257)(),F=e(7106),Y=e(3766),m=e(6822),b=e(3036),v=e(78),z={},U="undefined"!=typeof Uint8Array&&F?F(Uint8Array):n,P={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&F?F([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":z,"%AsyncGenerator%":z,"%AsyncGeneratorFunction%":z,"%AsyncIteratorPrototype%":z,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":C,"%GeneratorFunction%":z,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&F?F(F([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&F?F((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":M,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":o,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&F?F((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&F?F(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":B,"%ThrowTypeError%":p,"%TypedArray%":U,"%TypeError%":g,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":v,"%Function.prototype.apply%":b,"%Object.defineProperty%":D,"%Object.getPrototypeOf%":Y,"%Math.abs%":l,"%Math.floor%":w,"%Math.max%":E,"%Math.min%":h,"%Math.pow%":Q,"%Math.round%":u,"%Math.sign%":f,"%Reflect.getPrototypeOf%":m};if(F)try{null.error}catch(A){var x=F(F(A));P["%Error.prototype%"]=x}var N=function A(t){var e;if("%AsyncFunction%"===t)e=d("async function () {}");else if("%GeneratorFunction%"===t)e=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)e=d("async function* () {}");else if("%AsyncGenerator%"===t){var n=A("%AsyncGeneratorFunction%");n&&(e=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=A("%AsyncGenerator%");r&&F&&(e=F(r.prototype))}return P[t]=e,e},R={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},G=e(5049),S=e(5215),T=G.call(v,Array.prototype.concat),H=G.call(b,Array.prototype.splice),k=G.call(v,String.prototype.replace),L=G.call(v,String.prototype.slice),j=G.call(v,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,W=function(A,t){var e,n=A;if(S(R,n)&&(n="%"+(e=R[n])[0]+"%"),S(P,n)){var r=P[n];if(r===z&&(r=N(n)),void 0===r&&!t)throw new g("intrinsic "+A+" exists, but is not available. Please file an issue!");return{alias:e,name:n,value:r}}throw new B("intrinsic "+A+" does not exist!")};A.exports=function(A,t){if("string"!=typeof A||0===A.length)throw new g("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new g('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,A))throw new B("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=function(A){var t=L(A,0,1),e=L(A,-1);if("%"===t&&"%"!==e)throw new B("invalid intrinsic syntax, expected closing `%`");if("%"===e&&"%"!==t)throw new B("invalid intrinsic syntax, expected opening `%`");var n=[];return k(A,J,(function(A,t,e,r){n[n.length]=e?k(r,O,"$1"):t||A})),n}(A),n=e.length>0?e[0]:"",r=W("%"+n+"%",t),i=r.name,s=r.value,o=!1,a=r.alias;a&&(n=a[0],H(e,T([0,1],a)));for(var c=1,l=!0;c=e.length){var Q=M(s,w);s=(l=!!Q)&&"get"in Q&&!("originalValue"in Q.get)?Q.get:s[w]}else l=S(s,w),s=s[w];l&&!o&&(P[i]=s)}}return s}},3766(A,t,e){"use strict";var n=e(5846);A.exports=n.getPrototypeOf||null},6822(A){"use strict";A.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},7106(A,t,e){"use strict";var n=e(6822),r=e(3766),i=e(9302);A.exports=n?function(A){return n(A)}:r?function(A){if(!A||"object"!=typeof A&&"function"!=typeof A)throw new TypeError("getProto: not an object");return r(A)}:i?function(A){return i(A)}:null},5567(A){"use strict";A.exports=Object.getOwnPropertyDescriptor},8109(A,t,e){"use strict";var n=e(5567);if(n)try{n([],"length")}catch(A){n=null}A.exports=n},8890(A,t,e){"use strict";var n=e(9030),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(A){return!0}},A.exports=r},3257(A,t,e){"use strict";var n="undefined"!=typeof Symbol&&Symbol,r=e(2843);A.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&r()}},2843(A){"use strict";A.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var A={},t=Symbol("test"),e=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;for(var n in A[t]=42,A)return!1;if("function"==typeof Object.keys&&0!==Object.keys(A).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(A).length)return!1;var r=Object.getOwnPropertySymbols(A);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(A,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(A,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},6626(A,t,e){"use strict";var n=e(2843);A.exports=function(){return n()&&!!Symbol.toStringTag}},5215(A,t,e){"use strict";var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=e(5049);A.exports=i.call(n,r)},9029(A,t){t.read=function(A,t,e,n,r){var i,s,o=8*r-n-1,a=(1<>1,g=-7,c=e?r-1:0,l=e?-1:1,w=A[t+c];for(c+=l,i=w&(1<<-g)-1,w>>=-g,g+=o;g>0;i=256*i+A[t+c],c+=l,g-=8);for(s=i&(1<<-g)-1,i>>=-g,g+=n;g>0;s=256*s+A[t+c],c+=l,g-=8);if(0===i)i=1-B;else{if(i===a)return s?NaN:1/0*(w?-1:1);s+=Math.pow(2,n),i-=B}return(w?-1:1)*s*Math.pow(2,i-n)},t.write=function(A,t,e,n,r,i){var s,o,a,B=8*i-r-1,g=(1<>1,l=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,w=n?0:i-1,E=n?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=g):(s=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-s))<1&&(s--,a*=2),(t+=s+c>=1?l/a:l*Math.pow(2,1-c))*a>=2&&(s++,a/=2),s+c>=g?(o=0,s=g):s+c>=1?(o=(t*a-1)*Math.pow(2,r),s+=c):(o=t*Math.pow(2,c-1)*Math.pow(2,r),s=0));r>=8;A[e+w]=255&o,w+=E,o/=256,r-=8);for(s=s<0;A[e+w]=255&s,w+=E,s/=256,B-=8);A[e+w-E]|=128*h}},9784(A){"function"==typeof Object.create?A.exports=function(A,t){t&&(A.super_=t,A.prototype=Object.create(t.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}))}:A.exports=function(A,t){if(t){A.super_=t;var e=function(){};e.prototype=t.prototype,A.prototype=new e,A.prototype.constructor=A}}},7906(A,t,e){"use strict";var n=e(6626)(),r=e(2774)("Object.prototype.toString"),i=function(A){return!(n&&A&&"object"==typeof A&&Symbol.toStringTag in A)&&"[object Arguments]"===r(A)},s=function(A){return!!i(A)||null!==A&&"object"==typeof A&&"length"in A&&"number"==typeof A.length&&A.length>=0&&"[object Array]"!==r(A)&&"callee"in A&&"[object Function]"===r(A.callee)},o=function(){return i(arguments)}();i.isLegacyArguments=s,A.exports=o?i:s},3746(A){"use strict";var t,e,n=Function.prototype.toString,r="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof r&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw e}}),e={},r((function(){throw 42}),null,t)}catch(A){A!==e&&(r=null)}else r=null;var i=/^\s*class\b/,s=function(A){try{var t=n.call(A);return i.test(t)}catch(A){return!1}},o=function(A){try{return!s(A)&&(n.call(A),!0)}catch(A){return!1}},a=Object.prototype.toString,B="function"==typeof Symbol&&!!Symbol.toStringTag,g=!(0 in[,]),c=function(){return!1};if("object"==typeof document){var l=document.all;a.call(l)===a.call(document.all)&&(c=function(A){if((g||!A)&&(void 0===A||"object"==typeof A))try{var t=a.call(A);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==A("")}catch(A){}return!1})}A.exports=r?function(A){if(c(A))return!0;if(!A)return!1;if("function"!=typeof A&&"object"!=typeof A)return!1;try{r(A,null,t)}catch(A){if(A!==e)return!1}return!s(A)&&o(A)}:function(A){if(c(A))return!0;if(!A)return!1;if("function"!=typeof A&&"object"!=typeof A)return!1;if(B)return o(A);if(s(A))return!1;var t=a.call(A);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&o(A)}},4610(A,t,e){"use strict";var n=e(2774),r=e(8843)(/^\s*(?:function)?\*/),i=e(6626)(),s=e(7106),o=n("Object.prototype.toString"),a=n("Function.prototype.toString"),B=e(3011);A.exports=function(A){if("function"!=typeof A)return!1;if(r(a(A)))return!0;if(!i)return"[object GeneratorFunction]"===o(A);if(!s)return!1;var t=B();return t&&s(A)===t.prototype}},2621(A){"use strict";A.exports=function(A){return A!=A}},7051(A,t,e){"use strict";var n=e(6601),r=e(5421),i=e(2621),s=e(1320),o=e(5074),a=n(s(),Number);r(a,{getPolyfill:s,implementation:i,shim:o}),A.exports=a},1320(A,t,e){"use strict";var n=e(2621);A.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},5074(A,t,e){"use strict";var n=e(5421),r=e(1320);A.exports=function(){var A=r();return n(Number,{isNaN:A},{isNaN:function(){return Number.isNaN!==A}}),A}},1689(A,t,e){"use strict";var n,r=e(2774),i=e(6626)(),s=e(5215),o=e(8109);if(i){var a=r("RegExp.prototype.exec"),B={},g=function(){throw B},c={toString:g,valueOf:g};"symbol"==typeof Symbol.toPrimitive&&(c[Symbol.toPrimitive]=g),n=function(A){if(!A||"object"!=typeof A)return!1;var t=o(A,"lastIndex");if(!t||!s(t,"value"))return!1;try{a(A,c)}catch(A){return A===B}}}else{var l=r("Object.prototype.toString");n=function(A){return!(!A||"object"!=typeof A&&"function"!=typeof A)&&"[object RegExp]"===l(A)}}A.exports=n},6094(A,t,e){"use strict";var n=e(3381);A.exports=function(A){return!!n(A)}},1632(A,t,e){var n,r=e(9964);!function(){"use strict";var t="input is invalid type",i="object"==typeof window,s=i?window:{};s.JS_MD5_NO_WINDOW&&(i=!1);var o=!i&&"object"==typeof self,a=!s.JS_MD5_NO_NODE_JS&&"object"==typeof r&&r.versions&&r.versions.node;a?s=e.g:o&&(s=self);var B,g=!s.JS_MD5_NO_COMMON_JS&&A.exports,c=e.amdO,l=!s.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,w="0123456789abcdef".split(""),E=[128,32768,8388608,-2147483648],h=[0,8,16,24],Q=["hex","array","digest","buffer","arrayBuffer","base64"],u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),f=[];if(l){var C=new ArrayBuffer(68);B=new Uint8Array(C),f=new Uint32Array(C)}var d=Array.isArray;!s.JS_MD5_NO_NODE_JS&&d||(d=function(A){return"[object Array]"===Object.prototype.toString.call(A)});var M=ArrayBuffer.isView;!l||!s.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&M||(M=function(A){return"object"==typeof A&&A.buffer&&A.buffer.constructor===ArrayBuffer});var D=function(A){var e=typeof A;if("string"===e)return[A,!0];if("object"!==e||null===A)throw new Error(t);if(l&&A.constructor===ArrayBuffer)return[new Uint8Array(A),!1];if(!d(A)&&!M(A))throw new Error(t);return[A,!1]},I=function(A){return function(t){return new y(!0).update(t)[A]()}},p=function(A){return function(t,e){return new F(t,!0).update(e)[A]()}};function y(A){if(A)f[0]=f[16]=f[1]=f[2]=f[3]=f[4]=f[5]=f[6]=f[7]=f[8]=f[9]=f[10]=f[11]=f[12]=f[13]=f[14]=f[15]=0,this.blocks=f,this.buffer8=B;else if(l){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function F(A,t){var e,n=D(A);if(A=n[0],n[1]){var r,i=[],s=A.length,o=0;for(e=0;e>>6,i[o++]=128|63&r):r<55296||r>=57344?(i[o++]=224|r>>>12,i[o++]=128|r>>>6&63,i[o++]=128|63&r):(r=65536+((1023&r)<<10|1023&A.charCodeAt(++e)),i[o++]=240|r>>>18,i[o++]=128|r>>>12&63,i[o++]=128|r>>>6&63,i[o++]=128|63&r);A=i}A.length>64&&(A=new y(!0).update(A).array());var a=[],B=[];for(e=0;e<64;++e){var g=A[e]||0;a[e]=92^g,B[e]=54^g}y.call(this,t),this.update(B),this.oKeyPad=a,this.inner=!0,this.sharedMemory=t}y.prototype.update=function(A){if(this.finalized)throw new Error("finalize already called");var t=D(A);A=t[0];for(var e,n,r=t[1],i=0,s=A.length,o=this.blocks,a=this.buffer8;i>>6,a[n++]=128|63&e):e<55296||e>=57344?(a[n++]=224|e>>>12,a[n++]=128|e>>>6&63,a[n++]=128|63&e):(e=65536+((1023&e)<<10|1023&A.charCodeAt(++i)),a[n++]=240|e>>>18,a[n++]=128|e>>>12&63,a[n++]=128|e>>>6&63,a[n++]=128|63&e);else for(n=this.start;i>>2]|=e<>>2]|=(192|e>>>6)<>>2]|=(128|63&e)<=57344?(o[n>>>2]|=(224|e>>>12)<>>2]|=(128|e>>>6&63)<>>2]|=(128|63&e)<>>2]|=(240|e>>>18)<>>2]|=(128|e>>>12&63)<>>2]|=(128|e>>>6&63)<>>2]|=(128|63&e)<>>2]|=A[i]<=64?(this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},y.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var A=this.blocks,t=this.lastByteIndex;A[t>>>2]|=E[3&t],t>=56&&(this.hashed||this.hash(),A[0]=A[16],A[16]=A[1]=A[2]=A[3]=A[4]=A[5]=A[6]=A[7]=A[8]=A[9]=A[10]=A[11]=A[12]=A[13]=A[14]=A[15]=0),A[14]=this.bytes<<3,A[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},y.prototype.hash=function(){var A,t,e,n,r,i,s=this.blocks;this.first?t=((t=((A=((A=s[0]-680876937)<<7|A>>>25)-271733879|0)^(e=((e=(-271733879^(n=((n=(-1732584194^2004318071&A)+s[1]-117830708)<<12|n>>>20)+A|0)&(-271733879^A))+s[2]-1126478375)<<17|e>>>15)+n|0)&(n^A))+s[3]-1316259209)<<22|t>>>10)+e|0:(A=this.h0,t=this.h1,e=this.h2,t=((t+=((A=((A+=((n=this.h3)^t&(e^n))+s[0]-680876936)<<7|A>>>25)+t|0)^(e=((e+=(t^(n=((n+=(e^A&(t^e))+s[1]-389564586)<<12|n>>>20)+A|0)&(A^t))+s[2]+606105819)<<17|e>>>15)+n|0)&(n^A))+s[3]-1044525330)<<22|t>>>10)+e|0),t=((t+=((A=((A+=(n^t&(e^n))+s[4]-176418897)<<7|A>>>25)+t|0)^(e=((e+=(t^(n=((n+=(e^A&(t^e))+s[5]+1200080426)<<12|n>>>20)+A|0)&(A^t))+s[6]-1473231341)<<17|e>>>15)+n|0)&(n^A))+s[7]-45705983)<<22|t>>>10)+e|0,t=((t+=((A=((A+=(n^t&(e^n))+s[8]+1770035416)<<7|A>>>25)+t|0)^(e=((e+=(t^(n=((n+=(e^A&(t^e))+s[9]-1958414417)<<12|n>>>20)+A|0)&(A^t))+s[10]-42063)<<17|e>>>15)+n|0)&(n^A))+s[11]-1990404162)<<22|t>>>10)+e|0,t=((t+=((A=((A+=(n^t&(e^n))+s[12]+1804603682)<<7|A>>>25)+t|0)^(e=((e+=(t^(n=((n+=(e^A&(t^e))+s[13]-40341101)<<12|n>>>20)+A|0)&(A^t))+s[14]-1502002290)<<17|e>>>15)+n|0)&(n^A))+s[15]+1236535329)<<22|t>>>10)+e|0,t=((t+=((n=((n+=(t^e&((A=((A+=(e^n&(t^e))+s[1]-165796510)<<5|A>>>27)+t|0)^t))+s[6]-1069501632)<<9|n>>>23)+A|0)^A&((e=((e+=(A^t&(n^A))+s[11]+643717713)<<14|e>>>18)+n|0)^n))+s[0]-373897302)<<20|t>>>12)+e|0,t=((t+=((n=((n+=(t^e&((A=((A+=(e^n&(t^e))+s[5]-701558691)<<5|A>>>27)+t|0)^t))+s[10]+38016083)<<9|n>>>23)+A|0)^A&((e=((e+=(A^t&(n^A))+s[15]-660478335)<<14|e>>>18)+n|0)^n))+s[4]-405537848)<<20|t>>>12)+e|0,t=((t+=((n=((n+=(t^e&((A=((A+=(e^n&(t^e))+s[9]+568446438)<<5|A>>>27)+t|0)^t))+s[14]-1019803690)<<9|n>>>23)+A|0)^A&((e=((e+=(A^t&(n^A))+s[3]-187363961)<<14|e>>>18)+n|0)^n))+s[8]+1163531501)<<20|t>>>12)+e|0,t=((t+=((n=((n+=(t^e&((A=((A+=(e^n&(t^e))+s[13]-1444681467)<<5|A>>>27)+t|0)^t))+s[2]-51403784)<<9|n>>>23)+A|0)^A&((e=((e+=(A^t&(n^A))+s[7]+1735328473)<<14|e>>>18)+n|0)^n))+s[12]-1926607734)<<20|t>>>12)+e|0,t=((t+=((i=(n=((n+=((r=t^e)^(A=((A+=(r^n)+s[5]-378558)<<4|A>>>28)+t|0))+s[8]-2022574463)<<11|n>>>21)+A|0)^A)^(e=((e+=(i^t)+s[11]+1839030562)<<16|e>>>16)+n|0))+s[14]-35309556)<<23|t>>>9)+e|0,t=((t+=((i=(n=((n+=((r=t^e)^(A=((A+=(r^n)+s[1]-1530992060)<<4|A>>>28)+t|0))+s[4]+1272893353)<<11|n>>>21)+A|0)^A)^(e=((e+=(i^t)+s[7]-155497632)<<16|e>>>16)+n|0))+s[10]-1094730640)<<23|t>>>9)+e|0,t=((t+=((i=(n=((n+=((r=t^e)^(A=((A+=(r^n)+s[13]+681279174)<<4|A>>>28)+t|0))+s[0]-358537222)<<11|n>>>21)+A|0)^A)^(e=((e+=(i^t)+s[3]-722521979)<<16|e>>>16)+n|0))+s[6]+76029189)<<23|t>>>9)+e|0,t=((t+=((i=(n=((n+=((r=t^e)^(A=((A+=(r^n)+s[9]-640364487)<<4|A>>>28)+t|0))+s[12]-421815835)<<11|n>>>21)+A|0)^A)^(e=((e+=(i^t)+s[15]+530742520)<<16|e>>>16)+n|0))+s[2]-995338651)<<23|t>>>9)+e|0,t=((t+=((n=((n+=(t^((A=((A+=(e^(t|~n))+s[0]-198630844)<<6|A>>>26)+t|0)|~e))+s[7]+1126891415)<<10|n>>>22)+A|0)^((e=((e+=(A^(n|~t))+s[14]-1416354905)<<15|e>>>17)+n|0)|~A))+s[5]-57434055)<<21|t>>>11)+e|0,t=((t+=((n=((n+=(t^((A=((A+=(e^(t|~n))+s[12]+1700485571)<<6|A>>>26)+t|0)|~e))+s[3]-1894986606)<<10|n>>>22)+A|0)^((e=((e+=(A^(n|~t))+s[10]-1051523)<<15|e>>>17)+n|0)|~A))+s[1]-2054922799)<<21|t>>>11)+e|0,t=((t+=((n=((n+=(t^((A=((A+=(e^(t|~n))+s[8]+1873313359)<<6|A>>>26)+t|0)|~e))+s[15]-30611744)<<10|n>>>22)+A|0)^((e=((e+=(A^(n|~t))+s[6]-1560198380)<<15|e>>>17)+n|0)|~A))+s[13]+1309151649)<<21|t>>>11)+e|0,t=((t+=((n=((n+=(t^((A=((A+=(e^(t|~n))+s[4]-145523070)<<6|A>>>26)+t|0)|~e))+s[11]-1120210379)<<10|n>>>22)+A|0)^((e=((e+=(A^(n|~t))+s[2]+718787259)<<15|e>>>17)+n|0)|~A))+s[9]-343485551)<<21|t>>>11)+e|0,this.first?(this.h0=A+1732584193|0,this.h1=t-271733879|0,this.h2=e-1732584194|0,this.h3=n+271733878|0,this.first=!1):(this.h0=this.h0+A|0,this.h1=this.h1+t|0,this.h2=this.h2+e|0,this.h3=this.h3+n|0)},y.prototype.hex=function(){this.finalize();var A=this.h0,t=this.h1,e=this.h2,n=this.h3;return w[A>>>4&15]+w[15&A]+w[A>>>12&15]+w[A>>>8&15]+w[A>>>20&15]+w[A>>>16&15]+w[A>>>28&15]+w[A>>>24&15]+w[t>>>4&15]+w[15&t]+w[t>>>12&15]+w[t>>>8&15]+w[t>>>20&15]+w[t>>>16&15]+w[t>>>28&15]+w[t>>>24&15]+w[e>>>4&15]+w[15&e]+w[e>>>12&15]+w[e>>>8&15]+w[e>>>20&15]+w[e>>>16&15]+w[e>>>28&15]+w[e>>>24&15]+w[n>>>4&15]+w[15&n]+w[n>>>12&15]+w[n>>>8&15]+w[n>>>20&15]+w[n>>>16&15]+w[n>>>28&15]+w[n>>>24&15]},y.prototype.toString=y.prototype.hex,y.prototype.digest=function(){this.finalize();var A=this.h0,t=this.h1,e=this.h2,n=this.h3;return[255&A,A>>>8&255,A>>>16&255,A>>>24&255,255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&n,n>>>8&255,n>>>16&255,n>>>24&255]},y.prototype.array=y.prototype.digest,y.prototype.arrayBuffer=function(){this.finalize();var A=new ArrayBuffer(16),t=new Uint32Array(A);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,A},y.prototype.buffer=y.prototype.arrayBuffer,y.prototype.base64=function(){for(var A,t,e,n="",r=this.array(),i=0;i<15;)A=r[i++],t=r[i++],e=r[i++],n+=u[A>>>2]+u[63&(A<<4|t>>>4)]+u[63&(t<<2|e>>>6)]+u[63&e];return A=r[i],n+(u[A>>>2]+u[A<<4&63]+"==")},F.prototype=new y,F.prototype.finalize=function(){if(y.prototype.finalize.call(this),this.inner){this.inner=!1;var A=this.array();y.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(A),y.prototype.finalize.call(this)}};var Y=function(){var A=I("hex");a&&(A=function(A){var n,r=e(8535),i=e(6274).Buffer;return n=i.from&&!s.JS_MD5_NO_BUFFER_FROM?i.from:function(A){return new i(A)},function(e){if("string"==typeof e)return r.createHash("md5").update(e,"utf8").digest("hex");if(null==e)throw new Error(t);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),d(e)||M(e)||e.constructor===i?r.createHash("md5").update(n(e)).digest("hex"):A(e)}}(A)),A.create=function(){return new y},A.update=function(t){return A.create().update(t)};for(var n=0;n0&&!r.call(A,0))for(var h=0;h0)for(var Q=0;Q=0&&"[object Function]"===t.call(A.callee)),n}},6521(A,t,e){"use strict";var n=e(5643),r=e(2843)(),i=e(2774),s=e(5846),o=i("Array.prototype.push"),a=i("Object.prototype.propertyIsEnumerable"),B=r?s.getOwnPropertySymbols:null;A.exports=function(A,t){if(null==A)throw new TypeError("target must be an object");var e=s(A);if(1===arguments.length)return e;for(var i=1;i>>16&65535,s=0;0!==e;){e-=s=e>2e3?2e3:e;do{i=i+(r=r+t[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16}},1607(A){"use strict";A.exports={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}},9049(A){"use strict";var t=function(){for(var A,t=[],e=0;e<256;e++){A=e;for(var n=0;n<8;n++)A=1&A?3988292384^A>>>1:A>>>1;t[e]=A}return t}();A.exports=function(A,e,n,r){var i=t,s=r+n;A^=-1;for(var o=r;o>>8^i[255&(A^e[o])];return~A}},2925(A,t,e){"use strict";var n,r=e(2519),i=e(2367),s=e(6911),o=e(9049),a=e(6228),B=-2,g=258,c=262,l=103,w=113,E=666;function h(A,t){return A.msg=a[t],t}function Q(A){return(A<<1)-(A>4?9:0)}function u(A){for(var t=A.length;--t>=0;)A[t]=0}function f(A){var t=A.state,e=t.pending;e>A.avail_out&&(e=A.avail_out),0!==e&&(r.arraySet(A.output,t.pending_buf,t.pending_out,e,A.next_out),A.next_out+=e,t.pending_out+=e,A.total_out+=e,A.avail_out-=e,t.pending-=e,0===t.pending&&(t.pending_out=0))}function C(A,t){i._tr_flush_block(A,A.block_start>=0?A.block_start:-1,A.strstart-A.block_start,t),A.block_start=A.strstart,f(A.strm)}function d(A,t){A.pending_buf[A.pending++]=t}function M(A,t){A.pending_buf[A.pending++]=t>>>8&255,A.pending_buf[A.pending++]=255&t}function D(A,t){var e,n,r=A.max_chain_length,i=A.strstart,s=A.prev_length,o=A.nice_match,a=A.strstart>A.w_size-c?A.strstart-(A.w_size-c):0,B=A.window,l=A.w_mask,w=A.prev,E=A.strstart+g,h=B[i+s-1],Q=B[i+s];A.prev_length>=A.good_match&&(r>>=2),o>A.lookahead&&(o=A.lookahead);do{if(B[(e=t)+s]===Q&&B[e+s-1]===h&&B[e]===B[i]&&B[++e]===B[i+1]){i+=2,e++;do{}while(B[++i]===B[++e]&&B[++i]===B[++e]&&B[++i]===B[++e]&&B[++i]===B[++e]&&B[++i]===B[++e]&&B[++i]===B[++e]&&B[++i]===B[++e]&&B[++i]===B[++e]&&is){if(A.match_start=t,s=n,n>=o)break;h=B[i+s-1],Q=B[i+s]}}}while((t=w[t&l])>a&&0!=--r);return s<=A.lookahead?s:A.lookahead}function I(A){var t,e,n,i,a,B,g,l,w,E,h=A.w_size;do{if(i=A.window_size-A.lookahead-A.strstart,A.strstart>=h+(h-c)){r.arraySet(A.window,A.window,h,h,0),A.match_start-=h,A.strstart-=h,A.block_start-=h,t=e=A.hash_size;do{n=A.head[--t],A.head[t]=n>=h?n-h:0}while(--e);t=e=h;do{n=A.prev[--t],A.prev[t]=n>=h?n-h:0}while(--e);i+=h}if(0===A.strm.avail_in)break;if(B=A.strm,g=A.window,l=A.strstart+A.lookahead,w=i,E=void 0,(E=B.avail_in)>w&&(E=w),e=0===E?0:(B.avail_in-=E,r.arraySet(g,B.input,B.next_in,E,l),1===B.state.wrap?B.adler=s(B.adler,g,E,l):2===B.state.wrap&&(B.adler=o(B.adler,g,E,l)),B.next_in+=E,B.total_in+=E,E),A.lookahead+=e,A.lookahead+A.insert>=3)for(a=A.strstart-A.insert,A.ins_h=A.window[a],A.ins_h=(A.ins_h<=3&&(A.ins_h=(A.ins_h<=3)if(n=i._tr_tally(A,A.strstart-A.match_start,A.match_length-3),A.lookahead-=A.match_length,A.match_length<=A.max_lazy_match&&A.lookahead>=3){A.match_length--;do{A.strstart++,A.ins_h=(A.ins_h<=3&&(A.ins_h=(A.ins_h<4096)&&(A.match_length=2)),A.prev_length>=3&&A.match_length<=A.prev_length){r=A.strstart+A.lookahead-3,n=i._tr_tally(A,A.strstart-1-A.prev_match,A.prev_length-3),A.lookahead-=A.prev_length-1,A.prev_length-=2;do{++A.strstart<=r&&(A.ins_h=(A.ins_h<15&&(o=2,n-=16),i<1||i>9||8!==e||n<8||n>15||t<0||t>9||s<0||s>4)return h(A,B);8===n&&(n=9);var a=new Y;return A.state=a,a.strm=A,a.wrap=o,a.gzhead=null,a.w_bits=n,a.w_size=1<A.pending_buf_size-5&&(e=A.pending_buf_size-5);;){if(A.lookahead<=1){if(I(A),0===A.lookahead&&0===t)return 1;if(0===A.lookahead)break}A.strstart+=A.lookahead,A.lookahead=0;var n=A.block_start+e;if((0===A.strstart||A.strstart>=n)&&(A.lookahead=A.strstart-n,A.strstart=n,C(A,!1),0===A.strm.avail_out))return 1;if(A.strstart-A.block_start>=A.w_size-c&&(C(A,!1),0===A.strm.avail_out))return 1}return A.insert=0,4===t?(C(A,!0),0===A.strm.avail_out?3:4):(A.strstart>A.block_start&&(C(A,!1),A.strm.avail_out),1)})),new F(4,4,8,4,p),new F(4,5,16,8,p),new F(4,6,32,32,p),new F(4,4,16,16,y),new F(8,16,32,32,y),new F(8,16,128,128,y),new F(8,32,128,256,y),new F(32,128,258,1024,y),new F(32,258,258,4096,y)],t.deflateInit=function(A,t){return v(A,t,8,15,8,0)},t.deflateInit2=v,t.deflateReset=b,t.deflateResetKeep=m,t.deflateSetHeader=function(A,t){return A&&A.state?2!==A.state.wrap?B:(A.state.gzhead=t,0):B},t.deflate=function(A,t){var e,r,s,a;if(!A||!A.state||t>5||t<0)return A?h(A,B):B;if(r=A.state,!A.output||!A.input&&0!==A.avail_in||r.status===E&&4!==t)return h(A,0===A.avail_out?-5:B);if(r.strm=A,e=r.last_flush,r.last_flush=t,42===r.status)if(2===r.wrap)A.adler=0,d(r,31),d(r,139),d(r,8),r.gzhead?(d(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),d(r,255&r.gzhead.time),d(r,r.gzhead.time>>8&255),d(r,r.gzhead.time>>16&255),d(r,r.gzhead.time>>24&255),d(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),d(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(d(r,255&r.gzhead.extra.length),d(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(A.adler=o(A.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(d(r,0),d(r,0),d(r,0),d(r,0),d(r,0),d(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),d(r,3),r.status=w);else{var c=8+(r.w_bits-8<<4)<<8;c|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(c|=32),c+=31-c%31,r.status=w,M(r,c),0!==r.strstart&&(M(r,A.adler>>>16),M(r,65535&A.adler)),A.adler=1}if(69===r.status)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(A.adler=o(A.adler,r.pending_buf,r.pending-s,s)),f(A),s=r.pending,r.pending!==r.pending_buf_size));)d(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(A.adler=o(A.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(A.adler=o(A.adler,r.pending_buf,r.pending-s,s)),f(A),s=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzindexs&&(A.adler=o(A.adler,r.pending_buf,r.pending-s,s)),0===a&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(A.adler=o(A.adler,r.pending_buf,r.pending-s,s)),f(A),s=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzindexs&&(A.adler=o(A.adler,r.pending_buf,r.pending-s,s)),0===a&&(r.status=l)}else r.status=l;if(r.status===l&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&f(A),r.pending+2<=r.pending_buf_size&&(d(r,255&A.adler),d(r,A.adler>>8&255),A.adler=0,r.status=w)):r.status=w),0!==r.pending){if(f(A),0===A.avail_out)return r.last_flush=-1,0}else if(0===A.avail_in&&Q(t)<=Q(e)&&4!==t)return h(A,-5);if(r.status===E&&0!==A.avail_in)return h(A,-5);if(0!==A.avail_in||0!==r.lookahead||0!==t&&r.status!==E){var D=2===r.strategy?function(A,t){for(var e;;){if(0===A.lookahead&&(I(A),0===A.lookahead)){if(0===t)return 1;break}if(A.match_length=0,e=i._tr_tally(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++,e&&(C(A,!1),0===A.strm.avail_out))return 1}return A.insert=0,4===t?(C(A,!0),0===A.strm.avail_out?3:4):A.last_lit&&(C(A,!1),0===A.strm.avail_out)?1:2}(r,t):3===r.strategy?function(A,t){for(var e,n,r,s,o=A.window;;){if(A.lookahead<=g){if(I(A),A.lookahead<=g&&0===t)return 1;if(0===A.lookahead)break}if(A.match_length=0,A.lookahead>=3&&A.strstart>0&&(n=o[r=A.strstart-1])===o[++r]&&n===o[++r]&&n===o[++r]){s=A.strstart+g;do{}while(n===o[++r]&&n===o[++r]&&n===o[++r]&&n===o[++r]&&n===o[++r]&&n===o[++r]&&n===o[++r]&&n===o[++r]&&rA.lookahead&&(A.match_length=A.lookahead)}if(A.match_length>=3?(e=i._tr_tally(A,1,A.match_length-3),A.lookahead-=A.match_length,A.strstart+=A.match_length,A.match_length=0):(e=i._tr_tally(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++),e&&(C(A,!1),0===A.strm.avail_out))return 1}return A.insert=0,4===t?(C(A,!0),0===A.strm.avail_out?3:4):A.last_lit&&(C(A,!1),0===A.strm.avail_out)?1:2}(r,t):n[r.level].func(r,t);if(3!==D&&4!==D||(r.status=E),1===D||3===D)return 0===A.avail_out&&(r.last_flush=-1),0;if(2===D&&(1===t?i._tr_align(r):5!==t&&(i._tr_stored_block(r,0,0,!1),3===t&&(u(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),f(A),0===A.avail_out))return r.last_flush=-1,0}return 4!==t?0:r.wrap<=0?1:(2===r.wrap?(d(r,255&A.adler),d(r,A.adler>>8&255),d(r,A.adler>>16&255),d(r,A.adler>>24&255),d(r,255&A.total_in),d(r,A.total_in>>8&255),d(r,A.total_in>>16&255),d(r,A.total_in>>24&255)):(M(r,A.adler>>>16),M(r,65535&A.adler)),f(A),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},t.deflateEnd=function(A){var t;return A&&A.state?42!==(t=A.state.status)&&69!==t&&73!==t&&91!==t&&t!==l&&t!==w&&t!==E?h(A,B):(A.state=null,t===w?h(A,-3):0):B},t.deflateSetDictionary=function(A,t){var e,n,i,o,a,g,c,l,w=t.length;if(!A||!A.state)return B;if(2===(o=(e=A.state).wrap)||1===o&&42!==e.status||e.lookahead)return B;for(1===o&&(A.adler=s(A.adler,t,w,0)),e.wrap=0,w>=e.w_size&&(0===o&&(u(e.head),e.strstart=0,e.block_start=0,e.insert=0),l=new r.Buf8(e.w_size),r.arraySet(l,t,w-e.w_size,e.w_size,0),t=l,w=e.w_size),a=A.avail_in,g=A.next_in,c=A.input,A.avail_in=w,A.next_in=0,A.input=t,I(e);e.lookahead>=3;){n=e.strstart,i=e.lookahead-2;do{e.ins_h=(e.ins_h<>>=d=C>>>24,E-=d,0==(d=C>>>16&255))F[i++]=65535&C;else{if(!(16&d)){if(64&d){if(32&d){e.mode=12;break A}A.msg="invalid literal/length code",e.mode=30;break A}C=h[(65535&C)+(w&(1<>>=d,E-=d),E<15&&(w+=y[n++]<>>=d=C>>>24,E-=d,16&(d=C>>>16&255)){if(D=65535&C,E<(d&=15)&&(w+=y[n++]<a){A.msg="invalid distance too far back",e.mode=30;break A}if(w>>>=d,E-=d,D>(d=i-s)){if((d=D-d)>g&&e.sane){A.msg="invalid distance too far back",e.mode=30;break A}if(I=0,p=l,0===c){if(I+=B-d,d2;)F[i++]=p[I++],F[i++]=p[I++],F[i++]=p[I++],M-=3;M&&(F[i++]=p[I++],M>1&&(F[i++]=p[I++]))}else{I=i-D;do{F[i++]=F[I++],F[i++]=F[I++],F[i++]=F[I++],M-=3}while(M>2);M&&(F[i++]=F[I++],M>1&&(F[i++]=F[I++]))}break}if(64&d){A.msg="invalid distance code",e.mode=30;break A}C=Q[(65535&C)+(w&(1<>3,w&=(1<<(E-=M<<3))-1,A.next_in=n,A.next_out=i,A.avail_in=n>>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<24)}function l(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function w(A){var t;return A&&A.state?(t=A.state,A.total_in=A.total_out=t.total=0,A.msg="",t.wrap&&(A.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):a}function E(A){var t;return A&&A.state?((t=A.state).wsize=0,t.whave=0,t.wnext=0,w(A)):a}function h(A,t){var e,n;return A&&A.state?(n=A.state,t<0?(e=0,t=-t):(e=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?a:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=e,n.wbits=t,E(A))):a}function Q(A,t){var e,n;return A?(n=new l,A.state=n,n.window=null,0!==(e=h(A,t))&&(A.state=null),e):a}var u,f,C=!0;function d(A){if(C){var t;for(u=new n.Buf32(512),f=new n.Buf32(32),t=0;t<144;)A.lens[t++]=8;for(;t<256;)A.lens[t++]=9;for(;t<280;)A.lens[t++]=7;for(;t<288;)A.lens[t++]=8;for(o(1,A.lens,0,288,u,0,A.work,{bits:9}),t=0;t<32;)A.lens[t++]=5;o(2,A.lens,0,32,f,0,A.work,{bits:5}),C=!1}A.lencode=u,A.lenbits=9,A.distcode=f,A.distbits=5}function M(A,t,e,r){var i,s=A.state;return null===s.window&&(s.wsize=1<=s.wsize?(n.arraySet(s.window,t,e-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((i=s.wsize-s.wnext)>r&&(i=r),n.arraySet(s.window,t,e-r,i,s.wnext),(r-=i)?(n.arraySet(s.window,t,e-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,e.check=i(e.check,S,2,0),f=0,C=0,e.mode=2;break}if(e.flags=0,e.head&&(e.head.done=!1),!(1&e.wrap)||(((255&f)<<8)+(f>>8))%31){A.msg="incorrect header check",e.mode=g;break}if(8!=(15&f)){A.msg="unknown compression method",e.mode=g;break}if(C-=4,P=8+(15&(f>>>=4)),0===e.wbits)e.wbits=P;else if(P>e.wbits){A.msg="invalid window size",e.mode=g;break}e.dmax=1<>8&1),512&e.flags&&(S[0]=255&f,S[1]=f>>>8&255,e.check=i(e.check,S,2,0)),f=0,C=0,e.mode=3;case 3:for(;C<32;){if(0===Q)break A;Q--,f+=l[E++]<>>8&255,S[2]=f>>>16&255,S[3]=f>>>24&255,e.check=i(e.check,S,4,0)),f=0,C=0,e.mode=4;case 4:for(;C<16;){if(0===Q)break A;Q--,f+=l[E++]<>8),512&e.flags&&(S[0]=255&f,S[1]=f>>>8&255,e.check=i(e.check,S,2,0)),f=0,C=0,e.mode=5;case 5:if(1024&e.flags){for(;C<16;){if(0===Q)break A;Q--,f+=l[E++]<>>8&255,e.check=i(e.check,S,2,0)),f=0,C=0}else e.head&&(e.head.extra=null);e.mode=6;case 6:if(1024&e.flags&&((p=e.length)>Q&&(p=Q),p&&(e.head&&(P=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),n.arraySet(e.head.extra,l,E,p,P)),512&e.flags&&(e.check=i(e.check,l,p,E)),Q-=p,E+=p,e.length-=p),e.length))break A;e.length=0,e.mode=7;case 7:if(2048&e.flags){if(0===Q)break A;p=0;do{P=l[E+p++],e.head&&P&&e.length<65536&&(e.head.name+=String.fromCharCode(P))}while(P&&p>9&1,e.head.done=!0),A.adler=e.check=0,e.mode=B;break;case 10:for(;C<32;){if(0===Q)break A;Q--,f+=l[E++]<>>=7&C,C-=7&C,e.mode=27;break}for(;C<3;){if(0===Q)break A;Q--,f+=l[E++]<>>=1)){case 0:e.mode=14;break;case 1:if(d(e),e.mode=20,6===t){f>>>=2,C-=2;break A}break;case 2:e.mode=17;break;case 3:A.msg="invalid block type",e.mode=g}f>>>=2,C-=2;break;case 14:for(f>>>=7&C,C-=7&C;C<32;){if(0===Q)break A;Q--,f+=l[E++]<>>16^65535)){A.msg="invalid stored block lengths",e.mode=g;break}if(e.length=65535&f,f=0,C=0,e.mode=15,6===t)break A;case 15:e.mode=16;case 16:if(p=e.length){if(p>Q&&(p=Q),p>u&&(p=u),0===p)break A;n.arraySet(w,l,E,p,h),Q-=p,E+=p,u-=p,h+=p,e.length-=p;break}e.mode=B;break;case 17:for(;C<14;){if(0===Q)break A;Q--,f+=l[E++]<>>=5,C-=5,e.ndist=1+(31&f),f>>>=5,C-=5,e.ncode=4+(15&f),f>>>=4,C-=4,e.nlen>286||e.ndist>30){A.msg="too many length or distance symbols",e.mode=g;break}e.have=0,e.mode=18;case 18:for(;e.have>>=3,C-=3}for(;e.have<19;)e.lens[T[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,N={bits:e.lenbits},x=o(0,e.lens,0,19,e.lencode,0,e.work,N),e.lenbits=N.bits,x){A.msg="invalid code lengths set",e.mode=g;break}e.have=0,e.mode=19;case 19:for(;e.have>>16&255,b=65535&G,!((Y=G>>>24)<=C);){if(0===Q)break A;Q--,f+=l[E++]<>>=Y,C-=Y,e.lens[e.have++]=b;else{if(16===b){for(R=Y+2;C>>=Y,C-=Y,0===e.have){A.msg="invalid bit length repeat",e.mode=g;break}P=e.lens[e.have-1],p=3+(3&f),f>>>=2,C-=2}else if(17===b){for(R=Y+3;C>>=Y)),f>>>=3,C-=3}else{for(R=Y+7;C>>=Y)),f>>>=7,C-=7}if(e.have+p>e.nlen+e.ndist){A.msg="invalid bit length repeat",e.mode=g;break}for(;p--;)e.lens[e.have++]=P}}if(e.mode===g)break;if(0===e.lens[256]){A.msg="invalid code -- missing end-of-block",e.mode=g;break}if(e.lenbits=9,N={bits:e.lenbits},x=o(1,e.lens,0,e.nlen,e.lencode,0,e.work,N),e.lenbits=N.bits,x){A.msg="invalid literal/lengths set",e.mode=g;break}if(e.distbits=6,e.distcode=e.distdyn,N={bits:e.distbits},x=o(2,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,N),e.distbits=N.bits,x){A.msg="invalid distances set",e.mode=g;break}if(e.mode=20,6===t)break A;case 20:e.mode=21;case 21:if(Q>=6&&u>=258){A.next_out=h,A.avail_out=u,A.next_in=E,A.avail_in=Q,e.hold=f,e.bits=C,s(A,I),h=A.next_out,w=A.output,u=A.avail_out,E=A.next_in,l=A.input,Q=A.avail_in,f=e.hold,C=e.bits,e.mode===B&&(e.back=-1);break}for(e.back=0;m=(G=e.lencode[f&(1<>>16&255,b=65535&G,!((Y=G>>>24)<=C);){if(0===Q)break A;Q--,f+=l[E++]<>v)])>>>16&255,b=65535&G,!(v+(Y=G>>>24)<=C);){if(0===Q)break A;Q--,f+=l[E++]<>>=v,C-=v,e.back+=v}if(f>>>=Y,C-=Y,e.back+=Y,e.length=b,0===m){e.mode=26;break}if(32&m){e.back=-1,e.mode=B;break}if(64&m){A.msg="invalid literal/length code",e.mode=g;break}e.extra=15&m,e.mode=22;case 22:if(e.extra){for(R=e.extra;C>>=e.extra,C-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=23;case 23:for(;m=(G=e.distcode[f&(1<>>16&255,b=65535&G,!((Y=G>>>24)<=C);){if(0===Q)break A;Q--,f+=l[E++]<>v)])>>>16&255,b=65535&G,!(v+(Y=G>>>24)<=C);){if(0===Q)break A;Q--,f+=l[E++]<>>=v,C-=v,e.back+=v}if(f>>>=Y,C-=Y,e.back+=Y,64&m){A.msg="invalid distance code",e.mode=g;break}e.offset=b,e.extra=15&m,e.mode=24;case 24:if(e.extra){for(R=e.extra;C>>=e.extra,C-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){A.msg="invalid distance too far back",e.mode=g;break}e.mode=25;case 25:if(0===u)break A;if(p=I-u,e.offset>p){if((p=e.offset-p)>e.whave&&e.sane){A.msg="invalid distance too far back",e.mode=g;break}p>e.wnext?(p-=e.wnext,y=e.wsize-p):y=e.wnext-p,p>e.length&&(p=e.length),F=e.window}else F=w,y=h-e.offset,p=e.length;p>u&&(p=u),u-=p,e.length-=p;do{w[h++]=F[y++]}while(--p);0===e.length&&(e.mode=21);break;case 26:if(0===u)break A;w[h++]=e.length,u--,e.mode=21;break;case 27:if(e.wrap){for(;C<32;){if(0===Q)break A;Q--,f|=l[E++]<=1&&0===N[F];F--);if(Y>F&&(Y=F),0===F)return B[g++]=20971520,B[g++]=20971520,l.bits=1,0;for(y=1;y0&&(0===A||1!==F))return-1;for(R[1]=0,I=1;I<15;I++)R[I+1]=R[I]+N[I];for(p=0;p852||2===A&&z>592)return 1;for(;;){C=I-b,c[p]f?(d=G[S+c[p]],M=P[x+c[p]]):(d=96,M=0),w=1<>b)+(E-=w)]=C<<24|d<<16|M}while(0!==E);for(w=1<>=1;if(0!==w?(U&=w-1,U+=w):U=0,p++,0==--N[I]){if(I===F)break;I=t[e+c[p]]}if(I>Y&&(U&Q)!==h){for(0===b&&(b=Y),u+=y,v=1<<(m=I-b);m+b852||2===A&&z>592)return 1;B[h=U&Q]=Y<<24|m<<16|u-g}}return 0!==U&&(B[u+U]=I-b<<24|64<<16),l.bits=Y,0}},6228(A){"use strict";A.exports={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"}},2367(A,t,e){"use strict";var n=e(2519);function r(A){for(var t=A.length;--t>=0;)A[t]=0}var i=[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],s=[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],o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],a=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=new Array(576);r(B);var g=new Array(60);r(g);var c=new Array(512);r(c);var l=new Array(256);r(l);var w=new Array(29);r(w);var E,h,Q,u=new Array(30);function f(A,t,e,n,r){this.static_tree=A,this.extra_bits=t,this.extra_base=e,this.elems=n,this.max_length=r,this.has_stree=A&&A.length}function C(A,t){this.dyn_tree=A,this.max_code=0,this.stat_desc=t}function d(A){return A<256?c[A]:c[256+(A>>>7)]}function M(A,t){A.pending_buf[A.pending++]=255&t,A.pending_buf[A.pending++]=t>>>8&255}function D(A,t,e){A.bi_valid>16-e?(A.bi_buf|=t<>16-A.bi_valid,A.bi_valid+=e-16):(A.bi_buf|=t<>>=1,e<<=1}while(--t>0);return e>>>1}function y(A,t,e){var n,r,i=new Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+e[n-1]<<1;for(r=0;r<=t;r++){var o=A[2*r+1];0!==o&&(A[2*r]=p(i[o]++,o))}}function F(A){var t;for(t=0;t<286;t++)A.dyn_ltree[2*t]=0;for(t=0;t<30;t++)A.dyn_dtree[2*t]=0;for(t=0;t<19;t++)A.bl_tree[2*t]=0;A.dyn_ltree[512]=1,A.opt_len=A.static_len=0,A.last_lit=A.matches=0}function Y(A){A.bi_valid>8?M(A,A.bi_buf):A.bi_valid>0&&(A.pending_buf[A.pending++]=A.bi_buf),A.bi_buf=0,A.bi_valid=0}function m(A,t,e,n){var r=2*t,i=2*e;return A[r]>1;e>=1;e--)b(A,i,e);r=a;do{e=A.heap[1],A.heap[1]=A.heap[A.heap_len--],b(A,i,1),n=A.heap[1],A.heap[--A.heap_max]=e,A.heap[--A.heap_max]=n,i[2*r]=i[2*e]+i[2*n],A.depth[r]=(A.depth[e]>=A.depth[n]?A.depth[e]:A.depth[n])+1,i[2*e+1]=i[2*n+1]=r,A.heap[1]=r++,b(A,i,1)}while(A.heap_len>=2);A.heap[--A.heap_max]=A.heap[1],function(A,t){var e,n,r,i,s,o,a=t.dyn_tree,B=t.max_code,g=t.stat_desc.static_tree,c=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,w=t.stat_desc.extra_base,E=t.stat_desc.max_length,h=0;for(i=0;i<=15;i++)A.bl_count[i]=0;for(a[2*A.heap[A.heap_max]+1]=0,e=A.heap_max+1;e<573;e++)(i=a[2*a[2*(n=A.heap[e])+1]+1]+1)>E&&(i=E,h++),a[2*n+1]=i,n>B||(A.bl_count[i]++,s=0,n>=w&&(s=l[n-w]),o=a[2*n],A.opt_len+=o*(i+s),c&&(A.static_len+=o*(g[2*n+1]+s)));if(0!==h){do{for(i=E-1;0===A.bl_count[i];)i--;A.bl_count[i]--,A.bl_count[i+1]+=2,A.bl_count[E]--,h-=2}while(h>0);for(i=E;0!==i;i--)for(n=A.bl_count[i];0!==n;)(r=A.heap[--e])>B||(a[2*r+1]!==i&&(A.opt_len+=(i-a[2*r+1])*a[2*r],a[2*r+1]=i),n--)}}(A,t),y(i,B,A.bl_count)}function U(A,t,e){var n,r,i=-1,s=t[1],o=0,a=7,B=4;for(0===s&&(a=138,B=3),t[2*(e+1)+1]=65535,n=0;n<=e;n++)r=s,s=t[2*(n+1)+1],++o>=7;n<30;n++)for(u[n]=r<<7,A=0;A<1<0?(2===A.strm.data_type&&(A.strm.data_type=function(A){var t,e=4093624447;for(t=0;t<=31;t++,e>>>=1)if(1&e&&0!==A.dyn_ltree[2*t])return 0;if(0!==A.dyn_ltree[18]||0!==A.dyn_ltree[20]||0!==A.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==A.dyn_ltree[2*t])return 1;return 0}(A)),z(A,A.l_desc),z(A,A.d_desc),s=function(A){var t;for(U(A,A.dyn_ltree,A.l_desc.max_code),U(A,A.dyn_dtree,A.d_desc.max_code),z(A,A.bl_desc),t=18;t>=3&&0===A.bl_tree[2*a[t]+1];t--);return A.opt_len+=3*(t+1)+5+5+4,t}(A),r=A.opt_len+3+7>>>3,(i=A.static_len+3+7>>>3)<=r&&(r=i)):r=i=e+5,e+4<=r&&-1!==t?N(A,t,e,n):4===A.strategy||i===r?(D(A,2+(n?1:0),3),v(A,B,g)):(D(A,4+(n?1:0),3),function(A,t,e,n){var r;for(D(A,t-257,5),D(A,e-1,5),D(A,n-4,4),r=0;r>>8&255,A.pending_buf[A.d_buf+2*A.last_lit+1]=255&t,A.pending_buf[A.l_buf+A.last_lit]=255&e,A.last_lit++,0===t?A.dyn_ltree[2*e]++:(A.matches++,t--,A.dyn_ltree[2*(l[e]+256+1)]++,A.dyn_dtree[2*d(t)]++),A.last_lit===A.lit_bufsize-1},t._tr_align=function(A){D(A,2,3),I(A,256,B),function(A){16===A.bi_valid?(M(A,A.bi_buf),A.bi_buf=0,A.bi_valid=0):A.bi_valid>=8&&(A.pending_buf[A.pending++]=255&A.bi_buf,A.bi_buf>>=8,A.bi_valid-=8)}(A)}},7468(A){"use strict";A.exports=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}},884(A){"use strict";A.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},9964(A){var t,e,n=A.exports={};function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(A){if(t===setTimeout)return setTimeout(A,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(A,0);try{return t(A,0)}catch(e){try{return t.call(null,A,0)}catch(e){return t.call(this,A,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(A){t=r}try{e="function"==typeof clearTimeout?clearTimeout:i}catch(A){e=i}}();var o,a=[],B=!1,g=-1;function c(){B&&o&&(B=!1,o.length?a=o.concat(a):g=-1,a.length&&l())}function l(){if(!B){var A=s(c);B=!0;for(var t=a.length;t;){for(o=a,a=[];++g1)for(var e=1;e"===i?(v(e,"onsgmldeclaration",e.sgmlDecl),e.sgmlDecl="",e.state=y.TEXT):f(i)?(e.state=y.SGML_DECL_QUOTED,e.sgmlDecl+=i):e.sgmlDecl+=i;continue;case y.SGML_DECL_QUOTED:i===e.q&&(e.state=y.SGML_DECL,e.q=""),e.sgmlDecl+=i;continue;case y.DOCTYPE:">"===i?(e.state=y.TEXT,v(e,"ondoctype",e.doctype),e.doctype=!0):(e.doctype+=i,"["===i?e.state=y.DOCTYPE_DTD:f(i)&&(e.state=y.DOCTYPE_QUOTED,e.q=i));continue;case y.DOCTYPE_QUOTED:e.doctype+=i,i===e.q&&(e.q="",e.state=y.DOCTYPE);continue;case y.DOCTYPE_DTD:"]"===i?(e.doctype+=i,e.state=y.DOCTYPE):"<"===i?(e.state=y.OPEN_WAKA,e.startTagPosition=e.position):f(i)?(e.doctype+=i,e.state=y.DOCTYPE_DTD_QUOTED,e.q=i):e.doctype+=i;continue;case y.DOCTYPE_DTD_QUOTED:e.doctype+=i,i===e.q&&(e.state=y.DOCTYPE_DTD,e.q="");continue;case y.COMMENT:"-"===i?e.state=y.COMMENT_ENDING:e.comment+=i;continue;case y.COMMENT_ENDING:"-"===i?(e.state=y.COMMENT_ENDED,e.comment=U(e.opt,e.comment),e.comment&&v(e,"oncomment",e.comment),e.comment=""):(e.comment+="-"+i,e.state=y.COMMENT);continue;case y.COMMENT_ENDED:">"!==i?(N(e,"Malformed comment"),e.comment+="--"+i,e.state=y.COMMENT):e.doctype&&!0!==e.doctype?e.state=y.DOCTYPE_DTD:e.state=y.TEXT;continue;case y.CDATA:for(s=n-1;i&&"]"!==i;)(i=j(t,n++))&&e.trackPosition&&(e.position++,"\n"===i?(e.line++,e.column=0):e.column++);e.cdata+=t.substring(s,n-1),"]"===i&&(e.state=y.CDATA_ENDING);continue;case y.CDATA_ENDING:"]"===i?e.state=y.CDATA_ENDING_2:(e.cdata+="]"+i,e.state=y.CDATA);continue;case y.CDATA_ENDING_2:">"===i?(e.cdata&&v(e,"oncdata",e.cdata),v(e,"onclosecdata"),e.cdata="",e.state=y.TEXT):"]"===i?e.cdata+="]":(e.cdata+="]]"+i,e.state=y.CDATA);continue;case y.PROC_INST:"?"===i?e.state=y.PROC_INST_ENDING:u(i)?e.state=y.PROC_INST_BODY:e.procInstName+=i;continue;case y.PROC_INST_BODY:if(!e.procInstBody&&u(i))continue;"?"===i?e.state=y.PROC_INST_ENDING:e.procInstBody+=i;continue;case y.PROC_INST_ENDING:if(">"===i){const A={name:e.procInstName,body:e.procInstBody};b(e,A),v(e,"onprocessinginstruction",A),e.procInstName=e.procInstBody="",e.state=y.TEXT}else e.procInstBody+="?"+i,e.state=y.PROC_INST_BODY;continue;case y.OPEN_TAG:d(E,i)?e.tagName+=i:(R(e),">"===i?T(e):"/"===i?e.state=y.OPEN_TAG_SLASH:(u(i)||N(e,"Invalid character in tag name"),e.state=y.ATTRIB));continue;case y.OPEN_TAG_SLASH:">"===i?(T(e,!0),H(e)):(N(e,"Forward-slash in opening tag not followed by >"),e.state=y.ATTRIB);continue;case y.ATTRIB:if(u(i))continue;">"===i?T(e):"/"===i?e.state=y.OPEN_TAG_SLASH:d(w,i)?(e.attribName=i,e.attribValue="",e.state=y.ATTRIB_NAME):N(e,"Invalid attribute name");continue;case y.ATTRIB_NAME:"="===i?e.state=y.ATTRIB_VALUE:">"===i?(N(e,"Attribute without value"),e.attribValue=e.attribName,S(e),T(e)):u(i)?e.state=y.ATTRIB_NAME_SAW_WHITE:d(E,i)?e.attribName+=i:N(e,"Invalid attribute name");continue;case y.ATTRIB_NAME_SAW_WHITE:if("="===i)e.state=y.ATTRIB_VALUE;else{if(u(i))continue;N(e,"Attribute without value"),e.tag.attributes[e.attribName]="",e.attribValue="",v(e,"onattribute",{name:e.attribName,value:""}),e.attribName="",">"===i?T(e):d(w,i)?(e.attribName=i,e.state=y.ATTRIB_NAME):(N(e,"Invalid attribute name"),e.state=y.ATTRIB)}continue;case y.ATTRIB_VALUE:if(u(i))continue;f(i)?(e.q=i,e.state=y.ATTRIB_VALUE_QUOTED):(e.opt.unquotedAttributeValues||P(e,"Unquoted attribute value"),e.state=y.ATTRIB_VALUE_UNQUOTED,e.attribValue=i);continue;case y.ATTRIB_VALUE_QUOTED:if(i!==e.q){"&"===i?e.state=y.ATTRIB_VALUE_ENTITY_Q:e.attribValue+=i;continue}S(e),e.q="",e.state=y.ATTRIB_VALUE_CLOSED;continue;case y.ATTRIB_VALUE_CLOSED:u(i)?e.state=y.ATTRIB:">"===i?T(e):"/"===i?e.state=y.OPEN_TAG_SLASH:d(w,i)?(N(e,"No whitespace between attributes"),e.attribName=i,e.attribValue="",e.state=y.ATTRIB_NAME):N(e,"Invalid attribute name");continue;case y.ATTRIB_VALUE_UNQUOTED:if(!C(i)){"&"===i?e.state=y.ATTRIB_VALUE_ENTITY_U:e.attribValue+=i;continue}S(e),">"===i?T(e):e.state=y.ATTRIB;continue;case y.CLOSE_TAG:if(e.tagName)">"===i?H(e):d(E,i)?e.tagName+=i:e.script?(e.script+=""===i?H(e):N(e,"Invalid characters in closing tag");continue;case y.TEXT_ENTITY:case y.ATTRIB_VALUE_ENTITY_Q:case y.ATTRIB_VALUE_ENTITY_U:var g,c;switch(e.state){case y.TEXT_ENTITY:g=y.TEXT,c="textNode";break;case y.ATTRIB_VALUE_ENTITY_Q:g=y.ATTRIB_VALUE_QUOTED,c="attribValue";break;case y.ATTRIB_VALUE_ENTITY_U:g=y.ATTRIB_VALUE_UNQUOTED,c="attribValue"}if(";"===i){var l=k(e);e.opt.unparsedEntities&&!Object.values(A.XML_ENTITIES).includes(l)?((e.entityCount+=1)>e.opt.maxEntityCount&&P(e,"Parsed entity count exceeds max entity count"),(e.entityDepth+=1)>e.opt.maxEntityDepth&&P(e,"Parsed entity depth exceeds max entity depth"),e.entity="",e.state=g,e.write(l),e.entityDepth-=1):(e[c]+=l,e.entity="",e.state=g)}else d(e.entity.length?Q:h,i)?e.entity+=i:(N(e,"Invalid character in entity name"),e[c]+="&"+e.entity+i,e.entity="",e.state=g);continue;default:throw new Error(e,"Unknown state: "+e.state)}return e.position>=e.bufferCheckPosition&&function(t){for(var e=Math.max(A.MAX_BUFFER_LENGTH,10),n=0,i=0,s=r.length;ie)switch(r[i]){case"textNode":z(t);break;case"cdata":v(t,"oncdata",t.cdata),t.cdata="";break;case"script":v(t,"onscript",t.script),t.script="";break;default:P(t,"Max buffer length exceeded: "+r[i])}n=Math.max(n,o)}var a=A.MAX_BUFFER_LENGTH-n;t.bufferCheckPosition=a+t.position}(e),e},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var A;z(A=this),""!==A.cdata&&(v(A,"oncdata",A.cdata),A.cdata=""),""!==A.script&&(v(A,"onscript",A.script),A.script="")}};try{t=e(9760).Stream}catch(A){t=function(){}}t||(t=function(){});var s=A.EVENTS.filter((function(A){return"error"!==A&&"end"!==A}));function o(A,e){if(!(this instanceof o))return new o(A,e);t.apply(this),this._parser=new i(A,e),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(A){n.emit("error",A),n._parser.error=null},this._decoder=null,this._decoderBuffer=null,s.forEach((function(A){Object.defineProperty(n,"on"+A,{get:function(){return n._parser["on"+A]},set:function(t){if(!t)return n.removeAllListeners(A),n._parser["on"+A]=t,t;n.on(A,t)},enumerable:!0,configurable:!1})}))}o.prototype=Object.create(t.prototype,{constructor:{value:o}}),o.prototype._decodeBuffer=function(A,t){if(this._decoderBuffer&&(A=n.concat([this._decoderBuffer,A]),this._decoderBuffer=null),!this._decoder){var e=function(A,t){if(A.length>=2){if(255===A[0]&&254===A[1])return"utf-16le";if(254===A[0]&&255===A[1])return"utf-16be"}return A.length>=3&&239===A[0]&&187===A[1]&&191===A[2]?"utf8":A.length>=4?60===A[0]&&0===A[1]&&63===A[2]&&0===A[3]?"utf-16le":0===A[0]&&60===A[1]&&0===A[2]&&63===A[3]?"utf-16be":"utf8":t?"utf8":null}(A,t);if(!e)return this._decoderBuffer=A,"";this._parser.encoding=e,this._decoder=new TextDecoder(e)}return this._decoder.decode(A,{stream:!t})},o.prototype.write=function(A){if("function"==typeof n&&"function"==typeof n.isBuffer&&n.isBuffer(A))A=this._decodeBuffer(A,!1);else if(this._decoderBuffer){var t=this._decodeBuffer(n.alloc(0),!0);t&&(this._parser.write(t),this.emit("data",t))}return this._parser.write(A.toString()),this.emit("data",A),!0},o.prototype.end=function(A){if(A&&A.length&&this.write(A),this._decoderBuffer){var t=this._decodeBuffer(n.alloc(0),!0);t&&(this._parser.write(t),this.emit("data",t))}else if(this._decoder){var e=this._decoder.decode();e&&(this._parser.write(e),this.emit("data",e))}return this._parser.end(),!0},o.prototype.on=function(A,e){var n=this;return n._parser["on"+A]||-1===s.indexOf(A)||(n._parser["on"+A]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,A),n.emit.apply(n,t)}),t.prototype.on.call(n,A,e)};var a="[CDATA[",B="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/2000/xmlns/",l={xml:g,xmlns:c},w=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,E=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,h=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Q=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function u(A){return" "===A||"\n"===A||"\r"===A||"\t"===A}function f(A){return'"'===A||"'"===A}function C(A){return">"===A||u(A)}function d(A,t){return A.test(t)}function M(A,t){return!d(A,t)}var D,I,p,y=0;for(var F in A.STATE={BEGIN:y++,BEGIN_WHITESPACE:y++,TEXT:y++,TEXT_ENTITY:y++,OPEN_WAKA:y++,SGML_DECL:y++,SGML_DECL_QUOTED:y++,DOCTYPE:y++,DOCTYPE_QUOTED:y++,DOCTYPE_DTD:y++,DOCTYPE_DTD_QUOTED:y++,COMMENT_STARTING:y++,COMMENT:y++,COMMENT_ENDING:y++,COMMENT_ENDED:y++,CDATA:y++,CDATA_ENDING:y++,CDATA_ENDING_2:y++,PROC_INST:y++,PROC_INST_BODY:y++,PROC_INST_ENDING:y++,OPEN_TAG:y++,OPEN_TAG_SLASH:y++,ATTRIB:y++,ATTRIB_NAME:y++,ATTRIB_NAME_SAW_WHITE:y++,ATTRIB_VALUE:y++,ATTRIB_VALUE_QUOTED:y++,ATTRIB_VALUE_CLOSED:y++,ATTRIB_VALUE_UNQUOTED:y++,ATTRIB_VALUE_ENTITY_Q:y++,ATTRIB_VALUE_ENTITY_U:y++,CLOSE_TAG:y++,CLOSE_TAG_SAW_WHITE:y++,SCRIPT:y++,SCRIPT_ENDING:y++},A.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},A.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(A.ENTITIES).forEach((function(t){var e=A.ENTITIES[t],n="number"==typeof e?String.fromCharCode(e):e;A.ENTITIES[t]=n})),A.STATE)A.STATE[A.STATE[F]]=F;function Y(A,t,e){A[t]&&A[t](e)}function m(A){return A?A.toLowerCase().replace(/[^a-z0-9]/g,""):null}function b(A,t){if(A.strict&&A.encoding&&t&&"xml"===t.name){var e,n,r=(n=(e=t.body)&&e.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i))?n[2]:null;r&&!function(A,t){const e=m(A),n=m(t);return!e||!n||("utf16"===n?"utf16le"===e||"utf16be"===e:e===n)}(A.encoding,r)&&N(A,"XML declaration encoding "+r+" does not match detected stream encoding "+A.encoding.toUpperCase())}}function v(A,t,e){A.textNode&&z(A),Y(A,t,e)}function z(A){A.textNode=U(A.opt,A.textNode),A.textNode&&Y(A,"ontext",A.textNode),A.textNode=""}function U(A,t){return A.trim&&(t=t.trim()),A.normalize&&(t=t.replace(/\s+/g," ")),t}function P(A,t){return z(A),A.trackPosition&&(t+="\nLine: "+A.line+"\nColumn: "+A.column+"\nChar: "+A.c),t=new Error(t),A.error=t,Y(A,"onerror",t),A}function x(A){return A.sawRoot&&!A.closedRoot&&N(A,"Unclosed root tag"),A.state!==y.BEGIN&&A.state!==y.BEGIN_WHITESPACE&&A.state!==y.TEXT&&P(A,"Unexpected end"),z(A),A.c="",A.closed=!0,Y(A,"onend"),i.call(A,A.strict,A.opt),A}function N(A,t){if("object"!=typeof A||!(A instanceof i))throw new Error("bad call to strictFail");A.strict&&P(A,t)}function R(A){A.strict||(A.tagName=A.tagName[A.looseCase]());var t=A.tags[A.tags.length-1]||A,e=A.tag={name:A.tagName,attributes:{}};A.opt.xmlns&&(e.ns=t.ns),A.attribList.length=0,v(A,"onopentagstart",e)}function G(A,t){var e=A.indexOf(":")<0?["",A]:A.split(":"),n=e[0],r=e[1];return t&&"xmlns"===A&&(n="xmlns",r=""),{prefix:n,local:r}}function S(A){if(A.strict||(A.attribName=A.attribName[A.looseCase]()),-1!==A.attribList.indexOf(A.attribName)||A.tag.attributes.hasOwnProperty(A.attribName))A.attribName=A.attribValue="";else{if(A.opt.xmlns){var t=G(A.attribName,!0),e=t.prefix,n=t.local;if("xmlns"===e)if("xml"===n&&A.attribValue!==g)N(A,"xml: prefix must be bound to "+g+"\nActual: "+A.attribValue);else if("xmlns"===n&&A.attribValue!==c)N(A,"xmlns: prefix must be bound to "+c+"\nActual: "+A.attribValue);else{var r=A.tag,i=A.tags[A.tags.length-1]||A;r.ns===i.ns&&(r.ns=Object.create(i.ns)),r.ns[n]=A.attribValue}A.attribList.push([A.attribName,A.attribValue])}else A.tag.attributes[A.attribName]=A.attribValue,v(A,"onattribute",{name:A.attribName,value:A.attribValue});A.attribName=A.attribValue=""}}function T(A,t){if(A.opt.xmlns){var e=A.tag,n=G(A.tagName);e.prefix=n.prefix,e.local=n.local,e.uri=e.ns[n.prefix]||"",e.prefix&&!e.uri&&(N(A,"Unbound namespace prefix: "+JSON.stringify(A.tagName)),e.uri=n.prefix);var r=A.tags[A.tags.length-1]||A;e.ns&&r.ns!==e.ns&&Object.keys(e.ns).forEach((function(t){v(A,"onopennamespace",{prefix:t,uri:e.ns[t]})}));for(var i=0,s=A.attribList.length;i",A.tagName="",void(A.state=y.SCRIPT);v(A,"onscript",A.script),A.script=""}var t=A.tags.length,e=A.tagName;A.strict||(e=e[A.looseCase]());for(var n=e;t--&&A.tags[t].name!==n;)N(A,"Unexpected close tag");if(t<0)return N(A,"Unmatched closing tag: "+A.tagName),A.textNode+="",void(A.state=y.TEXT);A.tagName=e;for(var r=A.tags.length;r-- >t;){var i=A.tag=A.tags.pop();A.tagName=A.tag.name,v(A,"onclosetag",A.tagName);var s={};for(var o in i.ns)s[o]=i.ns[o];var a=A.tags[A.tags.length-1]||A;A.opt.xmlns&&i.ns!==a.ns&&Object.keys(i.ns).forEach((function(t){var e=i.ns[t];v(A,"onclosenamespace",{prefix:t,uri:e})}))}0===t&&(A.closedRoot=!0),A.tagName=A.attribValue=A.attribName="",A.attribList.length=0,A.state=y.TEXT}function k(A){var t,e=A.entity,n=e.toLowerCase(),r="";return A.ENTITIES[e]?A.ENTITIES[e]:A.ENTITIES[n]?A.ENTITIES[n]:("#"===(e=n).charAt(0)&&("x"===e.charAt(1)?(e=e.slice(2),r=(t=parseInt(e,16)).toString(16)):(e=e.slice(1),r=(t=parseInt(e,10)).toString(10))),e=e.replace(/^0+/,""),isNaN(t)||r.toLowerCase()!==e||t<0||t>1114111?(N(A,"Invalid character entity"),"&"+A.entity+";"):String.fromCodePoint(t))}function L(A,t){"<"===t?(A.state=y.OPEN_WAKA,A.startTagPosition=A.position):u(t)||(N(A,"Non-whitespace before first tag."),A.textNode=t,A.state=y.TEXT)}function j(A,t){var e="";return t1114111||I(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?e.push(s):(A=55296+((s-=65536)>>10),t=s%1024+56320,e.push(A,t)),(n+1===r||e.length>16384)&&(i+=D.apply(null,e),e.length=0)}return i},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:p,configurable:!0,writable:!0}):String.fromCodePoint=p)}(t)},6255(A,t,e){"use strict";var n=e(8651),r=e(9295),i=e(8890)(),s=e(8109),o=e(6785),a=n("%Math.floor%");A.exports=function(A,t){if("function"!=typeof A)throw new o("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||a(t)!==t)throw new o("`length` must be a positive 32-bit integer");var e=arguments.length>2&&!!arguments[2],n=!0,B=!0;if("length"in A&&s){var g=s(A,"length");g&&!g.configurable&&(n=!1),g&&!g.writable&&(B=!1)}return(n||B||!e)&&(i?r(A,"length",t,!0,!0):r(A,"length",t)),A}},9760(A,t,e){A.exports=r;var n=e(4785).EventEmitter;function r(){n.call(this)}e(9784)(r,n),r.Readable=e(8261),r.Writable=e(9781),r.Duplex=e(4903),r.Transform=e(8569),r.PassThrough=e(7723),r.finished=e(2167),r.pipeline=e(3765),r.Stream=r,r.prototype.pipe=function(A,t){var e=this;function r(t){A.writable&&!1===A.write(t)&&e.pause&&e.pause()}function i(){e.readable&&e.resume&&e.resume()}e.on("data",r),A.on("drain",i),A._isStdio||t&&!1===t.end||(e.on("end",o),e.on("close",a));var s=!1;function o(){s||(s=!0,A.end())}function a(){s||(s=!0,"function"==typeof A.destroy&&A.destroy())}function B(A){if(g(),0===n.listenerCount(this,"error"))throw A}function g(){e.removeListener("data",r),A.removeListener("drain",i),e.removeListener("end",o),e.removeListener("close",a),e.removeListener("error",B),A.removeListener("error",B),e.removeListener("end",g),e.removeListener("close",g),A.removeListener("close",g)}return e.on("error",B),A.on("error",B),e.on("end",g),e.on("close",g),A.on("close",g),A.emit("pipe",e),A}},3797(A){"use strict";var t={};function e(A,e,n){n||(n=Error);var r=function(A){var t,n;function r(t,n,r){return A.call(this,function(A,t,n){return"string"==typeof e?e:e(A,t,n)}(t,n,r))||this}return n=A,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(n);r.prototype.name=n.name,r.prototype.code=A,t[A]=r}function n(A,t){if(Array.isArray(A)){var e=A.length;return A=A.map((function(A){return String(A)})),e>2?"one of ".concat(t," ").concat(A.slice(0,e-1).join(", "),", or ")+A[e-1]:2===e?"one of ".concat(t," ").concat(A[0]," or ").concat(A[1]):"of ".concat(t," ").concat(A[0])}return"of ".concat(t," ").concat(String(A))}e("ERR_INVALID_OPT_VALUE",(function(A,t){return'The value "'+t+'" is invalid for option "'+A+'"'}),TypeError),e("ERR_INVALID_ARG_TYPE",(function(A,t,e){var r,i,s,o,a;if("string"==typeof t&&(i="not ",t.substr(0,4)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(A,t,e){return(void 0===e||e>A.length)&&(e=A.length),A.substring(e-9,e)===t}(A," argument"))s="The ".concat(A," ").concat(r," ").concat(n(t,"type"));else{var B=("number"!=typeof a&&(a=0),a+1>(o=A).length||-1===o.indexOf(".",a)?"argument":"property");s='The "'.concat(A,'" ').concat(B," ").concat(r," ").concat(n(t,"type"))}return s+". Received type ".concat(typeof e)}),TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",(function(A){return"The "+A+" method is not implemented"})),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",(function(A){return"Cannot call "+A+" after a stream was destroyed"})),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",(function(A){return"Unknown encoding: "+A}),TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),A.exports.F=t},4903(A,t,e){"use strict";var n=e(9964),r=Object.keys||function(A){var t=[];for(var e in A)t.push(e);return t};A.exports=g;var i=e(8261),s=e(9781);e(9784)(g,i);for(var o=r(s.prototype),a=0;a0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(A){return a.from(A)}(t)),n)o.endEmitted?D(A,new M):Y(A,o,t,!0);else if(o.ended)D(A,new C);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!e?(t=o.decoder.write(t),o.objectMode||0!==t.length?Y(A,o,t,!1):U(A,o)):Y(A,o,t,!1)}else n||(o.reading=!1,U(A,o));return!o.ended&&(o.lengtht.highWaterMark&&(t.highWaterMark=function(A){return A>=m?A=m:(A--,A|=A>>>1,A|=A>>>2,A|=A>>>4,A|=A>>>8,A|=A>>>16,A++),A}(A)),A<=t.length?A:t.ended?t.length:(t.needReadable=!0,0))}function v(A){var t=A._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(z,A))}function z(A){var t=A._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(A.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,G(A)}function U(A,t){t.readingMore||(t.readingMore=!0,r.nextTick(P,A,t))}function P(A,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:A.listenerCount("data")>0&&A.resume()}function N(A){i("readable nexttick read 0"),A.read(0)}function R(A,t){i("resume",t.reading),t.reading||A.read(0),t.resumeScheduled=!1,A.emit("resume"),G(A),t.flowing&&!t.reading&&A.read(0)}function G(A){var t=A._readableState;for(i("flow",t.flowing);t.flowing&&null!==A.read(););}function S(A,t){return 0===t.length?null:(t.objectMode?e=t.buffer.shift():!A||A>=t.length?(e=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):e=t.buffer.consume(A,t.decoder),e);var e}function T(A){var t=A._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(H,t,A))}function H(A,t){if(i("endReadableNT",A.endEmitted,A.length),!A.endEmitted&&0===A.length&&(A.endEmitted=!0,t.readable=!1,t.emit("end"),A.autoDestroy)){var e=t._writableState;(!e||e.autoDestroy&&e.finished)&&t.destroy()}}function k(A,t){for(var e=0,n=A.length;e=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?T(this):v(this),null;if(0===(A=b(A,t))&&t.ended)return 0===t.length&&T(this),null;var n,r=t.needReadable;return i("need readable",r),(0===t.length||t.length-A0?S(A,t):null)?(t.needReadable=t.length<=t.highWaterMark,A=0):(t.length-=A,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),e!==A&&t.ended&&T(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(A){D(this,new d("_read()"))},y.prototype.pipe=function(A,t){var e=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=A;break;case 1:n.pipes=[n.pipes,A];break;default:n.pipes.push(A)}n.pipesCount+=1,i("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||A===r.stdout||A===r.stderr?h:a;function a(){i("onend"),A.end()}n.endEmitted?r.nextTick(o):e.once("end",o),A.on("unpipe",(function t(r,s){i("onunpipe"),r===e&&s&&!1===s.hasUnpiped&&(s.hasUnpiped=!0,i("cleanup"),A.removeListener("close",w),A.removeListener("finish",E),A.removeListener("drain",B),A.removeListener("error",l),A.removeListener("unpipe",t),e.removeListener("end",a),e.removeListener("end",h),e.removeListener("data",c),g=!0,!n.awaitDrain||A._writableState&&!A._writableState.needDrain||B())}));var B=function(A){return function(){var t=A._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(A,"data")&&(t.flowing=!0,G(A))}}(e);A.on("drain",B);var g=!1;function c(t){i("ondata");var r=A.write(t);i("dest.write",r),!1===r&&((1===n.pipesCount&&n.pipes===A||n.pipesCount>1&&-1!==k(n.pipes,A))&&!g&&(i("false write response, pause",n.awaitDrain),n.awaitDrain++),e.pause())}function l(t){i("onerror",t),h(),A.removeListener("error",l),0===s(A,"error")&&D(A,t)}function w(){A.removeListener("finish",E),h()}function E(){i("onfinish"),A.removeListener("close",w),h()}function h(){i("unpipe"),e.unpipe(A)}return e.on("data",c),function(A,t,e){if("function"==typeof A.prependListener)return A.prependListener(t,e);A._events&&A._events[t]?Array.isArray(A._events[t])?A._events[t].unshift(e):A._events[t]=[e,A._events[t]]:A.on(t,e)}(A,"error",l),A.once("close",w),A.once("finish",E),A.emit("pipe",e),n.flowing||(i("pipe resume"),e.resume()),A},y.prototype.unpipe=function(A){var t=this._readableState,e={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return A&&A!==t.pipes||(A||(A=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,A&&A.emit("unpipe",this,e)),this;if(!A){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==n.flowing&&this.resume()):"readable"===A&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i("on readable",n.length,n.reading),n.length?v(this):n.reading||r.nextTick(N,this))),e},y.prototype.addListener=y.prototype.on,y.prototype.removeListener=function(A,t){var e=o.prototype.removeListener.call(this,A,t);return"readable"===A&&r.nextTick(x,this),e},y.prototype.removeAllListeners=function(A){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==A&&void 0!==A||r.nextTick(x,this),t},y.prototype.resume=function(){var A=this._readableState;return A.flowing||(i("resume"),A.flowing=!A.readableListening,function(A,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(R,A,t))}(this,A)),A.paused=!1,this},y.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},y.prototype.wrap=function(A){var t=this,e=this._readableState,n=!1;for(var r in A.on("end",(function(){if(i("wrapped end"),e.decoder&&!e.ended){var A=e.decoder.end();A&&A.length&&t.push(A)}t.push(null)})),A.on("data",(function(r){i("wrapped data"),e.decoder&&(r=e.decoder.write(r)),e.objectMode&&null==r||(e.objectMode||r&&r.length)&&(t.push(r)||(n=!0,A.pause()))})),A)void 0===this[r]&&"function"==typeof A[r]&&(this[r]=function(t){return function(){return A[t].apply(A,arguments)}}(r));for(var s=0;s-1))throw new M(A);return this._writableState.defaultEncoding=A,this},Object.defineProperty(y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(A,t,e){e(new h("_write()"))},y.prototype._writev=null,y.prototype.end=function(A,t,e){var n=this._writableState;return"function"==typeof A?(e=A,A=null,t=null):"function"==typeof t&&(e=t,t=null),null!=A&&this.write(A,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(A,t,e){t.ending=!0,z(A,t),e&&(t.finished?r.nextTick(e):A.once("finish",e)),t.ended=!0,A.writable=!1}(this,n,e),this},Object.defineProperty(y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(y.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(A){this._writableState&&(this._writableState.destroyed=A)}}),y.prototype.destroy=c.destroy,y.prototype._undestroy=c.undestroy,y.prototype._destroy=function(A,t){t(A)}},9676(A,t,e){"use strict";var n,r=e(9964);function i(A,t,e){return(t=function(A){var t=function(A){if("object"!=typeof A||null===A)return A;var t=A[Symbol.toPrimitive];if(void 0!==t){var e=t.call(A,"string");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}(A);return"symbol"==typeof t?t:String(t)}(t))in A?Object.defineProperty(A,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):A[t]=e,A}var s=e(2167),o=Symbol("lastResolve"),a=Symbol("lastReject"),B=Symbol("error"),g=Symbol("ended"),c=Symbol("lastPromise"),l=Symbol("handlePromise"),w=Symbol("stream");function E(A,t){return{value:A,done:t}}function h(A){var t=A[o];if(null!==t){var e=A[w].read();null!==e&&(A[c]=null,A[o]=null,A[a]=null,t(E(e,!1)))}}function Q(A){r.nextTick(h,A)}var u=Object.getPrototypeOf((function(){})),f=Object.setPrototypeOf((i(n={get stream(){return this[w]},next:function(){var A=this,t=this[B];if(null!==t)return Promise.reject(t);if(this[g])return Promise.resolve(E(void 0,!0));if(this[w].destroyed)return new Promise((function(t,e){r.nextTick((function(){A[B]?e(A[B]):t(E(void 0,!0))}))}));var e,n=this[c];if(n)e=new Promise(function(A,t){return function(e,n){A.then((function(){t[g]?e(E(void 0,!0)):t[l](e,n)}),n)}}(n,this));else{var i=this[w].read();if(null!==i)return Promise.resolve(E(i,!1));e=new Promise(this[l])}return this[c]=e,e}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var A=this;return new Promise((function(t,e){A[w].destroy(null,(function(A){A?e(A):t(E(void 0,!0))}))}))})),n),u);A.exports=function(A){var t,e=Object.create(f,(i(t={},w,{value:A,writable:!0}),i(t,o,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,B,{value:null,writable:!0}),i(t,g,{value:A._readableState.endEmitted,writable:!0}),i(t,l,{value:function(A,t){var n=e[w].read();n?(e[c]=null,e[o]=null,e[a]=null,A(E(n,!1))):(e[o]=A,e[a]=t)},writable:!0}),t));return e[c]=null,s(A,(function(A){if(A&&"ERR_STREAM_PREMATURE_CLOSE"!==A.code){var t=e[a];return null!==t&&(e[c]=null,e[o]=null,e[a]=null,t(A)),void(e[B]=A)}var n=e[o];null!==n&&(e[c]=null,e[o]=null,e[a]=null,n(E(void 0,!0))),e[g]=!0})),A.on("readable",Q.bind(null,e)),e}},7385(A,t,e){"use strict";var n=e(9964);function r(A,t){s(A,t),i(A)}function i(A){A._writableState&&!A._writableState.emitClose||A._readableState&&!A._readableState.emitClose||A.emit("close")}function s(A,t){A.emit("error",t)}A.exports={destroy:function(A,t){var e=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(A):A&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(s,this,A)):n.nextTick(s,this,A)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(A||null,(function(A){!t&&A?e._writableState?e._writableState.errorEmitted?n.nextTick(i,e):(e._writableState.errorEmitted=!0,n.nextTick(r,e,A)):n.nextTick(r,e,A):t?(n.nextTick(i,e),t(A)):n.nextTick(i,e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(A,t){var e=A._readableState,n=A._writableState;e&&e.autoDestroy||n&&n.autoDestroy?A.destroy(t):A.emit("error",t)}}},2167(A,t,e){"use strict";var n=e(3797).F.ERR_STREAM_PREMATURE_CLOSE;function r(){}A.exports=function A(t,e,i){if("function"==typeof e)return A(t,null,e);e||(e={}),i=function(A){var t=!1;return function(){if(!t){t=!0;for(var e=arguments.length,n=new Array(e),r=0;r0,(function(A){g||(g=A),A&&l.forEach(a),i||(l.forEach(a),c(g))}))}));return t.reduce(B)}},8130(A,t,e){"use strict";var n=e(3797).F.ERR_INVALID_OPT_VALUE;A.exports={getHighWaterMark:function(A,t,e,r){var i=function(A,t,e){return null!=A.highWaterMark?A.highWaterMark:t?A[e]:null}(t,r,e);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(r?e:"highWaterMark",i);return Math.floor(i)}return A.objectMode?16:16384}}},9018(A,t,e){A.exports=e(4785).EventEmitter},3143(A,t,e){"use strict";var n=e(5691).Buffer,r=n.isEncoding||function(A){switch((A=""+A)&&A.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}};function i(A){var t;switch(this.encoding=function(A){var t=function(A){if(!A)return"utf8";for(var t;;)switch(A){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return A;default:if(t)return;A=(""+A).toLowerCase(),t=!0}}(A);if("string"!=typeof t&&(n.isEncoding===r||!r(A)))throw new Error("Unknown encoding: "+A);return t||A}(A),this.encoding){case"utf16le":this.text=a,this.end=B,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=g,this.end=c,t=3;break;default:return this.write=l,void(this.end=w)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(A){return A<=127?0:A>>5==6?2:A>>4==14?3:A>>3==30?4:A>>6==2?-1:-2}function o(A){var t=this.lastTotal-this.lastNeed,e=function(A,t){if(128!=(192&t[0]))return A.lastNeed=0,"�";if(A.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return A.lastNeed=1,"�";if(A.lastNeed>2&&t.length>2&&128!=(192&t[2]))return A.lastNeed=2,"�"}}(this,A);return void 0!==e?e:this.lastNeed<=A.length?(A.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(A.copy(this.lastChar,t,0,A.length),void(this.lastNeed-=A.length))}function a(A,t){if((A.length-t)%2==0){var e=A.toString("utf16le",t);if(e){var n=e.charCodeAt(e.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=A[A.length-2],this.lastChar[1]=A[A.length-1],e.slice(0,-1)}return e}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=A[A.length-1],A.toString("utf16le",t,A.length-1)}function B(A){var t=A&&A.length?this.write(A):"";if(this.lastNeed){var e=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,e)}return t}function g(A,t){var e=(A.length-t)%3;return 0===e?A.toString("base64",t):(this.lastNeed=3-e,this.lastTotal=3,1===e?this.lastChar[0]=A[A.length-1]:(this.lastChar[0]=A[A.length-2],this.lastChar[1]=A[A.length-1]),A.toString("base64",t,A.length-e))}function c(A){var t=A&&A.length?this.write(A):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(A){return A.toString(this.encoding)}function w(A){return A&&A.length?this.write(A):""}t.I=i,i.prototype.write=function(A){if(0===A.length)return"";var t,e;if(this.lastNeed){if(void 0===(t=this.fillLast(A)))return"";e=this.lastNeed,this.lastNeed=0}else e=0;return e=0?(r>0&&(A.lastNeed=r-1),r):--n=0?(r>0&&(A.lastNeed=r-2),r):--n=0?(r>0&&(2===r?r=0:A.lastNeed=r-3),r):0}(this,A,t);if(!this.lastNeed)return A.toString("utf8",t);this.lastTotal=e;var n=A.length-(e-this.lastNeed);return A.copy(this.lastChar,0,n),A.toString("utf8",t,n)},i.prototype.fillLast=function(A){if(this.lastNeed<=A.length)return A.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);A.copy(this.lastChar,this.lastTotal-this.lastNeed,0,A.length),this.lastNeed-=A.length}},3483(A){function t(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function e(A,e){this.source=A,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=e,this.destLen=0,this.ltree=new t,this.dtree=new t}var n=new t,r=new t,i=new Uint8Array(30),s=new Uint16Array(30),o=new Uint8Array(30),a=new Uint16Array(30),B=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),g=new t,c=new Uint8Array(320);function l(A,t,e,n){var r,i;for(r=0;r>>=1,t}function Q(A,t,e){if(!t)return e;for(;A.bitcount<24;)A.tag|=A.source[A.sourceIndex++]<>>16-t;return A.tag>>>=t,A.bitcount-=t,n+e}function u(A,t){for(;A.bitcount<24;)A.tag|=A.source[A.sourceIndex++]<>>=1,++r,e+=t.table[r],n-=t.table[r]}while(n>=0);return A.tag=i,A.bitcount-=r,t.trans[e+n]}function f(A,t,e){var n,r,i,s,o,a;for(n=Q(A,5,257),r=Q(A,5,1),i=Q(A,4,4),s=0;s<19;++s)c[s]=0;for(s=0;s8;)A.sourceIndex--,A.bitcount-=8;if((t=256*(t=A.source[A.sourceIndex+1])+A.source[A.sourceIndex])!==(65535&~(256*A.source[A.sourceIndex+3]+A.source[A.sourceIndex+2])))return-3;for(A.sourceIndex+=4,e=t;e;--e)A.dest[A.destLen++]=A.source[A.sourceIndex++];return A.bitcount=0,0}!function(A,t){var e;for(e=0;e<7;++e)A.table[e]=0;for(A.table[7]=24,A.table[8]=152,A.table[9]=112,e=0;e<24;++e)A.trans[e]=256+e;for(e=0;e<144;++e)A.trans[24+e]=e;for(e=0;e<8;++e)A.trans[168+e]=280+e;for(e=0;e<112;++e)A.trans[176+e]=144+e;for(e=0;e<5;++e)t.table[e]=0;for(t.table[5]=32,e=0;e<32;++e)t.trans[e]=e}(n,r),l(i,s,4,3),l(o,a,2,1),i[28]=0,s[28]=258,A.exports=function(A,t){var i,s,o=new e(A,t);do{switch(i=h(o),Q(o,2,0)){case 0:s=d(o);break;case 1:s=C(o,n,r);break;case 2:f(o,o.ltree,o.dtree),s=C(o,o.ltree,o.dtree);break;default:s=-3}if(0!==s)throw new Error("Data error")}while(!i);return o.destLen=r)return A;switch(A){case"%s":return String(n[e++]);case"%d":return Number(n[e++]);case"%j":try{return JSON.stringify(n[e++])}catch(A){return"[Circular]"}default:return A}})),o=n[e];e=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Q(e)?n.showHidden=e:e&&t._extend(n,e),d(n.showHidden)&&(n.showHidden=!1),d(n.depth)&&(n.depth=2),d(n.colors)&&(n.colors=!1),d(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=g),l(n,A,n.depth)}function g(A,t){var e=B.styles[t];return e?"["+B.colors[e][0]+"m"+A+"["+B.colors[e][1]+"m":A}function c(A,t){return A}function l(A,e,n){if(A.customInspect&&e&&y(e.inspect)&&e.inspect!==t.inspect&&(!e.constructor||e.constructor.prototype!==e)){var r=e.inspect(n,A);return C(r)||(r=l(A,r,n)),r}var i=function(A,t){if(d(t))return A.stylize("undefined","undefined");if(C(t)){var e="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(e,"string")}return f(t)?A.stylize(""+t,"number"):Q(t)?A.stylize(""+t,"boolean"):u(t)?A.stylize("null","null"):void 0}(A,e);if(i)return i;var s=Object.keys(e),o=function(A){var t={};return A.forEach((function(A,e){t[A]=!0})),t}(s);if(A.showHidden&&(s=Object.getOwnPropertyNames(e)),p(e)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return w(e);if(0===s.length){if(y(e)){var a=e.name?": "+e.name:"";return A.stylize("[Function"+a+"]","special")}if(M(e))return A.stylize(RegExp.prototype.toString.call(e),"regexp");if(I(e))return A.stylize(Date.prototype.toString.call(e),"date");if(p(e))return w(e)}var B,g="",c=!1,D=["{","}"];return h(e)&&(c=!0,D=["[","]"]),y(e)&&(g=" [Function"+(e.name?": "+e.name:"")+"]"),M(e)&&(g=" "+RegExp.prototype.toString.call(e)),I(e)&&(g=" "+Date.prototype.toUTCString.call(e)),p(e)&&(g=" "+w(e)),0!==s.length||c&&0!=e.length?n<0?M(e)?A.stylize(RegExp.prototype.toString.call(e),"regexp"):A.stylize("[Object]","special"):(A.seen.push(e),B=c?function(A,t,e,n,r){for(var i=[],s=0,o=t.length;s60?e[0]+(""===t?"":t+"\n ")+" "+A.join(",\n ")+" "+e[1]:e[0]+t+" "+A.join(", ")+" "+e[1]}(B,g,D)):D[0]+g+D[1]}function w(A){return"["+Error.prototype.toString.call(A)+"]"}function E(A,t,e,n,r,i){var s,o,a;if((a=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?o=a.set?A.stylize("[Getter/Setter]","special"):A.stylize("[Getter]","special"):a.set&&(o=A.stylize("[Setter]","special")),b(n,r)||(s="["+r+"]"),o||(A.seen.indexOf(a.value)<0?(o=u(e)?l(A,a.value,null):l(A,a.value,e-1)).indexOf("\n")>-1&&(o=i?o.split("\n").map((function(A){return" "+A})).join("\n").slice(2):"\n"+o.split("\n").map((function(A){return" "+A})).join("\n")):o=A.stylize("[Circular]","special")),d(s)){if(i&&r.match(/^\d+$/))return o;(s=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=A.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=A.stylize(s,"string"))}return s+": "+o}function h(A){return Array.isArray(A)}function Q(A){return"boolean"==typeof A}function u(A){return null===A}function f(A){return"number"==typeof A}function C(A){return"string"==typeof A}function d(A){return void 0===A}function M(A){return D(A)&&"[object RegExp]"===F(A)}function D(A){return"object"==typeof A&&null!==A}function I(A){return D(A)&&"[object Date]"===F(A)}function p(A){return D(A)&&("[object Error]"===F(A)||A instanceof Error)}function y(A){return"function"==typeof A}function F(A){return Object.prototype.toString.call(A)}function Y(A){return A<10?"0"+A.toString(10):A.toString(10)}t.debuglog=function(A){if(A=A.toUpperCase(),!s[A])if(o.test(A)){var e=n.pid;s[A]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",A,e,n)}}else s[A]=function(){};return s[A]},t.inspect=B,B.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]},B.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=e(9490),t.isArray=h,t.isBoolean=Q,t.isNull=u,t.isNullOrUndefined=function(A){return null==A},t.isNumber=f,t.isString=C,t.isSymbol=function(A){return"symbol"==typeof A},t.isUndefined=d,t.isRegExp=M,t.types.isRegExp=M,t.isObject=D,t.isDate=I,t.types.isDate=I,t.isError=p,t.types.isNativeError=p,t.isFunction=y,t.isPrimitive=function(A){return null===A||"boolean"==typeof A||"number"==typeof A||"string"==typeof A||"symbol"==typeof A||void 0===A},t.isBuffer=e(1201);var m=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function b(A,t){return Object.prototype.hasOwnProperty.call(A,t)}t.log=function(){var A,e;console.log("%s - %s",(e=[Y((A=new Date).getHours()),Y(A.getMinutes()),Y(A.getSeconds())].join(":"),[A.getDate(),m[A.getMonth()],e].join(" ")),t.format.apply(t,arguments))},t.inherits=e(9784),t._extend=function(A,t){if(!t||!D(t))return A;for(var e=Object.keys(t),n=e.length;n--;)A[e[n]]=t[e[n]];return A};var v="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function z(A,t){if(!A){var e=new Error("Promise was rejected with a falsy value");e.reason=A,A=e}return t(A)}t.promisify=function(A){if("function"!=typeof A)throw new TypeError('The "original" argument must be of type Function');if(v&&A[v]){var t;if("function"!=typeof(t=A[v]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,v,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,e,n=new Promise((function(A,n){t=A,e=n})),r=[],i=0;i-1?t:"Object"===t&&function(A){var t=!1;return n(h,(function(e,n){if(!t)try{e(A),t=w(n,1)}catch(A){}})),t}(A)}return o?function(A){var t=!1;return n(h,(function(e,n){if(!t)try{"$"+e(A)===n&&(t=w(n,1))}catch(A){}})),t}(A):null}},6946(A,t,e){var n,r;void 0===(r="function"==typeof(n=function(){"use strict";function t(A,t,e){var n=new XMLHttpRequest;n.open("GET",A),n.responseType="blob",n.onload=function(){o(n.response,t,e)},n.onerror=function(){console.error("could not download file")},n.send()}function n(A){var t=new XMLHttpRequest;t.open("HEAD",A,!1);try{t.send()}catch(A){}return 200<=t.status&&299>=t.status}function r(A){try{A.dispatchEvent(new MouseEvent("click"))}catch(e){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof e.g&&e.g.global===e.g?e.g:void 0,s=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=i.saveAs||("object"!=typeof window||window!==i?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!s?function(A,e,s){var o=i.URL||i.webkitURL,a=document.createElement("a");e=e||A.name||"download",a.download=e,a.rel="noopener","string"==typeof A?(a.href=A,a.origin===location.origin?r(a):n(a.href)?t(A,e,s):r(a,a.target="_blank")):(a.href=o.createObjectURL(A),setTimeout((function(){o.revokeObjectURL(a.href)}),4e4),setTimeout((function(){r(a)}),0))}:"msSaveOrOpenBlob"in navigator?function(A,e,i){if(e=e||A.name||"download","string"!=typeof A)navigator.msSaveOrOpenBlob(function(A,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob(["\ufeff",A],{type:A.type}):A}(A,i),e);else if(n(A))t(A,e,i);else{var s=document.createElement("a");s.href=A,s.target="_blank",setTimeout((function(){r(s)}))}}:function(A,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof A)return t(A,e,n);var o="application/octet-stream"===A.type,a=/constructor/i.test(i.HTMLElement)||i.safari,B=/CriOS\/[\d]+/.test(navigator.userAgent);if((B||o&&a||s)&&"undefined"!=typeof FileReader){var g=new FileReader;g.onloadend=function(){var A=g.result;A=B?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=A:location=A,r=null},g.readAsDataURL(A)}else{var c=i.URL||i.webkitURL,l=c.createObjectURL(A);r?r.location=l:location.href=l,r=null,setTimeout((function(){c.revokeObjectURL(l)}),4e4)}});i.saveAs=o.saveAs=o,A.exports=o})?n.apply(t,[]):n)||(A.exports=r)},6274(){},8535(){},5470(){},3779(){},7199(){},5117(A){"use strict";A.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},4074(A,t,e){"use strict";var n,r,i,s=e(5117),o=e(5144),a=e(7756),B=e(8681),g=e(3598),c=e(6341),l=e(9391),w=e(8819),E=e(5719),h=e(4092),Q=e(1182),u=e(9877),f=e(8607),C=e(443),d=e(8663),M=e(6044),D=e(6921),I=D.enforce,p=D.get,y=a.Int8Array,F=y&&y.prototype,Y=a.Uint8ClampedArray,m=Y&&Y.prototype,b=y&&f(y),v=F&&f(F),z=Object.prototype,U=a.TypeError,P=d("toStringTag"),x=M("TYPED_ARRAY_TAG"),N="TypedArrayConstructor",R=s&&!!C&&"Opera"!==l(a.opera),G=!1,S={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},T={BigInt64Array:8,BigUint64Array:8},H=function(A){var t=f(A);if(g(t)){var e=p(t);return e&&c(e,N)?e[N]:H(t)}},k=function(A){if(!g(A))return!1;var t=l(A);return c(S,t)||c(T,t)};for(n in S)(i=(r=a[n])&&r.prototype)?I(i)[N]=r:R=!1;for(n in T)(i=(r=a[n])&&r.prototype)&&(I(i)[N]=r);if((!R||!B(b)||b===Function.prototype)&&(b=function(){throw new U("Incorrect invocation")},R))for(n in S)a[n]&&C(a[n],b);if((!R||!v||v===z)&&(v=b.prototype,R))for(n in S)a[n]&&C(a[n].prototype,v);if(R&&f(m)!==v&&C(m,v),o&&!c(v,P))for(n in G=!0,Q(v,P,{configurable:!0,get:function(){return g(this)?this[x]:void 0}}),S)a[n]&&E(a[n].prototype,x,n);A.exports={NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_TAG:G&&x,aTypedArray:function(A){if(k(A))return A;throw new U("Target is not a typed array")},aTypedArrayConstructor:function(A){if(B(A)&&(!C||u(b,A)))return A;throw new U(w(A)+" is not a typed array constructor")},exportTypedArrayMethod:function(A,t,e,n){if(o){if(e)for(var r in S){var i=a[r];if(i&&c(i.prototype,A))try{delete i.prototype[A]}catch(e){try{i.prototype[A]=t}catch(A){}}}v[A]&&!e||h(v,A,e?t:R&&F[A]||t,n)}},exportTypedArrayStaticMethod:function(A,t,e){var n,r;if(o){if(C){if(e)for(n in S)if((r=a[n])&&c(r,A))try{delete r[A]}catch(A){}if(b[A]&&!e)return;try{return h(b,A,e?t:R&&b[A]||t)}catch(A){}}for(n in S)!(r=a[n])||r[A]&&!e||h(r,A,t)}},getTypedArrayConstructor:H,isView:function(A){if(!g(A))return!1;var t=l(A);return"DataView"===t||c(S,t)||c(T,t)},isTypedArray:k,TypedArray:b,TypedArrayPrototype:v}},4415(A,t){"use strict";t._=function(A,t,e){return t in A?Object.defineProperty(A,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):A[t]=e,A}},8395(A,t,e){"use strict";t._=e(1635).__decorate},821(A,t,e){"use strict";var n=e(884),r="undefined"==typeof globalThis?e.g:globalThis;A.exports=function(){for(var A=[],t=0;t1?arguments[1]:void 0,e),a=s>2?arguments[2]:void 0,B=void 0===a?e:r(a,e);B>o;)t[o++]=A;return t}},789(A,t,e){"use strict";var n=e(5137),r=e(4918),i=e(4730),s=function(A){return function(t,e,s){var o=n(t),a=i(o);if(0===a)return!A&&-1;var B,g=r(s,a);if(A&&e!=e){for(;a>g;)if((B=o[g++])!=B)return!0}else for(;a>g;g++)if((A||g in o)&&o[g]===e)return A||g||0;return!A&&-1}};A.exports={includes:s(!0),indexOf:s(!1)}},2740(A,t,e){"use strict";var n=e(1212);A.exports=n([].slice)},644(A,t,e){"use strict";var n=e(2740),r=Math.floor,i=function(A,t){var e=A.length;if(e<8)for(var s,o,a=1;a0;)A[o]=A[--o];o!==a++&&(A[o]=s)}else for(var B=r(e/2),g=i(n(A,0,B),t),c=i(n(A,B),t),l=g.length,w=c.length,E=0,h=0;E0&&n[0]<4?1:+(n[0]+n[1])),!r&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(r=+n[1]),A.exports=r},4507(A,t,e){"use strict";var n=e(8115).match(/AppleWebKit\/(\d+)\./);A.exports=!!n&&+n[1]},3762(A,t,e){"use strict";var n=e(7756),r=e(423).f,i=e(5719),s=e(4092),o=e(7309),a=e(8032),B=e(5888);A.exports=function(A,t){var e,g,c,l,w,E=A.target,h=A.global,Q=A.stat;if(e=h?n:Q?n[E]||o(E,{}):n[E]&&n[E].prototype)for(g in t){if(l=t[g],c=A.dontCallGetSet?(w=r(e,g))&&w.value:e[g],!B(h?g:E+(Q?".":"#")+g,A.forced)&&void 0!==c){if(typeof l==typeof c)continue;a(l,c)}(A.sham||c&&c.sham)&&i(l,"sham",!0),s(e,g,l,A)}}},299(A){"use strict";A.exports=function(A){try{return!!A()}catch(A){return!0}}},1676(A,t,e){"use strict";var n=e(299);A.exports=!n((function(){var A=function(){}.bind();return"function"!=typeof A||A.hasOwnProperty("prototype")}))},8993(A,t,e){"use strict";var n=e(1676),r=Function.prototype.call;A.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},4378(A,t,e){"use strict";var n=e(5144),r=e(6341),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,o=r(i,"name"),a=o&&"something"===function(){}.name,B=o&&(!n||n&&s(i,"name").configurable);A.exports={EXISTS:o,PROPER:a,CONFIGURABLE:B}},4494(A,t,e){"use strict";var n=e(1212),r=e(1078);A.exports=function(A,t,e){try{return n(r(Object.getOwnPropertyDescriptor(A,t)[e]))}catch(A){}}},5336(A,t,e){"use strict";var n=e(8420),r=e(1212);A.exports=function(A){if("Function"===n(A))return r(A)}},1212(A,t,e){"use strict";var n=e(1676),r=Function.prototype,i=r.call,s=n&&r.bind.bind(i,i);A.exports=n?s:function(A){return function(){return i.apply(A,arguments)}}},7139(A,t,e){"use strict";var n=e(7756),r=e(8681);A.exports=function(A,t){return arguments.length<2?(e=n[A],r(e)?e:void 0):n[A]&&n[A][t];var e}},9738(A,t,e){"use strict";var n=e(1078),r=e(6297);A.exports=function(A,t){var e=A[t];return r(e)?void 0:n(e)}},7756(A,t,e){"use strict";var n=function(A){return A&&A.Math===Math&&A};A.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6341(A,t,e){"use strict";var n=e(1212),r=e(3297),i=n({}.hasOwnProperty);A.exports=Object.hasOwn||function(A,t){return i(r(A),t)}},2993(A){"use strict";A.exports={}},4329(A,t,e){"use strict";var n=e(7139);A.exports=n("document","documentElement")},7657(A,t,e){"use strict";var n=e(5144),r=e(299),i=e(2283);A.exports=!n&&!r((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2203(A,t,e){"use strict";var n=e(1212),r=e(299),i=e(8420),s=Object,o=n("".split);A.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(A){return"String"===i(A)?o(A,""):s(A)}:s},4550(A,t,e){"use strict";var n=e(1212),r=e(8681),i=e(3793),s=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(A){return s(A)}),A.exports=i.inspectSource},6921(A,t,e){"use strict";var n,r,i,s=e(1194),o=e(7756),a=e(3598),B=e(5719),g=e(6341),c=e(3793),l=e(7099),w=e(2993),E="Object already initialized",h=o.TypeError,Q=o.WeakMap;if(s||c.state){var u=c.state||(c.state=new Q);u.get=u.get,u.has=u.has,u.set=u.set,n=function(A,t){if(u.has(A))throw new h(E);return t.facade=A,u.set(A,t),t},r=function(A){return u.get(A)||{}},i=function(A){return u.has(A)}}else{var f=l("state");w[f]=!0,n=function(A,t){if(g(A,f))throw new h(E);return t.facade=A,B(A,f,t),t},r=function(A){return g(A,f)?A[f]:{}},i=function(A){return g(A,f)}}A.exports={set:n,get:r,has:i,enforce:function(A){return i(A)?r(A):n(A,{})},getterFor:function(A){return function(t){var e;if(!a(t)||(e=r(t)).type!==A)throw new h("Incompatible receiver, "+A+" required");return e}}}},8468(A,t,e){"use strict";var n=e(8420);A.exports=Array.isArray||function(A){return"Array"===n(A)}},8681(A){"use strict";var t="object"==typeof document&&document.all;A.exports=void 0===t&&void 0!==t?function(A){return"function"==typeof A||A===t}:function(A){return"function"==typeof A}},5888(A,t,e){"use strict";var n=e(299),r=e(8681),i=/#|\.prototype\./,s=function(A,t){var e=a[o(A)];return e===g||e!==B&&(r(t)?n(t):!!t)},o=s.normalize=function(A){return String(A).replace(i,".").toLowerCase()},a=s.data={},B=s.NATIVE="N",g=s.POLYFILL="P";A.exports=s},6297(A){"use strict";A.exports=function(A){return null==A}},3598(A,t,e){"use strict";var n=e(8681);A.exports=function(A){return"object"==typeof A?null!==A:n(A)}},2657(A,t,e){"use strict";var n=e(3598);A.exports=function(A){return n(A)||null===A}},7695(A){"use strict";A.exports=!1},5985(A,t,e){"use strict";var n=e(7139),r=e(8681),i=e(9877),s=e(8300),o=Object;A.exports=s?function(A){return"symbol"==typeof A}:function(A){var t=n("Symbol");return r(t)&&i(t.prototype,o(A))}},4730(A,t,e){"use strict";var n=e(8266);A.exports=function(A){return n(A.length)}},3383(A,t,e){"use strict";var n=e(1212),r=e(299),i=e(8681),s=e(6341),o=e(5144),a=e(4378).CONFIGURABLE,B=e(4550),g=e(6921),c=g.enforce,l=g.get,w=String,E=Object.defineProperty,h=n("".slice),Q=n("".replace),u=n([].join),f=o&&!r((function(){return 8!==E((function(){}),"length",{value:8}).length})),C=String(String).split("String"),d=A.exports=function(A,t,e){"Symbol("===h(w(t),0,7)&&(t="["+Q(w(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(t="get "+t),e&&e.setter&&(t="set "+t),(!s(A,"name")||a&&A.name!==t)&&(o?E(A,"name",{value:t,configurable:!0}):A.name=t),f&&e&&s(e,"arity")&&A.length!==e.arity&&E(A,"length",{value:e.arity});try{e&&s(e,"constructor")&&e.constructor?o&&E(A,"prototype",{writable:!1}):A.prototype&&(A.prototype=void 0)}catch(A){}var n=c(A);return s(n,"source")||(n.source=u(C,"string"==typeof t?t:"")),A};Function.prototype.toString=d((function(){return i(this)&&l(this).source||B(this)}),"toString")},2537(A){"use strict";var t=Math.ceil,e=Math.floor;A.exports=Math.trunc||function(A){var n=+A;return(n>0?e:t)(n)}},4860(A,t,e){"use strict";var n,r=e(2091),i=e(2197),s=e(2555),o=e(2993),a=e(4329),B=e(2283),g=e(7099),c="prototype",l="script",w=g("IE_PROTO"),E=function(){},h=function(A){return"<"+l+">"+A+""},Q=function(A){A.write(h("")),A.close();var t=A.parentWindow.Object;return A=null,t},u=function(){try{n=new ActiveXObject("htmlfile")}catch(A){}var A,t,e;u="undefined"!=typeof document?document.domain&&n?Q(n):(t=B("iframe"),e="java"+l+":",t.style.display="none",a.appendChild(t),t.src=String(e),(A=t.contentWindow.document).open(),A.write(h("document.F=Object")),A.close(),A.F):Q(n);for(var r=s.length;r--;)delete u[c][s[r]];return u()};o[w]=!0,A.exports=Object.create||function(A,t){var e;return null!==A?(E[c]=r(A),e=new E,E[c]=null,e[w]=A):e=u(),void 0===t?e:i.f(e,t)}},2197(A,t,e){"use strict";var n=e(5144),r=e(2538),i=e(2333),s=e(2091),o=e(5137),a=e(9428);t.f=n&&!r?Object.defineProperties:function(A,t){s(A);for(var e,n=o(t),r=a(t),B=r.length,g=0;B>g;)i.f(A,e=r[g++],n[e]);return A}},2333(A,t,e){"use strict";var n=e(5144),r=e(7657),i=e(2538),s=e(2091),o=e(1413),a=TypeError,B=Object.defineProperty,g=Object.getOwnPropertyDescriptor,c="enumerable",l="configurable",w="writable";t.f=n?i?function(A,t,e){if(s(A),t=o(t),s(e),"function"==typeof A&&"prototype"===t&&"value"in e&&w in e&&!e[w]){var n=g(A,t);n&&n[w]&&(A[t]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:c in e?e[c]:n[c],writable:!1})}return B(A,t,e)}:B:function(A,t,e){if(s(A),t=o(t),s(e),r)try{return B(A,t,e)}catch(A){}if("get"in e||"set"in e)throw new a("Accessors not supported");return"value"in e&&(A[t]=e.value),A}},423(A,t,e){"use strict";var n=e(5144),r=e(8993),i=e(4961),s=e(8264),o=e(5137),a=e(1413),B=e(6341),g=e(7657),c=Object.getOwnPropertyDescriptor;t.f=n?c:function(A,t){if(A=o(A),t=a(t),g)try{return c(A,t)}catch(A){}if(B(A,t))return s(!r(i.f,A,t),A[t])}},5412(A,t,e){"use strict";var n=e(3120),r=e(2555).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(A){return n(A,r)}},4073(A,t){"use strict";t.f=Object.getOwnPropertySymbols},8607(A,t,e){"use strict";var n=e(6341),r=e(8681),i=e(3297),s=e(7099),o=e(5071),a=s("IE_PROTO"),B=Object,g=B.prototype;A.exports=o?B.getPrototypeOf:function(A){var t=i(A);if(n(t,a))return t[a];var e=t.constructor;return r(e)&&t instanceof e?e.prototype:t instanceof B?g:null}},9877(A,t,e){"use strict";var n=e(1212);A.exports=n({}.isPrototypeOf)},3120(A,t,e){"use strict";var n=e(1212),r=e(6341),i=e(5137),s=e(789).indexOf,o=e(2993),a=n([].push);A.exports=function(A,t){var e,n=i(A),B=0,g=[];for(e in n)!r(o,e)&&r(n,e)&&a(g,e);for(;t.length>B;)r(n,e=t[B++])&&(~s(g,e)||a(g,e));return g}},9428(A,t,e){"use strict";var n=e(3120),r=e(2555);A.exports=Object.keys||function(A){return n(A,r)}},4961(A,t){"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!e.call({1:2},1);t.f=r?function(A){var t=n(this,A);return!!t&&t.enumerable}:e},443(A,t,e){"use strict";var n=e(4494),r=e(3598),i=e(5034),s=e(7222);A.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var A,t=!1,e={};try{(A=n(Object.prototype,"__proto__","set"))(e,[]),t=e instanceof Array}catch(A){}return function(e,n){return i(e),s(n),r(e)?(t?A(e,n):e.__proto__=n,e):e}}():void 0)},290(A,t,e){"use strict";var n=e(8993),r=e(8681),i=e(3598),s=TypeError;A.exports=function(A,t){var e,o;if("string"===t&&r(e=A.toString)&&!i(o=n(e,A)))return o;if(r(e=A.valueOf)&&!i(o=n(e,A)))return o;if("string"!==t&&r(e=A.toString)&&!i(o=n(e,A)))return o;throw new s("Can't convert object to primitive value")}},7523(A,t,e){"use strict";var n=e(7139),r=e(1212),i=e(5412),s=e(4073),o=e(2091),a=r([].concat);A.exports=n("Reflect","ownKeys")||function(A){var t=i.f(o(A)),e=s.f;return e?a(t,e(A)):t}},5034(A,t,e){"use strict";var n=e(6297),r=TypeError;A.exports=function(A){if(n(A))throw new r("Can't call method on "+A);return A}},7099(A,t,e){"use strict";var n=e(997),r=e(6044),i=n("keys");A.exports=function(A){return i[A]||(i[A]=r(A))}},3793(A,t,e){"use strict";var n=e(7695),r=e(7756),i=e(7309),s="__core-js_shared__",o=A.exports=r[s]||i(s,{});(o.versions||(o.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},997(A,t,e){"use strict";var n=e(3793);A.exports=function(A,t){return n[A]||(n[A]=t||{})}},4483(A,t,e){"use strict";var n=e(2227),r=e(299),i=e(7756).String;A.exports=!!Object.getOwnPropertySymbols&&!r((function(){var A=Symbol("symbol detection");return!i(A)||!(Object(A)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4918(A,t,e){"use strict";var n=e(2119),r=Math.max,i=Math.min;A.exports=function(A,t){var e=n(A);return e<0?r(e+t,0):i(e,t)}},3018(A,t,e){"use strict";var n=e(3301),r=TypeError;A.exports=function(A){var t=n(A,"number");if("number"==typeof t)throw new r("Can't convert number to bigint");return BigInt(t)}},5137(A,t,e){"use strict";var n=e(2203),r=e(5034);A.exports=function(A){return n(r(A))}},2119(A,t,e){"use strict";var n=e(2537);A.exports=function(A){var t=+A;return t!=t||0===t?0:n(t)}},8266(A,t,e){"use strict";var n=e(2119),r=Math.min;A.exports=function(A){var t=n(A);return t>0?r(t,9007199254740991):0}},3297(A,t,e){"use strict";var n=e(5034),r=Object;A.exports=function(A){return r(n(A))}},4001(A,t,e){"use strict";var n=e(7866),r=RangeError;A.exports=function(A,t){var e=n(A);if(e%t)throw new r("Wrong offset");return e}},7866(A,t,e){"use strict";var n=e(2119),r=RangeError;A.exports=function(A){var t=n(A);if(t<0)throw new r("The argument can't be less than 0");return t}},3301(A,t,e){"use strict";var n=e(8993),r=e(3598),i=e(5985),s=e(9738),o=e(290),a=e(8663),B=TypeError,g=a("toPrimitive");A.exports=function(A,t){if(!r(A)||i(A))return A;var e,a=s(A,g);if(a){if(void 0===t&&(t="default"),e=n(a,A,t),!r(e)||i(e))return e;throw new B("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(A,t)}},1413(A,t,e){"use strict";var n=e(3301),r=e(5985);A.exports=function(A){var t=n(A,"string");return r(t)?t:t+""}},7920(A,t,e){"use strict";var n={};n[e(8663)("toStringTag")]="z",A.exports="[object z]"===String(n)},8819(A){"use strict";var t=String;A.exports=function(A){try{return t(A)}catch(A){return"Object"}}},6044(A,t,e){"use strict";var n=e(1212),r=0,i=Math.random(),s=n(1.1.toString);A.exports=function(A){return"Symbol("+(void 0===A?"":A)+")_"+s(++r+i,36)}},8300(A,t,e){"use strict";var n=e(4483);A.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},2538(A,t,e){"use strict";var n=e(5144),r=e(299);A.exports=n&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1194(A,t,e){"use strict";var n=e(7756),r=e(8681),i=n.WeakMap;A.exports=r(i)&&/native code/.test(String(i))},8663(A,t,e){"use strict";var n=e(7756),r=e(997),i=e(6341),s=e(6044),o=e(4483),a=e(8300),B=n.Symbol,g=r("wks"),c=a?B.for||B:B&&B.withoutSetter||s;A.exports=function(A){return i(g,A)||(g[A]=o&&i(B,A)?B[A]:c("Symbol."+A)),g[A]}},187(A,t,e){"use strict";var n=e(3762),r=e(789).includes,i=e(299),s=e(1825),o=i((function(){return!Array(1).includes()})),a=i((function(){return[,1].includes(void 0,1)}));n({target:"Array",proto:!0,forced:o||a},{includes:function(A){return r(this,A,arguments.length>1?arguments[1]:void 0)}}),s("includes")},8376(A,t,e){"use strict";var n=e(4074),r=e(3161),i=e(3018),s=e(9391),o=e(8993),a=e(1212),B=e(299),g=n.aTypedArray,c=n.exportTypedArrayMethod,l=a("".slice);c("fill",(function(A){var t=arguments.length;g(this);var e="Big"===l(s(this),0,3)?i(A):+A;return o(r,this,e,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),B((function(){var A=0;return new Int8Array(2).fill({valueOf:function(){return A++}}),1!==A})))},6401(A,t,e){"use strict";var n=e(7756),r=e(8993),i=e(4074),s=e(4730),o=e(4001),a=e(3297),B=e(299),g=n.RangeError,c=n.Int8Array,l=c&&c.prototype,w=l&&l.set,E=i.aTypedArray,h=i.exportTypedArrayMethod,Q=!B((function(){var A=new Uint8ClampedArray(2);return r(w,A,{length:1,0:3},1),3!==A[1]})),u=Q&&i.NATIVE_ARRAY_BUFFER_VIEWS&&B((function(){var A=new c(2);return A.set(1),A.set("2",1),0!==A[0]||2!==A[1]}));h("set",(function(A){E(this);var t=o(arguments.length>1?arguments[1]:void 0,1),e=a(A);if(Q)return r(w,this,e,t);var n=this.length,i=s(e),B=0;if(i+t>n)throw new g("Wrong length");for(;B0?1/e>0?0:1:1/e>0?-1:0:t>e?1:tQ)),w(h,"registerFormat",(()=>f)),w(h,"create",(()=>C)),w(h,"defaultLanguage",(()=>d)),w(h,"setDefaultLanguage",(()=>M));let Q=!1,u=[];function f(A){u.push(A)}function C(A,t){for(let e=0;e0?t[0]:"value";if(e.has(n))return e.get(n);let r=A.apply(this,t);return e.set(n,r),r}return Object.defineProperty(this,t,{value:n}),n}}}}let I=new n.Struct({firstCode:n.uint16,entryCount:n.uint16,idDelta:n.int16,idRangeOffset:n.uint16}),p=new n.Struct({startCharCode:n.uint32,endCharCode:n.uint32,glyphID:n.uint32}),y=new n.Struct({startUnicodeValue:n.uint24,additionalCount:n.uint8}),F=new n.Struct({unicodeValue:n.uint24,glyphID:n.uint16}),Y=new n.Array(y,n.uint32),m=new n.Array(F,n.uint32),b=new n.Struct({varSelector:n.uint24,defaultUVS:new n.Pointer(n.uint32,Y,{type:"parent"}),nonDefaultUVS:new n.Pointer(n.uint32,m,{type:"parent"})}),v=new n.VersionedStruct(n.uint16,{0:{length:n.uint16,language:n.uint16,codeMap:new n.LazyArray(n.uint8,256)},2:{length:n.uint16,language:n.uint16,subHeaderKeys:new n.Array(n.uint16,256),subHeaderCount:A=>Math.max.apply(Math,A.subHeaderKeys),subHeaders:new n.LazyArray(I,"subHeaderCount"),glyphIndexArray:new n.LazyArray(n.uint16,"subHeaderCount")},4:{length:n.uint16,language:n.uint16,segCountX2:n.uint16,segCount:A=>A.segCountX2>>1,searchRange:n.uint16,entrySelector:n.uint16,rangeShift:n.uint16,endCode:new n.LazyArray(n.uint16,"segCount"),reservedPad:new n.Reserved(n.uint16),startCode:new n.LazyArray(n.uint16,"segCount"),idDelta:new n.LazyArray(n.int16,"segCount"),idRangeOffset:new n.LazyArray(n.uint16,"segCount"),glyphIndexArray:new n.LazyArray(n.uint16,(A=>(A.length-A._currentOffset)/2))},6:{length:n.uint16,language:n.uint16,firstCode:n.uint16,entryCount:n.uint16,glyphIndices:new n.LazyArray(n.uint16,"entryCount")},8:{reserved:new n.Reserved(n.uint16),length:n.uint32,language:n.uint16,is32:new n.LazyArray(n.uint8,8192),nGroups:n.uint32,groups:new n.LazyArray(p,"nGroups")},10:{reserved:new n.Reserved(n.uint16),length:n.uint32,language:n.uint32,firstCode:n.uint32,entryCount:n.uint32,glyphIndices:new n.LazyArray(n.uint16,"numChars")},12:{reserved:new n.Reserved(n.uint16),length:n.uint32,language:n.uint32,nGroups:n.uint32,groups:new n.LazyArray(p,"nGroups")},13:{reserved:new n.Reserved(n.uint16),length:n.uint32,language:n.uint32,nGroups:n.uint32,groups:new n.LazyArray(p,"nGroups")},14:{length:n.uint32,numRecords:n.uint32,varSelectors:new n.LazyArray(b,"numRecords")}}),z=new n.Struct({platformID:n.uint16,encodingID:n.uint16,table:new n.Pointer(n.uint32,v,{type:"parent",lazy:!0})});var U=new n.Struct({version:n.uint16,numSubtables:n.uint16,tables:new n.Array(z,"numSubtables")}),P=new n.Struct({version:n.int32,revision:n.int32,checkSumAdjustment:n.uint32,magicNumber:n.uint32,flags:n.uint16,unitsPerEm:n.uint16,created:new n.Array(n.int32,2),modified:new n.Array(n.int32,2),xMin:n.int16,yMin:n.int16,xMax:n.int16,yMax:n.int16,macStyle:new n.Bitfield(n.uint16,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:n.uint16,fontDirectionHint:n.int16,indexToLocFormat:n.int16,glyphDataFormat:n.int16}),x=new n.Struct({version:n.int32,ascent:n.int16,descent:n.int16,lineGap:n.int16,advanceWidthMax:n.uint16,minLeftSideBearing:n.int16,minRightSideBearing:n.int16,xMaxExtent:n.int16,caretSlopeRise:n.int16,caretSlopeRun:n.int16,caretOffset:n.int16,reserved:new n.Reserved(n.int16,4),metricDataFormat:n.int16,numberOfMetrics:n.uint16});let N=new n.Struct({advance:n.uint16,bearing:n.int16});var R=new n.Struct({metrics:new n.LazyArray(N,(A=>A.parent.hhea.numberOfMetrics)),bearings:new n.LazyArray(n.int16,(A=>A.parent.maxp.numGlyphs-A.parent.hhea.numberOfMetrics))}),G=new n.Struct({version:n.int32,numGlyphs:n.uint16,maxPoints:n.uint16,maxContours:n.uint16,maxComponentPoints:n.uint16,maxComponentContours:n.uint16,maxZones:n.uint16,maxTwilightPoints:n.uint16,maxStorage:n.uint16,maxFunctionDefs:n.uint16,maxInstructionDefs:n.uint16,maxStackElements:n.uint16,maxSizeOfInstructions:n.uint16,maxComponentElements:n.uint16,maxComponentDepth:n.uint16});function S(A,t,e=0){return 1===A&&J[e]?J[e]:j[A][t]}const T=new Set(["x-mac-roman","x-mac-cyrillic","iso-8859-6","iso-8859-8"]),H={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"},k=new Map;function L(A){let t=k.get(A);if(t)return t;let e=H[A];if(e){let t=new Map;for(let A=0;AS(A.platformID,A.encodingID,A.languageID))),{type:"parent",relativeTo:A=>A.parent.stringOffset,allowNull:!1})}),K=new n.Struct({length:n.uint16,tag:new n.Pointer(n.uint16,new n.String("length","utf16be"),{type:"parent",relativeTo:A=>A.stringOffset})});var V=new n.VersionedStruct(n.uint16,{0:{count:n.uint16,stringOffset:n.uint16,records:new n.Array(W,"count")},1:{count:n.uint16,stringOffset:n.uint16,records:new n.Array(W,"count"),langTagCount:n.uint16,langTags:new n.Array(K,"langTagCount")}}),X=V;const Z=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];V.process=function(A){var t={};for(let A of this.records){let e=O[A.platformID][A.languageID];null==e&&null!=this.langTags&&A.languageID>=32768&&(e=this.langTags[A.languageID-32768].tag),null==e&&(e=A.platformID+"-"+A.languageID);let n=A.nameID>=256?"fontFeatures":Z[A.nameID]||A.nameID;null==t[n]&&(t[n]={});let r=t[n];A.nameID>=256&&(r=r[A.nameID]||(r[A.nameID]={})),"string"!=typeof A.string&&"string"==typeof r[e]||(r[e]=A.string)}this.records=t},V.preEncode=function(){if(Array.isArray(this.records))return;this.version=0;let A=[];for(let t in this.records){let e=this.records[t];"fontFeatures"!==t&&(A.push({platformID:3,encodingID:1,languageID:1033,nameID:Z.indexOf(t),length:2*e.en.length,string:e.en}),"postscriptName"===t&&A.push({platformID:1,encodingID:0,languageID:0,nameID:Z.indexOf(t),length:e.en.length,string:e.en}))}this.records=A,this.count=A.length,this.stringOffset=V.size(this,null,!1)};var _=new n.VersionedStruct(n.uint16,{header:{xAvgCharWidth:n.int16,usWeightClass:n.uint16,usWidthClass:n.uint16,fsType:new n.Bitfield(n.uint16,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:n.int16,ySubscriptYSize:n.int16,ySubscriptXOffset:n.int16,ySubscriptYOffset:n.int16,ySuperscriptXSize:n.int16,ySuperscriptYSize:n.int16,ySuperscriptXOffset:n.int16,ySuperscriptYOffset:n.int16,yStrikeoutSize:n.int16,yStrikeoutPosition:n.int16,sFamilyClass:n.int16,panose:new n.Array(n.uint8,10),ulCharRange:new n.Array(n.uint32,4),vendorID:new n.String(4),fsSelection:new n.Bitfield(n.uint16,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:n.uint16,usLastCharIndex:n.uint16},0:{},1:{typoAscender:n.int16,typoDescender:n.int16,typoLineGap:n.int16,winAscent:n.uint16,winDescent:n.uint16,codePageRange:new n.Array(n.uint32,2)},2:{typoAscender:n.int16,typoDescender:n.int16,typoLineGap:n.int16,winAscent:n.uint16,winDescent:n.uint16,codePageRange:new n.Array(n.uint32,2),xHeight:n.int16,capHeight:n.int16,defaultChar:n.uint16,breakChar:n.uint16,maxContent:n.uint16},5:{typoAscender:n.int16,typoDescender:n.int16,typoLineGap:n.int16,winAscent:n.uint16,winDescent:n.uint16,codePageRange:new n.Array(n.uint32,2),xHeight:n.int16,capHeight:n.int16,defaultChar:n.uint16,breakChar:n.uint16,maxContent:n.uint16,usLowerOpticalPointSize:n.uint16,usUpperOpticalPointSize:n.uint16}});let q=_.versions;q[3]=q[4]=q[2];var $=_,AA=new n.VersionedStruct(n.fixed32,{header:{italicAngle:n.fixed32,underlinePosition:n.int16,underlineThickness:n.int16,isFixedPitch:n.uint32,minMemType42:n.uint32,maxMemType42:n.uint32,minMemType1:n.uint32,maxMemType1:n.uint32},1:{},2:{numberOfGlyphs:n.uint16,glyphNameIndex:new n.Array(n.uint16,"numberOfGlyphs"),names:new n.Array(new n.String(n.uint8))},2.5:{numberOfGlyphs:n.uint16,offsets:new n.Array(n.uint8,"numberOfGlyphs")},3:{},4:{map:new n.Array(n.uint32,(A=>A.parent.maxp.numGlyphs))}}),tA=new n.Struct({controlValues:new n.Array(n.int16)}),eA=new n.Struct({instructions:new n.Array(n.uint8)});let nA=new n.VersionedStruct("head.indexToLocFormat",{0:{offsets:new n.Array(n.uint16)},1:{offsets:new n.Array(n.uint32)}});nA.process=function(){if(0===this.version&&!this._processed){for(let A=0;A>>=1;this._processed=!1}};var rA=nA,iA=new n.Struct({controlValueProgram:new n.Array(n.uint8)}),sA=new n.Array(new n.Buffer);class oA{getCFFVersion(A){for(;A&&!A.hdrSize;)A=A.parent;return A?A.version:-1}decode(A,t){let e=this.getCFFVersion(t)>=2?A.readUInt32BE():A.readUInt16BE();if(0===e)return[];let r,i=A.readUInt8();if(1===i)r=n.uint8;else if(2===i)r=n.uint16;else if(3===i)r=n.uint24;else{if(4!==i)throw new Error(`Bad offset size in CFFIndex: ${i} ${A.pos}`);r=n.uint32}let s=[],o=A.pos+(e+1)*i-1,a=r.decode(A);for(let n=0;n>4;if(15===n)break;t+=aA[n];let r=15&e;if(15===r)break;t+=aA[r]}return parseFloat(t)}return null}static size(A){if(A.forceLarge&&(A=32768),(0|A)!==A){let t=""+A;return 1+Math.ceil((t.length+1)/2)}return-107<=A&&A<=107?1:108<=A&&A<=1131||-1131<=A&&A<=-108?2:-32768<=A&&A<=32767?3:5}static encode(A,t){let e=Number(t);if(t.forceLarge)return A.writeUInt8(29),A.writeInt32BE(e);if((0|e)===e)return-107<=e&&e<=107?A.writeUInt8(e+139):108<=e&&e<=1131?(e-=108,A.writeUInt8(247+(e>>8)),A.writeUInt8(255&e)):-1131<=e&&e<=-108?(e=-e-108,A.writeUInt8(251+(e>>8)),A.writeUInt8(255&e)):-32768<=e&&e<=32767?(A.writeUInt8(28),A.writeInt16BE(e)):(A.writeUInt8(29),A.writeInt32BE(e));{A.writeUInt8(30);let t=""+e;for(let e=0;ethis.decodeOperands(A[r],t,e,[n])));if(null!=A.decode)return A.decode(t,e,n);switch(A){case"number":case"offset":case"sid":return n[0];case"boolean":return!!n[0];default:return n}}encodeOperands(A,t,e,n){return Array.isArray(A)?n.map(((n,r)=>this.encodeOperands(A[r],t,e,n)[0])):null!=A.encode?A.encode(t,n,e):"number"==typeof n?[n]:"boolean"==typeof n?[+n]:Array.isArray(n)?n:[n]}decode(A,t){let e=A.pos+t.length,r={},i=[];Object.defineProperties(r,{parent:{value:t},_startOffset:{value:A.pos}});for(let A in this.fields){let t=this.fields[A];r[t[1]]=t[3]}for(;A.pose[0]},super.decode(A,t,e)}encode(A,t,e){if(!A)return this.offsetType={size:()=>0},this.size(t,e),[new wA(0)];let n=null;return this.offsetType={encode:(A,t)=>n=t},super.encode(A,t,e),[new wA(n)]}constructor(A,t={}){null==t.type&&(t.type="global"),super(null,A,t)}}class wA{valueOf(){return this.val}constructor(A){this.val=A,this.forceLarge=!0}}var EA=new cA([[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","number",.039625],[[12,10],"BlueShift","number",7],[[12,11],"BlueFuzz","number",1],[10,"StdHW","number",null],[11,"StdVW","number",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","boolean",!1],[[12,17],"LanguageGroup","number",0],[[12,18],"ExpansionFactor","number",.06],[[12,19],"initialRandomSeed","number",0],[20,"defaultWidthX","number",0],[21,"nominalWidthX","number",0],[22,"vsindex","number",0],[23,"blend",class{static decode(A,t,e){let n=e.pop();for(;e.length>n;)e.pop()}},null],[19,"Subrs",new lA(new oA,{type:"local"}),null]]),hA=[".notdef","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","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];let QA=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],uA=[".notdef","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","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],fA=new n.Struct({reserved:new n.Reserved(n.uint16),reqFeatureIndex:n.uint16,featureCount:n.uint16,featureIndexes:new n.Array(n.uint16,"featureCount")}),CA=new n.Struct({tag:new n.String(4),langSys:new n.Pointer(n.uint16,fA,{type:"parent"})}),dA=new n.Struct({defaultLangSys:new n.Pointer(n.uint16,fA),count:n.uint16,langSysRecords:new n.Array(CA,"count")}),MA=new n.Struct({tag:new n.String(4),script:new n.Pointer(n.uint16,dA,{type:"parent"})}),DA=new n.Array(MA,n.uint16),IA=new n.Struct({version:n.uint16,nameID:n.uint16}),pA=new n.Struct({featureParams:new n.Pointer(n.uint16,IA),lookupCount:n.uint16,lookupListIndexes:new n.Array(n.uint16,"lookupCount")}),yA=new n.Struct({tag:new n.String(4),feature:new n.Pointer(n.uint16,pA,{type:"parent"})}),FA=new n.Array(yA,n.uint16),YA=new n.Struct({markAttachmentType:n.uint8,flags:new n.Bitfield(n.uint8,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function mA(A){let t=new n.Struct({lookupType:n.uint16,flags:YA,subTableCount:n.uint16,subTables:new n.Array(new n.Pointer(n.uint16,A),"subTableCount"),markFilteringSet:new n.Optional(n.uint16,(A=>A.flags.flags.useMarkFilteringSet))});return new n.LazyArray(new n.Pointer(n.uint16,t),n.uint16)}let bA=new n.Struct({start:n.uint16,end:n.uint16,startCoverageIndex:n.uint16}),vA=new n.VersionedStruct(n.uint16,{1:{glyphCount:n.uint16,glyphs:new n.Array(n.uint16,"glyphCount")},2:{rangeCount:n.uint16,rangeRecords:new n.Array(bA,"rangeCount")}}),zA=new n.Struct({start:n.uint16,end:n.uint16,class:n.uint16}),UA=new n.VersionedStruct(n.uint16,{1:{startGlyph:n.uint16,glyphCount:n.uint16,classValueArray:new n.Array(n.uint16,"glyphCount")},2:{classRangeCount:n.uint16,classRangeRecord:new n.Array(zA,"classRangeCount")}}),PA=new n.Struct({a:n.uint16,b:n.uint16,deltaFormat:n.uint16}),xA=new n.Struct({sequenceIndex:n.uint16,lookupListIndex:n.uint16}),NA=new n.Struct({glyphCount:n.uint16,lookupCount:n.uint16,input:new n.Array(n.uint16,(A=>A.glyphCount-1)),lookupRecords:new n.Array(xA,"lookupCount")}),RA=new n.Array(new n.Pointer(n.uint16,NA),n.uint16),GA=new n.Struct({glyphCount:n.uint16,lookupCount:n.uint16,classes:new n.Array(n.uint16,(A=>A.glyphCount-1)),lookupRecords:new n.Array(xA,"lookupCount")}),SA=new n.Array(new n.Pointer(n.uint16,GA),n.uint16),TA=new n.VersionedStruct(n.uint16,{1:{coverage:new n.Pointer(n.uint16,vA),ruleSetCount:n.uint16,ruleSets:new n.Array(new n.Pointer(n.uint16,RA),"ruleSetCount")},2:{coverage:new n.Pointer(n.uint16,vA),classDef:new n.Pointer(n.uint16,UA),classSetCnt:n.uint16,classSet:new n.Array(new n.Pointer(n.uint16,SA),"classSetCnt")},3:{glyphCount:n.uint16,lookupCount:n.uint16,coverages:new n.Array(new n.Pointer(n.uint16,vA),"glyphCount"),lookupRecords:new n.Array(xA,"lookupCount")}}),HA=new n.Struct({backtrackGlyphCount:n.uint16,backtrack:new n.Array(n.uint16,"backtrackGlyphCount"),inputGlyphCount:n.uint16,input:new n.Array(n.uint16,(A=>A.inputGlyphCount-1)),lookaheadGlyphCount:n.uint16,lookahead:new n.Array(n.uint16,"lookaheadGlyphCount"),lookupCount:n.uint16,lookupRecords:new n.Array(xA,"lookupCount")}),kA=new n.Array(new n.Pointer(n.uint16,HA),n.uint16),LA=new n.VersionedStruct(n.uint16,{1:{coverage:new n.Pointer(n.uint16,vA),chainCount:n.uint16,chainRuleSets:new n.Array(new n.Pointer(n.uint16,kA),"chainCount")},2:{coverage:new n.Pointer(n.uint16,vA),backtrackClassDef:new n.Pointer(n.uint16,UA),inputClassDef:new n.Pointer(n.uint16,UA),lookaheadClassDef:new n.Pointer(n.uint16,UA),chainCount:n.uint16,chainClassSet:new n.Array(new n.Pointer(n.uint16,kA),"chainCount")},3:{backtrackGlyphCount:n.uint16,backtrackCoverage:new n.Array(new n.Pointer(n.uint16,vA),"backtrackGlyphCount"),inputGlyphCount:n.uint16,inputCoverage:new n.Array(new n.Pointer(n.uint16,vA),"inputGlyphCount"),lookaheadGlyphCount:n.uint16,lookaheadCoverage:new n.Array(new n.Pointer(n.uint16,vA),"lookaheadGlyphCount"),lookupCount:n.uint16,lookupRecords:new n.Array(xA,"lookupCount")}}),jA=new n.Fixed(16,"BE",14),JA=new n.Struct({startCoord:jA,peakCoord:jA,endCoord:jA}),OA=new n.Struct({axisCount:n.uint16,regionCount:n.uint16,variationRegions:new n.Array(new n.Array(JA,"axisCount"),"regionCount")}),WA=new n.Struct({shortDeltas:new n.Array(n.int16,(A=>A.parent.shortDeltaCount)),regionDeltas:new n.Array(n.int8,(A=>A.parent.regionIndexCount-A.parent.shortDeltaCount)),deltas:A=>A.shortDeltas.concat(A.regionDeltas)}),KA=new n.Struct({itemCount:n.uint16,shortDeltaCount:n.uint16,regionIndexCount:n.uint16,regionIndexes:new n.Array(n.uint16,"regionIndexCount"),deltaSets:new n.Array(WA,"itemCount")}),VA=new n.Struct({format:n.uint16,variationRegionList:new n.Pointer(n.uint32,OA),variationDataCount:n.uint16,itemVariationData:new n.Array(new n.Pointer(n.uint32,KA),"variationDataCount")}),XA=new n.VersionedStruct(n.uint16,{1:{axisIndex:n.uint16,axisIndex:n.uint16,filterRangeMinValue:jA,filterRangeMaxValue:jA}}),ZA=new n.Struct({conditionCount:n.uint16,conditionTable:new n.Array(new n.Pointer(n.uint32,XA),"conditionCount")}),_A=new n.Struct({featureIndex:n.uint16,alternateFeatureTable:new n.Pointer(n.uint32,pA,{type:"parent"})}),qA=new n.Struct({version:n.fixed32,substitutionCount:n.uint16,substitutions:new n.Array(_A,"substitutionCount")}),$A=new n.Struct({conditionSet:new n.Pointer(n.uint32,ZA,{type:"parent"}),featureTableSubstitution:new n.Pointer(n.uint32,qA,{type:"parent"})}),At=new n.Struct({majorVersion:n.uint16,minorVersion:n.uint16,featureVariationRecordCount:n.uint32,featureVariationRecords:new n.Array($A,"featureVariationRecordCount")});class tt{decode(A,t,e){return this.predefinedOps[e[0]]?this.predefinedOps[e[0]]:this.type.decode(A,t,e)}size(A,t){return this.type.size(A,t)}encode(A,t,e){let n=this.predefinedOps.indexOf(t);return-1!==n?n:this.type.encode(A,t,e)}constructor(A,t){this.predefinedOps=A,this.type=t}}class et extends n.Number{decode(A){return 127&n.uint8.decode(A)}constructor(){super("UInt8")}}let nt=new n.Struct({first:n.uint16,nLeft:n.uint8}),rt=new n.Struct({first:n.uint16,nLeft:n.uint16}),it=new tt([QA,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"]],new lA(new n.VersionedStruct(new et,{0:{nCodes:n.uint8,codes:new n.Array(n.uint8,"nCodes")},1:{nRanges:n.uint8,ranges:new n.Array(nt,"nRanges")}}),{lazy:!0}));class st extends n.Array{decode(A,t){let e=(0,n.resolveLength)(this.length,A,t),r=0,i=[];for(;rA.parent.CharStrings.length-1))},1:{ranges:new st(nt,(A=>A.parent.CharStrings.length-1))},2:{ranges:new st(rt,(A=>A.parent.CharStrings.length-1))}}),{lazy:!0})),at=new n.Struct({first:n.uint16,fd:n.uint8}),Bt=new n.Struct({first:n.uint32,fd:n.uint16}),gt=new n.VersionedStruct(n.uint8,{0:{fds:new n.Array(n.uint8,(A=>A.parent.CharStrings.length))},3:{nRanges:n.uint16,ranges:new n.Array(at,"nRanges"),sentinel:n.uint16},4:{nRanges:n.uint32,ranges:new n.Array(Bt,"nRanges"),sentinel:n.uint32}}),ct=new lA(EA);class lt{decode(A,t,e){return t.length=e[0],ct.decode(A,t,[e[1]])}size(A,t){return[EA.size(A,t,!1),ct.size(A,t)[0]]}encode(A,t,e){return[EA.size(t,e,!1),ct.encode(A,t,e)[0]]}}let wt=new cA([[18,"Private",new lt,null],[[12,38],"FontName","sid",null],[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[[12,5],"PaintType","number",0]]),Et=new cA([[[12,30],"ROS",["sid","sid","number"],null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","boolean",!1],[[12,2],"ItalicAngle","number",0],[[12,3],"UnderlinePosition","number",-100],[[12,4],"UnderlineThickness","number",50],[[12,5],"PaintType","number",0],[[12,6],"CharstringType","number",2],[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[13,"UniqueID","number",null],[5,"FontBBox","array",[0,0,0,0]],[[12,8],"StrokeWidth","number",0],[14,"XUID","array",null],[15,"charset",ot,uA],[16,"Encoding",it,QA],[17,"CharStrings",new lA(new oA),null],[18,"Private",new lt,null],[[12,20],"SyntheticBase","number",null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","number",0],[[12,32],"CIDFontRevision","number",0],[[12,33],"CIDFontType","number",0],[[12,34],"CIDCount","number",8720],[[12,35],"UIDBase","number",null],[[12,37],"FDSelect",new lA(gt),null],[[12,36],"FDArray",new lA(new oA(wt)),null],[[12,38],"FontName","sid",null]]),ht=new n.Struct({length:n.uint16,itemVariationStore:VA}),Qt=new cA([[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[17,"CharStrings",new lA(new oA),null],[[12,37],"FDSelect",new lA(gt),null],[[12,36],"FDArray",new lA(new oA(wt)),null],[24,"vstore",new lA(ht),null],[25,"maxstack","number",193]]);var ut=new n.VersionedStruct(n.fixed16,{1:{hdrSize:n.uint8,offSize:n.uint8,nameIndex:new oA(new n.String("length")),topDictIndex:new oA(Et),stringIndex:new oA(new n.String("length")),globalSubrIndex:new oA},2:{hdrSize:n.uint8,length:n.uint16,topDict:Qt,globalSubrIndex:new oA}});class ft{static decode(A){return new ft(A)}decode(){this.stream.pos;let A=ut.decode(this.stream);for(let t in A){let e=A[t];this[t]=e}if(this.version<2){if(1!==this.topDictIndex.length)throw new Error("Only a single font is allowed in CFF");this.topDict=this.topDictIndex[0]}return this.isCIDFont=null!=this.topDict.ROS,this}string(A){return this.version>=2?null:A=2)return null;if(this.isCIDFont)return null;let{charset:t}=this.topDict;if(Array.isArray(t))return t[A];if(0===A)return".notdef";switch(A-=1,t.version){case 0:return this.string(t.glyphs[A]);case 1:case 2:for(let e=0;e>1;if(A=t[r+1].first))return t[r].fd;e=r+1}}default:throw new Error(`Unknown FDSelect version: ${this.topDict.FDSelect.version}`)}}privateDictForGlyph(A){if(this.topDict.FDSelect){let t=this.fdForGlyph(A);return this.topDict.FDArray[t]?this.topDict.FDArray[t].Private:null}return this.version<2?this.topDict.Private:this.topDict.FDArray[0].Private}constructor(A){this.stream=A,this.decode()}}var Ct=ft;let dt=new n.Struct({glyphIndex:n.uint16,vertOriginY:n.int16});var Mt=new n.Struct({majorVersion:n.uint16,minorVersion:n.uint16,defaultVertOriginY:n.int16,numVertOriginYMetrics:n.uint16,metrics:new n.Array(dt,"numVertOriginYMetrics")});let Dt=new n.Struct({height:n.uint8,width:n.uint8,horiBearingX:n.int8,horiBearingY:n.int8,horiAdvance:n.uint8,vertBearingX:n.int8,vertBearingY:n.int8,vertAdvance:n.uint8}),It=new n.Struct({height:n.uint8,width:n.uint8,bearingX:n.int8,bearingY:n.int8,advance:n.uint8}),pt=new n.Struct({glyph:n.uint16,xOffset:n.int8,yOffset:n.int8});class yt{}class Ft{}new n.VersionedStruct("version",{1:{metrics:It,data:yt},2:{metrics:It,data:Ft},5:{data:Ft},6:{metrics:Dt,data:yt},7:{metrics:Dt,data:Ft},8:{metrics:It,pad:new n.Reserved(n.uint8),numComponents:n.uint16,components:new n.Array(pt,"numComponents")},9:{metrics:Dt,pad:new n.Reserved(n.uint8),numComponents:n.uint16,components:new n.Array(pt,"numComponents")},17:{metrics:It,dataLen:n.uint32,data:new n.Buffer("dataLen")},18:{metrics:Dt,dataLen:n.uint32,data:new n.Buffer("dataLen")},19:{dataLen:n.uint32,data:new n.Buffer("dataLen")}});let Yt=new n.Struct({ascender:n.int8,descender:n.int8,widthMax:n.uint8,caretSlopeNumerator:n.int8,caretSlopeDenominator:n.int8,caretOffset:n.int8,minOriginSB:n.int8,minAdvanceSB:n.int8,maxBeforeBL:n.int8,minAfterBL:n.int8,pad:new n.Reserved(n.int8,2)}),mt=new n.Struct({glyphCode:n.uint16,offset:n.uint16}),bt=new n.VersionedStruct(n.uint16,{header:{imageFormat:n.uint16,imageDataOffset:n.uint32},1:{offsetArray:new n.Array(n.uint32,(A=>A.parent.lastGlyphIndex-A.parent.firstGlyphIndex+1))},2:{imageSize:n.uint32,bigMetrics:Dt},3:{offsetArray:new n.Array(n.uint16,(A=>A.parent.lastGlyphIndex-A.parent.firstGlyphIndex+1))},4:{numGlyphs:n.uint32,glyphArray:new n.Array(mt,(A=>A.numGlyphs+1))},5:{imageSize:n.uint32,bigMetrics:Dt,numGlyphs:n.uint32,glyphCodeArray:new n.Array(n.uint16,"numGlyphs")}}),vt=new n.Struct({firstGlyphIndex:n.uint16,lastGlyphIndex:n.uint16,subtable:new n.Pointer(n.uint32,bt)}),zt=new n.Struct({indexSubTableArray:new n.Pointer(n.uint32,new n.Array(vt,1),{type:"parent"}),indexTablesSize:n.uint32,numberOfIndexSubTables:n.uint32,colorRef:n.uint32,hori:Yt,vert:Yt,startGlyphIndex:n.uint16,endGlyphIndex:n.uint16,ppemX:n.uint8,ppemY:n.uint8,bitDepth:n.uint8,flags:new n.Bitfield(n.uint8,["horizontal","vertical"])});var Ut=new n.Struct({version:n.uint32,numSizes:n.uint32,sizes:new n.Array(zt,"numSizes")});let Pt=new n.Struct({ppem:n.uint16,resolution:n.uint16,imageOffsets:new n.Array(new n.Pointer(n.uint32,"void"),(A=>A.parent.parent.maxp.numGlyphs+1))});var xt=new n.Struct({version:n.uint16,flags:new n.Bitfield(n.uint16,["renderOutlines"]),numImgTables:n.uint32,imageTables:new n.Array(new n.Pointer(n.uint32,Pt),"numImgTables")});let Nt=new n.Struct({gid:n.uint16,paletteIndex:n.uint16}),Rt=new n.Struct({gid:n.uint16,firstLayerIndex:n.uint16,numLayers:n.uint16});var Gt=new n.Struct({version:n.uint16,numBaseGlyphRecords:n.uint16,baseGlyphRecord:new n.Pointer(n.uint32,new n.Array(Rt,"numBaseGlyphRecords")),layerRecords:new n.Pointer(n.uint32,new n.Array(Nt,"numLayerRecords"),{lazy:!0}),numLayerRecords:n.uint16});let St=new n.Struct({blue:n.uint8,green:n.uint8,red:n.uint8,alpha:n.uint8});var Tt=new n.VersionedStruct(n.uint16,{header:{numPaletteEntries:n.uint16,numPalettes:n.uint16,numColorRecords:n.uint16,colorRecords:new n.Pointer(n.uint32,new n.Array(St,"numColorRecords")),colorRecordIndices:new n.Array(n.uint16,"numPalettes")},0:{},1:{offsetPaletteTypeArray:new n.Pointer(n.uint32,new n.Array(n.uint32,"numPalettes")),offsetPaletteLabelArray:new n.Pointer(n.uint32,new n.Array(n.uint16,"numPalettes")),offsetPaletteEntryLabelArray:new n.Pointer(n.uint32,new n.Array(n.uint16,"numPaletteEntries"))}});let Ht=new n.VersionedStruct(n.uint16,{1:{coordinate:n.int16},2:{coordinate:n.int16,referenceGlyph:n.uint16,baseCoordPoint:n.uint16},3:{coordinate:n.int16,deviceTable:new n.Pointer(n.uint16,PA)}}),kt=new n.Struct({defaultIndex:n.uint16,baseCoordCount:n.uint16,baseCoords:new n.Array(new n.Pointer(n.uint16,Ht),"baseCoordCount")}),Lt=new n.Struct({tag:new n.String(4),minCoord:new n.Pointer(n.uint16,Ht,{type:"parent"}),maxCoord:new n.Pointer(n.uint16,Ht,{type:"parent"})}),jt=new n.Struct({minCoord:new n.Pointer(n.uint16,Ht),maxCoord:new n.Pointer(n.uint16,Ht),featMinMaxCount:n.uint16,featMinMaxRecords:new n.Array(Lt,"featMinMaxCount")}),Jt=new n.Struct({tag:new n.String(4),minMax:new n.Pointer(n.uint16,jt,{type:"parent"})}),Ot=new n.Struct({baseValues:new n.Pointer(n.uint16,kt),defaultMinMax:new n.Pointer(n.uint16,jt),baseLangSysCount:n.uint16,baseLangSysRecords:new n.Array(Jt,"baseLangSysCount")}),Wt=new n.Struct({tag:new n.String(4),script:new n.Pointer(n.uint16,Ot,{type:"parent"})}),Kt=new n.Array(Wt,n.uint16),Vt=new n.Array(new n.String(4),n.uint16),Xt=new n.Struct({baseTagList:new n.Pointer(n.uint16,Vt),baseScriptList:new n.Pointer(n.uint16,Kt)});var Zt=new n.VersionedStruct(n.uint32,{header:{horizAxis:new n.Pointer(n.uint16,Xt),vertAxis:new n.Pointer(n.uint16,Xt)},65536:{},65537:{itemVariationStore:new n.Pointer(n.uint32,VA)}});let _t=new n.Array(n.uint16,n.uint16),qt=new n.Struct({coverage:new n.Pointer(n.uint16,vA),glyphCount:n.uint16,attachPoints:new n.Array(new n.Pointer(n.uint16,_t),"glyphCount")}),$t=new n.VersionedStruct(n.uint16,{1:{coordinate:n.int16},2:{caretValuePoint:n.uint16},3:{coordinate:n.int16,deviceTable:new n.Pointer(n.uint16,PA)}}),Ae=new n.Array(new n.Pointer(n.uint16,$t),n.uint16),te=new n.Struct({coverage:new n.Pointer(n.uint16,vA),ligGlyphCount:n.uint16,ligGlyphs:new n.Array(new n.Pointer(n.uint16,Ae),"ligGlyphCount")}),ee=new n.Struct({markSetTableFormat:n.uint16,markSetCount:n.uint16,coverage:new n.Array(new n.Pointer(n.uint32,vA),"markSetCount")});var ne=new n.VersionedStruct(n.uint32,{header:{glyphClassDef:new n.Pointer(n.uint16,UA),attachList:new n.Pointer(n.uint16,qt),ligCaretList:new n.Pointer(n.uint16,te),markAttachClassDef:new n.Pointer(n.uint16,UA)},65536:{},65538:{markGlyphSetsDef:new n.Pointer(n.uint16,ee)},65539:{markGlyphSetsDef:new n.Pointer(n.uint16,ee),itemVariationStore:new n.Pointer(n.uint32,VA)}});let re=new n.Bitfield(n.uint16,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),ie={xPlacement:n.int16,yPlacement:n.int16,xAdvance:n.int16,yAdvance:n.int16,xPlaDevice:new n.Pointer(n.uint16,PA,{type:"global",relativeTo:A=>A.rel}),yPlaDevice:new n.Pointer(n.uint16,PA,{type:"global",relativeTo:A=>A.rel}),xAdvDevice:new n.Pointer(n.uint16,PA,{type:"global",relativeTo:A=>A.rel}),yAdvDevice:new n.Pointer(n.uint16,PA,{type:"global",relativeTo:A=>A.rel})};class se{buildStruct(A){let t=A;for(;!t[this.key]&&t.parent;)t=t.parent;if(!t[this.key])return;let e={rel:()=>t._startOffset},r=t[this.key];for(let A in r)r[A]&&(e[A]=ie[A]);return new n.Struct(e)}size(A,t){return this.buildStruct(t).size(A,t)}decode(A,t){let e=this.buildStruct(t).decode(A,t);return delete e.rel,e}constructor(A="valueFormat"){this.key=A}}let oe=new n.Struct({secondGlyph:n.uint16,value1:new se("valueFormat1"),value2:new se("valueFormat2")}),ae=new n.Array(oe,n.uint16),Be=new n.Struct({value1:new se("valueFormat1"),value2:new se("valueFormat2")}),ge=new n.VersionedStruct(n.uint16,{1:{xCoordinate:n.int16,yCoordinate:n.int16},2:{xCoordinate:n.int16,yCoordinate:n.int16,anchorPoint:n.uint16},3:{xCoordinate:n.int16,yCoordinate:n.int16,xDeviceTable:new n.Pointer(n.uint16,PA),yDeviceTable:new n.Pointer(n.uint16,PA)}}),ce=new n.Struct({entryAnchor:new n.Pointer(n.uint16,ge,{type:"parent"}),exitAnchor:new n.Pointer(n.uint16,ge,{type:"parent"})}),le=new n.Struct({class:n.uint16,markAnchor:new n.Pointer(n.uint16,ge,{type:"parent"})}),we=new n.Array(le,n.uint16),Ee=new n.Array(new n.Pointer(n.uint16,ge),(A=>A.parent.classCount)),he=new n.Array(Ee,n.uint16),Qe=new n.Array(new n.Pointer(n.uint16,ge),(A=>A.parent.parent.classCount)),ue=new n.Array(Qe,n.uint16),fe=new n.Array(new n.Pointer(n.uint16,ue),n.uint16),Ce=new n.VersionedStruct("lookupType",{1:new n.VersionedStruct(n.uint16,{1:{coverage:new n.Pointer(n.uint16,vA),valueFormat:re,value:new se},2:{coverage:new n.Pointer(n.uint16,vA),valueFormat:re,valueCount:n.uint16,values:new n.LazyArray(new se,"valueCount")}}),2:new n.VersionedStruct(n.uint16,{1:{coverage:new n.Pointer(n.uint16,vA),valueFormat1:re,valueFormat2:re,pairSetCount:n.uint16,pairSets:new n.LazyArray(new n.Pointer(n.uint16,ae),"pairSetCount")},2:{coverage:new n.Pointer(n.uint16,vA),valueFormat1:re,valueFormat2:re,classDef1:new n.Pointer(n.uint16,UA),classDef2:new n.Pointer(n.uint16,UA),class1Count:n.uint16,class2Count:n.uint16,classRecords:new n.LazyArray(new n.LazyArray(Be,"class2Count"),"class1Count")}}),3:{format:n.uint16,coverage:new n.Pointer(n.uint16,vA),entryExitCount:n.uint16,entryExitRecords:new n.Array(ce,"entryExitCount")},4:{format:n.uint16,markCoverage:new n.Pointer(n.uint16,vA),baseCoverage:new n.Pointer(n.uint16,vA),classCount:n.uint16,markArray:new n.Pointer(n.uint16,we),baseArray:new n.Pointer(n.uint16,he)},5:{format:n.uint16,markCoverage:new n.Pointer(n.uint16,vA),ligatureCoverage:new n.Pointer(n.uint16,vA),classCount:n.uint16,markArray:new n.Pointer(n.uint16,we),ligatureArray:new n.Pointer(n.uint16,fe)},6:{format:n.uint16,mark1Coverage:new n.Pointer(n.uint16,vA),mark2Coverage:new n.Pointer(n.uint16,vA),classCount:n.uint16,mark1Array:new n.Pointer(n.uint16,we),mark2Array:new n.Pointer(n.uint16,he)},7:TA,8:LA,9:{posFormat:n.uint16,lookupType:n.uint16,extension:new n.Pointer(n.uint32,null)}});Ce.versions[9].extension.type=Ce;var de=new n.VersionedStruct(n.uint32,{header:{scriptList:new n.Pointer(n.uint16,DA),featureList:new n.Pointer(n.uint16,FA),lookupList:new n.Pointer(n.uint16,new mA(Ce))},65536:{},65537:{featureVariations:new n.Pointer(n.uint32,At)}});let Me=new n.Array(n.uint16,n.uint16),De=Me,Ie=new n.Struct({glyph:n.uint16,compCount:n.uint16,components:new n.Array(n.uint16,(A=>A.compCount-1))}),pe=new n.Array(new n.Pointer(n.uint16,Ie),n.uint16),ye=new n.VersionedStruct("lookupType",{1:new n.VersionedStruct(n.uint16,{1:{coverage:new n.Pointer(n.uint16,vA),deltaGlyphID:n.int16},2:{coverage:new n.Pointer(n.uint16,vA),glyphCount:n.uint16,substitute:new n.LazyArray(n.uint16,"glyphCount")}}),2:{substFormat:n.uint16,coverage:new n.Pointer(n.uint16,vA),count:n.uint16,sequences:new n.LazyArray(new n.Pointer(n.uint16,Me),"count")},3:{substFormat:n.uint16,coverage:new n.Pointer(n.uint16,vA),count:n.uint16,alternateSet:new n.LazyArray(new n.Pointer(n.uint16,De),"count")},4:{substFormat:n.uint16,coverage:new n.Pointer(n.uint16,vA),count:n.uint16,ligatureSets:new n.LazyArray(new n.Pointer(n.uint16,pe),"count")},5:TA,6:LA,7:{substFormat:n.uint16,lookupType:n.uint16,extension:new n.Pointer(n.uint32,null)},8:{substFormat:n.uint16,coverage:new n.Pointer(n.uint16,vA),backtrackCoverage:new n.Array(new n.Pointer(n.uint16,vA),"backtrackGlyphCount"),lookaheadGlyphCount:n.uint16,lookaheadCoverage:new n.Array(new n.Pointer(n.uint16,vA),"lookaheadGlyphCount"),glyphCount:n.uint16,substitutes:new n.Array(n.uint16,"glyphCount")}});ye.versions[7].extension.type=ye;var Fe=new n.VersionedStruct(n.uint32,{header:{scriptList:new n.Pointer(n.uint16,DA),featureList:new n.Pointer(n.uint16,FA),lookupList:new n.Pointer(n.uint16,new mA(ye))},65536:{},65537:{featureVariations:new n.Pointer(n.uint32,At)}});let Ye=new n.Array(n.uint16,n.uint16),me=new n.Struct({shrinkageEnableGSUB:new n.Pointer(n.uint16,Ye),shrinkageDisableGSUB:new n.Pointer(n.uint16,Ye),shrinkageEnableGPOS:new n.Pointer(n.uint16,Ye),shrinkageDisableGPOS:new n.Pointer(n.uint16,Ye),shrinkageJstfMax:new n.Pointer(n.uint16,new mA(Ce)),extensionEnableGSUB:new n.Pointer(n.uint16,Ye),extensionDisableGSUB:new n.Pointer(n.uint16,Ye),extensionEnableGPOS:new n.Pointer(n.uint16,Ye),extensionDisableGPOS:new n.Pointer(n.uint16,Ye),extensionJstfMax:new n.Pointer(n.uint16,new mA(Ce))}),be=new n.Array(new n.Pointer(n.uint16,me),n.uint16),ve=new n.Struct({tag:new n.String(4),jstfLangSys:new n.Pointer(n.uint16,be)}),ze=new n.Struct({extenderGlyphs:new n.Pointer(n.uint16,new n.Array(n.uint16,n.uint16)),defaultLangSys:new n.Pointer(n.uint16,be),langSysCount:n.uint16,langSysRecords:new n.Array(ve,"langSysCount")}),Ue=new n.Struct({tag:new n.String(4),script:new n.Pointer(n.uint16,ze,{type:"parent"})});var Pe=new n.Struct({version:n.uint32,scriptCount:n.uint16,scriptList:new n.Array(Ue,"scriptCount")});let xe=new n.Struct({entry:new class{decode(A,t){switch(this.size(0,t)){case 1:return A.readUInt8();case 2:return A.readUInt16BE();case 3:return A.readUInt24BE();case 4:return A.readUInt32BE()}}size(A,t){return(0,n.resolveLength)(this._size,null,t)}constructor(A){this._size=A}}((A=>1+((48&A.parent.entryFormat)>>4))),outerIndex:A=>A.entry>>1+(15&A.parent.entryFormat),innerIndex:A=>A.entry&(1<<1+(15&A.parent.entryFormat))-1}),Ne=new n.Struct({entryFormat:n.uint16,mapCount:n.uint16,mapData:new n.Array(xe,"mapCount")});var Re=new n.Struct({majorVersion:n.uint16,minorVersion:n.uint16,itemVariationStore:new n.Pointer(n.uint32,VA),advanceWidthMapping:new n.Pointer(n.uint32,Ne),LSBMapping:new n.Pointer(n.uint32,Ne),RSBMapping:new n.Pointer(n.uint32,Ne)});let Ge=new n.Struct({format:n.uint32,length:n.uint32,offset:n.uint32}),Se=new n.Struct({reserved:new n.Reserved(n.uint16,2),cbSignature:n.uint32,signature:new n.Buffer("cbSignature")});var Te=new n.Struct({ulVersion:n.uint32,usNumSigs:n.uint16,usFlag:n.uint16,signatures:new n.Array(Ge,"usNumSigs"),signatureBlocks:new n.Array(Se,"usNumSigs")});let He=new n.Struct({rangeMaxPPEM:n.uint16,rangeGaspBehavior:new n.Bitfield(n.uint16,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])});var ke=new n.Struct({version:n.uint16,numRanges:n.uint16,gaspRanges:new n.Array(He,"numRanges")});let Le=new n.Struct({pixelSize:n.uint8,maximumWidth:n.uint8,widths:new n.Array(n.uint8,(A=>A.parent.parent.maxp.numGlyphs))});var je=new n.Struct({version:n.uint16,numRecords:n.int16,sizeDeviceRecord:n.int32,records:new n.Array(Le,"numRecords")});let Je=new n.Struct({left:n.uint16,right:n.uint16,value:n.int16}),Oe=new n.Struct({firstGlyph:n.uint16,nGlyphs:n.uint16,offsets:new n.Array(n.uint16,"nGlyphs"),max:A=>A.offsets.length&&Math.max.apply(Math,A.offsets)}),We=new n.Struct({off:A=>A._startOffset-A.parent.parent._startOffset,len:A=>((A.parent.leftTable.max-A.off)/A.parent.rowWidth+1)*(A.parent.rowWidth/2),values:new n.LazyArray(n.int16,"len")}),Ke=new n.VersionedStruct("format",{0:{nPairs:n.uint16,searchRange:n.uint16,entrySelector:n.uint16,rangeShift:n.uint16,pairs:new n.Array(Je,"nPairs")},2:{rowWidth:n.uint16,leftTable:new n.Pointer(n.uint16,Oe,{type:"parent"}),rightTable:new n.Pointer(n.uint16,Oe,{type:"parent"}),array:new n.Pointer(n.uint16,We,{type:"parent"})},3:{glyphCount:n.uint16,kernValueCount:n.uint8,leftClassCount:n.uint8,rightClassCount:n.uint8,flags:n.uint8,kernValue:new n.Array(n.int16,"kernValueCount"),leftClass:new n.Array(n.uint8,"glyphCount"),rightClass:new n.Array(n.uint8,"glyphCount"),kernIndex:new n.Array(n.uint8,(A=>A.leftClassCount*A.rightClassCount))}}),Ve=new n.VersionedStruct("version",{0:{subVersion:n.uint16,length:n.uint16,format:n.uint8,coverage:new n.Bitfield(n.uint8,["horizontal","minimum","crossStream","override"]),subtable:Ke,padding:new n.Reserved(n.uint8,(A=>A.length-A._currentOffset))},1:{length:n.uint32,coverage:new n.Bitfield(n.uint8,[null,null,null,null,null,"variation","crossStream","vertical"]),format:n.uint8,tupleIndex:n.uint16,subtable:Ke,padding:new n.Reserved(n.uint8,(A=>A.length-A._currentOffset))}});var Xe=new n.VersionedStruct(n.uint16,{0:{nTables:n.uint16,tables:new n.Array(Ve,"nTables")},1:{reserved:new n.Reserved(n.uint16),nTables:n.uint32,tables:new n.Array(Ve,"nTables")}}),Ze=new n.Struct({version:n.uint16,numGlyphs:n.uint16,yPels:new n.Array(n.uint8,"numGlyphs")}),_e=new n.Struct({version:n.uint16,fontNumber:n.uint32,pitch:n.uint16,xHeight:n.uint16,style:n.uint16,typeFamily:n.uint16,capHeight:n.uint16,symbolSet:n.uint16,typeface:new n.String(16),characterComplement:new n.String(8),fileName:new n.String(6),strokeWeight:new n.String(1),widthType:new n.String(1),serifStyle:n.uint8,reserved:new n.Reserved(n.uint8)});let qe=new n.Struct({bCharSet:n.uint8,xRatio:n.uint8,yStartRatio:n.uint8,yEndRatio:n.uint8}),$e=new n.Struct({yPelHeight:n.uint16,yMax:n.int16,yMin:n.int16}),An=new n.Struct({recs:n.uint16,startsz:n.uint8,endsz:n.uint8,entries:new n.Array($e,"recs")});var tn=new n.Struct({version:n.uint16,numRecs:n.uint16,numRatios:n.uint16,ratioRanges:new n.Array(qe,"numRatios"),offsets:new n.Array(n.uint16,"numRatios"),groups:new n.Array(An,"numRecs")}),en=new n.Struct({version:n.uint16,ascent:n.int16,descent:n.int16,lineGap:n.int16,advanceHeightMax:n.int16,minTopSideBearing:n.int16,minBottomSideBearing:n.int16,yMaxExtent:n.int16,caretSlopeRise:n.int16,caretSlopeRun:n.int16,caretOffset:n.int16,reserved:new n.Reserved(n.int16,4),metricDataFormat:n.int16,numberOfMetrics:n.uint16});let nn=new n.Struct({advance:n.uint16,bearing:n.int16});var rn=new n.Struct({metrics:new n.LazyArray(nn,(A=>A.parent.vhea.numberOfMetrics)),bearings:new n.LazyArray(n.int16,(A=>A.parent.maxp.numGlyphs-A.parent.vhea.numberOfMetrics))});let sn=new n.Fixed(16,"BE",14),on=new n.Struct({fromCoord:sn,toCoord:sn}),an=new n.Struct({pairCount:n.uint16,correspondence:new n.Array(on,"pairCount")});var Bn=new n.Struct({version:n.fixed32,axisCount:n.uint32,segment:new n.Array(an,"axisCount")});class gn{getItem(A){if(null==this._items[A]){let t=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*A,this._items[A]=this.type.decode(this.stream,this.parent),this.stream.pos=t}return this._items[A]}inspect(){return`[UnboundedArray ${this.type.constructor.name}]`}constructor(A,t,e){this.type=A,this.stream=t,this.parent=e,this.base=this.stream.pos,this._items=[]}}class cn extends n.Array{decode(A,t){return new gn(this.type,A,t)}constructor(A){super(A,0)}}let ln=function(A=n.uint16){A=new class{decode(A,t){return t=t.parent.parent,this.type.decode(A,t)}size(A,t){return t=t.parent.parent,this.type.size(A,t)}encode(A,t,e){return e=e.parent.parent,this.type.encode(A,t,e)}constructor(A){this.type=A}}(A);let t=new n.Struct({unitSize:n.uint16,nUnits:n.uint16,searchRange:n.uint16,entrySelector:n.uint16,rangeShift:n.uint16}),e=new n.Struct({lastGlyph:n.uint16,firstGlyph:n.uint16,value:A}),r=new n.Struct({lastGlyph:n.uint16,firstGlyph:n.uint16,values:new n.Pointer(n.uint16,new n.Array(A,(A=>A.lastGlyph-A.firstGlyph+1)),{type:"parent"})}),i=new n.Struct({glyph:n.uint16,value:A});return new n.VersionedStruct(n.uint16,{0:{values:new cn(A)},2:{binarySearchHeader:t,segments:new n.Array(e,(A=>A.binarySearchHeader.nUnits))},4:{binarySearchHeader:t,segments:new n.Array(r,(A=>A.binarySearchHeader.nUnits))},6:{binarySearchHeader:t,segments:new n.Array(i,(A=>A.binarySearchHeader.nUnits))},8:{firstGlyph:n.uint16,count:n.uint16,values:new n.Array(A,"count")}})};function wn(A={},t=n.uint16){let e=Object.assign({newState:n.uint16,flags:n.uint16},A),r=new n.Struct(e),i=new cn(new n.Array(n.uint16,(A=>A.nClasses)));return new n.Struct({nClasses:n.uint32,classTable:new n.Pointer(n.uint32,new ln(t)),stateArray:new n.Pointer(n.uint32,i),entryTable:new n.Pointer(n.uint32,new cn(r))})}let En=new n.VersionedStruct("format",{0:{deltas:new n.Array(n.int16,32)},1:{deltas:new n.Array(n.int16,32),mappingData:new ln(n.uint16)},2:{standardGlyph:n.uint16,controlPoints:new n.Array(n.uint16,32)},3:{standardGlyph:n.uint16,controlPoints:new n.Array(n.uint16,32),mappingData:new ln(n.uint16)}});var hn=new n.Struct({version:n.fixed32,format:n.uint16,defaultBaseline:n.uint16,subtable:En});let Qn=new n.Struct({setting:n.uint16,nameIndex:n.int16,name:A=>A.parent.parent.parent.name.records.fontFeatures[A.nameIndex]}),un=new n.Struct({feature:n.uint16,nSettings:n.uint16,settingTable:new n.Pointer(n.uint32,new n.Array(Qn,"nSettings"),{type:"parent"}),featureFlags:new n.Bitfield(n.uint8,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:n.uint8,nameIndex:n.int16,name:A=>A.parent.parent.name.records.fontFeatures[A.nameIndex]});var fn=new n.Struct({version:n.fixed32,featureNameCount:n.uint16,reserved1:new n.Reserved(n.uint16),reserved2:new n.Reserved(n.uint32),featureNames:new n.Array(un,"featureNameCount")});let Cn=new n.Struct({axisTag:new n.String(4),minValue:n.fixed32,defaultValue:n.fixed32,maxValue:n.fixed32,flags:n.uint16,nameID:n.uint16,name:A=>A.parent.parent.name.records.fontFeatures[A.nameID]}),dn=new n.Struct({nameID:n.uint16,name:A=>A.parent.parent.name.records.fontFeatures[A.nameID],flags:n.uint16,coord:new n.Array(n.fixed32,(A=>A.parent.axisCount)),postscriptNameID:new n.Optional(n.uint16,(A=>A.parent.instanceSize-A._currentOffset>0))});var Mn=new n.Struct({version:n.fixed32,offsetToData:n.uint16,countSizePairs:n.uint16,axisCount:n.uint16,axisSize:n.uint16,instanceCount:n.uint16,instanceSize:n.uint16,axis:new n.Array(Cn,"axisCount"),instance:new n.Array(dn,"instanceCount")});let Dn=new n.Fixed(16,"BE",14);var In=new n.Struct({version:n.uint16,reserved:new n.Reserved(n.uint16),axisCount:n.uint16,globalCoordCount:n.uint16,globalCoords:new n.Pointer(n.uint32,new n.Array(new n.Array(Dn,"axisCount"),"globalCoordCount")),glyphCount:n.uint16,flags:n.uint16,offsetToData:n.uint32,offsets:new n.Array(new n.Pointer(class{static decode(A,t){return t.flags?A.readUInt32BE():2*A.readUInt16BE()}},"void",{relativeTo:A=>A.offsetToData,allowNull:!1}),(A=>A.glyphCount+1))});let pn=new n.Struct({length:n.uint16,coverage:n.uint16,subFeatureFlags:n.uint32,stateTable:new function(A={}){let t=new n.Struct({version:()=>8,firstGlyph:n.uint16,values:new n.Array(n.uint8,n.uint16)}),e=Object.assign({newStateOffset:n.uint16,newState:A=>(A.newStateOffset-(A.parent.stateArray.base-A.parent._startOffset))/A.parent.nClasses,flags:n.uint16},A),r=new n.Struct(e),i=new cn(new n.Array(n.uint8,(A=>A.nClasses)));return new n.Struct({nClasses:n.uint16,classTable:new n.Pointer(n.uint16,t),stateArray:new n.Pointer(n.uint16,i),entryTable:new n.Pointer(n.uint16,new cn(r))})}}),yn=new n.Struct({justClass:n.uint32,beforeGrowLimit:n.fixed32,beforeShrinkLimit:n.fixed32,afterGrowLimit:n.fixed32,afterShrinkLimit:n.fixed32,growFlags:n.uint16,shrinkFlags:n.uint16}),Fn=new n.Array(yn,n.uint32),Yn=new n.VersionedStruct("actionType",{0:{lowerLimit:n.fixed32,upperLimit:n.fixed32,order:n.uint16,glyphs:new n.Array(n.uint16,n.uint16)},1:{addGlyph:n.uint16},2:{substThreshold:n.fixed32,addGlyph:n.uint16,substGlyph:n.uint16},3:{},4:{variationAxis:n.uint32,minimumLimit:n.fixed32,noStretchValue:n.fixed32,maximumLimit:n.fixed32},5:{flags:n.uint16,glyph:n.uint16}}),mn=new n.Struct({actionClass:n.uint16,actionType:n.uint16,actionLength:n.uint32,actionData:Yn,padding:new n.Reserved(n.uint8,(A=>A.actionLength-A._currentOffset))}),bn=new n.Array(mn,n.uint32),vn=new n.Struct({lookupTable:new ln(new n.Pointer(n.uint16,bn))}),zn=new n.Struct({classTable:new n.Pointer(n.uint16,pn,{type:"parent"}),wdcOffset:n.uint16,postCompensationTable:new n.Pointer(n.uint16,vn,{type:"parent"}),widthDeltaClusters:new ln(new n.Pointer(n.uint16,Fn,{type:"parent",relativeTo:A=>A.wdcOffset}))});var Un=new n.Struct({version:n.uint32,format:n.uint16,horizontal:new n.Pointer(n.uint16,zn),vertical:new n.Pointer(n.uint16,zn)});let Pn={action:n.uint16},xn={markIndex:n.uint16,currentIndex:n.uint16},Nn={currentInsertIndex:n.uint16,markedInsertIndex:n.uint16},Rn=new n.Struct({items:new cn(new n.Pointer(n.uint32,new ln))}),Gn=new n.VersionedStruct("type",{0:{stateTable:new wn},1:{stateTable:new wn(xn),substitutionTable:new n.Pointer(n.uint32,Rn)},2:{stateTable:new wn(Pn),ligatureActions:new n.Pointer(n.uint32,new cn(n.uint32)),components:new n.Pointer(n.uint32,new cn(n.uint16)),ligatureList:new n.Pointer(n.uint32,new cn(n.uint16))},4:{lookupTable:new ln},5:{stateTable:new wn(Nn),insertionActions:new n.Pointer(n.uint32,new cn(n.uint16))}}),Sn=new n.Struct({length:n.uint32,coverage:n.uint24,type:n.uint8,subFeatureFlags:n.uint32,table:Gn,padding:new n.Reserved(n.uint8,(A=>A.length-A._currentOffset))}),Tn=new n.Struct({featureType:n.uint16,featureSetting:n.uint16,enableFlags:n.uint32,disableFlags:n.uint32}),Hn=new n.Struct({defaultFlags:n.uint32,chainLength:n.uint32,nFeatureEntries:n.uint32,nSubtables:n.uint32,features:new n.Array(Tn,"nFeatureEntries"),subtables:new n.Array(Sn,"nSubtables")});var kn=new n.Struct({version:n.uint16,unused:new n.Reserved(n.uint16),nChains:n.uint32,chains:new n.Array(Hn,"nChains")});let Ln=new n.Struct({left:n.int16,top:n.int16,right:n.int16,bottom:n.int16});var jn=new n.Struct({version:n.fixed32,format:n.uint16,lookupTable:new ln(Ln)});let Jn={};var On=Jn;Jn.cmap=U,Jn.head=P,Jn.hhea=x,Jn.hmtx=R,Jn.maxp=G,Jn.name=X,Jn["OS/2"]=$,Jn.post=AA,Jn.fpgm=eA,Jn.loca=rA,Jn.prep=iA,Jn["cvt "]=tA,Jn.glyf=sA,Jn["CFF "]=Ct,Jn.CFF2=Ct,Jn.VORG=Mt,Jn.EBLC=Ut,Jn.CBLC=Jn.EBLC,Jn.sbix=xt,Jn.COLR=Gt,Jn.CPAL=Tt,Jn.BASE=Zt,Jn.GDEF=ne,Jn.GPOS=de,Jn.GSUB=Fe,Jn.JSTF=Pe,Jn.HVAR=Re,Jn.DSIG=Te,Jn.gasp=ke,Jn.hdmx=je,Jn.kern=Xe,Jn.LTSH=Ze,Jn.PCLT=_e,Jn.VDMX=tn,Jn.vhea=en,Jn.vmtx=rn,Jn.avar=Bn,Jn.bsln=hn,Jn.feat=fn,Jn.fvar=Mn,Jn.gvar=In,Jn.just=Un,Jn.morx=kn,Jn.opbd=jn;let Wn=new n.Struct({tag:new n.String(4),checkSum:n.uint32,offset:new n.Pointer(n.uint32,"void",{type:"global"}),length:n.uint32}),Kn=new n.Struct({tag:new n.String(4),numTables:n.uint16,searchRange:n.uint16,entrySelector:n.uint16,rangeShift:n.uint16,tables:new n.Array(Wn,"numTables")});Kn.process=function(){let A={};for(let t of this.tables)A[t.tag]=t;this.tables=A},Kn.preEncode=function(){if(!Array.isArray(this.tables)){let A=[];for(let t in this.tables){let e=this.tables[t];e&&A.push({tag:t,checkSum:0,offset:new n.VoidPointer(On[t],e),length:On[t].size(e)})}this.tables=A}this.tag="true",this.numTables=this.tables.length;let A=Math.floor(Math.log(this.numTables)/Math.LN2),t=Math.pow(2,A);this.searchRange=16*t,this.entrySelector=Math.log(t)/Math.LN2,this.rangeShift=16*this.numTables-this.searchRange};var Vn=Kn;function Xn(A,t){let e=0,n=A.length-1;for(;e<=n;){let r=e+n>>1,i=t(A[r]);if(i<0)n=r-1;else{if(!(i>0))return r;e=r+1}}return-1}function Zn(A,t){let e=[];for(;A>4,e[n++]=(15&i)<<4|s>>2,e[n++]=(3&s)<<6|63&o}return e}class Ar{findSubtable(A,t){for(let[e,n]of t)for(let t of A.tables)if(t.platformID===e&&t.encodingID===n)return t.table;return null}lookup(A,t){if(this.encoding)A=this.encoding.get(A)||A;else if(t){let e=this.getVariationSelector(A,t);if(e)return e}let e=this.cmap;switch(e.version){case 0:return e.codeMap.get(A)||0;case 4:{let t=0,n=e.segCount-1;for(;t<=n;){let r=t+n>>1;if(Ae.endCode.get(r))){let t,n=e.idRangeOffset.get(r);if(0===n)t=A+e.idDelta.get(r);else{let i=n/2+(A-e.startCode.get(r))-(e.segCount-r);t=e.glyphIndexArray.get(i)||0,0!==t&&(t+=e.idDelta.get(r))}return 65535&t}t=r+1}}return 0}case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return e.glyphIndices.get(A-e.firstCode)||0;case 12:case 13:{let t=0,n=e.nGroups-1;for(;t<=n;){let r=t+n>>1,i=e.groups.get(r);if(Ai.endCharCode))return 12===e.version?i.glyphID+(A-i.startCharCode):i.glyphID;t=r+1}}return 0}case 14:throw new Error("TODO: cmap format 14");default:throw new Error(`Unknown cmap format ${e.version}`)}}getVariationSelector(A,t){if(!this.uvs)return 0;let e=this.uvs.varSelectors.toArray(),n=Xn(e,(A=>t-A.varSelector)),r=e[n];return-1!==n&&r.defaultUVS&&(n=Xn(r.defaultUVS,(t=>At.startUnicodeValue+t.additionalCount?1:0))),-1!==n&&r.nonDefaultUVS&&(n=Xn(r.nonDefaultUVS,(t=>A-t.unicodeValue)),-1!==n)?r.nonDefaultUVS[n].glyphID:0}getCharacterSet(){let A=this.cmap;switch(A.version){case 0:return Zn(0,A.codeMap.length);case 4:{let t=[],e=A.endCode.toArray();for(let n=0;n=n.glyphID&&A<=n.glyphID+(n.endCharCode-n.startCharCode)&&e.push(n.startCharCode+(A-n.glyphID));return e}case 13:{let e=[];for(let n of t.groups.toArray())A===n.glyphID&&e.push(...Zn(n.startCharCode,n.endCharCode+1));return e}default:throw new Error(`Unknown cmap format ${t.version}`)}}constructor(A){if(this.encoding=null,this.cmap=this.findSubtable(A,[[3,10],[0,6],[0,4],[3,1],[0,3],[0,2],[0,1],[0,0]]),!this.cmap)for(let t of A.tables){let A=L(S(t.platformID,t.encodingID,t.table.language-1));A&&(this.cmap=t.table,this.encoding=A)}if(!this.cmap)throw new Error("Could not find a supported cmap table");this.uvs=this.findSubtable(A,[[0,5]]),this.uvs&&14!==this.uvs.version&&(this.uvs=null)}}(0,i._)([D],Ar.prototype,"getCharacterSet",null),(0,i._)([D],Ar.prototype,"codePointsForGlyph",null);class tr{process(A,t){for(let e=0;e=0&&(r=i.pairs[e].value);break;case 2:let s=0,o=0;s=A>=i.leftTable.firstGlyph&&A=i.rightTable.firstGlyph&&t=i.glyphCount||t>=i.glyphCount)return 0;r=i.kernValue[i.kernIndex[i.leftClass[A]*i.rightClassCount+i.rightClass[t]]];break;default:throw new Error(`Unsupported kerning sub-table format ${n.format}`)}n.coverage.override?e=r:e+=r}return e}constructor(A){this.kern=A.kern}}class er{positionGlyphs(A,t){let e=0,n=0;for(let r=0;r1&&(i.minX+=(r.codePoints.length-1)*i.width/r.codePoints.length);let s=-t[e].xAdvance,o=0,a=this.font.unitsPerEm/16;for(let r=e+1;r<=n;r++){let e=A[r],n=e.cbox,B=t[r],g=this.getCombiningClass(e.codePoints[0]);if("Not_Reordered"!==g){switch(B.xOffset=B.yOffset=0,g){case"Double_Above":case"Double_Below":B.xOffset+=i.minX-n.width/2-n.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":B.xOffset+=i.minX-n.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":B.xOffset+=i.maxX-n.width-n.minX;break;default:B.xOffset+=i.minX+(i.width-n.width)/2-n.minX}switch(g){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":"Attached_Below_Left"!==g&&"Attached_Below"!==g||(i.minY+=a),B.yOffset=-i.minY-n.maxY,i.minY+=n.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":"Attached_Above"!==g&&"Attached_Above_Right"!==g||(i.maxY+=a),B.yOffset=i.maxY-n.minY,i.maxY+=n.height}B.xAdvance=B.yAdvance=0,B.xOffset+=s,B.yOffset+=o}else s-=B.xAdvance,o-=B.yAdvance}}getCombiningClass(A){let t=(0,o.getCombiningClass)(A);if(3584==(-256&A))if("Not_Reordered"===t)switch(A){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===A)return"Below_Right";switch(t){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":case"CCC29":case"CCC32":case"CCC118":case"CCC129":case"CCC132":return"Below";case"CCC23":return"Attached_Above";case"CCC24":case"CCC107":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":case"CCC122":case"CCC130":return"Above";case"CCC21":break;case"CCC103":return"Below_Right"}return t}constructor(A){this.font=A}}class nr{get width(){return this.maxX-this.minX}get height(){return this.maxY-this.minY}addPoint(A,t){Math.abs(A)!==1/0&&(Athis.maxX&&(this.maxX=A)),Math.abs(t)!==1/0&&(tthis.maxY&&(this.maxY=t))}copy(){return new nr(this.minX,this.minY,this.maxX,this.maxY)}constructor(A=1/0,t=1/0,e=-1/0,n=-1/0){this.minX=A,this.minY=t,this.maxX=e,this.maxY=n}}const rr={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:["ory2","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:["tml2","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"},ir={};for(let A in rr){let t=rr[A];if(Array.isArray(t))for(let e of t)ir[e]=A;else ir[t]=A}const sr={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0};function or(A){return sr[A]?"rtl":"ltr"}class ar{get advanceWidth(){let A=0;for(let t of this.positions)A+=t.xAdvance;return A}get advanceHeight(){let A=0;for(let t of this.positions)A+=t.yAdvance;return A}get bbox(){let A=new nr,t=0,e=0;for(let n=0;n[gr[A].code,gr[A][t]],lr={rlig:cr("ligatures","requiredLigatures"),clig:cr("ligatures","contextualLigatures"),dlig:cr("ligatures","rareLigatures"),hlig:cr("ligatures","historicalLigatures"),liga:cr("ligatures","commonLigatures"),hist:cr("ligatures","historicalLigatures"),smcp:cr("lowerCase","lowerCaseSmallCaps"),pcap:cr("lowerCase","lowerCasePetiteCaps"),frac:cr("fractions","diagonalFractions"),dnom:cr("fractions","diagonalFractions"),numr:cr("fractions","diagonalFractions"),afrc:cr("fractions","verticalFractions"),case:cr("caseSensitiveLayout","caseSensitiveLayout"),ccmp:cr("unicodeDecomposition","canonicalComposition"),cpct:cr("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),valt:cr("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),swsh:cr("contextualAlternates","swashAlternates"),cswh:cr("contextualAlternates","contextualSwashAlternates"),curs:cr("cursiveConnection","cursive"),c2pc:cr("upperCase","upperCasePetiteCaps"),c2sc:cr("upperCase","upperCaseSmallCaps"),init:cr("smartSwash","wordInitialSwashes"),fin2:cr("smartSwash","wordFinalSwashes"),medi:cr("smartSwash","nonFinalSwashes"),med2:cr("smartSwash","nonFinalSwashes"),fin3:cr("smartSwash","wordFinalSwashes"),fina:cr("smartSwash","wordFinalSwashes"),pkna:cr("kanaSpacing","proportionalKana"),half:cr("textSpacing","halfWidthText"),halt:cr("textSpacing","altHalfWidthText"),hkna:cr("alternateKana","alternateHorizKana"),vkna:cr("alternateKana","alternateVertKana"),ital:cr("italicCJKRoman","CJKItalicRoman"),lnum:cr("numberCase","upperCaseNumbers"),onum:cr("numberCase","lowerCaseNumbers"),mgrk:cr("mathematicalExtras","mathematicalGreek"),calt:cr("contextualAlternates","contextualAlternates"),vrt2:cr("verticalSubstitution","substituteVerticalForms"),vert:cr("verticalSubstitution","substituteVerticalForms"),tnum:cr("numberSpacing","monospacedNumbers"),pnum:cr("numberSpacing","proportionalNumbers"),sups:cr("verticalPosition","superiors"),subs:cr("verticalPosition","inferiors"),ordn:cr("verticalPosition","ordinals"),pwid:cr("textSpacing","proportionalText"),hwid:cr("textSpacing","halfWidthText"),qwid:cr("textSpacing","quarterWidthText"),twid:cr("textSpacing","thirdWidthText"),fwid:cr("textSpacing","proportionalText"),palt:cr("textSpacing","altProportionalText"),trad:cr("characterShape","traditionalCharacters"),smpl:cr("characterShape","simplifiedCharacters"),jp78:cr("characterShape","JIS1978Characters"),jp83:cr("characterShape","JIS1983Characters"),jp90:cr("characterShape","JIS1990Characters"),jp04:cr("characterShape","JIS2004Characters"),expt:cr("characterShape","expertCharacters"),hojo:cr("characterShape","hojoCharacters"),nlck:cr("characterShape","NLCCharacters"),tnam:cr("characterShape","traditionalNamesCharacters"),ruby:cr("rubyKana","rubyKana"),titl:cr("styleOptions","titlingCaps"),zero:cr("typographicExtras","slashedZero"),ss01:cr("stylisticAlternatives","stylisticAltOne"),ss02:cr("stylisticAlternatives","stylisticAltTwo"),ss03:cr("stylisticAlternatives","stylisticAltThree"),ss04:cr("stylisticAlternatives","stylisticAltFour"),ss05:cr("stylisticAlternatives","stylisticAltFive"),ss06:cr("stylisticAlternatives","stylisticAltSix"),ss07:cr("stylisticAlternatives","stylisticAltSeven"),ss08:cr("stylisticAlternatives","stylisticAltEight"),ss09:cr("stylisticAlternatives","stylisticAltNine"),ss10:cr("stylisticAlternatives","stylisticAltTen"),ss11:cr("stylisticAlternatives","stylisticAltEleven"),ss12:cr("stylisticAlternatives","stylisticAltTwelve"),ss13:cr("stylisticAlternatives","stylisticAltThirteen"),ss14:cr("stylisticAlternatives","stylisticAltFourteen"),ss15:cr("stylisticAlternatives","stylisticAltFifteen"),ss16:cr("stylisticAlternatives","stylisticAltSixteen"),ss17:cr("stylisticAlternatives","stylisticAltSeventeen"),ss18:cr("stylisticAlternatives","stylisticAltEighteen"),ss19:cr("stylisticAlternatives","stylisticAltNineteen"),ss20:cr("stylisticAlternatives","stylisticAltTwenty")};for(let A=1;A<=99;A++)lr[`cv${`00${A}`.slice(-2)}`]=[gr.characterAlternatives.code,A];let wr={};for(let A in lr){let t=lr[A];null==wr[t[0]]&&(wr[t[0]]={}),wr[t[0]][t[1]]=A}function Er(A){let[t,e]=A;if(isNaN(t))var n=gr[t]&&gr[t].code;else n=t;if(isNaN(e))var r=gr[t]&&gr[t][e];else r=e;return[n,r]}class hr{lookup(A){switch(this.table.version){case 0:return this.table.values.getItem(A);case 2:case 4:{let n=0,r=this.table.binarySearchHeader.nUnits-1;for(;n<=r;){var t=n+r>>1;if(65535===(e=this.table.segments[t]).firstGlyph)return null;if(Ae.lastGlyph))return 2===this.table.version?e.value:e.values[A-e.firstGlyph];n=t+1}}return null}case 6:{let n=0,r=this.table.binarySearchHeader.nUnits-1;for(;n<=r;){var e;if(t=n+r>>1,65535===(e=this.table.segments[t]).glyph)return null;if(Ae.glyph))return e.value;n=t+1}}return null}case 8:return this.table.values[A-this.table.firstGlyph];default:throw new Error(`Unknown lookup table format: ${this.table.version}`)}}glyphsForValue(A){let t=[];switch(this.table.version){case 2:case 4:for(let e of this.table.segments)if(2===this.table.version&&e.value===A)t.push(...Zn(e.firstGlyph,e.lastGlyph+1));else for(let n=0;n=-1;){let t=null,s=1,o=!0;r===A.length||-1===r?s=0:(t=A[r],65535===t.id?s=2:(s=this.lookupTable.lookup(t.id),null==s&&(s=1)));let a=this.stateTable.stateArray.getItem(n)[s],B=this.stateTable.entryTable.getItem(a);0!==s&&2!==s&&(e(t,B,r),o=!(16384&B.flags)),n=B.newState,o&&(r+=i)}return A}traverse(A,t=0,e=new Set){if(e.has(t))return;e.add(t);let{nClasses:n,stateArray:r,entryTable:i}=this.stateTable,s=r.getItem(t);for(let t=4;t=0;)65535===A[e].id&&A.splice(e,1),e--;return A}processSubtable(A,t){if(this.subtable=A,this.glyphs=t,4===this.subtable.type)return void this.processNoncontextualSubstitutions(this.subtable,this.glyphs);this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null;let e=this.getStateMachine(A),n=this.getProcessor(),r=!!(this.subtable.coverage&ur);return e.process(this.glyphs,r,n)}getStateMachine(A){return new Qr(A.table.stateTable)}getProcessor(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error(`Invalid morx subtable type: ${this.subtable.type}`)}}processIndicRearragement(A,t,e){32768&t.flags&&(this.firstGlyph=e),8192&t.flags&&(this.lastGlyph=e),function(A,t,e,n){switch(t){case 0:return A;case 1:return Cr(A,[e,1],[n,0]);case 2:return Cr(A,[e,0],[n,1]);case 3:return Cr(A,[e,1],[n,1]);case 4:return Cr(A,[e,2],[n,0]);case 5:return Cr(A,[e,2],[n,0],!0,!1);case 6:return Cr(A,[e,0],[n,2]);case 7:return Cr(A,[e,0],[n,2],!1,!0);case 8:return Cr(A,[e,1],[n,2]);case 9:return Cr(A,[e,1],[n,2],!1,!0);case 10:return Cr(A,[e,2],[n,1]);case 11:return Cr(A,[e,2],[n,1],!0,!1);case 12:return Cr(A,[e,2],[n,2]);case 13:return Cr(A,[e,2],[n,2],!0,!1);case 14:return Cr(A,[e,2],[n,2],!1,!0);case 15:return Cr(A,[e,2],[n,2],!0,!0);default:throw new Error(`Unknown verb: ${t}`)}}(this.glyphs,15&t.flags,this.firstGlyph,this.lastGlyph)}processContextualSubstitution(A,t,e){let n=this.subtable.table.substitutionTable.items;if(65535!==t.markIndex){let e=n.getItem(t.markIndex),i=new hr(e);A=this.glyphs[this.markedGlyph],(r=i.lookup(A.id))&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(r,A.codePoints))}if(65535!==t.currentIndex){let i=n.getItem(t.currentIndex),s=new hr(i);var r;A=this.glyphs[e],(r=s.lookup(A.id))&&(this.glyphs[e]=this.font.getGlyph(r,A.codePoints))}32768&t.flags&&(this.markedGlyph=e)}processLigature(A,t,e){if(32768&t.flags&&this.ligatureStack.push(e),8192&t.flags){let A=this.subtable.table.ligatureActions,e=this.subtable.table.components,n=this.subtable.table.ligatureList,r=t.action,i=!1,s=0,o=[],a=[];for(;!i;){let t=this.ligatureStack.pop();o.unshift(...this.glyphs[t].codePoints);let B=A.getItem(r++);i=!!(2147483648&B);let g=!!(1073741824&B),c=(1073741823&B)<<2>>2;if(c+=this.glyphs[t].id,s+=e.getItem(c),i||g){let A=n.getItem(s);this.glyphs[t]=this.font.getGlyph(A,o),a.push(t),s=0,o=[]}else this.glyphs[t]=this.font.getGlyph(65535)}this.ligatureStack.push(...a)}}processNoncontextualSubstitutions(A,t,e){let n=new hr(A.table.lookupTable);for(e=0;e>>5,e=!!(1024&t.flags);this._insertGlyphs(this.markedIndex,t.markedInsertIndex,A,e)}if(65535!==t.currentInsertIndex){let A=(992&t.flags)>>>5,n=!!(2048&t.flags);this._insertGlyphs(e,t.currentInsertIndex,A,n)}}getSupportedFeatures(){let A=[];for(let t of this.morx.chains)for(let e of t.features)A.push([e.featureType,e.featureSetting]);return A}generateInputs(A){return this.inputCache||this.generateInputCache(),this.inputCache[A]||[]}generateInputCache(){this.inputCache={};for(let A of this.morx.chains){let t=A.defaultFlags;for(let e of A.subtables)e.subFeatureFlags&t&&this.generateInputsForSubtable(e)}}generateInputsForSubtable(A){if(2!==A.type)return;if(A.coverage&ur)throw new Error("Reverse subtable, not supported.");this.subtable=A,this.ligatureStack=[];let t=this.getStateMachine(A),e=this.getProcessor(),n=[],r=[];this.glyphs=[],t.traverse({enter:(A,t)=>{let i=this.glyphs;r.push({glyphs:i.slice(),ligatureStack:this.ligatureStack.slice()});let s=this.font.getGlyph(A);n.push(s),i.push(n[n.length-1]),e(i[i.length-1],t,i.length-1);let o=0,a=0;for(let A=0;AA.id)),t=this.inputCache[a];t?t.push(A):this.inputCache[a]=[A]}},exit:()=>{({glyphs:this.glyphs,ligatureStack:this.ligatureStack}=r.pop()),n.pop()}})}constructor(A){this.processIndicRearragement=this.processIndicRearragement.bind(this),this.processContextualSubstitution=this.processContextualSubstitution.bind(this),this.processLigature=this.processLigature.bind(this),this.processNoncontextualSubstitutions=this.processNoncontextualSubstitutions.bind(this),this.processGlyphInsertion=this.processGlyphInsertion.bind(this),this.font=A,this.morx=A.morx,this.inputCache=null}}function Cr(A,t,e,n=!1,r=!1){let i=A.splice(e[0]-(e[1]-1),e[1]);r&&i.reverse();let s=A.splice(t[0],t[1],...i);return n&&s.reverse(),A.splice(e[0]-(t[1]-1),0,...s),A}(0,i._)([D],fr.prototype,"getStateMachine",null);class dr{substitute(A){"rtl"===A.direction&&A.glyphs.reverse(),this.morxProcessor.process(A.glyphs,function(A){let t={};for(let e in A){let n;(n=lr[e])&&(null==t[n[0]]&&(t[n[0]]={}),t[n[0]][n[1]]=A[e])}return t}(A.features))}getAvailableFeatures(A,t){return function(A){let t={};if(Array.isArray(A))for(let e=0;e0&&A.applyFeatures(n,t,e)}constructor(A,t,e){this.font=A,this.script=t,this.direction=e,this.stages=[],this.globalFeatures={},this.allFeatures={}}}const Dr=["rvrn"],Ir=["ccmp","locl","rlig","mark","mkmk"],pr=["frac","numr","dnom"],yr=["calt","clig","liga","rclt","curs","kern"],Fr={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]};class Yr{static plan(A,t,e){this.planPreprocessing(A),this.planFeatures(A),this.planPostprocessing(A,e),A.assignGlobalFeatures(t),this.assignFeatures(A,t)}static planPreprocessing(A){A.add({global:[...Dr,...Fr[A.direction]],local:pr})}static planFeatures(A){}static planPostprocessing(A,t){A.add([...Ir,...yr]),A.setFeatureOverrides(t)}static assignFeatures(A,t){for(let A=0;A0&&(0,o.isDigit)(t[n-1].codePoints[0]);)t[n-1].features.numr=!0,t[n-1].features.frac=!0,n--;for(;rthis.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]}next(){return this.move(1)}prev(){return this.move(-1)}peek(A=1){let t=this.index,e=this.increment(A);return this.index=t,e}peekIndex(A=1){let t=this.index;this.increment(A);let e=this.index;return this.index=t,e}increment(A=1){let t=A<0?-1:1;for(A=Math.abs(A);A--;)this.move(t);return this.glyphs[this.index]}constructor(A,t){this.glyphs=A,this.reset(t)}}const kr=["DFLT","dflt","latn"];class Lr{findScript(A){if(null==this.table.scriptList)return null;Array.isArray(A)||(A=[A]);for(let t of A)for(let A of this.table.scriptList)if(A.tag===t)return A;return null}selectScript(A,t,e){let n,r=!1;if(!this.script||A!==this.scriptTag){if(n=this.findScript(A),n||(n=this.findScript(kr)),!n)return this.scriptTag;this.scriptTag=n.tag,this.script=n.script,this.language=null,this.languageTag=null,r=!0}if(e&&e===this.direction||(this.direction=e||or(A)),t&&t.length<4&&(t+=" ".repeat(4-t.length)),!t||t!==this.languageTag){this.language=null;for(let A of this.script.langSysRecords)if(A.tag===t){this.language=A.langSys,this.languageTag=A.tag;break}this.language||(this.language=this.script.defaultLangSys,this.languageTag=null),r=!0}if(r&&(this.features={},this.language))for(let A of this.language.featureIndexes){let t=this.table.featureList[A],e=this.substituteFeatureForVariations(A);this.features[t.tag]=e||t.feature}return this.scriptTag}lookupsForFeatures(A=[],t){let e=[];for(let n of A){let A=this.features[n];if(A)for(let r of A.lookupListIndexes)t&&-1!==t.indexOf(r)||e.push({feature:n,index:r,lookup:this.table.lookupList.get(r)})}return e.sort(((A,t)=>A.index-t.index)),e}substituteFeatureForVariations(A){if(-1===this.variationsIndex)return null;let t=this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions;for(let e of t)if(e.featureIndex===A)return e.alternateFeatureTable;return null}findVariationsIndex(A){let t=this.table.featureVariations;if(!t)return-1;let e=t.featureVariationRecords;for(let t=0;t{let e=A.axisIndexA===t.id))}sequenceMatchIndices(A,t){return this.match(A,t,((A,t)=>this.currentFeature in t.features&&A===t.id),[])}coverageSequenceMatches(A,t){return this.match(A,t,((A,t)=>this.coverageIndex(A,t.id)>=0))}getClassID(A,t){switch(t.version){case 1:let e=A-t.startGlyph;if(e>=0&&eA===this.getClassID(t.id,e)))}applyContext(A){let t,e;switch(A.version){case 1:if(t=this.coverageIndex(A.coverage),-1===t)return!1;e=A.ruleSets[t];for(let A of e)if(this.sequenceMatches(1,A.input))return this.applyLookupList(A.lookupRecords);break;case 2:if(-1===this.coverageIndex(A.coverage))return!1;if(t=this.getClassID(this.glyphIterator.cur.id,A.classDef),-1===t)return!1;e=A.classSet[t];for(let t of e)if(this.classSequenceMatches(1,t.classes,A.classDef))return this.applyLookupList(t.lookupRecords);break;case 3:if(this.coverageSequenceMatches(0,A.coverages))return this.applyLookupList(A.lookupRecords)}return!1}applyChainingContext(A){let t;switch(A.version){case 1:if(t=this.coverageIndex(A.coverage),-1===t)return!1;let e=A.chainRuleSets[t];for(let A of e)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(A.coverage))return!1;t=this.getClassID(this.glyphIterator.cur.id,A.inputClassDef);let n=A.chainClassSet[t];if(!n)return!1;for(let t of n)if(this.classSequenceMatches(-t.backtrack.length,t.backtrack,A.backtrackClassDef)&&this.classSequenceMatches(1,t.input,A.inputClassDef)&&this.classSequenceMatches(1+t.input.length,t.lookahead,A.lookaheadClassDef))return this.applyLookupList(t.lookupRecords);break;case 3:if(this.coverageSequenceMatches(-A.backtrackGlyphCount,A.backtrackCoverage)&&this.coverageSequenceMatches(0,A.inputCoverage)&&this.coverageSequenceMatches(A.inputGlyphCount,A.lookaheadCoverage))return this.applyLookupList(A.lookupRecords)}return!1}constructor(A,t){this.font=A,this.table=t,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.variationsIndex=A._variationProcessor?this.findVariationsIndex(A._variationProcessor.normalizedCoords):-1,this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1,this.currentFeature=null}}class jr{get id(){return this._id}set id(A){this._id=A,this.substituted=!0;let t=this._font.GDEF;if(t&&t.glyphClassDef){let e=Lr.prototype.getClassID(A,t.glyphClassDef);this.isBase=1===e,this.isLigature=2===e,this.isMark=3===e,this.markAttachmentType=t.markAttachClassDef?Lr.prototype.getClassID(A,t.markAttachClassDef):0}else this.isMark=this.codePoints.length>0&&this.codePoints.every(o.isMark),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}copy(){return new jr(this._font,this.id,this.codePoints,this.features)}constructor(A,t,e=[],n){if(this._font=A,this.codePoints=e,this.id=t,this.features={},Array.isArray(n))for(let A=0;A4352<=A&&A<=4447||43360<=A&&A<=43388)(A)?1:(A=>4448<=A&&A<=4519||55216<=A&&A<=55238)(A)?2:(A=>4520<=A&&A<=4607||55243<=A&&A<=55291)(A)?3:(A=>A-Or<11173&&(A-Or)%28==0)(A)?4:(A=>Or<=A&&A<=55204)(A)?5:(A=>12334<=A&&A<=12335)(A)?6:0}const Zr=1,_r=2,qr=4,$r=5,Ai=[[[0,0],[0,1],[0,0],[0,0],[Zr,2],[Zr,3],[$r,0]],[[0,0],[0,1],[_r,2],[0,0],[Zr,2],[Zr,3],[$r,0]],[[0,0],[0,1],[0,0],[_r,3],[Zr,2],[Zr,3],[qr,0]],[[0,0],[0,1],[0,0],[0,0],[Zr,2],[Zr,3],[qr,0]]];function ti(A,t,e){return new jr(A,A.glyphForCodePoint(t).id,[t],e)}function ei(A,t,e){let n=A[t],r=n.codePoints[0]-Or,i=Vr+r%28;r=r/28|0;let s=Wr+r/21|0,o=Kr+r%21;if(!e.hasGlyphForCodePoint(s)||!e.hasGlyphForCodePoint(o)||i!==Vr&&!e.hasGlyphForCodePoint(i))return t;let a=ti(e,s,n.features);a.features.ljmo=!0;let B=ti(e,o,n.features);B.features.vjmo=!0;let g=[a,B];if(i>Vr){let A=ti(e,i,n.features);A.features.tjmo=!0,g.push(A)}return A.splice(t,1,...g),t+g.length-1}function ni(A,t,e){let n,r,i,s,o=A[t],a=Xr(A[t].codePoints[0]),B=A[t-1].codePoints[0],g=Xr(B);if(4===g&&3===a)n=B,s=o;else{2===a?(r=A[t-1],i=o):(r=A[t-2],i=A[t-1],s=o);let e=r.codePoints[0],B=i.codePoints[0];Wr<=(c=e)&&c<=4370&&(A=>Kr<=A&&A<=4469)(B)&&(n=Or+28*(21*(e-Wr)+(B-Kr)))}var c;let l=s&&s.codePoints[0]||Vr;if(null!=n&&(l===Vr||(A=>1<=A&&A<=4546)(l))){let r=n+(l-Vr);if(e.hasGlyphForCodePoint(r)){let n=2===g?3:2;return A.splice(t-n+1,n,ti(e,r,o.features)),t-n+1}}return r&&(r.features.ljmo=!0),i&&(i.features.vjmo=!0),s&&(s.features.tjmo=!0),4===g?(ei(A,t-1,e),t+1):t}function ri(A,t,e){let n=A[t],r=A[t].codePoints[0];if(0===e.glyphForCodePoint(r).advanceWidth)return;let i=function(A){switch(Xr(A)){case 4:case 5:return 1;case 2:return 2;case 3:return 3}}(A[t-1].codePoints[0]);return A.splice(t,1),A.splice(t-i,0,n)}function ii(A,t,e){let n=A[t],r=A[t].codePoints[0];if(e.hasGlyphForCodePoint(9676)){let i=ti(e,9676,n.features),s=0===e.glyphForCodePoint(r).advanceWidth?t:t+1;A.splice(s,0,i),t++}return t}var si,oi;si=JSON.parse('{"stateTable":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,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,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,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,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,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,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,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,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,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,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,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,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,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,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,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,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,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,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,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,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,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,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,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,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,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,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,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,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,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,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,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,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,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,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,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,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,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,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,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,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]],"accepting":[false,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,false,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,false,false,true,false,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,false,false,true,true,false,false,true,true,true,false,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,false,false,false,false,false,false,false,true,true,false,false,true,true,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,false,true,true,false,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,false,true,true,true,true,true,false,true,true,false,true,true,true],"tags":[[],["broken_cluster"],["consonant_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],[],["broken_cluster"],["symbol_cluster"],[],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["symbol_cluster"],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],[],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],[],[],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],["consonant_syllable"],["vowel_syllable"],["standalone_cluster"]]}'),oi=JSON.parse('{"categories":["O","IND","S","GB","B","FM","CGJ","VMAbv","VMPst","VAbv","VPst","CMBlw","VPre","VBlw","H","VMBlw","CMAbv","MBlw","CS","R","SUB","MPst","MPre","FAbv","FPst","FBlw","null","SMAbv","SMBlw","VMPre","ZWNJ","ZWJ","WJ","M","VS","N","HN","MAbv"],"decompositions":{"2507":[2503,2494],"2508":[2503,2519],"2888":[2887,2902],"2891":[2887,2878],"2892":[2887,2903],"3018":[3014,3006],"3019":[3015,3006],"3020":[3014,3031],"3144":[3142,3158],"3264":[3263,3285],"3271":[3270,3285],"3272":[3270,3286],"3274":[3270,3266],"3275":[3270,3266,3285],"3402":[3398,3390],"3403":[3399,3390],"3404":[3398,3415],"3546":[3545,3530],"3548":[3545,3535],"3549":[3545,3535,3530],"3550":[3545,3551],"3635":[3661,3634],"3763":[3789,3762],"3955":[3953,3954],"3957":[3953,3956],"3958":[4018,3968],"3959":[4018,3953,3968],"3960":[4019,3968],"3961":[4019,3953,3968],"3969":[3953,3968],"6971":[6970,6965],"6973":[6972,6965],"6976":[6974,6965],"6977":[6975,6965],"6979":[6978,6965],"69934":[69937,69927],"69935":[69938,69927],"70475":[70471,70462],"70476":[70471,70487],"70843":[70841,70842],"70844":[70841,70832],"70846":[70841,70845],"71098":[71096,71087],"71099":[71097,71087]},"stateTable":[[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,0,0,0,0,0,0,0,0,0,0,0,0],[2,2,3,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,17,18,11,19,20,21,22,0,0,0,23,0,0,2,0,0,24,0,25],[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,0,0,0,0,0,0,0,0,26,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,0,0,0,0,27,28,0,0,0,0,0,27,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,39,0,0,47],[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,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,18,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,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,49,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,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,0,0,0,0,0,0,0,0,0,0,0,28,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,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,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,41,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,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,53,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[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,0,0,0,0,0,0,0,0,0,0,51,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,0,0,0,0,0,0,0,0,0,0,54,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[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,0,0,0,0,0,0,0,0,50,0,51,0]],"accepting":[false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true],"tags":[[],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["symbol_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["virama_terminated_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["number_joiner_terminated_cluster"],["standard_cluster"],["standard_cluster"],["numeral_cluster"]]}');const ai=1,Bi=8,gi=16,ci=32,li=64,wi=128,Ei=8192,hi=32768,Qi=65536,ui=131072,fi={Start:1,Ra_To_Become_Reph:2,Pre_M:4,Pre_C:8,Base_C:16,After_Main:32,Above_C:64,Before_Sub:128,Below_C:256,After_Sub:512,Before_Post:1024,Post_C:2048,After_Post:4096,Final_C:8192,SMVD:16384,End:32768},Ci=2|Qi|ui|4|2048|4096,di=li|ci,Mi=gi|16384,Di={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:fi.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:fi.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:fi.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:fi.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:fi.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:fi.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:fi.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:fi.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:fi.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:fi.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:fi.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},Ii={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},{decompositions:pi}=E(oi),yi=new(E(a))($n("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")),Fi=new(E(B))(E(si));class Yi extends Yr{static planFeatures(A){var t;A.addStage(zi),A.addStage(["locl","ccmp"]),A.addStage(Gi),A.addStage("nukt"),A.addStage("akhn"),A.addStage("rphf",!1),A.addStage("rkrf"),A.addStage("pref",!1),A.addStage("blwf",!1),A.addStage("abvf",!1),A.addStage("half",!1),A.addStage("pstf",!1),A.addStage("vatu"),A.addStage("cjct"),A.addStage("cfar",!1),A.addStage(Si),A.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),A.unicodeScript=(t=A.script,ir[t]),A.indicConfig=Di[A.unicodeScript]||Di.Default,A.isOldSpec=A.indicConfig.hasOldSpec&&"2"!==A.script[A.script.length-1]}static assignFeatures(A,t){for(let e=t.length-1;e>=0;e--){let n=t[e].codePoints[0],r=Ii[n]||pi[n];if(r){let n=r.map((n=>{let r=A.font.glyphForCodePoint(n);return new jr(A.font,r.id,[n],t[e].features)}));t.splice(e,1,...n)}}}}function mi(A){return yi.get(A.codePoints[0])>>8}function bi(A){return 1<<(255&yi.get(A.codePoints[0]))}(0,r._)(Yi,"zeroMarkWidths","NONE");class vi{constructor(A,t,e,n){this.category=A,this.position=t,this.syllableType=e,this.syllable=n}}function zi(A,t){let e=0,n=0;for(let[A,r,i]of Fi.match(t.map(mi))){if(A>n){++e;for(let r=n;rc);break}case"First":g=s;for(let A=g+1;Ae&&!(Ui(t[n])||A&&t[n].shaperInfo.category===gi);n--);if(t[n].shaperInfo.category!==gi&&n>e){let A=t[e];t.splice(e,0,...t.splice(e+1,n-e)),t[n]=A}break}}let w=fi.Start;for(let A=s;As;n--)if(t[n-1].shaperInfo.position!==fi.Pre_M){e.position=t[n-1].shaperInfo.position;break}}else e.position!==fi.SMVD&&(w=e.position)}let E=g;for(let A=g+1;AA.shaperInfo.position-t.shaperInfo.position)),t.splice(s,h.length,...h);for(let A=s;As&&!Ui(t[n]))}}}function Si(A,t,e){let n=e.indicConfig,r=A._layoutEngine.engine.GSUBProcessor.features;for(let A=0,i=Ti(t,0);A=fi.Base_C){if(s&&a+1fi.Base_C&&a--;break}if(a===i&&AA&&!(t[n].shaperInfo.category&(wi|Mi));)n--;xi(t[n])&&t[n].shaperInfo.position!==fi.Pre_M?n+1A;e--)if(t[e-1].shaperInfo.position===fi.Pre_M){let A=e-1;AA&&t[e].shaperInfo.position===fi.SMVD;)e--;if(xi(t[e]))for(let A=a+1;AA&&!(t[r-1].shaperInfo.category&(wi|Mi));)r--;if(r>A&&t[r-1].shaperInfo.category===wi){let A=n;for(let e=a+1;eA&&xi(t[r-1])&&r=A.length)return t;let e=A[t].shaperInfo.syllable;for(;++t=0;e--){let n=t[e].codePoints[0];if(ki[n]){let r=ki[n].map((n=>{let r=A.font.glyphForCodePoint(n);return new jr(A.font,r.id,[n],t[e].features)}));t.splice(e,1,...r)}}}}function Oi(A){return Li.get(A.codePoints[0])}(0,r._)(Ji,"zeroMarkWidths","BEFORE_GPOS");class Wi{constructor(A,t,e){this.category=A,this.syllableType=t,this.syllable=e}}function Ki(A,t){let e=0;for(let[A,n,r]of ji.match(t.map(Oi))){++e;for(let i=A;i<=n;i++)t[i].shaperInfo=new Wi(Hi[Oi(t[i])],r[0],e);let i="R"===t[A].shaperInfo.category?1:Math.min(3,n-A);for(let e=A;e1)for(i=n+1;i=A.length)return t;let e=A[t].shaperInfo.syllable;for(;++t{let e=new jr(this.font,A,void 0,n);return e.shaperInfo=r.shaperInfo,e.isLigated=r.isLigated,e.ligatureComponent=t+1,e.substituted=!0,e.isMultiplied=!0,e}));return this.glyphs.splice(this.glyphIterator.index+1,0,...i),!0}return!1}case 3:{let A=this.coverageIndex(t.coverage);if(-1!==A){let e=0;return this.glyphIterator.cur.id=t.alternateSet.get(A)[e],!0}return!1}case 4:{let A=this.coverageIndex(t.coverage);if(-1===A)return!1;for(let n of t.ligatureSets.get(A)){let A=this.sequenceMatchIndices(1,n.components);if(!A)continue;let t=this.glyphIterator.cur,r=t.codePoints.slice();for(let t of A)r.push(...this.glyphs[t].codePoints);let i=new jr(this.font,n.glyph,r,t.features);i.shaperInfo=t.shaperInfo,i.isLigated=!0,i.substituted=!0;let s=t.isMark;for(let t=0;t=0;t--)this.glyphs.splice(A[t],1);return this.glyphs[this.glyphIterator.index]=i,!0}return!1}case 5:return this.applyContext(t);case 6:return this.applyChainingContext(t);case 7:return this.applyLookup(t.lookupType,t.extension);default:throw new Error(`GSUB lookupType ${A} is not supported`)}}}class ns extends Lr{applyPositionValue(A,t){let e=this.positions[this.glyphIterator.peekIndex(A)];null!=t.xAdvance&&(e.xAdvance+=t.xAdvance),null!=t.yAdvance&&(e.yAdvance+=t.yAdvance),null!=t.xPlacement&&(e.xOffset+=t.xPlacement),null!=t.yPlacement&&(e.yOffset+=t.yPlacement);let n=this.font._variationProcessor,r=this.font.GDEF&&this.font.GDEF.itemVariationStore;n&&r&&(t.xPlaDevice&&(e.xOffset+=n.getDelta(r,t.xPlaDevice.a,t.xPlaDevice.b)),t.yPlaDevice&&(e.yOffset+=n.getDelta(r,t.yPlaDevice.a,t.yPlaDevice.b)),t.xAdvDevice&&(e.xAdvance+=n.getDelta(r,t.xAdvDevice.a,t.xAdvDevice.b)),t.yAdvDevice&&(e.yAdvance+=n.getDelta(r,t.yAdvDevice.a,t.yAdvDevice.b)))}applyLookup(A,t){switch(A){case 1:{let A=this.coverageIndex(t.coverage);if(-1===A)return!1;switch(t.version){case 1:this.applyPositionValue(0,t.value);break;case 2:this.applyPositionValue(0,t.values.get(A))}return!0}case 2:{let A=this.glyphIterator.peek();if(!A)return!1;let n=this.coverageIndex(t.coverage);if(-1===n)return!1;switch(t.version){case 1:let r=t.pairSets.get(n);for(let t of r)if(t.secondGlyph===A.id)return this.applyPositionValue(0,t.value1),this.applyPositionValue(1,t.value2),!0;return!1;case 2:let i=this.getClassID(this.glyphIterator.cur.id,t.classDef1),s=this.getClassID(A.id,t.classDef2);if(-1===i||-1===s)return!1;var e=t.classRecords.get(i).get(s);return this.applyPositionValue(0,e.value1),this.applyPositionValue(1,e.value2),!0}}case 3:{let A=this.glyphIterator.peekIndex(),e=this.glyphs[A];if(!e)return!1;let n=t.entryExitRecords[this.coverageIndex(t.coverage)];if(!n||!n.exitAnchor)return!1;let r=t.entryExitRecords[this.coverageIndex(t.coverage,e.id)];if(!r||!r.entryAnchor)return!1;let i,s=this.getAnchor(r.entryAnchor),o=this.getAnchor(n.exitAnchor),a=this.positions[this.glyphIterator.index],B=this.positions[A];switch(this.direction){case"ltr":a.xAdvance=o.x+a.xOffset,i=s.x+B.xOffset,B.xAdvance-=i,B.xOffset-=i;break;case"rtl":i=o.x+a.xOffset,a.xAdvance-=i,a.xOffset-=i,B.xAdvance=s.x+B.xOffset}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=A,a.yOffset=s.y-o.y):(e.cursiveAttachment=this.glyphIterator.index,a.yOffset=o.y-s.y),!0}case 4:{let A=this.coverageIndex(t.markCoverage);if(-1===A)return!1;let e=this.glyphIterator.index;for(;--e>=0&&(this.glyphs[e].isMark||this.glyphs[e].ligatureComponent>0););if(e<0)return!1;let n=this.coverageIndex(t.baseCoverage,this.glyphs[e].id);if(-1===n)return!1;let r=t.markArray[A],i=t.baseArray[n][r.class];return this.applyAnchor(r,i,e),!0}case 5:{let A=this.coverageIndex(t.markCoverage);if(-1===A)return!1;let e=this.glyphIterator.index;for(;--e>=0&&this.glyphs[e].isMark;);if(e<0)return!1;let n=this.coverageIndex(t.ligatureCoverage,this.glyphs[e].id);if(-1===n)return!1;let r=t.ligatureArray[n],i=this.glyphIterator.cur,s=this.glyphs[e],o=s.ligatureID&&s.ligatureID===i.ligatureID&&i.ligatureComponent>0?Math.min(i.ligatureComponent,s.codePoints.length)-1:s.codePoints.length-1,a=t.markArray[A],B=r[o][a.class];return this.applyAnchor(a,B,e),!0}case 6:{let A=this.coverageIndex(t.mark1Coverage);if(-1===A)return!1;let e=this.glyphIterator.peekIndex(-1),n=this.glyphs[e];if(!n||!n.isMark)return!1;let r=this.glyphIterator.cur,i=!1;if(r.ligatureID===n.ligatureID?r.ligatureID?r.ligatureComponent===n.ligatureComponent&&(i=!0):i=!0:(r.ligatureID&&!r.ligatureComponent||n.ligatureID&&!n.ligatureComponent)&&(i=!0),!i)return!1;let s=this.coverageIndex(t.mark2Coverage,n.id);if(-1===s)return!1;let o=t.mark1Array[A],a=t.mark2Array[s][o.class];return this.applyAnchor(o,a,e),!0}case 7:return this.applyContext(t);case 8:return this.applyChainingContext(t);case 9:return this.applyLookup(t.lookupType,t.extension);default:throw new Error(`Unsupported GPOS table: ${A}`)}}applyAnchor(A,t,e){let n=this.getAnchor(t),r=this.getAnchor(A.markAnchor),i=(this.positions[e],this.positions[this.glyphIterator.index]);i.xOffset=n.x-r.x,i.yOffset=n.y-r.y,this.glyphIterator.cur.markAttachment=e}getAnchor(A){let t=A.xCoordinate,e=A.yCoordinate,n=this.font._variationProcessor,r=this.font.GDEF&&this.font.GDEF.itemVariationStore;return n&&r&&(A.xDeviceTable&&(t+=n.getDelta(r,A.xDeviceTable.a,A.xDeviceTable.b)),A.yDeviceTable&&(e+=n.getDelta(r,A.yDeviceTable.a,A.yDeviceTable.b))),{x:t,y:e}}applyFeatures(A,t,e){super.applyFeatures(A,t,e);for(var n=0;nnew jr(this.font,A.id,[...A.codePoints])));let t=null;this.GPOSProcessor&&(t=this.GPOSProcessor.selectScript(A.script,A.language,A.direction)),this.GSUBProcessor&&(t=this.GSUBProcessor.selectScript(A.script,A.language,A.direction)),this.shaper=function(A){Array.isArray(A)||(A=[A]);for(let t of A){let A=ts[t];if(A)return A}return Yr}(t),this.plan=new Mr(this.font,t,A.direction),this.shaper.plan(this.plan,this.glyphInfos,A.features);for(let t in this.plan.allFeatures)A.features[t]=!0}substitute(A){this.GSUBProcessor&&(this.plan.process(this.GSUBProcessor,this.glyphInfos),A.glyphs=this.glyphInfos.map((A=>this.font.getGlyph(A.id,A.codePoints))))}position(A){return"BEFORE_GPOS"===this.shaper.zeroMarkWidths&&this.zeroMarkAdvances(A.positions),this.GPOSProcessor&&this.plan.process(this.GPOSProcessor,this.glyphInfos,A.positions),"AFTER_GPOS"===this.shaper.zeroMarkWidths&&this.zeroMarkAdvances(A.positions),"rtl"===A.direction&&(A.glyphs.reverse(),A.positions.reverse()),this.GPOSProcessor&&this.GPOSProcessor.features}zeroMarkAdvances(A){for(let t=0;tnew Br(A.advanceWidth)));let t=null;this.engine&&this.engine.position&&(t=this.engine.position(A)),t||this.engine&&!this.engine.fallbackPosition||(this.unicodeLayoutEngine||(this.unicodeLayoutEngine=new er(this.font)),this.unicodeLayoutEngine.positionGlyphs(A.glyphs,A.positions)),t&&t.kern||!1===A.features.kern||!this.font.kern||(this.kernProcessor||(this.kernProcessor=new tr(this.font)),this.kernProcessor.process(A.glyphs,A.positions),A.features.kern=!0)}hideDefaultIgnorables(A,t){let e=this.font.glyphForCodePoint(32);for(let n=0;n>16;if(0===t)switch(A>>8){case 0:return 173===A;case 3:return 847===A;case 6:return 1564===A;case 23:return 6068<=A&&A<=6069;case 24:return 6155<=A&&A<=6158;case 32:return 8203<=A&&A<=8207||8234<=A&&A<=8238||8288<=A&&A<=8303;case 254:return 65024<=A&&A<=65039||65279===A;case 255:return 65520<=A&&A<=65528;default:return!1}else switch(t){case 1:return 113824<=A&&A<=113827||119155<=A&&A<=119162;case 14:return 917504<=A&&A<=921599;default:return!1}}getAvailableFeatures(A,t){let e=[];return this.engine&&e.push(...this.engine.getAvailableFeatures(A,t)),this.font.kern&&-1===e.indexOf("kern")&&e.push("kern"),e}stringsForGlyph(A){let t=new Set,e=this.font._cmapProcessor.codePointsForGlyph(A);for(let A of e)t.add(String.fromCodePoint(A));if(this.engine&&this.engine.stringsForGlyph)for(let e of this.engine.stringsForGlyph(A))t.add(e);return Array.from(t)}constructor(A){this.font=A,this.unicodeLayoutEngine=null,this.kernProcessor=null,this.font.morx?this.engine=new dr(this.font):(this.font.GSUB||this.font.GPOS)&&(this.engine=new rs(this.font))}}const ss={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"};class os{toFunction(){return A=>{this.commands.forEach((t=>A[t.command].apply(A,t.args)))}}toSVG(){return this.commands.map((A=>{let t=A.args.map((A=>Math.round(100*A)/100));return`${ss[A.command]}${t.join(" ")}`})).join("")}get cbox(){if(!this._cbox){let A=new nr;for(let t of this.commands)for(let e=0;eMath.pow(1-A,3)*l[Q]+3*Math.pow(1-A,2)*A*w[Q]+3*(1-A)*Math.pow(A,2)*E[Q]+Math.pow(A,3)*h[Q];for(let u of this.commands)switch(u.command){case"moveTo":case"lineTo":let[f,C]=u.args;A.addPoint(f,C),t=f,e=C;break;case"quadraticCurveTo":case"bezierCurveTo":if("quadraticCurveTo"===u.command)var[r,i,s,o]=u.args,a=t+2/3*(r-t),B=e+2/3*(i-e),g=s+2/3*(r-s),c=o+2/3*(i-o);else var[a,B,g,c,s,o]=u.args;A.addPoint(s,o);for(var l=[t,e],w=[a,B],E=[g,c],h=[s,o],Q=0;Q<=1;Q++){let t=6*l[Q]-12*w[Q]+6*E[Q],e=-3*l[Q]+9*w[Q]-9*E[Q]+3*h[Q];if(u=3*w[Q]-3*l[Q],0===e){if(0===t)continue;let e=-u/t;0[A*s+e*o+r,t*s+n*o+i]))}translate(A,t){return this.transform(1,0,0,1,A,t)}rotate(A){let t=Math.cos(A),e=Math.sin(A);return this.transform(t,e,-e,t,0,0)}scale(A,t=A){return this.transform(A,0,0,t,0,0)}constructor(){this.commands=[],this._bbox=null,this._cbox=null}}for(let A of["moveTo","lineTo","quadraticCurveTo","bezierCurveTo","closePath"])os.prototype[A]=function(...t){return this._bbox=this._cbox=null,this.commands.push({command:A,args:t}),this};var as=[".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"];class Bs{_getPath(){return new os}_getCBox(){return this.path.cbox}_getBBox(){return this.path.bbox}_getTableMetrics(A){if(this.id0)n=Math.abs(t.typoAscender-t.typoDescender),r=t.typoAscender-A.maxY;else{let{hhea:t}=this._font;var n=Math.abs(t.ascent-t.descent),r=t.ascent-A.maxY}}return this._font._variationProcessor&&this._font.HVAR&&(t+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:t,advanceHeight:n,leftBearing:e,topBearing:r}}get cbox(){return this._getCBox()}get bbox(){return this._getBBox()}get path(){return this._getPath()}getScaledPath(A){let t=1/this._font.unitsPerEm*A;return this.path.scale(t)}get advanceWidth(){return this._getMetrics().advanceWidth}get advanceHeight(){return this._getMetrics().advanceHeight}get ligatureCaretPositions(){}_getName(){let{post:A}=this._font;if(!A)return null;switch(A.version){case 1:return as[this.id];case 2:let t=A.glyphNameIndex[this.id];return t0&&this.codePoints.every(o.isMark),this.isLigature=this.codePoints.length>1}}(0,i._)([D],Bs.prototype,"cbox",null),(0,i._)([D],Bs.prototype,"bbox",null),(0,i._)([D],Bs.prototype,"path",null),(0,i._)([D],Bs.prototype,"advanceWidth",null),(0,i._)([D],Bs.prototype,"advanceHeight",null),(0,i._)([D],Bs.prototype,"name",null);let gs=new n.Struct({numberOfContours:n.int16,xMin:n.int16,yMin:n.int16,xMax:n.int16,yMax:n.int16});class cs{copy(){return new cs(this.onCurve,this.endContour,this.x,this.y)}constructor(A,t,e=0,n=0){this.onCurve=A,this.endContour=t,this.x=e,this.y=n}}class ls{constructor(A,t,e){this.glyphID=A,this.dx=t,this.dy=e,this.pos=0,this.scaleX=this.scaleY=1,this.scale01=this.scale10=0}}class ws extends Bs{_getCBox(A){if(this._font._variationProcessor&&!A)return this.path.cbox;let t=this._font._getTableStream("glyf");t.pos+=this._font.loca.offsets[this.id];let e=gs.decode(t),n=new nr(e.xMin,e.yMin,e.xMax,e.yMax);return Object.freeze(n)}_parseGlyphCoord(A,t,e,n){if(e){var r=A.readUInt8();n||(r=-r),r+=t}else r=n?t:t+A.readInt16BE();return r}_decode(){let A=this._font.loca.offsets[this.id];if(A===this._font.loca.offsets[this.id+1])return null;let t=this._font._getTableStream("glyf");t.pos+=A;let e=t.pos,n=gs.decode(t);return n.numberOfContours>0?this._decodeSimple(n,t):n.numberOfContours<0&&this._decodeComposite(n,t,e),n}_decodeSimple(A,t){A.points=[];let e=new n.Array(n.uint16,A.numberOfContours).decode(t);A.instructions=new n.Array(n.uint8,n.uint16).decode(t);let r=[],i=e[e.length-1]+1;for(;r.length=0,0,0);A.points.push(t)}let a=0;for(o=0;o>1,o.length=0}function p(A,t){w&&s.closePath(),s.moveTo(A,t),w=!0}let y=function(){for(;t.pos1&&D(),l+=o.shift(),p(c,l);break;case 5:for(;o.length>=2;)c+=o.shift(),l+=o.shift(),s.lineTo(c,l);break;case 6:case 7:for(Y=6===Q;o.length>=1;)Y?c+=o.shift():l+=o.shift(),s.lineTo(c,l),Y=!Y;break;case 8:for(;o.length>0;)m=c+o.shift(),b=l+o.shift(),v=m+o.shift(),z=b+o.shift(),c=v+o.shift(),l=z+o.shift(),s.bezierCurveTo(m,b,v,z,c,l);break;case 10:if(B=o.pop()+f,F=u[B],F){i[B]=!0;let A=t.pos,e=n;t.pos=F.offset,n=F.offset+F.length,y(),t.pos=A,n=e}break;case 11:if(A.version>=2)break;return;case 14:if(A.version>=2)break;o.length>0&&D(),w&&(s.closePath(),w=!1);break;case 15:if(A.version<2)throw new Error("vsindex operator not supported in CFF v1");d=o.pop();break;case 16:{if(A.version<2)throw new Error("blend operator not supported in CFF v1");if(!M)throw new Error("blend operator in non-variation font");let t=M.getBlendVector(C,d),e=o.pop(),n=e*t.length,r=o.length-n,i=r-e;for(let A=0;A>3;break;case 21:o.length>2&&D(),c+=o.shift(),l+=o.shift(),p(c,l);break;case 22:o.length>1&&D(),c+=o.shift(),p(c,l);break;case 24:for(;o.length>=8;)m=c+o.shift(),b=l+o.shift(),v=m+o.shift(),z=b+o.shift(),c=v+o.shift(),l=z+o.shift(),s.bezierCurveTo(m,b,v,z,c,l);c+=o.shift(),l+=o.shift(),s.lineTo(c,l);break;case 25:for(;o.length>=8;)c+=o.shift(),l+=o.shift(),s.lineTo(c,l);m=c+o.shift(),b=l+o.shift(),v=m+o.shift(),z=b+o.shift(),c=v+o.shift(),l=z+o.shift(),s.bezierCurveTo(m,b,v,z,c,l);break;case 26:for(o.length%2&&(c+=o.shift());o.length>=4;)m=c,b=l+o.shift(),v=m+o.shift(),z=b+o.shift(),c=v,l=z+o.shift(),s.bezierCurveTo(m,b,v,z,c,l);break;case 27:for(o.length%2&&(l+=o.shift());o.length>=4;)m=c+o.shift(),b=l,v=m+o.shift(),z=b+o.shift(),c=v+o.shift(),l=z,s.bezierCurveTo(m,b,v,z,c,l);break;case 28:o.push(t.readInt16BE());break;case 29:if(B=o.pop()+h,F=E[B],F){r[B]=!0;let A=t.pos,e=n;t.pos=F.offset,n=F.offset+F.length,y(),t.pos=A,n=e}break;case 30:case 31:for(Y=31===Q;o.length>=4;)Y?(m=c+o.shift(),b=l,v=m+o.shift(),z=b+o.shift(),l=z+o.shift(),c=v+(1===o.length?o.shift():0)):(m=c,b=l+o.shift(),v=m+o.shift(),z=b+o.shift(),c=v+o.shift(),l=z+(1===o.length?o.shift():0)),s.bezierCurveTo(m,b,v,z,c,l),Y=!Y;break;case 12:switch(Q=t.readUInt8(),Q){case 3:let A=o.pop(),t=o.pop();o.push(A&&t?1:0);break;case 4:A=o.pop(),t=o.pop(),o.push(A||t?1:0);break;case 5:A=o.pop(),o.push(A?0:1);break;case 9:A=o.pop(),o.push(Math.abs(A));break;case 10:A=o.pop(),t=o.pop(),o.push(A+t);break;case 11:A=o.pop(),t=o.pop(),o.push(A-t);break;case 12:A=o.pop(),t=o.pop(),o.push(A/t);break;case 14:A=o.pop(),o.push(-A);break;case 15:A=o.pop(),t=o.pop(),o.push(A===t?1:0);break;case 18:o.pop();break;case 20:let n=o.pop(),r=o.pop();a[r]=n;break;case 21:r=o.pop(),o.push(a[r]||0);break;case 22:let i=o.pop(),B=o.pop(),g=o.pop(),w=o.pop();o.push(g<=w?i:B);break;case 23:o.push(Math.random());break;case 24:A=o.pop(),t=o.pop(),o.push(A*t);break;case 26:A=o.pop(),o.push(Math.sqrt(A));break;case 27:A=o.pop(),o.push(A,A);break;case 28:A=o.pop(),t=o.pop(),o.push(t,A);break;case 29:r=o.pop(),r<0?r=0:r>o.length-1&&(r=o.length-1),o.push(o[r]);break;case 30:let E=o.pop(),h=o.pop();if(h>=0)for(;h>0;){var e=o[E-1];for(let A=E-2;A>=0;A--)o[A+1]=o[A];o[0]=e,h--}else for(;h<0;){e=o[0];for(let A=0;A<=E;A++)o[A]=o[A+1];o[E-1]=e,h++}break;case 34:m=c+o.shift(),b=l,v=m+o.shift(),z=b+o.shift(),U=v+o.shift(),P=z,x=U+o.shift(),N=P,R=x+o.shift(),G=N,S=R+o.shift(),T=G,c=S,l=T,s.bezierCurveTo(m,b,v,z,U,P),s.bezierCurveTo(x,N,R,G,S,T);break;case 35:H=[];for(let A=0;A<=5;A++)c+=o.shift(),l+=o.shift(),H.push(c,l);s.bezierCurveTo(...H.slice(0,6)),s.bezierCurveTo(...H.slice(6)),o.shift();break;case 36:m=c+o.shift(),b=l+o.shift(),v=m+o.shift(),z=b+o.shift(),U=v+o.shift(),P=z,x=U+o.shift(),N=P,R=x+o.shift(),G=N+o.shift(),S=R+o.shift(),T=G,c=S,l=T,s.bezierCurveTo(m,b,v,z,U,P),s.bezierCurveTo(x,N,R,G,S,T);break;case 37:let u=c,f=l;H=[];for(let A=0;A<=4;A++)c+=o.shift(),l+=o.shift(),H.push(c,l);Math.abs(c-u)>Math.abs(l-f)?(c+=o.shift(),l=f):(c=u,l+=o.shift()),H.push(c,l),s.bezierCurveTo(...H.slice(0,6)),s.bezierCurveTo(...H.slice(6));break;default:throw new Error(`Unknown op: 12 ${Q}`)}break;default:throw new Error(`Unknown op: ${Q}`)}}else if(Q<247)o.push(Q-139);else if(Q<251){var B=t.readUInt8();o.push(256*(Q-247)+B+108)}else Q<255?(B=t.readUInt8(),o.push(256*-(Q-251)-B-108)):o.push(t.readInt32BE()/65536)}};return y(),w&&s.closePath(),s}constructor(...A){super(...A),(0,r._)(this,"type","CFF")}}let hs=new n.Struct({originX:n.uint16,originY:n.uint16,type:new n.String(4),data:new n.Buffer((A=>A.parent.buflen-A._currentOffset))});class Qs extends ws{getImageForSize(A){for(let e=0;e=A)break}let e=t.imageOffsets,n=e[this.id],r=e[this.id+1];return n===r?null:(this._font.stream.pos=n,hs.decode(this._font.stream,{buflen:r-n}))}render(A,t){let e=this.getImageForSize(t);if(null!=e){let n=t/this._font.unitsPerEm;A.image(e.data,{height:t,x:e.originX,y:(this.bbox.minY-e.originY)*n})}this._font.sbix.flags.renderOutlines&&super.render(A,t)}constructor(...A){super(...A),(0,r._)(this,"type","SBIX")}}class us{constructor(A,t){this.glyph=A,this.color=t}}class fs extends Bs{_getBBox(){let A=new nr;for(let t=0;t>1;var r=t.baseGlyphRecord[A];if(this.idr.gid)){var i=r;break}e=A+1}}if(null==i){var s=this._font._getBaseGlyph(this.id);return[new us(s,a={red:0,green:0,blue:0,alpha:255})]}let o=[];for(let e=i.firstLayerIndex;e=1&&t[e]=e.glyphCount)return;let n=e.offsets[A];if(n===e.offsets[A+1])return;let{stream:r}=this.font;if(r.pos=n,r.pos>=r.length)return;let i=r.readUInt16BE(),s=n+r.readUInt16BE();if(32768&i){var o=r.pos;r.pos=s;var a=this.decodePoints();s=r.pos,r.pos=o}let B=t.map((A=>A.copy()));i&=4095;for(let A=0;A=e.globalCoordCount)throw new Error("Invalid gvar table");g=e.globalCoords[4095&n]}if(16384&n){var c=[];for(let A=0;AA.copy())),e=t.map((()=>!1));for(let n=0;nn[o])return 0;s=r[o]Math.max(0,t[o]))return 0;s=(s*r[o]+Number.EPSILON)/(t[o]+Number.EPSILON)}}return s}interpolateMissingDeltas(A,t,e){if(0===A.length)return;let n=0;for(;ni)continue;let o=n,a=n;for(n++;n<=i;)e[n]&&(this.deltaInterpolate(a+1,n-1,a,n,t,A),a=n),n++;a===o?this.deltaShift(r,i,a,t,A):(this.deltaInterpolate(a+1,i,a,o,t,A),o>0&&this.deltaInterpolate(r,o-1,a,o,t,A)),n=i+1}}deltaInterpolate(A,t,e,n,r,i){if(A>t)return;let s=["x","y"];for(let a=0;ar[n][B]){var o=e;e=n,n=o}let g=r[e][B],c=r[n][B],l=i[e][B],w=i[n][B];if(g!==c||l===w){let e=g===c?0:(w-l)/(c-g);for(let n=A;n<=t;n++){let A=r[n][B];A<=g?A+=l-g:A>=c?A+=w-c:A=l+(A-g)*e,i[n][B]=A}}}}deltaShift(A,t,e,n,r){let i=r[e].x-n[e].x,s=r[e].y-n[e].y;if(0!==i||0!==s)for(let n=A;n<=t;n++)n!==e&&(r[n].x+=i,r[n].y+=s)}getAdvanceAdjustment(A,t){let e,n;if(t.advanceWidthMapping){let r=A;r>=t.advanceWidthMapping.mapCount&&(r=t.advanceWidthMapping.mapCount-1),t.advanceWidthMapping.entryFormat,({outerIndex:e,innerIndex:n}=t.advanceWidthMapping.mapData[r])}else e=0,n=A;return this.getDelta(t.itemVariationStore,e,n)}getDelta(A,t,e){if(t>=A.itemVariationData.length)return 0;let n=A.itemVariationData[t];if(e>=n.deltaSets.length)return 0;let r=n.deltaSets[e],i=this.getBlendVector(A,t),s=0;for(let A=0;Ae.peakCoord||e.peakCoord>e.endCoord||e.startCoord<0&&e.endCoord>0&&0!==e.peakCoord||0===e.peakCoord?1:n[A]e.endCoord?0:n[A]===e.peakCoord?1:n[A]=0&&A<=255?1:2}static encode(A,t){t>=0&&t<=255?A.writeUInt8(t):A.writeInt16BE(t)}}let Ds=new n.Struct({numberOfContours:n.int16,xMin:n.int16,yMin:n.int16,xMax:n.int16,yMax:n.int16,endPtsOfContours:new n.Array(n.uint16,"numberOfContours"),instructions:new n.Array(n.uint8,n.uint16),flags:new n.Array(n.uint8,0),xPoints:new n.Array(Ms,0),yPoints:new n.Array(Ms,0)});class Is{encodeSimple(A,t=[]){let e=[],r=[],i=[],s=[],o=0,a=0,B=0,g=0,c=0;for(let t=0;t0&&(s.push(o),o=0),s.push(E),g=E),a=l,B=w,c++}"closePath"===n.command&&e.push(c-1)}A.commands.length>1&&"closePath"!==A.commands[A.commands.length-1].command&&e.push(c-1);let l=A.bbox,w={numberOfContours:e.length,xMin:l.minX,yMin:l.minY,xMax:l.maxX,yMax:l.maxY,endPtsOfContours:e,instructions:t,flags:s,xPoints:r,yPoints:i},E=Ds.size(w),h=4-E%4,Q=new n.EncodeStream(E+h);return Ds.encode(Q,w),0!==h&&Q.fill(0,h),Q.buffer}_encodePoint(A,t,e,n,r,i){let s=A-t;return A===t?n|=i:(-255<=s&&s<=255&&(n|=r,s<0?s=-s:n|=i),e.push(s)),n}}class ps extends ds{_addGlyph(A){let t=this.font.getGlyph(A),e=t._decode(),n=this.font.loca.offsets[A],r=this.font.loca.offsets[A+1],i=this.font._getTableStream("glyf");i.pos+=n;let s=i.readBuffer(r-n);if(e&&e.numberOfContours<0){s=new Uint8Array(s);let t=new DataView(s.buffer);for(let n of e.components)A=this.includeGlyph(n.glyphID),t.setUint16(n.pos,A)}else e&&this.font._variationProcessor&&(s=this.glyphEncoder.encodeSimple(t.path,e.instructions));return this.glyf.push(s),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:t.advanceWidth,bearing:t._getMetrics().leftBearing}),this.offset+=s.length,this.glyf.length-1}encode(){this.glyf=[],this.offset=0,this.loca={offsets:[],version:this.font.loca.version},this.hmtx={metrics:[],bearings:[]};let A=0;for(;A255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},t=Object.assign({},this.cff.topDict);t.Private=null,t.charset=A,t.Encoding=null,t.CharStrings=this.charstrings;for(let A of["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"])t[A]=this.addString(this.cff.string(t[A]));t.ROS=[this.addString("Adobe"),this.addString("Identity"),0],t.CIDCount=this.charstrings.length,this.cff.isCIDFont?this.subsetFontdict(t):this.createCIDFontdict(t);let e={version:1,hdrSize:this.cff.hdrSize,offSize:4,header:this.cff.header,nameIndex:[this.cff.postscriptName],topDictIndex:[t],stringIndex:this.strings,globalSubrIndex:this.gsubrs};return ut.toBuffer(e)}constructor(A){if(super(A),this.cff=this.font["CFF "],!this.cff)throw new Error("Not a CFF Font")}}class Fs{static probe(A){let t=_n.decode(A.slice(0,4));return"true"===t||"OTTO"===t||t===String.fromCharCode(0,1,0,0)}setDefaultLanguage(A=null){this.defaultLanguage=A}_getTable(A){if(!(A.tag in this._tables))try{this._tables[A.tag]=this._decodeTable(A)}catch(t){Q&&(console.error(`Error decoding table ${A.tag}`),console.error(t.stack))}return this._tables[A.tag]}_getTableStream(A){let t=this.directory.tables[A];return t?(this.stream.pos=t.offset,this.stream):null}_decodeDirectory(){return this.directory=Vn.decode(this.stream,{_startOffset:0})}_decodeTable(A){let t=this.stream.pos,e=this._getTableStream(A.tag),n=On[A.tag].decode(e,this,A.length);return this.stream.pos=t,n}getName(A,t=this.defaultLanguage||d){let e=this.name&&this.name.records[A];return e&&(e[t]||e[this.defaultLanguage]||e[d]||e.en||e[Object.keys(e)[0]])||null}get postscriptName(){return this.getName("postscriptName")}get fullName(){return this.getName("fullName")}get familyName(){return this.getName("fontFamily")}get subfamilyName(){return this.getName("fontSubfamily")}get copyright(){return this.getName("copyright")}get version(){return this.getName("version")}get ascent(){return this.hhea.ascent}get descent(){return this.hhea.descent}get lineGap(){return this.hhea.lineGap}get underlinePosition(){return this.post.underlinePosition}get underlineThickness(){return this.post.underlineThickness}get italicAngle(){return this.post.italicAngle}get capHeight(){let A=this["OS/2"];return A?A.capHeight:this.ascent}get xHeight(){let A=this["OS/2"];return A?A.xHeight:0}get numGlyphs(){return this.maxp.numGlyphs}get unitsPerEm(){return this.head.unitsPerEm}get bbox(){return Object.freeze(new nr(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax))}get _cmapProcessor(){return new Ar(this.cmap)}get characterSet(){return this._cmapProcessor.getCharacterSet()}hasGlyphForCodePoint(A){return!!this._cmapProcessor.lookup(A)}glyphForCodePoint(A){return this.getGlyph(this._cmapProcessor.lookup(A),[A])}glyphsForString(A){let t=[],e=A.length,n=0,r=-1,i=-1;for(;n<=e;){let s=0,o=0;if(n{let n=t.axisTag.trim();return n in A?Math.max(t.minValue,Math.min(t.maxValue,A[n])):t.defaultValue})),e=new n.DecodeStream(this.stream.buffer);e.pos=this._directoryPos;let r=new Fs(e,t);return r._tables=this._tables,r}get _variationProcessor(){if(!this.fvar)return null;let A=this.variationCoords;return A||this.CFF2?(A||(A=this.fvar.axis.map((A=>A.defaultValue))),new Cs(this,A)):null}getFont(A){return this.getVariation(A)}constructor(A,t=null){(0,r._)(this,"type","TTF"),this.defaultLanguage=null,this.stream=A,this.variationCoords=t,this._directoryPos=this.stream.pos,this._tables={},this._glyphs={},this._decodeDirectory();for(let A in this.directory.tables){let t=this.directory.tables[A];On[A]&&t.length>0&&Object.defineProperty(this,A,{get:this._getTable.bind(this,t)})}}}(0,i._)([D],Fs.prototype,"bbox",null),(0,i._)([D],Fs.prototype,"_cmapProcessor",null),(0,i._)([D],Fs.prototype,"characterSet",null),(0,i._)([D],Fs.prototype,"_layoutEngine",null),(0,i._)([D],Fs.prototype,"variationAxes",null),(0,i._)([D],Fs.prototype,"namedVariations",null),(0,i._)([D],Fs.prototype,"_variationProcessor",null);let Ys=new n.Struct({tag:new n.String(4),offset:new n.Pointer(n.uint32,"void",{type:"global"}),compLength:n.uint32,length:n.uint32,origChecksum:n.uint32}),ms=new n.Struct({tag:new n.String(4),flavor:n.uint32,length:n.uint32,numTables:n.uint16,reserved:new n.Reserved(n.uint16),totalSfntSize:n.uint32,majorVersion:n.uint16,minorVersion:n.uint16,metaOffset:n.uint32,metaLength:n.uint32,metaOrigLength:n.uint32,privOffset:n.uint32,privLength:n.uint32,tables:new n.Array(Ys,"numTables")});ms.process=function(){let A={};for(let t of this.tables)A[t.tag]=t;this.tables=A};var bs=ms;class vs extends ws{_decode(){return this._font._transformedGlyphs[this.id]}_getCBox(){return this.path.bbox}constructor(...A){super(...A),(0,r._)(this,"type","WOFF2")}}const zs={decode(A){let t=0,e=[0,1,2,3,4];for(let n=0;n!(63&~A.flags))),tag:A=>A.customTag||Us[63&A.flags],length:zs,transformVersion:A=>A.flags>>>6&3,transformed:A=>"glyf"===A.tag||"loca"===A.tag?0===A.transformVersion:0!==A.transformVersion,transformLength:new n.Optional(zs,(A=>A.transformed))}),xs=new n.Struct({tag:new n.String(4),flavor:n.uint32,length:n.uint32,numTables:n.uint16,reserved:new n.Reserved(n.uint16),totalSfntSize:n.uint32,totalCompressedSize:n.uint32,majorVersion:n.uint16,minorVersion:n.uint16,metaOffset:n.uint32,metaLength:n.uint32,metaOrigLength:n.uint32,privOffset:n.uint32,privLength:n.uint32,tables:new n.Array(Ps,"numTables")});xs.process=function(){let A={};for(let t=0;t>7);if(B&=127,B<10)e=0,a=Ts(B,((14&B)<<7)+t.readUInt8());else if(B<20)e=Ts(B,((B-10&14)<<7)+t.readUInt8()),a=0;else if(B<84)e=Ts(B,1+(48&(s=B-20))+((o=t.readUInt8())>>4)),a=Ts(B>>1,1+((12&s)<<2)+(15&o));else if(B<120){var s;e=Ts(B,1+((s=B-84)/12<<8)+t.readUInt8()),a=Ts(B>>1,1+(s%12>>2<<8)+t.readUInt8())}else if(B<124){var o=t.readUInt8();let A=t.readUInt8();e=Ts(B,(o<<4)+(A>>4)),a=Ts(B>>1,((15&A)<<8)+t.readUInt8())}else e=Ts(B,t.readUInt16BE()),a=Ts(B>>1,t.readUInt16BE());r+=e,n+=a,i.push(new cs(g,!1,r,n))}return i}let ks=new n.VersionedStruct(n.uint32,{65536:{numFonts:n.uint32,offsets:new n.Array(n.uint32,"numFonts")},131072:{numFonts:n.uint32,offsets:new n.Array(n.uint32,"numFonts"),dsigTag:n.uint32,dsigLength:n.uint32,dsigOffset:n.uint32}}),Ls=new n.String(n.uint8),js=(new n.Struct({len:n.uint32,buf:new n.Buffer("len")}),new n.Struct({id:n.uint16,nameOffset:n.int16,attr:n.uint8,dataOffset:n.uint24,handle:n.uint32})),Js=new n.Struct({name:new n.String(4),maxTypeIndex:n.uint16,refList:new n.Pointer(n.uint16,new n.Array(js,(A=>A.maxTypeIndex+1)),{type:"parent"})}),Os=new n.Struct({length:n.uint16,types:new n.Array(Js,(A=>A.length+1))}),Ws=new n.Struct({reserved:new n.Reserved(n.uint8,24),typeList:new n.Pointer(n.uint16,Os),nameListOffset:new n.Pointer(n.uint16,"void")}),Ks=new n.Struct({dataOffset:n.uint32,map:new n.Pointer(n.uint32,Ws),dataLength:n.uint32,mapLength:n.uint32});var Vs,Xs;f(Fs),f(class extends Fs{static probe(A){return"wOFF"===_n.decode(A.slice(0,4))}_decodeDirectory(){this.directory=bs.decode(this.stream,{_startOffset:0})}_getTableStream(A){let t=this.directory.tables[A];if(t){if(this.stream.pos=t.offset,t.compLength0){let t=[],r=0;for(let e=0;eA[e]===t)))return r}return null}get fonts(){let A=[];for(let t of this.header.offsets){let e=new n.DecodeStream(this.stream.buffer);e.pos=t,A.push(new Fs(e))}return A}constructor(A){if((0,r._)(this,"type","TTC"),this.stream=A,"ttcf"!==A.readString(4))throw new Error("Not a TrueType collection");this.header=ks.decode(A)}}),f(class{static probe(A){let t=new n.DecodeStream(A);try{var e=Ks.decode(t)}catch(A){return!1}for(let A of e.map.typeList.types)if("sfnt"===A.name)return!0;return!1}getFont(A){if(!this.sfnt)return null;for(let t of this.sfnt.refList){let e=this.header.dataOffset+t.dataOffset+4,r=new n.DecodeStream(this.stream.buffer.slice(e)),i=new Fs(r);if(i.postscriptName===A||i.postscriptName instanceof Uint8Array&&A instanceof Uint8Array&&i.postscriptName.every(((t,e)=>A[e]===t)))return i}return null}get fonts(){let A=[];for(let t of this.sfnt.refList){let e=this.header.dataOffset+t.dataOffset+4,r=new n.DecodeStream(this.stream.buffer.slice(e));A.push(new Fs(r))}return A}constructor(A){(0,r._)(this,"type","DFont"),this.stream=A,this.header=Ks.decode(this.stream);for(let A of this.header.map.typeList.types){for(let t of A.refList)t.nameOffset>=0?(this.stream.pos=t.nameOffset+this.header.map.nameListOffset,t.name=Ls.decode(this.stream)):t.name=null;"sfnt"===A.name&&(this.sfnt=A)}}}),Vs=A.exports,Xs=h,Object.keys(Xs).forEach((function(A){"default"===A||"__esModule"===A||Object.prototype.hasOwnProperty.call(Vs,A)||Object.defineProperty(Vs,A,{enumerable:!0,get:function(){return Xs[A]}})}))},2532(A,t,e){var n=e(7571),r=e(3915);function i(A){return A&&A.__esModule?A.default:A}const s=[[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,4,4,4,4],[0,4,4,1,1,4,4,4,4,1,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,4,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,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,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,1,1,1,1],[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,0,1,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,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,1,0,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,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,0,1,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,1,1,1,1,0,0,4,2,4,1,1,1,1,1,0,1,1,1,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,0,1,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,0,0,1,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,0,0,1,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,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,0,0,0,0,0,0,0,0,1,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,0,1,0],[0,4,4,1,0,1,4,4,4,0,0,1,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,0,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,0,1,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,1,1,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,4,4,2,4,0,0,0,0,0,0,0,0,1,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,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,0,0,1,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,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,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,0,0,0,0,1,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,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,0,0,0,1,1,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,0,0,0,0,1,0,0,0,1,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,1,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,0,0,0,0,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,0,0,0,0,1,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,0,0,1,0],[0,4,4,1,1,0,4,4,4,0,0,0,0,0,0,0,0,0,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0]],o=i(r).toByteArray("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"),a=new(i(n))(o),B=function(A){switch(A){case 33:case 39:case 40:case 42:return 12;case 35:return 5;default:return A}},g=function(A){switch(A){case 37:case 38:return 34;case 41:return 22;default:return A}};class c{constructor(A,t=!1){this.position=A,this.required=t}}A.exports=class{nextCodePoint(){const A=this.string.charCodeAt(this.pos++),t=this.string.charCodeAt(this.pos);return 55296<=A&&A<=56319&&56320<=t&&t<=57343?(this.pos++,1024*(A-55296)+(t-56320)+65536):A}nextCharClass(){return B(a.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case 41:return!1;case 34:case 37:case 38:return this.curClass=34,!1;case 36:return this.curClass=36,!1}return null}getPairTableBreak(A){let t=!1;switch(s[this.curClass][this.nextClass]){case 0:t=!0;break;case 1:t=41===A;break;case 2:if(t=41===A,!t)return t=!1,t;break;case 3:if(41!==A)return t}return this.LB8a&&(t=!1),!this.LB21a||16!==this.curClass&&17!==this.curClass?this.LB21a=13===this.curClass:(t=!1,this.LB21a=!1),28===this.curClass?(this.LB30a++,2==this.LB30a&&28===this.nextClass&&(t=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,t}nextBreak(){if(null==this.curClass){let A=this.nextCharClass();this.curClass=g(A),this.nextClass=A,this.LB8a=31===A,this.LB30a=0}for(;this.pos0)for(t=0;tthis.data.length)throw new Error("Incomplete or corrupt PNG file")}}read(A){const t=new Array(A);for(let e=0;e{if(t)throw t;const{width:r,height:i}=this,s=this.pixelBitlength/8,o=n.alloc(r*i*s),{length:a}=e;let B=0;function g(A,t,g,c,l=!1){const w=Math.ceil((r-A)/g),E=Math.ceil((i-t)/c),h=s*w,Q=l?o:n.alloc(h*E);let u=0,f=0;for(;u(this.copyToImageData(t,e),A(t))))}}},5233(A){function t(A,t){return Object.keys(t).forEach((function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(A,e)||Object.defineProperty(A,e,{enumerable:!0,get:function(){return t[e]}})})),A}function e(A,t,e,n){Object.defineProperty(A,t,{get:e,set:n,enumerable:!0,configurable:!0})}e(A.exports,"EncodeStream",(()=>o)),e(A.exports,"DecodeStream",(()=>r)),e(A.exports,"Array",(()=>V)),e(A.exports,"LazyArray",(()=>X)),e(A.exports,"Bitfield",(()=>_)),e(A.exports,"Boolean",(()=>q)),e(A.exports,"Buffer",(()=>$)),e(A.exports,"Enum",(()=>AA)),e(A.exports,"Optional",(()=>tA)),e(A.exports,"Reserved",(()=>eA)),e(A.exports,"String",(()=>nA)),e(A.exports,"Struct",(()=>sA)),e(A.exports,"VersionedStruct",(()=>oA));const n={utf16le:"utf-16le",ucs2:"utf-16le",utf16be:"utf-16be"};class r{constructor(A){this.buffer=A,this.view=new DataView(A.buffer,A.byteOffset,A.byteLength),this.pos=0,this.length=this.buffer.length}readString(A,t="ascii"){t=n[t]||t;let e=this.readBuffer(A);try{return new TextDecoder(t).decode(e)}catch(A){return e}}readBuffer(A){return this.buffer.slice(this.pos,this.pos+=A)}readUInt24BE(){return(this.readUInt16BE()<<8)+this.readUInt8()}readUInt24LE(){return this.readUInt16LE()+(this.readUInt8()<<16)}readInt24BE(){return(this.readInt16BE()<<8)+this.readUInt8()}readInt24LE(){return this.readUInt16LE()+(this.readInt8()<<16)}}r.TYPES={UInt8:1,UInt16:2,UInt24:3,UInt32:4,Int8:1,Int16:2,Int24:3,Int32:4,Float:4,Double:8};for(let A of Object.getOwnPropertyNames(DataView.prototype))if("get"===A.slice(0,3)){let t=A.slice(3).replace("Ui","UI");"Float32"===t?t="Float":"Float64"===t&&(t="Double");let e=r.TYPES[t];r.prototype["read"+t+(1===e?"":"BE")]=function(){const t=this.view[A](this.pos,!1);return this.pos+=e,t},1!==e&&(r.prototype["read"+t+"LE"]=function(){const t=this.view[A](this.pos,!0);return this.pos+=e,t})}const i=new TextEncoder,s=18==new Uint8Array(new Uint16Array([4660]).buffer)[0];class o{constructor(A){this.buffer=A,this.view=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),this.pos=0}writeBuffer(A){this.buffer.set(A,this.pos),this.pos+=A.length}writeString(A,t="ascii"){let e;switch(t){case"utf16le":case"utf16-le":case"ucs2":e=a(A,s);break;case"utf16be":case"utf16-be":e=a(A,!s);break;case"utf8":e=i.encode(A);break;case"ascii":e=function(A){let t=new Uint8Array(A.length);for(let e=0;e>>16&255,this.buffer[this.pos++]=A>>>8&255,this.buffer[this.pos++]=255&A}writeUInt24LE(A){this.buffer[this.pos++]=255&A,this.buffer[this.pos++]=A>>>8&255,this.buffer[this.pos++]=A>>>16&255}writeInt24BE(A){A>=0?this.writeUInt24BE(A):this.writeUInt24BE(A+16777215+1)}writeInt24LE(A){A>=0?this.writeUInt24LE(A):this.writeUInt24LE(A+16777215+1)}fill(A,t){if(t>8|(255&r)<<8),e[n]=r}return new Uint8Array(e.buffer)}for(let A of Object.getOwnPropertyNames(DataView.prototype))if("set"===A.slice(0,3)){let t=A.slice(3).replace("Ui","UI");"Float32"===t?t="Float":"Float64"===t&&(t="Double");let e=r.TYPES[t];o.prototype["write"+t+(1===e?"":"BE")]=function(t){this.view[A](this.pos,t,!1),this.pos+=e},1!==e&&(o.prototype["write"+t+"LE"]=function(t){this.view[A](this.pos,t,!0),this.pos+=e})}class B{fromBuffer(A){let t=new r(A);return this.decode(t)}toBuffer(A){let t=this.size(A),e=new Uint8Array(t),n=new o(e);return this.encode(n,A),e}}var g={};e(g,"Number",(()=>c)),e(g,"uint8",(()=>l)),e(g,"uint16be",(()=>w)),e(g,"uint16",(()=>E)),e(g,"uint16le",(()=>h)),e(g,"uint24be",(()=>Q)),e(g,"uint24",(()=>u)),e(g,"uint24le",(()=>f)),e(g,"uint32be",(()=>C)),e(g,"uint32",(()=>d)),e(g,"uint32le",(()=>M)),e(g,"int8",(()=>D)),e(g,"int16be",(()=>I)),e(g,"int16",(()=>p)),e(g,"int16le",(()=>y)),e(g,"int24be",(()=>F)),e(g,"int24",(()=>Y)),e(g,"int24le",(()=>m)),e(g,"int32be",(()=>b)),e(g,"int32",(()=>v)),e(g,"int32le",(()=>z)),e(g,"floatbe",(()=>U)),e(g,"float",(()=>P)),e(g,"floatle",(()=>x)),e(g,"doublebe",(()=>N)),e(g,"double",(()=>R)),e(g,"doublele",(()=>G)),e(g,"Fixed",(()=>S)),e(g,"fixed16be",(()=>T)),e(g,"fixed16",(()=>H)),e(g,"fixed16le",(()=>k)),e(g,"fixed32be",(()=>L)),e(g,"fixed32",(()=>j)),e(g,"fixed32le",(()=>J));class c extends B{constructor(A,t="BE"){super(),this.type=A,this.endian=t,this.fn=this.type,"8"!==this.type[this.type.length-1]&&(this.fn+=this.endian)}size(){return r.TYPES[this.type]}decode(A){return A[`read${this.fn}`]()}encode(A,t){return A[`write${this.fn}`](t)}}const l=new c("UInt8"),w=new c("UInt16","BE"),E=w,h=new c("UInt16","LE"),Q=new c("UInt24","BE"),u=Q,f=new c("UInt24","LE"),C=new c("UInt32","BE"),d=C,M=new c("UInt32","LE"),D=new c("Int8"),I=new c("Int16","BE"),p=I,y=new c("Int16","LE"),F=new c("Int24","BE"),Y=F,m=new c("Int24","LE"),b=new c("Int32","BE"),v=b,z=new c("Int32","LE"),U=new c("Float","BE"),P=U,x=new c("Float","LE"),N=new c("Double","BE"),R=N,G=new c("Double","LE");class S extends c{constructor(A,t,e=A>>1){super(`Int${A}`,t),this._point=1<W)),e(O,"PropertyDescriptor",(()=>K));class K{constructor(A={}){this.enumerable=!0,this.configurable=!0;for(let t in A){const e=A[t];this[t]=e}}}class V extends B{constructor(A,t,e="count"){super(),this.type=A,this.length=t,this.lengthType=e}decode(A,t){let e;const{pos:n}=A,r=[];let i=t;if(null!=this.length&&(e=W(this.length,A,t)),this.length instanceof c&&(Object.defineProperties(r,{parent:{value:t},_startOffset:{value:n},_currentOffset:{value:0,writable:!0},_length:{value:e}}),i=r),null==e||"bytes"===this.lengthType){const n=null!=e?A.pos+e:(null!=t?t._length:void 0)?t._startOffset+t._length:A.length;for(;A.pos=this.length)){if(null==this.items[A]){const{pos:t}=this.stream;this.stream.pos=this.base+this.type.size(null,this.ctx)*A,this.items[A]=this.type.decode(this.stream,this.ctx),this.stream.pos=t}return this.items[A]}}toArray(){const A=[];for(let t=0,e=this.length;t=55296&&n<=56319&&tA&&A[t]),r)):n.version=this.type.decode(A),this.versions.header&&this._parseFields(A,n,this.versions.header);const i=this.versions[n.version];if(null==i)throw new Error(`Unknown version ${n.version}`);return i instanceof oA?i.decode(A,t):(this._parseFields(A,n,i),null!=this.process&&this.process.call(n,A),n)}size(A,t,e=!0){let n,r;if(!A)throw new Error("Not a fixed size");null!=this.preEncode&&this.preEncode.call(A);const i={parent:t,val:A,pointerSize:0};let s=0;if("string"!=typeof this.type&&(s+=this.type.size(A.version,i)),this.versions.header)for(n in this.versions.header)r=this.versions.header[n],null!=r.size&&(s+=r.size(A[n],i));const o=this.versions[A.version];if(null==o)throw new Error(`Unknown version ${A.version}`);for(n in o)r=o[n],null!=r.size&&(s+=r.size(A[n],i));return e&&(s+=i.pointerSize),s}encode(A,t,e){let n,r;null!=this.preEncode&&this.preEncode.call(t,A);const i={pointers:[],startOffset:A.pos,parent:e,val:t,pointerSize:0};if(i.pointerOffset=A.pos+this.size(t,i,!1),"string"!=typeof this.type&&this.type.encode(A,t.version),this.versions.header)for(n in this.versions.header)r=this.versions.header[n],null!=r.encode&&r.encode(A,t[n],i);const s=this.versions[t.version];for(n in s)r=s[n],null!=r.encode&&r.encode(A,t[n],i);let o=0;for(;oBA)),e(aA,"VoidPointer",(()=>gA));class BA extends B{constructor(A,t,e={}){if(super(),this.offsetType=A,this.type=t,this.options=e,"void"===this.type&&(this.type=null),null==this.options.type&&(this.options.type="local"),null==this.options.allowNull&&(this.options.allowNull=!0),null==this.options.nullValue&&(this.options.nullValue=0),null==this.options.lazy&&(this.options.lazy=!1),this.options.relativeTo){if("function"!=typeof this.options.relativeTo)throw new Error("relativeTo option must be a function");this.relativeToGetter=e.relativeTo}}decode(A,t){const e=this.offsetType.decode(A,t);if(e===this.options.nullValue&&this.options.allowNull)return null;let n;switch(this.options.type){case"local":n=t._startOffset;break;case"immediate":n=A.pos-this.offsetType.size();break;case"parent":n=t.parent._startOffset;break;default:for(var r=t;r.parent;)r=r.parent;n=r._startOffset||0}this.options.relativeTo&&(n+=this.relativeToGetter(t));const i=e+n;if(null!=this.type){let e=null;const n=()=>{if(null!=e)return e;const{pos:n}=A;return A.pos=i,e=this.type.decode(A,t),A.pos=n,e};return this.options.lazy?new K({get:n}):n()}return i}size(A,t){const e=t;switch(this.options.type){case"local":case"immediate":break;case"parent":t=t.parent;break;default:for(;t.parent;)t=t.parent}let{type:n}=this;if(null==n){if(!(A instanceof gA))throw new Error("Must be a VoidPointer");({type:n}=A),A=A.value}if(A&&t){let r=n.size(A,e);t.pointerSize+=r}return this.offsetType.size()}encode(A,t,e){let n;const r=e;if(null==t)return void this.offsetType.encode(A,this.options.nullValue);switch(this.options.type){case"local":n=e.startOffset;break;case"immediate":n=A.pos+this.offsetType.size(t,r);break;case"parent":n=(e=e.parent).startOffset;break;default:for(n=0;e.parent;)e=e.parent}this.options.relativeTo&&(n+=this.relativeToGetter(r.val)),this.offsetType.encode(A,e.pointerOffset-n);let{type:i}=this;if(null==i){if(!(t instanceof gA))throw new Error("Must be a VoidPointer");({type:i}=t),t=t.value}return e.pointers.push({type:i,val:t,parent:r}),e.pointerOffset+=i.size(t,r)}}class gA{constructor(A,t){this.type=A,this.value=t}}t(A.exports,O),t(A.exports,g),t(A.exports,aA)},4766(A,t,e){var n,r,i=e(2504),s=e(7571);function o(A){return A&&A.__esModule?A.default:A}function a(A,t,e,n){Object.defineProperty(A,t,{get:e,set:n,enumerable:!0,configurable:!0})}n=A.exports,Object.defineProperty(n,"__esModule",{value:!0,configurable:!0}),a(A.exports,"getCategory",(()=>I)),a(A.exports,"getCombiningClass",(()=>p)),a(A.exports,"getScript",(()=>y)),a(A.exports,"getEastAsianWidth",(()=>F)),a(A.exports,"getNumericValue",(()=>Y)),a(A.exports,"isAlphabetic",(()=>m)),a(A.exports,"isDigit",(()=>b)),a(A.exports,"isPunctuation",(()=>v)),a(A.exports,"isLowerCase",(()=>z)),a(A.exports,"isUpperCase",(()=>U)),a(A.exports,"isTitleCase",(()=>P)),a(A.exports,"isWhiteSpace",(()=>x)),a(A.exports,"isBaseForm",(()=>N)),a(A.exports,"isMark",(()=>R)),a(A.exports,"default",(()=>G)),r=JSON.parse('{"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","Osage","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","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],"eaw":["N","Na","A","W","H","F"]}');const B=new(o(s))(o(i).toByteArray("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")),g=Math.log2||(A=>Math.log(A)/Math.LN2),c=A=>g(A)+1|0,l=c(o(r).categories.length-1),w=c(o(r).combiningClasses.length-1),E=c(o(r).scripts.length-1),h=c(o(r).eaw.length-1),Q=w+E+h+10,u=E+h+10,f=h+10,C=(1<>Q&C]}function p(A){const t=B.get(A);return o(r).combiningClasses[t>>u&d]}function y(A){const t=B.get(A);return o(r).scripts[t>>f&M]}function F(A){const t=B.get(A);return o(r).eaw[t>>10&D]}function Y(A){let t=B.get(A),e=1023&t;if(0===e)return null;if(e<=50)return e-1;if(e<480)return((e>>4)-12)/(1+(15&e));if(e<768){t=(e>>5)-14;let A=2+(31&e);for(;A>0;)t*=10,A--;return t}{t=(e>>2)-191;let A=1+(3&e);for(;A>0;)t*=60,A--;return t}}function m(A){const t=I(A);return"Lu"===t||"Ll"===t||"Lt"===t||"Lm"===t||"Lo"===t||"Nl"===t}function b(A){return"Nd"===I(A)}function v(A){const t=I(A);return"Pc"===t||"Pd"===t||"Pe"===t||"Pf"===t||"Pi"===t||"Po"===t||"Ps"===t}function z(A){return"Ll"===I(A)}function U(A){return"Lu"===I(A)}function P(A){return"Lt"===I(A)}function x(A){const t=I(A);return"Zs"===t||"Zl"===t||"Zp"===t}function N(A){const t=I(A);return"Nd"===t||"No"===t||"Nl"===t||"Lu"===t||"Ll"===t||"Lt"===t||"Lm"===t||"Lo"===t||"Me"===t||"Mc"===t}function R(A){const t=I(A);return"Mn"===t||"Me"===t||"Mc"===t}var G={getCategory:I,getCombiningClass:p,getScript:y,getEastAsianWidth:F,getNumericValue:Y,isAlphabetic:m,isDigit:b,isPunctuation:v,isLowerCase:z,isUpperCase:U,isTitleCase:P,isWhiteSpace:x,isBaseForm:N,isMark:R}},7507(A,t,e){"use strict";var n=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(t,"__esModule",{value:!0}),t.XmlDocument=t.XmlElement=t.XmlCommentNode=t.XmlCDataNode=t.XmlTextNode=void 0;const r=n(e(1733));class i{constructor(A){this.text=A,this.type="text"}toString(A){return l(c(this.text),A)}toStringWithIndent(A,t){return A+this.toString(t)}}t.XmlTextNode=i;class s{constructor(A){this.cdata=A,this.type="cdata"}toString(A){return``}toStringWithIndent(A,t){return A+this.toString(t)}}t.XmlCDataNode=s;class o{constructor(A){this.comment=A,this.type="comment"}toString(A){return`\x3c!--${l(c(this.comment),A)}--\x3e`}toStringWithIndent(A,t){return A+this.toString(t)}}t.XmlCommentNode=o;class a{constructor(A,t){if(this.type="element",!t&&g.length){var e=g[g.length-1];"parser"in e&&(t=e.parser)}this.name=A.name,this.attr=A.attributes,this.val="",this.children=[],this.firstChild=null,this.lastChild=null,this.line=t?t.line:null,this.column=t?t.column:null,this.position=t?t.position:null,this.startTagPosition=t?t.startTagPosition:null}_addChild(A){this.children.push(A),this.firstChild||(this.firstChild=A),this.lastChild=A}_opentag(A){const t=new a(A);this._addChild(t),g.unshift(t)}_closetag(){g.shift()}_text(A){this.val+=A,this._addChild(new i(A))}_cdata(A){this.val+=A,this._addChild(new s(A))}_comment(A){this._addChild(new o(A))}_error(A){throw A}eachChild(A,t){for(let e=0,n=this.children.length;e1?e.attr[t[1]]:e.val:void 0}toString(A){return this.toStringWithIndent("",A)}toStringWithIndent(A,t){let e=`${A}<${this.name}`;const n=(null==t?void 0:t.compressed)?"":"\n";for(const A in this.attr)Object.prototype.hasOwnProperty.call(this.attr,A)&&(e+=` ${A}="${c(this.attr[A])}"`);if(1===this.children.length&&"element"!==this.children[0].type)e+=`>${this.children[0].toString(t)}`;else if(this.children.length){e+=`>${n}`;const r=A+((null==t?void 0:t.compressed)?"":" ");for(let A=0,i=this.children.length;A`}else(null==t?void 0:t.html)?["area","base","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"].includes(this.name)?e+="/>":e+=`>`:e+="/>";return e}}t.XmlElement=a;class B extends a{constructor(A){if(super({name:"",attributes:{}}),!(A=A.toString().trim()))throw new Error("No XML to parse!");var t;this.doctype="",this.parser=r.default.parser(!0),(t=this.parser).onopentag=A=>{var t;return null===(t=g[0])||void 0===t?void 0:t._opentag(A)},t.onclosetag=()=>{var A;return null===(A=g[0])||void 0===A?void 0:A._closetag()},t.ontext=A=>{var t;return null===(t=g[0])||void 0===t?void 0:t._text(A)},t.oncdata=A=>{var t;return null===(t=g[0])||void 0===t?void 0:t._cdata(A)},t.oncomment=A=>{var t;return null===(t=g[0])||void 0===t?void 0:t._comment(A)},t.ondoctype=A=>{const t=g[0];t._doctype&&t._doctype(A)},t.onerror=A=>{var t;return null===(t=g[0])||void 0===t?void 0:t._error(A)},g=[this];try{this.parser.write(A)}finally{delete this.parser}}_opentag(A){""===this.name?(this.name=A.name,this.attr=A.attributes):super._opentag(A)}_doctype(A){this.doctype+=A}}t.XmlDocument=B;let g=[];function c(A){return A.toString().replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")}function l(A,t){let e=A;return(null==t?void 0:t.trimmed)&&A.length>25&&(e=e.substring(0,25).trim()+"…"),(null==t?void 0:t.preserveWhitespace)||(e=e.trim()),e}t.default=B},1635(A,t,e){"use strict";function n(A,t,e,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(A,t,e,n);else for(var o=A.length-1;o>=0;o--)(r=A[o])&&(s=(i<3?r(s):i>3?r(t,e,s):r(t,e))||s);return i>3&&s&&Object.defineProperty(t,e,s),s}e.d(t,{__decorate:()=>n}),Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError}},t={};function e(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return A[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}return e.amdO={},e.n=A=>{var t=A&&A.__esModule?()=>A.default:()=>A;return e.d(t,{a:t}),t},e.d=(A,t)=>{for(var n in t)e.o(t,n)&&!e.o(A,n)&&Object.defineProperty(A,n,{enumerable:!0,get:t[n]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(A){if("object"==typeof window)return window}}(),e.o=(A,t)=>Object.prototype.hasOwnProperty.call(A,t),e.nmd=A=>(A.paths=[],A.children||(A.children=[]),A),e(6092)})(),A.exports=t()},7837:(A,t,e)=>{"use strict";e.r(t),e.d(t,{default:()=>D});var n=e(428),r=e(5668);let i=n;var s=0,o=0,a=r.default.ext.buttons,B=null;function g(A,t,e){i.fn.animate?A.stop().fadeIn(t,e):(A.css("display","block"),e&&e.call(A))}function c(A,t,e){i.fn.animate?A.stop().fadeOut(t,e):(A.css("display","none"),e&&e.call(A))}var l,w=function(A,t){if(!r.default.versionCheck("2"))throw"Warning: Buttons requires DataTables 2 or newer";if(!(this instanceof w))return function(t){return new w(t,A).container()};void 0===t&&(t={}),!0===t&&(t={}),Array.isArray(t)&&(t={buttons:t}),this.c=i.extend(!0,{},w.defaults,t),t.buttons&&(this.c.buttons=t.buttons),this.s={dt:new r.default.Api(A),buttons:[],listenKeys:"",namespace:"dtb"+s++},this.dom={container:i("<"+this.c.dom.container.tag+"/>").addClass(this.c.dom.container.className)},this._constructor()};i.extend(w.prototype,{action:function(A,t){var e=this._nodeToButton(A);return void 0===t?e.conf.action:(e.conf.action=t,this)},active:function(A,t){var e=this._nodeToButton(A),n=this.c.dom.button.active,r=i(e.node);return e.inCollection&&this.c.dom.collection.button&&void 0!==this.c.dom.collection.button.active&&(n=this.c.dom.collection.button.active),void 0===t?r.hasClass(n):(r.toggleClass(n,void 0===t||t),this)},add:function(A,t,e){var n=this.s.buttons;if("string"==typeof t){for(var r=t.split("-"),i=this.s,s=0,o=r.length-1;s=0;n--)this.remove(e.buttons[n].node);for(e.conf.prefixButtons&&t.unshift.apply(t,e.conf.prefixButtons),e.conf.postfixButtons&&t.push.apply(t,e.conf.postfixButtons),n=0;n=0;r--)this.remove(t.buttons[r].node);t.conf.destroying=!0,t.conf.destroy&&t.conf.destroy.call(n.button(A),n,i(A),t.conf),this._removeKey(t.conf),i(t.node).remove(),t.inserter&&i(t.inserter).remove();var s=i.inArray(t,e);return e.splice(s,1),this},text:function(A,t){var e=this._nodeToButton(A),n=e.textNode,r=this.s.dt,s=i(e.node),o=function(A){return"function"==typeof A?A(r,s,e.conf):A};return void 0===t?o(e.conf.text):(e.conf.text=t,n.html(o(t)),this)},_constructor:function(){var A=this,t=this.s.dt,e=t.settings()[0],n=this.c.buttons;e._buttons||(e._buttons=[]),e._buttons.push({inst:this,name:this.c.name});for(var r=0,s=n.length;r"),Q.conf._collection=Q.collection,this._expandButton(Q.buttons,Q.conf.buttons,Q.conf.split,!g,g,s,Q.conf)),Q.conf.split){Q.collection=i("<"+c.container.tag+"/>"),Q.conf._collection=Q.collection;for(var u=0;u").addClass("dt-button-spacer "+A.style+" "+E.spacer.className).html(w(A.text));return{conf:A,node:h,nodeChild:null,inserter:h,buttons:[],inCollection:t,isSplit:e,collection:null,textNode:h}}if(A.available&&!A.available(c,A)&&!A.html)return!1;if(A.html)s=i(A.html);else{var Q=function(A,t,e,n,r){n.action.call(t.button(e),A,t,e,n,r),i(t.table().node()).triggerHandler("buttons-action.dt",[t.button(e),t,e,n])},u=function(A,t,e,n){n.async?(B.processing(e[0],!0),setTimeout((function(){Q(A,t,e,n,(function(){B.processing(e[0],!1)}))}),n.async)):Q(A,t,e,n,(function(){}))},f=A.tag||E.tag,C=void 0===A.clickBlurs||A.clickBlurs;if(s=i("<"+f+"/>").addClass(E.className).attr("aria-controls",this.s.dt.table().node().id).on("click.dtb",(function(t){t.preventDefault(),!s.hasClass(E.disabled)&&A.action&&u(t,c,s,A),C&&s.trigger("blur")})).on("keypress.dtb",(function(t){13===t.keyCode&&(t.preventDefault(),!s.hasClass(E.disabled)&&A.action&&u(t,c,s,A))})),"a"===f.toLowerCase()&&s.attr("href","#"),"button"===f.toLowerCase()&&s.attr("type","button"),E.liner.tag){var d=E.liner.tag.toLowerCase(),M=i("<"+d+"/>").html(w(A.text)).addClass(E.liner.className);"a"===d&&M.attr("href","#"),"a"!==d&&"button"!==d||(M.attr("tabindex",this.s.dt.settings()[0].iTabIndex),l=!0),s.append(M),r=M}else s.html(w(A.text)),r=s;l||s.attr("tabindex",this.s.dt.settings()[0].iTabIndex),!1===A.enabled&&s.addClass(E.disabled),A.className&&s.addClass(A.className),A.titleAttr&&s.attr("title",w(A.titleAttr)),A.attr&&s.attr(A.attr),A.namespace||(A.namespace=".dt-button-"+o++),void 0!==A.config&&A.config.split&&(A.split=A.config.split)}var D,I,p=this.c.dom.buttonContainer;if(D=p&&p.tag?i("<"+p.tag+"/>").addClass(p.className).append(s):s,this._addKey(A),this.c.buttonCreated&&(D=this.c.buttonCreated(A,D)),e){var y=t?i.extend(!0,this.c.dom.split,this.c.dom.collection.split):this.c.dom.split,F=y.wrapper;I=i("<"+F.tag+"/>").addClass(F.className).append(s);var Y=i.extend(A,{autoClose:!0,align:y.dropdown.align,attr:{"aria-haspopup":"dialog","aria-expanded":!1},className:y.dropdown.className,closeButton:!1,splitAlignClass:y.dropdown.splitAlignClass,text:y.dropdown.text});this._addKey(Y);var m=function(A,t,e,n){a.split.action.call(t.button(I),A,t,e,n),i(t.table().node()).triggerHandler("buttons-action.dt",[t.button(e),t,e,n]),e.attr("aria-expanded",!0)},b=i('').html(this.c.dom.button.dropHtml).addClass(this.c.dom.button.dropClass).on("click.dtb",(function(A){A.preventDefault(),A.stopPropagation(),b.hasClass(E.disabled)||m(A,c,b,Y),C&&b.trigger("blur")})).on("keypress.dtb",(function(A){13===A.keyCode&&(A.preventDefault(),b.hasClass(E.disabled)||m(A,c,b,Y))}));0===A.split.length&&b.addClass("dtb-hide-drop"),I.append(b).attr(Y.attr)}var v=e?I.get(0):s.get(0);return{conf:A,node:v,nodeChild:v&&v.children&&v.children.length?v.children[0]:null,inserter:e?I:D,buttons:[],inCollection:t,isSplit:e,inSplit:n,collection:null,textNode:r}},_checkSplitEnable:function(A){A||(A=this.s.buttons);for(var t=0;t30)throw"Buttons: Too many iterations"}return Array.isArray(t)?t:i.extend({},t)};for(A=s(A);A&&A.extend;){if(!a[A.extend])throw"Cannot extend unknown button type: "+A.extend;var o=s(a[A.extend]);if(Array.isArray(o))return o;if(!o)return!1;var B=o.className;void 0!==A.config&&void 0!==o.config&&(A.config=i.extend({},o.config,A.config)),A=i.extend({},o,A),B&&A.className!==B&&(A.className=B+" "+A.className),A.extend=o.extend}var g=A.postfixButtons;if(g)for(A.buttons||(A.buttons=[]),t=0,e=g.length;t").addClass(o.containerClassName).addClass(o.collectionLayout).addClass(o.splitAlignClass).addClass(f).css("display","none").attr({"aria-modal":!0,role:"dialog"});A=i(A).addClass(o.contentClassName).attr("role","menu").appendTo(C),B.attr("aria-expanded","true"),l.parents("body")[0]!==document.body&&(l=i(document.body).children("div, section, p").last()),o.popoverTitle?C.prepend('
'+o.popoverTitle+"
"):o.collectionTitle&&C.prepend('
'+o.collectionTitle+"
"),o.closeButton&&C.prepend('
×
').addClass("dtb-collection-closeable"),g(C.insertAfter(l),o.fade);var d=i(t.table().container()),M=C.css("position");if("container"!==o.span&&"dt-container"!==o.align||(l=l.parent(),C.css("width",d.width())),"absolute"===M){var D=i(l[0].offsetParent),I=l.position(),p=l.offset(),y=D.offset(),F=D.position(),Y=window.getComputedStyle(D[0]);y.height=D.outerHeight(),y.width=D.width()+parseFloat(Y.paddingLeft),y.right=y.left+y.width,y.bottom=y.top+y.height;var m=I.top+l.outerHeight(),b=I.left;C.css({top:m,left:b}),Y=window.getComputedStyle(C[0]);var v=C.offset();v.height=C.outerHeight(),v.width=C.outerWidth(),v.right=v.left+v.width,v.bottom=v.top+v.height,v.marginTop=parseFloat(Y.marginTop),v.marginBottom=parseFloat(Y.marginBottom),o.dropup&&(m=I.top-v.height-v.marginTop-v.marginBottom),("button-right"===o.align||C.hasClass(o.rightAlignClassName))&&(b=I.left-v.width+l.outerWidth()),"dt-container"!==o.align&&"container"!==o.align||bi(window).width()&&(b=i(window).width()-v.width-F.left),p.left+b<0&&(b=-p.left),F.top+m+v.height>i(window).height()+i(window).scrollTop()&&(m=I.top-v.height-v.marginTop-v.marginBottom),D.offset().top+mA&&(t=A),C.css("marginTop",-1*t)};z(),i(window).on("resize.dtb-collection",(function(){z()}))}o.background&&w.background(!0,o.backgroundClassName,o.fade,o.backgroundHost||l),i("div.dt-button-background").on("click.dtb-collection",(function(){})),o.autoClose&&setTimeout((function(){n.on("buttons-action.b-internal",(function(A,t,e,n){n[0]!==l[0]&&E()}))}),0),i(C).trigger("buttons-popover.dt"),n.on("destroy.dtb-popover",E),setTimeout((function(){s=!1,i("body").on("click.dtb-collection",(function(t){if(!s){var e=i.fn.addBack?"addBack":"andSelf",n=i(t.target).parent()[0];(!i(t.target).parents()[e]().filter(A).length&&!i(n).hasClass("dt-buttons")||i(t.target).hasClass("dt-button-background"))&&E()}})).on("keyup.dtb-collection",(function(A){27===A.keyCode&&E()})).on("keydown.dtb-collection",(function(t){var e=i("a, button",A),n=document.activeElement;9===t.keyCode&&(-1===e.index(n)?(e.first().focus(),t.preventDefault()):t.shiftKey?n===e[0]&&(e.last().focus(),t.preventDefault()):n===e.last()[0]&&(e.first().focus(),t.preventDefault()))}))}),0)}else E()}}),w.background=function(A,t,e,n){void 0===e&&(e=400),n||(n=document.body),A?g(i("
").addClass(t).css("display","none").insertAfter(n),e):c(i("div."+t),e,(function(){i(this).removeClass(t).remove()}))},w.instanceSelector=function(A,t){if(null==A)return i.map(t,(function(A){return A.inst}));var e=[],n=i.map(t,(function(A){return A.name})),r=function(A){if(Array.isArray(A))for(var s=0,o=A.length;s)|(